<commit_before>import models.BuyOfferDB;
import models.SellOfferDB;
import models.StudentDB;
import models.TextbookDB;
import play.Application;
import play.GlobalSettings;
import views.formdata.BuyOfferFormData;
import views.formdata.SellOfferFormData;
import views.formdata.StudentFormData;
import views.formdata.TextbookFormData;

/**
 * Implements a Global object for the Play Framework.
 * 
 * @author eduardgamiao
 * 
 */
public class Global extends GlobalSettings {

  /**
   * Initialization method for this Play Framework web application.
   * 
   * @param app A Play Framework application.
   */
  public void onStart(Application app) {
    // Add Students.
    StudentDB.addStudent(new StudentFormData("Eduard", "Gamiao", "<EMAIL>", "http://s.gravatar.com"
        + "/avatar/7435fbb221d3302b55a396cab93b2149?s=80"));

    StudentDB.addStudent(new StudentFormData("Alvin", "Wang", "<EMAIL>", "https://en.gravatar.com/"
        + "userimage/54501069/d2cf47994deac7bc9288c1cc1a17c879.png"));

    // Add Textbooks.
    TextbookDB.addTextbook(new TextbookFormData("Java Concepts: Compatible with Java 5, 6 and 7", "<NAME>",
        "0470509473", "Excellent"));

    TextbookDB.addTextbook(new TextbookFormData("Discrete Mathematics and Its Applications", "<NAME>",
        "0073383090", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Data Structures: Abstraction and Design Using Java", 
        "<NAME>, <NAME>", "0470128704", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("C Programming Language", "<NAME>, <NAME>",
        "0131103628", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("C++ Primer Plus", "<NAME>",
        "0321776402", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("Programming Language Pragmatics", "<NAME>",
        "0123745144", "Good"));

    TextbookDB.addTextbook(new TextbookFormData("Land of Lisp: Learn to Program in Lisp, One Game at a Time!", 
        "<NAME>", "1593272812", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("Database Systems: The Complete Book", 
        "<NAME>, <NAME>, <NAME>", "0131873253", "Poor"));

    TextbookDB.addTextbook(new TextbookFormData("Operating System Concepts", 
        "<NAME>, <NAME>, <NAME>", "1118063333", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("Ethics for the Information Age", 
        "<NAME>", "0132855534", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Emotional Design: Why We Love (or Hate) Everyday Things", 
        "<NAME>", "0465051367", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("Presenting to Win: The Art of Telling Your Story, Updated and Expanded"
        + " Edition", "<NAME>", "0137144172", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("The Design of Everyday Things", 
        "<NAME>", "0465067107", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("Artifical Intelligence for Games", 
        "<NAME>", "0123747317", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Introduction to Algorithms", "<NAME>", "0262033844", "Fair"));

    TextbookDB.addTextbook(new TextbookFormData("Digital Logic Design: A Rigorous Approach", "Guy Even and Moti "
        + "Medina", "1107027535", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("Operating System Concepts [Loose Leaf]", 
        "<NAME>, <NAME>, <NAME>", "1118129385", "Excellent"));
    
    // Add Buy Offers.
    String student = "<NAME> (<EMAIL>)";
    String textbook = "Operating System Concepts [Loose Leaf]";
    Integer price = 50;
    String date = "2014/12/31 23:59:59";
    long id = 1;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Artifical Intelligence for Games";
    price = 72;
    date = "2015/01/11 12:00:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Programming Language Pragmatics";
    price = 54;
    date = "2014/12/20 22:05:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Introduction to Algorithms";
    price = 100;
    date = "2015/05/15 23:00:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Data Structures: Abstraction and Design Using Java";
    price = 30;
    date = "2014/11/18 23:59:59";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    // Add Sell Offers.
    student = "<NAME> (<EMAIL>)";
    textbook = "Emotional Design: Why We Love (or Hate) Everyday Things";
    price = 20;
    date = "2015/01/01 23:59:59";
    id = 1;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Data Structures: Abstraction and Design Using Java";
    price = 77;
    date = "2015/01/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Database Systems: The Complete Book";
    price = 44;
    date = "2015/12/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Operating System Concepts [Loose Leaf]";
    price = 60;
    date = "2015/01/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
  }

}
<commit_msg>Testing expired date on matches.<commit_after>import models.BuyOfferDB;
import models.SellOfferDB;
import models.StudentDB;
import models.TextbookDB;
import play.Application;
import play.GlobalSettings;
import views.formdata.BuyOfferFormData;
import views.formdata.SellOfferFormData;
import views.formdata.StudentFormData;
import views.formdata.TextbookFormData;

/**
 * Implements a Global object for the Play Framework.
 * 
 * @author eduardgamiao
 * 
 */
public class Global extends GlobalSettings {

  /**
   * Initialization method for this Play Framework web application.
   * 
   * @param app A Play Framework application.
   */
  public void onStart(Application app) {
    // Add Students.
    StudentDB.addStudent(new StudentFormData("Eduard", "Gamiao", "<EMAIL>", "http://s.gravatar.com"
        + "/avatar/7435fbb221d3302b55a396cab93b2149?s=80"));

    StudentDB.addStudent(new StudentFormData("Alvin", "Wang", "<EMAIL>", "https://en.gravatar.com/"
        + "userimage/54501069/d2cf47994deac7bc9288c1cc1a17c879.png"));

    // Add Textbooks.
    TextbookDB.addTextbook(new TextbookFormData("Java Concepts: Compatible with Java 5, 6 and 7", "<NAME>",
        "0470509473", "Excellent"));

    TextbookDB.addTextbook(new TextbookFormData("Discrete Mathematics and Its Applications", "<NAME>",
        "0073383090", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Data Structures: Abstraction and Design Using Java", 
        "<NAME>, <NAME>", "0470128704", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("C Programming Language", "<NAME>, <NAME>",
        "0131103628", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("C++ Primer Plus", "<NAME>",
        "0321776402", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("Programming Language Pragmatics", "<NAME>",
        "0123745144", "Good"));

    TextbookDB.addTextbook(new TextbookFormData("Land of Lisp: Learn to Program in Lisp, One Game at a Time!", 
        "<NAME>", "1593272812", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("Database Systems: The Complete Book", 
        "<NAME>, <NAME>, <NAME>", "0131873253", "Poor"));

    TextbookDB.addTextbook(new TextbookFormData("Operating System Concepts", 
        "<NAME>, <NAME>, <NAME>", "1118063333", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("Ethics for the Information Age", 
        "<NAME>", "0132855534", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Emotional Design: Why We Love (or Hate) Everyday Things", 
        "<NAME>", "0465051367", "Fair"));
    
    TextbookDB.addTextbook(new TextbookFormData("Presenting to Win: The Art of Telling Your Story, Updated and Expanded"
        + " Edition", "<NAME>", "0137144172", "Excellent"));
    
    TextbookDB.addTextbook(new TextbookFormData("The Design of Everyday Things", 
        "<NAME>", "0465067107", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("Artifical Intelligence for Games", 
        "<NAME>", "0123747317", "Good"));
    
    TextbookDB.addTextbook(new TextbookFormData("Introduction to Algorithms", "<NAME>", "0262033844", "Fair"));

    TextbookDB.addTextbook(new TextbookFormData("Digital Logic Design: A Rigorous Approach", "Guy Even and Moti "
        + "Medina", "1107027535", "Poor"));
    
    TextbookDB.addTextbook(new TextbookFormData("Operating System Concepts [Loose Leaf]", 
        "<NAME>, <NAME>, <NAME>", "1118129385", "Excellent"));
    
    // Add Buy Offers.
    String student = "<NAME> (<EMAIL>)";
    String textbook = "Operating System Concepts [Loose Leaf]";
    Integer price = 50;
    String date = "2014/12/31 23:59:59";
    long id = 1;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Artifical Intelligence for Games";
    price = 72;
    date = "2015/01/11 12:00:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Programming Language Pragmatics";
    price = 54;
    date = "2014/12/20 22:05:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Introduction to Algorithms";
    price = 100;
    date = "2015/05/15 23:00:00";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Data Structures: Abstraction and Design Using Java";
    price = 30;
    date = "2014/11/18 23:59:59";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "The Design of Everyday Things";
    price = 43;
    date = "2013/11/01 23:59:59";
    id++;
    BuyOfferDB.addBuyOffer(new BuyOfferFormData(student, textbook, price, date, id));
    
    // Add Sell Offers.
    student = "<NAME> (<EMAIL>)";
    textbook = "Emotional Design: Why We Love (or Hate) Everyday Things";
    price = 20;
    date = "2015/01/01 23:59:59";
    id = 1;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Data Structures: Abstraction and Design Using Java";
    price = 77;
    date = "2015/01/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Database Systems: The Complete Book";
    price = 44;
    date = "2015/12/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Operating System Concepts [Loose Leaf]";
    price = 60;
    date = "2015/01/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
    
    student = "<NAME> (<EMAIL>)";
    textbook = "Land of Lisp: Learn to Program in Lisp, One Game at a Time!";
    price = 58;
    date = "2013/11/01 23:59:59";
    id++;
    SellOfferDB.addSellOffer(new SellOfferFormData(student, textbook, price, date, id));
  }

}

{'fraction_non_alphanumeric': 0.14560850074713597, 'fraction_numerical': 0.06408766395483978, 'mean_word_length': 3.720611285266458, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 2, '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': '3341732', 'n_tokens_mistral': 4594, 'n_tokens_neox': 3939, 'n_words': 964}