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 |
|---|---|---|---|---|---|---|---|
4b7278c2f06a5c977f4121af0f88327b69233fa6 | Remove shutdown function as it is not needed now as FileInputHandler is removed. | game/states/editor.js | game/states/editor.js | 'use strict';
var GameDataCreator = require('../gamedatacreator');
var PointView = require('../prefabs/pointview');
var MapView = require('../prefabs/mapview');
var Constants = require('../constants');
//State for setting GamePoints and MajorPoints on the game map.
function Editor() {}
Editor.prototype = {
create: f... | JavaScript | 0 | @@ -629,74 +629,8 @@
%7D,%0A
- shutdown: function() %7B%0A this.fileInputHandler.remove();%0A %7D,%0A
ad
|
e25ae990be0aa3650fd0a3282334c7a6cbbe3a37 | use new-date, to fix incorrect date in firefox | lib/facade.js | lib/facade.js |
var clone = require('./utils').clone;
var isEnabled = require('./is-enabled');
var objCase = require('obj-case');
var traverse = require('isodate-traverse');
/**
* Expose `Facade`.
*/
module.exports = Facade;
/**
* Initialize a new `Facade` with an `obj` of arguments.
*
* @param {Object} obj
*/
function Faca... | JavaScript | 0.000006 | @@ -151,16 +151,51 @@
verse');
+%0Avar newDate = require('new-date');
%0A%0A/**%0A *
@@ -449,25 +449,24 @@
estamp = new
-
Date(obj.tim
|
00b916c49f1f4b1704d087f0ad3bf8c689aae1d1 | Update install script to check man path using the new mechanism | scripts/install-docs.js | scripts/install-docs.js |
// a helper install script to install the documentation along with the program
// this runs whenever npm is activated or deactivated, so that the docs always
// reflect the current command.
var event = process.env.npm_lifecycle_event
, exec = require("../lib/utils/exec")
, log = require("../lib/utils/log")
, fs... | JavaScript | 0 | @@ -708,16 +708,28 @@
th%22, %5B%5D,
+ null, true,
functio
|
f1009212cfb269ab51c9da235195e92023aa7916 | Update script for polling | www/assets/javascript/script.js | www/assets/javascript/script.js | Walrus.init({
ajaxNavigation: true,
lazyLoad: true
});
$('#post').click(function () {
$('#post-pop').toggleClass('expand');
});
$('#post-pop form').submit(function (e) {
$.ajax({
type: 'POST',
url: $(this).attr('action'),
data: $(this).serialize(),
success... | JavaScript | 0 | @@ -543,61 +543,8 @@
%7D);%0D
-%0A%0D%0A e.preventDefault();%0D%0A e.stopPropagation();%0D
%0A
@@ -625,25 +625,173 @@
-console.log(data)
+var tpl = '', item;%0D%0A for (item in data) %7B%0D%0A tpl += Walrus.compile(document.getElementById('templating-msg').innerHTML, data%5Bitem%5D);%0D%0A ... |
899c323a6db0cde8f464bcf4aee0acf147e6b929 | Add fallback mechanism in case there's no valid input field | public/ajax.sjs | public/ajax.sjs | const Cc = Components.classes;
const CC = Components.Constructor;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
const { SystemAppProxy } = Cu.import("resource://gre/modules/SystemAppProxy.jsm");
cons... | JavaScript | 0.000029 | @@ -3392,80 +3392,40 @@
od;%0A
-%0A
-mozIM.setActive(true);%0A mozIM.addEventListener('inputcontextchange',
+let icChangeTimeout = null;%0A%0A
fun
@@ -3432,23 +3432,23 @@
ction ic
-c
+C
hange
-h
+H
andler()
@@ -3508,23 +3508,130 @@
, ic
-c
+C
hange
-handler);
+Handler);%0A if (icChangeTimeout) %7B%0A ... |
b26650143136122bdf360587da1e5758cce765aa | Add getDataFromStorage() function to retrieve data from storage. | public/index.js | public/index.js | (function ($) {
"use strict";
addAnswersToSessionStorage();
$('.carousel').carousel({
indicators: true,
shift: 100
});
[
"send-email-button"
].forEach(function(button){
var node = document.getElementsByClassName(button)[0];
if (node){
node.addEventListener('click', function(){ sen... | JavaScript | 0 | @@ -2049,23 +2049,8 @@
%7D);%0A
- %0A %7D);%0A
%0A
@@ -4263,32 +4263,193 @@
lAddress);%0A %7D%0A%0A
+ function getDataFromStorage()%7B%0A var data = %7B%7D;%0A for (var key in sessionStorage)%7B%0A data%5Bkey%5D = sessionStorage%5Bkey%5D%0A %7D%0A console.log(data);%0A %7D%0A%0A
fun... |
b5d30ae1311a1064953b24c3e57b7d5f2b6882df | Test improvements | test/indexes.js | test/indexes.js | var _ = require('lodash');
var expect = require('chai').expect;
var monoxide = require('..');
var testSetup = require('./setup');
describe('monoxide indexes', function() {
before(testSetup.init);
after(testSetup.teardown);
var userIndexes;
before('get user indexes', function(finish) {
monoxide.models.users.getI... | JavaScript | 0.000001 | @@ -635,33 +635,33 @@
.to.have.length(
-1
+2
);%0A%09%09%09expect(res
@@ -1048,17 +1048,17 @@
.length(
-1
+2
);%0A%09%09%09ex
@@ -1121,32 +1121,381 @@
();%0A%09%09%7D);%0A%09%7D);%0A%0A
+%09it('should create multi-field indexes', function(finish) %7B%0A%09%09this.timeout(10 * 1000);%0A%0A%09%09monoxide.models.widg... |
d106b26d51dda4362f7e072e3982bd84069b9e4b | Fix distancemodel parameter case | scripts/remoteplayer.js | scripts/remoteplayer.js | elation.require(['janusweb.janusghost', 'engine.things.maskgenerator', 'engine.things.sound', 'janusweb.external.JanusVOIP'], function() {
elation.component.add('engine.things.remoteplayer', function() {
this.postinit = function() {
elation.engine.things.remoteplayer.extendclass.postinit.call(this);
this.defi... | JavaScript | 0.000001 | @@ -3651,17 +3651,17 @@
distance
-M
+m
odel: 'e
|
3416f1b77f623e0823f695750545874377d8d5a3 | did this | mandrill.js | mandrill.js | var mandrill= (function(){
// Currently accepted verification types and their associated regex + error
var types = { "email": {
"error": "Please enter valid email",
"regex":/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/
... | JavaScript | 0.96984 | @@ -3752,62 +3752,8 @@
m();
-%0A // TODO: replace with a variable loop
%0A%0A
|
e37ed1f88f1959b85538ccdd675d3d28bb24062f | Undo cancel function name change. | src/angular-external-link-interceptor.js | src/angular-external-link-interceptor.js | (function (angular) {
'use strict';
var module = angular.module('externalLinkInterceptor', [
'ngRoute',
'ui.bootstrap.modal'
]);
module.config([
'$routeProvider',
function ($routeProvider) {
$routeProvider
.when('/external-link/', {
... | JavaScript | 0 | @@ -800,34 +800,8 @@
rue%22
- ng-click=%22dismissModal()%22
%3ECon
@@ -850,27 +850,21 @@
-click=%22
-dismissModa
+cance
l()%22%3ECan
@@ -3677,19 +3677,13 @@
ope.
-dismissModa
+cance
l =
|
729ee3f83fb1746cd9de18554856f39cb96c0ea4 | Optimise layer toggling, don't recalculate site pins if not necessary | www/js/adapters/SitesAdapter.js | www/js/adapters/SitesAdapter.js | define(['views/SitesView'],
function (SitesView) {
/**
* @param {number} price
* @returns {string}
*/
function formatPrice(price) {
return "£"+price.toFixed(2);
}
/**
* @param {string} url
* @param {string} text
* @returns {string}
*/
function createLink(... | JavaScript | 0 | @@ -1978,32 +1978,78 @@
grouper)%0A %7B%0A
+ var suppressViewGroupUpdate = false;%0A%0A
view.vis
@@ -2251,32 +2251,76 @@
%7D);%0A
+ suppressViewGroupUpdate = true;%0A
site
@@ -2348,24 +2348,69 @@
ps(groups);%0A
+ suppressViewGroupUpdate = false;%0A
... |
c8c4bef2cfe2ae5b0899992e6a43804554eebd0d | Fix bug in AutoFlattrer | scripts/AutoFlattrer.js | scripts/AutoFlattrer.js | var AutoFlattrer = {
thingForCurrentTrack: null,
init: function() {
EventSystem.addEventListener('video_started_playing_successfully', function(data) {
AutoFlattrer.thingForCurrentTrack = false;
});
EventSystem.addEventListener('flattr_thing_for_track_found', function(data)... | JavaScript | 0 | @@ -485,31 +485,73 @@
if (
-has_flattr_access_token
+UserManager.currentUser && UserManager.currentUser.flattrUserName
&&
|
d0f84cd599f5e482967129a69827ec7e2c2d2a78 | Fix bug in playlist view | scripts/PlaylistView.js | scripts/PlaylistView.js | var PlaylistView = {
updatePlaylistBar: function(playlist) {
var i = 0,
$playlistBar = $('#right > .playlists .info');
$playlistBar.data('model', playlist);
$playlistBar.find('.title').text(playlist.title);
$playlistBar.find('.owner').hide();
$playlistBar.find('.... | JavaScript | 0 | @@ -1104,32 +1104,45 @@
if (
+logged_in &&
Number(playlist.
|
810ea1f3eb8854e7931092e20fd943b14ab9e061 | include *.svelte files into package | scripts/build-svelte.js | scripts/build-svelte.js | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint no-console: "off" */
const exec = require('exec-sh');
const fs = require('fs');
const svelte = require('svelte/compiler');
const bannerSvelte = require('./banner-svelte.js');
async function buildSvelte(format, cb) {
const ... | JavaScript | 0 | @@ -1809,177 +1809,8 @@
);%0A%0A
- try %7B%0A fs.unlinkSync(%60./$%7BoutputDir%7D/svelte/swiper-slide.svelte%60);%0A fs.unlinkSync(%60./$%7BoutputDir%7D/svelte/swiper.svelte%60);%0A %7D catch (err) %7B%0A // no files%0A %7D%0A%0A
if
|
c949f5ba20058d6ad5646923138ca3f06c40a514 | Use `babel` plugin replace `includes` (#6659) | scripts/build/config.js | scripts/build/config.js | "use strict";
const path = require("path");
const PROJECT_ROOT = path.resolve(__dirname, "../..");
/**
* @typedef {Object} Bundle
* @property {string} input - input of the bundle
* @property {string?} output - path of the output file in the `dist/` folder
* @property {string?} name - name for the UMD bundle (for ... | JavaScript | 0 | @@ -1627,160 +1627,106 @@
-replace: %7B
+babelPlugins: %5B
%0A
-// node v4 compatibility for @typescript-eslint/typescript-estree%0A %22(!unique.includes(raw))%22: %22(unique.indexOf(raw) === -1)%22
+require.resolve(%22./babel-plugins/replace-array-includes-with-indexof%22)
%0A
-%7D
+%5D
,%0A
|
f3e43f94f3ff463746fb104348f777623177f38a | update trello oauth | scripts/trello-oauth.js | scripts/trello-oauth.js | module.exports = function(robot) {
robot.respond(/trello/i, function(res_r) {
var express = require('express');
var http = require('http')
var OAuth = require('oauth').OAuth
var url = require('url')
/*
/ Express Server Setup
*/
var app = express();
app.use(express... | JavaScript | 0.000001 | @@ -362,20 +362,55 @@
.listen(
+'https://andreasbot.herokuapp.com:
3000
+'
, functi
@@ -543,71 +543,8 @@
%7D);
-%0A var port = process.env.PORT %7C%7C 3000; %0A app.listen(port)
%0A%0A
|
19a4855ec5c8fff32801e5a80cb717b498462b51 | Update house_points.js | scripts/house_points.js | scripts/house_points.js | const helpers = require(`${__dirname}/../helpers/`);
const MongoClient = require('mongodb').MongoClient;
const mongourl = process.env.MONGODB_URI;
function points(event) {
let msg = '';
if (event.pm === true) {
msg = 'S-sorry, you can\'t do that in a PM with me. ;w;';
event.bot.sendMessage({
to: eve... | JavaScript | 0.000001 | @@ -2484,17 +2484,30 @@
= 'Use %60
-!
+@WolfBot#8759
house se
|
4ab24a5beb20dc77ab6954b99f2e4d0e2e4f9764 | Update MultiModuleFactory.js | lib/MultiModuleFactory.js | lib/MultiModuleFactory.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const Tapable = require("tapable");
const MultiModule = require("./MultiModule");
module.exports = class MultiModuleFactory extends Tapable {
constructor() {
super();
}
create(data, callback) {
c... | JavaScript | 0 | @@ -255,10 +255,9 @@
e %7B%0A
-
+%09
cons
|
993f14f446b5d85f18162a4d55b1fdca6cc653cc | update to wpcom.reqt method | lib/follow.js | lib/follow.js |
/**
* Module dependencies.
*/
var request = require('./util/request');
var debug = require('debug')('wpcom:follow');
/**
* Follow
*
* @param {String} site_id - site id
* @param {WPCOM} wpcom
* @api public
*/
function Follow(site_id, wpcom) {
if (!site_id) {
throw new Error('`site id` is not correctly... | JavaScript | 0.000002 | @@ -669,36 +669,24 @@
';%0A return
-request.put(
this.wpcom,
@@ -679,32 +679,33 @@
n this.wpcom
-, null,
+.req.put(
path, query,
@@ -952,20 +952,8 @@
urn
-request.put(
this
@@ -954,32 +954,33 @@
n this.wpcom
-, null,
+.req.del(
path, query,
@@ -1061,24 +1061,25 @@
nt blog site
+s
%0A *%0A * @para
@@ -12... |
dcb04711124fba0b8b29dd018b8065268bfc541c | fix gamebreaking typos | classes/Player.js | classes/Player.js | Weapon = require("./Weapon")
var settings = require("../settings");
// Class for the player actor in the game
var Player = function (game, connection, name, color) {
// Attributes I might want to tweak
var maxhp = settings.player.maxHP;
var speedcap = settings.player.speedCap;
var hacceleration = setti... | JavaScript | 0.999083 | @@ -3208,33 +3208,32 @@
reak;%0A %7D%0A
-%0A
connecti
@@ -3243,16 +3243,27 @@
profile.
+statistics.
multiKil
@@ -3310,32 +3310,43 @@
nection.profile.
+statistics.
maxKillStreak %3C
@@ -6017,17 +6017,17 @@
his.last
-H
+h
itby.wea
|
e42c40d889f4bb152337898bb309e3ff78a9d068 | modify format | lib/format.js | lib/format.js | /**
* 十六进制以空格分开。
*
* @example
*
* 120e320a -> 12 0e 32 0a
*
* @param hexString
* @returns {string|undefined}
*/
exports.pretty = function (hexString) {
if (!hexString || hexString.length === 0) {
return;
}
let output = '';
for (let i = 0; i < hexString.length; i++) {
output +=... | JavaScript | 0.000003 | @@ -221,35 +221,35 @@
urn;%0A %7D%0A%0A
-let
+var
output = '';%0A%0A
@@ -248,35 +248,35 @@
= '';%0A%0A for (
-let
+var
i = 0; i %3C hexS
@@ -565,19 +565,19 @@
%7D%0A%0A
-let
+var
output
@@ -597,11 +597,11 @@
or (
-let
+var
i =
|
426968466ecded7cf39e4e1460cc46af893e0e09 | add route change | client/app/app.js | client/app/app.js | angular.module('zibzoo', [
'zibzoo.vendorsList',
'ui.router',
'mm.foundation',
'zibzoo.navbar.directive',
'zibzoo.vendors.directive',
'zibzoo.landing',
'zibzoo.vendorsList',
'zibzoo.vendor'
])
.config(function ($stateProvider, $urlRouterProvider, $httpProvider) {
$stateProvider
.state('landing', ... | JavaScript | 0 | @@ -198,16 +198,44 @@
.vendor'
+,%0A 'zibzoo.merchantProfile'
%0A%5D)%0A%0A.co
@@ -1044,17 +1044,16 @@
rchantId
-/
',%0A
|
7b68e8662128fb0ebd2c2cd990cb152b077c234e | remove old console log | client/app/app.js | client/app/app.js | angular.module('zeus', [
'zeus.landing',
'zeus.results',
'zeus.details',
'zeus.services',
'zeus.user',
'zeus.account',
'zeus.reviews',
'zeus.editReview',
'auth0.lock',
'angular-jwt',
'ui.router'
])
.controller('zeusController', function($scope, $location, authService, $http, User) {
$scope.searc... | JavaScript | 0.000002 | @@ -702,34 +702,8 @@
) %7B%0A
- console.log(profile);%0A
|
bffd724ed5fd72bc4e39faf4cd50fef117f1917c | Allow debug logger to output at lowest level | lib/logger.js | lib/logger.js | var
winston = require('winston'),
mongoLog = require('winston-mongodb').MongoDB,
config = require('../config'),
muri = require('muri'),
parsed = muri(config.db.URL),
_ = require('underscore'),
logger;
/**
* Config to connect to DB for the debug logger
*/
var debugDBConfig = {
level: ... | JavaScript | 0.000002 | @@ -923,21 +923,20 @@
level: '
-error
+info
', color
@@ -944,14 +944,12 @@
ze:
-'
true
-'
%7D),
|
d5230d343f8bfa3c33d0e0e05d34d4dbbe509b11 | remove sample logs | lib/logger.js | lib/logger.js | var chalk = require('chalk');
var util = require('util');
var _ = require('lodash');
var levels = {
'debug': 1,
'verbose': 2,
'info': 3,
'success': 4,
'warn': 4,
'error': 5,
};
var colors = {
'debug': chalk.gray,
'verbose': chalk.white,
'info': chalk.cyan,
'success': chalk.green,
'warn': chalk.w... | JavaScript | 0 | @@ -533,135 +533,8 @@
el;%0A
- this.warn('sample', 'sample message');%0A this.success('sample', 'success message');%0A this.error('sample', 'error message');%0A
%7D%0A%0AL
|
55cdc64f7c08c33bddf414fd414b58bef6650242 | Update mapKey to allow setting title on construct | lib/mapKey.js | lib/mapKey.js | 'use strict';
var fs = require('fs')
var template = fs.readFileSync(__dirname + '/../templates/key.html', 'utf8')
var handlebars = require('handlebars')
var keyTemplate = handlebars.compile(template)
var assert = require('assert')
var domWrapper = require('../wrappers/dom')
var EventEmitter = ... | JavaScript | 0 | @@ -871,16 +871,32 @@
title_ =
+ config.title %7C%7C
''%0A
|
88355aa909e6eb0e0e5b42dc3651a85989fe1613 | change from localhost to mongolab | server/config/config.js | server/config/config.js | (function() {
'use strict';
module.exports = {
// 'database' : 'mongodb://root:Kenyan2030@ds011158.mlab.com:11158/dmsapp',
'database': '127.0.0.1:27017',
'port': process.env.PORT || 3000,
'secretKey': '#Kenya2030'
};
})();
| JavaScript | 0.000002 | @@ -51,11 +51,8 @@
%0A
- //
'da
@@ -120,24 +120,27 @@
dmsapp',%0A
+ //
'database':
|
98014d02692c45f10f098eb9eaeb2d484bebceb2 | tweak to native Client#query overload | lib/native.js | lib/native.js | //require the c++ bindings & export to javascript
var sys = require('sys');
var EventEmitter = require('events').EventEmitter;
var binding = require(__dirname + '/../build/default/binding');
var utils = require(__dirname + "/utils");
var types = require(__dirname + "/types");
var Connection = binding.Connection;
var p... | JavaScript | 0 | @@ -3044,37 +3044,14 @@
if(
-typeof values !== 'undefined'
+values
) %7B%0A
|
dba4fbf003a0b5fa1734405985a1ae48a949ac35 | change config js and remove env | server/configuration.js | server/configuration.js | const path = require("path");
const app_root = path.dirname(__dirname); // Parent of the directory where this file is
module.exports = {
/** Port on which the application will listen */
PORT: parseInt(process.env["PORT"]) || 8080,
/** Host on which the application will listen (defaults to undefined,
hen... | JavaScript | 0.000001 | @@ -2810,84 +2810,8 @@
%22%22),
-%0A CHECK_BOARDNAME_IN_JWT: (process.env%5B%22CHECK_BOARDNAME_IN_JWT%22%5D %7C%7C false),
%0A%0A%7D;
|
c89401e12d79786cfbceab560a14b4f4baa5bee0 | fix var name | server/forum/section.js | server/forum/section.js | "use strict";
/*global nodeca, _*/
var NLib = require('nlib');
var Async = NLib.Vendor.Async;
var Section = nodeca.models.forum.Section;
var Thread = nodeca.models.forum.Thread;
var forum_breadcrumbs = require('../../lib/breadcrumbs.js').forum;
var thread_fields = {
'_id': 1,
'id': 1,
'title': 1,
'prefix':... | JavaScript | 0.999765 | @@ -2619,22 +2619,21 @@
id:
-params
+forum
.id,%0A
|
99725d2401dece06df35cdcc63d8e8cbc9d74879 | Use Object.create instead of __proto__ | lib/object.js | lib/object.js | 'use strict';
var d = require('es5-ext/lib/Object/descriptor')
, forEach = require('es5-ext/lib/Object/for-each')
, isObject = require('es5-ext/lib/Object/is-object')
, isString = require('es5-ext/lib/String/is-string')
, uuid = require('time-uuid')
, base = require('./base')
, definePrope... | JavaScript | 0.000001 | @@ -298,16 +298,83 @@
base')%0A%0A
+ , create = Object.create, defineProperty = Object.defineProperty%0A
, defi
@@ -1759,35 +1759,106 @@
type
-.__proto__ = this.prototype
+ = create(this.prototype);%0A%09%09%09defineProperty(constructor.prototype, 'constructor', d(constructor))
;%0A%09%09
|
8b2b451e0376fb018ca60b842e92c6d3ca2dc5ed | Remove unused variable | lib/output.js | lib/output.js | 'use strict';
const chalk = require('chalk');
const bold = chalk.bold;
const red = chalk.red;
const cyan = chalk.cyan;
const grey = chalk.grey;
const green = chalk.green;
/**
* Print given object as JSON.
* @param {Object} obj
* @return {String}
*/
function printJSON(obj) {
return console.log(JSON.stringify(ob... | JavaScript | 0.000015 | @@ -45,33 +45,8 @@
);%0A%0A
-const bold = chalk.bold;%0A
cons
|
ffa5d3722b3085bfbe6d448f6bebf2705112e2ad | Remove unused variable this._buffer. | lib/parser.js | lib/parser.js | /**
* Modules dependencies
*/
var EventEmitter = require('events').EventEmitter,
util = require('util');
module.exports = Parser;
function Parser(options){
EventEmitter.call(this);
this.delimiter = options.delimiter || ',';
this.endLine = options.endLine || '\n';
this.columns = options.columns || [];
this._d... | JavaScript | 0 | @@ -701,38 +701,16 @@
tion()%7B%0A
-%09this._buffer = null;%0A
%09this.em
@@ -809,30 +809,8 @@
g);%0A
-%09this._buffer = null;%0A
%09thi
|
dd1f3f2214b90c8404c4a23899504fe5922ece3a | fix txt, mx and add srv and soa to state machine | lib/parser.js | lib/parser.js | var name_unpack = require('./fields').name_unpack;
var ipaddr = require('./ipaddr');
var BufferStream = require('./bufferstream');
var consts = require('./consts');
var Parser = module.exports = function (msg) {
var state,
len,
pos,
val,
rdata_len,
rdata,
section,
count;
... | JavaScript | 0 | @@ -3534,32 +3534,231 @@
val.data =
+ rdata.buffer.toString('ascii', 1, rdata.buffer.readUInt8(0) + 1);%0A state = %22RESOURCE_DONE%22;%0A break;%0A case %22MX%22:%0A val.priority = rdata.readUInt16BE();%0A val.exchange =
name_unpack(rda
@@ -3754,21 +3754,19 @@
_unpack(
-rdata... |
ce88863f56420effef284a73bc33b1fdc7efae71 | Align objects | lib/player.js | lib/player.js | var cp = require('child_process'),
fs = require('fs'),
log = require('./logger'),
path = require('path');
var config = null,
mediaPath = '';
function setConfig(cfg) {
config = cfg;
mediaPath = normalizePath(config.mediaPath);
}
function normalizePath(p, isFile) {
return path.norma... | JavaScript | 0.000005 | @@ -696,16 +696,17 @@
abs
+
: absPat
@@ -719,16 +719,17 @@
rel
+
: relPat
@@ -877,16 +877,20 @@
irectory
+
: pathIn
@@ -911,16 +911,23 @@
parent
+
: (pathI
@@ -998,16 +998,25 @@
dirs
+
: %5B%5D,%0A
@@ -1026,16 +1026,24 @@
files
+
: %5B%5D,%0A
@@ -1060,16 ... |
cd38670640b7ef22c975fc966cf16bf9865357b0 | Update lexer states example | examples/lexer-start-conditions.g.js | examples/lexer-start-conditions.g.js | /**
* Start conditions of lex rules. Tokenizer states.
*
* Tokenizer rules may provide start conditions. Such rules are executed
* only when lexer enters the state corresponding to the names of the
* start conditions.
*
* Start conditions can be inclusive (%s, 0), and exclusive (%x, 1).
* Inclusive conditions a... | JavaScript | 0 | @@ -1373,16 +1373,24 @@
tions.g
+-m slr1
-f ~/tes
@@ -2127,16 +2127,21 @@
mment');
+
/* skip
@@ -2449,34 +2449,32 @@
-
%22/* skip comment
@@ -2513,26 +2513,24 @@
+%5B%5E*/%5C%5Cn%5D*%22,
-
@@ -2631,34 +2631,32 @@
++;
-
-
/* skip new line
@@ -2767,16 +27... |
f9bcfda39780e8e96cb9e398036bb5a2e413a4bb | Add websocket; update SubscriptionClient | client/src/App.js | client/src/App.js | import React, { Component } from 'react';
import {
BrowserRouter,
Link,
Route,
Switch,
} from 'react-router-dom';
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
toIdValue,
} from 'react-apollo';
import { SubscriptionClient, addGraphQLSubscriptions } from 'subscriptions-transport-ws';
im... | JavaScript | 0 | @@ -309,16 +309,142 @@
ort-ws';
+%0Aimport ws from 'ws';%0A// import %7B SubscriptionClient, addGraphQLSubscriptions %7D from 'subscriptions-transport-ws/dist/client';
%0A%0Aimport
@@ -912,18 +912,23 @@
ct: true
+,
%0A%7D
+, ws
);%0A%0Acons
|
539113a6cfa67e907de168b5d3d0477f5e407303 | Simplify attribute rendering step | lib/render.js | lib/render.js | /*
Module dependencies
*/
var _ = require('underscore');
var utils = require('./utils');
var encode = utils.encode;
/*
Boolean Attributes
*/
var rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
/*
Format attributes
*/
var ... | JavaScript | 0.999711 | @@ -379,11 +379,8 @@
turn
- ''
;%0A%0A
@@ -2104,53 +2104,68 @@
name
-;%0A%0A if (elem.attribs && _.size(elem.
+,%0A attribs = formatAttrs(elem.attribs);%0A%0A if (
attribs)
) %7B%0A
@@ -2160,17 +2160,16 @@
attribs)
-)
%7B%0A t
@@ -2184,33 +2184,15 @@
' +
-formatAttrs(elem.
attribs
-)
;%0A
|
8391f308b791f6b782a592ecaab13e1fa4e99b67 | use new VirtualConsole constructor | lib/render.js | lib/render.js | 'use strict'
import ansiHTML from 'ansi-html'
import co from 'co'
import serialize from 'serialize-javascript'
import { getContext, setAnsiColors, encodeHtml } from './utils'
const debug = require('debug')('nuxt:render')
// force blue color
debug.color = 4
setAnsiColors(ansiHTML)
export function render (req, res) {
... | JavaScript | 0 | @@ -4638,21 +4638,19 @@
le =
+ new
jsdom.
-create
Virt
|
955221a2d3bbab6099a1a4678608c2e244003a6c | Use UTF-8 when render html template. | lib/render.js | lib/render.js | var fs = require('fs'),
hogan = require('hogan.js'),
log4js = require('log4js'),
mime = require('mime'),
path = require('path'),
url = require('url'),
util = require('util');
var logger = log4js.getLogger('crossweb');
var ObjectRender = function ObjectRender (object) {
this.object = obje... | JavaScript | 0 | @@ -2768,16 +2768,31 @@
ext/html
+; charset=UTF-8
'%0A %7D);%0A
|
8176f75ade3ff0a641700c74cf5e02e0668d7ccf | fix router | lib/router.js | lib/router.js | FlowRouter.route('/', {
name: 'start',
action: function(params, queryParams) {
BlazeLayout.render('layout', {
footer: 'footer',
main: 'start',
nav: 'header',
});
}
});
var privateRoutes = FlowRouter.group({
triggersEnter: [requireLogin]
});
private... | JavaScript | 0.000001 | @@ -2339,24 +2339,27 @@
%7D);%0A
+%7D,%0A
subscrip
@@ -2380,28 +2380,24 @@
n(params) %7B%0A
-
this
@@ -2471,20 +2471,10 @@
- %7D,%0A
%7D
+,
%0A%7D);
@@ -2749,21 +2749,16 @@
rId()) %7B
-%0A
%7D else %7B
|
98d9e1351488830eefc1f525e93c883bb475cb49 | Fix gulp jekyll and watch | Gulpfile.js | Gulpfile.js | const child = require('child_process');
const browserSync = require('browser-sync').create();
const gulp = require('gulp');
const gutil = require('gulp-util');
const sass = require('gulp-sass');
const siteRoot = '_site';
const cssFiles = 'scss/app.scss';
gulp.task('css', () => {
gulp.src(cssFiles)
.pipe(... | JavaScript | 0 | @@ -620,24 +620,16 @@
'build',
-%0A
'--incr
@@ -639,22 +639,20 @@
ntal
--rebuild'%0A
+', '--watch'
%5D);%0A
@@ -920,32 +920,38 @@
ulp.task('jekyll
+-build
', () =%3E %7B%0A c
@@ -976,16 +976,36 @@
d.spawn(
+'bundler', %5B'exec',
'jekyll'
@@ -1006,17 +1006,16 @@
ekyll',
-%5B
'build'%5D
@@ -146... |
3b839ac963e45182d959ad1593d11988345220cd | remove duplicate undefined check | lib/router.js | lib/router.js | // global configuration
Router.waitOn(function() {
return Meteor.subscribe('allplaylists');
});
// route specific configuration
Router.map(function() {
this.route('home', {path: '/'});
this.route('playlists', {
data: {
playlists: function() {
return Playlists.find({},{sort: {createdAt: -1}, ... | JavaScript | 0.000008 | @@ -427,18 +427,22 @@
ion() %7B%0A
-%09%09
+
return M
@@ -493,17 +493,20 @@
%0A %7D,%0A
-%09
+
onBefore
@@ -530,30 +530,8 @@
) %7B%0A
-%09%09if(this.data()) %7B%0A%09%09
@@ -560,19 +560,20 @@
data();%0A
-%09%09%09
+
if (!p
@@ -585,20 +585,24 @@
st)%0A
-%09%09%09%09
+
return;%0A... |
76d8ea64b99f39f6a7d4c53facff385765439db2 | Allow threshold stage to be applied to unresizeables | Gulpfile.js | Gulpfile.js | /* -----------------------------------------------------------------------------
* VARS
* -------------------------------------------------------------------------- */
// Project base paths
// -----------------------------------------------------------------------------
var basePaths = {
src: 'Source/',
des... | JavaScript | 0.000001 | @@ -3217,53 +3217,8 @@
ize
-and apply threshold (remove transparency) to
imag
@@ -3591,21 +3591,274 @@
le, '%25')
+;
%0A
+ %7D))%0A .pipe(filterResizeables.restore)%0A // Use gulp-gm to apply threshold to (remove partial transparency from) images%0A ... |
66af19a0b95b7b3f8f64c1d23bd5a11e5ad73b5c | Fix login screen | lib/router.js | lib/router.js | Router.configure({
layoutTemplate: 'layout',
waitOn: function() {
var userId = Meteor.userId();
return [Meteor.subscribe('userCourses', userId),
Meteor.subscribe('userNotifications', userId),
Meteor.subscribe('recentQuestions')]
}
// loadingTemplate: 'loading',
})... | JavaScript | 0.000061 | @@ -1784,32 +1784,34 @@
ayout',%0A
+//
loadingTemplate:
|
fc8990fc45aaedafc436baf963fb005d0dbe1530 | Add subscriptions | lib/router.js | lib/router.js | var subscriptions = new SubsManager();
Router.configure({
loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
});
Router.route('/', {
layoutTemplate: 'layout',
name: 'home',
waitOn: function() {
return subscriptions.subscribe('allVolunteers');
},
fastRender: true
});
Router.route('/myProfile', {
layo... | JavaScript | 0.000001 | @@ -2633,16 +2633,135 @@
stion',%0A
+%09waitOn: function() %7B%0A%09%09return %5Bsubscriptions.subscribe('allUniverses'), subscriptions.subscribe('allWorkshops')%5D;%0A%09%7D,%0A
%09fastRen
|
c26ac4a4519fb70f3aad8492e129cef9c2615428 | Remove wreck module | lib/routes.js | lib/routes.js | import Path from 'path';
import wreck from 'wreck';
module.exports = [
// Client routes
{
method: 'GET',
path: '/',
handler(request, reply) {
reply.view('index.html');
}
},
{
method: 'PUT',
path: '/widgets/{widget_id}/edit',
handler: {
proxy: {
mapUri: (request, ... | JavaScript | 0 | @@ -21,35 +21,8 @@
th';
-%0Aimport wreck from 'wreck';
%0A%0Amo
|
d1b496a3e0773dafebb4685433d00b5f22e16cd5 | create article | app/actions/articles.js | app/actions/articles.js | /* eslint consistent-return: 0, no-else-return: 0*/
import { polyfill } from 'es6-promise';
import request from 'axios';
import md5 from 'spark-md5';
import * as types from 'types';
polyfill();
/*
* Utility function to make AJAX requests using isomorphic fetch.
* You can also use jquery's $.ajax({}) if you do not w... | JavaScript | 0.000006 | @@ -1537,16 +1537,23 @@
Article(
+title,
content)
@@ -1669,24 +1669,27 @@
return;%0A%0A
+ //
const title
@@ -1878,24 +1878,8 @@
= %7B%0A
- count: 1,%0A
|
a385f45371e9467f7d2ef8dab7b9422625671c76 | add all intrinsic functions to schema | lib/schema.js | lib/schema.js | var yaml = require('js-yaml'),
_ = require('lodash');
var tags = [
{ short: 'Include', full: 'Fn::Include', type: 'scalar' },
{ short: 'Include', full: 'Fn::Include', type: 'mapping' },
{ short: 'Map', full: 'Fn::Map', type: 'sequence' },
/*
Map: 'sequence',
Flatten: 'sequence',
Merge: 'sequence',
// h... | JavaScript | 0.000003 | @@ -245,39 +245,53 @@
,%0A
-/*%0A Map: 'sequence',%0A Flatten
+%7B short: 'Flatten', full: 'Fn::Flatten', type
: 's
@@ -302,16 +302,54 @@
nce'
+ %7D
,%0A
-Merg
+%7B short: 'Merge', full: 'Fn::Merge', typ
e: '
@@ -353,24 +353,26 @@
: 'sequence'
+ %7D
,%0A // http:
@@ -468,277 +468,975 @@
l%0A
-Base64': ... |
7190431213cf4051f7d46a5ca5ce152a879e1dc8 | Change Scribe chain cleanup | lib/scribe.js | lib/scribe.js | 'use strict';
if (process.env['NODE_ENV'] === 'debug') {
require('debug-trace')({ always: true });
}
const crypto = require('crypto');
const monitor = require('fast-json-patch');
// Fabric Components
const State = require('./state');
/**
* Simple tag-based recordkeeper.
* @property {Object} config Current confi... | JavaScript | 0 | @@ -3651,116 +3651,33 @@
-// console.log('%5BSCRIBE%5D', %60%5B$%7Bthis.constructor.name.toUpperCase()%7D%5D%60, 'starting with state:', this.state);%0A
+this.status = 'starting';
%0A
@@ -3758,20 +3758,19 @@
ges in s
-crib
+tat
e:', cha
@@ -3803,30 +3803,24 @@
Patches(this
-.state
%5B'@data'%5D, c
@@ -383... |
6b62359be282ea58f7fc8fd5a86c600ac0983fb2 | Label had the wrong text | app/components/Login.js | app/components/Login.js | import React, {Component, PropTypes} from 'react';
import {Alert, Button, ControlLabel, FormGroup, FormControl} from 'react-bootstrap';
import ErrorMsg from './ErrorMsg';
import Icon from './Icon';
const STR_MISSING_CREDENTIALS = 'Please enter both your username and password';
export default class Login extends Compo... | JavaScript | 0.998516 | @@ -2122,32 +2122,32 @@
abel%3EGithub
-username
+password
%3C/ControlLab
|
75bfdba081b068502bb437568eb5e629e295ba1e | Tweak previous commit. | lib/search.js | lib/search.js | 'use strict';
const index = require('config').get('elasticsearch.index');
const config = require('config').get('search');
const isNumber = require('./util/isNumber');
const fields = ['name', 'version', 'description', 'keywords', 'publisher', 'evaluation', 'score'];
class Search {
constructor(client) {
th... | JavaScript | 0 | @@ -1485,24 +1485,1031 @@
should: %5B%0A
+ // Give boost to exact matches (phrase)%0A %7B%0A multi_match: %7B%0A query: value,%0A ... |
73726d3f355f5a8dd64b6c627d38c5c1591be498 | Add api_key | lib/search.js | lib/search.js | 'use strict';
/**
* Module dependencies.
*/
var http = require('json-http');
var validator = require('./validator');
/**
* Validate the parameters for the search request.
*
* @param {Object} params
* @return {Object} validation state
* @api private
*/
var _validateParams = function(params) {
if (!params) ... | JavaScript | 0.000002 | @@ -1199,16 +1199,95 @@
y));%0A %0A
+ if (params.api_key) %7B%0A query += 'api_key='.concat(params.api_key);%0A %7D%0A %0A
if (pa
|
02bfe40b33e3ba5972d5f2ab9c407518a494c879 | Remove silly space | lib/sender.js | lib/sender.js | /*!
* node-gcm
* Copyright(c) 2013 Marcus Farkas <toothlessgear@finitebox.com>
* MIT Licensed
*/
var Constants = require('./constants');
var req = require('request');
var debug = require('debug')('node-gcm');
function Sender(key , options) {
if (!(this instanceof Sender)) {
return new Sender(key, optio... | JavaScript | 0.998015 | @@ -226,17 +226,16 @@
nder(key
-
, option
|
c71214a1e99a598560dd2e7e3a9b687cf4d95450 | Fix node-v6 not providing hasOwnProperty for EventEmitter._events | lib/server.js | lib/server.js | var http = require('http')
, https = require('https')
, url = require('url')
, EventEmitter = require('events').EventEmitter
, Serializer = require('./serializer')
, Deserializer = require('./deserializer')
/**
* Creates a new Server object. Also creates an ... | JavaScript | 0.00002 | @@ -1509,36 +1509,59 @@
if (
-that._events.hasOwnProperty(
+Object.prototype.hasOwnProperty.call(that._events,
meth
|
980bbc377be282ae85ab4abc8481bd45a730daa5 | Call toString on the error. | lib/server.js | lib/server.js | /**
* Copyright 2012 Tomaz Muraus
*
* 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 ag... | JavaScript | 0 | @@ -3992,32 +3992,43 @@
..', %7B'err': err
+.toString()
%7D);%0A %7D%0A el
|
3bc4205af956ad44fad87de8ca72e85ad7541eb6 | Add NAt support for HTTP server | lib/server.js | lib/server.js | module.exports = Server
var arrayRemove = require('unordered-array-remove')
var debug = require('debug')('webtorrent:server')
var http = require('http')
var mime = require('mime')
var pump = require('pump')
var rangeParser = require('range-parser')
var url = require('url')
function Server (torrent, opts) {
var serv... | JavaScript | 0 | @@ -341,16 +341,64 @@
er(opts)
+%0A var natTraversal = require('./nat-traversal')
%0A%0A var
@@ -529,16 +529,54 @@
Request)
+%0A server.on('listening', onListening)
%0A%0A var
@@ -1034,16 +1034,107 @@
%7D)%0A%0A
+ if (server.address()) %7B%0A natTraversal.portUnMapping(server.address().port)%0A ... |
eb410646fe83df3754e397bb0ba38f734cc1fde3 | Send with clientId only and no message returns a send function bound to a specific clientId | lib/server.js | lib/server.js | 'use strict';
var WebSocketServer = require('websocket').server;
var EventEmitter = require('events').EventEmitter;
var util = require('./common.js');
var serve = function(opts) {
var server = new WebSocketServer(opts);
var connectEvents = new EventEmitter();
var messageEvents = new EventEmitter();
var repl... | JavaScript | 0 | @@ -1556,16 +1556,21 @@
function
+ send
(clientI
@@ -1576,24 +1576,193 @@
Id, type) %7B%0A
+ if (arguments.length === 1) %7B%0A return function(type) %7B%0A send.apply(undefined, %5BclientId%5D.concat(Array.prototype.slice.call(arguments)));%0A %7D;%0A %7D%0A%0A
if (type
@@ -1860,18 +1860... |
54ace608da6729fa3f91829fcdda27cbf31108d4 | FIX (tags): wrap long tags | src/components/common/Taglist.js | src/components/common/Taglist.js | import React from 'react';
import PropTypes from 'prop-types';
import { getSnippets } from 'selectors/snippets';
import { connect } from 'react-redux';
import * as snippetActions from 'actions/snippets';
import {
compact, filter, flattenDeep, flow, isEmpty, map, uniq
} from 'lodash/fp';
import styled from 'styled-com... | JavaScript | 0.000001 | @@ -529,55 +529,531 @@
;%0A
-&:hover %7B%0A border: 1px solid $%7BbaseAppColor%7D
+position: relative;%0A text-overflow: clip;%0A overflow: hidden;%0A &:hover %7B%0A border: 1px solid $%7BbaseAppColor%7D;%0A %7D%0A %0A &:after %7B%0A content: %22%22;%0A width: 30px;%0A height: 20px;%0A positi... |
9734ea16a41e0e0fb2b84fbe6e1be2c04cf38498 | Add parse url function | scripts/routes/index.js | scripts/routes/index.js | const PARAMETER_REGEXP = /([:*])(\w+)/g;
const WILDCARD_REGEXP = /\*/g;
const REPLACE_VARIABLE_REGEXP = '([^\/]+)';
const REPLACE_WILDCARD = '(?:.*)';
const FOLLOWED_BY_SLASH_REGEXP = '(?:\/$|$)';
const MATCH_REGEXP_FLAGS = '';
let _routes = [];
export function add(routes) {
routes.forEach(route => {
_routes.push(r... | JavaScript | 0.000019 | @@ -1,12 +1,95 @@
+import %7B $unserialize %7D from 'core/types';%0Aimport %7B _doc %7D from 'core/variables';%0A%0A
const PARAME
@@ -308,34 +308,140 @@
'';%0A
-let _routes = %5B%5D;%0A%0Aexport
+const REMOVE_SLASHES_REGEXP = /%5E%5C/%7C%5C/$/g;%0Alet _routes = %5B%5D;%0A%0A/**%0A * Add a route to routes array%0A *%... |
8565201c742eed026a4d755b480ba022fa62d6bf | Use view2DState in ol.interaction.DragPan | src/ol/interaction/dragpaninteraction.js | src/ol/interaction/dragpaninteraction.js | // FIXME works for View2D only
goog.provide('ol.interaction.DragPan');
goog.require('goog.asserts');
goog.require('ol.Kinetic');
goog.require('ol.PreRenderFunction');
goog.require('ol.View2D');
goog.require('ol.coordinate');
goog.require('ol.interaction.ConditionType');
goog.require('ol.interaction.Drag');
goog.requi... | JavaScript | 0 | @@ -1949,16 +1949,28 @@
etView()
+.getView2D()
;%0A%0A if
@@ -2006,24 +2006,69 @@
c_.end()) %7B%0A
+ var view2DState = view.getView2DState();%0A
var dist
@@ -2149,43 +2149,8 @@
();%0A
- var center = view.getCenter();%0A
@@ -2194,16 +2194,28 @@
ic_.pan(
+view2DState.
center);
@@ -2318,16 +2318,2... |
9a16b97ca5b401e6984294a2abd73d4c7471f217 | Fix UserSubscriptionsRoute image preload paths | src/app/routes/UserSubscriptionsRoute.js | src/app/routes/UserSubscriptionsRoute.js | define([
"ember",
"routes/UserIndexRoute",
"mixins/ChannelMixin",
"mixins/InfiniteScrollRouteMixin",
"utils/preload"
], function(
Ember,
UserIndexRoute,
ChannelMixin,
InfiniteScrollRouteMixin,
preload
) {
var get = Ember.get;
return UserIndexRoute.extend( ChannelMixin, InfiniteScrollRouteMixin, {
itemSe... | JavaScript | 0.000003 | @@ -1332,32 +1332,38 @@
%09%22@each.product.
+@each.
partner_login.lo
@@ -1360,16 +1360,22 @@
r_login.
+@each.
logo%22,%0A%09
@@ -1385,32 +1385,38 @@
%09%22@each.product.
+@each.
partner_login.pr
@@ -1413,16 +1413,22 @@
r_login.
+@each.
profile_
@@ -1472,16 +1472,28 @@
oticons.
+firstObject.
@each.ur
|
553f2648cd989c1b85860d94ffc7857156d00774 | remove Trans macro from heading | plugins/services/src/js/components/modals/ServiceScaleFormModal.js | plugins/services/src/js/components/modals/ServiceScaleFormModal.js | import { Trans } from "@lingui/macro";
import PropTypes from "prop-types";
import React from "react";
import PureRender from "react-addons-pure-render-mixin";
import FormModal from "#SRC/js/components/FormModal";
import ModalHeading from "#SRC/js/components/modals/ModalHeading";
import AppLockedMessage from "./AppLoc... | JavaScript | 0 | @@ -2478,26 +2478,27 @@
let
-headerText
+serviceType
= %22Serv
@@ -2551,34 +2551,35 @@
od) %7B%0A
-headerText
+serviceType
= %22Pod%22;%0A
@@ -2642,26 +2642,27 @@
%7B%0A
-headerText
+serviceType
= %22Grou
@@ -2675,105 +2675,93 @@
%7D%0A
-%0A
-return (%0A %3CModalHeading%3E%0A ... |
46382b5a45b5ed16adb01b6d8009fa7c4eb24c2b | Remove spaces around named imports | src/components/import_preview.js | src/components/import_preview.js | import React, {PureComponent, Fragment} from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default class ImportPreview extends PureComponent {
static propTypes = {
cssPath: PropTypes.string,
reactPath: PropTypes.string,
reactComponents: PropTypes.object
};
... | JavaScript | 0.999764 | @@ -591,17 +591,16 @@
import %7B
-
$%7Bcompon
@@ -619,17 +619,16 @@
n(', ')%7D
-
%7D from '
|
7fb41a4f10d7815c488262a614347aaecc8c4fe9 | Add test for undefined rule nodes | test/nesting.js | test/nesting.js | var assert = require('assert');
var postcss = require('postcss');
var getSelectors = require('../lib/get-selectors');
describe('getSelectors', function() {
var root, componentRoot;
beforeEach(function() {
root = postcss.root();
componentRoot = postcss.rule({selector: '.Component'});
root.append(compon... | JavaScript | 0.000001 | @@ -444,32 +444,295 @@
nent'%5D);%0A %7D);%0A%0A
+ it('should check for the existence of child nodes', function() %7B%0A var rule = postcss.rule(%7Bselector: '.Component-d'%7D);%0A rule.nodes = undefined;%0A componentRoot.append(rule);%0A%0A assert.deepEqual(getSelectors(rule), %5B'.Component .Component-... |
4d48f689a23170ebf39fe4485cedf95d206dc805 | update test code | src/ax5ui-combobox/test/test.combobox.js | src/ax5ui-combobox/test/test.combobox.js | /*
* Copyright (c) 2017. tom@axisj.com
* - github.com/thomasjang
* - www.axisj.com
*/
describe('ax5combobox TEST', function () {
var myUI;
var options = [];
options.push({value: "1", text: "string"});
options.push({value: "2", text: "number"});
options.push({value: "3", text: "substr"});
op... | JavaScript | 0.000001 | @@ -986,25 +986,24 @@
%7D%0A %7D);%0A%0A
-%0A
it('bind
@@ -2876,12 +2876,637 @@
%0A %7D);
+%0A%0A it('update combobox', function (done) %7B%0A myUI.update(%7B%0A target: $('%5Bdata-ax5combobox=%22combobox1%22%5D'),%0A options: options.concat(%7Bvalue: %22world%22, text: %22... |
c0752c78695944eb86060becf7bceb1827e316da | add test | test/plugins.js | test/plugins.js | const expect = require('chai').expect;
var T = require('../lib');
var BemEntity = require('@bem/entity-name');
describe('pluginis', () => {
describe('whiteList', () => {
it('without opts', () => {
var res = T()
.use(T.plugins.whiteList())
.process({ block: 'bu... | JavaScript | 0 | @@ -137,16 +137,831 @@
) =%3E %7B%0A%0A
+ describe('copyMods', () =%3E %7B%0A it('without elem', () =%3E %7B%0A var res = T().process(%7B%0A block: 'button2',%0A mods: %7Bsize: 'm', theme: 'normal'%7D,%0A elemMods: %7Bsize: 'l', theme: 'dark... |
1f30bd685f713f26ab7c6f6c9951d2bd2cd6e048 | fix spelling | scripts/waffle-board.js | scripts/waffle-board.js | // Description:
// Report current work in progress on github projects.
//
// Dependencies:
// githubot - see https://github.com/iangreenleaf/githubot
// underscore
//
// Configuration
// HUBOT_GITHUB_TOKEN=your github auth token
// HUBOT_GITHUB_USER=default organization for github projects
// HUBOT_GITHUB_W... | JavaScript | 0.999999 | @@ -1087,10 +1087,10 @@
_REV
-E
I
+E
W_LA
|
7ff88f80a3fdc650aa49da8fd6711027d295f251 | fix `Socket#ack` | lib/socket.js | lib/socket.js |
/**
* Module dependencies.
*/
var parser = require('socket.io-parser')
, Emitter = require('./emitter')
, toArray = require('to-array')
, debug = require('debug')('socket.io-client:socket')
, on = require('./on')
, bind;
/**
* Module exports.
*/
module.exports = exports = Socket;
/**
* Internal even... | JavaScript | 0.000001 | @@ -3968,32 +3968,34 @@
.ack = function(
+id
)%7B%0A var self =
@@ -4207,16 +4207,30 @@
er.ACK,%0A
+ id: id,%0A
da
|
7eedb451f01e6d73871fa85134bead4bfdcd8a99 | add test for map | test/require.js | test/require.js | 'use strict'
var test = require('tape')
var isNode = require('../is/node')
test('require', function (t) {
t.plan(8)
var enhanceRequire = require('../require')
var count = 0
try {
require('./_files/styles.less')
} catch (e) {
count += 1
}
t.equals(count, isNode ? 1 : 0, "`require('vigour-util/req... | JavaScript | 0 | @@ -114,9 +114,9 @@
lan(
-8
+9
)%0A
@@ -573,27 +573,8 @@
e(%7B%0A
- package: true,%0A
@@ -1282,24 +1282,274 @@
ed paths')%0A%0A
+ enhanceRequire(%7B%0A map: %7B'package.json': %7B isPackage: true %7D%7D%0A %7D)%0A%0A try %7B%0A var pkg = require('package.json')%0A t.ok(pkg.isPackage, 'should ... |
3636f5d3c112f1a23669909815e606939098e4b9 | Add test for untrusted thenable attempting to fulfill a promise with another promise | test/resolve.js | test/resolve.js | (function(buster, when) {
var assert, refute, fail, sentinel, other;
assert = buster.assert;
refute = buster.refute;
fail = buster.assertions.fail;
sentinel = {};
other = {};
buster.testCase('when.resolve', {
'should resolve an immediate value': function(done) {
var expected = 123;
when.resolve(expected).the... | JavaScript | 0.000001 | @@ -1761,16 +1761,375 @@
(done);%0A
+%09%09%7D,%0A%0A%09%09'should assimilate thenable used as fulfillment value': function(done) %7B%0A%09%09%09when.resolve(%7B%0A%09%09%09%09then: function(onFulfilled) %7B%0A%09%09%09%09%09onFulfilled(%7B%0A%09%09%09%09%09%09then: function(onFulfilled) %7B%0A%09%09%09%09%09%09%09onF... |
062e6d5a2354b1b71b9885f6113171c4d1ce42b8 | Make async glob failure calls the supplied callback with the error. | lib/sokkit.js | lib/sokkit.js | (function() {
var glob = require('glob'),
path = require('path'),
dirname = path.dirname,
basename = path.basename,
sep = path.sep;
function Sokkit(options) {
this.failed = [];
this.modules = {};
this.disabled = {};
this.configure(options);
}
Sokkit.prototype = [];
Sokkit.prototype ... | JavaScript | 0 | @@ -1216,48 +1216,16 @@
%09%09%09c
-onsole.warn('Plugin loading failed: ' +
+allback(
erro
|
e6c2ca33a39592ed7d6fd51850b2cc184f053bec | Change generated value classes to use class syntax | types-lib.js | types-lib.js | /**
* @flow
*/
import * as Immutable from 'immutable'
export type Updater<T> = (t: T) => T;
const registeredConstructors = {};
/**
* Construct a class with properly-named fields.
*/
export const buildValueClass = (
className: string, fieldNames: Array<string>): any => {
const defaults: any = {};
... | JavaScript | 0 | @@ -398,32 +398,31 @@
c
-onst resultConstructor =
+lass ValueClass extends
Imm
@@ -448,62 +448,270 @@
lts)
-;%0A const resultClass = resultConstructor.prototype;
+ %7B%0A serialize() %7B%0A const result = %7B%7D;%0A result.__SERIALIZED_CLASS = className;%0A for (const n... |
a4a64461af70eec1aa59a781eff01c52497892fd | use the new DELETE endpoint to reset git repositories | commands/reset.js | commands/reset.js | 'use strict'
const cli = require('heroku-cli-util')
const co = require('co')
const {Dyno} = require('heroku-run')
function * run (context) {
const repo = require('../lib/repo')
const app = context.app
let dyno = new Dyno({
heroku: cli.heroku,
app,
attach: true,
command: `set -e
mkdir -p tmp/rep... | JavaScript | 0 | @@ -75,433 +75,249 @@
o')%0A
-const %7BDyno%7D = require('heroku-run')%0A%0Afunction * run (context) %7B%0A const repo = require('../lib/repo')%0A const app = context.app%0A%0A let dyno = new Dyno(%7B%0A heroku: cli.heroku,%0A app,%0A attach: true,%0A command: %60set -e%0Amkdir -p tmp/repo_tmp/unpack%0A... |
5049b6e3447af47416d7d30f16f6a7d47f507b1a | Fix toc to exit multiple nested lists | content/content.js | content/content.js |
var $ = document.querySelector.bind(document)
var state = {
theme,
raw,
content,
compiler,
html: '',
markdown: '',
toc: ''
}
chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
if (req.message === 'reload') {
location.reload(true)
}
else if (req.message === 'theme') {
st... | JavaScript | 0.000001 | @@ -3630,26 +3630,92 @@
-html += '%3C/div%3E'
+while (prev.level-- %3E header.level) %7B%0A html += '%3C/div%3E'%0A %7D%0A html
+
+=
lin
|
ef151929ee08df613b5547dfd411efa46fd9951a | Update node.js example | contrib/example.js | contrib/example.js | const net = require('net')
const enableWatchMode = (process.argv[2] === 'w')
const UInt16 = (value) => {
const buf = Buffer.alloc(2)
buf.writeUInt16BE(value, 0)
return buf
}
const UInt8 = (value) => {
const buf = Buffer.alloc(1)
buf.writeUInt8(value, 0)
return buf
}
const UInt64 = (value) => {
cons... | JavaScript | 0.000001 | @@ -751,17 +751,8 @@
tag
-!== null
&& t
@@ -1776,24 +1776,75 @@
atchMode) %7B%0A
+ const tag = Number.parseInt(process.argv%5B3%5D)%0A
return
@@ -1875,16 +1875,22 @@
tchMode(
+tag ?
WatchMod
@@ -1901,42 +1901,29 @@
gged
-, Number.parseInt(process.argv%5B3%5D)
+ : WatchMode.All, tag
))%0A
|
c843ee12ad501d7759baa8f3abbef65464852b61 | Add auto-sidebar generating code | docs/_static/js/main.js | docs/_static/js/main.js | JavaScript | 0.000001 | @@ -1 +1,2259 @@
+var renderSidebarNav = function(type, headers) %7B%0A var $sidebar = $(%22.sidebar .accordion%22),%0A sidebarContents = '';%0A%0A $.each(headers, function (index, header) %7B%0A console.log('header: ' + header);%0A var $typeEl = $(%22.%22 + type + %22s-%22 + header),%0A ... | |
f7818bc46d3b3966cd3a57422ca896f27b962be6 | add module.exports | control/control.js | control/control.js | require("can-control");
| JavaScript | 0.000002 | @@ -1,8 +1,25 @@
+module.exports =
require(
|
60ec4def1e3627f9691c2d7544971358cf0f81aa | Add NODE_PATH support for resolveLoaders as well. (#778) | server/build/webpack.js | server/build/webpack.js | import { resolve, join } from 'path'
import { createHash } from 'crypto'
import { existsSync } from 'fs'
import webpack from 'webpack'
import glob from 'glob-promise'
import WriteFilePlugin from 'write-file-webpack-plugin'
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'
import CaseSensitivePath... | JavaScript | 0 | @@ -3223,24 +3223,155 @@
%0A )%0A %7D%0A%0A
+ const nodePathList = (process.env.NODE_PATH %7C%7C '')%0A .split(process.platform === 'win32' ? ';' : ':')%0A .filter((p) =%3E !!p)%0A%0A
const main
@@ -5438,155 +5438,41 @@
les'
-%0A %5D.concat(%0A (process.env.NODE_PATH %7C%7C '')%0A .sp... |
78361a3d2ae8da781a8470db779a68e2e5857231 | append 'config' to configuration object names | server/config/config.js | server/config/config.js | 'use strict';
var path = require('path'),
_ = require('lodash');
/**
* Environment variables and application configuration.
*/
var base = {
app: {
root: path.normalize(__dirname + '/../..'),
port: process.env.PORT || 3000,
env: process.env.NODE_ENV || 'development',
secret: 'secre... | JavaScript | 0.999036 | @@ -144,16 +144,22 @@
var base
+Config
= %7B%0D%0A
@@ -466,17 +466,22 @@
platform
-s
+Config
= %7B%0D%0A
@@ -1332,16 +1332,22 @@
rge(base
+Config
, platfo
@@ -1352,14 +1352,25 @@
form
-s%5Bbase
+Config%5BbaseConfig
.app
@@ -1399,9 +1399,15 @@
s = base
+Config
;
|
c15e8ebb32faedfa49994a9a1c253f3137e10991 | Fix environment for cloud | server/config/config.js | server/config/config.js | let path = require('path');
let rootPath = path.normalize(__dirname + '/../../');
const connectionStrings = {
production: 'mongodb://ilian82:123456@ds113958.mlab.com:13958/proba-db',
development: 'mongodb://localhost:27017/animalshotel'
};
module.exports = {
development: {
environment: process.env... | JavaScript | 0.000025 | @@ -293,59 +293,114 @@
-environment
+rootPath
:
-p
ro
-cess.env.NODE_ENV %7C%7C 'development',
+otPath,%0A db: connectionStrings.development,%0A port: 3000%0A %7D,%0A production: %7B
%0A
@@ -457,47 +457,19 @@
ings
-%5Bprocess.env.NODE_ENV %7C%7C 'development'%5D
+.production
,%0A
@@... |
d3a376db189b2caf0129d798dac5233b04441214 | Return page size to 50 | controllers/pwa.js | controllers/pwa.js | /**
* Copyright 2015-2016, Google, Inc.
* 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... | JavaScript | 0.000001 | @@ -945,17 +945,18 @@
_SIZE =
-1
+50
;%0Aconst
|
6babf86a8d09c66190aad8512ea17f38681de11a | Remove catch-all route temporarily | server/config/routes.js | server/config/routes.js | import uc from '../APIv1/users/userController.js';
import rc from '../APIv1/recipes/recipeController.js';
import sc from '../APIv1/search/searchController.js';
module.exports = (app, express) => {
/**
* Users
*/
app.post('/api/v1/users/', /* auth, */ uc.createUser);
app.get('/api/v1/users/:user_id', uc.get... | JavaScript | 0.000012 | @@ -1453,16 +1453,19 @@
get%0A
+ //
respons
|
c3f76dabc13f8ecdae96027ef01b5d45256a3893 | Remove DAOProperty from FOAMmodels. | core/FOAMmodels.js | core/FOAMmodels.js | /**
* @license
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -2414,93 +2414,8 @@
h',%0A
- '../js/foam/core/types/DAOProperty', // TODO: remove when Adam fixes what he broke%0A
%5B
|
ad202d16a525dc4b6f603e080222d46a5d2e4052 | Update TensorPlaceholder.js | CNN/Conv/TensorPlaceholder.js | CNN/Conv/TensorPlaceholder.js | export { Base };
import * as Pool from "../util/Pool.js";
import * as Recyclable from "../util/Recyclable.js";
import * as ActivationEscaping from "./ActivationEscaping.js";
/**
* A placeholder for tensor.
*
* - In Operation.TwinArray.operation_append_Xxx(), it is used for tracking a tensor's final operation whi... | JavaScript | 0.000001 | @@ -4010,16 +4010,17 @@
ndsArray
+?
.clone()
|
15fb7872743a26742a0b9db1f7c67425c0ef91a1 | change if else to else | generators/gulp/templates/gulpfile.js | generators/gulp/templates/gulpfile.js | var path = require('path');
var gulp = require('gulp');
var nsp = require('gulp-nsp');
var gulpRequireTasks = require('gulp-require-tasks');
var watch = require('gulp-watch');
var taskListing = require('gulp-task-listing');
<% if(type === 'dynamic') { -%>
var exec = require('gulp-exec');
<% } -%>
<% if(type === 'static... | JavaScript | 0.000456 | @@ -827,12 +827,16 @@
%0A%3C%25
-else
+%7D -%25%3E%0A%3C%25
if(
|
7088b4d6a0b93d5b5619e7eb164e01d2e2843373 | add discussLinker to sub-dir label | src/containers/Sidebar/Footer.js | src/containers/Sidebar/Footer.js | import React from 'react'
// eslint-disable-next-line import/named
import { ICON_CMD } from '@config'
import {
Wrapper,
InnerWrapper,
SettingIcon,
OptionWrapper,
OptionItem,
OptionDivider,
} from './styles/footer'
import { sortBtnOnClick } from './logic'
const Footer = ({ pin, showFooterShadow, sortOptAc... | JavaScript | 0.000001 | @@ -77,16 +77,28 @@
ICON_CMD
+, ISSUE_ADDR
%7D from
@@ -108,16 +108,113 @@
onfig'%0A%0A
+import Popover from '@components/Popover'%0Aimport DiscussLinker from '@components/DiscussLinker'%0A%0A
import %7B
@@ -736,24 +736,181 @@
nDivider /%3E%0A
+ %3CPopover%0A placement=%22top%22%0A trigg... |
08a8709ea43c471009a2f1afefd1193cdfc5b371 | Fix bug in Sec2Heading. | src/converter/r2t/Sec2Heading.js | src/converter/r2t/Sec2Heading.js | import { last } from 'substance'
import { replaceWith, findChild } from '../util/domHelpers'
export default class Sec2Heading {
import(dom) {
// find all top-level sections
let topLevelSecs = dom.findAll('sec').filter(sec => sec.parentNode.tagName !== 'sec')
topLevelSecs.forEach((sec) => {
replace... | JavaScript | 0 | @@ -1949,16 +1949,25 @@
level =
+parseInt(
child.at
@@ -1981,17 +1981,20 @@
el') %7C%7C
-1
+%221%22)
%0A w
|
b814aecb67c42ef68109e5304343c6a743f31200 | Fix setting default location, #55 | src/cred/phone-number/actions.js | src/cred/phone-number/actions.js | import { getEntity, read, swap, updateEntity } from '../../store/index';
import * as c from '../index';
import * as cc from '../country_codes';
import {
closeLocationSelect,
openLocationSelect
} from './index';
export function changePhoneNumber(id, phoneNumber) {
swap(updateEntity, "lock", id, c.setPhoneNumber, ... | JavaScript | 0 | @@ -769,13 +769,25 @@
-if (!
+const location =
cc.f
@@ -815,16 +815,35 @@
ocation)
+;%0A if (!location
) %7B%0A
@@ -998,24 +998,17 @@
tion(m,
-defaultL
+l
ocation)
@@ -1072,21 +1072,17 @@
const
-userL
+l
ocation
@@ -1083,16 +1083,33 @@
ation =
+cc.findByIsoCode(
user &&
@@ -1128,16 +1128,1... |
e1a2964d467b52a620ce0db2bd167fbdb3dab519 | Add data for checkboxes | src/data/serviceRequestFields.js | src/data/serviceRequestFields.js | export const singleLineFields = [
{
name: 'Name',
required: true,
type: 'isAlpha',
error: 'Not a valid name'
},
{
name: 'Email',
required: true,
type: 'isEmail',
error: 'Not a valid email'
},
{
name: 'Phone',
required: false,
type: 'isNumeric',
error: 'Not a val... | JavaScript | 0.000002 | @@ -1480,24 +1480,208 @@
ckboxes = %5B%0A
+ %7B name: 'Citation Writing' %7D,%0A %7B name: 'Direct Mail Piece' %7D,%0A %7B name: 'Editing/Proofreading' %7D,%0A %7B name: 'Email Blast' %7D,%0A %7B name: 'Event Program' %7D,%0A %7B name: 'Invitations' %7D,%0A
%7B%0A name
@@ -2688,15 +2688,16 @@
e: '
-Simple... |
3d0d2f07b4df0f704895749b6b39dec12464973c | add divider tests | src/divider/__tests__/Divider.js | src/divider/__tests__/Divider.js | import React from 'react';
import {shallow} from 'enzyme';
import Divider from '../Divider';
describe('Divider Component', () => {
it('should render without issues', () => {
const component = shallow(<Divider />);
expect(component.length).toBe(1);
expect(component).toMatchSnapshot();
});
it('should ... | JavaScript | 0.000001 | @@ -300,16 +300,19 @@
;%0A %7D);%0A
+ %0A
it('sh
|
bc2f3991e050f25038f302f7f488bd407f8ad033 | Make those nameToEmojiMap tests more explicit in source. | src/emoji/__tests__/data-test.js | src/emoji/__tests__/data-test.js | import { getFilteredEmojiNames, nameToEmojiMap } from '../data';
// Prettier disabled in .prettierignore ; it misparses this file, apparently
// because of the emoji. (Even if they're tucked away in comments, it still
// gets it wrong.)
/* eslint-disable dot-notation, spellcheck/spell-checker */
describe('nameToEmoj... | JavaScript | 0 | @@ -255,20 +255,23 @@
ble
-dot-notation
+no-multi-spaces
, sp
@@ -337,486 +337,560 @@
%7B%0A
-test('works for some single-codepoint emoji', () =%3E %7B%0A expect(nameToEmojiMap%5B'thumbs_up'%5D).toEqual('%F0%9F%91%8D').toEqual('');%0A expect(nameToEmojiMap%5B'pride'%5D).toEqual('%F0%9F%8C%88');%0A expect... |
b500a42c4a8cecc3b95966b39b5b3d57847e6a9f | Update foam.comics.DAOController to use new TableView | src/foam/comics/DAOController.js | src/foam/comics/DAOController.js | /**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -1025,16 +1025,21 @@
foam.u2.
+view.
TableVie
|
c9a85c59f821841872daf13f5e1fc7111d11bc2c | Remove return statement from .update() | src/helpers/FaceNormalsHelper.js | src/helpers/FaceNormalsHelper.js | import { Matrix3 } from '../math/Matrix3';
import { Vector3 } from '../math/Vector3';
import { LineSegments } from '../objects/LineSegments';
import { LineBasicMaterial } from '../materials/LineBasicMaterial';
import { Float32BufferAttribute } from '../core/BufferAttribute';
import { BufferGeometry } from '../core/Buff... | JavaScript | 0.000063 | @@ -2520,24 +2520,8 @@
e;%0A%0A
-%09%09return this;%0A%0A
%09%7D;%0A
|
79c66c31e367c571c9698dcc12b80cc5e3ec7082 | fix navbar: avoid unnecesary call to onLoad | src/js/controllers/navbar_top.js | src/js/controllers/navbar_top.js | 'use strict';
/**
* @ngdoc function
* @name Pear2Pear.controller:NavbarTopCtrl
* @description
* # NavbarTop Ctrl
*/
angular.module('Pear2Pear')
.controller(
'NavbarTopCtrl', [
'SwellRTSession', '$scope', '$route', 'ProjectsSvc',
function(SwellRTSession, $scope, $route, ProjectsSvc){
va... | JavaScript | 0.000001 | @@ -541,58 +541,30 @@
-SwellRTSession.onLoad(function()%7B%0A if (
+if ($route.current &&
$rou
@@ -586,18 +586,16 @@
ms.id)%7B%0A
-
@@ -641,18 +641,16 @@
ams.id)%0A
-
@@ -687,34 +687,32 @@
-
$scope.project =
@@ -725,34 +725,32 @@
;%0A
-
... |
573233ed1d75aaa5d4837703be3427b84a6a8865 | Update Renderer.js | src/js/core/Renderer/Renderer.js | src/js/core/Renderer/Renderer.js | // --------------------------------------------------------------------------------
// Copyright (c) 2015 Ruggero Enrico Visintin
//
// 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... | JavaScript | 0 | @@ -1317,16 +1317,65 @@
t) %0A%7B%0A
+// not implemented yet%0A throw %22Not implemented%22;
%0A%7D%0A%0ARend
|
6d7578843ffa5daac35bf63f4c2b55dd4129653f | fix bug,close #10 | src/listeners/request/request.js | src/listeners/request/request.js | /**
* @file 代理请求转发到其他服务器
* @author zdying
*/
'use strict';
var http = require('http');
var https = require('https');
var zlib = require('zlib');
var execResponseCommand = require('../../commands/execCommand');
module.exports = {
response: function (rewriteRule, request, response) {
var proxyOption = reques... | JavaScript | 0 | @@ -2281,91 +2281,9 @@
- response.end(err.stack);%0A %7D);%0A%0A res.pipe(unzipStream).pipe(response
+%7D
);%0A
@@ -2635,24 +2635,31 @@
%7D);%0A
+ %7D%0A%0A
res.pi
@@ -2671,24 +2671,16 @@
sponse);
-%0A %7D
%0A%0A
|
f0378bb40f8bc7733bce77636f9bf7bafd4dbba5 | Stop then disconnect | server/discord/music.js | server/discord/music.js | const r = require('./../db');
const client = require('./');
const bot = require('./');
const getPlayer = (message) => {
if (!message.member) {
return Promise.reject(new Error('Not a guild'));
}
const player = client.voiceConnections.get(message.channel.guild.id);
if (player) {
return Promise.resolve(player);
... | JavaScript | 0.000002 | @@ -559,32 +559,49 @@
%0A%09if (player) %7B%0A
+%09%09player.stop();%0A
%09%09player.disconn
@@ -2023,152 +2023,20 @@
%09%09%09%09
-await r.table('playlist')%0A%09%09%09%09%09%09.get(message.channel.guild.id)%0A%09%09%09%09%09%09.replace(%7B%0A%09%09%09%09%09%09%09id: message.channel.guild.id,%0A%09%09%09%09%09%09%0... |
8de63ccdbf11cf1d3b970a729d983247433fbc71 | Fix bad func sig. | server/export-worker.js | server/export-worker.js | // A single worker for processing an export (e.g. rendering a map into an
// MBTiles sqlite database). Workers run in a *different process* from the
// main TileMill node process because:
//
// - export tasks can be long-running (minutes, sometimes hours)
// - export tasks can be CPU intensive, to the point of compromi... | JavaScript | 0.000113 | @@ -4145,19 +4145,16 @@
unction(
-end
) %7B%0A
|
afeac49bcfb72c661607cd956a15f043a8d78d5d | Add form errors | lib/browser/tag/update.js | lib/browser/tag/update.js | import { tmpl } from 'riot-tmpl'
import { startsWith, each, extend } from './../common/util/misc'
import { isFunction, isUndefined } from './../common/util/check'
import { remAttr, setAttr } from './../common/util/dom'
import setEventHandler from './setEventHandler'
import {
initChildTag,
makeVirtual,
arrayishRem... | JavaScript | 0.000001 | @@ -2824,16 +2824,70 @@
, this)%0A
+ // TODO: the toggle value should be cached as well!%0A
if (ol
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.