<commit_before>var OPrime = OPrime || {};

OPrime.debugMode = false;
/*
 * Android touchdb for OPrime runs on port 8128, so if the app is running on
 * port 8128 it is likely in a touchdb (either in the android app or in a
 * browser)
 */
OPrime.runFromTouchDBOnAndroidInLocalNetwork = function() {
  return window.location.port == 8128;
};

/**
 * The address of the TouchDB-Android database on the Android.
 */
OPrime.touchUrl = "http://localhost:8128/";

/**
 * The address of the PouchDB database on the browser.
 */
OPrime.pouchUrl = "idb://";

OPrime.getCouchUrl = function(couchConnection, couchdbcommand) {
  if (!couchConnection) {
    couchConnection = OPrime.defaultCouchConnection();
    OPrime.debug("Using the apps ccouchConnection", couchConnection);
  }

  var couchurl = couchConnection.protocol + couchConnection.domain;
  if (couchConnection.port != null && couchConnection.port != "443" && couchConnection.port != "80") {
    couchurl = couchurl + ":" + couchConnection.port;
  }
  if(!couchConnection.path){
    couchConnection.path = "";
  }
  couchurl = couchurl + couchConnection.path;
  if (couchdbcommand === null || couchdbcommand === undefined) {
    couchurl = couchurl + "/" + couchConnection.pouchname;
  } else {
    couchurl = couchurl + couchdbcommand;
  }

    
  /* Switch user to the new dev servers if they have the old ones */
  couchurl = couchurl.replace(/ifielddevs.iriscouch.com/g,
      "corpusdev.lingsync.org");

  /*
   * For debugging cors #838: Switch to use the corsproxy corpus service instead
   * of couchdb directly
   */
  // couchurl = couchurl.replace(/https/g,"http").replace(/6984/g,"3186");
  
  return couchurl;
};<commit_msg>getcouchurl was inserting an  unnecesary : in the urls<commit_after>var OPrime = OPrime || {};

OPrime.debugMode = false;
/*
 * Android touchdb for OPrime runs on port 8128, so if the app is running on
 * port 8128 it is likely in a touchdb (either in the android app or in a
 * browser)
 */
OPrime.runFromTouchDBOnAndroidInLocalNetwork = function() {
  return window.location.port == 8128;
};

/**
 * The address of the TouchDB-Android database on the Android.
 */
OPrime.touchUrl = "http://localhost:8128/";

/**
 * The address of the PouchDB database on the browser.
 */
OPrime.pouchUrl = "idb://";

OPrime.getCouchUrl = function(couchConnection, couchdbcommand) {
  if (!couchConnection) {
    couchConnection = OPrime.defaultCouchConnection();
    OPrime.debug("Using the apps ccouchConnection", couchConnection);
  }

  var couchurl = couchConnection.protocol + couchConnection.domain;
  if (couchConnection.port && couchConnection.port != "443" && couchConnection.port != "80") {
    couchurl = couchurl + ":" + couchConnection.port;
  }
  if(!couchConnection.path){
    couchConnection.path = "";
  }
  couchurl = couchurl + couchConnection.path;
  if (couchdbcommand === null || couchdbcommand === undefined) {
    couchurl = couchurl + "/" + couchConnection.pouchname;
  } else {
    couchurl = couchurl + couchdbcommand;
  }

    
  /* Switch user to the new dev servers if they have the old ones */
  couchurl = couchurl.replace(/ifielddevs.iriscouch.com/g,
      "corpusdev.lingsync.org");

  /*
   * For debugging cors #838: Switch to use the corsproxy corpus service instead
   * of couchdb directly
   */
  // couchurl = couchurl.replace(/https/g,"http").replace(/6984/g,"3186");
  
  return couchurl;
};
{'fraction_non_alphanumeric': 0.12474317581449956, 'fraction_numerical': 0.018784854710889344, 'mean_word_length': 3.7202216066481992, 'pattern_counts': {'":': 2, '<': 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': '7642225', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1076, 'n_words': 290}