<commit_before>from fastapi import FastAPI, Form
from fastapi.responses import Response
from fastapi.middleware.cors import CORSMiddleware

import pandas as pd
from sqlalchemy import create_engine

#default arguments
file = './crime50k.db'


#arguments from env
import os
if 'DBFILE' in os.environ:
    file = os.environ['DBFILE']

engine = create_engine('sqlite:///'+file)

app = FastAPI()<commit_msg>Fixed DBFILE env variable checking<commit_after>from fastapi import FastAPI, Form
from fastapi.responses import Response
from fastapi.middleware.cors import CORSMiddleware

import pandas as pd
from sqlalchemy import create_engine

#default arguments
file = './crime50k.db'


#arguments from env
import os
if 'DBFILE' in os.environ:
    file = os.environ['DBFILE']
    
engine = create_engine('sqlite:///'+file)

app = FastAPI()
{'fraction_non_alphanumeric': 0.09167671893848009, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 5.0583941605839415, 'pattern_counts': {'":': 0, '<': 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': '1277717', 'n_tokens_mistral': 263, 'n_tokens_neox': 256, 'n_words': 83}