id
stringlengths
26
27
content
stringlengths
5.14k
45.6k
classeval_data_ClassEval_0
""" This class is a filter used for accessing gateway filtering, primarily for authentication and access log recording. """ import logging import datetime import logging import datetime class AccessGatewayFilter: """ This class is a filter used for accessing gateway filtering, primarily for auth...
classeval_data_ClassEval_1
""" This is a class for calculating the area of different shapes, including circle, sphere, cylinder, sector and annulus. """ import math import math class AreaCalculator: """ This is a class for calculating the area of different shapes, including circle, sphere, cylinder, sector and annulus. ...
classeval_data_ClassEval_2
""" This is a class for parsing command line arguments to a dictionary. """ class ArgumentParser: """ This is a class for parsing command line arguments to a dictionary. """ def __init__(self): """ Initialize the fields. self.arguments is a dict that stores the a...
classeval_data_ClassEval_3
""" The Arrangement class provides permutation calculations and selection operations for a given set of data elements. """ import itertools import itertools class ArrangementCalculator: """ The Arrangement class provides permutation calculations and selection operations for a given set of data e...
classeval_data_ClassEval_4
""" This is a class as an student assessment system, which supports add student, add course score, calculate GPA, and other functions for students and courses. """ class AssessmentSystem: """ This is a class as an student assessment system, which supports add student, add course score, calculate...
classeval_data_ClassEval_5
""" This class is an automatic guitar simulator that can interpret and play based on the input guitar sheet music. """ class AutomaticGuitarSimulator: """ This class is an automatic guitar simulator that can interpret and play based on the input guitar sheet music. """ def __init__(self...
classeval_data_ClassEval_6
""" This is a class that partitions the given list into different blocks by specifying the number of partitions, with each block having a uniformly distributed length. """ class AvgPartition: """ This is a class that partitions the given list into different blocks by specifying the number of par...
classeval_data_ClassEval_7
""" This is a class that checks for bracket matching """ class BalancedBrackets: """ This is a class that checks for bracket matching """ def __init__(self, expr): """ Initializes the class with an expression. :param expr: The expression to check for balanced bra...
classeval_data_ClassEval_8
""" This is a class as a bank account system, which supports deposit money, withdraw money, view balance, and transfer money. """ class BankAccount: """ This is a class as a bank account system, which supports deposit money, withdraw money, view balance, and transfer money. """ def __in...
classeval_data_ClassEval_9
""" This is a class that implements big number calculations, including adding, subtracting and multiplying. """ class BigNumCalculator: """ This is a class that implements big number calculations, including adding, subtracting and multiplying. """ @staticmethod def add(num1, num2): ...
classeval_data_ClassEval_10
""" This is a class used to process binary data, which includes functions such as clearing non 0 or 1 characters, counting binary string information, and converting to corresponding strings based on different encoding methods. """ class BinaryDataProcessor: """ This is a class used to process bi...
classeval_data_ClassEval_11
""" This is a utility class that provides methods for manipulating and checking status using bitwise operations. """ class BitStatusUtil: """ This is a utility class that provides methods for manipulating and checking status using bitwise operations. """ @staticmethod def add(states...
classeval_data_ClassEval_12
""" This is a class representing a game of blackjack, which includes creating a deck, calculating the value of a hand, and determine the winner based on the hand values of the player and dealer. """ import random import random class BlackjackGame: """ This is a class representing a game of blackj...
classeval_data_ClassEval_13
""" This is a class as managing books system, which supports to add and remove books from the inventory dict, view the inventory, and check the quantity of a specific book. """ class BookManagement: """ This is a class as managing books system, which supports to add and remove books from the inv...
classeval_data_ClassEval_14
""" This is a database class as a book management system, used to handle the operations of adding, removing, updating, and searching books. """ import sqlite3 import sqlite3 class BookManagementDB: """ This is a database class as a book management system, used to handle the operations of adding,...
classeval_data_ClassEval_15
""" his is a class that implements the Boyer-Moore algorithm for string searching, which is used to find occurrences of a pattern within a given text. """ class BoyerMooreSearch: """ his is a class that implements the Boyer-Moore algorithm for string searching, which is used to find occurrences ...
classeval_data_ClassEval_16
""" This is a class for a calculator, capable of performing basic arithmetic calculations on numerical expressions using the operators +, -, *, /, and ^ (exponentiation). """ class Calculator: """ This is a class for a calculator, capable of performing basic arithmetic calculations on numerical ...
classeval_data_ClassEval_17
""" This is a class as CalendarUtil that provides functionalities to manage calendar events, schedule appointments, and perform conflict checks. """ from datetime import datetime, timedelta from datetime import datetime, timedelta class CalendarUtil: """ This is a class as CalendarUtil that prov...
classeval_data_ClassEval_18
""" This is a custom class that allows keys to be in camel case style by converting them from underscore style, which provides dictionary-like functionality. """ class CamelCaseMap: """ This is a custom class that allows keys to be in camel case style by converting them from underscore style, wh...
classeval_data_ClassEval_19
""" This is a class that uses the Chandrasekhar's Sieve method to find all prime numbers within the range """ class ChandrasekharSieve: """ This is a class that uses the Chandrasekhar's Sieve method to find all prime numbers within the range """ def __init__(self, n): """ ...
classeval_data_ClassEval_20
""" This is a chat class with the functions of adding users, removing users, sending messages, and obtaining messages. """ from datetime import datetime from datetime import datetime class Chat: """ This is a chat class with the functions of adding users, removing users, sending messages, and ob...
classeval_data_ClassEval_21
""" This is a class representing a classroom, capable of adding and removing courses, checking availability at a given time, and detecting conflicts when scheduling new courses. """ from datetime import datetime from datetime import datetime class Classroom: """ This is a class representing a cl...
classeval_data_ClassEval_22
""" This is a class as a class registration system, allowing to register students, register them for classes, retrieve students by major, get a list of all majors, and determine the most popular class within a specific major. """ class ClassRegistrationSystem: """ This is a class as a class regi...
classeval_data_ClassEval_23
""" This is a class that provides methods to calculate the number of combinations for a specific count, calculate all possible combinations, and generate combinations with a specified number of elements. """ import math from typing import List import math from typing import List class CombinationCalcula...
classeval_data_ClassEval_24
""" This is a class that implements addition, subtraction, multiplication, and division operations for complex numbers. """ class ComplexCalculator: """ This is a class that implements addition, subtraction, multiplication, and division operations for complex numbers. """ def __init__(...
classeval_data_ClassEval_25
""" This is a class as utility for managing and manipulating Cookies, including methods for retrieving, saving, and setting Cookies data. """ import json import json class CookiesUtil: """ This is a class as utility for managing and manipulating Cookies, including methods for retrieving, saving,...
classeval_data_ClassEval_26
""" This is a class for processing CSV files, including readring and writing CSV data, as well as processing specific operations and saving as a new CSV file. """ import csv import csv class CSVProcessor: """ This is a class for processing CSV files, including readring and writing CSV data, as w...
classeval_data_ClassEval_27
""" This is a class for currency conversion, which supports to convert amounts between different currencies, retrieve supported currencies, add new currency rates, and update existing currency rates. """ class CurrencyConverter: """ This is a class for currency conversion, which supports to conv...
classeval_data_ClassEval_28
""" This is a class for processing a database, supporting to create tables, insert data into the database, search for data based on name, and delete data from the database. """ import sqlite3 import pandas as pd import sqlite3 import pandas as pd class DatabaseProcessor: """ This is a class for ...
classeval_data_ClassEval_29
""" This is a class for performing data statistics, supporting to calculate the mean, median, and mode of a given data set. """ from collections import Counter from collections import Counter class DataStatistics: """ This is a class for performing data statistics, supporting to calculate the me...
classeval_data_ClassEval_30
""" This is a class for performing data statistics, supporting to get the sum, minimum, maximum, variance, standard deviation, and correlation of a given dataset. """ import numpy as np import numpy as np class DataStatistics2: """ This is a class for performing data statistics, supporting to ge...
classeval_data_ClassEval_31
""" This is a class that performs advanced mathematical calculations and statistics, including correlation coefficient, skewness, kurtosis, and probability density function (PDF) for a normal distribution. """ import math import math class DataStatistics4: """ This is a class that performs advan...
classeval_data_ClassEval_32
""" This is a class that provides methods for decryption, including the Caesar cipher, Vigenere cipher, and Rail Fence cipher. """ class DecryptionUtils: """ This is a class that provides methods for decryption, including the Caesar cipher, Vigenere cipher, and Rail Fence cipher. """ de...
classeval_data_ClassEval_33
""" This is a class that allows to use different discount strategy based on shopping credit or shopping cart in supermarket. """ class DiscountStrategy: """ This is a class that allows to use different discount strategy based on shopping credit or shopping cart in supermarket. """ def _...
classeval_data_ClassEval_34
""" This is a class that handles Word documents and provides functionalities for reading, writing, and modifying the content of Word documents. """ from docx import Document from docx.shared import Pt from docx.enum.text import WD_PARAGRAPH_ALIGNMENT from docx import Document from docx.shared import Pt f...
classeval_data_ClassEval_35
""" This class is an implementation of the classic 8-puzzle game, including methods for finding the blank tile, making moves, getting possible moves, and solving the puzzle using a breadth-first search algorithm. """ class EightPuzzle: """ This class is an implementation of the classic 8-puzzle ...
classeval_data_ClassEval_36
""" This is a class that serves as an email client, implementing functions such as checking emails, determining whether there is sufficient space, and cleaning up space """ from datetime import datetime from datetime import datetime class EmailClient: """ This is a class that serves as an email ...
classeval_data_ClassEval_37
""" This is a class that provides methods for encryption, including the Caesar cipher, Vigenere cipher, and Rail Fence cipher. """ class EncryptionUtils: """ This is a class that provides methods for encryption, including the Caesar cipher, Vigenere cipher, and Rail Fence cipher. """ de...
classeval_data_ClassEval_38
""" This is a class for processing excel files, including readring and writing excel data, as well as processing specific operations and saving as a new excel file. """ import openpyxl import openpyxl class ExcelProcessor: """ This is a class for processing excel files, including readring and w...
classeval_data_ClassEval_39
""" This is a class in Python that can perform calculations with basic arithmetic operations, including addition, subtraction, multiplication, division, and modulo. """ import re from collections import deque from decimal import Decimal class ExpressionCalculator: """ This is a class in Python th...
classeval_data_ClassEval_40
""" This is a class as fitness tracker that implements to calculate BMI (Body Mass Index) and calorie intake based on the user's height, weight, age, and sex. """ class FitnessTracker: """ This is a class as fitness tracker that implements to calculate BMI (Body Mass Index) and calorie intake ba...
classeval_data_ClassEval_41
""" This class is an implementation of a Gomoku game, supporting for making moves, checking for a winner, and checking if there are five consecutive symbols on the game board. """ class GomokuGame: """ This class is an implementation of a Gomoku game, supporting for making moves, checking for a ...
classeval_data_ClassEval_42
""" This is a class as hotel management system, managing the booking, check-in, check-out, and availability of rooms in a hotel with different room types. """ class Hotel: """ This is a class as hotel management system, managing the booking, check-in, check-out, and availability of rooms in a ho...
classeval_data_ClassEval_43
""" This is a class as personnel management system that implements functions such as adding, deleting, querying, and updating employees """ class HRManagementSystem: """ This is a class as personnel management system that implements functions such as adding, deleting, querying, and updating empl...
classeval_data_ClassEval_44
""" This is a class as util for html, supporting for formatting and extracting code from HTML text, including cleaning up the text and converting certain elements into specific marks. """ import re import string import gensim from bs4 import BeautifulSoup import re import string import gensim from bs4 im...
classeval_data_ClassEval_45
""" This is a class to process image, including loading, saving, resizing, rotating, and adjusting the brightness of images. """ from PIL import Image, ImageEnhance, ImageChops from PIL import Image, ImageEnhance class ImageProcessor: """ This is a class to process image, including loading, savi...
classeval_data_ClassEval_46
""" This is a class that implements the Linear interpolation operation of one-dimensional and two-dimensional data """ class Interpolation: """ This is a class that implements the Linear interpolation operation of one-dimensional and two-dimensional data """ def __init__(self): ...
classeval_data_ClassEval_47
""" This is a class to process IP Address, including validating, getting the octets and obtaining the binary representation of a valid IP address. """ class IPAddress: """ This is a class to process IP Address, including validating, getting the octets and obtaining the binary representation of a...
classeval_data_ClassEval_48
""" This is a class as tool for ip that can be used to obtain the local IP address, validate its validity, and also provides the functionality to retrieve the corresponding hostname. """ import socket import socket import netifaces class IpUtil: """ This is a class as tool for ip that can be us...
classeval_data_ClassEval_49
""" This is a class that provides functionalities to publish positions, remove positions, submit resumes, withdraw resumes, search for positions, and obtain candidate information. """ class JobMarketplace: """ This is a class that provides functionalities to publish positions, remove positions, ...
classeval_data_ClassEval_50
""" This is a class to process JSON file, including reading and writing JSON files, as well as processing JSON data by removing a specified key from the JSON object. """ import json import os import json import os class JSONProcessor: """ This is a class to process JSON file, including reading a...
classeval_data_ClassEval_51
""" This is a class as KappaCalculator, supporting to calculate Cohen's and Fleiss' kappa coefficient. """ import numpy as np import numpy as np class KappaCalculator: """ This is a class as KappaCalculator, supporting to calculate Cohen's and Fleiss' kappa coefficient. """ @staticmeth...
classeval_data_ClassEval_52
""" This is a class about Lemmatization, which utilizes the nltk library to perform lemmatization and part-of-speech tagging on sentences, as well as remove punctuation. """ import nltk from nltk.stem import WordNetLemmatizer from nltk import pos_tag, word_tokenize import string import nltk from nltk.ste...
classeval_data_ClassEval_53
""" This is a class allows to add words to a list and find the longest word in a given sentence by comparing the words with the ones in the word list. """ import re import string import re import string class LongestWord: """ This is a class allows to add words to a list and find the longest wor...
classeval_data_ClassEval_54
""" MahjongConnect is a class representing a game board for Mahjong Connect with features like creating the board, checking valid moves, finding paths, removing icons, and checking if the game is over. """ import random import random class MahjongConnect: """ MahjongConnect is a class representi...
classeval_data_ClassEval_55
""" his is a class that implements a manacher algorithm to find the Longest palindromic substring in a given string. """ class Manacher: """ his is a class that implements a manacher algorithm to find the Longest palindromic substring in a given string. """ def __init__(self, input_stri...
classeval_data_ClassEval_56
""" The class calculates precision, recall, F1 score, and accuracy based on predicted and true labels. """ class MetricsCalculator: """ The class calculates precision, recall, F1 score, and accuracy based on predicted and true labels. """ def __init__(self): """ Initiali...
classeval_data_ClassEval_57
""" The class provides to calculate Mean Reciprocal Rank (MRR) and Mean Average Precision (MAP) based on input data, where MRR measures the ranking quality and MAP measures the average precision. """ import numpy as np import numpy as np class MetricsCalculator2: """ The class provides to calcu...
classeval_data_ClassEval_58
""" This is a class that implements mine sweeping games including minesweeping and winning judgment. """ import random import random class MinesweeperGame: """ This is a class that implements mine sweeping games including minesweeping and winning judgment. """ def __init__(self, n, k) -...
classeval_data_ClassEval_59
""" this is a class as movie booking system, which allows to add movies, book tickets and check the available movies within a given time range. """ from datetime import datetime import numpy as np from datetime import datetime import numpy as np class MovieBookingSystem: """ this is a class as ...
classeval_data_ClassEval_60
""" This is a class for movie database operations, which allows for inserting movie information, searching for movie information by name, and deleting movie information by name. """ import sqlite3 import sqlite3 class MovieTicketDB: """ This is a class for movie database operations, which allows...
classeval_data_ClassEval_61
""" This is a class as a music player that provides to play, stop, add songs, remove songs, set volume, shuffle, and switch to the next or previous song. """ import random class MusicPlayer: """ This is a class as a music player that provides to play, stop, add songs, remove songs, set volume, sh...
classeval_data_ClassEval_62
""" The class processes NLP data by removing stop words from a list of strings using a pre-defined stop word list. """ class NLPDataProcessor: """ The class processes NLP data by removing stop words from a list of strings using a pre-defined stop word list. """ def construct_stop_word_...
classeval_data_ClassEval_63
""" The class processes NLP data by extracting words from a list of strings, calculating the frequency of each word, and returning the top 5 most frequent words. """ from collections import Counter import re import re from collections import Counter class NLPDataProcessor2: """ The class process...
classeval_data_ClassEval_64
""" The class allows to convert decimal to binary, octal and hexadecimal repectively and contrarily """ class NumberConverter: """ The class allows to convert decimal to binary, octal and hexadecimal repectively and contrarily """ @staticmethod def decimal_to_binary(decimal_num): ...
classeval_data_ClassEval_65
""" This is a class that provides to convert numbers into their corresponding English word representation, including handling the conversion of both the integer and decimal parts, and incorporating appropriate connectors and units. """ class NumberWordFormatter: """ This is a class that provides...
classeval_data_ClassEval_66
""" This is a class that provides functionality to replace numeric entities with their corresponding characters in a given string. """ class NumericEntityUnescaper: """ This is a class that provides functionality to replace numeric entities with their corresponding characters in a given string. ...
classeval_data_ClassEval_67
""" The class manages restaurant orders by allowing the addition of dishes, calculation of the total cost, and checkout. """ class Order: """ The class manages restaurant orders by allowing the addition of dishes, calculation of the total cost, and checkout. """ def __init__(self): ...
classeval_data_ClassEval_68
""" PageUtil class is a versatile utility for handling pagination and search functionalities in an efficient and convenient manner. """ class PageUtil: """ PageUtil class is a versatile utility for handling pagination and search functionalities in an efficient and convenient manner. """ ...
classeval_data_ClassEval_69
""" The class allows merging multiple PDF files into one and extracting text from PDFs using PyPDF2 library. """ import PyPDF2 import PyPDF2 class PDFHandler: """ The class allows merging multiple PDF files into one and extracting text from PDFs using PyPDF2 library. """ def __init__(se...
classeval_data_ClassEval_70
""" This class validates input personal information data and sets invalid fields to None based to specific rules. """ class PersonRequest: """ This class validates input personal information data and sets invalid fields to None based to specific rules. """ def __init__(self, name: str, ...
classeval_data_ClassEval_71
""" This class implements a functionality of a sokoban game, where the player needs to move boxes to designated targets in order to win. """ class PushBoxGame: """ This class implements a functionality of a sokoban game, where the player needs to move boxes to designated targets in order to win....
classeval_data_ClassEval_72
""" The class provides to match, find all occurrences, split, and substitute text using regular expressions. It also includes predefined patterns, validating phone numbers and extracting email addresses. """ import re import re class RegexUtils: """ The class provides to match, find all occurren...
classeval_data_ClassEval_73
""" The class represents a role-playing game character, which allows to attack other characters, heal, gain experience, level up, and check if the character is alive. """ class RPGCharacter: """ The class represents a role-playing game character, which allows to attack other characters, heal, ga...
classeval_data_ClassEval_74
""" This is a class as a server, which handles a white list, message sending and receiving, and information display. """ class Server: """ This is a class as a server, which handles a white list, message sending and receiving, and information display. """ def __init__(self): ""...
classeval_data_ClassEval_75
""" The class manages items, their prices, quantities, and allows to for add, removie, view items, and calculate the total price. """ class ShoppingCart: """ The class manages items, their prices, quantities, and allows to for add, removie, view items, and calculate the total price. """ ...
classeval_data_ClassEval_76
""" This is a class as sigin in system, including adding users, signing in/out, checking sign-in status, and retrieving signed-in/not signed-in users. """ class SignInSystem: """ This is a class as sigin in system, including adding users, signing in/out, checking sign-in status, and retrieving s...
classeval_data_ClassEval_77
""" The class is a snake game, with allows snake to move and eat food, and also enables to reset, and generat a random food position. """ import random import random class Snake: """ The class is a snake game, with allows snake to move and eat food, and also enables to reset, and generat a rando...
classeval_data_ClassEval_78
""" The class allows to split sentences, count words in a sentence, and process a text file to find the maximum word count. """ import re import re class SplitSentence: """ The class allows to split sentences, count words in a sentence, and process a text file to find the maximum word count. ...
classeval_data_ClassEval_79
""" This class generates SQL statements for common operations on a table, such as SELECT, INSERT, UPDATE, and DELETE. """ class SQLGenerator: """ This class generates SQL statements for common operations on a table, such as SELECT, INSERT, UPDATE, and DELETE. """ def __init__(self, tabl...
classeval_data_ClassEval_80
""" This class provides to build SQL queries, including SELECT, INSERT, UPDATE, and DELETE statements. """ class SQLQueryBuilder: """ This class provides to build SQL queries, including SELECT, INSERT, UPDATE, and DELETE statements. """ @staticmethod def select(table, columns='*'...
classeval_data_ClassEval_81
""" This is a class that implements methods for calculating indicators such as median, mode, correlation matrix, and Z-score in statistics. """ import math import math class Statistics3: """ This is a class that implements methods for calculating indicators such as median, mode, correlation matr...
classeval_data_ClassEval_82
""" This is a class as StockPortfolioTracker that allows to add stocks, remove stocks, buy stocks, sell stocks, calculate the total value of the portfolio, and obtain a summary of the portfolio. """ class StockPortfolioTracker: """ This is a class as StockPortfolioTracker that allows to add stoc...
classeval_data_ClassEval_83
""" This is a class with database operation, including inserting student information, searching for student information by name, and deleting student information by name. """ import sqlite3 import sqlite3 class StudentDatabaseProcessor: """ This is a class with database operation, including inse...
classeval_data_ClassEval_84
""" The class handles reading, writing, and processing text files. It can read the file as JSON, read the raw text, write content to the file, and process the file by removing non-alphabetic characters. """ import json import json class TextFileProcessor: """ The class handles reading, writing, ...
classeval_data_ClassEval_85
""" The class manages temperature control, including setting and retrieving the target temperature, adjusting the mode, and simulating temperature operation. """ import time import time class Thermostat: """ The class manages temperature control, including setting and retrieving the target tempe...
classeval_data_ClassEval_86
""" The class represents a game of Tic-Tac-Toe and its functions include making a move on the board, checking for a winner, and determining if the board is full. """ class TicTacToe: """ The class represents a game of Tic-Tac-Toe and its functions include making a move on the board, checking for...
classeval_data_ClassEval_87
""" This is a time util class, including getting the current time and date, adding seconds to a datetime, converting between strings and datetime objects, calculating the time difference in minutes, and formatting a datetime object. """ import datetime import time import datetime import time class TimeU...
classeval_data_ClassEval_88
""" The class allows to calculate trigonometric values, including cosine, sine, and tangent, using Taylor series approximations. """ from math import pi, fabs from math import pi, fabs class TriCalculator: """ The class allows to calculate trigonometric values, including cosine, sine, and tangen...
classeval_data_ClassEval_89
""" This ia a game of twenty-four points, which provides to generate four numbers and check whether player's expression is equal to 24. """ import random import random class TwentyFourPointGame: """ This ia a game of twenty-four points, which provides to generate four numbers and check whether p...
classeval_data_ClassEval_90
""" The class supports to handle URLs, including extracting the scheme, host, path, query parameters, and fragment. """ class URLHandler: """ The class supports to handle URLs, including extracting the scheme, host, path, query parameters, and fragment. """ def __init__(self, url): ...
classeval_data_ClassEval_91
""" The class is a utility for encapsulating and manipulating the path component of a URL, including adding nodes, parsing path strings, and building path strings with optional encoding. """ import urllib.parse import urllib.parse class UrlPath: """ The class is a utility for encapsulating and...
classeval_data_ClassEval_92
""" This is a database management class for user login verification, providing functions for inserting user information, searching user information, deleting user information, and validating user login. """ import sqlite3 class UserLoginDB: """ This is a database management class for user login v...
classeval_data_ClassEval_93
""" The class provides vector operations, including calculating similarity, cosine similarities, average similarity, and IDF weights. """ import numpy as np from gensim import matutils from numpy import dot, array import numpy as np from gensim import matutils from numpy import dot, array class VectorUt...
classeval_data_ClassEval_94
""" This is a class to simulate a vending machine, including adding products, inserting coins, purchasing products, viewing balance, replenishing product inventory, and displaying product information. """ class VendingMachine: """ This is a class to simulate a vending machine, including adding p...
classeval_data_ClassEval_95
""" The class manages inventory and orders, including adding products, updating product quantities, retrieving product quantities, creating orders, changing order statuses, and tracking orders. """ class Warehouse: """ The class manages inventory and orders, including adding products, updating p...
classeval_data_ClassEval_96
""" This is a class representing a weather system that provides functionality to query weather information for a specific city and convert temperature units between Celsius and Fahrenheit. """ class WeatherSystem: """ This is a class representing a weather system that provides functionality to q...
classeval_data_ClassEval_97
""" The class provides a text-to-number conversion utility, allowing conversion of written numbers (in words) to their numerical representation. """ class Words2Numbers: """ The class provides a text-to-number conversion utility, allowing conversion of written numbers (in words) to their numeric...
classeval_data_ClassEval_98
""" This is a class as XML files handler, including reading, writing, processing as well as finding elements in a XML file. """ import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET class XMLProcessor: """ This is a class as XML files handler, including reading, writing, process...
classeval_data_ClassEval_99
""" This is a compressed file processing class that provides the ability to read and decompress compressed files """ import zipfile import zipfile class ZipFileProcessor: """ This is a compressed file processing class that provides the ability to read and decompress compressed files """ ...