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 |
|---|---|---|---|---|---|---|---|
ecff51b1ad40715a121587dd790c443b474ce950 | Fix test helpers in ember-cli-qunit 3.0 (#106) | addon/helpers/drag.js | addon/helpers/drag.js | import Ember from 'ember';
const { $ } = Ember;
/**
Drags elements by an offset specified in pixels.
Examples
drag(
'mouse',
'.some-list li[data-item=uno]',
function() {
return { dy: 50, dx: 20 };
}
);
@method drag
@param {'mouse'|'touch'} [mode]
eve... | JavaScript | 0.000001 | @@ -1189,24 +1189,180 @@
offsetFn();%0A
+ let itemElement = item.get(0);%0A let rect = itemElement.getBoundingClientRect();%0A let scale = itemElement.clientHeight / (rect.bottom - rect.top);%0A
let targ
@@ -1394,16 +1394,24 @@
ffset.dx
+ * scale
;%0A le
@@ -1448,16 +1448,24 @@
ffset.dy
+ * scale
... |
28aa32752b8dff51ecb5a53f15f575f6c5f05808 | update TipProvider | src/TipProvider/TipProvider.js | src/TipProvider/TipProvider.js | /**
* @file TipProvider component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component, cloneElement} from 'react';
import PropTypes from 'prop-types';
import {findDOMNode} from 'react-dom';
import Tip from '../Tip';
import Theme from '../Theme';
import Util from '../_vendors/Util';
exp... | JavaScript | 0 | @@ -314,23 +314,8 @@
';%0A%0A
-export default
clas
@@ -3733,12 +3733,41 @@
xt: null%0A%0A%7D;
+%0A%0Aexport default TipProvider;
|
d3a1abeda45357c4cf32b28e6e63cc269d7d3bda | Change HOME env var to avoid cache | rctest.js | rctest.js | #!/usr/bin/env node
// Set the platforms you want to test here.
// Have the test device(s) connected when running ./test.
var platforms = ['android'];
var path = require('path');
var fs = require("fs");
var shelljs = require('shelljs');
var cordova_lib = require('cordova-lib');
var cdv = cordova_lib.cordova.raw;
... | JavaScript | 0.000001 | @@ -230,24 +230,152 @@
shelljs');%0A%0A
+// Use fake home dir to avoid using cached versions of plugins and platforms.%0Aprocess.env.HOME = path.join(__dirname, 'home');%0A%0A
var cordova_
|
113c9ffbad4d05523407c1bfe09a7233e0858a6a | Update trackers | torrentz-magnet.user.js | torrentz-magnet.user.js | // ==UserScript==
// @name Torrentz magnet
// @namespace memmie.lenglet.name
// @author mems <memmie@lenglet.name>
// @homepageURL https://github.com/mems/torrentz-magnet
// @description Add magnet link to torrentz download page.
// @match *://*.torrentz2.eu/*
// @match *://*.torrentz.com/*
// @match *://*.torr... | JavaScript | 0 | @@ -737,17 +737,17 @@
on%09%091.1.
-4
+5
%0A// @gra
@@ -823,16 +823,267 @@
load%22);%0A
+// Default list of track will be used in addition to trackers provided by torrentz%0A// Lists available (could be used to customize the following list):%0A// https://newtrackon.com/%0A// https://github.com/ngosang/trackerslist/b... |
8f2523d0ba24bae87522500f570c7484314236a9 | update touch and background image | js/canvas.js | js/canvas.js | height= 270;
width= 480;
function startGame() {
myGameArea.start();
}
var myGameArea = {
canvas : document.createElement("canvas"),
start : function() {
this.canvas.width = width;
this.canvas.height = height;
// this.canvas.style.cursor = "none"; //hide the original cursor... | JavaScript | 0 | @@ -72,18 +72,16 @@
();%0D%0A%7D%0D%0A
-%0D%0A
var myGa
@@ -528,24 +528,262 @@
Area, 20);%0D%0A
+ window.addEventListener('mousemove', function (e) %7B%0D%0A myGameArea.x = e.pageX;%0D%0A myGameArea.y = e.pageY;%0D%0A myGamePiece.image.src = %22images/bird3.png%22;%0D%0A ... |
9fb65748ab142949e7a06c70e5ff4745bd9fa303 | Update status.js | js/status.js | js/status.js |
// https://mcapi.ca/query/play.strongcraft.org/extensive
ServerStatus('ilovebigdick.iceswag.com:36503'); | JavaScript | 0.000002 | @@ -97,12 +97,13 @@
com:
-36503
+64712
');
+%0A
|
0e0815f03b7dcd231673df1b2812bb42c8cc98b9 | Set select value after init | client/app/components/ui-dropdown.js | client/app/components/ui-dropdown.js |
import Ember from "ember";
export default Ember.Component.extend({
tagName: 'div',
classNames: ['ui', 'selection', 'dropdown', 'fluid'],
classNameBindings: ['multiple', 'search'],
content: null,
optionValuePath: null,
optionLabelPath: null,
allowAdditions: null,
bindAttributes: ['optionValuePath', ... | JavaScript | 0 | @@ -993,16 +993,60 @@
)%0A %7D)
+.dropdown('set selected', this.get('value'))
;%0A %7D.on
|
cbf3875a640ee10a7529ede83b3147675f7f6f42 | Test data removed | public/javascripts/app.js | public/javascripts/app.js | (function() {
var socket = io.connect();
var SDebugger = angular.module('SDebugger', []);
SDebugger.controller('MainCtrl', ['$scope' ,'$element' , function($scope, $element){
$scope.logsData = [{
logName : "Azhar",
logs : JSON.stringify({name : "azhar"})
},{
logName : "Azhar",
logs : JSON.st... | JavaScript | 0 | @@ -203,151 +203,8 @@
= %5B
-%7B%0A%09%09%09logName : %22Azhar%22,%0A%09%09%09logs : JSON.stringify(%7Bname : %22azhar%22%7D)%0A%09%09%7D,%7B%0A%09%09%09logName : %22Azhar%22,%0A%09%09%09logs : JSON.stringify(%7Bname : %22azhar%22%7D)%0A%09%09%7D
%5D;%0A%09
|
58e2dd5ea46c65db1a9ada1fe711a2815231369d | fix path for handlebars template - fixes windows | appsrc/js/podcast-render.js | appsrc/js/podcast-render.js | var fs = require('fs');
var path = require('path');
var handlebars = require('handlebars');
import moment from 'moment';
const escape = {
'&': '&',
'<': '<',
'>': '>'
};
const badChars = /[&<>]/g;
const possible = /[&<>]/;
function escapeChar(chr) {
return escape[chr];
}
function customEscape... | JavaScript | 0 | @@ -830,15 +830,30 @@
h =
-'./app/
+path.join(__dirname, '
podc
@@ -869,16 +869,17 @@
ate.hbs'
+)
;%0A var
|
8250846d39013dd9cd0bcacf4ddb3284fc3d76e2 | hello world 1 | js/client.js | js/client.js | /* global TrelloPowerUp */
var WHITE_ICON = './images/icon-white.svg';
var GRAY_ICON = './images/icon-gray.svg';
var parkMap = {
acad: 'Acadia National Park',
arch: 'Arches National Park',
badl: 'Badlands National Park',
brca: 'Bryce Canyon National Park',
crla: 'Crater Lake National Park',
dena: 'Denali ... | JavaScript | 0.999991 | @@ -2998,16 +2998,26 @@
orld%22);%0A
+ %7D%0A
%7D%0A
|
54fc54fce9b80e6b9d4322cfb8f2f5c9cd30a959 | Fix var error in test | test/unit/modules/browser-auto-tracking-spec.js | test/unit/modules/browser-auto-tracking-spec.js | var assert = require('proclaim');
var config = require('../helpers/client-config');
var Keen = require('../../../lib/browser');
describe('Auto Tracking', function() {
beforeEach(function() {
this.client = new Keen({
projectId: config.projectId,
writeKey: config.writeKey,
requestType: 'xhr',
... | JavaScript | 0.000002 | @@ -2668,21 +2668,23 @@
seEvent(
+'
click
+'
,%0A
|
856ef4ddbb75aeefc136f9087129b396bfe8d949 | Add related check on ready | src/main/web/florence/js/functions/_editRelated.js | src/main/web/florence/js/functions/_editRelated.js | function editRelated (collectionId, data, templateData, field, idField) {
var list = templateData[field];
var dataTemplate = createRelatedTemplate(idField, list);
var html = templates.editorRelated(dataTemplate);
$('#'+ idField).replaceWith(html);
initialiseRelated(collectionId, data, templateData, field, idF... | JavaScript | 0 | @@ -4032,16 +4032,24 @@
atest%22%3EL
+ink to l
atest%3C/l
@@ -4341,16 +4341,22 @@
x').on('
+ready
change',
|
8696eb93e9d1ebb2557e4b419108d18f85c7cd73 | add price | javascript/practice.js | javascript/practice.js |
var array_of_items = {Tissues: "253-07-0129", Scissors: "081-22-0936", Glue: "081-06-1653", Crayons: "081-04-0343", Watercolor_Set: "081-04-0600", Markers: "081-04-1261", Pencils: "081-02-1857", Notebook: "081-01-1751", Erasers: "081-02-1505", Folders: "081-03-0706", Box: "081-06-2910", Soap: "049-00-1118", Bags: "253... | JavaScript | 0.000001 | @@ -1038,24 +1038,25 @@
nt_price);%0A%0A
+%0A
var
@@ -1059,17 +1059,17 @@
var div_
-a
+b
= docum
@@ -1106,17 +1106,17 @@
div_
-a
+b
.innerHT
@@ -1120,19 +1120,95 @@
rHTML =
-key
+%22Description: %22 + data.product_composite_response.items%5B0%5D.general_description;
%0A
@@ -1260,17 +1260,1... |
405807e60dbaf8cef52395645161d0c4f74861f9 | Use DisplayIf in the amount-input component. | client/components/ui/amount-input.js | client/components/ui/amount-input.js | import React from 'react';
import PropTypes from 'prop-types';
import { translate as $t, maybeHas as has } from '../../helpers';
function extractValueFromText(realValue, isCurrentlyNegative, allowToggleSign) {
let valueWithPeriod = realValue ? realValue.trim().replace(',', '.') : '';
// Keep only the first p... | JavaScript | 0 | @@ -122,16 +122,54 @@
elpers';
+%0Aimport DisplayIf from './display-if';
%0A%0Afuncti
@@ -4553,164 +4553,8 @@
';%0A%0A
- let maybeCurrency = null;%0A if (this.props.currencySymbol) %7B%0A maybeCurrency = %3Cspan%3E%7Bthis.props.currencySymbol%7D%3C/span%3E;%0A %7D%0A%0A
@@ -5554... |
fc38898a94d52b623df8caf3ed604da35aaf58f1 | Update position.js | src/shorthands/position.js | src/shorthands/position.js | // @flow
import directionalProperty from '../helpers/directionalProperty'
const positionMap = ['absolute', 'fixed', 'relative', 'static', 'sticky']
/**
* The position shorthand accepts up to five values, including null to skip a value, and uses the directional-property mixin to map them to their respective direction... | JavaScript | 0.000001 | @@ -800,32 +800,33 @@
ion('absolute',
+'
12px', '24px', '
@@ -933,16 +933,17 @@
olute',
+'
12px', '
|
a6dfc1180e7c4ad8c039da2934fb7a2c00b91269 | change site title | fragment.js | fragment.js | const config = require('./config.json');
module.exports = () => `
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<... | JavaScript | 0.000001 | @@ -324,18 +324,29 @@
le%3EFull
-on
+On Youth Camp
%3C/title%3E
|
e78b1e4b366fabb95441f8afc71a93177edecea8 | Enable loader to load stylesheets, too. | vizard/public/js/loader.js | vizard/public/js/loader.js | (function() {
// TODO replace loader with DeferJS when it supports .css loading.
function Parameters(search) {
var pairs = search.slice(1).split('&');
var param, value;
if (search === '') { return this; }
for (var i = 0; i < pairs.length; i++) {
param = pairs[i].split('=', 1);
param = decodeURICompone... | JavaScript | 0 | @@ -932,44 +932,128 @@
;%0A%0A%09
-function require(src) %7B%0A%09%09var script
+var jsExtname = /%5C.js$/, cssExtname = /%5C/.css$/;%0A%09function require(src) %7B%0A%09%09var req;%0A%09%09if (jsExtname.test(src)) %7B%0A%09%09%09req
= $
@@ -1108,16 +1108,17 @@
src);%0A%09%09
+%09
$('body'
@@ -1126,24 +1126,177 @@... |
d415358970c949157dbb5d3fea951c84b41976ba | fix percentile for collaborators | api/models/Package.js | api/models/Package.js | /**
* Package.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
var Promise = require('bluebird');
module.exports = {
attributes: {
name: {
type: Seque... | JavaScript | 0.000001 | @@ -2646,44 +2646,8 @@
s =
-ElasticSearchService.cachedLastMonth
Perc
@@ -2652,17 +2652,24 @@
rcentile
-s
+.findAll
();%0A%0A
@@ -2958,12 +2958,25 @@
= _.
-omit
+mapValues(_.keyBy
(per
@@ -2996,20 +2996,50 @@
nse,
- 'fromCache'
+%22percentile%22),function(a)%7Breturn a.value;%7D
);%0A
|
0d3c9b6db7eee0379f86f62a2fdd3d4f2214fbdc | Convert version to numbers | src/capabilities.js | src/capabilities.js | export class Capabilities {
constructor(versionStr) {
this.QUERY_POST_ENDPOINTS = true;
this.QUERY_BY_TAGS = true;
this.QUERY_STATS_POST_ENDPOINTS = true;
this.FETCH_ALL_TAGS = true;
this.TAGS_QUERY_LANGUAGE = true;
const regExp = new RegExp('([0-9]+)\.([0-9]+)\.(.+)');
if (versionStr.mat... | JavaScript | 0.999999 | @@ -394,24 +394,25 @@
nst major =
++
versionInfo%5B
@@ -435,16 +435,17 @@
minor =
++
versionI
|
76dca151caccbe275af39efaa6b0aa62a8359d7d | Indent fix | src/rednose-dialog/js/extensions/dialog-template.js | src/rednose-dialog/js/extensions/dialog-template.js | var Micro = Y.Template.Micro;
function Template() {}
Template.prototype = {
// -- Public Properties ----------------------------------------------------
baseTemplate:
'<form class="form-horizontal">' +
'</form',
tabTemplate: Micro.compile(
'<fieldset>' +
... | JavaScript | 0.000001 | @@ -153,20 +153,16 @@
-------%0A
-
%0A bas
@@ -171,17 +171,16 @@
emplate:
-
%0A
@@ -210,25 +210,24 @@
izontal%22%3E' +
-
%0A '%3C/
@@ -274,20 +274,16 @@
-
-
'%3Cfields
@@ -288,20 +288,17 @@
dset%3E' +
- %0A
+%0A
@@ -297,26 +297,24 @@
-
'%3Cdiv id... |
133229b148299ae3e984d3fad37adb5d010d3e25 | Update menuController.js | js/menuController.js | js/menuController.js | var app = angular.module("ScarmaGames", []);
app.controller("menuController", ['$scope','$location', function($scope, $location) {
$scope.go=function(path){
$location.path( path );
}
var linebreak="\n";
$scope.items = [{
label: "Warp Bird",
link: "Warp Bird",
desc : "A Bird Can Destroy"+linebreak+... | JavaScript | 0.000001 | @@ -135,18 +135,20 @@
%09$scope.
-go
+play
=functio
@@ -149,20 +149,23 @@
unction(
-path
+gameUrl
)%7B%0A%09$loc
@@ -180,21 +180,42 @@
th(
-path
+'./'+gameUrl+ '/index.html'
);%0A %7D%0A
-%09
var
@@ -229,16 +229,17 @@
ak=%22%5Cn%22;
+%09
%0A $scop
|
4eac48bcf9e49dda8402ab24fc1fc9198e6e8228 | Update custom.js | js/custom.js | js/custom.js |
/*-------------------------------------------------------------------------------
PRE LOADER
-------------------------------------------------------------------------------*/
$(document).ready(function(){
$( "#menu-tpl" ).load( "/mysite/templates/nav.html" );
$( "#portfolio-tpl" ).load( "/mysite/tem... | JavaScript | 0.000001 | @@ -230,39 +230,61 @@
u-tpl%22 ).load( %22
-/mysite
+http://filippoquacquarelli.it
/templates/nav.h
@@ -316,39 +316,61 @@
o-tpl%22 ).load( %22
-/mysite
+http://filippoquacquarelli.it
/templates/portf
@@ -417,15 +417,37 @@
d( %22
-/mysite
+http://filippoquacquarelli.it
/tem
|
06d3b1990a46bec0fae5c1e8f1930663605dcdf4 | Fix case | js/coffee.js | js/coffee.js | module.exports = {
debug: 0,
debugString: "200\n1. March 14:28:371",
msgNoPots: 'Ingen kanner i dag',
msgNoCoffee: 'Kaffen har ikke blitt satt på',
msgFormatError: 'Feil i kaffeformat',
msgConnectionError: 'Frakoblet fra kaffekanna',
msgComforting: 'Så så, det er sikkert kaffe :)',
msgNotification: 'Ka... | JavaScript | 0.999965 | @@ -581,17 +581,17 @@
uire(%22./
-A
+a
ffiliati
@@ -751,17 +751,17 @@
uire(%22./
-A
+a
jaxer.js
|
42d601e214fff7c6909f5a3c8a923550c622e4f0 | Fix exception with invalid fragment causing bogus extra scrollbars. | static/js/portico/help.js | static/js/portico/help.js | import * as google_analytics from './google-analytics.js';
import SimpleBar from 'simplebar';
import {activate_correct_tab} from './tabbed-instructions.js';
function registerCodeSection($codeSection) {
const $li = $codeSection.find("ul.nav li");
const $blocks = $codeSection.find(".blocks div");
$li.click(... | JavaScript | 0 | @@ -1848,16 +1848,38 @@
h !== ''
+ && $(hash).length %3E 0
) %7B%0A
|
5c5d68f40f88a79675eeb9616068f1c001357192 | implement isMinimal() and partitionMap() | src/dsymbols/properties.js | src/dsymbols/properties.js | 'use strict';
var I = require('immutable');
var DS = require('./delaney');
var Partition = require('../common/partition');
var _fold = function _fold(partition, a, b, matchP, spreadFn) {
var p = partition;
var q = I.List().push(I.List([a, b]));
while (!q.isEmpty()) {
var _tmp = q.first();
var x = _tmp... | JavaScript | 0.001514 | @@ -1084,16 +1084,890 @@
);%0A%7D;%0A%0A%0A
+var isMinimal = function isMinimal(ds) %7B%0A var D0 = ds.elements().first();%0A var tm = _typeMap(ds);%0A%0A var match = function(D, E) %7B return tm.get(D).equals(tm.get(E)); %7D;%0A var spread = function(D, E) %7B%0A return ds.indices().map(function(i) %7B%0A ... |
10ab4a2724511975c36453b95841014faa111fce | add log to confirm env var value | src/back/services/user_management.js | src/back/services/user_management.js | import knex from 'knex';
import yup from 'yup';
const db = knex({
client: 'pg',
connection: {
host: process.env.DATABASE_HOST,
user: 'api',
password: process.env.DATABASE_PASSWORD,
database: 'app',
},
});
export const registerSchema = yup.object().shape({
organization: yup
.object()
.s... | JavaScript | 0.000001 | @@ -42,16 +42,85 @@
'yup';%0A%0A
+console.log('process.env.DATABASE_HOST', process.env.DATABASE_HOST);%0A
const db
|
4d5642f182d0357b15e0c3c426232192e53659c9 | Remove redundant placeholder. | client/src/new/editors/inputField.js | client/src/new/editors/inputField.js | import React from 'react'
const inputField = ({ input, label, type, meta: { touched, error, warning } }) => (
<div>
<label htmlFor={input.name}>{label}</label>
<div>
<input {...input} placeholder={label} type={type} />
{touched && ((error && <span>{error}</span>) || (warning && <span>{warning}</s... | JavaScript | 0.000001 | @@ -197,28 +197,8 @@
put%7D
- placeholder=%7Blabel%7D
typ
|
b7ff586ca1459ba8351dfd766bcb944e085e0fd5 | Inline the interval to frequency function | src/effects/PitchEffect.js | src/effects/PitchEffect.js | /**
* A pitch change effect, which changes the playback rate of the sound in order
* to change its pitch: reducing the playback rate lowers the pitch, increasing the rate
* raises the pitch. The duration of the sound is also changed.
*
* Changing the value of the pitch effect by 10 causes a change in pitch by 1 semiton... | JavaScript | 0.999978 | @@ -1986,53 +1986,33 @@
-return this.intervalToFrequencyRatio(
+const interval =
val / 10
);%0A
@@ -2007,39 +2007,28 @@
val / 10
-)
;%0A
-%7D%0A%0A
/
-**%0A *
+/
Convert
@@ -2032,147 +2032,11 @@
ert
-a musical interval to a frequency ratio.%0A * With thanks to Tone.js: https://github.com/... |
253c10393d38292d828451aa15f1b027efea96e4 | Use PanZoomBar instead of PanZoom. | public/javascripts/map.js | public/javascripts/map.js | var map;
var markers;
var popup;
OpenLayers._getScriptLocation = function () {
return "/openlayers/";
}
function createMap(divName) {
map = new OpenLayers.Map(divName);
var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", { displayOutsideMaxExtent: true });
map.addLayer(mapnik);
var osmarender =... | JavaScript | 0 | @@ -170,16 +170,284 @@
(divName
+, %7B%0A controls: %5B%0A new OpenLayers.Control.ArgParser(), %0A new OpenLayers.Control.Attribution(),%0A new OpenLayers.Control.LayerSwitcher(),%0A new OpenLayers.Control.Navigation(), %0A new OpenLayers.Control.PanZoomBar()%0A %5D%0A... |
8b05199af6c4fa17d246ee3a40b432026cb68b3e | fix server configuration settings | server/config/app.js | server/config/app.js | import path from 'path';
import logger from 'morgan';
import bodyParser from 'body-parser';
import Routes from '../routes/index';
require('dotenv').config();
/* eslint-disable no-console */
const app = express();
const router = express.Router();
const compiler = webpack(config);
app.use(require('webpack-dev-middlewa... | JavaScript | 0.000001 | @@ -85,16 +85,126 @@
arser';%0A
+import express from 'express';%0Aimport webpack from 'webpack';%0Aimport config from '../../webpack.config.dev';%0A%0A
import R
|
d74496807f4a7eb6352e9d912ca94717ae12fe8b | Update custom.js | js/custom.js | js/custom.js | (function($) {
'use strict';
/* Hide menu after click
----------------------------------------------*/
$('.navbar-nav li a').click(function(event) {
$('.in').collapse('hide');
});
/* Smooth scroll to section
----------------------------------------------*/
$('a.scroll[href*=#]:... | JavaScript | 0.000001 | @@ -999,16 +999,40 @@
ems : 3,
+%0A lazyLoad : true
%0A%0A %7D)
|
05b5a13e26d49368306c9c92847635dbbeebbb8c | remove console.log | js/common.js | js/common.js | ;(function ($) {
// Mode of the modern standard
'use strict';
// Preloader
$(window).on('load', function () {
$('.preloader').delay(350).fadeOut('slow');
console.log("window loaded");
});
// Function to execute when the DOM is fully loaded.
$(function () {
// Variables
var dppx ='';
... | JavaScript | 0.000006 | @@ -165,42 +165,8 @@
');%0A
- console.log(%22window loaded%22);%0A
%7D)
|
87850f7d6859bafcfbcac5362d493758e092d245 | Remove inactive class for active signal bars | homedisplay/info_internet_connection/static/js/internet_connection.js | homedisplay/info_internet_connection/static/js/internet_connection.js | var ShowRealtimePing = function() {
var ws4redis, container = $("#internet-connection .ping"), invalid_timeout;
function noUpdates(warning_class) {
warning_class = warning_class || "error";
container.html("<i class='fa fa-times-circle "+warning_class+"-message'></i>");
}
function autoNoUpdates() {
... | JavaScript | 0 | @@ -1510,24 +1510,48 @@
ss(%22active%22)
+.removeClass(%22inactive%22)
;%0A %7D%0A %7D%0A
|
61d31df4b128e8551b956f87e6ca1ed887864a4a | Use autoprefixer for css prefixing | server/css-bundle.js | server/css-bundle.js | 'use strict';
var cssAid = require('css-aid')
, getFiles = require('./css-bundle-get-files');
module.exports = function (indexPath, readFile) {
return getFiles(indexPath, readFile)(function (data) {
return cssAid(data.reduce(function (content, data) {
return content + '/* ' + data.filename + ' */\n\n' + dat... | JavaScript | 0 | @@ -11,16 +11,64 @@
t';%0A%0Avar
+ autoprefixer = require('autoprefixer-core')%0A ,
cssAid
@@ -69,16 +69,20 @@
ssAid
+
= requir
@@ -91,18 +91,82 @@
'css-aid
-')
+/process')%0A , cssAidRules = %5Brequire('css-aid/rules/variables')%5D
%0A , get
@@ -171,16 +171,20 @@
etFiles
+
= requir
@@ -335,16... |
0d5303ace5730f31d5949f53b060fdc268719ba9 | Add popup config to layer class | src/scripts/map/wfs-layer.js | src/scripts/map/wfs-layer.js | import ol from 'openlayers';
import OverlayLayer from './overlay-layer';
/**
* Web Feature Service Layer
* @extends OverlayLayer
*/
class WFSLayer extends OverlayLayer {
/**
* @param {Object} config - Configuration object
* @param {String} [config.title='OverlayLayer'] - Layer title
* @param {Boolean} [... | JavaScript | 0.000001 | @@ -1367,16 +1367,47 @@
g.style;
+%0A this.popup = config.popup;
%0A%0A th
|
32e9027b96d91941eaca4629552ed6154bd4ad07 | Fix -- Remove generator import. | src/action_controller/index.js | src/action_controller/index.js | module.exports = {
Base: require('./base'),
generator: require('./generator')
}
| JavaScript | 0 | @@ -41,44 +41,7 @@
se')
-,%0A generator: require('./generator')
%0A%7D%0A
|
8b850eb3b43fd518204186219babeb1842e73ef3 | Fix fitlers issue | src/scripts/map/wms-layer.js | src/scripts/map/wms-layer.js | import Attribution from 'ol/attribution';
import Tile from 'ol/layer/tile';
import Image from 'ol/layer/image';
import TileWMS from 'ol/source/tilewms';
import ImageWMS from 'ol/source/imagewms';
import OverlayLayer from './overlay-layer';
/**
* Web Map Service Layer
* @extends OverlayLayer
*/
class WMSLayer exten... | JavaScript | 0 | @@ -2299,16 +2299,39 @@
.filters
+ && this.filters.length
) %7B%0A
|
66edd340c4aa976114de9b9204ee3de1cfd64c84 | remove current active state on update | src/zbase/webui/widgets/zbase-main-menu/main_menu.js | src/zbase/webui/widgets/zbase-main-menu/main_menu.js | var ZBaseMainMenu = (function() {
var render = function(path) {
var tpl = $.getTemplate(
"widgets/zbase-main-menu",
"zbase_main_menu_tpl");
var menu = document.getElementById("zbase_main_menu");
$.replaceContent(menu, tpl);
$.handleLinks(menu);
setActiveMenuItem(path);
var t... | JavaScript | 0.000002 | @@ -985,24 +985,162 @@
ain_menu%22);%0A
+ var current_active = $(%22a%5Bdata-active%5D%22, menu);%0A if (current_active) %7B%0A current_active.removeAttribute(%22data-active%22);%0A %7D%0A%0A
var item
|
3706d4293b19738838b547f00238cd9d075993f0 | Update adele.js | calc/adele.js | calc/adele.js | var calc = function () {
Number.radix = parseInt(location.hash.slice(1)) || 10
calc.refresh()
document.body === calc.display.parentNode || document.body.appendChild(calc.display)
document.body === calc.keypad .parentNode || document.body.appendChild(calc.keypad)
}
!function () {
var
set = function (a) {
e.v... | JavaScript | 0 | @@ -578,34 +578,28 @@
alue %7C%7C
-new Adele(
+Number.
parse
-Int
(e.data.
@@ -609,31 +609,16 @@
tContent
-, Number.radix)
)%0A%7D,%0Afoc
@@ -1808,26 +1808,20 @@
_ =
-new Adele(
+Number.
parse
-Int
(e.d
@@ -1839,23 +1839,8 @@
tent
-, Number.radix)
))%0A
|
b9fa4dc23413e36d5064e32faa6054786dc32399 | Fix direct init | assets/datagrid-spinners.js | assets/datagrid-spinners.js | var dataGridRegisterExtension;
if (typeof naja !== "undefined") {
var isNaja2 = function () { return naja.version >= 2 };
dataGridRegisterExtension = function (name, extension) {
var init = extension.init;
var success = extension.success;
var before = extension.before;
var complete = extension.complete;
... | JavaScript | 0.000027 | @@ -1102,25 +1102,20 @@
) %7B%0A%09%09%09%09
-extension
+this
.initial
|
8e4af4e199cad541daacfed3148a0d81b52fe834 | Use schema so client state updates automatically | src/actions/AccountSettings.js | src/actions/AccountSettings.js | import { SubmissionError } from 'redux-form';
import {
UPDATE_AVATAR_REQUEST, UPDATE_AVATAR_FAILURE, UPDATE_AVATAR_SUCCESS,
UPDATE_USER_REQUEST, UPDATE_USER_FAILURE, UPDATE_USER_SUCCESS
} from '../constants/ActionTypes';
import { CALL_API } from '../middleware/api';
const updateAvatarRequest = (formData) => ({
... | JavaScript | 0 | @@ -235,16 +235,25 @@
CALL_API
+, Schemas
%7D from
@@ -273,16 +273,16 @@
e/api';%0A
-
%0A%0Aconst
@@ -464,32 +464,58 @@
method: 'POST',%0A
+ schema: Schemas.USER,%0A
body: formDa
@@ -718,16 +718,16 @@
/info%60,%0A
-
meth
@@ -730,32 +730,58 @@
method: 'POST',%0A
+ schema: Schemas.USER,%0A
... |
627202df77b61e64676f487a8be3954bdee9948f | Fix ReferenceError | edwin/client/static/js/actions/TimelineActions.js | edwin/client/static/js/actions/TimelineActions.js | import Immutable from 'immutable';
import Dispatcher from '../dispatcher';
import TimelineConstants from '../constants/TimelineConstants';
import bzAPI from '../utils/bzAPI';
import githubAPI from '../utils/githubAPI.js';
import edwinAPI from '../utils/edwinAPI.js';
import BugStore from '../stores/BugStore.js';
import... | JavaScript | 0.000002 | @@ -3949,25 +3949,28 @@
')) %7B%0A
-q
+bugQ
uery.api_key
|
650ac4091df37b2b6cba326b2904454b4f0239fe | Update Conference test for async responder. | compassion.counterfeiter/t/create.js | compassion.counterfeiter/t/create.js | module.exports = function (assert, reduced) {
var Monotonic = require('monotonic').asString
try {
var Conference = require('../../compassion.conference/conference')
} catch (e) {
var Conference = require('../conference')
}
var cadence = require('cadence')
var reactor = {
responde... | JavaScript | 0 | @@ -316,16 +316,24 @@
ponder:
+cadence(
function
@@ -334,16 +334,23 @@
nction (
+async,
conferen
@@ -479,16 +479,17 @@
%7D
+)
,%0A
|
700ec37817148fdb6df64e1ddbd1529c90987d5e | fix player hp is recovered upon death and then saved to database | app/classes/Player.js | app/classes/Player.js | import Prefab from './entityPrefab'
import Weapon from './Weapon'
import armorProperties from '../properties/armorProperties.json'
import playerProperties from '../properties/playerProperties.json'
import { socket } from '../sockets'
import HealthBar from '../states/utils/HealthBar.js'
/* global StackQuest, Phaser *... | JavaScript | 0 | @@ -3666,30 +3666,76 @@
Timeout(
-this.recoverHp
+() =%3E %7B%0A this.recoverHp()%0A this.savePlayer()%0A %7D
, 100)%0A
@@ -3812,30 +3812,8 @@
0 %7D)
-%0A this.savePlayer()
%0A%0A
|
ab305541283671398e90af37d56e834f8d700967 | update TableHeader | src/_TableHeader/TableHeader.js | src/_TableHeader/TableHeader.js | /**
* @file TableHeader component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TableHeaderSortIcon from '../_TableHeaderSortIcon';
import PureRender from '../_vendors/PureRender';
@Pur... | JavaScript | 0 | @@ -129,44 +129,8 @@
t';%0A
-import PropTypes from 'prop-types';%0A
impo
@@ -2137,16 +2137,20 @@
%7D%0A%7D;%0A%0A
+if (
process.
@@ -2166,29 +2166,80 @@
ENV
-!
+=
== '
-production' && (
+development') %7B%0A%0A const PropTypes = require('prop-types');%0A%0A
Tabl
@@ -2261,24 +2261,28 @@
es = %7B%0A%0A ... |
18f193d829632681a81b48606279fb4f40dcabf9 | Fix typo. | server/lib/logger.js | server/lib/logger.js | //module meant for logging to stdout and stderr to the user of immediate information
var winston = require('winston');
var config = require('./config');
var cwl = require('./cwl');
let cloudWatchLogsEnabled = config.aws && config.aws.cloudWatchLogs;
if (cloudWatchLogsEnabled) {
cwl.setupCloudWatchLogs(
config.aws.... | JavaScript | 0.001604 | @@ -387,16 +387,17 @@
cloudWat
+c
hLogs.lo
|
e5d54001b5947008ebd6efa9a2cf16010c9a95f3 | Rename inlineStyles to componentStyles. | src/start/DevAuthScreen.js | src/start/DevAuthScreen.js | /* @flow */
import { connect } from 'react-redux';
import React, { PureComponent } from 'react';
import { ActivityIndicator, View, StyleSheet, FlatList } from 'react-native';
import type { Auth, Context, DevUser, Dispatch } from '../types';
import { ErrorMsg, Label, Screen, ZulipButton } from '../common';
import { de... | JavaScript | 0 | @@ -447,22 +447,25 @@
%0A%0Aconst
-inline
+component
Styles =
@@ -2211,38 +2211,41 @@
%7B%5Bstyles.field,
-inline
+component
Styles.heading2,
@@ -2237,38 +2237,41 @@
tyles.heading2,
-inline
+component
Styles.heading%5D%7D
@@ -2587,22 +2587,25 @@
.field,
-inline
+component
Styles.h
@@ -2613,22 +2613,25 @@
a... |
d64f305e97c14b1d9559be7acd9192ccb87cb78c | Remove unused props | app/components/Pin.js | app/components/Pin.js | import React, { Component, PropTypes } from 'react';
import { MODE_NAMES, MODES } from '../reducers/microcontrollerEnums';
import { intersection, propOr } from 'ramda';
import DigitalInput from './Pin/DigitalInput';
import AnalogInput from './Pin/AnalogInput';
import DigitalOutput from './Pin/DigitalOutput';
import Ana... | JavaScript | 0.000001 | @@ -645,47 +645,8 @@
ed,%0A
- listen: PropTypes.func.isRequired,%0A
@@ -801,22 +801,8 @@
ed,%0A
- listen,%0A
@@ -1838,46 +1838,8 @@
nput
- listen=%7B() =%3E listen(id, mode, name)%7D
val
@@ -2006,46 +2006,8 @@
nput
- listen=%7B() =%3E listen(id, mode, name)%7D
val
|
a8e2eb3d68dd38d4dd8a6f540caaac7a31763655 | Remove useless return | components/catalog/harvests/index.js | components/catalog/harvests/index.js | import React from 'react'
import PropTypes from 'prop-types'
import { translate } from 'react-i18next'
import Table from './table'
const Harvests = ({ catalog, harvests, t }) => {
return (
<section>
<div>
<Table catalog={catalog} harvests={harvests} />
</div>
<div />
<style jsx>... | JavaScript | 0.000219 | @@ -176,24 +176,11 @@
) =%3E
- %7B%0A return
(%0A
-
%3Cs
@@ -195,18 +195,14 @@
-
%3Cdiv%3E%0A
-
@@ -259,19 +259,15 @@
-
%3C/div%3E%0A
-
@@ -279,18 +279,16 @@
/%3E%0A%0A
-
-
%3Cstyle j
@@ -293,18 +293,16 @@
jsx%3E%7B%60%0A
-
se
@@ -317,18 +317,16 @@
... |
7b0eb086087ad24e164b6b76b8d409c522739e70 | fix warning positioning | src/game/meteor_warning.js | src/game/meteor_warning.js | game.module('game.meteor_warning')
.require('game.b2dvec')
.body(function() {
game.addAsset('warning.png');
game.createClass('MeteorWarning', {
init: function(x, y, size, velocity) {
this.sprite = new game.Sprite('warning.png', x, y, {width: size, height: size, anchor: {x: 0.5, y: 0.5}});
... | JavaScript | 0.000001 | @@ -943,27 +943,24 @@
%0A
- //
if (this.bl
@@ -1006,35 +1006,32 @@
l) %7B%0A
- //
this.blinkI
@@ -1057,27 +1057,24 @@
%0A
- //
this.sp
@@ -1121,19 +1121,16 @@
- //
%7D%0A
@@ -1255,19 +1255,16 @@
- //
if (pos
@@ -1270,200 +1270,21 @@
s.x
-%... |
644d081af58a19aabcff04fcdc98c22e2cf2afb6 | Update gatsby-browser.js (#3694) | examples/using-page-transitions/gatsby-browser.js | examples/using-page-transitions/gatsby-browser.js | /* eslint-disable react/prop-types */
/* globals window CustomEvent */
import React, { createElement } from "react"
import { Transition } from "react-transition-group"
import createHistory from "history/createBrowserHistory"
import getTransitionStyle from "./src/utils/getTransitionStyle"
const timeout = 250
const his... | JavaScript | 0 | @@ -430,12 +430,57 @@
t =
-new
+document.createEvent(%22CustomEvent%22);%0A event.init
Cust
@@ -511,16 +511,30 @@
entType,
+ false, false,
%7B detai
@@ -551,16 +551,17 @@
ame %7D %7D)
+;
%0A windo
@@ -2589,8 +2589,9 @@
der %7D)%0A%7D
+%0A
|
b26ad4bbee5b254d617945b22604f55effe9b238 | Fix gameover score bug | src/game.js | src/game.js | Lettris.Game = function (game) {
};
Lettris.Game.prototype = {
create: function (game) {
// Physics stuff
game.physics.startSystem(Phaser.Physics.P2JS);
game.physics.p2.setBoundsToWorld(true, true, false, true)
game.physics.p2.gravity.y = 300;
game.physics.p2.restitution = 0.05
game.world.setBounds(0, 0, g... | JavaScript | 0 | @@ -856,18 +856,23 @@
, this.g
-ui
+ameData
.score);
|
3661957bd2d7f416fdb5e22174d217d0a01ec93a | add fix hidden block for bulma.js | js/bulma.js | js/bulma.js | // The following code is based off a toggle menu by @Bradcomp
// source: https://gist.github.com/Bradcomp/a9ef2ef322a8e8017443b626208999c1
(function() {
var burger = document.querySelector('.nav-toggle');
var menu = document.querySelector('.nav-menu');
burger.addEventListener('click', function() {
... | JavaScript | 0 | @@ -711,40 +711,40 @@
g($(
-'.auto-list').length);%0A $
+this));%0A $(this).siblings
('.a
|
df9dec0bacd6687dbdaff3980e0698b240c1d8ae | rename noodle.js to long_noodle.js | web.js | web.js | // node.js server for long polling message passing
// start with:
// node web.js
//
// POST requests
// -------------
// the post data is stored for the specified request path
// a version number is incremented if there is no version request parameter
// the version number is stored if it is in the request parameter
//... | JavaScript | 0.999999 | @@ -1877,16 +1877,21 @@
2.js','/
+long_
noodle.j
|
0d48bd1aad5271d3b4ca301a9946b533d5cb58f9 | Add url of origin for Settings.BASE_URL | js/saiku/Settings.js | js/saiku/Settings.js | /*
* Copyright 2012 OSBI Ltd
*
* 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... | JavaScript | 0.000002 | @@ -754,10 +754,30 @@
RL:
-%22%22
+window.location.origin
,%0A
@@ -3151,32 +3151,8 @@
RL =
- Settings.BASE_URL%0A +
Set
|
f482d820f30c0eb45fcca5cb6f7831204c77daba | Fix dashboard analytics for 'Used dashboard Scripts API' | src/apps/Script/ScriptStore.js | src/apps/Script/ScriptStore.js | import Reflux from 'reflux';
import _ from 'lodash';
import { SnackbarNotificationMixin, StoreFormMixin, WaitForStoreMixin } from '../../mixins';
import Actions from './ScriptActions';
import SessionStore from '../Session/SessionStore';
import SessionActions from '../Session/SessionActions';
export default Reflux.cr... | JavaScript | 0 | @@ -843,17 +843,18 @@
.runtime
-N
+_n
ame%0A
|
24baa48baf3752f77448f1b1a25d601fc683ee36 | add oncing | reqres.js | reqres.js | // Copyright (c) 2015 Uber Technologies, Inc.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, ... | JavaScript | 0.000001 | @@ -3113,32 +3113,55 @@
me = sendFrame;%0A
+ self.sent = false;%0A
%7D%0A%0Ainherits(TCha
@@ -3307,46 +3307,8 @@
is;%0A
- self.sendFrame(arg1, arg2, arg3);%0A
@@ -3352,16 +3352,174 @@
lback);%0A
+ if (self.sent) %7B%0A throw new Error('request already sent');%0A %7D%0A self.sent = true;%... |
fee64d8bab8683db79dc0c41e32ed39cd70822f0 | Fix show proper fields at rules service selector | frontend/app/js/components/rules/selectservice.js | frontend/app/js/components/rules/selectservice.js | import React from 'react'
import {i18n} from 'app/utils/i18n'
const SelectService=React.createClass({
propTypes:{
onChange: React.PropTypes.func.isRequired,
services: React.PropTypes.array.isRequired,
service: React.PropTypes.shape({
uuid: React.PropTypes.string
})
},
find_service(uuid){
... | JavaScript | 0 | @@ -680,16 +680,261 @@
e)%0A %7D,%0A
+ get_value(field)%7B%0A if (field.type=='service')%7B%0A const uuid = field.value%0A const service = this.props.services.find( s =%3E s.uuid == uuid )%0A if (service)%0A return service.name%0A %7D%0A else%0A return field.value%0A %7D,%0A
r... |
a62bc375a4d6cfda0089ade84537a746ec0ddc33 | Fix bug logic แถมฟรี | app/helpers/global.js | app/helpers/global.js | import _ from 'lodash';
export const isEmpty = value => _.isUndefined(value) || _.isEmpty(value);
export const isNotEmpty = value => !isEmpty(value);
export const changeCoin = value => {
const baht10 = Math.floor(value / 10);
const baht5 = Math.floor((value - baht10 * 10) / 5);
const baht1 = Math.floor((value ... | JavaScript | 0.000003 | @@ -1971,16 +1971,73 @@
e) =%3E %7B%0A
+ const currentOrderNumber = Number(sumOrderAmount) + 1;%0A
switch
@@ -2083,38 +2083,42 @@
return
-sumOrderAmount
+currentOrderNumber
%25 2 === 1;%0A
@@ -2147,30 +2147,34 @@
return
-sumOrderAmount
+currentOrderNumber
%25 2 ===
|
0ae174f83620164b5cb966c0649a62bc158bd44b | Prepare for release | js/consts.js | js/consts.js | var consts = {};
consts.isBeta = true; | JavaScript | 0 | @@ -31,9 +31,10 @@
a =
-tru
+fals
e;
|
7865426bcb9d62272f439b6a6b9660b355b8d2c6 | fix test | tests/integration/components/g-grid-heading-test.js | tests/integration/components/g-grid-heading-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('g-grid-heading', 'Integration | Component | g grid heading', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Hand... | JavaScript | 0.000002 | @@ -378,17 +378,16 @@
.. %7D);%22%0A
-%0A
this.r
@@ -414,25 +414,24 @@
eading%7D%7D%60);%0A
-%0A
assert.equ
@@ -462,200 +462,9 @@
), '
-');%0A%0A // Template block usage:%22%0A this.render(hbs%60%0A %7B%7B#g-grid-heading%7D%7D%0A template block text%0A %7B%7B/g-grid-heading%7D%7D%0A %60);%0A%0A ... |
8b2b0a30584179ca406412e304fac929b39eeb07 | Remove ad script | src/html.js | src/html.js | import React from 'react'
import PropTypes from 'prop-types'
const HTML = props => (
<html {...props.htmlAttributes} lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale... | JavaScript | 0.000001 | @@ -477,24 +477,28 @@
/%3E */%7D%0A
+ %7B/*
%3Clink rel=%22
@@ -544,32 +544,36 @@
dication.com%22 /%3E
+ */%7D
%0A %7Bprops.he
@@ -827,16 +827,20 @@
%7D%0A%0A
+ %7B/*
%3Cscript
@@ -936,24 +936,28 @@
js%22%0A /%3E
+ */%7D
%0A %3C/body%3E
|
4afc6eec2eff44edb29e3aefdb17934dd33e19fb | Update Actor object structure. | base/objects/Objects.js | base/objects/Objects.js | /*
===============================================================================
Class compilation defines in-game 3D objects.
===============================================================================
*/
function Objects() {
if ( !(this instanceof Objects) ) return new Objects();
}
/*
===============... | JavaScript | 0 | @@ -780,32 +780,51 @@
g to the scene.%0A
+ // @deprecated%0A
this.create
@@ -844,24 +844,24 @@
objects ) %7B%0A
-
this
@@ -1177,24 +1177,43 @@
from scene.%0A
+ // @deprecated%0A
this.cle
@@ -1295,24 +1295,216 @@
sh;%0A %7D;%0A%0A
+ // Enables object for renderer. Marks active.%0A ... |
d33c5e50ca258278d0f9cba08dc6ae813efc5e82 | Fix throughput calculation. | web/js/voltdb-dashboard.js | web/js/voltdb-dashboard.js | /*
This file is part of VoltDB.
Copyright (C) 2008-2013 VoltDB Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version... | JavaScript | 0.000001 | @@ -2994,19 +2994,19 @@
ar prevT
-ime
+sMs
= null;
@@ -3184,49 +3184,72 @@
-if (prevTime != null && table0.data%5B0%5D%5B0%5D
+var cTsMs = table0.data%5B0%5D%5B0%5D;%0A if (prevTsMs != null && cTsMs
==
@@ -3253,19 +3253,19 @@
== prevT
-ime
+sMs
) %7B%0A
@@ -3325,36 +3325,63 @@
-prevTime = tab... |
ee6d6402a5fe0efcc6361ab3e2787e479d5268dd | Update cleanup function | spec/core/mailboxes/utils.js | spec/core/mailboxes/utils.js | var config = require('../../../config.js');
var db = config.db;
var core = require('../../../core.js');
var _ = require('lodash');
var Promise = require('bluebird');
var utils = {};
var callId = "#1";
var args = {
accountId: "test@test.com",
ifInState: "",
create: {},
update: {},
destro... | JavaScript | 0.000001 | @@ -4,16 +4,17 @@
config
+
= requir
@@ -49,16 +49,17 @@
db
+
= config
@@ -74,16 +74,17 @@
core
+
= requir
@@ -110,17 +110,63 @@
');%0Avar
-_
+models = require('../../../models.js');%0Avar _
=
@@ -541,67 +541,8 @@
%7D;%0A%0A
-// List of ids created, use for cleanup%0Avar created = %5B%5... |
d3cad8c978c9c7dbdce4c41de17f7330feb7d951 | fix axis | src/compile/axis.js | src/compile/axis.js | 'use strict';
require('../globals');
var util = require('../util'),
setter = util.setter,
getter = util.getter,
time = require('./time');
var axis = module.exports = {};
axis.names = function(props) {
return util.keys(util.keys(props).reduce(function(a, x) {
var s = props[x].scale;
if (s === X || s ... | JavaScript | 0.000003 | @@ -4665,17 +4665,18 @@
ime:
-%22
+%5C'
%25Y-%25m-%25d
%22%7D%7D'
@@ -4671,17 +4671,18 @@
%25Y-%25m-%25d
-%22
+%5C'
%7D%7D');%0A
@@ -4783,11 +4783,13 @@
ber:
-%22d%22
+%5C'd%5C'
%7D%7D')
|
e21b5be6f6d34b8f1bc75bfab73fec67837b3bcf | remove unnecessary redirect in server | web/middleware/redirect.js | web/middleware/redirect.js | const config = require('../../config');
const { formatInAppUrl } = require('../../ui/util/url');
async function redirectMiddleware(ctx, next) {
const requestHost = ctx.host;
const path = ctx.path;
const url = ctx.url;
// Getting err: too many redirects on some urls because of this
// Need a better solution
... | JavaScript | 0.000001 | @@ -218,16 +218,17 @@
tx.url;%0A
+%0A
// Get
@@ -454,114 +454,8 @@
%7D%0A%0A
- if (path.endsWith('/') && path.length %3E 1) %7B%0A ctx.redirect(url.replace(/%5C/$/, ''));%0A return;%0A %7D%0A%0A
if
|
2e10efe9480ee10c47add252ed1004fa9397175f | Add zoom-js plugin to initizalize | components/Deck/Presentation/Presentation.js | components/Deck/Presentation/Presentation.js | import React from 'react';
import ReactDOM from 'react-dom';
import {NavLink} from 'fluxible-router';
import {connectToStores} from 'fluxible-addons-react';
import PresentationSlide from './PresentationSlide';
import DeckTreeStore from '../../../stores/DeckTreeStore';
import PresentationStore from '../../../stores/Pres... | JavaScript | 0 | @@ -2206,16 +2206,111 @@
: true %7D
+,%0A %7B src: '/custom_modules/reveal.js/plugin/zoom-js/zoom.js', async: true %7D,
%0A
|
f29407616d4b8f37bba84b883bcedb4d7584d403 | Update css | src/components/Articles/List/List.js | src/components/Articles/List/List.js | import React from "react";
import PropTypes from "prop-types";
import { Link } from "gatsby";
import Article from "./Article";
const ArticlesList = ({ articles, withLink = true }) => {
return (
<ul className="flex flex-col h-full justify-between py-12 px-1 lg:overflow-y-auto article-list">
{articles.map(ar... | JavaScript | 0.000001 | @@ -238,23 +238,22 @@
justify-
-between
+center
py-12 p
|
2a6df2c3a6eda719fceb1f98d2631321172f5ed6 | Fix enum | ex/04/src/schema/index.js | ex/04/src/schema/index.js | const { makeExecutableSchema } = require('graphql-tools')
const { getItem, getUser, getTopStories } = require('../hnclient')
const typeDefs = [`
type User {
about: String
created: Int
delay: Int,
id: String!
karma: Int!
submitted: [Item]
}
enum ItemType {
story
}
type Item {
... | JavaScript | 0.000009 | @@ -275,27 +275,69 @@
um I
-temType %7B%0A story
+TEM_TYPE %7B%0A JOB%0A STORY%0A COMMENT%0A POLL%0A POLLOPT
%0A %7D
@@ -460,15 +460,16 @@
e: I
-temType
+TEM_TYPE
%0A
@@ -994,32 +994,102 @@
ds.map(getItem)%0A
+ %7D,%0A type: function(%7B type %7D) %7B%0A return type.toUpperCase()%0... |
10c9bd7263d77b7d36ec5e03dd1fd6c12f694f02 | update tag chart on hover node | web/public/js/loadGraph.js | web/public/js/loadGraph.js | $(document).ready(function() {
var s = new sigma('graph-container');
var tagTemplateString = "<h3> {{noteTitle}} </h3> <ul> {{#each tags}} <li> {{title}}, {{weight}} </li> {{/each}} </ul>"
var tagTemplate = Handlebars.compile(tagTemplateString);
s.settings({
defaultLabelColor: '#000',
defaultLabelSize... | JavaScript | 0 | @@ -660,16 +660,25 @@
lickNode
+ overNode
', funct
|
3aeb775cf039ecf82e5a0cc2f9dccc24f47d78de | Set default language to English | src/i18n.js | src/i18n.js | // Localisation
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import locales from './locales'
const i18n = new VueI18n({
locale: 'fr',
fallbackLocale: 'en',
messages: locales
})
export default i18n
| JavaScript | 0.999578 | @@ -150,18 +150,18 @@
ocale: '
-fr
+en
',%0A fal
|
f97fa35269c4efc7bbd2621dca63f9e70d4da1d6 | improve tests for string.prototype.@@iterator (#1667) | polyfills/String/prototype/@@iterator/tests.js | polyfills/String/prototype/@@iterator/tests.js | /* eslint-env mocha */
/* global proclaim */
it('returns a next-able object', function () {
var str = 'ab';
var iterator = str[Symbol.iterator]();
proclaim.isInstanceOf(iterator.next, Function);
proclaim.deepEqual(iterator.next(), {
value: 'a',
done: false
});
});
it('finally returns a done object', functio... | JavaScript | 0 | @@ -25,16 +25,17 @@
* global
+s
proclai
@@ -35,19 +35,474 @@
proclaim
- */
+, Symbol */%0A%0Ait('is a function', function () %7B%0A%09proclaim.isFunction(String.prototype%5BSymbol.iterator%5D);%0A%7D);%0A%0Ait('has correct arity', function () %7B%0A%09proclaim.arity(String.prototype%5BSymbol.iterator%5D, 0);%0A%7D)... |
e4d3704f02dd5abf0d92c2fe343e839755d76e5b | Use includes in place of indexOf | src/config/index.js | src/config/index.js | import path from 'path';
const config = new Map();
/* istanbul ignore next */
// Looks like you can't ignore a file but you can ignore a function, we don't want coverage here.
(function defineConfig() {
const NODE_ENV = process.env.NODE_ENV;
// Default to production unless overridden.
config.set('env', NODE_ENV... | JavaScript | 0.000001 | @@ -2491,13 +2491,14 @@
s.in
-dexOf
+cludes
(app
@@ -2506,13 +2506,8 @@
ame)
- %3E -1
) %7B%0A
|
2f21bfccf6537c7a6960e377acb01d27ca3753f6 | update test of data processor to reflect new expected values of putting the line in the middle | __tests__/DataProcessor.js | __tests__/DataProcessor.js | import { expect } from 'chai';
import DataProcessor from '../src/DataProcessor';
describe('DataProcessor', () => {
describe('dataToPoints', () => {
it('should return an array', () => {
expect(DataProcessor.dataToPoints([])).to.be.an('array')
expect(DataProcessor.dataToPoints([], n... | JavaScript | 0 | @@ -1015,24 +1015,26 @@
%7Bx: 0, y: 0
+.5
%7D%0A
@@ -1193,32 +1193,34 @@
%7Bx: 0, y: 0
+.5
%7D,%0A
@@ -1225,32 +1225,34 @@
%7Bx: 1, y: 0
+.5
%7D%0A %5D)
@@ -2424,25 +2424,27 @@
%7Bx: 0, y:
-1
+0.5
%7D%0A
@@ -2536,33 +2536,35 @@
%7Bx: 0, y:
-1
+0.... |
862c6d914ba24759d1251b5ba6811c8c61d24c89 | Update 8x8_led_matrix.js | example/8x8_led_matrix.js | example/8x8_led_matrix.js | /**
* Linkit 7688 範例
* 使用 GPIO 控制 8x8 LED Matrix (共陽)
*
* @author Abola Lee
* @version 1.0
* @since 2016-01-10
*
* @link http://www.gibar.co/2016/01/linkit-7688-duo-74hc595-led.html
*/
var mraa = require('mraa');
// 腳位命名參考
// _______
// Q1[1| U |16]Vcc
// Q2[2| |15]Q0
// Q3[3| |14]... | JavaScript | 0.000001 | @@ -462,16 +462,18 @@
%E6%8E%A5%E8%85%B3%0Avar
+my
col = %5B%0A
@@ -494,17 +494,16 @@
.Gpio(2)
-,
%0A ,
@@ -686,16 +686,18 @@
%5D,%0A
+my
row = %5B%0A
@@ -969,16 +969,18 @@
aa.Gpio)
+my
col%5Bidx%5D
@@ -1034,16 +1034,18 @@
idx++)
+my
row%5Bidx%5D
@@ -1109,16 +1109,16 @@
tion()%7B%0A
-
if( of... |
23e2b45bcdc12e6f0179ed3568414f73c18fc9eb | fix missing semicolon | xhr.js | xhr.js | var xhr = {
request: function(type, url, opts) {
'use strict';
var json = 'application/json';
var req = new XMLHttpRequest(),
payload = ('payload' in opts) ? opts.payload : null,
callback = (opts.callback || function() {}).bind(req),
headers = opts.headers || (opts.raw ? {} : {
... | JavaScript | 0.999904 | @@ -522,16 +522,17 @@
ck(true)
+;
%7D;%0A
|
b3e8f6203d2752dff2abdee0a1b13f08506f2dd6 | fix for point interactions from layers not showing interaction data | components/map/components/popup/selectors.js | components/map/components/popup/selectors.js | import { createSelector, createStructuredSelector } from 'reselect';
import {
getActiveDatasetsFromState,
getInteractions,
getInteractionSelected,
} from 'components/map/selectors';
const getLatitude = (state) => state?.map?.data?.interactions?.latlng?.lat;
const getLongitude = (state) => state?.map?.data?.inte... | JavaScript | 0 | @@ -1220,16 +1220,26 @@
'Point'
+ && !layer
;%0A%0A r
|
48cb611f7714330cc5a327ef09164a6435eea185 | fix target of event label | js/datasf.js | js/datasf.js | ---
---
$(function() {
$('[data-toggle="tooltip"]').tooltip();
$('button.ext-sf-opendata').on('click', function(ev) {
ga('send', 'event', 'Catalog', 'Search', $('#search-catalog .search-input').val(), 1);
});
$('a.ext-sf-opendata').on('click', function(ev) {
ga('send', 'event', 'Catalog', 'Click Li... | JavaScript | 0.999862 | @@ -617,17 +617,8 @@
et).
-parent().
data
|
205cfdafc933e0e93b70ce8b84692b1324edb167 | append copy text area at correct element | src/context_menu.js | src/context_menu.js | import {UICorePlugin, Events, Styler, template} from 'Clappr'
import pluginStyle from './public/context_menu.scss'
import templateHtml from './public/context_menu.html'
export default class ContextMenuPlugin extends UICorePlugin {
get name() { return 'context_menu' }
get attributes() { return { 'class': 'context-... | JavaScript | 0.000002 | @@ -2710,16 +2710,19 @@
Textarea
+%5B0%5D
)%0A%0A l
@@ -2763,16 +2763,30 @@
lector('
+.context-menu
.copytex
|
1a6fc339f6f610f05ed23cf9da34280430e52ddd | fix typo | src/tasks/games-winners.js | src/tasks/games-winners.js | // Database setup
require('../../config/mongo-db')();
// Models
const Game = require('../models/game');
const GameResponse = require('../models/game-response');
// Game Rules
const gameRules = require('../slackbot/game-rules');
Game.find({}).lean().exec((err, results) => {
results.forEach((game) => {
GameRespo... | JavaScript | 0.999991 | @@ -541,17 +541,16 @@
eRules.d
-h
rawByAll
|
8f4a1b63e252b53ffbaca036eca4d3de4c66b282 | only parse timestamp once | generate.js | generate.js | const level = require('level');
const path = require('path');
const h = require('virtual-dom/h');
const createElement = require('virtual-dom/create-element');
const inline = require('html-inline');
const fromString = require('from2-string');
const process = require('process');
const moment = require('moment');
const wo... | JavaScript | 0.999999 | @@ -651,16 +651,77 @@
next) %7B%0A
+ const time = moment.utc(data.timestamp, moment.ISO_8601);%0A%0A
if (!u
@@ -835,51 +835,12 @@
st:
-moment.utc(data.timestamp, moment.ISO_8601)
+time
,%0A
@@ -1175,51 +1175,12 @@
if (
-moment.utc(data.timestamp, moment.ISO_8601)
+time
.isA
@@ -1246,51 +1246,12 @@
t =
-mo... |
786208ea15626ebc7769375e4b98bbb6fcd3428f | stop testing on latest Edge. (#31125) | js/tests/browsers.js | js/tests/browsers.js | /* eslint-env node */
/* eslint-disable camelcase */
const browsers = {
safariMac: {
base: 'BrowserStack',
os: 'OS X',
os_version: 'High Sierra',
browser: 'Safari',
browser_version: 'latest'
},
chromeMac: {
base: 'BrowserStack',
os: 'OS X',
os_version: 'High Sierra',
browser: ... | JavaScript | 0 | @@ -644,152 +644,8 @@
%7D,%0A
- edgeWin10Latest: %7B%0A base: 'BrowserStack',%0A os: 'Windows',%0A os_version: '10',%0A browser: 'Edge',%0A browser_version: 'latest'%0A %7D,%0A
ch
|
97e8ac0bd8b88a585e77148561d20ffcaae2473c | Fix #15 Treat EISDIR like EPERM | rimraf.js | rimraf.js | module.exports = rimraf
rimraf.sync = rimrafSync
var path = require("path")
, fs
try {
// optional dependency
fs = require("graceful-fs")
} catch (er) {
fs = require("fs")
}
// for EMFILE handling
var timeout = 0
exports.EMFILE_MAX = 1000
exports.BUSYTRIES_MAX = 3
function rimraf (p, cb) {
if (!cb) throw ... | JavaScript | 0 | @@ -1125,16 +1125,26 @@
on EPERM
+ or EISDIR
%0A// 2. A
@@ -1701,32 +1701,33 @@
)%0A if (er &&
+(
er.code === %22EPE
@@ -1721,32 +1721,57 @@
code === %22EPERM%22
+ %7C%7C er.code === %22EISDIR%22)
)%0A return r
@@ -2515,16 +2515,40 @@
%22EPERM%22
+ && er.code !== %22EISDIR%22
)%0A
|
ffa1a16ca5aeb94e7384e0d65faffd153b14523a | Update heights on page fully loaded | jquery.equal-height.js | jquery.equal-height.js | /*!
* jQuery Equal Height v0.0.1 (https://github.com/Nikker/jquery.equal-height)
* Copyright 2015-2016 Nikki DelRosso
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if (typeof jQuery === 'undefined') {
throw new Error('The jQuery equal height extension requires jQuery!');
}
jQuer... | JavaScript | 0 | @@ -25,17 +25,17 @@
ht v0.0.
-1
+2
(https:
@@ -1227,11 +1227,48 @@
ights);%0A
+%09$(window).bind('load', setHeights);%0A
%7D;%0A
|
41d7823227ccad99c666b8f77dd0c8a23ba3e68a | Drop table if exists | test/acceptance/batch/leader.job.query.order.test.js | test/acceptance/batch/leader.job.query.order.test.js | require('../../helper');
var assert = require('../../support/assert');
var TestClient = require('../../support/test-client');
var BatchTestClient = require('../../support/batch-test-client');
var JobStatus = require('../../../batch/job_status');
describe('multiple batch clients job query order', function() {
bef... | JavaScript | 0.000002 | @@ -565,17 +565,68 @@
tResult(
-'
+%0A 'drop table if exists ordered_inserts;
create t
@@ -664,21 +664,42 @@
meric)',
- done
+%0A done%0A
);%0A %7D
@@ -898,211 +898,12 @@
ain(
-function(err) %7B%0A if (err) %7B%0A return done(err);%0A ... |
07ec452e48a972eb3dd0e5d74436d477552266e2 | stop interest form confirmation message from hiding | src/components/InterestSignupForm.js | src/components/InterestSignupForm.js | import React, { Component } from 'react';
import apiFetch from '../actions/index';
export class InterestSignupForm extends Component {
constructor (props) {
super(props);
this.state = {
message: null,
success: null,
email: ""
};
}
handleSubmit = (... | JavaScript | 0 | @@ -2001,16 +2001,34 @@
%3Cp
+ className=%22white%22
%3E%7Bthis.s
|
cab13ebdc160a5389e7457c5365e45872544f50b | add jQuery CDN host | js/global.js | js/global.js | // JavaScript Document
// Avoid `console` errors in browsers that lack a console.
if (!(window.console && console.log)) {
(function() {
var noop = function() {};
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTi... | JavaScript | 0 | @@ -1514,49 +1514,54 @@
l :
-Brandung.folderPath + 'libs/vendor/jquery
+'//ajax.googleapis.com/ajax/libs/jquery/1.11.0
/jqu
|
fdcd2d19f38df6dd12df939447d56820ac750edb | Remove console statements. | website/mcapp.projects/src/app/project/processes/process/services/process-edit.service.js | website/mcapp.projects/src/app/project/processes/process/services/process-edit.service.js | angular.module('materialscommons').factory("processEdit", processEdit);
function processEdit() {
/**
* fillSetUp: will read all the setup values from process
* and place inside template.
*
*/
function setUp(template, process) {
process.setup[0].properties.forEach(function(property) ... | JavaScript | 0.000001 | @@ -4148,271 +4148,66 @@
-console.log(%22process-edit.service - fillProcess - just before setupMeasurements%22,process);%0A setupMeasurements(process, template.measurements, template);%0A console.log(%22process-edit.service - fillProcess - just after setupMeasurements%22,process
+setupMeasur... |
da6b7e6983c43d784310d683528c27c8146a128d | clear output before running | CoolToJS/scripts/demo.js | CoolToJS/scripts/demo.js | var CoolToJSDemo;
(function (CoolToJSDemo) {
'use strict';
// faking the transpilation process for now
var coolProgramExample = '\
class Main inherits IO {\n\
main() : Object {\n\
out_string("Hello, world.\\n")\n\
};\n\
};\
';
var coolProgramExampleForDebugging = '\
something here el... | JavaScript | 0.000008 | @@ -1669,24 +1669,86 @@
anspiled) %7B%0A
+ document.getElementById('output').innerHTML = '';%0A
|
b6c9c36c016d4c9f51f4125830fa4e0c53f0395b | Add a noop pipe to ensure end is called | src/tasks/nuget-restore.js | src/tasks/nuget-restore.js | import gulp from 'gulp';
import nugetRestore from 'gulp-nuget-restore';
export default {
/**
* Task name
* @type {String}
*/
name: 'sitecore:nuget-restore',
/**
* Task description
* @type {String}
*/
description: 'Restore all nuget packages for solution.',
/**
* Task default configurat... | JavaScript | 0 | @@ -18,16 +18,47 @@
'gulp';%0A
+import es from 'event-stream';%0A
import n
@@ -819,16 +819,52 @@
tore())%0A
+ .pipe(es.through(() =%3E %7B%7D))%0A
.o
|
5b530b9545c4eb9428def5e85b0308edf3a145f8 | move setting of headers to same place | lib/Agent.js | lib/Agent.js | "use strict";
var Promise = require('bluebird')
, winston = require('winston')
, _ = require('lodash')
, os = require('os')
, uuid = require('node-uuid')
, config = require('config-url')
, rp = require('request-promise')
, reques... | JavaScript | 0 | @@ -2138,362 +2138,8 @@
%7D;%0A%0A
- res.setHeader('RunOn-Agent', %60$%7Bos.hostname()%7D ($%7Bip.address()%7D)%60);%0A%0A // todo %5Bakamel%5D consider moving these headers to worker?%0A let pragma = _.get(r.doc, 'manual.pragma');%0A if (pragma) %7B%... |
b9d4bc092e00e00672b6cf235f4808ab7f1b2d6f | Drop next task output from queue | app/libs/queue/add.js | app/libs/queue/add.js | 'use strict';
// Load requirements
const assign = require('deep-assign');
// Load libraries
const logger = require('../log');
// Variables
let queueCache = [];
// Send back the function
module.exports = function(task) {
return new Promise((resolve, reject) => {
// Variables
let added = [],
promis... | JavaScript | 0.000001 | @@ -1477,24 +1477,85 @@
est%0A
+// Not needed, just keeping it for reference later%0A /*
if ( this.it
@@ -1688,24 +1688,26 @@
);%0A %7D
+*/
%0A%0A //
|
e794b313b945f18b78ffd9454420c886bb7f87e0 | change feed limit to 5 (#25) | src/infra/service/graph.js | src/infra/service/graph.js | // @flow
const get = (url: string): Promise<any> => new Promise((resolve, reject) => {
window.FB.api(url, fbRes => {
if (fbRes.error) return reject(new Error(`${fbRes.error.code} - ${fbRes.error.message}` || fbRes.error));
return resolve(fbRes);
});
});
class GraphList {
url: string;
data: {}[] = [];... | JavaScript | 0 | @@ -3394,18 +3394,17 @@
)&limit=
-10
+5
%60;%0A con
|
1467608bef04b31c51b07b6225d47dca099e444e | Change timing on disqus loader animation | _assets/javascripts/app.js | _assets/javascripts/app.js | //
// Sprockets Includes
//
//= require vendor/barba.min
//= require vendor/web-animations.min
//
//
var threadContainer = document.getElementById('disqus_thread');
var crossOnTrigger = document.querySelector('.comments__trigger__plus');
// http://dustindiaz.com/smallest-domready-ever
function ready(cb) {
/in/.test(... | JavaScript | 0 | @@ -2518,44 +2518,8 @@
) %7B%0A
- console.log(threadContainer);%0A
@@ -3748,9 +3748,9 @@
%7D,
-2
+3
000)
|
60cc903d531e6463335baf0cd1fb857491f67094 | add Node and Base add size() and this.first this.N | src/structure/linked/Base.js | src/structure/linked/Base.js | class Base {
constructor() {
this.items = []
}
add() {
}
remove() {
}
isEmpty() {
return this.items.length === 0
}
size() {
return this.items.length
}
interator() {
return this.items.entries()
}
}
module.exports = Base | JavaScript | 0 | @@ -1,17 +1,17 @@
class
-Bas
+Nod
e %7B%0A co
@@ -41,109 +41,134 @@
item
-s
=
-%5B%5D%0A %7D%0A add() %7B%0A %7D%0A remove() %7B%0A %7D%0A isEmpty() %7B%0A return this.items.length === 0%0A %7D%0A size
+null;%0A this.next = null;%0A %7D%0A%7D%0A%0Aclass Base %7B%0A constructor() %7B%0A this.f... |
17cbf752e71c8207a441d6ffb9325f029104ea31 | Update setLBound.js | mainRPi/sockets/serverSocket/setLBound.js | mainRPi/sockets/serverSocket/setLBound.js | JavaScript | 0 | @@ -1 +1,894 @@
+var mongoose=require('mongoose');%0Avar Monitor=require('../models/monitor.js');%0Avar envVariables=require('../../envVariables.js');%0Avar errors=require('../../errors.js');%0A%0Amodule.exports=function(socket)%7B%0A socket.on('editLBound',function(data,fn)%7B%0A if(Monitor.find(%7B_id:data.monito... | |
a7d75b42f6fbcaee6ae226267d3c2c8d0779fbb8 | Increase telnet timeout for seowon frequencies command. | config/custom_commands/seowon_frequencies.js | config/custom_commands/seowon_frequencies.js | // Change frequency plans for Seowon devices.
// Args format: 3532500 5000,3537500 5000,3542500 5000,3547500 5000,3552500 5000,3557500 5000,3505000 10000,3515000 10000,3525000 10000,3535000 10000,3545000 10000,3555000 10000
var net = require('net');
var PORT = 23;
var USERNAME = 'admin';
var PASSWORD = 'admin';
var FR... | JavaScript | 0 | @@ -1017,25 +1017,25 @@
ient);%0A %7D,
-2
+4
000);%0A%7D%0A%0Avar
|
7ed6e321bef98af8c76a89f0ff401cfe286f3766 | Fix LinkTo with query params | client/src/components/LinkTo.js | client/src/components/LinkTo.js | import React, { Component } from 'react'
import {Link} from 'react-router-dom'
import PropTypes from 'prop-types'
import decodeQuery from 'querystring/decode'
import utils from 'utils'
import * as Models from 'models'
const MODEL_NAMES = Object.keys(Models).map(key => {
let camel = utils.camelCase(key)
if (camel ==... | JavaScript | 0 | @@ -1584,27 +1584,16 @@
0%5D,
-query: decodeQuery(
+search:
comp
@@ -1601,17 +1601,16 @@
nents%5B1%5D
-)
%7D%0A%09%09%09%7D%0A%09
|
c0850bcdc476584739481b918570a6908e11b438 | factored out colors | js/view/Paginator.js | js/view/Paginator.js | // Copyright 2002-2014, University of Colorado Boulder
/**
* View for a paginator in 'Fraction Matcher' sim.
*
* @author Andrey Zelenkov (Mlearner)
*/
define( function( require ) {
"use strict";
// modules
var inherit = require( 'PHET_CORE/inherit' );
var Node = require( 'SCENERY/nodes/Node' );
var Str... | JavaScript | 0.999656 | @@ -909,22 +909,17 @@
var
-shapeC
+c
olors =
%5Bmod
@@ -914,17 +914,16 @@
olors =
-%5B
model.CO
@@ -940,239 +940,158 @@
LORS
-.LIGHT_RED, model.CONSTANTS.COLORS.LIGHT_GREEN, model.CONSTANTS.COLORS.LIGHT_BLUE, model.CONSTANTS.COLORS.ORANGE, model.CONSTANTS.COLORS.PINK, model.CONSTANTS.COLORS.YELLOW, model.CONST... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.