prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Inconsistent case of data directory
  [The latin module](https://github.com/cltk/cltk/blob/36b6fe7aa23a8c4f41ef694ddb64b4b02534146c/cltk/corpus/latin/__init__.py#L20) tries to load the latin library from "~/CLTK_DATA", which fails on a case-sensitive filesystem.
  
  All other modules seem to use "~/cltk_data", so that should be standardized. 
  
  (It would probably be best if the path was factored out and also configurable, but fixing at least that one inconsistency lets me actually import stuff without errors.)
  
  Inconsistent case of data directory
  [The latin module](https://github.com/cltk/cltk/blob/36b6fe7aa23a8c4f41ef694ddb64b4b02534146c/cltk/corpus/latin/__init__.py#L20) tries to load the latin library from "~/CLTK_DATA", which fails on a case-sensitive filesystem.
  
  All other modules seem to use "~/cltk_data", so that should be standardized. 
  
  (It would probably be best if the path was factored out and also configurable, but fixing at least that one inconsistency lets me actually import stuff without errors.)
  
  
  </issue>
  <code>
  [start of cltk/corpus/latin/__init__.py]
  1 # CLTK: Latin Corpus Readers
  2 
  3 __author__ = 'Patrick J. Burns <patrick@diyclassics.org>'
  4 __license__ = 'MIT License. See LICENSE.'
  5 
  6 """
  7 CLTK Latin corpus readers
  8 """
  9 
  10 import os.path
  11 from nltk.corpus.reader.plaintext import PlaintextCorpusReader
  12 from nltk.tokenize.punkt import PunktSentenceTokenizer, PunktParameters
  13 
  14 from cltk.tokenize.sentence import TokenizeSentence
  15 from cltk.tokenize.word import WordTokenizer
  16 
  17 # Would like to have this search through a CLTK_DATA environment variable
  18 # Better to use something like make_cltk_path in cltk.utils.file_operations?
  19 home = os.path.expanduser('~')
  20 cltk_path = os.path.join(home, 'CLTK_DATA')
  21 
  22 word_tokenizer = WordTokenizer('latin')
  23 
  24 if os.path.exists(cltk_path + 'latin/model/latin_models_cltk/tokenizers/sentence'):
  25     sent_tokenizer = TokenizeSentence('latin')
  26 else:
  27     punkt_param = PunktParameters()
  28     abbreviations = ['c', 'l', 'm', 'p', 'q', 't', 'ti', 'sex', 'a', 'd', 'cn', 'sp', "m'", 'ser', 'ap', 'n', 'v', 'k', 'mam', 'post', 'f', 'oct', 'opet', 'paul', 'pro', 'sert', 'st', 'sta', 'v', 'vol', 'vop']
  29     punkt_param.abbrev_types = set(abbreviations)
  30     sent_tokenizer = PunktSentenceTokenizer(punkt_param)
  31 
  32 # Latin Library
  33 try:
  34     latinlibrary = PlaintextCorpusReader(cltk_path + '/latin/text/latin_text_latin_library', 
  35     '.*\.txt',
  36     word_tokenizer=word_tokenizer, 
  37     sent_tokenizer=sent_tokenizer, 
  38     encoding='utf-8')    
  39     pass
  40 except IOError as e:
  41     print("Corpus not found. Please check that the Latin Library is installed in CLTK_DATA.")
  42
  [end of cltk/corpus/latin/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/cltk/corpus/latin/__init__.py b/cltk/corpus/latin/__init__.py
  --- a/cltk/corpus/latin/__init__.py
  +++ b/cltk/corpus/latin/__init__.py
  @@ -17,7 +17,7 @@
   # Would like to have this search through a CLTK_DATA environment variable
   # Better to use something like make_cltk_path in cltk.utils.file_operations?
   home = os.path.expanduser('~')
  -cltk_path = os.path.join(home, 'CLTK_DATA')
  +cltk_path = os.path.join(home, 'cltk_data')
   
   word_tokenizer = WordTokenizer('latin')
  
verification_info: {"golden_diff": "diff --git a/cltk/corpus/latin/__init__.py b/cltk/corpus/latin/__init__.py\n--- a/cltk/corpus/latin/__init__.py\n+++ b/cltk/corpus/latin/__init__.py\n@@ -17,7 +17,7 @@\n # Would like to have this search through a CLTK_DATA environment variable\n # Better to use something like make_cltk_path in cltk.utils.file_operations?\n home = os.path.expanduser('~')\n-cltk_path = os.path.join(home, 'CLTK_DATA')\n+cltk_path = os.path.join(home, 'cltk_data')\n \n word_tokenizer = WordTokenizer('latin')\n", "issue": "Inconsistent case of data directory\n[The latin module](https://github.com/cltk/cltk/blob/36b6fe7aa23a8c4f41ef694ddb64b4b02534146c/cltk/corpus/latin/__init__.py#L20) tries to load the latin library from \"~/CLTK_DATA\", which fails on a case-sensitive filesystem.\n\nAll other modules seem to use \"~/cltk_data\", so that should be standardized. \n\n(It would probably be best if the path was factored out and also configurable, but fixing at least that one inconsistency lets me actually import stuff without errors.)\n\nInconsistent case of data directory\n[The latin module](https://github.com/cltk/cltk/blob/36b6fe7aa23a8c4f41ef694ddb64b4b02534146c/cltk/corpus/latin/__init__.py#L20) tries to load the latin library from \"~/CLTK_DATA\", which fails on a case-sensitive filesystem.\n\nAll other modules seem to use \"~/cltk_data\", so that should be standardized. \n\n(It would probably be best if the path was factored out and also configurable, but fixing at least that one inconsistency lets me actually import stuff without errors.)\n\n", "before_files": [{"content": "# CLTK: Latin Corpus Readers\n\n__author__ = 'Patrick J. Burns <patrick@diyclassics.org>'\n__license__ = 'MIT License. See LICENSE.'\n\n\"\"\"\nCLTK Latin corpus readers\n\"\"\"\n\nimport os.path\nfrom nltk.corpus.reader.plaintext import PlaintextCorpusReader\nfrom nltk.tokenize.punkt import PunktSentenceTokenizer, PunktParameters\n\nfrom cltk.tokenize.sentence import TokenizeSentence\nfrom cltk.tokenize.word import WordTokenizer\n\n# Would like to have this search through a CLTK_DATA environment variable\n# Better to use something like make_cltk_path in cltk.utils.file_operations?\nhome = os.path.expanduser('~')\ncltk_path = os.path.join(home, 'CLTK_DATA')\n\nword_tokenizer = WordTokenizer('latin')\n\nif os.path.exists(cltk_path + 'latin/model/latin_models_cltk/tokenizers/sentence'):\n    sent_tokenizer = TokenizeSentence('latin')\nelse:\n    punkt_param = PunktParameters()\n    abbreviations = ['c', 'l', 'm', 'p', 'q', 't', 'ti', 'sex', 'a', 'd', 'cn', 'sp', \"m'\", 'ser', 'ap', 'n', 'v', 'k', 'mam', 'post', 'f', 'oct', 'opet', 'paul', 'pro', 'sert', 'st', 'sta', 'v', 'vol', 'vop']\n    punkt_param.abbrev_types = set(abbreviations)\n    sent_tokenizer = PunktSentenceTokenizer(punkt_param)\n\n# Latin Library\ntry:\n    latinlibrary = PlaintextCorpusReader(cltk_path + '/latin/text/latin_text_latin_library', \n    '.*\\.txt',\n    word_tokenizer=word_tokenizer, \n    sent_tokenizer=sent_tokenizer, \n    encoding='utf-8')    \n    pass\nexcept IOError as e:\n    print(\"Corpus not found. Please check that the Latin Library is installed in CLTK_DATA.\")\n", "path": "cltk/corpus/latin/__init__.py"}]}