<commit_before>#!/usr/bin/env python
#---------------------------------------------------------------------------------------------------
# Collects all the necessary data to generate rankings for all datasets in the AnalysisOps space.
#---------------------------------------------------------------------------------------------------
import sys, os, math, datetime, sqlite3, operator, random, ConfigParser
import phedexData, popDbData, dbApi

class weeklyRockerBoard():
    def __init__(self):
        config = ConfigParser.RawConfigParser()
        config.read('/usr/local/IntelROCCS/DataDealer/intelroccs.cfg')
        self.rankingsCachePath = config.get('DataDealer', 'cache')
        self.limit = config.getfloat('DataDealer', 'weekly_limit')
        self.phedexData = phedexData.phedexData()
        self.popDbData = popDbData.popDbData()
        self.dbApi = dbApi.dbApi()

#===================================================================================================
#  H E L P E R S
#===================================================================================================
    def weightedChoice(self, choices):<commit_msg>Changed config file path<commit_after>#!/usr/bin/env python
#---------------------------------------------------------------------------------------------------
# Collects all the necessary data to generate rankings for all datasets in the AnalysisOps space.
#---------------------------------------------------------------------------------------------------
import sys, os, math, datetime, sqlite3, operator, random, ConfigParser
import phedexData, popDbData, dbApi

class weeklyRockerBoard():
    def __init__(self):
        config = ConfigParser.RawConfigParser()
        config.read('intelroccs.cfg')
        self.rankingsCachePath = config.get('DataDealer', 'cache')
        self.limit = config.getfloat('DataDealer', 'weekly_limit')
        self.phedexData = phedexData.phedexData()
        self.popDbData = popDbData.popDbData()
        self.dbApi = dbApi.dbApi()

#===================================================================================================
#  H E L P E R S
#===================================================================================================
    def weightedChoice(self, choices):
{'fraction_non_alphanumeric': 0.41849255039439087, 'fraction_numerical': 0.0008764241893076249, 'mean_word_length': 2.2019635343618513, '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': '7372467', 'n_tokens_mistral': 510, 'n_tokens_neox': 477, 'n_words': 120}