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
04e1fc901300ee59b952cf718e0f62da4c55f509
app/src/main/res/xml/appwidget_info.xml
app/src/main/res/xml/appwidget_info.xml
<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="200dp" android:minHeight="40dp" android:updatePeriodMillis="7200000" android:initialLayout="@layout/widget_layout" android:resizeMode="none" android:widgetCateg...
<?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="200dp" android:minHeight="40dp" android:updatePeriodMillis="7200000" android:initialLayout="@layout/widget_layout" android:resizeMode="none"> </appwidget-provider>
Remove widget categories for Android L
Remove widget categories for Android L
XML
mit
apoi/reark,ulx/reark
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="200dp" android:minHeight="40dp" android:updatePeriodMillis="7200000" android:initialLayout="@layout/widget_layout" android:resizeMode="none" and...
412605c8a00ea1600744861a1cd287035f4b0478
metadata/com.haha01haha01.harail.txt
metadata/com.haha01haha01.harail.txt
Categories:Navigation License:MPL2 Source Code:https://github.com/haha01haha01/HaRail_Android Issue Tracker:https://github.com/haha01haha01/HaRail_Android/issues Auto Name:HaRail Summary:Find train routes and schedules in Israel Description: Lets you find train routes and see schedules for Israel Railways trains. It i...
Categories:Navigation License:MPL2 Web Site: Source Code:https://github.com/haha01haha01/HaRail_Android Issue Tracker:https://github.com/haha01haha01/HaRail_Android/issues Auto Name:HaRail Summary:Find train routes and schedules in Israel Description: Lets you find train routes and see schedules for Israel Railways tr...
Update HaRail to 1.1 (2)
Update HaRail to 1.1 (2)
Text
agpl-3.0
f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata
text
## Code Before: Categories:Navigation License:MPL2 Source Code:https://github.com/haha01haha01/HaRail_Android Issue Tracker:https://github.com/haha01haha01/HaRail_Android/issues Auto Name:HaRail Summary:Find train routes and schedules in Israel Description: Lets you find train routes and see schedules for Israel Railw...
89cf4e559d034f2c45664e205e344b518e358203
.travis.yml
.travis.yml
language: ruby cache: bundler bundler_args: --without development rvm: - ruby-head - 2.7 - 2.6 - 2.5 - 2.4 - jruby-9.2 services: - docker install: make install script: make test matrix: allow_failures: - rvm: ruby-head fast_finish: true deploy: - provider: script script: make docker-bui...
language: ruby cache: bundler bundler_args: --without development rvm: - ruby-head - 2.7 - 2.6 - 2.5 - 2.4 - jruby-9.2 services: - docker install: make install script: make test matrix: allow_failures: - rvm: ruby-head fast_finish: true deploy: - provider: script script: make docker-bui...
Revert "chore: move encrypted tokens to environment variables"
Revert "chore: move encrypted tokens to environment variables" This reverts commit f7c85650
YAML
mit
twilio/twilio-ruby,philnash/twilio-ruby
yaml
## Code Before: language: ruby cache: bundler bundler_args: --without development rvm: - ruby-head - 2.7 - 2.6 - 2.5 - 2.4 - jruby-9.2 services: - docker install: make install script: make test matrix: allow_failures: - rvm: ruby-head fast_finish: true deploy: - provider: script script:...
9a6bc746c03b746439571b6e1bade0fd7b189279
run_migrations.rb
run_migrations.rb
require 'active_record' require 'logger' require 'yaml' require 'uri' config_path = File.join(File.dirname(__FILE__), 'config.yaml') if File.exists?(config_path) CONFIG = YAML.load_file(config_path) env = ENV['RACK_ENV'] || 'development' db_params = CONFIG['DATABASE_PARAMS'][env] ActiveRecord::Base.establish_c...
require 'rubygems' require 'bundler' Bundler.setup require 'active_record' require 'logger' require 'yaml' require 'uri' config_path = File.join(File.dirname(__FILE__), 'config.yaml') if File.exists?(config_path) CONFIG = YAML.load_file(config_path) env = ENV['RACK_ENV'] || 'development' db_params = CONFIG['DAT...
Make sure migrations are run with Bundler gems.
Make sure migrations are run with Bundler gems.
Ruby
mit
danielstutzman/online-ruby-tutor,danielstutzman/online-ruby-tutor,danielstutzman/online-ruby-tutor
ruby
## Code Before: require 'active_record' require 'logger' require 'yaml' require 'uri' config_path = File.join(File.dirname(__FILE__), 'config.yaml') if File.exists?(config_path) CONFIG = YAML.load_file(config_path) env = ENV['RACK_ENV'] || 'development' db_params = CONFIG['DATABASE_PARAMS'][env] ActiveRecord::...
ecca76686ea0b3af612fbbe3c46a50e89843e75a
app/views/answers/_fields.html.erb
app/views/answers/_fields.html.erb
<div class="row"> <div class="col-md-8"> <fieldset class="inputs"> <%= render :partial => 'shared/common_edition_attributes', :locals => {:f => f} %> <div class="form-group"> <span class="form-label"> <%= f.label :body %> </span> <span class="form-wrapper"> ...
<div class="row"> <div class="col-md-8"> <fieldset class="inputs"> <%= render :partial => 'shared/common_edition_attributes', :locals => {:f => f} %> <%= form_group(f, :body) do %> <%= f.text_area :body, rows: 20, disabled: @resource.locked_for_edits?, class: "input-md-10 form-control" %> ...
Convert the Answer format to use the FormHelper module
Convert the Answer format to use the FormHelper module
HTML+ERB
mit
alphagov/publisher,alphagov/publisher,alphagov/publisher
html+erb
## Code Before: <div class="row"> <div class="col-md-8"> <fieldset class="inputs"> <%= render :partial => 'shared/common_edition_attributes', :locals => {:f => f} %> <div class="form-group"> <span class="form-label"> <%= f.label :body %> </span> <span class="form-wra...
56096908ad6d4c41fc5956f6fd55e773ef6048b3
cmd/bintogo/tmpl.go
cmd/bintogo/tmpl.go
package main import ( "bufio" "io" "os" "text/template" ) const ( dataTmpl = `// This file was auto-generated. package {{.Pkg}} var {{.Name}}Data = [{{.Size}}]byte{ {{range .Data}} {{printf "0x%02X" .}}, {{end}}}` ) var tmpl = new(template.Template) func init() { template.Must(tmpl.New("data").Parse(dataTmp...
package main import ( "bufio" "io" "os" "text/template" ) const ( dataTmpl = `// This file was auto-generated. package {{.Pkg}} var {{.Name}}Data = [...]byte{ {{range .Data}} {{printf "0x%02X" .}}, {{end}}}` ) var tmpl = new(template.Template) func init() { template.Must(tmpl.New("data").Parse(dataTmpl)) } ...
Remove need to get file size in advance.
cmd/bintogo: Remove need to get file size in advance.
Go
mit
DeedleFake/incoming
go
## Code Before: package main import ( "bufio" "io" "os" "text/template" ) const ( dataTmpl = `// This file was auto-generated. package {{.Pkg}} var {{.Name}}Data = [{{.Size}}]byte{ {{range .Data}} {{printf "0x%02X" .}}, {{end}}}` ) var tmpl = new(template.Template) func init() { template.Must(tmpl.New("data...
e3e7cc499f8e090e1f3567c454ca542e358c758e
app/Providers/RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
<?php namespace App\Providers; use Illuminate\Routing\Router; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * All of the application's route middleware keys. * * @var array */ protected $middleware = [ 'auth' ...
<?php namespace App\Providers; use Illuminate\Routing\Router; use Illuminate\Contracts\Routing\UrlGenerator; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * All of the application's route middleware keys. * * @var ...
Set the root controller namespace.
Set the root controller namespace.
PHP
mit
farwish/laravel-pro,tkc/laravel-unit-test-sample,thosakwe/rGuard,cbnuke/FilesCollection,beautifultable/phpwind,superdol/Wiki,tinywitch/laravel,xezw211/wx,GoogleCloudPlatform/laravel,flysap/skeleton,slimkit/thinksns-plus,beautifultable/phpwind,lxerxa/actionview,zeropingheroes/lanyard,kerick-jeff/istore,sergi10/rfuerzo,k...
php
## Code Before: <?php namespace App\Providers; use Illuminate\Routing\Router; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * All of the application's route middleware keys. * * @var array */ protected $middlewa...
2dd09ea0dc5a681c8f3d4ba293113f6df3bc49b8
api/test/util/BasicAuthorizationSpec.scala
api/test/util/BasicAuthorizationSpec.scala
package util import org.scalatest.FunSpec import org.scalatest.Matchers import org.apache.commons.codec.binary.Base64 class BasicAuthorizationSpec extends FunSpec with Matchers { def encode(v: String):String = { new String(Base64.encodeBase64(v.getBytes)) } it("parses a valid token") { BasicAuthorizat...
package util import org.scalatest.FunSpec import org.scalatest.Matchers import org.apache.commons.codec.binary.Base64 class BasicAuthorizationSpec extends FunSpec with Matchers { def encode(v: String):String = { new String(Base64.encodeBase64(v.getBytes)) } it("parses a valid token") { BasicAuthorizat...
Add a test case for basic auth
Add a test case for basic auth
Scala
mit
movio/apidoc,gheine/apidoc,movio/apidoc,movio/apidoc,mbryzek/apidoc,apicollective/apibuilder,mbryzek/apidoc,Seanstoppable/apidoc,gheine/apidoc,apicollective/apibuilder,Seanstoppable/apidoc,mbryzek/apidoc,gheine/apidoc,apicollective/apibuilder,Seanstoppable/apidoc
scala
## Code Before: package util import org.scalatest.FunSpec import org.scalatest.Matchers import org.apache.commons.codec.binary.Base64 class BasicAuthorizationSpec extends FunSpec with Matchers { def encode(v: String):String = { new String(Base64.encodeBase64(v.getBytes)) } it("parses a valid token") { ...
4ad335de7bc1f3af3c8690cb3416f2f02660a118
view.rb
view.rb
class View attr_reader :players, :player_name def initialize @player_name = '' @players =[] initialize_game_render end def render_player_names end def initialize_game_render puts 'Welcome to Flash-Racer. !!!.' puts 'You will answer questions which will make you advance on the track.'...
class View attr_reader :players, :player_name def initialize @player_name = '' @players =[] initialize_game_render end def render_player_names end def initialize_game_render puts 'Welcome to Flash-Racer. !!!.' puts 'You will answer questions which will make you advance on the track.'...
Complete change to passing players array to controller
Complete change to passing players array to controller
Ruby
mit
iraritchiemeek/flashracer
ruby
## Code Before: class View attr_reader :players, :player_name def initialize @player_name = '' @players =[] initialize_game_render end def render_player_names end def initialize_game_render puts 'Welcome to Flash-Racer. !!!.' puts 'You will answer questions which will make you advanc...
add288ac1aa7690e55607b353a16c6e0bee785c2
.github/workflows/ci.yml
.github/workflows/ci.yml
name: CI env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: - pull_request - push jobs: windows: name: Test on Windows runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Restore chocolatey uses: actions/cache@v2 with: path:...
name: CI env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: - pull_request - push jobs: windows: name: Test on Windows runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Restore chocolatey uses: actions/cache@v2 with: path:...
Test tests on windows without coverage
Test tests on windows without coverage
YAML
mit
hrzndhrn/xema
yaml
## Code Before: name: CI env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} on: - pull_request - push jobs: windows: name: Test on Windows runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Restore chocolatey uses: actions/cache@v2 with:...
7af6c1588e78761efebdf2c0507887020be4e8fa
src/graph-table.jsx
src/graph-table.jsx
import React from 'react'; var _ = require('lodash'); var classNames = require('classnames'); //import WayPoint from 'react-waypoint'; var randomId = function() { return "MY" + (Math.random() * 1e32).toString(12); }; //**************************************** // // Common graph containers // //*****************...
import React from 'react'; var _ = require('lodash'); var classNames = require('classnames'); //import WayPoint from 'react-waypoint'; var randomId = function() { return "MY" + (Math.random() * 1e32).toString(12); }; //**************************************** // // Common graph containers // //*****************...
Update graph data table to use unified data format.
Update graph data table to use unified data format.
JSX
mit
fengxia41103/worldsnapshot,fengxia41103/worldsnapshot
jsx
## Code Before: import React from 'react'; var _ = require('lodash'); var classNames = require('classnames'); //import WayPoint from 'react-waypoint'; var randomId = function() { return "MY" + (Math.random() * 1e32).toString(12); }; //**************************************** // // Common graph containers // //*...
67f87b614f7edb120fd634f85c4244baf83e4e41
base/scripts/lib/install_base.sh
base/scripts/lib/install_base.sh
set -e apt-get update -y apt-get install -y curl bzip2
set -e apt-get update -y apt-get install -y curl bzip2 build-essential python
Add python and build-essential to the base image
Add python and build-essential to the base image
Shell
mit
borgand/meteord,meteorhacks/meteord,jdivy/meteord,zhaoic/meteord-taobao,ThePFMind/meteord,Levino/meteord,Joostvanderlaan/meteord,lasteam/meteord,oriben2/meteord,nephogram/meteord,firebait/meteord,Gromby/gromby-meteord,Mgonand/dockerimages,jbg77/meteord,zhaoic/meteord-taobao,ndarilek/meteord,cbioley/meteord,intfrr/meteo...
shell
## Code Before: set -e apt-get update -y apt-get install -y curl bzip2 ## Instruction: Add python and build-essential to the base image ## Code After: set -e apt-get update -y apt-get install -y curl bzip2 build-essential python
f385feed4761ab31675dfcd7fb78776385a898a4
requirements.txt
requirements.txt
numpy>=1.14 scipy>=1.0.0 matplotlib>=2.1 nibabel>=2.2.0 pytest-cov>=2.5
numpy==1.14 scipy==1.0.0 matplotlib==2.2.2 nibabel==2.2.0 pytest-cov==2.5.1
Update dependency version. Done after every GUI test.
Update dependency version. Done after every GUI test.
Text
bsd-3-clause
ofgulban/segmentator
text
## Code Before: numpy>=1.14 scipy>=1.0.0 matplotlib>=2.1 nibabel>=2.2.0 pytest-cov>=2.5 ## Instruction: Update dependency version. Done after every GUI test. ## Code After: numpy==1.14 scipy==1.0.0 matplotlib==2.2.2 nibabel==2.2.0 pytest-cov==2.5.1
03846e25de56adb9bd4e2ddeacf137cf8e08091c
web/classes/driver.dart
web/classes/driver.dart
part of classes; final String driverURL = 'http://ergast.com/api/f1/drivers.json?limit=1000'; class Driver { static List drivers = []; static final Random indexGen = new Random(); String _url; String _givenName; String _familyName; String _dateOfBirth; String _nationality; String ge...
part of classes; final String driverURL = 'http://ergast.com/api/f1/drivers.json?limit=1000'; class Driver { static List drivers = []; static final Random indexGen = new Random(); String _url; String _givenName; String _familyName; String _nationality; DateTime _dateOfBirth; String ...
Format dateOfBirth as DateTime object
Format dateOfBirth as DateTime object
Dart
mit
john-cheesman/f1-driver
dart
## Code Before: part of classes; final String driverURL = 'http://ergast.com/api/f1/drivers.json?limit=1000'; class Driver { static List drivers = []; static final Random indexGen = new Random(); String _url; String _givenName; String _familyName; String _dateOfBirth; String _nationality...
7086b3631040a282cc9cca5880367a6c2524bf21
index.md
index.md
--- layout: default title: oscarb pad index: true --- # pad Guides, resources, notes, docs and knowledge for everything Oscar {% include tags-docs.md %} {% for t in unique_tags %} <h2>{{ t }}</h2> <ul> {% for doc in site.docs %} {% if doc.tags contains t %} <li><a href=".{{ doc.url }}">{{ doc.title }}</a></li> {% e...
--- layout: default title: oscarb pad index: true --- # pad Guides, resources, notes, docs and knowledge for everything Oscar {% include tags.md %}
Move tags to included file
Move tags to included file
Markdown
mit
oscarb/pad,oscarb/pad,oscarb/pad
markdown
## Code Before: --- layout: default title: oscarb pad index: true --- # pad Guides, resources, notes, docs and knowledge for everything Oscar {% include tags-docs.md %} {% for t in unique_tags %} <h2>{{ t }}</h2> <ul> {% for doc in site.docs %} {% if doc.tags contains t %} <li><a href=".{{ doc.url }}">{{ doc.title ...
85ebf876fe90f8d029754a7bd1efdd18fe0186b2
app/initialize.js
app/initialize.js
var Application = require('application'); module.exports = (function() { function start() { window.app = new Application(); window.app.start(); } if (location.protocol === 'file:') { $.ajax({ url: 'cordova.js', dataType: 'script' }).done(function() ...
var Application = require('application'); module.exports = (function() { function prepareDOM() { document.body.innerHTML = ''; document.body.appendChild(document.createElement('gelato-application')); document.body.appendChild(document.createElement('gelato-dialogs')); document.body...
Prepare DOM with required custom gelato elements.
Prepare DOM with required custom gelato elements.
JavaScript
mit
jernung/gelato,mcfarljw/backbone-gelato,mcfarljw/backbone-gelato,mcfarljw/gelato-framework,mcfarljw/gelato-framework,jernung/gelato
javascript
## Code Before: var Application = require('application'); module.exports = (function() { function start() { window.app = new Application(); window.app.start(); } if (location.protocol === 'file:') { $.ajax({ url: 'cordova.js', dataType: 'script' })....
23e754c5d367272d78135a713f3ee35344e6c1d7
shell/zsh/.zsh/kbd.zsh
shell/zsh/.zsh/kbd.zsh
bindkey '\e[D' backward-char bindkey '\e[C' forward-char bindkey '\e\e[D' backward-word bindkey '\e\e[C' forward-word bindkey '\e[3~' delete-char bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line # CtrlP from zsh zsh_ctrlp() { ctrlp_cmd="CtrlP $1" if [ -n "$DISPLAY" ] && [ -n "$DEFAULT_X_TERMINAL" ]; th...
bindkey '\e[D' backward-char bindkey '\e[C' forward-char bindkey '\e\e[D' backward-word bindkey '\e\e[C' forward-word bindkey '\e[3~' delete-char bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line # CtrlP from zsh zsh_ctrlp() { ctrlp_cmd="CtrlP $1" if [ -n "$DISPLAY" ] && [ -n "$DEFAULT_X_TERMINAL" ]; th...
Remove wrong bindings for CtrlP
Remove wrong bindings for CtrlP
Shell
bsd-2-clause
nakal/shell-setup,nakal/shell-setup
shell
## Code Before: bindkey '\e[D' backward-char bindkey '\e[C' forward-char bindkey '\e\e[D' backward-word bindkey '\e\e[C' forward-word bindkey '\e[3~' delete-char bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line # CtrlP from zsh zsh_ctrlp() { ctrlp_cmd="CtrlP $1" if [ -n "$DISPLAY" ] && [ -n "$DEFAULT_X...
3e88a3a485d886978b839826efd18c48ccf0cee4
repository/git/.gitglobal/hooks/prepare-commit-msg/git/add-branch-name-to-commit-message.sh
repository/git/.gitglobal/hooks/prepare-commit-msg/git/add-branch-name-to-commit-message.sh
COMMIT_MSG_FILE=$1 COMMIT_SOURCE=$2 SHA1=$3 # --amend case if [ "$SHA1" == "HEAD" ]; then exit 0 fi # Add branch name at the beginning of the commit message echo -e "`git rev-parse --abbrev-ref HEAD`\n$(cat "$COMMIT_MSG_FILE")" > $COMMIT_MSG_FILE
COMMIT_MSG_FILE=$1 COMMIT_SOURCE=$2 SHA1=$3 # When empty we are in simple commit case (no --amend nor non fast-forward merge) if [[ -z "$SHA1" && -z "$COMMIT_SOURCE" ]]; then # Add branch name at the beginning of the commit message echo -e "`git rev-parse --abbrev-ref HEAD`\n$(cat "$COMMIT_MSG_FILE")" > $COMMI...
Add branch name hook skips merge messages
vim: Add branch name hook skips merge messages
Shell
mit
marcinrogacki/dotfiles
shell
## Code Before: COMMIT_MSG_FILE=$1 COMMIT_SOURCE=$2 SHA1=$3 # --amend case if [ "$SHA1" == "HEAD" ]; then exit 0 fi # Add branch name at the beginning of the commit message echo -e "`git rev-parse --abbrev-ref HEAD`\n$(cat "$COMMIT_MSG_FILE")" > $COMMIT_MSG_FILE ## Instruction: vim: Add branch name hook skips me...
e680b809d80cd576307b0258da37bcc6d57557e7
app/views/genes/druggable_gene_categories.html.haml
app/views/genes/druggable_gene_categories.html.haml
=content_for :title, @title =content_for :header do %h2 =tx "title_main" %small =tx "title_small" %strong %i.icon-flag.tip{title: tx("title_flag")} #container.container-fluid #source-list.well.span12{data: {sources: @sources.to_json}} %label.checkbox.inline Limit categories to speci...
=content_for :title, @title =content_for :header do %h2 =tx "title_main" %small =tx "title_small" %strong %i.icon-flag.tip{title: tx("title_flag")} #container.container-fluid #source-list.well.span12{data: {sources: @sources.to_json}} %label.checkbox.inline Limit categories to speci...
Fix display problem with arangement of blocks in druggable gene categories view occuring on large monitors
Fix display problem with arangement of blocks in druggable gene categories view occuring on large monitors
Haml
mit
griffithlab/dgi-db,griffithlab/dgi-db,griffithlab/dgi-db,griffithlab/dgi-db,griffithlab/dgi-db,griffithlab/dgi-db
haml
## Code Before: =content_for :title, @title =content_for :header do %h2 =tx "title_main" %small =tx "title_small" %strong %i.icon-flag.tip{title: tx("title_flag")} #container.container-fluid #source-list.well.span12{data: {sources: @sources.to_json}} %label.checkbox.inline Limit cat...
9281c37a3a97d2f524bdbaa5d158b79afceb509e
docker-compose.yml
docker-compose.yml
version: '3' services: zephir-7.3: container_name: phalcon-zephir-7.3 build: docker/7.3 working_dir: /srv environment: - "USER=Zephir" volumes: - .:/srv zephir-7.4: container_name: phalcon-zephir-7.4 build: docker/7.4 working_dir: /srv environment: - "USER=Ze...
version: '3' services: zephir-7.3: container_name: phalcon-zephir-7.3 hostname: zephir-73 build: docker/7.3 working_dir: /srv environment: - "USER=Zephir" volumes: - .:/srv zephir-7.4: container_name: phalcon-zephir-7.4 hostname: zephir-74 build: docker/7.4 wor...
Add 'hostname' for all containers
Add 'hostname' for all containers
YAML
mit
zephir-lang/zephir,vpg/zephir,phalcon/zephir,phalcon/zephir,zephir-lang/zephir,zephir-lang/zephir,vpg/zephir,vpg/zephir,vpg/zephir,vpg/zephir,phalcon/zephir,vpg/zephir,zephir-lang/zephir,phalcon/zephir,phalcon/zephir,phalcon/zephir,zephir-lang/zephir
yaml
## Code Before: version: '3' services: zephir-7.3: container_name: phalcon-zephir-7.3 build: docker/7.3 working_dir: /srv environment: - "USER=Zephir" volumes: - .:/srv zephir-7.4: container_name: phalcon-zephir-7.4 build: docker/7.4 working_dir: /srv environment: ...
8a23fda271546d13a0aad2f69a9b3b1f4949c32c
Tags.pm
Tags.pm
1; =pod =encoding utf8 =head1 NAME Tags - Overview about 'Tags' classes. =head1 STRUCTURE Perl structure: Reference to array. [type, data] Types: a - Tag attribute. b - Begin of tag. c - Comment section. cd - Cdata section. d - Data section. e - End of tag. i - Instruction section. r - Raw s...
1; =pod =encoding utf8 =head1 NAME Tags - Overview about 'Tags' classes. =head1 STRUCTURE Perl structure: Reference to array. [type, data] Types: a - Tag attribute. b - Begin of tag. c - Comment section. cd - Cdata section. d - Data section. e - End of tag. i - Instruction section. r - Raw s...
Remove obsolete modules from doc.
Remove obsolete modules from doc.
Perl
bsd-2-clause
tupinek/Tags,tupinek/Tags
perl
## Code Before: 1; =pod =encoding utf8 =head1 NAME Tags - Overview about 'Tags' classes. =head1 STRUCTURE Perl structure: Reference to array. [type, data] Types: a - Tag attribute. b - Begin of tag. c - Comment section. cd - Cdata section. d - Data section. e - End of tag. i - Instruction sect...
a1e2a18cc278068737017ce6d142bc154b8e4d42
recipes/jupyter_client/meta.yaml
recipes/jupyter_client/meta.yaml
{% set version = "4.4.0" %} package: name: jupyter_client version: {{ version }} source: fn: jupyter_client-{{ version }}.tar.gz url: https://pypi.io/packages/source/j/jupyter_client/jupyter_client-{{ version }}.tar.gz sha256: c99a52fac2e5b7a3b714e9252ebf72cbf97536d556ae2b5082baccc3e5cd52ee build: number...
{% set version = "5.0.0" %} package: name: jupyter_client version: {{ version }} source: fn: jupyter_client-{{ version }}.tar.gz url: https://pypi.io/packages/source/j/jupyter_client/jupyter_client-{{ version }}.tar.gz sha256: 2766f9c2deb9ae826e65d53a56a36d69b184f63d0dcb7710835273327126bc5b build: number...
Update jupyter_client recipe to version 5.0.0
Update jupyter_client recipe to version 5.0.0
YAML
bsd-3-clause
jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda
yaml
## Code Before: {% set version = "4.4.0" %} package: name: jupyter_client version: {{ version }} source: fn: jupyter_client-{{ version }}.tar.gz url: https://pypi.io/packages/source/j/jupyter_client/jupyter_client-{{ version }}.tar.gz sha256: c99a52fac2e5b7a3b714e9252ebf72cbf97536d556ae2b5082baccc3e5cd52ee ...
b83958697004d7203fed20a3024efe3c653f9535
tiddlywebconfig.py
tiddlywebconfig.py
config = { 'wikitext.default_renderer': 'twikified', 'wikitext.type_render_map': { 'text/x-tiddlywiki': 'twikified' } }
config = { 'wikitext.default_renderer': 'tiddlywebplugins.twikified', 'wikitext.type_render_map': { 'text/x-tiddlywiki': 'tiddlywebplugins.twikified' } }
Use fully qualified module names
Use fully qualified module names This is so that the tiddlyweb instance used in the tests can find the renderer
Python
bsd-3-clause
TiddlySpace/tiddlywebplugins.twikified
python
## Code Before: config = { 'wikitext.default_renderer': 'twikified', 'wikitext.type_render_map': { 'text/x-tiddlywiki': 'twikified' } } ## Instruction: Use fully qualified module names This is so that the tiddlyweb instance used in the tests can find the renderer ## Code After: config = { 'wi...
a9c6e045631103fe8508fd1b60d6076c05092fe1
tests/examples/customnode/nodes.py
tests/examples/customnode/nodes.py
from viewflow.activation import AbstractGateActivation, Activation from viewflow.flow import base from viewflow.token import Token class DynamicSplitActivation(AbstractGateActivation): def calculate_next(self): self._split_count = self.flow_task._task_count_callback(self.process) @Activation.status.s...
from viewflow.activation import AbstractGateActivation from viewflow.flow import base from viewflow.token import Token class DynamicSplitActivation(AbstractGateActivation): def calculate_next(self): self._split_count = self.flow_task._task_count_callback(self.process) def activate_next(self): ...
Add undo to custom node sample
Add undo to custom node sample
Python
agpl-3.0
ribeiro-ucl/viewflow,codingjoe/viewflow,pombredanne/viewflow,pombredanne/viewflow,codingjoe/viewflow,codingjoe/viewflow,viewflow/viewflow,viewflow/viewflow,ribeiro-ucl/viewflow,viewflow/viewflow,ribeiro-ucl/viewflow
python
## Code Before: from viewflow.activation import AbstractGateActivation, Activation from viewflow.flow import base from viewflow.token import Token class DynamicSplitActivation(AbstractGateActivation): def calculate_next(self): self._split_count = self.flow_task._task_count_callback(self.process) @Act...
950db1326fe3a417acb509d4d2b572fda0cdd100
web/concrete/src/Config/ConfigLoader.php
web/concrete/src/Config/ConfigLoader.php
<?php namespace Concrete\Core\Config; use Illuminate\Config\FileLoader; use Illuminate\Filesystem\Filesystem; class ConfigLoader extends FileLoader { protected $config; public function __construct(Filesystem $files, Config $config) { $this->config = $config; parent::__construct($files, DIR_A...
<?php namespace Concrete\Core\Config; use Illuminate\Config\FileLoader; use Illuminate\Filesystem\Filesystem; class ConfigLoader extends FileLoader { protected $config; public function __construct(Filesystem $files, Config $config) { $this->config = $config; parent::__construct($files, DIR_A...
Convert everything other than assets to app config
Convert everything other than assets to app config We're using Laravel's config resolving classes: ```PHP $config = $app->make('config'); $config->get('app.version'); // '5.7.0b2' ```
PHP
mit
avdevs/concrete5,TimDix/concrete5,avdevs/concrete5,TimDix/concrete5,avdevs/concrete5,MichaelMaar/concrete5,TimDix/concrete5,MichaelMaar/concrete5,MichaelMaar/concrete5,matt9mg/concrete5,matt9mg/concrete5,matt9mg/concrete5
php
## Code Before: <?php namespace Concrete\Core\Config; use Illuminate\Config\FileLoader; use Illuminate\Filesystem\Filesystem; class ConfigLoader extends FileLoader { protected $config; public function __construct(Filesystem $files, Config $config) { $this->config = $config; parent::__constru...
64da23a718cd37a9d731b5b845df240a87b2180c
projects/core/src/main/resources/gov/nih/nci/cabig/caaers/applicationContext-core-spring.xml
projects/core/src/main/resources/gov/nih/nci/cabig/caaers/applicationContext-core-spring.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <!-- This applicationContext contains configuration for Spring itself --> <beans> <bean id="mainPropertyConfigurer" class="gov.nih.nci.cabig.caaers.tools.spring.Proper...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <!-- This applicationContext contains configuration for Spring itself --> <beans> <bean id="mainPropertyConfigurer" class="gov.nih.nci.cabig.caaers.tools.spring.Proper...
Revert hard-coding of datasource as databaseConfigurationName
Revert hard-coding of datasource as databaseConfigurationName SVN-Revision: 1754
XML
bsd-3-clause
CBIIT/caaers,NCIP/caaers,CBIIT/caaers,NCIP/caaers,CBIIT/caaers,CBIIT/caaers,CBIIT/caaers,NCIP/caaers,NCIP/caaers
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <!-- This applicationContext contains configuration for Spring itself --> <beans> <bean id="mainPropertyConfigurer" class="gov.nih.nci.cabig.caaers.too...
6a6e2efeceb987827c78e6f4d998f7451d48af23
autodidact/templates/autodidact/assignment.html
autodidact/templates/autodidact/assignment.html
{% extends 'base.html' %} {% block navigation %} <ul> <li class="visitedPage"><a href="{% url 'homepage' %}">Home</a></li> <li class="visitedPage"><a href="{% url 'course' course.slug %}">{{course.name}}<br>(<code>{{course.colloquial_name}}</code>)</a></li> <li class="visitedPage"><a href="{% url 'sessio...
{% extends 'base.html' %} {% load static %} {% block extrahead %} <script src="{% static 'mathjax/MathJax.js' %}?config=TeX-AMS-MML_HTMLorMML"></script> {% endblock %} {% block navigation %} <ul> <li class="visitedPage"><a href="{% url 'homepage' %}">Home</a></li> <li class="visitedPage"><a href="{% url '...
Load MathJax statically, database migration needed in the future...
Load MathJax statically, database migration needed in the future...
HTML
agpl-3.0
JaapJoris/autodidact,JaapJoris/autodidact,JaapJoris/autodidact,JaapJoris/autodidact
html
## Code Before: {% extends 'base.html' %} {% block navigation %} <ul> <li class="visitedPage"><a href="{% url 'homepage' %}">Home</a></li> <li class="visitedPage"><a href="{% url 'course' course.slug %}">{{course.name}}<br>(<code>{{course.colloquial_name}}</code>)</a></li> <li class="visitedPage"><a href...
5a0796804eb1a15c40ed6cb3f0310e4ffea6ce5b
test/dummy/config/initializers/i18n.rb
test/dummy/config/initializers/i18n.rb
if ::Rails::VERSION::MAJOR == 3 || (::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0) require 'i18n' # Override exception handler to more carefully html-escape missing-key results. class HtmlSafeI18nExceptionHandler def call(exception, locale, key, options) keys = exception.keys.map { |...
if ::Rails::VERSION::MAJOR == 3 || (::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0) require 'i18n' # Override exception handler to more carefully html-escape missing-key results. class HtmlSafeI18nExceptionHandler Missing = I18n.const_defined?(:MissingTranslation) ? I18n::MissingTranslation...
Update exception handler for dummy app
Update exception handler for dummy app `t` helper behaves now in the same way in Rails 3, 4 and 4.1
Ruby
mit
prograils/lit,prograils/lit,mlitwiniuk/lit,mlitwiniuk/lit,prograils/lit,mlitwiniuk/lit
ruby
## Code Before: if ::Rails::VERSION::MAJOR == 3 || (::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR == 0) require 'i18n' # Override exception handler to more carefully html-escape missing-key results. class HtmlSafeI18nExceptionHandler def call(exception, locale, key, options) keys = except...
2765a7958465ba78948e64c5290ed656dbd6438d
.travis.yml
.travis.yml
language: objective-c rvm: system install: - sudo gem install bundler --no-ri --no-rdoc - sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install script: - bundle exec rake ci
language: objective-c osx_image: xcode8.2 rvm: system install: # we expect sprout to provide homebrew so we should ensure it isn't present - brew cask list && brew cask zap $(brew cask list) - brew list && brew uninstall --force --ignore-dependencies $(brew list) - ruby -e "$(curl -fsSL https://raw.githubuserco...
Use macOS Sierra - make the system as pristine as possible for specs
Use macOS Sierra - make the system as pristine as possible for specs
YAML
mit
pivotal-sprout/sprout-chruby,pivotal-sprout/sprout-chruby
yaml
## Code Before: language: objective-c rvm: system install: - sudo gem install bundler --no-ri --no-rdoc - sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install script: - bundle exec rake ci ## Instruction: Use macOS Sierra - make the system as pristine as possible for specs ...
9f1d89d87a870afb0d018f87ec9ac9f98cf12a62
package.xml
package.xml
<package> <name>sdformat</name> <version>1.4.11</version> <description> ROS wrapper for sdformat. </description> <maintainer email="foo@foo.com">Ivana Bildbotz</maintainer> <license>BSD</license> <buildtool_depend>cmake</buildtool_depend> <export> <build_type>cmake</build_type> </export> </p...
<package> <name>sdformat</name> <version>1.4.11</version> <description> ROS wrapper for sdformat. </description> <maintainer email="foo@foo.com">Ivana Bildbotz</maintainer> <license>BSD</license> <buildtool_depend>cmake</buildtool_depend> <build_depend>tinyxml</build_depend> <export> <build_...
Add build dependencies for sdformat install
Add build dependencies for sdformat install
XML
apache-2.0
jonbinney/sdformat_ros_wrapper,jonbinney/sdformat_ros_wrapper,jonbinney/sdformat_ros_wrapper
xml
## Code Before: <package> <name>sdformat</name> <version>1.4.11</version> <description> ROS wrapper for sdformat. </description> <maintainer email="foo@foo.com">Ivana Bildbotz</maintainer> <license>BSD</license> <buildtool_depend>cmake</buildtool_depend> <export> <build_type>cmake</build_type>...
a742ab30f1076b6cb0a69281e027a2261a9b1f00
src/nyc_trees/apps/event/templates/event/partials/event_section.html
src/nyc_trees/apps/event/templates/event/partials/event_section.html
{% with event=info.event %} <a href="{{ event.get_absolute_url }}" class="event block item rightarrow"> <div class="row"> {% include 'event/partials/event_calendar.html' %} <div class="event-details col-xs-6"> <h5 class="event-detail event-detail--title">{{ event.title }}</h5> ...
{% with event=info.event %} {% block extra_markup %} {% endblock extra_markup %} <a href="{{ event.get_absolute_url }}" class="event block item rightarrow"> <div class="row"> {% include 'event/partials/event_calendar.html' %} <div class="event-details col-xs-6"> <h5 class="event-detail e...
Fix error when saving user profile
Fix error when saving user profile This restores hidden form fields needed on the user profile page. Broken by 7c543f46e7f82557187e057e2c178090e46fd81c. Fixes #633
HTML
agpl-3.0
kdeloach/nyc-trees,azavea/nyc-trees,maurizi/nyc-trees,RickMohr/nyc-trees,kdeloach/nyc-trees,maurizi/nyc-trees,azavea/nyc-trees,azavea/nyc-trees,RickMohr/nyc-trees,RickMohr/nyc-trees,maurizi/nyc-trees,kdeloach/nyc-trees,kdeloach/nyc-trees,azavea/nyc-trees,maurizi/nyc-trees,RickMohr/nyc-trees,azavea/nyc-trees,kdeloach/ny...
html
## Code Before: {% with event=info.event %} <a href="{{ event.get_absolute_url }}" class="event block item rightarrow"> <div class="row"> {% include 'event/partials/event_calendar.html' %} <div class="event-details col-xs-6"> <h5 class="event-detail event-detail--title">{{ event.title }}...
fbd68988767156df0b241a07aa1fbd5ddbcbe937
styles/components/NoteEditor.less
styles/components/NoteEditor.less
// reset summernote styles .note > .note-editor { @padding-left: 14px; font-family: 'Helvetica Neue', 'Arial', 'Courier New', 'Lucida Sans', 'Tahoma'; border: none; flex-grow: 1; display: flex; flex-direction: column; margin-bottom: 0; min-width: 0; font-weight: normal; .note-toolbar { bac...
// reset summernote styles .note > .note-editor { @padding-left: 14px; font-family: 'Helvetica Neue', 'Arial', 'Courier New', 'Lucida Sans', 'Tahoma'; border: none; flex-grow: 1; display: flex; flex-direction: column; margin-bottom: 0; min-width: 0; font-weight: normal; .note-toolbar { bac...
Fix bug, set min width of editing area
Fix bug, set min width of editing area
Less
mit
LucasYuNju/leanote-desktop-lite,LucasYuNju/leanote-desktop-ng,LucasYuNju/leanote-desktop-lite,LucasYuNju/leanote-desktop-ng
less
## Code Before: // reset summernote styles .note > .note-editor { @padding-left: 14px; font-family: 'Helvetica Neue', 'Arial', 'Courier New', 'Lucida Sans', 'Tahoma'; border: none; flex-grow: 1; display: flex; flex-direction: column; margin-bottom: 0; min-width: 0; font-weight: normal; .note-too...
e12f8b98189a1be8ee7e13b06b0d4821a3c0f98c
spec/factories/miq_group.rb
spec/factories/miq_group.rb
FactoryGirl.define do factory :miq_group do sequence(:description) { |n| "Test Group #{seq_padded_for_sorting(n)}" } sequence(:guid) { |n| UUIDTools::UUID.parse_int((0x87654321 << 96) + n) } end factory :miq_group_miq_request_approver, :parent => :miq_group do miq_user_role { FactoryGirl.create(:miq_...
FactoryGirl.define do factory :miq_group do guid { MiqUUID.new_guid } sequence(:description) { |n| "Test Group #{seq_padded_for_sorting(n)}" } end factory :miq_group_miq_request_approver, :parent => :miq_group do miq_user_role { FactoryGirl.create(:miq_user_role_miq_request_approver) } end end
Simplify guid in MiqGroup factory
Simplify guid in MiqGroup factory
Ruby
apache-2.0
ilackarms/manageiq,tzumainn/manageiq,chessbyte/manageiq,chessbyte/manageiq,tzumainn/manageiq,matobet/manageiq,branic/manageiq,KevinLoiseau/manageiq,KevinLoiseau/manageiq,andyvesel/manageiq,gerikis/manageiq,josejulio/manageiq,borod108/manageiq,maas-ufcg/manageiq,romanblanco/manageiq,durandom/manageiq,NickLaMuro/manageiq...
ruby
## Code Before: FactoryGirl.define do factory :miq_group do sequence(:description) { |n| "Test Group #{seq_padded_for_sorting(n)}" } sequence(:guid) { |n| UUIDTools::UUID.parse_int((0x87654321 << 96) + n) } end factory :miq_group_miq_request_approver, :parent => :miq_group do miq_user_role { FactoryG...
31ed37be6c33a989ea17885a90c1ff853a31b047
app/helpers/campaign_helper.rb
app/helpers/campaign_helper.rb
module CampaignHelper def nav_link(link_text, link_path) class_name = current_page?(link_path) ? 'active' : '' content_tag(:li, class: 'nav__item', id: "#{params[:action]}-link") do content_tag(:p) do link_to(link_text, link_path, class: class_name) end end end def html_from_mark...
module CampaignHelper def nav_link(link_text, link_path) class_name = current_page?(link_path) ? 'active' : '' content_tag(:li, class: 'nav__item', id: "#{params[:action]}-link") do content_tag(:p) do link_to(link_text, link_path, class: class_name) end end end def html_from_mark...
Fix error with converting nil to markdown
Fix error with converting nil to markdown
Ruby
mit
majakomel/WikiEduDashboard,alpha721/WikiEduDashboard,sejalkhatri/WikiEduDashboard,KarmaHater/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,sejalkhatri/WikiEduDashboard,KarmaHater/WikiEduDashboard,alpha721/WikiEduDashboard,alpha721/WikiEduDashboard,sejalkhatri/WikiEdu...
ruby
## Code Before: module CampaignHelper def nav_link(link_text, link_path) class_name = current_page?(link_path) ? 'active' : '' content_tag(:li, class: 'nav__item', id: "#{params[:action]}-link") do content_tag(:p) do link_to(link_text, link_path, class: class_name) end end end de...
bc05c56c60fa61f045079a4b3ef2dea185b213b4
fortuitus/fcore/tests.py
fortuitus/fcore/tests.py
from django.core.urlresolvers import reverse from django.test import TestCase from fortuitus.fcore.factories import UserF from fortuitus.fcore.models import FortuitusProfile class HomeViewTestCase(TestCase): def test_renders_template(self): """ Tests is home page is rendered properly. """ respons...
from django.core.urlresolvers import reverse from django.test import TestCase from fortuitus.fcore.factories import UserF from fortuitus.fcore.models import FortuitusProfile class HomeViewTestCase(TestCase): def test_renders_template(self): """ Tests is home page is rendered properly. """ respons...
Fix failing user profile test
Fix failing user profile test
Python
mit
elegion/djangodash2012,elegion/djangodash2012
python
## Code Before: from django.core.urlresolvers import reverse from django.test import TestCase from fortuitus.fcore.factories import UserF from fortuitus.fcore.models import FortuitusProfile class HomeViewTestCase(TestCase): def test_renders_template(self): """ Tests is home page is rendered properly. """...
2cb139d6f1660d7354a8b9a3e1a86d9bc45aead1
Pod/Classes/Models/LKManager.h
Pod/Classes/Models/LKManager.h
// // LKManager.h // // Created by Vlad Gorbenko on 4/21/15. // Copyright (c) 2015 Vlad Gorbenko. All rights reserved. // #import <Foundation/Foundation.h> #import "LKLanguage.h" extern NSString *const LKLanguageDidChangeNotification; extern NSString *const LKSourceDefault; extern NSString *const LKSourcePlist; ...
// // LKManager.h // // Created by Vlad Gorbenko on 4/21/15. // Copyright (c) 2015 Vlad Gorbenko. All rights reserved. // #import <Foundation/Foundation.h> #import "LKLanguage.h" extern NSString *const LKLanguageDidChangeNotification; extern NSString *const LKSourceDefault; extern NSString *const LKSourcePlist; ...
Make language by code public.
Make language by code public.
C
mit
mojidabckuu/Loki,mojidabckuu/Loki
c
## Code Before: // // LKManager.h // // Created by Vlad Gorbenko on 4/21/15. // Copyright (c) 2015 Vlad Gorbenko. All rights reserved. // #import <Foundation/Foundation.h> #import "LKLanguage.h" extern NSString *const LKLanguageDidChangeNotification; extern NSString *const LKSourceDefault; extern NSString *const...
48ec1d9494ae8215f6b4bc4b79bcefe318d8a5b4
create_csv.py
create_csv.py
import csv from datetime import date from scraper.draft_scraper import scrape CSV_FILE = 'datasets/%s_nbadraft.csv' for year in range(1947, date.today().year): draft = scrape(year) header = [key for key in draft[1].keys()] with open(CSV_FILE % year, 'w', newline='') as outfile: dw = csv.DictWrite...
import csv from datetime import date from scraper.draft_scraper import scrape CSV_FILE = 'datasets/%s_nbadraft.csv' for year in range(1947, date.today().year): draft = scrape(year) header = [key for key in draft[1].keys()] with open(CSV_FILE % year, 'w', newline='') as outfile: dw = csv.DictWrite...
Print line after creating each csv
Print line after creating each csv
Python
mit
kshvmdn/nbadrafts
python
## Code Before: import csv from datetime import date from scraper.draft_scraper import scrape CSV_FILE = 'datasets/%s_nbadraft.csv' for year in range(1947, date.today().year): draft = scrape(year) header = [key for key in draft[1].keys()] with open(CSV_FILE % year, 'w', newline='') as outfile: dw...
bbf6ca41da348dc6e089e6b24d428c8d72a62163
prismo/netvis.js
prismo/netvis.js
// NetVis defines global object NetVis that wraps up everything else // constructor for NetVis class function NetVis(DOMelement) { var self = this; self.DOMelement = DOMelement || "#chart"; self.Model = { Nodes: [{ 'id':'abba' } ] }; this.Render = function() { nodes = d3.select(self.DOMelement).appen...
// NetVis defines global object NetVis that wraps up everything else // constructor for NetVis class function NetVis(DOMelement) { var self = this; self.DOMelement = DOMelement || "#chart"; self.config = { nodeDefaultDistance: 30, nodeDefaultRadius: 10 }; self.Model = { Nodes: [{ 'id':'abba' } ] }...
Add config object for consts
Add config object for consts
JavaScript
mit
dborzov/netvis
javascript
## Code Before: // NetVis defines global object NetVis that wraps up everything else // constructor for NetVis class function NetVis(DOMelement) { var self = this; self.DOMelement = DOMelement || "#chart"; self.Model = { Nodes: [{ 'id':'abba' } ] }; this.Render = function() { nodes = d3.select(self.D...
3e8e3d004de9fa5ab2c7716411f636343091b940
README.md
README.md
The _Transmogrify_ µFramework provides typesafe value conversion with Apple’s `NSValueTransformer`. Also it allows you to use closures. ## License The project is licensed under the MIT-license. For full details see the LICENSE file in the root of the repository.
The _Transmogrify_ µFramework provides typesafe value conversion with Apple’s `NSValueTransformer`. Also it allows you to use closures. ## License The project is licensed under the MIT-license. For full details see the [LICENSE](https://github.com/rastersize/Transmogrify/blob/master/LICENSE) file in the root of the re...
Add license file link in reamde
Add license file link in reamde
Markdown
mit
rastersize/Transmogrify
markdown
## Code Before: The _Transmogrify_ µFramework provides typesafe value conversion with Apple’s `NSValueTransformer`. Also it allows you to use closures. ## License The project is licensed under the MIT-license. For full details see the LICENSE file in the root of the repository. ## Instruction: Add license file link i...
8a4ef2de6d2def6fa0937c66d33e1db21c73243e
docs/Configuring-Tachyon-with-S3.md
docs/Configuring-Tachyon-with-S3.md
--- layout: global title: Configuring Tachyon with S3 nickname: Tachyon with S3 group: Under Stores priority: 1 ---
--- layout: global title: Configuring Tachyon with S3 nickname: Tachyon with S3 group: Under Stores priority: 1 --- This guide describes how to configure Tachyon with [Amazon S3](https://aws.amazon.com/s3/) as the under storage system. # Getting Started First, the Tachyon binaries must be on your machine. You can ei...
Add documentation on configuring for s3
Add documentation on configuring for s3
Markdown
apache-2.0
EvilMcJerkface/alluxio,Reidddddd/mo-alluxio,maobaolong/alluxio,wwjiang007/alluxio,maobaolong/alluxio,yuluo-ding/alluxio,bf8086/alluxio,maobaolong/alluxio,calvinjia/tachyon,jsimsa/alluxio,riversand963/alluxio,ChangerYoung/alluxio,jsimsa/alluxio,calvinjia/tachyon,ChangerYoung/alluxio,uronce-cc/alluxio,madanadit/alluxio,a...
markdown
## Code Before: --- layout: global title: Configuring Tachyon with S3 nickname: Tachyon with S3 group: Under Stores priority: 1 --- ## Instruction: Add documentation on configuring for s3 ## Code After: --- layout: global title: Configuring Tachyon with S3 nickname: Tachyon with S3 group: Under Stores priority: 1 --- ...
d525a46a55b906514e6e889c36e7d5204f99d2c7
.github/pull_request_template.md
.github/pull_request_template.md
Provide a description of the changes introduced in the PR. ### Issue Issue Link [Optional] ### Type - [ ] Breaking change - [ ] Enhancement - [ ] Fix
Provide a description of the changes introduced in the PR. ### Issue Issue Link [Optional] ### Type - [ ] Breaking change - [ ] Enhancement - [ ] Fix - [ ] Documentation - [ ] Tooling
Add more types to the pull request template
[tool] Add more types to the pull request template
Markdown
mit
dailymotion/vast-client-js
markdown
## Code Before: Provide a description of the changes introduced in the PR. ### Issue Issue Link [Optional] ### Type - [ ] Breaking change - [ ] Enhancement - [ ] Fix ## Instruction: [tool] Add more types to the pull request template ## Code After: Provide a description of the changes introduced in the PR. ### I...
41d2da947281873287196216b03f11b1221e466d
README.md
README.md
djung ===== Boilerplate for Django projects This boilerplate sets a standard Django project along with common components. These components are: - [Django Compressor](http://django_compressor.readthedocs.org/en/latest/index.html) - [South](http://south.aeracode.org/) - [Fabric](http://docs.fabfile.org) Some frontend...
djung ===== Boilerplate for Django projects This boilerplate sets a standard Django project along with common components. These components are: - [Django Compressor](http://django_compressor.readthedocs.org/en/latest/index.html) - [South](http://south.aeracode.org/) - [Fabric](http://docs.fabfile.org) - [Nose](https...
Add Nose to list of components used
Add Nose to list of components used
Markdown
bsd-3-clause
strycore/djung,strycore/djung,strycore/djung,strycore/djung
markdown
## Code Before: djung ===== Boilerplate for Django projects This boilerplate sets a standard Django project along with common components. These components are: - [Django Compressor](http://django_compressor.readthedocs.org/en/latest/index.html) - [South](http://south.aeracode.org/) - [Fabric](http://docs.fabfile.org...
d215d510bfbac156ad73ab1673afc30fd60cb5ad
workflows/p2b1_mlrMBO/python/test/run_test.sh
workflows/p2b1_mlrMBO/python/test/run_test.sh
BENCHMARK_DIR=../../../../../Benchmarks/Pilot2/P2B1 COMMON_DIR=../../../common/python export PYTHONPATH="$PWD/..:$BENCHMARK_DIR:$COMMON_DIR" KERAS_BACKEND="theano" python test.py
THIS=$( cd $( dirname $0 ) ; /bin/pwd ) BENCHMARK_DIR=$( cd $THIS/../../../../../Benchmarks/Pilot2/P2B1 ; /bin/pwd ) COMMON_DIR=$( cd $THIS/../../../common/python ; /bin/pwd ) export PYTHONPATH="$THIS/..:$BENCHMARK_DIR:$COMMON_DIR" echo $PYTHONPATH | tr : '\n' | nl KERAS_BACKEND="theano" python $THIS/test.py
Make runnable from other directories
Make runnable from other directories
Shell
mit
ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor
shell
## Code Before: BENCHMARK_DIR=../../../../../Benchmarks/Pilot2/P2B1 COMMON_DIR=../../../common/python export PYTHONPATH="$PWD/..:$BENCHMARK_DIR:$COMMON_DIR" KERAS_BACKEND="theano" python test.py ## Instruction: Make runnable from other directories ## Code After: THIS=$( cd $( dirname $0 ) ; /bin/pwd ) BENCHMARK_D...
9e088ac1afba40faafca4cea1b1323759831a428
.travis.yml
.travis.yml
language: c os: - linux - osx sudo: false compiler: - gcc - clang before_install: - | if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew remove --force $(brew list) brew cleanup -s rm -rf $(brew --cache) fi install: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then OS="MacOSX-x86_64" else OS="Linux-x8...
language: c os: - linux - osx sudo: false compiler: - gcc - clang before_install: - | if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew remove --force $(brew list) brew cleanup -s rm -rf $(brew --cache) fi install: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then OS="MacOSX-x86_64" else OS="Linux-x8...
Add verbose flags to gtester.
Add verbose flags to gtester.
YAML
mit
csdms-contrib/cem
yaml
## Code Before: language: c os: - linux - osx sudo: false compiler: - gcc - clang before_install: - | if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew remove --force $(brew list) brew cleanup -s rm -rf $(brew --cache) fi install: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then OS="MacOSX-x86_64" else ...
84dc50eace482fe6255515a01c593177b3ff6783
getting-started/set-up/screenshots.md
getting-started/set-up/screenshots.md
Name | Description ---- | ----------- `AddScreenshotConsumer(IScreenshotConsumer consumer)` | Adds the screenshot consumer. `AddScreenshotFileSaving(string folderPath)` | Adds the `FileScreenshotConsumer` instance with the specified folder path. `AddScreenshotFileSaving(Func<string> folderPathCreator)` | Adds the `F...
The list of screenshot taking extension methods for `AtataContextBuilder`: Name | Description ---- | ----------- `AddScreenshotConsumer(IScreenshotConsumer consumer)` | Adds the screenshot consumer. Is used for custom screenshot processing. `AddScreenshotFileSaving()` | Adds the `FileScreenshotConsumer` instance f...
Update "Getting Started/Set Up/Screenshots" section
Update "Getting Started/Set Up/Screenshots" section
Markdown
apache-2.0
atata-framework/atata-framework.github.io,atata-framework/atata-framework.github.io,atata-framework/atata-framework.github.io
markdown
## Code Before: Name | Description ---- | ----------- `AddScreenshotConsumer(IScreenshotConsumer consumer)` | Adds the screenshot consumer. `AddScreenshotFileSaving(string folderPath)` | Adds the `FileScreenshotConsumer` instance with the specified folder path. `AddScreenshotFileSaving(Func<string> folderPathCreator)` ...
7d7a4bf1d3e72a5ec21c974072f9f871cf2641f6
README.md
README.md
Custom build tool to remove docker containers and databases from services. ## Config Example configuration: ```js { "domain": "test.example.com", "docker": { "host": "unix:///var/run/docker.sock", "version": "v1.22" }, "listen": ":8080" } ``` - Docker host is not required. Default i...
Custom build tool to remove docker containers and databases from services. ## Config Example configuration: ```js { "domain": "test.example.com", "docker": { "host": "unix:///var/run/docker.sock", "version": "v1.22" }, "listen": ":8080" } ``` - Docker host is not required. Default i...
Update readme with docker info
Update readme with docker info
Markdown
mit
isotopsweden/docker-farmer,isotopsweden/docker-farmer,isotopsweden/docker-farmer
markdown
## Code Before: Custom build tool to remove docker containers and databases from services. ## Config Example configuration: ```js { "domain": "test.example.com", "docker": { "host": "unix:///var/run/docker.sock", "version": "v1.22" }, "listen": ":8080" } ``` - Docker host is not req...
87fd15a5d20dba1d850143e2e4318ef7591707ec
recipes/convert3d/build.sh
recipes/convert3d/build.sh
mkdir build cd build cmake $CMAKE_ARGS -GNinja \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:STRING=$PREFIX \ .. cmake --build . ctest --extra-verbose --output-on-failure . cmake --install .
mkdir build cd build export CFLAGS="${CFLAGS} -I ${PREFIX}/include/eigen3" export CXXFLAGS="${CXXFLAGS} -I ${PREFIX}/include/eigen3" cmake $CMAKE_ARGS -GNinja \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:STRING=$PREFIX \ .. cmake --build . ctest --extra-verbose --output-on-failure . cm...
Add override for CFLAGS and CXXFLAGS
Add override for CFLAGS and CXXFLAGS
Shell
bsd-3-clause
stuertz/staged-recipes,conda-forge/staged-recipes,johanneskoester/staged-recipes,jochym/staged-recipes,jakirkham/staged-recipes,kwilcox/staged-recipes,ReimarBauer/staged-recipes,hadim/staged-recipes,johanneskoester/staged-recipes,ocefpaf/staged-recipes,ReimarBauer/staged-recipes,mariusvniekerk/staged-recipes,igortg/sta...
shell
## Code Before: mkdir build cd build cmake $CMAKE_ARGS -GNinja \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:STRING=$PREFIX \ .. cmake --build . ctest --extra-verbose --output-on-failure . cmake --install . ## Instruction: Add override for CFLAGS and CXXFLAGS ## Code After: mkdir buil...
bb0e8faf73298d3b5ce78853b9a70cb8c34b9965
trace_viewer/trace_viewer_project.py
trace_viewer/trace_viewer_project.py
import sys import os from tvcm import project as project_module class TraceViewerProject(project_module.Project): trace_viewer_path = os.path.abspath(os.path.join( os.path.dirname(__file__), '..')) src_path = os.path.abspath(os.path.join( trace_viewer_path, 'trace_viewer')) trace_viewer_third_pa...
import sys import os from tvcm import project as project_module class TraceViewerProject(project_module.Project): trace_viewer_path = os.path.abspath(os.path.join( os.path.dirname(__file__), '..')) src_path = os.path.abspath(os.path.join( trace_viewer_path, 'trace_viewer')) trace_viewer_third_pa...
Allow other_paths to be passed into TraceViewerProject
Allow other_paths to be passed into TraceViewerProject This allows external embedders to subclass TraceViewerProject and thus use trace viewer.
Python
bsd-3-clause
catapult-project/catapult-csm,sahiljain/catapult,catapult-project/catapult-csm,sahiljain/catapult,catapult-project/catapult-csm,dstockwell/catapult,danbeam/catapult,catapult-project/catapult-csm,0x90sled/catapult,dstockwell/catapult,catapult-project/catapult,scottmcmaster/catapult,sahiljain/catapult,sahiljain/catapult,...
python
## Code Before: import sys import os from tvcm import project as project_module class TraceViewerProject(project_module.Project): trace_viewer_path = os.path.abspath(os.path.join( os.path.dirname(__file__), '..')) src_path = os.path.abspath(os.path.join( trace_viewer_path, 'trace_viewer')) trace...
278b2a6d67db0b6a6f7d17ce63af9f6a58c53094
app/helpers/travel_advice_helper.rb
app/helpers/travel_advice_helper.rb
require 'htmlentities' module TravelAdviceHelper def group_by_initial_letter(countries) groups = countries.group_by do |country| country.name[0] if country&.name end groups.sort_by { |name, _| name } end def format_atom_change_description(text) # Encode basic entities([<>&'"]) as named, t...
require 'htmlentities' module TravelAdviceHelper def format_atom_change_description(text) # Encode basic entities([<>&'"]) as named, the rest as decimal simple_format(HTMLEntities.new.encode(text, :basic, :decimal)) end end
Remove grouping method from helper
Remove grouping method from helper This is now done in the presenter.
Ruby
mit
alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend
ruby
## Code Before: require 'htmlentities' module TravelAdviceHelper def group_by_initial_letter(countries) groups = countries.group_by do |country| country.name[0] if country&.name end groups.sort_by { |name, _| name } end def format_atom_change_description(text) # Encode basic entities([<>&...
a9d781f751e32f9d70641a36f76baef58b0a0e94
public/failure-list.less
public/failure-list.less
.failureList { display: flex; height: 100%; transition: background-color 2s; border-radius: 5px; background: green; &.has-failures { background-color: red; } ul { padding-top: 10px; padding-left: 0; list-style: none; } > div { margin: auto; } .title { font-family: san...
.failureList { display: flex; height: 100%; transition: background-color 2s; border-radius: 5px; background: green; &.has-failures { background-color: red; ul { display: block; } } ul { display: none; padding-top: 10px; padding-left: 0; list-style: none; } > div...
Hide failure list if there are no failures
Hide failure list if there are no failures
Less
mit
idiotwithalaptop/dashinator,idiotwithalaptop/dashinator
less
## Code Before: .failureList { display: flex; height: 100%; transition: background-color 2s; border-radius: 5px; background: green; &.has-failures { background-color: red; } ul { padding-top: 10px; padding-left: 0; list-style: none; } > div { margin: auto; } .title { ...
243338f707d2e4c72c82a89b78ea69b2dc1e5232
.eslintrc.json
.eslintrc.json
{ "extends": ["standard"], "env": { "browser": true, "node": true }, "rules": { "semi": ["error", "always", { "omitLastInOneLineBlock": true }], "semi-spacing": ["error", {"before": false, "after": true}], "no-unexpected-multiline": "error", "quotes": ["error", "double", "avo...
{ "extends": ["standard"], "env": { "browser": true, "node": true }, "rules": { "semi": ["error", "always", { "omitLastInOneLineBlock": true }], "semi-spacing": ["error", {"before": false, "after": true}], "no-unexpected-multiline": "error", "quotes": ["error", "double", "avo...
Revert to strict(er) linting rules
Revert to strict(er) linting rules In particular, make sure "no-undef" triggers an error, but be gentle on - "handle-callback-err" - "no-redeclare"
JSON
mit
michmech/lexonomy,michmech/lexonomy
json
## Code Before: { "extends": ["standard"], "env": { "browser": true, "node": true }, "rules": { "semi": ["error", "always", { "omitLastInOneLineBlock": true }], "semi-spacing": ["error", {"before": false, "after": true}], "no-unexpected-multiline": "error", "quotes": ["error"...
4c130e3883ca9bf909d519d5d29bd3a0a2a89201
.travis.yml
.travis.yml
sudo: false dist: trusty language: ruby cache: directories: - vendor/bundle rvm: - '2.4.1' - '2.3.4' - '2.2.7' - '2.1.10' env: - REDMINE_VERSION=3.4.2 - REDMINE_VERSION=3.3.4 - REDMINE_VERSION=3.2.7 - REDMINE_VERSION=3.1.7 - REDMINE_VERSION=2.6.10 - REDMINE_VERSION=master matrix: allow_failures: - env: REDMINE_...
sudo: false dist: trusty language: ruby cache: directories: - vendor/bundle rvm: - 2.4.1 - 2.3.4 - 2.2.7 - 2.1.10 env: - REDMINE_VERSION=3.4.2 - REDMINE_VERSION=3.3.4 - REDMINE_VERSION=3.2.7 - REDMINE_VERSION=3.1.7 - REDMINE_VERSION=2.6.10 - REDMINE_VERSION=master matrix: allow_failures: - env: REDMINE_VERSION=...
Disable older Redmine versions not support MRI 2.4
Disable older Redmine versions not support MRI 2.4
YAML
apache-2.0
jgraichen/redmine_dashboard,jgraichen/redmine_dashboard,jgraichen/redmine_dashboard
yaml
## Code Before: sudo: false dist: trusty language: ruby cache: directories: - vendor/bundle rvm: - '2.4.1' - '2.3.4' - '2.2.7' - '2.1.10' env: - REDMINE_VERSION=3.4.2 - REDMINE_VERSION=3.3.4 - REDMINE_VERSION=3.2.7 - REDMINE_VERSION=3.1.7 - REDMINE_VERSION=2.6.10 - REDMINE_VERSION=master matrix: allow_failures: ...
8d4fe2a18c02c24549c4bd199654a549f6a9e9a1
server/env/isOnline.js
server/env/isOnline.js
const axios = require('axios') const isOnline = async (req, res) => { try { const {status} = await axios.get('https://myanimelist.net') res.status(status === 200 ? 200 : 204).send() } catch (e) { res.status(204).send() } } module.exports = isOnline
const axios = require('axios') const isOnline = (req, res) => { axios.get('https://myanimelist.net') .then(({status}) => { res.status(status === 200 ? 200 : 204).send() }) .catch(() => res.status(204).send()) } module.exports = isOnline
Fix attempt to offline leak
Fix attempt to offline leak
JavaScript
mit
Kylart/KawAnime,Kylart/KawAnime,Kylart/KawAnime
javascript
## Code Before: const axios = require('axios') const isOnline = async (req, res) => { try { const {status} = await axios.get('https://myanimelist.net') res.status(status === 200 ? 200 : 204).send() } catch (e) { res.status(204).send() } } module.exports = isOnline ## Instruction: Fix attempt to of...
4007973b864d140338b0f9788d89b83700102c84
google-api-server.js
google-api-server.js
GoogleApi = { get: Meteor._wrapAsync(_.bind(GoogleApiAsync.get, GoogleApiAsync)), post: Meteor._wrapAsync(_.bind(GoogleApiAsync.post, GoogleApiAsync)) }
var syncUnlessCallbackProvided = function(fn) { return function(/* arguments */) { var args = _.toArray(arguments); if (_.isFunction(args[args.length - 1])) return fn.apply(this, args); else return Meteor._wrapAsync(fn).apply(this, args); } } GoogleApi = { get: syncUnlessCallbackProvided(...
Allow async API on server
Allow async API on server
JavaScript
mit
jasonparekh/meteor-google-api,wizonesolutions/meteor-google-api,danopia/meteor-google-api,quackware/meteor-google-api,percolatestudio/meteor-google-api,ro6/meteor-google-api,hexsprite/meteor-google-api
javascript
## Code Before: GoogleApi = { get: Meteor._wrapAsync(_.bind(GoogleApiAsync.get, GoogleApiAsync)), post: Meteor._wrapAsync(_.bind(GoogleApiAsync.post, GoogleApiAsync)) } ## Instruction: Allow async API on server ## Code After: var syncUnlessCallbackProvided = function(fn) { return function(/* arguments */) { ...
4a83f02875e061058062e75624d0ec9ca86fe510
gulpfile.js
gulpfile.js
'use strict'; const gulp = require('gulp'); const tools = require('./src'); const unmockedModulePathPatterns = [ 'node_modules/.*', 'utils/helper-tests.js' ]; tools.initialize(gulp, { checkDependencies: true, checkFileNames: defaults => { defaults.paramCase.push('!src/tasks/check-file-names/__tests__/**...
'use strict'; const gulp = require('gulp'); const tools = require('./src'); const globalSourceFiles = require('./src/utils/global-source-files'); const unmockedModulePathPatterns = [ 'node_modules/.*', 'utils/helper-tests.js' ]; tools.setGlobalConfiguration({ sourceFiles: globalSourceFiles.concat('!**/dist/**'...
Fix eslint & jscs errors (ignore generated files in test folders)
Fix eslint & jscs errors (ignore generated files in test folders)
JavaScript
mit
urbanjs/urbanjs-tools,urbanjs/urbanjs-tools,urbanjs/tools,urbanjs/urbanjs-tools,urbanjs/tools,urbanjs/tools
javascript
## Code Before: 'use strict'; const gulp = require('gulp'); const tools = require('./src'); const unmockedModulePathPatterns = [ 'node_modules/.*', 'utils/helper-tests.js' ]; tools.initialize(gulp, { checkDependencies: true, checkFileNames: defaults => { defaults.paramCase.push('!src/tasks/check-file-na...
a767458ddc899059e079ff723ab6110cd42b5d39
.travis.yml
.travis.yml
language: python python: - 2.7 sudo: false cache: directories: - ~/.platformio # include one array element for each sketch in examples/ env: - PLATFORMIO_CI_SRC=examples/BareMinimum/BareMinimum.ino - PLATFORMIO_CI_SRC=examples/MultipleDevices/MultipleDevices.ino - PLATFORMIO_BOARD=uno - PLATFORMIO_B...
language: python python: - 2.7 sudo: false cache: directories: - ~/.platformio # include one array element for each sketch in examples/ env: - PLATFORMIO_CI_SRC=examples/BareMinimum/BareMinimum.ino - PLATFORMIO_CI_SRC=examples/MultipleDevices/MultipleDevices.ino matrix: env: - PLATFORMIO_BOARD=un...
Move board env vars to matrix key
Move board env vars to matrix key
YAML
apache-2.0
4-20ma/I2cDiscreteIoExpander,4-20ma/I2cDiscreteIoExpander
yaml
## Code Before: language: python python: - 2.7 sudo: false cache: directories: - ~/.platformio # include one array element for each sketch in examples/ env: - PLATFORMIO_CI_SRC=examples/BareMinimum/BareMinimum.ino - PLATFORMIO_CI_SRC=examples/MultipleDevices/MultipleDevices.ino - PLATFORMIO_BOARD=uno ...
faf1f3a758781cdad03a23227b987027738d5abe
public/index.html
public/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="theme-color" content="#000000"> <title>React App</title> </head> <body> <noscript> You need to enable JavaScript to run this app. </noscript...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="theme-color" content="#000000"> <link rel="stylesheet" href="https://sdks.shopifycdn.com/polaris/1.8.3/polaris.min.css" /> <link rel="stylesheet" t...
Add link to Polaris and Blueprint styles in development.
Add link to Polaris and Blueprint styles in development.
HTML
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="theme-color" content="#000000"> <title>React App</title> </head> <body> <noscript> You need to enable JavaScript to run this a...
e4c0361cedef90f87b7032e7c147aaaaebb1c681
app/views/packages/index.js.erb
app/views/packages/index.js.erb
$('.cs-main-area .list-group').append("<%= escape_javascript render partial: 'package_list', locals: { packages: @packages, page: params[:page] } %>"); var newPagination; <% if @packages.count > WillPaginate.per_page * ( params[:page] || '1' ).to_i %> newPagination = "<%= escape_javascript will_paginate @packages, c...
var appendedSelector = '.cs-main-area > .panel:first-child .list-group', appendedList = `<%= escape_javascript render partial: 'package_list', \ locals: { packages: @packages, page: params[:page] } %>`; $(appendedSelector).append(appendedList); var newPagination; <% if @packages.count > WillPagi...
Fix items being appended to wrong panel on mobile
Fix items being appended to wrong panel on mobile
HTML+ERB
mit
djsegal/julia_observer,djsegal/julia_observer,djsegal/julia_observer
html+erb
## Code Before: $('.cs-main-area .list-group').append("<%= escape_javascript render partial: 'package_list', locals: { packages: @packages, page: params[:page] } %>"); var newPagination; <% if @packages.count > WillPaginate.per_page * ( params[:page] || '1' ).to_i %> newPagination = "<%= escape_javascript will_pagin...
25f26842b8371b13b3fc9f4abf12dfba0b0408bc
shapely/tests/__init__.py
shapely/tests/__init__.py
from test_doctests import test_suite
from unittest import TestSuite import test_doctests, test_prepared def test_suite(): suite = TestSuite() suite.addTest(test_doctests.test_suite()) suite.addTest(test_prepared.test_suite()) return suite
Integrate tests of prepared geoms into main test suite.
Integrate tests of prepared geoms into main test suite. git-svn-id: 1a8067f95329a7fca9bad502d13a880b95ac544b@1508 b426a367-1105-0410-b9ff-cdf4ab011145
Python
bsd-3-clause
mindw/shapely,mindw/shapely,mouadino/Shapely,mouadino/Shapely,abali96/Shapely,jdmcbr/Shapely,abali96/Shapely,jdmcbr/Shapely
python
## Code Before: from test_doctests import test_suite ## Instruction: Integrate tests of prepared geoms into main test suite. git-svn-id: 1a8067f95329a7fca9bad502d13a880b95ac544b@1508 b426a367-1105-0410-b9ff-cdf4ab011145 ## Code After: from unittest import TestSuite import test_doctests, test_prepared def test_suit...
84b3ceec01cf8bdb8f1e7c3ffa102ffde79dc007
package.json
package.json
{ "name": "codius-engine", "version": "1.2.0", "description": "Codius smart oracle runtime engine for Node.js", "main": "index.js", "repository": { "type": "git", "url": "git://github.com/codius/engine.git" }, "scripts": { "test": "./node_modules/.bin/istanbul test --preload-sources ./node_mod...
{ "name": "codius-engine", "version": "1.2.0", "description": "Codius smart oracle runtime engine for Node.js", "main": "index.js", "repository": { "type": "git", "url": "git://github.com/codius/engine.git" }, "scripts": { "test": "./node_modules/.bin/istanbul test --preload-sources ./node_mod...
Bump version and sandbox tag version
[TASK] Bump version and sandbox tag version
JSON
isc
codius/codius-engine
json
## Code Before: { "name": "codius-engine", "version": "1.2.0", "description": "Codius smart oracle runtime engine for Node.js", "main": "index.js", "repository": { "type": "git", "url": "git://github.com/codius/engine.git" }, "scripts": { "test": "./node_modules/.bin/istanbul test --preload-so...
8d175fb8793d460adc4b1ce3f59bdcbec046aed8
packages/@sanity/form-builder/src/inputs/BlockEditor-slate/styles/contentStyles/ListItem.css
packages/@sanity/form-builder/src/inputs/BlockEditor-slate/styles/contentStyles/ListItem.css
.root { display: list-item; margin-left: 1.1em; margin-bottom: 0.5em; list-style-position: outside; } .root > * { display: inline-flex;; margin: 0; padding: 0; line-height: 100%; } .bullet { composes: root; list-style-type: none; } .bullet > * { @nest &:before { content: '\2022'; margin...
.root { display: list-item; margin-left: 1.1em; margin-bottom: 0.5em; list-style-position: outside; } .root > * { display: inline-flex;; margin: 0; padding: 0; line-height: 100%; } .bullet { composes: root; list-style-type: none; } .bullet > * { @nest &:before { content: '\25CF'; margin...
Use black circle as bullet point symbol
[form-builder] Slate: Use black circle as bullet point symbol
CSS
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
css
## Code Before: .root { display: list-item; margin-left: 1.1em; margin-bottom: 0.5em; list-style-position: outside; } .root > * { display: inline-flex;; margin: 0; padding: 0; line-height: 100%; } .bullet { composes: root; list-style-type: none; } .bullet > * { @nest &:before { content: '\2...
d45ebd1197ec69d85cb977e03110d2a143ab6437
app/views/courses/_row.html.erb
app/views/courses/_row.html.erb
<tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link"> <td class="<%= user ? 'u' : '' %>title title"> <%= course.title %> </td> <td class="revisions"> <%= course.recent_edit_count %> </td> <td> <span class="characters-human"> ...
<tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link" tabindex="0"> <td class="<%= user ? 'u' : '' %>title title"> <%= course.title %> </td> <td class="revisions"> <%= course.recent_edit_count %> </td> <td> <span class="characters-...
Add tabindex to course rows
Add tabindex to course rows This will further improve accessibility by letting the rows take focus when navigating by keyboard.
HTML+ERB
mit
majakomel/WikiEduDashboard,feelfreelinux/WikiEduDashboard,KarmaHater/WikiEduDashboard,MusikAnimal/WikiEduDashboard,MusikAnimal/WikiEduDashboard,Wowu/WikiEduDashboard,KarmaHater/WikiEduDashboard,KarmaHater/WikiEduDashboard,Wowu/WikiEduDashboard,Wowu/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,sejalkhatri/W...
html+erb
## Code Before: <tr data-link="<%= course_slug_path(course.slug) %>" class="<%= user ? date_highlight_class(course) : '' %>" role="link"> <td class="<%= user ? 'u' : '' %>title title"> <%= course.title %> </td> <td class="revisions"> <%= course.recent_edit_count %> </td> <td> <span class="characte...
32f0bfe4712489957d79763b31b361442364641e
includes/recorder.yaml
includes/recorder.yaml
db_url: !secret db_url purge_interval: 1 purge_keep_days: 2 commit_interval: 2 exclude: domains: - automation - camera - media_player - scene - script entities: - sun.sun - sensor.date_time
db_url: !secret db_url purge_keep_days: 2 commit_interval: 2 exclude: domains: - automation - camera - media_player - scene - script entities: - sun.sun - sensor.date_time
Remove purge interval for 0.109 update
Remove purge interval for 0.109 update
YAML
mit
fronzbot/githass,fronzbot/githass,fronzbot/githass
yaml
## Code Before: db_url: !secret db_url purge_interval: 1 purge_keep_days: 2 commit_interval: 2 exclude: domains: - automation - camera - media_player - scene - script entities: - sun.sun - sensor.date_time ## Instruction: Remove purge interval for 0.109 update ## Code After: db_url: !s...
f307cf4a77a5907ee63d90a77cd427f1d0b446b7
subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalGroup.java
subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalGroup.java
/* * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Add equals/hashCode to ordinal Group
Add equals/hashCode to ordinal Group When loading the execution graph (nodes) from the configuration cache, then new node groups are created for the ordinals. Since those didn't have an equals/hashCode implementation, we ended up having to different OrdinalGroups in OrdinalNodeAccess for the destroyer tasks, although ...
Java
apache-2.0
gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle
java
## Code Before: /* * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
22a15baa9bac645b1ffb58fa87233143627cf671
ng-template.js
ng-template.js
/*global System:false, exports:false */ var serverRelativeRegexp = /^\w+:\/\/[^\/]*/; function santiseSource( source ) { return source.replace( /(['\\])/g, '\\$1' ) .replace( /[\f]/g, '\\f' ) .replace( /[\b]/g, '\\b' ) .replace( /[\n]/g, '\\n' ) .replace( /[\t]/g, '\\t' ) .replace( /[\r]/g, '\\r...
/*global System:false, exports:false */ function santiseSource( source ) { return source.replace( /(['\\])/g, '\\$1' ) .replace( /[\f]/g, '\\f' ) .replace( /[\b]/g, '\\b' ) .replace( /[\n]/g, '\\n' ) .replace( /[\t]/g, '\\t' ) .replace( /[\r]/g, '\\r' ) .replace( /[\u2028]/g, '\\u2028' ) ...
Fix issues with resolving server relative URLs when bundling with JSPM
Fix issues with resolving server relative URLs when bundling with JSPM
JavaScript
mit
jamespamplin/plugin-ng-template
javascript
## Code Before: /*global System:false, exports:false */ var serverRelativeRegexp = /^\w+:\/\/[^\/]*/; function santiseSource( source ) { return source.replace( /(['\\])/g, '\\$1' ) .replace( /[\f]/g, '\\f' ) .replace( /[\b]/g, '\\b' ) .replace( /[\n]/g, '\\n' ) .replace( /[\t]/g, '\\t' ) .replac...
16fa91c15f27843b8d947ca47fac4e50bd765d2f
lib/controllers/list_controller.js
lib/controllers/list_controller.js
ListController = RouteController.extend({ layoutTemplate: 'Layout', subscriptions: function () { this.subscribe('hosts'); }, action: function () { this.render('HostList'); } });
ListController = RouteController.extend({ layoutTemplate: 'Layout', subscriptions: function () { this.subscribe('hosts', { sort: {sort: 1} }); }, action: function () { this.render('HostList'); } });
Add sort for host list subscription.
Add sort for host list subscription.
JavaScript
mit
steyep/syrinx,hb5co/syrinx,mikebarkas/syrinx,bfodeke/syrinx,bfodeke/syrinx,hb5co/syrinx,steyep/syrinx,shrop/syrinx,shrop/syrinx,mikebarkas/syrinx
javascript
## Code Before: ListController = RouteController.extend({ layoutTemplate: 'Layout', subscriptions: function () { this.subscribe('hosts'); }, action: function () { this.render('HostList'); } }); ## Instruction: Add sort for host list subscription. ## Code After: ListController = RouteController.ex...
57af90edb9910eb308a6b3acdc1ceb3b335eddeb
share/gmail-backup.sh
share/gmail-backup.sh
OPTS="-o --no-compression -t quick" BASE="$HOME/Downloads/gmvault-v1.7-beta/bin/" GMVAULT="$HOME/Mail/gmvault-db" TSOCKS="sh" args=`getopt hrt $*` errcode=$? if [ $errcode != 0 ]; then echo "Usage $0 [-hrt] email directory" exit 2 fi set -- $args for i in $* do case "$i" in -h) echo "Backup for GMail" ...
OPTS="-o --no-compression -t quick" BASE="$HOME/Downloads/gmvault-v1.7-beta/bin/" GMVAULT="$HOME/Mail/gmvault-db" TSOCKS="sh" args=`getopt rt $*` errcode=$? if [ $errcode != 0 ]; then echo "Usage $0 [-rt] email directory" exit 2 fi set $args for i in $* do case "$i" in -r) echo 'Resume' OPTS="$OPTS --resume...
Remove -h, not needed. Fix argument count.
Remove -h, not needed. Fix argument count.
Shell
mit
keltia/gmail-utils
shell
## Code Before: OPTS="-o --no-compression -t quick" BASE="$HOME/Downloads/gmvault-v1.7-beta/bin/" GMVAULT="$HOME/Mail/gmvault-db" TSOCKS="sh" args=`getopt hrt $*` errcode=$? if [ $errcode != 0 ]; then echo "Usage $0 [-hrt] email directory" exit 2 fi set -- $args for i in $* do case "$i" in -h) echo "Bac...
52a38684b2881b9e4a30e4092381d2113cd32719
src/script.js
src/script.js
// // script.js // 'use strict'; chrome.runtime.onInstalled.addListener(() => { chrome.contextMenus.create({ contexts: ['page', 'frame', 'selection', 'link', 'editable', 'image', 'video', 'audio'], id: 'background_img', title: chrome.i18n.getMessage('title') }); }); chrome.contextMen...
// // script.js // 'use strict'; chrome.runtime.onInstalled.addListener(() => { chrome.contextMenus.create({ contexts: ['page', 'frame', 'selection', 'link', 'editable', 'image', 'video', 'audio'], id: 'background_img', title: chrome.i18n.getMessage('title') }); }); chrome.contextMen...
Change the way to report bugs
Change the way to report bugs
JavaScript
mit
foooomio/view-background-image,foooomio/view-background-image,foooomio/view-background-image
javascript
## Code Before: // // script.js // 'use strict'; chrome.runtime.onInstalled.addListener(() => { chrome.contextMenus.create({ contexts: ['page', 'frame', 'selection', 'link', 'editable', 'image', 'video', 'audio'], id: 'background_img', title: chrome.i18n.getMessage('title') }); }); c...
13d6a1678f75e306ea109c34fdcc83b82e155d11
spec/cli_spec.rb
spec/cli_spec.rb
require 'spec_helper' describe Tracking::CLI do before :each { backup_data } after :each { restore_data } it 'performs a few operations on a new list and then clears it' do capture_output do Tracking::List.clear Tracking::CLI.display Tracking::List.add 'first task' Tracking::List.add 'second task' ...
require 'spec_helper' describe Tracking::CLI do before(:all) { backup_data } after(:all) { restore_data } it 'performs a few operations on a new list and then clears it' do capture_output do Tracking::List.clear Tracking::CLI.display Tracking::List.add 'first task' Tracking::List.add 'second task' ...
Use before/after :all, not before/after :each
Tests: Use before/after :all, not before/after :each
Ruby
mit
nicolasmccurdy/tracking
ruby
## Code Before: require 'spec_helper' describe Tracking::CLI do before :each { backup_data } after :each { restore_data } it 'performs a few operations on a new list and then clears it' do capture_output do Tracking::List.clear Tracking::CLI.display Tracking::List.add 'first task' Tracking::List.ad...
67187d74a0fbad323bec94d6d6ea3c073a867dba
README.md
README.md
Development environment ======================= This will help you get set up with the Land Registry concept development environment. Installation ------------ 1. Check out this repository: $ git clone git@github.com:LandRegistry/concept-development.git landregistry $ cd landregistry/ 2. Install [V...
Development environment ======================= This will help you get set up with the Land Registry concept development environment. Installation ------------ 1. Check out this repository: $ git clone git@github.com:LandRegistry/concept-development.git landregistry $ cd landregistry/ 2. Install [V...
Document where service is listening
Document where service is listening
Markdown
mit
LandRegistry-Attic/concept-development-environment
markdown
## Code Before: Development environment ======================= This will help you get set up with the Land Registry concept development environment. Installation ------------ 1. Check out this repository: $ git clone git@github.com:LandRegistry/concept-development.git landregistry $ cd landregistry...
a2f2177c71435cbb2ca2092838da6244da073bbb
package.json
package.json
{ "name": "stitch" , "description": "Stitch your CommonJS modules together for the browser" , "contributors": [ "Josh Peek" , "Sam Stephenson" ] , "version": "0.3.1" , "licenses": [ { "type": "MIT" , "url": "http://github.com/sstephenson/stitch/raw/master/LICENSE" }] , "main": "./lib/stitch" , "repository":...
{ "name": "stitch" , "description": "Stitch your CommonJS modules together for the browser" , "contributors": [ "Josh Peek" , "Sam Stephenson" ] , "version": "0.3.1" , "licenses": [ { "type": "MIT" , "url": "http://github.com/sstephenson/stitch/raw/master/LICENSE" }] , "main": "./lib/stitch" , "repository":...
Add coffee-script and nodeunit as dev deps
Add coffee-script and nodeunit as dev deps
JSON
mit
sstephenson/stitch
json
## Code Before: { "name": "stitch" , "description": "Stitch your CommonJS modules together for the browser" , "contributors": [ "Josh Peek" , "Sam Stephenson" ] , "version": "0.3.1" , "licenses": [ { "type": "MIT" , "url": "http://github.com/sstephenson/stitch/raw/master/LICENSE" }] , "main": "./lib/stitch"...
84bdeec792da8f9a3406c56c0a50450e4ff744ab
setup/setup.txt
setup/setup.txt
GPIO setup wirinPi as explained here: http://www.raspberrypi.org/forums/viewtopic.php?t=32177&p=483706 Add pin 17 here in /etc/rc.local (-> reboot) sudo -u pi /usr/local/bin/gpio export 17 out Apache Make it listen on the port that is used (5000) add Listen 5000 to /etc/apache2/ports.conf Create user...
GPIO setup wirinPi as explained here: http://www.raspberrypi.org/forums/viewtopic.php?t=32177&p=483706 Add pin 17 here in /etc/rc.local (-> reboot) sudo -u pi /usr/local/bin/gpio export 17 out Apache Make it listen on the port that is used (5000) add Listen 5000 to /etc/apache2/ports.conf Create user...
Add create statement for the database
Add create statement for the database
Text
mit
marian42/fishtank,marian42/fishtank,marian42/fishtank
text
## Code Before: GPIO setup wirinPi as explained here: http://www.raspberrypi.org/forums/viewtopic.php?t=32177&p=483706 Add pin 17 here in /etc/rc.local (-> reboot) sudo -u pi /usr/local/bin/gpio export 17 out Apache Make it listen on the port that is used (5000) add Listen 5000 to /etc/apache2/ports.conf...
1c96f9ff1613c3a3626d9691282291d6a805640b
web/opensubmit/templates/footer.html
web/opensubmit/templates/footer.html
<footer class="footer"> OpenSubmit v{{opensubmit_version}} &nbsp;&nbsp;<a href="mailto:{{opensubmit_admin}}">Feedback</a> {% if user.is_authenticated %} &nbsp;&nbsp; <a href="{{main_url}}/teacher/">Teacher backend</a> {% endif %} </footer>
<footer class="footer"> <a href="http://open-submit.org">OpenSubmit</a> v{{opensubmit_version}} &nbsp;&nbsp;<a href="mailto:{{opensubmit_admin}}">Feedback</a> {% if user.is_authenticated %} &nbsp;&nbsp; <a href="{{main_url}}/teacher/">Teacher backend</a> {% endif %} </footer>
Work on our Google ranking
Work on our Google ranking
HTML
agpl-3.0
troeger/opensubmit,troeger/opensubmit,troeger/opensubmit,troeger/opensubmit,troeger/opensubmit
html
## Code Before: <footer class="footer"> OpenSubmit v{{opensubmit_version}} &nbsp;&nbsp;<a href="mailto:{{opensubmit_admin}}">Feedback</a> {% if user.is_authenticated %} &nbsp;&nbsp; <a href="{{main_url}}/teacher/">Teacher backend</a> {% endif %} </footer> ## Instruction: Work on our Google ranking ...
6bc11ea44c07cddd567a5039b9442a95e9ce04fe
comics/crawler/utils/lxmlparser.py
comics/crawler/utils/lxmlparser.py
from lxml.html import parse, fromstring class LxmlParser(object): def __init__(self, url=None, string=None): if url: self.root = parse(url).getroot() self.root.make_links_absolute(url) elif string: self.root = fromstring(string) def text(self, selector): ...
from lxml.html import parse, fromstring class LxmlParser(object): def __init__(self, url=None, string=None): if url is not None: self.root = parse(url).getroot() self.root.make_links_absolute(url) elif string is not None: self.root = fromstring(string) e...
Update exception handling in LxmlParser
Update exception handling in LxmlParser
Python
agpl-3.0
datagutten/comics,klette/comics,klette/comics,jodal/comics,jodal/comics,klette/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,datagutten/comics
python
## Code Before: from lxml.html import parse, fromstring class LxmlParser(object): def __init__(self, url=None, string=None): if url: self.root = parse(url).getroot() self.root.make_links_absolute(url) elif string: self.root = fromstring(string) def text(sel...
30ed04ece86cd5b5505da7a792e06f8fd51a9a62
src/oldie.js
src/oldie.js
// this code is from developer.mozilla.org // adds the forEach array method if it doesn't exist if ( !Array.prototype.forEach ) { Array.prototype.forEach = function( fn, scope ) { "use strict"; for(var i = 0, len = this.length; i < len; ++i) { fn.call(scope, this[i], i, this); } } } // adds the filter ar...
// this code is from developer.mozilla.org // adds the forEach array method if it doesn't exist if ( !Array.prototype.forEach ) { Array.prototype.forEach = function( fn, scope ) { "use strict"; for(var i = 0, len = this.length; i < len; ++i) { fn.call(scope, this[i], i, this); } } } // adds the filter ar...
Create a dummy console for browsers without one
Create a dummy console for browsers without one Fixes issue with IE8 under Win7
JavaScript
mit
steelbreeze/state.js,steelbreeze/state.js
javascript
## Code Before: // this code is from developer.mozilla.org // adds the forEach array method if it doesn't exist if ( !Array.prototype.forEach ) { Array.prototype.forEach = function( fn, scope ) { "use strict"; for(var i = 0, len = this.length; i < len; ++i) { fn.call(scope, this[i], i, this); } } } // ad...
0751ee8ea1153ca1227fafcfbca1dc00fc148c4b
qual/calendar.py
qual/calendar.py
from datetime import date, timedelta class DateWithCalendar(object): def __init__(self, calendar_class, date): self.calendar = calendar_class self.date = date def convert_to(self, calendar): return calendar.from_date(self.date) def __eq__(self, other): return self.calendar...
from datetime import date, timedelta class DateWithCalendar(object): def __init__(self, calendar_class, date): self.calendar = calendar_class self.date = date def convert_to(self, calendar): return calendar.from_date(self.date) def __eq__(self, other): return self.calendar...
Move from_date() into an abstract base class.
Move from_date() into an abstract base class.
Python
apache-2.0
jwg4/qual,jwg4/calexicon
python
## Code Before: from datetime import date, timedelta class DateWithCalendar(object): def __init__(self, calendar_class, date): self.calendar = calendar_class self.date = date def convert_to(self, calendar): return calendar.from_date(self.date) def __eq__(self, other): retu...
c89ebfe8f112ced80b3be2052c4c66c185c3108f
.travis.yml
.travis.yml
language: objective-c before_install: - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" - gem update --system - gem install cocoapods xcpretty notifications: email: on_success: change on_failure: always before_script: - export LANG=en_US.UTF-8 script: xcodebuild -workspace RBBAnimatio...
language: objective-c before_install: - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" - export LANG=en_US.UTF-8 - gem update --system - gem install cocoapods xcpretty notifications: email: on_success: change on_failure: always script: xcodebuild -workspace RBBAnimation.xcworkspace -s...
Move export LANG to before_install:
Move export LANG to before_install:
YAML
mit
liuzechen/RBBAnimation,Farteen/RBBAnimation,adronfan/RBBAnimation,Farteen/RBBAnimation,mitchellporter/RBBAnimation,mitchellporter/RBBAnimation,liuzechen/RBBAnimation,robb/RBBAnimation,adronfan/RBBAnimation,Farteen/RBBAnimation,wearezeta/RBBAnimation
yaml
## Code Before: language: objective-c before_install: - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" - gem update --system - gem install cocoapods xcpretty notifications: email: on_success: change on_failure: always before_script: - export LANG=en_US.UTF-8 script: xcodebuild -works...
776c1dbda3871c2b94d849ea59db25f93bb59525
src/mmw/apps/water_balance/views.py
src/mmw/apps/water_balance/views.py
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.shortcuts import render_to_response def home_page(request): return render_to_response('home_page/index.html')
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.shortcuts import render_to_response from django.template import RequestContext def home_page(request): return render_to_response('home_page/index.html', RequestContext(request))
Add RequestContext to Micro site
Add RequestContext to Micro site This allows us to populate settings variables such as Google Analytics codes. See original work done for #769. Refs #920
Python
apache-2.0
lliss/model-my-watershed,WikiWatershed/model-my-watershed,kdeloach/model-my-watershed,lliss/model-my-watershed,lliss/model-my-watershed,kdeloach/model-my-watershed,project-icp/bee-pollinator-app,kdeloach/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,lliss/model-my-watershed,WikiWa...
python
## Code Before: from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.shortcuts import render_to_response def home_page(request): return render_to_response('home_page/index.html') ## Instruction: Add RequestContext to Micro site This allows us...
bffd0ce1785839514a04440b9b0dce24db98e69d
nvim/.config/nvim/mappings.vim
nvim/.config/nvim/mappings.vim
let mapleader=" " inoremap jj <Esc> " window management nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l nnoremap <C-h> <C-w>h " buffers nnoremap <silent> <TAB> :bnext<CR> nnoremap <silent> <S-TAB> :bprevious<CR> " tabbing vnoremap < <gv vnoremap > >gv " move selection vnoremap J :m '>+1<cr>gv=gv ...
let mapleader=" " inoremap jj <Esc> " window management nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l nnoremap <C-h> <C-w>h " buffers nnoremap <silent> <TAB> :bnext<CR> nnoremap <silent> <S-TAB> :bprevious<CR> " tabbing vnoremap < <gv vnoremap > >gv " move selection vnoremap J :m '>+1<cr>gv=gv ...
Copy text selected with mouse
Copy text selected with mouse
VimL
mit
il-tmfv/dotfiles
viml
## Code Before: let mapleader=" " inoremap jj <Esc> " window management nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l nnoremap <C-h> <C-w>h " buffers nnoremap <silent> <TAB> :bnext<CR> nnoremap <silent> <S-TAB> :bprevious<CR> " tabbing vnoremap < <gv vnoremap > >gv " move selection vnoremap J :...
c39260e64c8820bad9243c35f10b352419425810
marble/tests/test_exposure.py
marble/tests/test_exposure.py
""" Tests for the exposure computation """ from nose.tools import * import marble as mb # Test maximum value of exposure # Test maximum value of isolation # Test minimum of exposure # Test minimum of isolation
""" Tests for the exposure computation """ from __future__ import division from nose.tools import * import itertools import marble as mb # # Synthetic data for tests # def segregated_city(): """ perfect segregation """ city = {"A":{1:7, 2:0, 3:0}, "B":{1:0, 2:0, 3:14}, "C":{1:0, 2:42,...
Write tests for the exposure
Write tests for the exposure
Python
bsd-3-clause
walkerke/marble,scities/marble
python
## Code Before: """ Tests for the exposure computation """ from nose.tools import * import marble as mb # Test maximum value of exposure # Test maximum value of isolation # Test minimum of exposure # Test minimum of isolation ## Instruction: Write tests for the exposure ## Code After: """ Tests for the exposure com...
45e23039a37429edcfdbd8c009de0db4bf918aa9
.travis.yml
.travis.yml
sudo: required services: - docker script: - docker-compose build - docker-compose up -d - sleep 25 - curl localhost:9000/all - curl localhost:9000/docs - curl localhost:9000/mensen - curl localhost:9000/menu/70ad738c960cc5e88e5e8d8ac1b5975e - curl localhost:9000/openmensa/canteen/70ad738c960cc5e88e5...
sudo: required services: - docker script: - docker-compose build - docker-compose up -d - sleep 25 - curl localhost:9000/all - curl localhost:9000/docs - curl -s http://localhost:9000/mensen | python -m json.tool >/dev/null - curl -s http://localhost:9000/menu/70ad738c960cc5e88e5e8d8ac1b5975e | python...
Add xml and json validation
Add xml and json validation
YAML
mit
chk1/mensaparser,chk1/mensaparser,chk1/mensaparser
yaml
## Code Before: sudo: required services: - docker script: - docker-compose build - docker-compose up -d - sleep 25 - curl localhost:9000/all - curl localhost:9000/docs - curl localhost:9000/mensen - curl localhost:9000/menu/70ad738c960cc5e88e5e8d8ac1b5975e - curl localhost:9000/openmensa/canteen/70a...
5a82d705a10b62d8effa8fa4f6cfc9e4d3ba3bf9
src/Tactician/CommandSerializer.php
src/Tactician/CommandSerializer.php
<?php namespace Burrow\Tactician; use League\Tactician\Plugins\NamedCommand\NamedCommand; interface CommandSerializer { /** * @param NamedCommand $command * @return string */ public function serialize(NamedCommand $command); /** * @param string $serializedObject * @return NamedC...
<?php namespace Burrow\Tactician; use League\Tactician\Plugins\NamedCommand\NamedCommand; interface CommandSerializer { /** * @param NamedCommand $command * @return string */ public function serialize(NamedCommand $command); }
Remove non required method in interface
Remove non required method in interface
PHP
mit
SelrahcD/burrow-tools
php
## Code Before: <?php namespace Burrow\Tactician; use League\Tactician\Plugins\NamedCommand\NamedCommand; interface CommandSerializer { /** * @param NamedCommand $command * @return string */ public function serialize(NamedCommand $command); /** * @param string $serializedObject ...
8963d5f14cf34b4771a5dbcdad7181680aef7881
example/src/screens/types/Drawer.js
example/src/screens/types/Drawer.js
import React from 'react'; import {StyleSheet, View, Text} from 'react-native'; class MyClass extends React.Component { render() { return ( <View style={styles.container}> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, width: 300, alignItems: 'center', ...
import React from 'react'; import {StyleSheet, View, Button} from 'react-native'; class MyClass extends React.Component { onShowModal = () => { this.props.navigator.toggleDrawer({ side: 'left' }); this.props.navigator.showModal({ screen: 'example.Types.Modal', title: `Modal` }); ...
Add show modal button to SideMenu
Add show modal button to SideMenu
JavaScript
mit
junedomingo/react-native-navigation,junedomingo/react-native-navigation,junedomingo/react-native-navigation,junedomingo/react-native-navigation
javascript
## Code Before: import React from 'react'; import {StyleSheet, View, Text} from 'react-native'; class MyClass extends React.Component { render() { return ( <View style={styles.container}> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, width: 300, alignI...
56bd762dd3ed5ced1914c6f36fd58dab589ccb31
src/applications/files/storage/PhabricatorFileTransactionComment.php
src/applications/files/storage/PhabricatorFileTransactionComment.php
<?php final class PhabricatorFileTransactionComment extends PhabricatorApplicationTransactionComment { public function getApplicationTransactionObject() { return new PhabricatorFileTransaction(); } public function shouldUseMarkupCache($field) { // Only cache submitted comments. return ($this->get...
<?php final class PhabricatorFileTransactionComment extends PhabricatorApplicationTransactionComment { public function getApplicationTransactionObject() { return new PhabricatorFileTransaction(); } }
Allow file comments to be edited
Allow file comments to be edited Summary: Fixes T10750. Files have some outdated cache/key code which prevents recording an edit history on file comments. Remove this ancient cruft. (Users must `bin/storage adjust` after upgrading to this patch to reap the benefits.) Test Plan: - Ran `bin/storage adjust`. - Edi...
PHP
apache-2.0
wikimedia/phabricator-phabricator,freebsd/phabricator,benchling/phabricator,folsom-labs/phabricator,vinzent/phabricator,gsinkovskiy/phabricator,Khan/phabricator,vinzent/phabricator,Khan/phabricator,uhd-urz/phabricator,hach-que/phabricator,hach-que/phabricator,dannysu/phabricator,hach-que/phabricator,benchling/phabricat...
php
## Code Before: <?php final class PhabricatorFileTransactionComment extends PhabricatorApplicationTransactionComment { public function getApplicationTransactionObject() { return new PhabricatorFileTransaction(); } public function shouldUseMarkupCache($field) { // Only cache submitted comments. re...
345ea613bb0e9a8447cb9ab7ebe12d8beca00515
provision-shell/tutorials/100/048/begin.sh
provision-shell/tutorials/100/048/begin.sh
cp "$LIV_DIR_SCRIPT_CUR/resources/http.liviubalan.com/php/apc_add.php" /var/www/http.liviubalan.com/
cp -r "$LIV_DIR_SCRIPT_CUR/resources/http.liviubalan.com/php/." /var/www/http.liviubalan.com/
Copy files from one directory into another
Copy files from one directory into another
Shell
mit
liviubalan/liviubalan.com-vagrant-ubuntu,liviubalan/liviubalan.com-vagrant-ubuntu,liviubalan/liviubalan.com-vagrant-ubuntu
shell
## Code Before: cp "$LIV_DIR_SCRIPT_CUR/resources/http.liviubalan.com/php/apc_add.php" /var/www/http.liviubalan.com/ ## Instruction: Copy files from one directory into another ## Code After: cp -r "$LIV_DIR_SCRIPT_CUR/resources/http.liviubalan.com/php/." /var/www/http.liviubalan.com/
c1464c4787ee7dcb3fc4c0fc0622cb7f336a4fe6
config.h
config.h
/* Uncomment to compile with tcpd/libwrap support. */ //#define WITH_WRAP /* Compile with database upgrading support? If disabled, mosquitto won't * automatically upgrade old database versions. */ //#define WITH_DB_UPGRADE /* Compile with memory tracking support? If disabled, mosquitto won't track * heap memory usa...
/* Uncomment to compile with tcpd/libwrap support. */ //#define WITH_WRAP /* Compile with database upgrading support? If disabled, mosquitto won't * automatically upgrade old database versions. */ //#define WITH_DB_UPGRADE /* Compile with memory tracking support? If disabled, mosquitto won't track * heap memory usa...
Add compile option for sqlite db upgrades.
Add compile option for sqlite db upgrades.
C
bsd-3-clause
tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto
c
## Code Before: /* Uncomment to compile with tcpd/libwrap support. */ //#define WITH_WRAP /* Compile with database upgrading support? If disabled, mosquitto won't * automatically upgrade old database versions. */ //#define WITH_DB_UPGRADE /* Compile with memory tracking support? If disabled, mosquitto won't track *...
e9e1fa86b4ce9b26fd11b1b4cd37db6faa5daceb
src/main/webapp/WEB-INF/web-laptop.xml
src/main/webapp/WEB-INF/web-laptop.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> <session-config> <session-timeout>3...
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> <session-config> <session-timeout>3...
Add cfg-admin to auth constraint roles
Add cfg-admin to auth constraint roles
XML
mit
hres/cfg-task-service,hres/cfg-task-service,hres/cfg-task-service
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> <session-config> <s...
13d6f51d99675d5c31d4fb6c6fc18dcb1acb9ba0
spellutil.h
spellutil.h
typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_free(spell_list_node **, void (*) (void *)); #endif
typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; typedef struct spell_hashtable { char *key; spell_list_node *val; } spell_hashtable; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_remove(spell_lis...
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
C
bsd-2-clause
abhinav-upadhyay/spell,abhinav-upadhyay/spell
c
## Code Before: typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_free(spell_list_node **, void (*) (void *)); #endif ## Instruction: Add interface for a hash...
18bd0bcc0d892aef4ea9babfc6ec2af6e40cea62
manager/urls.py
manager/urls.py
from django.conf.urls import url from manager import views urlpatterns = [ url(r'^$', views.package_list, name='package_list'), url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/$', views.package_detail, name='package_detail'), url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/build/$', views.package_build...
from django.conf.urls import url from manager import views urlpatterns = [ url(r'^$', views.package_list, name='package_list'), url(r'^packages/$', views.package_list, name='package_list'), url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/$', views.package_detail, name='package_detail'), url(r'^packag...
Add alternative package list url
Add alternative package list url
Python
mit
colajam93/aurpackager,colajam93/aurpackager,colajam93/aurpackager,colajam93/aurpackager
python
## Code Before: from django.conf.urls import url from manager import views urlpatterns = [ url(r'^$', views.package_list, name='package_list'), url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/$', views.package_detail, name='package_detail'), url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/build/$', vie...
9bd84f4f346650fb051100b9bbce2a819700289c
src/Http/Controllers/Nova/RoleController.php
src/Http/Controllers/Nova/RoleController.php
<?php namespace GeneaLabs\LaravelGovernor\Http\Controllers\Nova; use GeneaLabs\LaravelGovernor\Http\Controllers\Controller; use GeneaLabs\LaravelGovernor\Http\Requests\StoreRoleRequest; use GeneaLabs\LaravelGovernor\Http\Requests\UpdateRoleRequest; use GeneaLabs\LaravelGovernor\Role; use Illuminate\Http\Response; use ...
<?php namespace GeneaLabs\LaravelGovernor\Http\Controllers\Nova; use GeneaLabs\LaravelGovernor\Http\Controllers\Controller; use GeneaLabs\LaravelGovernor\Http\Requests\StoreRoleRequest; use GeneaLabs\LaravelGovernor\Http\Requests\UpdateRoleRequest; use GeneaLabs\LaravelGovernor\Role; use Illuminate\Http\Response; use ...
Fix loading of role to use config class
Fix loading of role to use config class
PHP
mit
GeneaLabs/laravel-governor,GeneaLabs/laravel-governor
php
## Code Before: <?php namespace GeneaLabs\LaravelGovernor\Http\Controllers\Nova; use GeneaLabs\LaravelGovernor\Http\Controllers\Controller; use GeneaLabs\LaravelGovernor\Http\Requests\StoreRoleRequest; use GeneaLabs\LaravelGovernor\Http\Requests\UpdateRoleRequest; use GeneaLabs\LaravelGovernor\Role; use Illuminate\Htt...
84bf84a8e809204a2f20f390bcd2d2450abcc658
library/template/src/index.html.js
library/template/src/index.html.js
import stylesheet from '@kaliber/build/lib/stylesheet' import javascript from '@kaliber/build/lib/javascript' import styles from '/index.css' export default ( <html lang='nl'> <head> <meta charSet='utf-8' /> <title>@kaliber/build</title> <meta name='description' content='' /> <meta name='...
import stylesheet from '@kaliber/build/lib/stylesheet' import javascript from '@kaliber/build/lib/javascript' import styles from '/index.css' export default ( <html lang='nl'> <head> <meta charSet='utf-8' /> <title>@kaliber/build</title> <meta name='description' content='' /> <meta name='...
Add polyfill.io service to template
Add polyfill.io service to template
JavaScript
mit
kaliberjs/build,kaliberjs/build
javascript
## Code Before: import stylesheet from '@kaliber/build/lib/stylesheet' import javascript from '@kaliber/build/lib/javascript' import styles from '/index.css' export default ( <html lang='nl'> <head> <meta charSet='utf-8' /> <title>@kaliber/build</title> <meta name='description' content='' /> ...
1ad4a6fb47fcb924cc3c4fa1dd6cb21ed8a810de
tests/CompanyEditFormTest.php
tests/CompanyEditFormTest.php
<?php namespace Tests; use App\User; use App\Company; use TestCase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; class CompanyEditFormTest extends TestCase { use DatabaseTransactions; /...
<?php namespace Tests; use App\User; use App\Company; use TestCase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; class CompanyEditFormTest extends TestCase { use DatabaseTransactions; ...
Remove passing test that brokes on Jenkins build
Remove passing test that brokes on Jenkins build
PHP
mit
vukanac/l5-admin-panel,vukanac/l5-admin-panel,vukanac/l5-admin-panel
php
## Code Before: <?php namespace Tests; use App\User; use App\Company; use TestCase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; class CompanyEditFormTest extends TestCase { use DatabaseTransact...
02a19361fb2e853ffa4c59abfb54ff159011dd3b
spec/system/support/cuprite_setup.rb
spec/system/support/cuprite_setup.rb
require "capybara/cuprite" Capybara.register_driver(:cuprite) do |app| Capybara::Cuprite::Driver.new( app, **{ window_size: [1200, 800], browser_options: {}, process_timeout: 20, timeout: 20, # Don't load scripts from external sources, like google maps or stripe url_white...
require "capybara/cuprite" Capybara.register_driver(:cuprite) do |app| Capybara::Cuprite::Driver.new( app, **{ window_size: [1200, 800], browser_options: {}, process_timeout: 20, timeout: 20, # Don't load scripts from external sources, like google maps or stripe url_white...
Raise JavaScript errors within system specs
Raise JavaScript errors within system specs Re-raising console errors helps us to find subtle bugs.
Ruby
agpl-3.0
mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/ope...
ruby
## Code Before: require "capybara/cuprite" Capybara.register_driver(:cuprite) do |app| Capybara::Cuprite::Driver.new( app, **{ window_size: [1200, 800], browser_options: {}, process_timeout: 20, timeout: 20, # Don't load scripts from external sources, like google maps or stripe...
ae08b2ccbfb023bd208a2d938151fdcfe0c8e333
app/workers/publisher_poll.rb
app/workers/publisher_poll.rb
require 'app/services/connection_builder' require 'app/services/publisher_update' module Citygram::Workers class PublisherPoll include Sidekiq::Worker sidekiq_options retry: 5 MAX_PAGE_NUMBER = 10 NEXT_PAGE_HEADER = 'Next-Page'.freeze def perform(publisher_id, endpoint, page_number = 1) #...
require 'app/services/connection_builder' require 'app/services/publisher_update' module Citygram::Workers class PublisherPoll include Sidekiq::Worker sidekiq_options retry: 5 MAX_PAGE_NUMBER = 10 NEXT_PAGE_HEADER = 'Next-Page'.freeze def perform(publisher_id, url, page_number = 1) # fetc...
Rename variable and update comments
Rename variable and update comments
Ruby
mit
BetaNYC/citygram-nyc,codefortulsa/citygram,elberdev/citygram-nyc,chriswhong/citygram,BetaNYC/citygram-nyc,beetz12/citygram,shravan20084312/citygram,BetaNYC/citygram-nyc,elberdev/citygram-nyc,shravan20084312/citygram,beetz12/citygram,chriswhong/citygram,BetaNYC/citygram-nyc,openchattanooga/citygram,codeforamerica/citygr...
ruby
## Code Before: require 'app/services/connection_builder' require 'app/services/publisher_update' module Citygram::Workers class PublisherPoll include Sidekiq::Worker sidekiq_options retry: 5 MAX_PAGE_NUMBER = 10 NEXT_PAGE_HEADER = 'Next-Page'.freeze def perform(publisher_id, endpoint, page_num...
b1fc40ccae80eb3d4ddf17ab4d6eca0e4c40dba3
roles/docker-engine/tasks/lvm-dm.yml
roles/docker-engine/tasks/lvm-dm.yml
--- - name: "Install LVM2" become: yes yum: name: lvm2 state: present - name: "Test if physical volume is present" become: yes shell: "pvdisplay {{ dm_device }}" ignore_errors: true register: pv_exist
--- - name: "devicemapper: Install LVM2" become: yes yum: name: lvm2 state: present - name: "devicemapper: Create volume group" become: yes lvg: vg: docker pvs: "{{ dm_device }}" state: present
Use lvg module, no need to create physical volume
Use lvg module, no need to create physical volume
YAML
apache-2.0
adrahon/ansible-docker-ucp
yaml
## Code Before: --- - name: "Install LVM2" become: yes yum: name: lvm2 state: present - name: "Test if physical volume is present" become: yes shell: "pvdisplay {{ dm_device }}" ignore_errors: true register: pv_exist ## Instruction: Use lvg module, no need to create physical volume ## Code Afte...
d3453c2ffd749519ba893e7e35a4c1138d3b4caf
meta-xilinx-bsp/recipes-devtools/qemu/files/0001-Add-enable-disable-udev.patch
meta-xilinx-bsp/recipes-devtools/qemu/files/0001-Add-enable-disable-udev.patch
From a471cf4e4c73350e090eb2cd87ec959d138012e5 Mon Sep 17 00:00:00 2001 From: Jeremy Puhlman <jpuhlman@mvista.com> Date: Thu, 19 Mar 2020 11:54:26 -0700 Subject: [PATCH] Add enable/disable libudev Upstream-Status: Pending Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> --- configure | 4 ++++ 1 file changed, 4 ins...
From 96f204df74f7dde5f4c9ad6e6eefc2d46219ccd9 Mon Sep 17 00:00:00 2001 From: Jeremy Puhlman <jpuhlman@mvista.com> Date: Thu, 19 Mar 2020 11:54:26 -0700 Subject: [PATCH] Add enable/disable libudev Upstream-Status: Pending Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> %% original patch: 0001-Add-enable-disable-ud...
Fix patch puzz warning during do_patch
qemu-xilinx: Fix patch puzz warning during do_patch Rework 0001-Add-enable-disable-udev.patch to fix patch fuzz warnings Signed-off-by: Sai Hari Chandana Kalluri <dcd6f85a7bffd89d026445db0f5113d6d436d06a@xilinx.com>
Diff
mit
Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx
diff
## Code Before: From a471cf4e4c73350e090eb2cd87ec959d138012e5 Mon Sep 17 00:00:00 2001 From: Jeremy Puhlman <jpuhlman@mvista.com> Date: Thu, 19 Mar 2020 11:54:26 -0700 Subject: [PATCH] Add enable/disable libudev Upstream-Status: Pending Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> --- configure | 4 ++++ 1 fil...
0ca502644e66c40089382d13a780a6edc78ddafc
lib/py/src/metrics.py
lib/py/src/metrics.py
import os import datetime import tornado.gen import statsd if os.environ.get("STATSD_URL", None): ip, port = os.environ.get("STATSD_URL").split(':') statsd_client = statsd.StatsClient(host=ip, port=int(port), prefix=os.environ.get('STATSD_PREFIX', ...
import os import datetime import tornado.gen import statsd if os.environ.get("STATSD_URL", None): ip, port = os.environ.get("STATSD_URL").split(':') statsd_client = statsd.StatsClient(host=ip, port=int(port), prefix=os.environ.get('STATSD_PREFIX', ...
Create a statsd_client anyway, even if there is no STATSD_URL env variable set
Create a statsd_client anyway, even if there is no STATSD_URL env variable set
Python
apache-2.0
upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift
python
## Code Before: import os import datetime import tornado.gen import statsd if os.environ.get("STATSD_URL", None): ip, port = os.environ.get("STATSD_URL").split(':') statsd_client = statsd.StatsClient(host=ip, port=int(port), prefix=os.environ.get('STATSD_PREFIX', ...
915a1b95bae92387b6d7cd29e76b720e275fad96
requirements-dev.txt
requirements-dev.txt
codecov == 2.0.9 mock == 2.0.0 pytest == 3.3.0 pytest-asyncio == 0.8.0 pytest-cov == 2.5.1 pytest-mock == 1.6.3 pytest-timeout == 1.2.1 asynctest == 0.11.1 Sphinx == 1.6.2
attrs == 19.1.0 codecov == 2.0.9 mock == 2.0.0 pytest == 3.3.0 pytest-asyncio == 0.8.0 pytest-cov == 2.5.1 pytest-mock == 1.6.3 pytest-timeout == 1.2.1 asynctest == 0.11.1 Sphinx == 1.6.2
Fix pytest dependency problem with newer versions of attrs
Fix pytest dependency problem with newer versions of attrs
Text
agpl-3.0
makerdao/keeper,makerdao/keeper,makerdao/keeper
text
## Code Before: codecov == 2.0.9 mock == 2.0.0 pytest == 3.3.0 pytest-asyncio == 0.8.0 pytest-cov == 2.5.1 pytest-mock == 1.6.3 pytest-timeout == 1.2.1 asynctest == 0.11.1 Sphinx == 1.6.2 ## Instruction: Fix pytest dependency problem with newer versions of attrs ## Code After: attrs == 19.1.0 codecov == 2.0.9 mock == ...
5e4668db4889029b35d5fc533b465196a843c083
src/Server/RequestHandler.php
src/Server/RequestHandler.php
<?php namespace Icicle\Http\Server; use Icicle\Http\Message\Request; use Icicle\Socket\Socket; interface RequestHandler { /** * @coroutine * * @param \Icicle\Http\Message\Request $request * @param \Icicle\Socket\Socket $socket * * @return \Generator * * @resolve \Icicle\Htt...
<?php namespace Icicle\Http\Server; use Icicle\Http\Message\Request; use Icicle\Socket\Socket; interface RequestHandler { /** * @param \Icicle\Http\Message\Request $request * @param \Icicle\Socket\Socket $socket * * @return \Generator|\Icicle\Awaitable\Awaitable|\Icicle\Http\Message\Response ...
Allow returning awaitable or response object directly
Allow returning awaitable or response object directly
PHP
mit
icicleio/http
php
## Code Before: <?php namespace Icicle\Http\Server; use Icicle\Http\Message\Request; use Icicle\Socket\Socket; interface RequestHandler { /** * @coroutine * * @param \Icicle\Http\Message\Request $request * @param \Icicle\Socket\Socket $socket * * @return \Generator * * @res...
77e5a591faa3ba6caab52335a25432b435490a46
fmix.js
fmix.js
function compose() { fs = arguments; return function(x) { for(var i in fs) { var f = fs[fs.length - i - 1]; x = f.apply(null, [x]); } return x; } } function squish(x1, x2) { for (var key in x2) { x1[key] = x2[key]; } return x1; } function...
function compose() { fs = arguments; return function(x) { for(var i in fs) { var f = fs[fs.length - i - 1]; x = f.apply(null, [x]); } return x; } } function merge(x1, x2) { function squish(under, over) { for (var key in over) { under[k...
Make squish private as it's dangerous.
Make squish private as it's dangerous.
JavaScript
mit
ctford/fmix
javascript
## Code Before: function compose() { fs = arguments; return function(x) { for(var i in fs) { var f = fs[fs.length - i - 1]; x = f.apply(null, [x]); } return x; } } function squish(x1, x2) { for (var key in x2) { x1[key] = x2[key]; } return...