commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
2714cfcda4563057199ab6367324ad1bd60864ae
lib/tasks/setup.rake
lib/tasks/setup.rake
namespace :cartodb do namespace :db do desc <<-DESC Setup cartodb database and creates a new user from environment variables: - ENV['email']: user e-mail - ENV['password']: user password - ENV['subdomain']: user subdomain DESC task :setup => ["rake:db:create", "rake:db:migrate"] do begin ::Rails::Sequel.connection.run("CREATE USER #{CartoDB::PUBLIC_DB_USER}") raise "You should provide a valid e-mail" if ENV['email'].nil? || ENV['email'].empty? raise "You should provide a valid password" if ENV['password'].nil? || ENV['password'].empty? raise "You should provide a valid subdomain" if ENV['subdomain'].nil? || ENV['subdomain'].empty? u = User.new u.email = ENV['email'] u.password = ENV['password'] u.password_confirmation = ENV['password'] u.subdomain = ENV['subdomain'] u.username = ENV['subdomain'] u.save if u.new? raise u.errors.inspect end u.enable true u.setup_user rescue puts $! end end end end
namespace :cartodb do namespace :db do desc <<-DESC Setup cartodb database and creates a new user from environment variables: - ENV['email']: user e-mail - ENV['password']: user password - ENV['subdomain']: user subdomain DESC task :setup => ["rake:db:create", "rake:db:migrate"] do begin ::Rails::Sequel.connection.run("CREATE USER #{CartoDB::PUBLIC_DB_USER}") raise "You should provide a valid e-mail" if ENV['EMAIL'].nil? || ENV['EMAIL'].empty? raise "You should provide a valid password" if ENV['PASSWORD'].nil? || ENV['PASSWORD'].empty? raise "You should provide a valid subdomain" if ENV['SUBDOMAIN'].nil? || ENV['SUBDOMAIN'].empty? u = User.new u.email = ENV['email'] u.password = ENV['password'] u.password_confirmation = ENV['password'] u.subdomain = ENV['subdomain'] u.username = ENV['subdomain'] u.save if u.new? raise u.errors.inspect end u.enable true u.setup_user rescue puts $! end end end end
Use upcase environment variable names
Use upcase environment variable names
Ruby
bsd-3-clause
jmwenda/nationmaps,datapolitan/cartodb20,jmwenda/nationmaps,jmwenda/nationmaps,datapolitan/cartodb20,jmwenda/nationmaps,datapolitan/cartodb20,datapolitan/cartodb20
ruby
## Code Before: namespace :cartodb do namespace :db do desc <<-DESC Setup cartodb database and creates a new user from environment variables: - ENV['email']: user e-mail - ENV['password']: user password - ENV['subdomain']: user subdomain DESC task :setup => ["rake:db:create", "rake:db:migrate"] do begin ::Rails::Sequel.connection.run("CREATE USER #{CartoDB::PUBLIC_DB_USER}") raise "You should provide a valid e-mail" if ENV['email'].nil? || ENV['email'].empty? raise "You should provide a valid password" if ENV['password'].nil? || ENV['password'].empty? raise "You should provide a valid subdomain" if ENV['subdomain'].nil? || ENV['subdomain'].empty? u = User.new u.email = ENV['email'] u.password = ENV['password'] u.password_confirmation = ENV['password'] u.subdomain = ENV['subdomain'] u.username = ENV['subdomain'] u.save if u.new? raise u.errors.inspect end u.enable true u.setup_user rescue puts $! end end end end ## Instruction: Use upcase environment variable names ## Code After: namespace :cartodb do namespace :db do desc <<-DESC Setup cartodb database and creates a new user from environment variables: - ENV['email']: user e-mail - ENV['password']: user password - ENV['subdomain']: user subdomain DESC task :setup => ["rake:db:create", "rake:db:migrate"] do begin ::Rails::Sequel.connection.run("CREATE USER #{CartoDB::PUBLIC_DB_USER}") raise "You should provide a valid e-mail" if ENV['EMAIL'].nil? || ENV['EMAIL'].empty? raise "You should provide a valid password" if ENV['PASSWORD'].nil? || ENV['PASSWORD'].empty? raise "You should provide a valid subdomain" if ENV['SUBDOMAIN'].nil? || ENV['SUBDOMAIN'].empty? u = User.new u.email = ENV['email'] u.password = ENV['password'] u.password_confirmation = ENV['password'] u.subdomain = ENV['subdomain'] u.username = ENV['subdomain'] u.save if u.new? raise u.errors.inspect end u.enable true u.setup_user rescue puts $! end end end end
namespace :cartodb do namespace :db do desc <<-DESC Setup cartodb database and creates a new user from environment variables: - ENV['email']: user e-mail - ENV['password']: user password - ENV['subdomain']: user subdomain DESC task :setup => ["rake:db:create", "rake:db:migrate"] do begin ::Rails::Sequel.connection.run("CREATE USER #{CartoDB::PUBLIC_DB_USER}") - raise "You should provide a valid e-mail" if ENV['email'].nil? || ENV['email'].empty? ? ^^^^^ ^^^^^ + raise "You should provide a valid e-mail" if ENV['EMAIL'].nil? || ENV['EMAIL'].empty? ? ^^^^^ ^^^^^ - raise "You should provide a valid password" if ENV['password'].nil? || ENV['password'].empty? ? ^^^^^^^^ ^^^^^^^^ + raise "You should provide a valid password" if ENV['PASSWORD'].nil? || ENV['PASSWORD'].empty? ? ^^^^^^^^ ^^^^^^^^ - raise "You should provide a valid subdomain" if ENV['subdomain'].nil? || ENV['subdomain'].empty? ? ^^^^^^^^^ ^^^^^^^^^ + raise "You should provide a valid subdomain" if ENV['SUBDOMAIN'].nil? || ENV['SUBDOMAIN'].empty? ? ^^^^^^^^^ ^^^^^^^^^ u = User.new u.email = ENV['email'] u.password = ENV['password'] u.password_confirmation = ENV['password'] u.subdomain = ENV['subdomain'] u.username = ENV['subdomain'] u.save if u.new? raise u.errors.inspect end u.enable true u.setup_user rescue puts $! end end end end
6
0.1875
3
3
b72c7dedc1200d95310fb07bfeb6de8cc1663ffb
src/wirecloudcommons/utils/transaction.py
src/wirecloudcommons/utils/transaction.py
from django.db.transaction import is_dirty, leave_transaction_management, rollback, commit, enter_transaction_management, managed from django.db import DEFAULT_DB_ALIAS from django.http import HttpResponse def commit_on_http_success(func, using=None): """ This decorator activates db commit on HTTP success response. This way, if the view function return a success reponse, a commit is made; if the viewfunc produces an exception or return an error response, a rollback is made. """ if using is None: using = DEFAULT_DB_ALIAS def wrapped_func(*args, **kwargs): enter_transaction_management(using=using) managed(True, using=using) try: res = func(*args, **kwargs) except: if is_dirty(using=using): rollback(using=using) raise else: if is_dirty(using=using): if not isinstance(res, HttpResponse) or res.status_code < 200 or res.status_code >= 400: rollback(using=using) else: try: commit(using=using) except: rollback(using=using) raise leave_transaction_management(using=using) return res return wrapped_func
from django.db.transaction import is_dirty, leave_transaction_management, rollback, commit, enter_transaction_management, managed from django.db import DEFAULT_DB_ALIAS from django.http import HttpResponse def commit_on_http_success(func, using=None): """ This decorator activates db commit on HTTP success response. This way, if the view function return a success reponse, a commit is made; if the viewfunc produces an exception or return an error response, a rollback is made. """ if using is None: using = DEFAULT_DB_ALIAS def wrapped_func(*args, **kwargs): enter_transaction_management(using=using) managed(True, using=using) try: res = func(*args, **kwargs) except: if is_dirty(using=using): rollback(using=using) raise else: if is_dirty(using=using): if not isinstance(res, HttpResponse) or res.status_code < 200 or res.status_code >= 400: rollback(using=using) else: try: commit(using=using) except: rollback(using=using) raise finally: leave_transaction_management(using=using) return res return wrapped_func
Fix commit_on_http_success when an exception is raised
Fix commit_on_http_success when an exception is raised
Python
agpl-3.0
jpajuelo/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud
python
## Code Before: from django.db.transaction import is_dirty, leave_transaction_management, rollback, commit, enter_transaction_management, managed from django.db import DEFAULT_DB_ALIAS from django.http import HttpResponse def commit_on_http_success(func, using=None): """ This decorator activates db commit on HTTP success response. This way, if the view function return a success reponse, a commit is made; if the viewfunc produces an exception or return an error response, a rollback is made. """ if using is None: using = DEFAULT_DB_ALIAS def wrapped_func(*args, **kwargs): enter_transaction_management(using=using) managed(True, using=using) try: res = func(*args, **kwargs) except: if is_dirty(using=using): rollback(using=using) raise else: if is_dirty(using=using): if not isinstance(res, HttpResponse) or res.status_code < 200 or res.status_code >= 400: rollback(using=using) else: try: commit(using=using) except: rollback(using=using) raise leave_transaction_management(using=using) return res return wrapped_func ## Instruction: Fix commit_on_http_success when an exception is raised ## Code After: from django.db.transaction import is_dirty, leave_transaction_management, rollback, commit, enter_transaction_management, managed from django.db import DEFAULT_DB_ALIAS from django.http import HttpResponse def commit_on_http_success(func, using=None): """ This decorator activates db commit on HTTP success response. This way, if the view function return a success reponse, a commit is made; if the viewfunc produces an exception or return an error response, a rollback is made. """ if using is None: using = DEFAULT_DB_ALIAS def wrapped_func(*args, **kwargs): enter_transaction_management(using=using) managed(True, using=using) try: res = func(*args, **kwargs) except: if is_dirty(using=using): rollback(using=using) raise else: if is_dirty(using=using): if not isinstance(res, HttpResponse) or res.status_code < 200 or res.status_code >= 400: rollback(using=using) else: try: commit(using=using) except: rollback(using=using) raise finally: leave_transaction_management(using=using) return res return wrapped_func
from django.db.transaction import is_dirty, leave_transaction_management, rollback, commit, enter_transaction_management, managed from django.db import DEFAULT_DB_ALIAS from django.http import HttpResponse def commit_on_http_success(func, using=None): """ This decorator activates db commit on HTTP success response. This way, if the view function return a success reponse, a commit is made; if the viewfunc produces an exception or return an error response, a rollback is made. """ if using is None: using = DEFAULT_DB_ALIAS def wrapped_func(*args, **kwargs): enter_transaction_management(using=using) managed(True, using=using) try: res = func(*args, **kwargs) except: if is_dirty(using=using): rollback(using=using) raise else: if is_dirty(using=using): if not isinstance(res, HttpResponse) or res.status_code < 200 or res.status_code >= 400: rollback(using=using) else: try: commit(using=using) except: rollback(using=using) raise + finally: + leave_transaction_management(using=using) - leave_transaction_management(using=using) return res return wrapped_func
3
0.075
2
1
479bfc11f3c7d6cf99ba95ce51eefb7aff4cd2bf
bin/compile-docs.js
bin/compile-docs.js
var aglio = require('aglio') var winston = require('winston') var options = { themeVariables: 'flatly' } aglio.renderFile('src/index.apib', 'docs.html', options, function (err, warnings) { if (err) return winston.error(err) if (warnings) winston.warn(warnings) })
var aglio, options, path, winston aglio = require( 'aglio' ) path = require( 'path' ) winston = require( 'winston' ) destination = path.join( __dirname + '/../views/docs.hbs' ) options = { themeVariables: 'flatly' } source = path.join( __dirname + '/../docs/src/index.apib' ) console.log( source ) console.log( destination ) aglio.renderFile( source, destination, options, function ( error, warnings ) { if ( error ) { return winston.error( error ) } if ( warnings ) { winston.warn( warnings ) } })
Make the doc gen script a bit more robust
Make the doc gen script a bit more robust
JavaScript
bsd-3-clause
FuelRats/api.fuelrats.com,FuelRats/api.fuelrats.com,FuelRats/api.fuelrats.com
javascript
## Code Before: var aglio = require('aglio') var winston = require('winston') var options = { themeVariables: 'flatly' } aglio.renderFile('src/index.apib', 'docs.html', options, function (err, warnings) { if (err) return winston.error(err) if (warnings) winston.warn(warnings) }) ## Instruction: Make the doc gen script a bit more robust ## Code After: var aglio, options, path, winston aglio = require( 'aglio' ) path = require( 'path' ) winston = require( 'winston' ) destination = path.join( __dirname + '/../views/docs.hbs' ) options = { themeVariables: 'flatly' } source = path.join( __dirname + '/../docs/src/index.apib' ) console.log( source ) console.log( destination ) aglio.renderFile( source, destination, options, function ( error, warnings ) { if ( error ) { return winston.error( error ) } if ( warnings ) { winston.warn( warnings ) } })
+ var aglio, options, path, winston - var aglio = require('aglio') - var winston = require('winston') + aglio = require( 'aglio' ) + path = require( 'path' ) + winston = require( 'winston' ) + + destination = path.join( __dirname + '/../views/docs.hbs' ) - var options = { ? ---- + options = { themeVariables: 'flatly' } + source = path.join( __dirname + '/../docs/src/index.apib' ) + console.log( source ) + console.log( destination ) + - aglio.renderFile('src/index.apib', 'docs.html', options, function (err, warnings) { ? ^ ^ ---- ^ ------ ^^^^^^^^ + aglio.renderFile( source, destination, options, function ( error, warnings ) { ? ^ ++ ^^^^^^^ ^ ^ + ++ + + if ( error ) { - if (err) return winston.error(err) ? --------- + return winston.error( error ) ? + +++ + } + + if ( warnings ) { - if (warnings) winston.warn(warnings) ? -------------- + winston.warn( warnings ) ? + + + } })
25
2.272727
19
6
57fefba0eb45a21e7fb57bc2400a1cff22c7b72b
addon/utils/has-block.js
addon/utils/has-block.js
import Ember from 'ember'; import emberVersionInfo from './ember-version-info'; const { major, minor, isGlimmer } = emberVersionInfo(); let hasBlockSymbol; if (major > 3 || (major == 3 && minor >= 1)) { // Ember-glimmer moved to TypeScript since v3.1 // Do nothing since the symbol is not exported } else if (isGlimmer) { hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ 'HAS_BLOCK' ]; } else { hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ 'HAS_BLOCK' ]; } // NOTE: I really don't know how to test this export default function hasBlock(emberComponent) { // Since Glimmer moved to TypeScript, we can't get the symbol. // This is a terrible but working way to get the value. if (!hasBlockSymbol) { const regex = /HAS_BLOCK/; hasBlockSymbol = Object.getOwnPropertyNames(emberComponent).find(key => regex.test(key) ); } return Ember.get(emberComponent, hasBlockSymbol); }
import Ember from 'ember'; import emberVersionInfo from './ember-version-info'; const { major, minor, isGlimmer } = emberVersionInfo(); let hasBlockSymbol; try { if (major > 3 || (major == 3 && minor >= 1)) { // Ember-glimmer moved to TypeScript since v3.1 // Do nothing since the symbol is not exported } else if (isGlimmer) { hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ 'HAS_BLOCK' ]; } else { hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ 'HAS_BLOCK' ]; } } catch (e) { // Fallback to use runtime check } // NOTE: I really don't know how to test this export default function hasBlock(emberComponent) { // Since Glimmer moved to TypeScript, we can't get the symbol. // This is a terrible but working way to get the value. if (!hasBlockSymbol) { const regex = /HAS_BLOCK/; hasBlockSymbol = Object.getOwnPropertyNames(emberComponent).find(key => regex.test(key) ); } return Ember.get(emberComponent, hasBlockSymbol); }
Add try block to allow fallback to runtime check for HAS_BLOCK symbol
Add try block to allow fallback to runtime check for HAS_BLOCK symbol
JavaScript
mit
pswai/ember-cli-react,pswai/ember-cli-react
javascript
## Code Before: import Ember from 'ember'; import emberVersionInfo from './ember-version-info'; const { major, minor, isGlimmer } = emberVersionInfo(); let hasBlockSymbol; if (major > 3 || (major == 3 && minor >= 1)) { // Ember-glimmer moved to TypeScript since v3.1 // Do nothing since the symbol is not exported } else if (isGlimmer) { hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ 'HAS_BLOCK' ]; } else { hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ 'HAS_BLOCK' ]; } // NOTE: I really don't know how to test this export default function hasBlock(emberComponent) { // Since Glimmer moved to TypeScript, we can't get the symbol. // This is a terrible but working way to get the value. if (!hasBlockSymbol) { const regex = /HAS_BLOCK/; hasBlockSymbol = Object.getOwnPropertyNames(emberComponent).find(key => regex.test(key) ); } return Ember.get(emberComponent, hasBlockSymbol); } ## Instruction: Add try block to allow fallback to runtime check for HAS_BLOCK symbol ## Code After: import Ember from 'ember'; import emberVersionInfo from './ember-version-info'; const { major, minor, isGlimmer } = emberVersionInfo(); let hasBlockSymbol; try { if (major > 3 || (major == 3 && minor >= 1)) { // Ember-glimmer moved to TypeScript since v3.1 // Do nothing since the symbol is not exported } else if (isGlimmer) { hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ 'HAS_BLOCK' ]; } else { hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ 'HAS_BLOCK' ]; } } catch (e) { // Fallback to use runtime check } // NOTE: I really don't know how to test this export default function hasBlock(emberComponent) { // Since Glimmer moved to TypeScript, we can't get the symbol. // This is a terrible but working way to get the value. if (!hasBlockSymbol) { const regex = /HAS_BLOCK/; hasBlockSymbol = Object.getOwnPropertyNames(emberComponent).find(key => regex.test(key) ); } return Ember.get(emberComponent, hasBlockSymbol); }
import Ember from 'ember'; import emberVersionInfo from './ember-version-info'; const { major, minor, isGlimmer } = emberVersionInfo(); let hasBlockSymbol; + try { - if (major > 3 || (major == 3 && minor >= 1)) { + if (major > 3 || (major == 3 && minor >= 1)) { ? ++ - // Ember-glimmer moved to TypeScript since v3.1 + // Ember-glimmer moved to TypeScript since v3.1 ? ++ - // Do nothing since the symbol is not exported + // Do nothing since the symbol is not exported ? ++ - } else if (isGlimmer) { + } else if (isGlimmer) { ? ++ - hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ + hasBlockSymbol = Ember.__loader.require('ember-glimmer/component')[ ? ++ - 'HAS_BLOCK' + 'HAS_BLOCK' ? ++ - ]; + ]; ? ++ - } else { + } else { ? ++ - hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ + hasBlockSymbol = Ember.__loader.require('ember-htmlbars/component')[ ? ++ - 'HAS_BLOCK' + 'HAS_BLOCK' ? ++ - ]; + ]; ? ++ + } + } catch (e) { + // Fallback to use runtime check } // NOTE: I really don't know how to test this export default function hasBlock(emberComponent) { // Since Glimmer moved to TypeScript, we can't get the symbol. // This is a terrible but working way to get the value. if (!hasBlockSymbol) { const regex = /HAS_BLOCK/; hasBlockSymbol = Object.getOwnPropertyNames(emberComponent).find(key => regex.test(key) ); } return Ember.get(emberComponent, hasBlockSymbol); }
26
0.787879
15
11
6cbe16f4b8cc550a8afaa347d01aeb67f20f4e08
app/helpers/georgia/forms_helper.rb
app/helpers/georgia/forms_helper.rb
module Georgia module FormsHelper def sortable(column, title=nil) title ||= column.humanize direction = (column.to_s == params[:o] && params[:dir] == "asc" ? "desc" : "asc") icon = direction == "asc" ? icon_tag('icon-chevron-up') : icon_tag('icon-chevron-down') "#{title} #{link_to(icon, params.merge({o: column, dir: direction}))}".html_safe end def render_template template begin render "georgia/pages/templates/#{template}", template: template rescue render "georgia/pages/templates/custom", template: template end end def parent_page_collection Georgia::Page.includes(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} end def facets_inputs facets=[] facets.map do |f| if params[f] and !params[f].empty? params[f].map do |v| hidden_field_tag(f, v, name: "#{f}[]") end end end.flatten.join().html_safe end end end
module Georgia module FormsHelper def sortable(column, title=nil) title ||= column.humanize direction = (column.to_s == params[:o] && params[:dir] == "asc" ? "desc" : "asc") icon = direction == "asc" ? icon_tag('icon-chevron-up') : icon_tag('icon-chevron-down') "#{title} #{link_to(icon, params.merge({o: column, dir: direction}))}".html_safe end def render_template template begin render "georgia/pages/templates/#{template}", template: template rescue render "georgia/pages/templates/custom", template: template end end def parent_page_collection Georgia::Page.not_self(@page).joins(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} end def facets_inputs facets=[] facets.map do |f| if params[f] and !params[f].empty? params[f].map do |v| hidden_field_tag(f, v, name: "#{f}[]") end end end.flatten.join().html_safe end end end
Fix parent_page_collection when no title
Fix parent_page_collection when no title
Ruby
mit
georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia
ruby
## Code Before: module Georgia module FormsHelper def sortable(column, title=nil) title ||= column.humanize direction = (column.to_s == params[:o] && params[:dir] == "asc" ? "desc" : "asc") icon = direction == "asc" ? icon_tag('icon-chevron-up') : icon_tag('icon-chevron-down') "#{title} #{link_to(icon, params.merge({o: column, dir: direction}))}".html_safe end def render_template template begin render "georgia/pages/templates/#{template}", template: template rescue render "georgia/pages/templates/custom", template: template end end def parent_page_collection Georgia::Page.includes(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} end def facets_inputs facets=[] facets.map do |f| if params[f] and !params[f].empty? params[f].map do |v| hidden_field_tag(f, v, name: "#{f}[]") end end end.flatten.join().html_safe end end end ## Instruction: Fix parent_page_collection when no title ## Code After: module Georgia module FormsHelper def sortable(column, title=nil) title ||= column.humanize direction = (column.to_s == params[:o] && params[:dir] == "asc" ? "desc" : "asc") icon = direction == "asc" ? icon_tag('icon-chevron-up') : icon_tag('icon-chevron-down') "#{title} #{link_to(icon, params.merge({o: column, dir: direction}))}".html_safe end def render_template template begin render "georgia/pages/templates/#{template}", template: template rescue render "georgia/pages/templates/custom", template: template end end def parent_page_collection Georgia::Page.not_self(@page).joins(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} end def facets_inputs facets=[] facets.map do |f| if params[f] and !params[f].empty? params[f].map do |v| hidden_field_tag(f, v, name: "#{f}[]") end end end.flatten.join().html_safe end end end
module Georgia module FormsHelper def sortable(column, title=nil) title ||= column.humanize direction = (column.to_s == params[:o] && params[:dir] == "asc" ? "desc" : "asc") icon = direction == "asc" ? icon_tag('icon-chevron-up') : icon_tag('icon-chevron-down') "#{title} #{link_to(icon, params.merge({o: column, dir: direction}))}".html_safe end def render_template template begin render "georgia/pages/templates/#{template}", template: template rescue render "georgia/pages/templates/custom", template: template end end def parent_page_collection - Georgia::Page.includes(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} ? ----- + Georgia::Page.not_self(@page).joins(current_revision: :contents).sort_by(&:title).map{|p| [p.title, p.id]} ? ++++++++++++++++++ end def facets_inputs facets=[] facets.map do |f| if params[f] and !params[f].empty? params[f].map do |v| hidden_field_tag(f, v, name: "#{f}[]") end end end.flatten.join().html_safe end end end
2
0.058824
1
1
c1e3745494adccbe7a5d835314b5a3338b516fd3
hldisplay.css
hldisplay.css
body { font-family: arial, sans-serif; } /* * Statblock section. */ .statblock { font-family: "gandhi", arial, sans-serif; max-width: 1024px; } /* * Section headers in statblock. */ hr + b:nth-child(odd) { color: white; background-color: black; display: block; margin-bottom: -1em; } /* * Hide seperators. */ hr { visibility: hidden; display: none; } /* * Copyright footer. */ p:last-child { font-size: 75%; }
body { font-family: arial, sans-serif; } /* * Statblock section. */ .statblock { font-family: "gandhi", arial, sans-serif; max-width: 1024px; } /* * Section headers in statblock. */ hr:nth-of-type(2n+1) + b { color: white; background-color: black; display: block; margin-bottom: -1em; } /* * Hide seperators. */ hr { visibility: hidden; display: none; } /* * Copyright footer. */ p:last-child { font-size: 75%; }
Fix display of section headers
Fix display of section headers
CSS
mit
mdreier/hero-labs-display
css
## Code Before: body { font-family: arial, sans-serif; } /* * Statblock section. */ .statblock { font-family: "gandhi", arial, sans-serif; max-width: 1024px; } /* * Section headers in statblock. */ hr + b:nth-child(odd) { color: white; background-color: black; display: block; margin-bottom: -1em; } /* * Hide seperators. */ hr { visibility: hidden; display: none; } /* * Copyright footer. */ p:last-child { font-size: 75%; } ## Instruction: Fix display of section headers ## Code After: body { font-family: arial, sans-serif; } /* * Statblock section. */ .statblock { font-family: "gandhi", arial, sans-serif; max-width: 1024px; } /* * Section headers in statblock. */ hr:nth-of-type(2n+1) + b { color: white; background-color: black; display: block; margin-bottom: -1em; } /* * Hide seperators. */ hr { visibility: hidden; display: none; } /* * Copyright footer. */ p:last-child { font-size: 75%; }
body { font-family: arial, sans-serif; } /* * Statblock section. */ .statblock { font-family: "gandhi", arial, sans-serif; max-width: 1024px; } /* * Section headers in statblock. */ - hr + b:nth-child(odd) { + hr:nth-of-type(2n+1) + b { color: white; background-color: black; display: block; margin-bottom: -1em; } /* * Hide seperators. */ hr { visibility: hidden; display: none; } /* * Copyright footer. */ p:last-child { font-size: 75%; }
2
0.054054
1
1
2272efeddf5f6ef54c2bf4eb37de62eb4042aaf5
bootstrap.sh
bootstrap.sh
set -m # start clam service itself and the updater in background as daemon freshclam -d & clamd & # recognize PIDs pidlist=`jobs -p` # initialize latest result var latest_exit=0 # define shutdown helper function shutdown() { trap "" SIGINT for single in $pidlist; do if ! kill -0 $pidlist 2>/dev/null; then wait $pidlist latest_exit=$? fi done kill $pidlist 2>/dev/null } # run shutdown trap shutdown SIGINT wait # return received result exit $latest_exit
set -m # start clam service itself and the updater in background as daemon freshclam -d & clamd & # recognize PIDs pidlist=`jobs -p` # initialize latest result var latest_exit=0 # define shutdown helper function shutdown() { trap "" SIGINT for single in $pidlist; do if ! kill -0 $single 2>/dev/null; then wait $single latest_exit=$? fi done kill $pidlist 2>/dev/null } # run shutdown trap shutdown SIGINT wait # return received result exit $latest_exit
Use correct variable in for loop
Use correct variable in for loop
Shell
mit
mko-x/docker-clamav
shell
## Code Before: set -m # start clam service itself and the updater in background as daemon freshclam -d & clamd & # recognize PIDs pidlist=`jobs -p` # initialize latest result var latest_exit=0 # define shutdown helper function shutdown() { trap "" SIGINT for single in $pidlist; do if ! kill -0 $pidlist 2>/dev/null; then wait $pidlist latest_exit=$? fi done kill $pidlist 2>/dev/null } # run shutdown trap shutdown SIGINT wait # return received result exit $latest_exit ## Instruction: Use correct variable in for loop ## Code After: set -m # start clam service itself and the updater in background as daemon freshclam -d & clamd & # recognize PIDs pidlist=`jobs -p` # initialize latest result var latest_exit=0 # define shutdown helper function shutdown() { trap "" SIGINT for single in $pidlist; do if ! kill -0 $single 2>/dev/null; then wait $single latest_exit=$? fi done kill $pidlist 2>/dev/null } # run shutdown trap shutdown SIGINT wait # return received result exit $latest_exit
set -m # start clam service itself and the updater in background as daemon freshclam -d & clamd & # recognize PIDs pidlist=`jobs -p` # initialize latest result var latest_exit=0 # define shutdown helper function shutdown() { trap "" SIGINT for single in $pidlist; do - if ! kill -0 $pidlist 2>/dev/null; then ? ^ ^ ^^^ + if ! kill -0 $single 2>/dev/null; then ? ^ ^^ ^ - wait $pidlist ? ^ ^ ^^^ + wait $single ? ^ ^^ ^ latest_exit=$? fi done kill $pidlist 2>/dev/null } # run shutdown trap shutdown SIGINT wait # return received result exit $latest_exit
4
0.125
2
2
38733fd891f6d3022a5c0bd7aef98c4ee7ad5b55
packages/ember-engines/lib/utils/deeply-non-duplicated-addon.js
packages/ember-engines/lib/utils/deeply-non-duplicated-addon.js
'use strict'; /** * Deduplicate one addon's children addons recursively from hostAddons. * * @private * @param {Object} hostAddons * @param {EmberAddon} dedupedAddon * @param {String} treeName */ module.exports = function deeplyNonDuplicatedAddon(hostAddons, dedupedAddon, treeName) { if (dedupedAddon.addons.length === 0) { return; } dedupedAddon._orginalAddons = dedupedAddon.addons; dedupedAddon.addons = dedupedAddon.addons.filter(addon => { // nested lazy engine will have it's own deeplyNonDuplicatedAddon, just keep it here if (addon.lazyLoading && addon.lazyLoading.enabled) { return true; } if (addon.addons.length > 0) { addon._orginalAddons = addon.addons; deeplyNonDuplicatedAddon(hostAddons, addon, treeName); } let hostAddon = hostAddons[addon.name]; if (hostAddon && hostAddon.cacheKeyForTree) { let innerCacheKey = addon.cacheKeyForTree(treeName); let hostAddonCacheKey = hostAddon.cacheKeyForTree(treeName); if ( innerCacheKey != null && innerCacheKey === hostAddonCacheKey ) { // the addon specifies cache key and it is the same as host instance of the addon, skip the tree return false; } } return true; }); }
'use strict'; // Array of addon names that should not be deduped. const ADDONS_TO_EXCLUDE_FROM_DEDUPE = [ 'ember-cli-babel', ]; /** * Deduplicate one addon's children addons recursively from hostAddons. * * @private * @param {Object} hostAddons * @param {EmberAddon} dedupedAddon * @param {String} treeName */ module.exports = function deeplyNonDuplicatedAddon(hostAddons, dedupedAddon, treeName) { if (dedupedAddon.addons.length === 0) { return; } dedupedAddon._orginalAddons = dedupedAddon.addons; dedupedAddon.addons = dedupedAddon.addons.filter(addon => { // nested lazy engine will have it's own deeplyNonDuplicatedAddon, just keep it here if (addon.lazyLoading && addon.lazyLoading.enabled) { return true; } if (ADDONS_TO_EXCLUDE_FROM_DEDUPE.includes(addon.name)) { return true; } if (addon.addons.length > 0) { addon._orginalAddons = addon.addons; deeplyNonDuplicatedAddon(hostAddons, addon, treeName); } let hostAddon = hostAddons[addon.name]; if (hostAddon && hostAddon.cacheKeyForTree) { let innerCacheKey = addon.cacheKeyForTree(treeName); let hostAddonCacheKey = hostAddon.cacheKeyForTree(treeName); if ( innerCacheKey != null && innerCacheKey === hostAddonCacheKey ) { // the addon specifies cache key and it is the same as host instance of the addon, skip the tree return false; } } return true; }); }
Add exclude list to addon dedupe logic
Add exclude list to addon dedupe logic
JavaScript
mit
ember-engines/ember-engines,ember-engines/ember-engines
javascript
## Code Before: 'use strict'; /** * Deduplicate one addon's children addons recursively from hostAddons. * * @private * @param {Object} hostAddons * @param {EmberAddon} dedupedAddon * @param {String} treeName */ module.exports = function deeplyNonDuplicatedAddon(hostAddons, dedupedAddon, treeName) { if (dedupedAddon.addons.length === 0) { return; } dedupedAddon._orginalAddons = dedupedAddon.addons; dedupedAddon.addons = dedupedAddon.addons.filter(addon => { // nested lazy engine will have it's own deeplyNonDuplicatedAddon, just keep it here if (addon.lazyLoading && addon.lazyLoading.enabled) { return true; } if (addon.addons.length > 0) { addon._orginalAddons = addon.addons; deeplyNonDuplicatedAddon(hostAddons, addon, treeName); } let hostAddon = hostAddons[addon.name]; if (hostAddon && hostAddon.cacheKeyForTree) { let innerCacheKey = addon.cacheKeyForTree(treeName); let hostAddonCacheKey = hostAddon.cacheKeyForTree(treeName); if ( innerCacheKey != null && innerCacheKey === hostAddonCacheKey ) { // the addon specifies cache key and it is the same as host instance of the addon, skip the tree return false; } } return true; }); } ## Instruction: Add exclude list to addon dedupe logic ## Code After: 'use strict'; // Array of addon names that should not be deduped. const ADDONS_TO_EXCLUDE_FROM_DEDUPE = [ 'ember-cli-babel', ]; /** * Deduplicate one addon's children addons recursively from hostAddons. * * @private * @param {Object} hostAddons * @param {EmberAddon} dedupedAddon * @param {String} treeName */ module.exports = function deeplyNonDuplicatedAddon(hostAddons, dedupedAddon, treeName) { if (dedupedAddon.addons.length === 0) { return; } dedupedAddon._orginalAddons = dedupedAddon.addons; dedupedAddon.addons = dedupedAddon.addons.filter(addon => { // nested lazy engine will have it's own deeplyNonDuplicatedAddon, just keep it here if (addon.lazyLoading && addon.lazyLoading.enabled) { return true; } if (ADDONS_TO_EXCLUDE_FROM_DEDUPE.includes(addon.name)) { return true; } if (addon.addons.length > 0) { addon._orginalAddons = addon.addons; deeplyNonDuplicatedAddon(hostAddons, addon, treeName); } let hostAddon = hostAddons[addon.name]; if (hostAddon && hostAddon.cacheKeyForTree) { let innerCacheKey = addon.cacheKeyForTree(treeName); let hostAddonCacheKey = hostAddon.cacheKeyForTree(treeName); if ( innerCacheKey != null && innerCacheKey === hostAddonCacheKey ) { // the addon specifies cache key and it is the same as host instance of the addon, skip the tree return false; } } return true; }); }
'use strict'; + + // Array of addon names that should not be deduped. + const ADDONS_TO_EXCLUDE_FROM_DEDUPE = [ + 'ember-cli-babel', + ]; /** * Deduplicate one addon's children addons recursively from hostAddons. * * @private * @param {Object} hostAddons * @param {EmberAddon} dedupedAddon * @param {String} treeName */ module.exports = function deeplyNonDuplicatedAddon(hostAddons, dedupedAddon, treeName) { if (dedupedAddon.addons.length === 0) { return; } dedupedAddon._orginalAddons = dedupedAddon.addons; dedupedAddon.addons = dedupedAddon.addons.filter(addon => { // nested lazy engine will have it's own deeplyNonDuplicatedAddon, just keep it here if (addon.lazyLoading && addon.lazyLoading.enabled) { return true; } + if (ADDONS_TO_EXCLUDE_FROM_DEDUPE.includes(addon.name)) { + return true; + } + if (addon.addons.length > 0) { addon._orginalAddons = addon.addons; deeplyNonDuplicatedAddon(hostAddons, addon, treeName); } let hostAddon = hostAddons[addon.name]; if (hostAddon && hostAddon.cacheKeyForTree) { let innerCacheKey = addon.cacheKeyForTree(treeName); let hostAddonCacheKey = hostAddon.cacheKeyForTree(treeName); if ( innerCacheKey != null && innerCacheKey === hostAddonCacheKey ) { // the addon specifies cache key and it is the same as host instance of the addon, skip the tree return false; } } return true; }); }
9
0.2
9
0
5a7f7f9a5e4ea856d6348b8d897a76d94c2a2451
app/account/views/create-comment.js
app/account/views/create-comment.js
module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [data-action=cancel]': 'onCancel', 'focus textarea.create-comment-input': 'toggleActions' }, context: function() { return { creator: this.options.user } }, initialize: function() { this.prepareModel(); }, toggleActions: function() { this.$el.toggleClass('is-open'); this.getElement('commentInput').css({ height: '35px' }); }, prepareModel: function() { this.setModel(require('core/models/comment')); this.model.set('card', this.options.card); return this; }, onRender: function() { this.getElement('commentInput').autosize(); }, onCancel: function() { this.reset(); this.toggleActions(); }, onValidationSuccess: function() { this.broadcast('comment:created', this.model); }, onSubmit: function() { this.reset(); this.toggleActions(); this.prepareModel(); } });
module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [data-action=cancel]': 'onCancel', 'focus textarea.create-comment-input': 'toggleActions' }, context: function() { return { creator: this.options.user } }, initialize: function() { this.prepareModel(); }, toggleActions: function() { this.$el.toggleClass('is-open'); this.getElement('commentInput').css({ height: '35px' }); }, prepareModel: function() { this.setModel(require('core/models/comment')); this.model.set('card', this.options.card); return this; }, onRender: function() { this.getElement('commentInput').autosize(); }, onCancel: function() { this.toggleActions(); this.reset(); }, onValidationSuccess: function() { this.broadcast('comment:created', this.model); }, onSubmit: function() { this.toggleActions(); this.prepareModel(); this.reset(); } });
Clear create comment form after posting.
Clear create comment form after posting.
JavaScript
agpl-3.0
GetBlimp/boards-web,jessamynsmith/boards-web,jessamynsmith/boards-web
javascript
## Code Before: module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [data-action=cancel]': 'onCancel', 'focus textarea.create-comment-input': 'toggleActions' }, context: function() { return { creator: this.options.user } }, initialize: function() { this.prepareModel(); }, toggleActions: function() { this.$el.toggleClass('is-open'); this.getElement('commentInput').css({ height: '35px' }); }, prepareModel: function() { this.setModel(require('core/models/comment')); this.model.set('card', this.options.card); return this; }, onRender: function() { this.getElement('commentInput').autosize(); }, onCancel: function() { this.reset(); this.toggleActions(); }, onValidationSuccess: function() { this.broadcast('comment:created', this.model); }, onSubmit: function() { this.reset(); this.toggleActions(); this.prepareModel(); } }); ## Instruction: Clear create comment form after posting. ## Code After: module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [data-action=cancel]': 'onCancel', 'focus textarea.create-comment-input': 'toggleActions' }, context: function() { return { creator: this.options.user } }, initialize: function() { this.prepareModel(); }, toggleActions: function() { this.$el.toggleClass('is-open'); this.getElement('commentInput').css({ height: '35px' }); }, prepareModel: function() { this.setModel(require('core/models/comment')); this.model.set('card', this.options.card); return this; }, onRender: function() { this.getElement('commentInput').autosize(); }, onCancel: function() { this.toggleActions(); this.reset(); }, onValidationSuccess: function() { this.broadcast('comment:created', this.model); }, onSubmit: function() { this.toggleActions(); this.prepareModel(); this.reset(); } });
module.exports = Zeppelin.FormView.extend({ className: 'create-comment', formSelector: 'form.create-comment-form', template: require('account/templates/create-comment'), model: require('core/models/comment'), elements: { 'commentInput': 'textarea.create-comment-input' }, events: { 'click [data-action=cancel]': 'onCancel', 'focus textarea.create-comment-input': 'toggleActions' }, context: function() { return { creator: this.options.user } }, initialize: function() { this.prepareModel(); }, toggleActions: function() { this.$el.toggleClass('is-open'); this.getElement('commentInput').css({ height: '35px' }); }, prepareModel: function() { this.setModel(require('core/models/comment')); this.model.set('card', this.options.card); return this; }, onRender: function() { this.getElement('commentInput').autosize(); }, onCancel: function() { + this.toggleActions(); this.reset(); - this.toggleActions(); }, onValidationSuccess: function() { this.broadcast('comment:created', this.model); }, onSubmit: function() { - this.reset(); this.toggleActions(); this.prepareModel(); + this.reset(); } });
4
0.065574
2
2
96de597b3c9491bb257526cb7ed817238c88916a
string_hash.h
string_hash.h
/** * Efficient string hash function. */ static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
/** * Efficient string hash function. */ __attribute__((unused)) static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ __attribute__((unused)) static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
Mark string functions unused, in case the header is included in files that only use one of them.
Mark string functions unused, in case the header is included in files that only use one of them.
C
mit
darlinghq/darling-libobjc2,davidchisnall/libobjc2,ngrewe/libobjc2,crystax/android-vendor-libobjc2,gnustep/libobjc2,davidchisnall/libobjc2,gnustep/libobjc2,crystax/android-vendor-libobjc2,darlinghq/darling-libobjc2,ngrewe/libobjc2
c
## Code Before: /** * Efficient string hash function. */ static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; } ## Instruction: Mark string functions unused, in case the header is included in files that only use one of them. ## Code After: /** * Efficient string hash function. */ __attribute__((unused)) static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ __attribute__((unused)) static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
/** * Efficient string hash function. */ + __attribute__((unused)) static uint32_t string_hash(const char *str) { uint32_t hash = 0; int32_t c; while ((c = *str++)) { hash = c + (hash << 6) + (hash << 16) - hash; } return hash; } /** * Test two strings for equality. */ + __attribute__((unused)) static int string_compare(const char *str1, const char *str2) { if (str1 == str2) { return 1; } if (str2 == NULL) { return 0; } return strcmp(str1, str2) == 0; }
2
0.066667
2
0
31105952b1486c4617be1efbf156400cf5e958c3
bower.json
bower.json
{ "name": "railsblocks-theme", "version": "0.0.1", "homepage": "https://github.com/railsblocks/railsblocks-theme", "authors": [ "Celso Fernandes <fernandes@zertico.com>" ], "description": "theme for railsblocks", "moduleType": [ "es6" ], "keywords": [ "rails", "blocks", "theme", "bootstrap" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "bootstrap": "~3.3.5", "fontawesome": "~4.4.0", "bootstrap-sass-official": "~3.3.5" } }
{ "name": "railsblocks-theme", "version": "0.0.1", "homepage": "https://github.com/railsblocks/railsblocks-theme", "authors": [ "Caio Ferreira <caio@zertico.com>", "Celso Fernandes <fernandes@zertico.com>", "Marcelo Borges <marcelo@zertico.com>" ], "description": "theme for railsblocks", "moduleType": [ "es6" ], "keywords": [ "rails", "blocks", "theme", "bootstrap" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "bootstrap": "~3.3.5", "fontawesome": "~4.4.0", "bootstrap-sass-official": "~3.3.5" } }
Add caio and marcelo as authors
Add caio and marcelo as authors
JSON
mit
MarceloBorgesP/railsblocks-theme,MarceloBorgesP/railsblocks-theme,MarceloBorgesP/railsblocks-theme
json
## Code Before: { "name": "railsblocks-theme", "version": "0.0.1", "homepage": "https://github.com/railsblocks/railsblocks-theme", "authors": [ "Celso Fernandes <fernandes@zertico.com>" ], "description": "theme for railsblocks", "moduleType": [ "es6" ], "keywords": [ "rails", "blocks", "theme", "bootstrap" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "bootstrap": "~3.3.5", "fontawesome": "~4.4.0", "bootstrap-sass-official": "~3.3.5" } } ## Instruction: Add caio and marcelo as authors ## Code After: { "name": "railsblocks-theme", "version": "0.0.1", "homepage": "https://github.com/railsblocks/railsblocks-theme", "authors": [ "Caio Ferreira <caio@zertico.com>", "Celso Fernandes <fernandes@zertico.com>", "Marcelo Borges <marcelo@zertico.com>" ], "description": "theme for railsblocks", "moduleType": [ "es6" ], "keywords": [ "rails", "blocks", "theme", "bootstrap" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "bootstrap": "~3.3.5", "fontawesome": "~4.4.0", "bootstrap-sass-official": "~3.3.5" } }
{ "name": "railsblocks-theme", "version": "0.0.1", "homepage": "https://github.com/railsblocks/railsblocks-theme", "authors": [ + "Caio Ferreira <caio@zertico.com>", - "Celso Fernandes <fernandes@zertico.com>" + "Celso Fernandes <fernandes@zertico.com>", ? + + "Marcelo Borges <marcelo@zertico.com>" ], "description": "theme for railsblocks", "moduleType": [ "es6" ], "keywords": [ "rails", "blocks", "theme", "bootstrap" ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "bootstrap": "~3.3.5", "fontawesome": "~4.4.0", "bootstrap-sass-official": "~3.3.5" } }
4
0.129032
3
1
bf5a12d6dfb976d38762a178b883b81439263bc1
test/markup_renderer_spec.rb
test/markup_renderer_spec.rb
require "test_helper" describe Serif::MarkupRenderer do subject do Redcarpet::Markdown.new(Serif::MarkupRenderer, fenced_code_blocks: true) end it "renders language-free code blocks correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT.chomp foo ``` some code ``` END_SOURCE <p>foo</p> <pre><code>some code </code></pre> END_OUTPUT end it "renders code blocks with a language correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT foo ```ruby foo ``` END_SOURCE <p>foo</p> <pre class="highlight"><code><span class="n">foo</span> </code></pre> END_OUTPUT end end
require "test_helper" describe Serif::MarkupRenderer do subject do Redcarpet::Markdown.new(Serif::MarkupRenderer, fenced_code_blocks: true) end it "renders language-free code blocks correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT.chomp foo ``` some code ``` END_SOURCE <p>foo</p> <pre><code>some code </code></pre> END_OUTPUT end it "renders code blocks with a language correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT foo ```ruby foo ``` END_SOURCE <p>foo</p> <pre class="highlight"><code><span class="n">foo</span> </code></pre> END_OUTPUT end it "renders quote marks properly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT This "very" sentence's structure "isn't" necessary. END_SOURCE <p>This &ldquo;very&rdquo; sentence&#39;s structure &ldquo;isn&#39;t&rdquo; necessary.</p> END_OUTPUT end end
Add a test covering MarkupRenderer's smartyness.
Add a test covering MarkupRenderer's smartyness.
Ruby
mit
aprescott/serif,aprescott/serif
ruby
## Code Before: require "test_helper" describe Serif::MarkupRenderer do subject do Redcarpet::Markdown.new(Serif::MarkupRenderer, fenced_code_blocks: true) end it "renders language-free code blocks correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT.chomp foo ``` some code ``` END_SOURCE <p>foo</p> <pre><code>some code </code></pre> END_OUTPUT end it "renders code blocks with a language correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT foo ```ruby foo ``` END_SOURCE <p>foo</p> <pre class="highlight"><code><span class="n">foo</span> </code></pre> END_OUTPUT end end ## Instruction: Add a test covering MarkupRenderer's smartyness. ## Code After: require "test_helper" describe Serif::MarkupRenderer do subject do Redcarpet::Markdown.new(Serif::MarkupRenderer, fenced_code_blocks: true) end it "renders language-free code blocks correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT.chomp foo ``` some code ``` END_SOURCE <p>foo</p> <pre><code>some code </code></pre> END_OUTPUT end it "renders code blocks with a language correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT foo ```ruby foo ``` END_SOURCE <p>foo</p> <pre class="highlight"><code><span class="n">foo</span> </code></pre> END_OUTPUT end it "renders quote marks properly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT This "very" sentence's structure "isn't" necessary. END_SOURCE <p>This &ldquo;very&rdquo; sentence&#39;s structure &ldquo;isn&#39;t&rdquo; necessary.</p> END_OUTPUT end end
require "test_helper" describe Serif::MarkupRenderer do subject do Redcarpet::Markdown.new(Serif::MarkupRenderer, fenced_code_blocks: true) end it "renders language-free code blocks correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT.chomp foo ``` some code ``` END_SOURCE <p>foo</p> <pre><code>some code </code></pre> END_OUTPUT end it "renders code blocks with a language correctly" do subject.render(<<END_SOURCE).should == <<END_OUTPUT foo ```ruby foo ``` END_SOURCE <p>foo</p> <pre class="highlight"><code><span class="n">foo</span> </code></pre> END_OUTPUT end + + it "renders quote marks properly" do + subject.render(<<END_SOURCE).should == <<END_OUTPUT + This "very" sentence's structure "isn't" necessary. + END_SOURCE + <p>This &ldquo;very&rdquo; sentence&#39;s structure &ldquo;isn&#39;t&rdquo; necessary.</p> + END_OUTPUT + end end
8
0.228571
8
0
8a32f32a7c627cb298d8d682751ef36aa79f1db3
src/browser-detector.js
src/browser-detector.js
"use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1; } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from https://gist.github.com/padolsey/527683 var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; };
"use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from https://gist.github.com/padolsey/527683 var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; };
Handle Edge as an IE browser.
Handle Edge as an IE browser. Edge was handled as a non IE browser, and no resize events was triggered. Not, when handling Edge as an IE browser, events are triggered again.
JavaScript
mit
m59peacemaker/element-resize-detector,m59peacemaker/element-resize-detector,wnr/element-resize-detector,wnr/element-resize-detector
javascript
## Code Before: "use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1; } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from https://gist.github.com/padolsey/527683 var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; }; ## Instruction: Handle Edge as an IE browser. Edge was handled as a non IE browser, and no resize events was triggered. Not, when handling Edge as an IE browser, events are triggered again. ## Code After: "use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from https://gist.github.com/padolsey/527683 var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; };
"use strict"; var detector = module.exports = {}; detector.isIE = function(version) { function isAnyIeVersion() { var agent = navigator.userAgent.toLowerCase(); - return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1; + return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; ? ++++++++++++++++++++++++++++++++++ } if(!isAnyIeVersion()) { return false; } if(!version) { return true; } //Shamelessly stolen from https://gist.github.com/padolsey/527683 var ieVersion = (function(){ var undef, v = 3, div = document.createElement("div"), all = div.getElementsByTagName("i"); do { div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->"; } while (all[0]); return v > 4 ? v : undef; }()); return version === ieVersion; }; detector.isLegacyOpera = function() { return !!window.opera; };
2
0.051282
1
1
efaa3d76a4c3b7c16d8e559629b4563bd1fa2cb6
wp-cli/wp-cli/CVE-2021-29504.yaml
wp-cli/wp-cli/CVE-2021-29504.yaml
title: Insecure Deserialization of untrusted data link: https://github.com/wp-cli/wp-cli/security/advisories/GHSA-rwgm-f83r-v3qj cve: CVE-2021-29504 reference: composer://wp-cli/wp-cli branches: 0.x: time: 2021-05-14 14:37:47 versions: ['>=0.12.0', '<1.0.0'] 1.x: time: 2021-05-14 14:37:47 versions: ['>=1.0.0', '<2.0.0'] 2.x: time: 2021-05-14 14:37:47 versions: ['>=2.0.0', '<2.5.0']
title: Improper Certificate Validation in WP-CLI framework link: https://github.com/wp-cli/wp-cli/security/advisories/GHSA-rwgm-f83r-v3qj cve: CVE-2021-29504 reference: composer://wp-cli/wp-cli branches: 0.x: time: 2021-05-14 14:37:47 versions: ['>=0.12.0', '<1.0.0'] 1.x: time: 2021-05-14 14:37:47 versions: ['>=1.0.0', '<2.0.0'] 2.x: time: 2021-05-14 14:37:47 versions: ['>=2.0.0', '<2.5.0']
Fix title in wp-cli CVE
Fix title in wp-cli CVE
YAML
unlicense
kdambekalns/security-advisories,FriendsOfPHP/security-advisories
yaml
## Code Before: title: Insecure Deserialization of untrusted data link: https://github.com/wp-cli/wp-cli/security/advisories/GHSA-rwgm-f83r-v3qj cve: CVE-2021-29504 reference: composer://wp-cli/wp-cli branches: 0.x: time: 2021-05-14 14:37:47 versions: ['>=0.12.0', '<1.0.0'] 1.x: time: 2021-05-14 14:37:47 versions: ['>=1.0.0', '<2.0.0'] 2.x: time: 2021-05-14 14:37:47 versions: ['>=2.0.0', '<2.5.0'] ## Instruction: Fix title in wp-cli CVE ## Code After: title: Improper Certificate Validation in WP-CLI framework link: https://github.com/wp-cli/wp-cli/security/advisories/GHSA-rwgm-f83r-v3qj cve: CVE-2021-29504 reference: composer://wp-cli/wp-cli branches: 0.x: time: 2021-05-14 14:37:47 versions: ['>=0.12.0', '<1.0.0'] 1.x: time: 2021-05-14 14:37:47 versions: ['>=1.0.0', '<2.0.0'] 2.x: time: 2021-05-14 14:37:47 versions: ['>=2.0.0', '<2.5.0']
- title: Insecure Deserialization of untrusted data + title: Improper Certificate Validation in WP-CLI framework link: https://github.com/wp-cli/wp-cli/security/advisories/GHSA-rwgm-f83r-v3qj cve: CVE-2021-29504 reference: composer://wp-cli/wp-cli branches: 0.x: time: 2021-05-14 14:37:47 versions: ['>=0.12.0', '<1.0.0'] 1.x: time: 2021-05-14 14:37:47 versions: ['>=1.0.0', '<2.0.0'] 2.x: time: 2021-05-14 14:37:47 versions: ['>=2.0.0', '<2.5.0']
2
0.142857
1
1
521d46f4a82233e6b36dc32eaeefa986948e42e8
test/main.lisp
test/main.lisp
(defpackage :shcl/test/main (:use :common-lisp) (:import-from :shcl/test/lexer) (:import-from :shcl/test/utility) (:import-from :shcl/test/posix) (:import-from :shcl/test/lisp-interpolation) (:import-from :shcl/test/data) (:import-from :shcl/test/iterator) (:import-from :shcl/test/command) (:import-from :shcl/test/fd-table) (:import-from :shcl/test/foundation #:run-test-set #:all-tests #:package-test-set #:symbol-test) (:import-from :shcl/core/command) (:import-from :prove) (:import-from :fset) (:export #:run-all-tests)) (in-package :shcl/test/main) (shcl/core/command:define-builtin -shcl-run-tests (&option package) "Run unit tests." (let ((prove:*enable-colors* nil) (prove:*test-result-output* *standard-output*) (test-set (fset:empty-set))) (cond ((zerop (length package)) (setf test-set (all-tests))) (t (loop :for package :across package :do (fset:unionf test-set (package-test-set package))))) (if (run-test-set test-set) 0 1)))
(defpackage :shcl/test/main (:use :common-lisp) (:import-from :shcl/test/lexer) (:import-from :shcl/test/utility) (:import-from :shcl/test/posix) (:import-from :shcl/test/lisp-interpolation) (:import-from :shcl/test/data) (:import-from :shcl/test/iterator) (:import-from :shcl/test/command) (:import-from :shcl/test/fd-table) (:import-from :shcl/test/foundation #:run-test-set #:all-tests #:package-test-set #:symbol-test) (:import-from :shcl/core/command) (:import-from :shcl/core/shell-environment #:with-subshell) (:import-from :prove) (:import-from :fset) (:export #:run-all-tests)) (in-package :shcl/test/main) (shcl/core/command:define-builtin -shcl-run-tests (&option package) "Run unit tests." (with-subshell (let ((prove:*enable-colors* nil) (prove:*test-result-output* *standard-output*) (test-set (fset:empty-set))) (cond ((zerop (length package)) (setf test-set (all-tests))) (t (loop :for package :across package :do (fset:unionf test-set (package-test-set package))))) (if (run-test-set test-set) 0 1))))
Test should be run in a subshell
Test should be run in a subshell
Common Lisp
apache-2.0
bradleyjensen/shcl,bradleyjensen/shcl,bradleyjensen/shcl
common-lisp
## Code Before: (defpackage :shcl/test/main (:use :common-lisp) (:import-from :shcl/test/lexer) (:import-from :shcl/test/utility) (:import-from :shcl/test/posix) (:import-from :shcl/test/lisp-interpolation) (:import-from :shcl/test/data) (:import-from :shcl/test/iterator) (:import-from :shcl/test/command) (:import-from :shcl/test/fd-table) (:import-from :shcl/test/foundation #:run-test-set #:all-tests #:package-test-set #:symbol-test) (:import-from :shcl/core/command) (:import-from :prove) (:import-from :fset) (:export #:run-all-tests)) (in-package :shcl/test/main) (shcl/core/command:define-builtin -shcl-run-tests (&option package) "Run unit tests." (let ((prove:*enable-colors* nil) (prove:*test-result-output* *standard-output*) (test-set (fset:empty-set))) (cond ((zerop (length package)) (setf test-set (all-tests))) (t (loop :for package :across package :do (fset:unionf test-set (package-test-set package))))) (if (run-test-set test-set) 0 1))) ## Instruction: Test should be run in a subshell ## Code After: (defpackage :shcl/test/main (:use :common-lisp) (:import-from :shcl/test/lexer) (:import-from :shcl/test/utility) (:import-from :shcl/test/posix) (:import-from :shcl/test/lisp-interpolation) (:import-from :shcl/test/data) (:import-from :shcl/test/iterator) (:import-from :shcl/test/command) (:import-from :shcl/test/fd-table) (:import-from :shcl/test/foundation #:run-test-set #:all-tests #:package-test-set #:symbol-test) (:import-from :shcl/core/command) (:import-from :shcl/core/shell-environment #:with-subshell) (:import-from :prove) (:import-from :fset) (:export #:run-all-tests)) (in-package :shcl/test/main) (shcl/core/command:define-builtin -shcl-run-tests (&option package) "Run unit tests." (with-subshell (let ((prove:*enable-colors* nil) (prove:*test-result-output* *standard-output*) (test-set (fset:empty-set))) (cond ((zerop (length package)) (setf test-set (all-tests))) (t (loop :for package :across package :do (fset:unionf test-set (package-test-set package))))) (if (run-test-set test-set) 0 1))))
(defpackage :shcl/test/main (:use :common-lisp) (:import-from :shcl/test/lexer) (:import-from :shcl/test/utility) (:import-from :shcl/test/posix) (:import-from :shcl/test/lisp-interpolation) (:import-from :shcl/test/data) (:import-from :shcl/test/iterator) (:import-from :shcl/test/command) (:import-from :shcl/test/fd-table) (:import-from :shcl/test/foundation #:run-test-set #:all-tests #:package-test-set #:symbol-test) (:import-from :shcl/core/command) + (:import-from :shcl/core/shell-environment #:with-subshell) (:import-from :prove) (:import-from :fset) (:export #:run-all-tests)) (in-package :shcl/test/main) (shcl/core/command:define-builtin -shcl-run-tests (&option package) "Run unit tests." + (with-subshell - (let ((prove:*enable-colors* nil) + (let ((prove:*enable-colors* nil) ? ++ - (prove:*test-result-output* *standard-output*) + (prove:*test-result-output* *standard-output*) ? ++ - (test-set (fset:empty-set))) + (test-set (fset:empty-set))) ? ++ - (cond + (cond ? ++ - ((zerop (length package)) + ((zerop (length package)) ? ++ - (setf test-set (all-tests))) + (setf test-set (all-tests))) ? ++ - (t + (t ? ++ - (loop :for package :across package :do + (loop :for package :across package :do ? ++ - (fset:unionf test-set (package-test-set package))))) + (fset:unionf test-set (package-test-set package))))) ? ++ - (if (run-test-set test-set) + (if (run-test-set test-set) ? ++ - 0 + 0 ? ++ - 1))) + 1)))) ? ++ +
26
0.787879
14
12
2f72015b68780e6a0894bc7f7163317b78ff6f80
Library/Formula/gearman.rb
Library/Formula/gearman.rb
require 'formula' class Gearman <Formula url 'http://launchpad.net/gearmand/trunk/0.12/+download/gearmand-0.12.tar.gz' homepage 'http://gearman.org/' md5 '6e88a6bfb26e50d5aed37d143184e7f2' depends_on 'libevent' def install system "./configure", "--prefix=#{prefix}" system "make install" end end
require 'formula' class Gearman <Formula url 'http://launchpad.net/gearmand/trunk/0.15/+download/gearmand-0.15.tar.gz' homepage 'http://gearman.org/' md5 'd394214d3cddc5af237d73befc7e3999' depends_on 'libevent' def install system "./configure", "--prefix=#{prefix}" system "make install" end end
Update Gearmand to version 0.15
Update Gearmand to version 0.15 Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
Ruby
bsd-2-clause
jamer/homebrew,drbenmorgan/linuxbrew,alanthing/homebrew,mpfz0r/homebrew,shawndellysse/homebrew,Zearin/homebrew,anders/homebrew,youtux/homebrew,jf647/homebrew,NRauh/homebrew,gyaresu/homebrew,zorosteven/homebrew,mhartington/homebrew,elgertam/homebrew,zchee/homebrew,bchatard/homebrew,AlekSi/homebrew,marcusandre/homebrew,kwilczynski/homebrew,tjschuck/homebrew,caijinyan/homebrew,Firefishy/homebrew,mcolic/homebrew,dmarkrollins/homebrew,Krasnyanskiy/homebrew,jose-cieni-movile/homebrew,linse073/homebrew,odekopoon/homebrew,oliviertilmans/homebrew,odekopoon/homebrew,LeonB/linuxbrew,seegno-forks/homebrew,tomas/linuxbrew,alex/homebrew,elig/homebrew,slyphon/homebrew,qorelanguage/homebrew,joeyhoer/homebrew,arcivanov/linuxbrew,cHoco/homebrew,clemensg/homebrew,Redth/homebrew,jimmy906/homebrew,dericed/homebrew,srikalyan/homebrew,vladshablinsky/homebrew,Originate/homebrew,jbarker/homebrew,pcottle/homebrew,packetcollision/homebrew,benjaminfrank/homebrew,alex-courtis/homebrew,jpsim/homebrew,zoltansx/homebrew,jasonm23/homebrew,DarthGandalf/homebrew,dirn/homebrew,vihangm/homebrew,iblueer/homebrew,pnorman/homebrew,bitrise-io/homebrew,kevmoo/homebrew,jgelens/homebrew,MrChen2015/homebrew,keithws/homebrew,wfalkwallace/homebrew,chkuendig/homebrew,sublimino/linuxbrew,flysonic10/homebrew,xinlehou/homebrew,calmez/homebrew,andrew-regan/homebrew,YOTOV-LIMITED/homebrew,kbinani/homebrew,esamson/homebrew,ilovezfs/homebrew,JerroldLee/homebrew,hkwan003/homebrew,LeoCavaille/homebrew,koraktor/homebrew,blogabe/homebrew,gcstang/homebrew,zebMcCorkle/homebrew,schuyler/homebrew,morevalily/homebrew,davydden/homebrew,qskycolor/homebrew,samthor/homebrew,John-Colvin/homebrew,tjnycum/homebrew,AlexejK/homebrew,creack/homebrew,vigo/homebrew,danieroux/homebrew,DDShadoww/homebrew,booi/homebrew,maxhope/homebrew,pdxdan/homebrew,feugenix/homebrew,ssgelm/homebrew,keith/homebrew,sakra/homebrew,koenrh/homebrew,tobz-nz/homebrew,jspahrsummers/homebrew,dtan4/homebrew,tomas/homebrew,evanrs/homebrew,amarshall/homebrew,rs/homebrew,GeekHades/homebrew,huitseeker/homebrew,francaguilar/homebrew,jeffmo/homebrew,jpsim/homebrew,gicmo/homebrew,silentbicycle/homebrew,tschoonj/homebrew,sugryo/homebrew,dalanmiller/homebrew,windoze/homebrew,pigri/homebrew,dalguji/homebrew,feuvan/homebrew,mndrix/homebrew,Ferrari-lee/homebrew,endelwar/homebrew,ainstushar/homebrew,seeden/homebrew,davidcelis/homebrew,antst/homebrew,theckman/homebrew,jpascal/homebrew,odekopoon/homebrew,elamc/homebrew,oneillkza/linuxbrew,dunn/linuxbrew,int3h/homebrew,mprobst/homebrew,chfast/homebrew,raphaelcohn/homebrew,gyaresu/homebrew,rillian/homebrew,adamchainz/homebrew,lemaiyan/homebrew,indrajitr/homebrew,CNA-Bld/homebrew,craig5/homebrew,Gutek/homebrew,galaxy001/homebrew,sportngin/homebrew,petere/homebrew,thuai/boxen,stevenjack/homebrew,southwolf/homebrew,oliviertoupin/homebrew,boyanpenkov/homebrew,Ivanopalas/homebrew,pigri/homebrew,sje30/homebrew,mttrb/homebrew,trombonehero/homebrew,base10/homebrew,brevilo/linuxbrew,michaKFromParis/homebrew-sparks,teslamint/homebrew,pdpi/homebrew,marcusandre/homebrew,kbinani/homebrew,keith/homebrew,ssgelm/homebrew,Cutehacks/homebrew,zoidbergwill/homebrew,arcivanov/linuxbrew,boneskull/homebrew,frickler01/homebrew,bright-sparks/homebrew,windoze/homebrew,tyrchen/homebrew,dstndstn/homebrew,ingmarv/homebrew,summermk/homebrew,kazuho/homebrew,thejustinwalsh/homebrew,rhoffman3621/learn-rails,alex-courtis/homebrew,emcrisostomo/homebrew,danielfariati/homebrew,adamliter/linuxbrew,ento/homebrew,Dreysman/homebrew,IsmailM/linuxbrew,craigbrad/homebrew,deployable/homebrew,alanthing/homebrew,Govinda-Fichtner/homebrew,wfarr/homebrew,tschoonj/homebrew,aguynamedryan/homebrew,sferik/homebrew,tseven/homebrew,rhunter/homebrew,freedryk/homebrew,akupila/homebrew,keithws/homebrew,mndrix/homebrew,Zearin/homebrew,samthor/homebrew,outcoldman/homebrew,djun-kim/homebrew,jingweno/homebrew,mapbox/homebrew,mttrb/homebrew,timomeinen/homebrew,dunn/linuxbrew,dickeyxxx/homebrew,danpalmer/homebrew,scardetto/homebrew,bendemaree/homebrew,gunnaraasen/homebrew,pigoz/homebrew,idolize/homebrew,tghs/linuxbrew,QuinnyPig/homebrew,Russell91/homebrew,jbarker/homebrew,Cutehacks/homebrew,dconnolly/homebrew,dlo/homebrew,oubiwann/homebrew,sitexa/homebrew,xb123456456/homebrew,heinzf/homebrew,pitatensai/homebrew,joshua-rutherford/homebrew,saketkc/linuxbrew,youprofit/homebrew,MSch/homebrew,schuyler/homebrew,eighthave/homebrew,pigoz/homebrew,raphaelcohn/homebrew,tuxu/homebrew,bright-sparks/homebrew,n8henrie/homebrew,higanworks/homebrew,carlmod/homebrew,mndrix/homebrew,mommel/homebrew,nicowilliams/homebrew,linjunpop/homebrew,swallat/homebrew,chiefy/homebrew,Homebrew/linuxbrew,bjlxj2008/homebrew,thebyrd/homebrew,yonglehou/homebrew,tjschuck/homebrew,QuinnyPig/homebrew,alex/homebrew,sachiketi/homebrew,jf647/homebrew,esalling23/homebrew,erezny/homebrew,bettyDes/homebrew,tavisto/homebrew,kbrock/homebrew,hakamadare/homebrew,lnr0626/homebrew,AICIDNN/homebrew,YOTOV-LIMITED/homebrew,oliviertoupin/homebrew,theopolis/homebrew,tomas/homebrew,chenflat/homebrew,sferik/homebrew,mattprowse/homebrew,elgertam/homebrew,asparagui/homebrew,dolfly/homebrew,GeekHades/homebrew,will/homebrew,SuperNEMO-DBD/cadfaelbrew,koraktor/homebrew,Cottser/homebrew,pitatensai/homebrew,vinodkone/homebrew,MSch/homebrew,10sr/linuxbrew,smarek/homebrew,srikalyan/homebrew,ieure/homebrew,knpwrs/homebrew,elamc/homebrew,pgr0ss/homebrew,lewismc/homebrew,seegno-forks/homebrew,pnorman/homebrew,haihappen/homebrew,erkolson/homebrew,decors/homebrew,jbarker/homebrew,xanderlent/homebrew,oneillkza/linuxbrew,bertjwregeer/homebrew,shazow/homebrew,dolfly/homebrew,lvh/homebrew,mathieubolla/homebrew,dlesaca/homebrew,reelsense/homebrew,vladshablinsky/homebrew,vihangm/homebrew,thebyrd/homebrew,bbhoss/homebrew,avnit/EGroovy,ehogberg/homebrew,jesboat/homebrew,gildegoma/homebrew,Asuranceturix/homebrew,yyn835314557/homebrew,dunn/linuxbrew,gvangool/homebrew,mjc-/homebrew,wangranche/homebrew,dlesaca/homebrew,indrajitr/homebrew,ianbrandt/homebrew,rnh/homebrew,robotblake/homebrew,DoomHammer/linuxbrew,jmstacey/homebrew,joshfriend/homebrew,Krasnyanskiy/homebrew,hongkongkiwi/homebrew,timomeinen/homebrew,notDavid/homebrew,davidmalcolm/homebrew,halloleo/homebrew,Drewshg312/homebrew,feelpp/homebrew,lvh/homebrew,skatsuta/homebrew,kwilczynski/homebrew,ssp/homebrew,baldwicc/homebrew,hanxue/homebrew,BrewTestBot/homebrew,AICIDNN/homebrew,cprecioso/homebrew,liuquansheng47/Homebrew,adevress/homebrew,lucas-clemente/homebrew,MartinDelille/homebrew,mcolic/homebrew,dholm/linuxbrew,hvnsweeting/homebrew,tyrchen/homebrew,blogabe/homebrew,davidmalcolm/homebrew,megahall/homebrew,scardetto/homebrew,jeffmo/homebrew,KevinSjoberg/homebrew,grepnull/homebrew,youprofit/homebrew,hkwan003/homebrew,zhimsel/homebrew,bjorand/homebrew,stevenjack/homebrew,joschi/homebrew,dholm/linuxbrew,ngoldbaum/homebrew,wkentaro/homebrew,dconnolly/homebrew,bukzor/linuxbrew,jasonm23/homebrew,BrewTestBot/homebrew,jonafato/homebrew,drewwells/homebrew,kevinastone/homebrew,xinlehou/homebrew,trskop/linuxbrew,ndimiduk/homebrew,verbitan/homebrew,sakra/homebrew,tseven/homebrew,idolize/homebrew,guoxiao/homebrew,jbpionnier/homebrew,sometimesfood/homebrew,jconley/homebrew,lhahne/homebrew,malmaud/homebrew,guidomb/homebrew,dalguji/homebrew,mttrb/homebrew,gcstang/homebrew,kvs/homebrew,bmroberts1987/homebrew,jack-and-rozz/linuxbrew,sorin-ionescu/homebrew,danielfariati/homebrew,zachmayer/homebrew,jcassiojr/homebrew,skinny-framework/homebrew,LeoCavaille/homebrew,carlmod/homebrew,mxk1235/homebrew,davydden/homebrew,kashif/homebrew,daviddavis/homebrew,benesch/homebrew,woodruffw/homebrew-test,dstftw/homebrew,kazuho/homebrew,jonas/homebrew,polamjag/homebrew,frodeaa/homebrew,bjlxj2008/homebrew,sidhart/homebrew,bbhoss/homebrew,paour/homebrew,gildegoma/homebrew,polishgeeks/homebrew,woodruffw/homebrew-test,PikachuEXE/homebrew,nnutter/homebrew,johanhammar/homebrew,colindean/homebrew,eagleflo/homebrew,Drewshg312/homebrew,lousama/homebrew,Govinda-Fichtner/homebrew,khwon/homebrew,adriancole/homebrew,kilojoules/homebrew,AtkinsChang/homebrew,eighthave/homebrew,adevress/homebrew,danieroux/homebrew,3van/homebrew,youtux/homebrew,francaguilar/homebrew,1zaman/homebrew,voxxit/homebrew,phatblat/homebrew,mrkn/homebrew,godu/homebrew,bkonosky/homebrew,slnovak/homebrew,trskop/linuxbrew,gijzelaerr/homebrew,ieure/homebrew,filcab/homebrew,pvrs12/homebrew,LonnyGomes/homebrew,joshfriend/homebrew,xuebinglee/homebrew,jgelens/homebrew,princeofdarkness76/homebrew,DoomHammer/linuxbrew,torgartor21/homebrew,Hasimir/homebrew,bchatard/homebrew,yazuuchi/homebrew,tjt263/homebrew,ldiqual/homebrew,ajshort/homebrew,bwmcadams/homebrew,oliviertoupin/homebrew,crystal/autocode-homebrew,princeofdarkness76/homebrew,BlackFrog1/homebrew,asparagui/homebrew,hyuni/homebrew,dtrebbien/homebrew,akupila/homebrew,hwhelchel/homebrew,moyogo/homebrew,jarrettmeyer/homebrew,sachiketi/homebrew,dalinaum/homebrew,kevinastone/homebrew,tutumcloud/homebrew,zhipeng-jia/homebrew,DDShadoww/homebrew,yyn835314557/homebrew,youprofit/homebrew,WangGL1985/homebrew,sitexa/homebrew,syhw/homebrew,mroth/homebrew,jeremiahyan/homebrew,catap/homebrew,arrowcircle/homebrew,Gasol/homebrew,soleo/homebrew,Austinpb/homebrew,sachiketi/homebrew,elig/homebrew,PikachuEXE/homebrew,CNA-Bld/homebrew,rhendric/homebrew,BrewTestBot/homebrew,ento/homebrew,mathieubolla/homebrew,Spacecup/homebrew,reelsense/linuxbrew,int3h/homebrew,theopolis/homebrew,mokkun/homebrew,jsjohnst/homebrew,dunn/homebrew,ryanshaw/homebrew,slyphon/homebrew,tuedan/homebrew,wolfd/homebrew,ebouaziz/linuxbrew,Hasimir/homebrew,elgertam/homebrew,zhipeng-jia/homebrew,anjackson/homebrew,qiruiyin/homebrew,chabhishek123/homebrew,trombonehero/homebrew,ktheory/homebrew,saketkc/homebrew,dutchcoders/homebrew,LucyShapiro/before-after,andy12530/homebrew,crystal/autocode-homebrew,tjnycum/homebrew,AntonioMeireles/homebrew,lmontrieux/homebrew,timsutton/homebrew,deployable/homebrew,cnbin/homebrew,adamliter/homebrew,bukzor/linuxbrew,exicon/homebrew,jtrag/homebrew,rcombs/homebrew,dambrisco/homebrew,LaurentFough/homebrew,davydden/linuxbrew,ilidar/homebrew,youtux/homebrew,tehmaze-labs/homebrew,joschi/homebrew,RandyMcMillan/homebrew,SampleLiao/homebrew,menivaitsi/homebrew,jamer/homebrew,avnit/EGroovy,bcwaldon/homebrew,reelsense/linuxbrew,kim0/homebrew,hyuni/homebrew,phatblat/homebrew,mgiglia/homebrew,buzzedword/homebrew,neronplex/homebrew,ptolemarch/homebrew,patrickmckenna/homebrew,WangGL1985/homebrew,valkjsaaa/homebrew,felixonmars/homebrew,malmaud/homebrew,vigo/homebrew,indrajitr/homebrew,sarvex/linuxbrew,drewpc/homebrew,huitseeker/homebrew,gnawhleinad/homebrew,Gui13/linuxbrew,danpalmer/homebrew,stoshiya/homebrew,packetcollision/homebrew,vinodkone/homebrew,jianjin/homebrew,frodeaa/homebrew,robrix/homebrew,sdebnath/homebrew,teslamint/homebrew,craig5/homebrew,zchee/homebrew,tehmaze-labs/homebrew,yoshida-mediba/homebrew,SteveClement/homebrew,sugryo/homebrew,mpfz0r/homebrew,pitatensai/homebrew,sdebnath/homebrew,knpwrs/homebrew,MonCoder/homebrew,scardetto/homebrew,stoshiya/homebrew,Angeldude/linuxbrew,totalvoidness/homebrew,rwstauner/homebrew,tsaeger/homebrew,gijzelaerr/homebrew,a-b/homebrew,boyanpenkov/homebrew,thejustinwalsh/homebrew,2inqui/homebrew,hakamadare/homebrew,marcelocantos/homebrew,mxk1235/homebrew,mciantyre/homebrew,kawanet/homebrew,iandennismiller/homebrew,danielfariati/homebrew,pwnall/homebrew,pgr0ss/homebrew,Noctem/homebrew,MoSal/homebrew,kyanny/homebrew,linjunpop/homebrew,jbaum98/linuxbrew,dardo82/homebrew,vinicius5581/homebrew,skinny-framework/homebrew,lousama/homebrew,lvicentesanchez/linuxbrew,zhipeng-jia/homebrew,jackmcgreevy/homebrew,iostat/homebrew2,rwstauner/homebrew,OJFord/homebrew,buzzedword/homebrew,sideci-sample/sideci-sample-homebrew,Originate/homebrew,Angeldude/linuxbrew,trombonehero/homebrew,xurui3762791/homebrew,scorphus/homebrew,mattbostock/homebrew,jbeezley/homebrew,AlexejK/homebrew,oliviertilmans/homebrew,royalwang/homebrew,thrifus/homebrew,tylerball/homebrew,ptolemarch/homebrew,tjhei/linuxbrew,jingweno/homebrew,jonafato/homebrew,jpascal/homebrew,zorosteven/homebrew,summermk/homebrew,ingmarv/homebrew,zoidbergwill/homebrew,haf/homebrew,miketheman/homebrew,jmtd/homebrew,SteveClement/homebrew,cbenhagen/homebrew,emilyst/homebrew,chfast/homebrew,jacobsa/homebrew,rlhh/homebrew,6100590/homebrew,esamson/homebrew,kodabb/homebrew,onlynone/homebrew,auvi/homebrew,kyanny/homebrew,redpen-cc/homebrew,wfarr/homebrew,dirn/homebrew,afb/homebrew,whitej125/homebrew,lvicentesanchez/homebrew,joshua-rutherford/homebrew,freedryk/homebrew,marcelocantos/homebrew,hyokosdeveloper/linuxbrew,WangGL1985/homebrew,influxdata/homebrew,bmroberts1987/homebrew,brianmhunt/homebrew,kevmoo/homebrew,sugryo/homebrew,Gui13/linuxbrew,treyharris/homebrew,alex/homebrew,ryanfb/homebrew,justjoheinz/homebrew,AlekSi/homebrew,ctate/autocode-homebrew,miketheman/homebrew,gcstang/linuxbrew,anjackson/homebrew,petemcw/homebrew,jehutymax/homebrew,feugenix/homebrew,elamc/homebrew,kbinani/homebrew,aaronwolen/homebrew,vinicius5581/homebrew,kbrock/homebrew,rneatherway/homebrew,thebyrd/homebrew,paulbakker/homebrew,DDShadoww/homebrew,mindrones/homebrew,grob3/homebrew,royalwang/homebrew,mjc-/homebrew,thinker0/homebrew,jiaoyigui/homebrew,changzuozhen/homebrew,polishgeeks/homebrew,epixa/homebrew,yoshida-mediba/homebrew,gvangool/homebrew,carlmod/homebrew,dunn/homebrew,IsmailM/linuxbrew,swallat/homebrew,Habbie/homebrew,yangj1e/homebrew,romejoe/linuxbrew,YOTOV-LIMITED/homebrew,tobz-nz/homebrew,apjanke/homebrew,drewpc/homebrew,LucyShapiro/before-after,rlister/homebrew,glowe/homebrew,rs/homebrew,zeha/homebrew,esalling23/homebrew,benesch/homebrew,pwnall/homebrew,hanxue/homebrew,theopolis/homebrew,zabawaba99/homebrew,ptolemarch/homebrew,barn/homebrew,ebouaziz/linuxbrew,ebardsley/homebrew,anarchivist/homebrew,bendoerr/homebrew,dstftw/homebrew,benswift404/homebrew,bigbes/homebrew,optikfluffel/homebrew,mbi/homebrew,ariscop/homebrew,zeha/homebrew,mattprowse/homebrew,6100590/homebrew,andyshinn/homebrew,henry0312/homebrew,linkinpark342/homebrew,number5/homebrew,oliviertilmans/homebrew,torgartor21/homebrew,jpsim/homebrew,ehamberg/homebrew,RSamokhin/homebrew,n8henrie/homebrew,elasticdog/homebrew,bmroberts1987/homebrew,OlivierParent/homebrew,jspahrsummers/homebrew,jeromeheissler/homebrew,int3h/homebrew,jedahan/homebrew,peteristhegreat/homebrew,sdebnath/homebrew,ssp/homebrew,tutumcloud/homebrew,omriiluz/homebrew,elyscape/homebrew,paour/homebrew,moltar/homebrew,adamliter/homebrew,geoff-codes/homebrew,cesar2535/homebrew,zachmayer/homebrew,brotbert/homebrew,bjlxj2008/homebrew,Moisan/homebrew,qiruiyin/homebrew,baldwicc/homebrew,xinlehou/homebrew,deployable/homebrew,kashif/homebrew,tyrchen/homebrew,amjith/homebrew,max-horvath/homebrew,haosdent/homebrew,samthor/homebrew,ilovezfs/homebrew,theckman/homebrew,notDavid/homebrew,2inqui/homebrew,bluca/homebrew,bbhoss/homebrew,gnawhleinad/homebrew,Gutek/homebrew,tstack/homebrew,ralic/homebrew,catap/homebrew,sportngin/homebrew,tbetbetbe/linuxbrew,zeezey/homebrew,alebcay/homebrew,feuvan/homebrew,dgageot/homebrew,rgbkrk/homebrew,hanlu-chen/homebrew,skinny-framework/homebrew,yumitsu/homebrew,Asuranceturix/homebrew,jtrag/homebrew,ngoyal/homebrew,virtuald/homebrew,kwilczynski/homebrew,nandub/homebrew,totalvoidness/homebrew,dtrebbien/homebrew,a-b/homebrew,ngoldbaum/homebrew,ekmett/homebrew,kkirsche/homebrew,ortho/homebrew,cbenhagen/homebrew,dstndstn/homebrew,harsha-mudi/homebrew,ened/homebrew,bendemaree/homebrew,PikachuEXE/homebrew,miketheman/homebrew,mtigas/homebrew,kimhunter/homebrew,dstndstn/homebrew,kenips/homebrew,ngoldbaum/homebrew,CNA-Bld/homebrew,tschoonj/homebrew,pdxdan/homebrew,mroch/homebrew,petercm/homebrew,ryanfb/homebrew,finde/homebrew,sjackman/linuxbrew,reelsense/homebrew,dericed/homebrew,retrography/homebrew,eugenesan/homebrew,ptolemarch/homebrew,xuebinglee/homebrew,dai0304/homebrew,Monits/homebrew,NfNitLoop/homebrew,LegNeato/homebrew,prasincs/homebrew,kikuchy/homebrew,dplarson/homebrew,influxdb/homebrew,theckman/homebrew,LegNeato/homebrew,whitej125/homebrew,linjunpop/homebrew,jonafato/homebrew,gunnaraasen/homebrew,benswift404/homebrew,chadcatlett/homebrew,simsicon/homebrew,khwon/homebrew,pdxdan/homebrew,ktaragorn/homebrew,rosalsm/homebrew,jab/homebrew,thrifus/homebrew,kgb4000/homebrew,afdnlw/linuxbrew,ieure/homebrew,haf/homebrew,jimmy906/homebrew,Ivanopalas/homebrew,simsicon/homebrew,ebouaziz/linuxbrew,jeremiahyan/homebrew,valkjsaaa/homebrew,jsallis/homebrew,LucyShapiro/before-after,tjt263/homebrew,5zzang/homebrew,calmez/homebrew,ctate/autocode-homebrew,scpeters/homebrew,rgbkrk/homebrew,MartinDelille/homebrew,vladshablinsky/homebrew,coldeasy/homebrew,ekmett/homebrew,menivaitsi/homebrew,mobileoverlord/homebrew-1,jwillemsen/homebrew,mapbox/homebrew,wfalkwallace/homebrew,paour/homebrew,qorelanguage/homebrew,ge11232002/homebrew,felixonmars/homebrew,sorin-ionescu/homebrew,drewwells/homebrew,ehogberg/homebrew,mmizutani/homebrew,retrography/homebrew,zebMcCorkle/homebrew,djun-kim/homebrew,ear/homebrew,eugenesan/homebrew,okuramasafumi/homebrew,NRauh/homebrew,waj/homebrew,ndimiduk/homebrew,theopolis/homebrew,callahad/homebrew,jacobsa/homebrew,razamatan/homebrew,oschwald/homebrew,trajano/homebrew,rstacruz/homebrew,godu/homebrew,mjc-/homebrew,imjerrybao/homebrew,dpalmer93/homebrew,finde/homebrew,iostat/homebrew2,Gui13/linuxbrew,Ferrari-lee/homebrew,tsaeger/homebrew,SiegeLord/homebrew,higanworks/homebrew,neronplex/homebrew,lhahne/homebrew,arrowcircle/homebrew,bitrise-io/homebrew,egentry/homebrew,jack-and-rozz/linuxbrew,ened/homebrew,danabrand/linuxbrew,aaronwolen/homebrew,arnested/homebrew,princeofdarkness76/homebrew,dconnolly/homebrew,hongkongkiwi/homebrew,endelwar/homebrew,aaronwolen/homebrew,BlackFrog1/homebrew,jiaoyigui/homebrew,evanrs/homebrew,yumitsu/homebrew,Cutehacks/homebrew,guoxiao/homebrew,hermansc/homebrew,sometimesfood/homebrew,theopolis/homebrew,kilojoules/homebrew,dlo/homebrew,craigbrad/homebrew,digiter/linuxbrew,marcwebbie/homebrew,verbitan/homebrew,jlisic/linuxbrew,number5/homebrew,plattenschieber/homebrew,mroth/homebrew,wrunnery/homebrew,fabianschuiki/homebrew,mcolic/homebrew,hwhelchel/homebrew,gabelevi/homebrew,jamer/homebrew,davidcelis/homebrew,a-b/homebrew,tjschuck/homebrew,waj/homebrew,digiter/linuxbrew,emcrisostomo/homebrew,zachmayer/homebrew,redpen-cc/homebrew,sometimesfood/homebrew,dplarson/homebrew,jsallis/homebrew,alebcay/homebrew,zeezey/homebrew,gnawhleinad/homebrew,benswift404/homebrew,will/homebrew,Habbie/homebrew,summermk/homebrew,chabhishek123/homebrew,georgschoelly/homebrew,markpeek/homebrew,amenk/linuxbrew,moyogo/homebrew,tschoonj/homebrew,rhendric/homebrew,kodabb/homebrew,scpeters/homebrew,schuyler/homebrew,mactkg/homebrew,zeha/homebrew,notDavid/homebrew,dericed/homebrew,danabrand/linuxbrew,2inqui/homebrew,lousama/homebrew,nandub/homebrew,grmartin/homebrew,bertjwregeer/homebrew,boyanpenkov/homebrew,tomguiter/homebrew,royhodgman/homebrew,Kentzo/homebrew,caijinyan/homebrew,englishm/homebrew,schuyler/homebrew,tany-ovcharenko/depot,thrifus/homebrew,zhimsel/homebrew,afb/homebrew,recruit-tech/homebrew,afh/homebrew,LeonB/linuxbrew,samplecount/homebrew,jconley/homebrew,DoomHammer/linuxbrew,grob3/homebrew,blogabe/homebrew,gyaresu/homebrew,whistlerbrk/homebrew,bl1nk/homebrew,lucas-clemente/homebrew,morevalily/homebrew,elgertam/homebrew,ffleming/homebrew,tkelman/homebrew,sigma-random/homebrew,jconley/homebrew,tstack/homebrew,sjackman/linuxbrew,valkjsaaa/homebrew,filcab/homebrew,samplecount/homebrew,marcoceppi/homebrew,decors/homebrew,elyscape/homebrew,xurui3762791/homebrew,ajshort/homebrew,cbeck88/linuxbrew,dutchcoders/homebrew,pinkpolygon/homebrew,songjizu001/homebrew,rcombs/homebrew,Gasol/homebrew,recruit-tech/homebrew,timsutton/homebrew,southwolf/homebrew,Monits/homebrew,Govinda-Fichtner/homebrew,coldeasy/homebrew,tylerball/homebrew,morevalily/homebrew,h3r2on/homebrew,Lywangwenbin/homebrew,nju520/homebrew,epixa/homebrew,getgauge/homebrew,MoSal/homebrew,henry0312/homebrew,cnbin/homebrew,jianjin/homebrew,RandyMcMillan/homebrew,sptramer/homebrew,benswift404/homebrew,wkentaro/homebrew,alexethan/homebrew,osimola/homebrew,zj568/homebrew,georgschoelly/homebrew,caijinyan/homebrew,John-Colvin/homebrew,PikachuEXE/homebrew,marcwebbie/homebrew,andrew-regan/homebrew,jamesdphillips/homebrew,arrowcircle/homebrew,catap/homebrew,princeofdarkness76/homebrew,dongcarl/homebrew,mindrones/homebrew,aguynamedryan/homebrew,dickeyxxx/homebrew,outcoldman/linuxbrew,sorin-ionescu/homebrew,mmizutani/homebrew,dlo/homebrew,asparagui/homebrew,Red54/homebrew,royhodgman/homebrew,rgbkrk/homebrew,cmvelo/homebrew,davidmalcolm/homebrew,danielmewes/homebrew,voxxit/homebrew,mattprowse/homebrew,bbahrami/homebrew,cffk/homebrew,pampata/homebrew,cscetbon/homebrew,a1dutch/homebrew,hyuni/homebrew,Habbie/homebrew,bcomnes/homebrew,voxxit/homebrew,KevinSjoberg/homebrew,mciantyre/homebrew,docwhat/homebrew,bitrise-io/homebrew,sideci-sample/sideci-sample-homebrew,lnr0626/homebrew,mtigas/homebrew,helloworld-zh/homebrew,cmvelo/homebrew,mattbostock/homebrew,erezny/homebrew,jiashuw/homebrew,dholm/homebrew,utzig/homebrew,FiMka/homebrew,yonglehou/homebrew,whitej125/homebrew,evanrs/homebrew,tdsmith/linuxbrew,royhodgman/homebrew,tomyun/homebrew,neronplex/homebrew,liuquansheng47/Homebrew,neronplex/homebrew,kgb4000/homebrew,hmalphettes/homebrew,srikalyan/homebrew,rillian/homebrew,mprobst/homebrew,harsha-mudi/homebrew,dai0304/homebrew,rstacruz/homebrew,lrascao/homebrew,elasticdog/homebrew,e-jigsaw/homebrew,sferik/homebrew,pigoz/homebrew,caijinyan/homebrew,daviddavis/homebrew,Chilledheart/homebrew,tbetbetbe/linuxbrew,thuai/boxen,influxdata/homebrew,zoidbergwill/homebrew,Sachin-Ganesh/homebrew,romejoe/linuxbrew,MartinSeeler/homebrew,nkolomiec/homebrew,gnubila-france/linuxbrew,kbrock/homebrew,ffleming/homebrew,cristobal/homebrew,jbpionnier/homebrew,pampata/homebrew,dericed/homebrew,jkarneges/homebrew,klatys/homebrew,iamcharp/homebrew,Ferrari-lee/homebrew,timsutton/homebrew,alanthing/homebrew,gcstang/linuxbrew,5zzang/homebrew,joshua-rutherford/homebrew,patrickmckenna/homebrew,sugryo/homebrew,OlivierParent/homebrew,jmagnusson/homebrew,marcoceppi/homebrew,jwatzman/homebrew,andreyto/homebrew,ahihi/tigerbrew,lvicentesanchez/linuxbrew,AtnNn/homebrew,bl1nk/homebrew,mjbshaw/homebrew,robrix/homebrew,verdurin/homebrew,SuperNEMO-DBD/cadfaelbrew,kalbasit/homebrew,paour/homebrew,ktaragorn/homebrew,superlukas/homebrew,kilojoules/homebrew,ingmarv/homebrew,rstacruz/homebrew,whistlerbrk/homebrew,elyscape/homebrew,zoidbergwill/homebrew,tjhei/linuxbrew,kalbasit/homebrew,cvrebert/homebrew,Homebrew/homebrew,aristiden7o/homebrew,thebyrd/homebrew,fabianfreyer/homebrew,mactkg/homebrew,jeremiahyan/homebrew,bcwaldon/homebrew,markpeek/homebrew,haf/homebrew,grepnull/homebrew,OJFord/homebrew,baldwicc/homebrew,rnh/homebrew,pcottle/homebrew,tzudot/homebrew,Hs-Yeah/homebrew,MartinSeeler/homebrew,gicmo/homebrew,thos37/homebrew,khwon/homebrew,thuai/boxen,oschwald/homebrew,rstacruz/homebrew,AICIDNN/homebrew,will/homebrew,Cottser/homebrew,KevinSjoberg/homebrew,oubiwann/homebrew,ento/homebrew,jonas/homebrew,ablyler/homebrew,nju520/homebrew,bruno-/homebrew,danpalmer/homebrew,megahall/homebrew,ndimiduk/homebrew,alexandrecormier/homebrew,sublimino/linuxbrew,boshnivolo/homebrew,cmvelo/homebrew,danabrand/linuxbrew,feelpp/homebrew,gonzedge/homebrew,Lywangwenbin/homebrew,dreid93/homebrew,ktheory/homebrew,Russell91/homebrew,mndrix/homebrew,alindeman/homebrew,WangGL1985/homebrew,moltar/homebrew,xurui3762791/homebrew,Moisan/homebrew,bbahrami/homebrew,karlhigley/homebrew,tomguiter/homebrew,trajano/homebrew,colindean/homebrew,poindextrose/homebrew,iamcharp/homebrew,jbeezley/homebrew,SnoringFrog/homebrew,AGWA-forks/homebrew,keithws/homebrew,kikuchy/homebrew,boshnivolo/homebrew,jbaum98/linuxbrew,s6stuc/homebrew,TaylorMonacelli/homebrew,drbenmorgan/linuxbrew,1zaman/homebrew,songjizu001/homebrew,bertjwregeer/homebrew,tomas/linuxbrew,qorelanguage/homebrew,dlesaca/homebrew,smarek/homebrew,iandennismiller/homebrew,brotbert/homebrew,xyproto/homebrew,alebcay/homebrew,ilovezfs/homebrew,LaurentFough/homebrew,dongcarl/homebrew,Habbie/homebrew,shazow/homebrew,silentbicycle/homebrew,dgageot/homebrew,Hs-Yeah/homebrew,creack/homebrew,georgschoelly/homebrew,bluca/homebrew,lnr0626/homebrew,petemcw/homebrew,dlo/homebrew,MonCoder/homebrew,kidaa/homebrew,klazuka/homebrew,trajano/homebrew,exicon/homebrew,10sr/linuxbrew,creack/homebrew,calmez/homebrew,YOTOV-LIMITED/homebrew,mattfarina/homebrew,sportngin/homebrew,davidcelis/homebrew,reelsense/linuxbrew,shawndellysse/homebrew,alexreg/homebrew,frodeaa/homebrew,Sachin-Ganesh/homebrew,asparagui/homebrew,influxdata/homebrew,mxk1235/homebrew,adamliter/homebrew,jpascal/homebrew,caputomarcos/linuxbrew,lucas-clemente/homebrew,geometrybase/homebrew,Firefishy/homebrew,kawanet/homebrew,seeden/homebrew,phrase/homebrew,plattenschieber/homebrew,RadicalZephyr/homebrew,sitexa/homebrew,jehutymax/homebrew,feuvan/homebrew,durka/homebrew,ExtremeMan/homebrew,cscetbon/homebrew,MrChen2015/homebrew,mapbox/homebrew,robotblake/homebrew,creationix/homebrew,hanlu-chen/homebrew,jeffmo/homebrew,samthor/homebrew,darknessomi/homebrew,sidhart/homebrew,tuxu/homebrew,sock-puppet/homebrew,bidle/homebrew,Hasimir/homebrew,ieure/homebrew,drewpc/homebrew,pedromaltez-forks/homebrew,hikaruworld/homebrew,keithws/homebrew,frozzare/homebrew,RadicalZephyr/homebrew,LaurentFough/homebrew,alexreg/homebrew,francaguilar/homebrew,dickeyxxx/homebrew,ehogberg/homebrew,jehutymax/homebrew,nnutter/homebrew,qiruiyin/homebrew,chfast/homebrew,amarshall/homebrew,pcottle/homebrew,tseven/homebrew,akshayvaidya/homebrew,zoltansx/homebrew,base10/homebrew,lnr0626/homebrew,mommel/homebrew,Gasol/homebrew,treyharris/homebrew,jonas/homebrew,ariscop/homebrew,eagleflo/homebrew,dlesaca/homebrew,timomeinen/homebrew,dalanmiller/homebrew,miry/homebrew,wfalkwallace/homebrew,a1dutch/homebrew,soleo/homebrew,dtan4/homebrew,tany-ovcharenko/depot,rhendric/homebrew,callahad/homebrew,royalwang/homebrew,dtrebbien/homebrew,atsjj/homebrew,kbrock/homebrew,jeremiahyan/homebrew,blairham/homebrew,yazuuchi/homebrew,zeezey/homebrew,pdxdan/homebrew,max-horvath/homebrew,3van/homebrew,harsha-mudi/homebrew,TaylorMonacelli/homebrew,polishgeeks/homebrew,hkwan003/homebrew,ortho/homebrew,joeyhoer/homebrew,mobileoverlord/homebrew-1,emilyst/homebrew,dtan4/homebrew,grmartin/homebrew,anarchivist/homebrew,whistlerbrk/homebrew,ehamberg/homebrew,mgiglia/homebrew,influxdata/homebrew,MrChen2015/homebrew,ericfischer/homebrew,outcoldman/homebrew,ldiqual/homebrew,moltar/homebrew,bettyDes/homebrew,vigo/homebrew,catap/homebrew,adevress/homebrew,sorin-ionescu/homebrew,adamchainz/homebrew,mroth/homebrew,dongcarl/homebrew,robrix/homebrew,booi/homebrew,kwilczynski/homebrew,docwhat/homebrew,pampata/homebrew,swallat/homebrew,arg/homebrew,bluca/homebrew,blairham/homebrew,jackmcgreevy/homebrew,lrascao/homebrew,nicowilliams/homebrew,oubiwann/homebrew,goodcodeguy/homebrew,manphiz/homebrew,nshemonsky/homebrew,jiashuw/homebrew,adriancole/homebrew,durka/homebrew,thinker0/homebrew,ehogberg/homebrew,mathieubolla/homebrew,haosdent/homebrew,akshayvaidya/homebrew,psibre/homebrew,jbaum98/linuxbrew,johanhammar/homebrew,theckman/homebrew,hvnsweeting/homebrew,xb123456456/homebrew,Hasimir/homebrew,yidongliu/homebrew,rhunter/homebrew,moltar/homebrew,amenk/linuxbrew,nandub/homebrew,utzig/homebrew,ericfischer/homebrew,psibre/homebrew,kawanet/homebrew,rhoffman3621/learn-rails,virtuald/homebrew,rneatherway/homebrew,tehmaze-labs/homebrew,cffk/homebrew,hanlu-chen/homebrew,gnubila-france/linuxbrew,vladshablinsky/homebrew,ctate/autocode-homebrew,int3h/homebrew,kbinani/homebrew,flysonic10/homebrew,ericfischer/homebrew,lemaiyan/homebrew,harelba/homebrew,aristiden7o/homebrew,avnit/EGroovy,esamson/homebrew,haihappen/homebrew,jesboat/homebrew,megahall/homebrew,sportngin/homebrew,chkuendig/homebrew,hmalphettes/homebrew,scpeters/homebrew,onlynone/homebrew,coldeasy/homebrew,lewismc/homebrew,bendemaree/homebrew,dambrisco/homebrew,protomouse/homebrew,187j3x1/homebrew,craigbrad/homebrew,Gui13/linuxbrew,halloleo/homebrew,alindeman/homebrew,paour/homebrew,Cutehacks/homebrew,hwhelchel/homebrew,haosdent/homebrew,stoshiya/homebrew,base10/homebrew,sje30/homebrew,zfarrell/homebrew,tyrchen/homebrew,slnovak/homebrew,freedryk/homebrew,jiashuw/homebrew,bcomnes/homebrew,geometrybase/homebrew,alindeman/homebrew,nathancahill/homebrew,Linuxbrew/linuxbrew,mattfritz/homebrew,feugenix/homebrew,jose-cieni-movile/homebrew,jimmy906/homebrew,slnovak/homebrew,teslamint/homebrew,ericzhou2008/homebrew,kalbasit/homebrew,mtfelix/homebrew,englishm/homebrew,cesar2535/homebrew,emcrisostomo/homebrew,creack/homebrew,peteristhegreat/homebrew,rosalsm/homebrew,dunn/homebrew,lemaiyan/homebrew,ainstushar/homebrew,chenflat/homebrew,tomguiter/homebrew,afh/homebrew,mobileoverlord/homebrew-1,zenazn/homebrew,nshemonsky/homebrew,plattenschieber/homebrew,jbpionnier/homebrew,wrunnery/homebrew,alexreg/homebrew,theeternalsw0rd/homebrew,frozzare/homebrew,tzudot/homebrew,ericzhou2008/homebrew,ryanmt/homebrew,andreyto/homebrew,Cottser/homebrew,xanderlent/homebrew,karlhigley/homebrew,jack-and-rozz/linuxbrew,dconnolly/homebrew,kimhunter/homebrew,jcassiojr/homebrew,jbeezley/homebrew,dai0304/homebrew,mindrones/homebrew,julienXX/homebrew,waynegraham/homebrew,LinusU/homebrew,gawbul/homebrew,cprecioso/homebrew,hikaruworld/homebrew,mattprowse/homebrew,tutumcloud/homebrew,afdnlw/linuxbrew,bwmcadams/homebrew,syhw/homebrew,sublimino/linuxbrew,calmez/homebrew,jkarneges/homebrew,pullreq/homebrew,polishgeeks/homebrew,adamchainz/homebrew,paulbakker/homebrew,QuinnyPig/homebrew,stevenjack/homebrew,windoze/homebrew,valkjsaaa/homebrew,razamatan/homebrew,kevmoo/homebrew,jsjohnst/homebrew,SnoringFrog/homebrew,wkentaro/homebrew,kevmoo/homebrew,zoltansx/homebrew,timomeinen/homebrew,dutchcoders/homebrew,mgiglia/homebrew,mkrapp/homebrew,tylerball/homebrew,antst/homebrew,iggyvolz/linuxbrew,codeout/homebrew,sometimesfood/homebrew,slyphon/homebrew,jedahan/homebrew,bettyDes/homebrew,jbpionnier/homebrew,jpascal/homebrew,jspahrsummers/homebrew,caputomarcos/linuxbrew,alex-zhang/homebrew,denvazh/homebrew,gunnaraasen/homebrew,marcusandre/homebrew,LinusU/homebrew,cnbin/homebrew,andyshinn/homebrew,alanthing/homebrew,koraktor/homebrew,alexandrecormier/homebrew,songjizu001/homebrew,denvazh/homebrew,tdsmith/linuxbrew,onlynone/homebrew,trskop/linuxbrew,trajano/homebrew,marcelocantos/homebrew,rwstauner/homebrew,e-jigsaw/homebrew,cristobal/homebrew,erkolson/homebrew,bjorand/homebrew,youprofit/homebrew,kevmoo/homebrew,AGWA-forks/homebrew,sje30/homebrew,tjt263/homebrew,e-jigsaw/homebrew,zfarrell/homebrew,ablyler/homebrew,ldiqual/homebrew,quantumsteve/homebrew,cchacin/homebrew,atsjj/homebrew,guoxiao/homebrew,RandyMcMillan/homebrew,kodabb/homebrew,megahall/homebrew,barn/homebrew,sigma-random/homebrew,mroch/homebrew,boyanpenkov/homebrew,exicon/homebrew,liamstask/homebrew,ainstushar/homebrew,cbenhagen/homebrew,manphiz/homebrew,harsha-mudi/homebrew,jeromeheissler/homebrew,craig5/homebrew,JerroldLee/homebrew,sideci-sample/sideci-sample-homebrew,klatys/homebrew,prasincs/homebrew,mkrapp/homebrew,jose-cieni-movile/homebrew,MartinSeeler/homebrew,prasincs/homebrew,pcottle/homebrew,petemcw/homebrew,hwhelchel/homebrew,jiaoyigui/homebrew,ryanshaw/homebrew,Noctem/homebrew,whitej125/homebrew,jsallis/homebrew,dirn/homebrew,linse073/homebrew,zchee/homebrew,apjanke/homebrew,skatsuta/homebrew,seeden/homebrew,bluca/homebrew,quantumsteve/homebrew,tuxu/homebrew,blogabe/homebrew,whistlerbrk/homebrew,tdsmith/linuxbrew,MartinDelille/homebrew,jimmy906/homebrew,mbrevda/homebrew,alebcay/homebrew,gildegoma/homebrew,joschi/homebrew,zebMcCorkle/homebrew,okuramasafumi/homebrew,cnbin/homebrew,moyogo/homebrew,protomouse/homebrew,oschwald/homebrew,3van/homebrew,danpalmer/homebrew,lmontrieux/homebrew,ExtremeMan/homebrew,aristiden7o/homebrew,kwadade/LearnRuby,cbeck88/linuxbrew,eagleflo/homebrew,LegNeato/homebrew,mattfritz/homebrew,Redth/homebrew,pwnall/homebrew,guidomb/homebrew,kimhunter/homebrew,thinker0/homebrew,nelstrom/homebrew,giffels/homebrew,bruno-/homebrew,phatblat/homebrew,sock-puppet/homebrew,bcomnes/homebrew,torgartor21/homebrew,davydden/homebrew,menivaitsi/homebrew,RSamokhin/homebrew,totalvoidness/homebrew,andy12530/homebrew,Lywangwenbin/homebrew,andyshinn/homebrew,tjt263/homebrew,yyn835314557/homebrew,pvrs12/homebrew,eugenesan/homebrew,oneillkza/linuxbrew,khwon/homebrew,josa42/homebrew,boneskull/homebrew,pigoz/homebrew,pedromaltez-forks/homebrew,cffk/homebrew,tomas/homebrew,jessamynsmith/homebrew,Austinpb/homebrew,buzzedword/homebrew,NfNitLoop/homebrew,hmalphettes/homebrew,akupila/homebrew,windoze/homebrew,benjaminfrank/homebrew,xinlehou/homebrew,dolfly/homebrew,cHoco/homebrew,deorth/homebrew,Austinpb/homebrew,frickler01/homebrew,frodeaa/homebrew,Angeldude/linuxbrew,bruno-/homebrew,phrase/homebrew,arnested/homebrew,slyphon/homebrew,alex-zhang/homebrew,jab/homebrew,jedahan/homebrew,msurovcak/homebrew,kmiscia/homebrew,marcwebbie/homebrew,hanxue/homebrew,ffleming/homebrew,reelsense/homebrew,rlister/homebrew,summermk/homebrew,adamliter/homebrew,julienXX/homebrew,linkinpark342/homebrew,chabhishek123/homebrew,ryanfb/homebrew,soleo/homebrew,anders/homebrew,otaran/homebrew,wolfd/homebrew,jbaum98/linuxbrew,alexbukreev/homebrew,marcelocantos/homebrew,kodabb/homebrew,dkotvan/homebrew,ablyler/homebrew,hyokosdeveloper/linuxbrew,sidhart/homebrew,koraktor/homebrew,antst/homebrew,baob/homebrew,zachmayer/homebrew,grob3/homebrew,danieroux/homebrew,geoff-codes/homebrew,supriyantomaftuh/homebrew,zenazn/homebrew,kashif/homebrew,TrevorSayre/homebrew,AtnNn/homebrew,egentry/homebrew,number5/homebrew,omriiluz/homebrew,bettyDes/homebrew,gicmo/homebrew,princeofdarkness76/linuxbrew,eighthave/homebrew,verdurin/homebrew,jkarneges/homebrew,koenrh/homebrew,jpsim/homebrew,AGWA-forks/homebrew,manphiz/homebrew,Chilledheart/homebrew,amjith/homebrew,kilojoules/homebrew,adriancole/homebrew,optikfluffel/homebrew,dalguji/homebrew,tuxu/homebrew,silentbicycle/homebrew,cHoco/homebrew,kad/homebrew,thejustinwalsh/homebrew,creack/homebrew,buzzedword/homebrew,Asuranceturix/homebrew,Zearin/homebrew,rcombs/homebrew,maxhope/homebrew,Homebrew/linuxbrew,jose-cieni-movile/homebrew,5zzang/homebrew,saketkc/linuxbrew,drewpc/homebrew,cjheath/homebrew,mbrevda/homebrew,mattfritz/homebrew,ybott/homebrew,AlexejK/homebrew,bendemaree/homebrew,fabianfreyer/homebrew,frozzare/homebrew,lhahne/homebrew,jessamynsmith/homebrew,osimola/homebrew,alex-zhang/homebrew,huitseeker/homebrew,thos37/homebrew,dai0304/homebrew,nysthee/homebrew,OlivierParent/homebrew,Russell91/homebrew,rneatherway/homebrew,barn/homebrew,brendanator/linuxbrew,187j3x1/homebrew,rhunter/homebrew,lrascao/homebrew,tomyun/homebrew,royhodgman/homebrew,dkotvan/homebrew,mpfz0r/homebrew,phrase/homebrew,AntonioMeireles/homebrew,mrkn/homebrew,sferik/homebrew,andy12530/homebrew,tpot/homebrew,telamonian/linuxbrew,andy12530/homebrew,mhartington/homebrew,linse073/homebrew,MoSal/homebrew,TaylorMonacelli/homebrew,craigbrad/homebrew,gabelevi/homebrew,chkuendig/homebrew,denvazh/homebrew,Red54/homebrew,phrase/homebrew,DDShadoww/homebrew,craig5/homebrew,zoltansx/homebrew,ryanshaw/homebrew,antst/homebrew,patrickmckenna/homebrew,sjackman/linuxbrew,linkinpark342/homebrew,idolize/homebrew,tomas/linuxbrew,dambrisco/homebrew,n8henrie/homebrew,2inqui/homebrew,jwillemsen/homebrew,creationix/homebrew,polamjag/homebrew,dholm/homebrew,georgschoelly/homebrew,telamonian/linuxbrew,dstftw/homebrew,esalling23/homebrew,thuai/boxen,nathancahill/homebrew,tstack/homebrew,godu/homebrew,hvnsweeting/homebrew,rs/homebrew,dkotvan/homebrew,tghs/linuxbrew,brianmhunt/homebrew,rtyley/homebrew,chiefy/homebrew,polamjag/homebrew,lucas-clemente/homebrew,apjanke/homebrew,recruit-tech/homebrew,ssp/homebrew,chkuendig/homebrew,kim0/homebrew,petercm/homebrew,rnh/homebrew,zhimsel/homebrew,Klozz/homebrew,drbenmorgan/linuxbrew,felixonmars/homebrew,iandennismiller/homebrew,dardo82/homebrew,anarchivist/homebrew,wadejong/homebrew,grepnull/homebrew,yidongliu/homebrew,polamjag/homebrew,feuvan/homebrew,mavimo/homebrew,TrevorSayre/homebrew,qskycolor/homebrew,davidmalcolm/homebrew,ilovezfs/homebrew,muellermartin/homebrew,swallat/homebrew,deorth/homebrew,jwillemsen/linuxbrew,atsjj/homebrew,arg/homebrew,giffels/homebrew,justjoheinz/homebrew,mommel/homebrew,tomekr/homebrew,ebouaziz/linuxbrew,morevalily/homebrew,wfarr/homebrew,davidcelis/homebrew,recruit-tech/homebrew,henry0312/homebrew,reelsense/linuxbrew,tbeckham/homebrew,Red54/homebrew,nshemonsky/homebrew,erkolson/homebrew,tomyun/homebrew,wolfd/homebrew,bidle/homebrew,dholm/homebrew,hkwan003/homebrew,ngoyal/homebrew,msurovcak/homebrew,henry0312/homebrew,callahad/homebrew,ryanshaw/homebrew,brianmhunt/homebrew,Austinpb/homebrew,pdpi/homebrew,aaronwolen/homebrew,jab/homebrew,mroch/homebrew,alexbukreev/homebrew,sdebnath/homebrew,verbitan/homebrew,Dreysman/homebrew,tdsmith/linuxbrew,sigma-random/homebrew,bkonosky/homebrew,nkolomiec/homebrew,ened/homebrew,tuedan/homebrew,cosmo0920/homebrew,blairham/homebrew,sptramer/homebrew,mroth/homebrew,tomas/linuxbrew,englishm/homebrew,cesar2535/homebrew,jedahan/homebrew,rhoffman3621/learn-rails,torgartor21/homebrew,MSch/homebrew,jwillemsen/homebrew,skatsuta/homebrew,nnutter/homebrew,yonglehou/homebrew,ened/homebrew,avnit/EGroovy,Krasnyanskiy/homebrew,LeoCavaille/homebrew,thuai/boxen,cbenhagen/homebrew,brevilo/linuxbrew,1zaman/homebrew,adamchainz/homebrew,osimola/homebrew,bchatard/homebrew,miry/homebrew,akupila/homebrew,brunchboy/homebrew,rcombs/homebrew,bertjwregeer/homebrew,ge11232002/homebrew,pullreq/homebrew,danabrand/linuxbrew,docwhat/homebrew,feelpp/homebrew,iblueer/homebrew,NRauh/homebrew,getgauge/homebrew,theeternalsw0rd/homebrew,tavisto/homebrew,bl1nk/homebrew,cjheath/homebrew,vinodkone/homebrew,SiegeLord/homebrew,mxk1235/homebrew,chadcatlett/homebrew,heinzf/homebrew,auvi/homebrew,FiMka/homebrew,tobz-nz/homebrew,tomguiter/homebrew,alindeman/homebrew,oliviertilmans/homebrew,godu/homebrew,mattfarina/homebrew,packetcollision/homebrew,ebardsley/homebrew,kimhunter/homebrew,freedryk/homebrew,elasticdog/homebrew,RSamokhin/homebrew,kyanny/homebrew,xcezx/homebrew,Moisan/homebrew,docwhat/homebrew,ssgelm/homebrew,Dreysman/homebrew,hermansc/homebrew,petercm/homebrew,FiMka/homebrew,jwatzman/homebrew,xcezx/homebrew,gonzedge/homebrew,dtrebbien/homebrew,supriyantomaftuh/homebrew,elasticdog/homebrew,booi/homebrew,grmartin/homebrew,justjoheinz/homebrew,higanworks/homebrew,deployable/homebrew,liamstask/homebrew,darknessomi/homebrew,jacobsa/homebrew,karlhigley/homebrew,klazuka/homebrew,atsjj/homebrew,virtuald/homebrew,benjaminfrank/homebrew,heinzf/homebrew,ngoyal/homebrew,hmalphettes/homebrew,s6stuc/homebrew,jgelens/homebrew,jackmcgreevy/homebrew,jf647/homebrew,kenips/homebrew,xcezx/homebrew,Klozz/homebrew,antogg/homebrew,mommel/homebrew,southwolf/homebrew,wrunnery/homebrew,filcab/homebrew,bl1nk/homebrew,clemensg/homebrew,slnovak/homebrew,smarek/homebrew,davydden/linuxbrew,kgb4000/homebrew,yumitsu/homebrew,MonCoder/homebrew,saketkc/homebrew,zorosteven/homebrew,winordie-47/linuxbrew1,Hs-Yeah/homebrew,SteveClement/homebrew,ralic/homebrew,klatys/homebrew,kim0/homebrew,ktaragorn/homebrew,amjith/homebrew,verbitan/homebrew,antogg/homebrew,nysthee/homebrew,ngoldbaum/homebrew,liuquansheng47/Homebrew,boshnivolo/homebrew,alfasapy/homebrew,max-horvath/homebrew,cvrebert/homebrew,zabawaba99/homebrew,jingweno/homebrew,anders/homebrew,mgiglia/homebrew,hanlu-chen/homebrew,frozzare/homebrew,AlekSi/homebrew,cosmo0920/homebrew,mokkun/homebrew,tjhei/linuxbrew,zabawaba99/homebrew,cHoco/homebrew,hanxue/homebrew,influxdb/homebrew,gabelevi/homebrew,dolfly/homebrew,rgbkrk/homebrew,KenanSulayman/homebrew,zj568/homebrew,dreid93/homebrew,thos37/homebrew,tjnycum/homebrew,patrickmckenna/homebrew,ge11232002/homebrew,adriancole/homebrew,hikaruworld/homebrew,aristiden7o/homebrew,jconley/homebrew,boneskull/homebrew,afh/homebrew,ls2uper/homebrew,lvicentesanchez/linuxbrew,felixonmars/homebrew,heinzf/homebrew,ahihi/tigerbrew,outcoldman/linuxbrew,tsaeger/homebrew,bendoerr/homebrew,dplarson/homebrew,ainstushar/homebrew,bukzor/homebrew,Ferrari-lee/homebrew,pitatensai/homebrew,OlivierParent/homebrew,knpwrs/homebrew,will/homebrew,endelwar/homebrew,rosalsm/homebrew,bbahrami/homebrew,epixa/homebrew,brevilo/linuxbrew,dpalmer93/homebrew,mhartington/homebrew,davydden/linuxbrew,h3r2on/homebrew,brunchboy/homebrew,cristobal/homebrew,yyn835314557/homebrew,AntonioMeireles/homebrew,tylerball/homebrew,amarshall/homebrew,kwadade/LearnRuby,yonglehou/homebrew,tbeckham/homebrew,rlister/homebrew,nelstrom/homebrew,jmtd/homebrew,Linuxbrew/linuxbrew,Ivanopalas/homebrew,helloworld-zh/homebrew,AlekSi/homebrew,OJFord/homebrew,jsjohnst/homebrew,deorth/homebrew,lmontrieux/homebrew,mtfelix/homebrew,thos37/homebrew,cvrebert/homebrew,codeout/homebrew,rneatherway/homebrew,alanthing/homebrew,josa42/homebrew,ybott/homebrew,clemensg/homebrew,Homebrew/homebrew,dmarkrollins/homebrew,cscetbon/homebrew,ariscop/homebrew,chadcatlett/homebrew,tutumcloud/homebrew,5zzang/homebrew,jmstacey/homebrew,gawbul/homebrew,johanhammar/homebrew,muellermartin/homebrew,zabawaba99/homebrew,ctate/autocode-homebrew,finde/homebrew,reelsense/homebrew,ajshort/homebrew,Drewshg312/homebrew,linse073/homebrew,FiMka/homebrew,jonafato/homebrew,dstftw/homebrew,tobz-nz/homebrew,ento/homebrew,dreid93/homebrew,sjackman/linuxbrew,alexethan/homebrew,ahihi/tigerbrew,hermansc/homebrew,dunn/homebrew,MoSal/homebrew,scorphus/homebrew,chabhishek123/homebrew,jmstacey/homebrew,quantumsteve/homebrew,haihappen/homebrew,galaxy001/homebrew,John-Colvin/homebrew,LeoCavaille/homebrew,feelpp/homebrew,Russell91/homebrew,Gutek/homebrew,anjackson/homebrew,cosmo0920/homebrew,drewwells/homebrew,kevinastone/homebrew,okuramasafumi/homebrew,poindextrose/homebrew,winordie-47/linuxbrew1,gvangool/homebrew,sarvex/linuxbrew,tbetbetbe/linuxbrew,theeternalsw0rd/homebrew,pcottle/homebrew,mrkn/homebrew,sje30/homebrew,elasticdog/homebrew,elamc/homebrew,emilyst/homebrew,hongkongkiwi/homebrew,ktheory/homebrew,erezny/homebrew,base10/homebrew,ndimiduk/homebrew,elyscape/homebrew,kenips/homebrew,dai0304/homebrew,afh/homebrew,thinker0/homebrew,sidhart/homebrew,bendemaree/homebrew,dongcarl/homebrew,omriiluz/homebrew,nandub/homebrew,kad/homebrew,arg/homebrew,ls2uper/homebrew,filcab/homebrew,bkonosky/homebrew,adevress/homebrew,bbahrami/homebrew,flysonic10/homebrew,halloleo/homebrew,kyanny/homebrew,gvangool/homebrew,galaxy001/homebrew,mattfarina/homebrew,tghs/linuxbrew,antst/homebrew,sarvex/linuxbrew,robotblake/homebrew,Monits/homebrew,bendoerr/homebrew,glowe/homebrew,tbeckham/homebrew,markpeek/homebrew,ssgelm/homebrew,jiaoyigui/homebrew,feugenix/homebrew,mavimo/homebrew,callahad/homebrew,cesar2535/homebrew,alexandrecormier/homebrew,pigri/homebrew,gawbul/homebrew,rcombs/homebrew,barn/homebrew,dunn/linuxbrew,razamatan/homebrew,jehutymax/homebrew,lewismc/homebrew,pnorman/homebrew,lemaiyan/homebrew,miry/homebrew,princeofdarkness76/linuxbrew,tstack/homebrew,xuebinglee/homebrew,protomouse/homebrew,alexethan/homebrew,qorelanguage/homebrew,emilyst/homebrew,alex/homebrew,pvrs12/homebrew,wfarr/homebrew,getgauge/homebrew,LonnyGomes/homebrew,manphiz/homebrew,miketheman/homebrew,dtrebbien/homebrew,saketkc/linuxbrew,zachmayer/homebrew,nysthee/homebrew,tzudot/homebrew,tonyghita/homebrew,erezny/homebrew,iggyvolz/linuxbrew,SnoringFrog/homebrew,hyuni/homebrew,arcivanov/linuxbrew,frickler01/homebrew,arg/homebrew,martinklepsch/homebrew,waynegraham/homebrew,oliviertilmans/homebrew,alexandrecormier/homebrew,optikfluffel/homebrew,Homebrew/linuxbrew,tbetbetbe/linuxbrew,michaKFromParis/homebrew-sparks,amenk/linuxbrew,dalanmiller/homebrew,marcoceppi/homebrew,Monits/homebrew,peteristhegreat/homebrew,karlhigley/homebrew,jcassiojr/homebrew,tomas/homebrew,wangranche/homebrew,eighthave/homebrew,Homebrew/linuxbrew,jpscaletti/homebrew,jsjohnst/homebrew,martinklepsch/homebrew,kawanet/homebrew,bkonosky/homebrew,skinny-framework/homebrew,zchee/homebrew,Spacecup/homebrew,mattfritz/homebrew,jamesdphillips/homebrew,mattfarina/homebrew,TrevorSayre/homebrew,auvi/homebrew,tpot/homebrew,bukzor/homebrew,Chilledheart/homebrew,nju520/homebrew,bjlxj2008/homebrew,linkinpark342/homebrew,scorphus/homebrew,miry/homebrew,fabianschuiki/homebrew,AtkinsChang/homebrew,pullreq/homebrew,Redth/homebrew,nelstrom/homebrew,erkolson/homebrew,simsicon/homebrew,arrowcircle/homebrew,kenips/homebrew,LegNeato/homebrew,gyaresu/homebrew,malmaud/homebrew,simsicon/homebrew,jmagnusson/homebrew,oncletom/homebrew,pampata/homebrew,tonyghita/homebrew,jpscaletti/homebrew,kkirsche/homebrew,okuramasafumi/homebrew,mciantyre/homebrew,tghs/linuxbrew,telamonian/linuxbrew,muellermartin/homebrew,alexbukreev/homebrew,darknessomi/homebrew,number5/homebrew,waynegraham/homebrew,bright-sparks/homebrew,verbitan/homebrew,dutchcoders/homebrew,stevenjack/homebrew,pinkpolygon/homebrew,colindean/homebrew,denvazh/homebrew,tseven/homebrew,missingcharacter/homebrew,dtan4/homebrew,187j3x1/homebrew,dmarkrollins/homebrew,tavisto/homebrew,markpeek/homebrew,jamesdphillips/homebrew,dreid93/homebrew,jonas/homebrew,harelba/homebrew,chenflat/homebrew,cmvelo/homebrew,andyshinn/homebrew,cvrebert/homebrew,1zaman/homebrew,psibre/homebrew,AlexejK/homebrew,LonnyGomes/homebrew,creationix/homebrew,martinklepsch/homebrew,iamcharp/homebrew,francaguilar/homebrew,QuinnyPig/homebrew,jonafato/homebrew,adamliter/linuxbrew,Asuranceturix/homebrew,kmiscia/homebrew,cprecioso/homebrew,jingweno/homebrew,apjanke/homebrew,mhartington/homebrew,stevenjack/homebrew,cbeck88/linuxbrew,soleo/homebrew,moyogo/homebrew,anders/homebrew,JerroldLee/homebrew,SnoringFrog/homebrew,tuedan/homebrew,djun-kim/homebrew,eugenesan/homebrew,ianbrandt/homebrew,southwolf/homebrew,blairham/homebrew,outcoldman/linuxbrew,mroch/homebrew,silentbicycle/homebrew,jarrettmeyer/homebrew,geometrybase/homebrew,kvs/homebrew,qskycolor/homebrew,goodcodeguy/homebrew,jessamynsmith/homebrew,mapbox/homebrew,glowe/homebrew,mprobst/homebrew,dplarson/homebrew,petercm/homebrew,pdpi/homebrew,kikuchy/homebrew,superlukas/homebrew,dalinaum/homebrew,voxxit/homebrew,AtkinsChang/homebrew,cosmo0920/homebrew,nelstrom/homebrew,tghs/linuxbrew,BlackFrog1/homebrew,ldiqual/homebrew,quantumsteve/homebrew,cooltheo/homebrew,jingweno/homebrew,mgiglia/homebrew,kashif/homebrew,dardo82/homebrew,jianjin/homebrew,iostat/homebrew2,ryanfb/homebrew,danielmewes/homebrew,tdsmith/linuxbrew,RadicalZephyr/homebrew,jab/homebrew,sachiketi/homebrew,kkirsche/homebrew,AGWA-forks/homebrew,jkarneges/homebrew,kvs/homebrew,skatsuta/homebrew,idolize/homebrew,redpen-cc/homebrew,bukzor/homebrew,nicowilliams/homebrew,samplecount/homebrew,joeyhoer/homebrew,zhipeng-jia/homebrew,ge11232002/homebrew,jmagnusson/homebrew,cchacin/homebrew,OJFord/homebrew,Spacecup/homebrew,bukzor/linuxbrew,kad/homebrew,SteveClement/homebrew,danielmewes/homebrew,GeekHades/homebrew,rillian/homebrew,pgr0ss/homebrew,s6stuc/homebrew,creationix/homebrew,jlisic/linuxbrew,redpen-cc/homebrew,kad/homebrew,kmiscia/homebrew,jbarker/homebrew,petere/homebrew,alindeman/homebrew,wolfd/homebrew,jacobsa/homebrew,baob/homebrew,ear/homebrew,amenk/linuxbrew,esalling23/homebrew,Krasnyanskiy/homebrew,ryanmt/homebrew,SampleLiao/homebrew,jamesdphillips/homebrew,ehamberg/homebrew,klatys/homebrew,xcezx/homebrew,dholm/homebrew,eagleflo/homebrew,hongkongkiwi/homebrew,tzudot/homebrew,petere/homebrew,oncletom/homebrew,grepnull/homebrew,rhendric/homebrew,muellermartin/homebrew,oubiwann/homebrew,teslamint/homebrew,boshnivolo/homebrew,kawanet/homebrew,iblueer/homebrew,mbi/homebrew,SampleLiao/homebrew,frozzare/homebrew,ralic/homebrew,adamliter/linuxbrew,gunnaraasen/homebrew,helloworld-zh/homebrew,lewismc/homebrew,bidle/homebrew,KenanSulayman/homebrew,andreyto/homebrew,lvicentesanchez/homebrew,kimhunter/homebrew,koenrh/homebrew,tpot/homebrew,getgauge/homebrew,akupila/homebrew,dambrisco/homebrew,iggyvolz/linuxbrew,ingmarv/homebrew,ear/homebrew,mttrb/homebrew,bcwaldon/homebrew,saketkc/homebrew,AtnNn/homebrew,sakra/homebrew,prasincs/homebrew,afb/homebrew,supriyantomaftuh/homebrew,BlackFrog1/homebrew,chfast/homebrew,ffleming/homebrew,yazuuchi/homebrew,dpalmer93/homebrew,robotblake/homebrew,danielfariati/homebrew,bidle/homebrew,omriiluz/homebrew,gonzedge/homebrew,akshayvaidya/homebrew,ExtremeMan/homebrew,ekmett/homebrew,andrew-regan/homebrew,DarthGandalf/homebrew,lvh/homebrew,ybott/homebrew,grob3/homebrew,Gui13/linuxbrew,alex-courtis/homebrew,bjorand/homebrew,supriyantomaftuh/homebrew,otaran/homebrew,jmagnusson/homebrew,JerroldLee/homebrew,caputomarcos/linuxbrew,treyharris/homebrew,ear/homebrew,paulbakker/homebrew,kvs/homebrew,treyharris/homebrew,thejustinwalsh/homebrew,mtigas/homebrew,johanhammar/homebrew,kazuho/homebrew,sptramer/homebrew,LaurentFough/homebrew,vinicius5581/homebrew,keith/homebrew,amjith/homebrew,digiter/linuxbrew,Drewshg312/homebrew,alex-zhang/homebrew,sitexa/homebrew,caputomarcos/linuxbrew,RandyMcMillan/homebrew,galaxy001/homebrew,lvicentesanchez/homebrew,brunchboy/homebrew,danieroux/homebrew,julienXX/homebrew,joshua-rutherford/homebrew,decors/homebrew,totalvoidness/homebrew,emcrisostomo/homebrew,romejoe/linuxbrew,cooltheo/homebrew,xyproto/homebrew,RSamokhin/homebrew,michaKFromParis/homebrew-sparks,h3r2on/homebrew,kwadade/LearnRuby,waj/homebrew,sptramer/homebrew,stoshiya/homebrew,finde/homebrew,ls2uper/homebrew,jlisic/linuxbrew,dalanmiller/homebrew,cchacin/homebrew,auvi/homebrew,endelwar/homebrew,vihangm/homebrew,Cottser/homebrew,influxdb/homebrew,Klozz/homebrew,mroth/homebrew,ktaragorn/homebrew,drbenmorgan/linuxbrew,iamcharp/homebrew,rstacruz/homebrew,tkelman/homebrew,peteristhegreat/homebrew,ericfischer/homebrew,influxdb/homebrew,mcolic/homebrew,hyokosdeveloper/linuxbrew,wadejong/homebrew,codeout/homebrew,nathancahill/homebrew,afdnlw/linuxbrew,jeromeheissler/homebrew,tpot/homebrew,oncletom/homebrew,ericzhou2008/homebrew,marcwebbie/homebrew,jarrettmeyer/homebrew,changzuozhen/homebrew,wfalkwallace/homebrew,ebardsley/homebrew,gunnaraasen/homebrew,cchacin/homebrew,mjbshaw/homebrew,colindean/homebrew,Klozz/homebrew,smarek/homebrew,mroch/homebrew,mbrevda/homebrew,a1dutch/homebrew,mtfelix/homebrew,SampleLiao/homebrew,Homebrew/homebrew,poindextrose/homebrew,jwatzman/homebrew,TaylorMonacelli/homebrew,TrevorSayre/homebrew,e-jigsaw/homebrew,virtuald/homebrew,jf647/homebrew,baob/homebrew,nysthee/homebrew,Redth/homebrew,MartinDelille/homebrew,arnested/homebrew,adamliter/linuxbrew,raphaelcohn/homebrew,giffels/homebrew,msurovcak/homebrew,haihappen/homebrew,guidomb/homebrew,mmizutani/homebrew,yangj1e/homebrew,yoshida-mediba/homebrew,kikuchy/homebrew,number5/homebrew,bwmcadams/homebrew,kkirsche/homebrew,xuebinglee/homebrew,alfasapy/homebrew,jmstacey/homebrew,missingcharacter/homebrew,saketkc/linuxbrew,ngoyal/homebrew,ianbrandt/homebrew,3van/homebrew,gnubila-france/linuxbrew,Kentzo/homebrew,cprecioso/homebrew,ldiqual/homebrew,mobileoverlord/homebrew-1,mmizutani/homebrew,cjheath/homebrew,marcoceppi/homebrew,thrifus/homebrew,amarshall/homebrew,dgageot/homebrew,brendanator/linuxbrew,dickeyxxx/homebrew,tkelman/homebrew,rs/homebrew,ExtremeMan/homebrew,Noctem/homebrew,oneillkza/linuxbrew,raphaelcohn/homebrew,nkolomiec/homebrew,e-jigsaw/homebrew,wadejong/homebrew,ktheory/homebrew,shawndellysse/homebrew,alfasapy/homebrew,brotbert/homebrew,dholm/linuxbrew,polamjag/homebrew,odekopoon/homebrew,superlukas/homebrew,seegno-forks/homebrew,tany-ovcharenko/depot,rhunter/homebrew,6100590/homebrew,digiter/linuxbrew,indera/homebrew,egentry/homebrew,gnubila-france/linuxbrew,a-b/homebrew,afb/homebrew,pedromaltez-forks/homebrew,tkelman/homebrew,dmarkrollins/homebrew,cjheath/homebrew,indrajitr/homebrew,DoomHammer/linuxbrew,benesch/homebrew,Linuxbrew/linuxbrew,zfarrell/homebrew,pnorman/homebrew,superlukas/homebrew,mciantyre/homebrew,sock-puppet/homebrew,maxhope/homebrew,shazow/homebrew,daviddavis/homebrew,scpeters/homebrew,fabianschuiki/homebrew,srikalyan/homebrew,royalwang/homebrew,cooltheo/homebrew,qiruiyin/homebrew,englishm/homebrew,sock-puppet/homebrew,blairham/homebrew,LeonB/linuxbrew,zeha/homebrew,lvh/homebrew,geoff-codes/homebrew,dambrisco/homebrew,helloworld-zh/homebrew,rlhh/homebrew,mtfelix/homebrew,lmontrieux/homebrew,klazuka/homebrew,mtigas/homebrew,h3r2on/homebrew,bchatard/homebrew,gcstang/homebrew,optikfluffel/homebrew,mjbshaw/homebrew,SiegeLord/homebrew,ortho/homebrew,linjunpop/homebrew,dgageot/homebrew,antogg/homebrew,cooltheo/homebrew,SteveClement/homebrew,Kentzo/homebrew,zhimsel/homebrew,oliviertoupin/homebrew,calmez/homebrew,sdebnath/homebrew,max-horvath/homebrew,frickler01/homebrew,IsmailM/linuxbrew,indera/homebrew,AICIDNN/homebrew,iandennismiller/homebrew,verdurin/homebrew,zj568/homebrew,missingcharacter/homebrew,mbi/homebrew,kyanny/homebrew,jpsim/homebrew,Ivanopalas/homebrew,utzig/homebrew,poindextrose/homebrew,josa42/homebrew,justjoheinz/homebrew,mactkg/homebrew,jtrag/homebrew,songjizu001/homebrew,chfast/homebrew,Moisan/homebrew,barn/homebrew,dardo82/homebrew,timomeinen/homebrew,rlister/homebrew,yoshida-mediba/homebrew,mattfarina/homebrew,tavisto/homebrew,retrography/homebrew,alexethan/homebrew,vinodkone/homebrew,jsallis/homebrew,marcusandre/homebrew,ryanshaw/homebrew,nju520/homebrew,robrix/homebrew,boneskull/homebrew,tonyghita/homebrew,msurovcak/homebrew,caijinyan/homebrew,dstndstn/homebrew,gcstang/linuxbrew,GeekHades/homebrew,mbrevda/homebrew,ehamberg/homebrew,dkotvan/homebrew,DarthGandalf/homebrew,sublimino/linuxbrew,fabianfreyer/homebrew,bcomnes/homebrew,ahihi/tigerbrew,bigbes/homebrew,Govinda-Fichtner/homebrew,giffels/homebrew,liamstask/homebrew,akshayvaidya/homebrew,gcstang/homebrew,LinusU/homebrew,knpwrs/homebrew,decors/homebrew,outcoldman/homebrew,Firefishy/homebrew,SuperNEMO-DBD/cadfaelbrew,yangj1e/homebrew,egentry/homebrew,danielmewes/homebrew,ybott/homebrew,tehmaze-labs/homebrew,jwatzman/homebrew,LinusU/homebrew,jcassiojr/homebrew,otaran/homebrew,jwillemsen/linuxbrew,brendanator/linuxbrew,PikachuEXE/homebrew,exicon/homebrew,Gutek/homebrew,ilidar/homebrew,mattbostock/homebrew,outcoldman/homebrew,glowe/homebrew,mokkun/homebrew,jmtd/homebrew,ablyler/homebrew,bright-sparks/homebrew,youtux/homebrew,harelba/homebrew,bruno-/homebrew,rlhh/homebrew,tylerball/homebrew,iostat/homebrew2,pinkpolygon/homebrew,ianbrandt/homebrew,mindrones/homebrew,KenanSulayman/homebrew,kgb4000/homebrew,woodruffw/homebrew-test,dalinaum/homebrew,jwillemsen/linuxbrew,MartinSeeler/homebrew,anarchivist/homebrew,aguynamedryan/homebrew,jesboat/homebrew,ericzhou2008/homebrew,IsmailM/linuxbrew,AntonioMeireles/homebrew,Sachin-Ganesh/homebrew,shawndellysse/homebrew,keith/homebrew,ilidar/homebrew,jasonm23/homebrew,syhw/homebrew,geoff-codes/homebrew,goodcodeguy/homebrew,imjerrybao/homebrew,xyproto/homebrew,mbi/homebrew,wrunnery/homebrew,davydden/linuxbrew,zj568/homebrew,drewwells/homebrew,psibre/homebrew,Gasol/homebrew,yangj1e/homebrew,crystal/autocode-homebrew,scorphus/homebrew,haosdent/homebrew,baob/homebrew,ebardsley/homebrew,durka/homebrew,osimola/homebrew,gnawhleinad/homebrew,pinkpolygon/homebrew,guidomb/homebrew,alfasapy/homebrew,yidongliu/homebrew,jessamynsmith/homebrew,utzig/homebrew,joshfriend/homebrew,pedromaltez-forks/homebrew,huitseeker/homebrew,changzuozhen/homebrew,higanworks/homebrew,baldwicc/homebrew,andreyto/homebrew,jwillemsen/homebrew,liuquansheng47/Homebrew,missingcharacter/homebrew,RadicalZephyr/homebrew,Sachin-Ganesh/homebrew,gonzedge/homebrew,xyproto/homebrew,karlhigley/homebrew,dirn/homebrew,klazuka/homebrew,yazuuchi/homebrew,coldeasy/homebrew,imjerrybao/homebrew,petere/homebrew,benswift404/homebrew,Monits/homebrew,danpalmer/homebrew,Asuranceturix/homebrew,sideci-sample/sideci-sample-homebrew,wadejong/homebrew,epixa/homebrew,flysonic10/homebrew,martinklepsch/homebrew,AtkinsChang/homebrew,Angeldude/linuxbrew,kazuho/homebrew,xanderlent/homebrew,hvnsweeting/homebrew,tsaeger/homebrew,zebMcCorkle/homebrew,ralic/homebrew,razamatan/homebrew,ryanmt/homebrew,zfarrell/homebrew,wolfd/homebrew,xb123456456/homebrew,theeternalsw0rd/homebrew,bigbes/homebrew,waj/homebrew,chiefy/homebrew,bitrise-io/homebrew,dstndstn/homebrew,arnested/homebrew,NfNitLoop/homebrew,sigma-random/homebrew,brotbert/homebrew,Red54/homebrew,dtan4/homebrew,mapbox/homebrew,elig/homebrew,tomekr/homebrew,vigo/homebrew,BrewTestBot/homebrew,scardetto/homebrew,sigma-random/homebrew,Chilledheart/homebrew,mjc-/homebrew,adamchainz/homebrew,Homebrew/homebrew,jeromeheissler/homebrew,winordie-47/linuxbrew1,zenazn/homebrew,menivaitsi/homebrew,tomekr/homebrew,gijzelaerr/homebrew,hakamadare/homebrew,ingmarv/homebrew,esamson/homebrew,mactkg/homebrew,asparagui/homebrew,imjerrybao/homebrew,mkrapp/homebrew,SuperNEMO-DBD/cadfaelbrew,bidle/homebrew,harelba/homebrew,retrography/homebrew,kidaa/homebrew,tomekr/homebrew,rnh/homebrew,xanderlent/homebrew,hyokosdeveloper/linuxbrew,winordie-47/linuxbrew1,ryanmt/homebrew,Originate/homebrew,anjackson/homebrew,yidongliu/homebrew,woodruffw/homebrew-test,sarvex/linuxbrew,QuinnyPig/homebrew,LegNeato/homebrew,rtyley/homebrew,guoxiao/homebrew,rhunter/homebrew,jehutymax/homebrew,crystal/autocode-homebrew,cristobal/homebrew,benjaminfrank/homebrew,AtnNn/homebrew,lvicentesanchez/linuxbrew,zorosteven/homebrew,sorin-ionescu/homebrew,mokkun/homebrew,shazow/homebrew,notDavid/homebrew,codeout/homebrew,bigbes/homebrew,tomyun/homebrew,hikaruworld/homebrew,tbeckham/homebrew,tkelman/homebrew,onlynone/homebrew,mpfz0r/homebrew,ilidar/homebrew,MSch/homebrew,Krasnyanskiy/homebrew,ened/homebrew,rosalsm/homebrew,mavimo/homebrew,hakamadare/homebrew,alexbukreev/homebrew,dpalmer93/homebrew,jarrettmeyer/homebrew,princeofdarkness76/linuxbrew,robrix/homebrew,malmaud/homebrew,fabianschuiki/homebrew,chiefy/homebrew,bbhoss/homebrew,samplecount/homebrew,mbi/homebrew,gicmo/homebrew,rtyley/homebrew,wangranche/homebrew,darknessomi/homebrew,rlhh/homebrew,brianmhunt/homebrew,bl1nk/homebrew,kevinastone/homebrew,Originate/homebrew,paulbakker/homebrew,jpscaletti/homebrew,pdpi/homebrew,packetcollision/homebrew,Noctem/homebrew,vinicius5581/homebrew,bendoerr/homebrew,rhoffman3621/learn-rails,changzuozhen/homebrew,outcoldman/homebrew,ssp/homebrew,LonnyGomes/homebrew,brunchboy/homebrew,antogg/homebrew,nshemonsky/homebrew,Linuxbrew/linuxbrew,protomouse/homebrew,ajshort/homebrew,digiter/linuxbrew,jmtd/homebrew,sakra/homebrew,s6stuc/homebrew,pgr0ss/homebrew,phatblat/homebrew,lvicentesanchez/homebrew,10sr/linuxbrew,jpscaletti/homebrew,jamer/homebrew,kidaa/homebrew,pwnall/homebrew,bcwaldon/homebrew,jiashuw/homebrew,jbeezley/homebrew,mindrones/homebrew,joschi/homebrew,jianjin/homebrew,tonyghita/homebrew,afdnlw/linuxbrew,iblueer/homebrew,qskycolor/homebrew,indera/homebrew,mattbostock/homebrew,cvrebert/homebrew,liamstask/homebrew,Cottser/homebrew,vihangm/homebrew,fabianfreyer/homebrew,tjschuck/homebrew,DarthGandalf/homebrew,bukzor/linuxbrew,julienXX/homebrew
ruby
## Code Before: require 'formula' class Gearman <Formula url 'http://launchpad.net/gearmand/trunk/0.12/+download/gearmand-0.12.tar.gz' homepage 'http://gearman.org/' md5 '6e88a6bfb26e50d5aed37d143184e7f2' depends_on 'libevent' def install system "./configure", "--prefix=#{prefix}" system "make install" end end ## Instruction: Update Gearmand to version 0.15 Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com> ## Code After: require 'formula' class Gearman <Formula url 'http://launchpad.net/gearmand/trunk/0.15/+download/gearmand-0.15.tar.gz' homepage 'http://gearman.org/' md5 'd394214d3cddc5af237d73befc7e3999' depends_on 'libevent' def install system "./configure", "--prefix=#{prefix}" system "make install" end end
require 'formula' class Gearman <Formula - url 'http://launchpad.net/gearmand/trunk/0.12/+download/gearmand-0.12.tar.gz' ? ^ ^ + url 'http://launchpad.net/gearmand/trunk/0.15/+download/gearmand-0.15.tar.gz' ? ^ ^ homepage 'http://gearman.org/' - md5 '6e88a6bfb26e50d5aed37d143184e7f2' + md5 'd394214d3cddc5af237d73befc7e3999' depends_on 'libevent' def install system "./configure", "--prefix=#{prefix}" system "make install" end end
4
0.285714
2
2
05a117847b43d44f336bbf272a1063661431a5e5
arch/sh/kernel/topology.c
arch/sh/kernel/topology.c
static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int i, ret; #ifdef CONFIG_NEED_MULTIPLE_NODES for_each_online_node(i) register_one_node(i); #endif for_each_present_cpu(i) { ret = register_cpu(&per_cpu(cpu_devices, i), i); if (unlikely(ret)) printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n", __FUNCTION__, i, ret); } return 0; } subsys_initcall(topology_init);
/* * arch/sh/kernel/topology.c * * Copyright (C) 2007 Paul Mundt * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/cpu.h> #include <linux/cpumask.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/node.h> #include <linux/nodemask.h> static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int i, ret; #ifdef CONFIG_NEED_MULTIPLE_NODES for_each_online_node(i) register_one_node(i); #endif for_each_present_cpu(i) { ret = register_cpu(&per_cpu(cpu_devices, i), i); if (unlikely(ret)) printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n", __FUNCTION__, i, ret); } #if defined(CONFIG_NUMA) && !defined(CONFIG_SMP) /* * In the UP case, make sure the CPU association is still * registered under each node. Without this, sysfs fails * to make the connection between nodes other than node0 * and cpu0. */ for_each_online_node(i) if (i != numa_node_id()) register_cpu_under_node(raw_smp_processor_id(), i); #endif return 0; } subsys_initcall(topology_init);
Fix up cpu to node mapping in sysfs.
sh: Fix up cpu to node mapping in sysfs. Currently cpu_to_node() is always 0 in the UP case, though we do want to have the CPU association linked in under sysfs even in the cases where we're only on a single CPU. Fix this up, so we have the cpu0 link on all of the available nodes that don't already have a CPU link of their own. Signed-off-by: Paul Mundt <38b52dbb5f0b63d149982b6c5de788ec93a89032@linux-sh.org>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs
c
## Code Before: static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int i, ret; #ifdef CONFIG_NEED_MULTIPLE_NODES for_each_online_node(i) register_one_node(i); #endif for_each_present_cpu(i) { ret = register_cpu(&per_cpu(cpu_devices, i), i); if (unlikely(ret)) printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n", __FUNCTION__, i, ret); } return 0; } subsys_initcall(topology_init); ## Instruction: sh: Fix up cpu to node mapping in sysfs. Currently cpu_to_node() is always 0 in the UP case, though we do want to have the CPU association linked in under sysfs even in the cases where we're only on a single CPU. Fix this up, so we have the cpu0 link on all of the available nodes that don't already have a CPU link of their own. Signed-off-by: Paul Mundt <38b52dbb5f0b63d149982b6c5de788ec93a89032@linux-sh.org> ## Code After: /* * arch/sh/kernel/topology.c * * Copyright (C) 2007 Paul Mundt * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/cpu.h> #include <linux/cpumask.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/node.h> #include <linux/nodemask.h> static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int i, ret; #ifdef CONFIG_NEED_MULTIPLE_NODES for_each_online_node(i) register_one_node(i); #endif for_each_present_cpu(i) { ret = register_cpu(&per_cpu(cpu_devices, i), i); if (unlikely(ret)) printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n", __FUNCTION__, i, ret); } #if defined(CONFIG_NUMA) && !defined(CONFIG_SMP) /* * In the UP case, make sure the CPU association is still * registered under each node. Without this, sysfs fails * to make the connection between nodes other than node0 * and cpu0. */ for_each_online_node(i) if (i != numa_node_id()) register_cpu_under_node(raw_smp_processor_id(), i); #endif return 0; } subsys_initcall(topology_init);
+ /* + * arch/sh/kernel/topology.c + * + * Copyright (C) 2007 Paul Mundt + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + #include <linux/cpu.h> + #include <linux/cpumask.h> + #include <linux/init.h> + #include <linux/percpu.h> + #include <linux/node.h> + #include <linux/nodemask.h> static DEFINE_PER_CPU(struct cpu, cpu_devices); static int __init topology_init(void) { int i, ret; #ifdef CONFIG_NEED_MULTIPLE_NODES for_each_online_node(i) register_one_node(i); #endif for_each_present_cpu(i) { ret = register_cpu(&per_cpu(cpu_devices, i), i); if (unlikely(ret)) printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n", __FUNCTION__, i, ret); } + #if defined(CONFIG_NUMA) && !defined(CONFIG_SMP) + /* + * In the UP case, make sure the CPU association is still + * registered under each node. Without this, sysfs fails + * to make the connection between nodes other than node0 + * and cpu0. + */ + for_each_online_node(i) + if (i != numa_node_id()) + register_cpu_under_node(raw_smp_processor_id(), i); + #endif + return 0; } subsys_initcall(topology_init);
27
1.227273
27
0
5a6f94f322b56a3327038c1566effbca352b33fd
app/views/spaces/_admin_tabs.html.haml
app/views/spaces/_admin_tabs.html.haml
.btn-group{ :"data-toggle" => "buttons-radio" } = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small") - if can?(:manage_news, @space) = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small") - if can?(:manage_join_requests, @space) = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small") = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small") - if can?(:user_permissions, @space) = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small") - if can?(:webconference_options, @space.bigbluebutton_room) = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")
.btn-group{ :"data-toggle" => "buttons-radio" } = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small") - if can?(:manage_news, @space) = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small") - if can?(:manage_join_requests, @space) = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small") = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small") - if can?(:user_permissions, @space) = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small") - if can?(:webconference_options, @space) = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")
Fix permission check on space admin tabs after 38bccab
Fix permission check on space admin tabs after 38bccab refs #1771
Haml
agpl-3.0
becueb/MconfWeb,mconf-rnp/mconf-web,fbottin/mconf-web,lfzawacki/mconf-web,mconf/mconf-web,mconf-ufrgs/mconf-web,becueb/MconfWeb,amreis/mconf-web,becueb/MconfWeb,amreis/mconf-web,mconf/mconf-web,fbottin/mconf-web,mconf-rnp/mconf-web,akratech/Akraconference,mconf-ufrgs/mconf-web,mconftec/mconf-web-uergs,mconf/mconf-web,mconftec/mconf-web-uergs,lfzawacki/mconf-web,amreis/mconf-web,lfzawacki/mconf-web,lfzawacki/mconf-web,mconftec/mconf-web-uergs,fbottin/mconf-web,mconf-rnp/mconf-web,akratech/Akraconference,mconf-ufrgs/mconf-web,fbottin/mconf-web,becueb/MconfWeb,akratech/Akraconference,mconftec/mconf-web-uergs,mconf-rnp/mconf-web,mconf/mconf-web,amreis/mconf-web,akratech/Akraconference,mconf-ufrgs/mconf-web
haml
## Code Before: .btn-group{ :"data-toggle" => "buttons-radio" } = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small") - if can?(:manage_news, @space) = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small") - if can?(:manage_join_requests, @space) = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small") = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small") - if can?(:user_permissions, @space) = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small") - if can?(:webconference_options, @space.bigbluebutton_room) = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small") ## Instruction: Fix permission check on space admin tabs after 38bccab refs #1771 ## Code After: .btn-group{ :"data-toggle" => "buttons-radio" } = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small") - if can?(:manage_news, @space) = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small") - if can?(:manage_join_requests, @space) = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small") = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small") - if can?(:user_permissions, @space) = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small") - if can?(:webconference_options, @space) = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")
.btn-group{ :"data-toggle" => "buttons-radio" } = link_to t('.general_options'), edit_space_path(@space), spaces_admin_menu_select_if(:main, :class => "btn btn-small") - if can?(:manage_news, @space) = link_to t('.news'), space_news_index_path(@space), spaces_admin_menu_select_if(:news, :class => "btn btn-small") - if can?(:manage_join_requests, @space) = link_to t('.invite'), invite_space_join_requests_path(@space), spaces_admin_menu_select_if(:invite, :class => "btn btn-small") = link_to t('.admissions'), space_join_requests_path(@space), spaces_admin_menu_select_if(:admissions, :class => "btn btn-small") - if can?(:user_permissions, @space) = link_to t('.users'), user_permissions_space_path(@space), spaces_admin_menu_select_if(:users, :class => "btn btn-small") - - if can?(:webconference_options, @space.bigbluebutton_room) ? ------------------- + - if can?(:webconference_options, @space) = link_to t('.webconf_options'), webconference_options_space_path(@space), spaces_admin_menu_select_if(:webconference_options, :class => "btn btn-small")
2
0.133333
1
1
6fc69b63d5eb688e47d1b9151e987f37a9dc45bf
src/admin/config/cli.ts
src/admin/config/cli.ts
'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration); config.on('load', () => { const database: Database = Container.get(Database); new Cli(configArgs).processCommand() .then(() => { database.disconnect(); }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); } else if (err && typeof err !== 'string') { console.error(`${JSON.stringify(err)}`); } else { console.error(`${err}`); } database.disconnect(); process.exit(1); }); }); } catch (e) { console.error(e); }
'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration); config.on('load', () => { const database: Database = Container.get(Database); new Cli(configArgs).processCommand() .then(() => { database.disconnect(); }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); } else if (err && err.message) { console.error(err.message); } else { console.error(`${err}`); } database.disconnect(); process.exit(1); }); }); } catch (e) { console.error(e); }
FIX error messages on CLI
FIX error messages on CLI
TypeScript
mit
jairelton/tree-gateway,Leanty/tree-gateway,Leanty/tree-gateway,jairelton/tree-gateway,Leanty/tree-gateway,jairelton/tree-gateway
typescript
## Code Before: 'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration); config.on('load', () => { const database: Database = Container.get(Database); new Cli(configArgs).processCommand() .then(() => { database.disconnect(); }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); } else if (err && typeof err !== 'string') { console.error(`${JSON.stringify(err)}`); } else { console.error(`${err}`); } database.disconnect(); process.exit(1); }); }); } catch (e) { console.error(e); } ## Instruction: FIX error messages on CLI ## Code After: 'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration); config.on('load', () => { const database: Database = Container.get(Database); new Cli(configArgs).processCommand() .then(() => { database.disconnect(); }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); } else if (err && err.message) { console.error(err.message); } else { console.error(`${err}`); } database.disconnect(); process.exit(1); }); }); } catch (e) { console.error(e); }
'use strict'; import { configArgs } from './cli-args'; import { Cli } from './cli-tool'; import { Configuration } from '../../configuration'; import { Container } from 'typescript-ioc'; import { Database } from '../../database'; try { const config: Configuration = Container.get(Configuration); config.on('load', () => { const database: Database = Container.get(Database); new Cli(configArgs).processCommand() .then(() => { database.disconnect(); }).catch((err: any) => { if (err && err.response && err.response.body && err.response.body.error) { console.error(`Error: ${err.response.body.error}`); - } else if (err && typeof err !== 'string') { ? ------- ^^^^^^ ^^^^ ^ + } else if (err && err.message) { ? ^^^ ^^ ^ - console.error(`${JSON.stringify(err)}`); + console.error(err.message); } else { console.error(`${err}`); } database.disconnect(); process.exit(1); }); }); } catch (e) { console.error(e); }
4
0.133333
2
2
c00c2f8af8f83210f398672455498b843f079994
scss/typography/_code.scss
scss/typography/_code.scss
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "../_variables.scss"; @import "../_functions.scss"; //Code class .siimple-code { color: siimple-default-color("error"); text-decoration: none; font-size: 13px; background-color: siimple-default-color("light", "light"); border-radius: 3px; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; //Code block dark color &--dark { background-color: siimple-default-color("dark") !important; color: $siimple-default-white; } }
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "../_variables.scss"; @import "../_functions.scss"; //Code class .siimple-code { color: siimple-default-color("error"); text-decoration: none; font-size: 13px; font-weight: 600; background-color: siimple-default-color("light", "light"); border-radius: 3px; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; //Code block dark color &--dark { background-color: siimple-default-color("dark") !important; color: $siimple-default-white; } }
Change font-weight attribute of code element
Change font-weight attribute of code element
SCSS
mit
jmjuanes/siimple,siimple/siimple,siimple/siimple,jmjuanes/siimple
scss
## Code Before: // // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "../_variables.scss"; @import "../_functions.scss"; //Code class .siimple-code { color: siimple-default-color("error"); text-decoration: none; font-size: 13px; background-color: siimple-default-color("light", "light"); border-radius: 3px; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; //Code block dark color &--dark { background-color: siimple-default-color("dark") !important; color: $siimple-default-white; } } ## Instruction: Change font-weight attribute of code element ## Code After: // // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "../_variables.scss"; @import "../_functions.scss"; //Code class .siimple-code { color: siimple-default-color("error"); text-decoration: none; font-size: 13px; font-weight: 600; background-color: siimple-default-color("light", "light"); border-radius: 3px; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; //Code block dark color &--dark { background-color: siimple-default-color("dark") !important; color: $siimple-default-white; } }
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "../_variables.scss"; @import "../_functions.scss"; //Code class .siimple-code { color: siimple-default-color("error"); text-decoration: none; font-size: 13px; + font-weight: 600; background-color: siimple-default-color("light", "light"); border-radius: 3px; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; //Code block dark color &--dark { background-color: siimple-default-color("dark") !important; color: $siimple-default-white; } }
1
0.035714
1
0
ac23462c73727249a46fa876c0090c19a9847213
spec/classes/neutron_db_postgresql_spec.rb
spec/classes/neutron_db_postgresql_spec.rb
require 'spec_helper' describe 'neutron::db::postgresql' do shared_examples 'neutron::db::postgresql' do let :req_params do { :password => 'neutronpass' } end let :pre_condition do 'include postgresql::server' end context 'with only required parameters' do let :params do req_params end it { is_expected.to contain_openstacklib__db__postgresql('neutron').with( :user => 'neutron', :password => 'neutronpass', :dbname => 'neutron', :encoding => nil, :privileges => 'ALL', )} end end on_supported_os({ :supported_os => OSDefaults.get_supported_os }).each do |os,facts| context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ :processorcount => 8, :concat_basedir => '/var/lib/puppet/concat' })) end it_behaves_like 'neutron::db::postgresql' end end end
require 'spec_helper' describe 'neutron::db::postgresql' do shared_examples 'neutron::db::postgresql' do let :req_params do { :password => 'neutronpass' } end let :pre_condition do 'include postgresql::server' end context 'with only required parameters' do let :params do req_params end it { is_expected.to contain_class('neutron::deps') } it { is_expected.to contain_openstacklib__db__postgresql('neutron').with( :user => 'neutron', :password => 'neutronpass', :dbname => 'neutron', :encoding => nil, :privileges => 'ALL', )} end end on_supported_os({ :supported_os => OSDefaults.get_supported_os }).each do |os,facts| context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ :processorcount => 8, :concat_basedir => '/var/lib/puppet/concat' })) end it_behaves_like 'neutron::db::postgresql' end end end
Include deps class in unit test for postgresql
Include deps class in unit test for postgresql Change-Id: I33be0962bc8065adb2563fdd3df7be1cd32955f5
Ruby
apache-2.0
openstack/puppet-neutron,openstack/puppet-neutron
ruby
## Code Before: require 'spec_helper' describe 'neutron::db::postgresql' do shared_examples 'neutron::db::postgresql' do let :req_params do { :password => 'neutronpass' } end let :pre_condition do 'include postgresql::server' end context 'with only required parameters' do let :params do req_params end it { is_expected.to contain_openstacklib__db__postgresql('neutron').with( :user => 'neutron', :password => 'neutronpass', :dbname => 'neutron', :encoding => nil, :privileges => 'ALL', )} end end on_supported_os({ :supported_os => OSDefaults.get_supported_os }).each do |os,facts| context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ :processorcount => 8, :concat_basedir => '/var/lib/puppet/concat' })) end it_behaves_like 'neutron::db::postgresql' end end end ## Instruction: Include deps class in unit test for postgresql Change-Id: I33be0962bc8065adb2563fdd3df7be1cd32955f5 ## Code After: require 'spec_helper' describe 'neutron::db::postgresql' do shared_examples 'neutron::db::postgresql' do let :req_params do { :password => 'neutronpass' } end let :pre_condition do 'include postgresql::server' end context 'with only required parameters' do let :params do req_params end it { is_expected.to contain_class('neutron::deps') } it { is_expected.to contain_openstacklib__db__postgresql('neutron').with( :user => 'neutron', :password => 'neutronpass', :dbname => 'neutron', :encoding => nil, :privileges => 'ALL', )} end end on_supported_os({ :supported_os => OSDefaults.get_supported_os }).each do |os,facts| context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ :processorcount => 8, :concat_basedir => '/var/lib/puppet/concat' })) end it_behaves_like 'neutron::db::postgresql' end end end
require 'spec_helper' describe 'neutron::db::postgresql' do shared_examples 'neutron::db::postgresql' do let :req_params do { :password => 'neutronpass' } end let :pre_condition do 'include postgresql::server' end context 'with only required parameters' do let :params do req_params end + + it { is_expected.to contain_class('neutron::deps') } it { is_expected.to contain_openstacklib__db__postgresql('neutron').with( :user => 'neutron', :password => 'neutronpass', :dbname => 'neutron', :encoding => nil, :privileges => 'ALL', )} end end on_supported_os({ :supported_os => OSDefaults.get_supported_os }).each do |os,facts| context "on #{os}" do let (:facts) do facts.merge(OSDefaults.get_facts({ :processorcount => 8, :concat_basedir => '/var/lib/puppet/concat' })) end it_behaves_like 'neutron::db::postgresql' end end end
2
0.046512
2
0
20ae19f8abda9febd1b2ac6230ecb4c80e5cd313
Cargo.toml
Cargo.toml
[workspace] members = [ "hypervisor", "uefi", "pcuart", ]
[workspace] members = [ "hypervisor", "uefi", "pcuart", "linux", ]
Add linux kernel module to workspace:
Add linux kernel module to workspace:
TOML
mit
iankronquist/rustyvisor,iankronquist/rustyvisor,iankronquist/rustyvisor
toml
## Code Before: [workspace] members = [ "hypervisor", "uefi", "pcuart", ] ## Instruction: Add linux kernel module to workspace: ## Code After: [workspace] members = [ "hypervisor", "uefi", "pcuart", "linux", ]
[workspace] members = [ "hypervisor", "uefi", "pcuart", + "linux", ]
1
0.142857
1
0
f86ca97dc1ba22b5fab0c7a4605ab2a51367b365
openassessment/assessment/migrations/0002_staffworkflow.py
openassessment/assessment/migrations/0002_staffworkflow.py
from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('assessment', '0001_initial'), ] operations = [ migrations.CreateModel( name='StaffWorkflow', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('scorer_id', models.CharField(max_length=40, db_index=True)), ('course_id', models.CharField(max_length=40, db_index=True)), ('item_id', models.CharField(max_length=128, db_index=True)), ('submission_uuid', models.CharField(unique=True, max_length=128, db_index=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)), ('grading_completed_at', models.DateTimeField(null=True, db_index=True)), ('grading_started_at', models.DateTimeField(null=True, db_index=True)), ('cancelled_at', models.DateTimeField(null=True, db_index=True)), ('assessment', models.CharField(max_length=128, null=True, db_index=True)), ], options={ 'ordering': ['created_at', 'id'], }, ), ]
from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('assessment', '0004_edited_content_migration'), ] operations = [ migrations.CreateModel( name='StaffWorkflow', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('scorer_id', models.CharField(max_length=40, db_index=True)), ('course_id', models.CharField(max_length=40, db_index=True)), ('item_id', models.CharField(max_length=128, db_index=True)), ('submission_uuid', models.CharField(unique=True, max_length=128, db_index=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)), ('grading_completed_at', models.DateTimeField(null=True, db_index=True)), ('grading_started_at', models.DateTimeField(null=True, db_index=True)), ('cancelled_at', models.DateTimeField(null=True, db_index=True)), ('assessment', models.CharField(max_length=128, null=True, db_index=True)), ], options={ 'ordering': ['created_at', 'id'], }, ), ]
Update migration history to include trackchanges migrations
Update migration history to include trackchanges migrations
Python
agpl-3.0
Stanford-Online/edx-ora2,Stanford-Online/edx-ora2,Stanford-Online/edx-ora2,Stanford-Online/edx-ora2
python
## Code Before: from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('assessment', '0001_initial'), ] operations = [ migrations.CreateModel( name='StaffWorkflow', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('scorer_id', models.CharField(max_length=40, db_index=True)), ('course_id', models.CharField(max_length=40, db_index=True)), ('item_id', models.CharField(max_length=128, db_index=True)), ('submission_uuid', models.CharField(unique=True, max_length=128, db_index=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)), ('grading_completed_at', models.DateTimeField(null=True, db_index=True)), ('grading_started_at', models.DateTimeField(null=True, db_index=True)), ('cancelled_at', models.DateTimeField(null=True, db_index=True)), ('assessment', models.CharField(max_length=128, null=True, db_index=True)), ], options={ 'ordering': ['created_at', 'id'], }, ), ] ## Instruction: Update migration history to include trackchanges migrations ## Code After: from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('assessment', '0004_edited_content_migration'), ] operations = [ migrations.CreateModel( name='StaffWorkflow', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('scorer_id', models.CharField(max_length=40, db_index=True)), ('course_id', models.CharField(max_length=40, db_index=True)), ('item_id', models.CharField(max_length=128, db_index=True)), ('submission_uuid', models.CharField(unique=True, max_length=128, db_index=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)), ('grading_completed_at', models.DateTimeField(null=True, db_index=True)), ('grading_started_at', models.DateTimeField(null=True, db_index=True)), ('cancelled_at', models.DateTimeField(null=True, db_index=True)), ('assessment', models.CharField(max_length=128, null=True, db_index=True)), ], options={ 'ordering': ['created_at', 'id'], }, ), ]
from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ - ('assessment', '0001_initial'), + ('assessment', '0004_edited_content_migration'), ] operations = [ migrations.CreateModel( name='StaffWorkflow', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('scorer_id', models.CharField(max_length=40, db_index=True)), ('course_id', models.CharField(max_length=40, db_index=True)), ('item_id', models.CharField(max_length=128, db_index=True)), ('submission_uuid', models.CharField(unique=True, max_length=128, db_index=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)), ('grading_completed_at', models.DateTimeField(null=True, db_index=True)), ('grading_started_at', models.DateTimeField(null=True, db_index=True)), ('cancelled_at', models.DateTimeField(null=True, db_index=True)), ('assessment', models.CharField(max_length=128, null=True, db_index=True)), ], options={ 'ordering': ['created_at', 'id'], }, ), ]
2
0.0625
1
1
4499ab5fdeca46416cfc4a50a376eba4eb8e16b4
activerecord/test/cases/result_test.rb
activerecord/test/cases/result_test.rb
require "cases/helper" module ActiveRecord class ResultTest < ActiveRecord::TestCase def result Result.new(['col_1', 'col_2'], [ ['row 1 col 1', 'row 1 col 2'], ['row 2 col 1', 'row 2 col 2'] ]) end def test_to_hash_returns_row_hashes assert_equal [ {'col_1' => 'row 1 col 1', 'col_2' => 'row 1 col 2'}, {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'} ], result.to_hash end def test_each_with_block_returns_row_hashes result.each do |row| assert_equal ['col_1', 'col_2'], row.keys end end def test_each_without_block_returns_an_enumerator result.each.with_index do |row, index| assert_equal ['col_1', 'col_2'], row.keys assert_kind_of Integer, index end end end end
require "cases/helper" module ActiveRecord class ResultTest < ActiveRecord::TestCase def result Result.new(['col_1', 'col_2'], [ ['row 1 col 1', 'row 1 col 2'], ['row 2 col 1', 'row 2 col 2'], ['row 3 col 1', 'row 3 col 2'], ]) end def test_to_hash_returns_row_hashes assert_equal [ {'col_1' => 'row 1 col 1', 'col_2' => 'row 1 col 2'}, {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'}, {'col_1' => 'row 3 col 1', 'col_2' => 'row 3 col 2'}, ], result.to_hash end def test_each_with_block_returns_row_hashes result.each do |row| assert_equal ['col_1', 'col_2'], row.keys end end def test_each_without_block_returns_an_enumerator result.each.with_index do |row, index| assert_equal ['col_1', 'col_2'], row.keys assert_kind_of Integer, index end end end end
Strengthen test with different nb of rows and columns
Strengthen test with different nb of rows and columns
Ruby
mit
notapatch/rails,gavingmiller/rails,kirs/rails-1,assain/rails,gfvcastro/rails,bogdanvlviv/rails,mechanicles/rails,kddeisz/rails,shioyama/rails,gfvcastro/rails,repinel/rails,esparta/rails,pschambacher/rails,yhirano55/rails,88rabbit/newRails,georgeclaghorn/rails,illacceptanything/illacceptanything,stefanmb/rails,joonyou/rails,Edouard-chin/rails,lcreid/rails,voray/rails,matrinox/rails,alecspopa/rails,prathamesh-sonpatki/rails,mathieujobin/reduced-rails-for-travis,tijwelch/rails,ttanimichi/rails,kmayer/rails,prathamesh-sonpatki/rails,gavingmiller/rails,Stellenticket/rails,illacceptanything/illacceptanything,alecspopa/rails,Edouard-chin/rails,untidy-hair/rails,flanger001/rails,mtsmfm/railstest,schuetzm/rails,mtsmfm/rails,Stellenticket/rails,Spin42/rails,notapatch/rails,joonyou/rails,kmcphillips/rails,Stellenticket/rails,riseshia/railsguides.kr,kmayer/rails,bolek/rails,marklocklear/rails,tgxworld/rails,gcourtemanche/rails,mechanicles/rails,mohitnatoo/rails,rafaelfranca/omg-rails,vassilevsky/rails,prathamesh-sonpatki/rails,mijoharas/rails,mechanicles/rails,bradleypriest/rails,Erol/rails,palkan/rails,Sen-Zhang/rails,repinel/rails,Vasfed/rails,illacceptanything/illacceptanything,Envek/rails,bogdanvlviv/rails,iainbeeston/rails,gfvcastro/rails,illacceptanything/illacceptanything,aditya-kapoor/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,samphilipd/rails,hanystudy/rails,jeremy/rails,illacceptanything/illacceptanything,MSP-Greg/rails,Spin42/rails,Erol/rails,gcourtemanche/rails,pvalena/rails,mechanicles/rails,lcreid/rails,baerjam/rails,eileencodes/rails,samphilipd/rails,Sen-Zhang/rails,MichaelSp/rails,88rabbit/newRails,schuetzm/rails,BlakeWilliams/rails,rossta/rails,kirs/rails-1,Edouard-chin/rails,odedniv/rails,bolek/rails,lucasmazza/rails,tjschuck/rails,yasslab/railsguides.jp,ledestin/rails,aditya-kapoor/rails,betesh/rails,kamipo/rails,lcreid/rails,pschambacher/rails,coreyward/rails,untidy-hair/rails,arjes/rails,elfassy/rails,kenta-s/rails,notapatch/rails,Vasfed/rails,MichaelSp/rails,shioyama/rails,flanger001/rails,gauravtiwari/rails,printercu/rails,deraru/rails,Envek/rails,kmcphillips/rails,fabianoleittes/rails,richseviora/rails,pvalena/rails,lucasmazza/rails,gauravtiwari/rails,Spin42/rails,illacceptanything/illacceptanything,pschambacher/rails,yhirano55/rails,yhirano55/rails,matrinox/rails,illacceptanything/illacceptanything,rails/rails,utilum/rails,yawboakye/rails,koic/rails,kenta-s/rails,Edouard-chin/rails,kddeisz/rails,aditya-kapoor/rails,vassilevsky/rails,baerjam/rails,yasslab/railsguides.jp,sealocal/rails,iainbeeston/rails,ttanimichi/rails,gauravtiwari/rails,schuetzm/rails,joonyou/rails,flanger001/rails,mtsmfm/rails,amoody2108/TechForJustice,vipulnsward/rails,travisofthenorth/rails,jeremy/rails,kirs/rails-1,rbhitchcock/rails,yhirano55/rails,iainbeeston/rails,tjschuck/rails,odedniv/rails,MSP-Greg/rails,rails/rails,palkan/rails,jeremy/rails,tijwelch/rails,notapatch/rails,ngpestelos/rails,EmmaB/rails-1,richseviora/rails,EmmaB/rails-1,fabianoleittes/rails,arunagw/rails,xlymian/rails,bogdanvlviv/rails,lucasmazza/rails,bradleypriest/rails,riseshia/railsguides.kr,illacceptanything/illacceptanything,travisofthenorth/rails,assain/rails,vassilevsky/rails,kamipo/rails,88rabbit/newRails,mijoharas/rails,palkan/rails,odedniv/rails,kmayer/rails,utilum/rails,BlakeWilliams/rails,Erol/rails,alecspopa/rails,tgxworld/rails,mathieujobin/reduced-rails-for-travis,mohitnatoo/rails,ngpestelos/rails,brchristian/rails,riseshia/railsguides.kr,arunagw/rails,fabianoleittes/rails,Vasfed/rails,felipecvo/rails,xlymian/rails,MSP-Greg/rails,assain/rails,printercu/rails,mathieujobin/reduced-rails-for-travis,mtsmfm/railstest,stefanmb/rails,ledestin/rails,kddeisz/rails,ttanimichi/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,Envek/rails,georgeclaghorn/rails,ledestin/rails,felipecvo/rails,mtsmfm/railstest,koic/rails,yawboakye/rails,matrinox/rails,bogdanvlviv/rails,rossta/rails,EmmaB/rails-1,kddeisz/rails,riseshia/railsguides.kr,kaspth/rails,hanystudy/rails,arjes/rails,Stellenticket/rails,MSP-Greg/rails,felipecvo/rails,kachick/rails,sergey-alekseev/rails,voray/rails,kmcphillips/rails,travisofthenorth/rails,betesh/rails,repinel/rails,illacceptanything/illacceptanything,elfassy/rails,assain/rails,tijwelch/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,marklocklear/rails,Erol/rails,utilum/rails,BlakeWilliams/rails,deraru/rails,esparta/rails,schuetzm/rails,repinel/rails,iainbeeston/rails,coreyward/rails,yalab/rails,rossta/rails,tgxworld/rails,vipulnsward/rails,yalab/rails,yawboakye/rails,fabianoleittes/rails,baerjam/rails,yahonda/rails,prathamesh-sonpatki/rails,deraru/rails,gcourtemanche/rails,starknx/rails,eileencodes/rails,Envek/rails,coreyward/rails,pvalena/rails,betesh/rails,Sen-Zhang/rails,betesh/rails,rbhitchcock/rails,marklocklear/rails,esparta/rails,sealocal/rails,mohitnatoo/rails,untidy-hair/rails,kaspth/rails,maicher/rails,ngpestelos/rails,esparta/rails,xlymian/rails,flanger001/rails,georgeclaghorn/rails,arunagw/rails,eileencodes/rails,samphilipd/rails,vipulnsward/rails,joonyou/rails,yasslab/railsguides.jp,kamipo/rails,hanystudy/rails,printercu/rails,baerjam/rails,gfvcastro/rails,gavingmiller/rails,sergey-alekseev/rails,untidy-hair/rails,printercu/rails,lcreid/rails,amoody2108/TechForJustice,richseviora/rails,yahonda/rails,sealocal/rails,Vasfed/rails,kachick/rails,illacceptanything/illacceptanything,eileencodes/rails,jeremy/rails,georgeclaghorn/rails,arjes/rails,maicher/rails,BlakeWilliams/rails,koic/rails,mtsmfm/rails,yawboakye/rails,kmcphillips/rails,elfassy/rails,shioyama/rails,stefanmb/rails,MichaelSp/rails,bradleypriest/rails,vipulnsward/rails,rails/rails,kachick/rails,yalab/rails,voray/rails,rails/rails,travisofthenorth/rails,illacceptanything/illacceptanything,brchristian/rails,kenta-s/rails,amoody2108/TechForJustice,tjschuck/rails,aditya-kapoor/rails,rbhitchcock/rails,tjschuck/rails,tgxworld/rails,mijoharas/rails,mohitnatoo/rails,yalab/rails,shioyama/rails,sergey-alekseev/rails,palkan/rails,yahonda/rails,arunagw/rails,starknx/rails,maicher/rails,kaspth/rails,brchristian/rails,utilum/rails,yasslab/railsguides.jp,pvalena/rails,bolek/rails,deraru/rails,starknx/rails,yahonda/rails
ruby
## Code Before: require "cases/helper" module ActiveRecord class ResultTest < ActiveRecord::TestCase def result Result.new(['col_1', 'col_2'], [ ['row 1 col 1', 'row 1 col 2'], ['row 2 col 1', 'row 2 col 2'] ]) end def test_to_hash_returns_row_hashes assert_equal [ {'col_1' => 'row 1 col 1', 'col_2' => 'row 1 col 2'}, {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'} ], result.to_hash end def test_each_with_block_returns_row_hashes result.each do |row| assert_equal ['col_1', 'col_2'], row.keys end end def test_each_without_block_returns_an_enumerator result.each.with_index do |row, index| assert_equal ['col_1', 'col_2'], row.keys assert_kind_of Integer, index end end end end ## Instruction: Strengthen test with different nb of rows and columns ## Code After: require "cases/helper" module ActiveRecord class ResultTest < ActiveRecord::TestCase def result Result.new(['col_1', 'col_2'], [ ['row 1 col 1', 'row 1 col 2'], ['row 2 col 1', 'row 2 col 2'], ['row 3 col 1', 'row 3 col 2'], ]) end def test_to_hash_returns_row_hashes assert_equal [ {'col_1' => 'row 1 col 1', 'col_2' => 'row 1 col 2'}, {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'}, {'col_1' => 'row 3 col 1', 'col_2' => 'row 3 col 2'}, ], result.to_hash end def test_each_with_block_returns_row_hashes result.each do |row| assert_equal ['col_1', 'col_2'], row.keys end end def test_each_without_block_returns_an_enumerator result.each.with_index do |row, index| assert_equal ['col_1', 'col_2'], row.keys assert_kind_of Integer, index end end end end
require "cases/helper" module ActiveRecord class ResultTest < ActiveRecord::TestCase def result Result.new(['col_1', 'col_2'], [ ['row 1 col 1', 'row 1 col 2'], - ['row 2 col 1', 'row 2 col 2'] + ['row 2 col 1', 'row 2 col 2'], ? + + ['row 3 col 1', 'row 3 col 2'], ]) end def test_to_hash_returns_row_hashes assert_equal [ {'col_1' => 'row 1 col 1', 'col_2' => 'row 1 col 2'}, - {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'} + {'col_1' => 'row 2 col 1', 'col_2' => 'row 2 col 2'}, ? + + {'col_1' => 'row 3 col 1', 'col_2' => 'row 3 col 2'}, ], result.to_hash end def test_each_with_block_returns_row_hashes result.each do |row| assert_equal ['col_1', 'col_2'], row.keys end end def test_each_without_block_returns_an_enumerator result.each.with_index do |row, index| assert_equal ['col_1', 'col_2'], row.keys assert_kind_of Integer, index end end end end
6
0.1875
4
2
35762bd28b805c6de70cd6b118529288001bd326
tests/test.bootstrap.inc.php
tests/test.bootstrap.inc.php
<?php $base = dirname(__FILE__) . "/.."; set_include_path( $base . "/config:" . $base . "/system/config:" . $base . "/system:" . $base . "/tests:" . $base . "/tests/system:" . $base . "/application/libraries/enums:" . $base . "/application/libraries/core:" . $base . "/application/libraries/db:" . $base . "/application/controllers:" . $base . "/application/models:" . $base . "/application/libraries:" . $base . "/application/views:" . get_include_path() ); // Load and setup class file autloader include_once("libraries/core/class.autoloader.inc.php"); spl_autoload_register("Lunr\Libraries\Core\Autoloader::load"); ?>
<?php $base = dirname(__FILE__) . "/.."; set_include_path( $base . "/config:" . $base . "/system/config:" . $base . "/system:" . $base . "/tests:" . $base . "/tests/system:" . $base . "/application/libraries/enums:" . $base . "/application/libraries/core:" . $base . "/application/libraries/db:" . $base . "/application/controllers:" . $base . "/application/models:" . $base . "/application/libraries:" . $base . "/application/views:" . get_include_path() ); // Load and setup class file autloader include_once("libraries/core/class.autoloader.inc.php"); spl_autoload_register(array(new Lunr\Libraries\Core\Autoloader(), 'load')); ?>
Adjust test bootstrap file for new autoloader structure
test: Adjust test bootstrap file for new autoloader structure
PHP
mit
tardypad/lunr,M2Mobi/lunr,M2Mobi/lunr,tardypad/lunr,M2Mobi/lunr,pprkut/lunr,pprkut/lunr,tardypad/lunr,pprkut/lunr
php
## Code Before: <?php $base = dirname(__FILE__) . "/.."; set_include_path( $base . "/config:" . $base . "/system/config:" . $base . "/system:" . $base . "/tests:" . $base . "/tests/system:" . $base . "/application/libraries/enums:" . $base . "/application/libraries/core:" . $base . "/application/libraries/db:" . $base . "/application/controllers:" . $base . "/application/models:" . $base . "/application/libraries:" . $base . "/application/views:" . get_include_path() ); // Load and setup class file autloader include_once("libraries/core/class.autoloader.inc.php"); spl_autoload_register("Lunr\Libraries\Core\Autoloader::load"); ?> ## Instruction: test: Adjust test bootstrap file for new autoloader structure ## Code After: <?php $base = dirname(__FILE__) . "/.."; set_include_path( $base . "/config:" . $base . "/system/config:" . $base . "/system:" . $base . "/tests:" . $base . "/tests/system:" . $base . "/application/libraries/enums:" . $base . "/application/libraries/core:" . $base . "/application/libraries/db:" . $base . "/application/controllers:" . $base . "/application/models:" . $base . "/application/libraries:" . $base . "/application/views:" . get_include_path() ); // Load and setup class file autloader include_once("libraries/core/class.autoloader.inc.php"); spl_autoload_register(array(new Lunr\Libraries\Core\Autoloader(), 'load')); ?>
<?php $base = dirname(__FILE__) . "/.."; set_include_path( $base . "/config:" . $base . "/system/config:" . $base . "/system:" . $base . "/tests:" . $base . "/tests/system:" . $base . "/application/libraries/enums:" . $base . "/application/libraries/core:" . $base . "/application/libraries/db:" . $base . "/application/controllers:" . $base . "/application/models:" . $base . "/application/libraries:" . $base . "/application/views:" . get_include_path() ); // Load and setup class file autloader include_once("libraries/core/class.autoloader.inc.php"); - spl_autoload_register("Lunr\Libraries\Core\Autoloader::load"); ? ^ ^^ ^ + spl_autoload_register(array(new Lunr\Libraries\Core\Autoloader(), 'load')); ? ^^^^^^^^^^ ^^^^^ ^^ - ?>
3
0.115385
1
2
66326d697d215af9c1614f59399d60cb522cff87
src/Jobs/SyncDefaultAuthorization.php
src/Jobs/SyncDefaultAuthorization.php
<?php namespace Orchestra\Foundation\Jobs; use Orchestra\Contracts\Authorization\Authorization; use Orchestra\Model\Role; class SyncDefaultAuthorization extends Job { /** * Re-sync administrator access control. * * @param \Orchestra\Contracts\Authorization\Authorization $acl * * @return void */ public function handle(Authorization $acl) { $actions = \config('orchestra/foundation::actions', []); $attaches = []; foreach ($actions as $action) { if (! $acl->actions()->has($action)) { $attaches[] = $action; } } if (! empty($attaches)) { $acl->actions()->attach($attaches); } $admin = Role::hs()->admin(); $acl->allow($admin->name, $actions); } }
<?php namespace Orchestra\Foundation\Jobs; use Orchestra\Contracts\Authorization\Authorization; use Orchestra\Model\Role; class SyncDefaultAuthorization extends Job { /** * Re-sync administrator access control. * * @param \Orchestra\Contracts\Authorization\Authorization $acl * * @return void */ public function handle(Authorization $acl) { $actions = \config('orchestra/foundation::actions', [ 'Manage Users', 'Manage Orchestra', 'Manage Roles', 'Manage Acl', ]); $attaches = []; foreach ($actions as $action) { if (! $acl->actions()->has($action)) { $attaches[] = $action; } } if (! empty($attaches)) { $acl->actions()->attach($attaches); } $admin = Role::hs()->admin(); $acl->allow($admin->name, $actions); } }
Add default value in case missing.
Add default value in case missing. Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
PHP
mit
orchestral/foundation,orchestral/foundation,orchestral/foundation
php
## Code Before: <?php namespace Orchestra\Foundation\Jobs; use Orchestra\Contracts\Authorization\Authorization; use Orchestra\Model\Role; class SyncDefaultAuthorization extends Job { /** * Re-sync administrator access control. * * @param \Orchestra\Contracts\Authorization\Authorization $acl * * @return void */ public function handle(Authorization $acl) { $actions = \config('orchestra/foundation::actions', []); $attaches = []; foreach ($actions as $action) { if (! $acl->actions()->has($action)) { $attaches[] = $action; } } if (! empty($attaches)) { $acl->actions()->attach($attaches); } $admin = Role::hs()->admin(); $acl->allow($admin->name, $actions); } } ## Instruction: Add default value in case missing. Signed-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com> ## Code After: <?php namespace Orchestra\Foundation\Jobs; use Orchestra\Contracts\Authorization\Authorization; use Orchestra\Model\Role; class SyncDefaultAuthorization extends Job { /** * Re-sync administrator access control. * * @param \Orchestra\Contracts\Authorization\Authorization $acl * * @return void */ public function handle(Authorization $acl) { $actions = \config('orchestra/foundation::actions', [ 'Manage Users', 'Manage Orchestra', 'Manage Roles', 'Manage Acl', ]); $attaches = []; foreach ($actions as $action) { if (! $acl->actions()->has($action)) { $attaches[] = $action; } } if (! empty($attaches)) { $acl->actions()->attach($attaches); } $admin = Role::hs()->admin(); $acl->allow($admin->name, $actions); } }
<?php namespace Orchestra\Foundation\Jobs; use Orchestra\Contracts\Authorization\Authorization; use Orchestra\Model\Role; class SyncDefaultAuthorization extends Job { /** * Re-sync administrator access control. * * @param \Orchestra\Contracts\Authorization\Authorization $acl * * @return void */ public function handle(Authorization $acl) { - $actions = \config('orchestra/foundation::actions', []); ? --- + $actions = \config('orchestra/foundation::actions', [ + 'Manage Users', 'Manage Orchestra', 'Manage Roles', 'Manage Acl', + ]); + $attaches = []; foreach ($actions as $action) { if (! $acl->actions()->has($action)) { $attaches[] = $action; } } if (! empty($attaches)) { $acl->actions()->attach($attaches); } $admin = Role::hs()->admin(); $acl->allow($admin->name, $actions); } }
5
0.138889
4
1
117471c8e1eded6f52e246a6bc4a717c1e4e0fb1
source/partials/_header.erb
source/partials/_header.erb
<header> <div id="site-logo"> <a href="/" class="no-hvr"> <%= image_tag 'logo.svg', alt: "Fractaled Mind" %> </a> </div> <ul id="social-networks"> <li> <a href="https://facebook.com/fractaledmind" class="no-hvr"> <i class="fa fa-facebook fa-lg"></i> </a> </li> <li> <a href="https://twitter.com/fractaledmind" class="no-hvr"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> <a href="https://github.com/smargh" class="no-hvr"> <i class="fa fa-github fa-lg"></i> </a> </li> <li> <a href="mailto:stephen@fractaledmind.com" class="no-hvr"> <i class="fa fa-envelope fa-lg"></i> </a> </li> <li> <a href="/feed.xml" class="no-hvr"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </header>
<header> <div id="site-logo"> <a href="/" class="no-hvr"> <%= image_tag 'logo.svg', alt: "Fractaled Mind" %> </a> </div> <ul id="social-networks"> <li> <a href="https://facebook.com/fractaledmind" class="no-hvr"> <i class="fa fa-facebook fa-lg"></i> </a> </li> <li> <a href="https://twitter.com/fractaledmind" class="no-hvr"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> <a href="https://github.com/fractaledmind" class="no-hvr"> <i class="fa fa-github fa-lg"></i> </a> </li> <li> <a href="mailto:stephen@fractaledmind.com" class="no-hvr"> <i class="fa fa-envelope fa-lg"></i> </a> </li> <li> <a href="/feed.xml" class="no-hvr"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </header>
Fix GitHub link in header
Fix GitHub link in header
HTML+ERB
mit
smargh/fractaled_mind,fractaledmind/fractaled_mind,smargh/fractaled_mind,fractaledmind/fractaled_mind,smargh/fractaled_mind,fractaledmind/fractaled_mind,smargh/fractaled_mind,fractaledmind/fractaled_mind
html+erb
## Code Before: <header> <div id="site-logo"> <a href="/" class="no-hvr"> <%= image_tag 'logo.svg', alt: "Fractaled Mind" %> </a> </div> <ul id="social-networks"> <li> <a href="https://facebook.com/fractaledmind" class="no-hvr"> <i class="fa fa-facebook fa-lg"></i> </a> </li> <li> <a href="https://twitter.com/fractaledmind" class="no-hvr"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> <a href="https://github.com/smargh" class="no-hvr"> <i class="fa fa-github fa-lg"></i> </a> </li> <li> <a href="mailto:stephen@fractaledmind.com" class="no-hvr"> <i class="fa fa-envelope fa-lg"></i> </a> </li> <li> <a href="/feed.xml" class="no-hvr"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </header> ## Instruction: Fix GitHub link in header ## Code After: <header> <div id="site-logo"> <a href="/" class="no-hvr"> <%= image_tag 'logo.svg', alt: "Fractaled Mind" %> </a> </div> <ul id="social-networks"> <li> <a href="https://facebook.com/fractaledmind" class="no-hvr"> <i class="fa fa-facebook fa-lg"></i> </a> </li> <li> <a href="https://twitter.com/fractaledmind" class="no-hvr"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> <a href="https://github.com/fractaledmind" class="no-hvr"> <i class="fa fa-github fa-lg"></i> </a> </li> <li> <a href="mailto:stephen@fractaledmind.com" class="no-hvr"> <i class="fa fa-envelope fa-lg"></i> </a> </li> <li> <a href="/feed.xml" class="no-hvr"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </header>
<header> <div id="site-logo"> <a href="/" class="no-hvr"> <%= image_tag 'logo.svg', alt: "Fractaled Mind" %> </a> </div> <ul id="social-networks"> <li> <a href="https://facebook.com/fractaledmind" class="no-hvr"> <i class="fa fa-facebook fa-lg"></i> </a> </li> <li> <a href="https://twitter.com/fractaledmind" class="no-hvr"> <i class="fa fa-twitter fa-lg"></i> </a> </li> <li> - <a href="https://github.com/smargh" class="no-hvr"> ? ^ ^^^^ + <a href="https://github.com/fractaledmind" class="no-hvr"> ? ^^^^^^^^^ ^^^ <i class="fa fa-github fa-lg"></i> </a> </li> <li> <a href="mailto:stephen@fractaledmind.com" class="no-hvr"> <i class="fa fa-envelope fa-lg"></i> </a> </li> <li> <a href="/feed.xml" class="no-hvr"> <i class="fa fa-rss fa-lg"></i> </a> </li> </ul> </header>
2
0.057143
1
1
80d7fc06341e68dd66f4ffc76e6995d444b822ac
MapSatAltitude.sh
MapSatAltitude.sh
if hash matlab 2>/dev/null; then export MLINARG=$@ matlab -nodesktop -nosplash -r "inputArg = getenv( 'MLINARG' ); MapSatAltitude( inputArg ); exit;" elif hash octave 2>/dev/null; then octave --silent --eval "MapSatAltitude('$@')" fi
export MSAINARG=$@ if hash octave 2>/dev/null; then octave --silent --eval "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg );" elif hash matlab 2>/dev/null; then matlab -nodesktop -nosplash -r "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg ); exit;" fi
Fix parsing of command line arguments for Octave and switch order to prefer Octave as it seems to be faster
Fix parsing of command line arguments for Octave and switch order to prefer Octave as it seems to be faster
Shell
mit
technogeeky/MapSatAltitude,technogeeky/MapSatAltitude
shell
## Code Before: if hash matlab 2>/dev/null; then export MLINARG=$@ matlab -nodesktop -nosplash -r "inputArg = getenv( 'MLINARG' ); MapSatAltitude( inputArg ); exit;" elif hash octave 2>/dev/null; then octave --silent --eval "MapSatAltitude('$@')" fi ## Instruction: Fix parsing of command line arguments for Octave and switch order to prefer Octave as it seems to be faster ## Code After: export MSAINARG=$@ if hash octave 2>/dev/null; then octave --silent --eval "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg );" elif hash matlab 2>/dev/null; then matlab -nodesktop -nosplash -r "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg ); exit;" fi
+ export MSAINARG=$@ + if hash octave 2>/dev/null; then + octave --silent --eval "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg );" - if hash matlab 2>/dev/null; then + elif hash matlab 2>/dev/null; then ? ++ - export MLINARG=$@ - matlab -nodesktop -nosplash -r "inputArg = getenv( 'MLINARG' ); MapSatAltitude( inputArg ); exit;" ? ^ + matlab -nodesktop -nosplash -r "inputArg = getenv( 'MSAINARG' ); MapSatAltitude( inputArg ); exit;" ? ^^ - elif hash octave 2>/dev/null; then - octave --silent --eval "MapSatAltitude('$@')" fi
10
1.666667
5
5
d6b4024d502e189e67d9027a50e472b7c295a83f
misc/migrate_miro_vhs.py
misc/migrate_miro_vhs.py
import boto3 def get_existing_records(dynamodb_client): """ Generates existing Miro records from the SourceData table. """ paginator = dynamodb_client.get_paginator('scan') for page in paginator.paginate(TableName='SourceData'): for item in page['Items']: yield item if __name__ == '__main__': dynamodb_client = boto3.client('dynamodb') for item in get_existing_records(dynamodb_client): print(item) break
import boto3 OLD_TABLE = 'SourceData' OLD_BUCKET = 'wellcomecollection-vhs-sourcedata' NEW_TABLE = 'wellcomecollection-vhs-sourcedata-miro' NEW_BUCKET = 'wellcomecollection-vhs-sourcedata-miro' def get_existing_records(dynamodb_client): """ Generates existing Miro records from the SourceData table. """ paginator = dynamodb_client.get_paginator('scan') for page in paginator.paginate(TableName=OLD_TABLE): for item in page['Items']: if 'reindexShard' not in item: print(item) if item['sourceName'] != {'S': 'miro'}: continue yield item if __name__ == '__main__': dynamodb_client = boto3.client('dynamodb') s3_client = boto3.client('s3') for item in get_existing_records(dynamodb_client): del item['sourceName'] s3_client.copy_object( Bucket=NEW_BUCKET, Key=item['s3key']['S'].replace('miro/', ''), CopySource={ 'Bucket': OLD_BUCKET, 'Key': item['s3key']['S'] } ) print(item) break
Copy the S3 object into the new bucket
Copy the S3 object into the new bucket
Python
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
python
## Code Before: import boto3 def get_existing_records(dynamodb_client): """ Generates existing Miro records from the SourceData table. """ paginator = dynamodb_client.get_paginator('scan') for page in paginator.paginate(TableName='SourceData'): for item in page['Items']: yield item if __name__ == '__main__': dynamodb_client = boto3.client('dynamodb') for item in get_existing_records(dynamodb_client): print(item) break ## Instruction: Copy the S3 object into the new bucket ## Code After: import boto3 OLD_TABLE = 'SourceData' OLD_BUCKET = 'wellcomecollection-vhs-sourcedata' NEW_TABLE = 'wellcomecollection-vhs-sourcedata-miro' NEW_BUCKET = 'wellcomecollection-vhs-sourcedata-miro' def get_existing_records(dynamodb_client): """ Generates existing Miro records from the SourceData table. """ paginator = dynamodb_client.get_paginator('scan') for page in paginator.paginate(TableName=OLD_TABLE): for item in page['Items']: if 'reindexShard' not in item: print(item) if item['sourceName'] != {'S': 'miro'}: continue yield item if __name__ == '__main__': dynamodb_client = boto3.client('dynamodb') s3_client = boto3.client('s3') for item in get_existing_records(dynamodb_client): del item['sourceName'] s3_client.copy_object( Bucket=NEW_BUCKET, Key=item['s3key']['S'].replace('miro/', ''), CopySource={ 'Bucket': OLD_BUCKET, 'Key': item['s3key']['S'] } ) print(item) break
import boto3 + + + OLD_TABLE = 'SourceData' + OLD_BUCKET = 'wellcomecollection-vhs-sourcedata' + + NEW_TABLE = 'wellcomecollection-vhs-sourcedata-miro' + NEW_BUCKET = 'wellcomecollection-vhs-sourcedata-miro' def get_existing_records(dynamodb_client): """ Generates existing Miro records from the SourceData table. """ paginator = dynamodb_client.get_paginator('scan') - for page in paginator.paginate(TableName='SourceData'): ? ^^^^^^^ ^^^^ + for page in paginator.paginate(TableName=OLD_TABLE): ? ^^ ^^^^^^ for item in page['Items']: + if 'reindexShard' not in item: + print(item) + + if item['sourceName'] != {'S': 'miro'}: + continue yield item if __name__ == '__main__': dynamodb_client = boto3.client('dynamodb') + s3_client = boto3.client('s3') for item in get_existing_records(dynamodb_client): + del item['sourceName'] + + s3_client.copy_object( + Bucket=NEW_BUCKET, + Key=item['s3key']['S'].replace('miro/', ''), + CopySource={ + 'Bucket': OLD_BUCKET, + 'Key': item['s3key']['S'] + } + ) + print(item) break
26
1.3
25
1
d17b4278cdada7a84c43cb37f08ba333661fe0ef
tox.ini
tox.ini
[tox] envlist = py26, py27, py32, py33, pypy, lint, docs, coverage [flake8] max-line-length = 110 exclude = .tox,.git,doc [testenv] deps = nose mock commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests {posargs} [testenv:lint] deps = flake8 pep8-naming commands = flake8 test honcho [testenv:docs] changedir = doc deps = sphinx commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:coverage] deps = {[testenv]deps} coverage commands = nosetests --with-coverage --cover-branches --cover-package honcho {posargs:test/unit}
[tox] envlist = py26, py27, py32, py33, pypy, lint, docs, coverage [flake8] max-line-length = 110 exclude = .tox,.git,doc [testenv] deps = nose mock commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests {posargs} [testenv:lint] deps = flake8 pep8-naming commands = flake8 test honcho [testenv:docs] changedir = doc deps = sphinx commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:coverage] deps = {[testenv]deps} coverage commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests --with-coverage --cover-branches --cover-package honcho {posargs:test/unit}
Add jinja dependency in coverage tests
Add jinja dependency in coverage tests
INI
mit
nickstenning/honcho,gratipay/honcho,janusnic/honcho,xarisd/honcho,myyk/honcho,gratipay/honcho,nickstenning/honcho
ini
## Code Before: [tox] envlist = py26, py27, py32, py33, pypy, lint, docs, coverage [flake8] max-line-length = 110 exclude = .tox,.git,doc [testenv] deps = nose mock commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests {posargs} [testenv:lint] deps = flake8 pep8-naming commands = flake8 test honcho [testenv:docs] changedir = doc deps = sphinx commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:coverage] deps = {[testenv]deps} coverage commands = nosetests --with-coverage --cover-branches --cover-package honcho {posargs:test/unit} ## Instruction: Add jinja dependency in coverage tests ## Code After: [tox] envlist = py26, py27, py32, py33, pypy, lint, docs, coverage [flake8] max-line-length = 110 exclude = .tox,.git,doc [testenv] deps = nose mock commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests {posargs} [testenv:lint] deps = flake8 pep8-naming commands = flake8 test honcho [testenv:docs] changedir = doc deps = sphinx commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:coverage] deps = {[testenv]deps} coverage commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests --with-coverage --cover-branches --cover-package honcho {posargs:test/unit}
[tox] envlist = py26, py27, py32, py33, pypy, lint, docs, coverage [flake8] max-line-length = 110 exclude = .tox,.git,doc [testenv] deps = nose mock commands = # We run export tests as well, so install Jinja2 too pip install -q jinja2>=2.7,<2.8 nosetests {posargs} [testenv:lint] deps = flake8 pep8-naming commands = flake8 test honcho [testenv:docs] changedir = doc deps = sphinx commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:coverage] deps = {[testenv]deps} coverage commands = + # We run export tests as well, so install Jinja2 too + pip install -q jinja2>=2.7,<2.8 nosetests --with-coverage --cover-branches --cover-package honcho {posargs:test/unit}
2
0.054054
2
0
76bc5171cbccf9ce171f8891f24b66daa91aef0d
glitter/pages/forms.py
glitter/pages/forms.py
from __future__ import unicode_literals from django import forms from django.conf import settings from .models import Page from glitter.integration import glitter_app_pool class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'show_in_navigation'] labels = { 'url': 'New URL', 'title': 'New title', } def __init__(self, *args, **kwargs): if not getattr(settings, 'GLITTER_SHOW_LOGIN_REQUIRED', False): if 'login_required' in self.Meta.fields: self.Meta.fields.remove('login_required') super(DuplicatePageForm, self).__init__(*args, **kwargs) def get_glitter_app_choices(): glitter_apps = glitter_app_pool.get_glitter_apps() choices = [('', '(none)')] for app_name, glitter_app in glitter_apps.items(): choices.append((app_name, glitter_app.name)) return choices class PageAdminForm(forms.ModelForm): class Meta: model = Page widgets = { 'glitter_app_name': forms.widgets.Select(choices=get_glitter_app_choices()), } fields = '__all__'
from __future__ import unicode_literals from django import forms from django.conf import settings from glitter.integration import glitter_app_pool from .models import Page class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'show_in_navigation'] labels = { 'url': 'New URL', 'title': 'New title', } def __init__(self, *args, **kwargs): if not getattr(settings, 'GLITTER_SHOW_LOGIN_REQUIRED', False): if 'login_required' in self.Meta.fields: self.Meta.fields.remove('login_required') super(DuplicatePageForm, self).__init__(*args, **kwargs) def get_glitter_app_choices(): glitter_apps = glitter_app_pool.get_glitter_apps() choices = [('', '(none)')] for app_system_name, glitter_app in glitter_apps.items(): choices.append((app_system_name, glitter_app.name)) # Sort by glitter_app name choices = sorted(choices, key=lambda x: x[1]) return choices class PageAdminForm(forms.ModelForm): class Meta: model = Page widgets = { 'glitter_app_name': forms.widgets.Select(choices=get_glitter_app_choices()), } fields = '__all__'
Sort the Glitter app choices for page admin
Sort the Glitter app choices for page admin For #69
Python
bsd-3-clause
developersociety/django-glitter,developersociety/django-glitter,blancltd/django-glitter,developersociety/django-glitter,blancltd/django-glitter,blancltd/django-glitter
python
## Code Before: from __future__ import unicode_literals from django import forms from django.conf import settings from .models import Page from glitter.integration import glitter_app_pool class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'show_in_navigation'] labels = { 'url': 'New URL', 'title': 'New title', } def __init__(self, *args, **kwargs): if not getattr(settings, 'GLITTER_SHOW_LOGIN_REQUIRED', False): if 'login_required' in self.Meta.fields: self.Meta.fields.remove('login_required') super(DuplicatePageForm, self).__init__(*args, **kwargs) def get_glitter_app_choices(): glitter_apps = glitter_app_pool.get_glitter_apps() choices = [('', '(none)')] for app_name, glitter_app in glitter_apps.items(): choices.append((app_name, glitter_app.name)) return choices class PageAdminForm(forms.ModelForm): class Meta: model = Page widgets = { 'glitter_app_name': forms.widgets.Select(choices=get_glitter_app_choices()), } fields = '__all__' ## Instruction: Sort the Glitter app choices for page admin For #69 ## Code After: from __future__ import unicode_literals from django import forms from django.conf import settings from glitter.integration import glitter_app_pool from .models import Page class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'show_in_navigation'] labels = { 'url': 'New URL', 'title': 'New title', } def __init__(self, *args, **kwargs): if not getattr(settings, 'GLITTER_SHOW_LOGIN_REQUIRED', False): if 'login_required' in self.Meta.fields: self.Meta.fields.remove('login_required') super(DuplicatePageForm, self).__init__(*args, **kwargs) def get_glitter_app_choices(): glitter_apps = glitter_app_pool.get_glitter_apps() choices = [('', '(none)')] for app_system_name, glitter_app in glitter_apps.items(): choices.append((app_system_name, glitter_app.name)) # Sort by glitter_app name choices = sorted(choices, key=lambda x: x[1]) return choices class PageAdminForm(forms.ModelForm): class Meta: model = Page widgets = { 'glitter_app_name': forms.widgets.Select(choices=get_glitter_app_choices()), } fields = '__all__'
from __future__ import unicode_literals from django import forms from django.conf import settings + from glitter.integration import glitter_app_pool + from .models import Page - from glitter.integration import glitter_app_pool class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'show_in_navigation'] labels = { 'url': 'New URL', 'title': 'New title', } def __init__(self, *args, **kwargs): if not getattr(settings, 'GLITTER_SHOW_LOGIN_REQUIRED', False): if 'login_required' in self.Meta.fields: self.Meta.fields.remove('login_required') super(DuplicatePageForm, self).__init__(*args, **kwargs) def get_glitter_app_choices(): glitter_apps = glitter_app_pool.get_glitter_apps() choices = [('', '(none)')] - for app_name, glitter_app in glitter_apps.items(): + for app_system_name, glitter_app in glitter_apps.items(): ? +++++++ - choices.append((app_name, glitter_app.name)) + choices.append((app_system_name, glitter_app.name)) ? +++++++ + + # Sort by glitter_app name + choices = sorted(choices, key=lambda x: x[1]) return choices class PageAdminForm(forms.ModelForm): class Meta: model = Page widgets = { 'glitter_app_name': forms.widgets.Select(choices=get_glitter_app_choices()), } fields = '__all__'
10
0.25
7
3
a379db2914896e3dfe5d8b6a9a592ac00c0223b3
.travis.yml
.travis.yml
language: node_js sudo: false node_js: - "0.10" install: - curl https://install.meteor.com | /bin/sh - npm install -g eslint - npm install -g spacejam script: - export PATH="$HOME/.meteor:$PATH" - cp settings.json.template settings.json - ./run_tests.sh -l - ./run_tests.sh -t branches: only: - master notifications: irc: channels: - "irc.what-network.net#gazelle" template: - "Build %{build_number} %{result}: %{build_url}" on_success: change on_failure: always use_notice: false skip_join: false
language: node_js sudo: false node_js: - "0.10" install: - curl https://install.meteor.com | /bin/sh - npm install -g eslint - npm install -g spacejam script: - export PATH="$HOME/.meteor:$PATH" - cp settings.json.template settings.json - ./run_tests.sh -l - ./run_tests.sh -t branches: only: - master
Remove IRC notifications from Travis
Remove IRC notifications from Travis
YAML
mit
yash069/meteor-gazelle,ahaym/meteor-gazelle,meteor-gazelle/meteor-gazelle,JerimyTate/meteor-gazelle,sneakysneakysneaky/meteor-gazelle,ahaym/meteor-gazelle,harrybui22/meteor-gazelle,sneakysneakysneaky/meteor-gazelle,haresbarak/meteor-gazelle,haresbarak/meteor-gazelle,haresbarak/meteor-gazelle,harrybui22/meteor-gazelle,meteor-gazelle/meteor-gazelle,ahaym/meteor-gazelle,yash069/meteor-gazelle,JerimyTate/meteor-gazelle,yash069/meteor-gazelle,meteor-gazelle/meteor-gazelle,sneakysneakysneaky/meteor-gazelle,harrybui22/meteor-gazelle,JerimyTate/meteor-gazelle
yaml
## Code Before: language: node_js sudo: false node_js: - "0.10" install: - curl https://install.meteor.com | /bin/sh - npm install -g eslint - npm install -g spacejam script: - export PATH="$HOME/.meteor:$PATH" - cp settings.json.template settings.json - ./run_tests.sh -l - ./run_tests.sh -t branches: only: - master notifications: irc: channels: - "irc.what-network.net#gazelle" template: - "Build %{build_number} %{result}: %{build_url}" on_success: change on_failure: always use_notice: false skip_join: false ## Instruction: Remove IRC notifications from Travis ## Code After: language: node_js sudo: false node_js: - "0.10" install: - curl https://install.meteor.com | /bin/sh - npm install -g eslint - npm install -g spacejam script: - export PATH="$HOME/.meteor:$PATH" - cp settings.json.template settings.json - ./run_tests.sh -l - ./run_tests.sh -t branches: only: - master
language: node_js sudo: false node_js: - "0.10" install: - curl https://install.meteor.com | /bin/sh - npm install -g eslint - npm install -g spacejam script: - export PATH="$HOME/.meteor:$PATH" - cp settings.json.template settings.json - ./run_tests.sh -l - ./run_tests.sh -t branches: only: - master - - notifications: - irc: - channels: - - "irc.what-network.net#gazelle" - template: - - "Build %{build_number} %{result}: %{build_url}" - on_success: change - on_failure: always - use_notice: false - skip_join: false
11
0.392857
0
11
fbd13a6b9ead033d4f68b7976ed053350255e5e4
README.md
README.md
A highly composable &amp; reusable select components [![npm version](https://badge.fury.io/js/react-power-select.svg)](https://www.npmjs.com/package/react-power-select) ### DEMO https://selvagsz.github.io/react-power-select/ # Installation ```bash npm i react-power-select --save ``` # Usage ```js import { Component } from 'react' import { PowerSelect } from 'react-power-select' export default class Demo extends Component { state = {}; handleChange({ option }) { this.setState({ selectedOption: option }) } render() { return ( <PowerSelect options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']} selected={this.state.selectedOption} onChange={this.handleChange} /> ) } } ``` ## Credits Hat tip to [ember-power-select's](https://github.com/cibernox/ember-power-select) [architecture](http://www.ember-power-select.com/EPS_disected-48ad0d36e579a5554bff1407b51c554b.png)
A highly composable &amp; reusable select components [![npm version](https://badge.fury.io/js/react-power-select.svg)](https://www.npmjs.com/package/react-power-select) ### DEMO https://selvagsz.github.io/react-power-select/ # Installation ```bash npm i react-power-select --save ``` Import the CSS in your bundle ```js import 'react-power-select/dist/react-power-select.css' ``` # Usage ```js import React, { Component } from 'react' import { PowerSelect } from 'react-power-select' export default class Demo extends Component { state = {}; handleChange = ({ option }) => { this.setState({ selectedOption: option }) } render() { return ( <PowerSelect options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']} selected={this.state.selectedOption} onChange={this.handleChange} /> ) } } ``` ## Credits Hat tip to [ember-power-select's](https://github.com/cibernox/ember-power-select) [architecture](http://www.ember-power-select.com/EPS_disected-48ad0d36e579a5554bff1407b51c554b.png)
Update readme with css import step
Update readme with css import step
Markdown
mit
selvagsz/react-power-select,selvagsz/react-power-select
markdown
## Code Before: A highly composable &amp; reusable select components [![npm version](https://badge.fury.io/js/react-power-select.svg)](https://www.npmjs.com/package/react-power-select) ### DEMO https://selvagsz.github.io/react-power-select/ # Installation ```bash npm i react-power-select --save ``` # Usage ```js import { Component } from 'react' import { PowerSelect } from 'react-power-select' export default class Demo extends Component { state = {}; handleChange({ option }) { this.setState({ selectedOption: option }) } render() { return ( <PowerSelect options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']} selected={this.state.selectedOption} onChange={this.handleChange} /> ) } } ``` ## Credits Hat tip to [ember-power-select's](https://github.com/cibernox/ember-power-select) [architecture](http://www.ember-power-select.com/EPS_disected-48ad0d36e579a5554bff1407b51c554b.png) ## Instruction: Update readme with css import step ## Code After: A highly composable &amp; reusable select components [![npm version](https://badge.fury.io/js/react-power-select.svg)](https://www.npmjs.com/package/react-power-select) ### DEMO https://selvagsz.github.io/react-power-select/ # Installation ```bash npm i react-power-select --save ``` Import the CSS in your bundle ```js import 'react-power-select/dist/react-power-select.css' ``` # Usage ```js import React, { Component } from 'react' import { PowerSelect } from 'react-power-select' export default class Demo extends Component { state = {}; handleChange = ({ option }) => { this.setState({ selectedOption: option }) } render() { return ( <PowerSelect options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']} selected={this.state.selectedOption} onChange={this.handleChange} /> ) } } ``` ## Credits Hat tip to [ember-power-select's](https://github.com/cibernox/ember-power-select) [architecture](http://www.ember-power-select.com/EPS_disected-48ad0d36e579a5554bff1407b51c554b.png)
A highly composable &amp; reusable select components [![npm version](https://badge.fury.io/js/react-power-select.svg)](https://www.npmjs.com/package/react-power-select) ### DEMO https://selvagsz.github.io/react-power-select/ # Installation ```bash npm i react-power-select --save ``` + Import the CSS in your bundle + + ```js + import 'react-power-select/dist/react-power-select.css' + ``` + # Usage ```js - import { Component } from 'react' + import React, { Component } from 'react' ? +++++++ import { PowerSelect } from 'react-power-select' export default class Demo extends Component { state = {}; - handleChange({ option }) { + handleChange = ({ option }) => { ? +++ +++ this.setState({ selectedOption: option }) } render() { return ( <PowerSelect options={['React', 'Ember', 'Angular', 'Vue', 'Preact', 'Inferno']} selected={this.state.selectedOption} onChange={this.handleChange} /> ) } } ``` ## Credits Hat tip to [ember-power-select's](https://github.com/cibernox/ember-power-select) [architecture](http://www.ember-power-select.com/EPS_disected-48ad0d36e579a5554bff1407b51c554b.png)
10
0.232558
8
2
45f4862c97baa444ca1a618234bb8c0c31565889
.travis.yml
.travis.yml
language: go go: - 1.3 - tip install: - go get golang.org/x/net/publicsuffix script: - go test -v --short - make test-build-travis
language: go go: - 1.3 - tip install: - go get golang.org/x/net/publicsuffix - go get google.golang.org/cloud/datastore script: - go test -v --short - make test-build-travis
Add datastore Go package dependency to Travis.
Add datastore Go package dependency to Travis.
YAML
bsd-3-clause
chromium/hstspreload
yaml
## Code Before: language: go go: - 1.3 - tip install: - go get golang.org/x/net/publicsuffix script: - go test -v --short - make test-build-travis ## Instruction: Add datastore Go package dependency to Travis. ## Code After: language: go go: - 1.3 - tip install: - go get golang.org/x/net/publicsuffix - go get google.golang.org/cloud/datastore script: - go test -v --short - make test-build-travis
language: go go: - 1.3 - tip install: - go get golang.org/x/net/publicsuffix + - go get google.golang.org/cloud/datastore script: - go test -v --short - make test-build-travis
1
0.083333
1
0
9aa6bd1fc5bb24d1e58196ed17ad0b2ba23edafc
pillar/live_pillar.sls
pillar/live_pillar.sls
default_branch: 'live' cove: ocds_redirect: True larger_uwsgi_limits: True # note, for cove-live-ocds-2 these uwsgi_* definitions are superseded by # definitions in ocds_live_pillar.sls uwsgi_as_limit: 3000 uwsgi_harakiri: 300 # apache_uwsgi_timeout is defined here for the benefit of apache httpd on live2, # it needs to be "a bit bigger than" the value of uwsgi_harakiri *on cove-live-ocds-2* # (which is defined in ocds_live_pillar.sls, *not* above) apache_uwsgi_timeout: 1830 app: cove_ocds https: 'yes' servername: 'cove.live.cove.opencontracting.uk0.bigv.io' opendataservices_website: https: 'force' servername: 'opendataservices.coop' serveraliases: ['www.opendataservices.coop'] os4d_apache_https: "force"
default_branch: 'live' cove: ocds_redirect: True larger_uwsgi_limits: True # note, for cove-live-ocds-2 these uwsgi_* definitions are superseded by # definitions in ocds_live_pillar.sls uwsgi_as_limit: 3000 uwsgi_harakiri: 300 # apache_uwsgi_timeout is defined here for the benefit of apache httpd on live2, # it needs to be "a bit bigger than" the value of uwsgi_harakiri *on cove-live-ocds-2* # (which is defined in ocds_live_pillar.sls, *not* above) apache_uwsgi_timeout: 1830 app: cove_ocds https: 'yes' servername: 'cove.live.cove.opencontracting.uk0.bigv.io' opendataservices_website: https: 'force' servername: 'opendataservices.coop' serveraliases: ['www.opendataservices.coop'] default_branch: 'live' os4d_apache_https: "force"
Fix deploy re. master->dev renaming, part 2 :)
opendataservices-website: Fix deploy re. master->dev renaming, part 2 :)
SaltStack
mit
OpenDataServices/opendataservices-deploy,OpenDataServices/opendataservices-deploy
saltstack
## Code Before: default_branch: 'live' cove: ocds_redirect: True larger_uwsgi_limits: True # note, for cove-live-ocds-2 these uwsgi_* definitions are superseded by # definitions in ocds_live_pillar.sls uwsgi_as_limit: 3000 uwsgi_harakiri: 300 # apache_uwsgi_timeout is defined here for the benefit of apache httpd on live2, # it needs to be "a bit bigger than" the value of uwsgi_harakiri *on cove-live-ocds-2* # (which is defined in ocds_live_pillar.sls, *not* above) apache_uwsgi_timeout: 1830 app: cove_ocds https: 'yes' servername: 'cove.live.cove.opencontracting.uk0.bigv.io' opendataservices_website: https: 'force' servername: 'opendataservices.coop' serveraliases: ['www.opendataservices.coop'] os4d_apache_https: "force" ## Instruction: opendataservices-website: Fix deploy re. master->dev renaming, part 2 :) ## Code After: default_branch: 'live' cove: ocds_redirect: True larger_uwsgi_limits: True # note, for cove-live-ocds-2 these uwsgi_* definitions are superseded by # definitions in ocds_live_pillar.sls uwsgi_as_limit: 3000 uwsgi_harakiri: 300 # apache_uwsgi_timeout is defined here for the benefit of apache httpd on live2, # it needs to be "a bit bigger than" the value of uwsgi_harakiri *on cove-live-ocds-2* # (which is defined in ocds_live_pillar.sls, *not* above) apache_uwsgi_timeout: 1830 app: cove_ocds https: 'yes' servername: 'cove.live.cove.opencontracting.uk0.bigv.io' opendataservices_website: https: 'force' servername: 'opendataservices.coop' serveraliases: ['www.opendataservices.coop'] default_branch: 'live' os4d_apache_https: "force"
default_branch: 'live' cove: ocds_redirect: True larger_uwsgi_limits: True # note, for cove-live-ocds-2 these uwsgi_* definitions are superseded by # definitions in ocds_live_pillar.sls uwsgi_as_limit: 3000 uwsgi_harakiri: 300 # apache_uwsgi_timeout is defined here for the benefit of apache httpd on live2, # it needs to be "a bit bigger than" the value of uwsgi_harakiri *on cove-live-ocds-2* # (which is defined in ocds_live_pillar.sls, *not* above) apache_uwsgi_timeout: 1830 app: cove_ocds https: 'yes' servername: 'cove.live.cove.opencontracting.uk0.bigv.io' opendataservices_website: https: 'force' servername: 'opendataservices.coop' serveraliases: ['www.opendataservices.coop'] + default_branch: 'live' os4d_apache_https: "force"
1
0.045455
1
0
bd2f7839c7ff72debe895e9c1d6a0f65dba9e021
collections/search_blocks.coffee
collections/search_blocks.coffee
Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' module.exports = class SearchBlocks extends Blocks defaultOptions: page: 1 per: 20 model: Block url: -> if @options.subject return "#{sd.API_URL}/search/#{@options.subject}?#{params.encode(@options)}" else return "#{sd.API_URL}/search?#{params.encode(@options)}" parse: (data)-> @total_pages = data.total_pages _.flatten _.values _.pick(data, ['contents', 'followers', 'users', 'channels', 'following', 'blocks', 'results']) loadNext: -> return false if @options.page > @total_pages ++@options.page @fetch remove: false, merge: true
Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' Fetch = require '../lib/fetch.coffee' AtoZ = require '../lib/a_to_z.coffee' module.exports = class SearchBlocks extends Blocks _.extend @prototype, Fetch _.extend @prototype, AtoZ defaultOptions: page: 1 per: 20 model: Block url: -> if @options.subject return "#{sd.API_URL}/search/#{@options.subject}?#{params.encode(@options)}" else return "#{sd.API_URL}/search?#{params.encode(@options)}" parse: (data)-> @total_pages = data.total_pages _.flatten _.values _.pick(data, ['contents', 'followers', 'users', 'channels', 'following', 'blocks', 'results']) loadNext: -> return false if @options.page > @total_pages ++@options.page @fetch remove: false, merge: true
Add fetch and a to z lib to SearchBlocks
Add fetch and a to z lib to SearchBlocks
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
coffeescript
## Code Before: Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' module.exports = class SearchBlocks extends Blocks defaultOptions: page: 1 per: 20 model: Block url: -> if @options.subject return "#{sd.API_URL}/search/#{@options.subject}?#{params.encode(@options)}" else return "#{sd.API_URL}/search?#{params.encode(@options)}" parse: (data)-> @total_pages = data.total_pages _.flatten _.values _.pick(data, ['contents', 'followers', 'users', 'channels', 'following', 'blocks', 'results']) loadNext: -> return false if @options.page > @total_pages ++@options.page @fetch remove: false, merge: true ## Instruction: Add fetch and a to z lib to SearchBlocks ## Code After: Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' Fetch = require '../lib/fetch.coffee' AtoZ = require '../lib/a_to_z.coffee' module.exports = class SearchBlocks extends Blocks _.extend @prototype, Fetch _.extend @prototype, AtoZ defaultOptions: page: 1 per: 20 model: Block url: -> if @options.subject return "#{sd.API_URL}/search/#{@options.subject}?#{params.encode(@options)}" else return "#{sd.API_URL}/search?#{params.encode(@options)}" parse: (data)-> @total_pages = data.total_pages _.flatten _.values _.pick(data, ['contents', 'followers', 'users', 'channels', 'following', 'blocks', 'results']) loadNext: -> return false if @options.page > @total_pages ++@options.page @fetch remove: false, merge: true
Blocks = require("./blocks.coffee") sd = require("sharify").data _ = require 'underscore' Block = require("../models/block.coffee") params = require 'query-params' + Fetch = require '../lib/fetch.coffee' + AtoZ = require '../lib/a_to_z.coffee' module.exports = class SearchBlocks extends Blocks + _.extend @prototype, Fetch + _.extend @prototype, AtoZ + defaultOptions: page: 1 per: 20 model: Block url: -> if @options.subject return "#{sd.API_URL}/search/#{@options.subject}?#{params.encode(@options)}" else return "#{sd.API_URL}/search?#{params.encode(@options)}" parse: (data)-> @total_pages = data.total_pages _.flatten _.values _.pick(data, ['contents', 'followers', 'users', 'channels', 'following', 'blocks', 'results']) loadNext: -> return false if @options.page > @total_pages ++@options.page @fetch remove: false, merge: true
5
0.172414
5
0
7406b87053003b9a23f8e12dbbc65735d7c079ce
agar-mass-ejector.user.js
agar-mass-ejector.user.js
// ==UserScript== // @name agar-mass-ejector // @namespace http://github.com/dimotsai/ // @version 0.02 // @description A faster, continuous mass ejector for agar. // @author dimotsai // @license MIT // @match http://agar.io/ // @grant none // @run-at document-end // ==/UserScript== (function() { var $ = window.jQuery; $(window).load(function() { var onkeydown = window.onkeydown; var onkeyup = window.onkeyup; var amount = 6; var duration = 50; //ms var overwriting = function(evt) { if (evt.keyCode === 69) { // KEY_E for (var i = 0; i < amount; ++i) { setTimeout(function() { onkeydown({keyCode: 87}); // KEY_W onkeyup({keyCode: 87}); }, i * duration); } } else { onkeydown(evt); } }; if (onkeydown === overwriting) return; window.onkeydown = overwriting; }); })();
// ==UserScript== // @name agar-mass-ejector // @namespace http://github.com/dimotsai/ // @version 0.03 // @description A faster, continuous mass ejector for agar. // @author dimotsai // @license MIT // @match http://agar.io/* // @grant none // @run-at document-end // ==/UserScript== (function() { var amount = 6; var duration = 50; //ms var overwriting = function(evt) { if (evt.keyCode === 69) { // KEY_E for (var i = 0; i < amount; ++i) { setTimeout(function() { window.onkeydown({keyCode: 87}); // KEY_W window.onkeyup({keyCode: 87}); }, i * duration); } } }; window.addEventListener('keydown', overwriting); })();
Increase compatibility with other plugins
Increase compatibility with other plugins Plugins such as viptool+ or 大虫
JavaScript
mit
dimotsai/agar-mass-ejector
javascript
## Code Before: // ==UserScript== // @name agar-mass-ejector // @namespace http://github.com/dimotsai/ // @version 0.02 // @description A faster, continuous mass ejector for agar. // @author dimotsai // @license MIT // @match http://agar.io/ // @grant none // @run-at document-end // ==/UserScript== (function() { var $ = window.jQuery; $(window).load(function() { var onkeydown = window.onkeydown; var onkeyup = window.onkeyup; var amount = 6; var duration = 50; //ms var overwriting = function(evt) { if (evt.keyCode === 69) { // KEY_E for (var i = 0; i < amount; ++i) { setTimeout(function() { onkeydown({keyCode: 87}); // KEY_W onkeyup({keyCode: 87}); }, i * duration); } } else { onkeydown(evt); } }; if (onkeydown === overwriting) return; window.onkeydown = overwriting; }); })(); ## Instruction: Increase compatibility with other plugins Plugins such as viptool+ or 大虫 ## Code After: // ==UserScript== // @name agar-mass-ejector // @namespace http://github.com/dimotsai/ // @version 0.03 // @description A faster, continuous mass ejector for agar. // @author dimotsai // @license MIT // @match http://agar.io/* // @grant none // @run-at document-end // ==/UserScript== (function() { var amount = 6; var duration = 50; //ms var overwriting = function(evt) { if (evt.keyCode === 69) { // KEY_E for (var i = 0; i < amount; ++i) { setTimeout(function() { window.onkeydown({keyCode: 87}); // KEY_W window.onkeyup({keyCode: 87}); }, i * duration); } } }; window.addEventListener('keydown', overwriting); })();
// ==UserScript== // @name agar-mass-ejector // @namespace http://github.com/dimotsai/ - // @version 0.02 ? ^ + // @version 0.03 ? ^ // @description A faster, continuous mass ejector for agar. // @author dimotsai // @license MIT - // @match http://agar.io/ + // @match http://agar.io/* ? + // @grant none // @run-at document-end // ==/UserScript== (function() { - var $ = window.jQuery; + var amount = 6; + var duration = 50; //ms - $(window).load(function() { - var onkeydown = window.onkeydown; - var onkeyup = window.onkeyup; - var amount = 6; - var duration = 50; //ms + var overwriting = function(evt) { + if (evt.keyCode === 69) { // KEY_E + for (var i = 0; i < amount; ++i) { + setTimeout(function() { + window.onkeydown({keyCode: 87}); // KEY_W + window.onkeyup({keyCode: 87}); + }, i * duration); + } + } + }; + window.addEventListener('keydown', overwriting); - var overwriting = function(evt) { - if (evt.keyCode === 69) { // KEY_E - for (var i = 0; i < amount; ++i) { - setTimeout(function() { - onkeydown({keyCode: 87}); // KEY_W - onkeyup({keyCode: 87}); - }, i * duration); - } - } else { - onkeydown(evt); - } - }; - - if (onkeydown === overwriting) return; - - window.onkeydown = overwriting; - }); })();
40
1.025641
15
25
f1a957a9fb7ab50400aea6dda4a004867b381cec
lib/rubycritic/turbulence.rb
lib/rubycritic/turbulence.rb
require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { name: path_info[0], x: path_info[1], y: path_info[2] } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end
require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { :name => path_info[0], :x => path_info[1], :y => path_info[2] } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end
Use Ruby 1.8's hash syntax
Use Ruby 1.8's hash syntax Consistency is important
Ruby
mit
bglusman/rubycritic,fimmtiu/rubycritic,ancorgs/rubycritic,ancorgs/rubycritic,bglusman/rubycritic,ancorgs/rubycritic,fimmtiu/rubycritic,whitesmith/rubycritic,fimmtiu/rubycritic,bglusman/rubycritic,whitesmith/rubycritic,whitesmith/rubycritic,whitesmith/rubycritic
ruby
## Code Before: require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { name: path_info[0], x: path_info[1], y: path_info[2] } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end ## Instruction: Use Ruby 1.8's hash syntax Consistency is important ## Code After: require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { :name => path_info[0], :x => path_info[1], :y => path_info[2] } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end
require "rubycritic/analysers/churn" require "rubycritic/analysers/flog" require "rubycritic/quality_adapters/flog" module Rubycritic class Turbulence def initialize(paths, source_control_system) @paths = paths @source_control_system = source_control_system end def data @paths.zip(churn, complexity).map do |path_info| { - name: path_info[0], ? ^ + :name => path_info[0], ? + ^^^ - x: path_info[1], ? ^ + :x => path_info[1], ? + ^^^ - y: path_info[2] ? ^ + :y => path_info[2] ? + ^^^ } end end def churn @churn ||= Analyser::Churn.new(@paths, @source_control_system).churn end def complexity @complexity ||= QualityAdapter::Flog.new(@paths).complexity end end end
6
0.1875
3
3
0942840fe4698d4c67e50ae8cbb1d6e74c163778
m4/lsc_sctp.m4
m4/lsc_sctp.m4
AC_DEFUN([LSC_CHECK_SCTP], [ have_sctp=no AC_ARG_ENABLE(sctp, AS_HELP_STRING([--enable-sctp], [enable SCTP support [[default=yes]]]),, enable_sctp="yes") AC_MSG_CHECKING([whether to enable SCTP support]) AS_IF([test "x$enable_sctp" = "xyes"], [ AC_MSG_RESULT([yes, checking prerequisites]) AC_CHECK_TYPE([struct sctp_sndrcvinfo], [ save_LIBS="$LIBS" AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [ SCTP_LIBS="${LIBS%${save_LIBS}}" have_sctp=yes AC_DEFINE([HAVE_SCTP], [1], [Define this if you have libsctp]) ]) LIBS="$save_LIBS" ], AC_MSG_WARN([SCTP disabled: headers not found]), [#include <netinet/sctp.h> ]) ], [ AC_MSG_RESULT([no, disabled by user]) ]) AC_SUBST([SCTP_LIBS]) AM_CONDITIONAL([HAVE_SCTP], [test "x$have_sctp" = "xyes"]) ])
AC_DEFUN([LSC_CHECK_SCTP], [ have_sctp=no AC_ARG_ENABLE(sctp, AS_HELP_STRING([--enable-sctp], [enable SCTP support [[default=yes]]]),, enable_sctp="yes") AC_MSG_CHECKING([whether to enable SCTP support]) AS_IF([test "x$enable_sctp" = "xyes"], [ AC_MSG_RESULT([yes, checking prerequisites]) AC_CHECK_HEADERS([sys/socket.h]) AC_CHECK_TYPE([struct sctp_sndrcvinfo], [ save_LIBS="$LIBS" AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [ SCTP_LIBS="${LIBS%${save_LIBS}}" have_sctp=yes AC_DEFINE([HAVE_SCTP], [1], [Define this if you have libsctp]) ]) LIBS="$save_LIBS" ], AC_MSG_WARN([SCTP disabled: headers not found]), [#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #include <netinet/sctp.h> ]) ], [ AC_MSG_RESULT([no, disabled by user]) ]) AC_SUBST([SCTP_LIBS]) AM_CONDITIONAL([HAVE_SCTP], [test "x$have_sctp" = "xyes"]) ])
Update SCTP check from netembryo.
Update SCTP check from netembryo.
M4
lgpl-2.1
lscube/feng,lscube/feng,lscube/feng,winlinvip/feng,winlinvip/feng,winlinvip/feng
m4
## Code Before: AC_DEFUN([LSC_CHECK_SCTP], [ have_sctp=no AC_ARG_ENABLE(sctp, AS_HELP_STRING([--enable-sctp], [enable SCTP support [[default=yes]]]),, enable_sctp="yes") AC_MSG_CHECKING([whether to enable SCTP support]) AS_IF([test "x$enable_sctp" = "xyes"], [ AC_MSG_RESULT([yes, checking prerequisites]) AC_CHECK_TYPE([struct sctp_sndrcvinfo], [ save_LIBS="$LIBS" AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [ SCTP_LIBS="${LIBS%${save_LIBS}}" have_sctp=yes AC_DEFINE([HAVE_SCTP], [1], [Define this if you have libsctp]) ]) LIBS="$save_LIBS" ], AC_MSG_WARN([SCTP disabled: headers not found]), [#include <netinet/sctp.h> ]) ], [ AC_MSG_RESULT([no, disabled by user]) ]) AC_SUBST([SCTP_LIBS]) AM_CONDITIONAL([HAVE_SCTP], [test "x$have_sctp" = "xyes"]) ]) ## Instruction: Update SCTP check from netembryo. ## Code After: AC_DEFUN([LSC_CHECK_SCTP], [ have_sctp=no AC_ARG_ENABLE(sctp, AS_HELP_STRING([--enable-sctp], [enable SCTP support [[default=yes]]]),, enable_sctp="yes") AC_MSG_CHECKING([whether to enable SCTP support]) AS_IF([test "x$enable_sctp" = "xyes"], [ AC_MSG_RESULT([yes, checking prerequisites]) AC_CHECK_HEADERS([sys/socket.h]) AC_CHECK_TYPE([struct sctp_sndrcvinfo], [ save_LIBS="$LIBS" AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [ SCTP_LIBS="${LIBS%${save_LIBS}}" have_sctp=yes AC_DEFINE([HAVE_SCTP], [1], [Define this if you have libsctp]) ]) LIBS="$save_LIBS" ], AC_MSG_WARN([SCTP disabled: headers not found]), [#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #include <netinet/sctp.h> ]) ], [ AC_MSG_RESULT([no, disabled by user]) ]) AC_SUBST([SCTP_LIBS]) AM_CONDITIONAL([HAVE_SCTP], [test "x$have_sctp" = "xyes"]) ])
AC_DEFUN([LSC_CHECK_SCTP], [ have_sctp=no AC_ARG_ENABLE(sctp, AS_HELP_STRING([--enable-sctp], [enable SCTP support [[default=yes]]]),, enable_sctp="yes") AC_MSG_CHECKING([whether to enable SCTP support]) AS_IF([test "x$enable_sctp" = "xyes"], [ AC_MSG_RESULT([yes, checking prerequisites]) + AC_CHECK_HEADERS([sys/socket.h]) + AC_CHECK_TYPE([struct sctp_sndrcvinfo], [ save_LIBS="$LIBS" AC_SEARCH_LIBS([sctp_recvmsg], [sctp], [ SCTP_LIBS="${LIBS%${save_LIBS}}" have_sctp=yes AC_DEFINE([HAVE_SCTP], [1], [Define this if you have libsctp]) ]) LIBS="$save_LIBS" ], AC_MSG_WARN([SCTP disabled: headers not found]), + [#ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif - [#include <netinet/sctp.h> ? ^ + #include <netinet/sctp.h> ? ^ ]) ], [ AC_MSG_RESULT([no, disabled by user]) ]) AC_SUBST([SCTP_LIBS]) AM_CONDITIONAL([HAVE_SCTP], [test "x$have_sctp" = "xyes"]) ])
7
0.225806
6
1
6f49fe976a26bbf302f4a9c1ee82f11e0652417c
DKNightVersion/DKNightVersion.h
DKNightVersion/DKNightVersion.h
// // DKNightVersion.h // DKNightVerision // // Created by Draveness on 4/14/15. // Copyright (c) 2015 Draveness. All rights reserved. // //! Project version string for MyFramework. FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[]; //! Project version number for MyFramework. FOUNDATION_EXPORT double DKNightVersionVersionNumber; #ifndef _DKNIGHTVERSION_ #define _DKNIGHTVERSION_ #import <Core/DKColor.h> #import <Core/DKImage.h> #import <Core/DKNightVersionManager.h> #import <Core/NSObject+Night.h> #import <ColorTable/DKColorTable.h> #import <UIKit/UIKit+Night.h> #import <CoreAnimation/CoreAnimation+Night.h> #endif /* _DKNIGHTVERSION_ */
// // DKNightVersion.h // DKNightVerision // // Created by Draveness on 4/14/15. // Copyright (c) 2015 Draveness. All rights reserved. // //! Project version string for MyFramework. FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[]; //! Project version number for MyFramework. FOUNDATION_EXPORT double DKNightVersionVersionNumber; #ifndef _DKNIGHTVERSION_ #define _DKNIGHTVERSION_ #import "Core/DKColor.h" #import "Core/DKImage.h" #import "Core/DKNightVersionManager.h" #import "Core/NSObject+Night.h" #import "ColorTable/DKColorTable.h" #import "UIKit/UIKit+Night.h" #import "CoreAnimation/CoreAnimation+Night.h" #endif /* _DKNIGHTVERSION_ */
Use " instead of angle bracket
Use " instead of angle bracket
C
mit
Draveness/DKNightVersion,Draveness/DKNightVersion,Draveness/DKNightVersion,ungacy/DKNightVersion,ungacy/DKNightVersion,ungacy/DKNightVersion
c
## Code Before: // // DKNightVersion.h // DKNightVerision // // Created by Draveness on 4/14/15. // Copyright (c) 2015 Draveness. All rights reserved. // //! Project version string for MyFramework. FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[]; //! Project version number for MyFramework. FOUNDATION_EXPORT double DKNightVersionVersionNumber; #ifndef _DKNIGHTVERSION_ #define _DKNIGHTVERSION_ #import <Core/DKColor.h> #import <Core/DKImage.h> #import <Core/DKNightVersionManager.h> #import <Core/NSObject+Night.h> #import <ColorTable/DKColorTable.h> #import <UIKit/UIKit+Night.h> #import <CoreAnimation/CoreAnimation+Night.h> #endif /* _DKNIGHTVERSION_ */ ## Instruction: Use " instead of angle bracket ## Code After: // // DKNightVersion.h // DKNightVerision // // Created by Draveness on 4/14/15. // Copyright (c) 2015 Draveness. All rights reserved. // //! Project version string for MyFramework. FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[]; //! Project version number for MyFramework. FOUNDATION_EXPORT double DKNightVersionVersionNumber; #ifndef _DKNIGHTVERSION_ #define _DKNIGHTVERSION_ #import "Core/DKColor.h" #import "Core/DKImage.h" #import "Core/DKNightVersionManager.h" #import "Core/NSObject+Night.h" #import "ColorTable/DKColorTable.h" #import "UIKit/UIKit+Night.h" #import "CoreAnimation/CoreAnimation+Night.h" #endif /* _DKNIGHTVERSION_ */
// // DKNightVersion.h // DKNightVerision // // Created by Draveness on 4/14/15. // Copyright (c) 2015 Draveness. All rights reserved. // //! Project version string for MyFramework. FOUNDATION_EXPORT const unsigned char DKNightVersionVersionString[]; //! Project version number for MyFramework. FOUNDATION_EXPORT double DKNightVersionVersionNumber; #ifndef _DKNIGHTVERSION_ #define _DKNIGHTVERSION_ - #import <Core/DKColor.h> ? ^ ^ + #import "Core/DKColor.h" ? ^ ^ - #import <Core/DKImage.h> ? ^ ^ + #import "Core/DKImage.h" ? ^ ^ - #import <Core/DKNightVersionManager.h> ? ^ ^ + #import "Core/DKNightVersionManager.h" ? ^ ^ - #import <Core/NSObject+Night.h> ? ^ ^ + #import "Core/NSObject+Night.h" ? ^ ^ - #import <ColorTable/DKColorTable.h> ? ^ ^ + #import "ColorTable/DKColorTable.h" ? ^ ^ - #import <UIKit/UIKit+Night.h> ? ^ ^ + #import "UIKit/UIKit+Night.h" ? ^ ^ - #import <CoreAnimation/CoreAnimation+Night.h> ? ^ ^ + #import "CoreAnimation/CoreAnimation+Night.h" ? ^ ^ #endif /* _DKNIGHTVERSION_ */
14
0.5
7
7
b6c7d3d6a7536ff56f38523331f7de428319fab1
test/Phortress/EnvironmentTest.php
test/Phortress/EnvironmentTest.php
<?php namespace Phortress; class EnvironmentTest extends \PHPUnit_Framework_TestCase { public function testCanFindFunction() { } }
<?php namespace Phortress; class EnvironmentTest extends \PHPUnit_Framework_TestCase { public function testCanFindFunction() { $file = realpath(__DIR__ . '/Fixture/environment_test.php'); $program = loadGlassBoxProgram($file); $this->assertTrue($program->environment->resolveFunction('a') ->environment->getParent() instanceof GlobalEnvironment); } }
Test defining functions in the global scope.
Test defining functions in the global scope.
PHP
mit
lowjoel/phortress
php
## Code Before: <?php namespace Phortress; class EnvironmentTest extends \PHPUnit_Framework_TestCase { public function testCanFindFunction() { } } ## Instruction: Test defining functions in the global scope. ## Code After: <?php namespace Phortress; class EnvironmentTest extends \PHPUnit_Framework_TestCase { public function testCanFindFunction() { $file = realpath(__DIR__ . '/Fixture/environment_test.php'); $program = loadGlassBoxProgram($file); $this->assertTrue($program->environment->resolveFunction('a') ->environment->getParent() instanceof GlobalEnvironment); } }
<?php namespace Phortress; class EnvironmentTest extends \PHPUnit_Framework_TestCase { public function testCanFindFunction() { + $file = realpath(__DIR__ . '/Fixture/environment_test.php'); + $program = loadGlassBoxProgram($file); + $this->assertTrue($program->environment->resolveFunction('a') + ->environment->getParent() instanceof GlobalEnvironment); } }
4
0.5
4
0
7560c888959b500ea619a6e0da7ec89ea879a3c1
software.php
software.php
<html> <head> <?php include("header.php"); ?> </head> <body> <div id="main"> <h2>Setting up your PHP/MySql Devlopment Environment</h2> <p> In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly. <p> We have separate pages for each of the commonly used Operating Systems: <ul> <li><a href="software-win.php">Setting up the XAMPP PHP/MySql Environment in Microsoft Windows</a></li> <li><a href="software-mac.php">Setting up the MAMP PHP/MySql Environment on a Macintosh</a> </li> <li><a href="https://www.youtube.com/watch?v=zvZ6TUYeEnw" target="_blank">Using Apache and MySQL in the Bash Shell on Windows-10</a> - Only use this if you can tolerate a little more complexity. </li> </ul> <p> You can use any software you like - I suggest XAMPP for Windows and MAMP for Macintosh because it seems as that these install most reliably and with the least tweaking. </p> </body> </html>
<html> <head> <?php include("header.php"); ?> </head> <body> <div id="main"> <h2>Setting up your PHP/MySql Devlopment Environment</h2> <p> In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly. <p> We have separate pages for each of the commonly used Operating Systems: <ul> <li><a href="software-win.php">Setting up the XAMPP PHP/MySql Environment in Microsoft Windows</a></li> <li><a href="software-mac.php">Setting up the MAMP PHP/MySql Environment on a Macintosh</a> </li> </ul> <p> You can use any software you like - I suggest XAMPP for Windows and MAMP for Macintosh because it seems as that these install most reliably and with the least tweaking. </p> </body> </html>
Remove bash windows that no longer works
Remove bash windows that no longer works
PHP
bsd-2-clause
csev/php-intro,csev/wa4e,csev/php-intro,csev/wa4e,csev/php-intro,csev/wa4e,csev/php-intro,csev/wa4e,csev/wa4e,csev/php-intro
php
## Code Before: <html> <head> <?php include("header.php"); ?> </head> <body> <div id="main"> <h2>Setting up your PHP/MySql Devlopment Environment</h2> <p> In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly. <p> We have separate pages for each of the commonly used Operating Systems: <ul> <li><a href="software-win.php">Setting up the XAMPP PHP/MySql Environment in Microsoft Windows</a></li> <li><a href="software-mac.php">Setting up the MAMP PHP/MySql Environment on a Macintosh</a> </li> <li><a href="https://www.youtube.com/watch?v=zvZ6TUYeEnw" target="_blank">Using Apache and MySQL in the Bash Shell on Windows-10</a> - Only use this if you can tolerate a little more complexity. </li> </ul> <p> You can use any software you like - I suggest XAMPP for Windows and MAMP for Macintosh because it seems as that these install most reliably and with the least tweaking. </p> </body> </html> ## Instruction: Remove bash windows that no longer works ## Code After: <html> <head> <?php include("header.php"); ?> </head> <body> <div id="main"> <h2>Setting up your PHP/MySql Devlopment Environment</h2> <p> In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly. <p> We have separate pages for each of the commonly used Operating Systems: <ul> <li><a href="software-win.php">Setting up the XAMPP PHP/MySql Environment in Microsoft Windows</a></li> <li><a href="software-mac.php">Setting up the MAMP PHP/MySql Environment on a Macintosh</a> </li> </ul> <p> You can use any software you like - I suggest XAMPP for Windows and MAMP for Macintosh because it seems as that these install most reliably and with the least tweaking. </p> </body> </html>
<html> <head> <?php include("header.php"); ?> </head> <body> <div id="main"> <h2>Setting up your PHP/MySql Devlopment Environment</h2> <p> In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly. <p> We have separate pages for each of the commonly used Operating Systems: <ul> <li><a href="software-win.php">Setting up the XAMPP PHP/MySql Environment in Microsoft Windows</a></li> <li><a href="software-mac.php">Setting up the MAMP PHP/MySql Environment on a Macintosh</a> </li> - <li><a href="https://www.youtube.com/watch?v=zvZ6TUYeEnw" target="_blank">Using Apache and MySQL in the Bash Shell on Windows-10</a> - Only use this - if you can tolerate a little more complexity. - </li> </ul> <p> You can use any software you like - I suggest XAMPP for Windows and MAMP for Macintosh because it seems as that these install most reliably and with the least tweaking. </p> </body> </html>
3
0.111111
0
3
6d57f20037c1a8b589122536d99d78e5b6fa8606
src/reducers/editor.js
src/reducers/editor.js
import { repeat, take, splitAt, map } from 'ramda'; import { handleActions } from 'redux-actions'; import { buildTrie, tokenizer } from '../parser/parser'; import dubliners from '../texts/dubliners'; const source = take(2000, tokenizer(dubliners)); const filter = repeat(true, source.length); const sourceTrie = buildTrie(source); const initialState = { source, filter, sourceTrie, highlighted: [], cursor: 0, }; const selectFromSource = (index, state) => { const [head, tail] = splitAt(index - 1, state.filter); const [unchanged, alter] = splitAt(state.cursor, head); const deselected = map(() => false, alter); return unchanged.concat(deselected).concat(tail); }; export const editor = handleActions({ SELECT_WORD: (state, action) => ({ source: selectFromSource(action.index, state), ...state, }), HIGHLIGHT_WORDS: (state, action) => ({ ...state, }), }, initialState);
import { repeat, take, splitAt, map } from 'ramda'; import { handleActions } from 'redux-actions'; import { buildTrie, tokenizer } from '../parser/parser'; import dubliners from '../texts/dubliners'; const source = take(2000, tokenizer(dubliners)); const filter = repeat(true, source.length); const sourceTrie = buildTrie(source); const initialState = { source, filter, sourceTrie, highlighted: [], cursor: 0, }; const selectFromFilter = (index, state) => { const [head, tail] = splitAt(index - 1, state.filter); const [unchanged, alter] = splitAt(state.cursor, head); const deselected = map(() => false, alter); return unchanged.concat(deselected).concat(tail); }; export const editor = handleActions({ SELECT_WORD: (state, action) => ({ filter: selectFromFilter(action.index, state), ...state, }), HIGHLIGHT_WORDS: (state, action) => ({ ...state, }), }, initialState);
Fix action name and prop setting
Fix action name and prop setting
JavaScript
mit
UpBeet/tree-of-scheherazade,UpBeet/tree-of-scheherazade
javascript
## Code Before: import { repeat, take, splitAt, map } from 'ramda'; import { handleActions } from 'redux-actions'; import { buildTrie, tokenizer } from '../parser/parser'; import dubliners from '../texts/dubliners'; const source = take(2000, tokenizer(dubliners)); const filter = repeat(true, source.length); const sourceTrie = buildTrie(source); const initialState = { source, filter, sourceTrie, highlighted: [], cursor: 0, }; const selectFromSource = (index, state) => { const [head, tail] = splitAt(index - 1, state.filter); const [unchanged, alter] = splitAt(state.cursor, head); const deselected = map(() => false, alter); return unchanged.concat(deselected).concat(tail); }; export const editor = handleActions({ SELECT_WORD: (state, action) => ({ source: selectFromSource(action.index, state), ...state, }), HIGHLIGHT_WORDS: (state, action) => ({ ...state, }), }, initialState); ## Instruction: Fix action name and prop setting ## Code After: import { repeat, take, splitAt, map } from 'ramda'; import { handleActions } from 'redux-actions'; import { buildTrie, tokenizer } from '../parser/parser'; import dubliners from '../texts/dubliners'; const source = take(2000, tokenizer(dubliners)); const filter = repeat(true, source.length); const sourceTrie = buildTrie(source); const initialState = { source, filter, sourceTrie, highlighted: [], cursor: 0, }; const selectFromFilter = (index, state) => { const [head, tail] = splitAt(index - 1, state.filter); const [unchanged, alter] = splitAt(state.cursor, head); const deselected = map(() => false, alter); return unchanged.concat(deselected).concat(tail); }; export const editor = handleActions({ SELECT_WORD: (state, action) => ({ filter: selectFromFilter(action.index, state), ...state, }), HIGHLIGHT_WORDS: (state, action) => ({ ...state, }), }, initialState);
import { repeat, take, splitAt, map } from 'ramda'; import { handleActions } from 'redux-actions'; import { buildTrie, tokenizer } from '../parser/parser'; import dubliners from '../texts/dubliners'; const source = take(2000, tokenizer(dubliners)); const filter = repeat(true, source.length); const sourceTrie = buildTrie(source); const initialState = { source, filter, sourceTrie, highlighted: [], cursor: 0, }; - const selectFromSource = (index, state) => { ? ^^^ -- + const selectFromFilter = (index, state) => { ? ^^^^^ const [head, tail] = splitAt(index - 1, state.filter); const [unchanged, alter] = splitAt(state.cursor, head); const deselected = map(() => false, alter); return unchanged.concat(deselected).concat(tail); }; export const editor = handleActions({ SELECT_WORD: (state, action) => ({ - source: selectFromSource(action.index, state), ? ^^^ -- ^^^ -- + filter: selectFromFilter(action.index, state), ? ^^^^^ ^^^^^ ...state, }), HIGHLIGHT_WORDS: (state, action) => ({ ...state, }), }, initialState);
4
0.114286
2
2
7c88de27b6a901c402cc97ad65d3a98e26b69927
README.rst
README.rst
|Opps| ====== .. |Opps| image:: docs/source/_static/opps.jpg :alt: Opps Open Source Content Management Platform An *Open Source Content Management Platform* for the **magazine** websites and **high-traffic**, using the Django Framework. .. image:: https://travis-ci.org/oppsproject/opps.png :target: https://travis-ci.org/oppsproject/opps Contacts ======== The place to create issues is `opps's github issues <https://github.com/opps/opps/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast. If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps . Sponsor ======= * `YACOWS <http://yacows.com.br/>`_ License ======= Copyright 2013 Opps Project. and other contributors Licensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_
|Opps| ====== .. |Opps| image:: docs/source/_static/opps.jpg :alt: Opps Open Source Content Management Platform An *Open Source Content Management Platform* for the **magazine** websites and **high-traffic**, using the Django Framework. .. image:: https://travis-ci.org/opps/opps.png :target: https://travis-ci.org/opps/opps Contacts ======== The place to create issues is `opps's github issues <https://github.com/opps/opps/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast. If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps . Sponsor ======= * `YACOWS <http://yacows.com.br/>`_ License ======= Copyright 2013 Opps Project. and other contributors Licensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_
Fix project name on travis
Fix project name on travis
reStructuredText
mit
jeanmask/opps,opps/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,opps/opps,jeanmask/opps,williamroot/opps,opps/opps,opps/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,williamroot/opps
restructuredtext
## Code Before: |Opps| ====== .. |Opps| image:: docs/source/_static/opps.jpg :alt: Opps Open Source Content Management Platform An *Open Source Content Management Platform* for the **magazine** websites and **high-traffic**, using the Django Framework. .. image:: https://travis-ci.org/oppsproject/opps.png :target: https://travis-ci.org/oppsproject/opps Contacts ======== The place to create issues is `opps's github issues <https://github.com/opps/opps/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast. If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps . Sponsor ======= * `YACOWS <http://yacows.com.br/>`_ License ======= Copyright 2013 Opps Project. and other contributors Licensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_ ## Instruction: Fix project name on travis ## Code After: |Opps| ====== .. |Opps| image:: docs/source/_static/opps.jpg :alt: Opps Open Source Content Management Platform An *Open Source Content Management Platform* for the **magazine** websites and **high-traffic**, using the Django Framework. .. image:: https://travis-ci.org/opps/opps.png :target: https://travis-ci.org/opps/opps Contacts ======== The place to create issues is `opps's github issues <https://github.com/opps/opps/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast. If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps . Sponsor ======= * `YACOWS <http://yacows.com.br/>`_ License ======= Copyright 2013 Opps Project. and other contributors Licensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_
|Opps| ====== .. |Opps| image:: docs/source/_static/opps.jpg :alt: Opps Open Source Content Management Platform An *Open Source Content Management Platform* for the **magazine** websites and **high-traffic**, using the Django Framework. - .. image:: https://travis-ci.org/oppsproject/opps.png ? ------- + .. image:: https://travis-ci.org/opps/opps.png - :target: https://travis-ci.org/oppsproject/opps ? ------- + :target: https://travis-ci.org/opps/opps Contacts ======== The place to create issues is `opps's github issues <https://github.com/opps/opps/issues>`_. The more information you send about an issue, the greater the chance it will get fixed fast. If you are not sure about something, have a doubt or feedback, or just want to ask for a feature, feel free to join `our mailing list <http://groups.google.com/group/opps-developers>`_, or, if you're on FreeNode (IRC), you can join the chat #opps . Sponsor ======= * `YACOWS <http://yacows.com.br/>`_ License ======= Copyright 2013 Opps Project. and other contributors Licensed under the `MIT License <http://www.oppsproject.org/en/latest/#license>`_
4
0.133333
2
2
24ce8b18e9fec1c0c877da375c04d878b88c45ea
README.md
README.md
sparkles ======== Monitors TeamCity builds and uses data to control outlets via Raspberry Pi and SainSmart four-module relay board
sparkles ======== Monitors TeamCity builds and uses data to control outlets via Raspberry Pi and SainSmart four-module relay board ## Initialization - Run `npm install` from the project's directory to get all dependencies. - Project must be run as `root` since we are tapping into raspi's gpio. Example of setting env. variables and running as one-command: `sudo QUERY_INTERVAL='1000' TC_USER='***' TC_PASSWORD='***' TC_URI='teamcity:8080' node .`.
Add additional documentation on getting project initialized.
Add additional documentation on getting project initialized.
Markdown
mit
ritterim/sparkles
markdown
## Code Before: sparkles ======== Monitors TeamCity builds and uses data to control outlets via Raspberry Pi and SainSmart four-module relay board ## Instruction: Add additional documentation on getting project initialized. ## Code After: sparkles ======== Monitors TeamCity builds and uses data to control outlets via Raspberry Pi and SainSmart four-module relay board ## Initialization - Run `npm install` from the project's directory to get all dependencies. - Project must be run as `root` since we are tapping into raspi's gpio. Example of setting env. variables and running as one-command: `sudo QUERY_INTERVAL='1000' TC_USER='***' TC_PASSWORD='***' TC_URI='teamcity:8080' node .`.
sparkles ======== Monitors TeamCity builds and uses data to control outlets via Raspberry Pi and SainSmart four-module relay board + + ## Initialization + + - Run `npm install` from the project's directory to get all dependencies. + + - Project must be run as `root` since we are tapping into raspi's gpio. Example of setting env. variables and running + as one-command: `sudo QUERY_INTERVAL='1000' TC_USER='***' TC_PASSWORD='***' TC_URI='teamcity:8080' node .`.
7
1.75
7
0
d358fb7009aa05a4adf5d03a7de3ddf5458c3f65
config/custom.css
config/custom.css
html,body{margin:0;padding:0}body{background:#101227 url("http://i.cubeupload.com/QU3wzs.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{width:450px;color:#fff;background-color:#101227;padding:5px 7px;margin:0 auto;}
html,body{margin:0;padding:0}body{background:#1a1826 url("http://i.cubeupload.com/SNA1S0.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{color:#fff;background-color:#1a1826;padding:5px 7px;margin:0 auto;}
Change to a Christmas background
Change to a Christmas background
CSS
mit
MayukhKundu/Mudkip-Server,yashagl/yash-showdown,TheManwithskills/DS,yashagl/pokemon-showdown,MayukhKundu/Pokemon-Domain,SkyeTheFemaleSylveon/Mudkip-Server,MayukhKundu/Flame-Savior,MayukhKundu/Mudkip-Server,TheManwithskills/DS,SkyeTheFemaleSylveon/Mudkip-Server,yashagl/pokemon-showdown,yashagl/pokemon,yashagl/yash-showdown,yashagl/pokemon,MayukhKundu/Technogear,yashagl/pokecommunity,lFernanl/Mudkip-Server,lFernanl/Mudkip-Server,MayukhKundu/Technogear,TheManwithskills/Server,MayukhKundu/Technogear-Final,yashagl/pokecommunity,TheManwithskills/Server,MayukhKundu/Flame-Savior,MayukhKundu/Pokemon-Domain,MayukhKundu/Technogear-Final
css
## Code Before: html,body{margin:0;padding:0}body{background:#101227 url("http://i.cubeupload.com/QU3wzs.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{width:450px;color:#fff;background-color:#101227;padding:5px 7px;margin:0 auto;} ## Instruction: Change to a Christmas background ## Code After: html,body{margin:0;padding:0}body{background:#1a1826 url("http://i.cubeupload.com/SNA1S0.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{color:#fff;background-color:#1a1826;padding:5px 7px;margin:0 auto;}
- html,body{margin:0;padding:0}body{background:#101227 url("http://i.cubeupload.com/QU3wzs.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{width:450px;color:#fff;background-color:#101227;padding:5px 7px;margin:0 auto;} ? ^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + html,body{margin:0;padding:0}body{background:#1a1826 url("http://i.cubeupload.com/SNA1S0.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;background:#262626}.menugroup .button:active{color:#fff;border:solid 1px #000;background:#262626}.broadcast-lobby{color:#fff;background-color:#1a1826;padding:5px 7px;margin:0 auto;} ? ^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^^
2
2
1
1
9a733935a16bf898dcb785316e3a1fc98ac91226
package/src/frontend/media/createMediaPlayer.js
package/src/frontend/media/createMediaPlayer.js
import {browser} from '../browser'; import {VideoPlayer} from '../VideoPlayer'; export const createMediaPlayer = function (options) { options.tagName = options.tagName || 'video'; let isAudio = options.tagName == 'audio'; let playsInline = options.playsInline; let mediaElementTemplate = document.createElement(options.tagName); mediaElementTemplate.setAttribute('id', 'pageflow_media_element_'+options.playerId); mediaElementTemplate.setAttribute('crossorigin', 'anonymous'); const player = new VideoPlayer(mediaElementTemplate, { controlBar: false, loadingSpinner: false, bigPlayButton: false, errorDisplay: false, textTrackSettings: false, poster: options.poster, loop: options.loop, controls: options.controls, html5: { nativeCaptions: !isAudio && browser.has('iphone platform') }, bufferUnderrunWaiting: true, useSlimPlayerControlsDuringPhonePlayback: !playsInline && !isAudio, fullscreenDuringPhonePlayback: !playsInline && !isAudio, fallbackToMutedAutoplay: !isAudio, volumeFading: true, //should be turned on later hooks: undefined, mediaEvents: true, context: options.mediaContext }); if (playsInline) { player.playsinline(true); } player.textTrackSettings = { getValues() { return {}; } }; player.playOrPlayOnLoad = function () { if (this.readyState() > 0) { player.play(); } else { player.on('loadedmetadata', player.play); } }; player.addClass('video-js'); player.addClass('player'); return player; };
import {browser} from '../browser'; import {VideoPlayer} from '../VideoPlayer'; export const createMediaPlayer = function (options) { options.tagName = options.tagName || 'video'; let isAudio = options.tagName == 'audio'; let playsInline = options.playsInline; let mediaElementTemplate = document.createElement(options.tagName); mediaElementTemplate.setAttribute('id', 'pageflow_media_element_'+options.playerId); mediaElementTemplate.setAttribute('crossorigin', 'anonymous'); const player = new VideoPlayer(mediaElementTemplate, { controlBar: false, loadingSpinner: false, bigPlayButton: false, errorDisplay: false, textTrackSettings: false, poster: options.poster, loop: options.loop, controls: options.controls, html5: { nativeCaptions: !isAudio && browser.has('iphone platform') }, bufferUnderrunWaiting: true, fallbackToMutedAutoplay: !isAudio, volumeFading: true, //should be turned on later hooks: undefined, mediaEvents: true, context: options.mediaContext }); if (playsInline) { player.playsinline(true); } player.textTrackSettings = { getValues() { return {}; } }; player.playOrPlayOnLoad = function () { if (this.readyState() > 0) { player.play(); } else { player.on('loadedmetadata', player.play); } }; player.addClass('video-js'); player.addClass('player'); return player; };
Remove paged specific options from scrolled media player
Remove paged specific options from scrolled media player * `fullscreenDuringPhonePlayback` is unused legacy. * `useSlimPlayerControlsDuringPhonePlayback` refers to paged widget types.
JavaScript
mit
tf/pageflow,codevise/pageflow,codevise/pageflow,codevise/pageflow,tf/pageflow,tf/pageflow,codevise/pageflow,tf/pageflow
javascript
## Code Before: import {browser} from '../browser'; import {VideoPlayer} from '../VideoPlayer'; export const createMediaPlayer = function (options) { options.tagName = options.tagName || 'video'; let isAudio = options.tagName == 'audio'; let playsInline = options.playsInline; let mediaElementTemplate = document.createElement(options.tagName); mediaElementTemplate.setAttribute('id', 'pageflow_media_element_'+options.playerId); mediaElementTemplate.setAttribute('crossorigin', 'anonymous'); const player = new VideoPlayer(mediaElementTemplate, { controlBar: false, loadingSpinner: false, bigPlayButton: false, errorDisplay: false, textTrackSettings: false, poster: options.poster, loop: options.loop, controls: options.controls, html5: { nativeCaptions: !isAudio && browser.has('iphone platform') }, bufferUnderrunWaiting: true, useSlimPlayerControlsDuringPhonePlayback: !playsInline && !isAudio, fullscreenDuringPhonePlayback: !playsInline && !isAudio, fallbackToMutedAutoplay: !isAudio, volumeFading: true, //should be turned on later hooks: undefined, mediaEvents: true, context: options.mediaContext }); if (playsInline) { player.playsinline(true); } player.textTrackSettings = { getValues() { return {}; } }; player.playOrPlayOnLoad = function () { if (this.readyState() > 0) { player.play(); } else { player.on('loadedmetadata', player.play); } }; player.addClass('video-js'); player.addClass('player'); return player; }; ## Instruction: Remove paged specific options from scrolled media player * `fullscreenDuringPhonePlayback` is unused legacy. * `useSlimPlayerControlsDuringPhonePlayback` refers to paged widget types. ## Code After: import {browser} from '../browser'; import {VideoPlayer} from '../VideoPlayer'; export const createMediaPlayer = function (options) { options.tagName = options.tagName || 'video'; let isAudio = options.tagName == 'audio'; let playsInline = options.playsInline; let mediaElementTemplate = document.createElement(options.tagName); mediaElementTemplate.setAttribute('id', 'pageflow_media_element_'+options.playerId); mediaElementTemplate.setAttribute('crossorigin', 'anonymous'); const player = new VideoPlayer(mediaElementTemplate, { controlBar: false, loadingSpinner: false, bigPlayButton: false, errorDisplay: false, textTrackSettings: false, poster: options.poster, loop: options.loop, controls: options.controls, html5: { nativeCaptions: !isAudio && browser.has('iphone platform') }, bufferUnderrunWaiting: true, fallbackToMutedAutoplay: !isAudio, volumeFading: true, //should be turned on later hooks: undefined, mediaEvents: true, context: options.mediaContext }); if (playsInline) { player.playsinline(true); } player.textTrackSettings = { getValues() { return {}; } }; player.playOrPlayOnLoad = function () { if (this.readyState() > 0) { player.play(); } else { player.on('loadedmetadata', player.play); } }; player.addClass('video-js'); player.addClass('player'); return player; };
import {browser} from '../browser'; import {VideoPlayer} from '../VideoPlayer'; export const createMediaPlayer = function (options) { options.tagName = options.tagName || 'video'; let isAudio = options.tagName == 'audio'; let playsInline = options.playsInline; let mediaElementTemplate = document.createElement(options.tagName); mediaElementTemplate.setAttribute('id', 'pageflow_media_element_'+options.playerId); mediaElementTemplate.setAttribute('crossorigin', 'anonymous'); const player = new VideoPlayer(mediaElementTemplate, { controlBar: false, loadingSpinner: false, bigPlayButton: false, errorDisplay: false, textTrackSettings: false, poster: options.poster, loop: options.loop, controls: options.controls, html5: { nativeCaptions: !isAudio && browser.has('iphone platform') }, bufferUnderrunWaiting: true, - useSlimPlayerControlsDuringPhonePlayback: !playsInline && !isAudio, - fullscreenDuringPhonePlayback: !playsInline && !isAudio, fallbackToMutedAutoplay: !isAudio, volumeFading: true, //should be turned on later hooks: undefined, mediaEvents: true, context: options.mediaContext }); if (playsInline) { player.playsinline(true); } player.textTrackSettings = { getValues() { return {}; } }; player.playOrPlayOnLoad = function () { if (this.readyState() > 0) { player.play(); } else { player.on('loadedmetadata', player.play); } }; player.addClass('video-js'); player.addClass('player'); return player; };
2
0.033333
0
2
fa880efddf862602b6806c2fa0965b89a7b3ebd7
circle.yml
circle.yml
machine: timezone: Europe/Berlin # Version of php to use php: version: 5.6.30 override: - composer install --no-interaction cache_directories: - "vendor" # relative to the build directory ## Customize test commands test: override: - vendor/bin/phpunit
machine: timezone: Europe/Berlin # Version of php to use php: version: 5.6.30 override: - composer install --no-interaction cache_directories: - "vendor" # relative to the build directory ## Customize test commands test: override: - vendor/bin/phpunit pwd: circuit-breaker
Add circuit-breaker directory to the test command
Add circuit-breaker directory to the test command
YAML
apache-2.0
aguimaraes/circuit-breaker
yaml
## Code Before: machine: timezone: Europe/Berlin # Version of php to use php: version: 5.6.30 override: - composer install --no-interaction cache_directories: - "vendor" # relative to the build directory ## Customize test commands test: override: - vendor/bin/phpunit ## Instruction: Add circuit-breaker directory to the test command ## Code After: machine: timezone: Europe/Berlin # Version of php to use php: version: 5.6.30 override: - composer install --no-interaction cache_directories: - "vendor" # relative to the build directory ## Customize test commands test: override: - vendor/bin/phpunit pwd: circuit-breaker
machine: timezone: Europe/Berlin # Version of php to use php: version: 5.6.30 override: - composer install --no-interaction cache_directories: - "vendor" # relative to the build directory ## Customize test commands test: override: - vendor/bin/phpunit + pwd: + circuit-breaker
2
0.1
2
0
989ff44354d624906d72f20aac933a9243214cf8
corehq/dbaccessors/couchapps/cases_by_server_date/by_owner_server_modified_on.py
corehq/dbaccessors/couchapps/cases_by_server_date/by_owner_server_modified_on.py
from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.case.models import CommCareCase from dimagi.utils.parsing import json_format_datetime def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date): """ Gets all cases with a specified owner ID that have been modified since a particular reference_date (using the server's timestamp) """ return [ row['id'] for row in CommCareCase.get_db().view( 'cases_by_server_date/by_owner_server_modified_on', startkey=[domain, owner_id, json_format_datetime(reference_date)], endkey=[domain, owner_id, {}], include_docs=False, reduce=False ) ]
from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.case.models import CommCareCase from dimagi.utils.parsing import json_format_datetime def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date, until_date=None): """ Gets all cases with a specified owner ID that have been modified since a particular reference_date (using the server's timestamp) """ return [ row['id'] for row in CommCareCase.get_db().view( 'cases_by_server_date/by_owner_server_modified_on', startkey=[domain, owner_id, json_format_datetime(reference_date)], endkey=[domain, owner_id, {} if not until_date else json_format_datetime(until_date)], include_docs=False, reduce=False ) ]
Make get_case_ids_modified_with_owner_since accept an end date as well
Make get_case_ids_modified_with_owner_since accept an end date as well
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
python
## Code Before: from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.case.models import CommCareCase from dimagi.utils.parsing import json_format_datetime def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date): """ Gets all cases with a specified owner ID that have been modified since a particular reference_date (using the server's timestamp) """ return [ row['id'] for row in CommCareCase.get_db().view( 'cases_by_server_date/by_owner_server_modified_on', startkey=[domain, owner_id, json_format_datetime(reference_date)], endkey=[domain, owner_id, {}], include_docs=False, reduce=False ) ] ## Instruction: Make get_case_ids_modified_with_owner_since accept an end date as well ## Code After: from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.case.models import CommCareCase from dimagi.utils.parsing import json_format_datetime def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date, until_date=None): """ Gets all cases with a specified owner ID that have been modified since a particular reference_date (using the server's timestamp) """ return [ row['id'] for row in CommCareCase.get_db().view( 'cases_by_server_date/by_owner_server_modified_on', startkey=[domain, owner_id, json_format_datetime(reference_date)], endkey=[domain, owner_id, {} if not until_date else json_format_datetime(until_date)], include_docs=False, reduce=False ) ]
from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.case.models import CommCareCase from dimagi.utils.parsing import json_format_datetime - def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date): + def get_case_ids_modified_with_owner_since(domain, owner_id, reference_date, until_date=None): ? +++++++++++++++++ """ Gets all cases with a specified owner ID that have been modified since a particular reference_date (using the server's timestamp) """ return [ row['id'] for row in CommCareCase.get_db().view( 'cases_by_server_date/by_owner_server_modified_on', startkey=[domain, owner_id, json_format_datetime(reference_date)], - endkey=[domain, owner_id, {}], + endkey=[domain, owner_id, {} if not until_date else json_format_datetime(until_date)], include_docs=False, reduce=False ) ]
4
0.2
2
2
b9a097888fd81c2c06f4ab4c1770d9dbd68aeb58
package.json
package.json
{ "name": "async-p", "version": "0.6.0", "description": "Async.js for Promises", "main": "dist/async", "author": "Joe Gornick", "license": "MIT", "dependencies": { "throat": "^3.0.0" }, "devDependencies": { "babel": "^6.5.2", "babel-core": "^6.14.0", "babel-preset-es2015": "^6.14.0", "babel-register": "^6.14.0", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", "eslint": "^3.4.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", "mocha": "^3.0.2" }, "scripts": { "lint": "eslint src/", "mocha-node-test": "mocha --compilers js:babel-register test/", "test": "npm run lint && npm run mocha-node-test", "build": "gulp" } }
{ "name": "async-p", "version": "0.6.0", "description": "Async.js for Promises", "main": "dist/async", "author": "Joe Gornick", "license": "MIT", "engines": { "node": ">=4.0.0" }, "dependencies": { "throat": "^3.0.0" }, "devDependencies": { "babel": "^6.5.2", "babel-core": "^6.14.0", "babel-plugin-istanbul": "^2.0.1", "babel-preset-es2015": "^6.14.0", "babel-register": "^6.14.0", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", "coveralls": "^2.11.12", "eslint": "^3.4.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", "istanbul": "^0.4.5", "mocha": "^3.0.2", "nyc": "^8.1.0" }, "scripts": { "build": "npm-run build:dist", "build:dist": "gulp", "coverage": "nyc npm run mocha-node-test", "coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls", "lint": "eslint src/", "mocha-node-test": "mocha --compilers js:babel-register test/", "test": "npm run lint && npm run mocha-node-test" } }
Add istanbul, nyc and coveralls deps
Add istanbul, nyc and coveralls deps
JSON
mit
jgornick/asyncp
json
## Code Before: { "name": "async-p", "version": "0.6.0", "description": "Async.js for Promises", "main": "dist/async", "author": "Joe Gornick", "license": "MIT", "dependencies": { "throat": "^3.0.0" }, "devDependencies": { "babel": "^6.5.2", "babel-core": "^6.14.0", "babel-preset-es2015": "^6.14.0", "babel-register": "^6.14.0", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", "eslint": "^3.4.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", "mocha": "^3.0.2" }, "scripts": { "lint": "eslint src/", "mocha-node-test": "mocha --compilers js:babel-register test/", "test": "npm run lint && npm run mocha-node-test", "build": "gulp" } } ## Instruction: Add istanbul, nyc and coveralls deps ## Code After: { "name": "async-p", "version": "0.6.0", "description": "Async.js for Promises", "main": "dist/async", "author": "Joe Gornick", "license": "MIT", "engines": { "node": ">=4.0.0" }, "dependencies": { "throat": "^3.0.0" }, "devDependencies": { "babel": "^6.5.2", "babel-core": "^6.14.0", "babel-plugin-istanbul": "^2.0.1", "babel-preset-es2015": "^6.14.0", "babel-register": "^6.14.0", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", "coveralls": "^2.11.12", "eslint": "^3.4.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", "istanbul": "^0.4.5", "mocha": "^3.0.2", "nyc": "^8.1.0" }, "scripts": { "build": "npm-run build:dist", "build:dist": "gulp", "coverage": "nyc npm run mocha-node-test", "coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls", "lint": "eslint src/", "mocha-node-test": "mocha --compilers js:babel-register test/", "test": "npm run lint && npm run mocha-node-test" } }
{ "name": "async-p", "version": "0.6.0", "description": "Async.js for Promises", "main": "dist/async", "author": "Joe Gornick", "license": "MIT", + "engines": { + "node": ">=4.0.0" + }, "dependencies": { "throat": "^3.0.0" }, "devDependencies": { "babel": "^6.5.2", "babel-core": "^6.14.0", + "babel-plugin-istanbul": "^2.0.1", "babel-preset-es2015": "^6.14.0", "babel-register": "^6.14.0", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", + "coveralls": "^2.11.12", "eslint": "^3.4.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", + "istanbul": "^0.4.5", - "mocha": "^3.0.2" + "mocha": "^3.0.2", ? + + "nyc": "^8.1.0" }, "scripts": { + "build": "npm-run build:dist", + "build:dist": "gulp", + "coverage": "nyc npm run mocha-node-test", + "coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls", "lint": "eslint src/", "mocha-node-test": "mocha --compilers js:babel-register test/", - "test": "npm run lint && npm run mocha-node-test", ? - + "test": "npm run lint && npm run mocha-node-test" - "build": "gulp" } }
16
0.551724
13
3
e78ce4d29fda36bcd946e6c54a745761596ee7f1
spec/puzzle/examples/gph/a_basic_puzzle_spec.py
spec/puzzle/examples/gph/a_basic_puzzle_spec.py
from data import warehouse from puzzle.examples.gph import a_basic_puzzle from puzzle.problems import number_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('a_basic_puzzle'): with before.all: warehouse.save() prod_config.init() self.subject = a_basic_puzzle.get() with after.all: prod_config.reset() warehouse.restore() with it('parses'): problems = self.subject.problems() expect(problems).to(have_len(len(a_basic_puzzle.SOURCE.split('\n')) - 2)) for problem in problems: expect(problem).to(be_a(number_problem.NumberProblem)) with it('solves first problem'): expect(self.subject.problem(0).solution).not_to(be_empty) with it('gets some solutions right'): solutions = self.subject.solutions() expect(solutions).to(equal([ 'decimal +25', 'octal +12', 'sept e nary +1', 'binary +1', None, 'qui nary +9', None, None, 'quaternary +12', None ]))
from data import warehouse from puzzle.examples.gph import a_basic_puzzle from puzzle.problems import number_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('a_basic_puzzle'): with before.all: warehouse.save() prod_config.init() self.subject = a_basic_puzzle.get() with after.all: prod_config.reset() warehouse.restore() with it('parses'): problems = self.subject.problems() expect(problems).to(have_len(len(a_basic_puzzle.SOURCE.split('\n')) - 2)) for problem in problems: expect(problem).to(be_a(number_problem.NumberProblem)) with it('solves first problem'): expect(self.subject.problem(0).solution).not_to(be_empty) with it('gets some solutions right'): solutions = self.subject.solutions() expect(solutions).to(equal([ 'decimal +25', 'octal +12', None, # 'sept e nary +1' lost when Trie threshold was changed. 'binary +1', None, None, # 'qui nary +9' lost when Trie threshold was changed. None, None, 'quaternary +12', None ]))
Update test values. Trie no longer provides 2 of the answers.
Update test values. Trie no longer provides 2 of the answers.
Python
mit
PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge
python
## Code Before: from data import warehouse from puzzle.examples.gph import a_basic_puzzle from puzzle.problems import number_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('a_basic_puzzle'): with before.all: warehouse.save() prod_config.init() self.subject = a_basic_puzzle.get() with after.all: prod_config.reset() warehouse.restore() with it('parses'): problems = self.subject.problems() expect(problems).to(have_len(len(a_basic_puzzle.SOURCE.split('\n')) - 2)) for problem in problems: expect(problem).to(be_a(number_problem.NumberProblem)) with it('solves first problem'): expect(self.subject.problem(0).solution).not_to(be_empty) with it('gets some solutions right'): solutions = self.subject.solutions() expect(solutions).to(equal([ 'decimal +25', 'octal +12', 'sept e nary +1', 'binary +1', None, 'qui nary +9', None, None, 'quaternary +12', None ])) ## Instruction: Update test values. Trie no longer provides 2 of the answers. ## Code After: from data import warehouse from puzzle.examples.gph import a_basic_puzzle from puzzle.problems import number_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('a_basic_puzzle'): with before.all: warehouse.save() prod_config.init() self.subject = a_basic_puzzle.get() with after.all: prod_config.reset() warehouse.restore() with it('parses'): problems = self.subject.problems() expect(problems).to(have_len(len(a_basic_puzzle.SOURCE.split('\n')) - 2)) for problem in problems: expect(problem).to(be_a(number_problem.NumberProblem)) with it('solves first problem'): expect(self.subject.problem(0).solution).not_to(be_empty) with it('gets some solutions right'): solutions = self.subject.solutions() expect(solutions).to(equal([ 'decimal +25', 'octal +12', None, # 'sept e nary +1' lost when Trie threshold was changed. 'binary +1', None, None, # 'qui nary +9' lost when Trie threshold was changed. None, None, 'quaternary +12', None ]))
from data import warehouse from puzzle.examples.gph import a_basic_puzzle from puzzle.problems import number_problem from puzzle.puzzlepedia import prod_config from spec.mamba import * with _description('a_basic_puzzle'): with before.all: warehouse.save() prod_config.init() self.subject = a_basic_puzzle.get() with after.all: prod_config.reset() warehouse.restore() with it('parses'): problems = self.subject.problems() expect(problems).to(have_len(len(a_basic_puzzle.SOURCE.split('\n')) - 2)) for problem in problems: expect(problem).to(be_a(number_problem.NumberProblem)) with it('solves first problem'): expect(self.subject.problem(0).solution).not_to(be_empty) with it('gets some solutions right'): solutions = self.subject.solutions() expect(solutions).to(equal([ 'decimal +25', 'octal +12', - 'sept e nary +1', + None, # 'sept e nary +1' lost when Trie threshold was changed. 'binary +1', None, - 'qui nary +9', + None, # 'qui nary +9' lost when Trie threshold was changed. None, None, 'quaternary +12', None ]))
4
0.102564
2
2
b34fd8de927ff55e5a50e624a35645e3b5163263
.github/workflows/publish.yml
.github/workflows/publish.yml
on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v1 with: node-version: 12.x - run: npm install - run: xvfb-run -a npm test - name: Publish if: success() run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }}
on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v1 with: node-version: 12.x - run: npm install - run: xvfb-run -a npm test - name: Publish (vsce) if: success() run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }} - name: Publish (ovsx) if: success() run: npx ovsx publish env: OVSX_PAT: ${{ secrets.OVSX_PAT }}
Add "Publish (ovsx)" GitHub Workflow
Add "Publish (ovsx)" GitHub Workflow Hi @ecmel! This PR fixes https://github.com/ecmel/vscode-html-css/issues/213 It simply calls `npx ovsx publish` after publishing to the VS Code marketplace. The only requirement is setting up a `OVSX_PAT` secret (you can generate one [here](https://open-vsx.org/user-settings/tokens)).
YAML
mit
ecmel/vscode-html-css,ecmel/vscode-html-css
yaml
## Code Before: on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v1 with: node-version: 12.x - run: npm install - run: xvfb-run -a npm test - name: Publish if: success() run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }} ## Instruction: Add "Publish (ovsx)" GitHub Workflow Hi @ecmel! This PR fixes https://github.com/ecmel/vscode-html-css/issues/213 It simply calls `npx ovsx publish` after publishing to the VS Code marketplace. The only requirement is setting up a `OVSX_PAT` secret (you can generate one [here](https://open-vsx.org/user-settings/tokens)). ## Code After: on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v1 with: node-version: 12.x - run: npm install - run: xvfb-run -a npm test - name: Publish (vsce) if: success() run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }} - name: Publish (ovsx) if: success() run: npx ovsx publish env: OVSX_PAT: ${{ secrets.OVSX_PAT }}
on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v1 with: node-version: 12.x - run: npm install - run: xvfb-run -a npm test - - name: Publish + - name: Publish (vsce) ? +++++++ if: success() run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }} + - name: Publish (ovsx) + if: success() + run: npx ovsx publish + env: + OVSX_PAT: ${{ secrets.OVSX_PAT }}
7
0.318182
6
1
bbfa796982215b6f7162ed385b2c8e2cde986915
configure-dig-on-pi.sh
configure-dig-on-pi.sh
set -e export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Delete stages 3 to 5" rm -rf ${BASE_DIR}/stage{3,4,5} echo "Replace stage3 with the DigiGes scripts" cp -ra ${BASE_DIR}/stage3-digiges ${BASE_DIR}/stage3 echo "Adapt image name" echo "IMG_NAME=DigOnPi" > ${BASE_DIR}/config # Speed up build: Remove build tools from image sed -i "/build-essential manpages-dev python bash-completion gdb pkg-config/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages sed -i "/libraspberrypi-dev libraspberrypi-doc libfreetype6-dev/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages # Remove attack surface: Remove service avahi-daemon sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages # Speed up build: Remove NOOBS exports rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS
set -e export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Delete stages 3 to 5" rm -rf ${BASE_DIR}/stage{3,4,5} echo "Replace stage3 with the DigiGes scripts" cp -ra ${BASE_DIR}/stage3-digiges ${BASE_DIR}/stage3 echo "Adapt image name" echo "IMG_NAME=DigOnPi" > ${BASE_DIR}/config echo "Speed up build: Remove build tools from image" sed -i "/build-essential manpages-dev python bash-completion gdb pkg-config/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages sed -i "/libraspberrypi-dev libraspberrypi-doc libfreetype6-dev/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages echo "Remove attack surface: Remove service avahi-daemon" sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages echo "Speed up build: Remove NOOBS exports" rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS
Print pi-gen manipulations on console
Print pi-gen manipulations on console
Shell
bsd-3-clause
DigitaleGesellschaft/pi-gen
shell
## Code Before: set -e export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Delete stages 3 to 5" rm -rf ${BASE_DIR}/stage{3,4,5} echo "Replace stage3 with the DigiGes scripts" cp -ra ${BASE_DIR}/stage3-digiges ${BASE_DIR}/stage3 echo "Adapt image name" echo "IMG_NAME=DigOnPi" > ${BASE_DIR}/config # Speed up build: Remove build tools from image sed -i "/build-essential manpages-dev python bash-completion gdb pkg-config/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages sed -i "/libraspberrypi-dev libraspberrypi-doc libfreetype6-dev/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages # Remove attack surface: Remove service avahi-daemon sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages # Speed up build: Remove NOOBS exports rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS ## Instruction: Print pi-gen manipulations on console ## Code After: set -e export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Delete stages 3 to 5" rm -rf ${BASE_DIR}/stage{3,4,5} echo "Replace stage3 with the DigiGes scripts" cp -ra ${BASE_DIR}/stage3-digiges ${BASE_DIR}/stage3 echo "Adapt image name" echo "IMG_NAME=DigOnPi" > ${BASE_DIR}/config echo "Speed up build: Remove build tools from image" sed -i "/build-essential manpages-dev python bash-completion gdb pkg-config/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages sed -i "/libraspberrypi-dev libraspberrypi-doc libfreetype6-dev/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages echo "Remove attack surface: Remove service avahi-daemon" sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages echo "Speed up build: Remove NOOBS exports" rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS
set -e export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Delete stages 3 to 5" rm -rf ${BASE_DIR}/stage{3,4,5} echo "Replace stage3 with the DigiGes scripts" cp -ra ${BASE_DIR}/stage3-digiges ${BASE_DIR}/stage3 echo "Adapt image name" echo "IMG_NAME=DigOnPi" > ${BASE_DIR}/config - # Speed up build: Remove build tools from image ? ^ + echo "Speed up build: Remove build tools from image" ? ^^^^ + + sed -i "/build-essential manpages-dev python bash-completion gdb pkg-config/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages sed -i "/libraspberrypi-dev libraspberrypi-doc libfreetype6-dev/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages - # Remove attack surface: Remove service avahi-daemon ? ^ + echo "Remove attack surface: Remove service avahi-daemon" ? ^^^^ + + sed -i "/avahi-daemon/d" ${BASE_DIR}/stage2/01-sys-tweaks/00-packages - # Speed up build: Remove NOOBS exports ? ^ + echo "Speed up build: Remove NOOBS exports" ? ^^^^ + + rm -f ${BASE_DIR}/stage2/EXPORT_NOOBS
6
0.26087
3
3
a2f66901e0d2bf4cf5c51f2178ee84c0b6a4aadf
.dir-locals.el
.dir-locals.el
;;; Directory Local Variables ;;; See Info node `(emacs) Directory Variables' for more information. ((emacs-lisp-mode (sentence-end-double-space . t) (eval flycheck-mode) (eval checkdoc-minor-mode))) ;; Local Variables: ;; mode: fundamental ;; End:
;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") ((emacs-lisp-mode (colon-double-space . t) (sentence-end-double-space . t) (eval flycheck-mode) (eval checkdoc-minor-mode))) ;; Local Variables: ;; mode: fundamental ;; End:
Make sure sentences in comments end with 2 spaces
Make sure sentences in comments end with 2 spaces
Emacs Lisp
mit
emacsmirror/pillar
emacs-lisp
## Code Before: ;;; Directory Local Variables ;;; See Info node `(emacs) Directory Variables' for more information. ((emacs-lisp-mode (sentence-end-double-space . t) (eval flycheck-mode) (eval checkdoc-minor-mode))) ;; Local Variables: ;; mode: fundamental ;; End: ## Instruction: Make sure sentences in comments end with 2 spaces ## Code After: ;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") ((emacs-lisp-mode (colon-double-space . t) (sentence-end-double-space . t) (eval flycheck-mode) (eval checkdoc-minor-mode))) ;; Local Variables: ;; mode: fundamental ;; End:
;;; Directory Local Variables - ;;; See Info node `(emacs) Directory Variables' for more information. + ;;; For more information see (info "(emacs) Directory Variables") ((emacs-lisp-mode + (colon-double-space . t) (sentence-end-double-space . t) (eval flycheck-mode) (eval checkdoc-minor-mode))) + + ;; Local Variables: ;; mode: fundamental ;; End:
5
0.454545
4
1
060cb11b3b56a27808e25da058de6c7aa2f7274a
_doc/data/en/how-to-set-the-development-mode.tpl
_doc/data/en/how-to-set-the-development-mode.tpl
<h2>How to set the development mode</h2> <p class="italic"><span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span> Since pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.</p> <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> Replace <code>"environment = production"</code> by <code>"environment = development"</code> at the beginning of the file and then save it.<br /> <span class="warning">ATTENTION</span>, if your OS server is a Unix-like (Linux, Mac OS, ...), you have to change the permission file from "<em>644</em>" to "<em>666</em>" in order to be able to save it.<br /><br /> After that, it is also better to clear your browser cache (CTRL+F5).</p>
<h2>How to set the development mode</h2> <p class="italic"> <span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span><br /> From pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.<br /> <span class="underline">However, you might still need to set the development mode manually. For example, if you are not able to login into the admin panel at that time or if the error occurs all pages of the website.</span> </p> <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> Replace "<code>environment = production</code>" to "<code>environment = development</code>" at the beginning of the file and then save it.<br /> <span class="warning">ATTENTION</span>, if your OS server is a Unix-like (Linux, Mac OS, ...), you have to change the permission file from "<em>644</em>" to "<em>666</em>" in order to be able to save it.<br /><br /> After that, it is also better to clear your browser cache (CTRL+F5).</p>
Update "Development Mode setting up" doc
Update "Development Mode setting up" doc
Smarty
mit
pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS
smarty
## Code Before: <h2>How to set the development mode</h2> <p class="italic"><span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span> Since pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.</p> <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> Replace <code>"environment = production"</code> by <code>"environment = development"</code> at the beginning of the file and then save it.<br /> <span class="warning">ATTENTION</span>, if your OS server is a Unix-like (Linux, Mac OS, ...), you have to change the permission file from "<em>644</em>" to "<em>666</em>" in order to be able to save it.<br /><br /> After that, it is also better to clear your browser cache (CTRL+F5).</p> ## Instruction: Update "Development Mode setting up" doc ## Code After: <h2>How to set the development mode</h2> <p class="italic"> <span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span><br /> From pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.<br /> <span class="underline">However, you might still need to set the development mode manually. For example, if you are not able to login into the admin panel at that time or if the error occurs all pages of the website.</span> </p> <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> Replace "<code>environment = production</code>" to "<code>environment = development</code>" at the beginning of the file and then save it.<br /> <span class="warning">ATTENTION</span>, if your OS server is a Unix-like (Linux, Mac OS, ...), you have to change the permission file from "<em>644</em>" to "<em>666</em>" in order to be able to save it.<br /><br /> After that, it is also better to clear your browser cache (CTRL+F5).</p>
<h2>How to set the development mode</h2> - <p class="italic"><span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span> Since pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.</p> + <p class="italic"> + <span class="warning">WARNING, this procedure concerns only pH7CMS versions lower than 1.3.0</span><br /> + From pH7CMS 1.3, this option is available in the Admin Panel -> Tools -> Environment Mode.<br /> + <span class="underline">However, you might still need to set the development mode manually. For example, if you are not able to login into the admin panel at that time or if the error occurs all pages of the website.</span> + </p> + <p>To set the development mode, please edit <code>~/_YOUR-PROTECTED-FOLDER/app/configs/config.ini</code><br /> - Replace <code>"environment = production"</code> by <code>"environment = development"</code> at the beginning of the file and then save it.<br /> ? - - ^^ - - + Replace "<code>environment = production</code>" to "<code>environment = development</code>" at the beginning of the file and then save it.<br /> ? + + ^^ + + <span class="warning">ATTENTION</span>, if your OS server is a Unix-like (Linux, Mac OS, ...), you have to change the permission file from "<em>644</em>" to "<em>666</em>" in order to be able to save it.<br /><br /> After that, it is also better to clear your browser cache (CTRL+F5).</p>
9
1.125
7
2
45b43d1af6de2e5749d0e01cf4631dcb8150a2c5
README.md
README.md
An Android library project that provides a simple way to add CommuteStream as a source of AdMob mediated banner advertising in Android applications. ## Building Release ``` sh gradle sdk:generateRelease: ``` ## Test Application The project includes in it a test application which may be used to actively generate randomized transit interest and android device ids while then showing ads. This is useful in showing the SDK is working as expected in functional testing. The release .aar file is then in sdk/build/release
An Android library project that provides a simple way to add CommuteStream as a source of AdMob mediated banner advertising in Android applications. ## Building Release ``` sh gradle sdk:generateRelease: ``` The release .zip can be found in sdk/build/ and when unzipped contains a valid maven repository structure that may be hosted anywhere including locally. ## Test Applicationcd The project includes in it a test application which may be used to actively generate randomized transit interest and android device ids while then showing ads. This is useful in showing the SDK is working as expected in functional testing.
Adjust readme file notes about release building
Adjust readme file notes about release building
Markdown
apache-2.0
CommuteStream/android-sdk,CommuteStream/cs-android-sdk,CommuteStream/cs-android-sdk,CommuteStream/cs-android-sdk
markdown
## Code Before: An Android library project that provides a simple way to add CommuteStream as a source of AdMob mediated banner advertising in Android applications. ## Building Release ``` sh gradle sdk:generateRelease: ``` ## Test Application The project includes in it a test application which may be used to actively generate randomized transit interest and android device ids while then showing ads. This is useful in showing the SDK is working as expected in functional testing. The release .aar file is then in sdk/build/release ## Instruction: Adjust readme file notes about release building ## Code After: An Android library project that provides a simple way to add CommuteStream as a source of AdMob mediated banner advertising in Android applications. ## Building Release ``` sh gradle sdk:generateRelease: ``` The release .zip can be found in sdk/build/ and when unzipped contains a valid maven repository structure that may be hosted anywhere including locally. ## Test Applicationcd The project includes in it a test application which may be used to actively generate randomized transit interest and android device ids while then showing ads. This is useful in showing the SDK is working as expected in functional testing.
An Android library project that provides a simple way to add CommuteStream as a source of AdMob mediated banner advertising in Android applications. ## Building Release ``` sh gradle sdk:generateRelease: ``` + The release .zip can be found in sdk/build/ and when unzipped contains a + valid maven repository structure that may be hosted anywhere including locally. + - ## Test Application + ## Test Applicationcd ? ++ The project includes in it a test application which may be used to actively generate randomized transit interest and android device ids while then showing ads. This is useful in showing the SDK is working as expected in functional testing. - The release .aar file is then in sdk/build/release
6
0.352941
4
2
2afee11c50627085a8940f792b9d3e7dc7105ee2
app/views/metrics/completeness/details.html.erb
app/views/metrics/completeness/details.html.erb
<% provide(:metric, 'Completeness') %> <% content_for :content do %> <table class="table"> <thead> <tr> <th>Field</th> <th>Value</th> </tr> </thead> <tbody> <% @properties.each do |key| %> <tr> <td><%= key %></td> <td></td> </tr> <% end %> </tbody> </table> <% end %> <%= render 'layouts/metric_details' %>
<% provide(:metric, 'Completeness') %> <% content_for :content do %> <table class="table"> <thead> <tr> <th>Field</th> <th>Subfield</th> <th>Best Record</th> <th>Worst Record</th> </tr> </thead> <tbody> <% @properties.each do |key| %> <% if key.is_a? Hash %> <tr> <td rowspan="<%= key.values.first.length %>"><%= key.keys.first %></td> <td><%= key.values.first.first %></td> </tr> <% key.values.first[0..-1].each do |subfield| %> <tr> <td><%= subfield %></td> </tr> <% end %> <% else %> <tr> <td><%= key %></td> <td></td> </tr> <% end %> <% end %> </tbody> </table> <% end %> <%= render 'layouts/metric_details' %>
Add ERB code for displaying associative arrays
Add ERB code for displaying associative arrays I have extended the template in order to present the CKAN schema fields and the records with the best and worst completeness metric result. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
HTML+ERB
mit
platzhirsch/metadata-census
html+erb
## Code Before: <% provide(:metric, 'Completeness') %> <% content_for :content do %> <table class="table"> <thead> <tr> <th>Field</th> <th>Value</th> </tr> </thead> <tbody> <% @properties.each do |key| %> <tr> <td><%= key %></td> <td></td> </tr> <% end %> </tbody> </table> <% end %> <%= render 'layouts/metric_details' %> ## Instruction: Add ERB code for displaying associative arrays I have extended the template in order to present the CKAN schema fields and the records with the best and worst completeness metric result. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com> ## Code After: <% provide(:metric, 'Completeness') %> <% content_for :content do %> <table class="table"> <thead> <tr> <th>Field</th> <th>Subfield</th> <th>Best Record</th> <th>Worst Record</th> </tr> </thead> <tbody> <% @properties.each do |key| %> <% if key.is_a? Hash %> <tr> <td rowspan="<%= key.values.first.length %>"><%= key.keys.first %></td> <td><%= key.values.first.first %></td> </tr> <% key.values.first[0..-1].each do |subfield| %> <tr> <td><%= subfield %></td> </tr> <% end %> <% else %> <tr> <td><%= key %></td> <td></td> </tr> <% end %> <% end %> </tbody> </table> <% end %> <%= render 'layouts/metric_details' %>
<% provide(:metric, 'Completeness') %> <% content_for :content do %> <table class="table"> <thead> <tr> <th>Field</th> - <th>Value</th> ? ^^ ^^ + <th>Subfield</th> ? ^^^^^^ ^ + <th>Best Record</th> + <th>Worst Record</th> </tr> </thead> <tbody> <% @properties.each do |key| %> + <% if key.is_a? Hash %> - <tr> + <tr> ? ++ + <td rowspan="<%= key.values.first.length %>"><%= key.keys.first %></td> + <td><%= key.values.first.first %></td> + </tr> + <% key.values.first[0..-1].each do |subfield| %> + <tr> + <td><%= subfield %></td> + </tr> + <% end %> + <% else %> + <tr> - <td><%= key %></td> + <td><%= key %></td> ? ++ - <td></td> + <td></td> ? ++ - </tr> + </tr> ? ++ + <% end %> <% end %> </tbody> </table> <% end %> <%= render 'layouts/metric_details' %>
24
1.2
19
5
408bdc6a9a34bbc84bf5f68dd37c8a691f23fd6f
plugins/Telegram.js
plugins/Telegram.js
'use strict'; let Telegram = require( 'node-telegram-bot-api' ); let config = require( '../config.js' ); let BotPlug = require( './BotPlug.js' ); class TelegramBotPlug extends BotPlug { constructor( bot ){ super( bot ); if( config.bot.plugins.indexOf( 'Telegram' ) > -1 ){ this.telegramClient = new Telegram( config.telegram.apiKey, { polling: true } ); super.detectMessageToUser( this.onUserMessage ); this.telegramClient.on( 'message', ( msg ) => { var chatId = msg.chat.id; this.telegramClient.sendMessage( chatId, 'Chat id: ' + chatId ); }); } } onUserMessage( users, from, message ){ for( let i = 0; i < users.length; i = i + 1 ){ if( config.users[ users[ i ] ] ){ this.telegramClient.sendMessage( config.users[ users[ i ] ], '[' + from + '] ' + message ); console.log( 'Telegram sent to ' + config.users[ users[ i ] ] ); } } } } module.exports = TelegramBotPlug;
'use strict'; let Telegram = require( 'node-telegram-bot-api' ); let config = require( '../config.js' ); let BotPlug = require( './BotPlug.js' ); class TelegramBotPlug extends BotPlug { constructor( bot ){ super( bot ); if( config.bot.plugins.indexOf( 'Telegram' ) > -1 ){ this.telegramClient = new Telegram( config.telegram.apiKey, { polling: true } ); super.detectMessageToUser( this.onUserMessage ); this.telegramClient.on( 'message', ( msg ) => { var chatId = msg.chat.id; this.telegramClient.sendMessage( chatId, 'Chat id: ' + chatId ); }); } } onUserMessage( users, from, message ){ for( let i = 0; i < users.length; i = i + 1 ){ if( config.telegram.users[ users[ i ] ] ){ this.telegramClient.sendMessage( config.telegram.users[ users[ i ] ], '[' + from + '] ' + message ); console.log( 'Telegram sent to ' + config.telegram.users[ users[ i ] ] ); } } } } module.exports = TelegramBotPlug;
Use the correct path for telegram config
Use the correct path for telegram config
JavaScript
mit
kokarn/KokBot
javascript
## Code Before: 'use strict'; let Telegram = require( 'node-telegram-bot-api' ); let config = require( '../config.js' ); let BotPlug = require( './BotPlug.js' ); class TelegramBotPlug extends BotPlug { constructor( bot ){ super( bot ); if( config.bot.plugins.indexOf( 'Telegram' ) > -1 ){ this.telegramClient = new Telegram( config.telegram.apiKey, { polling: true } ); super.detectMessageToUser( this.onUserMessage ); this.telegramClient.on( 'message', ( msg ) => { var chatId = msg.chat.id; this.telegramClient.sendMessage( chatId, 'Chat id: ' + chatId ); }); } } onUserMessage( users, from, message ){ for( let i = 0; i < users.length; i = i + 1 ){ if( config.users[ users[ i ] ] ){ this.telegramClient.sendMessage( config.users[ users[ i ] ], '[' + from + '] ' + message ); console.log( 'Telegram sent to ' + config.users[ users[ i ] ] ); } } } } module.exports = TelegramBotPlug; ## Instruction: Use the correct path for telegram config ## Code After: 'use strict'; let Telegram = require( 'node-telegram-bot-api' ); let config = require( '../config.js' ); let BotPlug = require( './BotPlug.js' ); class TelegramBotPlug extends BotPlug { constructor( bot ){ super( bot ); if( config.bot.plugins.indexOf( 'Telegram' ) > -1 ){ this.telegramClient = new Telegram( config.telegram.apiKey, { polling: true } ); super.detectMessageToUser( this.onUserMessage ); this.telegramClient.on( 'message', ( msg ) => { var chatId = msg.chat.id; this.telegramClient.sendMessage( chatId, 'Chat id: ' + chatId ); }); } } onUserMessage( users, from, message ){ for( let i = 0; i < users.length; i = i + 1 ){ if( config.telegram.users[ users[ i ] ] ){ this.telegramClient.sendMessage( config.telegram.users[ users[ i ] ], '[' + from + '] ' + message ); console.log( 'Telegram sent to ' + config.telegram.users[ users[ i ] ] ); } } } } module.exports = TelegramBotPlug;
'use strict'; let Telegram = require( 'node-telegram-bot-api' ); let config = require( '../config.js' ); let BotPlug = require( './BotPlug.js' ); class TelegramBotPlug extends BotPlug { constructor( bot ){ super( bot ); if( config.bot.plugins.indexOf( 'Telegram' ) > -1 ){ this.telegramClient = new Telegram( config.telegram.apiKey, { polling: true } ); super.detectMessageToUser( this.onUserMessage ); this.telegramClient.on( 'message', ( msg ) => { var chatId = msg.chat.id; this.telegramClient.sendMessage( chatId, 'Chat id: ' + chatId ); }); } } onUserMessage( users, from, message ){ for( let i = 0; i < users.length; i = i + 1 ){ - if( config.users[ users[ i ] ] ){ + if( config.telegram.users[ users[ i ] ] ){ ? +++++++++ - this.telegramClient.sendMessage( config.users[ users[ i ] ], '[' + from + '] ' + message ); + this.telegramClient.sendMessage( config.telegram.users[ users[ i ] ], '[' + from + '] ' + message ); ? +++++++++ - console.log( 'Telegram sent to ' + config.users[ users[ i ] ] ); + console.log( 'Telegram sent to ' + config.telegram.users[ users[ i ] ] ); ? +++++++++ } } } } module.exports = TelegramBotPlug;
6
0.153846
3
3
ee74135a46ed1757a2f67e74a116a6ccfcdf7552
ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java
ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; import com.facebook.soloader.SoLoader; public class ReactBridge { private static boolean sDidInit = false; public static void staticInit() { // No locking required here, worst case we'll call into SoLoader twice // which will do its own locking internally if (!sDidInit) { SoLoader.loadLibrary("reactnativejni"); sDidInit = true; } } }
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE; import com.facebook.soloader.SoLoader; import com.facebook.systrace.Systrace; public class ReactBridge { private static boolean sDidInit = false; public static void staticInit() { // No locking required here, worst case we'll call into SoLoader twice // which will do its own locking internally if (!sDidInit) { Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "ReactBridge.staticInit::load:reactnativejni"); SoLoader.loadLibrary("reactnativejni"); sDidInit = true; Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); } } }
Add tracing to when SO libraries are loaded
Add tracing to when SO libraries are loaded Summary: Currently, loading SO libraries is pretty expensive. While they are triggered due to accessing `ReadableNativeArray`. However, with preloader experiments, this block seems to move around and is loaded when the first dependent class loads it. Also, as a part of D10108380, this will be moved again. Adding a trace to keep track of where it moves. Reviewed By: achen1 Differential Revision: D9890280 fbshipit-source-id: 4b331ef1d7e824935bf3708442537349d2d631d0
Java
bsd-3-clause
exponent/react-native,arthuralee/react-native,javache/react-native,exponent/react-native,pandiaraj44/react-native,janicduplessis/react-native,hoangpham95/react-native,pandiaraj44/react-native,facebook/react-native,exponent/react-native,facebook/react-native,exponentjs/react-native,hoangpham95/react-native,javache/react-native,janicduplessis/react-native,arthuralee/react-native,arthuralee/react-native,exponentjs/react-native,exponentjs/react-native,pandiaraj44/react-native,janicduplessis/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,hoangpham95/react-native,hammerandchisel/react-native,myntra/react-native,hammerandchisel/react-native,pandiaraj44/react-native,hammerandchisel/react-native,myntra/react-native,hoangpham95/react-native,janicduplessis/react-native,janicduplessis/react-native,myntra/react-native,facebook/react-native,myntra/react-native,exponent/react-native,facebook/react-native,janicduplessis/react-native,janicduplessis/react-native,hammerandchisel/react-native,hoangpham95/react-native,javache/react-native,javache/react-native,facebook/react-native,facebook/react-native,arthuralee/react-native,myntra/react-native,facebook/react-native,exponent/react-native,exponentjs/react-native,hoangpham95/react-native,javache/react-native,hammerandchisel/react-native,exponentjs/react-native,javache/react-native,exponent/react-native,facebook/react-native,javache/react-native,pandiaraj44/react-native,hoangpham95/react-native,myntra/react-native,hammerandchisel/react-native,myntra/react-native,janicduplessis/react-native,exponentjs/react-native,myntra/react-native,hammerandchisel/react-native,exponentjs/react-native,pandiaraj44/react-native,exponentjs/react-native,pandiaraj44/react-native,pandiaraj44/react-native,javache/react-native,exponent/react-native,exponent/react-native,facebook/react-native,hoangpham95/react-native,arthuralee/react-native
java
## Code Before: /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; import com.facebook.soloader.SoLoader; public class ReactBridge { private static boolean sDidInit = false; public static void staticInit() { // No locking required here, worst case we'll call into SoLoader twice // which will do its own locking internally if (!sDidInit) { SoLoader.loadLibrary("reactnativejni"); sDidInit = true; } } } ## Instruction: Add tracing to when SO libraries are loaded Summary: Currently, loading SO libraries is pretty expensive. While they are triggered due to accessing `ReadableNativeArray`. However, with preloader experiments, this block seems to move around and is loaded when the first dependent class loads it. Also, as a part of D10108380, this will be moved again. Adding a trace to keep track of where it moves. Reviewed By: achen1 Differential Revision: D9890280 fbshipit-source-id: 4b331ef1d7e824935bf3708442537349d2d631d0 ## Code After: /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE; import com.facebook.soloader.SoLoader; import com.facebook.systrace.Systrace; public class ReactBridge { private static boolean sDidInit = false; public static void staticInit() { // No locking required here, worst case we'll call into SoLoader twice // which will do its own locking internally if (!sDidInit) { Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "ReactBridge.staticInit::load:reactnativejni"); SoLoader.loadLibrary("reactnativejni"); sDidInit = true; Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); } } }
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.bridge; + import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE; + import com.facebook.soloader.SoLoader; + import com.facebook.systrace.Systrace; public class ReactBridge { private static boolean sDidInit = false; public static void staticInit() { // No locking required here, worst case we'll call into SoLoader twice // which will do its own locking internally if (!sDidInit) { + Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "ReactBridge.staticInit::load:reactnativejni"); SoLoader.loadLibrary("reactnativejni"); sDidInit = true; + Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); } } }
5
0.227273
5
0
bb7668d2553bf9ffc325b6c21425aca8801bc78c
src/css/_notifier.scss
src/css/_notifier.scss
.plotly-notifier { font-family: 'Open Sans'; // Because not all contexts have this specified. position: fixed; top: 50px; right: 20px; z-index: 10000; font-size: 10pt; max-width: 180px; p { margin: 0; } .notifier-note { min-width: 180px; max-width: 250px; border: 1px solid $color-bg-light; z-index: 3000; margin: 0; background-color: #8c97af; background-color: rgba(140, 151, 175, 0.9); color: $color-bg-light; padding: 10px; overflow-wrap: break-word; word-wrap: break-word; -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .notifier-close { color: $color-bg-light; opacity: 0.8; float: right; padding: 0 5px; background: none; border: none; font-size: 20px; font-weight: bold; line-height: 20px; &:hover { color: #444; text-decoration: none; cursor: pointer; } } }
.plotly-notifier { font-family: 'Open Sans', verdana, arial, sans-serif; // Because not all contexts have this specified. position: fixed; top: 50px; right: 20px; z-index: 10000; font-size: 10pt; max-width: 180px; p { margin: 0; } .notifier-note { min-width: 180px; max-width: 250px; border: 1px solid $color-bg-light; z-index: 3000; margin: 0; background-color: #8c97af; background-color: rgba(140, 151, 175, 0.9); color: $color-bg-light; padding: 10px; overflow-wrap: break-word; word-wrap: break-word; -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .notifier-close { color: $color-bg-light; opacity: 0.8; float: right; padding: 0 5px; background: none; border: none; font-size: 20px; font-weight: bold; line-height: 20px; &:hover { color: #444; text-decoration: none; cursor: pointer; } } }
Use full font stack as elsewhere
notifier: Use full font stack as elsewhere
SCSS
mit
plotly/plotly.js,plotly/plotly.js,etpinard/plotly.js,plotly/plotly.js,plotly/plotly.js,aburato/plotly.js,etpinard/plotly.js,aburato/plotly.js,etpinard/plotly.js
scss
## Code Before: .plotly-notifier { font-family: 'Open Sans'; // Because not all contexts have this specified. position: fixed; top: 50px; right: 20px; z-index: 10000; font-size: 10pt; max-width: 180px; p { margin: 0; } .notifier-note { min-width: 180px; max-width: 250px; border: 1px solid $color-bg-light; z-index: 3000; margin: 0; background-color: #8c97af; background-color: rgba(140, 151, 175, 0.9); color: $color-bg-light; padding: 10px; overflow-wrap: break-word; word-wrap: break-word; -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .notifier-close { color: $color-bg-light; opacity: 0.8; float: right; padding: 0 5px; background: none; border: none; font-size: 20px; font-weight: bold; line-height: 20px; &:hover { color: #444; text-decoration: none; cursor: pointer; } } } ## Instruction: notifier: Use full font stack as elsewhere ## Code After: .plotly-notifier { font-family: 'Open Sans', verdana, arial, sans-serif; // Because not all contexts have this specified. position: fixed; top: 50px; right: 20px; z-index: 10000; font-size: 10pt; max-width: 180px; p { margin: 0; } .notifier-note { min-width: 180px; max-width: 250px; border: 1px solid $color-bg-light; z-index: 3000; margin: 0; background-color: #8c97af; background-color: rgba(140, 151, 175, 0.9); color: $color-bg-light; padding: 10px; overflow-wrap: break-word; word-wrap: break-word; -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .notifier-close { color: $color-bg-light; opacity: 0.8; float: right; padding: 0 5px; background: none; border: none; font-size: 20px; font-weight: bold; line-height: 20px; &:hover { color: #444; text-decoration: none; cursor: pointer; } } }
.plotly-notifier { - font-family: 'Open Sans'; // Because not all contexts have this specified. + font-family: 'Open Sans', verdana, arial, sans-serif; // Because not all contexts have this specified. ? ++++++++++++++++++++++++++++ position: fixed; top: 50px; right: 20px; z-index: 10000; font-size: 10pt; max-width: 180px; p { margin: 0; } .notifier-note { min-width: 180px; max-width: 250px; border: 1px solid $color-bg-light; z-index: 3000; margin: 0; background-color: #8c97af; background-color: rgba(140, 151, 175, 0.9); color: $color-bg-light; padding: 10px; overflow-wrap: break-word; word-wrap: break-word; -ms-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } .notifier-close { color: $color-bg-light; opacity: 0.8; float: right; padding: 0 5px; background: none; border: none; font-size: 20px; font-weight: bold; line-height: 20px; &:hover { color: #444; text-decoration: none; cursor: pointer; } } }
2
0.037736
1
1
81d124d0bff9643de5ad58cf285127140a55ee24
pack.yaml
pack.yaml
--- name: acos ref: acos description: Manage ACOS-based appliances of A10 Networks. keywords: - acos - load balancer - ADC - network version: 0.2.5 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com
--- name: acos ref: acos description: Manage ACOS-based appliances of A10 Networks. keywords: - acos - load balancer - ADC - network version: 0.2.5 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com python_versions: - "2" - "3"
Add explicit Python version support (including Python 3)
Add explicit Python version support (including Python 3)
YAML
apache-2.0
userlocalhost/stackstorm-acos
yaml
## Code Before: --- name: acos ref: acos description: Manage ACOS-based appliances of A10 Networks. keywords: - acos - load balancer - ADC - network version: 0.2.5 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com ## Instruction: Add explicit Python version support (including Python 3) ## Code After: --- name: acos ref: acos description: Manage ACOS-based appliances of A10 Networks. keywords: - acos - load balancer - ADC - network version: 0.2.5 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com python_versions: - "2" - "3"
--- name: acos ref: acos description: Manage ACOS-based appliances of A10 Networks. keywords: - acos - load balancer - ADC - network version: 0.2.5 author: Hiroyasu OHYAMA email: user.localhost2000@gmail.com + python_versions: + - "2" + - "3"
3
0.25
3
0
2ea983793b5bb734954fa091be6a4579c4768203
src/content_scripts/view/story_listener.js
src/content_scripts/view/story_listener.js
import $ from 'jquery' import AnalyticsWrapper from "../utilities/analytics_wrapper"; export default (modal) => { $(document).on('click', '.finish.button', function () { chrome.runtime.sendMessage({ eventType: 'pop' }); modal.modal('show'); }); };
import $ from 'jquery' export default (modal) => { $(document).on('click', '.finish.button', function () { chrome.runtime.sendMessage({ eventType: 'pop' }); modal.modal('show'); }); };
Revert "Missing import for AnalyticsWrapper"
Revert "Missing import for AnalyticsWrapper" We stopped using AnalyticsWrapper and now send messages to the background instead This reverts commit 0f6cd479b089319275d3f08e79c8e9ecbf96eb5e.
JavaScript
isc
oliverswitzer/wwltw-for-pivotal-tracker,oliverswitzer/wwltw-for-pivotal-tracker
javascript
## Code Before: import $ from 'jquery' import AnalyticsWrapper from "../utilities/analytics_wrapper"; export default (modal) => { $(document).on('click', '.finish.button', function () { chrome.runtime.sendMessage({ eventType: 'pop' }); modal.modal('show'); }); }; ## Instruction: Revert "Missing import for AnalyticsWrapper" We stopped using AnalyticsWrapper and now send messages to the background instead This reverts commit 0f6cd479b089319275d3f08e79c8e9ecbf96eb5e. ## Code After: import $ from 'jquery' export default (modal) => { $(document).on('click', '.finish.button', function () { chrome.runtime.sendMessage({ eventType: 'pop' }); modal.modal('show'); }); };
import $ from 'jquery' - import AnalyticsWrapper from "../utilities/analytics_wrapper"; export default (modal) => { $(document).on('click', '.finish.button', function () { chrome.runtime.sendMessage({ eventType: 'pop' }); modal.modal('show'); }); };
1
0.111111
0
1
903beb8c1c0d1dc5786a6243c7df9064f29b4e7a
lib/resque/plugins/statsd_metrics/configuration.rb
lib/resque/plugins/statsd_metrics/configuration.rb
module Resque module Plugins module StatsdMetrics class Configuration attr_accessor \ :hostname, :port, :clientfactory, :prefix def initialize @hostname = "localhost" @port = 8125 @prefix = "resque.jobs" end end class << self attr_accessor :configuration def configuration @configuration ||= Configuration.new end end def self.configure self.configuration ||= Configuration.new yield configuration end end end end
module Resque module Plugins module StatsdMetrics class Configuration attr_accessor \ :hostname, :port, :clientfactory, :prefix def initialize @hostname = "localhost" @port = 8125 @prefix = "resque.jobs" end end class << self attr_accessor :configuration def configuration @configuration ||= Configuration.new end def configure yield configuration end end end end end
Simplify .configure method creation in Configuration
Simplify .configure method creation in Configuration
Ruby
mit
dyfrgi/resque-statsd-metrics
ruby
## Code Before: module Resque module Plugins module StatsdMetrics class Configuration attr_accessor \ :hostname, :port, :clientfactory, :prefix def initialize @hostname = "localhost" @port = 8125 @prefix = "resque.jobs" end end class << self attr_accessor :configuration def configuration @configuration ||= Configuration.new end end def self.configure self.configuration ||= Configuration.new yield configuration end end end end ## Instruction: Simplify .configure method creation in Configuration ## Code After: module Resque module Plugins module StatsdMetrics class Configuration attr_accessor \ :hostname, :port, :clientfactory, :prefix def initialize @hostname = "localhost" @port = 8125 @prefix = "resque.jobs" end end class << self attr_accessor :configuration def configuration @configuration ||= Configuration.new end def configure yield configuration end end end end end
module Resque module Plugins module StatsdMetrics class Configuration attr_accessor \ :hostname, :port, :clientfactory, :prefix def initialize @hostname = "localhost" @port = 8125 @prefix = "resque.jobs" end end class << self attr_accessor :configuration def configuration @configuration ||= Configuration.new end - end - def self.configure ? ----- + def configure ? ++ - self.configuration ||= Configuration.new - yield configuration + yield configuration ? ++ + end end end end end
7
0.212121
3
4
364c445bab29675b8f0992efec57ca70ed6dd989
client/packages/settings-dashboard-extension-worona/src/dashboard/selectorCreators/index.js
client/packages/settings-dashboard-extension-worona/src/dashboard/selectorCreators/index.js
import { createSelector } from 'reselect'; import * as deps from '../deps'; import * as selectors from '../selectors'; export const getSettingsCreator = (packageName) => createSelector( selectors.getSettingsLiveCollection, deps.selectors.getSelectedSiteId, (settings, siteId) => ( settings.find( item => (item.woronaInfo.name === packageName && item.woronaInfo.siteId === siteId) ) || { woronaInfo: {} } // default to empty object til settings collections is loaded ) ); export const getSettingCreator = packageName => (settingName, settingDefault = undefined) => createSelector( getSettingsCreator(packageName), settings => (settings && settings[settingName]) || settingDefault );
import { createSelector } from 'reselect'; import * as deps from '../deps'; import * as selectors from '../selectors'; export const getSettings = packageNamespace => createSelector( selectors.getSettingsLiveCollection, deps.selectors.getSelectedSiteId, (settings, siteId) => settings.find( item => item.woronaInfo.namespace === packageNamespace && item.woronaInfo.siteId === siteId, ) || { woronaInfo: {} }, // default to empty object til settings collections is loaded ); export const getSetting = (packageNamespace, settingName, settingDefault = undefined) => createSelector( getSettings(packageNamespace), settings => settings && settings[settingName] || settingDefault, );
Change getSettings format to match app.
Change getSettings format to match app.
JavaScript
mit
worona/worona,worona/worona-dashboard,worona/worona-core,worona/worona,worona/worona-core,worona/worona,worona/worona-dashboard
javascript
## Code Before: import { createSelector } from 'reselect'; import * as deps from '../deps'; import * as selectors from '../selectors'; export const getSettingsCreator = (packageName) => createSelector( selectors.getSettingsLiveCollection, deps.selectors.getSelectedSiteId, (settings, siteId) => ( settings.find( item => (item.woronaInfo.name === packageName && item.woronaInfo.siteId === siteId) ) || { woronaInfo: {} } // default to empty object til settings collections is loaded ) ); export const getSettingCreator = packageName => (settingName, settingDefault = undefined) => createSelector( getSettingsCreator(packageName), settings => (settings && settings[settingName]) || settingDefault ); ## Instruction: Change getSettings format to match app. ## Code After: import { createSelector } from 'reselect'; import * as deps from '../deps'; import * as selectors from '../selectors'; export const getSettings = packageNamespace => createSelector( selectors.getSettingsLiveCollection, deps.selectors.getSelectedSiteId, (settings, siteId) => settings.find( item => item.woronaInfo.namespace === packageNamespace && item.woronaInfo.siteId === siteId, ) || { woronaInfo: {} }, // default to empty object til settings collections is loaded ); export const getSetting = (packageNamespace, settingName, settingDefault = undefined) => createSelector( getSettings(packageNamespace), settings => settings && settings[settingName] || settingDefault, );
import { createSelector } from 'reselect'; import * as deps from '../deps'; import * as selectors from '../selectors'; - export const getSettingsCreator = (packageName) => createSelector( + export const getSettings = packageNamespace => + createSelector( - selectors.getSettingsLiveCollection, + selectors.getSettingsLiveCollection, ? ++ - deps.selectors.getSelectedSiteId, + deps.selectors.getSelectedSiteId, ? ++ - (settings, siteId) => ( ? -- + (settings, siteId) => ? ++ - settings.find( + settings.find( ? ++ + item => item.woronaInfo.namespace === packageNamespace && item.woronaInfo.siteId === siteId, - item => - (item.woronaInfo.name === packageName - && item.woronaInfo.siteId === siteId) - ) || { woronaInfo: {} } // default to empty object til settings collections is loaded + ) || { woronaInfo: {} }, // default to empty object til settings collections is loaded ? ++ + - ) + ); ? + - ); - export const getSettingCreator = packageName => (settingName, settingDefault = undefined) => ? ------- ---- + export const getSetting = (packageNamespace, settingName, settingDefault = undefined) => ? + ++++++ - createSelector( + createSelector( ? ++++ - getSettingsCreator(packageName), ? ------- + getSettings(packageNamespace), ? ++++ +++++ - settings => (settings && settings[settingName]) || settingDefault ? - - + settings => settings && settings[settingName] || settingDefault, ? ++++ + - ); + );
30
1.428571
14
16
6ef584533066ad2efacbe83c54c33899fa4a2d85
app/views/layouts/nav/_develop_dropdown.html.erb
app/views/layouts/nav/_develop_dropdown.html.erb
<li class="dropdown" title="Develop"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-code"></i><span id="develop-nav-text" class="hidden-sm"> Develop</span><span class="caret"></span> </a> <ul class="dropdown-menu"> <%= nav_link("Restart Web Server", "refresh", restart_url) %> <%= nav_link("Developer Documentation", "book", developer_docs_url) %> <%= nav_link(products_title(:dev), "gear", products_path(type: "dev")) %> <% if Configuration.app_sharing_enabled? %> <%= nav_link(products_title(:usr), "share-alt", products_path(type: "usr")) %> <% end %> </ul> </li>
<li class="dropdown" title="Develop"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-code"></i><span class="hidden-sm hidden-sm-nav"> Develop</span><span class="caret"></span> </a> <ul class="dropdown-menu"> <%= nav_link("Restart Web Server", "refresh", restart_url) %> <%= nav_link("Developer Documentation", "book", developer_docs_url) %> <%= nav_link(products_title(:dev), "gear", products_path(type: "dev")) %> <% if Configuration.app_sharing_enabled? %> <%= nav_link(products_title(:usr), "share-alt", products_path(type: "usr")) %> <% end %> </ul> </li>
Use hidden class instead of id
Use hidden class instead of id
HTML+ERB
mit
OSC/ood-dashboard,OSC/ood-dashboard,OSC/ood-dashboard
html+erb
## Code Before: <li class="dropdown" title="Develop"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-code"></i><span id="develop-nav-text" class="hidden-sm"> Develop</span><span class="caret"></span> </a> <ul class="dropdown-menu"> <%= nav_link("Restart Web Server", "refresh", restart_url) %> <%= nav_link("Developer Documentation", "book", developer_docs_url) %> <%= nav_link(products_title(:dev), "gear", products_path(type: "dev")) %> <% if Configuration.app_sharing_enabled? %> <%= nav_link(products_title(:usr), "share-alt", products_path(type: "usr")) %> <% end %> </ul> </li> ## Instruction: Use hidden class instead of id ## Code After: <li class="dropdown" title="Develop"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-code"></i><span class="hidden-sm hidden-sm-nav"> Develop</span><span class="caret"></span> </a> <ul class="dropdown-menu"> <%= nav_link("Restart Web Server", "refresh", restart_url) %> <%= nav_link("Developer Documentation", "book", developer_docs_url) %> <%= nav_link(products_title(:dev), "gear", products_path(type: "dev")) %> <% if Configuration.app_sharing_enabled? %> <%= nav_link(products_title(:usr), "share-alt", products_path(type: "usr")) %> <% end %> </ul> </li>
<li class="dropdown" title="Develop"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> - <i class="fa fa-code"></i><span id="develop-nav-text" class="hidden-sm"> Develop</span><span class="caret"></span> ? ---------------------- + <i class="fa fa-code"></i><span class="hidden-sm hidden-sm-nav"> Develop</span><span class="caret"></span> ? ++++++++++++++ </a> <ul class="dropdown-menu"> <%= nav_link("Restart Web Server", "refresh", restart_url) %> <%= nav_link("Developer Documentation", "book", developer_docs_url) %> <%= nav_link(products_title(:dev), "gear", products_path(type: "dev")) %> <% if Configuration.app_sharing_enabled? %> <%= nav_link(products_title(:usr), "share-alt", products_path(type: "usr")) %> <% end %> </ul> </li>
2
0.153846
1
1
32c8467aff2ad02eb39983ce75db602a64b57210
scripts/clean-ubuntu-desktop-home-dir.sh
scripts/clean-ubuntu-desktop-home-dir.sh
cd ~ rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements xdg-user-dirs-update # Reassign path : # xdg-user-dirs-update --set NAME ABSOLUTE_PATH # # Available values for NAME # DESKTOP # DOWNLOAD # TEMPLATES # PUBLICSHARE # DOCUMENTS # MUSIC # PICTURES # VIDEOS
cd ~ rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements examples.desktop xdg-user-dirs-update # Reassign path : # xdg-user-dirs-update --set NAME ABSOLUTE_PATH # # Available values for NAME # DESKTOP # DOWNLOAD # TEMPLATES # PUBLICSHARE # DOCUMENTS # MUSIC # PICTURES # VIDEOS
Remove "Exemple" in home dir
Remove "Exemple" in home dir
Shell
mit
Benoth/dotfiles,Benoth/dotfiles
shell
## Code Before: cd ~ rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements xdg-user-dirs-update # Reassign path : # xdg-user-dirs-update --set NAME ABSOLUTE_PATH # # Available values for NAME # DESKTOP # DOWNLOAD # TEMPLATES # PUBLICSHARE # DOCUMENTS # MUSIC # PICTURES # VIDEOS ## Instruction: Remove "Exemple" in home dir ## Code After: cd ~ rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements examples.desktop xdg-user-dirs-update # Reassign path : # xdg-user-dirs-update --set NAME ABSOLUTE_PATH # # Available values for NAME # DESKTOP # DOWNLOAD # TEMPLATES # PUBLICSHARE # DOCUMENTS # MUSIC # PICTURES # VIDEOS
cd ~ - rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements + rm -rf Documents Modèles Images Vidéos Musique Public Téléchargements examples.desktop ? +++++++++++++++++ xdg-user-dirs-update # Reassign path : # xdg-user-dirs-update --set NAME ABSOLUTE_PATH # # Available values for NAME # DESKTOP # DOWNLOAD # TEMPLATES # PUBLICSHARE # DOCUMENTS # MUSIC # PICTURES # VIDEOS
2
0.117647
1
1
24cfc698645b21dc574dbdf43d60a7f4e0f7604e
src/main/groovy/com/rapidminer/gradle/ExtensionDependency.groovy
src/main/groovy/com/rapidminer/gradle/ExtensionDependency.groovy
package com.rapidminer.gradle; /** * Extension dependency definition * * @author Nils Woehler * */ public class ExtensionDependency { //FIXME remove .release public static final String DEFAULT_GROUP = 'com.rapidminer.extension.release' String group = DEFAULT_GROUP String namespace String version }
package com.rapidminer.gradle; /** * Extension dependency definition * * @author Nils Woehler * */ public class ExtensionDependency { public static final String DEFAULT_GROUP = 'com.rapidminer.extension' String group = DEFAULT_GROUP String namespace String version }
Change default extension group to 'com.rapidminer.extension'
Change default extension group to 'com.rapidminer.extension'
Groovy
apache-2.0
rapidminer/gradle-plugin-rapidminer-extension
groovy
## Code Before: package com.rapidminer.gradle; /** * Extension dependency definition * * @author Nils Woehler * */ public class ExtensionDependency { //FIXME remove .release public static final String DEFAULT_GROUP = 'com.rapidminer.extension.release' String group = DEFAULT_GROUP String namespace String version } ## Instruction: Change default extension group to 'com.rapidminer.extension' ## Code After: package com.rapidminer.gradle; /** * Extension dependency definition * * @author Nils Woehler * */ public class ExtensionDependency { public static final String DEFAULT_GROUP = 'com.rapidminer.extension' String group = DEFAULT_GROUP String namespace String version }
package com.rapidminer.gradle; /** * Extension dependency definition * * @author Nils Woehler * */ public class ExtensionDependency { - //FIXME remove .release - public static final String DEFAULT_GROUP = 'com.rapidminer.extension.release' ? -------- + public static final String DEFAULT_GROUP = 'com.rapidminer.extension' String group = DEFAULT_GROUP String namespace String version }
3
0.176471
1
2
e95d217a6a024657b1a4a500f84e29122a06083b
build/convert-data.js
build/convert-data.js
var result = {}; load('./lib/bopomofo_encoder.js'); if (!stringsAreUTF8()) { throw 'You need UTF-8 enabled SpiderMonkey to do cook the data.'; quit(); } var line; while (line = readline()) { line = line.split(' '); if (line[1].indexOf('_punctuation_') !== -1) continue; var str = BopomofoEncoder.encode(line[1].replace(/\-/g, '')); switch (arguments[0]) { case 'words': default: if (str.length > 1) continue; break; case 'phrases': if (str.length === 1) continue; break; } if (!result[str]) { result[str] = []; } result[str].push([line[0], parseFloat(line[2])]); } for (syllables in result) { result[syllables] = result[syllables].sort( function(a, b) { return (b[1] - a[1]); } ); } var jsonStr = JSON.stringify(result).replace(/\],/g, '],\n'); print(jsonStr); quit(0);
var result = {}; load('./lib/bopomofo_encoder.js'); if (!stringsAreUTF8()) { throw 'You need UTF-8 enabled SpiderMonkey to do cook the data.'; quit(); } var line; while (line = readline()) { line = line.split(' '); if (line[1].indexOf('_punctuation_') !== -1) continue; var str = line[1] .replace(/([^\u02ca\u02c7\u02cb\u02d9])(\-|$)/g, '$1 $2') .replace(/\-/g, ''); str = BopomofoEncoder.encode(str); switch (arguments[0]) { case 'words': default: if (str.length > 1) continue; break; case 'phrases': if (str.length === 1) continue; break; } if (!result[str]) { result[str] = []; } result[str].push([line[0], parseFloat(line[2])]); } for (syllables in result) { result[syllables] = result[syllables].sort( function(a, b) { return (b[1] - a[1]); } ); } var jsonStr = JSON.stringify(result).replace(/\],/g, '],\n'); print(jsonStr); quit(0);
Make sure tone 1 is on record of the database
Make sure tone 1 is on record of the database
JavaScript
mit
timdream/jszhuyin,timdream/jszhuyin,timdream/jszhuyin
javascript
## Code Before: var result = {}; load('./lib/bopomofo_encoder.js'); if (!stringsAreUTF8()) { throw 'You need UTF-8 enabled SpiderMonkey to do cook the data.'; quit(); } var line; while (line = readline()) { line = line.split(' '); if (line[1].indexOf('_punctuation_') !== -1) continue; var str = BopomofoEncoder.encode(line[1].replace(/\-/g, '')); switch (arguments[0]) { case 'words': default: if (str.length > 1) continue; break; case 'phrases': if (str.length === 1) continue; break; } if (!result[str]) { result[str] = []; } result[str].push([line[0], parseFloat(line[2])]); } for (syllables in result) { result[syllables] = result[syllables].sort( function(a, b) { return (b[1] - a[1]); } ); } var jsonStr = JSON.stringify(result).replace(/\],/g, '],\n'); print(jsonStr); quit(0); ## Instruction: Make sure tone 1 is on record of the database ## Code After: var result = {}; load('./lib/bopomofo_encoder.js'); if (!stringsAreUTF8()) { throw 'You need UTF-8 enabled SpiderMonkey to do cook the data.'; quit(); } var line; while (line = readline()) { line = line.split(' '); if (line[1].indexOf('_punctuation_') !== -1) continue; var str = line[1] .replace(/([^\u02ca\u02c7\u02cb\u02d9])(\-|$)/g, '$1 $2') .replace(/\-/g, ''); str = BopomofoEncoder.encode(str); switch (arguments[0]) { case 'words': default: if (str.length > 1) continue; break; case 'phrases': if (str.length === 1) continue; break; } if (!result[str]) { result[str] = []; } result[str].push([line[0], parseFloat(line[2])]); } for (syllables in result) { result[syllables] = result[syllables].sort( function(a, b) { return (b[1] - a[1]); } ); } var jsonStr = JSON.stringify(result).replace(/\],/g, '],\n'); print(jsonStr); quit(0);
var result = {}; load('./lib/bopomofo_encoder.js'); if (!stringsAreUTF8()) { throw 'You need UTF-8 enabled SpiderMonkey to do cook the data.'; quit(); } var line; while (line = readline()) { line = line.split(' '); if (line[1].indexOf('_punctuation_') !== -1) continue; - var str = BopomofoEncoder.encode(line[1].replace(/\-/g, '')); + var str = line[1] + .replace(/([^\u02ca\u02c7\u02cb\u02d9])(\-|$)/g, '$1 $2') + .replace(/\-/g, ''); + str = BopomofoEncoder.encode(str); switch (arguments[0]) { case 'words': default: if (str.length > 1) continue; break; case 'phrases': if (str.length === 1) continue; break; } if (!result[str]) { result[str] = []; } result[str].push([line[0], parseFloat(line[2])]); } for (syllables in result) { result[syllables] = result[syllables].sort( function(a, b) { return (b[1] - a[1]); } ); } var jsonStr = JSON.stringify(result).replace(/\],/g, '],\n'); print(jsonStr); quit(0);
5
0.104167
4
1
bab11fc78f329d37e33ea7ba28803fa1bfedde7a
eloquent_js/chapter07/ch07_ex01.js
eloquent_js/chapter07/ch07_ex01.js
function getTurnCount(state, robot, memory) { for (let turn = 0;; turn++) { if (state.parcels.length == 0) { return turn; } let action = robot(state, memory); state = state.move(action.direction); memory = action.memory; } } function compareRobots(robot1, memory1, robot2, memory2) { let total1 = 0, total2 = 0, reps = 100; for (let i = 0; i < reps; ++i) { let initState = VillageState.random(); total1 += getTurnCount(initState, robot1, memory1); total2 += getTurnCount(initState, robot2, memory2); } console.log(`${robot1.name}: ${total1 / reps}\n` + `${robot2.name}: ${total2 / reps}`); }
function compareRobots(robot1, memory1, robot2, memory2) { const rounds = 100; let total1 = 0, total2 = 0; for (let i = 0; i < rounds; ++i) { let state = VillageState.random(); total1 += getTurnCount(state, robot1, memory1); total2 += getTurnCount(state, robot2, memory2); } console.log(`robot1: ${total1 / rounds}\nrobot2: ${total2 / rounds}`) } function getTurnCount(state, robot, memory) { for (let turn = 0;; ++turn) { if (state.parcels.length == 0) return turn; let action = robot(state, memory); state = state.move(action.direction); memory = action.memory; } }
Add chapter 7, exercise 1
Add chapter 7, exercise 1
JavaScript
mit
bewuethr/ctci
javascript
## Code Before: function getTurnCount(state, robot, memory) { for (let turn = 0;; turn++) { if (state.parcels.length == 0) { return turn; } let action = robot(state, memory); state = state.move(action.direction); memory = action.memory; } } function compareRobots(robot1, memory1, robot2, memory2) { let total1 = 0, total2 = 0, reps = 100; for (let i = 0; i < reps; ++i) { let initState = VillageState.random(); total1 += getTurnCount(initState, robot1, memory1); total2 += getTurnCount(initState, robot2, memory2); } console.log(`${robot1.name}: ${total1 / reps}\n` + `${robot2.name}: ${total2 / reps}`); } ## Instruction: Add chapter 7, exercise 1 ## Code After: function compareRobots(robot1, memory1, robot2, memory2) { const rounds = 100; let total1 = 0, total2 = 0; for (let i = 0; i < rounds; ++i) { let state = VillageState.random(); total1 += getTurnCount(state, robot1, memory1); total2 += getTurnCount(state, robot2, memory2); } console.log(`robot1: ${total1 / rounds}\nrobot2: ${total2 / rounds}`) } function getTurnCount(state, robot, memory) { for (let turn = 0;; ++turn) { if (state.parcels.length == 0) return turn; let action = robot(state, memory); state = state.move(action.direction); memory = action.memory; } }
+ function compareRobots(robot1, memory1, robot2, memory2) { + const rounds = 100; + let total1 = 0, total2 = 0; + + for (let i = 0; i < rounds; ++i) { + let state = VillageState.random(); - function getTurnCount(state, robot, memory) { ? ^^^^ - ^ ^^ + total1 += getTurnCount(state, robot1, memory1); ? ^^ ^^^^^^^ + + ^ + total2 += getTurnCount(state, robot2, memory2); + } + + console.log(`robot1: ${total1 / rounds}\nrobot2: ${total2 / rounds}`) - for (let turn = 0;; turn++) { - if (state.parcels.length == 0) { - return turn; - } - let action = robot(state, memory); - state = state.move(action.direction); - memory = action.memory; - } } + function getTurnCount(state, robot, memory) { + for (let turn = 0;; ++turn) { + if (state.parcels.length == 0) return turn; + + let action = robot(state, memory); + state = state.move(action.direction); + memory = action.memory; + } - function compareRobots(robot1, memory1, robot2, memory2) { - let total1 = 0, total2 = 0, reps = 100; - for (let i = 0; i < reps; ++i) { - let initState = VillageState.random(); - total1 += getTurnCount(initState, robot1, memory1); - total2 += getTurnCount(initState, robot2, memory2); - } - console.log(`${robot1.name}: ${total1 / reps}\n` + - `${robot2.name}: ${total2 / reps}`); }
37
1.761905
19
18
c59529f527999e77363fd1526e1e0283a07d7f45
app-shell-demo/src/views/index.handlebars
app-shell-demo/src/views/index.handlebars
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iFixit Progressive Web App</title> <link rel="icon" sizes="192x192" href="/images/fist-enclosed-black.png"> <link rel="manifest" href="/manifest.json"> <base target="_blank"> <style> {{inlineStyles}} </style> </head> <body> <main>{{{reactHtml}}}</main> <script> window.__STATE__ = {{{state}}}; </script> <link rel="stylesheet" href="/rev/{{revManifest.[styles/all.css]}}"> <script src="/rev/{{revManifest.[js/third-party.js]}}"></script> <script src="/rev/{{revManifest.[js/app.js]}}"></script> <script src="/rev/{{revManifest.[js/register-service-worker.js]}}"></script> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iFixit Progressive Web App</title> <link rel="icon" sizes="192x192" href="/images/fist-enclosed-black.png"> <link rel="manifest" href="/manifest.json"> <base target="_blank"> <style> {{inlineStyles}} </style> </head> <body> <main>{{{reactHtml}}}</main> <script> window.__STATE__ = {{{state}}}; </script> <script> (function() { var linkElement = document.createElement('link'); linkElement.rel = 'stylesheet'; linkElement.type = 'text/css'; linkElement.media = 'screen'; linkElement.href = '/rev/{{revManifest.[styles/all.css]}}'; document.querySelector('head').appendChild(linkElement); })(); </script> <script src="/rev/{{revManifest.[js/third-party.js]}}"></script> <script src="/rev/{{revManifest.[js/app.js]}}"></script> <script src="/rev/{{revManifest.[js/register-service-worker.js]}}"></script> </body> </html>
Load all.css via JS element insertion.
Load all.css via JS element insertion.
Handlebars
apache-2.0
marco-c/sw-precache,GoogleChromeLabs/sw-precache,marco-c/sw-precache,GoogleChromeLabs/sw-precache
handlebars
## Code Before: <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iFixit Progressive Web App</title> <link rel="icon" sizes="192x192" href="/images/fist-enclosed-black.png"> <link rel="manifest" href="/manifest.json"> <base target="_blank"> <style> {{inlineStyles}} </style> </head> <body> <main>{{{reactHtml}}}</main> <script> window.__STATE__ = {{{state}}}; </script> <link rel="stylesheet" href="/rev/{{revManifest.[styles/all.css]}}"> <script src="/rev/{{revManifest.[js/third-party.js]}}"></script> <script src="/rev/{{revManifest.[js/app.js]}}"></script> <script src="/rev/{{revManifest.[js/register-service-worker.js]}}"></script> </body> </html> ## Instruction: Load all.css via JS element insertion. ## Code After: <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iFixit Progressive Web App</title> <link rel="icon" sizes="192x192" href="/images/fist-enclosed-black.png"> <link rel="manifest" href="/manifest.json"> <base target="_blank"> <style> {{inlineStyles}} </style> </head> <body> <main>{{{reactHtml}}}</main> <script> window.__STATE__ = {{{state}}}; </script> <script> (function() { var linkElement = document.createElement('link'); linkElement.rel = 'stylesheet'; linkElement.type = 'text/css'; linkElement.media = 'screen'; linkElement.href = '/rev/{{revManifest.[styles/all.css]}}'; document.querySelector('head').appendChild(linkElement); })(); </script> <script src="/rev/{{revManifest.[js/third-party.js]}}"></script> <script src="/rev/{{revManifest.[js/app.js]}}"></script> <script src="/rev/{{revManifest.[js/register-service-worker.js]}}"></script> </body> </html>
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iFixit Progressive Web App</title> <link rel="icon" sizes="192x192" href="/images/fist-enclosed-black.png"> <link rel="manifest" href="/manifest.json"> <base target="_blank"> <style> {{inlineStyles}} </style> </head> <body> <main>{{{reactHtml}}}</main> <script> window.__STATE__ = {{{state}}}; </script> + <script> + (function() { + var linkElement = document.createElement('link'); + linkElement.rel = 'stylesheet'; + linkElement.type = 'text/css'; + linkElement.media = 'screen'; - <link rel="stylesheet" href="/rev/{{revManifest.[styles/all.css]}}"> ? ^ ^^^^^^^^^ ^^ ^ ^^ ^ ^^ + linkElement.href = '/rev/{{revManifest.[styles/all.css]}}'; ? ^^^^ ^ ^ ^ ^ + ^^ ^^ + document.querySelector('head').appendChild(linkElement); + })(); + </script> <script src="/rev/{{revManifest.[js/third-party.js]}}"></script> <script src="/rev/{{revManifest.[js/app.js]}}"></script> <script src="/rev/{{revManifest.[js/register-service-worker.js]}}"></script> </body> </html>
11
0.458333
10
1
ffb03ee268a9dae982e8e809af3a00e38e935da2
config/fish/init/editor.fish
config/fish/init/editor.fish
set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source
set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source alias a='atom' alias aa='atom-dev' alias ab='atom-beta' alias ad='atom-dev'
Add aliases to launch different versions of Atom
Add aliases to launch different versions of Atom
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
fish
## Code Before: set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source ## Instruction: Add aliases to launch different versions of Atom ## Code After: set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source alias a='atom' alias aa='atom-dev' alias ab='atom-beta' alias ad='atom-dev'
set --export EDITOR atom set --export VISUAL $EDITOR set --export ATOM_DEV_RESOURCE_PATH ~/Source/atom/atom set --export ATOM_REPOS_HOME ~/Source + + alias a='atom' + alias aa='atom-dev' + alias ab='atom-beta' + alias ad='atom-dev'
5
1
5
0
d55fdf086698484fffdbfc095ab7547b05daa0d7
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var paths = { js: ['js/**.js'], sass: { src: ['css/sass/**.scss'], build: 'css/' } }; gulp.task('js', function() { gulp.src(paths.js) .pipe(uglify()) .pipe(concat('firstpr.js')) .pipe(gulp.dest('.')); }); gulp.task('sass', function () { gulp.src( paths.sass.src ) .pipe(sass()) .pipe(gulp.dest( paths.sass.build )) .pipe(minifyCSS({keepSpecialComments: 0})) .pipe(concat('firstpr.css')) .pipe(gulp.dest('.')); }); // Continuous build gulp.task('watch', function() { gulp.watch( paths.js, ['js']); gulp.watch( paths.sass.src, ['sass']); }); gulp.task('default', ['js', 'sass', 'watch']);
var gulp = require('gulp'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var paths = { js: ['js/**.js'], sass: { src: ['css/sass/**.scss'], build: 'css/' } }; gulp.task('js', function() { gulp.src(paths.js) .pipe(uglify()) .pipe(concat('firstpr.js')) .pipe(gulp.dest('.')); }); gulp.task('sass', function () { gulp.src( paths.sass.src ) .pipe(sass()) .pipe(gulp.dest( paths.sass.build )) .pipe(minifyCSS({keepSpecialComments: 0})) .pipe(concat('firstpr.css')) .pipe(gulp.dest('.')); }); // Continuous build gulp.task('watch', function() { gulp.watch( paths.js, ['js']); gulp.watch( paths.sass.src, ['sass']); }); gulp.task('build', ['js', 'sass']); gulp.task('default', ['build', 'watch']);
Build gulp task for generating css and js
Build gulp task for generating css and js
JavaScript
mit
andrew/first-pr,andrew/first-pr
javascript
## Code Before: var gulp = require('gulp'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var paths = { js: ['js/**.js'], sass: { src: ['css/sass/**.scss'], build: 'css/' } }; gulp.task('js', function() { gulp.src(paths.js) .pipe(uglify()) .pipe(concat('firstpr.js')) .pipe(gulp.dest('.')); }); gulp.task('sass', function () { gulp.src( paths.sass.src ) .pipe(sass()) .pipe(gulp.dest( paths.sass.build )) .pipe(minifyCSS({keepSpecialComments: 0})) .pipe(concat('firstpr.css')) .pipe(gulp.dest('.')); }); // Continuous build gulp.task('watch', function() { gulp.watch( paths.js, ['js']); gulp.watch( paths.sass.src, ['sass']); }); gulp.task('default', ['js', 'sass', 'watch']); ## Instruction: Build gulp task for generating css and js ## Code After: var gulp = require('gulp'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var paths = { js: ['js/**.js'], sass: { src: ['css/sass/**.scss'], build: 'css/' } }; gulp.task('js', function() { gulp.src(paths.js) .pipe(uglify()) .pipe(concat('firstpr.js')) .pipe(gulp.dest('.')); }); gulp.task('sass', function () { gulp.src( paths.sass.src ) .pipe(sass()) .pipe(gulp.dest( paths.sass.build )) .pipe(minifyCSS({keepSpecialComments: 0})) .pipe(concat('firstpr.css')) .pipe(gulp.dest('.')); }); // Continuous build gulp.task('watch', function() { gulp.watch( paths.js, ['js']); gulp.watch( paths.sass.src, ['sass']); }); gulp.task('build', ['js', 'sass']); gulp.task('default', ['build', 'watch']);
var gulp = require('gulp'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCSS = require('gulp-minify-css'); var uglify = require('gulp-uglify'); var paths = { js: ['js/**.js'], sass: { src: ['css/sass/**.scss'], build: 'css/' } }; gulp.task('js', function() { gulp.src(paths.js) .pipe(uglify()) .pipe(concat('firstpr.js')) .pipe(gulp.dest('.')); }); gulp.task('sass', function () { gulp.src( paths.sass.src ) .pipe(sass()) .pipe(gulp.dest( paths.sass.build )) .pipe(minifyCSS({keepSpecialComments: 0})) .pipe(concat('firstpr.css')) .pipe(gulp.dest('.')); }); // Continuous build gulp.task('watch', function() { gulp.watch( paths.js, ['js']); gulp.watch( paths.sass.src, ['sass']); }); + gulp.task('build', ['js', 'sass']); - gulp.task('default', ['js', 'sass', 'watch']); ? ^^^^^^^^^^ + gulp.task('default', ['build', 'watch']); ? ^^^^^
3
0.081081
2
1
7ec4254351e1d318e34a2ccd769cdc181e29de29
app/css/main.css
app/css/main.css
body { font-family: 'Source Sans Pro', sans-serif; -moz-osx-font-smoothing: grayscale; } #map { height: 5000px; width: 5000px; } .mapHeadline { position: absolute; z-index: 1; color: #333; text-shadow: 0 0 5 rgba(0, 0, 0, 0.2); border-radius: 5px; padding-left: 20px; font-family: 'Playfair Display', serif; letter-spacing: -2px; line-height: 140px; font-size: 160px; } .mapIntro { position: absolute; z-index: 1; width: 500px; padding-left: 22px; padding-top: 350px; font-size: 18px; } .mapCredit { position: absolute; z-index: 1; padding-left: 22px; padding-top: 500px; text-transform: uppercase; letter-spacing: 3px; }
body { font-family: 'Source Sans Pro', sans-serif; -moz-osx-font-smoothing: grayscale; color: #333; } #map { height: 5000px; width: 5000px; } .mapHeadline { position: absolute; z-index: 1; color: #333; text-shadow: 0 0 5 rgba(0, 0, 0, 0.2); border-radius: 5px; padding-left: 20px; font-family: 'Playfair Display', serif; letter-spacing: -2px; line-height: 140px; font-size: 160px; } .mapIntro { position: absolute; z-index: 1; width: 500px; padding-left: 22px; padding-top: 350px; font-size: 18px; } .mapCredit { position: absolute; z-index: 1; padding-left: 22px; padding-top: 500px; text-transform: uppercase; letter-spacing: 3px; }
Put a color into the body tag
Put a color into the body tag
CSS
mit
martgnz/canal-infanta,martgnz/canal-absent,martgnz/canal-absent,martgnz/canal-infanta
css
## Code Before: body { font-family: 'Source Sans Pro', sans-serif; -moz-osx-font-smoothing: grayscale; } #map { height: 5000px; width: 5000px; } .mapHeadline { position: absolute; z-index: 1; color: #333; text-shadow: 0 0 5 rgba(0, 0, 0, 0.2); border-radius: 5px; padding-left: 20px; font-family: 'Playfair Display', serif; letter-spacing: -2px; line-height: 140px; font-size: 160px; } .mapIntro { position: absolute; z-index: 1; width: 500px; padding-left: 22px; padding-top: 350px; font-size: 18px; } .mapCredit { position: absolute; z-index: 1; padding-left: 22px; padding-top: 500px; text-transform: uppercase; letter-spacing: 3px; } ## Instruction: Put a color into the body tag ## Code After: body { font-family: 'Source Sans Pro', sans-serif; -moz-osx-font-smoothing: grayscale; color: #333; } #map { height: 5000px; width: 5000px; } .mapHeadline { position: absolute; z-index: 1; color: #333; text-shadow: 0 0 5 rgba(0, 0, 0, 0.2); border-radius: 5px; padding-left: 20px; font-family: 'Playfair Display', serif; letter-spacing: -2px; line-height: 140px; font-size: 160px; } .mapIntro { position: absolute; z-index: 1; width: 500px; padding-left: 22px; padding-top: 350px; font-size: 18px; } .mapCredit { position: absolute; z-index: 1; padding-left: 22px; padding-top: 500px; text-transform: uppercase; letter-spacing: 3px; }
body { font-family: 'Source Sans Pro', sans-serif; -moz-osx-font-smoothing: grayscale; + color: #333; } #map { height: 5000px; width: 5000px; } .mapHeadline { position: absolute; z-index: 1; color: #333; text-shadow: 0 0 5 rgba(0, 0, 0, 0.2); border-radius: 5px; padding-left: 20px; font-family: 'Playfair Display', serif; letter-spacing: -2px; line-height: 140px; font-size: 160px; } .mapIntro { position: absolute; z-index: 1; width: 500px; padding-left: 22px; padding-top: 350px; font-size: 18px; } .mapCredit { position: absolute; z-index: 1; padding-left: 22px; padding-top: 500px; text-transform: uppercase; letter-spacing: 3px; }
1
0.027778
1
0
9162f1033642b3d843237b608521de2a870e6ab5
manual/en/meta.edn
manual/en/meta.edn
{:name "Rook Book" :description "Documentation for the Rook library." :github "AvisoNovate/rook" :page-order ["index" "example" "getting-started" "arguments" "namespaces" "middleware" "validation" "injection" "async" "end-to-end" "loopbacks" "swagger" "dev" ] :page-names {"index" "About Rook" "dev" "Developer Features" "arguments" "Function Arguments" "async" "Async" "end-to-end" "End To End Async" "example" "Example" "getting-started" "Getting Started" "injection" "Injection" "loopbacks" "Async Loopbacks" "middleware" "Middleware" "namespaces" "Namespaces" "swagger" "Swagger" "validation" "Validation" }}
{:name "Rook Manual" :description "Sane, smart, fast, Clojure web services." :github "AvisoNovate/rook" :page-order ["index" "example" "getting-started" "arguments" "namespaces" "middleware" "validation" "injection" "async" "end-to-end" "loopbacks" "swagger" "dev" ] :page-names {"index" "About Rook" "dev" "Developer Features" "arguments" "Function Arguments" "async" "Async" "end-to-end" "End To End Async" "example" "Example" "getting-started" "Getting Started" "injection" "Injection" "loopbacks" "Async Loopbacks" "middleware" "Middleware" "namespaces" "Namespaces" "swagger" "Swagger" "validation" "Validation" }}
Update book name and description
Update book name and description
edn
apache-2.0
bmabey/rook,clyfe/rook,roblally/rook
edn
## Code Before: {:name "Rook Book" :description "Documentation for the Rook library." :github "AvisoNovate/rook" :page-order ["index" "example" "getting-started" "arguments" "namespaces" "middleware" "validation" "injection" "async" "end-to-end" "loopbacks" "swagger" "dev" ] :page-names {"index" "About Rook" "dev" "Developer Features" "arguments" "Function Arguments" "async" "Async" "end-to-end" "End To End Async" "example" "Example" "getting-started" "Getting Started" "injection" "Injection" "loopbacks" "Async Loopbacks" "middleware" "Middleware" "namespaces" "Namespaces" "swagger" "Swagger" "validation" "Validation" }} ## Instruction: Update book name and description ## Code After: {:name "Rook Manual" :description "Sane, smart, fast, Clojure web services." :github "AvisoNovate/rook" :page-order ["index" "example" "getting-started" "arguments" "namespaces" "middleware" "validation" "injection" "async" "end-to-end" "loopbacks" "swagger" "dev" ] :page-names {"index" "About Rook" "dev" "Developer Features" "arguments" "Function Arguments" "async" "Async" "end-to-end" "End To End Async" "example" "Example" "getting-started" "Getting Started" "injection" "Injection" "loopbacks" "Async Loopbacks" "middleware" "Middleware" "namespaces" "Namespaces" "swagger" "Swagger" "validation" "Validation" }}
- {:name "Rook Book" - :description "Documentation for the Rook library." + {:name "Rook Manual" + :description "Sane, smart, fast, Clojure web services." - :github "AvisoNovate/rook" + :github "AvisoNovate/rook" ? +++++ - :page-order ["index" + :page-order ["index" ? + - "example" + "example" ? + - "getting-started" + "getting-started" ? + - "arguments" + "arguments" ? + - "namespaces" + "namespaces" ? + - "middleware" + "middleware" ? + - "validation" + "validation" ? + - "injection" + "injection" ? + - "async" + "async" ? + - "end-to-end" + "end-to-end" ? + - "loopbacks" + "loopbacks" ? + - "swagger" + "swagger" ? + - "dev" + "dev" ? + - ] + ] ? + - :page-names {"index" "About Rook" + :page-names {"index" "About Rook" ? +++++++++ - "dev" "Developer Features" + "dev" "Developer Features" ? ++++++++++++ - "arguments" "Function Arguments" + "arguments" "Function Arguments" ? ++++++ - "async" "Async" + "async" "Async" ? ++++++++++ - "end-to-end" "End To End Async" + "end-to-end" "End To End Async" ? +++++ - "example" "Example" + "example" "Example" ? ++++++++ "getting-started" "Getting Started" - "injection" "Injection" + "injection" "Injection" ? ++++++ - "loopbacks" "Async Loopbacks" + "loopbacks" "Async Loopbacks" ? ++++++ - "middleware" "Middleware" + "middleware" "Middleware" ? +++++ - "namespaces" "Namespaces" + "namespaces" "Namespaces" ? +++++ - "swagger" "Swagger" + "swagger" "Swagger" ? ++++++++ - "validation" "Validation" + "validation" "Validation" ? +++++ - }} ? - + }}
60
1.935484
30
30
027f016c6168325cb0e8b66adb1c10461399e0e1
katagawa/sql/__init__.py
katagawa/sql/__init__.py
import abc import typing class Token(abc.ABC): """ Base class for a token. """ __slots__ = () def __init__(self, subtokens: typing.List['Token']): """ :param subtokens: Any subtokens this token has. """ self.subtokens = subtokens @abc.abstractproperty def name(self): """ Returns the name of the token. This is a unique identifier, but is not always related to the actual SQL underneath it. """ @abc.abstractmethod def generate_sql(self): """ Generate SQL from this statement. :return: The generated SQL. """ class Aliased(Token): """ Mixin class for an aliased token. """ __slots__ = ("alias",) def __init__(self, subtokens: typing.List['Token'], alias: str): """ :param subtokens: Any subtokens this token has. :param alias: The alias this token has. """ super().__init__(subtokens) self.alias = alias
import abc import typing class Token(abc.ABC): """ Base class for a token. """ __slots__ = () def __init__(self, subtokens: typing.List['Token']=None): """ :param subtokens: Any subtokens this token has. """ if subtokens is None: subtokens = [] self.subtokens = subtokens def consume_tokens(self, name) -> typing.List['Token']: """ Consumes tokens from the current subtokens and returns a new list of these tokens. This will remove the tokens from the current subtokens. :param name: The name of the token to consume. :return: A list of :class:`Token` that match the type. """ returned = [] for item in self.subtokens[:]: if item.name == name: returned.append(item) self.subtokens.remove(item) return returned @abc.abstractproperty def name(self): """ Returns the name of the token. This is a unique identifier, but is not always related to the actual SQL underneath it. """ @abc.abstractmethod def generate_sql(self): """ Generate SQL from this statement. :return: The generated SQL. """ class Aliased(abc.ABC, Token): """ Mixin class for an aliased token. """ __slots__ = ("alias",) def __init__(self, subtokens: typing.List['Token'], alias: str=None): """ :param subtokens: Any subtokens this token has. :param alias: The alias this token has. """ super().__init__(subtokens) self.alias = alias
Add consume_tokens function to Token.
Add consume_tokens function to Token.
Python
mit
SunDwarf/asyncqlio
python
## Code Before: import abc import typing class Token(abc.ABC): """ Base class for a token. """ __slots__ = () def __init__(self, subtokens: typing.List['Token']): """ :param subtokens: Any subtokens this token has. """ self.subtokens = subtokens @abc.abstractproperty def name(self): """ Returns the name of the token. This is a unique identifier, but is not always related to the actual SQL underneath it. """ @abc.abstractmethod def generate_sql(self): """ Generate SQL from this statement. :return: The generated SQL. """ class Aliased(Token): """ Mixin class for an aliased token. """ __slots__ = ("alias",) def __init__(self, subtokens: typing.List['Token'], alias: str): """ :param subtokens: Any subtokens this token has. :param alias: The alias this token has. """ super().__init__(subtokens) self.alias = alias ## Instruction: Add consume_tokens function to Token. ## Code After: import abc import typing class Token(abc.ABC): """ Base class for a token. """ __slots__ = () def __init__(self, subtokens: typing.List['Token']=None): """ :param subtokens: Any subtokens this token has. """ if subtokens is None: subtokens = [] self.subtokens = subtokens def consume_tokens(self, name) -> typing.List['Token']: """ Consumes tokens from the current subtokens and returns a new list of these tokens. This will remove the tokens from the current subtokens. :param name: The name of the token to consume. :return: A list of :class:`Token` that match the type. """ returned = [] for item in self.subtokens[:]: if item.name == name: returned.append(item) self.subtokens.remove(item) return returned @abc.abstractproperty def name(self): """ Returns the name of the token. This is a unique identifier, but is not always related to the actual SQL underneath it. """ @abc.abstractmethod def generate_sql(self): """ Generate SQL from this statement. :return: The generated SQL. """ class Aliased(abc.ABC, Token): """ Mixin class for an aliased token. """ __slots__ = ("alias",) def __init__(self, subtokens: typing.List['Token'], alias: str=None): """ :param subtokens: Any subtokens this token has. :param alias: The alias this token has. """ super().__init__(subtokens) self.alias = alias
import abc import typing class Token(abc.ABC): """ Base class for a token. """ __slots__ = () - def __init__(self, subtokens: typing.List['Token']): + def __init__(self, subtokens: typing.List['Token']=None): ? +++++ """ :param subtokens: Any subtokens this token has. """ + if subtokens is None: + subtokens = [] + self.subtokens = subtokens + + def consume_tokens(self, name) -> typing.List['Token']: + """ + Consumes tokens from the current subtokens and returns a new list of these tokens. + + This will remove the tokens from the current subtokens. + + :param name: The name of the token to consume. + :return: A list of :class:`Token` that match the type. + """ + returned = [] + for item in self.subtokens[:]: + if item.name == name: + returned.append(item) + self.subtokens.remove(item) + + return returned @abc.abstractproperty def name(self): """ Returns the name of the token. This is a unique identifier, but is not always related to the actual SQL underneath it. """ @abc.abstractmethod def generate_sql(self): """ Generate SQL from this statement. :return: The generated SQL. """ - class Aliased(Token): + class Aliased(abc.ABC, Token): ? +++++++++ """ Mixin class for an aliased token. """ __slots__ = ("alias",) - def __init__(self, subtokens: typing.List['Token'], alias: str): + def __init__(self, subtokens: typing.List['Token'], alias: str=None): ? +++++ """ :param subtokens: Any subtokens this token has. :param alias: The alias this token has. """ super().__init__(subtokens) self.alias = alias
26
0.541667
23
3
5cc56d872a856d07375afc5d039c397fe17ae9be
test/simple-test.js
test/simple-test.js
'use strict' var assert = require('assert') var dependenciesToArray = require('../') assert.deepEqual(dependenciesToArray({ dependencies: { foo: '^1.0.0' } }), [ { package: 'foo', version: '^1.0.0', type: 'dependency' } ])
'use strict' var assert = require('assert') var dependenciesToArray = require('../') assert.deepEqual(dependenciesToArray({ dependencies: { foo: '^1.0.0' } }), [ { package: 'foo', version: '^1.0.0', type: 'dependency', bundled: false } ])
Include `bundled` in the test
Include `bundled` in the test
JavaScript
mit
mmalecki/package-json-dependencies-to-array
javascript
## Code Before: 'use strict' var assert = require('assert') var dependenciesToArray = require('../') assert.deepEqual(dependenciesToArray({ dependencies: { foo: '^1.0.0' } }), [ { package: 'foo', version: '^1.0.0', type: 'dependency' } ]) ## Instruction: Include `bundled` in the test ## Code After: 'use strict' var assert = require('assert') var dependenciesToArray = require('../') assert.deepEqual(dependenciesToArray({ dependencies: { foo: '^1.0.0' } }), [ { package: 'foo', version: '^1.0.0', type: 'dependency', bundled: false } ])
'use strict' var assert = require('assert') var dependenciesToArray = require('../') assert.deepEqual(dependenciesToArray({ dependencies: { foo: '^1.0.0' } }), [ - { package: 'foo', version: '^1.0.0', type: 'dependency' } + { package: 'foo', version: '^1.0.0', type: 'dependency', bundled: false } ? ++++++++++++++++ ])
2
0.166667
1
1
b3fab13856ed0821e308e02ca60aa0f72cb93330
test/Layout/itanium-union-bitfield.cpp
test/Layout/itanium-union-bitfield.cpp
// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \ // RUN: | FileCheck %s union A { int f1: 3; A(); }; A::A() {} union B { int f1: 69; B(); }; B::B() {} // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union A // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=4, dsize=1, align=4 // CHECK-NEXT: | nvsize=1, nvalign=4] // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union B // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [{{sizeof=16, dsize=9, align=8|sizeof=12, dsize=9, align=4}} // CHECK-NEXT: | {{nvsize=9, nvalign=8|nvsize=9, nvalign=4}}]
// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \ // RUN: | FileCheck %s union A { int f1: 3; A(); }; A::A() {} union B { char f1: 35; B(); }; B::B() {} // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union A // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=4, dsize=1, align=4 // CHECK-NEXT: | nvsize=1, nvalign=4] // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union B // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=8, dsize=5, align=4 // CHECK-NEXT: | nvsize=5, nvalign=4]
Test case B is updated to work for 32-bit and 64-bit platforms
Test case B is updated to work for 32-bit and 64-bit platforms git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220271 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang
c++
## Code Before: // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \ // RUN: | FileCheck %s union A { int f1: 3; A(); }; A::A() {} union B { int f1: 69; B(); }; B::B() {} // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union A // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=4, dsize=1, align=4 // CHECK-NEXT: | nvsize=1, nvalign=4] // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union B // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [{{sizeof=16, dsize=9, align=8|sizeof=12, dsize=9, align=4}} // CHECK-NEXT: | {{nvsize=9, nvalign=8|nvsize=9, nvalign=4}}] ## Instruction: Test case B is updated to work for 32-bit and 64-bit platforms git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220271 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \ // RUN: | FileCheck %s union A { int f1: 3; A(); }; A::A() {} union B { char f1: 35; B(); }; B::B() {} // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union A // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=4, dsize=1, align=4 // CHECK-NEXT: | nvsize=1, nvalign=4] // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union B // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=8, dsize=5, align=4 // CHECK-NEXT: | nvsize=5, nvalign=4]
// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \ // RUN: | FileCheck %s union A { int f1: 3; A(); }; A::A() {} union B { - int f1: 69; + char f1: 35; B(); }; B::B() {} // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union A // CHECK-NEXT: 0 | int f1 // CHECK-NEXT: | [sizeof=4, dsize=1, align=4 // CHECK-NEXT: | nvsize=1, nvalign=4] // CHECK:*** Dumping AST Record Layout // CHECK-NEXT: 0 | union B // CHECK-NEXT: 0 | int f1 - // CHECK-NEXT: | [{{sizeof=16, dsize=9, align=8|sizeof=12, dsize=9, align=4}} + // CHECK-NEXT: | [sizeof=8, dsize=5, align=4 - // CHECK-NEXT: | {{nvsize=9, nvalign=8|nvsize=9, nvalign=4}}] ? -- ^^^^^^^^^^^^^^^^^^^^^ -- + // CHECK-NEXT: | nvsize=5, nvalign=4] ? ^
6
0.206897
3
3
ceeae3bc2b6e575a3df90b2cf7c6a7ee64dae51b
src/assets_stub.go
src/assets_stub.go
// +build go_get // When assets.go is being excluded from the build, it's symbols are undefined // and 'go get' gets upset. Add this stub with inversed build condition to // compensate. package main type AssetBin struct { root string // root path of physical assets in filesystem } func NewAssetBin(binaryDir string) *AssetBin { return nil } func (a *AssetBin) Load(path string) ([]byte, error) { return nil, nil } func (a *AssetBin) MustLoad(path string) []byte { return nil } func MustExtractDBAsset(defaultDB string) string { return defaultDB }
// +build go_get // When assets.go is being excluded from the build, it's symbols are undefined // and 'go get' gets upset. Add this stub with inversed build condition to // compensate. package main import ( "github.com/rtfb/cachedir" ) type AssetBin struct { root string // root path of physical assets in filesystem } func NewAssetBin(binaryDir string) *AssetBin { return nil } func (a *AssetBin) Load(path string) ([]byte, error) { return nil, nil } func (a *AssetBin) MustLoad(path string) []byte { return nil } func MustExtractDBAsset(defaultDB string) string { return defaultDB }
Fix build: add missing import
Fix build: add missing import
Go
bsd-2-clause
rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog,rtfb/rtfblog
go
## Code Before: // +build go_get // When assets.go is being excluded from the build, it's symbols are undefined // and 'go get' gets upset. Add this stub with inversed build condition to // compensate. package main type AssetBin struct { root string // root path of physical assets in filesystem } func NewAssetBin(binaryDir string) *AssetBin { return nil } func (a *AssetBin) Load(path string) ([]byte, error) { return nil, nil } func (a *AssetBin) MustLoad(path string) []byte { return nil } func MustExtractDBAsset(defaultDB string) string { return defaultDB } ## Instruction: Fix build: add missing import ## Code After: // +build go_get // When assets.go is being excluded from the build, it's symbols are undefined // and 'go get' gets upset. Add this stub with inversed build condition to // compensate. package main import ( "github.com/rtfb/cachedir" ) type AssetBin struct { root string // root path of physical assets in filesystem } func NewAssetBin(binaryDir string) *AssetBin { return nil } func (a *AssetBin) Load(path string) ([]byte, error) { return nil, nil } func (a *AssetBin) MustLoad(path string) []byte { return nil } func MustExtractDBAsset(defaultDB string) string { return defaultDB }
// +build go_get // When assets.go is being excluded from the build, it's symbols are undefined // and 'go get' gets upset. Add this stub with inversed build condition to // compensate. package main + + import ( + "github.com/rtfb/cachedir" + ) type AssetBin struct { root string // root path of physical assets in filesystem } func NewAssetBin(binaryDir string) *AssetBin { return nil } func (a *AssetBin) Load(path string) ([]byte, error) { return nil, nil } func (a *AssetBin) MustLoad(path string) []byte { return nil } func MustExtractDBAsset(defaultDB string) string { return defaultDB }
4
0.148148
4
0
57e1e84dce865a465c4e49b2c6eff8289d9a36f7
ci/linux-sparc64.sh
ci/linux-sparc64.sh
set -ex mkdir -m 777 /qemu cd /qemu curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso 7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz 7z e debian-9.0-sparc64-NETINST-1.iso boot/sparc64 mv sparc64 kernel rm debian-9.0-sparc64-NETINST-1.iso mkdir init cd init gunzip -c ../initrd.gz | cpio -id rm ../initrd.gz cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ chmod a+w .
set -ex mkdir -m 777 /qemu cd /qemu curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/10.0/sparc64/iso-cd/debian-10.0-sparc64-NETINST-1.iso 7z e debian-10.0-sparc64-NETINST-1.iso boot/initrd.gz 7z e debian-10.0-sparc64-NETINST-1.iso boot/sparc64 mv sparc64 kernel rm debian-10.0-sparc64-NETINST-1.iso mkdir init cd init gunzip -c ../initrd.gz | cpio -id rm ../initrd.gz cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ chmod a+w .
Update Debian image used in sparc64 build job to Debian 10.0
Update Debian image used in sparc64 build job to Debian 10.0
Shell
apache-2.0
rust-lang/libc,rust-lang/libc,rust-lang/libc
shell
## Code Before: set -ex mkdir -m 777 /qemu cd /qemu curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso 7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz 7z e debian-9.0-sparc64-NETINST-1.iso boot/sparc64 mv sparc64 kernel rm debian-9.0-sparc64-NETINST-1.iso mkdir init cd init gunzip -c ../initrd.gz | cpio -id rm ../initrd.gz cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ chmod a+w . ## Instruction: Update Debian image used in sparc64 build job to Debian 10.0 ## Code After: set -ex mkdir -m 777 /qemu cd /qemu curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/10.0/sparc64/iso-cd/debian-10.0-sparc64-NETINST-1.iso 7z e debian-10.0-sparc64-NETINST-1.iso boot/initrd.gz 7z e debian-10.0-sparc64-NETINST-1.iso boot/sparc64 mv sparc64 kernel rm debian-10.0-sparc64-NETINST-1.iso mkdir init cd init gunzip -c ../initrd.gz | cpio -id rm ../initrd.gz cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ chmod a+w .
set -ex mkdir -m 777 /qemu cd /qemu - curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/9.0/sparc64/iso-cd/debian-9.0-sparc64-NETINST-1.iso ? ^ ^ + curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/10.0/sparc64/iso-cd/debian-10.0-sparc64-NETINST-1.iso ? ^^ ^^ - 7z e debian-9.0-sparc64-NETINST-1.iso boot/initrd.gz ? ^ + 7z e debian-10.0-sparc64-NETINST-1.iso boot/initrd.gz ? ^^ - 7z e debian-9.0-sparc64-NETINST-1.iso boot/sparc64 ? ^ + 7z e debian-10.0-sparc64-NETINST-1.iso boot/sparc64 ? ^^ mv sparc64 kernel - rm debian-9.0-sparc64-NETINST-1.iso ? ^ + rm debian-10.0-sparc64-NETINST-1.iso ? ^^ mkdir init cd init gunzip -c ../initrd.gz | cpio -id rm ../initrd.gz cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ chmod a+w .
8
0.444444
4
4
b1841490e72bb187571f96a959b7fef9ccd9ebcf
pkgs/development/libraries/openexr/default.nix
pkgs/development/libraries/openexr/default.nix
{ lib, stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }: stdenv.mkDerivation rec { name = "openexr-${lib.getVersion ilmbase}"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "0ca2j526n4wlamrxb85y2jrgcv0gf21b3a19rr0gh4rjqkv1581n"; }; outputs = [ "out" "doc" ]; preConfigure = '' ./bootstrap ''; buildInputs = [ autoconf automake libtool pkgconfig ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; patches = [ ./bootstrap.patch ]; meta = with stdenv.lib; { homepage = http://www.openexr.com/; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ wkennington ]; }; }
{ lib, stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }: stdenv.mkDerivation rec { name = "openexr-${lib.getVersion ilmbase}"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "0ca2j526n4wlamrxb85y2jrgcv0gf21b3a19rr0gh4rjqkv1581n"; }; outputs = [ "dev" "bin" "out" "doc" ]; preConfigure = '' ./bootstrap ''; buildInputs = [ autoconf automake libtool pkgconfig ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; patches = [ ./bootstrap.patch ]; meta = with stdenv.lib; { homepage = http://www.openexr.com/; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ wkennington ]; }; }
Use separate dev and bin outputs
openexr: Use separate dev and bin outputs
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs
nix
## Code Before: { lib, stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }: stdenv.mkDerivation rec { name = "openexr-${lib.getVersion ilmbase}"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "0ca2j526n4wlamrxb85y2jrgcv0gf21b3a19rr0gh4rjqkv1581n"; }; outputs = [ "out" "doc" ]; preConfigure = '' ./bootstrap ''; buildInputs = [ autoconf automake libtool pkgconfig ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; patches = [ ./bootstrap.patch ]; meta = with stdenv.lib; { homepage = http://www.openexr.com/; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ wkennington ]; }; } ## Instruction: openexr: Use separate dev and bin outputs ## Code After: { lib, stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }: stdenv.mkDerivation rec { name = "openexr-${lib.getVersion ilmbase}"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "0ca2j526n4wlamrxb85y2jrgcv0gf21b3a19rr0gh4rjqkv1581n"; }; outputs = [ "dev" "bin" "out" "doc" ]; preConfigure = '' ./bootstrap ''; buildInputs = [ autoconf automake libtool pkgconfig ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; patches = [ ./bootstrap.patch ]; meta = with stdenv.lib; { homepage = http://www.openexr.com/; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ wkennington ]; }; }
{ lib, stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }: stdenv.mkDerivation rec { name = "openexr-${lib.getVersion ilmbase}"; src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/${name}.tar.gz"; sha256 = "0ca2j526n4wlamrxb85y2jrgcv0gf21b3a19rr0gh4rjqkv1581n"; }; - outputs = [ "out" "doc" ]; + outputs = [ "dev" "bin" "out" "doc" ]; ? ++++++++++++ preConfigure = '' ./bootstrap ''; buildInputs = [ autoconf automake libtool pkgconfig ]; propagatedBuildInputs = [ ilmbase zlib ]; enableParallelBuilding = true; patches = [ ./bootstrap.patch ]; meta = with stdenv.lib; { homepage = http://www.openexr.com/; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ wkennington ]; }; }
2
0.066667
1
1
5dcda07ffe9d5656fd5b98d597f37ccbfcda170c
app/views/resources/show.html.erb
app/views/resources/show.html.erb
<h1><%= @resource.title %></h1> <% if @resource.user %> <p>Added by <%= @resource.user_name %>.</p> <% end %> <p><%= @resource.language_name %></p> <h3>Topics:</h3> <ul> <% @resource.topics.each do |topic| %> <li><%= topic.name %></li> <% end %> </ul> <p>URL: <%= link_to @resource.url, @resource.url %></p> <h3>What it's about:</h3> <p><%= @resource.description %></p> <%= link_to "Edit this Resource", edit_user_resource_path(current_user, @resource) if correct_user? %> <%= button_to "Delete this Resource", user_resource_path(current_user, @resource), method: 'delete' if correct_user?%>
<h1><%= @resource.title %></h1> <% if @resource.user %> <p>Added by <%= @resource.user_name %>.</p> <% end %> <p><%= @resource.language_name %></p> <h3>Topics:</h3> <ul> <% @resource.topics.each do |topic| %> <li><%= topic.name %></li> <% end %> </ul> <p>URL: <%= link_to @resource.url, @resource.url %></p> <h3>What it's about:</h3> <p><%= @resource.description %></p> <%= link_to "Edit this Resource", edit_resource_path(@resource) if correct_user? %> <%= button_to "Delete this Resource", resource_path(@resource), method: 'delete' if correct_user?%>
Fix resource paths on show page.
Fix resource paths on show page.
HTML+ERB
mit
abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/sorter,abonner1/code_learning_resources_manager
html+erb
## Code Before: <h1><%= @resource.title %></h1> <% if @resource.user %> <p>Added by <%= @resource.user_name %>.</p> <% end %> <p><%= @resource.language_name %></p> <h3>Topics:</h3> <ul> <% @resource.topics.each do |topic| %> <li><%= topic.name %></li> <% end %> </ul> <p>URL: <%= link_to @resource.url, @resource.url %></p> <h3>What it's about:</h3> <p><%= @resource.description %></p> <%= link_to "Edit this Resource", edit_user_resource_path(current_user, @resource) if correct_user? %> <%= button_to "Delete this Resource", user_resource_path(current_user, @resource), method: 'delete' if correct_user?%> ## Instruction: Fix resource paths on show page. ## Code After: <h1><%= @resource.title %></h1> <% if @resource.user %> <p>Added by <%= @resource.user_name %>.</p> <% end %> <p><%= @resource.language_name %></p> <h3>Topics:</h3> <ul> <% @resource.topics.each do |topic| %> <li><%= topic.name %></li> <% end %> </ul> <p>URL: <%= link_to @resource.url, @resource.url %></p> <h3>What it's about:</h3> <p><%= @resource.description %></p> <%= link_to "Edit this Resource", edit_resource_path(@resource) if correct_user? %> <%= button_to "Delete this Resource", resource_path(@resource), method: 'delete' if correct_user?%>
<h1><%= @resource.title %></h1> <% if @resource.user %> <p>Added by <%= @resource.user_name %>.</p> <% end %> <p><%= @resource.language_name %></p> <h3>Topics:</h3> <ul> <% @resource.topics.each do |topic| %> <li><%= topic.name %></li> <% end %> </ul> <p>URL: <%= link_to @resource.url, @resource.url %></p> <h3>What it's about:</h3> <p><%= @resource.description %></p> - <%= link_to "Edit this Resource", edit_user_resource_path(current_user, @resource) if correct_user? %> ? ----- -------------- + <%= link_to "Edit this Resource", edit_resource_path(@resource) if correct_user? %> - <%= button_to "Delete this Resource", user_resource_path(current_user, @resource), method: 'delete' if correct_user?%> ? ----- -------------- + <%= button_to "Delete this Resource", resource_path(@resource), method: 'delete' if correct_user?%>
4
0.190476
2
2
1897438ab3468d9164f9bc3fd9da96336eef9c5f
package.json
package.json
{ "devDependencies": { "lerna": "2.0.0-beta.20" } }
{ "devDependencies": { "generator-suit": "^1.0.2", "yo": "^1.8.4" } }
Add yo and generator-suit, remove lerna devDep
Add yo and generator-suit, remove lerna devDep
JSON
bsd-3-clause
giuseppeg/suitcss-toolkit,giuseppeg/suitcss-toolkit
json
## Code Before: { "devDependencies": { "lerna": "2.0.0-beta.20" } } ## Instruction: Add yo and generator-suit, remove lerna devDep ## Code After: { "devDependencies": { "generator-suit": "^1.0.2", "yo": "^1.8.4" } }
{ "devDependencies": { - "lerna": "2.0.0-beta.20" + "generator-suit": "^1.0.2", + "yo": "^1.8.4" } }
3
0.6
2
1
975534b8ae5aa54b9f27e44c0fcd63245969cb35
.forestry/front_matter/templates/posts.yml
.forestry/front_matter/templates/posts.yml
--- hide_body: false is_partial: false fields: - type: text default: default label: Layout name: layout - type: datetime name: date label: Date - type: select name: categories config: source: type: datafiles file: _data-cts-yml path: cts label: Category default: articles - type: select name: tags config: source: type: simple file: path: options: - tips - tutorials - research - ai - web label: Tags pages: - _posts/2018-06-10-chatbots-a-different-approach-for-messaging.md - _posts/2018-06-10-automatic-gearbox-module-with-fuzzy-controller.md
--- hide_body: false is_partial: false fields: - type: text default: default label: Layout name: layout - type: datetime name: date label: Date - type: select name: categories config: source: type: datafiles file: _data-cts-yml path: cts label: Category default: articles - type: select name: tags config: source: type: simple file: path: options: - tips - tutorials - research - ai - web label: Tags - type: textarea name: description label: Meta description pages: - _posts/2018-06-10-chatbots-a-different-approach-for-messaging.md - _posts/2018-06-10-automatic-gearbox-module-with-fuzzy-controller.md
Update from Forestry.io - Updated Forestry configuration
Update from Forestry.io - Updated Forestry configuration
YAML
mit
boobo94/boobo94.github.io,boobo94/boobo94.github.io
yaml
## Code Before: --- hide_body: false is_partial: false fields: - type: text default: default label: Layout name: layout - type: datetime name: date label: Date - type: select name: categories config: source: type: datafiles file: _data-cts-yml path: cts label: Category default: articles - type: select name: tags config: source: type: simple file: path: options: - tips - tutorials - research - ai - web label: Tags pages: - _posts/2018-06-10-chatbots-a-different-approach-for-messaging.md - _posts/2018-06-10-automatic-gearbox-module-with-fuzzy-controller.md ## Instruction: Update from Forestry.io - Updated Forestry configuration ## Code After: --- hide_body: false is_partial: false fields: - type: text default: default label: Layout name: layout - type: datetime name: date label: Date - type: select name: categories config: source: type: datafiles file: _data-cts-yml path: cts label: Category default: articles - type: select name: tags config: source: type: simple file: path: options: - tips - tutorials - research - ai - web label: Tags - type: textarea name: description label: Meta description pages: - _posts/2018-06-10-chatbots-a-different-approach-for-messaging.md - _posts/2018-06-10-automatic-gearbox-module-with-fuzzy-controller.md
--- hide_body: false is_partial: false fields: - type: text default: default label: Layout name: layout - type: datetime name: date label: Date - type: select name: categories config: source: type: datafiles file: _data-cts-yml path: cts label: Category default: articles - type: select name: tags config: source: type: simple file: path: options: - tips - tutorials - research - ai - web label: Tags + - type: textarea + name: description + label: Meta description pages: - _posts/2018-06-10-chatbots-a-different-approach-for-messaging.md - _posts/2018-06-10-automatic-gearbox-module-with-fuzzy-controller.md
3
0.081081
3
0
9347f3bc4a9c37c7013e8666f86cceee1a7a17f9
genome_designer/main/startup.py
genome_designer/main/startup.py
from django.db import connection def run(): """Call this from manage.py or tests. """ _add_custom_mult_agg_function() def _add_custom_mult_agg_function(): """Make sure the Postgresql database has a custom function array_agg_mult. NOTE: Figured out the raw sql query by running psql with -E flag and then calling \df to list functions. The -E flag causes the internal raw sql of the commands to be shown. """ cursor = connection.cursor() cursor.execute( 'SELECT p.proname ' 'FROM pg_catalog.pg_proc p ' 'WHERE p.proname=\'array_agg_mult\'' ) mult_agg_exists = bool(cursor.fetchone()) if not mult_agg_exists: cursor.execute( 'CREATE AGGREGATE array_agg_mult (anyarray) (' ' SFUNC = array_cat' ' ,STYPE = anyarray' ' ,INITCOND = \'{}\'' ');' )
from django.db import connection from django.db import transaction def run(): """Call this from manage.py or tests. """ _add_custom_mult_agg_function() def _add_custom_mult_agg_function(): """Make sure the Postgresql database has a custom function array_agg_mult. NOTE: Figured out the raw sql query by running psql with -E flag and then calling \df to list functions. The -E flag causes the internal raw sql of the commands to be shown. """ cursor = connection.cursor() cursor.execute( 'SELECT p.proname ' 'FROM pg_catalog.pg_proc p ' 'WHERE p.proname=\'array_agg_mult\'' ) mult_agg_exists = bool(cursor.fetchone()) if not mult_agg_exists: cursor.execute( 'CREATE AGGREGATE array_agg_mult (anyarray) (' ' SFUNC = array_cat' ' ,STYPE = anyarray' ' ,INITCOND = \'{}\'' ');' ) transaction.commit_unless_managed()
Fix bug with array_agg_mult() function not actually being created.
Fix bug with array_agg_mult() function not actually being created.
Python
mit
churchlab/millstone,woodymit/millstone_accidental_source,churchlab/millstone,woodymit/millstone,churchlab/millstone,woodymit/millstone_accidental_source,churchlab/millstone,woodymit/millstone,woodymit/millstone_accidental_source,woodymit/millstone,woodymit/millstone,woodymit/millstone_accidental_source
python
## Code Before: from django.db import connection def run(): """Call this from manage.py or tests. """ _add_custom_mult_agg_function() def _add_custom_mult_agg_function(): """Make sure the Postgresql database has a custom function array_agg_mult. NOTE: Figured out the raw sql query by running psql with -E flag and then calling \df to list functions. The -E flag causes the internal raw sql of the commands to be shown. """ cursor = connection.cursor() cursor.execute( 'SELECT p.proname ' 'FROM pg_catalog.pg_proc p ' 'WHERE p.proname=\'array_agg_mult\'' ) mult_agg_exists = bool(cursor.fetchone()) if not mult_agg_exists: cursor.execute( 'CREATE AGGREGATE array_agg_mult (anyarray) (' ' SFUNC = array_cat' ' ,STYPE = anyarray' ' ,INITCOND = \'{}\'' ');' ) ## Instruction: Fix bug with array_agg_mult() function not actually being created. ## Code After: from django.db import connection from django.db import transaction def run(): """Call this from manage.py or tests. """ _add_custom_mult_agg_function() def _add_custom_mult_agg_function(): """Make sure the Postgresql database has a custom function array_agg_mult. NOTE: Figured out the raw sql query by running psql with -E flag and then calling \df to list functions. The -E flag causes the internal raw sql of the commands to be shown. """ cursor = connection.cursor() cursor.execute( 'SELECT p.proname ' 'FROM pg_catalog.pg_proc p ' 'WHERE p.proname=\'array_agg_mult\'' ) mult_agg_exists = bool(cursor.fetchone()) if not mult_agg_exists: cursor.execute( 'CREATE AGGREGATE array_agg_mult (anyarray) (' ' SFUNC = array_cat' ' ,STYPE = anyarray' ' ,INITCOND = \'{}\'' ');' ) transaction.commit_unless_managed()
from django.db import connection + from django.db import transaction def run(): """Call this from manage.py or tests. """ _add_custom_mult_agg_function() def _add_custom_mult_agg_function(): """Make sure the Postgresql database has a custom function array_agg_mult. NOTE: Figured out the raw sql query by running psql with -E flag and then calling \df to list functions. The -E flag causes the internal raw sql of the commands to be shown. """ cursor = connection.cursor() cursor.execute( 'SELECT p.proname ' 'FROM pg_catalog.pg_proc p ' 'WHERE p.proname=\'array_agg_mult\'' ) mult_agg_exists = bool(cursor.fetchone()) if not mult_agg_exists: cursor.execute( 'CREATE AGGREGATE array_agg_mult (anyarray) (' ' SFUNC = array_cat' ' ,STYPE = anyarray' ' ,INITCOND = \'{}\'' ');' ) + transaction.commit_unless_managed()
2
0.060606
2
0
6e98842c6e1b26a6a9519d66838fd61277c96757
README.md
README.md
Walrus ====== Goal ---- - Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers - Support method helpers fully. This means: - (Semi)-Automatic invocation. - "Write what you mean" when it comes to functions. - Multiple arguments - Arguments may be primitive types - Ability to add in custom domain methods at the view object level (how do we do this?) - Still support helper methods and block helpers, but put the helper methods where they make the most sense - Support object paths like handlebars does - Make it easy to traverse back up to root, and to read as such - More to come... Ideas ----- - `@` means `this`, like in coffeescript. This makes it easy to reference the root object context from anywhere. -
Walrus ====== Goal ---- - Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers - Support method helpers fully. This means: - (Semi)-Automatic invocation. - "Write what you mean" when it comes to functions. - Multiple arguments - Arguments may be primitive types - Ability to add in custom domain methods at the view object level (how do we do this?) - Still support helper methods and block helpers, but put the helper methods where they make the most sense - Support object paths like handlebars does - Make it easy to traverse back up to root, and to read as such - More to come... Ideas ----- - `@` means `this`, like in coffeescript. This makes it easy to reference the root object context from anywhere. - `do`/`end` style blocks make more sense than `#` and `/` to me
Add note about blocks to the readme
Add note about blocks to the readme
Markdown
mit
jeremyruppel/walrus
markdown
## Code Before: Walrus ====== Goal ---- - Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers - Support method helpers fully. This means: - (Semi)-Automatic invocation. - "Write what you mean" when it comes to functions. - Multiple arguments - Arguments may be primitive types - Ability to add in custom domain methods at the view object level (how do we do this?) - Still support helper methods and block helpers, but put the helper methods where they make the most sense - Support object paths like handlebars does - Make it easy to traverse back up to root, and to read as such - More to come... Ideas ----- - `@` means `this`, like in coffeescript. This makes it easy to reference the root object context from anywhere. - ## Instruction: Add note about blocks to the readme ## Code After: Walrus ====== Goal ---- - Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers - Support method helpers fully. This means: - (Semi)-Automatic invocation. - "Write what you mean" when it comes to functions. - Multiple arguments - Arguments may be primitive types - Ability to add in custom domain methods at the view object level (how do we do this?) - Still support helper methods and block helpers, but put the helper methods where they make the most sense - Support object paths like handlebars does - Make it easy to traverse back up to root, and to read as such - More to come... Ideas ----- - `@` means `this`, like in coffeescript. This makes it easy to reference the root object context from anywhere. - `do`/`end` style blocks make more sense than `#` and `/` to me
Walrus ====== Goal ---- - Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers - Support method helpers fully. This means: - (Semi)-Automatic invocation. - "Write what you mean" when it comes to functions. - Multiple arguments - Arguments may be primitive types - Ability to add in custom domain methods at the view object level (how do we do this?) - Still support helper methods and block helpers, but put the helper methods where they make the most sense - Support object paths like handlebars does - Make it easy to traverse back up to root, and to read as such - More to come... Ideas ----- - `@` means `this`, like in coffeescript. This makes it easy to reference the root object context from anywhere. - - + - `do`/`end` style blocks make more sense than `#` and `/` to me
2
0.083333
1
1
c211e77e13d7bf644a7b0853790a73c34b5fa160
gradle.properties
gradle.properties
PROJECT_VERSION=0.15.2 PROJECT_GROUP_ID=com.jaynewstrom PROJECT_VCS_URL=https://github.com/JayNewstrom/ScreenSwitcher.git PROJECT_DESCRIPTION=ScreenSwitcher - A FragmentManager alternative PROJECT_REPO=ScreenSwitcher
PROJECT_VERSION=0.15.3-SNAPSHOT PROJECT_GROUP_ID=com.jaynewstrom PROJECT_VCS_URL=https://github.com/JayNewstrom/ScreenSwitcher.git PROJECT_DESCRIPTION=ScreenSwitcher - A FragmentManager alternative PROJECT_REPO=ScreenSwitcher
Prepare for next development iteration
Prepare for next development iteration
INI
apache-2.0
JayNewstrom/ScreenSwitcher
ini
## Code Before: PROJECT_VERSION=0.15.2 PROJECT_GROUP_ID=com.jaynewstrom PROJECT_VCS_URL=https://github.com/JayNewstrom/ScreenSwitcher.git PROJECT_DESCRIPTION=ScreenSwitcher - A FragmentManager alternative PROJECT_REPO=ScreenSwitcher ## Instruction: Prepare for next development iteration ## Code After: PROJECT_VERSION=0.15.3-SNAPSHOT PROJECT_GROUP_ID=com.jaynewstrom PROJECT_VCS_URL=https://github.com/JayNewstrom/ScreenSwitcher.git PROJECT_DESCRIPTION=ScreenSwitcher - A FragmentManager alternative PROJECT_REPO=ScreenSwitcher
- PROJECT_VERSION=0.15.2 ? ^ + PROJECT_VERSION=0.15.3-SNAPSHOT ? ^^^^^^^^^^ PROJECT_GROUP_ID=com.jaynewstrom PROJECT_VCS_URL=https://github.com/JayNewstrom/ScreenSwitcher.git PROJECT_DESCRIPTION=ScreenSwitcher - A FragmentManager alternative PROJECT_REPO=ScreenSwitcher
2
0.4
1
1
c9d8f0befa2924a28f12fdadf173d2a769870c20
spec/integration/replica_set_connections_spec.rb
spec/integration/replica_set_connections_spec.rb
require 'spec_helper' describe 'replica set connections' do with_running_replica_set do it 'should connect the replica set' do DataMapper.setup( :replica_set_connection, :adapter => 'mongo', :seeds => replica_set ) connection = DataMapper.repository(:default).adapter.send(:connection) connection.should be_kind_of(Mongo::ReplSetConnection) end after do teardown_connection :replica_set_connection end end end
require 'spec_helper' describe 'replica set connections' do with_running_replica_set do let(:repo_name) { :replica_set_connection } it 'should connect the replica set' do DataMapper.setup( repo_name, :adapter => 'mongo', :seeds => replica_set ) connection = DataMapper.repository(repo_name).adapter.send(:connection) connection.should be_kind_of(Mongo::ReplSetConnection) end after do teardown_connection :replica_set_connection end end end
Fix for repo name in repl set connection
Fix for repo name in repl set connection
Ruby
mit
solnic/dm-mongo-adapter
ruby
## Code Before: require 'spec_helper' describe 'replica set connections' do with_running_replica_set do it 'should connect the replica set' do DataMapper.setup( :replica_set_connection, :adapter => 'mongo', :seeds => replica_set ) connection = DataMapper.repository(:default).adapter.send(:connection) connection.should be_kind_of(Mongo::ReplSetConnection) end after do teardown_connection :replica_set_connection end end end ## Instruction: Fix for repo name in repl set connection ## Code After: require 'spec_helper' describe 'replica set connections' do with_running_replica_set do let(:repo_name) { :replica_set_connection } it 'should connect the replica set' do DataMapper.setup( repo_name, :adapter => 'mongo', :seeds => replica_set ) connection = DataMapper.repository(repo_name).adapter.send(:connection) connection.should be_kind_of(Mongo::ReplSetConnection) end after do teardown_connection :replica_set_connection end end end
require 'spec_helper' describe 'replica set connections' do with_running_replica_set do + let(:repo_name) { :replica_set_connection } + it 'should connect the replica set' do DataMapper.setup( - :replica_set_connection, + repo_name, :adapter => 'mongo', :seeds => replica_set ) - connection = DataMapper.repository(:default).adapter.send(:connection) ? ^^ ^ ^^^ + connection = DataMapper.repository(repo_name).adapter.send(:connection) ? ^ ^^^^ ^^ connection.should be_kind_of(Mongo::ReplSetConnection) end after do teardown_connection :replica_set_connection end end end
6
0.315789
4
2
156c5d04c69a11d798bb0329055ee46c9050fd11
package.json
package.json
{ "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version --parallel upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest.json version $TRAVIS_TAG" }, "license": "MIT", "devDependencies": { "chrome-webstore-upload-cli": "^1.1.1", "dot-json": "^1.0.3", "npm-run-all": "^4.0.2", "webext": "^1.9.1-with-submit.1", "xo": "^0.18.2" }, "xo": { "ignores": [ "extension/webext-options-sync.js" ], "envs": [ "browser", "webextensions" ] } }
{ "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest.json version $TRAVIS_TAG" }, "license": "MIT", "devDependencies": { "chrome-webstore-upload-cli": "^1.1.1", "dot-json": "^1.0.3", "npm-run-all": "^4.0.2", "webext": "^1.9.1-with-submit.1", "xo": "^0.18.2" }, "xo": { "ignores": [ "extension/webext-options-sync.js" ], "envs": [ "browser", "webextensions" ] } }
Deploy to stores serially, so AMO can finish if Chrome fails
Deploy to stores serially, so AMO can finish if Chrome fails
JSON
mit
tanmayrajani/notifications-preview-github,tanmayrajani/notifications-preview-github
json
## Code Before: { "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version --parallel upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest.json version $TRAVIS_TAG" }, "license": "MIT", "devDependencies": { "chrome-webstore-upload-cli": "^1.1.1", "dot-json": "^1.0.3", "npm-run-all": "^4.0.2", "webext": "^1.9.1-with-submit.1", "xo": "^0.18.2" }, "xo": { "ignores": [ "extension/webext-options-sync.js" ], "envs": [ "browser", "webextensions" ] } } ## Instruction: Deploy to stores serially, so AMO can finish if Chrome fails ## Code After: { "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", "release": "npm-run-all update-version upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest.json version $TRAVIS_TAG" }, "license": "MIT", "devDependencies": { "chrome-webstore-upload-cli": "^1.1.1", "dot-json": "^1.0.3", "npm-run-all": "^4.0.2", "webext": "^1.9.1-with-submit.1", "xo": "^0.18.2" }, "xo": { "ignores": [ "extension/webext-options-sync.js" ], "envs": [ "browser", "webextensions" ] } }
{ "repository": "tanmayrajani/notifications-preview-github", "scripts": { "test": "xo", - "release": "npm-run-all update-version --parallel upload:*", ? ----------- + "release": "npm-run-all update-version upload:*", "upload:amo": "cd extension && webext submit", "upload:cws": "cd extension && webstore upload --auto-publish", "update-version": "dot-json extension/manifest.json version $TRAVIS_TAG" }, "license": "MIT", "devDependencies": { "chrome-webstore-upload-cli": "^1.1.1", "dot-json": "^1.0.3", "npm-run-all": "^4.0.2", "webext": "^1.9.1-with-submit.1", "xo": "^0.18.2" }, "xo": { "ignores": [ "extension/webext-options-sync.js" ], "envs": [ "browser", "webextensions" ] } }
2
0.074074
1
1
b26caa080cb535005f6873733636fa99a0d216f2
rumember.gemspec
rumember.gemspec
Gem::Specification.new do |s| s.name = "rumember" s.version = "0.0.0" s.summary = "Remember The Milk Ruby API and command line client" s.authors = ["Tim Pope"] s.email = "code@tpope.n"+'et' s.homepage = "http://github.com/tpope/rumember" s.default_executable = "ru" s.executables = ["ru"] s.files = [ "README.markdown", "MIT-LICENSE", "rumember.gemspec", "bin/ru", "lib/rumember.rb", ] s.add_runtime_dependency("json", ["~> 1.4.0"]) s.add_runtime_dependency("launchy", ["~> 0.3.0"]) s.add_development_dependency("rspec", ["~> 1.3.0"]) end
Gem::Specification.new do |s| s.name = "rumember" s.version = "0.0.0" s.summary = "Remember The Milk Ruby API and command line client" s.authors = ["Tim Pope"] s.email = "code@tpope.n"+'et' s.homepage = "http://github.com/tpope/rumember" s.default_executable = "ru" s.executables = ["ru"] s.files = [ "README.markdown", "MIT-LICENSE", "rumember.gemspec", "bin/ru", "lib/rumember.rb", "lib/rumember/abstract.rb", "lib/rumember/account.rb", "lib/rumember/list.rb", "lib/rumember/location.rb", "lib/rumember/task.rb", "lib/rumember/timeline.rb", "lib/rumember/transaction.rb", ] s.add_runtime_dependency("json", ["~> 1.4.0"]) s.add_runtime_dependency("launchy", ["~> 0.3.0"]) s.add_development_dependency("rspec", ["~> 1.3.0"]) end
Add missing files to gemspec
Add missing files to gemspec
Ruby
mit
kevincolyar/rumember,tpope/rumember
ruby
## Code Before: Gem::Specification.new do |s| s.name = "rumember" s.version = "0.0.0" s.summary = "Remember The Milk Ruby API and command line client" s.authors = ["Tim Pope"] s.email = "code@tpope.n"+'et' s.homepage = "http://github.com/tpope/rumember" s.default_executable = "ru" s.executables = ["ru"] s.files = [ "README.markdown", "MIT-LICENSE", "rumember.gemspec", "bin/ru", "lib/rumember.rb", ] s.add_runtime_dependency("json", ["~> 1.4.0"]) s.add_runtime_dependency("launchy", ["~> 0.3.0"]) s.add_development_dependency("rspec", ["~> 1.3.0"]) end ## Instruction: Add missing files to gemspec ## Code After: Gem::Specification.new do |s| s.name = "rumember" s.version = "0.0.0" s.summary = "Remember The Milk Ruby API and command line client" s.authors = ["Tim Pope"] s.email = "code@tpope.n"+'et' s.homepage = "http://github.com/tpope/rumember" s.default_executable = "ru" s.executables = ["ru"] s.files = [ "README.markdown", "MIT-LICENSE", "rumember.gemspec", "bin/ru", "lib/rumember.rb", "lib/rumember/abstract.rb", "lib/rumember/account.rb", "lib/rumember/list.rb", "lib/rumember/location.rb", "lib/rumember/task.rb", "lib/rumember/timeline.rb", "lib/rumember/transaction.rb", ] s.add_runtime_dependency("json", ["~> 1.4.0"]) s.add_runtime_dependency("launchy", ["~> 0.3.0"]) s.add_development_dependency("rspec", ["~> 1.3.0"]) end
Gem::Specification.new do |s| s.name = "rumember" s.version = "0.0.0" s.summary = "Remember The Milk Ruby API and command line client" s.authors = ["Tim Pope"] s.email = "code@tpope.n"+'et' s.homepage = "http://github.com/tpope/rumember" s.default_executable = "ru" s.executables = ["ru"] s.files = [ "README.markdown", "MIT-LICENSE", "rumember.gemspec", "bin/ru", "lib/rumember.rb", + "lib/rumember/abstract.rb", + "lib/rumember/account.rb", + "lib/rumember/list.rb", + "lib/rumember/location.rb", + "lib/rumember/task.rb", + "lib/rumember/timeline.rb", + "lib/rumember/transaction.rb", ] s.add_runtime_dependency("json", ["~> 1.4.0"]) s.add_runtime_dependency("launchy", ["~> 0.3.0"]) s.add_development_dependency("rspec", ["~> 1.3.0"]) end
7
0.333333
7
0
665574a7d5f0f5959a3ca63c2f55844a4323cc6c
cracking-the-coding-interview/src/chapter_5/Insertion.java
cracking-the-coding-interview/src/chapter_5/Insertion.java
package chapter_5; public class Insertion { public String insertMIntoN(int m, int n, int i, int j) { int result = clearBits(n, i, j); return Integer.toBinaryString(result | (m << i)); } private int clearBits(int n, int i, int j) { int val = Integer.MAX_VALUE >>> (31 - j - 1); int val2 = Integer.MAX_VALUE << i; int mask = val & val2; return n & ~(mask); } }
package chapter_5; public class Insertion { public String insertMIntoN(int m, int n, int i, int j) { int result = clearBits(n, i, j); return Integer.toBinaryString(result | (m << i)); } private int clearBits(int n, int i, int j) { int val = ~(0) >>> (31 - j); int val2 = ~(0) << i; int mask = val & val2; return n & ~(mask); } }
Use ~0 instead of integer max value, Use Logical right shift which is important here
Use ~0 instead of integer max value, Use Logical right shift which is important here
Java
mit
scaffeinate/crack-the-code
java
## Code Before: package chapter_5; public class Insertion { public String insertMIntoN(int m, int n, int i, int j) { int result = clearBits(n, i, j); return Integer.toBinaryString(result | (m << i)); } private int clearBits(int n, int i, int j) { int val = Integer.MAX_VALUE >>> (31 - j - 1); int val2 = Integer.MAX_VALUE << i; int mask = val & val2; return n & ~(mask); } } ## Instruction: Use ~0 instead of integer max value, Use Logical right shift which is important here ## Code After: package chapter_5; public class Insertion { public String insertMIntoN(int m, int n, int i, int j) { int result = clearBits(n, i, j); return Integer.toBinaryString(result | (m << i)); } private int clearBits(int n, int i, int j) { int val = ~(0) >>> (31 - j); int val2 = ~(0) << i; int mask = val & val2; return n & ~(mask); } }
package chapter_5; public class Insertion { public String insertMIntoN(int m, int n, int i, int j) { int result = clearBits(n, i, j); return Integer.toBinaryString(result | (m << i)); } private int clearBits(int n, int i, int j) { - int val = Integer.MAX_VALUE >>> (31 - j - 1); - int val2 = Integer.MAX_VALUE << i; + int val = ~(0) >>> (31 - j); + int val2 = ~(0) << i; int mask = val & val2; return n & ~(mask); } }
4
0.266667
2
2
f0aaf872b25c3b9dadc8768b4d81ca842640a17f
docs/templates.md
docs/templates.md
All the templates for this app should be located in the subfolder of `pinax/blog/` in your template search path. ## Blog List The url `blog` renders the template `pinax/blog/blog_list.html` with `posts` and `search_query` context variables. The `posts` variable is a queryset of current blog posts. If the `GET` parameter, `q` is found, it filters the queryset create a simple search mechanism, then assigns the value to `search_query`. ## Section List The url `blog_section` renders the template `pinax/blog/blog_section_list.html` with `section_slug`, `section_name`, and `posts` context variables. The `posts` variable is a queryset of current blogs filtered to the specified section. ## Post Detail The urls, `blog_post`, `blog_post_pk`, `blog_post_slug`, and `blog_post_secret` all render the template `pinax/blog/blog_post.html` with the `post` context variable. The `post` is the requested post. It may or may not be public depending on the url requested. ## Blog Feeds The url `blog_feed` will either render `pinax/blog/atom_feed.xml` or `pinax/blog/rss_feed.xml` depending on the parameters in the URL. It will pass both templates the context variables of `feed_id`, `feed_title`, `blog_url`, `feed_url`, `feed_updated`, `entries`, and `current_site`. Both of these templates ship already configured to work out of the box.
All the templates for this app should be located in the subfolder of `pinax/blog/` in your template search path. ## Blog List The url `blog` and `blog_section` both render the template `pinax/blog/blog_list.html` with `posts`, `search_query`, `section_slug`, and `section_name` context variables. The `posts` variable is a queryset of current blog posts. If the `GET` parameter, `q` is found, it filters the queryset create a simple search mechanism, then assigns the value to `search_query`. If the `blog` url is requested then `section` and `section_name` will be `None`. ## Post Detail The urls, `blog_post`, `blog_post_pk`, `blog_post_slug`, and `blog_post_secret` all render the template `pinax/blog/blog_post.html` with the `post` context variable. The `post` is the requested post. It may or may not be public depending on the url requested. ## Blog Feeds The url `blog_feed` will either render `pinax/blog/atom_feed.xml` or `pinax/blog/rss_feed.xml` depending on the parameters in the URL. It will pass both templates the context variables of `feed_id`, `feed_title`, `blog_url`, `feed_url`, `feed_updated`, `entries`, and `current_site`. Both of these templates ship already configured to work out of the box.
Update docs to be in line with latest merge
Update docs to be in line with latest merge
Markdown
mit
swilcox/pinax-blog,miurahr/pinax-blog,pinax/pinax-blog,miurahr/pinax-blog,swilcox/pinax-blog,pinax/pinax-blog,easton402/pinax-blog,pinax/pinax-blog,salamer/pinax-blog,easton402/pinax-blog,cdvv7788/pinax-blog
markdown
## Code Before: All the templates for this app should be located in the subfolder of `pinax/blog/` in your template search path. ## Blog List The url `blog` renders the template `pinax/blog/blog_list.html` with `posts` and `search_query` context variables. The `posts` variable is a queryset of current blog posts. If the `GET` parameter, `q` is found, it filters the queryset create a simple search mechanism, then assigns the value to `search_query`. ## Section List The url `blog_section` renders the template `pinax/blog/blog_section_list.html` with `section_slug`, `section_name`, and `posts` context variables. The `posts` variable is a queryset of current blogs filtered to the specified section. ## Post Detail The urls, `blog_post`, `blog_post_pk`, `blog_post_slug`, and `blog_post_secret` all render the template `pinax/blog/blog_post.html` with the `post` context variable. The `post` is the requested post. It may or may not be public depending on the url requested. ## Blog Feeds The url `blog_feed` will either render `pinax/blog/atom_feed.xml` or `pinax/blog/rss_feed.xml` depending on the parameters in the URL. It will pass both templates the context variables of `feed_id`, `feed_title`, `blog_url`, `feed_url`, `feed_updated`, `entries`, and `current_site`. Both of these templates ship already configured to work out of the box. ## Instruction: Update docs to be in line with latest merge ## Code After: All the templates for this app should be located in the subfolder of `pinax/blog/` in your template search path. ## Blog List The url `blog` and `blog_section` both render the template `pinax/blog/blog_list.html` with `posts`, `search_query`, `section_slug`, and `section_name` context variables. The `posts` variable is a queryset of current blog posts. If the `GET` parameter, `q` is found, it filters the queryset create a simple search mechanism, then assigns the value to `search_query`. If the `blog` url is requested then `section` and `section_name` will be `None`. ## Post Detail The urls, `blog_post`, `blog_post_pk`, `blog_post_slug`, and `blog_post_secret` all render the template `pinax/blog/blog_post.html` with the `post` context variable. The `post` is the requested post. It may or may not be public depending on the url requested. ## Blog Feeds The url `blog_feed` will either render `pinax/blog/atom_feed.xml` or `pinax/blog/rss_feed.xml` depending on the parameters in the URL. It will pass both templates the context variables of `feed_id`, `feed_title`, `blog_url`, `feed_url`, `feed_updated`, `entries`, and `current_site`. Both of these templates ship already configured to work out of the box.
All the templates for this app should be located in the subfolder of `pinax/blog/` in your template search path. ## Blog List - The url `blog` renders the template `pinax/blog/blog_list.html` with `posts` + The url `blog` and `blog_section` both render the template + `pinax/blog/blog_list.html` with `posts`, `search_query`, `section_slug`, - and `search_query` context variables. ? ^^^^^^ -- + and `section_name` context variables. ? +++++++ ^ The `posts` variable is a queryset of current blog posts. If the `GET` parameter, `q` is found, it filters the queryset create a simple search mechanism, then + assigns the value to `search_query`. If the `blog` url is requested then + `section` and `section_name` will be `None`. - assigns the value to `search_query`. - - - ## Section List - - The url `blog_section` renders the template `pinax/blog/blog_section_list.html` - with `section_slug`, `section_name`, and `posts` context variables. - - The `posts` variable is a queryset of current blogs filtered to the specified - section. ## Post Detail The urls, `blog_post`, `blog_post_pk`, `blog_post_slug`, and `blog_post_secret` all render the template `pinax/blog/blog_post.html` with the `post` context variable. The `post` is the requested post. It may or may not be public depending on the url requested. ## Blog Feeds The url `blog_feed` will either render `pinax/blog/atom_feed.xml` or `pinax/blog/rss_feed.xml` depending on the parameters in the URL. It will pass both templates the context variables of `feed_id`, `feed_title`, `blog_url`, `feed_url`, `feed_updated`, `entries`, and `current_site`. Both of these templates ship already configured to work out of the box.
17
0.395349
5
12
1e218ba94c774372929d890780ab12efbfaae181
core/management/commands/heroku.py
core/management/commands/heroku.py
from django.core.management.base import BaseCommand from django.contrib.auth.models import User from django.core.management import call_command class Command(BaseCommand): help = 'Creates a superuser for Heroku' def handle(self, *args, **kwargs): verbosity = kwargs['verbosity'] call_command('migrate', verbosity=0) User.objects.create_superuser( username='admin', email='admin@example.com', password='changeme123' ) if verbosity > 0: self.stdout.write( self.style.SUCCESS('Successfully run all Heroku commands.') )
from django.core.management.base import BaseCommand from django.contrib.auth.models import User from django.core.management import call_command class Command(BaseCommand): help = 'Runs migrations for Heroku' def handle(self, *args, **kwargs): verbosity = kwargs['verbosity'] call_command('migrate', verbosity=0) if verbosity > 0: self.stdout.write( self.style.SUCCESS('Successfully ran all Heroku commands.') )
Remove Heroku createsuperuser command. Migrate now creates a default user.
Remove Heroku createsuperuser command. Migrate now creates a default user.
Python
bsd-2-clause
cdubz/timestrap,muhleder/timestrap,muhleder/timestrap,muhleder/timestrap,overshard/timestrap,cdubz/timestrap,overshard/timestrap,overshard/timestrap,cdubz/timestrap
python
## Code Before: from django.core.management.base import BaseCommand from django.contrib.auth.models import User from django.core.management import call_command class Command(BaseCommand): help = 'Creates a superuser for Heroku' def handle(self, *args, **kwargs): verbosity = kwargs['verbosity'] call_command('migrate', verbosity=0) User.objects.create_superuser( username='admin', email='admin@example.com', password='changeme123' ) if verbosity > 0: self.stdout.write( self.style.SUCCESS('Successfully run all Heroku commands.') ) ## Instruction: Remove Heroku createsuperuser command. Migrate now creates a default user. ## Code After: from django.core.management.base import BaseCommand from django.contrib.auth.models import User from django.core.management import call_command class Command(BaseCommand): help = 'Runs migrations for Heroku' def handle(self, *args, **kwargs): verbosity = kwargs['verbosity'] call_command('migrate', verbosity=0) if verbosity > 0: self.stdout.write( self.style.SUCCESS('Successfully ran all Heroku commands.') )
from django.core.management.base import BaseCommand from django.contrib.auth.models import User from django.core.management import call_command class Command(BaseCommand): - help = 'Creates a superuser for Heroku' + help = 'Runs migrations for Heroku' def handle(self, *args, **kwargs): verbosity = kwargs['verbosity'] call_command('migrate', verbosity=0) - User.objects.create_superuser( - username='admin', - email='admin@example.com', - password='changeme123' - ) - if verbosity > 0: self.stdout.write( - self.style.SUCCESS('Successfully run all Heroku commands.') ? ^ + self.style.SUCCESS('Successfully ran all Heroku commands.') ? ^ )
10
0.434783
2
8
1690959502e2951920e52a0832e6571144bab6a8
_lib/wordpress_faq_processor.py
_lib/wordpress_faq_processor.py
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.content) current_page += 1 max_page = results['pages'] for p in results['posts']: yield p def documents(name, url, **kwargs): for post in posts_at_url(url): yield process_post(post) def process_post(post): post['_id'] = post['slug'] names = ['og_title', 'og_image', 'og_desc', 'twtr_text', 'twtr_lang', 'twtr_rel', 'twtr_hash', 'utm_campaign', 'utm_term', 'utm_content', 'faq'] for name in names: if name in post['custom_fields']: post[name] = post['custom_fields'][name] if 'taxonomy_fj_tag' in post: post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']] del post['custom_fields'] return post
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.content) current_page += 1 max_page = results['pages'] for p in results['posts']: yield p def documents(name, url, **kwargs): for post in posts_at_url(url): yield process_post(post) def process_post(post): post['_id'] = post['slug'] names = ['og_title', 'og_image', 'og_desc', 'twtr_text', 'twtr_lang', 'twtr_rel', 'twtr_hash', 'utm_campaign', 'utm_term', 'utm_content', 'faq'] for name in names: if name in post['custom_fields']: post[name] = post['custom_fields'][name] if 'taxonomy_fj_tag' in post: post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']] del post['custom_fields'] return {'_index': 'content', '_type': 'faq', '_id': post['slug'], '_source': post}
Change faq processor to bulk index
Change faq processor to bulk index
Python
cc0-1.0
kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh
python
## Code Before: import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.content) current_page += 1 max_page = results['pages'] for p in results['posts']: yield p def documents(name, url, **kwargs): for post in posts_at_url(url): yield process_post(post) def process_post(post): post['_id'] = post['slug'] names = ['og_title', 'og_image', 'og_desc', 'twtr_text', 'twtr_lang', 'twtr_rel', 'twtr_hash', 'utm_campaign', 'utm_term', 'utm_content', 'faq'] for name in names: if name in post['custom_fields']: post[name] = post['custom_fields'][name] if 'taxonomy_fj_tag' in post: post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']] del post['custom_fields'] return post ## Instruction: Change faq processor to bulk index ## Code After: import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.content) current_page += 1 max_page = results['pages'] for p in results['posts']: yield p def documents(name, url, **kwargs): for post in posts_at_url(url): yield process_post(post) def process_post(post): post['_id'] = post['slug'] names = ['og_title', 'og_image', 'og_desc', 'twtr_text', 'twtr_lang', 'twtr_rel', 'twtr_hash', 'utm_campaign', 'utm_term', 'utm_content', 'faq'] for name in names: if name in post['custom_fields']: post[name] = post['custom_fields'][name] if 'taxonomy_fj_tag' in post: post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']] del post['custom_fields'] return {'_index': 'content', '_type': 'faq', '_id': post['slug'], '_source': post}
import sys import json import os.path import requests def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: url = os.path.expandvars(url) resp = requests.get(url, params={'page': current_page, 'count': '-1'}) results = json.loads(resp.content) current_page += 1 max_page = results['pages'] for p in results['posts']: yield p def documents(name, url, **kwargs): for post in posts_at_url(url): yield process_post(post) def process_post(post): post['_id'] = post['slug'] names = ['og_title', 'og_image', 'og_desc', 'twtr_text', 'twtr_lang', 'twtr_rel', 'twtr_hash', 'utm_campaign', 'utm_term', 'utm_content', 'faq'] for name in names: if name in post['custom_fields']: post[name] = post['custom_fields'][name] if 'taxonomy_fj_tag' in post: post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']] del post['custom_fields'] - return post + return {'_index': 'content', + '_type': 'faq', + '_id': post['slug'], + '_source': post}
5
0.113636
4
1
609f92bd1d6be7f78aad06af7f7f5bf3d9c1470f
src/Workspaces/Core/Portable/PublicAPI.Unshipped.txt
src/Workspaces/Core/Portable/PublicAPI.Unshipped.txt
*REMOVED*Microsoft.CodeAnalysis.TextDocument.Project.set -> void *REMOVED*Microsoft.CodeAnalysis.TextDocument.TextDocument() -> void static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
*REMOVED*Microsoft.CodeAnalysis.TextDocument.Project.set -> void *REMOVED*Microsoft.CodeAnalysis.TextDocument.TextDocument() -> void static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Update the PublicAPI entry for OrganizeImportsAsync
Update the PublicAPI entry for OrganizeImportsAsync
Text
mit
wvdd007/roslyn,genlu/roslyn,ErikSchierboom/roslyn,mavasani/roslyn,AmadeusW/roslyn,shyamnamboodiripad/roslyn,bartdesmet/roslyn,reaction1989/roslyn,shyamnamboodiripad/roslyn,KirillOsenkov/roslyn,tmat/roslyn,genlu/roslyn,heejaechang/roslyn,panopticoncentral/roslyn,brettfo/roslyn,physhi/roslyn,mgoertz-msft/roslyn,bartdesmet/roslyn,aelij/roslyn,eriawan/roslyn,heejaechang/roslyn,brettfo/roslyn,sharwell/roslyn,AlekseyTs/roslyn,stephentoub/roslyn,abock/roslyn,diryboy/roslyn,sharwell/roslyn,CyrusNajmabadi/roslyn,heejaechang/roslyn,jmarolf/roslyn,eriawan/roslyn,CyrusNajmabadi/roslyn,KevinRansom/roslyn,tmat/roslyn,tannergooding/roslyn,weltkante/roslyn,weltkante/roslyn,gafter/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,davkean/roslyn,stephentoub/roslyn,AmadeusW/roslyn,CyrusNajmabadi/roslyn,davkean/roslyn,KevinRansom/roslyn,weltkante/roslyn,dotnet/roslyn,dotnet/roslyn,agocke/roslyn,eriawan/roslyn,AlekseyTs/roslyn,KirillOsenkov/roslyn,physhi/roslyn,physhi/roslyn,mavasani/roslyn,panopticoncentral/roslyn,bartdesmet/roslyn,jmarolf/roslyn,ErikSchierboom/roslyn,mgoertz-msft/roslyn,mgoertz-msft/roslyn,aelij/roslyn,reaction1989/roslyn,AmadeusW/roslyn,KevinRansom/roslyn,abock/roslyn,AlekseyTs/roslyn,sharwell/roslyn,jasonmalinowski/roslyn,jmarolf/roslyn,agocke/roslyn,agocke/roslyn,gafter/roslyn,tannergooding/roslyn,diryboy/roslyn,davkean/roslyn,tmat/roslyn,gafter/roslyn,reaction1989/roslyn,brettfo/roslyn,aelij/roslyn,wvdd007/roslyn,stephentoub/roslyn,genlu/roslyn,shyamnamboodiripad/roslyn,ErikSchierboom/roslyn,wvdd007/roslyn,diryboy/roslyn,mavasani/roslyn,panopticoncentral/roslyn,jasonmalinowski/roslyn,abock/roslyn,tannergooding/roslyn,KirillOsenkov/roslyn
text
## Code Before: *REMOVED*Microsoft.CodeAnalysis.TextDocument.Project.set -> void *REMOVED*Microsoft.CodeAnalysis.TextDocument.TextDocument() -> void static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ## Instruction: Update the PublicAPI entry for OrganizeImportsAsync ## Code After: *REMOVED*Microsoft.CodeAnalysis.TextDocument.Project.set -> void *REMOVED*Microsoft.CodeAnalysis.TextDocument.TextDocument() -> void static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
*REMOVED*Microsoft.CodeAnalysis.TextDocument.Project.set -> void *REMOVED*Microsoft.CodeAnalysis.TextDocument.TextDocument() -> void - static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ? ---------------------------------------------- + static Microsoft.CodeAnalysis.Formatting.Formatter.OrganizeImportsAsync(Microsoft.CodeAnalysis.Document document, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
2
0.666667
1
1
96bc5c0b0bddf63d729116a55288621b00b1401c
test/helpers/fixtures/index.js
test/helpers/fixtures/index.js
var fixtures = require('node-require-directory')(__dirname); exports.load = function *(specificFixtures) { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } try { yield exports.unload(); var keys = Object.keys(fixtures).filter(function(key) { if (specificFixtures && specificFixtures.indexOf(key) === -1) { return false; } return true; }); for (var i = 0; i < keys.length; ++i) { exports[keys[i]] = yield fixtures[keys[i]].load(); } } catch (e) { console.error(e); } }; exports.unload = function *() { yield sequelize.sync({ force: true }); };
var fixtures = require('node-require-directory')(__dirname); exports.load = function *(specificFixtures) { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } var prevSetting = sequelize.options.logging; sequelize.options.logging = false; try { yield exports.unload(); var keys = Object.keys(fixtures).filter(function(key) { if (specificFixtures && specificFixtures.indexOf(key) === -1) { return false; } return true; }); for (var i = 0; i < keys.length; ++i) { exports[keys[i]] = yield fixtures[keys[i]].load(); } } catch (e) { console.error(e); } sequelize.options.logging = prevSetting; }; exports.unload = function *() { var prevSetting = sequelize.options.logging; sequelize.options.logging = false; yield sequelize.sync({ force: true }); sequelize.options.logging = prevSetting; };
Disable logging sql when creating tables
Disable logging sql when creating tables
JavaScript
mit
wikilab/wikilab-api
javascript
## Code Before: var fixtures = require('node-require-directory')(__dirname); exports.load = function *(specificFixtures) { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } try { yield exports.unload(); var keys = Object.keys(fixtures).filter(function(key) { if (specificFixtures && specificFixtures.indexOf(key) === -1) { return false; } return true; }); for (var i = 0; i < keys.length; ++i) { exports[keys[i]] = yield fixtures[keys[i]].load(); } } catch (e) { console.error(e); } }; exports.unload = function *() { yield sequelize.sync({ force: true }); }; ## Instruction: Disable logging sql when creating tables ## Code After: var fixtures = require('node-require-directory')(__dirname); exports.load = function *(specificFixtures) { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } var prevSetting = sequelize.options.logging; sequelize.options.logging = false; try { yield exports.unload(); var keys = Object.keys(fixtures).filter(function(key) { if (specificFixtures && specificFixtures.indexOf(key) === -1) { return false; } return true; }); for (var i = 0; i < keys.length; ++i) { exports[keys[i]] = yield fixtures[keys[i]].load(); } } catch (e) { console.error(e); } sequelize.options.logging = prevSetting; }; exports.unload = function *() { var prevSetting = sequelize.options.logging; sequelize.options.logging = false; yield sequelize.sync({ force: true }); sequelize.options.logging = prevSetting; };
var fixtures = require('node-require-directory')(__dirname); exports.load = function *(specificFixtures) { if (typeof specificFixtures === 'string') { specificFixtures = [specificFixtures]; } + var prevSetting = sequelize.options.logging; + sequelize.options.logging = false; try { yield exports.unload(); var keys = Object.keys(fixtures).filter(function(key) { if (specificFixtures && specificFixtures.indexOf(key) === -1) { return false; } return true; }); for (var i = 0; i < keys.length; ++i) { exports[keys[i]] = yield fixtures[keys[i]].load(); } } catch (e) { console.error(e); } + sequelize.options.logging = prevSetting; }; exports.unload = function *() { + var prevSetting = sequelize.options.logging; + sequelize.options.logging = false; yield sequelize.sync({ force: true }); + sequelize.options.logging = prevSetting; };
6
0.222222
6
0
81039aefb3616d5ed186441f76f2c6ad3025c4ed
src/icons/browserAction/inactive.svg
src/icons/browserAction/inactive.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 16 16"> <g transform="translate(0,-1036.4)" fill="#9c27b0"> <circle cy="1046.8" cx="3.2" r="3.2"/> <circle cy="1050.4" cx="10.8" r="2"/> <circle cy="1041.2" cx="11.2" r="4.8"/> </g> </svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 16 16"> <defs> <filter id="inset-shadow" style="color-interpolation-filters:sRGB"> <feFlood result="flood" flood-opacity=".5" flood-color="rgb(0,0,0)"/> <feComposite operator="out" result="composite1" in2="SourceGraphic" in="flood"/> <feGaussianBlur stdDeviation="0.5" result="blur" in="composite1"/> <feOffset result="offset" dx="4.46865e-15" dy="1.38778e-16"/> <feComposite operator="atop" result="composite2" in2="SourceGraphic" in="offset"/> </filter> </defs> <g filter="url(#inset-shadow)" transform="translate(0,-1036.4)" fill="#9c27b0"> <circle cy="1046.8" cx="3.2" r="3.2"/> <circle cy="1050.4" cx="10.8" r="2"/> <circle cy="1041.2" cx="11.2" r="4.8"/> </g> </svg>
Add inset shadow to browserAction icon
Add inset shadow to browserAction icon
SVG
mit
metarmask/dom-distiller-reading-mode,metarmask/dom-distiller-reading-mode
svg
## Code Before: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 16 16"> <g transform="translate(0,-1036.4)" fill="#9c27b0"> <circle cy="1046.8" cx="3.2" r="3.2"/> <circle cy="1050.4" cx="10.8" r="2"/> <circle cy="1041.2" cx="11.2" r="4.8"/> </g> </svg> ## Instruction: Add inset shadow to browserAction icon ## Code After: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 16 16"> <defs> <filter id="inset-shadow" style="color-interpolation-filters:sRGB"> <feFlood result="flood" flood-opacity=".5" flood-color="rgb(0,0,0)"/> <feComposite operator="out" result="composite1" in2="SourceGraphic" in="flood"/> <feGaussianBlur stdDeviation="0.5" result="blur" in="composite1"/> <feOffset result="offset" dx="4.46865e-15" dy="1.38778e-16"/> <feComposite operator="atop" result="composite2" in2="SourceGraphic" in="offset"/> </filter> </defs> <g filter="url(#inset-shadow)" transform="translate(0,-1036.4)" fill="#9c27b0"> <circle cy="1046.8" cx="3.2" r="3.2"/> <circle cy="1050.4" cx="10.8" r="2"/> <circle cy="1041.2" cx="11.2" r="4.8"/> </g> </svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 16 16"> + <defs> + <filter id="inset-shadow" style="color-interpolation-filters:sRGB"> + <feFlood result="flood" flood-opacity=".5" flood-color="rgb(0,0,0)"/> + <feComposite operator="out" result="composite1" in2="SourceGraphic" in="flood"/> + <feGaussianBlur stdDeviation="0.5" result="blur" in="composite1"/> + <feOffset result="offset" dx="4.46865e-15" dy="1.38778e-16"/> + <feComposite operator="atop" result="composite2" in2="SourceGraphic" in="offset"/> + </filter> + </defs> - <g transform="translate(0,-1036.4)" fill="#9c27b0"> + <g filter="url(#inset-shadow)" transform="translate(0,-1036.4)" fill="#9c27b0"> ? ++++++++++++++++++++++++++++ <circle cy="1046.8" cx="3.2" r="3.2"/> <circle cy="1050.4" cx="10.8" r="2"/> <circle cy="1041.2" cx="11.2" r="4.8"/> </g> </svg>
11
1.375
10
1
f416064fcee35f48e500d1bd2e6ddaad9b89e0f4
.github/workflows/pullrequests.yml
.github/workflows/pullrequests.yml
name: Build pull request on: pull_request: branches: [master] types: [opened, synchronize, reopened] jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-20.04 strategy: matrix: include: - mongodb-version: 3.6 karate-options: "--tags ~@requires-mongodb-4 ~@requires-replica-set" - mongodb-version: 4.2 - mongodb-version: 4.4 deploy: true timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: "adopt" java-version: 16 - name: Build and Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any run: mvn -B verify -Dmongodb.version="${{ matrix.mongodb-version }}" -Dkarate.options="${{ matrix.karate-options }}"
name: Build pull request on: pull_request: branches: - "*" types: [opened, synchronize, reopened] jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-20.04 strategy: matrix: include: - mongodb-version: 3.6 karate-options: "--tags ~@requires-mongodb-4 ~@requires-replica-set" - mongodb-version: 4.2 - mongodb-version: 4.4 deploy: true timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: "adopt" java-version: 16 - name: Build and Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any run: mvn -B verify -Dmongodb.version="${{ matrix.mongodb-version }}" -Dkarate.options="${{ matrix.karate-options }}"
Build PR for all branches
Build PR for all branches [skip ci]
YAML
agpl-3.0
SoftInstigate/restheart,SoftInstigate/restheart,SoftInstigate/restheart,SoftInstigate/restheart
yaml
## Code Before: name: Build pull request on: pull_request: branches: [master] types: [opened, synchronize, reopened] jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-20.04 strategy: matrix: include: - mongodb-version: 3.6 karate-options: "--tags ~@requires-mongodb-4 ~@requires-replica-set" - mongodb-version: 4.2 - mongodb-version: 4.4 deploy: true timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: "adopt" java-version: 16 - name: Build and Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any run: mvn -B verify -Dmongodb.version="${{ matrix.mongodb-version }}" -Dkarate.options="${{ matrix.karate-options }}" ## Instruction: Build PR for all branches [skip ci] ## Code After: name: Build pull request on: pull_request: branches: - "*" types: [opened, synchronize, reopened] jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-20.04 strategy: matrix: include: - mongodb-version: 3.6 karate-options: "--tags ~@requires-mongodb-4 ~@requires-replica-set" - mongodb-version: 4.2 - mongodb-version: 4.4 deploy: true timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: "adopt" java-version: 16 - name: Build and Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any run: mvn -B verify -Dmongodb.version="${{ matrix.mongodb-version }}" -Dkarate.options="${{ matrix.karate-options }}"
+ name: Build pull request on: pull_request: - branches: [master] + branches: + - "*" types: [opened, synchronize, reopened] jobs: build: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-20.04 strategy: matrix: include: - mongodb-version: 3.6 karate-options: "--tags ~@requires-mongodb-4 ~@requires-replica-set" - mongodb-version: 4.2 - mongodb-version: 4.4 deploy: true timeout-minutes: 20 steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Set up JDK 16 uses: actions/setup-java@v2 with: distribution: "adopt" java-version: 16 - name: Build and Test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any run: mvn -B verify -Dmongodb.version="${{ matrix.mongodb-version }}" -Dkarate.options="${{ matrix.karate-options }}"
4
0.102564
3
1
a9f6329ba17dcb1d8d90137ba3d452a11d14a1f3
src/14.Expression.polar.js
src/14.Expression.polar.js
Expression.prototype.polar = function() { var ri = this.realimag(); var two = new Expression.Integer(2); return Expression.List.ComplexPolar([ ri[0]['^'](two)['+'](ri[1]['^'](two)), Global.atan2.default(Expression.Vector([ri[1], ri[0]])) ]); }; Expression.prototype.abs = function() { console.warn('SLOW?'); var ri = this.realimag(); return ri[0]['*'](ri[0])['+'](ri[1]['*'](ri[1])); }; Expression.prototype.arg = function() { console.warn('Slow?'); var ri = this.realimag(); return Global.atan2.default(Expression.Vector([ri[1], ri[0]])); };
Expression.prototype.polar = function() { var ri = this.realimag(); var two = new Expression.Integer(2); return Expression.List.ComplexPolar([ Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))), Global.atan2.default(Expression.Vector([ri[1], ri[0]])) ]); }; Expression.prototype.abs = function() { console.warn('SLOW?'); var ri = this.realimag(); var two = new Expression.Integer(2); return Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))); }; Expression.prototype.arg = function() { console.warn('Slow?'); var ri = this.realimag(); return Global.atan2.default(Expression.Vector([ri[1], ri[0]])); };
Fix absolute value of cartesian (was previously x*x+y*y, but should be Sqrt[x^2+y^2])
Fix absolute value of cartesian (was previously x*x+y*y, but should be Sqrt[x^2+y^2])
JavaScript
mit
aantthony/javascript-cas,kwangkim/javascript-cas,kwangkim/javascript-cas
javascript
## Code Before: Expression.prototype.polar = function() { var ri = this.realimag(); var two = new Expression.Integer(2); return Expression.List.ComplexPolar([ ri[0]['^'](two)['+'](ri[1]['^'](two)), Global.atan2.default(Expression.Vector([ri[1], ri[0]])) ]); }; Expression.prototype.abs = function() { console.warn('SLOW?'); var ri = this.realimag(); return ri[0]['*'](ri[0])['+'](ri[1]['*'](ri[1])); }; Expression.prototype.arg = function() { console.warn('Slow?'); var ri = this.realimag(); return Global.atan2.default(Expression.Vector([ri[1], ri[0]])); }; ## Instruction: Fix absolute value of cartesian (was previously x*x+y*y, but should be Sqrt[x^2+y^2]) ## Code After: Expression.prototype.polar = function() { var ri = this.realimag(); var two = new Expression.Integer(2); return Expression.List.ComplexPolar([ Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))), Global.atan2.default(Expression.Vector([ri[1], ri[0]])) ]); }; Expression.prototype.abs = function() { console.warn('SLOW?'); var ri = this.realimag(); var two = new Expression.Integer(2); return Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))); }; Expression.prototype.arg = function() { console.warn('Slow?'); var ri = this.realimag(); return Global.atan2.default(Expression.Vector([ri[1], ri[0]])); };
Expression.prototype.polar = function() { var ri = this.realimag(); var two = new Expression.Integer(2); return Expression.List.ComplexPolar([ - ri[0]['^'](two)['+'](ri[1]['^'](two)), + Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))), ? ++++++++++++++++++++ + Global.atan2.default(Expression.Vector([ri[1], ri[0]])) ]); }; Expression.prototype.abs = function() { console.warn('SLOW?'); var ri = this.realimag(); - return ri[0]['*'](ri[0])['+'](ri[1]['*'](ri[1])); + var two = new Expression.Integer(2); + return Global.sqrt.default(ri[0]['^'](two)['+'](ri[1]['^'](two))); }; Expression.prototype.arg = function() { console.warn('Slow?'); var ri = this.realimag(); return Global.atan2.default(Expression.Vector([ri[1], ri[0]])); };
5
0.277778
3
2
1b65bedb8803ef4cbd4ac3923caef330089fa9c8
app/views/report/_db_widget_remove.html.haml
app/views/report/_db_widget_remove.html.haml
-# Parameters: widget MiqWidget object = link_to("", {:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, "data-miq_sparkle_on" => true, :remote => true, :id => "w_#{widget.id}_close", :title => _("Remove this widget"), :class => "delbox")
-# Parameters: widget MiqWidget object = link_to({:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, "data-miq_sparkle_on" => true, :remote => true, :id => "w_#{widget.id}_close", :title => _("Remove this widget"), :class => "pull-right") do %i.fa.fa-remove
Convert .delbox to fontawesome and display it in the widget editor
Convert .delbox to fontawesome and display it in the widget editor https://bugzilla.redhat.com/show_bug.cgi?id=1283978 (transferred from ManageIQ/manageiq@bb67757e50344746cc7d2554e490c25eaab28970)
Haml
apache-2.0
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
haml
## Code Before: -# Parameters: widget MiqWidget object = link_to("", {:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, "data-miq_sparkle_on" => true, :remote => true, :id => "w_#{widget.id}_close", :title => _("Remove this widget"), :class => "delbox") ## Instruction: Convert .delbox to fontawesome and display it in the widget editor https://bugzilla.redhat.com/show_bug.cgi?id=1283978 (transferred from ManageIQ/manageiq@bb67757e50344746cc7d2554e490c25eaab28970) ## Code After: -# Parameters: widget MiqWidget object = link_to({:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, "data-miq_sparkle_on" => true, :remote => true, :id => "w_#{widget.id}_close", :title => _("Remove this widget"), :class => "pull-right") do %i.fa.fa-remove
-# Parameters: widget MiqWidget object - = link_to("", - {:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, ? ^ + = link_to({:controller => "report", :action => "db_widget_remove", :id => @db.id || 'new', :widget => widget.id}, ? + ^^^^^^^^ "data-miq_sparkle_on" => true, :remote => true, :id => "w_#{widget.id}_close", :title => _("Remove this widget"), - :class => "delbox") ? ^^ ^^^ + :class => "pull-right") do ? ^^ ^^^^^^^ +++ + %i.fa.fa-remove
6
0.6
3
3
1c39ab7f00a103e19936bc77b2f2919d23bbd399
addon/mixins/key-events.js
addon/mixins/key-events.js
import Ember from 'ember'; const keyCodeToEventMap = { 27: 'esc', 37: 'leftArrow', 38: 'upArrow', 39: 'rightArrow', 40: 'downArrow' }; export default Ember.Mixin.create({ mergedProperties: ['keyEvents'], keyEvents: {}, setupKeyHandling: function() { this.$(document).on(`keyup.${this.get('elementId')}`, (event) => { var key = keyCodeToEventMap[event.keyCode]; var keyEvent = this.get('keyEvents')[key]; if (keyEvent) { keyEvent.call(this, event); } }); }.on('didInsertElement'), tearDownKeyHandling: function() { this.$(document).off(`keyup.${this.get('elementId')}`); }.on('willDestroyElement') });
import Ember from 'ember'; const keyToEventMap = { 27: 'esc', 37: 'leftArrow', 38: 'upArrow', 39: 'rightArrow', 40: 'downArrow' }; export default Ember.Mixin.create({ mergedProperties: ['keyEvents'], keyEvents: {}, setupKeyHandling: function() { this.$(document).on(`keyup.${this.get('elementId')}`, (event) => { var key = (keyToEventMap[event.keyCode]) ? keyToEventMap[event.keyCode] : event.keyCode; var keyEvent = this.get('keyEvents')[key]; if (keyEvent) { keyEvent.call(this, event); } }); }.on('didInsertElement'), tearDownKeyHandling: function() { this.$(document).off(`keyup.${this.get('elementId')}`); }.on('willDestroyElement') });
Allow passing other key codes, not just the ones from the list
Allow passing other key codes, not just the ones from the list
JavaScript
mit
alphasights/ember-cli-paint,alphasights/ember-cli-paint
javascript
## Code Before: import Ember from 'ember'; const keyCodeToEventMap = { 27: 'esc', 37: 'leftArrow', 38: 'upArrow', 39: 'rightArrow', 40: 'downArrow' }; export default Ember.Mixin.create({ mergedProperties: ['keyEvents'], keyEvents: {}, setupKeyHandling: function() { this.$(document).on(`keyup.${this.get('elementId')}`, (event) => { var key = keyCodeToEventMap[event.keyCode]; var keyEvent = this.get('keyEvents')[key]; if (keyEvent) { keyEvent.call(this, event); } }); }.on('didInsertElement'), tearDownKeyHandling: function() { this.$(document).off(`keyup.${this.get('elementId')}`); }.on('willDestroyElement') }); ## Instruction: Allow passing other key codes, not just the ones from the list ## Code After: import Ember from 'ember'; const keyToEventMap = { 27: 'esc', 37: 'leftArrow', 38: 'upArrow', 39: 'rightArrow', 40: 'downArrow' }; export default Ember.Mixin.create({ mergedProperties: ['keyEvents'], keyEvents: {}, setupKeyHandling: function() { this.$(document).on(`keyup.${this.get('elementId')}`, (event) => { var key = (keyToEventMap[event.keyCode]) ? keyToEventMap[event.keyCode] : event.keyCode; var keyEvent = this.get('keyEvents')[key]; if (keyEvent) { keyEvent.call(this, event); } }); }.on('didInsertElement'), tearDownKeyHandling: function() { this.$(document).off(`keyup.${this.get('elementId')}`); }.on('willDestroyElement') });
import Ember from 'ember'; - const keyCodeToEventMap = { ? ---- + const keyToEventMap = { 27: 'esc', 37: 'leftArrow', 38: 'upArrow', 39: 'rightArrow', 40: 'downArrow' }; export default Ember.Mixin.create({ mergedProperties: ['keyEvents'], keyEvents: {}, setupKeyHandling: function() { this.$(document).on(`keyup.${this.get('elementId')}`, (event) => { - var key = keyCodeToEventMap[event.keyCode]; + var key = (keyToEventMap[event.keyCode]) ? keyToEventMap[event.keyCode] : event.keyCode; var keyEvent = this.get('keyEvents')[key]; if (keyEvent) { keyEvent.call(this, event); } }); }.on('didInsertElement'), tearDownKeyHandling: function() { this.$(document).off(`keyup.${this.get('elementId')}`); }.on('willDestroyElement') });
4
0.137931
2
2