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
8575fda16ee48b5363dffd55755a2625507e8ba0
Extend test coverage.
ui/src/registrator/PrihlaskyDohlasky/StartCislo/startCisloReducer.test.js
ui/src/registrator/PrihlaskyDohlasky/StartCislo/startCisloReducer.test.js
import deepFreeze from 'deep-freeze'; import { hide as genericHide, show as genericShow } from './StartCisloActions'; import { createStartCisloReducer } from './startCisloReducer'; const hide = genericHide('PRIHLASKY'); const show = genericShow('PRIHLASKY'); const startCisloReducer = createStartCisloReducer('PRIHLASKY...
JavaScript
0
@@ -31,16 +31,79 @@ reeze';%0A +import %7B reset %7D from '../PrihlaskyForm/PrihlaskyFormActions';%0A import %7B @@ -939,28 +939,234 @@ )).toEqual(stateAfter);%0A%7D);%0A +%0Ait('reset', () =%3E %7B%0A const stateBefore = %7B showing: true %7D;%0A const stateAfter = %7B showing: false %7D;%0A deepFreeze(stateBefo...
b8e76d842cd05e203372799145c08b3cbe1cc989
create snapshot with adapterOptions through _internalModel
addon/actions/action.js
addon/actions/action.js
import Ember from 'ember'; import normalizePayload from '../utils/normalize-payload'; import urlBuilder from 'ember-custom-actions/utils/url-builder'; import deepMerge from 'lodash/merge'; const { getOwner, computed, Object: EmberObject, ObjectProxy, ArrayProxy, PromiseProxyMixin, typeOf: emberTypeOf, ...
JavaScript
0
@@ -2860,75 +2860,39 @@ ')._ -createSnapshot();%0A snapshot.adapterOptions = deepMerge(s +internalModel.createS napshot -. +(%7B adap @@ -2901,17 +2901,17 @@ rOptions -, +: this.ge @@ -2936,16 +2936,18 @@ ptions') + %7D );%0A l
df7fc2f616c2f4da9dcb449db7faa16660525f56
fix app.js
tests/dummy/app/app.js
tests/dummy/app/app.js
import Application from '@ember/application'; import Ember from 'ember'; import Resolver from './resolver'; import loadInitializers from 'ember-load-initializers'; import config from './config/environment'; let App; Ember.MODEL_FACTORY_INJECTIONS = true; App = Application.extend({ modulePrefix: config.modulePrefix...
JavaScript
0.00011
@@ -362,45 +362,8 @@ ix,%0A - snippetPaths: %5B'tests/dummy/app'%5D,%0A Re
b52f24ccceac4275021247ac8eb1eb6c242bd373
fix path in datepicker demo page
demo/demoPages/DatePickerPage.js
demo/demoPages/DatePickerPage.js
import React, { Component } from 'react'; import { injectIntl } from 'react-intl'; import { messages } from '../../translations/defaultMessages'; import { DatePicker, Select } from '../../../index'; class DatePickerPage extends Component { constructor(props){ super(props); this.state = { ...
JavaScript
0.000001
@@ -120,19 +120,16 @@ rom '../ -../ translat @@ -194,19 +194,16 @@ '../../ -../ index';%0A
10af4d7afada4fcdc09235ef133277fa67ab11dc
remove async, add console.log stating bot left
events/guildCreate.js
events/guildCreate.js
const MIN_MEMBERS = 3; // Minimum amount of MEMBERS that must be in a guild. const BOT_RATIO = 70; // The percentage of Members that are Bots in a guild must be less than this. exports.run = async (client, guild) => { if (guild.memberCount < MIN_MEMBERS || guild.members.filter(u => u.user.bot).size * 100 / guild.mem...
JavaScript
0
@@ -188,14 +188,8 @@ un = - async (cl @@ -504,15 +504,105 @@ eave();%0A + console.log(%60Left server that didn't meet Anti-Botfarm requirements. ($%7Bguild.id%7D)%60);%0A %7D%0A%7D;%0A
05da4890054ed7c7e95c26eb1ecb8c52f61b3df8
Use StopFlashTabs
stopflash.js
stopflash.js
/** * StopFlash * * https://github.com/JWhile/StopFlash * * stopflash.js */ // class StopFlashUI extends Builder function StopFlashUI(elements) { this.super('div'); this.content = new Builder('div') .className('content') .append(new Builder('div') .className('tab') ...
JavaScript
0.000001
@@ -189,37 +189,38 @@ ntent = new -Builder('div' +StopFlashTabs( )%0A .c @@ -241,37 +241,37 @@ ent')%0A .a -ppend +ddTab (new Builder('di @@ -337,37 +337,37 @@ ab'))%0A .a -ppend +ddTab (new Builder('di @@ -438,37 +438,37 @@ ab'))%0A .a -ppend +ddTab (new Builder('di @@ -888,32 +888...
2bf65cc2aee431e90a47150778e1841a6ea804f4
Update test case
tests/e2e/demo-spec.js
tests/e2e/demo-spec.js
/*global browser:false */ 'use strict'; //GetAttribute() returns "boolean" values and will return either "true" or null describe('Report', function(){ var _ = require('lodash'); var Reports = require('./pages/reports'); var Report = require('./pages/report'); var reports = new Reports(); var repor...
JavaScript
0.000001
@@ -1666,32 +1666,90 @@ ssetsCurrent');%0A + synonyms.addSynonym('us-gaap:AssetsCurrent');%0A expe
9aff14f8d4b3bf08f5fdd5eb9fbeb7969c86b375
fix syntax
cli.js
cli.js
var vorpal = require('vorpal')(); var config = require('./config.json'); var Dropbox = require('dropbox'); var recursive = require('recursive-readdir'); var upath = require('upath'); var jsonfile = require('jsonfile') const fs = require('fs'); var log = 'mapping.json' vorpal .command('info', 'get defined cloud ser...
JavaScript
0.000023
@@ -965,16 +965,24 @@ e(file, +function (err, da @@ -988,11 +988,8 @@ ata) - =%3E %7B%0A
a75dd100ab50afefeeb9197048faecf62680194d
set correct `cwd` for the npm run path
cli.js
cli.js
#!/usr/bin/env node 'use strict'; var childProcess = require('child_process'); var meow = require('meow'); var globby = require('globby'); var inquirer = require('inquirer'); var assign = require('lodash.assign'); var npmRunPath = require('npm-run-path'); var utils = require('./cli-utils'); var codemods = require('./co...
JavaScript
0.000001
@@ -438,16 +438,32 @@ RunPath( +%7Bcwd: __dirname%7D )%7D),%0A%09%09s
bd6c9f3c141335407aedc978e5a9ea1c52b939d5
Allow branch to be selected on the commandline
cli.js
cli.js
const path = require('path'); const fs = require('fs'); const cp = require('child_process'); // eslint-disable-next-line const colors = require('colors'); const request = require('request-promise'); const inquirer = require('inquirer'); const minimist = require('minimist'); const ora = require('ora'); const pkg = re...
JavaScript
0
@@ -558,16 +558,51 @@ %7C%7C 'x64' +,%0A branch: argv.branch %7C%7C 'master' %0A%7D;%0A%0A// @@ -3529,17 +3529,17 @@ cp.exec( -' +%60 git arch @@ -3573,22 +3573,41 @@ zip -master', %7B%7D, ( +$%7Boptions.branch%7D%60, %7B%7D, (err, std err) @@ -3654,16 +3654,26 @@ ject(err + %7C%7C stderr );%0A
b81325e972f065b53ff7c676550a6fef8fb63c57
Update Player.js
game/js/gameentities/Player.js
game/js/gameentities/Player.js
"use strict"; var Player = function(world, Bullet, audio) { this.world = world; this.audio = audio; this.idleLeftAnimation = new SpriteAnimation("connor/connorL", 2, 1, 32); this.idleRightAnimation = new SpriteAnimation("connor/connorR", 2, 1, 32); this.walkLeftAnimation = new SpriteAnimation("connor/conno...
JavaScript
0.000001
@@ -3240,32 +3240,33 @@ if (this.kills %3E += 24) %7B%0D%0A%09%09this.m @@ -3940,16 +3940,17 @@ .kills %3E += 24) %7B%0D%0A
d4c4de025dae0807995d38371479bc44786664eb
Add more useful error msg
tests/maxbytes.test.js
tests/maxbytes.test.js
describe('when using the "maxBytes" option', function() { before(function () { // Set up a route which listens to uploads app.post('/uploadmax', function (req, res, next) { assert(_.isFunction(req.file)); // Disable underlying socket timeout // THIS IS IMPORTANT // see https://github...
JavaScript
0.000001
@@ -2795,32 +2795,514 @@ // (15 minutes)%0A +%0A var httpRequest = request.post(%7B%0A url: baseurl+'/uploadmax'%0A %7D, function onResponse (err, response, body) %7B%0A // Then check that it worked:%0A if (body == 'E_EXCEEDS_UPLOAD_LIMIT' && response.statusCode == 500) %7Breturn done();...
10c6129353dc2f7d5c962878413496ab7a414549
Remove trailing line
cli.js
cli.js
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var meow = require('meow'); var imgurUploader = require('./'); var cli = meow({ help: [ 'Example', ' $ imgur-uploader unicorn.png', ' $ cat unicorn.png | imgur-uploader' ].join('\n') }); if (!cli.input.length && process.stdin.isTTY) { console.error(...
JavaScript
0.002917
@@ -804,13 +804,12 @@ (stream);%0A%7D%0A -%0A
60b1b1eea045ff7d845882dc023374435c340bd8
Change 'program' to 'module'
cli.js
cli.js
#!/usr/bin/env node 'use strict'; var chalk = require('chalk'); var meow = require('meow'); var process = require('process'); var allPrograms = [ 'atom', 'bash', 'bin', 'fonts', 'git', 'gnome-terminal', 'vim', 'vscode' ]; var cli = meow({ help: [ 'Usage: dotfiles install [<program>...]', ''...
JavaScript
0.000005
@@ -128,23 +128,22 @@ %0Avar all -Program +Module s = %5B%0A @@ -291,23 +291,22 @@ stall %5B%3C -program +module %3E...%5D',%0A @@ -325,23 +325,22 @@ 'where %3C -program +module %3E is one @@ -373,23 +373,22 @@ ' + all -Program +Module s.join(' @@ -418,23 +418,22 @@ ify no %3C -program +module %3E to ins @...
c51562010a9509fb4dd22402e3d3c2b01f2053e8
change some function names
css.js
css.js
var rework = require('rework') , npm = require('rework-npm') , vars = require('rework-vars') , assets = require('rework-assets') , path = require('path') , fs = require('fs') , events = require('events') , resolve = require('resolve') , pkg = require('package-lookup') , read = function (f) { retur...
JavaScript
0.473966
@@ -1146,32 +1146,30 @@ );%0A%0A -parseCSSVariable +applyReworkVar s(css, o @@ -1178,22 +1178,27 @@ s);%0A -handle +applyRework Assets ( @@ -1395,14 +1395,19 @@ ion -handle +applyRework Asse @@ -1875,24 +1875,22 @@ ion -parseCSSVariable +applyReworkVar s(cs
487804493e8fcf7a2e5415f177a5acdeebdb75fe
update RNParttenLock
mockup/index.js
mockup/index.js
import React,{ Components } from 'react'; import { Text } from 'react-native' import RNPatternLock from 'react-native-pattern-lock' export default class MainScreen extends Components{ redner(){ return ( <View> <RNPatternLock onStart = { this.onStart } onEnd = { this.onEnd } status = 'setting...
JavaScript
0
@@ -300,73 +300,223 @@ %09%09%09%09 -status = 'setting/lock'%0A%09%09%09%09/%3E%0A%09%09%09%3C/View%3E%0A%09%09)%0A%09%7D%0A%0A%09onStart()%7B%0A%09%09%0A%09%7D%0A%7D +type = 'lock'// oneOf%5B%22lock%22,%22set%22,%22confirm%22%5D%0A%09%09%09%09/%3E%0A%09%09%09%3C/View%3E%0A%09%09)%0A%09%7D%0A%0A%09onStart()%7B%0A%09%0...
c6fe21e732d9b9f762a55bebc50e571a46d3819d
update models.index.js
models/index.js
models/index.js
'use strict'; const Sql = require('sequelize'); /*const sql = new Sql(process.env.DB_LOCAL_NAME, process.env.DB_LOCAL_USER, process.env.DB_LOCAL_PASS, { host: process.env.DB_LOCAL_HOST, dialect: 'mssql', pool: { max: 5, min: 0, idle: 10000 } });*/ /*const sql = new Sql(process.env.DB_DEV_NAME, pro...
JavaScript
0.000001
@@ -253,24 +253,25 @@ : 10000%0A %7D%0A +%0A %7D);*/%0A/*cons @@ -605,18 +605,16 @@ PASS, %7B%0A - host:
36474340f989013183c00787c19d162c74772d99
remove linux line endings when adding new module dependencies
module/index.js
module/index.js
'use strict'; var fs = require('fs') , genBase = require('../genBase') , path = require('path') , utils = require('../utils'); var Generator = module.exports = genBase.extend(); Generator.prototype.initialize = function initialize() { this.module = this.name; }; Generator.prototype.writing = function writin...
JavaScript
0.000001
@@ -2498,24 +2498,88 @@ depdendency%0A + // slice at the last quote to remove the varying line endings%0A lines%5Bangu @@ -2701,17 +2701,17 @@ dexOf('%5C -n +' '));%0A l @@ -2785,16 +2785,18 @@ ne-1%5D + +'%5C ',';%0A%0A
447849cc9c34cb8a92abcfcff6603e1b339c5d09
add return tag for http put
modules/http.js
modules/http.js
var Database = require('../persistence/mongo'); var db = new Database(); var isJson = require('../utils/common').isJson; var model = require('../models'); var authCheck = require('../auth/basic'); var getAuthInfo = require('./utils/getAuth'); module.exports = function (app) { app.get(/^\/topics\/(.+)$/, function (re...
JavaScript
0
@@ -1506,16 +1506,23 @@ ) %7B%0A +return update(r
d16076de3aec7471e12b14806a9e8cfd86e59848
Remove needless "this."
modules/main.js
modules/main.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ load('lib/WindowManager'); Cu.import('resource://gre/modules/Services.jsm'); const TYPE_BROWSER = 'navig...
JavaScript
0.000712
@@ -2738,21 +2738,16 @@ p :%0D%0A%09%09%09 -this. evaluate
c366fabc81d60b9ce641ce6756f78896d45dcd3c
Add license header for MPL 2.0
modules/main.js
modules/main.js
var BASE = 'extensions.auto-confirm@myokoym.net.'; var prefs = require('lib/prefs').prefs; function log(message) { if (prefs.getPref(BASE + 'debug')) { console.log("auto-confirm: " + message); } } load('lib/WindowManager'); var global = this; function handleWindow(aWindow) { log("handleWindow"); var doc ...
JavaScript
0
@@ -1,12 +1,218 @@ +/*%0A# This Source Code Form is subject to the terms of the Mozilla Public%0A# License, v. 2.0. If a copy of the MPL was not distributed with this%0A# file, You can obtain one at http://mozilla.org/MPL/2.0/.%0A*/%0A%0A var BASE = '
4a88d4bd74051d19202c8071573d28831fcbe5a4
Load required library correctly
modules/main.js
modules/main.js
var BASE = 'extensions.restartless@piro.sakura.ne.jp.'; var prefs = require('lib/prefs').prefs; prefs.setDefaultPref(BASE + 'anonymize', false); prefs.setDefaultPref(BASE + 'intervalSeconds', 60); { let dir = Cc['@mozilla.org/file/directory_service;1'] .getService(Components.interfaces.nsIPrope...
JavaScript
0.000001
@@ -550,24 +550,26 @@ ');%0D%0Avar + %7B Promise = Cu.im @@ -560,16 +560,18 @@ Promise + %7D = Cu.im
36aaecbe05096648e573f7711e7bc5b52cc286bc
send http error response code when there is an error rather than just the message
musselrunner.js
musselrunner.js
'use strict'; var Mussel = require('./index.js'); var express = require("express"); var bunyan = require('bunyan'); var log = bunyan.createLogger({name: "musselrunner"}); var app = express(); app.get("/auths/:userid", function(req, res) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-...
JavaScript
0
@@ -487,32 +487,92 @@ ns%22);%0A%09%09res. +status(500). send( +%7B err +or: 'unable to retrieve auths', errorMsg:err %7D );%0A%09%7D else %7B @@ -946,16 +946,73 @@ res. +status(500). send( +%7B err +or: 'unable to deauthorize', errorMsg:err %7D );%0A%09
771e143643b1aaeeb84e917b8379d1d5f7645d7a
drop examples/
build/examples.js
build/examples.js
var rollup = require('rollup') var buble = require('rollup-plugin-buble') var json = require('rollup-plugin-json') var commonjs = require('rollup-plugin-commonjs') var eslint = require('rollup-plugin-eslint') var nodeResolve = require('rollup-plugin-node-resolve') var uglify = require('rollup-plugin-uglify') var build...
JavaScript
0
@@ -633,15 +633,8 @@ = %5B -'basic' %5D%0Aex
f726173e824966e1e055bdfeb377641120aef57c
call watch native
src/Namster/gulpfile.js
src/Namster/gulpfile.js
/// <binding BeforeBuild='webpack:build, min:css' Clean='clean' /> "use strict"; var gulp = require("gulp"), debug = require("gulp-debug"), util = require("gulp-util"), rimraf = require("rimraf"), merge = require("merge-stream"), concat = require("gulp-concat"), rename = require("gulp-rename"),...
JavaScript
0.000001
@@ -2042,22 +2042,16 @@ .css'%7D)) - %0A @@ -2179,21 +2179,16 @@ ed files - %0A @@ -2304,54 +2304,8 @@ );%0A%0A -gulp.task(%22build%22, %5B%22min:css%22, %22build:js%22%5D);%0A%0A gulp @@ -2316,16 +2316,20 @@ k(%22watch +:css %22, funct @@ -2362,39 +2362,79 @@ ths. -js, paths.jsx%5D, %...
cd56d41c1e668a5491627f2dab9e0d349e928f1d
Remove progress print statement
src/Native/Benchmark.js
src/Native/Benchmark.js
Elm.Native.Benchmark = {}; Elm.Native.Benchmark.make = function(localRuntime) { localRuntime.Native = localRuntime.Native || {}; localRuntime.Native.Benchmark = localRuntime.Native.Benchmark || {}; if (localRuntime.Native.Benchmark.values) { return localRuntime.Native.Benchmark.values; } //var Dict = Elm.Dict...
JavaScript
0.000005
@@ -2220,53 +2220,8 @@ n%22;%0A - console.log(%22Progress %22);%0A
f4195e841462783670decf6658f0ded3ef3d073c
Update DNSTool.js
net2/DNSTool.js
net2/DNSTool.js
/* Copyright 2016 Firewalla LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
JavaScript
0
@@ -2347,16 +2347,24 @@ return f +irewalla .isReser
244ad114563f2ad936765239cc5a7e7a46fbf629
Use arrow functions
src/Native/websocket.js
src/Native/websocket.js
// Elm globals (some for elm-native-helpers and some for us and some for the future) const E = { A2: A2, A3: A3, A4: A4, Scheduler: { nativeBinding: _elm_lang$core$Native_Scheduler.nativeBinding, succeed: _elm_lang$core$Native_Scheduler.succeed, fail: _elm_lang$core$Native_Scheduler.fail, rawSpawn: _elm_la...
JavaScript
0.000003
@@ -908,18 +908,12 @@ t = -function() +_ =%3E %7B%0A
4a66ec6b933c6971e6bd547b9a443b0006369855
Improve persistence testing
src/Persistence.test.js
src/Persistence.test.js
import PersistenceManager from "./Persistence"; class LocalStorage { constructor() { this.data = {}; } getItem(key) { return this.data[key] || null; } setItem(key, value) { this.data[key] = value; } } it("can get default", () => { const defaultValue = []; co...
JavaScript
0.000006
@@ -93,24 +93,25 @@ this. +_ data = %7B%7D;%0A @@ -151,24 +151,25 @@ return this. +_ data%5Bkey%5D %7C%7C @@ -221,16 +221,17 @@ this. +_ data%5Bkey @@ -1722,18 +1722,21 @@ ue s -aved +et into +same stor @@ -1843,25 +1843,8 @@ age, - // same storage %0A
d5f29b64938e65561352ce8ca79edf1169cfac35
Rename variable, to make fetching multiple URLs clearer
djofx/static/djofx/charts/monthly.js
djofx/static/djofx/charts/monthly.js
function refresh_transaction_list(data) { $("#transaction_list").html(data); } function plot_bar_chart() { var data = [ { label: "Income", data: flotise_years_and_months(income), lines: { show: true }, points: { ...
JavaScript
0.000001
@@ -1460,18 +1460,28 @@ var t -he +ransactions_ url = Ur @@ -1605,18 +1605,28 @@ url: t -he +ransactions_ url,%0A
d5a36823a5c5366199636afd8eef978870def2a8
add demo credentials
examples/basic/app.js
examples/basic/app.js
import React, { PropTypes, Component } from 'react'; import algoliasearch from 'algoliasearch'; import AlgoliaInput from '../../lib/index'; const algoliaClient = algoliasearch('APPLICATION_ID', 'SEARCH_ONLY_API_KEY'); class App extends Component { constructor(...args) { super(...args); this.state = { ...
JavaScript
0.000001
@@ -178,45 +178,51 @@ ch(' -APPLICATION_ID', 'SEARCH_ONLY_API_KEY +latency', '6be0576ff61c053d5f9a3225e2a90f76 ');%0A @@ -632,12 +632,22 @@ ex=' -test +instant_search ' on
50f0be6e2e5a1035de48c72ce1e63fded6617108
add no-token scenario to admin service
imports/graphql/bll/adminService.js
imports/graphql/bll/adminService.js
export default class AdminService { constructor(props) { this.token = props.token; this.user = Meteor.users.findOne({ 'services.resume.loginTokens.hashedToken': Accounts._hashLoginToken(props.token), }); this.userIsAdmin = this.user.roles.indexOf('admin') !== -1; } }
JavaScript
0.000001
@@ -1,8 +1,58 @@ +import %7B Accounts %7D from 'meteor/accounts-base';%0A%0A export d @@ -127,16 +127,35 @@ ps.token + ? props.token : '' ;%0A%09%09this @@ -256,20 +256,19 @@ inToken( -prop +thi s.token) @@ -295,16 +295,28 @@ sAdmin = + this.user ? this.us @@ -347,14 +347,22 @@ ) !== -1 + : false ;%0A%09%7D%0...
ceded7193726727daafef3ea0677c92fdc01f94b
fix splitting of config vars with = in them
packages/heroku-apps/commands/config/set.js
packages/heroku-apps/commands/config/set.js
'use strict'; let cli = require('heroku-cli-util'); let co = require('co'); let extend = require('util')._extend; let _ = require('lodash'); function* run (context, heroku) { let vars = _.reduce(context.args, function (vars, v) { if (v.indexOf('=') === -1) { cli.error(`${cli.color.cyan(v)} is ...
JavaScript
0.000001
@@ -148,16 +148,210 @@ ash');%0A%0A +function split(str, delim) %7B%0A var components = str.split(delim);%0A var result = %5Bcomponents.shift()%5D;%0A if(components.length) %7B%0A result.push(components.join(delim));%0A %7D%0A return result;%0A%7D%0A%0A function @@ -612,16 +612,17 @@ v = -v. split( +v, '...
c521d77ff730e91eae66d73ab748591ff5b535f6
replace deprecated unescape() with decodeURIComponent()
node_example.js
node_example.js
var crypto = require('crypto'); var querystring = require('querystring') function nonce(len) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < len; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); retu...
JavaScript
0.000016
@@ -380,16 +380,26 @@ urn -unescape +decodeURIComponent (enc
f1d89d3ff7b64c498ded8d06263db71caf3b182c
Fix error handling
src/SqsBrokerFacade.es6
src/SqsBrokerFacade.es6
import AWS from 'aws-sdk'; import Consumer from 'sqs-consumer'; import Producer from 'sqs-producer'; import EventeEmitter from 'events'; import ResponseStatus from './ResponseStatus'; export default class SqsBrokerFacade extends EventeEmitter { constructor(options) { super(); this._options = options; ...
JavaScript
0.000007
@@ -1631,24 +1631,81 @@ urn;%0A %7D%0A%0A + let promise = new Promise((resolve, reject) =%3E %7B%0A if( stat @@ -1747,24 +1747,28 @@ )%7B%0A + done();%0A @@ -1767,24 +1767,28 @@ ();%0A + + let error = @@ -1832,16 +1832,20 @@ + error.se @@ -1893,26 +1893,8...
f0cda3c6d235272988f357db0ed52c20b663c8e4
Update binary-find.js
javascript/16_binary/binary-find.js
javascript/16_binary/binary-find.js
/** * 二分查找 * * Author: nameczz */ // 查找第一个等于给定值 const biaryFindFirst = (sortedArr, target) => { if (sortedArr.length === 0) return -1 let low = 0 let high = sortedArr.length - 1 while (low <= high) { const mid = Math.floor((low + high) / 2) if (target < sortedArr[mid]) { ...
JavaScript
0
@@ -1776,32 +1776,41 @@ 2)%0A if ( +target %3C sortedArr%5Bmid%5D %3E @@ -1807,25 +1807,16 @@ Arr%5Bmid%5D - %3E target ) %7B%0A @@ -1915,32 +1915,33 @@ edArr%5Bmid + 1%5D %3E += target) return @@ -2366,8 +2366,9 @@ Small%7D%60) +%0A
119d4f0c60cf3d891d8d85282c0c97c838791cd6
Add callback feature
src/abe-json-builder.js
src/abe-json-builder.js
var colors = require('colours'), fs = require('fs'), glob = require('glob'), lodash = require('lodash-node'), mkdirp = require('mkdirp'), path = require('path'), util = require('util'), errors = { 'NOT_ABE': 'This file is an invalid ABE JSON format' }, opt = { 'verbos...
JavaScript
0
@@ -421,20 +421,30 @@ (options +, callback ) %7B%0A - loda @@ -1212,37 +1212,58 @@ if +(!lodash.isUndefined (err) +) %7B%0A @@ -1930,21 +1930,42 @@ if +(!lodash.isUndefined (err) +) %7B%0A @@ -2175,24 +2175,24 @@ %7D);%0A%0A - %7D);%0A @@ -2190,12 +2...
939e5c675d039cecd7378542667d5e4942511a54
Update some syntax and add some options to the data that is passed to the unbox function
packages/truffle-core/lib/commands/unbox.js
packages/truffle-core/lib/commands/unbox.js
/* * returns a VCS url string given: * - a VCS url string * - a github `org/repo` string * - a string containing a repo under the `truffle-box` org */ function normalizeURL(url) { url = url || "https://github.com/trufflesuite/truffle-init-default"; // full URL already if (url.indexOf("://") != -1 || url.ind...
JavaScript
0
@@ -1470,16 +1470,17 @@ function + (options @@ -1493,19 +1493,21 @@ ) %7B%0A -var +const Config @@ -1539,19 +1539,21 @@ %22);%0A -var +const Box = r @@ -1579,19 +1579,21 @@ %22);%0A -var +const OS = re @@ -1610,19 +1610,21 @@ );%0A%0A -var +const config @@ -1684,19 +1684,21 @@ );%0A%0A...
17c149e0b645068d51c51cbd3b1c2d00bb533441
optimize ButtonRadioGroup
src/ButtonRadioGroup/ButtonRadioGroup.js
src/ButtonRadioGroup/ButtonRadioGroup.js
/** * @file ButtonRadioGroup component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ButtonRadio from '../ButtonRadio'; import Theme from '../Theme'; import Util from '../_vendors/Util';...
JavaScript
0.000013
@@ -1627,24 +1627,32 @@ + data && data.map((i
4ecac531120f1e306cc6c853cfb6acc8b7d8b44c
Fix #2027
packages/vulcan-lib/lib/modules/settings.js
packages/vulcan-lib/lib/modules/settings.js
import Vulcan from './config.js'; import flatten from 'flat'; const getNestedProperty = function (obj, desc) { var arr = desc.split("."); while(arr.length && (obj = obj[arr.shift()])); return obj; }; export const Settings = {}; export const getAllSettings = () => { const settingsObject = {}; let rootSett...
JavaScript
0.000001
@@ -3504,32 +3504,39 @@ );%0A setting = + typeof publicSetting %7C @@ -3534,18 +3534,49 @@ Setting -%7C%7C +!== 'undefined' ? publicSetting : default
9d9aeab819f94699f0ad7ff92556f3f69f03c8e2
Update timeline list before titles of each timeline
js/controllers/action-controller.js
js/controllers/action-controller.js
(function(app) { 'use strict'; var m = require('mithril'); var util = app.util || require('../util.js'); var TimelineController = app.TimelineController || require('./timeline-controller.js'); var ActionController = function(option) { this.headerController = m.prop(option.headerController); this.time...
JavaScript
0
@@ -3646,32 +3646,36 @@ m.redraw( +true );%0A%0A upda
0dbe663d1182e4b271fba6917ce554d393fd2de8
Add some docs; use thisCarousel instead of this
js/energy-systems/model/Carousel.js
js/energy-systems/model/Carousel.js
// Copyright 2016, University of Colorado Boulder /** * This class implements a container of sorts for positionable model elements. * The model elements are positioned by this class, and an API is provided * that allows clients to move elements to the "selected" position. Changes * to the selected element are ani...
JavaScript
0
@@ -819,46 +819,47 @@ ion -Location of currently selected element +Offset between elements in the carousel %0A @@ -905,47 +905,46 @@ s -Offset between elements in the carousel +Location of currently selected element %0A @@ -2416,24 +2416,32 @@ ffset = this +Carousel .currentCaro @@ -2454,32 +2454,40 @@ ...
2e0034329dce6bde59d73485cca29c8074a48db0
Allow dropdown `select` events to bubble.
Dropdown.js
Dropdown.js
/* ========================================================== * Dropdown.js v1.1.0 * ========================================================== * Copyright 2012 xsokev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
JavaScript
0
@@ -1926,20 +1926,19 @@ bubbles: -fals +tru e, cance @@ -1943,20 +1943,19 @@ celable: -fals +tru e, selec
26d35f5c1e21cc0141f50dfbde9718e6d5b6b139
build to include woff2 fonts from bootstrap-sass
gulp/build.js
gulp/build.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
JavaScript
0
@@ -4638,16 +4638,22 @@ ttf,woff +,woff2 %7D'))%0A
57204c6ed08fac60a547d3acec62f0866cf2869b
Fix last commit
js/src/admin/components/MailPage.js
js/src/admin/components/MailPage.js
import Page from './Page'; import FieldSet from '../../common/components/FieldSet'; import Button from '../../common/components/Button'; import Alert from '../../common/components/Alert'; import Select from '../../common/components/Select'; import saveSettings from '../utils/saveSettings'; export default class MailPag...
JavaScript
0.000002
@@ -387,16 +387,174 @@ false;%0A%0A + this.driverFields = %7B%0A smtp: %5B'mail_host', 'mail_port', 'mail_encryption', 'mail_username', 'mail_password'%5D,%0A mail: %5B%5D,%0A log: %5B%5D,%0A %7D;%0A%0A this
cc078e4041e23409f3ae32e6f3144b4b94e49b69
update browserify config
gulp/build.js
gulp/build.js
'use strict'; var browserify = require('browserify'); var gulp = require('gulp'); var source = require('vinyl-source-stream'); var $ = require('gulp-load-plugins')({ pattern: ['gulp-*'] }); /** * scripts **/ gulp.task('scripts', function() { return browserify('./app/scripts/app.js') .bundle() ...
JavaScript
0.000002
@@ -270,30 +270,118 @@ ify( -'./app/scripts/app.js' +%7B%0A entries: %5B'./app/scripts/app.js'%5D,%0A paths: %5B'./node_modules', './app/scripts/'%5D%0A %7D )%0A
a2562acd6d221eb306f7511d6038deba488ea2fc
Remove folders from exclude
gulp/utils.js
gulp/utils.js
import fs from 'fs'; import path from 'path'; import {argv} from 'yargs'; // ENVIRONMENT SETUP export const isProduction = argv.prod ? true : process.env.NODE_ENV === 'production'; process.env.BABEL_ENV = argv.prod ? 'production' : process.env.NODE_ENV; const consoleColors = { reset: '\x1b[0m', hicolor: '\x1b[1m...
JavaScript
0.000004
@@ -768,23 +768,8 @@ ets' -, 'less', 'css' %5D;%0A%0A
765e7cb685ca340a1bb084499197340841efb923
fix code style
gulp/watch.js
gulp/watch.js
export function run(gulp, $, config) { gulp.task('watch', [ 'build' ], () => { gulp.watch(config.appFiles, [ 'build' ]); }); }
JavaScript
0.000033
@@ -66,16 +66,17 @@ 'build' +, %0A %5D, () @@ -128,16 +128,17 @@ 'build' +, %0A %5D);
10a3b7d67389764ed2c1f31aad6adf9cf3779a62
Add some more descriptive data to links
src/app/bigram/index.js
src/app/bigram/index.js
import bigram from './bigram.json'; import Set from 'es6-set'; import $ from 'jquery'; import 'bootstrap/dist/js/bootstrap.js'; import _ from 'underscore'; import { Graph } from './../../clique/model.js'; import { NodeLinkList } from './../../clique/adapter.js'; import { Cola } from './../../clique/view.js'; import { S...
JavaScript
0
@@ -1391,16 +1391,67 @@ +letters: %60$%7Bfirst%7D-$%7Bsecond%7D%60,%0A forward_ frequenc @@ -1661,16 +1661,64 @@ = true;%0A + link.data.back_frequency = data%5Brev%5D;%0A
61fe0ac833f81a5d08ba773c6e60431c79717f54
update gulpconfig.js
gulpconfig.js
gulpconfig.js
'use strict'; /** * タスクの動作設定 */ module.exports = { /** * 出力先ディレクトリ */ dest : 'dest', /** * 環境ごとのビルド設定 */ build : { default : { css_minify : false, js_minify : false, bower_minify : true, sourcemap : true }, production : { css_minify : false, js_minify : false, ...
JavaScript
0.000001
@@ -2265,28 +2265,34 @@ s/sass/**/*. +%7Bcss, scss +%7D ',%0A%09%09%09dest
41ce9c779ac2275765492e0c36bef56971b48fa0
Clean up
tasks/jshint.js
tasks/jshint.js
var rewire = require('rewire'); var proxyquire = require('proxyquire'); try { var react = require('react-tools'); } catch(e) { throw new Error('grunt-jsxhint: The module `react-tools` was not found. ' + 'To fix this error run `npm install react-tools --save-dev`.', e); } var jshintcli = rewire('jshint/src/...
JavaScript
0.000002
@@ -71,18 +71,16 @@ ;%0Atry %7B%0A - var re @@ -114,22 +114,21 @@ );%0A%7D -%0A + catch + (e) %7B%0A - th @@ -611,18 +611,16 @@ file) %7B%0A - var is @@ -693,16 +693,18 @@ !== -1;%0A + //added @@ -750,18 +750,16 @@ comment%0A - var ha @@ -824,18 +824,16 @@ .jsx;%0A - - if (isJs @@...
8d866b6989204e386fb31e104ad457a4ff6076e4
Allowing question messages to be functions
tasks/prompt.js
tasks/prompt.js
/* * grunt-prompt * https://github.com/dylang/grunt-prompt * * Copyright (c) 2013 Dylan Greene * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { grunt.registerMultiTask('prompt', 'Interactive command line user prompts.', function () { var inquirer = require('inq...
JavaScript
0.999999
@@ -1127,24 +1127,155 @@ n.choices);%0A + if (_.isFunction(question.message)) %7B%0A question.message = question.message();%0A %7D%0A
6e7b159542c6dd26d6c837ee710d375f2a37387e
Test pull 2.
helloworld.js
helloworld.js
// This function will return "Hello World" function helloworld(){ return "Hello Wooo" } console.log(helloworld())
JavaScript
0
@@ -66,27 +66,25 @@ %0A return %22H -ell +o o Wooo%22%0A%7D%0A%0Ac
474c5a82fa160abd2e0201b93c40c23eda25f8a6
Update compare.js
tests/utils/compare.js
tests/utils/compare.js
/* global XMLHttpRequest, expect */ function loadBinaryResource (url) { const req = new XMLHttpRequest() req.open('GET', url, false) // XHR binary charset opt by Marcus Granado 2006 [http://mgran.blogspot.com] req.overrideMimeType('text\/plain; charset=x-user-defined') req.send(null) if (req.status !== 20...
JavaScript
0.000001
@@ -1559,15 +1559,12 @@ adAs -DataURL +Text (%60/b
96cac85e8153f9a34a5a5e0e0f97865210d0bbf6
Fix a typo
src/_extras/Indigo/kekule.indigo.base.js
src/_extras/Indigo/kekule.indigo.base.js
/** * Created by ginger on 2017/5/9. */ /* * requires /utils/kekule.utils.js * requires /core/kekule.common.js * requires /core/kekule.structures.js * requires /_extras/kekule.emscriptenUtils.js * requires /localization/ */ (function($root){ "use strict"; /** @ignore */ var EU = Kekule.EmscriptenUtils; /** ...
JavaScript
1
@@ -3197,36 +3197,41 @@ tEnvVar('indigo. -path +scriptSrc ');%0A%09if (!result
3ff2fdfcee2270aafad6308b9b239564bbf176a1
fix tests
src/components/Editor/tests/DebugLine.js
src/components/Editor/tests/DebugLine.js
import React from "react"; import { shallow } from "enzyme"; import DebugLine from "../DebugLine"; jest.mock( "../../../utils/editor/source-documents", jest.fn(() => ({ getDocument: jest.fn() })) ); import { getDocument } from "../../../utils/editor/source-documents"; getDocument.mockImplementation(() => ({ ...
JavaScript
0.000001
@@ -102,19 +102,16 @@ st.mock( -%0A %22../../. @@ -147,19 +147,9 @@ ts%22, -%0A jest.fn( + () = @@ -153,18 +153,16 @@ ) =%3E (%7B%0A - getDoc @@ -182,14 +182,10 @@ n()%0A - %7D))%0A +%7D) );%0Ai @@ -257,46 +257,32 @@ s%22;%0A -getDocument.mockImplementation(() =%3E ( +const mockGetDocument = %7B%0A ...
365aa4d1784acc5c34591f4c540caa2d1e810cf5
Fix bug that stopped tag name filter from working
src/components/PineTypes/KeyValuePair.js
src/components/PineTypes/KeyValuePair.js
import * as React from 'react' import * as RegexParser from 'regex-parser' import * as isArray from 'lodash/isArray' import * as assign from 'lodash/assign' import * as some from 'lodash/some' import * as includes from 'lodash/includes' import * as isString from 'lodash/isString' import * as values from 'lodash/values'...
JavaScript
0
@@ -4923,18 +4923,72 @@ -value = %7B +let p = %7B%7D%0A if (includes(valueOperators, operator)) %7B%0A p %5Bsch @@ -5001,17 +5001,115 @@ lue%5D -: + = value - %7D +%0A %7D%0A if (includes(keyOperators, operator)) %7B%0A p%5Bschema.key%5D = value%0A %7D%0A%0A value = p %0A %7D
4575e0002bcaa49267ff3104c5fec332602bfb88
fix memory leak on scroll tear down, remove duplicate elm find, apply offsetX faster and only when needed
src/components/body/ScrollerDirective.js
src/components/body/ScrollerDirective.js
import { requestAnimFrame } from '../../utils/utils'; import { StyleTranslator } from './StyleTranslator'; import { TranslateXY } from '../../utils/translate'; export function ScrollerDirective($timeout){ return { restrict: 'E', require:'^dtBody', transclude: true, replace: true, template: `<div ...
JavaScript
0
@@ -758,24 +758,197 @@ n update()%7B%0A + if(lastScrollX !== ctrl.options.internal.offsetX)%7B%0A $scope.$apply(() =%3E %7B%0A ctrl.options.internal.offsetX = lastScrollX;%0A %7D);%0A %7D%0A%0A $sco @@ -1029,63 +1029,8 @@ lY;%0A - ctrl.options.internal.offs...
9440d50a1e3fe2946700c61d9205d67bbfa7676a
Store the reference to React component in DOM
lib/assets/javascripts/react_ujs.js
lib/assets/javascripts/react_ujs.js
/*globals React, Turbolinks*/ // Unobtrusive scripting adapter for React (function(document, window) { // jQuery is optional. Use it to support legacy browsers. var $ = (typeof window.jQuery !== 'undefined') && window.jQuery; // create the namespace window.ReactRailsUJS = { CLASS_NAME_ATTR: 'data-react...
JavaScript
0.00001
@@ -224,19 +224,17 @@ jQuery;%0A - %0A + // cre @@ -422,17 +422,16 @@ find the - %0A // @@ -567,19 +567,16 @@ allbacks - %0A v @@ -639,23 +639,17 @@ + '%5D';%0A - %0A + if @@ -761,29 +761,25 @@ %7D%0A %7D,%0A - %0A + mountCom @@ -847,39 +847,33 @@ findDOMNodes()...
700017fccf75b57cc3f6a92178bf42b2d97f9809
Add missing await (#207)
lib/basedriver/commands/settings.js
lib/basedriver/commands/settings.js
import log from '../logger'; let commands = {}; commands.updateSettings = async function (newSettings) { if (!this.settings) { log.errorAndThrow('Cannot update settings; settings object not found'); } return this.settings.update(newSettings); }; commands.getSettings = async function () { if (!this.settin...
JavaScript
0.000038
@@ -205,32 +205,38 @@ );%0A %7D%0A return +await this.settings.up @@ -411,16 +411,22 @@ return +await this.set
d79a1ae985270ee04fc5d2e6344722722580be8c
Fix JSON-LD datatype handling.
lib/datasources/JsonLdDatasource.js
lib/datasources/JsonLdDatasource.js
/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */ /* An JsonLdDatasource fetches data from a JSON-LD document. */ var MemoryDatasource = require('./MemoryDatasource'), jsonld = require('jsonld'); var ACCEPT = 'application/ld+json;q=1.0,application/json;q=0.7'; // Creates a new JsonLdDatasour...
JavaScript
0.000006
@@ -1560,31 +1560,42 @@ to -an +the N3.js -IRI or literal +in-memory representation %0Afun @@ -2031,9 +2031,8 @@ '%22%5E%5E -%3C ' + @@ -2050,14 +2050,8 @@ type - + '%3E' ;%0A
a0b38f4a558c1d075aa17ea686b44bfc3395549a
Clean up code
src/containers/auth/signup-form/index.js
src/containers/auth/signup-form/index.js
import React, { Component, PropTypes } from 'react'; import { reduxForm } from 'redux-form'; import { IndexLink, hashHistory } from 'react-router'; import Modal from 'react-bootstrap/lib/Modal'; import client from 'utils/api-client'; import signupValidation from 'containers/auth/signup-form/signup-validation'; import f...
JavaScript
0.000004
@@ -2180,31 +2180,25 @@ %7D)%0A %7D - else %7B +%0A %0A a @@ -2194,18 +2194,16 @@ - axios.po @@ -2249,18 +2249,16 @@ ferral)%0A - @@ -2288,18 +2288,16 @@ - hashHist @@ -2329,34 +2329,32 @@ ');%0A - - return resolve(r @@ -2372,15 +2372,11 @@ ...
e1bfffd59b479ecd56470dff565c812a56c70577
Add StocktakeBatch reason helpers
src/database/DataTypes/StocktakeBatch.js
src/database/DataTypes/StocktakeBatch.js
import Realm from 'realm'; import { createRecord } from '../utilities'; /** * A stocktake batch. * * @property {string} id * @property {Stocktake} stocktake * @property {ItemBatch} itemBatch * @property {number} snapshotNumberOfPacks * @property {number} packSize * @property {Date} ex...
JavaScript
0
@@ -20,16 +20,17 @@ realm';%0A +%0A import %7B @@ -3428,24 +3428,185 @@ eason;%0A %7D%0A%0A + /**%0A * @return %7BString%7D this batches reason title, or an empty string.%0A */%0A get reasonTitle() %7B%0A return (this.option && this.option.title) %7C%7C '';%0A %7D%0A%0A /**%0A * S @@ -3818,32 +3818,2...
2044e89e2b0a5534d9f130f9427538a0bbcfc884
update fns
fns.js
fns.js
'use strict' var undef = void(0) function hasOwn(obj, prop) { return obj && obj.hasOwnProperty && obj.hasOwnProperty(prop) } module.exports = { escape: function(markup) { if (!markup) return ''; return String(markup) .replace(/&/g, '&amp;') .replace(/</g, '&...
JavaScript
0.000001
@@ -5062,23 +5062,16 @@ rguments -.length %0D%0A
82c052ecdf1b5d1a300a670c779750096be9d42d
Update authActions' endpoints
src/auth/authActions.js
src/auth/authActions.js
import Promise from 'bluebird'; import extend from 'lodash/extend'; import steemConnect from 'steemconnect'; import broadcast from 'steem/lib/broadcast'; import * as actionTypes from './authActionTypes'; import api from '../steemAPI'; Promise.promisifyAll(steemConnect); export const GET_FOLLOWING = 'GET_FOLLOWING'; ...
JavaScript
0
@@ -109,23 +109,21 @@ %0Aimport -broadca +reque st from @@ -128,25 +128,16 @@ m 's -teem/lib/broadcas +uperagen t';%0A @@ -254,16 +254,65 @@ onnect); +%0APromise.promisifyAll(request.Request.prototype); %0A%0Aexport @@ -2068,38 +2068,27 @@ romise: -steemConnect.sendAsync +request.get ('https: @@ -2113,34 +21...
a92e7f2c20320fedfc195d50246bda89feca87ff
Add better docstrings.
src/bide/impl/router.js
src/bide/impl/router.js
/** * router * * @author Andrey Antukh <niwi@niwi.nz>, 2016 * @license BSD License <https://opensource.org/licenses/BSD-2-Clause> */ goog.provide("bide.impl.router"); goog.require("bide.impl.path"); goog.scope(function() { var _path = bide.impl.path; /** * Main router class. * * @constructor * @...
JavaScript
0.000002
@@ -2253,17 +2253,16 @@ %7D%0A */%0A -%0A functi @@ -3137,118 +3137,409 @@ %0A%0A -function isRouter(v) %7B%0A return v instanceof Router;%0A %7D%0A%0A function empty() %7B%0A return new Router();%0A %7D%0A +/**%0A * Check if provided value is an instance of Router%0A *%0A * @param %7B*%7D v%0A ...
aab40cfe89defaaed156a3f543d3317ce6ef7fae
Update ip_mask.js
ip/ip_mask.js
ip/ip_mask.js
/* mask.js */ IP_R = 0 // red channel IP_G = 1 // green channel IP_B = 2 // blue channel IP_A = 3 // alpha channel var ip_reset_masks = function(dst){ dst.ip_roi = null; dst.ip_channel_mask = null; dst.ip_luminance_mask = null; } /* setter */ var ip_set_roi = function(dst, x,y,w,h){ dst.ip_roi = [x,y,x+w,...
JavaScript
0.000003
@@ -620,32 +620,52 @@ function(dst)%7B%0A + console.log(dst);%0A if( dst.ip_roi
db11ac745c6b22d8634f994d3493cf791d3f26fc
tidy up rollup config, use env preset
lib/octicons_react/rollup.config.js
lib/octicons_react/rollup.config.js
import babel from 'rollup-plugin-babel' import commonjs from 'rollup-plugin-commonjs' import {readFileSync} from 'fs' import {name} from './package.json' const formats = ['esm', 'umd'] // 'cjs' ? const presets = [ ['es2015', {modules: false}], 'stage-0', 'react' ] export default { input: 'src/index.js', pl...
JavaScript
0
@@ -82,76 +82,8 @@ njs' -%0Aimport %7BreadFileSync%7D from 'fs'%0Aimport %7Bname%7D from './package.json' %0A%0Aco @@ -150,13 +150,10 @@ %5B'e -s2015 +nv ', %7B
c5f22d17844666dd20ca02be96cc4943a587d5eb
make sure we visit decl inits
lib/passes/desugar-destructuring.js
lib/passes/desugar-destructuring.js
/* -*- Mode: js2; tab-width: 4; indent-tabs-mode: nil; -*- * vim: set ts=4 sw=4 et tw=99 ft=js: */ import { startGenerator } from '../echo-util'; import { TransformPass } from '../node-visitor'; import * as b, { Identifier, ArrayPattern, ObjectPattern } from '../ast-builder'; import { reportError, reportWarning } fr...
JavaScript
0
@@ -2468,24 +2468,56 @@ n.params) %7B%0A + let ptype = p.type;%0A @@ -2517,25 +2517,24 @@ if (p -. type === Obj @@ -2820,33 +2820,32 @@ else if (p -. type === ArrayPa @@ -3133,17 +3133,16 @@ se if (p -. type === @@ -3363,17 +3363,16 @@ ring $%7Bp -. type%7D%60); @@ -3481,1...
1e85c22b8c4755c1a049336f59327e95a4e953c2
Set JSON and authentication on DO API calls
lib/pkgcloud/digitalocean/client.js
lib/pkgcloud/digitalocean/client.js
/* * client.js: Base client from which all Joyent clients inherit from * * (C) 2012 Nodejitsu Inc. * */ var utile = require('utile'), fs = require('fs'), auth = require('../common/auth'), base = require('../core/base'); // // ### constructor (options) // #### @opts {Object} an object literal wit...
JavaScript
0
@@ -525,19 +525,18 @@ s.client -Key +Id %7C%7C !opt @@ -681,16 +681,16 @@ ocean';%0A - this.p @@ -727,16 +727,366 @@ tps://'; +%0A%0A if (!this.before) %7B%0A this.before = %5B%5D;%0A %7D%0A%0A this.before.push(function setJSON(req) %7B%0A req.json = true;%0A if (typeof req.body !== 'undefined') %7B...
5e666102b00520107e0daa5fedb7b6118a482b3d
fix #344
controllers/kiln-toolbar.js
controllers/kiln-toolbar.js
var EditorToolbar, dom = require('../services/dom'), edit = require('../services/edit'), events = require('../services/events'), focus = require('../decorators/focus'), pane = require('../services/pane'), state = require('../services/page-state'), progress = require('../services/progress'); /** * Create...
JavaScript
0
@@ -1403,16 +1403,396 @@ %0A %7D);%0A%0A + // close ANY open forms if user hits ESC%0A document.addEventListener('keydown', function (e) %7B%0A if (e.keyCode === 27) %7B%0A focus.unfocus();%0A // note: this will work even if there isn't a current form open%0A // fun fact: it'll unselect components...
1a2e4ff52e93a163f56efccfc9e1f830b89a557e
update password error messages
src/javascript/_common/check_password.js
src/javascript/_common/check_password.js
const Mellt = require('./lib/Mellt/Mellt'); const localize = require('./localize').localize; const checkPassword = (password_selector) => { const el_password = document.querySelector(password_selector); if (!el_password) { return; } const div = el_password.parentNode.querySelector('.days_to...
JavaScript
0.000001
@@ -495,11 +495,12 @@ ze(' -The +Your pas @@ -509,20 +509,8 @@ ord -you entered is o @@ -523,17 +523,8 @@ the -world%5C's most @@ -551,38 +551,48 @@ ords -. You should not be using this + on the internet. Please choose a unique pas @@ -1100,12 +1100,12 @@ ack -this +your pas
a87b117df30a3c7b11d5762cde81bb27b074f6f5
Change left modal button class to button-link
src/js/components/modals/ActionsModal.js
src/js/components/modals/ActionsModal.js
import { Confirm, Dropdown } from "reactjs-components"; import mixin from "reactjs-mixin"; import React from "react"; import { StoreMixin } from "mesosphere-shared-reactjs"; import ModalHeading from "./ModalHeading"; import StringUtil from "../../utils/StringUtil"; import Util from "../../utils/Util"; const METHODS_T...
JavaScript
0.000082
@@ -6634,32 +6634,81 @@ leButtonCancel%7D%0A + leftButtonClassName=%22button button-link%22%0A rightBut
4a774ca29a33429c981039c17d71aac030d6046d
fix zipcode bug
src/js/facility-locator/actions/index.js
src/js/facility-locator/actions/index.js
import { api } from '../config'; import { find, compact } from 'lodash'; import { mapboxClient } from '../components/MapboxClient'; export const FETCH_VA_FACILITIES = 'FETCH_VA_FACILITIES'; export const FETCH_VA_FACILITY = 'FETCH_VA_FACILITY'; export const LOCATION_UPDATED = 'LOCATION_UPDATED'; export const SEARCH_FAI...
JavaScript
0.000001
@@ -2521,22 +2521,16 @@ -const dispatch Obj @@ -2529,14 +2529,9 @@ atch -Obj = +( %7B%0A @@ -3059,103 +3059,8 @@ %7D%0A - %7D;%0A dispatch(dispatchObj);%0A dispatch(%7B%0A type: SEARCH_SUCCEEDED,%0A
1a3743dcedd838031da0ecedfdf0b67305f41d94
update animation
js/animate.js
js/animate.js
$("#toogle-ani").css("visibility", "visible"); //start animation var doAnimate; $("input[value=doAnimate]").click(function( event ) { if(doAnimate){ doAnimate = false; }else{ doAnimate = true; map.addLayer(Date_WMS1); $('#image1').prop('checked', true); } cnt=2; maxCnt=5; //animation (yes a...
JavaScript
0.000001
@@ -279,17 +279,17 @@ %0A%0A cnt= -2 +1 ;%0A maxC @@ -2954,16 +2954,18 @@ ==maxCnt ++1 )%7Bcnt=1%7D @@ -2992,17 +2992,17 @@ %7D, -5 +4 000);%0A @@ -3010,9 +3010,8 @@ )();%0A%7D); -%0A
092931766b842f4be71c27ab467f3549e1acf901
Add UMD dist file building
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var mocha = require('gulp-mocha'); gulp.task('lint', function() { gulp.src(['src/**/*.js', 'test/**/*.js']) .pipe(jshint({ esnext: true })) .pipe(jshint.reporter(stylish)) ...
JavaScript
0
@@ -133,16 +133,154 @@ mocha'); +%0Avar sixToFive = require('gulp-6to5');%0Avar uglify = require('gulp-uglify');%0Avar rename = require('gulp-rename');%0Avar del = require('del'); %0A%0Agulp.t @@ -652,32 +652,532 @@ %7D));%0A%7D);%0A%0A +gulp.task('clean', function() %7B%0A del('dist');%0A%7D);%0A%0Agulp.ta...
3f2702ed8a8114c6346b0f3af206d7f4e8fa6c25
Add sanitize strategy for translations
js/app/app.js
js/app/app.js
/** * Nextcloud - passman * * @copyright Copyright (c) 2016, Sander Brand (brantje@gmail.com) * @copyright Copyright (c) 2016, Marcos Zuriaga Miguel (wolfi@wolfi.es) * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms o...
JavaScript
0.000001
@@ -2654,16 +2654,75 @@ ider) %7B%0A +%09%09$translateProvider.useSanitizeValueStrategy('sanitize');%0A %09%09$trans
3c115d0aec69251b1006a078c65b955f6fcc2481
Fix old tsc* task references
Gulpfile.js
Gulpfile.js
var gulp = require("gulp"); var typescript = require("gulp-typescript"); var mocha = require("gulp-mocha"); var cover = require("gulp-coverage"); var del = require("del"); gulp.task("clean", function(cb) { del([ "bin/**/*" ], cb); }); gulp.task("build-copy", function() { return gulp.src([ ...
JavaScript
0.000015
@@ -1396,27 +1396,29 @@ tch-src%22, %5B%22 -tsc +build -src%22%5D, func @@ -1473,19 +1473,21 @@ /*%22%5D, %5B%22 -tsc +build -src%22%5D); @@ -1514,27 +1514,29 @@ ch-test%22, %5B%22 -tsc +build -test%22%5D, fun @@ -1598,11 +1598,13 @@ , %5B%22 -tsc +build -tes
5ef845d9ebb922de01a00db062f4deac9d855b29
store path for projects
tasks/takana.js
tasks/takana.js
/* * grunt-takana * https://github.com/mechio/grunt-takana * * Copyright (c) 2013 nc * Licensed under the MIT license. */ 'use strict'; var sqlite3 = require('sqlite3').verbose(); var path = require('path'); var fs = require('fs'); var underscore = require('underscore'); var DEBUG = false; module.exports = fu...
JavaScript
0
@@ -703,16 +703,50 @@ s.cwd()) +,%0A projectPath: process.cwd() %0A %7D); @@ -1696,16 +1696,22 @@ s ( name +, path ) VALUE @@ -1713,16 +1713,19 @@ VALUES ( +?, ?)%22;%0A @@ -1905,16 +1905,37 @@ is.name, + options.projectPath, functio
73c4160d21e7a8463c69f980f485d790d286713d
Remove validations statement for input password
packages/strapi-plugin-content-manager/admin/src/components/Inputs/index.js
packages/strapi-plugin-content-manager/admin/src/components/Inputs/index.js
import React, { memo, useMemo } from 'react'; import PropTypes from 'prop-types'; import { get, isEmpty, omit, toLower } from 'lodash'; import { FormattedMessage } from 'react-intl'; import { Inputs as InputsIndex } from '@buffetjs/custom'; import { useStrapi } from 'strapi-helper-plugin'; import useDataManager from '...
JavaScript
0.000002
@@ -2329,515 +2329,8 @@ %5D;%0A%0A - // Remove the required validation for the password type unless the form is already submitted%0A // So the error is properly displayed in the password input%0A if (type === 'password' && errorId !== 'components.Input.error.validation.required') %7B%0A validationsToOmit = %5B.....
ded724afc4bcf5878ce12e733a4d95d56f4bc4d2
remove log
Gulpfile.js
Gulpfile.js
'use strict'; ////////////////////////////////////////////////////////////////////////////// // REQUIRED ////////////////////////////////////////////////////////////////////////////// var gulp = require('gulp'); var cm = require('./lib/common'); var publish = require('./lib/publish'); var build = require('./lib/bu...
JavaScript
0.000003
@@ -1237,147 +1237,8 @@ b)%7B%0A - console.log(process.env.TRAVIS, process.env.TRAVIS_PULL_REQUEST, process.env.TRAVIS_BRANCH);%0A console.log('Can push', allowPushOnRepo);%0A if
906db11fd186f42cae8e718eb891f081c203f2f3
update gulp file for handling tests
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var karma = require('gulp-karma'); var wrap = require('gulp-wrap-umd'); var testFiles = [ 'src/scripts/requireJs/helloModule.js', 'tests/requireJs/helloSpec.js' ]; gulp.task('test', function() { // Be sure to return the stream gulp.src(testFiles) .pipe(karma({ configFile:...
JavaScript
0
@@ -115,84 +115,29 @@ = %5B -%0A 'src/scripts/requireJs/helloModule.js',%0A 'tests/requireJs/helloSpec.js'%0A +'files in karma conf' %5D;%0A%0A
efcad494bd93eee9c268bce973bb4c83eefbb2ca
fix minor bug regarding internals
src/class/dependency.js
src/class/dependency.js
/* global global, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout, DEMAND_ID, MODULE_PREFIX_HANDLER, ERROR_LOAD, DEMAND_ID, PROVIDE_ID, PATH_ID, MOCK_PREFIX, NULL, TRUE, FALSE, object, regexMatchInternal, regexMatchParameter, validatorIsPositive, functionResolvePath, functionResolv...
JavaScript
0
@@ -929,17 +929,17 @@ internal -: +! ',%0A%09%09reg @@ -1003,16 +1003,17 @@ %5E(?:mock +: %7Cinterna @@ -1017,10 +1017,10 @@ rnal +! ) -: /i,%0A
7cd97f44b1c735bd4d19965d701f29a5c0c9f874
support rediect to the needed page
cypress/support/commands.js
cypress/support/commands.js
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
JavaScript
0
@@ -409,49 +409,16 @@ %22, ( -username, password, assertLoggedIn = true +location ) =%3E @@ -452,16 +452,26 @@ hangeme%22 +, location );%0A%7D);%0A%0A @@ -513,49 +513,16 @@ %22, ( -username, password, assertLoggedIn = true +location ) =%3E @@ -570,16 +570,26 @@ %22abc123%22 +, location );%0A%7D);%0A%0A @@ -643,...
f869095cfffa49329d5891d717debe1b3ded64cb
fix ungreening new moves issue
js/buttons.js
js/buttons.js
var _chess; // Creates a clone of the Lichess board and adds it to the DOM. // @todo? Don't add clone to DOM until we have finished calling updateBoard(). // Performing manipulations while our clone isn't yet in the DOM may be cheaper. var createBoard = function() { // Don't create another clone if one already exists...
JavaScript
0.000001
@@ -2539,30 +2539,8 @@ New. -prevAll('span:first'). remo @@ -2560,32 +2560,52 @@ New');%0A%09moveNew. +prevAll('.le-move'). removeClass('mov
97d1c64b28311a27d8fa0592e62157be87d67d27
Update cookies.js
js/cookies.js
js/cookies.js
function setCookie(cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); document.cookie = cname+"="+cvalue+"; "+expires; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); ...
JavaScript
0.000004
@@ -670,13 +670,22 @@ -alert +document.write (%22We
e5d9c2f390c234419a97542d75b048692e9a5308
Update general.js
js/general.js
js/general.js
/** * Archivo: general.js * Autor: Andy Sapper * Creado: 06/30/2015 */ var nw = require('nw.gui'); // load main window's menu if (process.platform === 'darwin') { var gui = require('nw.gui'); var menuBar = new gui.Menu({type:"menubar"}); menuBar.createMacBuiltin("Reportes DH", { hideEdit: t...
JavaScript
0.000001
@@ -76,354 +76,8 @@ */%0A%0A -var nw = require('nw.gui');%0A%0A// load main window's menu%0Aif (process.platform === 'darwin') %7B%0A var gui = require('nw.gui');%0A var menuBar = new gui.Menu(%7Btype:%22menubar%22%7D);%0A menuBar.createMacBuiltin(%22Reportes DH%22, %7B%0A hideEdit: true%0A %7D);%0A...
d3835f1040bb6400d1b6322e73b44376317c4342
update collection/pluck
src/collection/pluck.js
src/collection/pluck.js
var make = require('./make_') var amap = require('../array/map') var omap = require('../object/map') var prop = require('../function/prop') function arrPluck (arr, propName) { return amap(arr, propName) } function objPluck (obj, propName) { return omap(obj, prop(propName)) } module.exports = make(arrPluck, objPl...
JavaScript
0
@@ -28,19 +28,23 @@ ')%0Avar a -map +rrPluck = requi @@ -60,19 +60,21 @@ ray/ -map +pluck ')%0Avar o map @@ -69,19 +69,23 @@ ')%0Avar o -map +bjPluck = requi @@ -102,194 +102,15 @@ ect/ -map')%0Avar prop = require('../function/prop')%0A%0Afunction arrPluck (arr, propName) %7B%0A return amap(arr, propName)%0...
e1f5282ff29a5361d8d49510cca43f751b8b79c4
Fix linting errors in install.js command
src/commands/install.js
src/commands/install.js
var fs = require('fs'); var ff = require('ff'); var path = require('path'); var apps = require('../apps'); var install = require('../install'); var BaseCommand = require('../util/BaseCommand').BaseCommand; var InstallCommand = Class(BaseCommand, function (supr) { this.name = 'install'; this.description = 'ins...
JavaScript
0.000001
@@ -351,17 +351,25 @@ ndencies - +' +%0A ' for an a @@ -671,16 +671,25 @@ escribe( +%0A 'skip-fe @@ -697,15 +697,20 @@ ch', - %22if no +%0A 'if ver @@ -717,16 +717,20 @@ sion is +not specifie @@ -736,27 +736,20 @@ ed, -don't query servers +server query for @@ -771,14 +771,23 @@ sion -...
0abe01c2a5fd9f3f82d38a89a7999258e36b610a
Make events passive (#9)
lib.js
lib.js
var rippleTypeAttr = 'data-event'; /** * @param {!Event|!Touch} event * @return {Node} */ function getHolderWithRippleJsClass(event) { var holder = /** @type {!Node} */ (event.target); var childNodesLength = holder.childNodes.length; if (holder.localName !== 'button' || !childNodesLength) { return holde...
JavaScript
0.000113
@@ -3008,24 +3008,41 @@ v);%0A %7D%0A +%7D, %7Bpassive: true %7D);%0A target @@ -3203,14 +3203,31 @@ %7D%0A +%7D, %7Bpassive: true %7D);%0A%7D%0A
b4094ffba161713deb1dd0977a778262741ac20c
Fix log bug
log.js
log.js
/** * log.js is a "Poor man's" logging module. It provides basic colorized logging using named * loggers with selectable log levels. */ var process = require('process'); try { var colors = require('colors'); } catch(e) {var colors = false;} var _suppress = false; var log_buffer = []; var LOG_BUFFER_SIZE = 500; /...
JavaScript
0.000001
@@ -3003,16 +3003,17 @@ sg.stack +) ;%0A%09%7D%0A%7D;%0A
82526025bcb7ea636feb6238ecf3a798c1c14e42
Handle different id names. This will be unified. Right now it is a work around.
website/app/application/core/projects/project/files/file-edit-controller.js
website/app/application/core/projects/project/files/file-edit-controller.js
Application.Controllers.controller("FilesEditController", ["$scope", "$stateParams", "projectFiles", "User", "mcfile", "pubsub", "tags", "mcapi", "$modal", "toastr", "$state", FilesEditController]); function FilesEditController($scope, $stateParams, projectFiles, User, mcfile, pubsub, tags, mcapi, $modal, t...
JavaScript
0
@@ -1049,32 +1049,66 @@ if (file) %7B%0A + var id = getID(file);%0A retu @@ -1121,24 +1121,16 @@ ile.src( -file.df_ id);%0A @@ -3582,16 +3582,473 @@ init();%0A +%0A%0A //////////////////////%0A%0A // TODO: Clean this up so we don't have to search for different id keys%0A // r...
2b222f5e49ef5050edbb404edccc4de375b6b6f6
Remove reduntant
jet/static/jet/js/src/features/related-popups.js
jet/static/jet/js/src/features/related-popups.js
var $ = require('jquery'); var WindowStorage = require('../utils/windowStorage'); var RelatedPopups = function() { this.windowStorage = new WindowStorage('relatedWindows'); }; RelatedPopups.prototype = { updateLinks: function($select) { $select.find('~ .change-related, ~ .delete-related, ~ .add-anothe...
JavaScript
0.000027
@@ -2628,35 +2628,8 @@ dy') -.addClass('non-scrollable') ;%0A
0a3b212eee77ab9bb906e5fbcf36fbab1dc8e568
Disable a test that is no longer needed
plugins/candela/plugin_tests/candelaSpec.js
plugins/candela/plugin_tests/candelaSpec.js
girderTest.importPlugin('candela'); girderTest.startApp(); describe('Test the candela UI.', function () { it('register a user', girderTest.createUser( 'johndoe', 'john.doe@email.com', 'John', 'Doe', 'password!' )); it('uploads the data file', function () { runs(function () { ex...
JavaScript
0.000014
@@ -3887,32 +3887,376 @@ );%0A %7D);%0A%0A +// This test is skipped because this failure mode no longer exists with the%0A // updated Candela plugin backing technologies. Specifically, d3-dsv is used%0A // for parsing, and that module happily accepts any stream of bytes and will%0A // simply parse what...
43ad05b19b6cb63894d647265effaed58b0ba8ec
add student (hide/show) form
js/jsrapport/coursestudentsrapportenViewModel.js
js/jsrapport/coursestudentsrapportenViewModel.js
function pageViewModel(gvm) { gvm.projecttitle = ko.observable(""); gvm.userId = -1; gvm.coupledCount = 0; // Page specific i18n bindings gvm.title = ko.computed(function (){i18n.setLocale(gvm.lang()); return gvm.app() + ' - ' + i18n.__("ProjectTitle") + ": " + gvm.projecttitle();}, gvm); gvm.p...
JavaScript
0
@@ -3841,402 +3841,8 @@ );%0A%0A - //Add StudentList%0A%0A $('#addStudentListForm').hide();%0A%0A $('#addStudentListBtn').click(function()%7B%0A $(%22#addStudentListForm%22).show();%0A console.log(getAllTeachers());%0A $('#teachersComplete').autocomplete(%7B source: getAllTeachers() %7D);...
e7f63bb210d8c1540ff06248a687031e1a820521
Add tsd task
Gulpfile.js
Gulpfile.js
var gulp = require('gulp') var browserify = require('browserify') var del = require('del') var documentation = require('gulp-documentation') var fs = require('fs') var KarmaServer = require('karma').Server var source = require('vinyl-source-stream') var serve = require('gulp-serve') var standard = require('gulp-standa...
JavaScript
0.999602
@@ -2350,32 +2350,41 @@ .task('ts-lint', + %5B'tsd'%5D, function (cb) %7B
da63de8ac398d10e5fc42c2fed992fb74849e350
Remove default article url for embed title
rss/translator/embed.js
rss/translator/embed.js
const Discord = require('discord.js') const isStr = str => str && typeof str === 'string' // objectEmbed.message => embed.description module.exports = (embeds, article) => { const richEmbeds = [] for (var e = 0; e < embeds.length; ++e) { const richEmbed = new Discord.RichEmbed() const objectEmbed = embeds...
JavaScript
0
@@ -317,16 +317,17 @@ beds%5Be%5D%0A +%0A if ( @@ -486,24 +486,25 @@ : t)%0A %7D%0A +%0A if (isSt @@ -701,48 +701,9 @@ l))%0A - else richEmbed.setURL(article.link) %0A + @@ -864,16 +864,16 @@ r, 10))%0A - else @@ -1012,16 +1012,17 @@ .color)%0A +%0A if (
fb53564b63893b6748dc480bb8089ea7d69d182e
queue number 10 to 5
run_feedFetchTrimmer.js
run_feedFetchTrimmer.js
#! /usr/bin/env node var fs = require('fs'); var async = require('async'); // asyncjs for async stuff var feedFetchTrimmer = require('./feedFetchTrimmer.js'); // process.setMaxListeners(0); fs.readFile('./feeds.json', 'utf8', function(err, data) { 'use strict'; var q = async.queue(feedFetchTrimmer, 10); var Fee...
JavaScript
0.99907
@@ -303,10 +303,9 @@ er, -10 +5 );%0A
b78c1252e5edc0fc2455c2ae4f02bc3b81171fc4
make async tests fail faster
test-main.js
test-main.js
// Use "register" extension from systemjs. // That's what Traceur outputs: `System.register()`. register(System); // Cancel Karma's synchronous start, // we will call `__karma__.start()` later, once all the specs are loaded. __karma__.loaded = function() {}; System.baseURL = '/base/modules/'; // So that we can imp...
JavaScript
0.000052
@@ -108,16 +108,55 @@ stem);%0A%0A +jasmine.DEFAULT_TIMEOUT_INTERVAL = 50;%0A %0A// Canc
627f4172cc0d1b650e7bdb0ecb53dd80fad49b4c
compress protocol check
moi.js
moi.js
/** * * @author Daniel McDonald * @copyright Copyright 2014, biocore * @credits Daniel McDonald, Joshua Shorenstein, Jose Navas * @license BSD * @version 0.1.0-dev * @maintainer Daniel McDonald * @email mcdonadt@colorado.edu * @status Development * */ /** * * @name moi * * @class manages WebSocket for j...
JavaScript
0.000001
@@ -2523,28 +2523,8 @@ t = -'ws://';%0A if( wind @@ -2559,32 +2559,30 @@ ps:%22 -) %7B socket = + ? 'wss://' : 'ws -s ://'; - %7D %0A