@@ -0,0 +1,1245 @@
+#!/usr/bin/env python3%0A# -*- coding: UTF-8 -*-%0A%0A# Copyright 2017 Eddie Antonio Santos %3Ceasantos@ualberta.ca%3E%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#   http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%22%22%22%0APaths for internal use.%0A%22%22%22%0A%0Afrom pathlib import Path%0A%0A%0A# Get paths for here and repository root dir.%0AHERE = Path(__file__).parent%0AREPOSITORY_ROOT = HERE.parent%0Aassert (REPOSITORY_ROOT / '.git').exists()%0A%0A# Directories for storing data and models.%0ADATA_DIR = REPOSITORY_ROOT / 'data'%0AMODEL_DIR = REPOSITORY_ROOT / 'models'%0A%0A# Paths to specific databases.%0ASOURCES_PATH = DATA_DIR / 'javascript-sources.sqlite3'%0AVECTORS_PATH = DATA_DIR / 'javascript-vectors.sqlite3'%0AMUTATIONS_PATH = DATA_DIR / 'javascript-mutations.sqlite3'%0APREDICTIONS_PATH = DATA_DIR / 'javascript-predictions.sqlite3'%0A

Put internal paths in one place.