<commit_before>;(function () {
  'use strict';

  var casper   = require('casper').create(),
      $x       = require('casper').selectXPath,

      KEYWORDS = [ 'hollister'             ,
                   'offeredat'             ,
                   'True Religion'         ,
                   'bnnklmn'               ,
                   '<NAME>'          ,
                   'University or college' ,
                   'north face'            ,
                   'そこである' ],

      url      = 'http://cal.nashvl.org/events?utf8=%E2%9C%93&date%5Bstart%5D=2000-01-01&date%5Bend%5D=2099-12-31&commit=Filter',

      links    = [];

  casper.start(url);
  casper.viewport(1280, 720);

  //Grab all cal.nashvl.org links that contain any KEYWORD
  casper.eachThen(KEYWORDS, function (response) {
    var xpath = "//a[contains(text(),'" +
                  response.data +
                  "') and contains(@href,'cal.nashvl.org')]",

        nodes = $x(xpath);

    links.push(this.getElementsAttribute(nodes, 'href'));
  });

  //Then Flatten the links array
  casper.then(function () {
    links = links.reduce(function (a, b) {
      return a.concat(b);
    });
  });

  //Then Submit a DELETE request to the url
  casper.then(function () {
    casper.eachThen(links, function (response) {
      this.thenOpen(response.data, {method: 'delete'}, function () {
        this.echo('delete: ' + response.data);
      });
    });
  });

  casper.run(function () {
    this.exit();
  });

}());<commit_msg>whitespace<commit_after>;(function(){
  'use strict';

  var casper   = require('casper').create(),
      $x       = require('casper').selectXPath,

      KEYWORDS = [ 'hollister'             ,
                   'offeredat'             ,
                   'True Religion'         ,
                   'bnnklmn'               ,
                   '<NAME>'          ,
                   'University or college' ,
                   'north face'            ,
                   'そこである'],

      url      = 'http://cal.nashvl.org/events?utf8=%E2%9C%93&date%5Bstart%5D=2000-01-01&date%5Bend%5D=2099-12-31&commit=Filter',

      links    = [];

  casper.start(url);
  casper.viewport(1280, 720);

  // Grab all cal.nashvl.org links that contain any KEYWORD
  casper.eachThen(KEYWORDS, function(response){
    var xpath = "//a[contains(text(),'" +
                  response.data +
                  "') and contains(@href,'cal.nashvl.org')]",

        nodes = $x(xpath);

    links.push(this.getElementsAttribute(nodes, 'href'));
  });

  // Then Flatten the links array
  casper.then(function(){
    links = links.reduce(function(a, b){
      return a.concat(b);
    });
  });

  // Then Submit a DELETE request to the url
  casper.then(function(){
    casper.eachThen(links, function(response){
      this.thenOpen(response.data, {method: 'delete'}, function(){
        this.echo('delete: ' + response.data);
      });
    });
  });

  casper.run(function(){
    this.exit();
  });

}());
{'fraction_non_alphanumeric': 0.16058882569421212, 'fraction_numerical': 0.021411843425894948, 'mean_word_length': 1.7917833800186742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5332149', 'n_tokens_mistral': 1013, 'n_tokens_neox': 936, 'n_words': 157}