<commit_before>package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;

import org.json.*;

import org.joda.time.DateTime;

public class Application extends Controller {

    public static void index() {
        System.out.println("hello1");
        render();
    }

    public static void addJson(String json) {
        System.out.println("hello2");
        JSONArray jsonArray = null;
        try {
            jsonArray = new JSONArray(json);
            System.out.println(jsonArray.length());
        } catch (Exception e) {
            json = e.getMessage();
            e = null;
            render(json);
        }
        JSONObject jsonObject = null;
        List list = new ArrayList<DateTime>();
        String dateTime = null;
        Map<String, JSONObject> map = new HashMap<String, JSONObject>();
        System.out.println("\n\n********** unsorted ****************");
        for (int i=0; i<jsonArray.length(); i++) {
            try {
                jsonObject = jsonArray.getJSONObject(i);
                dateTime = jsonObject.getString("duetime");
                DateTime joda = DateTime.parse(dateTime);
                System.out.println(joda);
                // payload
                list.add(joda);
                map.put(joda.toString(), jsonObject);
            } catch (Exception e) {
                json = e.getMessage();
                e = null;<commit_msg>tweak<commit_after>package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;

import org.json.*;

import org.joda.time.DateTime;

public class Application extends Controller {

    public static void index() {
        System.out.println("hello1");
        render();
    }

    public static void addJson(String json) {
        System.out.println("hello2");
        JSONArray jsonArray = null;
        try {
            jsonArray = new JSONArray(json);
            System.out.println(jsonArray.length());
        } catch (Exception e) {
            json = e.getMessage();
            e = null;
            render(json);
        }
        JSONObject jsonObject = null;
        List list = new ArrayList<DateTime>();
        String dateTime = null;
        DateTime joda = null;
        Map<String, JSONObject> map = new HashMap<String, JSONObject>();
        System.out.println("\n\n********** unsorted ****************");
        for (int i=0; i<jsonArray.length(); i++) {
            try {
                jsonObject = jsonArray.getJSONObject(i);
                dateTime = jsonObject.getString("duetime");
                joda = DateTime.parse(dateTime);
                System.out.println(joda);
                // payload
                list.add(joda);
                map.put(joda.toString(), jsonObject);
            } catch (Exception e) {
                json = e.getMessage();
                e = null;
{'fraction_non_alphanumeric': 0.1366631980575789, 'fraction_numerical': 0.002081165452653486, 'mean_word_length': 1.8330058939096268, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '5302269', 'n_tokens_mistral': 771, 'n_tokens_neox': 747, 'n_words': 181}