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 |
|---|---|---|---|---|---|---|---|
5e708a7771fe69fd435ea9953c44390ca88e0ac2 | Fix the order of draws when it comes to November and January | js/models/prizeModel.js | js/models/prizeModel.js | /**
* models/prizeModel.js
* Module that handles all functions relative to winning numbers
*
* @return {function} constructor
* @author Ben on 10/Jul/2012
*/
define([
'jquery',
'backbone',
'models/drawModel'
], function($, unused, DrawModel) {
return function() {
var _draw = 'thisDraw'; // Default draw
v... | JavaScript | 0.998963 | @@ -791,16 +791,146 @@
sort();%0A
+%0A%09%09%09%09// Fix the order of January and November%0A%09%09%09%09if (keys%5B0%5D === %2201-02%E6%9C%88%22 && keys%5B1%5D === %2211-12%E6%9C%88%22) %7B%0A%09%09%09%09%09keys.reverse();%0A%09%09%09%09%7D%0A%0A
%09%09%09%09_cur
@@ -3869,8 +3869,9 @@
%0A%7D;%0A%0A%7D);
+%0A
|
65783db041fe11f19c5eac7d14baa82b443e830a | Update popover id in BCBProcess | js/myapp/bcb-process.js | js/myapp/bcb-process.js |
class BCBProcess extends CommonProcess {
constructor() {
super({
name: `${Project.NAME} Process`
});
BCBProcess.initProcess();
}
static initProcess() {
BCBProcess.createDesc();
BCBProcess.initPopover();
BCBProcess.initEvent();
BCBProcess.initController();
BCBProcess.... | JavaScript | 0 | @@ -809,21 +809,20 @@
ctor: '#
-login
+user
-id-help
@@ -948,21 +948,20 @@
ctor: '#
-login
+user
-passwor
@@ -1099,21 +1099,20 @@
ctor: '#
-login
+user
-check-h
|
1bd16a11fa6b581b66524f26a85e84d85194d62a | Update presets to better reflect difficulty. | js/randomizer.preset.js | js/randomizer.preset.js | function updatePreset(val)
{
var preset = val instanceof Number ? val : +$('#preset').val();
if (preset > 0) $('.presetoption').prop('checked', false);
if (preset == 0) return;
$('#randomize_stages').prop('checked', true);
$('#randomize_exits').prop('checked', preset > 2);
$('#randomize_warps').prop('checked'... | JavaScript | 0 | @@ -147,18 +147,17 @@
false);%0A
-%09
%0A
+
%09if (pre
@@ -174,18 +174,17 @@
return;%0A
-%09
%0A
+
%09$('#ran
@@ -437,18 +437,17 @@
t %3C 2);%0A
-%09
%0A
+
%09$('#ran
@@ -593,22 +593,15 @@
d',
-preset %3E 4
+true
);%0A
-%09
%0A%09$(
@@ -780,26 +780,25 @@
ed', true);%0A
-%09
%0A
+
%09$('#bowser_
@@ -1079... |
43e3fd438aa058ead0653f60d612e4b00d69f2ed | Update svg-icon-polyfill.js | js/svg-icon-polyfill.js | js/svg-icon-polyfill.js | /*! SVG Icon Sprite Polyfill for IE9+
* Copyright 2015 Tim Wright
* Licensed under MIT
* https://github.com/timwright12/SVG-Icon-Sprite-Polyfill/
*
* HTML Example Usage:
*
* <svg role="img" aria-label="Golf clubs in a bag" class="icon icon-add-to-my-bag">
* <title>Golf clubs in a bag</title>
* <use xlink... | JavaScript | 0 | @@ -3208,21 +3208,16 @@
) && doc
-ument
.addEven
|
94c90b9588fb68e2d6f54b94e303ce34304ce930 | Set pixel ratio to only be applied if flag is passed to prevent current regression - I should come back to this | jsiso/canvas/Control.js | jsiso/canvas/Control.js | /*
Copyright (c) 2013 Iain Hamilton & Edward Smyth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | JavaScript | 0 | @@ -2279,27 +2279,63 @@
yle, element
-) %7B
+, usePixelRatio) %7B%0A var pxRatio = 1;
%0A if (_su
@@ -2353,21 +2353,24 @@
%7B%0A
-var p
+if (useP
ixelRati
@@ -2370,16 +2370,35 @@
xelRatio
+) %7B%0A pxRatio
= _getR
@@ -2405,16 +2405,24 @@
atio();%0A
+ %7D%0A
wi
@@ -2653,28 +2653,25... |
498eb322267de12f485af3aa6efe510061d17903 | Simplify attribute value assignments. | assets/js/modules/subscribe-with-google/components/common/PrototypeForm.js | assets/js/modules/subscribe-with-google/components/common/PrototypeForm.js | /**
* Subscribe with Google Account Create component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org... | JavaScript | 0 | @@ -2372,19 +2372,17 @@
%09%09label=
-%7B '
+%22
Publicat
@@ -2387,19 +2387,17 @@
ation ID
-' %7D
+%22
%0A%09%09%09%09out
@@ -2426,19 +2426,17 @@
%09%09%09%09%09id=
-%7B '
+%22
publicat
@@ -2436,27 +2436,25 @@
ublicationID
-' %7D
+%22
%0A%09%09%09%09%09name=%7B
@@ -2452,19 +2452,17 @@
%09%09%09name=
-%7B '
+%2... |
39f2208317c49a69128cea3ae9f4c6d38c517177 | Fix toDOM methods | text/1.base.js | text/1.base.js | 'use strict';
var d = require('d/d')
, validElement = require('dom-ext/element/valid-element')
, defineProperties = Object.defineProperties
, Attr, Text;
Attr = function (element, name, type) {
this.element = validElement(element);
this.name = name;
this.type = type;
};
defineProperties(Attr.prot... | JavaScript | 0.002121 | @@ -1460,28 +1460,35 @@
text = this.
-type
+constructor
.toDOMText(d
@@ -1632,20 +1632,27 @@
= this.
-type
+constructor
.toDOMAt
|
fdebc9709f8a5ac57dff5e2ca1622e4f92cc7626 | Use ActivityMonitor to throttle users typing to update model | labextension/src/doc.js | labextension/src/doc.js | import { Widget } from 'phosphor/lib/ui/widget';
import { ABCWidgetFactory } from 'jupyterlab/lib/docregistry';
import React from 'react';
import ReactDOM from 'react-dom';
import GeoJSON from 'jupyterlab_geojson_react';
/**
* The class name added to this DocWidget.
*/
const CLASS_NAME = 'jp-DocWidgetGeoJSON';
/**... | JavaScript | 0 | @@ -105,16 +105,89 @@
istry';%0A
+import %7B ActivityMonitor %7D from 'jupyterlab/lib/common/activitymonitor';%0A
import R
@@ -201,24 +201,24 @@
om 'react';%0A
-
import React
@@ -382,16 +382,130 @@
JSON';%0A%0A
+/**%0A * The timeout to wait for change activity to have ceased before rendering.%0A */%0Aconst RENDER_... |
d54c0009d00b4c2039e11cbe3225d1345998b602 | clean code | packages/core/src/Radio.js | packages/core/src/Radio.js | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import icBEM from './utils/icBEM';
import prefixClass from './utils/prefixClass';
import rowComp from './mixins/rowComp';
import Icon from './Icon';
import './styles/Radio.scss';
export const COMPONENT_NAME = prefixCla... | JavaScript | 0.005755 | @@ -1150,17 +1150,16 @@
/%3E%0A
-%0A
|
febdf896da2efe794afde77fa07c182ca463400a | add commented remote browser-sync settings | marco_site/assets/Gulpfile.js | marco_site/assets/Gulpfile.js | // Basic Gulp File
//
var gulp = require('gulp')
path = require('path')
gutil = require('gulp-util')
less = require('gulp-less')
autoprefix = require('gulp-autoprefixer')
notify = require("gulp-notify")
bower = require('gulp-bower')
browserSync = require('browser-sync')
webpackConfig = r... | JavaScript | 0 | @@ -1710,16 +1710,61 @@
: true,%0A
+ // tunnel: true,%0A // ghostMode: true,%0A
file
@@ -1831,16 +1831,17 @@
);%0A%7D);%0A%0A
+%0A
// Rerun
|
da696d3882701d03393666044498096f73c5c516 | Remove unnecessary <Fragment> wrapper | src/routes/Library/components/SongList/SongList.js | src/routes/Library/components/SongList/SongList.js | import PropTypes from 'prop-types'
import React from 'react'
import SongItem from '../SongItem'
const SONG_HEIGHT = 44
const SONG_ARTIST_HEIGHT = 60
const SongList = (props) => (
<React.Fragment>
{props.songIds.map(songId => (
<SongItem
{...props.songs[songId]}
onSongClick={() => props.queu... | JavaScript | 0 | @@ -175,34 +175,8 @@
=%3E
-(%0A %3CReact.Fragment%3E%0A %7B
prop
@@ -201,20 +201,16 @@
Id =%3E (%0A
-
%3CSongI
@@ -217,20 +217,16 @@
tem%0A
-
-
%7B...prop
@@ -242,20 +242,16 @@
ongId%5D%7D%0A
-
onSo
@@ -290,28 +290,24 @@
ongId)%7D%0A
-
-
onSongStarCl
@@ -354,20 +354,16 @@
... |
6da881aa74c740228a99edfd4030c2e3f8e8def5 | send error upon broken links | check-links.js | check-links.js | var browserSync = require('browser-sync');
var Spider = require('node-spider');
var assert = require('assert');
var buildRoot = '../build';
var start = 'http://localhost:3000/'; // crawl from here
function length(obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return si... | JavaScript | 0 | @@ -1820,13 +1820,138 @@
-cb();
+if (broken !== 0) %7B%0A err = new Error(broken, 'links broken')%0A cb(err)%0A %7D else %7B%0A cb();%0A %7D
%0A
|
cad93bfcf3fa4cae1ccdebd807a5f56058e103bd | Update scons-modules-integrity.js | build/scons-modules-integrity.js | build/scons-modules-integrity.js | #!/usr/bin/env node
'use strict';
const async = require('async'),
utils = require('./utils'),
fs = require('fs-extra'),
path = require('path'),
modulesPath = path.join('../support/module/packaged/modules.json'),
modules = require(modulesPath);
const platforms = Object.keys(modules);
async.map(platforms, (platfor... | JavaScript | 0.000001 | @@ -1243,17 +1243,16 @@
...');%0A
-%09
%0A%09// Gua
|
16327f35c3311091d3cf0a9425e5fa44c8ed5911 | Add DROP_PIECE reducer case. | frontend/reducers/shogi.js | frontend/reducers/shogi.js | import * as CONST from '../constants/actionTypes';
import Shogi from '../src/shogi';
const initialState = {
holdingPiece: undefined,
board: Shogi.Board,
blackPieceStand: [],
whitePieceStand: []
};
export default function shogi(state = initialState, action) {
switch (action.type) {
case CONST.HOLD_PIECE:
... | JavaScript | 0 | @@ -1418,16 +1418,155 @@
ece) %7D;%0A
+ case CONST.DROP_PIECE:%0A return %7B ...state, board: state.board.dropPiece(state.holdingPiece, action.piece), holdingPiece: undefined %7D;%0A
defaul
|
69d2d2a7450b91b3533a18ad2c51e009dd3c58f7 | Fix Webpack entry module path | frontend/webpack.config.js | frontend/webpack.config.js | const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const path = require('path');
// Extract CSS into a separate file
const extractSass = new ExtractTextPlugin({
filename: "../css/main.css",
});
// Minify JavaScript
const UglifyJsPlugin = new webpack.optimize.Ugli... | JavaScript | 0 | @@ -406,15 +406,8 @@
'./
-client/
js/i
|
32271c177e202314710dd4f69c9e32978ee7b8b4 | Stop Mocha from logging SQL query info for the time being | database/model/postgresDB.js | database/model/postgresDB.js | 'use strict';
const Sequelize = require('sequelize');
//const REMOTE_URL = require('../database.js');
const LOCAL_URL = 'postgres://localhost:5432/softballers';
const sequelize = new Sequelize(LOCAL_URL);
//check connection
sequelize
.authenticate()
.then( function(err) {
console.log('Connection Successful')... | JavaScript | 0 | @@ -197,16 +197,36 @@
OCAL_URL
+, %7B logging: false %7D
);%0A%0A//ch
|
92c3c35be7e47e05d87996b4aa51d1eab47bae19 | Add return type for Flow | cli/src/cli.js | cli/src/cli.js | #!/usr/bin/env node
// @flow
import 'babel-polyfill';
import fs from 'fs';
import path from 'path';
import findup from 'findup-sync';
import yargs from 'yargs';
import { parseConfig } from './util/config';
import { printErrors } from './printErrors';
import type { Argv } from 'yargs';
import type { AmazeeConfig } fr... | JavaScript | 0.000001 | @@ -2020,16 +2020,31 @@
v: Argv)
+: Promise%3Cvoid%3E
=%3E%0A
|
e6c9c6eaee25a75cbadc107837d8982256e151b8 | Remove debugging console.log | public/src/js/com.js | public/src/js/com.js | /*
* debugger.io: An interactive web scripting sandbox
*
* com.js: output console
*/
define(function(require) {
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var bus = require('bus');
var config = require('config');
var utils = require('utils');
var Backbone ... | JavaScript | 0.000017 | @@ -2577,47 +2577,8 @@
);%0A%0A
- console.log(this.dimensions);%0A%0A
|
be9fd20a416fb4b0b02360b05844cd4e2d4ac0f2 | Fix #1831: click on a worker will clear workers filter | calebasse/static/js/calebasse.agenda.js | calebasse/static/js/calebasse.agenda.js |
function replace_anchor(url, anchor) {
var splitted = url.split('#');
return splitted[0] + '#' + encodeURI(anchor);
}
function extract_anchor() {
if (window.location.href.indexOf('#') == -1) {
return "";
}
var splitted = window.location.href.split('#');
return decodeURI(splitted[1]).sp... | JavaScript | 0 | @@ -1164,32 +1164,148 @@
', function() %7B%0A
+ $('#filtre input').val('')%0A $('#users li').each(function() %7B%0A $(this).show();%0A %7D);%0A
toggle_w
|
4569e829b08352e27726c817e83b2c183fa9572e | Replace moment with luxon in test | tests/integration/components/course-overview-test.js | tests/integration/components/course-overview-test.js | import Service from '@ember/service';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'dummy/tests/helpers';
import { setupIntl } from 'ember-intl/test-support';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { setupMirage } from 'ember-cli-mirage... | JavaScript | 0.014395 | @@ -422,27 +422,32 @@
ort
-moment
+%7B DateTime %7D
from '
-moment
+luxon
';%0A%0A
@@ -2598,39 +2598,57 @@
rtDate:
-moment().hour(8).form
+DateTime.fromObject(%7B hour: 8 %7D).toJSD
at
+e
(),%0A
@@ -2658,39 +2658,57 @@
ndDate:
-moment().hour(9).form
+DateTime.fromObject(%7B hour: 9 %7D).toJSD
at
+e
(),... |
ce4617b3bd422a84d3326909ff021e477abc7d4a | Fix bad test expectation | tests/integration/components/course-rollover-test.js | tests/integration/components/course-rollover-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import moment from 'moment';
import Ember from 'ember';
import { openDatepicker } from 'ember-pikaday/helpers/pikaday';
import wait from 'ember-test-helpers/wait';
const { Service, RSVP, Object, run, getOwner } = Embe... | JavaScript | 0.033791 | @@ -2717,10 +2717,9 @@
ect(
-13
+8
);%0A
|
dc981d83bd23ddff143877945dee3b688228984e | disable test | tests/integration/cypress/integration/whyis/home_view.spec.js | tests/integration/cypress/integration/whyis/home_view.spec.js | context('home_view', () => {
beforeEach(() => {
cy.visit("/");
});
it ("should allow anonymous access", () => {
});
it ("should have a link to login", () => {
cy.get("a[href='/login'").click();
cy.url().should("eq", Cypress.config().baseUrl + "/login");
});
it.skip... | JavaScript | 0.000002 | @@ -310,17 +310,13 @@
-it.skip()
+// it
(%22s
@@ -364,32 +364,35 @@
ar%22, () =%3E %7B%0A
+ //
cy.get(%22inp
@@ -428,24 +428,27 @@
abase%22);%0A
+ //
cy.cont
@@ -471,24 +471,27 @@
.click()%0A
+ //
cy.url(
@@ -601,24 +601,27 @@
abase%22);%0A
+ //
%7D);%0A //
|
9cd736f78681fcf8f599878e6647e349b603cc8c | Add lumens to asset list in ticker | ticker/tickerGenerator.js | ticker/tickerGenerator.js | const Promise = require('bluebird');
const _ = require('lodash');
const rp = require('request-promise');
const StellarSdk = require('stellar-sdk');
const PQueue = require('p-queue');
const queue = new PQueue({concurrency: 20});
const run = queue.add;
const directory = require('../dist/directory.json');
StellarSdk.Ne... | JavaScript | 0.000001 | @@ -1350,16 +1350,188 @@
= %5B%5D;%0A%0A
+ assets.push(%7B%0A id: 'XLM-native',%0A code: 'XLM',%0A issuer: null,%0A domain: 'native',%0A slug: 'XLM-native',%0A website: 'https://www.stellar.org/lumens/',%0A %7D)%0A
_.each
|
93573852d7d1485b7766ab6d27dd5feea88c2fb2 | rewrite resource middleware by es6 | src/middleware/resource.js | src/middleware/resource.js | 'use strict';
var mime = require('mime');
/**
* resource check
* @param {}
* @return {} []
*/
module.exports = think.middleware({
options: {
resource_on: false,
resource_reg: undefined
},
run: function(){
if (!think.RESOURCE_PATH || !this.options.resource_on || !this.http.pathna... | JavaScript | 0 | @@ -8,19 +8,19 @@
rict';%0A%0A
-var
+let
mime =
@@ -36,17 +36,16 @@
mime');%0A
-%0A
/**%0A * r
@@ -125,16 +125,30 @@
xports =
+ class extends
think.m
@@ -160,95 +160,26 @@
ware
-(%7B%0A options:
+.base
%7B%0A
-
- resource_on: false,%0A resource_reg: undefined%0A %7D,%0A run: functio
+async ru
n()%... |
3831117f490c4afa44c539f60805c72f2ae15a9a | drop self. access pattern | trace/agent.js | trace/agent.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0.000673 | @@ -1250,38 +1250,16 @@
ions) %7B%0A
- var self = this;%0A%0A
opti
@@ -1284,20 +1284,20 @@
%7D;%0A%0A
-self
+this
.logger
@@ -1507,20 +1507,20 @@
e'.%0A
-self
+this
.forceTr
@@ -1652,28 +1652,28 @@
euqests%0A
-self
+this
.serviceName
@@ -1733,36 +1733,36 @@
rter) %7B%0A
-self
+this
... |
9bc76e402f71064f9bdbcb3421b91e33b2d31ebd | Update logs | generators/module/index.js | generators/module/index.js | 'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var path = require('path');
module.exports = yeoman.Base.extend({
constructor: function() {
yeoman.Base.apply(this, arguments);
this.argument('name', {type: String, required: true});
},
initializing: {
paths: funct... | JavaScript | 0.000001 | @@ -1134,24 +1134,78 @@
ucer.js:');%0A
+ this.log('and your root epic in src/epic.js:');%0A
this.l
@@ -1275,18 +1275,8 @@
om '
-./modules/
%22 +
@@ -1495,17 +1495,206 @@
.reducer
-,
+%22));%0A this.log('');%0A this.log('and add ' + this.name + 'epic as part of the combineEpics: ');%0A th... |
22bb118710920585a46f598d0f64c43f95e578e6 | Add styles to views.Update app.js and main scss | generators/module/index.js | generators/module/index.js | 'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var utils = require('../utils');
var _ = require('lodash');
module.exports = yeoman.generators.Base.extend({
constructor: function () {
yeoman.generators.Base.apply(this, arguments);
this.argu... | JavaScript | 0 | @@ -4181,16 +4181,17 @@
%7D)
+;
%0A %7D%0A
|
8702d242b75f4b14c3d8a19f32fcad6f31683cb9 | fix usage of remark | packages/markdown-to-ast/lib/markdown/markdown-parser.js | packages/markdown-to-ast/lib/markdown/markdown-parser.js | /*eslint-disable */
// LICENSE : MIT
"use strict";
var traverse = require('traverse');
var StructuredSource = require('structured-source');
var debug = require("debug")("markdown-to-ast");
var remark = require("remark");
/**
* parse markdown text and return ast mapped location info.
* @param {string} text
* @return... | JavaScript | 0.000017 | @@ -193,16 +193,24 @@
r remark
+Abstract
= requi
@@ -223,16 +223,47 @@
mark%22);%0A
+var remark = remarkAbstract();%0A
/**%0A * p
|
1235c2f8d535375094ed1e1c0f69bbf3e64b6d91 | Remove outdated dev deps | generators/update/index.js | generators/update/index.js | 'use strict'
const path = require('path')
const Generator = require('yeoman-generator')
const chalk = require('chalk')
const _ = require('lodash')
_.templateSettings.interpolate = /<%=([\s\S]+?)%>/g
module.exports = Generator.extend({
initializing: function () {
this.props = {}
},
paths: function () {
t... | JavaScript | 0.000001 | @@ -1218,61 +1218,280 @@
-delete pkg.devDependencies%5B'babel-eslint'%5D%0A delete
+pkg.devDependencies%5B'babel-eslint'%5D = undefined%0A pkg.devDependencies%5B'eslint'%5D = undefined%0A pkg.devDependencies%5B'eslint-config-ivantage'%5D = undefined%0A pkg.devDependencies%5B'eslint-loader'%5D = undefi... |
cbeefd9a0d12c8075d9f012250c68cfaadffe7f7 | Make component pure. | packages/react-atlas-core/src/ProgressBar/ProgressBar.js | packages/react-atlas-core/src/ProgressBar/ProgressBar.js | import React from "react";
import prefixer from "../utils/prefixer";
import cx from 'classnames';
//TODO Change this to a self contained component from the current version that requires too much logic in the parent component
class ProgressBar extends React.Component {
calculateRatio(value) {
if (value < t... | JavaScript | 0 | @@ -248,32 +248,36 @@
r extends React.
+Pure
Component %7B%0D%0A c
|
f28af52ba3c80ed98591a36ab4a39759e6534a00 | fix getNonLocalizedAttributes route for ST | packages/strapi-plugin-i18n/controllers/content-types.js | packages/strapi-plugin-i18n/controllers/content-types.js | 'use strict';
const { pick, uniq, prop, getOr, flatten, pipe, map } = require('lodash/fp');
const { contentTypes: contentTypesUtils } = require('strapi-utils');
const { getService } = require('../utils');
const { validateGetNonLocalizedAttributesInput } = require('../validation/content-types');
const { PUBLISHED_AT_A... | JavaScript | 0 | @@ -1262,21 +1262,20 @@
api.
-entityService
+query(model)
.fin
@@ -1283,29 +1283,14 @@
One(
-%7B
params
- %7D, %7B model %7D
);%0A%0A
|
75e74332096ea28214c2b71ff062cd55a0ac3f95 | Add SingleDropdownRange style and className support | packages/web/src/components/range/SingleDropdownRange.js | packages/web/src/components/range/SingleDropdownRange.js | import React, { Component } from "react";
import { connect } from "react-redux";
import {
addComponent,
removeComponent,
watchComponent,
updateQuery
} from "@appbaseio/reactivecore/lib/actions";
import {
getQueryOptions,
pushToAndClause,
checkValueChange,
getAggsOrder,
checkPropChange,
checkSomePropChange
} ... | JavaScript | 0 | @@ -2673,16 +2673,74 @@
%0A%09%09%09%3Cdiv
+ style=%7Bthis.props.style%7D className=%7Bthis.props.className%7D
%3E%0A%09%09%09%09%7Bt
@@ -3587,16 +3587,63 @@
pes.bool
+,%0A%09style: types.style,%0A%09className: types.string
%0A%7D%0A%0ASing
@@ -3743,16 +3743,46 @@
er: true
+,%0A%09style: %7B%7D,%0A%09className: nu... |
e22125555a9ac4416b53471008d2e14a0b2b5b56 | Fix saving page settings. | src/WizardBuilder.js | src/WizardBuilder.js | import WebformBuilder from './WebformBuilder';
import _ from 'lodash';
export default class WizardBuilder extends WebformBuilder {
constructor() {
let element, options;
if (arguments[0] instanceof HTMLElement || arguments[1]) {
element = arguments[0];
options = arguments[1];
}
else {
... | JavaScript | 0 | @@ -380,25 +380,32 @@
;%0A%0A this.
-_
+webform.
form = %7B%0A
@@ -793,33 +793,40 @@
entIndex = this.
-_
+webform.
form.components.
@@ -1732,25 +1732,32 @@
filter(this.
-_
+webform.
form.compone
@@ -1930,25 +1930,32 @@
%7B%0A this.
-_
+webform.
form = value
@@ -1966,25 +1966,32 @@
if (!this.
-_
+we... |
dc2070aac8b8dff80d86d7c27998a151ad4c52e0 | Make sure options.direction and doc.direction stay in sync | src/model/document_data.js | src/model/document_data.js | import { loadMode } from "../display/mode_state.js"
import { runInOp } from "../display/operations.js"
import { regChange } from "../display/view_tracking.js"
import { Line, updateLine } from "../line/line_data.js"
import { findMaxLine } from "../line/spans.js"
import { getLine } from "../line/utils_line.js"
import { e... | JavaScript | 0 | @@ -3879,16 +3879,55 @@
ass(cm)%0A
+ cm.options.direction = doc.direction%0A
if (!c
|
38ebd9c8c0f0922057de3547af1a3b1e0dd6bebe | Update GuildProfile model | src/models/GuildProfile.js | src/models/GuildProfile.js | const mongoose = require('mongoose')
const schema = mongoose.Schema({
id: {
type: String,
unique: true
},
name: String,
sendAlertsTo: {
type: [String],
default: undefined
},
sources: Object,
dateFormat: String,
dateLanguage: String,
timezone: String,
vip: Object,
prefix: String,
... | JavaScript | 0 | @@ -29,16 +29,238 @@
ngoose')
+%0Aconst middleware = require('./middleware/GuildProfile.js')%0Aconst path = require('path')%0Aconst fs = require('fs')%0Aconst packageVersion = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json'))).version
%0A%0Aconst
@@ -267,16 +267,20 @@
schema =
+ new
mon... |
9001bf17f783158af73baaad6484596730ecd510 | fix js script | usertracking/static/js/user_tracking.js | usertracking/static/js/user_tracking.js |
$.ajaxSetup({beforeSend: function(xhr, settings){
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = $.trim(cook... | JavaScript | 0.00001 | @@ -1616,8 +1616,1825 @@
%0A%0A%7D)();%0A
+%0A%0Aif (!$.cookie)%0A%7B%0A (function($) %7B%0A $.cookie = function(key, value, options) %7B%0A%0A // key and at least value given, set cookie...%0A if (arguments.length %3E 1 && (!/Object/.test(Object.prototype.toString.call(value)) %7C%7C v... |
87d17e6a36c26a0d5c8872cd3726571571e44d4d | Fix storeList not updating | client/app/components/group/_storeList/storeList.controller.js | client/app/components/group/_storeList/storeList.controller.js | class StoreListController {
constructor(Store, $state, $document, $mdMedia, CurrentStores) {
"ngInject";
Object.assign(this, {
Store,
CurrentStores,
storeList: CurrentStores.list,
$state,
$document,
$mdMedia,
showMap: false,
searchQuery: ""
});
}
$onCha... | JavaScript | 0 | @@ -527,72 +527,8 @@
a);%0A
- this.storeList = angular.copy(this.CurrentStores.list);%0A
|
d115c5abe2ad36d3f7bac4e9caaa79630da91c41 | Replace non-existent secondsDifference with getSecondsDifference. | Source/Core/Clock.js | Source/Core/Clock.js | /*global define*/
define([
'./JulianDate',
'./ClockStep',
'./ClockRange'
], function(
JulianDate,
ClockStep,
ClockRange) {
"use strict";
var Clock = function(startTime, stopTime, currentTime, clockStep, clockRange, multiplier) {
this.startTime = start... | JavaScript | 0.004534 | @@ -1965,25 +1965,28 @@
s(startTime.
-s
+getS
econdsDiffer
@@ -2135,17 +2135,20 @@
topTime.
-s
+getS
econdsDi
|
e36ffed17caaaf94923c9cbebc0cf32bb7e4472a | use show instead of include in layers parameter; overrides defaultVisibility | common/viewercontroller/openlayers/OpenLayersArcServerLayer.js | common/viewercontroller/openlayers/OpenLayersArcServerLayer.js | /*
* Copyright (C) 2012 B3Partners B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This prog... | JavaScript | 0 | @@ -1294,17 +1294,13 @@
s: %22
-include:
+show:
%22+co
|
d8cdf2ba3118c4a1d228992b78ee4ba1db627066 | Clean up nbextension webpack config | {{cookiecutter.extension_name}}/nbextension/webpack.config.js | {{cookiecutter.extension_name}}/nbextension/webpack.config.js | var version = require('./package.json').version;
var path = require('path');
/**
* Custom webpack loaders are generally the same for all webpack bundles, hence
* stored in a separate local variable.
*/
var loaders = [
{
test: /\.js$/,
include: [path.join(__dirname, 'src')],
loader: 'babel-loader',
... | JavaScript | 0.000001 | @@ -1,12 +1,40 @@
+var path = require('path');%0A
var version
@@ -73,36 +73,8 @@
ion;
-%0Avar path = require('path');
%0A%0A/*
@@ -1088,16 +1088,216 @@
%7D%0A%5D;%0A%0A
+var base = %7B%0A output: %7B%0A libraryTarget: 'amd',%0A devtoolModuleFilenameTemplate: 'webpack:///%5Babsolute-resource-path%5D'%0A %... |
35716784bd8bdab6ef1790ea8404a58179053663 | Add link from org. user to actual user. | ui/src/views/organizations/UpdateOrganizationUser.js | ui/src/views/organizations/UpdateOrganizationUser.js | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import OrganizationStore from "../../stores/OrganizationStore";
class UpdateOrganizationUserForm extends Component {
constructor() {
super();
this.state = {
user: {},
};
this.handleSubmit = this.handleS... | JavaScript | 0 | @@ -43,16 +43,22 @@
import %7B
+ Link,
withRou
@@ -3196,16 +3196,29 @@
%3EUpdate
+organization
user%3C/h3
@@ -3249,18 +3249,8 @@
me=%22
-btn-group
pull
@@ -3271,18 +3271,150 @@
%3C
-a%3E
+Link to=%7B%60/users/$%7Bthis.state.user.id%7D/edit%60%7D%3E%3Cbutton className=%22btn btn-default btn-sm%22%3EGot... |
b9de4514c5a16cdfb5025844f7495c02c4e8048e | Fix parser.js exception in Opera 9 | util/parser.js | util/parser.js | dojo.provide("dijit.util.parser");
dojo.require("dojo.lang.type");
dojo.require("dijit.util.manager");
dojo.require("dojo.dom");
// TODO:
// - call something after all the other widgets have been created
dijit.util.parser = new function(){
function val2type(/*Object*/ value){
// summary:
// Returns name of typ... | JavaScript | 0.006406 | @@ -3084,16 +3084,36 @@
r type =
+ node.getAttribute ?
node.ge
@@ -3134,16 +3134,23 @@
joType')
+ : null
;%0A%09%09%09if(
|
8e5084d43310d00871fa03328bd583c5b4fdf39b | modify parseBase64ToJson to handle JSON token errors | utils/index.js | utils/index.js | const fs = require('fs');
const url = require('url');
const path = require('path');
const https = require('https');
const pkg = require('../package');
const DOTFILE = '.zel';
/**
* Fetches data from a URI
*
* @param {String} uri
* @parm {Object} options
* @return {Promise<String>}
*/
const get = (uri, options) ... | JavaScript | 0 | @@ -1353,63 +1353,199 @@
rse
-(as JSON) a base64 string%0A *%0A * @param %7BString%7D content
+a (%60.zel%60) file's base64 string as JSON.%0A * Customizes handler for %60Unexpected Token%60 error%0A *%0A * @param %7BBuffer%7D content - The file's contents%0A * @param %7BString%7D filepath - The file's path
%0A * ... |
87eb4ee4bf79401dfe9b06465524b4d0fb1e9470 | fix edit submissions submissions | corehq/apps/cloudcare/static/cloudcare/js/touchforms-inline.js | corehq/apps/cloudcare/static/cloudcare/js/touchforms-inline.js | /*global $:false, window:false */
(function () {
var alertHtml = function (message, alert_class) {
return (
"<div class='alert " + (alert_class || 'alert-info') + "'>" +
"<button type='button' class='close' data-dismiss='alert'>×</button>" +
message +
"<... | JavaScript | 0 | @@ -1387,16 +1387,23 @@
ata: xml
+.output
,%0A
|
84fa7b330d3845d5f76d3dee87f8f38e199f3140 | Fix issue caused by overpass-api reply change | compareData.js | compareData.js | function compareData(tiles, osmData)
{
// split per tile
var i = -1;
for (var d = 0; d < tiles.length; d++)
{
tiles[d].osmData = [];
while (!osmData[++i].count)
tiles[d].osmData.push(osmData[i]);
}
for (var d = 0; d < tiles.length; d++)
{
var data = tiledData[tiles[d].datasetName][tiles[d].tileName].... | JavaScript | 0 | @@ -141,17 +141,16 @@
%09while (
-!
osmData%5B
@@ -158,13 +158,23 @@
+i%5D.
+type != '
count
+'
)%0A%09%09
@@ -213,17 +213,16 @@
%5D);%0A%09%7D%0A%0A
-%09
%0A%09for (v
@@ -1675,17 +1675,16 @@
eturn 0;
-%09
%0A%09%7D,%0A%09/*
|
032b60eb5212ad28122e2a352c1ed34495642662 | revert check for exprName in type | lib/atom-ternjs-type.js | lib/atom-ternjs-type.js | 'use babel';
const TypeView = require('./atom-ternjs-type-view');
const TOLERANCE = 20;
import manager from './atom-ternjs-manager';
import packageConfig from './atom-ternjs-package-config';
import emitter from './atom-ternjs-events';
import {Range} from 'atom';
import {
prepareType,
prepareInlineDocs,
extractP... | JavaScript | 0 | @@ -3658,44 +3658,102 @@
if (
-!data %7C%7C !data.type.startsWith('fn')
+%0A !data %7C%7C%0A !data.type.startsWith('fn') %7C%7C%0A !data.exprName%0A
) %7B%0A
|
9ce174753ba9d46fbcb41da4ebf3b35b934acde9 | Fix typeo in Accordion tear-down. | lib/Accordion/Accordion.js | lib/Accordion/Accordion.js | import React from 'react';
import PropTypes from 'prop-types';
import uniqueId from 'lodash/uniqueId';
import classNames from 'classnames';
import { DefaultAccordionHeader } from './headers';
import css from './Accordion.css';
import { HotKeys } from '../HotKeys';
const propTypes = {
open: PropTypes.bool,
id: Prop... | JavaScript | 0 | @@ -5296,17 +5296,16 @@
ationFra
-o
me(this.
|
da946cd18ca1ba4bd749c1f8b2b314988c0b114f | Move oncick function to graph generation | website/static/js/share/stats.js | website/static/js/share/stats.js | var c3 = require('c3');
var m = require('mithril');
var $osf = require('osfHelpers');
var utils = require('./utils.js');
var Stats = {};
function get_source_length(elastic_data) {
sources = elastic_data.raw_aggregations.sources.buckets;
source_names = [];
for (i = 0; i < sources.length; i++) {
so... | JavaScript | 0 | @@ -393,32 +393,91 @@
unction
-formatSourceName
+donutGraph (data, vm) %7B%0A data.charts.shareDonutGraph.onclick = function
(d, elem
@@ -479,24 +479,24 @@
element
-, vm
) %7B%0A
+
util
@@ -542,39 +542,14 @@
%5D);%0A
-%7D%0A%0Afunction donutGraph (data) %7B
+ %7D;
%0A
@@ -3252,16 +3252,25 @@
... |
6a9575e87fdd48420b3352e0b4f99f52cd4aaaf2 | Update group_project_solution.js | week-7/group_project_solution.js | week-7/group_project_solution.js | // Release 3: Pseudocode to Code
var array = []
var operation = {
function sum(array){
var sum = 0;
for(var i = 0; i < array.length; i++){
sum = sum + array[i];
}
return sum;
}
function mean(array){
return (sum(array)/(array.length);
};
function median(array){
array = array.sor... | JavaScript | 0.000003 | @@ -260,16 +260,17 @@
.length)
+)
;%0A %7D;%0A%0A
@@ -569,8 +569,9 @@
%7D%0A %7D%0A%7D;
+%0A
|
1e928e64d6ea914870e2240a12bf33b8b2cf09b0 | Update parameters and variables shapes | src/openfisca-proptypes.js | src/openfisca-proptypes.js | import PropTypes from 'prop-types'
const valuesShape = PropTypes.objectOf(PropTypes.oneOfType([
PropTypes.bool,
PropTypes.number,
PropTypes.string,
]))
export const parameterShape = PropTypes.shape({
id: PropTypes.string,
description: PropTypes.string,
normalizedDescription: PropTypes.string,
values: v... | JavaScript | 0 | @@ -259,16 +259,51 @@
string,%0A
+ documentation: PropTypes.string,%0A
normal
@@ -551,16 +551,51 @@
string,%0A
+ documentation: PropTypes.string,%0A
entity
|
34039baefd3e63bffb8d7ea964bea43005c7b3bd | Trim whitespace from inferred page title | src/options/optionsMain.js | src/options/optionsMain.js | import os from 'os';
import path from 'path';
import _ from 'lodash';
import async from 'async';
import sanitizeFilename from 'sanitize-filename';
import inferIcon from './../infer/inferIcon';
import inferTitle from './../infer/inferTitle';
import inferOs from './../infer/inferOs';
import normalizeUrl from './normaliz... | JavaScript | 0.000068 | @@ -2972,16 +2972,23 @@
ageTitle
+.trim()
;%0A
|
c3f5d22f88278945b661bfeb119e8d72d4ba324f | remove find | lib/class/Controller.js | lib/class/Controller.js | /**
* We.js controller class
*/
var _ = require('lodash');
/**
* Constructor
*/
function Controller(attrs) {
for(var attr in attrs) {
if (attrs[attr].bind) {
this[attr] = attrs[attr].bind(this);
} else {
this[attr] = attrs[attr];
}
}
}
/**
* Default crud actions
*/
Controller.prototy... | JavaScript | 0.000026 | @@ -3253,316 +3253,55 @@
') %7B
- //should be PUT or patch
%0A
-
var
-id = req.params.id %7C%7C (res.locals.record%0A && res.locals.record.dataValues%0A && res.locals.record.dataValues.id);%0A%0A if (!id) %7B%0A return res.notFound();%0A %7D%0A%... |
9f567bc48b10b48b08c9b3ab0da9f4cb3b8b1cde | Use more efficient cycle implementation | lib/combinator/build.js | lib/combinator/build.js | /** @license MIT License (c) copyright 2010-2014 original author or authors */
/** @author Brian Cavalier */
/** @author John Hann */
var of = require('../source/core').of;
var flatMapEnd = require('./flatMapEnd').flatMapEnd;
exports.concat = concat;
exports.cycle = cycle;
exports.cons = cons;
/**
* @param {*} x va... | JavaScript | 0 | @@ -128,16 +128,51 @@
ann */%0A%0A
+var Stream = require('../Stream');%0A
var of =
@@ -254,16 +254,89 @@
tMapEnd;
+%0Avar Sink = require('../sink/Pipe');%0Avar Promise = require('../Promise');
%0A%0Aexport
@@ -1036,35 +1036,138 @@
) %7B%0A%09return
-flatMapEnd(
+new Stream(new Cycle(stream.source));%0A%7D%0A%0Afu... |
693915046c08a7e11a28e4c3354f41bee18c24d1 | Fix redfish obm service constants | lib/common/constants.js | lib/common/constants.js | // Copyright 2015, EMC, Inc.
'use strict';
module.exports = constantsFactory;
constantsFactory.$provide = 'Constants';
constantsFactory.$inject = [
'path'
];
function constantsFactory (path) {
var constants = Object.freeze({
WorkingDirectory: process.cwd(),
Name: process.cwd().split(path.sep... | JavaScript | 0.000022 | @@ -7056,23 +7056,98 @@
type: '
-redfish
+compute'%0A %7D,%0A %7B%0A type: 'enclosure
'%0A
|
4492db4603ef6b0ffdfcb13315c4019b2a638d20 | define contracts type with address defined as static | lib/config/contracts.js | lib/config/contracts.js | var readYaml = require('read-yaml');
var fs = require('fs');
var toposort = require('toposort');
ContractsConfig = function(blockchainConfig, compiler) {
this.blockchainConfig = blockchainConfig;
this.compiler = compiler;
this.contractFiles = [];
}
ContractsConfig.prototype.init = function(files) {
this.all_c... | JavaScript | 0.000001 | @@ -3382,24 +3382,115 @@
ceOf%5D;%0A %7D
+%0A if (contractConfig.address !== undefined) %7B%0A contract.types.push('static');%0A %7D
%0A%0A if (th
|
b6c5398a075739da8336deb7bedf50380e7ab69b | convert class to object | lib/controller/index.js | lib/controller/index.js | 'use strict';
import GenBase from '../genBase';
module.exports = class Generator extends GenBase {
constructor(...args) {
super(...args);
}
get prompting() {
return function () {
this.askForModuleName();
};
}
get writing() {
return async function () {
const done = this.async();
... | JavaScript | 0.000319 | @@ -14,17 +14,17 @@
%0Aimport
-G
+g
enBase f
@@ -63,231 +63,96 @@
s =
-class Generator extends GenBase %7B%0A constructor(...args)
+genBase.extend(
%7B%0A
-
- super(...args);%0A %7D%0A%0A get prompting() %7B%0A return function () %7B%0A this.askForModuleName();%0A %7D;%0A %7D%0A%0A get writing... |
37152ef1bf815348d3705e3443a879af02f90194 | change login success redirect | routes/auth.js | routes/auth.js | var express = require('express');
var router = express.Router();
var passport = require('passport');
router.get('/facebook', passport.authenticate('facebook', {scope: 'email'}));
router.get('/facebook/callback', passport.authenticate('facebook', {
successRedirect: '/'
}));
module.exports = router; | JavaScript | 0.000001 | @@ -263,16 +263,19 @@
rect: '/
+app
'%0A%7D));%0A%0A
|
6b01866a0129d3a3e2bc8ad21b05cbcc99742bcd | Update auth.js | routes/auth.js | routes/auth.js | // Identify modules.
var modules = require("../modules/modules"),
router = modules.router,
passport = require("../modules/passport/passport").passport,
uuid = require("uuid"),
User = require("../modules/models/user"),
nodemailer = require("nodemailer"),
expressSession = require("express-session"... | JavaScript | 0.000001 | @@ -3210,18 +3210,15 @@
://1
-92.168.1.2
+27.0.0.
1:80
|
7313b9d9fdc78a74ab60d994d58e68a222260bed | configure routes for sending out emails from nodemailer | routes/home.js | routes/home.js |
/*
* Routes for rendering home index page
*/
var Fashion = require('../models/fashion.js');
var Category = require('../models/category.js');
var nodemailer = require('nodemailer');
var smtpTransport = require('nodemailer-smtp-transport');
//var secrets = require('../config/secret.js');
//var config = require('... | JavaScript | 0 | @@ -245,147 +245,106 @@
');%0A
-//
var
-secrets = require('../config/secret.js');%0A//var config = require('../config/client-secret.js');%0Avar xouath2 = require('xoauth2');%0A%0A/*
+env = process.env.NODE_ENV %7C%7C 'development'; %0Avar secrets = require('../config/setting.js');%0A%0A
var
@@ -427,15 +427,12 @@
... |
54db7b8f34fcc924c85c4a7737161f234bfedc5b | 重构routes,继续精简代码 | routes/rest.js | routes/rest.js | var express = require('express');
var router = express.Router();
var Account = require('../controllers/Account');
router.post("/account/register", Account.register);
router.post("/account/login", Account.login);
router.get("/account/logout", Account.logout);
router.get("/api/account/find_nick/:nick", Account.findByNic... | JavaScript | 0 | @@ -649,22 +649,16 @@
%E6%98%AF%E5%BC%BA%E5%88%B6%E5%88%A0%E9%99%A4%0A%0A%0A
-%0A%0A%0A%0A%0A%0A
module.e
|
8b80470254dcc6aaa07919da4dcc19f017ed500d | fix _id保持方法 | database/test/nedb_test.js | database/test/nedb_test.js | 'use strict'
let NeDB_Modules = require('../nedb_module.js')
let dbmethod = new NeDB_Modules()
//*
dbmethod.get_tiles_cid("aW2hG7kwoOPfhzkX", (docs) => {
console.log(docs)
})
//*/
/*
dbmethod.set_clip(['helloworld', 'coordinote'], (newdocs) => {
console.log(newdocs)
})
//*/
/*
let instance = {
"cid": "aW2hG7k... | JavaScript | 0.000009 | @@ -7,18 +7,31 @@
trict'%0A%0A
-le
+// require%0Acons
t NeDB_M
@@ -105,16 +105,60 @@
es()%0A%0A//
+ var%0Alet target_cid = %22aW2hG7kwoOPfhzkX%22%0A%0A//
*%0Adbmeth
@@ -174,34 +174,16 @@
les_cid(
-%22aW2hG7kwoOPfhzkX%22
, (docs)
@@ -344,34 +344,26 @@
%22cid%22:
-%22aW2hG7kwoOPfhzkX%22
+target_cid
,%0A %22idx... |
0392423e53dda87dea24262bada6a8cf4afeaa72 | revert the fix for 325 | lib/cucumber/runtime.js | lib/cucumber/runtime.js | function Runtime(configuration) {
var Cucumber = require('../cucumber');
var listeners = Cucumber.Type.Collection();
var self = {
start: function start(callback) {
if (typeof(callback) !== 'function')
throw new Error(Runtime.START_MISSING_CALLBACK_ERROR);
var isStrictRequested = config... | JavaScript | 0.000003 | @@ -275,17 +275,16 @@
ERROR);%0A
-%0A
va
@@ -306,81 +306,152 @@
sted
- = configuration.isStrictRequested && configuration.isStrictRequested();
+;%0A try %7B%0A isStrictRequested = configuration.isStrictRequested();%0A %7D catch(e) %7B%0A isStrictRequested = false;%0A %7D
%0... |
b24727fabb21448e8771e072f8be6ec2716e52ad | Update electron version fixing security issues | deploy/electron/Gruntfile.js | deploy/electron/Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
"download-electron": {
version: "1.8.8",
outputDir: "./electron",
rebuild: true
}
});
grunt.loadNpmTasks('grunt-download... | JavaScript | 0 | @@ -189,12 +189,13 @@
n: %22
-1.8.
+2.0.1
8%22,%0A
|
fcb606a5e93f62ace00b2d7bfd0e3d5d50ee7156 | rename checkCourseAgainstQueryBit to checkQueryBit | modules/gob-search-queries/check-course-against-query.js | modules/gob-search-queries/check-course-against-query.js | import toPairs from 'lodash/toPairs'
const isTrue = x => x === true
const SUBSTRING_KEYS = new Set([
'title',
'name',
'description',
'notes',
'instructors',
'times',
'locations',
])
function checkCourseAgainstQueryBit(course, [key, values]) {
if (!course.hasOwnProperty(key)) {
return false
}
let substri... | JavaScript | 0 | @@ -195,37 +195,24 @@
nction check
-CourseAgainst
QueryBit(cou
@@ -1934,29 +1934,14 @@
r =%3E
-%0A%09%09
+
check
-CourseAgainst
Quer
@@ -1958,15 +1958,12 @@
e, pair)
-,%0A%09
)%0A%7D%0A
|
0f3e8afe1498976ad2079c25191e3591752d1d80 | add conversion from date to ISODate object | modules/meetings/client/controllers/multiple-meetings.client.controller.js | modules/meetings/client/controllers/multiple-meetings.client.controller.js | (function () {
'use strict';
angular
.module('meetings')
.controller('MultipleMeetingsController', MultipleMeetingsController);
MultipleMeetingsController.$inject = ['$scope', 'MeetingsService', 'meetingResolve', 'listFacilitiesResolve', 'listApplicationsResolve', 'listCompaniesResolve', 'Authentication... | JavaScript | 0.000423 | @@ -1515,16 +1515,30 @@
e = date
+.toISOString()
;%0A%0A
|
fbaa97a9220ca20019a6c6e303588f47b70216e0 | Add Jeff to blog authors. | common/index.js | common/index.js | const colors = {
canvas: '#fff',
blueMain: '#3700FF',
black: '#000',
white: '#fff',
alert: '#EF4F4F',
notify: '#FFD780',
success: '#41CD5F',
text: Object.assign(String('#211F6D'), {
headings: '#b4b4b4',
body: '#f7f7f7',
link: Object.assign(String('rgba(33, 31, 109, 0.5)'), {
hover: '#3... | JavaScript | 0 | @@ -4033,16 +4033,213 @@
uevasm'%0A
+ %7D,%0A 'Jeff Domke': %7B%0A blockstackId: 'jeffdomke',%0A name: 'Jeff Domke',%0A avatar: 'https://blockstack.org/images/avatars/jeff-domke.jpg',%0A twitter: 'jeffdomke',%0A github: 'jeffdomke',%0A
%7D%0A%7D%0A%0Am
|
909738bce63d0e4c74920cca5d798e2fc6108ecd | Fix update page releases unexpected ordering | src/pages/update/update.js | src/pages/update/update.js | (function(){
"use strict";
_gaq.push(['_trackPageview']);
ConfigManager.load();
KC3Meta.init("../../data/");
KC3Translation.execute();
var myVersion = chrome.runtime.getManifest().version;
// Document ready
$(document).on("ready", function(){
$("#restartNow").on("click", function(){
chrome.runtime.re... | JavaScript | 0 | @@ -1673,30 +1673,179 @@
%09%09%09%09
-%0A%09%09%09%09$.each(response,
+// Only show recent 10 releases of page1 (30/p),%0A%09%09%09%09// Order by %60merged_at desc, created_at desc%60 as API not support%0A%09%09%09%09var orderedReleases = response.slice(0, 10).sort(
func
@@ -1853,53 +1853,318 @@
ion(
-i, rel)%7B%0... |
1c9ffd028e3be0f1f4e245f88d55ff2878ab98c6 | disable cassette overrides for one-way machines | new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceOverrides.js | new-lamassu-admin/src/pages/Notifications/sections/FiatBalanceOverrides.js | import * as R from 'ramda'
import React, { useContext } from 'react'
import * as Yup from 'yup'
import { Table as EditableTable } from 'src/components/editableTable'
import { NumberInput } from 'src/components/inputs/formik/'
import Autocomplete from 'src/components/inputs/formik/Autocomplete'
import { transformNumber... | JavaScript | 0 | @@ -289,16 +289,65 @@
mplete'%0A
+import %7B fromNamespace %7D from 'src/utils/config'%0A
import %7B
@@ -1371,16 +1371,72 @@
AME, it)
+%0A const cashoutConfig = it =%3E fromNamespace(it)(config)
%0A%0A cons
@@ -4863,24 +4863,74 @@
n: value =%3E%0A
+ !cashoutConfig(value.machine).active %7C%7C%0A
... |
d994b39949c823c844191bbc6e1dfa75a8668cd3 | job_role | public/modules/empoyer-jobs/controllers/emp-job-post-one.client.controller.js | public/modules/empoyer-jobs/controllers/emp-job-post-one.client.controller.js | 'use strict';
angular.module('empoyer-jobs').controller('EmpJobPostOneController', ['$scope','$http', '$location','Jobs', '$stateParams',
function($scope,$http,$location,Jobs, $stateParams) {
// Controller Logic
// ...
// $scope.industries = Industries.getIndustries();
$scope.job = {};
$scope.job.industry ... | JavaScript | 0.9996 | @@ -2618,24 +2618,74 @@
dustry.name;
+%0A%09%09%09$scope.job.job_role = $scope.job.job_role._id;
%0A%0A%09%09%09if(!$st
|
4086cba1da4f3a6d85dbeb65acf42e10039fbb1f | Add new react rules | rules/react.js | rules/react.js | 'use strict';
module.exports = {
plugins: [
'react',
],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
// Enable original eslint rules
'jsx-quotes': 'error',
// React rules
'react/display-name': 'off',
'react/... | JavaScript | 0.000001 | @@ -265,24 +265,77 @@
React rules%0A
+ 'react/default-props-match-prop-types': 'error',%0A
'react/d
@@ -980,32 +980,91 @@
teless: true%7D%5D,%0A
+ 'react/no-redundant-should-component-update': 'error',%0A
'react/no-re
@@ -1938,32 +1938,79 @@
tion': 'error',%0A
+ 'react/jsx-closing-tag-location': '... |
de39ce89ffb9f8b6d4ee671910ea5a361c2fc65d | Update comment rule to allow new lines when nested | rules/style.js | rules/style.js | module.exports = {
// Color
'color-hex-case': 'lower',
'color-hex-length': ['short', {
severity: 'warning'
}],
// Font family
'font-family-name-quotes': 'always-unless-keyword',
// Font weight
'font-weight-notation': ['numeric', {
severity: 'warning'
}],
// Function
'function-comma-newline-after': 'al... | JavaScript | 0 | @@ -4444,32 +4444,60 @@
': %5B'always', %7B%0A
+%09%09except: %5B'first-nested'%5D,%0A
%09%09ignore: %5B'styl
|
98d053cf2673350a7b04f62328508c912b7cfe1c | Add settingsFiles to getSyncChanges | lib/get-sync-changes.js | lib/get-sync-changes.js | const {QuantalApi, QuantalError} = require('./quantal-api')
const AtomSettingsManager = require('./atom-settings-manager')
const store = require('store')
/**
* Returns a list of changes between the server and
* the client Atom settings. Possible changes are:
* <pre>
* - FirstTimeConnect : First time user
* ... | JavaScript | 0 | @@ -1985,32 +1985,87 @@
son'%5D.content),%0A
+ settingsFiles: settings.files,%0A
@@ -3604,32 +3604,91 @@
son'%5D.content),%0A
+ settingsFiles: settings.files,%0A
@@ -3720,32 +3720,32 @@
astServerUpdate%0A
-
@@ -38... |
8bb87493874d5c284e918e86fe25b3f012568413 | fix create Solr collection | lib/index/solr-admin.js | lib/index/solr-admin.js | const Promise = require('bluebird'),
request = Promise.promisifyAll(require('request')),
exec = Promise.promisify(require('child_process').exec),
_ = require('lodash'),
log = require('../logger'),
config = require('config');
function SolrCollectionError(message) {
this.message = message;
this.name = 'Sol... | JavaScript | 0 | @@ -97,26 +97,8 @@
c =
-Promise.promisify(
requ
@@ -122,17 +122,16 @@
s').exec
-)
,%0A _ =
@@ -1587,22 +1587,89 @@
')%7D%60;%0A
-return
+log.info('Running', cmd);%0A return new Promise((resolve, reject) =%3E %7B%0A
exec(cm
@@ -1708,31 +1708,24 @@
hell') %7D
-)%0A .spread((
+, (err,
stdout,
@@ -17... |
a5f80ae249301f49b67ee62847038b0cd6fadd42 | Add props from schema library | lib/interfaceFactory.js | lib/interfaceFactory.js | 'use strict';
const uuid = require('uuid/v5');
const NAMESPACE = 'bc901568-0169-42a8-aac8-52fa2ffd0670';
const { globalRegistry } = require('./index');
module.exports.createInterfaceClass = function (namespace) {
class Interface {
constructor (params, compat) {
const outp = function Interface ... | JavaScript | 0.000001 | @@ -2307,32 +2307,74 @@
%0A %7D%0A%0A
+ const schema = params.schema%0A%0A
if (
@@ -2538,54 +2538,8 @@
hema
-%0A var schema = this.schema;
%0A%0A
@@ -3089,24 +3089,65 @@
if (
+!compat) %7B%0A if (schema &&
typeof schem
@@ -3188,32 +318... |
e8216c1b293005e22bbd79e99c07c1d525d5a022 | put in platform detection | lib/base/iterator/index.js | lib/base/iterator/index.js | 'use strict'
/**
* @property @@iterator
* injectable es6 for of support
* @memberOf Base#
*/
module.exports = function (base) {
base[Symbol.iterator] = function * baseIterator () {
var properties = this._properties
for (var i in this) {
if (i[0] !== '_' && !properties[i] && this[i] !== null) {
... | JavaScript | 0 | @@ -89,16 +89,99 @@
ase#%0A*/%0A
+var isNode = require('../../util/is/node')%0Aif (!isNode) %7B%0A require('./browser')%0A%7D%0A
module.e
|
b96c5b6aa03f7cd03708263ddcd01a731390e377 | Fix under header line size being incorrect for piped markdown. | lib/markdown-wrapper.js | lib/markdown-wrapper.js | 'use strict';
var Chalk = require('chalk');
var marked = require('marked');
var renderer = new marked.Renderer();
/**
* Override the headings format.
*
* @param {String} text
* @param {Number} level
* @return {String}
*/
renderer.heading = function(text, level) {
var render;
switch (level) {
case 1:
... | JavaScript | 0 | @@ -278,16 +278,161 @@
render;
+%0A // Set the maximum amount of columns for the header to be 81.%0A var linesAmount = (process.stdout.columns %3C 81) ? process.stdout.columns : 81;
%0A%0A swit
@@ -520,38 +520,27 @@
+ Array(
-process.stdout.columns
+linesAmount
).join('
@@ -642,38 +642,27 @@
+ Array(
-process.... |
bb0c4b620884acb666d768c78974355edc35eac5 | Add the Efficiency plugin's generated javascript file too. | client/plugins/efficiency/efficiency.js | client/plugins/efficiency/efficiency.js | // Generated by CoffeeScript 1.3.3
(function() {
window.plugins.efficiency = {
emit: function(div, item) {
wiki.log('efficiency', div, item);
div.addClass('data');
$('<p />').addClass('readout').appendTo(div).text("63%");
return $('<p />').html(wiki.resolveLinks(item.text || 'efficiency')... | JavaScript | 0 | @@ -28,11 +28,11 @@
t 1.
-3.3
+4.0
%0A(fu
@@ -75,16 +75,41 @@
ncy = %7B%0A
+ efficiencyDIV: null,%0A
emit
@@ -262,15 +262,46 @@
xt(%22
-63
+0
%25%22);%0A
+ this.efficiencyDIV = div;%0A
@@ -450,25 +450,109 @@
te,
-lastThumb, locate
+calculatePercentage, getImageData, lastThumb, locate, setEffic... |
8a3171645defe839a5cef739a96943116bdf9ac0 | Handle blur in CalendarButton | client/src/components/CalendarButton.js | client/src/components/CalendarButton.js | import React, {Component} from 'react'
import {Button} from 'react-bootstrap'
import DatePicker from 'react-bootstrap-date-picker'
import autobind from 'autobind-decorator'
import CALENDAR_ICON from 'resources/calendar.png'
export default class CalendarButton extends Component {
render() {
let {onChange, ...props}... | JavaScript | 0 | @@ -580,16 +580,33 @@
k() %7B%0A%09%09
+let datePicker =
this.ref
@@ -617,16 +617,107 @@
tePicker
+%0A%09%09if (datePicker.state.inputFocused) %7B%0A%09%09%09datePicker.handleBlur()%0A%09%09%7D else %7B%0A%09%09%09datePicker
.handleF
@@ -723,13 +723,17 @@
Focus()%0A
+%09%09%7D%0A
%09%7D%0A%7D%0A
|
43ac180b0effd65ed46a5034934a18556f17a342 | Fix rewriting new connections when new search is triggered | client/src/components/PrepojeniaPage.js | client/src/components/PrepojeniaPage.js | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import InfoLoader from './info/InfoLoader';
import * as serverAPI from '../actions/serverAPI';
import Navigation from './Navigation';
import Search from './Search';
import './PrepojeniaPage.css';
class PrepojeniaPage extends Comp... | JavaScript | 0.000003 | @@ -1242,31 +1242,49 @@
: true,%0A
-%7D);
+ connections: %5B%5D,
%0A
+ %7D,
this.loadEn
@@ -1288,17 +1288,16 @@
dEntity1
-(
);%0A %7D%0A%0A
@@ -4393,16 +4393,53 @@
ections
+&& this.state.connections.length %3E 0
? (%0A
|
276e6a910624c7a93614e4e05e74b594b47fc17c | remove spurious line | client/views/locations/location.list.js | client/views/locations/location.list.js | Router.map(function () {
this.route('locations',{
path: 'locations',
template: 'locationlist',
waitOn: function () {
return Meteor.subscribe('locations');
},
onAfterAction: function() {
document.title = webpagename + 'Location list'
}
})
});
Template.locationlist.locations=function(){
var region =... | JavaScript | 0.998572 | @@ -340,44 +340,8 @@
n')%0A
-%09if (!!region) find.region = region%0A
%09var
|
eea004f2d592d42c778a861c155b573509c2da99 | handle buffer'd responses | lib/plugins/redirect.js | lib/plugins/redirect.js | 'use strict';
var parseURL = require('url').parse;
var path = require('path');
function redirect(rail, opt_options) {
opt_options = opt_options || {};
var pluginOptions = {
limit: opt_options.limit || 1,
codes: opt_options.codes || [301, 302, 308],
sameHost: opt_options.sameHost || false,
allowUp... | JavaScript | 0.000001 | @@ -2549,228 +2549,16 @@
-// dump obsolete response%0A response.on('readable', function() %7B%0A // TODO: check & warn (a redirect shouldn't have a body)%0A response.read();%0A %7D);%0A%0A // send next request%0A response.once('end',
function
() %7B
@@ -2553,16 +2553,22 @@
function
+ onE... |
119cac5e2637cd6222a1a06ef41ac1694974f72a | Fix modelist. | lib/ace/ext/modelist.js | lib/ace/ext/modelist.js | define(function(require, exports, module) {
"use strict";
var modes = [];
/**
* Suggests a mode based on the file extension present in the given path
* @param {string} path The path to the file
* @returns {object} Returns an object containing information about the
* suggested mode.
*/
function getModeForPath(pat... | JavaScript | 0 | @@ -1587,47 +1587,8 @@
%22%5D,%0A
- C9Search: %5B%22c9search_results%22%5D,%0A
|
abfbf8eedc814dd632b4071b758b1280c7a63fc9 | Use public property for checking if stream is already destroyed | lib/promise-readable.js | lib/promise-readable.js | 'use strict'
const Promise = require('any-promise')
class PromiseReadable {
constructor (stream) {
this.stream = stream
this._ended = false
}
read (size) {
return typeof this.stream.read === 'function' ? this._read2(size) : this._read1()
}
_read1 () {
const stream = this.stream
return... | JavaScript | 0 | @@ -415,56 +415,15 @@
%7C%7C
-(
stream.
-_readableState && stream._readableState.
dest
@@ -420,33 +420,32 @@
tream.destroyed)
-)
%7B%0A retur
@@ -1294,56 +1294,15 @@
%7C%7C
-(
stream.
-_readableState && stream._readableState.
dest
@@ -1299,33 +1299,32 @@
tream.destroyed)
-)
%7B%0A retur
@@... |
fcb159dffd23b39bbc7d5be492337912658e8237 | change log level in DELETE object ops | lib/api/objectDelete.js | lib/api/objectDelete.js | import { errors } from 'arsenal';
import services from '../services';
/**
* objectDelete - DELETE an object from a bucket
* (currently supports only non-versioned buckets)
* @param {AuthInfo} authInfo - requester's infos
* @param {object} request - request object given by router,
* incl... | JavaScript | 0 | @@ -1194,36 +1194,37 @@
log.
-warn
+debug
('error processi
@@ -1577,20 +1577,21 @@
log.
-warn
+debug
('error
|
cf940169242da3b1e88e510c1a3126e3a09aacdd | Update boot.js | script/boot.js | script/boot.js | var bootManager = {};
bootManager.icon = "assest/white_circle_loader.gif";
bootManager.img = "assest/logo.png";
bootManager.holder;
bootManager.container = document.body;
bootManager.init = function() {
bootManager.drawContainer();
bootManager.addData();
}
bootManager.drawContainer = function() {
bootManager.ho... | JavaScript | 0.000001 | @@ -67,11 +67,11 @@
der.
-gif
+GIF
%22;%0Ab
@@ -900,12 +900,13 @@
ve();%0A%09%7D);%0A%7D
+%0A
|
11b97b0c2cc14956824fdb6c176d83a0b2acdc6a | Update main.js | script/main.js | script/main.js | $(document).ready(function ($) {
//navigation bar code
nav = $('.nav');
navHeight = nav.height();
//Calculated based on the image above... it is 1920x814
navOffset = $(window).width() / 2.358722358722359;
navSpacer = $('.navSpacer').css('height', navHeight);
function checkScroll() {
scroll = $(docu... | JavaScript | 0.000001 | @@ -1325,17 +1325,17 @@
eight +
-2
+5
;%0A
|
b6c49c715f487b25cfe2f729d6f2569ca2379aff | enable broadcast support in UDP socket | lib/bacnet-transport.js | lib/bacnet-transport.js | var dgram = require('dgram');
module.exports = function(settings) {
var self = this;
var globalHandler;
var server = dgram.createSocket('udp4');
// Events
server.on('message', function(msg, rinfo) {
if (globalHandler) {
globalHandler(msg, rinfo.address);
}
});
// Public functions
self.... | JavaScript | 0.000001 | @@ -711,19 +711,70 @@
nterface
-);%0A
+, function() %7B%0A server.setBroadcast(true);%0A %7D);%0A
%0A retur
|
5d691b1a1e30654f0f56cbf8be3ba378e5b8f753 | check valid bound box from geocoder | src/geo/ui/search.js | src/geo/ui/search.js |
cdb.geo.ui.Search = cdb.core.View.extend({
className: 'search_box',
events: {
"click input[type='text']": '_focus',
"submit form": '_submit',
"click": '_stopPropagation',
"dblclick": '_stopPropagation',
"mousedown": '_st... | JavaScript | 0 | @@ -832,28 +832,294 @@
) %7B%0A
-if (
+var validBBox = true;%0A // check bounding box is valid%0A if(coords%5B0%5D.boundingbox.south == coords%5B0%5D.boundingbox.north %7C%7C%0A coords%5B0%5D.boundingbox.east == coords%5B0%5D.boundingbox.west) %7B%0A validBBox = false;%0A ... |
ed16327e16f4e3c6486fa9b0e9057dc367bb5f9d | Fix missing space between option name and value | lib/batch/translator.js | lib/batch/translator.js | var resolver = require('../resolver');
function Translator(domain) {
this.domain = domain;
this.initialize();
}
Translator.prototype = {
TYPE_ADD: 'add',
MAPPED_FIELDS: {
'id': '_key'
},
initialize: function() {
this.tableName = resolver.getTableNameFromDomain(this.domain);
},
translate: fun... | JavaScript | 0.999891 | @@ -1380,16 +1380,22 @@
option +
+ ' ' +
options
|
c4f9e48ea9e1c49ab19b6f785ae949d4092137e5 | use batch api for potentially long validation | validations.js | validations.js | 'use strict';
var Bluebird = require('bluebird');
var debug = require('debug')('into-cartodb:validations');
module.exports = Bluebird.coroutine(function * validate(tempTable, _fields, config, db, group) {
let fields = new Map();
_fields.forEach(function (field) {
fields.set(field, field);
});
var validatio... | JavaScript | 0 | @@ -1279,16 +1279,24 @@
pTable%5D)
+.batch()
;%0A
|
4c39ad04217e17d84979c813a3dd26f1fd285b1e | clean client api code | lib/runtime/debugger.js | lib/runtime/debugger.js | 'use babel'
/** @jsx etch.dom */
import { CompositeDisposable } from 'atom'
import { views } from '../ui'
import { client } from '../connection'
import workspace from './workspace'
let {addsourcebp, removesourcebp, getbps, loadgallium, clearbps} =
client.import(['addsourcebp', 'removesourcebp', 'getbps', 'loadgall... | JavaScript | 0 | @@ -447,133 +447,8 @@
()%0A%0A
- client.handle(%7B%0A debugmode: state =%3E debugmode(state),%0A stepto: (file, line, text) =%3E stepto(file, line, text)%0A %7D)%0A%0A
su
@@ -940,24 +940,33 @@
f() %7D%0A%0A
-function
+client.handle(%7B%0A
debugmo
@@ -973,16 +973,18 @@
de(a) %7B%0A
+
active
@@ -98... |
6d8a3ddc8f7cf121cf337c3f39be836abce50779 | refactor the duplicate actions into a `load` function | lib/containers/accumulators/accumulator.js | lib/containers/accumulators/accumulator.js | import React from 'react';
import PropTypes from 'prop-types';
import {Disposable} from 'event-kit';
export default class Accumulator extends React.Component {
static propTypes = {
// Relay props
relay: PropTypes.shape({
hasMore: PropTypes.func.isRequired,
loadMore: PropTypes.func.isRequired,
... | JavaScript | 0.999876 | @@ -1521,24 +1521,57 @@
set);%0A %7D%0A
+ this.load();%0A %7D%0A%0A load() %7B%0A
this.pro
@@ -1788,194 +1788,17 @@
%7D,
-() =%3E %7B%0A console.log('resetting...', this.state);%0A this.props.handleResults(this.state.error, this.state.all, this.props.relay.hasMore());%0A this.attemptToLo... |
a3ea956f27df723c8e140b4cf4c2a205b4249aef | fix issue | SunReadSource/src/main/webapp/static/js/controller/mainCtrl.js | SunReadSource/src/main/webapp/static/js/controller/mainCtrl.js | //mainCtrl.js
var ctrls = angular.module('nourControllers',['nourConfig', 'ngResource', 'userServices', 'noteServices', 'paraServices', 'commentServices'
,'examServices'
,'bookDetailServices','bookshelfServices','bookInShelfServic... | JavaScript | 0.000002 | @@ -1122,17 +1122,16 @@
%7D)%0A
-%0A
//no
@@ -1133,16 +1133,202 @@
//note%0A
+ Note.get(%7Bby: %22users%22, id: $rootScope.id, page: 0, size: 4, direction: %22DESC%22, sortBy: %22creationTime%22%7D, %0A function(data)%7B%0A $scope.notes = data;%0A %7D)%0A%0A //hot note%0A
Note
... |
08790688fc470b7c6da36146142ad48156eb1d9c | Update stories.js | src/ButtonMini/stories.js | src/ButtonMini/stories.js | import {stories, bool, oneOf, func, className, string} from '../duckyStories';
import ButtonMini from './index';
stories(module, ButtonMini, [
'https://github.com/DuckyTeam/ducky-web/issues/1327'
], {
className: className(),
disabled: bool(),
icon: string('icon-tram'),
larger: bool(false),
onClick: func(),... | JavaScript | 0.000001 | @@ -279,17 +279,16 @@
%0A large
-r
: bool(f
|
26f04f0b2ec1fb74d5bc2751d18d6edbe153f47e | Replace dataverseViewFile's bootboxes with GrowlBoxes | website/addons/dataverse/static/dataverseViewFile.js | website/addons/dataverse/static/dataverseViewFile.js | /**
* Simple knockout model and view model for rendering the info table on the
* file detail page.
*/
;(function (global, factory) {
if (typeof define === 'function' && define.amd) {
define(['knockout', 'jquery', 'knockoutpunches'], factory);
} else if (typeof $script === 'function') {
global... | JavaScript | 0.000001 | @@ -2842,21 +2842,20 @@
-bootbox.alert
+new GrowlBox
( 'C
@@ -2873,13 +2873,10 @@
lete
-: ' +
+',
tex
|
415a884734651f920f6b6ff9d4886931b25ba940 | Fix title for "Settings" button | lib/services/toolbar.js | lib/services/toolbar.js | /** @babel */
/**
* Copyright (c) 2016-present PlatformIO <contact@platformio.org>
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import { Disposable } from 'atom';
let currentService = null;
export function ... | JavaScript | 0.000008 | @@ -1930,22 +1930,12 @@
p: '
-PlatformIO IDE
+Atom
Set
|
2220024e1f41457ee0f4c4114d989daa9b0d8d23 | support config mouse button | src/ContextMenuTrigger.js | src/ContextMenuTrigger.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import assign from 'object-assign';
import { showMenu, hideMenu } from './actions';
import { callIfExists, cssClasses } from './helpers';
export default class ContextMenuTrigger extends Component {
static pr... | JavaScript | 0.000001 | @@ -728,16 +728,55 @@
%5D),%0A
+ mouseButton: PropTypes.number,%0A
@@ -1020,24 +1020,85 @@
posY: 0,%0A
+ mouseButton: 2, // 0 is left click, 2 is right click%0A
disa
@@ -2739,32 +2739,91 @@
= (event) =%3E %7B%0A
+ if (event.button === this.props.mouseButton) %7B%0A ... |
400a53075a17b5309a994b97b78949b8471d5ed8 | fix waitlist onInvalidate logic | lib/client/wait_list.js | lib/client/wait_list.js | /*****************************************************************************/
/* Imports */
/*****************************************************************************/
var assert = Iron.utils.assert;
/*****************************************************************************/
/* Private */
/******************... | JavaScript | 0 | @@ -4217,24 +4217,108 @@
eadyCount--;
+%0A%0A if (self._notReadyCount === 0)%0A self._readyDep.changed();
%0A %7D
|
0bc9a329e8fa36c8dff2104d9f34b10cb14d8104 | Remove Kontur-specific contact types | src/Domain/ContactType.js | src/Domain/ContactType.js | // @flow
export const ContactTypes = {
email: "email",
pushover: "pushover",
telegram: "telegram",
phone: "phone",
slack: "slack",
["twilio voice"]: "twilio voice",
};
export const ContactTypeCaptions = [
["email", "EMail"],
["pushover", "Pushover"],
["telegram", "Telegram"],
["... | JavaScript | 0 | @@ -44,17 +44,16 @@
email: %22
-e
mail%22,%0A
@@ -107,28 +107,8 @@
m%22,%0A
- phone: %22phone%22,%0A
@@ -290,37 +290,8 @@
%22%5D,%0A
- %5B%22phone%22, %22Kontur SMS%22%5D,%0A
|
aeda631e8fa8bcbb779f690210e6926e73857382 | fix foundation console warnings for plugin initialisation | {{cookiecutter.project_slug}}/pages/static/js/app.js | {{cookiecutter.project_slug}}/pages/static/js/app.js | $(document).foundation();
$(document).ready(function(){
$('.testimonials').bxSlider({
auto: true,
mode: 'vertical',
pager: false,
controls: false,
slideMargin:3,
});
$('.adverts').bxSlider({
minSlides: 3,
maxSlides: 3,
slideWidth: 210,
slideMa... | JavaScript | 0 | @@ -1,31 +1,4 @@
-$(document).foundation();%0A%0A
$(d
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.