<commit_before>#
# Collective Knowledge (individual environment - setup)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: <NAME>, <EMAIL>, http://fursin.net
#

##############################################################################
# customize directories to automatically find and register software

import os

def dirs(i):
    return {'return':0}

##############################################################################
# customize directories to automatically find and register software

def limit(i):
    xlst=i['list']
    lst=[]

    for p in xlst:
        pp=os.path.join(p,'Windows')
        xx=os.listdir(pp)
        for fx in xx:
            px=os.path.join(pp,fx)
            if os.path.isdir(px) and fx.lower().startswith('v'):
               lst.append(px)

    return {'return':0, 'list':lst}

##############################################################################
# get version from path

def version_cmd(i):
<commit_msg>fixing small bug<commit_after>#
# Collective Knowledge (individual environment - setup)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: <NAME>, <EMAIL>, http://fursin.net
#

##############################################################################
# customize directories to automatically find and register software

import os

def dirs(i):
    return {'return':0}

##############################################################################
# customize directories to automatically find and register software

def limit(i):
    xlst=i['list']
    lst=[]

    for p in xlst:
        pp=os.path.join(p,'Windows')
        if os.path.isdir(pp):
           xx=os.listdir(pp)
           for fx in xx:
               px=os.path.join(pp,fx)
               if os.path.isdir(px) and fx.lower().startswith('v'):
                  lst.append(px)

    return {'return':0, 'list':lst}

##############################################################################
# get version from path

def version_cmd(i):

{'fraction_non_alphanumeric': 0.32129094412331405, 'fraction_numerical': 0.0019267822736030828, 'mean_word_length': 3.9452380952380954, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '948611', 'n_tokens_mistral': 587, 'n_tokens_neox': 533, 'n_words': 150}