commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
1d1cd0a4edb11015ebf9ec279a8acf1be5041462 | Make the buttons do something when clicked | assets/js/views/advanced.js | assets/js/views/advanced.js | $(document).ready(function() {
// Add RFC1918 addresses
$("#addrfc").click(function(e) { e.preventDefault(); advancedAdd('addrfc', e.target); });
// Add 'this host'
$("#addhost").click(function(e) { e.preventDefault(); advancedAdd('addthishost', e.target); });
// Add 'this network'
$("#addnetwork").click(funct... | JavaScript | 0.000008 | @@ -429,16 +429,105 @@
rget) %7B%0A
+%09var origtext = $(target).text();%0A%09$(target).text(%22Updating...%22).prop('disabled', true);%0A
%09$.ajax(
@@ -630,62 +630,65 @@
) %7B
-console.log(%22Complete%22, target); window.xxx = data; %7D,
+%0A%09%09%09$(target).text(origtext).prop('disabled', false);%0A%09%09%7D
... |
d0210a895a1f567b036b4b4a9b3466ca2845b664 | package with Electron 1.4.2 | Gruntfile.js | Gruntfile.js | 'use strict';
var packageJson = require('./package.json')
module.exports = function(grunt) {
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-env');
grunt.loadNpmTasks('grunt-electron');
grunt.loadNpmTa... | JavaScript | 0.000001 | @@ -1742,11 +1742,11 @@
'1.
-1.0
+4.2
',%0A
|
fc575af7e159dec5e9fe6535eb441536122884ea | Add feature for changing clear-entry to equal sign | js/main.js | js/main.js | var prevNum,
currentNum,
display = document.getElementById('result');
// When a "number" button is clicked
function getValue() {
// Check if number count on display is equal to 13
// to prevent overflowing of numbers in display
// Note: undefined does not have a length property so we need to check for it
if (c... | JavaScript | 0 | @@ -1,12 +1,99 @@
+// TODO -----%3E fix the bug: when equal then click on a number, prevnum does not change%0A
var prevNum,
@@ -3553,30 +3553,17 @@
%7D%0A%0A%09%09//
-TO DO -----%3E c
+C
hange %22d
@@ -3587,16 +3587,127 @@
to (=)%0A
+%09%09var x = document.querySelector('.clear-entry');%0A x.innerHTML = %2... |
c579687671ff222088449fc17a40c9d54a823115 | make forceskip great again | src/commands/forceskip.js | src/commands/forceskip.js | exports.run = function (client, msg, args) {
if (!permissions.isAdmin(msg.member) && guilds[msg.channel.guild.id].queue[0].req !== msg.author.id) return msg.channel.createMessage({ embed: {
color: 0x1E90FF,
title: "Insufficient Permissions",
}});
if (!client.voiceConnections.get(msg.channel.guild.id)) r... | JavaScript | 0 | @@ -37,24 +37,239 @@
args) %7B%0D%0A%0D%0A
+%09if (!client.voiceConnections.get(msg.channel.guild.id) %7C%7C !guilds%5Bmsg.channel.guild.id%5D.queue%5B0%5D) return msg.channel.createMessage(%7B embed: %7B%0D%0A%09%09color: 0x1E90FF,%0D%0A%09%09title: %22There's no playback activity.%22%0D%0A%09%7D%7D);%0D%0A%0D%0A
%... |
1ab8c908f3e695cd9aa64c9507e7de42908c6163 | update links | assets/pages/about/index.js | assets/pages/about/index.js | import React from 'react'
import Logo from './logo.svg'
import './about.css'
const AboutPage = () => (
<div className="about-page">
<img className="about-page-logo" src={Logo} alt="PGTune" />
<p>
<strong>PGTune</strong> calculate configuration for PostgreSQL based on the maximum performance for a give... | JavaScript | 0 | @@ -905,136 +905,46 @@
http
+s
://
-postgresql.leopard.in.ua/%22%3EFree PostgreSQL book (Russian language)%3C/a%3E%3C/li%3E%0A %3Cli%3E%3Ca href=%22http://leopard.in.ua/%22%3EMy blog
+twitter.com/leopard_me%22%3EMy twitter
%3C/a%3E
|
faed647e5a27506e9791b6a798bc5a6270dc0efb | Update to main.js: add buildGameBoard function. | js/main.js | js/main.js |
var startGame = function(){
return false;
}
var Ships = function(){
return false;
}
var Players = function(){
return false;
}
var Scoreboard = function(){
return false;
}
| JavaScript | 0 | @@ -1,14 +1,12 @@
-%0A%0A
var startGam
@@ -24,11 +24,11 @@
n()%7B
-%09%0A%09
+%0A
retu
@@ -37,20 +37,18 @@
false;%0A
-%0A%7D%0A%0A
+%7D;
%0A%0Avar Sh
@@ -65,18 +65,18 @@
tion()%7B%0A
-%0A%09
+
return f
@@ -78,25 +78,25 @@
urn false;%0A%7D
-%0A
+;
%0A%0Avar Player
@@ -103,33 +103,34 @@
s = function()%7B%0... |
000f507fa1c5f31f859f729bc4fa0a8c8001550f | [ci skip] semicolon | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var BASE_URL = 'http://localhost:8000/mocha/';
/*
* To add a new app to test, add the app name to this test and create
* a test runner view at:
*
* corehq/apps/<app>/templates/<app>/spec/mocha.html
*
* You can view an example in the app_manager
... | JavaScript | 0.999239 | @@ -1396,16 +1396,17 @@
log(app)
+;
%7D);%0A
|
52db056cbca82effe918ff895f805bd108d82c09 | update args description to hint that -d accepts days | src/commands/tick-list.js | src/commands/tick-list.js | export default list
import Entry from '../entry'
import {getOutputs} from './output'
import moment from 'moment'
import _ from 'lodash'
import chalk from 'chalk'
import format from '../time'
import chrono from 'chrono-node'
import db from '../db'
function list (yargs) {
let argv = yargs
.usage('Usage: tick list [... | JavaScript | 0 | @@ -542,16 +542,42 @@
entries
+ or number of days to list
',%0A t
|
2f950f007cc8b2f3fb85d9ecd133d57b4a246e7c | Configure gh-pages task to use a 'DOC ...' tag, to avoid conflict with 'v...' tag | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// The actual project configuration - this will be different for each project
grunt.initConfig({
// Configuration to be run (and then tested).
modularProje... | JavaScript | 0.000001 | @@ -3284,16 +3284,20 @@
tag: '
+DOC
v%3C%25= PKG
|
3e5db57daa4150d3f3194487556ee78fa882ed75 | Update gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
// Project Configuration
grunt.initConfig( {
pkg : grunt.file.readJSON( 'package.json' ),
srcFiles : 'src/*.js',
// buildSrcMinFile : 'build/<%= pkg.name %>-<%= pkg.version %>.min.js',
buildSrcMinFile : 'build/<%= pkg.name %>.min.js',
buildSrcFile : 'build/<%= pkg.name ... | JavaScript | 0.000001 | @@ -2621,35 +2621,24 @@
%5B 'jshint',
- 'jasmine',
'concat', '
@@ -2881,27 +2881,16 @@
jshint',
- 'jasmine',
'concat
|
4c15437ace36f7bfaa7769aa93809254c61152a9 | Check browser build during linters | Gruntfile.js | Gruntfile.js | 'use strict';
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
libinfo: {
cwd: 'lib/ical',
files: [
'helpers.js', 'design.js', 'stringify.js', 'parse.js', 'component.js',
'property.js', 'utc_offset.js', 'b... | JavaScript | 0 | @@ -3586,16 +3586,39 @@
gjslint'
+, 'check-browser-build'
%5D);%0A gr
|
e525527fb02e75a3edac35f33d4face897d0c83c | update build - remove test | Gruntfile.js | Gruntfile.js |
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
meta: {
version: require('./package.json').version
, banner: '/**\n * aviso.js - v<%= meta.version %> \n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> K... | JavaScript | 0 | @@ -1742,28 +1742,8 @@
', %5B
-'jshint', 'buster',
'rig
|
3f076d85d9f9a3128e79c85aa1927b4fc462d246 | Fix Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
pytest_env = process.env;
pytest_env.ANGKOT_LOCAL_SETTINGS = '.travis/localsettings.py';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
route: {
src: [
'angkot/static/js/Le... | JavaScript | 0.000008 | @@ -1614,17 +1614,17 @@
iles: %5B'
-g
+G
runtfile
|
504e48d822120ea6a6c06c10b6b92f3ec9883ea5 | fix up JavaScript header | Gruntfile.js | Gruntfile.js | // Copyright 2020 the .NET Foundation
// Licensed under the MIT License
module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};
// Project configuration.
... | JavaScript | 0.000004 | @@ -410,16 +410,20 @@
'*
+ AAS
WorldWi
@@ -529,56 +529,23 @@
der
-%3C%25= pkg.license.type %25%3E (%3C%25= pkg.license.url %25%3E)
+the MIT License
%5Cn'
|
b592d659271475ee0143bba6c58aad61cd6af7cc | Fix jshint to also check the files in bin/. | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: 'Gruntfile.js'
},
lib: {
src: ['lib/**/*.js']
},
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile... | JavaScript | 0 | @@ -164,24 +164,62 @@
e.js'%0A%09%09%09%7D,%0A
+%09%09%09bin: %7B%0A%09%09%09%09src: %5B'bin/*.js'%5D%0A%09%09%09%7D,%0A
%09%09%09lib: %7B%0A%09%09
@@ -352,32 +352,110 @@
untfile'%5D%0A%09%09%09%7D,%0A
+%09%09%09bin: %7B%0A%09%09%09%09files: '%3C%25= jshint.bin.src %25%3E',%0A%09%09%09%09tasks: %5B'jshint:bin'%5D%0A... |
f181c319763e1156e80cfff601562488d77ccd98 | Split copy task in two parts since they must be executed in order | Gruntfile.js | Gruntfile.js | /*! resol-vbus | Copyright (c) 2013-2014, Daniel Wippermann | MIT license */
'use strict';
module.exports = function(grunt) {
// configure tasks
grunt.initConfig({
watch: {
js: {
files: ['src/**/*.js', 'test/specs/**/*.js'],
tasks: ['jshint', 'jsdoc', 'test... | JavaScript | 0.000001 | @@ -1542,32 +1542,39 @@
: %7B%0A
+module2
logger: %7B%0A
@@ -1875,12 +1875,80 @@
%7D
-, %7B
+ %5D%0A %7D,%0A logger2build: %7B%0A files: %5B %7B
%0A
@@ -3768,22 +3768,58 @@
'copy:
-logger
+module2logger',%0A 'copy:logger2build
',%0A
|
ee7c66e1804de803c610bbbfa6aaf042b1ae3667 | fix lacking babel-polyfill issue | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
require("load-grunt-tasks")(grunt);
grunt.registerTask("build", "to build", ["clean", "peg", "copy", "ts", "dist"]);
grunt.registerTask("dist", "to make distribution version", ["browserify", "babel", "uglify"]);
grunt.registerTask("default", "to watch & compile", ["build", "w... | JavaScript | 0.000001 | @@ -753,16 +753,35 @@
: %5B%22
-lib/**/*
+babel-polyfill%22, %22lib/index
.js%22
@@ -1683,16 +1683,229 @@
eration%22
+,%0A module: %22commonjs%22,%0A target: %22es6%22,%0A outDir: %22lib%22,%0A lib: %5B%0A %22es6%22%0A %5D,%0A sourceMap: true,%0A ... |
571982e7d5327b880f64d86cf1f5fe60a0091873 | Make sure we export all of the regions too | awssum-amazon-cloudwatch.js | awssum-amazon-cloudwatch.js | // --------------------------------------------------------------------------------------------------------------------
//
// cloudwatch.js - class for AWS Elastic Load Balancing
//
// Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/
// Written by Andrew Chilton <chilts@appsattic.com>
//
// License: http://... | JavaScript | 0 | @@ -3030,16 +3030,436 @@
xports%0A%0A
+// endpoints%0Aexports.US_EAST_1 = amazon.US_EAST_1;%0Aexports.US_WEST_1 = amazon.US_WEST_1;%0Aexports.US_WEST_2 = amazon.US_WEST_2;%0Aexports.EU_WEST_1 = amazon.EU_WEST_1;%0Aexports.AP_SOUTHEAST_1 = amazon.AP_SOUTHEAST_1;%0Aexports.AP_SOUTHEAST_2 = amazon.AP_... |
344f6c8e6202a39cd755fb44905c9073894dc615 | Mark Node file as ES6 | Gruntfile.js | Gruntfile.js | /* eslint-env node */
module.exports = function ( grunt ) {
var conf = grunt.file.readJSON( 'extension.json' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-style... | JavaScript | 0.000012 | @@ -11,16 +11,21 @@
env node
+, es6
*/%0Amodu
|
b409de9ed86e915f8ae2fb47dfde01ace83a61ea | Remove run task from test as pre-run task is unexpectedly performed | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
var config = {
babel: {
options: {
plugins: ['uglify:after'],
sourceMap: true
},
dist: {
files: [{
expand: true,
cwd: './src',
src: '**/*.es6.js',
... | JavaScript | 0.000022 | @@ -2487,27 +2487,16 @@
'copy',%0A
- 'run',%0A
'jsh
|
5708393e8d4f58a6ddcc1dba016034b2c2df50d0 | Add support for anchor in renderLink() | base/helma/Global/global.js | base/helma/Global/global.js | // getResource for the global scope:
function getResource(name) {
// Get a list of all resource in the Global prototype and scan for the
// given resource
var resources = app.getPrototype('Global').getResources();
// scan backwards to get newer versions first (does this work?)
for (var i = resources.length - 1; i ... | JavaScript | 0 | @@ -1997,16 +1997,65 @@
query;%0A%0A
+%09if (param.anchor)%0A%09%09url += '#' + param.anchor;%0A%0A
%09if (url
|
08786005924f8cf5d3e28f7a36f99453350be189 | configure autoprefixer | Gruntfile.js | Gruntfile.js | module.exports = function(grunt){
"use strict";
grunt.initConfig({
sass: {
dist: {
options: {
outputStyle: "expanded"
},
files: {
'dist/flexout.css': 'flexout.scss'
}
},
docs: {
options: {
sourceMap: true
},
files: {
'docs/css/docs.css': 'docs/scss/docs.scs... | JavaScript | 0.000001 | @@ -393,19 +393,22 @@
%09%09%09%22
-Android 2.3
+Explorer %3E= 11
%22,%0A%09
@@ -416,19 +416,17 @@
%09%09%09%22
-Android
+Edge
%3E=
+1
4%22,%0A
@@ -435,20 +435,21 @@
%09%09%09%22
-Chrome
+Firefox
%3E=
+5
2
-0
%22,%0A%09
@@ -457,21 +457,20 @@
%09%09%09%22
-Firefox
+Chrome
%3E=
-2
4
+9
%22,%0A%09
@@ -4... |
c9afcd4b50d129306f6e667faa3a3d0c7ca25222 | make integration time more visible | banana/static/lightcurve.js | banana/static/lightcurve.js |
/* to use this code, include it and set:
* lightcurve: a list with source info dicts
* title: the title of the plot
* subtitle: the subtitle of the plot
*/
// group per band
var lightcurve_per_band = {};
var error_per_band = {};
var plot_bands_per_series = {};
var plot_bands = [];
var symbols = {0: 'square', 1:... | JavaScript | 0 | @@ -1762,17 +1762,17 @@
, 213, .
-1
+4
)'%0A
|
7b7ccadecca0972ede68d623dc01b8d5e1446ec9 | Remove font task (#526) | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
open : {
dev: {
path: 'http://localhost:1919'
}
},
connect: {
server: {
options: {
port: 1919,
ba... | JavaScript | 0.000172 | @@ -4659,69 +4659,8 @@
);%0A%0A
- grunt.registerTask('fonts', %5B'clean:fonts','copy:fonts'%5D);%0A
gr
|
4197ef3299893ad67ece785ce077e16ba137a4aa | Remove props from ConnectorDecorator.renderChild | src/components/connect.js | src/components/connect.js | import React from 'react';
import Connector from './Connector';
import getDisplayName from '../utils/getDisplayName';
import shallowEqualScalar from '../utils/shallowEqualScalar';
export default function connect(select) {
return DecoratedComponent => class ConnectorDecorator {
static displayName = `Connector(${g... | JavaScript | 0.000001 | @@ -459,89 +459,8 @@
%7D%0A%0A
- constructor() %7B%0A this.renderChild = this.renderChild.bind(this);%0A %7D%0A%0A
@@ -644,38 +644,8 @@
) %7B%0A
- const %7B props %7D = this;%0A
@@ -676,19 +676,8 @@
nent
- %7B...props%7D
%7B..
|
e097b2f76d7ccca08a36cfc9fe7272860f9beed6 | Add a make_between to deal with min/max constraints | js/misc.js | js/misc.js | var round = function(num)
{
return (num + 0.5) | 0
}
var floor = function(num)
{
return num | 0
}
var ceil = function(num)
{
return (num | 0) == num ? num | 0 : (num + 1) | 0
}
var abs = Math.abs
var sqrt = Math.sqrt
var log = function(num)
{
var result = Math.log(num)
return result
}
var signed_log = func... | JavaScript | 0.000001 | @@ -526,24 +526,349 @@
? a : b;%0A%7D%0A%0A
+var make_between = function(n, a, b)%0A%7B%0A if (b == undefined)%0A die(%22make_between must be called with 3 numbers (number, min, max)%22)%0A%0A if (a %3E b)%0A %7B%0A var c = a;%0A a = b; b = c;%0A %7D%0A n = max(n, a);%0A n = min(n, b);%0A%0A if (isNaN(... |
1edd50fe825d98c3d58547b7b1b5d2d076de7128 | Throw error if heading size is higher than 6 | src/components/heading.js | src/components/heading.js | import React, { Component, createElement } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import styled from 'react-emotion';
const StyledHeader = styled.div(({ height, styles }) => [
styles.context,
styles.base,
{
display: 'block',
width: '100%',
height,... | JavaScript | 0.000001 | @@ -2077,16 +2077,91 @@
.props;%0A
+ if (size %3E 6) throw new Error(%22Heading size must be between 1 and 6%22);%0A
cons
|
04f49a4834dc448e66b29b7f3b5532b3fd99a72b | Fix Gruntfile to correctly submit to Coveralls | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
files: {
src: 'build/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.... | JavaScript | 0 | @@ -652,14 +652,8 @@
ame,
- '..',
'sr
@@ -1291,35 +1291,16 @@
alls: %7B%0A
- options: %7B%0A
sr
@@ -1324,16 +1324,33 @@
.info',%0A
+ options: %7B%0A
|
9a11358fd3e2fdafc028937538c5dfc77371c10f | fix server and configuration path | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
var jar = null;
grunt.initConfig({
/**
* Building
* ========
*/
browserify: {
debug: {
files: {
'build/baqend.js': ['lib/index.js']
},
options: {
browserifyOptions: {
builtins:... | JavaScript | 0 | @@ -989,67 +989,8 @@
a%22,%0A
- args: %5B%0A '-jar',%0A jar%0A %5D,%0A
@@ -2260,19 +2260,22 @@
'
-getJar:test
+prepare:server
',%0A
@@ -2360,14 +2360,15 @@
sk('
-getJ
+prep
ar
+e
', '
@@ -2387,11 +2387,10 @@
ecut
-eb
a
+b
le s
@@ -2401,15 +2401,30 @@
r ja
- in the
+r ... |
1e1ebfbf3c2e807992bfefa83df02cde18ee31a7 | Add lint task | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
"use strict";
function readOptionalJSON( filepath ) {
var data = {};
try {
data = grunt.file.readJSON( filepath );
} catch ( e ) {}
return data;
}
var gzip = require( "gzip-js" ),
srcHintOptions = readOptionalJSON( "src/.jshintrc" );
// The concatenated file won... | JavaScript | 0.999917 | @@ -3252,26 +3252,38 @@
;%0A%0A%09
-// Alias
+grunt.registerTask( %22
bower
- to
+%22, %22
bowe
@@ -3287,16 +3287,20 @@
owercopy
+%22 );
%0A%09grunt.
@@ -3314,35 +3314,43 @@
rTask( %22
-bower%22, %22bowercopy%22
+lint%22, %5B %22jshint%22, %22jscs%22 %5D
);%0A%0A%09//
@@ -3436,30 +3436,20 @@
:*:*%22, %22
-js... |
ae53c38cd2e65ebae404738eda03beaa1b764ed3 | Fix css map link | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
// live browser injection
browserSync: {
bsFiles: {
src : 'css/site.css'
},
options: {
watchTask: true
}
},
// watch changes to less files
... | JavaScript | 0.000005 | @@ -781,20 +781,16 @@
apURL: '
-css/
site.css
|
6ef700875da6d7a93b2a2732c7e167e842a6d4bf | Remove outdated comment | js/scat.js | js/scat.js | var Scat= {};
/*
* Call the server API, handle basic errors
*/
Scat.api= function (func, args, opts) {
var url= 'api/' + func + '.php?callback=?';
// http://stackoverflow.com/a/5175170
var validated= function(jqXHR, validationFunction) {
var def= new $.Deferred();
var validate= function() {
v... | JavaScript | 0 | @@ -628,72 +628,8 @@
%7D%0A%0A
- // XXX use .ajax here and allow caller to supply more options%0A
va
|
98da560cff59b55d722a646b6145fafe0059d60c | Remove useless requires from Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
var engineer = require('engineer');
var path = require("path");
var fs = require("fs");
var pkg = require("./package.json");
// Path to the client src
var clientPath = path.resolve(__dirname, "src/client");
// Init GRUNT configuraton
grunt.initConfig... | JavaScript | 0 | @@ -41,96 +41,28 @@
var
-engineer = require('engineer');%0A var path = require(%22path%22);%0A var fs = require(%22fs
+path = require(%22path
%22);%0A
|
44e35adf424352700628fb12c336689ab48e16d3 | increase max ship speed | js/ship.js | js/ship.js | var Ship = function(game) {
this.game = game;
Phaser.Sprite.call(this, this.game, 0, 0, 'ship');
this.directionList = ['shipE', 'shipNE','shipN','shipNW','shipW','shipSW','shipS','shipSE'];
this.scale.set(0.4, 0.4);
this.cargo = [];
this.anchor.setTo(0.5, 0.5);
this.animOffset = Math.random() * Math.PI;
this... | JavaScript | 0.000004 | @@ -1059,17 +1059,17 @@
).cap(1.
-0
+5
);%0A t
|
05f84eb4eddfc4dc3d8c88630661af99b6395c7b | Fix module version of Stickyfill | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:
`/*!
* Stickyfill – \`position: sticky\` polyfill
* v. <%= pkg.version %> | <%= pkg.homepage %>
* MIT License
*/
`,
babel: {
options: {
... | JavaScript | 0 | @@ -701,12 +701,14 @@
'%7D)(
-this
+window
, do
|
ec9c5c9c565f5fa455e174cf1eb3ce9ec71b98c9 | Fix GA, add HubSpot virtual page view tracking | js/site.js | js/site.js | var versionSwitcherSetAvailable = function(versions) {
var options = document.querySelector(".arangodb-version-switcher").options;
for (var i = 0; i < options.length; i++) {
var item = options.item(i);
if (versions.indexOf(item.value) != -1) {
item.removeAttribute("disabled");
item.removeAttribu... | JavaScript | 0 | @@ -1775,20 +1775,22 @@
ion(
-href
+target
, fn) %7B%0A
va
@@ -1781,24 +1781,84 @@
rget, fn) %7B%0A
+ var href = target.href;%0A var pathname = target.pathname;%0A
var url =
@@ -3057,17 +3057,17 @@
'page
--
+_
title':
@@ -3090,42 +3090,163 @@
page
--location': currentPage%0A %7D
+_path': pathnam... |
2b47b3234d58ceffb4b924051ec31e816894f1c8 | add form_entry to grunt file | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// use localhost unless we're running on travis
var BASE_ADDRESS = process.env.WEB_TEST_PORT_8000_TCP_ADDR || 'localhost',
BASE_URL = 'http://' + BASE_ADDRESS + ':8000/mocha/';
/*
* To add a new app to test, add the app name to this test and create
* a t... | JavaScript | 0.000001 | @@ -727,16 +727,48 @@
dcare',%0A
+ 'cloudcare#form_entry',%0A
%5D;%0A%0A
|
224f9d97926c444de1fea21beabb800c26b79d48 | Remove no longer supported browser | Gruntfile.js | Gruntfile.js | /* eslint-env node */
'use strict';
module.exports = function (grunt) {
function encodingMiddleware(request, response, next) {
var url = require('url').parse(request.url, true, true);
var query = url.query;
var pathname = url.pathname;
if (pathname !== '/encoding') {
next();
return;
}
var cookieN... | JavaScript | 0 | @@ -3355,118 +3355,8 @@
%09%09%7B%0A
-%09%09%09%09%09%09%09browserName: 'internet explorer',%0A%09%09%09%09%09%09%09platform: 'Windows 7',%0A%09%09%09%09%09%09%09version: '8.0'%0A%09%09%09%09%09%09%7D,%0A%09%09%09%09%09%09%7B%0A
%09%09%09%09
|
2be201a3b1c81b983a1e16f30fedfc6e90c6d2ae | update Gruntfile.js | Gruntfile.js | Gruntfile.js | var BANNER = "/*\n\
The MIT License (MIT)\n\
\n\
Copyright (c) 2015 daishi_hmr\n\
\n\
Permission is hereby granted, free of charge, to any person obtaining a copy\n\
of this software and associated documentation files (the \"Software\"), to deal\n\
in the Software without restriction, including without limitation the r... | JavaScript | 0.000001 | @@ -1890,24 +1890,58 @@
rid/utils%22,%0A
+ %22hybrid/mqo%22,%0A
|
d55e8ae4b58c4a1821b3134fa52d58519899d561 | add shebang to rest-on-couch-server | bin/rest-on-couch-server.js | bin/rest-on-couch-server.js | 'use strict';
var path = require('path'),
config = require('./../src/server/config.json'),
proxy = require('./../src/server/proxy'),
auth = require('./../src/server/middleware/auth'),
app = require('koa')(),
router = require('koa-router')(),
passport = require(... | JavaScript | 0 | @@ -1,8 +1,25 @@
+#!/bin/env node%0A%0A
'use str
|
258d5c042f3bdfc18fbae424017c58d505210b7b | Change find command | bin/rest-on-couch-import.js | bin/rest-on-couch-import.js | #!/bin/env node
'use strict';
const program = require('commander');
const imp = require('../src/import/import');
const fs = require('fs-extra');
const exec = require('child_process').exec;
const home = require('../src/config/home');
const log = require('../src/couch/log');
const chokidar = require('chokidar');
const ... | JavaScript | 0.000003 | @@ -2170,36 +2170,15 @@
xec(
-'
+%22
find .
- -not -path %5C'*/%5C.*%5C'
-ma
@@ -2205,17 +2205,73 @@
-type f
-'
+ -not -regex '.*/%5C%5C(processed%5C%5C%7Cnode_modules%5C%5C%7C%5C%5C.%5C%5C).*'%22
, %7B%0A
|
43458306b226949978a168ad6d222c73336c738b | Use node flag | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
quotmark: tru... | JavaScript | 0.000001 | @@ -535,58 +535,18 @@
-globals: %7B%0A 'module': false%0A %7D
+node: true
%0A
|
54e210a4776c2cee32f6154914629f102231d2a4 | Generalize file patterns, lint Gruntfile.js | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: true
},
all: ['src/js/*.js', 'test/**/*.js']
},
mocha: {
options: {
reporter: 'spec',
require: 'should'
},
all: ['test/**/*.js']
},
copy:... | JavaScript | 0.000004 | @@ -140,16 +140,32 @@
all: %5B
+'Gruntfile.js',
'src/js/
@@ -165,16 +165,19 @@
src/js/*
+*/*
.js', 't
@@ -424,16 +424,45 @@
,html%7D/*
+*/*',%0A filter: 'isFile
',%0A
|
47d3c523103d08290ef4e6f044b54824ee33cbe7 | disable the jshint checking | Gruntfile.js | Gruntfile.js | const fs = require('fs');
const path = require('path');
const prettier = require('prettier');
module.exports = function(grunt) {
grunt.initConfig({
nodeunit : {
all : ['tests/**/*.js']
},
jshint: {
all: [
'Gruntfile.js',
'numeral.js',... | JavaScript | 0 | @@ -1035,16 +1035,19 @@
%0A
+ //
'jshint
|
7047b073b9665a17d6c2e9ee62a4e1c291ddd7f4 | add marsupial objects, images still needed | js/user.js | js/user.js | 'use strict';
function User() {
this.name = '';
this.color = '';
this.mood = '';
this.particle = '';
this.marsupial = '';
this.fontSize = 0;
this.pFont = 0;
this.margin = 0;
this.float = '';
this.color1 = '';
this.color2 = '';
this.color3 = '';
}
function Marsupial( ... | JavaScript | 0.000001 | @@ -436,12 +436,3116 @@
= blurb;%0A%7D%0A%0A
+// var critter = new Marsupial ( 'Tigger', 'tigger', './img/tigger.jpg', 'Tiggers are wonderful things, the wonderful thing about tiggers is I%5C'm the only one')%0A%0Avar kangaroo = new Marsupial ('Kangaroo', 'kangaroo', '.img/kangaroo.jpg', 'The kangaroo is a marsupial f... |
a55a06d08c07626561a0b6dcbecd381fafe77689 | Add spacer | Gruntfile.js | Gruntfile.js | 'use strict';
var path = require('path');
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
env: {
coverage: {
APP_DIR_FOR_CODE_COVERAGE: path.join(__dirname, 'build')
}
},
copy: {
'vim-vimlint': {
expand: true,
cwd: ... | JavaScript | 0.000365 | @@ -76,49 +76,8 @@
) %7B%0A
- require('load-grunt-tasks')(grunt);%0A %0A
gr
@@ -497,24 +497,114 @@
%7D%0A %7D,%0A
+ %0A // ------------------------------------------------------------------------%0A %0A
instrume
@@ -1115,63 +1115,93 @@
-concurrent: %7B%0A lint: %5B'jshint', 'jsonli... |
b2f9ed347ba122290197baf9b30f5f79b089fc96 | fix bug where feedback "kind" is never set, fix typo in apidocs | backend/routes/feedback.js | backend/routes/feedback.js | 'use strict';
var express = require('express');
var auth = require('../middleware/auth');
var router = express.Router();
var Feedback = require('../models').feedback;
/**
* @api {post} /feedback Send feedback
* @apiGroup Feedback
*
* @apiParam {Boolean} [anonymous=false] false = include user's name & email
* @ap... | JavaScript | 0 | @@ -1059,16 +1059,17 @@
77cd815%22
+,
%0A *
@@ -1727,16 +1727,41 @@
.email,%0A
+ kind: req.body.kind,%0A
cont
|
a8026ab1e05ab76b843ab3019cdbc9f052585b88 | fix logout javascript | bitstation/web/js/logout.js | bitstation/web/js/logout.js | function logout() {
var out = window.location.href.replace(/:\/\//, '://log:out@');
jQuery.get(out).always(function() {
jQuery.get('/jupyterhub/hub/logout').always(function () {
window.location = '/dokuwiki';
});
});
return false;
| JavaScript | 0.000007 | @@ -257,8 +257,10 @@
false;%0A
+%7D%0A
|
6d549419f6a3fb9ec8abd071e62645af73611c74 | fix selenium start bug for grunt tests | Gruntfile.js | Gruntfile.js | 'use strict';
var exec = require('child_process').exec;
var tests = require('./tests');
var excludeLibrariesPattern = '!node_modules/**';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['**/*.js', excludeLibrariesPattern],
options: {
bitwise: true,
camelcase: ... | JavaScript | 0 | @@ -12,20 +12,21 @@
';%0A%0Avar
-exec
+spawn
= requi
@@ -45,20 +45,21 @@
ocess').
-exec
+spawn
;%0Avar te
@@ -1730,12 +1730,28 @@
-exec
+var selenium = spawn
('./
@@ -1784,32 +1784,66 @@
er/bin/selenium'
+);%0A selenium.stderr.once('data'
, function(err)
@@ -1837,19 +1837,16 @@
unction(
-err
) %7B%... |
0f1fba3675d8fcfe7ae2d09d687c3ddf7c348662 | Remove listener after handling is finished | js/xeit.js | js/xeit.js | var xeit = (function () {
"use strict";
function parse($doc, html) {
if ($('#XEIViewer').length) {
return {
func: 'init',
opts: { plugin: 'SoftForum' },
args: [
html,
$('param[name="smime_header"]').val(... | JavaScript | 0 | @@ -3659,42 +3659,28 @@
-worker.addEventListener('message',
+var messageHandler =
fun
@@ -3768,16 +3768,87 @@
.resp);%0A
+ worker.removeEventListener('message', messageHandler);%0A
@@ -3854,33 +3854,32 @@
%7D%0A %7D
-)
;%0A worker
@@ -3901,67 +3901,233 @@
er('
-er... |
bf914605e54f101b4754a40129ec34c3463995a8 | Build updates | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Linken <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src:... | JavaScript | 0 | @@ -452,25 +452,22 @@
dest: '
-resources
+public
/assets/
@@ -1497,24 +1497,29 @@
blic/assets/
+dist/
css/linken.m
|
bff3f1061cded98fa27e7cb9452d99df4c1a9003 | delete verbose parentheses | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
bower: {
install: {
options: {
targetDir: 'app/lib',
verbose: true
}
}
},
copy: {
closureLibrary: {
files: [
{
expand: true,
... | JavaScript | 0.000101 | @@ -630,24 +630,10 @@
nd:
-(%0A %5B%0A
+%5B%0A
@@ -698,26 +698,24 @@
iler.jar',%0A%0A
-
'-
@@ -749,26 +749,24 @@
,%0A
-
'--closure_e
@@ -794,26 +794,24 @@
ributing',%0A%0A
-
'-
@@ -867,18 +867,16 @@
-
'--sourc
@@ -907,18 +907,16 @@
pp%5C%5C%7C',... |
11a15a95a882c51f1af104e3c137ccd343db6254 | Fix Grunt compress config (#144) | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
releasePath: 'release/<%= pkg.name %>-<%= pkg.version %>',
clean: ['<%= releasePath %>'],
auto_install: {
local: {}
},
watch: {
gruntfile: {
files: '<%= jshint.g... | JavaScript | 0 | @@ -3828,24 +3828,29 @@
%7D%5D%0A %7D,%0A
+ %0A
compress
@@ -3949,31 +3949,8 @@
zip'
-,%0A mode: 'zip'
%0A
@@ -3947,32 +3947,33 @@
%3E.zip'%0A %7D
+,
%0A files:
@@ -3989,27 +3989,28 @@
%7B
-%0A src
+ expand: true, cwd
:
-%5B
'%3C%25=
@@ -4029,44 +4029,21 @@... |
5050baf338cc1ad17487226c8cdb764db6d7834b | Remove unused css | Gruntfile.js | Gruntfile.js | var webpack = require('webpack');
module.exports = function(grunt) {
grunt.initConfig({
modernizr: {
build: {
"parseFiles": true,
"customTests": [],
"devFile": "./node_modules/modernizr/src/Modernizr.js",
"dest": "./assets/js/cust... | JavaScript | 0.000001 | @@ -3978,68 +3978,8 @@
s',%0A
- 'node_modules/animate.css/animate.css',%0A
|
92ed890612e632b838d4fb338022d290a2fdd6b1 | Generate the lib directory for npm registry | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
"use strict";
var coreFiles = [
"resource-bundle.js",
"locale.js",
"currency-data.js",
"currency.js",
"field-position.js",
"parse-position.js",
"format.js"
];
var numberFormatFiles = [
"number-format.... | JavaScript | 0.998452 | @@ -1164,24 +1164,26 @@
s%22;%0A
+re
sourceFiles.
@@ -1218,24 +1218,24 @@
+ %22.js%22 );%0A
-
reso
@@ -1480,19 +1480,247 @@
an:
-%5B %22dist/%22 %5D
+%7B%0A dist: %22dist/%22,%0A lib: %22lib/%22%0A %7D,%0A%0A copy: %7B%0A main: %7B%0A ... |
aaf3032b2f827c6b0b4a9f0d2f77348ee5bad5f9 | Fix minor issues | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
src: {
options: {
jshintrc: '.jshintrc'
},
src: ['www/**/*.js', 'src/**/*.js']
},
build: {
options: {
... | JavaScript | 0.000019 | @@ -1072,35 +1072,32 @@
latform_www/
-sectv-tizen
+tv-webos
/toast.js%22 /
|
56473f66ba4b5c7217855cdb345be98895cb3a5d | Remove BrowserStack test command. | Gruntfile.js | Gruntfile.js | var extend = require('extend');
module.exports = function (grunt) {
var compilerOptions = {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'VERBOSE',
summary_detail_level: 3,
language_in: 'ECMASCRIPT5_STRICT',
output_wrapper: '(function(){%output%}());',
use_types_for_optimizatio... | JavaScript | 0 | @@ -563,196 +563,8 @@
: %7B%0A
- test: %7B%0A command: 'browserstack-test -u $BROWSERSTACK_USERNAME -p $BROWSERSTACK_PASSWORD -k $BROWSERSTACK_KEY -b browsers.json http://localhost:9999/test/index.html'%0A %7D,%0A
|
d23c42945c5466987b8268bfe247af20f98d441c | Change task order | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n... | JavaScript | 0.999821 | @@ -555,32 +555,1146 @@
js'%5D%0A %7D,%0A
+ concat: %7B%0A options: %7B%0A banner: '%3C%25= banner %25%3E',%0A stripBanners: true%0A %7D,%0A js: %7B%0A expand: true,%0A cwd: 'src/',%0A src: '**/*.j... |
7593c61126fcffc7ce8f74a8818b8f67ec649c51 | Fix font loading issue | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
"use strict";
var releaseConfig = {
appRoot: "/hakemisto/"
};
grunt.initConfig({
// Wipe out previous builds and test reporting.
clean: ["dist/", "test/reports"],
// Run your source code through JSHint's defaults.
jshint: ["app/**/*.js"],
// This ta... | JavaScript | 0 | @@ -2720,16 +2720,18 @@
+//
forceRel
|
81142e1b709ee3ee4a02007b39cf474441cc9752 | Improve the a11y on the select field demo (#34073) | docs/data/joy/components/select/SelectFieldDemo.js | docs/data/joy/components/select/SelectFieldDemo.js | import * as React from 'react';
import Box from '@mui/joy/Box';
import FormLabel from '@mui/joy/FormLabel';
import FormHelperText from '@mui/joy/FormHelperText';
import Select from '@mui/joy/Select';
import Option from '@mui/joy/Option';
export default function SelectFieldDemo() {
const [value, setValue] = React.use... | JavaScript | 0 | @@ -384,16 +384,43 @@
ormLabel
+ htmlFor=%22select-field-pet%22
%3EFavorit
@@ -451,16 +451,46 @@
%3CSelect%0A
+ id=%22select-field-pet%22%0A
@@ -806,28 +806,27 @@
elect-field-
-demo
+pet
-helper',%0A
@@ -1158,12 +1158,11 @@
eld-
-demo
+pet
-hel
|
5f9f7649636ad168496c47609f5c8570a74b2bf8 | remove unused comments | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
settings: grunt.file.readJSON('settings.json'),
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'stylesheets'
}
}
},
... | JavaScript | 0 | @@ -592,150 +592,50 @@
%3E'%5D,
- // source files array (supports minimatch)%0A dest: '%3C%25= inline.dist.dest %25%3E', // destination directory or file
+%0A dest: '%3C%25= inline.dist.dest %25%3E',
%0A
|
8bedbb5a3934607871a73d03b10d9b3a98118390 | Use a separate (not inline) function for the food.gov.uk callback. Still needs to be tidied up and added to just-eat as well. | justeat.js | justeat.js | var source= document.URL.toLowerCase();
if (source.indexOf("just-eat") != -1)
{
$("#SearchResults article").each(function() {
name = $(this).find(".restaurantDetails h3").text().trim()
address = $(this).find("address").text().trim()
postcode = getPostcodeFromAddress(address);
var cur = this
//... | JavaScript | 0 | @@ -1369,16 +1369,17 @@
var cur
+r
entItem=
@@ -1427,16 +1427,31 @@
is: %22 +
+JSON.stringify(
currentI
@@ -1454,16 +1454,17 @@
entItem)
+)
;%0A %0A
@@ -1618,10 +1618,8 @@
-/*
%0A
@@ -1710,16 +1710,44 @@
nsOld%22,%0A
+ takeawayBox: $(this),%0A
su
@@ -1784,15 +1784,15 @@
-*/
%0A... |
2b47709b74be47c6bf6bdd572fdd01add4e9b382 | Check if Blob is defined | src/core/SocketAdapter.js | src/core/SocketAdapter.js | /**
* Socket event handling utilities for handling events on either
* WebSocket and TCP sockets
*
* Note to anyone reviewing this code: these functions are called
* in the context of their parent object, unless bound
*/
'use strict';
var Canvas = require('canvas');
var Image = Canvas.Image || global.Image;
var W... | JavaScript | 0.000002 | @@ -3355,16 +3355,47 @@
if(
+typeof Blob !== 'undefined' &&
message.
|
e78f7453293af84febb468d31134260fa3229ee2 | Build Linux to dist | Gruntfile.js | Gruntfile.js | var path = require('path');
var execFile = require('child_process').execFile;
var packagejson = require('./package.json');
var electron = require('electron-prebuilt');
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
var target = grunt.option('target') || 'development';
var beta = grunt.op... | JavaScript | 0 | @@ -1747,62 +1747,8 @@
ue,%0A
- 'app-bundle-id': 'com.kitematic.kitematic',%0A
@@ -1921,15 +1921,8 @@
dist
-/linux/
',%0A
|
edb0094e205034635f0c03e9c515e317879e6fb5 | Revert "Revert "Somewhere all test results are now inverted."" | Gruntfile.js | Gruntfile.js | /*global module, process*/
"use strict";
module.exports = function(grunt) {
var browsers = [
{platform: "linux", browserName: "chrome", version: "34"},
{platform: "linux", browserName: "firefox", version: "29"},
{platform: "WIN8.1", browserName: "firefox", version: "29"},
{platform... | JavaScript | 0 | @@ -2622,16 +2622,92 @@
*/%0A
+ // Something is reversed somewhere. Must find it...%0A
@@ -2744,25 +2744,21 @@
sed ===
-undefined
+false
) %7B%0A
|
dcfbaae1d7f1c2d14d78e1d9e17a5fc98f39e8a8 | Update codesandbox link to LineChartHasMultiSeries | docs/examples/LineChart/LineChartHasMultiSeries.js | docs/examples/LineChart/LineChartHasMultiSeries.js | import React, { PureComponent } from 'react';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts';
const series = [
{
name: 'Series 1',
data: [
{ category: 'A', value: Math.random() },
{ category: 'B', value: Math.random() },
{ categ... | JavaScript | 0 | @@ -860,33 +860,30 @@
t-wi
+d
th-
-customized-label-hs5b7
+multi-series-64tbt
';%0A%0A
|
1377e3c4824e5ab7ceab32dea13d169ff277c300 | Fix typo in YahooCalendar | src/core/YahooCalendar.js | src/core/YahooCalendar.js | import CalendarBase from './CalendarBase'
import { RECURRENCE, URL } from '../constants'
import { formatTime, getHoursDuration } from '../utils/time'
import { toQueryString } from '../utils/data'
export default class YahooCalendar extends CalendarBase {
/**
* @param {Object} options
* @param {Object} options.s... | JavaScript | 0.999992 | @@ -470,27 +470,25 @@
ptions)%0A %7D%0A
-
%0A
+
/**%0A * C
@@ -554,25 +554,24 @@
erCase.%0A *
-
%0A * @param
@@ -707,20 +707,16 @@
owerCase
-Case
()%0A%0A
@@ -740,27 +740,25 @@
%7Blast%7D%60%0A %7D%0A
-
%0A
+
/**%0A * C
@@ -815,33 +815,32 @@
ncy format.%0A *
-
%0A * @param %7BOb
... |
24909eba09d2f233f56fbafba067d16dfd83ddf1 | Set ASCII-only option in Uglify - fixes #899 | Gruntfile.js | Gruntfile.js | /*jshint node: true */
/*global module */
module.exports = function( grunt ) {
'use strict';
var modConfig = grunt.file.readJSON('lib/config-all.json');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: {
compact: '/*! <%= pkg.name %> <%= pkg.version %> (Custom Build) | <%= pkg.... | JavaScript | 0 | @@ -1839,16 +1839,74 @@
rnizr'%5D%0A
+ %7D,%0A beautify: %7B%0A ascii_only: true%0A
|
f1625818261612389bcb128e2789470b3c2cc0fd | Bump up overall test timeouts | Gruntfile.js | Gruntfile.js | /* global module: false, process: false, __dirname: false, require: false */
// Browsers to test on saucelabs
var browsers = {
firefox: [
{
browserName: 'firefox',
platform: 'WIN8.1'
}
],
chrome: [
{
browserName: 'chrome',
platform: 'w... | JavaScript | 0.000001 | @@ -893,43 +893,9 @@
tor'
-,%0A setupTimeout: 180000
%0A
+
@@ -1052,42 +1052,8 @@
tor'
-,%0A setupTimeout: 180000
%0A
@@ -1211,42 +1211,8 @@
tor'
-,%0A setupTimeout: 180000
%0A
@@ -1345,16 +1345,16 @@
'9.2',%0A
+
@@ -1391,42 +1391,8 @@
tor'
-,%0A ... |
8fb39529b5fd4b21272bb3ec86ee9b2af85a1eb7 | Add timeout to IndexSpec | IndexSpec.js | IndexSpec.js |
var expect = require("expect.js");
describe('IndexSpec', function(){
beforeEach(function(done){
done();
});
it('.API.login()', function(done){
var OpenSubtitles = require('./Index.js');
OpenSubtitles.api.login()
.done(function(token){
... | JavaScript | 0.000001 | @@ -65,16 +65,41 @@
ion()%7B%0A%0A
+ this.timeout(10000);%0A
%0A bef
@@ -149,19 +149,17 @@
%7D);%0A%0A
-
%0A
+
it('
@@ -315,21 +315,9 @@
n)%7B%0A
-
%0A
+
@@ -384,18 +384,16 @@
done();
-
%0A%0A
@@ -406,17 +406,9 @@
%7D);%0A
-
%0A
+
@@ -412,14 +412,12 @@
... |
7ef888940030ec03008b13f680e8f81de532c0f3 | Add CHANGELOG to distribution | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
clean: ['dist/', 'bin/vole'],
copy: {
dist: {
files: [
{
src: ['bin/vole'],
dest: 'dist/vole'
},
{
src: ['bin/vole.exe'],
dest: 'dist/vole.exe'
},
... | JavaScript | 0 | @@ -421,24 +421,54 @@
BUTING.md',%0A
+ 'CHANGELOG.md',%0A
|
45565abccdcd320756ece74efb0599fb7eefdffd | Add getRootCAFile、createCertificate to plugin options | lib/plugins/load-plugin.js | lib/plugins/load-plugin.js | var assert = require('assert');
var http = require('http');
var util = require('util');
var MAX_PORT = 60000;
var curPort = 45000;
function getServer(callback) {
if (curPort > MAX_PORT) {
curPort = 40000;
}
var server = http.createServer();
var port = curPort++;
var next = function() {
getServer(callback);
... | JavaScript | 0 | @@ -77,24 +77,57 @@
re('util');%0A
+var ca = require('../https/ca');%0A
var MAX_PORT
@@ -528,24 +528,118 @@
callback) %7B%0A
+%09options.getRootCAFile = ca.getRootCAFile;%0A%09options.createCertificate = ca.createCertificate;%0A
%09if (options
|
bbbd1979aee82d510cb2521200d7c41cc1139b1e | Mark intractable test to be skipped | vuejs-sample-1/test/unit/specs/List.spec.js | vuejs-sample-1/test/unit/specs/List.spec.js | import Vue from 'vue';
import Vuex from 'vuex';
import _ from 'lodash';
import List from 'src/components/List';
import { options } from 'src/store';
import Api from 'src/store/api';
describe('List.vue', () => {
let testOptions;
let api;
beforeEach(() => {
// Another option is to instantiate Api once in the ... | JavaScript | 0.000001 | @@ -917,16 +917,21 @@
ta.%0A it
+.skip
('intrac
|
95252c8c619fc9e221d623ce43833782a5a61e5f | Remove test error throw | KappaChan.js | KappaChan.js | 'use strict';
GLOBAL.App = {};
const Eris = require('eris');
const fs = require('fs');
const EmoteRequest = require('./src/emotes');
const Commands = require('./src/commands');
const Stats = require('./src/stats');
const Streamreporter = require('./src/streamreporter');
const DatabaseHandler = require('./src/database... | JavaScript | 0.000001 | @@ -1058,71 +1058,8 @@
2);%0A
- setTimeout(() =%3E %7Bthrow new Error('Shit my pants')%7D, 5000);;%0A
%7D);%0A
|
bc29eaabe65d3c73ecdc2d4bcba947df9fbb9282 | Update leaflet.filelayer.js | leaflet/JS-CSS/leaflet.filelayer.js | leaflet/JS-CSS/leaflet.filelayer.js | /*
* Load files *locally* (GeoJSON, KML, GPX) into the map
* using the HTML5 File API.
*
* Requires Pavel Shramov's GPX.js
* https://github.com/shramov/leaflet-plugins/blob/d74d67/layer/vector/GPX.js
*/
(function (factory, controler, window) {
// define an AMD module that relies on 'leaflet'
if (typeof d... | JavaScript | 0.000001 | @@ -3902,16 +3902,19 @@
+ //
TITLE:
@@ -3952,16 +3952,65 @@
JSON)',%0A
+ TITLE: 'Load local GeoJSON feature',%0A
|
de8e825dd30f742df25b1d0b483ac2766175ba71 | Fix deprecation warnings in mongodb driver | rco_links_cleanup/support/find_urls.js | rco_links_cleanup/support/find_urls.js | // Find urls within selected domain in posts
//
'use strict';
const _ = require('lodash');
const argparse = require('argparse');
const mongoose = require('mongoose');
const pump = require('util').promisify(require('pump'));
const stream = require('stream');
const URL = require('url');
let parser ... | JavaScript | 0.00001 | @@ -869,65 +869,63 @@
-server: %7B%0A poolSize: 10,%0A socketOptions: %7B%0A
+promiseLibrary: require('bluebird'),%0A poolSize: 10,%0A
@@ -942,36 +942,23 @@
eoutMS:
-10 * 60 * 1
+30
000,%0A
-
keep
@@ -969,158 +969,221 @@
e: 1
-%0A %7D%0A %7D,%0A replset: %7B%0A ... |
111e1656650233ec0a8e0ac44bf10c134dd31ce3 | Include addresses starting with m; | labeler.js | labeler.js | function showMatches() {
// var matches=$('body').text().replace(/[13n][1-9A-Za-z][^OIl]{20,40}/,"REPLACED");
$('.txlist-address span').html(function(index,html) {
var mod=html;
for(i=0;i<localStorage.length;i++) {
var key=localStorage.key(i);
mod=mod.replace(key,localStorage.getItem(key));
}
return mod... | JavaScript | 0 | @@ -539,24 +539,25 @@
match(/%5E%5B13n
+m
%5D%5B1-9A-Za-z%5D
|
29ed9009138b08845e4a046562d31aa9e3ea001d | Add resize event to digit canvas | app/static/js/DigitCanvas.js | app/static/js/DigitCanvas.js | 'use strict';
var Utils = require('./Utils');
function DigitCanvas(element, width, height) {
this.canvas = document.getElementById(element);
this.canvas.width = width;
this.canvas.height = height;
this.context = this.canvas.getContext('2d');
this.gridWidth = this.canvas.width/28;
this.gridHei... | JavaScript | 0 | @@ -144,72 +144,8 @@
t);%0A
- this.canvas.width = width;%0A this.canvas.height = height;%0A
@@ -189,17 +189,16 @@
('2d');%0A
-%0A
this
@@ -202,85 +202,58 @@
his.
-gridWidth = this.canvas.width/28;%0A this.gridHeight = this.canvas.
+lastValue = null;%0A%0A this.setSize(width,
height
-/28
+)
... |
f1a346efe8091b857cef70df2605c2d04f96dfdf | Refactor App Object | app/templates/src/app/App.js | app/templates/src/app/App.js | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
im... | JavaScript | 0.000005 | @@ -394,59 +394,12 @@
';%0A%0A
-let store;%0Alet history;%0A%0Aconst App = %7B%0A /**%0A
+/**%0A
* R
@@ -421,18 +421,10 @@
on%0A
- *%0A
+*%0A
* @
@@ -429,17 +429,16 @@
@param
-
%7BStore%7D
@@ -462,20 +462,16 @@
x store%0A
-
* @para
@@ -472,17 +472,16 @@
@param
-
%7BHistory
@@ -515... |
430d7a3693ea55b88534d8930e34ab83609df952 | Fix an old bug | 06-10-2014/blarg.js | 06-10-2014/blarg.js | var blarg = (function(){
'use strict';
var margin = 200;
var dims = getViewportDimensions();
var width = dims.width - margin;
var height = dims.height - margin;
var padding = 100;
var container = d3.select('body').append('svg').append('g');
var incline = ... | JavaScript | 0.000139 | @@ -250,49 +250,39 @@
=
-d3.select('body').append('svg').append('g
+getSVG('container', dims, 'body
');%0A
|
124170daaea9dad53b580c23bf879247e290facc | fix display item's dropdown title in he.he_mjs state | js/modules/main/src/controllers/itemPreviewCtrl.js | js/modules/main/src/controllers/itemPreviewCtrl.js | var ItemPreviewCtrl = function($state, $scope, itemTypeMap, mjs, item) {
var self = this;
this.$state = $state;
this.mjs = mjs;
this.$scope = $scope;
this.item = item;
this.item_type = itemTypeMap.get_type($scope.previewData.UnitType);
this.in_branch = $scope.previewData.in_branch;
... | JavaScript | 0.000002 | @@ -1406,29 +1406,23 @@
ate.
-current.name ==
+includes(
'mjs'
+)
;%0A
|
11d0ada8b538b180b34440f8861bc1cdb2a7e24f | Check if file exist before changuing permisions | scripts/install-binary.js | scripts/install-binary.js | #!/usr/bin/env node
'use strict'
const binBuild = require('bin-build')
const path = require('path')
const tempfile = require('tempfile')
const fs = require('fs')
const download = require('download')
const platform = process.platform
const arch = process.arch
const JQ_INFO = {
name: 'jq',
url: 'https://github.co... | JavaScript | 0 | @@ -575,20 +575,25 @@
nst
-jq
+file
Exist
-s
= (
+path
) =%3E
@@ -621,12 +621,14 @@
fs.
-stat
+exists
Sync
@@ -636,43 +636,8 @@
path
-.join(OUTPUT_DIR, JQ_NAME)).isFile(
)%0A
@@ -684,17 +684,48 @@
if (
-jq
+file
Exist
-s
(
+path.join(OUTPUT_DIR, JQ_NAME)
)) %7B
@@ -884,16 +884,28 @@
ing the
+donwload... |
023358b1858956f2a308864d24ab46bb0ce59d82 | remove the filter if there are no episodes for microbiology openhealthcare/elcid#701 | opal/static/js/opal/controllers/patient_notes.js | opal/static/js/opal/controllers/patient_notes.js | //
// Editing/detail page for ward round episodes
//
angular.module('opal.controllers').controller(
'PatientDetailCtrl', function($rootScope, $scope, $cookieStore,
episodes, options, profile, recordLoader,
EpisodeDetailMixin, ngProgressLite, $q
... | JavaScript | 0 | @@ -395,147 +395,10 @@
orm%22
-%0A%0A microEpisodes = _.filter(episodes, function(e)%7B%0A return e.microbiology_input && e.microbiology_input.length;%0A %7D)
;
+%0A
%0A
@@ -432,14 +432,9 @@
tBy(
-microE
+e
piso
|
dbbf7f03917352d5b98b82bea1e8c93e601b24b2 | Fix empty page label | app/views/localities-base.js | app/views/localities-base.js | import React from "react-native";
import Colors from "../../colors.json";
import AppText from "./app-text";
import RoomItemContainer from "../containers/room-item-container";
import PageEmpty from "./page-empty";
import PageLoading from "./page-loading";
import LoadingItem from "./loading-item";
import Geolocation from... | JavaScript | 0.002895 | @@ -1969,29 +1969,25 @@
%3CPageEmpty
-pageL
+l
abel=%7Bthis.p
@@ -2493,13 +2493,9 @@
pty
-pageL
+l
abel
|
82be410ace6b74643e91080cf5b2e931b0e5a2da | Modify default timeout so Instruments works for most cases. | appium/template/bootstrap.js | appium/template/bootstrap.js | /**
* Copyright 2012 Appium Committers
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you und... | JavaScript | 0 | @@ -1662,148 +1662,215 @@
%0A//
-WebDriver's implicit wait is
+Instruments default timeout is 5s, webdriver defaults to
0ms
-:
+.
%0A//
-http://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/timeouts/implicit_wait
+Instruments needs a non-zero timeout to function properly. 1s seems to w... |
5b978dd8ab8520a52c9b862206eba5daf46879cd | ADD support for new IMDb skin | public/js/both.js | public/js/both.js | /*global $, document */
/**
* JSONp function to set and retrieve new status
* @return
*/
function setStatus()
{
var parent = $(this).parent();
parent.addClass('loading');
$.getJSON(this.href + '?format=json&jsoncallback=?', function(data)
{
$('.status_links_' + data.id).each(function()
{
$(... | JavaScript | 0 | @@ -1893,32 +1893,130 @@
.before(status);
+ // Old IMDb version%0D%0A%09%09%09%09%09$(%22div#main%3Ediv.article%3Eh1.header%22).before(status); // New IMDb version
%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%09//
|
f35622f08bcb76ff6d4d4b4435f2caff911c3a46 | Make it not to play on forward and backward unless it is already playing | public/js/core.js | public/js/core.js | $(function() {
var meta = {
currentSong: 0
};
$('.footer').on('click', function() {
var $opts = $('.options').toggleClass('visible');
$opts.animate({
'max-height': $opts.hasClass('visible')? '1000px': 0
});
});
$('.forward').on('click', function() {
nextSong(meta);
});
$('.ba... | JavaScript | 0.000017 | @@ -2002,24 +2002,19 @@
%7B%0A
-komponist.status
+playerState
(fun
@@ -2028,71 +2028,16 @@
rr,
-data) %7B%0A var state = data.state == 'play'? 'play': 'pause';%0A
+state) %7B
%0A
@@ -2704,39 +2704,19 @@
-komponist.play(meta.currentSong
+resume(meta
);%0A
@@ -2945,87 +2945,324 @@
-komponist.pl... |
6baa62da16d2aeb36ca2076ab448d9414cb90862 | Fix jslint warning on SC.RecordArray | frameworks/datastore/system/record_array.js | frameworks/datastore/system/record_array.js | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// Portions ©2008-2009 Apple, Inc. All rights reserved.
// License: Licened under MIT license (see licens... | JavaScript | 0.000004 | @@ -801,16 +801,17 @@
C.Array,
+
%0A /** @
@@ -4248,16 +4248,17 @@
y) %7B%0A
+
%0A //
@@ -5084,16 +5084,20 @@
;%0A
+var
inRecArr
|
c6eaf716df9d3793abc12be1101307d7d2f40359 | Fix more styling | public/js/game.js | public/js/game.js | (function() {
'use strict';
var Game = function(colLength, rowLength) {
this.board = this.createGame(colLength, rowLength);
this.rowLength = rowLength;
this.colLength = colLength;
this.generateRandom();
this.generateRandom();
};
Game.prototype.createGame = funct... | JavaScript | 0.000005 | @@ -1943,32 +1943,33 @@
var self = this
+;
%0A var new
@@ -2419,16 +2419,17 @@
f = this
+;
%0A
|
2d1b3ac0470ef30645bd692190620e6aba4cc68a | add checkwin method to game | public/js/game.js | public/js/game.js | function Game() {
this.playerScore = 0
this.compScore = 0
this.winner = null
}
Game.prototype.popScore = function() {
$(".player_score").text(this.playerScore)
$(".comp_score").text(this.compScore)
}
Game.prototype.setUserChoice = function(setChoice) {
this.userChoice = setChoice
}
Game.prototype.draw = fun... | JavaScript | 0 | @@ -693,32 +693,180 @@
n compChoice%0A%7D%0A%0A
+Game.checkWin = function() %7B%0A if (this.playerScore %3E 3) %7B%0A this.winner = true%0A %7D else if (this.compScore %3E 3) %7B%0A this.winner = false%0A %7D%0A%7D%0A%0A
Game.prototype.r
@@ -893,16 +893,16 @@
oice) %7B%0A
-
compCh
@@ -1269,32 +1269,34 @@... |
6641efdf962bfa648f0b7e3609d79ad56f3eaa27 | Update github action | src/DotNetCore.CAP.Dashboard/wwwroot/src/main.js | src/DotNetCore.CAP.Dashboard/wwwroot/src/main.js | import Vue from 'vue'
import App from './App.vue'
import router from './router'
import BootstrapVue from 'bootstrap-vue'
import VueJsonPretty from 'vue-json-pretty';
import 'vue-json-pretty/lib/styles.css';
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import store from '../src... | JavaScript | 0 | @@ -1151,63 +1151,8 @@
se%0A%0A
-// Make BootstrapVue available throughout your project%0A
Vue.
|
29a42d56adacda5666a1cf0ca937eb34b3a1d7a9 | Add FLOAT64_EPSILON to stdmath | lib/node_modules/@stdlib/math/index.js | lib/node_modules/@stdlib/math/index.js | 'use strict';
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// STDMATH //
var stdmath = {};
setReadOnly( stdmath, 'base', {} );
// Constants:
setReadOnly( stdmath, 'PI', require( '@stdlib/math/base/constants/float64-pi' ) );
setReadOnly( stdmath, 'TWO_PI', require( '@stdlib... | JavaScript | 0.999394 | @@ -997,32 +997,130 @@
t32-ninf' ) );%0A%0A
+setReadOnly( stdmath, 'FLOAT64_EPSILON', require( '@stdlib/math/base/constants/float64-eps' ) );%0A%0A
setReadOnly( std
|
40c50cb1a8abdb36c61bddbc1d6c6620845345c8 | Fix a Closure Compiler warning | AnimationFrame.js | AnimationFrame.js | /**
* An even better animation frame.
*
* @copyright Oleg Slobodskoi 2013
* @website https://github.com/kof/animationFrame
* @license MIT
*/
;(function(window) {
'use strict'
var nativeRequestAnimationFrame,
nativeCancelAnimationFrame
// Grab the native request and cancel functions.
;(function() {
var ... | JavaScript | 0.000176 | @@ -552,16 +552,27 @@
%0A
+ var name =
window.
|
f0fb5edbdf359b3baa912c50611705a4bff6ea07 | fix func | server/js/drawwrite.js | server/js/drawwrite.js | // adjust window size
$(window).on('load', function(){
$('body').width($(window).width())
$('body').height($(window).height() * 0.99)
})
// ban scroll
$(window).off('.noScroll')
$('#omit').change(() => {
$('#omit-label').html($('#omit').val())
})
$('#omit-label').html($('#omit').val())
//judge draw
let isdraw ... | JavaScript | 0.999854 | @@ -40,18 +40,14 @@
d',
-function()
+() =%3E
%7B%0A
|
2b786915d08703e75875b289c975d0f1f616744e | Drop babel loader and ng-annotate | scripts/webpack.common.js | scripts/webpack.common.js | /**
* Webpack common configuration.
* it:
* - Define the app entry point (./main.ts) -> Where webpack will start compiling/bundling
* - Define where assets will be served at by our webserver (dist/)
* - Clean previous build on each build
* - Allow to load html files as strings in js code (i.e: import htmlString ... | JavaScript | 0 | @@ -3061,30 +3061,8 @@
e: %5B
-'ng-annotate-loader',
'ts-
@@ -3442,737 +3442,8 @@
%7D
-,%0A // Automatically generates $inject array for angularJS components annotated with:%0A // 'ngInject';%0A // or commented with /**@ngInject */%0A %7B%0A test: /%5C.js$/,%0A exclude: /node_mo... |
56398bc11696e82b770fb233bb2bc05b6111d563 | update highlights in vb settings (#369) | src/sites/iva/conf/opencga-variant-browser.settings.js | src/sites/iva/conf/opencga-variant-browser.settings.js | const OPENCGA_VARIANT_BROWSER_SETTINGS = {
menu: {
// merge criterium: internal sections and filters are used to hydrates the external filters list for each section (which is a list of string). Sections and filter order is respected.
sections: [
{
title: "Study and Cohort... | JavaScript | 0 | @@ -2238,16 +2238,17 @@
ighlight
+s
: %5B%0A
@@ -2278,16 +2278,25 @@
id: %22
+highlight
1%22,%0A
@@ -2397,71 +2397,43 @@
on:
+(
variant
- =%3E %7B%0A return true;%0A %7D
+, index) =%3E index %25 2 === 1
,%0A
@@ -2492,12 +2492,15 @@
d: %22
-blue
+#cfe2ff
%22,%0A
... |
23ae5ff12df61d1e3c1c1aa1610c4fdc0ae92b1f | Support hiding headers in TOC | docs/js/toc.js | docs/js/toc.js | // https://github.com/ghiculescu/jekyll-table-of-contents
(function($){
$.fn.toc = function(options) {
var defaults = {
noBackToTopLinks: false,
title: '',
minimumHeaders: 3,
headers: 'h1, h2, h3, h4',
listType: 'ol', // values: [ol|ul]
showEffect: 'show', // values: [show|slid... | JavaScript | 0 | @@ -1862,24 +1862,90 @@
, header) %7B%0A
+ if ($(header).hasClass(%22no_toc%22)) %7B%0A return%0A %7D%0A%0A
this_l
|
667fccb410a4a4e9478b64cd939bde182a2f85bb | Tweak columns config | sencha-workspace/SlateAdmin/app/view/courses/sections/details/Participants.js | sencha-workspace/SlateAdmin/app/view/courses/sections/details/Participants.js | Ext.define('SlateAdmin.view.courses.sections.details.Participants', function() {
var participantRoles = ['Teacher', 'Assistant', 'Student', 'Observer'];
return {
extend: 'SlateAdmin.view.courses.sections.details.AbstractDetails',
xtype: 'courses-sections-details-participants',
requires:... | JavaScript | 0.000001 | @@ -461,24 +461,60 @@
.Template',%0A
+ 'Ext.grid.column.Date',%0A
@@ -3404,32 +3404,62 @@
%7D,%7B%0A
+ flex: 1,%0A%0A
@@ -3924,32 +3924,106 @@
%7D,%7B%0A
+ width: 100,%0A%0A xtype: 'datecolumn'... |
3c9241cb6baf8e301786332b9ccdae349d0a76cb | Fix transparency order | public/js/main.js | public/js/main.js |
function createPlanet() {
var planetgeometry = new THREE.IcosahedronGeometry(2, 4);
var material = new THREE.MeshLambertMaterial(
{map: THREE.ImageUtils.loadTexture("images/world.jpg")});
var mesh = new THREE.Mesh( planetgeometry, material );
scene.add( mesh );
var hexgeometry = new THRE... | JavaScript | 0.000028 | @@ -291,19 +291,25 @@
%0A%09%09%09var
-hex
+atmophere
geometry
@@ -344,17 +344,18 @@
etry(2.0
-1
+5
, 4);%0A%09%09
@@ -359,39 +359,22 @@
%0A%09%09%09
-setHexUVs(hexgeometry);%0A%09%09%09var
+var atmosphere
mate
@@ -458,19 +458,22 @@
%22images/
-hex
+clouds
.png%22),%0A
@@ -540,16 +540,17 @@
.0%0A%09%09%09%0... |
fb6df88eafadd1fb8422a63b015ee25f4c2915c3 | use custom class to detect if field is auto-hidden | modules/Libs/QuickForm/autohide_fields.js | modules/Libs/QuickForm/autohide_fields.js | var Libs_QuickForm__hide_groups = {};
Libs_QuickForm__autohide = function(e) {
var el = jq(e.target);
// do not handle autohide when element is not shown
if (el.closest('tr').is(':hidden')) return;
var hide_groups = Libs_QuickForm__hide_groups[el.attr('id')];
if(typeof hide_groups == "undefined") return;
var reve... | JavaScript | 0 | @@ -143,16 +143,17 @@
is
-not show
+autohidde
n%0A%09i
@@ -162,33 +162,26 @@
(el.
-closest('tr').is(':hidden
+hasClass('autohide
'))
@@ -1401,16 +1401,93 @@
.mode%5D()
+.removeClass('auto' + reverse_mode%5Bgroup.mode%5D).addClass('auto' + group.mode)
; // hid
@@ -1790,16 +1790,93 @@
mode%5D%5D()
+.removeClass... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.