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 |
|---|---|---|---|---|---|---|---|
aa3bddfe77d9d73831f48b440a4d3bca41fa2c0c | Check there is a content-type header and catch other 200 responses | src/app/utilities/http-methods/request.js | src/app/utilities/http-methods/request.js | import { HttpError } from './error';
import log, { eventTypes } from '../log';
import uuid from 'uuid/v4';
import user from '../api-clients/user';
import notifications from '../notifications';
/**
*
* @param {string} method - must match an HTTP method (eg "GET")
* @param {string} URI - URI to make a request to
* ... | JavaScript | 0 | @@ -2214,22 +2214,20 @@
response
-IsJSON
+Type
= respo
@@ -2249,32 +2249,96 @@
('content-type')
+;%0A const responseIsJSON = responseType ? responseType
.match(/applicat
@@ -2348,16 +2348,24 @@
%5C/json/)
+ : false
;%0A
@@ -2405,36 +2405,27 @@
onse
-.headers.get('content-t
+Type ? responseT
yp... |
703e243609aa5ac39a94fbfe9991133721ad9690 | add cookie path. | app/assets/javascripts/application/articles/edit.js | app/assets/javascripts/application/articles/edit.js | //= require editor
var ArticleEdit = function() {
this.editor = new Editor({
toolbar: '#toolbar',
editable: '#editarea article'
});
this.article = $('#editarea article');
this.connect('#urlname-form', 'submit', this.saveUrlname);
this.connect('#save-button', 'click', this.saveArticle);
this.conne... | JavaScript | 0 | @@ -5368,24 +5368,47 @@
opbar', true
+, %7B path: '/articles' %7D
);%0A %7D els
@@ -5444,24 +5444,48 @@
k_up_topbar'
+, %7B path: '/articles' %7D
);%0A %7D%0A %7D
|
44230efdbea44ccbdd1449c4aa87d7cd77e316ec | Move count assert to end for debugging | test/watcher.js | test/watcher.js | var assert = require('assert'),
fs = require('fs'),
lib = require('./lib'),
watcher = require('../lib/watcher'),
wrench = require('wrench');
if (!fs.watch) {
// Watch is unsupported on 0.4 and earlier, no tests for this case
return;
}
describe('watcher', function() {
var outdir;
before(functi... | JavaScript | 0 | @@ -1197,40 +1197,8 @@
) %7B%0A
- assert.equal(1, ++count);%0A
@@ -1305,32 +1305,64 @@
sourceChange);%0A
+ assert.equal(1, ++count);%0A
done();%0A
@@ -3938,40 +3938,8 @@
) %7B%0A
- assert.equal(1, ++count);%0A
@@ -4042,32 +4042,64 @@
sourceChange);%0A
+ assert.equal(1, ++c... |
342f743035bc40dbe395b1eaf5c7a2898644d1d7 | Write moveLeft function | js/application.js | js/application.js | $(document).ready(function() {
var Game = function(givenBoard) {
function getRandomIndex(maxExclusive) {
return Math.floor(Math.random() * maxExclusive)
}
function randomBoard() {
var board = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
var index1 = getRandomIndex(16)
var index2 = index1
... | JavaScript | 0.004426 | @@ -1194,58 +1194,8 @@
) %7B%0A
- var workingBoard = createWorkingBoard(board)%0A%0A
@@ -1210,24 +1210,17 @@
0; i %3C
-workingB
+b
oard.len
@@ -1253,24 +1253,17 @@
0; j %3C
-workingB
+b
oard%5Bi%5D.
@@ -1289,24 +1289,17 @@
if (
-workingB
+b
oard%5Bi%5D%5B
@@ -1320,24 +1320,17 @@
-worki... |
f59a27cfa37667aa69287890a88c28f966b51148 | use Id for keeping track of last seen in scrape.js; tweak code | scrape.js | scrape.js | #!/usr/bin/env node
const fs = require('fs');
const cacheFile = 'cache/last-seen-committees.json';
const Browser = require('zombie');
const browser = new Browser({waitDuration: '30s'});
browser.visit('https://efiling.ocf.dc.gov/Disclosure')
.then(getTypes)
.then(getLastSeen)
.then(findNewRecords);
functi... | JavaScript | 0 | @@ -1000,43 +1000,27 @@
-const types = Object.keys(lastSeen)
+let changed = false
;%0A
@@ -1028,37 +1028,70 @@
for (const
+%5B
type
- of types
+, lastSeenId%5D of Object.entries(lastSeen)
) %7B%0A
@@ -1151,22 +1151,18 @@
lastSeen
-%5Btype%5D
+Id
);%0A
@@ -1257,230 +1257,186 @@
%5D =
-getR... |
10e56fbae14f6d060a2dfa01576c001247a8593c | fix openInStyleboard href in embed mode | scripts/styleboard.js | scripts/styleboard.js | require(['Parser', 'Context', 'Example',
'TabbedFrameView', 'DictionaryView', 'RenderedView', 'MarkupView', 'RulesView',
'FooterView', 'SettingsView', 'appState'],
function( Parser, Context, Example,
TabbedFrameView, DictionaryView, RenderedView, MarkupView, RulesView,
FooterView, ... | JavaScript | 0 | @@ -3014,15 +3014,13 @@
.get
-('name'
+Name(
);%0A
@@ -3099,17 +3099,16 @@
+ '/' +
-(
example.
@@ -3114,46 +3114,13 @@
.get
-('slug') %7C%7C example.get('index') %7C%7C ''
+Name(
);%0A
|
41e0329a9ed87371c96dba105cb61206f9198192 | Check for updates to episode on item save. | opal/static/js/opal/controllers/edit_item.js | opal/static/js/opal/controllers/edit_item.js | angular.module('opal.controllers').controller(
'EditItemCtrl', function($scope, $cookieStore, $timeout,
$modalInstance, $modal,
ngProgressLite,
profile, item, options, episode) {
$scope.profile = profile;
$scope.... | JavaScript | 0 | @@ -153,16 +153,20 @@
$modal,
+ $q,
%0A
@@ -302,16 +302,51 @@
rofile;%0A
+ $scope._episode = episode;%0A
@@ -3062,22 +3062,39 @@
tart();%0A
-%09%09
+ to_save = %5B
item.sav
@@ -3110,16 +3110,205 @@
editing)
+%5D;%0A if(!angular.equals($scope._episode.makeCopy(), $s... |
a90052b0d20903928ba0e4bec9efaed6c922ee71 | Revert "指摘修正" | lib/runtime/components/questions/MultiNumberQuestion.js | lib/runtime/components/questions/MultiNumberQuestion.js | /* eslint-env browser */
import React from 'react';
import { connect } from 'react-redux';
import S from 'string';
import classNames from 'classnames';
import { parseInteger } from '../../../utils';
import TransformQuestion from './TransformQuestion';
import MultiNumberQuestionState from '../../states/MultiNumberQuesti... | JavaScript | 0 | @@ -1283,16 +1283,28 @@
%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81
+setTimeout%E3%81%97%E3%81%A6
nextTick
@@ -1595,16 +1595,22 @@
%7D%0A %7D
+, true
);%0A %7D%0A%0A
|
6a120500b964567a9efdb55f9cdb58042e5b5d6d | Fix flot y-axis format | js/charts/flot.js | js/charts/flot.js | ds.charts = ds.charts || {}
/**
* Chart provider for rendering dashboard chart with flot, which
* provides Canvas-based interactivity.
*/
ds.charts.flot =
(function() {
var self = {}
self.CHART_IMPL_TYPE = 'flot'
function get_default_options() {
var theme_colors = ds.charts.util.get_colors()
... | JavaScript | 0.999878 | @@ -885,47 +885,14 @@
t(',
+.
3s'),
- /* TODO: get from item options */
%0A
@@ -1005,43 +1005,8 @@
lor%0A
- // axisLabel: 'Things'%0A
@@ -1037,19 +1037,16 @@
- //
tickFor
@@ -1057,28 +1057,25 @@
er:
-opendash.format_kmbt
+d3.format(',.3s')
,%0A
|
2c40cbe92c48c17376ffc553d7b0919eab94a328 | Update namespace | lib/node_modules/@stdlib/math/iter/special/lib/index.js | lib/node_modules/@stdlib/math/iter/special/lib/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000001 | @@ -2503,32 +2503,236 @@
ial/atan' ) );%0A%0A
+/**%0A* @name iterAtanh%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/math/iter/special/atanh%7D%0A*/%0AsetReadOnly( ns, 'iterAtanh', require( '@stdlib/math/iter/special/atanh' ) );%0A%0A
/**%0A* @name iter
|
d1d7e49caf894708d52a5e5c5de7637006236bb3 | reduce maxResult for yutup query | js/controllers.js | js/controllers.js |
angular.module('myApp')
// Controller
.controller('VideosController', function ($scope, $http, $log, VideosService) {
init();
function init() {
$scope.youtube = VideosService.getYoutube();
$scope.results = VideosService.getResults();
$scope.history = VideosService.getHistory();
}
... | JavaScript | 0.998291 | @@ -809,26 +809,16 @@
%3E i) %7B%0A
-
%0A
@@ -1075,33 +1075,33 @@
maxResults: '
-5
+3
0',%0A
@@ -3964,33 +3964,33 @@
maxResults: '
-5
+1
0',%0A pa
@@ -4607,33 +4607,33 @@
maxResults: '
-5
+1
0',%0A
@@ -6157,9 +6157,9 @@
s: '
-5
+1
0',%0A
|
c5e4274e3f8b8d09dcf6ea10da0d72eae83ad233 | fix backend | backend/server.js | backend/server.js | if(!process.argv[2]) {
console.error('usage: node ' + process.argv[1] + ' <port>');
process.exit(1);
}
var express = require('express'),
bodyParser = require('body-parser'),
app = express(),
actions = [],
tasks = [],
port = parseInt(process.argv[2]);
function pushAction(id, action) {
if(!actio... | JavaScript | 0.000001 | @@ -563,30 +563,28 @@
id) %7B%0A if(!
-action
+task
s%5Bid%5D) retur
@@ -599,30 +599,28 @@
else return
-action
+task
s%5Bid%5D;%0A%7D%0A%0Aap
|
9256b816c23d7700ea81190933959d356ce5842d | FIX storybook config | .storybook/webpack.config.js | .storybook/webpack.config.js | var path = require('path');
module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
loaders: ['react-hot-loader', 'babel-loader'],
include: [path.join(__dirname, 'src')],
// include: [path.join(__dirname, 'src'), path.join(__dirname, 'example')]
},
],
},
};
| JavaScript | 0.000001 | @@ -43,47 +43,84 @@
s =
-%7B%0A module: %7B%0A rules: %5B%0A
+async (%7B config %7D) =%3E %7B%0A console.log(config);%0A config.module.rules.push(
%7B%0A
-
@@ -140,20 +140,16 @@
jsx)$/,%0A
-
load
@@ -191,20 +191,16 @@
ader'%5D,%0A
-
incl
@@ -239,20 +239,16 @@
)%5D,%0A
-... |
b56f103a74999701d4aa65b596be8754b908fa1d | Enable flow type check | template-create-react-app/src/App.js | template-create-react-app/src/App.js | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... | JavaScript | 0.000001 | @@ -1,12 +1,22 @@
+// @flow%0A%0A
import React
@@ -97,16 +97,34 @@
.css';%0A%0A
+type Props = %7B%7D;%0A%0A
class Ap
@@ -142,16 +142,23 @@
omponent
+%3CProps%3E
%7B%0A ren
|
656f3bab9d96e1803243e4772846b84b5544dfb4 | Fix formatting for nightwatch configuration | template/test/e2e/nightwatch.conf.js | template/test/e2e/nightwatch.conf.js | require('babel-register')
var config = require('../../config')
// http://nightwatchjs.org/gettingstarted#settings-file
module.exports = {
src_folders: ['test/e2e/spec'],
output_folder: 'test/e2e/report',
selenium: {
start_process: true,
server_path: require('selenium-server').path,
host: '127.0.0.1'... | JavaScript | 0.000002 | @@ -132,16 +132,18 @@
rts = %7B%0A
+
src_fo
@@ -170,16 +170,18 @@
ec'%5D,%0A
+
+
output_f
@@ -207,16 +207,18 @@
port',%0A%0A
+
seleni
@@ -219,24 +219,28 @@
selenium: %7B%0A
+
start_pr
@@ -256,16 +256,20 @@
ue,%0A
+
+
server_p
@@ -306,16 +306,20 @@
).path,%0A
+
host
@@ -33... |
34d8e20727528031c51f36d093f27fe51d763b71 | Update navigation bar docs | packages/bpk-docs/src/pages/NavigationBarPage/NavigationBarPage.js | packages/bpk-docs/src/pages/NavigationBarPage/NavigationBarPage.js | /*
* Backpack - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | JavaScript | 0 | @@ -3502,21 +3502,30 @@
ith
-icon in title
+a custom title element
',%0A
|
47b2a110029f22fbd2e3d6c46fb3b44ffdda53c4 | Update field 'fullName' when user updates its profile | public/app/services/user.service.js | public/app/services/user.service.js | (function () {
'use strict';
angular
.module('PLMApp')
.factory('userService', userService)
.run(function (userService) {}); // To instanciate the service at startup
userService.$inject = ['$timeout', '$cookies', 'connection', 'listenersHandler', '$auth', 'toasterUtils', 'gettextCatalog'];
functi... | JavaScript | 0.000001 | @@ -2159,32 +2159,95 @@
wUser.lastName;%0A
+ user.fullName = user.firstName + ' ' + newUser.lastName;%0A
user.track
|
39c5a39bff9a8feca89663195c4d7d2f02b7e30a | Improve infoContent.js | js/infoContent.js | js/infoContent.js | define(['text!../views/infoContent.html', 'utils', 'jquery'], function(html, utils, $) {
'use strict';
var _infoContent = function(posts) {
var container = document.getElementById('container');
if (!utils._isUnd(posts) && !utils._isUnd(html)) {
container.innerHTML = html;
... | JavaScript | 0 | @@ -1906,44 +1906,201 @@
-postsContainer.appendChild(subDiv);%0A
+utils._appendArr(miniPanel, %5Btitle, link, postsContainer%5D);%0A postsContainer.appendChild(subDiv);%0A %7D%0A%0A window.setTimeout(function() %7B
%0A
@@ -2625,24 +2625,67 @@
te('d... |
e161e4763e39a5f306dfed015c7f488ae9be0d29 | Fix child process termination in Electron app | KenticoInspector.DesktopApplication/main.js | KenticoInspector.DesktopApplication/main.js | // Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
const { spawn } = require('child_process');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript... | JavaScript | 0.000004 | @@ -2056,77 +2056,10 @@
path
-, %5B%5D, %7B shell: true %7D);%0A //apiProcess = child_process.exec(apipath,
)
+;
%0A%0A
@@ -2113,22 +2113,22 @@
iteLog(%60
-stdout
+Server
: $%7Bdata
@@ -2238,22 +2238,18 @@
its%0A
-process
+app
.on('
-ex
+qu
it',
@@ -2289,62 +2289,24 @@
;%0A
-spawn(%22taskkill%22, %5B%22/p... |
ebd2eeebbb1a3854dcd9a5fa14cdbee386e0ce63 | add possibility to stub intl messages | packages/core/tocco-test-util/src/testingLibrary/testingLibrary.js | packages/core/tocco-test-util/src/testingLibrary/testingLibrary.js | import {render} from '@testing-library/react'
import PropTypes from 'prop-types'
import {IntlProvider} from 'react-intl'
import {Provider} from 'react-redux'
import TestThemeProvider from '../TestThemeProvider'
const defaultLocale = 'en'
const locale = defaultLocale
const IntlProviderWrapper = ({children}) => {
co... | JavaScript | 0 | @@ -285,32 +285,51 @@
iderWrapper = (%7B
+intlMessages = %7B%7D,
children%7D) =%3E %7B%0A
@@ -387,16 +387,40 @@
Provider
+ messages=%7BintlMessages%7D
onError
@@ -622,16 +622,50 @@
ypes.any
+,%0A intlMessages: PropTypes.object
%0A%7D%0Aconst
@@ -698,16 +698,18 @@
ions) =%3E
+%0A
render(
@@ -705,32 +705,37 ... |
39afac0e3358b20106a32b41e9d663742c0f89f8 | Update flushReadings.js | mainRPi/sockets/serverSocket/functions/flushReadings.js | mainRPi/sockets/serverSocket/functions/flushReadings.js | var fs=require('fs');
var async=require('../../../async');
var constants= require('../../../constants.js');
var envVariables=require('../../../envVariables.js');
var Reading=require('../../../server/models/reading.js');
module.exports=function(socket){
var i=0;
var j=0;
async.whilst(function(){i<docs... | JavaScript | 0 | @@ -43,16 +43,19 @@
./../../
+../
async');
@@ -88,16 +88,19 @@
./../../
+../
constant
@@ -142,16 +142,19 @@
./../../
+../
envVaria
@@ -194,16 +194,19 @@
./../../
+../
server/m
|
6147d24ea622f261d3c29c250ddf2a662b1140dc | update the program of problem 661 | problems/661_image-smoother/index.js | problems/661_image-smoother/index.js | /**
* Problem: https://leetcode.com/problems/image-smoother/description/
*/
/**
* @param {number[][]} M
* @return {number[][]}
*/
var imageSmoother = function(M) {
const result = [];
for (let i = 0; i < M.length; i++) result.push([]);
const { floor } = Math;
const calc = (i, j) => {
let count = 1;
... | JavaScript | 0.000001 | @@ -346,36 +346,46 @@
if (M%5Bi - 1%5D
- &&
+) %7B%0A if (
M%5Bi - 1%5D%5Bj - 1%5D
@@ -399,32 +399,34 @@
efined) %7B%0A
+
count++;%0A s
@@ -416,32 +416,34 @@
count++;%0A
+
+
sum += M%5Bi - 1%5D%5B
@@ -446,34 +446,38 @@
1%5D%5Bj - 1%5D;%0A
-%7D%0A
+ %7D%0A
if (M%5Bi -... |
d8ea804ef70a95a70883c3ca75fa790b4645ce9c | add menu option for dependency output | legaleseMain.js | legaleseMain.js | /* legaleseMain MANIFEST
*
* inside a legaleseMain project file you will find multiple scripts:
* legaleseMain
* controller
* svg
* owl
* esop
* captable
* form
* format
* lingua
* unused
* templates
* readrows
*
* these subsidiary modules represent chunks of functionality that reside in separate files ... | JavaScript | 0.000001 | @@ -2751,16 +2751,87 @@
ncies%22)%0A
+ %09.addItem(%22Do Dependency Thing%22, %22legaleseMain.depWriteForceLayout%22)%0A
//
|
29a8de6383b2f4b606d6edfe9c2c06e1be229145 | Switch os | Nightwatchfile.js | Nightwatchfile.js | module.exports = {
src_folders: ['./tests/spec'],
output_folder: './results',
custom_assertions_path: '',
globals_path: './globals.json',
live_output: true,
selenium: {
start_process: true,
server_path: './node_modules/selenium-server/lib/runner/selenium-server-standalone-2.44.0.jar',
log_path:... | JavaScript | 0.000001 | @@ -431,16 +431,21 @@
modules/
+.bin/
chromedr
@@ -452,44 +452,116 @@
iver
-/lib/
+.cmd', // in windows%0A // 'webdriver.
chrome
+.
driver
-/chromedriver.exe',
+': './node_modules/.bin/chromedriver', // in mac
%0A
@@ -1027,16 +1027,96 @@
refox',%0A
+ // browserName: 'internet explorer',%0A ... |
b82d6ab0b1c499841ccc463c99ef7f50be39681a | call onClick, onChange after setState (#362) | src/components/NumberInput/NumberInput.js | src/components/NumberInput/NumberInput.js | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from '../Icon';
import classNames from 'classnames';
export default class NumberInput extends Component {
static propTypes = {
className: PropTypes.string,
disabled: PropTypes.bool,
iconDescription: PropTypes.string... | JavaScript | 0 | @@ -1216,36 +1216,47 @@
t.value,%0A %7D
-);%0A%0A
+, (evt) =%3E %7B%0A
this.props
@@ -1263,32 +1263,43 @@
.onChange(evt);%0A
+ %7D);%0A%0A
%7D%0A %7D;%0A%0A ha
@@ -1840,28 +1840,39 @@
lue,%0A %7D
-);%0A%0A
+, (evt) =%3E %7B%0A
this.p
@@ -1892,24 +1892,26 @@
evt);%0A
+ ... |
4c8db689134f35e4f2f7623ed042912b953d533e | remove test output | packages/login/src/components/TwoStepLoginForm/TwoStepLoginForm.js | packages/login/src/components/TwoStepLoginForm/TwoStepLoginForm.js | import React, {Component} from 'react'
import {FormattedMessage, intlShape} from 'react-intl'
import * as Tocco from 'tocco-ui'
import '../Login/styles.scss'
export class TwoStepLoginForm extends Component {
constructor(props) {
super(props)
this.state = {
userCode: ''
}
}
handleSubmit(e) {
... | JavaScript | 0.000009 | @@ -1382,65 +1382,8 @@
iv%3E%0A
- %3Cspan%3ETEST: %7Bthis.props.loginPending%7D%3C/span%3E%0A
|
1410a6781d119ac65b74e4d2f1ab285ce5d444e6 | Allow xr-spatial-tracking for websurfaces | scripts/websurface.js | scripts/websurface.js | elation.require(['engine.things.generic'], function() {
elation.component.add('engine.things.januswebsurface', function() {
this.postinit = function() {
elation.engine.things.januswebsurface.extendclass.postinit.call(this);
this.defineProperties({
websurface_id: { type: 'string' },
ima... | JavaScript | 0.000001 | @@ -3672,10 +3672,27 @@
= '
-vr
+xr-spatial-tracking
';%0A
|
91aff21681fb8ab808baacefa3fc57c4b967a18e | Stop enforcing defaultValue to be defined in SearchInput | src/components/SearchInput/SearchInput.js | src/components/SearchInput/SearchInput.js | import React from 'react'
import PropTypes from 'prop-types'
import styles from './SearchInput.scss'
class SearchInput extends React.PureComponent {
static propTypes = {
placeholder: PropTypes.string,
defaultValue: PropTypes.string.isRequired,
hasButton: PropTypes.bool,
buttonLabel: PropTypes.strin... | JavaScript | 0 | @@ -236,27 +236,16 @@
s.string
-.isRequired
,%0A%0A h
@@ -408,16 +408,38 @@
rcher%E2%80%A6',
+%0A defaultValue: '',
%0A%0A ha
|
f24fe75b9929e581efd4ed266fa564f5f3ed4115 | Add await arround callback in api gateway proxy | lib/middleware/apiGatewayProxy/apiGatewayProxy.js | lib/middleware/apiGatewayProxy/apiGatewayProxy.js | const smash = require("../../../smash.js");
const logger = smash.logger("ApiGatewayProxy");
const errorUtil = new smash.SmashError(logger);
const Next = require("./lib/next.js");
const Request = require("./lib/request.js");
const Response = require("./lib/response.js");
const Router = require("./lib/router.js");
const ... | JavaScript | 0 | @@ -1766,32 +1766,38 @@
%7D%0A %7D%0A%0A
+async
handleRequest(re
@@ -3398,16 +3398,22 @@
+await
request.
|
1e766b221a7d6bce51652109491b3767aa5ca368 | increase slideshow speed | script.js | script.js | $(document).ready(function () {
$(this).scrollTop(0);
$(".modal").modal();
if (location.hash.length > 0) {
if ("#imprint" === location.hash) {
M.Modal.getInstance($("#imprint-modal")).open();
}
}
$(".language").click(function () {
window.open("https://google.com... | JavaScript | 0 | @@ -2271,18 +2271,18 @@
ySpeed:
+3
5
-0
00,%0A
|
49f615523f7d4b666e6d321f682af3fbe7f63114 | remove space modernizrTest.js line 11 | troposphere/static/js/components/modals/unsupported/modernizrTest.js | troposphere/static/js/components/modals/unsupported/modernizrTest.js | var modernizr = require('lib/modernizr-latest.js'),
_ = require('underscore');
var features = modernizr;
var requiredFeatures = [
//this we know we don't have support
//'regions',
//'microdata',
//'proximity',
//'display-runin',
// 'mathml',
//'da... | JavaScript | 0.000157 | @@ -289,17 +289,16 @@
//
-
'mathml'
|
4849e040f8b63b7d2ef6564f7d89d3af37108382 | make suggested changes | filesdk/index.js | filesdk/index.js | "use strict";
const fs = require('fs');
const q = require('q');
const rimraf = require('rimraf');
const extract = require('extract-zip')
const targz = require('targz');
const ncp = require('ncp').ncp;
ncp.limit = 16;
/* working */
let readFile = (path) => {
let defer = q.defer();
fs.readFile(path, 'utf8', fun... | JavaScript | 0.000016 | @@ -212,30 +212,16 @@
= 16;%0A%0A
-/* working */%0A
let read
@@ -446,54 +446,8 @@
;%0A%7D%0A
-/* working, overwrites or creates new file */%0A
let
@@ -681,38 +681,24 @@
.promise;%0A%7D%0A
-/* working */%0A
let deleteFi
@@ -916,22 +916,8 @@
;%0A%7D%0A
-/* working */%0A
let
@@ -1144,39 +1144,8 @@
;%0A%7D%0A
-... |
9686b793acf767ea9169ef1ba3a049cde18215e0 | Update HorizontalScroll.min.js | js/HorizontalScroll.min.js | js/HorizontalScroll.min.js | (function ($) {$.fn.createHorizontalOverflow = function () {var width = 0;this.find('.containers').children('div').each(function () {width += $(this).outerWidth(true);});this.find('.containers').css('width', width + "px");};}(jQuery));
| JavaScript | 0 | @@ -8,16 +8,19 @@
on ($) %7B
+%0A
$.fn.cre
@@ -56,16 +56,21 @@
ion () %7B
+%0A
var widt
@@ -75,16 +75,21 @@
dth = 0;
+%0A
this.fin
@@ -109,21 +109,77 @@
s').
-children('div
+each(function ()%0A %7B%0A var width = 0;%0A $(this).find('.each
').e
@@ -195,16 +195,25 @@
ion () %7B
+%0A ... |
c73e4010d22e5ab22cdea3125903dad0a8b65abc | add tooltip to breakpoint snippet | public/js/components/Breakpoints.js | public/js/components/Breakpoints.js | "use strict";
const React = require("react");
const { connect } = require("react-redux");
const { bindActionCreators } = require("redux");
const ImPropTypes = require("react-immutable-proptypes");
const Isvg = React.createFactory(require("react-inlinesvg"));
const actions = require("../actions");
const { getSource, ge... | JavaScript | 0.000001 | @@ -2395,16 +2395,47 @@
t-label%22
+, title: breakpoint.get(%22text%22)
%7D,%0A
|
d8a312185800fd7ee32f7a1bbe590cca63beb32e | Fix typo on a keyup handler that was causing chrome to throw errors on every key press | lib/modules/apostrophe-search/public/js/always.js | lib/modules/apostrophe-search/public/js/always.js | $(function() {
$('body').on('click', '[data-apos-search-filter]', function() {
$(this).closest('form').submit();
});
$('body').on('keyup', '[data-apos-search-field]').keyup(function (e) {
if (e.keyCode == 13) {
$(this).closest('form').submit();
return false;
}
});
});
| JavaScript | 0.000002 | @@ -172,16 +172,10 @@
ld%5D'
-).keyup(
+,
func
|
daeb1ebbe4b9e783ecd4d36eb0f716b6bd2672ea | correct fixtures, use new changed keys | test/fixtures/web_configs.fixture.js | test/fixtures/web_configs.fixture.js |
var fix = fix || {};
fix.conf = {};
fix.conf.plain = {
libs: {
jquery: '../assets/jquery.min',
handlebars: '../assets/handlebars.min',
ember: 'lib/ember-latest.min',
jasmine: '../assets/jasmine/jasmine'
}
};
fix.conf.baseUrl = {
baseUrl: 'js/',
libs: {
jquery: '../assets/jquery.min',
... | JavaScript | 0 | @@ -52,17 +52,23 @@
n = %7B%0A
-l
+vendorL
ibs: %7B%0A
@@ -263,33 +263,39 @@
seUrl: 'js/',%0A
-l
+vendorL
ibs: %7B%0A jquer
@@ -495,25 +495,31 @@
: '/js/',%0A
-l
+vendorL
ibs: %7B%0A j
@@ -725,17 +725,23 @@
'./',%0A
-l
+vendorL
ibs: %7B%0A
|
6a5717b4487a81381f904e84f966dafdc536cff4 | reset startX on mouse move | src/components/containers/zoom-helpers.js | src/components/containers/zoom-helpers.js | import { Selection, Collection } from "victory-core";
import { throttle, isFunction } from "lodash";
const Helpers = {
/**
* Generates a new domain scaled by factor and constrained by the original domain.
* @param {[Number, Number]} currentDomain The domain to be scaled.
* @param {[Number, Number]} orig... | JavaScript | 0.000001 | @@ -4968,16 +4968,27 @@
omain%22%5D,
+ startX: x,
%0A
|
e0a3de8dae7ed9f830c42c61f102bf487c5a0e53 | Fix socket close handler | projects/elm-irc/wsproxy/index.js | projects/elm-irc/wsproxy/index.js | /*jshint esversion: 6 */
const tls = require('tls');
const url = require('url');
const WebSocket = require('ws');
const SUPPORTED_CAPS = [
'znc.in/server-time-iso',
'server-time'
];
const wss = new WebSocket.Server({ port: 6676 });
wss.on('connection', function connection(ws) {
console.log('connectio... | JavaScript | 0.000001 | @@ -1434,27 +1434,29 @@
%0A %7D).on('
-end
+close
', () =%3E soc
@@ -1459,21 +1459,23 @@
socket.
-close
+destroy
());%0A%7D);
|
cdbde9f5f352dac077fe15d1c9082b49e36c3dbf | Allow object and array field descriptions in unpackItem | src/services/spListProvider.js | src/services/spListProvider.js | angular
.module('ngSharepoint')
.provider('$spList', function () {
var siteUrl = "";
var default_limit = 500;
var Query = function() {};
Query.prototype.unpackItem = function(item) {
var obj = {};
this.__values.forEach(function(field) {
var... | JavaScript | 0.000001 | @@ -236,34 +236,118 @@
var
-obj = %7B%7D;%0A this
+query = this;%0A var obj = %7B%7D;%0A if (Array.isArray(query.__values)) %7B%0A query
.__v
@@ -365,33 +365,35 @@
ch(function(
-field) %7B%0A
+key) %7B%0A
@@ -422,24 +422,255 @@
et_item(
-field);%0A
... |
edb46c73f1cba71277c315a7a165013df8cd7f53 | fix deleting orders | food-ordering.js | food-ordering.js | Orders = new Mongo.Collection("orders");
Groups = new Mongo.Collection("groups");
// ROUTES
Router.configure({
layoutTemplate: 'main'
});
Router.route('/', {
template: 'Groups'
});
Router.route('/groups/:group', function () {
var group = this.params.group;
console.log("group: " + group);
this.re... | JavaScript | 0.000004 | @@ -235,20 +235,16 @@
) %7B%0A
-var
group =
@@ -3876,16 +3876,17 @@
s.group)
+;
%0A
@@ -4354,16 +4354,28 @@
ole.log(
+%22DELETE %22 +
event.ta
@@ -4381,16 +4381,33 @@
arget.id
+ + %22 GG %22 + group
);%0A
@@ -4430,36 +4430,71 @@
s =
-Orders.findOne(%7Bdata: today%7D
+findTodayOrderForGroup(... |
444f66a62c38eddc9324cc4ebea51631d3927a9b | Fix bug with color picking due to left jQuery syntax | js/link_editor.js | js/link_editor.js | this.LinkEditor = (function() {
function LinkEditor() {}
LinkEditor.editing = false;
var _actionFor = {};
_actionFor['category-remove-btn'] = function() {
return LinkEditor.removeCategory(LinkEditor.getCategoryID(this));
};
_actionFor['category-edit-btn'] = function() {
return LinkEditor.toggleEdi... | JavaScript | 0 | @@ -4189,26 +4189,21 @@
lor.
+d
at
-tr('data-
+aset.
color
-')
;%0A
|
fb9ce4fe6f55c83c96fa311a0973dfa77e5740af | correct validateAlignedFunctionParameters values | lib/rules/validate-aligned-function-parameters.js | lib/rules/validate-aligned-function-parameters.js | /**
* Validates proper alignment of function parameters.
*
* Type: `Object` or `Boolean`
*
* Values: `"lineBreakAfterOpeningBraces"`, `"lineBreakBeforeClosingBraces"` as child properties or `true`.
*
* #### Example
*
* ```js
* "validateAlignedFunctionParameters": {
* "lineBreakAfterOpeningBraces": true,
*... | JavaScript | 0 | @@ -127,17 +127,16 @@
ingBrace
-s
%22%60, %60%22li
@@ -160,17 +160,16 @@
ingBrace
-s
%22%60 as ch
@@ -295,25 +295,24 @@
OpeningBrace
-s
%22: true,%0A *
@@ -341,17 +341,16 @@
ingBrace
-s
%22: true%0A
|
24c921cd4bb89061023eb94bf6829510411b418c | Make it clear the messages appear for every open result | test/integration/bankHolidayAlert.js | test/integration/bankHolidayAlert.js | const chai = require('chai');
const chaiHttp = require('chai-http');
const cheerio = require('cheerio');
const nock = require('nock');
const constants = require('../../app/lib/constants');
const getSampleResponse = require('../resources/getSampleResponse');
const iExpect = require('../lib/expectations');
const server ... | JavaScript | 0 | @@ -1010,19 +1010,27 @@
ach
-open
result
+ that is open
', (
@@ -2077,15 +2077,114 @@
g').
-first()
+length).to.equal(4);%0A $('callout--warning').toArray().forEach((item) =%3E %7B%0A expect(item
.tex
@@ -2276,56 +2276,9 @@
-expect($('.callout--warning').length).to.equal(4
+%7D
);%0A%0... |
eef654e0e3189a8fcba03c8463d62ecbe2a3e745 | fix indentation and remove console.log | src/components/views/elements/Confetti.js | src/components/views/elements/Confetti.js | const confetti = {
//set max confetti count
maxCount: 150,
//syarn addet the particle animation speed
speed: 3,
//the confetti animation frame interval in milliseconds
frameInterval: 15,
//the alpha opacity of the confetti (between 0 and 1, where 1 is opaque and 0 is invisible)
alpha: 1.... | JavaScript | 0.000003 | @@ -7272,28 +7272,24 @@
oomWidth) %7B%0A
-
confetti
@@ -7357,49 +7357,8 @@
) %7B%0A
- console.log('confetti should stop');%0A
|
04578f9976ac9559d0b073b2a8238b6b1cfe73e7 | Update init.js | draw/init.js | draw/init.js | if(!Draw || KAPhy.version !== KAPhy.current) {
var CENTER = "CENTER";
var CORNER = "CORNER";
var RADIUS = "RADIUS";
var CORNERS = "CORNERS";
var MITER = "miter";
var ROUND = "round";
var BEVEL = "bevel";
var BUTT = "butt";
var SQUARE = "square";
var Draw = {
currentRectMode: "CORNER",
... | JavaScript | 0.000001 | @@ -224,12 +224,14 @@
var
-BUTT
+SQUARE
= %22
@@ -239,30 +239,31 @@
utt%22;%0A var
-SQUARE
+PROJECT
= %22square%22;
|
293bf05782e8453edabdb5181d811d5ebc8c4f39 | fix remembering where you were last | script.js | script.js | var displayTime = function(seconds) {
var s = parseFloat(seconds);
if (s > 0) {
return (Math.floor(s / 60).toString() + 'm ' +
(s % 60).toString() + 's');
} else {
return '...';
}
};
var formatPredictionRow = function(prediction) {
return '<li class="list-group-item"> ' +
'<span ... | JavaScript | 0.000001 | @@ -3946,16 +3946,17 @@
.LatLng(
++
window.l
@@ -4018,32 +4018,33 @@
++
window.localStor
@@ -4083,16 +4083,17 @@
setZoom(
++
window.l
|
d2c7385245193a5f280760461c85a37192ef25a1 | Reset map position before loading new session, fix #23 | src/containers/SessionsHandler/actions.js | src/containers/SessionsHandler/actions.js | import makeActionCreator from 'utils/makeActionCreator';
import { MESSAGE_STATUS, URLS } from 'constants';
import { loadJSON, postJSON } from 'utils/requests';
import { getDataToSave } from './utils';
import { displaySystemMessage } from '../MessagesBox/actions';
import { setSessionID, updateSessionName } from '../Sess... | JavaScript | 0 | @@ -249,32 +249,89 @@
esBox/actions';%0A
+import %7B forceMapPositionUpdate %7D from '../Map/actions';%0A
import %7B setSess
@@ -3635,24 +3635,104 @@
tronome());%0A
+ dispatch(forceMapPositionUpdate(%7B translateX: 0, translateY: 0, scale: 1 %7D));%0A
const stat
|
62c6b7c58effdda18a9d1352f335a6ce65a70425 | add auto slide up when mouse not hover | js/menu_on_top.js | js/menu_on_top.js | /**
* @package menu_on_top
* @category base
* @author Awikatchikaen
* @copyright 2012-2013 Awikatchikaen <lord.awikatchikaen@gmail.com>
* @license GNU Affero General Public license (AGPL)
* @link information http://apps.owncloud.com/content/show.php?content=157091
*
* This library is free software; you can redistribute... | JavaScript | 0.000001 | @@ -1008,16 +1008,18 @@
on () %7B%0A
+
$(%22#na
@@ -1037,16 +1037,18 @@
hide();%0A
+
$(%22#na
@@ -1088,16 +1088,18 @@
ible%22);%0A
+
$(%22#ow
@@ -1130,16 +1130,20 @@
e)%7B%0A
+
+
e.preven
@@ -1150,24 +1150,28 @@
tDefault();%0A
+
$(%22#navi
@@ -1199,16 +1199,18 @@
); %0A
+
%7D... |
b8a424a62bb63658b246846342ceca1dbc5b39ba | Update TweetBeacon.js | public/javascripts/TweetBeacon.js | public/javascripts/TweetBeacon.js | /**
* TweetBeacon extends THREE.Object3D
* A Three.js object that constructs and animates itself
*/
TweetBeacon = function(tweet) {
this.tweet = tweet;
// Call the constructor
THREE.Object3D.call(this);
// An empty container oriented to make it easier to work with child objects
this.container = new TH... | JavaScript | 0.000001 | @@ -491,18 +491,16 @@
FFF;%0A%0A
-//
if (twee
@@ -526,20 +526,16 @@
0) %7B%0A
- //
this.col
@@ -555,11 +555,21 @@
;%0A
-//%7D
+%7D //-%3E DELETE
%0A i
@@ -627,16 +627,28 @@
0066FF;%7D
+ //%3C- DELETE
%0A else
|
77ebb1292198a37081289f3b05e2dd2a57e21de3 | Move JSON en/decoding out of collab module | src/collab/index.js | src/collab/index.js | import {defineOption, eventMixin} from "../edit"
import {applyStep, Step} from "../transform"
import {rebaseSteps} from "./rebase"
export {rebaseSteps}
defineOption("collab", false, (pm, value) => {
if (pm.mod.collab) {
pm.mod.collab.detach()
pm.mod.collab = null
}
if (value) {
pm.mod.collab = new ... | JavaScript | 0.000001 | @@ -1355,27 +1355,14 @@
eps.
-map(s =%3E s.toJSON()
+slice(
)%0A
@@ -1674,54 +1674,17 @@
map(
-json =%3E %7B%0A let step = Step.fromJSON(json)
+step =%3E %7B
%0A
@@ -2163,16 +2163,32 @@
itions)%0A
+ return maps%0A
%7D%0A%7D%0A%0Ae
|
051bdb993d38a175d7f3bd65ef5bc89d550ff43b | clean the test with the edbug cacth and the console.log %j | test/lib/model-validation-promise.js | test/lib/model-validation-promise.js | /*global describe, it*/
require('../initialize-globals').load();
var Md = require('../../app/models/model');
var ModelValidator = require('../../app/lib/model-validation-promise');
describe('#model-validation-promise', function() {
describe('##validation on metadatas', function() {
var Model = Md.extend({
... | JavaScript | 0.000001 | @@ -826,180 +826,20 @@
ion(
-modelSuccess) %7B%0A console.log(%22modelSuccess %25j%22, modelSuccess);%0A done();%0A %7D).catch(function(errors) %7B%0A console.log(%22errors %25j%22, errors);%0A //
+) %7B%0A
done
|
5cfff4ab752af11f2d0c133c2b75e03e3ba28130 | Implement auth methods | src/dashboard/components/ajax-provider.js | src/dashboard/components/ajax-provider.js | 'use strict';
| JavaScript | 0.000001 | @@ -7,8 +7,2927 @@
trict';%0A
+%0A/**%0A * Stores system-wide HTTP configuration.%0A */%0Aconst HTTP_CONFIG = %7B%7D;%0A%0Afunction _configure(options) %7B%0A const request = %7B%0A method: options.method,%0A url: options.url %7C%7C HTTP_CONFIG.host + options.resource,%0A headers: %7B%7D,%0A ... |
02cace1341e69b99d96bdab6463034605c760798 | revert earlier javascript change | public/javascripts/application.js | public/javascripts/application.js | // Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
$(document).ready(function() {
if ($('#login') && $('#username')) {
$('#username').focus();
}
$('.link_select').change(function(e) {
window.location = this.... | JavaScript | 0 | @@ -3426,18 +3426,16 @@
%0A %7D;%0A
-//
loadTabC
|
9410b498a23052f68a5cee2b7a2599ecba12c421 | use environment variables as base URLs | react-components/oodt_opsui_sample_app/src/constants/connection.js | react-components/oodt_opsui_sample_app/src/constants/connection.js | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | JavaScript | 0.000003 | @@ -881,56 +881,45 @@
RL:
-%22http://localhost:8080/cas_product_war/jaxrs/v2%22
+process.env.REACT_APP_FM_REST_API_URL
%0A%7D);
@@ -980,66 +980,46 @@
RL:
-%22http://localhost:8080/workflow_services_war/wmservice/v2%22
+process.env.REACT_APP_WM_REST_API_URL
%0A%7D);
+%0A
|
b65a63eb436b1a09b5e586b46dbcc9110e874d50 | rename serializable tests | test/models/concerns/serializable.js | test/models/concerns/serializable.js | 'use strict';
let _ = require('lodash');
module.exports = function(factoryName) {
return function(opts={}) {
describe('#serialize', () => {
context(`with ${factoryName} factory`, () => {
let params, model, serialized;
beforeEach(() => {
model = factory.buildSync(factoryName);
... | JavaScript | 0.000006 | @@ -175,24 +175,16 @@
oryName%7D
- factory
%60, () =%3E
@@ -892,16 +892,18 @@
it(%60add
+a
link to
|
fbf1c83e2fce602a7c7d19ac78372309b6b86be7 | Fix exception for 'load' on jQuery 1.8 and above | script.js | script.js | /**
* Script for AutoTabber
* Handles Tab Keypress
* @author MarcosBL <soy@marcosbl.com>
*/
/* DOKUWIKI:include taboverride.js */
/* DOKUWIKI:include taboverride.escape.js */
jQuery(window).load(function(){
var textareas = document.getElementsByTagName('textarea');
tabOverride.set(textareas).tabSiz... | JavaScript | 0 | @@ -192,13 +192,19 @@
ow).
+on('
load
-(
+',
func
|
b82d0e6d5399049f517e68e8fe9790148c69139e | Add working directory is not clean test | __tests__/lib/index-test.js | __tests__/lib/index-test.js | const gitPick = require('../../lib/');
const git = require('../../lib/git');
const shell = require('../../lib/shell');
describe('index.js', () => {
describe('function exec()', () => {
beforeEach(() => {
git.isAvailable = jest.fn(() => true);
git.isCommitAvailable = jest.fn(() => true);
git.isWo... | JavaScript | 0.000618 | @@ -3518,13 +3518,730 @@
);%0A %7D);
+%0A%0A describe('Working directory is not clean', () =%3E %7B%0A beforeEach(() =%3E %7B%0A git.isAvailable = jest.fn(() =%3E true);%0A git.isCommitAvailable = jest.fn(() =%3E true);%0A git.isWorkingDirectoryClean = jest.fn(() =%3E false);%0A shell.stop = j... |
86e06634bcdfd8d5dc99817fe77783d7bfd4e224 | update front: to work /top | frontend/main.js | frontend/main.js | (function() {
'use strict';
var source_data = [
{'id': 'some',
'value': 'some-some-some'},
{'id': 'any',
'value': 'any-any-any'},
{'id': 'alt',
'value': 'alt-alt-alt'},
];
var config = angular.module('front', ['ngRoute', 'ctls', 'servs', 'filters']),
ctls = angular.module('ctl... | JavaScript | 0 | @@ -1002,54 +1002,8 @@
) %7B%0A
- var keys = Object.keys(data).sort();%0A
@@ -1038,16 +1038,17 @@
for
+
(var i =
@@ -1047,36 +1047,36 @@
(var i = 0; i %3C
-keys
+data
.length; i++) %7B%0A
@@ -1132,23 +1132,17 @@
': data%5B
-keys%5Bi%5D
+i
%5D%5B'name'
@@ -1171,23 +1171,17 @@
': data%5B
-key... |
9c720435df559d1e09c14ea96daa7a04918cf06b | Refactor code to use ES6 syntax. | src/simple-segment-aggregation.js | src/simple-segment-aggregation.js | import _ from 'underscore';
var SimpleSegmentAggregation = {
// Segment an array of events by scale
aggregate: function(group, scale, options) {
scale = scale || 'weeks';
options = options || {};
_.defaults(options, {
idAttribute: 'id'
});
var aggregates = [];
if (!group || !group.... | JavaScript | 0 | @@ -112,18 +112,8 @@
gate
-: function
(gro
@@ -493,16 +493,8 @@
up,
-function
(g,
@@ -495,24 +495,27 @@
, (g, index)
+ =%3E
%7B%0A cur
|
64f62ceb5496317aa5246b9c67e3667a31ac2d3e | isMulti可以不传,默认为false | bpmcenter/WebContent/js/select.js | bpmcenter/WebContent/js/select.js | /**
* 所有HTML选人界面的控制层
* @param type 选择界面类型
* @param isMulti 是否多选
* @returns 选择的List<Map>
*/
function FixSelect(obj){
//var that = arguments[arguments.length-1];
var rv = null;
var w = obj.width||"800px";
var h = obj.height||"600px";
switch(obj.type){
case "user":
rv = window.showModalDialog("... | JavaScript | 0.999846 | @@ -245,16 +245,54 @@
00px%22;%0D%0A
+%09var isMulti = obj.isMulti%7C%7C%22false%22;%0D%0A
%09switch(
@@ -394,20 +394,16 @@
Multi=%22+
-obj.
isMulti,
|
3225fa2c3b67edb6955f74e01272b62751733790 | bump phase change hps up by 1% | ui/raidboss/data/triggers/unending_coil_ultimate.js | ui/raidboss/data/triggers/unending_coil_ultimate.js | // UCU - The Unending Coil Of Bahamut (Ultimate)
[{
// TODO: Zone name is empty string for now lol?
zoneRegex: /(The Unending Coil Of Bahamut \(Ultimate\)|^$)/,
triggers: [
// --- State ---
{
regex: /:(y{Name}) gains the effect of Firescorched/,
condition: function(data, matches) { return data... | JavaScript | 0 | @@ -2194,17 +2194,17 @@
HP at 7
-4
+5
%25/,%0A
@@ -2371,17 +2371,17 @@
HP at 4
-4
+5
%25/,%0A
|
5658492475eb633bd69a6afdccb1b52c5d28e259 | fix bug | javascripts/admin.js | javascripts/admin.js | $(function() {
Parse.$ = jQuery;
// Replace this line with the one on your Quickstart Guide Page
Parse.initialize("G8cXsz7Z2PCMYbyKMRubHvk6BAgEYci2oYNMSUmm", "ovq6mqOtamFGGldOIKJXQLHLisXb3Z1sm1QpHObU");
var LoginView = Parse.View.extend({
template: Handlebars.compile($('#login-tpl').html()... | JavaScript | 0.000001 | @@ -709,24 +709,96 @@
value;%0A
+ console.log(username);%0A console.log(password);
%0A
@@ -993,24 +993,74 @@
ion(user) %7B%0A
+ console.log(%22success login%22);%0A
|
453e27bcee01584daac3747a60ec6b54ee18a568 | Update url | tests/util/shared.js | tests/util/shared.js | var restify = require('restify');
var knex = require('knex')({
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'root',
password : 'root',
database : 'brestful_test',
charset : 'utf8'
}
});
var bookshelf = require('bookshelf')(knex);
var server = restify.createServer({
name... | JavaScript | 0.000001 | @@ -577,11 +577,11 @@
ost:
-500
+808
0'%0A%7D
|
45d069be9a62bb61d68d855e5f8930eafbe033f8 | Fix notificatin of connections | lib/abstract.js | lib/abstract.js | 'use strict';
const EventHandler = require('@scola/events');
class AbstractModel extends EventHandler {
constructor() {
super();
this.messenger = null;
this.validator = null;
this.meta = {};
this.values = {};
this.connections = new Map();
}
getName() {
throw new Error('not_implem... | JavaScript | 0.000036 | @@ -2572,32 +2572,16 @@
%7D%0A%0A
- const message =
this.me
@@ -2838,16 +2838,118 @@
%7D);%0A
+ %7D)%0A .catch((error) =%3E %7B%0A this.messenger.emit('error', %7B%0A error%0A %7D);%0A
%7D)
|
396a996b4c49e3230fea28590bcebeeb461b4622 | Use console.warn instead of console.error | backend/app/assets/javascripts/spree/backend/translation.js | backend/app/assets/javascripts/spree/backend/translation.js | (function() {
// Resolves string keys with dots in a deeply nested object
// http://stackoverflow.com/a/22129960/4405214
var resolveObject = function(path, obj) {
return path
.split('.')
.reduce(function(prev, curr) {
return prev && prev[curr];
}, obj || self);
}
Spree.t = funct... | JavaScript | 0.000151 | @@ -575,13 +575,12 @@
ole.
-error
+warn
(%22No
|
551a1514dc415aa127a95267c3a3e583586331ee | fix bad test | frameworks/foundation/tests/debug/control_test_pane/ui.js | frameworks/foundation/tests/debug/control_test_pane/ui.js | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// portions copyright @2009 Apple, Inc.
// License: Licened under MIT license (see license.js)
// =======... | JavaScript | 0.003293 | @@ -2531,33 +2531,32 @@
) ;%0A %0A ok(
-!
pane.get('isVisi
@@ -2577,35 +2577,37 @@
l test pane
+still
should
-NOT
be visible a
|
f35cf8185b542d39293dbb35aa6e07dd18fcd668 | Change usage of flag that was renamed. | packages/babel-runtime/scripts/build-dist.js | packages/babel-runtime/scripts/build-dist.js | "use strict";
const outputFile = require("output-file-sync");
const coreDefinitions = require("babel-plugin-transform-runtime").definitions;
const helpers = require("babel-helpers");
const babel = require("../../babel-core");
const t = require("../../babel-types");
const paths = ["is-iterable", "get-iterator"];
Obje... | JavaScript | 0 | @@ -1642,16 +1642,20 @@
, strict
+Mode
: false
|
131aafe66d52064d8f76f5a1900be53a604fc5dd | Remove autoselect dropdown | assets/javascripts/modules/conditional-subfields.js | assets/javascripts/modules/conditional-subfields.js | /**
* Conditional sub fields
*
* Supports the ability to conditionally show and hide content based on the
* value of a field.
*
* The element to be shown requires 2 attributes:
* [data-controlled-by] - this is the name of the field which controls it
* [data-control-value] - the value by which this element shoul... | JavaScript | 0.000002 | @@ -3958,317 +3958,21 @@
-// Auto selects first available option on dropdown if only 1 option with a non empty value is available%0A const isSingleOptionSelect = field.type === 'select-one' && field.options.length === 2 && field.options%5B0%5D.value === ''%0A field.value = isSingleOptionSele... |
09c622e1baec419c16d36139f4e8abf916c68d1c | Refactor animate() context options | animation.js | animation.js | /* eslint-disable no-underscore-dangle */
/**
* @typedef {{
* ?easing: string|function(number):number,
* ?stopPrevious: boolean,
* ?duration: number,
* }} mojave.AnimationOptions
*
* @typedef {{
* currentFrame: ?number,
* easing: function(number):number,
* duration: number,
* ... | JavaScript | 0.000001 | @@ -3036,249 +3036,8 @@
)%0A%7B%0A
- // Build animation director + promise%0A let onAnimationFinished, onAnimationAborted;%0A const animationDirector = new Promise((resolve, reject) =%3E %7B%0A onAnimationFinished = resolve;%0A onAnimationAborted = reject;%0A %7D);%0A%0A
@@ -3310,20 +33... |
6272a1fa17ce31cb1a27ae1c7e76c63af7d1bc96 | remove deprecated / unused JS function from lit-HTML | packages/core/renderers/renderer-lit-html.js | packages/core/renderers/renderer-lit-html.js | import { html, render } from 'lit-html';
import {
withComponent,
shadow,
props,
hasNativeShadowDomSupport,
findParentTag,
} from '../utils';
import { BoltBase } from './bolt-base';
export { html, render } from 'lit-html';
export { unsafeHTML } from 'lit-html/lib/unsafe-html';
export function withLitHtml(Ba... | JavaScript | 0.000003 | @@ -230,63 +230,8 @@
ml';
-%0Aexport %7B unsafeHTML %7D from 'lit-html/lib/unsafe-html';
%0A%0Aex
|
08c8e048ac49794a035da07a0f87c094747cb02e | Set JsTestCase.state to TEARDOWN before calling afterEachTests() method. | Implementation/WebTier/WebContent/JavaScript/JsUnit/app/JsTestCase.js | Implementation/WebTier/WebContent/JavaScript/JsUnit/app/JsTestCase.js | /*
* JsTestCase
*/
var JsTestCase = new Class({
Implements : [Events, Options],
Binds : ['afterEachTestWrapper', 'beforeEachTestWrapper', 'callAfterEachTest', 'callBeforeEachTest', 'checkTimeOut', 'notifyOnTestCaseReady', 'notifyOnTestCaseStart', 'onRunTestFinished', 'run', 'testRunWrapper'],
options :... | JavaScript | 0 | @@ -2385,32 +2385,80 @@
r: function()%7B%0D%0A
+ this.state = JsTestCase.States.TEARDOWN;%0D%0A
this.callA
@@ -2674,32 +2674,77 @@
r: function()%7B%0D%0A
+ this.state = JsTestCase.States.SETUP;%0D%0A
this.callB
@@ -3861,32 +3861,81 @@
)%7B%0D%0A try%7B%0D%0A
+ this.state = JsTest... |
cc6db46660805944641bfe2eea5cb34e7bcf3939 | make AWS host permission optional | build-config.js | build-config.js | 'use strict'
const config = {
'manifest': {
'common': {
'name': 'RunMyCode Online',
'short_name': 'RunMyCode',
'description': 'Run code online from sites like Github, Gitlab and more',
'author': 'Shatrughn Gupta',
'homepage_url': 'https://runmycode.online',
'version': '1.2.0',... | JavaScript | 0.000018 | @@ -308,17 +308,17 @@
on': '1.
-2
+3
.0',%0A
@@ -1392,17 +1392,16 @@
online/'
-,
// for
@@ -1417,16 +1417,88 @@
RS calls
+ for code run and key gen/usage%0A %5D,%0A 'optional_permissions': %5B
%0A
@@ -1562,17 +1562,16 @@
Code API
-G
deploym
@@ -1573,16 +1573,35 @@
ployment
+ on AWS API G... |
0949cf5963f240a3751c3cce09f8ce4f8598fb8d | update script | script.js | script.js |
'use strict';
const _ = require('lodash');
const Script = require('smooch-bot').Script;
const scriptRules = require('./script.json');
function wait(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
module.exports = new Script({
processing: {
//prompt: (bot) => bot.s... | JavaScript | 0.000001 | @@ -390,32 +390,36 @@
tart: %7B%0A
+
receive: (bot) =
@@ -426,32 +426,36 @@
%3E %7B%0A
+
return bot.say('
@@ -458,71 +458,528 @@
ay('
-Get started by saying BOT.')%0A .then(() =%3E 'speak
+Hoi.')%0A .then(() =%3E 'askName');%0A %7D%0A ... |
52214f1ad7cad7c956066cfa1a5ea84270417848 | update appId in URL if not defined | corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/collections.js | corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/collections.js | /*global Backbone */
hqDefine("cloudcare/js/formplayer/menus/collections", function () {
var FormplayerFrontend = hqImport("cloudcare/js/formplayer/app"),
Util = hqImport("cloudcare/js/formplayer/utils/util");
var MenuSelect = Backbone.Collection.extend({
commonProperties: [
'appId... | JavaScript | 0 | @@ -1407,133 +1407,385 @@
-if (response.selections) %7B%0A var urlObject = Util.currentUrlToObject();%0A urlObject.setSelections
+var urlObject = Util.currentUrlToObject(),%0A updateUrl = false;%0A if (!urlObject.appId && response.appId) %7B%0A ... |
bbefc366bb9a2da59ccab5a22cfd2750020d10ae | optimize ListItem | src/_ListItem/ListItem.js | src/_ListItem/ListItem.js | /**
* @file ListItem component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Checkbox from '../Checkbox';
import Radio from '../Radio';
import CircularLoading from '../CircularLoading';
import TipProvider from '../TipProvide... | JavaScript | 0.000088 | @@ -4078,32 +4078,93 @@
oCheckedIconCls%7D
+%0A disableTouchRipple=%7Btrue%7D
/%3E%0A
@@ -4826,16 +4826,80 @@
IconCls%7D
+%0A disableTouchRipple=%7Btrue%7D
/%3E%0A
|
5ef28b7e1196f1202e1c071ea3333bb2a17f48c7 | fix #1888 csslint worker gives error for empty file | lib/ace/mode/css_worker.js | lib/ace/mode/css_worker.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | JavaScript | 0 | @@ -3120,16 +3120,88 @@
alue();%0A
+ if (!value)%0A return this.sender.emit(%22csslint%22, %5B%5D);%0A
|
bc0766dc7e1adc0715296eb823f4c133005cb1ee | Remove console.log | server/api/issue/issue.controller.js | server/api/issue/issue.controller.js | import Issue from './issue.model';
export function show(req, res) {
return Issue
.find({section: req.params.section})
.populate('user')
.exec()
.then(list => res.json(list))
.catch(err => res.status(500).send(err.toString()));
}
export function create(req, res) {
return Issue
.create(req.b... | JavaScript | 0.000004 | @@ -668,43 +668,8 @@
%3E %7B%0A
- console.log(saved.closed);%0A
|
30c7618eff5a5afcb0dab2a64fc2c78f91191615 | stop and click play | augmented-paintings/fire/learn-video_edgeActions.js | augmented-paintings/fire/learn-video_edgeActions.js |
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName){Symbol.bindTriggerAction(compId,symbolName,"Default Timeline",4750,function(sym,e){sym.play(0);});
//Edge binding end
})("stage");
//Edge symbol end:'stage'
})(jQuery,AdobeEdge,"learn-video"); | JavaScript | 0.000001 | @@ -204,18 +204,236 @@
,e)%7B
-sym.play(0
+%7D);%0A//Edge binding end%0ASymbol.bindElementAction(compId,symbolName,%22$%7B_Comp_12%7D%22,%22click%22,function(sym,e)%7Bsym.play(0);%7D);%0A//Edge binding end%0ASymbol.bindTriggerAction(compId,symbolName,%22Default Timeline%22,0,function(sym,e)%7Bsym.stop(
);%7D)
|
6034574f1299343c7df07cfbb65b889fd8b526fd | Add hide alert action creator | src/actions/appActions.js | src/actions/appActions.js | export function changeLocation(location) {
return {
type: 'CHANGE_LOCATION',
location
};
}
export function changeUnitType(unitType) {
return {
type: 'CHANGE_UNIT_TYPE',
unitType
};
}
export function setAlert({type, message}) {
return {
type: 'SET_ALERT',
alert: {
type,
me... | JavaScript | 0 | @@ -325,32 +325,118 @@
e%0A %7D%0A %7D;%0A%7D%0A%0A
+export function hideAlert() %7B%0A return %7B%0A type: 'SET_ALERT',%0A alert: %7B%7D%0A %7D;%0A%7D%0A%0A
export function
|
92ad4980bce635a6b237852ada57274170fd426b | Fix for part of issue #907 Network and network_weights had been improperly renamed in #897. It was fixed in the imports but not the exports | server/controllers/exporters/xlsx.js | server/controllers/exporters/xlsx.js | const xlsx = require("node-xlsx");
const buildGeneNameArray = function (genes) {
const geneNameArray = genes.map(gene => gene["name"]);
return geneNameArray;
};
const createArrayWithZeroes = function (length) {
return Array.apply(null, Array(length)).map(() => 0);
};
const buildWorkbookSheet = function (... | JavaScript | 0 | @@ -2651,23 +2651,22 @@
name%22: %22
+net
wor
-kboo
k%22,%0A
@@ -2775,23 +2775,22 @@
name%22: %22
+net
wor
-kboo
k_weight
|
031b829b12036ec26b7dc0bf877240e00345691b | fix error handling problem when closing the server to early | tests/test-event-forwarding.js | tests/test-event-forwarding.js | var server = require('./server')
, assert = require('assert')
, request = require('../index')
;
var s = server.createServer();
var expectedBody = "waited";
var remainingTests = 1;
s.listen(s.port, function () {
s.on('/', function (req, resp) {
resp.writeHead(200, {'content-type':'text/plain'})
resp.wr... | JavaScript | 0 | @@ -181,9 +181,9 @@
s =
-1
+2
;%0A%0As
@@ -448,16 +448,45 @@
ketEvent
+, function() %7B%0A s.close();%0A%7D
)%0A%0Areq.o
@@ -613,77 +613,8 @@
%7D)%0A%0A
-req.on('error', function(err) %7B%0A // I get an ECONNREFUSED error%0A%7D)%0A%0A
func
@@ -658,24 +658,24 @@
sts == 0) %7B%0A
+
console.
@@ -704,23 +704... |
82d3d7b16bdaac08f34facc4822986b1b648ecc2 | Add context to deduction result | addon/ad/language_deducer.js | addon/ad/language_deducer.js | // Using Chain of responsability to detect the language.
// Each logic will have its class and the first that succeeds is used.
const Deduction = function(language, method){
this.language = language;
this.method = method;
}
Deduction.METHODS = {
REMEMBER:"remember",
GUESS:"guess"
}
export const LanguageDeduc... | JavaScript | 0.002121 | @@ -165,19 +165,31 @@
, method
+, recipients
)%7B%0A
-
this.l
@@ -232,16 +232,48 @@
method;%0A
+ this.recipients = recipients;%0A
%7D%0A%0ADeduc
@@ -565,25 +565,30 @@
unction
-d
+buildD
eduction
OrNull(v
@@ -579,22 +579,16 @@
eduction
-OrNull
(value,
@@ -597,45 +597,19 @@
thod
-)%7B%0A if(!value)%7B%0A... |
756b42f5a186cac1f20f9fcd1a9c59d3ef92ecff | add put route with no id | api/index.js | api/index.js | 'use strict';
const router = require('koa-router')();
const db = require('../db/data-service');
const _ = require('lodash');
const body = require('koa-body')();
const secretKey = 'm1chael';
function auth(parent) {
if (!parent.request.query || (parent.request.query.key !== secretKey)) {
parent.body = 'Error: inc... | JavaScript | 0.000001 | @@ -1074,24 +1074,252 @@
ponse;%0A%7D);%0A%0A
+router.put('/api/put/:database/:table', body, function*() %7B%0A if (!auth(this)) return;%0A const params = _.assign(%7Bitem: this.request.body%7D, this.params);%0A const response = yield db.putItem(params);%0A this.body = response;%0A%7D);%0A%0A
router.put('
|
b0b2053834c763af0bd2a4db7cbfac5ca56d7497 | add more value constraint tests | tests/unit/value-constraint.js | tests/unit/value-constraint.js | "use strict";
describe("ValueConstraint", function() {
describe("constructor with simple reference and complex type", function() {
var vc;
beforeEach(function() {
vc = new ValueConstraint({
descriptionTemplateRef: "testref",
valueLang: "en",
... | JavaScript | 0 | @@ -2742,13 +2742,1127 @@
%0A %7D);
+%0A%0A describe(%22constructor with complex reference and basic type%22, function() %7B%0A var vc;%0A beforeEach(function() %7B%0A vc = new ValueConstraint(%7B%0A descriptionTemplateRef: %5B%22testref%22, %22testrefAlt%22%5D,%0A ... |
7d467a81ca0a1fe525507ea74f435efa95b1acc4 | fix bug with https redirect | backend/server.js | backend/server.js | import path from 'path';
import express from 'express';
import webpack from 'webpack';
import webpackMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import wrap from 'express-async-wrap';
import fs from 'fs-promise';
import search from '../common/search';
import web... | JavaScript | 0 | @@ -837,16 +837,19 @@
ttps
+://
' + req.
url.
@@ -848,32 +848,37 @@
req.
-url.slice('http'.length)
+get('host') + req.originalUrl
);%0A
|
bcd9c86fdd9e26f76bde3b7807401fef723efd5f | remove IconPool.insertFontFaceStyle | src/sap.ui.mdc/src/sap/ui/mdc/field/FieldBaseRenderer.js | src/sap.ui.mdc/src/sap/ui/mdc/field/FieldBaseRenderer.js | /*!
* ${copyright}
*/
sap.ui.define([
'sap/ui/core/Renderer',
'sap/ui/core/IconPool',
'sap/ui/mdc/enum/EditMode'
], function(
Renderer,
IconPool,
EditMode
) {
"use strict";
// initialize the Icon Pool
IconPool.insertFontFaceStyle();
/**
* FieldBase renderer.
* @namespace
*/
var FieldBaseRenderer =... | JavaScript | 0.000001 | @@ -181,71 +181,8 @@
%22;%0A%0A
-%09// initialize the Icon Pool%0A%09IconPool.insertFontFaceStyle();%0A%0A
%09/**
|
747f2b28472ada854af2faed137225f33ee929b5 | Move otherwise redundant unsubscription | api/mount.js | api/mount.js | "use strict"
var Vnode = require("../render/vnode")
var autoredraw = require("../api/autoredraw")
module.exports = function(renderer, pubsub) {
return function(root, component) {
pubsub.unsubscribe(root.redraw)
if (component === null) {
renderer.render(root, [])
delete root.redraw
return
}
var run ... | JavaScript | 0.000002 | @@ -179,42 +179,8 @@
) %7B%0A
-%09%09pubsub.unsubscribe(root.redraw)%0A
%09%09if
@@ -232,16 +232,51 @@
ot, %5B%5D)%0A
+%09%09%09pubsub.unsubscribe(root.redraw)%0A
%09%09%09delet
|
77e72fbb29e0d12c8137b9ccb9a80bc6711bab89 | Make sure to fetch latest update url every time we check for updates | packages/client-app/src/browser/auto-update-manager.es6 | packages/client-app/src/browser/auto-update-manager.es6 | /* eslint global-require: 0*/
import {dialog} from 'electron';
import {EventEmitter} from 'events';
import path from 'path';
import fs from 'fs';
import qs from 'querystring';
let autoUpdater = null;
const IdleState = 'idle';
const CheckingState = 'checking';
const DownloadingState = 'downloading';
const UpdateAvaila... | JavaScript | 0 | @@ -872,94 +872,8 @@
);%0A%0A
- this.config.onDidChange(%0A 'nylas.accounts',%0A this.updateFeedURL%0A );%0A%0A
@@ -4235,24 +4235,50 @@
ps%7D = %7B%7D) %7B%0A
+ this.updateFeedURL();%0A
if (!hid
|
83353949ab5aa6deb7985ce1aa399a310c82e7f9 | use internal functions to improve readability | tests/cases/dom/manipulate/append.js | tests/cases/dom/manipulate/append.js | import QUnit from "qunitjs";
import {append} from "../../../../dom/manipulate";
QUnit.module("dom/manipulate/append()",
{
beforeEach: () =>
{
document.getElementById("qunit-fixture").innerHTML = `
<div id="test-parent">
<div class="first"></div>
... | JavaScript | 0.000002 | @@ -4,78 +4,159 @@
ort
-QUnit from %22qunitjs%22;%0Aimport %7Bappend%7D from %22../../../../dom/manipulate
+%7Bappend, createElement%7D from %22../../../../dom/manipulate%22;%0Aimport %7Bchildren, find, findOne%7D from %22../../../../dom/traverse%22;%0Aimport QUnit from %22qunitjs
%22;%0A%0A
@@ -253,33 +253,18 @@
... |
48b55e8ef361ced7372e1d51cd72ff473c22f0f6 | Fix QueueItem expanded default | src/routes/Queue/components/QueueItem/QueueItem.js | src/routes/Queue/components/QueueItem/QueueItem.js | import PropTypes from 'prop-types'
import React, { useCallback, useState } from 'react'
import { useDispatch } from 'react-redux'
import Buttons from 'components/Buttons'
import Icon from 'components/Icon'
import Swipeable from 'components/Swipeable'
import ToggleAnimation from 'components/ToggleAnimation'
import User... | JavaScript | 0 | @@ -745,11 +745,12 @@
ate(
-tru
+fals
e)%0A%0A
|
1f6b70abb37279c90c48671aea68d56684237776 | Implement doesNotThrow() function. | lib/assertTheUnexpected.js | lib/assertTheUnexpected.js | function convertObjectToArray(obj) {
var outputArray = [];
Object.keys(obj).forEach(function (key) {
var keyAsIndex = Number(key);
if (!isNaN(keyAsIndex) && keyAsIndex > -1) {
outputArray[keyAsIndex] = obj[key];
} else {
// attach it as a property
outputArray[key] = obj[key];
}
... | JavaScript | 0.000001 | @@ -1750,24 +1750,397 @@
%0A %7D%0A %7D%0A%0A
+ function checkNotThrow(block, errorConstraint) %7B%0A try %7B%0A expect(function () %7B%0A block();%0A %7D, 'not to error');%0A %7D catch (e) %7B%0A var blockError = e.originalError;%0A%0A try %7B%0A expect(blockError, 'not to... |
d43c3bc9c9e43bb8729a8fa78455d44140df57c6 | check if we have gluestick in dependencies | packages/gluestick/src/cli/execWithConfig.js | packages/gluestick/src/cli/execWithConfig.js | const path = require('path');
const preparePlugins = require('../config/preparePlugins');
const compileGlueStickConfig = require('../config/compileGlueStickConfig');
const compileWebpackConfig = require('../config/compileWebpackConfig');
const logger = require('./logger');
const execHooks = (context, hooks) => {
if ... | JavaScript | 0 | @@ -1009,62 +1009,57 @@
%7B%0A
-const projectConfig = skipProjectConfig%0A ?
+let packageJson = null;%0A try
%7B
-%7D
%0A
-:
+packageJson =
req
@@ -1104,16 +1104,288 @@
.json'))
+;%0A if (!packageJson.dependencies.gluestick) %7B%0A throw new Error('Command need to be run in gluestick project.')... |
328f14ad144677420d2268e1cff4bccec92f8e64 | Add postcss on webpack build config | modules/der-reader/config/webpack.config.build.js | modules/der-reader/config/webpack.config.build.js | var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
'der-reader': ['./src/der-reader.js'],
'index': './src/index.js'
},
output: {
path: __dirname + '/../dist/',
filename: '[name].js',
library: 'DerReader',
libraryTarget: 'u... | JavaScript | 0.000001 | @@ -82,16 +82,98 @@
lugin');
+%0A/* import postcss config array */%0Avar postCSSConfig = require('./postcss.config')
%0A%0Amodule
@@ -563,16 +563,71 @@
%5D%0A %7D,%0A
+ postcss: function() %7B%0A return postCSSConfig;%0A %7D,%0A
extern
|
6c24d0749f9caf7ab146dca1986f7997b9bc9872 | use minified version of OpenVeo Player | tests/client/frontOfficeKarmaConf.js | tests/client/frontOfficeKarmaConf.js | 'use strict';
// Karma configuration
module.exports = function(config) {
config.set({
// Base path that will be used to resolve all patterns
// (eg. files, exclude)
basePath: '../../',
// Plugins to load
plugins: [
'karma-chai',
'karma-mocha',
'karma-chrome-launcher'
],
... | JavaScript | 0 | @@ -1132,16 +1132,20 @@
-player.
+min.
js',%0A
|
4cc399a05e64e1777e220a18897804e6b06ad2e1 | Fix bad method name | lib/common/manipulation/map.js | lib/common/manipulation/map.js | 'use strict';
/**
* Expose `Map`.
*/
module.exports = Map;
/**
* Initialize a new map.
*/
function Map() {
this._items = {};
this._name = '';
}
Map.defineImplementedInterfaces(['danf:manipulation.map']);
Map.defineDependency('_name', 'string|null');
/**
* @interface {danf:manipulation.map}
*/
Object.... | JavaScript | 0.999751 | @@ -862,18 +862,13 @@
his.
-deregister
+unset
(nam
|
afdf09dedbd459bf8ed838270f271c6faa758b2e | Fix by code review | tests/dummy/app/views/application.js | tests/dummy/app/views/application.js | import Ember from 'ember';
export default Ember.Component.extend({
tagName: ''
});
| JavaScript | 0 | @@ -21,16 +21,183 @@
mber';%0A%0A
+/**%0A * Overload wrapper tag name for disabling wrapper.%0A *%0A * The sidebar, as per Semantic-UI's documentation,%0A * will need to be directly below the body element.%0A */%0A
export d
|
f6d8a5db21ca0eda93e1156e5146f3790c9f3f15 | fix THREEShader uniforms | three/THREEShader.js | three/THREEShader.js | import { Vector2 as THREEVector2 } from "three/src/math/Vector2.js";
import { Vector3 as THREEVector3 } from "three/src/math/Vector3.js";
import { Vector4 as THREEVector4 } from "three/src/math/Vector4.js";
import { Matrix3 as THREEMatrix3 } from "three/src/math/Matrix3.js";
import { Matrix4 as THREEMatrix4 } from "thr... | JavaScript | 0.000201 | @@ -1317,17 +1317,16 @@
ect%22 %7C%7C
-!
uniform.
@@ -1330,16 +1330,30 @@
rm.value
+ === undefined
) %7B%0A
|
663daf22746524aefe57e756f76345d7d9f23a53 | Update config | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: `Satyajeet Pal`,
description: `Personal blog.`,
author: `@psatyajeet`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
`gatsby-transformer-remark`,
... | JavaScript | 0.000001 | @@ -916,37 +916,8 @@
%7D,%0A
- 'gatsby-plugin-offline',%0A
@@ -1229,19 +1229,16 @@
line%0A
- //
'gatsby
|
d41235c2d9a13d5a8b985e2a143ecb83f547b3ba | fix world icon in search example (#1695) | docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchDropdown.js | docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchDropdown.js | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { languageOptions } from '../common'
// languageOptions = [ { key: 'Arabic', text: 'Arabic', value: 'Arabic' }, ... ]
/**
* NOTE: In this example, the dropdown should contain a label on the
* left of the text:
* <i class="world icon"></... | JavaScript | 0.000001 | @@ -196,161 +196,8 @@
%5D%0A%0A
-/**%0A * NOTE: In this example, the dropdown should contain a label on the%0A * left of the text:%0A * %3Ci class=%22world icon%22%3E%3C/i%3E%0A *%0A * @returns %7BElement%7D%0A */%0A
cons
@@ -276,15 +276,23 @@
age'
+%0A
search
+%0A
flo
@@ -300,16 +300,20 @@
ting
+%0A
... |
0ce6855d84b714943aa59f575e1d07ccd1e1eeec | add a new config for gatsby-remark-images | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: `Eder Christian`,
position: `Partner and Front-end Developer`,
description: `A blog about front-end development and other cool stuff`,
author: `@ederchristian`,
},
plugins: [
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
{
... | JavaScript | 0 | @@ -363,32 +363,187 @@
options: %7B%0A
+ name: %60uploads%60,%0A path: %60$%7B__dirname%7D/static/assets/img%60,%0A %7D,%0A %7D,%0A %7B%0A resolve: %60gatsby-source-filesystem%60,%0A options: %7B%0A
name: %60i
@@ -833,16 +833,386 @@
ugins: %5B
+%0A %7B%0A ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.