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
27f44c4e0f9a51412738fdae3f5f1fc4eb91607f
app/models/resource.rb
app/models/resource.rb
class Resource < ApplicationRecord belongs_to :user, foreign_key: "creator_id" has_many :favorites has_many :favoriters, through: :favorites, class_name: "User" has_many :resource_tags has_many :tags, through: :resource_tags end
class Resource < ApplicationRecord belongs_to :user, foreign_key: "creator_id" has_many :favorites has_many :favoriters, through: :favorites, source: :user has_many :resource_tags has_many :tags, through: :resource_tags end
Update Resource association for favoriters
Update Resource association for favoriters
Ruby
mit
derekmpham/resource-repository-app,derekmpham/resource-repository-app,derekmpham/resource-repository-app
ruby
## Code Before: class Resource < ApplicationRecord belongs_to :user, foreign_key: "creator_id" has_many :favorites has_many :favoriters, through: :favorites, class_name: "User" has_many :resource_tags has_many :tags, through: :resource_tags end ## Instruction: Update Resource association for favoriters ## C...
b3cead5d4df00d6ad717f38512656f08050f448a
README.md
README.md
This is a Heroku application that builds Groonga package for Heroku and builds libraries to make it easy to use Groonga. ## How to use? 1. Sign up Heroku [Heroku sign up page](https://www.heroku.com) 2. Get GitHub access token [your configuration page](https://github.com/settings/applications) 3. Install [Heroku too...
This is a Heroku application that builds Groonga package for Heroku and builds libraries to make it easy to use Groonga. ## How to use? 1. Sign up Heroku [Heroku sign up page](https://www.heroku.com) 2. Get GitHub access token [your configuration page](https://github.com/settings/applications) 3. Install [Heroku too...
Use Libraries instead of Can use libraries
Use Libraries instead of Can use libraries
Markdown
mit
groonga/heroku-groonga-builder
markdown
## Code Before: This is a Heroku application that builds Groonga package for Heroku and builds libraries to make it easy to use Groonga. ## How to use? 1. Sign up Heroku [Heroku sign up page](https://www.heroku.com) 2. Get GitHub access token [your configuration page](https://github.com/settings/applications) 3. Ins...
ce3cafc8b9bcf6ad7d19fa90aa461813ae9e9ddb
app/assets/stylesheets/responsive/_responsive_up_to_767.css.scss
app/assets/stylesheets/responsive/_responsive_up_to_767.css.scss
@media (max-width: 767px) { body { padding: 0 1em; } footer.footer { display: none; } // make it smaller than desktop #quotes .quote_body p, #quote { .quote_body p { font-size: 16px; line-height: 1.5em; } .meta_info { font-size: 1em; } } // make it smaller...
@media (max-width: 767px) { body { padding: 0 1em; } footer.footer { display: none; } // make it smaller than desktop #quotes .quote_body p, #quote { .quote_body p { font-size: 16px; line-height: 1.5em; } .meta_info { font-size: 1em; } } // make it smaller...
Change hero-unit h1 font size
Change hero-unit h1 font size
SCSS
mit
dddaisuke/quoty,kinopyo/quoty,dddaisuke/quoty,dddaisuke/quoty,kinopyo/quoty
scss
## Code Before: @media (max-width: 767px) { body { padding: 0 1em; } footer.footer { display: none; } // make it smaller than desktop #quotes .quote_body p, #quote { .quote_body p { font-size: 16px; line-height: 1.5em; } .meta_info { font-size: 1em; } } //...
2f5ba7be7188e8f379e85c6c616a2e88d5d26d7e
usr.sbin/pppctl/Makefile
usr.sbin/pppctl/Makefile
PROG= pppctl SRCS= pppctl.c CFLAGS+=-Wall -Wmissing-prototypes LDADD+= -ledit -ltermcap DPADD+= ${LIBEDIT} ${LIBTERMCAP} MAN8= pppctl.8 .include <bsd.prog.mk>
PROG= pppctl SRCS= pppctl.c CFLAGS+=-Wall LDADD+= -ledit -ltermcap DPADD+= ${LIBEDIT} ${LIBTERMCAP} OPSYS!= uname -s .if (${OPSYS} == "OpenBSD") MAN= pppctl.8 .else MAN8= pppctl.8 .endif .include <bsd.prog.mk>
Add OpenBSD build support Remove -Wmissing-prototypes
Add OpenBSD build support Remove -Wmissing-prototypes
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: PROG= pppctl SRCS= pppctl.c CFLAGS+=-Wall -Wmissing-prototypes LDADD+= -ledit -ltermcap DPADD+= ${LIBEDIT} ${LIBTERMCAP} MAN8= pppctl.8 .include <bsd.prog.mk> ## Instruction: Add OpenBSD build support Remove -Wmissing-prototypes ## Code After: PROG= pppctl SRCS= pppctl.c CFLAGS+=-Wall LDADD+= -ledi...
88fd73081a6cf08bd0e6392345127fd4ebdc8922
spec/spec_helper.rb
spec/spec_helper.rb
require 'simplecov' SimpleCov.start require 'erlectricity' require 'stringio' $stdout.sync = true RSpec.configure do |c| def run_erl(code) cmd = %Q{erl -noshell -eval "A = #{code.split.join(' ')}, io:put_chars(binary_to_list(A))." -s erlang halt} `#{cmd}` end def encode_packet(code) bin = run_erl(...
require 'simplecov' SimpleCov.start require 'erlectricity' require 'stringio' $stdout.sync = true RSpec.configure do |c| def run_erl(code) cmd = %Q{erl -noshell -eval "A = #{code.split.join(' ')}, io:put_chars(binary_to_list(A))." -s erlang halt} `#{cmd}` end def word_length (1.size * 8) - 2 end...
Remove dead test helper method.
Remove dead test helper method.
Ruby
mit
sdelano/erlectricity,sdelano/erlectricity
ruby
## Code Before: require 'simplecov' SimpleCov.start require 'erlectricity' require 'stringio' $stdout.sync = true RSpec.configure do |c| def run_erl(code) cmd = %Q{erl -noshell -eval "A = #{code.split.join(' ')}, io:put_chars(binary_to_list(A))." -s erlang halt} `#{cmd}` end def encode_packet(code) ...
e8d5732e94d14a3a72999bd270af1fd3f3a2e09f
fileutil_posix.py
fileutil_posix.py
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
Use XDG_CONFIG_HOME for configuration directory.
Use XDG_CONFIG_HOME for configuration directory.
Python
mit
shaurz/devo
python
## Code Before: import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open...
c3f561c317d429f8587d3c05dd5f4368a31adb5b
lib/plugins/tnms.rb
lib/plugins/tnms.rb
require 'nokogiri' require 'open-uri' module Cinch module Plugins class Tnms include Cinch::Plugin match /(tnms)$/ match /(tnms) (.+)/, method: :with_num match /(help tnms)$/, method: :help def execute(m) page = Nokogiri::HTML(open('http://www.tnms.tv/rating/default.asp'))...
require 'nokogiri' require 'open-uri' module Cinch module Plugins class Tnms include Cinch::Plugin match /(tnms)$/ match /(tnms) (.+)/, method: :with_num match /(help tnms)$/, method: :help def execute(m) with_num(m, '.', 'tnms', 1) end def with_num(m, prefix,...
Refactor and add rating to response
Refactor and add rating to response
Ruby
mit
dhanesana/yongBot
ruby
## Code Before: require 'nokogiri' require 'open-uri' module Cinch module Plugins class Tnms include Cinch::Plugin match /(tnms)$/ match /(tnms) (.+)/, method: :with_num match /(help tnms)$/, method: :help def execute(m) page = Nokogiri::HTML(open('http://www.tnms.tv/ratin...
2875cdcb58c52b51e6aeea2e0d585edcd2609a58
_data/navigation.yml
_data/navigation.yml
- title: JSONUtil url: /JSONUtil excerpt: JSON Generation Utility image:
- title: JSONUtil url: /JSONUtil excerpt: JSON Generation Utility image: - title: YouTube Fixer url: /YouTube.html excerpt: YouTube Editor Text Fixer image:
Add nav for YouTube Editor Fixer.
Add nav for YouTube Editor Fixer.
YAML
mit
billdavidson/billdavidson.github.io,billdavidson/billdavidson.github.io,billdavidson/billdavidson.github.io
yaml
## Code Before: - title: JSONUtil url: /JSONUtil excerpt: JSON Generation Utility image: ## Instruction: Add nav for YouTube Editor Fixer. ## Code After: - title: JSONUtil url: /JSONUtil excerpt: JSON Generation Utility image: - title: YouTube Fixer url: /YouTube.html excerpt: YouTube Editor Text Fi...
0b06231e66a63314ca068948d2380fc9586ec35e
HabitsTests/Source/HabitsTests.swift
HabitsTests/Source/HabitsTests.swift
// // HabitsTests.swift // HabitsTests // // Created by Julian Grosshauser on 26/09/15. // Copyright © 2015 Julian Grosshauser. All rights reserved. // import Quick import Nimble @testable import Habits class HabitsTests: XCTestCase { override func setUp() { super.setUp() } override func ...
// // HabitsTests.swift // HabitsTests // // Created by Julian Grosshauser on 26/09/15. // Copyright © 2015 Julian Grosshauser. All rights reserved. // import Quick import Nimble @testable import Habits class HabitsTests: XCTestCase {}
Remove `setUp()` and `tearDown()` methods
Remove `setUp()` and `tearDown()` methods
Swift
mit
juliangrosshauser/Habits
swift
## Code Before: // // HabitsTests.swift // HabitsTests // // Created by Julian Grosshauser on 26/09/15. // Copyright © 2015 Julian Grosshauser. All rights reserved. // import Quick import Nimble @testable import Habits class HabitsTests: XCTestCase { override func setUp() { super.setUp() } ...
8fee77abc536e62fc8a578bed664282418def090
Build/UpdateVsixVersion.ps1
Build/UpdateVsixVersion.ps1
$me = $MyInvocation.MyCommand.Definition; function Update-Version { param([string] $path) $xml = [xml](Get-Content $path) $versionAttr = $xml.DocumentElement['Metadata']['Identity'].Attributes['Version'] $oldVersion = $versionAttr.Value $parts = $oldVersion.Split('.'); $parts[3] = ([convert]::ToInt32($par...
param ( [string]$bump = "build" # or 'revision' or 'minor' or 'major' ) $me = $MyInvocation.MyCommand.Definition; function Update-Version { param([string] $path) $xml = [xml](Get-Content $path) $versionAttr = $xml.DocumentElement['Metadata']['Identity'].Attributes['Version'] $oldVersion = $versionAttr.V...
Support other version bump types
Support other version bump types
PowerShell
apache-2.0
kant2002/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,paulvanbrenk/nodejstools,paulvanbrenk/nodejstools,lukedgr/nodejstools,kant2002/nodejstools,paladique/nodejstools,Microsoft/nodejstools,Microsoft/nodejstools,lukedgr/nodejstools,kant2002/nodejstools,lukedgr/nodejstools,paladique/nodejstools,lukedgr/nodej...
powershell
## Code Before: $me = $MyInvocation.MyCommand.Definition; function Update-Version { param([string] $path) $xml = [xml](Get-Content $path) $versionAttr = $xml.DocumentElement['Metadata']['Identity'].Attributes['Version'] $oldVersion = $versionAttr.Value $parts = $oldVersion.Split('.'); $parts[3] = ([conver...
47236f33feba8b30f8625bf792493d3c3d31f669
terraform/prod-lon.vpc_peering.json
terraform/prod-lon.vpc_peering.json
[ { "peer_name": "dit-services_tap", "account_id": "588284153815", "vpc_id": "vpc-03378ac5a1be3218d", "subnet_cidr": "172.16.0.0/22" }, { "peer_name": "dit-services_datasci", "account_id": "604925858717", "vpc_id": "vpc-0338ce744086cd767", "sub...
[ { "peer_name": "dit-services_tap", "account_id": "588284153815", "vpc_id": "vpc-03378ac5a1be3218d", "subnet_cidr": "172.16.0.0/22" }, { "peer_name": "dit-services_datasci", "account_id": "604925858717", "vpc_id": "vpc-0338ce744086cd767", "sub...
Add VPC peering config for dit-staging_datasci-dev
Add VPC peering config for dit-staging_datasci-dev As discussed in Zendesk #3759028.
JSON
mit
alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf
json
## Code Before: [ { "peer_name": "dit-services_tap", "account_id": "588284153815", "vpc_id": "vpc-03378ac5a1be3218d", "subnet_cidr": "172.16.0.0/22" }, { "peer_name": "dit-services_datasci", "account_id": "604925858717", "vpc_id": "vpc-0338ce744086cd76...
a74977045402f7e904bedd2ef8d11331b6d50d18
.github/workflows/tests.yml
.github/workflows/tests.yml
name: tests on: [push, pull_request, workflow_dispatch] jobs: pod-lib-lint: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Update Bundler run: bundle update --bundler - name: Install Ruby gems with Bundler run: bundle install - name: Lint podspec using local so...
name: tests on: [push, pull_request, workflow_dispatch] jobs: pod-lib-lint: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Update Bundler run: bundle update --bundler - name: Install Ruby gems with Bundler run: bundle install - name: Lint podspec using local so...
Split xcodebuild test into two phases.
Split xcodebuild test into two phases.
YAML
apache-2.0
google/GoogleSignIn-iOS,google/GoogleSignIn-iOS
yaml
## Code Before: name: tests on: [push, pull_request, workflow_dispatch] jobs: pod-lib-lint: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - name: Update Bundler run: bundle update --bundler - name: Install Ruby gems with Bundler run: bundle install - name: Lint podspe...
2575c92d93141398e1a6cb1a59c5d7f2aa197387
README.md
README.md
The core plugin package from DSmall Solutions Ltd. Hosted as a NuGet package. [![Build Status](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core.svg?token=syrh3amDgq9dtpK7qH4B&branch=master)](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core)&nbsp;&nbsp;&nbsp;[![dsmallltd...
[![Build Status](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core.svg?token=syrh3amDgq9dtpK7qH4B&branch=master)](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core)&nbsp;&nbsp;&nbsp;[![dsmallltd MyGet Build Status](https://www.myget.org/BuildSource/Badge/dsmallltd?identifi...
Update Readme.md with details of What is the need and How its implemented.
Update Readme.md with details of What is the need and How its implemented.
Markdown
apache-2.0
SpringBoard365/Springboard365.Xrm.Plugins.Core,Davesmall28/DSmall.DynamicsCrm.Plugins.Core
markdown
## Code Before: The core plugin package from DSmall Solutions Ltd. Hosted as a NuGet package. [![Build Status](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core.svg?token=syrh3amDgq9dtpK7qH4B&branch=master)](https://magnum.travis-ci.com/Davesmall28/DSmall.DynamicsCrm.Plugins.Core)&nbsp;&nbsp;&n...
a852403e2b914f50096793f157744c43032408c2
lib/foodcritic/rules/fc025.rb
lib/foodcritic/rules/fc025.rb
rule "FC025", "Prefer chef_gem to compile-time gem install" do tags %w{correctness deprecated} recipe do |ast| gem_install = ast.xpath("//stmts_add/assign[method_add_block[command/ident/ @value='gem_package'][do_block/stmts_add/command[ident/@value='action'] [descendant::ident/@value='nothing']]]") ...
rule "FC025", "Prefer chef_gem to compile-time gem install" do tags %w{correctness deprecated} recipe do |ast| # when Ruby 2.4 support goes away this can be simplified to remove the # do_block/stmts_add/command case which is Ruby 2.4 gem_install = ast.xpath("//stmts_add/assign[method_add_block[command/i...
Fix FC025 for Ruby 2.5
Fix FC025 for Ruby 2.5 There's new elements and this is a VERY specific query which blows up with the extra elements. Hopefully this is the only one. Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
mit
Foodcritic/foodcritic,acrmp/foodcritic
ruby
## Code Before: rule "FC025", "Prefer chef_gem to compile-time gem install" do tags %w{correctness deprecated} recipe do |ast| gem_install = ast.xpath("//stmts_add/assign[method_add_block[command/ident/ @value='gem_package'][do_block/stmts_add/command[ident/@value='action'] [descendant::ident/@value...
b4eb5b82854570c737a84721a4ddb62be158feb5
OPD.sh
OPD.sh
source token FILE='SAVED_EVENTS' SAVED=$(cat $FILE) EVENTS=$(curl -s 'http://www.oneplayerdown.com/api/events' | jq '.[].id') for event in $EVENTS do if test "${SAVED#*$event}" = "$SAVED" then ENDPOINT="https://api.telegram.org/bot"$TOKEN"/sendMessage?chat_id=@oneplayerdown&text=Nuevo%20evento:%0Ahttp://ww...
source token FILE='SAVED_EVENTS' SAVED=$(cat $FILE) EVENTS=$(curl -s 'http://www.oneplayerdown.com/api/events' | jq '.[].id') for event in $EVENTS do if test "${SAVED#*$event}" = "$SAVED" then date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S" ENDPOINT="https://api.telegram.org/bot"$TOKEN"/sendMessage?chat_id=@one...
Add timestamp for logging purposes
Add timestamp for logging purposes
Shell
mit
marsavela/OPDNotifier
shell
## Code Before: source token FILE='SAVED_EVENTS' SAVED=$(cat $FILE) EVENTS=$(curl -s 'http://www.oneplayerdown.com/api/events' | jq '.[].id') for event in $EVENTS do if test "${SAVED#*$event}" = "$SAVED" then ENDPOINT="https://api.telegram.org/bot"$TOKEN"/sendMessage?chat_id=@oneplayerdown&text=Nuevo%20eve...
f2703d18fc758033e7df582772b3abb973497562
message/serializers.py
message/serializers.py
from rest_framework import serializers from message.models import Message class MessageSerializer(serializers.ModelSerializer): class Meta: model = Message class MapMessageSerializer(serializers.ModelSerializer): lat = serializers.Field(source='location.latitude') lon = serializers.Field(sourc...
from rest_framework import serializers from message.models import Message class MessageSerializer(serializers.ModelSerializer): class Meta: model = Message class MapMessageSerializer(serializers.ModelSerializer): lat = serializers.Field(source='location.latitude') lon = serializers.Field(sourc...
Add message type field for api serializer
Add message type field for api serializer
Python
mit
sarutobi/Rynda,sarutobi/flowofkindness,sarutobi/ritmserdtsa,sarutobi/Rynda,sarutobi/ritmserdtsa,sarutobi/Rynda,sarutobi/Rynda,sarutobi/flowofkindness,sarutobi/ritmserdtsa,sarutobi/flowofkindness,sarutobi/ritmserdtsa,sarutobi/flowofkindness
python
## Code Before: from rest_framework import serializers from message.models import Message class MessageSerializer(serializers.ModelSerializer): class Meta: model = Message class MapMessageSerializer(serializers.ModelSerializer): lat = serializers.Field(source='location.latitude') lon = seriali...
b24b6e5b07c6239a4f214e8918781321a89e47f5
example/src/main/sandbox/hono-service-device-registry-config.yml
example/src/main/sandbox/hono-service-device-registry-config.yml
hono: app: maxInstances: 1 healthCheckBindAddress: 0.0.0.0 healthCheckPort: 8088 auth: host: ${hono.auth.host} port: 5671 keyPath: /run/secrets/device-registry-key.pem certPath: /run/secrets/device-registry-cert.pem trustStorePath: /run/secrets/trusted-certs.pem name: 'Hono Devic...
hono: app: maxInstances: 1 healthCheckBindAddress: 0.0.0.0 healthCheckPort: 8088 auth: host: ${hono.auth.host} port: 5671 keyPath: /run/secrets/device-registry-key.pem certPath: /run/secrets/device-registry-cert.pem trustStorePath: /run/secrets/trusted-certs.pem name: 'Hono Devic...
Disable modification of credentials in sandbox configuration.
Disable modification of credentials in sandbox configuration. Signed-off-by: Kai Hudalla <6c3288b94355003a6c5f12ba233f9fc06ef02a62@bosch-si.com>
YAML
epl-1.0
dejanb/hono,dejanb/hono,dejanb/hono
yaml
## Code Before: hono: app: maxInstances: 1 healthCheckBindAddress: 0.0.0.0 healthCheckPort: 8088 auth: host: ${hono.auth.host} port: 5671 keyPath: /run/secrets/device-registry-key.pem certPath: /run/secrets/device-registry-cert.pem trustStorePath: /run/secrets/trusted-certs.pem n...
1b5cbdcb2a8dae058be9c8eed357426605fbcfe4
tutorial_sphinx/src/index.rst
tutorial_sphinx/src/index.rst
SymPy Tutorial for SciPy 2013 ============================= This is the tutorial that Aaron Meurer and Ondřej Čertík will be giving at SciPy 2013 for `SymPy <http://sympy.org>`_. This is just a stripped down version of our `docs <http://docs.sympy.org>`_, with the new tutorial that Aaron Meurer has written, adapted f...
SymPy Tutorial for SciPy 2013 ============================= This is the tutorial that Aaron Meurer and Ondřej Čertík will be giving at SciPy 2013 for `SymPy <http://sympy.org>`_. This is just a stripped down version of our `docs <http://docs.sympy.org>`_, with the new tutorial that Aaron Meurer has written, adapted f...
Use words for the links
Use words for the links
reStructuredText
bsd-3-clause
Sumith1896/scipy-2014-tutorial,leosartaj/scipy-2016-tutorial,certik/scipy-2013-tutorial,Shekharrajak/scipy-2014-tutorial,asmeurer/scipy-2014-tutorial,aktech/scipy-2016-tutorial
restructuredtext
## Code Before: SymPy Tutorial for SciPy 2013 ============================= This is the tutorial that Aaron Meurer and Ondřej Čertík will be giving at SciPy 2013 for `SymPy <http://sympy.org>`_. This is just a stripped down version of our `docs <http://docs.sympy.org>`_, with the new tutorial that Aaron Meurer has wr...
e4ea283bcbf2e3cc03cd21c93e36159d852293fa
lib/haml/template.rb
lib/haml/template.rb
require 'haml/engine' module Haml module Template extend self @options = {} attr_accessor :options end end # Decide how we want to load Haml into Rails. # Patching was necessary for versions <= 2.0.1, # but we can make it a normal handler for higher versions. if defined?(ActionView::TemplateHandler) ...
require 'haml/engine' module Haml # The class that keeps track of the global options for Haml within Rails. module Template extend self @options = {} # The options hash for Haml when used within Rails. # See [the Haml options documentation](../Haml.html#haml_options). # # @return [Hash<Sym...
Convert Haml::Template docs to YARD.
[Haml] Convert Haml::Template docs to YARD.
Ruby
mit
jaroot32/sass,purcell/haml,ridixcr/sass,danielfein/sass,ridixcr/sass,cmpereirasi/sass,PMArtz92/sass,macressler/haml,schneems/sass,nicklima/sass,xzyfer/sass,MetaAshley/sass,DanteKaris/sass,keithpitty/haml,MetaAshley/sass,antonifs/sass,JuanitoFatas/sass,srawlins/sass,nicklima/sass,askl56/sass,haml/haml,saper/sass,cmperei...
ruby
## Code Before: require 'haml/engine' module Haml module Template extend self @options = {} attr_accessor :options end end # Decide how we want to load Haml into Rails. # Patching was necessary for versions <= 2.0.1, # but we can make it a normal handler for higher versions. if defined?(ActionView::T...
761b71448251ddf09f8fee4631f262ee1a95d5a5
styles.css
styles.css
/* app css stylesheet */ .hoverwell:hover { background-color: #485563; cursor: pointer; } .container { padding-top: 10px; } .pointable { cursor: pointer; } button { color: #555; } .toast-success { background-color: #51a351; } .toast-error { background-color: #bd362f; } .toast-info { background-color...
/* app css stylesheet */ .hoverwell:hover { background-color: #485563; cursor: pointer; } .container { padding-top: 10px; } .pointable { cursor: pointer; } button { color: #555; } [hidden] { display: none !important; } .toast-success { background-color: #51a351; } .toast-error { background-color: #...
Add style to force [hidden] to work
Add style to force [hidden] to work
CSS
mit
valgreen01/ng2-fundamentals,valgreen01/ng2-fundamentals,valgreen01/ng2-fundamentals
css
## Code Before: /* app css stylesheet */ .hoverwell:hover { background-color: #485563; cursor: pointer; } .container { padding-top: 10px; } .pointable { cursor: pointer; } button { color: #555; } .toast-success { background-color: #51a351; } .toast-error { background-color: #bd362f; } .toast-info { ...
fa26ea972963ece159b723a36e8bf9c539ad405e
test/helpers/defaults.js
test/helpers/defaults.js
var isTestling = typeof __testlingConsole != 'undefined'; var remoteSignaller = '//switchboard.rtc.io'; // var remoteSignaller = 'http://localhost:3000'; module.exports = { signallingServer: isTestling ? location.origin : remoteSignaller };
var isTestling = typeof __testlingConsole != 'undefined'; var remoteSignaller = '//switchboard.rtc.io'; // var remoteSignaller = 'http://localhost:3000'; module.exports = { signallingServer: require('./signaling-server') // isTestling ? location.origin : remoteSignaller };
Connect to the testing signaling server
Connect to the testing signaling server
JavaScript
apache-2.0
rtc-io/rtc-quickconnect,rtc-io/rtc-quickconnect
javascript
## Code Before: var isTestling = typeof __testlingConsole != 'undefined'; var remoteSignaller = '//switchboard.rtc.io'; // var remoteSignaller = 'http://localhost:3000'; module.exports = { signallingServer: isTestling ? location.origin : remoteSignaller }; ## Instruction: Connect to the testing signaling server ##...
af6ac1c70f7c931a531156ad4d8657d7b6803e04
.fixtures.yml
.fixtures.yml
fixtures: forge_modules: concat: repo: 'puppetlabs/concat' ref: '1.0.2' repositories: stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git symlinks: ssh: "#{source_dir}"
fixtures: forge_modules: concat: repo: 'puppetlabs/concat' ref: '1.2.5' stdlib: repo: 'puppetlabs/stdlib' ref: '4.6.0' symlinks: ssh: "#{source_dir}"
Upgrade concat to latest version
Upgrade concat to latest version
YAML
mit
aptituz/puppet-openssh,aptituz/puppet-openssh
yaml
## Code Before: fixtures: forge_modules: concat: repo: 'puppetlabs/concat' ref: '1.0.2' repositories: stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git symlinks: ssh: "#{source_dir}" ## Instruction: Upgrade concat to latest version ## Code After: fixtures: forge_modules: c...
f19d9d7dea613c4e1442440079a7268c7904a23a
README.md
README.md
midonet-kubernetes ================== **This is still pre-alpha and aggressively under development. Please don't use this.** The MidoNet network plugin for Kubernetes integration. Prerequisites ------------- **`midonet-kubernetes` runs only on Ubuntu 14.04 LTS at this moment.** - OpenStack deployment at least the ...
midonet-kubernetes ================== **This is a Prototype for exploring integration points and it is not under development. Please don't use this.** The MidoNet network plugin for Kubernetes integration. Prerequisites ------------- **`midonet-kubernetes` runs only on Ubuntu 14.04 LTS at this moment.** - OpenStac...
Update on the abandoned prototype status
Update on the abandoned prototype status Signed-off-by: Antoni Segura Puimedon <532ff71c0f0c138e61afd0c77279be9f5bb6c4f0@midokura.com>
Markdown
apache-2.0
midonet/midonet-kubernetes-prototype,midonet/midonet-kubernetes-prototype
markdown
## Code Before: midonet-kubernetes ================== **This is still pre-alpha and aggressively under development. Please don't use this.** The MidoNet network plugin for Kubernetes integration. Prerequisites ------------- **`midonet-kubernetes` runs only on Ubuntu 14.04 LTS at this moment.** - OpenStack deployme...
f971182a35c3c867e70dc6700df00d2e7fd35337
app/views/results/_result_workflow.html.erb
app/views/results/_result_workflow.html.erb
<dl class="dl-horizontal"> <% if @result.result_flags.count == 0 %> <h5>No workflows specified.</h5> <% end %> <% @result.result_flags.each do |result_flag| %> <dt class="half"><%= result_flag.try(:flag).try(:name) %></dt> <dd> <a href="#" data-dropdown="drop<%= result_flag.id %>" cl...
<dl class="dl-horizontal"> <% if @result.result_flags.count == 0 %> <h5>No workflows specified.</h5> <% end %> <% @result.result_flags.each do |result_flag| %> <dt class="half"><%= result_flag.try(:flag).try(:name) %></dt> <dd> <a href="#" data-dropdown="drop<%= result_flag.id %>" cl...
Fix "undefined method 'each' for nil:NilClass" when result_flag is nil.
Fix "undefined method 'each' for nil:NilClass" when result_flag is nil.
HTML+ERB
apache-2.0
Netflix/Scumblr,fenicks/Scumblr,warrent888/Scumblr,warrent888/Scumblr,Netflix/Scumblr,warrent888/Scumblr,Netflix/Scumblr,fenicks/Scumblr,fenicks/Scumblr
html+erb
## Code Before: <dl class="dl-horizontal"> <% if @result.result_flags.count == 0 %> <h5>No workflows specified.</h5> <% end %> <% @result.result_flags.each do |result_flag| %> <dt class="half"><%= result_flag.try(:flag).try(:name) %></dt> <dd> <a href="#" data-dropdown="drop<%= resul...
027ab1250aee3dc4981d3b34ffa013565b135ab4
services/web/public/es/rich-text.js
services/web/public/es/rich-text.js
import CodeMirror, { Doc } from 'codemirror' export function init (rootEl) { return CodeMirror(rootEl) } export function openDoc (cm, content) { const newDoc = Doc(content) cm.swapDoc(newDoc) return newDoc }
import CodeMirror, { Doc } from 'codemirror' import LatexParser from './ide/editor/codemirror/parser' export function init (rootEl) { CodeMirror.defineMode('latex', () => new LatexParser()) CodeMirror.defineMIME('application/x-tex', 'latex') CodeMirror.defineMIME('application/x-latex', 'latex') return CodeMi...
Configure CM with latex parser
Configure CM with latex parser
JavaScript
agpl-3.0
sharelatex/sharelatex
javascript
## Code Before: import CodeMirror, { Doc } from 'codemirror' export function init (rootEl) { return CodeMirror(rootEl) } export function openDoc (cm, content) { const newDoc = Doc(content) cm.swapDoc(newDoc) return newDoc } ## Instruction: Configure CM with latex parser ## Code After: import CodeMirror, { D...
44afceb4f34204b233102a228b400d5bc9e6b259
roles/registrator/tasks/main.yml
roles/registrator/tasks/main.yml
--- # Install (docker-py) python package as is a docker module dependency. - pip: name: docker-py version: 1.1.0 environment: proxy_env tags: - registrator # tasks file for docker registrator - name: run registrator container docker: name: registrator image: "{{ registrator_image }}" sta...
--- # Install (docker-py) python package as is a docker module dependency. - pip: name: docker-py version: 1.1.0 environment: proxy_env tags: - registrator # tasks file for docker registrator - name: run registrator container docker: name: registrator image: "{{ registrator_image }}" sta...
Set -resync flag for registrator reregistering all services
Set -resync flag for registrator reregistering all services
YAML
mit
enxebre/Apollo,phungmanhcuong/Appolo,enxebre/Apollo,phungmanhcuong/Appolo,Capgemini/Apollo,Capgemini/Apollo,ravbaba/Apollo,atsaki/Apollo,atsaki/Apollo,ravbaba/Apollo,Capgemini/Apollo
yaml
## Code Before: --- # Install (docker-py) python package as is a docker module dependency. - pip: name: docker-py version: 1.1.0 environment: proxy_env tags: - registrator # tasks file for docker registrator - name: run registrator container docker: name: registrator image: "{{ registrator_i...
9dc4f369803c9a18c441558c390c0691547fa2f9
_assets/stylesheets/loading.css.sass
_assets/stylesheets/loading.css.sass
//= require normalize-css //= require material-design-preloader/md-preloader.min html, body height: 100% overflow: hidden .deck-container visibility: hidden #loading_screen-no-js font-size: 2rem #loading_screen, #loading_screen-no-js font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif...
//= require normalize-css //= require material-design-preloader/md-preloader.min @import settings @import "deck.js-material/stylesheets/variables" html, body height: 100% overflow: hidden +background-color .deck-container visibility: hidden #loading_screen-no-js font-size: 2rem #loading_screen, #loading_...
Set loader and background color when loading.
Set loader and background color when loading.
Sass
mit
razor-x/jekyll-and-deck.js,razor-x/jekyll-and-deck.js,razor-x/jekyll-and-deck.js
sass
## Code Before: //= require normalize-css //= require material-design-preloader/md-preloader.min html, body height: 100% overflow: hidden .deck-container visibility: hidden #loading_screen-no-js font-size: 2rem #loading_screen, #loading_screen-no-js font-family: "Helvetica Neue", "Helvetica", Helvetica, A...
c9ce2f4ab381685b29c11e20cf5e2f14b50c4508
.travis.yml
.travis.yml
--- branches: only: - master language: ruby bundler_args: --without development before_install: rm Gemfile.lock || true script: bundle exec rake test SPEC_OPTS='--format documentation' rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.0 env: matrix: - PUPPET_VERSION="~> 2.7.0" - PUPPET_VERSION="~> 3.1.0" -...
--- branches: only: - master language: ruby bundler_args: --without development before_install: rm Gemfile.lock || true script: bundle exec rake test SPEC_OPTS='--format documentation' rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.0 env: matrix: - PUPPET_VERSION="~> 3.4.0" - PUPPET_VERSION="~> 3.5.0" -...
Drop support of old Puppet versions
Drop support of old Puppet versions
YAML
apache-2.0
tohuwabohu/puppet-roundcube,tohuwabohu/puppet-roundcube
yaml
## Code Before: --- branches: only: - master language: ruby bundler_args: --without development before_install: rm Gemfile.lock || true script: bundle exec rake test SPEC_OPTS='--format documentation' rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.0 env: matrix: - PUPPET_VERSION="~> 2.7.0" - PUPPET_VERSION=...
c9b4be50b520161ceddf00ad926be232640c8297
minutes/README.md
minutes/README.md
A directory containing the minutes from previous hangouts. Future hangouts have an agenda at https://hackpad.com/conda-forge-meeting-notes-WZIa4PBQ6sz.
A directory containing the minutes from previous hangouts. Future hangouts have an agenda at ( https://conda-forge.hackpad.com/ ).
Update URL for Hackpads to point to the organization.
minutes: Update URL for Hackpads to point to the organization.
Markdown
bsd-3-clause
conda-forge/conda-forge.github.io,conda-forge/conda-forge.github.io,conda-forge/conda-forge.github.io,conda-forge/conda-forge.github.io
markdown
## Code Before: A directory containing the minutes from previous hangouts. Future hangouts have an agenda at https://hackpad.com/conda-forge-meeting-notes-WZIa4PBQ6sz. ## Instruction: minutes: Update URL for Hackpads to point to the organization. ## Code After: A directory containing the minutes from previous hango...
66e67e53360a9f49ae73c8c8f2de49991525363b
txircd/modules/cmode_t.py
txircd/modules/cmode_t.py
from twisted.words.protocols import irc from txircd.modbase import Mode class TopiclockMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "TOPIC": return data if "topic" not in data: return data targetChannel = data["targetchan"] if "t" in targetChannel.mode and not user.hasAccess(self.ir...
from twisted.words.protocols import irc from txircd.modbase import Mode class TopiclockMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "TOPIC": return data if "topic" not in data: return data targetChannel = data["targetchan"] if "t" in targetChannel.mode and not user.hasAccess(targetC...
Fix the order of parameters to hasAccess, which broke all topic changing when +t was set
Fix the order of parameters to hasAccess, which broke all topic changing when +t was set
Python
bsd-3-clause
Heufneutje/txircd,DesertBus/txircd,ElementalAlchemist/txircd
python
## Code Before: from twisted.words.protocols import irc from txircd.modbase import Mode class TopiclockMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "TOPIC": return data if "topic" not in data: return data targetChannel = data["targetchan"] if "t" in targetChannel.mode and not user.h...
0a9cd676f4e9192f8e63e1992de561deb302df5f
asdf.sh
asdf.sh
if [ "${BASH_SOURCE[0]}" != "" ]; then current_script_path="${BASH_SOURCE[0]}" else current_script_path="$0" fi export ASDF_DIR ASDF_DIR="$(dirname "$current_script_path")" # shellcheck disable=SC2016 [ -d "$ASDF_DIR" ] || echo '$ASDF_DIR is not a directory' # Add asdf to PATH # # if in $PATH, remove, regardless...
if [ "${BASH_SOURCE[0]}" != "" ]; then current_script_path="${BASH_SOURCE[0]}" else current_script_path="$0" fi export ASDF_DIR ASDF_DIR="$(dirname "$current_script_path")" # shellcheck disable=SC2016 [ -d "$ASDF_DIR" ] || echo '$ASDF_DIR is not a directory' # Add asdf to PATH # # if in $PATH, remove, regardless...
Fix user shims stored now in ASDF_DATA_DIR
Fix user shims stored now in ASDF_DATA_DIR
Shell
mit
Stratus3D/asdf,asdf-vm/asdf
shell
## Code Before: if [ "${BASH_SOURCE[0]}" != "" ]; then current_script_path="${BASH_SOURCE[0]}" else current_script_path="$0" fi export ASDF_DIR ASDF_DIR="$(dirname "$current_script_path")" # shellcheck disable=SC2016 [ -d "$ASDF_DIR" ] || echo '$ASDF_DIR is not a directory' # Add asdf to PATH # # if in $PATH, re...
ba848918fe4200458af4712ae2113fb5bfd1b3b6
.travis.yml
.travis.yml
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 matrix: include: - python: 3.7 dist: xenial sudo: true - python: 3.8 dist: xenial sudo: true - python: 3.9 dist: xenial sudo: true - python: 3.10 dist: focal s...
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - "3.5" - "3.6" matrix: include: - python: "3.7" dist: "xenial" sudo: true - python: "3.8" dist: "xenial" sudo: true - python: "3.9" dist: "xenial" sudo: true - python: "3.10" d...
Put 3.10 in Quotes for Travis
Put 3.10 in Quotes for Travis
YAML
bsd-3-clause
datafolklabs/cement,datafolklabs/cement,datafolklabs/cement
yaml
## Code Before: language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 matrix: include: - python: 3.7 dist: xenial sudo: true - python: 3.8 dist: xenial sudo: true - python: 3.9 dist: xenial sudo: true - python: 3.10 dis...
4117b38e01700f9321937420006957fc8c38c056
.travis.yml
.travis.yml
language: python python: - "2.5" - "2.6" - "2.7" env: - DJANGO_VERSION=1.1.4 - DJANGO_VERSION=1.2.7 - DJANGO_VERSION=1.3.1 - DJANGO_VERSION=1.4 - DJANGO_VERSION=1.5 # command to install requirements install: - pip install argparse - pip install -q Django==$DJANGO_VERSION --use-mirrors # command to run...
language: python python: - "2.5" - "2.6" - "2.7" env: - DJANGO_VERSION=1.1.4 - DJANGO_VERSION=1.2.7 - DJANGO_VERSION=1.3.1 - DJANGO_VERSION=1.4.6 - DJANGO_VERSION=1.5.2 matrix: exclude: - python: "2.5" env: "DJANGO_VERSION=1.5.2" # command to install requirements install: - pip install argparse ...
Exclude Python2.5 when testing Django 1.5, because it's no longer supported.
Exclude Python2.5 when testing Django 1.5, because it's no longer supported.
YAML
mit
datadesk/django-greeking
yaml
## Code Before: language: python python: - "2.5" - "2.6" - "2.7" env: - DJANGO_VERSION=1.1.4 - DJANGO_VERSION=1.2.7 - DJANGO_VERSION=1.3.1 - DJANGO_VERSION=1.4 - DJANGO_VERSION=1.5 # command to install requirements install: - pip install argparse - pip install -q Django==$DJANGO_VERSION --use-mirrors ...
12b7020c265e5c2adc6d431c516e43eff4cb8ee3
.travis.yml
.travis.yml
language: node_js node_js: node cache: directories: - node_modules
language: node_js node_js: "10.15.3" before_install: npm i -g npm@6.9.0 install: npm ci cache: directories: - node_modules
Set node to v10.15.3 and force npm to 6.9.0
Set node to v10.15.3 and force npm to 6.9.0
YAML
mit
aminmarashi/binary-bot,aminmarashi/binary-bot,binary-com/binary-bot,binary-com/binary-bot
yaml
## Code Before: language: node_js node_js: node cache: directories: - node_modules ## Instruction: Set node to v10.15.3 and force npm to 6.9.0 ## Code After: language: node_js node_js: "10.15.3" before_install: npm i -g npm@6.9.0 install: npm ci cache: directories: - node_modules
4ba954a3eb4d74a51c32d6db3b5c02453a842f30
tools/release/kokoro.bat
tools/release/kokoro.bat
@rem Copyright 2018 gRPC authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem http://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable ...
@rem Copyright 2018 gRPC authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem http://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable ...
Build failures on Windows should be noticed.
Build failures on Windows should be noticed.
Batchfile
apache-2.0
grpc/grpc-node,grpc/grpc-node,grpc/grpc-node,grpc/grpc-node
batchfile
## Code Before: @rem Copyright 2018 gRPC authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem http://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless require...
6cfc9de7fe8fd048a75845a69bdeefc7c742bae4
oneall/django_oneall/management/commands/emaillogin.py
oneall/django_oneall/management/commands/emaillogin.py
from django.core.management.base import BaseCommand from django.core.urlresolvers import reverse from ...auth import EmailTokenAuthBackend class Command(BaseCommand): help = "E-mail login without sending the actual e-mail." def add_arguments(self, parser): parser.add_argument('email', type=str) ...
from django.core.mail import EmailMessage from django.core.management.base import BaseCommand from django.core.urlresolvers import reverse from ...auth import EmailTokenAuthBackend class Command(BaseCommand): help = "Issues an e-mail login token." def add_arguments(self, parser): parser.add_argument...
Add the possibility of testing SMTP from the command-line.
Add the possibility of testing SMTP from the command-line.
Python
mit
leandigo/django-oneall,ckot/django-oneall,leandigo/django-oneall,ckot/django-oneall
python
## Code Before: from django.core.management.base import BaseCommand from django.core.urlresolvers import reverse from ...auth import EmailTokenAuthBackend class Command(BaseCommand): help = "E-mail login without sending the actual e-mail." def add_arguments(self, parser): parser.add_argument('email'...
17d66550e5b1a43d055e90ea4fecc8030329c459
build.yaml
build.yaml
artifacts: jms: org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 activemq_core: org.apache.activemq:activemq-core:jar:5.3.2 commons_logging: commons-logging:commons-logging:jar:1.1 j2ee_management: org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0 repositories: remote: - https:/...
artifacts: jms: org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 activemq_core: org.apache.activemq:activemq-core:jar:5.3.2 commons_logging: commons-logging:commons-logging:jar:1.1 j2ee_management: org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0 repositories: remote: - https:/...
Use the correct URL for central
Use the correct URL for central
YAML
apache-2.0
realityforge/jml,realityforge/jml
yaml
## Code Before: artifacts: jms: org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 activemq_core: org.apache.activemq:activemq-core:jar:5.3.2 commons_logging: commons-logging:commons-logging:jar:1.1 j2ee_management: org.apache.geronimo.specs:geronimo-j2ee-management_1.0_spec:jar:1.0 repositories: remo...
9f0c05eb9926dc5a9be6eb65bd71f7f1218e24e1
grano/logic/validation.py
grano/logic/validation.py
import re import colander from colander import Invalid from grano.logic.references import ProjectRef from grano.core import db from grano.model import Schema, Attribute FORBIDDEN = ['project', 'source', 'target', 'id', 'created_at', 'updated_at', 'author', 'author_id'] database_forbidden = colander.Function(lambda v...
import colander from colander import Invalid class All(object): """ Composite validator which succeeds if none of its subvalidators raises an :class:`colander.Invalid` exception""" def __init__(self, *validators): self.validators = validators def __call__(self, node, value): for valid...
Fix handling of All() exceptions.
Fix handling of All() exceptions.
Python
mit
4bic/grano,CodeForAfrica/grano,4bic-attic/grano,granoproject/grano
python
## Code Before: import re import colander from colander import Invalid from grano.logic.references import ProjectRef from grano.core import db from grano.model import Schema, Attribute FORBIDDEN = ['project', 'source', 'target', 'id', 'created_at', 'updated_at', 'author', 'author_id'] database_forbidden = colander.F...
2d890ba775b398fc1833021b490fceffa2d8dfa4
v3/copy-to-examples.js
v3/copy-to-examples.js
var fs = require('fs-extra'); var source = './dist/phaser.js'; var dest = '../../phaser3-examples/public/build/dev.js'; fs.copy(source, dest, function (err) { if (err) { return console.error(err); } console.log('Copied to ' + dest); });
var fs = require('fs-extra'); var source = './dist/phaser.js'; var dest = '../../phaser3-examples/public/build/dev.js'; if (fs.existsSync(dest)) { fs.copy(source, dest, function (err) { if (err) { return console.error(err); } console.log('Build copied to ' + dest); ...
Copy to examples now displays an error if it cannot find the examples repo locally.
Copy to examples now displays an error if it cannot find the examples repo locally.
JavaScript
mit
spayton/phaser,TukekeSoft/phaser,mahill/phaser,BeanSeed/phaser,englercj/phaser,mahill/phaser,spayton/phaser,photonstorm/phaser,TukekeSoft/phaser,pixelpicosean/phaser,photonstorm/phaser,TukekeSoft/phaser,rblopes/phaser,BeanSeed/phaser
javascript
## Code Before: var fs = require('fs-extra'); var source = './dist/phaser.js'; var dest = '../../phaser3-examples/public/build/dev.js'; fs.copy(source, dest, function (err) { if (err) { return console.error(err); } console.log('Copied to ' + dest); }); ## Instruction: Copy to examples now ...
6fec57fde4c67aeaf7622c6b1ee5d56fec2c5b57
image.py
image.py
"""Image.""" from PIL import Image import os class DatabaseImage(object): """Image from database.""" def __init__(self, path): """Construct DatabaseImage.""" self.path = path self.bmp = Image.open(path) filename = os.path.basename(path) self.id = int(filename.split(...
"""Image.""" from PIL import Image, ImageFilter import numpy as np import os class DatabaseImage(object): """Image from database.""" def __init__(self, path): """Construct DatabaseImage.""" self.path = path self.bmp = Image.open(path) filename = os.path.basename(path) ...
Add matrix and edge detection
Add matrix and edge detection
Python
mit
anassinator/codejam,anassinator/codejam-2014
python
## Code Before: """Image.""" from PIL import Image import os class DatabaseImage(object): """Image from database.""" def __init__(self, path): """Construct DatabaseImage.""" self.path = path self.bmp = Image.open(path) filename = os.path.basename(path) self.id = int...
ea0eef76190d82cd8ea4b2af7057e034aaff5132
docs/distort/index.rst
docs/distort/index.rst
Signal Distortion and Processing ================================ The :mod:`~pambox.distort` module groups together various distortions and types of processing that can be applied to signals. API --- .. automodule:: pambox.distort :members:
Signal Distortion and Processing ================================ The :mod:`~pambox.distort` module groups together various distortions and types of processing that can be applied to signals. * :func:`~pambox.distort.mix_noise` adds together two signals at a given SNR. * :func:`~pambox.distort.noise_from_signal` cre...
Add summary of function to distort doc
Add summary of function to distort doc
reStructuredText
bsd-3-clause
achabotl/pambox
restructuredtext
## Code Before: Signal Distortion and Processing ================================ The :mod:`~pambox.distort` module groups together various distortions and types of processing that can be applied to signals. API --- .. automodule:: pambox.distort :members: ## Instruction: Add summary of function to distort do...
cab81216e4f59b1180a751c48fe1d6e98072fa2f
post.sh
post.sh
pip install --upgrade pip setuptools pip3 install --upgrade pip setuptools wheel git lfs install npm install -g pure-prompt
pip install --upgrade pip setuptools pip3 install --upgrade pip setuptools wheel git lfs install npm install -g pure-prompt mkdir ~/Desktop/Screenshots defaults write com.apple.screencapture location ~/Desktop/Screenshots killall SystemUIServer
Add script to change screenshot location
Add script to change screenshot location
Shell
mit
lukyth/dotfiles
shell
## Code Before: pip install --upgrade pip setuptools pip3 install --upgrade pip setuptools wheel git lfs install npm install -g pure-prompt ## Instruction: Add script to change screenshot location ## Code After: pip install --upgrade pip setuptools pip3 install --upgrade pip setuptools wheel git lfs install npm i...
7f13505f0206b4cb79a204cd8a59e030dbd4b619
lib/mongo_mapper/plugins/inspect.rb
lib/mongo_mapper/plugins/inspect.rb
module MongoMapper module Plugins module Inspect extend ActiveSupport::Concern module InstanceMethods def inspect(include_super=false) key_array = include_super ? key_names : attributes.keys attributes_as_nice_string = key_array.sort.collect do |name| "#{name}:...
module MongoMapper module Plugins module Inspect extend ActiveSupport::Concern module InstanceMethods def inspect(include_nil = false) keys = include_nil ? key_names : attributes.keys attributes_as_nice_string = keys.sort.collect do |name| "#{name}: #{self[name...
Update variable name to reflect intention
Update variable name to reflect intention
Ruby
mit
kachick/mongomapper,dhemmat/mongomapper,Yesware/mongomapper,mongomapper/mongomapper
ruby
## Code Before: module MongoMapper module Plugins module Inspect extend ActiveSupport::Concern module InstanceMethods def inspect(include_super=false) key_array = include_super ? key_names : attributes.keys attributes_as_nice_string = key_array.sort.collect do |name| ...
428dd80dfb94c20ce6a69138f32c9727b4490a14
src/qt/modaloverlay.h
src/qt/modaloverlay.h
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_MODALOVERLAY_H #define BITCOIN_QT_MODALOVERLAY_H #include <QDateTime> #include <QWidget> //! The required del...
// Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_MODALOVERLAY_H #define BITCOIN_QT_MODALOVERLAY_H #include <QDateTime> #include <QWidget> #include <atomic> //...
Add a missing atomic include
Add a missing atomic include This prevent this error in Ubuntu xenial and trusty while compling bitcoin-qt: In file included from qt/modaloverlay.cpp:5:0: qt/modaloverlay.h:42:10: error: ‘atomic’ in namespace ‘std’ does not name a template type std::atomic<int> bestBlockHeight{0}; // best known height (based on ...
C
mit
BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited
c
## Code Before: // Copyright (c) 2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_MODALOVERLAY_H #define BITCOIN_QT_MODALOVERLAY_H #include <QDateTime> #include <QWidget> //! ...
868dbbfb6d1dcd4fa9e4a6fccdb72a9ed694a6de
lib/chroot/repository/client/config.rb
lib/chroot/repository/client/config.rb
require 'thor' require 'yaml' module Chroot module Repository module Client class Config < Thor desc "setup", "Setup initial configuration" def setup template = [ { 'interface' => 'eth0', 'chroot_dir' => '/var/...
require 'thor' require 'yaml' module Chroot module Repository module Client class Config < Thor desc "setup", "Setup initial configuration" def setup template = { 'interface' => 'eth0', 'chroot_dir' => '/var/lib/chroot', 'deb' => { ...
Remove needless nested bracket from template
Remove needless nested bracket from template
Ruby
mit
kenhys/chroot-repository-client
ruby
## Code Before: require 'thor' require 'yaml' module Chroot module Repository module Client class Config < Thor desc "setup", "Setup initial configuration" def setup template = [ { 'interface' => 'eth0', 'chroo...
2bc0d052f1e3a7ffb37002f3e947034ed7be0843
ckanext/ckanext-apicatalog/ckanext/apicatalog/fanstatic/javascript/collapsible.js
ckanext/ckanext-apicatalog/ckanext/apicatalog/fanstatic/javascript/collapsible.js
'use strict'; this.ckan.module('collapsible', function($) { return { initialize: function() { this.activateCollapsibles() }, activateCollapsibles: function() { var elements = $('.collapsible'); for (var i = 0; i < elements.length; i++) { elements[i].addEventListener('click', ...
this.ckan.module('collapsible', function($) { return { initialize: function() { this.activateCollapsibles() }, activateCollapsibles: function() { var elements = $('.collapsible'); for (var i = 0; i < elements.length; i++) { elements[i].addEventListener('click', function () { ...
Use strict was causing invalid javascript on bundling
Use strict was causing invalid javascript on bundling
JavaScript
mit
vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog
javascript
## Code Before: 'use strict'; this.ckan.module('collapsible', function($) { return { initialize: function() { this.activateCollapsibles() }, activateCollapsibles: function() { var elements = $('.collapsible'); for (var i = 0; i < elements.length; i++) { elements[i].addEventLi...
a422e60b1c89fa2985966f76e179ff1a63c80a52
app.js
app.js
// Root file loaded by RequireJS require.config({ paths: { 'jquery': 'lib/jquery', 'handlebars': 'lib/handlebars' }, }); require([ 'jQuery', 'map_controller' ], function($, MapController) { $(function() { $('.js-map').each(function(_index, canvas) { var controller = new M...
// Root file loaded by RequireJS require.config({ paths: { 'jquery': 'vendor/jquery', 'handlebars': 'vendor/handlebars' }, }); require([ 'jquery', 'map_controller' ], function($, MapController) { $(function() { $('.js-map').each(function(_index, canvas) { var controller =...
Fix bugs introduced by Code Climate changes
Fix bugs introduced by Code Climate changes
JavaScript
mit
isikyus/aeldardin-rooms,isikyus/aeldardin-rooms
javascript
## Code Before: // Root file loaded by RequireJS require.config({ paths: { 'jquery': 'lib/jquery', 'handlebars': 'lib/handlebars' }, }); require([ 'jQuery', 'map_controller' ], function($, MapController) { $(function() { $('.js-map').each(function(_index, canvas) { var co...
7b95f50b1980f4f1322b73a44965882bcb761e88
app/controllers/redirects_controller.rb
app/controllers/redirects_controller.rb
class RedirectsController < ActionController::Base def go redirect = ::Redirect.find_by(source_uri: source_uri) if redirect && redirect.enabled? redirect_to redirect.destination_uri, status: redirect.status_code else render text: 'No such redirect or disabled.' end end private def...
class RedirectsController < ActionController::Base def go redirect = ::Redirect.find_by(source_uri: source_uri) if redirect && redirect.enabled? redirect_to redirect.destination_uri, status: redirect.status_code else render text: 'No such redirect or disabled.', status: 404 end end p...
Use status 404 when the redirects controller can't find the redirect.
Use status 404 when the redirects controller can't find the redirect.
Ruby
mit
udongo/udongo,udongo/udongo,udongo/udongo
ruby
## Code Before: class RedirectsController < ActionController::Base def go redirect = ::Redirect.find_by(source_uri: source_uri) if redirect && redirect.enabled? redirect_to redirect.destination_uri, status: redirect.status_code else render text: 'No such redirect or disabled.' end end ...
06b1ff074aa4d5f97c9028fe56754469dcf6ee84
README.md
README.md
envconf ======= See [godoc](http://godoc.org/github.com/DanielBryan/envconf) for package documentation. `envconf` is a [Go](http://golang.org) package that makes it easy to build explicitly typed, structured configuration objects without complex parsing of config files or command-line flags. `envconf` is designed to...
envconf ======= See [godoc](http://godoc.org/github.com/ceralena/envconf) for package documentation. `envconf` is a [Go](http://golang.org) package that makes it easy to build explicitly typed, structured configuration objects without complex parsing of config files or command-line flags. `envconf` is designed to pu...
Update readme to reflect new github username
[DOC] Update readme to reflect new github username
Markdown
mit
ceralena/envconf
markdown
## Code Before: envconf ======= See [godoc](http://godoc.org/github.com/DanielBryan/envconf) for package documentation. `envconf` is a [Go](http://golang.org) package that makes it easy to build explicitly typed, structured configuration objects without complex parsing of config files or command-line flags. `envconf...
77e4de66f9dfeb49cf3b4d04ecc0ef42f0e72be1
lib/chefspec.rb
lib/chefspec.rb
require 'chef' require 'chefspec/chef_runner' require 'chefspec/version' require 'chef/formatters/chefspec' if defined?(RSpec) require 'chefspec/matchers/cron' require 'chefspec/matchers/execute' require 'chefspec/matchers/file' require 'chefspec/matchers/link' require 'chefspec/matchers/log' require 'che...
require 'chef' require 'chef/formatters/chefspec' require 'chefspec/chef_runner' require 'chefspec/version' if defined?(RSpec) require 'chefspec/matchers/cron' require 'chefspec/matchers/execute' require 'chefspec/matchers/file' require 'chefspec/matchers/link' require 'chefspec/matchers/log' require 'chef...
Load the formatter in order
Load the formatter in order
Ruby
mit
oldirty/chefspec,sethvargo/chefspec,shanethehat/chefspec,h4ck3rm1k3/chefspec,aspiers/chefspec,ranjib/chefspec,rsr5/chefspec,ranjib/chefspec,mcoolive/chefspec,rsr5/chefspec,375gnu/chefspec,jtimberman/chefspec,shanethehat/chefspec,zuazo-forks/chefspec,jkeiser/chefspec,sethvargo/chefspec,chefspec/chefspec,coderanger/chefs...
ruby
## Code Before: require 'chef' require 'chefspec/chef_runner' require 'chefspec/version' require 'chef/formatters/chefspec' if defined?(RSpec) require 'chefspec/matchers/cron' require 'chefspec/matchers/execute' require 'chefspec/matchers/file' require 'chefspec/matchers/link' require 'chefspec/matchers/log...
dfa752590c944fc07253c01c3d99b640a46dae1d
jinja2_time/jinja2_time.py
jinja2_time/jinja2_time.py
import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.extend( datetim...
import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.extend(datetime_format='%Y-...
Implement parser method for optional offset
Implement parser method for optional offset
Python
mit
hackebrot/jinja2-time
python
## Code Before: import arrow from jinja2 import nodes from jinja2.ext import Extension class TimeExtension(Extension): tags = set(['now']) def __init__(self, environment): super(TimeExtension, self).__init__(environment) # add the defaults to the environment environment.extend( ...
084a1d1d7139d96540648a9938749a9d36d2efa4
desktop/src/lib/database.js
desktop/src/lib/database.js
/* eslint-env browser */ const fs = window.require('fs'); const fetchInitialState = () => { const data = fs.readFileSync('.config/db', 'utf-8'); if (data) { return JSON.parse(data); } return {}; }; const update = (state) => { fs.writeFileSync('.config/db', JSON.stringify(state), 'utf-8'); }; export { ...
/* eslint-env browser */ const fs = window.require('fs'); const fetchInitialState = () => { let data = fs.readFileSync('.config/db', 'utf-8'); if (data) { data = JSON.parse(data); return { tasks: { past: [], present: data.tasks, future: [], history: [], }, ...
Fix minor issue about making redux-undo state permanent
Fix minor issue about making redux-undo state permanent
JavaScript
mit
mkermani144/wanna,mkermani144/wanna
javascript
## Code Before: /* eslint-env browser */ const fs = window.require('fs'); const fetchInitialState = () => { const data = fs.readFileSync('.config/db', 'utf-8'); if (data) { return JSON.parse(data); } return {}; }; const update = (state) => { fs.writeFileSync('.config/db', JSON.stringify(state), 'utf-8')...
83a5e1829a58a92fa6e37f93b51c7df046aea890
src/configuration.rs
src/configuration.rs
extern crate yaml_rust; use self::yaml_rust::{YamlLoader, Yaml}; pub fn from_yaml(yaml_file: String) -> Vec<String> { let docs = YamlLoader::load_from_str(&yaml_file).unwrap(); let doc = &docs[0]; let key = Yaml::from_str("default"); let default_command_list = doc.as_hash().unwrap().get(&key).unwrap()...
extern crate yaml_rust; use self::yaml_rust::{YamlLoader, Yaml}; pub fn from_yaml(yaml_file: String) -> Vec<String> { let docs = YamlLoader::load_from_str(&yaml_file).unwrap(); let doc = &docs[0]; let key = Yaml::from_str("default"); let default_command_list = doc.as_hash().unwrap().get(&key).unwrap()...
Use extend instead of custom interation
Use extend instead of custom interation
Rust
mit
schultyy/Sokan
rust
## Code Before: extern crate yaml_rust; use self::yaml_rust::{YamlLoader, Yaml}; pub fn from_yaml(yaml_file: String) -> Vec<String> { let docs = YamlLoader::load_from_str(&yaml_file).unwrap(); let doc = &docs[0]; let key = Yaml::from_str("default"); let default_command_list = doc.as_hash().unwrap().ge...
08fc4cdc64fb5bcd9c33b7241fc24dcfc68a719f
docs/README.md
docs/README.md
* [EisenScript](headline.md) * Reference * [translation](reference/translation.md) * [rotation](reference/rotation.md) * [scaling](reference/scaling.md) * [matrix](reference/matrix.md) * [color](reference/color.md) * [transparant](reference/transparant.md) * [primitives](reference/primitives.md) * [rul...
* [EisenScript](headline.md) * Reference * [translation](reference/translation.md) * [rotation](reference/rotation.md) * [scaling](reference/scaling.md) * [matrix](reference/matrix.md) * [color](reference/color.md) * [transparant](reference/transparant.md) * [primitives](reference/primitives.md) * [rul...
Add example links to docs
Add example links to docs
Markdown
mit
after12am/eisenscript
markdown
## Code Before: * [EisenScript](headline.md) * Reference * [translation](reference/translation.md) * [rotation](reference/rotation.md) * [scaling](reference/scaling.md) * [matrix](reference/matrix.md) * [color](reference/color.md) * [transparant](reference/transparant.md) * [primitives](reference/primiti...
217b18cbacb71e7e490b583061baac9288fa6991
lib/chromedriver/helper/google_code_parser.rb
lib/chromedriver/helper/google_code_parser.rb
require 'nokogiri' require 'open-uri' module Chromedriver class Helper class GoogleCodeParser BUCKET_URL = 'https://chromedriver.storage.googleapis.com' attr_reader :source, :platform def initialize(platform, open_uri_provider=OpenURI) @platform = platform @source = open_uri_p...
require 'nokogiri' require 'open-uri' require 'uri' module Chromedriver class Helper class GoogleCodeParser BUCKET_URL = 'https://chromedriver.storage.googleapis.com' attr_reader :source, :platform, :newest_download_version def initialize(platform, open_uri_provider=OpenURI) @platform...
Read latest version from LATEST_RELEASE file
Read latest version from LATEST_RELEASE file
Ruby
mit
flavorjones/chromedriver-helper,flavorjones/chromedriver-helper,flavorjones/chromedriver-helper
ruby
## Code Before: require 'nokogiri' require 'open-uri' module Chromedriver class Helper class GoogleCodeParser BUCKET_URL = 'https://chromedriver.storage.googleapis.com' attr_reader :source, :platform def initialize(platform, open_uri_provider=OpenURI) @platform = platform @sou...
24484575be378902c2c81395312e67e8f88fcc6e
rand_pcg/CHANGELOG.md
rand_pcg/CHANGELOG.md
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.1.1] - 2018-10-04 - make `bincode` an explicit dependency when using Serde ...
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.1.2] - unreleased - potential blocker: https://github.com/TyOverby/bincode/i...
Add changelog notes for rand_pcg version 0.1.2 release
Add changelog notes for rand_pcg version 0.1.2 release This should likely wait on bincode to automatically enable i128 support
Markdown
apache-2.0
rust-lang/rand
markdown
## Code Before: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.1.1] - 2018-10-04 - make `bincode` an explicit dependency wh...
4e874c8a3ec1d524e5ab0df04994fb25243e9c72
source/crate_demo/graphics_manager.h
source/crate_demo/graphics_manager.h
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef CRATE_DEMO_GRAPHICS_MANAGER_H #define CRATE_DEMO_GRAPHICS_MANAGER_H #include "common/graphics_manager_base.h" #include <d3d11.h> #include "DirectXMath...
/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef CRATE_DEMO_GRAPHICS_MANAGER_H #define CRATE_DEMO_GRAPHICS_MANAGER_H #include "common/graphics_manager_base.h" #include <d3d11.h> #include "DirectXMath...
Create MatrixBufferType struct to hold current world, view, and projection matricies
CRATE_DEMO: Create MatrixBufferType struct to hold current world, view, and projection matricies
C
apache-2.0
RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject
c
## Code Before: /* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #ifndef CRATE_DEMO_GRAPHICS_MANAGER_H #define CRATE_DEMO_GRAPHICS_MANAGER_H #include "common/graphics_manager_base.h" #include <d3d11.h> #incl...
c65554b19bea9f183d687dde5bdd84750c209dee
Entity/SettingsRepository.php
Entity/SettingsRepository.php
<?php namespace Lexxpavlov\SettingsBundle\Entity; use Doctrine\ORM\EntityRepository; class SettingsRepository extends EntityRepository { /** * @param string $name * @return Settings[] */ public function getGroup($name) { return $this->_em ->createQuery("SELECT s FROM Le...
<?php namespace Lexxpavlov\SettingsBundle\Entity; use Doctrine\ORM\EntityRepository; class SettingsRepository extends EntityRepository { /** * @param string $name * @return Settings[] */ public function getGroup($name) { return $this->createQueryBuilder('s') ...
Fix query of group for PostgreSQL
Fix query of group for PostgreSQL
PHP
mit
lexxpavlov/LexxpavlovSettingsBundle,lexxpavlov/LexxpavlovSettingsBundle
php
## Code Before: <?php namespace Lexxpavlov\SettingsBundle\Entity; use Doctrine\ORM\EntityRepository; class SettingsRepository extends EntityRepository { /** * @param string $name * @return Settings[] */ public function getGroup($name) { return $this->_em ->createQuery("...
190105a8f026d9bf19fa233fe9b6ba189394c8b8
README.md
README.md
expRESTive [![Build Status](https://travis-ci.org/alexdavid/exprestive.svg)](https://travis-ci.org/alexdavid/exprestive) [![Dependency Status](https://david-dm.org/alexdavid/exprestive.png)](https://david-dm.org/alexdavid/exprestive) ========== Expressive RESTful express router
expRESTive [![Build Status](https://travis-ci.org/alexdavid/exprestive.svg)](https://travis-ci.org/alexdavid/exprestive) [![Dependency Status](https://david-dm.org/alexdavid/exprestive.png)](https://david-dm.org/alexdavid/exprestive) ========== Expressive RESTful express router ## Basic usage * Create an express appl...
Add basic usage to readme
Add basic usage to readme
Markdown
mit
alexdavid/exprestive
markdown
## Code Before: expRESTive [![Build Status](https://travis-ci.org/alexdavid/exprestive.svg)](https://travis-ci.org/alexdavid/exprestive) [![Dependency Status](https://david-dm.org/alexdavid/exprestive.png)](https://david-dm.org/alexdavid/exprestive) ========== Expressive RESTful express router ## Instruction: Add bas...
438791bb9936c6c7b198f9e2b5f878e0cf36b171
sources/us/nc/guilford.json
sources/us/nc/guilford.json
{ "coverage": { "US Census": { "geoid": "37081", "name": "Guilford County", "state": "North Carolina" }, "country": "us", "state": "nc", "county": "Guilford" }, "data": "http://gis.co.guilford.nc.us/datadownload/DataDownload.aspx", ...
{ "coverage": { "US Census": { "geoid": "37081", "name": "Guilford County", "state": "North Carolina" }, "country": "us", "state": "nc", "county": "Guilford" }, "data": "http://gis.co.guilford.nc.us/arcgis/rest/services/Data_Downloa...
Add conform to Guilford County, NC
Add conform to Guilford County, NC
JSON
bsd-3-clause
davidchiles/openaddresses,slibby/openaddresses,tyrasd/openaddresses,orangejulius/openaddresses,sabas/openaddresses,sabas/openaddresses,tyrasd/openaddresses,mmdolbow/openaddresses,mmdolbow/openaddresses,binaek89/openaddresses,binaek89/openaddresses,davidchiles/openaddresses,sergiyprotsiv/openaddresses,mmdolbow/openaddre...
json
## Code Before: { "coverage": { "US Census": { "geoid": "37081", "name": "Guilford County", "state": "North Carolina" }, "country": "us", "state": "nc", "county": "Guilford" }, "data": "http://gis.co.guilford.nc.us/datadownload/Data...
13e2268061aa989ed841f7fdff145b8141b0611a
.travis.yml
.travis.yml
language: ruby sudo: false rvm: - 2.4.5 - 2.5.3 - ruby-head cache: bundler: true matrix: allow_failures: - rvm: ruby-head fast_finish: true script: - bundle exec rake
language: ruby sudo: false rvm: - 2.5.3 - ruby-head cache: bundler: true matrix: allow_failures: - rvm: ruby-head fast_finish: true script: - bundle exec rake
Remove Ruby 2.4 from the test matrix
Remove Ruby 2.4 from the test matrix Rails 6 will require Ruby 2.5 or newer. See rails/rails#34754.
YAML
mit
repinel/rails,tgxworld/rails,bogdanvlviv/rails,lcreid/rails,Vasfed/rails,rails/rails,jeremy/rails,Stellenticket/rails,betesh/rails,schuetzm/rails,MSP-Greg/rails,eileencodes/rails,rails/rails,joonyou/rails,shioyama/rails,starknx/rails,rafaelfranca/omg-rails,repinel/rails,yawboakye/rails,prathamesh-sonpatki/rails,yhirano...
yaml
## Code Before: language: ruby sudo: false rvm: - 2.4.5 - 2.5.3 - ruby-head cache: bundler: true matrix: allow_failures: - rvm: ruby-head fast_finish: true script: - bundle exec rake ## Instruction: Remove Ruby 2.4 from the test matrix Rails 6 will require Ruby 2.5 or newer. See rails/rails#3475...
2626e8393f2e12bd989f7ba9a577e561cbc2e03a
lib/fs/_descriptor-limiter.js
lib/fs/_descriptor-limiter.js
'use strict'; var toUint = require('es5-ext/lib/Number/to-uint') , count = 0, limit = Infinity, callbacks = []; exports.open = function () { ++count; }; exports.close = function () { if ((--count < limit) && callbacks.length) { do { callbacks.shift()(); } while ((count < limit) && callbacks.length); } };...
'use strict'; var toUint = require('es5-ext/lib/Number/to-uint') , count = 0, limit = Infinity, callbacks = []; exports.open = function () { ++count; }; exports.close = function () { if ((--count < limit) && callbacks.length) { do { callbacks.shift()(); } while ((count < limit) && callbacks.length); } };...
Allow at least 5 descriptors if detection goes wrong
Allow at least 5 descriptors if detection goes wrong
JavaScript
mit
medikoo/node-ext
javascript
## Code Before: 'use strict'; var toUint = require('es5-ext/lib/Number/to-uint') , count = 0, limit = Infinity, callbacks = []; exports.open = function () { ++count; }; exports.close = function () { if ((--count < limit) && callbacks.length) { do { callbacks.shift()(); } while ((count < limit) && callback...
e79811f34e3fd562e0eceba6a40dc8d4359bb795
app/views/customers/_navbar.html.haml
app/views/customers/_navbar.html.haml
- current_nav ||= nil %ul#customer-nav.nav.nav-tabs %li{:class => (current_nav == :overview ? 'active' : '')} = link_to 'Overview', customer %li{:class => (current_nav == :bookings ? 'active' : '')} = link_to 'Bookings', [customer, :bookings] %li{:class => (current_nav == :rentals ? 'active' : '')} ...
- current_nav ||= nil %ul#customer-nav.nav.nav-tabs %li{:class => (current_nav == :overview ? 'active' : '')} = link_to customer do = icon :eye, 'Details' %li{:class => (current_nav == :bookings ? 'active' : '')} = link_to [customer, :bookings] do = icon 'check-square-o', 'Bookings' %li{:cl...
Add icons to customer tabs
Add icons to customer tabs
Haml
mit
hwuethrich/scoobar,hwuethrich/scoobar
haml
## Code Before: - current_nav ||= nil %ul#customer-nav.nav.nav-tabs %li{:class => (current_nav == :overview ? 'active' : '')} = link_to 'Overview', customer %li{:class => (current_nav == :bookings ? 'active' : '')} = link_to 'Bookings', [customer, :bookings] %li{:class => (current_nav == :rentals ? 'ac...
38d7e525f4f9d7b62c04f8ccc5f5bf53fe80c3ae
README.md
README.md
<<<<<<< HEAD # Weather polling led So I wanted to build a small thing that tells me whether I should bring rain clothes or not. And of course learn some python and raspberry pi. The script is run as a cron job each 30 minutes. `*/30 * * * * python /home/pi/weather.py` The script then gets the weather info from SMHI'...
So I wanted to build a small thing that tells me whether I should bring rain clothes or not. And of course learn some python and raspberry pi. The script is run as a cron job each 30 minutes. `*/30 * * * * python /home/pi/weather.py` The script then gets the weather info from SMHI's [API](http://www.smhi.se/klimatda...
Fix merge lines in readme
Fix merge lines in readme
Markdown
mit
philiplarsson/weather-LED
markdown
## Code Before: <<<<<<< HEAD # Weather polling led So I wanted to build a small thing that tells me whether I should bring rain clothes or not. And of course learn some python and raspberry pi. The script is run as a cron job each 30 minutes. `*/30 * * * * python /home/pi/weather.py` The script then gets the weather...
ed0f157e956e6753c6522f3e9fb4730915fa6071
utils/metrics/metrics/src/main/java/com/ea/orbit/metrics/jvm/ThreadCPUUsageSet.java
utils/metrics/metrics/src/main/java/com/ea/orbit/metrics/jvm/ThreadCPUUsageSet.java
package com.ea.orbit.metrics.jvm; import com.codahale.metrics.Gauge; import com.codahale.metrics.Metric; import com.codahale.metrics.MetricSet; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; import java.util.HashMap; import java.util.Ma...
package com.ea.orbit.metrics.jvm; import com.codahale.metrics.Gauge; import com.codahale.metrics.Metric; import com.codahale.metrics.MetricSet; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; import java.util.HashMap; import java.util.Ma...
Fix Thread CPU time metric name.
Fix Thread CPU time metric name.
Java
bsd-3-clause
quilombodigital/orbit,JoeHegarty/orbit,DanielSperry/orbit,FieldFlux/orbit,akydd/orbit
java
## Code Before: package com.ea.orbit.metrics.jvm; import com.codahale.metrics.Gauge; import com.codahale.metrics.Metric; import com.codahale.metrics.MetricSet; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; import java.util.HashMap; imp...
280174e7d11460a3d2f227f11ab6b3e66af01664
templates/rspec_api_documentation/example.html
templates/rspec_api_documentation/example.html
<html> <head> <title>{{resource_name}} API</title> <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.1.1.min.css"> </head> <body> <div class="container"> <h1>{{resource_name}} API</h1> <div class="article"> <h2>{{ description }}</h2> ...
<html> <head> <title>{{resource_name}} API</title> <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css"> <style> td.required .name:after { float: right; content: "required"; font-weight: normal; color: #F08080; } </style>...
Add parameters to the html output templates.
Add parameters to the html output templates.
HTML
mit
engineyard/rspec_api_documentation,zipmark/rspec_api_documentation,tmk-kwmr/rspec_api_doc_test,schmierkov/rspec_api_documentation,shhavel/rspec_api_documentation,shhavel/rspec_api_documentation,shhavel/rspec_api_documentation,tmk-kwmr/rspec_api_doc_test,stefsava/rspec_api_documentation,schmierkov/rspec_api_documentatio...
html
## Code Before: <html> <head> <title>{{resource_name}} API</title> <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.1.1.min.css"> </head> <body> <div class="container"> <h1>{{resource_name}} API</h1> <div class="article"> <h2>{{ description }...
210b55093e4df141a117234533d71cd5d170f62e
statsd-ruby.gemspec
statsd-ruby.gemspec
Gem::Specification.new("statsd-ruby", "0.4.0") do |s| s.authors = ["Rein Henrichs"] s.email = "rein@phpfog.com" s.summary = "A Ruby StatsD client" s.description = "A Ruby StatsD client (https://github.com/etsy/statsd)" s.homepage = "https://github.com/reinh/statsd-ruby" s.licenses = %w[MIT] s.extra_rd...
Gem::Specification.new("statsd-ruby", "0.4.0") do |s| s.authors = ["Rein Henrichs"] s.email = "rein@phpfog.com" s.summary = "A Ruby StatsD client" s.description = "A Ruby StatsD client (https://github.com/etsy/statsd)" s.homepage = "https://github.com/reinh/statsd-ruby" s.licenses = %w[MIT] s.extra_rd...
Add specific versions for minitest and simplecov
Add specific versions for minitest and simplecov * Should fix false failures on CI
Ruby
mit
reinh/statsd,premisedata/metricsd-ruby
ruby
## Code Before: Gem::Specification.new("statsd-ruby", "0.4.0") do |s| s.authors = ["Rein Henrichs"] s.email = "rein@phpfog.com" s.summary = "A Ruby StatsD client" s.description = "A Ruby StatsD client (https://github.com/etsy/statsd)" s.homepage = "https://github.com/reinh/statsd-ruby" s.licenses = %w[MI...
e073349802facc73dd2979df7976c349ba9294da
app/controllers/concerns/optional_modules/videoable.rb
app/controllers/concerns/optional_modules/videoable.rb
module Videoable extend ActiveSupport::Concern included do before_action :set_video_settings, if: proc { @video_module.enabled? } after_action :set_flash_notice, only: [:create, :update], if: proc { defined?(flash_notice) && !flash_notice.blank? } private def set_video_settings @video_setti...
module Videoable extend ActiveSupport::Concern included do before_action :set_video_settings, if: proc { @video_module.enabled? } after_action :set_flash_notice, only: [:create, :update], if: proc { defined?(resource.flash_notice) && !resource.flash_notice.blank? } private def set_video_settings ...
Fix flash alert to warn user when a video upload is being uploaded
Fix flash alert to warn user when a video upload is being uploaded
Ruby
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
ruby
## Code Before: module Videoable extend ActiveSupport::Concern included do before_action :set_video_settings, if: proc { @video_module.enabled? } after_action :set_flash_notice, only: [:create, :update], if: proc { defined?(flash_notice) && !flash_notice.blank? } private def set_video_settings ...
bc8d5157345afb9be37c2e56ec8e284f8dab48ce
benches/strings.rs
benches/strings.rs
extern crate indolentjson; extern crate test; use indolentjson::strings::*; use test::Bencher; #[bench] fn noop_escape(b: &mut Bencher) { b.iter(|| { escape_bytes(b"test") }); } #[bench] fn escape_controls(b: &mut Bencher) { b.iter(|| { escape_bytes(b"\t\n\r\\") }); } #[bench] fn n...
extern crate indolentjson; extern crate test; use indolentjson::strings::*; use test::{black_box, Bencher}; #[bench] fn noop_escape(b: &mut Bencher) { let test_string = black_box(b"test"); b.bytes = test_string.len() as u64; b.iter(|| { escape_bytes(test_string) }); } #[bench] fn escape_controls(b: &m...
Add a couple more benchmarks, add bytes count so that we get more meaningless numbers
Add a couple more benchmarks, add bytes count so that we get more meaningless numbers
Rust
apache-2.0
NegativeMjark/indolentjson-rust
rust
## Code Before: extern crate indolentjson; extern crate test; use indolentjson::strings::*; use test::Bencher; #[bench] fn noop_escape(b: &mut Bencher) { b.iter(|| { escape_bytes(b"test") }); } #[bench] fn escape_controls(b: &mut Bencher) { b.iter(|| { escape_bytes(b"\t\n\r\\") }); ...
014b3c4ab06ea86e9032401cc3cf1c3f91e4a5b7
README.md
README.md
============= alpha-vantage ============= Python module to get stock data from the Alpha Vantage API .. image:: https://travis-ci.org/RomelTorres/alpha-vantage.svg?branch=0.0.1 This module requires a free API, that you can get from http://www.alphavantage.co/ More coming soon..
[![Build Status](https://travis-ci.org/RomelTorres/alpha-vantage.svg?branch=master)](https://travis-ci.org/RomelTorres/alpha-vantage) *Python module to get stock data from the Alpha Vantage API* This module requires a free API, that you can get from http://www.alphavantage.co/ More coming soon..
Update readme to support travis batch
docs: Update readme to support travis batch
Markdown
mit
RomelTorres/alpha_vantage
markdown
## Code Before: ============= alpha-vantage ============= Python module to get stock data from the Alpha Vantage API .. image:: https://travis-ci.org/RomelTorres/alpha-vantage.svg?branch=0.0.1 This module requires a free API, that you can get from http://www.alphavantage.co/ More coming soon.. ## Instruction: doc...
b47847069a5b0e5c7e8e7da64b529e1d7e0d50d5
README.md
README.md
A JSON Schema V4 and Hyperschema V4 parser and validator. ``` ruby require "json" require "json_schema" schema_data = JSON.parse(File.read("schema.json")) schema = JsonSchema.parse!(schema_data) data = JSON.parse(File.read("data.json")) schema.validate!(data) ```
A JSON Schema V4 and Hyperschema V4 parser and validator. ``` ruby require "json" require "json_schema" # parse the schema schema_data = JSON.parse(File.read("schema.json")) schema = JsonSchema.parse!(schema_data) # validate some data data = JSON.parse(File.read("data.json")) schema.validate!(data) # iterate throu...
Add a little hyperschema example too
Add a little hyperschema example too
Markdown
mit
gjtorikian/json_schema,mokemoko/json_schema,brandur/json_schema,hokuma/json_schema
markdown
## Code Before: A JSON Schema V4 and Hyperschema V4 parser and validator. ``` ruby require "json" require "json_schema" schema_data = JSON.parse(File.read("schema.json")) schema = JsonSchema.parse!(schema_data) data = JSON.parse(File.read("data.json")) schema.validate!(data) ``` ## Instruction: Add a little hypers...
c3944b190588b68c88ce78c8998b098f1507b41d
CalendarKitDemo/CalendarKitDemo/ExampleController.swift
CalendarKitDemo/CalendarKitDemo/ExampleController.swift
import UIKit import CalendarKit class ExampleController: DayViewController { }
import UIKit import CalendarKit import DateTools class ExampleController: DayViewController { var data = [["Breakfast at Tiffany's", "New York, 5th avenue"], ["Workout", "Tufteparken"], ["Meeting with Alex", "Home", "Oslo, Tju...
Create example controller with mock data
Create example controller with mock data
Swift
mit
hyperoslo/CalendarKit,hyperoslo/CalendarKit
swift
## Code Before: import UIKit import CalendarKit class ExampleController: DayViewController { } ## Instruction: Create example controller with mock data ## Code After: import UIKit import CalendarKit import DateTools class ExampleController: DayViewController { var data = [["Breakfast at Tiffany's", ...
37dc16c03676541b94ba14b5183f71a2b44cafae
spec/strong_routes/rails/route_mapper_spec.rb
spec/strong_routes/rails/route_mapper_spec.rb
require 'spec_helper' require 'action_dispatch' require 'strong_routes/rails/route_mapper' describe ::StrongRoutes::Rails::RouteMapper do let(:paths) { [ 'users', 'posts', 'user_posts', 'bar', 'trading-post' ] } let(:route_set) { route_set = ActionDispatch::Routing::RouteSet.new route_set.draw do re...
require 'spec_helper' require 'action_dispatch' require 'strong_routes/rails/route_mapper' describe ::StrongRoutes::Rails::RouteMapper do let(:paths) { [ 'users', 'posts', 'comments', 'user_posts', 'bar', 'trading-post' ] } let(:route_set) { route_set = ActionDispatch::Routing::RouteSet.new route_set.draw...
Use shallow routes in specs
Use shallow routes in specs Verify that shallow routes do, in fact, work by adding specs. Closes #1
Ruby
mit
liveh2o/strong_routes
ruby
## Code Before: require 'spec_helper' require 'action_dispatch' require 'strong_routes/rails/route_mapper' describe ::StrongRoutes::Rails::RouteMapper do let(:paths) { [ 'users', 'posts', 'user_posts', 'bar', 'trading-post' ] } let(:route_set) { route_set = ActionDispatch::Routing::RouteSet.new route_set....
25cb0cb9cda433e402cd46428e62d6b727a11526
.travis.yml
.travis.yml
language: ruby before_install: gem install bundler && bundler -v install: bundle install --jobs=3 --retry=3 before_script: bundle install script: bundle exec rake rvm: - 1.9.3 - 2.0.0 - 2.1.8 - 2.2.4 - ruby-head matrix: allow_failures: - rvm: ruby-head
language: ruby before_install: gem install bundler && bundler -v install: bundle install --jobs=3 --retry=3 before_script: bundle install script: bundle exec rake rvm: - 2.1.8 - 2.2.4 - ruby-head matrix: allow_failures: - rvm: ruby-head
Drop unsupported Ruby versions from Travis
Drop unsupported Ruby versions from Travis Devise 4.x does not support Ruby versions < 2.1.0
YAML
mit
devise-security/devise-security,viniciusnz/devise_security_extension,phatworx/devise_security_extension,sandergroen/devise_security_extension,devise-security/devise-security,sandergroen/devise_security_extension,appfolio/devise_security_extension,appfolio/devise_security_extension,viniciusnz/devise_security_extension,p...
yaml
## Code Before: language: ruby before_install: gem install bundler && bundler -v install: bundle install --jobs=3 --retry=3 before_script: bundle install script: bundle exec rake rvm: - 1.9.3 - 2.0.0 - 2.1.8 - 2.2.4 - ruby-head matrix: allow_failures: - rvm: ruby-head ## Instruction: Drop unsupported R...
a81866d773a73e74cb14508a2b467e9867d7119b
Configuration/Settings.yaml
Configuration/Settings.yaml
TYPO3: Flow: security: authentication: providers: SingleSignOnProvider: provider: 'TYPO3\SingleSignOn\Client\Security\SingleSignOnProvider' providerOptions: server: DemoServer entryPoint: 'TYPO3\SingleSignOn\Client\Security\EntryPoint\Singl...
TYPO3: Flow: security: authentication: providers: SingleSignOnProvider: provider: 'TYPO3\SingleSignOn\Client\Security\SingleSignOnProvider' providerOptions: server: DemoServer globalSessionTouchInterval: 5 entryPoint: 'TYPO3\S...
Configure small global session touch interval for demo instance
[TASK] Configure small global session touch interval for demo instance
YAML
mit
Flowpack/Flowpack.SingleSignOn.DemoInstance
yaml
## Code Before: TYPO3: Flow: security: authentication: providers: SingleSignOnProvider: provider: 'TYPO3\SingleSignOn\Client\Security\SingleSignOnProvider' providerOptions: server: DemoServer entryPoint: 'TYPO3\SingleSignOn\Client\Security\...
fc0e8e2aaebcc5aa5b776a92a623745dffb7f5c0
netbox/templates/dcim/rackrole_list.html
netbox/templates/dcim/rackrole_list.html
{% extends '_base.html' %} {% load helpers %} {% block content %} <div class="pull-right"> {% if perms.dcim.add_rackrole %} <a href="{% url 'dcim:rackrole_add' %}" class="btn btn-primary"> <span class="fa fa-plus" aria-hidden="true"></span> Add a rack role </a> <a hr...
{% extends '_base.html' %} {% load buttons %} {% block content %} <div class="pull-right"> {% if perms.dcim.add_rackrole %} {% add_button 'dcim:rackrole_add' %} {% import_button 'dcim:rackrole_import' %} {% endif %} {% export_button content_type %} </div> <h1>{% block title %}Rack Roles{% e...
Add export button to rack roles list view.
Add export button to rack roles list view.
HTML
apache-2.0
digitalocean/netbox,digitalocean/netbox,lampwins/netbox,digitalocean/netbox,lampwins/netbox,lampwins/netbox,lampwins/netbox,digitalocean/netbox
html
## Code Before: {% extends '_base.html' %} {% load helpers %} {% block content %} <div class="pull-right"> {% if perms.dcim.add_rackrole %} <a href="{% url 'dcim:rackrole_add' %}" class="btn btn-primary"> <span class="fa fa-plus" aria-hidden="true"></span> Add a rack role </...
90446f27bd43dbc53359d05cff62cb52af3e8ad0
wercker.yml
wercker.yml
box: wercker/ubuntu12.04-nodejs0.10@1.5.0 build: steps: - install-packages: packages: npm - npm-install - npm-test
box: wercker/ubuntu12.04-nodejs0.10@1.5.0 build: steps: - script: name: Install code: npm install - script: name: Test code: npm test
Remove "install packages script". Added two custom scripts. Install and Test
Remove "install packages script". Added two custom scripts. Install and Test
YAML
mit
tvbarajas/flowdock-notify,tvbarajas/flowdock-notify
yaml
## Code Before: box: wercker/ubuntu12.04-nodejs0.10@1.5.0 build: steps: - install-packages: packages: npm - npm-install - npm-test ## Instruction: Remove "install packages script". Added two custom scripts. Install and Test ## Code After: box: wercker/ubuntu12.04-nodejs0.10@1.5.0 build: steps:...
780adb9f73d0c69ddef080618122c71392b02d3e
client/templates/helpers.js
client/templates/helpers.js
Template.login.events({ 'submit .login-user': function(event) { var email = event.target.email.value; var password = event.target.password.value; Meteor.loginWithPassword(email, password, function(err) { if (err) { event.target.email.value = email; ...
Template.login.events({ 'submit .login-user': function(event) { var email = event.target.email.value; var password = event.target.password.value; Meteor.loginWithPassword(email, password, function(err) { if (err) { event.target.email.value = email; ...
Add some global tpl vars
Add some global tpl vars
JavaScript
mit
pH-7/pH7Ortfolio,pH-7/pH7Ortfolio
javascript
## Code Before: Template.login.events({ 'submit .login-user': function(event) { var email = event.target.email.value; var password = event.target.password.value; Meteor.loginWithPassword(email, password, function(err) { if (err) { event.target.email.value = email...
ee54f0ca3317b6f2119f15d42a7dd8d42d4f8059
standup/test_settings.py
standup/test_settings.py
from standup.settings import * DATABASE_URL = 'sqlite://'
from standup.settings import * # This looks wrong, but actually, it's an in-memory db uri # and it causes our tests to run super fast! DATABASE_URL = 'sqlite://'
Add comment of vital importance
Add comment of vital importance This bumps me up another shade of green! Yay!
Python
bsd-3-clause
safwanrahman/standup,rehandalal/standup,willkg/standup,rlr/standup,rehandalal/standup,rlr/standup,mozilla/standup,rlr/standup,safwanrahman/standup,mozilla/standup,willkg/standup,willkg/standup,safwanrahman/standup,willkg/standup,safwanrahman/standup,mozilla/standup,rehandalal/standup,mozilla/standup
python
## Code Before: from standup.settings import * DATABASE_URL = 'sqlite://' ## Instruction: Add comment of vital importance This bumps me up another shade of green! Yay! ## Code After: from standup.settings import * # This looks wrong, but actually, it's an in-memory db uri # and it causes our tests to run super fas...
329b88bbb49363b32b06b221e89a8f7584dbeca1
website/docs/source/v2/provisioning/file.html.md
website/docs/source/v2/provisioning/file.html.md
--- page_title: "File Uploads - Provisioning" sidebar_current: "provisioning-file" --- # File Provisioner **Provisioner name: `"file"`** The file provisioner allows you to upload a file from the host machine to the guest machine. File provisioning is a simple way to, for example, replicate your local ~/.gitconfig t...
--- page_title: "File Uploads - Provisioning" sidebar_current: "provisioning-file" --- # File Provisioner **Provisioner name: `"file"`** The file provisioner allows you to upload a file from the host machine to the guest machine. File provisioning is a simple way to, for example, replicate your local ~/.gitconfig t...
Add usage example to provisioning/file
docs: Add usage example to provisioning/file
Markdown
mit
philoserf/vagrant,PatOShea/vagrant,darkn3rd/vagrant,doy/vagrant,jmanero/vagrant,patrys/vagrant,jean/vagrant,evverx/vagrant,legal90/vagrant,apertoso/vagrant,PatrickLang/vagrant,patrys/vagrant,wangfakang/vagrant,tjanez/vagrant,ferventcoder/vagrant,genome21/vagrant,carlosefr/vagrant,Chhunlong/vagrant,bshurts/vagrant,gpkfr...
markdown
## Code Before: --- page_title: "File Uploads - Provisioning" sidebar_current: "provisioning-file" --- # File Provisioner **Provisioner name: `"file"`** The file provisioner allows you to upload a file from the host machine to the guest machine. File provisioning is a simple way to, for example, replicate your loca...
4c8acdf56d4fa4792b07cc9d223589301f629d01
app/libraries/Setups/Views/Breadcrumbs.php
app/libraries/Setups/Views/Breadcrumbs.php
<?php declare (strict_types = 1); namespace GrottoPress\Jentil\Setups\Views; use GrottoPress\Jentil\Setups\AbstractSetup; final class Breadcrumbs extends AbstractSetup { public function run() { \add_action('jentil_before_before_title', [$this, 'render']); } /** * @action jentil_before_b...
<?php declare (strict_types = 1); namespace GrottoPress\Jentil\Setups\Views; use GrottoPress\Jentil\Setups\AbstractSetup; final class Breadcrumbs extends AbstractSetup { public function run() { \add_action('jentil_before_before_title', [$this, 'render']); } /** * @action jentil_before_b...
Refactor method to eliminate duplicate method calls
Refactor method to eliminate duplicate method calls
PHP
mit
GrottoPress/jentil,GrottoPress/jentil,GrottoPress/jentil,GrottoPress/jentil
php
## Code Before: <?php declare (strict_types = 1); namespace GrottoPress\Jentil\Setups\Views; use GrottoPress\Jentil\Setups\AbstractSetup; final class Breadcrumbs extends AbstractSetup { public function run() { \add_action('jentil_before_before_title', [$this, 'render']); } /** * @action...
f309988d8dc68ae5b1a1d368d7a72cc30c752167
app/views/devise/registrations/new.html.erb
app/views/devise/registrations/new.html.erb
<div class="devise-form"> <h2>Sign Up</h2> <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= f.error_notification %> <%= f.input :name, :autofocus => true %> <%= f.input :email, :required => true %> <%= f.inp...
<div class="devise-form"> <h2>Sign Up</h2> <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= f.error_notification %> <%= f.input :name, :autofocus => true %> <%= f.input :email, :required => true %> <%= f.inp...
Add Sign-In Link for Registration View
Add Sign-In Link for Registration View Update the Devise registrations view to add a sign-in link (in the case where the user is already a member).
HTML+ERB
mit
jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply
html+erb
## Code Before: <div class="devise-form"> <h2>Sign Up</h2> <%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= f.error_notification %> <%= f.input :name, :autofocus => true %> <%= f.input :email, :required => true ...
c09e01d6d7b98d2f2b0a99fea20988d422c1a1bd
test_collision/test_worlds.py
test_collision/test_worlds.py
from __future__ import unicode_literals, print_function, absolute_import import unittest import bullet class DiscreteDynamicsWorldTestCase(unittest.TestCase): def setUp(self): pass def test_ctor(self): pass def tearDown(self): pass
from __future__ import unicode_literals, print_function, absolute_import import unittest import bullet class DiscreteDynamicsWorldTestCase(unittest.TestCase): def setUp(self): self.solver = bullet.btSequentialImpulseConstraintSolver() self.cinfo = bullet.btDefaultCollisionConstructionInfo() ...
Add tests for implemented methods
Add tests for implemented methods
Python
mit
Klumhru/boost-python-bullet,Klumhru/boost-python-bullet,Klumhru/boost-python-bullet
python
## Code Before: from __future__ import unicode_literals, print_function, absolute_import import unittest import bullet class DiscreteDynamicsWorldTestCase(unittest.TestCase): def setUp(self): pass def test_ctor(self): pass def tearDown(self): pass ## Instruction: Add tests for...
b6d3e76481391df7c37c758106fc099c75aa71c1
README.md
README.md
Unofficial package for [Meteor](https://www.meteor.com) to wrap [d3-cloud](https://www.npmjs.com/package/d3-cloud). This is a wordle-inspired word cloud layout written in JavaScript. It uses HTML5 canvas and sprite masks to achieve near-interactive speeds. ## Usage See [d3-cloud docs](https://www.npmjs.com/package/...
DO NOT USE WITH d3js:d3 meteor package. Only works if you include d3 from npm via browserify. ## Not on atmostphere intentionally Unofficial package for [Meteor](https://www.meteor.com) to wrap [d3-cloud](https://www.npmjs.com/package/d3-cloud). This is a wordle-inspired word cloud layout written in JavaScript. It ...
Tweak readme with usage warning
Tweak readme with usage warning
Markdown
mit
bobbigmac/d3-cloud
markdown
## Code Before: Unofficial package for [Meteor](https://www.meteor.com) to wrap [d3-cloud](https://www.npmjs.com/package/d3-cloud). This is a wordle-inspired word cloud layout written in JavaScript. It uses HTML5 canvas and sprite masks to achieve near-interactive speeds. ## Usage See [d3-cloud docs](https://www.np...
88dd6e6ff62a39a74259e3fb4d5d87ae58554670
Cargo.toml
Cargo.toml
[package] name = "nix" description = "Rust friendly bindings to *nix APIs" version = "0.10.0-pre" authors = ["The nix-rust Project Developers"] repository = "https://github.com/nix-rust/nix" license = "MIT" categories = ["os::unix-apis"] exclude = [ ".gitignore", ".travis.yml", "test/**/*...
[package] name = "nix" description = "Rust friendly bindings to *nix APIs" version = "0.10.0-pre" authors = ["The nix-rust Project Developers"] repository = "https://github.com/nix-rust/nix" license = "MIT" categories = ["os::unix-apis"] exclude = [ ".gitignore", ".travis.yml", "test/**/*...
Fix libc at 0.2.36 in preparation for release
Fix libc at 0.2.36 in preparation for release
TOML
mit
carllerche/nix-rust,carllerche/nix-rust,nix-rust/nix,geofft/nix-rust,geofft/nix-rust,carllerche/nix-rust,MarkusJais/nix-rust,MarkusJais/nix-rust,geofft/nix-rust,xd009642/nix,xd009642/nix,MarkusJais/nix-rust,asomers/nix,asomers/nix,nix-rust/nix,xd009642/nix
toml
## Code Before: [package] name = "nix" description = "Rust friendly bindings to *nix APIs" version = "0.10.0-pre" authors = ["The nix-rust Project Developers"] repository = "https://github.com/nix-rust/nix" license = "MIT" categories = ["os::unix-apis"] exclude = [ ".gitignore", ".travis.ym...
eaaab067862ce6eb4fece2896251a0449532c1b4
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.3 podfile: Example/Podfile install: - ./swift-lint.sh script: - swiftlint - cd Example - pod install - cd .. - xcodebuild -workspace Example/Ramda.xcworkspace -scheme Ramda_Tests -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES clean build test after_success: -...
language: objective-c osx_image: xcode7.3 podfile: Example/Podfile install: - ./swift-lint.sh script: - gem install xcpretty - swiftlint - cd Example - pod install - cd .. - xcodebuild -workspace Example/Ramda.xcworkspace -scheme Ramda_Tests -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES clean build tes...
Add xcpretty to Travis config
Add xcpretty to Travis config
YAML
mit
FunctioningFunctionalist/ramda.swift,FunctioningFunctionalist/ramda.swift
yaml
## Code Before: language: objective-c osx_image: xcode7.3 podfile: Example/Podfile install: - ./swift-lint.sh script: - swiftlint - cd Example - pod install - cd .. - xcodebuild -workspace Example/Ramda.xcworkspace -scheme Ramda_Tests -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES clean build test after_success: -...
2f1f3e808af300a633a1435c425d2f23550e5211
lib/ember-pusher/bindings.js
lib/ember-pusher/bindings.js
var global = (typeof window !== 'undefined') ? window : {}, Ember = global.Ember; var Bindings = Ember.Mixin.create({ needs: 'pusher', init: function() { var pusherController, target; this._super(); if(!this.PUSHER_SUBSCRIPTIONS) { return; } pusherController = this.get('controllers.pusher'); ...
var global = (typeof window !== 'undefined') ? window : {}, Ember = global.Ember; var Bindings = Ember.Mixin.create({ needs: 'pusher', init: function() { var pusherController, target; this._super(); if(!this.PUSHER_SUBSCRIPTIONS) { return; } pusherController = this.get('controllers.pusher'); ...
Fix improper grab of the pusher controller in unwire
Fix improper grab of the pusher controller in unwire
JavaScript
mit
jamiebikies/ember-pusher,mmun/ember-pusher,mmun/ember-pusher,jamiebikies/ember-pusher
javascript
## Code Before: var global = (typeof window !== 'undefined') ? window : {}, Ember = global.Ember; var Bindings = Ember.Mixin.create({ needs: 'pusher', init: function() { var pusherController, target; this._super(); if(!this.PUSHER_SUBSCRIPTIONS) { return; } pusherController = this.get('contro...
8a5ecd7d82d9db8ddd7cb7cf37c792941ba1c579
BHCDatabase/test/controllers/funders_controller_test.rb
BHCDatabase/test/controllers/funders_controller_test.rb
require 'test_helper' class FundersControllerTest < ActionDispatch::IntegrationTest def setup @user = users(:david) log_in_as(@user) end test "should get index" do get funders_index_url assert_response :success end test "should get show" do get funders_show_url assert_response :suc...
require 'test_helper' class FundersControllerTest < ActionDispatch::IntegrationTest def setup @user = users(:david) log_in_as(@user) end test "should get index" do get funders_url assert_response :success end test "should get one" do one = funders(:one) get funder_url(one) asse...
Add controller tests for a funder.
Add controller tests for a funder.
Ruby
mit
DaBrown95/BHCDatabase,DaBrown95/BHCDatabase,DaBrown95/BHCDatabase
ruby
## Code Before: require 'test_helper' class FundersControllerTest < ActionDispatch::IntegrationTest def setup @user = users(:david) log_in_as(@user) end test "should get index" do get funders_index_url assert_response :success end test "should get show" do get funders_show_url asse...
12a12ab9ea3b5723b86a08dd8b938034fbb800b4
.travis.yml
.travis.yml
language: ruby cache: bundler: true directories: - vendor/cache bundler_args: --jobs=3 --retry=3 rvm: - "2.7.1" - "2.6.6" - "2.5.8" - "2.4.10"
language: ruby cache: bundler: true directories: - vendor/cache bundler_args: --jobs=3 --retry=3 script: - bundle exec rake rvm: - "2.7.1" - "2.6.6" - "2.5.8" - "2.4.10"
Add command to run tests
Add command to run tests
YAML
mit
bundler/compact_index,bundler/compact_index
yaml
## Code Before: language: ruby cache: bundler: true directories: - vendor/cache bundler_args: --jobs=3 --retry=3 rvm: - "2.7.1" - "2.6.6" - "2.5.8" - "2.4.10" ## Instruction: Add command to run tests ## Code After: language: ruby cache: bundler: true directories: - vendor/cache bundler_ar...
c6012f092bf2f14bd037ff91b9cb59d3254aabe9
src/nicoSWD/Rules/Stack.php
src/nicoSWD/Rules/Stack.php
<?php /** * @license http://opensource.org/licenses/mit-license.php MIT * @link https://github.com/nicoSWD * @since 0.3.4 * @author Nicolas Oelgart <nico@oelgart.com> */ namespace nicoSWD\Rules; use SplObjectStorage; /** * Class Stack * @package nicoSWD\Rules */ final class Stack extend...
<?php /** * @license http://opensource.org/licenses/mit-license.php MIT * @link https://github.com/nicoSWD * @since 0.3.4 * @author Nicolas Oelgart <nico@oelgart.com> */ namespace nicoSWD\Rules; use SplObjectStorage; /** * Class Stack * @package nicoSWD\Rules */ final class Stack extend...
Fix build on PHP 7
Fix build on PHP 7
PHP
mit
nicoSWD/php-rule-parser
php
## Code Before: <?php /** * @license http://opensource.org/licenses/mit-license.php MIT * @link https://github.com/nicoSWD * @since 0.3.4 * @author Nicolas Oelgart <nico@oelgart.com> */ namespace nicoSWD\Rules; use SplObjectStorage; /** * Class Stack * @package nicoSWD\Rules */ final cl...
88ff500a002c8a74443a4d3206248c97097e4c52
index.js
index.js
'use strict'; const execBuffer = require('exec-buffer'); const isPng = require('is-png'); const optipng = require('optipng-bin'); module.exports = opts => buf => { opts = Object.assign({optimizationLevel: 3}, opts); if (!Buffer.isBuffer(buf)) { return Promise.reject(new TypeError('Expected a buffer')); } if (!...
'use strict'; const execBuffer = require('exec-buffer'); const isPng = require('is-png'); const optipng = require('optipng-bin'); module.exports = opts => buf => { opts = Object.assign({optimizationLevel: 3}, opts); if (!Buffer.isBuffer(buf)) { return Promise.reject(new TypeError('Expected a buffer')); } if (!...
Fix misuse of `-force` flag
Fix misuse of `-force` flag If the source file is already well optimized, `-force` option produces larger image unfortunately. Without `-force` option exactly the same image will be copied to the destination. fix https://github.com/sindresorhus/gulp-imagemin/issues/196
JavaScript
mit
imagemin/imagemin-optipng
javascript
## Code Before: 'use strict'; const execBuffer = require('exec-buffer'); const isPng = require('is-png'); const optipng = require('optipng-bin'); module.exports = opts => buf => { opts = Object.assign({optimizationLevel: 3}, opts); if (!Buffer.isBuffer(buf)) { return Promise.reject(new TypeError('Expected a buffe...
9650850299bce532e5a2c591fcb1a35e35600e9e
lib/conjure/instance.rb
lib/conjure/instance.rb
require "conjure/docker/host" require "conjure/rails_application" require "conjure/server" require "conjure/swap" require "yaml" module Conjure class Instance def initialize(ip_address, options) @server = Server.new ip_address @options = options end def self.create(options) @server = S...
require "conjure/docker/host" require "conjure/rails_application" require "conjure/server" require "conjure/swap" require "yaml" module Conjure class Instance def initialize(ip_address, options) @server = Server.new ip_address @options = options end def self.create(options) @server = S...
Update API to handle Instance creating and updating similarly
Update API to handle Instance creating and updating similarly
Ruby
mit
brianauton/conjure,brianauton/conjure
ruby
## Code Before: require "conjure/docker/host" require "conjure/rails_application" require "conjure/server" require "conjure/swap" require "yaml" module Conjure class Instance def initialize(ip_address, options) @server = Server.new ip_address @options = options end def self.create(options) ...
655db4e1c8aefea1699516339dd80e1c6a75d67d
setup.py
setup.py
from distutils.core import setup import sys import os import re PACKAGENAME = 'OpSimSummary' packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), PACKAGENAME) versionFile = os.path.join(packageDir, 'version.py') # Obtain the package version with open(versionFile, 'r') as f:...
from distutils.core import setup import sys import os import re PACKAGENAME = 'OpSimSummary' packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'opsimsummary') versionFile = os.path.join(packageDir, 'version.py') # Obtain the package version with open(versionFile, 'r') as...
Revert "Revert "Revert "Changed back due to problems, will fix later"""
Revert "Revert "Revert "Changed back due to problems, will fix later""" This reverts commit 4b35247fe384d4b2b206fa7650398511a493253c.
Python
mit
rbiswas4/simlib
python
## Code Before: from distutils.core import setup import sys import os import re PACKAGENAME = 'OpSimSummary' packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), PACKAGENAME) versionFile = os.path.join(packageDir, 'version.py') # Obtain the package version with open(version...
5306cc062441d6995cbec144f5dddd5b88f61606
app/views/admin/users/index.html.erb
app/views/admin/users/index.html.erb
<table id="users_table"> <thead> <tr> <th><%= t('user_id') %></th> <th><%= t('user_first_name') %></th> <th><%= t('user_last_name') %></th> <th><%= t('user_email') %></th> <th><%= t('user_organisation') %></th> <th><%= t('user_is_admin') %></th> <th class="no-sort"></th> ...
<%= link_to 'Add user', new_admin_user_path, class: 'button' %> <table id="users_table"> <thead> <tr> <th><%= t('user_id') %></th> <th><%= t('user_first_name') %></th> <th><%= t('user_last_name') %></th> <th><%= t('user_email') %></th> <th><%= t('user_organisation') %></th> <th...
Add temporary button to add new user
Add temporary button to add new user
HTML+ERB
mit
unepwcmc/epix,unepwcmc/epix,unepwcmc/epix
html+erb
## Code Before: <table id="users_table"> <thead> <tr> <th><%= t('user_id') %></th> <th><%= t('user_first_name') %></th> <th><%= t('user_last_name') %></th> <th><%= t('user_email') %></th> <th><%= t('user_organisation') %></th> <th><%= t('user_is_admin') %></th> <th class=...
76f74b131969eccdb4400dbab3212cd24a47f2aa
lib/ruboty/handlers/snack.rb
lib/ruboty/handlers/snack.rb
require "ruboty" module Ruboty module Handlers class Snack < Base OYATSU = %w( green_apple apple pear tangerine banana watermelon grapes strawberry melon cherries peach pineapple tomato corn sweet_potato bread cheese_wedge poultry_leg meat_on_bone fried_shrimp egg ha...
require "ruboty" module Ruboty module Handlers class Snack < Base OYATSU = %w( green_apple apple pear tangerine banana watermelon grapes strawberry melon cherries peach pineapple tomato corn sweet_potato bread cheese_wedge poultry_leg meat_on_bone fried_shrimp egg ha...
Fix description for a handler
:pencil2: Fix description for a handler
Ruby
mit
risacan/ruboty-snack,risacan/ruboty-snack
ruby
## Code Before: require "ruboty" module Ruboty module Handlers class Snack < Base OYATSU = %w( green_apple apple pear tangerine banana watermelon grapes strawberry melon cherries peach pineapple tomato corn sweet_potato bread cheese_wedge poultry_leg meat_on_bone fri...
5f6a404f8a4357c3de72b7ac506168e1bec810a8
quicksort/quicksort.py
quicksort/quicksort.py
from random import randint def sort(arr, start, length): if length <= 1: return arr pivot = choose_pivot(arr, length) i = j = start + 1 while j < length: if arr[j] < pivot: swap(arr, j, i) i += 1 j += 1 swap(arr, start, i-1) return (arr, length, pivot) def swap(arr, x, y): temp = arr[x] arr[...
from random import randint def sort(arr, start, length): if length <= 1: return arr pivot = choose_pivot(arr, length) i = j = start + 1 while j < length: if arr[j] < pivot: swap(arr, j, i) i += 1 j += 1 swap(arr, start, i-1) first_part = sort(arr[start:i], start, i) second_part = sort(arr[i:len...
Sort list by recursing through both parts
Sort list by recursing through both parts The array is split into two parts: everything up to and including the pivot, and everything after the pivot. Sort() is called on each part and the resulting arrays are combined and returned. This sorts the array.
Python
mit
timpel/stanford-algs,timpel/stanford-algs
python
## Code Before: from random import randint def sort(arr, start, length): if length <= 1: return arr pivot = choose_pivot(arr, length) i = j = start + 1 while j < length: if arr[j] < pivot: swap(arr, j, i) i += 1 j += 1 swap(arr, start, i-1) return (arr, length, pivot) def swap(arr, x, y): tem...
41d2ce84173953b950e2e8d170811d42be471e27
variables/AuditLogVariable.php
variables/AuditLogVariable.php
<?php namespace Craft; class AuditLogVariable { public function log() { return craft()->auditLog->log(); } public function view($id) { return craft()->auditLog->view($id); } }
<?php namespace Craft; class AuditLogVariable { public function log($criteria) { return craft()->auditLog->log((object)$criteria); } public function view($id) { return craft()->auditLog->view($id); } }
Allow criteria via log variable
Allow criteria via log variable
PHP
mit
boboldehampsink/auditlog,boboldehampsink/auditlog
php
## Code Before: <?php namespace Craft; class AuditLogVariable { public function log() { return craft()->auditLog->log(); } public function view($id) { return craft()->auditLog->view($id); } } ## Instruction: Allow criteria via log variable ## Cod...
2f0a216c706725341b924c6484cd37fbb21630a9
lib/rspec_api_documentation/dsl/endpoint/params.rb
lib/rspec_api_documentation/dsl/endpoint/params.rb
require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @example = example ...
require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @example = example ...
Handle Attributes as Parameter for API Blueprint
Handle Attributes as Parameter for API Blueprint This let spec successfully passed.
Ruby
mit
zipmark/rspec_api_documentation,zipmark/rspec_api_documentation,zipmark/rspec_api_documentation
ruby
## Code Before: require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @exampl...
db7be64b7a8a066a0a0eca6047e302d285a4c4a7
src/components/Intro.js
src/components/Intro.js
import React from 'react'; import styled from '@emotion/styled'; const Content = styled.div` width: 100%; max-width: 580px; padding: 20px 25px; border-radius: 3px; margin: 0 auto 60px; background: rgba(0, 0, 0, 0.04); font-size: 15px; color: #333; `; export default () => ( <Content> <p> At...
import React from 'react'; import styled from '@emotion/styled'; const Content = styled.div` width: 100%; max-width: 580px; padding: 20px 25px; border-radius: 3px; margin: 0 auto 60px; background: rgba(0, 0, 0, 0.04); font-size: 15px; color: #333; `; export default () => ( <Content> <p> At...
Replace Rails with Swift in intro
Replace Rails with Swift in intro
JavaScript
bsd-3-clause
mirego/mirego-open-web,mirego/mirego-open-web
javascript
## Code Before: import React from 'react'; import styled from '@emotion/styled'; const Content = styled.div` width: 100%; max-width: 580px; padding: 20px 25px; border-radius: 3px; margin: 0 auto 60px; background: rgba(0, 0, 0, 0.04); font-size: 15px; color: #333; `; export default () => ( <Content> ...
0187879cca688734bc9b2ec635dad5b630902d1e
src/Project/AppBundle/Resources/config/routing.yml
src/Project/AppBundle/Resources/config/routing.yml
project_app_index: path: /index defaults: { _controller: ProjectAppBundle:User:index } # Administrator #project_app_administrator_formation: # path: /administrator/formation # defaults: { _controller: ProjectAppBundle:Formation:index } #project_app_administrator_formation_create: # path: ...
project_app_index: path: /index defaults: { _controller: ProjectAppBundle:User:index } # Administrator #project_app_administrator_formation: # path: /administrator/formation # defaults: { _controller: ProjectAppBundle:Formation:index } #project_app_administrator_formation_create: # path: ...
Remove speaker routes because we use annotations
Remove speaker routes because we use annotations
YAML
mit
vrap/project-b,vrap/project-b,vrap/project-b
yaml
## Code Before: project_app_index: path: /index defaults: { _controller: ProjectAppBundle:User:index } # Administrator #project_app_administrator_formation: # path: /administrator/formation # defaults: { _controller: ProjectAppBundle:Formation:index } #project_app_administrator_formation_crea...