commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
cd3f1fc991ee7e34bfdae699b2b795338be3dde1
puppet/modules/elasticsearch/templates/CirrusSearch.php.erb
puppet/modules/elasticsearch/templates/CirrusSearch.php.erb
include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php"; $wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' ); $wgCirrusSearchDevelOptions['allow_nuke'] = true; <% if @enable_eventgate -%> $wgCirrusSearchRequestEventSampling = 1.0; // Log api-requests via eventgate-analytics...
include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php"; $wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' ); $wgCirrusSearchDevelOptions['allow_nuke'] = true; <% if @enable_eventgate -%> $wgCirrusSearchRequestEventSampling = 1.0; // Log api-requests via eventgate-analytics...
Enable ORES articletopic handling in cirrussearch role
Enable ORES articletopic handling in cirrussearch role Bug: T240550 Change-Id: Id1f7b76de89292d19f3c7bd9cfbea13ec8a280cc
HTML+ERB
mit
wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant,wikimedia/mediawiki-vagrant
html+erb
## Code Before: include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php"; $wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' ); $wgCirrusSearchDevelOptions['allow_nuke'] = true; <% if @enable_eventgate -%> $wgCirrusSearchRequestEventSampling = 1.0; // Log api-requests via eve...
include_once "$IP/extensions/CirrusSearch/tests/jenkins/FullyFeaturedConfig.php"; $wgCirrusSearchExtraIndexes[ NS_FILE ] = array( 'commonswiki_file' ); $wgCirrusSearchDevelOptions['allow_nuke'] = true; <% if @enable_eventgate -%> $wgCirrusSearchRequestEventSampling = 1.0; // Log api-requests via...
6
0.428571
6
0
d40eab44fbe0be77545758e7251be8b71fd38317
packages/coreutils/src/time.ts
packages/coreutils/src/time.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import moment from 'moment'; /** * The namespace for date functions. */ export namespace Time { /** * Convert a timestring to a human readable string (e.g. 'two minutes ago'). * * @param value - The dat...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import moment from 'moment'; /** * The namespace for date functions. */ export namespace Time { /** * Convert a timestring to a human readable string (e.g. 'two minutes ago'). * * @param value - The dat...
Fix duplicate parameter in function with default parameter values
Fix duplicate parameter in function with default parameter values
TypeScript
bsd-3-clause
jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab
typescript
## Code Before: // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import moment from 'moment'; /** * The namespace for date functions. */ export namespace Time { /** * Convert a timestring to a human readable string (e.g. 'two minutes ago'). * * @param...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import moment from 'moment'; /** * The namespace for date functions. */ export namespace Time { /** * Convert a timestring to a human readable string (e.g. 'two minutes ago'). * ...
4
0.105263
2
2
661f4a968c65c877bd3930159317dbadd455f287
core/src/main/scala/org/http4s/ContextResponse.scala
core/src/main/scala/org/http4s/ContextResponse.scala
/* * Copyright 2013-2020 http4s.org * * SPDX-License-Identifier: Apache-2.0 */ package org.http4s import cats._ final case class ContextResponse[F[_], A](context: A, response: Response[F]) { def mapContext[B](f: A => B): ContextResponse[F, B] = ContextResponse(f(context), response) def mapK[G[_]](fk: F ...
/* * Copyright 2013-2020 http4s.org * * SPDX-License-Identifier: Apache-2.0 */ package org.http4s import cats._ final case class ContextResponse[F[_], A](context: A, response: Response[F]) { def mapContext[B](f: A => B): ContextResponse[F, B] = ContextResponse(f(context), response) def mapK[G[_]](fk: F ...
Add Comment About Why Companion Object Is Empty
Add Comment About Why Companion Object Is Empty
Scala
apache-2.0
rossabaker/http4s,http4s/http4s,rossabaker/http4s
scala
## Code Before: /* * Copyright 2013-2020 http4s.org * * SPDX-License-Identifier: Apache-2.0 */ package org.http4s import cats._ final case class ContextResponse[F[_], A](context: A, response: Response[F]) { def mapContext[B](f: A => B): ContextResponse[F, B] = ContextResponse(f(context), response) def m...
/* * Copyright 2013-2020 http4s.org * * SPDX-License-Identifier: Apache-2.0 */ package org.http4s import cats._ final case class ContextResponse[F[_], A](context: A, response: Response[F]) { def mapContext[B](f: A => B): ContextResponse[F, B] = ContextResponse(f(context), response...
4
0.210526
3
1
06bd941d102759823c7a86a34e8af81a09be3b96
raml/openwebslides.raml
raml/openwebslides.raml
title: OpenWebslides API version: 1 baseUri: http://localhost:5000/api/ mediaType: application/vnd.api+json /users: displayName: Users description: User API get: description: List of all users post: description: Create a new user (sign up) /{id}: get: description: Get user patch: ...
title: OpenWebslides version: 1 baseUri: http://localhost:5000/api/ mediaType: application/vnd.api+json /users: displayName: Users description: User API get: description: List of all users post: description: Create a new user (sign up) /{id}: get: description: Get user patch: desc...
Add draft auth API description
Add draft auth API description
RAML
mit
OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides,OpenWebslides/OpenWebslides
raml
## Code Before: title: OpenWebslides API version: 1 baseUri: http://localhost:5000/api/ mediaType: application/vnd.api+json /users: displayName: Users description: User API get: description: List of all users post: description: Create a new user (sign up) /{id}: get: description: Get user ...
- title: OpenWebslides API ? ---- + title: OpenWebslides version: 1 baseUri: http://localhost:5000/api/ mediaType: application/vnd.api+json /users: displayName: Users description: User API get: description: List of all users post: description: Create a new use...
46
1.243243
45
1
640c5633198086b9c0332d3d220dc82b49e5eba7
run.sh
run.sh
cd `dirname $0` path=`curl -s http://www.bing.com | grep -m1 -oP 'url:\s*("[^"]+")' | cut -d: -f2 | jq '.' | tr -d '"'` url=http://www.bing.com$path file=`echo $url | rev | cut -d/ -f1 | rev` out=wallpapers/$file if [ -f "$out" ]; then echo "Wallpaper already exists, exiting." exit -1 fi mkdir -p wallpapers cu...
cd `dirname $0` path=`curl -s http://www.bing.com | grep -m1 -oP 'url:\s*("[^"]+")' | cut -d: -f2 | jq '.' | tr -d '"'` if [ -z "$path" ]; then echo "Unable to find wallpaper URL, exiting." exit 1 fi url=http://www.bing.com$path file=`echo $url | rev | cut -d/ -f1 | rev` out=wallpapers/$file if [ -f "$out" ]; ...
Handle error condition when finding URL.
Handle error condition when finding URL.
Shell
mit
schmich/wallpapers
shell
## Code Before: cd `dirname $0` path=`curl -s http://www.bing.com | grep -m1 -oP 'url:\s*("[^"]+")' | cut -d: -f2 | jq '.' | tr -d '"'` url=http://www.bing.com$path file=`echo $url | rev | cut -d/ -f1 | rev` out=wallpapers/$file if [ -f "$out" ]; then echo "Wallpaper already exists, exiting." exit -1 fi mkdir ...
cd `dirname $0` path=`curl -s http://www.bing.com | grep -m1 -oP 'url:\s*("[^"]+")' | cut -d: -f2 | jq '.' | tr -d '"'` + if [ -z "$path" ]; then + echo "Unable to find wallpaper URL, exiting." + exit 1 + fi + url=http://www.bing.com$path file=`echo $url | rev | cut -d/ -f1 | rev` out=wallpapers...
7
0.333333
6
1
70c45647bef1bc7c96f97dc4b0e939d7b1034279
lib/generate.sh
lib/generate.sh
pushd `dirname $0` > /dev/null THISDIR=`pwd` popd > /dev/null PARENTDIR="$(dirname "$THISDIR")" PUBLICDIR="$PARENTDIR/public" BUILDDIR="$PARENTDIR/build" # Copy all static files from the public directory to the build directory rm -rf $BUILDDIR cp -r $PUBLICDIR $BUILDDIR # Create location file for the frontend app ec...
set -e # stop on error # Adapted from http://stackoverflow.com/a/4774063 pushd `dirname $0` > /dev/null THISDIR=`pwd` popd > /dev/null PARENTDIR="$(dirname "$THISDIR")" PUBLICDIR="$PARENTDIR/public" BUILDDIR="$PARENTDIR/build" # Copy all static files from the public directory to the build directory rm -rf $BUILDDIR...
Make generation script more failure friendly
Make generation script more failure friendly
Shell
mit
kaplas/camino-tracker,kaplas/camino-tracker
shell
## Code Before: pushd `dirname $0` > /dev/null THISDIR=`pwd` popd > /dev/null PARENTDIR="$(dirname "$THISDIR")" PUBLICDIR="$PARENTDIR/public" BUILDDIR="$PARENTDIR/build" # Copy all static files from the public directory to the build directory rm -rf $BUILDDIR cp -r $PUBLICDIR $BUILDDIR # Create location file for the...
+ set -e # stop on error + + # Adapted from http://stackoverflow.com/a/4774063 pushd `dirname $0` > /dev/null THISDIR=`pwd` popd > /dev/null PARENTDIR="$(dirname "$THISDIR")" PUBLICDIR="$PARENTDIR/public" BUILDDIR="$PARENTDIR/build" # Copy all static files from the public directory to the build di...
3
0.2
3
0
daf40eba1e5a3e9764ab2425e5661b08bc543dfc
tests/machine.nix
tests/machine.nix
{disnix, dysnomia}: {config, pkgs, ...}: { virtualisation.writableStore = true; virtualisation.pathsInNixDB = [ pkgs.stdenv ]; ids.gids = { disnix = 200; }; users.extraGroups = [ { gid = 200; name = "disnix"; } ]; users.extraUsers = [ { uid = 1000; name = "unprivileged"; group = "users"...
{disnix, dysnomia}: {config, pkgs, ...}: { virtualisation.writableStore = true; virtualisation.pathsInNixDB = [ pkgs.stdenv ]; ids.gids = { disnix = 200; }; users.extraGroups = [ { gid = 200; name = "disnix"; } ]; users.extraUsers = [ { uid = 1000; name = "unprivileged"; group = "users"...
Convert jobs definition to the new systemd convention
Convert jobs definition to the new systemd convention
Nix
lgpl-2.1
svanderburg/disnix,svanderburg/disnix
nix
## Code Before: {disnix, dysnomia}: {config, pkgs, ...}: { virtualisation.writableStore = true; virtualisation.pathsInNixDB = [ pkgs.stdenv ]; ids.gids = { disnix = 200; }; users.extraGroups = [ { gid = 200; name = "disnix"; } ]; users.extraUsers = [ { uid = 1000; name = "unprivileged"; ...
{disnix, dysnomia}: {config, pkgs, ...}: { virtualisation.writableStore = true; virtualisation.pathsInNixDB = [ pkgs.stdenv ]; ids.gids = { disnix = 200; }; users.extraGroups = [ { gid = 200; name = "disnix"; } ]; users.extraUsers = [ { uid = 1000; name = "unprivileg...
4
0.086957
2
2
b5fc62d022cd773a0333560f30d8c8c0d6dbd25e
txircd/utils.py
txircd/utils.py
def unescapeEndpointDescription(desc): result = [] escape = [] depth = 0 desc = iter(desc) for char in desc: if char == "\\": try: char = desc.next() except StopIteration: raise ValueError ("Endpoint description not valid: escaped end o...
def _enum(**enums): return type('Enum', (), enums) ModeType = _enum(List=0, ParamOnUnset=1, Param=2, NoParam=3, Status=4) def unescapeEndpointDescription(desc): result = [] escape = [] depth = 0 desc = iter(desc) for char in desc: if char == "\\": try: char ...
Add a ModeType enum for later benefit
Add a ModeType enum for later benefit
Python
bsd-3-clause
ElementalAlchemist/txircd,Heufneutje/txircd
python
## Code Before: def unescapeEndpointDescription(desc): result = [] escape = [] depth = 0 desc = iter(desc) for char in desc: if char == "\\": try: char = desc.next() except StopIteration: raise ValueError ("Endpoint description not vali...
+ def _enum(**enums): + return type('Enum', (), enums) + + ModeType = _enum(List=0, ParamOnUnset=1, Param=2, NoParam=3, Status=4) + def unescapeEndpointDescription(desc): result = [] escape = [] depth = 0 desc = iter(desc) for char in desc: if char == "\\": ...
5
0.135135
5
0
fd3c866d9e50699643a4173aa33baffb10020af6
src/utils/fd-axios.js
src/utils/fd-axios.js
/* global localStorage */ import axios from 'axios' const FD_API_URL = process.env.FD_API_URL || 'http://localhost:9111/v3' export default axios.create({ baseURL: FD_API_URL, headers: { 'Content-Type': 'application/json' } })
/* global localStorage */ import axios from 'axios' const FD_API_URL = process.env.FD_API_URL || 'http://localhost:9111/v3' export default axios.create({ baseURL: FD_API_URL, withCredentials: true, headers: { 'Content-Type': 'application/json' } })
Fix issue with websocket and Chrome (add Authorization header)
Fix issue with websocket and Chrome (add Authorization header)
JavaScript
agpl-3.0
freedomotic/fd-vue-webapp,freedomotic/fd-vue-webapp
javascript
## Code Before: /* global localStorage */ import axios from 'axios' const FD_API_URL = process.env.FD_API_URL || 'http://localhost:9111/v3' export default axios.create({ baseURL: FD_API_URL, headers: { 'Content-Type': 'application/json' } }) ## Instruction: Fix issue with websocket and Chrome (add Author...
/* global localStorage */ import axios from 'axios' const FD_API_URL = process.env.FD_API_URL || 'http://localhost:9111/v3' export default axios.create({ baseURL: FD_API_URL, + withCredentials: true, headers: { 'Content-Type': 'application/json' } })
1
0.076923
1
0
b44861a7403bf42dfa034f08da3b51f44f3570ba
index.rst
index.rst
.. include:: global.rst Pyramid Technologies Thermal Printer Command Set ================================================ |logo| - `Documentation has moved <https://escpos.readthedocs.io/>`_ .. toctree:: :maxdepth: 4 self Indices and tables ================== * :ref:`genindex`
.. include:: global.rst Pyramid Technologies Thermal Printer Command Set ================================================ |logo| This documentation has moved_. .. _moved: https://escpos.readthedocs.io/
Remove extra links from home page
Remove extra links from home page
reStructuredText
mit
PyramidTechnologies/Reliance-ESCPOS-Commands
restructuredtext
## Code Before: .. include:: global.rst Pyramid Technologies Thermal Printer Command Set ================================================ |logo| - `Documentation has moved <https://escpos.readthedocs.io/>`_ .. toctree:: :maxdepth: 4 self Indices and tables ================== * :ref:`genindex` ## Instruc...
.. include:: global.rst Pyramid Technologies Thermal Printer Command Set ================================================ + |logo| + This documentation has moved_. - - `Documentation has moved <https://escpos.readthedocs.io/>`_ + .. _moved: https://escpos.readthedocs.io/ - - .. toctree:: - :max...
15
0.75
3
12
ed79bff080253f33878cbf9aba848cc84b607722
index.js
index.js
/* jshint node: true */ 'use strict'; var pickFiles = require('broccoli-static-compiler'); var merge = require('lodash.merge'); module.exports = { name: 'ember-cli-chosen', included: function(app) { this._super.included(app); // Setup default options for ember-cli-chosen var options = mer...
/* jshint node: true */ 'use strict'; var pickFiles = require('broccoli-static-compiler'); var merge = require('lodash.merge'); module.exports = { name: 'ember-cli-chosen', included: function(app) { this._super.included(app); // Setup default options for ember-cli-chosen var options = mer...
Allow other trees to be returned.
Allow other trees to be returned. If you override `treeFor` but do not return anything for `treeFor('addon')` or `treeFor('app')` no code will be shipped to the browser.
JavaScript
mit
meszike123/ember-cli-chosen,meszike123/ember-cli-chosen,green-arrow/ember-cli-chosen,dandehavilland/ember-cli-chosen,dandehavilland/ember-cli-chosen,green-arrow/ember-cli-chosen
javascript
## Code Before: /* jshint node: true */ 'use strict'; var pickFiles = require('broccoli-static-compiler'); var merge = require('lodash.merge'); module.exports = { name: 'ember-cli-chosen', included: function(app) { this._super.included(app); // Setup default options for ember-cli-chosen v...
/* jshint node: true */ 'use strict'; var pickFiles = require('broccoli-static-compiler'); var merge = require('lodash.merge'); module.exports = { name: 'ember-cli-chosen', included: function(app) { this._super.included(app); // Setup default options for ember-cli-chos...
4
0.093023
2
2
630c823706e28e66306828d6c3001b6e3773ce90
ui/players/models.py
ui/players/models.py
from django.db import models from django.contrib.auth.models import User class Player(models.Model): user = models.OneToOneField(User) class Avatar(models.Model): player = models.ForeignKey(User) code = models.TextField()
from django.db import models from django.contrib.auth.models import User class Player(models.Model): user = models.OneToOneField(User) code = models.TextField() class Avatar(models.Model): player = models.ForeignKey(User)
Move code into player (if only for now)
Move code into player (if only for now)
Python
agpl-3.0
Spycho/aimmo,Spycho/aimmo,Spycho/aimmo,Spycho/aimmo
python
## Code Before: from django.db import models from django.contrib.auth.models import User class Player(models.Model): user = models.OneToOneField(User) class Avatar(models.Model): player = models.ForeignKey(User) code = models.TextField() ## Instruction: Move code into player (if only for now) ## Code A...
from django.db import models from django.contrib.auth.models import User class Player(models.Model): user = models.OneToOneField(User) + code = models.TextField() class Avatar(models.Model): player = models.ForeignKey(User) - code = models.TextField() +
3
0.272727
2
1
7d804e27fe4f420e1437f36922a76da645d50249
index.js
index.js
var AWS = require('aws-sdk'); var s3 = new AWS.S3(); var yaml = require('js-yaml'); // const s3EnvVars = require('s3-env-vars'); // var doc = s3EnvVars("mybucketname", "folderpathinbucket", "filename", function(err, data) { // if(err) console.log(err); // else console.log(data); // }); module.exports = function(bu...
var AWS = require('aws-sdk'); var s3 = new AWS.S3(); var yaml = require('js-yaml'); // const s3EnvVars = require('s3-env-vars'); // var doc = s3EnvVars("mybucketname", "folderpathinbucket", "filename", function(err, data) { // if(err) console.log(err); // else console.log(data); // }); module.exports = function(bu...
Remove extra logging that exposed secrets to cloud watch log
Remove extra logging that exposed secrets to cloud watch log
JavaScript
mit
Referly/lambda-s3-yml
javascript
## Code Before: var AWS = require('aws-sdk'); var s3 = new AWS.S3(); var yaml = require('js-yaml'); // const s3EnvVars = require('s3-env-vars'); // var doc = s3EnvVars("mybucketname", "folderpathinbucket", "filename", function(err, data) { // if(err) console.log(err); // else console.log(data); // }); module.expor...
var AWS = require('aws-sdk'); var s3 = new AWS.S3(); var yaml = require('js-yaml'); // const s3EnvVars = require('s3-env-vars'); // var doc = s3EnvVars("mybucketname", "folderpathinbucket", "filename", function(err, data) { // if(err) console.log(err); // else console.log(data); // }); module.e...
3
0.103448
0
3
d01a4a45254ae0c3c22a054a575631999c48641e
src/codeManager.js
src/codeManager.js
var utils = require("./utils"); function CodeManager() { this.codes = []; this.currentSession = -1; this.codesGenerated = false; } CodeManager.prototype.nextSession = function() { if (this.codes[this.currentSession + 1]) { this.currentSession++; } else if (this.currentSession === -1) { ...
var utils = require("./utils"); function CodeManager() { this.codes = []; this.currentSession = -1; this.codesGenerated = false; } CodeManager.prototype.nextSession = function() { if (!this.codesGenerated) { throw "No codes generated"; } if (this.codes[this.currentSession + 1]) { ...
Clarify logic around codesGenerated boolean
Clarify logic around codesGenerated boolean
JavaScript
mit
cthit/VoteIT,cthit/VoteIT
javascript
## Code Before: var utils = require("./utils"); function CodeManager() { this.codes = []; this.currentSession = -1; this.codesGenerated = false; } CodeManager.prototype.nextSession = function() { if (this.codes[this.currentSession + 1]) { this.currentSession++; } else if (this.currentSessi...
var utils = require("./utils"); function CodeManager() { this.codes = []; this.currentSession = -1; this.codesGenerated = false; } CodeManager.prototype.nextSession = function() { + if (!this.codesGenerated) { + throw "No codes generated"; + } + if (this.codes[this...
6
0.142857
4
2
7570f23a9f2e73863f5e84a652646df348ad35df
salt/slack-irc/config/slack-irc.json.jinja
salt/slack-irc/config/slack-irc.json.jinja
[ { "nickname": "PSFSlack", "server": "irc.freenode.net", "token": "{{ slack_token }}", "autoSendCommands": [ ["PRIVMSG", "NickServ", "IDENTIFY {{ irc_password }}"] ], "channelMapping": { "#infrastructure": "#python-infra", "psf-board": "#psf-board" }, "commandCharact...
[ { "nickname": "PSFSlack", "server": "irc.freenode.net", "token": "{{ slack_token }}", "autoSendCommands": [ ["PRIVMSG", "NickServ", "IDENTIFY {{ irc_password }}"] ], "channelMapping": { "#infrastructure": "#python-infra", "psf-board": "#psf-board", "psf-board-private"...
Add another slack <-> IRC bridge
Add another slack <-> IRC bridge
HTML+Django
mit
python/psf-salt,python/psf-salt,python/psf-salt,zware/psf-salt,python/psf-salt,zware/psf-salt,zware/psf-salt,zware/psf-salt
html+django
## Code Before: [ { "nickname": "PSFSlack", "server": "irc.freenode.net", "token": "{{ slack_token }}", "autoSendCommands": [ ["PRIVMSG", "NickServ", "IDENTIFY {{ irc_password }}"] ], "channelMapping": { "#infrastructure": "#python-infra", "psf-board": "#psf-board" }, ...
[ { "nickname": "PSFSlack", "server": "irc.freenode.net", "token": "{{ slack_token }}", "autoSendCommands": [ ["PRIVMSG", "NickServ", "IDENTIFY {{ irc_password }}"] ], "channelMapping": { "#infrastructure": "#python-infra", - "psf-board": "#psf-board" + ...
3
0.2
2
1
0b70bfac935e4e5f57f3239b9a0aeb5c8d043610
Sodium.podspec
Sodium.podspec
Pod::Spec.new do |s| s.name = 'Sodium' s.version = '0.8.0' s.swift_version = '5.0' s.license = { :type => "ISC", :file => 'LICENSE' } s.summary = 'Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on iOS and OSX.' s.homepage = 'https://github.com/jedisct1/swift-sodium' s....
Pod::Spec.new do |s| s.name = 'Sodium' s.version = '0.8.0' s.swift_version = '5.0' s.license = { :type => "ISC", :file => 'LICENSE' } s.summary = 'Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on iOS and OSX.' s.homepage = 'https://github.com/jedisct1/swift-sodium' s....
Remove references to nonexistent files
Remove references to nonexistent files
Ruby
isc
jedisct1/swift-sodium,jedisct1/swift-sodium,jedisct1/swift-sodium
ruby
## Code Before: Pod::Spec.new do |s| s.name = 'Sodium' s.version = '0.8.0' s.swift_version = '5.0' s.license = { :type => "ISC", :file => 'LICENSE' } s.summary = 'Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on iOS and OSX.' s.homepage = 'https://github.com/jedisct1/...
Pod::Spec.new do |s| s.name = 'Sodium' s.version = '0.8.0' s.swift_version = '5.0' s.license = { :type => "ISC", :file => 'LICENSE' } s.summary = 'Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on iOS and OSX.' s.homepage = 'https://github.com/jedisct1/sw...
5
0.166667
0
5
4ec043be37b474b22e19884653667b81c8a18885
concourse/scripts/lib/google-oauth.sh
concourse/scripts/lib/google-oauth.sh
set -e set -u get_google_oauth_secrets() { # shellcheck disable=SC2154 secrets_uri="s3://${state_bucket}/google-oauth-secrets.yml" export oauth_client_id export oauth_client_secret if aws s3 ls "${secrets_uri}" > /dev/null ; then secrets_file=$(mktemp -t google-oauth-secrets.XXXXXX) aws s3 cp "${sec...
set -e set -u get_google_oauth_secrets() { # shellcheck disable=SC2154 secrets_uri="s3://${state_bucket}/google-oauth-secrets.yml" export oauth_client_id export oauth_client_secret secrets_size=$(aws s3 ls "${secrets_uri}" | awk '{print $3}') if [ "${secrets_size}" != 0 ] && [ -n "${secrets_size}" ] ; the...
Check if google secrets file is not empty
Check if google secrets file is not empty We always initialise that file even if we dont populate it so in case the size is 0 than creation of admins never happen and secrets are not generated.
Shell
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
shell
## Code Before: set -e set -u get_google_oauth_secrets() { # shellcheck disable=SC2154 secrets_uri="s3://${state_bucket}/google-oauth-secrets.yml" export oauth_client_id export oauth_client_secret if aws s3 ls "${secrets_uri}" > /dev/null ; then secrets_file=$(mktemp -t google-oauth-secrets.XXXXXX) ...
set -e set -u get_google_oauth_secrets() { # shellcheck disable=SC2154 secrets_uri="s3://${state_bucket}/google-oauth-secrets.yml" export oauth_client_id export oauth_client_secret - if aws s3 ls "${secrets_uri}" > /dev/null ; then + secrets_size=$(aws s3 ls "${secrets_uri}" | awk '{print $...
3
0.166667
2
1
2f227554e85a64f73cdf86ff17c2f426d0e0d7f8
config/googlebooks.php
config/googlebooks.php
<?php return [ /* |-------------------------------------------------------------------------- | API KEY |-------------------------------------------------------------------------- */ 'key' => env('GOOGLE_BOOKS_KEY'), ];
<?php return [ /* |-------------------------------------------------------------------------- | API KEY |-------------------------------------------------------------------------- */ 'key' => env('GOOGLE_BOOKS_KEY'), /* |----------------------------------------------------------------...
Fix country config for google books harvesting
Fix country config for google books harvesting (should have been part of 5d5652b0)
PHP
mit
scriptotek/colligator-backend,scriptotek/colligator-backend,scriptotek/colligator-backend
php
## Code Before: <?php return [ /* |-------------------------------------------------------------------------- | API KEY |-------------------------------------------------------------------------- */ 'key' => env('GOOGLE_BOOKS_KEY'), ]; ## Instruction: Fix country config for google books harv...
<?php return [ /* |-------------------------------------------------------------------------- | API KEY |-------------------------------------------------------------------------- */ 'key' => env('GOOGLE_BOOKS_KEY'), + /* + |--------------------------------------...
7
0.583333
7
0
c6146d440d92673a0784db9780cd527811be83fd
States/MovingEntity.hs
States/MovingEntity.hs
{-# LANGUAGE TupleSections #-} module States.MovingEntity where #include "Gamgine/Utils.cpp" import Control.Applicative ((<$>)) import qualified Gamgine.Math.Vect as V import Gamgine.Control (applyIf, (?)) import qualified States.State as ST import qualified States.GameRunning as GR import qualified GameData.Level as ...
{-# LANGUAGE TupleSections #-} module States.MovingEntity where #include "Gamgine/Utils.cpp" import Control.Applicative ((<$>)) import qualified Gamgine.Math.Vect as V import Gamgine.Control ((?)) import qualified States.State as ST import qualified States.GameRunning as GR import qualified GameData.Level as LV import...
Change data type of MoveEntity
Change data type of MoveEntity
Haskell
bsd-3-clause
dan-t/layers
haskell
## Code Before: {-# LANGUAGE TupleSections #-} module States.MovingEntity where #include "Gamgine/Utils.cpp" import Control.Applicative ((<$>)) import qualified Gamgine.Math.Vect as V import Gamgine.Control (applyIf, (?)) import qualified States.State as ST import qualified States.GameRunning as GR import qualified Ga...
{-# LANGUAGE TupleSections #-} module States.MovingEntity where #include "Gamgine/Utils.cpp" import Control.Applicative ((<$>)) import qualified Gamgine.Math.Vect as V - import Gamgine.Control (applyIf, (?)) ? --------- + import Gamgine.Control ((?)) import qualified States.State...
22
0.564103
11
11
d08973c3854d10755e156b1457972a8aaebb251b
bottle_utils/form/__init__.py
bottle_utils/form/__init__.py
from .exceptions import ValidationError from .fields import (DormantField, Field, StringField, PasswordField, HiddenField, EmailField, TextAreaField, DateField, ...
from .exceptions import ValidationError from .fields import (DormantField, Field, StringField, PasswordField, HiddenField, EmailField, TextAreaField, DateField, ...
Include LengthValidator in list of exporeted objects
Include LengthValidator in list of exporeted objects Signed-off-by: Branko Vukelic <26059cc39872530f89fec69552bb1050e1cc2caa@outernet.is>
Python
bsd-2-clause
Outernet-Project/bottle-utils
python
## Code Before: from .exceptions import ValidationError from .fields import (DormantField, Field, StringField, PasswordField, HiddenField, EmailField, TextAreaField, DateFie...
from .exceptions import ValidationError from .fields import (DormantField, Field, StringField, PasswordField, HiddenField, EmailField, TextAreaField, DateF...
3
0.081081
2
1
f49bc6c1d7baa789a7b9b4a26b3073da6f644574
test/Interpreter/opaque_return_type_protocol_ext.swift
test/Interpreter/opaque_return_type_protocol_ext.swift
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test protocol P { associatedtype AT func foo() -> AT } struct Adapter<T: P>: P { var inner: T func foo() -> some P { return inner } } extension P { func foo() -> some P { return Adapter(inner: self) } } func getPAT<T: P>(...
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test @available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) protocol P { associatedtype AT func foo() -> AT } @available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) struct Adapter<T: P>: P { var inner: T @available(iOS 9999,...
Correct availability for opaque type execution test.
Correct availability for opaque type execution test. Opaque types require the next Swift runtime.
Swift
apache-2.0
aschwaighofer/swift,xwu/swift,gregomni/swift,parkera/swift,CodaFi/swift,nathawes/swift,harlanhaskins/swift,devincoughlin/swift,atrick/swift,JGiola/swift,gribozavr/swift,lorentey/swift,CodaFi/swift,stephentyrone/swift,xedin/swift,atrick/swift,benlangmuir/swift,tkremenek/swift,aschwaighofer/swift,airspeedswift/swift,lore...
swift
## Code Before: // RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test protocol P { associatedtype AT func foo() -> AT } struct Adapter<T: P>: P { var inner: T func foo() -> some P { return inner } } extension P { func foo() -> some P { return Adapter(inner: self) } } fu...
// RUN: %target-run-simple-swift | %FileCheck %s // REQUIRES: executable_test + @available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) protocol P { associatedtype AT func foo() -> AT } + @available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) struct Adapter<T: P>: P { var inner: T...
16
0.551724
14
2
79c6c71ab6edd8313fd6c9c6441d69ad04d50721
update-database/stackdoc/namespaces/microsoftkb.py
update-database/stackdoc/namespaces/microsoftkb.py
import re import urllib ############### Functions called by stackdoc def get_version(): return 1 def get_ids(title, body, tags): ids = [] if "http://support.microsoft.com/": urls = re.findall(r'<a href="([^"]+)"', body) for url in urls: m = re.match("http://support\.microsoft...
import re import urllib ############### Functions called by stackdoc def get_version(): return 1 def get_ids(title, body, tags): ids = [] if "http://support.microsoft.com/": urls = re.findall(r'<a href="([^"]+)"', body) for url in urls: m = re.match("http://support\.microsoft...
Support another form of KB URL.
Support another form of KB URL.
Python
bsd-3-clause
alnorth/stackdoc,alnorth/stackdoc,alnorth/stackdoc
python
## Code Before: import re import urllib ############### Functions called by stackdoc def get_version(): return 1 def get_ids(title, body, tags): ids = [] if "http://support.microsoft.com/": urls = re.findall(r'<a href="([^"]+)"', body) for url in urls: m = re.match("http://su...
import re import urllib ############### Functions called by stackdoc def get_version(): return 1 def get_ids(title, body, tags): ids = [] if "http://support.microsoft.com/": urls = re.findall(r'<a href="([^"]+)"', body) for url in urls: - m = re.ma...
5
0.217391
4
1
cc321494762b6daee1054dccc1d33b613f12512d
lib/generators/sts_salesforce/install/install_generator.rb
lib/generators/sts_salesforce/install/install_generator.rb
require 'rails/generators/migration' require 'rails/generators/active_record/migration' module StsSalesforce module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../tem...
require 'rails/generators/migration' require 'rails/generators/active_record/migration' module StsSalesforce module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../tem...
Remove next_migration since using ActiveRecord
Remove next_migration since using ActiveRecord
Ruby
mit
singletracksystems/sts_salesforce,singletracksystems/sts_salesforce,singletracksystems/sts_salesforce
ruby
## Code Before: require 'rails/generators/migration' require 'rails/generators/active_record/migration' module StsSalesforce module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.exp...
require 'rails/generators/migration' require 'rails/generators/active_record/migration' module StsSalesforce module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File...
9
0.173077
0
9
d8c382d735c4bb148c50c1309d128992baa75dbc
recipes/package.rb
recipes/package.rb
case node['platform_family'] when 'debian', 'ubuntu' package %w(transmission transmission-cli transmission-daemon) else package %w(transmission transmission-cli transmission-daemon) end include_recipe 'transmission::default'
package %w(transmission transmission-cli transmission-daemon) include_recipe 'transmission::default'
Remove a case statement for no reason
Remove a case statement for no reason Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
apache-2.0
chef-cookbooks/transmission,opscode-cookbooks/transmission,chef-cookbooks/transmission,opscode-cookbooks/transmission,opscode-cookbooks/transmission,chef-cookbooks/transmission
ruby
## Code Before: case node['platform_family'] when 'debian', 'ubuntu' package %w(transmission transmission-cli transmission-daemon) else package %w(transmission transmission-cli transmission-daemon) end include_recipe 'transmission::default' ## Instruction: Remove a case statement for no reason Signed-off-by: Ti...
- case node['platform_family'] - when 'debian', 'ubuntu' - package %w(transmission transmission-cli transmission-daemon) ? -- + package %w(transmission transmission-cli transmission-daemon) - else - package %w(transmission transmission-cli transmission-daemon) - end include_recipe 'transmission::default'
7
0.777778
1
6
b9654ffbbd1c2057d1ff377a0190b115f568d080
knights/defaulttags.py
knights/defaulttags.py
from .library import Library import datetime register = Library() @register.tag(name='now') def now(parser, token): args, kwargs = parser.parse_args(token) def _now(context): a, k = parser.resolve_args(context, args, kwargs) val = datetime.datetime.now() return val.strftime(a[0]) ...
from .library import Library from .parse import BasicNode import datetime register = Library() @register.tag(name='now') class NowNode(BasicNode): def render(self, fmt): val = datetime.datetime.now() return val.strftime(fmt)
Rewrite 'now' tag to use BasicNode
Rewrite 'now' tag to use BasicNode
Python
mit
funkybob/knights-templater,funkybob/knights-templater
python
## Code Before: from .library import Library import datetime register = Library() @register.tag(name='now') def now(parser, token): args, kwargs = parser.parse_args(token) def _now(context): a, k = parser.resolve_args(context, args, kwargs) val = datetime.datetime.now() return val....
from .library import Library + from .parse import BasicNode import datetime register = Library() @register.tag(name='now') + class NowNode(BasicNode): + def render(self, fmt): - def now(parser, token): - - args, kwargs = parser.parse_args(token) - - def _now(context): - a, k = ...
13
0.722222
4
9
268c4dce6cfa59e10cff7f4bf8456276c2e11f7d
main.py
main.py
# Copyright 2014 Dimitri "Tyrope" Molenaars # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use self file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to i...
# Copyright 2014 Dimitri "Tyrope" Molenaars # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to i...
Create config paths if needed, find files and (for now) report remotes.
Create config paths if needed, find files and (for now) report remotes.
Python
apache-2.0
tyrope/KSP-addon-version-checker
python
## Code Before: # Copyright 2014 Dimitri "Tyrope" Molenaars # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use self 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 la...
# Copyright 2014 Dimitri "Tyrope" Molenaars # Licensed under the Apache License, Version 2.0 (the "License"); - # you may not use self file except in compliance with the License. ? --- + # you may not use this file except in compliance with the License. ? +++ # You may ob...
39
1.258065
30
9
ede8c47c3f41828e6f5a086454f8c052ef9c8da3
.travis.yml
.travis.yml
sudo: false language: node_js node_js: - "5.0.0" - "4.2.2" - "0.12"
sudo: false language: node_js node_js: - "5.0.0" - "4.2.2"
Remove support for node 0.12
Remove support for node 0.12
YAML
mit
css-modules/postcss-modules,outpunk/postcss-modules
yaml
## Code Before: sudo: false language: node_js node_js: - "5.0.0" - "4.2.2" - "0.12" ## Instruction: Remove support for node 0.12 ## Code After: sudo: false language: node_js node_js: - "5.0.0" - "4.2.2"
sudo: false language: node_js node_js: - "5.0.0" - "4.2.2" - - "0.12"
1
0.166667
0
1
9547988a1a9ef8faf22d9bfa881f4e542637fd46
utils.py
utils.py
import xmlrpclib import cPickle import subprocess from time import sleep p = None s = None def start_plot_server(): global p if p is None: p = subprocess.Popen(["python", "plot_server.py"]) def stop_plot_server(): if p is not None: p.terminate() sleep(0.01) p.kill() def p...
import xmlrpclib import cPickle import subprocess from time import sleep p = None s = None def start_plot_server(): global p if p is None: p = subprocess.Popen(["python", "plot_server.py"]) def stop_plot_server(): if p is not None: p.terminate() sleep(0.01) p.kill() def p...
Establish connection only when needed
Establish connection only when needed
Python
bsd-3-clause
certik/mhd-hermes,certik/mhd-hermes
python
## Code Before: import xmlrpclib import cPickle import subprocess from time import sleep p = None s = None def start_plot_server(): global p if p is None: p = subprocess.Popen(["python", "plot_server.py"]) def stop_plot_server(): if p is not None: p.terminate() sleep(0.01) ...
import xmlrpclib import cPickle import subprocess from time import sleep p = None s = None def start_plot_server(): global p if p is None: p = subprocess.Popen(["python", "plot_server.py"]) def stop_plot_server(): if p is not None: p.terminate() s...
4
0.081633
3
1
ec2675e2d033fd315462615784783bd9b7a3101c
package.json
package.json
{ "name": "praline", "version": "1.0.0-alpha", "description": "Praline", "author": "Nevena Gaj <nevenagajevic@gmail.com>", "license": "MIT" }
{ "name": "praline", "version": "1.0.0-alpha", "description": "Praline", "author": "Nevena Gaj <nevenagajevic@gmail.com>", "license": "MIT", "scripts": { "container": "export NAME=praline WORKDIR=/$NAME; if docker ps -a | grep -q $NAME; then npm run container:start; else npm run container:run; fi", ...
Add Docker container run scripts
Add Docker container run scripts
JSON
mit
nevenagaj/praline
json
## Code Before: { "name": "praline", "version": "1.0.0-alpha", "description": "Praline", "author": "Nevena Gaj <nevenagajevic@gmail.com>", "license": "MIT" } ## Instruction: Add Docker container run scripts ## Code After: { "name": "praline", "version": "1.0.0-alpha", "description": "Praline", "auth...
{ "name": "praline", "version": "1.0.0-alpha", "description": "Praline", "author": "Nevena Gaj <nevenagajevic@gmail.com>", - "license": "MIT" + "license": "MIT", ? + + "scripts": { + "container": "export NAME=praline WORKDIR=/$NAME; if docker ps -a | grep -q $NAME; then np...
7
1
6
1
ccb59e12cd4c9f3d831e530c103f24afc3c5fbaf
ckanext/stadtzhtheme/templates/base.html
ckanext/stadtzhtheme/templates/base.html
{% ckan_extends %} {%- block title -%} Open Data Zürich - Stadt Zürich {%- endblock -%} {% block links -%} <link rel="shortcut icon" href="/favicon.ico" /> {% endblock -%} {% block styles %} {{ super() }} {% resource 'stadtzhtheme/auto-complete.css' %} {% resource 'stadtzhtheme/stadtzhtheme.css' %} {% reso...
{% ckan_extends %} {% block meta %} {{ super() }} <meta name="robots" content="noindex" /> {% endblock %} {%- block title -%} Open Data Zürich - Stadt Zürich {%- endblock -%} {% block links -%} <link rel="shortcut icon" href="/favicon.ico" /> {% endblock -%} {% block styles %} {{ super() }} {% resource 's...
Add robots noindex meta tag
feat: Add robots noindex meta tag
HTML
agpl-3.0
opendatazurich/ckanext-stadtzh-theme,opendatazurich/ckanext-stadtzh-theme,opendatazurich/ckanext-stadtzh-theme
html
## Code Before: {% ckan_extends %} {%- block title -%} Open Data Zürich - Stadt Zürich {%- endblock -%} {% block links -%} <link rel="shortcut icon" href="/favicon.ico" /> {% endblock -%} {% block styles %} {{ super() }} {% resource 'stadtzhtheme/auto-complete.css' %} {% resource 'stadtzhtheme/stadtzhtheme.c...
{% ckan_extends %} + + {% block meta %} + {{ super() }} + <meta name="robots" content="noindex" /> + {% endblock %} {%- block title -%} Open Data Zürich - Stadt Zürich {%- endblock -%} {% block links -%} <link rel="shortcut icon" href="/favicon.ico" /> {% endblock -%} {% block styles %...
5
0.263158
5
0
f784faf0f0119728b1c5020e5e8f4b926d4c30e9
composer.json
composer.json
{ "name": "shalvah/unnportal-api", "description": "Authenticate and get details about your users as UNN students", "license": "MIT", "keywords": ["UNN"], "authors": [ { "name": "Shalvah Adebayo", "email": "shalvah.adebayo@gmail.com" } ], "require": { ...
{ "name": "shalvah/unnportal-api", "description": "Authenticate and get details about your users as UNN students", "license": "MIT", "keywords": ["UNN"], "authors": [ { "name": "Shalvah Adebayo", "email": "shalvah.adebayo@gmail.com" } ], "require": { ...
Switch to Zttp for requests
Switch to Zttp for requests
JSON
mit
shalvah/unnportal-php
json
## Code Before: { "name": "shalvah/unnportal-api", "description": "Authenticate and get details about your users as UNN students", "license": "MIT", "keywords": ["UNN"], "authors": [ { "name": "Shalvah Adebayo", "email": "shalvah.adebayo@gmail.com" } ], ...
{ "name": "shalvah/unnportal-api", "description": "Authenticate and get details about your users as UNN students", "license": "MIT", "keywords": ["UNN"], "authors": [ { "name": "Shalvah Adebayo", "email": "shalvah.adebayo@gmail.com" } ...
5
0.227273
3
2
19d45e44ab45caee8b0378323f8433df617cb9b6
lib/generators/social_stream/documents/install_generator.rb
lib/generators/social_stream/documents/install_generator.rb
class SocialStream::Documents::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reenable Rake::T...
class SocialStream::Documents::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reenable Rake::T...
Add javascripts and stylesheets to generator
Add javascripts and stylesheets to generator
Ruby
mit
beder/social_stream,ging/social_stream,luca/social_stream-documents,honorlin/social_stream,luca/social_stream-documents,ging/social_stream,beder/social_stream,honorlin/social_stream,ging/social_stream,beder/social_stream,honorlin/social_stream,honorlin/social_stream,beder/social_stream
ruby
## Code Before: class SocialStream::Documents::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reen...
class SocialStream::Documents::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_migration_file require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].re...
12
1
12
0
17f01c2c9a97c9eaccbb13c24c71833ef642b685
src/app/controllers/SettingsMainController.js
src/app/controllers/SettingsMainController.js
import Controller from "@ember/controller"; import { computed } from "@ember/object"; import { locales as localesConfig, themes as themesConfig } from "config"; const { locales } = localesConfig; const { themes } = themesConfig; export default Controller.extend({ contentGuiLanguages: computed(function() { return...
import Controller from "@ember/controller"; import { computed } from "@ember/object"; import { locales as localesConfig, themes as themesConfig } from "config"; const { locales } = localesConfig; const { themes } = themesConfig; export default Controller.extend({ contentGuiLanguages: computed(function() { const ...
Sort language dropdown by localized language name
Sort language dropdown by localized language name
JavaScript
mit
chhe/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui,bastimeyer/livestreamer-twitch-gui,bastimeyer/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,bastimeyer/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,chhe/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui
javascript
## Code Before: import Controller from "@ember/controller"; import { computed } from "@ember/object"; import { locales as localesConfig, themes as themesConfig } from "config"; const { locales } = localesConfig; const { themes } = themesConfig; export default Controller.extend({ contentGuiLanguages: computed(funct...
import Controller from "@ember/controller"; import { computed } from "@ember/object"; import { locales as localesConfig, themes as themesConfig } from "config"; const { locales } = localesConfig; const { themes } = themesConfig; export default Controller.extend({ contentGuiLanguages: computed...
6
0.272727
5
1
db2509009c8ee175654350d9dc892fbfcd5345ec
app.json
app.json
{ "name": "Caterblu", "description": "A Django project to retrieve various informations on blu-ray releases.", "image": "heroku/python", "repository": "https://github.com/heroku/caterblu", "keywords": ["python", "django" ], "addons": [], "buildpacks": [{ "url": "https://github.com/apiaryio/heroku-...
{ "name": "Caterblu", "description": "A Django project to retrieve various informations on blu-ray releases.", "image": "heroku/python", "repository": "https://github.com/heroku/caterblu", "keywords": ["python", "django" ], "addons": [], "buildpacks": [{ "url": "https://github.com/heroku/heroku-buildp...
Move commands to other file
Move commands to other file
JSON
mit
jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu
json
## Code Before: { "name": "Caterblu", "description": "A Django project to retrieve various informations on blu-ray releases.", "image": "heroku/python", "repository": "https://github.com/heroku/caterblu", "keywords": ["python", "django" ], "addons": [], "buildpacks": [{ "url": "https://github.com/...
{ "name": "Caterblu", "description": "A Django project to retrieve various informations on blu-ray releases.", "image": "heroku/python", "repository": "https://github.com/heroku/caterblu", "keywords": ["python", "django" ], "addons": [], "buildpacks": [{ - "url": "https://github.co...
10
0.769231
6
4
a044aedea1e69145430f4cbe8249b014e9645e18
app/views/admin/local_transactions/new.html.erb
app/views/admin/local_transactions/new.html.erb
<h2>New Local Transaction</h2> <p>We need a bit more information to create your local transaction.</p> <%= semantic_form_for([:admin, @publication]) do |f| %> <%= f.inputs :lgsl_code %> <%= f.inputs do %> <%= f.input :panopticon_id, :as => :hidden %> <% end %> <%= f.buttons %> <% end %>
<h2>New Local Transaction</h2> <p>We need a bit more information to create your local transaction.</p> <%= semantic_form_for([:admin, @publication]) do |f| %> <%= f.inputs :lgsl_code %> <%= f.inputs do %> <%= f.input :panopticon_id, :as => :hidden %> <%= f.input :title, :as => :hidden %> <%= f.input :...
Hide more information in the local transaction form
Hide more information in the local transaction form
HTML+ERB
mit
leftees/publisher,alphagov/publisher,alphagov/publisher,telekomatrix/publisher,telekomatrix/publisher,leftees/publisher,theodi/publisher,alphagov/publisher,theodi/publisher,telekomatrix/publisher,theodi/publisher,leftees/publisher,telekomatrix/publisher,leftees/publisher,theodi/publisher
html+erb
## Code Before: <h2>New Local Transaction</h2> <p>We need a bit more information to create your local transaction.</p> <%= semantic_form_for([:admin, @publication]) do |f| %> <%= f.inputs :lgsl_code %> <%= f.inputs do %> <%= f.input :panopticon_id, :as => :hidden %> <% end %> <%= f.buttons %> <% end %> #...
<h2>New Local Transaction</h2> <p>We need a bit more information to create your local transaction.</p> <%= semantic_form_for([:admin, @publication]) do |f| %> <%= f.inputs :lgsl_code %> <%= f.inputs do %> <%= f.input :panopticon_id, :as => :hidden %> + <%= f.input :title, :as => :hidden %>...
5
0.454545
5
0
8056de5d6052e55c78633c8c28292b115a8ba56b
js/app.js
js/app.js
var app = angular.module('tokenKidApp', ['ngRoute']); // create the controller and inject Angular's $scope app.controller('mainController', function($scope) { // create a message to display in our view $scope.message = 'Everyone come and see how good I look!'; $scope.loginClicked = function() { ...
var app = angular.module('tokenKidApp', ['ngRoute']); // create the controller and inject Angular's $scope app.controller('mainController', function($scope) { // create a message to display in our view $scope.message = 'Everyone come and see how good I look!'; $scope.loginClicked = function() { ...
Add some links and things
Add some links and things
JavaScript
apache-2.0
itsjason/TokenKid,itsjason/TokenKid
javascript
## Code Before: var app = angular.module('tokenKidApp', ['ngRoute']); // create the controller and inject Angular's $scope app.controller('mainController', function($scope) { // create a message to display in our view $scope.message = 'Everyone come and see how good I look!'; $scope.loginClicked = f...
var app = angular.module('tokenKidApp', ['ngRoute']); // create the controller and inject Angular's $scope app.controller('mainController', function($scope) { // create a message to display in our view $scope.message = 'Everyone come and see how good I look!'; $scope.loginClicked =...
2
0.086957
1
1
c6e130682712e8534e773036ba3d87c09b91ff1c
knowledge_repo/postprocessors/format_checks.py
knowledge_repo/postprocessors/format_checks.py
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
Fix lint issues related to long lines
Fix lint issues related to long lines
Python
apache-2.0
airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo
python
## Code Before: from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.hea...
14
0.736842
8
6
b33c1b70bcb7a5303c1731cb6699466610ee54af
pyedgar/__init__.py
pyedgar/__init__.py
__title__ = 'pyedgar' __version__ = '0.0.3a1' __author__ = 'Mac Gaulin' __license__ = 'MIT' __copyright__ = 'Copyright 2018 Mac Gaulin' # Include top level modules from . import filing from . import downloader # Include sub-modules from . import utilities from . import exceptions from .exceptions import (InputTypeE...
__title__ = 'pyedgar' __version__ = '0.0.4a1' __author__ = 'Mac Gaulin' __license__ = 'MIT' __copyright__ = 'Copyright 2018 Mac Gaulin' # Include sub-modules from . import utilities from . import exceptions from .exceptions import (InputTypeError, WrongFormType, NoFormTypeFound, NoCIKFound) ...
Remove top level imports to avoid cyclical import
Remove top level imports to avoid cyclical import
Python
mit
gaulinmp/pyedgar
python
## Code Before: __title__ = 'pyedgar' __version__ = '0.0.3a1' __author__ = 'Mac Gaulin' __license__ = 'MIT' __copyright__ = 'Copyright 2018 Mac Gaulin' # Include top level modules from . import filing from . import downloader # Include sub-modules from . import utilities from . import exceptions from .exceptions im...
__title__ = 'pyedgar' - __version__ = '0.0.3a1' ? ^ + __version__ = '0.0.4a1' ? ^ __author__ = 'Mac Gaulin' __license__ = 'MIT' __copyright__ = 'Copyright 2018 Mac Gaulin' - - # Include top level modules - from . import filing - from . import downloader # Incl...
6
0.3
1
5
f62dd2ff0eedfca086f833d8dd710534512a51a1
main.rb
main.rb
Dir[File.dirname(__FILE__) + '/lib/**/*.rb'].each {|file| require file } class TernaryExpression def initialize(variable_terminals, depth) @operator = get_operator @operand_1 = ::Expression::OperandCreator.create(variable_terminals, depth) @operand_2 = ::Expression::OperandCreator.create(variable_termin...
Dir[File.dirname(__FILE__) + '/lib/**/*.rb'].each {|file| require file } class Expression class TernaryExpression def initialize(variable_terminals, depth) @operator = get_operator @operand_1 = ::Expression::OperandCreator.create(variable_terminals, depth) @operand_2 = ::Expression::OperandCre...
Add class Expression for namespacing
Add class Expression for namespacing
Ruby
mit
nick1123/abstract_syntax_tree
ruby
## Code Before: Dir[File.dirname(__FILE__) + '/lib/**/*.rb'].each {|file| require file } class TernaryExpression def initialize(variable_terminals, depth) @operator = get_operator @operand_1 = ::Expression::OperandCreator.create(variable_terminals, depth) @operand_2 = ::Expression::OperandCreator.create...
Dir[File.dirname(__FILE__) + '/lib/**/*.rb'].each {|file| require file } + class Expression - class TernaryExpression + class TernaryExpression ? ++ - def initialize(variable_terminals, depth) + def initialize(variable_terminals, depth) ? ++ - @operator = get_operator + @operator = get_operat...
76
1.407407
39
37
ff8a574864e8cee4245095a67ac0adfbb43e7c42
index.php
index.php
<?php /** * RockMongo startup * * In here we define some default settings and start the configuration files * @package rockmongo */ /** * Defining version number and enabling error reporting */ define("ROCK_MONGO_VERSION", "1.1.8"); error_reporting(E_ALL); /** * Environment detection */ if (!version_compare(PHP...
<?php /** * RockMongo startup * * In here we define some default settings and start the configuration files * @package rockmongo */ /** * Defining version number and enabling error reporting */ define("ROCK_MONGO_VERSION", "1.1.8"); error_reporting(E_ALL); /** * Environment detection */ if (!version_compare(PHP...
Set mongo.native_long only under 64bit PHP build
Set mongo.native_long only under 64bit PHP build
PHP
bsd-3-clause
lzpfmh/rockmongo,FGM/rockmongo,asalem/rockmongo,asalem/rockmongo,bajian/rockmongo,pristavu/rockmongo,anapsix/rockmongo,lzpfmh/rockmongo,pataquets/rockmongo,bajian/rockmongo,anapsix/rockmongo,vvarada1/rockmongo,vvarada1/rockmongo,pristavu/rockmongo,pataquets/rockmongo,FGM/rockmongo
php
## Code Before: <?php /** * RockMongo startup * * In here we define some default settings and start the configuration files * @package rockmongo */ /** * Defining version number and enabling error reporting */ define("ROCK_MONGO_VERSION", "1.1.8"); error_reporting(E_ALL); /** * Environment detection */ if (!ver...
<?php /** * RockMongo startup * * In here we define some default settings and start the configuration files * @package rockmongo */ /** * Defining version number and enabling error reporting */ define("ROCK_MONGO_VERSION", "1.1.8"); error_reporting(E_ALL); /** * Environment det...
6
0.15
4
2
7a04764896d808e8a72f153d49318bfe9cdf523c
test/e2e/chatbotSpec.js
test/e2e/chatbotSpec.js
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const config = require('config') describe('/chatbot', () => { let username, submitButton, messageBox protractor.beforeEach.login({ email: 'admin@' + config.get('application.domain'), password: 'admin123' }) describe('challenge ...
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const config = require('config') describe('/chatbot', () => { let username, submitButton, messageBox protractor.beforeEach.login({ email: 'admin@' + config.get('application.domain'), password: 'admin123' }) describe('challenge ...
Enable waiting for Angular earlier and fix solved-check
Enable waiting for Angular earlier and fix solved-check
JavaScript
mit
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
javascript
## Code Before: /* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const config = require('config') describe('/chatbot', () => { let username, submitButton, messageBox protractor.beforeEach.login({ email: 'admin@' + config.get('application.domain'), password: 'admin123' }) desc...
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ const config = require('config') describe('/chatbot', () => { let username, submitButton, messageBox protractor.beforeEach.login({ email: 'admin@' + config.get('application.domain'), password: 'admin123' }) ...
6
0.2
3
3
70e36fb4fd5514411308e6838cd356dc11cf8f70
app/controllers/misc_controller.rb
app/controllers/misc_controller.rb
class MiscController < ApplicationController def show redirect_to misc_information_path end def information @env = ENV @plugins = Plugin.installed end end
require "fluent/version" class MiscController < ApplicationController def show redirect_to misc_information_path end def information @env = ENV @plugins = Plugin.installed end end
Fix system information page didn't load fluent/version
Fix system information page didn't load fluent/version
Ruby
apache-2.0
fluent/fluentd-ui,fluent/fluentd-ui,mt0803/fluentd-ui,fluent/fluentd-ui,mt0803/fluentd-ui,mt0803/fluentd-ui
ruby
## Code Before: class MiscController < ApplicationController def show redirect_to misc_information_path end def information @env = ENV @plugins = Plugin.installed end end ## Instruction: Fix system information page didn't load fluent/version ## Code After: require "fluent/version" class MiscCont...
+ require "fluent/version" + class MiscController < ApplicationController def show redirect_to misc_information_path end def information @env = ENV @plugins = Plugin.installed end end
2
0.2
2
0
cddcc7e5735022c7a4faeee5331e7b80a6349406
src/functions.py
src/functions.py
def getTableColumnLabel(c): label = '' while True: label += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[c % 26] if c <= 26: break c = int(c/26) return label def parseTableColumnLabel(label): ret = 0 for c in map(ord, reversed(label)): if 0x41 <= c <= 0x5A: ret = ret*26 + (c-0x41) else: ...
def getTableColumnLabel(c): label = '' while True: label = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[c % 26] + label if c < 26: break c = c//26-1 return label def parseTableColumnLabel(label): if not label: raise ValueError('Invalid label: %s' % label) ret = -1 for c in map(ord, label): if 0x4...
Fix (parse|generate) table header label function
Fix (parse|generate) table header label function
Python
mit
takumak/tuna,takumak/tuna
python
## Code Before: def getTableColumnLabel(c): label = '' while True: label += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[c % 26] if c <= 26: break c = int(c/26) return label def parseTableColumnLabel(label): ret = 0 for c in map(ord, reversed(label)): if 0x41 <= c <= 0x5A: ret = ret*26 + (c-0x41)...
def getTableColumnLabel(c): label = '' while True: - label += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[c % 26] ? - + label = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[c % 26] + label ? ++++++++ - if c <= 26: ? - + if c < 26: break - c =...
14
0.823529
8
6
c24ef1cd65f2d0843172111d13a8f5a830d721ac
application/controllers/newpostcont.php
application/controllers/newpostcont.php
<?php class newpostcont extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->library('session'); $this->load->helper('url'); $this->load->model('newpostmodel'); } public function index(){ $this->write(); } public function write(){ $this->load->helper('form...
<?php class newpostcont extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->library('session'); $this->load->helper('url'); } public function index(){ $this->write(); } public function write(){ $this->load->helper('form'); $this->load->library('form_val...
Load the model only when necessary
Load the model only when necessary
PHP
mit
icyflame/create-together,icyflame/create-together,icyflame/create-together
php
## Code Before: <?php class newpostcont extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->library('session'); $this->load->helper('url'); $this->load->model('newpostmodel'); } public function index(){ $this->write(); } public function write(){ $this->lo...
<?php class newpostcont extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->library('session'); $this->load->helper('url'); - $this->load->model('newpostmodel'); + } public function index(){ $this->write(); } public ...
4
0.105263
2
2
28b68d6220456eacdf837e81bd470939e1d5480c
.travis.yml
.travis.yml
language: go go: - 1.6.1 install: - mkdir ${GOPATH}/src/github.com/freewil - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - wget https://bitcoin.org/bin/bitcoin-core-0.11.2/bitco...
language: go go: - 1.6.1 install: - mkdir ${GOPATH}/src/github.com/freewil - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - wget https://bitcoin.org/bin/bitcoin-core-0.12.1/bitco...
Use a newer version of bitcoin.
Use a newer version of bitcoin.
YAML
mit
AutoRoute/node,AutoRoute/node
yaml
## Code Before: language: go go: - 1.6.1 install: - mkdir ${GOPATH}/src/github.com/freewil - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - wget https://bitcoin.org/bin/bitcoin-c...
language: go go: - 1.6.1 install: - mkdir ${GOPATH}/src/github.com/freewil - mkdir ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - git clone https://github.com/freewil/bitcoin-testnet-box.git ${GOPATH}/src/github.com/freewil/bitcoin-testnet-box - - wget https://bitcoin.org/bin/bitco...
6
0.333333
3
3
7bfc05b48658ee6c6b20327ac43de9e3d75f93eb
libs/daux.io/docs/config.json
libs/daux.io/docs/config.json
{ "title": "Pulsar Documentation", "tagline": "Beautiful user interfaces, Stellar user experiences.", "clean_urls": false, "docs_path": "../../docs", "image": "img/app.png", "theme": "navy", "date_modified": true, "float": false, "ignore": { "files": ["index.php"], "folders": ["images"] } }
{ "title": "Pulsar Documentation", "tagline": "Beautiful user interfaces, Stellar user experiences.", "clean_urls": false, "docs_path": "../../docs", "image": "img/app.png", "theme": "navy", "timezone": "Europe/London", "date_modified": true, "float": false, "ignore": { "files": ["index.php"], "folders": ...
Add timezone to documentation runner
Add timezone to documentation runner This should prevent the warning message on the hosted versoin
JSON
mit
jadu/pulsar,jadu/pulsar,jadu/pulsar
json
## Code Before: { "title": "Pulsar Documentation", "tagline": "Beautiful user interfaces, Stellar user experiences.", "clean_urls": false, "docs_path": "../../docs", "image": "img/app.png", "theme": "navy", "date_modified": true, "float": false, "ignore": { "files": ["index.php"], "folders": ["images"] } ...
{ "title": "Pulsar Documentation", "tagline": "Beautiful user interfaces, Stellar user experiences.", "clean_urls": false, "docs_path": "../../docs", "image": "img/app.png", "theme": "navy", + "timezone": "Europe/London", "date_modified": true, "float": false, "ignore": { "files": ["in...
1
0.071429
1
0
3bee1c7d09464ef109305ce7c8c12fed613105a4
client/app/templates/components/f-checkout.hbs
client/app/templates/components/f-checkout.hbs
<form class="f-default f-checkout"> <h2 class="f-default__title">Оформление заказа</h2> <div class="f-checkout__order-info"> {{pr-order order=model.order}} </div> <div class="f-default__row"> <div class="portion-list"> {{#each model.portions as |portion|}} <div class="portion-list__item">...
<form class="f-default f-checkout"> <h2 class="f-default__title">Оформление заказа</h2> <div class="f-checkout__order-info"> {{pr-order order=model.order}} </div> <div class="f-default__row"> <div class="portion-list"> {{#each model.portions as |portion|}} <div class="portion-list__item...
Fix indentation in checkout form template
Fix indentation in checkout form template Closes #89.
Handlebars
mit
yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time
handlebars
## Code Before: <form class="f-default f-checkout"> <h2 class="f-default__title">Оформление заказа</h2> <div class="f-checkout__order-info"> {{pr-order order=model.order}} </div> <div class="f-default__row"> <div class="portion-list"> {{#each model.portions as |portion|}} <div class="port...
<form class="f-default f-checkout"> <h2 class="f-default__title">Оформление заказа</h2> <div class="f-checkout__order-info"> {{pr-order order=model.order}} </div> <div class="f-default__row"> <div class="portion-list"> {{#each model.portions as |portion|}} - <div cla...
43
1.131579
22
21
5b96c5c248d6dd2b7b4168c0f8e9990ba316f9f1
src/server/migrations/1580263521268-CreateUserTable.ts
src/server/migrations/1580263521268-CreateUserTable.ts
import {MigrationInterface, QueryRunner} from "typeorm"; export class CreateUserTable1580263521268 implements MigrationInterface { readonly name = 'CreateUserTable1580263521268' public async up(queryRunner: QueryRunner): Promise<any> { await queryRunner.query(`CREATE TABLE "user" ("id" SERIAL NOT NULL...
import {MigrationInterface, QueryRunner} from "typeorm"; export class CreateUserTable1580263521268 implements MigrationInterface { readonly name = 'CreateUserTable1580263521268' public async up(queryRunner: QueryRunner): Promise<any> { await queryRunner.query(`CREATE TABLE "user" ("id" uuid NOT NULL D...
Switch migration to use uuid for id column
Switch migration to use uuid for id column
TypeScript
apache-2.0
PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder
typescript
## Code Before: import {MigrationInterface, QueryRunner} from "typeorm"; export class CreateUserTable1580263521268 implements MigrationInterface { readonly name = 'CreateUserTable1580263521268' public async up(queryRunner: QueryRunner): Promise<any> { await queryRunner.query(`CREATE TABLE "user" ("id"...
import {MigrationInterface, QueryRunner} from "typeorm"; export class CreateUserTable1580263521268 implements MigrationInterface { readonly name = 'CreateUserTable1580263521268' public async up(queryRunner: QueryRunner): Promise<any> { - await queryRunner.query(`CREATE TABLE "user" ("id" S...
2
0.142857
1
1
6324a642dae43cd087919ed0d1583d9a432871d8
S02-magicals/pid.t
S02-magicals/pid.t
use v6; use Test; use lib 't/spec/packages'; use Test::Util; =begin description Test that C< $*PID > in this process is different from C< $*PID > in the child process. L<A05/"RFC 332: Regex: Make /\$/ equivalent to /\z/ under the '/s' modifier" /The current process id is now C<\$\*PID>/> =end description plan 1; i...
use v6; use Test; use lib 't/spec/packages'; use Test::Util; =begin description Test that C< $*PID > in this process is different from C< $*PID > in the child process. L<A05/"RFC 332: Regex: Make /\$/ equivalent to /\z/ under the '/s' modifier" /The current process id is now C<\$\*PID>/> =end description plan 2; i...
Add test for immutability of $*PID
Add test for immutability of $*PID
Perl
artistic-2.0
dogbert17/roast,skids/roast,bitrauser/roast,b2gills/roast,perl6/roast,bitrauser/roast,skids/roast,zostay/roast,dankogai/roast,cygx/roast,niner/roast,skids/roast,laben/roast,dankogai/roast,zostay/roast,niner/roast,zostay/roast,cygx/roast,dogbert17/roast,b2gills/roast,niner/roast,laben/roast,b2gills/roast,laben/roast,dan...
perl
## Code Before: use v6; use Test; use lib 't/spec/packages'; use Test::Util; =begin description Test that C< $*PID > in this process is different from C< $*PID > in the child process. L<A05/"RFC 332: Regex: Make /\$/ equivalent to /\z/ under the '/s' modifier" /The current process id is now C<\$\*PID>/> =end descrip...
use v6; use Test; use lib 't/spec/packages'; use Test::Util; =begin description Test that C< $*PID > in this process is different from C< $*PID > in the child process. L<A05/"RFC 332: Regex: Make /\$/ equivalent to /\z/ under the '/s' modifier" /The current process id is now C<\$\*PID>/> =end...
4
0.173913
3
1
14bd2c0732b5871ac43991a237a8f12a334e982d
sirius/LI_V00/__init__.py
sirius/LI_V00/__init__.py
from . import lattice as _lattice from . import accelerator as _accelerator from . import record_names create_accelerator = accelerator.create_accelerator # -- default accelerator values for LI_V00 -- energy = _lattice._energy single_bunch_charge = _lattice._single_bunch_charge multi_bunch_charge = _lattice...
from . import lattice as _lattice from . import accelerator as _accelerator from . import record_names create_accelerator = accelerator.create_accelerator # -- default accelerator values for LI_V00 -- energy = _lattice._energy single_bunch_charge = _lattice._single_bunch_charge multi_bunch_charge = _lattice...
Add parameters of initial beam distribution at LI
Add parameters of initial beam distribution at LI
Python
mit
lnls-fac/sirius
python
## Code Before: from . import lattice as _lattice from . import accelerator as _accelerator from . import record_names create_accelerator = accelerator.create_accelerator # -- default accelerator values for LI_V00 -- energy = _lattice._energy single_bunch_charge = _lattice._single_bunch_charge multi_bunch_charge...
from . import lattice as _lattice from . import accelerator as _accelerator from . import record_names create_accelerator = accelerator.create_accelerator # -- default accelerator values for LI_V00 -- energy = _lattice._energy single_bunch_charge = _lattice._single_bunch_charge multi_bunch_...
3
0.1875
2
1
10bb10a3bb1ec57e1688466f3e1e1afa19ff7504
composer.json
composer.json
{ "name": "propa/tcpdi", "type": "library", "description": "TCPDI is a PHP class for importing PDF to use with TCPDF", "keywords": ["PDF", "tcpdi", "tcpdi_parser", "tcpdf"], "license": "Apache-2.0", "authors": [ { "name": "Nicola Asuni", "email": "info@tecnick.com", "homepage": "http://nicolaasuni.tecnick....
{ "name": "propa/tcpdi", "type": "library", "description": "TCPDI is a PHP class for importing PDF to use with TCPDF", "keywords": ["PDF", "tcpdi", "tcpdi_parser", "tcpdf"], "license": "Apache-2.0", "authors": [ { "name": "Nicola Asuni", "email": "info@tecnick.com", "homepage": "http://nicolaasuni.tecnick....
Set fixed tcpdf major version
Set fixed tcpdf major version
JSON
apache-2.0
kulbakin/tcpdi
json
## Code Before: { "name": "propa/tcpdi", "type": "library", "description": "TCPDI is a PHP class for importing PDF to use with TCPDF", "keywords": ["PDF", "tcpdi", "tcpdi_parser", "tcpdf"], "license": "Apache-2.0", "authors": [ { "name": "Nicola Asuni", "email": "info@tecnick.com", "homepage": "http://nico...
{ "name": "propa/tcpdi", "type": "library", "description": "TCPDI is a PHP class for importing PDF to use with TCPDF", "keywords": ["PDF", "tcpdi", "tcpdi_parser", "tcpdf"], "license": "Apache-2.0", "authors": [ { "name": "Nicola Asuni", "email": "info@tecnick.com", "homepage": "http:...
2
0.08
1
1
d7d61f7f8304e02ff49822bcb6b3bcf417c1fa20
docs/Wallets/Core-Wallet.md
docs/Wallets/Core-Wallet.md
!!!caution "Note" The Vertcoin Core Wallet requires at least 2 GB of space on your computer to store the block chain. ### Windows To install the Vertcoin Code wallet in Windows, navigate to the Vertcoin Core repository [Releases Page](https://github.com/vertcoin/vertcoin/releases) on GitHub and download the Wind...
!!!caution "Note" The Vertcoin Core Wallet requires at least 2 GB of space on your computer to store the block chain. ### Windows To install the Vertcoin Code wallet in Windows, navigate to the Vertcoin Core repository [Releases Page](https://github.com/vertcoin/vertcoin/releases) on GitHub and download t...
Add Linux Core wallet install instructions
Add Linux Core wallet install instructions
Markdown
mit
Bryangoodson/VertDocs,Bryangoodson/VertDocs,Bryangoodson/VertDocs,Bryangoodson/VertDocs
markdown
## Code Before: !!!caution "Note" The Vertcoin Core Wallet requires at least 2 GB of space on your computer to store the block chain. ### Windows To install the Vertcoin Code wallet in Windows, navigate to the Vertcoin Core repository [Releases Page](https://github.com/vertcoin/vertcoin/releases) on GitHub and d...
!!!caution "Note" - The Vertcoin Core Wallet requires at least 2 GB of space on your computer to store the block chain. ? ----------------------- + The Vertcoin Core Wallet requires at least 2 GB of space on your computer to...
54
1.8
50
4
0ce833d662d1a315ec87a7cf1fdacf95bd011d69
src/main/scala/eu/timepit/refined/generic.scala
src/main/scala/eu/timepit/refined/generic.scala
package eu.timepit.refined import eu.timepit.refined.boolean.Not import shapeless.Witness object generic { /** Predicate that checks if a value is equal to `U`. */ trait Equal[U] /** Predicate that checks if a value is `null`. */ trait IsNull /** Predicate that checks if a value is not `null`. */ type N...
package eu.timepit.refined import eu.timepit.refined.boolean.Not import eu.timepit.refined.internal.WeakWitness object generic { /** Predicate that checks if a value is equal to `U`. */ trait Equal[U] /** Predicate that checks if a value is `null`. */ trait IsNull /** Predicate that checks if a value is n...
Change Equal to use WeakWitness
Change Equal to use WeakWitness
Scala
mit
sh0hei/refined,fthomas/refined
scala
## Code Before: package eu.timepit.refined import eu.timepit.refined.boolean.Not import shapeless.Witness object generic { /** Predicate that checks if a value is equal to `U`. */ trait Equal[U] /** Predicate that checks if a value is `null`. */ trait IsNull /** Predicate that checks if a value is not `nu...
package eu.timepit.refined import eu.timepit.refined.boolean.Not - import shapeless.Witness + import eu.timepit.refined.internal.WeakWitness object generic { /** Predicate that checks if a value is equal to `U`. */ trait Equal[U] /** Predicate that checks if a value is `null`. */ trait Is...
4
0.190476
2
2
0cbe16beff5fc3070972d33609d5fe5c47189ece
lib/amf_socket/policy_connection.rb
lib/amf_socket/policy_connection.rb
class AmfSocket::PolicyConnection < EM::Connection def post_init policy = <<-eos <?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"> <allow-access-...
class AmfSocket::PolicyConnection < EM::Connection def post_init policy = <<-eos <?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"> <allow-access-...
Work around client side policy violations.
Work around client side policy violations.
Ruby
mit
chadrem/amf_socket_ruby
ruby
## Code Before: class AmfSocket::PolicyConnection < EM::Connection def post_init policy = <<-eos <?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"> ...
class AmfSocket::PolicyConnection < EM::Connection def post_init policy = <<-eos <?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"> <a...
6
0.375
4
2
e5166df5f1d2b4ce11b52b601a19b7b036df562e
app/views/scroll/figure_components/_figure_component.html.erb
app/views/scroll/figure_components/_figure_component.html.erb
<figure id="<%= dom_id(component) %>" class="FigureComponent <%= component.renderable.style %>" data-selectable="Selected" style="<%= "width: #{figure_component.width}px;" if figure_component.width.present? && !figure_component.width.zero? %>" data-commands="#<%= dom_id(component) %>_com...
<figure id="<%= dom_id(component) %>" class="FigureComponent <%= component.renderable.style %>" data-selectable="Selected" data-commands="#<%= dom_id(component) %>_commands" data-reload="<%= scroll.component_path(component) %>"> <% if figure_component.width.present? && !figure_compone...
Set image width instead of wrapper
Set image width instead of wrapper
HTML+ERB
mit
robinclart/scroll,robinclart/scroll
html+erb
## Code Before: <figure id="<%= dom_id(component) %>" class="FigureComponent <%= component.renderable.style %>" data-selectable="Selected" style="<%= "width: #{figure_component.width}px;" if figure_component.width.present? && !figure_component.width.zero? %>" data-commands="#<%= dom_id(c...
<figure id="<%= dom_id(component) %>" class="FigureComponent <%= component.renderable.style %>" data-selectable="Selected" - style="<%= "width: #{figure_component.width}px;" if figure_component.width.present? && !figure_component.width.zero? %>" data-commands="#<%= dom_id(compone...
11
0.458333
8
3
2969cd33bade3aa180e8bb23abdf86e3126d7d88
_data/conference/venue.yml
_data/conference/venue.yml
location: The Port Workspaces website: "http://portworkspaces.com" address: Kaiser Mall neighborhood: Lake Merritt city: Oakland state: CA tickets: "http://www.eventbrite.com/tickets-external?eid=18063889580&ref=etckt" start: 2015-10-16T18:00-07:00 end: 2015-10-18T18:00-07:00
location: The Port Workspaces website: "http://portworkspaces.com" address: Kaiser Mall neighborhood: Lake Merritt city: Oakland state: CA
Move start/end dates into the schedule file and ticket info into the tickets file.
Move start/end dates into the schedule file and ticket info into the tickets file.
YAML
apache-2.0
oaklandfinishup/oaklandfinishup.github.io,oaklandfinishup/oaklandfinishup.github.io
yaml
## Code Before: location: The Port Workspaces website: "http://portworkspaces.com" address: Kaiser Mall neighborhood: Lake Merritt city: Oakland state: CA tickets: "http://www.eventbrite.com/tickets-external?eid=18063889580&ref=etckt" start: 2015-10-16T18:00-07:00 end: 2015-10-18T18:00-07:00 ## Instruction: Move start...
location: The Port Workspaces website: "http://portworkspaces.com" address: Kaiser Mall neighborhood: Lake Merritt city: Oakland state: CA - tickets: "http://www.eventbrite.com/tickets-external?eid=18063889580&ref=etckt" - start: 2015-10-16T18:00-07:00 - end: 2015-10-18T18:00-07:00
3
0.333333
0
3
4f375374237f6433e04b7401666d02300beab00f
deployment_scripts/puppet/modules/lma_logging_analytics/spec/classes/lma_logging_analytics_kibana_spec.rb
deployment_scripts/puppet/modules/lma_logging_analytics/spec/classes/lma_logging_analytics_kibana_spec.rb
require 'spec_helper' describe 'lma_logging_analytics::kibana' do let(:facts) do {:kernel => 'Linux', :operatingsystem => 'Ubuntu', :concat_basedir => '/foo'} end it { should compile } end
require 'spec_helper' describe 'lma_logging_analytics::kibana' do let(:facts) do {:kernel => 'Linux', :operatingsystem => 'Ubuntu', :concat_basedir => '/foo'} end it { should create_file('/opt/kibana')} it { should create_file('/opt/kibana/config.js')} it { should create_file('/op...
Update Puppet tests for Kibana class
Update Puppet tests for Kibana class The 'should compile' directive is too dependant of local environment, and failed with Facter option conflicts, let's replace it by more specific tests. Change-Id: I01156525c10f71e9b9f66481d15db2181ef99730
Ruby
apache-2.0
stackforge/fuel-plugin-elasticsearch-kibana,stackforge/fuel-plugin-elasticsearch-kibana,stackforge/fuel-plugin-elasticsearch-kibana
ruby
## Code Before: require 'spec_helper' describe 'lma_logging_analytics::kibana' do let(:facts) do {:kernel => 'Linux', :operatingsystem => 'Ubuntu', :concat_basedir => '/foo'} end it { should compile } end ## Instruction: Update Puppet tests for Kibana class The 'should compile' directiv...
require 'spec_helper' describe 'lma_logging_analytics::kibana' do let(:facts) do {:kernel => 'Linux', :operatingsystem => 'Ubuntu', :concat_basedir => '/foo'} end - it { should compile } + it { should create_file('/opt/kibana')} + it { should create_file('/opt/kiba...
9
0.9
8
1
b635a774d98590b31a94a8e6c072911099ce0b2e
spec/metric_fu/reporter_spec.rb
spec/metric_fu/reporter_spec.rb
require "spec_helper" describe MetricFu::Reporter do context 'given a single formatter' do before do @formatter = double('formatter') @reporter = Reporter.new(@formatter) end it 'notifies the formatter' do @formatter.should_receive(:start) @formatter.should_receive(:finish) ...
require "spec_helper" describe MetricFu::Reporter do context 'given a single formatter' do before do @formatter = double('formatter') @formatter.stub(:to_a).and_return([@formatter]) @reporter = Reporter.new(@formatter) end it 'notifies the formatter' do @formatter.should_receive...
Fix problem with rspec double on ruby192.
Fix problem with rspec double on ruby192.
Ruby
mit
metricfu/metric_fu,metricfu/metric_fu,metricfu/metric_fu
ruby
## Code Before: require "spec_helper" describe MetricFu::Reporter do context 'given a single formatter' do before do @formatter = double('formatter') @reporter = Reporter.new(@formatter) end it 'notifies the formatter' do @formatter.should_receive(:start) @formatter.should_recei...
require "spec_helper" describe MetricFu::Reporter do context 'given a single formatter' do before do @formatter = double('formatter') + @formatter.stub(:to_a).and_return([@formatter]) @reporter = Reporter.new(@formatter) end it 'notifies the formatter' do ...
1
0.025
1
0
07999d1f24acbbfde50fe94897054e7c8df7fea1
api/jsonstore.py
api/jsonstore.py
import json import os import tempfile def store(data, directory="/var/www/luke/wikipedia/graphs/"): try: json.loads(data) except ValueError: return "not-json" tf = tempfile.mkstemp(prefix="", dir=directory)[1] with open(tf, "w") as f: f.write(data) return tf if __name__ ...
import json import os import tempfile def store(data, directory="/var/www/luke/wikipedia/graphs/"): try: json.loads(data) except ValueError: return "not-json" tf = tempfile.mkstemp(prefix="", dir=directory)[1] with open(tf, "w") as f: f.write(data) return os.path.split(tf...
Tweak JSON api return value to be friendlier
Tweak JSON api return value to be friendlier
Python
mit
controversial/wikipedia-map,controversial/wikipedia-map,controversial/wikipedia-map
python
## Code Before: import json import os import tempfile def store(data, directory="/var/www/luke/wikipedia/graphs/"): try: json.loads(data) except ValueError: return "not-json" tf = tempfile.mkstemp(prefix="", dir=directory)[1] with open(tf, "w") as f: f.write(data) return ...
import json import os import tempfile def store(data, directory="/var/www/luke/wikipedia/graphs/"): try: json.loads(data) except ValueError: return "not-json" tf = tempfile.mkstemp(prefix="", dir=directory)[1] with open(tf, "w") as f: f.write(dat...
2
0.105263
1
1
04a45b0340a401bd251afce412ded04665d1ba2f
time_guarded_run.rb
time_guarded_run.rb
time = Time.new puts "time_guarded_run called at #{time}" weekday_only = (ENV['KB_WEEKDAY_ONLY'] || 'true') == 'true' start_hour = (ENV['KB_START_HOUR'] || 8).to_i end_hour = (ENV['KB_END_HOUR'] || 17).to_i max_tweets = (ENV['KB_MAX_TWEETS'] || 3).to_i max_tweets_first_hour = (ENV['KB_MAX_TWEETS_FIRST_HOUR'] || 8).to...
time = Time.new puts "time_guarded_run called at #{time}" weekday_only = (ENV['KB_WEEKDAY_ONLY'] || 'true') == 'true' start_hour = (ENV['KB_START_HOUR'] || 8).to_i end_hour = (ENV['KB_END_HOUR'] || 17).to_i max_tweets = (ENV['KB_MAX_TWEETS'] || 3).to_i max_tweets_first_hour = (ENV['KB_MAX_TWEETS_FIRST_HOUR'] || 8).to...
Allow for a larger number of tweets in the first hour
Allow for a larger number of tweets in the first hour
Ruby
apache-2.0
ktchernov/twitter-list-to-slack
ruby
## Code Before: time = Time.new puts "time_guarded_run called at #{time}" weekday_only = (ENV['KB_WEEKDAY_ONLY'] || 'true') == 'true' start_hour = (ENV['KB_START_HOUR'] || 8).to_i end_hour = (ENV['KB_END_HOUR'] || 17).to_i max_tweets = (ENV['KB_MAX_TWEETS'] || 3).to_i max_tweets_first_hour = (ENV['KB_MAX_TWEETS_FIRST...
time = Time.new puts "time_guarded_run called at #{time}" weekday_only = (ENV['KB_WEEKDAY_ONLY'] || 'true') == 'true' start_hour = (ENV['KB_START_HOUR'] || 8).to_i end_hour = (ENV['KB_END_HOUR'] || 17).to_i max_tweets = (ENV['KB_MAX_TWEETS'] || 3).to_i max_tweets_first_hour = (ENV['KB_MAX_TWEETS_FIR...
4
0.2
4
0
f15a3047d333918d227f0dabcfebd8015669dc4a
README.md
README.md
Turnkey script to install ROOT from the current source pulled down from git
Turnkey script to install ROOT from the current source pulled down from git # Use Letting your Unix shell (whatever is printed from `echo $SHELL | sed 's:.*/::'`) be called `shell` ## To install: ~~~bash shell installROOTsource.sh ~~~ or ~~~bash shell installROOTsource.sh install ~~~ ## To update: ~~~bash shell instal...
Add use instructions with command line flags
Add use instructions with command line flags
Markdown
mit
matthewfeickert/installROOTsource
markdown
## Code Before: Turnkey script to install ROOT from the current source pulled down from git ## Instruction: Add use instructions with command line flags ## Code After: Turnkey script to install ROOT from the current source pulled down from git # Use Letting your Unix shell (whatever is printed from `echo $SHELL | se...
Turnkey script to install ROOT from the current source pulled down from git + + # Use + Letting your Unix shell (whatever is printed from `echo $SHELL | sed 's:.*/::'`) be called `shell` + ## To install: + ~~~bash + shell installROOTsource.sh + ~~~ + or + ~~~bash + shell installROOTsource.sh install + ~~~ + ## To up...
19
19
19
0
972e7781ea75788872abe46ff390d24bfafb6f07
docker-compose.yml
docker-compose.yml
version: '3' services: nginx: image: nginx:alpine ports: - "127.0.0.1:${INTERNAL_NGINX_PORT}:8080" restart: always links: - phpsv - translate depends_on: - phpsv volumes: - ./config/nginx-site.conf:/etc/nginx/conf.d/default.conf - ./src/subtitulamos/public:...
version: "3" services: nginx: image: nginx:alpine ports: - "127.0.0.1:${INTERNAL_NGINX_PORT}:8080" restart: always links: - phpsv - translate depends_on: - phpsv volumes: - ./config/nginx-site.conf:/etc/nginx/conf.d/default.conf - ./src/subtitulamos/public:...
Add restrictions to Docker log filesizes
Add restrictions to Docker log filesizes
YAML
agpl-3.0
subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos,subtitulamos/subtitulamos
yaml
## Code Before: version: '3' services: nginx: image: nginx:alpine ports: - "127.0.0.1:${INTERNAL_NGINX_PORT}:8080" restart: always links: - phpsv - translate depends_on: - phpsv volumes: - ./config/nginx-site.conf:/etc/nginx/conf.d/default.conf - ./src/subt...
- version: '3' ? ^ ^ + version: "3" ? ^ ^ services: nginx: image: nginx:alpine ports: - "127.0.0.1:${INTERNAL_NGINX_PORT}:8080" restart: always links: - phpsv - translate depends_on: - phpsv volumes: - ./config/ngin...
14
0.264151
13
1
ca4c1ed33e6169a6f5462fe781e76bf58203d327
scripts/build.js
scripts/build.js
const glob = require(`glob`); const buildArticleHtml = require(`./build/article-html.js`); const buildBaseCss = require(`./build/base-css.js`); const buildBaseHtml = require(`./build/base-html.js`); const extractArticleData = require(`./lib/extract-article-data.js`); const articleFiles = glob.sync(`resources/articles...
const glob = require(`glob`); const buildArticleHtml = require(`./build/article-html.js`); const buildBaseCss = require(`./build/base-css.js`); const buildBaseHtml = require(`./build/base-html.js`); const extractArticleData = require(`./lib/extract-article-data.js`); const articleFiles = glob.sync(`resources/articles...
Use Object.assign to dereference object.
Use Object.assign to dereference object.
JavaScript
mit
maoberlehner/markus-oberlehner-net,maoberlehner/markus-oberlehner-net
javascript
## Code Before: const glob = require(`glob`); const buildArticleHtml = require(`./build/article-html.js`); const buildBaseCss = require(`./build/base-css.js`); const buildBaseHtml = require(`./build/base-html.js`); const extractArticleData = require(`./lib/extract-article-data.js`); const articleFiles = glob.sync(`re...
const glob = require(`glob`); const buildArticleHtml = require(`./build/article-html.js`); const buildBaseCss = require(`./build/base-css.js`); const buildBaseHtml = require(`./build/base-html.js`); const extractArticleData = require(`./lib/extract-article-data.js`); const articleFiles = glob.sync(`re...
7
0.291667
3
4
d5b63e0b784928696c6bb9e77776e93200272818
protractor.conf.js
protractor.conf.js
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/docs/referenceConf.js /*global jasmine */ var SpecReporter = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**/*.e2e-spec.ts' ], capabilities...
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/docs/referenceConf.js /*global jasmine */ var SpecReporter = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, getPageTimeout: 60000, specs: [ './e2e/**/*.e2e-spe...
Set getPageTimeout to 60 seconds
Set getPageTimeout to 60 seconds
JavaScript
mit
kendaleiv/angular-testing,kendaleiv/angular2-testing,kendaleiv/angular2-testing,kendaleiv/angular-testing,kendaleiv/angular-testing,kendaleiv/angular2-testing
javascript
## Code Before: // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/docs/referenceConf.js /*global jasmine */ var SpecReporter = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**/*.e2e-spec.ts' ]...
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/docs/referenceConf.js /*global jasmine */ var SpecReporter = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, + getPageTimeout: 60000, specs: [ ...
1
0.03125
1
0
fb3fbe1df40744ac42dfb79ad6117dce48322fc7
tools/run-test.js
tools/run-test.js
const path = require("path"); const rootDir = path.normalize(path.join(__dirname, "..")); const tester = path.join(rootDir, "node_modules", "vscode", "bin", "test"); const cp = require("child_process"); let tests = process.argv.slice(2); let failed = 0; tests.forEach((test) => { let [ testName, wsName ] = test.spl...
const path = require("path"); const rootDir = path.normalize(path.join(__dirname, "..")); const tester = path.join(rootDir, "node_modules", "vscode", "bin", "test"); const cp = require("child_process"); let tests = process.argv.slice(2); let failed = 0; tests.forEach((test) => { let [ testName, wsName ] = test.spl...
Fix env for test runner
Fix env for test runner
JavaScript
mit
kimushu/rubic-vscode,kimushu/rubic-vscode,kimushu/rubic-vscode,kimushu/rubic-vscode
javascript
## Code Before: const path = require("path"); const rootDir = path.normalize(path.join(__dirname, "..")); const tester = path.join(rootDir, "node_modules", "vscode", "bin", "test"); const cp = require("child_process"); let tests = process.argv.slice(2); let failed = 0; tests.forEach((test) => { let [ testName, wsN...
const path = require("path"); const rootDir = path.normalize(path.join(__dirname, "..")); const tester = path.join(rootDir, "node_modules", "vscode", "bin", "test"); const cp = require("child_process"); let tests = process.argv.slice(2); let failed = 0; tests.forEach((test) => { let [ testName, w...
11
0.268293
3
8
39644fb737894d6f310f300dd9f984704051e9fe
README.md
README.md
react-backbone-data =================== React.addons.update is an awesome tool for updating objects in an immutable way. I wanted to build in immutability to Backbone Models so that shouldComponentUpdate can be fast. Todo ---- - Add collection support
react-backbone-data =================== React.addons.update is an awesome tool for updating objects in an immutable way. I wanted to build in immutability to Backbone Models so that shouldComponentUpdate can be fast. Example ------- Models ```javascript var Article = ReactBackboneData.Model.extend({ defaults: {...
Add an example to the Readme
Add an example to the Readme
Markdown
mit
sdemjanenko/react-backbone-data
markdown
## Code Before: react-backbone-data =================== React.addons.update is an awesome tool for updating objects in an immutable way. I wanted to build in immutability to Backbone Models so that shouldComponentUpdate can be fast. Todo ---- - Add collection support ## Instruction: Add an example to the Readme #...
react-backbone-data =================== React.addons.update is an awesome tool for updating objects in an immutable way. I wanted to build in immutability to Backbone Models so that shouldComponentUpdate can be fast. + Example + ------- + + Models + + ```javascript + var Article = ReactBackboneD...
53
4.416667
53
0
f1389b702666d0e47124c09443cb3d5db9d48a4f
scalafmt-tests/src/test/scala/org/scalafmt/cli/FileTestOps.scala
scalafmt-tests/src/test/scala/org/scalafmt/cli/FileTestOps.scala
package org.scalafmt.cli import java.io.File import org.scalafmt.util.AbsoluteFile import org.scalafmt.util.FileOps object FileTestOps { /** * The inverse of [[dir2string]]. Given a string representation creates the * necessary files/directories with respective file contents. */ def string2dir(layou...
package org.scalafmt.cli import java.io.File import java.nio.file.Files import org.scalafmt.util.AbsoluteFile import org.scalafmt.util.FileOps object FileTestOps { /** * The inverse of [[dir2string]]. Given a string representation creates the * necessary files/directories with respective file contents. ...
Fix minor inefficiency in test infrastructure
Fix minor inefficiency in test infrastructure
Scala
apache-2.0
scalameta/scalafmt,scalameta/scalafmt,olafurpg/scalafmt,scalameta/scalafmt,olafurpg/scalafmt,scalameta/scalafmt,olafurpg/scalafmt,olafurpg/scalafmt
scala
## Code Before: package org.scalafmt.cli import java.io.File import org.scalafmt.util.AbsoluteFile import org.scalafmt.util.FileOps object FileTestOps { /** * The inverse of [[dir2string]]. Given a string representation creates the * necessary files/directories with respective file contents. */ def ...
package org.scalafmt.cli import java.io.File + import java.nio.file.Files import org.scalafmt.util.AbsoluteFile import org.scalafmt.util.FileOps object FileTestOps { /** * The inverse of [[dir2string]]. Given a string representation creates the * necessary files/directories with re...
5
0.1
2
3
d0e31a409fc39ed827e380c1a9626d9639b376c1
ForensicDemoServer/package.json
ForensicDemoServer/package.json
{ "name": "ForensicDemoServer", "version": "1.0.0", "description": "Demo server for Forensic 2.0", "main": "server.js", "dependencies": { "express": "^4.10.6", "passport": "^0.2.1" }, "devDependencies": { "express": "^4.10.7", "http-auth": "^2.2.5", "passport": "^0.2.1", "passport-...
{ "name": "ForensicDemoServer", "version": "1.0.0", "description": "Demo server for Forensic 2.0", "main": "server.js", "dependencies": { "express": "^4.10.6", "passport": "^0.2.1" }, "devDependencies": { "express": "^4.10.7", "http-auth": "^2.2.5" }, "scripts": { "test": "echo \"E...
Remove uneccesary dependencies in demo server
Remove uneccesary dependencies in demo server
JSON
apache-2.0
TeamHG-Memex/Datawake,Sotera/Datawake-Legacy,Sotera/Datawake-Legacy,TeamHG-Memex/Datawake,TeamHG-Memex/Datawake,Sotera/Datawake-Legacy,Sotera/Datawake-Legacy,Sotera/Datawake-Legacy
json
## Code Before: { "name": "ForensicDemoServer", "version": "1.0.0", "description": "Demo server for Forensic 2.0", "main": "server.js", "dependencies": { "express": "^4.10.6", "passport": "^0.2.1" }, "devDependencies": { "express": "^4.10.7", "http-auth": "^2.2.5", "passport": "^0.2.1"...
{ "name": "ForensicDemoServer", "version": "1.0.0", "description": "Demo server for Forensic 2.0", "main": "server.js", "dependencies": { "express": "^4.10.6", "passport": "^0.2.1" }, "devDependencies": { "express": "^4.10.7", - "http-auth": "^2.2.5", ? ...
4
0.190476
1
3
e6ff1de8260bb2fad672eed49524b9f9e5ef3b54
src/apps/omis/apps/edit/controllers/edit-lead-assignee.js
src/apps/omis/apps/edit/controllers/edit-lead-assignee.js
const { find, get } = require('lodash') const { Order } = require('../../../models') async function editLeadAssignee (req, res, next) { const adviserId = req.body.adviserId const orderId = req.body.orderId const returnUrl = req.body.returnUrl || req.header('Referer') if (!adviserId || !orderId) { return ...
const { find, get } = require('lodash') const { Order } = require('../../../models') async function editLeadAssignee (req, res, next) { const adviserId = req.body.adviserId const orderId = req.body.orderId const returnUrl = req.body.returnUrl || req.header('Referer') if (!adviserId || !orderId) { return ...
Update lead adviser success message
Update lead adviser success message
JavaScript
mit
uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend
javascript
## Code Before: const { find, get } = require('lodash') const { Order } = require('../../../models') async function editLeadAssignee (req, res, next) { const adviserId = req.body.adviserId const orderId = req.body.orderId const returnUrl = req.body.returnUrl || req.header('Referer') if (!adviserId || !orderI...
const { find, get } = require('lodash') const { Order } = require('../../../models') async function editLeadAssignee (req, res, next) { const adviserId = req.body.adviserId const orderId = req.body.orderId const returnUrl = req.body.returnUrl || req.header('Referer') if (!adviserId || !or...
2
0.0625
1
1
468497c561a49d754616c775a6fb84f1e3fbaeab
src/modules/youtube.rb
src/modules/youtube.rb
require 'uri' require 'net/http' def fetch(uri_str, limit = 10) # You should choose better exception. raise ArgumentError, 'HTTP redirect too deep' if limit == 0 response = Net::HTTP.get_response(URI.parse(uri_str)) case response when Net::HTTPSuccess then response when Net::HTTPRedirection then fetch...
require 'uri' require 'net/http' Kernel.load('fetch_uri.rb') def parseYoutube(url) if URI.parse(url).host =~ /.*youtube\.com/ video = URI.parse(url).query.match(/v=([^ &]*)/)[0][2,15] api = "http://gdata.youtube.com/feeds/api/videos/" + video print api + "\n" reply = fetch_uri(api) return "" if...
Split fetching uris to own file
Split fetching uris to own file Signed-off-by: Aki Saarinen <278bc57fbbff6b7b38435aea0f9d37e3d879167e@akisaarinen.fi>
Ruby
mit
akisaarinen/lullizio,akisaarinen/lullizio
ruby
## Code Before: require 'uri' require 'net/http' def fetch(uri_str, limit = 10) # You should choose better exception. raise ArgumentError, 'HTTP redirect too deep' if limit == 0 response = Net::HTTP.get_response(URI.parse(uri_str)) case response when Net::HTTPSuccess then response when Net::HTTPRedire...
require 'uri' require 'net/http' + Kernel.load('fetch_uri.rb') - def fetch(uri_str, limit = 10) - # You should choose better exception. - raise ArgumentError, 'HTTP redirect too deep' if limit == 0 - - response = Net::HTTP.get_response(URI.parse(uri_str)) - case response - when Net::HTTPSuccess th...
15
0.365854
2
13
c13ec7b5002f7b90e353305eb52b76a63d3f3e32
src/main/java/fr/insee/pogues/webservice/rest/PoguesException.java
src/main/java/fr/insee/pogues/webservice/rest/PoguesException.java
package fr.insee.pogues.webservice.rest; /** * Created by acordier on 04/07/17. */ public class PoguesException extends Exception { private int status; private String details; /** * * @param status * @param message * @param details */ public PoguesException(int status, Stri...
package fr.insee.pogues.webservice.rest; import java.io.IOException; /** * Created by acordier on 04/07/17. */ public class PoguesException extends IOException { private int status; private String details; /** * * @param status * @param message * @param details */ public P...
Make pogues exception usable in authorization filter
Make pogues exception usable in authorization filter
Java
mit
InseeFr/Pogues-Back-Office,InseeFr/Pogues-Back-Office
java
## Code Before: package fr.insee.pogues.webservice.rest; /** * Created by acordier on 04/07/17. */ public class PoguesException extends Exception { private int status; private String details; /** * * @param status * @param message * @param details */ public PoguesException(...
package fr.insee.pogues.webservice.rest; + + import java.io.IOException; /** * Created by acordier on 04/07/17. */ - public class PoguesException extends Exception { + public class PoguesException extends IOException { ? ++ private int status; private S...
4
0.153846
3
1
7cb5401659acba985024eb10fd7b48ca6cd8faee
view/frontend/layout/default.xml
view/frontend/layout/default.xml
<?xml version="1.0"?> <!-- /** * NewRelic2 plugin for Magento * * @package Yireo_NewRelic2 * @author Yireo (https://www.yireo.com/) * @copyright Copyright 2015 Yireo (https://www.yireo.com/) * @license Simplified BSD License */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:no...
<?xml version="1.0"?> <!-- /** * NewRelic2 plugin for Magento * * @package Yireo_NewRelic2 * @author Yireo (https://www.yireo.com/) * @copyright Copyright 2015 Yireo (https://www.yireo.com/) * @license Simplified BSD License */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:no...
Fix invalid M2.2 XML Layout with after-argument in referenceBlock
Fix invalid M2.2 XML Layout with after-argument in referenceBlock
XML
bsd-2-clause
yireo/Yireo_NewRelic2
xml
## Code Before: <?xml version="1.0"?> <!-- /** * NewRelic2 plugin for Magento * * @package Yireo_NewRelic2 * @author Yireo (https://www.yireo.com/) * @copyright Copyright 2015 Yireo (https://www.yireo.com/) * @license Simplified BSD License */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
<?xml version="1.0"?> <!-- /** * NewRelic2 plugin for Magento * * @package Yireo_NewRelic2 * @author Yireo (https://www.yireo.com/) * @copyright Copyright 2015 Yireo (https://www.yireo.com/) * @license Simplified BSD License */ --> <page xmlns:xsi="http://www.w3.org/2001/XM...
2
0.090909
1
1
ecd8b6b41044c7e94115b433c20ed421611d9800
app/soc/templates/v2/modules/gsoc/proposal/_assign_mentor_form.html
app/soc/templates/v2/modules/gsoc/proposal/_assign_mentor_form.html
<form action="{{ action }}" method="post" id="form" class="form-assign-mentor"> <div id="form_fields_assign_mentor"> <select name="assign_mentor" id="id_assign_mentor"> <option value="">Assign a mentor</option> {% if possible_mentors %} <optgroup label="Possible Mentors"> {% for m in...
<form action="{{ action }}" method="post" id="form" class="form-assign-mentor"> <div id="form_fields_assign_mentor"> <select name="assign_mentor" id="id_assign_mentor"> <option value="">Assign a mentor</option> {% if possible_mentors %} <optgroup label="Possible Mentors"> {% for m in...
Move /span outside endif, add note about org preferences
Move /span outside endif, add note about org preferences
HTML
apache-2.0
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
html
## Code Before: <form action="{{ action }}" method="post" id="form" class="form-assign-mentor"> <div id="form_fields_assign_mentor"> <select name="assign_mentor" id="id_assign_mentor"> <option value="">Assign a mentor</option> {% if possible_mentors %} <optgroup label="Possible Mentors"> ...
<form action="{{ action }}" method="post" id="form" class="form-assign-mentor"> <div id="form_fields_assign_mentor"> <select name="assign_mentor" id="id_assign_mentor"> <option value="">Assign a mentor</option> {% if possible_mentors %} <optgroup label="Possible Mentors"> ...
4
0.153846
3
1
aa8b06e32bc8fc48155dcd4a9eab9f94df72eabb
Casks/widelands.rb
Casks/widelands.rb
class Widelands < Cask url 'https://launchpad.net/widelands/build17/build-17/+download/widelands-build17-mac.dmg' homepage 'https://wl.widelands.org/' version 'Build 17' sha256 '3812ae9f95697269a94970fc83c2c16ab962f450b5a114057046fde3bcfc5a2c' link 'Widelands.app' end
class Widelands < Cask url 'https://launchpad.net/widelands/build18/build-18/+download/widelands-build18-mac.dmg' homepage 'https://wl.widelands.org/' version 'Build 18' sha256 '1d209dcf653942788120c6f1abbe6f421fdefe6776f4feed48c58eddeb4c3722' link 'Widelands.app' end
Update Widelands to Build 18
Update Widelands to Build 18
Ruby
bsd-2-clause
stevehedrick/homebrew-cask,mwilmer/homebrew-cask,hyuna917/homebrew-cask,otzy007/homebrew-cask,tan9/homebrew-cask,tan9/homebrew-cask,af/homebrew-cask,askl56/homebrew-cask,mindriot101/homebrew-cask,bgandon/homebrew-cask,zeusdeux/homebrew-cask,jamesmlees/homebrew-cask,kievechua/homebrew-cask,adelinofaria/homebrew-cask,ajb...
ruby
## Code Before: class Widelands < Cask url 'https://launchpad.net/widelands/build17/build-17/+download/widelands-build17-mac.dmg' homepage 'https://wl.widelands.org/' version 'Build 17' sha256 '3812ae9f95697269a94970fc83c2c16ab962f450b5a114057046fde3bcfc5a2c' link 'Widelands.app' end ## Instruction: Update W...
class Widelands < Cask - url 'https://launchpad.net/widelands/build17/build-17/+download/widelands-build17-mac.dmg' ? ^ ^ ^ + url 'https://launchpad.net/widelands/build18/build-18/+download/widelands-build18-mac.dmg' ? ...
6
0.857143
3
3
fa73d9b029eede11c297abd701aa0174f7c0c8ad
src/braid/client/gateway/subs.cljs
src/braid/client/gateway/subs.cljs
(ns braid.client.gateway.subs (:require [re-frame.core :refer [reg-sub]] [braid.client.gateway.user-auth.subs] [braid.client.gateway.create-group.subs])) (reg-sub :gateway/field-value (fn [state [_ field]] (get-in state [:fields field :value]))) (reg-sub :gateway/field-errors (fn [state [_ f...
(ns braid.client.gateway.subs (:require [re-frame.core :refer [reg-sub]] [braid.client.gateway.user-auth.subs] [braid.client.gateway.create-group.subs])) (reg-sub :gateway/field-value (fn [state [_ field]] (get-in state [:fields field :value]))) (reg-sub :gateway/field-errors (fn [state [_ f...
Disable button while typing and doing remote validations
Disable button while typing and doing remote validations
Clojure
agpl-3.0
rafd/braid,braidchat/braid,rafd/braid,braidchat/braid
clojure
## Code Before: (ns braid.client.gateway.subs (:require [re-frame.core :refer [reg-sub]] [braid.client.gateway.user-auth.subs] [braid.client.gateway.create-group.subs])) (reg-sub :gateway/field-value (fn [state [_ field]] (get-in state [:fields field :value]))) (reg-sub :gateway/field-errors ...
(ns braid.client.gateway.subs (:require [re-frame.core :refer [reg-sub]] [braid.client.gateway.user-auth.subs] [braid.client.gateway.create-group.subs])) (reg-sub :gateway/field-value (fn [state [_ field]] (get-in state [:fields field :value]))) (reg-sub :gateway/fiel...
5
0.131579
4
1
6a92d8d6e6896533ea59a0a7580e79a3e027daf9
module/manifest.json
module/manifest.json
{ "changes": "* Updated Parse Android SDK to 1.15.8\n* Updated Parse iOS SDK to 1.15.1", "dependencies": { "bolts": { "minimum_version": "1.6.0", "maximum_version": "1.6.0" } }, "description": "Parse.com configuration to enable push notifications.\n\nThe parse mod...
{ "changes": "* Updated Parse Android SDK to 1.15.8\n* Updated Parse iOS SDK to 1.15.1", "dependencies": { "bolts": { "minimum_version": "1.6.0", "maximum_version": "1.6.0" } }, "description": "Parse.com configuration to enable push notifications.\n\nThe parse mod...
Set platform version to 2.6
Set platform version to 2.6
JSON
bsd-2-clause
scthi/trigger.io-parse,trigger-corp/trigger.io-parse,trigger-corp/trigger.io-parse,scthi/trigger.io-parse
json
## Code Before: { "changes": "* Updated Parse Android SDK to 1.15.8\n* Updated Parse iOS SDK to 1.15.1", "dependencies": { "bolts": { "minimum_version": "1.6.0", "maximum_version": "1.6.0" } }, "description": "Parse.com configuration to enable push notifications.\...
{ "changes": "* Updated Parse Android SDK to 1.15.8\n* Updated Parse iOS SDK to 1.15.1", "dependencies": { "bolts": { "minimum_version": "1.6.0", "maximum_version": "1.6.0" } }, "description": "Parse.com configuration to enable push notifications...
4
0.285714
2
2
b7b4509191aa240ae893c22588ffdb9db2d0e4ba
app/views/users/passed_courses/show.html.slim
app/views/users/passed_courses/show.html.slim
section .container h1.sr-only 自訂 aside.col-md-2 = render 'users/aside_tabs' article.col-md-10 .jumbotron h2.m-title.text-center 已修過課程 = form_for :passed_courses do |f| h4 登記已修過課程 .input-group input.form-control name='passed_course' value="#{param...
section .container h1.sr-only 自訂 aside.col-md-2 = render 'users/aside_tabs' article.col-md-10 .jumbotron h2.m-title.text-center 已修過課程 = form_for :passed_courses do |f| h4 登記已修過課程 .input-group input.form-control name='passed_course' value="#{param...
Add destory_all btn to passed_courses
Add destory_all btn to passed_courses
Slim
mit
atitan/coursenote,atitan/coursenote,atitan/coursenote
slim
## Code Before: section .container h1.sr-only 自訂 aside.col-md-2 = render 'users/aside_tabs' article.col-md-10 .jumbotron h2.m-title.text-center 已修過課程 = form_for :passed_courses do |f| h4 登記已修過課程 .input-group input.form-control name='passed_course...
section .container h1.sr-only 自訂 aside.col-md-2 = render 'users/aside_tabs' article.col-md-10 .jumbotron h2.m-title.text-center 已修過課程 = form_for :passed_courses do |f| h4 登記已修過課程 .input-group input.form-control name='passe...
3
0.103448
3
0
ade960c76de6773a176d2cd982ac9a26a2d072ae
tests/unit/network/CubicTemplateTest.py
tests/unit/network/CubicTemplateTest.py
import openpnm as op from skimage.morphology import ball, disk class CubicTemplateTest: def setup_class(self): pass def teardown_class(self): pass def test_2D_template(self): net = op.network.CubicTemplate(template=disk(10), spacing=1) assert net.Np == 317 assert ...
import numpy as np import openpnm as op from skimage.morphology import ball, disk class CubicTemplateTest: def setup_class(self): pass def teardown_class(self): pass def test_2D_template(self): net = op.network.CubicTemplate(template=disk(10), spacing=1) assert net.Np == ...
Add test for CubicTemplate to ensure proper labeling
Add test for CubicTemplate to ensure proper labeling
Python
mit
TomTranter/OpenPNM,PMEAL/OpenPNM
python
## Code Before: import openpnm as op from skimage.morphology import ball, disk class CubicTemplateTest: def setup_class(self): pass def teardown_class(self): pass def test_2D_template(self): net = op.network.CubicTemplate(template=disk(10), spacing=1) assert net.Np == 317...
+ import numpy as np import openpnm as op from skimage.morphology import ball, disk class CubicTemplateTest: def setup_class(self): pass def teardown_class(self): pass def test_2D_template(self): net = op.network.CubicTemplate(template=disk(10), spacing=...
19
0.612903
19
0
2310360645b74c96625c3e49f97d2ed8d244584c
CodeReader/Helper/Extensions.swift
CodeReader/Helper/Extensions.swift
// // Extensions.swift // CodeReader // // Created by vulgur on 16/5/11. // Copyright © 2016年 MAD. All rights reserved. // import UIKit extension UITableView { func reloadDataWithAutoSizingCells() { self.reloadData() self.setNeedsDisplay() self.layoutIfNeeded() self.reloadData(...
// // Extensions.swift // CodeReader // // Created by vulgur on 16/5/11. // Copyright © 2016年 MAD. All rights reserved. // import UIKit extension UITableView { func reloadDataWithAutoSizingCells() { self.reloadData() self.setNeedsDisplay() self.layoutIfNeeded() self.reloadData(...
Add extension to UITableView to hide empty cells
Add extension to UITableView to hide empty cells
Swift
mit
vulgur/Sources,vulgur/Sources,vulgur/Sources
swift
## Code Before: // // Extensions.swift // CodeReader // // Created by vulgur on 16/5/11. // Copyright © 2016年 MAD. All rights reserved. // import UIKit extension UITableView { func reloadDataWithAutoSizingCells() { self.reloadData() self.setNeedsDisplay() self.layoutIfNeeded() ...
// // Extensions.swift // CodeReader // // Created by vulgur on 16/5/11. // Copyright © 2016年 MAD. All rights reserved. // import UIKit extension UITableView { func reloadDataWithAutoSizingCells() { self.reloadData() self.setNeedsDisplay() self.layoutIfNee...
6
0.162162
6
0
edab226942fbab75aa66e16d5814b1c38c0e8507
2048/policy.py
2048/policy.py
import tensorflow as tf class EpsilonGreedyPolicy: def __init__(self, env, dqn, epsilon_max, epsilon_min, epsilon_decay): self.env = env self.dqn = dqn self.epsilon_max = epsilon_max self.epsilon_min = epsilon_min self.epsilon_decay = epsilon_decay def take_action(self...
import tensorflow as tf class EpsilonGreedyPolicy: def __init__(self, env, dqn, epsilon_max, epsilon_min, epsilon_decay): self.env = env self.dqn = dqn self.epsilon_max = epsilon_max self.epsilon_min = epsilon_min self.epsilon_decay = epsilon_decay def take_action(self...
Fix error in state shape in EGP
[2048] Fix error in state shape in EGP
Python
mit
akshaykurmi/reinforcement-learning
python
## Code Before: import tensorflow as tf class EpsilonGreedyPolicy: def __init__(self, env, dqn, epsilon_max, epsilon_min, epsilon_decay): self.env = env self.dqn = dqn self.epsilon_max = epsilon_max self.epsilon_min = epsilon_min self.epsilon_decay = epsilon_decay def ...
import tensorflow as tf class EpsilonGreedyPolicy: def __init__(self, env, dqn, epsilon_max, epsilon_min, epsilon_decay): self.env = env self.dqn = dqn self.epsilon_max = epsilon_max self.epsilon_min = epsilon_min self.epsilon_decay = epsilon_decay ...
2
0.105263
1
1
f8c1f47ba847eadf84da6fdf2060f77a6ba030c0
.circleci/copy_recursive_regex.sh
.circleci/copy_recursive_regex.sh
REGEX="$1" DEST_FOLDER=$2 rm -rf ${DEST_FOLDER} mkdir -p ${DEST_FOLDER} for testXml in $(find . -type f -regex ${REGEX}); do echo ${testXml} cp ${testXml} ${DEST_FOLDER} done echo
REGEX="$1" DEST_FOLDER=$2 rm -rf ${DEST_FOLDER} mkdir -p ${DEST_FOLDER} for matching_file in $(find . -type f -regex ${REGEX}); do echo ${matching_file} cp ${matching_file} ${DEST_FOLDER} done echo
Generalize recursive regex copy script
Generalize recursive regex copy script
Shell
apache-2.0
Tristan971/EasyFXML,Tristan971/EasyFXML
shell
## Code Before: REGEX="$1" DEST_FOLDER=$2 rm -rf ${DEST_FOLDER} mkdir -p ${DEST_FOLDER} for testXml in $(find . -type f -regex ${REGEX}); do echo ${testXml} cp ${testXml} ${DEST_FOLDER} done echo ## Instruction: Generalize recursive regex copy script ## Code After: REGEX="$1" DEST_FOLDER=$2 rm -rf ${DES...
REGEX="$1" DEST_FOLDER=$2 rm -rf ${DEST_FOLDER} mkdir -p ${DEST_FOLDER} - for testXml in $(find . -type f -regex ${REGEX}); do ? ----- + for matching_file in $(find . -type f -regex ${REGEX}); do ? ++ +++++++++ - echo ${testXml} + echo ${matching_file} - cp ${testXml} ${DEST_FOL...
6
0.461538
3
3
843494e81a29ec2698ad91e1d0f3675d9c0f52eb
core/user/users.php
core/user/users.php
<?php namespace Phpws\Core; class WebSocketUser implements \Phpws\Interfaces\WebsocketUser { public $socket; public $id; public $watcher; public $headers = NULL; public $handshaked = false; public $handlingPartialPacket = false; public $readBuffer = ""; public $writeNeeded = false; public $writeBuf...
<?php namespace Phpws\Core; class WebSocketUser implements \Phpws\Interfaces\WebsocketUser { public $socket; public $id; public $watcher; public $headers = NULL; public $handshaked = false; public $handlingPartialPacket = false; public $readBuffer = ""; public $writeNeeded = false; public $writeBuf...
Implement the promises of the user interface...
Implement the promises of the user interface...
PHP
bsd-3-clause
philek/PHP-Websockets,philek/PHP-Websockets
php
## Code Before: <?php namespace Phpws\Core; class WebSocketUser implements \Phpws\Interfaces\WebsocketUser { public $socket; public $id; public $watcher; public $headers = NULL; public $handshaked = false; public $handlingPartialPacket = false; public $readBuffer = ""; public $writeNeeded = false; ...
<?php namespace Phpws\Core; class WebSocketUser implements \Phpws\Interfaces\WebsocketUser { public $socket; public $id; public $watcher; public $headers = NULL; public $handshaked = false; public $handlingPartialPacket = false; public $readBuffer = ""; public $writeNeeded...
10
0.4
10
0
4d9f6fd67c5434ffc6de9b5a7dbd5f92447962bd
test/index.js
test/index.js
/** * Dependencies */ var test = require('tape') var isEmptyObject = require('../') /** * Tests */ test('isEmptyObject(obj)', function(assert) { assert.equal(isEmptyObject({}), true, 'returns true if empty') assert.equal(isEmptyObject({ one: 1 }), false, 'returns false if not empty') assert.equal(i...
/** * Dependencies */ var test = require('tape') var isEmptyObject = require('../') /** * Tests */ test('isEmptyObject(obj)', function(assert) { assert.equal(isEmptyObject({}), true, 'returns true if empty') assert.equal(isEmptyObject({ one: 1 }), false, 'returns false if not empty') assert.equal(i...
Test more cases for array
Test more cases for array
JavaScript
mit
kriskowal/is-empty-object
javascript
## Code Before: /** * Dependencies */ var test = require('tape') var isEmptyObject = require('../') /** * Tests */ test('isEmptyObject(obj)', function(assert) { assert.equal(isEmptyObject({}), true, 'returns true if empty') assert.equal(isEmptyObject({ one: 1 }), false, 'returns false if not empty') ...
/** * Dependencies */ var test = require('tape') var isEmptyObject = require('../') /** * Tests */ test('isEmptyObject(obj)', function(assert) { assert.equal(isEmptyObject({}), true, 'returns true if empty') assert.equal(isEmptyObject({ one: 1 }), false, 'returns false if ...
5
0.25
4
1
d9c16a5304f77848f4b8f2c9344e2f08699ee38e
swgohBotShard.js
swgohBotShard.js
// At max, each shard can have 2500 servers const config = require("./config.js"); const Discord = require("discord.js"); const Manager = new Discord.ShardingManager("./swgohBot.js",{ totalShards: config.shardCount // Tell it how many shards we want (Approx. 1100 servers per shard) }); Manager.spawn(); Manager.o...
// At max, each shard can have 2500 servers const config = require("./config.js"); const Discord = require("discord.js"); const Manager = new Discord.ShardingManager("./swgohBot.js",{ totalShards: config.shardCount // Tell it how many shards we want (Approx. 1100 servers per shard) }); // Give it a large timeout...
Update the sharding file to log more stuff
Update the sharding file to log more stuff
JavaScript
mit
jmiln/SWGoHBot
javascript
## Code Before: // At max, each shard can have 2500 servers const config = require("./config.js"); const Discord = require("discord.js"); const Manager = new Discord.ShardingManager("./swgohBot.js",{ totalShards: config.shardCount // Tell it how many shards we want (Approx. 1100 servers per shard) }); Manager.spa...
// At max, each shard can have 2500 servers const config = require("./config.js"); const Discord = require("discord.js"); const Manager = new Discord.ShardingManager("./swgohBot.js",{ totalShards: config.shardCount // Tell it how many shards we want (Approx. 1100 servers per shard) }); - Manager.spa...
20
1.666667
18
2
7ea7c8dda76cc03c10056230711c74e112cd3a13
.rubocop.yml
.rubocop.yml
AllCops: TargetRubyVersion: 2.3 Layout/EmptyLinesAroundClassBody: EnforcedStyle: empty_lines Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Metrics/AbcSize: Enabled: false Metrics/BlockLength: Enabled: false Metrics/ClassLeng...
AllCops: TargetRubyVersion: 2.3 Layout/EmptyLinesAroundClassBody: EnforcedStyle: empty_lines Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Metrics/AbcSize: Enabled: false Metrics/BlockLength: Enabled: false Metrics/ClassLeng...
Remove percent literal RuboCop configuration
Remove percent literal RuboCop configuration The default RuboCop configuration has been changed to `[]` for both `%i` and `%w`. Reference * https://github.com/brandonweiss/rubocop/commit/148ccf1e4c077b99a26b38ebbdad02a357a6d464
YAML
apache-2.0
zendesk/biz,zendesk/biz
yaml
## Code Before: AllCops: TargetRubyVersion: 2.3 Layout/EmptyLinesAroundClassBody: EnforcedStyle: empty_lines Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Metrics/AbcSize: Enabled: false Metrics/BlockLength: Enabled: false M...
AllCops: TargetRubyVersion: 2.3 Layout/EmptyLinesAroundClassBody: EnforcedStyle: empty_lines Layout/MultilineMethodCallIndentation: EnforcedStyle: indented Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space Metrics/AbcSize: Enabled: false Metrics/BlockLength: ...
4
0.102564
0
4
69af4cc9b2f489c7a98590864bb517a3a45c63fc
lib/firefoxos.js
lib/firefoxos.js
(function(context) { var event = new Event('network-ready'); context.ajax = function(url, data, callback) { if (typeof data === 'function') { callback = data; data = null; } var xhr = new XMLHttpRequest(), ajaxCallback = function() { callback(xhr.response, xhr.status, xhr); if (xhr.status != nu...
(function(context) { var event = new Event('network-ready'); context.ajax = function(url, data, callback) { if (typeof data === 'function') { callback = data; data = null; } var xhr = new XMLHttpRequest(), ajaxCallback = function() { callback(xhr.response, xhr.status, xhr); if (xhr.status !== n...
Reformat library to pull functions in from global scope.
Reformat library to pull functions in from global scope.
JavaScript
mpl-2.0
askore/capstone2014-firefoxOS,askore/capstone2014-firefoxOS
javascript
## Code Before: (function(context) { var event = new Event('network-ready'); context.ajax = function(url, data, callback) { if (typeof data === 'function') { callback = data; data = null; } var xhr = new XMLHttpRequest(), ajaxCallback = function() { callback(xhr.response, xhr.status, xhr); if (...
(function(context) { var event = new Event('network-ready'); context.ajax = function(url, data, callback) { if (typeof data === 'function') { callback = data; data = null; } var xhr = new XMLHttpRequest(), ajaxCallback = function() { callback(xhr.response, xhr.status, xhr); - ...
28
0.717949
15
13
f336558589bab1b3416e4c327e31850e94a26ec4
app/views/projects/snippets/_snippet.html.haml
app/views/projects/snippets/_snippet.html.haml
%li %h4.snippet-title = link_to reliable_snippet_path(snippet) do = truncate(snippet.title, length: 60) %span.cgray.monospace.tiny.pull-right = snippet.file_name %small.pull-right.cgray Expires: - if snippet.expires_at = snippet.expires_at.to_date.to_s(:short) - else Nev...
%li %h4.snippet-title = link_to reliable_snippet_path(snippet) do = truncate(snippet.title, length: 60) %span.cgray.monospace.tiny.pull-right = snippet.file_name .snippet-info = "##{snippet.id}" %span by = image_tag avatar_icon(snippet.author_email), class: "avatar avatar-in...
Remove snippet expiration date from UI
Remove snippet expiration date from UI
Haml
mit
8thcolor/eurucamp2014-htdsadr,8thcolor/rubyconfau2015-sadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr
haml
## Code Before: %li %h4.snippet-title = link_to reliable_snippet_path(snippet) do = truncate(snippet.title, length: 60) %span.cgray.monospace.tiny.pull-right = snippet.file_name %small.pull-right.cgray Expires: - if snippet.expires_at = snippet.expires_at.to_date.to_s(:short) ...
%li %h4.snippet-title = link_to reliable_snippet_path(snippet) do = truncate(snippet.title, length: 60) %span.cgray.monospace.tiny.pull-right = snippet.file_name - - %small.pull-right.cgray - Expires: - - if snippet.expires_at - = snippet.expires_at.to_date.to_s(:short...
7
0.318182
0
7
3dad21b32419e1e565eae543258d3b65252139b1
vmfiles/set_up_site.sh
vmfiles/set_up_site.sh
HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP knife bootstrap $IP -x brain -N $HOSTNAME-toad -P password -r 'role[simple_webserver]' --sudo
HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP sleep 30 knife bootstrap $IP -x brain -N $HOSTNAME-toad -P password -r 'role[simple_webserver]' --sudo
Add sime timeout after VM creation before bootstraping
Add sime timeout after VM creation before bootstraping
Shell
apache-2.0
brain-geek/toad-chef-repo,brain-geek/toad-chef-repo
shell
## Code Before: HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP knife bootstrap $IP -x brain -N $HOSTNAME-toad -P password -r 'role[simple_webserver]' --sudo ## Instruction: Add sime timeout after VM creation before bootstraping ## Code After: HOSTNAME=$1 IP=$2 echo 'Run me as user...
HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP + + sleep 30 + knife bootstrap $IP -x brain -N $HOSTNAME-toad -P password -r 'role[simple_webserver]' --sudo
3
0.428571
3
0
8e58a7d88b5ad19e772f4fb6c912901e4e5f07af
lib/islay/active_record.rb
lib/islay/active_record.rb
class ActiveRecord::Base private # Provides access to the user model provided by Devise. def current_user Thread.current[:current_user] end # A callback handler which updates the user ID columns before save def update_user_ids if current_user self.creator_id = current_user.id if new_record? ...
module ActiveRecord module ConnectionAdapters class TableDefinition # This is a migration helper for adding columns used when tracking user # edits to records. It works in conjunction with the extensions to AR:Base. def user_tracking(*args) column(:creator_id, :integer, :null => false, :...
Add migration helper for generating user edit columns.
Add migration helper for generating user edit columns.
Ruby
mit
spookandpuff/islay,spookandpuff/islay,spookandpuff/islay
ruby
## Code Before: class ActiveRecord::Base private # Provides access to the user model provided by Devise. def current_user Thread.current[:current_user] end # A callback handler which updates the user ID columns before save def update_user_ids if current_user self.creator_id = current_user.id...
+ module ActiveRecord + module ConnectionAdapters + class TableDefinition + # This is a migration helper for adding columns used when tracking user + # edits to records. It works in conjunction with the extensions to AR:Base. + def user_tracking(*args) + column(:creator_id, :integer, :nu...
55
2.115385
34
21
bdc6cd397d11d0a116945dc876cd3eacfeeb0832
services/chat/config/settings.defaults.coffee
services/chat/config/settings.defaults.coffee
module.exports = internal: chat: host: process.env['LISTEN_ADDRESS'] or "localhost" port: 3010 apis: web: url: "http://#{process.env['WEB_HOST'] || "localhost"}:3000" user: "sharelatex" pass: "password" mongo: url : "mongodb://#{process.env['MONGO_HOST'] || "localhost"}/sharelatex" redis...
module.exports = internal: chat: host: process.env['LISTEN_ADDRESS'] or "localhost" port: 3010 apis: web: url: "http://#{process.env['WEB_HOST'] || "localhost"}:#{process.env['WEB_PORT'] or 3000}" user: "sharelatex" pass: "password" mongo: url : "mongodb://#{process.env['MONGO_HOST'] || "l...
Use setting instead of hard-coding port
Use setting instead of hard-coding port
CoffeeScript
agpl-3.0
sharelatex/sharelatex
coffeescript
## Code Before: module.exports = internal: chat: host: process.env['LISTEN_ADDRESS'] or "localhost" port: 3010 apis: web: url: "http://#{process.env['WEB_HOST'] || "localhost"}:3000" user: "sharelatex" pass: "password" mongo: url : "mongodb://#{process.env['MONGO_HOST'] || "localhost"}/sha...
module.exports = internal: chat: host: process.env['LISTEN_ADDRESS'] or "localhost" port: 3010 apis: web: - url: "http://#{process.env['WEB_HOST'] || "localhost"}:3000" + url: "http://#{process.env['WEB_HOST'] || "localhost"}:#{process.env['WEB_PORT'] or 3000}" ? ...
2
0.1
1
1
411a91ff3218adc870cee4d962ed296fa6498b36
docu/build.bat
docu/build.bat
doxygen cd latex pdflatex -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -shell-escape refman.tex pdflatex -shell-escape refman.tex cd .. copy latex\refman.pdf .
doxygen cd latex pdflatex -interaction=nonstopmode -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -interaction=nonstopmode -shell-escape refman.tex pdflatex -interaction=nonstopmode -shell-escape refman.tex cd .. copy latex\refman.pdf .
Call pdflatex in non stop mode
Call pdflatex in non stop mode
Batchfile
bsd-3-clause
t-b/igor-unit-testing-framework,t-b/igor-unit-testing-framework
batchfile
## Code Before: doxygen cd latex pdflatex -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -shell-escape refman.tex pdflatex -shell-escape refman.tex cd .. copy latex\refman.pdf . ## Instruction: Call pdflatex in non stop mode ## Code After: doxygen cd latex pdflatex -interaction=nonstopmode -s...
doxygen cd latex - pdflatex -shell-escape refman.tex + pdflatex -interaction=nonstopmode -shell-escape refman.tex makeindex -s ../refman.ist refman.idx - pdflatex -shell-escape refman.tex - pdflatex -shell-escape refman.tex + pdflatex -interaction=nonstopmode -shell-escape refman.tex + pdflatex -interaction=nonst...
6
0.75
3
3
e23b775b19934cbdf731b59556e752a4643226a6
src/dir-exists.js
src/dir-exists.js
const fs = require('fs'); const dirExists = (directory) => { return new Promise((resolve, reject) => { fs.stat(directory, function(err, stats) { if (err) { if (err.errno === 34) { // Directory does not exist. resolve(false); } else { // Some other error occurre...
const fs = require('fs'); const dirExists = (directory) => { return new Promise((resolve, reject) => { fs.stat(directory, function(err, stats) { if (err) { if (err.code === 'ENOENT') { // Directory does not exist. resolve(false); } else { // Some other error oc...
Use err.code ENOENT to check for existence
Use err.code ENOENT to check for existence
JavaScript
mit
life-corp/ymp-utilities
javascript
## Code Before: const fs = require('fs'); const dirExists = (directory) => { return new Promise((resolve, reject) => { fs.stat(directory, function(err, stats) { if (err) { if (err.errno === 34) { // Directory does not exist. resolve(false); } else { // Some oth...
const fs = require('fs'); const dirExists = (directory) => { return new Promise((resolve, reject) => { fs.stat(directory, function(err, stats) { if (err) { - if (err.errno === 34) { + if (err.code === 'ENOENT') { // Directory does not exist. resolve(false...
2
0.090909
1
1
9dfc9af59fd43b9ddb5c2365108c4107ee7c2bf5
server/static/global.css
server/static/global.css
.result-img { height: 200px; } #footer { padding-top: 50px; }
.result-img { height: 200px; min-width:200px; background-color: #CCC; } #footer { padding-top: 50px; }
Add grey background before loading image
Add grey background before loading image
CSS
mit
albertyw/devops-reactions-index,albertyw/devops-reactions-index,albertyw/reaction-pics,albertyw/devops-reactions-index,albertyw/reaction-pics,albertyw/reaction-pics,albertyw/devops-reactions-index,albertyw/reaction-pics
css
## Code Before: .result-img { height: 200px; } #footer { padding-top: 50px; } ## Instruction: Add grey background before loading image ## Code After: .result-img { height: 200px; min-width:200px; background-color: #CCC; } #footer { padding-top: 50px; }
.result-img { height: 200px; + min-width:200px; + background-color: #CCC; } #footer { padding-top: 50px; }
2
0.333333
2
0
0bce306943df133640215f16ab292061db28393a
README.md
README.md
A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password', "http://sand.ap...
A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password', "http://api-con...
Change in documentation to use the API endpoint for the Client-Testing environment
Change in documentation to use the API endpoint for the Client-Testing environment
Markdown
mit
f3ath/appnexusclient
markdown
## Code Before: A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password',...
A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available - $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'pass...
2
0.153846
1
1
5ed709189c3c8b5f80716d1df5ad579063a400f8
client/views/index/index.html
client/views/index/index.html
<head> <title>Fraction</title> <link rel="icon" type="image/png" href="/img/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> </head> <bo...
<head> <title>Fraction</title> <link rel="icon" type="image/png" href="/img/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> ...
Add minimal-ui for mobile safari for iOS
Add minimal-ui for mobile safari for iOS
HTML
mit
rrevanth/news,rrevanth/news
html
## Code Before: <head> <title>Fraction</title> <link rel="icon" type="image/png" href="/img/favicon.png" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/cs...
<head> <title>Fraction</title> <link rel="icon" type="image/png" href="/img/favicon.png" /> - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, min...
2
0.133333
1
1
63d2478dd04fb1287232a59225cb11fe567e3dcd
test_apps/test_app/test/simple_storage_deploy_spec.js
test_apps/test_app/test/simple_storage_deploy_spec.js
/*global contract, it, embark, assert, before*/ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); contract("SimpleStorage Deploy", function () { let SimpleStorageInstance; before(async function() { SimpleStorageInstance = await SimpleStorage.deploy({arguments: [150]}).send(); }); it...
/*global contract, it, embark, assert, before, web3*/ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); const Utils = require('embarkjs').Utils; contract("SimpleStorage Deploy", function () { let simpleStorageInstance; before(function(done) { Utils.secureSend(web3, SimpleStorage.deploy({a...
Fix embark test using node option
Fix embark test using node option
JavaScript
mit
iurimatias/embark-framework,iurimatias/embark-framework
javascript
## Code Before: /*global contract, it, embark, assert, before*/ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); contract("SimpleStorage Deploy", function () { let SimpleStorageInstance; before(async function() { SimpleStorageInstance = await SimpleStorage.deploy({arguments: [150]}).sen...
- /*global contract, it, embark, assert, before*/ + /*global contract, it, embark, assert, before, web3*/ ? ++++++ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); + const Utils = require('embarkjs').Utils; contract("SimpleStorage Deploy", func...
32
1.454545
22
10
447212b43ba06f7cf7fa87b05e40d3fd081d1908
config/application.rb
config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SCSAppraisals class Application < Rails::Application # Custom Logging config.log_level =...
require File.expand_path('../boot', __FILE__) require 'rails/all' require 'action_mailer/log_subscriber' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SCSAppraisals class Application < Rails::Application ...
Disable default request logging - use logstasher instead
Disable default request logging - use logstasher instead
Ruby
mit
ministryofjustice/scs_appraisals,ministryofjustice/scs_appraisals,ministryofjustice/scs_appraisals
ruby
## Code Before: require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SCSAppraisals class Application < Rails::Application # Custom Logging co...
require File.expand_path('../boot', __FILE__) require 'rails/all' + require 'action_mailer/log_subscriber' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module SCSAppraisals class Application < Ra...
3
0.081081
2
1
8d7efd65a3c9e82c4ae101c5be3c2cb01e001a02
README.md
README.md
libpirt ======= multithreaded runtime environment for the pi compiler Authors ======= - Mickaël Menu (mickael.menu@gmail.com) - Maxence WO - Dany Siriphol - Loïc Girault (loic.girault@gmail.com) - Joël Hing (hing.joel@gmail.com)
libpirt ======= multithreaded runtime environment for the pi compiler Authors ======= - Mickaël Menu (mickael.menu@gmail.com) - Maxence WO - Dany Siriphol - Loïc Girault (loic.girault@gmail.com) - Joël Hing (hing.joel@gmail.com) - Florian Thibord (florian.thibord@gmail.com)
Test d'un commit depuis la fac
Test d'un commit depuis la fac
Markdown
mit
fredokun/libpiccolort,fredokun/libpiccolort
markdown
## Code Before: libpirt ======= multithreaded runtime environment for the pi compiler Authors ======= - Mickaël Menu (mickael.menu@gmail.com) - Maxence WO - Dany Siriphol - Loïc Girault (loic.girault@gmail.com) - Joël Hing (hing.joel@gmail.com) ## Instruction: Test d'un commit depuis la fac ## Code After: libpirt ==...
libpirt ======= multithreaded runtime environment for the pi compiler Authors ======= - Mickaël Menu (mickael.menu@gmail.com) - Maxence WO - Dany Siriphol - Loïc Girault (loic.girault@gmail.com) - Joël Hing (hing.joel@gmail.com) + - Florian Thibord (florian.thibord@gmail.com)
1
0.083333
1
0
b38424b6f1c08cbec2416918169f2b3323cb78c7
signature/signature_test.go
signature/signature_test.go
package signature
package signature import ( "bytes" "encoding/base64" "testing" ) const testTs = "1544544948" const testQp = "abc=foo&def=bar" const testBody = `{"a key":"some value"}` const testSignature = "orb0adPhRCYND1WCAvPBr+qjm4STGtyvNDIDNBZ4Ir4=" func TestCalculateSignature(t *testing.T) { v := NewValidator("other-secret"...
Add basic test for calculating signature
Func: Add basic test for calculating signature
Go
bsd-2-clause
messagebird/go-rest-api
go
## Code Before: package signature ## Instruction: Func: Add basic test for calculating signature ## Code After: package signature import ( "bytes" "encoding/base64" "testing" ) const testTs = "1544544948" const testQp = "abc=foo&def=bar" const testBody = `{"a key":"some value"}` const testSignature = "orb0adPhRC...
package signature + + import ( + "bytes" + "encoding/base64" + "testing" + ) + + const testTs = "1544544948" + const testQp = "abc=foo&def=bar" + const testBody = `{"a key":"some value"}` + const testSignature = "orb0adPhRCYND1WCAvPBr+qjm4STGtyvNDIDNBZ4Ir4=" + + func TestCalculateSignature(t *testing.T) { + v ...
23
23
23
0
3653f0a114cebc88b7ff5ea7ec82e0ec06100bee
src/_includes/feed/footer.xml
src/_includes/feed/footer.xml
{% capture feed_footer %} <p><a href="{{ site.url }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published by <a href="{{ site.url }}/about/" rel="nofollow">{{ site.owner.name }}</a> on <a href="{{ site.url }}" rel="nofollow">{{ site.title }}</a></p> {% endcapture %} {{ feed_footer | markdownify...
{% capture feed_footer %} <p><a href="{{ site.url }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published {% if site.author.name %}by <a href="{{ site.author.url | default: site.url }}" rel="nofollow">{{ site.author.name }}</a>{% endif %} on <a href="{{ site.url }}" rel="nofollow">{{ site.title...
Update author variable name and make conditional
Update author variable name and make conditional
XML
mit
mmistakes/made-mistakes-jekyll,mmistakes/made-mistakes-jekyll,mmistakes/made-mistakes-jekyll
xml
## Code Before: {% capture feed_footer %} <p><a href="{{ site.url }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published by <a href="{{ site.url }}/about/" rel="nofollow">{{ site.owner.name }}</a> on <a href="{{ site.url }}" rel="nofollow">{{ site.title }}</a></p> {% endcapture %} {{ feed_foot...
{% capture feed_footer %} - <p><a href="{{ site.url }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published by <a href="{{ site.url }}/about/" rel="nofollow">{{ site.owner.name }}</a> on <a href="{{ site.url }}" rel="nofollow">{{ site.title }}</a></p> + <p><a href="{{ site.url }}{{ post.url...
2
0.5
1
1