<commit_before>from log import log
import urllib2
import xml.etree.ElementTree as etree

MUSICBRAINZ_COLLECTION_CARNATIC = ""
MUSICBRAINZ_COLLECTION_HINDUSTANI = ""
MUSICBRAINZ_COLLECTION_MAKAM = ""

def ws_ids(xml):
    ids = []
    tree = etree.fromstring(xml)
    count = int(tree.getchildren()[0].getchildren()[2].attrib["count"])
    for rel in tree.getchildren()[0].getchildren()[2].getchildren():
        ids.append(rel.attrib["id"])
    return (count, ids)


def get_releases_in_collection(collection):
    """Get a list of the releases in the specified musicbrainz collection"""

    releases = []
    count = 25
    offset = 0<commit_msg>Point compmusic at our mirror<commit_after>from log import log
import urllib2
import xml.etree.ElementTree as etree

import musicbrainzngs as mb
mb.set_useragent("Dunya", "0.1")
mb.set_rate_limit(False)
mb.set_hostname("sitar.s.upf.edu:8090")

MUSICBRAINZ_COLLECTION_CARNATIC = ""
MUSICBRAINZ_COLLECTION_HINDUSTANI = ""
MUSICBRAINZ_COLLECTION_MAKAM = ""

def ws_ids(xml):
    ids = []
    tree = etree.fromstring(xml)
    count = int(tree.getchildren()[0].getchildren()[2].attrib["count"])
    for rel in tree.getchildren()[0].getchildren()[2].getchildren():
        ids.append(rel.attrib["id"])
    return (count, ids)


def get_releases_in_collection(collection):
    """Get a list of the releases in the specified musicbrainz collection"""

    releases = []
    count = 25
    offset = 0
{'fraction_non_alphanumeric': 0.1271716469770674, 'fraction_numerical': 0.015288394718554551, 'mean_word_length': 4.55984555984556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '2725267', 'n_tokens_mistral': 534, 'n_tokens_neox': 507, 'n_words': 103}