<commit_before><!DOCTYPE html>

<html>
  <head>
    <title>NCIP Open Source</title>
    <link rel="stylesheet" type="text/css" href="assets/reset.css">
    <link rel="stylesheet" type="text/css" href="assets/grid.css">
    <link rel="stylesheet" type="text/css" href="assets/style.css">

    <!-- Loading list of repos and groups from JSON files -->
    <script type="text/javascript" src="ncip-group.json"></script>
    <script type="text/javascript" src="ncip-repo.json"></script>
    <script type="text/javascript" src="ncip-repos-details.json"></script>
    <script type="text/javascript" src="assets/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="assets/strftime.js"></script>
    <script type="text/javascript">
    (function ($, undefined) {

      // Put custom repo URL's in this object, keyed by repo name.
      var repoUrls = {
        "missing1": "http://ncip.github.com/missing1/",
        "missing2": "http://ncip.github.com/missing2/"
      };

      function urlQueryString(key) {
          var vars = [], hash;
          var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
          for(var i = 0; i < hashes.length; i++) {
              hash = hashes[i].split('=');
              vars.push(hash[0]);
              vars[hash[0]] = hash[1];
          }
          return vars[key];
      }
      var repoGroupName = urlQueryString('name');

      function repoUrl(repo) {
        return repoUrls[repo.name] || repo.html_url;
      }

      var reposFromGithub = ncip_repos_details;

      // Put custom repo descriptions in this object, keyed by repo name.
      var repoDescriptions = {
        "missingrepo": "Description of missing repo",
      };

      function repoDescription(repo) {
        return repoDescriptions[repo.name] || repo.description;
      }

      function addRecentlyUpdatedRepo(repo) {
        var $item = $("<li>");

        var $name = $("<a>").attr("href", repo.html_url).text(repo.name);
        $item.append($("<span>").addClass("name").append($name));

        var $time = $("<a>").attr("href", repo.html_url + "/commits").text(strftime("%h %e, %Y", repo.pushed_at));
        $item.append($("<span>").addClass("time").append($time));

        $item.append('<span class="bullet">&sdot;</span>');

        var $watchers = $("<a>").attr("href", repo.html_url + "/watchers").text(repo.watchers + " stargazers");
        $item.append($("<span>").addClass("watchers").append($watchers));

        $item.append('<span class="bullet">&sdot;</span>');

        var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks + " forks");
        $item.append($("<span>").addClass("forks").append($forks));

        $item.appendTo("#recently-updated-repos");
      }

      function addRepo(repo) {
        var $item = $("<li>").addClass("repo grid-1 " + repo.category);
        var $link = $("<a>").attr("href", repoUrl(repo)).appendTo($item);
        $link.append($("<h2>").text(repo.name));
        $link.append($("<p>").text(repoDescription(repo)));
        $item.appendTo("#repos");
      }

      function getReposFromGithub(repos, page) {
        repos = repos || [];
        page = page || 1;

        var uri = "https://api.github.com/orgs/ncip/repos?callback=?"
                + "&per_page=100"
                + "&page="+page;

        $.getJSON(uri, function (result) {
          if (result.data && result.data.length > 0) {
            repos = repos.concat(result.data);
            getReposFromGithub(repos, page + 1);
          }
          else {
            $(function () {
              $("#num-repos").text(repos.length);

              // Convert pushed_at to Date.
              $.each(repos, function (i, repo) {
                repo.pushed_at = new Date(repo.pushed_at);
              });

            });

            // Sort alphabetically by repository name
            repos.sort(function (a, b) {
              var namea = a.name.toLowerCase();
              var nameb = b.name.toLowerCase();
              if (namea > nameb) return 1;
              if (nameb > namea) return -1;
              return 0;
            });

          }
        });
      reposFromGithub = repos;
      }
      // getReposFromGithub();

      var reposInGroup = [];

      function selectReposFromGroup(repoGroupName) {

        var repoGroups = ncip_groups;

        var repoGroup = repoGroups[repoGroupName];

        $(function () {
          $.each(repoGroups, function (i, group) {
            if( group.name === repoGroupName ) {
              repoGroup = group;
              }
            });
        });

        console.log(repoGroup);

        $(function () {

          $.each(reposFromGithub, function (i, repo) {

            var matchedToGroup = false;

            $.each(ncip_repos, function (i, ncip_repo) {
              if( repo.name === ncip_repo.name ) {
                if( ncip_repo.group === repoGroupName ) {
                  matchedToGroup = true;
                }
              }<commit_msg>Unescape URL to restore spaces.<commit_after><!DOCTYPE html>

<html>
  <head>
    <title>NCIP Open Source</title>
    <link rel="stylesheet" type="text/css" href="assets/reset.css">
    <link rel="stylesheet" type="text/css" href="assets/grid.css">
    <link rel="stylesheet" type="text/css" href="assets/style.css">

    <!-- Loading list of repos and groups from JSON files -->
    <script type="text/javascript" src="ncip-group.json"></script>
    <script type="text/javascript" src="ncip-repo.json"></script>
    <script type="text/javascript" src="ncip-repos-details.json"></script>
    <script type="text/javascript" src="assets/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="assets/strftime.js"></script>
    <script type="text/javascript">
    (function ($, undefined) {

      // Put custom repo URL's in this object, keyed by repo name.
      var repoUrls = {
        "missing1": "http://ncip.github.com/missing1/",
        "missing2": "http://ncip.github.com/missing2/"
      };

      function urlQueryString(key) {
          var vars = [], hash;
          var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
          for(var i = 0; i < hashes.length; i++) {
              hash = hashes[i].split('=');
              vars.push(hash[0]);
              vars[hash[0]] = hash[1];
          }
          return vars[key];
      }
      var repoGroupName = urlQueryString('name');

      repoGroupName = unescape(repoGroupName);

      function repoUrl(repo) {
        return repoUrls[repo.name] || repo.html_url;
      }

      var reposFromGithub = ncip_repos_details;

      // Put custom repo descriptions in this object, keyed by repo name.
      var repoDescriptions = {
        "missingrepo": "Description of missing repo",
      };

      function repoDescription(repo) {
        return repoDescriptions[repo.name] || repo.description;
      }

      function addRecentlyUpdatedRepo(repo) {
        var $item = $("<li>");

        var $name = $("<a>").attr("href", repo.html_url).text(repo.name);
        $item.append($("<span>").addClass("name").append($name));

        var $time = $("<a>").attr("href", repo.html_url + "/commits").text(strftime("%h %e, %Y", repo.pushed_at));
        $item.append($("<span>").addClass("time").append($time));

        $item.append('<span class="bullet">&sdot;</span>');

        var $watchers = $("<a>").attr("href", repo.html_url + "/watchers").text(repo.watchers + " stargazers");
        $item.append($("<span>").addClass("watchers").append($watchers));

        $item.append('<span class="bullet">&sdot;</span>');

        var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks + " forks");
        $item.append($("<span>").addClass("forks").append($forks));

        $item.appendTo("#recently-updated-repos");
      }

      function addRepo(repo) {
        var $item = $("<li>").addClass("repo grid-1 " + repo.category);
        var $link = $("<a>").attr("href", repoUrl(repo)).appendTo($item);
        $link.append($("<h2>").text(repo.name));
        $link.append($("<p>").text(repoDescription(repo)));
        $item.appendTo("#repos");
      }

      function getReposFromGithub(repos, page) {
        repos = repos || [];
        page = page || 1;

        var uri = "https://api.github.com/orgs/ncip/repos?callback=?"
                + "&per_page=100"
                + "&page="+page;

        $.getJSON(uri, function (result) {
          if (result.data && result.data.length > 0) {
            repos = repos.concat(result.data);
            getReposFromGithub(repos, page + 1);
          }
          else {
            $(function () {
              $("#num-repos").text(repos.length);

              // Convert pushed_at to Date.
              $.each(repos, function (i, repo) {
                repo.pushed_at = new Date(repo.pushed_at);
              });

            });

            // Sort alphabetically by repository name
            repos.sort(function (a, b) {
              var namea = a.name.toLowerCase();
              var nameb = b.name.toLowerCase();
              if (namea > nameb) return 1;
              if (nameb > namea) return -1;
              return 0;
            });

          }
        });
      reposFromGithub = repos;
      }
      // getReposFromGithub();

      var reposInGroup = [];

      function selectReposFromGroup(repoGroupName) {

        var repoGroups = ncip_groups;

        var repoGroup = repoGroups[repoGroupName];

        $(function () {
          $.each(repoGroups, function (i, group) {
            if( group.name === repoGroupName ) {
              repoGroup = group;
              }
            });
        });


        $(function () {

          $.each(reposFromGithub, function (i, repo) {

            var matchedToGroup = false;

            $.each(ncip_repos, function (i, ncip_repo) {
              if( repo.name === ncip_repo.name ) {
                if( ncip_repo.group === repoGroupName ) {
                  matchedToGroup = true;
                }
              }
{'fraction_non_alphanumeric': 0.173650919153983, 'fraction_numerical': 0.004546353034196481, 'mean_word_length': 2.1289424860853434, 'pattern_counts': {'":': 6, '<': 79, '<?xml version=': 0, '>': 83, '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': '850947', 'n_tokens_mistral': 3133, 'n_tokens_neox': 2982, 'n_words': 567}