An AI project that includes a scraper for NFL data, postgres database, and user interface. It uses a classification algorithm to predict winners.
| 1 | @REM ---------------------------------------------------------------------------- |
| 2 | @REM Copyright 2001-2004 The Apache Software Foundation. |
| 3 | @REM |
| 4 | @REM Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | @REM you may not use this file except in compliance with the License. |
| 6 | @REM You may obtain a copy of the License at |
| 7 | @REM |
| 8 | @REM http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | @REM |
| 10 | @REM Unless required by applicable law or agreed to in writing, software |
| 11 | @REM distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | @REM See the License for the specific language governing permissions and |
| 14 | @REM limitations under the License. |
| 15 | @REM ---------------------------------------------------------------------------- |
| 16 | @REM |
| 17 | |
| 18 | @echo off |
| 19 | |
| 20 | set ERROR_CODE=0 |
| 21 | |
| 22 | :init |
| 23 | @REM Decide how to startup depending on the version of windows |
| 24 | |
| 25 | @REM -- Win98ME |
| 26 | if NOT "%OS%"=="Windows_NT" goto Win9xArg |
| 27 | |
| 28 | @REM set local scope for the variables with windows NT shell |
| 29 | if "%OS%"=="Windows_NT" @setlocal |
| 30 | |
| 31 | @REM -- 4NT shell |
| 32 | if "%eval[2+2]" == "4" goto 4NTArgs |
| 33 | |
| 34 | @REM -- Regular WinNT shell |
| 35 | set CMD_LINE_ARGS=%* |
| 36 | goto WinNTGetScriptDir |
| 37 | |
| 38 | @REM The 4NT Shell from jp software |
| 39 | :4NTArgs |
| 40 | set CMD_LINE_ARGS=%$ |
| 41 | goto WinNTGetScriptDir |
| 42 | |
| 43 | :Win9xArg |
| 44 | @REM Slurp the command line arguments. This loop allows for an unlimited number |
| 45 | @REM of arguments (up to the command line limit, anyway). |
| 46 | set CMD_LINE_ARGS= |
| 47 | :Win9xApp |
| 48 | if %1a==a goto Win9xGetScriptDir |
| 49 | set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 |
| 50 | shift |
| 51 | goto Win9xApp |
| 52 | |
| 53 | :Win9xGetScriptDir |
| 54 | set SAVEDIR=%CD% |
| 55 | %0\ |
| 56 | cd %0\..\.. |
| 57 | set BASEDIR=%CD% |
| 58 | cd %SAVEDIR% |
| 59 | set SAVE_DIR= |
| 60 | goto repoSetup |
| 61 | |
| 62 | :WinNTGetScriptDir |
| 63 | set BASEDIR=%~dp0\.. |
| 64 | |
| 65 | :repoSetup |
| 66 | |
| 67 | |
| 68 | if "%JAVACMD%"=="" set JAVACMD=java |
| 69 | |
| 70 | if "%REPO%"=="" set REPO=%BASEDIR%\lib |
| 71 | |
| 72 | set CLASSPATH="%BASEDIR%"\etc;"%REPO%"\* |
| 73 | set EXTRA_JVM_ARGUMENTS= |
| 74 | goto endInit |
| 75 | |
| 76 | @REM Reaching here means variables are defined and arguments have been captured |
| 77 | :endInit |
| 78 | |
| 79 | %JAVACMD% %JAVA_OPTS% %EXTRA_JVM_ARGUMENTS% -classpath %CLASSPATH_PREFIX%;%CLASSPATH% -Dapp.name="browsermob-proxy" -Dapp.repo="%REPO%" -Dbasedir="%BASEDIR%" net.lightbody.bmp.proxy.Main %CMD_LINE_ARGS% |
| 80 | if ERRORLEVEL 1 goto error |
| 81 | goto end |
| 82 | |
| 83 | :error |
| 84 | if "%OS%"=="Windows_NT" @endlocal |
| 85 | set ERROR_CODE=1 |
| 86 | |
| 87 | :end |
| 88 | @REM set local scope for the variables with windows NT shell |
| 89 | if "%OS%"=="Windows_NT" goto endNT |
| 90 | |
| 91 | @REM For old DOS remove the set variables from ENV - we assume they were not set |
| 92 | @REM before we started - at least we don't leave any baggage around |
| 93 | set CMD_LINE_ARGS= |
| 94 | goto postExec |
| 95 | |
| 96 | :endNT |
| 97 | @endlocal |
| 98 | |
| 99 | :postExec |
| 100 | |
| 101 | if "%FORCE_EXIT_ON_ERROR%" == "on" |
| 102 | |
| 103 | |
| 104 | |
| 105 | exit /B %ERROR_CODE% |