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 |
|---|---|---|---|---|---|---|---|
6a3d91432087956de9b1e2da16acb052352487bc | Fix pes link issues with props | wwwroot/app/src/components/base/Link/index.js | wwwroot/app/src/components/base/Link/index.js | import React from 'react';
import classNames from 'classnames';
import { Link as ReactRouterLink } from 'react-router';
const Link = (props) => {
const linkClasses = classNames(props.className, 'pes-link', {
'pes-link--undecorated': props.undecorated
});
const linkProps = { ...props, className: li... | JavaScript | 0 | @@ -274,37 +274,55 @@
-const linkProps = %7B ...
+return (%0A %3CReactRouterLink to=%7B
props
-,
+.to%7D
cla
@@ -327,18 +327,18 @@
lassName
-:
+=%7B
linkClas
@@ -344,25 +344,39 @@
sses
- %7D;%0A%0A return (
+%7D%3E%0A %7Bprops.children%7D
%0A
@@ -373,32 +373,33 @@
ldren%7D%0A ... |
e9b2aa789e7cc1d833392a93ebdb3fb6d08e6294 | use js.min files | gulpfile.js | gulpfile.js | 'use strict';
// FAPP-STACK Gulpfile
// -------------------------------------
// This file processes all of the assets in the "client" folder, combines them with the Foundation
// for Apps assets, and outputs the finished files in the buildFolder (which is configurable below)
// folder as a finished app.
// 1. LIBRARIE... | JavaScript | 0.000001 | @@ -1392,16 +1392,20 @@
animate.
+min.
js',%0A
@@ -1467,16 +1467,20 @@
-router.
+min.
js',%0A
|
bc9970b9c315fe1ecafca07da8cf172c938e8f31 | Update youtube.search.js | youtube-search-v3/script/js/youtube.search.js | youtube-search-v3/script/js/youtube.search.js |
//google api keyinizi aşağıya girdikten sonra script çalışır
$(function(){
$.ARamaYap = {
GetStringDuration: function (string){
var array=string.match(/(\d+)(?=[MHS])/ig)||[],
formatted=array.map(function(item)
{
if(item.length<2) return '0'+item;return item;
}).join(':');
return f... | JavaScript | 0.000001 | @@ -1448,214 +1448,6 @@
;%0A%09%0A
-%09$(document).ready(function()%7B%0A%09%09%0A%09%09$('#test_arama').keyup(function()%7B%0A%09%09%09%0A%09%09%09var query = $(this).val();%0A%09%09%09console.log(query); //test edelim.%0A%09%09%09$.ARamaYap.SerializeQuerySearch(query,%22%22);%0A%09%09%09%0A%09%09%7D);%09%09%0A%09%09... |
e47bd582d9dc5f852731f6dc61923069f982492b | Upgrade Electron to pick up `window.open` fix | server/createBinaries.js | server/createBinaries.js | var electronPackager = Meteor.wrapAsync(Npm.require("electron-packager"));
var fs = Npm.require('fs');
var mkdirp = Meteor.wrapAsync(Npm.require('mkdirp'));
var path = Npm.require('path');
var proc = Npm.require('child_process');
var writeFile = Meteor.wrapAsync(fs.writeFile);
var exec = Meteor.wrapAsync(function(com... | JavaScript | 0 | @@ -3158,17 +3158,17 @@
: %220.35.
-0
+4
%22,%0A o
|
eed7dd2d1c03b98e45b7345b0d03c539cc3401d7 | update image | js/main.js | js/main.js |
$(document).ready(function() {
$('.home-slider').flexslider({
animation: "slide",
directionNav: false,
controlNav: false,
direction: "vertical",
slideshowSpeed: 2500,
animationSpeed: 500,
smoothHeight: false
});
$('.message-box-loader').css('display'... | JavaScript | 0.000001 | @@ -402,10 +402,8 @@
r-bg
--2
.jpg
|
0ac09ed8482dd2a385b2ace30817ab0859165166 | add web.config deployment | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var del = require('del');
var react = require('gulp-react');
var less = require('gulp-less');
var cson = require('gulp-cson');
var nodeunit = require('gulp-nodeunit');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var JSV = require("JSV").JSV;
var fs = ... | JavaScript | 0.000001 | @@ -783,32 +783,134 @@
ld/img'));%0A%7D);%0A%0A
+gulp.task(%22web.config%22, function()%7B%0A%09return gulp.src('web.config')%0A%09%09.pipe(gulp.dest('build'));%0A%7D);%0A%0A%0A
gulp.task(%22less%22
@@ -2611,16 +2611,30 @@
', 'img'
+, 'web.config'
);%0A%7D);%0A%0A
@@ -2904,13 +2904,56 @@
img'%5D);%0A
+%09gulp.watc... |
c7fa3db7d0ea21da78e8d484a0152274b7b923c5 | refactor jquery.remotiepart.js to work with current rails ujs | lib/generators/templates/jquery.remotipart.js | lib/generators/templates/jquery.remotipart.js | (function ($) {
$.fn.extend({
/**
* Handles execution of remote calls involving file uploads, firing overridable events along the way
*/
callRemotipart: function () {
var el = this,
url = el.attr('action'),
dataType = el.attr('data-type') || 'script';
... | JavaScript | 0.000001 | @@ -5,24 +5,166 @@
ction ($) %7B%0A
+ function fire(obj, name, data) %7B%0A%09 %09var event = new $.Event(name);%0A%09 %09obj.trigger(event, data);%0A%09 %09return event.result !== false;%0A%09 %7D%0A
$.fn.ext
@@ -1137,63 +1137,8 @@
);%0A%0A
-%09 if (el.triggerAndReturn('ajax:before')) %7B%0A
... |
98f10f27fee0de9426bdd5b1a33a28b3e87a76e6 | add new region (bug 952581) | src/media/js/settings.js | src/media/js/settings.js | define('settings', ['l10n', 'settings_local', 'underscore'], function(l10n, settings_local, _) {
var gettext = l10n.gettext;
return _.defaults(settings_local, {
init_module: 'main',
default_locale: 'en-US',
api_url: 'http://' + window.location.hostname, // No trailing slash, please.
... | JavaScript | 0 | @@ -876,24 +876,60 @@
('Brazil'),%0A
+ 'cl': gettext('Chile'),%0A
|
44db1a2fcfd3361f8a92ff6fa6d061529e226dc2 | Consolidate HTML building logic | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var jade = require('gulp-jade');
var filter = require('gulp-filter');
var jshint = require('gulp-jshint');
var rev = require('gulp-rev');
var revReplace = require('gulp-rev-replace');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var csso = require('gulp-csso');
... | JavaScript | 0.000004 | @@ -434,162 +434,8 @@
) %7B%0A
-%09gulp.src('src/services.jade')%0A%09 .pipe(jade(%7B pretty: true %7D))%0A%09 .pipe(rename('services.html'))%0A%09 .pipe(gulp.dest('dist'));%0A
%09ret
@@ -452,21 +452,17 @@
rc('src/
-index
+*
.jade')%0A
@@ -528,28 +528,36 @@
(rename(
-'index
+%7B extna... |
9e41967f332183d4c0276052e092a9eb53560cb4 | fix destroyOverlay (Type) if the response is delayed | lib/atom-ternjs-type.js | lib/atom-ternjs-type.js | 'use babel';
const TypeView = require('./atom-ternjs-type-view');
const TOLERANCE = 20;
import manager from './atom-ternjs-manager';
import packageConfig from './atom-ternjs-package-config';
import emitter from './atom-ternjs-events';
import {Range} from 'atom';
import {
prepareType,
prepareInlineDocs,
extractP... | JavaScript | 0 | @@ -749,24 +749,52 @@
sition() %7B%0A%0A
+ this.destroyOverlay();%0A%0A
const ed
@@ -1232,24 +1232,52 @@
cursor) %7B%0A%0A
+ this.destroyOverlay();%0A%0A
if (%0A
@@ -1540,38 +1540,8 @@
%7B%0A%0A
- this.destroyOverlay();%0A%0A
@@ -3540,37 +3540,8 @@
%7B%0A%0A
- this.destroyOverl... |
b158e2da999018c96b23e816a83d334525afca47 | simplify slc tasks | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
run = require('gulp-run'),
fs = require('fs');
var install = require("gulp-install");
gulp.task('default', function() {
// place code for your default task here
});
gulp.task('serve', ['startDb'], function (cb) {
new run.Command('export NODE_ENV=local').exec().pipe(process... | JavaScript | 0.999999 | @@ -224,22 +224,8 @@
ve',
- %5B'startDb'%5D,
fun
@@ -248,39 +248,32 @@
ew run.Command('
-export
NODE_ENV=local')
@@ -274,59 +274,9 @@
ocal
-').exec().pipe(process.stdout);%0A new run.Command('
+
slc
@@ -319,152 +319,8 @@
);%0A%0A
-gulp.task('startDb', function() %7B%0A run('mkdir -p ./mongodb');%0A new r... |
c2ecbecf2eeda95e01bde2f27181bb4ea7981c56 | Add gravity | js/main.js | js/main.js | function Hero(game, x, y) {
Phaser.Sprite.call(this, game, x, y, 'hero');
this.anchor.set(0.5, 0.5);
this.game.physics.enable(this);
this.body.collideWorldBounds = true;
}
Hero.prototype = Object.create(Phaser.Sprite.prototype);
Hero.prototype.constructor = Hero;
Hero.prototype.move = function(direction) {
... | JavaScript | 0.999987 | @@ -1355,16 +1355,58 @@
data) %7B%0A
+ this.platforms = this.game.add.group();%0A
data.p
@@ -1491,24 +1491,96 @@
ta.hero %7D);%0A
+ const GRAVITY = 1200;%0A this.game.physics.arcade.gravity.y = GRAVITY;%0A
%7D;%0A%0APlayStat
@@ -1625,26 +1625,40 @@
%7B%0A
-this.game.add.spri
+let sprite = this.platforms.cre... |
b0543c26e92fcb0dc21a8a9b3edd22a89bc2a6e2 | Fix webpack babel loader | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
_ = require('lodash'),
jpegtran = require('imagemin-jpegtran'),
pngcrush = require('imagemin-pngcrush'),
pngquant = require('imagemin-pngquant'),
svgo = require('imagemin-svgo'),
path = require('path'),
webpack = require... | JavaScript | 0.000002 | @@ -3318,41 +3318,67 @@
de:
-/(node_modules%7Cbower_components)/
+path.resolve(__dirname, '../what-input/dist/what-input.js')
,%0A
|
ea82675d892d4eeb7b52dafe7e1ba3543c8f302b | tweak gulpfile | gulpfile.js | gulpfile.js | import babel from 'gulp-babel';
import del from 'del';
import eslint from 'gulp-eslint';
import gulp from 'gulp';
import jasmine from 'gulp-jasmine';
import plumber from 'gulp-plumber';
import runSequence from 'run-sequence';
const buildDestinationPath = 'dist';
gulp.task('clean', () => del(`${buildDestinationPath}/*... | JavaScript | 0.000001 | @@ -583,35 +583,21 @@
c',
-function () %7B%0A return
+() =%3E
gulp
+%0A
.src
@@ -614,18 +614,16 @@
ex.js')%0A
-
.pipe(
@@ -632,19 +632,16 @@
smine())
-;%0A%7D
);%0A%0Agulp
|
c6eb0ce26e6a3bb02c9f62066467100879761e57 | fix some icons on editor | lib/build/tasks/copy.js | lib/build/tasks/copy.js | /**
* Copy task config
*/
exports.task = function (grunt) {
return {
vendor: {
expand: true,
cwd: 'vendor/assets/stylesheets/',
src: ['**/*.css'],
dest: 'tmp/sass/vendor/',
rename: function (dest, src) {
return dest + src.replace(/\.css$/, '.scss');
},
options... | JavaScript | 0.000001 | @@ -592,16 +592,23 @@
efix %25%3E/
+assets/
editor/%3C
|
d1a026168b4adad1ecedd58dc376cdd64b56e551 | Add console debug for CI | lib/builders/latexmk.js | lib/builders/latexmk.js | /** @babel */
import path from 'path'
import Builder from '../builder'
const LATEX_PATTERN = /^latex|u?platex$/
export default class LatexmkBuilder extends Builder {
executable = 'latexmk'
static canProcess (filePath) {
return path.extname(filePath) === '.tex'
}
async run (filePath, jobname, shouldRebu... | JavaScript | 0.000001 | @@ -562,16 +562,32 @@
atusCode
+, stdout, stderr
%7D = awa
@@ -641,16 +641,129 @@
ptions)%0A
+ if (statusCode !== 0) %7B%0A console.log(command)%0A console.log(stdout)%0A console.log(stderr)%0A %7D%0A
retu
|
36edbc45c5dcd5a5f5689748ce0750e82e49204b | fix whitespace | js/main.js | js/main.js | (function() {
var currentMonth = new Date().getMonth();
var placeForSeasonEl = document.getElementById("place");
var season;
switch (currentMonth) {
// winter
case 11:
case 0:
case 1:
season = "winter";
break;
// spring
case 2:
... | JavaScript | 0.999999 | @@ -755,16 +755,17 @@
ame += %22
+
business
|
babe1d0d75f6ee5f4fc17e51f42f808ade28d9d9 | Add pagintion params to seachDataset method | lib/cartodbmapclient.js | lib/cartodbmapclient.js | 'use strict';
var request = require('request');
var _ = require('lodash');
const defaultOptions = (options) => {
const defaults = {
timeout: 30000,
headers: {
'Content-Type': 'application/json'
}
};
if(!options) {
options = defaults;
} else {
options = _.assign(defaults, options);
... | JavaScript | 0 | @@ -1233,32 +1233,77 @@
r $this = this;%0A
+ page = page %7C%7C 0;%0A size = size %7C%7C 20;%0A
options = de
|
33bed47c355c15a4efc16024bca7b2786f2b1d30 | set gulpfile back. CNAME seems to be known issue with gulp-gh-pages | gulpfile.js | gulpfile.js | var gulp = require("gulp");
var runSequence = require("run-sequence");
var clean = require('gulp-rimraf');
var shell = require('gulp-shell');
var connect = require('gulp-connect');
var open = require('gulp-open');
var deploy = require("gulp-gh-pages");
gulp.task('clean', function () {
return gulp.src('dist', {read... | JavaScript | 0 | @@ -1019,16 +1019,18 @@
ster%22%7D;%0A
+
gulp.tas
@@ -1059,16 +1059,18 @@
) %7B%0A
+
gulp.src
@@ -1080,19 +1080,23 @@
ist/**/*
+.*
%22)%0A
+
@@ -1111,19 +1111,21 @@
ploy(options));%0A
+
%7D);
|
31f0a04c6169074ddf828b376fbfbb10568a9678 | Change bgcolor of flashcard in next QA set | js/main.js | js/main.js | var questions = [
Q1 = {
question: "What does HTML means?",
answer: "HyperText Markup Language"
},
Q2 = {
question: "What does CSS means?",
answer: "Cascading Style Sheet"
},
Q3 = {
question: "Why the \"C\" in CSS, is called Cascading?",
answer: "When CSS rules are duplicated, the rule to be use i... | JavaScript | 0 | @@ -1528,16 +1528,103 @@
EXT%22) %7B%0A
+%09%09// Change back the bgcolor of flashcard to red %0A%09%09card.style.background = %22#ff4553%22;%0A
%09%09reveal
@@ -1724,16 +1724,92 @@
REVEAL%22,
+ change flashcard bgcolor to cyan%0A%09%09card.style.background = %22#0cc%22;%0A%09%09// And
display
|
ccc4cdbd119dd91005e92b5424a4c832e9f6377a | Fix install message | lib/commands/install.js | lib/commands/install.js | var fs = require('fs-extra');
var path = require('path');
var async = require('async');
var semver = require('semver');
var schemes = (function() {
var default_scheme;
var schememap = {};
return {
get: function(name) {
return schememap[name];
},
add: function(name, resolver) {
schemema... | JavaScript | 0 | @@ -3610,24 +3610,63 @@
, pkg.scheme
+, pkg.alias ? (' as ' + pkg.alias) : ''
);%0A %0A
|
fdf396de3f77166ce7607daa71656c09e9a97020 | Fix order of concatenating Javascript files | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
var sources = ['src/**/*.js',
"node_modules/videojs-contrib-media-sources/dist/videojs-contrib-media-sources.min.js",
"node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.min.js",
"node_modules/hls.js/dist/hls.min.js"];
gulp.task('buil... | JavaScript | 0 | @@ -78,28 +78,14 @@
= %5B
-'src/**/*.js',
%0A
-%22
+'
node
@@ -160,32 +160,32 @@
urces.min.js
-%22
+'
,%0A
-%22
+'
node_modules
@@ -240,16 +240,16 @@
n.js
-%22
+'
,%0A
-%22
+'
node
@@ -283,9 +283,29 @@
n.js
-%22
+',%0A 'src/**/*.js'%0A
%5D;%0A%0A
|
b00e992f047b64b70a330c164b7d7e74b069b321 | Update Ember.set() error | lib/components/chart.js | lib/components/chart.js | 'use strict';
/**
C3 Chart component
*/
Ember.C3.ChartComponent = Ember.Component.extend({
/**
Element tag name
*/
tagName: 'div',
/**
Element classes
*/
classNames: ['c3-chart-component'],
/**
The data to display
*/
data: {},
/**
Axis specifications
*/
... | JavaScript | 0 | @@ -1245,19 +1245,8 @@
rty(
-'element',
'_co
@@ -1788,27 +1788,8 @@
rty(
-'element',%0A
'dat
|
d050a80d633d9e23c4d60c5486599a419180b388 | Use build as default task | Gulpfile.js | Gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var jsFiles = 'src/*.js', jsDest = 'dist';
gulp.task('build', function() {
return gulp.src(jsFiles)
.pipe(concat('tongue.js'))
.pipe(gulp.dest(jsDest))
.pipe(rename('tongu... | JavaScript | 0.000001 | @@ -193,13 +193,15 @@
sk('
-build
+default
', f
|
6085f80b26ac1618ef8bd5dccf1631f4bb3d3c2e | Fix test to use message | tests/lib/main-node.js | tests/lib/main-node.js | 'use strict';
var expect = require('expect.js')
, proxyquire = require('proxyquire')
;
describe('SockJS', function() {
describe('Constructor', function () {
describe('WebSocket specification step #2', function () {
it('should throw SecurityError for an insecure url from a secure page', function () {
... | JavaScript | 0 | @@ -647,24 +647,32 @@
expect(e
+.message
).to.contain
|
33841fd090a87285cc41d50209943296b700136f | add build gulp task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
watch = require('gulp-watch'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
util = require('gulp-util'),
plumber = require('gulp-plumber'),
concat = require('gulp-concat'),
jshint = require('gulp-jshint'),
jscs = require('gulp-jscs'),
uglify = require(... | JavaScript | 0.000002 | @@ -2209,32 +2209,99 @@
images'%5D);%0A%7D);%0A%0A
+gulp.task('build', %5B'style', 'javascript', 'javascript-library'%5D);%0A
gulp.task('defau
|
602ec35de3aedf0e3d2ac14e08ff2a3cd548a075 | fix deploy source path | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const sass = require('gulp-sass');
const minifycss = require('gulp-minify-css');
const concat = require('gulp-concat');
const iconfont = require('gulp-iconfont');
const svgmin = require('gulp-svgmin');
const consolidate = require('gulp-consolidate');
const rename = require('gulp-ren... | JavaScript | 0.000001 | @@ -4672,16 +4672,22 @@
rc('doc/
+_site/
*')%0D%0A .
|
68021e16a6496cbba1b3d2e3a015c09fa2f3dcc1 | include trailing slash in API call (#7585) | services/amo/amo-base.js | services/amo/amo-base.js | import Joi from 'joi'
import { nonNegativeInteger } from '../validators.js'
import { BaseJsonService } from '../index.js'
const keywords = ['amo', 'firefox']
const schema = Joi.object({
average_daily_users: nonNegativeInteger,
current_version: Joi.object({
version: Joi.string().required(),
}).required(),
... | JavaScript | 0 | @@ -692,16 +692,17 @@
addonId%7D
+/
%60,%0A %7D
|
500428c7fcdf3405c51c7b2562e17b03ca5ee30c | Add referent at the engine collection | src/model/AccessModel.js | src/model/AccessModel.js | var AccessModel = function (db, domain, typeDSL) {
this.db = db;
this.domain = domain;
this.typeDSL = typeDSL;
this.engine = {
Cell: CellEngine,
Collection: CollectionEngine,
Document: DocumentEngine,
Dashboard: DashboardEngine
};
this.getEngine = (model) => ... | JavaScript | 0 | @@ -1,12 +1,78 @@
+var CollectionEngine = require(%22../engine/CollectionEngine.js%22);%0A%0A
var AccessMo
@@ -218,16 +218,21 @@
Cell
+Model
: CellEn
@@ -255,16 +255,21 @@
llection
+Model
: Collec
@@ -296,16 +296,21 @@
Document
+Model
: Docume
@@ -336,16 +336,21 @@
ashboard
+Model
: Dashbo
|
ab14e14f9f42f1cbc647fc9d0802239c6089db4d | Normalize arrow function syntax | gulpfile.js | gulpfile.js | 'use strict';
const gulp = require('gulp');
gulp.task('clean', () => {
let del = require('del');
return del(['lib/*.js', 'postcss.js', 'build/', 'api/']);
});
// Build
gulp.task('compile', () => {
let sourcemaps = require('gulp-sourcemaps');
let changed = require('gulp-changed');
let babel ... | JavaScript | 0.000747 | @@ -1522,14 +1522,12 @@
d',
-(
done
-)
=%3E
|
aacf17c3e8800e6da5646a56db868f69bbc03356 | remove log statement | js/main.js | js/main.js | /* globals Info */
import {markdown} from 'markdown';
require('./sketch');
require('./gui');
function httpGet(url) {
return new Promise(function(resolve, reject) {
var request = new XMLHttpRequest();
request.open('GET', url, true);
request.onload = function() {
if (this.statu... | JavaScript | 0.000002 | @@ -634,43 +634,8 @@
%3E %7B%0A
- console.log('README', readme);%0A
|
3686e7b99f61519569c7e51eb85ebfe877a588da | update spectra-processor to 0.4.0 | eln/libs/SpectraProcessor.js | eln/libs/SpectraProcessor.js | export {
SpectraProcessor
} from 'https://www.lactame.com/lib/spectra-processor/0.3.0/spectra-processor.js';
// } from 'http://localhost:9898/cheminfo-js/spectra-processor/dist/spectra-processor.js';
| JavaScript | 0.000122 | @@ -81,9 +81,9 @@
r/0.
-3
+4
.0/s
@@ -104,17 +104,16 @@
or.js';%0A
-%0A
// %7D fro
|
453bb9dbdbbb656baed00e3a0f54501bec845ea8 | Add test presenting code for debugging | livedoc-ui/src/components/DocPresenter.js | livedoc-ui/src/components/DocPresenter.js | // @flow
import {List, Map} from 'immutable';
import * as React from 'react';
import {connect} from 'react-redux';
import type {Livedoc} from '../models/livedoc';
import type {State} from '../models/state';
import type {Api} from '../models/api';
type Props = {
loading: boolean, url: ?string, livedoc: ?Livedoc
}
co... | JavaScript | 0 | @@ -6,45 +6,8 @@
low%0A
-import %7BList, Map%7D from 'immutable';%0A
impo
@@ -91,16 +91,24 @@
%7BLivedoc
+, ApiDoc
%7D from '
@@ -174,48 +174,8 @@
te';
-%0Aimport type %7BApi%7D from '../models/api';
%0A%0Aty
@@ -487,33 +487,44 @@
api
-s: Map%3Cstring, List%3CApi%3E%3E
+Docs: %7B%5Bkey: string%5D: Array%3CApiDo... |
25e9c82ba84cd3e16f81aad3c6c135cbbf191669 | Improve build script | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var clean = require('gulp-clean');
var zip = require('gulp-zip');
var bases = {
root: 'dist/'
};
var paths = [
'core/actions/*',
'core/common/**',
'admin/**',
'!admin/config/*',
'boxoffice/**',
'!boxoffice/config/*',
'customer/**',
'!customer/config/*',... | JavaScript | 0.000002 | @@ -153,25 +153,86 @@
ore/
-actions/*
+**',%0A '!core/data',%0A '!core/data/**/*',%0A '!core/logs/**/*.txt
',%0A '
core
@@ -231,21 +231,97 @@
'
+!
core/
-common/*
+logs/**/*.pdf',%0A '!core/logs/**/*.html',%0A '!core/tests',%0A '!core/tests/**/
*',%0A
@@ -348,22 +348,54 @@
'!admin/
+api/
... |
36b389cda722450f2bf3745ad530e1c3bcb67bea | fix comment | lib/es6-promise/asap.js | lib/es6-promise/asap.js | var len = 0;
var toString = {}.toString;
var vertxNext;
export default function asap(callback, arg) {
queue[len] = callback;
queue[len + 1] = arg;
len += 2;
if (len === 2) {
// If len is 1, that means that we need to schedule an async flush.
// If additional callbacks are queued before the queue is flus... | JavaScript | 0 | @@ -192,17 +192,17 @@
len is
-1
+2
, that m
|
e3fb7312ece77d4e6b18f36189b82ce6c205107a | Remove unused code | modern/src/maki-interpreter/virtualMachine.js | modern/src/maki-interpreter/virtualMachine.js | import parse from "./parser";
import { getClass, getFormattedId } from "./objects";
import { interpret } from "./interpreter";
import { isPromise } from "../utils";
// Note: if this incurs a performance overhead, we could pass a flag into the VM
// to not yield in production. In that case, we would never even enter th... | JavaScript | 0.000006 | @@ -1968,164 +1968,8 @@
);%0A%0A
- const %7B commands /* variables */ %7D = program;%0A commands.forEach((/* command, i*/) =%3E %7B%0A // printCommand(%7B i, command, stack: %5B%5D, variables %7D);%0A %7D);%0A%0A
//
|
37cc9993a8ab823a2106746214a92b6f2c839a35 | Fix invalid bitmask for release archives | gulpfile.js | gulpfile.js | var eventStream = require('event-stream'),
gulp = require('gulp'),
chmod = require('gulp-chmod'),
zip = require('gulp-zip'),
tar = require('gulp-tar'),
gzip = require('gulp-gzip'),
rename = require('gulp-rename');
gulp.task('prepare-release', function() {
var version = require('./package.js... | JavaScript | 0 | @@ -585,9 +585,8 @@
mod(
-0
644)
|
63c12adb276fd60be9b404db6461293ba67c0f65 | Fix typo, removing semicolon from jsx inline style prop #411 | client/components/navigation/sidenav/sidenav.js | client/components/navigation/sidenav/sidenav.js | import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'
// Global module dependencies
import * as paths from '~client/paths'
import * as communityPaths from '~community/paths'
// Current module dependencies
if (process.env.BROWSER) require('./sidenav.scss')
class Sidenav extends Compo... | JavaScript | 0.000037 | @@ -802,9 +802,8 @@
ge%7D)
-;
%60 :
|
81ea03eb0bcbb9687d3f689c1895b6202d737c6d | Disable the "read and upload" step (not working yet) | fixtures/1_step_type.js | fixtures/1_step_type.js | module.exports = {
model: 'step_type',
data: [
{
id: 1,
name: 'Announcement Message',
description: 'No response from the user to move the next step'
},
{
id: 2,
name: 'Question Step',
description: 'Owner must enter a question and the confirmation word that the user mu... | JavaScript | 0 | @@ -834,33 +834,39 @@
'%0A %7D,%0A
+ //
%7B%0A
+//
+
id: 6,%0A
@@ -859,24 +859,27 @@
id: 6,%0A
+ //
name: 'Re
@@ -901,32 +901,35 @@
ument Step',%0A
+ //
description:
@@ -1021,32 +1021,35 @@
te the step'%0A
+ //
%7D,%0A %7B%0A
|
d21a823ced1a50396c1bcbd3813d6ea74b2de872 | Create mysql table with utf8mb4 charset | mysql_db.js | mysql_db.js | /**
* 2011 Peter 'Pita' Martischka
*
* 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.000031 | @@ -1767,25 +1767,20 @@
utf8
-_general_ci
+mb4_bin
, %22 +
-
%0A
@@ -1812,16 +1812,36 @@
ONGTEXT
+COLLATE utf8mb4_bin
NOT NULL
@@ -1846,17 +1846,16 @@
LL , %22 +
-
%0A
@@ -1879,17 +1879,16 @@
RY KEY (
-
%60key%60 )
@@ -1923,40 +1923,55 @@
GINE
- =
+=
MyISAM
-;%22; %0A
+ CHA... |
bc0188c0983a9c9a06418f3ef7b4ccd5302e03a2 | Add compile step to tests before execution | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
browserify = require('browserify'),
transform = require('vinyl-transform'),
uglify = require('gulp-uglify'),
sourcemaps = require('gulp-sourcemaps'),
jasmine = require('gulp-jasmine');
gulp.task('default', ['javascript']);
gulp.task('javascript', function... | JavaScript | 0.000001 | @@ -729,24 +729,179 @@
nction () %7B%0A
+ var browserified = transform(function (filename) %7B%0A var b = browserify(%7B entries: filename, debug: true %7D);%0A return b.bundle();%0A %7D);%0A%0A
return g
@@ -922,24 +922,52 @@
c/**/*.js')%0A
+ .pipe(browserified)%0A
.pip
|
a5c3a4e62ae1771551c1b656dca963b324206dea | Fix small formatting inconsistencies. | js/main.js | js/main.js | function doAPIRequest() {
if (document.getElementById('actionField').value != "") {
$('#responseField').val("");
$("#responseField").addClass('hidden');
$("#responseFieldLabel").addClass('hidden');
$('#responseField').val("");
$('#statusField').val("");
var host = $('#hostField').val().trim();... | JavaScript | 0.000063 | @@ -1731,23 +1731,29 @@
rue);%0A
-%7D
+ %7D
else
+
%7B%0A
+
send
@@ -1776,18 +1776,23 @@
lse);%0A
-%7D%0A
+ %7D %0A
%7D%0A%7D%0A%0Afun
@@ -5479,36 +5479,38 @@
Profile');%0A %7D
+
else
+
%7B%0A loadDefa
|
29a0fc1cf579b813cf1ed0e9f510daeb6a49b064 | exclude the e2e test that fails on safari | src/ng/filter/limitTo.js | src/ng/filter/limitTo.js | 'use strict';
*
* @ngdoc filter
* @name limitTo
* @kind function
*
* @description
* Creates a new array or string containing only a specified number of elements. The elements
* are taken from either the beginning or the end of the source array, string or number, as specified by
* the value and sign (positive o... | JavaScript | 0 | @@ -8,16 +8,17 @@
rict';%0A%0A
+/
*%0A * @ng
@@ -4331,16 +4331,18 @@
xample%3E%0A
+*/
%0Afunctio
|
ab123f6755be3acd75c408629abeb0047d363234 | Add position of center of ball and proper screen width/height | js/main.js | js/main.js | $(document).ready(function() {
window.Balls.initialize();
});
window.Balls = (function() {
var Balls = {
ballArray: [],
speed: 1,
initialize: function() {
// get width/height
this.screen = {
height: window.screen.availHeight,
width: window.screen.availWidth
};
... | JavaScript | 0.000001 | @@ -239,28 +239,21 @@
window.
-screen.avail
+inner
Height,%0A
@@ -278,20 +278,13 @@
dow.
-screen.avail
+inner
Widt
@@ -806,16 +806,93 @@
dius) %7B%0A
+ this.radius = radius;%0A this.position = %7B%0A x: 0,%0A y: 0%0A %7D;
%0A thi
@@ -1148,174 +1148,471 @@
his.
-ele.style.top = (parseInt(th... |
d282075c4bce2a76c364db8a8e9e6b639f8c4e49 | add new production gulp file | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var $ = require('gulp-load-plugins')()
var commonFiles = [
'app/shared/vendor/async.js',
'app/shared/vendor/jquery.min.js',
'app/shared/vendor/angular.min.js',
'app/shared/vendor/moment.min.js',
'app/shared/vendor/*.js',
'app/modules.js',
'app/shared/**/*.js',
];
gulp.task('... | JavaScript | 0 | @@ -661,24 +661,354 @@
s/js'))%0A%7D)%0A%0A
+gulp.task('jspro', function () %7B%0A gulp.src(commonFiles.concat(%5B%0A '!app/shared/**/*Spec.js',%0A 'app/pages/**/*.js',%0A '!app/pages/guest/*.js',%0A '!app/pages/**/*Spec.js'%0A %5D))%0A .pipe($.sourcemaps.init())%0A .pipe($.concat('cluster.js'))%0A .p... |
a2bb11f1a1cff9eb8bfba6d329a9673104c0b6a9 | Update main.js | js/main.js | js/main.js | $(document).ready(function(event){
$('#submit').click(function(event){
getData();
});
$('#formThing').submit(function(event){
event.preventDefault();
getData();
});
});
function getData(){
$.get('https://api.github.com/users/' + $('#inputText').val(), "", function(data){
... | JavaScript | 0.000001 | @@ -829,16 +829,176 @@
(html);%0A
+ %7D).fail(function(data)%7B%0A html = '%3Ch1%3EA Github user with that name does not exist.';%0A $('.profile').html(html);%0A return;%0A
%7D)
|
f14cae4dfa83329ff1e9843c954e6beb1cf54eb9 | Use custom error message if email is invalid | app/database/model/user.js | app/database/model/user.js | const Sequelize = require('sequelize')
const bcrypt = require('bcrypt')
module.exports = {
model: {
name: Sequelize.STRING,
email: {
type: Sequelize.STRING,
allowNull: false,
unique: {
msg: 'username taken'
},
validate: {
isEmail: true
}
},
password: Sequelize.STRING,
photo: Sequel... | JavaScript | 0.000249 | @@ -253,20 +253,73 @@
sEmail:
-true
+%7B%0A%09%09%09%09%09msg: 'username is not a valid email address'%0A%09%09%09%09%7D
%0A%09%09%09%7D%0A%09%09
|
62b8179730b468f73570cbe42b743e91d99e49b8 | Update answer_with_instance.js | samples/bank_mfa_device/answer_with_instance.js | samples/bank_mfa_device/answer_with_instance.js | See bank_mfa_device's Methods. | JavaScript | 0.000011 | @@ -5,26 +5,11 @@
bank
-_mfa_device's Methods.
+s#link%0A
|
3d389cf5dc1c25a9e0fe6f7e993deb3bc860f108 | add _resyncView method | layer/tile/Yandex.js | layer/tile/Yandex.js | // https://tech.yandex.com/maps/doc/jsapi/2.1/quick-start/index-docpage/
/* global ymaps: true */
L.Yandex = L.Layer.extend({
options: {
type: 'yandex#map', // 'map', 'satellite', 'hybrid', 'map~vector' | 'overlay', 'skeleton'
mapOptions: { // https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Map-docpage... | JavaScript | 0 | @@ -2839,16 +2839,202 @@
ne%0A%09%7D,%0A%0A
+%09_resyncView: function () %7B // for use in addons%0A%09%09if (!this._map) %7B return; %7D%0A%09%09var ymap = this._yandex;%0A%09%09this._map.setView(ymap.getCenter(), ymap.getZoom(), %7B animate: false %7D);%0A%09%7D,%0A%0A
%09_animat
|
d723a395a64b1479f49a57111c6379bcdbf58f2f | Fix `update-available` message not showing up | src/client/story_box.js | src/client/story_box.js | import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... | JavaScript | 0.000003 | @@ -558,240 +558,8 @@
is%0A%0A
- self.client.on('update-available', function (err, releaseVersion) %7B%0A if (err) %7B%0A console.error(err)%0A return%0A %7D%0A%0A self.setState(%7B status: 'update-available', upgradeVersion: releaseVersion %7D)%0A %7D)%0A%0A
@@ -1341,16 +1341,... |
065cbcb1c668fc34eb7f8bf1c03ea2bbf5452324 | Update dispatcher.es6 | src/Plugins/Server/middleware/dispatcher.es6 | src/Plugins/Server/middleware/dispatcher.es6 | import path from 'path';
import {fileUtil, util, DispatherTypes} from '../../../helper';
export function apiHandler(dispatcher) {
if (dispatcher.handler) {
return dispatcher.handler(this).then((data) => {
let json = data;
if (typeof data === 'string') {
try {
... | JavaScript | 0 | @@ -3847,14 +3847,18 @@
urn
-void 0
+yield next
;%0A
@@ -4267,24 +4267,31 @@
+return
yield dispat
@@ -4339,22 +4339,51 @@
;%0A %7D%0A
+ %0A yield next;%0A
%7D;%0A%7D;%0A
|
6ae13696ae9f923d2f257d29a3d1fa55ff71e01a | Fix done button style | lib/KeyboardAccessoryNavigation.js | lib/KeyboardAccessoryNavigation.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
Text,
TouchableOpacity,
Keyboard,
ViewPropTypes,
} from 'react-native';
import KeyboardAccessoryView from './KeyboardAccessoryView';
import Arrow from './components/Arrow';
// Render a prev/hidden arr... | JavaScript | 0.000001 | @@ -1873,16 +1873,370 @@
props;%0A%0A
+ // Are both arrows hidden?%0A const arrowsHidden = nextHidden && previousHidden;%0A%0A // Is there an info message/container?%0A const noInfo = !infoMessage && !infoContainer;%0A%0A const accessoryContainerStyle = %5B%0A styles.accessoryContainer,%0A arr... |
7e610e0d9df4c71f43d7114502ea663d45af889f | add issue prefix case | @commitlint/rules/src/references-empty.test.js | @commitlint/rules/src/references-empty.test.js | import test from 'ava';
import preset from 'conventional-changelog-angular';
import parse from '@commitlint/parse';
import referencesEmpty from './references-empty';
const messages = {
plain: 'foo: bar',
comment: 'foo: baz\n#1 Comment',
reference: '#comment\nfoo: baz \nCloses #1',
references: '#comment\nfoo: bar \... | JavaScript | 0.000013 | @@ -332,16 +332,41 @@
#2, #3'
+,%0A%09prefix: 'bar REF-1234'
%0A%7D;%0A%0Acon
@@ -843,16 +843,92 @@
Opts))()
+,%0A%09prefix: parse(messages.prefix, undefined, %7B%0A%09%09issuePrefixes: %5B'REF-'%5D%0A%09%7D)
%0A%7D;%0A%0Ates
@@ -2309,28 +2309,211 @@
t.is(actual, expected);%0A%7D);%0A
+%0Atest('succeeds for custo... |
d4113e532923b6306195cc67182bfd492bfd7565 | fixed run task to return Promise | voyager.js | voyager.js | /**
* @file voyager.js Exported methods for voyager in a node environment.
* @module {Object} voyager
*/
/**
* Module dependencies
*/
var colors = require('colors')
, del = require('del')
, fs = require('graceful-fs')
, Pinwheel = require('pinwheel')({ mark: '⚡' })
, Promise = require('es6-promise').Promi... | JavaScript | 0.998729 | @@ -5769,24 +5769,31 @@
%7D);%0A
+return
tasks.reduce
|
52a81b33e274040e36a575b7f16206e933247ab9 | complete bar chart and fixed the bug with transition | client/Components/AnalyticsComponents/visualizations/barchart.js | client/Components/AnalyticsComponents/visualizations/barchart.js | import d3 from 'd3';
import _ from 'lodash';
const barChart = {};
const margin = 60;
// data looks like this
// { emotion: emotion, data: object[emotion], index: i }
barChart.create = (el, props, data) => {
console.log(el, 'svg inside create');
// functions to grab specific parts of the data
const emotion = d =>... | JavaScript | 0 | @@ -848,17 +848,16 @@
*/%0A //
-
%0A let y
@@ -2516,16 +2516,37 @@
hart');%0A
+ console.log(data);%0A
svg.se
@@ -2553,32 +2553,32 @@
lectAll('rect')%0A
-
.data(data)%0A
@@ -2645,32 +2645,89 @@
ale(d.emotion))%0A
+ .attr('height', (d) =%3E (yScale(0) - yScale(d.data)))%0A
.attr('y', d
@@ -2793,... |
6c53608908002dcc33e37be23ccec3c7f3a8cf5e | Document custom shader constructor | Source/Scene/ModelExperimental/CustomShader.js | Source/Scene/ModelExperimental/CustomShader.js | import defaultValue from "../../Core/defaultValue.js";
import CustomShaderMode from "./CustomShaderMode.js";
export default function CustomShader(options) {
this.mode = defaultValue(options.model, CustomShaderMode.MODIFY_MATERIAL);
this.lightingModel = options.lightingModel;
this.uniforms = options.uniforms;
t... | JavaScript | 0 | @@ -107,55 +107,2294 @@
%22;%0A%0A
-export default function CustomShader(options) %7B
+/**%0A * An object describing a uniform, its type, and an initial value%0A *%0A * @typedef %7BObject%7D UniformSpecifier%0A * @property %7BUniformType%7D type The Glsl type of the uniform.%0A * @property %7BBoolean%7CNumber%7CCartes... |
75eb2e6f13e961c1635016154dd4b76f1ece029b | add "'stringProperty'" to bad-sim-text, factor out string literal, https://github.com/phetsims/scenery/issues/1451 | eslint/rules/bad-sim-text.js | eslint/rules/bad-sim-text.js | // Copyright 2019, University of Colorado Boulder
/* eslint-disable bad-sim-text */
/**
* Lint detector for invalid text.
* Lint is disabled for this file so the bad texts aren't themselves flagged.
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Michael Kauzmann (PhET Interactive Simulations)
*/
... | JavaScript | 0.001424 | @@ -2693,24 +2693,273 @@
ddToBack',%0A%0A
+ // Please use Text/RichText.STRING_PROPERTY_TANDEM_NAME when appropriate (though not all usages apply here, and%0A // you can ignore this rule), https://github.com/phetsims/scenery/issues/1451#issuecomment-1270576831%0A '%5C'stringProperty%5C'',%0A%0A
// In si
|
a8d7a01ac97b4ad8bc8c906ccc2610fd2c1967eb | Fix for readonly hash args | app/helpers/app-version.js | app/helpers/app-version.js | import { helper } from '@ember/component/helper';
import config from '../config/environment';
import { shaRegExp, versionRegExp, versionExtendedRegExp } from 'ember-cli-app-version/utils/regexp';
const {
APP: {
version
}
} = config;
export function makeHelper(version) {
return function appVersion(_, hash = ... | JavaScript | 0 | @@ -435,21 +435,20 @@
ity%0A
-hash.
+let
versionO
@@ -491,21 +491,20 @@
ha;%0A
-hash.
+let
shaOnly
@@ -571,21 +571,16 @@
if (
-hash.
versionO
@@ -781,21 +781,16 @@
if (
-hash.
shaOnly)
|
90d45ee04b1bea29d6c870b41559fadb487db408 | Set friendly delay for cleanup alarm | common/CleanupConst.js | common/CleanupConst.js | /*
* Copyright (c) 2017. Stephan Mahieu
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
class CleanupConst {
// no support for static contants, declare then after the class definition
}
CleanupConst.ALARM_NAME = "fhc-periodic-clea... | JavaScript | 0 | @@ -368,13 +368,8 @@
= 2;
- //5;
%0ACle
@@ -399,13 +399,8 @@
S =
-2; //
15;%0A
|
bfe4bd33dbedd874a19bcd3a7e68e59fd3cfba2d | Update app.js | leaf-analysis/app.js | leaf-analysis/app.js | //File name: app.js
//Description: the entry point to the chat app server
//Last updated: 4/28/2019
// Name of .jar file for BloomingLeaf project must be Blooming.jar
//var userPath = "/Users/<your user path here>/BloomingLeaf"
var userPath = "/Users/Joey/Downloads/SURF/BloomingLeaf"
var http = require('http'... | JavaScript | 0.000002 | @@ -255,27 +255,21 @@
ers/
-Joey/Downloads/SURF
+judySmith/git
/Blo
@@ -4273,8 +4273,10 @@
n(8080);
+%0D%0A
|
d4e3634ade6b51df3b5271bcf2a2a05ef7218a46 | remove the script tag | assets/js/analytics.js | assets/js/analytics.js | /* <!-- Asynchronous Baidu Analytics snippet --> */
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?11224c4b3c0923fa6de6e431325fe387";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
/* <!-- Aysnchronous... | JavaScript | 0.000006 | @@ -342,39 +342,8 @@
*/%0A
-%3Cscript type=%22text/javascript%22%3E
var
@@ -426,16 +426,17 @@
tp://%22);
+%0A
document
@@ -629,17 +629,8 @@
%22));
-%3C/script%3E
%0A%0A/*
|
0d061bf39a521fb2ea5fa33f885e0d2b49a5d3d3 | remove comments | tests/test-helper.js | tests/test-helper.js | // import resolver from './helpers/resolver'
// import {setResolver} from 'ember-mocha'
// setResolver(resolver)
import Application from '../app'
import config from '../config/environment'
import {setApplication} from '@ember/test-helpers'
setApplication(Application.create(config.APP))
| JavaScript | 0 | @@ -1,119 +1,4 @@
-// import resolver from './helpers/resolver'%0A// import %7BsetResolver%7D from 'ember-mocha'%0A%0A// setResolver(resolver)%0A%0A
impo
|
5fbd35cd7c47b49abb8451f50f18b92317f60556 | update reducers | examples/reduxes/reducers/index.js | examples/reduxes/reducers/index.js | import {combineReducers} from 'redux';
import {routerReducer} from 'react-router-redux';
import device from './app/DeviceReducer';
import navMenu from './app/NavMenuReducer';
import loadComponent from './app/LoadComponentReducer';
const rootReducer = combineReducers({
device,
navMenu,
loadComponent,
... | JavaScript | 0.000001 | @@ -44,29 +44,39 @@
rt %7B
-routerReducer%7D from '
+connectRouter%7D from 'connected-
reac
@@ -87,14 +87,8 @@
uter
--redux
';%0A%0A
@@ -234,27 +234,33 @@
';%0A%0A
-const rootReducer
+export default history
=
+%3E
com
@@ -275,16 +275,53 @@
cers(%7B%0A%0A
+ router: connectRouter(history),%0A%0A
devi
@@... |
4dc0cf0e325612b0832be33d5d3f1ca13f5a8e3b | Default autopublish as true | client/app/scripts/liveblog-syndication/reducers/ingest-panel.js | client/app/scripts/liveblog-syndication/reducers/ingest-panel.js | liveblogSyndication
.factory('IngestPanelReducers', function() {
var locallySyndicatedItems = function(syndicationIn, localSyndTokens) {
return syndicationIn._items.filter(function(item) {
return (localSyndTokens.indexOf(item.blog_token) != -1);
});
};
... | JavaScript | 0.998889 | @@ -2628,32 +2628,117 @@
%7D
+%0A%0A blog.autopublish = true; // Default autopublish as true
%0A
|
1d78d0b144186a8488281ffd6cd52b84b26a883d | fix ObjectName dimming error | src/object/ObjectName.js | src/object/ObjectName.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createStyles from '../styles/createStyles';
/**
* A view for object property names.
*
* If the property name is enumerable (in Object.keys(object)),
* the property name will be rendered normally.
*
* If the property name is not ... | JavaScript | 0.000001 | @@ -558,35 +558,35 @@
;%0A
-return (%0A %3Cspan style=%7B%7B
+const appliedStyles = %7B%0A
...
@@ -602,16 +602,20 @@
es.base,
+%0A
...(dim
@@ -622,38 +622,103 @@
med
-&& s
+? themeS
tyles
-.
+%5B'
dimmed
-), ...styles %7D
+'%5D : %7B%7D),%0A ...styles,%0A %7D;%0A %0A return (%0A %3Cspan st... |
29b46bef4151ef17d4410aa08602ef3fffcc9996 | Return streams. | Gulpfile.js | Gulpfile.js | var gulp = require('gulp')
var coffee = require('gulp-coffee')
var concat = require('gulp-concat')
var prepend = require('gulp-insert').prepend
var shell = require('gulp-shell')
var uglify = require('gulp-uglify')
var rename = require('gulp-rename')
var fs = require('fs')
gulp.task('build', function() {
// Order her... | JavaScript | 0.000004 | @@ -1248,32 +1248,39 @@
function() %7B%0A
+return
gulp.src('dist/*
@@ -1277,32 +1277,39 @@
rc('dist/*.js')%0A
+
.pipe(gulp
@@ -1684,32 +1684,39 @@
function() %7B%0A
+return
gulp.src('dist/*
@@ -1717,24 +1717,31 @@
dist/*/js')%0A
+
.pipe(
@@ -1809,16 +1809,23 @@
rails.%0A
+ ... |
5105d74cf9ac495557d553cc8363197b70fb358e | Fix bad check | script/check-version.js | script/check-version.js | #!/usr/bin/env node
var path = require('path');
var getBundledNodeVersion = require('./bundled-node-version')
var bundledNodePath = path.join(__dirname, '..', 'bin', 'node')
if (process.platform === 'win32') {
bundledNodePath += '.exe'
}
getBundledNodeVersion(bundledNodePath, function(err, bundledVersion) {
if ... | JavaScript | 0.000042 | @@ -580,17 +580,17 @@
latform
-!
+=
== 'win3
|
45c5941cc81451eada0fb6f263a7ebca026cfec9 | Fix templating feature. | site/top/src/filetype.js | site/top/src/filetype.js | (function(top, module, define) {
function inferScriptType(filename) {
var mime = mimeForFilename(filename);
if (mime == 'text/x-pencilcode') {
mime = 'text/coffeescript';
}
return mime;
}
function wrapTurtle(text, pragmasOnly) {
var result, scripts = [], script_pattern =
/(?:^|\n)#[^\S\n]*@script[^\... | JavaScript | 0 | @@ -114,21 +114,15 @@
if (
-mime == '
+/%5E
text
+%5C
/x-p
@@ -130,17 +130,28 @@
ncilcode
-'
+/.test(mime)
) %7B%0A
|
9a16391c6a76f6e0c5d9f777ac2b3ab9913333f8 | add oninit vendor/jquery/plugins: init, moved jquery plugins here mainhtml: removed useage of ua specific css files, now use classes on <html> | eventHandlers/hashHandler.js | eventHandlers/hashHandler.js | /*
allows binding of events to hashchange, and will hashify urls so that they can be animated but still based on the non-javascript urls
-----parameters
-----instantiation
*/
/*-------
©hashHandler
-------- */
__.classes.hashHandler = function(arguments){
//--required attributes
//->return
//--optional attribute... | JavaScript | 0 | @@ -421,24 +421,66 @@
ge %7C%7C null;%0A
+%09%09this.oninit = arguments.oninit %7C%7C null;%0A
%09%09this.selec
@@ -856,16 +856,82 @@
%0A%09%09%09%7D);%0A
+%09%09%0A%09%09if(this.oninit)%0A%09%09%09this.oninit.call(fncThis, location.hash);%0A
%09%7D%0A%09__.c
|
f9745f3938fb58c4ebebd78de65889b6bc6e962b | Revert "console" | detectLanguage.js | detectLanguage.js |
(function(ext) {
console.log('in function');
var ext = this;
var apiKey="trnsl.1.1.20150605T132039Z.c660d54664d42d1d.3e02378e3b4f321ba39e2dee119909f8b402292a";
// Cleanup function when the extension is unloaded
ext._shutdown = function() {};
// Status reporting code
// Use this to report ... | JavaScript | 0 | @@ -1274,31 +1274,8 @@
n);%0A
- console.log(names);
%0A
|
e810dc3aaf6e18157c5aa9ae2f1a2f6c877ee3d7 | correct filtering for boolean | src/admin/app/features/list/services/filterData.js | src/admin/app/features/list/services/filterData.js | import _ from 'lodash';
import moment from 'moment';
import {DATETIME, DATE, TIME, DEFAULT_DATE_FORMAT} from '../../shared/constants';
const itemValueByConfig = (itemValue, config) => {
switch (config.type) {
case DATETIME:
case DATE:
case TIME:
return moment(itemValue).format(config.format || DEFA... | JavaScript | 0.000105 | @@ -54,16 +54,19 @@
import %7B
+%0A
DATETIME
@@ -78,16 +78,27 @@
E, TIME,
+ BOOLEAN,%0A
DEFAULT
@@ -109,16 +109,18 @@
E_FORMAT
+,%0A
%7D from '
@@ -145,16 +145,63 @@
ants';%0A%0A
+const falseValues = %5B'f', 'false', 'n', '0'%5D;%0A%0A
const it
@@ -583,16 +583,54 @@
em =%3E %7B%0A
+ const config = sch... |
ab8d34431ddded05ce7d99e5099dbf1b020b3312 | Make spaceholder constant less shouty. | tinylisp.js | tinylisp.js | ;(function(exports) {
var Ctx = function() {
this.first = function(x) {
return x[0];
};
this.rest = function(x) {
return x.slice(1);
};
this.print = function() {
var argsArray = Array.prototype.slice.call(arguments);
console.log(argsArray);
return argsArray;
};
... | JavaScript | 0.000097 | @@ -1772,17 +1772,16 @@
(/ /g, %22
-!
spacehol
@@ -1783,17 +1783,16 @@
ceholder
-!
%22);%0A
@@ -2019,17 +2019,16 @@
eplace(/
-!
spacehol
@@ -2034,10 +2034,10 @@
lder
-!
/
+g
, %22
|
a0780fed7ceb87a14a7c20f8dabd7ae600675870 | use a container to hold the physic editor shapes | examples/shapes/js/screens/play.js | examples/shapes/js/screens/play.js | game.PlayScreen = me.ScreenObject.extend({
/**
* action to perform on state change
*/
onResetEvent: function() {
// clear the background
me.game.world.addChild(new me.ColorLayer("background", "#5E3F66"), 0);
// add a few shapes
// physic-editor
... | JavaScript | 0 | @@ -275,26 +275,22 @@
w shapes
-%0A
%0A
+%0A
@@ -310,37 +310,115 @@
tor%0A
-me.game.world
+var physicEditorContainer = new me.Container(0, 0, 400, 600);%0A physicEditorContainer
.addChild(ne
@@ -435,14 +435,13 @@
cle(
-250, 2
+75, 5
00,
@@ -474,37 +474,45 @@
1);%0A
-me.g... |
e8419eac193b759cddd23bab53e11bbf2dd1753e | Set up strict lint options. | jakefile.js | jakefile.js | /*global desc, task, jake, fail, complete */
"user strict";
task("default", ["lint"]);
desc("Lint everything");
task("lint", [], function(){
var lint = require("./build/lint/lint_runner.js");
var files = new jake.FileList();
files.include("**/*.js");
files.exclude("node_modules");
var options = {
n... | JavaScript | 0 | @@ -42,14 +42,27 @@
*/%0A
-%0A
+(function()%7B%0A
%22use
-r
str
@@ -68,16 +68,18 @@
rict%22;%0A%0A
+
task(%22de
@@ -98,16 +98,18 @@
nt%22%5D);%0A%0A
+
desc(%22Li
@@ -125,16 +125,18 @@
hing%22);%0A
+
task(%22li
@@ -156,16 +156,18 @@
tion()%7B%0A
+
var li
@@ -215,11 +215,11 @@
%22);%0A
+%0A
... |
f092f4af505155bf3a64f7a2ea2f42dd4cc17078 | Rollback to 12 jobs | Gulpfile.js | Gulpfile.js | var gulp = require('gulp');
var qunitHarness = require('gulp-qunit-harness');
var Promise = require('pinkie');
var CLIENT_TESTS_SETTINGS = {
basePath: 'test',
port: 2000,
crossDomainPort: 2001,
};
var CLIENT_TESTS_BROWSERS = [
{
platform: 'Window... | JavaScript | 0 | @@ -685,24 +685,951 @@
S X 10.11'%0D%0A
+ %7D,%0D%0A %7B%0D%0A platform: 'Windows 10',%0D%0A browserName: 'internet explorer',%0D%0A version: '11.0'%0D%0A %7D,%0D%0A %7B%0D%0A platform: 'Windows 8',%0D%0A browserName: 'internet explorer',%0D%0A version: ... |
7e7e9f0ac15cadb462a20969ccda86e67ee4cd69 | Use request helper to download node | script/download-node.js | script/download-node.js | #!/usr/bin/env node
var fs = require('fs');
var mv = require('mv');
var zlib = require('zlib');
var path = require('path');
var request = require('request');
var tar = require('tar');
var temp = require('temp');
temp.track();
var downloadFileToLocation = function(url, filename, callback) {
var stream = fs.createWri... | JavaScript | 0 | @@ -117,19 +117,295 @@
path');%0A
-var
+%0A// Use whichever version of the local request helper is available%0A// This might be the JavaScript or CoffeeScript version depending%0A// on whether this module is being installed explictly or%0A// %60npm install%60 is being run at the root of the repository.%0Avar request =... |
628f89902e46480371b1846dcb53d62461c516cc | Stop depending on "logs" directory | newrelic.js | newrelic.js | /**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name : ['Data Dashboard (' + process.env.NEW_RELIC_ENVIRON... | JavaScript | 0 | @@ -722,16 +722,8 @@
d(),
- 'logs',
'ne
|
788237ca6101e2def417aa4e5d781327ec544ba9 | abort if signalr connection doesn't come up | RightpointLabs.ConferenceRoom.StatusMonitor/index.js | RightpointLabs.ConferenceRoom.StatusMonitor/index.js | var fs = require('fs');
var http = require('http');
var url = require('url');
var Promise = require('promise');
var signalR = require('signalr-client');
var path = require('path');
var pwm = require('pi-blaster.js');
var configFile = path.join(__dirname, 'config.json');
console.log('Loading configuration from ' + conf... | JavaScript | 0.000001 | @@ -4147,16 +4147,210 @@
* 1000);
+%0A var gotConnected = false;%0A setTimeout(function() %7B%0A if(!gotConnected) %7B%0A console.log('Aborting - no connection');%0A process.exit(-1);%0A %7D%0A %7D, 30000);
%0A%0A va
@@ -4677,32 +4677,61 @@
= function() %7B%0A
+ ... |
5707b4f93a1a93b4a9609311fd1829d9854617dc | update Dropdown | src/dropdown/Dropdown.js | src/dropdown/Dropdown.js | import React from 'react';
import Select from 'react-select';
import omit from 'lodash/object/omit';
import { warn } from '../utils/log';
const themes = {
semantic: 'semantic-theme'
};
const PropTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.node,
React.PropTypes.element,
React.PropTy... | JavaScript | 0.000001 | @@ -90,24 +90,53 @@
ject/omit';%0A
+import cx from 'classnames';%0A
import %7B war
@@ -529,47 +529,73 @@
%7D;%0A%0A
-const Dropdown = React.createClass(%7B%0A%0A
+export default class Dropdown extends React.Component %7B%0A%0A static
pro
@@ -600,17 +600,18 @@
ropTypes
-:
+ =
PropTyp
@@ -612,17 +612,16 @@
rop... |
7a6c955d546b94ed7e7e4e4d6ecaee03dfafad48 | Use 8001 port instead of 8000 to be reverse proxied over 9090 | example/nodejs/LocalProxy.js | example/nodejs/LocalProxy.js | /*
This script runs a reverse proxy on http://localhost:9090/ to the actual backend http://localhost:8000/aws-mock/ec2-endpoint/
*/
'use strict';
var httpProxy = require('http-proxy'),
options = {
router: {
'localhost/': 'http://localhost:8000/aws-mock/ec2-endpoint/'
}
},
proxyServer = httpProxy.creat... | JavaScript | 0.000001 | @@ -241,33 +241,33 @@
://localhost:800
-0
+1
/aws-mock/ec2-en
|
ef75314e2bbc9a6cedb24bd82b91fe13bdd90e03 | Add some faker generated data :zap: | examples/todo-app/kakapo-config.js | examples/todo-app/kakapo-config.js | (function() {
'use strict';
const router = new Kakapo.Router();
const db = new Kakapo.Database();
db.register('todo', () => {
return {
title: 'Use Kakapo.js',
done: false
};
});
db.create('todo', 1);
router.get('/todos', () => {
return db.all('todo');
});
router.post('/... | JavaScript | 0 | @@ -117,24 +117,29 @@
er('todo', (
+faker
) =%3E %7B%0A r
@@ -163,42 +163,68 @@
le:
-'Use Kakapo.js',%0A done: false
+faker.company.companyName,%0A done: faker.random.boolean,
%0A
@@ -233,20 +233,16 @@
;%0A %7D);%0A
-
%0A db.cr
@@ -740,20 +740,16 @@
save();%0A
-
%0A ret
@@ -966,8 +... |
0677809279c8a48200918631af384d940c1802c1 | fix example doc page title | dev/metalsmith.js | dev/metalsmith.js | 'use strict';
const Metalsmith = require('metalsmith');
const layouts = require('metalsmith-layouts');
const prism = require('metalsmith-prism');
const marked = require('marked');
const markdown = require('metalsmith-markdown');
const inPlace = require('metalsmith-in-place');
const mock = require('metalsmith-mock');
c... | JavaScript | 0.000002 | @@ -1422,13 +1422,15 @@
ity
-UIKit
+Angular
'%0A
|
149587df812ff00b5496c8c355a727fe9bfd489c | Remove outdated TODO | admin/client/App/screens/List/actions/active.js | admin/client/App/screens/List/actions/active.js | import {
ADD_FILTER,
CLEAR_FILTER,
CLEAR_ALL_FILTERS,
SET_ACTIVE_SEARCH,
SET_ACTIVE_SORT,
SET_ACTIVE_COLUMNS,
SET_ACTIVE_LIST,
} from '../constants';
import { setCurrentPage } from '../actions';
/**
* Active actions
*/
export function setActiveSearch (searchString) {
return {
type: SET_ACTIVE_SEARCH,
sea... | JavaScript | 0.000032 | @@ -635,228 +635,8 @@
) %7B%0A
-%09// TODO Figure out why we needed below checks in CurrentListSotre and%0A%09// add them back in%0A%09// if (Array.isArray(columns)) columns = columns.join(',');%0A%09// if (columns === _list.defaultColumnPaths) columns = undefined;%0A
%09ret
|
461ee275907fa077e78a273dc3554e3174af6bd9 | fix jshint warning for newrelic config | newrelic.js | newrelic.js | /**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*
* https://docs.newrelic.com/docs/nodejs/configuring-nodejs-with-environment-variables
*/
exports.config = {
app_name : ['JSONP... | JavaScript | 0 | @@ -274,16 +274,52 @@
les%0A */%0A
+/*jshint node:true, strict:false */%0A
exports.
|
54f705537a0b780c72aa0dc8479bf5e9e20b4b7f | Add dynamic options | src/options/flat_opts.js | src/options/flat_opts.js | 'use strict';
const { assignArray } = require('../utilities');
// Get `flatOpts`, i.e. all options in a flat array
// Recursively validate each option, including intermediate objects
// in object chains
const getFlatOpts = function ({ prefix = '', options, availableOpts }) {
if (!options || options.constructor !== ... | JavaScript | 0.000026 | @@ -833,16 +833,25 @@
onfFiles
+, dynamic
%7D = ava
@@ -1062,16 +1062,57 @@
mselves%0A
+ // Dynamic options also do not recurse%0A
if (su
@@ -1135,16 +1135,27 @@
ndefined
+ %7C%7C dynamic
) %7B retu
|
528ceb812c94022e161dd898f04b080daaa99099 | Fix translation error status reason #6700 | src/app/components/media/MediaTranslationStatus.js | src/app/components/media/MediaTranslationStatus.js | import React, { Component } from 'react';
import Relay from 'react-relay';
import { injectIntl, FormattedMessage } from 'react-intl';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import CreateDynamicMutation from '../../relay/mu... | JavaScript | 0.000001 | @@ -2634,27 +2634,34 @@
tus);%0A
-thi
+MediaStatu
s.setStatus(
|
17e2412b8d4b065d3ae34f9cb6acb2c5c4fc2c20 | fix leads and customers link in menu | js/menu.js | js/menu.js | export default function (nga, admin) {
return nga.menu()
.addChild(nga.menu()
.title('Visitors')
.icon('<span class="fa fa-users fa-fw"></span>')
.active(path => path.indexOf('/customers') === 0) // active() is the function that determines if the menu is active
... | JavaScript | 0 | @@ -433,15 +433,13 @@
ed%22:
-%22
false
-%22
%7D')
@@ -746,14 +746,12 @@
ed%22:
-%22
true
-%22
%7D')
|
8ed7b1b1fe93c274e4ecb283a2052f680e2e43fc | Align the instructions page better for fewer collisions | js/menu.js | js/menu.js | MENU = {
}
MENU.setup = function() {
width = 500;
height = 500;
menuArea = document.getElementById('menuarea');
menuArea.style.width = width;
menuArea.style.height = height;
menuHeader = document.getElementById('menuheader');
menuHeader.style.position = "absolute";
menuHeader.style.le... | JavaScript | 0.999688 | @@ -358,33 +358,33 @@
der.style.top =
-8
+6
0;%0A%0A buttons
@@ -1229,17 +1229,17 @@
e.top =
-8
+6
0;%0A%0A
@@ -1643,9 +1643,10 @@
2 -
-8
+12
0;%0A%0A
|
ba2af965ff39dc4a5374ac4030a25c77e6cdd4c5 | Add db module to dependencies after postInstall completes, fixes #36 | bin/postInstall.js | bin/postInstall.js | 'use strict';
var path = require('path')
, fs = require('fs')
, cp = require('child_process')
, config = require('config')
, dialect = config['clever-orm'].db.options.dialect
, appRoot = path.resolve(path.join(__dirname, '..', '..', '..'))
, verbose = process.argv.indexOf... | JavaScript | 0 | @@ -16,27 +16,24 @@
var path
-
= require('p
@@ -46,27 +46,24 @@
, fs
-
= require('f
@@ -78,19 +78,16 @@
cp
-
-
= requir
@@ -117,19 +117,16 @@
config
-
= requir
@@ -149,19 +149,16 @@
dialect
-
= config
@@ -203,19 +203,16 @@
appRoot
-
= path.r
@@ -266,18 +266,117 @@
... |
b3efaffffe983f3401951e5de12090a8dbd0a94f | rename gulptask: build:templates | Gulpfile.js | Gulpfile.js | // Generated by CoffeeScript 1.9.2
var gulp = require('gulp');
var concat = require('gulp-concat');
var tsc = require('gulp-typescript');
var bowerFiles = require('gulp-bower-files');
var handlebars = require('gulp-handlebars');
var wrap = require('gulp-wrap');
var declare = require('gulp-declare');
var path = require(... | JavaScript | 0.012229 | @@ -407,25 +407,25 @@
nts', 'build
--
+:
templates'%5D)
@@ -656,25 +656,25 @@
bs', %5B'build
--
+:
templates'%5D)
@@ -1243,17 +1243,17 @@
k('build
--
+:
template
|
e0f98c17a73a6c27083a46bcc07ea270451273b1 | Add sockets to messages | app/messages/controller.js | app/messages/controller.js | var router = getRouter();
var Message = require('./model');
var User = require('../users/model');
/**
* Create a new message
* POST /messages
* Auth -> admin, staff
*/
router.post('/messages', User.auth('admin', 'staff'), function (req, res) {
var errors = Message.validate(req.body);
if (errors.length) return res.... | JavaScript | 0.000001 | @@ -19,16 +19,94 @@
uter();%0A
+var socket = rootRequire('app/helpers/socket');%0Avar io = socket('/messages');%0A
var Mess
@@ -127,24 +127,24 @@
'./model');%0A
-
var User = r
@@ -560,24 +560,56 @@
nalError();%0A
+ io.emit('create', message);%0A
return r
@@ -1530,32 +1530,66 @@
nternalError();%0A
+ i... |
f8f2c89ba391dc3d8b87a3e7ce7442354f38a342 | Fix bug global leaks, `;` to `,` | lib/less/tree/extend.js | lib/less/tree/extend.js | (function (tree) {
tree.Extend = function Extend(elements, index) {
this.selector = new(tree.Selector)(elements);
this.index = index;
};
tree.Extend.prototype.eval = function Extend_eval(env) {
var selfSelectors = findSelfSelectors(env.selectors);
targetValue = this.selector.elements[0].value;
... | JavaScript | 0.000025 | @@ -253,17 +253,17 @@
lectors)
-;
+,
%0A
|
e37c099f7e00a3e18c2642c8f4f342dea02b4b48 | change source and destination path | gulpfile.js | gulpfile.js | var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... | JavaScript | 0 | @@ -586,16 +586,24 @@
%5B%0A %09'
+gallery/
app.js'%0A
@@ -612,30 +612,31 @@
%5D,'public/
-elixir
+gallery
/js/app.js')
@@ -662,16 +662,24 @@
%5B%0A %09'
+gallery/
controll
@@ -703,32 +703,40 @@
r.js',%0A '
+gallery/
controllers/glob
@@ -762,16 +762,24 @@
'
+gallery/
controll
@@ -785,16 ... |
82e144b44c8b3d327369f14a254d8c21692e5c0a | Make sure we don't end up with identical random hash seeds. | lib/bloom.js | lib/bloom.js | var
crypto = require('crypto'),
util = require('util'),
Xxhash = require('xxhash')
;
function BloomFilter(hashes, bits, seeds)
{
this.hashes = hashes;
this.bits = bits;
this.seeds = seeds || [];
var octets = Math.ceil(this.bits / 8);
this.buffer = new Buffer(octets);
this.clear();
if (!seeds)
this.gene... | JavaScript | 0 | @@ -991,16 +991,19 @@
var buf
+, j
;%0A%09for (
@@ -1107,16 +1107,215 @@
32LE(0);
+%0A%0A%09%09// Make sure we don't end up with two identical seeds,%0A%09%09// which is unlikely but possible.%0A%09%09for (j = 0; j %3C i; j++)%0A%09%09%7B%0A%09%09%09if (this.seeds%5Bi%5D === this.seeds%5Bj%5D)%0A%09%09%09%7B%0A%09%... |
40fbdfd127dfa0b35956aee4274cd4e041d7d816 | Fix wrong shortcut name in installer | gulpfile.js | gulpfile.js | var exec = require('child_process').exec;
var del = require('del');
var gulp = require('gulp');
var sequence = require('run-sequence');
var packager = require('electron-packager');
var vulcanize = require('gulp-vulcanize');
var winInstaller = require('electron-windows-installer');
var TEMP_BUILD_DIR = 'vulcanized';
va... | JavaScript | 0.000002 | @@ -276,16 +276,69 @@
ler');%0A%0A
+var VERSION = require('./src/package.json').version;%0A
var TEMP
@@ -413,17 +413,16 @@
dist';%0A%0A
-%0A
gulp.tas
@@ -1834,16 +1834,42 @@
.30.2',%0A
+%09%09'app-version': VERSION,%0A
%09%09icon:
@@ -1896,16 +1896,314 @@
y.ico',%0A
+%09%09'version-string': %7B%0A%09%09%09Compa... |
bd72d764d4e85bdfd89ffa91e36b527e46e3df44 | Add latitude & longitude to traffic_data.js file | app/models/traffic_data.js | app/models/traffic_data.js | var sequelize = require('./traffic_data.js');
var Sequelize = require ('sequelize')
, sequelize = new Sequelize('area', 'location', 'address', 'code', 'type', 'date');
var Data = sequelize.define('traffic_data', {
area: Sequelize.STRING,
location: Sequelize.STRING,
address: Sequelize.STRING,
code: Sequelize... | JavaScript | 0.000006 | @@ -1,12 +1,385 @@
+#!/usr/bin/env node%0A%0Avar debug = require('debug')('express-example');%0Avar app = require('../app');%0Avar models = require(%22../models%22);%0A%0Aapp.set('port', process.env.PORT %7C%7C 3000);%0A%0Amodels.sequelize.sync().then(function () %7B%0A var server = app.listen(app.get('port'), functio... |
7bb5574ab3baca27e85862dacd4d28b368d41a20 | Make MemoryLocation more useful for the server side rendering | lib/locations/memory.js | lib/locations/memory.js | module.exports = function (path) {
return {
path: path || '',
getURL: function () {
return this.path
},
setURL: function (path) {
this.path = path
this.handleURL(this.getURL())
},
replaceURL: function (path) {
this.setURL(path)
},
onChange: function (callbac... | JavaScript | 0.000123 | @@ -1,8 +1,36 @@
+var _ = require('../dash')%0A%0A
module.e
@@ -165,32 +165,41 @@
: function (path
+, options
) %7B%0A this.p
@@ -184,32 +184,36 @@
ptions) %7B%0A
+if (
this.path = path
@@ -210,15 +210,47 @@
ath
+!=
= path
-%0A
+) %7B%0A this.path = path%0A
@@ -279,17 +279,34 @@
getUR... |
cb5117a17578a69a1bb9b539ed838ad748f06159 | fix getter | packages/shell-dev-vue2/src/store.js | packages/shell-dev-vue2/src/store.js | import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
strict: true,
state: {
inited: 0,
count: 0,
lastCountPayload: null,
date: new Date(),
set: new Set(),
map: new Map(),
sym: Symbol('test'),
object: {
name: 'I am Object',
number: ... | JavaScript | 0.000002 | @@ -1905,22 +1905,8 @@
ate.
-notNamespaced.
hell
|
47cdd83df3b20127f7d62215a8d7428c64a3e4f3 | update tests | lib/check.js | lib/check.js | import net from 'net';
export default function check(port, host) {
return new Promise( (resolve, reject) => {
var server = net.createServer(null, () => {});
server.on('error', (err) => {
server.close();
if (err.code == 'EADDRINUSE') {
resolve(true);
}else {
resolve(fals... | JavaScript | 0.000001 | @@ -196,38 +196,16 @@
r) =%3E %7B%0A
- server.close();%0A
if
|
0eb2d12531267c3ccd3bd4868937a901e2f4534c | Add PointerLockOptions argument to requestPointerLock | externs/browser/w3c_pointerlock.js | externs/browser/w3c_pointerlock.js | /*
* Copyright 2015 The Closure Compiler 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 applicable ... | JavaScript | 0.000001 | @@ -730,16 +730,262 @@
ns%0A */%0A%0A
+/**%0A * TODO(bradfordcsmith): update the link when PR is merged%0A * @see https://github.com/w3c/pointerlock/pull/49/%0A * @record%0A */%0Afunction PointerLockOptions() %7B%7D%0A%0A/** @type %7Bundefined%7Cboolean%7D */%0APointerLockOptions.prototype.unadjustedMovement;%0A
%0A/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.