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 |
|---|---|---|---|---|---|---|---|
e2ae9f87817c03cbb45f2b6fb36be4050e2df03a | add height fix for profile-info box when it > #page in height | mzalendo/core/static/js/desktop-functions.js | mzalendo/core/static/js/desktop-functions.js | // load all other jquery related resources
Modernizr.load(['//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js','//ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css']);
// Show a tab and hide the others. Load content from remote source if needed.
function activateSimpleTab( $heading_el... | JavaScript | 0 | @@ -5322,11 +5322,256 @@
;%0A %7D);%0A
+%0A%0A /*%0A * Height fix for pages with .profile-info box%0A */%0A var pro_h = $('.profile-info').height()+210; //add 210 for the profile pic%0A var main_h = $('#page').height();%0A%0A if(pro_h %3E main_h)%7B%0A $('#page').css(%7B'min-height':pro_h%7D);%0A %7D%0A%0... |
d2e8efd9c92b6f5621b0bd35ef5368bda2d856f8 | index j=4 | flava/server.js | flava/server.js | /**
* Created by Wayne on 16/2/22.
*/
var config = require('./config/config');
var setup = require('./config/setup')();
var express = require('./config/express');
new express().listen(config.port);
console.log('process.env.NODE_ENV', process.env.NODE_ENV);
exports.index = function () {
}
exports.index1 = functi... | JavaScript | 0.999407 | @@ -447,13 +447,13 @@
var j =
-2
+4
;%0A%7D%0A
|
2130557ca42bbb89ee4b26db1f39ee562703ed2d | re-write hold style links to new html5 style | app/assets/javascripts/angular/app.js | app/assets/javascripts/angular/app.js | angular.module("Prometheus.controllers", []);
angular.module("Prometheus.directives", []);
angular.module("Prometheus.resources", []);
angular.module("Prometheus.services", []);
angular.module("Prometheus.filters", []);
angular.module("Prometheus",
["ui.sortable", "ui.bootstrap", "ui.slider", "Prometheus.controllers... | JavaScript | 0.999665 | @@ -430,16 +430,29 @@
tScope',
+ '$location',
functio
@@ -463,16 +463,27 @@
ootScope
+, $location
) %7B%0A //
@@ -678,16 +678,114 @@
g);%0A %7D;
+%0A%0A if ($location.hash()%5B0%5D === %22?%22) %7B%0A $location.url($location.path() + $location.hash());%0A %7D
%0A%7D%5D).con
|
9e11b949979529561e1a4d50ec43995983d1042e | Fix typo | simplyread.js | simplyread.js | /*
* SimplyRead - makes webpages more simplyread
*
* See COPYING file for copyright, license and warranty details.
*/
if(window.content && window.content.document.simplyread_original === undefined) window.content.document.simplyread_original = false;
function simplyread()
{
/* count the number of <p> tags that a... | JavaScript | 0.999999 | @@ -32,26 +32,24 @@
es more
-simply
read
+able
%0A *%0A * S
|
c66f16d30acd4ded046741ae69cf804cbea20fd6 | Add some specs for actionscript | spec/languages/actionscript-spec.js | spec/languages/actionscript-spec.js | "use babel"
import Parser from '../../lib/languages/actionscript'
describe('ParserActionScript', () => {
let parser;
beforeEach(() => {
waitsForPromise(() => atom.packages.activatePackage('docblockr'))
runs(() => {
parser = new Parser(atom.config.get('docblockr'))
})
})
describe('parse_fu... | JavaScript | 0 | @@ -324,32 +324,33 @@
ion()', () =%3E %7B%0A
+%0A
it('should b
@@ -352,159 +352,1056 @@
uld
-be implemented', () =%3E expect(false).toBe(true))%0A %7D)%0A%0A describe('parse_var()', () =%3E %7B%0A it('should be implemented', () =%3E expect(false).toBe(true)
+parse anonymous function', () =%3E %7B%0A c... |
3add8cb634810bd562c4459619af1838b61f9181 | Fix initialization bug. | src/link.js | src/link.js | import {map} from "d3-collection";
import constant from "./constant";
var tau = 2 * Math.PI;
function index(d, i) {
return i;
}
export default function(links) {
var id = index,
strength = constant(0.7),
strengths,
distance = constant(30),
distances,
nodes,
bias,
iteratio... | JavaScript | 0 | @@ -1936,24 +1936,49 @@
trength() %7B%0A
+ if (!nodes) return;%0A%0A
for (var
@@ -2100,24 +2100,49 @@
istance() %7B%0A
+ if (!nodes) return;%0A%0A
for (var
|
8a464043e4a18e7f33ecd9ec5908c7457011fe59 | update store.js | packages/ember-model/lib/store.js | packages/ember-model/lib/store.js | function NIL() {}
Ember.Model.Store = Ember.Object.extend({
container: null,
modelFor: function(type) {
return this.container.lookupFactory('model:'+type);
},
adapterFor: function(type) {
var adapter = this.modelFor(type).adapter,
container = this.container;
if (adapter && adapter !== Em... | JavaScript | 0.000002 | @@ -109,24 +109,58 @@
%7B%0A return
+ Ember.Model.detect(type) ? type :
this.contai
@@ -329,16 +329,18 @@
(adapter
+/*
&& adap
@@ -358,32 +358,34 @@
er.Model.adapter
+*/
) %7B%0A return
@@ -1833,24 +1833,188 @@
lication) %7B%0A
+ // YPBUG: old initialization code used deprecated methods but appear... |
103b9adc57f4f7335d655a4366485d07798f0feb | fix createItem plugin method callbacks | www/UltravisualPlugin.js | www/UltravisualPlugin.js | var exec = require('cordova/exec');
var UltravisualPlugin = {
create: function (successCallback, errorCallback) {
UltravisualPlugin.tag = 0;
exec(successCallback, errorCallback, 'UltravisualPlugin', 'create', []);
},
createItem: function(label, details, image, options) {
var tag = UltravisualPl... | JavaScript | 0.000001 | @@ -249,16 +249,48 @@
unction(
+successCallback, errorCallback,
label, d
|
a7ed48b7abed6916e45019c6e50806fb7e1b22dc | add trailing ./ | packages/isomorphic-core/index.js | packages/isomorphic-core/index.js | module.exports = {
Provider: {
Gmail: 'gmail',
IMAP: 'imap',
},
Imap: require('imap'),
IMAPConnection: require('src/imap-connection'),
IMAPErrors: require('src/imap-errors'),
PromiseUtils: require('src/promise-utils'),
}
| JavaScript | 0.000001 | @@ -113,32 +113,34 @@
ction: require('
+./
src/imap-connect
@@ -165,24 +165,26 @@
s: require('
+./
src/imap-err
@@ -215,16 +215,18 @@
equire('
+./
src/prom
|
5470e1e9bbd565960c5f41018bf0d5360879aea5 | Remove reference to heartbeat as this has been removed from quickconnect prior to version 2 | site/index.js | site/index.js | var quickconnect = require('rtc-quickconnect');
var captureConfig = require('rtc-captureconfig');
var media = require('rtc-media');
var crel = require('crel');
var qsa = require('fdom/qsa');
var tweak = require('fdom/classtweak');
var reRoomName = /^\/room\/(.*?)\/?$/;
var room = location.pathname.replace(reRoomName, '... | JavaScript | 0 | @@ -2128,36 +2128,8 @@
vers
-,%0A disableHeartbeat: true
%0A %7D
|
ad91fde956df17a6ddac91df4f7e3c5b5ae24f9b | Revert to indexOf | Demo2.js | Demo2.js | 'use strict';
import React from 'react';
import Springs from './Springs';
if (!String.prototype.includes) {
String.prototype.includes = function() {'use strict';
return String.prototype.indexOf.apply(this, arguments) !== -1;
};
}
export default React.createClass({
getInitialState: function() {
return {... | JavaScript | 0 | @@ -73,173 +73,8 @@
';%0A%0A
-if (!String.prototype.includes) %7B%0A String.prototype.includes = function() %7B'use strict';%0A return String.prototype.indexOf.apply(this, arguments) !== -1;%0A %7D;%0A%7D%0A%0A
expo
@@ -1178,14 +1178,13 @@
).in
-cludes
+dexOf
(val
@@ -1200,16 +1200,21 @@
rCase())
+ %3E= 0
;%... |
9610e34f8df6dd55fffa1ef4eb390f310281f53f | make the test pass | MineField/minefield.js | MineField/minefield.js | "use strict";
var assert = require('assert');
describe('minefield', function() {
describe('grid', function() {
it('should be able to create a grid', function() {
var grid = new Grid(5,6);
assert.equal(grid.width, 5);
assert.equal(grid.height, 6);
});
});
});
| JavaScript | 0.000517 | @@ -41,16 +41,91 @@
ert');%0A%0A
+var Grid = function(w,h) %7B%0A return %7B%0A width: w,%0A height: h%0A %7D;%0A%7D;%0A%0A
describe
|
f04a6e1416b8a7808df34cb7f23fbdeb971340a7 | Add bootstrap js to pipeline | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -634,8 +634,38 @@
_tree .%0A
+//= require twitter/bootstrap%0A
|
aad8b82917c4c4fef167c4cf2717476e01894998 | Use map | src/list.js | src/list.js | import Twitter from 'twit';
let T = new Twitter({
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
access_token: process.env.ACCESS_TOKEN,
access_token_secret: process.env.ACCESS_TOKEN_SECRET
});
let list_id = null;
//T.get('lists/list', {screen_name: 'akameco', ... | JavaScript | 0.000003 | @@ -260,15 +260,8 @@
t_id
- = null
;%0A%0A/
@@ -637,253 +637,87 @@
%3E %7B%0A
- console.log(data);%0A%0A let user_ids = %5B%5D;%0A%0A for (let user of data.users) %7B%0A console.log(user.name);%0A console.log(user.id);%0A user_ids.push(user.id);
+%0A let user_ids = data.users.map((us... |
40684be255b94a093ef0203c5d4677b6b9b16718 | Convert numerical values to number type | parse.js | parse.js | "use strict";
/*
Straight-forward node.js arguments parser
Author: eveningkid
License: Apache-2.0
*/
function Parse (argv) {
// Removing node/bin and called script name
argv = argv.slice(2);
// Returned object
var args = {};
var argName, argValue;
// For each argument
argv.forEach(function (arg, index) ... | JavaScript | 0.999999 | @@ -444,20 +444,17 @@
%5D;%0A %0A
-
+%09
%09// Remo
@@ -578,17 +578,19 @@
1);%0A%09%09%7D%0A
+%09%09
%0A
-
%09%09// Ass
@@ -678,18 +678,122 @@
= 2)
-
+%0A%09%09%09? parseFloat(arg%5B1%5D).toString() === arg%5B1%5D // check if argument is valid number%0A%09%09%09%09
?
++
arg%5B1%5D
-
+%0A%09%09%09%09: ... |
00f4ea03e7da716d81e990ec1476dd716a3f0102 | add - default reporter to jslint, fix #14 | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var watch = require('gulp-watch');
var rename = require('gulp-rename');
var notify = require('gulp-notify');
var util = require('gulp-util');
var jslint = require('gulp-jslint');
var uglify = require('gulp-uglify');
var stylus = require('gulp-stylus');
// var csslint = require('gulp-csslin... | JavaScript | 0 | @@ -630,18 +630,16 @@
s'%0A %5D)%0A
-
.pipe(
@@ -649,242 +649,86 @@
int(
-%7B%0A reporter: function (evt) %7B%0A var msg = ' ' + evt.file;%0A if (evt.pass) %7B%0A msg = '%5BPASS%5D' + msg;%0A %7D else %7B%0A msg = '%5BFAIL%5D' + msg;%0A %7D%0A consol... |
bef1c523a3e39e8e4d6b6c1fd60c450e07aa716e | improve namespaces example, | examples/namespaces.js | examples/namespaces.js | var visit = require('collection-visit');
var minimist = require('minimist');
var methods = require('..');
var app = {
data: {},
get: function (key) {
return app.data[key];
},
set: function (key, value) {
if (typeof key === 'object') {
visit(app, 'set', key);
} else {
app.data[key] = val... | JavaScript | 0.000001 | @@ -1,12 +1,108 @@
+var App = require('./app').App;%0Avar app = new App();%0Avar one = new App();%0Avar two = new App();%0A%0A
var visit =
@@ -200,255 +200,8 @@
);%0A%0A
-var app = %7B%0A data: %7B%7D,%0A get: function (key) %7B%0A return app.data%5Bkey%5D;%0A %7D,%0A set: function (key, value) %7B%0A if (... |
f59f4fe0f78078395976e811308e93841ca8dbc9 | Make cleverbot module behave like a typing human | src/modules/managed/cleverbotManager.js | src/modules/managed/cleverbotManager.js | /**
* Created by Julian/Wolke on 27.11.2016.
*/
let Manager = require('../../structures/manager');
let Cleverbot = require('cleverbot');
let re = /<@[0-9].*>/g;
let cleverbotKey = remConfig.cleverbot_api_key;
class CleverBotManager extends Manager {
constructor() {
super();
this.cleverbot = new ... | JavaScript | 0.000019 | @@ -947,63 +947,271 @@
-msg.channel.createMessage(':pencil: ' + response.output
+setTimeout(() =%3E %7B%0A msg.channel.sendTyping();%0A setTimeout(() =%3E %7B%0A msg.channel.createMessage(response.output);%0A %7D, response.output.leng... |
692847a567b0155964a5bd0eb447020701a81452 | allow user to provide external templates | lib/raml2html.js | lib/raml2html.js | #!/usr/bin/env node
var raml = require('raml-parser');
var handlebars = require('handlebars');
var marked = require('marked');
var template = require('./template.handlebars');
var resourceTemplate = require('./resource.handlebars');
function parseBaseUri(ramlObj) {
// I have no clue what kind of variables the RAM... | JavaScript | 0 | @@ -1463,20 +1463,198 @@
ion
-parse(source
+markDownHelper(text) %7B%0A if (text && text.length) %7B%0A return new handlebars.SafeString(marked(text));%0A %7D else %7B%0A return '';%0A %7D%0A%7D%0A%0Afunction parseWithConfig(source, config
, on
@@ -1802,16 +1802,24 @@
mlObj);%0A
+
%0... |
343e6f2061682338ae495164d2965006f0f42e0c | Add encode for global variable | lib/middleware/renderHTML.js | lib/middleware/renderHTML.js | /**
* @file Render html
* @author treelite(c.xinle@gmail.com)
*/
var extend = require('saber-lang').extend;
var config = require('../config');
var INDEX_FILE = 'index.html';
/**
* 模版编译
*
* @inner
* @param {Object=} options 配置项
* @param {string=} options.indexFile 首页模版
* @return {Function}
*/
function compil... | JavaScript | 0.000068 | @@ -1413,16 +1413,148 @@
);%0A
+ // %E8%BD%AC%E4%B9%89%E5%8D%B1%E9%99%A9%E5%AD%97%E7%AC%A6%0A // %22 ' %5C %E5%B7%B2%E7%BB%8F%E8%A2%ABJSON.stringify %E5%A4%84%E7%90%86%E4%BA%86%EF%BC%8C%E8%BF%98%E5%89%A9%E4%B8%8B%E4%B8%80%E4%B8%AA /%0A data.rebas = data.rebas.replace(/%5C//g, '%5C... |
4ca3f440656140aa37ecf505cec5cb99ef781c5f | Use strict for gulpfile | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var fs = require('fs-extra');
gulp.task('clean', function (done) {
fs.remove(__dirname + '/build', done);
});
gulp.task('lint', function () {
var jshint = require('gulp-jshint');
return gulp.src(['index.js', 'test/*.js', 'gulpfile.js'])
.pipe(jshint())
.pipe(... | JavaScript | 0.000001 | @@ -1,12 +1,26 @@
+'use strict';%0A
var gulp = r
|
280820b09fe5652dd2ef8e4ac28c683f81c97e7d | fix sending presence for rooms and threads (#388) | src/modules/presence/presence-client.js | src/modules/presence/presence-client.js | /* @flow */
import { bus, cache } from '../../core-client';
import store from '../store/store';
import { setPresence, setItemPresence } from '../store/actions';
import { ROLE_VISITOR } from '../../lib/Constants';
import promisify from '../../lib/promisify';
const getEntityAsync = promisify(cache.getEntity.bind(cache)... | JavaScript | 0 | @@ -317,16 +317,278 @@
che));%0A%0A
+function getItemFromFilter(filter) %7B%0A%09if (filter) %7B%0A%09%09if (filter.thread && filter.thread.parents_cts) %7B%0A%09%09%09return filter.thread.parents_cts%5B0%5D;%0A%09%09%7D else if (filter.text && filter.text.parents_cts) %7B%0A%09%09%09return filter.text.parents_cts%5B0... |
3f2ca37dcb6a48fec4270560fb3e39a21edb4291 | fix issue #19 : improve browser compatibility on scrollTop calculation + remove direct window and document reference (stricter mode) | ng-scrollto.js | ng-scrollto.js | // Version 0.0.5-fix
// AngularJS simple hash-tag scroll alternative
// this directive uses click event to scroll to the target element
//
// <div ng-app="app">
// <div ng-controller="myCtrl">
// <a scroll-to="section1">Section 1</a>
// </div>
// ...
// <div id="section1">
// <h2>Section1</h2>
// ... | JavaScript | 0 | @@ -12,9 +12,9 @@
0.0.
-5
+6
-fix
@@ -2344,70 +2344,374 @@
var
-top = el.getBoundingClientRect().top + el.ownerDocument.body.s
+currentDocument = el.ownerDocument;%0A var currentWindow = currentDocument.defaultView %7C%7C currentDocument.parentWindow; // parentWindow is for IE8-%0A var currentScro... |
33428df7ad3fd4d8345970fe9f6a31bf49db133a | Fix to pass test on /authorized route looking for user_id | routes/authorization.js | routes/authorization.js | "use strict";
var db = require('../models');
var requestHelper = require('../lib/request-helper');
module.exports = function(app, options) {
app.post('/authorized', function(req, res) {
if (!requestHelper.isContentType(req, 'application/x-www-form-urlencoded')) {
res.json(400, { error: 'invalid_request' ... | JavaScript | 0 | @@ -1736,18 +1736,27 @@
var r
+e
sp
+onseData
= %7B%0A
@@ -1802,16 +1802,17 @@
lient_id
+,
%0A
@@ -1824,39 +1824,38 @@
-%7D;%0A%0A if (
+ user_id: accessToken.
user
-) %7B
+_id
%0A
@@ -1871,35 +1871,12 @@
- rsp.user_id = user.id;%0A
+%7D;%0A%0A
@@ -1895,29 +1... |
c77e4adf1e2d66c2b9665f03fa485f37c239c6f3 | Use local name instead of title in filepicker if it exists | www/filepicker/inner.js | www/filepicker/inner.js | define([
'jquery',
'/bower_components/chainpad-crypto/crypto.js',
'/bower_components/nthen/index.js',
'/common/sframe-common.js',
'/common/common-interface.js',
'/common/common-ui-elements.js',
'/common/common-util.js',
'/common/common-hash.js',
'json.sortify',
'/customize/messag... | JavaScript | 0.000001 | @@ -4299,16 +4299,33 @@
r name =
+ data.filename %7C%7C
data.ti
|
32543f79defd1ded321fe5bb205f476d4b227ef6 | Change database structure | www/js/databaseHelper.js | www/js/databaseHelper.js | /**
* Group a series of functions to interact with PhoneGap built-in database.
*
* @author Lucio Romerio (lucio.romerio@epfl.ch)
*/
/**
* Global instance that represent the database itself.
*
* @type {Database}
*/
var db = window.openDatabase("cothority_database", "1.0", "cothority_database", 1000000);
/**
... | JavaScript | 0.000001 | @@ -957,44 +957,32 @@
des(
-id INTEGER PRIMARY KEY AUTOINCREMENT
+address TEXT PRIMARY KEY
, %22
@@ -996,22 +996,8 @@
%22
-address TEXT,
serv
@@ -1030,32 +1030,33 @@
keyPair TEXT)%22;%0A
+%0A
tx.executeSq
@@ -1118,59 +1118,8 @@
ssh(
-id INTEGER PRIMARY KEY AUTOINCREMENT, %22 +%0A %22
serv
@@ -11... |
aa473aefae0d07f04d282c60bd593de0d9d23900 | Add library(jquery.ui.effect.all) to app/assets/javascripts/application.js #65 | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000001 | @@ -804,32 +804,65 @@
ui.droppable.js%0A
+//= require jquery.ui.effect.all%0A
//= require_tree
|
72c233dc73cd0a4ea32ef98d7236ecd1a969eb48 | use switch statement | js/lib/document_builder/Psalmody.js | js/lib/document_builder/Psalmody.js | var CopticCalendar = require('../CopticCalendar.js');
var CopticDateComparator = CopticCalendar.CopticDateComparator;
var moment = require('moment');
var Psalmody = {
MorningPraises: function (attributes) {
var docs = [];
docs.push("hymns/psalmody/morning_praises");
docs.push("hymns/psalmo... | JavaScript | 0.000003 | @@ -706,23 +706,42 @@
-if (day == 0) %7B
+switch (day) %7B%0A case 0:
%0A
@@ -812,34 +812,38 @@
-%7D %0A if (day == 1) %7B
+ break;%0A case 1:
%0A
@@ -914,34 +914,38 @@
-%7D %0A if (day == 2) %7B
+ break;%0A case 2:
%0A
@@ -1017,34 +1017... |
cedfc743d900082a4255edfd6b7dc9b325b5a2b3 | throw err if ssh connect fails in ws:start task | gulpfile.js | gulpfile.js | require('dotenv').config({silent: true});
const _ = require('underscore-plus');
const gulp = require('gulp');
const gutil = require('gulp-util');
const shell = require('shelljs');
const Client = require('ssh2').Client;
const fs = require('fs');
const os = require('os');
const path = require('path');
gulp.task('default... | JavaScript | 0.000005 | @@ -1734,32 +1734,63 @@
(err, stream) %7B%0A
+ if (err) %7B throw err %7D%0A
stream.o
|
044e26a180a0879aedd97e719c77148efdfe9063 | remove debugging | goodreads-ssrm.js | goodreads-ssrm.js | // goodreads SSRM (server-side rendering middleware)
'use strict';
var wait = require('wait.for');
var fs = require('fs');
var jsdom = require('jsdom');
var jsDomGet = function(appFilename, url, callback) {
jsdom.env({
file: appFilename,
windowLocation: url,
features: {
QuerySelector: true
},
... | JavaScript | 0.000065 | @@ -503,180 +503,8 @@
l);%0A
- %7D,%0A done: function(errors, window) %7B%0A console.log(errors);%0A window.document.body.setAttribute('data-prerendered', 'true');%0A callback(errors, window);%0A
|
d6f1372a07a19acc7d2f4bbf480aeb4f24a6c8da | Fix cover fetch when it has single or doublequotes in its path | src/js/components/Shared/Cover.react.js | src/js/components/Shared/Cover.react.js | import React, { PureComponent } from 'react';
import utils from '../../utils/utils';
/*
|--------------------------------------------------------------------------
| Header - PlayingBar
|--------------------------------------------------------------------------
*/
export default class TrackCover extends PureCompon... | JavaScript | 0 | @@ -622,24 +622,164 @@
overPath) %7B%0A
+ const coverPath = encodeURI(this.state.coverPath)%0A .replace(/'/g, '%5C%5C%5C'')%0A .replace(/%22/g, '%5C%5C%22');%0A
@@ -820,27 +820,16 @@
%60url('$%7B
-this.state.
coverPat
|
4be06b3a36b8cfc31c5d57802f465b0c16adf12a | Fix coffeescript output | lib/plugins/coffee-script.js | lib/plugins/coffee-script.js | var CoffeeScript = require('coffee-script'),
path = require('path'),
fu = require('../fileUtil');
module.exports = {
mode: 'scripts',
priority: 50,
resource: function(context, next, complete) {
var resource = context.resource;
if (/\.coffee$/.test(resource.src)) {
next(function(err, coffeeS... | JavaScript | 0.99994 | @@ -277,24 +277,25 @@
rce.src)) %7B%0A
+%0A
next(f
@@ -311,27 +311,169 @@
rr,
-coffeeScriptSrc) %7B%0A
+resource) %7B%0A function generator(context, callback) %7B%0A // Load the source data%0A context.loadResource(resource, function(err, file) %7B%0A
@@ -497,16 +497,20 @@
... |
ea98cda60ec1182e4446f393fae86ce26013cbed | remove tick draw from signal array | packages/element/input-signal-array/index.js | packages/element/input-signal-array/index.js | import ArrayViewerElement from '../element-viewer-array/index.js';
import Ticker from '../core/util/Ticker.js';
export default class ArraySignalInputElement extends ArrayViewerElement {
static get observedAttributes() {
return [...ArrayViewerElement.observedAttributes, 'position', 'length'];
}
constructor()... | JavaScript | 0.000001 | @@ -326,24 +326,363 @@
super();%0A%0A
+ this._head = document.createElement('div');%0A this._head.style.position = 'absolute';%0A this._head.style.willChange = 'transform';%0A this._head.style.height = '100%25';%0A this._head.style.top = '0';%0A this._head.style.left = '0';%0A this._head.style.b... |
a4d178ea18cedd359cbdfe9b0c3fa731b446ce07 | Fix :filter {artist}. | xulmus/content/player.js | xulmus/content/player.js | //Import Artist List as this can be huge
var artists = getArtistsArray();
function Player() // {{{
{
////////////////////////////////////////////////////////////////////////////////
////////////////////// PRIVATE SECTION /////////////////////////////////////////
///////////////////////////////////////////... | JavaScript | 0.000001 | @@ -5351,50 +5351,10 @@
ase
-3:
+1:
%0A
|
0a624446f2b1958e2284d0c72c856d6a6c1cf9b2 | fix sidebar scrolling. | chrome/common/extensions/docs/static/js/scroll.js | chrome/common/extensions/docs/static/js/scroll.js | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Scroll handling.
//
// Switches the sidebar between floating on the left and position:fixed
// depending on whether it's scrolled into view, and manage... | JavaScript | 0.000007 | @@ -546,50 +546,25 @@
p;%0A%0A
-window.addEventListener('scroll', function
+function relayout
() %7B
@@ -668,16 +668,155 @@
n here.%0A
+ var isFloatingSidebar = sidebar.classList.contains('floating');%0A var isShowingScrollToTop = !scrollToTop.classList.contains('hidden');%0A%0A
var fl
@@ -986,22 +986,22 @@
si... |
097c712727bc5a48d53345d6bc7e5d1aa30433b6 | Add spacing in serialize lib #86 | lib/serialize.js | lib/serialize.js | Cosmos.serialize = {
getPropsFromQueryString: function(queryString) {
var props = {};
if (queryString.length) {
var pairs = queryString.split('&'),
parts,
key,
value;
for (var i = 0; i < pairs.length; i++) {
parts = pairs[i].split('=');
key = parts[0];... | JavaScript | 0.000003 | @@ -85,24 +85,25 @@
s = %7B%7D;%0A
+%0A
if (
queryStr
@@ -94,16 +94,17 @@
if (
+!
queryStr
@@ -115,24 +115,49 @@
length) %7B%0A
+ return props;%0A %7D%0A%0A
var pair
@@ -188,26 +188,24 @@
'),%0A
-
parts,%0A
@@ -211,17 +211,13 @@
-
key,%0A
-
@@ -223,26 +223,25... |
128be6d69cba464b74199c774270ef5fc7b78364 | exclude validation pattern | src/main.js | src/main.js | define('main', [
"jquery",
"./registry",
"modernizer",
"less",
"prefixfree",
"./patterns/autofocus",
"./patterns/autoscale",
"./patterns/autosubmit",
"./patterns/autosuggest",
"./patterns/breadcrumbs",
"./patterns/bumper",
"./patterns/carousel",
"./patterns/checkedfl... | JavaScript | 0.000003 | @@ -913,32 +913,87 @@
s/tooltip%22,%0A
+// has racing problems, might be replaced anyway%0A //
%22./patterns/vali
|
489d9a943abf144cae47d8ade6539d392306f31e | make it async | tasks/nunjucks.js | tasks/nunjucks.js | /**
* grunt-nunjucks-2-html
* https://github.com/vitkarpov/grunt-nunjucks-2-html
*
* Copyright (c) 2014 Vit Karpov
* Licensed under the MIT license.
*/
var nunjucks = require('nunjucks');
var path = require('path');
var async = require('async');
var _ = require('lodash');
module.exports = function(grunt) {
... | JavaScript | 0.000272 | @@ -1381,49 +1381,55 @@
-var template = grunt.file.read(filepath);
+env.render(filepath, data, function(err, res) %7B
%0A
@@ -1441,11 +1441,20 @@
-try
+ if (err)
%7B%0A
@@ -1472,100 +1472,66 @@
-var html = env.renderString(template, data);%0A %7D catch(e) %7B%0A
+ ... |
6dadebd94026c6ab608a1ce34b8870d0284322ad | Add collapse function to externs | externs/twbootstrap.js | externs/twbootstrap.js | /**
* Externs for Twitter Bootstrap
*
* @externs
*/
/**
* @param {string=} opt_action
* @return {!jQuery}
*/
jQuery.prototype.alert = function(opt_action) {};
/**
* @param {string=} opt_action
* @return {!angular.JQLite}
*/
angular.JQLite.prototype.alert = function(opt_action) {};
/**
* @param {string=... | JavaScript | 0 | @@ -2071,28 +2071,456 @@
= function(opt_options) %7B%7D;%0A
+%0A%0A/**%0A * @typedef %7B%7B%0A * parent: (string%7Cboolean%7Cundefined),%0A * toggle: (boolean%7Cundefined)%0A * %7D%7D%0A */%0Alet CollapseOptions;%0A%0A%0A/**%0A * @param %7Bstring%7CCollapseOptions%7D action_or_options%0A * @return %7BjQuery%7D%0A ... |
166a20475a76e1d955faab06a514fea1e69d5814 | Fix reference to blog in calls to Tumblr | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000001 | @@ -995,17 +995,16 @@
log/
-discom4rt
+mhgbrown
.tum
|
53533e03f8dd1c4420719d2ba3a3468b8c7d4719 | Add department to title attribute | src/force-directed-graph-renderer.js | src/force-directed-graph-renderer.js | import d3 from 'd3';
export default class ForceDirectedGraphRenderer {
renderSvg(containerElement, users) {
const width = 1200;
const height = 700;
const radius = 15;
const color = d3.scale.category20();
const vis = d3
.select(containerElement)
.append('svg')
.attr('width', wi... | JavaScript | 0.000003 | @@ -1555,16 +1555,19 @@
xt(x =%3E
+%60$%7B
x.displa
@@ -1571,16 +1571,36 @@
playName
+%7D ($%7Bx.department%7D)%60
);%0A%0A
|
6dc0d82a9b241e46da51b04d1ce3e69d80f6bedf | fix corner case of non-spread 1-arg tuple functions | runtime-js/callables.js | runtime-js/callables.js | function $JsCallable(f$,parms,targs) {
//Do not wrap another $JsCallable
if (f$.jsc$)return f$;
if (f$.getT$all === undefined) {
f$.getT$all=Callable.getT$all;
}
var set_meta = getrtmm$$(f$) === undefined;
if (set_meta) {
f$.$crtmm$={ps:[],mod:$CCMM$,d:['$','Callable']};
if (parms !== undefined)... | JavaScript | 0.000218 | @@ -617,16 +617,22 @@
ments,f$
+,targs
));%0A %7D%0A
@@ -1103,16 +1103,22 @@
uments,f
+,targs
);%0A i
@@ -1172,15 +1172,8 @@
arg
-, targs
);%0A
@@ -2199,16 +2199,121 @@
(a1t &&
+ targs && targs.Arguments$Callable) %7B%0A typecheck=targs.Arguments$Callable;%0A %7D else if (a1t &&
arg%5B0%5D.
|
4162c672091ab5f4d61eb098f2da5a2bb00fe941 | Fix bracket on edu wizard (#5829) | src/js/edu-benefits/education-wizard.js | src/js/edu-benefits/education-wizard.js | function toggleClass(element, className) {
element.classList.toggle(className);
}
function openState(element) {
element.setAttribute('data-state', 'open');
}
function closeState(element) {
element.setAttribute('data-state', 'closed');
const selectionElement = element.querySelector('input:checked');
if (select... | JavaScript | 0 | @@ -1968,16 +1968,17 @@
uestion%7D
+%5D
%60);%0A
|
779978a6bd1c6b994a64bf8c1dfcb910abdaa7ac | improve docs generation | gulpfile.js | gulpfile.js | var fs = require('fs')
, gulp = require('gulp')
, stylish = require('jshint-stylish')
, jshint = require('gulp-jshint')
, markdox = require('markdox');
var sourceFiles = ['*.js', 'lib/**/*.js', 'bin/**/*.js'];
gulp.task('lint', function() {
var jshintOptions = {
laxcomma: true
};
return gulp.src(sourceFiles)... | JavaScript | 0.000001 | @@ -433,19 +433,21 @@
%7B%0A%09var
-fil
+sourc
es = %5B'l
@@ -498,51 +498,80 @@
js'%5D
-;
%0A%09
-var options = %7B%0A%09%09output: 'docs/API.md',
+%09, readme = 'README.md'%0A%09%09, tmpFile = 'docs/API.md';%0A%0A%09var options = %7B
%0A%09%09t
@@ -601,16 +601,35 @@
.md.ejs'
+,%0A%09%09output: tmpFile
%0A%09%... |
65e9e869cf49a2929e50eac630dcbb6a7e5b1a3f | Remove commented Closure compiler code for now | gulpfile.js | gulpfile.js | /*jshint node:true */
const gulp = require( 'gulp' ),
concat = require( 'gulp-concat' ),
connect = require( 'gulp-connect' ),
header = require( 'gulp-header' ),
jasmine = require( 'gulp-jasmine' ),
jshint = require( 'gulp-jshint' ),
... | JavaScript | 0 | @@ -1574,25 +1574,52 @@
stFolder ) )
+ // output unminified file
%0A
-
%09%09.pipe( pre
@@ -1695,546 +1695,8 @@
ode%0A
-%09%09/*.pipe( closureCompiler(%7B // in case we want to use closure compiler. Need to define exports and get to work with umd header%0A%09%09%09compilation_level : 'ADVANCED',%0A%09%09%09warnin... |
d0d7ddeae2695503771a349af85a8a7a6217ecb4 | Update main.js | src/main.js | src/main.js | import { CatOwners } from './cat.owners';
var catOwners = new CatOwners();
catOwners.init();
| JavaScript | 0.000001 | @@ -5,22 +5,19 @@
rt %7B Cat
-Owners
+App
%7D from
@@ -27,31 +27,51 @@
cat.
-owners';%0A%0Avar catOwners
+app';%0A%0A// instantiating CatApp%0Aconst catApp
= n
@@ -80,22 +80,19 @@
Cat
-Owners
+App
();%0A%0Acat
Owne
@@ -91,14 +91,11 @@
%0Acat
-Owners
+App
.ini
|
697e60ff0a2df03acf066e7c107ba3e543dc0d62 | Remove broken jquery plugin | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000001 | @@ -646,40 +646,8 @@
eys%0A
-//= require jquery-ui/accordion%0A
//=
|
96867d553ce40deccf886e8284cd27fa3e663fbe | Update gulpfile | gulpfile.js | gulpfile.js | var elixir = require('laravel-elixir'),
build = require('./gulp.build.json');
require('./tasks/angular.task.js');
require('./tasks/bower.task.js');
require('laravel-elixir-livereload');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|------------------... | JavaScript | 0.000001 | @@ -970,23 +970,11 @@
ar/m
-odules/app.core
+ain
.mod
@@ -1034,49 +1034,34 @@
ild.
-application + 'angular/modules/components
+components%5B0%5D + 'angular/*
.mod
@@ -1144,16 +1144,8 @@
lar/
-modules/
appl
@@ -1330,33 +1330,32 @@
r/**/**/**/*.js'
-,
%0A %5D)%0A
@@ -1354,118 +1354,8 @@
%5D)%0A
- ... |
59365d6d943523c7ec3a98d09edbb4d7c71fa856 | Use Babel polyfill from browser only | src/main.js | src/main.js | require('../sass/main.scss');
import 'babel-polyfill';
import NamesPanel from './names-panel.js';
import OptionsPanel from './options-panel.js';
new NamesPanel().init();
new OptionsPanel().init();
| JavaScript | 0 | @@ -27,33 +27,8 @@
');%0A
-import 'babel-polyfill';%0A
impo
|
b74ec82127ebfcaec8889cad1624af17d989ea02 | Return cached value if lazy link field is sleeping | src/resources/elements/lazylinkfield.js | src/resources/elements/lazylinkfield.js | import {containerless} from 'aurelia-framework';
import {Field} from './abstract/field';
/**
* LazyLinkfield is a field that lazily proxies the a whole field (value & UI)
* to another place.
*/
@containerless
export class LazyLinkfield extends Field {
static TYPE = 'lazylink';
target = '#';
overrides = {};
... | JavaScript | 0.000003 | @@ -829,32 +829,53 @@
if (!this.child
+ && !this.cachedValue
) %7B%0A return
@@ -4314,25 +4314,32 @@
lue() :
-undefined
+this.cachedValue
;%0A %7D%0A%0A
|
01cb840e0827333f30ac4d857a5df617ba9aac7b | use object | yahoo_rainfall/index.js | yahoo_rainfall/index.js |
module.exports = function (context, myTimer) {
var timeStamp = new Date().toISOString();
if(myTimer.isPastDue)
{
context.log('JavaScript is running late!');
}
context.log('JavaScript timer trigger function ran!', timeStamp);
main(context);
};
if (require.main === module) {
... | JavaScript | 0.000499 | @@ -1797,25 +1797,35 @@
s.outputBlob
-%5B
+ = %7B%0A%09%09
%22last_date%22%5D
@@ -1823,19 +1823,18 @@
st_date%22
-%5D =
+ :
new Dat
@@ -1836,17 +1836,20 @@
w Date()
-;
+%0A%09%09%7D
%0A
|
8a8333ad256f4893bb53272edb8fefd1d944c4c7 | Remove console.log form moment_init.js | app/assets/javascripts/moment_init.js | app/assets/javascripts/moment_init.js | var moment = function() {
$('.date').each(function() {
console.log('test');
var date = $(this).data('date');
var date_formatted = moment(date).startOf('minute').fromNow();
$(this).text(date_formatted);
});
};
$(document).ready(moment);
$(document).ajaxComplete(moment);
$(document).on('page:load', ... | JavaScript | 0.000002 | @@ -55,32 +55,8 @@
%7B%0D%0A
-%09%09console.log('test');%0D%0A
%09%09va
|
22dc487a724f02bdff22d3d3a2b5ec42b6799258 | Rename stream_list_hash -> stream_set | zephyr/static/js/subs.js | zephyr/static/js/subs.js | var subs = (function () {
var exports = {};
var stream_list_hash = {};
function case_insensitive_subscription_index(stream_name) {
var i;
var name = stream_name.toLowerCase();
for (i = 1; i < stream_list.length; i++) {
if (name === stream_list[i].toLowerCase()) {
return i;
}
... | JavaScript | 0.000001 | @@ -50,25 +50,19 @@
stream_
-list_hash
+set
= %7B%7D;%0A%0A
@@ -462,33 +462,27 @@
stream_
-list_hash
+set
%5Bstream_name
@@ -672,33 +672,27 @@
lete stream_
-list_hash
+set
%5Bstream_name
@@ -2314,33 +2314,27 @@
urn (stream_
-list_hash
+set
%5Bstream_name
@@ -2414,25 +2414,19 @@
stream_
-list_hash
+set
... |
2bf7b287d4381ff37643113be82084a1425ab158 | update commands usage | cli/commands.js | cli/commands.js | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | JavaScript | 0.000001 | @@ -3658,16 +3658,23 @@
e names
+or URL
Type: St
@@ -3790,60 +3790,246 @@
l --
-interactive%0A jhipster jdl myfile1.jdl myfile2.jdl
+fork%0A jhipster jdl myfile1.jdl myfile2.jdl%0A jhipster jdl https://gist.githubusercontent.com/user/path/app.jdl%0A jhipster jdl jdl-name-from-jdl-samples-repo.jdl (just... |
5a10b5367e93662859b697a1c8e8e06534b49fa1 | Fix race in gulpfile.js | gulpfile.js | gulpfile.js | var babelify = require('babelify');
var browserify = require('browserify');
var gulp = require('gulp');
var concat = require('gulp-concat');
var headerfooter = require('gulp-headerfooter');
var replace = require('gulp-replace');
var streamify = require('gulp-streamify');
var strip = r... | JavaScript | 0.000034 | @@ -2144,41 +2144,20 @@
src/
-Dollchan_Extension_Tools.es6.user
+modules/Head
.js'
@@ -2284,22 +2284,27 @@
p.dest('
-./
src/
+modules
'))%0A%09%09%09.
@@ -2343,19 +2343,20 @@
sk('make
+:
es
-5
+6
', %5B'upd
@@ -2373,32 +2373,218 @@
%5D, function() %7B%0A
+%09return gulp.src(paths.modules)%0A%09%09.pipe(concat(... |
f2f315e17533f948d8c618108403e02f5c94fe48 | Fix onhashchange event. | src/main.js | src/main.js | require(['mustache', 'browsers', 'features'], function (Mustache, browsers, features) {
var featureTemplate = document.getElementById('feature').innerHTML,
resultCountTemplate = document.getElementById('count').innerHTML,
resultCountWrapper = document.getElementById('result-count')
resultsWrapper = ... | JavaScript | 0 | @@ -1765,16 +1765,547 @@
);%0A %7D%0A%0A
+ function onHashChange() %7B%0A var hash = decodeURIComponent(location.hash.replace('#', ''));%0A%0A if (!/%5Cs+/.test(hash) && hash.length !== 0) %7B%0A search.value = hash;%0A var results = find(hash.trim());%0A renderFeatures(results);%0A renderR... |
b7641fd39af0a4d35ee8077f0660cc96fd7ae687 | use correct name for controller | client/index.js | client/index.js | /*
* Copyright 2015 CareerBuilder, LLC
* 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
* Unless required by applicable law or agreed to... | JavaScript | 0.000021 | @@ -1894,17 +1894,16 @@
r: 'Part
-s
Ctrl',%0D%0A
|
0d93e43560bc4574ab0d11b5c65e46720c55d7d3 | Fix usage of notifier-client | lib/signup-api/lib/signup.js | lib/signup-api/lib/signup.js | /**
* Module dependencies.
*/
var log = require('debug')('democracyos:signup');
var utils = require('lib/utils');
var mongoose = require('mongoose');
var api = require('lib/db-api');
var mailer = require('lib/mailer').mandrillMailer;
var jade = require('jade');
var fs = require('fs');
var t = require('t-component');... | JavaScript | 0.000016 | @@ -4662,16 +4662,19 @@
ithData(
+ %7B
validate
@@ -4676,16 +4676,32 @@
idateUrl
+: validateUrl %7D
)%0A
@@ -4725,24 +4725,45 @@
rr, data) %7B%0A
+ if (err) %7B%0A
log(
@@ -4842,32 +4842,25 @@
n);%0A
-if (err)
+
return call
@@ -4869,16 +4869,26 @@
ck(err);
+%0A %7D
%0... |
284d554a67664e81c843f72d20e091522b8f9968 | fix (loader): fix the transition out when the application has loaded | client/index.js | client/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import Router from './router';
import { Config } from "./model/";
import './assets/css/reset.scss';
window.addEventListener("DOMContentLoaded", () => {
const className = 'ontouchstart' in window ? 'touch-yes' : 'touch-no';
document.body.classList.... | JavaScript | 0.000001 | @@ -380,15 +380,10 @@
(%22#n
-yan_loa
+-l
der%22
|
c26db41711193ef946aebb4b8e8ed4634d57fb6a | extend draggable view | app/components/DraggableView/index.js | app/components/DraggableView/index.js | import React, { Component, PropTypes } from 'react';
import { Animated, PanResponder } from 'react-native';
const SWIPE_THRESHOLD = 80;
export default class DraggableView extends Component {
constructor (props) {
super(props);
this.state = {
pan: new Animated.ValueXY(), // inits to zero
};
this._panResp... | JavaScript | 0 | @@ -411,16 +411,107 @@
erMove:
+(e, gestureState) =%3E %7B%0A%09%09%09%09if (this.props.onMove) this.props.onMove(e, gestureState);%0A%0A%09%09%09%09
Animated
@@ -522,24 +522,25 @@
nt(%5Bnull, %7B%0A
+%09
%09%09%09%09dx: prop
@@ -602,16 +602,17 @@
lue%0A%09%09%09%09
+%09
dy: prop
@@ -651,11 +651,35 @@
%0A%09%09... |
c71372eb8ff1b6ae9e118ea4c3c38926c21e781c | Remove Autoinitialization | src/main.js | src/main.js | /*! AtFramework | Andrey Tkachenko | MIT License | github.com/andreytkachenko/atframework */
var ATF = {
runindex: 0,
dependencies: {},
invoke: function (deps, func) {
return func.apply(null, this.resolve(deps));
},
resolve: function (deps) {
var dependencies = this.dependencies;
... | JavaScript | 0.000001 | @@ -5580,88 +5580,4 @@
%0A%7D);
-%0A%0AATF.config('jQuery', jQuery);%0A%0A$(document).ready(function () %7B%0A ATF.init();%0A%7D);
|
c8070118fee7d4d32c1725aed83a16c07904025a | Fix replacements in wrong files | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var bower = require('main-bower-files');
var browserify = require('browserify');
var concat = require('gulp-concat');
var minifyCss = require('gulp-minify-css');
var minifyHtml = require('gulp-minify-html');
var reactify = require('reactify');
var rev = require('gulp-rev');
va... | JavaScript | 0.000013 | @@ -1519,41 +1519,8 @@
y())
- // Minify any javascript sources
%0A
@@ -1593,34 +1593,8 @@
s())
- // Minify any CSS sources
%0A
@@ -1641,41 +1641,8 @@
v())
- // Rename the concatenated files
%0A
@@ -1711,41 +1711,54 @@
ace(
-)) // Substitute in new filenames
+%7B%0A replaceInExtensions: %5B'.html'%5... |
4a8a000fd42b597994a01d7c0843407080cbad29 | Resolve with no classes if classPathAdditions are not defined | src/services/ldap/strategies/general.js | src/services/ldap/strategies/general.js | const AbstractLDAPStrategy = require('./interface.js');
/**
* General LDAP functionality
* @implements {AbstractLDAPStrategy}
*/
class GeneralLDAPStrategy extends AbstractLDAPStrategy {
/**
* @public
* @see AbstractLDAPStrategy#getSchoolsQuery
* @returns {Array} Array of Objects containing ldapOu (l... | JavaScript | 0 | @@ -4862,16 +4862,46 @@
));%0A%09%09%7D%0A
+%09%09return Promise.resolve(%5B%5D);%0A
%09%7D%0A%7D%0A%0Amo
|
8e44f61c1d4b822415ea665e32d4feac00537a84 | fix semver logic | src/main.js | src/main.js | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000002 | @@ -1581,26 +1581,18 @@
is
-less than or equal
+compatible
to
@@ -1804,33 +1804,26 @@
_version
-LessThanOrEqualTo
+Compatible
= funct
@@ -1888,17 +1888,19 @@
1.major
-%3E
+!==
v2.majo
@@ -2047,110 +2047,8 @@
%7D%0A%0A
- if (v1.hasOwnProperty(%22patch%22) && v1.patch %3E v2.patch) %7B%0A ... |
9a1a8e9c899a13d8d6d120d33f73ecf08af6543e | Refactor internals - don't replace object, just copy properties over to maintain references across application | codebrag-ui/app/scripts/licence/licenceService.js | codebrag-ui/app/scripts/licence/licenceService.js | angular.module('codebrag.licence')
.service('licenceService', function($http, $q, $rootScope, events, $timeout, $modal) {
var warningDays = 14,
licenceData = {},
ready = $q.defer(),
checkTimer,
checkInterval = 6 * 3600 * 1000; // 6 hours (in millis)
... | JavaScript | 0 | @@ -924,35 +924,48 @@
-licenceData = response.d
+angular.copy(response.data, licenceD
ata
+)
;%0A
|
466b2f1dda0b7eb0bcd96ba3b6619c5c6243b73d | heroku task | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
mainBowerFiles = require('main-bower-files'),
minifyCss = require('gulp-minify-css'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
addsrc = require('gulp-add-src'),
sass = require('gulp-sass'),
exec = require('gulp-exec'),
ngAnnotate = req... | JavaScript | 0.99999 | @@ -4620,16 +4620,17 @@
%7B%0A%7D);%0A%0A
+/
/ heroku
|
39d78650c87af8c24819bff68cbd0e2bb3690dc2 | Fix gulp | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');
const autoprefixer = require('gulp-autoprefixer');
const plumber = require('gulp-plumber');
const manifest = require('./bolg/config/webpack.manifest.json');
const writefile = require('./bolg/helpers').writefi... | JavaScript | 0.000002 | @@ -225,20 +225,22 @@
uire('./
-bolg
+public
/config/
|
e2af94c5ef4340bc593686272b4dc6f88230e106 | refactor filter test | src/image/filter/__tests__/invert.js | src/image/filter/__tests__/invert.js | import { Image } from 'test/common';
describe('invert', function () {
it('should invert colors of 3 components of RGBA, not alpha', function () {
let image = new Image(1, 2, [230, 83, 120, 255, 100, 140, 13, 240]);
let inverted = [25, 172, 135, 255, 155, 115, 242, 240];
image.invert();
expect(image... | JavaScript | 0.00001 | @@ -216,37 +216,37 @@
240%5D);%0A%0A let
-inver
+expec
ted = %5B25, 172,
@@ -272,32 +272,49 @@
242, 240%5D;%0A%0A
+ const inverted =
image.invert();
@@ -322,34 +322,83 @@
expect(i
-mage
+nverted).toBe(image);%0A expect(Array.from(inverted
.data)
+)
.toEqual(inv
@@ -386,37 +386,37 @@
.data)).toE... |
b65d8187328ba11171ac7a125847d8056760bffb | remove gulp font task from build runsequence | gulpfile.js | gulpfile.js | // ##### Gulp Tasks #####
// ***** Inspired by https://css-tricks.com/gulp-for-beginners/ ***** //
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync');
var useref = require(... | JavaScript | 0.000004 | @@ -1476,17 +1476,8 @@
%5B
-'fonts',
'scs
|
41f656d4ee292f57e5a04283453fdcb207fd7a5b | remove quotes | gulpfile.js | gulpfile.js | /*!
* @author: Divio AG
* @copyright: http://www.divio.ch
*/
'use strict';
// #############################################################################
// #IMPORTS#
var autoprefixer = require('gulp-autoprefixer');
var gulp = require('gulp');
var gutil = require('gulp-util');
var karma = require('karma').ser... | JavaScript | 0.000001 | @@ -1719,33 +1719,32 @@
start(%7B%0A
-'
configFile': PRO
@@ -1729,33 +1729,32 @@
configFile
-'
: PROJECT_PATH.t
@@ -1786,17 +1786,16 @@
-'
singleRu
@@ -1795,17 +1795,16 @@
ingleRun
-'
: true%0A
@@ -2029,33 +2029,32 @@
r(%7B%0A
-'
configFile': PRO
@@ -2039,33 +2039,32 @@
... |
94197b4497d03d69ca0e80ee5291dd1f0ddc74c1 | Remove console.log call | src/main.js | src/main.js | define(function (require) {
"use strict";
// Dependencies
var CommandManager = brackets.getModule("command/CommandManager");
var Commands = brackets.getModule("command/Commands");
var Dialogs = require("Dialogs");
var EditorManager = brackets.getModule("editor/EditorManager");
var FileSyste... | JavaScript | 0.000003 | @@ -2029,52 +2029,8 @@
%7D%0A%0A
- console.log(options.fontSize);%0A%0A
|
2eb954b3269b08e56895a32b03000446e18ead41 | fix deploy bug | gulpfile.js | gulpfile.js | 'use strict';
const P = require('path');
const F = require('fs');
const D = require('del');
const merge = require('merge2');
const glob = require('glob');
const $ = require('gulp');
const $changed = require('gulp-changed');
const $concat = require('gulp-concat');
const $flatmap = require('gulp-flatmap');
const $if =... | JavaScript | 0.000001 | @@ -4835,16 +4835,20 @@
unction(
+done
) %7B%0A $.
@@ -5096,28 +5096,8 @@
ue,%0A
- update: true,%0A
@@ -5146,12 +5146,22 @@
%7D));%0A
+ done();%0A
%7D);%0A
|
b5812638c700b250ffa6ca0d8d070f14c6840a4e | Update scripts.js | js/scripts.js | js/scripts.js | var processing = false;
// JavaScript source code
$(document).ready(function () {
$('form').submit(function (evt) {
evt.preventDefault();
var searchTerm = $('#input').val();
// AJAX Starts
var flickrAPI = "https://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";
var animal = searchT... | JavaScript | 0.000002 | @@ -798,17 +798,16 @@
submit%0D%0A
-%09
%0D%0A// Fir
@@ -850,16 +850,59 @@
f height
+ ##########################################
%0D%0A $(
@@ -1253,17 +1253,110 @@
%7D);%0D%0A
-%09
+//############################################################################################
%0D%0A%09%0D%0A%7D);
|
ced340885289b0efb811451e24c83237179ec791 | Reformat gulpfile | gulpfile.js | gulpfile.js | /**
* Created by joan on 29/04/17.
*/
const gulp = require('gulp');
const gutil = require('gulp-util');
const pump = require('pump');
const commandLineArgs = require('command-line-args');
const clean = require('gulp-clean');
const sourcemaps = require('gulp-sourcemaps');... | JavaScript | 0.000001 | @@ -885,16 +885,23 @@
rrorify
+
= requir
|
51af0938e7b0f90cefb2e16d77e95ab38193ab0a | Fix typo in gulpfile.js | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var newfile = require('gulp-file');
var concat = require('gulp-concat');
gulp.task('scripts', function (done) {
jsSources = [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js',
'node_modules/gijgo/js/gijgo.min.js',
'node_m... | JavaScript | 0.997618 | @@ -505,13 +505,13 @@
ver/
-files
+FileS
aver
|
5a6fa8f54fac1903458fb3a61168f92bb6354978 | Use of redux store | src/main.js | src/main.js | // import React from 'react'
import ReactDOM from 'react-dom';
import expect from 'expect';
const MOUNT_NODE = document.getElementById('root');
// Rendering a React APP
// let render = () => {
// const App = require('./components/App').default;
//
// ReactDOM.render(
// <App />,
// MOUNT_NODE
// )
// };... | JavaScript | 0 | @@ -86,16 +86,55 @@
pect';%0A%0A
+import %7B createStore %7D from 'redux';%0A%0A%0A
const MO
@@ -995,16 +995,111 @@
%7D%0A%7D;%0A%0A
+const store = createStore(counter);%0A%0Aconsole.log(%22store initial state: %22, store.getState());%0A%0A%0A
// Rende
@@ -1118,16 +1118,34 @@
illa JS
+using Redux store
withou... |
c371696e0e5180fe708fdd3b3bbf2bbd6a3ab5b0 | remove the height attribute when copying styles. | src/main.js | src/main.js | function getLabelForXAxis(series, options) {
if (series.xaxis.options.axisLabel) {
return series.xaxis.options.axisLabel;
}
return options.datatable.xaxis.label;
}
function getLabelForYAxis(series, options, suffix) {
if (series.label !== undefined && series.label !== null) {
return seri... | JavaScript | 0 | @@ -3319,16 +3319,90 @@
style'))
+%0A // Remove the height attribute%0A .css(%22height%22, %22%22)
;%0A%0A
|
f35913b31534ad37a848b0121f48230da18d9a64 | Remove jquery.ns-autogrow import | src/main.js | src/main.js | import Vue from 'vue'
import VueFire from 'vuefire'
import App from './App'
import db from './firebaseDatabase'
import 'jquery-ui/jquery-ui.min.js'
import 'jquery.ns-autogrow'
import imagesLoaded from 'imagesloaded'
imagesLoaded.makeJQueryPlugin($)
import 'semantic-ui-css/semantic.js'
import 'semantic-ui-css/semant... | JavaScript | 0 | @@ -147,37 +147,8 @@
s'%0A%0A
-import 'jquery.ns-autogrow'%0A%0A
impo
|
94cae465b1f9b37b484f0fda8e06cb416446c9e6 | clear notification object when user signsout/logsin/destroy | app/directives/users/notifications.js | app/directives/users/notifications.js | define(['text!./notifications.html','app','lodash','utilities/km-user-notification-service',
'utilities/km-utilities','filters/moment','ionsound'], function(template,app,_) {
app.directive('userNotifications', function() {
return {
restrict: 'EAC',
replace: true,
... | JavaScript | 0 | @@ -5323,16 +5323,74 @@
n(evt)%7B%0A
+ $scope.notifications = undefined;%0A
@@ -5815,24 +5815,81 @@
(evt,user)%7B%0A
+ $scope.notifications = undefined;%0A
@@ -6117,32 +6117,94 @@
ewVla!=oldVal)%7B%0A
+ $scope.notificatio... |
ba81e21f5918bd8382d6bc70a933b7792b1b13cd | Improve Expect middleware | src/lib/command/middleware/Expect.js | src/lib/command/middleware/Expect.js | 'use babel';
'use strict';
import { User, GuildMember, TextChannel, Role } from 'discord.js';
export default function expect(argTypes)
{
return function(message, args)
{
const names = Object.keys(argTypes);
const types = names.map(a => argTypes[a]);
for (const [index, arg] of args.entries())
{
if (index... | JavaScript | 0.000002 | @@ -252,16 +252,150 @@
s%5Ba%5D);%0A%0A
+%09%09const prefix = message.guild.storage.getSetting('prefix');%0A%09%09const usage = %60Usage: %5C%60$%7Bthis.usage.replace('%3Cprefix%3E', prefix)%7D%5C%60%60;%0A%0A
%09%09for (c
@@ -411,19 +411,21 @@
ex,
-arg
+name
%5D of
-arg
+name
s.en
@@ -444,105 +444,230 @@
%0A%0... |
748bea0179a6d9c77cb41c4cd2ffd7720b2076e0 | Change template path to a const; Add proxy option and comments. | tasks/settings.js | tasks/settings.js | module.exports = {
"browsersync": {
"files": [
"./app/assets/_compiled/styles.css",
"./app/assets/_compiled/*.js",
"./app/templates/**/*.html"
],
"server": "app",
"notify": false,
"open": false
},
"templatePath": "/*.html" // Relative to the app directory
}
| JavaScript | 0 | @@ -1,8 +1,54 @@
+const templatePath = %22/templates/**/*.html%22;%0A%0A
module.e
@@ -184,25 +184,28 @@
%22./app
-/
+%22 +
template
s/**/*.h
@@ -200,31 +200,106 @@
late
-s/**/*.html%22%0A %5D,
+Path%0A %5D,%0A %22proxy%22: %22%22, // use this if it's NOT a static site, ex: app.trendyminds.dev
%0A
+... |
dc8dc673b63da146cbae148cf4ad8a4915a9544c | fix dashboard reload | Resources/home/home.js | Resources/home/home.js | Ti.include('../controls/control_table_pulldown.js');
var win = Titanium.UI.currentWindow;
//
// Create main Table View
//
var tvDashboard = Titanium.UI.createTableView({ style:Titanium.UI.iPhone.TableViewStyle.GROUPED });
tvDashboard.addEventListener('click', function(e)
{
if (e.rowData.subWindowURL) // just to exl... | JavaScript | 0.000001 | @@ -790,18 +790,19 @@
ard.
-data = %5B %5D
+setData(%5B%5D)
; %7D,
@@ -3107,29 +3107,8 @@
%5D;%0A%0A
-var tableData = %5B%5D;%0A%0A
func
@@ -3130,16 +3130,37 @@
ard()%0A%7B%0A
+%09var tableData = %5B%5D;%0A
%09for(var
|
2a70ae23fa2d65195eed0f99e224a3fd8e57aad8 | Add proptype update | src/widgets/StepperInputs/DateEditor.js | src/widgets/StepperInputs/DateEditor.js | /* eslint-disable react/jsx-wrap-multilines */
/* eslint-disable react/forbid-prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import { Pressable, TextInput } from 'react-native';
import moment from 'moment';
import DateTimePicker from '@react-native-community/datetimepicker';
import { Inc... | JavaScript | 0 | @@ -2059,16 +2059,36 @@
: null,%0A
+ date: new Date(),%0A
%7D;%0A%0ADate
@@ -2159,27 +2159,16 @@
s.object
-.isRequired
,%0A onPr
|
7d0f0432156daea7d0e5fb70fdf5df4625288492 | Update index.js | js/index.js | js/index.js | /*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.ht... | JavaScript | 0.000002 | @@ -867,13 +867,12 @@
177:
-30001
+8443
/kur
|
dc2c4e02f11038ec101f4bb621c6060431535291 | set user modes | lib/user.js | lib/user.js | //On user join channel
module.exports = class USER{
constructor(nick, chan, perm, joined) {
var _this = this;
this.perm = perm || '';
this.nick = nick;
this.chan = chan;
this.is_chan_owner = false;
this.is_discord_user = false;
this.log.info('> Weaponizing', nick, chan... | JavaScript | 0.000001 | @@ -2244,32 +2244,87 @@
r _this = this;%0A
+ _this.log.debug('SET USER MODES', _this.nick);%0A
if(this.
@@ -2437,16 +2437,78 @@
regex)%7B%0A
+ _this.log.debug(chan_owner_regex, _this.who);%0A
|
eb86fe40451f8e7406929975b5ef8df7e6d02386 | Change the JSON representation of marks | src/mark.js | src/mark.js | const {compareDeep} = require("./comparedeep")
// ::- A mark is a piece of information that can be attached to a node,
// such as it being emphasized, in code font, or a link. It has a type
// and optionally a set of attributes that provide further information
// (such as the target of the link). Marks are created thr... | JavaScript | 0.000078 | @@ -2250,17 +2250,20 @@
obj = %7B
-_
+type
: this.t
@@ -2308,18 +2308,26 @@
trs)
+ %7B%0A
obj
-%5B
+.
attr
-%5D
+s
= t
@@ -2339,14 +2339,26 @@
ttrs
-%5Battr%5D
+%0A break%0A %7D
%0A
@@ -2448,18 +2448,14 @@
-let type =
+return
sch
@@ -2473,214 +2473,32 @@
son.
-_%5D%0A let attrs = ... |
d0d5b0c18a795d822f4faae0b2c6cf1c41918ff8 | Update lib/xrds.js | lib/xrds.js | lib/xrds.js | /* A simple XRDS and Yadis parser written for OpenID for node.js
*
* http://ox.no/software/node-openid
* http://github.com/havard/node-openid
*
* Copyright (C) 2010 by Håvard Stranden
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation... | JavaScript | 0 | @@ -1434,16 +1434,20 @@
'');%0A
+var
services
|
065a2a39ae5106ba986a5cbb6de468fbd99ac03c | Enable tabs again. | src/zeit/find/browser/resources/find.js | src/zeit/find/browser/resources/find.js | zeit.find = {};
zeit.find.Tabs = gocept.Class.extend({
// Knows about all tabs
construct: function() {
log("initializing tabs");
var self = this;
self.container = $('cp-forms');
var div = self.container.appendChild(
DIV({'class': 'context-views'}))
self.tabs... | JavaScript | 0 | @@ -5527,18 +5527,16 @@
ion() %7B%0A
-//
@@ -5574,18 +5574,16 @@
Tabs();%0A
-//
@@ -5641,26 +5641,24 @@
'Suche'));%0A
-//
zeit
@@ -5718,18 +5718,17 @@
ten'));%0A
-//
+
z
|
5bad461ec5ca28a5355f0300113593c4c98bc397 | Fix slider value in screenshots | src/mmw/js/src/main_water_balance.js | src/mmw/js/src/main_water_balance.js | "use strict";
var $ = require('jquery'),
_ = require('underscore'),
R = require('retina.js'),
shutterbug = require('../shim/shutterbug'),
modificationConfig = require('./core/modificationConfig.json'),
wbm = require('./water_balance/models');
// Global jQuery needed for Bootstrap plugins.
window.j... | JavaScript | 0 | @@ -3487,24 +3487,137 @@
%0A %7D);
+%0A%0A // Set slider value attribute for screenshots%0A $precipSlider.attr('value', $precipSlider.val());
%0A %7D;%0A%0A
|
eec5574c4c9eb0b2a337c92d6e0fdec305ccb5a5 | handle case where category is not found | static/javascript/directives/cfyMenu.js | static/javascript/directives/cfyMenu.js | angular.module('getcloudify').directive('cfyMenu', function( $http, $log, CfyVersion, $rootScope, $location ){
return {
restrict: 'A',
scope:{},
templateUrl: '/views/directives/menu.html',
link: function( $scope/*, element*/ ){
var articles = null;
$scope.f... | JavaScript | 0.000005 | @@ -3268,32 +3268,39 @@
+if ( !!
categories%5Bcat%5D
@@ -3297,47 +3297,310 @@
ries
+Map
%5Bcat%5D
-= %7B links: %5B%5D, displayed: true %7D;
+) %7B%0A categories%5Bcat%5D = %7Blinks: %5B%5D, displayed: true%7D;%0A %7Delse%7B%0A ... |
9896bb1e8085a28d704b0d3cf8c148f5e5c1d683 | use iframe to send request to webview | TGJSBridge/TGJSBridge/TGJSBridge.js | TGJSBridge/TGJSBridge/TGJSBridge.js | //
// TGJSBridge.js
// TGJSBridge
//
// Created by Chao Shen on 12-3-1.
// Copyright (c) 2012年 Hangzhou Jiuyan Technology Co., Ltd. All rights reserved.
//
(function(context){
function JSBridge()
{
this.callbackDict = {};
this.notificationIdCount = 0;
this.notificationDict = {};
... | JavaScript | 0 | @@ -174,17 +174,420 @@
ntext)%7B%0A
+ function bridgeCall(src,callback) %7B%0A%09%09iframe = document.createElement(%22iframe%22);%0A%09%09iframe.style.display = %22none%22;%0A%09%09iframe.src = src;%0A%09%09var cleanFn = function(state)%7B%0A%09%09 console.log(state) %0A%09%09 try %7B%0A%09%09 iframe.p... |
f1ca2c7434477dd771b47ae8760825beee7929a5 | use named function | src/modules/Dropdown/DropdownItem.js | src/modules/Dropdown/DropdownItem.js | import React, { PropTypes } from 'react'
import cx from 'classnames'
import Icon from '../../elements/Icon/Icon'
import { someChildType } from '../../utils/childrenUtils'
import { useKeyOnly } from '../../utils/propUtils'
import META from '../../utils/Meta'
const DropdownItem = (props) => {
const {
active,
... | JavaScript | 0.000009 | @@ -253,21 +253,24 @@
/Meta'%0A%0A
-const
+function
Dropdow
@@ -278,21 +278,15 @@
Item
- =
(props)
- =%3E
%7B%0A
|
dcf59b6e15aea801eba3e20aa4c0f3d85024636d | add comments | src/nake.js | src/nake.js | #!/usr/bin/jjs -scripting
var global = this;
(function() {
var File = Java.type("java.io.File");
var fatalError = function (message) {
print(message);
exit(1);
};
global.path = $ENV['PWD'];
var findClosestNakefile = function (path) {
var nakefile = new File(path + "/Nakefile");
if (nakefi... | JavaScript | 0 | @@ -24,27 +24,105 @@
ng%0A%0A
-var global = this;%0A
+%0A// tasks will be run in this context%0Avar global = this;%0A%0A%0A// local scope for nake internal stuff
%0A(fu
@@ -244,32 +244,33 @@
exit(1);%0A %7D;%0A%0A
+%0A
global.path =
@@ -283,16 +283,65 @@
PWD'%5D;%0A%0A
+ // find nearest Nakefile for current ... |
02a055819bd7362e378cd5d9d306e06fc4e8cc0f | Clean up | src/nano.js | src/nano.js | (function (root) {
'use strict';
function nano(selector) {
return new dom(selector);
}
/**
* Selector method
* @returns: A collection of nodes
*/
var dom = function (selector) {
if (!selector) {
return this;
}
this.length = 0;
thi... | JavaScript | 0.000002 | @@ -138,47 +138,8 @@
hod%0A
- * @returns: A collection of nodes%0A
@@ -3914,19 +3914,16 @@
%0A
- //
/**%0A
@@ -3926,19 +3926,16 @@
%0A
- //
* Togg
@@ -3966,11 +3966,8 @@
- //
*/
|
258a4eadcdc01e67effc0bfd9ad7676087ea4dd9 | Update _TabPageApi.js | static/sqleditor/widgets/_TabPageApi.js | static/sqleditor/widgets/_TabPageApi.js | define([
'dojo/_base/declare',
'sqleditor/widgets/TabPage'
], function (declare, TabPage){
return declare(null, {
buttonSaveClick: function () {
},
comboboxOnChange: function () {
},
buttonRunClick: function () {
},
buttonNewClick: function () {
... | JavaScript | 0 | @@ -176,60 +176,8 @@
%7D,%0A%0A
- comboboxOnChange: function () %7B%0A %7D,%0A%0A
@@ -269,16 +269,139 @@
%7D
+,%0A %0A buttonLogoutClick: function () %7B%0A %7D,%0A %0A comboboxSystemsOnChange: function () %7B%0A %7D,
%0A%0A %7D)
@@ -405,8 +405,9 @@
... |
3e6dbd5d4740da2bfa77dd34a294406661686220 | fix name | src/nest.js | src/nest.js | import compose from './compose'
const curried = (key, convert) => {
return (payloadCreator) => (...input) => {
return convert(key, payloadCreator, ...input)
}
}
export const nest = (convert) => {
return (...keys) => {
const nestFuncs = keys.map(
(key) => curried(key, convert)
)
return comp... | JavaScript | 0.999457 | @@ -32,23 +32,23 @@
%0A%0Aconst
-curried
+resolve
= (key,
@@ -274,15 +274,15 @@
=%3E
-curried
+resolve
(key
|
f6379fdf40ff75e93bd672218a7171697e5e95ec | allow options in datepicker via df.options | frappe/public/js/frappe/form/controls/date.js | frappe/public/js/frappe/form/controls/date.js | frappe.ui.form.ControlDate = class ControlDate extends frappe.ui.form.ControlData {
static trigger_change_on_input_event = false
make_input() {
super.make_input();
this.make_picker();
}
make_picker() {
this.set_date_options();
this.set_datepicker();
this.set_t_for_today();
}
set_formatted_input(value) {... | JavaScript | 0.000001 | @@ -1927,24 +1927,55 @@
tion();%0A%09%09%09%7D
+,%0A%09%09%09...(this.get_df_options())
%0A%09%09%7D;%0A%09%7D%0A%09se
@@ -4205,11 +4205,376 @@
lue;%0A%09%7D%0A
+%09get_df_options() %7B%0A%09%09let options = %7B%7D;%0A%09%09let df_options = this.df.options %7C%7C '';%0A%09%09if (typeof df_options === 'string') %7B%0... |
1c6a339d6d925eea6ec6a3242d1cea0c7ba4bbbf | Fix bug in date parsing function | step-capstone/src/scripts/Suggestion.js | step-capstone/src/scripts/Suggestion.js | import queryPlaces from './PlacesQuery';
import categories from './Categories';
const getDateString = (dateObject) => {
return dateObject.getFullYear() + "-" + dateObject.getMonth() + "-" + dateObject.getDate();
}
const contains = (startTime, endTime, timePoint) => {
// return whether timeRange from startTim... | JavaScript | 0.00001 | @@ -80,24 +80,31 @@
%0A%0Aconst getD
+isplayD
ateString =
@@ -109,19 +109,19 @@
= (d
-ateObject)
+isplayDate)
=%3E
@@ -130,101 +130,307 @@
-return dateObject.getFullYear() + %22-
+let year = displayDate.getFullYear().toString();%0A let month = (displayDate.getMonth() %3C10)? %220
%22 + d
-ateObject.ge... |
27492fe1a5e27ad5560805baa6f33b555300955d | Remove RHOC as accessable token | frontend/packages/dapple/package-post-init.js | frontend/packages/dapple/package-post-init.js | const config = require('./config.json');
const ENVs = {
'test': 'kovan',
'main': 'live',
'private': 'default',
};
Dapple.init = function init(env) {
var predefinedEnv = ENVs[env];
if (!predefinedEnv) {
predefinedEnv = env;
}
Dapple.env = predefinedEnv;
Dapple['maker-otc']['environments'][Dapple.e... | JavaScript | 0 | @@ -2483,32 +2483,24 @@
PLU', 'MLN',
- 'RHOC',
'TIME', 'GU
@@ -2638,16 +2638,8 @@
LN',
- 'RHOC',
'TI
|
053fe39a00914c8b18116873f7c6563b19062300 | Fix exclude filter (#40) | src/ping.js | src/ping.js | var async = require('asyncawait/async');
var await = require('asyncawait/await');
var orm = require('../lib/orm');
var parser = require('../lib/parser');
var pings = {
check: async (function(vendor) {
var maxTimeDiff, stores;
if(typeof vendor !== 'undefined') {
maxTimeDiff = 1500;
stores = await ... | JavaScript | 0 | @@ -340,16 +340,29 @@
lude', %5B
+1, 5, 6, 11,
901, 902
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.