Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BurntSushi/imdb-rename
/ functions
Functions
335 in github.com/BurntSushi/imdb-rename
⨍
Functions
335
◇
Types & classes
63
↓ 2 callers
Method
votes_ge
Set the lower inclusive bound on a title's number of votes.
imdb-index/src/search.rs:353
↓ 2 callers
Function
write_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 callers
Function
write_tsv_title
( mut wtr: W, position: usize, score: f64, ent: &MediaEntity, )
src/util.rs:104
↓ 2 callers
Method
write_u32
Write a u32LE.
imdb-index/src/index/writer.rs:44
↓ 1 callers
Function
app
()
imdb-eval/src/main.rs:202
↓ 1 callers
Function
app
()
src/main.rs:219
↓ 1 callers
Function
approx_eq
Compares two floating point numbers for equality approximately for some epsilon.
imdb-eval/src/eval.rs:468
↓ 1 callers
Method
build
Build a `Renamer` from the current configuration.
src/rename.rs:736
↓ 1 callers
Method
candidate
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 callers
Method
cmp
(&self, other: &TitleKind)
imdb-index/src/record.rs:135
↓ 1 callers
Function
collect_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 callers
Function
create_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 callers
Method
docid_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 callers
Function
download_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 callers
Method
download_all
(&self)
src/main.rs:210
↓ 1 callers
Method
download_all_update
(&self)
src/main.rs:214
↓ 1 callers
Method
episode
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 callers
Method
episode_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 callers
Method
episodes
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 callers
Method
episodes
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 callers
Method
evaluate
Evaluate this specification against the built-in truth data.
imdb-eval/src/eval.rs:150
↓ 1 callers
Method
evaluate_with
Evaluate this specification against a set of truth data at the given file path.
imdb-eval/src/eval.rs:164
↓ 1 callers
Method
find_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 callers
Method
find_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 callers
Method
find_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 callers
Method
find_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 callers
Method
finish
Finish writing names and serialize the index to disk.
imdb-index/src/index/names.rs:1016
↓ 1 callers
Method
force
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 callers
Function
fractional_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 callers
Method
from_path
Open's an ID index reader from the given file path.
imdb-index/src/index/id.rs:22
↓ 1 callers
Method
good_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 callers
Method
has_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 callers
Method
imdb_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 callers
Method
index
Return a reference to the underlying index reader.
imdb-index/src/index/names.rs:451
↓ 1 callers
Method
index_dir
The sub-directory of `eval_dir` in which to store this specification's index.
imdb-eval/src/eval.rs:209
↓ 1 callers
Method
index_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 callers
Function
init
Initialize a simple logger.
imdb-eval/src/logger.rs:11
↓ 1 callers
Function
init
Initialize a simple logger.
src/logger.rs:9
↓ 1 callers
Method
insert_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 callers
Method
is_link
(&self)
src/rename.rs:44
↓ 1 callers
Function
is_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 callers
Function
is_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 callers
Method
is_tv_series
Returns true if and only if this kind represents a TV series.
imdb-index/src/record.rs:118
↓ 1 callers
Method
matches_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 callers
Method
matches_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 callers
Method
min_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 callers
Method
name_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 callers
Method
needs_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 callers
Method
next
(&mut self)
imdb-eval/src/eval.rs:363
↓ 1 callers
Method
next_docid
Retrieve a fresh doc id, and associate it with the given name id.
imdb-index/src/index/names.rs:1092
↓ 1 callers
Function
non_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 callers
Method
open
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 callers
Method
open_index
(&self)
src/main.rs:202
↓ 1 callers
Method
partial_cmp
(&self, other: &Scored<T>)
imdb-index/src/scored.rs:207
↓ 1 callers
Method
propose
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 callers
Method
propose_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 callers
Method
query
Create a query derived from this specification and a particular information need or "task."
imdb-eval/src/eval.rs:179
↓ 1 callers
Method
rank
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 callers
Method
rating
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 callers
Function
read_number
Reads a number from stdin in the given inclusive range.
src/util.rs:35
↓ 1 callers
Function
read_rating
(bytes: &[u8])
imdb-index/src/index/rating.rs:83
↓ 1 callers
Function
read_rating_value
(slice: &[u8])
imdb-index/src/index/rating.rs:124
↓ 1 callers
Function
read_sorted_episodes
(data_dir: &Path)
imdb-index/src/index/episode.rs:157
↓ 1 callers
Function
read_tvshow
(bytes: &[u8])
imdb-index/src/index/episode.rs:222
↓ 1 callers
Function
read_votes_value
(slice: &[u8])
imdb-index/src/index/rating.rs:113
↓ 1 callers
Function
read_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 callers
Method
regex_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 callers
Method
regex_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 callers
Method
regex_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 callers
Method
rename
Execute this proposal according to `RenameAction`.
src/rename.rs:75
↓ 1 callers
Method
run
Run this evaluator on a single information need and return the evaluation.
imdb-eval/src/eval.rs:382
↓ 1 callers
Function
run_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 callers
Function
run_summarize
Summarize the evaluation results at the given path.
imdb-eval/src/main.rs:90
↓ 1 callers
Method
score_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 callers
Method
score_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 callers
Method
score_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 callers
Method
score_tfidf
Score the current doc ID using the traditional TF-IDF ranking function.
imdb-index/src/index/names.rs:832
↓ 1 callers
Method
search_exhaustive
( &mut self, query: &Query, )
imdb-index/src/search.rs:112
↓ 1 callers
Method
search_with_name
( &mut self, query: &Query, name_query: &NameQuery, )
imdb-index/src/search.rs:90
↓ 1 callers
Method
search_with_tvshow
( &mut self, query: &Query, tvshow_id: &str, )
imdb-index/src/search.rs:171
↓ 1 callers
Method
searcher
(&self)
src/main.rs:206
↓ 1 callers
Method
seasons
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 callers
Method
seasons
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 callers
Function
should_log
(record: &log::Record)
imdb-eval/src/logger.rs:52
↓ 1 callers
Function
should_log
(record: &log::Record)
src/logger.rs:50
↓ 1 callers
Method
skip_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 callers
Function
try_main
()
imdb-eval/src/main.rs:28
↓ 1 callers
Function
try_main
()
src/main.rs:32
↓ 1 callers
Function
update_all
Update will update all data set files, regardless of whether they already exist or not.
src/download.rs:41
↓ 1 callers
Method
with_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 callers
Method
with_ngram_type
Set the ngram type for this specification.
imdb-eval/src/eval.rs:128
↓ 1 callers
Method
with_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 callers
Method
with_scorer
Set this query's scorer. By default, Okapi BM25 is used.
imdb-index/src/index/names.rs:152
↓ 1 callers
Method
with_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 callers
Method
with_similarity
Set the similarity ranker function for this specification.
imdb-eval/src/eval.rs:134
↓ 1 callers
Method
with_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 callers
Method
with_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 callers
Function
write_episode
(ep: &Episode, buf: &mut Vec<u8>)
imdb-index/src/index/episode.rs:210
↓ 1 callers
Function
write_rating
(rat: &Rating, buf: &mut Vec<u8>)
imdb-index/src/index/rating.rs:101
↓ 1 callers
Function
write_rating_value
(rating: f32, buf: &mut Vec<u8>)
imdb-index/src/index/rating.rs:131
← previous
next →
101–200 of 335, ranked by callers