<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The **case_info** function returns a link to the opinion text on CourtListener given the **opinion id** (NOT the cluster id)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "repo_directory = '/Users/iaincarmichael/Dropbox/Research/law/law-net/'\n",
    "\n",
    "import sys\n",
    "sys.path.append(repo_directory + 'code/')\n",
    "\n",
    "from helpful_functions import case_info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Anders v. California\n",
      "date_filed: 1967-05-08\n",<commit_msg>repo comment<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The **case_info** function returns a link to the opinion text on CourtListener given the **opinion id** (NOT the cluster id). "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# change this to your repo directory\n",
    "repo_directory = '/Users/iaincarmichael/Dropbox/Research/law/law-net/'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import sys\n",
    "sys.path.append(repo_directory + 'code/')\n",
    "\n",
    "from helpful_functions import case_info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Anders v. California\n",
      "date_filed: 1967-05-08\n",
{'fraction_non_alphanumeric': 0.1935823250920568, 'fraction_numerical': 0.010520778537611783, 'mean_word_length': 2.6647398843930636, 'pattern_counts': {'":': 42, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1952510', 'n_tokens_mistral': 716, 'n_tokens_neox': 680, 'n_words': 144}