Changelog¶
All notable changes to this project will be documented in this file.
0.6.1¶
Changed¶
code_partiesfinds who appealed in cases whose caption gives the parties no roles ("United States v. Bullock"), when one party is the United States. The opening of the opinion decides: the role that it gives the United States or the defendant, or else a sentence that says who appeals. Before, such appeals had no "appeal_by_defendant" and no winner by side, and a study that filtered on them left them out. In the CourtListener criminal appeals of the twelve regional circuits since 2010, this finds who appealed in 9,707 of the 11,509 with no roles (9,606 by the defendant), most of them affirmances, Anders cases, and the Seventh Circuit's orders.- New general header rules make the columns that it uses: "opening_united_states_role", "opening_defendant_appellant", "opening_defendant_appellee", "opening_government_appeals", and "opening_party_appeals". The cases have to be parsed again to have them.
- More panels are found whole. In the CourtListener criminal appeals of the twelve regional circuits since 2010, 2,912 more have three judges who are all found (110,941 of 119,330, up from 108,029), and none has fewer:
- The panel rule reads the Seventh Circuit's lists of judges, which have only spaces between them ("Before JOHN DOE, Circuit Judge JANE ROE, Circuit Judge ..."), and so found one judge where there were three.
- The names rule leaves out words that sources put among the judges' names but are not names: dispositions ("Dismissed"), "Curium", and the words of courts' names ("Eastern", "Ninth").
Roster.matchrepairs a name that fits no judge, if it then fits exactly one: small capitals ("P OSNER"), broken hyphens, a word of the panel run into a name, the last word of a last name of several words ("EVE" for St. Eve), a first and last name run together, or a scanning error of one letter in a name of five or more ("KRAVTTCH"), among the judges of the case's court.Roster.candidatesreturns every judge that a name fits, andRoster.full_nameandRoster.name_wordsthe ways of writing a judge's name.edit_distanceandrepaired_namesare new functions ofcourtpy.judges.code_panelsreads a panel's names together: a last name that two judges of the court share (such as "PRYOR" in the Eleventh Circuit) is the judge whose first name is another word of the panel (as CourtListener's list of judges gives them) or whose full name is the author's, and words that are only a judge's first name are not judges of their own. It rewrites "panel_judges" and counts "panel_size" again, each judge once.- Judge Forrest of the Ninth Circuit is found by her earlier name, Danielle J. Hunsaker. The roster has to be made again to have it.
CourtListener.fetch_pdf_headersdownloads the courts' own PDFs of saved cases and saves the text of each first page in the case's file as "pdf_header", whichread_casemakes a section and the rule that finds the panel reads after the opinion's opening. CourtListener's text of many opinions lacks the header with the panel, and its list of judges may give only last names that two judges share (such as the Ninth Circuit's two Judges Smith), so the PDF tells them apart. The Ninth and Eleventh Circuits' moved PDFs are found at their new addresses. courtpy needs pypdf. Of the 6,538 criminal appeals above whose panel was still not found whole and whose case has a PDF's address, 4,866 PDFs were read (1,111 were not found), and with them 114,129 of the 119,330 have three judges who are all found.
0.6.0¶
Added¶
download_courtlisteneris a new loader, likedownload_idband the other "download_" techniques: it downloads CourtListener cases into its source folder and then parses and codes them. Its "method" is "bulk" (the default), which extracts the cases from the bulk data and needs no key, or "api", which downloads them with the API. Its other parameters arecourts,start_date,end_date,max_cases,refresh,dockets(for "api"), andbulk_folder,bulk_date, andstream(for "bulk").
Changed¶
- courtpy needs amos 0.10.3 or later. That version compares classifiers by
the Matthews correlation coefficient wherever amos chooses the metric, and
adds the
gpboost,bambi, andpymcmodels. CourtListenerdownloads from the bulk data as well as the API, andBulkDatais gone.CourtListener.downloadtakesmethod = "bulk"(the default) or"api".BulkData's fields are nowbulk_folder,bulk_date,stream, andbulk_url, and the API's address isapi_url. Its methods arebulk_dates(wasavailable),fetch_bulk_file(fetch),read_bulk_chunks(chunks),read_bulk_rows(rows), andresolve_bulk_date(resolve_date).CourtListenerlooks for the API key only when it first makes a request to the API, so the bulk data needs no key, and it sends the key with requests to the API alone, not in the session's headers.load_court_listeneris nowload_courtlistener, and it only parses and codes the cases already in its folder. Usedownload_courtlistenerto download them first.overwriteis nowrefreshinCourtListener.download, indownload_courtlistener, and incourtpy download("--refresh"), as in the other "download_" techniques.courtpy downloadtakes "--method bulk" (the default) or "--method api" in place of the "bulk" and "api" subcommands, and its folder defaults to "courtlistener".- The group of courts "federal_circuits" is now "federal_geographic_circuits" (the twelve regional circuits, without the Federal Circuit).
- CITATION.cff and the README's citation give version 0.6.0.
Removed¶
courtpy.Download,courtpy.sources.DOWNLOADS, andcourtpy.sources.find_download, withBulkDownloadandApiDownload. To download in a way of its own, a study subclassesCourtListenerordownload_courtlistener's class,DownloadCourtlistener.- The
courtpy.bulkmodule, whose code is now part ofcourtpy.courtlistener.
0.5.2¶
Changed¶
- The README's table of techniques lists the artist's plots after the critic's checks and inferer.
- CITATION.cff and the README's citation give version 0.5.2.
Fixed¶
code_partiesnow decides who brought an appeal from each party's own caption first. A party whose caption names it both appellant and appellee (as a caption that joins several appeals does: "Joseph Prochilo, Defendant, Appellee; United States of America, Appellant, v. Elvis Guerrero, Defendant, Appellee") takes the opposite of the other party's role. Before, both parties were left unknown. A party named appellant or appellee is no longer judged by "Petitioner" or "Respondent", so "George H. Bennett, Petitioner, Appellee" is the appellee. Two appellants (a cross-appeal) are still unknown.code_case_typefinds the prosecution when both parties' text names the United States, as a caption that joins several appeals can. The party whose text begins with the United States is the prosecution, and otherwise the party that is a defendant and not a plaintiff is the criminal defendant. Before, neither was the criminal defendant, soappeal_by_defendantwas missing.- "Cross Appellee" and "Cross Appellant" written with a space, an en dash, or an em dash are cross roles. They are no longer read as plain appellees and appellants as well.
- Recoding the 352,343 federal appellate decisions of 2010–2026 in
CourtListener this way found the side of 1,979 criminal appeals that had
none: 135 brought by the government and 1,844 by the defendant. It
changed no side that had been found. Compared with the Integrated
Database (
compare_with_idb), the share of government appeals found rose from 78% to 85%.
0.5.1¶
Added¶
compare_with_idb(an explorer, incourtpy.fjc_idb) compares a study with the Federal Judicial Center's Integrated Database. Cases are compared asDocketsand matched asadd_idbmatches them. The tablecompare_with_idbshows how the variables that both have agree (whether an appeal is criminal or civil, was reversed, was published, had a dissent, was brought by the United States, had a pro se appellant, or was a prisoner's appeal, or any pair of columns): the dockets compared, the matches and Cohen's kappa, and the disagreements in each direction. The tablecompare_with_idb_missingcompares the database's appeals that the study lacks with those it has, in each circuit (or district, withby). It reports the coverage, the shares of each variable, their difference, and a two-proportion z test. By default, it counts only appeals decided on the merits in the study's circuits and dates (merits_only).- The plots
idb_confusion_matrices(a confusion matrix for each variable) andidb_missing_differences(the differences by group, starred belowalpha), whichcompare_with_idbdraws withvisualize.
Changed¶
- Requires fjc-idb 0.1.0 (it was 0.0.4), whose appellate table has
pro_se_appellant,prisoner_appeal,reversed_in_whole_or_part, and the other outcome columns.
Fixed¶
- "OWEN" in a Fifth Circuit opinion is Judge Priscilla Richman, who sat as Priscilla Owen until 2019 (the Federal Judicial Center's files give only her name now). It had been matched to Judge Richard Owen of the Southern District of New York through 2015, and to no judge after.
- A name that fits no judge is tried in shorter forms (
shorter_names): the first and last names, and then the first initial and the last name, but never the last name alone. So "Susan P. Graber" (whom the files name Susan Graber), "Sarah A. L. Merriam" (Sarah Ann Leilani Merriam), and "Ed Carnes" (Edward Carnes) are matched.
0.5.0¶
courtpy follows the amos way of working more closely: its data are amos
datasets of one kind of row each, and everything it does to them is an
amos technique that a settings file can name. Each source of cases has
header rules of its own, which find courts and agencies with the tables in
"courts.csv" and "agencies.csv", and courtpy has plots, checks, and an
inferer for amos's "artist" and "critic" stages. Breaking throughout;
no old names are kept.
- Upgraded locked dependencies with security fixes to clear Dependabot alerts: pillow 13.0.0, filelock 4.2.12, certifi 2026.10.23, virtualenv 21.15.9, setuptools 84.2.1, gitpython 3.2.1, black 26.10.1, and uv 0.13.9.
- "instructions/federal/courts.csv" uses levels that state courts can share. Breaking: the level "district" is now "trial" and "supreme" is now "high".
- Breaking: the Supreme Court's
courtis "scotus" (it was "supreme_court"), and the column of CourtListener's ids iscourtlistener_name(it wascourtlistener). - "courts.csv" has a new
feature_namecolumn, the court's name as a label for tables and plots (such as "District of Alabama" or "SCOTUS"). - Breaking: the group of CourtListener courts for the Supreme Court is
scotus(it wassupreme_court). - Each source has its own header rules, in
"instructions/sources/{source}/header.csv" (the Lexis-Nexis rules that
divide a case are in "sources/lexis_nexis" too). "general/header.csv"
keeps only the rules that fit every source. A
Sourcenames its header rulebook inheader("courtlistener_header" or "lexis_nexis_header"), which the parser applies before the others. Breaking: the "header" rulebook is no longer part of "federal",options._REQUIRED_RULEBOOKSis only "general", andParser.structuresis nowParser.source_rules. - The header rules name no courts or agencies of their own.
- A Lexis-Nexis case's
court_numcomes from the names of the courts in the jurisdiction's "courts.csv" (opinion_name, thenfjc_name; seerules.make_court_rules), and a CourtListener case's from CourtListener's id for its court (courts.court_numbers_by_courtlistener_name). The judges' roster numbers its courts with the same rules. - "courts.csv" has
opinion_namepatterns for the courts of appeals and the Supreme Court, and rows for the Temporary Emergency Court of Appeals (105) and the bankruptcy appellate panels (106 to 111). Breaking: they were 998 and 999. - Breaking: the
agencycolumn is gone. The agencies of the jurisdiction's "agencies.csv" that each party and the history name areparty1_agencies,party2_agencies, andhistory_agencies(seerules.make_agency_rules). In a party, an agency's name must end the party or come before a comma, semicolon, closing parenthesis, or "et al.", so a company named for an agency ("FMC WYOMING CORPORATION") is not taken for it. - An abbreviation in "agencies.csv" (such as "CAB" or "FMC") no longer matches right after a hyphen, where it is usually a judge's initials at the end of a docket number ("06-CR-126-CAB"), not an agency.
- Cases have
court_name(courtpy's name for the court in "courts.csv", such as "tenth_circuit") besidecourt_num, andlower_court_numandlower_court_namefor the trial or specialized court whose decision is reviewed. The header rules find the court below in the history, by the names in "courts.csv"; a CourtListener case has it from its docket's "appeal_from" when the docket names it. Theopinion_nameof each district court also matches the forms of Lexis-Nexis histories ("D. N.M.", "D. of Kan.", and "W.D. Oklahoma"). - Tighter header rules:
party1_united_statesandparty2_united_statesare the United States itself ("UNITED STATES OF AMERICA", "U.S.", or "USA", also as a relator's plaintiff), not a company or official named for it (such as "U.S. Bank" or "United States Marshal").docket_criminalanddocket_civilneed a criminal or civil docket number ("06-CR-126", "4:07CV00123", or "Criminal Action No. 07-123"), not any word that starts with "cr" or "civ".future_grantneeds a form of "grant" (not "approve" or "issued").- The Lexis-Nexis
concurring_linesanddissenting_linesare only lines that start with "CONCUR" or "DISSENT" in capitals (such as "CONCUR BY:"). - courtpy has techniques for
amos's "artist" and "critic" stages. - Plots (
courtpy.plots):court_rates(the measured rate of a column in each court),cases_over_timeandissues_over_time(cases, and cases with each issue, of every court in each year, a panel per court),panel_composition(the rate for each panel from "DDD" to "RRR"),lower_court_rates(the rate for each court below, by reviewing court),trends_by_administration(yearly rates with presidents' terms shaded), andjudge_network. Courts are labeled with theirfeature_name. - Evaluators (
courtpy.audits):audit_random_assignment(balance of case traits across panel compositions within court and year, with a permutation test),audit_parsing(cases missing what the rules should find, with examples),audit_coverage(cases against the Integrated Database's appeals by court and year), andvalidate_coding(agreement and Cohen's kappa with another source's coding). - Inferer (
courtpy.inferers):panel_effects, the effect of the colleagues' party on a judge's vote, with court-year fixed effects, standard errors clustered by case, and a randomization test. - CI installs the
analysisextra, so the tests of the plots run there and mypy checks against the same packages as development. - The README's coverage badge reads the
mainbranch, since Codecov's default branch for the repository was still "master". courts.court_labelslabels each case's court in the table's order, andjudges.republican_appointeesandjudges.panel_compositionsdescribe each panel by its judges' parties.- Breaking: the
drop_textcleaner is nowdrop_text_columns(coders.DropTextColumns). - With
keep_text, the table keeps the text of every section of each case (such asparty,history,judges, andopinion), not only the opinions and the Lexis-Nexis header. parse_all(parsers.ParseAll) parses loaded cases again from their kept text, with each case's source's header rules, "general", and its "rulebooks" ("federal" unless set), and makesauthor,panel_size,concurrences,dissents, andword_countagain. It replacesamos'sparse_allin theamoslibrary and does what it does when given "rules".courts.court_tablereads the table of courts of any jurisdiction, andcourts.court_names_by_courtlistener_namemaps CourtListener's ids to courtpy's names for the courts.- Breaking: the CourtListener source is named "courtlistener" (it was
"court_listener"), and so is the default folder of its cases. The
load_court_listenerloader keeps its name. - courtpy requires amos 0.10.2, for its savers.
courtpy.datasetshas the kinds ofamos.Datasetthat courtpy makes, by what each row is:Cases,Dockets,Votes,Judges,Courts,CaseTypes, andPartyTypes(all importable fromcourtpy). Each names the column that labels its rows, andsavesaves it whole (in a joblib file, withamos'ssave_data) and its data as a CSV, parquet, or Excel table, with several values in a cell written as "; "-joined text.loadloads either file. Breaking:load_casesandsave_casesare gone, and a CSV file no longer has a ".lists.json" file beside it.- The loaders make
Cases(or the kind that the last coder makes, such asVotes), "save" saves the whole dataset beside the table, and "reuse" loads it, history and all.load_casesloads a saved joblib file as the kind it was.courtpy.codereturnsCasesfor a table, andcourtpy parsesaves the whole dataset beside its table. - The shapers that change what a row is return the kind they make.
Breaking:
reshape_by_votes,reshape_by_panel, andreshape_by_judgeare nowcases_to_votes,votes_to_cases, andcases_to_judges(CasesToVotes,VotesToCases, andCasesToJudges).cases_to_judgeskeeps nothing about any one case: columns of text are left out unless "keep" or "how" names them (it used to keep text that was the same in each judge's cases). Docketshas a row for each docket number of each case, labeled by "case_docket" (such as "4567890-2"), with "case_id" and "docket" (the row's one docket number), so each appeal of a case that consolidated several has its own row. CourtListener's "docket_id" is kept.cases_to_docketsanddockets_to_casesmake dockets of cases and cases of dockets, anddockets_to_votesmakes a row for each judge on each docket.vote_tabletakes "label", the column of the labels of its rows.add_idbmatches each row ofDocketsby its own docket number only, so each appeal of a consolidated case gets its own record of the Integrated Database (inCases, a case still gets the record of the first of its docket numbers that the database has).cases_to_courts,cases_to_case_types, andcases_to_party_types(in the newcourtpy.shapers) summarize cases by court, case type, and party type, with the means of their columns of numbers and booleans (so the share of each court's or judge's cases of each case type and with each party type), and "by" for more columns to group by. Party types come from "party1_type" and "party2_type", which rules for them can make.code_case_typeadds "type_civil" (every case that is not criminal) and "type_{prefix}" for each other prefix of the rules of the criminal, civil, and constitutional files (courtpy.rules.case_type_prefixes): "type_tort", "type_contract", "type_ip", "type_writ", and "type_constitutional", and any prefix added later. Breaking: the "torts" rulebook is gone; its rules are in "civil", with the prefixes "tort_" and "contract_".- Breaking: the mergers are named
add_...:merge_biographies,merge_scdb, andmerge_idbare nowadd_biography,add_scdb, andadd_idb. InCases,add_biographynumbers its columns by each judge's seat on the panel ("judge_name1", "judge_nid1", "judge_party1", ...), and its "lookup" can be a function that takes the place of the roster.code_panelsnumbers its columns the same way ("judge_name1" and "judge_nid1", which were "judge1" and "judge1_nid"). - New mergers:
add_jcs(each judge's Judicial Common Space score),add_executive(executive_nameandexecutive_ideology),add_legislature(senate_ideologyandhouse_ideology, the chamber medians of the Congress then sitting),add_high_court(high_court_ideology, the median justice's Martin-Quinn score in the term then sitting),add_circuit(the median and total of the appointing presidents' parties and of the Judicial Common Space scores of the active, non-senior judges of each case's circuit on the day it was decided), andadd_judge_scoresandadd_court_scores(scores from training data, in the newcourtpy.scores). The first four match each case's date, not its year. Breaking:add_politicsis gone;build_tablestill makes a table of years, whichmerge_keyscan add by "year". - The table of federal courts is "instructions/federal/courts.csv" again,
with each court's circuit and CourtListener id (read by the new
courtpy.courts), and the presidents' terms are "instructions/federal/presidents.csv" (read bycourtpy.politics.executives). Breaking:options._COURTS,options._TRIAL_COURTS, andoptions._PRESIDENTSare gone. - The README has a table of courtpy's techniques and datasets.
0.4.1¶
cases.select_whole_casesraises aValueErrorthat names the query when the query does not say whether each row is selected (such as "year + 1"), in place of pandas' "Need to pass bool-like values".
0.4.0¶
- courtpy requires amos 0.10.1, chrisjen 0.5.0, fjc-idb 0.0.4, and nagata 0.2.1. amos brings pyarrow and indexed-bzip2, so the "parquet" extra is gone: parquet files always work.
- courtpy uses amos's file tools in place of its own. Breaking:
utilities.download_file,utilities.page_links, andutilities.html_to_textare gone; useamos.loaders.download_file,amos.loaders.page_links, andamos.mungers.html_to_text.utilities.open_sessionstays, to identify courtpy to servers. BulkDatareads the bulk files withamos.loaders.read_chunks, which decompresses and parses them on every core and drops the rows of other courts and cases before they become Python objects.BulkData.chunksyields chosen rows and columns of a file as tables, andBulkData.rowstakes the samecolumnsandkeep.BulkData.fetchdownloads withamos.loaders.download_file, which resumes a stopped download, and no longer asks the bucket for the file's size first.- The Supreme Court Database's files are downloaded with
amos.loaders.download_file, which checks that each archive has the right file before saving it. - The modules are in a folder for each part, as
amoskeeps its modules in a folder for each stage:core(cases,options,secrets, andutilities),sources(courtlistener,bulk, andlexis),wrangler(rules,parsers,coders, andloaders), andreferences(judges,scdb,fjc_idb,jcs, andpolitics). Each can still be imported fromcourtpyitself (such ascourtpy.judges), but its full name has changed (such ascourtpy.references.judges), and so have the names of the modules' loggers (such ascourtpy.wrangler.parsers). The tests are in the same folders. - Breaking: the data folder is "courts" in the data folder of the
amosworkspace (options._DATA_SUBFOLDER), as everyamosproject keeps its data, whether courtpy runs from its repository or is installed.options._DATA_FOLDERis gone.COURTPY_DATA_DIRstill names another folder. - Breaking: the agencies of "agencies" are separated by "; " (not
", "), as every other column with several values in a case is, and
split_valuessplits "agencies" by default. - Breaking: courtpy's rulebooks are made by
rules.register_rulebooksfrom the folders of rule files, and are inrules.RULEBOOKSby name (such asrules.RULEBOOKS["federal"]). The classesParseFederal,ParseCivil, and the rest are no longer attributes ofcourtpy.rules, but every rulebook and technique keeps its name ("federal", "parse_civil", and so on). A study makes rulebooks of its own folders the same way, so its settings can name them (rulebooks = federal, review), with aprefixfor another jurisdiction's topics and acombinedrulebook of them all. - The "review" rulebook (
federal/review.csv, part of "federal") finds the kind of review of an appeal ("review_district", "review_agency", and "review_immigration") and the district judge of an appeal from a district court ("district_text" and "district_judges"). The "general" rules find three more standards of review: "standard_substantial_evidence", "standard_plain_error", and "standard_named" (words that announce a standard). These rules come from coa_judicial_behavior's "review.csv". courtpy.caseshas helpers for the columns of case tables that studies had each written:split_cell,column_as_flags,flags_as_numbers,select_whole_cases, andrequire_columns. courtpy's own techniques use them in place of their private copies.column_as_flags(formerly the coders' private_flags) reads "TRUE" and "FALSE" in text columns as pandas 3 types them, so coders of a table loaded from a CSV file read its flags.utilities.is_none_settingsays whether a setting such as "none" or "false" turns something off, in place of two private copies.courtpy judgesmakes and saves the roster of judges (with "--update", "--no-jcs", "--martin-quinn", "--rulebook", and "--output").cli.maintakes a program name and a function that adds a study's own commands, so a study's program has courtpy's commands and its own, and errors from downloads are shown as one line.- Sources and ways to download can be added by a study. A
courtpy.Sourcereads saved cases, and acourtpy.Downloadcollects them into a folder; each adds itself tocourtpy.sources.SOURCESorcourtpy.sources.DOWNLOADSwhen it is subclassed, asamostechniques do. courtpy's own areCourtListenerSource,LexisNexisSource,BulkDownload("bulk"), andApiDownload("api"). A newcourtpy.SourceLoaderdownloads (if asked) and parses any source, andload_court_listenerandload_lexis_nexisare built on it, so a study's "download" (such as "opinions") needs no loader of its own, and a loader for a new source needs only its name. Options that a loader does not know (such as "parties") go to the way to download. - Breaking:
parsers.Sourceandparsers.SOURCESare gone (seecourtpy.sources), and so isoptions._SOURCES.courtpy downloadhas a subcommand for each way to download, with its own options (such ascourtpy download bulk --stream); "--courts" is no longer required by the command itself, and "--folder" defaults to the name of the source.utilities.to_dateandutilities.to_integerreplace the loaders' private_dateand_integer. courtpy.judgesis a folder of private modules (_names,_roster,_biographies, and_panels), with the same public names.- The documentation has a guide to building a study on courtpy and a catalog of its techniques and of the columns of each rulebook, which is built from courtpy itself.
- Strings use single quotes throughout, lines of code are at most 80 characters, and every file ends with a single newline.
- The rules in the "instructions" folder are divided by jurisdiction. The "general" folder has the rules that fit opinions of any jurisdiction, and the "federal" folder has only the rules that fit federal opinions alone. Each built-in rulebook (such as "criminal") applies its "general" file and then its "federal" file, if there is one ("citations", "constitutional", "general", "header", and "torts" have no federal rules). The federal files no longer repeat the rules of the general files.
rules.find_rule_filesreturns the files of a topic in a jurisdiction, andrules.find_structure_filereturns the file that finds the sections of a source's cases for a kind of court.- The Lexis-Nexis rules are
lexis_nexis/federal_appellate.csv(in place oflexis_nexis.csv), for cases of the federal courts of appeals. - The "torts" rulebook (
ParseTorts,parse_torts) finds torts and other private-law issues ("torts_..."), and the "federal" rulebook includes it. - Some criminal and civil variables are renamed or removed: "criminal_crimmigration" is "criminal_illegal_entry", "criminal_obst_just" is "criminal_obstruction", "criminal_president_crime" is "criminal_president_threats", and "civil_excessive_force" is "torts_excessive_force". "criminal_cigarette", "criminal_desertion", "criminal_fetus_crime", "criminal_impersonate", "criminal_passports", "criminal_threats", and "criminal_vehicles" are removed. New variables include "criminal_plea_bargain", "constitutional_strict_scrutiny", "constitutional_intermediate_scrutiny", "constitutional_rational_basis", and "standard_mixed_question".
- Rules that ignore case no longer list both cases of a letter (such as
[Cc]), and the rule for "civil_declaratory_judgment" is a valid pattern again.
0.3.2¶
- The README shows the courtpy logo (
docs/images/logo.webp). - "Keeping your API key secret" moved from the README to the Advanced User Guide's "Secrets and folders" section, and the README links to it.
- Every process of courtpy is an
amos/chrisjentechnique. The techniques are renamed for what they do, and the old names are removed (settings that use them must be updated): merge_judges(MergeJudges) ismerge_biographies(MergeBiographies)code_judges(CodeJudges) iscode_panels(CodePanels)judge_votes(JudgeVotes) isreshape_by_votes(ReshapeByVotes), andexamples/judge_votes.iniisexamples/reshape_by_votes.inicode_politics(CodePolitics) isadd_politics(AddPolitics)code_scdb(CodeScdb) ismerge_scdb(MergeScdb)code_idb(CodeIdb) ismerge_idb(MergeIdb)reshape_by_panel(judges.ReshapeByPanel, anamos.Shaper) undoesreshape_by_votes: the table of votes becomes the table of cases again, labeled by "case_id", without the columns about each judgereshape_by_judge(judges.ReshapeByJudge, anamos.Shaper) makes a table with one row for each judge, labeled by "judge_nid", with the number of the judge's votes ("cases"), the judge's attributes, and the means (shares) of the other numbers and booleans, asgroup_rowstakes them. Given a table of cases, it makes the table of votes firsttidy_cases(coders.TidyCases, anamos.Munger) iscases.tidyas a techniqueloaders.ReferenceLoaderis a genre ofamosloaders that load a table of reference data, needing no "source":load_rosteranddownload_biographies(courtpy.judges),load_scdbanddownload_scdb(courtpy.scdb),load_idbanddownload_idb(courtpy.fjc_idb),load_politicsanddownload_politics(courtpy.politics), anddownload_jcs(courtpy.jcs). The "download_" techniques download the files first, again if "refresh" is true- Requires
amos0.9.0 or later, and courtpy's rules areamosrulebooks. TheRuleandRulebookclasses ofcourtpy.rules(andcourtpy.Rule,courtpy.Rulebook,rules.split_names, andrules.find_instructions) are removed:amos.parsers.Rulebookandamos.parsers.Ruletake their place, and parsing applies each rule to a whole chunk of cases at once. - The built-in CSV files are in
amos's layout (column,name,kind,pattern,value,flags,separator, andnote, with the kindsflags,counts,category,categories,match,matches,names, andsplit). Files in the older layout still work, sinceamosreads them. - Each rulebook is an
amos.parsers.ParseAlltechnique of its own (parse_federal,parse_header,parse_general,parse_citations,parse_civil,parse_constitutional,parse_criminal,parse_agencies, andparse_lexis_nexis), and its name (such as "federal") can be a rulebook ofparse_allor of another rulebook. - Breaking: columns with several values in a case ("panel_judges",
"authors", "concurring", "dissenting", "docket_numbers", and the
"citations_" columns) are text with "; " between the values (such as
"LYNCH; HOWARD; THOMPSON") rather than lists. A case with none has a
missing value rather than an empty list.
split_values(coders.SplitValues, anamos.Munger) turns them into lists or into a column for each value ("panel_judges_1", "panel_judges_2", and so on). The Lexis-Nexis sections of lines ("dates", "concurring_lines", and "dissenting_lines") also separate their lines with "; ", so that no rule file has a line break in a cell (which a checkout on Windows made "\r\n", failing the tests there). courtpy ruleslists the columns that the rules search and make.- The recipe and test that searched kept text with
amos'sflag_patternsandcount_patterns(removed fromamos) useparse_flagsandparse_counts. - A loader's label that no coder makes is
now pending, as in
amos, instead of raising aKeyError: a later technique (such as "derive_columns") can still make it coders.codepasses the coders' parameters toamosas they are, now thatamos.Operationtakes string keys- Updated to the
snickerdoodle0.4.3 template - The version is read from
__version__insrc/courtpy/__init__.pyinstead of being repeated inpyproject.toml, and the license is the SPDX expression "Apache-2.0" (PEP 639) - The
ciAction uploads test coverage to Codecov, tests each Python version in its matrix with that version, runs thepre-commithooks once instead of in every test job, and only runs on pushes tomainand pull requests - GitHub releases are made with the GitHub CLI, only from
mainafter the tests and linters pass, and their notes are the released version's section of this changelog - The documentation has a coverage report page
dependabotchecks theuvdependencies and GitHub Actions weekly.python-version(3.11) is kept in the repository- The federal rules are divided into
header,general,citations,civil,constitutional, andcriminal(in the "federal" folder ofinstructions), replacingfederal/opinion.csv.headerandgeneralare always applied; the others can be named alone (rulebooks = civil, criminal), and "federal" (still the default) is all six. A file named more than once is applied once - The citation variables are named
citations_...instead ofreferences_..., and the constitutional onesconstitutional_...instead ofgeneral_.... A rule for the Third Amendment (constitutional_amend3) is added - The Federal Judicial Center's biographies, the Martin-Quinn scores, and the Judicial Common Space scores come from fjc-biographies and judicial-common-space, now dependencies, instead of courtpy's own code:
judges.downloaddownloads the center's files with fjc-biographies, into the "raw" folder of "judges" in the data folder, and no longer takes asession.judges.build_rosteris fjc-biographies' roster with courtpy'saliasesandcourt_num, so it also hassequence, the dates of each appointment, the ways of writing each name (name_...), andcareer. Unknown names are missing instead of blank. The careers are coded by fjc-biographies' "judges" rulebook (the same rules), soinstructions/judges.csvis removed andrulebooktakes a rulebook of fjc-biographies.Roster.from_fjc(jcs = True)adds each appointment's Judicial Common Space score as computed by judicial-common-space (for district judges too), instead of matching the published scores of the judges of the courts of appeals by name.Roster.from_fjc(martin_quinn = True)(or the path of a saved "justices.csv") adds the justices' Martin-Quinn scores (mq_first,mq_last,mq_mean, andmq_terms).politics.downloaddownloads the Martin-Quinn and NOMINATE files with judicial-common-space, into "politics" in the data folder as before, and itsfolderis now the data folder. The Martin-Quinn "court" file is no longer used:politics.martin_quinnsummarizes the justices' scores in each term (their median, lowest, and highest), and takes the "justices" file.politics.justicesreads the scores with judicial-common-space, which addsjcs(the score on the Common Space scale) in place ofmartin_quinn_sd.jcs.downloaddownloads the published files with judicial-common-space, and itsfolderis now the data folder.jcs.judgesandjcs.justicesare removed: useRoster.from_fjc(jcs = True)andpolitics.justices.- The options for these sources' files and addresses (
_FJC_FILES,_FJC_URL,_JCS_FILES,_JCS_PAGE,_MQ_FILES,_MQ_PAGE,_VOTEVIEW_FILES, and_VOTEVIEW_URL) are removed. Roster.matchmatches a name by how much of it the opinion gives: first a full name (any of fjc-biographies'name_...forms, or an alias), then initials and the last name ("S. Lynch", "S. L. Lynch") or the middle and last names, and then the last name alone. Each is narrowed by the years of service and then by court, as before: the case's court, a district court of its circuit, and then any other court (a judge sitting by designation). A full name no longer counts as ambiguous because another judge's initials or middle name fit it, and a suffix ("SMITH, JR.") is part of a name.name_formstakes the suffix and returns the forms grouped by level (full,initials, andlast) instead of one list.- The
referencefolder is removed, since its data now come from fjc-biographies, judicial-common-space, and the other sources' current files. The tables that are still needed are dictionaries inoptions:_PRESIDENTS(the party of the president in each year since 1933, whichpolitics.presidentsreads in place of the years in which the party changed),_COURTS(a number and folder name for each court, by a pattern of the Federal Judicial Center's name for it), and_TRIAL_COURTS(each district court's name, by a pattern of how opinions name it). The last two are not yet used. Their patterns escape the periods and parentheses that the old files left as regular-expression syntax, and the District of Columbia's name is no longer "DISTRICT OF DISTRICT OF COLUMBIA".politics.presidents'startdefaults to the first year it knows, and itspresident_partyis a nullable whole number.utilities.instructions_folderreturns the folder of rulebooks. code_judgesaddsjudge1,judge1_nid,judge2,judge2_nid, and so on: the Federal Judicial Center's name andnidof the judge that each name inpanel_judgesrefers to, numbered by the name's place in the list. A name that is not matched leaves its place missing, so the judges after it keep theirs.- A
labelskind of rule, which lists the value of every rule for its variable whose pattern appears, once each and separated by commas. federal/agencies.csv(part of the "federal" rulebook, which is now seven files) makesagencies: every federal agency that a case's caption, history, or opinion names, by its name or a common abbreviation (such as "ATF", which fjc-idb calls "BATF"), as their names separated by commas. The agencies are the Integrated Database's, as fjc-idb lists them. An abbreviation that is also something else is not counted when the case names the other thing (such as "EPA" in a case about the Equal Pay Act, or "DOT" in one that cites the Dictionary of Occupational Titles), and a department that states also have needs "the", "U.S.", "United States", or "federal" right before its name.
0.3.1¶
parsewith more than one worker gives each process a chunk of cases at a time (options._CHUNK_SIZE, 1,000 by default) instead of one task for each case. With about 900,000 cases on Windows, the pool of processes stopped handing out work while its manager thread used a whole CPU. Progress is now logged after each chunk ("%d of %d cases parsed") with one worker or several. The results and the table are unchanged- The package's version in
pyproject.tomlis 0.3.1. The first commit of 0.3.1 changed only__version__, so the package built from it was 0.3.0
0.3.0¶
Updated to amos 0.4.0, whose
techniques write apply instead of implement. courtpy now adds the Federal
Judicial Center's Integrated Database to cases of the courts of appeals, and
the Judicial Common Space scores to judges, justices, and courts. Every case
from the bulk data keeps CourtListener's whole docket.
Added¶
- A
fjc_idbmodule, which adds the Federal Judicial Center's Integrated Database (IDB) to cases with the fjc-idb package, now a dependency.code_idb(an amos merger) adds the database's record of each appeal to its case in the courts of appeals, with "idb_" before fjc-idb's names for the columns. A case is matched by its circuit (court_num, or CourtListener's court id) and the first of its docket numbers that the database has, and an appeal that ended more than once (because it was reopened or remanded) is matched by the record whose judgment is nearest the decision. Without asource, it reads the years of the cases from the database's yearly files, which are downloaded if they are missing, and withdistrict = trueit also adds the district court's record of the case that was appealed (with fjc-idb'smerge_district).appealsreturns the database's table of appeals for a range of years, anddownloaddownloads its yearly files. - A
jcsmodule, which downloads the Judicial Common Space scores from https://epstein.wustl.edu/jcs (into "jcs" in the data folder) and reads them:judges(each judge of a court of appeals, matched to the Federal Judicial Center'snidby name and circuit),justices(by term and the Supreme Court Database'sjusticeName), andmedians(by year).Roster.from_fjc(jcs = True)adds each judge's score as the "jcs" attribute, andpolitics.build_table(common_space = True)adds the medians. - A
CITATION.cfffile and a citation section in the README.
Changed¶
- Updated to amos 0.4.0 and
chrisjen0.3.0, the oldest versions that courtpy now accepts. A technique of either writesapplyinstead ofimplement, so courtpy's loaders, coders, and mergers (CaseLoader,DropText,CodeIdb,MergeJudges,CodePolitics, andCodeScdb) do too. Callingapplyworks as before, except that its item is now required: a loader called outside a project takesNoneto start a new dataset (LoadCourtListener().apply(None, source = ...)). amos now declares the item ofapplyas aDataset, so courtpy passes its tables to mergers as datasets. - Module docstrings no longer list private names, which the API reference leaves out.
- Every case from the bulk data is saved with CourtListener's whole docket
(such as
docket_number_core,pacer_case_id,appeal_from_id,appellate_case_type_information,appellate_fee_status, andidb_data_id) instead of twelve of its fields.BulkData.extractreads the dockets file a second time to do so, and holds only the court of each docket in memory until the cases are known. The API client's "dockets" option saves the whole docket too. options._DOCKET_FIELDS(the fields that were kept) is replaced byoptions._DOCKET_SKIPPED(the fields that are not).judges.clean_nameleaves out accents, so "Gelpí" in one source matches "Gelpi" in another.- The Judicial Common Space file of the earlier version
(
reference/biographies/federal/jcs.csv) is moved out of the repository, to "jcs" in the data folder. - When courtpy runs from its repository, its data folder is
options._DATA_FOLDER, "data/courts" two folders above the repository (as fjc-idb's is), so the IDB's yearly files that fjc-idb downloads are shared. An installed courtpy still uses "courtpy" in the user's local application data folder, andCOURTPY_DATA_DIRstill overrides both.
0.2.3¶
- Updated to the
snickerdoodle0.4.0 template - Made
ruffprefer single quotes
0.2.2¶
Updated to amos 0.2.6, whose mergers and shapers join tables whose rows are different things. courtpy uses them to add judges, the politics of each year, and the Supreme Court Database to cases, and downloads other researchers' data from its sources.
The federal rules now read what recent CourtListener cases have only in the text of their opinions. CourtListener's full case name, judges, and disposition are blank for about nine in ten of the federal appellate cases filed since 2025, so the parties' roles and the panel were unknown, and reversals were coded from the opinion's words anywhere. In a sample of 1,500 such criminal appeals, the roles are now found in 97%, and a panel of three judges in 99%.
Added¶
- The federal rules find the caption in the opinion's opening (
caption,caption1, andcaption2) when the header's caption names no appellant or appellee, and codeparty1_appellant,party1_appellee,party2_appellant, andparty2_appelleefrom it. A caption is a role before "v." ("Plaintiff-Appellee, v."), or parties in capital letters with one role, so a citation in the opinion's words is not mistaken for one. - The federal rules find the decision that an opinion states (
decision: "AFFIRMED.", "VACATED AND REMANDED.", "Affirmed by unpublished per curiam opinion", or "we reverse", but not "we will reverse only if") and codedecision_affirm,decision_reverse,decision_vacate,decision_remand, anddecision_dismissfrom it. courtpy.judgesidentifies the judges on each case, which the earlier, unreleased courtpy did and this version had not rebuilt. ARoster(Roster.from_fjc()) is made from the Federal Judicial Center's files of judges' service, demographics, and careers, whichdownloadgets, and matches a name in an opinion to a judge of the case's court, or else of a district court in its circuit, or else of another court, among the judges serving in the case's year. The careers are coded by the rules ininstructions/judges.csv. Unlike the earlier version, a name that fits more than one judge is left unmatched instead of being given to one of them, no judge is matched outside the judge's years of service, a judge who was reassigned to another court keeps the appointment of the judge's own earlier service, a rating or vote that is not recorded is missing instead of zero, the district courts of Vermont are in the Second Circuit, and a clerkship at a district court does not make a judge a prosecutor.merge_judges(anamos.Merger) adds what the roster says about the judge that each row names, such as the author of each opinion, with a prefix: the judge's attributes, and the judge's age, senior status, and whether the judge sat by designation in the case's year and court. Like every merger, it takes "source", "columns", "prefix", and "indicator", never adds or removes a row, and records how many rows it matched.code_judges(a munger) adds the judges of each panel who were found (panel_namesandpanel_found) and the panel's composition: the mean of each attribute of its judges, such aspanel_party,panel_woman,panel_age, andpanel_designated. It is built from thelists_to_rowsshaper of amos,merge_judges, and themerge_summarymerger.judge_votes(anamos.Shaper) andcourtpy.judges.vote_tablemake a table with one row for each judge on each case, with the judge's attributes (judge_{attribute}), those of the other judges of the panel (colleagues_{attribute}), and the judge's vote on each outcome (vote_reversaland so on: the outcome, or its opposite for a judge who dissented). Like every shaper, it takes "label", "task", and "groups" for the table that it makes, and must come before the data is split. It can be one of a loader's coders, so a vote can be the label of a study, andload_casesreads thecase_idcolumn of a saved table of votes as text, so a study splits its cases the same way when the table is reused.courtpy.politicsandcode_politicsadd the political context of each case's year: the party of the president and, from a table thatbuild_tablemakes, the Supreme Court's Martin-Quinn scores and the median NOMINATE scores of each chamber of Congress.code_politicsis themerge_keysmerger of amos with the year as its key, so it takes that merger's parameters ("source", "on", "other_on", "columns", "prefix", "indicator", and "duplicates"), and a table with a year twice stops a study instead of quietly using one of its rows. A term of the court that the scores divide in two (as 2005 is) is one year, which the earlier version's table had twice.courtpy.politics.downloadgets the current files of Martin-Quinn scores (from the links of https://mqscores.wustl.edu/measures.php) and of the ideology of members of Congress (the "Member Ideology" data of https://voteview.com/data), andbuild_table,martin_quinn, andnominateuse them when they are given no files.courtpy.politics.justicesreturns the Martin-Quinn score of each justice in each term.courtpy.scdbadds the Supreme Court Database.downloadgets the latest release from https://scdb.la.psu.edu/data/,casesandvotesreturn its case centered and justice centered tables, andcode_scdb(anamos.Merger) adds its coding to parsed cases of the Supreme Court (scdb_issueArea,scdb_decisionDirection, and so on), matched by the database's id of each case or else by a citation. CourtListener cases of the Supreme Court have that id asscdb_id.examples/judge_votes.iniis a study of how judges vote in criminal appeals.
Changed¶
- Requires amos 0.2.6.
- The repository is "courtpy" (in lower case, like the package), so the links to it and to the documentation, which had stopped working, are https://github.com/WithPrecedent/courtpy and https://WithPrecedent.github.io/courtpy.
panel_judgescomes from the panel that the opinion's opening names ("Before SMITH, Chief Judge, and JONES and BROWN, Circuit Judges", or "Present:"), including a judge sitting by designation, and only otherwise from the source's list of judges, which in CourtListener may name only the author or be blank. The text that was used ispanel_text.code_outcomeuses the decision that the opinion states when the header has no disposition, and the opinion's words anywhere (opinion_reverse,opinion_vacate, andopinion_remand) only when there is neither. Those words are often about an earlier decision or a standard of review ("we will reverse only if"): in the sample, they coded 17% of defendants' appeals as reversals, and the stated decisions 9%.
Fixed¶
- A judge's middle initial "J." is no longer read as "Justice", which divided "LAWRENCE J. VILARDO" into two judges, and initials such as "S.R." before a name are no longer read as "Sr.", which left "S.R. THOMAS" as "THOMAS". "J.", "JR.", and "SR." are still removed when no name follows them.
0.2.1¶
Updated to amos 0.2.5.
Changed¶
- Requires amos 0.2.5.
code_parties,code_case_type, andcode_outcomeare now mungers (amos.Munger, new in amos 0.2.4), since they change and add columns without adding or removing rows. Their names in settings are unchanged, and the dataset's history now lists the columns that each one changed and created.drop_text, which removes columns, is still a cleaner.- The example study and the documentation use
logitfor scikit-learn's logistic regression, which amos 0.2.4 renamed fromsk_logit. (Its statsmodels model is nowlogit_sm.) Settings that namesk_logitmust uselogit.
Added¶
- A recipe for searching the opinions' text with amos's
flag_patternsandcount_patternsmungers, without a file of rules.
0.2.0¶
Updated to amos 0.2.3, whose loaders replace the "cases" section of a project's settings. Settings written for 0.1.0 need the changes below.
Added¶
- Loaders, a genre of
amosloaders (CaseLoader) in the newloadersmodule:load_court_listenerdownloads (if asked), parses, and codes CourtListener cases;load_lexis_nexisdivides, parses, and codes Lexis-Nexis cases; andload_casesloads a table saved bysave_cases. Named first in the wrangler, a loader makes the project's data, so a project needs noitem. Loaders work through the project's clerk: sources are found (and downloads saved) in its input folder, and a "save"d table is kept in its interim folder. The label is checked after the coders run, so it can be a column that a coder makes, and the dataset's history records the loader and each coder.
Changed¶
- Requires amos 0.2.3 (and pandas 3).
courtpy.Projectis nowamos.Projectitself, which runs a workflow with a loader without anitem.codemoved to thecodersmodule (it is stillcourtpy.code).- The example study and the documentation use
sk_logit, scikit-learn's logistic regression, because amos 0.2.3 gave the namelogitto the statsmodels model (which needspip install amos[statistics]).
Removed¶
- The "cases" section of a project's settings,
courtpy.build,courtpy.collect, and theinterfacemodule. Move the settings of a "cases" section to a "load_court_listener_parameters" (or "load_lexis_nexis_parameters") section, add the loader to the start of the wrangler's techniques, and rename "folder" to "source". Relative paths are now in the clerk's input folder ("save" in its interim folder) rather than its root folder.
0.1.0¶
The first release, and the first on PyPI. It is a complete rewrite of the earlier, unreleased courtpy, which was built on siMpLify. The analysis is now done with amos (and its workflows with chrisjen). The changes below are from that earlier code.
Added¶
- Downloads from CourtListener, now the main source of opinions:
BulkDataextracts cases from CourtListener's quarterly bulk data, which needs no API key and has no limits. It downloads the files (resuming an interrupted download) or streams them.CourtListenerdownloads cases with the REST API (version 4). It spaces its requests, waits when CourtListener asks it to, and saves its place so that a download stopped by an account's limit resumes where it stopped.- Both save each case as a JSON file, which
courtlistener.read_casereads. CourtListener's header information comes from its data, so no rules are needed to find it. courtpy.secretskeeps the CourtListener API key outside of any project: in the system keyring, in a private file in the user's configuration folder, in theCOURTLISTENER_API_KEYenvironment variable, or in a.envfile.- A single rule engine (
RuleandRulebook) for every CSV file of rules, with one set of columns (target,variable,kind,pattern,value,ignorecase,dotall, andnote) and nine kinds of rules. Seesrc/courtpy/instructions/README.md. - The coders
code_parties,code_case_type,code_outcome, anddrop_text, which areamostechniques and can be named in anyamossettings. courtpy.Project, anamos.Projectwhose "cases" section collects, parses, and codes the cases before the analysis.- The
courtpycommand (key,download,split,parse,rules, andrun). - Tests, and an example study (
examples/federal_appeals.ini). - The parts of the snickerdoodle template: GitHub Actions (tests on Linux, macOS, and Windows with Python 3.11 to 3.14, linting, type checking, documentation deployed to GitHub Pages, releases, publishing to PyPI, and validating the Codecov settings), dependabot, issue templates, pre-commit hooks, an editor configuration, a code of conduct, a contribution guide, and documentation built with MkDocs (a tutorial, an advanced user guide, a guide to writing rules, recipes, and the API reference).
Changed¶
- The package uses a
srclayout and is built with hatchling and uv. - The old instruction files were converted to the new columns:
organizer_lexis_nexis.csvandseparate_opinions.csvbecamelexis_nexis.csv,keywords_federal.csvbecamefederal/header.csv, andparser_opinions_federal.csvbecamefederal/opinion.csv(and is now saved in UTF-8). Some variables were renamed to be easier to read, such asparty_appnt1toparty1_appellant,counsel_us_attytocounsel_us_attorney,notice_unpub_ruletonotice_unpublished, anddisposition_op_reversedtoopinion_reverse. - A decision is coded as a reversal from its stated disposition when it has one, and only otherwise from the opinion's words. (Before, either one was enough, so "we will not reverse" in an affirmed case counted as a reversal.)
- Which party won an appeal is now coded from the party's role: an appellant wins a reversal, and an appellee wins an affirmance. (The old code had the two reversed.) Outcomes that cannot be known are missing values rather than false.
- Judges' names are split at whole words only, so names such as "Kirby" and "Holland" are no longer cut at "BY" and "AND".
Fixed in the rules¶
Fed_App_P,Fed_Civ_P,Fed_Crim_P, andFed_Evidrequired a "§" sign, which is not used when federal rules are cited, so they never matched. The evidence rule's pattern was also malformed.references_casenow includes the Federal Reporter, Fourth Series (F.4th).amend8searched for the Seventh Amendment's numeral ("VII").titleviirequired the text "Title VII.," followed by a space.alcoholsearched for "ddistilled".- The opinion's dispositions (
opinion_reverse,opinion_vacate,opinion_remand, andopinion_dismiss) only matched "We willreverse" (with no space) or a capitalized "Dismiss". - The variables
criminal_manslaugtherandgeneral_aritcleivare nowcriminal_manslaughterandgeneral_articleiv. - Non-breaking spaces in patterns now match any space.
- Lexis-Nexis header sections that end the header (such as a "JUDGES:" paragraph just before "OPINION") are now found.
- Agencies are matched from the longest name down, so "Postal Service Board of Contract Appeals" is no longer labeled "Postal Service".
Removed¶
- The siMpLify-based modules (
almanac,cookbook,entities,implements,cases.py, andcontroller.py) and the settings files that went with them. - The
federal_archiveinstruction files, which the combined files had replaced. - The external data used to add judges' biographies and political context is
kept in
reference/, but is not yet used by the new version.