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
d5cb2a3f9ba2e647224c7c17e9125ef344028a4a
package.json
package.json
{ "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [ { "name": "Michael...
{ "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [{ "name": "Michael Kurr...
Add config file for mongoose setup
Add config file for mongoose setup
JSON
mit
mKurrels/beer-tab,viestat/beer-tab,RHays91/beer-tab,jimtom2713/beer-tab,ViridescentGrizzly/beer-tab,csaden/beer-tab,RHays91/beer-tab,stvnwu/beer-tab,macklevine/beer-tab,jimtom2713/beer-tab,mKurrels/beer-tab,csaden/beer-tab,ViridescentGrizzly/beer-tab,metallic-gazelle/beer-tab,viestat/beer-tab,MaxBreakfast/beer-tab,stvn...
json
## Code Before: { "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [ { ...
e30668139c173653ff962d393311f36cb64ab08f
test/components/Post.spec.js
test/components/Post.spec.js
import { expect } from 'chai'; import { mount } from 'enzyme'; import React from 'react'; import Post from '../../src/js/components/Post'; describe('<Post/>', () => { const post = { id: 0, title: 'Test Post', content: 'empty', description: 'empty', author: 'bot', slug: 'test-post', tags: ...
import { expect } from 'chai'; import { mount, shallow } from 'enzyme'; import React from 'react'; import Post from '../../src/js/components/Post'; describe('<Post/>', () => { const post = { id: 0, title: 'Test Post', content: 'empty', description: 'empty', author: 'bot', slug: 'test-post', ...
Replace `mount` calls with `shallow` in <Post> tests
Replace `mount` calls with `shallow` in <Post> tests
JavaScript
mit
slavapavlutin/pavlutin-node,slavapavlutin/pavlutin-node
javascript
## Code Before: import { expect } from 'chai'; import { mount } from 'enzyme'; import React from 'react'; import Post from '../../src/js/components/Post'; describe('<Post/>', () => { const post = { id: 0, title: 'Test Post', content: 'empty', description: 'empty', author: 'bot', slug: 'test-p...
2c36f2ef7ca925b97659324ace77b40541fb7553
.nodeset.yml
.nodeset.yml
default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64'
default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' 'debian-70rc1-x64': nodes: "main": prefab: 'debian-70rc1-x64'
Add debian wheezy node for rspec-system
Add debian wheezy node for rspec-system
YAML
apache-2.0
MelanieGault/puppet-wget,blackcobra1973/puppet-wget,maestrodev/puppet-wget,azcender/puppet-wget,DSI-Ville-Noumea/puppet-wget,seanscottking/puppet-wget,PierrickI3/puppet-wget
yaml
## Code Before: default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' ## Instruction: Add debian wheezy node for rspec-system ## Code After: default_set: 'centos-64-x64' sets: 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-...
335f27bbe7bedf695d90ab00309ee13af39d8945
.travis.yml
.travis.yml
language: node_js node_js: - "8" install: npm install before_install: - npm i -g npm@6.1.0 - npm i -g greenkeeper-lockfile@1 script: npm run ci before_script: greenkeeper-lockfile-update after_script: greenkeeper-lockfile-upload
language: node_js node_js: - 10 install: npm install before_install: - npm i -g greenkeeper-lockfile@1 script: npm run ci before_script: greenkeeper-lockfile-update after_script: greenkeeper-lockfile-upload
Update TravisCI to use Node 10
Update TravisCI to use Node 10
YAML
mit
lentz/buddyduel,lentz/buddyduel,lentz/buddyduel
yaml
## Code Before: language: node_js node_js: - "8" install: npm install before_install: - npm i -g npm@6.1.0 - npm i -g greenkeeper-lockfile@1 script: npm run ci before_script: greenkeeper-lockfile-update after_script: greenkeeper-lockfile-upload ## Instruction: Update TravisCI to use Node 10 ## Code After: langu...
0f88be49d34ed3c6d965e78571c772b414f3d2ef
site/content/story/it-began-in-thailand.md
site/content/story/it-began-in-thailand.md
+++ title = "It began in Thailand" weight = 1000 images = [ "mindfulness-project-mudpit.jpg", "mindfulness-house-porch.png", "karma-yoga-board.png", "mindfulness-project-house.jpg", "mindfulness-project-mosaic.jpg", "christian-carow-mindfulness-project.jpg", "mindfulness-project-goodbye-circle.jpg", "mi...
+++ title = "It began in Thailand" weight = 1000 images = [ "mindfulness-project-mudpit.jpg", "mindfulness-house-porch.png", "karma-yoga-board.png", "mindfulness-project-house.jpg", "mindfulness-project-mosaic.jpg", "christian-carow-mindfulness-project.jpg", "mindfulness-project-goodbye-circle.jpg", "mi...
Fix duplicate content and link to MP
Fix duplicate content and link to MP
Markdown
mit
dzello/estelle-and-josh,dzello/estelle-and-josh,dzello/estelle-and-josh
markdown
## Code Before: +++ title = "It began in Thailand" weight = 1000 images = [ "mindfulness-project-mudpit.jpg", "mindfulness-house-porch.png", "karma-yoga-board.png", "mindfulness-project-house.jpg", "mindfulness-project-mosaic.jpg", "christian-carow-mindfulness-project.jpg", "mindfulness-project-goodbye-ci...
354512b5f7f019f2c17c4590f48ff135895d4d33
app/helpers/assets_helper.rb
app/helpers/assets_helper.rb
module AssetsHelper def render_asset(asset,custom_class) case(asset.mime.split('/').first) when 'image' content_tag(:img, nil, src: asset.url, alt: asset.alt, title: asset.title, class: 'media-object '+custom_class) else link_to asset.url, asset.url end end end
module AssetsHelper def render_asset(asset, custom_class=nil) case(asset.mime.split('/').first) when 'image' content_tag(:img, nil, src: asset.url, alt: asset.alt, title: asset.title, class: ['media-object', custom_class].join(' ')) else link_to asset.url, asset.url end end end
Make custom_class optional in render_asset helper
Make custom_class optional in render_asset helper
Ruby
agpl-3.0
osucomm/mediamagnet,osucomm/mediamagnet
ruby
## Code Before: module AssetsHelper def render_asset(asset,custom_class) case(asset.mime.split('/').first) when 'image' content_tag(:img, nil, src: asset.url, alt: asset.alt, title: asset.title, class: 'media-object '+custom_class) else link_to asset.url, asset.url end end end ## Inst...
101d5e8af93e5800917c7335d552ee9356b13b67
sample/spec/spec_helper.rb
sample/spec/spec_helper.rb
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'ffaker' RSpec.configure do |config| config.color = true config.mock_with :rspec # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transacti...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'ffaker' require 'spree_sample' RSpec.configure do |config| config.color = true config.mock_with :rspec # If you're not using ActiveRecord, or you'd prefer not to run each of your # exam...
Add require spree_sample to spec helper to prevent failure when running build.sh.
Add require spree_sample to spec helper to prevent failure when running build.sh.
Ruby
bsd-3-clause
cutefrank/spree,caiqinghua/spree,firman/spree,useiichi/spree,Migweld/spree,mindvolt/spree,groundctrl/spree,NerdsvilleCEO/spree,ramkumar-kr/spree,degica/spree,yiqing95/spree,rakibulislam/spree,net2b/spree,urimikhli/spree,nooysters/spree,piousbox/spree,rajeevriitm/spree,ujai/spree,shioyama/spree,radarseesradar/spree,azra...
ruby
## Code Before: ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'ffaker' RSpec.configure do |config| config.color = true config.mock_with :rspec # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples wi...
f599b44a70fc7431fb60b5bc86b2e866faa61350
lib/accounting/bank.rb
lib/accounting/bank.rb
module Accounting class Bank < ActiveRecord::Base has_many :accounts belongs_to :vcard, :class_name => 'Vcards::Vcard' end end
module Accounting class Bank < ActiveRecord::Base has_many :accounts has_vcards end end
Use has_vcards from vcards plugin.
Use has_vcards from vcards plugin.
Ruby
mit
huerlisi/has_accounts,hauledev/has_account_engine,hauledev/has_account,hauledev/has_account,huerlisi/has_accounts_engine,hauledev/has_account_engine,huerlisi/has_accounts_engine,huerlisi/has_accounts,hauledev/has_account_engine,hauledev/has_account,huerlisi/has_accounts_engine,huerlisi/has_accounts
ruby
## Code Before: module Accounting class Bank < ActiveRecord::Base has_many :accounts belongs_to :vcard, :class_name => 'Vcards::Vcard' end end ## Instruction: Use has_vcards from vcards plugin. ## Code After: module Accounting class Bank < ActiveRecord::Base has_many :accounts has_vcards end...
6f63713f2812138cf42fcef7c938b8f89bb396d5
config/blazer.sample.yml
config/blazer.sample.yml
data_sources: main: url: mysql2://metasmoke_blazer:zFpc8tw7CdAuXizX@localhost:3306/metasmoke_dev timeout: 10 cache: mode: slow expires_in: 60 slow_threshold: 5 smart_variables: reason_id: "SELECT id, reason_name FROM p_reasons ORDER BY id ASC" user_id: "SELECT id, usern...
data_sources: main: url: mysql2://metasmoke_blazer:zFpc8tw7CdAuXizX@localhost:3306/metasmoke_dev timeout: 10 cache: mode: slow expires_in: 60 slow_threshold: 5 smart_variables: reason_id: "SELECT id, reason_name FROM p_reasons ORDER BY id ASC" user_id: "SELECT id, usern...
Add user config to Blazer
Add user config to Blazer
YAML
cc0-1.0
Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke
yaml
## Code Before: data_sources: main: url: mysql2://metasmoke_blazer:zFpc8tw7CdAuXizX@localhost:3306/metasmoke_dev timeout: 10 cache: mode: slow expires_in: 60 slow_threshold: 5 smart_variables: reason_id: "SELECT id, reason_name FROM p_reasons ORDER BY id ASC" user_id: "...
de5ac658826133680848c2280d2f6f39e324b63f
bucket/msys2.json
bucket/msys2.json
{ "homepage": "http://msys2.github.io", "##":"64-bit version (able to build both 32-bit and 64-bit packages)", "version": "2016.10.25", "url": "https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-20161025.tar.xz", "extract_dir": "msys64", "bin": [["msys2_shell.cmd",...
{ "homepage": "http://msys2.github.io", "##": "64-bit version (able to build both 32-bit and 64-bit packages)", "version": "20161025", "architecture": { "64bit": { "url": "https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-20161025.tar.xz", "extrac...
Fix tests. Add 32-bit and autoupdate.
Fix tests. Add 32-bit and autoupdate.
JSON
unlicense
Cyianor/scoop,vidarkongsli/scoop,yunspace/scoop,Congee/scoop,berwyn/scoop,rasa/scoop,kodybrown/scoop,toxeus/scoop,lukesampson/scoop,coonce/scoop,reelsense/scoop,nikolasd/scoop
json
## Code Before: { "homepage": "http://msys2.github.io", "##":"64-bit version (able to build both 32-bit and 64-bit packages)", "version": "2016.10.25", "url": "https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-20161025.tar.xz", "extract_dir": "msys64", "bin": [["msys2_s...
651f9f5c6bf8b78593901fad263d2672185d7c83
README.md
README.md
[![Discord](https://discordapp.com/api/guilds/260158980343463937/embed.png)](https://discord.gg/yyDWNBr) [![Dependency status](https://david-dm.org/DrSmugleaf/Banter-Bot.svg)](https://david-dm.org/DrSmugleaf/Banter-Bot) [![Build status](https://travis-ci.org/DrSmugleaf/Banter-Bot.svg?branch=development)](https://travis...
[![Discord](https://discordapp.com/api/guilds/260158980343463937/embed.png)](https://discord.gg/yyDWNBr) [![Dependency status](https://david-dm.org/DrSmugleaf/Banter-Bot.svg)](https://david-dm.org/DrSmugleaf/Banter-Bot) [![Build status](https://api.travis-ci.org/DrSmugleaf/Banter-Bot.svg?branch=master)](https://travis-...
Change travis icon branch to master
Change travis icon branch to master
Markdown
apache-2.0
DrSmugleaf/Banter-Bot,DrSmugleaf/Banter-Bot
markdown
## Code Before: [![Discord](https://discordapp.com/api/guilds/260158980343463937/embed.png)](https://discord.gg/yyDWNBr) [![Dependency status](https://david-dm.org/DrSmugleaf/Banter-Bot.svg)](https://david-dm.org/DrSmugleaf/Banter-Bot) [![Build status](https://travis-ci.org/DrSmugleaf/Banter-Bot.svg?branch=development)...
e7d40d10b93a219d878c8dcd14c7b434c0454b36
sbin/rocotorun.rb
sbin/rocotorun.rb
if File.symlink?(__FILE__) __WFMDIR__=File.dirname(File.dirname(File.expand_path(File.readlink(__FILE__),File.dirname(__FILE__)))) else __WFMDIR__=File.dirname(File.expand_path(File.dirname(__FILE__))) end # Add include paths for WFM and libxml-ruby libraries $:.unshift("#{__WFMDIR__}/lib") $:.unshift("#{__WFMDIR_...
if File.symlink?(__FILE__) __WFMDIR__=File.dirname(File.dirname(File.expand_path(File.readlink(__FILE__),File.dirname(__FILE__)))) else __WFMDIR__=File.dirname(File.expand_path(File.dirname(__FILE__))) end # Add include paths for WFM and libxml-ruby libraries $:.unshift("#{__WFMDIR__}/lib") $:.unshift("#{__WFMDIR_...
Add program tracing at verbosity level 1000
Add program tracing at verbosity level 1000
Ruby
apache-2.0
christopherwharrop/rocoto,christopherwharrop/rocoto
ruby
## Code Before: if File.symlink?(__FILE__) __WFMDIR__=File.dirname(File.dirname(File.expand_path(File.readlink(__FILE__),File.dirname(__FILE__)))) else __WFMDIR__=File.dirname(File.expand_path(File.dirname(__FILE__))) end # Add include paths for WFM and libxml-ruby libraries $:.unshift("#{__WFMDIR__}/lib") $:.unsh...
12b921a6bb858f858261121b3f215b798e423554
autoroll/config/pdfium-chromium.json
autoroll/config/pdfium-chromium.json
// See https://skia.googlesource.com/buildbot.git/+/master/autoroll/go/roller/config.go#130 // for documentation of the autoroller config. { "childName": "PDFium", "contacts": [ "thestig@chromium.org" ], "gerrit": { "url": "https://chromium-review.googlesource.com", "project": "chromium/src", "c...
// See https://skia.googlesource.com/buildbot.git/+/master/autoroll/go/roller/config.go#130 // for documentation of the autoroller config. { "childName": "PDFium", "contacts": [ "thestig@chromium.org" ], "gerrit": { "url": "https://chromium-review.googlesource.com", "project": "chromium/src", "c...
Update PDFium roller's sheriff email.
Update PDFium roller's sheriff email. There now exists a pdfium-deps-rolls group for this purpose. BUG=chromium:901054 Change-Id: Iaf3962c7c36b56c302f39b14225c7a9f59a3782c Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/213000 Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.co...
JSON
bsd-3-clause
google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot
json
## Code Before: // See https://skia.googlesource.com/buildbot.git/+/master/autoroll/go/roller/config.go#130 // for documentation of the autoroller config. { "childName": "PDFium", "contacts": [ "thestig@chromium.org" ], "gerrit": { "url": "https://chromium-review.googlesource.com", "project": "chrom...
4cc7b77b84cb82c707eb7fae80e05b96a976187d
test/make-valid-publication.js
test/make-valid-publication.js
var FormData = require('form-data') module.exports = function (title) { var form = new FormData() form.append('name', 'Kyle E. Mitchell') form.append('affiliation', 'BioBricks Foundation') form.append('title', title || 'Made-Up Discovery') form.append('description', 'Pat head. Rub stomach. Eureka!') form.a...
var FormData = require('form-data') module.exports = function (title) { var form = new FormData() form.append('name', 'Kyle E. Mitchell') form.append('affiliation', 'BioBricks Foundation') form.append('title', title || 'Made-Up Discovery') form.append('description', 'Pat head. Rub stomach. Eureka!') form.a...
Test publication with journals list
Test publication with journals list
JavaScript
apache-2.0
biobricks/dbos,publicdomainchronicle/public-domain-chronicle,biobricks/dbos
javascript
## Code Before: var FormData = require('form-data') module.exports = function (title) { var form = new FormData() form.append('name', 'Kyle E. Mitchell') form.append('affiliation', 'BioBricks Foundation') form.append('title', title || 'Made-Up Discovery') form.append('description', 'Pat head. Rub stomach. Eu...
21398f4b5afec6bafa633315cbd17fbcfb35e683
{{cookiecutter.role_project_name}}/tasks/main.yml
{{cookiecutter.role_project_name}}/tasks/main.yml
--- # tasks file for {{ cookiecutter.role_name }} - name: Run tasks on current environment include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml"
--- # tasks file for {{ cookiecutter.role_name }} - name: Run specified tasks on current platform include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml"
Fix name of include task a bit to understand it easily.
Fix name of include task a bit to understand it easily.
YAML
mit
FGtatsuro/cookiecutter-ansible-role,FGtatsuro/cookiecutter-ansible-role
yaml
## Code Before: --- # tasks file for {{ cookiecutter.role_name }} - name: Run tasks on current environment include: "{{ '{{' }} ansible_os_family {{ '}}' }}.yml" ## Instruction: Fix name of include task a bit to understand it easily. ## Code After: --- # tasks file for {{ cookiecutter.role_name }} - name: Run speci...
334e73cf57439ed2a2e390beb37836e061a73261
bin/web-service.bat
bin/web-service.bat
@echo off setlocal set WEB_PROCESS_TITLE=Skywalking-Web set WEB_BASE_PATH=%~dp0%.. set WEB_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%WEB_BASE_PATH%\config; SET CLASSPATH=%WEB_BASE_PATH%\libs\*;%CLASSPATH% if ""%JAVA_HOME%"" == """" ( set _EXECJAVA=java ) else ( set _EXECJAVA="%JAVA_HOME%"/bin/java ) st...
@echo off setlocal set WEB_PROCESS_TITLE=Skywalking-Web set WEB_BASE_PATH=%~dp0%.. set WEB_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%WEB_BASE_PATH%\config; SET CLASSPATH=%WEB_BASE_PATH%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JA...
Fix windows script start failure
Fix windows script start failure
Batchfile
apache-2.0
ascrutae/sky-walking-ui,ascrutae/sky-walking-ui
batchfile
## Code Before: @echo off setlocal set WEB_PROCESS_TITLE=Skywalking-Web set WEB_BASE_PATH=%~dp0%.. set WEB_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%WEB_BASE_PATH%\config; SET CLASSPATH=%WEB_BASE_PATH%\libs\*;%CLASSPATH% if ""%JAVA_HOME%"" == """" ( set _EXECJAVA=java ) else ( set _EXECJAVA="%JAVA_HOME%...
cad522fc32c98b99e6ca51e8306afd85e735fe88
metadata/io.github.otobikb.inputmethod.latin.yml
metadata/io.github.otobikb.inputmethod.latin.yml
Categories: - System License: GPL-3.0-only AuthorName: Otobi Keyboard AuthorEmail: otobi.kb@gmail.com AuthorWebSite: https://rhjihan.github.io/ WebSite: https://otobikb.github.io/android/ SourceCode: https://github.com/OtobiKB/OtobiKeyboard IssueTracker: https://github.com/OtobiKB/OtobiKeyboard/issues RepoType: git ...
Categories: - System License: GPL-3.0-only AuthorName: Otobi Keyboard AuthorEmail: otobi.kb@gmail.com AuthorWebSite: https://rhjihan.github.io/ WebSite: https://otobikb.github.io/android/ SourceCode: https://github.com/OtobiKB/OtobiKeyboard IssueTracker: https://github.com/OtobiKB/OtobiKeyboard/issues AutoName: Otob...
Set autoname of Otobi Keyboard
Set autoname of Otobi Keyboard
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - System License: GPL-3.0-only AuthorName: Otobi Keyboard AuthorEmail: otobi.kb@gmail.com AuthorWebSite: https://rhjihan.github.io/ WebSite: https://otobikb.github.io/android/ SourceCode: https://github.com/OtobiKB/OtobiKeyboard IssueTracker: https://github.com/OtobiKB/OtobiKeyboard/issues...
55a225d3e6226b3128bd2f35bd593d12d7056a65
src/store.js
src/store.js
import { createStore, applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' import reducer from './reducers' // create the saga middleware export const sagaMiddleware = createSagaMiddleware() // mount it on the Store const store = createStore( reducer, applyMiddleware(sagaMiddleware) ) ex...
import { createStore, applyMiddleware, compose } from 'redux' import createSagaMiddleware from 'redux-saga' import reducer from './reducers' // create the saga middleware export const sagaMiddleware = createSagaMiddleware() const composeEnhancers = process.env.NODE_ENV !== 'production' && typeof window === 'obje...
Add support for Redux Dev Tools
Add support for Redux Dev Tools
JavaScript
apache-2.0
matobet/userportal,oVirt/ovirt-web-ui,mareklibra/userportal,mareklibra/userportal,mareklibra/userportal,matobet/userportal,matobet/userportal,mareklibra/userportal,oVirt/ovirt-web-ui,mkrajnak/ovirt-web-ui,oVirt/ovirt-web-ui,matobet/userportal,mkrajnak/ovirt-web-ui,mkrajnak/ovirt-web-ui,mkrajnak/ovirt-web-ui
javascript
## Code Before: import { createStore, applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' import reducer from './reducers' // create the saga middleware export const sagaMiddleware = createSagaMiddleware() // mount it on the Store const store = createStore( reducer, applyMiddleware(sagaM...
86eba17b5100db9f731d89855561a1c4611964de
.travis.yml
.travis.yml
language: c install: pip install paver script: paver test_libc addons: apt: packages: - python - python3 - python-pip
language: python install: pip install paver script: paver test_libc
Switch to Python container from C container
Switch to Python container from C container
YAML
mit
simon-andrews/norby,simon-andrews/norby,simon-andrews/norby
yaml
## Code Before: language: c install: pip install paver script: paver test_libc addons: apt: packages: - python - python3 - python-pip ## Instruction: Switch to Python container from C container ## Code After: language: python install: pip install paver script: paver test_libc
b6075360deb86d444c0df453389414eaee39f9fe
coding/coding_tests/mem_file_writer_test.cpp
coding/coding_tests/mem_file_writer_test.cpp
UNIT_TEST(MemWriterEmpty) { vector<char> data; { MemWriter< vector<char> > writer(data); } TEST(data.empty(), (data)); } UNIT_TEST(MemWriterSimple) { vector<char> data; MemWriter< vector<char> > writer(data); writer.Write("Hello", 5); writer.Write(",", 1); writer.Write("world!", 6); char const...
UNIT_TEST(MemWriterEmpty) { vector<char> data; { MemWriter< vector<char> > writer(data); } TEST(data.empty(), (data)); } UNIT_TEST(MemWriterSimple) { vector<char> data; MemWriter< vector<char> > writer(data); writer.Write("Hello", 5); writer.Write(",", 1); writer.Write("world!", 6); char con...
Test for FileWriter (not enough disk space).
Test for FileWriter (not enough disk space).
C++
apache-2.0
andrewshadura/omim,augmify/omim,felipebetancur/omim,AlexanderMatveenko/omim,andrewshadura/omim,AlexanderMatveenko/omim,yunikkk/omim,mgsergio/omim,goblinr/omim,programming086/omim,Zverik/omim,therearesomewhocallmetim/omim,Komzpa/omim,sidorov-panda/omim,guard163/omim,mpimenov/omim,felipebetancur/omim,Transtech/omim,Udjin...
c++
## Code Before: UNIT_TEST(MemWriterEmpty) { vector<char> data; { MemWriter< vector<char> > writer(data); } TEST(data.empty(), (data)); } UNIT_TEST(MemWriterSimple) { vector<char> data; MemWriter< vector<char> > writer(data); writer.Write("Hello", 5); writer.Write(",", 1); writer.Write("world!", ...
f8c0c5014e96fbeb001cb9d3e00e4f695ca9a456
ibv_message_passing_ada_project/source/coverage_for_ada_task/coverage_for_ada_task.adb
ibv_message_passing_ada_project/source/coverage_for_ada_task/coverage_for_ada_task.adb
-- @file coverage_for_ada_task.adb -- @date 28 May 2022 -- @author Chester Gillon -- @brief Example program to test getting coverage for an Ada task with Ada.Text_IO; procedure Coverage_For_Ada_Task is task Print_Task is entry Print; end Print_Task; task body Print_Task is begin loop ...
-- @file coverage_for_ada_task.adb -- @date 28 May 2022 -- @author Chester Gillon -- @brief Example program to test getting coverage for an Ada task with Ada.Text_IO; procedure Coverage_For_Ada_Task is generic Name : String; package Generic_Name is procedure Display_Name; end Generic_Name; pa...
Add coverage test for simple generic package
Add coverage test for simple generic package
Ada
mit
Chester-Gillon/ibv_message_passing,Chester-Gillon/ibv_message_passing,Chester-Gillon/ibv_message_passing
ada
## Code Before: -- @file coverage_for_ada_task.adb -- @date 28 May 2022 -- @author Chester Gillon -- @brief Example program to test getting coverage for an Ada task with Ada.Text_IO; procedure Coverage_For_Ada_Task is task Print_Task is entry Print; end Print_Task; task body Print_Task is begin ...
e094a50a8c7c5d1fced8f27f8b5bf59ad8d8a958
2014/10-october/content/4-headlinesjs.md
2014/10-october/content/4-headlinesjs.md
-- ### Good To Know - [Node Awesome](https://github.com/sindresorhus/awesome-nodejs) - a curated collection of great modules for Node.JS - []() - []() -- ### Releases - []() - []() - []() -- ### Videos to Watch -- #### Video 1 <br /> <iframe width="560" height="315" src="//www.youtube.com/embed/FyrP0S9rUPg...
-- ### Good To Know - [Node Awesome](https://github.com/sindresorhus/awesome-nodejs) - a curated collection of great modules for Node.JS - [ECMAScript 6 modules: the final syntax](http://www.2ality.com/2014/09/es6-modules-final.html?) - [polyfill.io - Polyfills as a service](http://labs.ft.com/2014/09/polyfills-as-a...
Add some interesting links to headlines.js
Add some interesting links to headlines.js
Markdown
mit
ottawajs/meetups,ottawajs/meetups
markdown
## Code Before: -- ### Good To Know - [Node Awesome](https://github.com/sindresorhus/awesome-nodejs) - a curated collection of great modules for Node.JS - []() - []() -- ### Releases - []() - []() - []() -- ### Videos to Watch -- #### Video 1 <br /> <iframe width="560" height="315" src="//www.youtube.com/e...
76bdf040cccb1820c0e1527ab43560e9c97cd66b
openstack_dashboard/dashboards/project/security_groups/templates/security_groups/detail.html
openstack_dashboard/dashboards/project/security_groups/templates/security_groups/detail.html
{% extends 'base.html' %} {% block page_header %} {% include "horizon/common/_detail_header.html" %} {% endblock %} {% block main %} <div class="row"> <div class="col-sm-12"> {{ table.render }} </div> </div> {% endblock %}
{% extends 'base.html' %} {% block title %}{{ page_title }}{% endblock %} {% block page_header %} {% include "horizon/common/_detail_header.html" %} {% endblock %} {% block main %} <div class="row"> <div class="col-sm-12"> {{ table.render }} </div> </div> {% endblock %}
Fix incorrect window title in Manage security group rule
Fix incorrect window title in Manage security group rule As far as I see, here is only the place missing the correct title before "- OpenStack Dashboard" Change-Id: I209a2b829ff4b66557a63f3659859a7b281ad629 Closes-Bug: #1677973
HTML
apache-2.0
NeCTAR-RC/horizon,BiznetGIO/horizon,openstack/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,openstack/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,noironetworks/horizon,noironetworks/horizon,yeming233/horizon,NeCTAR-RC/horizon,BiznetGIO/horizon,yeming233/horizon,NeCTAR-RC/horizon,noironetworks/horizon,...
html
## Code Before: {% extends 'base.html' %} {% block page_header %} {% include "horizon/common/_detail_header.html" %} {% endblock %} {% block main %} <div class="row"> <div class="col-sm-12"> {{ table.render }} </div> </div> {% endblock %} ## Instruction: Fix incorrect window title in Manage security group ru...
6ca1aaf1b5f0279151db7c5442b9d18ff86b83ad
.github/workflows/ci.yml
.github/workflows/ci.yml
name: CI on: [push] jobs: cancel_previous_run: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.4.0 with: access_token: ${{ github.token }} build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matri...
name: CI on: [push] jobs: cancel_previous_run: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.4.0 with: access_token: ${{ github.token }} build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matri...
Disable on mac for now.
Disable on mac for now.
YAML
lgpl-2.1
savonet/ocaml-ffmpeg
yaml
## Code Before: name: CI on: [push] jobs: cancel_previous_run: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.4.0 with: access_token: ${{ github.token }} build: runs-on: ${{ matrix.os }} strategy: fail-fast: f...
4d7c668c6c1b35b636cd80164040ee0f042f616a
examples/messaging.cpp
examples/messaging.cpp
int main() { bulk::spawn(bulk::available_processors(), [](int s, int p) { for (int t = 0; t < p; ++t) { bulk::send<int, int>(t, s, s); } bulk::sync(); if (s == 0) { for (auto message : bulk::messages<int, int>()) { std::cout << message.tag <...
int main() { auto center = bulk::center(); center.spawn(center.available_processors(), [&center](int s, int p) { for (int t = 0; t < p; ++t) { center.send<int, int>(t, s, s); } center.sync(); if (s == 0) { for (auto message : center.messages<int, int>()...
Update syntax for message passing example
Update syntax for message passing example
C++
mit
jwbuurlage/Bulk
c++
## Code Before: int main() { bulk::spawn(bulk::available_processors(), [](int s, int p) { for (int t = 0; t < p; ++t) { bulk::send<int, int>(t, s, s); } bulk::sync(); if (s == 0) { for (auto message : bulk::messages<int, int>()) { std::cout ...
5abd3929bcc5bd7624ecf37632ecf27c3f62cbf2
templates/fs.html
templates/fs.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>File System</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> </head> <body...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>File System</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"> </head> <body...
Add jquery and checkbox for hidden files
Add jquery and checkbox for hidden files
HTML
mit
ekaragodin/go100days,ekaragodin/go100days
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>File System</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css...
091809d0cdfd5c9d8fc3c508cabc10f8a520d8b3
jenkins.properties
jenkins.properties
app: pz-gateway packaging: jar gitUrl: https://github.com/venicegeo/pz-gateway mavenProject: piazza mavenRepo: Piazza cfApi=https://api.devops.geointservices.io cfDomain=int.geointservices.io cfOrg=piazza cfSpace=int postmanFileKey=579f8660-01e6-4feb-8764-ec132432ebb1 threadfixId=10
app: pz-gateway packaging: jar gitUrl: https://github.com/venicegeo/pz-gateway mavenProject: piazza mavenRepo: Piazza cfApi=https://api.devops.geointservices.io cfDomain=int.geointservices.io cfOrg=piazza cfSpace=int postmanFileKey=579f8660-01e6-4feb-8764-ec132432ebb1 threadfixId=10 threadfixCredentialId=978C467A-2B26-...
Use different threadfix credential id
Use different threadfix credential id
INI
apache-2.0
venicegeo/pz-gateway,venicegeo/pz-gateway,venicegeo/pz-gateway
ini
## Code Before: app: pz-gateway packaging: jar gitUrl: https://github.com/venicegeo/pz-gateway mavenProject: piazza mavenRepo: Piazza cfApi=https://api.devops.geointservices.io cfDomain=int.geointservices.io cfOrg=piazza cfSpace=int postmanFileKey=579f8660-01e6-4feb-8764-ec132432ebb1 threadfixId=10 ## Instruction: Use...
3e444e23c6130d778de514d1fb40f6d8416115e1
env/main.sh
env/main.sh
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 alias ls='ls -G' export EDITOR='nano -w'
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 alias ls='ls -G' export EDITOR='nano -w' export PATH="/usr/local/sbin:$PATH"
Fix /usr/local/sbin not being in path
Fix /usr/local/sbin not being in path
Shell
mit
jponge/dotfiles,jponge/dotfiles
shell
## Code Before: export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 alias ls='ls -G' export EDITOR='nano -w' ## Instruction: Fix /usr/local/sbin not being in path ## Code After: export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 alias ls='ls -G' export EDITOR='nano -w' export PATH="/usr/local/sbin:$PATH"
55af2016102ec16a4ec3878f45306e3ac4d520e6
qingcloud/cli/iaas_client/actions/instance/reset_instances.py
qingcloud/cli/iaas_client/actions/instance/reset_instances.py
from qingcloud.cli.misc.utils import explode_array from qingcloud.cli.iaas_client.actions.base import BaseAction class ResetInstancesAction(BaseAction): action = 'ResetInstances' command = 'reset-instances' usage = '%(prog)s -i "instance_id, ..." [-f <conf_file>]' @classmethod def add_ext_argum...
from qingcloud.cli.misc.utils import explode_array from qingcloud.cli.iaas_client.actions.base import BaseAction class ResetInstancesAction(BaseAction): action = 'ResetInstances' command = 'reset-instances' usage = '%(prog)s -i "instance_id, ..." [-f <conf_file> -m <login_mode> -p <login_passwd> -k <log...
Add login mode to reset-instances
Add login mode to reset-instances
Python
apache-2.0
yunify/qingcloud-cli
python
## Code Before: from qingcloud.cli.misc.utils import explode_array from qingcloud.cli.iaas_client.actions.base import BaseAction class ResetInstancesAction(BaseAction): action = 'ResetInstances' command = 'reset-instances' usage = '%(prog)s -i "instance_id, ..." [-f <conf_file>]' @classmethod d...
e5990b725c3d0232a52ee13d3f52b2332edfe95d
README.md
README.md
Pimotion ======== Pimotion is a motion detector application that runs on the Raspberry PI. It captures snapshots of movement and uploads the montage image to an [M2X](https://m2x.att.com) feed. ### Package Dependencies ``` numpy==1.6.2 PIL==1.1.7 requests==2.4.3 picamera==1.8 m2x==0.3 ``` ### Installation Installa...
Pimotion ======== Pimotion is a motion detector application that runs on the Raspberry PI. It captures snapshots of movement and uploads the montage image to an [M2X](https://m2x.att.com) feed. ### Package Dependencies ``` numpy==1.6.2 PIL==1.1.7 requests==2.4.3 picamera==1.8 m2x==0.3 ``` ### Installation Installa...
Update Readme to include image
Update Readme to include image
Markdown
mit
adaofeliz/pimotion,citrusbyte/pimotion
markdown
## Code Before: Pimotion ======== Pimotion is a motion detector application that runs on the Raspberry PI. It captures snapshots of movement and uploads the montage image to an [M2X](https://m2x.att.com) feed. ### Package Dependencies ``` numpy==1.6.2 PIL==1.1.7 requests==2.4.3 picamera==1.8 m2x==0.3 ``` ### Instal...
36f5cdc6ebbcd5d82bdc6a94931cc6900a58440d
.travis.yml
.travis.yml
language: android jdk: oraclejdk8 sudo: false os: - linux before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ - $HOME/.gradle/caches/3.1 - $HOME/.gradle/daemon - $HOME/.gradle/native - $HOME/.gradle/wrap...
language: android jdk: oraclejdk8 sudo: false os: - linux before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ - $HOME/.gradle/caches/3.1 - $HOME/.gradle/daemon - $HOME/.gradle/native - $HOME/.gradle/wrap...
Add Travis CI bot for Telegram for notifications
Add Travis CI bot for Telegram for notifications
YAML
apache-2.0
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
yaml
## Code Before: language: android jdk: oraclejdk8 sudo: false os: - linux before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ - $HOME/.gradle/caches/3.1 - $HOME/.gradle/daemon - $HOME/.gradle/native - $H...
165672fa0d648d5ac7bbf9f3123b51c5616ab03b
index.html
index.html
<!DOCTYPE html> <html> <head> <title>Liverpool FC</title> </head> <body> <header> <nav> <a href="index.html">Home</a> <a href="anfield.html">Anfield</a> <a href="players.html">Legendary Players</a> <a href="manager.html">Current Manager</a> </nav> </header> <h1>This is a webs...
<!DOCTYPE html> <html> <head> <title>Liverpool FC</title> </head> <body> <header> <nav> <a href="index.html">Home</a> <a href="anfield.html">Anfield</a> <a href="players.html">Legendary Players</a> <a href="manager.html">Current Manager</a> </nav> </header> <section> <h1...
Add facts in unordered list about LFC
Add facts in unordered list about LFC
HTML
mit
blakeynwa/blakeynwa.github.io
html
## Code Before: <!DOCTYPE html> <html> <head> <title>Liverpool FC</title> </head> <body> <header> <nav> <a href="index.html">Home</a> <a href="anfield.html">Anfield</a> <a href="players.html">Legendary Players</a> <a href="manager.html">Current Manager</a> </nav> </header> <h...
b01940ff00cb9eec5e5e7da9caecba8940b851ec
frontend/modules/faq/js/faq.js
frontend/modules/faq/js/faq.js
/** * Interaction for the faq module * * @author Annelies Van Extergem <annelies@netlash.com> * @author Jelmer Snoeck <jelmer.snoeck@netlash.com> * @author Thomas Deceuninck <thomas@fronto.be> */ jsFrontend.faq = { // init, something like a constructor init: function() { if($('#faqFeedbackForm').length > 0) ...
/** * Interaction for the faq module * * @author Annelies Van Extergem <annelies@netlash.com> * @author Jelmer Snoeck <jelmer.snoeck@netlash.com> * @author Thomas Deceuninck <thomas@fronto.be> */ jsFrontend.faq = { // init, something like a constructor init: function() { if($('#faqFeedbackForm').length > 0) ...
Add the required-attribute when no is selected.
FAQ: Add the required-attribute when no is selected.
JavaScript
mit
bartdc/forkcms,jacob-v-dam/forkcms,matthiasmullie/forkcms,sumocoders/forkcms,vytenizs/forkcms,jessedobbelaere/forkcms,ocpyosep78/forkcms,jonasdekeukelaere/forkcms,jeroendesloovere/forkcms,sumocoders/forkcms,Thijzer/forkcms,vytsci/forkcms,ikoene/forkcms,Katrienvh/forkcms,WouterSioen/forkcms,jonasgoderis/jonaz,jeroendesl...
javascript
## Code Before: /** * Interaction for the faq module * * @author Annelies Van Extergem <annelies@netlash.com> * @author Jelmer Snoeck <jelmer.snoeck@netlash.com> * @author Thomas Deceuninck <thomas@fronto.be> */ jsFrontend.faq = { // init, something like a constructor init: function() { if($('#faqFeedbackFor...
edac8b14beddb97d9897b3078b27abb7a7edd458
lib/toy_robot_simulator/robot.rb
lib/toy_robot_simulator/robot.rb
require 'forwardable' class Robot extend Forwardable def_delegator :placement, :update!, :place def_delegator :placement, :report def initialize(args) @placement = args[:placement] end def move self.placement = placement.adjacent end def right self.placement = placement.rotate!(90) en...
require 'forwardable' class Robot extend Forwardable def_delegator :placement, :report def_delegator :placement, :update, :place def_delegator :placement, :advance, :move def initialize(args) @placement = args[:placement] end def right placement.rotate(90) end def left placement.rotat...
Rewrite Robot to pass RobotTest
Rewrite Robot to pass RobotTest
Ruby
unlicense
matiasanaya/toy-robot-simulator
ruby
## Code Before: require 'forwardable' class Robot extend Forwardable def_delegator :placement, :update!, :place def_delegator :placement, :report def initialize(args) @placement = args[:placement] end def move self.placement = placement.adjacent end def right self.placement = placement....
be139785ee1b3d8fe4ca35f8f019acb350301213
src/startup/test/startup-spec.js
src/startup/test/startup-spec.js
global.navigator = {platform: 'Mac'}; global.window = { location: {hash: ''} }; global.localStorage = { getItem: function() {} }; import assert from '../../_test-helper/assert'; import {startUp} from '../startup'; const noop = function() {}; describe('start up', () => { it('remove kata from the hash', () => { ...
global.navigator = {platform: 'Mac'}; global.window = { location: {hash: ''} }; global.localStorage = { getItem: function() {} }; import assert from '../../_test-helper/assert'; import {startUp} from '../startup'; const noop = function() {}; describe('start up', function() { it('remove kata from the hash', ()...
Test getting the code from localstorage.
Test getting the code from localstorage.
JavaScript
mit
tddbin/tddbin-frontend,tddbin/tddbin-frontend,tddbin/tddbin-frontend
javascript
## Code Before: global.navigator = {platform: 'Mac'}; global.window = { location: {hash: ''} }; global.localStorage = { getItem: function() {} }; import assert from '../../_test-helper/assert'; import {startUp} from '../startup'; const noop = function() {}; describe('start up', () => { it('remove kata from the...
0eecdc0441b69f25cceaa06c870d357123a8d503
README.md
README.md
A .Net web service to add a comment to a Trello card when committing from Git. http://www.nuget.org/packages/TrelloNet/ https://github.com/dillenmeister/Trello.NET/wiki/Examples
A .Net web service to add a comment to a Trello card when committing from Git. http://www.nuget.org/packages/TrelloNet/ https://github.com/dillenmeister/Trello.NET/wiki/Examples http://trelloworld.azurewebsites.net/
Add the url for the current deployment location
Add the url for the current deployment location
Markdown
mit
jquintus/TrelloWorld,jquintus/TrelloWorld
markdown
## Code Before: A .Net web service to add a comment to a Trello card when committing from Git. http://www.nuget.org/packages/TrelloNet/ https://github.com/dillenmeister/Trello.NET/wiki/Examples ## Instruction: Add the url for the current deployment location ## Code After: A .Net web service to add a comment to a ...
224773dfaf6fb2facfa7ed7e5473e0361d936187
app/android/Sensorama/app/src/main/java/com/barvoy/sensorama/SRAPIPerms.java
app/android/Sensorama/app/src/main/java/com/barvoy/sensorama/SRAPIPerms.java
// Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com> // All rights reserved. package com.barvoy.sensorama; public class SRAPIPerms { public static final String parseAPIID = "PARSE_API_ID"; public static final String parseCLIID = "PARSE_CLIENT_ID"; }
// Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com> // All rights reserved. package com.barvoy.sensorama; public class SRAPIPerms { public static final String parseAPIID = "UNUSED_PARSE_API_ID"; public static final String parseCLIID = "UNUSED_PARSE_CLIENT_ID"; }
Mark this file as unused for now.
Mark this file as unused for now.
Java
bsd-2-clause
wkoszek/sensorama,wkoszek/sensorama
java
## Code Before: // Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com> // All rights reserved. package com.barvoy.sensorama; public class SRAPIPerms { public static final String parseAPIID = "PARSE_API_ID"; public static final String parseCLIID = "PARSE_CLIENT_ID"; } ## Instruction: Mark this fil...
3c88bb4174f193e1788525f52ad915710c305280
core/templates/index.html
core/templates/index.html
{% extends 'base.html' %} {% block content %} <h1> Welcome! </h1> <a href="/admin">Admin page</a> <a href="{% url 'core:logout' %}">logout</a> {% endblock %}
{% extends 'base.html' %} {% block content %} <h1> Welcome! </h1> <a href="{% url 'admin:index' %}">Admin page</a> <a href="{% url 'core:logout' %}">logout</a> {% endblock %}
Fix static admin site href
Fix static admin site href
HTML
mit
joshsamara/game-website,joshsamara/game-website,joshsamara/game-website
html
## Code Before: {% extends 'base.html' %} {% block content %} <h1> Welcome! </h1> <a href="/admin">Admin page</a> <a href="{% url 'core:logout' %}">logout</a> {% endblock %} ## Instruction: Fix static admin site href ## Code After: {% extends 'base.html' %} {% block content %} <h1> Welcome! </h1> <a href="{% ur...
b763da63755a8fbdc8647069d1bda97e557d0184
src/variantmap.cpp
src/variantmap.cpp
namespace MolCore { // === VariantMap ========================================================== // /// \class VariantMap /// \brief The VariantMap class provides a map between string keys /// and variant values. // --- Construction and Destruction ---------------------------------------- // /// Creates a new...
namespace MolCore { // === VariantMap ========================================================== // /// \class VariantMap /// \brief The VariantMap class provides a map between string keys /// and variant values. // --- Construction and Destruction ---------------------------------------- // /// Creates a new...
Remove the usage of non-portable std::map::at() from VariantMap
Remove the usage of non-portable std::map::at() from VariantMap This removes the usage of the non-portable std::map::at() method in the VariantMap::value() method. This fixes a compilation error on windows. Change-Id: Ifb5947af016f4f4e773a9a9721b979bea247b6bb
C++
bsd-3-clause
cjh1/mongochemweb-avogadrolibs,cjh1/mongochemweb-avogadrolibs,ghutchis/avogadrolibs,OpenChemistry/avogadrolibs,ghutchis/avogadrolibs,wadejong/avogadrolibs,qust113/molcore,OpenChemistry/avogadrolibs,wadejong/avogadrolibs,OpenChemistry/avogadrolibs,cjh1/mongochemweb-avogadrolibs,wadejong/avogadrolibs,qust113/molcore,ghut...
c++
## Code Before: namespace MolCore { // === VariantMap ========================================================== // /// \class VariantMap /// \brief The VariantMap class provides a map between string keys /// and variant values. // --- Construction and Destruction ---------------------------------------- // /...
0474387bbe5e081df95fe6a5bb53b5c7b42ad501
images/bazel/variants.yaml
images/bazel/variants.yaml
variants: 2.2.0-from-0.25.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 2.2.0-from-0.23.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.23.2
variants: 2.2.0-from-0.25.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 2.2.0-from-0.23.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.23.2 test-infra: NEW_VERSION: 2.2.0 OLD_VERSION: 2.0.0
Create a test-infra variant of bazel.
Create a test-infra variant of bazel. This image will install the current and next version of bazel we plan to use in test-infra. By putting both these versions in the same image, we can configure jobs to use .bazelversion and safely upgrade from one version to the next via a PR.
YAML
apache-2.0
BenTheElder/test-infra,cjwagner/test-infra,michelle192837/test-infra,jessfraz/test-infra,kubernetes/test-infra,brahmaroutu/test-infra,monopole/test-infra,ixdy/kubernetes-test-infra,fejta/test-infra,cblecker/test-infra,cblecker/test-infra,cjwagner/test-infra,pwittrock/test-infra,monopole/test-infra,dims/test-infra,jessf...
yaml
## Code Before: variants: 2.2.0-from-0.25.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.25.2 2.2.0-from-0.23.2: NEW_VERSION: 2.2.0 OLD_VERSION: 0.23.2 ## Instruction: Create a test-infra variant of bazel. This image will install the current and next version of bazel we plan to use in test-infra. By putting...
3a52cea2a43fd9b21c093e77f1458c89cc3bb639
AUTHORS.rst
AUTHORS.rst
- Carl Meyer <carl@dirtcircle.com> - Chris Beaven <smileychris@gmail.com> - Markus Kaiserswerth <github@sensun.org> - Daniel Roschka <danielroschka@phoenitydawn.de> - Jan Van Bruggen <jancvanbruggen@gmail.com> - Adam Taylor <ataylor32@gmail.com>
- Carl Meyer <carl@dirtcircle.com> - Chris Beaven <smileychris@gmail.com> - Markus Kaiserswerth <github@sensun.org> - Daniel Roschka <danielroschka@phoenitydawn.de> - Jan Van Bruggen <jancvanbruggen@gmail.com> - Adam Taylor <ataylor32@gmail.com> - Piotr Frankowski
Add Piotr Frankowski to the authors
Add Piotr Frankowski to the authors
reStructuredText
bsd-3-clause
Dunedan/django-lockdown,Dunedan/django-lockdown
restructuredtext
## Code Before: - Carl Meyer <carl@dirtcircle.com> - Chris Beaven <smileychris@gmail.com> - Markus Kaiserswerth <github@sensun.org> - Daniel Roschka <danielroschka@phoenitydawn.de> - Jan Van Bruggen <jancvanbruggen@gmail.com> - Adam Taylor <ataylor32@gmail.com> ## Instruction: Add Piotr Frankowski to the authors ## C...
b65acbc2676e1d60b37ad6233733ee3a3d4c0aed
bower.json
bower.json
{ "name": "hull-js", "version": "develop", "main": "./lib/hull.js", "dependencies": { "jquery": "1.9.1", "aura": "git://github.com/hull/aura.git#73b4458216588f0b5a48b7b6eb6b2a9d8ec66415", "backbone": "0.9.9", "easyXDM": "2.4.17", "require-handlebars-plugin": "0.4.0", "analytics": "hull/a...
{ "name": "hull-js", "version": "develop", "main": "./lib/hull.js", "dependencies": { "jquery": "1.9.1", "aura": "git://github.com/hull/aura.git#0.9.0-pre.1", "backbone": "0.9.9", "easyXDM": "2.4.17", "require-handlebars-plugin": "0.4.0", "analytics": "hull/analytics#0.8.3", "base64"...
Fix semver validation of aura tag
Fix semver validation of aura tag
JSON
mit
hull/hull-js,hull/hull-js,hull/hull-js
json
## Code Before: { "name": "hull-js", "version": "develop", "main": "./lib/hull.js", "dependencies": { "jquery": "1.9.1", "aura": "git://github.com/hull/aura.git#73b4458216588f0b5a48b7b6eb6b2a9d8ec66415", "backbone": "0.9.9", "easyXDM": "2.4.17", "require-handlebars-plugin": "0.4.0", "ana...
1e3a9b2452f0c878bff1591cb1149e65da306d38
README.rst
README.rst
aiodcard ============== Dcard crawler using asyncio(coroutine) Feature ------- | Get article list and content using coroutine Dependencies ------------ * Python 3.3 and :mod:`asyncio` or Python 3.4+ * aiohttp Installation ------------ :: python setup.py install or :: pip install aiodcard Example ----...
aiodcard ============== [![Build Status](https://travis-ci.org/carlcarl/aiodcard.svg?branch=master)](https://travis-ci.org/carlcarl/aiodcard) [![Coverage Status](https://coveralls.io/repos/carlcarl/aiodcard/badge.svg?branch=master&service=github)](https://coveralls.io/github/carlcarl/aiodcard?branch=master) Dcard cra...
Add travis and coveralls badge
Add travis and coveralls badge
reStructuredText
mit
carlcarl/aiodcard
restructuredtext
## Code Before: aiodcard ============== Dcard crawler using asyncio(coroutine) Feature ------- | Get article list and content using coroutine Dependencies ------------ * Python 3.3 and :mod:`asyncio` or Python 3.4+ * aiohttp Installation ------------ :: python setup.py install or :: pip install aiodcar...
c0092683844d04e9f4ca9ebe73037f1209bd5231
install/install_functions.php
install/install_functions.php
<?php if(!defined('IN_INSTALL')) { die(); } function generateRandomHash($Length) { $Signs = '0123456789abcdefghijklmnoprstuwxyzABCDEFGHIJKLMNOPRSTUWXYZ_'; $SignsLength = strlen($Signs) - 1; $Return = ''; for($i = 0; $i < $Length; ++$i) { $Return .= $Signs[mt_rand(0, $SignsLength)]; ...
<?php if(!defined('IN_INSTALL')) { die(); } require_once('../utils/migrator/autoload.php'); function generateRandomHash($Length) { $Signs = '0123456789abcdefghijklmnoprstuwxyzABCDEFGHIJKLMNOPRSTUWXYZ_'; $SignsLength = strlen($Signs) - 1; $Return = ''; for($i = 0; $i < $Length; ++$i) { ...
Create a helper function which saves the most recent migration ID as the latest applied one
Create a helper function which saves the most recent migration ID as the latest applied one
PHP
agpl-3.0
mdziekon/UniEngine,mdziekon/UniEngine,mdziekon/UniEngine
php
## Code Before: <?php if(!defined('IN_INSTALL')) { die(); } function generateRandomHash($Length) { $Signs = '0123456789abcdefghijklmnoprstuwxyzABCDEFGHIJKLMNOPRSTUWXYZ_'; $SignsLength = strlen($Signs) - 1; $Return = ''; for($i = 0; $i < $Length; ++$i) { $Return .= $Signs[mt_rand(0, $S...
c432bf5d71772c22a7e170bff49a67b63a266175
README.md
README.md
Empty
This site is built using [middleman](https://middlemanapp.com/) Running the server ``` bundle exec middleman ``` Deploy to Github Pages ``` middleman deploy ```
Add basic middleman instructions to readme.md
Add basic middleman instructions to readme.md
Markdown
mit
sgrif/diesel.rs-website,sgrif/diesel.rs-website,sgrif/diesel.rs-website
markdown
## Code Before: Empty ## Instruction: Add basic middleman instructions to readme.md ## Code After: This site is built using [middleman](https://middlemanapp.com/) Running the server ``` bundle exec middleman ``` Deploy to Github Pages ``` middleman deploy ```
b1b9965dccbef3d00c1a7ece2a53b0a84dbd83b6
README.md
README.md
Description =========== This cookbook primary purpose is to create a switch overlay on a vanilla Debian to ease Chef cookbook development. Requirements ============ Debian Wheezy Attributes ========== Usage ===== include_recipe "cumulus-linux::overlay"
Description =========== This cookbook primary purpose is to create a switch overlay on a vanilla Debian and if deployed on the production switch build the correct Port configurations needed for Cumulus. Requirements ============ ## Testing Acess to Debian Wheezy box ## Production Access to Cumulus HCL switches (Acc...
Include examples and update requirements
Include examples and update requirements
Markdown
apache-2.0
ooyala/cumulus-linux-cookbook,ooyala/cumulus-linux-cookbook,ooyala/cumulus-linux-cookbook
markdown
## Code Before: Description =========== This cookbook primary purpose is to create a switch overlay on a vanilla Debian to ease Chef cookbook development. Requirements ============ Debian Wheezy Attributes ========== Usage ===== include_recipe "cumulus-linux::overlay" ## Instruction: Include examples and update ...
724625365cdc62348fc747e6112d4e27177e0493
lib/domgen.rb
lib/domgen.rb
require 'erb' require 'fileutils' require 'logger' require 'domgen/orderedhash' # Core components require 'domgen/model' require 'domgen/template' require 'domgen/render_context' require 'domgen/generator' require 'domgen/helper' # Java require 'domgen/java/model' # Ruby require 'domgen/ruby/model' # SQL require '...
require 'erb' require 'fileutils' require 'logger' require 'domgen/orderedhash' # Core components require 'domgen/model' require 'domgen/template' require 'domgen/render_context' require 'domgen/generator' require 'domgen/helper' # Java require 'domgen/java/model' # Ruby require 'domgen/ruby/model' require 'domgen/...
Make sure the ruby helper is required
Make sure the ruby helper is required
Ruby
apache-2.0
william-ml-leslie/domgen,icaughley/domgen,icaughley/domgen,realityforge/domgen,realityforge/domgen
ruby
## Code Before: require 'erb' require 'fileutils' require 'logger' require 'domgen/orderedhash' # Core components require 'domgen/model' require 'domgen/template' require 'domgen/render_context' require 'domgen/generator' require 'domgen/helper' # Java require 'domgen/java/model' # Ruby require 'domgen/ruby/model' ...
63caa3b06772244ca925c0f1c172bd7e9332617b
packages/la/lazy-hash.yaml
packages/la/lazy-hash.yaml
homepage: '' changelog-type: '' hash: a362397e6b2094047e696bb63a2f5160f5d5233bda7ac620233ed1d6165d8648 test-bench-deps: {} maintainer: (@) jsag $ hvl.no synopsis: Identifiers for not-yet-computed values changelog: '' basic-deps: base: ! '>=4.8 && <4.11' vector-space: ! '>=0.9 && <0.18' tagged: -any hashable: ! ...
homepage: '' changelog-type: '' hash: 1c937c16018eaf3d215a560ab744f2c1055e065cfa61058f684cb0a8a1426450 test-bench-deps: {} maintainer: (@) jsag $ hvl.no synopsis: Identifiers for not-yet-computed values changelog: '' basic-deps: base: ! '>=4.8 && <4.13' vector-space: ! '>=0.9 && <0.18' tagged: -any hashable: ! ...
Update from Hackage at 2019-09-18T13:26:53Z
Update from Hackage at 2019-09-18T13:26:53Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: a362397e6b2094047e696bb63a2f5160f5d5233bda7ac620233ed1d6165d8648 test-bench-deps: {} maintainer: (@) jsag $ hvl.no synopsis: Identifiers for not-yet-computed values changelog: '' basic-deps: base: ! '>=4.8 && <4.11' vector-space: ! '>=0.9 && <0.18' tagged: -an...
02512a8810ee807d47cd8bfe1e151c859ea56252
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required (VERSION 2.6) project (assimp2xml3d) set(ASSIMP2XML3D_VERSION_MAJOR, 0) set(ASSIMP2XML3D_VERSION_MINOR, 1) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules") set ( ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "Dis...
cmake_minimum_required (VERSION 2.6) project (assimp2xml3d) ########## Version number set(ASSIMP2XML3D_VERSION_MAJOR, 0) set(ASSIMP2XML3D_VERSION_MINOR, 1) ########## Set cmake variables set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") set(CMAKE_INSTALL_BINDIR "${CMAKE_CURRENT_SOURCE_DIR}/bin") s...
Add TinyXML-2 to cmake script
Add TinyXML-2 to cmake script
Text
bsd-3-clause
csvurt/assimp2xml3d
text
## Code Before: cmake_minimum_required (VERSION 2.6) project (assimp2xml3d) set(ASSIMP2XML3D_VERSION_MAJOR, 0) set(ASSIMP2XML3D_VERSION_MINOR, 1) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules") set ( ASSIMP_BUILD_ASSIMP_TOOLS OFF ...
637b33f04f7b6570d07971b9fc7ac18abe4a3c46
CHANGELOG.md
CHANGELOG.md
The very first version actually used in production.
This release aims to make getting started with Kafka-Pixy easier. * [#39](https://github.com/mailgun/kafka-pixy/issues/39) First time consume from a group may skip messages. * [#40](https://github.com/mailgun/kafka-pixy/issues/40) Make output of `GET /topics/<>/consumers` easier to read. * By default services lis...
Update the change log for v0.9.0
Update the change log for v0.9.0
Markdown
apache-2.0
mailgun/kafka-pixy,mailgun/kafka-pixy,mailgun/kafka-pixy
markdown
## Code Before: The very first version actually used in production. ## Instruction: Update the change log for v0.9.0 ## Code After: This release aims to make getting started with Kafka-Pixy easier. * [#39](https://github.com/mailgun/kafka-pixy/issues/39) First time consume from a group may skip messages. * [#40]...
5fb08b0ba198f3709a3543549223093826f64e93
src/server/activitypub/publickey.ts
src/server/activitypub/publickey.ts
import * as express from 'express'; import context from '../../remote/activitypub/renderer/context'; import render from '../../remote/activitypub/renderer/key'; import User from '../../models/user'; const app = express.Router(); app.get('/users/:user/publickey', async (req, res) => { const userId = req.params.user; ...
import * as express from 'express'; import context from '../../remote/activitypub/renderer/context'; import render from '../../remote/activitypub/renderer/key'; import User, { isLocalUser } from '../../models/user'; const app = express.Router(); app.get('/users/:user/publickey', async (req, res) => { const userId = ...
Check whether is local user
Check whether is local user
TypeScript
mit
Tosuke/misskey,syuilo/Misskey,syuilo/Misskey,ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,Tosuke/misskey,ha-dai/Misskey
typescript
## Code Before: import * as express from 'express'; import context from '../../remote/activitypub/renderer/context'; import render from '../../remote/activitypub/renderer/key'; import User from '../../models/user'; const app = express.Router(); app.get('/users/:user/publickey', async (req, res) => { const userId = r...
3642fdd03b8eebfdb99aed50e56c5b9026e7429f
config/routes.rb
config/routes.rb
Rails.application.routes.draw do require 'sidekiq/web' devise_for :users namespace :api do namespace :v1 do mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks] resources :users, only: [:show] end end # map views get 'maps/fires' => 'maps#fires' get 'maps/win...
Rails.application.routes.draw do require 'sidekiq/web' devise_for :users namespace :api do namespace :v1 do mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks] end end resources :users, only: [:show] # map views get 'maps/fires' => 'maps#fires' get 'maps/windy'...
Remove api namespace from user resources path.
Remove api namespace from user resources path.
Ruby
mit
ForestGuardian/ForestGuardianBackend,ForestGuardian/ForestGuardianBackend,ForestGuardian/ForestGuardianBackend,ForestGuardian/ForestGuardianBackend,ForestGuardian/ForestGuardianBackend
ruby
## Code Before: Rails.application.routes.draw do require 'sidekiq/web' devise_for :users namespace :api do namespace :v1 do mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks] resources :users, only: [:show] end end # map views get 'maps/fires' => 'maps#fires'...
985598bbaf9e35f33d3178eb240c60b4115250aa
README.md
README.md
cd /opt <br /> wget https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> chmod +x /opt/debian8setup.sh <br /> ./debian8setup.sh #Debian 8 setup: https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> <br /> Botnet iplist: <br /> https://raw.githubus...
cd /opt <br /> wget https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> chmod +x /opt/debian8setup.sh <br /> ./debian8setup.sh #Debian 8 setup: https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> <br /> Botnet iplist: <br /> https://raw.githubus...
Add url to jenkins setup script
Add url to jenkins setup script
Markdown
mit
antonchernik/lnmp-debian
markdown
## Code Before: cd /opt <br /> wget https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> chmod +x /opt/debian8setup.sh <br /> ./debian8setup.sh #Debian 8 setup: https://raw.githubusercontent.com/antonchernik/lnmp-debian/master/debian8setup.sh <br /> <br /> Botnet iplist: <br /> http...
8233abab6084db39df064b87d256fd0caffecb89
simpy/test/test_simulation.py
simpy/test/test_simulation.py
from simpy import Simulation, InterruptedException def test_simple_process(): def pem(ctx, result): while True: result.append(ctx.now) yield ctx.wait(1) result = [] Simulation(pem, result).simulate(until=4) assert result == [0, 1, 2, 3] def test_interrupt(): def p...
from simpy import Simulation, InterruptedException def test_simple_process(): def pem(ctx, result): while True: result.append(ctx.now) yield ctx.wait(1) result = [] Simulation(pem, result).simulate(until=4) assert result == [0, 1, 2, 3] def test_interrupt(): def r...
Define subprocesses in the context of the root process. Maybe this is more readable?
Define subprocesses in the context of the root process. Maybe this is more readable?
Python
mit
Uzere/uSim
python
## Code Before: from simpy import Simulation, InterruptedException def test_simple_process(): def pem(ctx, result): while True: result.append(ctx.now) yield ctx.wait(1) result = [] Simulation(pem, result).simulate(until=4) assert result == [0, 1, 2, 3] def test_interr...
df264c490f8600c5047db328c9388c1d07d4cbd5
setup.py
setup.py
import distutils.core # Uploading to PyPI # ================= # $ python setup.py register -r pypi # $ python setup.py sdist upload -r pypi version = '0.0' distutils.core.setup( name='vecrec', version=version, author='Kale Kundert and Alex Mitchell', packages=['vecrec'], url='h...
import distutils.core # Uploading to PyPI # ================= # $ python setup.py register -r pypi # $ python setup.py sdist upload -r pypi version = '0.0' distutils.core.setup( name='vecrec', version=version, author='Kale Kundert and Alex Mitchell', url='https://github.com/kxgames/vec...
Add finalexam and coverage as dependencies.
Add finalexam and coverage as dependencies.
Python
mit
kxgames/vecrec,kxgames/vecrec
python
## Code Before: import distutils.core # Uploading to PyPI # ================= # $ python setup.py register -r pypi # $ python setup.py sdist upload -r pypi version = '0.0' distutils.core.setup( name='vecrec', version=version, author='Kale Kundert and Alex Mitchell', packages=['vecrec']...
1c8f4060c48c394c16fd4a54128ec18549a125f3
binary-string.js
binary-string.js
// Returns binary string of given decimal number function decimalToBinary(num) { if (num >= 1) { if (num % 2) { // if decimal number is not divisible by 2, then recursively return proceeding binary of the digit minus 1, and then add 1 for the leftover 1 digit return decimalToBinary((num - 1)/2) + 1; } } }
// Returns binary string of given decimal number function decimalToBinary(num) { if (num >= 1) { if (num % 2) { // if decimal number is not divisible by 2, then recursively return proceeding binary of the digit minus 1, and then add 1 for the leftover 1 digit return decimalToBinary((num - 1)/2) + 1; } else { ...
Write what to do if the decimal number we want to return the binary string of is greater than or equal to 1
Write what to do if the decimal number we want to return the binary string of is greater than or equal to 1
JavaScript
mit
derekmpham/interview-prep,derekmpham/interview-prep
javascript
## Code Before: // Returns binary string of given decimal number function decimalToBinary(num) { if (num >= 1) { if (num % 2) { // if decimal number is not divisible by 2, then recursively return proceeding binary of the digit minus 1, and then add 1 for the leftover 1 digit return decimalToBinary((num - 1)/2) +...
c83dbde61b7803933aa819e10068717738c96e2d
lib/dry/transaction/step.rb
lib/dry/transaction/step.rb
require "wisper" require "dry/transaction/step_failure" module Dry module Transaction # @api private class Step include Wisper::Publisher include Dry::Monads::Either::Mixin attr_reader :step_adapter attr_reader :step_name attr_reader :operation_name attr_reader :operation...
require "dry/monads/either" require "wisper" require "dry/transaction/step_failure" module Dry module Transaction # @api private class Step include Wisper::Publisher include Dry::Monads::Either::Mixin attr_reader :step_adapter attr_reader :step_name attr_reader :operation_name ...
Add missing require for dry-monads either
Add missing require for dry-monads either
Ruby
mit
icelab/call_sheet
ruby
## Code Before: require "wisper" require "dry/transaction/step_failure" module Dry module Transaction # @api private class Step include Wisper::Publisher include Dry::Monads::Either::Mixin attr_reader :step_adapter attr_reader :step_name attr_reader :operation_name attr_r...
bf7da73bfd6f44c93a4f25b8b818c57b7b05396a
recipes/modutils/modutils-cross_2.4.27.bb
recipes/modutils/modutils-cross_2.4.27.bb
SECTION = "base" require modutils_${PV}.bb PR = "r9" inherit cross S = "${WORKDIR}/modutils-${PV}" DEPENDS = "" PACKAGES = "" PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4" DEFAULT_PREFERENCE = "1" SRC_URI += "file://modutils-cross/module.h.diff" sbindir = "${prefix}/bin" EXTRA_OECO...
SECTION = "base" require modutils_${PV}.bb PR = "r9" inherit cross S = "${WORKDIR}/modutils-${PV}" DEPENDS = "" PACKAGES = "" PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4" DEFAULT_PREFERENCE = "1" SRC_URI += "file://modutils-cross/module.h.diff" sbindir = "${prefix}/bin" EXTRA_OECO...
Convert do_stage to do_install (from Poky)
modutils-cross: Convert do_stage to do_install (from Poky) Signed-off-by: Richard Purdie <a03894c799ea916bd571ce8f12ed88f6fb3400f7@linux.intel.com> Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
BitBake
mit
sampov2/audio-openembedded,sledz/oe,sledz/oe,JamesAng/goe,yyli/overo-oe,buglabs/oe-buglabs,sutajiokousagi/openembedded,JamesAng/oe,openembedded/openembedded,scottellis/overo-oe,sledz/oe,xifengchuo/openembedded,anguslees/openembedded-android,nx111/openembeded_openpli2.1_nx111,openembedded/openembedded,libo/openembedded,...
bitbake
## Code Before: SECTION = "base" require modutils_${PV}.bb PR = "r9" inherit cross S = "${WORKDIR}/modutils-${PV}" DEPENDS = "" PACKAGES = "" PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4" DEFAULT_PREFERENCE = "1" SRC_URI += "file://modutils-cross/module.h.diff" sbindir = "${prefix}/...
b4cacf5ed3e4bd98a693cddb2ba48674add19cb6
website/static/website/js/app.js
website/static/website/js/app.js
import React from "react"; import { Chance }from "chance"; import WriteMessage from "./components/WriteMessage"; import Messages from "./components/Messages"; export default class App extends React.Component { constructor(props) { super(props); this.state = { user: chance.name(), messages: [] } } compo...
import React from "react"; import { Chance }from "chance"; import WriteMessage from "./components/WriteMessage"; import Messages from "./components/Messages"; export default class App extends React.Component { constructor(props) { super(props); this.state = { user: chance.name(), messages: [], connected: fa...
Put a connected visual help
Put a connected visual help
JavaScript
mit
Frky/moon,Frky/moon,Frky/moon,Frky/moon,Frky/moon
javascript
## Code Before: import React from "react"; import { Chance }from "chance"; import WriteMessage from "./components/WriteMessage"; import Messages from "./components/Messages"; export default class App extends React.Component { constructor(props) { super(props); this.state = { user: chance.name(), messages: [...
80ff95d64d4e26c1f22ac0c03f530ece96b753b0
api/spec/support/controller_hacks.rb
api/spec/support/controller_hacks.rb
require 'active_support/all' module ControllerHacks def api_get(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "GET") end def api_post(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "POST") end def api_put(action, params...
require 'active_support/all' module ControllerHacks def api_get(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "GET") end def api_post(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "POST") end def api_put(action, params...
Allow scoping of requests in tests by definition of a resource_scoping method (i.e. a let) in the API tests
Allow scoping of requests in tests by definition of a resource_scoping method (i.e. a let) in the API tests
Ruby
bsd-3-clause
NerdsvilleCEO/spree,moneyspyder/spree,pervino/spree,caiqinghua/spree,wolfieorama/spree,rakibulislam/spree,fahidnasir/spree,Kagetsuki/spree,Hawaiideveloper/shoppingcart,surfdome/spree,sfcgeorge/spree,Ropeney/spree,sunny2601/spree,CiscoCloud/spree,useiichi/spree,mleglise/spree,lsirivong/solidus,forkata/solidus,DarkoP/spr...
ruby
## Code Before: require 'active_support/all' module ControllerHacks def api_get(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "GET") end def api_post(action, params={}, session=nil, flash=nil) api_process(action, params, session, flash, "POST") end def api_pu...
722bd5f6636d448c7b95d636e99726a4c21d9c9f
src/components/datagrid.js
src/components/datagrid.js
var fs = require('fs'); module.exports = function (app) { app.config([ 'formioComponentsProvider', function(formioComponentsProvider) { formioComponentsProvider.register('datagrid', { title: 'Data Grid', template: 'formio/components/datagrid.html', settings: { input: t...
var fs = require('fs'); module.exports = function (app) { app.config([ 'formioComponentsProvider', function(formioComponentsProvider) { formioComponentsProvider.register('datagrid', { title: 'Data Grid', template: 'formio/components/datagrid.html', settings: { input: t...
Add tree to fix formio-util dependency.
Add tree to fix formio-util dependency.
JavaScript
mit
formio/ngFormio,Kelsus/ngFormio,Kelsus/ngFormio
javascript
## Code Before: var fs = require('fs'); module.exports = function (app) { app.config([ 'formioComponentsProvider', function(formioComponentsProvider) { formioComponentsProvider.register('datagrid', { title: 'Data Grid', template: 'formio/components/datagrid.html', settings: { ...
9acb36d0a54a4c132ea69ce8a1057ead3580f23b
.travis.yml
.travis.yml
before_install: gem install bundler -v 1.12.5 cache: bundler language: ruby notifications: email: false rvm: - 1.9.3 - 2.2.2 sudo: false
before_install: gem install bundler -v 1.12.5 cache: bundler gemfile: - gemfiles/faraday_0.8.gemfile - gemfiles/faraday_current.gemfile language: ruby notifications: email: false rvm: - 1.9.3 - 2.3.1 sudo: false
Use Ruby 2.3.1 and Appraisal gemfiles on Travis.
Use Ruby 2.3.1 and Appraisal gemfiles on Travis.
YAML
mit
envylabs/faraday-detailed_logger,envylabs/faraday-detailed_logger
yaml
## Code Before: before_install: gem install bundler -v 1.12.5 cache: bundler language: ruby notifications: email: false rvm: - 1.9.3 - 2.2.2 sudo: false ## Instruction: Use Ruby 2.3.1 and Appraisal gemfiles on Travis. ## Code After: before_install: gem install bundler -v 1.12.5 cache: bundler gemfile: - gemfi...
08dea674f14363d01ef35b2a23f957e4e97164f6
composer.json
composer.json
{ "name": "phparsenal/fastforward", "description": "fast-forward lets you remember, find and open your most used commands and folders.", "minimum-stability": "stable", "license": "MIT", "authors": [ { "name": "Marcel Voigt", "email": "mv@noch.so" } ], "autoload": { "psr-4": { ...
{ "name": "phparsenal/fastforward", "description": "fast-forward lets you remember, find and open your most used commands and folders.", "minimum-stability": "stable", "license": "MIT", "authors": [ { "name": "Marcel Voigt", "email": "mv@noch.so" } ], "autoload": { "psr-4": { ...
Add php-cs-fixer as dev requirement
Add php-cs-fixer as dev requirement
JSON
mit
phparsenal/fast-forward,nochso/fast-forward,nochso/fast-forward,phparsenal/fast-forward,natedrake/fast-forward,natedrake/fast-forward
json
## Code Before: { "name": "phparsenal/fastforward", "description": "fast-forward lets you remember, find and open your most used commands and folders.", "minimum-stability": "stable", "license": "MIT", "authors": [ { "name": "Marcel Voigt", "email": "mv@noch.so" } ], "autoload": { ...
222f2ee18c0255363ec01452fb9fd850c55d9b30
app.js
app.js
const express = require('express'); const hbs = require('hbs'); // instantiate Express.js const app = express(); // Tell Handlebars where to look for partials hbs.registerPartials(__dirname + '/views/partials'); // Set Handlebars as default templating engine app.set('view engine', 'hbs'); // app.use(express.static...
const express = require('express'); const hbs = require('hbs'); // instantiate Express.js const app = express(); // Tell Handlebars where to look for partials hbs.registerPartials(__dirname + '/views/partials'); // Set Handlebars as default templating engine app.set('view engine', 'hbs'); // app.use(express.static...
Add route for e-commerce site
Add route for e-commerce site
JavaScript
mit
dshaps10/full-stack-demo-site,dshaps10/full-stack-demo-site
javascript
## Code Before: const express = require('express'); const hbs = require('hbs'); // instantiate Express.js const app = express(); // Tell Handlebars where to look for partials hbs.registerPartials(__dirname + '/views/partials'); // Set Handlebars as default templating engine app.set('view engine', 'hbs'); // app.us...
7e00e65ad0e3d0d7692faba5084360f3599b148c
index.js
index.js
"use strong"; "use strict"; module.exports = function maybePromiseFactory(promiseConstructor) { return function maybePromise(f, ...args) { let result; try { result = f.apply(null, args); } catch(e) { return promiseConstructor.reject(e); } if(result instanceof promiseConstructor) { return result; ...
"use strong"; "use strict"; /** * Constructs a maybePromise function. * @param {class} promiseConstructor A Promise implementation (e.g. `Bluebird` or `Promise`) * @param {boolean} [useAnyThenable] If truthy, any Promise implementation is considered a promise; otherwise, * only instances of the `promiseConstructor...
Add useAnyThenable option; don't reject if a synchronous function for returning an Error
Add useAnyThenable option; don't reject if a synchronous function for returning an Error * The synchronous equivalent to rejecting a promise should really just be throwing an error. Returning an instanceof Error might not be a valid reason to reject a promise -- what if the method is `getValidationError`? * If integr...
JavaScript
isc
mmiller42/maybe-promise-factory,ludios/maybe-promise-factory
javascript
## Code Before: "use strong"; "use strict"; module.exports = function maybePromiseFactory(promiseConstructor) { return function maybePromise(f, ...args) { let result; try { result = f.apply(null, args); } catch(e) { return promiseConstructor.reject(e); } if(result instanceof promiseConstructor) { ...
6b0836ba4ab1138f52209675df193c923b592f72
run-json-jobs.sh
run-json-jobs.sh
set -e JSON_DIR=$1 CWL_PATH=`pwd`/cwl/bin # Must be absolute for f in $JSON_DIR/*.json; do PATH=$PATH:$CWL_PATH cwltool cwl/bigbed-workflow.cwl $f exit done
set -e JSON_DIR=$1 CWL_PATH=`pwd`/cwl/bin # Must be absolute OUTDIR=$2 for f in $JSON_DIR/*.json; do PATH=$PATH:$CWL_PATH cwltool --outdir $OUTDIR cwl/bigbed-workflow.cwl $f done
Add outdir to cwltool command, and remove exit after first job
Add outdir to cwltool command, and remove exit after first job
Shell
mit
Duke-GCB/TrackHubGenerator,Duke-GCB/TrackHubGenerator
shell
## Code Before: set -e JSON_DIR=$1 CWL_PATH=`pwd`/cwl/bin # Must be absolute for f in $JSON_DIR/*.json; do PATH=$PATH:$CWL_PATH cwltool cwl/bigbed-workflow.cwl $f exit done ## Instruction: Add outdir to cwltool command, and remove exit after first job ## Code After: set -e JSON_DIR=$1 CWL_PATH=`pwd`/cwl/bin # Mu...
24330a8929c793ed291cf05621c4c563f9bf15c2
README.md
README.md
django-gcm ========== [![Build Status](https://travis-ci.org/bogdal/django-gcm.png?branch=master)](https://travis-ci.org/bogdal/django-gcm) Google Cloud Messaging Server in Django Quickstart ------- Install the package via ``pip``: pip install django-gcm Add <code>gcm</code> to <code>INSTALLED_APPS</code> ...
django-gcm ========== [![Build Status](https://travis-ci.org/bogdal/django-gcm.png?branch=master)](https://travis-ci.org/bogdal/django-gcm) Google Cloud Messaging Server in Django Quickstart ------- Install the package via ``pip``: pip install django-gcm Add <code>gcm</code> to <code>INSTALLED_APPS</code> ...
Add info how to send messages
Add info how to send messages
Markdown
bsd-2-clause
bogdal/django-gcm,bogdal/django-gcm,johnofkorea/django-gcm,johnofkorea/django-gcm
markdown
## Code Before: django-gcm ========== [![Build Status](https://travis-ci.org/bogdal/django-gcm.png?branch=master)](https://travis-ci.org/bogdal/django-gcm) Google Cloud Messaging Server in Django Quickstart ------- Install the package via ``pip``: pip install django-gcm Add <code>gcm</code> to <code>INSTAL...
47a9fc6a34ebcb5744b80abdc600d54aa2a221ae
lib/headjs-rails/tag_helper.rb
lib/headjs-rails/tag_helper.rb
module Headjs module TagHelper def headjs_include_tag(*sources) keys = [] content_tag :script, { :type => Mime::JS }, false do "head.js( #{javascript_include_tag(*sources).scan(/src="([^"]+)"/).flatten.map { |src| key = URI.parse(src).path[%r{[^/]+\z}].gsub(/\.js$/,'').gsub(/\.m...
module Headjs module TagHelper def headjs_include_tag(*sources) content_tag :script, { :type => Mime::JS }, false do headjs_include_js(*sources) end end def headjs_include_js(*sources) keys = [] "head.js( #{javascript_include_tag(*sources).scan(/src="([^"]+)"/).flatten...
Refactor the tag stuff slightly to allow more custom loading.
Refactor the tag stuff slightly to allow more custom loading.
Ruby
mit
muitocomplicado/headjs-rails,muitocomplicado/headjs-rails
ruby
## Code Before: module Headjs module TagHelper def headjs_include_tag(*sources) keys = [] content_tag :script, { :type => Mime::JS }, false do "head.js( #{javascript_include_tag(*sources).scan(/src="([^"]+)"/).flatten.map { |src| key = URI.parse(src).path[%r{[^/]+\z}].gsub(/\.js...
d7d6819e728edff997c07c6191f882a61d30f219
setup.py
setup.py
from distutils.core import setup setup(name="taggert", version="1.0", author="Martijn Grendelman", author_email="m@rtijn.net", maintainer="Martijn Grendelman", maintainer_email="m@rtijn.net", description="GTK+ 3 geotagging application", long_description="Taggert is an easy-to-use program to geo-tag your photos...
from distutils.core import setup setup(name="taggert", version="1.0", author="Martijn Grendelman", author_email="m@rtijn.net", maintainer="Martijn Grendelman", maintainer_email="m@rtijn.net", description="GTK+ 3 geotagging application", long_description="Taggert is an easy-to-use program to geo-tag your photos...
Make sure to install gpx.xsd in data directory
Make sure to install gpx.xsd in data directory
Python
apache-2.0
tinuzz/taggert
python
## Code Before: from distutils.core import setup setup(name="taggert", version="1.0", author="Martijn Grendelman", author_email="m@rtijn.net", maintainer="Martijn Grendelman", maintainer_email="m@rtijn.net", description="GTK+ 3 geotagging application", long_description="Taggert is an easy-to-use program to geo...
6de49e658bb973edce30f9ba8111b30ff3ad4f28
README.md
README.md
Mario the Devpi Plumber ======================= Mario, the devpi-plumber, helps to automate and test large devpi installations. It offers a simple python commandline wrapper around the devpi client binary and utilities for using devpi in a test harness. Mario by Example: ----------------- Save the princess... ...
Mario the Devpi Plumber ======================= Mario, the devpi-plumber, helps to automate and test large devpi installations. It offers a simple python commandline wrapper around the devpi client binary and utilities for using devpi in a test harness. Mario by Example: ----------------- Among others, it can be use...
Add small example to readme.md
Add small example to readme.md
Markdown
bsd-3-clause
tylerdave/devpi-plumber
markdown
## Code Before: Mario the Devpi Plumber ======================= Mario, the devpi-plumber, helps to automate and test large devpi installations. It offers a simple python commandline wrapper around the devpi client binary and utilities for using devpi in a test harness. Mario by Example: ----------------- Save th...
29387276498dd86c9cbe998fa8fc92583d739bf9
admin/views/Redirect/batch.php
admin/views/Redirect/batch.php
<?=form_open_multipart()?> <p> <strong>1. CSV File</strong> </p> <p> This should be a *.csv file which contains 3 columns: old URL, new URL, type of redirect (301 or 302). </p> <p> <input type="file" name="upload" style="border: 1px solid #CCC;padding: 1rem; width: 100%;margin-bottom: 1rem"> </p> <p> <s...
<?=form_open_multipart()?> <p> <strong>1. CSV File</strong> </p> <p> This should be a *.csv file which contains 3 columns: old URL, new URL, type of redirect (301 or 302). </p> <p> <input type="file" name="upload" style="border: 1px solid #CCC;padding: 1rem; width: 100%;margin-bottom: 1rem"> </p> <p> <s...
Support for floating admin controls
Support for floating admin controls
PHP
mit
nailsapp/module-redirect
php
## Code Before: <?=form_open_multipart()?> <p> <strong>1. CSV File</strong> </p> <p> This should be a *.csv file which contains 3 columns: old URL, new URL, type of redirect (301 or 302). </p> <p> <input type="file" name="upload" style="border: 1px solid #CCC;padding: 1rem; width: 100%;margin-bottom: 1rem">...
06a94147d8432f0afa505e137918cc23f84eb676
lib/input-files/app.js
lib/input-files/app.js
"use strict"; module.exports = { "name" : prompt('name', name), "version" : prompt('version', "0.0.0"), "description" : prompt("description"), "private" : true, "main" : prompt("main", "app.js"), "dependencies" : prompt("dependencies", "express: 3.0.x, jade: >0.0.1, mongoose: 3.4.x"), "devD...
"use strict"; module.exports = { "name" : prompt('name', name), "version" : prompt('version', "0.0.0"), "description" : prompt("description"), "private" : true, "main" : prompt("main", "app.js"), "dependencies" : "express: 3.1.x, jade: >0.0.1, mongoose: 3.5.x", "devDependencies" : "mocha: *...
Update express and mongoose and remove dependencies and devDependencies from prompt
Update express and mongoose and remove dependencies and devDependencies from prompt
JavaScript
mit
the-diamond-dogs-group-oss/bumm,saintedlama/bumm,saintedlama/bumm
javascript
## Code Before: "use strict"; module.exports = { "name" : prompt('name', name), "version" : prompt('version', "0.0.0"), "description" : prompt("description"), "private" : true, "main" : prompt("main", "app.js"), "dependencies" : prompt("dependencies", "express: 3.0.x, jade: >0.0.1, mongoose: 3....
8b41f4b0e25ab6de8eed1988f47cf525c2f182fe
t/10-array-params.t
t/10-array-params.t
use v6; use Test; use App::Subcommander; my $prev-arg; my @prev-names; sub reset { $prev-arg = Str; @prev-names = (); } my class App does App::Subcommander { method listy(Str $arg, Str :@names) is subcommand { $prev-arg = $arg; @prev-names = @names; } } plan 2; App.new.run(['lis...
use v6; use Test; use App::Subcommander; my $prev-arg; my @prev-names; sub reset { $prev-arg = Str; @prev-names = (); } my class App does App::Subcommander { method listy(Str $arg, Str :@names) is subcommand { $prev-arg = $arg; @prev-names = @names; } method listy-with-alias(...
Test aliases + originals + array parameters
Test aliases + originals + array parameters
Perl
mit
hoelzro/Subcommander,hoelzro/Subcommander
perl
## Code Before: use v6; use Test; use App::Subcommander; my $prev-arg; my @prev-names; sub reset { $prev-arg = Str; @prev-names = (); } my class App does App::Subcommander { method listy(Str $arg, Str :@names) is subcommand { $prev-arg = $arg; @prev-names = @names; } } plan 2; A...
460ca0766af38a331c4a00de1d485dd169abda8f
lib/metasploit_data_models/active_record_models/session.rb
lib/metasploit_data_models/active_record_models/session.rb
module MetasploitDataModels::ActiveRecordModels::Session def self.included(base) base.class_eval { belongs_to :host, :class_name => "Mdm::Host" has_one :workspace, :through => :host, :class_name => "Mdm::Workspace" has_many :events, :class_name => "Mdm::SessionEvent", :order => "created_at", :...
module MetasploitDataModels::ActiveRecordModels::Session def self.included(base) base.class_eval { belongs_to :host, :class_name => "Mdm::Host" has_one :workspace, :through => :host, :class_name => "Mdm::Workspace" has_many :events, :class_name => "Mdm::SessionEvent", :order => "created_at", :...
Fix to the upgradeable? method to be all around better
Fix to the upgradeable? method to be all around better
Ruby
bsd-3-clause
rapid7/metasploit-cache,rapid7/metasploit_data_models,farias-r7/metasploit_data_models,rapid7/metasploit_data_models,bcook-r7/metasploit_data_models,rapid7/metasploit_data_models,bcook-r7/metasploit_data_models,rapid7/metasploit-cache,rapid7/metasploit-model,farias-r7/metasploit_data_models,rapid7/metasploit-cache,rapi...
ruby
## Code Before: module MetasploitDataModels::ActiveRecordModels::Session def self.included(base) base.class_eval { belongs_to :host, :class_name => "Mdm::Host" has_one :workspace, :through => :host, :class_name => "Mdm::Workspace" has_many :events, :class_name => "Mdm::SessionEvent", :order =>...
8b89f3539853f417bdd66591e8b17bd8f7688029
doc/environment.yml
doc/environment.yml
name: pyrcel dependencies: - python=2.7 - assimulo - pandas - pyyaml - scipy - numba - numpy - xarray - numpydoc - ipython - sphinx - sphinx_rtd_theme
name: pyrcel channels: - conda-forge dependencies: - python=2.7 - assimulo - pandas - pyyaml - scipy - numba - numpy - xarray - numpydoc - ipython - sphinx - sphinx_rtd_theme
Add conda-forge channel to RTD build
Add conda-forge channel to RTD build
YAML
bsd-3-clause
darothen/pyrcel,darothen/parcel_model
yaml
## Code Before: name: pyrcel dependencies: - python=2.7 - assimulo - pandas - pyyaml - scipy - numba - numpy - xarray - numpydoc - ipython - sphinx - sphinx_rtd_theme ## Instruction: Add conda-forge channel to RTD build ## Code After: name: pyrcel channels: - conda-f...
ad865980b8190201a8de3a9b1a4bee540bac78fb
src/OpenConext/EngineBlockBundle/Resources/config/routing/service_provider.yml
src/OpenConext/EngineBlockBundle/Resources/config/routing/service_provider.yml
authentication_sp_consume_assertion: path: /authentication/sp/consume-assertion methods: [GET,POST] # GET is allowed on purpose to present a meaningful error message. defaults: _controller: engineblock.controller.authentication.service_provider:consumeAssertionAction authentication_sp_process_...
authentication_sp_consume_assertion: path: /authentication/sp/consume-assertion methods: [POST] defaults: _controller: engineblock.controller.authentication.service_provider:consumeAssertionAction authentication_sp_process_consent: path: /authentication/sp/process-consent methods: ...
Allow only POST requests on /sp/consume-assertion
Allow only POST requests on /sp/consume-assertion We stated that GET was also allowed in order to render more user friendly error reports. That was not at all the case. In a recent effort error reporting regarding disallowed request methods was improved. So we can now start enforcing POST requests on the ACS endpoint...
YAML
apache-2.0
thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock
yaml
## Code Before: authentication_sp_consume_assertion: path: /authentication/sp/consume-assertion methods: [GET,POST] # GET is allowed on purpose to present a meaningful error message. defaults: _controller: engineblock.controller.authentication.service_provider:consumeAssertionAction authentica...
5d2b041ad7bddb44cd9bd88fe52ee1a071113e81
sandman2/templates/layout.html
sandman2/templates/layout.html
{% import 'admin/layout.html' as layout with context -%} {% extends 'admin/base.html' %} {% block head_tail %} {{ super() }} <link href="{{ url_for('static', filename='layout.css') }}" rel="stylesheet"> {% endblock %} {% block page_body %} <div class="container"> <div class="row"> <div class="span2"> ...
{% import 'admin/layout.html' as layout with context -%} {% extends 'admin/base.html' %} {% block page_body %} <div class="container"> <div class="row"> <div class="span2"> <ul class="nav nav-pills nav-stacked"> {{ layout.menu() }} {{ layout.menu_links() }} </ul> </div> <div c...
Remove reference to unnecessary/non-existant css file
Remove reference to unnecessary/non-existant css file
HTML
apache-2.0
jeffknupp/sandman2,jeffknupp/sandman2,jeffknupp/sandman2
html
## Code Before: {% import 'admin/layout.html' as layout with context -%} {% extends 'admin/base.html' %} {% block head_tail %} {{ super() }} <link href="{{ url_for('static', filename='layout.css') }}" rel="stylesheet"> {% endblock %} {% block page_body %} <div class="container"> <div class="row"> <div class...
fbff89da6c7a666a35695c0b2b7a50fc4864dc0b
.travis.yml
.travis.yml
language: sh env: matrix: - SHELL=bash - SHELL=zsh - SHELL=dash - SHELL=ksh install: # install antigen - curl -L git.io/antigen > ~/antigen.zsh - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc - echo "setopt sh_word_split" > ~/.zshenv - zsh ~/.zshrc - sh...
language: sh env: matrix: - SHELL=bash - SHELL=zsh install: # install antigen - curl -L git.io/antigen > ~/antigen.zsh - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc - echo "setopt sh_word_split" > ~/.zshenv - zsh ~/.zshrc - sh -c "export BINDIR=$HOME ; `curl ...
Revert "attempt to make test pass for ksh and dash"
Revert "attempt to make test pass for ksh and dash" This reverts commit 86fe28cda3bab5779a71deabeb93c32db3b087e5. expand_alias opt not foundand syntax error on resty function array not suported by dash
YAML
mit
AdrieanKhisbe/resty,micha/resty,micha/resty,micha/resty,micha/resty,AdrieanKhisbe/resty,micha/resty,AdrieanKhisbe/resty,AdrieanKhisbe/resty,AdrieanKhisbe/resty
yaml
## Code Before: language: sh env: matrix: - SHELL=bash - SHELL=zsh - SHELL=dash - SHELL=ksh install: # install antigen - curl -L git.io/antigen > ~/antigen.zsh - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc - echo "setopt sh_word_split" > ~/.zshenv - zsh...
5da6eafbad9dbbfd1efb1964753545dfaf323377
README.md
README.md
php-starter-template ==================== A php starter template. Uses fitgrid: https://github.com/jayalai/fitgrd Set .less files to compile to the css folder in your chosen compiler. Set your local and remote urls in functions.php Includes a rewrite rule in the .htaccess file that allows for clean urls.
php-starter-template ==================== A php starter template. Uses bootstrap for the grid: http://getbootstrap.com/ Set .less files to compile to the css folder in your chosen compiler. Set your local and remote urls in functions.php Includes a rewrite rule in the .htaccess file that allows for clean urls.
Update readme for bootstrap switch.
Update readme for bootstrap switch.
Markdown
mit
multiple-states/bread-butter,multiple-states/bread-butter,multiple-states/bread-butter
markdown
## Code Before: php-starter-template ==================== A php starter template. Uses fitgrid: https://github.com/jayalai/fitgrd Set .less files to compile to the css folder in your chosen compiler. Set your local and remote urls in functions.php Includes a rewrite rule in the .htaccess file that allows for clean...
0357b2a276ae5bf988dd2e6cf89ee9cae2a14f57
setup.py
setup.py
from setuptools import setup setup( name='plumbium', version='0.0.5', packages=['plumbium'], zip_safe=True, install_requires=[ 'Click', ], entry_points=''' [console_scripts] plumbium=plumbium.cli:cli ''', author='Jon Stutters', author_email='j.stutters@uc...
from setuptools import setup setup( name='plumbium', version='0.1.0', packages=['plumbium'], zip_safe=True, author='Jon Stutters', author_email='j.stutters@ucl.ac.uk', description='Record the inputs and outputs of scripts', url='https://github.com/jstutters/plumbium', license='MIT',...
Remove CLI stuff, bump version to 0.1.0
Remove CLI stuff, bump version to 0.1.0
Python
mit
jstutters/Plumbium
python
## Code Before: from setuptools import setup setup( name='plumbium', version='0.0.5', packages=['plumbium'], zip_safe=True, install_requires=[ 'Click', ], entry_points=''' [console_scripts] plumbium=plumbium.cli:cli ''', author='Jon Stutters', author_emai...
8cc324673634837c579190078087a359d82a07f3
assets/less/header.less
assets/less/header.less
.custom-logo { max-height: @grid-gutter-width - 10; width: auto; max-width: 100%; height: auto; } .page-header{ border-bottom: transparent; margin-top: 0; margin-bottom: @grid-gutter-width/4; } .archive{ .page-title{ font-size: @font-size-h2; } .entry-title{ f...
.custom-logo { max-height: @grid-gutter-width - 10; width: auto; max-width: 100%; height: auto; } .page-header{ border-bottom: transparent; margin-top: 0; margin-bottom: @grid-gutter-width/4; } .archive{ .author-title, .entry-title{ font-size: @font-size-h3; } } ...
Update page title styling within .archive
Update page title styling within .archive
Less
mit
keitaroinc/keitaro-theme,keitaroinc/keitaro-theme,keitaroinc/keitaro-theme
less
## Code Before: .custom-logo { max-height: @grid-gutter-width - 10; width: auto; max-width: 100%; height: auto; } .page-header{ border-bottom: transparent; margin-top: 0; margin-bottom: @grid-gutter-width/4; } .archive{ .page-title{ font-size: @font-size-h2; } .entry-...
4ef9e8e2435516432a6b9ceedc62b50e3f6f2bff
app/models/metasploit/cache/license.rb
app/models/metasploit/cache/license.rb
class Metasploit::Cache::License < ActiveRecord::Base extend ActiveSupport::Autoload # # Attributes # # @!attribute abbreviation # Abbreviated license name # # @return [String] # @!attribute summary # Summary of the license text # # @return [String] # @!attribute url # URL of t...
class Metasploit::Cache::License < ActiveRecord::Base extend ActiveSupport::Autoload # # Attributes # # @!attribute abbreviation # Short name of this license, e.g. "BSD-2" # # @return [String] # @!attribute summary # Summary of the license text # # @return [String] # @!attribute ur...
Add some documentation to satisfy YARD plugin
Add some documentation to satisfy YARD plugin MSP-12434
Ruby
bsd-3-clause
rapid7/metasploit-cache,rapid7/metasploit-cache,rapid7/metasploit-cache,rapid7/metasploit-cache
ruby
## Code Before: class Metasploit::Cache::License < ActiveRecord::Base extend ActiveSupport::Autoload # # Attributes # # @!attribute abbreviation # Abbreviated license name # # @return [String] # @!attribute summary # Summary of the license text # # @return [String] # @!attribute ur...
5a0574ba1d9cba601600a34fd98a083bff55fab3
roles/python/tasks/main.yml
roles/python/tasks/main.yml
--- - hosts: all become: yes become_user: root become_method: sudo gather_facts: yes tasks: - name: Install python 2 and utils apt: package: [python, python-pip, ipython] update_cache: yes state: present - name: Install python 3 and utils apt: package: [py...
--- - hosts: all become: yes become_user: root become_method: sudo gather_facts: yes tasks: - name: Install python 2 and utils apt: package: [python, python-pip, ipython] update_cache: yes state: present - name: Install python 3 and utils apt: package: [py...
Add pipenv to python role
Add pipenv to python role
YAML
unlicense
casept/ansible-playbooks,casept/ansible-playbooks,casept/ansible-playbooks
yaml
## Code Before: --- - hosts: all become: yes become_user: root become_method: sudo gather_facts: yes tasks: - name: Install python 2 and utils apt: package: [python, python-pip, ipython] update_cache: yes state: present - name: Install python 3 and utils apt: ...
93fa5c92b483d23ffc661772788ad4191cecd515
src/test/java/kamkor/covariance/CovariantArrayExample.java
src/test/java/kamkor/covariance/CovariantArrayExample.java
package kamkor.covariance; import org.junit.Test; public class CovariantArrayExample { // Scala solves this by making its Arrays invariant (nonvariant) @Test(expected = ArrayStoreException.class) public void covariantArraysLeadToRuntimeExceptions() { String[] c1 = { "abc" }; Object[] c2 = c1; // OOPS! Line ...
package kamkor.covariance; import org.junit.Test; public class CovariantArrayExample { // Scala solves this by making its Arrays invariant (nonvariant) @Test(expected = ArrayStoreException.class) public void covariantArraysLeadToRuntimeExceptions() { String[] strings = { "abc" }; Object[] objects = strings; ...
Refactor Java covariant array example
Refactor Java covariant array example
Java
mit
kamkor/covariance-and-contravariance-examples
java
## Code Before: package kamkor.covariance; import org.junit.Test; public class CovariantArrayExample { // Scala solves this by making its Arrays invariant (nonvariant) @Test(expected = ArrayStoreException.class) public void covariantArraysLeadToRuntimeExceptions() { String[] c1 = { "abc" }; Object[] c2 = c1; ...
0cd7953ebfbce3b11ec5c85f6e19b32d7f13c299
features/supplier/supplier_applies_to_a_framework.feature
features/supplier/supplier_applies_to_a_framework.feature
@supplier-framework-application Feature: Apply to an open framework Background: Given There is a framework that is open for applications And I have a supplier user And that supplier is logged in Scenario: Supplier submits a framework declaration Given I am on the /suppliers page When I click 'Apply' And I...
@supplier-framework-application Feature: Apply to an open framework Background: Given There is a framework that is open for applications And I have a supplier user And that supplier is logged in Scenario: Supplier submits a framework declaration Given I am on the /suppliers page When I click 'Apply' And I...
Check for finished application success message
Check for finished application success message
Cucumber
mit
alphagov/digitalmarketplace-functional-tests,alphagov/digitalmarketplace-functional-tests,alphagov/digitalmarketplace-functional-tests
cucumber
## Code Before: @supplier-framework-application Feature: Apply to an open framework Background: Given There is a framework that is open for applications And I have a supplier user And that supplier is logged in Scenario: Supplier submits a framework declaration Given I am on the /suppliers page When I click...
ba4e93af4c941633aba81a29b3002705f3e5982d
docker/init.sh
docker/init.sh
set -e display_usage() { echo "Seed dev database with data from a pg_dump file." echo echo "Usage:" echo " bash docker/init.sh -f dump_file" } # Help if [[ ( $1 == "--help") || ($1 == "-h")]]; then display_usage exit 0 fi getopts ":f:" opt || true; case $opt in f) if [ -f "$OPT...
set -e display_usage() { echo "Seed dev database with data from a pg_dump file." echo echo "Usage:" echo " bash docker/init.sh -f dump_file" } # Help if [[ ( $1 == "--help") || ($1 == "-h")]]; then display_usage exit 0 fi getopts ":f:" opt || true; case $opt in f) if [ -f "$OPT...
Simplify data import, now that it's not being loaded into Rails-created and migrated DB.
Simplify data import, now that it's not being loaded into Rails-created and migrated DB.
Shell
agpl-3.0
harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o
shell
## Code Before: set -e display_usage() { echo "Seed dev database with data from a pg_dump file." echo echo "Usage:" echo " bash docker/init.sh -f dump_file" } # Help if [[ ( $1 == "--help") || ($1 == "-h")]]; then display_usage exit 0 fi getopts ":f:" opt || true; case $opt in f) ...
0ebc30ef44b4f19f440f0939efeabf5a86d727b6
template/scripts/prepare-build.sh
template/scripts/prepare-build.sh
set -e set -u CURDIR=$(dirname "$0") cd $CURDIR/.. rm -rf build mkdir build cd build SYSNAME=$(uname -s) if [[ "${SYSNAME:0:5}" == "MINGW" ]]; then cmake -G "Visual Studio 12" .. else cmake -G "Unix Makefiles" .. fi
set -e set -u CURDIR=$(dirname "$0") cd $CURDIR/.. rm -rf build mkdir build cd build SYSNAME=$(uname -s) if [[ "${SYSNAME:0:5}" == "MINGW" ]]; then # use "Visual Studio 9 2008" for VS 2008 cmake -G "Visual Studio 12" .. else cmake -G "Unix Makefiles" .. fi
Add info about VS 2008.
Add info about VS 2008.
Shell
mit
mrts/snippets-cpp,mrts/snippets-cpp
shell
## Code Before: set -e set -u CURDIR=$(dirname "$0") cd $CURDIR/.. rm -rf build mkdir build cd build SYSNAME=$(uname -s) if [[ "${SYSNAME:0:5}" == "MINGW" ]]; then cmake -G "Visual Studio 12" .. else cmake -G "Unix Makefiles" .. fi ## Instruction: Add info about VS 2008. ## Code After: set -e set -u CURDIR=$(d...
5951b7e3659680cdef8de79ce064f8f9165bc510
.travis.yml
.travis.yml
language: csharp mono: none dotnet: 2.2 dist: xenial before_install: - chmod +x ./publish.sh script: - ./publish.sh
language: csharp services: docker script: - docker build .
Make attempt at making Travis CI use Docker
Make attempt at making Travis CI use Docker
YAML
mit
amoerie/teamcity-theatre,amoerie/teamcity-theatre,amoerie/teamcity-theatre,amoerie/teamcity-theatre,amoerie/teamcity-theatre
yaml
## Code Before: language: csharp mono: none dotnet: 2.2 dist: xenial before_install: - chmod +x ./publish.sh script: - ./publish.sh ## Instruction: Make attempt at making Travis CI use Docker ## Code After: language: csharp services: docker script: - docker build .
5e182b8d9943f1b17008d69d4c7e865dc83641a7
google/cloud/oslogin/v1/oslogin_v1.yaml
google/cloud/oslogin/v1/oslogin_v1.yaml
type: google.api.Service config_version: 3 name: oslogin.googleapis.com title: Cloud OS Login API apis: - name: google.cloud.oslogin.v1.OsLoginService documentation: summary: |- You can use OS Login to manage access to your VM instances using IAM roles. For more information, read [OS Login](/compute/docs/os...
type: google.api.Service config_version: 3 name: oslogin.googleapis.com title: Cloud OS Login API apis: - name: google.cloud.oslogin.v1.OsLoginService documentation: summary: You can use OS Login to manage access to your VM instances using IAM roles. backend: rules: - selector: 'google.cloud.oslogin.v1.OsLogin...
Update the OS Login API description to render better in the UI.
Update the OS Login API description to render better in the UI. PiperOrigin-RevId: 288546443
YAML
apache-2.0
googleapis/googleapis,googleapis/googleapis
yaml
## Code Before: type: google.api.Service config_version: 3 name: oslogin.googleapis.com title: Cloud OS Login API apis: - name: google.cloud.oslogin.v1.OsLoginService documentation: summary: |- You can use OS Login to manage access to your VM instances using IAM roles. For more information, read [OS Login](...
e1ef65347c008c6f58465e5c096d299a84069860
.travis.yml
.travis.yml
language: node_js node_js: - "node" cache: directories: - node_modules notifications: irc: channels: - "irc.freenode.net#powertip" skip_join: true
language: node_js sudo: false node_js: - "node" cache: directories: - node_modules notifications: irc: channels: - "irc.freenode.net#powertip" skip_join: true
Set sudo: false in Travis CI configuration file
Set sudo: false in Travis CI configuration file This setting should tell travis that this project can be run in their container based environment, which should be able to complete the testing process faster than the sudo enabled environment.
YAML
mit
stevenbenner/jquery-powertip,jasco/jquery-powertip,jasco/jquery-powertip,stevenbenner/jquery-powertip
yaml
## Code Before: language: node_js node_js: - "node" cache: directories: - node_modules notifications: irc: channels: - "irc.freenode.net#powertip" skip_join: true ## Instruction: Set sudo: false in Travis CI configuration file This setting should tell travis that this project can be run in the...
b90d27f71786b733bddc1422688d3e8ebd65c24c
samples/elb.rb
samples/elb.rb
$: << File.expand_path("../../lib", __FILE__) require 'aws/elb' ## # Expects your Amazon keys to be in the environment, something like # # export AWS_KEY="KEY" # export AWS_SECRET="SECRET" ## $elb = AWS::ELB.new ENV["AWS_KEY"], ENV["AWS_SECRET"] puts "", "Your Load Balancers", "" p $elb.describe_load_balancesr
$: << File.expand_path("../../lib", __FILE__) require 'aws/elb' ## # Expects your Amazon keys to be in the environment, something like # # export AWS_KEY="KEY" # export AWS_SECRET="SECRET" ## $elb = AWS::ELB.new ENV["AWS_KEY"], ENV["AWS_SECRET"] puts "", "Your Load Balancers", "" $elb.describe_load_balancers.descr...
Update ELB sample to show usage
Update ELB sample to show usage
Ruby
mit
jasonroelofs/simple_aws
ruby
## Code Before: $: << File.expand_path("../../lib", __FILE__) require 'aws/elb' ## # Expects your Amazon keys to be in the environment, something like # # export AWS_KEY="KEY" # export AWS_SECRET="SECRET" ## $elb = AWS::ELB.new ENV["AWS_KEY"], ENV["AWS_SECRET"] puts "", "Your Load Balancers", "" p $elb.describe_lo...
710145ea0e86a59ba7911e29c6d83560b4750b16
app/src/sass/liveeditor.scss
app/src/sass/liveeditor.scss
.bolt-editable { outline: 2px #bef092 solid; }
.bolt-editable { outline: 2px #bef092 solid; min-height: 10px; }
Add min-height to editable content
Add min-height to editable content
SCSS
mit
lenvanessen/bolt,Raistlfiren/bolt,nantunes/bolt,winiceo/bolt,richardhinkamp/bolt,CarsonF/bolt,hugin2005/bolt,marcin-piela/bolt,HonzaMikula/bolt,nantunes/bolt,bolt/bolt,joshuan/bolt,skript-cc/bolt,Eiskis/bolt-base,rossriley/bolt,Calinou/bolt,rarila/bolt,richardhinkamp/bolt,pygillier/bolt,hugin2005/bolt,GDmac/bolt,hannes...
scss
## Code Before: .bolt-editable { outline: 2px #bef092 solid; } ## Instruction: Add min-height to editable content ## Code After: .bolt-editable { outline: 2px #bef092 solid; min-height: 10px; }
1d97e2db0b74ce358fbf634e59193a288947d4c4
features/user_sees_static_stuff.feature
features/user_sees_static_stuff.feature
Feature: User views static pages In order to let users know about the site I can navigate to how E-petitions works and help pages Scenario: I navigate to the home page When I go to the home page Then I should see "Petition parliament" in the browser page title And the markup should be valid # css...
Feature: User views static pages In order to let users know about the site I can navigate to how E-petitions works and help pages Scenario: I navigate to the home page When I go to the home page Then I should see "Petition parliament" in the browser page title And the markup should be valid # css...
Fix failing feature tests for Help page
Fix failing feature tests for Help page
Cucumber
mit
StatesOfJersey/e-petitions,alphagov/e-petitions,telekomatrix/e-petitions,telekomatrix/e-petitions,StatesOfJersey/e-petitions,unboxed/e-petitions,unboxed/e-petitions,joelanman/e-petitions,unboxed/e-petitions,telekomatrix/e-petitions,StatesOfJersey/e-petitions,joelanman/e-petitions,alphagov/e-petitions,alphagov/e-petitio...
cucumber
## Code Before: Feature: User views static pages In order to let users know about the site I can navigate to how E-petitions works and help pages Scenario: I navigate to the home page When I go to the home page Then I should see "Petition parliament" in the browser page title And the markup should be...
d8c2a7d6e3d41f4a45ec1c7d6f212786c2ddad05
LZW/test_fast_LZW.sh
LZW/test_fast_LZW.sh
make > /dev/null array=(../samples/*) printf "%40s %10s %10s -> %10s\n" "file_name" "state" "test_size" "enc_size " echo "----------------------------------------------------------------------------" for i in "${array[@]}" do ./LZW_fast_encoder $i > /dev/null ./LZW_fast_decoder LZW_encoded.fastlzw > /dev/...
make > /dev/null array=(../samples/*) printf "%40s %10s %10s -> %10s (%10s)\n" "file_name" "state" "orig_size" "enc_size" "diff_size" echo "------------------------------------------------------------------------------------------" for i in "${array[@]}" do ./LZW_fast_encoder $i > /dev/null ./LZW_fast_deco...
Test script now prints how many bytes were saved.
LZW: Test script now prints how many bytes were saved.
Shell
mit
ippeb/LosslessDataCompression,ippeb/LosslessDataCompression
shell
## Code Before: make > /dev/null array=(../samples/*) printf "%40s %10s %10s -> %10s\n" "file_name" "state" "test_size" "enc_size " echo "----------------------------------------------------------------------------" for i in "${array[@]}" do ./LZW_fast_encoder $i > /dev/null ./LZW_fast_decoder LZW_encoded....
8ae6e6cbb912c12ab406755ad0b2735d382cf218
.travis.yml
.travis.yml
--- language: ruby rvm: 2.0.0 before_install: - gem install bundler --no-ri --no-rdoc script: CODECLIMATE_REPO_TOKEN=x bundle && bundle exec rspec addons: code_climate: repo_token: x
--- language: ruby rvm: 2.0.0 before_install: - gem install bundler --no-ri --no-rdoc script: CODECLIMATE_REPO_TOKEN=2f6f03ad98447b63d5ad55055331c2fbd76526fbffdc5365d4a3b9e3d59dbc70 bundle && bundle exec rspec addons: code_climate: repo_token: 2f6f03ad98447b63d5ad55055331c2fbd76526fbffdc5365d4a3b9e3d59dbc70
Add codeclimate test coverage token
Add codeclimate test coverage token
YAML
apache-2.0
distribot/distribot-planner
yaml
## Code Before: --- language: ruby rvm: 2.0.0 before_install: - gem install bundler --no-ri --no-rdoc script: CODECLIMATE_REPO_TOKEN=x bundle && bundle exec rspec addons: code_climate: repo_token: x ## Instruction: Add codeclimate test coverage token ## Code After: --- language: ruby rvm: 2.0.0 before_insta...
da386846184565ea584d48fa099732b22cf06f1b
lib/cc/engine/analyzers/file_list.rb
lib/cc/engine/analyzers/file_list.rb
require "pathname" module CC module Engine module Analyzers class FileList def initialize(engine_config:, patterns:) @engine_config = engine_config @patterns = patterns end def files engine_config.include_paths.flat_map do |path| if path.en...
require "pathname" module CC module Engine module Analyzers class FileList def initialize(engine_config:, patterns:) @engine_config = engine_config @patterns = patterns end def files engine_config.include_paths.flat_map do |path| if path.en...
Adjust file matching and expansion
Adjust file matching and expansion The include_paths may or may not be ./-prefixed (they usually aren't, but there's the notable case of ["./"]). Patterns are never ./-prefixed (they can't be for the purposes of relative expansion). Given this uncertainty, it's possible to drop files if you're not careful in how you m...
Ruby
mit
codeclimate/codeclimate-duplication,codeclimate/codeclimate-duplication,codeclimate/codeclimate-duplication,codeclimate/codeclimate-duplication
ruby
## Code Before: require "pathname" module CC module Engine module Analyzers class FileList def initialize(engine_config:, patterns:) @engine_config = engine_config @patterns = patterns end def files engine_config.include_paths.flat_map do |path| ...
69ae80b20d5b20b83d00899c2d326a7319c7143e
.travis.yml
.travis.yml
language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 env: - DOCKER_COMPOSE_VERSION=1.24.0 install: mvn install -B before_script: - sudo rm /usr/local/bin/docker-compose - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname...
dist: trusty language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 env: - DOCKER_COMPOSE_VERSION=1.24.0 install: mvn install -B before_script: - sudo rm /usr/local/bin/docker-compose - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`un...
Add "dist: trusty" to fix Travis issues
Add "dist: trusty" to fix Travis issues
YAML
mit
elixir-no-nels/trackfind,elixir-no-nels/trackfind,elixir-no-nels/trackfind
yaml
## Code Before: language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 env: - DOCKER_COMPOSE_VERSION=1.24.0 install: mvn install -B before_script: - sudo rm /usr/local/bin/docker-compose - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`...
ad5fa17cc1f2287ca1dea2e3c03523a7f6e5a93e
src/core/permissionDirective.js
src/core/permissionDirective.js
(function () { 'use strict'; /** * Show/hide elements based on provided permissions/roles * * @example * <div permission only="'USER'"></div> * <div permission only="['USER','ADMIN']" except="'MANAGER'"></div> * <div permission except="'MANAGER'"></div> */ angular .module('permission') ...
(function () { 'use strict'; /** * Show/hide elements based on provided permissions/roles * * @example * <div permission only="'USER'"></div> * <div permission only="['USER','ADMIN']" except="'MANAGER'"></div> * <div permission except="'MANAGER'"></div> */ angular .module('permission') ...
Add isolate scope to permission directive.
Add isolate scope to permission directive.
JavaScript
mit
Narzerus/angular-permission,Narzerus/angular-permission
javascript
## Code Before: (function () { 'use strict'; /** * Show/hide elements based on provided permissions/roles * * @example * <div permission only="'USER'"></div> * <div permission only="['USER','ADMIN']" except="'MANAGER'"></div> * <div permission except="'MANAGER'"></div> */ angular .module...
91c922ac32d68db8965f335f13882c51f73bb522
public/robot-kata.js
public/robot-kata.js
console.log("Hello Robot Kata!"); var floorContext = document.getElementById('floor').getContext('2d'); var floorImage = new Image(); var floorOffset = $('#floor').offset(); floorImage.src = 'roomba-dock.png'; floorImage.onload = function () { floorContext.drawImage(floorImage, 0, 0); }; $('#floor').mousemove(func...
loadFloorImage(function () { console.log("Hello Robot Kata!"); }); var floor = { context: $('#floor')[0].getContext('2d'), offset: $('#floor').offset(), getPosition: function (e) { return { x: Math.floor(e.pageX - this.offset.left), y: Math.floor(e.pageY - this.offset.top) } } } function...
Refactor and add function to determine color
Refactor and add function to determine color
JavaScript
mit
ideal-knee/robot-kata-js,ideal-knee/robot-kata-js,ideal-knee/robot-kata-js
javascript
## Code Before: console.log("Hello Robot Kata!"); var floorContext = document.getElementById('floor').getContext('2d'); var floorImage = new Image(); var floorOffset = $('#floor').offset(); floorImage.src = 'roomba-dock.png'; floorImage.onload = function () { floorContext.drawImage(floorImage, 0, 0); }; $('#floor'...
a7ba6ece76e768e642a6ed264791e3987f7c7629
apps/user_app/forms.py
apps/user_app/forms.py
from django import forms from django.core import validators from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class RegistrationForm(UserCreationForm): username = forms.CharField(label='username', max_length=30, required=True,) #validators=[self.isValidU...
from django import forms from django.core.exceptions import ValidationError from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm def isValidUserName(username): try: User.objects.get(username=username) except User.DoesNotExist: return raise ValidationError('The usern...
Implement validation to the username field.
Implement validation to the username field.
Python
mit
pedrolinhares/po-po-modoro,pedrolinhares/po-po-modoro
python
## Code Before: from django import forms from django.core import validators from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class RegistrationForm(UserCreationForm): username = forms.CharField(label='username', max_length=30, required=True,) #validator...