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 |
|---|---|---|---|---|---|---|---|
f388e52549c02e9c141b5f1f2f8b5c22f8b7a81f | add margin to playground tab headers | packages/ui-toolkit/src/styleguide/playground.js | packages/ui-toolkit/src/styleguide/playground.js | import React, { Component } from 'react';
import styled from 'styled-components';
import is from 'styled-is';
import remcalc from 'remcalc';
const Wrapper = styled.section``;
const Tabs = styled.ul`
list-style: none;
display: flex;
padding: 0;
align-items: center;
border-bottom: ${remcalc(1)} solid ${props ... | JavaScript | 0 | @@ -133,16 +133,68 @@
emcalc';
+%0Aimport %7B Margin %7D from 'styled-components-spacing';
%0A%0Aconst
@@ -2663,24 +2663,55 @@
%3CTabs%3E%0A
+ %3CMargin right=%7B5%7D%3E%0A
%3CT
@@ -2745,24 +2745,26 @@
omponent'%7D%3E%0A
+
@@ -2777,32 +2777,34 @@
n%0A
+
... |
9ad3385adbdf33d85a1373f78d65f5b407a80230 | Update fichas.js | app/controllers/fichas.js | app/controllers/fichas.js | //PdfModule
var fichaReme = require('../pdf/fichaReme');
// Config
var config = require('../config/config');
// Models
Ficha = require('../models/').Ficha;
Users = require('../models/').User;
// CRUD Operations for Ficha Model
module.exports = {
index(req, res) {
Ficha.findAll()
.then(function (... | JavaScript | 0 | @@ -641,32 +641,69 @@
%7D)%0A
+ console.log(Fichas);%0A
|
3ba013097bf78974260b11499f0e65a06a28613e | update ctrl | controllers/index.js | controllers/index.js | /**
* 路由
*/
exports.home = function* () {
this.body = 'hello world';
this.status = 200;
};
exports.handle = function* () {
var content = this.request.body;
if (content.trigger_word === 'test') {
this.body = {
text: 'hello world'
};
this.status = 200;
}
}; | JavaScript | 0.000002 | @@ -231,26 +231,45 @@
text: 'h
-ello world
+ttp://i.imgur.com/JQ8GA1p.jpg
'%0A %7D;
|
bfbac9f28036a7f15cb7b708d8a8846cc260ff00 | Fix tests | test/index.js | test/index.js | 'use strict';
var test = require('tape');
var unified = require('unified');
var english = require('retext-english');
var emojiModifier = require('nlcst-emoji-modifier');
var emoticonModifier = require('nlcst-emoticon-modifier');
var remove = require('unist-util-remove-position');
var modifier = require('..');
var lol... | JavaScript | 0.000003 | @@ -1267,17 +1267,103 @@
(plugin)
-;
+.freeze();%0A%0A if (positionless) %7B%0A processor.Parser.prototype.position = false;%0A %7D%0A
%0A retur
@@ -1377,16 +1377,20 @@
ssor.run
+Sync
(process
@@ -1409,35 +1409,8 @@
ture
-, %7Bposition: !positionless%7D
));%0A
@@ -1465,32 +1465,18 @@
gin(
-processor) %7B%0... |
2e8c8d7ed06382540af005916a7d0df31dd0dabf | Fix FileUpload bug | packages/zent/src/upload/components/FileInput.js | packages/zent/src/upload/components/FileInput.js | /**
* 上传图片输入框
*/
import React, { PureComponent, Component } from 'react';
import Notify from 'notify';
import toArray from 'lodash/toArray';
import forEach from 'lodash/forEach';
import isPromise from 'utils/isPromise';
import { formatFileSize, base64ToArrayBuffer } from '../utils';
import fileType from '../utils/fi... | JavaScript | 0 | @@ -212,24 +212,128 @@
isPromise';%0A
+import %7B I18nReceiver as Receiver %7D from 'i18n';%0Aimport %7B Upload as I18nDefault %7D from 'i18n/default';%0A%0A
import %7B for
@@ -1024,16 +1024,24 @@
sFiles =
+ i18n =%3E
evt =%3E
@@ -1174,24 +1174,71 @@
les(files);%0A
+ const iterator = this.iteratorFiles(i18n);... |
bb101f3fd5a1585d237b947ef7a00a06ad845708 | Initialize state after listeners are added | src/modules/client/client-base.js | src/modules/client/client-base.js | /* @flow */
import './polyfills/requestIdleCallback';
import '../store/stateManager';
import '../store/storeHelpers';
import '../gcm/gcm-client';
import '../history/history-client';
import '../location/location-client';
import '../presence/presence-client';
import '../session/session-client';
import '../socket/socke... | JavaScript | 0 | @@ -53,73 +53,8 @@
';%0A%0A
-import '../store/stateManager';%0Aimport '../store/storeHelpers';%0A%0A
impo
@@ -260,16 +260,81 @@
ient';%0A%0A
+import '../store/storeHelpers';%0Aimport '../store/stateManager';%0A%0A
if (proc
|
9a076d3497dfece65d80c2c2a0fb4f13962eb568 | check binomial is sane | test/index.js | test/index.js | var tape = require('tape')
var deepEqual = require('deep-equal')
var sub = require('level-sublevel')
var level = require('level-test')()
var search = require('level-search')
var pull = require('pull-stream')
var pl = require('pull-level')
var ranges = require('binomial-hash-list/ranges')
var reduce = require('binomi... | JavaScript | 0.999995 | @@ -1769,16 +1769,305 @@
)%0A %7D)%0A%0A
+ tape('binomial', function (t) %7B%0A console.log('replicate?', replicate)%0A replicate(db1).binomial(function (err, tree) %7B%0A if(err) throw err%0A console.log(tree)%0A t.ok(tree)%0A t.ok(Array.isArray(tree.tree))%0A t.ok(tree.tree.length %3... |
e0640969125ccd882d8c87b970c923f90c2921c0 | Test match function in advance | test/match.js | test/match.js | // @flow
'use strict'
require('babel-register')
const t = require('tap')
const Store = require('../src/Trie')
const $ = require('./lib/state')
t.test('remove', t => {
t.test('nothing here', t => {
const store = new Store()
const a = store.match('not in here')
t.ok(Array.isArray(a))
t.equal(a.lengt... | JavaScript | 0 | @@ -224,16 +224,43 @@
Store()
+%0A $.feed(store, $.state)
%0A%0A co
@@ -736,17 +736,17 @@
tch(
-'
+$.
Michael
-'
)%0A
@@ -769,9 +769,22 @@
th,
-7
+$.names.length
)%0A
|
9c10b899e5ce9be94b6a678d79e1150b1891af32 | Update input_mqtt.js | plugins/inputs/mqtt/input_mqtt.js | plugins/inputs/mqtt/input_mqtt.js | var base_input = require('@pastash/pastash').base_input,
util = require('util'),
mqtt = require('mqtt'),
logger = require('@pastash/pastash').logger;
function InputMQTT() {
base_input.BaseInput.call(this);
this.mergeConfig(this.unserializer_config());
this.mergeConfig({
name: 'MQTT',
host_field: 'a... | JavaScript | 0.000012 | @@ -481,32 +481,73 @@
ion(callback) %7B%0A
+ if(!this.topic%7C%7C!this.address) return;%0A
logger.info('C
|
4dcbd25f4dd6c2de5fe23e1b7441100cb5659c43 | Switch to 'ridership' name for property in sparkline data. | app/models/route-label.js | app/models/route-label.js | import Ember from 'ember';
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
export default Model.extend({
routeNumber: attr('number'),
routeName: attr('string'),
});
| JavaScript | 0 | @@ -1,31 +1,4 @@
-import Ember from 'ember';%0A
impo
|
81d133d51a0ac0f69c9d82dcc9b4e66ee40c3ea2 | switch to wait for data to be fetched | app/assets/scripts/views/analytics-admin-area.js | app/assets/scripts/views/analytics-admin-area.js | 'use strict';
import React from 'react';
import { connect } from 'react-redux';
import { _ } from 'lodash';
import { t, getLanguage } from '../utils/i18n';
import { Link } from 'react-router';
import AATable from '../components/aa-table-vpromms';
import { fetchVProMMsids, fetchAdminChildren, fetchFieldVProMMsids, fet... | JavaScript | 0.000001 | @@ -5539,17 +5539,16 @@
etched:
-!
state.ad
@@ -5564,19 +5564,18 @@
en.fetch
-ing
+ed
%0A %7D;%0A%7D%0A
|
f309d6b15d956c2e43fa86bd1a21fabc4e7695a8 | Declare url | test/utils.js | test/utils.js | var exec = require("child_process").exec;
var portfinder = require("portfinder");
function startServer(port, done) {
var app = require("../app"); // eslint-disable-line global-require
app.set("port", port);
return app.listen(app.get("port"), done);
}
function startServerWithAutomaticPort(done) {
portfinder.g... | JavaScript | 0.00016 | @@ -369,16 +369,29 @@
server;
+%0A var url;
%0A%0A tr
|
d1a2f03101d3c12c2d461b6edebfd285e0682c27 | Drop getTimestmap | test/utils.js | test/utils.js | var assert = require('assert');
var should = require("should");
var sinon = require("sinon");
var hoek = require("../lib/hoek");
describe("hoek", function(){
var emptyObj = {};
var nestedObj = {
x: 'x',
y: 'y'
}
var dupsArray = [nestedObj, {z:'z'}, nestedObj];
var reducedDupsArray = [nestedObj, {z:'z... | JavaScript | 0 | @@ -325,347 +325,8 @@
%0A %0A
- describe(%22#getTimestamp%22, function()%7B%0A it(%22should return a valid unix timestamp%22, function(done)%7B%0A (function()%7B%0A var ts = hoek.getTimestamp();%0A ts.should.be.a('number');%0A var datetime = new Date(ts);%0A (typeof datetime).shou... |
0fbafa525a4e3e75a82dd66cf1eb4b9c45ab7788 | remove elvis operator | tests/test.js | tests/test.js | const isPlainObj = require('is-plain-obj');
const { ESLint } = require('eslint');
const baseConf = require('..');
const reactConf = require('../browser');
const workflowConf = require('../workflow');
const reactString = require('./react');
const reactTsString = require('./react-typescript');
const baseString = requir... | JavaScript | 0.000021 | @@ -619,14 +619,11 @@
ults
-?.
%5B0%5D
-?
.mes
@@ -631,14 +631,8 @@
ages
- %7C%7C %5B%5D
;%0A%7D%0A
|
ea1d91e03a6acca690423cf4565975caa1ae7e95 | Fix travis destructuring (again) | tests/user.js | tests/user.js | const {User} = require('../database');
const expect = require('chai').expect;
describe('User schema', function() {
beforeEach(function(done) {
User.truncate()
.then(done);
});
it('inserts new users', function(done) {
var user = {username: 'John Doe', password: 'John Doe'};
User.create(user)
... | JavaScript | 0 | @@ -3,14 +3,12 @@
nst
-%7B
User
-%7D
= r
@@ -28,16 +28,21 @@
tabase')
+.User
;%0Aconst
|
34b915dd10cfcad47fad693a749c566ed4573bfa | add id 'zoom_reset' | src/playground/zoom_controller.js | src/playground/zoom_controller.js | Entry.ZoomController = class ZoomController {
constructor(board) {
if (board) {
this.setBoard(board);
}
if (Entry.windowResized) {
Entry.windowResized.attach(this, this.setPosition);
}
}
get CONTROLLER_WIDTH() {
return 128;
}
get CONT... | JavaScript | 0.000001 | @@ -1472,32 +1472,62 @@
elem('image', %7B%0A
+ id: 'zoom_reset',%0A
href
|
1f80185f88824e2977eefc62d2ae5d9b2b446b35 | Fix misspelled "global" and remove unused variable | app/routes/application.js | app/routes/application.js | import Ember from 'ember';
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
import ENV from '../config/environment';
import Proposal from '../models/proposal';
/* global ga */
/* gloabl NREUM */
export default Ember.Route.extend(ApplicationRouteMixin).extend({
notifier: Ember.inject.se... | JavaScript | 0.000421 | @@ -206,18 +206,18 @@
/%0A/* glo
-a
b
+a
l NREUM
@@ -2669,109 +2669,8 @@
) %7B%0A
- var metaData = %7B%22url%22: window.location.pathname, %22user%22: this.get(%22session%22).get(%22username%22)%7D;%0A
|
d2cb363a57cda565319f2bb4b42ea8389d9fe7b5 | add people info | app/routes/application.js | app/routes/application.js | import Ember from 'ember';
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
/* global ga */
/* global mixpanel */
export default Ember.Route.extend(ApplicationRouteMixin).extend({
activate: function() {
return this.store.find('word_list');
},
actions: {
willTransition: func... | JavaScript | 0 | @@ -650,16 +650,77 @@
(user);%0A
+ mixpanel.people.set(%7B%0A '$name': user,%0A %7D);%0A
ga
|
9e5b1a165f43f1034e586bd331ff0a55f531159c | fix for Internet Exploder | public/javascripts/experiments.js | public/javascripts/experiments.js | var sops=new Array();
function addSop(title,id) {
sops.push([title,id])
}
function addSelectedSop() {
selected_option_index=$("possible_sops").selectedIndex
selected_option=$("possible_sops").options[selected_option_index]
title=selected_option.text
id=selected_option.value
if(checkSopNotInLi... | JavaScript | 0 | @@ -1950,26 +1950,145 @@
-select.add(o,null)
+try %7B%0A select.add(o); //for older IE version%0A %7D%0A catch (ex) %7B%0A select.add(o,null);%0A %7D%0A
%0A
|
fa1b8df613f993b004888bffd317220e6c69a34d | Use last for median gauge counts | public/js/Dash.Source.Graphite.js | public/js/Dash.Source.Graphite.js | Dash.namespace('Source.Graphite');
Dash.Source.Graphite = function(stat) {
var stub = stat.source + "/render?target=";
// choose a sane resolution by period length
this.stepSize = function(length) {
var step;
if ( length <= 4*3600 ) { // 4hour
step = '10s'; // lik... | JavaScript | 0 | @@ -608,24 +608,195 @@
ep;%0A %7D;%0A %0A
+ this.summarizeFunc = function(display) %7B%0A var func;%0A if ( display == %22med%22 ) %7B%0A func = %22last%22;%0A %7D else %7B%0A func = display;%0A %7D%0A return func%0A %7D;%0A%0A
// return
@@ -858,16 +858,16 @@
period%0A
-
this.s
@@... |
7f9e303872652d9568e1518ce2a46f412cc9e1be | Remove unused 'this' pointer. | public/js/views/TimelineSearch.js | public/js/views/TimelineSearch.js | 'use strict';
(function() {
window.diana = window.diana || {};
window.diana.views = window.diana.views || {};
var diana = window.diana;
/**
* Displays the search box modal.
*/
diana.views.TimelineSearch = Backbone.View.extend({
initialize: function(options) {
var view = this;
// Auto-... | JavaScript | 0 | @@ -521,39 +521,16 @@
ion() %7B%0A
- var view = this;%0A
va
@@ -665,20 +665,20 @@
Model =
-view
+this
.$('.con
|
be0585c30e3e0cf9520b0fdd3b77cf7ea0301c7f | Update ckeditor.default.set.js | plugins/ckeditor/presets/ckeditor.default.set.js | plugins/ckeditor/presets/ckeditor.default.set.js | /*
* Default CKEditor preset and connector
*/
var ckeditorClasses = Array();
ckeditorClasses['editor'] = 'Full'; // Full editor
ckeditorClasses['medieditor'] = 'Medium'; // Medium editor
ckeditorClasses['minieditor'] = 'Basic'; // Mini editor
function ckeditorReplace() {
var textareas = document.getElementsByTagNa... | JavaScript | 0 | @@ -458,39 +458,217 @@
%09%09%09C
-KEDITOR.replace(textareas%5Bi%5D, %7B
+var textareasStyle = getComputedStyle(textareas%5Bi%5D, null) %7C%7C textareas%5Bi%5D.currentStyle;%0A%09%09%09CKEDITOR.replace(textareas%5Bi%5D, %7Bheight: parseInt(textareasStyle.height,10), width: parseInt(textareasStyle.width,10),
tool
|
f9da5dfe48a7cc79f14fd4e3b5ef173d55fb5a15 | remove sneaky console log | app/userAuthentication.js | app/userAuthentication.js | import fetch from "electron-fetch/lib"
import appInfo from "./app-info.json"
import keytar from "keytar"
import {BrowserWindow, session} from "electron"
let mainWindow, authWindow
const clientId = appInfo["client_id"]
const clientSecret = appInfo["client_secret"]
const requiredScopes = ["repo"].join("%20")
export fu... | JavaScript | 0.000001 | @@ -1346,111 +1346,8 @@
%7D)%0A
- console.log(%60https://github.com/login/oauth/authorize?client_id=$%7BclientId%7D&scope=$%7BrequiredScopes%7D%60)
%0A a
@@ -1454,17 +1454,16 @@
opes%7D%60)%0A
-%0A
authWi
|
23104f05b013c7ff7bdab762e7bac9bdf353347b | capitalization fix | app/utilities/channels.js | app/utilities/channels.js | /*global define:false*/
define(['underscore', 'backbone', './namespace'], function (_, Backbone, namespace) {
'use strict';
var channels;
/**
* @class Channels is a singleton event bus.
* @param channel
* @module utilities/Channels
*/
function Channels(channel) {
if (channe... | JavaScript | 0.998847 | @@ -54,25 +54,25 @@
ne', './name
-s
+S
pace'%5D, func
|
767598f33cb8225e9e064d1601ee1771148ff4ba | Modify lazyload component trigger condition. | src/client/components/lazy-loading/index.js | src/client/components/lazy-loading/index.js | /**
* Created by jack on 16-9-11.
*/
import Vue from 'vue';
import throttle from 'lodash/throttle';
import * as DOMUtil from 'common/util/DOM';
import './style.scss';
import template from './template.html';
export default Vue.component('lazyLoading', {
template,
props: {
loadFn: {
type: Function,
require... | JavaScript | 0 | @@ -701,24 +701,44 @@
ttom(element
+, triggerOffset = 50
) %7B%0A%09%09%09let s
@@ -951,17 +951,16 @@
Height %3E
-=
element
@@ -972,16 +972,32 @@
llHeight
+ - triggerOffset
;%0A%09%09%7D,%0A%09
|
46a78a36c8673310e12aa012a6e360036647a6d2 | simplify title component [CE-19] | src/client/modules/reactComponents/Title.js | src/client/modules/reactComponents/Title.js | define([
'preact',
'htm',
"dompurify",
"lib/utils",
// For effect
'css!./Title.css'
], (
preact,
htm,
DOMPurify,
{domSafeText}
) => {
const {h, Component } = preact;
const html = htm.bind(h);
class Title extends Component {
constructor(props) {
... | JavaScript | 0.000012 | @@ -1375,19 +1375,18 @@
%3C
-div
+h1
classNa
@@ -1432,16 +1432,38 @@
eading%22
+%0A
aria-lev
@@ -1468,17 +1468,16 @@
evel=%221%22
-%3E
%0A
@@ -1494,14 +1494,8 @@
-%3Cspan
dang
@@ -1570,15 +1570,8 @@
%7D%7D%3E
-%3C/span%3E
%0A
@@ -1589,11 +1589,10 @@
%3C/
-div
... |
3be02a41c6bb327990157c57cd5b159cc11d8a58 | Remove redundant env check for UMD builds (#1271) | rollup.config.js | rollup.config.js | import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import resolve from 'rollup-plugin-node-resolve';
import sourceMaps from 'rollup-plugin-sourcemaps';
import babel from 'rollup-plugin-babel';
import { uglify } from 'rollup-plugin-uglify';
import { sizeSnapshot } from 'rollup-pl... | JavaScript | 0 | @@ -884,85 +884,8 @@
ile:
-%0A env === 'production'%0A ? %60./dist/formik.umd.$%7Benv%7D.js%60%0A :
%60./
|
f4cb37ef8a62b090d2dfb93f6d25311badb8dfce | fix rollup config spacing | rollup.config.js | rollup.config.js | import resolve from 'rollup-plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import babel from 'rollup-plugin-babel';
import { eslint } from 'rollup-plugin-eslint';
import { uglify } from 'rollup-plugin-uglify';
const { name, version, license, author, homepage } = require('./package.json');
con... | JavaScript | 0.000001 | @@ -374,17 +374,18 @@
fault %7B%0A
-%09
+
input: '
@@ -398,17 +398,20 @@
in.js',%0A
-%09
+
output:
@@ -627,13 +627,15 @@
/%60,%0A
-%09%7D,%0A%09
+ %7D,%0A
plug
@@ -641,18 +641,20 @@
gins: %5B%0A
-%09%09
+
eslint()
@@ -655,18 +655,20 @@
lint(),%0A
-%09%09
+
!product
@@ -692,10 +692,12 @@
(),... |
435344eca417a29ca36136cfc555bb707c19bdec | Fix linting issue with rollup config. | rollup.config.js | rollup.config.js | import * as fs from 'fs';
import * as path from 'path';
export default {
input: 'dist/es/ember/index.js',
plugins: [emberPackage()],
output: {
file: 'rollup-bundle.es.js',
format: 'iife',
name: '__Ember',
named: true,
sourcemap: true
}
};
function emberPackage() {
return {
resolveId(... | JavaScript | 0 | @@ -683,16 +683,63 @@
else %7B%0A
+ // eslint-disable-next-line no-console%0A
|
0ccf514f2329edb78075fa7f5235a938deffa6cb | make use of builtins | rollup.config.js | rollup.config.js | import builtins from "builtin-modules";
import cleanup from "rollup-plugin-cleanup";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import executable from "rollup-plugin-executable";
import json from "rollup-plugin-json";
import pkg from "./package.json";
// require('m... | JavaScript | 0.000006 | @@ -304,531 +304,38 @@
%22;%0A%0A
-// require('module').builtinModules%0Aconst external = %5B%0A %22assert%22,%0A %22async_hooks%22,%0A %22buffer%22,%0A %22child_process%22,%0A %22cluster%22,%0A %22console%22,%0A %22constants%22,%0A %22crypto%22,%0A %22dgram%22,%0A %22dns%22,%0A %22domain%22,%0A %22events%... |
fd5c324320f8d6d53126db5aa59f84c125d14928 | Add default datum prop to HoverBarLabel for tests | src/components/common/stat/HoverBarLabel.js | src/components/common/stat/HoverBarLabel.js | import React, { PropTypes } from 'react';
import _ from 'lodash';
import { VictoryLabel, VictoryTooltip, TextSize } from 'victory';
import colors from '../../../styles/colors.css';
export const HoverBarLabel = props => {
const {
barWidth,
isDisabled,
domain,
scale = {
x: _.noop,
y: _.noo... | JavaScript | 0 | @@ -256,16 +256,44 @@
sabled,%0A
+ datum = %7B x: 0, y: 0 %7D,%0A
doma
@@ -296,16 +296,16 @@
domain,%0A
-
scal
@@ -770,22 +770,16 @@
tipText(
-props.
datum),
@@ -978,17 +978,24 @@
const
-d
+tooltipD
atum = %7B
@@ -1002,22 +1002,16 @@
%0A ...
-props.
datum,%0A
@@ -1027,14 +1027,8 @@
ax(%5B
... |
fd35ad3f9a688abff9d8918fadc6866fdedf6b11 | Update editorial title font-size & line-height | src/components/editorials/EditorialParts.js | src/components/editorials/EditorialParts.js | // @flow
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import { BubbleIcon, HeartIcon, RepostIcon, ShareIcon } from '../assets/Icons'
import { after, css, media, hover, select } from '../../styles/jss'
import * as s from '../../styles/jso'
// -------------------------... | JavaScript | 0 | @@ -2664,26 +2664,26 @@
Break2,
-s.
+%7B
fontSize
48, %7B li
@@ -2678,13 +2678,13 @@
Size
-48, %7B
+: 38,
lin
@@ -2696,10 +2696,10 @@
ht:
-5
4
+2
%7D),
|
892471816eac85583989680287295148a424fff9 | Change var name | src/components/fragments/fragments-utils.js | src/components/fragments/fragments-utils.js | import { scaleLinear } from 'd3';
import {
Geometry,
Line,
LineBasicMaterial,
LinePieces,
Mesh,
MeshBasicMaterial,
PlaneBufferGeometry,
TextGeometry,
Vector3
} from 'three';
import fgmState from './fragments-state';
export function calculateClusterPiling (
threshold, matrices, distanceMatrix
) {... | JavaScript | 0.001426 | @@ -4049,25 +4049,21 @@
or, line
-Thickness
+Width
) %7B%0A co
@@ -4375,17 +4375,13 @@
line
-Thickness
+Width
,%0A
|
770b720be615a3f77e22a2c2c2dd345a60646d33 | disable line instead | src/components/victory-zoom/victory-zoom.js | src/components/victory-zoom/victory-zoom.js | /* globals requestAnimationFrame */
import React, {Component, PropTypes} from "react";
import { assign, groupBy, isEqual } from "lodash";
import ChartHelpers from "../victory-chart/helper-methods";
import ZoomHelpers from "./helper-methods";
import {VictoryClipContainer, Helpers, PropTypes as CustomPropTypes, Timer} fr... | JavaScript | 0.000001 | @@ -1,40 +1,4 @@
-/* globals requestAnimationFrame */%0A
impo
@@ -2728,32 +2728,64 @@
ionFrame(() =%3E %7B
+ // eslint-disable-line no-undef
%0A c
@@ -3334,24 +3334,56 @@
rame(() =%3E %7B
+ // eslint-disable-line no-undef
%0A
|
4c0d2b890c205d7f0a3d51a7c638035f64bbc65f | allow to edit system proxy bypass | src/containers/ClientEditor/ClientEditor.js | src/containers/ClientEditor/ClientEditor.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
DropDownMenu,
MenuItem,
Subheader,
TextField
} from 'material-ui';
import './ClientEditor.css';
const LOG_LEVELS = ['error', 'warn', 'info', 'verbose', 'debug', 'silly'];
export class ClientEditor extends Component {
sta... | JavaScript | 0 | @@ -756,59 +756,37 @@
-this.props.onEdit(%7B%0A ...client,%0A %5Bname%5D:
+let _value = value;%0A%0A if (
%5B'po
@@ -819,10 +819,26 @@
ame)
- ?
+) %7B%0A _value =
par
@@ -857,11 +857,143 @@
10)
-
+;%0A %7D%0A%0A if (name === 'bypass') %7B%0A _value = value.split('%5Cn');%0A ... |
68332d14018091c101b7831b851d3d3ae72d86a7 | update layout | src/containers/home/sections/SectionPage.js | src/containers/home/sections/SectionPage.js | import React, { Component, PropTypes } from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { TabViewAnimated, TabBar, SceneMap } from 'react-native-tab-view';
import { List, ListItem } from 'react-native-elements';
import * as shortid from 'shortid';
import SECTIONS from '../../../constants/SEC... | JavaScript | 0 | @@ -1899,16 +1899,56 @@
thView ?
+%0A (%3CList%3E%0A %7B%0A
growthV
@@ -1980,32 +1980,38 @@
on =%3E (%0A
+
%3CListItem%0A
@@ -1996,32 +1996,38 @@
%3CListItem%0A
+
key=%7Bs
@@ -2051,24 +2051,30 @@
%7D%0A
+
title=%7Bsecti
@@ -20... |
ca593b85442dda3f210c842fe8fff65e90c1fb6d | Remove commented out code | src/controllers/molecules/ChangePassword.js | src/controllers/molecules/ChangePassword.js | /*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0 | @@ -1748,48 +1748,8 @@
%7D)%0A
- // self.props.onFinished();%0A
|
c5d11e483e5c9a7f7b807758cbacc58cf757aecf | Remove PostProcessor | resource/js/util/CrowiRenderer.js | resource/js/util/CrowiRenderer.js | import marked from 'marked';
import hljs from 'highlight.js';
import MarkdownFixer from './PreProcessor/MarkdownFixer';
import Linker from './PreProcessor/Linker';
import ImageExpander from './PreProcessor/ImageExpander';
import Tsv2Table from './LangProcessor/Tsv2Table';
export default class CrowiRenderer {
con... | JavaScript | 0.000001 | @@ -128,16 +128,23 @@
Linker
+
from './
@@ -161,24 +161,24 @@
or/Linker';%0A
-
import Image
@@ -453,44 +453,8 @@
%5D;%0A%0A
- this.postProcessors = %5B%0A %5D;%0A%0A
@@ -897,32 +897,32 @@
arkdown);%0A %7D%0A
+
return markd
@@ -935,239 +935,8 @@
%7D%0A%0A
- postProcess(html) %7B%0A ... |
bd8c5a80e974b088857b328269d3bc04f7a87e66 | allow lan access | webpack/dev.js | webpack/dev.js | /* eslint-disable import/no-extraneous-dependencies */
import webpack from 'webpack';
import baseConfig from './base';
const config = {
...baseConfig,
devtool: 'cheap-module-eval-source-map',
debug: true,
plugins: [
...baseConfig.plugins,
new webpack.HotModuleReplacementPlugin(),
... | JavaScript | 0 | @@ -345,32 +345,57 @@
hot: true,%0A
+ host: '0.0.0.0',%0A
port: '8
|
04d689eec166a1e570c8faf326ed199572265b1c | add layout prop to AutoField to be passed down to FormField | js/AutoField.js | js/AutoField.js | /** @jsx React.DOM */
define([
'underscore', 'react', './FormField', './AutoControl', './ImmutableOptimizations'
], function (_, React, FormField, AutoControl, ImmutableOptimizations) {
'use strict';
var AutoField = React.createClass({
mixins: [ImmutableOptimizations(['onChange', 'dataSource'])],
... | JavaScript | 0 | @@ -404,32 +404,67 @@
nfo: undefined,%0A
+ layout: undefined,%0A
@@ -759,16 +759,43 @@
isValid%7D
+ layout=%7Bthis.props.layout%7D
%3E%0A
|
9e4879d3eb3e0cd03e15f423c171d7b281ef528b | Update the minified version | jquery.slidershow.min.js | jquery.slidershow.min.js | /* Slider Show jQuery plugin v1.1.0
* Copyright (c) 2014 Ryszard Narkiewicz @RyszardRudy
* Licensed under MIT licence
*/
(function(e){var t;var n={init:function(t){return e(this).each(function(){var n=e(this);var r=e.extend({animation_timeout:3e3,child_selector:".slide",pager_selector:".pager",pager_item:".pager-it... | JavaScript | 0 | @@ -2760,29 +2760,28 @@
w%22);if(r
-.can_continue
+!==undefined
)%7Bvar i=
@@ -2917,23 +2917,8 @@
%7Bif(
-n!==undefined&&
r.ca
|
71cb852e8f995d55cf321871ebead40ba2fe0233 | Update ExportCol.js | js/ExportCol.js | js/ExportCol.js | /*
* Author: Rodrigo E. Principe
* License: Apache 2.0
PURPOSE:
This function Exports all images from one Collection
PARAMETERS:
col = collection that contains the images (ImageCollection)
folder = the folder where images will go (str) (optional)
scale = the pixel's scale (int) (optional) (defaults to 1000) (for ... | JavaScript | 0 | @@ -187,16 +187,31 @@
lection)
+ (not optional)
%0Afolder
@@ -251,16 +251,20 @@
(str) (
+not
optional
@@ -265,16 +265,17 @@
tional)%0A
+%0A
scale =
@@ -349,16 +349,254 @@
use 30)%0A
+type = data type of the exported image (str) (option: %22float%22, %22byte%22, %22int%22, %22double%22) (optional) (defaults t... |
ba55570a360defbfc9a344e86db64aa4679dc54b | Add -o / --outfile option | widdershins.js | widdershins.js | var fs = require('fs');
var path = require('path');
var yaml = require('js-yaml');
var converter = require('./index.js');
var argv = require('yargs')
.usage('widdershins [options] {input-spec} [output markdown]')
.demand(1)
.strict()
.boolean('yaml')
.alias('y','yaml')
.describe('yaml','Load ... | JavaScript | 0.000002 | @@ -194,16 +194,21 @@
-spec%7D %5B
+%5B-o%5D
output m
@@ -218,16 +218,16 @@
down%5D')%0A
-
.dem
@@ -574,24 +574,133 @@
e samples')%0A
+ .string('outfile')%0A .alias('o','outfile')%0A .describe('outfile','file to write output markdown to')%0A
.help('h
@@ -1159,27 +1159,58 @@
);%0A%0A
-if (argv._... |
5b176fd2942ef646c6ae7c4f62cd52f84aaa2116 | revert sample | sample_events.js | sample_events.js | function getExternalEventsss() {
var json = {};
var dayEvents = [];
var now = new Date();
var dateString = (now.toISOString)? now.toISOString().substring(0, 10) : dateToISOString(now);
dayEvents.push({time:'18:30', content: 'Dinner with Jack'});
dayEvents.push({ time: '03:30', content: 'Hello Wo... | JavaScript | 0 | @@ -19,18 +19,16 @@
alEvents
-ss
() %7B%0A
|
4ecf3b92a51186ba47f84e6a112004cf17ad90bd | Disable cropping on cancel. | js/demo/demo.js | js/demo/demo.js | /*
* JavaScript Load Image Demo JS
* https://github.com/blueimp/JavaScript-Load-Image
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
*/
/* global loadImage, $ */
$(function () {
'use strict'
var resultNode = $('#result... | JavaScript | 0 | @@ -7577,16 +7577,24 @@
cropAPI)
+ %7B%0A
jcropAP
@@ -7605,16 +7605,47 @@
lease()%0A
+ jcropAPI.disable()%0A %7D%0A
%7D)%0A%7D)%0A
|
fb9f4e2bae782c5131b12a0195105d20187b130b | Initialize group call to nothing | src/frontend/components/GroupCallSection.js | src/frontend/components/GroupCallSection.js | import React from 'react';
import Relay from 'react-relay';
import GroupCallInvitationList from './GroupCallInvitationList';
import GroupCallInvitation from './GroupCallInvitation';
import GroupCallInvitationCreationForm from "./GroupCallInvitationCreationForm";
import {Paper, Styles, RaisedButton} from "material-ui";
... | JavaScript | 0.000001 | @@ -1074,24 +1074,25 @@
.viewer%7D /%3E%0A
+%0A
return (
@@ -2017,85 +2017,244 @@
d: %22
-R3JvdXBDYWxsSW52aXRhdGlvbjplMGY3YzRjMy0wM2YxLTRhMzQtYmRjMC1kNGVkNTBhNDQxMWE=%22
+%22,%0A %7D,%0A%0A prepareVariables: (prev) =%3E%0A %7B%0A var fetchInvitation = true;%0A if (prev.invitationId === %22%22)%0A f... |
2957c9a6fceb9b403ca9bd7a39462f163e56baca | Fix pieces rendering in wrong spots. | js/game/main.js | js/game/main.js | function init() {
// create an new instance of a pixi stage
var stage = new PIXI.Stage(0x66FF99);
// create a renderer instance.
var renderer = PIXI.autoDetectRenderer(512, 512);
// create background image
var bgSprite = new PIXI.Sprite.fromImage("img/bg.png");
stage.addChild(bgSprite);
... | JavaScript | 0 | @@ -879,17 +879,17 @@
= 64 *
-i
+j
;%0A
@@ -910,33 +910,33 @@
sition.y = 64 *
-j
+i
;%0A //
|
9d12aeac15debda8da2e4e7c0c525cd16617a3b9 | Fix translation indentation | js/locales/bootstrap-datepicker.mk.js | js/locales/bootstrap-datepicker.mk.js | /**
* Macedonian translation for bootstrap-datepicker
* Marko Aleksic <psybaron@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['mk'] = {
days: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота", "Недела"],
daysShort: ["Нед", "Пон", "Вто", "Сре", "Чет", "Пет", "Саб", "Нед"],
d... | JavaScript | 0.019255 | @@ -109,9 +109,12 @@
$)%7B%0A
-%09
+
$.fn
@@ -141,16 +141,20 @@
k'%5D = %7B%0A
+
days
@@ -238,24 +238,28 @@
%22%D0%9D%D0%B5%D0%B4%D0%B5%D0%BB%D0%B0%22%5D,%0A
+
daysShor
@@ -315,24 +315,28 @@
%D0%B1%22, %22%D0%9D%D0%B5%D0%B4%22%5D,%0A
+
daysMin:
@@ -382,24 +382,28 @@
%D0%A1%D0%B0%22... |
021915c49246471dbd334789cc7bca90d54b7c4f | Add random scene | js/generator.js | js/generator.js | var Generator = function (container, velocity, lightRay) {
this.container = container;
this.velocity = velocity;
this.lightRay = lightRay;
this._distToNext = 0;
};
Generator.prototype.update = function (dt) {
this._distToNext -= this.velocity.length() * dt;
if (this._distToNext < 0) {
this._distToNex... | JavaScript | 0.000438 | @@ -2072,16 +2072,648 @@
rn 150;%0A
+ %7D,%0A function (container, velocity, lightRay) %7B%0A let obstacle;%0A let position = new THREE.Vector3(Math.random() * GameState.WIDTH, -10, 0);%0A let color = Generator._randomColor(lightRay.getFinalColor());%0A if (Math.random() %3C 0.5) %7B%0A obstacle = n... |
d8bddc98802ce2fff9945bd56e903f071bdc705f | update history pushState to push to silence warning | js/actions/AppActions.js | js/actions/AppActions.js | /*
* Actions change things in your application
* Since this boilerplate uses a uni-directional data flow, specifically redux,
* we have these actions which are the only way your application interacts with
* your appliction state. This guarantees that your state is up to date and nobody
* messes it up weirdly somew... | JavaScript | 0 | @@ -5598,21 +5598,16 @@
ory.push
-State
(locatio
|
faf56e6e74e6a3593f26bc045b97d0b542967e86 | Replace Range with RangeWithValue (https://github.com/phetsims/dot/issues/57) | js/common/GQConstants.js | js/common/GQConstants.js | // Copyright 2014-2015, University of Colorado Boulder
/**
* Constants that are global to this sim.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( function( require ) {
'use strict';
// modules
var Bounds2 = require( 'DOT/Bounds2' );
var graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQu... | JavaScript | 0 | @@ -337,16 +337,25 @@
ar Range
+WithValue
= requi
@@ -368,16 +368,25 @@
OT/Range
+WithValue
' );%0A%0A
@@ -499,32 +499,41 @@
RANGE: new Range
+WithValue
( -10, 10 ),%0A
@@ -556,16 +556,25 @@
ew Range
+WithValue
( -10, 1
|
471bc0bbe632d43109ee21236a687d55e96dda0c | update webpack prod | build/webpack.prod.conf.js | build/webpack.prod.conf.js | var path = require('path')
var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var HtmlWebpackPlugin = require('html-webpack-pl... | JavaScript | 0 | @@ -3803,20 +3803,19 @@
minify:
-fals
+tru
e,%0A
|
ce62374aec0e9f6da33391adcf822eda6735d833 | arrays2 | koans/AboutArrays.js | koans/AboutArrays.js | describe("About Arrays", function() {
//We shall contemplate truth by testing reality, via spec expectations.
it("should create arrays", function() {
var emptyArray = [];
expect(typeof(emptyArray)).toBe("object"); //A mistake? - http:javascript.crockford.com/remedial.html
expect(emptyArray.length).to... | JavaScript | 0.9987 | @@ -2102,34 +2102,45 @@
ay%5B1%5D).toBe(
-FILL_ME_IN
+%22changed in function%22
);%0A%0A var
@@ -2239,26 +2239,42 @@
%5D).toBe(
-FILL_ME_IN
+%22changed in assignedArray%22
);%0A%0A
@@ -2375,34 +2375,31 @@
ay%5B3%5D).toBe(
-FILL_ME_IN
+%22three%22
);%0A %7D);%0A%0A
@@ -2504,34 +2504,33 @@
ay).toEqual(
... |
c26a0bb1995b5e7c169ca1ba1ed9b13ca3533895 | Make a constructor for a component of sidebar-content | js/components/sidebar.js | js/components/sidebar.js | (function(app) {
'use strict';
var helper = app.helper || require('../helper.js');
var dom = app.dom || require('../dom.js');
var Component = app.Component || require('./component.js');
var SidebarModule = app.SidebarModule || require('./sidebar-module.js');
var Sidebar = helper.inherits(function(props) {... | JavaScript | 0.000003 | @@ -264,16 +264,136 @@
.js');%0A%0A
+ var SidebarContent = helper.inherits(function(props) %7B%0A SidebarContent.super_.call(this, props);%0A %7D, Component);%0A%0A
var Si
|
0b48964f13a78c41c10167769711b2fd90d8bac5 | handle normalize fields for multiple cohort. | js/controllers/server.js | js/controllers/server.js | /*global require: false, module: false */
'use strict';
var _ = require('../underscore_ext');
var Rx = require('rx');
var {reifyErrors, collectResults} = require('./errors');
var {resetZoom, setCohort, fetchDatasets, fetchSamples, fetchColumnData} = require('./common');
var xenaQuery = require('../xenaQuery');
var da... | JavaScript | 0 | @@ -382,16 +382,69 @@
etail);%0A
+var %7BupdateFields%7D = require('../models/fieldSpec');%0A
var iden
@@ -2412,16 +2412,28 @@
settings
+, xenaFields
) =%3E %7B%0A%09
@@ -2475,24 +2475,38 @@
s', id%5D,
- _.assoc
+%0A%09%09%09%09%09%09 updateFields
(setting
@@ -2512,16 +2512,18 @@
gs,
-'f
+xenaF
ields
-'
, f... |
03eaed030bd4109bce209d817e1e198c934a2d46 | add main-element | js/html5shiv.js | js/html5shiv.js | /*
HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.ca... | JavaScript | 0.000011 | @@ -1945,16 +1945,21 @@
hgroup
+main
mark met
|
8de97e6f6c7af3ebe05755f947dc7be9ff8c4d81 | Fix unpick. | js/main.ctrl.js | js/main.ctrl.js | (function () {
'use strict';
angular.module('coolpoll', [
'specs',
'polls',
'LocalStorageModule',
'bootstrapLightbox'
])
.config(['localStorageServiceProvider', function (lsProvider) {
lsProvider.setPrefix('[coolpoll]');
}])
.run([
'$rootScope', '$q', 'Specs', 'Polls',
functi... | JavaScript | 0.000002 | @@ -2185,32 +2185,41 @@
x)) %7B%0A
+_.remove(
$scope.graphicsP
@@ -2227,28 +2227,125 @@
cked
-.splice(index - 1, 1
+,%0A function (graphicUrl) %7B%0A return graphicUrl === pickedGraphic.url;%0A %7D%0A
);%0A
|
4ef79f0867364bf02b3010a6b02ca23b9251f385 | Update mariogolf.js | js/mariogolf.js | js/mariogolf.js | // Regular expression /(?:^|[\r\n])([MLPBTYK]+)\|(?:(.*)\|)?([OQ|\-1RNM])(?:$|[\r\n])/
( function( window, undefined ){
window.MarioGolf = function( code ){
var tmp = [];
if( !code || !( code = code.match( /(?:^|[\r\n])([MLPBTYK]+)\|(?:(.*)\|)?([OQ|\-1RNM])(?:$|[\r\n])/ ) ) )
{
throw new SyntaxError( 'Expe... | JavaScript | 0 | @@ -408,16 +408,293 @@
);%0A%09%09%7D%0A
+%09%09/*All credits due to @Jens (http://stackoverflow.com/users/276070/jens) for the trick:%0A%09%09 *%5C+(?=(%5B%5E%22%5D*%22%5B%5E%22%5D*%22)*%5B%5E%22%5D*$) - matches any + not inside quotes%0A%09%09 *Question: http://stackoverflow.com/questions/6462578/alternative-to-reg... |
28a90a424f3bfa42128ad32a20736a111d5a5e5b | replace www to ws for websocket | src/javascript/binary/pages/trade/socket.js | src/javascript/binary/pages/trade/socket.js | /*
* It provides a abstraction layer over native javascript Websocket.
*
* Provide additional functionality like if connection is close, open
* it again and process the buffered requests
*
*
* Usage:
*
* `TradeSocket.init()` to initiate the connection
* `TradeSocket.send({contracts_for : 1})` to send message ... | JavaScript | 0.000001 | @@ -431,32 +431,21 @@
s://
-%22+window.location.host+%22
+ws.binary.com
/web
|
1bc926205aad5462c7f8817c118949525686898d | add trailing slash | packages/idyll-cli/bin/cmds/publish.js | packages/idyll-cli/bin/cmds/publish.js | #! /usr/bin/env node
const p = require('path');
const fs = require('fs-extra');
const readdir = require('recursive-readdir');
const request = require('request-promise-native');
const urljoin = require('url-join');
const chalk = require('chalk');
const ora = require('ora');
const IDYLL_PUB_API = 'https://api.idyll.pub'... | JavaScript | 0.000008 | @@ -1419,16 +1419,17 @@
$%7Balias%7D
+/
%60));%0A %7D
|
6cd904cfce5718098e903b42273b0cc842976670 | Fix notifications sort | src/js/browser-action/NotificationsPopup.js | src/js/browser-action/NotificationsPopup.js | /**
* Displays notifications in the browser-action popup.
*/
class NotificationsPopup {
/**
* Initialize instance, load notifications from storage and watch future data updates.
* @param options
* @param remotePontoon
*/
constructor(options, remotePontoon) {
this._options = options... | JavaScript | 0.000005 | @@ -4507,14 +4507,93 @@
ata)
-.sort(
+%0A .map((nKey) =%3E parseInt(nKey))%0A .sort((a, b) =%3E a - b
).re
|
8841a825997f191a148d9dde661bd14594e97d8a | add ability to toggle composer buttons | packages/node_modules/@webex/private-react-component-space-destination/src/index.js | packages/node_modules/@webex/private-react-component-space-destination/src/index.js | import React from 'react';
import {PropTypes} from 'prop-types';
import {Checkbox, Input, Radio, RadioGroup} from '@collab-ui/react';
import './collab.scss';
const MODE_ONE_ON_ONE_ID = 'userId';
const MODE_ONE_ON_ONE = 'email';
const MODE_SPACE = 'spaceId';
const MODE_SIP = 'sip';
const MODE_PSTN = 'pstn';
const DE... | JavaScript | 0 | @@ -667,32 +667,80 @@
ect.isRequired,%0A
+ composerActions: PropTypes.object.isRequired,%0A
destinationId:
@@ -936,32 +936,86 @@
unc.isRequired,%0A
+ onComposerActionsChange: PropTypes.func.isRequired,%0A
onDestinationC
@@ -5240,24 +5240,351 @@
%3C/div%3E
+%0A%0A %3Cdiv%3E%0A %3Ch3%3E Widge... |
622431ecbf9cd0aab135cf4a0c96056c901e06f5 | Update praxis.js | script/praxis.js | script/praxis.js | var totNumQuest = 1;
var Qn = 1;
var names = ["Scott", "Fred", "Elizabeth", "Kumar", "Harold", "Jensa", "Maria", "Beth", "Steve", "Harry", "Lucy",
"Teneala", "Henrietta", "Bernadette", "Delphinia", "Renea", "Paz", "Stephanie", "Sara", "Sarah", "Larry",
"Jerry", "Garry", "Gary"];
function ... | JavaScript | 0 | @@ -302,16 +302,235 @@
%22Gary%22%5D;
+%0Avar praises = %5B%22Good job!%22, %22Way to go!%22, %22That is correct!%22, %22Yippee!%22, %22Yeah!%22, %22Keep it up!%22%5D;%0Avar sorry = %5B%22Your answer does not match our answer. It could be in the different format. Is it simplified? Try again.%22%5D
%0A%0Afuncti
@@ -20... |
595ccda990d7187e38cc2a939c4edf953a446477 | return message to _activity topic | calendar_acl_list/index.js | calendar_acl_list/index.js | module.exports = function (context, message) {
var google = require('googleapis');
var googleAuth = require('google-auth-library');
var calendar = google.calendar('v3');
var client_email = process.env.client_email;
var private_key = process.env.private_key;
var user_address = 'igor@wrdsb.ca';
... | JavaScript | 0.999995 | @@ -1210,19 +1210,20 @@
context.
-log
+done
(err);%0A
@@ -1233,30 +1233,21 @@
- return;%0A %7D%0A
+%7D else %7B%0A
@@ -1305,32 +1305,36 @@
) %7B%0A
+
if (err) %7B%0A
@@ -1336,32 +1336,36 @@
+
+
context.log(resu
@@ -1377,32 +1377,36 @@
... |
4a217863553d0f4e1b97067a14205f523967cda8 | Fix multi file upload duplication | s3file/static/s3file/js/s3file.js | s3file/static/s3file/js/s3file.js | 'use strict';
(function () {
function parseURL (text) {
var xml = new window.DOMParser().parseFromString(text, 'text/xml')
var tag = xml.getElementsByTagName('Key')[0]
return decodeURI(tag.childNodes[0].nodeValue)
}
function waitForAllFiles (form) {
if (window.uploading !== 0) {
setTimeout... | JavaScript | 0.000001 | @@ -2991,347 +2991,8 @@
ut)%0A
- var hiddenSignatureInput = document.createElement('input')%0A hiddenSignatureInput.type = 'hidden'%0A hiddenSignatureInput.name = name + '-s3f-signature'%0A console.log(fileInput.dataset.s3fSignature)%0A hiddenSignatureInput.value = fileInput.dataset.... |
ceb27601928335c24621175beb98f18ea3ad83c0 | Update to doReactionOutcomeRequest js documentation. | client/app/drug-events/drug-events-service.js | client/app/drug-events/drug-events-service.js | /*
* Copyright (c) 2015 Partnet, Inc. Confidential and Proprietary.
*/
/**
* @ngdoc overview
* @author brandony-pn
* @name drug-events:drug-events-service.js
*
* @description
* # DrugEventsService
* The ADSProtoApp service that handles user request data and provides FDA adverse events information.
*/
(functi... | JavaScript | 0 | @@ -1054,16 +1054,34 @@
ith the
+request frequency
limitati
|
36c305734782cf79e3b0cfcd8bb0cdc013d121aa | Add route that return user info | Server/api/users/routes/user.js | Server/api/users/routes/user.js | 'use strict';
const Boom = require('boom');
const User = require('../models/User');
const createUserSchema = require('../schemas/createUser');
const generateUUID = require('../../../methods/generateUUID');
const formatUser = require('../util/userFunctions').formatUser;
const verifyUniqueUser = require('../util/userFun... | JavaScript | 0 | @@ -2146,24 +2146,332 @@
%09%7D%0A%7D,%7B%0A%09/**%0A
+%09 * Get all users or one user by id%0A%09 */%0A%09method: 'GET',%0A%09path: '/users/me',%0A%09config: %7B%0A%09%09auth: 'jwt'%0A%09%7D,%0A%09handler: (req, res) =%3E %7B%0A%09%09User.findById(req.Token.id, (err, user) =%3E%7B%0A%09%09%09if (err %7C%7C !user) %7B... |
656a890f39e9cd79679677c952ee4a12b4575f07 | Modify bridge states 1. change app.structure.bridge to an abstract state 2. set app.structure.bridge.list as the default state | client/app/main/structure/structure.config.js | client/app/main/structure/structure.config.js | 'use strict';
import { STRUCTURE_WEIGHT } from '../apps.weight';
export default function($stateProvider, $translatePartialLoaderProvider, msApiProvider, msNavigationServiceProvider) {
'ngInject';
// state
$stateProvider
.state('app.structure', {
abstract: true,
url: '/structure'
})
.sta... | JavaScript | 0.000195 | @@ -338,24 +338,46 @@
.bridge', %7B%0A
+ abstract: true,%0A
url: '
@@ -1543,24 +1543,29 @@
cture.bridge
+.list
',%0A %7D);%0A%7D%0A%0A
|
9b20ce7b78cdeeebd2719b5edf6d3ff8406a59b6 | Add list_domains func | js/openshift.js | js/openshift.js | (function($){
Link = function(openshift, name, data)
{
this.openshift = openshift;
this.name = name;
this.data = data;
};
Link.prototype.call = function(success, options)
{
var _cb = null;
if (typeof options === 'object' && typeof options.auth_error === 'function') {
_cb = options.auth_error;
} else if (type... | JavaScript | 0.000005 | @@ -2495,18 +2495,20 @@
tions =
-%7B%7D
+null
;%0A%09this.
@@ -2524,18 +2524,20 @@
ons =
-%7B%7D
+null
;%0A%0A%09$.ge
@@ -4597,16 +4597,395 @@
s);%0A%7D;%0A%0A
+OpenShift.prototype.list_domains = function(options)%0A%7B%0A%09console.log(%22list_domains%22, options);%0A%0A%09var success = function(link, data, s... |
b5282df1d7f09f1476dfd7773689583100a1f1dd | Comment delay example | example/src/home.js | example/src/home.js | import React from 'react'
import List from './list'
import ToolTip from './../../src'
export default class Home extends React.Component {
state = {
isTooltipActive: false,
isTooltipLoading: false,
position: 'right',
arrow: true,
arrowOptions: null
}
componentDidMount() {
this.getArrowOpti... | JavaScript | 0 | @@ -336,32 +336,35 @@
wTooltip() %7B%0A
+ //
this.setState(%7B
@@ -414,16 +414,19 @@
ue%7D)%0A
+ //
setTime
@@ -440,16 +440,19 @@
=%3E %7B%0A
+ //
this.
@@ -486,24 +486,27 @@
false%7D)%0A
+ //
%7D, 2000)%0A
@@ -502,16 +502,60 @@
%7D, 2000)
+%0A%0A this.setState(%7BisTooltipActive: true%... |
0c1281741f506c2a75ceaab77e9610ffdfff6953 | Replace logic | js/objects/ReportDate.js | js/objects/ReportDate.js | function ReportDate ($obj) {
this.element = $obj;
}
ReportDate.prototype.setByDate = function(dateObject) {
var year = dateObject.getFullYear();
var month = dateObject.getMonth() + 1;
var date = dateObject.getDate();
if (month < 10) {
month = '0' + month;
}
if (date < 10) {
date = '0' + date;
}
var date... | JavaScript | 0.999475 | @@ -112,79 +112,33 @@
var
-year = dateObject.getFullYear();%0A%09var month = dateObject.getMonth() + 1
+formatString = '%25Y-%25m-%25d'
;%0A%09v
@@ -144,16 +144,22 @@
var date
+String
= dateO
@@ -168,149 +168,28 @@
ect.
-getDate();%0A%0A%09if (month %3C 10) %7B%0A%09%09month = '0' + month;%0A%09%7D%0A%09if (date... |
e03771b05997d05e61db290cad66d5f49ad34631 | remove hook in authController getCurrentUser | lib/api/controllers/authController.js | lib/api/controllers/authController.js | var
q = require('q'),
PassportWrapper = require('../core/auth/passportWrapper'),
BadRequestError= require('../core/errors/badRequestError'),
ResponseObject = require('../core/models/responseObject');
module.exports = function AuthController (kuzzle) {
this.passport = new PassportWrapper(kuzzle);
this.logo... | JavaScript | 0.000001 | @@ -1856,82 +1856,8 @@
) %7B%0A
- kuzzle.pluginsManager.trigger('auth:getCurrentUser', requestObject);%0A%0A
|
a40a6273953c0e18eddcd67919754814461c5dd4 | Remove spacebars-compiler -> spacebars test dependency. | packages/spacebars-compiler/package.js | packages/spacebars-compiler/package.js | Package.describe({
summary: "Compiler for Spacebars template language"
});
Package.on_use(function (api) {
api.use('spacebars-common');
api.imply('spacebars-common');
// we attach stuff to the global symbol `HTML`, exported
// by `htmljs` via `html-tools`, so we both use and effectively
// imply it.
api... | JavaScript | 0 | @@ -592,32 +592,8 @@
');%0A
- api.use('spacebars');%0A
ap
|
8a4f47066f20ecd26d8a647686276e2223852b4f | fix regression of #2370 (#2791) | protocol-designer/src/containers/ConnectedNav.js | protocol-designer/src/containers/ConnectedNav.js | // @flow
import * as React from 'react'
import type {ThunkDispatch, BaseState} from '../types'
import {connect} from 'react-redux'
import {KNOWLEDGEBASE_ROOT_URL} from '../components/KnowledgeBaseLink'
import {NavTab, TabbedNavBar, OutsideLinkTab} from '@opentrons/components'
import i18n from '../localization'
import ... | JavaScript | 0 | @@ -946,16 +946,52 @@
leClick(
+noCurrentProtocol ? 'file-splash' :
'file-de
|
a0364f28c57b0e78773e9b9e8ab3a2b3d4577dcb | Remove webkit vendor prefix. | js/soundCreator/audio.js | js/soundCreator/audio.js | /**
* audio.js
*
* university: University of Applied Sciences Salzburg
* studie: MultiMediaTechnology
* fhs-nummer: fhs34784
* usage: Basisquaifikation 1 (QPT1)
* author: Thomas Mayrhofer (thomas@mayrhofer.at)
*
* base class for handeling audio output
*/
// add dependencies
// json - object-n... | JavaScript | 0 | @@ -667,14 +667,8 @@
new
-webkit
Audi
@@ -675,16 +675,18 @@
oContext
+()
;%0A
|
2f3673021ca1020c341cf4bdef67f43dd8450119 | Remove 'Did you know:' from beginning of fact | scripts/facts.js | scripts/facts.js | module.exports = function(robot){
robot.facts = {
sendFact: function(response){
var apiUrl = 'http://numbersapi.com/random',
fact = '';
response.http(apiUrl).get()(function(err, res, body){
if (!!err)
return;
response.send('Did you know: ' + body + ' #bocbotfacts');
});
}
};
robot.he... | JavaScript | 0.000375 | @@ -247,27 +247,8 @@
end(
-'Did you know: ' +
body
|
a7d79d952a414fab35e3a370b4bcb181b7d84bf6 | complete SelectInput | client/react/components/common/SelectInput.js | client/react/components/common/SelectInput.js | import React from 'react';
const SelectInput = ({name, label, onChange, defaultOption, value, error, options}) => {
return (
<div className="form-group">
<label htmlFor={name}>{label}</label>
<div className="field">
<select
name={name}
value={value}
onChange={onC... | JavaScript | 0 | @@ -93,16 +93,17 @@
e, error
+s
, option
@@ -111,16 +111,458 @@
%7D) =%3E %7B%0A
+%0A let wrapperClass = 'form-group';%0A if (getError()) %7B%0A wrapperClass += ' has-error';%0A %7D%0A%0A function getError() %7B%0A if (!errors) return;%0A var error = errors.find(e =%3E e.association === name);%0A if ... |
f6c585daea1c6b2e52b3b373a697e65e197294c6 | refactor Legend to use withHandlers | client/src/components/Public/Legend/Legend.js | client/src/components/Public/Legend/Legend.js | // @flow
import React from 'react'
import CircleIcon from 'react-icons/lib/fa/circle-o'
import FilledCircleIcon from 'react-icons/lib/fa/circle'
import {withState} from 'recompose'
import {FACEBOOK_LIKE_SRC} from '../../../constants'
import './Legend.css'
import MapIcon from '../../../assets/mapIcon.svg'
type Props = ... | JavaScript | 0 | @@ -146,25 +146,48 @@
import %7B
-withState
+compose, withState, withHandlers
%7D from '
@@ -363,29 +363,28 @@
lean,%0A
-set
+toggle
Legend
-Open
: (open:
@@ -434,29 +434,28 @@
ndOpen,
-set
+toggle
Legend
-Open
%7D: Props
@@ -462,14 +462,11 @@
) =%3E
- (
%0A
-(
lege
@@ -471,17 +471,16 @@
gendOpen
-)
... |
f9ea21e90677dda2aa162b680ba1b011f16b1443 | Add empty notification message | client/src/js/nav/components/Notifications.js | client/src/js/nav/components/Notifications.js | import React from "react";
import { connect } from "react-redux";
import { Popover } from "react-bootstrap";
import { LinkContainer } from "react-router-bootstrap";
import { map } from "lodash-es";
const getInitialState = (props) => {
const notifArray = [];
if (props.updates && props.updates.releases.length) ... | JavaScript | 0.000003 | @@ -1027,25 +1027,24 @@
.state;%0A
-%0A
const no
@@ -1031,29 +1031,88 @@
te;%0A
-const
+let notifications;%0A%0A if (notifArray.length) %7B%0A
notificatio
@@ -1165,13 +1165,21 @@
+
+
%3Cdiv%0A
+
@@ -1210,32 +1210,36 @@
+
+
style=%7B%7B... |
41df9c530e7674d73def85d8227b7e7a441c7423 | Modify the infinite-scroll directive to allow the scrollable element to be passed (defaults to document if missing). [IQSLDSH-358] | public/modules/core/directives/infiniteScroll.js | public/modules/core/directives/infiniteScroll.js | /*global angular*/
(function (ng) {
'use strict';
angular.module('core').directive('infiniteScroll', ['$timeout', '$document', function (timeout, $document) {
function link(scope, element, attr) {
var lengthThreshold = attr.scrollThreshold || 50,
timeThreshold = attr.timeThr... | JavaScript | 0 | @@ -156,25 +156,24 @@
document) %7B%0A
-%0A
func
@@ -698,66 +698,461 @@
-$document.bind('scroll', function () %7B%0A var
+var scrollCallback = function () %7B%0A var scrollTop, scrollHeight, totalHeight;%0A%0A if (scope.scrollElement) %7B%0A ... |
063bad0af16faf47593804ca6d01cb36229c44d9 | add excluded urls specified for firefox (#478) | scripts/utils.js | scripts/utils.js | /**
* Checks Wayback Machine API for url snapshot
*/
function wmAvailabilityCheck(url, onsuccess, onfail) {
var requestUrl = 'https://archive.org/wayback/available';
var requestParams = 'url=' + encodeURI(url);
fetch(requestUrl, {
method:'POST',
headers: new Headers({
'Content-Type': 'application/... | JavaScript | 0 | @@ -1149,16 +1149,78 @@
ive.org'
+,%0A 'about:debugging',%0A 'about:newtab',%0A 'about:preferences'
%0A%5D;%0A// F
|
5b2b3df99235552133dcd971d312890302fda15e | Add index to the sum function | scripts/utils.js | scripts/utils.js | var _calculateBarBlocks = function(sum, value) {
var count = Math.floor(value/sum*20); // 100% is 20 blocks
return voteBar(count);
};
var _formatMessage = function(fields) {
var message = bold('🏆 Top Result 🏆: ' + fields[0].title) + '\n\n\n';
var sum = fields.reduce(function(pv, cv) { return pv.val... | JavaScript | 0.000897 | @@ -294,16 +294,23 @@
n(pv, cv
+, index
) %7B retu
@@ -314,16 +314,23 @@
eturn pv
+%5Bindex%5D
.value +
@@ -332,16 +332,23 @@
lue + cv
+%5Bindex%5D
.value;
|
a2624c6e5f97db099d93a422233440a1b2cd27db | fix yLabel on pattern editor | client/scripts/components/templates/PatternEditor.js | client/scripts/components/templates/PatternEditor.js | import {compose, curry, identity, filter, forEach, map,
range, repeat, transduce} from 'ramda';
import React from 'react'; // eslint-disable-line
import {connect} from 'react-redux';
import {playNote, stopNote} from '../../noteController';
import store from '../../store';
import {activePatternCellClick,
updat... | JavaScript | 0 | @@ -2580,19 +2580,19 @@
gth - i
-- 1
++ 7
) + root
|
f81143a03b3540759902d02b3c94c728b813bf30 | install forever if not available & start server right away | lib/LaunchService.js | lib/LaunchService.js | var LaunchService = function(){};
LaunchService.prototype.startPB = function(method) {
fs.exists(process.cwd() + '/pencilblue.js', function(exists) {
if (!exists) {
console.log('You must be in the root directory of a PencilBlue installation to run the start command.');
return;
... | JavaScript | 0 | @@ -23,16 +23,17 @@
nction()
+
%7B%7D;%0A%0ALau
@@ -1104,39 +1104,89 @@
if (
-!shell.which('nodemon')) %7B%0A
+err) %7B%0A throw err;%0A %7D%0A%0A
@@ -1337,36 +1337,32 @@
-
console.log('Ins
@@ -1407,36 +1407,32 @@
... |
1dca48223bcce4fb95ec13e97a8c7284d3f5fb1c | Update example.js | examples/example.js | examples/example.js | var aop = require('./../lib/aop');
var cache = {};
var someAsyncFunction = function fnName(num, callback) {
console.log('calculating');
var result = num * 2;
callback(null, result);
cache[num] = result;
};
var cacheAspect = function(method, params) {
console.log(method.name);
var num = params[0];
if (cache[nu... | JavaScript | 0.000001 | @@ -82,15 +82,8 @@
tion
- fnName
(num
@@ -92,24 +92,24 @@
callback) %7B%0A
+
%09console.log
@@ -248,35 +248,8 @@
) %7B%0A
-%09console.log(method.name);%0A
%09var
@@ -493,33 +493,8 @@
) %7B%0A
-%09console.log(this.name);%0A
%09par
@@ -532,24 +532,24 @@
arams);%0A%7D;%0A%0A
+
var formatAs
@@ -586,35 +586,8 @@
... |
becdd2cee23f13531e7e7b8846b4d9f8fb3aaa95 | change the startfrom varible to home directory. | examples/example.js | examples/example.js | var ut = require("./utilities");
var NodeFileFinder = require("./../").NodeFileFinder;
var startfrom = "~/nodefinder";
var nodeFileFinder = new NodeFileFinder({startfrom: startfrom});
nodeFileFinder.start(function(finder,db){
var result;
console.time("#find js");
result = finder.find(".js");
console.timeEnd("#fi... | JavaScript | 0 | @@ -103,19 +103,8 @@
= %22~
-/nodefinder
%22;%0Av
|
7e08a3d704bce80e36556037ffc670177f766a7b | add callback for saucelabs | protractor.conf.js | protractor.conf.js | exports.config = {
baseUrl: 'http://localhost:8080',
specs: ['test/e2e/*Spec.js']
};
if (process.env.TRAVIS) {
exports.config.seleniumAddress = 'http://localhost:4445/wd/hub';
exports.config.capabilities = {
'name': 'Travis CI',
'username': process.env.SAUCE_USERNAME,
'accessKey': process.env.SAUCE_... | JavaScript | 0 | @@ -1048,16 +1048,256 @@
d: true%0A
+ %7D, function(error, response) %7B%0A console.log('SauceLab callback called')%0A if (error) %7B%0A console.error(error);%0A %7D else %7B%0A console.log(response);%0A %7D%0A
|
a943942017e6ce85c2ce0dde4805169c6332d039 | Support set input for read only set | lib/_relation/set-read-only.js | lib/_relation/set-read-only.js | // Set wrap for function results
'use strict';
var contains = require('es5-ext/lib/Array/prototype/contains')
, copy = require('es5-ext/lib/Array/prototype/copy')
, diff = require('es5-ext/lib/Array/prototype/diff')
, remove = require('es5-ext/lib/Array/prototype/remove')
, uniq =... | JavaScript | 0 | @@ -1451,16 +1451,48 @@
alue) %7B%0A
+%09%09if (value == null) return %5B%5D;%0A
%09%09if (is
@@ -1503,24 +1503,24 @@
y(value)) %7B%0A
-
%09%09%09return un
@@ -1608,36 +1608,108 @@
f (value
- == null) return %5B%5D;
+._isSet_) %7B%0A%09%09%09return value.values.map(this._ns.normalize, this._ns).filter(filterNull);... |
e4fa5754912ec1d0b94e668599030c9600422281 | Add the KeyDerivationFunction to AuthKey | lib/auth/auth-key.js | lib/auth/auth-key.js | // telegram.link
// Copyright 2014 Enrico Stara 'enrico.stara@gmail.com'
// Released under the MIT License
// https://github.com/enricostara/telegram-mt-node
// AuthKey class
//
// This class represents the Authentication Key
require('requirish')._(module);
var utility = require('lib/utility');
f... | JavaScript | 0.000027 | @@ -544,16 +544,776 @@
%7D';%0A%7D;%0A%0A
+AuthKey.prototype.derivateAesKey = function(msgKey, fromServer) %7B%0A var aKey = this.value;%0A var x = fromServer ? 8 : 0;%0A var sha1A = utility.createSHAHash(Buffer.concat(%5BmsgKey, aKey.slice(x, x + 32)%5D, 48));%0A var sha1B = utility.createSHAHash(Buffer.c... |
e3f29fef9cbd98d6fb68d49a396d6260e2797e39 | Fix error callbacks in interfaces | lib/baseInterface.js | lib/baseInterface.js | var EventEmitter = require('events').EventEmitter;
var Subscription = require('./subscription');
var ThoonkBaseInterface = function (thoonk) {
EventEmitter.call(this);
this.thoonk = thoonk;
this.redis = this.thoonk.redis;
};
ThoonkBaseInterface.prototype = Object.create(EventEmitter.prototype);
ThoonkBas... | JavaScript | 0.000014 | @@ -1014,16 +1014,41 @@
, err);%0A
+ cb(err);%0A
|
3c9822407d81ca9d5e6dfd440fd8ebd8425ea881 | Fix accidental typo | lib/buffer-source.js | lib/buffer-source.js | var canPlaySrc = require('./can-play-src')
var createAudioContext = require('./audio-context')
var xhrAudio = require('./xhr-audio')
var EventEmitter = require('events').EventEmitter
var rightNow = require('right-now')
var resume = require('./resume-context')
module.exports = createBufferSource
function createBufferSo... | JavaScript | 0.999999 | @@ -2959,18 +2959,18 @@
tAttribu
-e
t
+e
('src')%0A
|
be6c4b44cc82e94624e8263bad2784115e1ca3d9 | Fix typo | cli/src/commands/init.js | cli/src/commands/init.js | // @flow
import path from 'path';
import { green } from 'chalk';
import inquirer from 'inquirer';
import R from 'ramda';
import tildify from 'tildify';
import untildify from 'untildify';
import { answerWithOptionIfSetOrPrompt } from '../cli/answerWithOption';
import { configDefaults, createConfig } from '../config';
i... | JavaScript | 0.999999 | @@ -3358,19 +3358,25 @@
%7D%0A%0Atype
-Get
+PromptFor
Overwrit
@@ -3372,30 +3372,24 @@
ForOverwrite
-Option
Args = %7B%7C%0A
@@ -3533,11 +3533,17 @@
%0A%7D:%0A
-Get
+PromptFor
Over
@@ -3547,22 +3547,16 @@
verwrite
-Option
Args): P
|
ba815e9465cd78097baaa503c536e8c86160c879 | comment out unit test cases so avoid Travis-CI build failed | packages/truffle-core/test/commands.js | packages/truffle-core/test/commands.js | var Command = require("../lib/command");
var commands = require("../lib/commands");
var commander = new Command(commands);
var assert = require("assert");
describe("Commander", function() {
before("assert preconditions", function() {
// These commands are expected to exist in tests.
assert.notEqual(commands.... | JavaScript | 0 | @@ -1545,16 +1545,93 @@
%0A %7D);%0A%0A
+ // Travis-CI build will failed if the following test cases are uncomment.%0A%0A
// it(
@@ -1704,24 +1704,24 @@
unction() %7B%0A
-
// var a
@@ -2224,24 +2224,27 @@
%0A // %7D);%0A%0A
+ //
it(%22will st
@@ -2306,32 +2306,35 @@
, function() %7B%0A
+ //
var a... |
636fca796f1c2265c779618455b4ffc5d8634bdf | change style based on resolution. This fixes #3. | client/layers/capture.js | client/layers/capture.js | //----------------------------------------------------------------------------------------------------------------------
/// CurrentPositionLayer
///
/// @module
//----------------------------------------------------------------------------------------------------------------------
import _ from 'lodash'
import $http ... | JavaScript | 0 | @@ -903,33 +903,25 @@
%7D);%0A
-
%0A
+
this
@@ -1081,25 +1081,17 @@
%7D);%0A
-
%0A
+
@@ -1157,25 +1157,17 @@
false);%0A
-
%0A
+
@@ -1708,41 +1708,610 @@
-return this._buildStyle(feature);
+if(resolution %3C 20)%0A %7B%0A ... |
113bea31cc1800714bf65b7f308aa8484361e9ed | Allow mentions in mentions command | lib/cmds/mentions.js | lib/cmds/mentions.js | 'use strict';
exports.info = {
desc: 'Search messages for user/role mentions and post in a DM.',
usage: '[number]',
aliases: [],
};
const moment = require('moment');
const logger = require('winston');
const utils = require('../utilities');
exports.run = (client, msg, params = []) => {
// Exit if not ran in no... | JavaScript | 0 | @@ -2678,16 +2678,44 @@
ader + c
+, %7B disableEveryone: false %7D
);%0A
|
4710523967e6c2d5bd8af156f1f46e1d6871fa5a | Use pipeable operator for custom operator example. | lib/code-examples.js | lib/code-examples.js | export default {
'basic-interval': {
name: 'Basic interval',
code: `Rx.Observable
.interval(1000)
.take(4)
`,
timeWindow: 5000
},
'random-error': {
name: 'Random error',
code: `Rx.Observable
.create(observer => {
let n = 1;
const intervalId = setInterval(() => {
if (Math.r... | JavaScript | 0 | @@ -2254,65 +2254,31 @@
e: %60
-Rx.Observable.prototype.sqrt = function sqrt() %7B%0A return
+const sqrt = source$ =%3E
Rx.
@@ -2313,14 +2313,15 @@
%3E%0A
- this
+source$
.sub
@@ -2332,18 +2332,16 @@
be(%0A
-
value =%3E
@@ -2339,26 +2339,24 @@
value =%3E %7B%0A
-
const
@@ -2382,25 +2382,22 ... |
bf80f855de9ed666bc0107d11e730563cb65e295 | insert order | client/order_sequence.js | client/order_sequence.js | Meteor.startup(function () {
Session.set("order", {});
Session.set("product", {});
Template.createOrder.events({
'click .select-store': function(e) {
var order = Session.get("order");
order.store_id = this._id;
Session.set("order", order);
Session.set('activeStore', this._id);
$("#buy_two").addC... | JavaScript | 0.000001 | @@ -1582,16 +1582,339 @@
;%0A%09%09%09%7D)%0A
+%09%09%7D,%0A%09%09'click .item_brew': function(e) %7B%0A%09%09%09var order = Session.get(%22order%22);%0A%09%09%09Orders.insert(%7B%0A%09%09%09%09status: %22requesting%22,%0A%09%09%09%09store_id: order.status_id,%0A%09%09%09%09time_of_order: new Date().getTime(),%0A%09%0... |
acf866f05b8e5dfe508052e720e5a01c9816dada | fix ui undefined error | lib/commands/init.js | lib/commands/init.js | 'use strict';
var path = require('path');
var chalk = require('chalk');
var Config = require('../utils/config');
var Promise = require('../ext/promise');
var stringUtils = require('../utils/string');
var linkEnv = require('../tasks/link-environment');
module.exports = {
name: 'cdv:init',
description: 'Initiali... | JavaScript | 0.000001 | @@ -19,16 +19,21 @@
path
+
= requir
@@ -54,16 +54,21 @@
chalk
+
= requir
@@ -90,16 +90,21 @@
Config
+
= requir
@@ -137,16 +137,20 @@
Promise
+
= requir
@@ -228,16 +228,20 @@
linkEnv
+
= requir
@@ -271,16 +271,52 @@
nment');
+%0Avar ui = require('../ui');
%0A%0Amodu... |
29182e392c6ffcf20f0e47b6331e5c7ef7b4e0f7 | fix server port | server/config.js | server/config.js | module.exports = function (app) {
'use strict';
var express = require('express'),
favicon = require('serve-favicon'),
morgan = require('morgan'),
compression = require('compression'),
bodyParser = require('body-parser'),
methodOverride = require('method-override'),
cookieParser = r... | JavaScript | 0.000001 | @@ -517,14 +517,36 @@
rt',
+ (process.env.PORT %7C%7C
3000)
+)
;%0D%0A
|
009f599b5a3663b05fbcc149ea1a2e712b6e0f0c | use env variables for keys | server/config.js | server/config.js | module.exports = {
'storageAccount': 'techreadytweets',
'storageKey': 'PzXtLAbAwgCb5n59x0OFETbcXCA3fvH0pMQUzg1oXExWeH2ojwqfhJpmskQ8KCmtq9x2STARM+5KFBaIaGyFIA==',
}; | JavaScript | 0.000001 | @@ -40,136 +40,98 @@
t':
-'techreadytweets',%0D%0A 'storageKey': 'PzXtLAbAwgCb5n59x0OFETbcXCA3fvH0pMQUzg1oXExWeH2ojwqfhJpmskQ8KCmtq9x2STARM+5KFBaIaGyFIA=='
+process.env.AZURE_STORAGE_ACCOUNT,%0D%0A 'storageKey': process.env.AZURE_STORAGE_ACCESS_KEY
,%0D%0A%7D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.