<commit_before>__author__ = 'nicole'

import os
from datetime import datetime
from stat import *
from zipfile import ZipFile
import re

from rdflib.namespace import FOAF, DC, RDFS

from dipper import curie_map
from dipper.sources.Source import Source
from dipper.models.InteractionAssoc import InteractionAssoc
from dipper.models.Dataset import Dataset
from dipper.utils.CurieUtil import CurieUtil
from dipper.utils.GraphUtils import GraphUtils


core_bindings = {'dc': DC, 'foaf': FOAF, 'rdfs': RDFS}



class BioGrid(Source):
    '''
    Biogrid interaction data
    '''

    files = {
        'interactions' : {'file': 'interactions.mitab.zip',
                           'url' : 'http://thebiogrid.org/downloads/archives/Latest%20Release/BIOGRID-ALL-LATEST.mitab.zip'
        },
        'identifiers' : {'file' : 'identifiers.tab.zip',
                          'url' : 'http://thebiogrid.org/downloads/archives/Latest%20Release/BIOGRID-IDENTIFIERS-LATEST.tab.zip'
        }
    }

    def __init__(self, tax_ids=None):
        super().__init__('biogrid')

        self.tax_ids = tax_ids
        self.load_bindings()

        self.dataset = Dataset('biogrid', 'The BioGrid', 'http://thebiogrid.org/')

        # Defaults
        if self.tax_ids is None:<commit_msg>BioGrid.py: Added license/rights.<commit_after>__author__ = 'nicole'

import os
from datetime import datetime
from stat import *
from zipfile import ZipFile
import re

from rdflib.namespace import FOAF, DC, RDFS

from dipper import curie_map
from dipper.sources.Source import Source
from dipper.models.InteractionAssoc import InteractionAssoc
from dipper.models.Dataset import Dataset
from dipper.utils.CurieUtil import CurieUtil
from dipper.utils.GraphUtils import GraphUtils


core_bindings = {'dc': DC, 'foaf': FOAF, 'rdfs': RDFS}



class BioGrid(Source):
    '''
    Biogrid interaction data
    '''

    files = {
        'interactions' : {'file': 'interactions.mitab.zip',
                           'url' : 'http://thebiogrid.org/downloads/archives/Latest%20Release/BIOGRID-ALL-LATEST.mitab.zip'
        },
        'identifiers' : {'file' : 'identifiers.tab.zip',
                          'url' : 'http://thebiogrid.org/downloads/archives/Latest%20Release/BIOGRID-IDENTIFIERS-LATEST.tab.zip'
        }
    }

    def __init__(self, tax_ids=None):
        super().__init__('biogrid')

        self.tax_ids = tax_ids
        self.load_bindings()

        self.dataset = Dataset('biogrid', 'The BioGrid', 'http://thebiogrid.org/',None,'http://wiki.thebiogrid.org/doku.php/terms_and_conditions#licensing_and_other_terms_applying_to_content_posted_on_the_biogrid_sites','http://wiki.thebiogrid.org/doku.php/terms_and_conditions')

        # Defaults
        if self.tax_ids is None:
{'fraction_non_alphanumeric': 0.1161524500907441, 'fraction_numerical': 0.0029038112522686023, 'mean_word_length': 3.175757575757576, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6506913', 'n_tokens_mistral': 939, 'n_tokens_neox': 900, 'n_words': 175}