<commit_before>"use strict";

import * as envir from './environmentPath';
import * as fileManager from './fileManager';


var GitHubApi = require("github4");

var github = new GitHubApi({
    version: "3.0.0"
});


export class GithubService {


    private GIST_JSON_EMPTY: any = {
        "description": "Visual Studio Code Sync Settings GIST",
        "public": false,
        "files": {
            "settings.json": {
                "content": "// Empty"
            },
            "launch.json": {
                "content": "// Empty"
            },
            "keybindings.json": {
                "content": "// Empty"
            },
            "extensions.json": {
                "content": "// Empty"
            },
            "locale.json": {
                "content": "// Empty"
            },
            "keybindingsMac.json": {
                "content": "// Empty"
            },
            "ExtensionProperties": {
                "content": "// Empty"
            }
        }
    };

    private GIST_JSON: any = null;

    constructor(private TOKEN: string) {
        github.authenticate({
            type: "oauth",
            token: TOKEN
        });
    }

    public AddFile(list: Array<fileManager.File>, GIST_JSON_b: any) {
        for (var i = 0; i < list.length; i++) {
            var file = list[i];
            GIST_JSON_b.files[file.fileName] = {};
            GIST_JSON_b.files[file.fileName].content = file.content;
        }
        return GIST_JSON_b;
    }
<commit_msg>github default gist JSON changed<commit_after>"use strict";

import * as envir from './environmentPath';
import * as fileManager from './fileManager';


var GitHubApi = require("github4");

var github = new GitHubApi({
    version: "3.0.0"
});


export class GithubService {


    private GIST_JSON_EMPTY: any = {
        "description": "Visual Studio Code Sync Settings GIST",
        "public": false,
        "files": {
            "settings.json": {
                "content": "// Empty"
            },
            "launch.json": {
                "content": "// Empty"
            },
            "keybindings.json": {
                "content": "// Empty"
            },
            "extensions.json": {
                "content": "// Empty"
            },
            "locale.json": {
                "content": "// Empty"
            },
            "keybindingsMac.json": {
                "content": "// Empty"
            },
            "cloudSettings": {
                "content": "// Empty"
            }
        }
    };

    private GIST_JSON: any = null;

    constructor(private TOKEN: string) {
        github.authenticate({
            type: "oauth",
            token: TOKEN
        });
    }

    public AddFile(list: Array<fileManager.File>, GIST_JSON_b: any) {
        for (var i = 0; i < list.length; i++) {
            var file = list[i];
            GIST_JSON_b.files[file.fileName] = {};
            GIST_JSON_b.files[file.fileName].content = file.content;
        }
        return GIST_JSON_b;
    }

{'fraction_non_alphanumeric': 0.140177690029615, 'fraction_numerical': 0.003290556103981573, 'mean_word_length': 1.4184566428003182, 'pattern_counts': {'":': 34, '<': 7, '<?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': '3058799', 'n_tokens_mistral': 912, 'n_tokens_neox': 857, 'n_words': 184}