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
b85aa559d64ca3c4dd64c32203440a33e19c418e
fix theme color
nuxt.config.js
nuxt.config.js
module.exports = { srcDir: 'app/', css: [ 'assets/main.scss' ], modules: [ '@millergeek/vuetify', '@nuxtjs/pwa' ], vuetify: { theme: { primary: '#691b99', secondary: '#e1e2e1', accent: '#00b0ff' }, css: true, materialIcons: false }, render: { http2: { ...
JavaScript
0.000001
@@ -662,21 +662,19 @@ %7B -' theme -- +_ color -' : '#
a27f16250a7b161b1bc32c479d49c91f15fdb2ce
Add post at /api/maps
server/routes/routes.js
server/routes/routes.js
var Map = require('../models/map'); module.exports = function (app) { app.route('/api/maps') .get(function(req, res){ Map.find(function (error, doc) { res.send(doc); }); }); }
JavaScript
0
@@ -1,8 +1,23 @@ +'use strict';%0A%0A var Map @@ -205,16 +205,209 @@ %7D);%0A + %7D)%0A .post(function(req, res)%7B%0A let map = req.body;%0A let locationMap = new Map(map);%0A locationMap.save(function (error, data) %7B%0A res.status(300).send();%0A %7D);%0A %7D);%0A
b87f8e47b3b0878f6745a8957d735ddc95bc4794
Update config.js
pelican/config.js
pelican/config.js
/** * Created by lewiskit on 15/6/28. * store static configuration */ var config = { //server name server: "pelican", //API version apiVersion: "0.1", //mongodb 数据库配置 db: "mongodb://pelican:Pelican1221@123.57.211.52:27017/pelican", //db: "mongodb://localhost:27017/test", //logFil...
JavaScript
0.000002
@@ -416,16 +416,149 @@ rr.log%22%0A + //%22out%22: %22/Users/VincentBel/Project/Node/pelican/out.log%22,%0A //%22err%22: %22/Users/VincentBel/Project/Node/pelican/err.log%22%0A %7D%0A%7D; @@ -583,8 +583,9 @@ config; +%0A
ca1220a50ddba83d17377443a51f0b76f955dfc7
Handle 'error' event and fix command line args
read_socket.js
read_socket.js
/* * Read and decode CCTV PTZ commands from a TCP Socket * Copyright 2017 Roger Hardiman * * use -p to set the port to listen on */ // External Dependencies var fs = require('fs'); var net = require('net'); var dateTime = require('node-datetime'); var PelcoD_Decoder = require('./pelcod_decoder').PelcoD_Decoder; t...
JavaScript
0
@@ -698,55 +698,8 @@ ');%0A -args.option('-l, --list','List serial ports');%0A args @@ -790,50 +790,35 @@ t %3Cn -ame%3E','Serial Port eg COM1 or /dev/ttyUSB0 +umber%3E','TCP Port to listen ');%0A @@ -2838,16 +2838,17 @@ ;%0A %7D);%0A +%0A // Cal @@ -2918,34 +2918,29 @@ og('Network -Connection +close from ...
4cd8ee0bf2c8f00399a8e8ef85ecf3a1301a2d69
fix test rendering only 1 page
experiments/documentpreview/scripts/viewer.js
experiments/documentpreview/scripts/viewer.js
/*global PDFJS:false*/ /*eslint-env browser*/ /*eslint-env es6*/ var CSS_UNITS = 96.0 / 72.0; //this is apparently a thing. var xform = 'transform'; ['','webkit', 'Moz', 'O', 'ms'].every(function (prefix) { var e = prefix + (prefix ? 'T':'t') + 'ransform'; if (typeof document.body.style[e] !== 'undefined') { ...
JavaScript
0
@@ -4013,17 +4013,16 @@ ePage(2) -; %0A @@ -4026,16 +4026,48 @@ -%7D); %0A + .then(function () %7B%0A @@ -4116,16 +4116,28 @@ + + document @@ -4164,27 +4164,75 @@ v);%0A -%7D); + %7D);%0A %7D);%0A %7D); %0A ...
2574070034bb09c6d94f2af92d531d0f310cacf7
Update LMmobile.user.js
LMmobile/LMmobile.user.js
LMmobile/LMmobile.user.js
// ==UserScript== // @name Join Agario PC party from mobil // @namespace https://legendmod.ml // @version 0.3 // @description Join PC party from mobile or tablet! // @author Jimboy3100 // @match http://agar.io/* // @run-at document-end // @grant none // ==/UserScript== var tamp=setInterval(function(){ if(d...
JavaScript
0.000001
@@ -52,16 +52,27 @@ om mobil +e or Tablet %0A // @na
c5a35320d9cc34f3f4c047d83e15483c7f3e63c8
fix for bug causing j2k viewer not to be displayed when it should be
duradmin/src/main/webapp/javascript/duraservice-api.js
duradmin/src/main/webapp/javascript/duraservice-api.js
/** * Duraserivce AJAX API * @author Daniel Bernstein */ var dc; $(document).ready(function(){ $.require("jquery.dc.commons.js"); (function(){ if(dc == undefined){ dc ={}; } dc.service = {}; var APP_CONTEXT = "/duradmin"; var SERVICES_URL_BASE = APP_CONTEXT+"/services?f=json&method="; va...
JavaScript
0.000001
@@ -1641,18 +1641,49 @@ ion( -services)%7B +data)%7B%0A%09%09%09%09%09var services = data.services; %0A%09%09%09
9166bb8760cb8abb27d75401e744ec575010385d
Update comment
extension/content/firebug/dom/domPanelTree.js
extension/content/firebug/dom/domPanelTree.js
/* See license.txt for terms of usage */ define([ "firebug/firebug", "firebug/lib/trace", "firebug/lib/object", "firebug/lib/domplate", "firebug/lib/events", "firebug/lib/dom", "firebug/lib/css", "firebug/lib/locale", "firebug/lib/events", "firebug/lib/options", "firebug/dom...
JavaScript
0
@@ -3985,16 +3985,491 @@ method)%0A + //%0A // The right solution seems to be passing the %7Cmember%7C structure into TAG template%0A // (i.e. return it from this method), and cause the A.repObject (created by%0A // OBJECTLINK) to reference it instead of referencing the member.value directl...
4b58a6839f0bf698cebc049e5d1e205582acd84e
add test
configs/develop.js
configs/develop.js
module.exports={ url:{ inside: { api: "http://121.41.92.56:8080/", upload: "http://121.41.92.56:8001/", domain: "http://121.41.92.56/" }, outside: { api: "http://121.41.92.56:8080/", upload: "http://121.41.92.56:8001/", ...
JavaScript
0.000002
@@ -71,33 +71,33 @@ 121.41.92.56:808 -0 +1 /%22,%0A @@ -247,17 +247,17 @@ 2.56:808 -0 +1 /%22,%0A
4145ba5fe84301d845f16e7146c674ffd6a0426e
support code coverage for qunit.
adapter/qunit.src.js
adapter/qunit.src.js
var createQUnitStartFn = function (tc) { return function (runner) { (function (tc, runner) { var totalNumberOfTest = 0; var timer = null; var testResult = {}; runner.done(function () { tc.info({ total: totalNumberOfTest }); tc.complete(); }); runner.testStart(function (test) { tota...
JavaScript
0
@@ -256,16 +256,66 @@ omplete( +%7B%0A coverage: window.__coverage__%0A %7D );%0A%09%09%09%7D)
3c6445f042ce8526cc57bf2a6ae2e141a50fbc50
add tickformatter for temp
media/turan/graphplotter.js
media/turan/graphplotter.js
/** * Class for handeling graph plotting of pulse data. * Still needs loads of work and is only a cut/paste from template for now */ var plot; var GraphPlotter = { choiceContainer: null, datasets: null, backendUrl: null, max_hr: 200, formatters: { speed: function(val, axis) { ...
JavaScript
0
@@ -2869,16 +2869,102 @@ itude'%5D%7D +,%0A %7B tickFormatter: this.formatters%5B'temp'%5D%7D,%0A %7D %0A
94ceb59538dc952e9f3f33103114fa44e78a47d1
allow options in get, put, del
level-encode.js
level-encode.js
var extend = require('xtend') , LevelEncoding = function (db, valueEncoding, keyEncoding) { if (!(this instanceof LevelEncoding)) return new LevelEncoding(db, valueEncoding, keyEncoding) this.db = db this.opts = { valueEncoding: valueEncoding || 'utf8' , keyEncoding: keyEn...
JavaScript
0
@@ -396,16 +396,22 @@ , value, + opts, callbac @@ -407,32 +407,122 @@ ts, callback) %7B%0A + if (!callback) %7B%0A callback = opts%0A opts = %7B%7D%0A %7D%0A opts = extend(opts, this.opts)%0A this.db.put(ke @@ -531,21 +531,16 @@ value, -this. opts, ca @@ -586,32 +586,38 @@ = function (key, + opts, ...
dc30103a7ea60c61ef22425b183537b82f9ddd60
fix function name
examples/FormPage/controller/formExample.controller.js
examples/FormPage/controller/formExample.controller.js
sap.ui.define([ "oui5lib/controller/FormController" ], function(Controller) { "use strict"; var exampleFormController = Controller.extend("oum.controller.formExample", { onInit: function () { var exampleData = { first_name: "", last_name: "", ...
JavaScript
0.999926
@@ -1931,26 +1931,27 @@ .get -PropertyDefinition +EntityAttributeSpec s(%22e
c1bff2f1c0d2570ee3e293105b9b06e00588c586
add jsdoc for `create` and `update` methods
lib/Campaign.js
lib/Campaign.js
const Ajv = require("ajv"); const Request = require("./utils/Request"); const parameters = require("../config/parameters/campaign"); const ajv = new Ajv({allErrors: true}); const validate = ajv.compile(parameters); class Campaign { /** * * @param {Config} cfg */ constructor (cfg) { this...
JavaScript
0.000001
@@ -349,32 +349,195 @@ %0A %7D%0A%0A /**%0A + * Create a new campaign using the given payload%0A * @see %7B@link https://batch.com/doc/api/campaigns/parameters.html%7D to get the possible parameters%0A *%0A * @param %7BO @@ -1300,32 +1300,188 @@ %0A %7D%0A%0A /**%0A + * the possible ...
51df579c627bd06c37c83d212cca54ae3b9f8b37
fix css module for wallaby + refactor to reuse code closes #349
config/wallaby-mocha.js
config/wallaby-mocha.js
module.exports = function (wallaby) { process.env.NODE_PATH += `:${require('path').join(wallaby.localProjectDir, 'node_modules')}`; return { files: [ {pattern: 'test/**/*.spec.js*', ignore: true}, {pattern: 'test/**/*.js'}, {pattern: 'src/**', instrument: true}, {pattern: 'src/**/*.spec....
JavaScript
0
@@ -765,17 +765,16 @@ laby) %7B%0A -%0A co @@ -836,17 +836,16 @@ 30000);%0A -%0A re @@ -853,311 +853,77 @@ uire -.extensions%5B'.scss'%5D = function () %7B%7D;%0A require.extensions%5B'.css'%5D = function () %7B%7D;%0A%0A const jsdom = require('jsdom');%0A global.document = jsdom.jsdom('...
6b6e21445047bae2bc075fc02b28429854f843bb
add ability to hide the save flag
inlinerequireeditor.js
inlinerequireeditor.js
// Copyright (c) 2014 M-Way Solutions GmbH // https://github.com/mwaylabs/brackets-quick-require/blob/master/LICENCE define(function(require, exports, module) { 'use strict'; // Load modules var InlineWidget = brackets.getModule("editor/InlineWidget").InlineWidget; var RequireEditor = require("require...
JavaScript
0
@@ -702,18 +702,40 @@ veFlag) -%7C%7C +? options.hideSaveFlag : false;%0A
c07fa7b2e7381399fe57bdeafbaaeb072d18e5a7
Fix bug in addDeletedChunks
src/transform/replace.js
src/transform/replace.js
import {Pos, Node, style, inline, slice} from "../model" import {defineTransform, Result} from "./transform" function nodesLeft(doc, depth) { let nodes = [] for (let node = doc, i = 0;; i++) { nodes.push(node) if (i == depth) return nodes node = node.content[0] } } function nodesRight(doc, depth) { ...
JavaScript
0
@@ -3939,32 +3939,51 @@ ter(result, node +.content%5Bstart - 1%5D , from, ref, dep @@ -4207,16 +4207,29 @@ lt, node +.content%5Bend%5D , to, re
0a20cb58794cd4312dd186830bc838239799e04c
fix home page timeout if no contests fetched
service/routers/home.js
service/routers/home.js
let express = require('express'), crypto = require('crypto'), auth = require('../utils/auth'), utils = require('../utils'), logger = utils.winston.appLogger, router = express.Router(), UserRepository = require('../repositorie...
JavaScript
0.000002
@@ -797,32 +797,39 @@ +return res.render('inde
72004c2d753006ea7bc96bcdee4a41a9899263f9
Update daily.js
commands/Economy/daily.js
commands/Economy/daily.js
exports.run = async (client, message, [member]) => { const sql = require("sqlite"); sql.open("./bwd/data/score.sqlite"); var user = client.funcs.userSearch(client, message, member); if (user.username === null || user.username === undefined) { return; } if (user.bot === true) { return message.r...
JavaScript
0.000001
@@ -747,33 +747,28 @@ mmon, rare, -ultraRare +epic , trash) VAL @@ -904,17 +904,12 @@ re, -ultraRare +epic , tr
f72ceddad375b898e9d01ff1ba2e34a3cc14fe2b
Fix logging
lib/node_modules/@stdlib/plot/ctor/lib/props/y-rug-opacity/set.js
lib/node_modules/@stdlib/plot/ctor/lib/props/y-rug-opacity/set.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
JavaScript
0.000007
@@ -1679,28 +1679,44 @@ ent value: %25 -d +s .', + JSON.stringify( this._yRugO @@ -1713,32 +1713,34 @@ his._yRugOpacity + ) );%0A%0A%09this._yRug @@ -1777,12 +1777,28 @@ e: %25 -d +s .', + JSON.stringify( thi @@ -1811,16 +1811,18 @@ gOpacity + ) );%0A%0A%09th
12955292834b26ca730b3be525ba13170cdff14b
Set callbacks once when constructing the view.
anaquote/anaquote.js
anaquote/anaquote.js
class Anaquote { set trigrams (trigrams) { this._trigrams = trigrams this.selections = trigrams.map(t => '___') } options(i) { let otherSelections = new Set(this.selections) otherSelections.delete(this.selection(i)) return ['___', ...this._trigrams.filter(t => !otherSelections.has(t))] } s...
JavaScript
0
@@ -856,16 +856,89 @@ 'mono')%0A + this.$el.change(() =%3E %7B this.model.select(this.i, this.$el.val()) %7D)%0A %7D%0A re @@ -1094,81 +1094,8 @@ i))%0A - this.$el.change(() =%3E %7B this.model.select(this.i, this.$el.val()) %7D)%0A @@ -1208,16 +1208,69 @@ quote()%0A + this.$el.change(() =%3E %7B ...
a1bb395ae56c99f682bd187e8310574feb37c908
Use random strings
lib/node_modules/@stdlib/string/capitalize/benchmark/benchmark.js
lib/node_modules/@stdlib/string/capitalize/benchmark/benchmark.js
'use strict'; // MODULES // var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/utils/is-string' ).isPrimitive; var pkg = require( './../package.json' ).name; var capitalize = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { var str; var out; var i; str = 'beep boop...
JavaScript
0.993055
@@ -300,29 +300,8 @@ i;%0A%0A -%09str = 'beep boop';%0A%0A %09b.t @@ -346,16 +346,67 @@ i++ ) %7B%0A +%09%09str = String.fromCharCode( i%25126 ) + 'eep boop';%0A %09%09out =
ba4812ef45396689fc6ccc98c116931a8b48f9aa
fix chapter picker layout
src/ui/choose-chapter.js
src/ui/choose-chapter.js
import React from 'react'; import {Link} from 'react-router-dom'; import {chapterCounts} from '../data'; export default ({match: {params: {book}}, addRecent}) => <div className="fit" style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', textAlign: 'c...
JavaScript
0
@@ -98,16 +98,50 @@ ./data'; +%0Aimport %7BNAV_HEIGHT%7D from './nav'; %0A%0Aexport @@ -197,22 +197,16 @@ %3E%0A %3Cdiv -%0A classNa @@ -213,17 +213,59 @@ me=%22fit%22 -%0A + style=%7B%7BoverflowY: 'scroll'%7D%7D%3E%0A %3Cdiv%0A st @@ -263,32 +263,34 @@ style=%7B%7B%0A + displ...
bc1fab08d660f9201f9788247274267fcc237212
Add throws annotation
lib/node_modules/@stdlib/utils/function-name/lib/function_name.js
lib/node_modules/@stdlib/utils/function-name/lib/function_name.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
JavaScript
0.000001
@@ -1005,16 +1005,62 @@ unction%0A +* @throws %7BTypeError%7D must provide a function%0A * @retur
dcf39735169df6b4694c4686659f23a766614dc6
Add track art to TuneIn connector
connectors/v2/tunein.js
connectors/v2/tunein.js
'use strict'; /* global Connector */ Connector.playerSelector = '.container'; Connector.artistTrackSelector = '.line1._navigateNowPlaying'; Connector.isPlaying = function () { return $('#tuner').hasClass('playing'); };
JavaScript
0
@@ -133,24 +133,74 @@ wPlaying';%0A%0A +Connector.trackArtImageSelector = '.album.logo';%0A%0A Connector.is
1b2eb7476bdbcf145b23ebbf00f8e47d2b91a5ab
check arguments in constructor instead of switcher().
lib/Switcher.js
lib/Switcher.js
import { isArray, isFunction, isObject, isUndefined, iterate, supportSymbol } from './helpers'; export class Switcher { constructor(cases, mode, def) { function switcher(value) { const { mode, default: def, cases } = switcher.$; const ret = iterate(cases, ({ value: val, case: Case }) => { if...
JavaScript
0
@@ -144,24 +144,309 @@ ode, def) %7B%0A + if (arguments.length && !isObject(cases)) %7B%0A if (arguments.length !== 1) %7B%0A def = mode;%0A %7D%0A%0A mode = cases;%0A cases = %7B%7D;%0A %7D%0A%0A const eventualCases = %5B%5D;%0A%0A iterate(cases, (value, Case) =%3E %7B%0A e...
111887fb2962c2b4a59e069f1dc8f0b00f80a863
Fix coordinates.parse empty string handling
src/utils/coordinates.js
src/utils/coordinates.js
/* global THREE */ var debug = require('./debug'); var extend = require('object-assign'); var warn = debug('utils:coordinates:warn'); // Order of coordinates parsed by coordinates.parse. var COORDINATE_KEYS = ['x', 'y', 'z', 'w']; // Coordinate string regex. Handles negative, positive, and decimals. var regex = /^\s...
JavaScript
0.006296
@@ -1556,30 +1556,16 @@ inate%5Bi%5D - !== undefined ) %7B%0A
a3564253bed9cb042ef8933566b3e11b239a1de2
fix children being a mutable object so oldchildren get mutaded
src/utils/streamy-dom.js
src/utils/streamy-dom.js
import {isStream} from './streamy'; const TEXT_NODE = '#text'; export function render(component, parentElement) { component.vdom$.reduce(({element:oldElement, version:oldVersion, children:oldChildren}, {tag, props, children, version}) => { if (oldElement === null) { oldElement = createNode(tag, children); pa...
JavaScript
0.000157
@@ -488,16 +488,54 @@ children +: JSON.parse(JSON.stringify(children)) %0A%09%09%7D%0A%09%7D,
35d739fa284338fd544760cf035ac202138bc513
Update typeahead when model set to null/undefined
angular-typeahead.js
angular-typeahead.js
angular.module('siyfion.sfTypeahead', []) .directive('sfTypeahead', function () { return { restrict: 'AC', // Only apply on an attribute or class require: '?ngModel', // The two-way data bound value that is returned by the directive scope: { options: '=', // The typeahead co...
JavaScript
0
@@ -3276,16 +3276,160 @@ loading%0A + %7D else if (fromModel == null) %7B%0A //fromModel has been set to null or undefined%0A element.typeahead('val', null);%0A
dd51aab1d13314db9f572acf2456bb49fa6d3e2d
remove duplicate prop from button component
packages/components/bolt-button/src/button.standalone.js
packages/components/bolt-button/src/button.standalone.js
import { props, define, declarativeClickHandler, sanitizeBoltClasses, hasNativeShadowDomSupport, afterNextRender, } from '@bolt/core/utils'; import classNames from 'classnames/bind'; import { wire, render, withHyperHtml, } from '@bolt/core/renderers/renderer-hyperhtml'; import visuallyhiddenUtils ...
JavaScript
0.000009
@@ -691,32 +691,8 @@ an,%0A - size: props.string,%0A @@ -762,25 +762,24 @@ ops.string,%0A -%0A disabled @@ -795,17 +795,16 @@ oolean,%0A -%0A targ
f0bceb4b0e8bf58cee124afdab649ff014bad50f
make errors nice for logs
lib/core/api.js
lib/core/api.js
/** * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program is distributed in the...
JavaScript
0
@@ -651,16 +651,43 @@ g.%0A */%0A%0A +var _ = require('lodash');%0A var bows @@ -3117,32 +3117,46 @@ tric(eventName, +stringifyData( properties);%0A%7D;%0A @@ -3146,24 +3146,25 @@ (properties) +) ;%0A%7D;%0A%0A// --- @@ -3194,24 +3194,294 @@ rors = %7B%7D;%0A%0A +//utility function that so our logs look good%0A...
790d6f3dc3c25c6a05ce6623f8d954660371e933
return after unknown jasmine function
jasmine-async-sugar.js
jasmine-async-sugar.js
(function(global, undefined) { var MODULE_NAME = 'jasmine-async-sugar'; var JASMINE_FUNCTIONS = ['it', 'fit', 'xit', 'beforeEach', 'afterEach', 'beforeAll', 'afterAll']; var ASYNC_SUFIX = 'Async'; JASMINE_FUNCTIONS.forEach(function(jasmineFunctionName) { if (!global[jasmineFunctionName]) { ...
JavaScript
0.002273
@@ -427,16 +427,36 @@ ment');%0A + return;%0A
721a150d0c36d03d248d744e095fe044d4f7cd5f
Update cruncher.js
lib/cruncher.js
lib/cruncher.js
var _ = require('lodash') var fs = require('fs') var tonal = require('tonal') var wav = require('node-wav') var Pitchfinder = require('pitchfinder') LSDJ = { constants: { SAMPLES_PER_FRAMES: 32, FRAMES_PER_TABLE: 16, FRAME_RESOLUTION: 16 } } module.exports = function(wave, note, options) { // defaul...
JavaScript
0
@@ -2096,25 +2096,8 @@ %5B%5D%0A - var sample = 0%0A %0A @@ -2156,18 +2156,49 @@ ycles %3C -32 +LSDJ.constants.SAMPLES_PER_FRAMES ) %7B%0A @@ -2470,18 +2470,47 @@ cycle %3C -16 +LSDJ.constants.FRAMES_PER_TABLE ; cycle+ @@ -2627,34 +2627,65 @@ 0; nextSample %3C -32 +LSDJ.constants.SAMPLES_PER_FRAMES ...
6fb7270885021b779c7c393839f6aaf011448281
Add CubeHash references
lib/cubehash.js
lib/cubehash.js
#ifndef __CUBEHASH__ #define __CUBEHASH__ #include "lib/common.js" #define CubeHash_RotL(a,b) (((a) << (b)) | ((a) >>> (32-b))) rndphrase.CubeHash = { // For info on CubeHash see: http://cubehash.cr.yp.to/ // Init vector was computed by 10r rounds as described in the specification INIT : [-2096419883, 658...
JavaScript
0
@@ -2436,24 +2436,109 @@ nction () %7B%0A + // http://cubehash.cr.yp.to%0A // http://en.wikipedia.org/wiki/CubeHash%0A var
73ce5132ae3bb1149a4a0e5ee7e2986143c1fe9e
Add comments to js
javascript/specdown.js
javascript/specdown.js
/* specdown : github.com/getspecter/specdown */ /* The MIT License (MIT) Copyright (c) 2014 Benjamin Vacha Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without ...
JavaScript
0
@@ -2552,24 +2552,83 @@ (markdown);%0A + markdown = specdown.markup.comments(markdown);%0A @@ -2954,16 +2954,412 @@ %7D);%0A + %7D,%0A %0A // pair of three or more slashes %3E%3E nothing%0A // pair of three or more slashes with bang %3E%3E %3C!-- --%3E%0A ...
180291c7b05734da80ddf3eefffd97ab4abb84fc
Add login function
lib/database.js
lib/database.js
// Third module dependences var mysql = require("mysql"); var server = getServer(); var mysql_client = mysql.createClient({ host: server.getDatabaseServer(), user: server.getDatabaseUser(), password: server.getDatabasePassword(), database: server.getDatabaseName() }); exports.initDatabaseConnection = function(){ ...
JavaScript
0.000002
@@ -587,8 +587,59 @@ %0A%09%7D);%0A%7D%0A +%0Aexports.login = function(playerName, passWord)%7B%0A%7D%0A
a83a1b92989e16df718300deb9dcd164b32b256a
update admin bar hover to wait for response
tests/e2e/specs/modules/search-console/admin-bar.test.js
tests/e2e/specs/modules/search-console/admin-bar.test.js
/** * WordPress dependencies */ import { activatePlugin, createURL } from '@wordpress/e2e-test-utils'; /** * Internal dependencies */ import { setupAnalytics, setSiteVerification, setSearchConsoleProperty, useRequestInterception, wpApiFetch, } from '../../../utils'; import * as adminBarMockResponses from './f...
JavaScript
0
@@ -2685,24 +2685,42 @@ g.%0A%0A%09%09await +Promise.all( %5B%0A%09%09%09 page.hover( @@ -2756,333 +2756,98 @@ t' ) -;%0A%09%09// Data will be cached already so no request to wait for.%0A%09%09await expect( page ).toMatchElement( '#js-googlesitekit-adminbar .googlesitekit-data-block__title', %7B text: /total click...
2e9922103da44ebee635e8621dd81810ad6efe82
Fix a bug where cwd won't be transformed to remote
lib/delegate.js
lib/delegate.js
/* @flow */ import Path from 'path' import invariant from 'assert' import SSH from 'node-ssh' import { exec } from 'sb-exec' import shellEscape from 'shell-escape' import { CompositeDisposable, Disposable } from 'atom' import { getConfig } from './helpers' import type { Config } from './types' export default class D...
JavaScript
0
@@ -1989,24 +1989,48 @@ mmand, %7B cwd +: this.toRemotePath(cwd) , stdin %7D)%0A
47c556b68dfe9fdbaca175823849f8fddba703d1
Fix toggle/space crash when no items present.
controller/main.js
controller/main.js
var _ = require('lodash'); var Git = require('../model/git'), view = require('../view/main'); var editor = require('./editor'), log = require('./log'), diff = require('./diff'); // model control var git = new Git(__dirname); var main = { git : git, screen: view.screen, moveToStaged: funct...
JavaScript
0
@@ -2850,39 +2850,44 @@ on () %7B%0A var -content +selectedItem = this.getItem( @@ -2892,32 +2892,123 @@ m(this.selected) +;%0A if (selectedItem === undefined) %7B%0A return;%0A %7D%0A%0A var content = selectedItem .content;%0A th @@ -3083,32 +3083,143 @@ : function () %7B%0A + var selecte...
32fcbc6c1ea5c2d3a315294093cd25023ccf7274
decrease max width to improve readability
src/view/global-style.js
src/view/global-style.js
import config from '../../config'; export const gutters = { medium: 8, large: 16, }; export const colors = { ...config.colors, }; export const button = { padding: `${gutters.medium}px ${gutters.large}px`, border: 'none', backgroundColor: colors.action, color: colors.text, }; export const...
JavaScript
0.000001
@@ -333,10 +333,10 @@ h = -9 8 +6 0;%0A%0A
69eb06a4ebe6ca9c8bb1a64bb8d63d9062dc3f4d
Revert "add redirect if user isn't logged in when they visit curriculum page"
lib/eat_auth.js
lib/eat_auth.js
'use strict'; var eat = require('eat'); var User = require('../models/User'); var clc = require('cli-color'); module.exports = function(secret) { return function(req, res, next) { var token = req.cookies.token || req.headers.token || req.body.token; // console.log(clc.bgCyanBright('::::::: '), res); if (!to...
JavaScript
0
@@ -383,59 +383,8 @@ urn -res.status(401).redirect('/private');%0A%09%09%09// return res. @@ -426,16 +426,16 @@ zed'%7D);%0A + %09%09%7D%0A%09%09ea @@ -534,60 +534,8 @@ urn -res.status(401).redirect('/private');%0A%09%09%09%09// return res. @@ -743,61 +743,8 @@ urn -res.status(401).redirect('/private');%0A%...
30431b02e87c9068ea4e554dc7a23ec48d9b3818
Make compatible with CanJS 2.1.3+
lib/feathers.js
lib/feathers.js
'use strict'; (function (root, factory) { if (typeof define === 'function' && define.amd) { define(['can/util/library', 'can/model'], factory); } else if (typeof exports === 'object') { module.exports = factory(require('can/util/library'), require('can/model')); } else if(typeof window !== ...
JavaScript
0
@@ -721,16 +721,17 @@ rred(),%0A +%0A se @@ -903,16 +903,17 @@ ource);%0A +%0A @@ -2495,16 +2495,715 @@ %7D); +%0A%0A this.findAll = function (params) %7B%0A return this.send('find', params %7C%7C %7B%7D);%0A %7D,%0A%0A this.findOne = function (params) %7B%...
6a5ac1f9336a3899dd809d85f9ab298e2e35d1d1
update files
lib/fextract.js
lib/fextract.js
/*! * FilesExtractor * * Version: 0.0.1 * Date: 2017/09/19 * * This is licensed under the MIT License (MIT). */ 'use strict'; const ora = require('ora'); const glob = require('glob'); const path = require('path'); const fs = require('fs-extra') const chalk = require('chalk'); const yaml = require('js-yaml'); c...
JavaScript
0.000001
@@ -251,73 +251,8 @@ a')%0A -const chalk = require('chalk');%0Aconst yaml = require('js-yaml');%0A cons
64a96701c2d65abe2d907b162969a6f194e9460a
fix remove workspace
scripts/core/model/application.model.js
scripts/core/model/application.model.js
/** * Created with JetBrains RubyMine. * User: teamco * Date: 11/5/12 * Time: 9:17 PM * To change this template use File | Settings | File Templates. */ define([ 'modules/model', 'modules/base', 'config/workspace' ], function (BaseModel, Base, Workspace) { var Model = function Model() { }; ...
JavaScript
0.000002
@@ -779,32 +779,33 @@ ce(workspace) %7B%0A +%0A var @@ -826,105 +826,353 @@ cope -,%0A workspaces = scope.workspaces,%0A index = workspace.model.getUUID( +;%0A%0A if (!this.base.isDefined(workspace)) %7B%0A scope.logger.warn('Undefined workspace', ...
953149e8f8791bfa7858d245b836a7829b006c75
Use strict equality assertion for consistency
tools/markdown/tex-equation-to-svg/test/test.validate.js
tools/markdown/tex-equation-to-svg/test/test.validate.js
'use strict'; // MODULES // var tape = require( 'tape' ); var validate = require( './../lib/validate.js' ); // TESTS // tape( 'main export is a function', function test( t ) { t.equal( typeof validate, 'function', 'main export is a function' ); t.end(); }); tape( 'if provided an `options` argument which is not ...
JavaScript
0.000008
@@ -173,25 +173,31 @@ t( t ) %7B%0A%09t. -e +strictE qual( typeof @@ -450,32 +450,41 @@ %0A%09%09NaN,%0A%09%09true,%0A +%09%09false,%0A %09%09void 0,%0A%09%09null @@ -901,32 +901,41 @@ %0A%09%09NaN,%0A%09%09true,%0A +%09%09false,%0A %09%09void 0,%0A%09%09null @@ -1381,16 +1381,25 @@ %09%09true,%0A +%09%09false,%...
f35bdc42da3e7e18d9cd007c3df5da83d7cc83b4
Update directory index
lib/fs/index.js
lib/fs/index.js
'use strict'; module.exports = { copy: require('./copy'), copySync: require('./copy-sync'), dirExists: require('./dir-exists'), fileExists: require('./file-exists'), filesAtPath: require('./files-at-path'), isIgnored: require('./is-ignored'), readdirDirec...
JavaScript
0.000001
@@ -254,16 +254,112 @@ path'),%0A +%09findRoot: require('./find-root'),%0A%09isGitrepoRoot: require('./is-gitrepo-root'),%0A %09isIgnor
2e2e80564b4db25d92aaa73fbbf4d6e5b4a88913
Update improve popup refresh
lib/js/popup.js
lib/js/popup.js
(function($, can, chrome, window){ "use strict"; var backgroundPage = chrome.extension.getBackgroundPage(), popup = { refreshTime:3000,// how often to check the background page for changes checkingCounter:0, changed: true, items:[], authorItems:[], snoozeItem: fu...
JavaScript
0.000001
@@ -5105,23 +5105,8 @@ // - not used, just che @@ -6372,32 +6372,129 @@ ;%0A %7D%0A + popup.checking = window.setTimeout(function()%7Bpopup.monitor();%7D, popup.refreshTime);%0A %7D);%0A
002b14692b197323ef5a34e467ddb0aa977d36c2
test commit
src/windows/egeeProxy.js
src/windows/egeeProxy.js
/** * @author e-GEE SA */ // function Egee () { // this._promise = null; // this._cancelled = false; // } // var egeeProxy = { // helloworld: function (success, error, message) { // alert('test windows'); // //Créer une instance de la classe CS // var classe = new Egee.Egee();...
JavaScript
0.000001
@@ -16,17 +16,16 @@ e-GEE SA - %0A */%0A%0A// @@ -410,16 +410,19 @@ %7D%0A// %7D; +%0A// %0A%0Acordov @@ -1669,9 +1669,8 @@ %7D%0A%7D); -
ee98cd9fbc55288524df33c07532c0c43d55ec7b
check for presence of RO in ref callback
src/with-content-rect.js
src/with-content-rect.js
import React, { Component, createElement } from 'react' import PropTypes from 'prop-types' import ResizeObserver from 'resize-observer-polyfill' import getTypes from './get-types' import getContentRect from './get-content-rect' function withContentRect(types) { return WrappedComponent => class extends Component ...
JavaScript
0
@@ -1353,16 +1353,54 @@ = node%0A%0A + if (this._resizeObserver) %7B%0A @@ -1407,24 +1407,26 @@ if (node) %7B%0A + th @@ -1454,24 +1454,26 @@ serve(node)%0A + %7D el @@ -1479,32 +1479,34 @@ lse %7B%0A + this._resizeObse @@ -1523,24 +1523,36 @@ nnect(node)%0A ...
a7bc664449cc1e15506bf0034b56f94953d134da
Move route with process id so it is before route with process id. Otherwise the route isn't found.
backend/server/resources/projects-routes.js
backend/server/resources/projects-routes.js
module.exports = function(model) { 'use strict'; let validateProjectAccess = require('./project-access')(model.access); let schema = require('.././schema')(model); let router = require('koa-router')(); let projects = require('./projects')(model.projects); let samples = require('./samples')(mode...
JavaScript
0
@@ -938,36 +938,24 @@ id/processes -/:process_id ', validateP @@ -977,24 +977,28 @@ rocesses.get +List );%0A route @@ -1027,32 +1027,44 @@ ect_id/processes +/:process_id ', validateProje @@ -1086,20 +1086,16 @@ sses.get -List );%0A%0A
aaaa5076ff82ebb079104af4987d3b4370c71f3a
Use switch instead of else-if
lib/log-tree.js
lib/log-tree.js
// Copyright (c) 2017 The Regents of the University of Michigan. // All Rights Reserved. Licensed according to the terms of the Revised // BSD License. See LICENSE.txt for details. let treeFactory, parseAllChildren, sumDenominators, childrenOf, logMessage; treeFactory = function(inputObject) { let tree, denominat...
JavaScript
0.000001
@@ -980,19 +980,22 @@ %7B%0A -if +switch (message @@ -1003,23 +1003,35 @@ code - === +) %7B%0A case %22done%22 -) %7B%0A +:%0A @@ -1054,16 +1054,18 @@ true;%0A%0A + @@ -1085,32 +1085,34 @@ ription === %22%22)%0A + return @@ -1128,37 +1128,41 @@ d ...%22;%0A ...
e4599e7e8cb0b25272a9550bdba008449ad05505
Allow Columns to accept a className prop (#595)
react/Columns/Columns.js
react/Columns/Columns.js
import styles from './Columns.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const renderColumn = (el, index) => ( <div key={index} className={styles.column}>{el}</div> ); export default function Columns({ children, tight, flexible, reverse }) { return ...
JavaScript
0
@@ -219,12 +219,20 @@ mn%7D%3E +%0A %7Bel%7D +%0A %3C/di @@ -271,16 +271,18 @@ olumns(%7B +%0A childre @@ -283,23 +283,27 @@ hildren, +%0A tight, +%0A flexibl @@ -304,24 +304,26 @@ lexible, +%0A reverse %7D) %7B%0A @@ -314,17 +314,30 @@ reverse - +,%0A className%0A %7D) %7B%0A r @@ -54...
ed60cffed17ba600e75b61c29d9a1d9b020b1e7d
Edit message
pages/about.js
pages/about.js
import Page from "../layouts/main" import Head from "next/head" import React, { Component } from 'react' import connectAuth from '../lib/connectAuth' import withData from '../lib/withData' import Colors from '../utils/Colors' class AboutPage extends Component { render() { return ( <Page> <Head> ...
JavaScript
0
@@ -1668,16 +1668,20 @@ beliefs, + and somethi @@ -1802,17 +1802,16 @@ er, we r -e arely sh @@ -1834,17 +1834,9 @@ hers - probably +, sim @@ -1866,16 +1866,21 @@ to +them bring up suc @@ -1879,20 +1879,8 @@ g up - such topics .%0A @@ -2121,19 +2121,20 @@ to +a ch -ang +iev e th -is +at .%0A
0251b034a7b63df9a871d32f0724a127b978d69c
fix margin on project links (https://github.com/bukinoshita/bu/issues/11)
pages/index.js
pages/index.js
'use strict' import { Component } from 'react' import 'isomorphic-fetch' import sortArr from 'sort-arr' import Link from 'next/link' import Page from './../layouts/page' import { colors, typography } from './../theme' class Home extends Component { static async getInitialProps() { const res = await fetch( ...
JavaScript
0
@@ -2771,32 +2771,65 @@ %7Bcolors.black%7D;%0A + margin-right: 0;%0A %7D%0A
aa6fe2eb0d3825a14698b5451d03cc7a19dfd721
Add margin to badges
pages/index.js
pages/index.js
import React from 'react' import Head from 'next/head' import Obfuscate from '../src/obfuscate' import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live' import { Browser, Terminal } from 'react-window-ui' class App extends React.Component { render() { return ( <div> <Head> ...
JavaScript
0
@@ -599,16 +599,23 @@ %7D%0A + %0A %60%7D%3C/ @@ -1088,32 +1088,327 @@ %3Cp%3E%0A + %3Ca style=%7B%7B borderBottom: 'none', marginRight: '5px' %7D%7D%0A target=%22_blank%22 href='https://coveralls.io/github/coston/react-obfuscate?branch=master'%3E%3Cimg src='htt...
a62b4a48c34e30155433b06add438645aa2ab695
Fix alert styling using "error" instead of "danger".
horizon/static/horizon/js/horizon.messages.js
horizon/static/horizon/js/horizon.messages.js
horizon.alert = function (type, message, extra_tags) { safe = false; // Check if the message is tagged as safe. if (typeof(extra_tags) !== "undefined" && $.inArray('safe', extra_tags.split(' ')) !== -1) { safe = true; } var template = horizon.templates.compiled_templates["#alert_message_template"], pa...
JavaScript
0.999907
@@ -229,132 +229,15 @@ %7D%0A +%0A var -template = horizon.templates.compiled_templates%5B%22#alert_message_template%22%5D,%0A params = %7B%0A %22type%22: type,%0A %22 type @@ -248,17 +248,13 @@ play -%22: + = %7B%0A - @@ -280,28 +280,24 @@ Danger: %22),%0A - 'warning @@ -325...
d92570ad7b413612e9f4647e00733ce188767346
fix broker ref
lib/pipeline.js
lib/pipeline.js
'use strict'; var EventBroker = require('broker'); var logger = require('@hoist/logger'); function Pipeline(Context, Model) { this.Context = Context || require('@hoist/context'); this.Model = Model || require('@hoist/model'); EventBroker.ModelResolver.set(this.Model); this.eventBroker = new EventBroker(); } P...
JavaScript
0
@@ -34,16 +34,23 @@ equire(' +@hoist/ broker')
8b6ed977212dd8bbbc230d8c5a2bda2c9f6a2ddb
Update poloniex.js
lib/poloniex.js
lib/poloniex.js
module.exports = (function() { 'use strict'; // Module dependencies var crypto = require('crypto'), request = require('request'), nonce = require('nonce')(); // Constants var version = '0.0.6', PUBLIC_API_URL = 'https://poloniex.com/public', PRIVATE_API_...
JavaScript
0.000001
@@ -6840,16 +6840,20 @@ +var args = %5B
f5416e2ab81566e03500a5cc2e559971cf0be5cb
Fix a bug in POParser#_detectCharset extracting the charset from .po headers. String#match on a substring needs to by incremented by the starting position or the entire header block is not captured. This causes unpredicable failure depending on how many lines the header block has and where within the header block the "...
lib/poparser.js
lib/poparser.js
var Iconv = require("iconv").Iconv; module.exports = POParser; /** * Creates a parser for parsing a PO file * * @constructor * @param {Buffer} fileContents PO file contents as a Buffer */ function POParser(fileContents){ this._fileContents = fileContents || new Buffer(0); this._charset = false; //...
JavaScript
0
@@ -1021,24 +1021,28 @@ if((pos = +pos+ str.substr(p
2c870a15cf79542457579ab990405ec45bcdfa9d
Set reconnection to false
lib/producer.js
lib/producer.js
/** * @namespace Producer */ var amqp = require('amqplib'), utils = require('./helpers/utils'), uuid = require('node-uuid'), parsers = require('./helpers/message-parsers'); var config; var connected = false; var connecting = false; var reqQueue = []; var productions = []; var amqpUrl, amqpConnection, amqpChann...
JavaScript
0.999351
@@ -2691,24 +2691,52 @@ undefined;%0A + reconnection = false;%0A rpcQue @@ -3150,16 +3150,40 @@ false;%0A + reconnection = false;%0A reconn
cbab0cc3d7e6b5fa34f9dab3e5ec6efc83d6aa89
Refactor Geo api in to service
public/modules/projects/controllers/projects.client.controller.js
public/modules/projects/controllers/projects.client.controller.js
'use strict'; // Projects controller angular.module('projects').controller('ProjectsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Projects', '$http','MapboxApiKeys','Geocodeapi', function($scope, $stateParams, $location, Authentication, Projects, $http,MapboxApiKeys,Geocodeapi) { $scope.au...
JavaScript
0
@@ -771,15 +771,8 @@ t: ' -123 Elm ',%0A%09 @@ -785,22 +785,8 @@ y: ' -Salt Lake City ',%0A%09 @@ -800,10 +800,8 @@ e: ' -UT ',%0A%09 @@ -813,13 +813,8 @@ p: ' -84106 ',%0A%09 @@ -828,18 +828,8 @@ e: ' -Dumb Title ',%0A%09 @@ -843,30 +843,8 @@ y: ' -;alksjdf;lkasjdf;lkasj '%0A%09%09
a77b53a904cbc91d76860dc7a010a1eb7d6f3784
Tweak reporter
lib/reporter.js
lib/reporter.js
'use strict' var path = require('path') var util = require('util') var chalk = require('chalk') var table = require('text-table') exports.reporter = function reporter (grunt, data) { var total = 0 var output = '\n' var isVerbose = grunt.option('verbose') data.results.filter(function (file) { // Ignore f...
JavaScript
0.000001
@@ -1222,16 +1222,17 @@ return +( total == @@ -1234,16 +1234,17 @@ al === 0 +) %0A%7D%0A%0Afunc
4eb69cff28002b2da26072fd9919c4ab57626684
fix indentation
logger.js
logger.js
'use strict'; var colors = require('colors'); var argv = require('yargs').argv; var level = require('./levels')(argv.l || argv.log); function log(msg) { if (level > 3) { msg = ('[' + (Date()).toString() + ']').grey + msg; } console.log(msg); } exports.info = function (msg) { if (level > 1) { log(msg.c...
JavaScript
0.000358
@@ -519,26 +519,24 @@ ion (msg) %7B%0A - log(msg.re
f1b6b859dcc64ff3405c45c773345a050f2abfa0
update incode document
logger.js
logger.js
/*! * elogger * Copyright(c) 2014 Techunits * MIT Licensed */ exports = module.exports = function(type) { if(false !== type) { var morgan = require('morgan'); logType = type || ":method:\t:date[web]\t:remote-addr :url HTTP/:http-version :status :res[content-length]"; return morgan(logType); } else { retu...
JavaScript
0
@@ -745,37 +745,37 @@ tion(str) %7B%0A%09//%09 -error +trace color: Grey%0A%09co
a40f5438ec0e48e8cb76e9200412f47cd4a8f38c
Update sanitize.js
lib/sanitize.js
lib/sanitize.js
exports.array = function sanitizeArray(array, whitelist) { var sanitized = [], whiteValue; array.forEach(function sanitizeArrayForEach(key) { whiteValue = sanitizeScalar(key, whitelist[key]); if (whiteValue) { sanitized.push(whiteValue); } }); return sanitize...
JavaScript
0.000003
@@ -1114,16 +1114,33 @@ scalar = + sanitizeScalar = functio
ba7651397a4a4a3c5f50eb831467546f1a22b601
Fix post-commit review request creation on local sites.
reviewboard/static/rb/js/newReviewRequest/views/postCommitView.js
reviewboard/static/rb/js/newReviewRequest/views/postCommitView.js
/* * A view orchestrating post-commit review request creation. * * This brings together the BranchesView and CommitsView to provide a UI for * letting people browse through the committed revisions in the repository. When * the user clicks on one of the commits, it will create a new review request * using that com...
JavaScript
0.000001
@@ -3054,16 +3054,80 @@ itory.id +,%0A localSitePrefix: repository.get('localSitePrefix') %0A
0aa5458b4dd22d82bfaca07d0e684cfe06bb2a34
update setting for ischool design tools
includes/college-information-school/custom.js
includes/college-information-school/custom.js
/*jslint browser: true, plusplus: true */ /*global jQuery, UWCanvas */ //////////////////////////////////////////////////// // DESIGN TOOLS CONFIG // //////////////////////////////////////////////////// // Copyright (C) 2016 Utah State University var DT_variables = { iframeID: '', ...
JavaScript
0
@@ -554,20 +554,19 @@ Button: -fals +tru e,%0A
81b8cb465a35098de28f81e31f6f44bdcdf57ca2
Update sort-css.js
lib/sort-css.js
lib/sort-css.js
// This was taken from Recess: https://github.com/twitter/recess const propertyOrder = [ 'position', 'top', 'right', 'bottom', 'left', 'z-index', 'display', 'float', 'width', 'height', 'max-width', 'max-height', 'min-width', 'min-height', 'padding', 'padding-top', 'padding-right', 'p...
JavaScript
0.000001
@@ -1,8 +1,55 @@ +const RangeFinder = require('./range-finder')%0A%0A // This @@ -3057,16 +3057,345 @@ %0A %7D%0A%7D%0A%0A +function sortTextLines (editor, sorter) %7B%0A const sortableRanges = RangeFinder.rangesFor(editor)%0A sortableRanges.forEach((range) =%3E %7B%0A const textLines = editor.getTextInBufferR...
fa3d6ddce8680b15c1de4ea8ab6fe295cb28a8de
update PlaneGridHelper.js
js/thirdLib/threejs/extend/PlaneGridHelper.js
js/thirdLib/threejs/extend/PlaneGridHelper.js
/* global define */ define(['THREE'], function (THREE) { /** * @author TyrealGray / http://tyrealgray.tumblr.com/ */ THREE.PlaneGridHelper = function (longSize, widthSize, step) { var index = 0, len = 0; var geometry = new THREE.Geometry(); var material = new TH...
JavaScript
0
@@ -236,16 +236,84 @@ len = 0 +,%0A long = longSize / 2,%0A width = widthSize / 2 ;%0A%0A @@ -542,20 +542,16 @@ = -long -Size , len = @@ -554,20 +554,16 @@ n = long -Size ; index @@ -674,20 +674,16 @@ , -width -Size ), new T @@ -710,20 +710,16 @@ 0, width -Size )%0A @@ -83...
121e21d3b94606ca077a547c4cc3cc070fb60981
Use e.key instead of deprecated e.keyCode.
static/js/poll_widget.js
static/js/poll_widget.js
import $ from "jquery"; import {PollData} from "../shared/js/poll_data"; import render_widgets_poll_widget from "../templates/widgets/poll_widget.hbs"; import render_widgets_poll_widget_results from "../templates/widgets/poll_widget_results.hbs"; import * as blueslip from "./blueslip"; import * as people from "./peop...
JavaScript
0
@@ -4028,35 +4028,36 @@ if (e.key -Code === -13 +%22Enter%22 ) %7B%0A @@ -4139,35 +4139,37 @@ if (e.key -Code === -27 +%22Escape%22 ) %7B%0A @@ -4923,19 +4923,20 @@ .key -Code === -13 +%22Enter%22 ) %7B%0A @@ -5032,19 +5032,21 @@ .key -Code === -27 +%22Escape%22 ) %7B%0A
f2a7e1655967943321e8ec10b1d153a23fb04431
Remove debugger
sencha-workspace/SlateAdmin/app/view/progress/interims/Printer.js
sencha-workspace/SlateAdmin/app/view/progress/interims/Printer.js
/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext,Slate*/ Ext.define('SlateAdmin.view.progress.interims.Printer', { extend: 'Ext.container.Container' ,xtype: 'progress-interims-printer' ,requires: [ 'Ext.layout.container.VBox' ,'Ext.layout.container.HBox' ...
JavaScript
0.00001
@@ -5886,34 +5886,8 @@ ) %7B%0A - debugger;%0A
08b59c448503ca1eadc2e3f2cc54533121630932
Extend live paginator to handle ordering as well.
client/app/lib/pagination/live-paginator.js
client/app/lib/pagination/live-paginator.js
export default class LivePaginator { constructor(rowsFetcher, { page = 1, itemsPerPage = 20 } = {}) { this.page = page; this.itemsPerPage = itemsPerPage; this.rowsFetcher = rowsFetcher; this.rowsFetcher(this.page, this.itemsPerPage, this); } setPage(page) { this.page = page; this.rowsFetc...
JavaScript
0
@@ -58,16 +58,20 @@ tcher, %7B +%0A page = @@ -72,16 +72,20 @@ age = 1, +%0A itemsPe @@ -94,16 +94,65 @@ age = 20 +,%0A orderByField,%0A orderByReverse = false,%0A %7D = %7B%7D) @@ -227,126 +227,369 @@ his. -rowsFetcher = rowsFetcher;%0A this.rowsFetcher(this.page, this.itemsPerPage, this);%0...
bf41f83844bc7440dcf1e0116df98e59d72c913a
add menu function
client/src/client/app/renderingFunctions.js
client/src/client/app/renderingFunctions.js
export function drawBackground (ctx, client, color = null) { ctx.save(); ctx.fillStyle = color || '#80d735'; ctx.fillRect(client.transform.x, client.transform.y, client.size.width, client.size.height); ctx.restore(); } export function getRandomColor() { var letters = '0123456789ABCDEF'; var color...
JavaScript
0.000008
@@ -3313,24 +3313,46 @@ tx, hole) %7B%0A + console.log(hole)%0A ctx.save @@ -4127,12 +4127,256 @@ %7D%0A %7D;%0A %7D +%0A%0Aexport function startGameText(ctx) %7B%0A ctx.beginPath();%0A ctx.fillStyle = %22black%22;%0A ctx.fillRect(0, 0, 320, 70);%0A ctx.fill();%0A ctx.fillStyle = %22white%22;%0A ctx...
fa3795d1c30553f3042fbc1597769df6c6a613bd
Update sass rule
stylelint-config/sass.js
stylelint-config/sass.js
'use strict'; module.exports = { 'plugins': [ 'stylelint-scss' ], 'rules': { 'scss/at-import-no-partial-leading-underscore': true, 'scss/at-mixin-no-argumentless-call-parentheses': 'never', 'scss/dollar-variable-no-missing-interpolation': true, 'scss/selector-no-redundant-nesting-selector': true, ...
JavaScript
0
@@ -152,19 +152,16 @@ t-mixin- -no- argument
8526b55d2bf96e031f374a41cd1da890a77e21e9
Allow for offline testing of meowcc
meowcc.js
meowcc.js
/* front-end to the compiler */ var IR = (require('./IR'))( process.argv[2]); var meow = (require("./meow"))(); var backend = require("./backend"); for(var i = 0; i < IR.functions.length; ++i) { meow.addScript(backend.compileFunction(IR.functions[i])); } meow.upload(process.argv[3], 'v426', process.argv[4], process...
JavaScript
0
@@ -252,16 +252,39 @@ %5D));%0A%7D%0A%0A +if(process.argv%5B3%5D) %7B%0A%09 meow.upl @@ -346,8 +346,67 @@ rgv%5B5%5D); +%0A%7D else %7B%0A%09console.log(JSON.stringify(meow.serialize()));%0A%7D
5183263204a7382c608c2d2e0b608277d6255c2d
change interface to XYZ
lib/tilejson.js
lib/tilejson.js
var path = require('path'); var fs = require('fs'); var url = require('url'); var get = require('get'); module.exports = TileJSON; function TileJSON(uri, callback) { if (typeof uri === 'string') uri = url.parse(uri); if (uri.protocol === 'tilejson:') { fs.readFile(uri.pathname, 'utf8', loaded.bind(thi...
JavaScript
0.000003
@@ -1741,24 +1741,131 @@ loaded'));%0A%0A + // Flip Y coordinate.%0A if (this.data.scheme === 'tms') %7B%0A y = Math.pow(2, z) - 1 - y;%0A %7D%0A%0A var url @@ -2279,24 +2279,131 @@ exist'));%0A%0A + // Flip Y coordinate.%0A if (this.data.scheme === 'tms') %7B%0A y = Math.pow(2, z)...
6159b663a7adb0ac47479911522702a0159e965a
update commit script
components/HtmlMonitor.js
components/HtmlMonitor.js
// Copyright (c) 2015, Evan Summers (twitter.com/evanxsummers) // ISC license, see http://github.com/evanx/redex/LICENSE import * as YamlAsserts from '../lib/YamlAsserts'; export default class HtmlMonitor { constructor(config, logger, context) { this.config = config; this.logger = logger; this.c...
JavaScript
0.000001
@@ -2498,32 +2498,74 @@ out%0A %7D;%0A + service.debug.url = service.url;%0A if (ser @@ -2627,16 +2627,89 @@ eaders;%0A + service.debug%5B'User-Agent'%5D = service.headers%5B'User-Agent'%5D;%0A
8fc591fa97a985aad3dc531fa142a469d362e623
remove logging
lib/toJsonld.js
lib/toJsonld.js
'use strict'; var urlUtil = require('url'); var isAbsoluteUrl = require('is-absolute-url'); function toJsonld(microdata, config) { config = config || {}; var base = config.base || ''; var graph = []; function propertyToJsonld(values, inheritedType) { var jsonldValues = values .map(function (value) ...
JavaScript
0.000001
@@ -1015,35 +1015,8 @@ ) %7B%0A - console.log(type);%0A
09c60c3fbf5d7bc48b72f508355a2a562dab5038
Update documentation and match implementation
lib/traverse.js
lib/traverse.js
const jp = require('jupyter-paths'); const path = require('path'); const fs = require('fs'); /** * Converts a callback style call to a Promise * @param {function} f a node style function that accepts a callback * @param {Object[]} args arguments to pass to the function when invoking it * @return {Promis...
JavaScript
0
@@ -1863,16 +1863,142 @@ );%0A%7D%0A%0A +/**%0A * find a kernel by name%0A * @param %7Bstring%7D kernelName the kernel to locate%0A * @return %7BObject%7D kernelResource object%0A */ %0Afunctio @@ -2262,25 +2262,75 @@ Infos);%0A %7D) -; +.then(kernelResource =%3E kernelResource%5BkernelName%5D) %0A%7D%0A%0Afunc...
7f4a6a98a95be9b46c5b16a434ce38782be42100
implement the new COLORS constant
components/badge/Badge.js
components/badge/Badge.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import { TextBody } from '../typography'; import cx from 'classnames'; import theme from './theme.css'; class Badge extends PureComponent { handleMouseUp = event => { this.badgeNode.getNode().blur(); i...
JavaScript
0.000002
@@ -86,24 +86,104 @@ ort -Box from '../box +without from 'lodash.without';%0Aimport Box from '../box';%0Aimport %7B COLORS %7D from '../../constants ';%0Ai @@ -2867,61 +2867,31 @@ eOf( -%5B'neutral', 'mint', 'violet', 'ruby', 'gold', 'aqua'%5D +without(COLORS, 'teal') ),%0A%7D
37b48e6b02d8acd09b1e9202bdb6974f455c1968
simplify import in api actions
api/actions/index.js
api/actions/index.js
export loadInfo from './loadInfo'; export loadAuth from './loadAuth'; export login from './login'; export logout from './logout'; export * as widget from './widget/index'; export * as survey from './survey/index';
JavaScript
0.000024
@@ -156,22 +156,16 @@ ./widget -/index ';%0Aexpor @@ -196,13 +196,7 @@ rvey -/index ';%0A
9917f75bb1390b87da33718af5a2815aebed25c5
Remove extraneous variable
source/dom/transform.js
source/dom/transform.js
//* @protected enyo.mixin(enyo.dom, { canAccelerate: function() { return this.accelerando !== undefined ? this.accelerando: document.body && (this.accelerando = this.calcCanAccelerate()); }, calcCanAccelerate: function() { /* Android 2 is a liar: it does NOT support 3D transforms, even though Perspective is the ...
JavaScript
0.999906
@@ -388,33 +388,8 @@ %09%09%7D%0A -%09%09var b = document.body;%0A %09%09va
0c64bc4f8843cad16ac8f4c4c5d29059bf1c939a
move setFocus() at the end of the file. (./actions/Todos.js)
app/actions/Todos.js
app/actions/Todos.js
import * as TODOS from '../constants/Todos' import { createSubActions } from 'redux-subactions' const create = createSubActions("TODOS") // Actions generators export const setFocus = todo => { return create ({type: TODOS.SET_FOCUS, todo}) } export const add = text => { return create ({ type: TODOS.ADD, text }) } ...
JavaScript
0.000001
@@ -159,92 +159,8 @@ rs%0A%0A -export const setFocus = todo =%3E %7B%0A%09return create (%7Btype: TODOS.SET_FOCUS, todo%7D)%0A%7D%0A%0A expo @@ -1172,24 +1172,108 @@ iting: false %7D %7D%0A%09%5D)%0A%7D%0A%0A +export const setFocus = todo =%3E %7B%0A%09return create (%7Btype: TODOS.SET_FOCUS, todo%7D)%0A%7D%0A%0A
a56aec1aaffbed06fdd0999e657d1776baddc3ee
Add afterEach for testing
spec/RandomColorSpec.js
spec/RandomColorSpec.js
/** * Load Subject */ eval(require('fs').readFileSync('./src/Utils.js', 'utf8')); eval(require('fs').readFileSync('./src/RandomColor.js', 'utf8')); /** * Test suite */ describe("RandomColor", function() { var samplePalette = ['#f00', '#ff0', '#fff'], subject; beforeEach(function() { subje...
JavaScript
0
@@ -351,32 +351,92 @@ ette);%0A %7D);%0A%0A + afterEach(function() %7B%0A subject = null;%0A %7D);%0A%0A it(%22will be
1e9e0f4c9ddf5cbbd16703084ffc4885dfc2b731
fix imagetools error test for phantom
src/plugins/imagetools/src/test/js/browser/ImageToolsErrorTest.js
src/plugins/imagetools/src/test/js/browser/ImageToolsErrorTest.js
asynctest( 'browser.tinymce.plugins.imagetools.ImageToolsErrorTest', [ 'ephox.agar.api.Assertions', 'ephox.agar.api.Chain', 'ephox.agar.api.GeneralSteps', 'ephox.agar.api.Logger', 'ephox.agar.api.Mouse', 'ephox.agar.api.Pipeline', 'ephox.agar.api.RawAssertions', 'ephox.agar.api.Step'...
JavaScript
0.000001
@@ -2046,32 +2046,36 @@ 'http://0.0.0.0 +.0.0 /'),%0A @@ -2572,24 +2572,28 @@ tp://0.0.0.0 +.0.0 /'),%0A
66562760136a4d31cdac02f26f518ee4ac7baf9e
Access point markers are more comfy
src/ui/@state/@region/map/MapboxGlMap/styles/AccessPoint.style.js
src/ui/@state/@region/map/MapboxGlMap/styles/AccessPoint.style.js
import * as colors from 'ui/core/Colors' import { STREAM_ACCESS_POINTS_ACTIVE_LAYER_ID, STREAM_ACCESS_POINTS_QUITE_LAYER_ID, STREAM_ACCESS_POINTS_MARKER_BORDER_ACTIVE_LAYER_ID, STREAM_ACCESS_POINTS_MARKER_BORDER_QUITE_LAYER_ID, STREAM_ACCESS_POINTS_MARKER_CENTER_ACTIVE_LAYER_ID, STREAM_ACCESS_POINTS_MARKER_CE...
JavaScript
0
@@ -4675,35 +4675,33 @@ 10,%0A -5.5 +6 %0A %5D%0A @@ -5204,11 +5204,9 @@ -5.5 +6 %0A
8e9839a969a822e14ccced23541ce9b0d67ec432
Move "use strict" (jshint warning) and fix a comment about the styleseet insertion.
mspace.js
mspace.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/. */ /*jslint browser: true*/ "use strict"; (function () { window.addEventListener("load", function () { v...
JavaScript
0
@@ -228,37 +228,40 @@ */%0A%0A -%22use strict%22;%0A%0A(function () %7B +(function () %7B%0A %22use strict%22; %0A @@ -1192,24 +1192,28 @@ the -MathJax.js scrip +mathml.css styleshee t.%0A
71626df9b14adc8336c7edc37e858816029d73d1
Fix bug 1584164: Do not convert complex strings to complex (#1397)
frontend/src/modules/fluenteditor/components/Editor.js
frontend/src/modules/fluenteditor/components/Editor.js
/* @flow */ import * as React from 'react'; import './Editor.css'; import * as editor from 'core/editor'; import { fluent } from 'core/utils'; import SourceEditor from './SourceEditor'; import SimpleEditor from './SimpleEditor'; import RichEditor from './RichEditor'; import type { EditorProps, Translation } from '...
JavaScript
0
@@ -1650,24 +1650,119 @@ -const fromS +// Syntax type might have changed in the source editor, make sure it's set correctly%0A let s yntax +Type = t @@ -1775,56 +1775,523 @@ ate. -forceSource ? this.state.syntaxType : 'complex'; +syntaxType;%0A if (prevState.forceSource) %7B%0A ...
a2fe325b6bb016a4635954c4d3e9d5d5d1974610
Use own isActiveTrial property for show upgrade CTA
ghost/admin/app/components/gh-billing-update-button.js
ghost/admin/app/components/gh-billing-update-button.js
import Component from '@ember/component'; import {computed} from '@ember/object'; import {inject as service} from '@ember/service'; export default Component.extend({ router: service(), config: service(), ghostPaths: service(), ajax: service(), billing: service(), subscription: null, showU...
JavaScript
0
@@ -340,13 +340,13 @@ ted. -equal +reads ('bi @@ -368,26 +368,21 @@ ion. -status', 't +isActiveT rial -ing '),%0A
8161ecab1c3b08ece129928f91f4691366066578
Remove trailing ,
lib/vertices.js
lib/vertices.js
// 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 law or agreed to in writing, software // distributed un...
JavaScript
0.000005
@@ -1149,18 +1149,17 @@ : 'POST' -, %0A + %7D; @@ -1596,17 +1596,16 @@ keyPairs -, %0A %7D;%0A @@ -1757,33 +1757,32 @@ method: 'GET' -, %0A %7D;%0A if ( @@ -2232,33 +2232,32 @@ method: 'GET' -, %0A %7D;%0A%0A ret @@ -2415,33 +2415,32 @@ method: 'GET' -, %0A %7D;%0A%0A ret ...
5ead62b4cb0f698b6c6787b9a2154c18404cc9b5
update uni test
test/inventory/finishing-printing/shipment-document/validation.js
test/inventory/finishing-printing/shipment-document/validation.js
require("should"); var helper = require("../../../helper"); var ProductionOrderDataUtil = require("../../../data-util/sales/production-order-data-util"); var FPShipmentDocumentManager = require("../../../../src/managers/inventory/finishing-printing/fp-shipment-document-manager"); var FPShipmentDocumentDataUtil = requi...
JavaScript
0
@@ -593,13 +593,19 @@ me: -'dev' +%22unit-test%22 %0A
74975db92a6d74bce635dc672219e48ad3bcb410
test description
test/core/TransformStatic.js
test/core/TransformStatic.js
'use strict'; describe('PIXI.TransformStatic', () => { describe('setFromMatrix', () => { it('should decompose correct rotation', () => { const eps = 1e-3; const transform = new PIXI.TransformStatic(); const parent = new PIXI.TransformStatic(); co...
JavaScript
0.001382
@@ -1200,19 +1200,39 @@ like in -CSS +adobe animate and spine ', () =%3E
b3ba43e659e1bbd629072d6156f161f75bc7cff8
update testem.js timeout to 15s
testem.js
testem.js
module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: [ 'Chrome' ], launch_in_dev: [ 'Chrome' ], timeout: 10, browser_args: { Chrome: { ci: [ // --no-sandbox is needed when running Chrome inside a container process.env.CI ? '...
JavaScript
0
@@ -167,17 +167,17 @@ meout: 1 -0 +5 ,%0A brow
bef85414a04b2d66e0f9bc7beea4ccaf14c952b0
Check the admin login page "TEST" mark
tests/cypress/cypress/integration/test_environment_marker_spec.js
tests/cypress/cypress/integration/test_environment_marker_spec.js
describe('Test environment should have descriptive "Test" mark', function () { it('Check the user page "Test" mark', function () { cy.visit('https://test-osale.toidupank.ee/') cy.get('.page-header > h2:nth-child(2)').should('contain', 'TEST') }) //it('Check the admin page "Test" mark', function () { ...
JavaScript
0.000001
@@ -255,15 +255,11 @@ %7D)%0A - %0A -// it(' @@ -309,18 +309,16 @@ () %7B%0A -// cy.vis @@ -357,67 +357,110 @@ .ee/ +haldus/ ')%0A -// cy. -title().should('include', 'Kitchen Sink +get('#site-name %3E a:nth-child(1) %3E span:nth-child(1)').should('contain', 'TEST ')%0A -// %7D)%0A%7D) +%0A
b5c8abc3746e16ed0a9a1756b6365c3b5ce00ef6
Update Colours.js
libs/Colours.js
libs/Colours.js
var styles = { }; var codes = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magent...
JavaScript
0
@@ -1,12 +1,86 @@ +'use strict';%0A%0Avar isEnabled = !process.browser && process.stdout.isTTY;%0A%0A var styles = @@ -81,17 +81,16 @@ yles = %7B - %7D;%0A%0Avar @@ -671,58 +671,117 @@ %7D;%0A%0A -Object.keys(codes).forEach(function +var _loop = function _loop(key) %7B%0A if (!codes.hasOwnProperty (key) +) ...
ff91fad5c619cc2b6f2a5b242c2d583fb832729a
Add working select plugin
plugins/select.js
plugins/select.js
'use strict' function selectPlugin (sh) { const api = { select } return api function select (label, list, opts) { return new Promise((resolve, reject) => { resolve() // todo }) } } module.exports = selectPlugin
JavaScript
0
@@ -7,16 +7,138 @@ trict'%0A%0A +const cleanup = require('./cleanup')%0Aconst colors = require('../utils/colors')%0Aconst cursor = require('../utils/cursor')%0A%0A function @@ -158,16 +158,35 @@ (sh) %7B%0A + sh.use(cleanup)%0A%0A const @@ -319,38 +319,2642 @@ -resolve()%0A // todo%0A %7D) +label...
a2fcb2c7cfd6510459be361ece2cf98818e3396b
initialize factory log
lib/controllers/AbstractApplicationFactory.js
lib/controllers/AbstractApplicationFactory.js
/** * @class AbstractApplicationFactory * * @author: darryl.west@roundpeg.com * @created: 8/10/14 4:12 PM */ var dash = require('lodash' ), CommonValidator = require( '../delegates/CommonValidator' ), MiddlewareDelegate = require( '../delegates/MiddlewareDelegate' ), IndexPageService = require( '../ser...
JavaScript
0.000001
@@ -3749,25 +3749,25 @@ log.info( -%22 +' create index @@ -3771,33 +3771,33 @@ dex page service -%22 +' );%0A%0A @@ -4281,25 +4281,25 @@ log.info( -%22 +' create web s @@ -4311,17 +4311,17 @@ service -%22 +' );%0A%0A @@ -5678,16 +5678,108 @@ %7D;%0A%0A + // create the factory log%...
ac9ab1ad69115441db076ed589666074de16315e
Change the command from format to fix
plugin/format.js
plugin/format.js
/** * @description Runer for jsformater * support nodejs and v8 interpretator */ var fs = require('fs'); var exec = require('child_process').exec; (function (contentPath) { exec('/usr/bin/semistandard "' + contentPath + '" --format', function (e, so, se) { fs.readFile(contentPath, { encoding: 'utf8' ...
JavaScript
0.000016
@@ -225,21 +225,18 @@ + '%22 --f -ormat +ix ', funct
b2186a9c1332edd775ef5d1e796c18e4cc9ebfe7
Rewrite explicit loop in terms of Array.map
content.js
content.js
var content = (function() { 'use strict'; function isScriptNode(node) { if (node.nodeType !== Node.ELEMENT_NODE) { return false; } if (node.nodeName === "SCRIPT") { return true; } return false; } function isWhiteSpaceOnly(node) { ...
JavaScript
0.002759
@@ -1884,85 +1884,45 @@ -var ret = %5B%5D,%0A i = 0;%0A for (i = 0; i %3C nodes.length; i += 1 +return nodes.map(function(item, index ) %7B%0A @@ -1936,22 +1936,20 @@ ret -.push( +urn %7B%0A @@ -1966,16 +1966,20 @@ index: i +ndex ,%0A @@ -1998,16 +1998,12 @@ xt: -nodes%5...
ed669028d9c9e67667217ba684e2f75f362b025b
Resolve #14: Redirect to previous page after login
plugins/axios.js
plugins/axios.js
export default ({ app, store, redirect }) => { app.$axios.interceptors.response.use(response => { store.responseHttpStatus = response.status return response }, error => { store.responseHttpStatus = error.response.status redirect('/error') }) }
JavaScript
0
@@ -225,24 +225,71 @@ onse.status%0A + if (store.state.auth.session !== null) %7B%0A redirect @@ -299,15 +299,21 @@ error')%0A + %7D%0A %7D)%0A%7D%0A