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 |
|---|---|---|---|---|---|---|---|
74dbfadc4d686a8e6b2c097c50a0a23dd3537ba6 | fix test | kolibri/core/assets/test/views/auth-message.spec.js | kolibri/core/assets/test/views/auth-message.spec.js | /* eslint-env mocha */
import Vue from 'vue-test';
import assert from 'assert';
import AuthMessage from '../../src/views/auth-message.vue';
import { shallow } from 'avoriaz';
function makeWrapper(options) {
return shallow(AuthMessage, options);
}
function getElements(wrapper) {
return {
headerText: () =>
... | JavaScript | 0.000002 | @@ -847,29 +847,8 @@
in
-as a Registered User
to v
|
a42e5a1e752ef6d1a0eaf713cecf909974060620 | Capitalize component | src/scenes/home/landing/topcodeBanner/topcodeBanner.js | src/scenes/home/landing/topcodeBanner/topcodeBanner.js | import React from 'react';
import topcodeLogo from 'images/partnerLogos/logo_topcoder_with_name.svg';
import AdBanner from 'shared/components/adBanner/adBanner';
const topcodeBanner = () => (
<AdBanner
link="http://op.co.de/topcoder-veterans"
imageSource={topcodeLogo}
altText="Top Coder"
adBannerText... | JavaScript | 0.999959 | @@ -162,17 +162,17 @@
%0A%0Aconst
-t
+T
opcodeBa
@@ -575,17 +575,17 @@
default
-t
+T
opcodeBa
|
86cc3930552cda0106a296902eb64e364621d5b8 | Fix email validation (#63) | src/services/provider/validations/batch-notify-data.js | src/services/provider/validations/batch-notify-data.js | const ajv = require('ajv')();
const schema = {
required: ['providers'],
properties: {
recipients: { type: 'array' },
providers: {
minProperties: 1,
type: 'object',
properties: {
email: {
type: 'object',
required: ['template'],
properties: {
... | JavaScript | 0.000143 | @@ -249,42 +249,8 @@
t',%0A
- required: %5B'template'%5D,%0A
|
cdd7e35a663d06940e7a2e611c28758d3d93f6f3 | add cursor pointer to requests | lib/ui/components/request.js | lib/ui/components/request.js | import 'ui/assets/stylesheets/components/request.scss';
import React from 'react';
function mockedState(mocked) {
return (
<span style={{ position: 'relative'}}>
{ mocked ? (
<div style={{ background: '#03A9F4', borderRadius: '50%', width: '28px', height: '28px', color: '#fff', position: 'relativ... | JavaScript | 0.000001 | @@ -613,16 +613,43 @@
eClick %7D
+ className=%22cursor-pointer%22
style=%7B
|
12a197dff1d54068ce09bed2b389105ddc97bed1 | Add extra replacements in interpolateName | lib/utils/interpolateName.js | lib/utils/interpolateName.js | var interpolate = require('loader-utils').interpolateName;
/**
* Interpolates a filename template using multiple placeholders.
*
* @see https://github.com/webpack/loader-utils#interpolatename
* @param {string} filename Name with optional pattern placeholders
* @param {Object} options
* @param {string} options.pa... | JavaScript | 0.00003 | @@ -450,16 +450,120 @@
content%0A
+ * @param %7BObject%7D %5Boptions.replacements%5D Extra replacements, e.g %7B'%5Bfoo%5D': 'bar'%7D%0A * @returns %7Bstring%7D%0A
*/%0Afunc
@@ -606,22 +606,34 @@
ns) %7B%0A
-return
+var interpolated =
interpo
@@ -743,16 +743,225 @@
nt%0A %7D);
+%0A%0A if (options.replacement... |
04a0bdb6000b14204ce635ba84931375d955b10d | fix eslint | lib/waterline-data-source.js | lib/waterline-data-source.js | 'use strict';
const _ = require('lodash');
const Bb = require('bluebird');
class WaterlineDs {
constructor(ModelClass) {
this.ModelClass = ModelClass;
}
toObject(model) {
if (_.isArray(model)) {
if (model.length > 0) return model[0];
else return null;
} else return model;
}
_addQW... | JavaScript | 0.000874 | @@ -1767,19 +1767,32 @@
doc) &&
-doc
+Object.prototype
.hasOwnP
@@ -1798,17 +1798,27 @@
Property
-(
+.call(doc,
'associa
|
4edfa8b1f1d39596d234f05c4ec5f79b448ddc9b | fix empty window without a specific file will raise error | panel/page.js | panel/page.js | (() => {
'use strict';
const Electron = require('electron');
const ipcRenderer = Electron.ipcRenderer;
/* global Editor */
const Fs = require('fire-fs');
const Path = require('fire-path');
const CodeEditor = require('./editor.js');
const enginePath = Editor.url('unpack://utils/api/engine');
requir... | JavaScript | 0 | @@ -420,24 +420,68 @@
mClose () %7B%0A
+ if (!codeEditor)%7B%0A return 2;%0A %7D%0A
var dirt
@@ -3306,24 +3306,67 @@
result ) %7B%0A
+ if (!codeEditor) %7B%0A return;%0A %7D%0A
if ( cod
@@ -3395,24 +3395,24 @@
lt.uuid ) %7B%0A
-
return
@@ -3849,24 +3849,67 @@
results ) %7B%0A... |
cb279ecddcaeb225aa5532e1f9b81870d3d0a47f | Fix whitespace formatting in failing test | packages/heroku-cli-plugin-certs-v5/test/commands/certs/index.js | packages/heroku-cli-plugin-certs-v5/test/commands/certs/index.js | 'use strict';
let expect = require('chai').expect;
let nock = require('nock');
let certs = require('../../../commands/certs/index.js');
let endpoint = require('../../stubs/sni-endpoints.js').endpoint;
let endpoint2 = require('../../stubs/sni-endpoints.js').endpoint2;
describe('heroku certs', f... | JavaScript | 0.002912 | @@ -953,16 +953,18 @@
C False
+
%0Aakita-7
@@ -1036,16 +1036,19 @@
TC True
+
%0A%60);%0A
|
f98a85396d39b7e9ad7d7533dcd129d05d73d839 | Stop using ContainerView | lib/ember-test-helpers/test-module-for-component.js | lib/ember-test-helpers/test-module-for-component.js | import TestModule from './test-module';
import Ember from 'ember';
import { getResolver } from './test-resolver';
export default TestModule.extend({
init: function(componentName, description, callbacks) {
// Allow `description` to be omitted
if (!callbacks && typeof description === 'object') {
callback... | JavaScript | 0 | @@ -2195,75 +2195,17 @@
var
-containerView = Ember.ContainerView.create(%7Bcontainer: container%7D);
+subject;%0A
%0A
@@ -2233,28 +2233,24 @@
()%7B%0A
-var
subject = co
@@ -2278,64 +2278,15 @@
-containerView.pushObject(subject);%0A containerView
+subject
.app
@@ -2429,21 +2429,15 @@
oke(... |
53a0e2eb90d8cd96dd0732d079c19ec0225699cb | Remove single-use variable | lib/node_modules/@stdlib/repl/lib/display_prompt.js | lib/node_modules/@stdlib/repl/lib/display_prompt.js | /**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.000255 | @@ -1082,21 +1082,8 @@
) %7B%0A
-%09var prompt;%0A
%09var
@@ -1262,35 +1262,8 @@
%09%09%7D%0A
-%09%09prompt = repl._prompt();%0A
%09%09re
@@ -1281,22 +1281,30 @@
Prompt(
+repl._
prompt
+()
);%0A%09%09re
|
6d4fdd9cf0937c1b09ca54ea569d36610d33f72e | Fix variable name | lib/node_modules/@stdlib/simulate/iter/test/test.js | lib/node_modules/@stdlib/simulate/iter/test/test.js | /**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.99981 | @@ -725,20 +725,18 @@
);%0Avar
-rand
+ns
= requi
@@ -867,20 +867,18 @@
typeof
-rand
+ns
, 'objec
@@ -1029,12 +1029,10 @@
ys(
-rand
+ns
);%0A
|
916f8e0bcf562380b1c5127862a5c22e71cdc54a | simplify loading tracker setup | react/components-communicate-through-reflux/src/flux/stores/Shop/ShopStore.js | react/components-communicate-through-reflux/src/flux/stores/Shop/ShopStore.js | // libs
import Reflux from 'reflux';
import _ from 'lodash';
// flux
import ShopActions from '../../actions/Shop/ShopActions';
// utils
import {log, error} from '../../../utils';
import {fetchShopData} from '../../../communication/shop';
class ShopStore extends Reflux.Store {
constructor() {
super();
... | JavaScript | 0.000001 | @@ -703,24 +703,63 @@
ng data');%0A%0A
+ // Action handles data loading%0A
//Sh
@@ -786,16 +786,16 @@
;%0A
-//
+//
retu
@@ -799,16 +799,54 @@
eturn;%0A%0A
+ // Store handles data loading%0A
@@ -1774,17 +1774,16 @@
stamp: +
-
new Date
@@ -1802,24 +1802,69 @@
%7D)... |
f3269f4592539c40e246cd6ebdb35a5c9f93caf6 | Fix lazy choice tree will not automatically expanded | src/Sylius/Bundle/AdminBundle/Resources/private/js/sylius-lazy-choice-tree.js | src/Sylius/Bundle/AdminBundle/Resources/private/js/sylius-lazy-choice-tree.js | /*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import 'semantic-ui-css/components/api';
import 'semantic-ui-css/components/checkbox';
import $ from 'jquery'... | JavaScript | 0.000001 | @@ -2885,24 +2885,68 @@
parentCode);
+%0A%0A leafContainerElement.toggle();
%0A %7D
|
60c2d4620be32a9abd20810af15758cc79699233 | Add test for infinite vs static article | desktop/apps/article2/components/__tests__/App.test.js | desktop/apps/article2/components/__tests__/App.test.js | import 'jsdom-global/register'
import * as _ from 'underscore'
import App from 'desktop/apps/article2/components/App'
import InfiniteScrollArticle from '../InfiniteScrollArticle'
import React from 'react'
import fixtures from 'desktop/test/helpers/fixtures.coffee'
import sinon from 'sinon'
import { shallow, mount } fro... | JavaScript | 0 | @@ -150,32 +150,137 @@
om '
-../InfiniteScrollArticle
+desktop/apps/article2/components/InfiniteScrollArticle'%0Aimport %7B Article %7D from '@artsy/reaction-force/dist/Components/Publishing
'%0Aim
@@ -1293,48 +1293,540 @@
red.
-html().should.containEql('FeatureLayout'
+find(InfiniteScrollArticle).length.should.equa... |
687375fe1635c77dedcdc248f00fceed5eea019d | Fix typo | test/lib/orchestrator/CreateMonitorOrchestratorTest.js | test/lib/orchestrator/CreateMonitorOrchestratorTest.js | const td = require('testdouble');
const chai = require('chai');
const tdChai = require('testdouble-chai');
chai.should();
chai.use(tdChai(td));
const createMonitorOrchestratorFactory = require('../../../lib/orchestrator/createMonitorOrchestrator');
describe('CreateMonitorOrchestrator', function () {
const monit... | JavaScript | 0.999999 | @@ -215,17 +215,17 @@
strator/
-c
+C
reateMon
|
7324091762133ab32af0eef81a24971e4dbaef97 | fix missing dep | src/js/modules/wallet/controllers/sweep-coins-modal/sweep-coins-modal.ctrl.js | src/js/modules/wallet/controllers/sweep-coins-modal/sweep-coins-modal.ctrl.js | (function () {
"use strict";
angular.module("blocktrail.wallet")
.controller("SweepCoinsModalController", SweepCoinsModalController);
function SweepCoinsModalController($scope, $modalInstance, sweeperService, sdkService, Wallet, CONFIG, dialogService,
$trans... | JavaScript | 0.000081 | @@ -318,16 +318,26 @@
anslate,
+ $timeout,
$log, t
|
ccacfbfcd43f72c881ca8bbbccbd233c7c3a038c | set isInstalling in MainInstallButton. fixes #3523 (#3524) | frontend/src/app/components/MainInstallButton/index.js | frontend/src/app/components/MainInstallButton/index.js | // @flow
import classnames from "classnames";
import { Localized } from "fluent-react/compat";
import React from "react";
import LayoutWrapper from "../LayoutWrapper";
import LocalizedHtml from "../LocalizedHtml";
import "./index.scss";
import config from "../../config";
import type { MainInstallButtonProps } from... | JavaScript | 0 | @@ -1579,16 +1579,61 @@
else %7B%0A
+ this.setState(%7B isInstalling: true %7D);%0A
co
@@ -1795,38 +1795,27 @@
-install.catch(err =%3E %7B%0A
+const after = () =%3E
thi
@@ -1853,25 +1853,49 @@
e %7D);%0A
-%7D
+install.then(after, after
);%0A %7D%0A %7D
|
7e015c29f3dfdd17b8b3b96e36511b0e5c325849 | #335 fix gender specific text in family trees | js/modules/main/src/directives/itemPreviewDirective.js | js/modules/main/src/directives/itemPreviewDirective.js |
angular.module('main').directive('itemPreview', function() {
return {
restrict: 'E',
templateUrl: 'templates/main/item-preview.html',
scope: {
previewData: '=',
hideText: '=',
removable: '=',
itemSource: '@'
},
link: function(scope, element) {
/*building person data*/
var ch... | JavaScript | 0.999705 | @@ -818,9 +818,11 @@
ata.
-G
+sex
;%0A%09%09
@@ -1117,16 +1117,17 @@
nfo = ''
+;
%0A
|
b19ceed3a9444773f61a29990773ae40e68947db | Remove the input for WebGL | misc/webapi-sanityapp-w3c-tests/tests/WebGL/js/main.js | misc/webapi-sanityapp-w3c-tests/tests/WebGL/js/main.js | /*
Copyright (c) 2013 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redist... | JavaScript | 0.000004 | @@ -3763,13 +3763,87 @@
utton();
+%0A%0A /* Hide input*/%0A $(%22#slider-1%22).hide();%0A $(%22#speed-1%22).hide();
%0A%7D);%0A
|
f78f9037993c81e91f69aa30a1d0b0644a92b06d | implement addBelongsTo on DS.RESTSerializer | packages/ember-data/lib/serializers/rest_serializer.js | packages/ember-data/lib/serializers/rest_serializer.js | DS.RESTSerializer = DS.Serializer.create({
keyForBelongsTo: function(type, name) {
return this.keyForAttributeName(type, name) + "_id";
},
keyForAttributeName: function(type, name) {
return Ember.String.decamelize(name);
}
});
| JavaScript | 0.000001 | @@ -1,8 +1,30 @@
+var get = Ember.get;%0A%0A
DS.RESTS
@@ -251,16 +251,235 @@
(name);%0A
+ %7D,%0A%0A addBelongsTo: function(hash, record, key, relationship) %7B%0A var hashKey = this._keyForBelongsTo(record.constructor, key),%0A id = get(record, key+'.id');%0A%0A if (!Ember.none(id)) %7B hash%5BhashKey... |
690751ca5a3a5d5da694e94f8f52ea9018c44eee | Fix lints | packages/lesswrong/lib/collections/sequences/schema.js | packages/lesswrong/lib/collections/sequences/schema.js | import { Components } from 'meteor/vulcan:core';
import Users from 'meteor/vulcan:users';
import { generateIdResolverSingle } from '../../modules/utils/schemaUtils'
const schema = {
// default properties
_id: {
type: String,
optional: true,
viewableBy: ['guests'],
},
createdAt: {
type: Date,... | JavaScript | 0.000006 | @@ -46,49 +46,8 @@
e';%0A
-import Users from 'meteor/vulcan:users';%0A
impo
|
e318683ddd833aa901cf0ac795f083c049a79d41 | Fix SelectedFilters and URLParams behavior - closes #497 | packages/web/src/components/basic/URLParamsProvider.js | packages/web/src/components/basic/URLParamsProvider.js | import React, { Component } from 'react';
import { setHeaders, setValue } from '@appbaseio/reactivecore/lib/actions';
import types from '@appbaseio/reactivecore/lib/utils/types';
import { isEqual } from '@appbaseio/reactivecore/lib/utils/helper';
import Base from '../../styles/Base';
import { connect } from '../../uti... | JavaScript | 0 | @@ -1334,16 +1334,79 @@
Values);
+%0A%09%09%09const urlComponents = Array.from(this.props.params.keys());
%0A%0A%09%09%09cur
@@ -1966,24 +1966,306 @@
();%0A%09%09%09%09%09%09%7D%0A
+%09%09%09%09%09%7D else if (%0A%09%09%09%09%09%09!this.hasValidValue(nextProps.selectedValues%5Bcomponent%5D)%0A%09%09%09%09%09%09&& ur... |
5817670702949e6df51995bf72046738610ce10c | Remove redundant time model from bubble chart config | preview/assets/js/toolconfigs/BubbleChart-gapminder.js | preview/assets/js/toolconfigs/BubbleChart-gapminder.js | var VIZABI_MODEL = {
"state": {
"time": {
"dim": "time"
},
"entities": {
"dim": "geo",
"show": {
"is--country": true
}
},
"entities_colorlegend": {
"dim": "world_4region"
},
"entities_tags": {
"dim": "tag"
},
"time": {
"start... | JavaScript | 0.000001 | @@ -32,49 +32,8 @@
: %7B%0A
- %22time%22: %7B%0A %22dim%22: %22time%22%0A %7D,%0A
|
7591477e8099aa924fa017a3caeddaf25e1c55e9 | add label variant theme-data | packages/theme-data/src/baseTheme/components/label.js | packages/theme-data/src/baseTheme/components/label.js | import {
COLOR,
FONT_SIZE,
FONT_WEIGHT,
FONT_FAMILY,
LINE_HEIGHT
} from "../../consts/types";
export default {
"label.fontSize": {
type: FONT_SIZE,
value: {
ref: "density.fontSizes.medium"
}
},
"label.fontWeight": {
type: FONT_WEIGHT,
value: {
ref: "basics.fontWeights.re... | JavaScript | 0 | @@ -212,32 +212,102 @@
ium%22%0A %7D%0A %7D,%0A
+ %22label.top.fontSize%22: %7B%0A type: FONT_SIZE,%0A value: %2212px%22%0A %7D,%0A
%22label.fontWei
|
6f61f74a34ed3f6a220a910bed587627a9f12d5b | Fix remove permission strings | packages/vulcan-core/lib/modules/default_mutations.js | packages/vulcan-core/lib/modules/default_mutations.js | /*
Default mutations
*/
import { newMutation, editMutation, removeMutation, Utils } from 'meteor/vulcan:lib';
import Users from 'meteor/vulcan:users';
export const getDefaultMutations = collectionName => ({
// mutation for inserting a new document
new: {
name: `${collectionName}New`,
// chec... | JavaScript | 0 | @@ -2684,32 +2684,46 @@
$%7BcollectionName
+.toLowerCase()
%7D.remove.own%60) :
@@ -2758,16 +2758,30 @@
tionName
+.toLowerCase()
%7D.remove
@@ -3224,8 +3224,9 @@
%7D,%0A%0A%7D);
+%0A
|
7b314e91a1c05249752cc15dc342192ddd8b7fb1 | Update blockchain.js | public/js/blockchain.js | public/js/blockchain.js | /*eslint-env browser */
/* global formatDate */
/* global $ */
var block = 0;
var blocks = [];
$(document).on("ready", function() {
setInterval(function(){
move_on_down();
}, 2000);
var clicked = false;
$(document).on("click", ".block", function(event){
clicked = !clicked;
show_details(Number($(this).html()... | JavaScript | 0.000004 | @@ -533,79 +533,8 @@
;%0A%09%0A
-%09$(%22#contentTable%22).css(%22height%22,$(%22#dashboardTable%22).height() + 125);%0A
%7D);%0A
|
755df3b33d3fe9eb9d92b398cf12149b194023ae | Tapify geocoder-data | test/geocode-data.test.js | test/geocode-data.test.js | var fs = require('fs');
var assert = require('assert');
var util = require('util');
var Carmen = require('..');
var feature = require('../lib/util/feature');
var tokenize = require('../lib/util/termops').tokenize;
var MBTiles = require('mbtiles');
var carmen = new Carmen({
country: new MBTiles(__dirname + '/../til... | JavaScript | 0.999622 | @@ -21,40 +21,8 @@
');%0A
-var assert = require('assert');%0A
var
@@ -208,16 +208,44 @@
tiles');
+%0Avar test = require('tape');
%0A%0Avar ca
@@ -1732,16 +1732,12 @@
-describe
+test
('ge
@@ -1753,36 +1753,33 @@
type, function(
-done
+t
) %7B%0A var
@@ -1981,24 +1981,25 @@
%7D;%0A
+%0A
... |
1ceb2ae352121a9dccb50edb0ba43799c78e6735 | Print Python tracebacks in CloudPebble when DEBUG=True | root/static/common/js/ajax.js | root/static/common/js/ajax.js | Ajax = (function() {
/**
* Make a Deferred wrapper
* @param {string} success_key The name of the key in the JSON result object which must have a truthy
* value for the request to be considered successful.
* @constructor
*/
var Wrapper = function (success_key) {
/** Wrap a jQuery... | JavaScript | 0.999967 | @@ -1285,24 +1285,263 @@
, reject) %7B%0A
+ function handle_traceback(tb) %7B%0A // Print a Python traceback into the console, if it exists.%0A if (tb) %7B%0A console.log(tb);%0A %7D%0A %7D%0A
@@... |
68505b154dc31d9e90f768c8c4263fc46c5c6615 | fix #ddgc_detail show in chrom{e,ium} | share/spice/local/local.js | share/spice/local/local.js | var ddg_spice_local_map;
var ddg_spice_local_markers = [];
var ddg_spice_local_current = 0;
function ddg_spice_local(api_response) {
console.log(api_response);
if (!api_response || api_response.length == 0) return;
for (var i in api_response.businesses)
api_response.businesses[i].index = i;
v... | JavaScript | 0 | @@ -1483,37 +1483,31 @@
al')
-;%0A $('#ddgc_detail').show(
+.css('display', 'block'
);%0A
|
15e21ed4f05e55eb0de4d711dfe5adab91a4a6fa | remove host | test/identity-provider.js | test/identity-provider.js | var assert = require('chai').assert
var fs = require('fs')
var $rdf = require('rdflib')
var request = require('request')
var S = require('string')
var supertest = require('supertest')
var async = require('async')
// Helper functions for the FS
var rm = require('./test-utils').rm
var write = require('./test-utils').wri... | JavaScript | 0.000001 | @@ -778,36 +778,8 @@
true
-,%0A host: 'localhost:3457'
%0A %7D
|
4f69dc6044181f930c37368669798e863425e4b6 | fix stylistic issues | source/library/index.js | source/library/index.js | import boilerplate from 'boilerplate-server';
import findRoot from 'find-root';
async function server (opts) {
let options = Object.assign({
'name': 'patternplate-client',
'cwd': findRoot(__dirname)
}, opts);
return await boilerplate(options);
}
export default server;
| JavaScript | 0.004766 | @@ -95,17 +95,16 @@
n server
-
(opts) %7B
@@ -105,18 +105,20 @@
pts) %7B%0A%09
-le
+cons
t option
@@ -125,33 +125,16 @@
s =
-Object.assign(
%7B%0A%09%09
-%09
-'
name
-'
: 'p
@@ -160,14 +160,11 @@
,%0A%09%09
-%09'
cwd
-'
: fi
@@ -184,19 +184,22 @@
ame)
+,
%0A%09%09
-%7D,
+...
opts
-)
+%0A%09%7D
;%0A%0A... |
62d4b949b3ec5536f1e10c76c003da85818c21d9 | fix tmp dir location | test/io/file/LMDB.spec.js | test/io/file/LMDB.spec.js | const
helper = require('../../helper'),
chai = require('chai'),
path = require('path'),
chance = new (require('chance'))(),
uuidValidator = require('uuid-validate')
chai.should()
const LMDB = require(helper.requirePath('io/file')).LMDB,
TypedBufferView = require(helper.requirePath('data/structure')).TypedB... | JavaScript | 0.000003 | @@ -83,24 +83,46 @@
re('path'),%0A
+ os = require('os'),%0A
chance = n
@@ -249,20 +249,18 @@
ath('io/
-file
+db
')).LMDB
@@ -428,26 +428,27 @@
ath.
-resolve(%60/var/tmp/
+join(os.tmpdir(), %60
mtk-
|
8152ac9a48112390c199fc9dbd71b1ad68d092c4 | add `skip` option to `reportAndFix` signature | test/lib/assertHelpers.js | test/lib/assertHelpers.js | var expect = require('chai').expect;
var Checker = require('../../lib/checker');
var AssertHelpers = {
/**
* Assert that the input fails with a certain number of errors and when fixed matches output with no errors.
*
* @param {Object} options
* @param {String} options.name the name of the test... | JavaScript | 0.000001 | @@ -1892,24 +1892,108 @@
e, check);%0A%0A
+ %7D else if (options.skip) %7B%0A describe.skip(options.name, check);%0A%0A
%7D el
|
43fb1b01177714be583126189ff7a98bef06ba90 | Update details spec tests | test/libs/details.spec.js | test/libs/details.spec.js | 'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const details = require('../../app/libs/details');
// Define the available functions
const detailsFunctions = [
'tv',
'movie'
];
// Convert string to camelCase
function camelCase(string) {
return string.rep... | JavaScript | 0 | @@ -219,10 +219,12 @@
%0A '
-tv
+show
',%0A
|
7821f335efd9f3d1d99e013abe632e1ad21b6d38 | remove test | test/parser/nodes-test.js | test/parser/nodes-test.js | var parser = require("../../lib/parser2/parser.js"),
expect = require("expect.js");
describe("parser/node#", function () {
it("can parse a node without children", function () {
parser.parse("<a>");
});
it("accepts many types of characters in the tag name", function () {
parser.parse("<a>");
par... | JavaScript | 0.000026 | @@ -2852,147 +2852,8 @@
%7D)
-%0A %7D);%0A%0A it(%22can parse a text binding%22, function () %7B%0A var ast = parser.parse(%22text%7B%7B ab %7D%7D%22);%0A expect(ast%5B1%5D.type).to.be(%22binding%22)
;%0A
|
9672073a981ce9ebb88f7911854518ee9d0225ca | Change test result to test travis ci notification | test/reducers/sum.spec.js | test/reducers/sum.spec.js | const sum = require('./sum');
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
}); | JavaScript | 0 | @@ -87,15 +87,15 @@
)).toBe(
-3
+4
);%0A%7D);
|
97b51ca3ecaeafa57b3476ba126211144d84a972 | Remove embedding event handler. | source/website/embed.js | source/website/embed.js | import { CreateModelUrlParameters } from '../engine/parameters/parameterlist.js';
import { TransformFileHostUrls } from '../engine/io/fileutils.js';
import { ImportSettings } from '../engine/import/importer.js';
import { AddDomElement } from '../engine/viewer/domutils.js';
import { Viewer } from '../engine/viewer/viewe... | JavaScript | 0 | @@ -494,57 +494,8 @@
s';%0A
-import %7B HandleEvent %7D from './eventhandler.js';%0A
impo
@@ -3637,187 +3637,8 @@
%09%7D);
-%0A%0A if (window.parent && window.parent.location && window.parent.location !== window.location) %7B%0A HandleEvent ('embedded', window.parent.location.href);%0A %7D
... |
41f9ea3aa73d5ed2c4bb4758730a84539d4d5988 | build bump | sites/app/mobile-config.js | sites/app/mobile-config.js | App.info({
id: 'cc.newspring.newspringapp',
name: 'NewSpring',
description: 'App for NewSpring Church',
author: 'NewSpring Church',
email: 'web@newspring.cc',
website: 'https://newspring.cc',
version: '0.0.3',
buildNumber: '57'
});
App.icons({
// iOS
'iphone_2x': 'assets/icons/ios/icon-60x60@2x.png... | JavaScript | 0 | @@ -234,17 +234,17 @@
mber: '5
-7
+8
'%0A%7D);%0A%0AA
|
f42c91f15f9258c2193f5ee3abe7baab5264637c | Fix `Module.once` getting only one argument | skeleton/modules/module.js | skeleton/modules/module.js | import electron from 'electron';
const { ipcMain } = electron;
// Place to store the reference to the renderer process.
let renderer = null;
/**
* Simple abstraction over electron's IPC. Ensures modules will not conflict with each other by
* providing events namespace. It is also a security layer as it is the onl... | JavaScript | 0 | @@ -4049,32 +4049,112 @@
allback to fire%0A
+ * @param %7Bboolean%7D response - whether we are listening for fetch response%0A
* @public%0A
@@ -4340,24 +4340,27 @@
eivedEvent,
+...
args) =%3E %7B%0A
@@ -4439,16 +4439,19 @@
dEvent,
+...
args);%0A
|
46c0e6cf4b7b38f7a2b5dcaca7c0ba46fa7a3902 | add up | r-ng/read-ng.js | r-ng/read-ng.js | /**
* Created by lja on 2016-2-24.
*/
(function (window, document, undefined) {
function minErr(module, ErrorConstructor) {
ErrorConstructor = ErrorConstructor || Error;
return function () {
var SKIP_INDEXES = 2;
var templateArgs = arguments,
code = templateArgs[0],
message = '[' + (module ? mod... | JavaScript | 0.000048 | @@ -678,16 +678,17 @@
%09%09%09%7D);%0A%0A
+%0A
%09%09%09messa
|
b72e3bc512c711a0e5139e0ef1fa9252a74f3e03 | make branch name bucket-safe | getCache.js | getCache.js | 'use strict';
var path = require('path');
var fs = require('fs');
var os = require('os');
var Auth = require('sivart-GCE/Auth');
var printf = require('util').format;
var nodeVersion = fs.readFileSync('/tmp/sivart/logs/nodejs.version', 'utf8').replace(/(\n|\r)+$/, '');
// Get info
var repoName = process.argv[2];
var b... | JavaScript | 0.005019 | @@ -436,19 +436,108 @@
ame.
-replace(/%5C/
+toLowerCase().replace(/%5B%5E0-9a-z-%5D/g, '-');%0Avar safeBranch = branch.toLowerCase().replace(/%5B%5E0-9a-z-%5D
/g,
@@ -580,17 +580,21 @@
feRepo,
-b
+safeB
ranch%5D.j
|
e45f38e4ede2eb961ebdfc5a53531d2ffc5a8c81 | fix typo | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
var datafr={
title: 'Bridge Symphony',
active:'home',
lang:'1',
carousel_h1_1:'Bridge Symphony, le meilleur atout des bridgeurs',
carousel_caption_1:'En Savoir Plus',
feature1_h2:'Le bridge à portée de mains ',
feature1_h2_sub: 'Pour Ensei... | JavaScript | 0.999991 | @@ -993,17 +993,17 @@
son int
-e
+%C3%A9
r%C3%A8t. Bri
|
2cb90bde70ff1f0bf8ad890a942a7ab0feb9ea32 | Update index.js | routes/index.js | routes/index.js | var express = require('express');
var fs = require('file-system');
//var MongoClient = require('mongodb').MongoClient ;
//var monkvar = require('monk');
var router = express.Router();
/*var uri = "mongodb://akshaykumargowdar:Ak$h@y94@mycluster-shard-00-00-rplbd.mongodb.net:27017,mycluster-shard-00-01-rplbd.mongodb.net... | JavaScript | 0.000002 | @@ -60,18 +60,16 @@
stem');%0A
-//
var Mong
@@ -111,18 +111,16 @@
lient ;%0A
-//
var monk
@@ -174,18 +174,16 @@
ter();%0A%0A
-/*
var uri
@@ -509,18 +509,16 @@
%22);%0A%7D);%0A
-*/
%0Avar Tex
|
a0d4fa11b19ab6e0914588646ad35e8d56c614e7 | update title | routes/index.js | routes/index.js | var User = require('../models/user');
var Article = require('../models/article');
var md5 = require('../lib/md5');
var marked = require('marked');
var moment = require('moment');
// 检测登陆状态
function checkLogin(req, res, next) {
if (!req.session.user) {
req.flash('info', '未登录!');
return res.redirect('/login');... | JavaScript | 0.000001 | @@ -771,18 +771,20 @@
title: '
-%E4%B8%BB%E9%A1%B5
+%E4%BA%91%E6%B2%90%E5%B0%8F%E5%B1%8B
',%0A
|
7d81f66ab7280fd44ea968e29d61453eeae11870 | task_id as Numberfor strict comparison | routes/index.js | routes/index.js | #!/usr/bin/env node
var Firebase = require('firebase'),
url = require("url");
var dbBaseUrl = "https://onedone-dev.firebaseIO.com";
function renderIndex(res, params) {
"use strict";
params.title = "Mozilla One and Done";
res.render("tasks", params);
}
function getTaskById(id, data) {
"use strict";
v... | JavaScript | 0.999618 | @@ -786,16 +786,23 @@
sk_id =
+Number(
q.task_i
@@ -802,22 +802,22 @@
.task_id
+)
%7C%7C
-%22%22
+0
;%0A%0A //f
@@ -1611,17 +1611,16 @@
kData);%0A
-%0A
|
78b8fe1e24f94970cc120929cf1ee7f44bb306ed | Update index.js | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
var fs = require('fs');
var request = require('request');
var cheerio = require('cheerio');
/* GET home page. */
router.get('/home', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/scrape', function(req, res){
... | JavaScript | 0.000002 | @@ -1182,30 +1182,30 @@
end(
-'Check your console!')
+JSON.stringify(json));
%0A
|
293900c4b28fba3d2021d973bd336588a2552222 | Use eval to serialize JSON | routes/index.js | routes/index.js | var GITHUB_TOKEN = process.env.GITHUB_TOKEN;
var FILE_NAME = "index.htm";
var FOLDER_NAME = "./tmp";
var BRANCH_NAME = "gh-pages";
var REFS = "refs/heads/" + BRANCH_NAME;
var express = require('express');
var Git = require("nodegit");
var fs = require('fs');
var md = require("markdown").markdown;
var logger = require(... | JavaScript | 0.000018 | @@ -3656,27 +3656,31 @@
N.parse(
+eval(
script)
+)
;%0A
-
%0A logge
|
3e3ef99773a3e0dd6207f2e12458364a204182bf | Update index.js | routes/index.js | routes/index.js | 'use strict';
// nitty gritty //
var express = require('express');
var braintree = require('braintree');
var router = express.Router(); // eslint-disable-line new-cap
var gateway = require('../lib/gateway');
// var TRANSACTION_SUCCESS_STATUSES = [
// braintree.Transaction.Status.Authorizing,
// braintree.Transact... | JavaScript | 0.000002 | @@ -3596,32 +3596,33 @@
ion (err, result
+s
) %7B%0A
@@ -3623,32 +3623,33 @@
if (result
+s
.success %7C%7C resu
@@ -3646,24 +3646,25 @@
ss %7C%7C result
+s
.subscriptio
@@ -3716,16 +3716,17 @@
+ result
+s
.subscri
@@ -3787,32 +3787,33 @@
nErrors = result
+s
.errors.deepErro
|
8ce788a6a8e9d2fe64ed4f22aacbc120e0d3987e | change to png. | routes/index.js | routes/index.js | var express = require('express');
var path = require('path');
var fs = require('fs');
var join = path.join;
var multer = require('multer'); // v1.0.5
var upload = multer({dest: 'uploads/',
limits: {fields: 10,fileSize: 10000000,files: 1}
});
var gm = require('gm');
var imageMagick = gm.subClass({imageMagick: true});
... | JavaScript | 0.000001 | @@ -682,16 +682,18 @@
png';%0A
+//
photopat
@@ -745,24 +745,94 @@
photo.path);
+%0A photopath = join('/Users/yutanaka/git/photo-sender/','nodejs.png');
%0A%0A console.
|
60b0179e1d2c9d16450d11155cdfb9cc684a8ac8 | implement `create` method on backend | routes/index.js | routes/index.js | var fs = require('fs');
var jsonPath = './spec/data.json';
var routes = {};
routes.index = function ( req, res, next ){
res.send('Sam\'s blog');
};
routes.getAll = function ( req, res, next ){
fs.readFile(jsonPath, 'utf8', function (err, data) {
if (err) throw err;
var obj = JSON.parse(data);
... | JavaScript | 0.000004 | @@ -387,40 +387,854 @@
res
-, next )%7B%0A res.redirect( '/'
+ )%7B%0A var newData, jsonData;%0A%0A req.on('data', function(chunk) %7B%0A newData = JSON.parse(chunk.toString()).data;%0A //very simple validation%0A if (!newData %7C%7C !newData.title %7C%7C !newData.content)%7B%0A ... |
b74c41c9ebde1910089f9b6e4120676d881b6532 | save user locale in subscription meta data so we can send the receipts in the proper language | routes/index.js | routes/index.js | var httpRequest = require('request');
var stripe = require('./stripe');
var paypal = require('./paypal');
var routes = {
'signup': function(request, reply) {
var url = process.env.SIGNUP;
var transaction = request.payload || {};
if(transaction.locale !== 'en-US') {
url = url + '-' + transaction.loc... | JavaScript | 0 | @@ -1708,16 +1708,54 @@
on.state
+,%0A locale: transaction.locale
%0A
|
dee6c649fa263ef63e1f45fada0c8d7fceee73ee | set send mail | routes/index.js | routes/index.js |
/*
* GET home page.
*/
var config = require("../config");
var mailCfg = config.mail;
var receiver;
var mandrill = require('node-mandrill')(config.mandrill);
try {
receiver = JSON.parse(config.receiver);
} catch(e) {
receiver = "";
}
var userDB = require("../schemaDB");
var sendMail = function (to, subject, me... | JavaScript | 0.000003 | @@ -1557,18 +1557,16 @@
est%22;%0A%0A%09
-//
sendMail
|
5c91af71b92486eae2b1a801ca8fc2be6ae6760e | Update items.js | routes/items.js | routes/items.js | /*eslint-env node */
var http = require('http');
var db = require('./db');
db.initDB();
var USE_FASTCACHE = false;
/*
* To enable the load generator and 'improved' cache mechanism below:
* 1. remove the 'res.json({"success": 0, "fail": 0, "time": 0});' line
* 2. uncomment the remaining method body
*/
exports.loadT... | JavaScript | 0.000001 | @@ -337,24 +337,26 @@
eq, res) %7B%0A
+//
res.json(
@@ -394,18 +394,16 @@
%22: 0%7D);%0A
-/*
%0A USE
@@ -1242,18 +1242,16 @@
;%0A %7D%0A
-*/
%0A%7D;%0A%0A%0A//
|
81933fa3470a32b3ecd4b36fc11b622d8d348023 | Update the route name | routes/media.js | routes/media.js | module.exports = function(router) {
'use strict';
var Media = require('../models/Media');
router.route('/medias')
// get all the medias (accessed at GET http://localhost:port/api/medias)
.get(function(req, res) {
Media.find(function(err, models) {
if (err)
res.send(err);
r... | JavaScript | 0.999456 | @@ -109,17 +109,16 @@
('/media
-s
')%0A%0A
@@ -137,17 +137,16 @@
he media
-s
(access
@@ -182,25 +182,24 @@
rt/api/media
-s
)%0A .get(f
@@ -417,17 +417,16 @@
pi/media
-s
)%0A .p
@@ -909,25 +909,24 @@
oute('/media
-s
/:media_id')
@@ -1001,33 +1001,32 @@
t:port/api/media
-s
/:media_id)%0A
@@ -12... |
18363e5dfbdf87352a65fe5defbedb9c68f6debb | Change nate parser params and remove amount limit | routes/ranks.js | routes/ranks.js | /**
* @author Jade Yeom ysw0094@gmail.com
* @desc this module will get request ranking data from potal sites
* @required ../app.js, ../views/routes/index.js
*/
"use strict";
/** for ECMAScript6 **/
let cheerio = require('cheerio'),
request = require('request'),
feedparser = require('feedparser');
let de... | JavaScript | 0 | @@ -1655,72 +1655,42 @@
r: '
-ol#realTimeSearchWord %3E li %3E div.roll_txt %3E div:not(.rank_dummy)
+.kwd_list:not(.type_biz) %3E ol %3E li
',%0A
@@ -1844,34 +1844,59 @@
rank:
-''
+data.find(%22p %3E .icon %3E em%22)
,%0A st
@@ -1977,16 +1977,40 @@
('href')
+,%0A value: '',
%0A ... |
36d13f09d35adbb015d568ea575404c9c09370cf | Update listUsers | routes/users.js | routes/users.js | require( '../db' );
var mongoose = require('mongoose');
var user = mongoose.model( 'user' );
var bcrypt = require('bcrypt');
var date = new Date();
/*
* POST new user.
*/
exports.newUser = function(req, res) {
var hours = date.getHours();
var minutes = date.getMinutes();
var seconds = date.getSeconds();
... | JavaScript | 0 | @@ -210,18 +210,17 @@
res) %7B%0A
-
%0A
+
var ho
@@ -827,17 +827,18 @@
sts)%7B%0A
-%09
+
var user
@@ -1657,16 +1657,80 @@
res) %7B%0A
+ var q = req.query.username;%0A if(typeof q == 'undefined')%7B%0A %09
user.f
@@ -1760,17 +1760,20 @@
ser)%7B%0A
-%09
+
if (user
@@ -1777,18 +1777,22 @@
ser... |
4f0141a089a55186e5c51fe5ed0820765a6f4f0f | Fix metodo GET users | routes/users.js | routes/users.js | var express = require('express');
var router = express.Router();
var pg = require('pg');
var urlDB = process.env.DATABASE_URL;
pg.defaults.ssl = true;
/* GET users listing. */
router.get('/', function(req, res, next) {
// Get a Postgres client from the connection pool
pg.connect(urlDB, function(err, client, done)... | JavaScript | 0.000001 | @@ -1075,18 +1075,16 @@
-//
console.
@@ -1130,16 +1130,51 @@
ived');%0A
+ console.log(rows%5B1%5D.id);%0A
@@ -1256,20 +1256,30 @@
es.json(
+%7Busers :
rows
+%7D
);%0A
|
2832ec3df9e682b3f817a34eb944d20168f759ea | fix VERY BAD CODE | server/routes/index.js | server/routes/index.js | module.exports = (app) => {
// todoList Routes
app.route('/get-with-timeout')
.get((req, res) => {
res.send({code: 'SUCA'})
/*setTimeout(()=>{
res.send({code: 'SUCA'})
}, 40000)*/
})
};
| JavaScript | 0.000133 | @@ -113,36 +113,45 @@
res.send(%7B
-code: 'SUCA'
+ok: true, status: 200
%7D)%0A /*s
@@ -231,9 +231,8 @@
%7D)%0A%7D;%0A
-%0A
|
2e424fd72f6a1e484da6085238702c989879ad27 | Debug and tested server routes, successful post and get | server/server-logic.js | server/server-logic.js | const Q = require('q');
const RegularUsers = require('./../models/userSchema.js');
const BusinessUsers = require('./../models/businessUserSchema.js');
const Events = require('./../models/eventSchema.js');
const utils = require('../utils/utilities.js');
// Promisify a few mongoose methods with the `q` promise library
... | JavaScript | 0 | @@ -809,16 +809,72 @@
q.body;%0A
+ const tags = body.tags ? body.tags.split(' ') : '';
%0A pos
@@ -1039,30 +1039,8 @@
tags
-: body.tags.split(' ')
,%0A
|
c20612d525722e0684a8d5b810a0c983b2d23c28 | remove stripIndent | server/systemroutes.js | server/systemroutes.js | const express = require('express')
const packageFile = require('../package.json')
const defaultLog = require('./log')
const ldap = require('./ldap')
const rp = require('request-promise')
const version = require('../config/version')
const router = express.Router()
async function checkLdap ({log}) {
try {
const l... | JavaScript | 0.002369 | @@ -1807,25 +1807,10 @@
end(
-stripIndent%60%0A
+%60%0A
APPL
@@ -1869,20 +1869,16 @@
RROR'%7D%0A%0A
-
LDAP: $%7B
@@ -1925,20 +1925,16 @@
0%5D.msg%7D%0A
-
IP: $%7Bch
|
3bae09e953e149f02db51821f21432decf32cb9e | use idyll package.json config during build | packages/idyll-cli/bin/cmds/build.js | packages/idyll-cli/bin/cmds/build.js | #! /usr/bin/env node
const chalk = require('chalk');
const idyll = require('../../src/');
const debug = require('debug')('idyll:cli');
exports.command = 'build';
exports.description = 'Turn index.idl into output';
exports.builder = (yargs) => {
return buildOptions(yargs)
.usage('Usage: idyll build')
.exampl... | JavaScript | 0 | @@ -127,16 +127,97 @@
l:cli');
+%0Aconst fs = require('fs');%0Aconst pathBuilder = require('../../src/path-builder');
%0A%0Aexport
@@ -464,24 +464,27 @@
utput');%0A%7D%0A%0A
+%0A%0A%0A
exports.hand
@@ -969,14 +969,198 @@
y%5D;%0A
-
%7D)%0A%0A
+ const paths = pathBuilder(argv);%0A const inputPackage = fs.exist... |
1226d179b15e3baecccb3c771527f9ce13553f6e | Fix rotation bug in cupcake example. Add key/value camera prop for testing | examples/cupcake/cupcake.js | examples/cupcake/cupcake.js | //
// Basic React-THREE example using a custom 'Cupcake' Component which consists of two cubes
//
/* jshint strict: false */
/* global React : false */
/* global ReactTHREE : false */
var assetpath = function(filename) { return '../assets/' + filename; };
//
// Cupcake component is two cube meshes textured with cupc... | JavaScript | 0 | @@ -754,24 +754,173 @@
'Cupcake',%0A
+ propTypes: %7B%0A position: React.PropTypes.instanceOf(THREE.Vector3),%0A quaternion: React.PropTypes.instanceOf(THREE.Quaternion).isRequired%0A %7D,%0A
render: fu
@@ -969,21 +969,23 @@
%0A %7B
-rotat
+quatern
ion:this
@@ -991,21 +991,23 @@
s.props.
-rotat
+qu... |
19a1450e3514f98282447e5c9dc971c9e8f39ec2 | add square option | script/learn.js | script/learn.js | var
fs = require('fs'),
chars = require('../lib/chars'),
Canvas = require('canvas');
var
p4 = parseFloat(process.argv[2]),
p32 = parseFloat(process.argv[3]),
font = process.argv[4],
file = process.argv[5];
if (isNaN(p4) || isNaN(p32) ||
typeof font === 'undefined' ||
typeof file === ... | JavaScript | 0.000124 | @@ -92,24 +92,26 @@
var%0Ap4
+
= parseFloat
@@ -133,24 +133,26 @@
%5D),%0Ap32
+
= parseFloat
@@ -178,16 +178,18 @@
font
+
= proces
@@ -205,16 +205,20 @@
,%0Afile
+
= proces
@@ -226,16 +226,54 @@
.argv%5B5%5D
+,%0AuseSquare = Boolean(process.argv%5B6%5D)
;%0A%0Aif (i
@@ -445,16 +445,... |
28d0101331e67c6388b98978bd0e5ae8f856013d | add auth | scripts/auth.js | scripts/auth.js | 'use strict';
app.factory('Auth', function(FURL, $firebaseAuth, $firebase) {}); | JavaScript | 0.00001 | @@ -70,11 +70,77 @@
ebase) %7B
+%0A%0A%09var ref = new Firebase(FURL);%0A%09var auth = $firebaseAuth(ref);%0A%0A
%7D);
|
8d2ddb339e40cacc4ea15492bb50323bcc30fb28 | update boot in line with changes to boot sequence in ace | scripts/boot.js | scripts/boot.js | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | JavaScript | 0 | @@ -1781,36 +1781,24 @@
%22../lib%22: %5B
-%0A
%7B name: %22co
@@ -1830,24 +1830,16 @@
b: %22.%22 %7D
-%0A
%5D,%0A
@@ -1871,20 +1871,8 @@
%22: %5B
-%0A
%7B n
@@ -1910,24 +1910,16 @@
b: %22.%22 %7D
-%0A
%5D%0A %7D
@@ -1995,16 +1995,29 @@
onment%22,
+%0A ... |
efc10a804d76669468fec481571b0642885940dc | Fix body background-color #236 | packages/mjml-container/src/index.js | packages/mjml-container/src/index.js | import { MJMLElement, helpers, elements } from 'mjml-core'
import React, { Component } from 'react'
const tagName = 'mj-container'
const defaultMJMLDefinition = {
attributes: {
'width': '600'
},
inheritedAttributes: [
'width'
]
}
const postRender = $ => {
const containerWidth = $('.mj-container').dat... | JavaScript | 0.000001 | @@ -1059,25 +1059,20 @@
)%0A%0A $('
-container
+body
')%0A .
|
c88ebc8c29706ec92cf1ecd8fd97e0925890efdf | fix startPrimitate | spec/Primitate.spec.js | spec/Primitate.spec.js | /// <reference path="../typings/globals/jasmine/index.d.ts" />
const startPrimitate = require("../lib/Primitate").default;
const addon = require("../lib/AddonSample").default;
describe("Start Primitate with initialState of", () => {
function initialize(initialState, msg) {
expect(() => { startPrimitate(initialS... | JavaScript | 0.000001 | @@ -1788,38 +1788,32 @@
: %7B count: 0 %7D %7D
-, true
);%0A createAct
@@ -3392,22 +3392,16 @@
t: 0 %7D %7D
-, true
);%0A c
@@ -4761,14 +4761,8 @@
%7D %7D
-, true
);%0A%0A
|
1358db40ffb43581d1f0e2f33433328d05b8ad54 | make sure we don't send markup in bug comments through the HTML parser | scripts/main.js | scripts/main.js | (function(){
var hasWhiteboard = false;
var BUGID = location.search.slice(4);
var COOLGUYTAG = "suggestedfix";
var DESCRIPTIONS = {
"serversniff": "This website is using server side user agent detection to determine if a user is browsing using a desktop or mobile client. Unfortunately the site is not proper... | JavaScript | 0 | @@ -3432,24 +3432,101 @@
%22%3C/pre%3E%22%5D;%0A
+ var pre = document.createElement('pre');%0A pre.textContent = text;%0A
fix =
@@ -3585,38 +3585,54 @@
innerHTML =
-tmpl.join(%22%22);
+%22%22;%0A fix.appendChild(pre)
%0A %7D;%0A%0A
|
6a26614252e90287611f4667cd6cbed7e3d8d66e | change the rules bundle to rules.js | scripts/main.js | scripts/main.js | const chalk = require('chalk');
const mkdirpNode = require('mkdirp');
const { promisify } = require('util');
const { configs, utils, paths } = require('./config');
const mkdirp = promisify(mkdirpNode);
async function build() {
await mkdirp(paths.dist);
// eslint-disable-next-line
console.log(chalk.cyan('Generat... | JavaScript | 0.00018 | @@ -518,20 +518,16 @@
'rules.
-esm.
js');%0A
|
f1f982a5b44f512d1f1f02f727509075a7696249 | Fix poll function in IE9 | addon-test-support/test.js | addon-test-support/test.js | import Ember from 'ember';
import sinon from 'sinon';
import QUnit from 'qunit';
import { test as emberQUnitTest } from 'ember-qunit';
import { isBlank } from 'ember-utils';
sinon.expectation.fail = sinon.assert.fail = function (msg) {
QUnit.assert.ok(false, msg);
};
sinon.assert.pass = function (assertion) {
QUn... | JavaScript | 0 | @@ -2460,18 +2460,19 @@
out(
-poll, 10,
+() =%3E poll(
reso
@@ -2483,16 +2483,21 @@
reject)
+, 10)
;%0A
|
15e4060d1276f34499d4a35f1a9218dcf2e8b600 | Change implementation of filterQuery to accept 'params' map instead of 'attributes' and 'values' arrays | addon/mixins/find-query.js | addon/mixins/find-query.js | /*
This mixin was created because EmberFire was depricated before it was fully developed. EmberFire
does not support filtering or querying on 'find' calls to the database. This mixin can be added
to any page in an Ember app that uses EmberFire and perform the 'find' function with queries.
For exact instructions... | JavaScript | 0 | @@ -647,149 +647,67 @@
am:
-attributes - array - names of the attributes that should be filtered by%0A // param: values - array - required values of the filtered attribut
+params - map - attributes of model with their required valu
es%0A
@@ -906,100 +906,13 @@
in '
-attributes' and 'values'%0A // ** Position in ... |
1e4fa30c138503616d6b4c722d67b33fa03e2819 | add new url | scripts/main.js | scripts/main.js | /**
* @author Lexo91
* @version 1.0
* @url https://gist.github.com/alexander-schranz/d70b3759857382b99b1a
* @license https://opensource.org/licenses/MIT
*/
BBLog.handle('add.plugin', {
id: 'l91-keyboard-navigation',
name: 'List Keyboard Navigation',
translations: {
'en' : {
'l91... | JavaScript | 0.000003 | @@ -51,13 +51,8 @@
s://
-gist.
gith
@@ -80,28 +80,33 @@
anz/
-d70b3759857382b99b1a
+bblog-keyboard-navigation
%0A *
|
98d802e19227ab8947160373113ff05095120df6 | Add files via upload | scripts/quiz.js | scripts/quiz.js | // Quiz //
| JavaScript | 0 | @@ -4,8 +4,1311 @@
Quiz //%0A
+/*%0AFILE NAME: scripts/quiz.js%0AWRITTEN BY: Runar Espelund%0AWHEN: Oktober 2016%0APURPOSE: Check if a given answer to quiz is correct or not%0A*/%0A%0A//Function to check answer in radio buttons%0Afunction validateRadio()%7B%0A%09var quizAnswer=document.forms%5B0%5D.elements%5B%22radio... |
2bd71b20dc279f68243bf8c2262bb0e94f9c073d | split is functional when the input text contains words shorter than the limit | src/wrapper.js | src/wrapper.js | function Wrapper() {
}
Wrapper.prototype.wrap = function(text, col) {
if (isNaN(col) || col < 0 || !(col % 1 === 0)){
return null;
} // ha ezt kiveszem, nem unidentified -et ad vissza az is, ahol torni kene de nincs space elotte. #TODO
if (text.length <= col) {
return text;
} else... | JavaScript | 0.999985 | @@ -17,16 +17,543 @@
() %7B%0A%7D%0A%0A
+function splitByChunking(textIn, limit)%7B%0A var lines = %5B%5D;%0A var lastSpaceCur = textIn.lastIndexOf(%22 %22, limit);%0A while((lastSpaceCur %3E -1) )%7B //textin length %C3%A9s a bv%C3%A9g%C3%A9n add hozz%C3%A1 mint kor%C3%A1bban, csak ut%C3%A1na n%C3%A9zd a sp... |
7bb052ecf2f286ab1b9cfdd09e427ffd5cc96e93 | Fix @mention default prefix when setting a custom one | src/commands/prefix.js | src/commands/prefix.js | import redis from './../data/redis.js'
import Responder from './../lib/messages/responder.js'
const info = {
name: 'prefix',
usage: '<prefix>',
description: 'Changes the bot prefix.',
fullDescription: 'Changes the bot prefix.',
caseInsensitive: true,
argsRequired: true,
requirements: {
permissions: {... | JavaScript | 0 | @@ -703,16 +703,17 @@
@mention
+
', newPr
|
1d593c79e5dcbc41a4b2a013c806ccd58f109687 | Add a missing 'use strict'; statement for the example Module spec | Resources/Private/Javascripts/Tests/Modules/Module.spec.js | Resources/Private/Javascripts/Tests/Modules/Module.spec.js | /**
* Example Spec
* @description An example specification for the example module in 'Modules/Module'.
*/
var module = require('./../../Modules/Module');
describe('just checking', function() {
it('module works', function() {
var el = document.createElement('div');
var app = new module(el);
app.render();
... | JavaScript | 0.000002 | @@ -191,16 +191,32 @@
ion() %7B%0A
+%09'use strict';%0A%0A
%09it('mod
|
8d885db7d5e7a731f1ae180c0160db046cd1355c | Add note about 404 pitfall with renderInitial example | examples/renderinitial/router.js | examples/renderinitial/router.js | var monorouter = require('monorouter');
var reactRouting = require('monorouter-react');
var PetList = require('./views/PetList');
var PetDetail = require('./views/PetDetail');
var Preloader = require('./views/Preloader');
module.exports = monorouter()
.setup(reactRouting())
.route('index', '/', function(req) {
... | JavaScript | 0 | @@ -553,32 +553,325 @@
function(req) %7B%0A
+ // NOTE: Because we're calling %60this.renderInitial()%60, we lose the%0A // opportunity to have the server send a 404, and the client will have to%0A // display a 'missing' view. If you want the server to send 404s, you have%0A // to call %60this.unhandled()%6... |
30781d0325a9f60a5a99dab728fb4b4c7951929d | fix sorting page object | webapps/webapp/src/test/js/e2e/tasklist/pages/dashboard/tasklist/task-sorting.js | webapps/webapp/src/test/js/e2e/tasklist/pages/dashboard/tasklist/task-sorting.js | 'use strict';
var Page = require('./../dashboard-view');
module.exports = Page.extend({
formElement: function() {
return element(by.css('[cam-sorting-choices]'));
},
sortingList: function() {
return this.formElement().all(by.repeater('(index, sorting) in sortings'));
},
sortingName: function(inde... | JavaScript | 0 | @@ -2793,32 +2793,40 @@
.model('variable
+.varName
')).sendKeys(var
@@ -3451,16 +3451,24 @@
variable
+.varName
')).send
|
2d9aaa97c728910c46e9d723de7346a0956bd36d | Fix for cursor iteration | public/js/connection.js | public/js/connection.js | /*
TryMongo
Author: Kyle Banker (http://www.kylebanker.com)
Date: September 1, 2009
(c) Creative Commons 2009
http://creativecommons.org/licenses/by-sa/2.5/
*/
var Connection = function() {
this.initialize();
};
Connection.prototype = {
initialize: function() {
},
insert: function(collectionName, doc) {... | JavaScript | 0.000001 | @@ -1067,16 +1067,237 @@
%7D%0A%7D;%0A%0A
+var $emptyCursor = function() %7B%0A%7D;%0A%0A$emptyCursor.prototype = %7B%0A iterate: function() %7B%0A return %22Cursor is empty or no longer available.%22;%0A %7D%0A%7D;%0A%0Avar $resetCursor = function() %7B%0A $lastCursor = new $emptyCursor();%0A%7D;%0A%0A
// St... |
35a672b1c818ccae6663c1de985fc54ebb811748 | Set fallback in render | lib/ui/src/modules/ui/components/left_panel/text_filter.js | lib/ui/src/modules/ui/components/left_panel/text_filter.js | import PropTypes from 'prop-types';
import React from 'react';
import debounce from 'lodash.debounce';
import { baseFonts } from '@storybook/components';
const defaultTextValue = '';
const mainStyle = {
...baseFonts,
border: '1px solid #ECECEC',
borderRadius: 2,
position: 'relative',
};
const textWrapStyle =... | JavaScript | 0.000001 | @@ -971,36 +971,16 @@
ops.text
- %7C%7C defaultTextValue
,%0A %7D;
@@ -1267,32 +1267,40 @@
this.setState(%7B
+%0A
query: nextProp
@@ -1309,28 +1309,15 @@
text
- %7C%7C defaultTextValue
+,%0A
%7D);
@@ -1951,16 +1951,36 @@
te.query
+ %7C%7C defaultTextValue
%7D%0A
|
d36566e509da80b08f20805f51782e1205c46d5d | Use Array.forEach, not map | public/js/retraction.js | public/js/retraction.js | /* global bundle, $ */
var d3 = require("d3");
var COLOR_TABLE = [
"#C8D2D9", "#97ABB8", "#FFBEB9", "#FFD1CE"
];
/**
* updateGraph
*
* Update the graph with some new data and remove the old one.
*
* @newData: New tuples of data to update the graph with
*/
function updateGraph(newData) {
var svg;
/* The ... | JavaScript | 0.000046 | @@ -1437,35 +1437,39 @@
%7D);%0A%0A newData.
-map
+forEach
(function forEac
|
56615500eca84ffa160ee2bdf85170dcb87a1bed | Document the debug escaper. | public/runner/runner.js | public/runner/runner.js | /** =========================================================================
* JS Bin Runner
* ========================================================================== */
/**
* Polyfills
*/
var prependChild = function(elem, child) { elem.insertBefore(child, elem.firstChild); };
var addEvent = function(elem, ev... | JavaScript | 0 | @@ -1960,16 +1960,98 @@
%7D());%0A%0A
+ /**%0A * Replace HTML characters with encoded equivatents for debug mode.%0A */%0A
proces
@@ -3536,24 +3536,71 @@
re);%0A %7D%0A%0A
+ // In debug mode return an escaped version%0A
if (opti
|
a7bc142ef743fe1e18fa20a566f9961f75cff7bb | Update timeFlies.js | timeFlies/timeFlies.js | timeFlies/timeFlies.js | const canvas = document.getElementById("canvas1");
const ctx = canvas.getContext('2d');
const CANVAS_WIDTH = canvas.width = 1200;
const CANVAS_HEIGHT = canvas.height = 700;
let gameSpeed = 10;
const backgroundLayer1 = new Image();
backgroundLayer1.src = "background/layer-1.png";
const backgroundLayer2 = new Image();
b... | JavaScript | 0 | @@ -2164,16 +2164,24 @@
%5Blayer1,
+layer2,
layer3,l
|
7f0a8f87a925b58f3fea880299f2b63268cf068e | fix nuking aliases | meowto.js | meowto.js | var MEOWTO = "__MEOWTO__"; // LocalStorage goes here
var aliases = {};
(function() {
// Read aliases from local storage, if there are any.
if (!localStorage[MEOWTO])
updateLocalStorage();
else
aliases = JSON.parse(localStorage[MEOWTO]);
var query = window.location.search.substring(1);
switch(query... | JavaScript | 0.011309 | @@ -714,61 +714,8 @@
) %7B%0A
- // Get rid of the verb. Also lol what even, arrow.%0A
va
@@ -1163,45 +1163,115 @@
uery
-.split('+')%5B1%5D;%0A delete localStorage
+WithoutCommand(query, 'nuke');%0A if (cleanQuery == '') %7B%0A showError();%0A return;%0A %7D%0A%0A delete aliases
%5Bcle
@@ -2339,14 +2339... |
f25c451db35a47bb3be7ef50f579b3e65fba2fab | Update background.js | extension/js/pages/background.js | extension/js/pages/background.js | /* global Settings, UI, Timer, API, chrome */
/**
* This file is part of Random User-Agent Browser Extension
* @link https://github.com/tarampampam/random-user-agent
*
* Copyright (C) 2016 tarampampam <github.com/tarampampam>
*
* Everyone is permitted to copy and distribute verbatim or modified copies of this li... | JavaScript | 0.000001 | @@ -773,22 +773,233 @@
%0A %7D);%0A%0A
+ var updateIconForSite = function(site) %7B%0A var state = 'disabled';%0A if (API.settings.getEnabled()) state = API.exceptions.uriMatch(%7Buri: site%7D) ? 'inactive' : 'active';%0A UI.changeStateIcon(state)%0A %7D%0A%0A
/**%0A
-
* Dec
@@ -1257,32 +1257,32 @@
... |
3c128fa25ec82881947820c3306348c203a329a5 | Update extern format. | externs/webcomponents-externs.js | externs/webcomponents-externs.js | /**
* @fileoverview Externs for webcomponents polyfills
* @externs
*
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polyme... | JavaScript | 0 | @@ -635,25 +635,24 @@
orts = %7B
-%0A
+%7D;%0A%0A
/**%0A
-
* @para
@@ -679,25 +679,44 @@
ack%0A
-
*/%0A
- whenReady
+HTMLImports.whenReady = function
(cal
@@ -720,34 +720,31 @@
callback) %7B%7D
-,%0A
+;%0A%0A
/**%0A
-
* @param %7B!
@@ -757,18 +757,16 @@
element%0A
-
* @retu
@@ -807,24 +807,3... |
d45dab1511ada84fcfd95ad815a89b4318861777 | fix warnings in functional tests | features/support/apiWebsocket.js | features/support/apiWebsocket.js | var
_ = require('lodash'),
config = require('./config'),
Promise = require('bluebird'),
uuid = require('node-uuid'),
io = require('socket.io-client'),
ApiRT = require('./apiRT');
var initSocket = function (socketName) {
var socket;
if (!socketName) {
socketName = 'client1';
}
if (!this.listSo... | JavaScript | 0.000006 | @@ -1,12 +1,27 @@
+'use strict';%0A%0A
var%0A _ = re
@@ -2483,23 +2483,117 @@
-result.
+let error = new Error(result.error);%0A error.details = result.error._source %7C%7C %7B%7D;%0A
error.st
@@ -2642,23 +2642,16 @@
reject(
-result.
error);%0A
|
738f9880b0f56cbf1225c6f244991d0545cf4741 | support email attachments for catcher (#86) | src/providers/email/notificationCatcher.js | src/providers/email/notificationCatcher.js | /* @flow */
import NotificationCatcherProvider from '../notificationCatcherProvider'
// Types
import type { EmailRequestType } from '../../models/notification-request'
export default class EmailNotificationCatcherProvider extends NotificationCatcherProvider {
async send (request: EmailRequestType): Promise<string> {... | JavaScript | 0 | @@ -364,16 +364,29 @@
replyTo
+, attachments
%7D =%0A
@@ -570,16 +570,35 @@
eplyTo,%0A
+ attachments,%0A
he
|
c63d3e1b120c6d118eaea78d7e9cda12a330bd9a | Update onlylemi.js | assets/js/onlylemi.js | assets/js/onlylemi.js | /**
* onlylemi
*
* @author: only乐秘
* @time: 2016-02-24 2:54
*/
$(document).ready(function() {
/* set https */
if (location.hostname == "onlylemi.github.io") {
var a = location.href;
var b = a.substring(5);
a = a.substring(0, 5);
if (a == "http:") {
location.h... | JavaScript | 0 | @@ -303,16 +303,18 @@
+//
location
|
9c20d0be36788e04838ea8e19e6f7eed3e0f44c3 | Send command in the published message | app/controllers/control.js | app/controllers/control.js | 'use strict';
/**
* Module dependencies.
*/
/**
* Find device by id
*/
exports.command = function(req, res) {
var client = exports.client;
var channel = '/control/' + req.params.deviceId + '/' + req.params.command;
client.publish(channel, req.body);
console.log('Publish to channel: ' + channel);
... | JavaScript | 0 | @@ -197,36 +197,86 @@
ceId
- + '/' + req.params.command;
+;%0A var data = %7B%0A %09command: req.params.command,%0A %09body: req.body%0A %7D
%0A
@@ -300,24 +300,20 @@
hannel,
-req.body
+data
);%0A c
|
f839ddbf229ce77b2b78ef0e99933156d2ab7f79 | Update simpsoon.js | assets/js/simpsoon.js | assets/js/simpsoon.js | // countdown timer function
$(function() {
var endDate = $('.counter').attr('timer');
$('.counter .row').countdown({
date: endDate,
render: function(data) {
var element = this.el;
$(".days .count-round", element).html("<span class='text-center'>" + this.leadingZeros(data.days, 2) + " <... | JavaScript | 0 | @@ -1625,61 +1625,39 @@
: %5B%22
-WE WILL BE ONLINE AFTER.%22, %22Visit us after this time.
+first message%22, %22second message
%22%5D,%0D
|
6e20bfe04dbfdc2c04fd345ca3204f347d812aa6 | Update assets/js/util/api.js | assets/js/util/api.js | assets/js/util/api.js | /**
* API utility functions.
*
* Site Kit by Google, Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | JavaScript | 0 | @@ -1387,20 +1387,18 @@
n;%0A%09%7D%0A%0A%09
-cons
+le
t labelM
@@ -1425,18 +1425,24 @@
r.code %7D
-$%7B
+%60;%0A%09if (
error.d
@@ -1457,11 +1457,28 @@
son
-? '
+) %7B%0A%09%09labelMeta += %60
, re
@@ -1487,11 +1487,10 @@
on:
-' +
+$%7B
err
@@ -1508,16 +1508,13 @@
son
-: '' %7D%60;
+%7D%60%0A%09%7D
%0A%... |
8991aeec81b2545e7a9f01a988c1106af0a915b1 | remove 48 hour check | src/main/webapp/WEB-INF/themes/root/resource/js/util/counter_query_promise.js | src/main/webapp/WEB-INF/themes/root/resource/js/util/counter_query_promise.js | /*
* Copyright (c) 2017 Public Library of Science
*
* 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 rights to use, copy, modify, ... | JavaScript | 0 | @@ -2754,242 +2754,8 @@
%7D,%0A%0A
- isArticleNew: function () %7B%0A var publishDate = moment(ArticleData.date, %22MMM DD, YYYY%22).valueOf();%0A var todayMinus48Hours = moment().subtract(2, 'days').valueOf();%0A return (todayMinus48Hours %3C publishDate);%0A %7D,%0A%0A
@@ -4183,238 +4183,8... |
6921b4b51b2716ee5ae67c71cda4cd44b5d3c51e | update authenticator | app/authenticators/osf-osf-jwt.js | app/authenticators/osf-osf-jwt.js | import Em from 'ember';
import ENV from 'experimenter/config/environment';
import Base from 'ember-simple-auth/authenticators/base';
export default Base.extend({
authenticate(access_token, expires) {
return new Promise(function(resolve, reject) {
data: JSON.stringify({data: {
ty... | JavaScript | 0 | @@ -217,66 +217,24 @@
urn
-new Promise(function(resolve, reject) %7B%0A data:
+Em.RSVP.resolve(
JSON
@@ -421,157 +421,11 @@
%7D%7D)
-%0A %7D).then(function(data) %7B%0A data.data.attributes.accessToken = access_token;%0A return data.data.attributes;%0A %7D
);%0A
-%0... |
f097a4dd74090c46caae3da1f3ad103efd0de42c | Remove console.log | modules/css-vars/script.js | modules/css-vars/script.js | /* global kirkiCssVarFields */
var kirkiCssVars = {
/**
* Get styles.
*
* @since 3.0.28
* @returns {Object}
*/
getStyles: function() {
var style = jQuery( '#kirki-css-vars' ),
styles = style.html().replace( ':root{', '' ).replace( '}', '' ).split( ';' ),
stylesObj = {};
// Format styles a... | JavaScript | 0.000004 | @@ -1184,37 +1184,8 @@
) %7B%0A
-%09%09%09%09%09%09console.log( cssVar );%0A
%09%09%09%09
|
a6f33a5d519f7e9458b65c2adf3a71565c743f7c | Update vesion | app/client/serviceworker/index.js | app/client/serviceworker/index.js | require('serviceworker-cache-polyfill');
var CACHE_NAME = 'my-site-cache-v12';
var urlsToCache = [
'/',
'/bundle.js',
'/vendor.js',
'/style.css'
];
self.addEventListener('install', function(event) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
... | JavaScript | 0.000001 | @@ -69,17 +69,17 @@
cache-v1
-2
+3
';%0Avar u
|
6594f16de40daee444cfd1583a046fe988eb36f8 | Display 00 when the decimal value is 0 | app/client/templates/home/home.js | app/client/templates/home/home.js | Template.Home.events({
});
Template.Home.helpers({
tasks: function () {
return Tasks.find();
},
timeInHours: function () {
var time = this.time;
var timeInt = Math.floor(this.time / 100);
var timeDec = this.time % 100;
return (timeInt + '.' + timeDec);
},
statusButton: function () {
... | JavaScript | 0.999999 | @@ -235,16 +235,24 @@
me %25 100
+ %7C%7C '00'
;%0A%0A r
|
5a8b50a733db433e665654656db7203813366912 | Bump version | app/components/version/version.js | app/components/version/version.js | 'use strict';
angular.module('myApp.version', [
'myApp.version.interpolate-filter',
'myApp.version.version-directive'
])
.value('version', '0.5');
| JavaScript | 0 | @@ -145,9 +145,9 @@
'0.
-5
+6
');%0A
|
c20c718479b768c5cd01fa3a0822c61d1c493223 | FIX IT AGAIN! | lib/triggers/acceptChatInviteTrigger.js | lib/triggers/acceptChatInviteTrigger.js | var util = require("util");
var BaseTrigger = require("./baseTrigger.js").BaseTrigger;
/*
Accepts chat invites for whitelisted servers and says an optional message after joining.
Relevant options are:
chatrooms = {"roomId1": "message1", "roomId1": "message1"} - list of rooms to join and their welcome message. If mess... | JavaScript | 0 | @@ -2037,21 +2037,8 @@
y &&
- inviterId in
thi
@@ -2054,16 +2054,40 @@
.joinAll
+.indexOf(inviterId) %3E -1
)) %7B%0A%09%09t
|
0af5b364eb52508b7875ad20c6cc434166e509a2 | use select2 if available | src/schnipp/dynforms/fields/multiselect.js | src/schnipp/dynforms/fields/multiselect.js | /**
* multiselect - multiple select field using chosen.js
*
* @param {Object} field_descriptor field specific part of the form schema
* @param {Object} field_data initial value for the field
* @constructor
* @class schnipp.dynforms.fields.multiselect
* @extends schnipp.dynforms.abstract_field
**/
schnipp.dynfor... | JavaScript | 0 | @@ -609,16 +609,36 @@
multiple
+ style=%22width:325px%22
%3E%3C/selec
@@ -1246,16 +1246,18 @@
)%0A%09%09%7D)%0A%0A
+%0A%0A
%09%09self.e
@@ -1476,16 +1476,17 @@
%22)%0A%09%09%7D)%0A
+%0A
@@ -1521,16 +1521,286 @@
ialize()
+%0A%0A // init select 2 if defined%0A if (self.dom.select.select2) %7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.