<commit_before>/**
 * Created by groupsky on 02.12.15.
 */

require('../main').service('trelloService', /*@ngInject*/function ($http, config) {
    return {
        getCards: function () {
            return $http.jsonp('//api.trello.com/1/boards/' + config.boardId + '/cards/open', {
                    params: {
                        key: config.trelloAppKey,
                        callback: 'JSON_CALLBACK'
                    }
                })
                .then(function (response) {
                    return response.data;
                });
        },
        getCardAttachment: function (cardId, attachmentId) {
            return $http.jsonp('//api.trello.com/1/cards/' + cardId + "/attachments/" + attachmentId, {<commit_msg>force http for trello api<commit_after>/**
 * Created by groupsky on 02.12.15.
 */

require('../main').service('trelloService', /*@ngInject*/function ($http, config) {
    return {
        getCards: function () {
            return $http.jsonp('http://api.trello.com/1/boards/' + config.boardId + '/cards/open', {
                    params: {
                        key: config.trelloAppKey,
                        callback: 'JSON_CALLBACK'
                    }
                })
                .then(function (response) {
                    return response.data;
                });
        },
        getCardAttachment: function (cardId, attachmentId) {
            return $http.jsonp('//api.trello.com/1/cards/' + cardId + "/attachments/" + attachmentId, {
{'fraction_non_alphanumeric': 0.14455445544554454, 'fraction_numerical': 0.010561056105610561, 'mean_word_length': 1.5057851239669422, 'pattern_counts': {'":': 0, '<': 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': '2255117', 'n_tokens_mistral': 438, 'n_tokens_neox': 408, 'n_words': 74}