MCPcopy Create free account

hub / github.com/BurntSushi/imdb-rename / functions

Functions335 in github.com/BurntSushi/imdb-rename

↓ 2 callersMethodvotes_ge
Set the lower inclusive bound on a title's number of votes.
imdb-index/src/search.rs:353
↓ 2 callersFunctionwrite_tsv
Write the given result set to the given writer. If a result is an episode, then the index given is used to look up relevant info about its TV show, i
src/util.rs:73
↓ 2 callersFunctionwrite_tsv_title
( mut wtr: W, position: usize, score: f64, ent: &MediaEntity, )
src/util.rs:104
↓ 2 callersMethodwrite_u32
Write a u32LE.
imdb-index/src/index/writer.rs:44
↓ 1 callersFunctionapp
()
imdb-eval/src/main.rs:202
↓ 1 callersFunctionapp
()
src/main.rs:219
↓ 1 callersFunctionapprox_eq
Compares two floating point numbers for equality approximately for some epsilon.
imdb-eval/src/eval.rs:468
↓ 1 callersMethodbuild
Build a `Renamer` from the current configuration.
src/rename.rs:736
↓ 1 callersMethodcandidate
Produce a structured candidate for renaming from a source path. The candidate returned represents a heuristic analysis performed on the source path,
src/rename.rs:453
↓ 1 callersMethodcmp
(&self, other: &TitleKind)
imdb-index/src/record.rs:135
↓ 1 callersFunctioncollect_paths
Collect all file paths from a sequence of OsStrings from the command line. If `follow` is true, then any paths that are directories are expanded to in
src/main.rs:341
↓ 1 callersFunctioncreate_name_index
Creates the name index from the title tsv data and an AKA index. The AKA index is used to index additional names for each title record to improve reca
imdb-index/src/index/mod.rs:520
↓ 1 callersMethoddocid_to_nameid
Return the name ID used to the index the given document id. This panics if the given document id does not correspond to an indexed document.
imdb-index/src/index/names.rs:261
↓ 1 callersFunctiondownload_all
Download ensures that all of the IMDb data files exist and have non-zero size in the given directory. Any path that does not meet these criteria is fe
src/download.rs:28
↓ 1 callersMethoddownload_all
(&self)
src/main.rs:210
↓ 1 callersMethoddownload_all_update
(&self)
src/main.rs:214
↓ 1 callersMethodepisode
Return the episode information for the given episode IMDb identifier. If no episode information for the given ID exists, then `None` is returned.
imdb-index/src/index/episode.rs:144
↓ 1 callersMethodepisode_parts
Part episode information from the given candidate, if it exists. If a problem occurred (like detecting a match but missing an expected capture group
src/rename.rs:490
↓ 1 callersMethodepisodes
Returns all of the episodes for the given TV show and season number. The TV show should be identified by its IMDb ID, and the season should be identif
imdb-index/src/index/mod.rs:302
↓ 1 callersMethodepisodes
Return a sequence of episodes for the given TV show IMDb identifier and season number. The episodes are sorted in order of episode number. Episodes w
imdb-index/src/index/episode.rs:116
↓ 1 callersMethodevaluate
Evaluate this specification against the built-in truth data.
imdb-eval/src/eval.rs:150
↓ 1 callersMethodevaluate_with
Evaluate this specification against a set of truth data at the given file path.
imdb-eval/src/eval.rs:164
↓ 1 callersMethodfind_any
Search for any entity via its name and a year. In general, this is enough information to narrow down the results considerably for most movies. If an
src/rename.rs:322
↓ 1 callersMethodfind_episode
Search for the episode entity corresponding to the episode information in the given candidate. If one couldn't be found, then an error is returned. T
src/rename.rs:361
↓ 1 callersMethodfind_tvshow_for_episode
Search for the TV show entity corresponding to the episode information in the given candidate. If one couldn't be found, then an error is returned. I
src/rename.rs:396
↓ 1 callersMethodfind_unknown
Return an entity for a completely unknown candidate. This is invariant with respect to the source path, since we don't really know how to interpret i
src/rename.rs:434
↓ 1 callersMethodfinish
Finish writing names and serialize the index to disk.
imdb-index/src/index/names.rs:1016
↓ 1 callersMethodforce
Forcefully use the given entity when producing rename proposals. When an entity is given here, the renamer will never execute automatic queries based
src/rename.rs:758
↓ 1 callersFunctionfractional_seconds
Returns the number of seconds in this duration in fraction form. The number to the left of the decimal point is the number of seconds, and the number
imdb-eval/src/eval.rs:476
↓ 1 callersMethodfrom_path
Open's an ID index reader from the given file path.
imdb-index/src/index/id.rs:22
↓ 1 callersMethodgood_threshold
Sets the "good" threshold for auto-selection. When running queries generated from file paths, it is often the case that multiple results will be retu
src/rename.rs:782
↓ 1 callersMethodhas_filters
Returns true if and only if this query has any filters. When a query lacks filters, then the result set can be completely determined by searching the
imdb-index/src/search.rs:492
↓ 1 callersMethodimdb_name
Convert this candidate path to the desired name based on an IMDb entity. In general, this replaces the `base_name` of this candidate with the title fo
src/rename.rs:691
↓ 1 callersMethodindex
Return a reference to the underlying index reader.
imdb-index/src/index/names.rs:451
↓ 1 callersMethodindex_dir
The sub-directory of `eval_dir` in which to store this specification's index.
imdb-eval/src/eval.rs:209
↓ 1 callersMethodindex_name
The expected name of the index for this evaluation specification. The name of the index is derived specifically from this specification's index-time
imdb-eval/src/eval.rs:218
↓ 1 callersFunctioninit
Initialize a simple logger.
imdb-eval/src/logger.rs:11
↓ 1 callersFunctioninit
Initialize a simple logger.
src/logger.rs:9
↓ 1 callersMethodinsert_term
Add a single term that is part of a name identified by the given docid. This updates the postings for this term, or creates a new posting if this is t
imdb-index/src/index/names.rs:1081
↓ 1 callersMethodis_link
(&self)
src/rename.rs:44
↓ 1 callersFunctionis_pipe_error
Return true if and only if an I/O broken pipe error exists in the causal chain of the given error.
imdb-eval/src/main.rs:350
↓ 1 callersFunctionis_pipe_error
Return true if and only if an I/O broken pipe error exists in the causal chain of the given error.
src/main.rs:361
↓ 1 callersMethodis_tv_series
Returns true if and only if this kind represents a TV series.
imdb-index/src/record.rs:118
↓ 1 callersMethodmatches_episode
Returns true if and only if the given episode matches this query. This ignores non-episode filters. If an episode filter is present and `None` is gi
imdb-index/src/search.rs:449
↓ 1 callersMethodmatches_rating
Returns true if and only if the given rating matches this query. This ignores non-rating filters. If a rating filter is present and `None` is given,
imdb-index/src/search.rs:436
↓ 1 callersMethodmin_votes
Set the minimum number of votes required for all search results from automatic queries. This is used when formulating queries based on file names that
src/rename.rs:769
↓ 1 callersMethodname_query
Build a name query suitable for this query. The name query returned may request many more results than the result size maximum on this query.
imdb-index/src/search.rs:468
↓ 1 callersMethodneeds_only_title
Returns true if and only this query has only title filters. When true, this can make exhaustive searches faster by avoiding the need to fetch the rat
imdb-index/src/search.rs:503
↓ 1 callersMethodnext
(&mut self)
imdb-eval/src/eval.rs:363
↓ 1 callersMethodnext_docid
Retrieve a fresh doc id, and associate it with the given name id.
imdb-index/src/index/names.rs:1092
↓ 1 callersFunctionnon_existent_data_sets
Gets a list of data sets that either don't exist in the current directory or have zero size.
src/download.rs:70
↓ 1 callersMethodopen
Open an existing index using default settings. If the index does not exist, or if there was a problem opening it, then this returns an error. General
imdb-index/src/index/mod.rs:145
↓ 1 callersMethodopen_index
(&self)
src/main.rs:202
↓ 1 callersMethodpartial_cmp
(&self, other: &Scored<T>)
imdb-index/src/scored.rs:207
↓ 1 callersMethodpropose
Propose a set of renames, where each proposal proposes to rename a path in the slice given to a new path using its proper title according to IMDb. Thi
src/rename.rs:175
↓ 1 callersMethodpropose_one
Propose a single rename for the given path. If an error occurs while searching, or if searching yields no results, or if an unexpected condition was
src/rename.rs:237
↓ 1 callersMethodquery
Create a query derived from this specification and a particular information need or "task."
imdb-eval/src/eval.rs:179
↓ 1 callersMethodrank
Execute the search for the given information need and determine the rank of the expected answer for the given information need. If the expected answer
imdb-eval/src/eval.rs:441
↓ 1 callersMethodrating
Return the rating information (which includes the actual rating and the number of votes associated with that rating) for the given IMDb identifier. If
imdb-index/src/index/rating.rs:71
↓ 1 callersFunctionread_number
Reads a number from stdin in the given inclusive range.
src/util.rs:35
↓ 1 callersFunctionread_rating
(bytes: &[u8])
imdb-index/src/index/rating.rs:83
↓ 1 callersFunctionread_rating_value
(slice: &[u8])
imdb-index/src/index/rating.rs:124
↓ 1 callersFunctionread_sorted_episodes
(data_dir: &Path)
imdb-index/src/index/episode.rs:157
↓ 1 callersFunctionread_tvshow
(bytes: &[u8])
imdb-index/src/index/episode.rs:222
↓ 1 callersFunctionread_votes_value
(slice: &[u8])
imdb-index/src/index/rating.rs:113
↓ 1 callersFunctionread_yesno
Reads a yes/no answer from stdin. This is flexible and recognizes y, Y, yes, YES as 'yes' answers. Everything else is recognized as a 'no' answer.
src/util.rs:57
↓ 1 callersMethodregex_episode
Set the regex for detecting the episode number from a file path. Regexes are executed against the base name of a path. The episode number is extracte
src/rename.rs:791
↓ 1 callersMethodregex_season
Set the regex for detecting the season number from a file path. Regexes are executed against the base name of a path. The season number is extracted
src/rename.rs:800
↓ 1 callersMethodregex_year
Set the regex for detecting the year from a file path. Regexes are executed against the base name of a path. The year is extracted via the `year` nam
src/rename.rs:809
↓ 1 callersMethodrename
Execute this proposal according to `RenameAction`.
src/rename.rs:75
↓ 1 callersMethodrun
Run this evaluator on a single information need and return the evaluation.
imdb-eval/src/eval.rs:382
↓ 1 callersFunctionrun_eval
Run an evaluation on the IMDb data in `data_dir`, and store any indexes created for the evaluation in `eval_dir`. If a path to truth data is given, th
imdb-eval/src/main.rs:61
↓ 1 callersFunctionrun_summarize
Summarize the evaluation results at the given path.
imdb-eval/src/main.rs:90
↓ 1 callersMethodscore_jaccard
Score the current doc ID using the Jaccard index, which measures the overlap between two sets. Note that this always returns `1.0`. The Jaccard index
imdb-index/src/index/names.rs:851
↓ 1 callersMethodscore_okapibm25
Score the current doc ID using Okapi BM25. It's similarish to TF-IDF, but uses a document length normalization term.
imdb-index/src/index/names.rs:812
↓ 1 callersMethodscore_query_ratio
Score the current doc ID using the ratio of terms in the query that matched the terms in this doc ID. Note that this always returns `1.0`. The query
imdb-index/src/index/names.rs:860
↓ 1 callersMethodscore_tfidf
Score the current doc ID using the traditional TF-IDF ranking function.
imdb-index/src/index/names.rs:832
↓ 1 callersMethodsearch_exhaustive
( &mut self, query: &Query, )
imdb-index/src/search.rs:112
↓ 1 callersMethodsearch_with_name
( &mut self, query: &Query, name_query: &NameQuery, )
imdb-index/src/search.rs:90
↓ 1 callersMethodsearch_with_tvshow
( &mut self, query: &Query, tvshow_id: &str, )
imdb-index/src/search.rs:171
↓ 1 callersMethodsearcher
(&self)
src/main.rs:206
↓ 1 callersMethodseasons
Returns all of the episodes for the given TV show. The TV show should be identified by its IMDb ID. If the given ID isn't a TV show or if the TV show
imdb-index/src/index/mod.rs:286
↓ 1 callersMethodseasons
Return a sequence of episodes for the given TV show IMDb identifier. The episodes are sorted in order of season number and episode number. Episodes w
imdb-index/src/index/episode.rs:98
↓ 1 callersFunctionshould_log
(record: &log::Record)
imdb-eval/src/logger.rs:52
↓ 1 callersFunctionshould_log
(record: &log::Record)
src/logger.rs:50
↓ 1 callersMethodskip_to
Skip this disjunction such that all posting iterators are either positioned at the smallest doc ID greater than the given doc ID. If any posting iter
imdb-index/src/index/names.rs:542
↓ 1 callersFunctiontry_main
()
imdb-eval/src/main.rs:28
↓ 1 callersFunctiontry_main
()
src/main.rs:32
↓ 1 callersFunctionupdate_all
Update will update all data set files, regardless of whether they already exist or not.
src/download.rs:41
↓ 1 callersMethodwith_ngram_size
Set the ngram size for this specification. This returns an error if the given size is less than `2`.
imdb-eval/src/eval.rs:113
↓ 1 callersMethodwith_ngram_type
Set the ngram type for this specification.
imdb-eval/src/eval.rs:128
↓ 1 callersMethodwith_result_size
Set the result size for this specification. This returns an error if the given size is less than `1`.
imdb-eval/src/eval.rs:96
↓ 1 callersMethodwith_scorer
Set this query's scorer. By default, Okapi BM25 is used.
imdb-index/src/index/names.rs:152
↓ 1 callersMethodwith_scorer
Set the name scorer for this specification. Note that if the given scorer is `None`, then an evaluation will likely be quite slow, since each informa
imdb-eval/src/eval.rs:144
↓ 1 callersMethodwith_similarity
Set the similarity ranker function for this specification.
imdb-eval/src/eval.rs:134
↓ 1 callersMethodwith_size
Set this query's result set size. At most `size` results will be returned when searching with this query.
imdb-index/src/index/names.rs:147
↓ 1 callersMethodwith_stop_word_ratio
Set the ratio (in the range `0.0` to `1.0`, inclusive) at which a term is determined to be a stop word. Set to `0.0` to disable. By default this is se
imdb-index/src/index/names.rs:172
↓ 1 callersFunctionwrite_episode
(ep: &Episode, buf: &mut Vec<u8>)
imdb-index/src/index/episode.rs:210
↓ 1 callersFunctionwrite_rating
(rat: &Rating, buf: &mut Vec<u8>)
imdb-index/src/index/rating.rs:101
↓ 1 callersFunctionwrite_rating_value
(rating: f32, buf: &mut Vec<u8>)
imdb-index/src/index/rating.rs:131
← previousnext →101–200 of 335, ranked by callers