<commit_before>import static javax.measure.unit.SI.KILOGRAM;
import javax.measure.quantity.Mass;
import org.jscience.physics.model.RelativisticModel;
import org.jscience.physics.amount.Amount;

import java.sql.*;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.Template;
import java.net.URI;
import java.net.URISyntaxException;
import org.json.JSONObject;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import spark.Route;



import com.heroku.sdk.jdbc.DatabaseUrl;

import logicTier.dto.ListBean;
import logicTier.dto.Recipe;
import logicTier.service.UserService;
import logicTier.utils.JsonUtil;
import logicTier.utils.ResponseTransformer;
import logicTier.web.controller.HomeController;
import logicTier.web.controller.RestController;
import logicTier.ftlWriter.*;
import com.google.gson.Gson;
public class Main {

  public static void main(String[] args) {


	try{
		FtlWriter indexfw = new FtlWriter("index");
		indexfw.setParam("zzzz", true, new String[]{"Pittsburgh", "PA", "Tele: 4153415605", "Zipcode: 15213"});
	}catch(Exception e){
		e.printStackTrace();
	}
	
	try{
		FtlWriter accountfw = new FtlWriter("account");
		accountfw.setParam("wangzhuoqun", true, new String[]{"Pittsburgh", "PA", "Tele: 4153415605", "Zipcode: 15213"});
	}catch(Exception e){
		e.printStackTrace();
	}
	
    //port(Integer.valueOf(System.getenv("PORT")));
    port(8888);
    staticFileLocation("/public");
    
    UserService usrServ = new UserService();
    HomeController hc = new HomeController();

//    get("/db", (req, res) -> {
//      Connection connection = null;
//      Map<String, Object> attributes = new HashMap<>();
//      try {
//        connection = DatabaseUrl.extract().getConnection();
//
//        Statement stmt = connection.createStatement();
//        stmt.executeUpdate("CREATE TABLE IF NOT EXISTS ticks (tick timestamp)");
//        stmt.executeUpdate("INSERT INTO ticks VALUES (now())");
//        ResultSet rs = stmt.executeQuery("SELECT tick FROM ticks");
//
//        ArrayList<String> output = new ArrayList<String>();
//        while (rs.next()) {
//          output.add( "Read from DB: " + rs.getTimestamp("tick"));
//        }
//<commit_msg>logicTier, GET<commit_after>import static javax.measure.unit.SI.KILOGRAM;
import javax.measure.quantity.Mass;
import org.jscience.physics.model.RelativisticModel;
import org.jscience.physics.amount.Amount;

import java.sql.*;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.Template;
import java.net.URI;
import java.net.URISyntaxException;
import org.json.JSONObject;
import static spark.Spark.*;
import spark.template.freemarker.FreeMarkerEngine;
import spark.ModelAndView;
import spark.Route;



import com.heroku.sdk.jdbc.DatabaseUrl;

import logicTier.dto.ListBean;
import logicTier.dto.Recipe;
import logicTier.service.UserService;
import logicTier.utils.JsonUtil;
import logicTier.utils.ResponseTransformer;
import logicTier.web.controller.HomeController;
import logicTier.web.controller.RestController;
import logicTier.ftlWriter.*;
import com.google.gson.Gson;
public class Main {

  public static void main(String[] args) {


	try{
		FtlWriter indexfw = new FtlWriter("index");
		indexfw.setParam("zzzz", true, new String[]{"Pittsburgh", "PA", "Tele: 4153415605", "Zipcode: 15213"});
	}catch(Exception e){
		e.printStackTrace();
	}
	
	try{
		FtlWriter accountfw = new FtlWriter("account");
		accountfw.setParam("wangzhuoqun", true, new String[]{"Pittsburgh", "PA", "Tele: 4153415605", "Zipcode: 15213"});
	}catch(Exception e){
		e.printStackTrace();
	}
	
    port(Integer.valueOf(System.getenv("PORT")));
    //port(8888);
    staticFileLocation("/public");
    
    UserService usrServ = new UserService();
    HomeController hc = new HomeController();

//    get("/db", (req, res) -> {
//      Connection connection = null;
//      Map<String, Object> attributes = new HashMap<>();
//      try {
//        connection = DatabaseUrl.extract().getConnection();
//
//        Statement stmt = connection.createStatement();
//        stmt.executeUpdate("CREATE TABLE IF NOT EXISTS ticks (tick timestamp)");
//        stmt.executeUpdate("INSERT INTO ticks VALUES (now())");
//        ResultSet rs = stmt.executeQuery("SELECT tick FROM ticks");
//
//        ArrayList<String> output = new ArrayList<String>();
//        while (rs.next()) {
//          output.add( "Read from DB: " + rs.getTimestamp("tick"));
//        }
//
{'fraction_non_alphanumeric': 0.14510973790752185, 'fraction_numerical': 0.014489665459194546, 'mean_word_length': 4.158241758241759, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6402753', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1436, 'n_words': 317}