<commit_before>


var chareditControllers = angular.module('chareditControllers', ['restangular']);


chareditControllers.controller('SkillListCrl', ['$scope','Restangular',
  function($scope, Restangular) {

  	$scope.skills = Restangular.all('skills').getList().$object;
    $scope.filterTags = [];
    
    $scope.initCurrencies = function(currencies){
      var retVal = [];
      for (var cur in currencies)
      {
        var newCur = {};
        newCur.shortname = cur;
        newCur.total = currencies[cur];
        newCur.remaining = currencies[cur];
        retVal.push(newCur);
      }
      return retVal;
    }
    $scope.addRank = function(skill) {<commit_msg>pull given tags<commit_after>


var chareditControllers = angular.module('chareditControllers', ['restangular']);


chareditControllers.controller('SkillListCrl', ['$scope','Restangular',
  function($scope, Restangular) {

  	$scope.skills = Restangular.all('skills').getList().$object;
    $scope.filterTags = [];

    $scope.givenTags = function(){
      var allSkillTags = [];
      _.forEach(_.filter($scope.skills,function(skill){return skill.rank>0}),function(skill){allSkillTags.concat(skill.skill_tags)});
      

    }

    $scope.initCurrencies = function(currencies){
      var retVal = [];
      for (var cur in currencies)
      {
        var newCur = {};
        newCur.shortname = cur;
        newCur.total = currencies[cur];
        newCur.remaining = currencies[cur];
        retVal.push(newCur);
      }
      return retVal;
    }
    $scope.addRank = function(skill) {
{'fraction_non_alphanumeric': 0.14587332053742802, 'fraction_numerical': 0.0006397952655150352, 'mean_word_length': 3.1706666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5521551', 'n_tokens_mistral': 505, 'n_tokens_neox': 490, 'n_words': 76}