commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
b43bda81126c1b0422352e14aa5cf5be88f18801
lib/cryptoexchange/exchanges/lakebtc/services/market.rb
lib/cryptoexchange/exchanges/lakebtc/services/market.rb
module Cryptoexchange::Exchanges module Lakebtc module Services class Market < Cryptoexchange::Services::Market class << self def supports_individual_ticker_query? false end end def fetch output = super(ticker_url) adapt_all(output...
module Cryptoexchange::Exchanges module Lakebtc module Services class Market < Cryptoexchange::Services::Market class << self def supports_individual_ticker_query? false end end def fetch output = super(ticker_url) adapt_all(output...
Use NumericHelper to parse lakebtc response
Use NumericHelper to parse lakebtc response
Ruby
mit
coingecko/cryptoexchange,coingecko/cryptoexchange
ruby
## Code Before: module Cryptoexchange::Exchanges module Lakebtc module Services class Market < Cryptoexchange::Services::Market class << self def supports_individual_ticker_query? false end end def fetch output = super(ticker_url) ...
882bef7ee933ddae403d5e896e2e350db5450683
imagicktest.php
imagicktest.php
<?php $filename = __DIR__ . '/tests/Imbo/Fixtures/640x160_rotated.jpg'; $imagick = new Imagick(); $imagick->readImageBlob(file_get_contents($filename)); echo "getImageOrientation() => " . $imagick->getImageOrientation() . PHP_EOL; var_dump($imagick->getImageProperties()); var_dump(exif_read_data($filename));
<?php $filename = __DIR__ . '/tests/Imbo/Fixtures/640x160_rotated.jpg'; $imagick = new Imagick(); $imagick->readImageBlob(file_get_contents($filename)); echo "getImageOrientation() => " . $imagick->getImageOrientation() . PHP_EOL; var_dump($imagick->getImageProperties()); var_dump(exif_read_data($filename, 'EXIF')); v...
Test with another image as well
Test with another image as well
PHP
mit
imbo/imbo,androa/imbo,imbo/imbo,TV2/imbo,matslindh/imbo,matslindh/imbo,christeredvartsen/imbo,christeredvartsen/imbo,kbrabrand/imbo,rexxars/imbo,kbrabrand/imbo,TV2/imbo,rexxars/imbo,christeredvartsen/imbo,androa/imbo
php
## Code Before: <?php $filename = __DIR__ . '/tests/Imbo/Fixtures/640x160_rotated.jpg'; $imagick = new Imagick(); $imagick->readImageBlob(file_get_contents($filename)); echo "getImageOrientation() => " . $imagick->getImageOrientation() . PHP_EOL; var_dump($imagick->getImageProperties()); var_dump(exif_read_data($filen...
d407b7ce6ae8ec60d23ab37ff0aaae0d9702e5e9
.storybook/head.html
.storybook/head.html
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <style> * { font-family: 'Open Sans', sans-serif; } </style>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <link rel="stylesheet" href="//icons.buffer.com/0.13.0/buffer-icons.css" type="text/css"/> <style> * { font-family: 'Open Sans', sans-serif; } </style>
Add Buffer Icons to Storybook
Add Buffer Icons to Storybook This is so that we can use our icons in our components. :)
HTML
mit
bufferapp/buffer-components,bufferapp/buffer-components
html
## Code Before: <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <style> * { font-family: 'Open Sans', sans-serif; } </style> ## Instruction: Add Buffer Icons to Storybook This is so that we can use our icons in our components. :) ## Code After: <link href=...
5189d0ff9424563fbf4f53c211a67b8d1c691871
packages/sp/spherical.yaml
packages/sp/spherical.yaml
homepage: '' changelog-type: markdown hash: b90e45826e1cf6b13719fd060d72d0a24c5aaaaab6f93e6edf0ede3cba54a0a7 test-bench-deps: {} maintainer: vanessa.mchale@iohk.io synopsis: Geometry on a sphere changelog: ! "# spherical\n\n## 0.1.2.1\n\n * Fix `sinc`\n\n## 0.1.2.0\n\n * Expose `bonne` projection\n\n## 0.1.1.0\n\n ...
homepage: '' changelog-type: markdown hash: b338ecb78bd956c8a0612aa83e7395c16ec27e2e4a25ab3dacd9921cc6bcca80 test-bench-deps: {} maintainer: vanessa.mchale@iohk.io synopsis: Geometry on a sphere changelog: | # spherical ## 0.1.2.2 * Documentation improvements ## 0.1.2.1 * Fix `sinc` ## 0.1.2.0 ...
Update from Hackage at 2019-05-22T01:36:56Z
Update from Hackage at 2019-05-22T01:36:56Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: markdown hash: b90e45826e1cf6b13719fd060d72d0a24c5aaaaab6f93e6edf0ede3cba54a0a7 test-bench-deps: {} maintainer: vanessa.mchale@iohk.io synopsis: Geometry on a sphere changelog: ! "# spherical\n\n## 0.1.2.1\n\n * Fix `sinc`\n\n## 0.1.2.0\n\n * Expose `bonne` projection\n\...
02a9a44399d98c291032a5c48a58a9afb4347cd7
scripts/lint.sh
scripts/lint.sh
set -o nounset set -o errexit shellcheck "$PWD"/scripts/*.sh CLOUDFORMATION_TEMPLATES="$PWD/cloudformation/*/*.yaml" for template in $CLOUDFORMATION_TEMPLATES do echo "Validating CloudFormation template - $template ..." aws cloudformation validate-template --template-body "file:///$template" done ANSIBLE_PLAYBOOKS...
set -o nounset set -o errexit #shellcheck "$PWD"/scripts/*.sh CLOUDFORMATION_TEMPLATES="$PWD/cloudformation/*/*.yaml" for template in $CLOUDFORMATION_TEMPLATES do echo "Validating CloudFormation template - $template ..." aws cloudformation validate-template --template-body "file:///$template" done ANSIBLE_PLAYBOOK...
Isolate Ansible filtering to playbooks only. Temporary disable shellcheck.
Isolate Ansible filtering to playbooks only. Temporary disable shellcheck.
Shell
apache-2.0
shinesolutions/aem-aws-stack-builder,shinesolutions/aem-aws-stack-builder
shell
## Code Before: set -o nounset set -o errexit shellcheck "$PWD"/scripts/*.sh CLOUDFORMATION_TEMPLATES="$PWD/cloudformation/*/*.yaml" for template in $CLOUDFORMATION_TEMPLATES do echo "Validating CloudFormation template - $template ..." aws cloudformation validate-template --template-body "file:///$template" done A...
283c719184006297b408420996b3b9c852c96c1c
web/js/router.coffee
web/js/router.coffee
define ['backbone', 'utils', 'backboneAnalytics'], (Backbone, Utils) -> Backbone.Router.extend initialize: () -> @route '', 'homeView' @route /([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/([^\/]+))?\/?/, 'routesView' homeView: () => Reitti.Event.trigger 'home' r...
define ['backbone', 'utils', 'backboneAnalytics'], (Backbone, Utils) -> Backbone.Router.extend initialize: () -> @route '', 'homeView' @route /([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/([^\/]+))?\/?/, 'routesView' homeView: () => Reitti.Event.trigger 'home' r...
Check that legIndex isn't empty.
Check that legIndex isn't empty.
CoffeeScript
mit
reitti/reittiopas,reitti/reittiopas
coffeescript
## Code Before: define ['backbone', 'utils', 'backboneAnalytics'], (Backbone, Utils) -> Backbone.Router.extend initialize: () -> @route '', 'homeView' @route /([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)\/([^\/]+)(?:\/([^\/]+))?(?:\/([^\/]+))?\/?/, 'routesView' homeView: () => Reitti.Event.trigg...
cd169317083d6f4d9892ec2140ae6a4c18629b9a
Source/server/config/environment/development.js
Source/server/config/environment/development.js
'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://127.0.0.1/medcheck-dev' }, seedDB: true };
'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: "mongodb://" + process.env.DB_PORT_27017_TCP_ADDR + ":" + process.env.DB_PORT_27017_TCP_PORT + "/test" }, seedDB: true };
Add correct mongo connection string (pull from docker env)
Add correct mongo connection string (pull from docker env)
JavaScript
apache-2.0
inforeliance/MedCheck,inforeliance/MedCheck,inforeliance/MedCheck
javascript
## Code Before: 'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://127.0.0.1/medcheck-dev' }, seedDB: true }; ## Instruction: Add correct mongo connection string (pull from docker env) ## Cod...
99860316d55f1cfca169d274717f4a6fa9350f8a
src/client/reducers/StatusReducer.js
src/client/reducers/StatusReducer.js
import initialState from './initialState'; import { HEADER_SHRINKING, HEADER_EXPANDING, HEADER_ANIMATION_ENDED, LOGO_SPIN_STARTED, LOGO_SPIN_ENDED, SCROLL_STARTED, SCROLL_ENDED, APP_INIT } from '../constants'; export default function (state = initialState.status, action) { sw...
import initialState from './initialState'; import { LOGO_SPIN_STARTED, LOGO_SPIN_ENDED, PAGE_SCROLL_STARTED, SCROLL_ENDED, APP_INIT, STATUS_UPDATE, PROVIDER_CHANGE, BOARD_CHANGE, THREAD_REQUESTED, BOARD_REQUESTED, } from '../constants'; export default function (state = init...
Add STATUS_UPDATE, remove header actions from status reducer
Add STATUS_UPDATE, remove header actions from status reducer
JavaScript
mit
AdamSalma/Lurka,AdamSalma/Lurka
javascript
## Code Before: import initialState from './initialState'; import { HEADER_SHRINKING, HEADER_EXPANDING, HEADER_ANIMATION_ENDED, LOGO_SPIN_STARTED, LOGO_SPIN_ENDED, SCROLL_STARTED, SCROLL_ENDED, APP_INIT } from '../constants'; export default function (state = initialState.status, ...
bc8e548e51fddc251eb2e915883e3ee57bb9515b
zc_common/jwt_auth/utils.py
zc_common/jwt_auth/utils.py
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payload): return ...
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): '''Constructs a payload for a user JWT. This is a slimmed down version of https://github.com/GetBlimp/django-rest-framework-jwt/blob/master/rest_framework_jwt/utils.py#L11 :param User: an object with `pk` ...
Add docstrings to jwt handlers
Add docstrings to jwt handlers
Python
mit
ZeroCater/zc_common,ZeroCater/zc_common
python
## Code Before: import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(paylo...
48aad0abed105c1c551c1853d850e00fae56377e
package.json
package.json
{ "name": "pixbi-build", "version": "0.0.0" }
{ "name": "pixbi-build", "version": "0.0.0", "devDependencies": { "grunt": "^0.4.5", "grunt-autoprefixer": "^1.0.0", "grunt-bump": "0.0.15", "grunt-closure-compiler": "0.0.21", "grunt-contrib-clean": "^0.6.0", "grunt-contrib-concat": "^0.5.0", "grunt-contrib-connect": "^0.8.0", "gr...
Add all necessary grunt tasks
Add all necessary grunt tasks
JSON
mit
pixbi/duplo,pixbi/duplo,pixbi/duplo
json
## Code Before: { "name": "pixbi-build", "version": "0.0.0" } ## Instruction: Add all necessary grunt tasks ## Code After: { "name": "pixbi-build", "version": "0.0.0", "devDependencies": { "grunt": "^0.4.5", "grunt-autoprefixer": "^1.0.0", "grunt-bump": "0.0.15", "grunt-closure-compiler": "0...
39a534d380afea37231cc0c2ca4c8a742354d6e1
app.py
app.py
from flask import Flask, render_template from sh import git app = Flask(__name__) version = git("rev-parse", "--short", "HEAD").strip() @app.route("/", methods=["GET"]) def status(): """ Status check. Display the current version of heatlamp, some basic diagnostics, and a simple form that may be used to...
import os import sys from flask import Flask, render_template from sh import git app = Flask(__name__) version = git("rev-parse", "--short", "HEAD").strip() command = os.getenv("HEATLAMP_COMMAND") def validate(): """ Validate the application configuration before launching. """ missing = [] if ...
Configure the command that's executed.
Configure the command that's executed.
Python
mit
heatlamp/heatlamp-core,heatlamp/heatlamp-core
python
## Code Before: from flask import Flask, render_template from sh import git app = Flask(__name__) version = git("rev-parse", "--short", "HEAD").strip() @app.route("/", methods=["GET"]) def status(): """ Status check. Display the current version of heatlamp, some basic diagnostics, and a simple form tha...
37cc269e71f4a7faada31c47f0e644449f38b565
test/test_helper.rb
test/test_helper.rb
$:.unshift(File.dirname(File.dirname(File.expand_path(__FILE__))) + '/lib') require "rubygems" require "test/unit" require "coveralls" Coveralls.wear! require "rumonade" # see http://stackoverflow.com/questions/2709361/monad-equivalent-in-ruby module MonadAxiomTestHelpers def assert_monad_axiom_1(monad_class, value...
$:.unshift(File.dirname(File.dirname(File.expand_path(__FILE__))) + '/lib') require "rubygems" require "test/unit" # Setup code coverage via SimpleCov and post to Coveralls.io require "simplecov" require "coveralls" SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Co...
Add SimpleCov configuration, to run coverage locally as well as Coveralls.io
Add SimpleCov configuration, to run coverage locally as well as Coveralls.io
Ruby
mit
ms-ati/rumonade
ruby
## Code Before: $:.unshift(File.dirname(File.dirname(File.expand_path(__FILE__))) + '/lib') require "rubygems" require "test/unit" require "coveralls" Coveralls.wear! require "rumonade" # see http://stackoverflow.com/questions/2709361/monad-equivalent-in-ruby module MonadAxiomTestHelpers def assert_monad_axiom_1(mo...
6363f657af23bf7142f5633eb96b8f0a23c35a18
roles/docker-engine/tasks/main.yml
roles/docker-engine/tasks/main.yml
--- - name: Add Docker APT key apt_key: keyserver="hkp://p80.pool.sks-keyservers.net:80" id=58118E89F3A912897C070ADBF76221572C52609D state=present - name: Add Docker APT repo apt_repository: repo="deb https://apt.dockerproject.org/repo ubuntu-trusty main" state=present - name: Install docker - based on "https://g...
--- - name: Add Docker APT key apt_key: keyserver=ha.pool.sks-keyservers.net id=58118E89F3A912897C070ADBF76221572C52609D state=present - name: Add Docker APT repo apt_repository: repo="deb https://apt.dockerproject.org/repo ubuntu-trusty main" state=present - name: Install docker - based on "https://get.docker.co...
Use assumed high-available keyserver hostname
Use assumed high-available keyserver hostname Fixes the following error: failed: [10.141.141.12] => {"cmd": "apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv 58118E89F3A912897C070ADBF76221572C52609D", "failed": true, "rc": 2} stderr: gpg: requesting key 2C52609D from hkp server p80.pool.sks...
YAML
apache-2.0
ypg-data/mesos-stack,ypg-data/mesos-stack
yaml
## Code Before: --- - name: Add Docker APT key apt_key: keyserver="hkp://p80.pool.sks-keyservers.net:80" id=58118E89F3A912897C070ADBF76221572C52609D state=present - name: Add Docker APT repo apt_repository: repo="deb https://apt.dockerproject.org/repo ubuntu-trusty main" state=present - name: Install docker - bas...
84a4ff5b16b0be42c969e7da50c7da7ce22fbe55
test/bootstrap.php
test/bootstrap.php
<?php /* * This file is part of Mustache.php. * * (c) 2010-2014 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require dirname(__FILE__).'/../src/Mustache/Autoloader.php'; Mustache_Autoloader::register(); require...
<?php /* * This file is part of Mustache.php. * * (c) 2010-2014 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ $loader = require dirname(__FILE__).'/../vendor/autoload.php'; $loader->add('Mustache_Test', dirname(_...
Use Composer autoload for unit tests.
Use Composer autoload for unit tests.
PHP
mit
zuluf/mustache.php,cgvarela/mustache.php,evdevgit/mustache.php,BrunoDeBarros/mustache.php,sophatvathana/mustache.php,ericariyanto/mustache.php,irontec/mustache,bobthecow/mustache.php,thecocce/mustache.php
php
## Code Before: <?php /* * This file is part of Mustache.php. * * (c) 2010-2014 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require dirname(__FILE__).'/../src/Mustache/Autoloader.php'; Mustache_Autoloader::regi...
f58c0246dc9f3e00537807f99e4a1b8969ae3365
src/exercises/00-theGitGo/conf.js
src/exercises/00-theGitGo/conf.js
'use strict' module.exports = { global: { timeLimit: Infinity }, machine: { startState: 'done', done: null }, viewer: { title: 'Getting an existing repository', steps: {}, feedback: {} }, repo: { commits: [ { msg: 'Initi...
'use strict' module.exports = { global: { timeLimit: Infinity }, machine: { startState: 'done', done: null }, viewer: { title: 'Getting an existing repository', steps: {}, feedback: { null: { done: 'Your repository now co...
Add some feedback to theGitGo
Add some feedback to theGitGo
JavaScript
mit
uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises,uid/gitstream-exercises
javascript
## Code Before: 'use strict' module.exports = { global: { timeLimit: Infinity }, machine: { startState: 'done', done: null }, viewer: { title: 'Getting an existing repository', steps: {}, feedback: {} }, repo: { commits: [ ...
cdbbb114f619a931781b4697c1ec6dc523d9819f
src/packages/collaboration/lib/session-utils.coffee
src/packages/collaboration/lib/session-utils.coffee
Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080) connectDocument: (doc, connection) -> nextOutputEventId = 1 outputListener = (event) -> event.id = n...
Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, key: '0njqmaln320dlsor') connectDocument: (doc, connection) -> nextOutputEventId = 1 outputListener = (event) -> event.id = nextOutputEventId++ console.log 'sending ...
Use PeerServer :cloud: instead of EC2
Use PeerServer :cloud: instead of EC2
CoffeeScript
mit
sekcheong/atom,originye/atom,woss/atom,sillvan/atom,rookie125/atom,niklabh/atom,Hasimir/atom,vcarrera/atom,ezeoleaf/atom,tisu2tisu/atom,dannyflax/atom,fedorov/atom,jordanbtucker/atom,alfredxing/atom,oggy/atom,dkfiresky/atom,alfredxing/atom,vinodpanicker/atom,tony612/atom,RobinTec/atom,Jdesk/atom,kdheepak89/atom,yangche...
coffeescript
## Code Before: Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080) connectDocument: (doc, connection) -> nextOutputEventId = 1 outputListener = (event) -> ...
60679fa6c82d5b858d9323bfeff41612c6b8b7b3
lib/parser.js
lib/parser.js
var sax = require('sax') var parser = {} parser.stream = function () { return sax.createStream({ trim: true, normalize: true, lowercase: true }) } parser.capture = function (stream) { return new Promise(function (resolve, reject) { var frames = [{}] stream.on('opentagstart', (node) => frame...
var sax = require('sax') var parser = {} parser.stream = function () { return sax.createStream({ trim: true, normalize: true, lowercase: true }) } parser.capture = function (stream) { return new Promise(function (resolve, reject) { var frames = [{}] stream.on('opentagstart', (node) => frame...
Throw an error if the XML is invalid.
Throw an error if the XML is invalid.
JavaScript
mpl-2.0
Schoonology/boardgamegeek
javascript
## Code Before: var sax = require('sax') var parser = {} parser.stream = function () { return sax.createStream({ trim: true, normalize: true, lowercase: true }) } parser.capture = function (stream) { return new Promise(function (resolve, reject) { var frames = [{}] stream.on('opentagstart',...
be22adbf134224dc99a82b97ae9e1e39766a0718
models/_query/BbiiMemberQuery.php
models/_query/BbiiMemberQuery.php
<?php namespace frontend\modules\bbii\models\_query; use yii\db\ActiveQuery; /** * Created to replace Yii1's scope concept. Yii2 uses query classes * * @since 0.0.5 */ class BbiiMemberQuery extends ActiveQuery { public function find() { return $this; } public function findAll() { return $this; } ...
<?php namespace frontend\modules\bbii\models\_query; use yii\db\ActiveQuery; /** * Created to replace Yii1's scope concept. Yii2 uses query classes * * @since 0.0.5 */ class BbiiMemberQuery extends ActiveQuery { public function find() { return $this; } public function findAll() { return $this; } ...
FIX query class for Member MDL
FIX query class for Member MDL
PHP
bsd-2-clause
sourcetoad/bbii2,sourcetoad/bbii2
php
## Code Before: <?php namespace frontend\modules\bbii\models\_query; use yii\db\ActiveQuery; /** * Created to replace Yii1's scope concept. Yii2 uses query classes * * @since 0.0.5 */ class BbiiMemberQuery extends ActiveQuery { public function find() { return $this; } public function findAll() { ret...
6024fd00e7a56fe027a33768b6867fe51337ee53
NanoProxyDbFunctions.js
NanoProxyDbFunctions.js
var NanoProxyDbFunctions = function(nano, prefix) { this.nano = nano; this.prefix = prefix; }; NanoProxyDbFunctions.prototype.create = function(name, callback) { return this.nano.db.create(prefixName.call(this, name), callback); }; function prefixName(name) { return [this.prefix, name].join("_"); }...
var NanoProxyDbFunctions = function(nano, prefix) { this.nano = nano; this.prefix = prefix; }; NanoProxyDbFunctions.prototype.create = function(name, callback) { return this.nano.db.create(prefixName.call(this, name), callback); }; function prefixName(name) { return [this.prefix, name].join("_"); }...
Use prefixName abstraction in nano.use
Use prefixName abstraction in nano.use
JavaScript
isc
cube-io/prefix-nano
javascript
## Code Before: var NanoProxyDbFunctions = function(nano, prefix) { this.nano = nano; this.prefix = prefix; }; NanoProxyDbFunctions.prototype.create = function(name, callback) { return this.nano.db.create(prefixName.call(this, name), callback); }; function prefixName(name) { return [this.prefix, name].join("_...
e09b563883b3663f8a619ede638ac651e2f84d55
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 - 5.6 - nightly - hhvm - hhvm-nightly branches: only: - master - /^\d+\.\d+$/ matrix: include: - php: 5.5 env: SYMFONY_VERSION=2.3.* - php: 5.5 env: SYMFONY_VERSION=2.4.* - php: 5.5 en...
language: php php: - 5.4 - 5.5 - 5.6 - nightly - hhvm - hhvm-nightly branches: only: - master - /^\d+\.\d+$/ matrix: include: - php: 5.5 env: SYMFONY_VERSION=2.3.* - php: 5.5 env: SYMFONY_VERSION=2.4.* - php: 5.5 en...
Change the after_success script to be more correct
Change the after_success script to be more correct
YAML
mit
Orbitale/CmsBundle,Orbitale/CmsBundle
yaml
## Code Before: language: php php: - 5.4 - 5.5 - 5.6 - nightly - hhvm - hhvm-nightly branches: only: - master - /^\d+\.\d+$/ matrix: include: - php: 5.5 env: SYMFONY_VERSION=2.3.* - php: 5.5 env: SYMFONY_VERSION=2.4.* - php: ...
c1ff52c1c4a416fc250edaca8fdfbe7a744d5b0c
packages/zmarkdown/config/sanitize/index.js
packages/zmarkdown/config/sanitize/index.js
const gh = require('hast-util-sanitize/lib/github') const katex = require('./katex') const merge = require('deepmerge') module.exports = merge.all([gh, katex, { tagNames: ['span', 'abbr', 'figure', 'figcaption', 'iframe'], attributes: { a: ['ariaHidden', 'class', 'className'], div: ['id', 'cla...
const gh = require('hast-util-sanitize/lib/github') const katex = require('./katex') const merge = require('deepmerge') module.exports = merge.all([gh, katex, { tagNames: ['span', 'abbr', 'figure', 'figcaption', 'iframe'], attributes: { a: ['ariaHidden', 'class', 'className'], abbr: ['title']...
Allow using details for custom-blocks
[zmarkdown] Allow using details for custom-blocks
JavaScript
mit
zestedesavoir/zmarkdown,zestedesavoir/zmarkdown,zestedesavoir/zmarkdown
javascript
## Code Before: const gh = require('hast-util-sanitize/lib/github') const katex = require('./katex') const merge = require('deepmerge') module.exports = merge.all([gh, katex, { tagNames: ['span', 'abbr', 'figure', 'figcaption', 'iframe'], attributes: { a: ['ariaHidden', 'class', 'className'], div...
79c0a4679ca03fb50fb1a641073358214a32cb6b
docs/package.json
docs/package.json
{ "scripts": { "start": "gatsby develop --prefix-paths" }, "dependencies": { "gatsby": "2.3.14", "gatsby-theme-apollo-docs": "0.2.47" } }
{ "scripts": { "start": "gatsby develop" }, "dependencies": { "gatsby": "2.3.14", "gatsby-theme-apollo-docs": "0.2.47" } }
Remove --prefix-paths option in development
Remove --prefix-paths option in development
JSON
mit
apollographql/apollo-android,apollostack/apollo-android,apollographql/apollo-android,apollographql/apollo-android,apollostack/apollo-android,apollostack/apollo-android
json
## Code Before: { "scripts": { "start": "gatsby develop --prefix-paths" }, "dependencies": { "gatsby": "2.3.14", "gatsby-theme-apollo-docs": "0.2.47" } } ## Instruction: Remove --prefix-paths option in development ## Code After: { "scripts": { "start": "gatsby develop" }, "dependencies":...
932aba59fb6ed88e22afcf4183ea73a69321ab16
resources/chat-client/client.js
resources/chat-client/client.js
var CHAT_SERVER = "http://localhost:7000" var DEFAULT_USERNAME = "Guest"; $(document).ready(function(){ var socket = io.connect(CHAT_SERVER); socket.on('welcome', showGreetings); socket.on('message', showIncomingMessage); socket.on('info', showSystemInfo); addWaterMark(); sendButtonOnClick(); changeBut...
var CHAT_SERVER = "http://localhost:7000" var DEFAULT_USERNAME = "Guest"; $(document).ready(function(){ var socket = io.connect(CHAT_SERVER); socket.on('welcome', showGreetings); socket.on('message', showIncomingMessage); socket.on('info', showSystemInfo); addWaterMark(); sendButtonOnClick(); changeBut...
Clear message textbox after message is sent.
Clear message textbox after message is sent.
JavaScript
mit
ihcsim/nodejs-tutorial,ihcsim/node-tutorial,ihcsim/nodejs-tutorial
javascript
## Code Before: var CHAT_SERVER = "http://localhost:7000" var DEFAULT_USERNAME = "Guest"; $(document).ready(function(){ var socket = io.connect(CHAT_SERVER); socket.on('welcome', showGreetings); socket.on('message', showIncomingMessage); socket.on('info', showSystemInfo); addWaterMark(); sendButtonOnClic...
4731e9f537e2f38bdabf086d9cd3fe4abec35b6d
client/app/bundles/HelloWorld/components/admin_dashboard/admin_dashboard_top.jsx
client/app/bundles/HelloWorld/components/admin_dashboard/admin_dashboard_top.jsx
import React from 'react' export default React.createClass({ render: function () { return ( <div className="admin-dashboard-top"> <div className="row"> <div className="col-xs-12 col-md-7"> <a href="mailto:ryan@quill.org?subject=Bulk Upload Teachers via CSV&body=Please attach ...
import React from 'react' export default React.createClass({ render: function () { return ( <div className="admin-dashboard-top"> <div className="row"> <div className="col-xs-12 col-md-7"> <a href="mailto:ryan@quill.org?subject=Bulk Upload Teachers via CSV&body=Please attach ...
Update admin dashboard with Hannah
Update admin dashboard with Hannah Replaced elliot with hannah
JSX
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
jsx
## Code Before: import React from 'react' export default React.createClass({ render: function () { return ( <div className="admin-dashboard-top"> <div className="row"> <div className="col-xs-12 col-md-7"> <a href="mailto:ryan@quill.org?subject=Bulk Upload Teachers via CSV&bod...
668a644272051f9aa76c53c49be853859ac75ad9
app/views/groups/show.html.erb
app/views/groups/show.html.erb
<% add_body_classes "map" %> <% page_heading "Group" %> <div id="inner"> <div id="title"> <h1><%= @group.name %></h1> <h2> TerraLing </h2> </div> <div id="intro"> <%- if @group.description.present? -%> <p><%= @group.description %></p> <% end %> <p> <%- @gr...
<% add_body_classes "map" %> <% page_heading "Group" %> <div id="inner"> <div id="title"> <h1><%= @group.name %></h1> <h2> TerraLing </h2> </div> <div id="intro"> <%- if @group.description.present? -%> <p><%= @group.description %></p> <% end %> <p> <%- @gr...
Add search link to group home
Add search link to group home
HTML+ERB
mit
linguisticexplorer/Linguistic-Explorer,linguisticexplorer/Linguistic-Explorer,linguisticexplorer/Linguistic-Explorer
html+erb
## Code Before: <% add_body_classes "map" %> <% page_heading "Group" %> <div id="inner"> <div id="title"> <h1><%= @group.name %></h1> <h2> TerraLing </h2> </div> <div id="intro"> <%- if @group.description.present? -%> <p><%= @group.description %></p> <% end %> <p> <%- @g...
d00ce63fc62d7a977c8ba9aac97a75725201202e
modules/govuk/templates/sidekiq_monitoring_nginx_config.conf.erb
modules/govuk/templates/sidekiq_monitoring_nginx_config.conf.erb
server { server_name <%= @full_domain %>; listen localhost:80; proxy_connect_timeout 1s; proxy_read_timeout 15s; access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined; access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event; error_log /var/log/nginx/<%= @full_d...
server { server_name <%= @full_domain %>; listen localhost:80; proxy_connect_timeout 1s; proxy_read_timeout 15s; access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined; access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event; error_log /var/log/nginx/<%= @full_d...
Add a path for email-alert-api sidekiq monitoring
Add a path for email-alert-api sidekiq monitoring To allow monitoring of the email-alert-api add a path to the nginx vhost https://www.pivotaltracker.com/story/show/82469592
HTML+ERB
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
html+erb
## Code Before: server { server_name <%= @full_domain %>; listen localhost:80; proxy_connect_timeout 1s; proxy_read_timeout 15s; access_log /var/log/nginx/<%= @full_domain %>-access.log timed_combined; access_log /var/log/nginx/<%= @full_domain %>-json.event.access.log json_event; error_log /var/log/n...
8dc959a5c8d07783c6af578624d81a2244c1c979
arch/roles/base/tasks/pacman.yml
arch/roles/base/tasks/pacman.yml
--- - name: install makepkg configuration become: true template: src: makepkg.conf.j2 dest: /etc/makepkg.conf owner: root group: root mode: 0644 - name: install pacman configuration become: true template: src: pacman.conf.j2 dest: /etc/pacman.conf owner: root group: root ...
--- - name: install makepkg configuration become: true template: src: makepkg.conf.j2 dest: /etc/makepkg.conf owner: root group: root mode: 0644 - name: install pacman configuration become: true template: src: pacman.conf.j2 dest: /etc/pacman.conf owner: root group: root ...
Add more packaging related packages
Add more packaging related packages
YAML
mpl-2.0
mfinelli/arch-install
yaml
## Code Before: --- - name: install makepkg configuration become: true template: src: makepkg.conf.j2 dest: /etc/makepkg.conf owner: root group: root mode: 0644 - name: install pacman configuration become: true template: src: pacman.conf.j2 dest: /etc/pacman.conf owner: root ...
f853e82a555fa9d4cd654e300ae9c12e13cc0d6d
templates/CarouselSlide.ss
templates/CarouselSlide.ss
<div class="slick-carousel-slide"> $Image <% if $Content %> <div class="slick-carousel-slide-content"> $Content </div> <% end_if %> </div>
<div class="slick-carousel-slide" style="background-image: url('$Image.Link.XML');"> <% if $Content %> <div class="slick-carousel-slide-content"> $Content </div> <% end_if %> </div>
Implement the slide image as a background image instead of a separate <img> element.
Implement the slide image as a background image instead of a separate <img> element.
Scheme
mit
Taitava/silverstripe-slickcarousel,Taitava/silverstripe-slickcarousel
scheme
## Code Before: <div class="slick-carousel-slide"> $Image <% if $Content %> <div class="slick-carousel-slide-content"> $Content </div> <% end_if %> </div> ## Instruction: Implement the slide image as a background image instead of a separate <img> element. ## Code After: <div class="slick-carousel-slide" styl...
3816849e62724eace5fa06bee9006a7f56933bad
.travis.yml
.travis.yml
language: ruby rvm: - 2.2.1 before_install: gem install bundler -v 1.10.6
language: ruby rvm: - 2.0.0 - 2.1.0 - 2.2.0 - 2.2.1 - ruby-head before_install: gem install bundler -v 1.10.6 addons: code_climate: repo_token: aaa2bcd71ac641474a13caabe294beeb26abcc7c4dd82f3395a7b9193bb20d02
Test on a few Ruby versions & notify code_climate
Test on a few Ruby versions & notify code_climate
YAML
mit
rob-murray/five-star,rob-murray/five-star
yaml
## Code Before: language: ruby rvm: - 2.2.1 before_install: gem install bundler -v 1.10.6 ## Instruction: Test on a few Ruby versions & notify code_climate ## Code After: language: ruby rvm: - 2.0.0 - 2.1.0 - 2.2.0 - 2.2.1 - ruby-head before_install: gem install bundler -v 1.10.6 addons: code_climate:...
54a3f902d061a4c6f17a551f0f3a4b49d2df96d3
lib/hamlit/block/script_compiler_extension.rb
lib/hamlit/block/script_compiler_extension.rb
module Hamlit module Block # Suppress block's internal rendering result and pass it to [:capture, ...]. module ScriptCompilerExtension def compile_script_assign(var, node, &block) if node.children.empty? super else [:multi, [:block, "#{var} = #{node.value[:...
module Hamlit module Block # Suppress block's internal rendering result and pass it to [:capture, ...]. module ScriptCompilerExtension def compile_script_assign(var, node, &block) if node.children.empty? super else [:multi, [:block, "#{var} = #{node.value[:...
Use another local variable inside block
Use another local variable inside block
Ruby
mit
hamlit/hamlit-block,hamlit/hamlit-block
ruby
## Code Before: module Hamlit module Block # Suppress block's internal rendering result and pass it to [:capture, ...]. module ScriptCompilerExtension def compile_script_assign(var, node, &block) if node.children.empty? super else [:multi, [:block, "#{var} ...
3595402d65685ce014504d2cad30ca32623f2248
src/IP2LocLite/Commands/DownloadCsvCommand.php
src/IP2LocLite/Commands/DownloadCsvCommand.php
<?php namespace NemC\IP2LocLite\Commands; use Illuminate\Console\Command, NemC\IP2LocLite\Services\IP2LocLiteService, NemC\IP2LocLite\Exceptions\NotLoggedInResponseException, NemC\IP2LocLite\Exceptions\UnsupportedDatabaseCommandException; class DownloadCsvCommand extends Command { protected $name = '...
<?php namespace NemC\IP2LocLite\Commands; use Illuminate\Console\Config, Illuminate\Console\Command, NemC\IP2LocLite\Services\IP2LocLiteService, NemC\IP2LocLite\Exceptions\NotLoggedInResponseException, NemC\IP2LocLite\Exceptions\UnsupportedDatabaseCommandException; class DownloadCsvCommand extends Co...
Fix Config loading in DownloadCsv
Fix Config loading in DownloadCsv
PHP
mit
nem-c/ip2loc-lite
php
## Code Before: <?php namespace NemC\IP2LocLite\Commands; use Illuminate\Console\Command, NemC\IP2LocLite\Services\IP2LocLiteService, NemC\IP2LocLite\Exceptions\NotLoggedInResponseException, NemC\IP2LocLite\Exceptions\UnsupportedDatabaseCommandException; class DownloadCsvCommand extends Command { pro...
8f51331a6440350f34fc127501ecf2824a97a215
petridish/src/main/java/org/nusco/narjillos/views/utilities/PetriDishState.java
petridish/src/main/java/org/nusco/narjillos/views/utilities/PetriDishState.java
package org.nusco.narjillos.views.utilities; public class PetriDishState { private volatile Light light = Light.ON; private volatile Speed speed = Speed.REALTIME; public Light getLight() { return light; } public Speed getSpeed() { return speed; } public void toggleLight() { if (light == Light.INFRARED)...
package org.nusco.narjillos.views.utilities; public class PetriDishState { private volatile Light light = Light.ON; private volatile Speed speed = Speed.REALTIME; public Light getLight() { return light; } public Speed getSpeed() { return speed; } public void toggleLight() { switch (light) { case INFR...
Refactor Petri Dish state machine
Refactor Petri Dish state machine
Java
mit
colinrubbert/narjillos,mixolidia/narjillos,nusco/narjillos,mixolidia/narjillos,colinrubbert/narjillos
java
## Code Before: package org.nusco.narjillos.views.utilities; public class PetriDishState { private volatile Light light = Light.ON; private volatile Speed speed = Speed.REALTIME; public Light getLight() { return light; } public Speed getSpeed() { return speed; } public void toggleLight() { if (light ==...
4e18c203b7f61c29ed241335a73748a987c7d796
src/components/Echarts/index.js
src/components/Echarts/index.js
import React, { Component } from 'react'; import { WebView, View, StyleSheet } from 'react-native'; import renderChart from './renderChart'; import echarts from './echarts.min'; export default class App extends Component { componentWillReceiveProps(nextProps) { if(nextProps.option !== this.props.option) { ...
import React, { Component } from 'react'; import { WebView, View, StyleSheet, Platform } from 'react-native'; import renderChart from './renderChart'; import echarts from './echarts.min'; export default class App extends Component { componentWillReceiveProps(nextProps) { if(nextProps.option !== this.props.option...
Fix echarts overflow on Android
Fix echarts overflow on Android
JavaScript
mit
somonus/react-native-echarts,somonus/react-native-echarts,somonus/react-native-echarts,somonus/react-native-echarts
javascript
## Code Before: import React, { Component } from 'react'; import { WebView, View, StyleSheet } from 'react-native'; import renderChart from './renderChart'; import echarts from './echarts.min'; export default class App extends Component { componentWillReceiveProps(nextProps) { if(nextProps.option !== this.props....
6d8a682a4a47a38017289ecd5ea9505a5ebe47bf
spec/warden/jwt_auth/hooks_spec.rb
spec/warden/jwt_auth/hooks_spec.rb
require 'spec_helper' require 'rack/test' describe Warden::JWTAuth::Hooks do include_context 'configuration' include_context 'middleware' include_context 'fixtures' context 'with user set' do let(:app) { warden_app(dummy_app) } # :reek:UtilityFunction def token(request) request.env['warden...
require 'spec_helper' require 'rack/test' describe Warden::JWTAuth::Hooks do include_context 'configuration' include_context 'middleware' include_context 'fixtures' context 'with user set' do let(:app) { warden_app(dummy_app) } # :reek:UtilityFunction def token(request) request.env['warden...
Test hook provides user when generating the token
Test hook provides user when generating the token
Ruby
mit
waiting-for-dev/warden-jwt_auth,waiting-for-dev/warden-jwt_auth
ruby
## Code Before: require 'spec_helper' require 'rack/test' describe Warden::JWTAuth::Hooks do include_context 'configuration' include_context 'middleware' include_context 'fixtures' context 'with user set' do let(:app) { warden_app(dummy_app) } # :reek:UtilityFunction def token(request) req...
13d5ba1e887e0c9520c7f30b08a740fc7529427c
src/main/java/com/wyverngame/rmi/api/method/GetBattleRanksMethod.java
src/main/java/com/wyverngame/rmi/api/method/GetBattleRanksMethod.java
package com.wyverngame.rmi.api.method; import java.rmi.RemoteException; import java.util.Map; import com.wyverngame.rmi.api.RMIClient; import com.wyverngame.rmi.api.http.Request; import com.wyverngame.rmi.api.response.BattleRanksResponse; public final class GetBattleRanksMethod extends Method<BattleRanksResponse> { ...
package com.wyverngame.rmi.api.method; import java.rmi.RemoteException; import java.util.Map; import com.wyverngame.rmi.api.RMIClient; import com.wyverngame.rmi.api.http.Request; import com.wyverngame.rmi.api.response.BattleRanksResponse; public final class GetBattleRanksMethod extends Method<BattleRanksResponse> { ...
Update battle ranks cap to 10.
Update battle ranks cap to 10.
Java
mit
jonathanedgecombe/wu-json-rmi-api
java
## Code Before: package com.wyverngame.rmi.api.method; import java.rmi.RemoteException; import java.util.Map; import com.wyverngame.rmi.api.RMIClient; import com.wyverngame.rmi.api.http.Request; import com.wyverngame.rmi.api.response.BattleRanksResponse; public final class GetBattleRanksMethod extends Method<BattleR...
2cb41daee524d01ee3324fd7996ff49a0bb40822
src/main/java/sg/ncl/testbed_interface/JpaConfig.java
src/main/java/sg/ncl/testbed_interface/JpaConfig.java
package sg.ncl.testbed_interface; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * @author Christopher Zhong */ @Configuration @EnableJpaRepos...
package sg.ncl.testbed_interface; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.transaction.annotation.EnableTransactionManagem...
Enable auditing of entities (DEV-15)
Enable auditing of entities (DEV-15)
Java
apache-2.0
nus-ncl/services-in-one,nus-ncl/services-in-one
java
## Code Before: package sg.ncl.testbed_interface; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * @author Christopher Zhong */ @Configuration...
08489ea2c1596a067b482878ff4450db43c08612
conf.py
conf.py
import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: # only import and set the theme if we're building docs locally import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # otherwise, readthedocs.org uses their theme b...
import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: # only import and set the theme if we're building docs locally import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # otherwise, readthedocs.org uses their theme b...
Add custom CSS style to FIWARE doc
Add custom CSS style to FIWARE doc Change-Id: I74293d488e0cd762ad023b94879ee618a4016110
Python
apache-2.0
Kurento/doc-kurento,SanMi86/doc-kurento,SanMi86/doc-kurento,SanMi86/doc-kurento,Kurento/doc-kurento,Kurento/doc-kurento,SanMi86/doc-kurento
python
## Code Before: import os on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if not on_rtd: # only import and set the theme if we're building docs locally import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # otherwise, readthedocs.org us...
b7f408d7c6b6b9f80350dd3d24b55fb7ce71c30b
controllers/bot.php
controllers/bot.php
<?php class BotController extends AuthenticatedController { public function update( $boturl = '' ) { $this->requireLogin(); require_once 'models/grader/bot.php'; if ( empty( $boturl ) ) { go( 'bot', 'update', [ 'boturl_empty' => true ] ); } ...
<?php class BotController extends AuthenticatedController { public function update( $boturl = '' ) { $this->requireLogin(); require_once 'models/grader/bot.php'; if ( empty( $boturl ) ) { go( 'bot', 'update', [ 'boturl_empty' => true ] ); } ...
Define user earlier so it can be used more
Define user earlier so it can be used more
PHP
mit
dionyziz/endofcodes,VitSalis/endofcodes,dionyziz/endofcodes,VitSalis/endofcodes,dionyziz/endofcodes,VitSalis/endofcodes,VitSalis/endofcodes
php
## Code Before: <?php class BotController extends AuthenticatedController { public function update( $boturl = '' ) { $this->requireLogin(); require_once 'models/grader/bot.php'; if ( empty( $boturl ) ) { go( 'bot', 'update', [ 'boturl_empty' => true ] );...
374022f12d1d9ee211787e550ef9dd250ce461d4
src/app/user/shared/user.service.spec.ts
src/app/user/shared/user.service.spec.ts
import { inject, TestBed } from '@angular/core/testing'; import { UserService } from './user.service'; import { User } from './user'; import { Observable, of } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { ProgressService } from '../../shared/providers/progress.service'; import { Notificatio...
import { inject, TestBed, async } from '@angular/core/testing'; import { UserService } from './user.service'; import { User } from './user'; import { Observable, of } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { ProgressService } from '../../shared/providers/progress.service'; import { Noti...
Fix UserService test to use async to properly verify after an observable resolves.
Fix UserService test to use async to properly verify after an observable resolves.
TypeScript
apache-2.0
uw-it-edm/content-services-ui,uw-it-edm/content-services-ui,uw-it-edm/content-services-ui
typescript
## Code Before: import { inject, TestBed } from '@angular/core/testing'; import { UserService } from './user.service'; import { User } from './user'; import { Observable, of } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { ProgressService } from '../../shared/providers/progress.service'; impo...
b358de8ea463833e5ed66e1072cb268e10e3709d
lib/Pakket/ConfigReader/TOML.pm
lib/Pakket/ConfigReader/TOML.pm
package Pakket::ConfigReader::TOML; # ABSTRACT: A TOML config reader use Moose; use TOML::Parser; use Types::Path::Tiny qw< Path >; with qw< Pakket::Role::ConfigReader >; has filename => ( is => 'ro', isa => Path, coerce => 1, required => 1, ); sub read_config { my $self = shift; my $co...
package Pakket::ConfigReader::TOML; # ABSTRACT: A TOML config reader use Moose; use TOML::Parser; use Types::Path::Tiny qw< Path >; use Carp qw< croak >; with qw< Pakket::Role::ConfigReader >; has filename => ( is => 'ro', isa => Path, coerce => 1, required => 1, ); sub read_config { my $self ...
Use Carp::croak() instead of die()
Use Carp::croak() instead of die()
Perl
mit
xsawyerx/pkt,xsawyerx/pakket,xsawyerx/pakket
perl
## Code Before: package Pakket::ConfigReader::TOML; # ABSTRACT: A TOML config reader use Moose; use TOML::Parser; use Types::Path::Tiny qw< Path >; with qw< Pakket::Role::ConfigReader >; has filename => ( is => 'ro', isa => Path, coerce => 1, required => 1, ); sub read_config { my $self ...
fa6e787d64c5f110e34b640ea62380287e3c69e1
core/app/views/spree/order_mailer/cancel_email.text.erb
core/app/views/spree/order_mailer/cancel_email.text.erb
Dear Customer, Your order has been CANCELED. Please retain this cancellation information for your records. ============================================================ Order Summary [CANCELED] ============================================================ <% @order.line_items.each do |item| %> <%= item.variant.sku %> ...
Dear Customer, Your order has been CANCELED. Please retain this cancellation information for your records. ============================================================ Order Summary [CANCELED] ============================================================ <% @order.line_items.each do |item| %> <%= item.variant.sku %...
Make cancel email match changes in confirm email made by Radar in 5bef374
Make cancel email match changes in confirm email made by Radar in 5bef374 Fixes #1621
HTML+ERB
bsd-3-clause
jspizziri/spree,edgward/spree,sunny2601/spree,dotandbo/spree,lyzxsc/spree,gautamsawhney/spree,wolfieorama/spree,maybii/spree,degica/spree,vmatekole/spree,dandanwei/spree,richardnuno/solidus,project-eutopia/spree,piousbox/spree,joanblake/spree,tesserakt/clean_spree,grzlus/spree,CJMrozek/spree,yomishra/pce,mleglise/spree...
html+erb
## Code Before: Dear Customer, Your order has been CANCELED. Please retain this cancellation information for your records. ============================================================ Order Summary [CANCELED] ============================================================ <% @order.line_items.each do |item| %> <%= item...
fa00133c08477f7f40a35c012919016cba173fb2
meta-resin-ts/recipes-bsp/u-boot/u-boot-script-ts/resin_sdboot.txt
meta-resin-ts/recipes-bsp/u-boot/u-boot-script-ts/resin_sdboot.txt
setenv uimage /uImage setenv bootargs root=/dev/mmcblk1p2 rootwait rw console=ttymxc0,115200 enable_wait_mode=off if load mmc 0:1 ${fdtaddr} /imx6${cpu}-ts4900-${baseboardid}.dtb; then echo $baseboardid detected; else echo Booting default device tree; load mmc 0:1 ${fdtaddr} /imx6${cpu}-ts4900.dtb; fi; load mmc 0:1 ${l...
setenv uimage /boot/uImage setenv bootargs root=/dev/mmcblk1p2 rootwait rw console=ttymxc0,115200 enable_wait_mode=off if load mmc 0:1 ${fdtaddr} /boot/imx6${cpu}-ts4900-${baseboardid}.dtb; then echo $baseboardid detected; else echo Booting default device tree; load mmc 0:1 ${fdtaddr} /boot/imx6${cpu}-ts4900.dtb; fi; l...
Update file location for the boot script
u-boot-script-ts: Update file location for the boot script Signed-off-by: Theodor Gherzan <be3f40ffe21d83aefcbc279c996fd6bca5445244@resin.io>
Text
apache-2.0
resin-os/meta-resin,resin-os/meta-resin,resin-os/meta-resin,resin-os/meta-resin
text
## Code Before: setenv uimage /uImage setenv bootargs root=/dev/mmcblk1p2 rootwait rw console=ttymxc0,115200 enable_wait_mode=off if load mmc 0:1 ${fdtaddr} /imx6${cpu}-ts4900-${baseboardid}.dtb; then echo $baseboardid detected; else echo Booting default device tree; load mmc 0:1 ${fdtaddr} /imx6${cpu}-ts4900.dtb; fi; ...
996e3b524bad849509d1375928f575399c292b51
config.ru
config.ru
require 'application' use Rack::Session::Cookie use Rack::ShowExceptions run Application
require 'application' use Rack::Session::Cookie use Rack::ShowExceptions use Rack::Static, :urls => [ '/favicon.ico', '/css' ], :root => "public" run Application
Use the Rack::Static middleware for serving the static public folder.
Use the Rack::Static middleware for serving the static public folder.
Ruby
mit
eddanger/sinatra-template
ruby
## Code Before: require 'application' use Rack::Session::Cookie use Rack::ShowExceptions run Application ## Instruction: Use the Rack::Static middleware for serving the static public folder. ## Code After: require 'application' use Rack::Session::Cookie use Rack::ShowExceptions use Rack::Static, :urls => [ '/favico...
1ebc81d8ee9473c52780c50040afba89ac7fa8f0
src/common/me/nallar/exception/ThreadStuckError.java
src/common/me/nallar/exception/ThreadStuckError.java
package me.nallar.exception; /** * Thrown via Thread.stop() to try to resolve a deadlock, should be caught in Thread.run(), and thread should attempt to resume working. */ public class ThreadStuckError extends Error { public ThreadStuckError() { super(); } public ThreadStuckError(final String message...
package me.nallar.exception; /** * Thrown via Thread.stop() to try to resolve a deadlock, should be caught in Thread.run(), and thread should attempt to resume working. */ public class ThreadStuckError extends Error { public ThreadStuckError() { super(); } public ThreadStuckError(final String message...
Remove JDK 7 only constructor
Remove JDK 7 only constructor Signed-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>
Java
mit
nallar/TickThreading
java
## Code Before: package me.nallar.exception; /** * Thrown via Thread.stop() to try to resolve a deadlock, should be caught in Thread.run(), and thread should attempt to resume working. */ public class ThreadStuckError extends Error { public ThreadStuckError() { super(); } public ThreadStuckError(final String m...
17a94591d5df4a77153888b2cb71a494233d39a7
lib/settings/allowed_phone_numbers.js
lib/settings/allowed_phone_numbers.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict' module.exports = (config, Settings, log) => { class AllowedPhoneNumbers extends Settings { co...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict' module.exports = (config, Settings, log) => { class AllowedPhoneNumbers extends Settings { co...
Store allowed phone numbers in a Set
chore(sms): Store allowed phone numbers in a Set
JavaScript
mpl-2.0
mozilla/fxa-customs-server,mozilla/fxa-customs-server
javascript
## Code Before: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 'use strict' module.exports = (config, Settings, log) => { class AllowedPhoneNumbers extends S...
7e96f42ead976f5e2935933e2c0aae167ac4c88c
part-responsive-svg.php
part-responsive-svg.php
<?php /** * The default template for displaying content. Used for both single and index/archive/search. * * @subpackage cerulean * @since cerulean 4.0 */ global $responsive_svg; ?> <?php if (!empty(get_field_img($responsive_svg['img_field']))){ ?> <?php $path = get_attached_file(get_field($respon...
<?php /** * The default template for displaying content. Used for both single and index/archive/search. * * @subpackage cerulean * @since cerulean 4.0 */ global $responsive_svg; ?> <?php if (!empty(get_field($responsive_svg['img_field'],$responsive_svg['post_id']))){ ?> <?php $path =...
Support for post id/opions page in responsive svg
Support for post id/opions page in responsive svg
PHP
mit
studioup/cerulean,studioup/cerulean,studioup/cerulean,studioup/cerulean,studioup/cerulean
php
## Code Before: <?php /** * The default template for displaying content. Used for both single and index/archive/search. * * @subpackage cerulean * @since cerulean 4.0 */ global $responsive_svg; ?> <?php if (!empty(get_field_img($responsive_svg['img_field']))){ ?> <?php $path = get_attached_file(g...
f784fdcb82a284c2909026e3309160d5a82c9452
_posts/faq/2014-09-10-access-to-other-repositories-fails-during-build.md
_posts/faq/2014-09-10-access-to-other-repositories-fails-during-build.md
--- title: Access to other repositories fails during build layout: page tags: - faq - build error - ssh key - github - bitbucket categories: - faq --- Some builds require access to other private repositories for example to use as a dependency. Every project on the Codeship gets an SSH Key you can use to giv...
--- title: Access to other repositories fails during build layout: page tags: - faq - build error - ssh key - github - bitbucket categories: - faq --- Some builds require access to other private repositories for example to use as a dependency. Codeship creates a SSH key pair for each project when you first ...
Update article on accessing remote repositories
Update article on accessing remote repositories
Markdown
mit
codeship/documentation,mlocher/documentation,codeship/documentation,mlocher/documentation,codeship/documentation,codeship/documentation,mlocher/documentation,mlocher/documentation
markdown
## Code Before: --- title: Access to other repositories fails during build layout: page tags: - faq - build error - ssh key - github - bitbucket categories: - faq --- Some builds require access to other private repositories for example to use as a dependency. Every project on the Codeship gets an SSH Key yo...
0b4716822f6aa77075919b9b31956751d8fd8523
.emacs.d/lisp/pjs-stardica.el
.emacs.d/lisp/pjs-stardica.el
;;; pjs-stardica.el --- Stardica code and config -*- lexical-binding: t; -*- ;;; Commentary: ;;; Code: (require 'pjs) (setq pjs-inhibit-clojure-align-on-save 't) (setq pjs-inhibit-cleanup-on-save 't) (setq default-directory "~/") (require 'org) (require 'projectile) (setq projectile-project-root-files nil) (add-to-li...
;;; pjs-stardica.el --- Stardica code and config -*- lexical-binding: t; -*- ;;; Commentary: ;;; Code: (require 'pjs) (setq pjs-inhibit-clojure-align-on-save 't) (setq pjs-inhibit-cleanup-on-save 't) (setq default-directory "~/") (require 'org) (require 'projectile) (setq projectile-project-root-files nil) (add-to-li...
Add dev-system jack-in as command
Add dev-system jack-in as command
Emacs Lisp
apache-2.0
pjstadig/dotfiles,pjstadig/dotfiles
emacs-lisp
## Code Before: ;;; pjs-stardica.el --- Stardica code and config -*- lexical-binding: t; -*- ;;; Commentary: ;;; Code: (require 'pjs) (setq pjs-inhibit-clojure-align-on-save 't) (setq pjs-inhibit-cleanup-on-save 't) (setq default-directory "~/") (require 'org) (require 'projectile) (setq projectile-project-root-files ...
206cacc3948677eefae567aa39dbf233370d045b
app/models/rglossa/corpus_text.rb
app/models/rglossa/corpus_text.rb
module Rglossa class CorpusText < ActiveRecord::Base has_and_belongs_to_many :metadata_values, join_table: 'rglossa_corpus_texts_metadata_values', foreign_key: 'rglossa_corpus_text_id', association_foreign_key: 'rglossa_metadata_value_id' class << self ...
module Rglossa class CorpusText < ActiveRecord::Base has_and_belongs_to_many :metadata_values, join_table: 'rglossa_corpus_texts_metadata_values', foreign_key: 'rglossa_corpus_text_id', association_foreign_key: 'rglossa_metadata_value_id' class << self ...
Add CorpusText.by_tid to easily find a text by its text id
Add CorpusText.by_tid to easily find a text by its text id
Ruby
mit
textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa
ruby
## Code Before: module Rglossa class CorpusText < ActiveRecord::Base has_and_belongs_to_many :metadata_values, join_table: 'rglossa_corpus_texts_metadata_values', foreign_key: 'rglossa_corpus_text_id', association_foreign_key: 'rglossa_metadata_value_id' ...
ce24b8afbd77ad4fadc7d5846401afd0bfa5d61d
app/assets/stylesheets/review_queues.scss
app/assets/stylesheets/review_queues.scss
// Place all the styles related to the ReviewQueues controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .top-filters { margin: 1.5em 0; } /* Keep the "Skip" button on review pages in the same location with or with or without an NAA butto...
// Place all the styles related to the ReviewQueues controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .top-filters { margin: 1.5em 0; } /* Keep the "Skip" button on review pages in the same location with or without an NAA button. */ bo...
Add colors and icons to review queue buttons
Add colors and icons to review queue buttons
SCSS
cc0-1.0
Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke
scss
## Code Before: // Place all the styles related to the ReviewQueues controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .top-filters { margin: 1.5em 0; } /* Keep the "Skip" button on review pages in the same location with or with or with...
faeb378dba770d6a9b37b5a629006ec804942b0c
us_ignite/templates/hubs/object_list.html
us_ignite/templates/hubs/object_list.html
{% extends "base.html" %} {% block title %}Ignite communities - {{ block.super }}{% endblock title %} {% block content %} <h1>Ignite communities</h1> {% for object in object_list %} <div> <h2><a href="{{ object.get_absolute_url }}">{{ object.name }}</a></h2> <p>{{ object.summary }}</p> </div> {% endfor%} {% end...
{% extends "base.html" %} {% block title %}Ignite communities - {{ block.super }}{% endblock title %} {% block content %} <h1>Ignite communities</h1> <p> <a href="{% url 'hub_application'%}">Apply to be an Ignite Community.</a> </p> {% for object in object_list %} <div> <h2><a href="{{ object.get_absolute_url }...
Add register community link in the hub detail page.
Add register community link in the hub detail page.
HTML
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
html
## Code Before: {% extends "base.html" %} {% block title %}Ignite communities - {{ block.super }}{% endblock title %} {% block content %} <h1>Ignite communities</h1> {% for object in object_list %} <div> <h2><a href="{{ object.get_absolute_url }}">{{ object.name }}</a></h2> <p>{{ object.summary }}</p> </div> {%...
1a3db115de722a24780009683f36011e036e9086
tests/test_completion.py
tests/test_completion.py
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ "bash", ...
Update completion tests, checking for printed message
:white_check_mark: Update completion tests, checking for printed message
Python
mit
tiangolo/typer,tiangolo/typer
python
## Code Before: import os import subprocess import sys from pathlib import Path import typer from typer.testing import CliRunner from first_steps import tutorial001 as mod runner = CliRunner() app = typer.Typer() app.command()(mod.main) def test_show_completion(): result = subprocess.run( [ ...
94f644dda0b76812bea019e7ca66ac3862c514ab
quality.rb
quality.rb
require 'json' require 'net/http' require 'uri' if ARGV.length < 1 puts "Usage: #{$PROGRAM_NAME} [POD_NAME]" exit 1 end uri = URI.parse("https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/#{ARGV[0]}/stats") quality = Net::HTTP.get_response(uri).body if quality[0] != '[' puts quality exit 1 end quality = JSON...
require 'json' require 'net/http' require 'uri' if ARGV.length < 1 puts "Usage: #{$PROGRAM_NAME} [POD_NAME]" exit 1 end uri = URI.parse("https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/#{ARGV[0]}/stats") quality = Net::HTTP.get_response(uri).body if quality[0] != '{' puts quality exit 1 end quality = JSON...
Update for newer version of CD API.
Update for newer version of CD API.
Ruby
mit
neonichu/pod-utils
ruby
## Code Before: require 'json' require 'net/http' require 'uri' if ARGV.length < 1 puts "Usage: #{$PROGRAM_NAME} [POD_NAME]" exit 1 end uri = URI.parse("https://cocoadocs-api-cocoapods-org.herokuapp.com/pods/#{ARGV[0]}/stats") quality = Net::HTTP.get_response(uri).body if quality[0] != '[' puts quality exit 1 en...
27fe53b384b7c126875f83828d55d6978299d3e0
scripts/build.sh
scripts/build.sh
ORIGIN_ROOT="." DIST_ROOT="$ORIGIN_ROOT/dist" # clean up rm -Rf $DIST_ROOT; # create build directory (structure) mkdir -p $DIST_ROOT; # copy assets cp -r $ORIGIN_ROOT/katas $DIST_ROOT; cp $ORIGIN_ROOT/CNAME $DIST_ROOT/CNAME; cp $ORIGIN_ROOT/html/proxy.html $DIST_ROOT/; # replace place holder KATAS_SERVICE_DOMAIN w...
ORIGIN_ROOT="." DIST_ROOT="$ORIGIN_ROOT/dist" # clean up rm -Rf $DIST_ROOT; # create build directory (structure) mkdir -p $DIST_ROOT; # copy assets cp -r $ORIGIN_ROOT/katas $DIST_ROOT; cp $ORIGIN_ROOT/CNAME $DIST_ROOT/CNAME; cp $ORIGIN_ROOT/html/proxy.html $DIST_ROOT/; # replace place holder KATAS_SERVICE_DOMAIN w...
Make `sed` command work on linux too (on travis).
Make `sed` command work on linux too (on travis).
Shell
mit
rafaelrocha/katas,tddbin/katas,ehpc/katas,JonathanPrince/katas,cmisenas/katas,rafaelrocha/katas,ehpc/katas,rafaelrocha/katas,cmisenas/katas,cmisenas/katas,Semigradsky/katas,tddbin/katas,Semigradsky/katas,Semigradsky/katas,JonathanPrince/katas,ehpc/katas,tddbin/katas,JonathanPrince/katas
shell
## Code Before: ORIGIN_ROOT="." DIST_ROOT="$ORIGIN_ROOT/dist" # clean up rm -Rf $DIST_ROOT; # create build directory (structure) mkdir -p $DIST_ROOT; # copy assets cp -r $ORIGIN_ROOT/katas $DIST_ROOT; cp $ORIGIN_ROOT/CNAME $DIST_ROOT/CNAME; cp $ORIGIN_ROOT/html/proxy.html $DIST_ROOT/; # replace place holder KATAS_...
689befdc942dbc6f25b84e5d781b4af8329c1045
nassau-soupbintcp-gateway/README.md
nassau-soupbintcp-gateway/README.md
Nassau SoupBinTCP Gateway ========================= Nassau SoupBinTCP Gateway bridges the NASDAQ MoldUDP64 1.00 protocol to the NASDAQ SoupBinTCP 3.00 protocol. Usage ----- Run Nassau SoupBinTCP Gateway with Java: java -jar <executable> <configuration-file> When started, the gateway starts listening for SoupB...
Nassau SoupBinTCP Gateway ========================= Nassau SoupBinTCP Gateway bridges the NASDAQ MoldUDP64 1.00 protocol to the NASDAQ SoupBinTCP 3.00 protocol. Usage ----- Run Nassau SoupBinTCP Gateway with Java: java -jar <executable> <configuration-file> When started, the gateway starts listening for SoupB...
Tweak documentation for SoupBinTCP gateway
Tweak documentation for SoupBinTCP gateway
Markdown
apache-2.0
pmcs/nassau,paritytrading/nassau,paritytrading/nassau,pmcs/nassau
markdown
## Code Before: Nassau SoupBinTCP Gateway ========================= Nassau SoupBinTCP Gateway bridges the NASDAQ MoldUDP64 1.00 protocol to the NASDAQ SoupBinTCP 3.00 protocol. Usage ----- Run Nassau SoupBinTCP Gateway with Java: java -jar <executable> <configuration-file> When started, the gateway starts lis...
5c0e4c64b8423c6bf7b288cc12b9f83c14777e28
exercises/simple-linked-list/src/Example.hs
exercises/simple-linked-list/src/Example.hs
module LinkedList ( LinkedList , fromList, toList, reverseLinkedList , datum, next, isNil, nil, new) where data LinkedList a = Nil | Cons { datum :: a , next :: LinkedList a } new :: a -> LinkedList a -> LinkedList a new = Cons nil :: Lin...
module LinkedList ( LinkedList , fromList, toList, reverseLinkedList , datum, next, isNil, nil, new) where data LinkedList a = Nil | Cons { datum :: a , next :: LinkedList a } new :: a -> LinkedList a -> LinkedList a new = Cons nil :: Lin...
Improve code base on HLint's suggestions.
simple-linked-list: Improve code base on HLint's suggestions.
Haskell
mit
exercism/xhaskell
haskell
## Code Before: module LinkedList ( LinkedList , fromList, toList, reverseLinkedList , datum, next, isNil, nil, new) where data LinkedList a = Nil | Cons { datum :: a , next :: LinkedList a } new :: a -> LinkedList a -> LinkedList a new = ...
fcd79fcf0a2858e78b9a73856cffd6a395b5d623
scripts/200-railo.sh
scripts/200-railo.sh
railo="http://www.getrailo.org/railo/remote/download42/$RAILO_VERSION/custom/all/railo-$RAILO_VERSION-jars.tar.gz" railo_folder="railo-$RAILO_VERSION-jars" echo "Installing Railo" echo "Downloading Railo " $RAILO_VERSION mkdir /opt/railo mkdir /opt/railo/config mkdir /opt/railo/config/server mkdir /opt/railo/config/w...
railo="http://www.getrailo.org/railo/remote/download42/$RAILO_VERSION/custom/all/railo-$RAILO_VERSION-jars.tar.gz" railo_folder="railo-$RAILO_VERSION-jars" echo "Installing Railo" echo "Downloading Railo " $RAILO_VERSION mkdir /opt/railo mkdir /opt/railo/config mkdir /opt/railo/config/server mkdir /opt/railo/config/w...
Exit if railo download fails
Exit if railo download fails
Shell
apache-2.0
foundeo/ubuntu-nginx-railo,foundeo/ubuntu-nginx-lucee,paulklinkenberg/ubuntu-nginx-lucee
shell
## Code Before: railo="http://www.getrailo.org/railo/remote/download42/$RAILO_VERSION/custom/all/railo-$RAILO_VERSION-jars.tar.gz" railo_folder="railo-$RAILO_VERSION-jars" echo "Installing Railo" echo "Downloading Railo " $RAILO_VERSION mkdir /opt/railo mkdir /opt/railo/config mkdir /opt/railo/config/server mkdir /op...
830d297be687b319400cfc797527d969458ee0e8
dashboard/client/dashboard.js
dashboard/client/dashboard.js
import { ReactiveVar } from 'meteor/reactive-var' import { Template } from 'meteor/templating'; Template.dashboard.onCreated(function () { // Get reference to template instance const templateInstance = this; // Create reactive variable for Elasticsearch host templateInstance.elasticsearchHost = new ReactiveVa...
import { ReactiveVar } from 'meteor/reactive-var' import { Template } from 'meteor/templating'; Template.dashboard.onCreated(function () { // Get reference to template instance const templateInstance = this; // Create reactive variable for Elasticsearch host templateInstance.elasticsearchHost = new ReactiveVa...
Use getElasticsearchData method / reactive variable
Use getElasticsearchData method / reactive variable
JavaScript
mit
apinf/api-umbrella-dashboard,apinf/api-umbrella-dashboard
javascript
## Code Before: import { ReactiveVar } from 'meteor/reactive-var' import { Template } from 'meteor/templating'; Template.dashboard.onCreated(function () { // Get reference to template instance const templateInstance = this; // Create reactive variable for Elasticsearch host templateInstance.elasticsearchHost ...
5d014ab97e0b91865dbd5f5471e2d202280cc0a2
src/Monticello-Tests/MCDirectoryRepositoryTest.class.st
src/Monticello-Tests/MCDirectoryRepositoryTest.class.st
Class { #name : #MCDirectoryRepositoryTest, #superclass : #MCRepositoryTest, #instVars : [ 'directory' ], #category : #'Monticello-Tests-Repository' } { #category : #actions } MCDirectoryRepositoryTest >> addVersion: aVersion [ | file | file := (directory / aVersion fileName) asFileReference binaryWriteStream...
Class { #name : #MCDirectoryRepositoryTest, #superclass : #MCRepositoryTest, #instVars : [ 'directory' ], #category : #'Monticello-Tests-Repository' } { #category : #actions } MCDirectoryRepositoryTest >> addVersion: aVersion [ (directory / aVersion fileName) asFileReference binaryWriteStreamDo: [ :stream ...
Make sure write streams are closed
Make sure write streams are closed
Smalltalk
mit
estebanlm/pharo,estebanlm/pharo,estebanlm/pharo
smalltalk
## Code Before: Class { #name : #MCDirectoryRepositoryTest, #superclass : #MCRepositoryTest, #instVars : [ 'directory' ], #category : #'Monticello-Tests-Repository' } { #category : #actions } MCDirectoryRepositoryTest >> addVersion: aVersion [ | file | file := (directory / aVersion fileName) asFileReference b...
bcf466f5509aafa0ed14c27950418195d4d0fcc5
Casks/adobe-air.rb
Casks/adobe-air.rb
class AdobeAir < Cask url 'http://airdownload.adobe.com/air/mac/download/3.9/AdobeAIR.dmg' homepage 'https://get.adobe.com/air/' version '3.9' sha1 '69863ef58dca864c9b9016b512ea79e5d1429498' caskroom_only true after_install do system "sudo #{destination_path}/Adobe\\ AIR\\ Installer.app/Contents/MacO...
class AdobeAir < Cask url 'http://airdownload.adobe.com/air/mac/download/4.0/AdobeAIR.dmg' homepage 'https://get.adobe.com/air/' version '4.0' sha1 'f319c2c603ff39e596c1c78c257980cf4fb0d0ef' caskroom_only true after_install do system "sudo #{destination_path}/Adobe\\ AIR\\ Installer.app/Contents/MacO...
Update Adobe Air to 4.0
Update Adobe Air to 4.0
Ruby
bsd-2-clause
sanyer/homebrew-cask,Ephemera/homebrew-cask,lvicentesanchez/homebrew-cask,zeusdeux/homebrew-cask,sosedoff/homebrew-cask,otzy007/homebrew-cask,jeanregisser/homebrew-cask,mgryszko/homebrew-cask,dspeckhard/homebrew-cask,Cottser/homebrew-cask,jaredsampson/homebrew-cask,forevergenin/homebrew-cask,norio-nomura/homebrew-cask,...
ruby
## Code Before: class AdobeAir < Cask url 'http://airdownload.adobe.com/air/mac/download/3.9/AdobeAIR.dmg' homepage 'https://get.adobe.com/air/' version '3.9' sha1 '69863ef58dca864c9b9016b512ea79e5d1429498' caskroom_only true after_install do system "sudo #{destination_path}/Adobe\\ AIR\\ Installer.a...
c59fdbe03341843cbc9eb23d71c84376e71d55a1
conda_env/main_env.py
conda_env/main_env.py
from __future__ import print_function, division, absolute_import import argparse from argparse import RawDescriptionHelpFormatter import sys from conda.cli import common description = """ Handles interacting with Conda environments. """ example = """ examples: conda env list conda env list --json """ def ...
from __future__ import print_function, division, absolute_import import argparse from argparse import RawDescriptionHelpFormatter import sys from conda.cli import common description = """ Handles interacting with Conda environments. """ example = """ examples: conda env list conda env list --json """ def ...
Update to work with the latest iteration
Update to work with the latest iteration
Python
bsd-3-clause
ESSS/conda-env,conda/conda-env,conda/conda-env,dan-blanchard/conda-env,asmeurer/conda-env,nicoddemus/conda-env,isaac-kit/conda-env,phobson/conda-env,dan-blanchard/conda-env,asmeurer/conda-env,phobson/conda-env,nicoddemus/conda-env,ESSS/conda-env,mikecroucher/conda-env,mikecroucher/conda-env,isaac-kit/conda-env
python
## Code Before: from __future__ import print_function, division, absolute_import import argparse from argparse import RawDescriptionHelpFormatter import sys from conda.cli import common description = """ Handles interacting with Conda environments. """ example = """ examples: conda env list conda env list -...
476a35ab4a8c1a4578d6a16dadb255cac2694cc2
app/controllers/pages_controller.rb
app/controllers/pages_controller.rb
class PagesController < ApplicationController before_action :set_page, only: [:edit, :update] def index @pages = Page.all authorize @pages end def edit authorize @page end def update authorize @page @page.update( page_params ) redirect_to edit_page_path @page end def new ...
class PagesController < ApplicationController before_action :set_page, only: [:edit, :update] def index @pages = Page.all authorize @pages end def edit authorize @page end def update authorize @page if @page.update( page_params ) redirect_to edit_page_path( @page ), notice: "P...
Update Page controller with update notice.
Update Page controller with update notice.
Ruby
mit
CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org
ruby
## Code Before: class PagesController < ApplicationController before_action :set_page, only: [:edit, :update] def index @pages = Page.all authorize @pages end def edit authorize @page end def update authorize @page @page.update( page_params ) redirect_to edit_page_path @page e...
0e13c51a8a4375dabd2cfd1615a379b24575921c
spec/keybinding-panel-spec.coffee
spec/keybinding-panel-spec.coffee
path = require 'path' KeybindingPanel = require '../lib/keybinding-panel' describe "KeybindingPanel", -> panel = null describe "loads and displays core key bindings", -> beforeEach -> expect(atom.keymap).toBeDefined() spyOn(atom.keymap, 'getKeyBindings').andReturn [ source: "#{atom.getLoad...
path = require 'path' KeybindingPanel = require '../lib/keybinding-panel' describe "KeybindingPanel", -> panel = null beforeEach -> expect(atom.keymap).toBeDefined() spyOn(atom.keymap, 'getKeyBindings').andReturn [ source: "#{atom.getLoadSettings().resourcePath}#{path.sep}keymaps", keystroke: 'ctrl-...
Add spec for copying keybinding
Add spec for copying keybinding
CoffeeScript
mit
atom/settings-view
coffeescript
## Code Before: path = require 'path' KeybindingPanel = require '../lib/keybinding-panel' describe "KeybindingPanel", -> panel = null describe "loads and displays core key bindings", -> beforeEach -> expect(atom.keymap).toBeDefined() spyOn(atom.keymap, 'getKeyBindings').andReturn [ source:...
dbb0d26e4767e15e1269ebe60ef6031d315b91e7
library/SimpleAcl/Object/ObjectAggregate.php
library/SimpleAcl/Object/ObjectAggregate.php
<?php namespace SimpleAcl\Object; use SimpleAcl\Object; /** * Implement common function for Role and Resources. * */ abstract class ObjectAggregate { /** * @var Object[] */ protected $objects = array(); /** * @param Object $object */ protected function addObject(Object $object)...
<?php namespace SimpleAcl\Object; use SimpleAcl\Object; /** * Implement common function for Role and Resources. * */ abstract class ObjectAggregate { /** * @var Object[] */ protected $objects = array(); /** * @param Object $object */ protected function addObject(Object $object)...
Simplify implementation of removeObject method.
Simplify implementation of removeObject method.
PHP
bsd-3-clause
alexshelkov/SimpleAcl
php
## Code Before: <?php namespace SimpleAcl\Object; use SimpleAcl\Object; /** * Implement common function for Role and Resources. * */ abstract class ObjectAggregate { /** * @var Object[] */ protected $objects = array(); /** * @param Object $object */ protected function addObject...
4ef671a26a46e2888242a794e169dd8069e1db66
_includes/header.html
_includes/header.html
<!-- Header --> <header> <div class="container"> <div class="intro-text"> <div class="intro-heading">Building cost-effective web solutions and solving hard problems well.</div> <div class="intro-lead-in">Rapid River Software provides smart, cost-effective engi...
<!-- Header --> <header> <div class="container"> <div class="intro-text"> <div class="intro-heading">Building cost-effective web solutions and solving hard problems well.</div> <div class="intro-lead-in">Rapid River Software provides smart, cost-effective engi...
Address Anton's concerns about getting things done
Address Anton's concerns about getting things done * :D
HTML
apache-2.0
RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io
html
## Code Before: <!-- Header --> <header> <div class="container"> <div class="intro-text"> <div class="intro-heading">Building cost-effective web solutions and solving hard problems well.</div> <div class="intro-lead-in">Rapid River Software provides smart, cos...
82bf3d46cb9801ffbf8d7e853af677ef63670ecb
src/stages/main/patchers/FloorDivideOpPatcher.js
src/stages/main/patchers/FloorDivideOpPatcher.js
import BinaryOpPatcher from './BinaryOpPatcher.js'; export default class FloorDivideOpPatcher extends BinaryOpPatcher { /** * LEFT '//' RIGHT */ patchAsExpression() { let operator = this.getOperatorToken(); // `a // b` → `Math.floor(a // b` // ^^^^^^^^^^^ this.insert(this.contentS...
import BinaryOpPatcher from './BinaryOpPatcher.js'; export default class FloorDivideOpPatcher extends BinaryOpPatcher { /** * LEFT '//' RIGHT */ patchAsExpression() { let operator = this.getOperatorToken(); // `a // b` → `Math.floor(a // b` // ^^^^^^^^^^^ this.insert(this.content...
Patch parts of `FloorDivideOp` in source order.
Patch parts of `FloorDivideOp` in source order.
JavaScript
mit
eventualbuddha/decaffeinate,decaffeinate/decaffeinate,alangpierce/decaffeinate,eventualbuddha/decaffeinate,decaffeinate/decaffeinate,alangpierce/decaffeinate,alangpierce/decaffeinate
javascript
## Code Before: import BinaryOpPatcher from './BinaryOpPatcher.js'; export default class FloorDivideOpPatcher extends BinaryOpPatcher { /** * LEFT '//' RIGHT */ patchAsExpression() { let operator = this.getOperatorToken(); // `a // b` → `Math.floor(a // b` // ^^^^^^^^^^^ this.inse...
6bdb963080b2f25ac5e1dcd25d7f9b568a2381ad
index.js
index.js
module.exports = function assets () { var asset = require('node-matrix-assets') return { folder: require('./assets/folder')(asset), site: require('./assets/site')(asset), page: require('./assets/page')(asset) } }
module.exports = function assets (asset) { asset = asset || require('node-matrix-assets') return { folder: require('./assets/folder')(asset), site: require('./assets/site')(asset), page: require('./assets/page')(asset), getAssetById: asset.getAssetById } }
Enable BYO node-matrix-assets, and expose getAssetsById
Enable BYO node-matrix-assets, and expose getAssetsById
JavaScript
mit
joshgillies/zion-assets
javascript
## Code Before: module.exports = function assets () { var asset = require('node-matrix-assets') return { folder: require('./assets/folder')(asset), site: require('./assets/site')(asset), page: require('./assets/page')(asset) } } ## Instruction: Enable BYO node-matrix-assets, and expose getAssetsById...
cd0f144573349da80a179bbdd4a3d6e561980fb4
setup.py
setup.py
from setuptools import setup, find_packages setup(name='dcmstack', description='Stack DICOM images into volumes', version='0.6.dev', author='Brendan Moloney', author_email='moloney@ohsu.edu', packages=find_packages('src'), package_dir = {'':'src'}, install_requires=['pydicom >...
from setuptools import setup, find_packages setup(name='dcmstack', description='Stack DICOM images into volumes', version='0.6.dev', author='Brendan Moloney', author_email='moloney@ohsu.edu', packages=find_packages('src'), package_dir = {'':'src'}, install_requires=['pydicom >...
Make nose and sphinx optional dependencies.
Make nose and sphinx optional dependencies.
Python
mit
bpinsard/dcmstack
python
## Code Before: from setuptools import setup, find_packages setup(name='dcmstack', description='Stack DICOM images into volumes', version='0.6.dev', author='Brendan Moloney', author_email='moloney@ohsu.edu', packages=find_packages('src'), package_dir = {'':'src'}, install_requ...
84cd642c0ad96f3ed5af963a0348f400a3ee3075
api/app/lib/OriginalUtil.scala
api/app/lib/OriginalUtil.scala
package lib import com.gilt.apidoc.v0.models.{Original, OriginalForm, OriginalType} object OriginalUtil { def toOriginal(form: OriginalForm): Original = { Original( `type` = form.`type`.getOrElse( guessType(form.data).getOrElse(OriginalType.ApiJson) ), data = form.data ) } /*...
package lib import com.gilt.apidoc.v0.models.{Original, OriginalForm, OriginalType} object OriginalUtil { def toOriginal(form: OriginalForm): Original = { Original( `type` = form.`type`.getOrElse( guessType(form.data).getOrElse(OriginalType.ApiJson) ), data = form.data ) } /*...
Fix bug with resolution of original type
Fix bug with resolution of original type
Scala
mit
apicollective/apibuilder,movio/apidoc,Seanstoppable/apidoc,Seanstoppable/apidoc,movio/apidoc,gheine/apidoc,mbryzek/apidoc,gheine/apidoc,apicollective/apibuilder,movio/apidoc,apicollective/apibuilder,mbryzek/apidoc,gheine/apidoc,Seanstoppable/apidoc,mbryzek/apidoc
scala
## Code Before: package lib import com.gilt.apidoc.v0.models.{Original, OriginalForm, OriginalType} object OriginalUtil { def toOriginal(form: OriginalForm): Original = { Original( `type` = form.`type`.getOrElse( guessType(form.data).getOrElse(OriginalType.ApiJson) ), data = form.data...
3c93685eec3f6f293c3843d5c47b556426d4007e
test/settings/gyptest-settings.py
test/settings/gyptest-settings.py
import TestGyp test = TestGyp.TestGyp() test.run_gyp('settings.gyp') test.build('test.gyp', test.ALL) test.pass_test()
import TestGyp # 'settings' is only supported for make and scons (and will be removed there as # well eventually). test = TestGyp.TestGyp(formats=['make', 'scons']) test.run_gyp('settings.gyp') test.build('test.gyp', test.ALL) test.pass_test()
Make new settings test not run for xcode generator.
Make new settings test not run for xcode generator. TBR=evan Review URL: http://codereview.chromium.org/7472006
Python
bsd-3-clause
old8xp/gyp_from_google,old8xp/gyp_from_google,old8xp/gyp_from_google,old8xp/gyp_from_google,old8xp/gyp_from_google
python
## Code Before: import TestGyp test = TestGyp.TestGyp() test.run_gyp('settings.gyp') test.build('test.gyp', test.ALL) test.pass_test() ## Instruction: Make new settings test not run for xcode generator. TBR=evan Review URL: http://codereview.chromium.org/7472006 ## Code After: import TestGyp # 'settings' is only ...
45ff5af77248100c0867a1eeae4dcf2ee509e94d
lib/typedown2blog/spec.rb
lib/typedown2blog/spec.rb
require 'mail_processor' module Typedown2Blog class Spec def self.setup &block instance_eval &block if block_given? self end def self.retriever_method method, options={}, &block @retriever = MailProcessor::Processor.new do retriever method, options, &block end @ret...
require 'mail_processor' module Typedown2Blog def symbolize_keys(hash) hash.inject({}){|result, (key, value)| new_key = case key when String then key.to_sym else key end new_value = case value when Hash then symbolize_keys...
Support yaml format for retriever settings
Support yaml format for retriever settings
Ruby
mit
wrimle/typedown2blog
ruby
## Code Before: require 'mail_processor' module Typedown2Blog class Spec def self.setup &block instance_eval &block if block_given? self end def self.retriever_method method, options={}, &block @retriever = MailProcessor::Processor.new do retriever method, options, &block ...
d929b788265af6c1cf78cc45bdc11ef983a1e367
colleen.asd
colleen.asd
This file is a part of Colleen (c) 2014 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:cl-user) (asdf:defsystem colleen :version "2.2.0" :license "Artistic" :author "Nicolas Hafner <shinmera@tymoon.eu>" :maintainer "Nicolas Hafner <shinmera@tymoo...
This file is a part of Colleen (c) 2014 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (asdf:defsystem colleen :version "2.2.0" :license "Artistic" :author "Nicolas Hafner <shinmera@tymoon.eu>" :maintainer "Nicolas Hafner <shinmera@tymoon.eu>" :homepage "ht...
Remove in-package from ASD file.
Remove in-package from ASD file.
Common Lisp
artistic-2.0
Shinmera/colleen,Shinmera/colleen
common-lisp
## Code Before: This file is a part of Colleen (c) 2014 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:cl-user) (asdf:defsystem colleen :version "2.2.0" :license "Artistic" :author "Nicolas Hafner <shinmera@tymoon.eu>" :maintainer "Nicolas Hafner...
0fc6d844c02a4a1c76f4e65efe93c096dce50d84
assets/css/extra.css
assets/css/extra.css
.tag-short .post-full-image { height: 400px; } @media (max-width: 1170px) { .tag-short .post-full-image { height: 250px; } } @media (max-width: 800px) { .tag-short .post-full-image { height: 150px; } } .site-nav { height: 54px; } .site-nav-left { padding-top: 5px; } .si...
.tag-short .post-full-image { height: 400px; } @media (max-width: 1170px) { .tag-short .post-full-image { height: 250px; } } @media (max-width: 800px) { .tag-short .post-full-image { height: 150px; } } .site-nav { height: 54px; overflow: hidden; } .site-nav-left { pa...
Fix top menu overflow issue
Fix top menu overflow issue
CSS
mit
eduardochiaro/Casper-Light,eduardochiaro/Casper-Light
css
## Code Before: .tag-short .post-full-image { height: 400px; } @media (max-width: 1170px) { .tag-short .post-full-image { height: 250px; } } @media (max-width: 800px) { .tag-short .post-full-image { height: 150px; } } .site-nav { height: 54px; } .site-nav-left { padding-...
59b805beb818cdba1d7b0aea2f809930c51761c6
app/client/templates/modals/project/activity_discuss/activity_discuss.html
app/client/templates/modals/project/activity_discuss/activity_discuss.html
<template name="ActivityDiscuss"> <div class="activity-discuss"> <div class="row"> <div class="col-md-12"> <h2>{{_ "activity_discuss"}}</h2> </div> </div> <div class="row"> <div class="col-md-12"> <p> </p> ...
<template name="ActivityDiscuss"> <div class="activity-discuss"> <div class="row"> <div class="col-md-12"> <h2>{{_ "activity_discuss"}}</h2> </div> </div> <div class="row"> <div class="col-md-12"> <p> {{#with data}} ...
Add template of cesarve:simple-chat, implement only when style conflict is merged
Add template of cesarve:simple-chat, implement only when style conflict is merged
HTML
agpl-3.0
openp2pdesign/OpenMetaDesign,openp2pdesign/OpenMetaDesign,openp2pdesign/OpenMetaDesign
html
## Code Before: <template name="ActivityDiscuss"> <div class="activity-discuss"> <div class="row"> <div class="col-md-12"> <h2>{{_ "activity_discuss"}}</h2> </div> </div> <div class="row"> <div class="col-md-12"> <p> ...
8351ae39ccc3bc0330d6c8de8658bf1c44d2755b
xt/release/pod-coverage.t
xt/release/pod-coverage.t
use strict; use warnings; use Test::More; ok( 1, 'no pod coverage yet' ); done_testing();
use strict; use warnings; use Pod::Coverage::Moose; use Test::Pod::Coverage; use Test::More; my %skip = map { $_ => 1 } qw( Type::Helpers Type::Registry ); # This is a stripped down version of all_pod_coverage_ok which lets us # vary the trustme parameter per module. my @modules = grep { !$skip{$_} } all_modules(); ...
Implement real pod coverage testing now that we have docs
Implement real pod coverage testing now that we have docs
Perl
artistic-2.0
autarch/Specio
perl
## Code Before: use strict; use warnings; use Test::More; ok( 1, 'no pod coverage yet' ); done_testing(); ## Instruction: Implement real pod coverage testing now that we have docs ## Code After: use strict; use warnings; use Pod::Coverage::Moose; use Test::Pod::Coverage; use Test::More; my %skip = map { $_ => 1 ...
3b823298240544be95d35dd2bd6ba8e7cf90a400
metadata/de.markusfisch.android.libra.yml
metadata/de.markusfisch.android.libra.yml
Categories: - Sports & Health License: MIT AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de SourceCode: https://github.com/markusfisch/Libra IssueTracker: https://github.com/markusfisch/Libra/issues Changelog: https://github.com/markusfisch/Libra/releases AutoName: De...
Categories: - Sports & Health License: MIT AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de SourceCode: https://github.com/markusfisch/Libra IssueTracker: https://github.com/markusfisch/Libra/issues Changelog: https://github.com/markusfisch/Libra/releases AutoName: De...
Update Decisions to 1.12.1 (17)
Update Decisions to 1.12.1 (17)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Sports & Health License: MIT AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de SourceCode: https://github.com/markusfisch/Libra IssueTracker: https://github.com/markusfisch/Libra/issues Changelog: https://github.com/markusfisch/Libra/releas...
8f1873582d232441a2fb736a5a48c44cb2a925b7
index.md
index.md
--- layout: default --- I'm a junior studying math and computer science at **Carnegie Mellon**. I like systems and CS theory. I'll be interning at **[MemSQL](http://memsql.com)** this coming summer and TA-ing **[15-251](http://cs.cmu.edu/~15251/)** this spring. I maintain a small tech **[blog](http://dfa.io)**. When I...
--- layout: default --- I'm a rising senior at CMU, studying math and computer science. I'm very excited to be doing compilers stuff at **[MemSQL](http://memsql.com)** this summer and TA-ing CMU's undergraduate compilers class this fall. I maintain a small tech **[blog](http://dfa.io)**. When I'm not doing school, I e...
Make summer present tense; add TA compilers
Make summer present tense; add TA compilers
Markdown
mit
evanbergeron/evanbergeron.github.io
markdown
## Code Before: --- layout: default --- I'm a junior studying math and computer science at **Carnegie Mellon**. I like systems and CS theory. I'll be interning at **[MemSQL](http://memsql.com)** this coming summer and TA-ing **[15-251](http://cs.cmu.edu/~15251/)** this spring. I maintain a small tech **[blog](http://d...
534c696ca70da4c135e50ccc50178e0f5e05b2a0
README.md
README.md
ModernUpnpx =========== A modern port upnpx to ios/macosx Credits ========== The original upnpx library can be found at [Google Code](http://code.google.com/p/upnpx/)
ModernUpnpx =========== A modern port upnpx to ios/macosx. Current implementation is intended for Control Points/ clients only. Upnp Documentation: * [AVTransport](http://www.upnp.org/specs/av/UPnP-av-AVTransport-v1-Service.pdf) * [ContentDirectory](http://www.upnp.org/specs/av/UPnP-av-ContentDirectory-v1-Service.pdf...
Update readme: add upnp references
Update readme: add upnp references
Markdown
bsd-3-clause
gpinigin/ModernUpnpx,gpinigin/ModernUpnpx,gpinigin/ModernUpnpx
markdown
## Code Before: ModernUpnpx =========== A modern port upnpx to ios/macosx Credits ========== The original upnpx library can be found at [Google Code](http://code.google.com/p/upnpx/) ## Instruction: Update readme: add upnp references ## Code After: ModernUpnpx =========== A modern port upnpx to ios/macosx. Current i...
033cb0ce0b459fda8db02e77cdf17f9f4e91d5bd
app/test/unit/path-test.ts
app/test/unit/path-test.ts
import { encodePathAsUrl } from '../../src/lib/path' describe('path', () => { describe('encodePathAsUrl', () => { if (__WIN32__) { it('normalizes path separators on Windows', () => { const dirName = 'C:/Users/shiftkey\\AppData\\Local\\GitHubDesktop\\app-1.0.4\\resources\\app' cons...
import { encodePathAsUrl } from '../../src/lib/path' describe('path', () => { describe('encodePathAsUrl', () => { if (__WIN32__) { it('normalizes path separators on Windows', () => { const dirName = 'C:/Users/shiftkey\\AppData\\Local\\GitHubDesktop\\app-1.0.4\\resources\\app' cons...
Remove test that was failing on purpose
Remove test that was failing on purpose
TypeScript
mit
say25/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desk...
typescript
## Code Before: import { encodePathAsUrl } from '../../src/lib/path' describe('path', () => { describe('encodePathAsUrl', () => { if (__WIN32__) { it('normalizes path separators on Windows', () => { const dirName = 'C:/Users/shiftkey\\AppData\\Local\\GitHubDesktop\\app-1.0.4\\resources\\a...
6b59e4f7fef36f34fd316616cbed851f70c9f065
sources/us/pa/tioga.json
sources/us/pa/tioga.json
{ "coverage": { "US Census": { "geoid": "42117", "name": "Tioga County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Tioga" }, "data": "https://github.com/aaronpdennis/pa-county-addresses/raw/master/data/TI...
{ "coverage": { "US Census": { "geoid": "42117", "name": "Tioga County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Tioga" }, "website": "http://www.tiogacountypa.us/Departments/GIS/Pages/GIS.aspx", "c...
Update Tioga County, Pennsylvania, USA - switch CSV file to Esri Rest Map Service - updated component fields - add contact information
Update Tioga County, Pennsylvania, USA - switch CSV file to Esri Rest Map Service - updated component fields - add contact information
JSON
bsd-3-clause
openaddresses/openaddresses,openaddresses/openaddresses,openaddresses/openaddresses
json
## Code Before: { "coverage": { "US Census": { "geoid": "42117", "name": "Tioga County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Tioga" }, "data": "https://github.com/aaronpdennis/pa-county-addresses/ra...
d0e791ff2777ebd7a77a2e1553c3e2d87d59fcf5
.travis.yml
.travis.yml
language: java install: - sudo apt-get update script: - jdk_switcher use oraclejdk8 - mvn install javadoc:aggregate after_success: - mvn clean test jacoco:report coveralls:report - bash <(curl -s https://codecov.io/bash)
language: java install: - sudo apt-get update script: - jdk_switcher use oraclejdk8 - mvn install javadoc:aggregate after_success: - mvn clean test org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=803861c9f2087ac0b7ca049677f0f7382b8476b7 cover...
Use SonarQube.com with Travis CI
Use SonarQube.com with Travis CI
YAML
apache-2.0
Yongyao/mudrod,fgreg/mudrod,lewismc/mudrod,fgreg/mudrod,mudrod/mudrod,Yongyao/mudrod,quintinali/mudrod,lewismc/mudrod,quintinali/mudrod,fgreg/mudrod,Yongyao/mudrod,mudrod/mudrod,lewismc/mudrod,quintinali/mudrod,Yongyao/mudrod,mudrod/mudrod,quintinali/mudrod,mudrod/mudrod,lewismc/mudrod,fgreg/mudrod
yaml
## Code Before: language: java install: - sudo apt-get update script: - jdk_switcher use oraclejdk8 - mvn install javadoc:aggregate after_success: - mvn clean test jacoco:report coveralls:report - bash <(curl -s https://codecov.io/bash) ## Instruction: Use SonarQube.com with Travis CI ## Code After: languag...
6d9c85cecaf3648d1c6808c5b7045559eed6b2da
db/alloc-sequence.xml
db/alloc-sequence.xml
<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping default-cascade="none"> <class name="ADO.Model.Sequence" table="sequence" dynamic-insert="true" dynamic-update="true" model=""> <comment>Sequence generator</comment> <id name="name" type="String" unsaved-value="0"> <com...
<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping default-cascade="none"> <class name="ADO.Model.Sequence" table="sequence" dynamic-insert="true" dynamic-update="true" model=""> <comment>Sequence generator</comment> <id name="name" type="String" unsaved-value="0"> <com...
Fix definition of sequence table
Fix definition of sequence table
XML
apache-2.0
stcarrez/ada-ado
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping default-cascade="none"> <class name="ADO.Model.Sequence" table="sequence" dynamic-insert="true" dynamic-update="true" model=""> <comment>Sequence generator</comment> <id name="name" type="String" unsaved-value="0"> ...
92ec351173d49c0dff5c6efc035ef20d8d757b19
src/Graphics/Text/Width.hs
src/Graphics/Text/Width.hs
-- Copyright 2009 Corey O'Connor {-# OPTIONS_GHC -D_XOPEN_SOURCE #-} {-# LANGUAGE ForeignFunctionInterface #-} module Graphics.Text.Width ( wcwidth , wcswidth , safeWcwidth , safeWcswidth ) where foreign imp...
-- Copyright 2009 Corey O'Connor {-# OPTIONS_GHC -D_XOPEN_SOURCE #-} {-# LANGUAGE ForeignFunctionInterface #-} module Graphics.Text.Width ( wcwidth , wcswidth , safeWcwidth , safeWcswidth ) where import Fore...
Fix wcwidth import and match safeWcswidth to its documented behavior
Fix wcwidth import and match safeWcswidth to its documented behavior Previously vty_mk_wcwidth was being imported with the wrong type causing the -1 return value to be mapped to the wrong Int value. Additionally safeWcswidth was using the unsafe character width function and only ensuring that the final result was non...
Haskell
bsd-3-clause
jtdaugherty/vty,jtdaugherty/vty,jtdaugherty/vty
haskell
## Code Before: -- Copyright 2009 Corey O'Connor {-# OPTIONS_GHC -D_XOPEN_SOURCE #-} {-# LANGUAGE ForeignFunctionInterface #-} module Graphics.Text.Width ( wcwidth , wcswidth , safeWcwidth , safeWcswidth ) wh...
0fae271b92004fe115ac4f461868f2b968cb3639
.travis.yml
.travis.yml
os: - linux - osx # Enable Trusty dist, Standard is ancient. dist: trusty # Enable C++ support language: cpp # # Compiler selection compiler: - clang - gcc # Build steps script: - mkdir build && cd build - if [[ $TRAVIS_OS_NAME = osx ]]; then cmake ..; else cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ....
os: - linux - osx # Enable Trusty dist, Standard is ancient. dist: trusty # Enable C++ support language: cpp # # Compiler selection compiler: - clang - gcc # Build steps script: - mkdir build && cd build - if [[ $TRAVIS_OS_NAME = osx ]]; then cmake ..; else cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ -...
Add explicit OPENSSL_INCLUDE_DIR on OSX.
Add explicit OPENSSL_INCLUDE_DIR on OSX.
YAML
mit
madf/jwtxx,madf/jwtxx
yaml
## Code Before: os: - linux - osx # Enable Trusty dist, Standard is ancient. dist: trusty # Enable C++ support language: cpp # # Compiler selection compiler: - clang - gcc # Build steps script: - mkdir build && cd build - if [[ $TRAVIS_OS_NAME = osx ]]; then cmake ..; else cmake -DOPENSSL_ROOT_DIR=/usr/loca...
4a1ca67e4d5cdda37390dd92cde35cf7b2a161e6
README.txt
README.txt
===== 1pass ===== A command line interface (and Python library) for reading passwords from `1Password <https://agilebits.com/onepassword>`_. Command line usage ================== To get a password:: 1pass mail.google.com By default this will look in ``~/Dropbox/1Password.agilekeychain``. If that's not where yo...
===== 1pass ===== A command line interface (and Python library) for reading passwords from `1Password <https://agilebits.com/onepassword>`_. Command line usage ================== To get a password:: 1pass mail.google.com By default this will look in ``~/Dropbox/1Password.agilekeychain``. If that's not where yo...
Add Pip Taylor to contributors.
Add Pip Taylor to contributors.
Text
mit
armooo/1pass,RazerM/1pass,jemmyw/1pass,RazerM/1pass,georgebrock/1pass,jaxzin/1pass,jameswhite/1pass,jaxzin/1pass,armooo/1pass,georgebrock/1pass,jameswhite/1pass
text
## Code Before: ===== 1pass ===== A command line interface (and Python library) for reading passwords from `1Password <https://agilebits.com/onepassword>`_. Command line usage ================== To get a password:: 1pass mail.google.com By default this will look in ``~/Dropbox/1Password.agilekeychain``. If tha...
61d1c1402e7fbc8c17dede702a2e7529accc7574
docs/usage/ci_yml/build_types/DockerCompose.md
docs/usage/ci_yml/build_types/DockerCompose.md
This build type is intended to use `docker-compose` to isolate all dependencies. The author should assume that only that tool is available. ## `.ci.yml` Sections ### `run` ``` run: test: ``` Runs a container defined by `test` in `docker-compose.yml` with its default `CMD`. ``` run: test: 'npm test' ``` Runs a...
This build type is intended to use `docker-compose` to isolate all dependencies. The author should assume that only that tool is available. ## `.ci.yml` Sections ### `before` ``` before: "./some_script && ./another_script" ``` Specify any commands that should be run before building the image. ### `run` ``` run: ...
Document the syntax for before actions in .ci.yml
Document the syntax for before actions in .ci.yml
Markdown
mit
erikdw/DotCi,groupon/DotCi,suryagaddipati/DotCi,groupon/DotCi,bschmeck/DotCi,dimacus/DotCi,DotCi/DotCi,erikdw/DotCi,groupon/DotCi,dimacus/DotCi,bschmeck/DotCi,DotCi/DotCi,bschmeck/DotCi,erikdw/DotCi,DotCi/DotCi,suryagaddipati/DotCi,dimacus/DotCi,suryagaddipati/DotCi
markdown
## Code Before: This build type is intended to use `docker-compose` to isolate all dependencies. The author should assume that only that tool is available. ## `.ci.yml` Sections ### `run` ``` run: test: ``` Runs a container defined by `test` in `docker-compose.yml` with its default `CMD`. ``` run: test: 'npm ...
8ad2b66b4471b010d5f55c9bc5adc99c34e46c27
metadata/de.markusfisch.android.screentime.yml
metadata/de.markusfisch.android.screentime.yml
Categories: - System - Time License: Unlicense AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de/ SourceCode: https://github.com/markusfisch/ScreenTime IssueTracker: https://github.com/markusfisch/ScreenTime/issues Changelog: https://github.com/markusfisch/ScreenTime/...
Categories: - System - Time License: Unlicense AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de/ SourceCode: https://github.com/markusfisch/ScreenTime IssueTracker: https://github.com/markusfisch/ScreenTime/issues Changelog: https://github.com/markusfisch/ScreenTime/...
Update Screen Time to 1.0.7 (8)
Update Screen Time to 1.0.7 (8)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - System - Time License: Unlicense AuthorName: Markus Fisch AuthorEmail: mf@markusfisch.de AuthorWebSite: https://www.markusfisch.de/ SourceCode: https://github.com/markusfisch/ScreenTime IssueTracker: https://github.com/markusfisch/ScreenTime/issues Changelog: https://github.com/markusf...
6f01bd94f12ae3231afe7cd3518040aed85679f8
docker-compose.yml
docker-compose.yml
version: '2' services: factory: image: obitec/dstack-factory:3.5 build: context: ./factory/3.5/ dockerfile: Dockerfile args: - UID=${UID} volumes: - /srv/build/wheelhouse:/wheelhouse - /srv/build/archive:/archive - /srv/build/recipes:/app/ environment: ...
version: '2' services: factory: image: obitec/dstack-factory:3.5 build: context: ./factory/3.5/ dockerfile: Dockerfile volumes: - /srv/build/wheelhouse:/wheelhouse - /srv/build/archive:/archive - /srv/build/recipes:/app/ environment: - HDF5_DIR=/usr/lib/x86_64-linu...
Move UID build arg to correct file
Move UID build arg to correct file
YAML
mit
obitec/dstack-factory,obitec/dstack-factory,jr-minnaar/wheel-factory
yaml
## Code Before: version: '2' services: factory: image: obitec/dstack-factory:3.5 build: context: ./factory/3.5/ dockerfile: Dockerfile args: - UID=${UID} volumes: - /srv/build/wheelhouse:/wheelhouse - /srv/build/archive:/archive - /srv/build/recipes:/app/ e...
86656c928678c136e0f7a2e6d4fb220cd6765811
kitsune/questions/templates/questions/new_question_react.html
kitsune/questions/templates/questions/new_question_react.html
{% extends "base.html" %} {% set styles = ('common', 'questions', 'questions.aaq.react',) %} {% set scripts = ('questions.aaq.react',) %} {% set title = _('Ask a Question') %} {% block breadcrumbs %}{% endblock %} {% set hide_signout_link = True %} {% block content %} {{ csrf() }}{# CSRF token for AJAX actions. #...
{% extends "base.html" %} {% set styles = ('common', 'questions', 'questions.aaq.react',) %} {% set scripts = ('questions.aaq.react',) %} {% set title = _('Ask a Question') %} {% block breadcrumbs %}{% endblock %} {% set hide_aaq_link = True %} {% set hide_signout_link = True %} {% block content %} {{ csrf() }}{#...
Hide AAQ link in new flow
Hide AAQ link in new flow
HTML
bsd-3-clause
safwanrahman/kitsune,anushbmx/kitsune,MikkCZ/kitsune,mythmon/kitsune,brittanystoroz/kitsune,Osmose/kitsune,mozilla/kitsune,mozilla/kitsune,brittanystoroz/kitsune,Osmose/kitsune,Osmose/kitsune,safwanrahman/kitsune,mozilla/kitsune,MikkCZ/kitsune,MikkCZ/kitsune,mythmon/kitsune,anushbmx/kitsune,anushbmx/kitsune,mozilla/kit...
html
## Code Before: {% extends "base.html" %} {% set styles = ('common', 'questions', 'questions.aaq.react',) %} {% set scripts = ('questions.aaq.react',) %} {% set title = _('Ask a Question') %} {% block breadcrumbs %}{% endblock %} {% set hide_signout_link = True %} {% block content %} {{ csrf() }}{# CSRF token for...
c986b1929c490de9a971833c9bd16b6d3672cc13
input/NumberInput.qml
input/NumberInput.qml
///number input BaseInput { property float max; ///< maximum number value property float min; ///< minimum number value property float step; ///< number step value property float value; ///< number value horizontalAlignment: BaseInput.AlignHCenter; width: 50; height: 25; type: "number"; onMinChanged: { this...
///number input BaseInput { property float max; ///< maximum number value property float min; ///< minimum number value property float step; ///< number step value property float value; ///< number value horizontalAlignment: BaseInput.AlignHCenter; width: 50; height: 25; type: "number"; onMinChanged: { this...
Fix init value setting: remove useless min max checking
Fix init value setting: remove useless min max checking
QML
mit
pureqml/controls
qml
## Code Before: ///number input BaseInput { property float max; ///< maximum number value property float min; ///< minimum number value property float step; ///< number step value property float value; ///< number value horizontalAlignment: BaseInput.AlignHCenter; width: 50; height: 25; type: "number"; onMi...
2fd27002a8a0cc1ccb454f778742def116d287d6
.travis.yml
.travis.yml
sudo: false rvm: - 2.2.8 - 2.3.5 - 2.4.2 branches: only: - master cache: bundler bundler_args: --jobs 7 script: bundle exec rake
sudo: false rvm: - 2.2.9 - 2.3.6 - 2.4.3 - 2.5.0 branches: only: - master cache: bundler bundler_args: --jobs 7 script: bundle exec rake
Test on all the latest Ruby releases
Test on all the latest Ruby releases Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
YAML
apache-2.0
curiositycasualty/chef-sugar
yaml
## Code Before: sudo: false rvm: - 2.2.8 - 2.3.5 - 2.4.2 branches: only: - master cache: bundler bundler_args: --jobs 7 script: bundle exec rake ## Instruction: Test on all the latest Ruby releases Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io> ## Code After: sudo: false...
cb4cab186d70cca58eaf76f160c2d460c18cfc17
client/src/main/java/replicant/spy/DataLoaderMessageProcessEvent.java
client/src/main/java/replicant/spy/DataLoaderMessageProcessEvent.java
package replicant.spy; import arez.spy.SerializableEvent; import java.util.Map; import java.util.Objects; import javax.annotation.Nonnull; import org.realityforge.replicant.client.transport.DataLoadStatus; /** * Notification when an DataLoader generated an error processing a message from the datasource. */ public f...
package replicant.spy; import arez.spy.SerializableEvent; import java.util.Map; import java.util.Objects; import javax.annotation.Nonnull; import org.realityforge.replicant.client.transport.DataLoadStatus; /** * Notification when an DataLoader generated an error processing a message from the datasource. */ public f...
Add aditional information to serialization
Add aditional information to serialization
Java
apache-2.0
realityforge/replicant,realityforge/replicant
java
## Code Before: package replicant.spy; import arez.spy.SerializableEvent; import java.util.Map; import java.util.Objects; import javax.annotation.Nonnull; import org.realityforge.replicant.client.transport.DataLoadStatus; /** * Notification when an DataLoader generated an error processing a message from the datasour...
d4192ed9867831da48d3de0f9aee862f9068252e
README.md
README.md
Provide the ability to have an IBM Streams application easily interact with IoTF, either in Bluemix (Streaming Analytics Service) or on-premises (IBM Streams). ## Internet of Things Foundation The IBM [Internet of Things Foundation](https://internetofthings.ibmcloud.com/) (IoTF) service lets your IBM Streams applicat...
[http://ibmstreams.github.io/streamsx.iotf/](User Documentation) ## Connectivity with IBM Internet of Things Foundation Provide the ability to have an IBM Streams application easily interact with IoTF, either in Bluemix (Streaming Analytics Service) or on-premises (IBM Streams). ## Internet of Things Foundation The...
Add link to github pages
Add link to github pages
Markdown
apache-2.0
ddebrunner/streamsx.iot,ddebrunner/streamsx.iot
markdown
## Code Before: Provide the ability to have an IBM Streams application easily interact with IoTF, either in Bluemix (Streaming Analytics Service) or on-premises (IBM Streams). ## Internet of Things Foundation The IBM [Internet of Things Foundation](https://internetofthings.ibmcloud.com/) (IoTF) service lets your IBM ...
0c665c9998bf7d7619184d073cdf832b30a1d8af
test/special/subLanguages.js
test/special/subLanguages.js
'use strict'; var fs = require('fs'); var utility = require('../utility'); describe('sub-languages', function() { before(function() { this.block = document.querySelector('#sublanguages'); }); it('should highlight XML with PHP and JavaScript', function() { var filename = utility.buildPath('expect',...
'use strict'; var fs = require('fs'); var utility = require('../utility'); describe('sub-languages', function() { before(function() { this.block = document.querySelector('#sublanguages'); }); it('should highlight XML with PHP and JavaScript', function(done) { var filename = utility.buildPath('expe...
Change sub languages to asynchronous testing
Change sub languages to asynchronous testing
JavaScript
bsd-3-clause
SibuStephen/highlight.js,isagalaev/highlight.js,0x7fffffff/highlight.js,yxxme/highlight.js,tenbits/highlight.js,aurusov/highlight.js,tenbits/highlight.js,jean/highlight.js,STRML/highlight.js,snegovick/highlight.js,snegovick/highlight.js,MakeNowJust/highlight.js,tenbits/highlight.js,weiyibin/highlight.js,martijnrusschen...
javascript
## Code Before: 'use strict'; var fs = require('fs'); var utility = require('../utility'); describe('sub-languages', function() { before(function() { this.block = document.querySelector('#sublanguages'); }); it('should highlight XML with PHP and JavaScript', function() { var filename = utility.bui...
b44b0f68a2dd00df1ec074cf39a66ce81cd0dae2
nowplaying.py
nowplaying.py
from termcolor import colored from appscript import * from track import Track def main(): print(get_song()) def get_song(): itunes_open = bool(app('System Events').processes[its.name == 'iTunes'].count()) if itunes_open: # check if application open itunes = app('iTunes') if itunes.play...
from termcolor import colored from appscript import * from track import Track def main(): print(get_song()) def get_song(): itunes_open = bool(app('System Events').processes[its.name == 'iTunes'].count()) if itunes_open: # check if application open itunes = app('iTunes') if itunes.play...
Update error output for app not open/song not playing
Update error output for app not open/song not playing
Python
mit
kshvmdn/nowplaying
python
## Code Before: from termcolor import colored from appscript import * from track import Track def main(): print(get_song()) def get_song(): itunes_open = bool(app('System Events').processes[its.name == 'iTunes'].count()) if itunes_open: # check if application open itunes = app('iTunes') ...
2e4f19423113465f3b5b71509fd51b8826a163ad
requirements.txt
requirements.txt
configparser>=3.5.0 coverage eth_abi>=1.0.0 eth-account>=0.1.0a2 ethereum>=2.3.2 eth-hash>=0.1.0 eth-keyfile>=0.5.1 eth-keys>=0.2.0b3 eth-rlp>=0.1.0 eth-tester>=0.1.0b21 eth-utils>=1.0.1 jinja2>=2.9 mock persistent>=4.2.0 plyvel py-flags py-solc pytest>=3.6.0 pytest-cov pytest_mock requests rlp>=1.0.1 transaction>=2.2....
configparser>=3.5.0 coverage eth_abi>=1.0.0 eth-account>=0.1.0a2 ethereum>=2.3.2 eth-hash>=0.1.0 eth-keyfile>=0.5.1 eth-keys>=0.2.0b3 eth-rlp>=0.1.0 eth-tester>=0.1.0b21 eth-typing<2.0.0,>=1.3.0 eth-utils>=1.0.1 jinja2>=2.9 mock persistent>=4.2.0 plyvel py-flags py-solc pytest>=3.6.0 pytest-cov pytest_mock requests rlp...
Set eth-typing version number as required by eth-utils
Set eth-typing version number as required by eth-utils
Text
mit
b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril
text
## Code Before: configparser>=3.5.0 coverage eth_abi>=1.0.0 eth-account>=0.1.0a2 ethereum>=2.3.2 eth-hash>=0.1.0 eth-keyfile>=0.5.1 eth-keys>=0.2.0b3 eth-rlp>=0.1.0 eth-tester>=0.1.0b21 eth-utils>=1.0.1 jinja2>=2.9 mock persistent>=4.2.0 plyvel py-flags py-solc pytest>=3.6.0 pytest-cov pytest_mock requests rlp>=1.0.1 t...
11bd5f9466b50389d28a665772cbb1b1b28d086e
cpp/directory_entry.cc
cpp/directory_entry.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/cpp/directory_entry.h" #include "ppapi/cpp/module.h" namespace pp { DirectoryEntry::DirectoryEntry() { memset(&data_, 0, sizeof(d...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/cpp/directory_entry.h" #include <string.h> #include "ppapi/cpp/module.h" namespace pp { DirectoryEntry::DirectoryEntry() { memse...
Fix the linux build by adding a string.h include.
Fix the linux build by adding a string.h include. TBR=brettw BUG=none TEST=none Review URL: http://codereview.chromium.org/2836024
C++
bsd-3-clause
tonyjoule/ppapi,rise-worlds/ppapi,huqingyu/ppapi,siweilvxing/ppapi,ruder/ppapi,huochetou999/ppapi,xinghaizhou/ppapi,xinghaizhou/ppapi,ruder/ppapi,chenfeng8742/ppapi,YachaoLiu/ppapi,qwop/ppapi,thdtjsdn/ppapi,huochetou999/ppapi,phisixersai/ppapi,stefanie924/ppapi,JustRight/ppapi,stefanie924/ppapi,gwobay/ppapi,rise-worlds...
c++
## Code Before: // Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/cpp/directory_entry.h" #include "ppapi/cpp/module.h" namespace pp { DirectoryEntry::DirectoryEntry() { memset(&da...
ae35255f125951281a9c95be1544fa3741d01877
projections/projection.css
projections/projection.css
body{ color: #ffffff; text-shadow: -1px -1px 0 #A6F031, 1px -1px 0 #A6F031, -1px 1px 0 #A6F031, 1px 1px 0 #A6F031;; } .view{ border: 2px solid black; background: rgba(9, 150, 42, 0.98); position: center; text-align: center; max-width: 100%; padding: auto; } .speakers-review{ margin-top: 22%; } ...
body{ color: #ffffff; text-shadow: -1px -1px 0 #A6F031, 1px -1px 0 #A6F031, -1px 1px 0 #A6F031, 1px 1px 0 #A6F031;; } .view{ border: 2px solid black; background: rgba(9, 150, 42, 0.98); position: center; text-align: center; max-width: 100%; padding: auto; } .speakers-review{ margin-top: 22%; } ...
Revert CSS changes to avoid conflict
Revert CSS changes to avoid conflict
CSS
mit
NHS-App/Speak-Up,NHS-App/Speak-Up
css
## Code Before: body{ color: #ffffff; text-shadow: -1px -1px 0 #A6F031, 1px -1px 0 #A6F031, -1px 1px 0 #A6F031, 1px 1px 0 #A6F031;; } .view{ border: 2px solid black; background: rgba(9, 150, 42, 0.98); position: center; text-align: center; max-width: 100%; padding: auto; } .speakers-review{ marg...
bb9f83722ca678129ffafeacac9d8efbd238fcf8
app/views/georgia/pages/_new.html.erb
app/views/georgia/pages/_new.html.erb
<div id='new_page' class="modal hide fade"> <%= simple_form_for @page, as: :page, url: url_for( controller: controller_name, action: nil), remote: true, html: {class: 'form-vertical'} do |f| %> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</butto...
<div id='new_page' class="modal hide fade"> <%= simple_form_for @page, as: :page, remote: true, html: {class: 'form-vertical'} do |f| %> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h3>New <%= instance_name.titleize %></h3> </div...
Fix new page form url issue
Fix new page form url issue
HTML+ERB
mit
georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia
html+erb
## Code Before: <div id='new_page' class="modal hide fade"> <%= simple_form_for @page, as: :page, url: url_for( controller: controller_name, action: nil), remote: true, html: {class: 'form-vertical'} do |f| %> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true...
7f5002a4a4c7534913dfc456604e2c1cb838cc84
spec/models/user_spec.rb
spec/models/user_spec.rb
require 'rails_helper' RSpec.describe User, type: :model do pending "add some examples to (or delete) #{__FILE__}" end
require 'rails_helper' RSpec.describe User, type: :model do it "is invalid without name" do name = User.new(name: "mech") expect(name).to be_valid end it "is invalid without email" do email = User.new(name: "mech@gmail.com") expect(email).to be_valid end end
Add test to user spec
Add test to user spec
Ruby
mit
ishan-amura/pull-it-together,ishan-amura/pull-it-together,ishan-amura/pull-it-together
ruby
## Code Before: require 'rails_helper' RSpec.describe User, type: :model do pending "add some examples to (or delete) #{__FILE__}" end ## Instruction: Add test to user spec ## Code After: require 'rails_helper' RSpec.describe User, type: :model do it "is invalid without name" do name = User.new(name: "mech")...