diff --git a/documentation/modules.an_array.html b/documentation/modules.an_array.html new file mode 100644 index 0000000..d4471ff --- /dev/null +++ b/documentation/modules.an_array.html @@ -0,0 +1,73 @@ + +Python: module modules.an_array + + + + + +
 
+ 
modules.an_array
index
c:\users\user1\documents\study hard\programming\coursework2017\modules\an_array.py
+

+

+ + + + + +
 
+Modules
       
ctypes
+

+ + + + + +
 
+Classes
       
+
builtins.object +
+
+
AnArray +
+
+
+

+ + + + + + + +
 
+class AnArray(builtins.object)
   Creates an array and gives some tools to work with it.
 
 Methods defined here:
+
__getitem__(self, index)
Gets the value of the element.

+:param index: the index of element.
+:return: value of the element.
+ +
__init__(self, size)
Creates an array with the length size.

+:param size: the size of the array.
+ +
__len__(self)
Returns the length of the array.

+:return: the size of the array.
+ +
__setitem__(self, index, value)
Puts the value in the array element at index position.

+:param index: the index element.
+:param value: the value of element.
+ +
+Data descriptors defined here:
+
__dict__
+
dictionary for instance variables (if defined)
+
+
__weakref__
+
list of weak references to the object (if defined)
+
+

+ \ No newline at end of file diff --git a/documentation/modules.my_research.html b/documentation/modules.my_research.html new file mode 100644 index 0000000..7848496 --- /dev/null +++ b/documentation/modules.my_research.html @@ -0,0 +1,96 @@ + +Python: module modules.my_research + + + + + +
 
+ 
modules.my_research
index
c:\users\user1\documents\study hard\programming\coursework2017\modules\my_research.py
+

+

+ + + + + +
 
+Classes
       
+
builtins.object +
+
+
MainResearch +
+
+
+

+ + + + + + + +
 
+class MainResearch(builtins.object)
   This class represents methods which help to do some research.
 
 Methods defined here:
+
__init__(self)
Reads the information from a file.
+Makes an array which contains that information.
+ +
__str__(self)
Creates a string with series titles.

+:return: a string with series titles
+ +
popular_actors(self)
Creates a dictionary. Gets the information about all
+actors from given series and adds it to the dictionary
+(key - the name of an actor/actress, value - the number of series
+in which that actor/actress performed).

+:return: a dictionary (key - the name of an actor/actress, value -
+the number of series in which that actor/actress performed)
+ +
series_seasons(self)
Creates a dictionary. Gets the information about number of seasons
+in series adds it to the dictionary (key - series title, value - the number
+of seasons).

+:return: a dictionary (key - series title, value - the number of seasons).
+ +
series_titles(self)
Creates a dictionary. Gets every word from series titles and adds it
+to the dictionary(key - word, value - the number of repetition in
+series titles).

+:return: the dictionary(key - word, value - the number of
+repetition in series titles).
+ +
+Data descriptors defined here:
+
__dict__
+
dictionary for instance variables (if defined)
+
+
__weakref__
+
list of weak references to the object (if defined)
+
+

+ + + + + +
 
+Functions
       
main()
Makes the main research.
+
save_info(info, filename)
Creates a new file with a name filename.
+Writes the information from info into this file.

+:param info: a list of tuples with the information
+that should be saved.
+:param filename: a name of a created file.
+

+ + + + + +
 
+Data
       __warningregistry__ = {("unclosed file <_io.TextIOWrapper name='series_seasons.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 123): True, ("unclosed file <_io.TextIOWrapper name='popular_actors.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 118): True, ("unclosed file <_io.TextIOWrapper name='ratings.txt' mode='r' encoding='utf-8'>", <class 'ResourceWarning'>, 16): True, 'version': 0, ("unclosed file <_io.TextIOWrapper name='series_titles.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 129): True}
+ \ No newline at end of file diff --git a/documentation/modules.series_research.html b/documentation/modules.series_research.html new file mode 100644 index 0000000..05436bd --- /dev/null +++ b/documentation/modules.series_research.html @@ -0,0 +1,93 @@ + +Python: module modules.series_research + + + + + +
 
+ 
modules.series_research
index
c:\users\user1\documents\study hard\programming\coursework2017\modules\series_research.py
+

+

+ + + + + +
 
+Modules
       
pytvdbapi.api
+

+ + + + + +
 
+Classes
       
+
builtins.object +
+
+
SeriesResearch +
+
+
+

+ + + + + + + +
 
+class SeriesResearch(builtins.object)
   Implements the SeriesResearch ADT for doing
+research based of the information about series.
 
 Methods defined here:
+
__init__(self, length)
Creates an array.

+:param length: the length of a created array.
+ +
find_len(self)
Returns the length of the array.

+:return: the size of the array.
+ +
get_actors(self, index)
Gets actors from series (the value of the element is
+the name of series).

+:param index: the index of the element.
+:return: the list of actors.
+ +
get_item(self, index)
Gets the value of the element.

+:param index: the index of the element.
+:return: value of the element.
+ +
seasons_number(self, index)
Gets the number of seasons in the given series
+(the value of the element is the name of series).

+:param index: the index of the element.
+:return: the number of seasons.
+ +
set_item(self, index, value)
Puts the value in the array element at index position.

+:param index: the index the element.
+:param value: the value of the element.
+ +
+Data descriptors defined here:
+
__dict__
+
dictionary for instance variables (if defined)
+
+
__weakref__
+
list of weak references to the object (if defined)
+
+

+ + + + + +
 
+Data
       db = <pytvdbapi.api.TVDB object>
+ \ No newline at end of file diff --git a/documentation/modules.work_with_a_file.html b/documentation/modules.work_with_a_file.html new file mode 100644 index 0000000..e896fbb --- /dev/null +++ b/documentation/modules.work_with_a_file.html @@ -0,0 +1,60 @@ + +Python: module modules.work_with_a_file + + + + + +
 
+ 
modules.work_with_a_file
index
c:\users\user1\documents\study hard\programming\coursework2017\modules\work_with_a_file.py
+

# Class WorkWithAFile is created to read information from a file
+# ratings.txt and to convert it into a list of series names.

+

+ + + + + +
 
+Classes
       
+
builtins.object +
+
+
WorkWithAFile +
+
+
+

+ + + + + + + +
 
+class WorkWithAFile(builtins.object)
   Contains functions open_file() and make_list().
+To work with this class you should specify a filename.
 
 Methods defined here:
+
__init__(self, filename)
Creates an empty list.
+:param filename: the name of a file.
+ +
make_list(self, lst)
Creates a list of series names.
+:param lst: a list with all the information from the file.
+:return: a list of series names.
+ +
open_file(self)
Opens a file and saves all the information in a list
+(split by newlines).
+:return: a list with all the information from the file.
+ +
+Data descriptors defined here:
+
__dict__
+
dictionary for instance variables (if defined)
+
+
__weakref__
+
list of weak references to the object (if defined)
+
+

+ \ No newline at end of file diff --git a/modules/my_research.py b/modules/my_research.py index 9fbec0a..188e5e1 100644 --- a/modules/my_research.py +++ b/modules/my_research.py @@ -130,4 +130,4 @@ def main(): return int(average / 47) -print(main()) +main() diff --git a/modules/popular_actors.txt b/modules/popular_actors.txt index 6297a73..7dc0280 100644 --- a/modules/popular_actors.txt +++ b/modules/popular_actors.txt @@ -1,34 +1,34 @@ -3 - Jesse Plemons 3 - Martin Freeman -2 - Alan Alda -2 - Marcia Wallace -2 - Lawrence Gilliard Jr. -2 - Edie Falco -2 - Jeffrey Tambor -2 - Anna Gunn -2 - Aidan Gillen -2 - Lars Mikkelsen -2 - Keith Carradine +3 - Jesse Plemons 2 - Laurie Holden -2 - Alan Dale -2 - Jean Smart -2 - Alexander Siddig -2 - Michael B. Jordan -2 - Seth Gilliam -2 - Nancy Cartwright -2 - Mackenzie Crook -2 - Rob Lowe -2 - Robert Clohessy -2 - Julie Kavner -2 - Connie Britton 2 - Chad L. Coleman +2 - Keith Carradine +2 - Larry David +2 - Lars Mikkelsen +2 - Jeffrey Tambor +2 - Marcia Wallace +2 - Maggie Roswell +2 - Julie Kavner +2 - Mackenzie Crook +2 - Michael B. Jordan 2 - Dan Castellaneta +2 - Alan Alda 2 - Austin Nichols -2 - Kelsey Grammer -2 - Larry David 2 - Nick Offerman -2 - Maggie Roswell -2 - Yeardley Smith -2 - Adewale Akinnuoye-Agbaje +2 - Anna Gunn +2 - Seth Gilliam +2 - Robert Clohessy +2 - Nancy Cartwright +2 - Kelsey Grammer +2 - Edie Falco +2 - Rob Lowe 2 - Titus Welliver +2 - Alexander Siddig +2 - Alan Dale 2 - Bob Odenkirk +2 - Lawrence Gilliard Jr. +2 - Jean Smart +2 - Aidan Gillen +2 - Yeardley Smith +2 - Adewale Akinnuoye-Agbaje +2 - Connie Britton diff --git a/modules/series_seasons.txt b/modules/series_seasons.txt index 7d221da..85af8bd 100644 --- a/modules/series_seasons.txt +++ b/modules/series_seasons.txt @@ -1,46 +1,46 @@ 29 - The Simpsons 27 - Doctor Who 16 - ER -12 - Frasier 12 - M*A*S*H -11 - The X-Files -11 - Friends +12 - Frasier 11 - Columbo -10 - 24 +11 - Friends +11 - The X-Files 10 - Seinfeld +10 - 24 9 - Curb Your Enthusiasm -8 - The Shield -8 - Buffy The Vampire Slayer -8 - Hill Street Blues -8 - Parks And Recreation 8 - 30 Rock +8 - Only Fools And Horses +8 - Hill Street Blues 8 - Star Trek: Deep Space Nine 8 - The Walking Dead -8 - Game Of Thrones 8 - The West Wing +8 - Buffy The Vampire Slayer +8 - Parks And Recreation +8 - The Shield 8 - Mad Men -8 - Only Fools And Horses +8 - Game Of Thrones 7 - The Sopranos -7 - Sex And The City 7 - Oz 7 - Lost +7 - Sex And The City 6 - The Twilight Zone 6 - Breaking Bad 6 - Friday Night Lights 6 - The Wire -5 - Blackadder 5 - Arrested Development -5 - The Thick Of It 5 - Six Feet Under 5 - Sherlock +5 - The Thick Of It +5 - Blackadder +4 - Star Trek 4 - Twin Peaks 4 - The Killing -4 - Star Trek 4 - Cracker -3 - Fargo +3 - Fawlty Towers 3 - Spaced 3 - Deadwood -3 - Fawlty Towers +3 - Fargo 3 - The Office 2 - Battlestar Galactica 2 - The Bridge diff --git a/modules/series_titles.txt b/modules/series_titles.txt index 9858409..d981500 100644 --- a/modules/series_titles.txt +++ b/modules/series_titles.txt @@ -2,91 +2,91 @@ 3 - And 2 - Of 2 - Star -1 - Space -1 - X-Files -1 - City -1 - ER -1 - M*A*S*H -1 - Deep -1 - Friday -1 - Blackadder 1 - Circus -1 - Peaks -1 - Enthusiasm -1 - Vampire -1 - Horses -1 - Flying -1 - Fools +1 - City +1 - Under +1 - Rock 1 - Monty -1 - Deadwood -1 - Buffy +1 - Sex +1 - Blues +1 - Recreation +1 - On +1 - Horses +1 - Seinfeld +1 - Shield +1 - West +1 - Streets +1 - Office +1 - Only +1 - Vampire +1 - Enthusiasm +1 - Friday +1 - Doctor +1 - Columbo 1 - Friends -1 - Fawlty -1 - Killing +1 - Development 1 - Six -1 - Battlestar -1 - Breaking -1 - Partridge +1 - Buffy 1 - Game -1 - Wing -1 - West +1 - Walking +1 - Life +1 - Peaks +1 - Deadwood +1 - Nine +1 - Homicide: +1 - Lost 1 - I’m -1 - Wire -1 - 30 -1 - Hill -1 - Trek -1 - Seinfeld +1 - X-Files +1 - Curb +1 - Python’s +1 - Parks +1 - Towers +1 - Trek: +1 - Night +1 - Blackadder +1 - 24 +1 - Killing +1 - Frasier +1 - Breaking 1 - It -1 - Slayer -1 - Twilight -1 - Sopranos -1 - Thrones -1 - Recreation -1 - Nine -1 - Who -1 - Shield +1 - Street +1 - Sherlock +1 - Space +1 - Your 1 - Bad -1 - Fargo -1 - Arrested +1 - Spaced +1 - Fools +1 - Lights 1 - Zone -1 - Curb -1 - Under -1 - On -1 - Oz +1 - Thrones +1 - Fawlty 1 - Simpsons -1 - Blues -1 - Thick -1 - Walking -1 - Sex -1 - Frasier -1 - Life +1 - Galactica +1 - Deep 1 - Mad -1 - Towers -1 - Night -1 - Spaced -1 - Parks -1 - Trek: -1 - Office +1 - Who +1 - Thick +1 - Battlestar +1 - 30 +1 - Oz +1 - Bridge +1 - Sopranos +1 - ER +1 - Flying +1 - Arrested +1 - Wire +1 - M*A*S*H +1 - Men +1 - Partridge +1 - Twilight +1 - Wing +1 - Dead 1 - Feet -1 - Doctor -1 - Only -1 - Americans 1 - Twin -1 - Columbo -1 - Dead -1 - Rock -1 - Men -1 - 24 -1 - Galactica -1 - Lost -1 - Python’s -1 - Sherlock -1 - Homicide: -1 - Street -1 - Streets 1 - Alan -1 - Lights -1 - Bridge +1 - Slayer +1 - Americans +1 - Fargo 1 - Cracker -1 - Your -1 - Development +1 - Hill +1 - Trek