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 |
|---|---|---|---|---|---|---|---|
4c4593b043cc0ea47327143362bb1b92c757882a | FIX required body in user/follow post | routes/user.js | routes/user.js | var User = require('../models/user.js').model;
exports.allUsers = function (req, res) {
User.find({}, function (err, docs) {
if (!err) {
var users = [];
for (var i = 0; i < docs.length; i++) {
users.push(docs[i].toDTO());
}
... | JavaScript | 0 | @@ -2492,32 +2492,321 @@
on (req, res) %7B%0A
+ console.log(req.body.id);%0A if (typeof req.body == 'undefined' %7C%7C typeof req.body.id == 'undefined') %7B%0A res.status(412).send(%7B%0A errorCode: 'REQUEST_BODY_REQUIRED',%0A message: 'Request body is missing'%0A ... |
3788fc61174a869ccd73408174930c1d6f85bfe8 | remove console.log | chrome_plugin/js/helper/checkLastUpdated.js | chrome_plugin/js/helper/checkLastUpdated.js | function checkLastUpdated() {
var selection = load('selection');
for (var i = selection.length - 1; i >= 0; i--) {
var cartItem = load(selection[i]);
var link = $(cartItem.link[cartItem.link.length-1])[0];
origItem = convertData(link);
if (isOutdated(cartItem, origItem)) {
bootbox.confirm("Das Fach " +... | JavaScript | 0.000006 | @@ -732,40 +732,8 @@
ed;%0A
-%09%09console.log(a + %22 ___ %22 + b);%0A
%09%09if
|
2fb12cf7033bc647f79433d1470fc59f5ce6204d | remove comments | src/pages/projects.js | src/pages/projects.js | import React from 'react';
import Link from 'gatsby-link';
import Octokit from '@octokit/rest';
import styled, { injectGlobal } from 'styled-components';
import Assistant from '../../styles/fonts/Assistant-ExtraLight.ttf';
// function addCommit(prevState, user) {
// if (!user) {
// return prevState;
// } else ... | JavaScript | 0 | @@ -221,769 +221,8 @@
';%0A%0A
-// function addCommit(prevState, user) %7B%0A// if (!user) %7B%0A// return prevState;%0A// %7D else %7B%0A// const username = user.login;%0A// const prevLeaderboard = prevState.leaderboard;%0A// let index;%0A// const result = prevLeaderboard.find((user, i) =%3E %... |
5126ba31d474ab6cf6f21ad37e1822a08a0aeb1d | fix bug | src/components/PostToFacebook.js | src/components/PostToFacebook.js | import React, { Component } from 'react'
import { Notification } from 'react-notification'
import axios from 'axios'
import { connect } from 'react-redux'
import store from '../store'
class PostToFacebook extends Component {
constructor(props) {
super(props)
this.state = {
where: 'user',
privacy... | JavaScript | 0.000001 | @@ -935,16 +935,23 @@
)%0A
+return
listWord
@@ -956,15 +956,11 @@
rds.
-forEach
+map
((wo
@@ -1004,39 +1004,16 @@
lice(1))
-%0A return listWords
.join(''
|
f669d0480d6940f8285ef22705b2a40c0366ea0e | add a new style for the profile position text | src/components/Profile/styled.js | src/components/Profile/styled.js | import styled from 'styled-components'
import { Link } from 'gatsby'
export const ProfileWrapper = styled.section`
color: var(--texts);
display: flex;
flex-direction: column;
`
export const ProfileLink = styled(Link)`
color: var(--texts);
text-decoration: none;
transition: color 0.5s;
&:hover {
cur... | JavaScript | 0.000028 | @@ -338,102 +338,8 @@
%0A%60%0A%0A
-export const ProfileAuthor = styled.h1%60%0A font-size: 1.6rem;%0A margin: 0.5rem auto 1.5rem;%0A%60%0A%0A
expo
@@ -376,13 +376,10 @@
led.
-small
+h1
%60%0A
@@ -412,10 +412,8 @@
e: 1
-.2
rem;
@@ -433,16 +433,46 @@
t: 300;%0A
+ margin: 0.5rem auto 1.5rem;%0A
%60%0A%0Aexpo... |
17437b73265b3d11866e09faeda4c244b7bccfdc | Change expected scan prop type to number | src/components/StatusListItem.js | src/components/StatusListItem.js | import React, {PropTypes} from 'react'
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
const StatusListItem = props => {
let memberCount = props.teams.map(team => team.members.length).reduce((a, b) => a + b, 0)
let teamCount = props.teams.length
return (
<div>
... | JavaScript | 0.000001 | @@ -833,30 +833,30 @@
t.PropTypes.
-string
+number
,%0A onClick:
|
c8123429739e2c96729c896f869d342e3365f434 | Remove voting period | src/components/challenge/Form.js | src/components/challenge/Form.js | import React, { Component, Fragment } from 'react'
import { Heading, Text } from '@hackclub/design-system'
import LoginForm from 'components/auth/LoginForm'
import PostForm from 'components/challenge/PostForm'
import LoadingBar from 'components/LoadingBar'
import ErrorMessage from 'components/admin/ErrorPage'
const Fo... | JavaScript | 0.000002 | @@ -342,11 +342,12 @@
d =
-tru
+fals
e, c
@@ -573,10 +573,9 @@
osed
-!
%0A
+
@@ -627,91 +627,74 @@
-You can still vote on your favorite submissions until Wednesday%0A (5/23).
+We%E2%80%99ll be sending out prizes soon. Thanks for submitting, everyone!
%0A
|
0f17529a3efe6785681b63eb72dcbbc8dce88faa | Use numeric post IDs | src/components/challenge/Post.js | src/components/challenge/Post.js | import React, { Fragment, Component } from 'react'
import {
Box,
Flex,
Icon,
Button,
Heading,
Link,
Text
} from '@hackclub/design-system'
import PropTypes from 'prop-types'
import { Modal, Overlay, CloseButton } from 'components/Modal'
import Comments from 'components/challenge/Comments'
import { dt, tiny... | JavaScript | 0.000002 | @@ -337,43 +337,8 @@
rs'%0A
-import %7B kebabCase %7D from 'lodash'%0A
impo
@@ -1638,23 +1638,20 @@
id=%7B
-kebabCase(name)
+%60post-$%7Bid%7D%60
%7D%0A
|
4013fc58b154ed7a53f7ebaf57035dd477e309fe | Set input focus on change without document.activeElement | src/components/input/TextArea.js | src/components/input/TextArea.js | import React, { Component, PropTypes } from 'react';
import TextareaAutosize from 'react-textarea-autosize';
import styles from '../../chat.scss';
export default class TextArea extends Component {
componentDidUpdate(prevProps) {
if (prevProps.inputValue !== this.props.inputValue) {
if (document.activeEleme... | JavaScript | 0.000001 | @@ -297,47 +297,23 @@
if (
-document.activeElement !== this.usermsg
+!this.fromInput
) %7B%0A
@@ -350,16 +350,46 @@
%7D%0A
+ this.fromInput = false;%0A
%7D%0A
@@ -515,16 +515,43 @@
value);%0A
+ this.fromInput = true;%0A
%7D;%0A%0A
|
0d64d6e0e1f537f32bd740dbbad37ab5a406f590 | Fix Node 10 check | packages/insomnia-app/scripts/build.js | packages/insomnia-app/scripts/build.js | const packageJson = require('../package.json');
const childProcess = require('child_process');
const webpack = require('webpack');
const rimraf = require('rimraf');
const ncp = require('ncp').ncp;
const path = require('path');
const mkdirp = require('mkdirp');
const fs = require('fs');
const configRenderer = require('.... | JavaScript | 0 | @@ -862,18 +862,16 @@
Of('v10.
-15
') !== 0
@@ -912,10 +912,9 @@
v10.
-15
+x
.x i
|
33cb9cfc6af91d3b340dc3e1aee55aba94d9044a | use expect instead of assert | packages/nerv/__tests__/export.spec.js | packages/nerv/__tests__/export.spec.js | import Nerv from '../index'
import assert from 'assert'
describe('Should export correct module', () => {
it('Should export `default` module', () => {
assert(Nerv['default'])
})
it('should export correct module', () => {
assert(Nerv.Children)
assert(Nerv.Component)
assert(Nerv.PureComponent)
... | JavaScript | 0.000454 | @@ -24,36 +24,8 @@
dex'
-%0Aimport assert from 'assert'
%0A%0Ade
@@ -118,29 +118,29 @@
() =%3E %7B%0A
-asser
+expec
t(Nerv%5B'defa
@@ -145,16 +145,36 @@
fault'%5D)
+.not.toBe(undefined)
%0A %7D)%0A%0A
@@ -217,29 +217,29 @@
() =%3E %7B%0A
-asser
+expec
t(Nerv.Child
@@ -246,223 +246,383 @@
ren)
-%0A ... |
b5870e7258041989a688901f13ed4e80ab166b39 | add invariant test for curry2 and curry3 | packages/prelude/test/function-test.js | packages/prelude/test/function-test.js | /** @license MIT License (c) copyright 2016 original author or authors */
import {describe, it} from 'mocha'
import assert from 'assert'
import { id, compose, apply, curry2, curry3 } from '../src/function'
describe('id', () => {
it('id(x) === x', () => {
const x = {}
assert.strictEqual(id(x), x)
})
})
d... | JavaScript | 0.001997 | @@ -1420,24 +1420,264 @@
2), 3)%0A %7D)
+%0A%0A it('should be invariant', () =%3E %7B%0A const f = (x, y) =%3E x + y%0A const a = 1%0A const b = 2%0A%0A const bool =%0A curry2(f)(a)(b) === 3 &&%0A curry2(f)(a, b) === 3 &&%0A f(a, b) === 3%0A%0A assert.strictEqual(bool, true)%0A %7D)
... |
b327f47462ffb2578e5d84edbcfeade61e94a1e7 | Fix eslint errors | packages/rocketchat-logger/ansispan.js | packages/rocketchat-logger/ansispan.js | /* globals ansispan:true */
/* eslint-disable no-octal */
ansispan = function(str) {
str = str.replace(/>/g, '>');
str = str.replace(/</g, '<');
Object.keys(ansispan.foregroundColors).forEach(function(ansi) {
var span = '<span style="color: ' + ansispan.foregroundColors[ansi] + '">';
//
// `\033[Xm` =... | JavaScript | 0.013429 | @@ -1,8 +1,29 @@
+/* eslint-disable */%0A
/* globa
@@ -45,38 +45,8 @@
e */
-%0A/* eslint-disable no-octal */
%0A%0Aan
|
4603d01cf369470feaed8b1e1a2560c190cbee2e | make post login message more obvious that login was a success | ReactNativeApp/src/Todos.js | ReactNativeApp/src/Todos.js | // @flow
import React, { Component } from 'react';
import {
Button,
FlatList,
Text,
View
} from 'react-native';
import userManager from './Auth/userManager';
const LogOut = () => {
userManager.removeUser();
}
class Todos extends Component {
render() {
return (
<View>
<Button
o... | JavaScript | 0.000008 | @@ -381,146 +381,170 @@
%3C
-FlatList%0A data=%7B%5B%7Bkey: 'First Item'%7D, %7Bkey: 'Second Item'%7D%5D%7D%0A renderItem=%7B(%7Bitem%7D) =%3E %3CText%3E%7Bitem.key%7D%3C/Text%3E%7D%0A /
+Text%3ESuccess! Use CTRL + M on Windows or %E2%8C%98D on iOS and enable JS debugging, then you can view... |
17668ca203a3950484877631d119f480a038d5a2 | Fix filename | ui/app/components/help/BrowsingExports.js | ui/app/components/help/BrowsingExports.js | import React from "react";
import { Link } from "react-router-dom";
import { Jumbotron, Row, Col } from 'react-bootstrap';
import searchExports from "../../images/docs/searchexports.png";
import exportDetail from "../../images/docs/exportDetail.png";
import rerunClone from "../../images/docs/rerunclone.png";
export d... | JavaScript | 0.999905 | @@ -228,25 +228,25 @@
/docs/export
-D
+d
etail.png%22;%0A
|
7e5eb80b4198b2cbec9bcca96f3375560039de60 | Update init.js | physics/minilibs/vector2/init.js | physics/minilibs/vector2/init.js | if (!Vector2) {
var Vector2 = function(x, y) {
this.x = x || 0;
this.y = y || 0;
};
Vector2.mid = function(lineEnd1, lineEnd2) {
return new Vector2(
lineEnd1.x / 2 + lineEnd2.x / 2,
lineEnd1.y / 2 + lineEnd2.y / 2
);
};
Vector2.lerp = function(lerpFrom, lerpTo, lerpStage) ... | JavaScript | 0.000001 | @@ -93,1265 +93,6 @@
%7D;%0A
- %0A %0A %0A Vector2.mid = function(lineEnd1, lineEnd2) %7B%0A return new Vector2(%0A lineEnd1.x / 2 + lineEnd2.x / 2,%0A lineEnd1.y / 2 + lineEnd2.y / 2%0A );%0A %7D;%0A Vector2.lerp = function(lerpFrom, lerpTo, lerpStage) %7B%0A return new Vector2(%0A lerp... |
b05638cece28c5b46583c0cb474287ad2742d31e | Rename internal methods | src/qUnitScraper.js | src/qUnitScraper.js | var qUnitScraper = {
init: function() {
// validate page here
var failedMessages = this._readModule();
console.log( failedMessages );
},
_readModule: function( ) {
var failedModules = jQuery("#qunit-tests .fail[id^=qunit-test-output]");
var failedMessages = [... | JavaScript | 0.000023 | @@ -115,22 +115,23 @@
is._read
-Module
+Results
();%0A
@@ -181,22 +181,23 @@
_read
-Module
+Results
: functi
@@ -625,20 +625,22 @@
is._read
-Test
+Module
( thisMo
@@ -713,20 +713,22 @@
_read
-Test
+Module
: functi
|
0c56df1c2118334d78ed8c96468001c32399265a | Remove console.log test | client/app/controllers/createProfileController.js | client/app/controllers/createProfileController.js | angular.module('bolt.createProfile', [])
.controller('CreateProfileController', function($scope, Profile) {
$scope.createProfile = function(first, last, email, phone, distance) {
console.log(arguments);
var newData = {
first: first,
last: last,
email: email,
phone: phone,
distan... | JavaScript | 0.000003 | @@ -179,36 +179,8 @@
) %7B%0A
- console.log(arguments);%0A
|
4e0be8151794a5a828237482f8557c4064190649 | Add `react/jsx-sort-default-props` rule | rules/react.js | rules/react.js | 'use strict';
module.exports = {
plugins: [
'react',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
// Enable original eslint rules
'jsx-quotes': 'error',
// React rules
'react/boolean-prop-naming': 'off',
... | JavaScript | 0.000001 | @@ -3358,32 +3358,75 @@
case': 'error',%0A
+ 'react/jsx-sort-default-props': 'off',%0A
'react/jsx-s
|
ee93761702f68fcda07e9d87b8be4ea4a5f7e41c | add effect support | Resources/public/js/ajax.js | Resources/public/js/ajax.js | $(document).ready(function() {
$('body').prepend('<div id="canvasloader-container"></div>');
createLoader('#canvasloader-container');
$(document).on('submit', 'form.ajax', function(event) {
$('#canvasloader-container').fadeIn();
event.preventDefault();
var update = $(this).attr('upda... | JavaScript | 0 | @@ -1485,24 +1485,40 @@
, update) %7B%0A
+ var effect;%0A
if (json
@@ -1730,24 +1730,65 @@
;%0A %7D%0A
+ effect = initEffect(%22#%22+update);%0A
// c
@@ -2218,16 +2218,57 @@
else %7B%0A
+ effect = initEffect(%22#%22+update);%0A
@@ -2311,56 +2311,761 @@
%7D%0A
-%0A ... |
2849724968222b6678764c3dc4fe996b0d2815bf | exclude gl_plot_interact_test from local test runs, | test/jasmine/karma.conf.js | test/jasmine/karma.conf.js | /*eslint-env node*/
// Karma configuration
/*
* Test file globs can be passed with an argument.
*
* Example:
*
* $ npm run test-jasmine -- tests/axes_test.js
*
* will only run the tests in axes_test.js
*
*/
var testFileGlob = process.argv[4] ? process.argv[4] : 'tests/*_test.js';
function func(config) {
... | JavaScript | 0 | @@ -962,49 +962,419 @@
/
-/ list of files to exclude%0A exclude: %5B
+*%0A * WebGL interaction test cases don't run consistently%0A * across machines. Before each release, please make sure%0A * to run these with:%0A *%0A * npm run test-jasmine -- gl_plot_interact_test.js%0A *%0A * Or... |
9726e4de6ef8bd739266a3374f13755a70950d13 | Revert "Key up instead of key down" | public/javascripts/SVLabel/src/SVLabel/PopUpMessage.js | public/javascripts/SVLabel/src/SVLabel/PopUpMessage.js | /**
*
* @param form
* @param storage
* @param taskContainer
* @param tracker
* @param user
* @param uiPopUpMessage
* @returns {{className: string}}
* @constructor
*/
function PopUpMessage (form, storage, taskContainer, tracker, user, onboardingModel, uiPopUpMessage) {
var self = this;
var status = { h... | JavaScript | 0 | @@ -2191,18 +2191,20 @@
ner('key
-up
+down
', funct
|
ffb4f752f39286f84f0c66fc5bd40808bd3c0813 | add test expect values | test/labeled_merge_test.js | test/labeled_merge_test.js | 'use strict';
var grunt = require('grunt'),
join = require('path').join,
mergeMeta = require('../tasks/lib/merge-meta'),
fakeHasher = require('./stubs/file-hash');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAs... | JavaScript | 0.000002 | @@ -1939,32 +1939,81 @@
);%0A %7D);%0A
+ test.expect(3 + filesName_first.length);%0A
test.don
@@ -2013,24 +2013,24 @@
est.done();%0A
-
%7D,%0A%0A
@@ -2771,32 +2771,82 @@
);%0A %7D);%0A
+ test.expect(1 + filesName_second.length);%0A
test.don
@@ -4022,32 +4022,5... |
ae23b48d8b179fbf5a2d49b7efc3c50c4afb56fd | Update ses_listtemplates.js | javascript/example_code/ses/ses_listtemplates.js | javascript/example_code/ses/ses_listtemplates.js | /*
Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This file is licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License. A copy of
the License is located at
http://aws.amazon.com/apache2.0/
This fi... | JavaScript | 0.000001 | @@ -1,9 +1,6 @@
/
-*%0A
+/
Cop
@@ -77,26 +77,12 @@
ed.%0A
-%0A This file is l
+// L
icen
@@ -105,428 +105,80 @@
ache
- License, Version 2.0 (the %22License%22).%0A You may not use this file except in compliance with the License. A copy of%0A the License is located at%0A%0A http://aws.amazon.com/apache2... |
67161e5e02b0ea7eaafc2dc4b520b8c321915e97 | Automate enabling bootstrap-popover | public/javascripts/app.js | public/javascripts/app.js | (function ($) {
$.fn.enable = function () {
return this.removeAttr('disabled');
};
$.fn.disable = function () {
return this.attr('disabled', 'disabled');
};
})(jQuery);
$(document).ready(function () {
$('#columns .tweets').empty(); // Remove dummy content.
$('.not-signed-in #the-sign-in-menu').po... | JavaScript | 0.000006 | @@ -179,16 +179,510 @@
uery);%0A%0A
+$(document).ready(function () %7B%0A var popoverNormalOptions = %5B%0A 'animate',%0A 'delayIn',%0A 'delayOut',%0A 'fallback',%0A 'html',%0A 'live',%0A 'offset',%0A 'placement',%0A 'trigger'%0A %5D;%0A $('%5Bdata-popover%5D').each(function () %7B%0A ... |
7d2970a419d94717ba12fbe0c031a0b9910b24b9 | removed semicolons | test/mkdirp/mkdirp.test.js | test/mkdirp/mkdirp.test.js | var mkdirp = require('../');
var path = require('path');
var fs = require('fs');
var exists = fs.exists || path.exists;
var test = require('tap').test;
test('woo', function (t) {
t.plan(5);
var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
var y = Math.floor(Math.random() * Math.pow(16,4)).t... | JavaScript | 0.99962 | @@ -20,17 +20,16 @@
e('../')
-;
%0Avar pat
@@ -47,17 +47,16 @@
('path')
-;
%0Avar fs
@@ -70,17 +70,16 @@
re('fs')
-;
%0Avar exi
@@ -108,17 +108,16 @@
h.exists
-;
%0Avar tes
@@ -139,17 +139,16 @@
p').test
-;
%0A%0Atest('
@@ -181,17 +181,16 @@
.plan(5)
-;
%0A var
@@ -241,33 +241,32 @@
4)).toString(16)
-;... |
5b497ac1d3c49cbe30c0499bf58610bef80e4949 | Add a default cache for slide GET requests | public/javascripts/app.js | public/javascripts/app.js | var mainModule = angular.module('mainApp', ['ngSanitize', 'slideshow']);
var slideshowModule = angular.module('slideshow', ['ngResource']);
slideshowModule.controller('slideshowController', ['$scope', 'Slide',
function ($scope, Slide) {
$scope.currentSlide = Slide.get({slideId: 1});
$scope.allSlides = Slide... | JavaScript | 0 | @@ -764,15 +764,82 @@
slideId'
+, %7B%7D, %7B%0A get: %7B%0A method: 'GET',%0A cache: true%0A %7D%0A %7D
);%0A%7D%5D);
|
70800c268ab8c81839d8d22854004c0a176728f5 | Remove obsolete codes | tools/scenario-runner.js | tools/scenario-runner.js | var Client = require(__dirname + '/../lib/client').Client;
var fs = require('fs');
var path = require('path');
var statusCodeTable = {
500: 'Inetnal Server Error',
404: 'Not Found',
409: 'Conflict',
400: 'Bad Request',
200: 'OK'
};
function Runner(options) {
this.client = new Client(options);
this.optio... | JavaScript | 0.998726 | @@ -55,60 +55,8 @@
ent;
-%0Avar fs = require('fs');%0Avar path = require('path');
%0A%0Ava
@@ -1231,164 +1231,8 @@
%7D,%0A%0A
- toFileName: function(scenarioName) %7B%0A return scenarioName%0A .replace(/%5B%5Ea-zA-Z0-9%5D+/g, '-')%0A .replace(/-$/, '') + '.txt';%0A %7D,%0A%0A
_p
|
b15524462a1325468ec458e5f1f5774333a51fe4 | Remove notice re practice trials (to avoid confusion) | public/js/instructions.js | public/js/instructions.js | /**
* Instructions view block for jsSART
*/
var
instructions = [],
participant_id = getParticipantId();
var instructions_block = {
type: "instructions",
pages: [
"<p>Welcome!</p> " +
"<p>In this study you will be presented with a single digit (<code>1-9</code>) in varying sizes in the middle of the s... | JavaScript | 0 | @@ -938,69 +938,8 @@
/p%3E%22
-,%0A%0A %22%3Cp%3EWe will now continue to some practice trials.%3C/p%3E%22
%0A %5D
|
4e97c105c47d8f6d40bebaf3648c6549ff059f2b | Fix cannot send tip, transaction failed (#917) | src/renderer/redux/actions/wallet.js | src/renderer/redux/actions/wallet.js | import * as ACTIONS from 'constants/action_types';
import * as MODALS from 'constants/modal_types';
import Lbry from 'lbry';
import { doOpenModal, doShowSnackBar } from 'redux/actions/app';
import { doNavigate } from 'redux/actions/navigation';
import {
selectBalance,
selectDraftTransaction,
selectDraftTransactio... | JavaScript | 0 | @@ -4889,16 +4889,26 @@
(%7B%0A
+ claim_id:
claimId
|
e414ac6ce3445f1a64ce575e415ebac863de48e9 | Add cache: false to tutorial JS | public/scripts/example.js | public/scripts/example.js | /**
* This file provided by Facebook is for non-commercial testing and evaluation purposes only.
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... | JavaScript | 0 | @@ -1100,24 +1100,44 @@
pe: 'json',%0A
+ cache: false,%0A
succes
|
1c6b33ad4990f0f7194475d56b8419ddbdbf14b5 | fix permalink bug | src/routes/PostList/actions/index.js | src/routes/PostList/actions/index.js | import * as actionTypes from '../constants';
import compact from 'lodash/compact';
const formatPermaLink = (permalink) => {
const permalinkWithJson = `${permalink.substr(0, permalink.length - 1)}.json`;
return `https:/www.reddit.com${permalinkWithJson}`;
}
export function receivedPosts(posts = []) {
const mung... | JavaScript | 0 | @@ -620,32 +620,33 @@
inkUrl: %60https:/
+/
www.reddit.com$%7B
|
425b3cffdc0de1fee1960e96bf1d2f12a597c171 | Use arrow function | src/web/app/common/scripts/text-compiler.js | src/web/app/common/scripts/text-compiler.js | const riot = require('riot');
const nyaize = require('nyaize').default;
const emojinize = require('emojinize');
const CONFIG = require('./config');
const escape = function(text) {
return text
.replace(/>/g, '>')
.replace(/</g, '<');
};
module.exports = function(tokens, shouldBreak) {
if (shouldBreak == nu... | JavaScript | 0.000022 | @@ -161,33 +161,17 @@
e =
-function(text) %7B%0A%09return
+text =%3E%0A%09
text
@@ -225,11 +225,8 @@
;');
-%0A%7D;
%0A%0Amo
@@ -240,24 +240,16 @@
ports =
-function
(tokens,
@@ -261,16 +261,19 @@
ldBreak)
+ =%3E
%7B%0A%09if (
@@ -381,23 +381,16 @@
map(
-function(
token
-)
+ =%3E
%7B%0A%09
@@ -1424,9 +142... |
a95fde83acba569573f97ea673709a1b5767b70f | fix and update query-time boosting of fields | redef/patron-client/src/backend/utils/searchBuilder.js | redef/patron-client/src/backend/utils/searchBuilder.js | const querystring = require('querystring')
const Constants = require('../../frontend/constants/Constants')
function initCommonQuery () {
return {
size: 0,
aggs: {
facets: {
global: {},
aggs: {}
},
byWork: {
terms: {
field: 'workUri',
order: { top:... | JavaScript | 0 | @@ -869,16 +869,19 @@
'author
+%5E50
',%0A '
@@ -1053,9 +1053,10 @@
tle%5E
-2
+30
',%0A
@@ -1145,16 +1145,19 @@
'series
+%5E10
',%0A '
@@ -1163,16 +1163,19 @@
'subject
+%5E10
',%0A '
@@ -1190,24 +1190,27 @@
,%0A 'title
+%5E20
',%0A 'work
@@ -1403,64 +1403,8 @@
: %7B%0A
- bool: %7B%0A... |
3c7f184ea9124ddf68c92e7a60a21ca3d1ba415b | add 4 identifiers to default search space | redef/patron-client/src/backend/utils/searchBuilder.js | redef/patron-client/src/backend/utils/searchBuilder.js | const querystring = require('querystring')
const Constants = require('../../frontend/constants/Constants')
function initCommonQuery () {
return {
size: 0,
aggs: {
facets: {
global: {},
aggs: {}
},
byWork: {
terms: {
field: 'workUri',
order: { top:... | JavaScript | 0.000264 | @@ -884,24 +884,35 @@
'compType',%0A
+ 'ean',%0A
'format'
@@ -922,24 +922,48 @@
'genre',%0A
+ 'isbn',%0A 'ismn',%0A
'languag
@@ -1041,24 +1041,40 @@
partTitle',%0A
+ 'recordId',%0A
'series'
|
9350f6ef14879644aa58e4537e22939d424fc7db | add explicit expect to compile empty templates | test/view-compiler.spec.js | test/view-compiler.spec.js | import './setup';
import {ViewCompiler} from '../src/view-compiler';
import {ViewResources} from '../src/view-resources';
class MockBindingLanguage {
inspectAttribute(resources, elementName, attrName, attrValue) {
}
createAttributeInstruction(resources, element, info, existingInstruction) {
}
inspectTextCo... | JavaScript | 0.000001 | @@ -784,16 +784,33 @@
agment()
+,%0A factory
;%0A
@@ -834,32 +834,42 @@
ild(node);%0A
+ factory =
viewCompiler.co
@@ -898,24 +898,62 @@
ces, null);%0A
+ expect(factory).not.toBe(null);%0A
%7D);%0A %7D)
|
512640fca079a6e7e8161a4bfc2a55ef8981da7a | Revert "updated styling." | spa_ui/self_service/client/app/components/navigation/header-nav.directive.js | spa_ui/self_service/client/app/components/navigation/header-nav.directive.js | (function() {
'use strict';
angular.module('app.components')
.directive('headerNav', HeaderNavDirective);
/** @ngInject */
function HeaderNavDirective() {
var directive = {
restrict: 'AE',
replace: true,
scope: {},
link: link,
templateUrl: 'app/components/navigation/heade... | JavaScript | 0 | @@ -913,32 +913,34 @@
av) %7B%0A
+
Navigation.state
@@ -984,17 +984,20 @@
llapsed;
-%0A
+ %0A
@@ -1045,16 +1045,18 @@
+
+
%7D else %7B
@@ -1056,16 +1056,18 @@
else %7B%0A
+
@@ -1134,16 +1134,18 @@
ileNav;%0A
+
|
cc149b841d847bfee96394e090ed663ce18be819 | Fix merge conflict | frontend/src/flashcards/Folder.js | frontend/src/flashcards/Folder.js | import React from "react";
import "./Folder.css";
import { Link } from "react-router-dom";
/**
* A component that represents the Folder Entity. Contains a link to
* the /insidefolder page that would display the respective cards for
* the folder.
*/
class Folder extends React.Component {
<<<<<<< HEAD
=======
cons... | JavaScript | 0.000013 | @@ -286,37 +286,16 @@
onent %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A=======%0A
constr
@@ -633,38 +633,16 @@
);%0A %7D%0A%0A
-%3E%3E%3E%3E%3E%3E%3E deleteAndEdit%0A
render
@@ -1013,29 +1013,8 @@
nk%3E%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A=======%0A
@@ -1704,32 +1704,32 @@
%3C/div%3E%0A
+
%3C/... |
d84d79578912d0092526b445db671050bc967a73 | Remove User.post_count | cli/_lib/users.js | cli/_lib/users.js | // Convert users
//
'use strict';
const Promise = require('bluebird');
const mongoose = require('mongoose');
const html_unescape = require('nodeca.vbconvert/lib/html_unescape_entities');
const progress = require('./utils').progress;
const UNCONFIRMED = 3;
const MEMBERS = 11;
const VIOLATORS = 1... | JavaScript | 0.000001 | @@ -1001,14 +1001,8 @@
ity,
-posts,
icq,
@@ -1937,45 +1937,8 @@
0);%0A
- user.post_count = row.posts;%0A
|
152a7272c7ac2ef5f8b9238116aaced6f4cf4b26 | Make change rate tracker configurable on Number widget | installer/templates/new/widgets/number/number.js | installer/templates/new/widgets/number/number.js | import React from 'react';
import Widget from '../../assets/javascripts/widget';
import {updatedAt,
append,
prepend,
shortenedNumber} from '../../assets/javascripts/helpers';
import './number.scss';
Widget.mount(class Number extends Widget {
constructor(props) {
super(props);
this.s... | JavaScript | 0 | @@ -1022,16 +1022,210 @@
%7D%0A %7D%0A
+ changeRate() %7B%0A if (this.props.changerate == %22off%22) %7B return; %7D%0A%0A return (%0A %3Cp className=%22change-rate%22%3E%0A %7Bthis.arrow()%7D%3Cspan%3E%7Bthis.difference()%7D%3C/span%3E%0A %3C/p%3E%0A );%0A %7D%0A
render
@@ -1487,105 ... |
a041adf0d0f4f530a910ce3a075ad8509165b1d8 | Revert "lineBy and moveBy can now accept multiple instructions (lineBy({x/y}, {x/y}, etc); " | Source/Paint/ART.Adapter.js | Source/Paint/ART.Adapter.js | /*
Script: ART.Adapter.js
License:
MIT-style license.
*/
// Generic adapter base Class.
ART.Adapter = new Class({
style: {
'fill': false,
'stroke': false,
'fill-color': 'rgb(0, 0, 0)',
'stroke-color': 'rgb(0, 0, 0)',
'stroke-width': 1,
'stroke-cap': 'round',
'stroke-join': 'round',
'shadow-color'... | JavaScript | 0.000004 | @@ -2004,41 +2004,8 @@
By:
-function()%7B%0A%09%09$A(arguments).each(
func
@@ -2016,25 +2016,31 @@
(vector)%7B%0A%09%09
-%09
+return
this.moveTo(
@@ -2099,82 +2099,22 @@
);%0A%09
-%09%7D, this);%0A%09%09return this;%0A%09%7D,%0A%09%0A%09lineBy: function()%7B%0A%09%09$A(arguments).each(
+%7D,%0A%09%0A%09lineBy:
... |
ae9676bc71517e9468f8a50089f0085cc822690d | Fix location card collection start | app/assets/scripts/views/locations-hub/results.js | app/assets/scripts/views/locations-hub/results.js | import React from 'react';
import { PropTypes as T } from 'prop-types';
import ReactPaginate from 'react-paginate';
import InfoMessage from '../../components/info-message';
import LoadingMessage from '../../components/loading-message';
import LocationCard from './location-card';
export default function Results({
fe... | JavaScript | 0 | @@ -2237,23 +2237,20 @@
-collectionStart
+firstUpdated
=%7Blo
|
0a7274aa3da24222733cbc82dca6c1492d8d7c6e | clean up | app/components/layer-template-select/component.js | app/components/layer-template-select/component.js | /*global $:true*/
import Ember from 'ember';
import TimeMachine from 'ember-time-machine';
import ENV from '../../config/environment';
import _ from 'lodash';
import { layouts } from '../../renderer/layouts';
import { settings } from '../../renderer/defaultSettings';
import { themes } from '../../renderer/defaultThem... | JavaScript | 0.000001 | @@ -1056,38 +1056,8 @@
%5D;%0A%0A
-let layersAlreadyMerged = %5B%5D;%0A
func
|
791422bb123fb79281c477a5f92c49b49c86f651 | fix "setAttribute" bug in git log | Support/resource/toggle.js | Support/resource/toggle.js | function set_togglable_visibility(dom_id, state) {
link = $("toggle_link_" + dom_id);
detail_div = $(dom_id)
if (state) {
link.update("-");
detail_div.show();
}
else
{
link.update("+");
detail_div.hide()
}
}
function toggle_diff(dom_id) {
e = $(dom_id)
if (! e.readAttribute("loaded"))... | JavaScript | 0.000002 | @@ -523,32 +523,36 @@
tribute(%22loaded%22
+, %22%22
);%0A %7D%0A %0A set_
|
bb597b95af1666d92bd3dc9f76825a4f4c323d10 | Make playlist table selectable and add row id | TPSBIN/JS/playlistSearch.js | TPSBIN/JS/playlistSearch.js | /*
* The MIT License
*
* Copyright 2016 J.oliver.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | JavaScript | 0 | @@ -1692,32 +1692,63 @@
%7D%0A %7D,%0A
+ %22rowId%22: 'playlistID',%0A
%22columns
@@ -4171,24 +4171,57 @@
listTable);%0A
+ rowSelection(playlistTable);%0A
$('#play
@@ -4336,16 +4336,163 @@
;%0A%7D );%0A%0A
+function rowSelection(playlistTable)%0A%7B%0A playlistTable.on( 'click', ... |
870c7d7f0164e73f9e0eb92e8c77af272239031f | use raf for play | client/js/main.js | client/js/main.js | var domready = require('domready');
var events = require('dom-events');
var getManager = require('gardr/src/mobile.js');
var addClass = require('./lib/classes.js').addClass;
domready(function () {
var options = window.validatorWebData||{};
initTabs(options);
initExpandables(options);
initRender();
... | JavaScript | 0 | @@ -3626,24 +3626,257 @@
andler);%0A%7D%0A%0A
+function getRaf()%7B%0A return (%0A global.requestAnimationFrame %7C%7C%0A global.mozRequestAnimationFrame %7C%7C%0A global.webkitRquestAnimationFrame %7C%7C%0A function(fn)%7B%0A setTimeout(fn, 1);%0A %7D%0A );%0A%7D%0A... |
3e3c4e5108fb9c9cedcc34c46099b357286d8151 | Revert "test2" | MainCode/creep.asshealer.js | MainCode/creep.asshealer.js | var creep_asshealer = {
/** @param {Creep} creep **/
run: function(creep) {
var unboostedTough = 0;
var unboostedHeal = 0;
creep.body.forEach(function(thisPart) {
if (thisPart.type == HEAL && !thisPart.boost) {
unboostedHeal = unboostedHeal + 1;
... | JavaScript | 0 | @@ -1445,17 +1445,16 @@
ngth) %7B%0A
-%0A
@@ -1465,190 +1465,8 @@
-creep.memory._move = targetAttacker%5B0%5D.memory._move;%0A%0A creep.moveTo(targetAttacker%5B0%5D, %7B%0A noPathFinding: true;%0A %7D)%0A /*
if (
@@ -3512,18 +3512,16 @@
... |
7dc5df9edb72392737fd34a91742139f2a8ecbf2 | Use identity operator | src/parser/priest/shadow/modules/spells/azeritetraits/WhispersOfTheDamned.js | src/parser/priest/shadow/modules/spells/azeritetraits/WhispersOfTheDamned.js | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { calculateAzeriteEffects } from 'common/stats';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import ItemDamageDone from 'interface/o... | JavaScript | 0.000004 | @@ -1652,16 +1652,17 @@
tType ==
+=
HIT_TYP
|
2995912ef2c4d29b44bbbc4f9c4b22def966ab0d | Revert to two-pass merge | tests/helpers/start-app.js | tests/helpers/start-app.js | import Ember from 'ember';
import Application from '../../app';
import config from '../../config/environment';
export default function startApp(attrs) {
let application;
// use defaults, but you can override
let attributes = Ember.assign({}, config.APP, attrs);
Ember.run(() => {
application = Application... | JavaScript | 0.000065 | @@ -171,48 +171,8 @@
n;%0A%0A
- // use defaults, but you can override%0A
le
@@ -196,14 +196,13 @@
ber.
-assign
+merge
(%7B%7D,
@@ -216,16 +216,95 @@
.APP
-, attrs)
+);%0A attributes = Ember.merge(attributes, attrs); // use defaults, but you can override
;%0A%0A
|
d7ef70523e7e0720c6e480d3fa8e0b00ebfb60cd | add test for the onChangeValue chaining | tests/integration/hooks.js | tests/integration/hooks.js | import expect from 'expect.js'
import {stripIndent} from 'common-tags'
import {create} from '../../src'
import StyleSheet from '../../src/StyleSheet'
import {generateClassName} from '../utils'
describe('Integration: hooks', () => {
let jss
beforeEach(() => {
jss = create({generateClassName})
})
describe(... | JavaScript | 0 | @@ -5779,21 +5779,377 @@
%60)%0A %7D)
+%0A%0A it('should pass the new value to the next hook', () =%3E %7B%0A jss.use(%7BonChangeValue: value =%3E value + '-first'%7D)%0A jss.use(%7BonChangeValue: value =%3E value + '-second'%7D)%0A sheet.getRule('a').prop('color', 'green')%0A expect(sheet... |
0f752efa18ab07d37cd108db0ef5ef1ce9f192b1 | Add em test | tests/language/css-test.js | tests/language/css-test.js | /**
* css tests
*
* @author Craig Campbell
*/
RainbowTester.startTest('css');
RainbowTester.run(
'comment',
'/* comment */',
'<span class="comment">/* comment */</span>'
);
RainbowTester.run(
'multi-line comment',
'/**\n' +
' * comment\n' +
' */',
'<span class="comment">/**\n' ... | JavaScript | 0.000002 | @@ -1255,32 +1255,268 @@
cm%3C/span%3E;'%0A);%0A%0A
+RainbowTester.run(%0A 'em',%0A%0A 'font-size: 1.2em;',%0A%0A '%3Cspan class=%22support css-property%22%3Efont-size%3C/span%3E: %3Cspan class=%22constant numeric%22%3E1%3C/span%3E.%3Cspan class=%22constant numeric%22%3E2%3C/span%3E%3Cspan class=%22keyword un... |
c0789f692b3f7fb854b9922797f07982250d95f3 | Update identification.js | mainRPi/sockets/monitorSockets/identification.js | mainRPi/sockets/monitorSockets/identification.js | var mongoose=require('../../../mongoose');
var errors=require('../../../errors.js');
var Monitor=require('../../../server/models/monitor.js');
var monArray=require('../../../envVariables.js');
module.exports=function(socket, serverSocket){
socket.on('identification',function(data, fn){
if(data.monID!='' && data.... | JavaScript | 0.000001 | @@ -1725,32 +1725,94 @@
;%0A %7D%0A
+ fn(%7Bstatus:true, new: true, monID:socket.monID%7D);%0A
%7D);%0A
|
0afb392f90fd7759fe87e4e545fc909faef480a6 | fix test | tests/services/dataSpec.js | tests/services/dataSpec.js | var should = require('should');
var sinon = require('sinon');
var assert = require('assert');
var setup = require('./../mocks/setup');
setup.makeSuite('add data service', function() {
var dataService = require('./../../src/services/data');
var projectService = require('./../../src/services/project');
var elasti... | JavaScript | 0.000002 | @@ -945,32 +945,34 @@
r, null);%0A
+//
assert.equal(res
@@ -990,16 +990,55 @@
th, 4);%0A
+ assert.equal(res.ids.length, 4);%0A
as
|
fd0fdc4799baec3dfb691d6b143ef24133ee3c10 | Update io-modal.js | addon/components/io-modal.js | addon/components/io-modal.js | import Ember from 'ember';
var openedModals = 0;
export default Ember.Component.extend({
modalNode: null,
show: false,
visibility: Ember.computed('show', function () {
return this.get('show') ? 'show' : 'hide';
}),
_onShowChange: Ember.observer('show', function () {
var $node = this.get('modalNo... | JavaScript | 0 | @@ -664,16 +664,38 @@
-header%22
+,%0A revert: true
%0A %7D
|
118462b9d915931b7a9aa150473d93b5a24eced3 | Fix run state when clicking the operation | addons/cb.project/autorun.js | addons/cb.project/autorun.js | define([
'ports'
], function(ports) {
var _ = codebox.require("hr/utils");
var commands = codebox.require("core/commands/toolbar");
var operations = codebox.require("core/operations");
var box = codebox.require("core/box");
var dialogs = codebox.require("utils/dialogs");
var alerts = codebox... | JavaScript | 0 | @@ -2293,130 +2293,8 @@
);%0A%0A
- // Stop%0A op.on(%22destroy%22, function() %7B%0A setRunTerminal(undefined);%0A %7D);%0A%0A
@@ -2424,32 +2424,75 @@
op.destroy();%0A
+ setRunTerminal(undefined);%0A
%7D);%0A
|
139c67ffeb2c6427fe4ac4c5dae72603bc3c2b1c | Update core.client.routes.js | modules/core/client/config/core.client.routes.js | modules/core/client/config/core.client.routes.js | (function () {
'use strict';
angular
.module('core.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider', '$urlRouterProvider'];
function routeConfig($stateProvider, $urlRouterProvider) {
$urlRouterProvider.rule(function ($injector, $location) {
var path = $location.path();... | JavaScript | 0.000002 | @@ -1997,24 +1997,29 @@
ews/consent.
+form.
view.html',%0A
|
4d96553cbbedd7c5dfa749e0d914e41cf07ad7f4 | Stop logging after tests, minor formatting | tests/unit/logger.tests.js | tests/unit/logger.tests.js | describe("Space.Logger", function () {
beforeEach(function(){
this.log = new Space.Logger();
});
it('extends Space.Object', function(){
expect(Space.Logger).to.extend(Space.Object);
});
it("is available of both client and server", function () {
if (Meteor.isServer || Meteor.isClient)
expe... | JavaScript | 0 | @@ -22,25 +22,24 @@
r%22, function
-
() %7B%0A%0A befo
@@ -51,24 +51,25 @@
h(function()
+
%7B%0A this.l
@@ -96,24 +96,77 @@
r();%0A %7D);%0A%0A
+ afterEach(function() %7B%0A this.log.stop();%0A %7D);%0A%0A
it('extend
@@ -192,16 +192,17 @@
nction()
+
%7B%0A ex
@@ -299,33 +299,32 @@
erver%22, f... |
4a8a07f4267c38c35b7da724043c2cca5292b8fe | Add a 'printer' role | modules/users/server/models/user.server.model.js | modules/users/server/models/user.server.model.js | 'use strict';
/**
* Module dependencies
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
crypto = require('crypto'),
validator = require('validator'),
generatePassword = require('generate-password'),
owasp = require('owasp-password-strength-test');
/**
* A Validation function for local st... | JavaScript | 0.000006 | @@ -2052,16 +2052,27 @@
r.study'
+, 'printer'
%5D%0A %7D%5D
|
10ccca4a96aeeb7b59eb7e1ff6314b101122ee00 | add job name1 | ndscheduler/static/js/views/jobs/add-job-view.js | ndscheduler/static/js/views/jobs/add-job-view.js | /**
* add-job view.
*
* @author wenbin@nextdoor.com
*/
require.config({
paths: {
'jquery': 'vendor/jquery',
'underscore': 'vendor/underscore',
'backbone': 'vendor/backbone',
'bootstrap': 'vendor/bootstrap',
'select2': 'vendor/select2',
'utils': 'utils',
'text': 'vendor/text',
'a... | JavaScript | 0.999986 | @@ -2279,19 +2279,41 @@
ob name'
++success_notification
);%0A
+%0A
|
45150da06628b8ead69a3343ee339739bf71726e | Fix problem with master changed dimension, trl still old | Kwc/Abstract/Image/ImageUploadField.js | Kwc/Abstract/Image/ImageUploadField.js | Ext.namespace('Kwc.Abstract.Image');
Kwc.Abstract.Image.ImageUploadField = Ext.extend(Ext.Panel, {
_scaleFactor: null,
baseParams: null,
initComponent: function() {
this.baseParams = {};
Kwc.Abstract.Image.ImageUploadField.superclass.initComponent.call(this);
var dimensionField = t... | JavaScript | 0 | @@ -4844,32 +4844,50 @@
mension != null)
+ %7B%0A
previewParams.d
@@ -4914,16 +4914,1258 @@
ension;%0A
+ var dimension = this._getDimensionField().resolvedDimensions%5Bvalue.dimension%5D;%0A if (dimension && value.cropData) %7B%0A if (dimension.width !... |
10d17ab4fc551f088d18e7db7afea6c5983119a8 | update client side filtering | ooiui/static/js/views/aa/StatusAlertTableView.js | ooiui/static/js/views/aa/StatusAlertTableView.js | "use strict";
/*
* ooiui/static/js/views/aa/StatusAlertTableView.js
*/
var StatusAlertTableView = Backbone.View.extend({
bindings: {
},
events: {
},
initialize: function() {
_.bindAll(this, "render");
this.initialRender();
},
initialRender:function(){
this.$el.html('<i class="fa fa... | JavaScript | 0.000001 | @@ -2357,17 +2357,24 @@
ect-all%22
-,
+
%0A %7D
@@ -4529,25 +4529,30 @@
-self.f
+var nameClientF
ilter =
- new
Bac
@@ -4583,16 +4583,761 @@
deFilter
+.extend(%7B %0A makeMatcher: function(query)%7B %0A var q = query;%0A return function (model) %7B%0A var to... |
c1a4156487ce392fdc8ff580ff789ad8e410ebde | replace comment "loads the first 10" with "loads the first chunk" because 10 | packages/articles/server/controllers/articles.js | packages/articles/server/controllers/articles.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
//Article = mongoose.model('Article'),
Place = mongoose.model('Place'),
Feed = mongoose.model('Feed'),
_ = require('lodash');
/**
* Find article by id
*
* heres the deal : dont know how to make a new api call just yet
* so w... | JavaScript | 0.999996 | @@ -3763,10 +3763,13 @@
rst
-10
+chunk
, an
|
197cccb8a2f57f73f16da8dc9c01bef2de2dc775 | Set ttl via destructuring. | assets/js/googlesitekit/datastore/user/surveys.js | assets/js/googlesitekit/datastore/user/surveys.js | /**
* `core/user` data store: Surveys.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICEN... | JavaScript | 0 | @@ -2525,16 +2525,42 @@
iggerID,
+ options = %7B%7D ) %7B%0A%09%09%09const
%7B ttl =
@@ -2566,22 +2566,24 @@
= 0 %7D =
-%7B%7D ) %7B
+options;
%0A%09%09%09cons
@@ -2912,32 +2912,24 @@
cacheHit &&
-options.
ttl ) %7B%0A%09%09%09%09
@@ -3047,24 +3047,16 @@
rror &&
-options.
ttl %3E 0
|
4a0149104763ae3e6fac427bf846e2afb64a636b | Remove unused dependencies | src/sap.ui.core/test/sap/ui/core/qunit/mvc/AsyncJSView.qunit.js | src/sap.ui.core/test/sap/ui/core/qunit/mvc/AsyncJSView.qunit.js | /*global QUnit, sinon */
sap.ui.define([
"./AnyViewAsync.qunit",
"sap/ui/core/mvc/View",
"sap/ui/core/mvc/JSView",
"sap/ui/core/mvc/XMLView",
"sap/base/Log"
], function(asyncTestsuite, View, JSView, XMLView, Log) {
"use strict";
// setup test config with generic factory
var oConfig = {
type : "JS",
factory... | JavaScript | 0.000001 | @@ -113,53 +113,8 @@
iew%22
-,%0A%09%22sap/ui/core/mvc/XMLView%22,%0A%09%22sap/base/Log%22
%0A%5D,
@@ -154,22 +154,8 @@
View
-, XMLView, Log
) %7B%0A
|
7e540cdcc9a31d42bef50ded1aa55c7244b17b25 | Remove obsolete code | packages/babel-generator/src/generators/types.js | packages/babel-generator/src/generators/types.js | import * as t from "babel-types";
import jsesc from "jsesc";
export function Identifier(node: Object) {
if (node.variance) {
if (node.variance.kind === "plus") {
this.token("+");
} else if (node.variance.kind === "minus") {
this.token("-");
}
}
this.word(node.name);
}
export function Re... | JavaScript | 0.999589 | @@ -102,178 +102,8 @@
) %7B%0A
- if (node.variance) %7B%0A if (node.variance.kind === %22plus%22) %7B%0A this.token(%22+%22);%0A %7D else if (node.variance.kind === %22minus%22) %7B%0A this.token(%22-%22);%0A %7D%0A %7D%0A%0A
th
|
a101d923d5b2f91d3d0e519de19ae1b7cbf7a81d | Use the NDK ImageasResized module to resize the image, and then ImageFactory to compress. | Resources/ui/common/questions/PhotoQuestionView.js | Resources/ui/common/questions/PhotoQuestionView.js | var _ = require('lib/underscore')._;
var ButtonView = require('ui/common/components/ButtonView');
//BasicQuestionView Component Constructor
function PhotoQuestionView(question, image) {
var self = Ti.UI.createView({
layout : 'vertical',
height : Titanium.UI.SIZE
});
var pictureButton = new ButtonView('... | JavaScript | 0 | @@ -1833,24 +1833,58 @@
dia = null;%0A
+ path = file.nativePath;%0A
re
@@ -2436,45 +2436,110 @@
-try %7B%0A file.write(ImageFactory.i
+var image_module = require('org.selfkleptomaniac.ti.imageasresized');%0A image = image_module.cameraI
mage
@@ -2558,17 +2558,8 @@
age,
- %7B width:
... |
e2d580b46ed603ede58febc6aa4b1286646d20b1 | Improve the UI of cancelling and completing an order | Resources/private/js/app.js | Resources/private/js/app.js | (function($) {
$.fn.extend({
requireConfirmation: function() {
return this.each(function() {
return $(this).on('click', function(event) {
event.preventDefault();
var actionButton = $(this);
if (actionButton.is('a')) {
$('#confirmation-button').attr('href',... | JavaScript | 0 | @@ -1259,24 +1259,125 @@
e');%0A %7D);
+%0A $('.loadable.button').on('click', function() %7B%0A return $(this).addClass('loading');%0A %7D);
%0A%0A $('%5Bda
|
ffbe17b046e0d26d9280c4bd5f9d45deeb7de784 | Trick React into thinking a container is a class | packages/react-relay/buildReactRelayContainer.js | packages/react-relay/buildReactRelayContainer.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const React = require('React');
const ReactRelayContext = require('./ReactRelayContext');
c... | JavaScript | 0.99792 | @@ -2501,24 +2501,86 @@
(props);%0A %7D
+%0A ContainerConstructor.prototype = React.Component.prototype;
%0A%0A function
|
a65a86115bcb4e65cc62f7eeddd42bdbcf2bda7c | Add handler for null language (when user selects top entry in list) | annotran/static/scripts/directive/language-list.js | annotran/static/scripts/directive/language-list.js | 'use strict';
var events = require('../../../../../h/h/static/scripts/events.js');
var eventsa = require('../events');
// @ngInject
function LanguageListController($scope, $window, languages, groups, pages) {
$scope.addLanguage = function (language) {
if (languages.hasLanguageAlready(language.name) == false)
... | JavaScript | 0 | @@ -246,24 +246,158 @@
language) %7B%0A
+%0A // this will fire when the user selects the top entry in the list (%22Add a new translation%22)%0A if(language == null)%7B return; %7D%0A%0A
if (lang
|
5215032c29b57bed3b64f1b8361a7b6c7146ce6d | update to get total count | app/admin_components/adf-home/dreamfactory-home.js | app/admin_components/adf-home/dreamfactory-home.js | /**
* This file is part of DreamFactory (tm)
*
* http://github.com/dreamfactorysoftware/dreamfactory
* Copyright 2012-2014 DreamFactory Software, Inc. <support@dreamfactory.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | JavaScript | 0 | @@ -3783,24 +3783,31 @@
a('user'
-).length
+, 'meta').count
,%0A
@@ -3870,24 +3870,31 @@
('admin'
-).length
+, 'meta').count
,%0A
@@ -3962,24 +3962,31 @@
service'
-).length
+, 'meta').count
,%0A
@@ -4049,16 +4049,23 @@
app'
-).length
+, 'meta').count
%0A
|
fc350259234726be3e20599876cf986a3b2080d5 | Change scroll tracking configuration | app/assets/javascripts/analytics/scroll-tracker.js | app/assets/javascripts/analytics/scroll-tracker.js | (function() {
"use strict";
window.GOVUK = window.GOVUK || {};
window.GOVUK.Analytics = window.GOVUK.Analytics || {};
var CONFIG = {
'/': [
['Heading', 'Services and information'],
['Heading', 'More on GOV.UK'],
['Percent', 80] //To track 'Services and information' section in f... | JavaScript | 0 | @@ -435,216 +435,53 @@
'/
-foreign-travel-advice/egypt': %5B%0A %5B'Heading', 'Summary'%5D,%0A %5B'Heading', 'Terrorism'%5D,%0A %5B'Heading', 'Sharm el Sheikh'%5D,%0A %5B'Heading', 'Hurghada'%5D,%0A %5B'Heading', 'Protests and demon
+jobsearch': %5B%0A %5B'Heading', 'Regi
stration
s'%... |
015353cda8ac835c336fca787e98e331efa1e1cd | Use plural path id instead of type since type isn't always present | app/assets/javascripts/common/NavigationHelpers.js | app/assets/javascripts/common/NavigationHelpers.js | /*
Copyright 2016 First People's Cultural Council
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 w... | JavaScript | 0.000001 | @@ -2609,25 +2609,24 @@
item);%0A
-%0A
switch (
@@ -2621,16 +2621,19 @@
-switch (
+let type =
sele
@@ -2649,16 +2649,47 @@
', item)
+;%0A%0A switch (pluralPathId
) %7B%0A
@@ -2706,14 +2706,13 @@
se %22
-FVW
+w
ord
+s
%22:%0A
@@ -2732,16 +2732,15 @@
se %22
-FVP
+p
hrase
+s
%22:%0... |
9aa24395aba881bb117ee3513be45d546516cb92 | add support for german keyboard preference | app/components/tool-pallete/toolpallete.element.js | app/components/tool-pallete/toolpallete.element.js | import $ from 'blingblingjs'
import hotkeys from 'hotkeys-js'
import styles from './toolpallete.element.css'
import {
Handles, Label, Overlay, Gridlines,
Hotkeys, Metatip, Ally,
} from '../'
import {
Selectable, Moveable, Padding, Margin, EditText, Font,
Flex, Search, ColorPicker, BoxShad... | JavaScript | 0 | @@ -1746,16 +1746,22 @@
s('cmd+/
+,cmd+.
', e =%3E%0A
|
b17d907e3d57db0991138cc30fbf481595aa39d3 | Check location.path against sidebar link href for active link | admin/public/js/onenorth.js | admin/public/js/onenorth.js | jQuery(function($) {
$('#sidebar-toggle').click(function(e) {
e.preventDefault();
$('body').toggleClass("sidebar-collapse");
});
});
| JavaScript | 0 | @@ -15,16 +15,56 @@
n($) %7B%0A%09
+var path = window.location.pathname;%0A%0A
$('#side
@@ -168,12 +168,162 @@
);%0A%09%7D);%0A
+%0A $('.sidebar-nav a').filter(function(idx, link) %7B%0A if (link.getAttribute('href') === path) %7B%0A link.classList.add('is-active');%0A %7D%0A %7D);%0A%0A
%7D);%0A
|
bc39e7532af2c1e322174663d43877d5a1f2730a | Update Generator | Generator.js | Generator.js | /**
* Module dependencies
*/
var util = require('util');
var _ = require('lodash');
_.defaults = require('merge-defaults');
/**
* sails-generate-humpback-api
*
* Usage:
* `sails generate humpback-api`
*
* @description Generates a humpback-api
* @help See http://links.sailsjs.org/docs/generators
*/
module.... | JavaScript | 0.000001 | @@ -3299,42 +3299,13 @@
: %5B'
-controller'%5D,%0A './': %5B'model'%5D,
+api'%5D
%0A %7D
|
a54c1384381974961f249cd354a071bb1d73b70f | Correct 'watch' task configuration so that it watches main and test sources properly. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: "\n\n"
},
dist: {
src: [
'src/main.js'
],
dest: 'dist/<%= pkg.name.replace(".js", "") %>.js'
}
},
uglify... | JavaScript | 0 | @@ -836,29 +836,37 @@
: %5B'
-dist/angular-weblogng
+src/main.js', 'test/main.spec
.js'
|
0d475db8999cb35655555ca5c5f4668f3f94e569 | Update client_prod build step | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-ts');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('gru... | JavaScript | 0 | @@ -689,24 +689,27 @@
: %5B'client/*
+*/*
.ts'%5D,%0A
|
13d04e1ba4a0081e6691bffdf2373de2143dc564 | tweak demo | demos/cubes.js | demos/cubes.js | var context = require('gl-context')
var fit = require('canvas-fit')
var orbit = require('canvas-orbit-camera')
var extrude = require('extrude')
var time = require('right-now')
var canvas = document.body.appendChild(document.createElement('canvas'))
window.addEventListener('resize', fit(canvas), false)
var gl = context... | JavaScript | 0.000001 | @@ -998,34 +998,33 @@
le: %7Bintensity:
-10
+4
, ambient: 0%7D%0A
|
612330963f909571e49a171b2af4f4bbe9121bf0 | Exclude watch:test from running within the serve task | Gruntfile.js | Gruntfile.js | var modRewrite = require('connect-modrewrite');
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
srcDir: "src",
buildDir: "build",
testDir: "test",
distDir: "dist",
demoDir: "demo",
cl... | JavaScript | 0.000026 | @@ -3332,51 +3332,8 @@
s',%0A
- '%3C%25= testDir %25%3E/%7B,*/%7D*.spec.js',%0A
@@ -5704,16 +5704,72 @@
'watch
+:dist',%0A 'watch:gruntfile',%0A 'watch:livereload
'%0A %5D)
|
20aa5d7376c4fe8aa992aa5cd97ee31a422a88c7 | Update copyright year in Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> Copyright (c) 2014 <%= pkg.author %> under a BSD3 License.*/\n'
},
dist: {
files: {
... | JavaScript | 0 | @@ -226,9 +226,9 @@
201
-4
+5
%3C%25=
@@ -974,8 +974,9 @@
t'%5D);%0A%7D;
+%0A
|
5d59e18c99f53a7b45d5052fc88809736bd6a907 | Add some inline JSHint options in and for the Gruntfile. | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: "build"
}
},
copy: {
build: {
files: [
{
expand: true,
cwd: 'source/',
src: ['client/**/*.html', 'client/**/*.css', 'client/**/*.js', 'server/**'],... | JavaScript | 0 | @@ -1,8 +1,47 @@
+/* jshint node: true, esversion: 6 */%0A%0A
module.e
|
3535bb5e920e3848a9e33b55802904da0c70d28f | Update Gruntfile.js to reflect almond considerations | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
mobileJS: {
options: {
baseUrl: "public/js/app",
wrap: true,
// Cannot use almond since it does not cu... | JavaScript | 0 | @@ -267,37 +267,36 @@
//
-Canno
+Don'
t use almond sin
@@ -296,76 +296,57 @@
ond
-since it does not currently appear to support requireJS's config-map
+if your project needs to load modules dynamically
%0A
@@ -1413,24 +1413,101 @@
: %22en_us%22,%0A%0A
+ // options object which ... |
d2c53d3500da3786113ad7b3bceb17686024cdc1 | Fix load image when on SSR using exenv lib to validates the environment #438 | client/mobrender/components/mobilization.js | client/mobrender/components/mobilization.js | import React, { PropTypes } from 'react'
import classnames from 'classnames'
import { Link } from 'react-router'
import Block from './block.connected'
import { Navbar } from '~client/mobilizations/components/navbar'
class Mobilization extends React.Component {
componentDidMount () {
const { editable, mobiliza... | JavaScript | 0 | @@ -34,16 +34,62 @@
'react'%0A
+import %7B browserHistory %7D from 'react-router'%0A
import c
@@ -127,35 +127,25 @@
ort
-%7B Link %7D from 'react-router
+exenv from 'exenv
'%0A%0Ai
@@ -246,16 +246,54 @@
navbar'%0A
+import * as paths from '~client/paths'
%0A%0Aclass
@@ -630,132 +630,8 @@
: %7B%0A
- name,... |
c85abe53877a265ce12f8f93235975cb73e12d0e | fix syntax errors in gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
var jsFiles = 'public/js/**/*.js';
var testFiles = 'test/**/*.js';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: true
},
all: ['Gruntfile.js', jsFiles, te... | JavaScript | 0.000002 | @@ -890,24 +890,25 @@
%7D%0A %7D
+,
%0A watch:
@@ -1433,16 +1433,17 @@
:server'
+,
'protra
|
a886b663f88dd5b923625cbb5d52e7c959c202b3 | tweak Gruntfile - for some reason pointing actually at the .jshintrc file works better than just saying "true". | Gruntfile.js | Gruntfile.js | /**
* Copyright 2015 IBM Corp.
*
* 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 wr... | JavaScript | 0 | @@ -1043,20 +1043,20 @@
trc:
-true
+%22.jshintrc%22,
//
@@ -2058,18 +2058,16 @@
-//
%22reporte
@@ -2753,16 +2753,146 @@
*.html'%5D
+,%0A options: %7B%0A jshintrc:%22.jshintrc%22,%0A %22reporter%22: require('jshint-stylish')%0A %7D
%0A
|
93731419187aa736d09ab2d4618c7dea8022a585 | use different ports than p5.js-website for watch and connect | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Configure style consistency
eslint: {
source: {
options: {configFile: './src/.eslintrc'},
src: ['src/**/*.js']
}
},
watch: {
// p5 dist
main: {
files... | JavaScript | 0 | @@ -380,16 +380,26 @@
tions: %7B
+%0A
liverel
@@ -407,14 +407,56 @@
ad:
-true %7D
+%7B%0A port: 35728%0A %7D%0A %7D,
%0A
@@ -4715,16 +4715,45 @@
: 8000,%0A
+ livereload: 35727,%0A
|
57bc84327b35711a54e360a1b6bc0f795e34d173 | remove safari 7 | Gruntfile.js | Gruntfile.js | var request = require('request');
var safari_browsers = [
{
browserName: 'safari',
platform: 'OS X 10.10',
version: '8.0'
},
{
browserName: 'safari',
platform: 'OS X 10.9',
version: '7.0'
}
];
var chrome_browsers = [
{
browserName: 'chrome',
platform: 'OS X 10.10',
version: '44.0'
},
{
brow... | JavaScript | 0.000253 | @@ -127,82 +127,8 @@
.0'%0A
-%09%7D,%0A%09%7B%0A%09%09browserName: 'safari',%0A%09%09platform: 'OS X 10.9',%0A%09%09version: '7.0'%0A
%09%7D%0A%5D
|
8da8c6ac810209b2680651584a23286c8c821bf1 | add ability to deploy multiple staging libraries | Gruntfile.js | Gruntfile.js | module.exports = function runGrunt(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
wrap: {
stage: {
src: ['dist/dd-manager.js'],
dest: 'dist/dd-manager.js',
options: {
wrapper: ['(function () { var define = undefined;', ... | JavaScript | 0 | @@ -37,16 +37,305 @@
runt) %7B%0A
+ const ddmNameSrc = 'dd-manager.js';%0A const ddmMinNameSrc = 'dd-manager.min.js';%0A const staging = parseInt(grunt.option('staging'), 10);%0A const ddmName = staging ? %60dd-manager-$%7Bstaging%7D.js%60 : ddmNameSrc;%0A const ddmMinName = staging ? %60dd-manager-$%7Bstaging%7D... |
cfc9e270a854e16ae5b30c317e9b990993388bdb | Add build task | Gruntfile.js | Gruntfile.js | /*jshint node: true, camelcase: false */
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-concat');
... | JavaScript | 0.000388 | @@ -457,17 +457,16 @@
asks');%0A
-%09
%0A%0A%09grunt
@@ -1899,97 +1899,128 @@
sk('
-default', %5B'concat', 'sample'%5D);%0A%09grunt.registerTask('sample', %5B'jasmine', 'mocha', 'quni
+sample', %5B'jasmine', 'mocha', 'qunit'%5D);%0A%09grunt.registerTask('default', %5B'build'%5D);%0A%09grunt.registerTask('build', %5B... |
41f52473dc88c7ac0dcaa80f056eb2c52256579b | add tinymce modern theme in builder.js | builder.js | builder.js | /**
* builder.js
*
* @author Nicolas CARPi <nicolas.carpi@curie.fr>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
* @license AGPL-3.0
* @package elabftw
*
* Config file for webpack
*
* This is in fact webpack.config.js but I renamed it builder.js
* because I don't want any ... | JavaScript | 0 | @@ -811,16 +811,59 @@
tinymce'
+,%0A 'tinymce/themes/modern/theme'
%0A
|
f52649eb9ee6dc4f5b83fcb00e63f973e45b9eba | Add Courier to the build process for distro | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
var path = require('path')
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkgMeta: grunt.file.readJSON('config/meta.json'),
dest: grunt.option('target') || 'dist',
basePath: path.join('<%= dest %>', 'App_Plugins'... | JavaScript | 0 | @@ -4084,32 +4084,90 @@
.Umbraco.csproj'
+, 'app/Umbraco/Umbraco.Archetype/Archetype.Courier.csproj'
%5D,%0A filen
@@ -4967,32 +4967,89 @@
.Umbraco.csproj'
+,'app/Umbraco/Archetype.Courier/Archetype.Courier.csproj'
%5D,%0A optio
|
e0728644a37d37a32e07fc4b6cddc0dbb0f87897 | Fix build. | Gruntfile.js | Gruntfile.js | /*
* grunt-available-tasks
* https://github.com/ben-eb/grunt-available-tasks
*
* Copyright (c) 2013 Ben Briggs
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
jscs: {
source: [
... | JavaScript | 0 | @@ -1581,44 +1581,8 @@
s',%0A
- 'package.json',%0A
|
f586555b4004eb1863c1cc2763028c9a5a0f5871 | Exit uncleanly from the grunt process if protractor returns a non-zero exit code | tasks/protractor_simple.js | tasks/protractor_simple.js | /*
* grunt-protractor-simple
* https://github.com/boroth/grunt-protractor-simple
*
* Copyright (c) 2013 Bo Roth
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com... | JavaScript | 0.000002 | @@ -1457,16 +1457,28 @@
+ var child =
shell.e
@@ -1507,16 +1507,16 @@
lepath,%0A
-
@@ -1646,16 +1646,112 @@
);%0A
+ if ( child.code != 0 ) %7B%0A process.exit(1);%0A %7D%0A
@@ -1936,6 +1936,7 @@
);%0A%0A
-
%7D;
+%0A
|
9a386e7336ba9445bd0162baa852fb287a80c83c | update test case, OK button under calendar should not clickable | components/date-picker/__tests__/showTime.test.js | components/date-picker/__tests__/showTime.test.js | import React from 'react';
import { mount } from 'enzyme';
import DatePicker from '..';
const { RangePicker } = DatePicker;
describe('DatePicker with showTime', () => {
it('should trigger onChange when select value', () => {
const onChangeFn = jest.fn();
const onOpenChangeFn = jest.fn();
const wrapper =... | JavaScript | 0.00001 | @@ -52,16 +52,45 @@
nzyme';%0A
+import moment from 'moment';%0A
import D
@@ -1083,32 +1083,64 @@
onOpenChangeFn%7D%0A
+ defaultValue=%7Bmoment()%7D%0A
/%3E,%0A );
|
1b9ca1460f4e06d2b1d3f9415b5225628325da92 | Change exec:fonts grunt task's command to be a slightly more legible | Gruntfile.js | Gruntfile.js | require('js-yaml');
var path = require('path');
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-exec');
grunt.initConfig({
paths: re... | JavaScript | 0.000001 | @@ -1466,16 +1466,30 @@
dest %25%3E%60
+',%0A '
&& ',%0A
@@ -1501,30 +1501,16 @@
'cp
-',%0A '
%3C%25= path
@@ -1552,16 +1552,19 @@
'
+
%3C%25= path
|
992f47569e4065d10f71740912d5f95e658d8369 | add JS files, min and dev | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: "\n\n\n"
},
css: {
src: [
'client-src/css/responsive.gs.12col.css',
'client-src/css/app.css',
... | JavaScript | 0 | @@ -1076,171 +1076,600 @@
lar.
-min.js', dest: 'client/js/angular.min.js' %7D,%0A %7Bsrc: 'bower_components/angular-animate/angular-animate.min.js', dest: 'client/js/angular-animate.min.js' %7D,
+js', dest: 'client/js/angular.js' %7D,%0A %7Bsrc: 'bower_components/angular/angular.min.js', dest: 'clien... |
8655b567c0fa26839e3acb3507dc401ae9791f1b | exclude options | tasks/styleguide_colors.js | tasks/styleguide_colors.js | /*
* grunt-styleguide-colors
* https://github.com/webdesignberlin/grunt-styleguide-colors
*
* Copyright (c) 2016 Michael Gerstmann
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// generate markup via color definition file(s)
var getMarkup = require('../generatemarkup... | JavaScript | 0.001279 | @@ -317,16 +317,62 @@
rkup');%0A
+ var defaultOptions = require('../options');%0A
%0A //
@@ -726,294 +726,22 @@
ons(
-%7B%0A separator: ',',%0A headline: 'Colors',%0A markup: %7B%0A wrapper: 'section',%0A html: %60 %0A %3Cdiv class=%22sg-colors__definition%22%3E%0A %3Cdiv class... |
8581d967f299fd170026602ef1e6b8585f1246d3 | correct typo in artifact file name | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
lib: {
src: ["lib/"]
}
},
uglify: {
options: {
sourceMap: true,
banner: '\n/*!\n <%= pkg.name %> - v<%= pkg.version %>\n origin: https://github.com/jus... | JavaScript | 0.000046 | @@ -1224,16 +1224,19 @@
ble.min.
+js.
map'%0A
|
3a0ba80bbc5d85259e8b5831fc0ea4c2a9dbb5d6 | check inLocation | client/welcome.js | client/welcome.js | offCampus = {
"name":"off campus",
"nickname":"off campus",
"function":"There's lots to do off campus but unfortunately I can't tell you all that much about it."
}
Template.welcome.helpers({
inLocation: function () {
var name = Locations.findOne({ "name": Session.get("inLocation")[0].name }).name;
if (Session.... | JavaScript | 0 | @@ -211,24 +211,66 @@
nction () %7B%0A
+%09%09console.log(Session.get(%22inLocation%22));%0A
%09%09var name =
|
ff22dae60653b786b32e5018a6d346090f9d8109 | Fix null error. | server/controllers/job.js | server/controllers/job.js | let Jobs = require('../models/job');
const makeDate = (daysAdjustment) => {
let currentTime = new Date();
currentTime.setDate(currentTime.getDate()+daysAdjustment);
return currentTime;
}
const myResources = [
];
const mapItem = (item) => {
return {
ID : item._id,
jobPosition : item.jobPosition,
c... | JavaScript | 0.000001 | @@ -874,17 +874,16 @@
%3E %7B%0A%7D;%0A%0A
-%0A
module.e
@@ -998,16 +998,71 @@
w err;%0A%0A
+%09 if (!job.resources) %7B%0A %09 job.resources = %5B%5D;%0A %09%7D%0A%0A
%09 job.r
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.