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 |
|---|---|---|---|---|---|---|---|
f873636cba88db1f9a7a014cdf4516ccccb5087d | Update nocache.js | skyline/Scripts/nocache.js | skyline/Scripts/nocache.js | window.onload = function() {
var el = document.createElement('script');
el.src = "Scripts/script.js?nocache=" + (new Date()).getTime();
document.head.appendChild(el);
console.log('nochache.js finsihed');
} | JavaScript | 0.000001 | @@ -202,17 +202,16 @@
'noc
-h
ache.js
fins
@@ -210,18 +210,18 @@
.js
-finsih
+execut
ed');%0D%0A%7D
@@ -220,8 +220,10 @@
ed');%0D%0A%7D
+%0D%0A
|
d6862293c6ad81fabffebb6d0fd5b02e17bd1224 | Include mocha lazily, production env might not have it | cli/test.js | cli/test.js | // Run tests & exit
//
'use strict';
const _ = require('lodash');
const glob = require('glob');
const Mocha = require('mocha');
const path = require('path');
////////////////////////////////////////////////////////////////////////////////
module.exports.parserParameters = {
add_help: true,
help... | JavaScript | 0 | @@ -105,42 +105,8 @@
');%0A
-const Mocha = require('mocha');%0A
cons
@@ -1266,16 +1266,55 @@
, N));%0A%0A
+ let Mocha = require('mocha');%0A
let mo
|
8c9e6a85e63891fc0e3ea852268e4979d8b8302a | add solution | Algorithms/JS/arrays/matrices/rotateImage.js | Algorithms/JS/arrays/matrices/rotateImage.js | // You are given an n x n 2D matrix representing an image.
// Rotate the image by 90 degrees (clockwise).
// Follow up:
// Could you do this in-place?
| JavaScript | 0.000003 | @@ -146,8 +146,526 @@
-place?%0A
+%0A%0Avar rotate = function(matrix) %7B%0A var rows = matrix.length,%0A col = matrix.length;%0A%0A for (var i = 0; i %3C rows; i++)%7B%0A for (var j = i + 1; j %3C col; j++)%7B%0A var temp = matrix%5Bi%5D%5Bj%5D;%0A matrix%5Bi%5D%5Bj%5D = matr... |
9085ef9f4172c28097f6fa78d4555095c1643b52 | Remove AddMethods module, since all we do is load and enable. | extensions/Accessibility-Extension.js | extensions/Accessibility-Extension.js | //
// Thin hook to include the accessibility extension.
//
(function(HUB,EXTENSIONS) {
var SETTINGS = HUB.config.menuSettings;
var ITEM, MENU; // filled in when MathMenu extension loads
var BIND = (Function.prototype.bind ? function (f,t) {return f.bind(t)} :
function (f,t) {return function () {f... | JavaScript | 0 | @@ -1913,26 +1913,16 @@
i%5D; i++)
- %7B%0A
module.
@@ -1939,45 +1939,8 @@
();%0A
- module.AddMethods();%0A %7D%0A
@@ -2360,19 +2360,24 @@
name:
+%5B
'',
+''%5D,
%0A mod
@@ -2453,45 +2453,8 @@
ll,%0A
- Enable: null,%0A Disable: null,%0A
@@ -3356,29 +3356,20 @@
e,%5B%2... |
b7965e101ad77b65aa60ef9a452fa7efe5d2641a | Remove the outer function | responav.js | responav.js | (function($){
$.fn.responav = function(options) {
var settings = $.extend({
breakpoint : 720,
trigger : true
}, options);
var menu = $(this);
var hasTrigger = false;
$(window).on('resize.responav', function () {
var browserWidth = $(window).width();
if (browserWidth < settings.breakpoint) {
... | JavaScript | 0.000076 | @@ -1,20 +1,4 @@
-(function($)%7B%0A%0A%09
$.fn
@@ -30,17 +30,16 @@
ons) %7B%0A%0A
-%09
%09var set
@@ -57,17 +57,16 @@
xtend(%7B%0A
-%09
%09%09breakp
@@ -79,17 +79,16 @@
720,%0A%09%09
-%09
trigger
@@ -94,17 +94,16 @@
: true%0A
-%09
%09%7D, opti
@@ -109,17 +109,16 @@
ions);%0A%0A
-%09
%09var men
@@ -130,17... |
b01a21b37f18151755da2a270eed634c2abd1ecf | Remove unused fs. | src/make-webpack-config.js | src/make-webpack-config.js | var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var Initial = require('postcss-initial');
var merge = require('webpack-merge');
var prettyjson = require('prettyjs... | JavaScript | 0 | @@ -1,28 +1,4 @@
-var fs = require('fs');%0A
var
|
d909a8988ff366f69a0ba4f8e9733f99f38f1425 | Fix crash on delete in private message | src/Utility/DeletedMessage.js | src/Utility/DeletedMessage.js | const BotModule = require('../BotModule');
module.exports = BotModule.extend({
config: null,
i18n: null,
dependencies: {
'config': 'config',
'i18n': 'i18n',
},
initialize: function (dependencyGraph) {
this._super(dependencyGraph);
this.discordClient.on('messageDelete... | JavaScript | 0 | @@ -329,16 +329,63 @@
ge =%3E %7B%0A
+ if (message.guild == null) return;%0A
|
75c8628f03009aa121b6047bc928ad181b34a48d | update server url | server/public/js/client.js | server/public/js/client.js | // Convert numbers to words
// copyright 25th July 2006, by Stephen Chapman http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code (including this copyright notice) is
// used exactly as shown (you can change the numbering system if you wish)
// htt... | JavaScript | 0.000001 | @@ -1528,19 +1528,20 @@
r server
-url
+base
= 'http
@@ -1564,14 +1564,46 @@
.biz
-:12000
+'%0Avar serverurl = serverbase+'/checkin
'%0Ava
@@ -3912,19 +3912,20 @@
t(server
-url
+base
);%0A s
|
ae480de6e65f4935faecc363c3d9485e3ab95a71 | Make `all`, `allSettled`, `race` helpers support to cancel promises with `__ec_cancel__` outside an task. | addon/-yieldables.js | addon/-yieldables.js | import Ember from 'ember';
import TaskInstance from './-task-instance';
const RSVP = Ember.RSVP;
/**
* A cancelation-aware variant of [Promise.all](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).
* The normal version of a `Promise.all` just returns a regular, uncancel... | JavaScript | 0 | @@ -2908,24 +2908,115 @@
t.cancel();%0A
+ %7D else if (typeof it.__ec_cancel__ === 'function') %7B%0A it.__ec_cancel__();%0A
%7D%0A
|
9674ef4b27ebf250d9f6968cdd43e037ee509c7a | Make traverseNeedsParent message clearer. | packages/babel-messages/src/index.js | packages/babel-messages/src/index.js | /* @flow */
import * as util from "util";
/**
* Mapping of messages to be used in Babel.
* Messages can include $0-style placeholders.
*/
export const MESSAGES = {
tailCallReassignmentDeopt: "Function reference has been reassigned, so it will probably be dereferenced, therefore we can't optimise this with confi... | JavaScript | 0 | @@ -1982,22 +1982,95 @@
File
- got a $1 node
+. Instead of that you tried to traverse a $1 node without passing scope and parentPath.
%22,%0A
|
07af34f60ed2b70c4a86212b7099d5b6521c2af4 | Update nodb version. | generated/server/start.nodb.js | generated/server/start.nodb.js | 'use strict';
const chalk = require('chalk');
const port = (process.env.PORT || 4545);
let requireApp = new Promise(function(resolve, reject) {
let app = require('./app');
resolve(app);
});
// Start the server
requireApp
.then(function(app) {
app.listen(port, function() {
console.log('The server is listening... | JavaScript | 0 | @@ -449,12 +449,21 @@
k('
-gulp
+npm run watch
')
|
871e1a72ca183278674156d636a1b8cb6e2d2b72 | Add spam term. | soundcloud-comments-bot.js | soundcloud-comments-bot.js | "use strict";
// Local tweet test override.
var canTweetFromLocal = false;
// Load libraries.
var _ = require('underscore');
var wordfilter = require('wordfilter');
var SC = require('node-soundcloud');
var Twit = require('twit');
// Are we on production? Check if an important environment variable exists.
function is... | JavaScript | 0.000001 | @@ -5028,16 +5028,30 @@
rofile',
+%0A 'premiere',
%0A%0A 'sou
|
b5507be7dfdbc6c74465f7d7aca63c5e5f569c8c | Allow to use custom r.js with relative path | examples/almond-text-plugin-project/node_modules/grunt-requirejs/lib/helper/rjsversion.js | examples/almond-text-plugin-project/node_modules/grunt-requirejs/lib/helper/rjsversion.js | /*
* grunt-require
* https://github.com/asciidisco/grunt-requirejs
*
* Copyright (c) 2012 asciidisco
* Licensed under the MIT license.
*/
exports.init = function(grunt) {
'use strict';
var fs = require('fs');
var exports = {};
// privates
var isDefaultVersion = true;
var requirejs = null;
// Ret... | JavaScript | 0 | @@ -566,30 +566,24 @@
';%0A%0A //
- check
if the cust
@@ -630,16 +630,16 @@
urn the%0A
+
//
@@ -712,39 +712,11 @@
-if (fs.existsSync(rjsPathname))
+try
%7B%0A
@@ -820,15 +820,28 @@
js;%0A
-
%7D
+ catch (e) %7B%7D
%0A%0A
|
ba3bc689ca7931eafe4ba59dc5b77838a33b9313 | update BaseButton | src/_BaseButton/BaseButton.js | src/_BaseButton/BaseButton.js | /**
* @file BaseButton component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import CircularLoading from '../CircularLoading';
import TipProvider from '../TipProvider';
import TouchRipple from... | JavaScript | 0 | @@ -4585,16 +4585,20 @@
%7D%0A%7D;%0A%0A
+if (
process.
@@ -4614,29 +4614,78 @@
ENV
-!
+=
== '
-production' && (
+development') %7B%0A const PropTypes = require('prop-types');%0A
Base
@@ -4706,24 +4706,28 @@
es = %7B%0A%0A
+
+
className: P
@@ -4743,24 +4743,28 @@
string,%0A
+
+
style:... |
f6677b1f93351a1852ad13190348145e21fd5b02 | Fix entry count offset | mac/filetypes/open_M_93.js | mac/filetypes/open_M_93.js | define(['itemObjectModel'], function(itemObjectModel) {
'use strict';
function open(item) {
return item.getBytes().then(function(bytes) {
if (String.fromCharCode.apply(null, bytes.subarray(0, 4)) !== 'RIFX'
|| String.fromCharCode.apply(null, bytes.subarray(8, 12)) !== 'MV93') {
return Pr... | JavaScript | 0.000001 | @@ -2014,33 +2014,33 @@
aView.getUint32(
-0
+8
, false);%0A
|
4ffd48db3ae87a3fcaedffb59315f54fad55de6f | update build | dist/app.js | dist/app.js | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | JavaScript | 0.000001 | @@ -1429,512 +1429,75 @@
k %25%3E
-, wykryto wulgaryzmy w Twoim wpisie ( %CD%A1%C2%B0 %CA%96%CC%AF %CD%A1%C2%B0) zr%C3%B3b #pokazmorde albo to zg%C5%82osz%C4%99. Wygenerowano automatycznie przez ostoje prawilno%C5%9Bci na Wykopie, **TestBot**', '@%3C%25= nick %25%3E, wykryto wulgaryzmy w Twoim wpisie ( %CD%A1%C2%B0 %C... |
390570cfac195da3878f7cb8ce5a3947a0d2dff3 | Update location search to match new API | public/collections/locations.js | public/collections/locations.js | define([
'models/location'
], function(
LocationModel
) {
var baseUrl = 'api/locations';
var collection = {
model: LocationModel,
url: baseUrl,
/**
* Clear any currently applied filters so that future
* fetch calls will return ALL locations
*
* @returns {undefined}
*/
clearFilt... | JavaScript | 0 | @@ -621,16 +621,16 @@
+ '
-/
+?
search
-/
+=
' +
|
cf666419b0d5617b1010421d540ca35b8d973652 | Remove `Discourse.computed` now that we have it in stable | assets/javascripts/discourse/components/tag-drop.js.es6 | assets/javascripts/discourse/components/tag-drop.js.es6 | var get = Ember.get;
export default Ember.Component.extend({
classNameBindings: [':tag-drop', 'tag::no-category', 'tags:has-drop','categoryStyle','tagClass'],
categoryStyle: Discourse.computed.setting('category_style'), // match the category-drop style
currentCategory: Em.computed.or('secondCategory', 'firstCate... | JavaScript | 0 | @@ -1,12 +1,63 @@
+import %7B setting %7D from 'discourse/lib/computed';%0A%0A
var get = Em
@@ -223,35 +223,16 @@
yStyle:
-Discourse.computed.
setting(
@@ -349,24 +349,24 @@
Category'),%0A
+
showFilter
@@ -376,27 +376,8 @@
ag:
-Discourse.computed.
sett
|
6d1240b0d9545e0f2b386822a1ebff6500a082a9 | update TriggerPop | src/_TriggerPop/TriggerPop.js | src/_TriggerPop/TriggerPop.js | /**
* @file TriggerPop component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component, Fragment} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import eventsOn from 'dom-helpers/events/on';
import eventsOff from 'dom-helpers/events/off';
import Pop ... | JavaScript | 0 | @@ -1173,32 +1173,8 @@
tion
-, isTriggerPositionFixed
%7D =
@@ -1283,53 +1283,17 @@
l(),
-%0A position, isTriggerPositionFixed
+ position
);%0A%0A
@@ -2993,32 +2993,8 @@
- isTriggerPositionFixed,
sho
@@ -6141,52 +6141,8 @@
ool,
-%0A isTriggerPositionFixed: PropTypes.bool,
%0A%0A
@@ -7071,... |
30034b7e631513b39f83057ce1f5239e12312ad8 | Change BITD to new loader format | mac/resources/open_BITD.js | mac/resources/open_BITD.js | define(['mac/bitpacking'], function(bitpacking) {
'use strict';
return function(resource) {
resource.getUnpackedData = function() {
return bitpacking.unpackBits(this.data.buffer, this.data.byteOffset, this.data.byteLength);
};
};
});
| JavaScript | 0.000001 | @@ -85,32 +85,24 @@
ion(
-resource) %7B%0A resource
+item) %7B%0A item
.get
@@ -146,90 +146,142 @@
urn
-bitpacking.unpackBits(this.data.buffer, this.data.byteOffset, this.data.byteLength
+this.getBytes().then(function(bytes) %7B%0A return bitpacking.unpackBits(bytes.buffer, bytes.byteOffset, bytes.byte... |
25a1923c1039a3e107ffe1f8fea5dee2333d28d8 | remove translate code from projects without translation | generators/client/templates/src/main/webapp/app/admin/user-management/_user-management.js | generators/client/templates/src/main/webapp/app/admin/user-management/_user-management.js | 'use strict';
angular.module('<%=angularAppName%>')
.config(function ($stateProvider) {
$stateProvider
.state('user-management', {
parent: 'admin',
url: '/user-management',
data: {
authorities: ['ROLE_ADMIN'],
... | JavaScript | 0 | @@ -644,32 +644,79 @@
resolve: %7B%0A
+ %3C%25 if (enableTranslation) %7B %25%3E%0A
@@ -826,32 +826,32 @@
artialLoader) %7B%0A
-
@@ -978,32 +978,56 @@
%7D%5D%0A
+ %3C%25 %7D %25%3E%0A
@@ -1596,32 +1596,79 @@
r... |
6da45bb9c3a48596b1276a5593a1461ebfa26e64 | fix ripple when touching on the operation list | mobile/activities/Home/components/Operation/index.js | mobile/activities/Home/components/Operation/index.js | import React from 'react'
import { connect } from 'react-redux'
import { compose, flattenProp, setDisplayName } from 'recompose'
import { StyleSheet, View } from 'react-native'
import { SimpleLineIcons } from '@expo/vector-icons'
import { Text, Divider, TouchableRipple } from 'react-native-paper'
import { goToOperation... | JavaScript | 0.000009 | @@ -455,16 +455,64 @@
reate(%7B%0A
+ wrapper: %7B%0A backgroundColor: 'white',%0A %7D,%0A
contai
@@ -659,38 +659,8 @@
5,%0A
- backgroundColor: 'white',%0A
%7D,
@@ -1085,24 +1085,54 @@
=%3E (%0A %3CView
+%0A style=%7Bstyles.wrapper%7D%0A
%3E%0A %3CTouch
|
11bfd555b99bbef2e2c47942b45cbba442691abb | fix display errors (#15935) | packages/cascader-panel/src/store.js | packages/cascader-panel/src/store.js | import Node from './node';
import { coerceTruthyValueToArray } from 'element-ui/src/utils/util';
const flatNodes = (data, leafOnly) => {
return data.reduce((res, node) => {
if (node.isLeaf) {
res.push(node);
} else {
!leafOnly && res.push(node);
res = res.concat(flatNodes(node.children, lea... | JavaScript | 0 | @@ -53,16 +53,29 @@
eToArray
+, valueEquals
%7D from
@@ -1415,78 +1415,8 @@
) %7B%0A
- value = Array.isArray(value) ? value%5Bvalue.length - 1%5D : value;%0A
@@ -1501,16 +1501,50 @@
(node =%3E
+ (valueEquals(node.path, value) %7C%7C
node.va
@@ -1557,16 +1557,17 @@
= value)
+)
;%0A
|
26b4579f74cee7912f7dbdbec248c443d4fa44a7 | fix a log message | packages/hub/schema-cache.js | packages/hub/schema-cache.js | /*
There are three sources of schema information.
1. Most of it lives within a regular data source, just like your
other content does.
2. But we need a tiny bit of schema to find the first data
source. This is the `seedModels` that are passed into the
constructor below. Note that only schema type... | JavaScript | 0.999972 | @@ -1875,19 +1875,16 @@
branch
-%25s
%25s%22, bra
|
5d22c6f1cd75f9c3b80e954488a76e3497c153b4 | Switch order of tests to debug CI test issue | src/account/currentBalance/CurrentBalance.spec.js | src/account/currentBalance/CurrentBalance.spec.js | import React from 'react';
import { shallow } from 'enzyme';
import { Message } from 'retranslate';
import { Loader } from '../../common';
import PensionFundOverview from './pensionFundOverview';
import CurrentBalance from './CurrentBalance';
describe('Current balance', () => {
let component;
beforeEach(() => {
... | JavaScript | 0 | @@ -616,521 +616,521 @@
a l
-ink to the EVK', () =%3E %7B%0A const evkLink = () =%3E component.find('a').first();%0A expect(evkLink().prop('href')).toBe('https://www.e-register.ee/');%0A expect(evkLink().children().at(0).node)%0A .toEqual(%3CMessage%3Eaccount.current.balance.evk%3C/Message%3E);%0A %7D)... |
3492633a942b4fba6fec21936306b1ddcd3842df | Remove streed requirement from validation | view/frontend/web/js/model/shipping-rates-validation-rules.js | view/frontend/web/js/model/shipping-rates-validation-rules.js | /**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
/*global define*/
define(
[],
function () {
'use strict';
return {
getRules: function () {
return {
'firstname': {
'required'... | JavaScript | 0 | @@ -445,104 +445,8 @@
%7D,%0A
- 'street': %7B%0A 'required': true%0A %7D,%0A
|
9071d22dc706f5fba27fb9b67ac45afd6d1bafef | put pacman in center and ghost in random location and delete ghosts 2-4 | app/assets/javascripts/game/game_characters.js | app/assets/javascripts/game/game_characters.js | var gameCharacters = {};
gameCharacters.createPerson = function() {
person = game.add.sprite(0, 0, 'sprites');
person.scale.setTo(1.2, 1.2);
person.anchor.setTo(0.5, 0.5);
person.userControl = false;
person.animations.add('right', [10, 11], 0, true);
person.animations.add('bottom', [24, 25], 0, true);
pe... | JavaScript | 0 | @@ -93,12 +93,43 @@
ite(
-0, 0
+CANVAS_WIDTH / 2, CANVAS_HEIGHT / 2
, 's
@@ -626,36 +626,67 @@
ite(
-100, game.world.height - 100
+CANVAS_WIDTH * Math.random(), CANVAS_HEIGHT * Math.random()
, 's
@@ -1022,16 +1022,16 @@
ost1.x;%0A
+
ghost1
@@ -1054,1478 +1054,8 @@
y;%0A%0A
- // ghost2 = game.add.sprite(200, g... |
e0268053e10a3d1418fd33a3434dff1a4fadabec | Fix flow issue on travis ci | packages/relay-compiler/bin/RelayCompilerBin.js | packages/relay-compiler/bin/RelayCompilerBin.js | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... | JavaScript | 0 | @@ -1914,16 +1914,42 @@
lowFixMe
+(site=react_native_fb,www)
%0A const
|
c1e0cf79863743435528cd85a861adc0975f5ea2 | simplify test harness using features in ephemeral storage plugin | packages/test-support/env.js | packages/test-support/env.js | const temp = require('./temp-helper');
const ElasticAssert = require('@cardstack/elasticsearch/node-tests/assertions');
const JSONAPIFactory = require('./jsonapi-factory');
const crypto = require('crypto');
const { wireItUp } = require('@cardstack/hub/main');
const Session = require('@cardstack/plugin-utils/session');
... | JavaScript | 0 | @@ -995,17 +995,56 @@
hemeral'
+,%0A params: %7B initialModels %7D
%0A
-
@@ -1475,24 +1475,24 @@
exing: true%0A
+
%7D);%0A%0A
@@ -1492,701 +1492,8 @@
);%0A%0A
- let writers = container.lookup('hub:writers');%0A%0A for (let model of initialModels) %7B%0A // TODO: this one-by-o... |
8271c84ab9d6feab227e916e65f3eac8b9c59713 | Change signature | dlog.min.js | dlog.min.js | // dlog.js 0.0.1
// https://github.com/ddo/dlog
// (c) 2014 Ddo <http://ddo.me>
(function(){function b(a){a=a?a:{};this.setName(a.name);this.setLevel(a.level);this.setSize(a.size)}this.dlog=b;b.prototype.setName=function(a){return this.name=a?a:"DLOG"};b.prototype.setLevel=function(a){this.level=a?this.level_map[a]?a:... | JavaScript | 0.000001 | @@ -4,11 +4,8 @@
dlog
-.js
0.0
@@ -18,25 +18,23 @@
http
-s
://
+ddo.
github.
-com/dd
+i
o/dl
@@ -1481,8 +1481,9 @@
s)%7D%7D)();
+%0A
|
26bbd9c9a676b05fb74b276b1f2962146012f78e | Add controllers for /api/rooms and /api/messages | server/routes/apiRoutes.js | server/routes/apiRoutes.js | const apiRouter = require('express').Router();
const getMatches = require('../db/controllers/getMatchesGivenSelfAndOffset.js');
const addToRequests = require('../db/controllers/moveMatchIntoRequestsGivenSelfIdAndMatchId.js');
const addToRejects = require('../db/controllers/moveMatchIntoRejectsGivenSelfIdAndMatchId.js')... | JavaScript | 0 | @@ -39,16 +39,44 @@
outer();
+%0A%0A// controller for /matches
%0Aconst g
@@ -144,24 +144,59 @@
Offset.js');
+%0A%0A// controllers for /relationships
%0Aconst addTo
@@ -731,24 +731,523 @@
stId.js');%0A%0A
+// controllers for /profile/:id%0Aconst updateDescription = require('../db/controllers/updateDescriptionGiven... |
2219a811fe9596787c6282cb014c042443a7872e | Set the episode category correctly, don't override tagginggs. | walkin/static/js/walkin/controllers/walkin_hospital_number.js | walkin/static/js/walkin/controllers/walkin_hospital_number.js | //
// This is our "Enter Walk-in" flow controller
//
controllers.controller(
'WalkinHospitalNumberCtrl',
function($scope, $modalInstance, $modal, $rootScope,
schema, options,
Episode){
$scope.model = {
hospitalNumber : null
}
$scope.patient = null;
... | JavaScript | 0.999995 | @@ -158,16 +158,20 @@
otScope,
+ $q,
%0A
@@ -632,241 +632,24 @@
-if(!episode.tagging%5B0%5D.makeCopy)%7B%0A episode.tagging%5B0%5D = episode.newItem('tagging',%7B%0A column: %7Bname: 'tagging', fields: %5B%5D %7D%0A %7D)%0A %7D%0A var... |
6fde0d98881fcc6fc19a87ff26b348fc2307e1d2 | fix olElement was not defined | spec/element-list-spec.js | spec/element-list-spec.js | /* @flow */
import "module-alias/register"
import { ListElement } from "../dist/elements/list"
import { createSuggestion } from "./helpers"
import { render } from "solid-js/web"
function getOlElement(suggestions) {
const rootElement = document.createElement("div")
const selectCallback = jasmine.createSpy("sugges... | JavaScript | 0.000041 | @@ -173,16 +173,57 @@
s/web%22%0A%0A
+/* eslint-disable-next-line no-shadow */%0A
function
@@ -605,16 +605,22 @@
ist%22)%0A
+const
olElemen
|
96eb738542b9d3171e05e317c569190044d27679 | Add new Modal storybook doc | packages/storybook/examples/core/Modal/index.js | packages/storybook/examples/core/Modal/index.js | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import Modal, { PureModal } from '@ichef/gypcrete/src/Modal';
import { getAddonOptions } from 'utils/getPropTables';
import ContainsColumnView from '../SplitView/ContainsColumnView';
import Closa... | JavaScript | 0 | @@ -23,104 +23,8 @@
ct';
-%0Aimport %7B storiesOf %7D from '@storybook/react';%0Aimport %7B withInfo %7D from '@storybook/addon-info';
%0A%0Aim
@@ -86,63 +86,8 @@
al';
-%0Aimport %7B getAddonOptions %7D from 'utils/getPropTables';
%0A%0Aim
@@ -248,132 +248,195 @@
';%0A%0A
-storiesOf('@ichef/gypcrete%7CModal', modu... |
0702db8819454033e31af8932cb6ac77689b4a1e | Fix minor typo | packages/truffle/lib/repl.js | packages/truffle/lib/repl.js | var repl = require("repl");
var Command = require("./command");
var provision = require("truffle-provisioner");
var contract = require("truffle-contract");
var Web3 = require("web3");
var vm = require("vm");
var expect = require("truffle-expect");
var _ = require("lodash");
var TruffleError = require("truffle-error");
... | JavaScript | 0.999993 | @@ -748,17 +748,17 @@
er.log(%22
-E
+U
nexpecte
|
6944bc9b643479a837de18e77003ba8152eefe33 | Change File->New to File->New Notebook in Control Panel | core/src/main/web/plugin/menu/controlpanel.js | core/src/main/web/plugin/menu/controlpanel.js | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | JavaScript | 0 | @@ -780,16 +780,25 @@
me: %22New
+ Notebook
%22,%0A
|
fccd5843ae6c041703c6e0bb26193ff78ec2e429 | Update dbservice.js | routes/dbservice.js | routes/dbservice.js |
var mongoose = require('mongoose');
var db;
var cfenv = require('cfenv');
var appenv = cfenv.getAppEnv();
if (process.env.VCAP_SERVICES) {
var mongoDbUrl, mongoDbOptions = {};
var mongoDbCredentials = appEnv.getServiceCreds("compose-for-mongodb").credentials;
var ca = [new Buffer(mongoDbCredentials.ca_cer... | JavaScript | 0.000001 | @@ -210,17 +210,17 @@
ls = app
-E
+e
nv.getSe
|
a2e1f473e93cce6d21aca19163be33da21e4da6b | add TB, TW | src/modules/rotation.js | src/modules/rotation.js | // Note that these functions are only valid for square boards.
const simple = ['AB', 'AW', 'AE', 'B', 'CR', 'DD', 'MA', 'SL', 'SQ', 'TR', 'VW', 'W'];
const pointWithText = ['LB'];
const arrowish = ['AR', 'LN'];
const alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const alphaRev = 'ZYXWVUTSRQPONMLKJIH... | JavaScript | 0.999348 | @@ -128,17 +128,29 @@
'SQ', 'T
-R
+B', 'TR', 'TW
', 'VW',
|
8358f2d2c7bce0336e711b9fe90e8f68dd4eab6c | use history.replaceState instead of redirecting ?p=page requests | cms-less.js | cms-less.js | var CmsLess = ( function($) {
var config = {
contentPath: 'cms-less-content',
destinationSelector: '#cms-less-destination',
anchorDelimiter: '-',
notFoundPageName: '404'
}
function loadContent(pageName) {
beforePageLoad(pageName);
$(config.destinationSelector).load(expandedContentPath(... | JavaScript | 0.000001 | @@ -2039,28 +2039,59 @@
dow.
-location.href = %22/#%22
+history.replaceState(pageName, document.title, '/#'
+ p
@@ -2093,24 +2093,25 @@
' + pageName
+)
;%0A %7D%0A%0A
|
1f05600850ff6093046e946e3d4c7f095532ed16 | Update post-page | public/js/post-list/template.js | public/js/post-list/template.js | (function (window) {
'use strict';
var htmlEscapes = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
'\'': ''',
'`': '`'
};
var escapeHtmlChar = function (chr) {
return htmlEscapes[chr];
};
var reUnescapedHtml = /[&<>"'`]/g;
var reHasUnescapedHtml = new Re... | JavaScript | 0 | @@ -720,24 +720,60 @@
ost-item%22%3E'%0A
+ +%09%09'%3Ca href=%22/post/%7B%7Bid%7D%7D%22%22%3E'%0A
+%09%09'%3Cd
@@ -1396,24 +1396,41 @@
'%3C/div%3E'%0A
+ + '%3C/a%3E'%0A
+%09'%3C/l
@@ -1647,16 +1647,18 @@
ace(
-'
+/
%7B%7Bid%7D%7D
-'
+/gi
, da
|
aecdd9d630aad424d487c91ff90463bd8e026660 | update example to use a module | src/ng/directive/ngInit.js | src/ng/directive/ngInit.js | 'use strict';
/**
* @ngdoc directive
* @name ngInit
* @restrict AC
*
* @description
* The `ngInit` directive allows you to evaluate an expression in the
* current scope.
*
* <div class="alert alert-error">
* The only appropriate use of `ngInit` is for aliasing special properties of
* {@link ng.directive:ngR... | JavaScript | 0 | @@ -932,16 +932,37 @@
%3Cexample
+ module=%22initExample%22
%3E%0A %3C
@@ -1002,24 +1002,109 @@
t%3E%0A
+angular.module('initExample', %5B%5D)%0A .controller('ExampleController', %5B'$scope',
function
Ctrl($s
@@ -1099,13 +1099,8 @@
tion
- Ctrl
($sc
@@ -1102,24 +1102,26 @@
n($scope) %7B%0A
+
... |
6f055ace25d704262e8f4609461eca2fd1701329 | Add tag functionality to ~issue | github.js | github.js | /**
* Module Name: Github
* Description: Retrieves interesting Github information
*/
var request = require('request'),
_ = require('underscore')._,
exec = require('child_process').exec;
var github = function(dbot) {
var commands = {
'~repocount': function(event) {
var reqUrl = "http... | JavaScript | 0.000001 | @@ -5194,40 +5194,118 @@
-//fo
+va
r
-(
label
- in data%5B%22labels%22%5D)%7B
+s = %22%22;%0A for (var i=0; i %3C data%5B%22labels%22%5D.length; i++) %7B // for-in doesn't like me
%0A
@@ -5325,14 +5325,45 @@
-//
+var color = %22%5Cu0003%22 + (parseInt(
data
@@ -5373,40 +5373... |
c673b346e1f5bedb6db602f44375f3996eb77e6c | Remove unused var | europeana.js | europeana.js | /*
Name: europeana.js
Description: Unofficial node.js module for the Europeana API
Author: Franklin van de Meent - https://frankl.in
Source: https://github.com/fvdm/nodejs-europeana
Feedback: https://github.com/fvdm/nodejs-europeana/issues
License: Public Domain / Unlicense (see UNLICENSE ... | JavaScript | 0.000001 | @@ -1738,28 +1738,8 @@
dy;%0A
- var error = null;%0A
va
|
535aa820760222806d5c12a464d828616dd01417 | remove day reference line | app/components/UpcomingReviewsChart/DayTick.js | app/components/UpcomingReviewsChart/DayTick.js | import React from 'react';
import PropTypes from 'prop-types';
import { greyDark, grey } from 'shared/styles/colors';
const DayTick = ({
x, y, width, height, payload: { value },
}) => value ? (
<g>
<text
width={width}
height={height}
x={x}
y={y}
dx={0}
dy={-10}
textAn... | JavaScript | 0 | @@ -78,14 +78,8 @@
Dark
-, grey
%7D f
@@ -106,16 +106,16 @@
olors';%0A
+
%0Aconst D
@@ -174,16 +174,18 @@
%7D,%0A%7D) =%3E
+%0A
value ?
@@ -187,16 +187,18 @@
lue ? (%0A
+
%3Cg%3E%0A
@@ -199,16 +199,18 @@
%3Cg%3E%0A
+
%3Ctext%0A
@@ -213,16 +213,18 @@
t%0A
+
+
width=%7Bw
@@ -229,16 +2... |
417db6bd07e732e36eae3cf00c41443e61f54f03 | Add coin and dice command | commands.js | commands.js |
module.exports = {
'ping': (message) => {
message.reply("pong!");
},
'echo': (message, _, msg) => {
if (msg) {
message.channel.send(msg);
}
},
'prefix': (message, _, __, newPrefix) => {
if (newPrefix) {
config.prefix = newPrefix;
... | JavaScript | 0.000061 | @@ -949,33 +949,32 @@
(Math.random() %3E
-=
0.5)%0A le
@@ -999,17 +999,16 @@
ndom() %3E
-=
0.5)%0A
@@ -1312,15 +1312,14 @@
is
-totally
+always
$%7Bb
@@ -1437,24 +1437,24 @@
%60%0A %7D%0A
-
mess
@@ -1472,19 +1472,252 @@
.send(str);%0A
+ %7D,%0A%0A 'coin': (message) =%3E %7B%0A... |
d073b7b48714043512feee1733b89a4c671dd808 | fix searching for ember-data items | app/components/search-input/dropdown-result.js | app/components/search-input/dropdown-result.js | import { gt } from '@ember/object/computed';
import { computed } from '@ember/object';
import Component from '@ember/component';
export default Component.extend({
// Public API
result: Object.freeze({}),
role: 'option',
groupName: '',
groupPosition: 0, // Index of this result in the grouped results
module... | JavaScript | 0.000001 | @@ -450,30 +450,36 @@
;%0A %7D%0A
-return
+let module =
this.get('r
@@ -496,50 +496,102 @@
le')
- === 'ember-data' ? 'ember-data' :
+;%0A if (module.includes('ember-data')) %7B%0A return 'ember-data';%0A %7D%0A return
'ember'
%0A %7D
@@ -586,16 +586,17 @@
'ember'
+;
%0A %7D),%0A
|
09df9666dec0a6bdc27629eb30afaf64b8da96ad | fix set info method in list view: return when there is a search/filter result in the list | source/view/list/insert.js | source/view/list/insert.js | /**
* Insert List.V2 View Class
* @class View.List.V2.Insert
* @author Bruno Santos, Jerome Vial
*/
define(function(require, exports, module) {
var _log = __debug('view-core-listV2-insert').defineLevel();
var Insert = new Class({
/**
* new info
* @return {void}
*/
new: function(info) {... | JavaScript | 0.000003 | @@ -1564,32 +1564,258 @@
eturn;%0A %7D%0A%0A
+ // return if there is a search or filter result in the list%0A // maybe the list should be updated%0A // if the info is part of the search/filter result%0A if (this._tempCache.length) %7B%0A return;%0A %7D%0A%0A
this.remov
@@ -1... |
4c2c98cbedf25499f2f9266a70c0cfbfce801b49 | Update add-private-person.js | lib/add-private-person.js | lib/add-private-person.js | 'use strict'
function generateMetadataPrivatePerson (options) {
if (!options) {
throw new Error('Missing required input: options')
}
if (!options.firstName) {
throw new Error('Missing required input: options.firstName')
}
if (!options.lastName) {
throw new Error('Missing required input: options.l... | JavaScript | 0.000001 | @@ -1059,17 +1059,17 @@
'First
-n
+N
ame': op
@@ -1100,17 +1100,17 @@
'Middle
-n
+N
ame': op
@@ -1121,24 +1121,33 @@
s.middleName
+ %7C%7C false
,%0A 'L
@@ -1149,17 +1149,17 @@
'Last
-n
+N
ame': op
@@ -1193,16 +1193,22 @@
rsonalId
+Number
': optio
@@ -1527,17 +1527,16 @@
%7D%0A %7D%0A
-%0A
... |
0b7ff1c042d4e4323bf071190501cbff3e8c6704 | replace cloneWithProps with React.cloneElement | src/toaster/Toaster.js | src/toaster/Toaster.js | import React from 'react';
import ReactDOM from 'react-dom';
import cx from 'classnames';
import ReactTransitionGroup from 'react/lib/ReactTransitionGroup';
import cloneWithProps from 'react/lib/cloneWithProps';
import { props, t } from '../utils';
import { warn } from '../utils/log';
import TransitionWrapper from '../... | JavaScript | 0.000002 | @@ -154,63 +154,8 @@
p';%0A
-import cloneWithProps from 'react/lib/cloneWithProps';%0A
impo
@@ -2709,22 +2709,26 @@
%7B
-cloneWithProps
+React.cloneElement
(el,
|
efc47c1256267445478dca68d46bde8cc042d223 | add osm rubbish tag | mapper/node/osm_rubbish.js | mapper/node/osm_rubbish.js |
module.exports = function( node, record ){
if( node.tags ){
// remove rubbish tags
delete node.tags['created_by'];
delete node.tags['FIXME'];
// remove dates
for( var tag in node.tags ){
if( tag.match('date') ){
delete node.tags[tag];
}
}
}
}; | JavaScript | 0.000002 | @@ -151,16 +151,47 @@
FIXME'%5D;
+%0A delete node.tags%5B'fixme'%5D;
%0A%0A //
|
c36e471564a600d93b44b4fc5ed03d436f2d45c4 | Fix chat filter from detecting when people use http, https or www before server | chat-plugins/chatfilter.js | chat-plugins/chatfilter.js | 'use strict';
const fs = require('fs');
let adWhitelist = (Config.adWhitelist ? Config.adWhitelist : []);
let bannedMessages = (Config.bannedMessages ? Config.bannedMessages : []);
let adRegex = new RegExp("\\b(?!(" + adWhitelist.join('|') + ").*)(\\w+(?:-\\w+)*)(?=.*psim.*us)", "g");
let adRegex2 = new RegExp("(pla... | JavaScript | 0 | @@ -1476,16 +1476,167 @@
%09%09%7D%0A%09%7D%0A%0A
+%09let advMessage = message.replace(/%5Ehttp:%5C/%5C//i, '');%0A%09advMessage = message.replace(/%5Ehttps:%5C/%5C//i, '');%0A%09advMessage = message.replace(/%5Ewww./i, '');%0A%0A
%09if (!us
@@ -1658,17 +1658,20 @@
h') && (
-m
+advM
essage.r
@@ -1709,17 +1709,20 @@... |
355ca67b86bf93b4d0561f2c7c47772abe8307cb | Add ol.events.condition.click | src/ol/events/condition.js | src/ol/events/condition.js | goog.provide('ol.events.ConditionType');
goog.provide('ol.events.condition');
goog.require('goog.asserts');
goog.require('goog.dom.TagName');
goog.require('goog.functions');
goog.require('ol.MapBrowserEvent.EventType');
goog.require('ol.MapBrowserPointerEvent');
/**
* A function that takes an {@link ol.MapBrowserEv... | JavaScript | 0.000001 | @@ -1444,24 +1444,304 @@
ons.TRUE;%0A%0A%0A
+/**%0A * @param %7Bol.MapBrowserEvent%7D mapBrowserEvent Map browser event.%0A * @return %7Bboolean%7D True if the event is a map %60click%60 event.%0A * @todo api%0A */%0Aol.events.condition.click = function(mapBrowserEvent) %7B%0A return mapBrowserEvent.type == ol.MapBro... |
66ad8364e05bb7f4ae0d5f8caf8dad5ab9a12c8e | Remove goog.isDef from imagelayer | src/ol/layer/imagelayer.js | src/ol/layer/imagelayer.js | goog.provide('ol.layer.Image');
goog.require('ol.layer.Layer');
/**
* @classdesc
* Server-rendered images that are available for arbitrary extents and
* resolutions.
* Note that any property set in the options is set as a {@link ol.Object}
* property on the layer object; for example, setting `title: 'My Title'... | JavaScript | 0.000001 | @@ -611,19 +611,8 @@
s =
-goog.isDef(
opt_
@@ -618,17 +618,16 @@
_options
-)
? opt_o
|
33516dba17efb271818625c69a370ca7a4d8074c | remove trailing space. | src/app/templates/treefrog.js | src/app/templates/treefrog.js | /**
* Treefrog Configuration
* REPL: `app.config.treefrog`
*
* Configured by `$ yo treefrog`
* This file dictates how your files are generated.
*/
module.exports = {
taskmanager: '<%= answers.taskmanager %>',
javascript: '<%= answers.javascript || "es6" %>',
frontend: '<%= answers.frontend %>',
style: '... | JavaScript | 0.000007 | @@ -89,17 +89,16 @@
reefrog%60
-
%0A * This
|
468f8c3daedde03c296ecbeb474d9bec4351aee4 | Update superranks.js | chat-plugins/superranks.js | chat-plugins/superranks.js | const ranksDataFile = DATA_DIR + 'superranks.json';
var fs = require('fs');
global.SuperRanks = {
ranks: {},
isHoster: function (userid) {
if (userid === 'presidenta') return true;
if (this.ranks[userid] && this.ranks[userid] === "h") return true;
return false;
},
isOwner: function (userid) {
if (this.ran... | JavaScript | 0 | @@ -158,17 +158,13 @@
== '
-president
+yomik
a')
|
33b8ee3d9287e097475704e32cb6e24c23d873f6 | make the default max line length shorter | compiler.js | compiler.js | var fs = require('fs'),
path = require('path'),
util = require('./lib/util')
module.exports = {
compile: compileFile,
compileHTML: compileHTMLFile,
compileCode: compileCode,
dontAddClosureForModule: dontAddClosureForModule,
dontIncludeModule: dontIncludeModule,
addPath: addPath,
addFile: addFile,
addReplacem... | JavaScript | 0.025574 | @@ -2072,9 +2072,9 @@
h =
-2
+1
00%0A%09
|
9e6a8b4a49b492df235815d487aa0bcd1c51568f | Revert "[T] hide navbar props" | src/navigation/index.js | src/navigation/index.js | /* eslint-disable react/prefer-stateless-function */
import React from 'react';
import { Actions, Scene } from 'react-native-router-flux';
import Home from '../containers/home/Home';
import AppConfig from '../constants/config';
import AppSizes from '../theme/sizes';
import AppStyles from '../theme/styles';
import Commu... | JavaScript | 0 | @@ -4229,32 +4229,59 @@
e%3E%0A%0A%0A %3CScene%0A
+ %7B...navbarPropsTabs%7D%0A
key=%7B'user
@@ -4350,32 +4350,59 @@
/%3E%0A%0A %3CScene%0A
+ %7B...navbarPropsTabs%7D%0A
key=%7B'skil
|
36c6304df3a760e23eda1e038aaa0f294789f7e8 | add more buffer to virtual list | src/pages/ChallengeFeed.js | src/pages/ChallengeFeed.js | /** @jsx element */
import VirtualList from '../components/VirtualList'
import LinkModal from '../components/LinkModal'
import SortHeader from '../components/SortHeader'
import ChallengeLoader from './ChallengeLoader'
import createAction from '@f/create-action'
import handleActions from '@f/handle-actions'
import {Blo... | JavaScript | 0 | @@ -2944,17 +2944,17 @@
uffer: 2
-0
+5
, contai
|
19bc44ba0bf40d58b135e771a4ad537b8a76530b | Remove extra 'event.source.nodeScope.$$apply = false;' | app/scripts/controllers/angularUiTreeConfig.js | app/scripts/controllers/angularUiTreeConfig.js | 'use strict';
angular.module('confRegistrationWebApp')
.controller('AngularUiTreeConfig', function ($scope, modalMessage) {
$scope.toolbarTreeConfig = {
accept: function(sourceNodeScope, destNodesScope) {
return sourceNodeScope.$treeScope === destNodesScope.$treeScope;
},
beforeDrop: fu... | JavaScript | 0.995439 | @@ -2490,60 +2490,8 @@
');%0A
- event.source.nodeScope.$$apply = false;%0A
|
dc2d22ec59efdd69fe77eb187c046b742d55f43a | Allow multiple `%f` instances in override format | extension.js | extension.js | const Main = imports.ui.main;
const GLib = imports.gi.GLib;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
var settings;
function init() {
settings = Convenience.getSettings();
}
var fromCodePoint = function() {
... | JavaScript | 0 | @@ -2585,20 +2585,21 @@
replace(
-%22%25f%22
+/%25f/g
, repl);
|
588bb1ba8d5b9f84a300cc56ad413ea162ea56eb | fix the calculation of the whitespace | src/assets/js/grid-gallery.js | src/assets/js/grid-gallery.js | /*
* GridGallery is a plugin that will generate a grid depending on
* the elements width and height. it is not required to have the same height
* also you can enable/disable show lightbox effect to load content
*
* license: under MIT
* https://github.com/pencilpix/grid-gallery/blob/master/LICENSE
* Auth... | JavaScript | 1 | @@ -2083,9 +2083,60 @@
h *
-4
+(Math.floor(parentPos.width / items%5B0%5D.offsetWidth))
;%0A%0A
|
b6c7edaf7bad84b57207f799591084961aa15da0 | load the tests as well | src/neo/models/Suite.js | src/neo/models/Suite.js | import { action, observable, computed } from "mobx";
import uuidv4 from "uuid/v4";
import SortBy from "sort-array";
export default class Suite {
id = null;
@observable name = null;
@observable _tests = [];
constructor(id = uuidv4(), name = "Untitled Suite") {
this.id = id;
this.name = name;
this.e... | JavaScript | 0 | @@ -108,16 +108,51 @@
-array%22;
+%0Aimport TestCase from %22./TestCase%22;
%0A%0Aexport
@@ -1421,16 +1421,26 @@
%7D;%0A %7D%0A%0A
+ @action%0A
static
@@ -1463,16 +1463,30 @@
on(jsRep
+, projectTests
) %7B%0A
@@ -1550,16 +1550,146 @@
p.name);
+%0A suite._tests.replace(jsRep.tests.map((testId) =%3E (Te... |
e228bb578d7c972bfec2ed916d11ab0649ebafcf | Test commit | commands.js | commands.js | var forever = require('forever');
var core = {};
var botCore = {};
var setCore = function(coreToSet){
core = coreToSet;
};
var setBotCore = function(value){
botCore = value;
};
var sarcasmFactor = 1;
var commands = {
alive: alive,
stop: stop,
restart: restart,
blacklist: blacklist,
removeBl... | JavaScript | 0 | @@ -1531,16 +1531,17 @@
klisted
+%5B
user wit
@@ -1557,16 +1557,75 @@
user_id
+ + %22%5D(http://chat.stackexchange.com/users/%22 + user_id + %22)%22
;%0A%7D%0Afunc
@@ -1675,16 +1675,17 @@
Removed
+%5B
user wit
@@ -1705,16 +1705,70 @@
r_id + %22
+%5D(http://chat.stackexchange.com/users/%22 + user_id + %22)
f... |
b1b0d63a5b6de229369db199fa9f34ed6a19e674 | Change job history chars to auto minium with linear interpolation | frontend/src/app/projects/projects.js | frontend/src/app/projects/projects.js | angular.module('ngBoilerplate.projects', [
'ui.router',
'restangular',
'oitozero.ngSweetAlert',
'datatables',
'angularMoment',
'pusher-angular',
'luegg.directives',
'angular-rickshaw'
]).config(function config($stateProvider) {
$stateProvider.state('home.projects', {
url: '/projects/:id',
cont... | JavaScript | 0 | @@ -3860,16 +3860,74 @@
: 'line'
+,%0A interpolation: 'linear',%0A min: 'auto'
%0A
|
77ac8e14a618a5668ac12e859e382a8a4ac4c021 | Fix indentation | src/FlatButton/FlatButton.js | src/FlatButton/FlatButton.js | import React, {Component, PropTypes} from 'react';
import transitions from '../styles/transitions';
import {createChildFragment} from '../utils/childUtils';
import {fade} from '../utils/colorManipulator';
import EnhancedButton from '../internal/EnhancedButton';
import FlatButtonLabel from './FlatButtonLabel';
function... | JavaScript | 0.017244 | @@ -2588,24 +2588,25 @@
button.%0A
+
*/%0A onTou
@@ -2715,24 +2715,25 @@
the Theme.%0A
+
*/%0A p
|
e1551139259c11a48fa43a95e0c9a7442b016380 | fix xs sm lg device detection | frontend-modules/angular/factories/page.factory.js | frontend-modules/angular/factories/page.factory.js | app.factory('Page', function($window) {
var prefix = 'CourseMapper';
var title = 'CourseMapper';
return {
title: function() {
return title;
},
setTitle: function(newTitle) {
title = newTitle;
$window.document.title = title;
},
set... | JavaScript | 0 | @@ -638,16 +638,21 @@
width %3E
+this.
xs && wi
@@ -727,16 +727,21 @@
width %3E
+this.
sm && wi
|
f2e77d58486658789b557c413c582746cd4b709c | add unfortunate notes regarding the current instability of collection binding with the DashboardView | test/apps/models/binding_dashboard/controllers/index.js | test/apps/models/binding_dashboard/controllers/index.js | var icons = Alloy.Collections.icons;
var isEditable = false;
function resetBadge(e) {
e.item.badge = 0;
}
function toggleEditMode(e) {
isEditable ? $.dash.stopEditing() : $.dash.startEditing();
}
function handleEdit(e) {
$.editButton.title = 'Done';
$.editButton.style = Ti.UI.iPhone.SystemButtonStyle.DONE;
... | JavaScript | 0 | @@ -80,16 +80,1020 @@
ge(e) %7B%0A
+%09// TODO: https://jira.appcelerator.org/browse/ALOY-500%0A%09//%0A%09// NOTE: Ti.UI.DashboardView collection binding should be %0A%09// considered unstable until the above ticket and its TIMOB%0A%09// dependecies are resolved.%0A%09// %0A%09// Can't use collection binding effectiv... |
0a2cd13ce6e33caceb0a03f0d30a4e30e3ab6deb | add test for overriding process function when adding node | spec/building/node.spec.js | spec/building/node.spec.js | describe('building: node', function() {
it('should be created with a registered type', function() {
var renderer = Rpd.renderer('foo', function() {});
var patch = Rpd.addPatch();
expect(function() {
patch.addNode('foo/bar');
}).toReportError('node/error');
});
... | JavaScript | 0.000001 | @@ -3509,24 +3509,733 @@
);%0A %7D);%0A%0A
+ it('allows to override processing function', function() %7B%0A withNewPatch(function(patch, updateSpy) %7B%0A var node = patch.addNode('spec/empty', %7B%0A process: function(inlets) %7B%0A return %7B%0A ... |
18a263188753a13704a590c3b54dc7bc86f72360 | Fix wrong property names in ib.js | share/qbs/modules/ib/ib.js | share/qbs/modules/ib/ib.js | var DarwinTools = loadExtension("qbs.DarwinTools");
var ModUtils = loadExtension("qbs.ModUtils");
var Process = loadExtension("qbs.Process");
var PropertyList = loadExtension("qbs.PropertyList");
function prepareIbtoold(product, input, outputs) {
var args = [];
var outputFormat = ModUtils.moduleProperty(input... | JavaScript | 0.00663 | @@ -1073,16 +1073,20 @@
%22appIcon
+Name
%22);%0A
@@ -1230,16 +1230,20 @@
nchImage
+Name
%22);%0A
|
a7f3aa5362bd0300aff871859b70f328a0de32d2 | refactor alert generation so it can be used for info alerts too | meinberlin/static/embed.js | meinberlin/static/embed.js | /* global $ location django */
$(document).ready(function () {
var $main = $('main')
var currentPath
var popup
var patternsForPopup = /\/accounts\b/
var headers = {
'X-Embed': ''
}
testCanSetCookie()
var loadHtml = function (html, textStatus, xhr) {
var $root = $(html).filter('main')
var ... | JavaScript | 0 | @@ -2862,260 +2862,8 @@
ext%0A
- var $error = $('%3Cp class=%22alert danger alert--small%22 role=%22alert%22%3E%3C/p%3E')%0A var $close = $('%3Cbutton class=%22alert__close%22%3E%3Ci class=%22fa fa-times%22 aria-hidden=%22true%22%3E%3C/i%3E%3C/button%3E')%0A%0A var removeMessage = function () %7B%0A $err... |
f7778dc95b9874d008d3d9464e20acf84b3ed2dd | Remove Sentry logging of all error-level console logs | packages/lesswrong/client/logging.js | packages/lesswrong/client/logging.js | import * as Sentry from '@sentry/browser';
import { getSetting, addCallback } from 'meteor/vulcan:core'
const sentryUrl = getSetting('sentry.url');
const sentryEnvironment = getSetting('sentry.environment');
Sentry.init({
dsn: sentryUrl,
beforeBreadcrumb(breadcrumb, hint) {
if (breadcrumb.level === "error" &&... | JavaScript | 0 | @@ -239,192 +239,8 @@
rl,%0A
- beforeBreadcrumb(breadcrumb, hint) %7B%0A if (breadcrumb.level === %22error%22 && breadcrumb.message) %7B%0A Sentry.captureException(breadcrumb.message)%0A %7D%0A return breadcrumb%0A %7D,%0A
en
|
59d911b058084fa579c908691d699bbcc20d6890 | use strict for Maven Spice. | share/spice/maven/maven.js | share/spice/maven/maven.js | function ddg_spice_maven(api_result) {
if (api_result.responseHeader.status
|| api_result.response.numFound == 0) return
Spice.render({
data : api_result,
header1 : api_result.responseHeader.params.q
+ " (Maven Central Repository)",
... | JavaScript | 0 | @@ -32,16 +32,35 @@
sult) %7B%0A
+ %22use strict%22;%0A%0A
if (
@@ -142,14 +142,31 @@
0)
-return
+%7B%0A return;%0A %7D
%0A
|
6f08d9fbe3f0f2233c4849f2819ca383d18a0821 | Add error detail to diagnostic messages when available. | extension.js | extension.js | "use strict";
// Requires
var vscode = require("vscode");
var markdownlint = require("markdownlint");
var fs = require("fs");
var path = require("path");
var packageJson = require("./package.json");
var defaultConfig = require("./default-config.json");
// Constants
var extensionName = packageJson.name;
var markdownli... | JavaScript | 0 | @@ -1474,24 +1474,106 @@
escription;%0A
+%09%09%09if (result.errorDetail) %7B%0A%09%09%09%09message += %22 %5B%22 + result.errorDetail + %22%5D%22;%0A%09%09%09%7D%0A
%09%09%09var range
|
fb7b533da70b7d5deef59c79e60cc87167989c72 | Fix for #8 | extension.js | extension.js | 'use strict';
const vscode = require('vscode');
const postcss = require('postcss');
const postcssSafeParser = require('postcss-safe-parser');
const resolve = require('npm-module-path');
let autoprefixer = null;
function getSyntax(language) {
switch (language) {
case 'less': {
return require('postcss-les... | JavaScript | 0 | @@ -84,27 +84,71 @@
;%0Aconst
+safeParser = require('
postcss
-S
+-s
afe
+-parser');%0Aconst less
Parser =
@@ -161,35 +161,141 @@
re('postcss-
-safe-parser
+less');%0Aconst lessStringifier = require('postcss-less/dist/less-stringify');%0Aconst scssParser = require('postcss-scss
');%0A%0Aconst r
@@ -366,30 +366,3... |
b5477c0416e1e7b00da18fcd6fb31c825d6c30be | Fix return values of `automations.*` | lib/client/automations.js | lib/client/automations.js | //automations.js: Client for the zendesk API.
var util = require('util'),
Client = require('./client').Client,
defaultUser = require('./helpers').defaultUser;
var Automations = exports.Automations = function (options) {
this.jsonAPINames = [ 'automations', 'automation' ];
Client.call(this, o... | JavaScript | 0 | @@ -571,32 +571,39 @@
nction (cb) %7B%0A
+return
this.requestAll(
@@ -636,16 +636,16 @@
);//all%0A
-
%7D;%0A%0AAuto
@@ -699,32 +699,39 @@
tionID, cb) %7B%0A
+return
this.requestAll(
@@ -895,32 +895,39 @@
tionID, cb) %7B%0A
+return
this.request('GE
@@ -1086,32 +1086,39 @@
mation, cb) %7B%0A
+return
... |
6330f0eaa9a0747236d3926d2ff0926d97f81464 | remove validation against ActivityPub Schema, add more detail to error message | lib/collections/actors.js | lib/collections/actors.js | /*
Agora Forum Software
Copyright (C) 2018 Gregory Sartucci
License: AGPL-3.0, Check file LICENSE
*/
this.Actors = new Mongo.Collection('actors');
this.Actors.before.insert(function(userId, actor) {
if (!activityPubActorTypes.includes(actor.type))
throw new Meteor.Error('Not an Actor', 'Cannot... | JavaScript | 0 | @@ -371,24 +371,26 @@
or.');%0A%0A
+//
if (!activit
@@ -432,24 +432,26 @@
actor))%0A
+//
throw ne
@@ -706,18 +706,30 @@
present
-.'
+: ' + actor.id
);%0A%7D);%0A%0A
|
9b769b4c25f412504cc63fadee3b9b04f0e39d83 | update user-planner logging to differentiate suggestions and visible suggestions (#2441) | shells/lib/user-planner.js | shells/lib/user-planner.js | /*
@license
Copyright (c) 2018 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://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://p... | JavaScript | 0 | @@ -2164,18 +2164,16 @@
');%0A
-//
planific
@@ -2216,82 +2216,63 @@
ack(
-current =%3E this._plansChanged(current, planificator.getLastActivatedPlan()
+suggestions =%3E this.suggestionsChanged(key, suggestions
));%0A
@@ -2342,33 +2342,40 @@
estions =%3E this.
-s
+visibleS
uggestionsChange
@@ -2443,32 +2443,33... |
6c4dfa0d196ebaea0a07de336e9d1526e39acbe7 | Add tests for the filter function | test/bootstrap.test.js | test/bootstrap.test.js | /**
* Copyright 2016 Daniel Koch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | JavaScript | 0.000001 | @@ -1513,32 +1513,904 @@
eardown();%0A%7D);%0A%0A
+test('bootstrap; invokes the copy function with a config object', t =%3E %7B%0A t.plan(2);%0A%0A const mock = (from, to, obj) =%3E %7B%0A t.equals(typeof obj, 'object');%0A t.equals(typeof obj.filter, 'function');%0A return Promise.resolve()... |
db5daff01eb54f98d079a06c307cb958fa074f4e | Remove hidden files from debug fixtures targets. (#287) | test/debug-fixtures.js | test/debug-fixtures.js | const chai = require("chai");
const child = require("child_process");
const fs = require("fs-extra");
const helper = require("babel-helper-fixtures");
const path = require("path");
const fixtureLoc = path.join(__dirname, "debug-fixtures");
const tmpLoc = path.join(__dirname, "tmp");
const clear = () => {
process.ch... | JavaScript | 0 | @@ -1813,32 +1813,78 @@
(testName) =%3E %7B%0A
+ if (testName.slice(0, 1) === %22.%22) return;%0A
const testLo
|
01a1d030f3fbd61b113df3c0c971d77bb09fc023 | allow HTML in the title | fancy-tab.js | fancy-tab.js | (function (angular) {
'use strict';
// Mix in to our module
var module;
try {
module = angular.module('coUtils');
} catch (e) {
module = angular.module('coUtils', []);
}
module
.directive('tabs', function() {
return {
restrict: 'E',
... | JavaScript | 0.000216 | @@ -3540,11 +3540,23 @@
span
-%3E%7B%7B
+ ng-bind-html=%22
pane
@@ -3561,18 +3561,18 @@
ne.title
-%7D%7D
+%22%3E
%3C/span%3E'
|
5aa3e9c5c57bd32b9416784c50b259cefd1f795b | Fix wrong XP gain | src/reducers/calculator.js | src/reducers/calculator.js | import { Map } from 'immutable';
import { CALCULATE } from '../constants/calculator';
import { CHANGE_INITIAL_VALUE } from '../constants/character';
import { ADD_CARD, REMOVE_CARD } from '../constants/cards';
import baseXpData from '../data/base-xp.json';
import classXpData from '../data/class-xp.json';
import cardsXp... | JavaScript | 0.000003 | @@ -1034,34 +1034,32 @@
%3E %7B%0A
-accumulate
+const ad
dBaseXp
+= cards
@@ -1050,17 +1050,16 @@
dBaseXp
-+
= cardsX
@@ -1092,18 +1092,8 @@
-baseXp +=
accu
@@ -1094,24 +1094,62 @@
accumulate
+dBaseXp += addBaseXp;%0A baseXp += ad
dBaseXp;%0A%0A
@@ -1146,34 +1146,32 @@
aseXp;%0A%0A
-acc... |
947f64e32dee056c94fe9a758d722089417a2b08 | fix error normalization. | src/remote-handlers/smb.js | src/remote-handlers/smb.js | import Smb2 from '@marsaud/smb2-promise'
import RemoteHandlerAbstract from './abstract'
import {
noop,
pFinally
} from '../utils'
const enoentFilter = error => {
const { code } = error
if (code === 'STATUS_OBJECT_NAME_NOT_FOUND' || code === 'STATUS_OBJECT_PATH_NOT_FOUND') {
error = {
...error,
... | JavaScript | 0 | @@ -133,25 +133,75 @@
s'%0A%0A
-const enoentFilte
+// Normalize the error code for file not found.%0Aconst normalizeErro
r =
@@ -239,20 +239,29 @@
rror%0A%0A
-if (
+return (%0A
code ===
@@ -294,16 +294,20 @@
OUND' %7C%7C
+%0A
code ==
@@ -342,48 +342,114 @@
UND'
-) %7B
+%0A )
%0A
-error = %7B%0A ... |
a0f6a6393996ed9220d6df2c350e068adcfea5e5 | Fix height issues by applying copying textarea outerHeight onto clone before, expanding styles added. Use border-box and width 100% to complete fix | expanding.js | expanding.js | // Expanding Textareas
// https://github.com/bgrins/ExpandingTextareas
(function(factory) {
// Add jQuery via AMD registration or browser globals
if (typeof define === 'function' && define.amd) {
define([ 'jquery' ], factory);
}
else {
factory(jQuery);
}
}(function ($) {
$.expan... | JavaScript | 0 | @@ -1163,16 +1163,147 @@
olute%22,%0A
+ webkitBoxSizing: %22border-box%22,%0A mozBoxSizing: %22border-box%22,%0A boxSizing: %22border-box%22,%0A width: '100%25',%0A
@@ -2754,22 +2754,72 @@
e%22).css(
-preCSS
+$.extend(preCSS, %7B%22min-height%22: textarea.outerHeight()%7D)
);%0A... |
01b8464fdd9a81a1c76d4134969da340d15532ae | add test for home and detailed page | e2e-tests/scenarios.js | e2e-tests/scenarios.js | 'use strict';
describe('Onix Bots Application', function() {
describe('botList', function() {
beforeEach(function() {
browser.get('index.php');
});
it('should filter the bot list as a user types into the search box', function() {
var botList = element.all(by.repeater('bot in $ctrl.bots'));... | JavaScript | 0 | @@ -153,32 +153,48 @@
php');%0A %7D);%0A%0A
+%0A // Test #1%0A
it('should f
@@ -595,24 +595,39 @@
);%0A %7D);%0A%0A
+ // Test #2%0A
it('shou
@@ -1346,17 +1346,627 @@
%5D);%0A
-%0A
+ %7D);%0A%0A // Test #3%0A it('should redirect index.php to index.php#!/bots', function()%7B%0A ... |
5f510249629a8323d051e0935bd72b8f9c720f1d | update tab-header spec file | src/components/tabs/tab-header/tab-header.spec.js | src/components/tabs/tab-header/tab-header.spec.js | import React from 'react';
import TestRenderer from 'react-test-renderer';
import 'jest-styled-components';
import { shallow } from 'enzyme';
import TabHeader from './tab-header.component';
import StyledTabHeader from './tab-header.style';
import classicTheme from '../../../style/themes/classic';
import { assertStyleMa... | JavaScript | 0 | @@ -1065,32 +1065,588 @@
tle 1');%0A %7D);%0A%0A
+ describe('when clicked', () =%3E %7B%0A it('triggers onClick function', () =%3E %7B%0A const onClickFunction = jest.fn();%0A wrapper = render(%7B onClick: onClickFunction %7D);%0A wrapper.simulate('click');%0A expect(onClickFunction).toHaveBee... |
b30176097696a0612d40b2d98f734229ab18d502 | Update composeFrame test with should/shouldn't clip cases | test/spec/ol/renderer/canvas/intermediatecanvas.test.js | test/spec/ol/renderer/canvas/intermediatecanvas.test.js | goog.provide('ol.test.renderer.canvas.Layer');
goog.require('ol.transform');
goog.require('ol.layer.Image');
goog.require('ol.renderer.Map');
goog.require('ol.renderer.canvas.IntermediateCanvas');
describe('ol.renderer.canvas.IntermediateCanvas', function() {
describe('#composeFrame()', function() {
it('clips... | JavaScript | 0.000001 | @@ -308,52 +308,70 @@
-it('clips to layer extent and draws image',
+var renderer, frameState, layerState, context;%0A beforeEach(
func
@@ -459,28 +459,24 @@
%7D);%0A
-var
renderer = n
@@ -678,20 +678,16 @@
;%0A
-var
frameSta
@@ -1133,28 +1133,24 @@
ate);%0A
-var
layerState =
@@ -... |
da18612c116039ff923ae82e84c5e6bffe48e52c | Change Tag Page Header layout | src/pages/tags/index.js | src/pages/tags/index.js | import React, { Component } from 'react';
import Link from 'gatsby-link';
import moment from 'moment';
import Tag from '../../components/Tag';
const splitTag = (raw = '') => raw.split(', ');
const parseDate = date => moment(date).locale('zh-hk').format('YYYY/MM/DD');
const getTag = (item) => {
const { tags, url,... | JavaScript | 0 | @@ -137,16 +137,62 @@
ts/Tag';
+%0Aimport Header from '../../components/Header';
%0A%0Aconst
@@ -2058,16 +2058,56 @@
.sort();
+%0A const %7B header %7D = this.props.data;
%0A%0A re
@@ -2139,17 +2139,11 @@
me=%22
-container
+row
%22%3E%0A
@@ -2154,103 +2154,213 @@
%3C
-div className=%22row%22%3E%0A ... |
8d192d6ec5e5516074b6f4b854f990e55c1dcdfb | add delete test | specs/observe-misc.spec.js | specs/observe-misc.spec.js | /*global describe, it, beforeEach */
/**
* observe-plus.js - https://github.com/podefr/observe-plus
* Copyright(c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
* MIT Licensed
*/
"use strict";
var chai = require("chai");
var expect = chai.expect;
var asap = require("asap");
var sinon = require("sinon");
var obse... | JavaScript | 0.000001 | @@ -4632,32 +4632,956 @@
%7D);
+%0A%0A describe(%22WHEN deleting an item%22, function () %7B%0A var deleteSpy;%0A%0A beforeEach(function () %7B%0A deleteSpy = sinon.spy();%0A observer.observe(%22delete%22, d... |
260320861f6fd750d0001e402078fdf66eebbabf | Fix issue 443 plugin proxy_cache got "expected an integer" | assets/js/app/plugins/plugin-helper-service.js | assets/js/app/plugins/plugin-helper-service.js | /**
* This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module.
*
* Note that this file should only contain controllers and nothing else.
*/
(function() {
'use strict';
angular.module('frontend.plugins')
.service('PluginHelperService', [
... | JavaScript | 0.000001 | @@ -2806,24 +2806,387 @@
// %7D%0A%0A
+ if (fields%5Bkey%5D.value instanceof Array%0A && fields%5Bkey%5D.elements.type === %22integer%22) %7B%0A fields%5Bkey%5D.value = fields%5Bkey%5D.value.map(function(value) %7B%0A ... |
f595cd344213dada6fa57dfa4961142e79d269c5 | Add Array.prototype.find | pkg/lib/polyfills.js | pkg/lib/polyfills.js | /*jshint esversion: 6 */
/*
* This file is part of Cockpit.
*
* Copyright (C) 2016 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
... | JavaScript | 0 | @@ -2872,12 +2872,1535 @@
e%0A %7D);%0A%7D%0A
+%0A// for IE 11%0A// https://tc39.github.io/ecma262/#sec-array.prototype.find%0Aif (!Array.prototype.find) %7B%0A Object.defineProperty(Array.prototype, 'find', %7B%0A value: function(predicate) %7B%0A // 1. Let O be ? ToObject(this value).%0A ... |
7aaab79a044aef5d25e7617018c6fe259b6818d7 | fix about open about only if found marked function -- issue TS287 | extension.js | extension.js | /* Copyright (c) 2013-2016 The TagSpaces Authors.
* Use of this source code is governed by the MIT license which can be found in the LICENSE.txt file. */
/* global define, Handlebars, isCordova */
define(function(require, exports, module) {
"use strict";
var extensionTitle = "Grid"; // should be equal to the na... | JavaScript | 0 | @@ -1730,37 +1730,14 @@
if (
-typeof(marked) != 'undefined'
+marked
) %7B%0A
@@ -1838,17 +1838,16 @@
%7D else %7B
-%0A
@@ -1858,63 +1858,8 @@
-$(%22#aboutExtensionModalGrid .modal-body%22).html(mdData);
%0A
|
4457936b892dc622030f22d70935a69456aa3eb6 | Fix typo in tests | tests/mammoth.tests.js | tests/mammoth.tests.js | var assert = require("assert");
var path = require("path");
var mammoth = require("../");
var testing = require("./testing");
var test = testing.test;
var testData = testing.testData;
var createFakeDocxFile = testing.createFakeDocxFile;
describe('mammoth', function() {
test('should convert docx containing one p... | JavaScript | 0.000452 | @@ -6311,35 +6311,33 @@
.g. %22p%5Bstyle-nam
-ing
+e
=%5C'Title%5C'%5D =%3E h
@@ -6383,19 +6383,17 @@
tyle-nam
-ing
+e
=%5C'Title
|
9ddb1560effe97da78bfaffe77a0d7a6534a86fc | Fix typo. | grunt/bs-glyphicons-data-generator.js | grunt/bs-glyphicons-data-generator.js | /*!
* Bootstrap Grunt task for Glyphicons data generation
* http://getbootstrap.com
* Copyright 2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'use strict';
var fs = require('fs');
module.exports = function generateGlyphiconsData() {
// Pass encoding, utf8, so... | JavaScript | 0.001604 | @@ -455,18 +455,18 @@
var gl
-p
y
+p
hiconsLi
@@ -829,26 +829,26 @@
0, len = gl
-p
y
+p
hiconsLines.
@@ -889,18 +889,18 @@
tch = gl
-p
y
+p
hiconsLi
|
47389f615f343a4afc8cb820d745cf07bf913502 | fix lint | renderer/containers/Settings.js | renderer/containers/Settings.js | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { remote } from 'electron'
import { copyFileSync, removeSync, existsSync } from 'fs-plus'
import path from 'path'
import { updateSettings, loadTodos } from '../actions'
import Header from '../components/Header'
const dialog = remote.... | JavaScript | 0.000048 | @@ -132,20 +132,8 @@
ync,
- removeSync,
exi
|
3267a23dc74bd3d6d72aa3d5de5f2365965d890c | Configure leaflet as a path, not a package, since it's a module-is-a-package kind of package. | sagan-js/dev/run.js | sagan-js/dev/run.js | var Munchkin, baseUrl; // pre-existing globals
(function () {
var cjsConfig = {
loader: 'curl/loader/cjsm11'
};
curl.config({
baseUrl: baseUrl,
packages: {
app: { location: 'app', config: cjsConfig, main: 'main' },
feature: { location: 'feature', config: cjs... | JavaScript | 0 | @@ -165,16 +165,22 @@
baseUrl
+ %7C%7C ''
,%0A
@@ -696,17 +696,44 @@
/poly' %7D
-,
+%0A %7D,%0A paths: %7B
%0A
@@ -770,26 +770,17 @@
/leaflet
-', main: '
+/
dist/lea
@@ -813,36 +813,9 @@
ig %7D
-%0A %7D,%0A paths: %7B
+,
%0A
|
6a4236bc5f465a12bd7dd5ea3104988e381583cd | Update BoundsArraySet.js | CNN/Conv/BoundsArraySet.js | CNN/Conv/BoundsArraySet.js | export { InputsOutputs } from "./BoundsArraySet/BoundsArraySet_InputsOutputs.js";
export { ConvBiasActivation } from "./BoundsArraySet/BoundsArraySet_ConvBiasActivation.js";
export { Pointwise } from "./BoundsArraySet/BoundsArraySet_Pointwise.js";
export { Depthwise } from "./BoundsArraySet/BoundsArraySet_Depthwise.js"... | JavaScript | 0 | @@ -71,24 +71,110 @@
utputs.js%22;%0A
+export %7B InputsOutputsPool %7D from %22./BoundsArraySet/BoundsArraySet_InputsOutputs.js%22;%0A
export %7B Con
@@ -266,91 +266,343 @@
t %7B
-Pointwise %7D from %22./BoundsArraySet/BoundsArraySet_Pointwise.js%22;%0Aexport %7B Depthwise
+ConvBiasActivationPool %7D from %22./Bou... |
79132b44497e4d31f097c32ffb27efa97875beb0 | Remove console.log on report again | packages/test-in-phantom/reporter.js | packages/test-in-phantom/reporter.js | Meteor.methods({
report: function (url, reports) {
console.log("reporting to ", url);
Meteor.http.post(url, {
data: reports
});
return null;
}
});
| JavaScript | 0 | @@ -50,47 +50,8 @@
) %7B%0A
- console.log(%22reporting to %22, url);%0A
|
baf5018439a0773b15bff5c8f9a2b792a0915dd1 | Fix the multi-generation issue. | src-script/zap-generate.js | src-script/zap-generate.js | #!/usr/bin/env node
/**
*
* Copyright (c) 2020 Silicon Labs
*
* 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
*
* ... | JavaScript | 0.000008 | @@ -1735,32 +1735,8 @@
i',%0A
- '--reuseZapInstance',%0A
'-
@@ -1944,24 +1944,20 @@
d(ctx, '
-electron
+node
', cli))
|
ceb0513b01b4b2cfcca727379fd7e80b30349b5c | correct model freshness to work from indicator | packages/ui/src/state/ducks/fryer.js | packages/ui/src/state/ducks/fryer.js | // TODO: Move state to somewhere more appropriate
import mapValues from 'lodash/mapValues'
export const FRYER_CONNECTED = 'FRYER_CONNECTED'
export const connected = () => ({
payload: null,
type: FRYER_CONNECTED
})
export const FRYER_DISCONNECTED = 'FRYER_DISCONNECTED'
export const disconnected = () => ({
payl... | JavaScript | 0 | @@ -83,16 +83,70 @@
pValues'
+%0Aimport %7B getIndicator %7D from 'donut-common/src/rater'
%0A%0Aexport
@@ -1963,22 +1963,50 @@
%7C%7C
-model.score %3E
+(getIndicator(model.donut) %3E getIndicator(
oldM
@@ -2014,13 +2014,15 @@
del.
-score
+donut))
%0A
|
646abd0d74e936c48d577a013190d1e9ca2700f8 | fix typo | src/client/modules/startup.js | src/client/modules/startup.js | /*global require*/
/*jslint white:true*/
require(['require-config'], function() {
'use strict';
require(['app/main'], function (main) {
main.start()
.catch(function (err) {
document.getElementById('root').innerHTML = 'Error starting KBase UI. Please consult the browser error ... | JavaScript | 0.999991 | @@ -399,18 +399,18 @@
sole.err
-r
o
+r
(err);%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.