<commit_before>/*
 * Copyright (C) 2014 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */

define(['./Artifact', 'blob/BlobMetadata'], function (Artifact, BlobMetadata) {

    var BlobClient = function () {
        this.artifacts = [];

        // TODO: TOKEN???
        this.blobUrl = '/rest/blob/'; // TODO: any ways to ask for this or get it from the configuration?<commit_msg>BlobClient: allow configuration of server hostname, port, http/s<commit_after>/*
 * Copyright (C) 2014 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */

define(['./Artifact', 'blob/BlobMetadata'], function (Artifact, BlobMetadata) {

    var BlobClient = function (parameters) {
        this.artifacts = [];

        if (parameters) {
            this.server = parameters.server || this.server;
            this.serverPort = parameters.serverPort || this.serverPort;
            this.httpsecure = (parameters.httpsecure !== undefined) ? parameters.httpsecure : this.httpsecure;
        }
        this.blobUrl = '';
        if (this.httpsecure !== undefined && this.server && this.serverPort) {
            this.blobUrl = (this.httpsecure ? 'https://' : 'http://') + this.server + ':' + this.serverPort;
        }

        // TODO: TOKEN???
        this.blobUrl = this.blobUrl + '/rest/blob/'; // TODO: any ways to ask for this or get it from the configuration?
{'fraction_non_alphanumeric': 0.14648295866569977, 'fraction_numerical': 0.005801305293691081, 'mean_word_length': 2.72972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '1502066', 'n_tokens_mistral': 405, 'n_tokens_neox': 383, 'n_words': 107}