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
4ae7c47ca7a8edc9f1a3477ffe03b2880dfa1965
test/scriptsToHTML-test.js
test/scriptsToHTML-test.js
import expect from 'expect' import scriptsToHTML from '../src/utils/scriptsToHTML' describe('scriptsToHTML', () => { it('converts a scripts object into an HTML string', () => { const scripts = [ 'string.js', Object.create({ foo: 'bar' }, { src: { value: 'Test.js', enumerable: true } }), { src: ...
import expect from 'expect' import scriptsToHTML from '../src/utils/scriptsToHTML' describe('scriptsToHTML', () => { it('converts a scripts object into an HTML string', () => { function ProtoTest() {} ProtoTest.prototype = { foo: 'bar' } const scripts = [ 'string.js', Object.assign(new Proto...
Fix scriptsToHTML prototype test to work in IE
Fix scriptsToHTML prototype test to work in IE
JavaScript
mit
chromakode/isolated-core,chromakode/isolated-core,chromakode/isolated-core
javascript
## Code Before: import expect from 'expect' import scriptsToHTML from '../src/utils/scriptsToHTML' describe('scriptsToHTML', () => { it('converts a scripts object into an HTML string', () => { const scripts = [ 'string.js', Object.create({ foo: 'bar' }, { src: { value: 'Test.js', enumerable: true } }...
89708d4e8ec6e82d59579a5f79b18d7fa8d6e30a
modules/jpm-core/src/main/java/jpaoletti/jpm/core/operations/SelectItemOperation.java
modules/jpm-core/src/main/java/jpaoletti/jpm/core/operations/SelectItemOperation.java
package jpaoletti.jpm.core.operations; import java.util.List; import jpaoletti.jpm.core.InstanceId; import jpaoletti.jpm.core.PMContext; import jpaoletti.jpm.core.PMException; /** * * @author jpaoletti */ public class SelectItemOperation extends OperationCommandSupport { public SelectItemOperation(String oper...
package jpaoletti.jpm.core.operations; import java.util.List; import jpaoletti.jpm.core.InstanceId; import jpaoletti.jpm.core.PMContext; import jpaoletti.jpm.core.PMException; /** * * @author jpaoletti */ public class SelectItemOperation extends OperationCommandSupport { public SelectItemOperation(String oper...
Select item dont check for operation existance
Select item dont check for operation existance
Java
agpl-3.0
jpaoletti/java-presentation-manager,jpaoletti/java-presentation-manager
java
## Code Before: package jpaoletti.jpm.core.operations; import java.util.List; import jpaoletti.jpm.core.InstanceId; import jpaoletti.jpm.core.PMContext; import jpaoletti.jpm.core.PMException; /** * * @author jpaoletti */ public class SelectItemOperation extends OperationCommandSupport { public SelectItemOpera...
e1058f5ed1e4a9d8379a7829edf619dd47d3a338
lib/sanford/router.rb
lib/sanford/router.rb
require 'sanford/route' module Sanford class Router attr_reader :routes def initialize(&block) @service_handler_ns = nil @routes = [] self.instance_eval(&block) if !block.nil? end def service_handler_ns(value = nil) @view_handler_ns = value if !value.nil? @view_handl...
require 'sanford/route' module Sanford class Router attr_reader :routes def initialize(&block) @routes = [] self.instance_eval(&block) if !block.nil? end def service_handler_ns(value = nil) @service_handler_ns = value if !value.nil? @service_handler_ns end def ser...
Stop defaulting `@service_handler_ns` to `nil` in `Router`
Hotfix: Stop defaulting `@service_handler_ns` to `nil` in `Router` This changes `Router` to no longer manually set its `@service_handler_ns` to `nil`. This caused problems with inheriting from the `Router` class and trying to default the service handler ns. Since all ivars are defaulted to `nil` this isn't required so...
Ruby
mit
redding/sanford,redding/sanford
ruby
## Code Before: require 'sanford/route' module Sanford class Router attr_reader :routes def initialize(&block) @service_handler_ns = nil @routes = [] self.instance_eval(&block) if !block.nil? end def service_handler_ns(value = nil) @view_handler_ns = value if !value.nil? ...
de5c21e8bd665add7d5ddc9435e38612e764772d
requirements-dev.txt
requirements-dev.txt
Pygments==2.1.3 coverage==5.5 coveralls==3.1.0 docopt==0.6.2 docutils==0.12 flake8==3.7.9
Pygments==2.1.3 coverage==5.5 coveralls==1.11.1 # Last version with Python2 support docopt==0.6.2 docutils==0.12 flake8==3.7.9
Downgrade to keep Python2 support
Downgrade to keep Python2 support
Text
mit
amoffat/sh,amoffat/sh
text
## Code Before: Pygments==2.1.3 coverage==5.5 coveralls==3.1.0 docopt==0.6.2 docutils==0.12 flake8==3.7.9 ## Instruction: Downgrade to keep Python2 support ## Code After: Pygments==2.1.3 coverage==5.5 coveralls==1.11.1 # Last version with Python2 support docopt==0.6.2 docutils==0.12 flake8==3.7.9
3a68bf4d018a99bfe0fd573030ba81f10f512709
plugins/camel/html/createEndpointWizard.html
plugins/camel/html/createEndpointWizard.html
<div ng-controller="Camel.EndpointController"> <form class="form-horizontal"> <div class="control-group"> <label class="control-label" for="componentName">Component</label> <div class="controls"> <select id="componentName" ng-model="selectedComponentName" ng-options="component...
<div ng-controller="Camel.EndpointController"> <form class="form-horizontal"> <div class="control-group"> <label class="control-label" for="componentName">Component</label> <div class="controls"> <select id="componentName" ng-model="selectedComponentName" ng-options="component...
Change Create endpoint button label to Create endpoint from data
Change Create endpoint button label to Create endpoint from data
HTML
apache-2.0
hawtio/hawtio-integration,hawtio/hawtio-integration,hawtio/hawtio-integration
html
## Code Before: <div ng-controller="Camel.EndpointController"> <form class="form-horizontal"> <div class="control-group"> <label class="control-label" for="componentName">Component</label> <div class="controls"> <select id="componentName" ng-model="selectedComponentName" ng-op...
5813d6e1a2c47da4d378a412eb77f3be780b4a7c
lib/pesapal/railtie.rb
lib/pesapal/railtie.rb
module Pesapal class Railtie < Rails::Railtie initializer 'pesapal.load_credentials' do path_to_yaml = "#{Rails.root}/config/pesapal.yml" if File.exist?(path_to_yaml) begin config.pesapal_credentials = YAML::load(IO.read(path_to_yaml))[Rails.env] rescue Errno::ENOENT ...
module Pesapal class Railtie < Rails::Railtie initializer 'pesapal.load_credentials' do path_to_yaml = "#{Rails.root}/config/pesapal.yml" if File.exist?(path_to_yaml) begin config.pesapal_credentials = YAML::load(IO.read(path_to_yaml))[Rails.env] rescue Errno::ENOENT ...
Set default values if YAML file is missing
Set default values if YAML file is missing
Ruby
mit
itsmrwave/pesapal-gem
ruby
## Code Before: module Pesapal class Railtie < Rails::Railtie initializer 'pesapal.load_credentials' do path_to_yaml = "#{Rails.root}/config/pesapal.yml" if File.exist?(path_to_yaml) begin config.pesapal_credentials = YAML::load(IO.read(path_to_yaml))[Rails.env] rescue Err...
b92c17459b2abdd950defd7b5bfc9a5becfd8906
package.json
package.json
{ "name": "quote-cli", "version": "1.0.3", "description": "Get a random quote or the quote of the day in your CLI", "license": "MIT", "repository": "riyadhalnur/quote-cli", "author": { "name": "Riyadh Al Nur", "email": "riyadhalnur@verticalaxisbd.com", "url": "blog.verticalaxisbd.com" }, "bi...
{ "name": "quote-cli", "version": "1.0.3", "description": "Get a random quote or the quote of the day in your CLI", "license": "MIT", "repository": "riyadhalnur/quote-cli", "author": { "name": "Riyadh Al Nur", "email": "riyadhalnur@verticalaxisbd.com", "url": "blog.verticalaxisbd.com" }, "bi...
Use quote instead of quote-cli when invoked
Use quote instead of quote-cli when invoked
JSON
mit
riyadhalnur/quote-cli
json
## Code Before: { "name": "quote-cli", "version": "1.0.3", "description": "Get a random quote or the quote of the day in your CLI", "license": "MIT", "repository": "riyadhalnur/quote-cli", "author": { "name": "Riyadh Al Nur", "email": "riyadhalnur@verticalaxisbd.com", "url": "blog.verticalaxisbd...
c5dffd58c0e21ff6fce33e251f7821dd0a04ebf1
ci/deploy_gh.sh
ci/deploy_gh.sh
setup_git() { git config --global user.email "zhangt@frib.msu.edu" git config --global user.name "Travis CI" } add_files() { cp -arv docs/build/html/* . \ | awk -F'->' '{print $2}' \ | sed "s/[\’\ \‘]//g" > /tmp/filelist for ifile in `cat /tmp/filelist` do git add ${if...
setup_git() { git config --global user.email "zhangt@frib.msu.edu" git config --global user.name "Travis CI" } add_files() { cp -arv docs/build/html/* . \ | awk -F'->' '{print $2}' \ | sed "s/[\’\ \‘]//g" > /tmp/filelist for ifile in `cat /tmp/filelist` do git add ${if...
Change the way creating gh-pages branch.
Change the way creating gh-pages branch.
Shell
bsd-3-clause
archman/phantasy,archman/phantasy
shell
## Code Before: setup_git() { git config --global user.email "zhangt@frib.msu.edu" git config --global user.name "Travis CI" } add_files() { cp -arv docs/build/html/* . \ | awk -F'->' '{print $2}' \ | sed "s/[\’\ \‘]//g" > /tmp/filelist for ifile in `cat /tmp/filelist` do ...
9e21e96b2a4fdd0485946dfe7ef85b7475ee00a4
app/views/dashboard/_projects.html.haml
app/views/dashboard/_projects.html.haml
.panel.panel-default .panel-heading.clearfix = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control' - if current_user.can_create_project? %span.pull-right = link_to new_project_path, class: "btn btn-new" do %i.icon-plus New ...
.panel.panel-default .panel-heading.clearfix = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control' - if current_user.can_create_project? %span.pull-right = link_to new_project_path, class: "btn btn-new" do %i.icon-plus New ...
Fix dashboard "show more project" link padding
Fix dashboard "show more project" link padding Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
Haml
mit
dvrylc/gitlabhq,adaiguoguo/gitlab_globalserarch,julianengel/gitlabhq,akumetsuv/gitlab,fearenales/gitlabhq,iiet/iiet-git,darkrasid/gitlabhq,screenpages/gitlabhq,lvfeng1130/gitlabhq,ayufan/gitlabhq,LUMC/gitlabhq,rebecamendez/gitlabhq,Exeia/gitlabhq,ayufan/gitlabhq,michaKFromParis/sparkslab,whluwit/gitlabhq,zBMNForks/gitl...
haml
## Code Before: .panel.panel-default .panel-heading.clearfix = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control' - if current_user.can_create_project? %span.pull-right = link_to new_project_path, class: "btn btn-new" do %i.icon-plu...
f6328ed913d1ca95678ad2e30df881695b5f4136
app/styles/components/site-footer.scss
app/styles/components/site-footer.scss
.site-footer { margin: 50px 0 20px 0; h4 { margin: 7px 0; } } .footer-logo { @include sprite($logo-small); display: inline-block; text-indent: -9999px; } .footer-columns { > li { float: left; &:first-child { width: 28% } width: 18%; } } @mixin footer-icon { content: ""; ...
.site-footer { background: #f8f8f8; margin: 50px -10px 0; padding: 20px 0 30px; h4 { margin: 7px 0; } } .footer-logo { @include sprite($logo-small); display: inline-block; text-indent: -9999px; } .footer-columns { > li { float: left; &:first-child { width: 28% } width: 18...
Add light gray background to site footer
Add light gray background to site footer
SCSS
mit
jderr-mx/code-corps-ember,jderr-mx/code-corps-ember,code-corps/code-corps-ember,code-corps/code-corps-ember
scss
## Code Before: .site-footer { margin: 50px 0 20px 0; h4 { margin: 7px 0; } } .footer-logo { @include sprite($logo-small); display: inline-block; text-indent: -9999px; } .footer-columns { > li { float: left; &:first-child { width: 28% } width: 18%; } } @mixin footer-icon {...
5b0dad5d39fb4c67339d2a3b9f706eb5a495a950
app/views/needs/_form.html.erb
app/views/needs/_form.html.erb
<%= semantic_form_for(@need) do |f| %> <% if @need.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@need.errors.count, "error") %> prohibited this need from being saved:</h2> <ul> <% @need.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul...
<%= semantic_form_for(@need) do |f| %> <% if @need.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@need.errors.count, "error") %> prohibited this need from being saved:</h2> <ul> <% @need.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul...
Add link back to list of needs
Add link back to list of needs
HTML+ERB
mit
gds-attic/need-o-tron,gds-attic/need-o-tron,gds-attic/need-o-tron
html+erb
## Code Before: <%= semantic_form_for(@need) do |f| %> <% if @need.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@need.errors.count, "error") %> prohibited this need from being saved:</h2> <ul> <% @need.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% e...
88857cbc998d82b8af2d2224f04a79f95a730a82
src/main/java/com/ice/av/sample/entity/Info.java
src/main/java/com/ice/av/sample/entity/Info.java
package com.ice.av.sample.entity; import java.util.Date; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Info { @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(Info.class); private String info = "This is a test info..."; publ...
package com.ice.av.sample.entity; import java.util.Date; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Info { @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(Info.class); private String info = "This is a test info..."; publ...
Change the Date format to String
Change the Date format to String
Java
apache-2.0
A-h-Ahmadi/testJenkins
java
## Code Before: package com.ice.av.sample.entity; import java.util.Date; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Info { @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(Info.class); private String info = "This is a test info..."; pu...
3a1888903f1e5468c976273deb98511834353f90
README.md
README.md
<<<<<<< HEAD doorwatcher =========== stub ======= Readme for DoorWatcher Updated 11/18/2014 Currently DoorWatcher is a work in progress with no additional information available at this time. >>>>>>> origin/Initial
doorwatcher =========== stub ======= Readme for DoorWatcher Updated 11/18/2014 Currently DoorWatcher is a work in progress with no additional information available at this time.
Remove merge artifacts that snuck in
Remove merge artifacts that snuck in
Markdown
mit
CirrusMio/doorwatcher,CirrusMio/doorwatcher
markdown
## Code Before: <<<<<<< HEAD doorwatcher =========== stub ======= Readme for DoorWatcher Updated 11/18/2014 Currently DoorWatcher is a work in progress with no additional information available at this time. >>>>>>> origin/Initial ## Instruction: Remove merge artifacts that snuck in ## Code After: doorwatcher ========...
381e9ea775ebb3541f22a0254f8a84277803e4a7
blocks/image/templates/worldskills_navbar_brand.php
blocks/image/templates/worldskills_navbar_brand.php
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php $c = Page::getCurrentPage(); ?> <?php if (is_object($f)): ?> <?php if ($maxWidth > 0 || $maxHeight > 0) { $im = Core::make('helper/image'); $thumb = $im->getThumbnail( $f, $maxWidth, $maxHeight ...
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php $c = Page::getCurrentPage(); ?> <?php if (is_object($f)): ?> <?php if ($maxWidth > 0 || $maxHeight > 0) { $im = Core::make('helper/image'); $thumb = $im->getThumbnail( $f, $maxWidth, $maxHeight ...
Add support for title next to logo in navbar
Add support for title next to logo in navbar
PHP
mit
worldskills/concrete5-worldskills,worldskills/concrete5-worldskills
php
## Code Before: <?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php $c = Page::getCurrentPage(); ?> <?php if (is_object($f)): ?> <?php if ($maxWidth > 0 || $maxHeight > 0) { $im = Core::make('helper/image'); $thumb = $im->getThumbnail( $f, $maxWidth, ...
351fc76bbaa7256259b43897f8f807699e2d54b8
config/bootstrap.php
config/bootstrap.php
<?php /** * CakeResque bootstrap file. * * Used to load CakeResque class and initialize it. * * PHP version 5 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @author Wan Qi Chen <kami@kamisama.me> * @copyright Copyright 2012, Wan Qi Chen <k...
<?php /** * CakeResque bootstrap file. * * Used to load CakeResque class and initialize it. * * PHP version 5 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @author Wan Qi Chen <kami@kamisama.me> * @copyright Copyright 2012, Wan Qi Chen <k...
Fix the require path of CakeResque.php
Fix the require path of CakeResque.php
PHP
mit
mfn/Cake-Resque,wa0x6e/Cake-Resque,wa0x6e/Cake-Resque,kamisama/Cake-Resque,kamisama/Cake-Resque,jbourassa/Cake-Resque,manierim/Cake-Resque,voycey/Cake-Resque,jbourassa/Cake-Resque,voycey/Cake-Resque,mfn/Cake-Resque,manierim/Cake-Resque
php
## Code Before: <?php /** * CakeResque bootstrap file. * * Used to load CakeResque class and initialize it. * * PHP version 5 * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @author Wan Qi Chen <kami@kamisama.me> * @copyright Copyright 2012...
bd00317d2496d24c0296b6c67601f0f139051da9
src/pathfinding/nav-mesh.js
src/pathfinding/nav-mesh.js
/** * nav-mesh * * Waits for a mesh to be loaded on the current entity, then sets it as the * nav mesh in the pathfinding system. */ module.exports = AFRAME.registerComponent('nav-mesh', { init: function () { this.system = this.el.sceneEl.systems.nav; this.hasLoadedNavMesh = false; this.el.addEventLi...
/** * nav-mesh * * Waits for a mesh to be loaded on the current entity, then sets it as the * nav mesh in the pathfinding system. */ module.exports = AFRAME.registerComponent('nav-mesh', { schema: { nodeName: {type: 'string'} }, init: function () { this.system = this.el.sceneEl.systems.nav; this...
Allow to specify a node name to look for as navmesh
Allow to specify a node name to look for as navmesh This is useful for models that already embed a navmesh, as we can just use them as they are and not e.g. extract the navmesh in a separate model.
JavaScript
mit
donmccurdy/sandbox-aframe
javascript
## Code Before: /** * nav-mesh * * Waits for a mesh to be loaded on the current entity, then sets it as the * nav mesh in the pathfinding system. */ module.exports = AFRAME.registerComponent('nav-mesh', { init: function () { this.system = this.el.sceneEl.systems.nav; this.hasLoadedNavMesh = false; th...
9a1f442dfb0c5112a98fed9b1eeacede5e34374a
snapcraft.yaml
snapcraft.yaml
name: ipfs version: master summary: global, versioned, peer-to-peer filesystem description: | IPFS combines good ideas from Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in....
name: ipfs version: master summary: global, versioned, peer-to-peer filesystem description: | IPFS combines good ideas from Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in....
Fix for when GOPATH is not set
Fix for when GOPATH is not set
YAML
mit
elopio/ipfs-snap
yaml
## Code Before: name: ipfs version: master summary: global, versioned, peer-to-peer filesystem description: | IPFS combines good ideas from Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with perm...
bc74c4f0488e38cddede335a3a060822acc01620
core/src/main/java/org/javarosa/xpath/expr/XPathUnionExpr.java
core/src/main/java/org/javarosa/xpath/expr/XPathUnionExpr.java
package org.javarosa.xpath.expr; import org.javarosa.core.model.condition.EvaluationContext; import org.javarosa.core.model.instance.DataInstance; import org.javarosa.core.util.externalizable.DeserializationException; import org.javarosa.core.util.externalizable.PrototypeFactory; import org.javarosa.xpath.XPathUnsuppo...
package org.javarosa.xpath.expr; import org.javarosa.core.model.condition.EvaluationContext; import org.javarosa.core.model.instance.DataInstance; import org.javarosa.core.util.externalizable.DeserializationException; import org.javarosa.core.util.externalizable.PrototypeFactory; import org.javarosa.xpath.XPathUnsuppo...
Fix externalization oversite that would have required a migration
Fix externalization oversite that would have required a migration
Java
apache-2.0
dimagi/commcare-core,dimagi/commcare,dimagi/commcare-core,dimagi/commcare,dimagi/commcare-core,dimagi/commcare
java
## Code Before: package org.javarosa.xpath.expr; import org.javarosa.core.model.condition.EvaluationContext; import org.javarosa.core.model.instance.DataInstance; import org.javarosa.core.util.externalizable.DeserializationException; import org.javarosa.core.util.externalizable.PrototypeFactory; import org.javarosa.xp...
aafd7eb91372f1abf304ae1fecbc13712219772b
lib/form_input/r18n.rb
lib/form_input/r18n.rb
require 'r18n-core' class FormInput include R18n::Helpers class Parameter include R18n::Helpers # Localized version of error message formatting. See original implementation for details. def format_error_message( msg, count = nil, singular = nil, *rest ) return super unless msg.is_a?( Sy...
require 'r18n-core' class FormInput include R18n::Helpers class Parameter include R18n::Helpers # R18n specific methods. module R18nMethods # Localized version of error message formatting. See original implementation for details. def format_error_message( msg, count = nil, sin...
Put R18n related methods into its own submodule to make it easy to override them again.
Put R18n related methods into its own submodule to make it easy to override them again.
Ruby
mit
raxoft/form_input
ruby
## Code Before: require 'r18n-core' class FormInput include R18n::Helpers class Parameter include R18n::Helpers # Localized version of error message formatting. See original implementation for details. def format_error_message( msg, count = nil, singular = nil, *rest ) return super unle...
afc7a8c4f5659ace3e58debba3cac81c661d52f1
.travis.yml
.travis.yml
language: node_js node_js: - "8" - "7" - "6" - "5" - "4" os: - linux - osx before_deploy: - npm run build deploy: provider: npm email: "info@valentineus.link" api_key: $NPM_PROJECT_TOKEN notifications: email: - "info@valentineus.link" before_install: - n...
language: node_js node_js: - "8" - "7" - "6" - "5" - "4" os: - linux - osx before_deploy: - npm run build deploy: provider: npm email: "info@valentineus.link" api_key: $NPM_PROJECT_TOKEN notifications: email: - "info@valentineus.link" before_install: - n...
Add code validation to the standardization
Add code validation to the standardization
YAML
mit
AncientSouls/Channels
yaml
## Code Before: language: node_js node_js: - "8" - "7" - "6" - "5" - "4" os: - linux - osx before_deploy: - npm run build deploy: provider: npm email: "info@valentineus.link" api_key: $NPM_PROJECT_TOKEN notifications: email: - "info@valentineus.link" before_...
e86364ff1111ffb623417f287f50c081296a1f13
readthedocs.yml
readthedocs.yml
formats: - pdf requirements_file: requirements_rtfd.txt python: version: 3 setup_py_install: true
build: image: latest formats: - pdf requirements_file: requirements_rtfd.txt python: version: 3.6 setup_py_install: true
Add RTD Python 3.6 support.
Add RTD Python 3.6 support.
YAML
mit
arkottke/pyrotd
yaml
## Code Before: formats: - pdf requirements_file: requirements_rtfd.txt python: version: 3 setup_py_install: true ## Instruction: Add RTD Python 3.6 support. ## Code After: build: image: latest formats: - pdf requirements_file: requirements_rtfd.txt python: version: 3.6 setup_py_install: true
c261777d394d5638131fd175799696728b94ced6
CHANGES.md
CHANGES.md
Changelog ========= 0.1 ----- ### 0.1.0 Parse() implemented (passing all tests). ### 0.1.1 Fix: Case & tests for empty file name 0.2 ----- ### 0.2.0 Added: Command & Subcommand handling, Up() (passing all tests.) ### 0.2.1 Fix: Visibility issues ### 0.2.2 Added: Global init function. ### 0.3.0 Added: hel...
Changelog ========= 0.1 ----- ### 0.1.0 Parse() implemented (passing all tests). ### 0.1.1 Fix: Case & tests for empty file name 0.2 ----- ### 0.2.0 Added: Command & Subcommand handling, Up() (passing all tests.) ### 0.2.1 Fix: Visibility issues ### 0.2.2 Added: Global init function. ### 0.3.0 Added: hel...
Add 0.4.1 changes to changelog
Add 0.4.1 changes to changelog
Markdown
bsd-3-clause
christophberger/start
markdown
## Code Before: Changelog ========= 0.1 ----- ### 0.1.0 Parse() implemented (passing all tests). ### 0.1.1 Fix: Case & tests for empty file name 0.2 ----- ### 0.2.0 Added: Command & Subcommand handling, Up() (passing all tests.) ### 0.2.1 Fix: Visibility issues ### 0.2.2 Added: Global init function. ### 0...
28c70d566a96da54ca10b6557a02d40e465baaa2
source/nuPickers/Shared/DataSource/DataSourceResource.js
source/nuPickers/Shared/DataSource/DataSourceResource.js
 angular.module('umbraco.resources') .factory('nuPickers.Shared.DataSource.DataSourceResource', ['$http', 'editorState', function ($http, editorState) { return { getEditorDataItems: function (model, typeahead) { // returns [{"key":"","label":""},{"key"...
 angular.module('umbraco.resources') .factory('nuPickers.Shared.DataSource.DataSourceResource', ['$http', 'editorState', function ($http, editorState) { return { getEditorDataItems: function (model, typeahead) { var parentId = 0; ...
Allow for the pickers to be used in custom dashboards
Allow for the pickers to be used in custom dashboards The current setup for nupickers does not allow it to exist outside of the current page context. All that needs to happen is a value needs to be passed for the currentId and parentId if editorstate is null.
JavaScript
mit
uComponents/nuPickers,JimBobSquarePants/nuPickers,LottePitcher/nuPickers,LottePitcher/nuPickers,LottePitcher/nuPickers,uComponents/nuPickers,JimBobSquarePants/nuPickers,iahdevelop/nuPickers,uComponents/nuPickers,iahdevelop/nuPickers,abjerner/nuPickers,iahdevelop/nuPickers,JimBobSquarePants/nuPickers,abjerner/nuPickers,...
javascript
## Code Before:  angular.module('umbraco.resources') .factory('nuPickers.Shared.DataSource.DataSourceResource', ['$http', 'editorState', function ($http, editorState) { return { getEditorDataItems: function (model, typeahead) { // returns [{"key":"","l...
7f436cb4f57827520cfd48b18efd3a5852ea2995
src/carvel/templates/bundle/package/config/values.yml
src/carvel/templates/bundle/package/config/values.yml
(@ load("@ytt:data", "data") @)#@data/values --- scdf: deploy: binder: type: rabbit database: type: mariadb server: image: repository: (@= data.values.server.repository @) tag: (@= data.values.server.version @) ctr: image: tag: (@= data.values.ctr.version @) skipper...
(@ load("@ytt:data", "data") @)#@data/values --- scdf: deploy: binder: type: rabbit database: type: mariadb server: image: repository: (@= data.values.server.repository @) tag: (@= data.values.server.version @) ctr: image: tag: (@= data.values.ctr.version @) skipper...
Add grafana to bundle default value
Add grafana to bundle default value - Hopefully this resolves issue with airgap install so that grafana gets resolved correctly to resolved imgpkg lock file when it has a correct default value. - Relates #4769
YAML
apache-2.0
jvalkeal/spring-cloud-dataflow,jvalkeal/spring-cloud-dataflow,spring-cloud/spring-cloud-dataflow,spring-cloud/spring-cloud-data,spring-cloud/spring-cloud-dataflow,jvalkeal/spring-cloud-data,jvalkeal/spring-cloud-dataflow,jvalkeal/spring-cloud-data,jvalkeal/spring-cloud-data,spring-cloud/spring-cloud-dataflow,jvalkeal/s...
yaml
## Code Before: (@ load("@ytt:data", "data") @)#@data/values --- scdf: deploy: binder: type: rabbit database: type: mariadb server: image: repository: (@= data.values.server.repository @) tag: (@= data.values.server.version @) ctr: image: tag: (@= data.values.ctr.vers...
e77a22a688e1e31e422234fb871c4698a5ee4f6b
src/Listener/FormatMarkdown.php
src/Listener/FormatMarkdown.php
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Markdown\Listener; use Flarum\Event\ConfigureFormatter; use Illuminate\Contract...
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Markdown\Listener; use Flarum\Formatter\Event\Configuring; use Illuminate\Contr...
Update namespaces for beta 8
Update namespaces for beta 8 Refs flarum/core#1235.
PHP
mit
flarum/markdown,flarum/markdown
php
## Code Before: <?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Markdown\Listener; use Flarum\Event\ConfigureFormatter; use Ill...
5420dfb93bf66515ff15738e27d4de5ca3808189
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 - 5.6 services: - mongodb before_script: - composer self-update - composer install --dev -o -n - php artisan migrate:install --env="testing" script: - mkdir -p build/logs - vendor/bin/phpunit
language: php php: - 5.4 - 5.5 - 5.6 services: - mongodb before_script: - composer self-update - php -i | grep 'Mongo' - composer install --dev -o -n - php artisan migrate:install --env="testing" script: - mkdir -p build/logs - vendor/bin/phpunit
Test if mongo php ext is available
Travis: Test if mongo php ext is available
YAML
mit
scriptotek/okapi,scriptotek/katapi,scriptotek/katapi,scriptotek/okapi,scriptotek/okapi,scriptotek/katapi
yaml
## Code Before: language: php php: - 5.4 - 5.5 - 5.6 services: - mongodb before_script: - composer self-update - composer install --dev -o -n - php artisan migrate:install --env="testing" script: - mkdir -p build/logs - vendor/bin/phpunit ## Instruction: Travis: Test if mongo php ext is available ##...
ded63f5f2d8f4e320c23c773d4fc3793acb108c4
CHANGES.md
CHANGES.md
Revision `acab7093fd6da851eb5ebdcd18be4244ab9f1fb5` - Only proxy 200 responses [#1] ## 0.1.0 Revision `71f3fcaaf3b782aa6b810430b6b16e9e8dd7c2f3` - Initial release :star2:
Revision `b6c3dd7a0912184a08f37db95fffe5a9aa93087e` - Resize images if `width` & `height` params are present ## 0.1.1 Revision `acab7093fd6da851eb5ebdcd18be4244ab9f1fb5` - Only proxy 200 responses [#1] ## 0.1.0 Revision `71f3fcaaf3b782aa6b810430b6b16e9e8dd7c2f3` - Initial release :star2:
Add v0.2.0 to change log
Add v0.2.0 to change log
Markdown
mit
ryanlower/front,experiment/front
markdown
## Code Before: Revision `acab7093fd6da851eb5ebdcd18be4244ab9f1fb5` - Only proxy 200 responses [#1] ## 0.1.0 Revision `71f3fcaaf3b782aa6b810430b6b16e9e8dd7c2f3` - Initial release :star2: ## Instruction: Add v0.2.0 to change log ## Code After: Revision `b6c3dd7a0912184a08f37db95fffe5a9aa93087e` - Resize images if `w...
a4dac342bc01a0b2f2576a4b1b9d19d3c3b5b053
app/views/partials/navigation.jade
app/views/partials/navigation.jade
.navbar.navbar-default.navbar-fixed-top(role='navigation') .container .navbar-header button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse') span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand(href=...
.navbar.navbar-default.navbar-fixed-top(role='navigation') .container .navbar-header button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse') span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.navbar-brand(href=...
Add highlihting of active links in navbar
Add highlihting of active links in navbar
Jade
mit
webzepter/node-tt
jade
## Code Before: .navbar.navbar-default.navbar-fixed-top(role='navigation') .container .navbar-header button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse') span.sr-only Toggle navigation span.icon-bar span.icon-bar span.icon-bar a.na...
79f5d6163de9519b48e6058129d6d40def4036e4
images/php/cli/55-cli-helpers.sh
images/php/cli/55-cli-helpers.sh
dsql () { drush sql-sync $1 default } dfiles () { drush rsync $1:%files default:%files }
dsql () { drush sql-sync $1 @self } dfiles () { drush rsync $1:%files @self:%files }
Update dsql and dfiles aliases
Update dsql and dfiles aliases
Shell
apache-2.0
amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon
shell
## Code Before: dsql () { drush sql-sync $1 default } dfiles () { drush rsync $1:%files default:%files } ## Instruction: Update dsql and dfiles aliases ## Code After: dsql () { drush sql-sync $1 @self } dfiles () { drush rsync $1:%files @self:%files }
f7e464a17b49a618f50e6595bcfc51fba49a9e8c
packages/sf/SFML.yaml
packages/sf/SFML.yaml
homepage: https://github.com/jeannekamikaze/SFML changelog-type: '' hash: 035a1fe469d820e8f4f0e945559598ee7bcc4c27d5331d22e89609d23721ae8e test-bench-deps: {} maintainer: jeannekamikaze@gmail.com synopsis: SFML bindings changelog: '' basic-deps: base: ! '>4 && <5' all-versions: - '0.2.0.0' author: Marc Sunet latest: ...
homepage: https://github.com/jeannekamikaze/SFML changelog-type: '' hash: 0e445ea553f1f01c5bb200c9c7e2ff8689fadc0958e1d86fa567acb8f8bbd671 test-bench-deps: {} maintainer: jeannekamikaze@gmail.com synopsis: SFML bindings changelog: '' basic-deps: base: ! '>4 && <5' all-versions: - '0.2.0.0' - '2.3.2' author: Marc Sune...
Update from Hackage at 2015-11-05T14:16:53+0000
Update from Hackage at 2015-11-05T14:16:53+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/jeannekamikaze/SFML changelog-type: '' hash: 035a1fe469d820e8f4f0e945559598ee7bcc4c27d5331d22e89609d23721ae8e test-bench-deps: {} maintainer: jeannekamikaze@gmail.com synopsis: SFML bindings changelog: '' basic-deps: base: ! '>4 && <5' all-versions: - '0.2.0.0' author: Mar...
2b4e37c637d87eb6562b227000d84898fe450453
test/yaml-tomato-test.el
test/yaml-tomato-test.el
(ert-deftest count-white-spaces/test () (should (eq (count-white-spaces "a") 0)) (should (eq (count-white-spaces " a") 1)) (should (eq (count-white-spaces " a ") 1)) (should (eq (count-white-spaces " a") 2))) (ert-deftest get-yaml-key/test () (should (s-equals? (get-yaml-key " abc:") "abc")) (should (s-e...
(ert-deftest yaml-tomato--get-yaml-key/test () (should (s-equals? (yaml-tomato--get-yaml-key " abc:") "abc")) (should (s-equals? (yaml-tomato--get-yaml-key "hello_world:") "hello_world")) (should (s-equals? (yaml-tomato--get-yaml-key " hello1: abc") "hello1")))
Use preffered community standard way of naming
Use preffered community standard way of naming
Emacs Lisp
mit
RadekMolenda/yaml-tomato
emacs-lisp
## Code Before: (ert-deftest count-white-spaces/test () (should (eq (count-white-spaces "a") 0)) (should (eq (count-white-spaces " a") 1)) (should (eq (count-white-spaces " a ") 1)) (should (eq (count-white-spaces " a") 2))) (ert-deftest get-yaml-key/test () (should (s-equals? (get-yaml-key " abc:") "abc")...
63d15c45cb157fbf862c75b9e887199f1aaa4a86
docker-compose.yml
docker-compose.yml
version: '3' services: web: build: . ports: - "9292:9292" volumes: - .:/app links: - redis depends_on: - redis redis: image: redis command: redis-server /etc/redis/redis.conf volumes: - ./redis.conf:/etc/redis/redis.conf expose: - 6379
version: '3' services: web: build: . ports: - "9292:9292" volumes: - .:/app links: - redis depends_on: - redis tmpfs: - /tmp redis: image: redis command: redis-server /etc/redis/redis.conf volumes: - ./redis.conf:/etc/redis/redis.conf expos...
Make /tmp a real tmpfs
Make /tmp a real tmpfs
YAML
agpl-3.0
s3krit/file0,s3krit/file0,s3krit/file0
yaml
## Code Before: version: '3' services: web: build: . ports: - "9292:9292" volumes: - .:/app links: - redis depends_on: - redis redis: image: redis command: redis-server /etc/redis/redis.conf volumes: - ./redis.conf:/etc/redis/redis.conf expose: ...
57ebba8c101ee5036fa5998ea48da0cc733e6953
app/models/document_topic.rb
app/models/document_topic.rb
class DocumentTopic < ActiveRecord::Base belongs_to :document belongs_to :topic end
class DocumentTopic < ActiveRecord::Base belongs_to :document belongs_to :topic default_scope order("document_topics.ordering ASC") end
Order the documents on the admin page too.
Order the documents on the admin page too.
Ruby
mit
YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,hotvulcan/whitehall,hotvulcan/whitehall,askl56/whitehall,robinwhittleton/whitehall,alphagov/whitehall,ggoral/whitehall,ggoral/whitehall,robinwhittleton/whitehall,ggoral/w...
ruby
## Code Before: class DocumentTopic < ActiveRecord::Base belongs_to :document belongs_to :topic end ## Instruction: Order the documents on the admin page too. ## Code After: class DocumentTopic < ActiveRecord::Base belongs_to :document belongs_to :topic default_scope order("document_topics.ordering ASC") en...
b024999e010a7a096d158c75c73c93a5c6b80e08
whelk-extensions/src/main/groovy/converters/JsonLDLinkFinder.groovy
whelk-extensions/src/main/groovy/converters/JsonLDLinkFinder.groovy
package se.kb.libris.whelks.plugin import se.kb.libris.whelks.* import se.kb.libris.whelks.basic.* import groovy.util.logging.Slf4j as Log import org.codehaus.jackson.map.ObjectMapper @Log class JsonLDLinkFinder extends BasicPlugin implements LinkFinder { ObjectMapper mapper @Override Set<Link> findLi...
package se.kb.libris.whelks.plugin import se.kb.libris.whelks.* import se.kb.libris.whelks.basic.* import groovy.util.logging.Slf4j as Log import org.codehaus.jackson.map.ObjectMapper @Log class JsonLDLinkFinder extends BasicPlugin implements LinkFinder { ObjectMapper mapper @Override Set<Link> findLi...
Make sure the contentType is correct before trying to find links.
Make sure the contentType is correct before trying to find links.
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
groovy
## Code Before: package se.kb.libris.whelks.plugin import se.kb.libris.whelks.* import se.kb.libris.whelks.basic.* import groovy.util.logging.Slf4j as Log import org.codehaus.jackson.map.ObjectMapper @Log class JsonLDLinkFinder extends BasicPlugin implements LinkFinder { ObjectMapper mapper @Override ...
d599ba152a6b52e0ea0aad387b08348f6bdb628a
app/src/main/java/cn/sunner/sms2calendar/N12306Parser.java
app/src/main/java/cn/sunner/sms2calendar/N12306Parser.java
package cn.sunner.sms2calendar; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Sunner on 6/29/16. */ public class N12306Parser extends SMSParser { public N12306Parser(String text) { super(text); } ...
package cn.sunner.sms2calendar; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Sunner on 6/29/16. */ public class N12306Parser extends SMSParser { public N12306Parser(String text) { super(text); } ...
Append 站 to train station name
Append 站 to train station name
Java
mit
sunner/SMS2Calendar
java
## Code Before: package cn.sunner.sms2calendar; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by Sunner on 6/29/16. */ public class N12306Parser extends SMSParser { public N12306Parser(String text) { super(te...
954bdfad9b70fc3ea7e377d89072f414b705d7ed
gorse/templates/_header.html
gorse/templates/_header.html
<!DOCTYPE html> <meta charset="utf-8"> <meta name="referrer" content="no-referrer"> <title>Gorse</title> <script src="static/gorse.js"></script> <link href="static/gorse.css" rel="stylesheet"> <a href="{{.Path}}?sort-order={{.SortOrder}}&amp;user-id={{.UserID}}&amp;read-state={{.ReadState}}" ><h1>Gorse</h1></a>
<!DOCTYPE html> <meta charset="utf-8"> <meta name="referrer" content="no-referrer"> <title>Gorse</title> <script src="{{.Path}}/static/gorse.js"></script> <link href="{{.Path}}/static/gorse.css" rel="stylesheet"> <a href="{{.Path}}?sort-order={{.SortOrder}}&amp;user-id={{.UserID}}&amp;read-state={{.ReadState}}" ><h1>...
Use uri prefix when retrieving static files
Use uri prefix when retrieving static files
HTML
agpl-3.0
horgh/gorse,horgh/gorse,horgh/gorse
html
## Code Before: <!DOCTYPE html> <meta charset="utf-8"> <meta name="referrer" content="no-referrer"> <title>Gorse</title> <script src="static/gorse.js"></script> <link href="static/gorse.css" rel="stylesheet"> <a href="{{.Path}}?sort-order={{.SortOrder}}&amp;user-id={{.UserID}}&amp;read-state={{.ReadState}}" ><h1>Gors...
0070bc6f97941c36ae64e761ac98ad05a2ae423e
packages/rocketchat-ui-message/message/popup/messagePopupEmoji.html
packages/rocketchat-ui-message/message/popup/messagePopupEmoji.html
<template name="messagePopupEmoji"> <img class="emojione" src="//cdn.jsdelivr.net/emojione/assets/png/{{value}}.png"> {{_id}} </template>
<template name="messagePopupEmoji"> {{> emojione _id}} {{_id}} </template>
Fix emoji popup using emojione's template to render emojis
Fix emoji popup using emojione's template to render emojis
HTML
mit
acaronmd/Rocket.Chat,nishimaki10/Rocket.Chat,flaviogrossi/Rocket.Chat,ealbers/Rocket.Chat,matthewshirley/Rocket.Chat,igorstajic/Rocket.Chat,org100h1/Rocket.Panda,steedos/chat,mrsimpson/Rocket.Chat,snaiperskaya96/Rocket.Chat,JamesHGreen/Rocket.Chat,mccambridge/Rocket.Chat,4thParty/Rocket.Chat,igorstajic/Rocket.Chat,pach...
html
## Code Before: <template name="messagePopupEmoji"> <img class="emojione" src="//cdn.jsdelivr.net/emojione/assets/png/{{value}}.png"> {{_id}} </template> ## Instruction: Fix emoji popup using emojione's template to render emojis ## Code After: <template name="messagePopupEmoji"> {{> emojione _id}} {{_id}} </templa...
28b82c5f1f1642e6e2b3dfeec78d199dcf8b30bf
recipes/jupyterlab-nvdashboard/meta.yaml
recipes/jupyterlab-nvdashboard/meta.yaml
{% set name = "jupyterlab-nvdashboard" %} {% set version = "0.1.11" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rapidsai/{{ name }}/archive/{{ version }}.tar.gz sha256: 6cc0d741edf3e9865b8a0cd8eab1c0cb6de131e79001519bb3a1756b165d2617 build: noarch: python num...
{% set name = "jupyterlab-nvdashboard" %} {% set version = "0.1.11" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rapidsai/{{ name }}/archive/{{ version }}.tar.gz sha256: 6cc0d741edf3e9865b8a0cd8eab1c0cb6de131e79001519bb3a1756b165d2617 build: noarch: python num...
Add jupyterlab extension install step
Add jupyterlab extension install step
YAML
bsd-3-clause
stuertz/staged-recipes,jochym/staged-recipes,goanpeca/staged-recipes,chrisburr/staged-recipes,petrushy/staged-recipes,petrushy/staged-recipes,birdsarah/staged-recipes,johanneskoester/staged-recipes,kwilcox/staged-recipes,scopatz/staged-recipes,jochym/staged-recipes,stuertz/staged-recipes,ocefpaf/staged-recipes,goanpeca...
yaml
## Code Before: {% set name = "jupyterlab-nvdashboard" %} {% set version = "0.1.11" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rapidsai/{{ name }}/archive/{{ version }}.tar.gz sha256: 6cc0d741edf3e9865b8a0cd8eab1c0cb6de131e79001519bb3a1756b165d2617 build: noar...
8fd03f2f41aa5ec586d22cde50c8b901a0ec1635
doc/source/index.rst
doc/source/index.rst
=============================== OpenStack-Ansible Galera client =============================== This Ansible role installs the MariaDB operating system and Python packages used to interact with and manage a Galera cluster. Default variables ~~~~~~~~~~~~~~~~~ .. literalinclude:: ../../defaults/main.yml :language: ...
=============================== OpenStack-Ansible Galera client =============================== This Ansible role installs the MariaDB operating system and Python packages used to interact with and manage a Galera cluster. To clone or view the source code for this repository, visit the role repository for `galera_cli...
Update repository with reference to role git location
Update repository with reference to role git location Change-Id: Ia14ec331ce1482918f6415fe813c7f8a6e2477b4
reStructuredText
apache-2.0
openstack/openstack-ansible-galera_client,openstack/openstack-ansible-galera_client
restructuredtext
## Code Before: =============================== OpenStack-Ansible Galera client =============================== This Ansible role installs the MariaDB operating system and Python packages used to interact with and manage a Galera cluster. Default variables ~~~~~~~~~~~~~~~~~ .. literalinclude:: ../../defaults/main.ym...
c97a2bcf84e69e362417f1aa58d4290d74254df0
src/templates/src/router.js
src/templates/src/router.js
import { err, notFound } from './middlewares/errors' import { Router } from 'express' import ctrl from './controllers/' const router = Router() .get('users', ctrl.users.list) .post('users', ctrl.users.create) .post('login', ctrl.users.auth) .post('register', ctrl.users.register) .use(err) .use('*', notFound) export d...
import { err, notFound } from './middlewares/errors' import { Router } from 'express' import ctrl from './controllers/' const router = Router() .post('/auth', ctrl.users.auth) .post('/register', ctrl.users.register) Object.keys(ctrl).forEach((c) => { Object.keys(ctrl[c]).forEach((m) => { if (m === 'list') route...
Update routes (automatic routes list:create)
Update routes (automatic routes list:create)
JavaScript
mit
jrperdomoz/hobbit
javascript
## Code Before: import { err, notFound } from './middlewares/errors' import { Router } from 'express' import ctrl from './controllers/' const router = Router() .get('users', ctrl.users.list) .post('users', ctrl.users.create) .post('login', ctrl.users.auth) .post('register', ctrl.users.register) .use(err) .use('*', not...
2400ff53160efedc41b706543f2e5534242dee97
benchmarks/Cargo.toml
benchmarks/Cargo.toml
[package] name = "benchmark" version = "0.1.0" [dependencies] atomicring = "0.5.3" bus = "2.0.0" chan = "0.1.19" crossbeam = "0.3.0" crossbeam-deque = "0.4.1" crossbeam-channel = { path = ".." } futures-preview = "0.2.2" mpmc = "0.1.5" [[bin]] name = "atomicring" path = "atomicring.rs" [[bin]] name = "atomicringqueu...
[package] name = "benchmarks" version = "0.1.0" [profile.release] opt-level = 3 lto = true codegen-units = 1 incremental = false panic = 'abort' [dependencies] atomicring = "0.5.3" bus = "2.0.0" chan = "0.1.19" crossbeam = "0.3.0" crossbeam-deque = "0.4.1" crossbeam-channel = { path = ".." } futures-preview = "0.2.2"...
Configure opt levels in release mode
Configure opt levels in release mode
TOML
apache-2.0
crossbeam-rs/crossbeam,crossbeam-rs/crossbeam,crossbeam-rs/crossbeam,crossbeam-rs/crossbeam,aturon/crossbeam
toml
## Code Before: [package] name = "benchmark" version = "0.1.0" [dependencies] atomicring = "0.5.3" bus = "2.0.0" chan = "0.1.19" crossbeam = "0.3.0" crossbeam-deque = "0.4.1" crossbeam-channel = { path = ".." } futures-preview = "0.2.2" mpmc = "0.1.5" [[bin]] name = "atomicring" path = "atomicring.rs" [[bin]] name =...
7d857e3fcc4c6c6816fd5587bb2a833deece6aba
lib/CRDT.hs
lib/CRDT.hs
{-# LANGUAGE TypeFamilies #-} -- | Conflict-free replicated data types module CRDT ( CmRDT (..) , CvRDT , query ) where import Data.Semigroup (Semigroup) import Data.Kind (Type) {- | State-based, or convergent (Cv) replicated data type. Laws: 1. Commutativity: x <> y == y <> x ...
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} -- | Conflict-free replicated data types module CRDT ( CmRDT (..) , CvRDT , query ) where import Data.Kind (Type) import Data.Proxy (Proxy (..)) import Data.Semigroup (Semigroup) {- | State-based...
Add `initial` a class method
Add `initial` a class method
Haskell
bsd-3-clause
cblp/crdt
haskell
## Code Before: {-# LANGUAGE TypeFamilies #-} -- | Conflict-free replicated data types module CRDT ( CmRDT (..) , CvRDT , query ) where import Data.Semigroup (Semigroup) import Data.Kind (Type) {- | State-based, or convergent (Cv) replicated data type. Laws: 1. Commutativity: x ...
cd9ca056c0a2046ac1df4d9b3320b8560944d13f
.travis.yml
.travis.yml
language: java jdk: - oraclejdk8 cache: directories: - "$HOME/.m2/repository" branches: only: - master - "/^iterator-fixtures-[0-9]+\\.[0-9]+\\.[0-9]+/"
language: java jdk: - oraclejdk8 cache: directories: - "$HOME/.m2/repository" branches: only: - master - "/^iterator-fixtures-[0-9]+\\.[0-9]+\\.[0-9]+/" after_success: - mvn clean test jacoco:report coveralls:report env: global: secure: WojAofzPO32jARvbcX3XJoEJj0kGiITz582DwoXqqV7s4tGP5NyZ7wDJDnnXJMnYy...
Add Coveralls integration to Travis build
Add Coveralls integration to Travis build
YAML
apache-2.0
iteratoruk/iterator-fixtures
yaml
## Code Before: language: java jdk: - oraclejdk8 cache: directories: - "$HOME/.m2/repository" branches: only: - master - "/^iterator-fixtures-[0-9]+\\.[0-9]+\\.[0-9]+/" ## Instruction: Add Coveralls integration to Travis build ## Code After: language: java jdk: - oraclejdk8 cache: directories: - "$HOME/....
7e15c50628f5d0a03b5407923a1dc2db99932ba3
partner_company_group/models/res_partner.py
partner_company_group/models/res_partner.py
from odoo import fields, models class Contact(models.Model): _inherit = "res.partner" company_group_id = fields.Many2one( "res.partner", "Company group", domain=[("is_company", "=", True)] ) def _commercial_fields(self): return super()._commercial_fields() + ["company_group_id"]
from odoo import fields, models class Contact(models.Model): _inherit = "res.partner" company_group_id = fields.Many2one( "res.partner", "Company group", domain=[("is_company", "=", True)] ) company_group_member_ids = fields.One2many( comodel_name="res.partner", inverse_name=...
Add one2many counterpart for company_group_id TT34815
[IMP] partner_company_group: Add one2many counterpart for company_group_id TT34815
Python
agpl-3.0
OCA/partner-contact,OCA/partner-contact
python
## Code Before: from odoo import fields, models class Contact(models.Model): _inherit = "res.partner" company_group_id = fields.Many2one( "res.partner", "Company group", domain=[("is_company", "=", True)] ) def _commercial_fields(self): return super()._commercial_fields() + ["compan...
a9c4f566eaa620b6cec901f2aa8d533613d65983
src/http/client/sslclients/mod.rs
src/http/client/sslclients/mod.rs
//! SSL client support. //! //! Which particular library is used depends upon the configuration used at //! compile time; at present it can only be OpenSSL (`--cfg openssl`); without //! that, you won't be able to use SSL (an attempt to make an HTTPS connection //! will return an error). #[cfg(not(nossl))] pub use sel...
//! SSL client support. //! //! Which particular library is used depends upon the configuration used at //! compile time; at present it can only be OpenSSL (`--cfg openssl`); without //! that, you won't be able to use SSL (an attempt to make an HTTPS connection //! will return an error). #[cfg(not(nossl),not(target_os...
Disable SSL support on android.
Disable SSL support on android.
Rust
apache-2.0
Shraddha512/rust-http,Shraddha512/rust-http,servo/rust-http,Shraddha512/rust-http,servo/rust-http,servo/rust-http,servo/rust-http,Shraddha512/rust-http,Shraddha512/rust-http
rust
## Code Before: //! SSL client support. //! //! Which particular library is used depends upon the configuration used at //! compile time; at present it can only be OpenSSL (`--cfg openssl`); without //! that, you won't be able to use SSL (an attempt to make an HTTPS connection //! will return an error). #[cfg(not(noss...
4a1b5dc3cace66a8dbae0b7565ffa4296065811f
lib/tests/dashboard.js
lib/tests/dashboard.js
var Mocha = require('mocha'); module.exports = function (browser, dashboard, suite, config) { suite.addTest(new Mocha.Test('exists', exists)); var modules = Mocha.Suite.create(suite, 'modules'); dashboard.modules.forEach(function (module) { modules.addTest(new Mocha.Test(module.slug, require('./module-exis...
var Mocha = require('mocha'); module.exports = function (browser, dashboard, suite, config) { suite.beforeAll(function () { return browser.get(config.baseUrl + dashboard.slug); }); suite.addTest(new Mocha.Test('exists', exists)); var modules = Mocha.Suite.create(suite, 'modules'); dashboard.modules.fo...
Move browser page load to a before step
Move browser page load to a before step
JavaScript
mit
alphagov/cheapseats
javascript
## Code Before: var Mocha = require('mocha'); module.exports = function (browser, dashboard, suite, config) { suite.addTest(new Mocha.Test('exists', exists)); var modules = Mocha.Suite.create(suite, 'modules'); dashboard.modules.forEach(function (module) { modules.addTest(new Mocha.Test(module.slug, requir...
8c9d86c4c32b9df629e6296233a3fc5f3136f258
lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb
lib/paper_trail/frameworks/active_record/models/paper_trail/version.rb
require "paper_trail/version_concern" module PaperTrail # This is the default ActiveRecord model provided by PaperTrail. Most simple # applications will only use this and its partner, `VersionAssociation`, but # it is possible to sub-class, extend, or even do without this model entirely. # See the readme for ...
require "paper_trail/version_concern" module PaperTrail # This is the default ActiveRecord model provided by PaperTrail. Most simple # applications will use this model as-is, but it is possible to sub-class, # extend, or even do without this model entirely. See documentation section # 6.a. Custom Version Clas...
Clarify that VersionAssociation is in separate gem
Docs: Clarify that VersionAssociation is in separate gem
Ruby
mit
airblade/paper_trail,airblade/paper_trail
ruby
## Code Before: require "paper_trail/version_concern" module PaperTrail # This is the default ActiveRecord model provided by PaperTrail. Most simple # applications will only use this and its partner, `VersionAssociation`, but # it is possible to sub-class, extend, or even do without this model entirely. # See...
f27717ab234dd638b583ab9362d5cc8c276dbeda
app/models/champs/checkbox_champ.rb
app/models/champs/checkbox_champ.rb
class Champs::CheckboxChamp < Champ def search_terms if value == 'on' [libelle] end end def to_s value == 'on' ? 'oui' : 'non' end end
class Champs::CheckboxChamp < Champ def search_terms if value == 'on' [libelle] end end def to_s value == 'on' ? 'oui' : 'non' end def for_export value == 'on' ? 'on' : 'off' end end
Make the CheckboxChamp export similar to YesNoChamp
Make the CheckboxChamp export similar to YesNoChamp Previously, nil values would be returned as nil and not as off
Ruby
agpl-3.0
sgmap/tps,sgmap/tps,sgmap/tps
ruby
## Code Before: class Champs::CheckboxChamp < Champ def search_terms if value == 'on' [libelle] end end def to_s value == 'on' ? 'oui' : 'non' end end ## Instruction: Make the CheckboxChamp export similar to YesNoChamp Previously, nil values would be returned as nil and not as off ## Code A...
b71a96f818c66b5578fb7c4475b67ecdcb16937a
recipes/recipe_modules/gclient/tests/sync_failure.py
recipes/recipe_modules/gclient/tests/sync_failure.py
from recipe_engine import post_process DEPS = ['gclient'] def RunSteps(api): src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache') api.gclient.sync(src_cfg) def GenTests(api): yield api.test( 'no-json', api.override_step_data('gclient sync', retcode=1), api.post_check( la...
from recipe_engine import post_process DEPS = ['gclient'] def RunSteps(api): src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache') api.gclient.sync(src_cfg) def GenTests(api): yield api.test( 'no-json', api.override_step_data('gclient sync', retcode=1), # Should not fail with uncau...
Replace customzied test failure assertion with ResultReasonRE from engine
Replace customzied test failure assertion with ResultReasonRE from engine This change is to facilitate the annotation protocol -> luciexe protocol migration in the future. The failure response structure will be changed after the migration. Therefore, we only need to change the implementation detail of ResultReasonRE a...
Python
bsd-3-clause
CoherentLabs/depot_tools,CoherentLabs/depot_tools
python
## Code Before: from recipe_engine import post_process DEPS = ['gclient'] def RunSteps(api): src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache') api.gclient.sync(src_cfg) def GenTests(api): yield api.test( 'no-json', api.override_step_data('gclient sync', retcode=1), api.post_che...
29d2b723487b09f8042a955eb8afedb2f7f78a11
conn.go
conn.go
// +build !darwin package tftp import "net" const udp = "udp" func localSystem(c *net.UDPConn) string { return c.LocalAddr().String() }
// +build !darwin package tftp import "net" import "fmt" import "strconv" const udp = "udp" var localhost string = determineLocalhost() func determineLocalhost() string { l, err := net.ListenTCP("tcp", nil) if err != nil { panic(fmt.Sprintf("ListenTCP error: %s", err)) } _, lport, _ := net.SplitHostPort(l.Ad...
Determine correct localhost address for tests.
Determine correct localhost address for tests.
Go
mit
pin/tftp
go
## Code Before: // +build !darwin package tftp import "net" const udp = "udp" func localSystem(c *net.UDPConn) string { return c.LocalAddr().String() } ## Instruction: Determine correct localhost address for tests. ## Code After: // +build !darwin package tftp import "net" import "fmt" import "strconv" const ...
e22af8bbe5f1a4e4aec28052da2ed421f940c749
dewalls.qbs
dewalls.qbs
import qbs 1.0 Project { name: "dewalls" StaticLibrary { name: "dewalls" Depends { name: "cpp" } Depends { name: "Qt"; submodules: ["core"] } cpp.includePaths: ["src"] Export { Depends { name: "cpp" } cpp.includePaths: ["src"] ...
import qbs 1.0 Project { name: "dewalls" StaticLibrary { name: "dewalls" Depends { name: "cpp" } Depends { name: "Qt"; submodules: ["core"] } cpp.includePaths: ["src"] Export { Depends { name: "cpp" } cpp.includePaths: ["src"] ...
Fix C++ compiling errors on linux
Fix C++ compiling errors on linux
QML
mit
jedwards1211/dewalls,jlillest/dewalls
qml
## Code Before: import qbs 1.0 Project { name: "dewalls" StaticLibrary { name: "dewalls" Depends { name: "cpp" } Depends { name: "Qt"; submodules: ["core"] } cpp.includePaths: ["src"] Export { Depends { name: "cpp" } cpp.includePaths: ["src"] ...
eeaa2fe882ea8f46673e6adb686810a333fecf98
gradle.properties
gradle.properties
ideaVersion=193-EAP-SNAPSHOT downloadIdeaSources=true instrumentPluginCode=true version=SNAPSHOT javaVersion=1.8 kotlinVersion=1.3.60 publishUsername=username publishToken=token publishChannels=eap # Since 192 version of IJ java plugin should be defined separately # Set this value to true if you are going to run tests...
ideaVersion=2019.3 downloadIdeaSources=true instrumentPluginCode=true version=SNAPSHOT javaVersion=1.8 kotlinVersion=1.3.61 publishUsername=username publishToken=token publishChannels=eap # Since 192 version of IJ java plugin should be defined separately # Set this value to true if you are going to run tests under ide...
Update idea and kotlin version
Update idea and kotlin version
INI
mit
JetBrains/ideavim,JetBrains/ideavim
ini
## Code Before: ideaVersion=193-EAP-SNAPSHOT downloadIdeaSources=true instrumentPluginCode=true version=SNAPSHOT javaVersion=1.8 kotlinVersion=1.3.60 publishUsername=username publishToken=token publishChannels=eap # Since 192 version of IJ java plugin should be defined separately # Set this value to true if you are go...
886897705ba1354e3e6268346fc177b2abf18b6d
test/_utils.sh
test/_utils.sh
function invoke-test() { local RUNDIR=$(mktemp -d) cd "$RUNDIR" echo "RUNDIR: $RUNDIR" the-test local SUCCESS=$? [[ $SUCCESS -eq 0 ]] && echo "PASSED" || echo "FAILED" if [[ "$@" == *stop* ]]; then bash -i fi rm -rf "$RUNDIR" exit $SUCCESS } function invoke-all(...
function invoke-test() { local RUNDIR=$(mktemp -d) cd "$RUNDIR" echo "RUNDIR: $RUNDIR" the-test local SUCCESS=$? [[ $SUCCESS -eq 0 ]] && echo "PASSED" || echo "FAILED" if [[ "$@" == *stop* ]]; then bash -i fi rm -rf "$RUNDIR" exit $SUCCESS } function invoke-all(...
Write the test output to an optional log file
Write the test output to an optional log file
Shell
apache-2.0
episource/git-merge-subtree2
shell
## Code Before: function invoke-test() { local RUNDIR=$(mktemp -d) cd "$RUNDIR" echo "RUNDIR: $RUNDIR" the-test local SUCCESS=$? [[ $SUCCESS -eq 0 ]] && echo "PASSED" || echo "FAILED" if [[ "$@" == *stop* ]]; then bash -i fi rm -rf "$RUNDIR" exit $SUCCESS } func...
a2169a08d5149c21298794363501f68dd68e1aeb
packages/na/namespace.yaml
packages/na/namespace.yaml
homepage: https://github.com/xu-hao/namespace changelog-type: '' hash: 627be6d84b836a7c0682b477e56944bb85d4a7fcccd2226e0990bbf08e6c23a5 test-bench-deps: base: -any namespace: -any maintainer: xuh@email.unc.edu synopsis: A Generic Haskell library for managing namespaces changelog: '' basic-deps: monoid-extras: ! '...
homepage: https://github.com/xu-hao/namespace changelog-type: '' hash: 48cf98c780cb5e7da8ad9ce5eeacbcf5ffedfbbc74eb876532ade9669d257ae3 test-bench-deps: base: -any namespace: -any maintainer: xuh@email.unc.edu synopsis: A Generic Haskell library for managing namespaces changelog: '' basic-deps: monoid-extras: ! '...
Update from Hackage at 2016-11-29T22:26:48Z
Update from Hackage at 2016-11-29T22:26:48Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/xu-hao/namespace changelog-type: '' hash: 627be6d84b836a7c0682b477e56944bb85d4a7fcccd2226e0990bbf08e6c23a5 test-bench-deps: base: -any namespace: -any maintainer: xuh@email.unc.edu synopsis: A Generic Haskell library for managing namespaces changelog: '' basic-deps: mo...
28c6af1381a1fc38b20ce05e85f494f3ae2beeb4
arcutils/masquerade/templatetags/masquerade.py
arcutils/masquerade/templatetags/masquerade.py
from django import template from .. import perms from ..settings import get_user_attr register = template.Library() @register.filter def is_masquerading(user): info = getattr(user, get_user_attr()) return info['is_masquerading'] @register.filter def can_masquerade(user): return perms.can_masquerade(u...
from django import template from .. import perms from ..settings import get_user_attr, is_enabled register = template.Library() @register.filter def is_masquerading(user): if not is_enabled(): return False info = getattr(user, get_user_attr(), None) return info['is_masquerading'] @register.fi...
Make is_masquerading template tag more robust
Make is_masquerading template tag more robust When masquerading is not enabled, immediately return False to avoid checking for a request attribute that won't be present.
Python
mit
PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils
python
## Code Before: from django import template from .. import perms from ..settings import get_user_attr register = template.Library() @register.filter def is_masquerading(user): info = getattr(user, get_user_attr()) return info['is_masquerading'] @register.filter def can_masquerade(user): return perms....
44dfccfeb025f4eb61c9f31af287c00a46a37a0d
fastlib/branches/fastlib-stl/fastlib/fx/option_impl.h
fastlib/branches/fastlib-stl/fastlib/fx/option_impl.h
namespace mlpack { /* * @brief Registers a parameter with IO. * This allows the registration of parameters at program start. */ template<typename N> Option<N>::Option(bool ignoreTemplate, N defaultValue, const char* identifier, const char* description, ...
namespace mlpack { /* * @brief Registers a parameter with IO. * This allows the registration of parameters at program start. */ template<typename N> Option<N>::Option(bool ignoreTemplate, N defaultValue, const char* identifier, const char* description, ...
Set a default value for boolean options (false).
Set a default value for boolean options (false).
C
bsd-3-clause
minhpqn/mlpack,palashahuja/mlpack,Azizou/mlpack,ajjl/mlpack,minhpqn/mlpack,ranjan1990/mlpack,bmswgnp/mlpack,lezorich/mlpack,ranjan1990/mlpack,theranger/mlpack,thirdwing/mlpack,trungda/mlpack,stereomatchingkiss/mlpack,chenmoshushi/mlpack,BookChan/mlpack,darcyliu/mlpack,ersanliqiao/mlpack,stereomatchingkiss/mlpack,datach...
c
## Code Before: namespace mlpack { /* * @brief Registers a parameter with IO. * This allows the registration of parameters at program start. */ template<typename N> Option<N>::Option(bool ignoreTemplate, N defaultValue, const char* identifier, const char* descri...
4aa73c73195520c38e074d9a499791d1daa192ed
readme.md
readme.md
![screenshot](https://raw.githubusercontent.com/jlord/patchwork/gh-pages/patchwork-ss.png) This repository is a website hosted by [GitHub Pages](http://pages.github.com). It goes along with [Git-it](http://www.github.com/jlord/git-it), a terminal based workshop for learning Git and GitHub. Users fork this repository...
--- ### NOTICE When you complete Git-it your name is added to the long list of others who have completed it at [jlord.us/patchwork](http://jlord.us/patchwork) (this repository's site). Recently the site became too large to edit with the regular GitHub API so it is currently not being upated. **Git-it it still works an...
Add notice about patchwork site size
Add notice about patchwork site size
Markdown
bsd-2-clause
joysjsj/patchwork,taichunmin/patchwork,raju249/patchwork,gtbay707/patchwork,cadazab/patchwork,ruicorte/patchwork,Frankyx93/patchwork,SaraHal/patchwork,elzbeth/patchwork,carufenon/patchwork,laurenamy/patchwork,cynthialac/patchwork,apound01/patchwork,rkaranam/patchwork,colpac64/patchwork,Misatoteen/hello-world,TheSpitefu...
markdown
## Code Before: ![screenshot](https://raw.githubusercontent.com/jlord/patchwork/gh-pages/patchwork-ss.png) This repository is a website hosted by [GitHub Pages](http://pages.github.com). It goes along with [Git-it](http://www.github.com/jlord/git-it), a terminal based workshop for learning Git and GitHub. Users fork...
5d2858d740eebfe180ceef22ae5cc80b902a5ccf
books/views.py
books/views.py
from django.core.urlresolvers import reverse from django.http.response import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.utils.translation import ugettext as _ from books.forms import BookForm from shared.models import BookType def index(request): book_list = BookType.obje...
from django.core.urlresolvers import reverse from django.http.response import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.utils.translation import ugettext as _ from books.forms import BookForm from shared.models import BookType def index(request): book_list = BookType.obje...
Fix KeyError in alerts implementation
Fix KeyError in alerts implementation - Fix for alert that wasn't dismissing after refreshing the page
Python
agpl-3.0
m4tx/egielda,m4tx/egielda,m4tx/egielda
python
## Code Before: from django.core.urlresolvers import reverse from django.http.response import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.utils.translation import ugettext as _ from books.forms import BookForm from shared.models import BookType def index(request): book_list...
b41b158bc4c0e3dbf1bdee2ff18e5f7336a3e3e2
euclidean.rs
euclidean.rs
// Using structs to represent 2D points // and calculating the Euclidean distance between them mod pointutils { pub struct Point { pub x: f64, pub y: f64, } pub fn euclidean(point_a: Point, point_b: Point) -> f64 { 0.0 } } fn main() { let point_a: pointutils::Point = po...
// Using structs to represent 2D points // and calculating the Euclidean distance between them mod pointutils { use std::num::pow; pub struct Point { pub x: f64, pub y: f64, } pub fn euclidean(point_a: Point, point_b: Point) -> f64 { let value_sq = pow((point_a.x - point_b.x)...
Add pow and sqrt functions, return actual result
Add pow and sqrt functions, return actual result
Rust
bsd-2-clause
ambidextrousTx/ToyRustPrograms
rust
## Code Before: // Using structs to represent 2D points // and calculating the Euclidean distance between them mod pointutils { pub struct Point { pub x: f64, pub y: f64, } pub fn euclidean(point_a: Point, point_b: Point) -> f64 { 0.0 } } fn main() { let point_a: pointu...
f1e6ef05945589c64e5469314156d88dd7304dc0
README.md
README.md
WTForms style form validataion for node.js ## Express Example var express = require("express"), app = express(), forro = require('forro'), StringField = forro.StringField; var EditForm = forro({ 'username': StringField, 'artist': StringField, 'album': StringF...
WTForms style form validataion for node.js [![Build Status](https://secure.travis-ci.org/exfm/node-forro.png)](http://travis-ci.org/exfm/node-forro) ## Express Example var express = require("express"), app = express(), forro = require('forro'), StringField = forro.StringField; var...
Add travis build status tag
Add travis build status tag
Markdown
mit
imlucas/node-forro
markdown
## Code Before: WTForms style form validataion for node.js ## Express Example var express = require("express"), app = express(), forro = require('forro'), StringField = forro.StringField; var EditForm = forro({ 'username': StringField, 'artist': StringField, ...
a909c9b4c0aa41b9cc98466e0bc702b914daa745
.vexor.yml
.vexor.yml
language: ruby rvm: - 2.3.3 - 2.2.6 - 2.1.9 before_install: - sudo apt-get update -yq && sudo apt-get install -y graphviz - gem install bundler -v 1.14.4
language: ruby rvm: - 2.7.1 - 2.6.6 - 2.5.8 - 2.4.10 - 2.3.8 - 2.2.6 - 2.1.9 before_install: - sudo apt-get update -yq && sudo apt-get install -y graphviz - gem install bundler -v 1.14.4
Test on latest versions of MRI
Test on latest versions of MRI
YAML
mit
vassilevsky/statesman-diagram
yaml
## Code Before: language: ruby rvm: - 2.3.3 - 2.2.6 - 2.1.9 before_install: - sudo apt-get update -yq && sudo apt-get install -y graphviz - gem install bundler -v 1.14.4 ## Instruction: Test on latest versions of MRI ## Code After: language: ruby rvm: - 2.7.1 - 2.6.6 - 2.5.8 - 2.4.10 - 2.3.8 - 2....
ff584d1c3425c57b46f8d77eab285510e2b06cb7
src/Serilog.Sinks.File/project.json
src/Serilog.Sinks.File/project.json
{ "version": "3.0.0-*", "description": "Write Serilog events to a text file in plain or JSON format.", "authors": [ "Serilog Contributors" ], "packOptions": { "tags": [ "serilog", "file", "io" ], "projectUrl": "http://serilog.net", "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", "ic...
{ "version": "3.0.0-*", "description": "Write Serilog events to a text file in plain or JSON format.", "authors": [ "Serilog Contributors" ], "packOptions": { "tags": [ "serilog", "file", "io" ], "projectUrl": "http://serilog.net", "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", "ic...
Update Serilog dependency to 2.2.0
Update Serilog dependency to 2.2.0
JSON
apache-2.0
serilog/serilog-sinks-file,serilog/serilog-sinks-file
json
## Code Before: { "version": "3.0.0-*", "description": "Write Serilog events to a text file in plain or JSON format.", "authors": [ "Serilog Contributors" ], "packOptions": { "tags": [ "serilog", "file", "io" ], "projectUrl": "http://serilog.net", "licenseUrl": "http://www.apache.org/licenses/LICEN...
35e7f9e67d901f3a3d02177cf7b163cc88641544
_drafts/2016-02-18-exploring-battery-status-api.md
_drafts/2016-02-18-exploring-battery-status-api.md
--- layout: post type: post title: Exploring Battery Status API --- # Reference * [W3C Battery Status API Specification](https://www.w3.org/TR/battery-status/) * [W3C Battery Status API test suite](http://w3c-test.org/battery-status/) * [MDN Battery Status API](https://developer.mozilla.org/en-US/docs/Web/API/Batt...
--- layout: post type: post title: Exploring Battery Status API --- # Introduction As of 20 August 2015, W3C Battery Status API improved its `security and privacy considerations` section since its W3C Candidate Recommendation 09 December 2014. As CR exit criterion said, it needs two interoperable deployed implementa...
Add an introduction to Battery Status API
Add an introduction to Battery Status API
Markdown
mit
zqzhang/zqzhang.github.io
markdown
## Code Before: --- layout: post type: post title: Exploring Battery Status API --- # Reference * [W3C Battery Status API Specification](https://www.w3.org/TR/battery-status/) * [W3C Battery Status API test suite](http://w3c-test.org/battery-status/) * [MDN Battery Status API](https://developer.mozilla.org/en-US/d...
685ba86bbb077f1da42ede325eb6556af4501bd0
ci/test-and-build.sh
ci/test-and-build.sh
export TMPDIR=/tmp export GOPATH=$PWD/go export PATH=$GOPATH/bin:$PATH pushd $GOPATH/src/github.com/pivotal-cf/email-resource export GOPATH=${PWD}/Godeps/_workspace:$GOPATH export PATH=${PWD}/Godeps/_workspace/bin:$PATH go install github.com/onsi/ginkgo/ginkgo ginkgo -r "$@" go build -tags netgo -a -o bin/check ....
export TMPDIR=/tmp export GOPATH=$PWD/go export PATH=$GOPATH/bin:$PATH export INPUTDIR=$PWD/go pushd $GOPATH/src/github.com/pivotal-cf/email-resource export GOPATH=${PWD}/Godeps/_workspace:$GOPATH export PATH=${PWD}/Godeps/_workspace/bin:$PATH go install github.com/onsi/ginkgo/ginkgo ginkgo -r "$@" go build -tags ...
Fix for taking the correct build directory
Fix for taking the correct build directory [#113549907] Make sure all concourse jobs use task outputs for images pipeline Signed-off-by: Difan Zhao <d4b657a67385123ddb690ebdb0d79b9c6cd38927@pivotal.io>
Shell
mit
pivotal-cf/email-resource,pivotal-cf/email-resource
shell
## Code Before: export TMPDIR=/tmp export GOPATH=$PWD/go export PATH=$GOPATH/bin:$PATH pushd $GOPATH/src/github.com/pivotal-cf/email-resource export GOPATH=${PWD}/Godeps/_workspace:$GOPATH export PATH=${PWD}/Godeps/_workspace/bin:$PATH go install github.com/onsi/ginkgo/ginkgo ginkgo -r "$@" go build -tags netgo -...
3a866dbc1f599e56d700c04b33daf6c08a872197
spec/integration/railitics/user_tracking_spec.rb
spec/integration/railitics/user_tracking_spec.rb
require 'spec_helper' require 'pry' require 'uuidtools' describe "user_tracking" do before(:each) do Railitics::Request.delete_all end it "creates one request record based on UUID" do visit root_path Railitics::Request.count.should eq(1) end it "creates request records and associates with user...
require 'spec_helper' require 'pry' require 'uuidtools' describe "user_tracking" do before(:each) do Railitics::Request.delete_all end it "creates one request record based on UUID with one get request" do visit root_path Railitics::Request.count.should eq(1) end it "successfully logs a POST re...
Move test code, alter description
Move test code, alter description
Ruby
mit
southpolesteve/Railitics,southpolesteve/Railitics
ruby
## Code Before: require 'spec_helper' require 'pry' require 'uuidtools' describe "user_tracking" do before(:each) do Railitics::Request.delete_all end it "creates one request record based on UUID" do visit root_path Railitics::Request.count.should eq(1) end it "creates request records and asso...
8e153bf479b3b0a515b24c8ae4f5760f72be9188
templates/stylesheets/_global.sass
templates/stylesheets/_global.sass
body color: $black font-family: $sans-serif font-size: 16px line-height: 1.4 h1 font-size: 2.25em h2 font-size: 1.875em h3 font-size: 1.5em h4 font-size: 1.25em h5 font-size: 1.125em h6 font-size: 1em p margin: auto 0 14px ol list-style-type: decimal ul list-style-type: disc a, a:vis...
body color: $black font-family: $sans-serif font-size: 16px line-height: 1.4 h1 font-size: 2.25em h2 font-size: 1.875em h3 font-size: 1.5em h4 font-size: 1.25em h5 font-size: 1.125em h6 font-size: 1em p margin: auto 0 14px ol list-style-type: decimal ul list-style-type: disc a, a:vis...
Add .em and .strong classes
Add .em and .strong classes https://github.com/tenforwardconsulting/sagacious_succotash/issues/2
Sass
mit
tenforwardconsulting/sagacious_succotash,tenforwardconsulting/sagacious_succotash,tenforwardconsulting/sagacious_succotash
sass
## Code Before: body color: $black font-family: $sans-serif font-size: 16px line-height: 1.4 h1 font-size: 2.25em h2 font-size: 1.875em h3 font-size: 1.5em h4 font-size: 1.25em h5 font-size: 1.125em h6 font-size: 1em p margin: auto 0 14px ol list-style-type: decimal ul list-style-type...
91fc29a63b8da88d0d882c7bca18640fbfecdcc6
README.md
README.md
parse-redis-url =============== A module for parsing `redis://..` URLs into [node_redis](https://github.com/mranney/node_redis)-friendly options. Can also create actual client instance for your convenience. [![Build Status](https://travis-ci.org/laggyluke/node-parse-redis-url.png?branch=master)](https://travis-ci.or...
parse-redis-url =============== **This module is no longer needed for [node_redis](https://github.com/NodeRedis/node_redis) from v.1.0.0 on. [node_redis](https://github.com/NodeRedis/node_redis) has a built-in url option** A module for parsing `redis://..` URLs into [node_redis](https://github.com/NodeRedis/node_redi...
Update info about built-in function
Update info about built-in function node_redis has a built-in url option from v.1.0.0 on and this module is no longer needed for this. So I guess adding the info is fine? :)
Markdown
bsd-2-clause
laggyluke/node-parse-redis-url
markdown
## Code Before: parse-redis-url =============== A module for parsing `redis://..` URLs into [node_redis](https://github.com/mranney/node_redis)-friendly options. Can also create actual client instance for your convenience. [![Build Status](https://travis-ci.org/laggyluke/node-parse-redis-url.png?branch=master)](http...
3895002951cdca6a0a5c04107f3ba4044087351d
README.md
README.md
Relay client for simple persons (like me) [![npm version](https://badge.fury.io/js/relei.svg)](http://badge.fury.io/js/relei) **OBS! OBS! This is project is in a proof-of-concept stage so I don't promise that things are working yet!!** ## Motivation I started to look at the Facebook's [Relay](https://facebook.gith...
Relay client for simple persons (like me) [![npm version](https://badge.fury.io/js/relei.svg)](http://badge.fury.io/js/relei) **OBS! OBS! This is project is in a proof-of-concept stage so I don't promise that things are working yet!!** ## Motivation I started to look at the Facebook's [Relay](https://facebook.gith...
Add usage example and very simple API docs
Add usage example and very simple API docs
Markdown
mit
milankinen/relei,milankinen/relei
markdown
## Code Before: Relay client for simple persons (like me) [![npm version](https://badge.fury.io/js/relei.svg)](http://badge.fury.io/js/relei) **OBS! OBS! This is project is in a proof-of-concept stage so I don't promise that things are working yet!!** ## Motivation I started to look at the Facebook's [Relay](https...
80c38c4589ca73d6f8db487599322e232bb35d44
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="colorAccent">@color/accent</item> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDa...
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="alertDialogTheme">@style/AlertDialog</item> <item name="colorAccent">@color/accent</item> <item name="colorP...
Change AlertDialog button color to match the application theme
Change AlertDialog button color to match the application theme
XML
apache-2.0
phaseburn/ShowsRage,MGaetan89/ShowsRage
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="colorAccent">@color/accent</item> <item name="colorPrimary">@color/primary</item> <item name...
168bd2c28dedbed8b7c22a97138bf33d487250e4
app/assets/javascripts/parent-taxon-prefix-preview.js
app/assets/javascripts/parent-taxon-prefix-preview.js
(function (Modules) { "use strict"; Modules.ParentTaxonPrefixPreview = function () { this.start = function(el) { var $parentSelectEl = $(el).find('select.js-parent-taxon'); var $pathPrefixEl = $(el).find('.js-path-prefix-hint'); updateBasePathPreview(); $parentSelectEl.change(updateBas...
(function (Modules) { "use strict"; Modules.ParentTaxonPrefixPreview = function () { this.start = function(el) { var $parentSelectEl = $(el).find('select.js-parent-taxon'); var $pathPrefixEl = $(el).find('.js-path-prefix-hint'); function getParentPathPrefix(callback) { var parentTaxo...
Move the ParentTaxonPrefixPreview logic to the bottom
Move the ParentTaxonPrefixPreview logic to the bottom The functions are hoisted anyway.
JavaScript
mit
alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger
javascript
## Code Before: (function (Modules) { "use strict"; Modules.ParentTaxonPrefixPreview = function () { this.start = function(el) { var $parentSelectEl = $(el).find('select.js-parent-taxon'); var $pathPrefixEl = $(el).find('.js-path-prefix-hint'); updateBasePathPreview(); $parentSelectEl....
60606c32bd2b8b76498bf1c1b52a5f4a462c930e
lib/synapse_pay_rest/models/node/triumph_subaccount_us_node.rb
lib/synapse_pay_rest/models/node/triumph_subaccount_us_node.rb
module SynapsePayRest # Represents a Synapse node allowing any user to hold funds. You can use this # node as a wallet, an escrow account or something else along those lines. class TriumphSubaccountUsNode < BaseNode class << self private def payload_for_create(nickname:, **options) args =...
module SynapsePayRest # Represents a subaccount inside a FBO account at Triumph Bank. class TriumphSubaccountUsNode < BaseNode class << self private def payload_for_create(nickname:, **options) args = { type: 'TRIUMPH-SUBACCOUNT-US', nickname: nickname }.merge(op...
Edit documentation for triump subaccount node
Edit documentation for triump subaccount node
Ruby
mit
SynapseFI/SynapseFI-Ruby,javierjulio/SynapsePayRest-Ruby,synapsepay/SynapsePayRest-Ruby
ruby
## Code Before: module SynapsePayRest # Represents a Synapse node allowing any user to hold funds. You can use this # node as a wallet, an escrow account or something else along those lines. class TriumphSubaccountUsNode < BaseNode class << self private def payload_for_create(nickname:, **options...
6c6969053e6fc4a70aef4cda42d158ac69e8d0a1
README.md
README.md
server-base =========== a server with basic features
server-base =========== a server with basic features Dependencies ------------ - Vagrant - Ansible - ruby gem "bundler" Usage ----- Hit the commands below to setup ```sh > vagrant up > cd ansible > ansible-playbook playbook.yml ``` At the end of setup, tests with serverspec run. When you wanna run serverspec alo...
Write about dependencies and usage
Write about dependencies and usage
Markdown
mit
januswel/centos6.5
markdown
## Code Before: server-base =========== a server with basic features ## Instruction: Write about dependencies and usage ## Code After: server-base =========== a server with basic features Dependencies ------------ - Vagrant - Ansible - ruby gem "bundler" Usage ----- Hit the commands below to setup ```sh > vagr...
f88e29017132bad04be4c65d88a066117c3b2d0c
app/views/articles/index.html.slim
app/views/articles/index.html.slim
- content_for :description do = @articles.map(&:title).join(",") .medium-8.large-9.columns p.sub_nav_title | Recently Posts - @articles.each do |article| .post_item .split span.left_tag = article.category.name .post_item_description p.title a href=article_path(a...
- content_for :description do = @articles.map(&:title).join(",") .medium-8.large-9.columns p.sub_nav_title | Recently Posts - @articles.each do |article| .post_item .split span.left_tag = article.category.name .post_item_description p.title a href=article_path(a...
Cut the length of article preview.
Cut the length of article preview.
Slim
mit
SpecialCyCi/SpecialBlog,SpecialCyCi/SpecialBlog
slim
## Code Before: - content_for :description do = @articles.map(&:title).join(",") .medium-8.large-9.columns p.sub_nav_title | Recently Posts - @articles.each do |article| .post_item .split span.left_tag = article.category.name .post_item_description p.title a hre...
c98450d1d53014ad6f7b8a506e0fe7e7eaaf349c
stack.yaml
stack.yaml
resolver: lts-6.2 extra-deps: - Ranged-sets-0.3.0 - bytestring-tree-builder-0.2.7 - hasql-0.19.12 - hasql-pool-0.4.1 - hasql-transaction-0.4.5.1 - jwt-0.7.2 - postgresql-binary-0.9.0.1 - binary-parser-0.5.2 - contravariant-extras-0.3.2 - placeholders-0.1 - postgresql-error-codes-1 - success-0.2....
resolver: lts-6.7 extra-deps: - Ranged-sets-0.3.0 - bytestring-tree-builder-0.2.7 - hasql-0.19.12 - hasql-pool-0.4.1 - hasql-transaction-0.4.5.1 - jwt-0.7.2 - postgresql-binary-0.9.0.1 - binary-parser-0.5.2 - contravariant-extras-0.3.2 - placeholders-0.1 - postgresql-error-codes-1 - success-0.2....
Use real version of hjsonschema
Use real version of hjsonschema Its raw commit on github no longer exists
YAML
mit
steve-chavez/postgrest,diogob/postgrest,begriffs/postgrest,Skyfold/postgrest,NotBrianZach/postgrest,steve-chavez/postgrest,ruslantalpa/postgrest
yaml
## Code Before: resolver: lts-6.2 extra-deps: - Ranged-sets-0.3.0 - bytestring-tree-builder-0.2.7 - hasql-0.19.12 - hasql-pool-0.4.1 - hasql-transaction-0.4.5.1 - jwt-0.7.2 - postgresql-binary-0.9.0.1 - binary-parser-0.5.2 - contravariant-extras-0.3.2 - placeholders-0.1 - postgresql-error-codes-1 ...
4412580b8fa9753773e0bf618e29c4191baea836
releasenotes/notes/prevent-unauthorized-errors-ebb9cf2236595cd0.yaml
releasenotes/notes/prevent-unauthorized-errors-ebb9cf2236595cd0.yaml
--- prelude: > Prevent Unauthorized errors during uploading or donwloading data to Swift store. features: - Allow glance_store to refresh token when upload or download data to Swift store. glance_store identifies if token is going to expire soon when executing request to Swift and refresh the token. For m...
--- prelude: > Prevent Unauthorized errors during uploading or donwloading data to Swift store. features: - Allow glance_store to refresh token when upload or download data to Swift store. glance_store identifies if token is going to expire soon when executing request to Swift and refresh the token. F...
Fix releasenotes to pass reno gates
Fix releasenotes to pass reno gates Release note for swift driver update cannot be generated because of intendation, so we need to fix that error. After that we can safely turn on reno gates for glance_store. Change-Id: I0293c247bc87d81218c4350393a8bfb4d769bc91 Closes-Bug: #1568767
YAML
apache-2.0
openstack/glance_store,openstack/glance_store
yaml
## Code Before: --- prelude: > Prevent Unauthorized errors during uploading or donwloading data to Swift store. features: - Allow glance_store to refresh token when upload or download data to Swift store. glance_store identifies if token is going to expire soon when executing request to Swift and refresh ...
3d95db5aca6abde5d59b2fa07d7d63bda31d3567
templates/syntaxNoMathJax.html
templates/syntaxNoMathJax.html
<link rel="stylesheet" href="${syntaxHighlighterURL}/styles/github.css"> <script type="text/javascript" src="${syntaxHighlighterURL}/highlight.pack.js"></script> <script>hljs.initHighlightingOnLoad();</script>
<link rel="stylesheet" href="${syntaxHighlighterURL}/styles/github.css"> <script type="text/javascript" src="${syntaxHighlighterURL}/highlight.pack.js"></script> <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script>hljs.initHighlightingOnLoad();</script>
Fix no-mathjax template - still need jquery for search
Fix no-mathjax template - still need jquery for search
HTML
bsd-3-clause
deepmind/torch-dokx,Gueust/torch-dokx,yozw/torch-dokx,yozw/torch-dokx,yozw/torch-dokx,Gueust/torch-dokx,deepmind/torch-dokx,deepmind/torch-dokx,Gueust/torch-dokx
html
## Code Before: <link rel="stylesheet" href="${syntaxHighlighterURL}/styles/github.css"> <script type="text/javascript" src="${syntaxHighlighterURL}/highlight.pack.js"></script> <script>hljs.initHighlightingOnLoad();</script> ## Instruction: Fix no-mathjax template - still need jquery for search ## Code After: <lin...
e1703021a467b38d61e59da5aff5e7280b021ade
TutsPy/tut.py
TutsPy/tut.py
import re import requests from bs4 import BeautifulSoup from utils import download_file import os SUBJECT = 'seo' INDEX_ENDPOINT = 'http://www.tutorialspoint.com/%s/index.htm' DOWNLOAD_ENDPOINT = 'http://www.tutorialspoint.com/%s/pdf/%s.pdf' def get_all_chapters(): r = requests.get(INDEX_ENDPOINT%SUBJECT) soup = ...
import re import requests from bs4 import BeautifulSoup from utils import download_file import os SUBJECT = 'seo' INDEX_ENDPOINT = 'http://www.tutorialspoint.com/%s/index.htm' DOWNLOAD_ENDPOINT = 'http://www.tutorialspoint.com/%s/pdf/%s.pdf' def get_all_chapters(): r = requests.get(INDEX_ENDPOINT%SUBJECT) soup = ...
Add check of command line program execution
Add check of command line program execution
Python
mit
voidabhi/python-scripts,voidabhi/python-scripts,voidabhi/python-scripts,voidabhi/python-scripts,voidabhi/python-scripts
python
## Code Before: import re import requests from bs4 import BeautifulSoup from utils import download_file import os SUBJECT = 'seo' INDEX_ENDPOINT = 'http://www.tutorialspoint.com/%s/index.htm' DOWNLOAD_ENDPOINT = 'http://www.tutorialspoint.com/%s/pdf/%s.pdf' def get_all_chapters(): r = requests.get(INDEX_ENDPOINT%S...
5030c33d37d5b0af6f0b8d60fda760347ba8170e
submit/client/submit.js
submit/client/submit.js
Template.submit.helpers({ prompts: function() { return Prompts.inOrder(); }, alreadySubmitted: function() { return Session.get('submitted'); } }); Template.submit.events({ 'submit form': function(e) { e.preventDefault(); var responses = Prompts.allPromptIds().map(function(id) { return...
Template.submit.helpers({ prompts: function() { return Prompts.inOrder(); }, alreadySubmitted: function() { return Session.get('submitted'); } }); Template.submit.events({ 'submit form': function(e) { e.preventDefault(); var responses = Prompts.allPromptIds().map(function(id) { return...
Make feature work: enter key advances to next element
Make feature work: enter key advances to next element
JavaScript
apache-2.0
sandforms/sandforms,sandforms/sandforms,sandforms/sandforms,sandforms/sandforms
javascript
## Code Before: Template.submit.helpers({ prompts: function() { return Prompts.inOrder(); }, alreadySubmitted: function() { return Session.get('submitted'); } }); Template.submit.events({ 'submit form': function(e) { e.preventDefault(); var responses = Prompts.allPromptIds().map(function(id...
abf27040b527aa0fc6aa633a59d25d27e9e23516
_config.yml
_config.yml
--- title: Opshopify timezone: UTC collections: categories: title: Categories output: true pages: title: Pages output: true posts: title: Posts output: true uploads: title: Uploads output: false description: baseurl: "/opshopify" stores: - name: Joondalup address: 123 Fake Str...
--- title: Opshopify timezone: UTC collections: categories: title: Categories output: true pages: title: Pages output: true posts: title: Posts output: true uploads: title: Uploads output: false description: baseurl: "/opshopify" stores: - name: Joondalup address: 123 Fake Str...
Add some placeholder images for locations
config: Add some placeholder images for locations
YAML
apache-2.0
smspillaz/opshopify,smspillaz/opshopify
yaml
## Code Before: --- title: Opshopify timezone: UTC collections: categories: title: Categories output: true pages: title: Pages output: true posts: title: Posts output: true uploads: title: Uploads output: false description: baseurl: "/opshopify" stores: - name: Joondalup addre...
1eee484a2a332489eab61e320c472e6a50dedd96
lib/window_rails.rb
lib/window_rails.rb
require 'window_rails/version' if(defined?(Rails)) require File.join(File.dirname(__FILE__), '..', 'init') end
require 'window_rails/version' if(defined?(Rails)) require 'window_rails/engine' end
Load the engine if we are in Rails
Load the engine if we are in Rails
Ruby
mit
chrisroberts/window_rails,chrisroberts/window_rails
ruby
## Code Before: require 'window_rails/version' if(defined?(Rails)) require File.join(File.dirname(__FILE__), '..', 'init') end ## Instruction: Load the engine if we are in Rails ## Code After: require 'window_rails/version' if(defined?(Rails)) require 'window_rails/engine' end
ee54f6553cc86c06530ad165d1dc23f0f892c73c
docs/jax.rst
docs/jax.rst
jax package =========== Subpackages ----------- .. toctree:: :maxdepth: 1 jax.numpy jax.scipy jax.experimental jax.lax jax.ops jax.random jax.tree_util Just-in-time compilation (:code:`jit`) -------------------------------------- .. automodule:: jax :members: jit, disable_jit, x...
.. currentmodule:: jax jax package =========== Subpackages ----------- .. toctree:: :maxdepth: 1 jax.numpy jax.scipy jax.experimental jax.lax jax.ops jax.random jax.tree_util Just-in-time compilation (:code:`jit`) -------------------------------------- .. autofunction:: jit .. auto...
Fix index of API docs
Fix index of API docs The current index of the API docs page seems to have broken links: when I click on "Automatic differentiation" for example, I get sent to the "JIT" section. This change fixes the links.
reStructuredText
apache-2.0
google/jax,google/jax,tensorflow/probability,tensorflow/probability,google/jax,google/jax
restructuredtext
## Code Before: jax package =========== Subpackages ----------- .. toctree:: :maxdepth: 1 jax.numpy jax.scipy jax.experimental jax.lax jax.ops jax.random jax.tree_util Just-in-time compilation (:code:`jit`) -------------------------------------- .. automodule:: jax :members: jit...
988568917bfa4df83bf8fbd94c94335fc748179f
README.md
README.md
did ======== A Node based CLI for iDoneThis ## Installation 1. Install [Node.js](http://nodejs.org) 2. Run `npm install -g did`. *You may have to preface this with `sudo` depending on your permissions.* 3. Add your iDoneThis key to your shell as an environment variable named "IDONETHIS_API_TOKEN". You can have it set...
did ======== A Node based CLI for iDoneThis ## Installation 1. Install [Node.js](http://nodejs.org) 2. Run `npm install -g did`. *You may have to preface this with `sudo` depending on your permissions.* 3. Add your iDoneThis key to your shell as an environment variable named "IDONETHIS_API_TOKEN". You can have it set...
Document shorthand for do, and goals
Document shorthand for do, and goals
Markdown
mit
cadecairos/did
markdown
## Code Before: did ======== A Node based CLI for iDoneThis ## Installation 1. Install [Node.js](http://nodejs.org) 2. Run `npm install -g did`. *You may have to preface this with `sudo` depending on your permissions.* 3. Add your iDoneThis key to your shell as an environment variable named "IDONETHIS_API_TOKEN". You...
a24260ff1f038dd3db06489521be90fc3a101096
rails/config/initializers/session_store.rb
rails/config/initializers/session_store.rb
RailsPortal::Application.config.session_store :active_record_store, :key => '_rails_portal_session', secure: :true
secure = !(Rails.env.cucumber? || Rails.env.test? || Rails.env.feature_test?) RailsPortal::Application.config.session_store :active_record_store, :key => '_rails_portal_session', secure: secure
Fix test failures caused by secure cookie changes
Fix test failures caused by secure cookie changes #178193849 https://www.pivotaltracker.com/story/show/178193849
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: RailsPortal::Application.config.session_store :active_record_store, :key => '_rails_portal_session', secure: :true ## Instruction: Fix test failures caused by secure cookie changes #178193849 https://www.pivotaltracker.com/story/show/178193849 ## Code After: secure = !(Rails.env.cucumber? || Rails.en...
38ae23faa81ef578d54b39c738dcc31d5c7b2735
buildsys-tags/cloud7-openstack-ussuri-candidate.yml
buildsys-tags/cloud7-openstack-ussuri-candidate.yml
packages: - project: ndisc6 buildsys-tags: cloud7-openstack-ussuri-candidate: ndisc6-1.0.3-9.el7 - project: openvswitch buildsys-tags: cloud7-openstack-ussuri-candidate: openvswitch-2.12.0-1.el7 - project: ovn buildsys-tags: cloud7-openstack-ussuri-candidate: ovn-2.12.0-9.el7 - project: python-amqp ...
packages: - project: ndisc6 buildsys-tags: cloud7-openstack-ussuri-candidate: ndisc6-1.0.3-9.el7 - project: openvswitch buildsys-tags: cloud7-openstack-ussuri-candidate: openvswitch-2.12.0-1.el7 - project: ovn buildsys-tags: cloud7-openstack-ussuri-candidate: ovn-2.12.0-9.el7 - project: python-amqp ...
Rebuild python-kombu 4.6.6 from Fedora
Rebuild python-kombu 4.6.6 from Fedora https://review.opendev.org/#/c/694083/ updated both kombu and amqp, amqp already updated in RDO, let's update kombu too. Change-Id: I169a1f9f50a9b19e19ff7ddb720329084abdfbbd
YAML
apache-2.0
redhat-openstack/rdoinfo
yaml
## Code Before: packages: - project: ndisc6 buildsys-tags: cloud7-openstack-ussuri-candidate: ndisc6-1.0.3-9.el7 - project: openvswitch buildsys-tags: cloud7-openstack-ussuri-candidate: openvswitch-2.12.0-1.el7 - project: ovn buildsys-tags: cloud7-openstack-ussuri-candidate: ovn-2.12.0-9.el7 - project...
f328c6ba74ea792a31b4e5514cb2df5002c11ed6
ci_environment/postgresql/attributes/default.rb
ci_environment/postgresql/attributes/default.rb
default['postgresql']['default_version'] = '9.1' default['postgresql']['alternate_versions'] = %w(9.2 9.3) default['postgresql']['enabled'] = true # is default instance started on machine boot? default['postgresql']['port'] = 5432 default['postgresql']['ssl'] = true ...
default['postgresql']['default_version'] = '9.1' default['postgresql']['alternate_versions'] = %w(9.2 9.3) default['postgresql']['enabled'] = true # is default instance started on machine boot? default['postgresql']['port'] = 5432 default['postgresql']['ssl'] = true ...
Fix RAMFS dependency problem in PostgreSQL
Fix RAMFS dependency problem in PostgreSQL Related to 050c194a4be0bdcc6a6dd1bcfc61c69ffe41df97 Still pending to check if this regression affects Chef 10 and 11
Ruby
mit
gavioto/travis-cookbooks,Zarthus/travis-cookbooks,alex/travis-cookbooks,vinaykaradia/travis-cookbook-cloned,tianon/travis-cookbooks,alex/travis-cookbooks,ljharb/travis-cookbooks,ardock/travis-cookbooks,gavioto/travis-cookbooks,ljharb/travis-cookbooks,ardock/travis-cookbooks,ljharb/travis-cookbooks,Acidburn0zzz/travis-c...
ruby
## Code Before: default['postgresql']['default_version'] = '9.1' default['postgresql']['alternate_versions'] = %w(9.2 9.3) default['postgresql']['enabled'] = true # is default instance started on machine boot? default['postgresql']['port'] = 5432 default['postgresql']['ssl'] ...
250fdb4adb299d7e7fa8bc68713cef9bbdc523f1
package.json
package.json
{ "name": "fester", "version": "0.0.1", "dependencies": {}, "devDependencies": { "autoprefixer": "^6.5.4", "browser-sync": "^2.18.5", "node-sass": "^4.1.0", "parallelshell": "^2.0.0", "postcss-cli": "^2.6.0", "watch": "^1.0.1" }, "scripts": { "sass": "node-sass assets/_sass --out...
{ "name": "fester", "version": "0.0.1", "dependencies": {}, "devDependencies": { "autoprefixer": "^6.5.4", "browser-sync": "^2.18.5", "node-sass": "^4.1.0", "parallelshell": "^2.0.0", "postcss-cli": "^2.6.0", "watch": "^1.0.1" }, "scripts": { "sass": "node-sass assets/_sass --out...
Remove --use flag to prefer use in config.
Remove --use flag to prefer use in config.
JSON
mit
jonsuh/grunt-gulp-starter,jonsuh/gulp-grunt-starter,jonsuh/grunt-gulp-starter,jonsuh/gulp-grunt-starter
json
## Code Before: { "name": "fester", "version": "0.0.1", "dependencies": {}, "devDependencies": { "autoprefixer": "^6.5.4", "browser-sync": "^2.18.5", "node-sass": "^4.1.0", "parallelshell": "^2.0.0", "postcss-cli": "^2.6.0", "watch": "^1.0.1" }, "scripts": { "sass": "node-sass as...
fa3ef9c5964690e7115fc7a8951c8716af76935b
docs/upgrading/index.rst
docs/upgrading/index.rst
Upgrading ========= **Always upgrade the Sentry server before upgrading your clients** unless the client states otherwise. Upgrading Sentry simply requires you to run migrations and restart your web services. We recommend you run the migrations from a separate install so that they can be completed before updating the...
Upgrading ========= **Always upgrade the Sentry server before upgrading your clients** unless the client states otherwise. Upgrading Sentry simply requires you to run migrations and restart your web services. We recommend you run the migrations from a separate install so that they can be completed before updating the...
Clarify 7.x upgrades and remove old versions
Clarify 7.x upgrades and remove old versions
reStructuredText
bsd-3-clause
beeftornado/sentry,BuildingLink/sentry,gencer/sentry,BuildingLink/sentry,TedaLIEz/sentry,kevinlondon/sentry,drcapulet/sentry,jokey2k/sentry,BayanGroup/sentry,hongliang5623/sentry,ewdurbin/sentry,kevinastone/sentry,Kryz/sentry,ngonzalvez/sentry,ifduyue/sentry,argonemyth/sentry,felixbuenemann/sentry,JTCunning/sentry,genc...
restructuredtext
## Code Before: Upgrading ========= **Always upgrade the Sentry server before upgrading your clients** unless the client states otherwise. Upgrading Sentry simply requires you to run migrations and restart your web services. We recommend you run the migrations from a separate install so that they can be completed bef...
4d60bc51048404ab0d1a0a122d79b661bc7fcb23
appveyor.yml
appveyor.yml
version: 1.0.{build} os: Visual Studio 2017 configuration: Release # enable AssemblyInfo.cs patching with build version number assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" # restore NuGet packag...
version: 1.0.{build} os: Visual Studio 2017 configuration: Release # enable AssemblyInfo.cs patching with build version number assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" # restore NuGet packag...
Build script change to run dotnet test
Build script change to run dotnet test
YAML
mit
Tazmainiandevil/Useful.Extensions
yaml
## Code Before: version: 1.0.{build} os: Visual Studio 2017 configuration: Release # enable AssemblyInfo.cs patching with build version number assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" # rest...
1a78da7eb8c1e6b30ca150884d157fbb5c506e63
README.md
README.md
My personal configuration files. License: [MIT License](LICENSE.md)
My personal configuration files. ## Features Install and update configuration files automatically. These configuration files are included: * Bash * Git * Vim * Fontconfig for Linux * [Atom](https://atom.io/) * [Mozilla Firefox](https://www.mozilla.org/firefox) ## Installation This Installation step requires **cUR...
Add instruction to readme file
Add instruction to readme file
Markdown
mit
jmlntw/dotfiles,jmlntw/dotfiles
markdown
## Code Before: My personal configuration files. License: [MIT License](LICENSE.md) ## Instruction: Add instruction to readme file ## Code After: My personal configuration files. ## Features Install and update configuration files automatically. These configuration files are included: * Bash * Git * Vim * Fontco...
4a3b051f801fbc1c15c4f05799685ffdb8b67753
Code/Boot/phase3.lisp
Code/Boot/phase3.lisp
(cl:in-package #:sicl-boot) (defun phase3 (boot) (let ((c (c1 boot)) (r (r2 boot))) (define-effective-slot-definition-class boot) (ld "../CLOS/class-finalization-support.lisp" c r) (export-to-host 'sicl-clos::compute-default-initargs-default r) (export-to-host 'sicl-clos::compute-slots-default r) ...
(cl:in-package #:sicl-boot) (defclass header () ((%class :initarg :class :accessor class) (%rack :initarg :rack :reader rack))) (defun phase3 (boot) (let ((c (c1 boot)) (r (r2 boot))) (define-effective-slot-definition-class boot) (ld "../CLOS/class-finalization-support.lisp" c r) (export-to-host '...
Define a header class for general instances.
Define a header class for general instances.
Common Lisp
bsd-2-clause
clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,vtomole/SICL,vtomole/SICL
common-lisp
## Code Before: (cl:in-package #:sicl-boot) (defun phase3 (boot) (let ((c (c1 boot)) (r (r2 boot))) (define-effective-slot-definition-class boot) (ld "../CLOS/class-finalization-support.lisp" c r) (export-to-host 'sicl-clos::compute-default-initargs-default r) (export-to-host 'sicl-clos::compute-slo...
a4fff4f7a0e407017ec5147e7f1feb89716b335e
lib/ruby_rexster.rb
lib/ruby_rexster.rb
libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) require 'ruby_rexster/vertex' require 'ruby_rexster/edge' module RubyRexster end
libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) module RubyRexster autoload :Vertex, 'ruby_rexster/vertex' autoload :Edge, 'ruby_rexster/edge' end
Move to autoloading the modules
Move to autoloading the modules
Ruby
mit
cpetersen/ruxster
ruby
## Code Before: libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) require 'ruby_rexster/vertex' require 'ruby_rexster/edge' module RubyRexster end ## Instruction: Move to autoloading the modules ## Code After: libdir = File.dirname(__FILE__) $LOAD_PATH.unshift(libdir) unl...
01019c763440bc943c21608d7b6758ad1a920afe
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: docker: - image: clojure:lein-2.9.1 steps: - add_ssh_keys: fingerprints: - "a6:08:d9:a8:b8:92:c3:d2:19:f4:0b:af:a6:8b:2b:7c" - checkout - restore_cache: key: << checksum "project.clj" >> - run: lein test-all - save_cac...
version: 2 jobs: build: docker: - image: clojure:openjdk-8-lein-2.9.1 steps: - add_ssh_keys: fingerprints: - "a6:08:d9:a8:b8:92:c3:d2:19:f4:0b:af:a6:8b:2b:7c" - checkout - restore_cache: key: << checksum "project.clj" >> - run: lein test-all ...
Update lein docker image, back to Java 8
Update lein docker image, back to Java 8
YAML
mit
drewr/postal
yaml
## Code Before: version: 2 jobs: build: docker: - image: clojure:lein-2.9.1 steps: - add_ssh_keys: fingerprints: - "a6:08:d9:a8:b8:92:c3:d2:19:f4:0b:af:a6:8b:2b:7c" - checkout - restore_cache: key: << checksum "project.clj" >> - run: lein test-all ...
20f815c42f14c39a4182079ea5be995ec5b29e72
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/RocketChatWidgets.java
rocket-chat-android-widgets/src/main/java/chat/rocket/android/widget/RocketChatWidgets.java
package chat.rocket.android.widget; import android.content.Context; import chat.rocket.android.widget.fresco.CustomImageFormatConfigurator; import com.facebook.common.logging.FLog; import com.facebook.drawee.backends.pipeline.DraweeConfig; import com.facebook.drawee.backends.pipeline.Fresco; import com.facebook.imagep...
package chat.rocket.android.widget; import android.content.Context; import chat.rocket.android.widget.fresco.CustomImageFormatConfigurator; import com.facebook.common.logging.FLog; import com.facebook.drawee.backends.pipeline.DraweeConfig; import com.facebook.drawee.backends.pipeline.Fresco; import com.facebook.imagep...
Set back Fresco logger to verbose
Set back Fresco logger to verbose
Java
mit
RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android
java
## Code Before: package chat.rocket.android.widget; import android.content.Context; import chat.rocket.android.widget.fresco.CustomImageFormatConfigurator; import com.facebook.common.logging.FLog; import com.facebook.drawee.backends.pipeline.DraweeConfig; import com.facebook.drawee.backends.pipeline.Fresco; import com...
931fd68624f71cb77f502c814aa7cc1662aade2f
app/views/miq_policy/_policy_folders.html.haml
app/views/miq_policy/_policy_folders.html.haml
- if @folders - folders_i18n = { "Compliance" => _("Compliance Policies"), "Control" => _("Control Policies"), "Host Compliance" => _("Host Compliance Policies"), "Vm Compliance" => _("Vm Complian...
- if @folders - folders_i18n = {"Compliance" => _("Compliance Policies"), "Control" => _("Control Policies"), "Host Compliance" => _("Host Compliance Policies"), "Vm Compliance" =...
Add replicators, nodes, pods to _policy_folders view
Add replicators, nodes, pods to _policy_folders view Followup to #9813 given #9543. Control -> Policies accordion -> top-level "Compliance Policies" and "Control Policies" -> list on right side. #9813 adds 3 rows to these lists but without this their text is empty. One of many PRs for https://bugzilla.redhat.com/sho...
Haml
apache-2.0
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
haml
## Code Before: - if @folders - folders_i18n = { "Compliance" => _("Compliance Policies"), "Control" => _("Control Policies"), "Host Compliance" => _("Host Compliance Policies"), "Vm Compliance" =...
44de4884c8440a0139d4200f4939b8a360c030ec
app/libs/conceptResultFromSentenceCombining.js
app/libs/conceptResultFromSentenceCombining.js
import {hashToCollection} from './hashToCollection' export function getConceptResultsForSentenceCombining(question) { const directions = "Combine the sentences."; const prompt = question.prompt.replace(/(<([^>]+)>)/ig, "").replace(/&nbsp;/ig, "") const answer = question.attempts[0].submitted let conceptResults...
import {hashToCollection} from './hashToCollection' export function getConceptResultsForSentenceCombining(question) { const directions = question.instructions || "Combine the sentences."; const prompt = question.prompt.replace(/(<([^>]+)>)/ig, "").replace(/&nbsp;/ig, "") const answer = question.attempts[0].submi...
Save the values of the instructions to concept results if available
Save the values of the instructions to concept results if available
JavaScript
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
javascript
## Code Before: import {hashToCollection} from './hashToCollection' export function getConceptResultsForSentenceCombining(question) { const directions = "Combine the sentences."; const prompt = question.prompt.replace(/(<([^>]+)>)/ig, "").replace(/&nbsp;/ig, "") const answer = question.attempts[0].submitted le...
e55585fd31c7097bfcd3dbd17cfe79de75c7aea9
neovim/after/syntax/markdown.vim
neovim/after/syntax/markdown.vim
highlight! ZettelLinkHeader cterm=underline,bold ctermfg=97 highlight! ZettelLink cterm=underline ctermfg=97
highlight! ZettelLinkHeader cterm=underline,bold ctermfg=97 highlight! ZettelLink cterm=underline ctermfg=97 highlight clear SpellBad highlight SpellBad ctermbg=53
Tweak highlighting in md files
Tweak highlighting in md files
VimL
mit
epwalsh/dotfiles,epwalsh/dotfiles
viml
## Code Before: highlight! ZettelLinkHeader cterm=underline,bold ctermfg=97 highlight! ZettelLink cterm=underline ctermfg=97 ## Instruction: Tweak highlighting in md files ## Code After: highlight! ZettelLinkHeader cterm=underline,bold ctermfg=97 highlight! ZettelLink cterm=underline ctermfg=97 highlight clear SpellB...
93f9d6b5a7d54db51cd56659ae31b76091a3e428
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: test: docker: - image: circleci/node:latest working_directory: ~/repo steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} # fallback to using the latest cache ...
version: 2 jobs: test: docker: - image: circleci/node:latest working_directory: ~/repo steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} # fallback to using the latest cache ...
Add ssh fingerprint to known hosts
Add ssh fingerprint to known hosts
YAML
apache-2.0
r-spacex/SpaceX-API,r-spacex/SpaceX-API
yaml
## Code Before: version: 2 jobs: test: docker: - image: circleci/node:latest working_directory: ~/repo steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }} # fallback to using t...
ac6a7026003f597448bd39dcbe9e2732d7e72c82
.github/workflows/convert-blogpost-to-xml.yml
.github/workflows/convert-blogpost-to-xml.yml
name: convert-blogpost-to-xml on: push: branches: - master jobs: pull-and-run-jekyll2cms-docker-image: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Pull Docker image run: docker pull jekyll2cms/jekyll2cms:latest - name: Run Docker im...
name: convert-blogpost-to-xml on: push: branches: - master jobs: pull-and-run-jekyll2cms-docker-image: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Pull Docker image run: docker pull jekyll2cms/jekyll2cms:latest - name: Run Docker im...
Set docker run arguments in '..'
Set docker run arguments in '..'
YAML
mit
adessoAG/devblog,adessoAG/devblog,adessoAG/devblog,adessoAG/devblog
yaml
## Code Before: name: convert-blogpost-to-xml on: push: branches: - master jobs: pull-and-run-jekyll2cms-docker-image: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Pull Docker image run: docker pull jekyll2cms/jekyll2cms:latest - nam...
adff54a2cb28eff269fd408403f4edda23c39b54
.travis.yml
.travis.yml
--- language: node_js node_js: - '0.8' before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start - npm install -g bower grunt-cli karma - npm install - bower install script: - grunt travis branches: only: - master
--- language: node_js node_js: - '0.8' before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start - npm install -g npm - npm install -g bower grunt-cli karma - npm install - bower install script: - grunt travis branches: only: - master
Fix Travis error when download packages
Fix Travis error when download packages
YAML
mit
dhilt/NGScroller,Hill30/NGScroller,dhilt/NGScroller
yaml
## Code Before: --- language: node_js node_js: - '0.8' before_install: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start - npm install -g bower grunt-cli karma - npm install - bower install script: - grunt travis branches: only: - master ## Instruction: Fix Travis error when download packages ## Code After...
80c8714890c4769b63b107bdb04eeeaa48f10b4a
FixturesGrailsPlugin.groovy
FixturesGrailsPlugin.groovy
/* * Copyright 2010 Grails Plugin Collective * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* * Copyright 2010 Grails Plugin Collective * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Set a snapshot version targeting 1.0.8.
Set a snapshot version targeting 1.0.8.
Groovy
apache-2.0
sbglasius/fixtures,gpc/fixtures
groovy
## Code Before: /* * Copyright 2010 Grails Plugin Collective * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...