<commit_before>from dlstats.fetchers._skeleton import Skeleton, Category, Series, Dataset, Provider
import io
import zipfile
import urllib.request
import xlrd
import os
import datetime
import pandas
import random

class WorldBank(Skeleton):
    def __init__(self):
        super().__init__()         
        self.response = urllib.request.urlopen(
                   'http://siteresources.worldbank.org/INTPROSPECTS/Resources/' +\
                   'GemDataEXTR.zip')
       
        #Getting released date from headers of the Zipfile
        self.releaseDates_ = self.response.getheaders()[1][1] 
        self.releaseDates = [datetime.datetime.strptime(self.releaseDates_[5:], 
        "%d %b %Y %H:%M:%S GMT")]
       
        self.zipfile_ = zipfile.ZipFile(io.BytesIO(self.response.read()))  
        self.excelfile_ = {'GemDataEXTR':{name : self.zipfile_.read(name) for name in
                           self.zipfile_.namelist()}}
        self.provider = Provider(name='World Bank',website='http://www.worldbank.org/')
                           
    def update_selected_database(self, datasetCode):
        
        if datasetCode=='GEM':
            excelfile = self.excelfile_['GemDataEXTR']<commit_msg>Match method name with the skeleton<commit_after>from dlstats.fetchers._skeleton import Skeleton, Category, Series, Dataset, Provider
import io
import zipfile
import urllib.request
import xlrd
import os
import datetime
import pandas
import random

class WorldBank(Skeleton):
    def __init__(self):
        super().__init__()         
        self.response = urllib.request.urlopen(
                   'http://siteresources.worldbank.org/INTPROSPECTS/Resources/' +\
                   'GemDataEXTR.zip')
       
        #Getting released date from headers of the Zipfile
        self.releaseDates_ = self.response.getheaders()[1][1] 
        self.releaseDates = [datetime.datetime.strptime(self.releaseDates_[5:], 
        "%d %b %Y %H:%M:%S GMT")]
       
        self.zipfile_ = zipfile.ZipFile(io.BytesIO(self.response.read()))  
        self.excelfile_ = {'GemDataEXTR':{name : self.zipfile_.read(name) for name in
                           self.zipfile_.namelist()}}
        self.provider = Provider(name='World Bank',website='http://www.worldbank.org/')
                           
    def upsert_dataset(self, datasetCode):
        
        if datasetCode=='GEM':
            excelfile = self.excelfile_['GemDataEXTR']
{'fraction_non_alphanumeric': 0.11311475409836065, 'fraction_numerical': 0.002459016393442623, 'mean_word_length': 2.4673295454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5806451', 'n_tokens_mistral': 748, 'n_tokens_neox': 712, 'n_words': 142}