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 |
|---|---|---|---|---|---|---|---|
9ee0d08c4fa1a43c626fd4d2d213cc73f33b1920 | refactor error fix | Panel/Editors/Editors.js | Panel/Editors/Editors.js | // Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. johnjbarton@google.com
(function(){
QuerypointPanel.Editors = {
initialize: function(buffers, editorsViewModel) {
console.assert(buffers);
this._viewModel = editorsViewModel;
this._e... | JavaScript | 0.000002 | @@ -3699,32 +3699,43 @@
index = editors.
+_viewModel.
unsavedEditors.i
@@ -3766,16 +3766,27 @@
editors.
+_viewModel.
unsavedE
|
fdbb169d1179deb6444f8a2198c81cd785c69d87 | Enable `newline-before-return` rule | rules/style.js | rules/style.js | module.exports = {
'rules': {
// enforce spacing inside array brackets
'array-bracket-spacing': [2, 'always', {
'objectsInArrays': false,
'arraysInArrays': false
}],
// specify the maximum length of a line in your program
// https://github.com/eslint/eslint/blob/master/docs/rules/max-l... | JavaScript | 0.000001 | @@ -590,24 +590,191 @@
'always'%5D,%0A
+ // Require newline before return statement%0A // https://github.com/eslint/eslint/tree/master/docs/rules/newline-before-return.md%0A 'newline-before-return': 2,%0A
// disal
|
728fc9282b63f6b6f0e06fd4f2f539d2e4049111 | Increase the max-statements to 25 | rules/style.js | rules/style.js | module.exports = {
rules: {
camelcase: 'error',
'func-names': 'off',
'func-style': ['error', 'expression'],
'id-length': [
'error',
{
min: 1,
max: 30
}
],
'line-comment-position': ['error', {position: 'above'}],
'max-depth': ['error', 4],
'max-lines-pe... | JavaScript | 0.999999 | @@ -441,17 +441,17 @@
error',
-1
+2
5%5D,%0A
|
7f8c993f2a2e853043199194578bf9bb8e838e32 | revert publish | example/classic/models/gallery.js | example/classic/models/gallery.js | var mongoose = require('mongoose');
var SchemaTypes = mongoose.Schema.Types;
var schema = new mongoose.Schema({
title: { type: String, required: true },
picture: SchemaTypes.Picture,
pictures: [{ type: SchemaTypes.Filepicker, widget: 'FilepickerPictureWidget' }],
tags: [String],
file: SchemaTypes.F... | JavaScript | 0 | @@ -33,22 +33,16 @@
');%0Avar
-Schema
Types =
@@ -64,16 +64,16 @@
.Types;%0A
+
%0Avar sch
@@ -158,22 +158,16 @@
icture:
-Schema
Types.Pi
@@ -192,75 +192,21 @@
s: %5B
-%7B type: SchemaTypes.Filepicker, widget: 'FilepickerPictureWidget' %7D
+Types.Picture
%5D,%0A
@@ -220,24 +220,24 @@
: %5BString%5D,%0A
+
... |
31bc44a47e13f159da5c4e1dab44ac0a21ff68a8 | Add 'cancel' behavior to Input. | packages/input/Input.js | packages/input/Input.js | import Component from '../../ui/Component'
export default class Input extends Component {
_onChange() {
let editorSession = this.context.editorSession
let path = this.props.path
let newVal = this.el.val()
editorSession.transaction(function(tx) {
tx.set(path, newVal)
})
// ATTENTION: ru... | JavaScript | 0.000068 | @@ -35,16 +35,51 @@
mponent'
+%0Aimport keys from '../../util/keys'
%0A%0Aexport
@@ -126,620 +126,59 @@
%0A%0A
-_onChange() %7B%0A let editorSession = this.context.editorSession%0A let path = this.props.path%0A let newVal = this.el.val()%0A editorSession.transaction(function(tx) %7B%0A tx.set(path... |
a5d5b4cd28a51cc23591356d5734523f4263c0be | fix person spec | spec/PersonSpec.js | spec/PersonSpec.js | JavaScript | 0.000001 | @@ -0,0 +1,1202 @@
+describe('Person', function() %7B%0A describe('new Person()', function() %7B%0A it('takes an argument for the name', function() %7B%0A var eben = new Person('Eben');%0A%0A expect(eben).toBeDefined();%0A expect(eben.name).toBe('Eben');%0A %7D);%0A%0A it('allows name to be an ... | |
64153ddaa0bca51b57475ca1ba16f135f093c511 | add svg icon pattern | spec/karma.conf.js | spec/karma.conf.js | module.exports = function (config) {
'use strict';
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
// frameworks to use
frameworks: [
'mocha',
'chai',
'sinon',
'browserify'
],
... | JavaScript | 0 | @@ -642,24 +642,210 @@
c/**/*.js%22,%0A
+ // this is supposed to remove the 404 errors during tests, but doesn't seem to work%0A %7Bpattern: %22dist/icons/*.svg%22, watched: false, included: false, served: true%7D,%0A
%5D,%0A
|
3e138994a6b788fca3eb4e288514f23d32343388 | add nodeSizes to vars | src/node_modules/ui/vars.js | src/node_modules/ui/vars.js | module.exports = {
gutterWidth: 32,
font: 'Roboto',
colors: {
black: 'black',
lightGrey: '#f5f5f5',
charcoal: '#333333',
gray: '#999999',
ashGray: '#cccccc',
silver: '#e9e9e9',
brown: '#815b3a',
cheetoorange: '#f79232',
tan: '#f1a257',
lightBrown: '#d39c3f',
cyan: '#5... | JavaScript | 0 | @@ -51,16 +51,92 @@
boto',%0A%0A
+ nodeSizes: %7B%0A parent: 120,%0A contextAgent: 80,%0A default: 40%0A %7D,%0A%0A
colors
|
d148e0f48d11a57f84535c80c6b94e941cc611d5 | Remove unused readDir.isDirectory function. | bids-validator/utils/files/readDir.js | bids-validator/utils/files/readDir.js | const ignore = require('ignore')
const readFile = require('./readFile')
const path = require('path')
const fs = require('fs')
const isNode = typeof window === 'undefined'
/**
* Read Directory
*
* In node it takes a path to a directory and returns
* an array containing all of the files to a callback.
* Used to inp... | JavaScript | 0 | @@ -4044,386 +4044,8 @@
%0A%7D%0A%0A
-/**%0A * Leverage fs.isDirectory by following Symbolic Links%0A */%0Afunction isDirectory(path) %7B%0A const pathStat = fs.lstatSync(path)%0A let isDir = pathStat.isDirectory()%0A if (pathStat.isSymbolicLink()) %7B%0A try %7B%0A var targetPath = fs.realpathSync(path)%0A... |
007495f406acdfe28c41bba262f9d75096dd1fab | fix ci failing | test/Core-Canvas/CanvasTest.js | test/Core-Canvas/CanvasTest.js | import test from 'ava';
import Canvas from '../../lib/Core/Canvas/Canvas';
import sinon from 'sinon';
import gl from '../glTestInitializer';
test('Canvas should initialized with valid context', (t) => {
const canvasMock = {
width: 512,
height: 512,
getContext: function() {},
addEventListener: func... | JavaScript | 0.000001 | @@ -116,18 +116,18 @@
rom '../
-gl
+GL
TestInit
|
7b7716c8e88e91afeecfdcc5399f4d1973b86fd4 | Update example4.js | examples/example4.js | examples/example4.js | var range = require('../');
try {
console.log("--- As a callback ---");
range(1,10,3,null,function (x) { console.log(x.join(',')) });
console.log("\n--- As a filter ---");
console.log(range(1,100,3,null,function (x) { return x.filter(function(y) { return y%4===0; }); }).join(','));
console.log("\n-- inRa... | JavaScript | 0 | @@ -1545,24 +1545,25 @@
.30%5C%22.range(
+5
)%5D %22+%22-30..3
|
03fee17b7b26b96a410e55084d9027c3c620c979 | update URLs to prod | dist/release/static/js/uat.env.js | dist/release/static/js/uat.env.js | var env = {
envType:"uat",
appType: (window.location.protocol == "file:")?"cordova":"webapp",
cswService:"https://oim-uat.dpaw.wa.gov.au/catalogue/api/records/",
wmtsService:"https://kmi-uat.dpaw.wa.gov.au/geoserver/gwc/service/wmts",
wfsService:"https://kmi-uat.dpaw.wa.gov.au/geoserver/wfs",
le... | JavaScript | 0 | @@ -114,36 +114,32 @@
ice:%22https://oim
--uat
.dpaw.wa.gov.au/
@@ -183,36 +183,32 @@
ice:%22https://kmi
--uat
.dpaw.wa.gov.au/
@@ -255,36 +255,32 @@
ice:%22https://kmi
--uat
.dpaw.wa.gov.au/
@@ -321,20 +321,16 @@
ps://kmi
--uat
.dpaw.wa
@@ -507,20 +507,16 @@
ps://oim
--uat
.dpaw.wa
@@ -565,20 +565,16 @@
tra... |
aab28001ea619d111e0979e65e7c92ad9ac872c5 | Fix typo. | samples/iam.js | samples/iam.js | // Copyright 2016, Google, Inc.
// 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 wr... | JavaScript | 0.001604 | @@ -1600,32 +1600,31 @@
oles/pubsub.
-subscrib
+publish
er',%0A
|
cdecd1e68c2d9514ab9330392b897904e965c011 | add copy-webpack-plugin | internals/webpack/webpack.prod.babel.js | internals/webpack/webpack.prod.babel.js | // Important modules this config uses
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const OfflinePlugin = require('offline-plugin');
const publicPath = '/'
module.exports = require('./webpack.base.babel')({
// In production, we skip all h... | JavaScript | 0.000001 | @@ -93,24 +93,73 @@
'webpack');%0A
+const OfflinePlugin = require('offline-plugin');%0A
const HtmlWe
@@ -202,39 +202,43 @@
plugin');%0Aconst
-Offline
+CopyWebpack
Plugin = require
@@ -231,39 +231,44 @@
ugin = require('
-offline
+copy-webpack
-plugin');%0A%0Acons
|
1f94a864c964d22d877667814b3fb2f4b8645d21 | Handle logic 2 for starting hand | player.js | player.js |
module.exports = {
VERSION: "Default JavaScript folding player",
bet_request: function(game_state, bet) {
try
{
var cards = getMyCards(game_state),
player = getMyPlayer(game_state),
myBet = 0,
trans = {
"1": 1,
"2": 2,
"3": 3,
... | JavaScript | 0 | @@ -1250,16 +1250,20 @@
f (myBet
+ %3E 0
) %7B%0A
@@ -1262,32 +1262,66 @@
) %7B%0A
+myBet = game_state.current_buy_in;
%0A %7D%0A %7D
|
e241a8c4bdc46badcb5ace03e62ce6d099d63d7e | update AppX build | electron/forge.config.js | electron/forge.config.js | 'use strict';
const pkg = require('./package.json');
const { BUILD_PLATFORM } = process.env;
const BRANCH = process.env.TRAVIS_BRANCH || process.env.APPVEYOR_REPO_BRANCH;
if (!['win', 'appx', 'appx-dev', 'mac', 'mas', 'mas-dev', 'snap'].includes(BUILD_PLATFORM)) {
throw new Error(`Please specify valid distribution... | JavaScript | 0.000001 | @@ -3356,16 +3356,79 @@
LISHER,%0A
+ publisherDisplayName: process.env.APPX_PUBLISHER_NAME,%0A
@@ -3779,16 +3779,79 @@
ER_DEV,%0A
+ publisherDisplayName: process.env.APPX_PUBLISHER_NAME,%0A
|
cca913f2d303a41772978472577faead4619ea13 | Fix text resizing for meta blocks. | assets/src/components/with-meta-block-edit.js | assets/src/components/with-meta-block-edit.js | /**
* External dependencies
*/
import classnames from 'classnames';
/**
* WordPress dependencies
*/
import { compose } from '@wordpress/compose';
import {
AlignmentToolbar,
BlockControls,
} from '@wordpress/block-editor';
import { Component, Fragment } from '@wordpress/element';
import { withSelect, withDispatch... | JavaScript | 0 | @@ -797,16 +797,80 @@
onent %7B%0A
+%09componentDidMount() %7B%0A%09%09maybeUpdateFontSize( this.props );%0A%09%7D%0A%0A
%09compone
@@ -2100,16 +2100,23 @@
FontSize
+ + 'px'
: userF
|
82659eb87b1b35a2a3a14e7fa7fd8f45c31e90d9 | Add new api for sanji-window | src/window/sanji-window.js | src/window/sanji-window.js | ;(function() { 'use strict';
angular
.module('sanji.window', ['google-maps', 'pasvaz.bindonce', 'sanji.validator', 'ngAnimate'])
.constant('_', window._)
.provider('SanjiWindowConfig', SanjiWindowConfig)
.directive('mxHide', sanjiHide)
.directive('sanjiWindow',sanjiWindow);
function SanjiWindo... | JavaScript | 0 | @@ -1911,32 +1911,173 @@
tent;%0A %7D;%0A%0A
+ Service.prototype.isEqualToCurrentState = function(state) %7B%0A return (this.navigateContent === state ) ? true : false;%0A %7D;%0A%0A
Service.pr
|
aa3064de54040b24fea03197fbdc0cf271dc8a02 | add support for lark command option -b | lib/application.js | lib/application.js | /**
* lark.js - lib/application.js
* Copyright(c) 2014 larkjs-team
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
*/
var util = require('util');
var koa = require('koa');
var config = require('lark-config');
var logging = require('lark-log');
var mvc = require('lark-mvc');
var router = require('lar... | JavaScript | 0 | @@ -1958,56 +1958,53 @@
-if ('development' == configs.environment) %7B%0A
+configs.bootstrap = configs.bootstrap %7C%7C %7B%7D;%0A
@@ -2016,32 +2016,46 @@
onfigs.bootstrap
+.processManage
= configs.boots
@@ -2054,32 +2054,46 @@
gs.bootstrap
+.processManage
%7C%7C %7B%7D;%0A
@@ -2072,... |
0a6aa0e298f8b9b7cc45d6ce05fd9a1e0dec6cd1 | Add use of PageActions actions over importing | src/pages/StocktakesPage.js | src/pages/StocktakesPage.js | /* eslint-disable import/prefer-default-export */
/* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { SearchBar } from 'react-native-u... | JavaScript | 0 | @@ -772,296 +772,8 @@
';%0A%0A
-import %7B%0A selectRow,%0A deselectRow,%0A deselectAll,%0A deleteStocktakes,%0A%7D from './dataTableUtilities/actions/rowActions';%0A%0Aimport %7B filterData, sortData %7D from './dataTableUtilities/actions/tableActions';%0Aimport %7B openModal, closeModal %7D from './dataTableUtil... |
ea5757ff57034a8f2caf4cadf74231c9d070c21f | remove app.keys getter/setter | lib/application.js | lib/application.js | /**
* Module dependencies.
*/
var debug = require('debug')('koa:application');
var onFinished = require('finished');
var Emitter = require('events').EventEmitter;
var compose = require('koa-compose');
var context = require('./context');
var request = require('./request');
var response = require('./response');
var Co... | JavaScript | 0.000001 | @@ -2246,821 +2246,8 @@
%7D;%0A%0A
-/**%0A * Set signed cookie keys.%0A *%0A * These are passed to %5BKeyGrip%5D(https://github.com/jed/keygrip),%0A * however you may also pass your own %60KeyGrip%60 instance. For%0A * example the following are acceptable:%0A *%0A * app.keys = %5B'im a newer secret', 'i like turtle'... |
fd2d5adadacb100a80a5f916aa308292b0f1a352 | Add docs on the new param globalPos | src/pixi/InteractionData.js | src/pixi/InteractionData.js | /**
* @author Mat Groves http://matgroves.com/ @Doormat23
*/
/**
* Holds all information related to an Interaction event
*
* @class InteractionData
* @constructor
*/
PIXI.InteractionData = function()
{
/**
* This point stores the global coords of where the touch/mouse event happened
*
* @prop... | JavaScript | 0 | @@ -1080,16 +1080,154 @@
point)%0A
+ * param %5BglobalPos%5D %7BPoint%7D A Point object containing your custom global coords, optional (otherwise will use the current global coords)%0A
* @retu
|
4db0a67ede2ae39ab07bc2592823940babedb5a2 | support column visibility | fields/index/assets/js/main.js | fields/index/assets/js/main.js | (function($) {
var Indexfield = function(el) {
var element = $(el);
var table = element.find('table')
var columns = table.data('indexfield-columns');
var entriesapi = table.data('indexfield-entries');
var rows = table.data('indexfield-rows');
var order = table.data('indexfield-order');
... | JavaScript | 0.000001 | @@ -3261,24 +3261,222 @@
)%0A %7D%0A
+ if ($.isPlainObject(columns%5Bkey%5D) && columns%5Bkey%5D.hasOwnProperty('visible')) %7B%0A defs.push(%7B%0A visible: columns%5Bkey%5D.visible,%0A targets: i%0A %7D)%0A %7D%0A
%7D)%0A%0A
|
dbd1f2dde6f41cc3f52cb7c87ec5d265dc893a7d | Set graph object | lib/build-graph.js | lib/build-graph.js | "use strict";
var _ = require("lodash"),
Graph = require("graphlib").Graph;
module.exports = buildGraph;
function buildGraph(parseTree) {
var isDirected = parseTree.type !== "graph",
isMultigraph = !parseTree.strict,
defaultStack = [{ node: {}, edge: {} }],
g = new Graph({ directed: isDirecte... | JavaScript | 0.000002 | @@ -361,16 +361,38 @@
rue %7D);%0A
+ g.setGraph(%7B%7D);%0A
_.each
|
5fee0465639ea0de9e3e846e21efdd9c659a715e | Introduce strict equality check in compare() (#57) | lib/chai-subset.js | lib/chai-subset.js | (function() {
(function(chaiSubset) {
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
return module.exports = chaiSubset;
} else if (typeof define === 'function' && define.amd) {
return define(function() {
return chaiSubset;
});
} else {
return ch... | JavaScript | 0 | @@ -976,16 +976,68 @@
tual) %7B%0A
+%09%09%09if (expected === actual) %7B%0A%09%09%09%09return true;%0A%09%09%09%7D%0A
%09%09%09if (t
|
16135d7392105e87df34fe98b07847179b447808 | Update app.js | scripts/app.js | scripts/app.js | var mainApp = angular.module("mainApp", ['ngRoute']);
mainApp.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/addStudent', {
templateUrl: 'views/main.html',
controller: 'AddStudentController'
}).
... | JavaScript | 0.000002 | @@ -387,13 +387,19 @@
l: '
+views/
main
-3
+1
.htm
|
931c4a8ab46ce5693c6ad4f73900e1f1941252c5 | Add JSDoc in chlg-insert | lib/chlg-insert.js | lib/chlg-insert.js | 'use strict';
var fs = require('fs');
var os = require('os');
var path = require('path');
var chlgShow = require('./chlg-show');
var sections = require('./common/sections.js');
var releases = require('./common/releases.js');
var formatter = require('./format/raw');
var StreamInsert = require('./common/stream-... | JavaScript | 0 | @@ -8,16 +8,48 @@
rict';%0A%0A
+/**%0A * @module chlg-insert%0A */%0A%0A
var fs
@@ -356,16 +356,550 @@
ert');%0A%0A
+/**%0A * @typedef %7Bobject%7D Options%0A * @property %7Bstring%7D %5Bfile=CHANGELOG.md%5D - The change log file name/path%0A */%0A%0A/**%0A * Insert a new message in the specified section of the c... |
b8b46177b6ea98a1bdc119472cb206b59e9556e1 | fix empty theme layout file | lib/class/Theme.js | lib/class/Theme.js | /**
* We.js Theme Class
*
*/
var _ = require('lodash'),
hooks = require('../hooks'),
events = require('../events'),
path = require('path');
/**
* We.js theme Class constructor
*
* @param {string} name theme npm pakage name
* @param {string} projectPath project path where the theme is instaled
* @param... | JavaScript | 0.000001 | @@ -1369,16 +1369,105 @@
layout;%0A
+%0A if (!this.config.viewLayout) this.config.viewLayout = 'templates/server/layout.hbs';%0A%0A
this.c
@@ -1546,16 +1546,17 @@
wLayout)
+;
%0A%0A this
|
e0a2f12b78c2db66110a803fe1f5dd2630f297fd | rename references to view from _view | scripts/app.js | scripts/app.js | require.config({
baseUrl: 'scripts/lib',
paths: {
app: '../app',
jquery: 'vendor/jquery'
},
shim: {
'vendor/createjs': {
exports: '/vendor/createjs'
},
'wdf/adobe-animate': {
deps: ['vendor/createjs'],
exports: 'wdf/adobe-animat... | JavaScript | 0 | @@ -919,25 +919,24 @@
%7D);%0A
-_
view.on('vie
@@ -1000,9 +1000,8 @@
-_
view
|
6df588cc3c558f204b68f2a501740dd6a0945c0e | add notes | Algorithms/JS/arrays/shortestWordDifferenceTwo.js | Algorithms/JS/arrays/shortestWordDifferenceTwo.js | // This is a follow up of Shortest Word Distance.
// The only difference is now you are given the list of words
// and your method will be called repeatedly many times with different parameters. How would you optimize it?
// Design a class which receives a list of words in the constructor,
// and implements a method t... | JavaScript | 0 | @@ -842,16 +842,83 @@
ib = %7B%7D;
+ // create a lib to store the word as a key and an array of indices
%0A for
@@ -1430,24 +1430,85 @@
%3C arr2%5Bj%5D )%7B
+ // check to see which is bigger know which to subtract first
%0A
|
57cecfd83e12074abb495b99056d8f1f6d3bda79 | Update wme.js | scripts/wme.js | scripts/wme.js |
// JSON example
var candidates = [ {
"name": "Ellie Phanta",
"party": "Republican",
"stance1" : -2
},
{
"name": "Jack Bass",
"party": "Democrat",
"stance1" : -2
},
{
"name": "Paul Stanton",
"party": "Libertarian",
"stance1" : 2
}
];
Questions = [ {
"Question" : "Should goods and service... | JavaScript | 0 | @@ -645,17 +645,17 @@
nswers%22%3E
-%22
+'
;%0A fo
|
672eef7b229e6bc58ce6e5f954fdaf4408eba949 | edit debug-led-blink | debug/debug-led-blink.js | debug/debug-led-blink.js | "use strict";
var PORT = 4200;
var path = require('path');
//to control iRobot create2
var fs = require("fs");
var Repl = require("repl");
var Devices = require("../src/detect");
const express = require('express');
const app = express();
const http = require('http').Server(app);
const io = require('socket.io')(http);... | JavaScript | 0.000001 | @@ -129,24 +129,62 @@
re(%22repl%22);%0A
+const five = require('johnny-five');%0A%0A
var Devices
@@ -588,45 +588,8 @@
;*/%0A
-const five = require('johnny-five');%0A
var
|
7eabe36ebf2a51115d15bd1142151f017e6ed9aa | Stop removing webpack plugins from webpack-karma (#1083) | packages/karma/index.js | packages/karma/index.js | const { merge: babelMerge } = require('@neutrinojs/compile-loader');
const loaderMerge = require('@neutrinojs/loader-merge');
const merge = require('deepmerge');
const omit = require('lodash.omit');
const { join } = require('path');
module.exports = (neutrino, options = {}) => {
if (neutrino.config.module.rules.has(... | JavaScript | 0 | @@ -1981,19 +1981,8 @@
), %5B
-'plugins',
'ent
|
36c1441fc5fb4e4beb6130d4c1567c8e484f7517 | Update umd bundle to use css loader for css files | webpack.generate.umd.config.js | webpack.generate.umd.config.js | 'use strict';
var webpack = require('webpack');
var kitchensinkExternals = {
root: 'Kitchensink',
commonjs2: 'kitchensink',
commonjs: 'kitchensink',
amd: 'kitchensink'
};
module.exports = {
externals: {
'kitchensink': kitchensinkExternals
},
module: {
loaders: [
{ test: /\.js$/, loaders: ... | JavaScript | 0 | @@ -434,16 +434,93 @@
dules/ %7D
+,%0A %7B test: /%5C.css$/, loaders: %5B'css-loader'%5D, exclude: /node_modules/ %7D,
%0A %5D%0A
|
83ed2f5a62725ea47fb3e5be7cc4df3a0f19d784 | resolve rebase error | webpack/webpack.config.base.js | webpack/webpack.config.base.js | const path = require('path');
const dotenv = require('dotenv');
const webpack = require('webpack');
const merge = require('webpack-merge');
dotenv.config();
module.exports = merge({
entry: './index.js',
output: {
filename: 'bundle.js',
library: 'ciscospark',
libraryTarget: 'var',
path: __dirname,... | JavaScript | 0.000001 | @@ -244,61 +244,8 @@
s',%0A
- library: 'ciscospark',%0A libraryTarget: 'var',%0A
@@ -834,48 +834,8 @@
EN,%0A
- TO_PERSON: process.env.TO_PERSON,%0A
|
63bdd420cec0261d7e3329b95903880e7634c20d | Remove unnecessary ifs | static/script/game/view.js | static/script/game/view.js | $( document ).ready( function() {
$( '.creature' ).mouseover( function () {
var ARROW_HEIGHT = 14;
var ARROW_WIDTH = 30;
var id = this.getAttribute( 'data-creatureid' );
var username = this.getAttribute( 'data-username' );
var x = this.getAttribute( 'data-x' );
var y ... | JavaScript | 0.000082 | @@ -2473,152 +2473,57 @@
Node
-;%0A%0A if ( hasCreatures%5B userid %5D && $nameNode.nodeName == %22DEL%22 ) %7B%0A $newName
+ = $( document.createText
Node
- = $nameNode.firstChild;%0A %7D
+( $node.text() ) );%0A
%0A
@@ -2531,21 +2531,16 @@
-else
if ( !ha
@@ -2641,... |
1986448171a2c918a01c7dd49e832cb300160ba8 | Make request not set real href attribute. It makes a resourceful and clickable item send updates to model on click | Source/Mixin/Resource.js | Source/Mixin/Resource.js | /*
---
script: Resource.js
description: Make various requests to back end
license: Public domain (http://unlicense.org).
requires:
- LSD.Mixin
- Resource/*
- More/URI
provides:
- LSD.Mixin.Resource
...
*/
LSD.Mixin.Resource = new Class({
options: {
resource: {
prefix: null,
name... | JavaScript | 0 | @@ -480,32 +480,164 @@
%7D%0A %7D%0A %7D,%0A %0A
+ constructors: %7B%0A resource: function(options, state) %7B%0A this.pseudos%5Bstate ? 'include' : 'erase'%5D('request')%0A %7D%0A %7D,%0A %0A
getResource: f
@@ -1867,24 +1867,26 @@
model);%0A
+//
this.setAttr
|
08bdcd52b856f5ed6c91ab9c3805cf259223da0a | Fix bad d3.format metric setting and/or value === Infinity (#2399) | superset/assets/javascripts/modules/utils.js | superset/assets/javascripts/modules/utils.js | /* eslint camelcase: 0 */
const d3 = require('d3');
const $ = require('jquery');
/*
Utility function that takes a d3 svg:text selection and a max width, and splits the
text's text across multiple tspan lines such that any given line does not exceed max width
If text does not span multiple lines AND adjustedY is... | JavaScript | 0.000181 | @@ -3557,24 +3557,34 @@
ormat);%0A %7D%0A
+ try %7B%0A
return for
@@ -3608,16 +3608,54 @@
umber);%0A
+ %7D catch (e) %7B%0A return 'ERR';%0A %7D%0A
%7D%0A%0A// Sl
|
8ef25d733ca1b2623b27525a460929ab38af5668 | fix a bug for a player registering twice | lib/QueueMngr.js | lib/QueueMngr.js | "use strict";
const _ = require("lodash");
const shuffle = require('shuffle-array');
const owjs = require('overwatch-js');
const GAME_SIZE = 2;
const GROUP_SIZE = GAME_SIZE / 2;
const DEAFULT_RANK = 1500;
module.exports = {getInstance: getInstance};
function getInstance() {
var self = this;
let wa... | JavaScript | 0 | @@ -2121,32 +2121,107 @@
.catch(reject)%0D%0A
+ %7D%0D%0A else %7B%0D%0A resolve(resultAddPlayer)
%0D%0A %7D%0D
|
e307faf42079076b9f4be177e21fb73214a25866 | Make wrapAsync support wrapping async functions that return a promise | lib/fiber-utils.js | lib/fiber-utils.js | var Fiber = require('fibers');
var Future = require('fibers/future');
var _ = require('underscore');
var assert = require('assert');
// Makes a function that returns a promise or takes a callback synchronous
exports.wrapAsync = function (fn, context) {
return function (/* arguments */) {
var self = context || th... | JavaScript | 0.000003 | @@ -691,16 +691,23 @@
lback =
+_.once(
future.r
@@ -715,16 +715,17 @@
solver()
+)
;%0A
@@ -802,16 +802,16 @@
llback;%0A
-
var
@@ -840,24 +840,242 @@
, newArgs);%0A
+ if (result && _.isFunction(result.then)) %7B%0A result.then(%0A function (result) %7B%0A callback(null, result)... |
0a290abdfe42e4a80c676294f21d8f1f4f73f8a2 | Fix broken tests to restore green build | test/end-to-end/health.spec.js | test/end-to-end/health.spec.js | describe('/health', () => {
it('displays the health status of the app', () => {
browser.url('/health');
expect(browser.getText('body')).contain('"staatus":"OK"');
});
});
| JavaScript | 0 | @@ -152,17 +152,16 @@
in('%22sta
-a
tus%22:%22OK
|
8e2d69c385027c06b5fad20c79fb34b78eb0dd5e | use Nuxt 1.0 hooks instead of plugins (#195) | packages/ngrok/index.js | packages/ngrok/index.js | const chalk = require('chalk')
const ngrok = require('ngrok')
const { hostname } = require('os')
const port = process.env.PORT || process.env.npm_package_config_nuxt_port || 3000
let host = process.env.HOST || process.env.npm_package_config_nuxt_host || 'localhost'
if (host === '0.0.0.0') {
host = hostname()
}
// h... | JavaScript | 0 | @@ -729,122 +729,20 @@
uxt.
-plugin
+hook
('build
-', async builder =%3E %7B%0A builder.plugin('compile', async (%7B compiler %7D) =%3E %7B%0A compiler.plugin('
+:
done
@@ -758,28 +758,24 @@
() =%3E %7B%0A
-
-
if (!connect
@@ -783,20 +783,16 @@
dUrl) %7B%0A
-
ng
@@ -833,20 +833,16 @@
... |
27abe9ed1b2e6ded2a8d37e453065a49eb2974ab | Check if hooks dir exists, then create or rename | lib/git-scripts.js | lib/git-scripts.js |
var fs = require('fs')
, path = require('path')
, spawn = require('child_process').spawn;
module.exports = GitScripts;
function GitScripts(path) {
this.path = path = path || '.';
this.packagePath = path + '/package.json';
this.gitPath = path + '/.git';
this.hooksPath = this.gitPath + '/hooks';
this.o... | JavaScript | 0 | @@ -804,30 +804,30 @@
%7D%0A%0A fs.
-rename
+exists
(self.hooksP
@@ -835,35 +835,58 @@
th,
-self.oldHooksPath, function
+function(exists)%7B%0A function linkHooksPath
(err
@@ -889,32 +889,36 @@
(err) %7B%0A
+
+
if (err) return
@@ -925,32 +925,36 @@
callback(err);%0A%0A
+
... |
a043ac07c9de50cb131d938a7e002a88c58484a5 | stop merging conflicts with auth.js | packages/socket/auth.js | packages/socket/auth.js | var mongoose = require('mongoose');
var async = require('async');
var config = require('meanio').loadConfig();
var ret = { };
var app;
ret.createPost = function(data) {
var socket = this;
var user = socket.user;
var Post = mongoose.model('Post');
var post = new Post({
poster : user._id,
amount : da... | JavaScript | 0.000001 | @@ -2635,82 +2635,8 @@
%0A%7D;%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%0A=======%0A/*i%0A%3E%3E%3E%3E%3E%3E%3E 8ded52e9bab5d9c00cb0670c4be795aefc98ffc4
%0A//
|
c5a8f192afa12741934268a7e1908ad848fb9652 | Fix eslint comment | src/sanity/preview/utils.js | src/sanity/preview/utils.js | import guessPreviewFields from './guessPreviewFields'
// Ensure _id is in the list
export function toGradientQuerySelection(fields) {
if (Array.isArray(fields)) {
if (!fields.includes('_id')) {
return ['_id', ...fields]
}
}
return '_id' in fields ? fields : {_id: '_id', ...fields}
}
export function... | JavaScript | 0.000002 | @@ -1483,17 +1483,17 @@
ble-line
--
+
no-conso
|
2cb55e6229cb4500fd379eb86b97b25a09b1be8b | add cards random item verification | bitcoin-show/src/services/QuestionServices.js | bitcoin-show/src/services/QuestionServices.js | export function checkAnswerService(correctOptionNumber, selectedOptionNumber) {
return new Promise((resolve, reject) => {
setTimeout(() => {
if (selectedOptionNumber === undefined || selectedOptionNumber < 1) {
reject('Select an option!');
}
const isAnswerCorrect = (selectedOptionNumber ... | JavaScript | 0 | @@ -435,17 +435,24 @@
Service(
-q
+currentQ
uestion,
@@ -473,24 +473,30 @@
ns) %7B%0A
+const
question
.options
@@ -491,63 +491,223 @@
tion
-.options = question.options.filter(item =%3E item
+ = JSON.parse(JSON.stringify(currentQuestion));%0A let x = numberOfOptions;%0A while (x %3E 0) %7B%0A const randomI... |
a4f09228d877c54200337d59e91037e4e58a6167 | fix remainder being 0 | lib/hexbin-view.js | lib/hexbin-view.js | 'use babel';
export default class HexbinView {
constructor(serializedState) {
this.element = document.createElement('div');
this.element.classList.add('test-signature-statusbar', 'inline-block');
this.element.textContent = "init element";
this.editor = atom.workspace.getActiveTextEditor()
}
sub... | JavaScript | 0.999999 | @@ -1315,24 +1315,53 @@
ength %25 8;%0A%0A
+ if (remainder %3E 0) %7B%0A
while
@@ -1386,24 +1386,26 @@
%7B%0A
+
bin = %220%22 +
@@ -1409,16 +1409,26 @@
+ bin;%0A
+ %7D%0A
%7D%0A
|
849e3a1a17ea87fc0d3769db5496526c8ae1e043 | return segment on addSegment | lib/hl7/message.js | lib/hl7/message.js | var header = require('./header');
var segment = require('./segment');
function message() {
this.header = new header();
this.segments = [];
if (arguments.length > 0) {
for (var i = 0; i < arguments.length; i++) {
this.header.addField(arguments[i]);
}
}
}
message.prototype.getSegment = functi... | JavaScript | 0.000004 | @@ -996,24 +996,39 @@
push(s);%0A %7D
+%0A %0A return s;
%0A%0A%7D%0A%0Amessage
|
01d780f14ea89118b8cb2da5edcced08daea7ec5 | Add USER_NAVIGATED | src/redux/reducers/display.js | src/redux/reducers/display.js | import initialState from '../initialState';
import {
APP_READY,
HEADER_TOGGLED,
DRAWER_TOGGLED,
NAVBAR_TOGGLED,
HEADER_PANEL_OPENED,
THREAD_REQUESTED,
THREAD_CACHE_LOADED,
THREAD_DESTROYED,
HEADER_PANEL_CLOSED
} from '../types';
export default function (state = initialState.display... | JavaScript | 0.000001 | @@ -238,16 +238,36 @@
L_CLOSED
+,%0A USER_NAVIGATED
%0A%7D from
@@ -1468,32 +1468,166 @@
%7D)%0A%0A
+ case USER_NAVIGATED:%0A return Object.assign(%7B%7D, state, %7B%0A activeView: action.payload%0A %7D)%0A%0A
default:
|
329f6185fb7fc14e25bfc92067c34289f78914a7 | fix httpRequest library bug | lib/httpRequest.js | lib/httpRequest.js | /**
* Created by cherokee on 14-6-16.
*/
var cheerio = require('cheerio');
var urlUtil = require("url");
var iconv = require('iconv-lite');
var BufferHelper = require('bufferhelper');
try { var unzip = require('zlib').unzip } catch(e) { console.error('unzip not supported') }
try { var inflate = require('zlib').infl... | JavaScript | 0.000001 | @@ -2142,16 +2142,22 @@
callback
+,param
);%0A
|
c4716c5e685d2e44a2013b500378d2fd70080f2c | Disable Mincer's logger | lib/init/assets.js | lib/init/assets.js | "use strict";
/*global nodeca, _*/
// stdlib
var fs = require('fs');
var path = require('path');
// 3rd-party
var Mincer = require('mincer');
var UglifyJS = require('uglify-js');
var Csso = require('csso');
var nib = require('nib');
// NLib
var HashTree = require('nlib').Support.Ha... | JavaScript | 0.000001 | @@ -2612,81 +2612,8 @@
;%0A%0A%0A
- // Use nodeca.logger for logging%0A Mincer.logger.use(nodeca.logger);%0A%0A%0A
//
|
c01f8363919e687800cbba3aff1d9f9514072fd6 | Fix typo | embark-ui/src/components/EnsResolve.js | embark-ui/src/components/EnsResolve.js | import React, {Component} from 'react';
import {
Alert,
Button,
Form
} from "tabler-react";
import PropTypes from 'prop-types';
class EnsResolve extends Component {
constructor(props) {
super(props);
this.state = {
subdomain: '',
showResult: false
};
}
handleChange(e) {
this.s... | JavaScript | 0.999999 | @@ -990,12 +990,17 @@
r a
-name
+subdomain
%22 on
|
32098ae949f4bed046bd608423072fa0ee212d6d | Remove unused `id` property | ember/app/components/layer-switcher.js | ember/app/components/layer-switcher.js | import Component from '@ember/component';
import { inject as service } from '@ember/service';
export default Component.extend({
tagName: '',
mapSettings: service(),
map: null,
open: false,
baseLayers: null,
overlayLayers: null,
actions: {
open() {
this.updateLayers();
this.set('open', ... | JavaScript | 0 | @@ -796,42 +796,8 @@
%3E %7B%0A
- let id = layer.get('id');%0A
@@ -957,12 +957,8 @@
rn %7B
- id,
nam
|
4a36e526fe169636fe5f5c6b5ee4347f294ee66d | fix sqlite for windows | deps/sqlite/configure.js | deps/sqlite/configure.js | exports.configureCompiler = function(objectFile, compiler) {
// объектные файлы: <conf>/object
var a = /^([^\/]+)\/([^\/]+)$/.exec(objectFile);
compiler.configuration = a[1];
compiler.cppMode = false;
compiler.setSourceFile(a[2] + '.c');
compiler.addMacro('SQLITE_HAVE_ISNAN');
};
var libraries = {
'libsqlite': ... | JavaScript | 0.000006 | @@ -236,16 +236,51 @@
'.c');%0A
+%09if(compiler.platform != 'win32')%0A%09
%09compile
|
8a5c1498e9169eb9746af527bf7e2b6d0ec0f892 | remove commented code from gulpfile | frontend/gulpfile.js | frontend/gulpfile.js | const gulp = require("gulp");
const scss = require("gulp-sass");
// const plumber = require("gulp-plumber");
const autoprefixer = require('gulp-autoprefixer');
// const watch = require("gulp-watch");
// const cssmin = require("gulp-cssmin");
const rimraf = require("rimraf");
const mustache = require("gulp-mustache");
c... | JavaScript | 0 | @@ -62,52 +62,8 @@
%22);%0A
-// const plumber = require(%22gulp-plumber%22);%0A
cons
@@ -113,90 +113,8 @@
');%0A
-// const watch = require(%22gulp-watch%22);%0A// const cssmin = require(%22gulp-cssmin%22);%0A
cons
|
572e017834ae45614df8a24f1943571f9720536f | add remaining value | lib/jiraloglist.js | lib/jiraloglist.js | const request = require('request')
const moment = require('moment')
const WebClient = require('@slack/client').WebClient
const debug = require('debug')('jiraloglist')
async function jll (config, dayToCheck = moment().startOf('day').subtract(1, 'd'), range = 1) {
debug('config', config)
debug('dayToCheck', dayToCh... | JavaScript | 0.000002 | @@ -2040,16 +2040,29 @@
,worklog
+,timetracking
',%0A
@@ -3090,16 +3090,28 @@
key%5D = %7B
+%0A
desc: i
@@ -3130,16 +3130,28 @@
summary,
+%0A
timeSpe
@@ -3174,16 +3174,94 @@
tSeconds
+,%0A remaining: issue.fields.timetracking.remainingEstimate%0A
%7D%0A
@@ ... |
f16f6c0f12a134f243251ac6da72b3fa70bf2e70 | update Guide | src/Guide/Guide.js | src/Guide/Guide.js | /**
* @file Guide component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TriggerPop from '../_TriggerPop';
import Position from '../_statics/Position';
import MsgType from '../_statics/... | JavaScript | 0.000001 | @@ -4389,24 +4389,63 @@
Types.bool,%0A
+ resetPositionWait: PropTypes.bool,%0A
showModa
@@ -5407,24 +5407,52 @@
xed: false,%0A
+ resetPositionWait: 250,%0A
showModa
@@ -5548,8 +5548,9 @@
t Guide;
+%0A
|
0d781206b54e993d579789d9e76a4a0e77ef84d1 | fix firefox bug with using available scrollTop | src/IsScrolling.js | src/IsScrolling.js | /* eslint-disable no-undef */
import React from 'react';
import ReactDOM from 'react-dom';
function debounce(func) {
let timeout;
return function(...args) {
const context = this;
const lastCall = () => {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout ... | JavaScript | 0 | @@ -350,16 +350,151 @@
%0A %7D%0A%7D%0A%0A
+function getBrowserScrollTop() %7B%0A return window.pageYOffset %7C%7C document.documentElement.scrollTop %7C%7C document.body.scrollTop %7C%7C 0;%0A%7D%0A%0A
const Is
@@ -961,47 +961,27 @@
op:
-this.DOMElement.document.body.s
+getBrowserS
crollTop
,%0A
@@ -976,16 +... |
d11691faa50e9b675ed6cfd7ed7cbfd3b371c58c | Fix mock server response code. | lib/mapbox-mock.js | lib/mapbox-mock.js | var fs = require('fs');
var path = require('path');
var mapboxUpload = require('mapbox-upload');
// Mock mapbox API for testing.
module.exports = function(app) {
app.use(app.router);
app.get('/api/User/test', function(req, res, next) {
res.send({statusCode:200});
});
app.get('/api/Map', oauth, fun... | JavaScript | 0 | @@ -859,23 +859,12 @@
end(
-new Error(
404)
-)
;%0A
|
839ee0385af2e6a9917826b07dd61c851244e6e0 | Add method "getLanguageBook" to book model | lib/models/book.js | lib/models/book.js | var path = require('path');
var Immutable = require('immutable');
var Logger = require('../utils/logger');
var FS = require('./fs');
var Config = require('./config');
var Readme = require('./readme');
var Summary = require('./summary');
var Glossary = require('./glossary');
var Languages = require('./languages');
var... | JavaScript | 0.00032 | @@ -3716,24 +3716,231 @@
age());%0A%7D;%0A%0A
+/**%0A Return a languages book%0A%0A @param %7BString%7D language%0A @return %7BBook%7D%0A*/%0ABook.prototype.getLanguageBook = function(language) %7B%0A var books = this.getBooks();%0A return books.get(language);%0A%7D;%0A%0A
/**%0A Add
|
d0725ab623320b56c32b2deaf0540e24cc387f7b | update url.parse so it match node documentation | lib/modules/url.js | lib/modules/url.js |
// RegExp is from http://blog.stevenlevithan.com/archives/parseuri
var urlParser = /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/;
var queryParser = /(?:^|&)([^&=]*)=?([^&]*)/g;
exports.parse = function (url, parseQuery) {
va... | JavaScript | 0 | @@ -362,42 +362,41 @@
= %7B
-%0A href: result%5B0%5D,%0A
+%7D;%0A%0A if (result%5B1%5D) uri.
protocol
: re
@@ -391,17 +391,18 @@
protocol
-:
+ =
result%5B
@@ -427,54 +427,37 @@
':'
-,%0A host: result%5B2%5D.toLowerCase(),%0A
+;%0A if (result%5B3%5D) uri.
auth
-:
+ =
res
@@ -466,22 +466,39 @@... |
cf3091a07046da5404a166ca91b53ce4478df508 | reset data before each test | etc/protractor/specs/auth/auth.spec.js | etc/protractor/specs/auth/auth.spec.js | 'use strict';
var _ = require('lodash');
var po = require('../../pageobjects/pageobjects.js');
var devApi = require('../devApi')();
var common = require('../common');
describe('authorization', function () {
var indexPage = po.indexPage({});
var authModal = po.authModal();
var operatorPage = po.operatorP... | JavaScript | 0.000003 | @@ -470,32 +470,59 @@
ch(function() %7B%0A
+ devApi.resetAll();%0A
devApi.c
|
7c38866cdd74fd97d2d12e21edae5fdbc96fc717 | build qwest miss | server/data.js | server/data.js | 'use strict'
module.exports = {
Checkbox: {
path: './Checkbox',
dependencies: [ 'FormControl' ]
},
CheckboxGroup: {
path: './CheckboxGroup',
dependencies: [ 'Checkbox', 'FormControl' ]
},
Datetime: {
path: './Datetime',
dependencies: [ 'FormControl', 'Lang' ]
},
Input: {
pa... | JavaScript | 0.00001 | @@ -1369,17 +1369,17 @@
path: '
-Q
+q
west'%0A
|
5a4d39ea77814fb61aa05f5cff7d7eab6ec4457b | Clean up main server file | server/main.js | server/main.js | const express = require('express');
const logger = require('winston');
//=========================================================
// SETUP
//---------------------------------------------------------
const PROJECT_ROOT_DIR = process.cwd();
const app = express();
app.set('host', process.env.HOST || 'localhost');
ap... | JavaScript | 0.000001 | @@ -27,17 +27,16 @@
xpress')
-;
%0Aconst l
@@ -61,17 +61,16 @@
inston')
-;
%0A%0A%0A//===
@@ -232,17 +232,16 @@
ss.cwd()
-;
%0A%0Aconst
@@ -255,17 +255,16 @@
xpress()
-;
%0A%0Aapp.se
@@ -305,17 +305,16 @@
alhost')
-;
%0Aapp.set
@@ -347,17 +347,16 @@
%7C%7C 3000)
-;
%0A%0Aapp.us
@@ -382,17 +382,16 @@
('dev... |
beed6ab95bf2cc07b6ac66a084e1988f0e1c7a24 | remove more dead code | server/main.js | server/main.js | import Koa from 'koa'
import Router from 'koa-router'
import convert from 'koa-convert'
import bodyParser from 'koa-bodyparser'
import webpack from 'webpack'
import webpackConfig from '../build/webpack.config'
import historyApiFallback from 'koa-connect-history-api-fallback'
import serve from 'koa-static'
import proxy ... | JavaScript | 0.00013 | @@ -598,42 +598,8 @@
api'
-%0Aimport logger from './lib/logger'
%0A%0Aco
@@ -737,144 +737,8 @@
%7D)%0A%0A
-// basic error logging%0A// app.on('error', (err, ctx) =%3E %7B%0A// logger.error(%60Error: $%7Berr%7D%60)%0A// logger.error(%60ctx was $%7Bctx%7D%60)%0A// %7D)%0A%0A
// E
|
466b5fda8464de6c4363af27cd796fe2babcf828 | update dictionary for node-forge. addresses #791 | dictionary/node-forge.js | dictionary/node-forge.js | 'use strict';
module.exports = {
pkg: {
scripts: [
'js/*.js'
]
}
};
| JavaScript | 0.000073 | @@ -51,16 +51,34 @@
ipts: %5B%0A
+ 'lib/*.js',%0A
'j
|
16593ef56d1d62f041f63907926c40e47146cecf | fix the diff | lib/ometajs/api.js | lib/ometajs/api.js | var api = exports;
var ometajs = require('../ometajs'),
path = require('path'),
fs = require('fs');
//
// ### function compile (code, options)
// #### @code {String} Ometajs source code
// #### @options {Object} Compiler options
// Compiles ometajs to javascript
//
api.compile = function compile(code, options... | JavaScript | 0.999914 | @@ -548,24 +548,25 @@
require !==
+'
undefined &&
@@ -562,16 +562,17 @@
ndefined
+'
&& type
@@ -597,16 +597,17 @@
ons !==
+'
undefine
@@ -607,16 +607,17 @@
ndefined
+'
) %7B //pr
|
6559094f9bf195b5ce197f9a6f99d94d36b0d29a | update test basic.js | test/managers/inventory/report-manager/basic.js | test/managers/inventory/report-manager/basic.js | var helper = require("../../../helper");
var ReportManager = require("../../../../src/managers/inventory/report-manager");
var InventoryDataUtil = require("../../../../test/data-util/inventory/report-manager-data-util");
var reportManager = null;
var realizationOrder = null;
function processingData(data) {
return ... | JavaScript | 0 | @@ -1,12 +1,44 @@
+var should = require(%22should%22);%0A
var helper =
@@ -1683,108 +1683,30 @@
-if (
result
-) %7B%0A console.log(%22Done: with result%22);%0A done
+.should.be.Array
();%0A
@@ -1716,30 +1716,8 @@
-
- %7D else %7B%0A
@@ -1725... |
3c7de42ed642dae2a64ef052c549d83dcc6bce56 | Test for category-controller - Dog user loads categories of Cats, cats have only private posts but the Dog is friends with the authors | tests/controllers/categoryController-test.js | tests/controllers/categoryController-test.js | const expect = require('chai').expect
const config = require('../../config/config')['test']
require('../../config/database')(config) // load the DB models
const mongoose = require('mongoose')
const Post = mongoose.model('Post')
const Category = mongoose.model('Category')
const User = mongoose.model('User')
const cate... | JavaScript | 0 | @@ -5151,16 +5151,850 @@
)%0A %7D)%0A%0A
+ it('Dog user loads categories of Cats, cats have only private posts but the Dog is friends with the authors, should see all of them', function (done) %7B%0A // Make the users friends%0A secondUser.friends.push(requestMock.user.id)%0A secondUser.save().then(() =%3E ... |
9d9c9b3b13b7d42da1c384fbbd28cfa20fe8ed28 | fix lint | lib/plugins/irc.js | lib/plugins/irc.js | /*
* Copyright 2011 Rackspace
*
* 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... | JavaScript | 0.000013 | @@ -2954,13 +2954,8 @@
%7D;%0A%0A
-%7D;%0A%0A%0A
%0Afun
|
a854ec6bd64a66dae9013b2bd92ff89ad389535d | Use socket.destroy() not socket.end() on successful connection | lib/portscanner.js | lib/portscanner.js | var net = require('net')
, Socket = net.Socket
, async = require('async')
var portscanner = exports
/**
* Finds the first port with a status of 'open', implying the port is in use and
* there is likely a service listening on it.
*
* @param {Number} startPort - Port to begin status check on (inclusive).
... | JavaScript | 0 | @@ -3248,19 +3248,23 @@
socket.
-end
+destroy
()%0A %7D)%0A
|
dfa4b67c7c4e770b842fcc5fbe086893a4f7cf9a | refactor if to ternary | lib/proportions.js | lib/proportions.js | define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode", "vercomp"],
function (Chroma, V, numeral, Filter, vercomp) {
return function (config, filterManager) {
var self = this
var scale = Chroma.scale("YlGnBu").mode("lab")
var statusTable = document.createElement("table")
statusT... | JavaScript | 0.999999 | @@ -3689,66 +3689,25 @@
-if (d)%0A return %22ja%22%0A else%0A return
+return d ? %22ja%22 :
%22ne
|
f524c71c0b0e0aec3ed406e1c11e4757ebdab27b | Fix assertions in testUtil | tests/_support/utils/__tests__/testUtil-test.js | tests/_support/utils/__tests__/testUtil-test.js | const testUtil = require('../testUtil');
describe('testUtil', function () {
describe('#getSearchParameter', function () {
it('should get first search parameter', function () {
const uri = 'something?q=something&q=somethingelse';
expect(testUtil.getSearchParameter(uri)).to.equal('q=something');
})... | JavaScript | 0.000003 | @@ -280,26 +280,25 @@
ter(uri)).to
-.e
+E
qual('q=some
@@ -473,10 +473,9 @@
).to
-.e
+E
qual
|
2d845a45af774718c5958f8b2bcea2f0410c784a | add test for instructions view_history data JSON conversion - #670 | tests/jsPsych.data/data-json-conversion.test.js | tests/jsPsych.data/data-json-conversion.test.js | const root = '../../';
const utils = require('../testing-utils.js');
jest.useFakeTimers();
describe('data conversion to json', function(){
beforeEach(function(){
require(root + 'jspsych.js');
});
test('survey-text data response object is correctly converted', function(){
require(root + 'plugins/jspsych... | JavaScript | 0 | @@ -3040,11 +3040,952 @@
;%0A %7D)%0A%0A
+ test('instructions view_history is correctly converted - issue #670', function()%7B%0A require(root + 'plugins/jspsych-instructions.js');%0A%0A var trial = %7B%0A type: 'instructions',%0A pages: %5B'page 1','page 2'%5D,%0A key_forward: 'a',%0A allo... |
822bfcbb696d44db9749dcc1ae60e8115bd9155c | remove unused variable | lib/script-view.js | lib/script-view.js | 'use babel';
import { $$ } from 'atom-space-pen-views-plus';
import { MessagePanelView } from 'atom-message-panel';
import _ from 'underscore';
import AnsiFilter from 'ansi-to-html';
import stripAnsi from 'strip-ansi';
import HeaderView from './header-view';
import linkPaths from './link-paths';
// Runs a portion of... | JavaScript | 0.000149 | @@ -1275,26 +1275,8 @@
er.%0A
- let position;%0A
|
2a6a27757713d93d72a664443ff3702c20562e2b | check for results | lib/search-apis.js | lib/search-apis.js | // api type searchers
var qs = require('querystring');
var utils = require('./utils');
// determine type at call time
exports.exec = function(api, context, callback) {
// NCBI pubmed api
if (api === 'entrez.esearch') {
var queryURI = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?' + qs.stringify({
... | JavaScript | 0 | @@ -1261,32 +1261,73 @@
parse(results);%0A
+ if (json.SearchResponse.Web) %7B%0A
json.Sea
@@ -1379,32 +1379,34 @@
lt) %7B%0A
+
+
callback(null, r
@@ -1426,36 +1426,48 @@
ntext);%0A
+
%7D);%0A
+ %7D%0A
%7D%0A %7D);%0A
@@ -2154,16 +2154,58 @@
ryURI);%0A
+ ... |
15024998998dc8bcfd74715ac9308df79d7e43fb | Add start and end indexes for specs | lib/spec-parser.js | lib/spec-parser.js | var XRegExp = require('xregexp').XRegExp
function Spec (name, js, hb) {
this.name = name
this.js = js
this.hb = hb
}
var jsExtractor = XRegExp('```js\\s(((?!```).)+)```', 'si'),
hbExtractor = XRegExp('```hb\\s(((?!```).)+)```', 'si')
function extractJS (source) {
return jsExtractor.exec(source)[1]
}
... | JavaScript | 0 | @@ -62,16 +62,28 @@
, js, hb
+, start, end
) %7B%0A th
@@ -131,16 +131,114 @@
= hb%0A
+ // Start and end indexes of the spec in the source file%0A this.start = start%0A this.end = end%0A
%7D%0A%0Avar j
@@ -1447,16 +1447,44 @@
e.trim()
+, openingIndex, closingIndex
))%0A %7D%0A
|
39085f3ce50fd8b9b4b1a419061816a706dba2c1 | reformat isEmpty | lib/src/isEmpty.js | lib/src/isEmpty.js | module.exports = function (arr) {
if (arr.length === 0) return true
else return false
} | JavaScript | 0.000121 | @@ -1,29 +1,12 @@
-module.exports =
function
(ar
@@ -1,16 +1,24 @@
function
+ isEmpty
(arr) %7B
@@ -60,13 +60,8 @@
e%0A
-else
retu
@@ -70,8 +70,35 @@
false%0A%7D
+%0A%0Amodule.exports = isEmpty%0A
|
ce731a571a38c5324cbf858c4825de000721bed0 | Add custom auth to settings | lib/swssettings.js | lib/swssettings.js | /* swagger-stats Settings */
const os = require('os');
const path = require('path');
const swsUtil = require('./swsUtil');
const packageInfo = require('../package.json');
const debug = require('debug')('sws:settings');
/* swagger=stats settings */
class SwsSettings {
constructor() {
// Hostname. Will at... | JavaScript | 0.000001 | @@ -3380,20 +3380,24 @@
//
- Only
Basic
+& custom
auth
@@ -3407,18 +3407,19 @@
ication
-is
+are
support
@@ -3449,32 +3449,340 @@
ication = false;
+%0A %0A // Enable Your own authentication: a function that takes%0A // customAuth(req)%0A // - req - request%0A // must retur... |
75942ba31caa703ee60d48b61197b10f27b4f852 | update events | lib/transaction.js | lib/transaction.js | /**
* Module dependencies
*/
var debug = require('debug')('dad:transaction');
var assert = require('assert');
/**
* Save a record or an array of records to the store.
*
* TODO: implement reference counting as shown in:
* https://developers.soundcloud.com/blog/building-the-next-soundcloud/
*
* @params {Object... | JavaScript | 0.000002 | @@ -218,18 +218,17 @@
hown in:
-
%0A
+
* https
@@ -485,17 +485,16 @@
record),
-
%0A 'St
@@ -651,13 +651,9 @@
');%0A
-
%0A
+
//
@@ -1186,35 +1186,38 @@
%0A this.emit('
-add
+change
', record);%0A
@@ -1783,19 +1783,22 @@
s.emit('
-add
+change
', recor
@@ -2694,21 +2694,21 @@
s.emit('
-upda... |
c27f7d052d35323e1061d6d5fef215b44979b2d6 | Make eval run sendMessage | lib/ui/inputbar.js | lib/ui/inputbar.js | var blessed = require('blessed');
var keys = require('../keys.json');
var session = require('../app');
var ui = require('./ui');
var box = {};
module.exports = {
read,
box,
createBox: (screen) => {
box = blessed.textbox({
grabKeys: true,
inputOnFocus: false,
... | JavaScript | 0.000008 | @@ -1398,141 +1398,295 @@
-ui.chatwin.print('log', msg);%0A //testing - replace to ui.steam.friends.sendMessage after checking currentChat and if connected
+const curr = session.currentChat;%0A if (curr === 'log')%0A ui.chatwin.print('log', msg);%0A else if (session.connected) %7B%... |
2de585aa436a9282d7feb72d5a5d8da36ae50252 | Update Auth0 Lock to use conveyal logo, conveyal blue, and disallow sign ups or logging | lib/utils/auth0.js | lib/utils/auth0.js | import Auth0Lock from 'auth0-lock'
import Auth0Client from 'auth0-js'
import {push} from 'react-router-redux'
import {setUser} from '../actions'
const localStorage = window.localStorage
export const authIsRequired = process.env.AUTH0_CLIENT_ID && process.env.AUTH0_DOMAIN
export const lock = authIsRequired
? new A... | JavaScript | 0 | @@ -138,16 +138,50 @@
actions'
+%0Aimport messages from './messages'
%0A%0Aconst
@@ -534,45 +534,251 @@
-closeable: false,%0A autoclose: true
+allowSignUp: false,%0A theme: %7B%0A logo: 'http://conveyal.com/img/logo-128x128.png',%0A primaryColor: '#2389c9'%0A %7D,%0A closeable: false,%0A ... |
b9c7c3cfcead3b0076afa5244386c7e972698074 | remove junk from pushToStream function | lib/utils/index.js | lib/utils/index.js | 'use strict';
/**
* Module dependencies
*/
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var relative = require('relative');
var mdu = require('markdown-utils');
var mm = require('micromatch');
var Vinyl = require('vinyl');
var _ = require('lodash');
/**
* File cache
*/
var c... | JavaScript | 0 | @@ -2313,21 +2313,8 @@
) %7B%0A
- var i = 0;%0A
fo
@@ -2393,86 +2393,91 @@
-var file = collection%5Bkey%5D;%0A stream.push(fn ? fn(file, Vinyl, i++) : file
+stream.push(typeof fn === 'function' ? fn(collection%5Bkey%5D, Vinyl) : collection%5Bkey%5D
);%0A
|
bf32074472ecb0d4baf0fa16cc557f618cc83879 | update commands | lib/webpack-cli.js | lib/webpack-cli.js | const { resolve, parse, join } = require('path');
const { existsSync } = require('fs');
const GroupHelper = require('./utils/group-helper');
const Compiler = require('./utils/compiler');
const webpackMerge = require('webpack-merge');
class WebpackCLI extends GroupHelper {
constructor() {
super();
... | JavaScript | 0.998597 | @@ -6198,66 +6198,41 @@
s =
-%5B'create', 'loader', 'plugin', 'migrate', 'info', 'serve'%5D
+require('./utils/commands').names
;%0A
|
92cdfc7c3656c760488c2f79fe6621b7da8f5e9c | Fix top description. Probably copied from another file. | examples/play_soundfile/sketch.js | examples/play_soundfile/sketch.js | // ====================
// DEMO: play a sound at a random speed/pitch when the ball hits the edge
// ====================
// create a variable for the sound file
var soundFile;
function setup() {
createCanvas(400, 400);
background(0);
// create a SoundFile
soundFile = loadSound( ['../_files/beatbox.ogg', '..... | JavaScript | 0 | @@ -43,59 +43,35 @@
und
-at a random speed/pitch when the ball hits the edge
+when the user presses a key
%0A//
|
1ef31b1371b1cd1f620ac1a8d625f31aa46a8866 | Add the other endpoints for Yahoo! | lib/yahoo/yahoo.js | lib/yahoo/yahoo.js | // --------------------------------------------------------------------------------------------------------------------
//
// yahoo/yahoo.js - class for the Yahoo API
//
// Copyright (c) 2012 AppsAttic Ltd - http://www.appsattic.com/
// Written by Andrew Chilton <chilts@appsattic.com>
//
// License: http://opensource.o... | JavaScript | 0.000001 | @@ -2009,27 +2009,36 @@
'/oauth/v2/
-???
+request_auth
';%0A%7D;%0AYahoo.
@@ -2188,11 +2188,17 @@
/v2/
-???
+get_token
';%0A%7D
|
c35be8ec4c26b9135183b8086a5fc893bb1f7e4f | Use os.EOL for testing | test/integration/handle_404.js | test/integration/handle_404.js | var expect = require('expect.js');
var hoodie_server = require('../../');
var http = require('http');
var config = {
www_port: 5011,
admin_port: 5021,
admin_password: '12345'
};
var hasServer = false;
function start_server(callback) {
if(hasServer) {
return callback();
}
hoodie_server.start(config, f... | JavaScript | 0 | @@ -94,16 +94,40 @@
'http');
+%0Avar os = require('os');
%0A%0Avar co
@@ -960,11 +960,18 @@
('hi
-%5Cn'
+' + os.EOL
);%0A
|
7f2bd62de54f088964e682263cd22b8cc886b269 | Fix --debug cli flag | src/scripts/browser/main.js | src/scripts/browser/main.js | import dialog from 'dialog';
import yargs from 'yargs';
import path from 'path';
import app from 'app';
import filePaths from './utils/file-paths';
import manifest from '../../package.json';
// Handle uncaught exceptions
process.on('uncaughtException', function(ex) {
const isDevRelease = manifest.distrib == 'unset'... | JavaScript | 0 | @@ -22,16 +22,43 @@
ialog';%0A
+import debug from 'debug';%0A
import y
@@ -2414,16 +2414,130 @@
DEBUG;%0A%0A
+ // Force-enable debug%0A if (options.debug && !process.env.DEBUG) %7B%0A debug.enable(manifest.name + ':*');%0A %7D%0A%0A
log('c
|
372a7e3855522a62d6d4b5865335eabfdb89f632 | fix typo in custom background | src/scripts/models/board.js | src/scripts/models/board.js | import immutable from 'immutable'
import Ticket from '../models/ticket';
import User from '../models/user';
const Background = {
DEFAULT: {
url: '/dist/assets/img/bg/1.png',
description: 'Welcome'
},
CUSTOM: {
url: null,
description: 'Choose our own'
},
BLANK: {
url: null... | JavaScript | 0.000004 | @@ -268,22 +268,31 @@
n: '
-Choo
+U
se
+y
our own
+ background
'%0A%09%7D
|
98d04d003ada805cda19f0abbb4550ad2b3ad53c | Fix indents :) | lib/collector.js | lib/collector.js | const ss = require("simple-storage");
const tabs = require("tabs");
const data = require("self").data;
var reportTab = null;
if (!ss.storage.requests) {
ss.storage.requests = [];
}
function collectRequest(requestData){
ss.storage.requests.push(requestData);
}
function reportToConsole(){
for (var r in ss.stora... | JavaScript | 0.000002 | @@ -417,17 +417,18 @@
HTML()%7B%0A
-%09
+
var foun
@@ -438,17 +438,18 @@
false;%0A
-%09
+
for each
@@ -468,18 +468,20 @@
tabs)%7B%0A
-%09%09
+
if (tab.
@@ -508,19 +508,22 @@
ort') %7B%0A
-%09%09%09
+
found =
@@ -532,11 +532,14 @@
ue;%0A
-%09%09%09
+
tab.
@@ -554,16 +554,20 @@
();%0A
-%... |
c243407732ec36af851302d8b4ee5caebfdd829f | change component api | lib/component.js | lib/component.js | var path = require('path');
var fs = require('fs');
var notSupported = require('./notSupported');
var promzard = require('promzard');
var generatePath = '../generate/';
function generate(program){
if(!program) return false;
var file = path.resolve(__dirname, generatePath + program.generate + '.js');
if(fs... | JavaScript | 0.000001 | @@ -182,23 +182,25 @@
enerate(
-program
+component
)%7B%0A i
@@ -202,23 +202,25 @@
if(!
-program
+component
) return
@@ -285,24 +285,17 @@
h +
-program.generate
+component
+ '
|
08ac92ec9a6e57d856d01817e15efc8c6f76d863 | Edit for code style. | lib/component.js | lib/component.js | // Load modules.
var debug = require('debug')('electrolyte')
, NotImplementedError = require('./errors/notimplemented')
, Promise = require('promise');
/**
* A specification of an object.
*
* A specification defines how an object is created. The specification includes
* a "factory" which is used to create ob... | JavaScript | 0 | @@ -2627,16 +2627,24 @@
omise, p
+, i, len
;%0A for
@@ -2644,20 +2644,16 @@
%0A for (
-var
i = 0, l
|
46e122e1d3f12b2ef856e8e7a98644020a885cfb | Improve compatibility. | lib/condition.js | lib/condition.js | "use strict";
/**
* Creates an instance of Condition that is used by the DynamoDB Document client.
*
* @param {string} key The attribute name being conditioned on.
* @param {string} operator The operator in the conditional clause. (See aws sdk docs for full list of operators)
* @param val<n> Potential <n>nd eleme... | JavaScript | 0 | @@ -887,16 +887,115 @@
args;%0A%0A
+ // for comatibility%0A this.val1 = args%5B0%5D;%0A this.val2 = args%5B1%5D;%0A%0A
|
f382b9643a4883a62604ddafec640c34b2bf0fa6 | Clean up itemTypes | src/services/getMetadata.js | src/services/getMetadata.js | const db = require('../db');
const getRoot = (callback) => {
db.query(`
SELECT * FROM Artists
ORDER BY name
`, (err, results = []) => {
if (err) {
console.log(err);
return callback({})
}
const artists = results.map(artist => {
return {
id: `Artist:${artist.slug}`,
... | JavaScript | 0 | @@ -321,37 +321,38 @@
itemType: '
-other
+artist
',%0A displ
@@ -1142,11 +1142,15 @@
e: '
-oth
+contain
er',
@@ -2145,36 +2145,41 @@
itemType: '
-show
+container
',%0A displ
@@ -3148,20 +3148,21 @@
mType: '
-show
+album
',%0A
|
90aa08e6862db45cd5ff20d4c9029e191dec0768 | Set a more aggresive healthcheck. | lib/container.js | lib/container.js | /*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... | JavaScript | 0 | @@ -3116,23 +3116,522 @@
-cb(null, system
+var params = %7B%0A HealthCheck: %7B%0A HealthyThreshold: 2,%0A Interval: 30,%0A Target: 'TCP:' + container.specific.Listeners%5B0%5D.InstancePort,%0A Timeout: 5,%0A Unhea... |
f9a2ebf88e6393c422b1e2d979f3113bdd55b26e | fix Maximum call stack | lib/core/crop.js | lib/core/crop.js | /**
* image trim
*/
var fs = require('fs'),
path = require('path'),
mkdirp = require('mkdirp'),
PNG = require('pngjs').PNG;
function createPng(width, height) {
var png = new PNG({ width: width, height: height });
for (var y = 0; y < png.height; y++) {
for (var x = 0; x < png.width; x++)... | JavaScript | 0.000002 | @@ -1250,23 +1250,194 @@
var
-xx = %5B%5D,yy = %5B%5D
+max_y = Number.MIN_VALUE,%0A min_y = Number.MAX_VALUE,%0A max_x = Number.MIN_VALUE,%0A min_x = Number.MAX_VALUE
;%0A%0A
@@ -1692,24 +1692,25 @@
3%5D !== 0) %7B%0A
+%0A
... |
1949c521de5ed8732acebbc9e34751264c04124a | Add particle drawing to canvas imageData. | particles/js/conjure.js | particles/js/conjure.js | (function( window, document, undefined ) {
'use strict';
var canvas = document.getElementById( 'canvas' ),
context = canvas.getContext( '2d' );
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
var particles = [];
var particleWidth = 1,
particleHeight = 1;
var drag ... | JavaScript | 0 | @@ -2225,16 +2225,25 @@
ion draw
+Particles
( ctx )
@@ -2248,123 +2248,8 @@
) %7B%0A
- var width = ctx.canvas.width,%0A height = ctx.canvas.height;%0A%0A ctx.clearRect( 0, 0, width, height );%0A%0A
@@ -2487,16 +2487,16 @@
%7D);%0A%0A
-
ctx.
@@ -2538,24 +2538,1482 @@
over';%0A %7D%0A%0... |
633954a73e5e7bbcda78c02b40a733d6b3d78224 | verify top | lib/covershot.js | lib/covershot.js | var replacements = [];
global.top = {};
function getReplacement(path) {
var length = replacements.length;
if (length === 0) {
return path.replace('/lib', '/lib-cov');
}
for (var i = 0; i < length; i++) {
if (replacements[i].regex.test(path)) {
return path.replace(replacements[i].regex, replace... | JavaScript | 0 | @@ -17,16 +17,37 @@
= %5B%5D;%0A%0A
+if (!global.top) %7B%0A
global.t
@@ -54,16 +54,18 @@
op = %7B%7D;
+%0A%7D
%0A%0Afuncti
|
7a29b2f38fa513c0ad1b5208819ab63e00ce9f80 | add translation for history.p2 | frontend/utils/i18n/i18n_ru.js | frontend/utils/i18n/i18n_ru.js | export default {
main: {
Toma: `Тома`,
and: `&`,
Oleg: `Олег`,
date: `06 августа 2016, Киев`
},
menu: {
wedding: `Наша свадьба`,
map: `Карта`,
location: `Как добраться`,
hotel: `Поселение`,
secondDay: `Второй день`
},
history: {... | JavaScript | 0 | @@ -930,17 +930,17 @@
p
-3
+2
: %60%D0%9C%D1%8B %D0%B1%D1%83
|
d041fd8797f87c82b2bc79222fc57048c231c1a3 | Add sort to listAll documents because the order matters | lib/documents.js | lib/documents.js | var _ = require('underscore'),
moment = require('moment'),
db = require('./db');
module.exports = {
list: function(options, callback) {
var docs = db.coll('documents'),
page = options.page || 1,
pageSize = options.pageSize || 25,
query = {};
if (!options... | JavaScript | 0.000001 | @@ -917,32 +917,86 @@
docs.find(%7B%0A
+%09 $orderby: %7B%0A%09%09year: -1,%0A%09%09created_at: -1%0A%09 %7D,%0A
$que
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.