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
6b001f1e3b365d5c9befbf3e8a81429d2f6781c2
Library/Homebrew/formula_support.rb
Library/Homebrew/formula_support.rb
FormulaConflict = Struct.new(:name, :reason) # Used to annotate formulae that duplicate OS X provided software # or cause conflicts when linked in. class KegOnlyReason attr_reader :reason, :explanation def initialize reason, explanation=nil @reason = reason @explanation = explanation end def valid? ...
FormulaConflict = Struct.new(:name, :reason) # Used to annotate formulae that duplicate OS X provided software # or cause conflicts when linked in. class KegOnlyReason attr_reader :reason, :explanation def initialize reason, explanation=nil @reason = reason @explanation = explanation end def valid? ...
Add keg-only reason symbols for Xcode 4.3 and Xcode 5
Add keg-only reason symbols for Xcode 4.3 and Xcode 5 Closes Homebrew/homebrew#28095.
Ruby
bsd-2-clause
vitorgalvao/brew,aw1621107/brew,bfontaine/brew,claui/brew,zmwangx/brew,konqui/brew,toonetown/homebrew,MikeMcQuaid/brew,bfontaine/brew,staticfloat/brew,JCount/brew,nandub/brew,reelsense/brew,amar-laksh/brew_sudo,EricFromCanada/brew,bfontaine/brew,sjackman/homebrew,DomT4/brew,vitorgalvao/brew,toonetown/homebrew,sjackman/...
ruby
## Code Before: FormulaConflict = Struct.new(:name, :reason) # Used to annotate formulae that duplicate OS X provided software # or cause conflicts when linked in. class KegOnlyReason attr_reader :reason, :explanation def initialize reason, explanation=nil @reason = reason @explanation = explanation end...
eab17072bc52a28e02deee5ae72c543d959461fb
README.md
README.md
So I've been challenged by [Earthware][earthware] to take part in [Advent of Code][aoc]. This repo holds my solutions. ## Usage ``` make build aoc -year <year> -day <day> ``` Simply running `aoc` will provide a list of available years and days. [earthware]: http://www.earthware.co.uk [aoc]: http://adventofcode.co...
![Build status][codeship] So I've been challenged by [Earthware][earthware] to take part in [Advent of Code][aoc]. This repo holds my solutions. ## Usage ``` make build aoc -year <year> -day <day> ``` Simply running `aoc` will provide a list of available years and days. [codeship]: https://codeship.com/projects/...
Add Codeship build status badge
Add Codeship build status badge
Markdown
mit
domdavis/adventofcode
markdown
## Code Before: So I've been challenged by [Earthware][earthware] to take part in [Advent of Code][aoc]. This repo holds my solutions. ## Usage ``` make build aoc -year <year> -day <day> ``` Simply running `aoc` will provide a list of available years and days. [earthware]: http://www.earthware.co.uk [aoc]: http:/...
49f5ce797e00a84c4f0cf76479e11c16a64dd829
metadata/com.colnix.fta.yml
metadata/com.colnix.fta.yml
Categories: - Sports & Health License: Apache-2.0 AuthorName: Colnix Technology WebSite: https://www.colnix.com SourceCode: https://gitlab.com/colnix/fta IssueTracker: https://gitlab.com/colnix/fta/issues RepoType: git Repo: https://gitlab.com/colnix/fta.git Builds: - versionName: 2.1.0 versionCode: 22 co...
Categories: - Sports & Health License: Apache-2.0 AuthorName: Colnix Technology WebSite: https://www.colnix.com SourceCode: https://gitlab.com/colnix/fta IssueTracker: https://gitlab.com/colnix/fta/issues AutoName: Fertility Test Analyzer RepoType: git Repo: https://gitlab.com/colnix/fta.git Builds: - versionNam...
Set autoname of Fertility Test Analyzer
Set autoname of Fertility Test Analyzer
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Sports & Health License: Apache-2.0 AuthorName: Colnix Technology WebSite: https://www.colnix.com SourceCode: https://gitlab.com/colnix/fta IssueTracker: https://gitlab.com/colnix/fta/issues RepoType: git Repo: https://gitlab.com/colnix/fta.git Builds: - versionName: 2.1.0 versio...
630c6710bd3b32603e58e9418ad3e7905f792294
app/views/backend/base/new.html.haml
app/views/backend/base/new.html.haml
- options = {} - options[:url] = @form_url if @form_url - options.deep_merge!(data: {dialog: params[:dialog]}) if params[:dialog] - options[:namespace] = params[:namespace] if params[:namespace] = ekylibre_form_for(resource, options) do |f| - if params[:redirect] = hidden_field_tag(:redirect, params[:redirect]) ...
- options = {} - options[:url] = @form_url if @form_url - options.deep_merge!(data: {dialog: params[:dialog]}) if params[:dialog] - options[:namespace] = params[:namespace] if params[:namespace] = ekylibre_form_for(resource, options) do |f| - if params[:redirect] = hidden_field_tag(:redirect, params[:redirect]) ...
Use `if/else` instead of if + unless
Use `if/else` instead of if + unless
Haml
agpl-3.0
ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre
haml
## Code Before: - options = {} - options[:url] = @form_url if @form_url - options.deep_merge!(data: {dialog: params[:dialog]}) if params[:dialog] - options[:namespace] = params[:namespace] if params[:namespace] = ekylibre_form_for(resource, options) do |f| - if params[:redirect] = hidden_field_tag(:redirect, par...
cbb2274f9b54be4f67fdc1b351dc960129a7fd7a
infra/roles/mapserver/tasks/main.yml
infra/roles/mapserver/tasks/main.yml
--- - name: Install Packages apt: > pkg={{item}} state=installed update-cache=yes with_items: - mapserver-bin - cgi-mapserver - nginx - spawn-fcgi tags: - mapserver - nginx - name: Copy mapserver fastcgi service script template: src=mapserver.j2 dest=/etc/init.d/mapserver o...
--- - name: Install Packages apt: > pkg={{item}} state=installed update-cache=yes with_items: - mapserver-bin - cgi-mapserver - nginx - spawn-fcgi tags: - mapserver - nginx - name: Copy mapserver fastcgi service script template: src=mapserver.j2 dest=/etc/init.d/mapserver o...
Add notify to restart nginx
Add notify to restart nginx
YAML
mit
kinow/nz-osm-server,kinow/nz-osm-server,kinow/nz-osm-server,kinow/nz-osm-server
yaml
## Code Before: --- - name: Install Packages apt: > pkg={{item}} state=installed update-cache=yes with_items: - mapserver-bin - cgi-mapserver - nginx - spawn-fcgi tags: - mapserver - nginx - name: Copy mapserver fastcgi service script template: src=mapserver.j2 dest=/etc/in...
6a0ff187c6791cadedcef119b5170c7b0787408e
Cargo.toml
Cargo.toml
[package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <hi@hawkweisman.me>"] description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine." license = "MIT" homepage = "http://hawkweisman.me/seax" repository = "https://github.com/hawkw/seax" read...
[package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <hi@hawkweisman.me>"] description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine." license = "MIT" homepage = "http://hawkweisman.me/seax" repository = "https://github.com/hawkw/seax" read...
Put QuickCheck in root crate's dev deps
Put QuickCheck in root crate's dev deps
TOML
mit
hawkw/seax,hawkw/seax
toml
## Code Before: [package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <hi@hawkweisman.me>"] description = "SECD virtual machine for interpreting programs in FP languages and a Scheme compiler targeting that machine." license = "MIT" homepage = "http://hawkweisman.me/seax" repository = "https://github.com/...
34d7b6a1a462d5310b4efa5ccd4efb10089422b8
app/views/movies/show.html.erb
app/views/movies/show.html.erb
<h1>Movie Show Page!</h1> <%= link_to "Edit Movie", edit_movie_path %> <%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %> <ul> <h2><%= @movie.title %></h2> <li><h3>synopsis: </h3><%= @movie.synopsis.truncate(100, separator: ' ') %></li> <li><h3>release date: </h3><%= @mov...
<h1>Movie Show Page!</h1> <%= link_to "Edit Movie", edit_movie_path %> <%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %> <ul> <h2><%= @movie.title %></h2> <li><h3>synopsis: </h3><%= @movie.synopsis.truncate(100, separator: ' ') %></li> <li><h3>release date: </h3><%= @mov...
Add reviewer to the movie show page with link to user show page
Add reviewer to the movie show page with link to user show page
HTML+ERB
mit
chi-bobolinks-2015/imdbc,chi-bobolinks-2015/imdbc,chi-bobolinks-2015/imdbc
html+erb
## Code Before: <h1>Movie Show Page!</h1> <%= link_to "Edit Movie", edit_movie_path %> <%= link_to "Delete Movie", movie_path, method: :delete, data: {confirm: "Are you sure?"} %> <ul> <h2><%= @movie.title %></h2> <li><h3>synopsis: </h3><%= @movie.synopsis.truncate(100, separator: ' ') %></li> <li><h3>release dat...
a4b7d990673f5688221e1b7ed1ff3a4bec60fdcb
.travis.yml
.travis.yml
language: ruby before_install: - sudo apt-get update - sudo apt-get install nodejs script: - bundle exec rake db:migrate RAILS_ENV=test - bundle exec rake
language: ruby before_install: - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - - sudo apt-get install nodejs script: - bundle exec rake db:migrate RAILS_ENV=test - bundle exec rake
Use Nodesource to get a current node in Travis.
:green_heart: Use Nodesource to get a current node in Travis.
YAML
mit
YtvwlD/mete,YtvwlD/mete,chaosdorf/mete,chaosdorf/mete,chaosdorf/mete,YtvwlD/mete,YtvwlD/mete,chaosdorf/mete
yaml
## Code Before: language: ruby before_install: - sudo apt-get update - sudo apt-get install nodejs script: - bundle exec rake db:migrate RAILS_ENV=test - bundle exec rake ## Instruction: :green_heart: Use Nodesource to get a current node in Travis. ## Code After: language: ruby before_install: - curl -sL https:/...
2645ac6dc7ea165a90817820833a3dfecb16cd99
README.md
README.md
PMMetroView =========== A UIView subclass to display the parisian subway lines' logo without any image files # Comparisons Those are very simple tests for the moment being. Please feel free to add more - SVG : 15 489 bytes - h. + .m : 37 061 - PNG, 48pts x 48 pts , low-res/retina : 38591 / 80035 bytes And ...
PMMetroView =========== A UIView subclass to display the parisian subway lines' logo without any image files # Why ? Because I wanted to think about a way to use code to draw images for quite a while. It should not be cumbersome to use. Thus converting an image to code or updating it should be fast and painless. Tha...
Update the ReadMe with a 'Why' section
Update the ReadMe with a 'Why' section
Markdown
mit
teriiehina/PMMetroView,teriiehina/PMMetroView
markdown
## Code Before: PMMetroView =========== A UIView subclass to display the parisian subway lines' logo without any image files # Comparisons Those are very simple tests for the moment being. Please feel free to add more - SVG : 15 489 bytes - h. + .m : 37 061 - PNG, 48pts x 48 pts , low-res/retina : 38591 / 8...
1bfcd1989f2f459aa04c21e25661405d70e12a2c
capistrano-cm.gemspec
capistrano-cm.gemspec
Gem::Specification.new do |s| s.name = %q{capistrano-cm} s.version = "0.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Justin S. Leitgeb"] s.date = %q{2009-11-04} s.description = %q{Lightweight cap extensions to assist in server co...
Gem::Specification.new do |s| s.name = "capistrano-cm" s.version = "0.0.3" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.author = "Justin S. Leitgeb" s.date = "2009-11-04" s.description = "Lightweight cap extensions to assist in server configurati...
Fix link to source code in gemspec
Fix link to source code in gemspec
Ruby
mit
jsl/capistrano_cm
ruby
## Code Before: Gem::Specification.new do |s| s.name = %q{capistrano-cm} s.version = "0.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Justin S. Leitgeb"] s.date = %q{2009-11-04} s.description = %q{Lightweight cap extensions to ass...
7b577068da18d86e4eed9be6adde757c55a1b4fd
docs/assets/css/style.scss
docs/assets/css/style.scss
--- --- @import "{{ site.theme }}"; #download-win span { background: transparent url(../images/win-icon.png) 12px 50% no-repeat; } #download-mac span { background: transparent url(../images/mac-icon.png) 12px 50% no-repeat; }
--- --- @import "{{ site.theme }}"; a.button { width: 126px; } #download-win span { background: transparent url(../images/win-icon.png) 12px 50% no-repeat; } #download-mac span { background: transparent url(../images/mac-icon.png) 12px 50% no-repeat; } #download-linux span { background: transparent url(../i...
Add Linux build to web page
Add Linux build to web page
SCSS
apache-2.0
docsteer/sacnview,marcusbirkin/sacnview,marcusbirkin/sacnview,marcusbirkin/sacnview,marcusbirkin/sacnview,marcusbirkin/sacnview,marcusbirkin/sacnview,docsteer/sacnview,marcusbirkin/sacnview,docsteer/sacnview,docsteer/sacnview,docsteer/sacnview,docsteer/sacnview,docsteer/sacnview
scss
## Code Before: --- --- @import "{{ site.theme }}"; #download-win span { background: transparent url(../images/win-icon.png) 12px 50% no-repeat; } #download-mac span { background: transparent url(../images/mac-icon.png) 12px 50% no-repeat; } ## Instruction: Add Linux build to web page ## Code After: --- --- @imp...
bdd12b71b2437006d01986c68fae5f5988acf31c
src/esperanto/SliderBundle/EventListener/AdminSliderBuilderSubscriber.php
src/esperanto/SliderBundle/EventListener/AdminSliderBuilderSubscriber.php
<?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <gseidel.message@googlemail.com> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Buil...
<?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <gseidel.message@googlemail.com> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Buil...
Fix missing use in SliderBundle
Fix missing use in SliderBundle
PHP
mit
jennyhelbing/enhavo,jennyhelbing/enhavo,npakai/enhavo,xqweb/esperanto-cms,npakai/enhavo,kiwibun/enhavo,FabianLiebl/enhavo,npakai/enhavo,gseidel/esperanto-cms,jennyhelbing/enhavo,jennyhelbing/esperanto-cms,kiwibun/enhavo,gseidel/enhavo,enhavo/enhavo,gseidel/esperanto-cms,mkellermann/enhavo,FabianLiebl/enhavo,jennyhelbin...
php
## Code Before: <?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <gseidel.message@googlemail.com> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\...
c913a4b5edcee2a07ea8c1bea47bc75893a866b7
.travis.yml
.travis.yml
language: java install: true script: mvn verify javadoc:javadoc coveralls:report -Pcoverage jdk: - oraclejdk8 branches: only: - master - /\d\.0\.0-RC/ sudo: false cache: directories: - '$HOME/.m2/repository'
language: java install: true script: mvn verify javadoc:javadoc coveralls:report -Pcoverage jdk: - oraclejdk8 branches: only: - master - /\d\.0\.0-RC/ cache: directories: - '$HOME/.m2/repository'
Remove deprecated part from Travis config
Remove deprecated part from Travis config https://docs.travis-ci.com/user/reference/trusty/ says: Container-based infrastructure is currently being deprecated. Please remove any `sudo:` false keys in your `.travis.yml` file to use the default fully-virtualized Linux infrastructure instead.
YAML
bsd-3-clause
martiner/gooddata-java
yaml
## Code Before: language: java install: true script: mvn verify javadoc:javadoc coveralls:report -Pcoverage jdk: - oraclejdk8 branches: only: - master - /\d\.0\.0-RC/ sudo: false cache: directories: - '$HOME/.m2/repository' ## Instruction: Remove deprecated part from Travis config https://docs.tra...
d7e19af60224112b58ace18937eb3778a4896d67
src/Parsing/Inline/TokenizerState.ts
src/Parsing/Inline/TokenizerState.ts
import { RichSandwichTracker } from './RichSandwichTracker' import { TextConsumer } from '../TextConsumer' import { Token } from './Token' interface Args { consumer?: TextConsumer, tokens?: Token[], sandwichTrackers?: RichSandwichTracker[] } export class TokenizerState { public consumer: TextConsumer ...
import { RichSandwichTracker } from './RichSandwichTracker' import { TextConsumer } from '../TextConsumer' import { Token } from './Token' interface Args { consumer?: TextConsumer, tokens?: Token[], sandwichTrackers?: RichSandwichTracker[] } export class TokenizerState { public consumer: TextConsumer public...
Fix formatting in tokenizer state file
Fix formatting in tokenizer state file
TypeScript
mit
start/up,start/up
typescript
## Code Before: import { RichSandwichTracker } from './RichSandwichTracker' import { TextConsumer } from '../TextConsumer' import { Token } from './Token' interface Args { consumer?: TextConsumer, tokens?: Token[], sandwichTrackers?: RichSandwichTracker[] } export class TokenizerState { public consume...
c0680f6ca9119a085fb81bb7e1db4b0dbf430a7b
examples/tile_geopackage.sh
examples/tile_geopackage.sh
rm tiles.gpkg geoc tile generate -l "type=geopackage file=tiles.gpkg name=world pyramid=geodetic" \ -m "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \ -m "layertype=layer file=naturalearth.gpkg layername=countries style=countries.sld" \ -s 0 \ -e 4 \ -v geoc tile pyramid...
rm tiles.gpkg # Geodetic geoc tile generate -l "type=geopackage file=tiles.gpkg name=world_geodetic pyramid=geodetic" \ -m "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \ -m "layertype=layer file=naturalearth.gpkg layername=countries style=countries.sld" \ -s 0 \ -e 3 \ -...
Add example of geopackage containing two tile sets
Add example of geopackage containing two tile sets
Shell
mit
jericks/geoc,jericks/geoc
shell
## Code Before: rm tiles.gpkg geoc tile generate -l "type=geopackage file=tiles.gpkg name=world pyramid=geodetic" \ -m "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \ -m "layertype=layer file=naturalearth.gpkg layername=countries style=countries.sld" \ -s 0 \ -e 4 \ -v g...
30c47bd508f841f9e54072ef721f47b36aadf8bb
Sources/GitHubClient/Models/Response/Invitation.swift
Sources/GitHubClient/Models/Response/Invitation.swift
// // Invitation.swift // GithubClient // // Created by Eduardo Arenas on 2/18/18. // Copyright © 2018 GameChanger. All rights reserved. // import Foundation public struct Invitation: Decodable { public let id: Int public let repository: Repository public let invetee: User public let inviter: User publi...
// // Invitation.swift // GithubClient // // Created by Eduardo Arenas on 2/18/18. // Copyright © 2018 GameChanger. All rights reserved. // import Foundation public struct Invitation: Decodable { public let id: Int public let repository: Repository public let invetee: User public let inviter: User publi...
Correct coding keys for invitation
Correct coding keys for invitation
Swift
mit
eduarenas/GithubClient
swift
## Code Before: // // Invitation.swift // GithubClient // // Created by Eduardo Arenas on 2/18/18. // Copyright © 2018 GameChanger. All rights reserved. // import Foundation public struct Invitation: Decodable { public let id: Int public let repository: Repository public let invetee: User public let invit...
b9b68b3af8657e73e688f9395546b449d8aedc60
README.md
README.md
`flagstruct` is (another) library for parsing command line flags into structs. Although packages named `flagstruct` already exist, this pattern emerged coincidentally (without checking to see if it existed prior) in some projects, and I decided to simply merge the best parts into one library. `flagstruct` has a few ne...
`flagstruct` is (another) library for parsing command line flags into structs. Although packages named `flagstruct` already exist, this pattern emerged coincidentally (without checking to see if it existed prior) in some projects, and I decided to simply merge the best parts into one library. `flagstruct` has a few ne...
Add documentation about using env.
Add documentation about using env.
Markdown
isc
Benzinga/flagstruct
markdown
## Code Before: `flagstruct` is (another) library for parsing command line flags into structs. Although packages named `flagstruct` already exist, this pattern emerged coincidentally (without checking to see if it existed prior) in some projects, and I decided to simply merge the best parts into one library. `flagstru...
7d98cb1ed692517f6a97725e8884b5177be800b1
source/EXTENSIONS/CMakeLists.txt
source/EXTENSIONS/CMakeLists.txt
PROJECT(BALL_PLUGINS) OPTION(USE_PRESENTABALL_PLUGIN "Build the PresentaBALL plugin" ON) OPTION(USE_XML3D_PLUGIN "Build the XML3D plugin" ON) OPTION(USE_SPACENAV_PLUGIN "Build the SpaceNavigator input device plugin" ON) OPTION(USE_VRPN_PLUGIN "Build the VRPN input device plugin" ON) OPTION(USE_VRPNHD_PLUGIN "Build the...
PROJECT(BALL_PLUGINS) OPTION(USE_PRESENTABALL_PLUGIN "Build the PresentaBALL plugin" ON) OPTION(USE_XML3D_PLUGIN "Build the XML3D plugin" ON) OPTION(USE_SPACENAV_PLUGIN "Build the SpaceNavigator input device plugin" ON) OPTION(USE_VRPN_PLUGIN "Build the VRPN input device plugin" ON) OPTION(USE_VRPNHD_PLUGIN "Build the...
Build BALLaxy plugin only if BALLaxy build is enabled
Build BALLaxy plugin only if BALLaxy build is enabled
Text
lgpl-2.1
tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball
text
## Code Before: PROJECT(BALL_PLUGINS) OPTION(USE_PRESENTABALL_PLUGIN "Build the PresentaBALL plugin" ON) OPTION(USE_XML3D_PLUGIN "Build the XML3D plugin" ON) OPTION(USE_SPACENAV_PLUGIN "Build the SpaceNavigator input device plugin" ON) OPTION(USE_VRPN_PLUGIN "Build the VRPN input device plugin" ON) OPTION(USE_VRPNHD_P...
630972104531fde89d921c03bc01c3b813fc0304
public/js/app.js
public/js/app.js
window.Chip8 = require('../../src/chip8'); window.chip8 = new Chip8(function() {console.log('beep')}); console.log('chip8 is here!');
document.addEventListener('DOMContentLoaded', function() { Chip8 = require('../../src/chip8'); chip8 = new Chip8(function() {console.log('beep')}); console.log('chip8 is here!'); });
Load Chip8 after DOM ready
Load Chip8 after DOM ready
JavaScript
mit
concreted/chipjs,concreted/chipjs
javascript
## Code Before: window.Chip8 = require('../../src/chip8'); window.chip8 = new Chip8(function() {console.log('beep')}); console.log('chip8 is here!'); ## Instruction: Load Chip8 after DOM ready ## Code After: document.addEventListener('DOMContentLoaded', function() { Chip8 = require('../../src/chip8'); chip8 = ...
28b8726d53a3850f6c7086dbf9024c75f8e2bdb9
app/views/carts/_cart.html.erb
app/views/carts/_cart.html.erb
<h2>Your cart:</h2> <table> <%= render(cart.line_items) %> </table> <%= button_to 'Empty cart', cart, method: :delete, data: { confirm: 'Are you sure?' } %> <%= button_to 'Download forms', "/download" %>
<h2>Your cart:</h2> <table> <%= render(cart.line_items) %> </table> <%= button_to 'Empty cart', cart, method: :delete %> <%= button_to 'Download forms', "/download" %>
Remove irritating "Are you sure?" alert from "Empty Cart" button
Remove irritating "Are you sure?" alert from "Empty Cart" button
HTML+ERB
mit
meiao/districthousing,lankyfrenchman/dchousing-apps,adelevie/districthousing,dmjurg/districthousing,uncompiled/districthousing,dmjurg/districthousing,uncompiled/districthousing,dmjurg/districthousing,MetricMike/districthousing,meiao/districthousing,meiao/districthousing,codefordc/districthousing,lankyfrenchman/dchousin...
html+erb
## Code Before: <h2>Your cart:</h2> <table> <%= render(cart.line_items) %> </table> <%= button_to 'Empty cart', cart, method: :delete, data: { confirm: 'Are you sure?' } %> <%= button_to 'Download forms', "/download" %> ## Instruction: Remove irritating "Are you sure?" alert from "Empty Cart" button ## Code After: ...
97e8742be7b721885a9fc380254b6f8070df7a59
extern/boostorg/flags.mk
extern/boostorg/flags.mk
CXXFLAGS_$(d) += \ -I$(SOURCE_ROOT)/extern/boostorg/json/include \ -DBOOST_JSON_STANDALONE \ -Wno-cast-align \ -Wno-float-equal \ -Wno-newline-eof \ -Wno-old-style-cast \ -Wno-sign-conversion \ -Wno-undef
CXXFLAGS_$(d) += \ -isystem $(SOURCE_ROOT)/extern/boostorg/json/include \ -DBOOST_JSON_STANDALONE # On macOS, Boost warns (via #warning) that <memory_resource> does not exist. This is then promoted # to an error due to -Werror; set -Wno-error for macOS only. ifeq ($(SYSTEM), MACOS) CXXFLAGS_$(d) += -Wno-er...
Fix benchmarks compilation on macOS
Fix benchmarks compilation on macOS Disable warnings in Boost.JSON by including it with -isystem. On macOS, several more warnings were raised due to -pedantic. Also need to set -Wno-error because Boost.JSON raises a warning with #warning, which is not disabled via -isystem.
Makefile
mit
trflynn89/libfly,trflynn89/libfly
makefile
## Code Before: CXXFLAGS_$(d) += \ -I$(SOURCE_ROOT)/extern/boostorg/json/include \ -DBOOST_JSON_STANDALONE \ -Wno-cast-align \ -Wno-float-equal \ -Wno-newline-eof \ -Wno-old-style-cast \ -Wno-sign-conversion \ -Wno-undef ## Instruction: Fix benchmarks compilation on macOS Disable warni...
f0a2b9d52e5d7baf67dd360164adcd53bb4fb92d
meson_options.txt
meson_options.txt
option('libproxy_support', type: 'boolean', value: true, description: 'support for libproxy') option('gnome_proxy_support', type: 'boolean', value: true, description: 'support for GNOME proxy configuration') option('tls_support', type: 'boolean', value: true, description: 'support for GNUTLS') option('ca_certificates_p...
option('libproxy_support', type: 'boolean', value: true, description: 'support for libproxy proxy configration') option('gnome_proxy_support', type: 'boolean', value: true, description: 'support for GNOME desktop proxy configuration') option('tls_support', type: 'boolean', value: true, description: 'support for TLS usi...
Improve descriptions of build options
Improve descriptions of build options
Text
lgpl-2.1
GNOME/glib-networking,GNOME/glib-networking,GNOME/glib-networking
text
## Code Before: option('libproxy_support', type: 'boolean', value: true, description: 'support for libproxy') option('gnome_proxy_support', type: 'boolean', value: true, description: 'support for GNOME proxy configuration') option('tls_support', type: 'boolean', value: true, description: 'support for GNUTLS') option('c...
1e5c5be9e00ca09f355fc3373565b48b06ba5919
features/step_definitions/hello_world_steps.rb
features/step_definitions/hello_world_steps.rb
Given(/^I am on the Home screen$/) do end Then(/^I should see "(.*?)"$/) do end
Given(/^I am on the Home screen$/) do @page = launch_to_home_page end Then(/^I should see "(.*?)"$/) do |expected_text| actual_text = @page.hello_world_text unless actual_text == expected_text raise "Saw #{actual_text} instead of #{expected_text}" end end
Add ruby methods to steps
Add ruby methods to steps
Ruby
mit
bonnett89/x-platform-appium-boilerplate,bonnett89/x-platform-appium-boilerplate,bonnett89/x-platform-appium-boilerplate
ruby
## Code Before: Given(/^I am on the Home screen$/) do end Then(/^I should see "(.*?)"$/) do end ## Instruction: Add ruby methods to steps ## Code After: Given(/^I am on the Home screen$/) do @page = launch_to_home_page end Then(/^I should see "(.*?)"$/) do |expected_text| actual_text = @page.hello_world_text ...
a9849dc7e93af2fc2781888cf0163ea6d1bad87b
models/report/remodel-item.coffee
models/report/remodel-item.coffee
mongoose = require 'mongoose' Schema = mongoose.Schema RemodelItemRecord = new Schema successful: Boolean itemId: Number itemLevel: Number flagshipId: Number flagshipLevel: Number flagshipCond: Number consortId: Number consortLevel: Number consortCond: Number teitokuLv: Number RemodelItemRecord.vi...
mongoose = require 'mongoose' Schema = mongoose.Schema RemodelItemRecord = new Schema successful: Boolean itemId: Number itemLevel: Number flagshipId: Number flagshipLevel: Number flagshipCond: Number consortId: Number consortLevel: Number consortCond: Number teitokuLv: Number certain: Boolean R...
Add certain flag for remodel item
Add certain flag for remodel item
CoffeeScript
mit
poooi/poi-server,yudachi/poi-server,poooi/poi-server,yudachi/poi-server,poooi/poi-server
coffeescript
## Code Before: mongoose = require 'mongoose' Schema = mongoose.Schema RemodelItemRecord = new Schema successful: Boolean itemId: Number itemLevel: Number flagshipId: Number flagshipLevel: Number flagshipCond: Number consortId: Number consortLevel: Number consortCond: Number teitokuLv: Number Remo...
3aa86255b37c98419a07be0b5eb58b9c10a49502
packages/ha/haskell-tools-ast.yaml
packages/ha/haskell-tools-ast.yaml
homepage: https://github.com/nboldi/haskell-tools changelog-type: '' hash: 342809b3c3ca3ab99373e3c4293cd1653e247d2197516b4f89fade979e03fa97 test-bench-deps: {} maintainer: nboldi@elte.hu synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references...
homepage: https://github.com/nboldi/haskell-tools changelog-type: '' hash: 6664c01ba1f873109b096d93321f1c16b2fcd35da4cc9f97ed622fad053867c7 test-bench-deps: {} maintainer: nboldi@elte.hu synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references...
Update from Hackage at 2016-07-01T12:53:52+0000
Update from Hackage at 2016-07-01T12:53:52+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/nboldi/haskell-tools changelog-type: '' hash: 342809b3c3ca3ab99373e3c4293cd1653e247d2197516b4f89fade979e03fa97 test-bench-deps: {} maintainer: nboldi@elte.hu synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5...
539fdb752f5cd88f5b1d12f6892adf722fe24786
slack9gag.go
slack9gag.go
package slack9gag import ( "fmt" "net/http" ) func init() { http.HandleFunc("/", handler) fmt.Println("listening...") } func handler(w http.ResponseWriter, r *http.Request) { // Read the Request Parameter "command" command := r.FormValue("command") if command == "/9gag" { fmt.Fprint(w, "Hello World") } el...
package main import ( "fmt" "net/http" "os" ) func main() { http.HandleFunc("/", handler) fmt.Println("listening...") err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) if err != nil { panic(err) } } func handler(w http.ResponseWriter, r *http.Request) { // Read the Request Parameter "command" comman...
Change package name to main. Add ListenAndServ.
Change package name to main. Add ListenAndServ.
Go
mit
jayeshsolanki93/slack9gag
go
## Code Before: package slack9gag import ( "fmt" "net/http" ) func init() { http.HandleFunc("/", handler) fmt.Println("listening...") } func handler(w http.ResponseWriter, r *http.Request) { // Read the Request Parameter "command" command := r.FormValue("command") if command == "/9gag" { fmt.Fprint(w, "Hel...
781a713640077a97f0a73e0a3b66114f50cc7ffa
run_tests.sh
run_tests.sh
function display_result { RESULT=$1 EXIT_STATUS=$2 TEST=$3 if [ $RESULT -ne 0 ]; then echo echo -e "\033[31m$TEST failed\033[0m" echo exit $EXIT_STATUS else echo echo -e "\033[32m$TEST passed\033[0m" echo fi } basedir=$(dirname $0) venvdir=~/.virtuale...
function display_result { RESULT=$1 EXIT_STATUS=$2 TEST=$3 if [ $RESULT -ne 0 ]; then echo echo -e "\033[31m$TEST failed\033[0m" echo exit $EXIT_STATUS else echo echo -e "\033[32m$TEST passed\033[0m" echo fi } GOVUK_ENV=test basedir=$(dirname $0) venvd...
Set environment to test when running tests.
Set environment to test when running tests. @maxfliri @robyoung
Shell
mit
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
shell
## Code Before: function display_result { RESULT=$1 EXIT_STATUS=$2 TEST=$3 if [ $RESULT -ne 0 ]; then echo echo -e "\033[31m$TEST failed\033[0m" echo exit $EXIT_STATUS else echo echo -e "\033[32m$TEST passed\033[0m" echo fi } basedir=$(dirname $0) ven...
880afe29419e5631536e82d142258f3db97a5f68
apps/dynamic/views/_posts/what-makes-a-great-product-owner.md
apps/dynamic/views/_posts/what-makes-a-great-product-owner.md
--- layout: post author: theo title: "What makes a great product owner? - Cucumber Podcast" date: 2016-01-26 09:00:00 nav: blog --- In this episode we speak to Megan Folsom, a renegade product owner with sage advice for aspiring POs. We explore the conflicts and contradictions of the role, how the PO c...
--- layout: post author: theo title: "What makes a great product owner? - Cucumber Podcast" date: 2016-01-26 09:00:00 nav: blog --- In this episode we speak to Megan Folsom, a renegade product owner with sage advice for aspiring POs. We explore the conflicts and contradictions of the role, how the PO c...
Change height of Soundcloud embedded link
Change height of Soundcloud embedded link
Markdown
mit
cucumber/website,cucumber/website,cucumber/website
markdown
## Code Before: --- layout: post author: theo title: "What makes a great product owner? - Cucumber Podcast" date: 2016-01-26 09:00:00 nav: blog --- In this episode we speak to Megan Folsom, a renegade product owner with sage advice for aspiring POs. We explore the conflicts and contradictions of the ro...
5577ad92d2e9f7c4f40fa20be11c62dcc9a4f48c
incuna-sass/mixins/_sprites.sass
incuna-sass/mixins/_sprites.sass
$sprites-1x: sprite-map("1x/sprite-files/*.png", $layout: smart) $sprites-2x: sprite-map("2x/sprite-files/*.png", $spacing: 5px) @mixin sprite-1x background: image: sprite-url($sprites-1x) repeat: no-repeat @mixin sprite-2x @include media($hidpi) background: image: sprite-u...
$sprites-1x: sprite-map("1x/sprite-files/*.png", $layout: smart) $sprites-2x: sprite-map("2x/sprite-files/*.png", $spacing: 5px) @mixin sprite-1x background: image: sprite-url($sprites-1x) repeat: no-repeat @mixin sprite-2x @include media($hidpi) background: image: sprite-u...
Revert "Round 2x sprite values instead of ceiling them."
Revert "Round 2x sprite values instead of ceiling them." This reverts commit f8a714ff1cdc51bcf81bb1003d08a366573a036b.
Sass
mit
incuna/incuna-sass
sass
## Code Before: $sprites-1x: sprite-map("1x/sprite-files/*.png", $layout: smart) $sprites-2x: sprite-map("2x/sprite-files/*.png", $spacing: 5px) @mixin sprite-1x background: image: sprite-url($sprites-1x) repeat: no-repeat @mixin sprite-2x @include media($hidpi) background: ...
62e3878867a3dcc0a1f5a484bd541c7055f9ccd6
.travis.yml
.travis.yml
language: go node_js: - "5" install: - nvm use 5.11 - npm install dredd -g - bundle install go_import_path: github.com/snikch/goodman script: - go test github.com/snikch/goodman/{,/transaction,/hooks} - bundle exec cucumber
language: go node_js: - "5" install: - nvm install 5.11 && nvm use 5.11 - npm install dredd -g - bundle install go_import_path: github.com/snikch/goodman script: - go test github.com/snikch/goodman/{,/transaction,/hooks} - bundle exec cucumber
Install 5.11 before trying to use it
Install 5.11 before trying to use it
YAML
mit
snikch/goodman,snikch/goodman,IngmarStein/goodman,IngmarStein/goodman
yaml
## Code Before: language: go node_js: - "5" install: - nvm use 5.11 - npm install dredd -g - bundle install go_import_path: github.com/snikch/goodman script: - go test github.com/snikch/goodman/{,/transaction,/hooks} - bundle exec cucumber ## Instruction: Install 5.11 before trying to use it ## Code Af...
90edd68d14987a6e95f4bca01c5658b148f28e4b
laravel/bootstrap/app.php
laravel/bootstrap/app.php
<?php use Orchestra\Testbench\Console\Commander; $APP_KEY = $_SERVER['APP_KEY'] ?? $_ENV['APP_KEY'] ?? 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF'; $DB_CONNECTION = $_SERVER['DB_CONNECTION'] ?? $_ENV['DB_CONNECTION'] ?? 'testing'; $config = ['env' => ['APP_KEY="'.$APP_KEY.'"', 'DB_CONNECTION="'.$DB_CONNECTION.'"'], 'provide...
<?php use Orchestra\Testbench\Console\Commander; $APP_KEY = $_SERVER['APP_KEY'] ?? $_ENV['APP_KEY'] ?? 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF'; $DB_CONNECTION = $_SERVER['DB_CONNECTION'] ?? $_ENV['DB_CONNECTION'] ?? 'testing'; $config = ['env' => ['APP_KEY="'.$APP_KEY.'"', 'DB_CONNECTION="'.$DB_CONNECTION.'"'], 'provide...
Use getcwd() to determine working path.
Use getcwd() to determine working path. Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
PHP
mit
orchestral/testbench-core,orchestral/testbench-core
php
## Code Before: <?php use Orchestra\Testbench\Console\Commander; $APP_KEY = $_SERVER['APP_KEY'] ?? $_ENV['APP_KEY'] ?? 'AckfSECXIvnK5r28GVIWUAxmbBSjTsmF'; $DB_CONNECTION = $_SERVER['DB_CONNECTION'] ?? $_ENV['DB_CONNECTION'] ?? 'testing'; $config = ['env' => ['APP_KEY="'.$APP_KEY.'"', 'DB_CONNECTION="'.$DB_CONNECTIO...
f510dc8aee5ed4b03ea7cd187d6abede4ca1870a
test/point-test.js
test/point-test.js
const chai = require('chai'); const assert = chai.assert; const Player = require('../lib/player'); const Point = require('../lib/point'); const Vector = require('../lib/vector'); const Edge = require('../lib/edge'); // describe('Point', function(){ // context('returns new vector', function() { // var // it...
const chai = require('chai'); const assert = chai.assert; const Player = require('../lib/player'); const Point = require('../lib/point'); const Vector = require('../lib/vector'); const Edge = require('../lib/edge'); describe('Point', function(){ context('returns new vector', function() { it('should return coor...
Add begin testing of point
Add begin testing of point
JavaScript
mit
afg419/battlezone,afg419/battlezone
javascript
## Code Before: const chai = require('chai'); const assert = chai.assert; const Player = require('../lib/player'); const Point = require('../lib/point'); const Vector = require('../lib/vector'); const Edge = require('../lib/edge'); // describe('Point', function(){ // context('returns new vector', function() { // ...
df5ba2a41713eb6454146020eff03c73eb682bb7
src/engine/project.ini
src/engine/project.ini
; -*- coding: utf-8; mode: config; indent-tabs-mode: nil; indent-width: 4; -*- ; ; OCO WORKING SET TOOLCHAIN ; Copyright (C) 2017 Arqadium. All rights reserved. ; ; This Source Code Form is subject to the terms of the Mozilla Public License, ; version 2.0. If a copy of the MPL was not distributed with this file, then ...
; -*- coding: utf-8; mode: config; indent-tabs-mode: nil; indent-width: 4; -*- ; ; OCO WORKING SET TOOLCHAIN ; Copyright (C) 2017 Arqadium. All rights reserved. ; ; This Source Code Form is subject to the terms of the Mozilla Public License, ; version 2.0. If a copy of the MPL was not distributed with this file, then ...
Remove internal lib dependencies, fix custom naming of SFML
Remove internal lib dependencies, fix custom naming of SFML
INI
mpl-2.0
arqadium/oco-engine,arqadium/oco-engine
ini
## Code Before: ; -*- coding: utf-8; mode: config; indent-tabs-mode: nil; indent-width: 4; -*- ; ; OCO WORKING SET TOOLCHAIN ; Copyright (C) 2017 Arqadium. All rights reserved. ; ; This Source Code Form is subject to the terms of the Mozilla Public License, ; version 2.0. If a copy of the MPL was not distributed with ...
a2707c93ffb6f6ef3d24c6c8c58e58318fbf6c1e
src/Leaves/Site/Product/ProductCollection.php
src/Leaves/Site/Product/ProductCollection.php
<?php namespace SuperCMS\Leaves\Site\Product; use Rhubarb\Leaf\Crud\Leaves\ModelBoundModel; use SuperCMS\Leaves\Site\Search\SearchLeaf; class ProductCollection extends SearchLeaf { protected function getViewClass() { return ProductCollectionView::class; } protected function createModel() ...
<?php namespace SuperCMS\Leaves\Site\Product; use SuperCMS\Leaves\Site\Search\SearchLeaf; class ProductCollection extends SearchLeaf { protected function getViewClass() { return ProductCollectionView::class; } }
Make sure SearchLeaf gets given a SearchModel for correct functions
Make sure SearchLeaf gets given a SearchModel for correct functions
PHP
apache-2.0
rojr/SuperCMS,rojr/SuperCMS
php
## Code Before: <?php namespace SuperCMS\Leaves\Site\Product; use Rhubarb\Leaf\Crud\Leaves\ModelBoundModel; use SuperCMS\Leaves\Site\Search\SearchLeaf; class ProductCollection extends SearchLeaf { protected function getViewClass() { return ProductCollectionView::class; } protected function c...
7f53e66be4e49f9352dbc4175e7d3c6da3407863
doc/CMakeLists.txt
doc/CMakeLists.txt
file(GLOB _manpages *.[0-9].txt) add_custom_target(man COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) add_custom_target(userguide COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh csync.txt WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR...
include(UseDoxygen OPTIONAL) file(GLOB _manpages *.[0-9].txt) add_custom_target(man COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) add_custom_target(userguide COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh csync.txt WORKING_DIRECTORY ...
Enable doxygen for developer documentation again.
Enable doxygen for developer documentation again.
Text
lgpl-2.1
meeh420/csync,gco/csync,meeh420/csync,meeh420/csync,gco/csync,gco/csync,gco/csync
text
## Code Before: file(GLOB _manpages *.[0-9].txt) add_custom_target(man COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) add_custom_target(userguide COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh csync.txt WORKING_DIRECTORY ${CMAKE_CU...
03dc3d10eda0ef3465bb294750295f1311d171b6
app/models/business.rb
app/models/business.rb
class Business < ActiveRecord::Base enum theme: { wine: 0, beer: 1, whiskey: 2, coffee: 3 } has_many :flights belongs_to :flight validates :name, :location, :rating, presence: true end
class Business < ActiveRecord::Base enum theme: { wine: 0, beer: 1, whiskey: 2, coffee: 3 } has_many :flights belongs_to :flight validates :name, :location, :rating, presence: true geocoded_by :location after_validation :geocode end
Add Business model validations for geocoder
Add Business model validations for geocoder
Ruby
mit
DBC-Huskies/flight-app,DBC-Huskies/flight-app,DBC-Huskies/flight-app
ruby
## Code Before: class Business < ActiveRecord::Base enum theme: { wine: 0, beer: 1, whiskey: 2, coffee: 3 } has_many :flights belongs_to :flight validates :name, :location, :rating, presence: true end ## Instruction: Add Business model validations for geocoder ## Code After: class Business < ActiveRecord::B...
776649affe45e648653cd87b235dbe10726aebbf
karma.headless.js
karma.headless.js
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ // Karma configuration module.exports = function(config) { var sharedConf = require('./karma.shared')(config); // Coverage sharedConf.browserify.transform.push([ 'browserify-istanbu...
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ // Karma configuration module.exports = function(config) { var sharedConf = require('./karma.shared')(config); // Coverage sharedConf.browserify.transform.push([ 'browserify-istanbu...
Add more ignores to coverage, as well as explaining exceptions
Add more ignores to coverage, as well as explaining exceptions
JavaScript
mit
sandy-adi/scrollable,karyboy/scrollable,cesarandreu/scrollable,karyboy/scrollable,cesarandreu/scrollable,yahoo/scrollable,yahoo/scrollable
javascript
## Code Before: /* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ // Karma configuration module.exports = function(config) { var sharedConf = require('./karma.shared')(config); // Coverage sharedConf.browserify.transform.push([ 'br...
5d73d9bbce416c46c6d9ebdf8491e2f0e69c2236
testtest/main_test.go
testtest/main_test.go
package main import ( "testing" "fmt" ) type squareTest struct { in, out int } var squareTests = []squareTest{ squareTest{1, 1}, squareTest{2, 4}, squareTest{5, 25}, squareTest{-2, 4}, } // テスト. func TestSqure( t *testing.T) { for _, st := range squareTests { v := Square(st.in) if v != st.out { t.Err...
package main import ( "testing" "fmt" ) type squareTest struct { in, out int } var squareTests = []squareTest{ squareTest{1, 1}, squareTest{2, 4}, squareTest{5, 25}, squareTest{-2, 4}, } // テスト. func TestSqure( t *testing.T) { for _, st := range squareTests { v := Square(st.in) if v != st.out { t.Err...
Add a sample code for execution in terminal.
Add a sample code for execution in terminal.
Go
mit
yoheiMune/MyGoProject,yoheiMune/MyGoProject
go
## Code Before: package main import ( "testing" "fmt" ) type squareTest struct { in, out int } var squareTests = []squareTest{ squareTest{1, 1}, squareTest{2, 4}, squareTest{5, 25}, squareTest{-2, 4}, } // テスト. func TestSqure( t *testing.T) { for _, st := range squareTests { v := Square(st.in) if v != s...
a40a5aba9631c81c1e3b762d883453e58e46c4f2
recipes/rpm-tools/build.sh
recipes/rpm-tools/build.sh
LUA_VERSION=$(lua -v | cut -f 2 -d ' ') (sed -e "s@LUA_VERSION@${LUA_VERSION}@g" -e "s@CONDA_PREFIX@${PREFIX}@g" | \ sed -E "s@^(V=.+)\.[0-9]+@\1@g" \ > "lua.pc") << "EOF" V=LUA_VERSION R=LUA_VERSION prefix=CONDA_PREFIX INSTALL_BIN=${prefix}/bin INSTALL_INC=${prefix}/include INSTALL_LIB=${prefix}/lib INSTALL_MAN=${...
./configure \ --prefix="${PREFIX}" \ --enable-python \ --with-external-db \ --with-lua \ --with-cap \ PYTHON="${PYTHON}" make "-j${CPU_COUNT}" install make check make installcheck "${PYTHON}" -m pip install ./python -vv
Remove hack for lua pkg-config file
Remove hack for lua pkg-config file
Shell
bsd-3-clause
goanpeca/staged-recipes,jochym/staged-recipes,stuertz/staged-recipes,scopatz/staged-recipes,SylvainCorlay/staged-recipes,johanneskoester/staged-recipes,goanpeca/staged-recipes,patricksnape/staged-recipes,conda-forge/staged-recipes,petrushy/staged-recipes,igortg/staged-recipes,mariusvniekerk/staged-recipes,patricksnape/...
shell
## Code Before: LUA_VERSION=$(lua -v | cut -f 2 -d ' ') (sed -e "s@LUA_VERSION@${LUA_VERSION}@g" -e "s@CONDA_PREFIX@${PREFIX}@g" | \ sed -E "s@^(V=.+)\.[0-9]+@\1@g" \ > "lua.pc") << "EOF" V=LUA_VERSION R=LUA_VERSION prefix=CONDA_PREFIX INSTALL_BIN=${prefix}/bin INSTALL_INC=${prefix}/include INSTALL_LIB=${prefix}/li...
0de340d41e44bb1057ead9f8d61b47f32732eabb
start.py
start.py
import github import github_token import repositories import tagsparser import flock def main(): g = github.Github(github_token.GITHUB_TOKEN) for repo in repositories.REPOSITORIES: tags, releases = g.get_tags_and_releases(repo["owner"], repo["name"], repositories.COUNT) print "Got", tags, rele...
import github import github_token import repositories import tagsparser import flock def main(): g = github.Github(github_token.GITHUB_TOKEN) for repo in repositories.REPOSITORIES: tags, releases = g.get_tags_and_releases(repo["owner"], repo["name"], repositories.COUNT) print "Got", [t.version...
Fix version printing of tags and releases
Fix version printing of tags and releases
Python
mit
ayushgoel/LongShot
python
## Code Before: import github import github_token import repositories import tagsparser import flock def main(): g = github.Github(github_token.GITHUB_TOKEN) for repo in repositories.REPOSITORIES: tags, releases = g.get_tags_and_releases(repo["owner"], repo["name"], repositories.COUNT) print "...
b5bf2ad6bda30f3296a42783b8d0766fcbe86018
demo/templates/cache-info.html
demo/templates/cache-info.html
<div class="row"> <div class="col-md-6" ng-if="showMinfo"> <table class="table table-striped"> <tbody> <tr ng-repeat="(key, value) in mInfo"> <td style="font-weight: bold">{{ key }}</td> <td>{{ value }}</td> </tr> </tbody> ...
<div class="row"> <div class="col-md-6" ng-if="showMinfo"> <table class="table table-striped"> <tbody> <tr ng-repeat="(key, value) in mInfo"> <td style="font-weight: bold">{{ key }}</td> <td>{{ value }}</td> </tr> </tbody> ...
Move message box to the bottom of the page in cache management page
Move message box to the bottom of the page in cache management page
HTML
apache-2.0
YourDataStories/components-visualisation,YourDataStories/components-visualisation,YourDataStories/components-visualisation
html
## Code Before: <div class="row"> <div class="col-md-6" ng-if="showMinfo"> <table class="table table-striped"> <tbody> <tr ng-repeat="(key, value) in mInfo"> <td style="font-weight: bold">{{ key }}</td> <td>{{ value }}</td> </tr> ...
7a8de0fccd15e92b14377a6ad47f799db4b74443
server.js
server.js
var http = require('http'); var PORT = 80; var IP = '127.0.0.1'; http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(PORT, IP); console.log('Server running at http://' + IP + ':' + PORT + '/');
var http = require('http'); var PORT = 80; http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(PORT); console.log('ZoomHub running at http://localhost:' + PORT + '/');
Make app listen to public port
Make app listen to public port Omit hostname to ensure app is accessible via Internet, i.e. hostname MUST be `0.0.0.0`, not `127.0.0.1`. /cc @iangilman @kenperkins @aseemk
JavaScript
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
javascript
## Code Before: var http = require('http'); var PORT = 80; var IP = '127.0.0.1'; http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(PORT, IP); console.log('Server running at http://' + IP + ':' + PORT + '/'); ## Instruction: Make app l...
7c62fe768c9dfba3b60acef18495c12f87ec4bf9
.travis.yml
.travis.yml
sudo: true language: ruby rvm: - 2.3.4 before_install: - docker-compose --version - docker-compose pull - docker-compose build - docker-compose start - docker ps - gem install bundler -v 1.15.3
sudo: true language: ruby rvm: - 2.3.4 before_install: - docker-compose --version - docker-compose up -d - docker ps - gem install bundler -v 1.15.3
Replace docker pull, build, start etc with up -d
Replace docker pull, build, start etc with up -d
YAML
apache-2.0
iaintshine/ruby-rails-tracer,iaintshine/ruby-rails-tracer,iaintshine/ruby-rails-tracer,iaintshine/ruby-rails-tracer
yaml
## Code Before: sudo: true language: ruby rvm: - 2.3.4 before_install: - docker-compose --version - docker-compose pull - docker-compose build - docker-compose start - docker ps - gem install bundler -v 1.15.3 ## Instruction: Replace docker pull, build, start etc with up -d ## Code After: sudo: true la...
d36bb468245ad7e2e40a96e7d01a0a75133725a9
README.md
README.md
CSS styleguide generator ## Installation ``` gem install cssdoc ``` ## Usage Write a document as comment for your css(scss, sass) in Github Flavored Markdown. ```css /* # .button basic button design  ``` <button class="button"> button </button> <button class="button danger"> danger </button>  `...
CSS styleguide generator ## Installation ``` git clone git@github.com:r7kamura/cssdoc.git cd cssdoc bundle install bundle exec rake install ``` ## Usage Write a document as comment for your css(scss, sass) in Github Flavored Markdown. ```css /* # .button basic button design  ``` <button class="button"> bu...
Fix installation because cssdoc.gem is already used
Fix installation because cssdoc.gem is already used
Markdown
mit
r7kamura/cssdoc,r7kamura/cssdoc
markdown
## Code Before: CSS styleguide generator ## Installation ``` gem install cssdoc ``` ## Usage Write a document as comment for your css(scss, sass) in Github Flavored Markdown. ```css /* # .button basic button design  ``` <button class="button"> button </button> <button class="button danger"> dange...
d0658e7ae8443e319b00b784bb4613153580f096
.travis.yml
.travis.yml
language: go go: - 1.2 - 1.3 - 1.4 - 1.5 - tip env: - GOARCH=386 - GOARCH=amd64 matrix: allow_failures: - go: tip install: - go get github.com/smartystreets/goconvey - go get github.com/pborman/uuid - go get github.com/go-errors/errors
language: go go: - 1.2 - 1.3 - 1.4 - 1.5 - 1.6 - 1.7 - 1.8 - 1.9 - 1.10 - 1.11 - 1.12 - tip env: - GOARCH=386 - GOARCH=amd64 matrix: allow_failures: - go: tip install: - go get github.com/smartystreets/goconvey - go get github.com/pborman/uuid - go get github.com/go-errors/errors
Add more build versions to see where uuid changes are supported
Add more build versions to see where uuid changes are supported
YAML
mit
MindscapeHQ/raygun4go
yaml
## Code Before: language: go go: - 1.2 - 1.3 - 1.4 - 1.5 - tip env: - GOARCH=386 - GOARCH=amd64 matrix: allow_failures: - go: tip install: - go get github.com/smartystreets/goconvey - go get github.com/pborman/uuid - go get github.com/go-errors/errors ## Instruction: Add more build versions to...
a396b3db8db6994f13dc0bf262a5094511cf2de1
data/ks.cfg
data/ks.cfg
install keyboard us lang en_US.UTF-8 network --device eth0 --bootproto dhcp rootpw whatever firewall --disabled authconfig --enableshadow --enablemd5 selinux --enforcing timezone --utc Europe/Helsinki bootloader --location=mbr zerombr clearpart --all --drives=sda part biosboot --fstype=biosboot --size=1 part /boot --f...
install keyboard us lang en_US.UTF-8 network --device eth0 --bootproto dhcp rootpw whatever firewall --disabled authconfig --enableshadow --enablemd5 selinux --enforcing timezone --utc Europe/Helsinki bootloader --location=mbr zerombr clearpart --all --drives=sda part biosboot --fstype=biosboot --size=1 part /boot --f...
Install QXL on Fedora guests
Install QXL on Fedora guests https://bugzilla.gnome.org/show_bug.cgi?id=665333
INI
lgpl-2.1
vbenes/gnome-boxes,vbenes/gnome-boxes
ini
## Code Before: install keyboard us lang en_US.UTF-8 network --device eth0 --bootproto dhcp rootpw whatever firewall --disabled authconfig --enableshadow --enablemd5 selinux --enforcing timezone --utc Europe/Helsinki bootloader --location=mbr zerombr clearpart --all --drives=sda part biosboot --fstype=biosboot --size=...
036a89ce97d8160fe6b4cb10a95f3cf9e8a855ff
Lib/test/test_openpty.py
Lib/test/test_openpty.py
import os from test.test_support import verbose, TestFailed, TestSkipped try: if verbose: print "Calling os.openpty()" master, slave = os.openpty() if verbose: print "(master, slave) = (%d, %d)"%(master, slave) except AttributeError: raise TestSkipped, "No openpty() available." if not...
import os from test.test_support import verbose, TestFailed, TestSkipped try: if verbose: print "Calling os.openpty()" master, slave = os.openpty() if verbose: print "(master, slave) = (%d, %d)"%(master, slave) except AttributeError: raise TestSkipped, "No openpty() available." if not...
Remove bogus test; the master is not a terminal on Solaris and HP-UX.
Remove bogus test; the master is not a terminal on Solaris and HP-UX.
Python
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
python
## Code Before: import os from test.test_support import verbose, TestFailed, TestSkipped try: if verbose: print "Calling os.openpty()" master, slave = os.openpty() if verbose: print "(master, slave) = (%d, %d)"%(master, slave) except AttributeError: raise TestSkipped, "No openpty() ava...
00ddc1d18988d039e059e66549aa9925fdb8460e
README.md
README.md
<p align="center"> <img src="http://res.cloudinary.com/dkxp3eifs/image/upload/c_scale,w_200/v1465057926/go-bc-logo_ofgay7.png"/> </p> # Trabandcamp Download tracks from bandcamp **GO** style Installation - Download the latest binary from the [releases](https://github.com/stefanoschrs/trabandcamp/releases) page Usag...
<p align="center"> <img src="http://res.cloudinary.com/dkxp3eifs/image/upload/c_scale,w_200/v1465057926/go-bc-logo_ofgay7.png"/> </p> # Trabandcamp [![Build Status](https://travis-ci.org/stefanoschrs/trabandcamp.svg?branch=master)](https://travis-ci.org/stefanoschrs/trabandcamp) Download tracks from bandcamp **GO** s...
Add travis build status :boom:
Add travis build status :boom:
Markdown
mit
stefanoschrs/trabandcamp,stefanoschrs/trabandcamp
markdown
## Code Before: <p align="center"> <img src="http://res.cloudinary.com/dkxp3eifs/image/upload/c_scale,w_200/v1465057926/go-bc-logo_ofgay7.png"/> </p> # Trabandcamp Download tracks from bandcamp **GO** style Installation - Download the latest binary from the [releases](https://github.com/stefanoschrs/trabandcamp/rele...
d69a71fe0c54170042988dd4d5200e0ce2a8d3bb
test/safe/relative-path-loading.js
test/safe/relative-path-loading.js
var fork = require('child_process').fork var path = require('path') var grabStdio = require('../grab-stdio') module.exports = { 'loads scripts from a relative path': function (done) { var stdio = {} var child = fork('../../../cli', [], { cwd: path.join(__dirname, '..', 'fixtures', 'relative-path-loadin...
var fork = require('child_process').fork var path = require('path') var grabStdio = require('../grab-stdio') module.exports = { 'loads scripts from a relative path': function (done) { var stdio = {} var windowsSuffix = process.platform === 'win32' ? '-win' : '' var child = fork('../../../cli', [], { ...
Fix relative path test on windows
Fix relative path test on windows
JavaScript
mit
testdouble/scripty,testdouble/scripty
javascript
## Code Before: var fork = require('child_process').fork var path = require('path') var grabStdio = require('../grab-stdio') module.exports = { 'loads scripts from a relative path': function (done) { var stdio = {} var child = fork('../../../cli', [], { cwd: path.join(__dirname, '..', 'fixtures', 'rela...
abf351e1c0764011dd0a24bd22770468b8dd082b
.travis.yml
.travis.yml
language: node_js node_js: - '4.6' cache: directories: - node_modules script: - npm i -g gulp - npm i - gulp build - gulp deploy # - git config user.email "guiilherme.bayer@gmail.com" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `git subtr...
language: node_js node_js: - '4.6' cache: directories: - node_modules script: - npm i -g gulp - npm i - git checkout develop - gulp build # - git config user.email "guiilherme.bayer@gmail.com" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `...
Fix in the current branch
Fix in the current branch
YAML
mit
guuibayer/notificat
yaml
## Code Before: language: node_js node_js: - '4.6' cache: directories: - node_modules script: - npm i -g gulp - npm i - gulp build - gulp deploy # - git config user.email "guiilherme.bayer@gmail.com" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push o...
b8814ddd35a32495357ad04b293658cb8a18c79d
lib/resque_unit.rb
lib/resque_unit.rb
module ResqueUnit end begin require 'yajl' rescue LoadError require 'json' end require 'resque_unit/helpers' require 'resque_unit/resque' require 'resque_unit/errors' require 'resque_unit/assertions' require 'resque_unit/plugin' if defined?(Test::Unit) Test::Unit::TestCase.send(:include, ResqueUnit::Assertions...
module ResqueUnit end begin require 'yajl' rescue LoadError require 'json' end require 'resque_unit/helpers' require 'resque_unit/resque' require 'resque_unit/errors' require 'resque_unit/assertions' require 'resque_unit/plugin' if defined?(Test::Unit) Test::Unit::TestCase.send(:include, ResqueUnit::Assertions...
Support renamed module and class in Minitest 5
Support renamed module and class in Minitest 5
Ruby
mit
justinweiss/resque_unit,mikz/resque_unit,zumobi/resque_unit
ruby
## Code Before: module ResqueUnit end begin require 'yajl' rescue LoadError require 'json' end require 'resque_unit/helpers' require 'resque_unit/resque' require 'resque_unit/errors' require 'resque_unit/assertions' require 'resque_unit/plugin' if defined?(Test::Unit) Test::Unit::TestCase.send(:include, Resque...
d2e5c38eba7a0c4496c0de14b39244b24bfe0725
views/partials/navMenu.handlebars
views/partials/navMenu.handlebars
<header class="main"> <a id="simple-menu" href="#sidr" style="float:left;"><button type="button">Menu</button></a> <h2 class="logo" style="padding-top:4px;"><a href="/" class="ss-list">Delp!</a></h2> <div id="sidr"> <ul> <li><a href="/map">Nearby</a></li> <li><a href="/favori...
<header class="main"> <a id="simple-menu" href="#sidr" style="float:left;"><button type="button">Menu</button></a> <h2 class="logo" style="padding-top:4px;"><a href="/" class="ss-list">Delp!</a></h2> <div id="sidr"> <ul> <li><a href="/">Home</a></li> <li><a href="/map">Nearby...
Add home button to menu panel
Add home button to menu panel
Handlebars
mit
kwyngarden/CS147-Project,darylchang/CS147-Project-Alternate,kwyngarden/CS147-Project,darylchang/CS147-Project-Alternate
handlebars
## Code Before: <header class="main"> <a id="simple-menu" href="#sidr" style="float:left;"><button type="button">Menu</button></a> <h2 class="logo" style="padding-top:4px;"><a href="/" class="ss-list">Delp!</a></h2> <div id="sidr"> <ul> <li><a href="/map">Nearby</a></li> <li>...
7f15cb2b2c03417d99d33774f65b09b09feb875a
app/views/admin/shared/pictures/_one.html.slim
app/views/admin/shared/pictures/_one.html.slim
- f.inputs 'Picture', for: [:picture, f.object.picture || Picture.new] do |item| - item.input :image, as: :file, label: I18n.t('form.label.picture'), hint: retina_image_tag(item.object, :image, :medium) - item.input :online, as: :boolean, h...
- f.inputs I18n.t('activerecord.models.picture.one'), for: [:picture, f.object.picture || Picture.new] do |item| - item.input :image, as: :file, label: I18n.t('form.label.picture'), hint: retina_image_tag(item.object, :image, :medium) + '<br/> N\'oubliez pas de sauvegarde...
Update I18n translation for Picture form
Update I18n translation for Picture form
Slim
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
slim
## Code Before: - f.inputs 'Picture', for: [:picture, f.object.picture || Picture.new] do |item| - item.input :image, as: :file, label: I18n.t('form.label.picture'), hint: retina_image_tag(item.object, :image, :medium) - item.input :online, as: :boolean, ...
0a4ac11a91aad6d9458e034e569d4cd3d5ed07dd
packages/co/convert.yaml
packages/co/convert.yaml
homepage: https://github.com/luna/convert changelog-type: '' hash: 7c7fcc5f75e2dec9adf10cadab6e00eb9802ea6e7167829fc12605b4f3db7928 test-bench-deps: {} maintainer: Wojciech Danilo <wojciech.danilo@luna-lang.org> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog:...
homepage: https://github.com/luna/convert changelog-type: '' hash: 3ad90cc24e7ea7630080ec5da8cfce82036d796b3bb01c3805078cf502d1d906 test-bench-deps: {} maintainer: Wojciech Danilo <wojciech.danilo@luna-lang.org> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog:...
Update from Hackage at 2018-06-10T16:02:19Z
Update from Hackage at 2018-06-10T16:02:19Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/luna/convert changelog-type: '' hash: 7c7fcc5f75e2dec9adf10cadab6e00eb9802ea6e7167829fc12605b4f3db7928 test-bench-deps: {} maintainer: Wojciech Danilo <wojciech.danilo@luna-lang.org> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. chec...
9f95a2ca3e46bf15e13bd2ba8843930322fecb08
Applications/MIDIMonitor/SourcesOutlineView.swift
Applications/MIDIMonitor/SourcesOutlineView.swift
/* Copyright (c) 2001-2020, Kurt Revis. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ import Cocoa class SourcesOutlineView: NSOutlineView { override func mouseDown(with event: NSEvent) { // Igno...
/* Copyright (c) 2001-2020, Kurt Revis. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ import Cocoa class SourcesOutlineView: NSOutlineView { override func mouseDown(with event: NSEvent) { // Igno...
Fix deprecation warning about event.context being deprecated and always nil on 10.12 and later
Fix deprecation warning about event.context being deprecated and always nil on 10.12 and later
Swift
bsd-3-clause
krevis/MIDIApps,krevis/MIDIApps,krevis/MIDIApps,krevis/MIDIApps,krevis/MIDIApps
swift
## Code Before: /* Copyright (c) 2001-2020, Kurt Revis. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ import Cocoa class SourcesOutlineView: NSOutlineView { override func mouseDown(with event: NSEvent) {...
bfbb6af4300359656b28277dd913c6004eb05376
src/accounts.js
src/accounts.js
const crypto = require('crypto'); const Accounts = function() { this.accounts = []; }; const Account = function() { this.username = ''; this.characters = []; this.password = null; this.karma = 0; this.uid = null; this.score = { totalKarma: 0, }; /* Mutators */ this.getUsernam...
const crypto = require('crypto'); const Accounts = function() { this.accounts = []; }; const Account = function() { this.username = ''; this.characters = []; this.password = null; this.karma = 0; this.uid = null; this.score = { totalKarma: 0, }; /* Mutators */ this.getUsernam...
Add helper funcs to get dead or living chars.
Add helper funcs to get dead or living chars.
JavaScript
mit
shawncplus/ranviermud,seanohue/ranviermud,seanohue/ranviermud
javascript
## Code Before: const crypto = require('crypto'); const Accounts = function() { this.accounts = []; }; const Account = function() { this.username = ''; this.characters = []; this.password = null; this.karma = 0; this.uid = null; this.score = { totalKarma: 0, }; /* Mutators */ ...
5df0315fb862582252e0b33114938a782aaab6fe
vagrantplugins.rb
vagrantplugins.rb
def install_plugins(plugins) not_installed = get_not_installed plugins if not_installed.any? puts "The following required plugins must be installed:" puts "'#{not_installed.join("', '")}'" print "Install? [y]/n: " unless STDIN.gets.chomp == "n" not_installed.each { |plugin| install_plugin(plug...
def install_plugins(plugins) not_installed = get_not_installed(plugins) if not_installed.any? puts "The following required plugins must be installed:" puts "'#{not_installed.join("', '")}'" print "Install? [y]/n: " unless STDIN.gets.chomp == "n" not_installed.each { |plugin| install_plugin(plu...
Make sure we continue with all switches after plugin install.
Make sure we continue with all switches after plugin install. Also adjusted style on function calls.
Ruby
agpl-3.0
hastexo/edx-configuration,appsembler/configuration,hks-epod/configuration,hks-epod/configuration,mitodl/configuration,EDUlib/configuration,stvstnfrd/configuration,proversity-org/configuration,michaelsteiner19/open-edx-configuration,arbrandes/edx-configuration,gsehub/configuration,edx/configuration,EDUlib/configuration,...
ruby
## Code Before: def install_plugins(plugins) not_installed = get_not_installed plugins if not_installed.any? puts "The following required plugins must be installed:" puts "'#{not_installed.join("', '")}'" print "Install? [y]/n: " unless STDIN.gets.chomp == "n" not_installed.each { |plugin| ins...
5114f63eb1c33d285232324a554dc1f0466ac171
chrome/browser/resources/options2/startup_overlay.html
chrome/browser/resources/options2/startup_overlay.html
<div id="startup-overlay" class="page" hidden> <div class="close-button"></div> <h1 i18n-content="startupPagesOverlay"></h1> <!-- This <input> element is always hidden. It needs to be here so that its 'controlled-by' attribute will get set when the urls preference is managed by a policy, so that the...
<div id="startup-overlay" class="page" hidden> <div class="close-button"></div> <h1 i18n-content="startupPagesOverlay"></h1> <!-- This <input> element is always hidden. It needs to be here so that its 'controlled-by' attribute will get set when the urls preference is managed by a policy, so that the...
Use button-strip for ok/cancel buttons in startup pages overlay.
Use button-strip for ok/cancel buttons in startup pages overlay. BUG=128172 TEST=Visually verify ok/cancel button order on Windows or ChromeOS. Review URL: https://chromiumcodereview.appspot.com/10383193 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@137353 0039d316-1c4b-4281-b951-d872f2087c98
HTML
bsd-3-clause
krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,zcbenz/cefode-chromium,dushu1203/chromium.src,ltilve...
html
## Code Before: <div id="startup-overlay" class="page" hidden> <div class="close-button"></div> <h1 i18n-content="startupPagesOverlay"></h1> <!-- This <input> element is always hidden. It needs to be here so that its 'controlled-by' attribute will get set when the urls preference is managed by a pol...
df28050390ef8378c938803feacb167465174581
lib/stepdown/step.rb
lib/stepdown/step.rb
module Stepdown class Step attr_accessor :count attr_reader :id, :regex def initialize(id, regex) @id = id @regex = regex @count = 0 end def <=>(other) other.count <=> self.count end def ==(other) self.id == other.id end end end
module Stepdown class Step attr_accessor :count attr_reader :id, :regex def initialize(id, regex) @id = id @regex = regex @count = 0 end def <=>(other) other.count <=> self.count end def ==(other) self.id == other.id end def to_s regex.inspe...
Add sensible to_s to Step
Add sensible to_s to Step
Ruby
mit
seancaffery/step-down,seancaffery/step-down,seancaffery/step-down
ruby
## Code Before: module Stepdown class Step attr_accessor :count attr_reader :id, :regex def initialize(id, regex) @id = id @regex = regex @count = 0 end def <=>(other) other.count <=> self.count end def ==(other) self.id == other.id end end end ## I...
055495ead2bfb901ff49ccf5ec4df3dea5a4a2f0
README.md
README.md
Minimalist [Luxafor](https://luxafor.com/) client application for macOS. ## How it works There are no explicit controls for the light, instead the light turns red when the 'Do Not Disturb' mode is enabled in the macOS Notification Center and green when it's disabled. When your computer goes to sleep mode or the appl...
Minimalist [Luxafor](https://luxafor.com/) client application for macOS. **NOTE:** Luxaforus is an open-source project that simply uses the Luxafor API and is not affiliated with Luxafor. For any support issues, please contact Luxafor directly! No planned development is happening on this project, features are added a...
Add affiliation disclaimer and project status to readme
Add affiliation disclaimer and project status to readme
Markdown
mit
traversals/luxaforus,traversals/luxaforus,traversals/luxaforus
markdown
## Code Before: Minimalist [Luxafor](https://luxafor.com/) client application for macOS. ## How it works There are no explicit controls for the light, instead the light turns red when the 'Do Not Disturb' mode is enabled in the macOS Notification Center and green when it's disabled. When your computer goes to sleep ...
853e13f21a9877f977ea1eb50e0c7c847d6478f7
bower.json
bower.json
{ "name": "sanitize.css", "version": "1.0.1", "author": "Zlatan Vasović", "description": "Minimal CSS normalization library", "homepage": "https://github.com/ZDroid/sanitize.css", "main": "sanitize.css", "keywords": [ "css", "normalize", "sanitize", "sanitize.css" ], "license": "MIT" }
{ "name": "sanitize.css", "version": "1.0.1", "author": "Zlatan Vasović", "description": "Minimal CSS normalization library", "homepage": "https://github.com/ZDroid/sanitize.css", "main": "sanitize.css", "keywords": [ "css", "normalize", "sanitize", "sanitize.css" ], "license": "MIT", ...
Remove development files from Bower package
Remove development files from Bower package
JSON
mit
ZDroid/sanitize.css
json
## Code Before: { "name": "sanitize.css", "version": "1.0.1", "author": "Zlatan Vasović", "description": "Minimal CSS normalization library", "homepage": "https://github.com/ZDroid/sanitize.css", "main": "sanitize.css", "keywords": [ "css", "normalize", "sanitize", "sanitize.css" ], "l...
bac2d7df0522ca6eda33b79fd8c5e88664dacc5c
README.md
README.md
pubstack ======== Publisher's DevStack ## Installation 1. Install [Vagrant](http://www.vagrantup.com/). 1. Install [VirtualBox](https://www.virtualbox.org/). 1. Install Ansible: - [Latest Releases Via Homebrew (Mac OSX)](http://docs.ansible.com/intro_installation.html#latest-releases-via-homebrew-mac-osx) - ...
pubstack ======== Publisher's DevStack ## Installation 1. Install [Vagrant](http://www.vagrantup.com/). 1. Install [VirtualBox](https://www.virtualbox.org/). 1. Install Ansible: - [Latest Releases Via Homebrew (Mac OSX)](http://docs.ansible.com/intro_installation.html#latest-releases-via-homebrew-mac-osx) - ...
Add Troubleshooting section to readme with VPN script info
Add Troubleshooting section to readme with VPN script info
Markdown
mit
ericduran/pubstack,aliaksei-yakhnenka/pubstack,NBCUTechnology/pubstack,dsilambarasan/stack_dev,NBCUTechnology/pubstack,dsilambarasan/stack_dev,ericduran/pubstack,aliaksei-yakhnenka/pubstack
markdown
## Code Before: pubstack ======== Publisher's DevStack ## Installation 1. Install [Vagrant](http://www.vagrantup.com/). 1. Install [VirtualBox](https://www.virtualbox.org/). 1. Install Ansible: - [Latest Releases Via Homebrew (Mac OSX)](http://docs.ansible.com/intro_installation.html#latest-releases-via-homebrew...
85efbda573e8988cfc69ce97e50789f4d1d6b66e
README.md
README.md
ng-w ==== Pure angularjs widgets. Installation for Development ----------- ### Node Version Manager curl https://raw.github.com/creationix/nvm/master/install.sh | sh Then follow the instructions. ### Node.js nvm install 0.10 ### Node Package Modules cd /path/to/ng-w npm install ### Grunt ...
ng-w ==== Pure angularjs widgets. Installation for Development ----------- ### Node Version Manager curl https://raw.github.com/creationix/nvm/master/install.sh | sh Then follow the instructions. NOTE: This script adds `nvm` command to `.bash_profile`. It may not work if you are using not `bash` shell (like `...
Add shell specific notes. Add initial CoffeeScript compile instruction.
Add shell specific notes. Add initial CoffeeScript compile instruction.
Markdown
mit
formstamp/formstamp,lykmapipo/formstamp,lykmapipo/formstamp,formstamp/formstamp,formstamp/formstamp,lykmapipo/formstamp
markdown
## Code Before: ng-w ==== Pure angularjs widgets. Installation for Development ----------- ### Node Version Manager curl https://raw.github.com/creationix/nvm/master/install.sh | sh Then follow the instructions. ### Node.js nvm install 0.10 ### Node Package Modules cd /path/to/ng-w npm install ...
b9c59ff76ab29e0d3ab7330b65395539bbd7654c
lib/generators/reso/templates/create_import_results.rb
lib/generators/reso/templates/create_import_results.rb
class CreateImportResults < ActiveRecord::Migration def change create_table :import_results do |t| t.references :import, index: true, foreign_key: true t.datetime :source_data_modified t.datetime :start_time t.datetime :end_time t.text :found_listing_keys t.tex...
class CreateImportResults < ActiveRecord::Migration def change create_table :import_results do |t| t.references :import, index: true, foreign_key: true t.datetime :source_data_modified t.datetime :start_time t.datetime :end_time t.text :found_listing_keys, :limit => ...
Update found_listing_keys, removed_listing_keys and snapshots to longtext.
Update found_listing_keys, removed_listing_keys and snapshots to longtext.
Ruby
mit
arcticleo/reso_data_dictionary,arcticleo/reso_data_dictionary
ruby
## Code Before: class CreateImportResults < ActiveRecord::Migration def change create_table :import_results do |t| t.references :import, index: true, foreign_key: true t.datetime :source_data_modified t.datetime :start_time t.datetime :end_time t.text :found_listing_...
385d5e332b99a561c5130238ddb126b5e820a51b
Casks/apache-directory-studio.rb
Casks/apache-directory-studio.rb
cask 'apache-directory-studio' do version '2.0.0.v20150606-M9' sha256 '9eca84d081a500fec84943600723782a6edac05eeab6791fe8a964e49c6d834e' # apache.org is the official download host per the vendor homepage url "http://www.us.apache.org/dist/directory/studio/#{version}/ApacheDirectoryStudio-#{version}-macosx.coco...
cask 'apache-directory-studio' do version '2.0.0.v20151221-M10' sha256 'b27d116ea6b79268a74ae5057bd542813e186a888c2b4abedd6a2eb83fc2a0d5' # apache.org is the official download host per the vendor homepage url "http://www.us.apache.org/dist/directory/studio/#{version}/ApacheDirectoryStudio-#{version}-macosx.coc...
Update Apache Directory Studio (2.0.0.v20151221-M10)
Update Apache Directory Studio (2.0.0.v20151221-M10)
Ruby
bsd-2-clause
jeanregisser/homebrew-cask,BenjaminHCCarr/homebrew-cask,n0ts/homebrew-cask,caskroom/homebrew-cask,stephenwade/homebrew-cask,pacav69/homebrew-cask,elyscape/homebrew-cask,thomanq/homebrew-cask,lumaxis/homebrew-cask,lucasmezencio/homebrew-cask,morganestes/homebrew-cask,johnjelinek/homebrew-cask,miccal/homebrew-cask,decrem...
ruby
## Code Before: cask 'apache-directory-studio' do version '2.0.0.v20150606-M9' sha256 '9eca84d081a500fec84943600723782a6edac05eeab6791fe8a964e49c6d834e' # apache.org is the official download host per the vendor homepage url "http://www.us.apache.org/dist/directory/studio/#{version}/ApacheDirectoryStudio-#{vers...
00122a448406a802a24ee126e73b05a150e3119e
mirror_to_github.sh
mirror_to_github.sh
cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin git@github.com:lapo-luchini/asn1js.git rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt mtn --quiet --authors=git-authors.txt --branches-file=git-branches.txt --import-marks=git-marks1.txt --export-marks=gi...
cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin git@github.com:lapo-luchini/asn1js.git rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt [ -f git-authors.txt ] || echo 'lapo@lapo.it = Lapo Luchini <lapo@lapo.it>' > git-authors.txt mtn ls branches --ignore...
Improve git export with automatic creation and update of authors and branches file.
Improve git export with automatic creation and update of authors and branches file.
Shell
isc
lapo-luchini/asn1js,lapo-luchini/asn1js,lapo-luchini/asn1js
shell
## Code Before: cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin git@github.com:lapo-luchini/asn1js.git rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt mtn --quiet --authors=git-authors.txt --branches-file=git-branches.txt --import-marks=git-marks1.txt -...
e49d3da8e3d74d114684fc367144430a7d86669b
src/main/scala/playscalajs/ScalaJSPlay.scala
src/main/scala/playscalajs/ScalaJSPlay.scala
package playscalajs import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ import sbt.Keys._ import sbt._ /** * Auto-plugin added to Scala.js projects */ object ScalaJSPlay extends AutoPlugin { override def requires = ScalaJSPlugin object autoImport { val mapSou...
package playscalajs import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ import sbt.Keys._ import sbt._ /** * Auto-plugin added to Scala.js projects */ object ScalaJSPlay extends AutoPlugin { override def requires = ScalaJSPlugin object autoImport { val mapSou...
Change mapSourceURI type to Option[String].
Change mapSourceURI type to Option[String].
Scala
apache-2.0
vmunier/sbt-web-scalajs,vmunier/sbt-web-scalajs
scala
## Code Before: package playscalajs import org.scalajs.sbtplugin.ScalaJSPlugin import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._ import sbt.Keys._ import sbt._ /** * Auto-plugin added to Scala.js projects */ object ScalaJSPlay extends AutoPlugin { override def requires = ScalaJSPlugin object autoImport ...
fe17a2b4115bdedd639b4c26a9a54ee33dbb5bf7
addon/array-pager.js
addon/array-pager.js
import Em from 'ember'; import ArraySlice from 'array-slice'; var get = Em.get; var set = Em.set; var ArrayPager = ArraySlice.extend({ // 1-based page: function (key, page) { var limit = get(this, 'limit'); var offset; // default value if (arguments.length <= 1) { offset = get(this, 'offset') || 0; ret...
import Em from 'ember'; import ArraySlice from 'array-slice'; var computed = Em.computed; var get = Em.get; var set = Em.set; var ArrayPager = ArraySlice.extend({ // 1-based page: computed('offset', 'limit', function (key, page) { var limit = get(this, 'limit'); var offset; // default value if (arguments.len...
Use `Ember.computed` instead of `Function.prototype.property`
Use `Ember.computed` instead of `Function.prototype.property`
JavaScript
mit
j-/ember-cli-array-pager,j-/ember-cli-array-pager
javascript
## Code Before: import Em from 'ember'; import ArraySlice from 'array-slice'; var get = Em.get; var set = Em.set; var ArrayPager = ArraySlice.extend({ // 1-based page: function (key, page) { var limit = get(this, 'limit'); var offset; // default value if (arguments.length <= 1) { offset = get(this, 'offse...
0160892c55bd4e7acdaf8fb4381b7e8bb8414114
.github/workflows/main.yml
.github/workflows/main.yml
name: CI # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is...
name: CI # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is...
Add retention limit and working-directory
Add retention limit and working-directory
YAML
apache-2.0
google/play-services-plugins,google/play-services-plugins
yaml
## Code Before: name: CI # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A...
aa6005c90eb6f6501b835863f3093d32f7a30435
app/views/prototypes/prototype/views/questions/employment-status-not-working-evidence.html
app/views/prototypes/prototype/views/questions/employment-status-not-working-evidence.html
{% extends "../question.html" %} {% block content %} <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <form method="post"> {{ govukRadios({ idPrefix: "employee-status-evidence", name: type + "[employmentStatusEvidence]", fieldset: { legend: { ...
{% extends "../question.html" %} {% block content %} <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <form method="post"> {{ govukRadios({ idPrefix: "employee-status-evidence", name: type + "[employmentStatusEvidence]", fieldset: { legend: { ...
Apply PYCA-1118 to live prototype
Apply PYCA-1118 to live prototype
HTML
mit
dwpdigitaltech/hrt-prototype,dwpdigitaltech/hrt-prototype,dwpdigitaltech/hrt-prototype
html
## Code Before: {% extends "../question.html" %} {% block content %} <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <form method="post"> {{ govukRadios({ idPrefix: "employee-status-evidence", name: type + "[employmentStatusEvidence]", fieldset: { ...
686cf97338eb396bca2a9fcf08a5ca59fea49396
index.md
index.md
--- layout: default permalink: / title: "Home" image: feature: home-feature-tall.jpg --- {% if page.image.feature %} <div class="page-lead" style="background-image:url({{ site.url }}/images/{{ page.image.feature }})"> <div class="wrap page-lead-content"> <h1>Lick Innovations</h1> <h2>A catchy slogan</h2> <a h...
--- layout: default permalink: / title: "Home" image: feature: home-feature-tall.jpg --- {% if page.image.feature %} <div class="page-lead" style="background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url({{ site.url }}/images/{{ page.image.feature }})"> <div class="wrap page-lead-content"> <h1>Lic...
Add bg gradient to image
Add bg gradient to image
Markdown
mit
lickinnovation/lickinnovation.github.io,lickinnovation/lickinnovation.github.io,lickinnovation/lickinnovation.github.io
markdown
## Code Before: --- layout: default permalink: / title: "Home" image: feature: home-feature-tall.jpg --- {% if page.image.feature %} <div class="page-lead" style="background-image:url({{ site.url }}/images/{{ page.image.feature }})"> <div class="wrap page-lead-content"> <h1>Lick Innovations</h1> <h2>A catchy sl...
545a3f4438cfe955a14e292a9c010200f30009f0
app/components/Comments/__tests__/CommentTree.spec.js
app/components/Comments/__tests__/CommentTree.spec.js
import React from 'react'; import { mount, shallow } from 'enzyme'; import CommentTree from '../CommentTree'; import comments from './fixtures/comments'; import { generateTreeStructure } from '../../../utils'; import { MemoryRouter } from 'react-router-dom'; describe('<CommentTree />', () => { const tree = generate...
import React from 'react'; import { mount, shallow } from 'enzyme'; import CommentTree from '../CommentTree'; import comments from './fixtures/comments'; import { generateTreeStructure } from '../../../utils'; import { MemoryRouter } from 'react-router-dom'; describe('<CommentTree />', () => { beforeAll(() => { ...
Add window.getselection() mock to commentTree test
Add window.getselection() mock to commentTree test Jsdom does not support window.getSelection(), which is used by the editor. So in any test fully mounting lego-editor to the dom, this needs to be mocked.
JavaScript
mit
webkom/lego-webapp,webkom/lego-webapp,webkom/lego-webapp
javascript
## Code Before: import React from 'react'; import { mount, shallow } from 'enzyme'; import CommentTree from '../CommentTree'; import comments from './fixtures/comments'; import { generateTreeStructure } from '../../../utils'; import { MemoryRouter } from 'react-router-dom'; describe('<CommentTree />', () => { const...
17241430ade8ae826a44dbd1a323d64085bc3811
java/testing/org/apache/derbyTesting/functionTests/tests/store/backupRestore1_app.properties
java/testing/org/apache/derbyTesting/functionTests/tests/store/backupRestore1_app.properties
ij.protocol=jdbc:derby: database=jdbc:derby:wombat;create=true;logDevice=extinout/br1logDir ij.showNoConnectionsAtStart=true ij.showNoCountForSelect=true usedefaults=true useextdirs=true
usedefaults=true useextdirs=true
Fix running of store/backupRestore1.java from suites.
Fix running of store/backupRestore1.java from suites. git-svn-id: e32e6781feeb0a0de14883205950ae267a8dad4f@178304 13f79535-47bb-0310-9956-ffa450edef68
INI
apache-2.0
apache/derby,trejkaz/derby,trejkaz/derby,apache/derby,trejkaz/derby,apache/derby,apache/derby
ini
## Code Before: ij.protocol=jdbc:derby: database=jdbc:derby:wombat;create=true;logDevice=extinout/br1logDir ij.showNoConnectionsAtStart=true ij.showNoCountForSelect=true usedefaults=true useextdirs=true ## Instruction: Fix running of store/backupRestore1.java from suites. git-svn-id: e32e6781feeb0a0de14883205950ae26...
93602ca157152f22bbbcf35216d5dadd6ad86e08
docker-entrypoint-initdb.d/reenable_auth.sh
docker-entrypoint-initdb.d/reenable_auth.sh
sed -i "s/host all all all trust/host all all all md5/" /var/lib/postgresql/data/pg_hba.conf
sed -i "s/host all all all trust/host all all all md5/" "${PGDATA}/pg_hba.conf"
Use PGDATA to find pg_hba.conf
Use PGDATA to find pg_hba.conf
Shell
apache-2.0
timescale/timescaledb-docker
shell
## Code Before: sed -i "s/host all all all trust/host all all all md5/" /var/lib/postgresql/data/pg_hba.conf ## Instruction: Use PGDATA to find pg_hba.conf ## Code After: sed -i "s/host all all all trust/host all all all md5/" "${PGDATA}/pg_hba.conf"
fd552dfd97f3f1e571d359076e0f21fd1af16e65
project/TemplateReplace.scala
project/TemplateReplace.scala
import java.io.PrintWriter import sbt.Keys.baseDirectory import sbt._ import scala.io.Source object TemplateReplace extends AutoPlugin { object autoImport { val mkdocsVariables = settingKey[Map[String, String]]("Variables that will be replaced with values") val mkdocs = taskKey[Unit]("Generates mkdocs doc...
import java.io.PrintWriter import sbt.Keys.baseDirectory import sbt._ import scala.io.Source object TemplateReplace extends AutoPlugin { object autoImport { val mkdocsVariables = settingKey[Map[String, String]]("Variables that will be replaced with values") val mkdocs = taskKey[Unit]("Generates mkdocs doc...
Fix mkdocs links that use variables
Fix mkdocs links that use variables
Scala
apache-2.0
rdbc-io/rdbc,rdbc-io/rdbc
scala
## Code Before: import java.io.PrintWriter import sbt.Keys.baseDirectory import sbt._ import scala.io.Source object TemplateReplace extends AutoPlugin { object autoImport { val mkdocsVariables = settingKey[Map[String, String]]("Variables that will be replaced with values") val mkdocs = taskKey[Unit]("Gene...
b0b3bd6b967a15701a3547ccd209cb19bc383bbc
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverter.java
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverter.java
package uk.ac.ebi.quickgo.annotation.service.converter; import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument; import uk.ac.ebi.quickgo.annotation.model.Annotation; /** * @author Tony Wardell * Date: 26/04/2016 * Time: 16:47 * Created with IntelliJ IDEA. */ public interface AnnotationDocConverte...
package uk.ac.ebi.quickgo.annotation.service.converter; import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument; import uk.ac.ebi.quickgo.annotation.model.Annotation; /** * Converts an {@link AnnotationDocument} into an instance of {@link Annotation}. * * @author Tony Wardell * Date: 26/04/2016 * ...
Improve more JavaDoc to interface.
Improve more JavaDoc to interface.
Java
apache-2.0
ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE
java
## Code Before: package uk.ac.ebi.quickgo.annotation.service.converter; import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument; import uk.ac.ebi.quickgo.annotation.model.Annotation; /** * @author Tony Wardell * Date: 26/04/2016 * Time: 16:47 * Created with IntelliJ IDEA. */ public interface Annot...
843c0f67c540a8d0fed0b73878ff27a4a6f320ec
README.md
README.md
My Family Tree saved in ged format
My Family Tree saved in ged format ![View of Family Tree](https://github.com/irishshagua/FamilyHistory/blob/master/myFamilyTree.svg "My FAmily Tree")
Add family tree image to readme
Add family tree image to readme
Markdown
unlicense
irishshagua/FamilyHistory
markdown
## Code Before: My Family Tree saved in ged format ## Instruction: Add family tree image to readme ## Code After: My Family Tree saved in ged format ![View of Family Tree](https://github.com/irishshagua/FamilyHistory/blob/master/myFamilyTree.svg "My FAmily Tree")
b5fae510103bcaf0ef37bdf3906e04040e54fc79
test/RequestsAreProcessedFromOldestToNewest.test.sh
test/RequestsAreProcessedFromOldestToNewest.test.sh
. ./test-support.sh # Source the configuration to get a reference to the queue . ./test-steve.conf #### Arrange goes here if [ ! -d $QUEUE ] then mkdir $QUEUE else rm -f $QUEUE/*.request fi touch $QUEUE/20150102125050.request touch $QUEUE/20150102122020.request touch $QUEUE/20150102123030.request #### Act: Run ...
. ./test-support.sh # Source the configuration to get a reference to the queue . ./test-steve.conf #### Arrange goes here if [ ! -d $QUEUE ] then mkdir $QUEUE else rm -f $QUEUE/*.request fi touch $QUEUE/20150102125050.request touch $QUEUE/20150102122020.request touch $QUEUE/20150102123030.request #### Act: Run ...
Use array to determine order in which requests are executed
Use array to determine order in which requests are executed
Shell
mit
sandermvanvliet/Steve
shell
## Code Before: . ./test-support.sh # Source the configuration to get a reference to the queue . ./test-steve.conf #### Arrange goes here if [ ! -d $QUEUE ] then mkdir $QUEUE else rm -f $QUEUE/*.request fi touch $QUEUE/20150102125050.request touch $QUEUE/20150102122020.request touch $QUEUE/20150102123030.request...
b8594466bc21e5de3c50d623814a16d8429788cf
gruntfile.js
gruntfile.js
'use strict'; const loadGruntTasks = require('load-grunt-tasks'); const rollupPluginBabel = require('rollup-plugin-babel'); module.exports = function register(grunt) { loadGruntTasks(grunt); grunt.initConfig({ eslint: { all: ['lib', 'test'], }, clean: { all: ['dist', 'tmp'], }, ...
'use strict'; const loadGruntTasks = require('load-grunt-tasks'); const rollupPluginBabel = require('rollup-plugin-babel'); module.exports = function register(grunt) { loadGruntTasks(grunt); grunt.initConfig({ eslint: { all: ['lib', 'test'], }, clean: { all: ['dist', 'tmp'], }, ...
Move the babel task to the test task.
Move the babel task to the test task.
JavaScript
mit
fatfisz/floox
javascript
## Code Before: 'use strict'; const loadGruntTasks = require('load-grunt-tasks'); const rollupPluginBabel = require('rollup-plugin-babel'); module.exports = function register(grunt) { loadGruntTasks(grunt); grunt.initConfig({ eslint: { all: ['lib', 'test'], }, clean: { all: ['dist', 'tm...
dd2c92bea635d7cfc93b437ce32266126bceb1e9
qipipe/helpers/bolus_arrival.py
qipipe/helpers/bolus_arrival.py
class BolusArrivalError(Exception): pass def bolus_arrival_index(time_series): """ Determines the DCE bolus arrival series index. The bolus arrival is the first series with a difference in average signal larger than double the difference from first two points. :param time_series: the 4D NiFT...
class BolusArrivalError(Exception): pass def bolus_arrival_index(time_series): """ Determines the DCE bolus arrival time point index. The bolus arrival is the first occurence of a difference in average signal larger than double the difference from first two points. :param time_series: the 4D...
Change series to time point.
Change series to time point.
Python
bsd-2-clause
ohsu-qin/qipipe
python
## Code Before: class BolusArrivalError(Exception): pass def bolus_arrival_index(time_series): """ Determines the DCE bolus arrival series index. The bolus arrival is the first series with a difference in average signal larger than double the difference from first two points. :param time_ser...
fbe2f7ab4c586d4fd99f93a7b746a35585672b97
app/mailers/spree/user_mailer_decorator.rb
app/mailers/spree/user_mailer_decorator.rb
Spree::UserMailer.class_eval do def signup_confirmation(user) @user = user mail(:to => user.email, :from => from_address, :subject => t(:welcome_to) + Spree::Config[:site_name]) end def confirmation_instructions(user, token) @user = user @token = token subject = t('spree.user_mailer....
Spree::UserMailer.class_eval do def signup_confirmation(user) @user = user mail(:to => user.email, :from => from_address, :subject => t(:welcome_to) + Spree::Config[:site_name]) end # Overriding `Spree::UserMailer.confirmation_instructions` which is # overriding `Devise::Mailer.confirmation_in...
Remove unused variable from mailer
Remove unused variable from mailer The second variable passed by Devise is actually a hash, not a token.
Ruby
agpl-3.0
openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,l...
ruby
## Code Before: Spree::UserMailer.class_eval do def signup_confirmation(user) @user = user mail(:to => user.email, :from => from_address, :subject => t(:welcome_to) + Spree::Config[:site_name]) end def confirmation_instructions(user, token) @user = user @token = token subject = t('sp...
f5805ec65532dc911e4b117e449b1a4136e9dada
.vscode/settings.json
.vscode/settings.json
{ "typescript.tsdk": "node_modules/typescript/lib/" }
{ "typescript.tsdk": "node_modules/typescript/lib/", "files.exclude": { "src/**/*.js": true, "src/**/*.map": true } }
Hide js file in VSCode
Hide js file in VSCode
JSON
mit
Crazyht/ngx-tree-select,Crazyht/crazy-select,Crazyht/ngx-tree-select,Crazyht/ngx-tree-select,Crazyht/crazy-select,Crazyht/crazy-select
json
## Code Before: { "typescript.tsdk": "node_modules/typescript/lib/" } ## Instruction: Hide js file in VSCode ## Code After: { "typescript.tsdk": "node_modules/typescript/lib/", "files.exclude": { "src/**/*.js": true, "src/**/*.map": true } }
8d22b55b434bd355342fd0d5fedb8381ba4ca91a
Readme.md
Readme.md
![Giftoppr](https://github.com/desktoppr/giftoppr/blob/master/app/assets/images/logo.png?raw=true) ### Environment Variables ```bash DROPBOX_KEY="" DROPBOX_SECRET="" AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" FOG_DIRECTORY="" FOG_HOST="" FOG_PROVIDER="" ASSET_SYNC_GZIP_COMPRESSION=true ``` ### Heroku Ensure envi...
![Giftoppr](https://github.com/desktoppr/giftoppr/blob/master/app/assets/images/logo.png?raw=true) ### Environment Variables ```bash DROPBOX_KEY="" DROPBOX_SECRET="" AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" FOG_DIRECTORY="" FOG_HOST="" FOG_PROVIDER="" ASSET_SYNC_GZIP_COMPRESSION=true SECRET_TOKEN="" ``` ### Her...
Update readme with new environment variable
Update readme with new environment variable
Markdown
mit
desktoppr/giftoppr,desktoppr/giftoppr
markdown
## Code Before: ![Giftoppr](https://github.com/desktoppr/giftoppr/blob/master/app/assets/images/logo.png?raw=true) ### Environment Variables ```bash DROPBOX_KEY="" DROPBOX_SECRET="" AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" FOG_DIRECTORY="" FOG_HOST="" FOG_PROVIDER="" ASSET_SYNC_GZIP_COMPRESSION=true ``` ### Her...
08c8aa988ae52474779f52eb7e4d6dbbeae95c01
packages/di/diffmap.yaml
packages/di/diffmap.yaml
homepage: https://github.com/chessai/diffmap.git changelog-type: markdown hash: be243e3ab7c140784a4298f55d17d5533c06f72288eb2863972ce6474496a6f2 test-bench-deps: {} maintainer: chessai1996@gmail.com synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Rel...
homepage: https://github.com/chessai/diffmap.git changelog-type: markdown hash: 27ea8c315b5dbfb243b2c3b61eab2164534e1d02887a05392dda65995cd36c3e test-bench-deps: {} maintainer: chessai1996@gmail.com synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Rel...
Update from Hackage at 2018-11-06T16:42:58Z
Update from Hackage at 2018-11-06T16:42:58Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/chessai/diffmap.git changelog-type: markdown hash: be243e3ab7c140784a4298f55d17d5533c06f72288eb2863972ce6474496a6f2 test-bench-deps: {} maintainer: chessai1996@gmail.com synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * Fi...
68cdee787d59fcaffbd7f5fe5d09bc9769adac7b
_posts/2017-01-14-set_your_phasers_to_stunning.md
_posts/2017-01-14-set_your_phasers_to_stunning.md
--- bg: "set_your_phasers_to_stunning.jpg" layout: post title: "Set Your Phasers to Stunning" tab_text: "About ES6" summary: "What's new in ES6" date: 2017-01-14 20:00:00 +0700 categories: event tags: ['talent-show'] author: Jacqui Jupiter --- The Annual Chewbacchus Fashion/Variety/Talent Show and Costume Competitio...
--- bg: "set_your_phasers_to_stunning.jpg" layout: post title: "Set Your Phasers to Stunning" tab_text: "Chewbacchus Talent Show" summary: "Chewbacchus's Talent Show" date: 2017-01-14 20:00:00 +0700 categories: event tags: ['talent-show'] author: Jacqui Jupiter --- The Annual Chewbacchus Fashion/Variety/Talent Show ...
Fix Stunning typo and edit tab text and summary
Fix Stunning typo and edit tab text and summary
Markdown
mit
krewedumoon/krewedumoon,SpaceOtterInSpace/krewedumoon,SpaceOtterInSpace/krewedumoon,krewedumoon/krewedumoon
markdown
## Code Before: --- bg: "set_your_phasers_to_stunning.jpg" layout: post title: "Set Your Phasers to Stunning" tab_text: "About ES6" summary: "What's new in ES6" date: 2017-01-14 20:00:00 +0700 categories: event tags: ['talent-show'] author: Jacqui Jupiter --- The Annual Chewbacchus Fashion/Variety/Talent Show and Co...
a1bf9d169501d807497abe61c64a6f960dd29afa
README.md
README.md
Brainmuk ======== [![Build Status](https://travis-ci.org/eddieantonio/brainmuk.svg?branch=master)](https://travis-ci.org/eddieantonio/brainmuk) > brainfuck x86 compiler and interpreter brainmuk interprets [brainfuck][] code by compiling directly into x86 machine code. Usage ----- $ brainmuk file.bf [brainfuck...
Brainmuk ======== [![Build Status](https://travis-ci.org/eddieantonio/brainmuk.svg?branch=master)](https://travis-ci.org/eddieantonio/brainmuk) > brainfuck x86 compiler and interpreter brainmuk interprets [brainfuck][] code by compiling directly into x86 machine code. Usage ----- $ brainmuk file.bf [brainfuck...
Remove typo-filled explanation (it's on Wikipedia anyway...)
Remove typo-filled explanation (it's on Wikipedia anyway...)
Markdown
mit
eddieantonio/brainmuk,eddieantonio/brainmuk
markdown
## Code Before: Brainmuk ======== [![Build Status](https://travis-ci.org/eddieantonio/brainmuk.svg?branch=master)](https://travis-ci.org/eddieantonio/brainmuk) > brainfuck x86 compiler and interpreter brainmuk interprets [brainfuck][] code by compiling directly into x86 machine code. Usage ----- $ brainmuk fil...
e85eca0b5830d2e102fed1ca8f4105e6bbecd420
requirements.txt
requirements.txt
Django==2.0a1 Babel==2.5.0 Pillow==4.2.1 celery[redis]==4.1.0 dj-database-url==0.4.2 django-redis-sessions==0.6 python3-memcached==1.51 feedparser==5.2.1 gunicorn==19.7.1 html2text==2016.9.19 markdown2==2.3.4 oauth2client==4.1.2 psycopg2cffi==2.7.6 pyes==0.99.6 python-dateutil==2.6.1 redis==2.10.6 django-celery-results...
Django==2.0a1 Babel==2.5.0 Pillow==4.2.1 celery[redis]==4.1.0 dj-database-url==0.4.2 django-redis-sessions==0.6 python3-memcached==1.51 feedparser==5.2.1 gunicorn==19.7.1 html2text==2016.9.19 markdown2==2.3.4 oauth2client==4.1.2 psycopg2cffi==2.7.6 pyes==0.99.6 python-dateutil==2.6.1 redis==2.10.6 django-celery-results...
Use django-celery-beat from master branch
Use django-celery-beat from master branch
Text
agpl-3.0
gpodder/mygpo,gpodder/mygpo,gpodder/mygpo,gpodder/mygpo
text
## Code Before: Django==2.0a1 Babel==2.5.0 Pillow==4.2.1 celery[redis]==4.1.0 dj-database-url==0.4.2 django-redis-sessions==0.6 python3-memcached==1.51 feedparser==5.2.1 gunicorn==19.7.1 html2text==2016.9.19 markdown2==2.3.4 oauth2client==4.1.2 psycopg2cffi==2.7.6 pyes==0.99.6 python-dateutil==2.6.1 redis==2.10.6 djang...
2f09a59dc0f915d798c85b7f825aced46250175b
.magnum.yml
.magnum.yml
ruby: 2.1.2 ruby: 2.1.1 ruby: 2.1.0 ruby: 1.9.3-p547 ruby: 1.9.3-p392 ruby: 1.9.3-p429 ruby: 1.9.3-p448 ruby: 1.9.3-p484 ruby: 1.9.3-p545 before_install: - rvm install 2.1.2 - rvm install 2.1.1 - rvm install 2.1.0 - rvm install 1.9.3-p547 - rvm install 1.9.3-p392 - rvm install 1.9.3-p429 - rvm install 1....
ruby: 2.1.2 ruby: 2.1.1 ruby: 2.1.0 ruby: 1.9.3-p547 ruby: 1.9.3-p392 ruby: 1.9.3-p429 ruby: 1.9.3-p448 ruby: 1.9.3-p484 ruby: 1.9.3-p545 before_install: - rvm install 2.1.2 - rvm install 2.1.1 - rvm install 2.1.0 - rvm install 1.9.3-p547 - rvm install 1.9.3-p392 - rvm install 1.9.3-p429 - rvm install 1....
Fix settings for use in MagnumCI
Fix settings for use in MagnumCI
YAML
mit
sachin21/space2underscore
yaml
## Code Before: ruby: 2.1.2 ruby: 2.1.1 ruby: 2.1.0 ruby: 1.9.3-p547 ruby: 1.9.3-p392 ruby: 1.9.3-p429 ruby: 1.9.3-p448 ruby: 1.9.3-p484 ruby: 1.9.3-p545 before_install: - rvm install 2.1.2 - rvm install 2.1.1 - rvm install 2.1.0 - rvm install 1.9.3-p547 - rvm install 1.9.3-p392 - rvm install 1.9.3-p429 ...
234e3540d6180a130f3e1eb1c30781357df09e47
lib/generators/graphiti/templates/application_resource.rb.erb
lib/generators/graphiti/templates/application_resource.rb.erb
<%- unless omit_comments? -%> # ApplicationResource is similar to ApplicationRecord - a base class that # holds configuration/methods for subclasses. # All Resources should inherit from ApplicationResource. <%- end -%> class ApplicationResource < Graphiti::Resource <%- unless omit_comments? -%> # Use the ActiveReco...
<%- unless omit_comments? -%> # ApplicationResource is similar to ApplicationRecord - a base class that # holds configuration/methods for subclasses. # All Resources should inherit from ApplicationResource. <%- end -%> class ApplicationResource < Graphiti::Resource <%- unless omit_comments? -%> # Use the ActiveReco...
Handle errors on class load
Handle errors on class load
HTML+ERB
mit
jsonapi-suite/jsonapi_suite,jsonapi-suite/jsonapi_suite,jsonapi-suite/jsonapi_suite
html+erb
## Code Before: <%- unless omit_comments? -%> # ApplicationResource is similar to ApplicationRecord - a base class that # holds configuration/methods for subclasses. # All Resources should inherit from ApplicationResource. <%- end -%> class ApplicationResource < Graphiti::Resource <%- unless omit_comments? -%> # Us...
686930b1c6e1b957449e6d6e632647b4e13325d6
RNSVG.podspec
RNSVG.podspec
require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = 'RNSVG' s.version = package['version'] s.summary = package['description'] s.license = package['license'] s.homepage = package['homepage'] s.a...
require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = 'RNSVG' s.version = package['version'] s.summary = package['description'] s.license = package['license'] s.homepage = package['homepage'] s.a...
Exclude macos files on tvOS
Exclude macos files on tvOS
Ruby
mit
react-native-community/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg,react-native-community/react-native-svg
ruby
## Code Before: require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| s.name = 'RNSVG' s.version = package['version'] s.summary = package['description'] s.license = package['license'] s.homepage = package['...
32f5090deea042b9ca1acd81570bead7d305e146
src/main/java/seedu/geekeep/ui/TaskCard.java
src/main/java/seedu/geekeep/ui/TaskCard.java
package seedu.geekeep.ui; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.FlowPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import seedu.geekeep.model.task.ReadOnlyTask; public class TaskCard extends UiPart<Region> { private static final String F...
package seedu.geekeep.ui; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.FlowPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import seedu.geekeep.model.task.ReadOnlyTask; public class TaskCard extends UiPart<Region> { private static final String F...
Update display of task card
Update display of task card
Java
mit
CS2103JAN2017-W15-B4/main,CS2103JAN2017-W15-B4/main
java
## Code Before: package seedu.geekeep.ui; import javafx.fxml.FXML; import javafx.scene.control.Label; import javafx.scene.layout.FlowPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import seedu.geekeep.model.task.ReadOnlyTask; public class TaskCard extends UiPart<Region> { private stati...
f6f01ab8c04087aad412498198807af5955acc8e
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
<!-- describe the changes you have made here: what, why, ... --> - [ ] Change in CHANGELOG.md described - [ ] Tests created for changes - [ ] Screenshots added (for UI changes)
<!-- describe the changes you have made here: what, why, ... --> - [ ] Ensure that the commit message is [a good commit message](https://github.com/erlang/otp/wiki/Writing-good-commit-messages) - [ ] Change in CHANGELOG.md described - [ ] Tests created for changes - [ ] Screenshots added (for UI changes)
Add link to "A good commit message"
Add link to "A good commit message" [ciskip]
Markdown
apache-2.0
YannicSowoidnich/winery,YannicSowoidnich/winery,YannicSowoidnich/winery,YannicSowoidnich/winery,YannicSowoidnich/winery
markdown
## Code Before: <!-- describe the changes you have made here: what, why, ... --> - [ ] Change in CHANGELOG.md described - [ ] Tests created for changes - [ ] Screenshots added (for UI changes) ## Instruction: Add link to "A good commit message" [ciskip] ## Code After: <!-- describe the changes you have made here: w...
d8bc594108bc26b866515df88467b64c105a5c8e
app/app.js
app/app.js
'use strict'; // Declare app level module which depends on views, and components /*angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routePr...
'use strict'; // Declare app level module which depends on views, and components /*angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routePr...
Clear Results for next submit
Clear Results for next submit
JavaScript
mit
glencollins18888/JSONPathFinder,glencollins18888/JSONPathFinder
javascript
## Code Before: 'use strict'; // Declare app level module which depends on views, and components /*angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('...
85215a28dab5d088466aa0ada54c21d7e14bcffe
src/lib/titlebar.js
src/lib/titlebar.js
function updateImageUrl(image_id, new_image_url) { var image = document.getElementById(image_id); if (image) image.src = new_image_url; } function addButtonHandlers(button_id, normal_image_url, hover_image_url, click_func) { var button = $("#"+button_id)[0]; button.onmouseover = function() { updateImag...
function updateImageUrl(image_id, new_image_url) { var image = document.getElementById(image_id); if (image) image.src = new_image_url; } function addButtonHandlers(button_id, normal_image_url, hover_image_url, click_func) { var button = $("#"+button_id)[0]; button.onmouseover = function() { updateImag...
Fix Hover Out when Clicking Minimize Button
Fix Hover Out when Clicking Minimize Button
JavaScript
lgpl-2.1
jaruba/PowderPlayer,ghondar/PowderPlayer,ghondar/PowderPlayer,libai/PowderPlayer,jaruba/PowderPlayer,daju1/p2pPlayer,libai/PowderPlayer,daju1/p2pPlayer,EdZava/PowderPlayer,EdZava/PowderPlayer
javascript
## Code Before: function updateImageUrl(image_id, new_image_url) { var image = document.getElementById(image_id); if (image) image.src = new_image_url; } function addButtonHandlers(button_id, normal_image_url, hover_image_url, click_func) { var button = $("#"+button_id)[0]; button.onmouseover = function() ...
6da16bcc149940a7671af40794fb6b86777d856e
micrometer-spring-legacy/src/test/resources/application.yml
micrometer-spring-legacy/src/test/resources/application.yml
logging.level.org.springframework.integration.support.MessageBuilder: WARN logging.level.org.springframework.boot: INFO management.metrics: use-global-registry: false export: atlas.enabled: false dynatrace.enabled: false datadog.enabled: false elastic.enabled: false ganglia.enabled: false g...
logging.level.org.springframework.integration.support.MessageBuilder: WARN logging.level.org.springframework.boot: INFO management.metrics: use-global-registry: false export: atlas.enabled: false azuremonitor.enabled: false dynatrace.enabled: false datadog.enabled: false elastic.enabled: false ...
Fix spring test failing because of new azure impl
Fix spring test failing because of new azure impl
YAML
apache-2.0
micrometer-metrics/micrometer,micrometer-metrics/micrometer,micrometer-metrics/micrometer
yaml
## Code Before: logging.level.org.springframework.integration.support.MessageBuilder: WARN logging.level.org.springframework.boot: INFO management.metrics: use-global-registry: false export: atlas.enabled: false dynatrace.enabled: false datadog.enabled: false elastic.enabled: false ganglia.enab...
2921f6035d43a143f575144c540e9b9ca328370e
app/renderer/views/SearchBar.js
app/renderer/views/SearchBar.js
import React, { Component } from 'react' import styled from 'styled-components' import TextInput from './TextInput' import { Search } from '../icons' export default class SearchBar extends Component { constructor (props) { super(props) this.onChange = this.onChange.bind(this) } onChange (e) { e.prev...
import React, { Component } from 'react' import styled from 'styled-components' import TextInput from './TextInput' import { Search, Close } from '../icons' export default class SearchBar extends Component { constructor (props) { super(props) this.update = this.update.bind(this) this.clear = this.clear.b...
Add close button to search bar
Add close button to search bar
JavaScript
apache-2.0
blenoski/movie-night,blenoski/movie-night
javascript
## Code Before: import React, { Component } from 'react' import styled from 'styled-components' import TextInput from './TextInput' import { Search } from '../icons' export default class SearchBar extends Component { constructor (props) { super(props) this.onChange = this.onChange.bind(this) } onChange ...
a2d14d4e98cb1620043c4ba868aad0e277ea41b4
obj/errors.go
obj/errors.go
package obj import ( "fmt" "reflect" . "github.com/polydawn/refmt/tok" ) // ErrInvalidUnmarshalTarget describes an invalid argument passed to UnmarshalDriver.Bind. // (Unmarshalling must target a non-nil pointer so that it can address the value.) type ErrInvalidUnmarshalTarget struct { Type reflect.Type } func ...
package obj import ( "fmt" "reflect" . "github.com/polydawn/refmt/tok" ) // ErrInvalidUnmarshalTarget describes an invalid argument passed to UnmarshalDriver.Bind. // (Unmarshalling must target a non-nil pointer so that it can address the value.) type ErrInvalidUnmarshalTarget struct { Type reflect.Type } func ...
Introduce ErrUnexpectedTokenType, which our unmarshaller machines should start returning here on out.
Introduce ErrUnexpectedTokenType, which our unmarshaller machines should start returning here on out. Signed-off-by: Eric Myhre <2346ad27d7568ba9896f1b7da6b5991251debdf2@exultant.us>
Go
mit
polydawn/refmt,polydawn/go-xlate,polydawn/go-xlate,polydawn/refmt
go
## Code Before: package obj import ( "fmt" "reflect" . "github.com/polydawn/refmt/tok" ) // ErrInvalidUnmarshalTarget describes an invalid argument passed to UnmarshalDriver.Bind. // (Unmarshalling must target a non-nil pointer so that it can address the value.) type ErrInvalidUnmarshalTarget struct { Type refle...
83a23a7183bdb68a71468965508be5bd64877c23
src/app/controllers/HomeController.js
src/app/controllers/HomeController.js
'use strict'; angular.module('app.controllers') .controller('HomeController', ['$scope', '$state', 'fileModel', 'imageModel', function HomeController($scope, $state, fileModel, imageModel) { // private var _this = { onCreate: function() { if(imageModel.getImages().l...
'use strict'; angular.module('app.controllers') .controller('HomeController', ['$scope', '$state', 'fileModel', 'imageModel', function HomeController($scope, $state, fileModel, imageModel) { // private var _this = { onCreate: function() { if(imageModel.getImages().l...
Stop the loader in the finally to make sure it allways stops
Stop the loader in the finally to make sure it allways stops
JavaScript
mit
SamVerschueren/imagery,SamVerschueren/selfie-wall,SamVerschueren/selfie-wall,SamVerschueren/imagery
javascript
## Code Before: 'use strict'; angular.module('app.controllers') .controller('HomeController', ['$scope', '$state', 'fileModel', 'imageModel', function HomeController($scope, $state, fileModel, imageModel) { // private var _this = { onCreate: function() { if(imageMod...
613a18dd69c2526a866772fcae4c6e3ffb5b7a50
app/views/shared/_main_nav.html.haml
app/views/shared/_main_nav.html.haml
%nav.navbar.navbar-default.navbar-fixed-top.main-nav.center{:style => 'margin-top: 40px;'} .container-fluid %ul.nav.navbar-nav %li.nav-item{:class => get_nav_link_class('dashboards') } = link_to dashboards_path do %i.fa.fa-home.fa-2x %br Home - SystemConfig.trans...
%nav.navbar.navbar-default.navbar-fixed-top.main-nav.center{:style => 'margin-top: 40px;'} .container-fluid %ul.nav.navbar-nav %li.nav-item{:class => get_nav_link_class('dashboards') } = link_to dashboards_path do %i.fa.fa-home.fa-2x %br Home -# render the engine...
Enable loading nav components from the app
Enable loading nav components from the app
Haml
mit
camsys/transam_core,camsys/transam_core,camsys/transam_core,nycdot/transam_core,nycdot/transam_core,camsys/transam_core,nycdot/transam_core
haml
## Code Before: %nav.navbar.navbar-default.navbar-fixed-top.main-nav.center{:style => 'margin-top: 40px;'} .container-fluid %ul.nav.navbar-nav %li.nav-item{:class => get_nav_link_class('dashboards') } = link_to dashboards_path do %i.fa.fa-home.fa-2x %br Home - Sy...
f492cb8f89136a4f2fc7eac2bc99a1836ec220c2
README.md
README.md
bin === A collection of scrips that I keep on my $PATH.
scripts ======= A collection of my personal scripts. bin directory ------------- The files in this directory are scripts that I keep on my $PATH.
Change name of repo from bin to scripts
Change name of repo from bin to scripts This is so that I can put all sorts of various scripts, tests, and documentation in this repo while only putting the scripts that I want on my $PATH in a bin subdirectory.
Markdown
mit
ericmathison/scripts,ericmathison/scripts,ericmathison/scripts
markdown
## Code Before: bin === A collection of scrips that I keep on my $PATH. ## Instruction: Change name of repo from bin to scripts This is so that I can put all sorts of various scripts, tests, and documentation in this repo while only putting the scripts that I want on my $PATH in a bin subdirectory. ## Code After: s...