<commit_before>"use strict";

import * as envir from './environmentPath';
import * as fileManager from './fileManager';
import * as vscode from 'vscode';
import { Environment } from './environmentPath';

var proxyURL: string = vscode.workspace.getConfiguration("http")["proxy"] || process.env["http_proxy"];
var host: string = vscode.workspace.getConfiguration("sync")["host"];
var pathPrefix: string = vscode.workspace.getConfiguration("sync")["pathPrefix"];
if (!host || host === "") {
    host = "api.github.com";
    pathPrefix = "";
}
var GitHubApi = require("github");
var github = new GitHubApi({
    proxy: proxyURL,
    version: "3.0.0",
    host: host,
    pathPrefix: pathPrefix
});

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"
            },<commit_msg>github request disabling unauthorized requests<commit_after>"use strict";

import * as envir from './environmentPath';
import * as fileManager from './fileManager';
import * as vscode from 'vscode';
import { Environment } from './environmentPath';

var proxyURL: string = vscode.workspace.getConfiguration("http")["proxy"] || process.env["http_proxy"];
var host: string = vscode.workspace.getConfiguration("sync")["host"];
var pathPrefix: string = vscode.workspace.getConfiguration("sync")["pathPrefix"];
if (!host || host === "") {
    host = "api.github.com";
    pathPrefix = "";
}
var GitHubApi = require("github");
var github = new GitHubApi({
    proxy: proxyURL,
    version: "3.0.0",
    host: host,
    pathPrefix: pathPrefix,
    rejectUnauthorized: false
});

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"
            },
{'fraction_non_alphanumeric': 0.15523156089193826, 'fraction_numerical': 0.002572898799313894, 'mean_word_length': 2.651017214397496, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 3, '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': '1264889', 'n_tokens_mistral': 681, 'n_tokens_neox': 656, 'n_words': 166}