<commit_before>// A line is an always-routed set of latlngs, stored in a 'coordinates'
// field, using a GeoJSON multilinestring represntation. Just give it a set
// of waypoints to navigate through, and it'll handle the rest.
app.Line = Backbone.Model.extend({
  urlRoot: '/api/lines',

  defaults: function() {
    // For now, just randomly assign each line a color.
    // Colors are: red, green, purple, blue
    var colors = ['#AD0101', '#0D7215', '#4E0963', '#0071CA'];
    var randomColor = _.sample(colors);

    var names = app.DEFAULT_LINE_NAMES;
    var randomName = _.random(10, 99) + ' ' + _.sample(names);

    return {
      name: randomName,
      description: 'Click to add description.',
      frequency: 30,
      speed: 10,
      startTime: '8am',
      endTime: '8pm',
      color: randomColor,
      coordinates: [], // A GeoJSON MultiLineString
    };
  },

  // TODO: Drop the parse and toJSON when we switch to camelcase
  parse: function(response) {
    response.startTime = response.start_time;
    delete response.start_time;

    response.endTime = response.end_time;
    delete response.end_time;

    response.mapId = response.map_id;
    delete response.map_id;
<commit_msg>Update default headway to 15 minutes and default speed to 12mph.<commit_after>// A line is an always-routed set of latlngs, stored in a 'coordinates'
// field, using a GeoJSON multilinestring represntation. Just give it a set
// of waypoints to navigate through, and it'll handle the rest.
app.Line = Backbone.Model.extend({
  urlRoot: '/api/lines',

  defaults: function() {
    // For now, just randomly assign each line a color.
    // Colors are: red, green, purple, blue
    var colors = ['#AD0101', '#0D7215', '#4E0963', '#0071CA'];
    var randomColor = _.sample(colors);

    var names = app.DEFAULT_LINE_NAMES;
    var randomName = _.random(10, 99) + ' ' + _.sample(names);

    return {
      name: randomName,
      description: 'Click to add description.',
      frequency: 15,
      speed: 12,
      startTime: '8am',
      endTime: '8pm',
      color: randomColor,
      coordinates: [], // A GeoJSON MultiLineString
    };
  },

  // TODO: Drop the parse and toJSON when we switch to camelcase
  parse: function(response) {
    response.startTime = response.start_time;
    delete response.start_time;

    response.endTime = response.end_time;
    delete response.end_time;

    response.mapId = response.map_id;
    delete response.map_id;

{'fraction_non_alphanumeric': 0.11490052781161185, 'fraction_numerical': 0.024360535931790498, 'mean_word_length': 3.026143790849673, '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': '4400478', 'n_tokens_mistral': 812, 'n_tokens_neox': 752, 'n_words': 248}