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? case @reason when :provided_pre_mountain_lion MacOS.version < :mountain_lion else true end end def to_s case @reason when :provided_by_osx then <<-EOS.undent Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. #{@explanation} EOS when :provided_pre_mountain_lion then <<-EOS.undent Mac OS X already provides this software in versions before Mountain Lion. #{@explanation} EOS else @reason end.strip end end
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? case @reason when :provided_pre_mountain_lion MacOS.version < :mountain_lion when :provided_until_xcode43 MacOS::Xcode.version < "4.3" when :provided_until_xcode5 MacOS::Xcode.version < "5.0" else true end end def to_s case @reason when :provided_by_osx then <<-EOS.undent Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. #{@explanation} EOS when :provided_pre_mountain_lion then <<-EOS.undent Mac OS X already provides this software in versions before Mountain Lion. #{@explanation} EOS when :provided_until_xcode43 "Xcode provides this software prior to version 4.3.\n\n#{explanation}" when :provided_until_xcode5 "Xcode provides this software prior to version 5.\n\n#{explanation}" else @reason end.strip end end
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/homebrew,EricFromCanada/brew,MikeMcQuaid/brew,palxex/brew,jmsundar/brew,AnastasiaSulyagina/brew,jmsundar/brew,MikeMcQuaid/brew,Linuxbrew/brew,staticfloat/brew,Homebrew/brew,alyssais/brew,JCount/brew,mahori/brew,maxim-belkin/brew,alyssais/brew,mahori/brew,claui/brew,pseudocody/brew,tonyg/homebrew,mistydemeo/homebrew,ilovezfs/brew,amar-laksh/brew_sudo,reitermarkus/brew,vitorgalvao/brew,nandub/brew,maxim-belkin/brew,reitermarkus/brew,claui/brew,konqui/brew,gordonmcshane/homebrew,vitorgalvao/brew,DomT4/brew,muellermartin/dist,MikeMcQuaid/brew,gordonmcshane/homebrew,pseudocody/brew,palxex/brew,AnastasiaSulyagina/brew,Linuxbrew/brew,gregory-nisbet/brew,mahori/brew,sjackman/homebrew,ilovezfs/brew,EricFromCanada/brew,Homebrew/brew,gordonmcshane/homebrew,zmwangx/brew,gregory-nisbet/brew,reelsense/brew,zmwangx/brew,reitermarkus/brew,rwhogg/brew,staticfloat/brew,sjackman/homebrew,mistydemeo/homebrew,reelsense/brew,ilovezfs/brew,palxex/brew,JCount/brew,hanxue/linuxbrew,aw1621107/brew,DomT4/brew,Linuxbrew/brew,jmsundar/brew,JCount/brew,nandub/brew,rwhogg/brew,konqui/brew,hanxue/linuxbrew,mgrimes/brew,muellermartin/dist,mistydemeo/homebrew,alyssais/brew,mgrimes/brew,mgrimes/brew,hanxue/linuxbrew,amar-laksh/brew_sudo,tonyg/homebrew,Homebrew/brew,tonyg/homebrew,rwhogg/brew,AnastasiaSulyagina/brew,nandub/brew,maxim-belkin/brew,muellermartin/dist,konqui/brew,mahori/brew,toonetown/homebrew,Homebrew/brew,reitermarkus/brew,gregory-nisbet/brew,DomT4/brew,pseudocody/brew,EricFromCanada/brew,Linuxbrew/brew,aw1621107/brew,claui/brew
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 def valid? case @reason when :provided_pre_mountain_lion MacOS.version < :mountain_lion else true end end def to_s case @reason when :provided_by_osx then <<-EOS.undent Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. #{@explanation} EOS when :provided_pre_mountain_lion then <<-EOS.undent Mac OS X already provides this software in versions before Mountain Lion. #{@explanation} EOS else @reason end.strip end end ## Instruction: Add keg-only reason symbols for Xcode 4.3 and Xcode 5 Closes Homebrew/homebrew#28095. ## Code After: 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? case @reason when :provided_pre_mountain_lion MacOS.version < :mountain_lion when :provided_until_xcode43 MacOS::Xcode.version < "4.3" when :provided_until_xcode5 MacOS::Xcode.version < "5.0" else true end end def to_s case @reason when :provided_by_osx then <<-EOS.undent Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. #{@explanation} EOS when :provided_pre_mountain_lion then <<-EOS.undent Mac OS X already provides this software in versions before Mountain Lion. #{@explanation} EOS when :provided_until_xcode43 "Xcode provides this software prior to version 4.3.\n\n#{explanation}" when :provided_until_xcode5 "Xcode provides this software prior to version 5.\n\n#{explanation}" else @reason end.strip end 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.com/
![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/301c7020-9918-0134-dbee-3e4a8d26d28a/status?branch=master [earthware]: http://www.earthware.co.uk [aoc]: http://adventofcode.com/
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://adventofcode.com/ ## Instruction: Add Codeship build status badge ## Code After: ![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/301c7020-9918-0134-dbee-3e4a8d26d28a/status?branch=master [earthware]: http://www.earthware.co.uk [aoc]: http://adventofcode.com/
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 commit: 2.1.0 subdir: app sudo: - apt-get update || apt-get update - apt install -y inkscape gradle: - yes AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 2.1.0 CurrentVersionCode: 22
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: - versionName: 2.1.0 versionCode: 22 commit: 2.1.0 subdir: app sudo: - apt-get update || apt-get update - apt install -y inkscape gradle: - yes AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 2.1.0 CurrentVersionCode: 22
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 versionCode: 22 commit: 2.1.0 subdir: app sudo: - apt-get update || apt-get update - apt install -y inkscape gradle: - yes AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 2.1.0 CurrentVersionCode: 22 ## Instruction: Set autoname of Fertility Test Analyzer ## Code After: 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: - versionName: 2.1.0 versionCode: 22 commit: 2.1.0 subdir: app sudo: - apt-get update || apt-get update - apt install -y inkscape gradle: - yes AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 2.1.0 CurrentVersionCode: 22
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]) - if local_assigns[:with_continue] && params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - f.add(:submit, :create.tl, data: { disable_with: :please_wait.tl }, class: 'primary') - if local_assigns[:with_continue] && !params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) = f.fields(params[:form_partial]) if params[:form_partial] = f.fields unless params[:form_partial] - f.add(:link, :cancel.tl, (params[:redirect] || local_assigns[:cancel_url] || {action: :index}), (params[:dialog] ? {class: 'btn', data: {close_dialog: params[:dialog]}} : {class: 'btn'})) = f.actions
- 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]) - if local_assigns[:with_continue] && params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - f.add(:submit, :create.tl, data: { disable_with: :please_wait.tl }, class: 'primary') - if local_assigns[:with_continue] && !params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - if params[:form_partial] = f.fields(params[:form_partial]) - else = f.fields - f.add(:link, :cancel.tl, (params[:redirect] || local_assigns[:cancel_url] || {action: :index}), (params[:dialog] ? {class: 'btn', data: {close_dialog: params[:dialog]}} : {class: 'btn'})) = f.actions
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, params[:redirect]) - if local_assigns[:with_continue] && params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - f.add(:submit, :create.tl, data: { disable_with: :please_wait.tl }, class: 'primary') - if local_assigns[:with_continue] && !params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) = f.fields(params[:form_partial]) if params[:form_partial] = f.fields unless params[:form_partial] - f.add(:link, :cancel.tl, (params[:redirect] || local_assigns[:cancel_url] || {action: :index}), (params[:dialog] ? {class: 'btn', data: {close_dialog: params[:dialog]}} : {class: 'btn'})) = f.actions ## Instruction: Use `if/else` instead of if + unless ## Code After: - 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]) - if local_assigns[:with_continue] && params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - f.add(:submit, :create.tl, data: { disable_with: :please_wait.tl }, class: 'primary') - if local_assigns[:with_continue] && !params[:continue] - f.add(:submit, :create_and_continue.tl, data: { disable_with: :please_wait.tl }, class: 'primary', name: :create_and_continue) - if params[:form_partial] = f.fields(params[:form_partial]) - else = f.fields - f.add(:link, :cancel.tl, (params[:redirect] || local_assigns[:cancel_url] || {action: :index}), (params[:dialog] ? {class: 'btn', data: {close_dialog: params[:dialog]}} : {class: 'btn'})) = f.actions
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 owner=root group=root mode=0755 tags: - mapserver notify: - restart nginx - name: Start nginx server service: name=nginx state=started enabled=yes tags: - mapserver - nginx - name: Start mapserver server service: name=mapserver state=started enabled=yes tags: - mapserver - name: Disable default server file: path=/etc/nginx/sites-enabled/default state=absent tags: - mapserver - nginx - name: Copy mapserver nginx site template: src=mapserver-site.j2 dest=/etc/nginx/sites-available/mapserver-site owner=root group=root mode=0644 tags: - mapserver - nginx - name: Enable mapserver nginx site file: src="/etc/nginx/sites-available/mapserver-site" dest="/etc/nginx/sites-enabled/mapserver-site" owner=root group=root state=link tags: - nginx notify: - restart nginx
--- - 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 owner=root group=root mode=0755 tags: - mapserver notify: - restart nginx - name: Start nginx server service: name=nginx state=started enabled=yes tags: - mapserver - nginx - name: Start mapserver server service: name=mapserver state=started enabled=yes tags: - mapserver - name: Disable default server file: path=/etc/nginx/sites-enabled/default state=absent tags: - mapserver - nginx notify: - restart nginx - name: Copy mapserver nginx site template: src=mapserver-site.j2 dest=/etc/nginx/sites-available/mapserver-site owner=root group=root mode=0644 tags: - mapserver - nginx - name: Enable mapserver nginx site file: src="/etc/nginx/sites-available/mapserver-site" dest="/etc/nginx/sites-enabled/mapserver-site" owner=root group=root state=link tags: - nginx notify: - restart nginx
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/init.d/mapserver owner=root group=root mode=0755 tags: - mapserver notify: - restart nginx - name: Start nginx server service: name=nginx state=started enabled=yes tags: - mapserver - nginx - name: Start mapserver server service: name=mapserver state=started enabled=yes tags: - mapserver - name: Disable default server file: path=/etc/nginx/sites-enabled/default state=absent tags: - mapserver - nginx - name: Copy mapserver nginx site template: src=mapserver-site.j2 dest=/etc/nginx/sites-available/mapserver-site owner=root group=root mode=0644 tags: - mapserver - nginx - name: Enable mapserver nginx site file: src="/etc/nginx/sites-available/mapserver-site" dest="/etc/nginx/sites-enabled/mapserver-site" owner=root group=root state=link tags: - nginx notify: - restart nginx ## Instruction: Add notify to restart nginx ## Code After: --- - 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 owner=root group=root mode=0755 tags: - mapserver notify: - restart nginx - name: Start nginx server service: name=nginx state=started enabled=yes tags: - mapserver - nginx - name: Start mapserver server service: name=mapserver state=started enabled=yes tags: - mapserver - name: Disable default server file: path=/etc/nginx/sites-enabled/default state=absent tags: - mapserver - nginx notify: - restart nginx - name: Copy mapserver nginx site template: src=mapserver-site.j2 dest=/etc/nginx/sites-available/mapserver-site owner=root group=root mode=0644 tags: - mapserver - nginx - name: Enable mapserver nginx site file: src="/etc/nginx/sites-available/mapserver-site" dest="/etc/nginx/sites-enabled/mapserver-site" owner=root group=root state=link tags: - nginx notify: - restart nginx
6a0ff187c6791cadedcef119b5170c7b0787408e
Cargo.toml
Cargo.toml
[package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <[email protected]>"] 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" readme = "README.md" keywords = ["vm","lisp","languages"] [dependencies] docopt = "*" regex = "*" rustc-serialize = "*" log = "0.3.1" [dependencies.seax_svm] path = "seax_svm" version = "^0.2.2" [dependencies.seax_scheme] path = "seax_scheme" version = "^0.2.0"
[package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <[email protected]>"] 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" readme = "README.md" keywords = ["vm","lisp","languages"] [dependencies] docopt = "*" regex = "*" rustc-serialize = "*" log = "0.3.1" [dev-dependencies] quickcheck = "*" [dependencies.seax_svm] path = "seax_svm" version = "^0.2.2" [dependencies.seax_scheme] path = "seax_scheme" version = "^0.2.0"
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 <[email protected]>"] 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" readme = "README.md" keywords = ["vm","lisp","languages"] [dependencies] docopt = "*" regex = "*" rustc-serialize = "*" log = "0.3.1" [dependencies.seax_svm] path = "seax_svm" version = "^0.2.2" [dependencies.seax_scheme] path = "seax_scheme" version = "^0.2.0" ## Instruction: Put QuickCheck in root crate's dev deps ## Code After: [package] name = "seax" version = "0.0.2" authors = ["Hawk Weisman <[email protected]>"] 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" readme = "README.md" keywords = ["vm","lisp","languages"] [dependencies] docopt = "*" regex = "*" rustc-serialize = "*" log = "0.3.1" [dev-dependencies] quickcheck = "*" [dependencies.seax_svm] path = "seax_svm" version = "^0.2.2" [dependencies.seax_scheme] path = "seax_scheme" version = "^0.2.0"
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><%= @movie.release_date %></li> <li><h3>Reviews: </h3><% @movie.reviews.each do |review| %></li> <ul> <li><h4><%= link_to "#{review.title}", movie_review_path(@movie, review) %></h4></li> <li><%= review.content.truncate(75, separator: ' ') %></li> </ul> <% end %> </ul>
<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><%= @movie.release_date %></li> <li><h3>Reviews: </h3><% @movie.reviews.each do |review| %></li> <ul> <li><h4><%= link_to "#{review.title}", movie_review_path(@movie, review) %></h4></li> <li><%= review.content.truncate(75, separator: ' ') %></li> <li><%= link_to "#{review.user.username}", user_path %></li> </ul> <% end %> </ul>
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 date: </h3><%= @movie.release_date %></li> <li><h3>Reviews: </h3><% @movie.reviews.each do |review| %></li> <ul> <li><h4><%= link_to "#{review.title}", movie_review_path(@movie, review) %></h4></li> <li><%= review.content.truncate(75, separator: ' ') %></li> </ul> <% end %> </ul> ## Instruction: Add reviewer to the movie show page with link to user show page ## Code After: <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><%= @movie.release_date %></li> <li><h3>Reviews: </h3><% @movie.reviews.each do |review| %></li> <ul> <li><h4><%= link_to "#{review.title}", movie_review_path(@movie, review) %></h4></li> <li><%= review.content.truncate(75, separator: ' ') %></li> <li><%= link_to "#{review.user.username}", user_path %></li> </ul> <% end %> </ul>
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://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
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 because of what Da Vinci said: ![A chart comparing size differences between SVG, Objective-C and PNG](./Experiments/chart01.png "Comparison size differences between SVG, Objective-C and PNG") # Protocol SVG were converted to `.h/.m` using CodePaint and to `.png` using: find . -name '*.svg' | xargs -n1 sh -c 'convert "$0" -thumbnail 96x96 "$0.png"' Sizes were computed using find . -type f -name "metrol*.svg.png" -exec ls -l {} \; | awk '{sum += $5} END {print sum}' # Credits SVG files used comes from Clement Oriol's [MetroDNA](https://github.com/clementoriol/MetroDNA)
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. Thanks to CodePaint, this is almost possible. Next step should be that CodePaint gives us size-independent code. # 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 because of what Da Vinci said: ![A chart comparing size differences between SVG, Objective-C and PNG](./Experiments/chart01.png "Comparison size differences between SVG, Objective-C and PNG") Next steps should be to compare time from init to draw. # Protocol SVG were converted to `.h/.m` using CodePaint and to `.png` using: find . -name '*.svg' | xargs -n1 sh -c 'convert "$0" -thumbnail 96x96 "$0.png"' Sizes were computed using find . -type f -name "metrol*.svg.png" -exec ls -l {} \; | awk '{sum += $5} END {print sum}' # Credits SVG files used comes from Clement Oriol's [MetroDNA](https://github.com/clementoriol/MetroDNA)
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 / 80035 bytes And because of what Da Vinci said: ![A chart comparing size differences between SVG, Objective-C and PNG](./Experiments/chart01.png "Comparison size differences between SVG, Objective-C and PNG") # Protocol SVG were converted to `.h/.m` using CodePaint and to `.png` using: find . -name '*.svg' | xargs -n1 sh -c 'convert "$0" -thumbnail 96x96 "$0.png"' Sizes were computed using find . -type f -name "metrol*.svg.png" -exec ls -l {} \; | awk '{sum += $5} END {print sum}' # Credits SVG files used comes from Clement Oriol's [MetroDNA](https://github.com/clementoriol/MetroDNA) ## Instruction: Update the ReadMe with a 'Why' section ## Code After: 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. Thanks to CodePaint, this is almost possible. Next step should be that CodePaint gives us size-independent code. # 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 because of what Da Vinci said: ![A chart comparing size differences between SVG, Objective-C and PNG](./Experiments/chart01.png "Comparison size differences between SVG, Objective-C and PNG") Next steps should be to compare time from init to draw. # Protocol SVG were converted to `.h/.m` using CodePaint and to `.png` using: find . -name '*.svg' | xargs -n1 sh -c 'convert "$0" -thumbnail 96x96 "$0.png"' Sizes were computed using find . -type f -name "metrol*.svg.png" -exec ls -l {} \; | awk '{sum += $5} END {print sum}' # Credits SVG files used comes from Clement Oriol's [MetroDNA](https://github.com/clementoriol/MetroDNA)
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 configuration management} s.email = %q{[email protected]} s.extra_rdoc_files = [ "README.rdoc" ] s.files = [ ".gitignore", "MIT-LICENSE", "README.rdoc", "capistrano-cm.gemspec", "lib/capistrano/jsl/cm.rb" ] s.homepage = %q{http://github.com/jsl/capistrano-cm} s.require_paths = ["lib"] s.summary = %q{Cap extensions to help with server configuration management} s.add_dependency('capistrano') end
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 configuration management" s.email = "[email protected]" s.extra_rdoc_files = ["README.rdoc"] s.files = [ ".gitignore", "MIT-LICENSE", "README.rdoc", "capistrano-cm.gemspec", "lib/capistrano/jsl/cm.rb" ] s.homepage = "http://github.com/jsl/capistrano_cm" s.require_paths = ["lib"] s.summary = "Cap extensions to help with server configuration management" s.add_dependency('capistrano') end
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 assist in server configuration management} s.email = %q{[email protected]} s.extra_rdoc_files = [ "README.rdoc" ] s.files = [ ".gitignore", "MIT-LICENSE", "README.rdoc", "capistrano-cm.gemspec", "lib/capistrano/jsl/cm.rb" ] s.homepage = %q{http://github.com/jsl/capistrano-cm} s.require_paths = ["lib"] s.summary = %q{Cap extensions to help with server configuration management} s.add_dependency('capistrano') end ## Instruction: Fix link to source code in gemspec ## Code After: 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 configuration management" s.email = "[email protected]" s.extra_rdoc_files = ["README.rdoc"] s.files = [ ".gitignore", "MIT-LICENSE", "README.rdoc", "capistrano-cm.gemspec", "lib/capistrano/jsl/cm.rb" ] s.homepage = "http://github.com/jsl/capistrano_cm" s.require_paths = ["lib"] s.summary = "Cap extensions to help with server configuration management" s.add_dependency('capistrano') end
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(../images/linux-icon.png) 12px 50% no-repeat; }
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: --- --- @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(../images/linux-icon.png) 12px 50% no-repeat; }
bdd12b71b2437006d01986c68fae5f5988acf31c
src/esperanto/SliderBundle/EventListener/AdminSliderBuilderSubscriber.php
src/esperanto/SliderBundle/EventListener/AdminSliderBuilderSubscriber.php
<?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <[email protected]> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Builder\Route\SyliusRouteBuilder; use esperanto\AdminBundle\Builder\View\ViewBuilder; use esperanto\AdminBundle\Event\BuilderEvent; class AdminSliderBuilderSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return array( 'esperanto_slider.slider.build_menu' => array('onBuildMenu', 0), 'esperanto_slider.slider.build_table_route' => array('onBuildTableRoute', 0), 'esperanto_slider.slider.build_index_route' => array('onBuildIndexRoute', 0), ); } public function onBuildTableRoute(RouteBuilderEvent $event) { } public function onBuildIndexRoute(RouteBuilderEvent $event) { } public function onBuildMenu(MenuBuilderEvent $event) { $event->setBuilder(null); } }
<?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <[email protected]> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Builder\Route\SyliusRouteBuilder; use esperanto\AdminBundle\Builder\View\ViewBuilder; use esperanto\AdminBundle\Event\BuilderEvent; use esperanto\AdminBundle\Event\MenuBuilderEvent; class AdminSliderBuilderSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return array( 'esperanto_slider.slider.build_menu' => array('onBuildMenu', 0), 'esperanto_slider.slider.build_table_route' => array('onBuildTableRoute', 0), 'esperanto_slider.slider.build_index_route' => array('onBuildIndexRoute', 0), ); } public function onBuildTableRoute(RouteBuilderEvent $event) { } public function onBuildIndexRoute(RouteBuilderEvent $event) { } public function onBuildMenu(MenuBuilderEvent $event) { $event->setBuilder(null); } }
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,jennyhelbing/esperanto-cms,kiwibun/enhavo,FabianLiebl/enhavo,npakai/enhavo,gseidel/enhavo,enhavo/enhavo,jennyhelbing/enhavo,xqweb/esperanto-cms,enhavo/enhavo,xqweb/esperanto-cms,mkellermann/enhavo,mkellermann/enhavo,npakai/enhavo,kiwibun/enhavo,gseidel/enhavo,gseidel/enhavo,npakai/enhavo,mkellermann/enhavo,enhavo/enhavo,mkellermann/enhavo,jennyhelbing/enhavo,jennyhelbing/esperanto-cms,FabianLiebl/enhavo,gseidel/esperanto-cms,mkellermann/enhavo,kiwibun/enhavo
php
## Code Before: <?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <[email protected]> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Builder\Route\SyliusRouteBuilder; use esperanto\AdminBundle\Builder\View\ViewBuilder; use esperanto\AdminBundle\Event\BuilderEvent; class AdminSliderBuilderSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return array( 'esperanto_slider.slider.build_menu' => array('onBuildMenu', 0), 'esperanto_slider.slider.build_table_route' => array('onBuildTableRoute', 0), 'esperanto_slider.slider.build_index_route' => array('onBuildIndexRoute', 0), ); } public function onBuildTableRoute(RouteBuilderEvent $event) { } public function onBuildIndexRoute(RouteBuilderEvent $event) { } public function onBuildMenu(MenuBuilderEvent $event) { $event->setBuilder(null); } } ## Instruction: Fix missing use in SliderBundle ## Code After: <?php /** * AdminBuilderSubscriber.php * * @since 15/10/14 * @author Gerhard Seidel <[email protected]> */ namespace esperanto\SliderBundle\EventListener; use esperanto\AdminBundle\Event\RouteBuilderEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use esperanto\AdminBundle\Builder\Route\SyliusRouteBuilder; use esperanto\AdminBundle\Builder\View\ViewBuilder; use esperanto\AdminBundle\Event\BuilderEvent; use esperanto\AdminBundle\Event\MenuBuilderEvent; class AdminSliderBuilderSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { return array( 'esperanto_slider.slider.build_menu' => array('onBuildMenu', 0), 'esperanto_slider.slider.build_table_route' => array('onBuildTableRoute', 0), 'esperanto_slider.slider.build_index_route' => array('onBuildIndexRoute', 0), ); } public function onBuildTableRoute(RouteBuilderEvent $event) { } public function onBuildIndexRoute(RouteBuilderEvent $event) { } public function onBuildMenu(MenuBuilderEvent $event) { $event->setBuilder(null); } }
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.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. ## Code After: 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'
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 public tokens: Token[] public sandwichTrackers: RichSandwichTracker[] constructor(args?: Args) { if (!args) { return } this.consumer = args.consumer this.tokens = args.tokens this.sandwichTrackers = args.sandwichTrackers } clone(): TokenizerState { return new TokenizerState({ consumer: this.consumer.clone(), tokens: this.tokens.slice(), sandwichTrackers: this.sandwichTrackers.map(tracker => tracker.clone()) }) } }
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 tokens: Token[] public sandwichTrackers: RichSandwichTracker[] constructor(args?: Args) { if (!args) { return } this.consumer = args.consumer this.tokens = args.tokens this.sandwichTrackers = args.sandwichTrackers } clone(): TokenizerState { return new TokenizerState({ consumer: this.consumer.clone(), tokens: this.tokens.slice(), sandwichTrackers: this.sandwichTrackers.map(tracker => tracker.clone()) }) } }
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 consumer: TextConsumer public tokens: Token[] public sandwichTrackers: RichSandwichTracker[] constructor(args?: Args) { if (!args) { return } this.consumer = args.consumer this.tokens = args.tokens this.sandwichTrackers = args.sandwichTrackers } clone(): TokenizerState { return new TokenizerState({ consumer: this.consumer.clone(), tokens: this.tokens.slice(), sandwichTrackers: this.sandwichTrackers.map(tracker => tracker.clone()) }) } } ## Instruction: Fix formatting in tokenizer state file ## Code After: 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 tokens: Token[] public sandwichTrackers: RichSandwichTracker[] constructor(args?: Args) { if (!args) { return } this.consumer = args.consumer this.tokens = args.tokens this.sandwichTrackers = args.sandwichTrackers } clone(): TokenizerState { return new TokenizerState({ consumer: this.consumer.clone(), tokens: this.tokens.slice(), sandwichTrackers: this.sandwichTrackers.map(tracker => tracker.clone()) }) } }
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 -l "type=geopackage file=tiles.gpkg name=world" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world" -o countries_2.png -z 2
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 \ -v geoc tile pyramid -l "type=geopackage file=tiles.gpkg name=world_geodetic" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world_geodetic" -o world_geodetic_2.png -z 2 # Mercator geoc tile generate -l "type=geopackage file=tiles.gpkg name=world_mercator pyramid=mercator" \ -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 \ -v geoc tile pyramid -l "type=geopackage file=tiles.gpkg name=world_mercator" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world_mercator" -o world_mercator_2.png -z 2
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 geoc tile pyramid -l "type=geopackage file=tiles.gpkg name=world" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world" -o countries_2.png -z 2 ## Instruction: Add example of geopackage containing two tile sets ## Code After: 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 \ -v geoc tile pyramid -l "type=geopackage file=tiles.gpkg name=world_geodetic" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world_geodetic" -o world_geodetic_2.png -z 2 # Mercator geoc tile generate -l "type=geopackage file=tiles.gpkg name=world_mercator pyramid=mercator" \ -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 \ -v geoc tile pyramid -l "type=geopackage file=tiles.gpkg name=world_mercator" -o json geoc tile stitch raster -l "type=geopackage file=tiles.gpkg name=world_mercator" -o world_mercator_2.png -z 2
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 public let permissions: InvitationPermissions public let createdAt: Date public let url: String public let htmlUrl: String }
// // 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 public let permissions: InvitationPermissions public let createdAt: Date public let url: String public let htmlUrl: String } extension Invitation { enum CodingKeys: String, CodingKey { case id case repository case invetee case inviter case permissions case createdAt = "created_at" case url case htmlUrl = "html_url" } }
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 inviter: User public let permissions: InvitationPermissions public let createdAt: Date public let url: String public let htmlUrl: String } ## Instruction: Correct coding keys for invitation ## Code After: // // 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 public let permissions: InvitationPermissions public let createdAt: Date public let url: String public let htmlUrl: String } extension Invitation { enum CodingKeys: String, CodingKey { case id case repository case invetee case inviter case permissions case createdAt = "created_at" case url case htmlUrl = "html_url" } }
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 neat advantages: - Uses values as defaults; no need for strings. - Supports easily pretty-printing a structure - Supports custom `flag.Value` types in structures - A useful amount of interoperability with `flag`, allowing you to mix code that uses both. - Support for FlagSet. ## Usage A quick example follows: ```go package main import ( "flag" "github.com/Benzinga/flagstruct" ) var conf = struct { Compress bool `flag:"z" usage:"whether or not to use compression"` OutputFn string `flag:"out" usage:"output ~filename~"` }{ Compress: true, } func main() { // Setup enhanced usage help flag.Usage = flagstruct.MakeStructUsage(&conf) // Parse flags. flagstruct.ParseStruct(&conf) } ```
`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 neat advantages: - Uses values as defaults; no need for strings. - Supports easily pretty-printing a structure - Supports custom `flag.Value` types in structures - A useful amount of interoperability with `flag`, allowing you to mix code that uses both. - Support for FlagSet. - Optionally supports environment variable parsing. ## Usage A quick example follows: ```go package main import ( "flag" "github.com/Benzinga/flagstruct" ) var conf = struct { Compress bool `flag:"z" usage:"whether or not to use compression" env:"COMPRESS"` OutputFn string `flag:"out" usage:"output ~filename~"` }{ Compress: true, } func main() { // Setup enhanced usage help. // Note: this will hide flags not in the struct. flag.Usage = flagstruct.MakeStructUsage(&conf) // Set up flags based on structure. flagstruct.Struct(&conf) // Parse environment (optional.) // You can do this after flags to make env take precedence above flags. flagstruct.ParseEnv() // Parse flags. flagstruct.Parse() } ```
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. `flagstruct` has a few neat advantages: - Uses values as defaults; no need for strings. - Supports easily pretty-printing a structure - Supports custom `flag.Value` types in structures - A useful amount of interoperability with `flag`, allowing you to mix code that uses both. - Support for FlagSet. ## Usage A quick example follows: ```go package main import ( "flag" "github.com/Benzinga/flagstruct" ) var conf = struct { Compress bool `flag:"z" usage:"whether or not to use compression"` OutputFn string `flag:"out" usage:"output ~filename~"` }{ Compress: true, } func main() { // Setup enhanced usage help flag.Usage = flagstruct.MakeStructUsage(&conf) // Parse flags. flagstruct.ParseStruct(&conf) } ``` ## Instruction: Add documentation about using env. ## Code After: `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 neat advantages: - Uses values as defaults; no need for strings. - Supports easily pretty-printing a structure - Supports custom `flag.Value` types in structures - A useful amount of interoperability with `flag`, allowing you to mix code that uses both. - Support for FlagSet. - Optionally supports environment variable parsing. ## Usage A quick example follows: ```go package main import ( "flag" "github.com/Benzinga/flagstruct" ) var conf = struct { Compress bool `flag:"z" usage:"whether or not to use compression" env:"COMPRESS"` OutputFn string `flag:"out" usage:"output ~filename~"` }{ Compress: true, } func main() { // Setup enhanced usage help. // Note: this will hide flags not in the struct. flag.Usage = flagstruct.MakeStructUsage(&conf) // Set up flags based on structure. flagstruct.Struct(&conf) // Parse environment (optional.) // You can do this after flags to make env take precedence above flags. flagstruct.ParseEnv() // Parse flags. flagstruct.Parse() } ```
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 VRPNDH input device plugin" ON) OPTION(USE_BALLAXY_PLUGIN "Build the BALLaxy widget plugin" ON) IF (USE_PRESENTABALL_PLUGIN) ADD_SUBDIRECTORY(PRESENTABALL) ENDIF() IF (USE_SPACENAV_PLUGIN) ADD_SUBDIRECTORY(SPACENAV) ENDIF() IF (USE_XML3D_PLUGIN) ADD_SUBDIRECTORY(XML3D) ENDIF() IF (USE_VRPN_PLUGIN) ADD_SUBDIRECTORY(VRPN) ENDIF() IF (USE_VRPNHD_PLUGIN) ADD_SUBDIRECTORY(VRPNHD) ENDIF() IF (USE_BALLAXY_PLUGIN) ADD_SUBDIRECTORY(BALLAXY) ENDIF()
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 VRPNDH input device plugin" ON) OPTION(USE_BALLAXY_PLUGIN "Build the BALLaxy widget plugin" ON) IF (USE_PRESENTABALL_PLUGIN) ADD_SUBDIRECTORY(PRESENTABALL) ENDIF() IF (USE_SPACENAV_PLUGIN) ADD_SUBDIRECTORY(SPACENAV) ENDIF() IF (USE_XML3D_PLUGIN) ADD_SUBDIRECTORY(XML3D) ENDIF() IF (USE_VRPN_PLUGIN) ADD_SUBDIRECTORY(VRPN) ENDIF() IF (USE_VRPNHD_PLUGIN) ADD_SUBDIRECTORY(VRPNHD) ENDIF() IF (BALL_BUILD_BALLAXY) IF (USE_BALLAXY_PLUGIN) ADD_SUBDIRECTORY(BALLAXY) ENDIF() ENDIF()
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_PLUGIN "Build the VRPNDH input device plugin" ON) OPTION(USE_BALLAXY_PLUGIN "Build the BALLaxy widget plugin" ON) IF (USE_PRESENTABALL_PLUGIN) ADD_SUBDIRECTORY(PRESENTABALL) ENDIF() IF (USE_SPACENAV_PLUGIN) ADD_SUBDIRECTORY(SPACENAV) ENDIF() IF (USE_XML3D_PLUGIN) ADD_SUBDIRECTORY(XML3D) ENDIF() IF (USE_VRPN_PLUGIN) ADD_SUBDIRECTORY(VRPN) ENDIF() IF (USE_VRPNHD_PLUGIN) ADD_SUBDIRECTORY(VRPNHD) ENDIF() IF (USE_BALLAXY_PLUGIN) ADD_SUBDIRECTORY(BALLAXY) ENDIF() ## Instruction: Build BALLaxy plugin only if BALLaxy build is enabled ## Code After: 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 VRPNDH input device plugin" ON) OPTION(USE_BALLAXY_PLUGIN "Build the BALLaxy widget plugin" ON) IF (USE_PRESENTABALL_PLUGIN) ADD_SUBDIRECTORY(PRESENTABALL) ENDIF() IF (USE_SPACENAV_PLUGIN) ADD_SUBDIRECTORY(SPACENAV) ENDIF() IF (USE_XML3D_PLUGIN) ADD_SUBDIRECTORY(XML3D) ENDIF() IF (USE_VRPN_PLUGIN) ADD_SUBDIRECTORY(VRPN) ENDIF() IF (USE_VRPNHD_PLUGIN) ADD_SUBDIRECTORY(VRPNHD) ENDIF() IF (BALL_BUILD_BALLAXY) IF (USE_BALLAXY_PLUGIN) ADD_SUBDIRECTORY(BALLAXY) ENDIF() ENDIF()
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 = new Chip8(function() {console.log('beep')}); console.log('chip8 is here!'); });
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/dchousing-apps,uncompiled/districthousing,meiao/districthousing,dclegalhackers/districthousing,codefordc/districthousing,dclegalhackers/districthousing,codefordc/districthousing,MetricMike/districthousing,dclegalhackers/districthousing,jrunningen/districthousing,MetricMike/districthousing,dclegalhackers/districthousing,dmjurg/districthousing,MetricMike/districthousing,jrunningen/districthousing,lankyfrenchman/dchousing-apps,jrunningen/districthousing,adelevie/districthousing,adelevie/districthousing,lankyfrenchman/dchousing-apps,uncompiled/districthousing,uncompiled/districthousing,jrunningen/districthousing,codefordc/districthousing,jrunningen/districthousing,codefordc/districthousing,adelevie/districthousing,meiao/districthousing
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: <h2>Your cart:</h2> <table> <%= render(cart.line_items) %> </table> <%= button_to 'Empty cart', cart, method: :delete %> <%= button_to 'Download forms', "/download" %>
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-error endif
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 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. ## Code After: 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-error endif
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_path', type: 'string', value: '', description: 'path to system Certificate Authority list') option('pkcs11_support', type: 'boolean', value: true, description: 'support for pkcs11') option('installed_tests', type: 'boolean', value: false, description: 'enable installed unit tests')
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 using GnuTLS') option('ca_certificates_path', type: 'string', value: '', description: 'path to system Certificate Authority list') option('pkcs11_support', type: 'boolean', value: true, description: 'support for PKCS#11 using p11-kit') option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
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('ca_certificates_path', type: 'string', value: '', description: 'path to system Certificate Authority list') option('pkcs11_support', type: 'boolean', value: true, description: 'support for pkcs11') option('installed_tests', type: 'boolean', value: false, description: 'enable installed unit tests') ## Instruction: Improve descriptions of build options ## Code After: 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 using GnuTLS') option('ca_certificates_path', type: 'string', value: '', description: 'path to system Certificate Authority list') option('pkcs11_support', type: 'boolean', value: true, description: 'support for PKCS#11 using p11-kit') option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
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 unless actual_text == expected_text raise "Saw #{actual_text} instead of #{expected_text}" end end
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.virtual('date').get -> this._id.getTimestamp() mongoose.model 'RemodelItemRecord', RemodelItemRecord
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 RemodelItemRecord.virtual('date').get -> this._id.getTimestamp() mongoose.model 'RemodelItemRecord', RemodelItemRecord
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 RemodelItemRecord.virtual('date').get -> this._id.getTimestamp() mongoose.model 'RemodelItemRecord', RemodelItemRecord ## Instruction: Add certain flag for remodel item ## Code After: 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 RemodelItemRecord.virtual('date').get -> this._id.getTimestamp() mongoose.model 'RemodelItemRecord', RemodelItemRecord
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: [email protected] synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references: ! '>=0.3.2 && <1.0' uniplate: ! '>=1.6 && <2.0' structural-traversal: ! '>=0.1 && <0.2' all-versions: - '0.1.2.0' author: Boldizsar Nemeth latest: '0.1.2.0' description-type: haddock description: A representation of a Haskell Syntax tree that contain source-related and semantic annotations. These annotations help developer tools to work with the defined program. The source information enables refactoring and program transformation tools to change the source code without losing the original format (layout, comments) of the source. Semantic information helps analyzing the program. The representation is different from the GHC's syntax tree. It contains information from all representations in GHC (different version of syntax trees, lexical and module-level information). license-name: BSD3
homepage: https://github.com/nboldi/haskell-tools changelog-type: '' hash: 6664c01ba1f873109b096d93321f1c16b2fcd35da4cc9f97ed622fad053867c7 test-bench-deps: {} maintainer: [email protected] synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references: ! '>=0.3.2 && <1.0' uniplate: ! '>=1.6 && <2.0' structural-traversal: ! '>=0.1 && <0.2' all-versions: - '0.1.2.0' - '0.1.2.1' author: Boldizsar Nemeth latest: '0.1.2.1' description-type: haddock description: A representation of a Haskell Syntax tree that contain source-related and semantic annotations. These annotations help developer tools to work with the defined program. The source information enables refactoring and program transformation tools to change the source code without losing the original format (layout, comments) of the source. Semantic information helps analyzing the program. The representation is different from the GHC's syntax tree. It contains information from all representations in GHC (different version of syntax trees, lexical and module-level information). license-name: BSD3
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: [email protected] synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references: ! '>=0.3.2 && <1.0' uniplate: ! '>=1.6 && <2.0' structural-traversal: ! '>=0.1 && <0.2' all-versions: - '0.1.2.0' author: Boldizsar Nemeth latest: '0.1.2.0' description-type: haddock description: A representation of a Haskell Syntax tree that contain source-related and semantic annotations. These annotations help developer tools to work with the defined program. The source information enables refactoring and program transformation tools to change the source code without losing the original format (layout, comments) of the source. Semantic information helps analyzing the program. The representation is different from the GHC's syntax tree. It contains information from all representations in GHC (different version of syntax trees, lexical and module-level information). license-name: BSD3 ## Instruction: Update from Hackage at 2016-07-01T12:53:52+0000 ## Code After: homepage: https://github.com/nboldi/haskell-tools changelog-type: '' hash: 6664c01ba1f873109b096d93321f1c16b2fcd35da4cc9f97ed622fad053867c7 test-bench-deps: {} maintainer: [email protected] synopsis: Haskell AST for efficient tooling changelog: '' basic-deps: ghc: ! '>=8.0 && <8.1' base: ! '>=4.9 && <5.0' references: ! '>=0.3.2 && <1.0' uniplate: ! '>=1.6 && <2.0' structural-traversal: ! '>=0.1 && <0.2' all-versions: - '0.1.2.0' - '0.1.2.1' author: Boldizsar Nemeth latest: '0.1.2.1' description-type: haddock description: A representation of a Haskell Syntax tree that contain source-related and semantic annotations. These annotations help developer tools to work with the defined program. The source information enables refactoring and program transformation tools to change the source code without losing the original format (layout, comments) of the source. Semantic information helps analyzing the program. The representation is different from the GHC's syntax tree. It contains information from all representations in GHC (different version of syntax trees, lexical and module-level information). license-name: BSD3
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") } else { fmt.Fprint(w, "I do not understand your command.") } }
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" command := r.FormValue("command") if command == "/9gag" { fmt.Fprint(w, "Hello World") } else { fmt.Fprint(w, "I do not understand your command.") } }
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, "Hello World") } else { fmt.Fprint(w, "I do not understand your command.") } } ## Instruction: Change package name to main. Add ListenAndServ. ## Code After: 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" command := r.FormValue("command") if command == "/9gag" { fmt.Fprint(w, "Hello World") } else { fmt.Fprint(w, "I do not understand your command.") } }
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=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P)) if [ ! -d $venvdir ]; then virtualenv $venvdir fi source "$venvdir/bin/activate" pip install -r requirements_for_tests.txt nosetests -v display_result $? 1 "Unit tests" behave --stop display_result $? 2 "Feature tests" "$basedir/pep-it.sh" display_result $? 3 "Code style check"
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) venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P)) if [ ! -d $venvdir ]; then virtualenv $venvdir fi source "$venvdir/bin/activate" pip install -r requirements_for_tests.txt nosetests -v display_result $? 1 "Unit tests" behave --stop display_result $? 2 "Feature tests" "$basedir/pep-it.sh" display_result $? 3 "Code style check"
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) venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P)) if [ ! -d $venvdir ]; then virtualenv $venvdir fi source "$venvdir/bin/activate" pip install -r requirements_for_tests.txt nosetests -v display_result $? 1 "Unit tests" behave --stop display_result $? 2 "Feature tests" "$basedir/pep-it.sh" display_result $? 3 "Code style check" ## Instruction: Set environment to test when running tests. @maxfliri @robyoung ## Code After: 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) venvdir=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P)) if [ ! -d $venvdir ]; then virtualenv $venvdir fi source "$venvdir/bin/activate" pip install -r requirements_for_tests.txt nosetests -v display_result $? 1 "Unit tests" behave --stop display_result $? 2 "Feature tests" "$basedir/pep-it.sh" display_result $? 3 "Code style check"
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 can bridge the communication gap between business and tech, and why courage trumps all. All this and more in this episode of the Cucumber podcast. On the podcast this week: Megan Folsom - [@mfolsom](https://twitter.com/mfolsom) Steve Tooke - [@tooky](https://twitter.com/tooky) Matt Wynne - [@mattwynne](https://twitter.com/mattwynne) Aslak Hellesøy - [@aslak_hellesoy](https://twitter.com/aslak_hellesoy) <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/243854798&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
--- 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 can bridge the communication gap between business and tech, and why courage trumps all. All this and more in this episode of the Cucumber podcast. On the podcast this week: Megan Folsom - [@mfolsom](https://twitter.com/mfolsom) Steve Tooke - [@tooky](https://twitter.com/tooky) Matt Wynne - [@mattwynne](https://twitter.com/mattwynne) Aslak Hellesøy - [@aslak_hellesoy](https://twitter.com/aslak_hellesoy) <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/243854798&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>
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 role, how the PO can bridge the communication gap between business and tech, and why courage trumps all. All this and more in this episode of the Cucumber podcast. On the podcast this week: Megan Folsom - [@mfolsom](https://twitter.com/mfolsom) Steve Tooke - [@tooky](https://twitter.com/tooky) Matt Wynne - [@mattwynne](https://twitter.com/mattwynne) Aslak Hellesøy - [@aslak_hellesoy](https://twitter.com/aslak_hellesoy) <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/243854798&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe> ## Instruction: Change height of Soundcloud embedded link ## Code After: --- 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 can bridge the communication gap between business and tech, and why courage trumps all. All this and more in this episode of the Cucumber podcast. On the podcast this week: Megan Folsom - [@mfolsom](https://twitter.com/mfolsom) Steve Tooke - [@tooky](https://twitter.com/tooky) Matt Wynne - [@mattwynne](https://twitter.com/mattwynne) Aslak Hellesøy - [@aslak_hellesoy](https://twitter.com/aslak_hellesoy) <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/243854798&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>
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-url($sprites-2x) repeat: no-repeat %sprite-1x @include sprite-1x %sprite-2x @include sprite-2x @mixin sprite($name, $use-mixin: false) @if $use-mixin @include sprite-1x @include sprite-2x @else @extend %sprite-1x @extend %sprite-2x width: image-width(sprite-file($sprites-1x, $name)) height: image-height(sprite-file($sprites-1x, $name)) background: position: sprite-position($sprites-1x, $name) @include media($hidpi) $position: sprite-position($sprites-2x, $name) background: position: round(nth($position, 1) / 2) round(nth($position, 2) / 2) @include background-size(round(image-width(sprite-path($sprites-2x)) / 2) auto)
$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-url($sprites-2x) repeat: no-repeat %sprite-1x @include sprite-1x %sprite-2x @include sprite-2x @mixin sprite($name, $use-mixin: false) @if $use-mixin @include sprite-1x @include sprite-2x @else @extend %sprite-1x @extend %sprite-2x width: image-width(sprite-file($sprites-1x, $name)) height: image-height(sprite-file($sprites-1x, $name)) background: position: sprite-position($sprites-1x, $name) @include media($hidpi) $position: sprite-position($sprites-2x, $name) background: position: ceil(nth($position, 1) / 2) ceil(nth($position, 2) / 2) @include background-size(ceil(image-width(sprite-path($sprites-2x)) / 2) auto)
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: image: sprite-url($sprites-2x) repeat: no-repeat %sprite-1x @include sprite-1x %sprite-2x @include sprite-2x @mixin sprite($name, $use-mixin: false) @if $use-mixin @include sprite-1x @include sprite-2x @else @extend %sprite-1x @extend %sprite-2x width: image-width(sprite-file($sprites-1x, $name)) height: image-height(sprite-file($sprites-1x, $name)) background: position: sprite-position($sprites-1x, $name) @include media($hidpi) $position: sprite-position($sprites-2x, $name) background: position: round(nth($position, 1) / 2) round(nth($position, 2) / 2) @include background-size(round(image-width(sprite-path($sprites-2x)) / 2) auto) ## Instruction: Revert "Round 2x sprite values instead of ceiling them." This reverts commit f8a714ff1cdc51bcf81bb1003d08a366573a036b. ## Code After: $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-url($sprites-2x) repeat: no-repeat %sprite-1x @include sprite-1x %sprite-2x @include sprite-2x @mixin sprite($name, $use-mixin: false) @if $use-mixin @include sprite-1x @include sprite-2x @else @extend %sprite-1x @extend %sprite-2x width: image-width(sprite-file($sprites-1x, $name)) height: image-height(sprite-file($sprites-1x, $name)) background: position: sprite-position($sprites-1x, $name) @include media($hidpi) $position: sprite-position($sprites-2x, $name) background: position: ceil(nth($position, 1) / 2) ceil(nth($position, 2) / 2) @include background-size(ceil(image-width(sprite-path($sprites-2x)) / 2) auto)
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 After: 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
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.'"'], 'providers' => []]; $app = (new Commander($config, realpath(__DIR__.'/../../')))->laravel(); unset($APP_KEY, $DB_CONNECTION, $config); if (file_exists(__DIR__.'/../routes/testbench.php')) { $router = $app->make('router'); require __DIR__.'/../routes/testbench.php'; } return $app;
<?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.'"'], 'providers' => []]; $app = (new Commander($config, getcwd()))->laravel(); unset($APP_KEY, $DB_CONNECTION, $config); if (file_exists(__DIR__.'/../routes/testbench.php')) { $router = $app->make('router'); require __DIR__.'/../routes/testbench.php'; } return $app;
Use getcwd() to determine working path.
Use getcwd() to determine working path. Signed-off-by: Mior Muhammad Zaki <[email protected]>
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_CONNECTION.'"'], 'providers' => []]; $app = (new Commander($config, realpath(__DIR__.'/../../')))->laravel(); unset($APP_KEY, $DB_CONNECTION, $config); if (file_exists(__DIR__.'/../routes/testbench.php')) { $router = $app->make('router'); require __DIR__.'/../routes/testbench.php'; } return $app; ## Instruction: Use getcwd() to determine working path. Signed-off-by: Mior Muhammad Zaki <[email protected]> ## Code After: <?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.'"'], 'providers' => []]; $app = (new Commander($config, getcwd()))->laravel(); unset($APP_KEY, $DB_CONNECTION, $config); if (file_exists(__DIR__.'/../routes/testbench.php')) { $router = $app->make('router'); require __DIR__.'/../routes/testbench.php'; } return $app;
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('should return coords that lie on the visual plane', function(){ // // }); // }); // });
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 coords on vis plane of point directly ahead', function(){ var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(0,10,0)); assert(point.xyzOnVisPlane(player).equals(new Vector(0,0,0))) }); it('should return coords on vis plane of point on vis plane', function() { var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(2,0,3)); assert(point.xyzOnVisPlane(player).equals(new Vector(2,0,3))) }); it('should return undefined for point on shadows plane', function() { var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(0,-5,1)); var p = point.xyzOnVisPlane(player) console.log("This is undefined output for point on shadow plane: " + p.x + p.y + p.z ); }); it('should return coords on vis plane for arbitrary point in front of player', function(){ var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(1,2,1)); assert(point.xyzOnVisPlane(player).equals(new Vector(5/7,0,5/7))); }); }); });
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() { // var // it('should return coords that lie on the visual plane', function(){ // // }); // }); // }); ## Instruction: Add begin testing of point ## Code After: 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 coords on vis plane of point directly ahead', function(){ var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(0,10,0)); assert(point.xyzOnVisPlane(player).equals(new Vector(0,0,0))) }); it('should return coords on vis plane of point on vis plane', function() { var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(2,0,3)); assert(point.xyzOnVisPlane(player).equals(new Vector(2,0,3))) }); it('should return undefined for point on shadows plane', function() { var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(0,-5,1)); var p = point.xyzOnVisPlane(player) console.log("This is undefined output for point on shadow plane: " + p.x + p.y + p.z ); }); it('should return coords on vis plane for arbitrary point in front of player', function(){ var player = new Player(new Vector(0,0,0), new Vector(0,1,0), 5); var point = new Point(new Vector(1,2,1)); assert(point.xyzOnVisPlane(player).equals(new Vector(5/7,0,5/7))); }); }); });
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 ; you can obtain one at <http://mozilla.org/MPL/2.0/>. ; version=0 Name=engine Depends=untar,lz4,json,sfml-audio,sfml-graphics,sfml-network,sfml-window,sfml-system,boost_locale,boost_filesystem,boost_system [Output] Type=executable Name=playmochi Path=build [Source] Langs=c,c++,d SourceDir=src IncludeDir=src
; -*- 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 ; you can obtain one at <http://mozilla.org/MPL/2.0/>. ; version=0 Name=engine Depends=sfmlaudio,sfmlgraphics,sfmlnetwork,sfmlwindow,sfmlsystem,boost_locale,boost_filesystem,boost_system [Output] Type=executable Name=playmochi Path=build [Source] Langs=c,c++,d SourceDir=src IncludeDir=src/engine/src
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 this file, then ; you can obtain one at <http://mozilla.org/MPL/2.0/>. ; version=0 Name=engine Depends=untar,lz4,json,sfml-audio,sfml-graphics,sfml-network,sfml-window,sfml-system,boost_locale,boost_filesystem,boost_system [Output] Type=executable Name=playmochi Path=build [Source] Langs=c,c++,d SourceDir=src IncludeDir=src ## Instruction: Remove internal lib dependencies, fix custom naming of SFML ## Code After: ; -*- 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 ; you can obtain one at <http://mozilla.org/MPL/2.0/>. ; version=0 Name=engine Depends=sfmlaudio,sfmlgraphics,sfmlnetwork,sfmlwindow,sfmlsystem,boost_locale,boost_filesystem,boost_system [Output] Type=executable Name=playmochi Path=build [Source] Langs=c,c++,d SourceDir=src IncludeDir=src/engine/src
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() { return new ModelBoundModel(); } }
<?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 createModel() { return new ModelBoundModel(); } } ## Instruction: Make sure SearchLeaf gets given a SearchModel for correct functions ## Code After: <?php namespace SuperCMS\Leaves\Site\Product; use SuperCMS\Leaves\Site\Search\SearchLeaf; class ProductCollection extends SearchLeaf { protected function getViewClass() { return ProductCollectionView::class; } }
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} ) install( FILES csync.1 DESTINATION ${MAN_INSTALL_DIR}/man1 ) install( DIRECTORY userguide DESTINATION ${SHARE_INSTALL_PREFIX}/doc/csync )
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 ${CMAKE_CURRENT_SOURCE_DIR} ) install( FILES csync.1 DESTINATION ${MAN_INSTALL_DIR}/man1 ) install( DIRECTORY userguide DESTINATION ${SHARE_INSTALL_PREFIX}/doc/csync )
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_CURRENT_SOURCE_DIR} ) install( FILES csync.1 DESTINATION ${MAN_INSTALL_DIR}/man1 ) install( DIRECTORY userguide DESTINATION ${SHARE_INSTALL_PREFIX}/doc/csync ) ## Instruction: Enable doxygen for developer documentation again. ## Code After: 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 ${CMAKE_CURRENT_SOURCE_DIR} ) install( FILES csync.1 DESTINATION ${MAN_INSTALL_DIR}/man1 ) install( DIRECTORY userguide DESTINATION ${SHARE_INSTALL_PREFIX}/doc/csync )
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::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
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-istanbul', { ignore: [ '**/src/scrollable.js', '**/src/scroller-events-stub.js', '**/__tests__/**', '**/vendor/**' ], } ]); sharedConf.reporters.push("coverage"); sharedConf.files = ['./node_modules/phantomjs-polyfill/bind-polyfill.js'].concat(sharedConf.files); var options = { // enable / disable watching file and executing tests whenever any file changes autoWatch: false, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: [ 'PhantomJS', // 'Chrome', ], // optionally, configure the reporter coverageReporter: { type : 'json', dir : 'coverage/' }, reporters: ["spec", "coverage"], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, }; for(var key in options) { sharedConf[key] = options[key]; } config.set(sharedConf); };
/* 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-istanbul', { ignore: [ '**/src/scrollable.js', // just a wrapper '**/src/prefixed.js', // almost a vendor library, tested on original project '**/src/scroller-events.js', // this is better tested by integration tests // at the moment, is tested internally at Yahoo, on // products integration tests. Will bootstrap a // integration suite later for this repository. '**/src/scroller-events-stub.js', // just for server-side '**/__tests__/**', '**/vendor/**' ], } ]); sharedConf.reporters.push("coverage"); sharedConf.files = ['./node_modules/phantomjs-polyfill/bind-polyfill.js'].concat(sharedConf.files); var options = { // enable / disable watching file and executing tests whenever any file changes autoWatch: false, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: [ 'PhantomJS', // 'Chrome', ], // optionally, configure the reporter coverageReporter: { type : 'json', dir : 'coverage/' }, reporters: ["spec", "coverage"], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, }; for(var key in options) { sharedConf[key] = options[key]; } config.set(sharedConf); };
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([ 'browserify-istanbul', { ignore: [ '**/src/scrollable.js', '**/src/scroller-events-stub.js', '**/__tests__/**', '**/vendor/**' ], } ]); sharedConf.reporters.push("coverage"); sharedConf.files = ['./node_modules/phantomjs-polyfill/bind-polyfill.js'].concat(sharedConf.files); var options = { // enable / disable watching file and executing tests whenever any file changes autoWatch: false, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: [ 'PhantomJS', // 'Chrome', ], // optionally, configure the reporter coverageReporter: { type : 'json', dir : 'coverage/' }, reporters: ["spec", "coverage"], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, }; for(var key in options) { sharedConf[key] = options[key]; } config.set(sharedConf); }; ## Instruction: Add more ignores to coverage, as well as explaining exceptions ## Code After: /* 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-istanbul', { ignore: [ '**/src/scrollable.js', // just a wrapper '**/src/prefixed.js', // almost a vendor library, tested on original project '**/src/scroller-events.js', // this is better tested by integration tests // at the moment, is tested internally at Yahoo, on // products integration tests. Will bootstrap a // integration suite later for this repository. '**/src/scroller-events-stub.js', // just for server-side '**/__tests__/**', '**/vendor/**' ], } ]); sharedConf.reporters.push("coverage"); sharedConf.files = ['./node_modules/phantomjs-polyfill/bind-polyfill.js'].concat(sharedConf.files); var options = { // enable / disable watching file and executing tests whenever any file changes autoWatch: false, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: [ 'PhantomJS', // 'Chrome', ], // optionally, configure the reporter coverageReporter: { type : 'json', dir : 'coverage/' }, reporters: ["spec", "coverage"], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, }; for(var key in options) { sharedConf[key] = options[key]; } config.set(sharedConf); };
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.Errorf("Square(%d) = %d, want %d.", st.in, v, st.out) } } } // ベンチマーク. func BenchmarkSquare(b *testing.B) { for i := 0; i < b.N; i++ { Square(10) } } // Example系. func ExampleSquare() { v := Square(11) fmt.Println(v) // Output: 121 }
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.Errorf("Square(%d) = %d, want %d.", st.in, v, st.out) } } } // $ go test // ベンチマーク. func BenchmarkSquare(b *testing.B) { for i := 0; i < b.N; i++ { Square(10) } } // $ go test -bench . // $ go test -bench . -benchmem # メモリ使用量やalloc回数も取得. // Example系. func ExampleSquare() { v := Square(11) fmt.Println(v) // Output: 121 } // $ go test
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 != st.out { t.Errorf("Square(%d) = %d, want %d.", st.in, v, st.out) } } } // ベンチマーク. func BenchmarkSquare(b *testing.B) { for i := 0; i < b.N; i++ { Square(10) } } // Example系. func ExampleSquare() { v := Square(11) fmt.Println(v) // Output: 121 } ## Instruction: Add a sample code for execution in terminal. ## Code After: 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.Errorf("Square(%d) = %d, want %d.", st.in, v, st.out) } } } // $ go test // ベンチマーク. func BenchmarkSquare(b *testing.B) { for i := 0; i < b.N; i++ { Square(10) } } // $ go test -bench . // $ go test -bench . -benchmem # メモリ使用量やalloc回数も取得. // Example系. func ExampleSquare() { v := Square(11) fmt.Println(v) // Output: 121 } // $ go test
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=${prefix}/share/man/man1 INSTALL_LMOD=${prefix}/share/lua/${V} INSTALL_CMOD=${prefix}/lib/lua/${V} exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Lua Description: An Extensible Extension Language Version: ${R} Requires: Libs: -L${libdir} -llua -lm -ldl Cflags: -I${includedir} EOF export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$PWD ./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
./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/staged-recipes,kwilcox/staged-recipes,johanneskoester/staged-recipes,ReimarBauer/staged-recipes,jochym/staged-recipes,mariusvniekerk/staged-recipes,SylvainCorlay/staged-recipes,chrisburr/staged-recipes,chrisburr/staged-recipes,petrushy/staged-recipes,ocefpaf/staged-recipes,hadim/staged-recipes,scopatz/staged-recipes,kwilcox/staged-recipes,igortg/staged-recipes,hadim/staged-recipes,conda-forge/staged-recipes,jakirkham/staged-recipes,stuertz/staged-recipes,jakirkham/staged-recipes,ocefpaf/staged-recipes,ReimarBauer/staged-recipes
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}/lib INSTALL_MAN=${prefix}/share/man/man1 INSTALL_LMOD=${prefix}/share/lua/${V} INSTALL_CMOD=${prefix}/lib/lua/${V} exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Lua Description: An Extensible Extension Language Version: ${R} Requires: Libs: -L${libdir} -llua -lm -ldl Cflags: -I${includedir} EOF export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$PWD ./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 ## Instruction: Remove hack for lua pkg-config file ## Code After: ./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
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, releases unreleased_tags = tagsparser.find_unreleased_tags(tags, releases) flockML = flock.create_flockML_for_tags(repo["owner"], repo["name"], unreleased_tags) if flockML: flock.notify_group_about_missing_release_notes(flockML) else: print "No message sending required for {0}".format(repo) if __name__ == '__main__': main()
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 for t in tags], [r.version for r in releases] unreleased_tags = tagsparser.find_unreleased_tags(tags, releases) flockML = flock.create_flockML_for_tags(repo["owner"], repo["name"], unreleased_tags) if flockML: flock.notify_group_about_missing_release_notes(flockML) else: print "No message sending required for {0}".format(repo) if __name__ == '__main__': main()
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 "Got", tags, releases unreleased_tags = tagsparser.find_unreleased_tags(tags, releases) flockML = flock.create_flockML_for_tags(repo["owner"], repo["name"], unreleased_tags) if flockML: flock.notify_group_about_missing_release_notes(flockML) else: print "No message sending required for {0}".format(repo) if __name__ == '__main__': main() ## Instruction: Fix version printing of tags and releases ## Code After: 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 for t in tags], [r.version for r in releases] unreleased_tags = tagsparser.find_unreleased_tags(tags, releases) flockML = flock.create_flockML_for_tags(repo["owner"], repo["name"], unreleased_tags) if flockML: flock.notify_group_about_missing_release_notes(flockML) else: print "No message sending required for {0}".format(repo) if __name__ == '__main__': main()
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> </table> </div> </div> <div class="row"> <div class="col-md-6"> <!--Message box--> <div class="alert alert-success" role="alert" ng-if="msg.length>0"> {{msg}} </div> <!--Table with cache info--> <table class="table"> <thead> <tr> <th>Table</th> <th>Entries</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="(tableName, value) in tables"> <td>{{ tableName }}</td> <td>{{ value }}</td> <td> <button class="btn btn-xs btn-primary" ng-click="truncateCache(tableName)"> Truncate </button> </td> </tr> </tbody> </table> <!--Truncate all button--> <button class="btn btn-danger" ng-click="truncateCache('all')"> <span class="glyphicon glyphicon-trash"></span> Truncate All </button> </div> </div>
<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> </table> </div> </div> <div class="row"> <div class="col-md-6"> <!--Table with cache info--> <table class="table"> <thead> <tr> <th>Table</th> <th>Entries</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="(tableName, value) in tables"> <td>{{ tableName }}</td> <td>{{ value }}</td> <td> <button class="btn btn-xs btn-primary" ng-click="truncateCache(tableName)"> Truncate </button> </td> </tr> </tbody> </table> <!--Truncate all button--> <button class="btn btn-danger" ng-click="truncateCache('all')"> <span class="glyphicon glyphicon-trash"></span> Truncate All </button> <!--Message box--> <div class="alert alert-success" style="margin-top: 20px" role="alert" ng-if="msg.length>0"> {{msg}} </div> </div> </div>
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> </tbody> </table> </div> </div> <div class="row"> <div class="col-md-6"> <!--Message box--> <div class="alert alert-success" role="alert" ng-if="msg.length>0"> {{msg}} </div> <!--Table with cache info--> <table class="table"> <thead> <tr> <th>Table</th> <th>Entries</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="(tableName, value) in tables"> <td>{{ tableName }}</td> <td>{{ value }}</td> <td> <button class="btn btn-xs btn-primary" ng-click="truncateCache(tableName)"> Truncate </button> </td> </tr> </tbody> </table> <!--Truncate all button--> <button class="btn btn-danger" ng-click="truncateCache('all')"> <span class="glyphicon glyphicon-trash"></span> Truncate All </button> </div> </div> ## Instruction: Move message box to the bottom of the page in cache management page ## Code After: <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> </table> </div> </div> <div class="row"> <div class="col-md-6"> <!--Table with cache info--> <table class="table"> <thead> <tr> <th>Table</th> <th>Entries</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="(tableName, value) in tables"> <td>{{ tableName }}</td> <td>{{ value }}</td> <td> <button class="btn btn-xs btn-primary" ng-click="truncateCache(tableName)"> Truncate </button> </td> </tr> </tbody> </table> <!--Truncate all button--> <button class="btn btn-danger" ng-click="truncateCache('all')"> <span class="glyphicon glyphicon-trash"></span> Truncate All </button> <!--Message box--> <div class="alert alert-success" style="margin-top: 20px" role="alert" ng-if="msg.length>0"> {{msg}} </div> </div> </div>
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 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 ## Code After: 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 + '/');
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 language: ruby rvm: - 2.3.4 before_install: - docker-compose --version - docker-compose up -d - docker ps - gem install bundler -v 1.15.3
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>  ``` */ .button { ... } ``` Launch cssdoc and open [http://localhost:4567](http://localhost:4567) ``` cssdoc ``` ![](http://dl.dropbox.com/u/5978869/image/20121216_210857.png)
CSS styleguide generator ## Installation ``` git clone [email protected]: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"> button </button> <button class="button danger"> danger </button>  ``` */ .button { ... } ``` Launch cssdoc and open [http://localhost:4567](http://localhost:4567) ``` cssdoc ``` ![](http://dl.dropbox.com/u/5978869/image/20121216_210857.png)
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"> danger </button>  ``` */ .button { ... } ``` Launch cssdoc and open [http://localhost:4567](http://localhost:4567) ``` cssdoc ``` ![](http://dl.dropbox.com/u/5978869/image/20121216_210857.png) ## Instruction: Fix installation because cssdoc.gem is already used ## Code After: CSS styleguide generator ## Installation ``` git clone [email protected]: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"> button </button> <button class="button danger"> danger </button>  ``` */ .button { ... } ``` Launch cssdoc and open [http://localhost:4567](http://localhost:4567) ``` cssdoc ``` ![](http://dl.dropbox.com/u/5978869/image/20121216_210857.png)
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 see where uuid changes are supported ## Code After: 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
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 --fstype ext4 --recommended --ondisk=sda part pv.2 --size=1 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.2 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536 logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow reboot user --name=BOXES_USERNAME --password=BOXES_PASSWORD %packages @base @core @hardware-support @base-x @gnome-desktop @graphical-internet @sound-and-video %end
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 --fstype ext4 --recommended --ondisk=sda part pv.2 --size=1 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.2 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536 logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow reboot user --name=BOXES_USERNAME --password=BOXES_PASSWORD %packages @base @core @hardware-support @base-x @gnome-desktop @graphical-internet @sound-and-video # QXL video driver xorg-x11-drv-qxl %end
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=1 part /boot --fstype ext4 --recommended --ondisk=sda part pv.2 --size=1 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.2 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536 logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow reboot user --name=BOXES_USERNAME --password=BOXES_PASSWORD %packages @base @core @hardware-support @base-x @gnome-desktop @graphical-internet @sound-and-video %end ## Instruction: Install QXL on Fedora guests https://bugzilla.gnome.org/show_bug.cgi?id=665333 ## Code After: 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 --fstype ext4 --recommended --ondisk=sda part pv.2 --size=1 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.2 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536 logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow reboot user --name=BOXES_USERNAME --password=BOXES_PASSWORD %packages @base @core @hardware-support @base-x @gnome-desktop @graphical-internet @sound-and-video # QXL video driver xorg-x11-drv-qxl %end
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 os.isatty(master): raise TestFailed, "Master-end of pty is not a terminal." if not os.isatty(slave): raise TestFailed, "Slave-end of pty is not a terminal." os.write(slave, 'Ping!') print os.read(master, 1024)
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 os.isatty(slave): raise TestFailed, "Slave-end of pty is not a terminal." os.write(slave, 'Ping!') print os.read(master, 1024)
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() available." if not os.isatty(master): raise TestFailed, "Master-end of pty is not a terminal." if not os.isatty(slave): raise TestFailed, "Slave-end of pty is not a terminal." os.write(slave, 'Ping!') print os.read(master, 1024) ## Instruction: Remove bogus test; the master is not a terminal on Solaris and HP-UX. ## Code After: 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 os.isatty(slave): raise TestFailed, "Slave-end of pty is not a terminal." os.write(slave, 'Ping!') print os.read(master, 1024)
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 Usage - `./trabandcamp-<os>-<arch>[.exe] <Band Name>` *e.g for https://dopethrone.bandcamp.com/ you should run* `./trabandcamp-linux-amd64 dopethrone` Development - If you want to build the binary yourself `(export GOOS=<Operating System>; export GOARCH=<Architecture>; go build -o build/trabandcamp-$GOOS-$GOARCH trabandcamp.go)`
<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** style Installation - Download the latest binary from the [releases](https://github.com/stefanoschrs/trabandcamp/releases) page Usage - `./trabandcamp-<os>-<arch>[.exe] <Band Name>` *e.g for https://dopethrone.bandcamp.com/ you should run* `./trabandcamp-linux-amd64 dopethrone` Development - If you want to build the binary yourself `(export GOOS=<Operating System>; export GOARCH=<Architecture>; go build -o build/trabandcamp-$GOOS-$GOARCH trabandcamp.go)`
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/releases) page Usage - `./trabandcamp-<os>-<arch>[.exe] <Band Name>` *e.g for https://dopethrone.bandcamp.com/ you should run* `./trabandcamp-linux-amd64 dopethrone` Development - If you want to build the binary yourself `(export GOOS=<Operating System>; export GOARCH=<Architecture>; go build -o build/trabandcamp-$GOOS-$GOARCH trabandcamp.go)` ## Instruction: Add travis build status :boom: ## Code After: <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** style Installation - Download the latest binary from the [releases](https://github.com/stefanoschrs/trabandcamp/releases) page Usage - `./trabandcamp-<os>-<arch>[.exe] <Band Name>` *e.g for https://dopethrone.bandcamp.com/ you should run* `./trabandcamp-linux-amd64 dopethrone` Development - If you want to build the binary yourself `(export GOOS=<Operating System>; export GOARCH=<Architecture>; go build -o build/trabandcamp-$GOOS-$GOARCH trabandcamp.go)`
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-loading'), silent: true, env: { npm_lifecycle_event: 'secret', npm_package_scripty_path: '../custom-user-scripts', SCRIPTY_SILENT: true } }) grabStdio(stdio)(child) child.on('exit', function (code) { assert.equal(code, 0) assert.includes(stdio.stdout, 'SSHHH') done() }) } }
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', [], { cwd: path.join(__dirname, '..', 'fixtures', 'relative-path-loading'), silent: true, env: { npm_lifecycle_event: 'secret', npm_package_scripty_path: '../custom-user-scripts' + windowsSuffix, SCRIPTY_SILENT: true } }) grabStdio(stdio)(child) child.on('exit', function (code) { assert.equal(code, 0) assert.includes(stdio.stdout, 'SSHHH') done() }) } }
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', 'relative-path-loading'), silent: true, env: { npm_lifecycle_event: 'secret', npm_package_scripty_path: '../custom-user-scripts', SCRIPTY_SILENT: true } }) grabStdio(stdio)(child) child.on('exit', function (code) { assert.equal(code, 0) assert.includes(stdio.stdout, 'SSHHH') done() }) } } ## Instruction: Fix relative path test on windows ## Code After: 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', [], { cwd: path.join(__dirname, '..', 'fixtures', 'relative-path-loading'), silent: true, env: { npm_lifecycle_event: 'secret', npm_package_scripty_path: '../custom-user-scripts' + windowsSuffix, SCRIPTY_SILENT: true } }) grabStdio(stdio)(child) child.on('exit', function (code) { assert.equal(code, 0) assert.includes(stdio.stdout, 'SSHHH') done() }) } }
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 "[email protected]" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `git subtree split --prefix dist origin master`:develop --force deploy: provider: heroku app: notificat api_key: secure: $HEROKU
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 "[email protected]" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `git subtree split --prefix dist origin master`:develop --force deploy: provider: heroku app: notificat api_key: secure: $HEROKU
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 "[email protected]" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `git subtree split --prefix dist origin master`:develop --force deploy: provider: heroku app: notificat api_key: secure: $HEROKU ## Instruction: Fix in the current branch ## Code After: 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 "[email protected]" # - git config user.name "guuibayer" # - git add dist # - git commit -m "Initial dist subtree commit" # - git push origin `git subtree split --prefix dist origin master`:develop --force deploy: provider: heroku app: notificat api_key: secure: $HEROKU
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) end if defined?(MiniTest) MiniTest::Unit::TestCase.send(:include, ResqueUnit::Assertions) end
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) end if defined?(MiniTest::Unit::TestCase) MiniTest::Unit::TestCase.send(:include, ResqueUnit::Assertions) end if defined?(Minitest::Test) Minitest::Test.send(:include, ResqueUnit::Assertions) end
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, ResqueUnit::Assertions) end if defined?(MiniTest) MiniTest::Unit::TestCase.send(:include, ResqueUnit::Assertions) end ## Instruction: Support renamed module and class in Minitest 5 ## Code After: 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) end if defined?(MiniTest::Unit::TestCase) MiniTest::Unit::TestCase.send(:include, ResqueUnit::Assertions) end if defined?(Minitest::Test) Minitest::Test.send(:include, ResqueUnit::Assertions) end
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="/favorites">Favorites</a></li> <li><a href="/events">Events</a></li> </ul> </div> <script src="js/jquery.sidr.min.js"></script> <script> $(document).ready(function() { $('#simple-menu').sidr(); }); </script> </header>
<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</a></li> <li><a href="/favorites">Favorites</a></li> <li><a href="/events">Events</a></li> </ul> </div> <script src="js/jquery.sidr.min.js"></script> <script> $(document).ready(function() { $('#simple-menu').sidr(); }); </script> </header>
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><a href="/favorites">Favorites</a></li> <li><a href="/events">Events</a></li> </ul> </div> <script src="js/jquery.sidr.min.js"></script> <script> $(document).ready(function() { $('#simple-menu').sidr(); }); </script> </header> ## Instruction: Add home button to menu panel ## Code After: <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</a></li> <li><a href="/favorites">Favorites</a></li> <li><a href="/events">Events</a></li> </ul> </div> <script src="js/jquery.sidr.min.js"></script> <script> $(document).ready(function() { $('#simple-menu').sidr(); }); </script> </header>
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, hint: I18n.t('form.hint.media.online') - if item.object.picture? - item.input :_destroy, as: :boolean, required: false, label: 'Supprimer ?', hint: 'Si coché, l\'image sera supprimée après mise à jour du mailing'
- 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 sauvegarder votre contenu (avec le bouton en bas de page) afin d\'ajouter votre visuel'.html_safe - item.input :online, as: :boolean, hint: I18n.t('form.hint.media.online') - if item.object.picture? - item.input :_destroy, as: :boolean, required: false, label: 'Supprimer ?', hint: 'Si coché, l\'image sera supprimée après mise à jour du mailing'
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, hint: I18n.t('form.hint.media.online') - if item.object.picture? - item.input :_destroy, as: :boolean, required: false, label: 'Supprimer ?', hint: 'Si coché, l\'image sera supprimée après mise à jour du mailing' ## Instruction: Update I18n translation for Picture form ## Code After: - 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 sauvegarder votre contenu (avec le bouton en bas de page) afin d\'ajouter votre visuel'.html_safe - item.input :online, as: :boolean, hint: I18n.t('form.hint.media.online') - if item.object.picture? - item.input :_destroy, as: :boolean, required: false, label: 'Supprimer ?', hint: 'Si coché, l\'image sera supprimée après mise à jour du mailing'
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 <[email protected]> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog: '' basic-deps: bytestring: -any ansi-wl-pprint: -any base: ! '>=4.10 && <4.12' text: -any data-default: -any containers: -any lens: -any utf8-string: -any template-haskell: -any all-versions: - '1.0' - '1.0.1' - '1.0.2' - '1.4.2' author: Luna Team latest: '1.4.2' description-type: haddock description: '' license-name: Apache-2.0
homepage: https://github.com/luna/convert changelog-type: '' hash: 3ad90cc24e7ea7630080ec5da8cfce82036d796b3bb01c3805078cf502d1d906 test-bench-deps: {} maintainer: Wojciech Danilo <[email protected]> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog: '' basic-deps: bytestring: -any ansi-wl-pprint: -any base: ! '>=4.10 && <4.12' text: -any data-default: -any impossible: -any containers: -any lens: -any utf8-string: -any template-haskell: -any all-versions: - '1.0' - '1.0.1' - '1.0.2' - '1.4.2' - '1.5' author: Luna Team latest: '1.5' description-type: haddock description: '' license-name: Apache-2.0
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 <[email protected]> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog: '' basic-deps: bytestring: -any ansi-wl-pprint: -any base: ! '>=4.10 && <4.12' text: -any data-default: -any containers: -any lens: -any utf8-string: -any template-haskell: -any all-versions: - '1.0' - '1.0.1' - '1.0.2' - '1.4.2' author: Luna Team latest: '1.4.2' description-type: haddock description: '' license-name: Apache-2.0 ## Instruction: Update from Hackage at 2018-06-10T16:02:19Z ## Code After: homepage: https://github.com/luna/convert changelog-type: '' hash: 3ad90cc24e7ea7630080ec5da8cfce82036d796b3bb01c3805078cf502d1d906 test-bench-deps: {} maintainer: Wojciech Danilo <[email protected]> synopsis: Safe and unsafe data conversion utilities with strong type-level operation. checking. changelog: '' basic-deps: bytestring: -any ansi-wl-pprint: -any base: ! '>=4.10 && <4.12' text: -any data-default: -any impossible: -any containers: -any lens: -any utf8-string: -any template-haskell: -any all-versions: - '1.0' - '1.0.1' - '1.0.2' - '1.4.2' - '1.5' author: Luna Team latest: '1.5' description-type: haddock description: '' license-name: Apache-2.0
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) { // Ignore all double-clicks (and triple-clicks and so on) by pretending they are single-clicks. var modifiedEvent: NSEvent? if event.clickCount > 1 { modifiedEvent = NSEvent.mouseEvent(with: event.type, location: event.locationInWindow, modifierFlags: event.modifierFlags, timestamp: event.timestamp, windowNumber: event.windowNumber, context: event.context, eventNumber: event.eventNumber, clickCount: 1, pressure: event.pressure) } super.mouseDown(with: modifiedEvent ?? event) } }
/* 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) { // Ignore all double-clicks (and triple-clicks and so on) by pretending they are single-clicks. var modifiedEvent: NSEvent? if event.clickCount > 1 { modifiedEvent = NSEvent.mouseEvent(with: event.type, location: event.locationInWindow, modifierFlags: event.modifierFlags, timestamp: event.timestamp, windowNumber: event.windowNumber, context: nil, eventNumber: event.eventNumber, clickCount: 1, pressure: event.pressure) } super.mouseDown(with: modifiedEvent ?? event) } }
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) { // Ignore all double-clicks (and triple-clicks and so on) by pretending they are single-clicks. var modifiedEvent: NSEvent? if event.clickCount > 1 { modifiedEvent = NSEvent.mouseEvent(with: event.type, location: event.locationInWindow, modifierFlags: event.modifierFlags, timestamp: event.timestamp, windowNumber: event.windowNumber, context: event.context, eventNumber: event.eventNumber, clickCount: 1, pressure: event.pressure) } super.mouseDown(with: modifiedEvent ?? event) } } ## Instruction: Fix deprecation warning about event.context being deprecated and always nil on 10.12 and later ## Code After: /* 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) { // Ignore all double-clicks (and triple-clicks and so on) by pretending they are single-clicks. var modifiedEvent: NSEvent? if event.clickCount > 1 { modifiedEvent = NSEvent.mouseEvent(with: event.type, location: event.locationInWindow, modifierFlags: event.modifierFlags, timestamp: event.timestamp, windowNumber: event.windowNumber, context: nil, eventNumber: event.eventNumber, clickCount: 1, pressure: event.pressure) } super.mouseDown(with: modifiedEvent ?? event) } }
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.getUsername = () => this.username; this.setUsername = name => this.username = name; this.setUuid = uid => this.uid = uid; this.getUuid = () => this.uid; this.addCharacter = char => this.characters.push(char); this.getCharacters = () => this.characters; this.getCharacter = uid => this.characters.find( char => uid === char.getUuid()); this.getPassword = () => this.password; // Returns hash. this.setPassword = pass => this.password = crypto .createHash('md5') .update(pass) .digest('hex'); this.getKarma = () => this.karma; this.deductKarma = karma => this.karma -= karma; this.addKarma = karma => { this.karma += karma; this.score.totalKarma += karma; }; this.getScore = key => key ? this.score[key] : this.score; return this; }; module.exports = { Accounts, Account };
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.getUsername = () => this.username; this.setUsername = name => this.username = name; this.setUuid = uid => this.uid = uid; this.getUuid = () => this.uid; this.addCharacter = char => this.characters.push(char); this.getCharacters = () => this.characters; this.getCharacter = uid => this.characters.find( char => uid === char.getUuid()); this.getLivingCharacters = () => this.characters.filter(char => char.isAlive); this.getDeadCharacters = () => this.characters.filter(char => !char.isAlive); this.getPassword = () => this.password; // Returns hash. this.setPassword = pass => this.password = crypto .createHash('md5') .update(pass) .digest('hex'); this.getKarma = () => this.karma; this.deductKarma = karma => this.karma -= karma; this.addKarma = karma => { this.karma += karma; this.score.totalKarma += karma; }; this.getScore = key => key ? this.score[key] : this.score; return this; }; module.exports = { Accounts, Account };
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 */ this.getUsername = () => this.username; this.setUsername = name => this.username = name; this.setUuid = uid => this.uid = uid; this.getUuid = () => this.uid; this.addCharacter = char => this.characters.push(char); this.getCharacters = () => this.characters; this.getCharacter = uid => this.characters.find( char => uid === char.getUuid()); this.getPassword = () => this.password; // Returns hash. this.setPassword = pass => this.password = crypto .createHash('md5') .update(pass) .digest('hex'); this.getKarma = () => this.karma; this.deductKarma = karma => this.karma -= karma; this.addKarma = karma => { this.karma += karma; this.score.totalKarma += karma; }; this.getScore = key => key ? this.score[key] : this.score; return this; }; module.exports = { Accounts, Account }; ## Instruction: Add helper funcs to get dead or living chars. ## Code After: 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.getUsername = () => this.username; this.setUsername = name => this.username = name; this.setUuid = uid => this.uid = uid; this.getUuid = () => this.uid; this.addCharacter = char => this.characters.push(char); this.getCharacters = () => this.characters; this.getCharacter = uid => this.characters.find( char => uid === char.getUuid()); this.getLivingCharacters = () => this.characters.filter(char => char.isAlive); this.getDeadCharacters = () => this.characters.filter(char => !char.isAlive); this.getPassword = () => this.password; // Returns hash. this.setPassword = pass => this.password = crypto .createHash('md5') .update(pass) .digest('hex'); this.getKarma = () => this.karma; this.deductKarma = karma => this.karma -= karma; this.addKarma = karma => { this.karma += karma; this.score.totalKarma += karma; }; this.getScore = key => key ? this.score[key] : this.score; return this; }; module.exports = { Accounts, Account };
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(plugin) } else exit end $? ? continue : raise('Plugin installation failed, see errors above.') end end def get_not_installed(plugins) not_installed = [] plugins.each do |plugin| unless Vagrant.has_plugin?(plugin) not_installed << plugin end end return not_installed end def install_plugin(plugin) system "vagrant plugin install #{plugin}" end # If plugins successfully installed, restart vagrant to detect changes. def continue exec "vagrant #{ARGV[0]}" end
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(plugin) } else exit end $? ? continue : raise('Plugin installation failed, see errors above.') end end def get_not_installed(plugins) not_installed = [] plugins.each do |plugin| unless Vagrant.has_plugin?(plugin) not_installed << plugin end end return not_installed end def install_plugin(plugin) system "vagrant plugin install #{plugin}" end # If plugins successfully installed, restart vagrant to detect changes. def continue exec "vagrant #{ARGV.join(' ')}" end
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,hks-epod/configuration,arbrandes/edx-configuration,proversity-org/configuration,appsembler/configuration,rue89-tech/configuration,stvstnfrd/configuration,appsembler/configuration,edx/configuration,mitodl/configuration,gsehub/configuration,proversity-org/configuration,appsembler/configuration,arbrandes/edx-configuration,hastexo/edx-configuration,stvstnfrd/configuration,michaelsteiner19/open-edx-configuration,hastexo/edx-configuration,rue89-tech/configuration,EDUlib/configuration,rue89-tech/configuration,EDUlib/configuration,proversity-org/configuration,gsehub/configuration,proversity-org/configuration,stvstnfrd/configuration,Stanford-Online/configuration,Stanford-Online/configuration,hks-epod/configuration,Stanford-Online/configuration,hks-epod/configuration,mitodl/configuration,Stanford-Online/configuration,hastexo/edx-configuration,Stanford-Online/configuration,gsehub/configuration,edx/configuration,rue89-tech/configuration,EDUlib/configuration,rue89-tech/configuration,gsehub/configuration,arbrandes/edx-configuration,stvstnfrd/configuration,mitodl/configuration,edx/configuration,hastexo/edx-configuration,arbrandes/edx-configuration,michaelsteiner19/open-edx-configuration,michaelsteiner19/open-edx-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| install_plugin(plugin) } else exit end $? ? continue : raise('Plugin installation failed, see errors above.') end end def get_not_installed(plugins) not_installed = [] plugins.each do |plugin| unless Vagrant.has_plugin?(plugin) not_installed << plugin end end return not_installed end def install_plugin(plugin) system "vagrant plugin install #{plugin}" end # If plugins successfully installed, restart vagrant to detect changes. def continue exec "vagrant #{ARGV[0]}" end ## Instruction: Make sure we continue with all switches after plugin install. Also adjusted style on function calls. ## Code After: 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(plugin) } else exit end $? ? continue : raise('Plugin installation failed, see errors above.') end end def get_not_installed(plugins) not_installed = [] plugins.each do |plugin| unless Vagrant.has_plugin?(plugin) not_installed << plugin end end return not_installed end def install_plugin(plugin) system "vagrant plugin install #{plugin}" end # If plugins successfully installed, restart vagrant to detect changes. def continue exec "vagrant #{ARGV.join(' ')}" end
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 managed prefs bar will show up. --> <input type="text" pref="session.urls_to_restore_on_startup" hidden> <div class="content-area"> <list id="startupPagesList"></list> </div> <div class="action-area"> <span class="hbox stretch"> <button id="startupUseCurrentButton" i18n-content="startupUseCurrent"></button> </span> <button id="startup-overlay-cancel" i18n-content="cancel"></button> <button id="startup-overlay-confirm" i18n-content="ok"></button> </div> <div id="startupPagesListDropmarker"></div> </div>
<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 managed prefs bar will show up. --> <input type="text" pref="session.urls_to_restore_on_startup" hidden> <div class="content-area"> <list id="startupPagesList"></list> </div> <div class="action-area"> <span class="hbox stretch"> <button id="startupUseCurrentButton" i18n-content="startupUseCurrent"></button> </span> <div class="button-strip"> <button id="startup-overlay-cancel" i18n-content="cancel"></button> <button id="startup-overlay-confirm" i18n-content="ok"></button> </div> </div> <div id="startupPagesListDropmarker"></div> </div>
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/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,ondra-novak/chromium.src,littlstar/chromium.src,ltilve/chromium,patrickm/chromium.src,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,mogoweb/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,ltilve/chromium,dednal/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,zcbenz/cefode-chromium,dushu1203/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,ltilve/chromium,axinging/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,dushu1203/chromium.src,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,mogoweb/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,littlstar/chromium.src,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,ChromiumWebApps/chromium,zcbenz/cefode-chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,zcbenz/cefode-chromium,anirudhSK/chromium,anirudhSK/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,markYoungH/chromium.src,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,ondra-novak/chromium.src,chuan9/chromium-crosswalk,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,Chilledheart/chromium,Chilledheart/chromium,Jonekee/chromium.src,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,littlstar/chromium.src,fujunwei/chromium-crosswalk,keishi/chromium,chuan9/chromium-crosswalk,Just-D/chromium-1,dushu1203/chromium.src,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk,markYoungH/chromium.src,ltilve/chromium,dednal/chromium.src,keishi/chromium,keishi/chromium,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,Just-D/chromium-1,axinging/chromium-crosswalk,dednal/chromium.src,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,keishi/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,dushu1203/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,Jonekee/chromium.src,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,anirudhSK/chromium,zcbenz/cefode-chromium,Chilledheart/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,krieger-od/nwjs_chromium.src,anirudhSK/chromium,markYoungH/chromium.src,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,dushu1203/chromium.src,axinging/chromium-crosswalk,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,keishi/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,Just-D/chromium-1,M4sse/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,bright-sparks/chromium-spacewalk,Chilledheart/chromium,keishi/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,ondra-novak/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,patrickm/chromium.src,ondra-novak/chromium.src,Just-D/chromium-1,M4sse/chromium.src,ltilve/chromium,Chilledheart/chromium,Jonekee/chromium.src,jaruba/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,jaruba/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,dednal/chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,axinging/chromium-crosswalk,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,markYoungH/chromium.src,timopulkkinen/BubbleFish,littlstar/chromium.src,Fireblend/chromium-crosswalk,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,zcbenz/cefode-chromium,jaruba/chromium.src,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,jaruba/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,krieger-od/nwjs_chromium.src,anirudhSK/chromium,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,keishi/chromium,axinging/chromium-crosswalk,M4sse/chromium.src
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 policy, so that the managed prefs bar will show up. --> <input type="text" pref="session.urls_to_restore_on_startup" hidden> <div class="content-area"> <list id="startupPagesList"></list> </div> <div class="action-area"> <span class="hbox stretch"> <button id="startupUseCurrentButton" i18n-content="startupUseCurrent"></button> </span> <button id="startup-overlay-cancel" i18n-content="cancel"></button> <button id="startup-overlay-confirm" i18n-content="ok"></button> </div> <div id="startupPagesListDropmarker"></div> </div> ## Instruction: 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 ## Code After: <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 managed prefs bar will show up. --> <input type="text" pref="session.urls_to_restore_on_startup" hidden> <div class="content-area"> <list id="startupPagesList"></list> </div> <div class="action-area"> <span class="hbox stretch"> <button id="startupUseCurrentButton" i18n-content="startupUseCurrent"></button> </span> <div class="button-strip"> <button id="startup-overlay-cancel" i18n-content="cancel"></button> <button id="startup-overlay-confirm" i18n-content="ok"></button> </div> </div> <div id="startupPagesListDropmarker"></div> </div>
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.inspect.to_s end end end
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 ## Instruction: Add sensible to_s to Step ## Code After: 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.inspect.to_s end end end
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 application is quitting, the light will be turned off. You can speed up access to your 'Do Not Disturb' mode by setting a global keyboard shortcut for it (see 'Preferences' for details). Luxaforus is also integrated with the Slack API to synchronise your 'Do Not Disturb' status with your Slack account. ## Credentials While this application is open source, some credentials linked to specific accounts (e.g. Slack) are omitted from this repository and must be provided as follows: 1. Go to 'Luxaforus' project directory 2. Copy 'Credentials.m.example' and rename it to 'Credentials.m' 3. Replace the dummy values inside with ones you intend to use 4. Add the file to the Xcode project, by dragging it into the Project navigator Below are some useful links on how to register your own credentials: * Slack API: [Creating apps](https://api.slack.com/slack-apps#creating_apps) ## License This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file.
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 ad-hoc when developers have a need for them, so feature requests will not be attended do. However, you are welcome to implement features yourself and contribute them - your pull request will be happily reviewed. ## 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 application is quitting, the light will be turned off. You can speed up access to your 'Do Not Disturb' mode by setting a global keyboard shortcut for it (see 'Preferences' for details). Luxaforus is also integrated with the Slack API to synchronise your 'Do Not Disturb' status with your Slack account. ## Credentials While this application is open source, some credentials linked to specific accounts (e.g. Slack) are omitted from this repository and must be provided as follows: 1. Go to 'Luxaforus' project directory 2. Copy 'Credentials.m.example' and rename it to 'Credentials.m' 3. Replace the dummy values inside with ones you intend to use 4. Add the file to the Xcode project, by dragging it into the Project navigator Below are some useful links on how to register your own credentials: * Slack API: [Creating apps](https://api.slack.com/slack-apps#creating_apps) ## License This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file.
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 mode or the application is quitting, the light will be turned off. You can speed up access to your 'Do Not Disturb' mode by setting a global keyboard shortcut for it (see 'Preferences' for details). Luxaforus is also integrated with the Slack API to synchronise your 'Do Not Disturb' status with your Slack account. ## Credentials While this application is open source, some credentials linked to specific accounts (e.g. Slack) are omitted from this repository and must be provided as follows: 1. Go to 'Luxaforus' project directory 2. Copy 'Credentials.m.example' and rename it to 'Credentials.m' 3. Replace the dummy values inside with ones you intend to use 4. Add the file to the Xcode project, by dragging it into the Project navigator Below are some useful links on how to register your own credentials: * Slack API: [Creating apps](https://api.slack.com/slack-apps#creating_apps) ## License This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file. ## Instruction: Add affiliation disclaimer and project status to readme ## Code After: 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 ad-hoc when developers have a need for them, so feature requests will not be attended do. However, you are welcome to implement features yourself and contribute them - your pull request will be happily reviewed. ## 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 application is quitting, the light will be turned off. You can speed up access to your 'Do Not Disturb' mode by setting a global keyboard shortcut for it (see 'Preferences' for details). Luxaforus is also integrated with the Slack API to synchronise your 'Do Not Disturb' status with your Slack account. ## Credentials While this application is open source, some credentials linked to specific accounts (e.g. Slack) are omitted from this repository and must be provided as follows: 1. Go to 'Luxaforus' project directory 2. Copy 'Credentials.m.example' and rename it to 'Credentials.m' 3. Replace the dummy values inside with ones you intend to use 4. Add the file to the Xcode project, by dragging it into the Project navigator Below are some useful links on how to register your own credentials: * Slack API: [Creating apps](https://api.slack.com/slack-apps#creating_apps) ## License This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file.
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", "ignore": [ "**/.*", "Gruntfile.js", "package.json", "src" ] }
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" ], "license": "MIT" } ## Instruction: Remove development files from Bower package ## Code After: { "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", "ignore": [ "**/.*", "Gruntfile.js", "package.json", "src" ] }
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) - [Latest Releases Via Apt (Ubuntu)](http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu) - [See all](http://docs.ansible.com/intro_installation.html#installing-the-control-machine) 1. Add project files to your machine (for example in `~Sites/www`). 1. Clone this repo: ```bash git clone [email protected]:NBCUOTS/pubstack.git cd pubstack ``` 1. Install Hostupdater: ```bash vagrant plugin install vagrant-hostsupdater ``` 1. Create your config file from the default template and modify as needed (note each config has commented instructions): ```bash cp default.config.yml config.yml vim config.yml ``` 1. Start-up your vagrant box: ```bash vagrant up ``` 1. Visit [http://pubstack/](http://pubstack/) in your browser. ## Authors - breathingrock - conortm - ericduran - scottrigby
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) - [Latest Releases Via Apt (Ubuntu)](http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu) - [See all](http://docs.ansible.com/intro_installation.html#installing-the-control-machine) 1. Add project files to your machine (for example in `~Sites/www`). 1. Clone this repo: ```bash git clone [email protected]:NBCUOTS/pubstack.git cd pubstack ``` 1. Install Hostupdater: ```bash vagrant plugin install vagrant-hostsupdater ``` 1. Create your config file from the default template and modify as needed (note each config has commented instructions): ```bash cp default.config.yml config.yml vim config.yml ``` 1. Start-up your vagrant box: ```bash vagrant up ``` 1. Visit [http://pubstack/](http://pubstack.dev/) in your browser. ## Authors - breathingrock - conortm - ericduran - scottrigby ## Troubleshooting ### VPN Cisco Anyconnect Mobility Client will not play nice with Vagrant, unless you run this script we've conveniently added: ```bash ./scripts/cisco.workaround.sh ``` You will be prompted for your password. Note you may need to run this twice.
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-mac-osx) - [Latest Releases Via Apt (Ubuntu)](http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu) - [See all](http://docs.ansible.com/intro_installation.html#installing-the-control-machine) 1. Add project files to your machine (for example in `~Sites/www`). 1. Clone this repo: ```bash git clone [email protected]:NBCUOTS/pubstack.git cd pubstack ``` 1. Install Hostupdater: ```bash vagrant plugin install vagrant-hostsupdater ``` 1. Create your config file from the default template and modify as needed (note each config has commented instructions): ```bash cp default.config.yml config.yml vim config.yml ``` 1. Start-up your vagrant box: ```bash vagrant up ``` 1. Visit [http://pubstack/](http://pubstack/) in your browser. ## Authors - breathingrock - conortm - ericduran - scottrigby ## Instruction: Add Troubleshooting section to readme with VPN script info ## Code After: 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) - [Latest Releases Via Apt (Ubuntu)](http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu) - [See all](http://docs.ansible.com/intro_installation.html#installing-the-control-machine) 1. Add project files to your machine (for example in `~Sites/www`). 1. Clone this repo: ```bash git clone [email protected]:NBCUOTS/pubstack.git cd pubstack ``` 1. Install Hostupdater: ```bash vagrant plugin install vagrant-hostsupdater ``` 1. Create your config file from the default template and modify as needed (note each config has commented instructions): ```bash cp default.config.yml config.yml vim config.yml ``` 1. Start-up your vagrant box: ```bash vagrant up ``` 1. Visit [http://pubstack/](http://pubstack.dev/) in your browser. ## Authors - breathingrock - conortm - ericduran - scottrigby ## Troubleshooting ### VPN Cisco Anyconnect Mobility Client will not play nice with Vagrant, unless you run this script we've conveniently added: ```bash ./scripts/cisco.workaround.sh ``` You will be prompted for your password. Note you may need to run this twice.
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 npm install grunt-cli Then start watching CoffeeScript: `npm bin`/grunt watch ### Nginx Install the Nginx. Then configure: sed -i 's|http {|http {\nserver {listen 55555; root /path/to/ng-w;}|' \ /path/to/nginx/nginx.conf Then restart nginx. Navigate your browser to http://localhost:55555/demo ### Troubleshooting #### Node Package Modules If `The program 'npm' is currently not installed.` Then try `nvm use 0.10`.
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 `zsh`). In this case you have to manually configure profile file. ### Node.js nvm install 0.10 ### Node Package Modules cd /path/to/ng-w npm install ### Grunt npm install grunt-cli Then compile CoffeeScript first time: `npm bin`/grunt compile Then start watching CoffeeScript: `npm bin`/grunt watch ### Nginx Install the Nginx. Then configure: sed -i 's|http {|http {\nserver {listen 55555; root /path/to/ng-w;}|' \ /path/to/nginx/nginx.conf Then restart nginx. Navigate your browser to http://localhost:55555/demo ### Troubleshooting #### Node Package Modules If `The program 'npm' is currently not installed.` Then try `nvm use 0.10`.
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 ### Grunt npm install grunt-cli Then start watching CoffeeScript: `npm bin`/grunt watch ### Nginx Install the Nginx. Then configure: sed -i 's|http {|http {\nserver {listen 55555; root /path/to/ng-w;}|' \ /path/to/nginx/nginx.conf Then restart nginx. Navigate your browser to http://localhost:55555/demo ### Troubleshooting #### Node Package Modules If `The program 'npm' is currently not installed.` Then try `nvm use 0.10`. ## Instruction: Add shell specific notes. Add initial CoffeeScript compile instruction. ## Code After: 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 `zsh`). In this case you have to manually configure profile file. ### Node.js nvm install 0.10 ### Node Package Modules cd /path/to/ng-w npm install ### Grunt npm install grunt-cli Then compile CoffeeScript first time: `npm bin`/grunt compile Then start watching CoffeeScript: `npm bin`/grunt watch ### Nginx Install the Nginx. Then configure: sed -i 's|http {|http {\nserver {listen 55555; root /path/to/ng-w;}|' \ /path/to/nginx/nginx.conf Then restart nginx. Navigate your browser to http://localhost:55555/demo ### Troubleshooting #### Node Package Modules If `The program 'npm' is currently not installed.` Then try `nvm use 0.10`.
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.text :removed_listing_keys t.text :snapshots t.timestamps null: false end end end
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 => 4294967295 t.text :removed_listing_keys, :limit => 4294967295 t.text :snapshots, :limit => 4294967295 t.timestamps null: false end end end
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_keys t.text :removed_listing_keys t.text :snapshots t.timestamps null: false end end end ## Instruction: Update found_listing_keys, removed_listing_keys and snapshots to longtext. ## Code After: 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 => 4294967295 t.text :removed_listing_keys, :limit => 4294967295 t.text :snapshots, :limit => 4294967295 t.timestamps null: false end end end
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.cocoa.x86_64.tar.gz" name 'Apache Directory Studio' homepage 'https://directory.apache.org/studio/' license :apache app 'ApacheDirectoryStudio.app' zap :delete => '~/.ApacheDirectoryStudio' end
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.cocoa.x86_64.tar.gz" name 'Apache Directory Studio' homepage 'https://directory.apache.org/studio/' license :apache app 'ApacheDirectoryStudio.app' zap :delete => '~/.ApacheDirectoryStudio' end
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,decrement/homebrew-cask,mlocher/homebrew-cask,andrewdisley/homebrew-cask,leipert/homebrew-cask,zerrot/homebrew-cask,hristozov/homebrew-cask,tangestani/homebrew-cask,dvdoliveira/homebrew-cask,miguelfrde/homebrew-cask,shonjir/homebrew-cask,tolbkni/homebrew-cask,vitorgalvao/homebrew-cask,malford/homebrew-cask,danielbayley/homebrew-cask,timsutton/homebrew-cask,guerrero/homebrew-cask,yutarody/homebrew-cask,jawshooah/homebrew-cask,mauricerkelly/homebrew-cask,samdoran/homebrew-cask,antogg/homebrew-cask,amatos/homebrew-cask,toonetown/homebrew-cask,kassi/homebrew-cask,doits/homebrew-cask,Ketouem/homebrew-cask,bdhess/homebrew-cask,reitermarkus/homebrew-cask,scottsuch/homebrew-cask,mattrobenolt/homebrew-cask,wickedsp1d3r/homebrew-cask,larseggert/homebrew-cask,nrlquaker/homebrew-cask,MerelyAPseudonym/homebrew-cask,dictcp/homebrew-cask,mrmachine/homebrew-cask,howie/homebrew-cask,Bombenleger/homebrew-cask,hakamadare/homebrew-cask,colindunn/homebrew-cask,deiga/homebrew-cask,robertgzr/homebrew-cask,michelegera/homebrew-cask,hovancik/homebrew-cask,cobyism/homebrew-cask,Ngrd/homebrew-cask,decrement/homebrew-cask,gilesdring/homebrew-cask,bric3/homebrew-cask,wickles/homebrew-cask,inz/homebrew-cask,alebcay/homebrew-cask,exherb/homebrew-cask,shoichiaizawa/homebrew-cask,renard/homebrew-cask,blogabe/homebrew-cask,moimikey/homebrew-cask,bosr/homebrew-cask,mahori/homebrew-cask,kTitan/homebrew-cask,johndbritton/homebrew-cask,julionc/homebrew-cask,MerelyAPseudonym/homebrew-cask,forevergenin/homebrew-cask,jgarber623/homebrew-cask,JacopKane/homebrew-cask,mingzhi22/homebrew-cask,chuanxd/homebrew-cask,fharbe/homebrew-cask,seanzxx/homebrew-cask,tjt263/homebrew-cask,singingwolfboy/homebrew-cask,giannitm/homebrew-cask,mingzhi22/homebrew-cask,patresi/homebrew-cask,fanquake/homebrew-cask,markhuber/homebrew-cask,sscotth/homebrew-cask,m3nu/homebrew-cask,afh/homebrew-cask,kongslund/homebrew-cask,robertgzr/homebrew-cask,antogg/homebrew-cask,My2ndAngelic/homebrew-cask,MoOx/homebrew-cask,stigkj/homebrew-caskroom-cask,ianyh/homebrew-cask,mishari/homebrew-cask,jiashuw/homebrew-cask,blogabe/homebrew-cask,victorpopkov/homebrew-cask,asins/homebrew-cask,puffdad/homebrew-cask,sebcode/homebrew-cask,mhubig/homebrew-cask,scottsuch/homebrew-cask,stephenwade/homebrew-cask,Saklad5/homebrew-cask,flaviocamilo/homebrew-cask,xtian/homebrew-cask,retrography/homebrew-cask,hellosky806/homebrew-cask,neverfox/homebrew-cask,sebcode/homebrew-cask,mattrobenolt/homebrew-cask,ebraminio/homebrew-cask,yutarody/homebrew-cask,n8henrie/homebrew-cask,6uclz1/homebrew-cask,ddm/homebrew-cask,kingthorin/homebrew-cask,kpearson/homebrew-cask,imgarylai/homebrew-cask,zmwangx/homebrew-cask,puffdad/homebrew-cask,janlugt/homebrew-cask,mjdescy/homebrew-cask,hristozov/homebrew-cask,FinalDes/homebrew-cask,samdoran/homebrew-cask,lukeadams/homebrew-cask,jalaziz/homebrew-cask,alebcay/homebrew-cask,uetchy/homebrew-cask,thii/homebrew-cask,syscrusher/homebrew-cask,phpwutz/homebrew-cask,tangestani/homebrew-cask,Saklad5/homebrew-cask,xcezx/homebrew-cask,wmorin/homebrew-cask,lukasbestle/homebrew-cask,chrisfinazzo/homebrew-cask,theoriginalgri/homebrew-cask,lantrix/homebrew-cask,mishari/homebrew-cask,fharbe/homebrew-cask,Ephemera/homebrew-cask,schneidmaster/homebrew-cask,Ngrd/homebrew-cask,alebcay/homebrew-cask,artdevjs/homebrew-cask,jalaziz/homebrew-cask,tjnycum/homebrew-cask,andyli/homebrew-cask,kesara/homebrew-cask,sosedoff/homebrew-cask,a1russell/homebrew-cask,mchlrmrz/homebrew-cask,imgarylai/homebrew-cask,wKovacs64/homebrew-cask,ksato9700/homebrew-cask,m3nu/homebrew-cask,mwean/homebrew-cask,pkq/homebrew-cask,arronmabrey/homebrew-cask,daften/homebrew-cask,jacobbednarz/homebrew-cask,jaredsampson/homebrew-cask,joschi/homebrew-cask,usami-k/homebrew-cask,hyuna917/homebrew-cask,kteru/homebrew-cask,cblecker/homebrew-cask,kamilboratynski/homebrew-cask,nathansgreen/homebrew-cask,blainesch/homebrew-cask,xyb/homebrew-cask,sjackman/homebrew-cask,uetchy/homebrew-cask,renard/homebrew-cask,jasmas/homebrew-cask,elyscape/homebrew-cask,tyage/homebrew-cask,usami-k/homebrew-cask,nathanielvarona/homebrew-cask,mathbunnyru/homebrew-cask,pacav69/homebrew-cask,franklouwers/homebrew-cask,tedbundyjr/homebrew-cask,cliffcotino/homebrew-cask,sgnh/homebrew-cask,stephenwade/homebrew-cask,wmorin/homebrew-cask,nrlquaker/homebrew-cask,jedahan/homebrew-cask,patresi/homebrew-cask,rajiv/homebrew-cask,josa42/homebrew-cask,jeroenj/homebrew-cask,mikem/homebrew-cask,jellyfishcoder/homebrew-cask,lantrix/homebrew-cask,klane/homebrew-cask,thehunmonkgroup/homebrew-cask,AnastasiaSulyagina/homebrew-cask,zerrot/homebrew-cask,kassi/homebrew-cask,nathancahill/homebrew-cask,sscotth/homebrew-cask,0xadada/homebrew-cask,JikkuJose/homebrew-cask,okket/homebrew-cask,lcasey001/homebrew-cask,xight/homebrew-cask,tan9/homebrew-cask,y00rb/homebrew-cask,yumitsu/homebrew-cask,okket/homebrew-cask,haha1903/homebrew-cask,timsutton/homebrew-cask,singingwolfboy/homebrew-cask,maxnordlund/homebrew-cask,psibre/homebrew-cask,seanzxx/homebrew-cask,seanorama/homebrew-cask,ywfwj2008/homebrew-cask,williamboman/homebrew-cask,My2ndAngelic/homebrew-cask,koenrh/homebrew-cask,FinalDes/homebrew-cask,leipert/homebrew-cask,miguelfrde/homebrew-cask,SentinelWarren/homebrew-cask,goxberry/homebrew-cask,mahori/homebrew-cask,andrewdisley/homebrew-cask,jgarber623/homebrew-cask,maxnordlund/homebrew-cask,alexg0/homebrew-cask,0rax/homebrew-cask,schneidmaster/homebrew-cask,asbachb/homebrew-cask,bosr/homebrew-cask,kingthorin/homebrew-cask,jeanregisser/homebrew-cask,ericbn/homebrew-cask,kingthorin/homebrew-cask,thehunmonkgroup/homebrew-cask,tedski/homebrew-cask,a1russell/homebrew-cask,optikfluffel/homebrew-cask,Amorymeltzer/homebrew-cask,bcomnes/homebrew-cask,adrianchia/homebrew-cask,yurikoles/homebrew-cask,otaran/homebrew-cask,nshemonsky/homebrew-cask,claui/homebrew-cask,miku/homebrew-cask,MichaelPei/homebrew-cask,sgnh/homebrew-cask,cprecioso/homebrew-cask,diogodamiani/homebrew-cask,farmerchris/homebrew-cask,cobyism/homebrew-cask,JacopKane/homebrew-cask,tjt263/homebrew-cask,tolbkni/homebrew-cask,otaran/homebrew-cask,jgarber623/homebrew-cask,Ephemera/homebrew-cask,xyb/homebrew-cask,miku/homebrew-cask,goxberry/homebrew-cask,mchlrmrz/homebrew-cask,Bombenleger/homebrew-cask,michelegera/homebrew-cask,joshka/homebrew-cask,jmeridth/homebrew-cask,cliffcotino/homebrew-cask,vigosan/homebrew-cask,KosherBacon/homebrew-cask,JacopKane/homebrew-cask,jedahan/homebrew-cask,danielbayley/homebrew-cask,xyb/homebrew-cask,sosedoff/homebrew-cask,reitermarkus/homebrew-cask,paour/homebrew-cask,jawshooah/homebrew-cask,timsutton/homebrew-cask,mhubig/homebrew-cask,gerrypower/homebrew-cask,yurikoles/homebrew-cask,moogar0880/homebrew-cask,hyuna917/homebrew-cask,reitermarkus/homebrew-cask,squid314/homebrew-cask,Labutin/homebrew-cask,dvdoliveira/homebrew-cask,doits/homebrew-cask,joshka/homebrew-cask,paour/homebrew-cask,claui/homebrew-cask,ninjahoahong/homebrew-cask,sscotth/homebrew-cask,anbotero/homebrew-cask,psibre/homebrew-cask,aguynamedryan/homebrew-cask,y00rb/homebrew-cask,alexg0/homebrew-cask,moimikey/homebrew-cask,stigkj/homebrew-caskroom-cask,rogeriopradoj/homebrew-cask,sanyer/homebrew-cask,forevergenin/homebrew-cask,jmeridth/homebrew-cask,feigaochn/homebrew-cask,mikem/homebrew-cask,tan9/homebrew-cask,tsparber/homebrew-cask,riyad/homebrew-cask,yuhki50/homebrew-cask,tsparber/homebrew-cask,mahori/homebrew-cask,cblecker/homebrew-cask,renaudguerin/homebrew-cask,exherb/homebrew-cask,CameronGarrett/homebrew-cask,thii/homebrew-cask,rogeriopradoj/homebrew-cask,deanmorin/homebrew-cask,sanchezm/homebrew-cask,deiga/homebrew-cask,seanorama/homebrew-cask,koenrh/homebrew-cask,asins/homebrew-cask,bcomnes/homebrew-cask,FranklinChen/homebrew-cask,JosephViolago/homebrew-cask,squid314/homebrew-cask,giannitm/homebrew-cask,zmwangx/homebrew-cask,ptb/homebrew-cask,yutarody/homebrew-cask,FredLackeyOfficial/homebrew-cask,skatsuta/homebrew-cask,retrography/homebrew-cask,coeligena/homebrew-customized,lifepillar/homebrew-cask,lifepillar/homebrew-cask,kesara/homebrew-cask,Cottser/homebrew-cask,JosephViolago/homebrew-cask,Cottser/homebrew-cask,yumitsu/homebrew-cask,wmorin/homebrew-cask,jacobbednarz/homebrew-cask,inz/homebrew-cask,guerrero/homebrew-cask,ninjahoahong/homebrew-cask,diguage/homebrew-cask,xight/homebrew-cask,renaudguerin/homebrew-cask,0xadada/homebrew-cask,jaredsampson/homebrew-cask,esebastian/homebrew-cask,gyndav/homebrew-cask,athrunsun/homebrew-cask,vin047/homebrew-cask,elnappo/homebrew-cask,xight/homebrew-cask,howie/homebrew-cask,andyli/homebrew-cask,miccal/homebrew-cask,pkq/homebrew-cask,JosephViolago/homebrew-cask,claui/homebrew-cask,JikkuJose/homebrew-cask,morganestes/homebrew-cask,tjnycum/homebrew-cask,adrianchia/homebrew-cask,a1russell/homebrew-cask,lcasey001/homebrew-cask,johndbritton/homebrew-cask,shorshe/homebrew-cask,hanxue/caskroom,dictcp/homebrew-cask,muan/homebrew-cask,perfide/homebrew-cask,chadcatlett/caskroom-homebrew-cask,jasmas/homebrew-cask,kamilboratynski/homebrew-cask,farmerchris/homebrew-cask,hanxue/caskroom,6uclz1/homebrew-cask,jangalinski/homebrew-cask,scottsuch/homebrew-cask,xcezx/homebrew-cask,lukeadams/homebrew-cask,AnastasiaSulyagina/homebrew-cask,flaviocamilo/homebrew-cask,feigaochn/homebrew-cask,napaxton/homebrew-cask,tjnycum/homebrew-cask,jangalinski/homebrew-cask,uetchy/homebrew-cask,markhuber/homebrew-cask,MoOx/homebrew-cask,onlynone/homebrew-cask,xakraz/homebrew-cask,esebastian/homebrew-cask,jalaziz/homebrew-cask,bric3/homebrew-cask,yurikoles/homebrew-cask,cprecioso/homebrew-cask,mattrobenolt/homebrew-cask,stonehippo/homebrew-cask,slack4u/homebrew-cask,linc01n/homebrew-cask,CameronGarrett/homebrew-cask,FredLackeyOfficial/homebrew-cask,anbotero/homebrew-cask,RJHsiao/homebrew-cask,tedski/homebrew-cask,blainesch/homebrew-cask,nathanielvarona/homebrew-cask,cblecker/homebrew-cask,gabrielizaias/homebrew-cask,cobyism/homebrew-cask,nathansgreen/homebrew-cask,chuanxd/homebrew-cask,cfillion/homebrew-cask,jbeagley52/homebrew-cask,diogodamiani/homebrew-cask,wastrachan/homebrew-cask,kronicd/homebrew-cask,MichaelPei/homebrew-cask,RJHsiao/homebrew-cask,gyndav/homebrew-cask,riyad/homebrew-cask,gmkey/homebrew-cask,samshadwell/homebrew-cask,gyndav/homebrew-cask,Amorymeltzer/homebrew-cask,toonetown/homebrew-cask,mazehall/homebrew-cask,tangestani/homebrew-cask,hovancik/homebrew-cask,josa42/homebrew-cask,thomanq/homebrew-cask,caskroom/homebrew-cask,shoichiaizawa/homebrew-cask,chrisfinazzo/homebrew-cask,julionc/homebrew-cask,winkelsdorf/homebrew-cask,ksato9700/homebrew-cask,danielbayley/homebrew-cask,n0ts/homebrew-cask,sohtsuka/homebrew-cask,Gasol/homebrew-cask,imgarylai/homebrew-cask,adrianchia/homebrew-cask,vin047/homebrew-cask,mchlrmrz/homebrew-cask,colindunn/homebrew-cask,aguynamedryan/homebrew-cask,boecko/homebrew-cask,mjgardner/homebrew-cask,KosherBacon/homebrew-cask,MircoT/homebrew-cask,jconley/homebrew-cask,samshadwell/homebrew-cask,Ephemera/homebrew-cask,fanquake/homebrew-cask,athrunsun/homebrew-cask,tyage/homebrew-cask,julionc/homebrew-cask,n8henrie/homebrew-cask,mauricerkelly/homebrew-cask,andrewdisley/homebrew-cask,kkdd/homebrew-cask,MircoT/homebrew-cask,mathbunnyru/homebrew-cask,13k/homebrew-cask,rajiv/homebrew-cask,boecko/homebrew-cask,jconley/homebrew-cask,samnung/homebrew-cask,amatos/homebrew-cask,afh/homebrew-cask,mrmachine/homebrew-cask,onlynone/homebrew-cask,paour/homebrew-cask,franklouwers/homebrew-cask,daften/homebrew-cask,deiga/homebrew-cask,casidiablo/homebrew-cask,malford/homebrew-cask,hellosky806/homebrew-cask,nathancahill/homebrew-cask,markthetech/homebrew-cask,opsdev-ws/homebrew-cask,vigosan/homebrew-cask,joshka/homebrew-cask,shonjir/homebrew-cask,syscrusher/homebrew-cask,mjdescy/homebrew-cask,scribblemaniac/homebrew-cask,Keloran/homebrew-cask,esebastian/homebrew-cask,napaxton/homebrew-cask,rajiv/homebrew-cask,skatsuta/homebrew-cask,blogabe/homebrew-cask,tedbundyjr/homebrew-cask,mathbunnyru/homebrew-cask,mjgardner/homebrew-cask,ebraminio/homebrew-cask,kongslund/homebrew-cask,mjgardner/homebrew-cask,inta/homebrew-cask,ianyh/homebrew-cask,albertico/homebrew-cask,markthetech/homebrew-cask,mwean/homebrew-cask,kteru/homebrew-cask,muan/homebrew-cask,scribblemaniac/homebrew-cask,larseggert/homebrew-cask,inta/homebrew-cask,arronmabrey/homebrew-cask,SentinelWarren/homebrew-cask,reelsense/homebrew-cask,ericbn/homebrew-cask,shorshe/homebrew-cask,sanchezm/homebrew-cask,colindean/homebrew-cask,Gasol/homebrew-cask,ksylvan/homebrew-cask,ywfwj2008/homebrew-cask,alexg0/homebrew-cask,jbeagley52/homebrew-cask,BenjaminHCCarr/homebrew-cask,malob/homebrew-cask,kkdd/homebrew-cask,shoichiaizawa/homebrew-cask,slack4u/homebrew-cask,greg5green/homebrew-cask,victorpopkov/homebrew-cask,dcondrey/homebrew-cask,rogeriopradoj/homebrew-cask,chrisfinazzo/homebrew-cask,deanmorin/homebrew-cask,winkelsdorf/homebrew-cask,gabrielizaias/homebrew-cask,samnung/homebrew-cask,coeligena/homebrew-customized,devmynd/homebrew-cask,gerrypower/homebrew-cask,jiashuw/homebrew-cask,malob/homebrew-cask,ptb/homebrew-cask,sanyer/homebrew-cask,greg5green/homebrew-cask,artdevjs/homebrew-cask,stonehippo/homebrew-cask,kesara/homebrew-cask,codeurge/homebrew-cask,perfide/homebrew-cask,0rax/homebrew-cask,wKovacs64/homebrew-cask,kpearson/homebrew-cask,13k/homebrew-cask,xakraz/homebrew-cask,wastrachan/homebrew-cask,shonjir/homebrew-cask,codeurge/homebrew-cask,lucasmezencio/homebrew-cask,devmynd/homebrew-cask,pkq/homebrew-cask,hakamadare/homebrew-cask,Keloran/homebrew-cask,antogg/homebrew-cask,m3nu/homebrew-cask,Amorymeltzer/homebrew-cask,nrlquaker/homebrew-cask,gilesdring/homebrew-cask,opsdev-ws/homebrew-cask,nathanielvarona/homebrew-cask,neverfox/homebrew-cask,ericbn/homebrew-cask,optikfluffel/homebrew-cask,joschi/homebrew-cask,asbachb/homebrew-cask,bdhess/homebrew-cask,williamboman/homebrew-cask,jpmat296/homebrew-cask,wickedsp1d3r/homebrew-cask,chadcatlett/caskroom-homebrew-cask,dictcp/homebrew-cask,Labutin/homebrew-cask,sanyer/homebrew-cask,yuhki50/homebrew-cask,coeligena/homebrew-customized,troyxmccall/homebrew-cask,miccal/homebrew-cask,reelsense/homebrew-cask,optikfluffel/homebrew-cask,winkelsdorf/homebrew-cask,johnjelinek/homebrew-cask,singingwolfboy/homebrew-cask,janlugt/homebrew-cask,BenjaminHCCarr/homebrew-cask,klane/homebrew-cask,jellyfishcoder/homebrew-cask,josa42/homebrew-cask,moimikey/homebrew-cask,sohtsuka/homebrew-cask,lumaxis/homebrew-cask,lukasbestle/homebrew-cask,bric3/homebrew-cask,ksylvan/homebrew-cask,nshemonsky/homebrew-cask,gmkey/homebrew-cask,wickles/homebrew-cask,colindean/homebrew-cask,elnappo/homebrew-cask,troyxmccall/homebrew-cask,malob/homebrew-cask,cfillion/homebrew-cask,diguage/homebrew-cask,scribblemaniac/homebrew-cask,mazehall/homebrew-cask,hanxue/caskroom,Ketouem/homebrew-cask,albertico/homebrew-cask,neverfox/homebrew-cask,casidiablo/homebrew-cask,linc01n/homebrew-cask,moogar0880/homebrew-cask,kronicd/homebrew-cask,jeroenj/homebrew-cask,haha1903/homebrew-cask,vitorgalvao/homebrew-cask,mlocher/homebrew-cask,sjackman/homebrew-cask,stonehippo/homebrew-cask,theoriginalgri/homebrew-cask,phpwutz/homebrew-cask,ddm/homebrew-cask,dcondrey/homebrew-cask,xtian/homebrew-cask,jpmat296/homebrew-cask,joschi/homebrew-cask,FranklinChen/homebrew-cask,kTitan/homebrew-cask
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-#{version}-macosx.cocoa.x86_64.tar.gz" name 'Apache Directory Studio' homepage 'https://directory.apache.org/studio/' license :apache app 'ApacheDirectoryStudio.app' zap :delete => '~/.ApacheDirectoryStudio' end ## Instruction: Update Apache Directory Studio (2.0.0.v20151221-M10) ## Code After: 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.cocoa.x86_64.tar.gz" name 'Apache Directory Studio' homepage 'https://directory.apache.org/studio/' license :apache app 'ApacheDirectoryStudio.app' zap :delete => '~/.ApacheDirectoryStudio' end
00122a448406a802a24ee126e73b05a150e3119e
mirror_to_github.sh
mirror_to_github.sh
cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin [email protected]: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=git-marks1.txt git_export | \ git fast-import --import-marks=git-marks2.txt --export-marks=git-marks2.txt git push --mirror origin
cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin [email protected]:lapo-luchini/asn1js.git rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt [ -f git-authors.txt ] || echo '[email protected] = Lapo Luchini <[email protected]>' > git-authors.txt mtn ls branches --ignore-suspend-certs | sort -V | awk -F . '{ print $0 " = " ($4 ? $4 : "trunk") }' > git-branches.txt mtn --quiet --authors=git-authors.txt --branches-file=git-branches.txt --import-marks=git-marks1.txt --export-marks=git-marks1.txt git_export | \ git fast-import --import-marks=git-marks2.txt --export-marks=git-marks2.txt git push --mirror origin
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 [email protected]: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=git-marks1.txt git_export | \ git fast-import --import-marks=git-marks2.txt --export-marks=git-marks2.txt git push --mirror origin ## Instruction: Improve git export with automatic creation and update of authors and branches file. ## Code After: cd `dirname "$0"` mtn sy if [ ! -d .git ]; then git init git remote add origin [email protected]:lapo-luchini/asn1js.git rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt [ -f git-authors.txt ] || echo '[email protected] = Lapo Luchini <[email protected]>' > git-authors.txt mtn ls branches --ignore-suspend-certs | sort -V | awk -F . '{ print $0 " = " ($4 ? $4 : "trunk") }' > git-branches.txt mtn --quiet --authors=git-authors.txt --branches-file=git-branches.txt --import-marks=git-marks1.txt --export-marks=git-marks1.txt git_export | \ git fast-import --import-marks=git-marks2.txt --export-marks=git-marks2.txt git push --mirror origin
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 mapSourceURI = Def.settingKey[String]("Scalac option value to rewrite source URIs inside Scala.js Source Maps") val sourceMapsBase = Def.settingKey[File]("Source Maps base directory") val sourceMapsDirectories = Def.settingKey[Seq[File]]("Directories containing the Scala files needed by Source Maps") } import autoImport._ override def projectSettings: Seq[Setting[_]] = Seq( emitSourceMaps in fullOptJS := false, sourceMapsBase := baseDirectory.value, sourceMapsDirectories := Seq(sourceMapsBase.value), mapSourceURI := { val oldPrefix = (sourceMapsBase.value / "..").getCanonicalFile.toURI val newPrefix = "" s"-P:scalajs:mapSourceURI:$oldPrefix->$newPrefix" }, scalacOptions += mapSourceURI.value ) }
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 mapSourceURI = Def.settingKey[Option[String]]("Scalac option value to rewrite source URIs inside Scala.js Source Maps") val sourceMapsBase = Def.settingKey[File]("Source Maps base directory") val sourceMapsDirectories = Def.settingKey[Seq[File]]("Directories containing the Scala files needed by Source Maps") } import autoImport._ override def projectSettings: Seq[Setting[_]] = Seq( emitSourceMaps in fullOptJS := false, sourceMapsBase := baseDirectory.value, sourceMapsDirectories := Seq(sourceMapsBase.value), mapSourceURI := { val oldPrefix = (sourceMapsBase.value / "..").getCanonicalFile.toURI val newPrefix = "" Some(s"-P:scalajs:mapSourceURI:$oldPrefix->$newPrefix") }, scalacOptions ++= mapSourceURI.value.toSeq ) }
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 { val mapSourceURI = Def.settingKey[String]("Scalac option value to rewrite source URIs inside Scala.js Source Maps") val sourceMapsBase = Def.settingKey[File]("Source Maps base directory") val sourceMapsDirectories = Def.settingKey[Seq[File]]("Directories containing the Scala files needed by Source Maps") } import autoImport._ override def projectSettings: Seq[Setting[_]] = Seq( emitSourceMaps in fullOptJS := false, sourceMapsBase := baseDirectory.value, sourceMapsDirectories := Seq(sourceMapsBase.value), mapSourceURI := { val oldPrefix = (sourceMapsBase.value / "..").getCanonicalFile.toURI val newPrefix = "" s"-P:scalajs:mapSourceURI:$oldPrefix->$newPrefix" }, scalacOptions += mapSourceURI.value ) } ## Instruction: Change mapSourceURI type to Option[String]. ## Code After: 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 mapSourceURI = Def.settingKey[Option[String]]("Scalac option value to rewrite source URIs inside Scala.js Source Maps") val sourceMapsBase = Def.settingKey[File]("Source Maps base directory") val sourceMapsDirectories = Def.settingKey[Seq[File]]("Directories containing the Scala files needed by Source Maps") } import autoImport._ override def projectSettings: Seq[Setting[_]] = Seq( emitSourceMaps in fullOptJS := false, sourceMapsBase := baseDirectory.value, sourceMapsDirectories := Seq(sourceMapsBase.value), mapSourceURI := { val oldPrefix = (sourceMapsBase.value / "..").getCanonicalFile.toURI val newPrefix = "" Some(s"-P:scalajs:mapSourceURI:$oldPrefix->$newPrefix") }, scalacOptions ++= mapSourceURI.value.toSeq ) }
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; return Math.ceil(offset / limit) || 1; } // setter // no negative pages page = Math.max(page - 1, 0); offset = (limit * page) || 0; set(this, 'offset', offset); return page + 1; }.property('offset', 'limit'), // 1-based pages: function () { var limit = get(this, 'limit'); var length = get(this, 'content.length'); var pages = Math.ceil(length / limit) || 1; if (pages === Infinity) { pages = 0; } return pages; }.property('content.length', 'limit') }); ArrayPager.computed = { page: function (prop, page, limit) { return Em.computed(prop, function () { return ArrayPager.create({ content: get(this, prop), page: page, limit: limit }); }); } }; export default ArrayPager;
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.length <= 1) { offset = get(this, 'offset') || 0; return Math.ceil(offset / limit) || 1; } // setter // no negative pages page = Math.max(page - 1, 0); offset = (limit * page) || 0; set(this, 'offset', offset); return page + 1; }), // 1-based pages: computed('content.length', 'limit', function () { var limit = get(this, 'limit'); var length = get(this, 'content.length'); var pages = Math.ceil(length / limit) || 1; if (pages === Infinity) { pages = 0; } return pages; }) }); ArrayPager.computed = { page: function (prop, page, limit) { return computed(function () { return ArrayPager.create({ content: get(this, prop), page: page, limit: limit }); }); } }; export default ArrayPager;
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, 'offset') || 0; return Math.ceil(offset / limit) || 1; } // setter // no negative pages page = Math.max(page - 1, 0); offset = (limit * page) || 0; set(this, 'offset', offset); return page + 1; }.property('offset', 'limit'), // 1-based pages: function () { var limit = get(this, 'limit'); var length = get(this, 'content.length'); var pages = Math.ceil(length / limit) || 1; if (pages === Infinity) { pages = 0; } return pages; }.property('content.length', 'limit') }); ArrayPager.computed = { page: function (prop, page, limit) { return Em.computed(prop, function () { return ArrayPager.create({ content: get(this, prop), page: page, limit: limit }); }); } }; export default ArrayPager; ## Instruction: Use `Ember.computed` instead of `Function.prototype.property` ## Code After: 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.length <= 1) { offset = get(this, 'offset') || 0; return Math.ceil(offset / limit) || 1; } // setter // no negative pages page = Math.max(page - 1, 0); offset = (limit * page) || 0; set(this, 'offset', offset); return page + 1; }), // 1-based pages: computed('content.length', 'limit', function () { var limit = get(this, 'limit'); var length = get(this, 'content.length'); var pages = Math.ceil(length / limit) || 1; if (pages === Infinity) { pages = 0; } return pages; }) }); ArrayPager.computed = { page: function (prop, page, limit) { return computed(function () { return ArrayPager.create({ content: get(this, prop), page: page, limit: limit }); }); } }; export default ArrayPager;
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 made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Runs this job in parallel for each sub-project strategy: matrix: project-dir: - strict-version-matcher-plugin - google-services-plugin - oss-licenses-plugin # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Runs a build which includes `check` and `test` tasks - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - uses: actions/upload-artifact@v2 with: name: Package path: build/libs
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 made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Runs this job in parallel for each sub-project strategy: matrix: project-dir: - strict-version-matcher-plugin - google-services-plugin - oss-licenses-plugin # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Runs a build which includes `check` and `test` tasks - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - name: Upload generated artifacts uses: actions/upload-artifact@v2 with: name: Plugin Artifact path: build/libs retention-days: 5 working-directory: ./${{ matrix.project-dir }}
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 workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Runs this job in parallel for each sub-project strategy: matrix: project-dir: - strict-version-matcher-plugin - google-services-plugin - oss-licenses-plugin # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Runs a build which includes `check` and `test` tasks - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - uses: actions/upload-artifact@v2 with: name: Package path: build/libs ## Instruction: Add retention limit and working-directory ## Code After: 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 made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Runs this job in parallel for each sub-project strategy: matrix: project-dir: - strict-version-matcher-plugin - google-services-plugin - oss-licenses-plugin # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Runs a build which includes `check` and `test` tasks - name: Perform a Gradle build run: ./gradlew build working-directory: ./${{ matrix.project-dir }} - name: Upload generated artifacts uses: actions/upload-artifact@v2 with: name: Plugin Artifact path: build/libs retention-days: 5 working-directory: ./${{ matrix.project-dir }}
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: { text: "Can this person provide the following from their previous employment:", isPageHeading: true, classes: "govuk-fieldset__legend--l" } }, items: [ { value: "three-months", text: "Payslips or bank statements for the last 3 months", checked: checked("['" + type + "'].employmentStatusEvidence", "three-months") }, { value: "most-recent", text: "Most recent payslip and permanent contract of employment", hint: { text: "Not zero hours or fixed term" }, checked: checked("['" + type + "'].employmentStatusEvidence", "most-recent") }, { divider: "or" }, { value: "none", text: "None of the above", checked: checked("['" + type + "'].employmentStatusEvidence", "none") } ] }) }} {{ govukButton({ text: "Continue" }) }} </form> </div> </div> {% endblock %}
{% 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: { text: "What evidence can they provide from their previous employment?", isPageHeading: true, classes: "govuk-fieldset__legend--l" } }, items: [ { value: "three-months", text: "Payslips or bank statements from the final 3 months of their employment", checked: checked("['" + type + "'].employmentStatusEvidence", "three-months") }, { value: "most-recent", text: "Most recent payslip and permanent contract of employment", hint: { text: "Not zero hours or fixed term" }, checked: checked("['" + type + "'].employmentStatusEvidence", "most-recent") }, { divider: "or" }, { value: "none", text: "None of the above", checked: checked("['" + type + "'].employmentStatusEvidence", "none") } ] }) }} {{ govukButton({ text: "Continue" }) }} </form> </div> </div> {% endblock %}
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: { legend: { text: "Can this person provide the following from their previous employment:", isPageHeading: true, classes: "govuk-fieldset__legend--l" } }, items: [ { value: "three-months", text: "Payslips or bank statements for the last 3 months", checked: checked("['" + type + "'].employmentStatusEvidence", "three-months") }, { value: "most-recent", text: "Most recent payslip and permanent contract of employment", hint: { text: "Not zero hours or fixed term" }, checked: checked("['" + type + "'].employmentStatusEvidence", "most-recent") }, { divider: "or" }, { value: "none", text: "None of the above", checked: checked("['" + type + "'].employmentStatusEvidence", "none") } ] }) }} {{ govukButton({ text: "Continue" }) }} </form> </div> </div> {% endblock %} ## Instruction: Apply PYCA-1118 to live prototype ## Code After: {% 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: { text: "What evidence can they provide from their previous employment?", isPageHeading: true, classes: "govuk-fieldset__legend--l" } }, items: [ { value: "three-months", text: "Payslips or bank statements from the final 3 months of their employment", checked: checked("['" + type + "'].employmentStatusEvidence", "three-months") }, { value: "most-recent", text: "Most recent payslip and permanent contract of employment", hint: { text: "Not zero hours or fixed term" }, checked: checked("['" + type + "'].employmentStatusEvidence", "most-recent") }, { divider: "or" }, { value: "none", text: "None of the above", checked: checked("['" + type + "'].employmentStatusEvidence", "none") } ] }) }} {{ govukButton({ text: "Continue" }) }} </form> </div> </div> {% endblock %}
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 href="{{ site.url }}/work" class="btn">See our work</a> {% if page.image.credit %}{% include image-credit.html %}{% endif %} </div><!-- /.page-lead-content --> </div><!-- /.page-lead --> {% endif %} <div class="wrap"> <div class="tiles"> {% for post in site.posts %} {% include post-grid.html %} {% endfor %} </div><!-- /.tiles --> </div><!-- /.wrap -->
--- 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>Lick Innovations</h1> <h2>A catchy slogan</h2> <a href="{{ site.url }}/work" class="btn">See our work</a> {% if page.image.credit %}{% include image-credit.html %}{% endif %} </div><!-- /.page-lead-content --> </div><!-- /.page-lead --> {% endif %} <div class="wrap"> <div class="tiles"> {% for post in site.posts %} {% include post-grid.html %} {% endfor %} </div><!-- /.tiles --> </div><!-- /.wrap -->
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 slogan</h2> <a href="{{ site.url }}/work" class="btn">See our work</a> {% if page.image.credit %}{% include image-credit.html %}{% endif %} </div><!-- /.page-lead-content --> </div><!-- /.page-lead --> {% endif %} <div class="wrap"> <div class="tiles"> {% for post in site.posts %} {% include post-grid.html %} {% endfor %} </div><!-- /.tiles --> </div><!-- /.wrap --> ## Instruction: Add bg gradient to image ## Code After: --- 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>Lick Innovations</h1> <h2>A catchy slogan</h2> <a href="{{ site.url }}/work" class="btn">See our work</a> {% if page.image.credit %}{% include image-credit.html %}{% endif %} </div><!-- /.page-lead-content --> </div><!-- /.page-lead --> {% endif %} <div class="wrap"> <div class="tiles"> {% for post in site.posts %} {% include post-grid.html %} {% endfor %} </div><!-- /.tiles --> </div><!-- /.wrap -->
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 = generateTreeStructure(comments); it('should render the top level comments at root level ', () => { const wrapper = shallow(<CommentTree comments={tree} />); const commentElements = wrapper.find('.root'); expect(commentElements.length).toEqual(2); }); it('should nest comments', () => { const wrapper = mount( <MemoryRouter> <CommentTree comments={tree} /> </MemoryRouter> ); const rootElements = wrapper.find('.root'); const rootElement = rootElements.at(1); const childTree = rootElement.find('.child'); expect(childTree.text()).toMatch(comments[2].text); }); });
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(() => { window.getSelection = () => {}; }); const tree = generateTreeStructure(comments); it('should render the top level comments at root level ', () => { const wrapper = shallow(<CommentTree comments={tree} />); const commentElements = wrapper.find('.root'); expect(commentElements.length).toEqual(2); }); it('should nest comments', () => { const wrapper = mount( <MemoryRouter> <CommentTree comments={tree} /> </MemoryRouter> ); const rootElements = wrapper.find('.root'); const rootElement = rootElements.at(1); const childTree = rootElement.find('.child'); expect(childTree.text()).toMatch(comments[2].text); }); });
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 tree = generateTreeStructure(comments); it('should render the top level comments at root level ', () => { const wrapper = shallow(<CommentTree comments={tree} />); const commentElements = wrapper.find('.root'); expect(commentElements.length).toEqual(2); }); it('should nest comments', () => { const wrapper = mount( <MemoryRouter> <CommentTree comments={tree} /> </MemoryRouter> ); const rootElements = wrapper.find('.root'); const rootElement = rootElements.at(1); const childTree = rootElement.find('.child'); expect(childTree.text()).toMatch(comments[2].text); }); }); ## Instruction: 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. ## Code After: 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(() => { window.getSelection = () => {}; }); const tree = generateTreeStructure(comments); it('should render the top level comments at root level ', () => { const wrapper = shallow(<CommentTree comments={tree} />); const commentElements = wrapper.find('.root'); expect(commentElements.length).toEqual(2); }); it('should nest comments', () => { const wrapper = mount( <MemoryRouter> <CommentTree comments={tree} /> </MemoryRouter> ); const rootElements = wrapper.find('.root'); const rootElement = rootElements.at(1); const childTree = rootElement.find('.child'); expect(childTree.text()).toMatch(comments[2].text); }); });
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: e32e6781feeb0a0de14883205950ae267a8dad4f@178304 13f79535-47bb-0310-9956-ffa450edef68 ## Code After: usedefaults=true useextdirs=true
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 documentation") } import autoImport._ private def processDir(dir: File, variables: Map[String, String]): Unit = { dir.listFiles().foreach { f => if (f.isDirectory) { processDir(f, variables) } } dir.listFiles().foreach { f => if (f.isFile && f.name.endsWith(".html")) { val substituted = Source.fromFile(f, "UTF-8").getLines().map { line => var newLine = line variables.foreach { case (variable, value) => newLine = newLine.replaceAll(s"\\{\\{$variable\\}\\}", value) } newLine }.reduce(_ + "\n" + _) + "\n" val pw = new PrintWriter(f, "UTF-8") pw.write(substituted) pw.close() } } } override def projectSettings = Seq( mkdocs := { Process(Seq("mkdocs", "build", "--clean", "-q"), baseDirectory.value).!! processDir(baseDirectory.value / "target", mkdocsVariables.value) } ) }
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 documentation") } import autoImport._ private def processDir(dir: File, variables: Map[String, String]): Unit = { dir.listFiles().foreach { f => if (f.isDirectory) { processDir(f, variables) } } dir.listFiles().foreach { f => if (f.isFile && f.name.endsWith(".html")) { val substituted = Source.fromFile(f, "UTF-8").getLines().map { line => var newLine = line variables.foreach { case (variable, value) => newLine = newLine .replaceAll(s"\\{\\{$variable\\}\\}", value) .replaceAll("""href="\.\./http""", """href="http""") } newLine }.reduce(_ + "\n" + _) + "\n" val pw = new PrintWriter(f, "UTF-8") pw.write(substituted) pw.close() } } } override def projectSettings = Seq( mkdocs := { Process(Seq("mkdocs", "build", "--clean", "-q"), baseDirectory.value).!! processDir(baseDirectory.value / "target", mkdocsVariables.value) } ) }
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]("Generates mkdocs documentation") } import autoImport._ private def processDir(dir: File, variables: Map[String, String]): Unit = { dir.listFiles().foreach { f => if (f.isDirectory) { processDir(f, variables) } } dir.listFiles().foreach { f => if (f.isFile && f.name.endsWith(".html")) { val substituted = Source.fromFile(f, "UTF-8").getLines().map { line => var newLine = line variables.foreach { case (variable, value) => newLine = newLine.replaceAll(s"\\{\\{$variable\\}\\}", value) } newLine }.reduce(_ + "\n" + _) + "\n" val pw = new PrintWriter(f, "UTF-8") pw.write(substituted) pw.close() } } } override def projectSettings = Seq( mkdocs := { Process(Seq("mkdocs", "build", "--clean", "-q"), baseDirectory.value).!! processDir(baseDirectory.value / "target", mkdocsVariables.value) } ) } ## Instruction: Fix mkdocs links that use variables ## Code After: 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 documentation") } import autoImport._ private def processDir(dir: File, variables: Map[String, String]): Unit = { dir.listFiles().foreach { f => if (f.isDirectory) { processDir(f, variables) } } dir.listFiles().foreach { f => if (f.isFile && f.name.endsWith(".html")) { val substituted = Source.fromFile(f, "UTF-8").getLines().map { line => var newLine = line variables.foreach { case (variable, value) => newLine = newLine .replaceAll(s"\\{\\{$variable\\}\\}", value) .replaceAll("""href="\.\./http""", """href="http""") } newLine }.reduce(_ + "\n" + _) + "\n" val pw = new PrintWriter(f, "UTF-8") pw.write(substituted) pw.close() } } } override def projectSettings = Seq( mkdocs := { Process(Seq("mkdocs", "build", "--clean", "-q"), baseDirectory.value).!! processDir(baseDirectory.value / "target", mkdocsVariables.value) } ) }
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 AnnotationDocConverter { /** * Convert an Annotation Document into a model to be returned to the user * @param annotationDocument A document retrieved from the Annotation data source * @return an Annotation model */ Annotation convert(AnnotationDocument annotationDocument); }
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 * Time: 16:47 */ public interface AnnotationDocConverter { /** * Convert an Annotation Document into a model to be returned to the user * @param annotationDocument A document retrieved from the Annotation data source * @return an Annotation model */ Annotation convert(AnnotationDocument annotationDocument); }
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 AnnotationDocConverter { /** * Convert an Annotation Document into a model to be returned to the user * @param annotationDocument A document retrieved from the Annotation data source * @return an Annotation model */ Annotation convert(AnnotationDocument annotationDocument); } ## Instruction: Improve more JavaDoc to interface. ## Code After: 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 * Time: 16:47 */ public interface AnnotationDocConverter { /** * Convert an Annotation Document into a model to be returned to the user * @param annotationDocument A document retrieved from the Annotation data source * @return an Annotation model */ Annotation convert(AnnotationDocument annotationDocument); }
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 steve ./execsteve.sh EXITCODE=$? #### Assert: Check expected results OutputContains "Running request 20150102122020" OutputContains "Running request 20150102123030" OutputContains "Running request 20150102125050"
. ./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 steve ./execsteve.sh EXITCODE=$? #### Assert: Check expected results arr=() while read -r line; do arr+=("$line") done <<< "`grep "Running request" $STEVE_OUTPUT`" AssertEqual "${arr[0]}" "Running request 20150102122020" AssertEqual "${arr[1]}" "Running request 20150102123030" AssertEqual "${arr[2]}" "Running request 20150102125050"
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 #### Act: Run steve ./execsteve.sh EXITCODE=$? #### Assert: Check expected results OutputContains "Running request 20150102122020" OutputContains "Running request 20150102123030" OutputContains "Running request 20150102125050" ## Instruction: Use array to determine order in which requests are executed ## Code After: . ./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 steve ./execsteve.sh EXITCODE=$? #### Assert: Check expected results arr=() while read -r line; do arr+=("$line") done <<< "`grep "Running request" $STEVE_OUTPUT`" AssertEqual "${arr[0]}" "Running request 20150102122020" AssertEqual "${arr[1]}" "Running request 20150102123030" AssertEqual "${arr[2]}" "Running request 20150102125050"
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'], }, rollup: { all: { options: { external: 'react', plugins: [ rollupPluginBabel(), ], format: 'cjs', }, files: { 'dist/index.js': 'lib/index.js', }, }, }, babel: { all: { files: [{ expand: true, cwd: 'lib/', src: '**/*.js', dest: 'tmp/', }], }, }, mochaTest: { test: { options: { timeout: 500, }, src: [ 'test/boot.js', 'test/**/*.test.js', ], }, }, }); grunt.registerTask('prepublish', ['eslint', 'clean', 'babel', 'rollup']); grunt.registerTask('test', ['prepublish', 'mochaTest']); grunt.registerTask('default', ['test']); };
'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'], }, rollup: { all: { options: { external: 'react', plugins: [ rollupPluginBabel(), ], format: 'cjs', }, files: { 'dist/index.js': 'lib/index.js', }, }, }, babel: { all: { files: [{ expand: true, cwd: 'lib/', src: '**/*.js', dest: 'tmp/', }], }, }, mochaTest: { test: { options: { timeout: 500, }, src: [ 'test/boot.js', 'test/**/*.test.js', ], }, }, }); grunt.registerTask('prepublish', ['eslint', 'clean', 'rollup']); grunt.registerTask('test', ['prepublish', 'babel', 'mochaTest']); grunt.registerTask('default', ['test']); };
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', 'tmp'], }, rollup: { all: { options: { external: 'react', plugins: [ rollupPluginBabel(), ], format: 'cjs', }, files: { 'dist/index.js': 'lib/index.js', }, }, }, babel: { all: { files: [{ expand: true, cwd: 'lib/', src: '**/*.js', dest: 'tmp/', }], }, }, mochaTest: { test: { options: { timeout: 500, }, src: [ 'test/boot.js', 'test/**/*.test.js', ], }, }, }); grunt.registerTask('prepublish', ['eslint', 'clean', 'babel', 'rollup']); grunt.registerTask('test', ['prepublish', 'mochaTest']); grunt.registerTask('default', ['test']); }; ## Instruction: Move the babel task to the test task. ## Code After: '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'], }, rollup: { all: { options: { external: 'react', plugins: [ rollupPluginBabel(), ], format: 'cjs', }, files: { 'dist/index.js': 'lib/index.js', }, }, }, babel: { all: { files: [{ expand: true, cwd: 'lib/', src: '**/*.js', dest: 'tmp/', }], }, }, mochaTest: { test: { options: { timeout: 500, }, src: [ 'test/boot.js', 'test/**/*.test.js', ], }, }, }); grunt.registerTask('prepublish', ['eslint', 'clean', 'rollup']); grunt.registerTask('test', ['prepublish', 'babel', 'mochaTest']); grunt.registerTask('default', ['test']); };
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 NiFTI scan image file path :return: the bolus arrival series index :raise BolusArrivalError: if the bolus arrival could not be determined """ import nibabel as nb import numpy as np nii = nb.load(time_series) data = nii.get_data() n_vols = data.shape[-1] signal_means = np.array([np.mean(data[:,:,:, idx]) for idx in xrange(n_vols)]) signal_diffs = np.diff(signal_means) # If we see a difference in average signal larger than double the # difference from first two points, take that as bolus arrival. base_diff = np.abs(signal_diffs[0]) for idx, diff_val in enumerate(signal_diffs[1:]): if diff_val > 2 * base_diff: return idx + 1 else: raise BolusArrivalError("Unable to determine bolus arrival")
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 NiFTI scan image file path :return: the bolus arrival time point index :raise BolusArrivalError: if the bolus arrival could not be determined """ import nibabel as nb import numpy as np nii = nb.load(time_series) data = nii.get_data() n_vols = data.shape[-1] signal_means = np.array([np.mean(data[:,:,:, idx]) for idx in xrange(n_vols)]) signal_diffs = np.diff(signal_means) # If we see a difference in average signal larger than double the # difference from first two points, take that as bolus arrival. base_diff = np.abs(signal_diffs[0]) for idx, diff_val in enumerate(signal_diffs[1:]): if diff_val > 2 * base_diff: return idx + 1 else: raise BolusArrivalError("Unable to determine bolus arrival")
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_series: the 4D NiFTI scan image file path :return: the bolus arrival series index :raise BolusArrivalError: if the bolus arrival could not be determined """ import nibabel as nb import numpy as np nii = nb.load(time_series) data = nii.get_data() n_vols = data.shape[-1] signal_means = np.array([np.mean(data[:,:,:, idx]) for idx in xrange(n_vols)]) signal_diffs = np.diff(signal_means) # If we see a difference in average signal larger than double the # difference from first two points, take that as bolus arrival. base_diff = np.abs(signal_diffs[0]) for idx, diff_val in enumerate(signal_diffs[1:]): if diff_val > 2 * base_diff: return idx + 1 else: raise BolusArrivalError("Unable to determine bolus arrival") ## Instruction: Change series to time point. ## Code After: 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 NiFTI scan image file path :return: the bolus arrival time point index :raise BolusArrivalError: if the bolus arrival could not be determined """ import nibabel as nb import numpy as np nii = nb.load(time_series) data = nii.get_data() n_vols = data.shape[-1] signal_means = np.array([np.mean(data[:,:,:, idx]) for idx in xrange(n_vols)]) signal_diffs = np.diff(signal_means) # If we see a difference in average signal larger than double the # difference from first two points, take that as bolus arrival. base_diff = np.abs(signal_diffs[0]) for idx, diff_val in enumerate(signal_diffs[1:]): if diff_val > 2 * base_diff: return idx + 1 else: raise BolusArrivalError("Unable to determine bolus arrival")
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.confirmation_instructions.subject') mail(to: user.email, from: from_address, subject: subject) end end
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_instructions`. def confirmation_instructions(user, _opts) @user = user subject = t('spree.user_mailer.confirmation_instructions.subject') mail(to: user.email, from: from_address, subject: subject) end end
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,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork
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('spree.user_mailer.confirmation_instructions.subject') mail(to: user.email, from: from_address, subject: subject) end end ## Instruction: Remove unused variable from mailer The second variable passed by Devise is actually a hash, not a token. ## Code After: 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_instructions`. def confirmation_instructions(user, _opts) @user = user subject = t('spree.user_mailer.confirmation_instructions.subject') mail(to: user.email, from: from_address, subject: subject) end end
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 environment variables are available during deploys. ```bash heroku labs:enable user-env-compile ``` Increase maximum database connections to 20 ```bash heroku config -s | awk '/^DATABASE_URL=/{print $0 "?pool=20"}' | xargs heroku config:add ``` ### CORS and S3 If you're hosting the gifs on S3, you'll need to edit its CORS configuration so it allows XHR requests ```xml <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> ```
![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="" ``` ### Heroku Ensure environment variables are available during deploys. ```bash heroku labs:enable user-env-compile ``` Increase maximum database connections to 20 ```bash heroku config -s | awk '/^DATABASE_URL=/{print $0 "?pool=20"}' | xargs heroku config:add ``` ### CORS and S3 If you're hosting the gifs on S3, you'll need to edit its CORS configuration so it allows XHR requests ```xml <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> ```
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 ``` ### Heroku Ensure environment variables are available during deploys. ```bash heroku labs:enable user-env-compile ``` Increase maximum database connections to 20 ```bash heroku config -s | awk '/^DATABASE_URL=/{print $0 "?pool=20"}' | xargs heroku config:add ``` ### CORS and S3 If you're hosting the gifs on S3, you'll need to edit its CORS configuration so it allows XHR requests ```xml <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> ``` ## Instruction: Update readme with new environment variable ## Code After: ![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="" ``` ### Heroku Ensure environment variables are available during deploys. ```bash heroku labs:enable user-env-compile ``` Increase maximum database connections to 20 ```bash heroku config -s | awk '/^DATABASE_URL=/{print $0 "?pool=20"}' | xargs heroku config:add ``` ### CORS and S3 If you're hosting the gifs on S3, you'll need to edit its CORS configuration so it allows XHR requests ```xml <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> ```
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: [email protected] synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world. ' basic-deps: base: ! '>=4.7 && <4.12' containers: ! '>=0.5.9 && <0.6' all-versions: - '0.1.0.0' author: chessai latest: '0.1.0.0' description-type: haddock description: a very general way of lossless diffing on maps license-name: BSD3
homepage: https://github.com/chessai/diffmap.git changelog-type: markdown hash: 27ea8c315b5dbfb243b2c3b61eab2164534e1d02887a05392dda65995cd36c3e test-bench-deps: {} maintainer: [email protected] synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world. ' basic-deps: base: ! '>=4.7 && <4.13' containers: ! '>=0.5.9 && <0.7' all-versions: - '0.1.0.0' author: chessai latest: '0.1.0.0' description-type: haddock description: a very general way of lossless diffing on maps license-name: BSD3
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: [email protected] synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world. ' basic-deps: base: ! '>=4.7 && <4.12' containers: ! '>=0.5.9 && <0.6' all-versions: - '0.1.0.0' author: chessai latest: '0.1.0.0' description-type: haddock description: a very general way of lossless diffing on maps license-name: BSD3 ## Instruction: Update from Hackage at 2018-11-06T16:42:58Z ## Code After: homepage: https://github.com/chessai/diffmap.git changelog-type: markdown hash: 27ea8c315b5dbfb243b2c3b61eab2164534e1d02887a05392dda65995cd36c3e test-bench-deps: {} maintainer: [email protected] synopsis: diff on maps changelog: ! '# Revision history for diffmap ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world. ' basic-deps: base: ! '>=4.7 && <4.13' containers: ! '>=0.5.9 && <0.7' all-versions: - '0.1.0.0' author: chessai latest: '0.1.0.0' description-type: haddock description: a very general way of lossless diffing on maps license-name: BSD3
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 Competition, Set Your Phasers to Stunning, is back! Krewe du Moon will compete in this galatic competition with their sweet dance moves.
--- 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 and Costume Competition, Set Your Phasers to Stunning, is back! Krewe du Moon will compete in this galactic competition with their sweet dance moves.
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 Costume Competition, Set Your Phasers to Stunning, is back! Krewe du Moon will compete in this galatic competition with their sweet dance moves. ## Instruction: Fix Stunning typo and edit tab text and summary ## Code After: --- 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 and Costume Competition, Set Your Phasers to Stunning, is back! Krewe du Moon will compete in this galactic competition with their sweet dance moves.
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]: https://en.wikipedia.org/wiki/Brainfuck Scripts ------- You can write scripts as such: $ cat hello.bf #!/usr/bin/env brainmuk ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. $ chmod +x hello.bf $ ./hello.bf Hello, World! Brainfuck Instructions ====================== Any characters other than these instructions are ignored. - `>` increment data pointer by one `p++` - `<` decrement data pointer by one `p--` - `+` increment the byte at the data pointer `++*p` - `-` decrement the byte at the data pointer `++*p` - `.` output the byte at the data pointer `putchar(*p)` - `,` get a byte of input, placing at the data pointer `*p = getchar()` - `[` if the byte at data pointer is zero, branch to the _matching_ `[` instruction `while (*p) {` - `]` if the byte at the data pointer is non-zero, branch back to the _matching_ `[` instruction `}`
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]: https://en.wikipedia.org/wiki/Brainfuck Scripts ------- You can write scripts as such: $ cat hello.bf #!/usr/bin/env brainmuk ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. $ chmod +x hello.bf $ ./hello.bf Hello, World!
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 file.bf [brainfuck]: https://en.wikipedia.org/wiki/Brainfuck Scripts ------- You can write scripts as such: $ cat hello.bf #!/usr/bin/env brainmuk ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. $ chmod +x hello.bf $ ./hello.bf Hello, World! Brainfuck Instructions ====================== Any characters other than these instructions are ignored. - `>` increment data pointer by one `p++` - `<` decrement data pointer by one `p--` - `+` increment the byte at the data pointer `++*p` - `-` decrement the byte at the data pointer `++*p` - `.` output the byte at the data pointer `putchar(*p)` - `,` get a byte of input, placing at the data pointer `*p = getchar()` - `[` if the byte at data pointer is zero, branch to the _matching_ `[` instruction `while (*p) {` - `]` if the byte at the data pointer is non-zero, branch back to the _matching_ `[` instruction `}` ## Instruction: Remove typo-filled explanation (it's on Wikipedia anyway...) ## Code After: 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]: https://en.wikipedia.org/wiki/Brainfuck Scripts ------- You can write scripts as such: $ cat hello.bf #!/usr/bin/env brainmuk ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. $ chmod +x hello.bf $ ./hello.bf Hello, World!
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==1.0.1 django-celery-beat==1.0.1 requests==2.18.4
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==1.0.1 https://github.com/celery/django-celery-beat/archive/master.zip#egg=django-celery-beat requests==2.18.4
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 django-celery-results==1.0.1 django-celery-beat==1.0.1 requests==2.18.4 ## Instruction: Use django-celery-beat from master branch ## Code After: 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==1.0.1 https://github.com/celery/django-celery-beat/archive/master.zip#egg=django-celery-beat requests==2.18.4
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.9.3-p448 - rvm install 1.9.3-p484 - rvm install 1.9.3-p545 install: - bundle install --path=./vendor/bundle script: - bundle exec rspec
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.9.3-p448 - rvm install 1.9.3-p484 - rvm install 1.9.3-p545 install: - bundle install --path=./vendor/bundle script: - bundle exec rspec - rvm use 2.1.2 - bundle exec rspec - rvm use 2.1.1 - bundle exec rspec - rvm use 2.1.0 - bundle exec rspec - rvm use 1.9.3-p547 - bundle exec rspec - rvm use 1.9.3-p392 - bundle exec rspec - rvm use 1.9.3-p429 - bundle exec rspec - rvm use 1.9.3-p448 - bundle exec rspec - rvm use 1.9.3-p484 - bundle exec rspec - rvm use 1.9.3-p545
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 - rvm install 1.9.3-p448 - rvm install 1.9.3-p484 - rvm install 1.9.3-p545 install: - bundle install --path=./vendor/bundle script: - bundle exec rspec ## Instruction: Fix settings for use in MagnumCI ## Code After: 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.9.3-p448 - rvm install 1.9.3-p484 - rvm install 1.9.3-p545 install: - bundle install --path=./vendor/bundle script: - bundle exec rspec - rvm use 2.1.2 - bundle exec rspec - rvm use 2.1.1 - bundle exec rspec - rvm use 2.1.0 - bundle exec rspec - rvm use 1.9.3-p547 - bundle exec rspec - rvm use 1.9.3-p392 - bundle exec rspec - rvm use 1.9.3-p429 - bundle exec rspec - rvm use 1.9.3-p448 - bundle exec rspec - rvm use 1.9.3-p484 - bundle exec rspec - rvm use 1.9.3-p545
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 ActiveRecord Adapter for all subclasses. # Subclasses can still override this default. <%- end -%> self.abstract_class = true self.adapter = Graphiti::Adapters::ActiveRecord self.base_url = Rails.application.routes.default_url_options[:host] self.endpoint_namespace = '<%= api_namespace %>' def self.default_attributes klass = self.to_s.gsub(/Resource$/,"").constantize klass.columns.each do |c| attribute c.name.to_sym, c.type end end end
<%- 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 ActiveRecord Adapter for all subclasses. # Subclasses can still override this default. <%- end -%> self.abstract_class = true self.adapter = Graphiti::Adapters::ActiveRecord self.base_url = Rails.application.routes.default_url_options[:host] self.endpoint_namespace = '<%= api_namespace %>' def self.default_attributes(opts = { }) begin unless opts[:from] <= ApplicationRecord raise "Unable to set #{self} default_attributes from #{opts[:from]}. #{opts[:from]} must be a kind of ApplicationRecord" end klass = opts[:from] if klass.table_exists? klass.columns.each do |c| attribute c.name.to_sym, c.type end end rescue => e Rails.logger.error e.message end end end
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? -%> # Use the ActiveRecord Adapter for all subclasses. # Subclasses can still override this default. <%- end -%> self.abstract_class = true self.adapter = Graphiti::Adapters::ActiveRecord self.base_url = Rails.application.routes.default_url_options[:host] self.endpoint_namespace = '<%= api_namespace %>' def self.default_attributes klass = self.to_s.gsub(/Resource$/,"").constantize klass.columns.each do |c| attribute c.name.to_sym, c.type end end end ## Instruction: Handle errors on class load ## Code After: <%- 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 ActiveRecord Adapter for all subclasses. # Subclasses can still override this default. <%- end -%> self.abstract_class = true self.adapter = Graphiti::Adapters::ActiveRecord self.base_url = Rails.application.routes.default_url_options[:host] self.endpoint_namespace = '<%= api_namespace %>' def self.default_attributes(opts = { }) begin unless opts[:from] <= ApplicationRecord raise "Unable to set #{self} default_attributes from #{opts[:from]}. #{opts[:from]} must be a kind of ApplicationRecord" end klass = opts[:from] if klass.table_exists? klass.columns.each do |c| attribute c.name.to_sym, c.type end end rescue => e Rails.logger.error e.message end end end
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.authors = 'Horcrux Chen' s.platforms = { :osx => "10.14", :ios => "9.0", :tvos => "9.2" } s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'apple/**/*.{h,m}' s.ios.exclude_files = '**/*.macos.{h,m}' s.osx.exclude_files = '**/*.ios.{h,m}' s.requires_arc = true s.dependency 'React' end
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.authors = 'Horcrux Chen' s.platforms = { :osx => "10.14", :ios => "9.0", :tvos => "9.2" } s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'apple/**/*.{h,m}' s.ios.exclude_files = '**/*.macos.{h,m}' s.tvos.exclude_files = '**/*.macos.{h,m}' s.osx.exclude_files = '**/*.ios.{h,m}' s.requires_arc = true s.dependency 'React' end
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['homepage'] s.authors = 'Horcrux Chen' s.platforms = { :osx => "10.14", :ios => "9.0", :tvos => "9.2" } s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'apple/**/*.{h,m}' s.ios.exclude_files = '**/*.macos.{h,m}' s.osx.exclude_files = '**/*.ios.{h,m}' s.requires_arc = true s.dependency 'React' end ## Instruction: Exclude macos files on tvOS ## Code After: 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.authors = 'Horcrux Chen' s.platforms = { :osx => "10.14", :ios => "9.0", :tvos => "9.2" } s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" } s.source_files = 'apple/**/*.{h,m}' s.ios.exclude_files = '**/*.macos.{h,m}' s.tvos.exclude_files = '**/*.macos.{h,m}' s.osx.exclude_files = '**/*.ios.{h,m}' s.requires_arc = true s.dependency 'React' end
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 FXML = "PersonListCard.fxml"; @FXML private HBox cardPane; @FXML private Label name; @FXML private Label id; @FXML private Label phone; @FXML private Label address; @FXML private Label email; @FXML private FlowPane tags; public TaskCard(ReadOnlyTask person, int displayedIndex) { super(FXML); name.setText(person.getTitle().fullTitle); id.setText(displayedIndex + ". "); phone.setText(person.getEndDateTime().value); address.setText(person.getLocation().value); email.setText(person.getStartDateTime().value); initTags(person); } private void initTags(ReadOnlyTask person) { person.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName))); } }
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 FXML = "PersonListCard.fxml"; @FXML private HBox cardPane; @FXML private Label name; @FXML private Label id; @FXML private Label phone; @FXML private Label address; @FXML private Label email; @FXML private FlowPane tags; public TaskCard(ReadOnlyTask person, int displayedIndex) { super(FXML); name.setText(person.getTitle().fullTitle); id.setText("#" + displayedIndex + " "); if (person.getEndDateTime() != null && person.getStartDateTime() != null) { phone.setText(person.getStartDateTime() + " until " + person.getEndDateTime()); } else if (person.getEndDateTime() != null && person.getStartDateTime() == null) { phone.setText(person.getEndDateTime().value); } else { phone.setText(null); } if (person.getLocation() == null) { address.setText(""); } else { address.setText(person.getLocation().value); } initTags(person); } private void initTags(ReadOnlyTask person) { person.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName))); } }
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 static final String FXML = "PersonListCard.fxml"; @FXML private HBox cardPane; @FXML private Label name; @FXML private Label id; @FXML private Label phone; @FXML private Label address; @FXML private Label email; @FXML private FlowPane tags; public TaskCard(ReadOnlyTask person, int displayedIndex) { super(FXML); name.setText(person.getTitle().fullTitle); id.setText(displayedIndex + ". "); phone.setText(person.getEndDateTime().value); address.setText(person.getLocation().value); email.setText(person.getStartDateTime().value); initTags(person); } private void initTags(ReadOnlyTask person) { person.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName))); } } ## Instruction: Update display of task card ## Code After: 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 FXML = "PersonListCard.fxml"; @FXML private HBox cardPane; @FXML private Label name; @FXML private Label id; @FXML private Label phone; @FXML private Label address; @FXML private Label email; @FXML private FlowPane tags; public TaskCard(ReadOnlyTask person, int displayedIndex) { super(FXML); name.setText(person.getTitle().fullTitle); id.setText("#" + displayedIndex + " "); if (person.getEndDateTime() != null && person.getStartDateTime() != null) { phone.setText(person.getStartDateTime() + " until " + person.getEndDateTime()); } else if (person.getEndDateTime() != null && person.getStartDateTime() == null) { phone.setText(person.getEndDateTime().value); } else { phone.setText(null); } if (person.getLocation() == null) { address.setText(""); } else { address.setText(person.getLocation().value); } initTags(person); } private void initTags(ReadOnlyTask person) { person.getTags().forEach(tag -> tags.getChildren().add(new Label(tag.tagName))); } }
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: 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)
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('!'); $routeProvider.otherwise({redirectTo: '/view1'}); }]);*/ var clientApp = angular.module('clientApp', []); clientApp.controller('PathFinderController', ['$scope', function($scope) { //Submit the Request to get the paths for the node text. $scope.results = []; $scope.paths = []; $scope.submit = function() { var enteredNode = $scope.nodeText; var json = angular.fromJson($scope.enteredJson); addJsonPaths(json, ""); console.log($scope.paths); }; function addJsonPaths(theObject, path) { var paths = []; for (var property in theObject) { if (theObject.hasOwnProperty(property)) { if (theObject[property] instanceof Object) { addJsonPaths(theObject[property], path + '/' + property); } else { var finalPath = path + '/' + property; if(finalPath.indexOf($scope.nodeText) > -1) { var nodeIndex = finalPath.indexOf($scope.nodeText); $scope.paths.push(finalPath.substring(0, nodeIndex + $scope.nodeText.length)); } } } } } }]);
'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('!'); $routeProvider.otherwise({redirectTo: '/view1'}); }]);*/ var clientApp = angular.module('clientApp', []); clientApp.controller('PathFinderController', ['$scope', function($scope) { //Submit the Request to get the paths for the node text. $scope.results = []; $scope.paths = []; $scope.submit = function() { $scope.paths = []; var enteredNode = $scope.nodeText; var json = angular.fromJson($scope.enteredJson); addJsonPaths(json, ""); console.log($scope.paths); }; function addJsonPaths(theObject, path) { var paths = []; for (var property in theObject) { if (theObject.hasOwnProperty(property)) { if (theObject[property] instanceof Object) { addJsonPaths(theObject[property], path + '/' + property); } else { var finalPath = path + '/' + property; if(finalPath.indexOf($scope.nodeText) > -1) { var nodeIndex = finalPath.indexOf($scope.nodeText); $scope.paths.push(finalPath.substring(0, nodeIndex + $scope.nodeText.length)); } } } } } }]);
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('!'); $routeProvider.otherwise({redirectTo: '/view1'}); }]);*/ var clientApp = angular.module('clientApp', []); clientApp.controller('PathFinderController', ['$scope', function($scope) { //Submit the Request to get the paths for the node text. $scope.results = []; $scope.paths = []; $scope.submit = function() { var enteredNode = $scope.nodeText; var json = angular.fromJson($scope.enteredJson); addJsonPaths(json, ""); console.log($scope.paths); }; function addJsonPaths(theObject, path) { var paths = []; for (var property in theObject) { if (theObject.hasOwnProperty(property)) { if (theObject[property] instanceof Object) { addJsonPaths(theObject[property], path + '/' + property); } else { var finalPath = path + '/' + property; if(finalPath.indexOf($scope.nodeText) > -1) { var nodeIndex = finalPath.indexOf($scope.nodeText); $scope.paths.push(finalPath.substring(0, nodeIndex + $scope.nodeText.length)); } } } } } }]); ## Instruction: Clear Results for next submit ## Code After: '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('!'); $routeProvider.otherwise({redirectTo: '/view1'}); }]);*/ var clientApp = angular.module('clientApp', []); clientApp.controller('PathFinderController', ['$scope', function($scope) { //Submit the Request to get the paths for the node text. $scope.results = []; $scope.paths = []; $scope.submit = function() { $scope.paths = []; var enteredNode = $scope.nodeText; var json = angular.fromJson($scope.enteredJson); addJsonPaths(json, ""); console.log($scope.paths); }; function addJsonPaths(theObject, path) { var paths = []; for (var property in theObject) { if (theObject.hasOwnProperty(property)) { if (theObject[property] instanceof Object) { addJsonPaths(theObject[property], path + '/' + property); } else { var finalPath = path + '/' + property; if(finalPath.indexOf($scope.nodeText) > -1) { var nodeIndex = finalPath.indexOf($scope.nodeText); $scope.paths.push(finalPath.substring(0, nodeIndex + $scope.nodeText.length)); } } } } } }]);
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() { updateImageUrl(button_id, "images/"+hover_image_url); } button.onmouseout = function() { updateImageUrl(button_id, "images/"+normal_image_url); } button.onclick = click_func; } function closeWindow() { window.close(); } function winMin() { win.minimize(); } function winRestore() { win.restore(); } function winMax() { win.maximize(); } function winTitleCenter(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-left")) $(".top-titlebar-text").removeClass("top-text-left").addClass("top-text-center"); $(".top-titlebar-text").html(newtitle); } function winTitleLeft(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-center")) $(".top-titlebar-text").removeClass("top-text-center").addClass("top-text-left"); $(".top-titlebar-text").html(newtitle); }
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() { updateImageUrl(button_id, "images/"+hover_image_url); } button.onmouseout = function() { updateImageUrl(button_id, "images/"+normal_image_url); } button.onclick = click_func; } function closeWindow() { window.close(); } function winMin() { win.minimize(); $("#top-titlebar-minimize-button").trigger("mouseout"); } function winRestore() { win.restore(); } function winMax() { win.maximize(); } function winTitleCenter(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-left")) $(".top-titlebar-text").removeClass("top-text-left").addClass("top-text-center"); $(".top-titlebar-text").html(newtitle); } function winTitleLeft(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-center")) $(".top-titlebar-text").removeClass("top-text-center").addClass("top-text-left"); $(".top-titlebar-text").html(newtitle); }
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() { updateImageUrl(button_id, "images/"+hover_image_url); } button.onmouseout = function() { updateImageUrl(button_id, "images/"+normal_image_url); } button.onclick = click_func; } function closeWindow() { window.close(); } function winMin() { win.minimize(); } function winRestore() { win.restore(); } function winMax() { win.maximize(); } function winTitleCenter(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-left")) $(".top-titlebar-text").removeClass("top-text-left").addClass("top-text-center"); $(".top-titlebar-text").html(newtitle); } function winTitleLeft(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-center")) $(".top-titlebar-text").removeClass("top-text-center").addClass("top-text-left"); $(".top-titlebar-text").html(newtitle); } ## Instruction: Fix Hover Out when Clicking Minimize Button ## Code After: 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() { updateImageUrl(button_id, "images/"+hover_image_url); } button.onmouseout = function() { updateImageUrl(button_id, "images/"+normal_image_url); } button.onclick = click_func; } function closeWindow() { window.close(); } function winMin() { win.minimize(); $("#top-titlebar-minimize-button").trigger("mouseout"); } function winRestore() { win.restore(); } function winMax() { win.maximize(); } function winTitleCenter(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-left")) $(".top-titlebar-text").removeClass("top-text-left").addClass("top-text-center"); $(".top-titlebar-text").html(newtitle); } function winTitleLeft(newtitle) { if ($(".top-titlebar-text").hasClass("top-text-center")) $(".top-titlebar-text").removeClass("top-text-center").addClass("top-text-left"); $(".top-titlebar-text").html(newtitle); }
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 graphite.enabled: false influx.enabled: false jmx.enabled: false prometheus.enabled: false statsd.enabled: false newrelic.enabled: false signalfx.enabled: false wavefront.enabled: false azure.application-insights.enabled: false
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 ganglia.enabled: false graphite.enabled: false influx.enabled: false jmx.enabled: false prometheus.enabled: false statsd.enabled: false newrelic.enabled: false signalfx.enabled: false wavefront.enabled: false azure.application-insights.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.enabled: false graphite.enabled: false influx.enabled: false jmx.enabled: false prometheus.enabled: false statsd.enabled: false newrelic.enabled: false signalfx.enabled: false wavefront.enabled: false azure.application-insights.enabled: false ## Instruction: Fix spring test failing because of new azure impl ## Code After: 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 ganglia.enabled: false graphite.enabled: false influx.enabled: false jmx.enabled: false prometheus.enabled: false statsd.enabled: false newrelic.enabled: false signalfx.enabled: false wavefront.enabled: false azure.application-insights.enabled: false
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.preventDefault() if (this.props.handleQueryChange) { this.props.handleQueryChange(e.target.value) } } render () { return ( <Bar> <SearchIcon large /> <TextInput placeholder='Title, genre, actor' value={this.props.searchQuery} onChange={this.onChange} /> </Bar> ) } } const Bar = styled.div` display: flex; color: white; opacity: 0.7; margin-right: 10px; ` const SearchIcon = styled(Search)` margin-top: 7px; margin-right: 8px; `
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.bind(this) this.send = this.send.bind(this) } update (e) { e.preventDefault() this.send(e.target.value) } clear (e) { e.preventDefault() this.send('') } send (text) { if (this.props.handleQueryChange) { this.props.handleQueryChange(text) } } render () { return ( <Bar> <SearchIcon large /> <TextInput placeholder='Title, genre, actor' value={this.props.searchQuery} onChange={this.update} /> {this.renderClose()} </Bar> ) } renderClose () { return (this.props.searchQuery) ? <span><CloseButton onClick={this.clear} /></span> : null } } const Bar = styled.div` display: flex; color: white; opacity: 0.7; margin-right: 10px; ` const SearchIcon = styled(Search)` margin-top: 7px; margin-right: 8px; ` const CloseButton = styled(Close)` color: rgba(0,0,0,0.5); cursor: pointer; margin-left: -25px padding-top: 6px; `
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 (e) { e.preventDefault() if (this.props.handleQueryChange) { this.props.handleQueryChange(e.target.value) } } render () { return ( <Bar> <SearchIcon large /> <TextInput placeholder='Title, genre, actor' value={this.props.searchQuery} onChange={this.onChange} /> </Bar> ) } } const Bar = styled.div` display: flex; color: white; opacity: 0.7; margin-right: 10px; ` const SearchIcon = styled(Search)` margin-top: 7px; margin-right: 8px; ` ## Instruction: Add close button to search bar ## Code After: 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.bind(this) this.send = this.send.bind(this) } update (e) { e.preventDefault() this.send(e.target.value) } clear (e) { e.preventDefault() this.send('') } send (text) { if (this.props.handleQueryChange) { this.props.handleQueryChange(text) } } render () { return ( <Bar> <SearchIcon large /> <TextInput placeholder='Title, genre, actor' value={this.props.searchQuery} onChange={this.update} /> {this.renderClose()} </Bar> ) } renderClose () { return (this.props.searchQuery) ? <span><CloseButton onClick={this.clear} /></span> : null } } const Bar = styled.div` display: flex; color: white; opacity: 0.7; margin-right: 10px; ` const SearchIcon = styled(Search)` margin-top: 7px; margin-right: 8px; ` const CloseButton = styled(Close)` color: rgba(0,0,0,0.5); cursor: pointer; margin-left: -25px padding-top: 6px; `
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 (e ErrInvalidUnmarshalTarget) Error() string { if e.Type == nil { return "invalid unmarshal target (nil)" } if e.Type.Kind() != reflect.Ptr { return "invalid unmarshal target (non-pointer " + e.Type.String() + ")" } return "invalid unmarshal target: (nil " + e.Type.String() + ")" } // ErrUnmarshalIncongruent is the error returned when unmarshalling cannot // coerce the tokens in the stream into the variables the unmarshal is targetting, // for example if a map open token comes when an int is expected. type ErrUnmarshalIncongruent struct { Token Token Value reflect.Value } func (e ErrUnmarshalIncongruent) Error() string { return fmt.Sprintf("cannot assign %s to %s field", e.Token, e.Value.Kind()) }
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 (e ErrInvalidUnmarshalTarget) Error() string { if e.Type == nil { return "invalid unmarshal target (nil)" } if e.Type.Kind() != reflect.Ptr { return "invalid unmarshal target (non-pointer " + e.Type.String() + ")" } return "invalid unmarshal target: (nil " + e.Type.String() + ")" } // ErrUnmarshalIncongruent is the error returned when unmarshalling cannot // coerce the tokens in the stream into the variables the unmarshal is targetting, // for example if a map open token comes when an int is expected. type ErrUnmarshalIncongruent struct { Token Token Value reflect.Value } func (e ErrUnmarshalIncongruent) Error() string { return fmt.Sprintf("cannot assign %s to %s field", e.Token, e.Value.Kind()) } type ErrUnexpectedTokenType struct { Got TokenType // Token in the stream that triggered the error. Expected string // Freeform string describing valid token types. Often a summary like "array close or start of value", or "map close or key". } func (e ErrUnexpectedTokenType) Error() string { return fmt.Sprintf("unexpected %s token; expected %s", e.Got, e.Expected) }
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 <[email protected]>
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 reflect.Type } func (e ErrInvalidUnmarshalTarget) Error() string { if e.Type == nil { return "invalid unmarshal target (nil)" } if e.Type.Kind() != reflect.Ptr { return "invalid unmarshal target (non-pointer " + e.Type.String() + ")" } return "invalid unmarshal target: (nil " + e.Type.String() + ")" } // ErrUnmarshalIncongruent is the error returned when unmarshalling cannot // coerce the tokens in the stream into the variables the unmarshal is targetting, // for example if a map open token comes when an int is expected. type ErrUnmarshalIncongruent struct { Token Token Value reflect.Value } func (e ErrUnmarshalIncongruent) Error() string { return fmt.Sprintf("cannot assign %s to %s field", e.Token, e.Value.Kind()) } ## Instruction: Introduce ErrUnexpectedTokenType, which our unmarshaller machines should start returning here on out. Signed-off-by: Eric Myhre <[email protected]> ## Code After: 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 (e ErrInvalidUnmarshalTarget) Error() string { if e.Type == nil { return "invalid unmarshal target (nil)" } if e.Type.Kind() != reflect.Ptr { return "invalid unmarshal target (non-pointer " + e.Type.String() + ")" } return "invalid unmarshal target: (nil " + e.Type.String() + ")" } // ErrUnmarshalIncongruent is the error returned when unmarshalling cannot // coerce the tokens in the stream into the variables the unmarshal is targetting, // for example if a map open token comes when an int is expected. type ErrUnmarshalIncongruent struct { Token Token Value reflect.Value } func (e ErrUnmarshalIncongruent) Error() string { return fmt.Sprintf("cannot assign %s to %s field", e.Token, e.Value.Kind()) } type ErrUnexpectedTokenType struct { Got TokenType // Token in the stream that triggered the error. Expected string // Freeform string describing valid token types. Often a summary like "array close or start of value", or "map close or key". } func (e ErrUnexpectedTokenType) Error() string { return fmt.Sprintf("unexpected %s token; expected %s", e.Got, e.Expected) }
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().length === 0) { $scope.loading(true); imageModel.loadImages() .then(function() { $scope.loading(false); }); } } }; // public $scope.model = imageModel; /** * Triggered when the user presses the upload button in the navigation bar. */ $scope.upload = function(file) { if(file && file.length) { // Set the file fileModel.setFile(file[0]); // Navigate to the upload state $state.go('upload'); } }; $scope.loadMore = function() { if(!$scope._data.loading) { $scope.loading(true); imageModel.loadMore() .then(function() { $scope.loading(false); }); } }; // Initialize the controller _this.onCreate(); }]);
'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().length === 0) { $scope.loading(true); imageModel.loadImages() .finally(function() { $scope.loading(false); }); } } }; // public $scope.model = imageModel; /** * Triggered when the user presses the upload button in the navigation bar. */ $scope.upload = function(file) { if(file && file.length) { // Set the file fileModel.setFile(file[0]); // Navigate to the upload state $state.go('upload'); } }; $scope.loadMore = function() { if(!$scope._data.loading) { $scope.loading(true); imageModel.loadMore() .finally(function() { $scope.loading(false); }); } }; // Initialize the controller _this.onCreate(); }]);
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(imageModel.getImages().length === 0) { $scope.loading(true); imageModel.loadImages() .then(function() { $scope.loading(false); }); } } }; // public $scope.model = imageModel; /** * Triggered when the user presses the upload button in the navigation bar. */ $scope.upload = function(file) { if(file && file.length) { // Set the file fileModel.setFile(file[0]); // Navigate to the upload state $state.go('upload'); } }; $scope.loadMore = function() { if(!$scope._data.loading) { $scope.loading(true); imageModel.loadMore() .then(function() { $scope.loading(false); }); } }; // Initialize the controller _this.onCreate(); }]); ## Instruction: Stop the loader in the finally to make sure it allways stops ## Code After: '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().length === 0) { $scope.loading(true); imageModel.loadImages() .finally(function() { $scope.loading(false); }); } } }; // public $scope.model = imageModel; /** * Triggered when the user presses the upload button in the navigation bar. */ $scope.upload = function(file) { if(file && file.length) { // Set the file fileModel.setFile(file[0]); // Navigate to the upload state $state.go('upload'); } }; $scope.loadMore = function() { if(!$scope._data.loading) { $scope.loading(true); imageModel.loadMore() .finally(function() { $scope.loading(false); }); } }; // Initialize the controller _this.onCreate(); }]);
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.transam_module_names.each do |mod| = render :partial => "shared/#{mod}_main_nav" rescue nil = render 'shared/policy_nav' = render 'shared/reports_nav' - if current_user.has_role? :admin %ul.nav.navbar-nav.pull-right = render 'shared/admin_nav'
%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 main nav components if there are any - SystemConfig.transam_module_names.each do |mod| = render :partial => "shared/#{mod}_main_nav" rescue nil -# render the application main nav components if there are any = render :partial => 'shared/app_main_nav' rescue nil = render 'shared/policy_nav' = render 'shared/reports_nav' - if current_user.has_role? :admin %ul.nav.navbar-nav.pull-right = render 'shared/admin_nav'
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 - SystemConfig.transam_module_names.each do |mod| = render :partial => "shared/#{mod}_main_nav" rescue nil = render 'shared/policy_nav' = render 'shared/reports_nav' - if current_user.has_role? :admin %ul.nav.navbar-nav.pull-right = render 'shared/admin_nav' ## Instruction: Enable loading nav components from the app ## Code After: %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 main nav components if there are any - SystemConfig.transam_module_names.each do |mod| = render :partial => "shared/#{mod}_main_nav" rescue nil -# render the application main nav components if there are any = render :partial => 'shared/app_main_nav' rescue nil = render 'shared/policy_nav' = render 'shared/reports_nav' - if current_user.has_role? :admin %ul.nav.navbar-nav.pull-right = render 'shared/admin_nav'
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: scripts ======= A collection of my personal scripts. bin directory ------------- The files in this directory are scripts that I keep on my $PATH.