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
b55c060a974ccd2db3eef80da513f42a902767c1
php/sampleinsert.xml
php/sampleinsert.xml
<map id="4" timestamp="0"> <textbox TID="1" text="FOO"/> <textbox TID="2" text="BAR"/> <node TID="1" Type="Universal" x="1" y="1" typed="1" is_positive="1"> <nodetext TID="1" textboxTID="1" /> </node> <node TID="2" Type="Particular" x="10" y="1" typed="1" is_positive="1"> <nodetext TID="2" textboxTID="2"/> <...
<map id="4" timestamp="0"> <textbox TID="1" text="FOO"/> <textbox TID="2" text="BAR"/> <node TID="1" Type="Universal" x="1" y="1" typed="1" is_positive="1"> <nodetext TID="1" textboxTID="1" /> </node> <node TID="2" Type="Particular" x="10" y="1" typed="1" is_positive="1"> <nodetext TID="2" textboxTID="2"/> <...
Tweak the sample insert .xml to move the connected_by example
Tweak the sample insert .xml to move the connected_by example
XML
agpl-3.0
MichaelHoffmann/AGORA,mbjornas3/AGORA,MichaelHoffmann/AGORA,MichaelHoffmann/AGORA,mbjornas3/AGORA
xml
## Code Before: <map id="4" timestamp="0"> <textbox TID="1" text="FOO"/> <textbox TID="2" text="BAR"/> <node TID="1" Type="Universal" x="1" y="1" typed="1" is_positive="1"> <nodetext TID="1" textboxTID="1" /> </node> <node TID="2" Type="Particular" x="10" y="1" typed="1" is_positive="1"> <nodetext TID="2" tex...
d4aa2b1a0a72696ce34f5aa2f5e588fc3a72e622
cfgrib/__main__.py
cfgrib/__main__.py
import argparse import sys from . import eccodes def main(): parser = argparse.ArgumentParser() parser.add_argument('--selfcheck', default=False, action='store_true') args = parser.parse_args() if args.selfcheck: eccodes.codes_get_api_version() print("Your system is ready.") else...
import argparse from . import eccodes def main(): parser = argparse.ArgumentParser() parser.add_argument('--selfcheck', default=False, action='store_true') args = parser.parse_args() if args.selfcheck: eccodes.codes_get_api_version() print("Your system is ready.") else: r...
Add copyright noticeand Authors comment.
Add copyright noticeand Authors comment.
Python
apache-2.0
ecmwf/cfgrib
python
## Code Before: import argparse import sys from . import eccodes def main(): parser = argparse.ArgumentParser() parser.add_argument('--selfcheck', default=False, action='store_true') args = parser.parse_args() if args.selfcheck: eccodes.codes_get_api_version() print("Your system is r...
6f6e423797d6c552a0fdec15724c1ce4642a1cc9
nodejs/run_examples.sh
nodejs/run_examples.sh
cd production_code mvn clean install cd target/github-publish/examples for f in *.js do node $f --key $1 done
cd production_code mvn clean install cd target/github-publish/examples npm install for f in *.js do node $f --key $1 done
Add npm install to install deps for node examples
RCB-116: Add npm install to install deps for node examples
Shell
apache-2.0
rosette-api/java,rosette-api/java,rosette-api/java
shell
## Code Before: cd production_code mvn clean install cd target/github-publish/examples for f in *.js do node $f --key $1 done ## Instruction: RCB-116: Add npm install to install deps for node examples ## Code After: cd production_code mvn clean install cd target/github-publish/examples npm install for f in *.js...
6b5becadb3452dcd02dc4044db82632cf0f03a64
lib/sfn/config/update.rb
lib/sfn/config/update.rb
require 'sfn' module Sfn class Config # Update command configuration class Update < Validate attribute( :apply_stack, String, :multiple => true, :description => 'Apply outputs from stack to input parameters' ) attribute( :parameter, Smash, :multiple ...
require 'sfn' module Sfn class Config # Update command configuration class Update < Validate attribute( :apply_stack, String, :multiple => true, :description => 'Apply outputs from stack to input parameters' ) attribute( :parameter, Smash, :multiple ...
Remove loading customization from Hash type attributes
Remove loading customization from Hash type attributes
Ruby
apache-2.0
sparkleformation/sfn
ruby
## Code Before: require 'sfn' module Sfn class Config # Update command configuration class Update < Validate attribute( :apply_stack, String, :multiple => true, :description => 'Apply outputs from stack to input parameters' ) attribute( :parameter, Smash, ...
6dbf9a377ecb73ddd4c0e359f738a2625fbe3727
README.md
README.md
rails-gallery ============= I started this project because it combines two things I am passionate about - digital photography and coding (on Ruby on Rails :)
[![Build Status](https://travis-ci.org/jackzaharoff/rails-gallery.svg?branch=master)](https://travis-ci.org/jackzaharoff/rails-gallery) rails-gallery ============= I started this project because it combines two things I am passionate about - digital photography and coding (on Ruby on Rails :) The project is in its in...
Update readme.md with travis-ci build info.
Update readme.md with travis-ci build info.
Markdown
mit
jackzaharoff/rails-gallery,jackzaharoff/rails-gallery
markdown
## Code Before: rails-gallery ============= I started this project because it combines two things I am passionate about - digital photography and coding (on Ruby on Rails :) ## Instruction: Update readme.md with travis-ci build info. ## Code After: [![Build Status](https://travis-ci.org/jackzaharoff/rails-gallery.svg...
336b54057d5b607f919b40adcd1b1814b444754f
admin_tools/media/admin_tools/js/utils.js
admin_tools/media/admin_tools/js/utils.js
var loadScripts = function(js_files, onComplete){ var len = js_files.length; var head = document.getElementsByTagName('head')[0]; function loadScript(index){ if (index >= len){ onComplete(); return; } if (js_files[index].test()){ // console.log('...
var loadScripts = function(js_files, onComplete){ var len = js_files.length; var head = document.getElementsByTagName('head')[0]; function loadScript(index){ if (index >= len){ onComplete(); return; } try { testOk = js_files[index].test(); ...
Put the script loading in test in a try/catch because it was causing an error in certain cases with Opera.
Put the script loading in test in a try/catch because it was causing an error in certain cases with Opera.
JavaScript
mit
husbas/django-admin-tools,husbas/django-admin-tools,husbas/django-admin-tools
javascript
## Code Before: var loadScripts = function(js_files, onComplete){ var len = js_files.length; var head = document.getElementsByTagName('head')[0]; function loadScript(index){ if (index >= len){ onComplete(); return; } if (js_files[index].test()){ // ...
ac348f821595f12dcd94299aab122229b241b87a
style/aztimeline.less
style/aztimeline.less
.headings(@color, @shadow: 50%) { color: @color; text-shadow: 0px 1px 1px lighten(@color, @shadow); } @slider-top: -40px; @azblue: #003366; .custom-control-hover-label { background-color: white; font: 11px "Helvetica Neue", Arial, Helvetica, sans-serif; color: @azblue; font-weight: bold; padding: 3px 5p...
.headings(@color, @shadow: 50%) { color: @color; text-shadow: 0px 1px 1px lighten(@color, @shadow); } @slider-top: -40px; @azblue: #003366; .custom-control-hover-label { background-color: white; font: 11px "Helvetica Neue", Arial, Helvetica, sans-serif; color: @azblue; font-weight: bold; padding: 3px 5p...
Change the size of image in the popup
Change the size of image in the popup
Less
bsd-3-clause
virtual-arizona-experience/aztimeline,virtual-arizona-experience/aztimeline,virtual-arizona-experience/aztimeline
less
## Code Before: .headings(@color, @shadow: 50%) { color: @color; text-shadow: 0px 1px 1px lighten(@color, @shadow); } @slider-top: -40px; @azblue: #003366; .custom-control-hover-label { background-color: white; font: 11px "Helvetica Neue", Arial, Helvetica, sans-serif; color: @azblue; font-weight: bold; ...
1391dae9732159e50ef46197e3bff82cfe81e7b7
lib/throwaway-db.js
lib/throwaway-db.js
var Q = require('q'), _ = require('lodash'); // Constants var VALID_DB_TYPES = ['rethinkdb']; function ThrowawayDB(options) { var self = this; self.options = options || {db: 'rethinkdb'}; // Ensure db has been specified if (!_.has(self.options, 'db') || _.isUndefined(self.options.db) || ...
var Q = require('q'), _ = require('lodash'); // Constants var VALID_DB_TYPES = ['rethinkdb']; function ThrowawayDB(options) { var self = this; self.options = options || {db: 'rethinkdb'}; // Ensure db has been specified if (!_.has(self.options, 'db') || _.isUndefined(self.options.db) || ...
Add functions for creating/removing databases, return statements
Add functions for creating/removing databases, return statements
JavaScript
isc
t3hmrman/throwaway-db
javascript
## Code Before: var Q = require('q'), _ = require('lodash'); // Constants var VALID_DB_TYPES = ['rethinkdb']; function ThrowawayDB(options) { var self = this; self.options = options || {db: 'rethinkdb'}; // Ensure db has been specified if (!_.has(self.options, 'db') || _.isUndefined(self....
358feeecbf06d156c1ba27bb737c210d5bb533a0
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingDataSource.kt
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingDataSource.kt
package com.github.ramonrabello.kiphy.trends.data import com.github.ramonrabello.kiphy.trends.TrendingApi import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import io.reactivex.Single interface TrendingDataSource { fun loadTrending(): Single<TrendingResponse> class Remote(private val api: Tr...
package com.github.ramonrabello.kiphy.trends.data import com.github.ramonrabello.kiphy.trends.TrendingApi import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import io.reactivex.Single interface TrendingDataSource { fun loadTrending(): Single<TrendingResponse> class Remote(private val api: Tr...
Add Local inner class as stub just to be used by repository.
Add Local inner class as stub just to be used by repository.
Kotlin
apache-2.0
ramonrabello/Kiphy
kotlin
## Code Before: package com.github.ramonrabello.kiphy.trends.data import com.github.ramonrabello.kiphy.trends.TrendingApi import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import io.reactivex.Single interface TrendingDataSource { fun loadTrending(): Single<TrendingResponse> class Remote(pri...
032a547202653f9402509a3131de88069c480c72
scr/css/Reservations.css
scr/css/Reservations.css
/* On an iPad, the rules below takes precedence over the rules above (order is important) */ @media only screen and (device-width: 768px) { #root { margin: 10px 0 0p 210px; background-color: lightgrey; background-color: white; } } @media screen and (max-device-width: 480px) and (orientation:portrait) { ...
/* On an iPad, the rules below takes precedence over the rules above (order is important) */ @media only screen and (device-width: 768px) { #root { margin: 10px 0 0p 210px; background-color: lightgrey; background-color: white; } } @media screen and (max-device-width: 480px) and (orientation:portrait) { ...
Disable resize on textarea (doesn't work well in iframe)
Disable resize on textarea (doesn't work well in iframe) git-svn-id: aa6b683a0c3c4a7a7056638acacb3aaf04dd239a@3617 63c81c92-1a08-11de-87e6-23293a004a03
CSS
mit
Oblosys/webviews,Oblosys/webviews
css
## Code Before: /* On an iPad, the rules below takes precedence over the rules above (order is important) */ @media only screen and (device-width: 768px) { #root { margin: 10px 0 0p 210px; background-color: lightgrey; background-color: white; } } @media screen and (max-device-width: 480px) and (orientat...
19e91b9298fdccfa218ac35e91cc5d0df26bfe6f
packages/@sanity/cli/src/util/getUserConfig.js
packages/@sanity/cli/src/util/getUserConfig.js
import ConfigStore from 'configstore' const defaults = {} let config = null const getUserConfig = () => { if (!config) { config = new ConfigStore('sanity', defaults, {globalConfigPath: true}) } return config } export default getUserConfig
import ConfigStore from 'configstore' const staging = typeof process.env.SANITY_STAGING !== 'undefined' // eslint-disable-line no-process-env const defaults = {} let config = null const getUserConfig = () => { if (!config) { config = new ConfigStore( staging ? 'sanity-staging' : 'sanity', defaults, ...
Use separate user config for staging
[cli] Use separate user config for staging
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
javascript
## Code Before: import ConfigStore from 'configstore' const defaults = {} let config = null const getUserConfig = () => { if (!config) { config = new ConfigStore('sanity', defaults, {globalConfigPath: true}) } return config } export default getUserConfig ## Instruction: [cli] Use separate user config for...
2b9773cef0becf9baefb4ef9bd418dd0954f4dc2
.travis.yml
.travis.yml
language: node_js node_js: - '0.12' - '0.10' - 'iojs' notifications: slack: secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk=
language: node_js node_js: - '4.0' - 'iojs' - '0.12' - '0.10' notifications: slack: secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk=
Add Travis-CI test for Node.js v4.0
Add Travis-CI test for Node.js v4.0
YAML
bsd-2-clause
opbeat/opbeat-node,opbeat/opbeat-node
yaml
## Code Before: language: node_js node_js: - '0.12' - '0.10' - 'iojs' notifications: slack: secure: Yub5oEMfOzNDSAtXlC+B2IoALF7uMB8xX5l+FWy1PIKF4950Uelw1l9fN7Y6cXn+qPF8JxePcVCBn0HF5jp+MHRmLTUYqcCVxi10f5DkmTbDz31N40WiDMuo77fMlWgdieaLiHulbvbp93A6rSWyLCyjt9RvFit7JxWdcyqyDDk= ## Instruction: Add Travis-CI test for N...
2fa1bd02b4a0518c4dabeb09222865809a2b184a
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
set -g VIRTUAL_ENV_DISABLE_PROMPT true function fish_prompt --description 'Write out the prompt' echo "" # Add a blank line before the prompt set -l user_color af87ff set -l user_symbol \$ if [ $USER = root ] set user_color d75f5f set user_symbol \# end echo -n -s [(set_color ...
set -g VIRTUAL_ENV_DISABLE_PROMPT true function fish_prompt --description 'Write out the prompt' echo "" # Add a blank line before the prompt set -l user_color af87ff set -l user_symbol \$ if [ $USER = root ] set user_color d75f5f set user_symbol \# end echo -n -s [(set_color ...
Fix kubectl info when kubectl isn't installed
Fix kubectl info when kubectl isn't installed
fish
mit
aphistic/dotfiles,aphistic/dotfiles
fish
## Code Before: set -g VIRTUAL_ENV_DISABLE_PROMPT true function fish_prompt --description 'Write out the prompt' echo "" # Add a blank line before the prompt set -l user_color af87ff set -l user_symbol \$ if [ $USER = root ] set user_color d75f5f set user_symbol \# end echo -n...
5ecec151fe0dad2f823e88ac7871f8c08ba8660a
templates/support.rackspace.com/404.html
templates/support.rackspace.com/404.html
{% extends "_layouts/base.html" %} {% block metaTitle %}{{ ['Page Not Found', super()]|join(' - ') }}{% endblock %} {% block bodyClass %}not-found{% endblock %} {% set headlineTag = 'h2' %} {% set headlineAccent = 'Rackspace' %} {% set headline = 'Support Network' %} {% block bodyContent %} <div class="not-found...
{% extends "_layouts/base.html" %} {% block metaTitle %}{{ ['Page Not Found', super()]|join(' - ') }}{% endblock %} {% block bodyClass %}not-found{% endblock %} {% set headlineTag = 'h2' %} {% set headlineAccent = 'Rackspace' %} {% set headline = 'Support Network' %} {% block bodyContent %} <div class="not-found...
Add text to community hyperlink
Add text to community hyperlink
HTML
apache-2.0
meker12/nexus-control,ktbartholomew/nexus-control,rackerlabs/nexus-control,meker12/nexus-control,meker12/nexus-control,ktbartholomew/nexus-control,ktbartholomew/nexus-control,rackerlabs/nexus-control,rackerlabs/nexus-control
html
## Code Before: {% extends "_layouts/base.html" %} {% block metaTitle %}{{ ['Page Not Found', super()]|join(' - ') }}{% endblock %} {% block bodyClass %}not-found{% endblock %} {% set headlineTag = 'h2' %} {% set headlineAccent = 'Rackspace' %} {% set headline = 'Support Network' %} {% block bodyContent %} <div ...
7e8d0e16a35714f5781cd14745cf13ae45a32593
lib/Elastica/Filter/Range.php
lib/Elastica/Filter/Range.php
<?php /** * Range Filter * * @uses Elastica_Filter_Abstract * @category Xodoa * @package Elastica * @author Nicolas Ruflin <spam@ruflin.com> * @link http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/range_query/ */ class Elastica_Filter_Range extends Elastica_Filter_Abstract { protected $_fiel...
<?php /** * Range Filter * * @uses Elastica_Filter_Abstract * @category Xodoa * @package Elastica * @author Nicolas Ruflin <spam@ruflin.com> * @link http://www.elasticsearch.org/guide/reference/query-dsl/range-filter.html */ class Elastica_Filter_Range extends Elastica_Filter_Abstract { protected $_fields = ar...
Add useful constructor to range filter
Add useful constructor to range filter
PHP
mit
stof/Elastica,Jmoati/Elastica,jeancsil/Elastica,JustinHook/Elastica,vend/Elastica,JustinHook/Elastica,giovannialbero1992/Elastica,Southparkfan/Elastica,ebernhardson/Elastica,ARAMISAUTO/Elastica,piotrantosik/Elastica,Tobion/Elastica,falconavs/Elastica,webdevsHub/Elastica,Southparkfan/Elastica,jeancsil/Elastica,ebernhard...
php
## Code Before: <?php /** * Range Filter * * @uses Elastica_Filter_Abstract * @category Xodoa * @package Elastica * @author Nicolas Ruflin <spam@ruflin.com> * @link http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/range_query/ */ class Elastica_Filter_Range extends Elastica_Filter_Abstract { ...
a9b7b5f1df25cf09f258ffe05b20b6bbe247b60d
app/views/layout.erb
app/views/layout.erb
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="/css/normalize.css"> <link rel="stylesheet" href="/css/application.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="/js/application.js"></script> <title></title> </head> <body> <div cl...
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="/css/normalize.css"> <link rel="stylesheet" href="/css/application.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="/js/application.js"></script> <title></title> </head> <body> <div cl...
Add live links to main gray menu
Add live links to main gray menu
HTML+ERB
mit
chi-dragonflies-2015/stack-underflow,chi-dragonflies-2015/stack-underflow,chi-dragonflies-2015/stack-underflow
html+erb
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="/css/normalize.css"> <link rel="stylesheet" href="/css/application.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="/js/application.js"></script> <title></title> </head> ...
f9eafd683b7426dad7f925fdf1266710d4312f16
battle/templates/battle/battlefield_view_iframe.html
battle/templates/battle/battlefield_view_iframe.html
{% extends "base/base_naked.html" %} {% load staticfiles %} {% block body %} <script src="{% static 'world/3rd/three.min.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/3rd/OrbitControls.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/base_renderer.js' %}?{{ git_rev }}"></scri...
{% extends "base/base_naked.html" %} {% load staticfiles %} {% block body %} <script src="{% static 'world/3rd/three.min.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/3rd/OrbitControls.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/base_renderer.js' %}?{{ git_rev }}"></scri...
Use buttons instead of anchors in battle turn buttons
Use buttons instead of anchors in battle turn buttons
HTML
agpl-3.0
jardiacaj/finem_imperii,jardiacaj/finem_imperii,jardiacaj/finem_imperii,jardiacaj/finem_imperii
html
## Code Before: {% extends "base/base_naked.html" %} {% load staticfiles %} {% block body %} <script src="{% static 'world/3rd/three.min.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/3rd/OrbitControls.js' %}?{{ git_rev }}"></script> <script src="{% static 'world/base_renderer.js' %}?{{ gi...
cea109c0f7977896d802e99d325719f633589a1d
ESRScan/Discover.swift
ESRScan/Discover.swift
// // Discover utility for bonjour/zeroconf // // Copyright © 2015 Michael Weibel. All rights reserved. // License: MIT // import Foundation class Discover : NSObject, NSNetServiceBrowserDelegate, NSNetServiceDelegate { var afpBrowser : NSNetServiceBrowser var connection : Connection? var netService: N...
// // Discover utility for bonjour/zeroconf // // Copyright © 2015 Michael Weibel. All rights reserved. // License: MIT // import Foundation class Discover : NSObject, NSNetServiceBrowserDelegate, NSNetServiceDelegate { var afpBrowser : NSNetServiceBrowser var connection : Connection? var netService: N...
Fix discovery of desktop app
fix(discover): Fix discovery of desktop app Apparently when you do call searchForServicesOfType twice in a row the whole search process gets stopped and therefore it doesn't work any longer afterwards. By checking with an instance variable, we can be fairly certain it's only ever called once in a session. mweibel/esr...
Swift
mit
mweibel/esrscan,mweibel/esrscan,mweibel/esrscan
swift
## Code Before: // // Discover utility for bonjour/zeroconf // // Copyright © 2015 Michael Weibel. All rights reserved. // License: MIT // import Foundation class Discover : NSObject, NSNetServiceBrowserDelegate, NSNetServiceDelegate { var afpBrowser : NSNetServiceBrowser var connection : Connection? v...
631cb1671e7a65afdbfaebe15814563221b8a833
requirements_dev.txt
requirements_dev.txt
bumpversion==0.5.3 cookiecutter==1.5.1 flake8==3.3.0 flake8_docstrings==1.0.3 planemo==0.40.0 pytest==3.0.7 pytest-cov==2.4.0 pytest-datadir==0.2.0 pytest-flake8==0.8.1 pytest-mock==1.6.0 tox==2.6.0
bumpversion==0.5.3 cookiecutter==1.5.1 pydocstyle==1.1.1 flake8==3.3.0 flake8_docstrings==1.0.3 planemo==0.40.0 pytest==3.0.7 pytest-cov==2.4.0 pytest-datadir==0.2.0 pytest-flake8==0.8.1 pytest-mock==1.6.0 tox==2.6.0
Fix test errors by pinning pydocstyle for the moment
Fix test errors by pinning pydocstyle for the moment
Text
mit
bardin-lab/readtagger,bardin-lab/readtagger
text
## Code Before: bumpversion==0.5.3 cookiecutter==1.5.1 flake8==3.3.0 flake8_docstrings==1.0.3 planemo==0.40.0 pytest==3.0.7 pytest-cov==2.4.0 pytest-datadir==0.2.0 pytest-flake8==0.8.1 pytest-mock==1.6.0 tox==2.6.0 ## Instruction: Fix test errors by pinning pydocstyle for the moment ## Code After: bumpversion==0.5.3 ...
19b6e9492445639277701c3c2ae755c044ea7132
engines/financial_disclosure/app/assets/javascripts/financial_disclosure/templates/funder.hbs
engines/financial_disclosure/app/assets/javascripts/financial_disclosure/templates/funder.hbs
<div class="dataset"> {{input type="text" name="name" value=funder.name class="form-control" placeholder="Funder"}} {{input type="text" name="grant_number" value=funder.grantNumber class="form-control" placeholder="Grant Number"}} {{input type="text" name="website" value=funder.website class="form-control" placeh...
<div class="dataset"> {{input type="text" name="name" value=funder.name class="form-control" placeholder="Funder"}} {{input type="text" name="grant_number" value=funder.grantNumber class="form-control" placeholder="Grant Number"}} {{input type="text" name="website" value=funder.website class="form-control" placeh...
Hide add authors link …till we decide how we implement it
Hide add authors link …till we decide how we implement it
Handlebars
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
handlebars
## Code Before: <div class="dataset"> {{input type="text" name="name" value=funder.name class="form-control" placeholder="Funder"}} {{input type="text" name="grant_number" value=funder.grantNumber class="form-control" placeholder="Grant Number"}} {{input type="text" name="website" value=funder.website class="form...
eda6e6edad7255168bf4335196c64f41e68696ee
src/Rainbow/Converter/RgbToHexConverter.php
src/Rainbow/Converter/RgbToHexConverter.php
<?php namespace Rainbow\Converter; use Rainbow\ColorInterface; use Rainbow\Hex; final class RgbToHexConverter implements ConverterInterface { /** * Returns the converted color * @return ColorInterface */ public function convert() { return new Hex("#000000"); } }
<?php /** * This file is part of the Rainbow package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Rainbow\Converter; use Rainbow\ColorInterface; use Rainbow\Hex; use Rainbow\Rgb; use Rainbow\U...
Test rgb to hex conversions
Test rgb to hex conversions
PHP
mit
rmhdev/rainbow
php
## Code Before: <?php namespace Rainbow\Converter; use Rainbow\ColorInterface; use Rainbow\Hex; final class RgbToHexConverter implements ConverterInterface { /** * Returns the converted color * @return ColorInterface */ public function convert() { return new Hex("#000000"); } }...
83c0f5598f132457317162c391a4491ff5854d5b
_config.yaml
_config.yaml
name: oscillatingblog description: blogging about open source is hard url: http://localhost:4000 markdown: redcarpet highlighter: pygments
name: oscillatingblog description: blogging about open source is hard url: http://localhost:4000 markdown: kramdown highlighter: rouge
Update markdown and highlight engines
Update markdown and highlight engines
YAML
mit
oscillatingworks/blog,oscillatingworks/blog,oscillatingworks/blog
yaml
## Code Before: name: oscillatingblog description: blogging about open source is hard url: http://localhost:4000 markdown: redcarpet highlighter: pygments ## Instruction: Update markdown and highlight engines ## Code After: name: oscillatingblog description: blogging about open source is hard url: http://localhost:40...
b7825fb6db273e19fc78be98a7f48e33706e394f
famille/templates/profile/prestataire.html
famille/templates/profile/prestataire.html
{% extends "profile/base.html" %}
{% extends "profile/base.html" %} {% block subtitle %} <h2> {% if profile.get_age %} {{profile.get_age }} ans {% endif %} <small> {{profile.get_type }} </small> </h2> {% endblock subtitle %}
Add age and type of presta to presta profile template
Add age and type of presta to presta profile template
HTML
apache-2.0
huguesmayolle/famille,huguesmayolle/famille
html
## Code Before: {% extends "profile/base.html" %} ## Instruction: Add age and type of presta to presta profile template ## Code After: {% extends "profile/base.html" %} {% block subtitle %} <h2> {% if profile.get_age %} {{profile.get_age }} ans {% endif %} <small> {{profile.get_type }} ...
3842901080220388c674d532ff93783a46730498
.travis.yml
.travis.yml
language: ruby before_install: 'gem update bundler' install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag' rvm: - 2.2.2 - 2.3.0 - 2.3.1 notifications: irc: "irc.freenode.org#jeweler"
language: ruby before_install: 'gem update bundler' install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag' rvm: - 2.2 - 2.3 - 2.4 - 2.5 notifications: irc: "irc.freenode.org#jeweler"
Test on new Ruby versions
Test on new Ruby versions
YAML
mit
technicalpickles/jeweler,technicalpickles/jeweler
yaml
## Code Before: language: ruby before_install: 'gem update bundler' install: 'bundle install --jobs=3 --retry=3' # Suppress the --deployment flag' rvm: - 2.2.2 - 2.3.0 - 2.3.1 notifications: irc: "irc.freenode.org#jeweler" ## Instruction: Test on new Ruby versions ## Code After: language: ruby before_install: ...
b1e3fc4515a4d3cfb0078357bf133e90c15db9a2
tools-webrtc/ios/tests/common_tests.json
tools-webrtc/ios/tests/common_tests.json
{ "tests": [ { "app": "apprtcmobile_tests", "xctest": true }, { "app": "audio_decoder_unittests" }, { "app": "common_audio_unittests" }, { "app": "common_video_unittests" }, { "app": "modules_tests" }, { "app": "ortc_unittests" ...
{ "tests": [ { "app": "apprtcmobile_tests", "xctest": true }, { "app": "audio_decoder_unittests" }, { "app": "common_audio_unittests" }, { "app": "common_video_unittests" }, { "app": "modules_tests" }, { "app": "ortc_unittests" ...
Enable tools_unittests and rtc_stats_unittests on iOS Simulator
Enable tools_unittests and rtc_stats_unittests on iOS Simulator The tests have been passing for some time, but were never added. BUG=webrtc:5572, webrtc:5566 NOTRY=True Review-Url: https://codereview.webrtc.org/2800813005 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#17556}
JSON
bsd-3-clause
TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,TimothyGu/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc
json
## Code Before: { "tests": [ { "app": "apprtcmobile_tests", "xctest": true }, { "app": "audio_decoder_unittests" }, { "app": "common_audio_unittests" }, { "app": "common_video_unittests" }, { "app": "modules_tests" }, { "app": "ortc...
7076cc7cd9d834813c0dc6b803807c95c6c6fcfe
dev/cozy-stack/bootstrap-cozy-desktop.sh
dev/cozy-stack/bootstrap-cozy-desktop.sh
set -x # Create CouchDB system tables for table in _global_changes _metadata _replicator _users; do curl -X PUT http://couch:5984/$table done # Create cozy-stack instances for name in "dev" "test"; do cozy-stack instances add \ --dev \ --passphrase CozyTest_1 \ $name.cozy.tools:8080 done # Retrieve ...
set -x # Create CouchDB system tables for table in _global_changes _metadata _replicator _users; do curl -X PUT http://couch:5984/$table done # Create cozy-stack instances for name in "dev" "test"; do cozy-stack instances add \ --dev \ --passphrase CozyTest_1 \ $name.cozy.tools:8080 done # Install c...
Install cozy-drive by default on dev instance
build: Install cozy-drive by default on dev instance
Shell
agpl-3.0
nono/cozy-desktop,nono/cozy-desktop,nono/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,nono/cozy-desktop,cozy-labs/cozy-desktop
shell
## Code Before: set -x # Create CouchDB system tables for table in _global_changes _metadata _replicator _users; do curl -X PUT http://couch:5984/$table done # Create cozy-stack instances for name in "dev" "test"; do cozy-stack instances add \ --dev \ --passphrase CozyTest_1 \ $name.cozy.tools:8080 d...
9e5e66da598121e08526de41d7fb7b0e956a0cb5
nom/object.go
nom/object.go
package nom // Object is the interface of all structs in the network object model. type Object interface { // GOBDecode decodes the object from a byte array using the GOB encoding. GOBDecode(b []byte) error // GOBEncode encodes the object into a byte array using the GOB encoding. GOBEncode() ([]byte, error) // JS...
package nom import ( "bytes" "encoding/gob" "reflect" "github.com/golang/glog" "github.com/soheilhy/beehive/bh" ) // Object is the interface of all structs in the network object model. type Object interface { // GobDecode decodes the object from a byte array using the Gob encoding. GobDecode(b []byte) error ...
Add generic methods for nom.Object
Add generic methods for nom.Object This commit refactors the code for GobEncode/GobDecode and getting/putting objects from dictionaries.
Go
apache-2.0
kandoo/beehive-netctrl,soheilhy/beehive-netctrl
go
## Code Before: package nom // Object is the interface of all structs in the network object model. type Object interface { // GOBDecode decodes the object from a byte array using the GOB encoding. GOBDecode(b []byte) error // GOBEncode encodes the object into a byte array using the GOB encoding. GOBEncode() ([]byt...
7b6debe0ab1c1b4beb349ec963cb7ff026a8e48a
server/model/Post/schema.js
server/model/Post/schema.js
import {DataTypes as t} from "sequelize" import format from "date-fns/format" import createSlug from "lib/helper/util/createSlug" /** * @const schema * * @type {import("sequelize").ModelAttributes} */ const schema = { id: { type: t.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true }, user...
import {DataTypes as t} from "sequelize" import format from "date-fns/format" import createSlug from "lib/helper/util/createSlug" /** * @const schema * * @type {import("sequelize").ModelAttributes} */ const schema = { id: { type: t.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: true }, user...
Change slug format in Post model
Change slug format in Post model
JavaScript
mit
octet-stream/eri,octet-stream/eri
javascript
## Code Before: import {DataTypes as t} from "sequelize" import format from "date-fns/format" import createSlug from "lib/helper/util/createSlug" /** * @const schema * * @type {import("sequelize").ModelAttributes} */ const schema = { id: { type: t.INTEGER.UNSIGNED, primaryKey: true, autoIncrement: ...
da3995150d6eacf7695c4606e83c24c82a17546d
autogenerate_config_docs/hooks.py
autogenerate_config_docs/hooks.py
def keystone_config(): from keystone.common import config config.configure() def glance_store_config(): try: import glance_store from oslo.config import cfg glance_store.backend.register_opts(cfg.CONF) except ImportError: # glance_store is not available before Juno ...
def keystone_config(): from keystone.common import config config.configure() def glance_store_config(): try: import glance_store from oslo.config import cfg glance_store.backend.register_opts(cfg.CONF) except ImportError: # glance_store is not available before Juno ...
Add a hook for nova.cmd.spicehtml5proxy
Add a hook for nova.cmd.spicehtml5proxy The cmd/ folders are excluded from the autohelp imports to avoid ending up with a bunch of CLI options. nova/cmd/spicehtml5proxy.py holds real configuration options and needs to be imported. Change-Id: Ic0f8066332a45cae253ad3e03f4717f1887e16ee Partial-Bug: #1394595
Python
apache-2.0
openstack/openstack-doc-tools,savinash47/openstack-doc-tools,savinash47/openstack-doc-tools,savinash47/openstack-doc-tools,openstack/openstack-doc-tools
python
## Code Before: def keystone_config(): from keystone.common import config config.configure() def glance_store_config(): try: import glance_store from oslo.config import cfg glance_store.backend.register_opts(cfg.CONF) except ImportError: # glance_store is not availa...
3ac6c49f48b3e73ebc577ba161102c6ba4643300
docs/source/whatisnew4.txt
docs/source/whatisnew4.txt
.. index:: single: What is new in Ring 1.4?; Introduction ======================== What is new in Ring 1.4? ======================== In this chapter we will learn about the changes and new features in Ring 1.4 release. .. index:: pair: What is new in Ring 1.4?; List of changes and new features List of changes a...
.. index:: single: What is new in Ring 1.4?; Introduction ======================== What is new in Ring 1.4? ======================== In this chapter we will learn about the changes and new features in Ring 1.4 release. .. index:: pair: What is new in Ring 1.4?; List of changes and new features List of changes a...
Update Documentation - What is new in Ring 1.4? chapter.
Update Documentation - What is new in Ring 1.4? chapter.
Text
mit
ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring,ring-lang/ring
text
## Code Before: .. index:: single: What is new in Ring 1.4?; Introduction ======================== What is new in Ring 1.4? ======================== In this chapter we will learn about the changes and new features in Ring 1.4 release. .. index:: pair: What is new in Ring 1.4?; List of changes and new features L...
f4e530d8630371d97714046f7d9a79a609c1e6ef
Magic/src/main/resources/examples/survival/spells/bring.yml
Magic/src/main/resources/examples/survival/spells/bring.yml
bring: inherit: goto icon: soul_lantern{CustomModelData:18001} icon_disabled: soul_lantern{CustomModelData:18002} legacy_icon: spell_icon:48 legacy_icon_disabled: spell_icon_disabled:48 icon_url: http://textures.minecraft.net/texture/ff78194bb5fe3f374ca6a1727c04247b7bac331cff248bf642acc8e73647e actions: ...
bring: inherit: goto icon: soul_lantern{CustomModelData:18001} icon_disabled: soul_lantern{CustomModelData:18002} legacy_icon: spell_icon:48 legacy_icon_disabled: spell_icon_disabled:48 icon_url: http://textures.minecraft.net/texture/ff78194bb5fe3f374ca6a1727c04247b7bac331cff248bf642acc8e73647e actions: ...
Allow Bring to bypass pvp
Allow Bring to bypass pvp
YAML
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
yaml
## Code Before: bring: inherit: goto icon: soul_lantern{CustomModelData:18001} icon_disabled: soul_lantern{CustomModelData:18002} legacy_icon: spell_icon:48 legacy_icon_disabled: spell_icon_disabled:48 icon_url: http://textures.minecraft.net/texture/ff78194bb5fe3f374ca6a1727c04247b7bac331cff248bf642acc8e736...
b2f2ea3a992aea88994ac9814fb2dd39debcd934
CHANGELOG.md
CHANGELOG.md
- Deserialise empty strings and null strings to a null object (contributed by [anilmamede](https://github.com/anilmamede))
- Parsing `DateTime` values that omit milliseconds is now supported (contributed by [Hikaru755](https://github.com/Hikaru755)) ## [1.2.0] - 2015-07-24 ### Changed - Deserialise empty strings and null strings to a null object (contributed by [anilmamede](https://github.com/anilmamede))
Update changelog with Hikaru755's contribution.
Update changelog with Hikaru755's contribution. https://github.com/gkopff/gson-jodatime-serialisers/pull/35
Markdown
mit
gkopff/gson-jodatime-serialisers,gkopff/gson-jodatime-serialisers
markdown
## Code Before: - Deserialise empty strings and null strings to a null object (contributed by [anilmamede](https://github.com/anilmamede)) ## Instruction: Update changelog with Hikaru755's contribution. https://github.com/gkopff/gson-jodatime-serialisers/pull/35 ## Code After: - Parsing `DateTime` values that omit...
5d3cfd5339e7c4c08042901a9c3bcc75e83c3dbb
t/nqp/18-associative.t
t/nqp/18-associative.t
plan(8); my %h; %h<a> := 1; ok(1,"# hash assignment with numeric value works"); ok(%h<a> + 1 == 2, 'hash access to numeric value'); %h<a> := 'ok 3'; ok(%h<a> eq 'ok 3', 'hash access to string value'); %h{1} := '4'; ok(%h{1} == 4, 'numeric hash access'); ok(%h<1> + 1 eq "5", 'numbers stringify'); %h{'b'} := 'ok ...
plan(10); my %h; %h<a> := 1; ok(1,"# hash assignment with numeric value works"); ok(%h<a> + 1 == 2, 'hash access to numeric value'); %h<a> := 'ok 3'; ok(%h<a> eq 'ok 3', 'hash access to string value'); %h{1} := '4'; ok(%h{1} == 4, 'numeric hash access'); ok(%h<1> + 1 eq "5", 'numbers stringify'); %h{'b'} := 'ok...
Add testing for access of missing keys to test 18.
Add testing for access of missing keys to test 18.
Perl
artistic-2.0
cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp
perl
## Code Before: plan(8); my %h; %h<a> := 1; ok(1,"# hash assignment with numeric value works"); ok(%h<a> + 1 == 2, 'hash access to numeric value'); %h<a> := 'ok 3'; ok(%h<a> eq 'ok 3', 'hash access to string value'); %h{1} := '4'; ok(%h{1} == 4, 'numeric hash access'); ok(%h<1> + 1 eq "5", 'numbers stringify'); ...
d1a4c13a5f12b3cbad3d2fba7ea2262b9c5fe7c0
modules/core/documentation/package.json
modules/core/documentation/package.json
{ "name": "decent-core-documentation", "friendlyName": "Core Documentation", "version": "0.0.0", "description": "Online documentation for DecentCMS", "features": { "documentation": { "name": "Online documentation", "description": "Makes online documentation for all modules available under the ...
{ "name": "decent-core-documentation", "friendlyName": "Core Documentation", "version": "0.0.0", "description": "Online documentation for DecentCMS", "features": { "documentation": { "name": "Online documentation", "description": "Makes online documentation for all modules available under the ...
Add API documentation feature to documentation module manifest.
Add API documentation feature to documentation module manifest.
JSON
mit
DecentCMS/DecentCMS
json
## Code Before: { "name": "decent-core-documentation", "friendlyName": "Core Documentation", "version": "0.0.0", "description": "Online documentation for DecentCMS", "features": { "documentation": { "name": "Online documentation", "description": "Makes online documentation for all modules avai...
5622a166638df77aaf7f22678300560274a2b561
_posts/1977-01-01-myEvent.markdown
_posts/1977-01-01-myEvent.markdown
--- title: Make Your First Event text: In order to make your first event, follow the instructions here. location: Your Location link: https://github.com/mozillascience/studyGroup#how-to-launch-a-new-event date: 1977-01-01 startTime: '20:00' endTime: '21:00' ---
--- title: Make Your First Event text: In order to make your first event, follow the instructions here. location: Your Location link: https://github.com/mozillascience/studyGroup#how-to-set-up-your-own-mozilla-study-group-website date: 1977-01-01 startTime: '20:00' endTime: '21:00' ---
Change link to reflect actually link in SG Readme
Change link to reflect actually link in SG Readme
Markdown
apache-2.0
MasseyStudyGroup/masseystudygroup.github.io,mozillascience/studyGroup,mozillascience/studyGroup,MasseyStudyGroup/masseystudygroup.github.io,MasseyStudyGroup/masseystudygroup.github.io,MasseyStudyGroup/masseystudygroup.github.io,mozillascience/studyGroup,mozillascience/studyGroup,MasseyStudyGroup/masseystudygroup.github...
markdown
## Code Before: --- title: Make Your First Event text: In order to make your first event, follow the instructions here. location: Your Location link: https://github.com/mozillascience/studyGroup#how-to-launch-a-new-event date: 1977-01-01 startTime: '20:00' endTime: '21:00' --- ## Instruction: Change link to reflect a...
3e240d293197b0fa6b6ea3a188a063fc00cd4f07
manifest.json
manifest.json
{ "name": "Inuits Presence", "short_name": "Igloo", "start_url": "./", "display": "minimal-ui", "icons": [{ "src": "imgs/touch/homescreen48.png", "sizes": "48x48", "type": "image/png" }, { "src": "imgs/touch/homescreen72.png", "sizes": "72x72", "type": "image/png" }, { "src": "...
{ "name": "Inuits Presence", "short_name": "Igloo", "start_url": "index.html", "display": "standalone", "icons": [{ "src": "imgs/touch/homescreen48.png", "sizes": "48x48", "type": "image/png" }, { "src": "imgs/touch/homescreen72.png", "sizes": "72x72", "type": "image/png" }, { ...
Set homescreen to standalone and set_screen to index.html
Set homescreen to standalone and set_screen to index.html Signed-off-by: Christophe Vanlancker <e326f9f563002de800fc8506f2187bbb9dd743fc@inuits.eu>
JSON
mit
carroarmato0/pamela-mobileapp,carroarmato0/pamela-mobileapp
json
## Code Before: { "name": "Inuits Presence", "short_name": "Igloo", "start_url": "./", "display": "minimal-ui", "icons": [{ "src": "imgs/touch/homescreen48.png", "sizes": "48x48", "type": "image/png" }, { "src": "imgs/touch/homescreen72.png", "sizes": "72x72", "type": "image/png" }...
a6e9927c514421db5e221620d73565c58df5c071
README.md
README.md
Interactive registration tool for 3D medical datasets. Written for the most part in Python. Uses PySide for the interface and uses VTK for the visualizations. Uses [vtkMultiVolRen](https://github.com/karlkrissian/vtkMultiVolRen) for rendering multiple datasets in one vtkRenderer. My fork can be found at [https://gith...
Interactive registration tool for 3D medical datasets. ![Screenshot of the Registrationshop user interface](https://graphics.tudelft.nl/wp-content/uploads/2013/09/Registrationshop-2013-09-16.png) Written for the most part in Python. Uses PySide for the interface and uses VTK for the visualizations. Uses [vtkMultiVol...
Update readme file with an image!
Update readme file with an image!
Markdown
mit
berendkleinhaneveld/Registrationshop,berendkleinhaneveld/Registrationshop
markdown
## Code Before: Interactive registration tool for 3D medical datasets. Written for the most part in Python. Uses PySide for the interface and uses VTK for the visualizations. Uses [vtkMultiVolRen](https://github.com/karlkrissian/vtkMultiVolRen) for rendering multiple datasets in one vtkRenderer. My fork can be found ...
b9ef72138c5312fe8eb7cfa48abe48a8c477afdc
test/test_type_checker_creator.py
test/test_type_checker_creator.py
from __future__ import absolute_import import pytest from dataproperty._type_checker_creator import IntegerTypeCheckerCreator from dataproperty._type_checker_creator import FloatTypeCheckerCreator from dataproperty._type_checker_creator import DateTimeTypeCheckerCreator from dataproperty._type_checker import Integer...
from __future__ import absolute_import import pytest import dataproperty._type_checker_creator as tcc import dataproperty._type_checker as tc class Test_TypeCheckerCreator(object): @pytest.mark.parametrize(["value", "is_convert", "expected"], [ [tcc.NoneTypeCheckerCreator, True, tc.NoneTypeChecker], ...
Add tests for NoneTypeCheckerCreator class
Add tests for NoneTypeCheckerCreator class
Python
mit
thombashi/DataProperty
python
## Code Before: from __future__ import absolute_import import pytest from dataproperty._type_checker_creator import IntegerTypeCheckerCreator from dataproperty._type_checker_creator import FloatTypeCheckerCreator from dataproperty._type_checker_creator import DateTimeTypeCheckerCreator from dataproperty._type_checke...
6de70d8370ecaaf2eeeacb91e7607ffbad25b207
README.md
README.md
Squeeze ======= Run commands in isolated, one-time LXC containers. Prerequisites ------------- - Linux with LXC and AUFS support in kernel - libvirt, avahi and debootstrap userspace tools On Ubuntu Precise vanilla distro this is satisfied by just: sudo apt-get install libvirt-bin debootstrap avahi-daemon ...
Squeeze ======= Proof of concept code spike to run commands in isolated, one-time LXC containers. Prerequisites ------------- - Linux with LXC and AUFS support in kernel - libvirt, avahi and debootstrap userspace tools On Ubuntu Precise vanilla distro this is satisfied by just: sudo apt-get install libvirt-bi...
Clarify that this code is not wonder.
Clarify that this code is not wonder.
Markdown
mit
pawelpacana/squeeze
markdown
## Code Before: Squeeze ======= Run commands in isolated, one-time LXC containers. Prerequisites ------------- - Linux with LXC and AUFS support in kernel - libvirt, avahi and debootstrap userspace tools On Ubuntu Precise vanilla distro this is satisfied by just: sudo apt-get install libvirt-bin debootstrap ...
5b4473a7d1748e54d7c097b818ecb4fbb2080497
src/main/java/info/u_team/u_team_core/data/ExistingFileHelperWithForge.java
src/main/java/info/u_team/u_team_core/data/ExistingFileHelperWithForge.java
package info.u_team.u_team_core.data; import java.io.IOException; import java.util.Arrays; import net.minecraft.resources.*; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.data.ExistingFileHelper; import net.minecraftforge.fml.loading.FMLLoader; public class ExistingFileHelperWithForge ...
package info.u_team.u_team_core.data; import java.io.IOException; import java.util.Arrays; import net.minecraft.resources.*; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.data.ExistingFileHelper; import net.minecraftforge.fml.loading.FMLLoader; class ExistingFileHelperWithForge extends...
Make the class package private
Make the class package private
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
java
## Code Before: package info.u_team.u_team_core.data; import java.io.IOException; import java.util.Arrays; import net.minecraft.resources.*; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.data.ExistingFileHelper; import net.minecraftforge.fml.loading.FMLLoader; public class ExistingFile...
82d84fa5ea0bfeef1566fbf576d473154dbba731
lib/ellen/adapters/base.rb
lib/ellen/adapters/base.rb
module Ellen module Adapters class Base include Env::Validatable class << self def inherited(child_class) Ellen::AdapterBuilder.adapter_classes << child_class end end attr_reader :robot def initialize(robot) @robot = robot validate r...
module Ellen module Adapters class Base include Env::Validatable class << self def inherited(child_class) Ellen::AdapterBuilder.adapter_classes << child_class end end attr_reader :robot def initialize(robot) @robot = robot validate r...
Remove unused abstract interface method
Remove unused abstract interface method
Ruby
mit
r7kamura/ruboty,ushimitsu-toki/ruboty,mausu/ruboty
ruby
## Code Before: module Ellen module Adapters class Base include Env::Validatable class << self def inherited(child_class) Ellen::AdapterBuilder.adapter_classes << child_class end end attr_reader :robot def initialize(robot) @robot = robot ...
f1ee7b0771576d5af9538cd77fd77217db1a8e9a
module/Directorzone/view/directorzone/directory/company-list.phtml
module/Directorzone/view/directorzone/directory/company-list.phtml
<?php echo $this->partial('directory-nav.phtml'); ?> <h3>Company directory</h3> <h5><a href="/directories/company/<?php echo $this->companydirectoryid; ?>/overview">Add new company</a></h5> <table id="companies" data-link="row" class="rowlink table table-striped table-bordered table-hover"> <tr><th>Number</th><th>Name...
<?php echo $this->partial('directory-nav.phtml'); ?> <h3>Company directory</h3> <h5><a href="/directories/company/new">Add new company</a></h5> <table id="companies" data-link="row" class="rowlink table table-striped table-bordered table-hover"> <tr><th>Number</th><th>Name</th><th>CEO</th><th>Sectors</th><th>Turnover<...
Allow non-CH companies to be added
Allow non-CH companies to be added
HTML+PHP
bsd-3-clause
Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone,Netsensia/directorzone
html+php
## Code Before: <?php echo $this->partial('directory-nav.phtml'); ?> <h3>Company directory</h3> <h5><a href="/directories/company/<?php echo $this->companydirectoryid; ?>/overview">Add new company</a></h5> <table id="companies" data-link="row" class="rowlink table table-striped table-bordered table-hover"> <tr><th>Num...
2db1199aa131ef421bef69fbb4a68413ca0ca19a
lispkit.lisp
lispkit.lisp
(defpackage lispkit (:use :gtk :gdk :gdk-pixbuf :gobject :drakma :cl-webkit :glib :gio :pango :cairo :common-lisp) (:export #:main)) (in-package :lispkit) (defun main (&rest args) (declare (ignore args)) (within-main-loop (let ((window (gtk-window-new :toplevel)) (view (webkit.fo...
(defpackage lispkit (:use :gtk :gdk :gdk-pixbuf :gobject :drakma :cl-webkit :glib :gio :pango :cairo :common-lisp) (:export #:main)) (in-package :lispkit) (defun main (&rest args) (declare (ignore args)) (within-main-loop (let ((window (gtk-window-new :toplevel)) (view (webkit.fo...
Destroy the webview on frame exit
Destroy the webview on frame exit
Common Lisp
bsd-2-clause
AeroNotix/lispkit,AeroNotix/lispkit
common-lisp
## Code Before: (defpackage lispkit (:use :gtk :gdk :gdk-pixbuf :gobject :drakma :cl-webkit :glib :gio :pango :cairo :common-lisp) (:export #:main)) (in-package :lispkit) (defun main (&rest args) (declare (ignore args)) (within-main-loop (let ((window (gtk-window-new :toplevel)) ...
b5d64dab892eeeecbdcf667ab8c797d5d3c4fdc7
src/osc_types.rs
src/osc_types.rs
use errors; // see OSC Type Tag String: http://opensoundcontrol.org/spec-1_0 // padding: zero bytes (n*4) pub enum OscType { OscInt(i32), OscFloat(f32), OscString(String), OscBlob(Vec<u8>), OscTime(u32, u32), // nonstandard argument types // ignore them if not implemented OscLong(i64), ...
use errors; // see OSC Type Tag String: http://opensoundcontrol.org/spec-1_0 // padding: zero bytes (n*4) pub enum OscType { OscInt(i32), OscFloat(f32), OscString(String), OscBlob(Vec<u8>), OscTime(u32, u32), // nonstandard argument types // ignore them if not implemented OscLong(i64), ...
Define `OscMessage` and `OscBundle` structs
Define `OscMessage` and `OscBundle` structs
Rust
apache-2.0
klingtnet/rosc
rust
## Code Before: use errors; // see OSC Type Tag String: http://opensoundcontrol.org/spec-1_0 // padding: zero bytes (n*4) pub enum OscType { OscInt(i32), OscFloat(f32), OscString(String), OscBlob(Vec<u8>), OscTime(u32, u32), // nonstandard argument types // ignore them if not implemented ...
c51b80dd1be7bdddcf95227997266aedbcf790b4
js/talks.js
js/talks.js
(function ($) { var defaults = { }; var slides = []; var root, header, footer; var current = 0; var invisible = "slides-invisible"; function initslides (element, settings) { root = $(element); header = root.find("> header"); footer = root.find("> footer"); /...
(function ($) { var defaults = { }; var settings = {}; var slides = []; var root, header, footer; var current = 0; var invisible = "slides-invisible"; function initslides (element) { root = $(element); header = root.find("> header"); footer = root.find("> footer"...
Make settings a plugin global.
Make settings a plugin global.
JavaScript
isc
whilp/sideshow
javascript
## Code Before: (function ($) { var defaults = { }; var slides = []; var root, header, footer; var current = 0; var invisible = "slides-invisible"; function initslides (element, settings) { root = $(element); header = root.find("> header"); footer = root.find("> foot...
ae8b0d5eab43a349f33d3eb907565cb2931e15cd
jedi/api/replstartup.py
jedi/api/replstartup.py
import jedi.utils jedi.utils.setup_readline() del jedi # Note: try not to do many things here, as it will contaminate global # namespace of the interpreter.
import jedi.utils from jedi import __version__ as __jedi_version__ print('REPL completion using Jedi %s' % __jedi_version__) jedi.utils.setup_readline() del jedi # Note: try not to do many things here, as it will contaminate global # namespace of the interpreter.
Print the Jedi version when REPL completion is used
Print the Jedi version when REPL completion is used This also makes debugging easier, because people see which completion they're actually using.
Python
mit
tjwei/jedi,mfussenegger/jedi,WoLpH/jedi,mfussenegger/jedi,jonashaag/jedi,flurischt/jedi,WoLpH/jedi,flurischt/jedi,jonashaag/jedi,dwillmer/jedi,dwillmer/jedi,tjwei/jedi
python
## Code Before: import jedi.utils jedi.utils.setup_readline() del jedi # Note: try not to do many things here, as it will contaminate global # namespace of the interpreter. ## Instruction: Print the Jedi version when REPL completion is used This also makes debugging easier, because people see which completion they'r...
17150bd4cbf7feb20b6626de2b6442bae851e5d9
lib/yard/handlers/method_handler.rb
lib/yard/handlers/method_handler.rb
class YARD::Handlers::MethodHandler < YARD::Handlers::Base handles TkDEF def process mscope = scope meth = statement.tokens.to_s[/^def\s+([\s\w\:\.]+)/, 1].gsub(/\s+/,'') # Class method if prefixed by self(::|.) or Module(::|.) if meth =~ /(?:#{NSEP}|\.)([^#{NSEP}\.]+)$/ mscope, meth...
class YARD::Handlers::MethodHandler < YARD::Handlers::Base handles TkDEF def process mscope = scope meth = statement.tokens.to_s[/^def\s+([\s\w\:\.=<>\?^%\/\*]+)/, 1].gsub(/\s+/,'') # Class method if prefixed by self(::|.) or Module(::|.) if meth =~ /(?:#{NSEP}|\.)([^#{NSEP}\.]+)$/ m...
Add support for non-alphanum methods.. specs to come
Add support for non-alphanum methods.. specs to come
Ruby
mit
travis-repos/yard,ohai/yard,herosky/yard,alexdowad/yard,lsegal/yard,thomthom/yard,iankronquist/yard,travis-repos/yard,lsegal/yard,amclain/yard,alexdowad/yard,iankronquist/yard,lsegal/yard,herosky/yard,ohai/yard,jreinert/yard,jreinert/yard,jreinert/yard,thomthom/yard,thomthom/yard,amclain/yard,iankronquist/yard,herosky/...
ruby
## Code Before: class YARD::Handlers::MethodHandler < YARD::Handlers::Base handles TkDEF def process mscope = scope meth = statement.tokens.to_s[/^def\s+([\s\w\:\.]+)/, 1].gsub(/\s+/,'') # Class method if prefixed by self(::|.) or Module(::|.) if meth =~ /(?:#{NSEP}|\.)([^#{NSEP}\.]+)$/ ...
0b7c27fec5b1b7ececfcf7556f415e8e53cf69b6
v1.0/v1.0/search.py
v1.0/v1.0/search.py
import sys mainfile = sys.argv[1] indexfile = sys.argv[1] + ".idx1" term = sys.argv[2] main = open(mainfile) index = open(indexfile) st = term + ": " for a in index: if a.startswith(st): n = [int(i) for i in a[len(st):].split(", ") if i] linenum = 0 for l in main: linenum +=...
from __future__ import print_function import sys mainfile = sys.argv[1] indexfile = sys.argv[1] + ".idx1" term = sys.argv[2] main = open(mainfile) index = open(indexfile) st = term + ": " for a in index: if a.startswith(st): n = [int(i) for i in a[len(st):].split(", ") if i] linenum = 0 ...
Make conformance test 55 compatible with Python 3
Make conformance test 55 compatible with Python 3
Python
apache-2.0
curoverse/common-workflow-language,curoverse/common-workflow-language,mr-c/common-workflow-language,common-workflow-language/common-workflow-language,mr-c/common-workflow-language,dleehr/common-workflow-language,dleehr/common-workflow-language,common-workflow-language/common-workflow-language,dleehr/common-workflow-lan...
python
## Code Before: import sys mainfile = sys.argv[1] indexfile = sys.argv[1] + ".idx1" term = sys.argv[2] main = open(mainfile) index = open(indexfile) st = term + ": " for a in index: if a.startswith(st): n = [int(i) for i in a[len(st):].split(", ") if i] linenum = 0 for l in main: ...
0ebf51994a73fdc7c4f13b274fc41bef541eea52
deflect/widgets.py
deflect/widgets.py
from __future__ import unicode_literals from itertools import chain from django import forms from django.utils.encoding import force_text from django.utils.html import format_html from django.utils.safestring import mark_safe class DataListInput(forms.TextInput): """ A form widget that displays a standard `...
from __future__ import unicode_literals from itertools import chain from django import forms from django.utils.encoding import force_text from django.utils.html import format_html from django.utils.safestring import mark_safe class DataListInput(forms.TextInput): """ A form widget that displays a standard `...
Hide the option set from incompatible browsers
Hide the option set from incompatible browsers
Python
bsd-3-clause
jbittel/django-deflect
python
## Code Before: from __future__ import unicode_literals from itertools import chain from django import forms from django.utils.encoding import force_text from django.utils.html import format_html from django.utils.safestring import mark_safe class DataListInput(forms.TextInput): """ A form widget that displ...
a7286cb5ecf1f71f501ee6f2b1771fcfca8a5d4f
cypress.json
cypress.json
{ "projectId": "a209b1cd-e44f-47a4-b22c-d8f26649f43f", "integrationFolder": "tests", "fixturesFolder": "tests/_fixtures", "supportFolder": "tests/_support", "environmentVariables": { "CLUSTER_URL": "http://localhost:4200", "FULL_INTEGRATION_TEST": false } }
{ "projectId": "a209b1cd-e44f-47a4-b22c-d8f26649f43f", "integrationFolder": "tests", "fixturesFolder": "tests/_fixtures", "supportFolder": "tests/_support", "commandTimeout": 5000, "environmentVariables": { "CLUSTER_URL": "http://localhost:4200", "FULL_INTEGRATION_TEST": false } }
Increase integration test command timeout
Increase integration test command timeout
JSON
apache-2.0
dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui
json
## Code Before: { "projectId": "a209b1cd-e44f-47a4-b22c-d8f26649f43f", "integrationFolder": "tests", "fixturesFolder": "tests/_fixtures", "supportFolder": "tests/_support", "environmentVariables": { "CLUSTER_URL": "http://localhost:4200", "FULL_INTEGRATION_TEST": false } } ## Instruction: Increase ...
b028830e54c4202308c957a290445710dd67ca13
README.md
README.md
My bioinformatics scripts ========================= A collection of useful bioinformatics scripts starStats.py ------------ **Description:** Extract alignment statistics from STAR log files. **Language:** Python **Usage:** `starStats.py [-h] -o OUT LOGFILE [LOGFILE ...]` alignStats.py ------------- **Description...
My bioinformatics scripts ========================= A collection of useful bioinformatics scripts starStats.py ------------ **Description:** Extract alignment statistics from STAR log files. **Language:** Python **Usage:** `starStats.py [-h] -o OUT LOGFILE [LOGFILE ...]` alignStats.py ------------- **Description...
Add link to alignStats description.
Add link to alignStats description.
Markdown
mit
lazappi/binf-scripts,lazappi/binf-scripts
markdown
## Code Before: My bioinformatics scripts ========================= A collection of useful bioinformatics scripts starStats.py ------------ **Description:** Extract alignment statistics from STAR log files. **Language:** Python **Usage:** `starStats.py [-h] -o OUT LOGFILE [LOGFILE ...]` alignStats.py ------------...
d3c66ba1ece0bace394022e023b0c4ade959503e
lib/serve-css.js
lib/serve-css.js
var prepare = require('prepare-response') , autoprefixer = require('autoprefixer-core')() , fs = require('fs') var cache = new Map() , isProd = process.env.NODE_ENV == 'production' module.exports = serveCss function serveCss(path) { var cacheKey = JSON.stringify(path) return function(req, res, next) { i...
var prepare = require('prepare-response') , autoprefixer = require('autoprefixer-core')() , fs = require('fs') var cache = new Map() , isProd = process.env.NODE_ENV == 'production' module.exports = serveCss function serveCss(path) { var cacheKey = JSON.stringify(path) return function(req, res, next) { i...
Fix cache headers on CSS file.
Fix cache headers on CSS file.
JavaScript
mit
teltploek/bacid,tec27/seatcamp,brycebaril/seatcamp,tec27/seatcamp,teltploek/bacid,brycebaril/seatcamp
javascript
## Code Before: var prepare = require('prepare-response') , autoprefixer = require('autoprefixer-core')() , fs = require('fs') var cache = new Map() , isProd = process.env.NODE_ENV == 'production' module.exports = serveCss function serveCss(path) { var cacheKey = JSON.stringify(path) return function(req, re...
873e6c0588bf51b3d821fd8f6d2b6f77b9fd4038
app/components/container-dot/component.js
app/components/container-dot/component.js
import Ember from 'ember'; import { isAlternate } from 'ui/utils/platform'; export default Ember.Component.extend({ resourceActions: Ember.inject.service('resource-actions'), model: null, tagName: 'I', classNames: ['dot','hand'], classNameBindings: ['model.stateColor','model.stateIcon'], attributeBinding...
import Ember from 'ember'; import { isAlternate } from 'ui/utils/platform'; export default Ember.Component.extend({ resourceActions: Ember.inject.service('resource-actions'), model: null, tagName: 'I', classNames: ['dot','hand'], classNameBindings: ['model.stateColor','model.stateIcon'], attributeBinding...
Fix container dot click for VM
Fix container dot click for VM
JavaScript
apache-2.0
ubiquityhosting/rancher_ui,westlywright/ui,nrvale0/ui,ubiquityhosting/rancher_ui,pengjiang80/ui,rancherio/ui,vincent99/ui,lvuch/ui,nrvale0/ui,rancher/ui,rancher/ui,lvuch/ui,ubiquityhosting/rancher_ui,westlywright/ui,rancherio/ui,pengjiang80/ui,vincent99/ui,lvuch/ui,vincent99/ui,rancherio/ui,rancher/ui,pengjiang80/ui,nr...
javascript
## Code Before: import Ember from 'ember'; import { isAlternate } from 'ui/utils/platform'; export default Ember.Component.extend({ resourceActions: Ember.inject.service('resource-actions'), model: null, tagName: 'I', classNames: ['dot','hand'], classNameBindings: ['model.stateColor','model.stateIcon'], ...
1f5a7610b466f112b0aa64590c43c4cbf619c131
README.md
README.md
WMT === The CSDMS Web Modeling Tool --------------------------- WMT is a RESTful web application that allows users to build and run coupled surface dynamics models on a high-performance computing cluster (HPCC) from a web browser on a desktop, laptop or tablet computer. With WMT, a user can: * select a Common Compo...
[![Build Status](https://travis-ci.org/csdms/wmt-client.svg?branch=master)](https://travis-ci.org/csdms/wmt-client) WMT === The CSDMS Web Modeling Tool --------------------------- WMT is a RESTful web application that allows users to build and run coupled surface dynamics models on a high-performance computing clust...
Add Travis CI build status icon
Add Travis CI build status icon
Markdown
mit
mdpiper/wmt-client,mdpiper/wmt-client,csdms/wmt-client,mdpiper/wmt-client,csdms/wmt-client,csdms/wmt-client
markdown
## Code Before: WMT === The CSDMS Web Modeling Tool --------------------------- WMT is a RESTful web application that allows users to build and run coupled surface dynamics models on a high-performance computing cluster (HPCC) from a web browser on a desktop, laptop or tablet computer. With WMT, a user can: * selec...
97ef81a7ad853685be65567ed6bfe1f7515a44c0
app/javascript/packs/owned_plugin_section.js
app/javascript/packs/owned_plugin_section.js
import "lodash/lodash" $(document).ready(() => { let configUrl = (name) => { return `/daemon/setting/${name}/configure` } function ownedSectionOnChange() { const pluginName = _.last(document.documentURI.replace(/\/configure$/, "").split("/")) $("#parse-section select").on("change", (event) => { ...
import "lodash/lodash" $(document).ready(() => { let configUrl = (name) => { return `/daemon/setting/${name}/configure` } function ownedSectionOnChange() { const pluginName = _.last(document.documentURI.replace(/\/configure$/, "").split("/")) $("#buffer-section select").on("change", (event) => { ...
Handle onChange event of buffer/storage section configuration
Handle onChange event of buffer/storage section configuration Signed-off-by: Kenji Okimoto <7a4b90a0a1e6fc688adec907898b6822ce215e6c@clear-code.com>
JavaScript
apache-2.0
fluent/fluentd-ui,fluent/fluentd-ui,fluent/fluentd-ui
javascript
## Code Before: import "lodash/lodash" $(document).ready(() => { let configUrl = (name) => { return `/daemon/setting/${name}/configure` } function ownedSectionOnChange() { const pluginName = _.last(document.documentURI.replace(/\/configure$/, "").split("/")) $("#parse-section select").on("change", (ev...
4fb05493a0ace8face9f84b8cfbfea68361e008b
priv/example.zone.json
priv/example.zone.json
[{ "name": "example.com", "records": [ { "name": "example.com", "type": "SOA", "ttl": 3600, "data": { "mname": "ns1.example.com", "rname": "admin.example.com", "serial": 2013022001, "refresh": 86400, "retry": 7200, "expire": 604800, ...
[ { "name": "example.com", "records": [ { "name": "example.com", "type": "SOA", "ttl": 3600, "data": { "mname": "ns1.example.com", "rname": "admin.example.com", "se...
Reformat using jsonlint and add additional records.
Reformat using jsonlint and add additional records.
JSON
mit
T0ha/erl-dns,SiftLogic/erl-dns,redbeardster/erl-dns,aetrion/erl-dns,fromeroj/erl-dns
json
## Code Before: [{ "name": "example.com", "records": [ { "name": "example.com", "type": "SOA", "ttl": 3600, "data": { "mname": "ns1.example.com", "rname": "admin.example.com", "serial": 2013022001, "refresh": 86400, "retry": 7200, "expire":...
c41d72543bf24c73e4cd8fa87dbb894c274ef2c8
src/main/java/com/github/blindpirate/gogradle/core/dependency/lock/LockedDependencyManager.java
src/main/java/com/github/blindpirate/gogradle/core/dependency/lock/LockedDependencyManager.java
package com.github.blindpirate.gogradle.core.dependency.lock; import com.github.blindpirate.gogradle.core.dependency.GolangDependency; import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet; import java.util.Collection; public interface LockedDependencyManager { GolangDependencySet getLockedD...
package com.github.blindpirate.gogradle.core.dependency.lock; import com.github.blindpirate.gogradle.build.Configuration; import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet; import com.github.blindpirate.gogradle.core.dependency.ResolvedDependency; import java.util.Collection; public interfac...
Add support for test dependencies
Add support for test dependencies
Java
apache-2.0
gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,blindpirate/gogradle,gogradle/gogradle,gogradle/gogradle
java
## Code Before: package com.github.blindpirate.gogradle.core.dependency.lock; import com.github.blindpirate.gogradle.core.dependency.GolangDependency; import com.github.blindpirate.gogradle.core.dependency.GolangDependencySet; import java.util.Collection; public interface LockedDependencyManager { GolangDependen...
5d208e5994a7417214f849c4f51c4adcc5b3ed2f
packages/ro/rollbar.yaml
packages/ro/rollbar.yaml
homepage: https://github.com/azara/rollbar-haskell changelog-type: '' hash: 616f511ea96765c5772eeb17695965fb0dbed54a41868da76c68f4361d28f774 test-bench-deps: {} maintainer: Azara <engineering@azara.io>, Jeff Taggart <jeff@jetaggart.com>, Steven MacCoun <theraccoun@gmail.com> synopsis: error tracking through rollbar.c...
homepage: https://github.com/azara/rollbar-haskell changelog-type: '' hash: b81b7e4998e8d4ac0cf3d2f7eb87719fb1f14d83e4aa2228a90fa2c424266552 test-bench-deps: {} maintainer: Azara <engineering@azara.io>, Jeff Taggart <jeff@jetaggart.com>, Steven MacCoun <theraccoun@gmail.com> synopsis: error tracking through rollbar.c...
Update from Hackage at 2017-08-15T21:51:32Z
Update from Hackage at 2017-08-15T21:51:32Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/azara/rollbar-haskell changelog-type: '' hash: 616f511ea96765c5772eeb17695965fb0dbed54a41868da76c68f4361d28f774 test-bench-deps: {} maintainer: Azara <engineering@azara.io>, Jeff Taggart <jeff@jetaggart.com>, Steven MacCoun <theraccoun@gmail.com> synopsis: error tracking t...
95e2811fd38d8879fdd23a7153a006b3427d5b3e
app/views/notifications/fact_check.text.erb
app/views/notifications/fact_check.text.erb
Hi, I would like you to check the <%= @fact_check_request.document.type.downcase %> titled "<%= raw @fact_check_request.document.title %>" for factual accuracy. <%- if @fact_check_request.instructions.present? -%> <%= raw @fact_check_request.instructions %> <%- end -%> You can do this by visiting the following URL: ...
Hi, I would like you to check the <%= @fact_check_request.document.type.downcase %> titled "<%= raw @fact_check_request.document.title %>" for factual accuracy. <%- if @fact_check_request.instructions.present? -%> Extra instructions: <%= raw @fact_check_request.instructions %> <%- end -%> You can do this by visiting...
Make the extra instructions easier to see.
Make the extra instructions easier to see.
HTML+ERB
mit
ggoral/whitehall,ggoral/whitehall,robinwhittleton/whitehall,askl56/whitehall,robinwhittleton/whitehall,alphagov/whitehall,ggoral/whitehall,askl56/whitehall,askl56/whitehall,hotvulcan/whitehall,hotvulcan/whitehall,hotvulcan/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,alphagov/whitehall,YOTOV-...
html+erb
## Code Before: Hi, I would like you to check the <%= @fact_check_request.document.type.downcase %> titled "<%= raw @fact_check_request.document.title %>" for factual accuracy. <%- if @fact_check_request.instructions.present? -%> <%= raw @fact_check_request.instructions %> <%- end -%> You can do this by visiting the...
bc231b39cd002bcd1b3aeddc5e6c500072f4c77b
app/models/data_source_adapters/redshift_adapter.rb
app/models/data_source_adapters/redshift_adapter.rb
require "active_record/connection_adapters/redshift_adapter" module DataSourceAdapters class RedshiftAdapter < StandardAdapter def fetch_table_names source_base_class.connection.query(<<~SQL, 'SCHEMA') SELECT schemaname, tablename FROM ( SELECT schemaname, tablename FROM pg_tables...
require "active_record/connection_adapters/redshift_adapter" module DataSourceAdapters class RedshiftAdapter < StandardAdapter def fetch_table_names @table_names = source_base_class.connection.query(<<~SQL, 'SCHEMA') SELECT schemaname, tablename FROM ( SELECT schemaname, tablename...
Modify redshift adapter to support spectrum
Modify redshift adapter to support spectrum
Ruby
mit
hogelog/dmemo,hogelog/dmemo,hogelog/dmemo,hogelog/dmemo
ruby
## Code Before: require "active_record/connection_adapters/redshift_adapter" module DataSourceAdapters class RedshiftAdapter < StandardAdapter def fetch_table_names source_base_class.connection.query(<<~SQL, 'SCHEMA') SELECT schemaname, tablename FROM ( SELECT schemaname, tablenam...
7f23a1c266fb03563eebf357ba74526dbd8fa2c8
lib/fb_graph/custom_audience.rb
lib/fb_graph/custom_audience.rb
module FbGraph class CustomAudience < Node ATTRS = [ :account_id, :approximate_count, :name, :origin_audience_id, :parent_audience_id, :parent_category, :status, :subtype, :subtype_name, :type, :type_name, :time_updated ] attr_access...
module FbGraph class CustomAudience < Node ATTRS = [ :account_id, :approximate_count, :name, :origin_audience_id, :data_source, :delivery_status, :operation_status, :permission_for_actions, :subtype, :subtype_name, :time_updated ] attr_acc...
Update the custom audiences fields
Update the custom audiences fields
Ruby
mit
kineticsocial/fb_graph
ruby
## Code Before: module FbGraph class CustomAudience < Node ATTRS = [ :account_id, :approximate_count, :name, :origin_audience_id, :parent_audience_id, :parent_category, :status, :subtype, :subtype_name, :type, :type_name, :time_updated ] ...
ed7de25c2763b36b0bc0460bc977ebbd8af7001a
public/js/views/admin-permissions.js
public/js/views/admin-permissions.js
define(function (require) { // Dependencies var $ = require('jquery') , _ = require('lodash') , Backbone = require('backbone') ; /** * Setup view */ var View = {}; View.initialize = function() { _.bindAll(this); // Cache this.$customize = this.$('[name="_custom_permissions"]'); this.$permiss...
define(function (require) { // Dependencies var $ = require('jquery') , _ = require('lodash') , Backbone = require('backbone') ; /** * Setup view */ var View = {}; View.initialize = function() { _.bindAll(this); // Cache this.$role = $('[name="role"]'); this.$customize = this.$('[name="_cust...
Clear the overriden permissions if the role is changed
Clear the overriden permissions if the role is changed
JavaScript
mit
BKWLD/decoy,BKWLD/decoy,SomosAMambo/decoy,SomosAMambo/decoy,SomosAMambo/decoy,BKWLD/decoy
javascript
## Code Before: define(function (require) { // Dependencies var $ = require('jquery') , _ = require('lodash') , Backbone = require('backbone') ; /** * Setup view */ var View = {}; View.initialize = function() { _.bindAll(this); // Cache this.$customize = this.$('[name="_custom_permissions"]');...
9415eb7a524ae894aaa967c5adf754f9b8d7cfa4
tests/platform/002_agents_install.js
tests/platform/002_agents_install.js
var test = require('tap').test; var child = require('child_process'); test("Agents are installed", function(t) { t.plan(3); child.exec("find /opt/smartdc/agents/bin/ -follow -type f ! -perm -a+x", function(err, stdout, stderr){ t.equal(err, null, "Agents bin directory exists"); ...
var test = require('tap').test; var child = require('child_process'); // This test is to check for regressions against AGENT-420 test("Agents are installed", function(t) { t.plan(3); child.exec("find /opt/smartdc/agents/bin/ -follow -type f ! -perm -a+x", function(err, stdout, stderr){ t....
Add note as to why agent test exists
[QA-95] Add note as to why agent test exists
JavaScript
mpl-2.0
joyent/sdc-system-tests,joyent/sdc-system-tests
javascript
## Code Before: var test = require('tap').test; var child = require('child_process'); test("Agents are installed", function(t) { t.plan(3); child.exec("find /opt/smartdc/agents/bin/ -follow -type f ! -perm -a+x", function(err, stdout, stderr){ t.equal(err, null, "Agents bin directory exis...
88f6e7839d25561b18f7f10c24d3bea4de239757
app/views/pages/recent_reservations.html.haml
app/views/pages/recent_reservations.html.haml
- content_for(:title) { "recent reservations" } %h2 Recent reservations .row .col-md-12 = will_paginate @recent_reservations .row .col-md-12 %table.table.table-condensed.table-hover %thead %tr %th Server %th Reserved by %th Reserved from %th Reserved...
- content_for(:title) { "recent reservations" } %h2 Recent reservations .row .col-md-12 = will_paginate @recent_reservations .row .col-md-12 %table.table.table-condensed.table-hover %thead %tr %th Server %th Reserved by %th Reserved from %th Reserved...
Allow reservations to have no server yet
Allow reservations to have no server yet
Haml
apache-2.0
Arie/serveme,Arie/serveme,Arie/serveme,Arie/serveme
haml
## Code Before: - content_for(:title) { "recent reservations" } %h2 Recent reservations .row .col-md-12 = will_paginate @recent_reservations .row .col-md-12 %table.table.table-condensed.table-hover %thead %tr %th Server %th Reserved by %th Reserved from ...
2d15ff38abb68335daa8bb2b94aaeff91ed829a2
photoshell/__main__.py
photoshell/__main__.py
import os import sys import yaml from photoshell import ui config_path = os.path.join(os.environ['HOME'], '.photoshell.yaml') with open(config_path, 'r') as config_file: config = yaml.load(config_file) print('Libray path is {0}'.format(config['library'])) # Open photo viewer ui.render(config['library'])
import os import sys import yaml from photoshell import ui config_path = os.path.join(os.environ['HOME'], '.photoshell.yaml') config = dict( { 'library': os.path.join(os.environ['HOME'], 'Pictures/Photoshell') } ) if os.path.isfile(config_path): with open(config_path, 'r') as config_file: ...
Create default config if one doesn't exist
Create default config if one doesn't exist Fixes #20
Python
mit
photoshell/photoshell,SamWhited/photoshell,campaul/photoshell
python
## Code Before: import os import sys import yaml from photoshell import ui config_path = os.path.join(os.environ['HOME'], '.photoshell.yaml') with open(config_path, 'r') as config_file: config = yaml.load(config_file) print('Libray path is {0}'.format(config['library'])) # Open photo viewer ui.render(config[...
e836f3c558085aa0a1275546ac45b8146254ee6b
test/default.py
test/default.py
from mock import MagicMock import pbclient class TestDefault(object): """Test class for pbs.helpers.""" error = {"action": "GET", "exception_cls": "NotFound", "exception_msg": "(NotFound)", "status": "failed", "status_code": 404, "target": "/api...
"""Test module for pbs client.""" from mock import MagicMock import pbclient class TestDefault(object): """Test class for pbs.helpers.""" config = MagicMock() config.server = 'http://server' config.api_key = 'apikey' config.pbclient = pbclient config.project = {'name': 'name', ...
Refactor error as a property.
Refactor error as a property.
Python
agpl-3.0
PyBossa/pbs,PyBossa/pbs,PyBossa/pbs
python
## Code Before: from mock import MagicMock import pbclient class TestDefault(object): """Test class for pbs.helpers.""" error = {"action": "GET", "exception_cls": "NotFound", "exception_msg": "(NotFound)", "status": "failed", "status_code": 404, ...
330e205512f849e85a0e01e7c82246eb5aac5927
net.go
net.go
package gothink import ( "encoding/json" "io/ioutil" ) type Net interface { Epoch() } type Layer struct { Activation string Weights [][]float64 } /* A feed forward type neural network */ type FFNet struct { //Net Layers []Layer } /* func NewFFNet (filePath string) *FFNet { f :=...
package gothink import ( "encoding/json" "io/ioutil" ) type Net interface { Epoch() } type Layer struct { Activation string Weights [][]float64 } /* A feed forward type neural network */ type FFNet struct { //Net Layers []Layer } func NewFFNet (filepath string) (*FFNet, error) { ...
Change FromJSON to NewFFNet struct initializer function
Change FromJSON to NewFFNet struct initializer function
Go
mit
jaybutera/gothink
go
## Code Before: package gothink import ( "encoding/json" "io/ioutil" ) type Net interface { Epoch() } type Layer struct { Activation string Weights [][]float64 } /* A feed forward type neural network */ type FFNet struct { //Net Layers []Layer } /* func NewFFNet (filePath string) *...
ba2a258610bc0bde7b28ed1e41a3dadd9936c134
lib/generators/rails/responders_controller_generator.rb
lib/generators/rails/responders_controller_generator.rb
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator' module Rails module Generators class RespondersControllerGenerator < ScaffoldControllerGenerator source_root File.expand_path("../templates", __FILE__) protected def flash? target = if defined?(Rails.appl...
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator' module Rails module Generators class RespondersControllerGenerator < ScaffoldControllerGenerator source_root File.expand_path("../templates", __FILE__) protected def flash? if defined?(ApplicationContro...
Allow flash detection even in engines.
Allow flash detection even in engines.
Ruby
mit
pravi/responders,gpr/responders,pravi/responders,telekomatrix/responders,plataformatec/responders,gpr/responders,plataformatec/responders,muthhus/responders,plataformatec/responders,telekomatrix/responders,muthhus/responders
ruby
## Code Before: require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator' module Rails module Generators class RespondersControllerGenerator < ScaffoldControllerGenerator source_root File.expand_path("../templates", __FILE__) protected def flash? target = if def...
de514f15cd1bc2ae0bad203d51feafe9b92a9258
tests/environment_variables/env_var_test.c
tests/environment_variables/env_var_test.c
/* * Copyright 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char **argv, char **en...
/* * Copyright 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> /* * In the glibc dy...
Make environment_variables test ignore LD_LIBRARY_PATH for glibc
Make environment_variables test ignore LD_LIBRARY_PATH for glibc This test pumps specific values through sel_ldr with -E and then tests that the entire environment seen by the untrusted program is exactly that list, using a golden file. CommandSelLdrTestNacl uses -E to pass LD_LIBRARY_PATH to the nexe for new (ARM) g...
C
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client
c
## Code Before: /* * Copyright 2010 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char *...
64004e35e1f83933a97e4c8155d5b48c612a2c37
src/com/karateca/ddescriber/toolWindow/JasminFile.java
src/com/karateca/ddescriber/toolWindow/JasminFile.java
package com.karateca.ddescriber.toolWindow; import com.intellij.openapi.editor.Document; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.karateca.ddescriber.Hierarchy; import com.karateca.ddescriber.Jasmine...
package com.karateca.ddescriber.toolWindow; import com.intellij.openapi.editor.Document; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.karateca.ddescriber.ActionUtil; import com.karateca.ddescriber.Hierarchy; import com.karateca.ddescriber.JasmineFinder; /** * @...
Use action util to get doc
Use action util to get doc
Java
mit
andresdominguez/ddescriber,andresdominguez/ddescriber
java
## Code Before: package com.karateca.ddescriber.toolWindow; import com.intellij.openapi.editor.Document; import com.intellij.openapi.fileEditor.FileDocumentManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.karateca.ddescriber.Hierarchy; import com.karateca.dd...
4383d1559a4f2f76ffd8d2e2086973fa42285b1d
tox.ini
tox.ini
[tox] envlist = py26,py27,py32,py33,py34 [testenv] deps = pytest numpy Cython Sphinx # Note: Sphinx is required to run the sphinx.ext tests commands = python setup.py clean --all py.test {posargs} sitepackages = False
[tox] envlist = py26,py27,py32,py33,py34 [testenv] deps = pytest numpy Cython Sphinx==1.2.3 # Note: Sphinx is required to run the sphinx.ext tests commands = py.test {posargs} sitepackages = False [testenv:py32] deps = pygments<=1.9 Jinja2<2.7 {[testenv]deps}
Fix Sphinx version to 1.2.3--otherwise it will try to install one of the 1.3 betas which are broken on Python 2. For python 3.2 fixed pygments and Jinja2 versions to ones that work with 3.2
Fix Sphinx version to 1.2.3--otherwise it will try to install one of the 1.3 betas which are broken on Python 2. For python 3.2 fixed pygments and Jinja2 versions to ones that work with 3.2
INI
bsd-3-clause
astropy/astropy-helpers,Cadair/astropy-helpers,embray/astropy_helpers,dpshelio/astropy-helpers,astropy/astropy-helpers,Cadair/astropy-helpers,larrybradley/astropy-helpers,embray/astropy_helpers,dpshelio/astropy-helpers,embray/astropy_helpers,larrybradley/astropy-helpers,bsipocz/astropy-helpers,bsipocz/astropy-helpers,b...
ini
## Code Before: [tox] envlist = py26,py27,py32,py33,py34 [testenv] deps = pytest numpy Cython Sphinx # Note: Sphinx is required to run the sphinx.ext tests commands = python setup.py clean --all py.test {posargs} sitepackages = False ## Instruction: Fix Sphinx version to 1.2.3--otherwise it w...
72b7daf5c2501de759ee0d25a4d9944c80ac287e
examples/cookie/bake.cfg
examples/cookie/bake.cfg
[label] label_tag: @label@ pattern: @.+?@ [filenames] code_files: cookie.txt file_in_suffix: file_out_suffix: visual_files: [] visual_file_in_suffix: visual_file_out_suffix:
[label] label_tag: @label@ pattern: @.+?@ [filenames] code_files: cookie.txt file_in_suffix: file_out_suffix:
Remove visual_files*; these are no longer needed
Remove visual_files*; these are no longer needed
INI
mit
AlexSzatmary/bake
ini
## Code Before: [label] label_tag: @label@ pattern: @.+?@ [filenames] code_files: cookie.txt file_in_suffix: file_out_suffix: visual_files: [] visual_file_in_suffix: visual_file_out_suffix: ## Instruction: Remove visual_files*; these are no longer needed ## Code After: [label] label_tag: @label@ pattern: @.+?@ ...
31e9e1e9aaff2f25225c628f4ec2bea1f62aedc1
src/Schema.php
src/Schema.php
<?php namespace Fathomminds\Rest; use Fathomminds\Rest\Contracts\ISchema; use Fathomminds\Rest\Schema\TypeValidators\ValidatorFactory; use Fathomminds\Rest\Exceptions\RestException; abstract class Schema implements ISchema { public function __construct($object = null) { if ($object === null) { ...
<?php namespace Fathomminds\Rest; use Fathomminds\Rest\Contracts\ISchema; use Fathomminds\Rest\Schema\TypeValidators\ValidatorFactory; use Fathomminds\Rest\Exceptions\RestException; abstract class Schema implements ISchema { public function __construct($object = null) { if ($object === null) { ...
Throw exception when trying to access undefined property
Throw exception when trying to access undefined property
PHP
mit
fathomminds/php-rest-models
php
## Code Before: <?php namespace Fathomminds\Rest; use Fathomminds\Rest\Contracts\ISchema; use Fathomminds\Rest\Schema\TypeValidators\ValidatorFactory; use Fathomminds\Rest\Exceptions\RestException; abstract class Schema implements ISchema { public function __construct($object = null) { if ($object ===...
573f3fd726c7bf1495bfdfeb2201317abc2949e4
src/parser/menu_item.py
src/parser/menu_item.py
"""(c) All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, VPSI, 2017""" class MenuItem: """ To store menu item information """ def __init__(self, txt, target, hidden): """ Constructor txt - Menu link text target - Can be several things -- Referenc...
"""(c) All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, VPSI, 2017""" class MenuItem: """ To store menu item information """ def __init__(self, txt, target, hidden): """ Constructor txt - Menu link text target - Can be several things -- Referenc...
Remove previously added method because finally not used...
Remove previously added method because finally not used...
Python
mit
epfl-idevelop/jahia2wp,epfl-idevelop/jahia2wp,epfl-idevelop/jahia2wp,epfl-idevelop/jahia2wp
python
## Code Before: """(c) All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, VPSI, 2017""" class MenuItem: """ To store menu item information """ def __init__(self, txt, target, hidden): """ Constructor txt - Menu link text target - Can be several things ...
a9d1d02d1c1ac051ac6bc0d541fab29c9cf9bcca
src/Importers/InstagramSingleMediaImporter.php
src/Importers/InstagramSingleMediaImporter.php
<?php namespace Codenetix\SocialMediaImporter\Importers; use Codenetix\SocialMediaImporter\Exceptions\RequestedDataNotFoundException; use Codenetix\SocialMediaImporter\FactoryMethods\InstagramMediaAdapterFactoryMethod; use Codenetix\SocialMediaImporter\Scrapers\InstagramScraper; /** * @author Andrey Vorobiov<andrew...
<?php namespace Codenetix\SocialMediaImporter\Importers; use Codenetix\SocialMediaImporter\Exceptions\ImportException; use Codenetix\SocialMediaImporter\Exceptions\RequestedDataNotFoundException; use Codenetix\SocialMediaImporter\FactoryMethods\InstagramMediaAdapterFactoryMethod; use Codenetix\SocialMediaImporter\Scr...
Add exception if instagram result has non 200 status
Add exception if instagram result has non 200 status
PHP
mit
codenetix-ltd/social-media-importer
php
## Code Before: <?php namespace Codenetix\SocialMediaImporter\Importers; use Codenetix\SocialMediaImporter\Exceptions\RequestedDataNotFoundException; use Codenetix\SocialMediaImporter\FactoryMethods\InstagramMediaAdapterFactoryMethod; use Codenetix\SocialMediaImporter\Scrapers\InstagramScraper; /** * @author Andrey...
7a735bebf195f766a0db97b3fba6793a69a5731a
microcosm_elasticsearch/main.py
microcosm_elasticsearch/main.py
from argparse import ArgumentParser def createall_main(graph): """ Initialize indexes and mappings. """ parser = ArgumentParser() parser.add_argument("--only", action="append") parser.add_argument("--skip", action="append") parser.add_argument("-D", "--drop", action="store_true") args...
from argparse import ArgumentParser from json import dump, loads from sys import stdout def createall_main(graph): """ Initialize indexes and mappings. """ parser = ArgumentParser() parser.add_argument("--only", action="append") parser.add_argument("--skip", action="append") parser.add_ar...
Add a query entry point
Add a query entry point
Python
apache-2.0
globality-corp/microcosm-elasticsearch,globality-corp/microcosm-elasticsearch
python
## Code Before: from argparse import ArgumentParser def createall_main(graph): """ Initialize indexes and mappings. """ parser = ArgumentParser() parser.add_argument("--only", action="append") parser.add_argument("--skip", action="append") parser.add_argument("-D", "--drop", action="store...
7b5d672857bfea726b6f8a8ef4ba3d50f95f48cf
app/models/spree/gateway/komoju_credit_card.rb
app/models/spree/gateway/komoju_credit_card.rb
module Spree class Gateway::KomojuCreditCard < KomojuGateway def auto_capture? true end def purchase(money, source, options) options = change_options_to_dollar(options) if options[:currency] == "JPY" if profile_id = source.gateway_payment_profile_id || source.gateway_customer_profile_id...
module Spree class Gateway::KomojuCreditCard < KomojuGateway def auto_capture? true end def purchase(money, source, options) options = change_options_to_dollar(options) if options[:currency] == "JPY" if profile_id = source.gateway_payment_profile_id || source.gateway_customer_profile_id...
Refactor komoju credit card gateway
Refactor komoju credit card gateway
Ruby
bsd-3-clause
komoju/spree_komoju,komoju/spree_komoju
ruby
## Code Before: module Spree class Gateway::KomojuCreditCard < KomojuGateway def auto_capture? true end def purchase(money, source, options) options = change_options_to_dollar(options) if options[:currency] == "JPY" if profile_id = source.gateway_payment_profile_id || source.gateway_cus...
808c575bd188a882d6fa717bae400f9142546276
app/routes/contact/index.js
app/routes/contact/index.js
// @flow import * as React from 'react'; import { Route, Switch } from 'react-router-dom'; import ContactRoute from './ContactRoute'; import PageNotFoundRoute from '../pageNotFound/PageNotFoundRoute'; const contactRoute = ({ match }: { match: { path: string } }) => ( <Switch> <Route exact path={`${match.path}`} ...
// @flow import * as React from 'react'; import { Route, Switch } from 'react-router-dom'; import ContactRoute from './ContactRoute'; import RouteWrapper from 'app/components/RouteWrapper'; import { UserContext } from 'app/routes/app/AppRoute'; import PageNotFoundRoute from '../pageNotFound/PageNotFoundRoute'; const c...
Fix user state in contact form
Fix user state in contact form
JavaScript
mit
webkom/lego-webapp,webkom/lego-webapp,webkom/lego-webapp
javascript
## Code Before: // @flow import * as React from 'react'; import { Route, Switch } from 'react-router-dom'; import ContactRoute from './ContactRoute'; import PageNotFoundRoute from '../pageNotFound/PageNotFoundRoute'; const contactRoute = ({ match }: { match: { path: string } }) => ( <Switch> <Route exact path={`...
6ddfacb84530020367734bfda9be7a1f9e8a9bcd
bin/build.sh
bin/build.sh
set -e set -o pipefail php bin/phpunit --coverage-html reports/coverage php bin/phpcs php bin/phpmd src html cleancode,codesize,controversial,design,naming,unusedcode --reportfile reports/mess_detector.html
set -e set -o pipefail php bin/phpunit --coverage-html reports/coverage php bin/phpcs -p --colors --standard=PSR2 src php bin/phpmd src html cleancode,codesize,controversial,design,naming,unusedcode --reportfile reports/mess_detector.html
Configure PHP CodeSniffer to follow the PSR standards
Configure PHP CodeSniffer to follow the PSR standards
Shell
mit
jeancsil/flight-spy,jeancsil/flight-spy,jeancsil/flight-spy
shell
## Code Before: set -e set -o pipefail php bin/phpunit --coverage-html reports/coverage php bin/phpcs php bin/phpmd src html cleancode,codesize,controversial,design,naming,unusedcode --reportfile reports/mess_detector.html ## Instruction: Configure PHP CodeSniffer to follow the PSR standards ## Code After: set -e s...
a025589619435d052637996f840ae030cb67e1dd
lib/rsr_group/chunker.rb
lib/rsr_group/chunker.rb
module RsrGroup class Chunker attr_accessor :chunk, :file_length, :current_count, :size def initialize(size, file_length = nil) @size = size @chunk = Array.new @current_count = 0 @file_length = file_length end def add(row) @chunk.clear if is_full...
module RsrGroup class Chunker attr_accessor :chunk, :file_length, :current_count, :size def initialize(size, file_length = nil) @size = size @chunk = Array.new @current_count = 0 @file_length = file_length end def add(row) reset if is_full? ...
Reset chunk if it's full
Reset chunk if it's full
Ruby
mit
ammoready/rsr_group,ammoready/rsr_group
ruby
## Code Before: module RsrGroup class Chunker attr_accessor :chunk, :file_length, :current_count, :size def initialize(size, file_length = nil) @size = size @chunk = Array.new @current_count = 0 @file_length = file_length end def add(row) @chunk....
4d4de16969439c71f0e9e15b32b26bd4b7310e8f
Simulated_import.py
Simulated_import.py
from genes import golang from genes import web_cli # etc...
from genes import docker from genes import java # etc...
Change simulated around for existing modules
Change simulated around for existing modules
Python
mit
hatchery/Genepool2,hatchery/genepool
python
## Code Before: from genes import golang from genes import web_cli # etc... ## Instruction: Change simulated around for existing modules ## Code After: from genes import docker from genes import java # etc...
8272daa71eec84729d60f0d7f2022230bf2873b9
apps/fish/.config/fish/functions/utils.fish
apps/fish/.config/fish/functions/utils.fish
alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'" function update_dots cd ~/.dotfiles; and git stash save and git pull; and ./dots.sh end function fish_prompt --description 'Write out the prompt' # Just calculate these once, to save a few cycles when displaying the prompt if not set -q __fish_prom...
Add branch to fish prompt
Add branch to fish prompt
fish
mit
KyleOndy/dotfiles,KyleOndy/.dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles
fish
## Code Before: alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'" ## Instruction: Add branch to fish prompt ## Code After: alias myip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'" function update_dots cd ~/.dotfiles; and git stash save and git pull; and ./dots.sh end function fish_prompt --descri...
d1949352201a9490a0d65ec4fb277efc4dc41d23
cards.swift
cards.swift
public struct Card: CustomStringConvertible { public enum Suit: Int { case Spade = 0 case Club case Heart case Diamond } public enum FaceValue: Int { case Ace = 1 case Two = 2 case Three = 3 case Four = 4 case Five = 5 case Six ...
import Foundation public struct Card: CustomStringConvertible { public enum Suit: Int { case Spade = 0 case Club case Heart case Diamond } public enum FaceValue: Int { case Ace = 1 case Two = 2 case Three = 3 case Four = 4 case Five = ...
Optimize deck shuffling in Swift
Optimize deck shuffling in Swift
Swift
mit
jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards,jonjesbuzz/cards
swift
## Code Before: public struct Card: CustomStringConvertible { public enum Suit: Int { case Spade = 0 case Club case Heart case Diamond } public enum FaceValue: Int { case Ace = 1 case Two = 2 case Three = 3 case Four = 4 case Five = 5 ...
1caf59e52dd7a766b6dba107d6e97c8a198457ac
plugin.yml
plugin.yml
name: ${project.name} version: ${project.version} author: totemo authors: [totemo] description: ${project.description} website: ${project.url} main: io.totemo.wingcommander.WingCommander api-version: 1.13 permissions: wingcommander.fly: description: Permission to use powered flight. default: op wingcommand...
name: ${project.name} version: ${project.version} author: totemo authors: [totemo] description: ${project.description} website: ${project.url} main: io.totemo.wingcommander.WingCommander api-version: 1.15 permissions: wingcommander.fly: description: Permission to use powered flight. default: false wingcomm...
Update to `api-version: 1.15`. Revoke special permissions for ops.
Update to `api-version: 1.15`. Revoke special permissions for ops.
YAML
mit
totemo/WingCommander
yaml
## Code Before: name: ${project.name} version: ${project.version} author: totemo authors: [totemo] description: ${project.description} website: ${project.url} main: io.totemo.wingcommander.WingCommander api-version: 1.13 permissions: wingcommander.fly: description: Permission to use powered flight. default: ...
567d5465a3e652fa6af2ffbc87cd53be5a9a56e9
web/src/main/java/org/mskcc/cbio/oncokb/api/pub/v1/GenesetsApiController.java
web/src/main/java/org/mskcc/cbio/oncokb/api/pub/v1/GenesetsApiController.java
package org.mskcc.cbio.oncokb.api.pub.v1; import org.mskcc.cbio.oncokb.model.Geneset; import org.mskcc.cbio.oncokb.util.ApplicationContextSingleton; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import java.util.List; /**...
package org.mskcc.cbio.oncokb.api.pub.v1; import io.swagger.annotations.ApiParam; import org.mskcc.cbio.oncokb.model.Geneset; import org.mskcc.cbio.oncokb.util.ApplicationContextSingleton; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype....
Include swagger definition in the implementation
Include swagger definition in the implementation
Java
agpl-3.0
zhx828/oncokb,zhx828/oncokb,oncokb/oncokb,zhx828/oncokb,oncokb/oncokb,oncokb/oncokb
java
## Code Before: package org.mskcc.cbio.oncokb.api.pub.v1; import org.mskcc.cbio.oncokb.model.Geneset; import org.mskcc.cbio.oncokb.util.ApplicationContextSingleton; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import java...
42dfe6fc51ef0598f7ea90cfbe379252d6fc199d
.travis.yml
.travis.yml
language: ruby cache: bundler bundler_args: "--without production development" rvm: - 2.2.2 script: - bundle exec rake test
language: ruby cache: bundler bundler_args: '--without production development' rvm: - 2.2.2 script: - bundle exec rake test services: - mongodb env: - MONGODB_SOCKET=localhost:27017 before_script: - sleep 15 - mongo mydb_test --eval 'db.addUser("travis", "test");'
Introduce mongodb on TravisCI test suite.
Introduce mongodb on TravisCI test suite.
YAML
mit
TheTreeHouse/turniquette-api,TheTreeHouse/turniquette-api,TheTreeHouse/turniquette-api
yaml
## Code Before: language: ruby cache: bundler bundler_args: "--without production development" rvm: - 2.2.2 script: - bundle exec rake test ## Instruction: Introduce mongodb on TravisCI test suite. ## Code After: language: ruby cache: bundler bundler_args: '--without production development' rvm: - 2.2.2 script: -...
5dbbcaeaf1291f8259b7a3cd42efa6c0487afd43
code/TrackBackPing.php
code/TrackBackPing.php
<?php class TrackBackPing extends DataObject { static $db = array( 'Title' => 'Varchar', 'Excerpt' => 'Text', 'Url' => 'Varchar', 'BlogName' => 'Varchar' ); static $has_one = array( 'Page' => 'Page' ); static $has_many = array(); static $many_many = array(); static $belongs_many_many = array()...
<?php class TrackBackPing extends DataObject { static $db = array( 'Title' => 'Varchar', 'Excerpt' => 'Text', // 2083 is URL-length limit for IE, AFAIK. // see: http://www.boutell.com/newfaq/misc/urllength.html 'Url' => 'Varchar(2048)', 'BlogName' => 'Varchar' ); static $has_one = array( 'Page' => '...
Extend URL length from 50 to 2048 chars
BUGFIX: Extend URL length from 50 to 2048 chars
PHP
bsd-3-clause
MichaelJJames/silverstripe-blog,scott1702/silverstripe-blog,tractorcow/silverstripe-blog,steiha/silverstripe-blog,tractorcow/silverstripe-blog,steiha/silverstripe-blog,souldigital/silverstripe-blog,MichaelJJames/silverstripe-blog,souldigital/silverstripe-blog,scott1702/silverstripe-blog,Internetrix/silverstripe-blog,In...
php
## Code Before: <?php class TrackBackPing extends DataObject { static $db = array( 'Title' => 'Varchar', 'Excerpt' => 'Text', 'Url' => 'Varchar', 'BlogName' => 'Varchar' ); static $has_one = array( 'Page' => 'Page' ); static $has_many = array(); static $many_many = array(); static $belongs_man...
a88507748965f9385341c92a7a9a1c611bd8f40c
GlobalUsage.sql
GlobalUsage.sql
CREATE TABLE /*$wgDBprefix*/globalimagelinks ( -- Wiki id gil_wiki varchar(32) not null, -- page_id on the local wiki gil_page int unsigned not null, -- Namespace, since the foreign namespaces may not match the local ones gil_page_namespace varchar(255) not null, -- Page title gil_page_title varchar(255) not nu...
CREATE TABLE /*$wgDBprefix*/globalimagelinks ( -- Wiki id gil_wiki varchar(32) not null, -- page_id on the local wiki gil_page int unsigned not null, -- Namespace, since the foreign namespaces may not match the local ones gil_page_namespace varchar(255) not null, -- Page title gil_page_title varchar(255) binary...
Mark gil_title and gil_to as binary
Mark gil_title and gil_to as binary
SQL
mit
WouterRademaker/mediawiki-extensions-GlobalUsage,wikimedia/mediawiki-extensions-GlobalUsage,WouterRademaker/mediawiki-extensions-GlobalUsage,wikimedia/mediawiki-extensions-GlobalUsage
sql
## Code Before: CREATE TABLE /*$wgDBprefix*/globalimagelinks ( -- Wiki id gil_wiki varchar(32) not null, -- page_id on the local wiki gil_page int unsigned not null, -- Namespace, since the foreign namespaces may not match the local ones gil_page_namespace varchar(255) not null, -- Page title gil_page_title var...
c6b7df1e12e4aab4218882638ba71c2575d8dfc4
vmfiles/set_up_site.sh
vmfiles/set_up_site.sh
HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP sleep 30 knife bootstrap $IP -x brain -N $HOSTNAME -P password --sudo knife node run_list add $HOSTNAME 'role[simple_webserver]' knife ssh name:$HOSTNAME "sudo chef-client" -x brain -a ipaddress -P password
HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP sleep 30 knife bootstrap $IP -x brain -N $HOSTNAME -P password --sudo knife node run_list add $HOSTNAME 'role[simple_webserver]' sleep 15 knife ssh name:$HOSTNAME "sudo chef-client" -x brain -a ipaddress -P password
Add yet another sleen to set up script
Add yet another sleen to set up script
Shell
apache-2.0
brain-geek/toad-chef-repo,brain-geek/toad-chef-repo
shell
## Code Before: HOSTNAME=$1 IP=$2 echo 'Run me as user, please!' sudo ./createvm.sh $HOSTNAME $IP sleep 30 knife bootstrap $IP -x brain -N $HOSTNAME -P password --sudo knife node run_list add $HOSTNAME 'role[simple_webserver]' knife ssh name:$HOSTNAME "sudo chef-client" -x brain -a ipaddress -P password ## Instruc...
66cb0c55eb3cb4d2e24ea7256f04f0bfb26e78db
app/views/main/_assignment_summary.html.erb
app/views/main/_assignment_summary.html.erb
<div class="assignment_summary"> <h2 class="title"> <%= link_to h(assignment.short_identifier)+": "+h(assignment.description), { :controller => 'assignments', :action => 'edit', :id => assignment.id }, :class => 'title' %> </h2> ...
<div class="assignment_summary"> <h2 class="title"> <%= link_to h(assignment.short_identifier)+": "+h(assignment.description), edit_assignment_path(:id => assignment.id), :class => 'title' %> </h2> <div class="left"> <%= render :partial => "grade_distribution_graph", :locals => { :assignment =>...
Use _path() helper in link_to call
Use _path() helper in link_to call
HTML+ERB
mit
selyanhb/Markus,WilsonChiang/Markus,binuri/Markus,arkon/Markus,jeremygoh/Markus,kmccoan/Markus,wkwan/Markus,arkon/Markus,david-yz-liu/Markus,david-yz-liu/Markus,ealonas/Markus,SoftwareDev/Markus,david-yz-liu/Markus,arkon/Markus,WilsonChiang/Markus,reidka/Markus,selyanhb/Markus,benjaminvialle/Markus,MarkUsProject/Markus...
html+erb
## Code Before: <div class="assignment_summary"> <h2 class="title"> <%= link_to h(assignment.short_identifier)+": "+h(assignment.description), { :controller => 'assignments', :action => 'edit', :id => assignment.id }, :class => 'title' ...
f16ebf8a96df76f7fdf7506b0b1529cccc693436
src/main/java/com/github/blindpirate/gogradle/util/ExceptionHandler.java
src/main/java/com/github/blindpirate/gogradle/util/ExceptionHandler.java
package com.github.blindpirate.gogradle.util; import java.io.PrintWriter; import java.io.StringWriter; public class ExceptionHandler { public static RuntimeException uncheckException(Throwable e) { return new IllegalStateException(e); } public static String getStackTrace(Throwable e) { St...
package com.github.blindpirate.gogradle.util; import java.io.PrintWriter; import java.io.StringWriter; public class ExceptionHandler { public static class UncheckedException extends RuntimeException { public UncheckedException(Throwable e) { super(e); } } public static Runtime...
Throw exceptions with type UncheckedException
Throw exceptions with type UncheckedException
Java
apache-2.0
gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,blindpirate/gogradle,gogradle/gogradle,gogradle/gogradle
java
## Code Before: package com.github.blindpirate.gogradle.util; import java.io.PrintWriter; import java.io.StringWriter; public class ExceptionHandler { public static RuntimeException uncheckException(Throwable e) { return new IllegalStateException(e); } public static String getStackTrace(Throwable...
2fc3131b674879ef784af7ec4e2680ad981bd0f1
app/controllers/api/v1/versions_controller.rb
app/controllers/api/v1/versions_controller.rb
class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :text => "This ruby...
class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :text => "This ruby...
Add full_name field to the reverse_dependencies payload
Add full_name field to the reverse_dependencies payload
Ruby
mit
maclover7/rubygems.org,fotanus/rubygems.org,krainboltgreene/rubygems.org,wallin/rubygems.org,arthurnn/rubygems.org,hrs113355/rubygems.org,iSC-Labs/rubygems.org,olivierlacan/rubygems.org,Elffers/rubygems.org,krainboltgreene/rubygems.org,spk/rubygems.org,rubygems/rubygems.org,jamelablack/rubygems.org,davydovanton/rubygem...
ruby
## Code Before: class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :te...
d2e2de425d9b1029e413744d8126afe013f2173b
CHANGELOG.md
CHANGELOG.md
Items starting with DEPRECATE are important deprecation notices. For more information on the list of deprecated APIs please have a look at https://docs.docker.com/misc/deprecated/ where target removal dates can also be found. ## 0.1.2 (2016-01-07) ### Client - Add interface to represent the API client. - Restrict t...
Items starting with DEPRECATE are important deprecation notices. For more information on the list of deprecated APIs please have a look at https://docs.docker.com/misc/deprecated/ where target removal dates can also be found. ## 0.1.3 (2016-01-07) - Fix issue sending all network configurations for a per network requ...
Add changelog for version 0.1.3.
Add changelog for version 0.1.3. Signed-off-by: David Calavera <b9b0c8e7f90ecf337f6797c4d2e0f1dd0dbc0324@gmail.com>
Markdown
apache-2.0
jwhonce/engine-api,vdemeester/engine-api,msabansal/engine-api,mikedougherty/engine-api,rhatdan/engine-api,docker/engine-api,thaJeztah/engine-api
markdown
## Code Before: Items starting with DEPRECATE are important deprecation notices. For more information on the list of deprecated APIs please have a look at https://docs.docker.com/misc/deprecated/ where target removal dates can also be found. ## 0.1.2 (2016-01-07) ### Client - Add interface to represent the API clie...
6d4f4d67c7d82e423430a50531742a836c0cd84a
README.md
README.md
Welcome to scala-kickstart! ## Contribution policy Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whethe...
Welcome to Scala Kickstart! This is a project to teach you some basic [Scala](http://scala-lang.org). If you never used Scala before, this is a good start for you. ## Preparations Before you get started you need the Scala compiler and [sbt](http://www.scala-sbt.org/) (a Scala build tool comparable to [Apache Maven](...
Document how to get started
Document how to get started
Markdown
apache-2.0
scaladus/scala-kickstart
markdown
## Code Before: Welcome to scala-kickstart! ## Contribution policy Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source...
025610aea87b2cec86855b29c7042a6b37c35de5
lib/initializer.js
lib/initializer.js
"use strict"; var Promise = require('./promise'); module.exports = function (API) { var self = Object.create(null), promise = Promise.resolve(API); self.init = function (initializer) { promise = promise.then(function () { return initializer(API); }); return self; }; return self; };
"use strict"; var Promise = require('./promise'); module.exports = function (API) { var self = Object.create(null), initializers = [], promise = Promise.resolve(API); self.init = function (initializer) { initializers.push(initializer); promise = promise.then(function () { initia...
Add stop() method to Initializer.
Add stop() method to Initializer. modified: lib/initializer.js
JavaScript
mit
kixxauth/enginemill
javascript
## Code Before: "use strict"; var Promise = require('./promise'); module.exports = function (API) { var self = Object.create(null), promise = Promise.resolve(API); self.init = function (initializer) { promise = promise.then(function () { return initializer(API); }); return self; }; re...
0eb383dfbeb80792fe74dd65658acf5e0b73ac56
tests/book.rs
tests/book.rs
extern crate crowbook; use crowbook::{Book, InfoLevel}; use std::io; #[test] fn test_book() { let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"), InfoLevel::Error, &[]).unwrap(); book.render_html(&mut io::sink()).unwrap(); book.render_tex(&mut io::sink()).unwrap...
extern crate crowbook; use crowbook::{Book, InfoLevel}; use std::io; #[test] fn test_book() { let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"), InfoLevel::Error, &[]).unwrap(); book.render_html(&mut io::sink()).unwrap(); book.render_tex(&mut io::sink()).unwrap...
Comment a test failing on windows to investigate
Comment a test failing on windows to investigate
Rust
lgpl-2.1
lise-henry/crowbook,lise-henry/crowbook,lise-henry/crowbook,lise-henry/crowbook
rust
## Code Before: extern crate crowbook; use crowbook::{Book, InfoLevel}; use std::io; #[test] fn test_book() { let book = Book::new_from_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"), InfoLevel::Error, &[]).unwrap(); book.render_html(&mut io::sink()).unwrap(); book.render_tex(&mut io...
bc69909b9ffc6dac8a1367fce5f845deea3cad32
src/app/shared/pagination/pagination.component.sass
src/app/shared/pagination/pagination.component.sass
@import '../../../shared-sass/palette' @import '../../../shared-sass/variables' $height: 30px .pagination color: $color-main-foreground list-style-position: inside list-style-type: none line-height: $height margin: 0 16px padding: 0 .active a, span background-color: $color-theme-1 c...
@import '../../../shared-sass/palette' @import '../../../shared-sass/variables' $height: 30px .pagination color: $color-main-foreground list-style-position: inside list-style-type: none line-height: $height margin: 16px padding: 0 .active a, span background-color: $color-theme-1 col...
Fix paddings and margins on pagination
Fix paddings and margins on pagination
Sass
apache-2.0
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
sass
## Code Before: @import '../../../shared-sass/palette' @import '../../../shared-sass/variables' $height: 30px .pagination color: $color-main-foreground list-style-position: inside list-style-type: none line-height: $height margin: 0 16px padding: 0 .active a, span background-color: $color...
3cb25e903ad0fd342509d32dca2d3c507f001b5a
devilry/devilry_autoset_empty_email_by_username/models.py
devilry/devilry_autoset_empty_email_by_username/models.py
from django.db.models.signals import post_save from devilry.devilry_account.models import User from django.conf import settings def set_email_by_username(sender, **kwargs): """ Signal handler which is invoked when a User is saved. """ user = kwargs['instance'] if not user.email: user.email...
from django.conf import settings def set_email_by_username(sender, **kwargs): """ Signal handler which is invoked when a User is saved. """ user = kwargs['instance'] if not user.email: user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX) # post_save.connect(...
Comment out the post_save connect line.
devilry_autoset_empty_email_by_username: Comment out the post_save connect line.
Python
bsd-3-clause
devilry/devilry-django,devilry/devilry-django,devilry/devilry-django,devilry/devilry-django
python
## Code Before: from django.db.models.signals import post_save from devilry.devilry_account.models import User from django.conf import settings def set_email_by_username(sender, **kwargs): """ Signal handler which is invoked when a User is saved. """ user = kwargs['instance'] if not user.email: ...
918ad08d2d2cffec480ba8f0ee8fcb582f36fe9a
src/leiningen/difftest.clj
src/leiningen/difftest.clj
(ns leiningen.difftest (:require [leiningen.test :as test])) (defn difftest [project & args] (apply test/test (-> project (update-in [:injections] conj '((ns-resolve (doto 'difftest.core require) 'activate)))...
(ns leiningen.difftest (:require [leiningen.test :as test] [leiningen.core.project :as project])) (def profile {:injections ['((ns-resolve (doto 'difftest.core require) 'activate))] :dependencies [['difftest "1.3.8"]]}) (defn difftest "Run tests with improved failure output." [project & args] ...
Implement injections in terms of a profile.
Implement injections in terms of a profile.
Clojure
epl-1.0
brentonashworth/lein-difftest
clojure
## Code Before: (ns leiningen.difftest (:require [leiningen.test :as test])) (defn difftest [project & args] (apply test/test (-> project (update-in [:injections] conj '((ns-resolve (doto 'difftest.core requi...
08113ee79785f394a1c5244cdb87bef9f7fc5ff3
catplot/__init__.py
catplot/__init__.py
__all__ = ['en_profile'] __version__ = '0.1.0'
__all__ = ['en_profile', 'functions', 'chem_parser'] __version__ = '0.1.0'
Add more modules to __all__
Add more modules to __all__
Python
mit
PytLab/catplot
python
## Code Before: __all__ = ['en_profile'] __version__ = '0.1.0' ## Instruction: Add more modules to __all__ ## Code After: __all__ = ['en_profile', 'functions', 'chem_parser'] __version__ = '0.1.0'