<commit_before>// ==UserScript==
// @name summarize-pad
// @namespace https://github.com/bjperson/summarize-pad
// @author <NAME>
// @date 18/05/2015
// @version 1.5
// @license AGPL V3; https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License
// @include https://pad.regardscitoyens.org/*
// @include https://framapad.org/*
// @include https://pad.lqdn.fr/*
// @compat Firefox, Chrome
// @description Parse any etherpad content to summarize it with simple rules
// ==/UserScript==

var summarizePad = (function() {
  var style = document.createElement('style');

  style.textContent = " \
  #padassistant {  \
    background-color: #fff;  \
    border-left: 1px solid #dfdfdf;  \
    font-size: 1.5em;  \
    height: 100%;  \
    overflow: auto;  \
    position: absolute;  \
    right: 0;  \
    width: 30%;  \
    z-index: 100;  \
  }  \
  #toggleassistant {  \
    background-color: #e8e9e9;  \
    border: 1px solid #dfdfdf;  \
    color: #fff;  \
    font-size: 2.5em;  \
    font-weight: bold;  \
    height: 32px;  \
    overflow: hidden;  \
    position: absolute;  \
    right: 0;  \
    text-align: center;  \
    width: 32px;  \
    z-index: 101;  \
    cursor:pointer;  \
  }  \
  .tasktype {  \
    color:#000;  \
    background-color:#e8e9e9;  \
    padding:0.8em;  \
    font-weight:bold;  \
  }  \
  .task {  \
    border-bottom:1px solid #dfdfdf;  \
    padding:0.3em;  \
    cursor:pointer;  \
  }  \
  .task:hover {  \
    background-color: #F2F7F7;  \
  } \
  #help { \
    padding: 1em; \
    border-top: 1px solid #dfdfdf; \
  } \
  #help h1 { \
    font-weight: bold; \
    margin-bottom: 0.5em; \
  }";

  document.head.appendChild(style);

  var help = '<div id="help" style="display: none"> \
    <h2>Help</h2> \
    <p> \
    A list must be uppercase with an underline, example : \
    <br /> \
    <u>LIST</u><br /> \
    <br /> \
    If a list title ends with ":", tasks will be counted and displayed, example : \
    <br /><u>LIST :</u><br /> \
    <br /> \
    If a list does not contain tasks, it will not be displayed. \
    <br /><br /> \
    </p> \
    <p>  \
    A task is a top-level bullet list item, example : \
    <br /> \
    <ul><li><span style="background-color:#FFC7F1;">Task</span></li></ul> \
    </p> \
    <p><br />  \
    You can setup tags writing anything like this anywhere on your pad : \
    <br /> \
    [URGENT]: red; <br />\
    [DONE]: #E5E5E5; \<commit_msg>No author colours for a list<commit_after>// ==UserScript==
// @name summarize-pad
// @namespace https://github.com/bjperson/summarize-pad
// @author <NAME>
// @date 18/05/2015
// @version 1.5
// @license AGPL V3; https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License
// @include https://pad.regardscitoyens.org/*
// @include https://framapad.org/*
// @include https://pad.lqdn.fr/*
// @compat Firefox, Chrome
// @description Parse any etherpad content to summarize it with simple rules
// ==/UserScript==

var summarizePad = (function() {
  var style = document.createElement('style');

  style.textContent = " \
  #padassistant {  \
    background-color: #fff;  \
    border-left: 1px solid #dfdfdf;  \
    font-size: 1.5em;  \
    height: 100%;  \
    overflow: auto;  \
    position: absolute;  \
    right: 0;  \
    width: 30%;  \
    z-index: 100;  \
  }  \
  #toggleassistant {  \
    background-color: #e8e9e9;  \
    border: 1px solid #dfdfdf;  \
    color: #fff;  \
    font-size: 2.5em;  \
    font-weight: bold;  \
    height: 32px;  \
    overflow: hidden;  \
    position: absolute;  \
    right: 0;  \
    text-align: center;  \
    width: 32px;  \
    z-index: 101;  \
    cursor:pointer;  \
  }  \
  .tasktype {  \
    color:#000;  \
    background-color:#e8e9e9;  \
    padding:0.8em;  \
    font-weight:bold;  \
  }  \
  .task {  \
    border-bottom:1px solid #dfdfdf;  \
    padding:0.3em;  \
    cursor:pointer;  \
  }  \
  .task:hover {  \
    background-color: #F2F7F7;  \
  } \
  #help { \
    padding: 1em; \
    border-top: 1px solid #dfdfdf; \
  } \
  #help h1 { \
    font-weight: bold; \
    margin-bottom: 0.5em; \
  }";

  document.head.appendChild(style);

  var help = '<div id="help" style="display: none"> \
    <h2>Help</h2> \
    <p> \
    A list must be uppercase with an underline and without author colors, example : \
    <br /> \
    <u>LIST</u><br /> \
    <br /> \
    If a list title ends with ":", tasks will be counted and displayed, example : \
    <br /><u>LIST :</u><br /> \
    <br /> \
    If a list does not contain tasks, it will not be displayed. \
    <br /><br /> \
    </p> \
    <p>  \
    A task is a top-level bullet list item, example : \
    <br /> \
    <ul><li><span style="background-color:#FFC7F1;">Task</span></li></ul> \
    </p> \
    <p><br />  \
    You can setup tags writing anything like this anywhere on your pad : \
    <br /> \
    [URGENT]: red; <br />\
    [DONE]: #E5E5E5; \
{'fraction_non_alphanumeric': 0.1746064199550194, 'fraction_numerical': 0.025761602944183195, 'mean_word_length': 2.0160295930949443, 'pattern_counts': {'":': 2, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 10, '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': '1826414', 'n_tokens_mistral': 1954, 'n_tokens_neox': 1854, 'n_words': 421}