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 |
|---|---|---|---|---|---|---|---|
513ced0becc9803e1ce3022fb3130b377421a4e3 | refactor for new format | clusterwatcher.js | clusterwatcher.js | #!/usr/bin/env node
var os = require("os");
var fs = require("fs");
var path = require("path");
var network = require("network");
var promise = require("deferred");
var child_process = require('child_process');
var glob = require('glob');
var logger = require("./log.js");
var kvstore = require("./kvstore.js");
var ... | JavaScript | 0.00114 | @@ -234,16 +234,55 @@
lob');%0A%0A
+var vccutil = require(%22./vccutil.js%22);%0A
var logg
@@ -510,16 +510,141 @@
onfig);%0A
+ // connect kvstore%0A this.kvstore = new kvstore();%0A this.kvstore.connect(config.kvstore.host, config.kvstore.port);%0A
// h
@@ -3156,16 +3156,21 @@
hosts =
+this.
kvstore... |
84328e62b1968bfaebe28f918ea48e1a165d348c | Change CJS definition to require vex.js with relative path | js/vex.dialog.js | js/vex.dialog.js | (function() {
var vexDialogFactory;
vexDialogFactory = function($, vex) {
var $formToObject, dialog;
if (vex == null) {
return $.error('Vex is required to use vex.dialog');
}
$formToObject = function($form) {
var object;
object = {};
$.each($form.serializeArray(), function()... | JavaScript | 0.000024 | @@ -5498,19 +5498,24 @@
equire('
+./
vex
+.js
'));%0A %7D
|
9c0ae49c00f41dbd5c6e3a71d457d5072001a7c7 | update link to GraphQL spec | packages/relay-runtime/network/RelayNetworkTypes.js | packages/relay-runtime/network/RelayNetworkTypes.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 strict-local
* @format
*/
'use strict';
import type {RequestParameters} from '../util/RelayConcreteNode';
import type {... | JavaScript | 0 | @@ -1034,19 +1034,19 @@
http
+s
://
-facebook
+graphql
.git
@@ -1059,16 +1059,30 @@
/graphql
+-spec/June2018
/#sec-Re
@@ -1087,16 +1087,23 @@
Response
+-Format
)%0A */%0Aex
|
9cc54925a5e6ef11874d436ec00359df521d35bf | Refactor mobile-menu.js | app/src/home/mobile-menu.js | app/src/home/mobile-menu.js | require('./mobile-menu.sass');
document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.querySelector('.top-bar button.ion-md-menu');
const menu = document.getElementById('mobile-menu');
menuButton.addEventListener('click', () => {
menuButton.classList.toggle('open');
menu.class... | JavaScript | 0.000003 | @@ -214,55 +214,182 @@
');%0A
-%0A
-menuButton.addEventListener('click', () =%3E %7B
+const topBar = document.getElementsByClassName('top-bar')%5B0%5D;%0A const menuLinks = menu.getElementsByTagName('a');%0A%0A function openMenu() %7B%0A menu.style.display = 'block';
%0A
@@ -402,38 +402,35 @@
utton.class... |
e70fbd2013b90af6184c869e5e82142a80c34b8f | Fix another lint error | src/conversion/view-v1-to-v2.js | src/conversion/view-v1-to-v2.js | import _ from 'lodash'
const CARRY_OVER_PROPERTIES = ['label', 'dependsOn', 'description', 'disabled', 'model', 'placeholder']
const ARRAY_CELL_PROPERTIES = ['autoAdd', 'compact', 'showLabel', 'sortable']
/**
* Turns rootContainers from V1 view into cells in v2 view
*
* @export
* @param {Object[]} rootContainers ... | JavaScript | 0.000036 | @@ -4111,16 +4111,27 @@
const %7B
+className,
collapsi
@@ -4138,35 +4138,24 @@
ble,
- rows,
id,
-c
la
-ssName, label
+bel, rows
%7D =
|
46075e4dc692791877297eaac7a6bcab45292a30 | fix FixedImage tracks broken by memory leak fixes | src/JBrowse/View/Track/FixedImage.js | src/JBrowse/View/Track/FixedImage.js | define(
[
'dojo/_base/declare',
'JBrowse/View/Track/BlockBased'
],
function( declare, BlockBased ) {
return declare( BlockBased,
/**
* @lends JBrowse.View.Track.FixedImage.prototype
*/
{
/**
* A track that displays tiled images (PNGs, or other images) at fixed
* interval... | JavaScript | 0 | @@ -3152,24 +3152,32 @@
block.
+domNode.
appendChild(
@@ -4683,16 +4683,24 @@
ceBlock.
+domNode.
childNod
@@ -5314,16 +5314,24 @@
stBlock.
+domNode.
appendCh
|
10c4b660bf60a1fefd5c75a6eb44df6aaa740956 | Add hello ws message | lib/interfaces/ws.js | lib/interfaces/ws.js | /*
* Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl>
*
* 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 requ... | JavaScript | 0.999983 | @@ -2825,24 +2825,238 @@
);%0A %7D%0A%0A
+ spark.write(%7B%0A name: app.config.name,%0A version: app.config.version,%0A timestamp: new Date(),%0A self: app.selfId,%0A roles: %5B%22master%22, %22main%22%5D%0A %7D)%0A console.log('hep')%0A%0A
%7D);%0A%0A
|
d70220182c4e5ec2835f19eebf25aff0330345e2 | Implement ShoppingListAddController | SPAWithAngularJS/module2/customServices/js/app.shoppingListAddController.js | SPAWithAngularJS/module2/customServices/js/app.shoppingListAddController.js | // app.shoppingListAddController.js
(function() {
"use strict";
angular.module("MyApp")
.controller("ShoppingListAddController", ShoppingListAddController);
function ShoppingListAddController() {
let vm = this;
}
})();
| JavaScript | 0.001632 | @@ -167,65 +167,352 @@
%0A%0A
-function ShoppingListAddController() %7B%0A let vm = this;
+ShoppingListAddController.$inject = %5B%22ShoppingListService%22%5D;%0A%0A function ShoppingListAddController(ShoppingListService) %7B%0A let AddCtrl = this;%0A%0A AddCtrl.itemName = %22%22;%0A AddCtrl.itemQuantit... |
928b663d3202426ec1cea778e71b3d519dc9327d | add standard blocks | module_testing/test-p5/task.js | module_testing/test-p5/task.js | function initTask(subTask) {
subTask.gridInfos = {
hideSaveOrLoad: false,
actionDelay: 200,
buttonScaleDrawing: false,
includeBlocks: {
groupByCategory: false,
generatedBlocks: {
p5: [
'playSignal',
'pl... | JavaScript | 0.000008 | @@ -196,20 +196,19 @@
tegory:
-fals
+tru
e,%0A
@@ -474,20 +474,19 @@
udeAll:
-fals
+tru
e%0A
|
ec063ae8b1b5f18623144ed3ee8a3a52c7651f80 | Update wifiInfo.js | www/wifiInfo.js | www/wifiInfo.js | function wifiInfo() { };
/* wifiInfo*/
wifiInfo.prototype.getConnectionInfo = function ()
{ //console.log('wifiInfo aufgerufen');
cordova.exec(null, null, 'wifiInfo', 'getConnectionInfo', []);
};
module.exports = new wifiInfo();
| JavaScript | 0.000001 | @@ -83,16 +83,26 @@
nction (
+p_callback
) %0A%7B //c
@@ -151,20 +151,26 @@
va.exec(
-null
+p_callback
, null,
|
736cb0e5ee7625d705ee8d0ff94f2b0faad1a84e | update TransferList | src/_TransferList/TransferList.js | src/_TransferList/TransferList.js | /**
* @file TransferList component
* @author sunday(sunday.wei@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import TextField from '../TextField';
import Checkbox from '../Checkbox';
export default class TransferList extends Component {
... | JavaScript | 0 | @@ -3929,21 +3929,23 @@
-value
+checked
=%7Bselect
@@ -4810,21 +4810,23 @@
-value
+checked
=%7BitemVa
|
b10d2d10a8a916c35cf32bccf935f64e99612325 | update the stories with onClick events | packages/side-nav/src/__stories__/ExampleSideNav.js | packages/side-nav/src/__stories__/ExampleSideNav.js | import React from "react";
import { action } from "@storybook/addon-actions";
import { boolean, text } from "@storybook/addon-knobs/react";
import { Insight24, ProductsAndServices24, Collaboration24 } from "@hig/icons";
import Typography from "@hig/typography";
import SideNav from "../index";
const ExampleSideNav = (... | JavaScript | 0 | @@ -444,24 +444,62 @@
desk.com%22)%7D%0A
+ onClickHeader=%7Baction(%22onClick%22)%7D%0A
onMinimi
@@ -715,24 +715,67 @@
desk.com%22)%7D%0A
+ onClickSuperHeader=%7Baction(%22onClick%22)%7D%0A
groups=%7B
|
e1275063a762e4748aae86bfcf9a9e60deb40e70 | Fix dependency loading order for checkbox | app/assets/javascripts/ember-bootstrap-rails/all.js | app/assets/javascripts/ember-bootstrap-rails/all.js | //= require ./core
//= require ./mixins
//= require ./forms
//= require_tree ./forms
//= require_tree ./views | JavaScript | 0.000001 | @@ -45,32 +45,58 @@
require ./forms%0A
+//= require ./forms/field%0A
//= require_tree
|
70459cb61f753ce11bc85a801442de85879f716e | Revert "Register query on create." | modules/chartDataController.js | modules/chartDataController.js | var express = require('express');
var DataStore = require('./regard-data-store.js');
var Chart = require('../schemas/chart.js');
var router = express.Router();
var dataStore = new DataStore('Adobe', 'Brackets');
router.get('/chartdata', function (req, res, next) {
var id = req.query.ids[0];
dataStore.runQuery(id... | JavaScript | 0 | @@ -336,26 +336,24 @@
(result) %7B%0A
-
res.json(%7B
@@ -449,30 +449,24 @@
%0A %7D);%0A %7D
-, next
);%0A%7D);%0A%0Arout
@@ -473,10 +473,9 @@
er.p
-os
+u
t('/
@@ -480,16 +480,20 @@
'/charts
+/:id
', funct
@@ -630,26 +630,22 @@
e = req.
-body.chart
+params
.id;%0A v
|
1dd108a5031993755c24d0079e4281656904987d | fix postinstall script | packages/vue-inbrowser-compiler-demi/postinstall.js | packages/vue-inbrowser-compiler-demi/postinstall.js | const pkg = require('vue/package.json')
const path = require('path')
const fs = require('fs')
function updateIndexForVue3() {
// commonjs
const indexPath = path.join(__dirname, './index.cjs.js')
const indexContent = `
const Vue = require('vue')
module.exports.h = Vue.h
module.exports.resolveComponent = Vue.re... | JavaScript | 0.000115 | @@ -244,16 +244,19 @@
('vue')%0A
+ %0A
module
@@ -274,16 +274,16 @@
= Vue.h%0A
-
module
@@ -403,16 +403,68 @@
xContent
+, err =%3E %7B%0A%09%09if (err) %7B%0A%09%09%09console.error(err)%0A%09%09%7D%0A%09%7D
)%0A%0A%09// e
@@ -626,16 +626,19 @@
3 = true
+%0A
%60%0A%09fs.wr
@@ -674,16 +674,68 @@
ntentESM
... |
282b8370cfdcb5d8fa54dc5960ff877484adcd82 | Update tetris.js to use directions links to toggle directions display | tetris.js | tetris.js | var removeExcessSpaces = function(selector) {
var htmlString = document.querySelector(selector).innerHTML;
htmlString = htmlString.replace(/\s+</g, '<');
htmlString = htmlString.replace(/>\s+/g, '>');
htmlString = htmlString.replace(/_/g, ' ');
document.querySelector(selector).innerHTML = htmlString;
}
var rea... | JavaScript | 0 | @@ -1,12 +1,185 @@
+var ready = function(fn) %7B%0A if(document.readyState != 'loading') %7B%0A fn();%0A %7D%0A else %7B%0A document.addEventListener('DOMContentLoaded', fn);%0A %7D%0A%7D%0Aready(function() %7B%0A
var removeEx
@@ -208,24 +208,26 @@
selector) %7B%0A
+
var htmlSt
@@ -277,16 +277,18 @@
... |
48099b2771b22f312b4cbc916b5b4b4c15e719a4 | debug output | config/express.js | config/express.js |
/**
* Module dependencies.
*/
var express = require('express');
var session = require('cookie-session');
var compression = require('compression');
var morgan = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
va... | JavaScript | 0.000011 | @@ -2516,32 +2516,157 @@
headers.host) %7B%0A
+ console.log('req.headers.host');%0A console.log(req.headers.host);%0A console.log(req.secure);%0A
retu
|
d2178d670f2949f8c89164bdc7e94ed44ce31ecf | Fix identification of BitPay. | src/js/services/send-flow.service.js | src/js/services/send-flow.service.js | 'use strict';
(function(){
angular
.module('bitcoincom.services')
.factory('sendFlowService', sendFlowService);
function sendFlowService(
sendFlowStateService, sendFlowRouterService
, bitcoinUriService, payproService, bitcoinCashJsService
, popupService, gettextCatalog
, $state, $log
) {
... | JavaScript | 0.000001 | @@ -1443,13 +1443,17 @@
(pay
-mentU
+ProData.u
rl.i
|
f7b8a1d9f6f6568a246751fcc2b81034ba0e3ecd | add sourcemap generation when building the module | app/templates/_Gruntfile.js | app/templates/_Gruntfile.js | 'use strict';
module.exports = function (grunt) {
var path = require('path');
// load npm tasks
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
/**
* Gets the index.html file from the code coverage folde... | JavaScript | 0 | @@ -2352,24 +2352,57 @@
= banner %25%3E'
+,%0A sourceMap: true
%0A
|
3e46e67f6d0ff87305105f16692b5a368b21cb29 | Remove trailing whitespace #6168 | src/app/components/media/Media.js | src/app/components/media/Media.js | import React, { Component } from 'react';
import Relay from 'react-relay';
import CheckContext from '../../CheckContext';
import MediaRoute from '../../relay/MediaRoute';
import MediaParentComponent from './MediaParentComponent';
import MediasLoading from './MediasLoading';
const MediaContainer = Relay.createContainer... | JavaScript | 0.999999 | @@ -2901,17 +2901,16 @@
url
-
%0A
@@ -2921,35 +2921,32 @@
%7D
-
%0A
@@ -2947,35 +2947,32 @@
%7D
-
%0A
@@ -2971,35 +2971,32 @@
%7D
-
%0A
@@ -2993,35 +2993,32 @@
%7D
-
%0A ... |
3d1a62e6280ed884f0d84e4045e9590520471545 | fix allVotes resolveAs | packages/vulcan-voting/lib/modules/make_voteable.js | packages/vulcan-voting/lib/modules/make_voteable.js | export const VoteableCollections = [];
export const makeVoteable = collection => {
VoteableCollections.push(collection);
collection.addField([
/**
The current user's votes on the document, if they exists
*/
{
fieldName: 'currentUserVotes',
fieldSchema: {
type: Array,
... | JavaScript | 0.000008 | @@ -1159,20 +1159,22 @@
type: '
+%5B
Vote
+%5D
',%0A
@@ -1277,36 +1277,41 @@
s = Votes.find(%7B
-item
+ document
Id: document._id
@@ -1302,32 +1302,33 @@
Id: document._id
+
%7D).fetch();%0A
@@ -1365,12 +1365,10 @@
urn
-null
+%5B%5D
;%0A
|
22e15baf71456be2184b536edccd26196d16e927 | Fix bug with Vertical Flowlayout and only 1 column fits width. | src/react/Layout/FlowLayout/VerticalFlowLayout.js | src/react/Layout/FlowLayout/VerticalFlowLayout.js | var t = require('tcomb');
var Models = require('../../Model/Models');
var Enums = require('../../Enums/Enums');
var CollectionViewLayoutAttributes = require('../../Layout/CollectionViewLayoutAttributes');
var VerticalSectionLayoutDetails = t.struct({
Frame: Models.Rect,
NumberItems: t.Num,
NumberOfTotalRo... | JavaScript | 0 | @@ -1693,16 +1693,28 @@
lumns) /
+ Math.max(1,
(number
@@ -1728,16 +1728,17 @@
ns - 1))
+)
;%0A va
|
99a43f0282d5115b75a564205ca7d2db31a3a945 | Fix #19304 (#19305) | app/javascript/mastodon/features/report/category.js | app/javascript/mastodon/features/report/category.js | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Option from './components/o... | JavaScript | 0.000003 | @@ -1419,24 +1419,38 @@
tate.get
-(
+In(%5B'server',
'rules'
+%5D
),%0A%7D);%0A%0A
|
1090cf78a0bcaf812841ca46ff6ed81f3838a3d4 | Avoid test ambiguity | lib/momentum.test.js | lib/momentum.test.js | describe('Momentum', function () {
beforeEach(function () {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
});
it('should be available on window', function () {
expect(typeof Momentum).toBe('function');
});
it('should use relative path if no URL provided', function () {
var moment... | JavaScript | 0.998122 | @@ -2741,37 +2741,39 @@
stenCollection('
-table
+rmvtest
', function () %7B
@@ -2836,32 +2836,77 @@
: function () %7B%0A
+ console.log('test');%0A
@@ -3335,37 +3335,39 @@
mentum.remove(%5B'
-table
+rmvtest
', %7Btag: 'tr'%7D%5D)
@@ -3666,29 +3666,31 @@
um.remove(%5B'
-tabl... |
dc020af1a3d13f4c292f33da9705a0ec87aaecf0 | remove the double import for carousel widget container | app/src/containers/CarouselWidgetContainer/index.js | app/src/containers/CarouselWidgetContainer/index.js | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as CarouselWidgetActionCreators from './actions';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import Heading from 'grommet-udacity/co... | JavaScript | 0 | @@ -444,64 +444,8 @@
n';%0A
-import %7B CarouselWidget, MainAside %7D from 'components';%0A
impo
@@ -642,16 +642,47 @@
rAlert,%0A
+ MainAside,%0A CarouselWidget,%0A
%7D from '
|
2f674f17f08852ac59c7d9a21841fd7aae02c578 | Fix date picker on crossroads delivery page | app/views/month-calender.js | app/views/month-calender.js | import Ember from 'ember';
export default Ember.TextField.extend({
tagName: 'input',
classNames: 'pickadate',
attributeBindings: [ "name", "type", "value", "id", 'required', 'pattern', 'available', 'placeholder' ],
didInsertElement: function(){
var _this = this;
var list = this.get('available');
v... | JavaScript | 0 | @@ -362,16 +362,41 @@
%5Btrue%5D;
+%0A var setting = false;
%0A%0A if
@@ -1122,32 +1122,68 @@
t: function() %7B%0A
+ if (setting) %7B return; %7D%0A%0A
var da
@@ -1272,16 +1272,192 @@
, date);
+%0A%0A setting = true;%0A Ember.run.next(() =%3E %7B%0A this.set('... |
b83baa4a697e7f15e65de22b4e394b8948423d5e | update convertGConvertNames #524 #535 | src/server/enrichment-map/gene-validator/index.js | src/server/enrichment-map/gene-validator/index.js | /*
Documentation for g:convert validator:
sample url: http://localhost:3000/api/validatorGconvert?genes=ATM ATP ATM
output: {"unrecogized":["ATP"],"duplicate":["ATM"],"geneInfo":[{"HGNC_symbol":"ATM","HGNC_id":"HGNC:795"}]}
*/
const request = require('request');
const _ = require('lodash');
const { validOrganism } = r... | JavaScript | 0 | @@ -886,11 +886,64 @@
HGNC
-_ID
+SYMBOL') %7B return 'HGNC'; %7D%0A if (gConvertName === 'HGNC
') %7B
@@ -1053,22 +1053,20 @@
me === '
-ENTREZ
+NCBI
GENE') %7B
|
d216a8a09d5cadce045a3b0c384ea8d9497aa1a1 | Fix parnswir issue | src/services/user/services/forcePasswordChange.js | src/services/user/services/forcePasswordChange.js | const { BadRequest } = require('@feathersjs/errors');
const { disallow } = require('feathers-hooks-common');
const { authenticate } = require('@feathersjs/authentication');
const { passwordsMatch } = require('../../../utils/passwordHelpers');
const ForcePasswordChangeServiceHooks = {
before: {
all: [],
find: disa... | JavaScript | 0.000044 | @@ -1965,40 +1965,18 @@
s =
-function () %7B%0A%09const
+(
app
+)
=
- this;
+%3E %7B
%0A%09ap
|
2241d67d4baf50fbe9a504b83114742fe64091f4 | Add ability to type negative numbers in smpl mode (#168) | src/Components/FormattedNumberInput/FormattedNumberInput.js | src/Components/FormattedNumberInput/FormattedNumberInput.js | // @flow
import * as React from "react";
import numeral from "numeral";
import FilteredInput from "../FilteredInput/FilteredInput";
import type { FilterValueResult } from "../FilteredInput/FilteredInput";
type FormattedNumberInputProps = {
viewFormat?: ?string,
editFormat?: ?string,
value: ?number,
ali... | JavaScript | 0 | @@ -606,16 +606,19 @@
xp = /%5E%5C
+-?%5C
s*%5Cd*(%5C.
|
4848df51d4895e7ef4a65a3074de91db3f78aed8 | remove g in regex test | jquery.actual.js | jquery.actual.js | /*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 1.0.13
*
* Requires: jQuery 1.2.3 ~ 1.8.2
*/
;( function ( $ ){
$.fn.extend({
actual : function ( method, options ){
// check if the jQuery method exist
if( !this[ method ]){
... | JavaScript | 0.000004 | @@ -2504,17 +2504,16 @@
(outer)/
-g
.test( m
|
fb7b84e0586b433aa620ce5890ef0d784f5e0c5e | fix answer agrees bug | lib/parser/answer.js | lib/parser/answer.js | const cheerio = require('cheerio')
const util = require('./util')
const urls = require('../urls')
const getAttr = util.getAttr
const getText = util.getText
const getData = util.getData
const toNum = util.toNum
module.exports = {
parseAnswersByVote,
parseAnswersByPage,
parseUserAnswers,
parseAnswer
}
... | JavaScript | 0.001018 | @@ -1188,21 +1188,18 @@
.zm-
-votebar .up .
+item-vote-
coun
@@ -2005,32 +2005,38 @@
es:
-toNum(getText(agreesEle)
+getData(agreesEle, 'votecount'
),%0A
|
bd402809283fe6e01c5f1a355be4f25f4eb679fd | Add file path and file content | lib/parser/parser.js | lib/parser/parser.js | 'use babel'
var fs = require('fs');
var _ = require('lodash');
export default class Parser {
constructor() {
}
/*
let storeData = {
"md_act_get_by_event_type_service_id":{
"return":"integer",
"params": {
"in": [{"name":"m_event_type_service_id", "type":"integer"}],
}
},
"md_comm_type_get... | JavaScript | 0 | @@ -1428,16 +1428,104 @@
ntent);%0A
+ functionData%5B'path'%5D = filePath;%0A functionData%5B'content'%5D = fileContent;%0A
|
75554404f39a41b0eb8912e6f236b666acf36640 | Add styling for select tag. | lib/periodic-view.js | lib/periodic-view.js | 'use babel';
/* @flow */
import {$, View} from "space-pen";
import path from "path";
import sqlite3 from "sqlite3";
export default class PeriodicView extends View {
static content() {
this.div({class: "periodic"}, () => {
this.div({class: "structure periodic-tab"}, () => {
this.ul({class: "tables-... | JavaScript | 0 | @@ -590,21 +590,115 @@
his.
-select(%7Bclass
+div(%7Bclass: %22settings-view select-container%22%7D, () =%3E %7B%0A this.select(%7Bclass: %22form-control%22, %22id%22
: %22p
@@ -709,21 +709,21 @@
dic-
-dropdown
+select
%22%7D);%0A
+
@@ -776,24 +776,38 @@
%22Refresh%22);%0A
+ %7D);%0A
... |
9d9abbf5ca332dfe7b752dbaedf23f018a27ce4f | Fix sidebar collapse states, fixes #3 | Wikipedia_ToggleSidebar/wikipedia_toggle-sidebar.user.js | Wikipedia_ToggleSidebar/wikipedia_toggle-sidebar.user.js | // ==UserScript==
// @name Wikipedia - Toggle Sidebar
// @description Adds a small button to hide or show the sidebar. Makes reading easier.
// @version 0.2.1
// @author Arthur Hammer
// @namespace https://github.com/arthurhammer
// @license MIT
// @homepage https://github.com/arthurhamm... | JavaScript | 0 | @@ -164,17 +164,17 @@
0.2.
-1
+2
%0A// @aut
@@ -2728,16 +2728,17 @@
(
+!
sidebar.
@@ -2755,10 +2755,10 @@
lay
-&&
+%7C%7C
sid
|
f602bcc896f92e8953a74c801e05bd9a3febc8a8 | clean up loging | lib/plugins/bgnow.js | lib/plugins/bgnow.js | 'use strict';
var _ = require('lodash');
var times = require('../times');
var offset = times.mins(2.5).msecs;
function init() {
var bgnow = {
name: 'bgnow'
, label: 'BG Now'
, pluginType: 'pill-primary'
};
bgnow.setProperties = function setProperties (sbx) {
sbx.offerProperty('bgnow', functio... | JavaScript | 0 | @@ -1504,111 +1504,8 @@
);%0A%0A
-// _.forEach(buckets, function log (bucket) %7B%0A// console.info('%3E%3E%3Ebucket', bucket);%0A// %7D);%0A%0A
@@ -3203,19 +3203,16 @@
e.info('
-%3E%3E%3E
all buck
@@ -3336,15 +3336,16 @@
fo('
-%3E%3E%3Enext
+previous
buc
@@ -3357,16 +3357,39 @@
ot found
+, not ... |
dc67806505e325d5747a98247c75c0ca672701aa | add differenceFromLast position to drag event | js/Event/drag.js | js/Event/drag.js | /*
"Drag" event proxy (1+ fingers).
----------------------------------------------------
CONFIGURE: maxFingers, position.
----------------------------------------------------
Event.add(window, "drag", function(event, self) {
console.log(self.gesture, self.state, self.start, self.x, self.y, self.bbox);
});
*/
i... | JavaScript | 0 | @@ -1741,16 +1741,202 @@
tion ===
+ %22differenceFromLast%22) %7B%0A%09%09%09%09self.x = (pt.pageX - pt.offsetX);%0A%09%09%09%09self.y = (pt.pageY - pt.offsetY);%0A%09%09%09%09pt.offsetX = pt.pageX;%0A%09%09%09%09pt.offsetY = pt.pageY;%0A%09%09%09%7D else if (conf.position ===
%22relati
@@ -2000,22 +2000,8 @@
etX)
... |
8ef94e4941bdfe42ff570388c0d8b9d2ca8cdff7 | Refactor Group#match | lib/pointer/group.js | lib/pointer/group.js | 'use strict';
var getSortedKeys = require('./common').getSortedKeys;
////////////////////////////////////////////////////////////////////////////////
function Group() {
this.__routes__ = {};
this.__prefixes__ = [];
}
// Group#push(route) -> Void
// - route (Route):
//
// Adds `route` to the group.
//
Gro... | JavaScript | 0 | @@ -1152,22 +1152,17 @@
if (
-prefix
+0
!== pat
@@ -1167,30 +1167,22 @@
ath.
-slice(0, prefix.length
+indexOf(prefix
)) %7B
|
6498610aea70f42487b17d08a35417b553e9a26f | remove redundant | lib/postcssToCsso.js | lib/postcssToCsso.js | var parse = require('csso').parse;
function isDecl(node) {
return node.type === 'decl';
}
function appendNodes(cssoNode, postcssNode) {
cssoNode.push.apply(cssoNode, postcssNode.nodes.map(walk));
return cssoNode;
}
function walk(node) {
function parseToCsso(str, scope, node) {
var cssoNode = ... | JavaScript | 0.999999 | @@ -191,20 +191,29 @@
des.map(
-walk
+postcssToCsso
));%0A
@@ -241,20 +241,29 @@
unction
-walk
+postcssToCsso
(node) %7B
@@ -902,30 +902,63 @@
return %5B
-getInfo(node),
+%0A getInfo(node),%0A
'rulese
@@ -1206,127 +1206,26 @@
me +
-%0A (node.raws.afterName %7C%7... |
30ff77291bbe958f4d1a080ad781dd71bac0d9a0 | Update ocRolesService.UserIsAuthorize to support RoleGroups | src/app/common/services/oc-roles/oc-roles.js | src/app/common/services/oc-roles/oc-roles.js | angular.module('orderCloud')
.factory('ocRolesService', OrderCloudRolesService)
.provider('ocRoles', OrderCloudRolesProvider)
;
function OrderCloudRolesService($window, OrderCloudSDK) {
var service = {
Set: _set,
Get: _get,
Remove: _remove,
UserIsAuthorized: _userIsAuthorize... | JavaScript | 0 | @@ -170,16 +170,25 @@
$window,
+ ocRoles,
OrderCl
@@ -1852,17 +1852,8 @@
r a
-required
arra
@@ -1862,16 +1862,360 @@
of roles
+ and/or Role Groups%0A //Role Groups use the group's Type setting. Individual roles use the any parameter when combined%0A //Ex: ocRolesService.UserIsAuthorized(%5B'CategoryReader... |
41bf9741ffb4c18851ae2383d511562dde604541 | rearrange initialisation | examples/basic-site-integration-overlay/src/index.js | examples/basic-site-integration-overlay/src/index.js | import React from "react";
import ReactDOM from "react-dom";
import Analytics from "sajari-react/pipeline/analytics";
import { State } from "sajari-react/pipeline/state";
import loaded from "./loaded";
import Overlay from "./Overlay";
import InPage from "./InPage";
import SearchResponse from "./SearchResponse";
impor... | JavaScript | 0.00126 | @@ -995,31 +995,24 @@
%0A%0Aconst
-initialiseState
+combined
Values =
@@ -1494,45 +1494,8 @@
%7D%0A%0A
- const userValues = config.values;%0A%0A
co
@@ -1568,13 +1568,16 @@
...
-userV
+config.v
alue
@@ -1587,231 +1587,68 @@
%7D;%0A
-%0A
-const isQueryValueSet = Boolean(combinedValues.q);%0A _state.set... |
2617b481eabeff7bdf2d4c1f3cd6fd88d3752eb8 | Move to single line Components declar. | bootstrap.js | bootstrap.js | const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import('resource://gre/modules/Services.jsm');
const EXAMPLE_URI = 'http://rss.cnn.com/rss/cnn_topstories.rss';
var menuID;
// TODO: Not this.
function log(s) { Services.console.logStringMessage(s); }
function replaceD... | JavaScript | 0 | @@ -3,75 +3,50 @@
nst
-Cc = Components.classes;%0Aconst Ci = Components.interfaces;%0Aconst
+%7B classes: Cc, interfaces: Ci, utils:
Cu
+ %7D
= C
@@ -58,14 +58,8 @@
ents
-.utils
;%0A%0AC
|
b159ff3fa6a7cd5a3cd45cbaf38173790d7e3229 | Fix accidental exclusion of coffeelint from CI | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
mocha = require('gulp-mocha'),
jshint = require('gulp-jshint'),
coffeelint = require('gulp-coffeelint'),
jshintStylish = require('jshint-stylish');
//
// fail builds if jshint reports an error
gulp.task('jshint', function () {
gulp.src(['**/*.js', '!node_m... | JavaScript | 0.000018 | @@ -1385,21 +1385,35 @@
, %5B'
-test', 'jshin
+jshint', 'coffeelint', 'tes
t'%5D)
|
7a808e6d536c91655f68a7b290b773ae1b320e75 | Fix location name and absent values in ZA adapter | adapters/southafrica.js | adapters/southafrica.js | /**
* This code is responsible for implementing all methods related to fetching
* and returning data for the South African data sources.
*/
'use strict';
import { REQUEST_TIMEOUT } from '../lib/constants';
import { default as baseRequest } from 'request';
import { default as moment } from 'moment-timezone';
import ... | JavaScript | 0 | @@ -2185,50 +2185,14 @@
on:
-(s.location===%22N/A%22) ? s.name : s.location
+s.name
,%0A
@@ -2564,16 +2564,34 @@
null &&
+ v.value !== '' &&
v.DateV
@@ -2604,17 +2604,16 @@
null) %7B
-
%0A
@@ -2696,29 +2696,8 @@
ue =
- (v.value===%22%22) ? 0 :
Num
|
29ebeea3ab9c664985f94d129de5061dd273d3e3 | Put all failures on top of report | tools/ivwpy/regression/resources/main.js | tools/ivwpy/regression/resources/main.js | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2016 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | JavaScript | 0.000001 | @@ -3220,66 +3220,66 @@
test
-failures', %7B order: %22desc%22 %7D);%0A%09userList.sort('testmodule'
+module');%0A%09userList.sort('testfailures', %7B order: %22desc%22 %7D
);%0A%0A
|
bb0cf652be8c424751f7f7d55c38eff62659b748 | Patch for issue #329 | lib/recurly/relay.js | lib/recurly/relay.js | var bind = require('component-bind');
var events = require('component-event');
var errors = require('../errors');
var debug = require('debug')('recurly:relay');
module.exports = relay;
/**
* Relay mixin.
*
* Inspects the window for intent to relay a message,
* then attempts to send it off. closes the window once
... | JavaScript | 0 | @@ -570,24 +570,82 @@
r (event) %7B%0A
+ if (event.origin === 'https://api.recurly.com') %7B%0A
var data
@@ -671,24 +671,28 @@
.data);%0A
+
+
var name = d
@@ -710,16 +710,20 @@
_event;%0A
+
var
@@ -751,16 +751,20 @@
essage;%0A
+
var
@@ -822,16 +822,20 @@
: null;%0A
+
... |
396273b79afcd65662aef76982b68849d8774b5d | Fix FigureConverter. | src/article/converter/r2t/FigureConverter.js | src/article/converter/r2t/FigureConverter.js | export default class FigureConverter {
get type () { return 'figure' }
// ATTENTION: this converter will create either a <fig> or a <fig-group>
// element depending on the number of Figure panels
get tagName () { return 'fig' }
matchElement (el, importer) {
if (el.is('fig') || el.is('fig-group')) {
... | JavaScript | 0 | @@ -226,16 +226,19 @@
urn 'fig
+ure
' %7D%0A%0A m
@@ -482,25 +482,26 @@
ext.
-tagName !== 'fig'
+converter !== this
%0A
|
49b5bd01337efe6e80137a378e116030fc16b4a2 | include new class | src/main/resources/static/js/main.js | src/main/resources/static/js/main.js | import SideNav from "./side-nav";
import CheckBoxes from "./checkboxes";
import AutoCompleteSubjects from "./autocomplete-subjects";
import AutoCompleteLecturerForSubjects from "./autocomplete-lecturer-for-subject";
import Select from "./select";
import Modals from "./modals";
// Flash Messages
const showMessage = (me... | JavaScript | 0.000013 | @@ -62,24 +62,88 @@
heckboxes%22;%0A
+import AutoCompleteCourseTags from %22./autocomplete-course-tags%22%0A
import AutoC
@@ -656,32 +656,139 @@
.initialize();%0A%0A
+ const autoCompleteCourseTags = new AutoCompleteCourseTags();%0A autoCompleteCourseTags.initialize();%0A%0A
const autoCo
|
4ca5b657acf484bd479362cb3beb1ff9c10445c4 | Remove console logger. | src/article/shared/ReferenceListComponent.js | src/article/shared/ReferenceListComponent.js | import { Component } from 'substance'
import { NodeModelFactory } from '../../kit'
export default class ReferenceListComponent extends Component {
didMount () {
// TODO: as we have a node for references now, we should turn this into a NodeComponent instead
this.context.appState.addObserver(['document'], this... | JavaScript | 0 | @@ -715,31 +715,8 @@
) %7B%0A
- console.log('MEH')%0A
|
31b9344d5649a4cef21ac2bc4814bb001777dabf | update spec for audience tags | tutor/specs/models/course.spec.js | tutor/specs/models/course.spec.js | import { map, cloneDeep, shuffle } from 'lodash';
import Courses from '../../src/models/courses-map';
import Course from '../../src/models/course';
import PH from '../../src/helpers/period';
import { autorun } from 'mobx';
import { bootstrapCoursesList } from '../courses-test-data';
import COURSE from '../../api/cour... | JavaScript | 0 | @@ -1,16 +1,71 @@
+import UiSettings from 'shared/src/model/ui-settings';%0A
import %7B map, cl
@@ -1449,32 +1449,70 @@
tags', () =%3E %7B%0A
+ UiSettings.get = jest.fn(() =%3E 2)%0A
expect(Cours
|
d007a2367c52cb8d9038de3bcde26519bd27b4f3 | Fix output options | src/endpoints/Data.js | src/endpoints/Data.js | "use strict";
const RequestResults = require("../constants/RequestResults");
const Utils = require("../utils/Utils");
let _token = null;
let _requester = null;
function setOpt(request, opts, name) {
const temp = {};
if (opts[name]) {
temp[name] = opts[name];
request.query(temp);
}
}
modul... | JavaScript | 0.999999 | @@ -708,30 +708,29 @@
if (context.
-series
+field
Name) %7B%0A
@@ -771,14 +771,13 @@
ext.
-series
+field
Name
@@ -813,17 +813,17 @@
.deviceI
-D
+d
) %7B%0A
@@ -926,9 +926,9 @@
iceI
-D
+d
+ %22
@@ -1971,16 +1971,33 @@
%7D else
+ if (opts.output)
%7B%0A
@@ -2020,40 +2020,75 @@
og(%22
-Invalid ... |
2179e84969fc908aa4f7652086b5e18d6f03a718 | check params first | src/administrative-sdk/speech-challenge/speech-challenge.js | src/administrative-sdk/speech-challenge/speech-challenge.js | /**
* @class SpeechChallenge domain model.
*/
export default class SpeechChallenge {
/**
* Create a speech SpeechChallenge domain model.
*
* @param {?string} id - The speech challenge identifier. If none is given, one is generated.
* @param {?string} topic - A question or topic serving as guidance.
*... | JavaScript | 0.000001 | @@ -1063,140 +1063,8 @@
%7D
-%0A /**%0A * The speech challenge identifier. If none is given, one is generated.%0A * @type %7Bstring%7D%0A */%0A this.id = id;
%0A%0A
@@ -1210,118 +1210,8 @@
%7D
-%0A /**%0A * A question or topic serving as guidance.%0A * @type %7Bstring%7D%0A *... |
c5835f41716d8291716717cb6b202ccc9ee595dd | Update contact_me.js | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
// Prevent spam click and default submit behaviour
... | JavaScript | 0 | @@ -1192,32 +1192,33 @@
message: message
+,
%0A
|
ef9ca41982e53290270c4b1ebd541b507034ccad | handle null options in button api | src/runtime/button-api.js | src/runtime/button-api.js | /**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
* 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
*
* U... | JavaScript | 0 | @@ -2901,33 +2901,32 @@
on%0A * @param %7B
-!
../api/subscript
@@ -2966,32 +2966,32 @@
tionsOrCallback%0A
+
* @param %7Bfun
@@ -3596,33 +3596,32 @@
*%0A * @param %7B
-!
../api/subscript
@@ -3851,24 +3851,45 @@
*/%0A (
+optionsOrCallback &&
typeof optio
@@ -4646,32 +4646,32 @@
Element%7D button%... |
189dcc16fca88d1c958d7531663dfa43c92dcaf6 | stringify the data. duh (#21448) | src/applications/personalization/dashboard/actions/notifications.js | src/applications/personalization/dashboard/actions/notifications.js | import recordEvent from 'platform/monitoring/record-event';
import { apiRequest } from '~/platform/utilities/api';
import environment from '~/platform/utilities/environment';
export const NOTIFICATIONS_RECEIVED_STARTED = 'NOTIFICATIONS_RECEIVED_STARTED';
export const NOTIFICATIONS_RECEIVED_SUCCEEDED =
'NOTIFIC... | JavaScript | 1 | @@ -2492,16 +2492,31 @@
body:
+JSON.stringify(
%7B%0D%0A
@@ -2580,32 +2580,33 @@
%7D,%0D%0A %7D
+)
,%0D%0A %7D;%0D%0A%0D%0A
|
005e7cce80deb576d514b3b50282b2a151235254 | Remove overloaded API from explicit module (one or t'other) | explicit.js | explicit.js | function P(target){
for(var i = 1; i < arguments.length; i++)
for(var key in arguments[i])
if(arguments[i].hasOwnProperty(key))
(arguments[i][key] === D || arguments[i][key] === O)
? delete target[key]
: target[key] =
arguments[i][key] instanceof S
? arguments[i][... | JavaScript | 0 | @@ -780,187 +780,8 @@
%7B%7D%0A%0A
-function O(x)%7B%0A return arguments.length%0A ? 1 %3C arguments.length%0A ? P.apply(null, arguments)%0A : typeof x === 'function'%0A ? new S(x)%0A : PS(x)%0A : D%0A%7D%0A%0A
try
@@ -830,14 +830,8 @@
D: D
-, O: O
%7D%0A%7D
|
bcf74c0c5f87c9839535f8e1d851f0514232541d | Add support for http proxy environment variables | lib/requests/http.js | lib/requests/http.js | var http = require('http');
var https = require('https');
var url = require('url');
var parseResponse = require('./helpers/parseResponse');
/**
* Sends a request to given URL with given parameters
*
* @param {string} method - Method of the request.
* @param {string} uri - Request URI.
* @param {any} responsePara... | JavaScript | 0 | @@ -1219,22 +1219,24 @@
var
-isHttp
+protocol
= parse
@@ -1252,20 +1252,80 @@
ocol
- === 'http:'
+.replace(':','');%0A var interface = protocol === 'http' ? http : https
;%0A%0A
@@ -1506,46 +1506,698 @@
-var interface = isHttp ? http : https;
+if (process.env%5B%60$%7Bprotocol%7D_proxy%60%5D) %7B%0A... |
c61208afe1c24548aedf38f826d3ae34ea59991f | Make helper function for dependencies | config/make_webpack_config.js | config/make_webpack_config.js | var path = require('path'),
baseDir = path.resolve(__dirname, '..'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin"),
node_modules = path.resolve(baseDir, 'node_modules'),
pathToReact = path.resolve(node_modules, 'react/di... | JavaScript | 0.000004 | @@ -262,81 +262,8 @@
s'),
-%0A pathToReact = path.resolve(node_modules, 'react/dist/react.min.js'),
%0A%0A
@@ -418,16 +418,68 @@
.jade'))
+%0A%0A deps = %5B%0A 'react/dist/react.min.js'%0A %5D
;%0A%0Amodul
@@ -696,24 +696,24 @@
resolve: %7B%0A
+
alias:
@@ -718,44 +718,8 @@
s: %7B
-%0A ... |
01a053dbca0574900a64a4075bb84f5ae16aee54 | add lookup unit tests | tests/unit/instance-initializers/router-service-test.js | tests/unit/instance-initializers/router-service-test.js | import { initialize } from 'dummy/instance-initializers/router-service';
import { module, test } from 'qunit';
import sinon from 'sinon';
module('Unit | Instance Initializer | router service');
test('ensure register is called for 1.13', function(assert) {
let register = sinon.spy();
let appInstance = {
conta... | JavaScript | 0 | @@ -115,153 +115,312 @@
ort
-sinon from 'sinon';%0A%0Amodule('Unit %7C Instance Initializer %7C router service');%0A%0Atest('ensure register is called for 1.13', function(assert) %7B%0A let
+%7B copy %7D from 'ember-metal/utils';%0Aimport sinon from 'sinon';%0A%0Aconst router = %7B testProp: 'test val' %7D;%0A%0Alet... |
246636896f5be3b8e4a0a21847d3c4bd5f29adc7 | Update contact_me js to prevent additional dialogs | js/contact_me.js | js/contact_me.js | // Contact Form Scripts
$(function() {
$("#contactForm input,#contactForm textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // pre... | JavaScript | 0 | @@ -1,29 +1,4 @@
-// Contact Form Scripts%0A%0A
$(fu
@@ -753,16 +753,174 @@
%7D%0A
+ $this = $(%22#sendMessageButton%22);%0A $this.prop(%22disabled%22, true); // Disable submit button until AJAX call is complete to prevent duplicate messages%0A
$.
@@ -1258,36 +1258,8 @@
cess
- alert-dismissabl... |
7e1acd309333ee24a7e8fdadb9cc21a4bf00aad4 | Fix invalid reassign | Sources/Rendering/OpenGL/Skybox/test/testSkyboxBackground.js | Sources/Rendering/OpenGL/Skybox/test/testSkyboxBackground.js | import vtkSkybox from 'vtk.js/Sources/Rendering/Core/Skybox';
import vtkHttpDataSetReader from 'vtk.js/Sources/IO/Core/HttpDataSetReader';
import vtkOpenGLRenderWindow from 'vtk.js/Sources/Rendering/OpenGL/RenderWindow';
import vtkTexture from 'vtk.js/Sources/Rendering/Core/Texture';
import vtkRenderer from 'vtk.js/Sou... | JavaScript | 0 | @@ -2174,22 +2174,8 @@
ath,
- textureImage,
end
@@ -2378,24 +2378,30 @@
%3E %7B%0A
+const
textureImage
@@ -2736,32 +2736,8 @@
ube%0A
- const texture = null;%0A
lo
@@ -2755,17 +2755,8 @@
ath,
- texture,
cal
|
e685df36511750914ca8d1a3cf89508c70e1ffed | update attributes values | codeacad_this3.js | codeacad_this3.js | var rectangle = new Object();
rectangle.height = 3;
rectangle.width = 4;
// here is our method to set the height
rectangle.setHeight = function (newHeight) {
this.height = newHeight;
};
// help by finishing this method
rectangle.setWidth = function (newWidth){
this.width = newWidth;
};
| JavaScript | 0.000001 | @@ -290,8 +290,124 @@
;%0A%7D;%0A %0A
+// here change the width to 8 and height to 6 using our new methods%0Arectangle.setWidth (8);%0Arectangle.setHeight (6);
|
77d5ce030665a01149bfe92dddb203a1fdcb43b9 | Update contact_me.js | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | 0 | @@ -906,16 +906,51 @@
o.za%22, %0A
+ crossDomain: true,%0A
|
2ed2e4776c3506b995888ab282a39f699b6638e1 | Make compatible with RN 0.26 | index.ios.js | index.ios.js | 'use strict';
import React, {
AppRegistry,
Component,
View,
PickerIOS,
StyleSheet
} from 'react-native';
export default class TimePicker extends Component {
constructor(props) {
super(props);
this._hours = [];
this._minutes = [];
for (let j = 0; j < 24 * (this.props.loop ? 100 : 1); j++) {
this._ho... | JavaScript | 0 | @@ -23,16 +23,51 @@
React, %7B
+ Component %7D from 'react';%0Aimport %7B
%0A%09AppReg
@@ -77,20 +77,8 @@
ry,%0A
-%09Component,%0A
%09Vie
|
4da0ca8810b94f0f58d4495b8dd4df32a624e100 | Fix item opacity | src/chart/common/opacityVisual.js | src/chart/common/opacityVisual.js | export default function (seriesType, ecModel, api) {
return {
seriesType: seriesType,
reset: function (seriesModel, ecModel) {
var data = seriesModel.getData();
var opacityAccessPath = seriesModel.visualColorAccessPath.split('.');
opacityAccessPath[opacityAccessPa... | JavaScript | 0.000001 | @@ -505,16 +505,22 @@
ataEach(
+data,
idx) %7B%0A
@@ -635,16 +635,22 @@
cessPath
+, true
);%0A
|
1f00ed6cc6b69cb07ae67d8164a8bd369f173c26 | Remove unused initAvailableOptionsList method. | jquery.roland.js | jquery.roland.js | /**
* Add and delete 'rows' to any container element.
*
* @author Stephen Lewis (http://github.com/experience/)
* @copyright Experience Internet
* @version 1.1.0
*/
(function($) {
$.fn.roland = function(options) {
var opts = $.extend({}, $.fn.roland.defaults, options);
return this.ea... | JavaScript | 0 | @@ -3585,321 +3585,8 @@
*/%0A%0A
- // Initialises the 'available options' list for the specified select field.%0A function initAvailableOptionsList($select)%0A %7B%0A var options = %7B%7D;%0A $select.find('option').each(function() %7B%0A options%5B$(this).attr('value')%5D = $(this).te... |
7a0efd67b74c3cd2ba8866faac95b1df8e8fb0c2 | fix spelling mistake | index.web.js | index.web.js | /* eslint no-console:0 */
// export components to browser's window for `dist/antd-mobile.js`
var req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.web\.tsx?$/);
req.keys().forEach((mod) => {
req(mod);
});
module.exports = require('./components');
if (typeof console !== 'undefined' && con... | JavaScript | 0.999999 | @@ -342,17 +342,17 @@
e.warn(%60
-y
+Y
ou are u
@@ -363,17 +363,17 @@
prebuil
-d
+t
antd-mo
|
6bf462afd8fcb44df3ad62f0a157ce69e5c4c1a8 | Update production task🚀 | gulpfile.js | gulpfile.js | /* eslint-disable */
const gulp = require('gulp');
const tasks = require('strt-gulpfile')({
src: 'src',
dist: 'public/dist',
});
gulp.task('default', gulp.series(
tasks.clean,
gulp.parallel(
tasks.styles,
tasks.images,
tasks.files,
tasks.icons,
tasks.scripts
),
tasks.serve
));
gulp.ta... | JavaScript | 0 | @@ -329,31 +329,16 @@
uction',
- gulp.series(%0A
gulp.pa
@@ -337,34 +337,32 @@
gulp.parallel(%0A
-
tasks.styles,%0A
@@ -353,34 +353,32 @@
tasks.styles,%0A
-
tasks.images,%0A
@@ -369,34 +369,32 @@
tasks.images,%0A
-
tasks.files,%0A
@@ -386,34 +386,32 @@
tasks.files,%0A
-
-
tasks.icons,... |
341c3e1e494da8d1454ded0af23fb880f048e9a7 | Remove unused validation function and leverage ajv directly | lib/schemas/index.js | lib/schemas/index.js | const Ajv = require('ajv');
const predefined = require('./predefined');
const logger = require('../../lib/logger').gateway;
const ajv = new Ajv({
schemas: predefined,
useDefaults: true
});
const buildKey = (type, name) => `${type}:${name}`;
const registeredKeys = predefined.map((predefinedSchema) => ({
type: '... | JavaScript | 0 | @@ -916,16 +916,54 @@
ped.%60);%0A
+ return () =%3E (%7B isValid: true %7D);%0A
%7D else
@@ -1133,227 +1133,43 @@
=%3E
-validate(type, name, data);%0A%7D%0A%0Afunction validate (type, name, data) %7B%0A const key = buildKey(type, name);%0A const compiled = ajv.getSchema(key);%0A if (compiled) %7B%0A con... |
9a1da7ba454313cd2c24e6b74ed4ed8937d1bd04 | fix field | src/garment-purchasing/delivery-order-item-fulfillment-validator.js | src/garment-purchasing/delivery-order-item-fulfillment-validator.js | require("should");
var validateProduct = require('../master/product-validator');
var validateSupplier = require('../master/supplier-validator');
var validateUom = require('../master/uom-validator');
var validateCurrency = require('../master/currency-validator');
module.exports = function (data) {
data.should.have... | JavaScript | 0.000001 | @@ -644,35 +644,32 @@
'purchaseRequest
-Ref
No');%0A data.p
@@ -674,35 +674,32 @@
.purchaseRequest
-Ref
No.should.instan
|
8add3dde5bc36d881017415118c6b4ee5a66e145 | add "px" while creating css for box | js/dataloader.js | js/dataloader.js |
//add or update label box
function updateLabelBox(box_el){
var imgName = $('#img').attr("label");
var boxlbl = $(box_el).attr("label");
if(!boxlbl || boxlbl === "") {
throw Error("All the label boxes must be labelled");
}else{
if(!images[imgName]){
images[imgName] = {
... | JavaScript | 0.000001 | @@ -3183,24 +3183,31 @@
%5Bboxlbl%5D.top
+ + %22px%22
,%0A
@@ -3236,24 +3236,32 @@
boxlbl%5D.left
+ + %22px%22
,%0A
@@ -3296,16 +3296,23 @@
l%5D.width
+ + %22px%22
,%0A
@@ -3353,16 +3353,23 @@
%5D.height
+ + %22px%22
%0A
@@ -3623,32 +3623,205 @@
ty(pointlbl)) %7B%0A
+ ... |
9dd4febad670c662db31f6590d77cb5dff6b21ce | mangle false | config/webpack.prod.config.js | config/webpack.prod.config.js | // ```
// @datatype_void
// david.r.niciforovic@gmail.com
// webpack.prod.js may be freely distributed under the MIT license
// ```
//# Common Configuration and Helpers
var helpers = require('./helpers');
// Use `webpack-merge` to merge configs
var webpackMerge = require('webpack-merge');
// Common `webpack` configura... | JavaScript | 0.999952 | @@ -4408,24 +4408,54 @@
e %7D, //prod%0A
+ mangle: false,%0A /*%0A
mangle
@@ -5864,24 +5864,33 @@
%7D, // prod%0A
+ */%0A
compre
|
c8d1c693eb5b0823818f44bc246462f36d4e9c3e | fix 404 in deployment | config/index.js | config/index.js | // see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPat... | JavaScript | 0 | @@ -320,16 +320,19 @@
th: '/sw
+api
-shop-vu
@@ -332,18 +332,21 @@
shop-vue
-js
+-vuex
',%0A p
|
deef6104e75f2ff339661a94dad62f7cfceb26f8 | Tweak embed vid playing | js/docs.video.js | js/docs.video.js | // From http://stackoverflow.com/questions/979975/how-to-get-the-value-from-the-get-parameters
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
va... | JavaScript | 0 | @@ -2640,16 +2640,20 @@
et()
+.top
- 200);
%0A
@@ -2652,57 +2652,8 @@
00);
-%0A embeddedPlayers%5Bi%5D.player.playVideo();
%0A%0A
@@ -2838,32 +2838,81 @@
ss('expanded');%0A
+ embeddedPlayers%5Bi%5D.player.playVideo();%0A
%7D%0A
|
95ea3fd47302e66a7fe8005629c05abec1461d48 | handle minute:seconds format for Rafi | js/docs.video.js | js/docs.video.js | // 2. This code loads the IFrame Player API code asynchronously.
if ($('#main-video').is('*')) {
var $videoOuter = $('#subpage-intro-video');
var $videoInner = $videoOuter.find('.docs-video-inner');
var videoId = $('#main-video').data().video;
var tag = document.createElement('script');
tag.src = "https://w... | JavaScript | 0.000009 | @@ -1810,16 +1810,147 @@
var
+time = $(this).data().openVideo;%0A var sections = String(time).split(':');%0A var seconds;%0A if(sections.length %3E 1) %7B %0A
seconds
@@ -1954,16 +1954,22 @@
ds =
+ (60 *
Number(
$(th
@@ -1968,34 +1968,100 @@
ber(
-$(this).data().openVideo);
+sections%5B0%5D)... |
e26a90cc57a19b5623d92333a0667aad24b19925 | copy fonts for dist | gulpfile.js | gulpfile.js | /* jshint node: true */
var gulp = require("gulp"),
plumber = require("gulp-plumber")
watch = require("gulp-watch"),
less = require("gulp-less"),
webserver = require("gulp-webserver");
gulp.task("less-prod", function() {
gulp.src("src/less/suurjako.less")
.pipe(plumber())
.pipe(less({
c... | JavaScript | 0 | @@ -1003,19 +1003,121 @@
s-prod%22%5D
+, function() %7B%0A gulp.src(%22bower_components/fontawesome/fonts/*%22)%0A .pipe(gulp.dest(%22app/fonts%22))%0A%7D
);%0A
+%0A
gulp.tas
|
fbe343c8697c8ef3ccb1eddd2a5cb163024c8b79 | clean build/img before writing new images on the default task - prevents deleted images from still existing there | gulpfile.js | gulpfile.js | // Gulp
var gulp = require('gulp');
// Plugins
var browserSync = require('browser-sync');
var cache = require('gulp-cache');
var clean = require('gulp-clean');
var concat = require('gulp-concat');
var htmlv = require('gulp-html-validator');
var imagemin = require('gulp-imagemin');
var jshint = require('gulp-jshint');
... | JavaScript | 0 | @@ -2008,32 +2008,137 @@
plete!'));%0A%7D);%0A%0A
+gulp.task('clean-images', function() %7B%0A%09return gulp.src(destPaths.images+'/**/*')%0A%09%09.pipe(clean());%0A%7D);%0A%0A
// Compress Imag
@@ -2151,32 +2151,50 @@
p.task('images',
+ %5B'clean-images'%5D,
function() %7B%0A%09r
|
13975ebc0b8253e12b746d88f97d2a2d7f4c91ea | Throw errors that cause a redirect to make debugging easier | ui/app/controllers/application.js | ui/app/controllers/application.js | import Ember from 'ember';
const { Controller, computed } = Ember;
export default Controller.extend({
error: null,
errorStr: computed('error', function() {
return this.get('error').toString();
}),
errorCodes: computed('error', function() {
const error = this.get('error');
const codes = [error.co... | JavaScript | 0 | @@ -49,16 +49,39 @@
computed
+, inject, run, observer
%7D = Emb
@@ -120,16 +120,45 @@
xtend(%7B%0A
+ config: inject.service(),%0A%0A
error:
@@ -776,13 +776,173 @@
);%0A %7D),
+%0A%0A throwError: observer('error', function() %7B%0A if (this.get('config.isDev')) %7B%0A run.next(() =%3E %7B%0A th... |
3cf7af934aadf6f27db6256768ff7c3962aa6570 | Add more semi-colons | uw-frame-components/portal/notifications/controllers.js | uw-frame-components/portal/notifications/controllers.js | 'use strict';
define(['angular'], function(angular) {
var app = angular.module('portal.notifications.controllers ', []);
app.controller('PortalNotificationController', [ '$scope',
'$rootScope',
'$location',
... | JavaScript | 0.000084 | @@ -2293,24 +2293,25 @@
%7D%0A %7D
+;
%0A%0A var su
@@ -5035,24 +5035,25 @@
mode;%0A %7D
+;
%0A%0A var in
@@ -6406,24 +6406,25 @@
%7D%0A%0A %7D
+;
%0A%0A init()
|
cb72eb087324cbec360e41c5306d7c25ac100308 | Fix data count returned | config/model.js | config/model.js | "use strict";
define(['settings'],function(settings){
function model(value,registry){
var DEFAULT_PAGE = 1;
var DEFAULT_ITEM = 5;
var __meta = {},__data = [],__uses=[],object = {meta:__meta,data:__data};
var registered = false;
if(registry!=undefined){
DEMO_REGISTRY[registry.name] = {};
if(registry.use... | JavaScript | 0.000008 | @@ -1488,24 +1488,52 @@
%0A%09%09%09%09%7D%0A%09%09%09%7D%0A
+%09%09%09var count = data.length;
%0A%09%09%09if(index
@@ -1724,27 +1724,21 @@
count =
-data.length
+count
;%0A%09%09%09%09me
|
9d10d873fb159dc71fec8974914d08b868468499 | Remove unused main.js | gulpfile.js | gulpfile.js | /**
* Copyright 2015 ppy Pty. Ltd.
*
* This file is part of osu!web. osu!web is distributed with the hope of
* attracting more community contributions to the core ecosystem of osu!.
*
* osu!web is free software: you can redistribute it and/or modify
* it under the terms of the Affero GNU General Public L... | JavaScript | 0 | @@ -3324,24 +3324,8 @@
s%22,%0A
-%09%09%22js/main.js%22,%0A
%09%09%22j
|
58aee3544bca8cb6646f7a3d518b15ba5a342abb | Improve performance Creating a new room object for each recursive pass has a lot of overhead | mapGenerator.js | mapGenerator.js | (function () {
var Room = function (x, y) {
this.x = x;
this.y = y;
};
var Map = function () {
var numRooms = 35,
startRoom = new Room(0, 0);
this.width = 600; // Ensure this matches width of canvas tag
this.height = 600; // Same
this.roomSi... | JavaScript | 0.000031 | @@ -370,17 +370,16 @@
ze / 2;%0A
-%0A
@@ -538,32 +538,8 @@
) %7B%0A
- // Base case
%0A
@@ -579,24 +579,37 @@
numRooms) %7B
+ // Base case
%0A
@@ -649,33 +649,15 @@
%7D
-%0A %0A
+ else %7B
//
@@ -679,24 +679,28 @@
+
var availabl
@@ ... |
35aa80f5988d8aa1ef9e0b6aea57206eea186b96 | fix authorizations not updating | src/server/models/user.js | src/server/models/user.js | var uuid = require('node-uuid');
var userSchema = require('./../schemata/user');
/*
* A user will login with local credentials (provider=local)
* or with 3rd party credentials (provider=github) in either case
* we want to findOrCreate a User and grant a fresh token. */
userSchema.statics.findOrCreateByAuthorizatio... | JavaScript | 0.000002 | @@ -25,16 +25,49 @@
-uuid');
+%0Avar logger = require('winston');
%0A%0Avar us
@@ -1036,37 +1036,43 @@
ser%0A
-if (!
+var auths =
user.authorizat
@@ -1067,33 +1067,100 @@
r.authorizations
-)
+ %7C%7C %7B%7D;%0A auths%5Bdata.provider%5D = providerData;%0A
user.authorizat
@@ -115... |
b1bbb0e2d1482a78df29fcd0353662fa6e17f63a | add methods to vector3 | math/Vector3.js | math/Vector3.js | import { vec3 } from "gl-matrix";
export default class Vector3 {
static get elements() {
return vec3;
}
constructor(x = 0, y = 0, z = 0) {
this.elements = vec3.create();
this.x = x;
this.y = y;
this.z = z;
return this;
}
get x() {
return this.elements[0];
}
set x(value) {
... | JavaScript | 0.000001 | @@ -665,50 +665,40 @@
-this.x = x;%0A this.y = y;%0A this.z = z
+vec3.set(this.elements, x, y, z)
;%0A
@@ -943,16 +943,108 @@
s;%0A %7D%0A%0A
+ scale(value) %7B%0A vec3.scale(this.elements, this.elements, value);%0A return this;%0A %7D%0A%0A
normal
@@ -1364,24 +1364,24 @@
(vector3) %7B%0A
-... |
46408746433d2fa8edb791d8842a6cda512d931d | Fix check for new text measurement results | src/gameobjects/text/MeasureText.js | src/gameobjects/text/MeasureText.js | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var CanvasPool = require('../../display/canvas/CanvasPool');
/**
* Calculates the ascent, descent and fontSize of a given font style.
*
* @f... | JavaScript | 0 | @@ -833,31 +833,8 @@
if
-(metrics.hasOwnProperty
('ac
@@ -855,17 +855,27 @@
xAscent'
-)
+ in metrics
)%0A %7B%0A
|
94b08206212cc9cd288cb48f14b4cdcdf908b111 | Add missing semicolons. | app/assets/javascripts/apps/placeslist/placeslist_app.js | app/assets/javascripts/apps/placeslist/placeslist_app.js | Teikei.module("PlacesList", function(PlacesList, Teikei, Backbone, Marionette, $, _) {
PlacesList.Controller = {
showEntryList: function() {
var currentUser = Teikei.currentUser;
var filteredCollection;
if (currentUser) {
filteredCollection = Teikei.Places.collection.byUser(currentUser.g... | JavaScript | 0.001384 | @@ -444,24 +444,25 @@
%5D;%0A %7D
+;
%0A fil
@@ -661,16 +661,17 @@
%7D%0A %7D
+;
%0A%0A Teik
|
d6d8b3d5eda6ebec6c6a611c38bf2f5e146cc5a5 | Update app.js | build/app.js | build/app.js | 'use strict';
//var Menu = React.createClass({
// displayName: 'Menu',
// render: function render() {
// var menus = [{ name: 'Home', link: '#home' }, { name: 'Portfolio', link: '#portfolio' }, { name: 'Article', link: '#article' }, { name: 'About', link: '#about' }];
// return React.createElement... | JavaScript | 0.000002 | @@ -1448,34 +1448,32 @@
-//
React.createElem
@@ -1498,18 +1498,16 @@
-//
'div'
@@ -1531,18 +1531,16 @@
-//
%7B class
@@ -1812,34 +1812,32 @@
-//
)%0A
|
943969335f6c00c290991b5fb82a86a191e7f3c2 | update to grant compatibility with older versions | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const args = require('yargs').argv;
const sequence = require('run-sequence');
const $ = require('gulp-load-plugins')({lazy: true});
gulp.task('build', () => {
return gulp.src('./src/**/*.js')
.pipe($.babel({
presets: ['es2015']
}))
.pipe(gulp.dest('lib'));
});
gulp.t... | JavaScript | 0 | @@ -1,13 +1,11 @@
-const
+var
gulp =
@@ -21,21 +21,19 @@
gulp');%0A
-const
+var
args =
@@ -55,21 +55,19 @@
).argv;%0A
-const
+var
sequenc
@@ -100,13 +100,11 @@
);%0A%0A
-const
+var
$ =
@@ -168,21 +168,26 @@
build',
-() =%3E
+function()
%7B%0A ret
@@ -326,15 +326,22 @@
t',
+function(
done
- =%3E
+)
... |
cc2e5aca56e546480932ee028f775f219a1d3933 | improve tests for eagerCreate=true | tests/integration/components/ember-tree/component-test.js | tests/integration/components/ember-tree/component-test.js | import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('/ember-tree', 'Integration | Component | ember tree', {
integration: true
});
const fixtureTreeModel = {
id: 1,
label: 'Level',
isExpanded: true,
children: [
... | JavaScript | 0.018676 | @@ -643,16 +643,41 @@
%5D%0A%7D;%0A%0A
+const %7B copy %7D = Ember;%0A%0A
test('ca
@@ -770,33 +770,13 @@
e',
-Ember.$.extend(true, %7B%7D,
+copy(
fixt
@@ -779,32 +779,38 @@
fixtureTreeModel
+, true
));%0A this.rende
@@ -1385,33 +1385,13 @@
e',
-Ember.$.extend(true, %7B%7D,
+copy(
fixt
@@ -1394,32 +1394,3... |
dea7bdf3307da3abfdb006c4bf3bbc690da4bae6 | add getPOJO on address | addon/models/address.js | addon/models/address.js | import Ember from 'ember';
import attr from 'ember-data/attr';
import Fragment from 'ember-data-model-fragments/fragment';
const { computed } = Ember;
const { isBlank } = Ember;
export default Fragment.extend({
countryCode: attr('string'),
administrativeArea: attr('string'),
locality: attr('string'),
dependent... | JavaScript | 0 | @@ -1380,24 +1380,486 @@
null);%0A %7D,%0A
+ getPOJO()%7B%0A const pojo = %7B%7D;%0A pojo.countryCode = this.get('countryCode');%0A pojo.administrativeArea = this.get('administrativeArea');%0A pojo.locality = this.get('locality');%0A pojo.dependentLocality = this.get('dependentLocality');%0A pojo.p... |
86b82ddca5377926b35e89e5b321bb5b84307499 | Fix conflict | build/app.js | build/app.js | function requireAll(r) { r.keys().forEach(r); }
// HTML
require('file-loader?name=[name].[ext]!../src/assets/index.html');
// CSS
require('bootstrap/dist/css/bootstrap.css');
require('../src/css/app.scss');
// JS
require('lodash');
window.jQuery = require('jquery');
require('bootstrap');
require('../src/js/app.js');... | JavaScript | 0.00644 | @@ -1,53 +1,4 @@
-function requireAll(r) %7B r.keys().forEach(r); %7D%0A%0A
// H
@@ -261,12 +261,82 @@
s/app.js');%0A
+%0A// JSON%0Arequire('file-loader?name=%5Bname%5D.%5Bext%5D!../src/config.json');%0A
|
ba6db5469a3bb2510d08d5149f066fe3ed7a3760 | remove debug info | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var debug = require('gulp-debug');
var gulpTypescript = require('gulp-typescript');
var typescript = require('typescript');
var merge = require('merge2');
var webpack = require('webpack');
var webpackStream = require('webpack-stream');
var path = require('path');
var foreach = require('gulp-... | JavaScript | 0 | @@ -25,43 +25,8 @@
');%0A
-var debug = require('gulp-debug');%0A
var
@@ -5883,31 +5883,8 @@
%5D)%0A
- .pipe(debug())%0A
|
2edcff57f4299dbbe1e6d244b3712375e46d6271 | remove file override node env declarations, https://github.com/phetsims/tasks/issues/972 | js/grunt/lint.js | js/grunt/lint.js | // Copyright 2015, University of Colorado Boulder
/**
* Runs the lint rules on the specified files.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
/* eslint-env node */
'use strict';
// modules
const eslint = require( 'eslint' );
const grunt = require( 'grunt' );
const md5 = require( 'md5' );
const path =... | JavaScript | 0 | @@ -157,29 +157,8 @@
*/%0A
-/* eslint-env node */
%0A'us
|
4c582c39b707a66c30548016f7bb324c5aa88f8b | remove unused find import | tests/integration/components/new-version-notifier-test.js | tests/integration/components/new-version-notifier-test.js | import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, find, waitUntil } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import setupMirage from '../../helpers/setup-mirage';
import Mirage from 'ember-cli-mirage';
import { set } from '@ember/ob... | JavaScript | 0.000003 | @@ -101,14 +101,8 @@
der,
- find,
wai
|
46d6db71c7867f02c743858f5b7b068e9d206427 | Create Sample Dialog | app/assets/javascripts/components/actions/UserActions.js | app/assets/javascripts/components/actions/UserActions.js | import alt from '../alt';
import UsersFetcher from '../fetchers/UsersFetcher';
import cookie from 'react-cookie';
import DocumentHelper from '../utils/DocumentHelper';
class UserActions {
fetchUsers() {
UsersFetcher.fetchUsers()
.then((result) => {
this.dispatch(result.users);
}).catch((er... | JavaScript | 0 | @@ -909,17 +909,16 @@
%7D);%0A %7D%0A
-%0A
%7D%0A%0Aexpor
|
953d2ca55a89ccec810d6e302e60b6d52b730dea | refresh timeline & watchlist after removing a doc | app/assets/javascripts/controllers/Profile.controller.js | app/assets/javascripts/controllers/Profile.controller.js | (function() {
'use-strict';
angular.module('dailyDocumentary')
.controller('ProfileController', ProfileController);
function ProfileController(profileFactory, $state, $mdToast, timeline, watchlist) {
var vm = this;
vm.hello = "Hello, Steve";
vm.removeDoc = removeDoc;
vm.getTimeline = getTi... | JavaScript | 0 | @@ -563,39 +563,34 @@
eline = response
-.data
;%0A
+
%7D);%0A %7D%0A
@@ -752,13 +752,8 @@
onse
-.data
;%0A
@@ -888,24 +888,24 @@
wMessage);%0A%0A
-
functi
@@ -926,24 +926,77 @@
(message) %7B%0A
+ vm.getTimeline();%0A vm.getWatchlist();%0A
$mdT
|
7ec607d4413b05461771e66b69ba8e332524bf55 | fix "Cannot read property 'getAttribute' of null" error | app/assets/javascripts/shortcuts_dashboard_navigation.js | app/assets/javascripts/shortcuts_dashboard_navigation.js | /**
* Helper function that finds the href of the fiven selector and updates the location.
*
* @param {String} selector
*/
export default (selector) => {
const link = document.querySelector(selector).getAttribute('href');
if (link) {
window.location = link;
}
};
| JavaScript | 0.000004 | @@ -135,25 +135,24 @@
default
-(
selector
) =%3E %7B%0A
@@ -143,17 +143,16 @@
selector
-)
=%3E %7B%0A
@@ -157,20 +157,23 @@
const
-link
+element
= docum
@@ -199,16 +199,51 @@
elector)
+;%0A const link = element && element
.getAttr
|
286154de6f5fc18ef128cefc018091984f66888f | fix counter spaces | src/components/Counter/Counter.js | src/components/Counter/Counter.js | import React from 'react';
import classes from './Counter.scss';
export const Counter = ({counter, doubleAsync, increment}) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{counter}
</span>
</h2>
<button clas... | JavaScript | 0.000006 | @@ -84,16 +84,17 @@
ter = (%7B
+
counter,
@@ -116,16 +116,17 @@
ncrement
+
%7D) =%3E (%0A
|
7a376de166b8f506510858034f79cb2e8b9f0f36 | Update BoS suggestion to be consistent with guide | src/parser/deathknight/frost/modules/features/BreathOfSindragosa.js | src/parser/deathknight/frost/modules/features/BreathOfSindragosa.js | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Analyzer from 'parser/core/Analyzer';
const GOOD_BREATH_DURATION_MS = 20000;
class... | JavaScript | 0 | @@ -1558,16 +1558,17 @@
at lasts
+
20 secon
@@ -1630,47 +1630,67 @@
ave
-3
+60+
Run
-es ready and 70 Runic Power poo
+ic Power pooled and have less than 2 Runes availab
le
-d
bef
|
763510d70b1e659d7a7735fdb774f9a9dbd6bfcc | Put record service buttons in alphabetical order | app/assets/javascripts/student_profile/record_service.js | app/assets/javascripts/student_profile/record_service.js | (function() {
window.shared || (window.shared = {});
var dom = window.shared.ReactHelpers.dom;
var createEl = window.shared.ReactHelpers.createEl;
var merge = window.shared.ReactHelpers.merge;
var PropTypes = window.shared.PropTypes;
var ReactSelect = window.Select;
var Datepicker = window.shared.Datepic... | JavaScript | 0.000001 | @@ -3597,17 +3597,17 @@
utton(50
-5
+3
),%0A
@@ -3644,9 +3644,9 @@
n(50
-6
+2
),%0A
@@ -3683,17 +3683,17 @@
utton(50
-7
+4
)%0A
@@ -3779,33 +3779,33 @@
ServiceButton(50
-2
+5
),%0A t
@@ -3822,33 +3822,33 @@
ServiceButton(50
-3
+6
),%0A t
@@ -3865,33 +3865,33 @@
ServiceButton... |
da4c52e2ba3dfc46f6523616df9ecad489266835 | Make sure there actually is an object | js/background.js | js/background.js | var txt_cache='604800';chrome.webRequest.onHeadersReceived.addListener(function(object){'use strict';var object_type=object.type.toLowerCase();if((object_type!=='main_frame')&&(object_type!=='sub_frame')&&(object_type!=='xmlhttprequest')){var headers=object.responseHeaders,len=headers.length-1,f=false,elem=null;do{elem... | JavaScript | 0.001165 | @@ -94,16 +94,27 @@
strict';
+if(object)%7B
var obje
@@ -729,16 +729,17 @@
ders%7D;%7D%7D
+%7D
,%7Burls:%5B
@@ -1007,28 +1007,29 @@
Storage.txt_cache='604800';%7D
+%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.