<commit_before>﻿<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Try Roslyn</title>

    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <meta name="theme-color" content="#4684ee">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/codemirror.min.css"/>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3//addon/lint/lint.css" />
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.0/normalize.min.css" />
    <link rel="stylesheet" href="app.css" />
    <link rel="stylesheet" href="loader/loader.css"/>

    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/codemirror.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/mode/clike/clike.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/mode/vb/vb.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/addon/lint/lint.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-hashchange/v1.3/jquery.ba-hashchange.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js"></script>
    <script src="external/lz-string-1.3.3-min.js"></script>

    <!-- TODO: Bundle/minify -->
    <script src="app.js"></script>
    <script src="directives/diagnostic.js"></script>
    <script src="directives/codemirror.js"></script>
    <script src="directives/syntaxtree.js"></script>
    <script src="directives/boolean-model.js"></script>
    <script src="directives/mobile-shelf.js"></script>
    <script src="directives/mobile-codemirror-focus.js"></script>
    <script src="services/defaults.js"></script>
    <script src="services/compilation.js"></script>
    <script src="services/remember.js"></script>
    <script src="services/url.js"></script>
    <script src="services/location.js"></script>
    <script src="controllers/app-controller.js"></script>
  </head>
  <body data-ng-app="app" data-ng-controller="AppController" data-app-mobile-codemirror-focus="mobile-editor-focus">
    <main data-ng-class="{failed: result && !result.success}">
      <div class="section-group">
        <section class="code" data-app-mobile-codemirror-focus="mobile-editor-focus">
          <header>
            <input class="mobile-menu-button" type="button" />
            <h1>Code</h1>
            <div class="languages-and-modes">
              <div class="select-wrapper option-language option">
                <select data-ng-model="options.language"
                        data-ng-options="x.language as x.displayName for x in languages"></select>
              </div>

              <div class="select-wrapper option-mode option">
                <select data-ng-model="options.mode">
                  <option value="regular">Standard</option>
                  <option value="script">Script</option>
                </select>
              </div>
            </div>

            <div class="select-wrapper option-branch option">
              <select data-ng-model="branch"
                      data-ng-options="branch as displayBranch(branch) for branch in branches track by branch.name">
                <option value="">Release (NuGet)</option>
              </select>
            </div>
          </header>
          <div class="mobile-menu" data-app-mobile-shelf="{
               toggle: '.code .mobile-menu-button',
               container: '.code',
               openClass: 'mobile-menu-open'
          }"></div>
          <div class="content">
            <app-codemirror value="code"
                            value-one-way
                            mode="codeMirrorModes[options.language]"
                            options="{
                              lineNumbers: true,
                              indentUnit: 4,
                              lint: { async: true, getAnnotations: process },
                              gutters: ['CodeMirror-linenumbers','CodeMirror-lint-markers']
                            }"></app-codemirror>
          </div>
        </section>

        <section data-ng-if="branch" class="info-only non-code">
          <header>
            <h1>Branch {{branch.name}}, last commit</h1>
          </header>
          <div class="content">
            <div>
              <a href="https://roslyn.codeplex.com/SourceControl/changeset/{{branch.lastCommitHash}}" target="_blank">{{branch.lastCommitHash}}</a>
              at {{branch.lastCommitDate | date:'dd MMM yyyy'}}
              by <a href="https://www.codeplex.com/site/users/view/{{branch.lastCommitAuthor}}" target="_blank">{{branch.lastCommitAuthor}}</a>
            </div>
            <div class="commit-message">{{branch.lastCommitMessage | trim}}</div>
          </div>
        </section>

        <!--<section class="syntax-tree collapsible" data-ng-class="{expanded: syntaxTreeExpanded}">
          <header data-ng-click="toggleSyntaxTree()">
            <h1>AST</h1>
          </header>
          <div class="content"><commit_msg>Fix links to commits by linking to GitHub<commit_after>﻿<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Try Roslyn</title>

    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <meta name="theme-color" content="#4684ee">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/codemirror.min.css"/>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3//addon/lint/lint.css" />
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.0/normalize.min.css" />
    <link rel="stylesheet" href="app.css" />
    <link rel="stylesheet" href="loader/loader.css"/>

    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/codemirror.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/mode/clike/clike.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/mode/vb/vb.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.0.3/addon/lint/lint.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-hashchange/v1.3/jquery.ba-hashchange.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.4/hammer.min.js"></script>
    <script src="external/lz-string-1.3.3-min.js"></script>

    <!-- TODO: Bundle/minify -->
    <script src="app.js"></script>
    <script src="directives/diagnostic.js"></script>
    <script src="directives/codemirror.js"></script>
    <script src="directives/syntaxtree.js"></script>
    <script src="directives/boolean-model.js"></script>
    <script src="directives/mobile-shelf.js"></script>
    <script src="directives/mobile-codemirror-focus.js"></script>
    <script src="services/defaults.js"></script>
    <script src="services/compilation.js"></script>
    <script src="services/remember.js"></script>
    <script src="services/url.js"></script>
    <script src="services/location.js"></script>
    <script src="controllers/app-controller.js"></script>
  </head>
  <body data-ng-app="app" data-ng-controller="AppController" data-app-mobile-codemirror-focus="mobile-editor-focus">
    <main data-ng-class="{failed: result && !result.success}">
      <div class="section-group">
        <section class="code" data-app-mobile-codemirror-focus="mobile-editor-focus">
          <header>
            <input class="mobile-menu-button" type="button" />
            <h1>Code</h1>
            <div class="languages-and-modes">
              <div class="select-wrapper option-language option">
                <select data-ng-model="options.language"
                        data-ng-options="x.language as x.displayName for x in languages"></select>
              </div>

              <div class="select-wrapper option-mode option">
                <select data-ng-model="options.mode">
                  <option value="regular">Standard</option>
                  <option value="script">Script</option>
                </select>
              </div>
            </div>

            <div class="select-wrapper option-branch option">
              <select data-ng-model="branch"
                      data-ng-options="branch as displayBranch(branch) for branch in branches track by branch.name">
                <option value="">Release (NuGet)</option>
              </select>
            </div>
          </header>
          <div class="mobile-menu" data-app-mobile-shelf="{
               toggle: '.code .mobile-menu-button',
               container: '.code',
               openClass: 'mobile-menu-open'
          }"></div>
          <div class="content">
            <app-codemirror value="code"
                            value-one-way
                            mode="codeMirrorModes[options.language]"
                            options="{
                              lineNumbers: true,
                              indentUnit: 4,
                              lint: { async: true, getAnnotations: process },
                              gutters: ['CodeMirror-linenumbers','CodeMirror-lint-markers']
                            }"></app-codemirror>
          </div>
        </section>

        <section data-ng-if="branch" class="info-only non-code">
          <header>
            <h1>Branch {{branch.name}}, last commit</h1>
          </header>
          <div class="content">
            <div>
				<a href="https://github.com/dotnet/roslyn/commit/{{branch.lastCommitHash}}" target="_blank">{{branch.lastCommitHash}}</a>
              at {{branch.lastCommitDate | date:'dd MMM yyyy'}}
              by <a href="https://www.codeplex.com/site/users/view/{{branch.lastCommitAuthor}}" target="_blank">{{branch.lastCommitAuthor}}</a>
            </div>
            <div class="commit-message">{{branch.lastCommitMessage | trim}}</div>
          </div>
        </section>

        <!--<section class="syntax-tree collapsible" data-ng-class="{expanded: syntaxTreeExpanded}">
          <header data-ng-click="toggleSyntaxTree()">
            <h1>AST</h1>
          </header>
          <div class="content">
{'fraction_non_alphanumeric': 0.17475908080059302, 'fraction_numerical': 0.009636767976278725, 'mean_word_length': 2.3250154035736292, 'pattern_counts': {'":': 0, '<': 243, '<?xml version=': 0, '>': 241, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1257965', 'n_tokens_mistral': 3479, 'n_tokens_neox': 3323, 'n_words': 452}