repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/livescript/livescript.js | static/js/others/mode/livescript/livescript.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/**
* Link to the project's GitHub page:
* https://github.com/duralog/CodeMirror
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(req... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/sass/sass.js | static/js/others/mode/sass/sass.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../css/css"));
else if (typeof define == "funct... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/sass/test.js | static/js/others/mode/sass/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "sass");
// Since Sass has an indent-based syntax, is almost impossible to test correctly the indentation in all cases.
// S... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/powershell/powershell.js | static/js/others/mode/powershell/powershell.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
'use strict';
if (typeof exports == 'object' && typeof module == 'object') // CommonJS
mod(require('../../lib/codemirror'));
else if (typeof define == 'function' &&... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/powershell/test.js | static/js/others/mode/powershell/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "powershell");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
function forEach(arr,... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/apl/apl.js | static/js/others/mode/apl/apl.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/cobol/cobol.js | static/js/others/mode/cobol/cobol.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/**
* Author: Gautam Mehta
* Branched from CodeMirror's Scheme mode
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../li... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/vb/vb.js | static/js/others/mode/vb/vb.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/ebnf/ebnf.js | static/js/others/mode/ebnf/ebnf.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/commonlisp/commonlisp.js | static/js/others/mode/commonlisp/commonlisp.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/htmlembedded/htmlembedded.js | static/js/others/mode/htmlembedded/htmlembedded.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
require("../../... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/puppet/puppet.js | static/js/others/mode/puppet/puppet.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/asterisk/asterisk.js | static/js/others/mode/asterisk/asterisk.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/*
* =====================================================================================
*
* Filename: mode/asterisk/asterisk.js
*
* Description: CodeMirror mode for Asteris... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/tiddlywiki/tiddlywiki.js | static/js/others/mode/tiddlywiki/tiddlywiki.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/***
|''Name''|tiddlywiki.js|
|''Description''|Enables TiddlyWikiy syntax highlighting using CodeMirror|
|''Author''|PMario|
|''Version''|0.1.7|
|''Status''|''stable''|
... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/gas/gas.js | static/js/others/mode/gas/gas.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/ecl/ecl.js | static/js/others/mode/ecl/ecl.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/htmlmixed/htmlmixed.js | static/js/others/mode/htmlmixed/htmlmixed.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/dart/dart.js | static/js/others/mode/dart/dart.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../clike/clike"));
else if (typeof define == "f... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/webidl/webidl.js | static/js/others/mode/webidl/webidl.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/javascript/test.js | static/js/others/mode/javascript/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("locals",
"[k... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/javascript/javascript.js | static/js/others/mode/javascript/javascript.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | true |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/php/test.js | static/js/others/mode/php/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "php");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT('simple_test',
'[met... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/php/php.js | static/js/others/mode/php/php.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/haxe/haxe.js | static/js/others/mode/haxe/haxe.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/mumps/mumps.js | static/js/others/mode/mumps/mumps.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/*
This MUMPS Language script was constructed using vbscript.js as a template.
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(requir... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/dylan/test.js | static/js/others/mode/dylan/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "dylan");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT('comments',
'[comm... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/dylan/dylan.js | static/js/others/mode/dylan/dylan.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/shell/test.js | static/js/others/mode/shell/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({}, "shell");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("var",
"text [def $var] text");... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/shell/shell.js | static/js/others/mode/shell/shell.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/ruby/test.js | static/js/others/mode/ruby/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("divide_equal_operator",... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/ruby/ruby.js | static/js/others/mode/ruby/ruby.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/yaml-frontmatter/yaml-frontmatter.js | static/js/others/mode/yaml-frontmatter/yaml-frontmatter.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function (mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../yaml/yaml"))
else if (typeof define == "fun... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/yacas/yacas.js | static/js/others/mode/yacas/yacas.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
// Yacas mode copyright (c) 2015 by Grzegorz Mazur
// Loosely based on mathematica mode by Calin Barbat
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // Com... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/http/http.js | static/js/others/mode/http/http.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/sql/sql.js | static/js/others/mode/sql/sql.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | true |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/markdown/markdown.js | static/js/others/mode/markdown/markdown.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../xml/xml"), require("../meta"));
else if (typ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/markdown/test.js | static/js/others/mode/markdown/test.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var config = {tabSize: 4, indentUnit: 2}
var mode = CodeMirror.getMode(config, "markdown");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments,... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | true |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/spreadsheet/spreadsheet.js | static/js/others/mode/spreadsheet/spreadsheet.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/erlang/erlang.js | static/js/others/mode/erlang/erlang.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
/*jshint unused:true, eqnull:true, curly:true, bitwise:true */
/*jshint undef:true, latedef:true, trailing:true */
/*global CodeMirror:true */
// erlang mode.
// tokenizer -> token types -> ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
Myphz/sortvisualizer | https://github.com/Myphz/sortvisualizer/blob/14191645ff254489a5c03689708989bc498e2d69/static/js/others/mode/tiki/tiki.js | static/js/others/mode/tiki/tiki.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // ... | javascript | MIT | 14191645ff254489a5c03689708989bc498e2d69 | 2026-01-05T03:44:40.185717Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/messages.js | messages.js | // This modules loosely defines the message protocol used to pass operations and
// documents between the client and server. Mostly it is just a common
// abstraction both the client and server can use when creating, manipulating,
// and using messages.
/*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/operations.js | operations.js | // Operations are a stream of individual edits which span the whole document
// from start to finish. Edits have a type which is one of retain, insert, or
// delete, and have associated data based on their type.
/*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,
newcap: true, immed: true, nomen: false... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/xform.js | xform.js | // This module defines the `xform` function which is at the heart of OT.
/*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,
newcap: true, immed: true, nomen: false, white: false, plusplus: false,
laxbreak: true */
/*global define */
define(["./operations"], function (ops) {
// Pattern match o... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/ot.js | ot.js | // This module is the server's equivalent of `./client.js`; that is, it provides
// the high level Operational Transformation API for the server side of
// things. You just need to pass it a store parameter which allows it to get,
// save, and create documents in whatever backend you choose. It is an event
// emitter, ... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/client.js | client.js | // This modules defines the behavior of the client's OT. It handles the
// buffering of operations yet to be committed to the master document and the
// responsibility of transforming those operations if the server sends new
// operations before they have all been committed.
//
// While this code is meant to run on the... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/apply.js | apply.js | // This module defines a function which applies a set of operations which span a
// document, to that document. The resulting document is returned.
/*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,
newcap: true, immed: true, nomen: false, white: false, plusplus: false,
laxbreak: true */
/*global d... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/errors.js | errors.js | // This module provides all of the custom errors defined by this library.
/*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,
newcap: true, immed: true, nomen: false, white: false, plusplus: false,
laxbreak: true */
/*global define, setTimeout */
define(["util"], function (util) {
var exports ... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/tests/amd-shim.js | tests/amd-shim.js | // Written by Kris Zyp
var currentModule, defaultCompile = module.constructor.prototype._compile;
module.constructor.prototype._compile = function(content, filename){
currentModule = this;
try{
return defaultCompile.call(this, content, filename);
}
finally {
currentModule = null;
}
};
define = functi... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/tests/tests.js | tests/tests.js | var ops = require("../operations");
var xform = require("../xform");
var apply = require("../apply");
var numTests = 0;
var failed = 0;
function test (original, a, b, expected) {
var operationsA = ops.operation(original, a);
var operationsB = ops.operation(original, b);
xform(operationsA, operationsB, fun... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
fitzgen/operational-transformation | https://github.com/fitzgen/operational-transformation/blob/36e46a39e055b73773dbe9176c613dfdf04eb0a4/stores/memory-store.js | stores/memory-store.js | /*jslint onevar: true, undef: true, eqeqeq: true, bitwise: true,
newcap: true, immed: true, nomen: false, white: false, plusplus: false,
laxbreak: true */
/*global define, setTimeout */
define(["../errors"], function (errors) {
var documents = {};
function isPrimitive (obj) {
return obj === null... | javascript | MIT | 36e46a39e055b73773dbe9176c613dfdf04eb0a4 | 2026-01-05T03:44:44.418243Z | false |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/.eslintrc.js | .eslintrc.js | module.exports = {
extends: 'airbnb-base',
globals: {
chrome: true,
document: true,
window: true,
SHORTCUTS: true,
HubnavStorage: true,
isPresent: true,
GitHubUrl: true
},
rules: {
semi: ['error', 'never'],
'arrow-parens': ['error', 'as-needed'],
'padded-blocks': 0,
'... | javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | false |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/extension/storage.js | extension/storage.js | class HubnavStorage {
static load() {
return new Promise(resolve => {
chrome.storage.sync.get('hubnav', allOptions => {
resolve(allOptions.hubnav || {})
})
})
}
static save(options) {
return new Promise(resolve => {
chrome.storage.sync.set({ hubnav: options }, () => {
... | javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | false |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/extension/popup.js | extension/popup.js | class PopupPage {
constructor() {
this.findElements()
this.shiftPressed = false
this.ctrlPressed = false
this.commandSelected = false
this.altPressed = false
}
findElements() {
// Context switching and shortcuts:
this.contextSwitch = document.getElementById('context-switch')
this.... | javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | true |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/extension/options.js | extension/options.js | class OptionsPage {
constructor() {
this.findElements()
this.errors = {}
}
anyErrors() {
return Object.keys(this.errors).length > 0
}
isValidRepo(repo) {
if (repo.length < 1) {
return true
}
const slashIndex = repo.indexOf('/')
return slashIndex > 0 && slashIndex < repo.len... | javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | true |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/extension/github-url.js | extension/github-url.js | class GitHubUrl {
constructor(githubUrl) {
this.baseUrl = (githubUrl || 'https://github.com').replace(/\/+$/, '')
}
profile(rawLogin) {
const login = encodeURIComponent(rawLogin)
return `${this.baseUrl}/${login}`
}
repository(nameWithOwner) {
const [rawOwner, rawName] = nameWithOwner.split('... | javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | false |
cheshire137/hubnav | https://github.com/cheshire137/hubnav/blob/4365b2d1d89e5cd16b979f5d309e921ae586e021/extension/shared.js | extension/shared.js | window.SHORTCUTS = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
window.isPresent = function(str) {
return str && str.length > 0
}
| javascript | MIT | 4365b2d1d89e5cd16b979f5d309e921ae586e021 | 2026-01-05T03:44:45.137176Z | false |
zoltantothcom/react-clamp-lines | https://github.com/zoltantothcom/react-clamp-lines/blob/4b1c6c317e2b622c08ca06b6f69e515606915770/webpack.config.js | webpack.config.js | var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'index.js',
libraryTarget: 'umd',
globalObject: 'this'
},
module: {
rules: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
... | javascript | Unlicense | 4b1c6c317e2b622c08ca06b6f69e515606915770 | 2026-01-05T03:44:42.279435Z | false |
zoltantothcom/react-clamp-lines | https://github.com/zoltantothcom/react-clamp-lines/blob/4b1c6c317e2b622c08ca06b6f69e515606915770/src/index.js | src/index.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
export default class ClampLines extends PureComponent {
constructor(props) {
super(props);
this.element = null;
this.original = props.text;
this.watch = true;
this.lineHeight = 0;
this.start = 0;
this.middl... | javascript | Unlicense | 4b1c6c317e2b622c08ca06b6f69e515606915770 | 2026-01-05T03:44:42.279435Z | false |
zoltantothcom/react-clamp-lines | https://github.com/zoltantothcom/react-clamp-lines/blob/4b1c6c317e2b622c08ca06b6f69e515606915770/lib/index.js | lib/index.js | !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(this,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]=... | javascript | Unlicense | 4b1c6c317e2b622c08ca06b6f69e515606915770 | 2026-01-05T03:44:42.279435Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/gulpfile.js | gulpfile.js | const path = require('path');
const fs = require('fs');
const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
const shelljs = require('shelljs');
const Hexo = require('hexo');
const imageExtensions = 'gif,ico,jpg,png,svg';
const dirs = {
dist: 'docs',
distCompreseable: 'docs/**/*.{css... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/postinstall.js | helpers/postinstall.js | /*
* Post Install Script
* Copies a set of files from the `@hint/artwork` asset repository into this one
*/
try {
const shell = require('shelljs');
const mkdirp = require('mkdirp');
const baseSrcPath = 'node_modules/@hint/artwork/src/';
const baseTargetPath = 'src/webhint-theme/source/images/';
... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/precompile-ejs.js | helpers/precompile-ejs.js | /* eslint-disable no-sync */
const path = require('path');
const fs = require('fs');
const ejs = require('ejs');
const mkdirp = require('mkdirp');
const getPartials = (themeDir, partialList) => {
const partialsDir = path.resolve(path.join(themeDir, 'layout', 'partials', 'scan'));
const partialsByName = partia... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/run-docsearch-scraper.js | helpers/run-docsearch-scraper.js | /* global cd config echo exec exit rm */
const fs = require('fs');
const path = require('path');
const shell = require('shelljs/global'); // eslint-disable-line no-unused-vars
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Check if the environment variables are set.
const checkEnvVar =... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/mktemp.js | helpers/mktemp.js | const os = require('os');
const path = require('path');
const mktmp = require('mktemp');
module.exports = () => {
return mktmp.createDirSync(path.join(os.tmpdir(), '/XXXXX')); // eslint-disable-line no-sync
};
| javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site.js | helpers/update-site.js | const { install } = require('./update-site/install');
const { copyFormatter } = require('./update-site/formatter');
const { build, createHintCategories, createResourcesIndexes, escapeNunjucks, getFiles, getFilesInfo, updateChangelog, updateLinks } = require('./update-site/documentation');
const { cleanWorkingSpace } = ... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/integration-tests/index.js | helpers/integration-tests/index.js | const { runStaticTests } = require('./staticUrls');
const { runScannerTest } = require('./scanner');
console.log('Integration tests are running...');
const runIntegrationTests = async () => {
let error = false;
try {
for (const test of [runStaticTests, runScannerTest]) {
const success = a... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/integration-tests/scanner.js | helpers/integration-tests/scanner.js | const puppeteer = require('puppeteer');
const runScannerTest = async () => {
const browser = await puppeteer.launch();
try {
const page = await browser.newPage();
await page.goto('https://sonarwhal-staging.azurewebsites.net/scanner/');
await page.type('#scanner-page-scan', 'https://le... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/integration-tests/staticUrls.js | helpers/integration-tests/staticUrls.js | const puppeteer = require('puppeteer');
const staticURLsToVerify = [
'https://sonarwhal-staging.azurewebsites.net/',
'https://sonarwhal-staging.azurewebsites.net/search/?q=bla',
'https://sonarwhal-staging.azurewebsites.net/about/changelog/1',
'https://sonarwhal-staging.azurewebsites.net/docs/user-guide... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/documentation.js | helpers/update-site/documentation.js | const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const _ = require('lodash');
const globby = require('globby');
const marked = require('marked');
const md2json = require('md-2-json');
const normalize = require('normalize-path');
const os = require('os');
const shell = requ... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | true |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/remove.js | helpers/update-site/remove.js | const shell = require('shelljs');
const constants = require('./constants');
const common = require('./common');
common.setShellJSDefaultConfig(shell);
const workingSpaceDirectories = new Set([
constants.dirs.ABOUT,
constants.dirs.CONTRIBUTOR_GUIDE,
constants.dirs.USER_GUIDE,
constants.dirs.SCAN_IMAGE... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/copy.js | helpers/update-site/copy.js | const shell = require('shelljs');
const { setShellJSDefaultConfig } = require('./common');
setShellJSDefaultConfig(shell);
/**
* Copy the origin directory or file in the destination path.
* @param {string} orig - Origin directory or file.
* @param {string} dest - Destinatino path.
* @param {string} options - Opt... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/constants.js | helpers/update-site/constants.js | const CONTENT = 'src/content';
const THEME = 'src/webhint-theme';
const USER_GUIDE = `${CONTENT}/docs/user-guide`;
const dirs = {
/** About documentation destination directory. */
ABOUT: `${CONTENT}/about`,
/** Destination directory for the content. */
CONTENT,
/** Contributor guide documentation d... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/common.js | helpers/update-site/common.js | const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const setShellJSDefaultConfig = (shelljs) => {
shelljs.config.fatal = true;
};
// Create folder if not exist before writing file.
// Reference: https://stackoverflow.com/a/16317628
const safeWriteFile = (dir, content) => {
... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/install.js | helpers/update-site/install.js | const shell = require('shelljs');
const common = require('./common');
common.setShellJSDefaultConfig(shell);
const install = () => {
shell.exec(`npm install`);
};
module.exports = { install };
| javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/helpers/update-site/formatter.js | helpers/update-site/formatter.js | const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const { copy } = require('./copy');
const { safeWriteFile } = require('./common');
const constants = require('./constants');
const basePath = path.resolve(process.cwd(), 'node_modules/@hint/formatter-html/dist/src');
const for... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/scripts/link-filter.js | src/webhint-theme/scripts/link-filter.js | /* globals hexo */
hexo.extend.filter.register('before_post_render', (data) => {
// Find and replace Urls that
// - is enclosed in parenthesis pairs
// - doesn't start with `http`, `https` or `ftp`
// - endes with `.md`
const mdUrlRegex = /\((?!(http|https|ftp):)([^(|)]+\.md)[^(|)]*\)/g;
const ... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/scripts/ejs-renderer.js | src/webhint-theme/scripts/ejs-renderer.js | /* global hexo */
const ejs = require('ejs');
const utils = require('../helper/utils');
hexo.extend.renderer.register('ejs', 'html', (data, options) => {
options.filename = data.path;
options.utils = utils;
options.query = '';
return ejs.render(data.text, options);
}, true);
| javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/scripts/custom-renderer.js | src/webhint-theme/scripts/custom-renderer.js | /* global hexo */
const url = require('url');
const stripIndent = require('strip-indent');
const hljs = require('highlight.js');
const marked = require('marked');
const uslug = require('uslug');
const { stripHTML } = require('hexo-util');
marked.setOptions(hexo.config.marked);
const renderer = new marked.Renderer();... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/sw-reg.js | src/webhint-theme/source/sw-reg.js | /* eslint-disable */
/**
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/components/menu-button/menu-button.js | src/webhint-theme/source/components/menu-button/menu-button.js | /* eslint-disable no-var, prefer-template, strict, prefer-arrow-callback, object-shorthand */
/* eslint-env browser */
(function () {
'use strict';
var testEl = document.createElement('button');
testEl.setAttribute('type', 'menu');
var supportDetails = testEl.type === 'menu';
if (supportDetails)... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/components/accordion/accordion.js | src/webhint-theme/source/components/accordion/accordion.js | /* eslint-disable no-var, prefer-template, strict, prefer-arrow-callback, object-shorthand */
/* eslint-env browser */
/*eslint-disable*/
// Pollyfill for :scope in selectors API 2 from http://stackoverflow.com/a/17989803/414145
(function (doc, proto) {
try { // check if browser supports :scope natively
doc... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/components/treeview/treeview.js | src/webhint-theme/source/components/treeview/treeview.js | /* eslint-env browser */
/* eslint-disable no-var, prefer-template, strict, prefer-arrow-callback, object-shorthand, no-continue, array-callback-return */
//nav menu
(function () {
'use strict';
var arraify = function (list) {
return [].slice.call(list);
};
var treeview = document.querySelecto... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/components/anchor-top/anchor-top.js | src/webhint-theme/source/components/anchor-top/anchor-top.js | /* eslint-disable no-var, prefer-template, strict, prefer-arrow-callback, object-shorthand */
/* eslint-env browser */
(function () {
'use strict';
if (!window.matchMedia) {
return;
}
var active = true;
var anchorTops = document.querySelectorAll('.anchor-top');
if (anchorTops.length =... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/gdpr.js | src/webhint-theme/source/js/gdpr.js | (function () {
/** Creates a cookie. Code based on https://www.quirksmode.org/js/cookies.html */
var createCookie = function (name, value, days) {
var expires = '';
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/nav.js | src/webhint-theme/source/js/nav.js | //nav menu
(function () {
var sectionItems = document.querySelectorAll('.navbar__navitem .navitem__button.expandable');
var items = document.querySelectorAll('.navbar__navitem .navbar__submenu');
var setAttribute = function (collection, attribute, value) {
for (var i = 0; i < collection.length; i++... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/details-polyfill.js | src/webhint-theme/source/js/details-polyfill.js | /* eslint-disable no-var,prefer-arrow-callback,prefer-template */
(function () {
var supportDetails = 'open' in document.createElement('details');
var shim = function () {
var accordionButtons = document.querySelectorAll('summary');
for (var i = 0, li = accordionButtons.length; i < li; i++) {
... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/scanner-submit.js | src/webhint-theme/source/js/scanner-submit.js | /* global ejsPartials, hljs */
(function () {
// String interpolation is not supported by 'hexo-filter-cleanup'.
// So use string string concatenation instead.
var overview = document.querySelector('.scan-overview');
if (!overview) {
return;
}
var id = overview.getAttribute('data-id'... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/highlight/highlight.min.js | src/webhint-theme/source/js/highlight/highlight.min.js | /* eslint-disable */
/*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */
!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(e){function... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | true |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/highlight/languages/xml.min.js | src/webhint-theme/source/js/highlight/languages/xml.min.js | /* eslint-disable */
hljs.registerLanguage("xml",function(s){var e="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/</,r:0,c:[{cN:"attr",b:e,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta"... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/js/telemetry/telemetry.js | src/webhint-theme/source/js/telemetry/telemetry.js | "use strict";
(function () {
const activityKey = 'webhint-activity';
const productKey = 'webhint-online-scanner';
const storage = window.localStorage;
const telemetryApiEndpoint = 'https://webhint-telemetry.azurewebsites.net/api/log';
let sendTimeout = null;
let telemetryQueue = [];
let opti... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/source/core/scripts/form-validation.js | src/webhint-theme/source/core/scripts/form-validation.js | /* eslint-env browser */
/* eslint-disable no-var, prefer-template, strict, prefer-arrow-callback, object-shorthand */
/**
* This script adds the attribute aria-invalid="true" to any input that has the required attribute
* on submission instead of the default browser behavior using :invalid.
* It will also remove th... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/helper/utils.js | src/webhint-theme/helper/utils.js | const pagination = require('./pagination');
const isIndexPage = (page) => {
return page.source.endsWith('index.md');
};
const isGuideIndexPage = (page) => {
return isIndexPage(page) && page.title.toLowerCase().replace(' ', '-') === page.section;
};
const isSectionIndexPage = (page) => {
return isIndexPag... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/webhint-theme/helper/pagination.js | src/webhint-theme/helper/pagination.js | const getFirst = function (pattern) {
return [{
active: false,
page: 1,
url: pattern.replace('pageId', 1)
}];
};
const getLast = function (total, pattern) {
return [{
active: false,
page: total,
url: pattern.replace('pageId', total)
}];
};
const firstIte... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/server/index.js | src/server/index.js | const bodyParser = require('body-parser');
const fs = require('fs');
const path = require('path');
const express = require('express');
const yaml = require('js-yaml');
const appInsights = require('applicationinsights');
const production = process.env.NODE_ENV === 'production'; // eslint-disable-line no-process-env
cons... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/server/routes/scanner.js | src/server/routes/scanner.js | const path = require('path');
const promisify = require('util').promisify;
const _ = require('lodash');
const moment = require('moment');
const globby = require('globby');
const nodeFetch = require('node-fetch');
const { getMessage: getMessageUtils } = require('@hint/utils-i18n');
const urlAudiences = process.env.WE... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/server/routes/changelog.js | src/server/routes/changelog.js | const fs = require('fs');
const path = require('path');
const changelog = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'content', '_data', 'changelog.json'), 'utf-8')); // eslint-disable-line no-sync
const maxPackagesPerPage = 20;
const paginateChangelog = () => {
let acc = 0;
const pages = [];... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/src/server/routes/search.js | src/server/routes/search.js | const algoliasearch = require('algoliasearch');
const _ = require('lodash');
const xssFilters = require('xss-filters');
const configure = (app) => {
const config = app.locals.webhintTheme;
const client = algoliasearch(config.appId, config.apiKey);
const index = client.initIndex('webhint');
const hitsPe... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/sw-reg.js | docs/sw-reg.js | /* eslint-disable */
/**
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/treeview-54e979828f.js | docs/static/scripts/treeview-54e979828f.js | !function(){"use strict";var e=function(e){return[].slice.call(e)},t=document.querySelector('[role="tree"]');if(t){var r=e(document.querySelectorAll('[role="treeitem"]')),n=e(document.querySelectorAll(".toc-section-title, .toc-section-title--active")),i=document.querySelector(".toc-mobile-view"),a=function(e,t,r){for(v... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
webhintio/webhintio.github.io | https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/anchor-top-e90d830004.js | docs/static/scripts/anchor-top-e90d830004.js | !function(){"use strict";if(window.matchMedia){var e=document.querySelectorAll(".anchor-top");if(0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].dataset.scroll||2;i=parseInt(i,10),t.push({element:e[n],height:i})}var r=!1,o=function(){var e=window.scrollY/window.innerHeight;t.forEach((function(t){e>=t.height?t... | javascript | Apache-2.0 | aa7c5de146fbd2cd131d9f501feb6292d9c131b0 | 2026-01-05T03:44:49.451963Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.