commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
dfdc8825763851bc6920fd96949fa6f72c3e0f42
app/assets/javascripts/components/inline_edit_body_part.js.coffee
app/assets/javascripts/components/inline_edit_body_part.js.coffee
ETahi.InlineEditBodyPartComponent = Em.Component.extend editing: false snapshot: [] confirmDelete: false createSnapshot: (-> @set('snapshot', Em.copy(@get('block'), true)) ).observes('editing') hasContent: true # hasContent: Em.computed.notEmpty('bodyPart.value') hasNoContent: Em.computed.not('ha...
ETahi.InlineEditBodyPartComponent = Em.Component.extend editing: false snapshot: [] confirmDelete: false createSnapshot: (-> @set('snapshot', Em.copy(@get('block'), true)) ).observes('editing') hasContent: (-> @get('block').any(@_isEmpty) ).property('block.@each.value') hasNoContent: Em.compu...
Disable saving when items are all empty
Disable saving when items are all empty
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
coffeescript
## Code Before: ETahi.InlineEditBodyPartComponent = Em.Component.extend editing: false snapshot: [] confirmDelete: false createSnapshot: (-> @set('snapshot', Em.copy(@get('block'), true)) ).observes('editing') hasContent: true # hasContent: Em.computed.notEmpty('bodyPart.value') hasNoContent: Em....
c4996a5c30481d5bf368a17ac3b4942fd51782ef
spec/prompt-view-list-spec.js
spec/prompt-view-list-spec.js
'use babel' import PromptViewList from '../lib/prompt-view-list'; describe('PromptViewList', () => { describe('when setSelectedItem is called', () => { it('changes the selected item', () => { const list = new PromptViewList() list.initialize() list.open(['1', '2', '3']) list.setSelectedI...
'use babel' import PromptViewList from '../lib/prompt-view-list'; describe('PromptViewList', () => { describe('.setSelectedItem', () => { it('changes the selected item', () => { const list = new PromptViewList() list.initialize() list.open(['1', '2', '3']) list.setSelectedItem('1') ...
Fix the names of the test cases
Fix the names of the test cases ref #37
JavaScript
mit
HiroakiMikami/atom-user-support-helper
javascript
## Code Before: 'use babel' import PromptViewList from '../lib/prompt-view-list'; describe('PromptViewList', () => { describe('when setSelectedItem is called', () => { it('changes the selected item', () => { const list = new PromptViewList() list.initialize() list.open(['1', '2', '3']) l...
94a55dfc68fcd2352f867b01fc703a202c87f453
troposphere/events.py
troposphere/events.py
from . import AWSObject, AWSProperty class Target(AWSProperty): props = { 'Arn': (basestring, True), 'Id': (basestring, True), 'Input': (basestring, False), 'InputPath': (basestring, False) } class Rule(AWSObject): resource_type = "AWS::Events::Rule" props = { ...
from . import AWSObject, AWSProperty class Target(AWSProperty): props = { 'Arn': (basestring, True), 'Id': (basestring, True), 'Input': (basestring, False), 'InputPath': (basestring, False), 'RoleArn': (basestring, False), } class Rule(AWSObject): resource_type =...
Remove RoleArn from Events::Rule and add to Target property
Remove RoleArn from Events::Rule and add to Target property
Python
bsd-2-clause
pas256/troposphere,pas256/troposphere,ikben/troposphere,7digital/troposphere,ikben/troposphere,cloudtools/troposphere,7digital/troposphere,johnctitus/troposphere,johnctitus/troposphere,cloudtools/troposphere
python
## Code Before: from . import AWSObject, AWSProperty class Target(AWSProperty): props = { 'Arn': (basestring, True), 'Id': (basestring, True), 'Input': (basestring, False), 'InputPath': (basestring, False) } class Rule(AWSObject): resource_type = "AWS::Events::Rule" ...
e04a3f0eceb6edb9a386be0886f1d8cfbe988624
BHCDatabase/app/views/areas/show.html.erb
BHCDatabase/app/views/areas/show.html.erb
<% provide(:title, @area.name) %> <h1> <%= @area.name %> </h1> <h2> <%= @area.description %> </h2>
<% provide(:title, @area.name) %> <div id="area"> <h1> <%= @area.name %> </h1> <div class="stdcontainer"> <h3> <%= @area.description %> </h3> </div> </div>
Modify individual area pages to follow website scheme.
Modify individual area pages to follow website scheme.
HTML+ERB
mit
DaBrown95/BHCDatabase,DaBrown95/BHCDatabase,DaBrown95/BHCDatabase
html+erb
## Code Before: <% provide(:title, @area.name) %> <h1> <%= @area.name %> </h1> <h2> <%= @area.description %> </h2> ## Instruction: Modify individual area pages to follow website scheme. ## Code After: <% provide(:title, @area.name) %> <div id="area"> <h1> <%= @area.name %> </h1> <div class="stdcontainer"...
ccc98ced56ee8dda02332720c7146e1548a3b53c
project/project/urls.py
project/project/urls.py
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url(r'^accounts/logout/$', 'allauth.account.views.logout', name='account_logout'), url('^accounts/social/', include(...
from django.conf.urls import include, url from django.conf import settings from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url(r'^accounts/login/$', RedirectV...
Set up redirect to login view
Set up redirect to login view
Python
mit
jonsimington/app,compsci-hfh/app,compsci-hfh/app,jonsimington/app
python
## Code Before: from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url(r'^accounts/logout/$', 'allauth.account.views.logout', name='account_logout'), url('^accounts/so...
c752beac210bd6a74581511096f83fecca710252
julia/wordcount.jl
julia/wordcount.jl
counts = (String => Uint64)[] for line in eachline(STDIN) for word in matchall(r"[a-z\']+", lowercase(line)) counts[word] = get(counts, word, 0) + 1 end end for (word, count) in sort(collect(counts)) println("$word $count") end
counts = Dict{String, Uint64}() for line in eachline(STDIN) for word in matchall(r"[a-z\']+", lowercase(line)) counts[word] = get(counts, word, 0) + 1 end end for (word, count) in sort(collect(counts)) println("$word $count") end
Use the more modern Julia dictionary constructor
Use the more modern Julia dictionary constructor
Julia
mit
rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal...
julia
## Code Before: counts = (String => Uint64)[] for line in eachline(STDIN) for word in matchall(r"[a-z\']+", lowercase(line)) counts[word] = get(counts, word, 0) + 1 end end for (word, count) in sort(collect(counts)) println("$word $count") end ## Instruction: Use the more modern Julia dictionary constructor...
d9c677a35d18a878ef8d253a9453e93da3341e96
runTwircBot.py
runTwircBot.py
from src.TwircBot import TwircBot import sys try: bot = TwircBot(sys.argv[1]) except IndexError: bot = TwircBot() bot.print_config() bot.start()
from src.TwircBot import TwircBot from src.CommandModule import CommandModule import sys try: bot = TwircBot(sys.argv[1]) except IndexError: bot = TwircBot() module = CommandModule() bot.print_config() # bot.start()
Add extremely basic template for command modules
Add extremely basic template for command modules
Python
mit
johnmarcampbell/twircBot
python
## Code Before: from src.TwircBot import TwircBot import sys try: bot = TwircBot(sys.argv[1]) except IndexError: bot = TwircBot() bot.print_config() bot.start() ## Instruction: Add extremely basic template for command modules ## Code After: from src.TwircBot import TwircBot from src.CommandModule import C...
39a235fbd619b4d24346f0b7889d4dfa489b1cbb
app/view/twig/editcontent/_aside-save.twig
app/view/twig/editcontent/_aside-save.twig
<div class="btn-group"> <button type="button" class="btn btn-primary" id="sidebar_save"> <i class="fa fa-flag"></i> {{ __('contenttypes.generic.save', {'%contenttype%': context.contenttype.singular_name}) }} </button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdo...
<div class="btn-group"> <button type="button" class="btn btn-primary" id="sidebar_save"> <i class="fa fa-flag"></i> {{ __('contenttypes.generic.save', {'%contenttype%': context.contenttype.singular_name}) }} </button> {% if not context.contenttype.singleton %} <button type="button" class="btn b...
Remove dropdown options for singleton
Remove dropdown options for singleton
Twig
mit
nikgo/bolt,nikgo/bolt,GawainLynch/bolt,romulo1984/bolt,GawainLynch/bolt,bolt/bolt,romulo1984/bolt,bolt/bolt,GawainLynch/bolt,bolt/bolt,nikgo/bolt,romulo1984/bolt,nikgo/bolt,bolt/bolt,GawainLynch/bolt,romulo1984/bolt
twig
## Code Before: <div class="btn-group"> <button type="button" class="btn btn-primary" id="sidebar_save"> <i class="fa fa-flag"></i> {{ __('contenttypes.generic.save', {'%contenttype%': context.contenttype.singular_name}) }} </button> <button type="button" class="btn btn-primary dropdown-toggle" dat...
b1a7ce456c65b5086804065f30920e661dbd82e2
S06-signature/unpack-array.t
S06-signature/unpack-array.t
use v6; use Test; plan 3; # L<S06/Unpacking array parameters> sub foo($x, [$y, *@z]) { return "$x|$y|" ~ @z.join(';'); } my @a = 2, 3, 4, 5; is foo(1, @a), '2|3|4;5', 'array unpacking'; sub bar([$x, $y, $z]) { return [*] $x, $y, $z; } ok bar(@a[0..2]) == 24, 'fixed length array unpacking'; dies_ok { bar [...
use v6; use Test; plan 3; # L<S06/Unpacking array parameters> sub foo($x, [$y, *@z]) { return "$x|$y|" ~ @z.join(';'); } my @a = 2, 3, 4, 5; is foo(1, @a), '1|2|3;4;5', 'array unpacking'; sub bar([$x, $y, $z]) { return $x * $y * $z; } ok bar(@a[0..2]) == 24, 'fixed length array unpacking'; dies_ok { bar [...
Correct mistake in array unpacking test, and make it work without reduction operator.
[t/spec] Correct mistake in array unpacking test, and make it work without reduction operator. git-svn-id: 53605643c415f7495558be95614cf14171f1db78@29753 c213334d-75ef-0310-aa23-eaa082d1ae64
Perl
artistic-2.0
perl6/roast,b2gills/roast,bitrauser/roast,dankogai/roast,bitrauser/roast,zostay/roast,skids/roast,zostay/roast,laben/roast,cygx/roast,b2gills/roast,dogbert17/roast,dankogai/roast,dankogai/roast,cygx/roast,skids/roast,zostay/roast,b2gills/roast,skids/roast,niner/roast,laben/roast,niner/roast,dogbert17/roast,niner/roast,...
perl
## Code Before: use v6; use Test; plan 3; # L<S06/Unpacking array parameters> sub foo($x, [$y, *@z]) { return "$x|$y|" ~ @z.join(';'); } my @a = 2, 3, 4, 5; is foo(1, @a), '2|3|4;5', 'array unpacking'; sub bar([$x, $y, $z]) { return [*] $x, $y, $z; } ok bar(@a[0..2]) == 24, 'fixed length array unpacking';...
7e9075f11fd8797ba47cc31e73399e62a61a6b41
circle.yml
circle.yml
machine: node: version: 4.3.0 test: override: - exit 0 deployment: dev: branch: develop commands: - npm run deploy-dev prod: tag: /v[0-9]+(\.[0-9]+)*/ commands: - npm run deploy-prod
machine: node: version: 8.10.0 dependencies: post: - npm run lint test: override: - exit 0 deployment: dev: branch: develop commands: - npm run deploy-dev prod: tag: /v[0-9]+(\.[0-9]+)*/ commands: - npm run deploy-prod
Update Node version in CircleCI
Update Node version in CircleCI
YAML
mit
zeplin/zeplin-html-to-pdf
yaml
## Code Before: machine: node: version: 4.3.0 test: override: - exit 0 deployment: dev: branch: develop commands: - npm run deploy-dev prod: tag: /v[0-9]+(\.[0-9]+)*/ commands: - npm run deploy-prod ## Instruction: Update Node version in CircleCI ## Code After: machine: n...
b2ed227612f343630682665419731117065eafaa
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
class RegistrationsController < Devise::RegistrationsController def new # Building the resource with information that MAY BE available from omniauth! build_resource(:first_name => session[:omniauth] && session[:omniauth]['user_info'] && session[:omniauth]['user_info']['first_name'], :last_name => s...
class RegistrationsController < Devise::RegistrationsController def new # Building the resource with information that MAY BE available from omniauth! build_resource(:first_name => session[:omniauth] && session[:omniauth]['user_info'] && session[:omniauth]['user_info']['first_name'], :last_name => s...
Remove a no longer valid reference
Remove a no longer valid reference
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: class RegistrationsController < Devise::RegistrationsController def new # Building the resource with information that MAY BE available from omniauth! build_resource(:first_name => session[:omniauth] && session[:omniauth]['user_info'] && session[:omniauth]['user_info']['first_name'], ...
696082e98fd5a7efeb1ac6f8405071d0caad4ac8
ENG/README.md
ENG/README.md
core course * seminarist: Alina ## Materials * [NEF Student's book Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) * [NEF WorkBook Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) ## Homework * WB ex. 1 p. 4 (2015-08-26) * SB ex. 1A.c p. 136 (2015...
core course * seminarist: Alina ## Materials * [NEF Student's book Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) * [NEF WorkBook Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) ## Homework * WB ex. 1 p. 4 (2015-08-26) * SB ex. 1A.c p. 136 (2015...
Add ENG homework task (2015-09-07)
Add ENG homework task (2015-09-07)
Markdown
mit
abcdw/inno,abcdw/inno
markdown
## Code Before: core course * seminarist: Alina ## Materials * [NEF Student's book Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) * [NEF WorkBook Advanced](https://elt.oup.com/student/englishfile/advanced/?cc=ru&selLanguage=ru) ## Homework * WB ex. 1 p. 4 (2015-08-26) * SB ex. 1...
7d06f50c3c4f1d4428a084bb0056f68e1450da73
Spycodes/Utilities/SCUnderlineTextField.swift
Spycodes/Utilities/SCUnderlineTextField.swift
import UIKit class SCUnderlineTextField: SCTextField { required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.font = SCFonts.largeSizeFont(SCFonts.FontType.Regular) } override func layoutSubviews() { super.layoutSubviews() let bottomBorder = CALayer() ...
import UIKit class SCUnderlineTextField: SCTextField { required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.font = SCFonts.largeSizeFont(SCFonts.FontType.Regular) } override func layoutSubviews() { super.layoutSubviews() let bottomBorder = CALayer() ...
Improve code readability in utilities
Improve code readability in utilities
Swift
mit
davidozhang/spycodes,davidozhang/spycodes,davidozhang/spycodes
swift
## Code Before: import UIKit class SCUnderlineTextField: SCTextField { required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.font = SCFonts.largeSizeFont(SCFonts.FontType.Regular) } override func layoutSubviews() { super.layoutSubviews() let bottomBord...
399d87354afe1a94d34741e9d163d62a2cda7e2d
app/controllers/peoplefinder/information_requests_controller.rb
app/controllers/peoplefinder/information_requests_controller.rb
module Peoplefinder class InformationRequestsController < ApplicationController before_action :set_recipient def new @information_request = InformationRequest.new( recipient: @person, message: I18n.t('peoplefinder.controllers.information_requests.default_message', recipient: @...
module Peoplefinder class InformationRequestsController < ApplicationController before_action :set_recipient def new @information_request = InformationRequest.new( recipient: @person, message: I18n.t( 'peoplefinder.controllers.information_requests.default_message', r...
Fix line length for rubocop
Fix line length for rubocop
Ruby
mit
MjAbuz/peoplefinder,ministryofjustice/peoplefinder,MjAbuz/peoplefinder,ministryofjustice/peoplefinder,MjAbuz/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,MjAbuz/peoplefinder
ruby
## Code Before: module Peoplefinder class InformationRequestsController < ApplicationController before_action :set_recipient def new @information_request = InformationRequest.new( recipient: @person, message: I18n.t('peoplefinder.controllers.information_requests.default_message', ...
b524e1540319444f511c9acff9968a77cbb41535
features/app/blueprints.rb
features/app/blueprints.rb
require 'machinist' Sham.spoon_name { |i| "Spoon #{i}" } Spoon.blueprint do name { Sham.spoon_name } end
require 'machinist/active_record' Sham.spoon_name { |i| "Spoon #{i}" } Spoon.blueprint do name { Sham.spoon_name } end # reset shams between scenarios Before { Sham.reset }
Update machinist in pickle cucumber tests for latest machinist
Update machinist in pickle cucumber tests for latest machinist
Ruby
mit
venuenext/pickle,venuenext/pickle,ianwhite/pickle,ianwhite/pickle
ruby
## Code Before: require 'machinist' Sham.spoon_name { |i| "Spoon #{i}" } Spoon.blueprint do name { Sham.spoon_name } end ## Instruction: Update machinist in pickle cucumber tests for latest machinist ## Code After: require 'machinist/active_record' Sham.spoon_name { |i| "Spoon #{i}" } Spoon.blueprint do name ...
b25df85d62cb20d3c5d9e225ca720adc1bdb8ffd
uninstall.sh
uninstall.sh
INNFARM_HOME=/opt/inn-farm/ SERVICE_HOME=${INNFARM_HOME}/ltepi/ function assert_root { if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi } function uninstall { rm -f /etc/network/interfaces install -o root -g root -D -m 644 /etc/network/interfaces.bak /etc/network/interfa...
INNFARM_HOME=/opt/inn-farm/ SERVICE_HOME=${INNFARM_HOME}/ltepi/ function assert_root { if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi } function uninstall { rm -f /etc/network/interfaces.d/ltepi.conf for p in $(ls /usr/bin/ltepi*); do rm -f ${p} done cd ${SER...
Modify the paths to be removed
Modify the paths to be removed
Shell
bsd-3-clause
Robotma-com/ltepi-service,Robotma-com/ltepi-service
shell
## Code Before: INNFARM_HOME=/opt/inn-farm/ SERVICE_HOME=${INNFARM_HOME}/ltepi/ function assert_root { if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi } function uninstall { rm -f /etc/network/interfaces install -o root -g root -D -m 644 /etc/network/interfaces.bak /etc...
a7de8c393f184e3e1ca9fdecc092f7829a09fcc6
data/hostname/worker01.softwareheritage.org.yaml
data/hostname/worker01.softwareheritage.org.yaml
networks: private: interface: eth1 address: 192.168.100.21 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: eth0 address: 128.93.193.21 netmask: 255.255.255.0 gateway: 128.93.193.254
networks: private: interface: eth1 address: 192.168.100.21 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: eth0 address: 128.93.193.21 netmask: 255.255.255.0 gateway: 128.93.193.254 # temporary for testing swh-loader-dir before going live swh::deploy::storage::db::...
Add temporary data setup for storage on worker01
Add temporary data setup for storage on worker01 Context: test swh-loader-dir before going live
YAML
apache-2.0
SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site
yaml
## Code Before: networks: private: interface: eth1 address: 192.168.100.21 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: eth0 address: 128.93.193.21 netmask: 255.255.255.0 gateway: 128.93.193.254 ## Instruction: Add temporary data setup for storage on worker01 C...
6eaf6cc7a7c84021131771d9307cb98c70656fb5
CHANGELOG.md
CHANGELOG.md
* Fixed "locked condition" broadcast sequencing * Fixed "Fetch Shared" to work even if the pseudo-branch has not yet been created in the remote repository ## 1.3.1 - Bug fixes * State management when pseudo-branch does not exist on remote ## 1.3.0 - Casefile sharing * Share casefiles through the Git repository * Be...
* Relativize bookmark paths before sharing * Fix line numbers represented as strings in bookmark location computation ## 1.3.2 - Bug fixes * Fixed "locked condition" broadcast sequencing * Fixed "Fetch Shared" to work even if the pseudo-branch has not yet been created in the remote repository ## 1.3.1 - Bug fixes *...
Update changelog for 1.3.3 release
Update changelog for 1.3.3 release
Markdown
mit
rtweeks/casefile
markdown
## Code Before: * Fixed "locked condition" broadcast sequencing * Fixed "Fetch Shared" to work even if the pseudo-branch has not yet been created in the remote repository ## 1.3.1 - Bug fixes * State management when pseudo-branch does not exist on remote ## 1.3.0 - Casefile sharing * Share casefiles through the Git...
02ae1b69ffb343445e00b01aa29b7e0aa883d923
h2o-web/src/main/steam/templates/dropdown-model-parameter.jade
h2o-web/src/main/steam/templates/dropdown-model-parameter.jade
tr.y-model-parameter(data-bind="css:{'y-invalid':isInvalid}") td.y-shrink label(data-bind='text:label') td.y-shrink select(data-bind='options:values, value:value') td.y-expand span.y-description(data-bind='text:description')
tr.y-model-parameter(data-bind="css:{'y-invalid':isInvalid}") td.y-shrink label(data-bind='text:label') td.y-shrink select(data-bind="options:values, value:value, optionsCaption: '(None)'") td.y-expand span.y-description(data-bind='text:description')
Add caption to optional dropdowns
Add caption to optional dropdowns
Jade
apache-2.0
h2oai/h2o-3,spennihana/h2o-3,pchmieli/h2o-3,bospetersen/h2o-3,kyoren/https-github.com-h2oai-h2o-3,jangorecki/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,nilbody/h2o-3,nilbody/h2o-flow,h2oai/h2o-dev,datachand/h2o-3,mrgloom/h2o-3,datachand/h2o-3,printedheart/h2o-3,spennihana/h2o-3,madmax983/h2o-3,jangorecki/h2o-3,brightchen/h2o-...
jade
## Code Before: tr.y-model-parameter(data-bind="css:{'y-invalid':isInvalid}") td.y-shrink label(data-bind='text:label') td.y-shrink select(data-bind='options:values, value:value') td.y-expand span.y-description(data-bind='text:description') ## Instruction: Add caption to optional dropdown...
4031aab3317a8932334b8c036517b2330701f06b
addon/-private/closure-action.js
addon/-private/closure-action.js
import Ember from 'ember'; const ClosureActionModule = Ember.__loader.require('ember-routing-htmlbars/keywords/closure-action'); export default ClosureActionModule.ACTION;
import Ember from 'ember'; let ClosureActionModule; if ('ember-htmlbars/keywords/closure-action' in Ember.__loader.registry) { ClosureActionModule = Ember.__loader.require('ember-htmlbars/keywords/closure-action'); } else { ClosureActionModule = Ember.__loader.require('ember-routing-htmlbars/keywords/closure-acti...
Fix loading ACTION symbol on canary
Fix loading ACTION symbol on canary
JavaScript
mit
DockYard/ember-functional-helpers,DockYard/ember-functional-helpers
javascript
## Code Before: import Ember from 'ember'; const ClosureActionModule = Ember.__loader.require('ember-routing-htmlbars/keywords/closure-action'); export default ClosureActionModule.ACTION; ## Instruction: Fix loading ACTION symbol on canary ## Code After: import Ember from 'ember'; let ClosureActionModule; if ('em...
761789b490deb29e0cdbf46ec15d2cdaf97959e0
README.md
README.md
vim_setup ========= Scripts to set up my vim environment on any machine. Right now it installs the following scripts and plugins: * [Most Recently Used](https://github.com/yegappan/mru) * [taglist.vim](https://github.com/vim-scripts/taglist.vim) * [pathogen.vim](https://github.com/tpope/vim-pathogen) * [SnipMate](htt...
vim_setup ========= Scripts to set up my vim environment on any machine. Right now it installs the following scripts and plugins: * [Most Recently Used](https://github.com/yegappan/mru) * [taglist.vim](https://github.com/vim-scripts/taglist.vim) * [pathogen.vim](https://github.com/tpope/vim-pathogen) * [SnipMate](htt...
Document changed behavior of <Space>t
Document changed behavior of <Space>t
Markdown
mit
moee/vim_setup
markdown
## Code Before: vim_setup ========= Scripts to set up my vim environment on any machine. Right now it installs the following scripts and plugins: * [Most Recently Used](https://github.com/yegappan/mru) * [taglist.vim](https://github.com/vim-scripts/taglist.vim) * [pathogen.vim](https://github.com/tpope/vim-pathogen) ...
1bf3f30430e07bc4093321971a041ce3c4abed63
.travis.yml
.travis.yml
language: ruby before_install: - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v '< 2' install: "bundle install --jobs 8" rvm: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 gemfile: - gemfiles/rails42.gemfile - gemfiles/rails50.gemfile - gemfiles/rails51.gemfile - gemf...
language: ruby before_install: - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v '< 2' install: "bundle install --jobs 8" rvm: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 gemfile: - gemfiles/rails42.gemfile - gemfiles/rails50.gemfile - gemfiles/rails51.gemfile - gemf...
Exclude ruby 2.4 & rails 6
Exclude ruby 2.4 & rails 6
YAML
mit
itmammoth/rails_sortable,itmammoth/rails_sortable,itmammoth/rails_sortable
yaml
## Code Before: language: ruby before_install: - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v '< 2' install: "bundle install --jobs 8" rvm: - 2.4.9 - 2.5.7 - 2.6.5 - 2.7.0 gemfile: - gemfiles/rails42.gemfile - gemfiles/rails50.gemfile - gemfiles/rails51....
71992fbaf93f0aa50e6244a571ea723aa8476382
packages/hs/hslua-module-text.yaml
packages/hs/hslua-module-text.yaml
homepage: https://github.com/hslua/hslua-text-module changelog-type: markdown hash: a81cee216643fe4a59133fba3288c96997ec2ee91ffb1cdd94ae6c2bc45e5369 test-bench-deps: base: -any text: -any hslua-module-text: -any tasty-hunit: -any tasty: -any hslua: -any maintainer: albert+hslua@zeitkraut.de synopsis: Lua mo...
homepage: https://github.com/hslua/hslua-module-test changelog-type: markdown hash: 53fdb4bb0868fabef7a8dfb4ab08c554f7dffd980196c282afc0f32a4937fbf7 test-bench-deps: base: -any text: -any hslua-module-text: -any tasty-hunit: -any tasty: -any hslua: -any maintainer: albert+hslua@zeitkraut.de synopsis: Lua mo...
Update from Hackage at 2017-11-16T21:37:49Z
Update from Hackage at 2017-11-16T21:37:49Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/hslua/hslua-text-module changelog-type: markdown hash: a81cee216643fe4a59133fba3288c96997ec2ee91ffb1cdd94ae6c2bc45e5369 test-bench-deps: base: -any text: -any hslua-module-text: -any tasty-hunit: -any tasty: -any hslua: -any maintainer: albert+hslua@zeitkraut.de ...
4968c45dfee0c99616bc93230e63ca1efa53b9b6
neovim/config/vim-airline/vim-airline-themes.vim
neovim/config/vim-airline/vim-airline-themes.vim
" " Airline Themes " " Set the theme to use let g:airline_theme='solarized'
" " Airline Themes " https://github.com/vim-airline/vim-airline " " Set the theme to use let g:airline_theme='solarized' let g:airline_solarized_bg='dark'
Set dark background for solarized theme
Set dark background for solarized theme
VimL
mit
chauncey-garrett/dotfiles,chauncey-garrett/dotfiles,chauncey-garrett/dotfiles,chauncey-garrett/dotfiles,chauncey-garrett/dotfiles
viml
## Code Before: " " Airline Themes " " Set the theme to use let g:airline_theme='solarized' ## Instruction: Set dark background for solarized theme ## Code After: " " Airline Themes " https://github.com/vim-airline/vim-airline " " Set the theme to use let g:airline_theme='solarized' let g:airline_solarized_bg='d...
5b12b9b42961c4686a06bc636221b16d2d3ed033
src/main/java/me/semx11/autotip/api/reply/TipReply.java
src/main/java/me/semx11/autotip/api/reply/TipReply.java
package me.semx11.autotip.api.reply; import java.util.Collections; import java.util.List; import me.semx11.autotip.api.util.RequestType; public class TipReply extends AbstractReply { private List<Tip> tips; public TipReply() { } public TipReply(boolean success) { super(success); } ...
package me.semx11.autotip.api.reply; import java.util.Collections; import java.util.List; import java.util.Objects; import me.semx11.autotip.api.util.RequestType; public class TipReply extends AbstractReply { private List<Tip> tips; public TipReply() { } public TipReply(boolean success) { s...
Bump 2.1.0.3 beta release - ha
Bump 2.1.0.3 beta release - ha
Java
mit
Semx11/Autotip
java
## Code Before: package me.semx11.autotip.api.reply; import java.util.Collections; import java.util.List; import me.semx11.autotip.api.util.RequestType; public class TipReply extends AbstractReply { private List<Tip> tips; public TipReply() { } public TipReply(boolean success) { super(succe...
088b8db10664ecba24443d39413e95fe8a80e01d
config/settings/analytics.js
config/settings/analytics.js
// web analytics configuration module.exports = { //ANALYTICS SETTINGS google: { enabled: true, key: 'UA-48605964-17' }, piwik: { enabled: false, host: '', key: '' }, dap: { enabled: true, source: 'https://analytics.usa.gov/dap/dap.min.js' } };
// web analytics configuration module.exports = { //ANALYTICS SETTINGS google: { enabled: true, key: 'UA-48605964-17' }, piwik: { enabled: false, host: '', key: '' }, dap: { enabled: true, source: 'https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=GSA' } }...
Update to new DAP location
Update to new DAP location
JavaScript
cc0-1.0
18F/open-opportunities-theme,18F/midas-open-opportunities,18F/open-opportunities-theme,18F/midas-open-opportunities
javascript
## Code Before: // web analytics configuration module.exports = { //ANALYTICS SETTINGS google: { enabled: true, key: 'UA-48605964-17' }, piwik: { enabled: false, host: '', key: '' }, dap: { enabled: true, source: 'https://analytics.usa.gov/dap/dap.min.js' } }; ## Instruction:...
9b236358d44aece4c04b07d76aa01a262da4b5c7
npm2nix.coffee
npm2nix.coffee
http = require 'http' util = require 'util' crypto = require 'crypto' name = process.argv[2] version = process.argv[3] ? "latest" deps = [] hash = crypto.createHash 'sha256' http.get "http://registry.npmjs.org/#{name}", (res) -> res.setEncoding() val = "" res.on 'data', (chunk) -> val += chunk res.on '...
http = require 'http' util = require 'util' crypto = require 'crypto' name = process.argv[2] version = process.argv[3] ? "latest" deps = [] hash = crypto.createHash 'sha256' http.get "http://registry.npmjs.org/#{name}", (res) -> res.setEncoding() val = "" res.on 'data', (chunk) -> val += chunk res.on '...
Put versions in to generated attribute names, indent generated code
Put versions in to generated attribute names, indent generated code
CoffeeScript
mit
bobvanderlinden/npm2nix,NixOS/npm2nix
coffeescript
## Code Before: http = require 'http' util = require 'util' crypto = require 'crypto' name = process.argv[2] version = process.argv[3] ? "latest" deps = [] hash = crypto.createHash 'sha256' http.get "http://registry.npmjs.org/#{name}", (res) -> res.setEncoding() val = "" res.on 'data', (chunk) -> val += ...
b3515e913f546dd6a2ed704b3940ff4677351083
circle.yml
circle.yml
machine: services: - docker dependencies: post: - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 . test: post: - docker run -d -p 8080:8080 --name tubackend $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 - sleep 10 - curl --retr...
machine: services: - docker dependencies: post: - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 . test: post: - docker run -d -p 8080:8080 --name tubackend $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 - sleep 10 - curl --retr...
Set permissions for deploy file
Set permissions for deploy file
YAML
mit
kragej/tubackend,kragej/tubackend
yaml
## Code Before: machine: services: - docker dependencies: post: - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 . test: post: - docker run -d -p 8080:8080 --name tubackend $AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/tyrantrep:$CIRCLE_SHA1 - sleep 10 ...
94610608117e5e7804a08864210ee0798dec9353
app/views/devise/sessions/new.html.haml
app/views/devise/sessions/new.html.haml
.row .col-md-4 .col-md-4 .panel.panel-primary .panel-heading.text-center %h2.panel-title Sign in .panel-body = form_for resource, as: resource_name, url: session_path(resource_name), class: 'input-group input-group-lg' do |f| = f.text_field :login, placeholder: 'Login', aut...
.row .col-md-4 .col-md-4 .panel.panel-primary .panel-heading.text-center %h2.panel-title Sign in .panel-body = form_for resource, as: resource_name, url: session_path(resource_name), class: 'input-group input-group-lg' do |f| = f.text_field :login, placeholder: 'Login', req...
Add required field setting to sign in view form
Add required field setting to sign in view form
Haml
mit
rafalchmiel/issuet,tiimgreen/issuet,tiimgreen/issuet,rafalchmiel/issuet
haml
## Code Before: .row .col-md-4 .col-md-4 .panel.panel-primary .panel-heading.text-center %h2.panel-title Sign in .panel-body = form_for resource, as: resource_name, url: session_path(resource_name), class: 'input-group input-group-lg' do |f| = f.text_field :login, placehold...
f0a5a23b206f69eb586a1b28b5e1ad2111b33778
composer.json
composer.json
{ "name": "joshpinkney/tv-maze-php-api", "description": "TVMaze-API-Wrapper", "authors": [ { "name": "Josh Pinkney", "email": "Joshpinkney@gmail.com" } ], "require": { "joshpinkney/tv-maze-php-api" : "dev-master" }, "require-dev": { "...
{ "name": "joshpinkney/tv-maze-php-api", "type": "library", "license": "MIT", "description": "TVMaze-API-Wrapper", "authors": [ { "name": "Josh Pinkney", "email": "Joshpinkney@gmail.com" } ], "minimum-stability": "dev", "autoload": { "psr-0...
Remove unnecessary requires and add type and license sections.
Remove unnecessary requires and add type and license sections.
JSON
mit
JPinkney/TVMaze-PHP-API-Wrapper
json
## Code Before: { "name": "joshpinkney/tv-maze-php-api", "description": "TVMaze-API-Wrapper", "authors": [ { "name": "Josh Pinkney", "email": "Joshpinkney@gmail.com" } ], "require": { "joshpinkney/tv-maze-php-api" : "dev-master" }, "require-de...
44555c339da67e894673ad44fe589c91ae87d21b
src/Html/Form/Field.php
src/Html/Form/Field.php
<?php namespace Orchestra\Html\Form; use Illuminate\Support\Fluent; class Field extends Fluent { /** * Get value of column. * * @param mixed $row * @param mixed $control * @param array $attributes * @return string */ public function getField($row, $control, array $a...
<?php namespace Orchestra\Html\Form; use Illuminate\Support\Contracts\RenderableInterface; use Illuminate\Support\Fluent; class Field extends Fluent { /** * Get value of column. * * @param mixed $row * @param mixed $control * @param array $attributes * @return string */...
Allow field to automatically resolve renderable instance.
Allow field to automatically resolve renderable instance. Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
PHP
mit
stevebauman/html,orchestral/html
php
## Code Before: <?php namespace Orchestra\Html\Form; use Illuminate\Support\Fluent; class Field extends Fluent { /** * Get value of column. * * @param mixed $row * @param mixed $control * @param array $attributes * @return string */ public function getField($row, $c...
c0f4c4fc822a7faa8a4aadae82d3b1033f495756
.devcontainer/prepare.sh
.devcontainer/prepare.sh
yarn install yarn electron
yarn install yarn electron cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." sudo chown root .build/electron/chrome-sandbox sudo chmod 4755 .build/electron/chrome-sandbox
Update permissions of the chrom-sandbox
Update permissions of the chrom-sandbox
Shell
mit
eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscod...
shell
## Code Before: yarn install yarn electron ## Instruction: Update permissions of the chrom-sandbox ## Code After: yarn install yarn electron cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." sudo chown root .build/electron/chrome-sandbox sudo chmod 4755 .build/electron/chrome-sandbox
7c7e15adad6067977a4a2e1d3431953ffa691b50
executable/ParallelMain.hs
executable/ParallelMain.hs
{-# LANGUAGE ForeignFunctionInterface #-} import System.IO import Control.Concurrent.Async hiding (link) import System.Posix import System.Environment import qualified SequentialMain import Control.Monad foreign import ccall "link_to_parent" link :: CPid -> IO () raceMany :: [IO a] -> IO a raceMany [x] = x raceMany (...
{-# LANGUAGE ForeignFunctionInterface #-} import System.IO import Control.Concurrent.Async hiding (link) import System.Posix import System.Environment import qualified SequentialMain import Control.Monad foreign import ccall "link_to_parent" link :: CPid -> IO () raceMany :: [IO a] -> IO a raceMany [x] = x raceMany (...
Fix race in parallel twee.
Fix race in parallel twee.
Haskell
bsd-3-clause
nick8325/kbc,nick8325/twee,nick8325/twee,nick8325/twee
haskell
## Code Before: {-# LANGUAGE ForeignFunctionInterface #-} import System.IO import Control.Concurrent.Async hiding (link) import System.Posix import System.Environment import qualified SequentialMain import Control.Monad foreign import ccall "link_to_parent" link :: CPid -> IO () raceMany :: [IO a] -> IO a raceMany [x...
5cb0599afb40e1b93f8d0efa1d28e194330b2145
phpunit.xml
phpunit.xml
<?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processI...
<phpunit bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="true"> <testsuites> <testsuite name="D3 Catalyst...
Update file to unit testing
Update file to unit testing
XML
mit
D3Catalyst/laravel-4-exchange-rate-ggl
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" ...
293ef3e0c6e4754a1cab9e97ee1a807035ab3de4
Formula/s3-backer.rb
Formula/s3-backer.rb
require 'formula' class S3Backer < Formula url 'http://s3backer.googlecode.com/files/s3backer-1.3.2.tar.gz' homepage 'http://code.google.com/p/s3backer/' sha1 'badc003ffb0830a3fa59c9f39f13ad94729cbcf1' depends_on 'pkg-config' => :build def install system "./configure", "--prefix=#{prefix}" system "...
require 'formula' class S3Backer < Formula url 'http://s3backer.googlecode.com/files/s3backer-1.3.2.tar.gz' homepage 'http://code.google.com/p/s3backer/' sha1 'badc003ffb0830a3fa59c9f39f13ad94729cbcf1' depends_on 'pkg-config' => :build depends_on 'fuse4x' def install inreplace "configure", "-lfuse", ...
Use fuse4x as a default FUSE provider
s3backer: Use fuse4x as a default FUSE provider Closes Homebrew/homebrew#6079. Closes Homebrew/homebrew#7712. Signed-off-by: Charlie Sharpsteen <828d338a9b04221c9cbe286f50cd389f68de4ecf@sharpsteen.net>
Ruby
bsd-2-clause
ShivaHuang/homebrew-core,adamliter/homebrew-core,j-bennet/homebrew-core,battlemidget/homebrew-core,jdubois/homebrew-core,robohack/homebrew-core,battlemidget/homebrew-core,zyedidia/homebrew-core,mvbattista/homebrew-core,JCount/homebrew-core,Homebrew/homebrew-core,ylluminarious/homebrew-core,lasote/homebrew-core,wolffaxn...
ruby
## Code Before: require 'formula' class S3Backer < Formula url 'http://s3backer.googlecode.com/files/s3backer-1.3.2.tar.gz' homepage 'http://code.google.com/p/s3backer/' sha1 'badc003ffb0830a3fa59c9f39f13ad94729cbcf1' depends_on 'pkg-config' => :build def install system "./configure", "--prefix=#{prefi...
a393357f8080e106c1a9419a7ae0c1f17603ddc5
conf/deploy.json
conf/deploy.json
{ "defaultStacks":[ "ophan", "content-api" ], "packages":{ "status-app":{ "type":"autoscaling" } }, "recipes":{ "default":{ "actionsBeforeApp": ["status-app.uploadArtifacts", "status-app.deploy"] }, "deployOnly": { ...
{ "defaultStacks":[ "ophan", "content-api", "mobile" ], "packages":{ "status-app":{ "type":"autoscaling" } }, "recipes":{ "default":{ "actionsBeforeApp": ["status-app.uploadArtifacts", "status-app.deploy"] }, "de...
Add the mobile stack to the defaults
Add the mobile stack to the defaults
JSON
apache-2.0
guardian/status-app
json
## Code Before: { "defaultStacks":[ "ophan", "content-api" ], "packages":{ "status-app":{ "type":"autoscaling" } }, "recipes":{ "default":{ "actionsBeforeApp": ["status-app.uploadArtifacts", "status-app.deploy"] }, "depl...
c45241807ee6998dc5e02d85023f31f518b4b8d0
components/logged_in_navigation/components/channel_create/view.coffee
components/logged_in_navigation/components/channel_create/view.coffee
Promise = require 'bluebird-q' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class ChannelCreateView extends Backbone.View events: 'mouseover': 'focus' 'input .js-title': 'title' 'click .js-status': 'status' 'click .js-create': 'create' initializ...
Promise = require 'bluebird-q' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class ChannelCreateView extends Backbone.View events: 'mouseover': 'focus' 'keyup .js-title': 'onKeyup' 'input .js-title': 'title' 'click .js-status': 'status' 'click ....
Handle <enter> for creating channels
Handle <enter> for creating channels
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
coffeescript
## Code Before: Promise = require 'bluebird-q' Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class ChannelCreateView extends Backbone.View events: 'mouseover': 'focus' 'input .js-title': 'title' 'click .js-status': 'status' 'click .js-create': 'crea...
d68bdfe0b89137efc6b0c167663a0edf7decb4cd
nashvegas/management/commands/syncdb.py
nashvegas/management/commands/syncdb.py
from django.core.management import call_command from django.core.management.commands.syncdb import Command as SyncDBCommand class Command(SyncDBCommand): def handle_noargs(self, **options): # Run migrations first if options.get('database'): databases = [options.get('database')] ...
from django.core.management import call_command from django.core.management.commands.syncdb import Command as SyncDBCommand class Command(SyncDBCommand): def handle_noargs(self, **options): # Run migrations first if options.get("database"): databases = [options.get("database")] ...
Update style to be consistent with project
Update style to be consistent with project
Python
mit
dcramer/nashvegas,iivvoo/nashvegas,paltman/nashvegas,paltman-archive/nashvegas,jonathanchu/nashvegas
python
## Code Before: from django.core.management import call_command from django.core.management.commands.syncdb import Command as SyncDBCommand class Command(SyncDBCommand): def handle_noargs(self, **options): # Run migrations first if options.get('database'): databases = [options.get('dat...
0dafb1c8b57e792e10345161d2e332874f9fde3b
cmd/client/main.go
cmd/client/main.go
package main import ( "github.com/itsankoff/gotcha/client" "log" ) func main() { ws := client.NewWebSocketClient() c := client.New(ws) err := c.Connect("ws://127.0.0.1:9000/websocket") log.Println("connected", err) userId, err := c.Register("pesho", "123") log.Println("registered", err) err = c.Authenticate...
package main import ( "flag" "github.com/itsankoff/gotcha/client" "log" ) func main() { var host string flag.StringVar(&host, "host", "ws://0.0.0.0:9000/websocket", "remote server host") flag.Parse() ws := client.NewWebSocketClient() c := client.New(ws) err := c.Connect(host) log.Println("connected", er...
Add cmd arguments for client cmd tool
Add cmd arguments for client cmd tool
Go
mit
itsankoff/gotcha,itsankoff/gotcha
go
## Code Before: package main import ( "github.com/itsankoff/gotcha/client" "log" ) func main() { ws := client.NewWebSocketClient() c := client.New(ws) err := c.Connect("ws://127.0.0.1:9000/websocket") log.Println("connected", err) userId, err := c.Register("pesho", "123") log.Println("registered", err) err ...
776f084cf1bc7d174184e2d51b224e168fcd6fa4
nixos/tests/run-in-machine.nix
nixos/tests/run-in-machine.nix
{ system ? builtins.currentSystem, config ? {}, pkgs ? import ../.. { inherit system config; } }: with import ../lib/testing.nix { inherit system pkgs; }; let output = runInMachine { drv = pkgs.hello; machine = { ... }: { /* services.sshd.enable = true; */ }; }; in pkgs.runCommand "verify-output" { in...
{ system ? builtins.currentSystem, config ? {}, pkgs ? import ../.. { inherit system config; } }: with import ../lib/testing.nix { inherit system pkgs; }; let output = runInMachine { drv = pkgs.hello; machine = { ... }: { /* services.sshd.enable = true; */ }; }; test = pkgs.runCommand "verify-outpu...
Fix wrong arch in runInMachine test
nixos/tests: Fix wrong arch in runInMachine test Since 83b27f60ceff23967e477c90bef8e78cc96d50a2, the tests were moved into all-tests.nix and some of the tooling has changed so that subattributes of test expressions are now recursively evaluated until a derivation with a .test attribute has been found. Unfortunately t...
Nix
mit
NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,...
nix
## Code Before: { system ? builtins.currentSystem, config ? {}, pkgs ? import ../.. { inherit system config; } }: with import ../lib/testing.nix { inherit system pkgs; }; let output = runInMachine { drv = pkgs.hello; machine = { ... }: { /* services.sshd.enable = true; */ }; }; in pkgs.runCommand "ver...
cecc9f4748e6146e9b1c7cc5f8d2005a74223f44
README.md
README.md
[![build status](https://gitlab.com/jasperdenkers/play-auth/badges/master/build.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) [![coverage report](https://gitlab.com/jasperdenkers/play-auth/badges/master/coverage.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) A simple framework for...
[![build status](https://gitlab.com/jasperdenkers/play-auth/badges/master/build.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) [![coverage report](https://gitlab.com/jasperdenkers/play-auth/badges/master/coverage.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) _This repository is pr...
Add notice in readme about mirror of repository on GitHub
Add notice in readme about mirror of repository on GitHub
Markdown
mit
jasperdenkers/play-auth
markdown
## Code Before: [![build status](https://gitlab.com/jasperdenkers/play-auth/badges/master/build.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) [![coverage report](https://gitlab.com/jasperdenkers/play-auth/badges/master/coverage.svg)](https://gitlab.com/jasperdenkers/play-auth/commits/master) A simp...
32a9803937599c62714ad3524f09253f0cb56566
pytest.ini
pytest.ini
[pytest] addopts = --capture=no --assert=plain --strict testpaths = tests
[pytest] addopts = --capture=no --assert=plain --strict --tb native testpaths = tests
Use native tracebacks for py.test
Use native tracebacks for py.test
INI
apache-2.0
1st1/uvloop,MagicStack/uvloop,MagicStack/uvloop
ini
## Code Before: [pytest] addopts = --capture=no --assert=plain --strict testpaths = tests ## Instruction: Use native tracebacks for py.test ## Code After: [pytest] addopts = --capture=no --assert=plain --strict --tb native testpaths = tests
80bdd54640cd28896539c3c9df7692e6655e3784
server/publications/gamesPublications.js
server/publications/gamesPublications.js
// Publication who send back everything, use it carrefully Meteor.publish('games', function() { return Games.find(); }); // Publication who send back the last 3 live games Meteor.publish('last3LiveGames', function() { return Games.find({ state: { $nin: ['gameEnded', 'notStarted'] }, privateGame: false }, {...
// Publication who send back everything, use it carrefully Meteor.publish('games', function() { return Games.find(); }); // Publication who send back the last 3 live games Meteor.publish('last3LiveGames', function() { return Games.find({ gameState: { $nin: ['gameEnded', 'notStarted'] }, privateGame: false ...
Update publications for the home page
Update publications for the home page
JavaScript
mit
jeremyfourna/basket-live-stats,jeremyfourna/basket-live-stats
javascript
## Code Before: // Publication who send back everything, use it carrefully Meteor.publish('games', function() { return Games.find(); }); // Publication who send back the last 3 live games Meteor.publish('last3LiveGames', function() { return Games.find({ state: { $nin: ['gameEnded', 'notStarted'] }, privateG...
df99180faf57ce68d85079ebd3bc7998263896fa
assets/sass/atomic-squirrel/_backgrounds.scss
assets/sass/atomic-squirrel/_backgrounds.scss
@import 'atomic-squirrel/variables'; .bg-grass { background-image: url('/assets/images/grass.jpg'); } .bg-rocket-launch { background-image: url('/assets/images/rocket-launching.jpg'); } .bg-repeat { background-repeat: repeat; } .bg-no-repeat { background-repeat: no-repeat; } .bg-fixed { background-attach...
@import 'atomic-squirrel/variables'; .bg-grass { background-image: url('/assets/images/grass.jpg'); } .bg-rocket-launch { background-image: url('/assets/images/rocket-launching.jpg'); } .bg-repeat { background-repeat: repeat; } .bg-no-repeat { background-repeat: no-repeat; } .bg-fixed { background-attach...
Add background fallback for IE
Add background fallback for IE
SCSS
mit
atomic-squirrel/atomic-squirrel-homepage,atomic-squirrel/atomic-squirrel-homepage,atomic-squirrel/atomic-squirrel-homepage
scss
## Code Before: @import 'atomic-squirrel/variables'; .bg-grass { background-image: url('/assets/images/grass.jpg'); } .bg-rocket-launch { background-image: url('/assets/images/rocket-launching.jpg'); } .bg-repeat { background-repeat: repeat; } .bg-no-repeat { background-repeat: no-repeat; } .bg-fixed { b...
4fc8294055e000ae39057c759b1d00b66f4547f7
app/assets/stylesheets/hits.css.scss
app/assets/stylesheets/hits.css.scss
@import 'bootstrap/_variables'; @import 'mixins'; @import 'theme'; .bar-chart-row { position: absolute; left: 0; top: 0; bottom: 0; background-color: $defaultHTTPStatusColor; min-width: 3px; } .bar-chart-row-301 { background-color: $goodHTTPStatusColor; } .bar-chart-row-500, .bar-chart-row-404 { back...
@import 'bootstrap/_variables'; @import 'mixins'; @import 'theme'; .bar-chart-row { position: absolute; left: 0; top: 0; bottom: 0; background-color: $defaultHTTPStatusColor; min-width: 3px; } .bar-chart-row-301 { background-color: $goodHTTPStatusColor; } .bar-chart-row-500, .bar-chart-row-404 { back...
Make column width narrower so it fits the icon more neatly
Make column width narrower so it fits the icon more neatly
SCSS
mit
alphagov/transition,alphagov/transition,alphagov/transition
scss
## Code Before: @import 'bootstrap/_variables'; @import 'mixins'; @import 'theme'; .bar-chart-row { position: absolute; left: 0; top: 0; bottom: 0; background-color: $defaultHTTPStatusColor; min-width: 3px; } .bar-chart-row-301 { background-color: $goodHTTPStatusColor; } .bar-chart-row-500, .bar-chart-...
833c6ad97ab3bead49c70c2536734c37091d942f
spec/models/task_user_spec.rb
spec/models/task_user_spec.rb
require 'spec_helper' describe TaskUser do before(:each) do @valid_attributes = { :user_id => 1, :task_id => 1, :unread => false, } end it "should create a new instance given valid attributes" do TaskUser.create!(@valid_attributes) end end # == Schema Information # # Table name:...
require 'spec_helper' describe TaskUser do before(:each) do @valid_attributes = { :user => User.make, :task => Task.make, :unread => false } end it "should create a new instance given valid attributes" do TaskUser.create!(@valid_attributes) end end # == Schema Information # # Ta...
Update specs: use factory instead of magic numbers in TaskUser spec.
Update specs: use factory instead of magic numbers in TaskUser spec.
Ruby
agpl-3.0
ari/jobsworth,xuewenfei/jobsworth,rafaspinola/jobsworth,webstream-io/jobsworth,webstream-io/jobsworth,webstream-io/jobsworth,digitalnatives/jobsworth,ari/jobsworth,ari/jobsworth,digitalnatives/jobsworth,webstream-io/jobsworth,rafaspinola/jobsworth,ari/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,xuewenfei/jobswort...
ruby
## Code Before: require 'spec_helper' describe TaskUser do before(:each) do @valid_attributes = { :user_id => 1, :task_id => 1, :unread => false, } end it "should create a new instance given valid attributes" do TaskUser.create!(@valid_attributes) end end # == Schema Information...
24c67ce5972c1edf51f23c0029d56fd2b30daa47
setup.py
setup.py
import re from setuptools import find_packages, setup with open('netsgiro/__init__.py') as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) with open('README.rst') as fh: long_description = fh.read() setup( name='netsgiro', version=metadata['version'], description='File ...
import re from setuptools import find_packages, setup with open('netsgiro/__init__.py') as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) with open('README.rst') as fh: long_description = fh.read() setup( name='netsgiro', version=metadata['version'], description='File ...
Add required author_email to package metadata
Add required author_email to package metadata
Python
apache-2.0
otovo/python-netsgiro
python
## Code Before: import re from setuptools import find_packages, setup with open('netsgiro/__init__.py') as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) with open('README.rst') as fh: long_description = fh.read() setup( name='netsgiro', version=metadata['version'], de...
90cd6516831e2d4c05c5761a5984c0928797e634
.travis.yml
.travis.yml
language: rust rust: - nightly sudo: required before_install: - sudo add-apt-repository ppa:sonkun/sfml-stable -y - sudo apt-get -qq update - sudo apt-get install -y sfml csfml script: cd deucalion-rs && cargo build && cargo test
language: rust rust: - nightly sudo: required before_install: - sudo echo "deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe" >> /etc/apt/sources.list - sudo apt-get -qq update - sudo apt-get install -y libsfml-dev libcsfml-dev script: cd deucalion-rs && cargo build &...
Switch to using Proposed for builds.
Switch to using Proposed for builds.
YAML
apache-2.0
team-code/deucalion,team-code/deucalion
yaml
## Code Before: language: rust rust: - nightly sudo: required before_install: - sudo add-apt-repository ppa:sonkun/sfml-stable -y - sudo apt-get -qq update - sudo apt-get install -y sfml csfml script: cd deucalion-rs && cargo build && cargo test ## Instruction: Switch to using Proposed for builds. ## Code...
53ef6fd54e0bb57774c606deceeca6ed46b3443c
app/app/components/tasks/CreateTask.jsx
app/app/components/tasks/CreateTask.jsx
import React from 'react'; export default class CreateTask extends React.Component { render(){ return( <p>New Task</p> ) } }
import React from 'react'; import GoogleMapsLoader from 'google-maps' import axios from 'axios' import {hashHistory} from 'react-router' export default class CreateTask extends React.Component { componentWillMount() { GoogleMapsLoader.KEY = process.env.GOOGLE_MAPS_API_KEY GoogleMapsLoader.load((google) => { ne...
Add google maps initial map and task form
Add google maps initial map and task form
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
jsx
## Code Before: import React from 'react'; export default class CreateTask extends React.Component { render(){ return( <p>New Task</p> ) } } ## Instruction: Add google maps initial map and task form ## Code After: import React from 'react'; import GoogleMapsLoader from 'google-maps' import axios from 'axios'...
4987b2e5a2d5ee208a274702f6b88a9021149c86
tests/blueprints/user_message/test_address_formatting.py
tests/blueprints/user_message/test_address_formatting.py
from unittest.mock import patch import pytest from byceps.services.user_message import service as user_message_service from tests.conftest import database_recreated from tests.helpers import app_context, create_brand, create_email_config, \ create_party, create_site, create_user def test_recipient_formatting(...
from unittest.mock import patch import pytest from byceps.services.user_message import service as user_message_service from tests.conftest import database_recreated from tests.helpers import app_context, create_brand, create_email_config, \ create_party, create_site, create_user def test_recipient_formatting(...
Speed up user message address formatting test
Speed up user message address formatting test The common set-up is moved to the fixture, then the fixture's scope is widened so that it is used for all test cases in the module, avoiding duplicate work.
Python
bsd-3-clause
m-ober/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps
python
## Code Before: from unittest.mock import patch import pytest from byceps.services.user_message import service as user_message_service from tests.conftest import database_recreated from tests.helpers import app_context, create_brand, create_email_config, \ create_party, create_site, create_user def test_recip...
0f3005242ef42ae16554a7c88b158428a2fa8a22
packages/cf/cf.yaml
packages/cf/cf.yaml
homepage: http://github.com/mvr/cf changelog-type: '' hash: 96b1d5c7355b1af76f0dafd7f27df7dd204e2417ad804d2f6f1896deefc76b57 test-bench-deps: test-framework: ! '>=0.6' base: -any cf: -any test-framework-quickcheck2: ! '>=0.2' test-framework-th: ! '>=0.2' QuickCheck: ! '>=2.4' maintainer: mitchell.v.riley@gm...
homepage: http://github.com/mvr/cf changelog-type: '' hash: 9fd574edfce6ea014201ccc3591638de0574f251290bcf0f44a8a00338131692 test-bench-deps: test-framework: ! '>=0.6' base: -any cf: -any test-framework-quickcheck2: ! '>=0.2' test-framework-th: ! '>=0.2' QuickCheck: ! '>=2.4' maintainer: mitchell.v.riley@gm...
Update from Hackage at 2015-07-10T17:19:33+0000
Update from Hackage at 2015-07-10T17:19:33+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/mvr/cf changelog-type: '' hash: 96b1d5c7355b1af76f0dafd7f27df7dd204e2417ad804d2f6f1896deefc76b57 test-bench-deps: test-framework: ! '>=0.6' base: -any cf: -any test-framework-quickcheck2: ! '>=0.2' test-framework-th: ! '>=0.2' QuickCheck: ! '>=2.4' maintainer: mit...
9e9f3e04e52bece3ee3f9dc1d15d66da31dc14e5
src/localization/utilities.js
src/localization/utilities.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { authStrings } from './authStrings'; import { buttonStrings } from './buttonStrings'; import { generalStrings } from './generalStrings'; import { modalStrings } from './modalStrings'; import { navStrings } from './navStrings'; import { pageInfoS...
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { authStrings } from './authStrings'; import { buttonStrings } from './buttonStrings'; import { generalStrings } from './generalStrings'; import { modalStrings } from './modalStrings'; import { navStrings } from './navStrings'; import { pageInfoS...
Add proper exporting of programStrings
Add proper exporting of programStrings
JavaScript
mit
sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile
javascript
## Code Before: /** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { authStrings } from './authStrings'; import { buttonStrings } from './buttonStrings'; import { generalStrings } from './generalStrings'; import { modalStrings } from './modalStrings'; import { navStrings } from './navStrings'; im...
4f62b857fcd59fb3c7398928fb5e34c0ec36ae22
test/profile/CMakeLists.txt
test/profile/CMakeLists.txt
set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(PROFILE_TESTSUITES) set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) if(NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND PROFILE_TEST_DEPS profile llvm-profdata llvm-cov) endif() set(PROFILE_TEST...
set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(PROFILE_TESTSUITES) set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) if(NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND PROFILE_TEST_DEPS cxx-headers profile llvm-profdata llvm-cov) endif() set(...
Add a test dependency on cxx-headers
[profile] Add a test dependency on cxx-headers This enables running profile runtime tests which #include <string>, etc. via just `check-profile`. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@373120 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
text
## Code Before: set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(PROFILE_TESTSUITES) set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) if(NOT COMPILER_RT_STANDALONE_BUILD) list(APPEND PROFILE_TEST_DEPS profile llvm-profdata llvm-cov) endif() ...
e563cd39f8eacfcc7aa1e5571cc654b7e032afe1
packages/ember-validations/lib/errors.js
packages/ember-validations/lib/errors.js
Ember.Validations.Errors = Ember.Object.extend({ add: function(property, value) { this.set(property, (this.get(property) || []).concat(value)); }, clear: function() { var keys = Object.keys(this); for(var i = 0; i < keys.length; i++) { delete this[keys[i]]; } } });
Ember.Validations.Errors = Ember.Object.extend({ add: function(property, value) { this.set(property, (this.get(property) || []).concat(value)); }, clear: function() { var keys = Object.keys(this); for(var i = 0; i < keys.length; i++) { this.set(keys[i], undefined); delete this[keys[i]]; ...
Set to undefined when clearing
Set to undefined when clearing
JavaScript
mit
davewasmer/ember-validations,Patsy-issa/ember-validations,aaronmcouture/ember-validations,aaronmcouture/ember-validations,spruce/ember-validations,indirect/ember-validations,irma-abh/ember-validations,xymbol/ember-validations,dockyard/ember-validations,Patsy-issa/ember-validations,yonjah/ember-validations,atsjj/ember-v...
javascript
## Code Before: Ember.Validations.Errors = Ember.Object.extend({ add: function(property, value) { this.set(property, (this.get(property) || []).concat(value)); }, clear: function() { var keys = Object.keys(this); for(var i = 0; i < keys.length; i++) { delete this[keys[i]]; } } }); ## Inst...
45be9160a830f43a2f501b1350213b5ce56008f4
attributes/default.rb
attributes/default.rb
default['codecpetion']['dir'] = '/assets' default['codecpetion']['user'] = "www-data" default['codecpetion']['group'] = "www-data" default['codecpetion']['source'] = "http://codeception.com/codecept.phar"
default[:codecpetion][:dir] = "/assets" default[:codecpetion][:user] = "www-data" default[:codecpetion][:group] = "www-data" default[:codecpetion][:source] = "http://codeception.com/codecept.phar"
Access node attributes in a consistent manner
Access node attributes in a consistent manner
Ruby
apache-2.0
arknoll/drupal-codeception
ruby
## Code Before: default['codecpetion']['dir'] = '/assets' default['codecpetion']['user'] = "www-data" default['codecpetion']['group'] = "www-data" default['codecpetion']['source'] = "http://codeception.com/codecept.phar" ## Instruction: Access node attributes in a consistent manner ## Code After: default[:codecpe...
66c950522a3563c96cb7d4aca0ba4e940b769462
includes/StackAllocator.h
includes/StackAllocator.h
class StackAllocator : public LinearAllocator { public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(const std::size_t size, const std::size_t alignment) override; /* Frees virtual ...
class StackAllocator : public Allocator { protected: /* Offset from the start of the memory block */ std::size_t m_offset; public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(const...
Change parent class from LinearAllocator to Allocator.
Change parent class from LinearAllocator to Allocator.
C
mit
mtrebi/memory-allocators
c
## Code Before: class StackAllocator : public LinearAllocator { public: /* Allocation of real memory */ StackAllocator(const long totalSize); /* Frees all memory */ virtual ~StackAllocator(); /* Allocate virtual memory */ virtual void* Allocate(const std::size_t size, const std::size_t alignment) override; /...
8decb758c06f4ce81befde72e0a28311fb6be725
lib/themes/dosomething/paraneue_dosomething/scss/content/_explore-campaigns.scss
lib/themes/dosomething/paraneue_dosomething/scss/content/_explore-campaigns.scss
// ------------------- // EXPLORE CAMPAIGNS // ------------------- .view-explore-campaigns { margin-top: $base-spacing; // A sad re-implementation of the figure pattern. .search-result { text-align: center; margin-bottom: $base-spacing; @include media($tablet) { @include span(4 of 12); ...
// ------------------- // EXPLORE CAMPAIGNS // ------------------- .view-explore-campaigns { margin-top: $base-spacing; // A sad re-implementation of the figure pattern. .search-result { text-align: center; margin-bottom: $base-spacing; @include media($tablet) { @include span(4 of 12); ...
Update "Explore Campaigns" to mirror Forge 6.7.
Update "Explore Campaigns" to mirror Forge 6.7. Since this page is a Drupal view, it uses silly custom markup, which we’ll update to reflect gallery changes made in Forge 6.7.
SCSS
mit
DoSomething/dosomething,deadlybutter/phoenix,DoSomething/dosomething,mshmsh5000/dosomething-1,deadlybutter/phoenix,sergii-tkachenko/phoenix,DoSomething/dosomething,DoSomething/dosomething,DoSomething/phoenix,mshmsh5000/dosomething-1,sergii-tkachenko/phoenix,sergii-tkachenko/phoenix,deadlybutter/phoenix,DoSomething/doso...
scss
## Code Before: // ------------------- // EXPLORE CAMPAIGNS // ------------------- .view-explore-campaigns { margin-top: $base-spacing; // A sad re-implementation of the figure pattern. .search-result { text-align: center; margin-bottom: $base-spacing; @include media($tablet) { @include spa...
8cd01feb3296dc609680dac021ac633fbec9887d
lib/DDG/Spice/Plos.pm
lib/DDG/Spice/Plos.pm
package DDG::Spice::Plos; use DDG::Spice; name 'PLOS Search'; description 'Search research articles of PLOS journals'; primary_example_queries 'plos dinosaurs', 'plos echinoderm evolution'; secondary_example_queries 'plos dinosaurs title:metabolism'; source 'PLOS'; category 'special'; topics 'science'; icon_url 'http...
package DDG::Spice::Plos; use DDG::Spice; name 'PLOS Search'; description 'Search research articles of PLOS journals'; primary_example_queries 'plos dinosaurs', 'plos echinoderm evolution'; secondary_example_queries 'plos dinosaurs title:metabolism'; source 'PLOS'; category 'special'; topics 'science'; icon_url 'http...
Add additional triggers and skip some words.
PLOS: Add additional triggers and skip some words.
Perl
apache-2.0
kevintab95/zeroclickinfo-spice,mr-karan/zeroclickinfo-spice,stennie/zeroclickinfo-spice,deserted/zeroclickinfo-spice,mohan08p/zeroclickinfo-spice,jyounker/zeroclickinfo-spice,tagawa/zeroclickinfo-spice,iambibhas/zeroclickinfo-spice,xaviervalarino/zeroclickinfo-spice,dachinzo/zeroclickinfo-spice,claytonspinner/zeroclick...
perl
## Code Before: package DDG::Spice::Plos; use DDG::Spice; name 'PLOS Search'; description 'Search research articles of PLOS journals'; primary_example_queries 'plos dinosaurs', 'plos echinoderm evolution'; secondary_example_queries 'plos dinosaurs title:metabolism'; source 'PLOS'; category 'special'; topics 'science'...
ffecc092b4d61b499d94920d5760b38b641f35f2
to.etc.domui/src/main/resources/resources/themes/scss/winter/_buttonbar2.scss
to.etc.domui/src/main/resources/resources/themes/scss/winter/_buttonbar2.scss
/*** ButtonBar2 ***/ .ui-bbar2 { } .ui-bbar2-h { display: flex; flex-direction: row; .ui-bbar2-l { flex: 2; } .ui-bbar2-r { flex: 1; } .ui-bbar2-bc { display: inline-block; padding: 5px; } } .ui-bbar2-v { }
/*** ButtonBar2 ***/ .ui-bbar2 { } .ui-bbar2-h { display: flex; flex-direction: row; .ui-bbar2-l { flex: 2; } .ui-bbar2-r { } .ui-bbar2-bc { display: inline-block; padding: 5px; } } .ui-bbar2-v { }
Make right part of ButtonBar2 scale to required size.
Make right part of ButtonBar2 scale to required size.
SCSS
lgpl-2.1
fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui
scss
## Code Before: /*** ButtonBar2 ***/ .ui-bbar2 { } .ui-bbar2-h { display: flex; flex-direction: row; .ui-bbar2-l { flex: 2; } .ui-bbar2-r { flex: 1; } .ui-bbar2-bc { display: inline-block; padding: 5px; } } .ui-bbar2-v { } ## Instruction: Make right part of ButtonBar2 scale to required size. ...
85a50ad167a655345d75e79ac8b5e50d946aaa0d
source/scss/atoms/_colorway.scss
source/scss/atoms/_colorway.scss
// ========================================================================== // Colorway // ========================================================================== // Import if Google Fonts URL is defined // Functions and Directives //@if variable-exists($font-url--google) { // @import url($font-url--google); /...
// ========================================================================== // Colorway // ========================================================================== // Import if Google Fonts URL is defined // Functions and Directives //@if variable-exists($font-url--google) { // @import url($font-url--google); /...
Refactor colorway - Fix formatting, variables, and quiet linter
Refactor colorway - Fix formatting, variables, and quiet linter
SCSS
mit
bantonelli/ProEdify-patternlab,bantonelli/ProEdify-patternlab
scss
## Code Before: // ========================================================================== // Colorway // ========================================================================== // Import if Google Fonts URL is defined // Functions and Directives //@if variable-exists($font-url--google) { // @import url($font...
160572e650c98d5d226f64bcb001961680bc38ff
_includes/news.html
_includes/news.html
<div class="dropdown-container"> <ul> <li class="dropdown-parent"> <h1> current <div class="down-triangle"></div> </h1> <div class="dropdown-submenu"> <ul> <li><a href="">older</a></li> </...
<!-- Page Title --> <div class="dropdown-container"> <ul> <li class="dropdown-parent"> <h1> recent <div class="down-triangle"></div> </h1> <div class="dropdown-submenu"> <ul> <li><a href="">older</a></li>...
Change wording in page title
Change wording in page title
HTML
mit
sfuco/sfuco.github.io,sfuco/sfuco-site,sfuco/sfuco-site,sfuco/sfuco.github.io
html
## Code Before: <div class="dropdown-container"> <ul> <li class="dropdown-parent"> <h1> current <div class="down-triangle"></div> </h1> <div class="dropdown-submenu"> <ul> <li><a href="">older</a></li> ...
874ead2ed9de86eea20c4a67ce7b53cb2766c09e
erpnext/patches/v5_0/link_warehouse_with_account.py
erpnext/patches/v5_0/link_warehouse_with_account.py
from __future__ import unicode_literals import frappe def execute(): frappe.db.sql("""update tabAccount set warehouse=master_name where ifnull(account_type, '') = 'Warehouse' and ifnull(master_name, '') != ''""")
from __future__ import unicode_literals import frappe def execute(): if "master_name" in frappe.db.get_table_columns("Account"): frappe.db.sql("""update tabAccount set warehouse=master_name where ifnull(account_type, '') = 'Warehouse' and ifnull(master_name, '') != ''""")
Update warehouse as per master_name if master_name exists
Update warehouse as per master_name if master_name exists
Python
agpl-3.0
indictranstech/fbd_erpnext,gangadharkadam/saloon_erp_install,mbauskar/helpdesk-erpnext,gmarke/erpnext,Tejal011089/paypal_erpnext,Tejal011089/trufil-erpnext,treejames/erpnext,indictranstech/reciphergroup-erpnext,pombredanne/erpnext,gangadharkadam/saloon_erp,gangadharkadam/vlinkerp,hatwar/buyback-erpnext,shft117/SteckerA...
python
## Code Before: from __future__ import unicode_literals import frappe def execute(): frappe.db.sql("""update tabAccount set warehouse=master_name where ifnull(account_type, '') = 'Warehouse' and ifnull(master_name, '') != ''""") ## Instruction: Update warehouse as per master_name if master_name exists ## Code Aft...
678ce29e6a5633f11e0e155790d79623031ad5a2
service.sh
service.sh
. /etc/service.subr prog_dir=`dirname \`realpath $0\`` name=`basename $prog_dir` version="1.0" export pidfile=$prog_dir/$name.pid export logfile=$prog_dir/$name.log . $prog_dir/config.source start() { $prog_dir/tunnel.sh & } kill_ssh() { sshpid=`ps -w | grep "ssh .*:$local_port $remote_server" | grep -v grep | ...
. /etc/service.subr prog_dir=`dirname \`realpath $0\`` name=`basename $prog_dir` version="1.0" export pidfile=$prog_dir/$name.pid export logfile=$prog_dir/$name.log . $prog_dir/config.source start() { start-stop-daemon -S \ -p $pidfile -m \ -b \ -v \ -x /mnt/DroboFS/Shares/DroboApps/openssh/bin/ssh -- \ ...
Use start-stop-daemon to start ssh
Use start-stop-daemon to start ssh
Shell
mit
tkanemoto/drobofs-reverse-sshfs-service
shell
## Code Before: . /etc/service.subr prog_dir=`dirname \`realpath $0\`` name=`basename $prog_dir` version="1.0" export pidfile=$prog_dir/$name.pid export logfile=$prog_dir/$name.log . $prog_dir/config.source start() { $prog_dir/tunnel.sh & } kill_ssh() { sshpid=`ps -w | grep "ssh .*:$local_port $remote_server" |...
a40b5278525ebf77799760f29aaa2dcaccffec6d
package.json
package.json
{ "name": "eslint-config-civicsource", "description": "Shareable ESLint configuration to be used in CivicSource client applications", "main": "index.js", "version": "0.0.0", "repository": { "type": "git", "url": "https://github.com/civicsource/eslint-config-civicsource.git" }, "author": "Archon In...
{ "name": "eslint-config-civicsource", "description": "Shareable ESLint configuration to be used in CivicSource client applications", "main": "index.js", "version": "0.0.0", "repository": { "type": "git", "url": "https://github.com/civicsource/eslint-config-civicsource.git" }, "author": "Archon In...
Make prettier a devDependency not a peerDep
Make prettier a devDependency not a peerDep
JSON
mit
civicsource/eslint-config-civicsource
json
## Code Before: { "name": "eslint-config-civicsource", "description": "Shareable ESLint configuration to be used in CivicSource client applications", "main": "index.js", "version": "0.0.0", "repository": { "type": "git", "url": "https://github.com/civicsource/eslint-config-civicsource.git" }, "aut...
0cee8e7c53e6df73144130e0a3b21510f77453b9
lib/controllers/frontend/spree/users_controller.rb
lib/controllers/frontend/spree/users_controller.rb
class Spree::UsersController < Spree::StoreController skip_before_action :set_current_order, only: :show prepend_before_action :load_object, only: [:show, :edit, :update] prepend_before_action :authorize_actions, only: :new include Spree::Core::ControllerHelpers def show @orders = @user.orders.complete....
class Spree::UsersController < Spree::StoreController skip_before_action :set_current_order, only: :show, raise: false prepend_before_action :load_object, only: [:show, :edit, :update] prepend_before_action :authorize_actions, only: :new include Spree::Core::ControllerHelpers def show @orders = @user.or...
Stop raising exception for undefined callback
Stop raising exception for undefined callback The specs against Solidus master are failing because `set_current_order` is not defined as a process_action callback. This used to be the case but Solidus has removed this and slated it for v2.4. For compatibility with older versions of Solidus, we should not raise an Arg...
Ruby
bsd-3-clause
solidusio/solidus_auth_devise,solidusio/solidus_auth_devise,solidusio/solidus_auth_devise
ruby
## Code Before: class Spree::UsersController < Spree::StoreController skip_before_action :set_current_order, only: :show prepend_before_action :load_object, only: [:show, :edit, :update] prepend_before_action :authorize_actions, only: :new include Spree::Core::ControllerHelpers def show @orders = @user....
51ec83894435127c2843453a00fb5c581cc08a79
app/assets/javascripts/controllers/about_controller.js
app/assets/javascripts/controllers/about_controller.js
(function(App) { 'use strict'; App.Controller = App.Controller || {}; App.Controller.About = App.Controller.Page.extend({ index: function() { new App.View.Anchors({}); new App.View.StaffCategories(); if(this.isScreen_s) { this.initSliders(); } else { _.each($('.maso...
(function(App) { 'use strict'; App.Controller = App.Controller || {}; App.Controller.About = App.Controller.Page.extend({ index: function() { new App.View.Anchors({}); new App.View.StaffCategories(); if(this.isScreen_s) { this.initSliders(); } else { _.each($('.maso...
Fix masonry bulk loader in the about page
Fix masonry bulk loader in the about page
JavaScript
mit
Vizzuality/grid-arendal,Vizzuality/grid-arendal,Vizzuality/grid-arendal
javascript
## Code Before: (function(App) { 'use strict'; App.Controller = App.Controller || {}; App.Controller.About = App.Controller.Page.extend({ index: function() { new App.View.Anchors({}); new App.View.StaffCategories(); if(this.isScreen_s) { this.initSliders(); } else { ...
97cf5df2c9966e67a7e04e878864d7e9fe621641
spec/listen/turnstile_spec.rb
spec/listen/turnstile_spec.rb
require 'spec_helper' def run_in_two_threads(proc1, proc2) t1 = Thread.new &proc1 sleep test_latency # t1 must run before t2 t2 = Thread.new { proc2.call; Thread.kill t1 } t2.join(test_latency * 2) ensure Thread.kill t1 if t1 Thread.kill t2 if t2 end describe Listen::Turnstile do describe '#wait' do ...
require 'spec_helper' def run_in_two_threads(proc1, proc2) t1 = Thread.new &proc1 sleep test_latency # t1 must run before t2 t2 = Thread.new { proc2.call; Thread.kill t1 } t2.join(test_latency * 2) ensure Thread.kill t1 if t1 Thread.kill t2 if t2 end describe Listen::Turnstile do before { @called = fals...
Fix turnstile specs on 1.8.7 and ree
Fix turnstile specs on 1.8.7 and ree
Ruby
mit
mbildner/listen,wjordan/listen,angelabier1/listen,strzibny/listen,guard/listen
ruby
## Code Before: require 'spec_helper' def run_in_two_threads(proc1, proc2) t1 = Thread.new &proc1 sleep test_latency # t1 must run before t2 t2 = Thread.new { proc2.call; Thread.kill t1 } t2.join(test_latency * 2) ensure Thread.kill t1 if t1 Thread.kill t2 if t2 end describe Listen::Turnstile do describ...
c64f8e1428855d9523e86d94542a7e9224602c0b
.swiftlint.yml
.swiftlint.yml
whitelist_rules: - trailing_newline - trailing_whitespace # Paths to include during linting. included: - ../VimeoNetworking/Sources # Paths to exclude during linting. excluded: - Pods # Configurable rules can be customized from this configuration file, # binary rules can set their severity level. trailing_wh...
whitelist_rules: - trailing_newline - trailing_whitespace - opening_brace # Paths to include during linting. included: - ../VimeoNetworking/Sources # Paths to exclude during linting. excluded: - Pods # Configurable rules can be customized from this configuration file, # binary rules can set their severity ...
Add opening_brace rule to SwiftLint
Add opening_brace rule to SwiftLint
YAML
mit
vimeo/VimeoNetworking,vimeo/VimeoNetworking
yaml
## Code Before: whitelist_rules: - trailing_newline - trailing_whitespace # Paths to include during linting. included: - ../VimeoNetworking/Sources # Paths to exclude during linting. excluded: - Pods # Configurable rules can be customized from this configuration file, # binary rules can set their severity le...
5dd81b09db46927cb7710b21ab682a6c3ecc182e
esios/__init__.py
esios/__init__.py
try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
Enforce absolute imports through __future__
Enforce absolute imports through __future__
Python
mit
gisce/esios
python
## Code Before: try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios ## Instruction: Enforce absolute imports through __future__ ## Code After: from __future__ import absolute_import try: VERSION...
a4238623d5b5a98eda6b18cf3b8b4e1d7c9240a8
circle.yml
circle.yml
machine: pre: - sudo add-apt-repository -y ppa:fkrull/deadsnakes - sudo apt-get update - sudo apt-get install libxml2-dev libxslt-dev python3.5 python3.5-dev - git -C .pyenv/ pull test: override: - tox
test: override: - pyenv global 2.7.11 3.5.1 - tox
Test using Circle's Ubuntu 14.04 image
Test using Circle's Ubuntu 14.04 image
YAML
mit
elasticsales/quotequail,closeio/quotequail,closeio/quotequail
yaml
## Code Before: machine: pre: - sudo add-apt-repository -y ppa:fkrull/deadsnakes - sudo apt-get update - sudo apt-get install libxml2-dev libxslt-dev python3.5 python3.5-dev - git -C .pyenv/ pull test: override: - tox ## Instruction: Test using Circle's Ubuntu 14.04 image ## Code After: test: ...
cfa49fd5c050fe9ba36b22903a4497834f79c0d6
README.md
README.md
.Net Library to access the Authy API
.Net Library to access the Authy API ## Configuration instructions ### 1. Install mercurial Type the following command in the terminal: $ brew install mercurial ### 2. Download and install Mono MDK From this link: [http://www.mono-project.com/download/] (http://www.mono-project.com/download/) 3. Download ...
Add instructions to configure the project in Xamarin (MonoDevelop IDE)
Add instructions to configure the project in Xamarin (MonoDevelop IDE)
Markdown
mit
authy/authy.net
markdown
## Code Before: .Net Library to access the Authy API ## Instruction: Add instructions to configure the project in Xamarin (MonoDevelop IDE) ## Code After: .Net Library to access the Authy API ## Configuration instructions ### 1. Install mercurial Type the following command in the terminal: $ brew install m...
ccb611cd1c328f2411f7591c943ec1760831eb70
.travis.yml
.travis.yml
language: node_js node_js: - 4 - node before_install: - if [[ $(npm --version) == 1* ]]; then npm install -g npm@latest-2; fi after_success: - if [[ $(node --version) == v4* ]]; then npm run test:coverage; fi
language: node_js node_js: - 4 - node after_success: - if [[ $(node --version) == v4* ]]; then npm run test:coverage; fi
Remove unnecessary npm 1.x upgrade check
Remove unnecessary npm 1.x upgrade check
YAML
mit
maxdavidson/rollup-plugin-sourcemaps,maxdavidson/rollup-plugin-sourcemaps
yaml
## Code Before: language: node_js node_js: - 4 - node before_install: - if [[ $(npm --version) == 1* ]]; then npm install -g npm@latest-2; fi after_success: - if [[ $(node --version) == v4* ]]; then npm run test:coverage; fi ## Instruction: Remove unnecessary npm 1.x upgrade check ## Code After: language: nod...
49c652b034e8f2c9238282c67e0c3394e6165382
public/javascripts/pages/index.js
public/javascripts/pages/index.js
function proceedSignin() { 'use strict'; event.preventDefault(); var emailField = document.getElementById('email'), passwordField = document.getElementById('password'); var user = { username: emailField.value, password: passwordField.value } var xhr = new XMLHttpReque...
function proceedSignin() { 'use strict'; event.preventDefault(); var emailField = document.getElementById('email'), passwordField = document.getElementById('password'); var user = { username: emailField.value, password: passwordField.value } var xhr = new XMLHttpReque...
Add parameters to /signin (POST) request header
Add parameters to /signin (POST) request header
JavaScript
mit
sea-battle/sea-battle,sea-battle/sea-battle
javascript
## Code Before: function proceedSignin() { 'use strict'; event.preventDefault(); var emailField = document.getElementById('email'), passwordField = document.getElementById('password'); var user = { username: emailField.value, password: passwordField.value } var xhr = ...
8eb6b437a70a885adf57023c5da3f0b2448fd581
app/views/projects/_project.html.erb
app/views/projects/_project.html.erb
<div class='project' style="border-color: <%= project.color %>;"> <h5> <%= link_to project.name, project_path(project.to_param) %> <small><%= project.latest_version %></small> </h5> <div class=""> <%= truncate project.description, :length => 100 %> </div> <small> <%= link_to project.platform...
<div class='project' style="border-color: <%= project.color %>;"> <h5> <%= link_to project.name, project_path(project.to_param) %> <small><%= project.latest_version %></small> </h5> <div class=""> <%= truncate project.description, :length => 100 %> </div> <small> <%= link_to project.platform...
Use versions count to decide how to show last change date
Use versions count to decide how to show last change date
HTML+ERB
agpl-3.0
librariesio/libraries.io,librariesio/libraries.io,samjacobclift/libraries.io,abrophy/libraries.io,abrophy/libraries.io,abrophy/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,samjacobclift/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io
html+erb
## Code Before: <div class='project' style="border-color: <%= project.color %>;"> <h5> <%= link_to project.name, project_path(project.to_param) %> <small><%= project.latest_version %></small> </h5> <div class=""> <%= truncate project.description, :length => 100 %> </div> <small> <%= link_to ...
50c56769c3dbffdd52f2df1d25795e262a981811
src/Ojs/JournalBundle/Entity/SectionTranslation.php
src/Ojs/JournalBundle/Entity/SectionTranslation.php
<?php namespace Ojs\JournalBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Ojs\CoreBundle\Entity\DisplayTrait; use Prezent\Doctrine\Translatable\Annotation as Prezent; use Prezent\Doctrine\Translatable\Entity\AbstractTranslation; class SectionTranslation extends AbstractTranslation { use DisplayTrait; /...
<?php namespace Ojs\JournalBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Ojs\CoreBundle\Entity\DisplayTrait; use Prezent\Doctrine\Translatable\Annotation as Prezent; use Prezent\Doctrine\Translatable\Entity\AbstractTranslation; class SectionTranslation extends AbstractTranslation { use DisplayTrait; /...
Set default title to single dash character temporarily
Set default title to single dash character temporarily
PHP
mit
beyzakokcan/ojs,okulbilisim/ojs,beyzakokcan/ojs,okulbilisim/ojs,beyzakokcan/ojs,okulbilisim/ojs
php
## Code Before: <?php namespace Ojs\JournalBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Ojs\CoreBundle\Entity\DisplayTrait; use Prezent\Doctrine\Translatable\Annotation as Prezent; use Prezent\Doctrine\Translatable\Entity\AbstractTranslation; class SectionTranslation extends AbstractTranslation { use Dis...
eb1700a318335c0f91591ad6a6432283c5890155
app/templates/_featured_row.html
app/templates/_featured_row.html
{% import "_macros.html" as macros %} <div class="col-sm-6"> {% if landing %} <hr> {% for podcast in podcasts %} {% if podcast.Spotlight == "Yes" %} {% include "_podcast_spotlight.html" %} {% endif %} {% endfor %} {% endif %} </div> <div class="col-sm-6"> {% if landing %} <hr...
{% import "_macros.html" as macros %} <div class="col-sm-6"> {% if landing %} <hr> {% for podcast in podcasts %} {% if podcast.Category == "Staff" %} {% include "_staff_spotlight.html" %} {% endif %} {% endfor %} {% endif %} </div> <div class="col-sm-6"> {% if landing %} <hr>...
Swap Staff Pick and Featured Podcast, so info that changes often is closest to the top.
Swap Staff Pick and Featured Podcast, so info that changes often is closest to the top.
HTML
apache-2.0
vprnet/podcast-directory,vprnet/podcast-directory,vprnet/podcast-directory
html
## Code Before: {% import "_macros.html" as macros %} <div class="col-sm-6"> {% if landing %} <hr> {% for podcast in podcasts %} {% if podcast.Spotlight == "Yes" %} {% include "_podcast_spotlight.html" %} {% endif %} {% endfor %} {% endif %} </div> <div class="col-sm-6"> {% if la...
11ddb68ec3752a7468f11681e12c278f870b8de6
qlazerdriveplayer.cpp
qlazerdriveplayer.cpp
QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score) { m_id = id; m_name = name; m_r = r; m_g = g; m_b = b; m_score = score; } uint QLazerDrivePlayer::r() const { return m_r; } void QLazerDrivePlayer::set...
QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score) { m_id = id; m_name = name; m_r = r; m_g = g; m_b = b; m_score = score; } uint QLazerDrivePlayer::id() const { return m_id; } void QLazerDrivePlayer::s...
Add missing getters / setters
Add missing getters / setters
C++
mit
vdechenaux/QLazerDriveClient,vdechenaux/QLazerDriveClient
c++
## Code Before: QLazerDrivePlayer::QLazerDrivePlayer(const uint &id, const QString &name, const uint &r, const uint &g, const uint &b, const uint &score) { m_id = id; m_name = name; m_r = r; m_g = g; m_b = b; m_score = score; } uint QLazerDrivePlayer::r() const { return m_r; } void QLazer...
7a4e3457ea93da34a658d79fee7581a2d6ea4517
src/app/dashboard/dashboard.component.html
src/app/dashboard/dashboard.component.html
<div class="ipaas-dashboard"> <ipaas-dashboard-empty-state></ipaas-dashboard-empty-state> <ipaas-popular-templates [templates]="templates | async" [loading]="loading | async"></ipaas-popular-templates> </div>
<div class="ipaas-dashboard"> <ipaas-dashboard-empty-state></ipaas-dashboard-empty-state> <!-- <ipaas-popular-templates [templates]="templates | async" [loading]="loading | async"></ipaas-popular-templates> --> </div>
Hide popular templates from Dashboard
Hide popular templates from Dashboard
HTML
apache-2.0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
html
## Code Before: <div class="ipaas-dashboard"> <ipaas-dashboard-empty-state></ipaas-dashboard-empty-state> <ipaas-popular-templates [templates]="templates | async" [loading]="loading | async"></ipaas-popular-templates> </div> ## Instruction: Hide popular templates from Dashboard ## Code After: <div class="ipaas-da...
e466f86a763f89a26274cf01cb6bbe79b251c50c
ZUSR_LISP_REPL.abap
ZUSR_LISP_REPL.abap
*&---------------------------------------------------------------------* *& Report ZUSR_LISP_REPL *& https://github.com/mydoghasworms/abap-lisp *& Simple REPL for Lisp Interpreter written in ABAP *& Martin Ceronio, June 2015 *& martin.ceronio@infosize.co.za *&-----------------------------------------------------------...
*&---------------------------------------------------------------------* *& Report ZUSR_LISP_REPL *& https://github.com/mydoghasworms/abap-lisp *& Simple REPL for Lisp Interpreter written in ABAP *& Martin Ceronio, June 2015 *& martin.ceronio@infosize.co.za *&-----------------------------------------------------------...
Add runtime measurement to REPL
Add runtime measurement to REPL
ABAP
mit
mydoghasworms/abap-lisp,mydoghasworms/abap-lisp,mydoghasworms/abap-lisp
abap
## Code Before: *&---------------------------------------------------------------------* *& Report ZUSR_LISP_REPL *& https://github.com/mydoghasworms/abap-lisp *& Simple REPL for Lisp Interpreter written in ABAP *& Martin Ceronio, June 2015 *& martin.ceronio@infosize.co.za *&-------------------------------------------...
dd856e76ceebb8975db9c4032964cf048d426e03
organizer/templates/organizer/tag_detail.html
organizer/templates/organizer/tag_detail.html
<h2> </h2> <section> <h3>Startups</h3> <ul> </ul> </section> <section> <h3>Blog Posts</h3> <ul> </ul> </section>
<h2> <!-- name of tag --> </h2> <section> <h3>Startups</h3> <ul> <!-- list of startups related to tag --> </ul> </section> <section> <h3>Blog Posts</h3> <ul> <!-- list of posts related to tag --> </ul> </section>
Clarify Tag detail template with comments.
Ch04: Clarify Tag detail template with comments.
HTML
bsd-2-clause
jambonrose/DjangoUnleashed-1.8,jambonrose/DjangoUnleashed-1.8
html
## Code Before: <h2> </h2> <section> <h3>Startups</h3> <ul> </ul> </section> <section> <h3>Blog Posts</h3> <ul> </ul> </section> ## Instruction: Ch04: Clarify Tag detail template with comments. ## Code After: <h2> <!-- name of tag --> </h2...
63c0cd90ff9e9a721b175cdd4af8dc52ed6412ad
flatkeys/__init__.py
flatkeys/__init__.py
__version__ = '0.1.0' def flatkeys(d, sep="."): """ Flatten a dictionary: build a new dictionary from a given one where all non-dict values are left untouched but nested ``dict``s are recursively merged in the new one with their keys prefixed by their parent key. >>> flatkeys({1: 42, 'foo': 12})...
import collections __version__ = '0.1.0' def flatkeys(d, sep="."): """ Flatten a dictionary: build a new dictionary from a given one where all non-dict values are left untouched but nested ``dict``s are recursively merged in the new one with their keys prefixed by their parent key. >>> flatkeys(...
Use isinstance check so library can be used for more types
Use isinstance check so library can be used for more types
Python
mit
bfontaine/flatkeys
python
## Code Before: __version__ = '0.1.0' def flatkeys(d, sep="."): """ Flatten a dictionary: build a new dictionary from a given one where all non-dict values are left untouched but nested ``dict``s are recursively merged in the new one with their keys prefixed by their parent key. >>> flatkeys({1:...
1a1c56caeb8ad010e693a1fa6a0614c2fe308bb9
app/views/orders/_organization_info.html.erb
app/views/orders/_organization_info.html.erb
<p> <strong>County:</strong><br/> <span id="county"><%= order.organization.county %></span> </p> <p> <strong>Organization:</strong><br/> <span id="county"><%= link_to "#{order.organization.name}", edit_organization_path(order.organization, redirect_to: "order", redirect_id: order.id) %></span> </p> <p> <stron...
<p> <strong>County:</strong><br/> <span id="county"><%= order.organization.county %></span> </p> <p> <strong>Organization:</strong><br/> <span id="county"><%= link_to "#{order.organization.name}", edit_organization_path(order.organization, redirect_to: "order", redirect_id: order.id) %></span> </p>
Remove org address from order view as it could be confused for ship to
Remove org address from order view as it could be confused for ship to
HTML+ERB
mit
icodeclean/StockAid,icodeclean/StockAid,on-site/StockAid,icodeclean/StockAid,on-site/StockAid,on-site/StockAid
html+erb
## Code Before: <p> <strong>County:</strong><br/> <span id="county"><%= order.organization.county %></span> </p> <p> <strong>Organization:</strong><br/> <span id="county"><%= link_to "#{order.organization.name}", edit_organization_path(order.organization, redirect_to: "order", redirect_id: order.id) %></span> <...
7663040a814cf5c942ddf8a63cc3c2e1bf6d7cc8
ceraon/templates/meals/form_edit.html
ceraon/templates/meals/form_edit.html
<form id="mealForm" class="form" method="POST" action="" role="form"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> <div class="form-group" style="position: relative;"> {{form.scheduled_for.label}} {{form.scheduled_for(placeholder="When", id_="schedule-for", cl...
<form id="mealForm" class="form" method="POST" action="" role="form"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> <div class="form-group" style="position: relative;"> {{form.scheduled_for.label}} {{form.scheduled_for(placeholder="When (MM/DD/YYYY HH:MM [AM|PM])", id_="schedule-for", ...
Add placeholder hint for meal date
Add placeholder hint for meal date
HTML
bsd-3-clause
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
html
## Code Before: <form id="mealForm" class="form" method="POST" action="" role="form"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> <div class="form-group" style="position: relative;"> {{form.scheduled_for.label}} {{form.scheduled_for(placeholder="When", id_="schedule-for", ...
60daa277d5c3f1d9ab07ff5beccdaa323996068b
feincmstools/templatetags/feincmstools_tags.py
feincmstools/templatetags/feincmstools_tags.py
import os from django import template register = template.Library() @register.filter def is_parent_of(page1, page2): """ Determines whether a given page is the parent of another page Example: {% if page|is_parent_of:feincms_page %} ... {% endif %} """ if page1 is None: return False ...
import os from django import template from feincms.templatetags.feincms_tags import feincms_render_content register = template.Library() @register.filter def is_parent_of(page1, page2): """ Determines whether a given page is the parent of another page Example: {% if page|is_parent_of:feincms_page ...
Add assignment tag util for rendering chunks to tpl context
Add assignment tag util for rendering chunks to tpl context
Python
bsd-3-clause
ixc/glamkit-feincmstools,ixc/glamkit-feincmstools
python
## Code Before: import os from django import template register = template.Library() @register.filter def is_parent_of(page1, page2): """ Determines whether a given page is the parent of another page Example: {% if page|is_parent_of:feincms_page %} ... {% endif %} """ if page1 is None: ...
395c8bdecbebf3bdea6c0c0acaa7b5807869623f
lib/project/progress_hud/progress_hud.rb
lib/project/progress_hud/progress_hud.rb
class ProgressHUD < Android::App::DialogFragment def initialize(title="Loading") @title = title end def show(activity=rmq.activity) super(activity.fragmentManager, "progress") end def onCreateDialog(saved_instance_state) builder = Android::App::AlertDialog::Builder.new(activity, Android:...
class ProgressHUD < Android::App::DialogFragment def initialize(title="Loading", opts={}) @title = title @style = convert_style(opts[:style]) @max = opts[:max] end def show(activity=rmq.activity) super(activity.fragmentManager, "progress") end def onCreateDialog(saved_instance_state) b...
Add a progressbar to ProgressHUD
Add a progressbar to ProgressHUD
Ruby
mit
infinitered/bluepotion,infinitered/bluepotion
ruby
## Code Before: class ProgressHUD < Android::App::DialogFragment def initialize(title="Loading") @title = title end def show(activity=rmq.activity) super(activity.fragmentManager, "progress") end def onCreateDialog(saved_instance_state) builder = Android::App::AlertDialog::Builder.new(activity...
03c27cf947a75ca10abce1980b5365e5b8fab66c
cmd/brew-squash-bottle-pr.rb
cmd/brew-squash-bottle-pr.rb
require "formula" module Homebrew # Squash the last two commits of build-bottle-pr. # Usage: # brew build-bottle-pr foo # brew pull --bottle 123 # brew squash-bottle-pr def squash_bottle_pr head = `git rev-parse HEAD`.chomp formula = `git log -n1 --pretty=format:%s`.split(":").first fi...
require "formula" module Homebrew # Squash the last two commits of build-bottle-pr. # Usage: # brew build-bottle-pr foo # brew pull --bottle 123 # brew squash-bottle-pr def squash_bottle_pr head = `git rev-parse HEAD`.chomp formula = `git log -n1 --pretty=format:%s`.split(":").first fi...
Call git show if verbose
squash-bottle-pr: Call git show if verbose
Ruby
mit
Linuxbrew/homebrew-developer
ruby
## Code Before: require "formula" module Homebrew # Squash the last two commits of build-bottle-pr. # Usage: # brew build-bottle-pr foo # brew pull --bottle 123 # brew squash-bottle-pr def squash_bottle_pr head = `git rev-parse HEAD`.chomp formula = `git log -n1 --pretty=format:%s`.split("...
b16e795741ee59b2d4d39914aba592ae23b916b0
circle.yml
circle.yml
machine: services: - docker dependencies: pre: - docker pull openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x || true override: - docker build -f Dockerfile-prereqs -t openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x . - docker build -f Dockerfile-machine -t openaddr/machine:`cut -f1 -d. openad...
machine: services: - docker dependencies: pre: - docker pull openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x || true override: - docker build -f Dockerfile-prereqs -t openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x . - docker build -f Dockerfile-machine -t openaddr/machine:`cut -f1 -d. openad...
Tag and push the 'latest' tag for published images
Tag and push the 'latest' tag for published images
YAML
isc
openaddresses/machine,openaddresses/machine,openaddresses/machine
yaml
## Code Before: machine: services: - docker dependencies: pre: - docker pull openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x || true override: - docker build -f Dockerfile-prereqs -t openaddr/prereqs:`cut -f1 -d. openaddr/VERSION`.x . - docker build -f Dockerfile-machine -t openaddr/machine:`cu...
d9041156f999342aab312dfb7ea6dfc21f7cbd08
SWXMLDateMapping.h
SWXMLDateMapping.h
// // SWXMLDateMapping.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 13/11/05. // Copyright 2005 Samuel Williams. All rights reserved. // #import "SWXMLMemberMapping.h" @class SWXMLMemberMapping; @interface SWXMLDateMapping : S...
// // SWXMLDateMapping.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 13/11/05. // Copyright 2005 Samuel Williams. All rights reserved. // #import "SWXMLMemberMapping.h" @class SWXMLMemberMapping; // Formats value attribute acco...
Comment regarding value serialization of date.
Comment regarding value serialization of date.
C
mit
oriontransfer/SWXMLMapping
c
## Code Before: // // SWXMLDateMapping.h // This file is part of the "SWXMLMapping" project, and is distributed under the MIT License. // // Created by Samuel Williams on 13/11/05. // Copyright 2005 Samuel Williams. All rights reserved. // #import "SWXMLMemberMapping.h" @class SWXMLMemberMapping; @interface SWXM...
70efbd90d9d5601d368ddb5ea20a3b9910539b78
members/urls.py
members/urls.py
from django.conf.urls import patterns, url from django.contrib import auth urlpatterns = patterns('', url(r'^login/$', 'django.contrib.auth.views.login',{'template_name': 'members/login_form.html'}, name='login'), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'), url...
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^login/$', 'django.contrib.auth.views.login',{'template_name': 'members/login_form.html'}, name='login'), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'), url(r'^search/(?P<name>.*)/$', 'mem...
Change url and views for login/logout to django Defaults
Change url and views for login/logout to django Defaults
Python
mit
Hackfmi/Diaphanum,Hackfmi/Diaphanum
python
## Code Before: from django.conf.urls import patterns, url from django.contrib import auth urlpatterns = patterns('', url(r'^login/$', 'django.contrib.auth.views.login',{'template_name': 'members/login_form.html'}, name='login'), url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='l...
ea12c92da2b449caa0ee5a9fe5202657df1bfa5f
composer.json
composer.json
{ "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email": "pwhelan@mixxx....
{ "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email": "pwhelan@mixxx.o...
Allow usage of illuminate v5 components
[TASK] Allow usage of illuminate v5 components
JSON
mit
pwhelan/datachore
json
## Code Before: { "name": "datachore/datachore", "type": "library", "description": "Datachore is a Query Builder and ORM for Google Appengine's Datastore", "keywords": ["appengine", "datastore"], "homepage": "http://pwhelan.github.io", "license": "MIT", "authors": [ { "name": "Phillip Whelan", "email":...
9ef5162e9e3005791b83cdd5150532eae398aadd
src/Common/EventListener/ResponseSecurer.php
src/Common/EventListener/ResponseSecurer.php
<?php namespace Common\EventListener; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; class ResponseSecurer { /** * Add some headers to the response to make our application more secure * see https://www.owasp.org/index.php/List_of_useful_HTTP_headers * * @param FilterResponseEvent...
<?php namespace Common\EventListener; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; class ResponseSecurer { /** * Add some headers to the response to make our application more secure * see https://www.owasp.org/index.php/List_of_useful_HTTP_headers * * @param FilterResponseEvent...
Make it possible to define other values for the headers X-Frame-Options, X-XSS-Protection, X-Content-Type-Options if you realy want to
Make it possible to define other values for the headers X-Frame-Options, X-XSS-Protection, X-Content-Type-Options if you realy want to The current implementation uses an iframe this change makes it possible to use that again
PHP
mit
Thijzer/forkcms,Katrienvh/forkcms,Thijzer/forkcms,sumocoders/forkcms,vytsci/forkcms,forkcms/forkcms,mathiashelin/forkcms,forkcms/forkcms,justcarakas/forkcms,bartdc/forkcms,carakas/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,bartdc/forkcms,Katrienvh/forkcms,riadvice/forkcms,DegradationOfMankind/forkcms,r...
php
## Code Before: <?php namespace Common\EventListener; use Symfony\Component\HttpKernel\Event\FilterResponseEvent; class ResponseSecurer { /** * Add some headers to the response to make our application more secure * see https://www.owasp.org/index.php/List_of_useful_HTTP_headers * * @param Fil...
8c53d511eccc0820bdb920be343ade93473ac5e4
cla_public/assets-src/javascripts/modules/moj.LabelSelect.js
cla_public/assets-src/javascripts/modules/moj.LabelSelect.js
(function () { 'use strict'; moj.Modules.LabelSelect = { el: '.js-LabelSelect', init: function () { this.cacheEls(); this.bindEvents(); // keep current state this.$options.each(function () { var $el = $(this); if($el.is(':checked')){ $el.parent().addClass...
(function () { 'use strict'; moj.Modules.LabelSelect = { el: '.js-LabelSelect', init: function () { _.bindAll(this, 'render'); this.cacheEls(); this.bindEvents(); }, bindEvents: function () { this.$options .on('change', function () { var $el = $(this), ...
Add render function to label select js module
Add render function to label select js module
JavaScript
mit
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
javascript
## Code Before: (function () { 'use strict'; moj.Modules.LabelSelect = { el: '.js-LabelSelect', init: function () { this.cacheEls(); this.bindEvents(); // keep current state this.$options.each(function () { var $el = $(this); if($el.is(':checked')){ $el.p...
4a3c1e09198afd49f7f886e36056a221dbccbe97
Casks/scansnap-manager.rb
Casks/scansnap-manager.rb
class ScansnapManager < Cask url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV62L10WW.dmg' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/' version '6.2L10' no_checksum install 'ScanSnap Manager.pkg' uninstall :pkgutil => 'jp.co.pfu.ScanSn...
class ScansnapManager < Cask url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV62L10WW.dmg' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/' version '6.2L10' sha256 '7273034398e9a57eb0fa89167c9e801ad2bf9fe56b52b3d9591628e978168afb' install 'S...
Update sha256 for ScanSnap Manager
Update sha256 for ScanSnap Manager
Ruby
bsd-2-clause
fwiesel/homebrew-cask,jeroenseegers/homebrew-cask,SentinelWarren/homebrew-cask,casidiablo/homebrew-cask,brianshumate/homebrew-cask,tolbkni/homebrew-cask,gguillotte/homebrew-cask,mwek/homebrew-cask,MatzFan/homebrew-cask,kiliankoe/homebrew-cask,vitorgalvao/homebrew-cask,joschi/homebrew-cask,Ketouem/homebrew-cask,doits/ho...
ruby
## Code Before: class ScansnapManager < Cask url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV62L10WW.dmg' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/' version '6.2L10' no_checksum install 'ScanSnap Manager.pkg' uninstall :pkgutil => '...
8b0bfa3a62475298f5c860fb5cee406f8c4f7d0e
requirements-test.txt
requirements-test.txt
pyyaml==5.1 dateutils==0.6.6 # Unit testing pytest==4.4.0 pytest-mock==1.10.3 pytest-benchmark==3.2.2 coverage==4.5.3 mock==2.0.0 # Code style flake8==3.7.7 # black isort==4.3.16 pre-commit==1.15.1
pyyaml==5.1 dateutils==0.6.6 # Unit testing pytest==4.4.0 pytest-mock==1.10.3 pytest-benchmark==3.2.2 coverage==4.5.3 mock==2.0.0 # Code style flake8==3.7.7 # black isort==4.3.16 pre-commit==1.15.1 # For advanced unittesting secp256k1
Add a requirement for testing
Add a requirement for testing
Text
mit
xeroc/python-graphenelib
text
## Code Before: pyyaml==5.1 dateutils==0.6.6 # Unit testing pytest==4.4.0 pytest-mock==1.10.3 pytest-benchmark==3.2.2 coverage==4.5.3 mock==2.0.0 # Code style flake8==3.7.7 # black isort==4.3.16 pre-commit==1.15.1 ## Instruction: Add a requirement for testing ## Code After: pyyaml==5.1 dateutils==0.6.6 # Unit test...
3cfaa8f21064974435c5cf1772b2c8090d1093e0
KwfBundle/Serializer/KwfModel/ColumnNormalizer/ChildRows.php
KwfBundle/Serializer/KwfModel/ColumnNormalizer/ChildRows.php
<?php namespace KwfBundle\Serializer\KwfModel\ColumnNormalizer; use Kwf_Model_Row_Interface; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Serializer\SerializerAwareInterface; class ChildRows implements ColumnNormalizerInterface, SerializerAwareInterface { /** * @var SerializerIn...
<?php namespace KwfBundle\Serializer\KwfModel\ColumnNormalizer; use Kwf_Model_Row_Interface; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Serializer\SerializerAwareInterface; class ChildRows implements ColumnNormalizerInterface, SerializerAwareInterface { /** * @var SerializerIn...
Allow adding a select-where to symfony child-rows-serializer
Allow adding a select-where to symfony child-rows-serializer
PHP
bsd-2-clause
koala-framework/koala-framework,koala-framework/koala-framework
php
## Code Before: <?php namespace KwfBundle\Serializer\KwfModel\ColumnNormalizer; use Kwf_Model_Row_Interface; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Serializer\SerializerAwareInterface; class ChildRows implements ColumnNormalizerInterface, SerializerAwareInterface { /** * @...
a1efb64a48ff87ebb310ef1558d2709937de2300
example.php
example.php
<?php require_once 'swedbankJson.php'; $username = 198903060000; // Personnummer $password = 'fakePW'; // Personlig kod try { $bankConn = new SwedbankJson($username, $password); $accounts = $bankConn->accountList(); $accountInfo = $bankConn->accountDetails($accounts->transactionAccounts[0]-...
<?php require_once 'swedbankJson.php'; // Inställningar define('USERNAME', 198903060000); // Personnummer define('PASSWORD', 'fakePW'); // Personlig kod echo ' Auth-nyckel: '; try { $bankConn = new SwedbankJson(USERNAME, PASSWORD); echo $bankConn->getAuthorizationKey(); } catch (Exception $e) { e...
Define istället för variabler för inställningar.
Define istället för variabler för inställningar.
PHP
mit
walle89/SwedbankJson
php
## Code Before: <?php require_once 'swedbankJson.php'; $username = 198903060000; // Personnummer $password = 'fakePW'; // Personlig kod try { $bankConn = new SwedbankJson($username, $password); $accounts = $bankConn->accountList(); $accountInfo = $bankConn->accountDetails($accounts->transac...
060f46be0bb339537ac1be8a4e4e542702baa9ff
app/assets/javascripts/startups.js.coffee
app/assets/javascripts/startups.js.coffee
initialize = () -> $markets = $("#startup_market_list") $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag", crossDomain: true, queryParam: "query", prePopulate: $markets.data('pre'), theme: "facebook", tokenLimit: 3, tokenValue: "name" $ -> $body = $('bod...
$ -> $body = $('body') bodyClass = $body.attr 'class' routes = ['startups-new', 'startups-edit'] if bodyClass in ['startups-new', 'startups-edit'] $markets = $("#startup_market_list") $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag", crossDomain: true, ...
Add equalHeights to Startup cards
Add equalHeights to Startup cards
CoffeeScript
mit
SoPR/sopr-platform,SoPR/sopr-platform
coffeescript
## Code Before: initialize = () -> $markets = $("#startup_market_list") $markets.tokenInput "http://api.angel.co/1/search?type=MarketTag", crossDomain: true, queryParam: "query", prePopulate: $markets.data('pre'), theme: "facebook", tokenLimit: 3, tokenValue: "name" $ -> ...
6049c07dfbc4cca4957c702aeca37e41f3b81587
_posts/2016-04-08-Wurst-3-0pre3.md
_posts/2016-04-08-Wurst-3-0pre3.md
--- title: Wurst 3.0pre3 - Bugfixes & More category: Wurst Update video-id: jnlOxMzoP1Y --- ## Changelog - NameTags will now allow you to see the nametags of sneaking players - Added tutorial for TP-Aura - Added tutorial for Trajectories - Fixed AntiKnockback - Fixed AutoBuild - Fixed AutoSign - Fixed BaseFinder - Fixe...
--- title: Wurst 3.0pre3 - Bugfixes & More category: Wurst Update video-id: jnlOxMzoP1Y --- ## Changelog - NameTags will now allow you to see the nametags of sneaking players - Added tutorial for TP-Aura - Added tutorial for Trajectories - Fixed AntiKnockback - Fixed AutoBuild - Fixed AutoSign - Fixed BaseFinder - Fixe...
Add read more tag to Wurst 3.0pre3 post
Add read more tag to Wurst 3.0pre3 post
Markdown
mpl-2.0
Voldemart/voldemart.github.io
markdown
## Code Before: --- title: Wurst 3.0pre3 - Bugfixes & More category: Wurst Update video-id: jnlOxMzoP1Y --- ## Changelog - NameTags will now allow you to see the nametags of sneaking players - Added tutorial for TP-Aura - Added tutorial for Trajectories - Fixed AntiKnockback - Fixed AutoBuild - Fixed AutoSign - Fixed B...
c56e221540c4df6e33abb3e55bd92ab9f719a37c
src/lib.rs
src/lib.rs
//! # Keyring library //! //! Allows for setting and getting passwords on Linux, OSX, and Windows // Configure for Linux #[cfg(target_os = "linux")] extern crate secret_service; #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] pub use linux::Keyring; // Configure for Windows #[cfg(target_os = "windo...
//! # Keyring library //! //! Allows for setting and getting passwords on Linux, OSX, and Windows // Configure for Linux #[cfg(target_os = "linux")] extern crate secret_service; #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] pub use linux::Keyring; // Configure for Windows #[cfg(target_os = "windo...
Add test for empty password
Add test for empty password Handling empty passwords properly. I don't have an explicit check for empty passwords in the keyring library (front-end or any of the backends). Instead, I rely on the system vaults (or as close as possible to that interface) to report back errors. I don't want to up-front assume that blan...
Rust
apache-2.0
hwchen/keyring-rs,hwchen/keyring-rs
rust
## Code Before: //! # Keyring library //! //! Allows for setting and getting passwords on Linux, OSX, and Windows // Configure for Linux #[cfg(target_os = "linux")] extern crate secret_service; #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] pub use linux::Keyring; // Configure for Windows #[cfg(ta...
1bc7bf9998183d61f218d934b8235c6cc79a1db1
templates/tiki-login.tpl
templates/tiki-login.tpl
<div align="center"> {assign value=1 var='display_login'} {* Hack to display the login module only once if it is also actually used as a module *} {assign value=1 var='display_module'} {include file='modules/mod-login_box.tpl'} </div>
<div align="center"> {assign value=1 var='display_login'} {* Hack to display the login module only once if it is also actually used as a module *} {include file='modules/mod-login_box.tpl'} </div>
Revert r25525, the fix did not work
[ROLLBACK] Revert r25525, the fix did not work git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@25526 b456876b-0849-0410-b77d-98878d47e9d5
Smarty
lgpl-2.1
oregional/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,oregional/tiki,changi67/tiki,changi67/tiki,oregional/tiki,changi67/tiki
smarty
## Code Before: <div align="center"> {assign value=1 var='display_login'} {* Hack to display the login module only once if it is also actually used as a module *} {assign value=1 var='display_module'} {include file='modules/mod-login_box.tpl'} </div> ## Instruction: [ROLLBACK] Revert r25525, the fix did not work git-...