This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from courts_db import courts | |
# Get all citation strings | |
court_strings = [c['citation_string'] for c in courts if c['citation_string'] != ''] | |
# How many existing collisions are there? | |
len(court_strings) - len(set(court_strings)) # Returns 148 | |
# Remove the existing collisions | |
court_strings = list(set(court_strings)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const request = require('request'); | |
// get courts in courts_db | |
const our_courts = JSON.parse(fs.readFileSync('courts_db/data/courts_old.json', 'utf8')); | |
console.log(our_courts.length); | |
// get courts in CL | |
let their_courts = []; | |
const get_their_courts = function (url) { |