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 |
|---|---|---|---|---|---|---|---|
334f87439c4ecdc6625d18a40e20c860cb0e6fc8 | Add a test for animation callbacks. | frameworks/animation/tests/core.js | frameworks/animation/tests/core.js | // ==========================================================================
// Project: SproutCore Animation
// ==========================================================================
/*globals module test ok isObj equals expects */
var view, base, inherited;
module("Animatable", {
setup: function() {
vie... | JavaScript | 0 | @@ -259,18 +259,24 @@
nherited
+, pane
;%0A
-
module(%22
@@ -312,16 +312,161 @@
ion() %7B%0A
+ SC.RunLoop.begin();%0A pane = SC.Pane.create(%7B%0A layout: %7B top: 0, right: 0, width: 200, height: 200 %7D,%0A %7D);%0A pane.append();%0A %0A
view
@@ -787,32 +787,60 @@
%7D%0A %7D);%0... |
f0d10dd561e33222b91404b272708e5a27c69073 | fix tests | projects/qgrid-core/model/model.bind.spec.js | projects/qgrid-core/model/model.bind.spec.js | import { ModelBinder } from './model.bind';
import { Event } from '../event/event';
describe('ModelBinder', () => {
let state = { prop: 'originValue' };
let model = {
state: value => {
if (value) {
Object.assign(state, value);
return;
}
return state;
},
stateChanged: new Event()
};
let mod... | JavaScript | 0.000003 | @@ -566,16 +566,23 @@
elNames,
+ false,
false);
@@ -795,31 +795,25 @@
Value: '
-valueAfterEvent
+hostValue
',%0A%09%09%09%09%09
@@ -903,23 +903,17 @@
al('
-valueAfterEvent
+hostValue
');%0A
|
17ebf087752d0b46c72dc696d7e0da5811f841df | Fix gulpfile to copy Bootstrap less files before mixing | gulpfile.js | gulpfile.js | var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... | JavaScript | 0 | @@ -474,61 +474,166 @@
-mix.less('app.less');%0A%0A // Base Scripts and Styles
+// Base Scripts and Styles%0A mix.copy(%5B%0A './bower_components/bootstrap/less/',%0A %5D, 'resources/assets/less/bootstrap/');%0A%0A mix.less('app.less');
%0A%0A
@@ -877,32 +877,102 @@
mix.styles(%5B%0A
+ ... |
8a3f1acc2abfc72d25149ebc0a5caab53552efc6 | Disable lint for test assets | gulpfile.js | gulpfile.js | 'use strict';
const path = require('path');
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const excludeGitignore = require('gulp-exclude-gitignore');
const mocha = require('gulp-mocha');
const istanbul = require('gulp-istanbul');
const nsp = require('gulp-nsp');
const plumber = require('gulp-plu... | JavaScript | 0.000001 | @@ -772,32 +772,51 @@
**/templates/**'
+, '!test/assets/**'
%5D)%0A .pipe(exc
|
7ef4340f1861689982e9d5db229d60fae70bd322 | upgrade bower to latest version | lib/package_managers/bower.js | lib/package_managers/bower.js | var bower = require('bower'),
shell = require('shelljs'),
prettyjson = require('prettyjson'),
path = require('path'),
roots = require('../index');
// this should be configurable
bower.config.directory = roots.project.path('components');
module.exports = function(command){
// if installing, make the ... | JavaScript | 0 | @@ -154,16 +154,56 @@
/index')
+,%0A prettyjson = require('prettyjson')
;%0A%0A// th
|
0f34b59eb00cc6a310e6451824b2f04bc7c023d0 | correct warn call | lib/logs.js | lib/logs.js | /**
* @author Gilles Coomans <gilles.coomans@gmail.com>
*
*/
if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
define(["require", "./utils", "./promise"], function(require, utils, Prom) {
var logs = {
slog: function(args, s, e) {
if (args.length === 0)
args.push("dp:success... | JavaScript | 0.00001 | @@ -4232,20 +4232,20 @@
urn;%0A%09%09%09
-deep
+logs
.warn(%22%5C
|
bb0123a853ae297d3419211eb370f63409876acc | Add missing import. | app/models/exec.js | app/models/exec.js | import DS from "ember-data";
export default DS.Model.extend( {
code: DS.attr("string"),
module: DS.belongsTo("module", { async: true }),
report: DS.attr("string"),
result: DS.attr("string"),
time: DS.attr("date"),
user: DS.belongsTo("user", { async: true }),
ok: Ember.computed("r... | JavaScript | 0.000001 | @@ -22,16 +22,44 @@
-data%22;%0D
+%0Aimport Ember from %22ember%22;%0D
%0A%0D%0Aexpor
|
544c5fd20d08220bf4b43c2fb94595314a304b64 | Fix semver | jquery-svg-to-inline.js | jquery-svg-to-inline.js | /*! jQuery SVG to Inline v0.0.1beta
* https://github.com/tiagoporto/jquery-svg-to-inline
* Copyright (c) 2015-2016 Tiago Porto (tiagoporto.com)
* Released under the MIT license
*/
$.fn.svgToInline = function() {
var usedClass = this.selector;
this.each(function() {
var path = $(this).attr('data') || $(this).attr(... | JavaScript | 0.000003 | @@ -25,11 +25,11 @@
v0.
-0.1
+1.0
beta
|
b3eb9f8404e30835f59f6a7c9885d9c672ee6db9 | Remove unused variable | app/components/common/form-inputs/blob/index.js | app/components/common/form-inputs/blob/index.js | import React, { Component } from 'react';
import {
Text,
View,
Image,
StatusBar,
TouchableHighlight,
PermissionsAndroid
} from 'react-native';
import Camera from 'react-native-camera';
import ImageCache from 'components/common/image-cache';
import { storeImage } from 'helpers/fileManagement';
import i18n f... | JavaScript | 0.000015 | @@ -774,42 +774,8 @@
s);%0A
- this.timerLoadPicture = null;%0A
|
940fb9a56511b80d55fd4c8284968232abdf1989 | Add descriptions for new proposed props | src/ReactBubbleChart.js | src/ReactBubbleChart.js | //------------------------------------------------------------------------------
// Copyright Jonathan Kaufman Corp. 2015
//
// 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://w... | JavaScript | 0 | @@ -4586,16 +4586,483 @@
legend%0A%0A
+// fontSizeFactor%0A// A multiplier used to determine a bubble's font-size as a function of its radius.%0A// If not specified, the font-sizes depend on CSS styles for large, medium, and small classes, or 1em by default.%0A%0A// duration%0A// Determines the length of time (in mill... |
55791e8ffd3a670854fd23581315ad0f30c4da51 | Embed Hypothesis (#68) | src/components/Header.js | src/components/Header.js | import { Component } from 'react';
import PropTypes from 'prop-types';
import Menu from './Menu';
import Link from 'next/link';
import api from '../api';
import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typogr... | JavaScript | 0 | @@ -846,16 +846,318 @@
%7D,%0A%7D);%0A%0A
+function embedHypothesis(scriptUrl) %7B%0A window.hypothesisConfig = function() %7B%0A return %7B%0A showHighlights:true,%0A appType:'bookmarklet',%0A %7D;%0A %7D;%0A var scriptNode = document.createElement('script');%0A scriptNode.setAttribute('src', scri... |
4fc788bbca1be963dcdcd857dde2be2e0c268a07 | Update jquery.dialogOptions.js | jquery.dialogOptions.js | jquery.dialogOptions.js | /*
* jQuery UI dialogOptions v1.0
* @desc extending jQuery Ui Dialog - Responsive, click outside, class handling
* @author Jason Day
*
* Dependencies:
* jQuery: http://jquery.com/
* jQuery UI: http://jqueryui.com/
* Modernizr: http://modernizr.com/
*
* MIT license:
* http://www.opensource.org... | JavaScript | 0 | @@ -252,16 +252,114 @@
izr.com/
+ Modernizr adds feature detection. dialogOptions optionally checks for html.touch for scrolling
%0A *%0A * M
|
6270def62b44079883fcaeec1c7436df120b0a99 | Fix comments. | js/tweets.js | js/tweets.js | /*
* Retrieve the last 100 tweets of the specified user.
* To run, execute node express.js
*/
var url = require('url');
var request = require('request');
var express = require('express');
var app = express();
app.get('/tweets/:username',function(userRequest, userResponse){
var username = userRequest.params.usernam... | JavaScript | 0 | @@ -75,22 +75,21 @@
te node
-expres
+tweet
s.js%0A */
|
fe4c1c833406215cf7138adc017c76e6d5dd6d33 | fix code warnings | src/components/MyPoll.js | src/components/MyPoll.js | import React, { Component } from 'react';
class MyPoll extends Component {
constructor(props){
super(props);
this.mydata = props.data
}
componentDidMount(){
let svg = d3.select("svg")
let g = svg.append("g")
.attr("transform", `translation("10", "10")`)
.attr("class", "bar")
g.selec... | JavaScript | 0.000014 | @@ -18,16 +18,27 @@
omponent
+, PropTypes
%7D from
@@ -148,16 +148,17 @@
ops.data
+;
%0A %7D%0A%0A
@@ -208,16 +208,17 @@
t(%22svg%22)
+;
%0A let
@@ -313,16 +313,17 @@
, %22bar%22)
+;
%0A%0A g.
@@ -538,16 +538,17 @@
ue * 10)
+;
%0A %7D%0A%0A
@@ -591,15 +591,66 @@
)
+;
%0A %7D%0A%7D%0A
+MyPo... |
ad54797c8a942880f28022c9b470acde702bdebf | kill line | components/Footer.js | components/Footer.js | import React from 'react'
const Footer = ({clearCompleted, completedIds, selectedFilter, active, setFilter}) => {
const filters = ['all', 'active', 'completed']
return (
<footer>
<span>
{active.length === 0 ? 'no items ' : null}
{active.length === 1 ? '1 item ' : null}
{active.len... | JavaScript | 0.000001 | @@ -112,57 +112,8 @@
%3E %7B%0A
- const filters = %5B'all', 'active', 'completed'%5D%0A
re
@@ -375,23 +375,46 @@
%7B
-filters
+%5B'all', 'active', 'completed'%5D
.map(fil
|
09fa6b060340e2b41176f8fce9ec5ffc4e811351 | update try/catch in _getKeysAndValuesFromEnvFilePath | lib/main.js | lib/main.js | "use strict";
var package_json = require('./../package.json');
var fs = require('fs');
function dotenv() {
dotenv = {
version: package_json.version,
environment: process.env.NODE_ENV || "development",
keys_and_values: {},
_loadEnv: function() {
return dotenv._getKey... | JavaScript | 0.000001 | @@ -1008,24 +1008,56 @@
filepath) %7B%0A
+ var data, content, lines;%0A
try %7B%0A
@@ -1060,28 +1060,24 @@
y %7B%0A
-var
data
@@ -1113,20 +1113,16 @@
-var
content
@@ -1151,36 +1151,32 @@
trim();%0A
-var
lines = co
@@ -1202,20 +1202,16 @@
-var
lin... |
1b3a2861e0b1ce31e2e44d99ee06f9b2d99f0742 | Remove test from header | components/Header.js | components/Header.js | import React from 'react'
module.exports = () =>
<div className='header'>
<h1>top of the flops</h1>
<p>useless talents, local leaders</p>
<a href="/signup">Home</a>
</div>
| JavaScript | 0 | @@ -146,39 +146,8 @@
/p%3E%0A
- %3Ca href=%22/signup%22%3EHome%3C/a%3E%0A
%3C/
|
6746c0ed435bacbc875f49e771bff31ce450c3d7 | remove comment | test/js/mocha_setup.js | test/js/mocha_setup.js | // This will be overridden by mocha-helper if you run with grunt
mocha.setup('tdd');
mocha.reporter('html');
| JavaScript | 0 | @@ -1,69 +1,4 @@
-// This will be overridden by mocha-helper if you run with grunt%0A
moch
|
70d80b7ecf029aa8a892a150f9d4f985c3567dfe | Fix typo. | src/SlotContentMixin.js | src/SlotContentMixin.js | import * as symbols from './symbols.js';
/** @type {any} */
const slotchangeFiredKey = Symbol('slotchangeFired');
/**
* Defines a component's content as the flattened set of nodes assigned to a
* slot.
*
* This mixin defines a component's `symbols.content` property as the flattened
* set of nodes assigned to ... | JavaScript | 0.001604 | @@ -4061,16 +4061,21 @@
t tests
+pass
with the
@@ -4113,19 +4113,16 @@
ix lands
- in
%0A
@@ -4124,16 +4124,19 @@
//
+ in
product
|
ddc0a7d62321d56bd9e5cb39e6c79edb07bb8259 | Fix jasmine example terminating too early against jasmine 1.1.0. | examples/run-jasmine.js | examples/run-jasmine.js | /**
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
*
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callb... | JavaScript | 0.007565 | @@ -2485,19 +2485,27 @@
r('.
-finished-at
+runner .description
'))
|
a62609ececbdf0d162c68ec3e924647222016a36 | Revert some renames and make lint happy | modules/open-url/open-url.js | modules/open-url/open-url.js | // @flow
import {Platform, Linking, Alert} from 'react-native'
import {appName} from '@frogpond/constants'
import SafariView from 'react-native-safari-view'
import {CustomTabs} from 'react-native-custom-tabs'
function genericOpen(url: string) {
return Linking.canOpenURL(url)
.then(isSupported => {
if (!isSuppo... | JavaScript | 0 | @@ -1333,29 +1333,24 @@
OpenUrl(%7Burl
-, _id
%7D: %7Burl: str
@@ -1346,33 +1346,32 @@
: %7Burl: string,
-_
id?: string%7D) %7B%0A
@@ -1709,21 +1709,16 @@
ser(%7Burl
-, _id
%7D: %7Burl:
@@ -1730,9 +1730,8 @@
ng,
-_
id?:
|
48020e3f63304499873a975070c37785dd35f1ee | Fix indentation issues | src/components/footer.js | src/components/footer.js | import { h, Component } from 'preact';
import axios from 'axios';
export default class Footer extends Component {
constructor(props) {
super(props);
this.state = {
contributors: []
};
}
fetchContributers() {
axios.get('https://api.github.com/repos/ivanseed/gitstats/contributors')
... | JavaScript | 0.000038 | @@ -315,16 +315,18 @@
s')%0A
+
.then(re
@@ -333,24 +333,26 @@
sponse =%3E %7B%0A
+
this.s
@@ -388,24 +388,26 @@
nse.data %7D)%0A
+
%7D)%0A .
@@ -405,16 +405,18 @@
%7D)%0A
+
.catch(e
@@ -419,24 +419,26 @@
ch(err =%3E %7B%0A
+
consol
@@ -460,16 +460,18 @@
or :(')%0A
+
... |
f0e5ac5b1f0207867c3382fde220a6f15b5a327d | update toolbar option for medium editor | public/js/blogelweb.js | public/js/blogelweb.js | /**
* Main Application JS
*/
(function() {
'use strict';
var elements = document.querySelectorAll('.editable'),
editor = new MediumEditor(elements, {
anchorInputPlaceholder: 'Type a link',
buttons: ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote', 'pre... | JavaScript | 0 | @@ -1,36 +1,4 @@
-/**%0A * Main Application JS%0A */%0A%0A
(fun
@@ -7,17 +7,16 @@
ion() %7B%0A
-%0A
'use
@@ -25,17 +25,16 @@
trict';%0A
-%0A
var
@@ -38,18 +38,33 @@
ar e
-lements =
+ditor = new MediumEditor(
docu
@@ -98,16 +98,18 @@
table'),
+ %7B
%0A
@@ -113,95 +113,65 @@
-editor = new ... |
74e07883d07814490f8bf3aa92fad36dfcde32da | change the way dates are checked | js/useful.js | js/useful.js | function titleCase(str) {
str = str.toLowerCase().split(' ');
for (var i = 0; i < str.length; i++) {
str[i] = str[i].charAt(0).toUpperCase() + str[i].slice(1);
}
return str.join(' ');
}
function getLocale(usr) {
database.ref('users/' + usr).once('value', function(snap) {
var _locale = snap.... | JavaScript | 0.00001 | @@ -1224,11 +1224,244 @@
TT%0A%09
-try
+let datex = /%5Cd%5Cd%5C/%5Cd%5Cd%5C/%5Cd%5Cd%5Cd%5Cd%5Cs%5Cd%5Cd:%5Cd%5Cd%5Cs%5BA:P%5DM/%0A%0A%09if (!(str.match(datex))) %7B%0A%09%09console.log(%22Date of unknown format. Assuming it hasn't happened yet%22);%0A%09%09var r = new Date();%0A%09%09r.setSeconds(r.getSeconds() + 6... |
7b9e5802bd7b12c01cc489542c77e3ba30644f66 | Fix tests for 10 language limit | test/langPickerTest.js | test/langPickerTest.js | /* global describe it */
const assert = require('assert');
const LanguagePicker = require('../lib/LanguagePicker');
describe('LanguagePicker: Pick the correct language', () => {
const cases = [
{
msg: 'No values given',
langCode: 'en',
values: undefined,
expected: undefined,
},
{... | JavaScript | 0.000002 | @@ -4028,16 +4028,49 @@
, 'ada',
+ 'af', 'agq', 'ak', 'akz', 'ale',
'en'%5D,%0A
@@ -4427,16 +4427,80 @@
fallback
+ (and there are only 5 languages%0A // using the Hebr script)
%0A e
|
968dbdc05793a4711b0a64785b2e4a420071ee21 | mark field as invalid using df | frappe/public/js/frappe/form/controls/data.js | frappe/public/js/frappe/form/controls/data.js | frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({
html_element: "input",
input_type: "text",
make_input: function() {
if(this.$input) return;
this.$input = $("<"+ this.html_element +">")
.attr("type", this.input_type)
.attr("autocomplete", "off")
.addClass("input-with-feedback form-cont... | JavaScript | 0.001573 | @@ -3474,25 +3474,25 @@
%09%09%09%09
-var
+let email_
invalid
-_email
= f
@@ -3583,79 +3583,21 @@
%09%09%09%09
-frappe.msgprint(__(%22Invalid Email: %7B0%7D%22, %5Bemail%5D));%0A%09%09%09%09%09%09
+email_
invalid
-_email
= t
@@ -3620,114 +3620,45 @@
%7D);%0A
-%0A
%09%09%09%09
-if (
+this.df.
invalid
-_
+ = ... |
cb1849ffe8ff6fbcdb8311203a841c1dce8d63d1 | fix tests | frontend/app/models/answer-type.js | frontend/app/models/answer-type.js | import { computed } from '@ember/object';
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { hasMany } from 'ember-data/relationships';
export default Model.extend({
// Attributes
name: attr('string'),
status: attr('string'),
postName: attr('string'),
postType: attr('string'),... | JavaScript | 0.000001 | @@ -1025,16 +1025,23 @@
return %5B
+%0A
'chosens
@@ -1047,16 +1047,22 @@
select',
+%0A
'chosen
@@ -1074,16 +1074,22 @@
select',
+%0A
'docume
@@ -1092,16 +1092,22 @@
cument',
+%0A
'helper
@@ -1113,16 +1113,22 @@
rabove',
+%0A
'photo'
@@ -1128,16 +1128,22 @@
'photo',
+%0A
'... |
3296558731e51074eafc16b242c3ff60b4027568 | Add another test | dev/_/components/js/sourceModel.js | dev/_/components/js/sourceModel.js | // Source Model
AV.source = Backbone.Model.extend({
url: 'php/redirect.php#source',
defaults: {
name: '',
type: 'raw',
contentType: 'txt',
data: ''
},
});
// Source Model Tests
test_source = new AV.source({
name: 'Potato Chips',
type: 'raw',
contentType: 'txt',
data: "No matter where it ... | JavaScript | 0.000035 | @@ -72,9 +72,9 @@
.php
-#
+/
sour
@@ -155,20 +155,16 @@
''%0A%09%7D,%0A
- %0A
%7D);%0A// S
@@ -182,16 +182,19 @@
Tests%0A%0A
+//
test_sou
@@ -215,16 +215,19 @@
ource(%7B%0A
+//
name
@@ -233,27 +233,39 @@
e: '
-Potato Chips
+The Wind and the Rain
',%0A
+//
+
type
@@ -273,16 +273,19 @@
'raw'... |
0fdbdaf300211a1f1919870509c64c7787cc4383 | clear next frame action before scheduling another | src/TextareaAutosize.js | src/TextareaAutosize.js | /**
* <TextareaAutosize />
*/
import React from 'react';
import emptyFunction from 'react/lib/emptyFunction';
import calculateNodeHeight from './calculateNodeHeight';
export default class TextareaAutosize extends React.Component {
static propTypes = {
/**
* Current textarea value.
*/
value: Rea... | JavaScript | 0 | @@ -2165,24 +2165,51 @@
s required.%0A
+ this.clearNextFrame();%0A
this.onN
@@ -2618,16 +2618,69 @@
mounted%0A
+ this.clearNextFrame();%0A %7D%0A%0A clearNextFrame() %7B%0A
if (
|
cff429b2f9bcdfbe32c766832f659d3718579a2f | Fix PR review | packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/GenericInput.js | packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/GenericInput.js | import React from 'react';
import PropTypes from 'prop-types';
import { TextInput } from '@strapi/design-system/TextInput';
import { ToggleInput } from '@strapi/design-system/ToggleInput';
import { Select, Option } from '@strapi/design-system/Select';
const GenericInput = ({ type, options, onChange, value, name, ...in... | JavaScript | 0.000001 | @@ -244,16 +244,54 @@
Select';
+%0Aimport %7B useIntl %7D from 'react-intl';
%0A%0Aconst
@@ -368,16 +368,56 @@
%7D) =%3E %7B%0A
+ const %7B formatMessage %7D = useIntl();%0A%0A
switch
@@ -733,63 +733,171 @@
alue
- === null ? null : value %7C%7C false%7D%0A name=%7Bname
+%7D%0A name=%7Bname%7D... |
627f1825d624bcd578e501291f170edfb36a8781 | add missing semicolon | lib/api-client/resources/authorization.js | lib/api-client/resources/authorization.js | 'use strict';
var AbstractClientResource = require("./../abstract-client-resource");
/**
* Authorization Resource
* @class
* @memberof CamSDK.client.resource
* @augments CamSDK.client.AbstractClientResource
*/
var Authorization = AbstractClientResource.extend();
/**
* API path for the process definition reso... | JavaScript | 0.000365 | @@ -3767,16 +3767,17 @@
%0A %7D);%0A%7D
+;
%0A%0A%0A%0Amodu
|
341e9bb6150140b1ac112d76f455d29c89878e09 | remove stale instagram link | src/components/footer.js | src/components/footer.js | import React from "react";
import {Link} from "react-router";
export default class Footer extends React.Component {
constructor(props) {
super(props);
this.state = {
views: null,
authenticated: false,
adminView: null
}
}
componentDidMount = () => ... | JavaScript | 0.000002 | @@ -2596,79 +2596,8 @@
-%3Ca href=%22https://www.instagram.com/officialdoublerr7/%22 target=%22_blank%22%3E
%3Cimg
@@ -2650,20 +2650,16 @@
m.png%22/%3E
-%3C/a%3E
%0A
|
4f4ebe9657a34896dc4f181983fb23450ca3351e | Replace insert with a replace frontend | menuitem.js | menuitem.js | import {style, inline, Node} from "../model"
import {splitAt, joinPoint, liftableRange, wrappableRange, describeTarget, insertInline} from "../transform"
import {elt} from "../edit/dom"
export class Item {
constructor(icon, title) {
this.icon = icon
this.title = title
}
active() { return false }
select... | JavaScript | 0.000001 | @@ -100,36 +100,18 @@
nge,
- describeTarget,
insert
-Inlin
+Nod
e%7D f
@@ -1946,33 +1946,27 @@
-let desc = describeTarget
+pm.apply(insertNode
(pm.
@@ -1994,79 +1994,9 @@
(),
-%22right%22)%0A pm.apply(%7Bname: %22insert%22, pos: desc.pos, info: desc.info,
+%7B
type
@@ -2019,32 +2019,33 @@
rs: this.at... |
fc1f316d212315b8e4feeff8bc7bbe79354b0939 | Fix gr-reply-dialog-it_test | polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-change-reply-js-api.js | polygerrit-ui/app/elements/shared/gr-js-api-interface/gr-change-reply-js-api.js | // Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | JavaScript | 0.000055 | @@ -1252,16 +1252,17 @@
kName =
+(
plugin.g
@@ -1275,16 +1275,27 @@
inName()
+ %7C%7C 'test')
+ '-aut
|
2d459001fd52181578ca2591751f84838b7aaa0b | Update TumblrShareCount.js | src/TumblrShareCount.js | src/TumblrShareCount.js | import jsonp from 'jsonp';
import objectToGetParams from './utils/objectToGetParams';
import shareCountFactory from './utils/shareCountFactory';
function getTumblrShareCount(shareUrl, callback) {
const endpoint = 'http://api.tumblr.com/v2/share/stats';
return jsonp(endpoint + objectToGetParams({
url: shareUr... | JavaScript | 0.000001 | @@ -215,16 +215,17 @@
= 'http
+s
://api.t
|
eb8c7196b9e3975291ec15a6d3ba85f6c69795e7 | convert jshint comment to eslint | lib/relations/HtmlRelation.js | lib/relations/HtmlRelation.js | var util = require('util'),
extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
Relation = require('./Relation'),
query = require('../query');
function HtmlRelation(config) {
Relation.call(this, config);
}
util.inherits(HtmlRelation, Relation);
extendWithGettersAndSetters(Ht... | JavaScript | 0.999971 | @@ -992,32 +992,48 @@
/
-*jshint
+/ eslint-disable-next-line no-
script
+-
url
-:true*/
%0A
@@ -1087,47 +1087,8 @@
xt;%0A
- /*jshint scripturl:false*/%0A
|
de4556aa74bc8b55cdb569bdc5c6e4bbf3502fe1 | Add anchor to checks on popover checkFocus | lib/assets/javascripts/uniform/popover.js | lib/assets/javascripts/uniform/popover.js | import Component from './component';
import * as Helpers from './dom-helpers';
/*
Requirements
---
content: html|node
anchor: node
Options
---
align: [left|right|center|#%|#px] [top|center|bottom|#%|#px] | default: 'center bottom'
zIndex: # | default... | JavaScript | 0 | @@ -5349,16 +5349,17 @@
if
+
(e.defau
@@ -5370,16 +5370,28 @@
evented)
+
return;
@@ -5393,32 +5393,33 @@
turn;%0A if
+
(this.isHidden()
@@ -5411,32 +5411,47 @@
this.isHidden())
+
return;%0A
@@ -5481,35 +5481,169 @@
el)
-return;%0A if (this.el
+ ... |
25223a3920603d5141bad84ca4d4cbc75109a30f | Fix infinite recursion in geocoder (fixes #1580) | js/id/ui/geocoder.js | js/id/ui/geocoder.js | iD.ui.Geocoder = function(context) {
var key = 'f';
function resultExtent(bounds) {
return new iD.geo.Extent(
[parseFloat(bounds[3]), parseFloat(bounds[0])],
[parseFloat(bounds[2]), parseFloat(bounds[1])]);
}
function truncate(d) {
if (d.display_name.length > 8... | JavaScript | 0 | @@ -3249,125 +3249,41 @@
ext.
-enter(iD.modes.Select(context, %5Bid%5D));%0A %7D);%0A%0A context.on('enter.geocoder', function() %7B
+map().on('drawn.geocoder', null);
%0A
@@ -3299,28 +3299,24 @@
-if (
context.
mode().i
@@ -3311,177 +3311,46 @@
ext.
-mode().id !== 'browse... |
40fd6bdeaa5014930373c28c7a2c50c00281f126 | Fix av moderation n.filter is not a function. | modules/xmpp/AVModeration.js | modules/xmpp/AVModeration.js | import { getLogger } from 'jitsi-meet-logger';
import { $msg } from 'strophe.js';
import * as MediaType from '../../service/RTC/MediaType';
import XMPPEvents from '../../service/xmpp/XMPPEvents';
const logger = getLogger(__filename);
/**
* The AVModeration logic.
*/
export default class AVModeration {
/**
... | JavaScript | 0.000002 | @@ -3148,32 +3148,46 @@
%0A if
+(Array.isArray
(newWhitelists%5BM
@@ -3202,16 +3202,17 @@
.AUDIO%5D)
+)
%7B%0A
@@ -3338,32 +3338,46 @@
%0A if
+(Array.isArray
(newWhitelists%5BM
@@ -3392,16 +3392,17 @@
.VIDEO%5D)
+)
%7B%0A
|
81b94a1958f462a0dc320f79f3208956668a9c1e | improve error msg | test/streamsource.js | test/streamsource.js | /** For testing asynchronous json downloading, here we have a tiny http server.
*
* For every request (regardless f path) it responds with the json [0,1,2,3,4,5,6,7,8,9]
* but writing out each number one at a time.
*
* You can start this server up and visit it in a browser to see the numbers stream in.
... | JavaScript | 0.000019 | @@ -4587,28 +4587,26 @@
%7D);%0A %7D
-
%0A
+
%0A funct
@@ -4770,16 +4770,26 @@
nd(%22POST
+/PUT/PATCH
here, d
|
bc2bcf0c9e5aca1eb9ef7eac092b65a9ef813483 | save point | src/comps/Application.js | src/comps/Application.js | import React, { Component } from 'react'
import LandingPage from './LandingPage'
import NavigationBar from './NavigationBar'
export default class Application extends Component {
render() {
return(
<main id="UI">
<NavigationBar />
<LandingPage />
</main>
)
}
}
| JavaScript | 0.000001 | @@ -18,16 +18,32 @@
omponent
+, lazy, Suspense
%7D from
@@ -61,86 +61,102 @@
ort
-LandingPage from './LandingPage'%0Aimport NavigationBar from './NavigationBar'
+NavigationBar from './NavigationBar'%0A%0Aconst LandingPage = lazy(() =%3E import('./LandingPage'));
%0A%0Aex
@@ -291,21 +291,106 @@
%3C
-Landing... |
20285dc7689ad87c1b9e48bae45e15fac04c78e8 | move curser out of intrument nav before ending section selection | test/lib/instrument.js | test/lib/instrument.js | "use strict";
// test deps
var should = require('should');
var _ = require('lodash');
var getStrict = function(obj, key) {
if (obj[key] === undefined) {
throw new Error('Expected option `' + key + '` to be set');
}
return obj[key];
};
var getFormField = function(key) {
var exceptions = {
... | JavaScript | 0 | @@ -2660,16 +2660,67 @@
Selector
+)%0A .moveToObject('#page-container', 0, 0
, done);
|
8184d21b38ab85c229b02d0bd39699a4095a5128 | Use Kodi | theater.js | theater.js | (function () {
const webServer = require("./webserver.js");
const KodiController = require("./player/kodi.js");
const VLCController = require("./player/vlc.js");
const OMXController = require("./player/omxplayer.js");
const serviceManager = require("./services/service-manager.js");
const discove... | JavaScript | 0.000001 | @@ -422,19 +422,20 @@
r = new
-OMX
+Kodi
Controll
@@ -437,16 +437,21 @@
troller(
+13000
);%0A%0A
|
01736c2dea51ec914a6d1b43b8808ca2db4fa91a | make it clear if there was an http error. | lib/cast-client/commands/services/list.js | lib/cast-client/commands/services/list.js | /*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not us... | JavaScript | 0 | @@ -1453,118 +1453,222 @@
rror
- %7C%7C response.code === 500) %7B%0A error = error %7C%7C response;%0A return sys.puts(sprintf('Error: %25s', error
+) %7B%0A error = error;%0A return sys.puts(sprintf('Error: %25s', error.message));%0A %7D%0A if (response.code !== 200) %7B%0A return sys.... |
43ba8b0c6c88181041c3f86f05974e32d48daef6 | set rdlabs.beeldengeluid.nl in search page url | web/woordnl-linking-page/js/woordnl_search.js | web/woordnl-linking-page/js/woordnl_search.js | function searchIN ()
{
var jsonStr = null;
var mapping = woordnlMapping;
scores = [];
files= [];
var str = document.getElementById('q').value;
var gg = document.getElementById('results-toggle').checked;
console.log("toggle:"+gg);
if (gg) {
console.log("now true");
}
else {
console.log('now false');
}... | JavaScript | 0 | @@ -1979,22 +1979,31 @@
p://
-localhost:4000
+rdlabs.beeldengeluid.nl
/woo
|
0d2e86308935f30f9cceb508eba3cb8966cda4e2 | Support the new templates.js | public/js/lib/utils.js | public/js/lib/utils.js | define(function() {
var sb, shoutTpl, textTpl;
var Utils = {
init: function(callback) {
window.templates.preload_template('shoutbox/shout', function() {
window.templates.preload_template('shoutbox/shout/text', function() {
shoutTpl = window.templates['shoutbox/shout'];
textTpl = window.templates['... | JavaScript | 0 | @@ -96,35 +96,29 @@
%09window.
-templates.pre
+ajaxify.
load
-_t
+T
emplate(
@@ -136,32 +136,37 @@
hout', function(
+shout
) %7B%0A%09%09%09%09window.t
@@ -168,27 +168,21 @@
dow.
-templates.pre
+ajaxify.
load
-_t
+T
empl
@@ -209,32 +209,36 @@
text', function(
+text
) %7B%0A%09%09%09%09%09shoutTp
@@ -245,98 +2... |
e30f90a1acff6c66722018c7e68d60d27cbcb08f | Remove Reset Account | public/scripts/controllers/profileController.js | public/scripts/controllers/profileController.js | (function() {
'use strict';
angular
.module('tweetstockr')
.controller('profileController', profileController);
function profileController ($rootScope, $scope, userService, Notification) {
$rootScope.updateCurrentUser();
$scope.showResetButton = false;
$scope.toggleResetButton = function()... | JavaScript | 0.000001 | @@ -384,400 +384,8 @@
%7D;%0A%0A
- $scope.resetAccount = function () %7B%0A userService.resetAccount(%0A function successCallback(response) %7B%0A if (response.message) %7B%0A Notification.success(response.message);%0A %7D%0A %7D,%0A function errorCallback(resp... |
37fac1cf014cc6581197620e1d55c1379e480313 | fix accordion items wrongly registering as childs on the (wrong) parent, e.g. on tab component. | addon/components/base/bs-accordion/item.js | addon/components/base/bs-accordion/item.js | import { oneWay, not } from '@ember/object/computed';
import Component from '@ember/component';
import { computed } from '@ember/object';
import TypeClass from 'ember-bootstrap/mixins/type-class';
import ComponentChild from 'ember-bootstrap/mixins/component-child';
import layout from 'ember-bootstrap/templates/componen... | JavaScript | 0 | @@ -194,77 +194,8 @@
s';%0A
-import ComponentChild from 'ember-bootstrap/mixins/component-child';%0A
impo
@@ -469,37 +469,8 @@
ent%0A
- @uses Mixins.ComponentChild%0A
@us
@@ -538,24 +538,8 @@
end(
-ComponentChild,
Type
|
53fc0e27b3da835d05932cc4f49aa99f8ad31301 | Reset compose controller on exit | app/new-stack/route.js | app/new-stack/route.js | import Ember from 'ember';
import { ajaxPromise } from 'ember-api-store/utils/ajax-promise';
const DOCKER = 'docker-compose.yml';
const RANCHER = 'rancher-compose.yml';
function encodeRepo(str) {
return str.split('/')
.map((substr) => { return encodeURIComponent(substr); })
.join('/');
}
function githubUrl... | JavaScript | 0.000001 | @@ -2109,32 +2109,55 @@
oseFiles: null,%0A
+ compose: null,%0A
system:
|
da806a42cda62c69f67f6ad766894d380615707a | replace quote style for regexp | lib/main.js | lib/main.js | /*!
EmberUI (c) 2014 Jaco Joubert
License: https://github.com/emberui/emberui/blob/master/LICENSE
*/
import EuiButtonComponent from './components/eui-button';
import EuiButtonTemplate from './templates/eui-button';
import EuiCheckboxComponent from './components/eui-checkbox';
import EuiCheckboxTemplate from './templa... | JavaScript | 0.000001 | @@ -2177,26 +2177,26 @@
ter(
-'
+%22
EmberUI
-', '
+%22, %22
0.1.3
-'
+%22
);%0A%0A
|
97da10d6e64531f4c4d81582e0b78c17403d09af | Update ns.global.js | public/js/ns.global.js | public/js/ns.global.js | /**
* global.js
* Global footer file
*
* @project < write project name here >
* @date < put date here >
* @author < author name >
* @site < site name >
*/
(function($, ns, window, document, undefined){
"use strict";
var _global = function(){
this.init = function(){
initEventL... | JavaScript | 0.000001 | @@ -1,15 +1,26 @@
/**%0A
- *%09
+*
global.j
@@ -21,20 +21,20 @@
obal.js%0A
-
*
-%09
+
Global f
@@ -48,13 +48,12 @@
ile%0A
-
*%0A
-
*
+
@p
@@ -90,18 +90,18 @@
here %3E%0A
-
*
+
@date
@@ -129,12 +129,12 @@
%3E %0A
-
*
+
@aut
@@ -138,17 +138,19 @@
author
-%09
+
%3C au... |
355b0b7c4b13b6ee572593292f89373a0c05ae47 | Add more parens | js/jquery.imadaem.js | js/jquery.imadaem.js | /*! Imadaem v0.4.0 http://imadaem.penibelst.de/ */
(function($, window) {
'use strict';
$.fn.imadaem = function(options) {
var
$elements = this,
settings = $.extend({
dataAttribute: 'imadaem',
timthumbPath: '/timthumb/timthumb.php',
verticalRhythm: null,
windowEven... | JavaScript | 0 | @@ -102,16 +102,17 @@
adaem =
+(
function
@@ -1899,16 +1899,17 @@
error',
+(
function
@@ -2085,16 +2085,18 @@
%7D
+()
)%0A
@@ -3416,16 +3416,19 @@
his;%0A %7D
+())
;%0A%7D(jQue
|
70d6c7a8c83302e0433a0e1ad0e4fd15ffd9aad7 | Convert inline predicate to predicate generator | lib/main.js | lib/main.js | "use babel";
import _ from "lodash";
export default {
activate() {
this.commands = atom.commands.add("atom-workspace", {
"gluon:build": () => { this.build(); },
});
},
deactivate() {
this.commands.dispose();
},
build() {
const builder = this.builderForActiveTextEditor();
if (!bui... | JavaScript | 0.999999 | @@ -32,16 +32,162 @@
dash%22;%0A%0A
+function isMappedToGrammer(grammar) %7B%0A return (builder) =%3E %7B%0A console.log(builder);%0A return _.includes(builder.grammars, grammar);%0A %7D;%0A%7D%0A%0A
export d
@@ -914,83 +914,8 @@
%7D%0A%0A
- const isMappedToGrammer = (b) =%3E %7B _.includes(b.grammars, g... |
1b1914df7a7f4310a8fff639c4bd854b5693e5ed | Set guid to the full path | to_rss.js | to_rss.js | /*jslint node: true, esversion: 6 */
'use strict';
var Fs = require('fs');
var Rss = require('rss');
var request = require('request');
class Muut {
constructor(board, maintainer_email, title, description) {
this.board = board;
this.maintainer_email = maintainer_email;
this.title = title;
... | JavaScript | 0 | @@ -789,41 +789,8 @@
le;%0A
- var guid = seed.key;%0A
@@ -953,16 +953,50 @@
+ path;%0A
+ var guid = full_path;%0A
|
f406a61fe9dc517cecf2555fa96b4534114603e5 | fix endpoint; prevent recursive redirect | app/routes/file.js | app/routes/file.js | var express = require('express');
var request = require('request');
var router = express.Router();
var baseUrl = 'http://127.0.0.1:2268/f/';
var backendsUrl = 'http://exonum.com/backends/timestamping/content';
// router.post('/pay', function(req, res) {
// var db = req.db;
// var hash = req.body.label;
// ... | JavaScript | 0 | @@ -165,27 +165,23 @@
p://
-exonum.com/backends
+127.0.0.1:16000
/tim
@@ -3636,24 +3636,44 @@
params.hash;
+%0A var limit = 10;
%0A%0A // sta
@@ -4099,32 +4099,166 @@
%7D else %7B%0A
+ limit++;%0A if (limit %3E 10) %7B%0A res.render('error')... |
61f9e084ed809001cf977f2273bf2358ad1a90d8 | Update hook tests since f4f52fb02 requires their target to be EventEmitters | test/model/HookTest.js | test/model/HookTest.js | var Watai = require('../helpers/subject'),
my = require('../helpers/driver').getDriverHolder(),
should = require('should');
/* Exported to be also used in WidgetTest.
*/
exports.checkHook = checkHook = function checkHook(subject, hookName, expectedContent) {
it('should add a hook to the target object', function() ... | JavaScript | 0 | @@ -930,11 +930,48 @@
t =
-%7B%7D;
+new (require('events').EventEmitter)();%0A
%0A%0A%09d
|
9598c2e88b00a2ef925f838fd8bb4cab9dfa7710 | add extra XMP encoding test | packages/exif/test/decoder/jpeg-decoder.test.js | packages/exif/test/decoder/jpeg-decoder.test.js | const {expect, fixture} = require('../utils')
const JPEGDecoder = require('../../dist/decoder/jpeg-decoder').JPEGDecoder
const xmpJpeg = fixture('xmp.jpg')
const nikonJpeg = fixture('nikon.jpg')
describe('lib/jpeg-decoder.js', () => {
describe('#injectEXIFMetadata', () => {
it('should reconstruct same image', (... | JavaScript | 0.000001 | @@ -113,16 +113,88 @@
GDecoder
+%0Aconst XMPEncoder = require('../../dist/encoder/xmp-encoder').XMPEncoder
%0A%0Aconst
@@ -276,16 +276,24 @@
be('lib/
+decoder/
jpeg-dec
@@ -880,32 +880,363 @@
(xmpJpeg)%0A %7D)
+%0A%0A it('should inject from scratch', () =%3E %7B%0A const metadataBuffer = XMPEncoder.enc... |
965636328d57cec4c0579144b023e22e5fb14e9c | Update BurstingFlare.js | src/parser/warlock/destruction/modules/azerite/BurstingFlare.js | src/parser/warlock/destruction/modules/azerite/BurstingFlare.js | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
const burstingFlareStats = traits ... | JavaScript | 0 | @@ -807,61 +807,8 @@
r %7B%0A
- _lastChangeTimestamp = null;%0A _currentStacks = 0;%0A
to
|
866067e3dd126ed3b77a8fbdfd82453ef5dd065e | change file naming | config/documents.js | config/documents.js | const { URL } = require('url');
const baseFiles = {
privacy: 'Onlineeinwilligung/Datenschutzerklaerung-Muster-Schulen-Onlineeinwilligung.pdf',
termsOfUse: 'Onlineeinwilligung/Nutzungsordnung-HPI-Schule-Schueler-Onlineeinwilligung.pdf',
};
module.exports = {
defaultDocuments: () => ({
documentBaseDir: process.env... | JavaScript | 0.000001 | @@ -54,16 +54,25 @@
%09privacy
+Exemplary
: 'Onlin
@@ -147,16 +147,93 @@
g.pdf',%0A
+%09privacy: 'Onlineeinwilligung/Datenschutzerklaerung-Onlineeinwilligung.pdf',%0A
%09termsOf
@@ -235,16 +235,25 @@
rmsOfUse
+Exemplary
: 'Onlin
@@ -327,16 +327,90 @@
g.pdf',%0A
+%09termsOfUse: 'Onlineeinwilligung/Nutzungsordnung... |
aa4e99088a2a448d16ae7fd3ae1e269f34f14616 | Add ignore to text inputs | public/js/netsensia/formwidget_multitable.js | public/js/netsensia/formwidget_multitable.js | $(document).ready(function() {
$.fn.editable.defaults.mode = 'popup';
$('table.widget_multitable').each(function() {
var numColumns = $(this).find('tr th').length;
var editableMode = numColumns < 2 ? 'inline' : 'popup';
if (numColumns == 3) {
$(this).find('th').each(function() {
$(this).width('33%... | JavaScript | 0.00002 | @@ -402,16 +402,59 @@
'60%25');%0A
+%09%09%09$(this).attr('name', 'widgetignore%5B%5D');%0A
%09%09%7D);%0A%09%09
|
382b302436acbf5cdbd7c5b54282cf523983e6c3 | Remove error | js/jquery.imadaem.js | js/jquery.imadaem.js | /*! Imadaem v0.4.0 http://imadaem.penibelst.de/ */
/*jslint closure: true, indent: 4, regexp: true */
/*global jQuery: false, window: false */
(function ($, window) {
"use strict";
$.fn.imadaem = function (options) {
var
$elements = this,
settings = $.extend({
... | JavaScript | 0.000002 | @@ -4422,16 +4422,19 @@
(jQuery, window)
+);%0A
|
29be3bb7bf229e674e162a51e675a2c8d63c296f | make getBackgroundStack work properly at mobile widths | lib/commons/color/get-background-color.js | lib/commons/color/get-background-color.js | /* global color, dom */
const graphicNodes = [
'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG'
];
function elmHasImage(elm, style) {
var nodeName = elm.nodeName.toUpperCase();
if (graphicNodes.includes(nodeName)) {
return true;
}
style = style || window.getComputedStyle(elm);
return style.getPropertyValue... | JavaScript | 0.000001 | @@ -1635,37 +1635,38 @@
p %3E window.inner
-Width
+Height
) %7B%0A%09%09return;%0A%09%7D
|
85d7c06d7c933d50e7a3219edba5ed8bf95b08e8 | remove modal if email ok | app/pages/frontPage.js | app/pages/frontPage.js | import React from 'react'
import Bacon from 'baconjs'
import BigCalendar from 'react-big-calendar'
import moment from 'moment'
import Promise from 'bluebird'
import R from 'ramda'
import Header from '../partials/header'
import searchResults from '../partials/searchResults'
import searchList from '../partials/searchList... | JavaScript | 0.99893 | @@ -2289,28 +2289,22 @@
map(
-%7BisModalOpen:
+(res) =%3E
false
-%7D
)%0A
@@ -2327,27 +2327,12 @@
ror(
-%7BisModalOpen:
true
-%7D
)%0A
|
e77095fd68a2d7b83a46192a577b415e4c3f8788 | add setting for default new file line endings | lib/main.js | lib/main.js | 'use babel'
import _ from 'underscore-plus'
import {CompositeDisposable, Disposable} from 'atom'
import LineEndingListView from './line-ending-list-view'
import StatusBarItem from './status-bar-item'
import helpers from './helpers'
const LineEndingRegExp = /\r\n|\n/g
let disposables = null
export function activate ... | JavaScript | 0 | @@ -288,16 +288,269 @@
= null%0A%0A
+export let config = %7B%0A defaultNewFileLineEnding: %7B%0A title: 'Default line ending for new files',%0A type: 'string',%0A 'default': 'OS Default',%0A enum: %5B'OS Default', 'LF', 'CRLF'%5D,%0A descrition: 'Default line ending for new documents'%0A %7D%0A%7D;%0A... |
445ac15abc3c2bdcc24c56fb51a2f0f8cc7ca87f | Change to adapt to new api | public/js/stargraph.js | public/js/stargraph.js | function callback(response) {
var date = new Date();
var chart = new CanvasJS.Chart("chartContainer",
{
zoomEnabled: true,
title:{
text: "Repo with " + response.data.length + " stars at " + date.getHours() + ":" + date.getMinutes() + " on " + date.toDateString()
},
data: [
... | JavaScript | 0 | @@ -217,87 +217,43 @@
ars
-at %22 + date.getHours() + %22:%22 + date.getMinutes() + %22 on %22 + date.toDateString()
+with the last star at %22 + response.
%0A
|
8adb2e2cd71a8ed9981f295b055b5ee32d4a09c5 | Add end snapping. | app/scripts/controllers/nowPlayingController.js | app/scripts/controllers/nowPlayingController.js | (function () {
angular
.module('spotifyApp')
.controller('nowPlayingController', function ($scope, $log, nowPlayingService) {
$scope.playerOpen = false;
$scope.tracks = [];
$scope.trackIndex = 0;
$scope.trackString = '';
$scope.isplaylist = false;
$scope.trackImage = '';
$scope.curre... | JavaScript | 0 | @@ -3225,16 +3225,40 @@
%7D);%0A
+ $log.log(height);%0A
%7D;%0A%0A
@@ -3379,37 +3379,8 @@
));%0A
- var y = event.center.y;
%0A
@@ -3417,24 +3417,566 @@
nnerHeight;%0A
+ // Multiplier must match app.css height for .now-playing%0A var nowPlayingTotalHeight = 0.6 * windowHeight;%0A ... |
9c62b5597caf4e3891fd252fdbd855ced1dc331a | remove action listeners on route change | app/routes/home.js | app/routes/home.js | /*global $:true*/
import Ember from 'ember';
import TimeMachine from 'ember-time-machine';
import ENV from '../config/environment';
let theme = {};
let jsonBlob;
function showError(){
let defaultJSON ='';
$.ajax({
type: "GET",
url: ENV.rootURL + "themes/theme_error.json",
async: false... | JavaScript | 0 | @@ -687,24 +687,116 @@
%7D)%0A %7D,%0A
+ deactivate: function() %7B%0A document.removeEventListener(%22dragend%22, ()=%3E%7B%7D)%0A %7D,%0A
model: a
|
24db7346efb48ca857a2e44c610f6717e73f7f24 | Update version in release notes builder. | build/release-notes.js | build/release-notes.js | #!/usr/bin/env node
/*
* jQuery Release Note Generator
*/
var fs = require("fs"),
http = require("http"),
tmpl = require("mustache"),
extract = /<a href="\/ticket\/(\d+)" title="View ticket">(.*?)<[^"]+"component">\s*(\S+)/g;
var opts = {
version: "1.8.2",
short_version: "1.8.2",
final_version: "1.8.2",
cate... | JavaScript | 0 | @@ -248,27 +248,32 @@
version: %221.
-8.2
+9 Beta 1
%22,%0A%09short_ve
@@ -278,27 +278,27 @@
version: %221.
-8.2
+9b1
%22,%0A%09final_ve
@@ -311,11 +311,9 @@
%221.
-8.2
+9
%22,%0A%09
|
e0ba2d63e78e616d194fde3a5445068b87fc1fb8 | add 2 new ios checkbox tracking fields for new fields in marketo | website-guts/assets/js/utils/oform_globals.js | website-guts/assets/js/utils/oform_globals.js | ;(function(){
var w, d;
w = window;
d = document;
w.optly = w.optly || {};
w.optly.mrkt = w.optly.mrkt || {};
w.optly.mrkt.Oform = {};
w.optly.mrkt.Oform.before = function(){
d.getElementsByTagName('body')[0].classList.add('oform-processing');
return true;
};
w.optly.mrkt.Oform.vali... | JavaScript | 0 | @@ -2354,24 +2354,178 @@
ked') + '',%0A
+ iOStestc: $('input%5Btype=%22checkbox%22%5D%5Bname=%22ios%22%5D').is(':checked') + '',%0A IOSTest2: $('input%5Btype=%22checkbox%22%5D%5Bname=%22ios%22%5D').is(':checked') + '',%0A
Androi
|
228c79106b9bc51195c571671534bbd97f6ea9f1 | Remove unused vars | src/plugin/com.github.tschf.2016ADCentry.germanmap/mapRender.js | src/plugin/com.github.tschf.2016ADCentry.germanmap/mapRender.js | var germanMapRenderer = {
width: 960,
height: 750,
scale: 500,
setUpMap: function setUpMap(pluginFilePrefix, ajaxIdentifier, initialYear, red, green, blue){
var projection = d3.geo.mercator()
.scale(500);
var path = d3.geo.path()
.projection(projection);
... | JavaScript | 0.000001 | @@ -24,58 +24,8 @@
%7B%0A%0A
- width: 960,%0A height: 750,%0A scale: 500,%0A%0A
|
9e3ff39f25883b497161d6287896b37960d851a6 | remove extra console.log | test/mylimiter.test.js | test/mylimiter.test.js | "use strict";
var request = require('supertest');
var express = require('express');
var fs = require('fs');
var path = require('path');
var mysql = require('mysql');
var nconf = require('nconf');
var log = require('ssi-logger');
var DbTestUtil = require('dbtestutil');
var mylimiter = require('../');
// uncomment to d... | JavaScript | 0.000013 | @@ -1520,54 +1520,8 @@
) %7B%0A
- console.log(err, err.toString());%0A
|
42c81b78de0961bbef8333f5639e6e661c0e374d | Change cron job frequency | lib/main.js | lib/main.js | 'use strict';
const config = require('../config');
const CronJob = require('cron').CronJob;
const Fetcher = require('./fetcher');
const Promise = require("bluebird");
class Main {
constructor(ds) {
let self = this;
this.banks = {};
this.banksId = {};
this.prices = {};
this.bestPrices = {};
t... | JavaScript | 0.000001 | @@ -495,18 +495,18 @@
e every
-15
+60
minutes
@@ -529,12 +529,9 @@
('0
-*/15
+0
* *
|
65e9b7a91fb0874f703b34989b9a62d9f874eb48 | modify login function | app/routes/user.js | app/routes/user.js | var express = require('express');
var mongoose = require('mongoose');
var User = mongoose.model('User');
/ * CRUD API */
// POST
exports.createUser = function (req, res) {
// Create a new user document
var user = new User({
name: req.body.name,
email: req.body.email,
password: req.body.... | JavaScript | 0.000001 | @@ -938,33 +938,32 @@
th ID: %22 + user.
-_
id);%0A
|
13b45c241a4ec4c5158d52055dd1ac63ef7ea7e9 | Update VideoIntro.js (#2010) | website/src/components/homepage/VideoIntro.js | website/src/components/homepage/VideoIntro.js | /** @jsx jsx */
import { jsx } from '@emotion/core';
import { useState } from 'react';
import { mq } from '../../utils/media';
import videoThumbnailPNG from '../../assets/video-thumbnail.png';
const VideoIntro = () => {
const [showVideo, setShowVideo] = useState(false);
return (
<MainWrapper>
<VideoWrap... | JavaScript | 0 | @@ -3758,19 +3758,13 @@
a %22
-Hello World
+To Do
%22 ap
@@ -3789,17 +3789,17 @@
n under
-3
+4
minutes
@@ -3807,22 +3807,16 @@
with the
-%0A
Keyston
@@ -3818,16 +3818,22 @@
ystone 5
+%0A
CLI.%0A
|
ccd9b5228c2de94d666d63cc8de79bed5aafee2c | Change discover page query param from pushstate to replaceState | app/routes/discover.js | app/routes/discover.js | import Ember from 'ember';
import ResetScrollMixin from '../mixins/reset-scroll';
export default Ember.Route.extend(ResetScrollMixin, {
});
| JavaScript | 0 | @@ -134,10 +134,92 @@
, %7B%0A
+ queryParams: %7B%0A queryString: %7B%0A replace: true%0A %7D%0A %7D
%0A%7D);%0A
-%0A
|
780735f4669d60a3adcc17780e82dbec18f28a6a | test a recursive use of the tool | app/scripts/app.js | app/scripts/app.js | /*global define */
define(['queue', 'splitiscope'], function (queue, split_vis) {
'use strict';
function errorMsg(msg) {
console.error(msg);
}
var x_range = { min : 0, max : 8},
y_range = { min :-4, max : 4},
splits_range = { min : 20, max : 200},
label_list = ['high', ... | JavaScript | 0.000006 | @@ -343,16 +343,35 @@
ata = %7B%7D
+,%0A num = 500
;%0A%0A t
@@ -389,35 +389,35 @@
= _.map(_.range(
-100
+num
),function(value
@@ -439,34 +439,24 @@
return
-Math.round
(Math.random
@@ -535,35 +535,35 @@
= _.map(_.range(
-100
+num
),function(value
@@ -684,35 +684,35 @@
= _.map(_.range(
-100
+num... |
7484a14f36e1a1fe91e483e2968eb5d9dbce6e95 | Update LTS / release try scenario versions. | config/ember-try.js | config/ember-try.js | 'use strict';
// eslint-disable-next-line node/no-unpublished-require
const getChannelURL = require('ember-source-channel-url');
module.exports = function () {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary'),
]).then((urls) => {
return {
useYarn:... | JavaScript | 0 | @@ -949,10 +949,10 @@
'~3.
-1
2
+4
.0',
@@ -976,34 +976,34 @@
mber-data': '~3.
-16
+24
.0',%0A
@@ -1445,26 +1445,26 @@
ource': '~3.
-16
+28
.0',%0A
@@ -1492,10 +1492,10 @@
'~3.
-16
+28
.0',
@@ -3916,26 +3916,26 @@
ource': '~3.
-17
+28
.0',%0A
@@ -3963,10 +3963,10 @@
'~3.
-17
+28
.0... |
ce75178f44042f5a230e123808ea4fe59b952200 | Upgrade to D3 v3 | public/scripts/main.js | public/scripts/main.js | require.config({
paths: {
underscore: 'http://documentcloud.github.com/underscore/underscore-min',
backbone: 'http://backbonejs.org/backbone-min',
jquery: 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min',
d3: 'http://d3js.org/d3.v2.min',
audiolet: 'https://raw.g... | JavaScript | 0.000004 | @@ -273,17 +273,17 @@
org/d3.v
-2
+3
.min',%0A
|
34797887be3d2d9bf734d6df043442375077bbd7 | Update test copy | src/desktop/apps/article/components/__tests__/InfiniteScrollNewsArticle.test.js | src/desktop/apps/article/components/__tests__/InfiniteScrollNewsArticle.test.js | import 'jsdom-global/register'
import _ from 'underscore'
import benv from 'benv'
import fixtures from 'desktop/test/helpers/fixtures.coffee'
import sinon from 'sinon'
import React from 'react'
import { shallow } from 'enzyme'
import { data as sd } from 'sharify'
import { UnitCanvasImage } from 'reaction/Components/Pub... | JavaScript | 0 | @@ -6275,21 +6275,17 @@
ql('
-Advertisement
+Sponsored
by
|
2c4aeb9f7d085fb5865ca0d292b3d706380f717c | Add default route navigating to timetable instead of only at history start | app/scripts/app.js | app/scripts/app.js | 'use strict';
var Backbone = require('backbone');
Backbone.$ = require('jquery');
var Marionette = require('backbone.marionette');
var NUSMods = require('./nusmods');
var NavigationCollection = require('./common/collections/NavigationCollection');
var NavigationView = require('./common/views/NavigationView');
var Sele... | JavaScript | 0 | @@ -3536,98 +3536,181 @@
');%0A
+%0A
-var TimetableModuleCollection = require('./common/collections/TimetableModuleCollection'
+new Marionette.AppRouter(%7B%0A routes: %7B%0A '*default': function () %7B%0A Backbone.history.navigate('timetable', %7Btrigger: true, replace: true%7D);%0A %7D%0A ... |
932a454398643da6ef5487b15b8d9aa16a45b9fb | Correct folder referenses | gulpfile.js | gulpfile.js | var gulp = require ('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
gulp.task('default', function() {
console.log('Hello, world!');
});
gulp.task('compressJS', function() {
return gulp.src('/app/js/*.js')
.pipe(uglify())
.pipe(rename({
suffix: '.min'
}))
.pipe(gul... | JavaScript | 0.000008 | @@ -218,17 +218,16 @@
lp.src('
-/
app/js/*
@@ -320,17 +320,16 @@
p.dest('
-/
app/js/'
|
f0714384988f809e95652f0ce029100ab820c309 | Update compound-interest.js | js/compound-interest.js | js/compound-interest.js | $(document).ready(function() {
var start;
var rate;
var period;
var invest;
var years;
if(hasKey('start') && hasKey('rate') && hasKey('period') && hasKey('invest')) {
} else {
start = 100;
rate = 0.01;
period = 12;
invest = 10;
years = 2;
}
var balance = ['balance', start];
var... | JavaScript | 0.000001 | @@ -390,17 +390,21 @@
ime = %5B'
-0
+start
'%5D;%0A %0A
@@ -449,16 +449,17 @@
= 1; p %3C
+=
period
|
6e5029e8686a78535b428c7f4bf702bba50016e0 | add some comments to the math logic of the column computation behavior | lib/util/columnComputation.js | lib/util/columnComputation.js | /*
* This file is part of the Sententiaregum project.
*
* (c) Maximilian Bosch <maximilian@mbosch.me>
* (c) Ben Bieler <ben@benbieler.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
module.exports = {
comput... | JavaScript | 0 | @@ -305,16 +305,123 @@
rts = %7B%0A
+ /**%0A * Computes the appropriate (longest) column that should exist in a set of var declarations.%0A */%0A
comput
@@ -464,20 +464,14 @@
-var result =
+return
ite
@@ -509,19 +509,21 @@
%7B%0A
-var
+const
curCol
@@ -709,32 +709,98 @@
e);%0A
-%0A return... |
7d2a6022d2719c0dfa78c4997aec2422b350d351 | add gulp.watch(['src/sass/*.scss', 'src/sass/**/*.scss'] , ['sass']); in gulpfile.js. | gulpfile.js | gulpfile.js | const argv = require('minimist')(process.argv.slice(2))
const openURL = require('opn');
const once = require('once');
const gulp = require('gulp');
const sass = require('gulp-sass');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
const streamify = require('gulp-streamify');
const source ... | JavaScript | 0 | @@ -1261,16 +1261,17 @@
p.watch(
+%5B
'src/sas
@@ -1280,16 +1280,40 @@
*.scss',
+ 'src/sass/**/*.scss'%5D ,
%5B'sass'
|
732dee451bb9304e039abdec291457639ad7163e | Support Steal 1.0 | lib/main.js | lib/main.js | var assert = require("assert");
var cli = require("./cordovacli")();
var Promise = require("es6-promise").Promise;
var extend = require("xtend");
var path = require("path");
var fs = require("fs-extra");
var asap = require("pdenodeify");
var copy = asap(fs.copy);
var glob = asap(require("multi-glob").glob);
var slice ... | JavaScript | 0 | @@ -1939,27 +1939,22 @@
%0A%09%09%09var
-bundlesPath
+config
= build
@@ -1973,16 +1973,57 @@
guration
+;%0A%09%09%09var destPath = config.dest %7C%7C config
.bundles
@@ -2071,23 +2071,20 @@
onFiles(
-bundl
+d
es
+t
Path);%0A%09
|
cc389060ddeab19cc088906e74dd8c6604727fdc | Update gulpfile.js | gulpfile.js | gulpfile.js | var gulp = require('gulp')
, browserify = require('browserify')
, transform = require('vinyl-transform')
, sass = require('gulp-sass')
, deploy = require('gulp-gh-pages')
, concat = require('gulp-concat')
, uglify = require('gulp-uglify')
, minifycss = require('gulp-minify-css')
, imagemin = require('gu... | JavaScript | 0.000001 | @@ -373,16 +373,35 @@
ant');%0A%0A
+// TODO: FIX THIS!%0A
// Brows
@@ -407,24 +407,27 @@
serify Task%0A
+//
gulp.task('b
@@ -452,16 +452,19 @@
on () %7B%0A
+//
var br
@@ -508,16 +508,19 @@
name) %7B%0A
+//
var
@@ -545,16 +545,19 @@
ename);%0A
+//
retu
@@ -575,15 +575,21 @@
();%0A
+//
%7D);... |
f738b57c36cc3418b1f859178ec5550142d52ccd | add responsive padding to main container, styling tweaks | app/styles/home.js | app/styles/home.js | export default {
container: ({ theme }) => {
return {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
alignSelf: 'center',
height: '100%',
paddingTop: theme.space[1],
paddingLeft: theme.space[6],
paddingRight: theme.space[6],
':before': {
... | JavaScript | 0 | @@ -218,12 +218,310 @@
ace%5B
-1
+3
%5D,%0A
+ paddingBottom: theme.space%5B3%5D,%0A %5B%60@media (max-width: $%7Btheme.breakpoints.tabletWide%7D)%60%5D: %7B%0A paddingLeft: theme.space%5B5%5D,%0A paddingRight: theme.space%5B5%5D%0A %7D,%0A %5B%60@media (min-width: $%7Btheme.breakpoin... |
5b70fd9b109f9feee0234ae944af6fcf447f8dcf | Remove console statement | server/ducks/devices.js | server/ducks/devices.js | /* eslint new-cap:0, no-console:0 */
/* globals setTimeout */
import { HueApi, lightState } from 'node-hue-api';
import { config } from 'environment';
import { handleAction,
registerAccessories,
flashAuthorized,
rain,
colorGenerators,
toggleLights } from 'utils';
import { D... | JavaScript | 0.000006 | @@ -3627,23 +3627,8 @@
ad;%0A
-console.log(id)
%0A
|
6d9ca43c1ef7c137d56ded2edee38e5762fe9acf | Fix paths in cases of building separate targets for Windows OS | lib/make.js | lib/make.js | 'use strict';
var VM = require('vm'),
Q = require('q'),
QFS = require('q-io/fs'),
INHERIT = require('inherit'),
APW = require('apw'),
PATH = require('./path'),
UTIL = require('util'),
BEMUTIL = require('./util'),
REGISTRY = require('./nodesregistry'),
LOGGER = require('./logger'),
... | JavaScript | 0.000002 | @@ -501,16 +501,60 @@
gets%5D;%0A%0A
+ targets = replaceSlashes(targets);%0A%0A
@@ -3792,12 +3792,186 @@
+W109 */%0A%0A%7D%0A
+%0Afunction replaceSlashes(targets) %7B%0A return require('path').sep === '%5C/' ? targets : targets.map(function (target) %7B%0A return target.replace(/%5C//g, '%5... |
7ed752ca4705fa3afc253f4c9e7c9ba9c16dcb60 | fix cidr code ... apparently brackets help | generate.js | generate.js | config = require ("./config")
security_group_counter = 0
cidr_port = []
config.ports.forEach (function (port) {
config.list.forEach (function (cidr) {
cidr_port.push ({
"cidr": cidr.indexOf ("/") < 0 === true ? "/32" : "",
"port": port
})
})
})
cidr_port.forEach (function (value, index, array... | JavaScript | 0 | @@ -188,16 +188,24 @@
r%22: cidr
+ + (cidr
.indexOf
@@ -236,16 +236,17 @@
32%22 : %22%22
+)
,%0A
|
0e5384729ea1ab5b2852c22807fb6befb7230dd6 | Fix port on Heroku which is not supported. | server/lib/seo/index.js | server/lib/seo/index.js | /**
* Serve up "plain html" versions of angular app pages for search crawlers AND facebook crawlers.
*
* This is needed since Angular apps are rendered entirely by Javascript, and crawlers don't
* execture jsavascipt, so they see blank pages.
*
* What we do to get around this is:
* - watch for signs of well behaved c... | JavaScript | 0 | @@ -2056,16 +2056,48 @@
q.host +
+ req.path;%0A //url += req.host +
':' + a
@@ -2644,26 +2644,24 @@
lled');%0A
-//
console.log(
|
3db939bc1d3b57263613551882c00170f9f8fdd3 | fix langSuffix | generate.js | generate.js | // Before running: npm install
// npm install -g nodemon
var YAML = require('yamljs');
var Mustache = require('mustache');
var glob = require('glob');
var path = require('path');
var fs = require('fs');
const defaultLang = "uk";
const languagesPath = "templates/languages/*.yml";
const pagesPath = "tem... | JavaScript | 0.000003 | @@ -1502,68 +1502,8 @@
e;%0A%0A
- var output = Mustache.render(pageData, view, partials);%0A
@@ -1665,16 +1665,76 @@
%0A %7D%0A%0A
+ var output = Mustache.render(pageData, view, partials);%0A
var
|
12b08dc3ef9ce0fdb286f913ac71be7496bd0ce4 | Remove race condition on gulp task. | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var fs = require('fs');
var _ = require('underscore');
var wrapper = require('gulp-module-wrapper');
var insert = require('gulp-insert');
var del = require('del');
var eol = require('gulp-eol');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
... | JavaScript | 0 | @@ -927,17 +927,46 @@
t'%5D)
-;%0A cb(
+.then(function() %7B%0A cb();%0A %7D
);%0A%7D
|
094b2d5844f95f21bb4d4d3d93ca7180e538cbae | Fix issue placement. | server/routes/heroku.js | server/routes/heroku.js | var express = require('express');
var router = express.Router();
var request = require('request');
var slackBot = require('slack-bot')(process.env.URL);
router.get('/', function(req, res) {
if (req.query.secret !== process.env.SECRET) {
res.sendStatus(404).end();
} else {
request({
url: 'https://stat... | JavaScript | 0 | @@ -604,16 +604,57 @@
'good';
+%0A %7D else %7B%0A color = 'danger';
%0A%0A
@@ -754,72 +754,56 @@
%7D
- else %7B%0A color = 'danger';%0A %7D%0A%0A slackBot.send(%7B
+%0A%0A slackBot.send(%7B%0A text: undefined,
%0A
|
ebb81a4063c18a489041f0d6f834e98a0a32ed85 | return jobId on image upload/submit | server/routes/images.js | server/routes/images.js | var debug = require('debug')('server:routes:images');
var config = require('../config.json');
var Promise = require('bluebird');
var router = require('express').Router();
var jsonParser = require('body-parser').json();
//upload related
var Busboy = require('busboy');
var fs = require('fs');
var request = require('r... | JavaScript | 0.000059 | @@ -2233,31 +2233,111 @@
%0A%09%09%09
-// image.getMetadata();
+return %5Bimage, image.queueAnalysis(config.defaultAnalysisOpts)%5D;%0A%09%09%7D)%0A%09%09.spread(function (image, job) %7B
%0A%09%09%09
@@ -2379,26 +2379,36 @@
%0A%09%09%09%09jobId:
-''
+job.data._id
%0A%09%09%09%7D);%0A%09%09%7D)
@@ -3399,24 +3399,1... |
58c077bc22727d5131b7651a5bdad14c56e4bf54 | Fix tsc watch | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var gutil = require('gutil');
var plumber = require('gulp-plumber');
var shell = require("gulp-shell");
var notify = require('gulp-notify');
var uglify = require('gulp-uglify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify =... | JavaScript | 0.000001 | @@ -777,22 +777,16 @@
', %5B%22tsc
--watch
%22%5D, func
@@ -1939,16 +1939,29 @@
ault', %5B
+%22tsc-watch%22,
'watch-b
|
4a7f4798fe72cc1519dc40a203c3a862315c2fe9 | Remove undefined task for now | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var runSequence = require('run-sequence');
var jasmine = require('gulp-jasmine');
var cover = require('gulp-coverage');
var coveralls = require('gulp-coveralls');
var options = {
testPaths : {
unit : [
'tests/unit/*.js',
'tests/unit/**/*.js',
],
spec : [
... | JavaScript | 0.00002 | @@ -1205,17 +1205,8 @@
st',
- 'build',
cb
|
d0695e62b415979e2eaf4740deea68d3822fd16e | copy ABOUT.md to build folder so it can be loaded via ajax | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var path = require('path');
var gutil = require('gulp-util');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var del = require('del');
var webpackConfig = require('./webpack.config.js');
var gulpWebpack = require('gulp-webpack');
var webpack = require('webpack');
v... | JavaScript | 0 | @@ -646,24 +646,78 @@
('build'));%0A
+ gulp.src('ABOUT.md')%0A .pipe(gulp.dest('build'));%0A
%7D);%0A%0Agulp.ta
|
c4eecbdf2c3cf75a0390661abf844c81420ac386 | Add better handling for a11y attributes without a validation message. | rocketbelt/components/forms/rocketbelt.forms.js | rocketbelt/components/forms/rocketbelt.forms.js | (function rocketbeltForms(rb, document) {
var aria = rb.aria;
function onClassMutation(mutations) {
var mutationsLen = mutations.length;
for (var k = 0; k < mutationsLen; k++) {
var mutation = mutations[k];
var el = mutation.target;
var message = el.parentNode.querySelector('.validation-... | JavaScript | 0 | @@ -515,24 +515,50 @@
d, 'true');%0A
+%0A if (message) %7B%0A
mess
@@ -591,24 +591,26 @@
, 'alert');%0A
+
mess
@@ -644,24 +644,34 @@
'polite');%0A
+ %7D%0A
%7D else
@@ -827,24 +827,50 @@
, 'false');%0A
+%0A if (message) %7B%0A
mess
@@ -894,24 +894,26 @@
... |
9fdd8fbd5d0a783a001dd35ad053ecdb8ea576d7 | Update socket.io.js | config/socket.io.js | config/socket.io.js | 'use strict';
// Load the module dependencies
var config = require('./config'),
path = require('path'),
http = require('http'),
socketio = require('socket.io');
// Define the Socket.io configuration method
module.exports = function (app, db) {
var server = http.createServer(app);
var io = socketio(config.socket... | JavaScript | 0.000001 | @@ -363,16 +363,69 @@
'%5D %7D);%0A%09
+%0A%09if(process.env.DISABLE_CLUSTER_MODE === %22TRUE%22)%7B%0A%09%09
var redi
@@ -456,16 +456,17 @@
edis');%0A
+%09
%09io.adap
@@ -625,16 +625,18 @@
79 %7D));%0A
+%09%7D
%0A%09// Add
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.