<commit_before>// ==UserScript==
// @name         Views Group Control
// @namespace    http://vern.com/
// @version      0.1
// @description  Quickly move back and forth between View groups
// @author       <NAME>
// @match        https://www.flickr.com/groups/views*
// @grant        none
// ==/UserScript==


function parseLocation(url, inc) {
    var counts = [
        25, 50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000,
        1250, 1500, 1750, 2000, 3000, 4000, 5000, 10000, 25000, 50000,
        100000, 200000, 300000, 400000, 500000, 750000, 1000000,
        2000000, 3000000, 4000000, 5000000, 6000000, 7000000
    ];

    numstart = url.indexOf('views') + 5;
    numend = url.indexOf('/', numstart);
    endofurl = url.substring(numend, url.length);
    if (numend < 0) {
        numend = url.length;
        endofurl = '';
    }
    count = parseInt(url.substring(numstart, numend));
    newindex = counts.indexOf(count) + inc;
    if ((newindex < 0) || (newindex >= counts.length)) {
        return '';
    }
    return url.substring(0,numstart) + counts[newindex] + endofurl;
}

function setPrevNext() {
    var prev = parseLocation(location.href,-1);
    var next = parseLocation(location.href,1);

    var menu = document.getElementsByClassName('nav-menu');
    if (menu.length <= 0) {
        menu = document.getElementsByClassName('top-nav');
    }

    var li = document.createElement('li');

    var a;<commit_msg>add 8 million views group to greasemonkey script<commit_after>// ==UserScript==
// @name         Views Group Control
// @namespace    http://vern.com/
// @version      0.1
// @description  Quickly move back and forth between View groups
// @author       <NAME>
// @match        https://www.flickr.com/groups/views*
// @grant        none
// ==/UserScript==


function parseLocation(url, inc) {
    var counts = [
        25, 50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000,
        1250, 1500, 1750, 2000, 3000, 4000, 5000, 10000, 25000, 50000,
        100000, 200000, 300000, 400000, 500000, 750000, 1000000,
        2000000, 3000000, 4000000, 5000000, 6000000, 7000000, 8000000
    ];

    numstart = url.indexOf('views') + 5;
    numend = url.indexOf('/', numstart);
    endofurl = url.substring(numend, url.length);
    if (numend < 0) {
        numend = url.length;
        endofurl = '';
    }
    count = parseInt(url.substring(numstart, numend));
    newindex = counts.indexOf(count) + inc;
    if ((newindex < 0) || (newindex >= counts.length)) {
        return '';
    }
    return url.substring(0,numstart) + counts[newindex] + endofurl;
}

function setPrevNext() {
    var prev = parseLocation(location.href,-1);
    var next = parseLocation(location.href,1);

    var menu = document.getElementsByClassName('nav-menu');
    if (menu.length <= 0) {
        menu = document.getElementsByClassName('top-nav');
    }

    var li = document.createElement('li');

    var a;
{'fraction_non_alphanumeric': 0.15020435967302453, 'fraction_numerical': 0.12125340599455041, 'mean_word_length': 2.685069008782936, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7544760', 'n_tokens_mistral': 1253, 'n_tokens_neox': 930, 'n_words': 245}