commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f745022c74e6f0ddead6d18ff625c0c6eab009ea | readme-template/README.md | readme-template/README.md |
Generate bionitio README.md files based on a template.
This allows us to make sure all the README files for bionitio are consistent, and only differ where necessary due to
language specific differences.
# Example usage
```
bionitio-readme.sh -t TEMPLATE.md -l python -i $HOME/bionitio-python/readme_includes > $HOME/... |
Generate bionitio README.md files based on a template.
This allows us to make sure all the README files for bionitio are consistent, and only differ where necessary due to
language specific differences.
# Example usage
```
bionitio-readme.sh -t TEMPLATE.md -l python -i $HOME/bionitio-python/readme_includes > $HOME/... | Add information about pull, commit and push | Add information about pull, commit and push
| Markdown | mit | biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,bionitio-team/bionitio,biotool-paper/biotool | markdown | ## Code Before:
Generate bionitio README.md files based on a template.
This allows us to make sure all the README files for bionitio are consistent, and only differ where necessary due to
language specific differences.
# Example usage
```
bionitio-readme.sh -t TEMPLATE.md -l python -i $HOME/bionitio-python/readme_i... |
Generate bionitio README.md files based on a template.
This allows us to make sure all the README files for bionitio are consistent, and only differ where necessary due to
language specific differences.
# Example usage
```
bionitio-readme.sh -t TEMPLATE.md -l python -i $HOME/bionitio-python/read... | 14 | 0.518519 | 13 | 1 |
60fcf60c7b4e6e01e61f7d000812218e50a8bd5d | activejob/lib/active_job/execution.rb | activejob/lib/active_job/execution.rb | require 'active_support/rescuable'
require 'active_job/arguments'
module ActiveJob
module Execution
extend ActiveSupport::Concern
include ActiveSupport::Rescuable
module ClassMethods
# Performs the job immediately.
#
# MyJob.perform_now("mike")
#
def perform_now(*args)
... | require 'active_support/rescuable'
require 'active_job/arguments'
module ActiveJob
module Execution
extend ActiveSupport::Concern
include ActiveSupport::Rescuable
# Includes methods for executing and performing jobs instantly.
module ClassMethods
# Performs the job immediately.
#
#... | Document AJ::Execution class methods module | Document AJ::Execution class methods module [ci skip]
| Ruby | mit | betesh/rails,mechanicles/rails,lucasmazza/rails,vipulnsward/rails,tjschuck/rails,tgxworld/rails,flanger001/rails,88rabbit/newRails,bogdanvlviv/rails,yhirano55/rails,iainbeeston/rails,joonyou/rails,mathieujobin/reduced-rails-for-travis,marklocklear/rails,rossta/rails,illacceptanything/illacceptanything,rails/rails,xlymi... | ruby | ## Code Before:
require 'active_support/rescuable'
require 'active_job/arguments'
module ActiveJob
module Execution
extend ActiveSupport::Concern
include ActiveSupport::Rescuable
module ClassMethods
# Performs the job immediately.
#
# MyJob.perform_now("mike")
#
def perfo... | require 'active_support/rescuable'
require 'active_job/arguments'
module ActiveJob
module Execution
extend ActiveSupport::Concern
include ActiveSupport::Rescuable
+ # Includes methods for executing and performing jobs instantly.
module ClassMethods
# Performs the job immedi... | 1 | 0.02439 | 1 | 0 |
5f29c1e2a2a0d22b6c3690afbf4f50886584a98a | javascript/PPTennisTournament.js | javascript/PPTennisTournament.js | function PPTennisTournament(name) {
this.superclass(name);
this.class = PPTennisTournament.className();
}
// This must be in between the constructor definition and
// new method definitions in order for it to work.
PPUtils.extend (PPTennisTournament, PPTournament);
PPTennisTournament.className = function () {
re... | function PPTennisTournament(name) {
PPTennisTournament.superclass.call(this, name);
this.class = PPTennisTournament.className();
}
// This must be in between the constructor definition and
// new method definitions in order for it to work.
PPUtils.extend (PPTennisTournament, PPTournament);
PPTennisTournament.clas... | Implement new way to call superclass | Implement new way to call superclass
| JavaScript | mit | mcormier/kingofthecastle | javascript | ## Code Before:
function PPTennisTournament(name) {
this.superclass(name);
this.class = PPTennisTournament.className();
}
// This must be in between the constructor definition and
// new method definitions in order for it to work.
PPUtils.extend (PPTennisTournament, PPTournament);
PPTennisTournament.className = f... | function PPTennisTournament(name) {
- this.superclass(name);
+ PPTennisTournament.superclass.call(this, name);
this.class = PPTennisTournament.className();
}
// This must be in between the constructor definition and
// new method definitions in order for it to work.
PPUtils.extend (PPTennisTourname... | 2 | 0.111111 | 1 | 1 |
28a2f49e0107afd14441b70573389619c6ac888a | setup.cfg | setup.cfg | ; E128/133: We prefer hang-closing visual indents
; E251: We prefer `function(x = 1)` over `function(x=1)`
; E501: We do not enforce a maximum line length
; F403/405: We ignore * imports
; W503/504: We break lines before binary operators (Knuth's style)
[flake8]
hang-closing = true
extend-ignore =... | ; E128/133: We prefer hang-closing visual indents
; E251: We prefer `function(x = 1)` over `function(x=1)`
; E501: We do not enforce a maximum line length
; F403/405: We ignore * imports
; W503/504: We break lines before binary operators (Knuth's style)
[flake8]
hang-closing = true
extend-ignore =... | Add commons to flake8 doctest path | Add commons to flake8 doctest path
| INI | agpl-3.0 | openfisca/openfisca-core,openfisca/openfisca-core | ini | ## Code Before:
; E128/133: We prefer hang-closing visual indents
; E251: We prefer `function(x = 1)` over `function(x=1)`
; E501: We do not enforce a maximum line length
; F403/405: We ignore * imports
; W503/504: We break lines before binary operators (Knuth's style)
[flake8]
hang-closing = true
exten... | ; E128/133: We prefer hang-closing visual indents
; E251: We prefer `function(x = 1)` over `function(x=1)`
; E501: We do not enforce a maximum line length
; F403/405: We ignore * imports
; W503/504: We break lines before binary operators (Knuth's style)
[flake8]
hang-closing = true
ext... | 1 | 0.038462 | 1 | 0 |
e60d28689a68cc21b2e9261b25e5fe7b2d8e33ef | metadata/de.pinyto.exalteddicer.txt | metadata/de.pinyto.exalteddicer.txt | Categories:Games
License:GPLv3
Web Site:
Source Code:https://github.com/Yonjuni/ExaltedDicer
Issue Tracker:https://github.com/Yonjuni/ExaltedDicer/issues
Auto Name:Exalted Dicer
Summary:Dicing app
Description:
Pool and damage dicing app for the pen and paper RPG
[http://en.wikipedia.org/wiki/Exalted Exalted]. It can r... | Categories:Games
License:GPLv3
Web Site:
Source Code:https://github.com/Yonjuni/ExaltedDicer
Issue Tracker:https://github.com/Yonjuni/ExaltedDicer/issues
Auto Name:Exalted Dicer
Summary:Dicing app
Description:
Pool and damage dicing app for the pen and paper RPG
[http://en.wikipedia.org/wiki/Exalted Exalted]. It can r... | Update Exalted Dicer to 2.1 (3) | Update Exalted Dicer to 2.1 (3)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Games
License:GPLv3
Web Site:
Source Code:https://github.com/Yonjuni/ExaltedDicer
Issue Tracker:https://github.com/Yonjuni/ExaltedDicer/issues
Auto Name:Exalted Dicer
Summary:Dicing app
Description:
Pool and damage dicing app for the pen and paper RPG
[http://en.wikipedia.org/wiki/Exalted Ex... | Categories:Games
License:GPLv3
Web Site:
Source Code:https://github.com/Yonjuni/ExaltedDicer
Issue Tracker:https://github.com/Yonjuni/ExaltedDicer/issues
Auto Name:Exalted Dicer
Summary:Dicing app
Description:
Pool and damage dicing app for the pen and paper RPG
[http://en.wikipedia.org/wiki/Exal... | 9 | 0.3 | 7 | 2 |
c19a00ed7da0defdbc528963d75d9f15a8ff1776 | app/views/article/show_article.html.erb | app/views/article/show_article.html.erb | <%
@title = show_article_title(@article)
tabs = [
link_to(:article_index.t, action: :index),
link_to(:create_article.t, action: :create_article),
link_to(:edit_article.t, action: :edit_article, id: @article.id)
]
@tabsets = { right: draw_tab_set(tabs) }
%>
<div class="row push-down">
<div class=... | <%
@title = show_article_title(@article)
@tabsets = { right: draw_tab_set(show_article_tabs) }
%>
<div class="row push-down">
<div class="col-sm-12 max-width-text">
<%= @article.body.tpl %>
<%= "#{:AUTHOR.t}: #{@article.author}" %>
<p class="Date">
<%= :footer_created_at.t(date: @articl... | Use helper to get article tabs | Use helper to get article tabs
| HTML+ERB | mit | pellaea/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,JoeCohen/mushroom-observer,pellaea/mushroom-observer,pellaea/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,Mu... | html+erb | ## Code Before:
<%
@title = show_article_title(@article)
tabs = [
link_to(:article_index.t, action: :index),
link_to(:create_article.t, action: :create_article),
link_to(:edit_article.t, action: :edit_article, id: @article.id)
]
@tabsets = { right: draw_tab_set(tabs) }
%>
<div class="row push-down... | <%
@title = show_article_title(@article)
-
- tabs = [
- link_to(:article_index.t, action: :index),
- link_to(:create_article.t, action: :create_article),
- link_to(:edit_article.t, action: :edit_article, id: @article.id)
- ]
- @tabsets = { right: draw_tab_set(tabs) }
+ @tabsets = { right: dra... | 8 | 0.380952 | 1 | 7 |
d3890708919d4c6a7f403a104ea5774f7130eb77 | src/components/MediaList/LoadingRow.js | src/components/MediaList/LoadingRow.js | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import MediaLoadingIndicator from './MediaLoadingIndicator';
const LoadingRow = ({
className,
selected = false,
...attrs
}) => (
<div
className={cx('MediaListRow', 'is-loading', className, selected && 'is-selected')}
... | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import MediaLoadingIndicator from './MediaLoadingIndicator';
const LoadingRow = ({
className,
selected = false,
...attrs
}) => (
<div
className={cx('MediaListRow', 'is-loading', className, selected && 'is-selected')}
... | Fix loading media list row layout | Fix loading media list row layout
| JavaScript | mit | u-wave/web,u-wave/web | javascript | ## Code Before:
import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import MediaLoadingIndicator from './MediaLoadingIndicator';
const LoadingRow = ({
className,
selected = false,
...attrs
}) => (
<div
className={cx('MediaListRow', 'is-loading', className, selected && 'is-... | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import MediaLoadingIndicator from './MediaLoadingIndicator';
const LoadingRow = ({
className,
selected = false,
...attrs
}) => (
<div
className={cx('MediaListRow', 'is-loading', className, selected... | 13 | 0.393939 | 8 | 5 |
2807a5214f4a3608e6860217df0505ad03be1e4d | README.md | README.md | A microservice framework for Go
| [](https://drone.io/github.com/achilleasa/usrv/latest)
[](https://coveralls.io/github/achilleasa/usrv)
A microservice framework for Go
| Add drone.io and coveralls.io integration badges | Add drone.io and coveralls.io integration badges
| Markdown | mit | achilleasa/usrv,achilleasa/usrv | markdown | ## Code Before:
A microservice framework for Go
## Instruction:
Add drone.io and coveralls.io integration badges
## Code After:
[](https://drone.io/github.com/achilleasa/usrv/latest)
[](https://drone.io/github.com/achilleasa/usrv/latest)
+ [](https://coveralls.io/github/achilleasa/usrv)
+
A microservice framework for Go | 3 | 3 | 3 | 0 |
252078096579cfeaafa28b8213a398d00ba63e4e | README.md | README.md | A bot for the subreddit https://www.reddit.com/r/onewordeach/
https://www.reddit.com/user/onewordeachbot
The onewordeachbot is a set of scripts set to run via crontab every 5 minutes or so. They track comments in the /r/onewordeach subreddit which intend to end sentence chains. The reply words are compiled and posted... | A bot for the subreddit https://www.reddit.com/r/onewordeach/
https://www.reddit.com/user/onewordeachbot
The onewordeachbot is a set of scripts set to run via crontab every 5 minutes or so. They track comments in the /r/onewordeach subreddit which intend to end sentence chains. The reply words are compiled and posted... | Fix link to node-canvas wiki | Fix link to node-canvas wiki | Markdown | mit | smilesbright/onewordeachbot | markdown | ## Code Before:
A bot for the subreddit https://www.reddit.com/r/onewordeach/
https://www.reddit.com/user/onewordeachbot
The onewordeachbot is a set of scripts set to run via crontab every 5 minutes or so. They track comments in the /r/onewordeach subreddit which intend to end sentence chains. The reply words are com... | A bot for the subreddit https://www.reddit.com/r/onewordeach/
https://www.reddit.com/user/onewordeachbot
The onewordeachbot is a set of scripts set to run via crontab every 5 minutes or so. They track comments in the /r/onewordeach subreddit which intend to end sentence chains. The reply words are compiled ... | 2 | 0.095238 | 1 | 1 |
18cbaee8c6e13ec6bb9016d84ec050d8e773323a | .gitlab-ci.yml | .gitlab-ci.yml | before_script:
- php /composer.phar install --no-progress --no-scripts
- cp app/config/parameters.yml.dist app/config/parameters.yml
run_tests:
image: php:7.1
script:
- SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -c app/
stage: test
tags:
- php71
- docker
code_styles:
image: php:7.1
scrip... | stages:
- test
before_script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --no-scripts --quiet --ignore-platform-reqs
- cp app/config/parameters.yml.dist app/config/parameters.yml
run_tests:
image: sumocoders/framework-php71:latest
script:
- SYMFONY_DEPRECATIONS_HELP... | Test with our own images | Test with our own images
| YAML | mit | sumocoders/Framework,jonasdekeukelaere/Framework,sumocoders/Framework,jonasdekeukelaere/Framework,sumocoders/Framework,jonasdekeukelaere/Framework,sumocoders/Framework,jonasdekeukelaere/Framework | yaml | ## Code Before:
before_script:
- php /composer.phar install --no-progress --no-scripts
- cp app/config/parameters.yml.dist app/config/parameters.yml
run_tests:
image: php:7.1
script:
- SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -c app/
stage: test
tags:
- php71
- docker
code_styles:
image:... | + stages:
+ - test
+
before_script:
- - php /composer.phar install --no-progress --no-scripts
+ - curl -sS https://getcomposer.org/installer | php
+ - php composer.phar install --no-scripts --quiet --ignore-platform-reqs
- cp app/config/parameters.yml.dist app/config/parameters.yml
run_tests:
- im... | 10 | 0.47619 | 7 | 3 |
d09e04f9fd5efab1810e6c3c399781353ea88620 | lib/keyslice.js | lib/keyslice.js | 'use strict';
let juri = require('juri')(),
pattern = /(^|[+\-:!])(\w+|\([^(]+\))/g;
exports.sliceToKey = (s) => s.type +
(s.join ? '+' + juri.encode(s.join) : '') +
(s.link ? '-' + juri.encode(s.link) : '') +
(s.order ? ':' + s.order : '') +
(s.filter ? '!' + juri.encode(s.filter) : '');
exports.keyToSlice = (k... | 'use strict';
let juri = require('juri')(),
pattern = /(^|[+\-:])(\w+|\([^(]+\))/g;
exports.sliceToKey = (s) => s.type +
(s.join ? '+' + juri.encode(s.join) : '') +
(s.link ? '-' + juri.encode(s.link) : '') +
(s.order ? ':' + s.order : '') +
(s.filter ? '!' + juri.encode(s.filter) : '');
exports.keyToSlice = (k)... | Fix keyToSlice for array/object filter values | Fix keyToSlice for array/object filter values
| JavaScript | mit | scrollback/sbcache,belng/know,scrollback/know | javascript | ## Code Before:
'use strict';
let juri = require('juri')(),
pattern = /(^|[+\-:!])(\w+|\([^(]+\))/g;
exports.sliceToKey = (s) => s.type +
(s.join ? '+' + juri.encode(s.join) : '') +
(s.link ? '-' + juri.encode(s.link) : '') +
(s.order ? ':' + s.order : '') +
(s.filter ? '!' + juri.encode(s.filter) : '');
exports... | 'use strict';
let juri = require('juri')(),
- pattern = /(^|[+\-:!])(\w+|\([^(]+\))/g;
? -
+ pattern = /(^|[+\-:])(\w+|\([^(]+\))/g;
exports.sliceToKey = (s) => s.type +
(s.join ? '+' + juri.encode(s.join) : '') +
(s.link ? '-' + juri.encode(s.link) : '') +
(s.order ? ':' + s.or... | 9 | 0.391304 | 5 | 4 |
b4b7bd22789aa1035a76c0d9ccbeee27505aecdc | app/assets/stylesheets/permit_steps/submit_application.css.scss | app/assets/stylesheets/permit_steps/submit_application.css.scss | /* styles for #submit_application */
.big-time {
// for a big time readout
font-size: 80px;
color: green;
letter-spacing: -2px;
font-weight: 600;
} | /* styles for #submit_application */
.big-time {
// for a big time readout
font-size: 80px;
color: green;
letter-spacing: -2px;
font-weight: 600;
}
td {
-ms-word-break: break-all;
word-break: break-all;
// Non standard for webkit
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens... | Add word breaks and hyphenation to table cells | Add word breaks and hyphenation to table cells
| SCSS | isc | codeforamerica/homebase,codeforamerica/homebase,randy-r-masters/homebase,schlos/homebase,randy-r-masters/homebase,schlos/homebase,schlos/homebase,codeforamerica/homebase,randy-r-masters/homebase | scss | ## Code Before:
/* styles for #submit_application */
.big-time {
// for a big time readout
font-size: 80px;
color: green;
letter-spacing: -2px;
font-weight: 600;
}
## Instruction:
Add word breaks and hyphenation to table cells
## Code After:
/* styles for #submit_application */
.big-time {
// for a big tim... | /* styles for #submit_application */
.big-time {
// for a big time readout
font-size: 80px;
color: green;
letter-spacing: -2px;
font-weight: 600;
}
+
+ td {
+ -ms-word-break: break-all;
+ word-break: break-all;
+
+ // Non standard for webkit
+ word-break: break-word;
+
+ -web... | 12 | 1.5 | 12 | 0 |
35b55bec4912c6f14351422bc6e6c6fecfd5bfe5 | server/auth/index.js | server/auth/index.js | const logger = require('../logging');
const passport = require('passport');
const { setupOIDC } = require('./oidc');
const getUserById = require('../models/user.accessors').getUserById;
require('./providers/ow4.js');
module.exports = async (app) => {
passport.serializeUser((user, done) => {
logger.silly('Seria... | const logger = require('../logging');
const passport = require('passport');
const { setupOIDC } = require('./oidc');
const getUserById = require('../models/user.accessors').getUserById;
require('./providers/ow4.js');
module.exports = async (app) => {
await setupOIDC();
passport.serializeUser((user, done) => {
... | Make OIDC be default auth mechanism | Make OIDC be default auth mechanism
| JavaScript | mit | dotkom/super-duper-fiesta,dotkom/super-duper-fiesta,dotkom/super-duper-fiesta | javascript | ## Code Before:
const logger = require('../logging');
const passport = require('passport');
const { setupOIDC } = require('./oidc');
const getUserById = require('../models/user.accessors').getUserById;
require('./providers/ow4.js');
module.exports = async (app) => {
passport.serializeUser((user, done) => {
log... | const logger = require('../logging');
const passport = require('passport');
const { setupOIDC } = require('./oidc');
const getUserById = require('../models/user.accessors').getUserById;
require('./providers/ow4.js');
module.exports = async (app) => {
+ await setupOIDC();
+
passport.serialize... | 16 | 0.421053 | 4 | 12 |
f398158b88d1716764ad7b1e0a4c73c5f722a3b9 | src/main/webapp/WEB-INF/themes/mobile/ftl/common/title/titleFormat.ftl | src/main/webapp/WEB-INF/themes/mobile/ftl/common/title/titleFormat.ftl | <#--
Sub-themes may override this file to change the format of the title - for example, if you want a dash between
the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
(i.e., the way it uses siteTitle.ftl and the siteTitle variable).
-->
<#macro titleForm... | <#--
Sub-themes may override this file to change the format of the title - for example, if you want a dash between
the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
(i.e., the way it uses siteTitle.ftl and the siteTitle variable).
-->
<#macro titleForm... | Handle pages with no subtitle better | Handle pages with no subtitle better
The page title can now be set to an empty string, without being followed by
a colon with nothing after it.
| FreeMarker | mit | PLOS/wombat,PLOS/wombat,PLOS/wombat,PLOS/wombat | freemarker | ## Code Before:
<#--
Sub-themes may override this file to change the format of the title - for example, if you want a dash between
the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
(i.e., the way it uses siteTitle.ftl and the siteTitle variable).
-->
<... | <#--
Sub-themes may override this file to change the format of the title - for example, if you want a dash between
the site and page title instead of a colon. Such overrides should leave intact the macro's name and structure
(i.e., the way it uses siteTitle.ftl and the siteTitle variable).
-->
<#mac... | 6 | 0.666667 | 5 | 1 |
7733eef2eb6674ce800126e5abf4d98c0434b224 | 16B/16B-242/imaging/concat_and_split.py | 16B/16B-242/imaging/concat_and_split.py |
'''
Combine the tracks, then split out the science fields
'''
import os
from glob import glob
from tasks import virtualconcat, split
# Grab all of the MS tracks in the folder (should be 12)
myvis = glob("*.speclines.ms")
assert len(myvis) == 12
default('virtualconcat')
virtualconcat(vis=myvis, concatvis='16B-242_... |
'''
Combine the tracks, then split out the science fields
'''
import os
from glob import glob
from tasks import virtualconcat, split
# Grab all of the MS tracks in the folder (should be 12)
myvis = glob("16B-242.*.ms")
assert len(myvis) == 12
default('virtualconcat')
virtualconcat(vis=myvis, concatvis='16B-242_li... | Change glob for 242 tracks | Change glob for 242 tracks
| Python | mit | e-koch/VLA_Lband,e-koch/VLA_Lband | python | ## Code Before:
'''
Combine the tracks, then split out the science fields
'''
import os
from glob import glob
from tasks import virtualconcat, split
# Grab all of the MS tracks in the folder (should be 12)
myvis = glob("*.speclines.ms")
assert len(myvis) == 12
default('virtualconcat')
virtualconcat(vis=myvis, con... |
'''
Combine the tracks, then split out the science fields
'''
import os
from glob import glob
from tasks import virtualconcat, split
# Grab all of the MS tracks in the folder (should be 12)
- myvis = glob("*.speclines.ms")
+ myvis = glob("16B-242.*.ms")
assert len(myvis) == 12
defaul... | 2 | 0.076923 | 1 | 1 |
3c99f64d8c8236f257952d6ffaa13f017ae57717 | README.md | README.md |
[](https://gitter.im/sepulchered/blgr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Static blog generator for using with ipython notebooks.
It's in alpha stage now thus don't expect much.

[](https://gitter.im/sepulchered/blgr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge... | Add gitter link and move codeship link before it | Add gitter link and move codeship link before it | Markdown | mit | sepulchered/blgr,sepulchered/blgr | markdown | ## Code Before:
[](https://gitter.im/sepulchered/blgr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Static blog generator for using with ipython notebooks.
It's in alpha stage now thus don't ex... | -
+ 
[](https://gitter.im/sepulchered/blgr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_conten... | 5 | 0.185185 | 1 | 4 |
3a87d325c6431a4f6d6d428f93f073fd511f94d3 | config/deploy/production.rb | config/deploy/production.rb | set :stage, :production
# Simple Role Syntax
# ==================
#role :app, %w{deploy@example.com}
#role :web, %w{deploy@example.com}
#role :db, %w{deploy@example.com}
# Extended Server Syntax
# ======================
server 'zerocred.club', user: 'deploy', roles: %w{web app db}
# you can set custom ssh options
#... | set :stage, :production
# Simple Role Syntax
# ==================
#role :app, %w{deploy@example.com}
#role :web, %w{deploy@example.com}
#role :db, %w{deploy@example.com}
# Extended Server Syntax
# ======================
server '104.236.111.107', user: 'deploy', roles: %w{web app db}
# you can set custom ssh options... | Fix IP address & deploy key | Fix IP address & deploy key
| Ruby | mit | zerocred/site,zerocred/site | ruby | ## Code Before:
set :stage, :production
# Simple Role Syntax
# ==================
#role :app, %w{deploy@example.com}
#role :web, %w{deploy@example.com}
#role :db, %w{deploy@example.com}
# Extended Server Syntax
# ======================
server 'zerocred.club', user: 'deploy', roles: %w{web app db}
# you can set cust... | set :stage, :production
# Simple Role Syntax
# ==================
#role :app, %w{deploy@example.com}
#role :web, %w{deploy@example.com}
#role :db, %w{deploy@example.com}
# Extended Server Syntax
# ======================
- server 'zerocred.club', user: 'deploy', roles: %w{web app db}
? ^^^... | 4 | 0.166667 | 2 | 2 |
c13d2e54fbc1c5cd297b14e6c0b2cc53fd79fe21 | metadata/com.silentlexx.instead.txt | metadata/com.silentlexx.instead.txt | Category:Games
License:GPLv2+
Web Site:http://instead.syscall.ru/
Source Code:http://sourceforge.net/p/instead/code/
Issue Tracker:http://instead.syscall.ru/forum/viewforum.php?id=14
Name:INSTEAD
Summary:Interactive fiction player
Description:
STEAD is a Lua-based language for writing games that are the mix of visual ... | Category:Games
License:GPLv2+
Web Site:http://instead.syscall.ru/
Source Code:http://sourceforge.net/p/instead/code/
Issue Tracker:http://instead.syscall.ru/forum/viewforum.php?id=14
Name:INSTEAD
Summary:Interactive fiction player
Description:
STEAD is a Lua-based language for writing games that are the mix of visual ... | Remove scanignore and force update INSTEAD | Remove scanignore and force update INSTEAD
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Category:Games
License:GPLv2+
Web Site:http://instead.syscall.ru/
Source Code:http://sourceforge.net/p/instead/code/
Issue Tracker:http://instead.syscall.ru/forum/viewforum.php?id=14
Name:INSTEAD
Summary:Interactive fiction player
Description:
STEAD is a Lua-based language for writing games that are th... | Category:Games
License:GPLv2+
Web Site:http://instead.syscall.ru/
Source Code:http://sourceforge.net/p/instead/code/
Issue Tracker:http://instead.syscall.ru/forum/viewforum.php?id=14
Name:INSTEAD
Summary:Interactive fiction player
Description:
STEAD is a Lua-based language for writing games that ar... | 8 | 0.258065 | 4 | 4 |
dd1b8036230885362e5f6c8c83813630f687f044 | README.md | README.md | ama.js
======
A Javascript library that helps connect to the AMA (Autoridad Metropolitana de Autobuses) API.
| AMA.js
======
A Javascript library that helps connect to the Autoridad Metropolitana de Autobuses' (AMA) API.
AMA.js provides a Javascript wrapper for the API of the Autoridad Metropolitana de Autobuses (AMA). If you are writing a Node.js app, or you are developing a server side solution in Javascript, then this is t... | Add description to the readme | Add description to the readme
| Markdown | mit | Sparragus/ama.js | markdown | ## Code Before:
ama.js
======
A Javascript library that helps connect to the AMA (Autoridad Metropolitana de Autobuses) API.
## Instruction:
Add description to the readme
## Code After:
AMA.js
======
A Javascript library that helps connect to the Autoridad Metropolitana de Autobuses' (AMA) API.
AMA.js provides a J... | - ama.js
+ AMA.js
======
- A Javascript library that helps connect to the AMA (Autoridad Metropolitana de Autobuses) API.
? -----
+ A Javascript library that helps connect to the Autoridad Metropolitana de Autobuses' (AMA) API.
? ... | 8 | 2 | 6 | 2 |
63b6f85f3975a87d298c796ba44fa1837c4c6e6f | tests/thread-test.cc | tests/thread-test.cc |
evenk::default_synch::lock_type lock;
evenk::default_synch::cond_var_type cond;
void
thread_routine()
{
evenk::default_synch::lock_owner_type guard(lock);
cond.notify_one(); // notify that the thread started
cond.wait(guard); // wait for test finish
}
void
print_affinity(const evenk::thread::cpuset_type &affinit... |
evenk::default_synch::lock_type lock;
evenk::default_synch::cond_var_type cond;
void
thread_routine()
{
evenk::default_synch::lock_owner_type guard(lock);
cond.notify_one(); // notify that the thread started
cond.wait(guard); // wait for test finish
}
void
print_affinity(const evenk::thread::cpuset_type &affinit... | Extend a bit the thread test output | Extend a bit the thread test output
| C++ | mit | ademakov/Evenk,ademakov/Evenk | c++ | ## Code Before:
evenk::default_synch::lock_type lock;
evenk::default_synch::cond_var_type cond;
void
thread_routine()
{
evenk::default_synch::lock_owner_type guard(lock);
cond.notify_one(); // notify that the thread started
cond.wait(guard); // wait for test finish
}
void
print_affinity(const evenk::thread::cpus... |
evenk::default_synch::lock_type lock;
evenk::default_synch::cond_var_type cond;
void
thread_routine()
{
evenk::default_synch::lock_owner_type guard(lock);
cond.notify_one(); // notify that the thread started
cond.wait(guard); // wait for test finish
}
void
print_affinity(const evenk::... | 3 | 0.06 | 2 | 1 |
aada16b726c819e3c67bf490175a8aa015b75210 | spec/controllers/webhook_controller_spec.rb | spec/controllers/webhook_controller_spec.rb | require 'spec_helper'
describe StripeEvent::WebhookController do
before do
StripeEvent.clear_subscribers!
@base_params = { :use_route => :stripe_event }
end
context "with valid event data" do
let(:event_id) { 'evt_charge_succeeded' }
before do
stub_event(event_id)
end
it ... | require 'spec_helper'
describe StripeEvent::WebhookController do
before do
StripeEvent.clear_subscribers!
@base_params = { :use_route => :stripe_event }
end
context "with valid event data" do
let(:event_id) { 'evt_charge_succeeded' }
before do
stub_event(event_id)
end
it ... | Test that the retrieved event is properly assigned | Test that the retrieved event is properly assigned
| Ruby | mit | integrallis/stripe_event,integrallis/stripe_event,thinkclay/stripe_event,fullfabric/stripe_event,fullfabric/stripe_event,thinkclay/stripe_event | ruby | ## Code Before:
require 'spec_helper'
describe StripeEvent::WebhookController do
before do
StripeEvent.clear_subscribers!
@base_params = { :use_route => :stripe_event }
end
context "with valid event data" do
let(:event_id) { 'evt_charge_succeeded' }
before do
stub_event(event_id)
... | require 'spec_helper'
describe StripeEvent::WebhookController do
before do
StripeEvent.clear_subscribers!
@base_params = { :use_route => :stripe_event }
end
context "with valid event data" do
let(:event_id) { 'evt_charge_succeeded' }
before do
stub_event(even... | 5 | 0.121951 | 5 | 0 |
6f9439b0aaf2ea01385c03db8eaca9267469b346 | extension/keysocket-subsonic.js | extension/keysocket-subsonic.js | function onKeyPress(key) {
if (this.jwplayer) {
location.href = "javascript:window.jwplayer().play()";
}
}
| function onKeyPress(key) {
if (this.jwplayer) {
if (key === NEXT) {
var playPauseButton = document.querySelector('img[src="icons/default_dark/forward.png"]');
simulateClick(playPauseButton);
} else if (key === PLAY) {
location.href = "javascript:window.jwplayer().play()";
} else if (key === PREV) {
... | Add back and forward shortcut | Add back and forward shortcut
| JavaScript | apache-2.0 | ALiangLiang/keysocket,borismus/keysocket,vinyldarkscratch/keysocket,feedbee/keysocket,vinyldarkscratch/keysocket,borismus/keysocket,feedbee/keysocket | javascript | ## Code Before:
function onKeyPress(key) {
if (this.jwplayer) {
location.href = "javascript:window.jwplayer().play()";
}
}
## Instruction:
Add back and forward shortcut
## Code After:
function onKeyPress(key) {
if (this.jwplayer) {
if (key === NEXT) {
var playPauseButton = document.querySelector('img[src="i... | function onKeyPress(key) {
if (this.jwplayer) {
+ if (key === NEXT) {
+ var playPauseButton = document.querySelector('img[src="icons/default_dark/forward.png"]');
+ simulateClick(playPauseButton);
+ } else if (key === PLAY) {
- location.href = "javascript:window.jwplayer().play()";
? ^^
+ locati... | 10 | 2 | 9 | 1 |
dfa843a407f23a11e78c69a040b565d8fca8a121 | lib/smart_answer_flows/coronavirus-employee-risk-assessment/questions/is_your_employer_asking_you_to_work.govspeak.erb | lib/smart_answer_flows/coronavirus-employee-risk-assessment/questions/is_your_employer_asking_you_to_work.govspeak.erb | <% render_content_for :pretext do %>
##Your workplace should be closed
If there is still work to do despite your workplace being closed, your employer might ask you to work from home or come into work.
<% end %>
<% render_content_for :title do %>
Is your employer asking you to work?
<% end %>
<% options(
"ye... | <% render_content_for :pretext do %>
##Your workplace should be closed
If there is still work to do despite your workplace being closed, your employer might ask you to work from home or come into work.
<% end %>
<% render_content_for :title do %>
Is your employer asking you to work or to start work from 4 July ... | Update content in the Coronavirus employee risk assessment flow | Update content in the Coronavirus employee risk assessment flow
Updates the question title for when employees might be asked to come
back to work.
| HTML+ERB | mit | alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers | html+erb | ## Code Before:
<% render_content_for :pretext do %>
##Your workplace should be closed
If there is still work to do despite your workplace being closed, your employer might ask you to work from home or come into work.
<% end %>
<% render_content_for :title do %>
Is your employer asking you to work?
<% end %>
<... | <% render_content_for :pretext do %>
##Your workplace should be closed
If there is still work to do despite your workplace being closed, your employer might ask you to work from home or come into work.
<% end %>
<% render_content_for :title do %>
- Is your employer asking you to work?
+ Is your ... | 2 | 0.142857 | 1 | 1 |
e6f7a474cf659b485771af5404a6804cf0f0ebae | app/assets/stylesheets/index.css | app/assets/stylesheets/index.css | body {
/*background-color:#efefef;*/
color: #000;
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 300;
margin: 0;
}
a {
text-decoration: none;
color: inherit;
}
div#content {
padding: 60px 15px 0px 15px;
}
img#loading {
position:absolute;
top... | body {
background-color:#efefef;
color: #000;
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 300;
margin: 0;
}
a {
text-decoration: none;
color: inherit;
}
div#content {
padding: 60px 15px 0px 15px;
}
img#loading {
position:absolute;
top: 50... | Fix off center loading image | Fix off center loading image
| CSS | mit | robinm8/yacs,robinm8/yacs,robinm8/yacs,robinm8/yacs | css | ## Code Before:
body {
/*background-color:#efefef;*/
color: #000;
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 300;
margin: 0;
}
a {
text-decoration: none;
color: inherit;
}
div#content {
padding: 60px 15px 0px 15px;
}
img#loading {
position:a... | body {
- /*background-color:#efefef;*/
? -- --
+ background-color:#efefef;
color: #000;
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 300;
margin: 0;
}
a {
text-decoration: none;
color: inherit;
}
... | 9 | 0.195652 | 3 | 6 |
22e8d0bd9c66ab95f09ccf5d26d4e0d252160eae | app/examples.json | app/examples.json | {
"Radio errors example page": {
"slug": "radio-errors",
"group": "form",
"from": "error_radio",
"to": "error_radio_show_errors"
},
"Multiple errors, focus style, hint text and confirmation page": {
"slug": "multiple-errors",
"group": "form",
"from": "error_multiple",
"to": "error... | {
"Radio errors example page": {
"slug": "radio-errors",
"group": "form",
"from": "error_radio",
"to": "error_radio"
},
"Multiple errors, focus style, hint text and confirmation page": {
"slug": "multiple-errors",
"group": "form",
"from": "error_multiple",
"to": "error_multiple"
... | Use more automated mechanism for radio errors | Use more automated mechanism for radio errors
| JSON | mit | selfthinker/elements-testing,cfq/elements-testing,selfthinker/elements-testing,cfq/elements-testing,cfq/elements-testing,selfthinker/elements-testing | json | ## Code Before:
{
"Radio errors example page": {
"slug": "radio-errors",
"group": "form",
"from": "error_radio",
"to": "error_radio_show_errors"
},
"Multiple errors, focus style, hint text and confirmation page": {
"slug": "multiple-errors",
"group": "form",
"from": "error_multiple",
... | {
"Radio errors example page": {
"slug": "radio-errors",
"group": "form",
"from": "error_radio",
- "to": "error_radio_show_errors"
? ------------
+ "to": "error_radio"
},
"Multiple errors, focus style, hint text and confirmation page": {
"slug": "m... | 2 | 0.042553 | 1 | 1 |
d21c8bf5b3fdc21e75f666394e846e6614d3230e | README.md | README.md |
[](https://github.com/Flet/semistandard) [](https://codeclimate.com/github/Altoros/refill-them-api)
This is an API dev... |
[](https://github.com/Flet/semistandard) [](https://codeclimate.com/github/Altoros/refill-them-api)
This is an API dev... | Add ENV vars to Readme | Add ENV vars to Readme
| Markdown | mit | Altoros/refill-them-api | markdown | ## Code Before:
[](https://github.com/Flet/semistandard) [](https://codeclimate.com/github/Altoros/refill-them-api)
Th... |
[](https://github.com/Flet/semistandard) [](https://codeclimate.com/github/Altoros/refill-them-api)
This is an... | 16 | 0.484848 | 16 | 0 |
0535966b7d2d519031f7837141bb8b1d758ce28f | support/package.json | support/package.json | {
"name": "titanium-mobile-deps",
"description": "Appcelerator Titanium Mobile dependencies - this file is omitted from distribution",
"version": "__VERSION__",
"dependencies": {
"async": "0.1.x",
"clean-css": "0.6.0",
"css-parse": "1.0.X",
"less": "1.3.0",
"node-appc": "git://github.com/appcelerator/node... | {
"name": "titanium-mobile-deps",
"description": "Appcelerator Titanium Mobile dependencies - this file is omitted from distribution",
"version": "__VERSION__",
"dependencies": {
"async": "0.1.x",
"clean-css": "0.6.0",
"css-parse": "1.0.X",
"less": "1.3.0",
"node-appc": ">=0.1.0",
"titanium-code-process... | Set the node-appc and titanium-code-processor modules to use real npm modules. | [TIMOB-8652] Set the node-appc and titanium-code-processor modules to use real npm modules.
| JSON | apache-2.0 | rblalock/titanium_mobile,falkolab/titanium_mobile,jvkops/titanium_mobile,sriks/titanium_mobile,rblalock/titanium_mobile,kopiro/titanium_mobile,jhaynie/titanium_mobile,benbahrenburg/titanium_mobile,FokkeZB/titanium_mobile,smit1625/titanium_mobile,pec1985/titanium_mobile,cheekiatng/titanium_mobile,sriks/titanium_mobile,c... | json | ## Code Before:
{
"name": "titanium-mobile-deps",
"description": "Appcelerator Titanium Mobile dependencies - this file is omitted from distribution",
"version": "__VERSION__",
"dependencies": {
"async": "0.1.x",
"clean-css": "0.6.0",
"css-parse": "1.0.X",
"less": "1.3.0",
"node-appc": "git://github.com/a... | {
"name": "titanium-mobile-deps",
"description": "Appcelerator Titanium Mobile dependencies - this file is omitted from distribution",
"version": "__VERSION__",
"dependencies": {
"async": "0.1.x",
"clean-css": "0.6.0",
"css-parse": "1.0.X",
"less": "1.3.0",
- "node-appc": "git://github.c... | 4 | 0.190476 | 2 | 2 |
628dcf456e93b3f3a5223eb41f254385522a1110 | demo/scripts/index.js | demo/scripts/index.js | (function init() {
var input1 = document.getElementById("input1");
var input2 = document.getElementById("input2");
var searchParams = new URLSearchParams(window.location.search);
if (input1.value === "") {
input1.value = searchParams.get("startDate");
}
if (input2.value === "") {
... | (function init() {
var input1 = document.getElementById("input1");
var input2 = document.getElementById("input2");
var searchParams = new URLSearchParams(window.location.search);
if (input1.value === "") {
input1.value = searchParams.get("startDate");
}
if (input2.value === "") {
... | Fix a display bug when two dates are the same day. | Fix a display bug when two dates are the same day.
| JavaScript | mit | zzpxyx/date-calc,zzpxyx/date-calc,zzpxyx/date-calc,zzpxyx/date-calc | javascript | ## Code Before:
(function init() {
var input1 = document.getElementById("input1");
var input2 = document.getElementById("input2");
var searchParams = new URLSearchParams(window.location.search);
if (input1.value === "") {
input1.value = searchParams.get("startDate");
}
if (input2.value =... | (function init() {
var input1 = document.getElementById("input1");
var input2 = document.getElementById("input2");
var searchParams = new URLSearchParams(window.location.search);
if (input1.value === "") {
input1.value = searchParams.get("startDate");
}
if (input2.value =... | 2 | 0.046512 | 1 | 1 |
11d24e939bdb984f21048b6740e736b55ab6ac52 | app/views/SalesView.coffee | app/views/SalesView.coffee | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
RootView = require 'views/core/RootView'
template = require 'templates/sales-view'
module.exports = class SalesView extends RootView
id: 'sales-view'
template: template
events:
'click .btn-contact-us': 'onClickContactUs'
'click ... | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
RootView = require 'views/core/RootView'
template = require 'templates/sales-view'
module.exports = class SalesView extends RootView
id: 'sales-view'
template: template
events:
'click .btn-contact-us': 'onClickContactUs'
'click ... | Add smooth down arrow navigation to /schools | Add smooth down arrow navigation to /schools
| CoffeeScript | mit | probil/codecombat,icodegame/codecombat,kidaa/codecombat,codecombat/codecombat,duybkict/codecombat,weevilgenius/codecombat,jeremyprice/codecombat,fabichoi/codecombat,tpai/codecombat,zhangxiuquan/codecombat,duybkict/codecombat,differentmatt/codecombat,zhangxiuquan/codecombat,khoa102/codecombat,Zerrien/codecombat,Zerrien/... | coffeescript | ## Code Before:
app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
RootView = require 'views/core/RootView'
template = require 'templates/sales-view'
module.exports = class SalesView extends RootView
id: 'sales-view'
template: template
events:
'click .btn-contact-us': 'onClickContac... | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
RootView = require 'views/core/RootView'
template = require 'templates/sales-view'
module.exports = class SalesView extends RootView
id: 'sales-view'
template: template
events:
'click .btn-contact-us': 'onClick... | 7 | 0.241379 | 7 | 0 |
3460e5b8ef4042ba05560b6f9a0343e8c4f4f918 | bootstrap/docker.json | bootstrap/docker.json | {
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"hosts": [
"tcp://127.0.0.1:2376",
"unix:///var/run/docker.sock"
],
"storage-driver": "devicemapper",
"storage-opts": [
"dm.override_udev_sync_check=true"
]
}
| {
"bip": "10.250.0.0/16",
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"default-address-pools":[
{ "base":"10.251.0.0/16", "size":24 },
{ "base":"10.252.0.0/16", "size":24 }
],
"hosts": [
"tcp://127.0.0.1:2376",
"un... | Add custom addresses for Docker containers | Add custom addresses for Docker containers
| JSON | mit | cartolari/dotfiles,cartolari/dotfiles,cartolari/dotfiles,cartolari/dotfiles | json | ## Code Before:
{
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"hosts": [
"tcp://127.0.0.1:2376",
"unix:///var/run/docker.sock"
],
"storage-driver": "devicemapper",
"storage-opts": [
"dm.override_udev_sync_check=true"
... | {
+ "bip": "10.250.0.0/16",
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
+ "default-address-pools":[
+ { "base":"10.251.0.0/16", "size":24 },
+ { "base":"10.252.0.0/16", "size":24 }
+ ],
"hosts": [
"tcp://12... | 5 | 0.384615 | 5 | 0 |
4156966905342a4ef72c3746af253b7044aa176c | pages/archive/page-archive.htm | pages/archive/page-archive.htm | ---
url: /archive/:type/:category?/:page?
name: Blog archive
description: Displays a list of CMS content blog posts.
action: cmscontent:archive
template: default
published: true
---
{% set blog_slugs = [] %}
{% set blog_categories = [] %}
{# Iterate by ascending published_on so that new posts don't change the #}
{# ord... | ---
url: /archive/:type/:category?/:page?
name: Blog archive
description: Displays a list of CMS content blog posts.
action: cmscontent:archive
template: default
published: true
---
{% set blog_slugs = [] %}
{% set blog_categories = [] %}
{# Iterate by ascending published_on so that new posts don't change the #}
{# ord... | Move blog categories down to make title right. | Move blog categories down to make title right.
| HTML | mit | lemonstand/lscloud-theme-bones,lemonstand/lscloud-theme-bones | html | ## Code Before:
---
url: /archive/:type/:category?/:page?
name: Blog archive
description: Displays a list of CMS content blog posts.
action: cmscontent:archive
template: default
published: true
---
{% set blog_slugs = [] %}
{% set blog_categories = [] %}
{# Iterate by ascending published_on so that new posts don't chan... | ---
url: /archive/:type/:category?/:page?
name: Blog archive
description: Displays a list of CMS content blog posts.
action: cmscontent:archive
template: default
published: true
---
{% set blog_slugs = [] %}
{% set blog_categories = [] %}
{# Iterate by ascending published_on so that new posts don'... | 6 | 0.162162 | 3 | 3 |
a203cdc0a139a96830a5f8b96b2a41037ed48252 | views/home.html | views/home.html | <div class="main">
<div class="container">
<h2>Recent Photos</h2>
</div>
For every complex problem there is an answer that is clear, simple, and wrong.---H. L. Mencken
Read more at: http://www.brainyquote.com/quotes/quotes/h/hlmencke129796.html
<div ng-controller="PlayerController">
Your name is {{ ... | <div class="main">
<div class="container">
<h2>Recent Photos</h2>
</div>
For every complex problem there is an answer that is clear, simple, and wrong.---H. L. Mencken
Read more at: http://www.brainyquote.com/quotes/quotes/h/hlmencke129796.html
<div class="faction" ng-repeat="faction in selectedFaction... | Add buttons for attacking enemy corporations | Add buttons for attacking enemy corporations
| HTML | mit | tra38/The-Regulator,tra38/The-Regulator | html | ## Code Before:
<div class="main">
<div class="container">
<h2>Recent Photos</h2>
</div>
For every complex problem there is an answer that is clear, simple, and wrong.---H. L. Mencken
Read more at: http://www.brainyquote.com/quotes/quotes/h/hlmencke129796.html
<div ng-controller="PlayerController">
... | <div class="main">
<div class="container">
<h2>Recent Photos</h2>
</div>
For every complex problem there is an answer that is clear, simple, and wrong.---H. L. Mencken
Read more at: http://www.brainyquote.com/quotes/quotes/h/hlmencke129796.html
+
+ <div class="faction" ng-repeat="factio... | 8 | 0.533333 | 8 | 0 |
a20a63415bf1343ab826d1155c1004e84b14077e | massa/validation.py | massa/validation.py |
from schematics.exceptions import ConversionError, ValidationError
def validate(schema, data):
try:
schema.import_data(data)
schema.validate()
except (ConversionError, ValidationError) as e:
raise InvalidInputError(details=e.messages)
def weight_validator(value):
if abs(value.as... |
from schematics.exceptions import ConversionError, ValidationError
from .errors import InvalidInputError
def validate(schema, data):
try:
schema.import_data(data)
schema.validate()
except (ConversionError, ValidationError) as e:
raise InvalidInputError(details=e.messages)
def weight... | Fix bug, InvalidInputError not defined. | Fix bug, InvalidInputError not defined. | Python | mit | jaapverloop/massa | python | ## Code Before:
from schematics.exceptions import ConversionError, ValidationError
def validate(schema, data):
try:
schema.import_data(data)
schema.validate()
except (ConversionError, ValidationError) as e:
raise InvalidInputError(details=e.messages)
def weight_validator(value):
... |
from schematics.exceptions import ConversionError, ValidationError
+ from .errors import InvalidInputError
def validate(schema, data):
try:
schema.import_data(data)
schema.validate()
except (ConversionError, ValidationError) as e:
raise InvalidInputError(details=e.... | 1 | 0.058824 | 1 | 0 |
c1e0c9a1ed73c51dbc0e540fb21838ed7fc29992 | .coveralls.yml | .coveralls.yml | service_name: travis-pro
repo_token: nNwJfGQ3e3W0j2R9qp63plsmP1amliQDK
| service_name: travis-pro
repo_token: 6rhMoZsPWh5zNVESE1iSapb8zRzYl8nds | Fix Coveralls integration issue in base branch | Fix Coveralls integration issue in base branch
| YAML | mit | Philipeano/post-it,Philipeano/post-it | yaml | ## Code Before:
service_name: travis-pro
repo_token: nNwJfGQ3e3W0j2R9qp63plsmP1amliQDK
## Instruction:
Fix Coveralls integration issue in base branch
## Code After:
service_name: travis-pro
repo_token: 6rhMoZsPWh5zNVESE1iSapb8zRzYl8nds | service_name: travis-pro
- repo_token: nNwJfGQ3e3W0j2R9qp63plsmP1amliQDK
+ repo_token: 6rhMoZsPWh5zNVESE1iSapb8zRzYl8nds | 2 | 1 | 1 | 1 |
e422c72ba3a36ca94c9373a4cd5dd1f48cb661de | popup.js | popup.js | /**
* Print the current url
*/
chrome.tabs.query({ active: true, lastFocusedWindow: true},
function(array_of_Tabs) { // Since there can only be one active tab in one active window,
// the array has only one element
var tab = array_of_Tabs[0];
var url = tab.url;
c... | /**
* Print the current url
*/
chrome.tabs.query({ active: true, lastFocusedWindow: true},
function(array_of_Tabs) { // Since there can only be one active tab in one active window,
// the array has only one element
var tab = array_of_Tabs[0];
var url = tab.url;
c... | Change the call of httpGet, now it will work with button | Change the call of httpGet, now it will work with button
| JavaScript | mit | RC-Dynamics/presence-extension,RC-Dynamics/presence-extension | javascript | ## Code Before:
/**
* Print the current url
*/
chrome.tabs.query({ active: true, lastFocusedWindow: true},
function(array_of_Tabs) { // Since there can only be one active tab in one active window,
// the array has only one element
var tab = array_of_Tabs[0];
var url = ... | /**
* Print the current url
*/
chrome.tabs.query({ active: true, lastFocusedWindow: true},
function(array_of_Tabs) { // Since there can only be one active tab in one active window,
// the array has only one element
var tab = array_of_Tabs[0];
var url = ... | 6 | 0.146341 | 5 | 1 |
4cc0cb31a6274128efb3982c1faaed0ffa516753 | app/controllers/home_controller.rb | app/controllers/home_controller.rb | class HomeController < ApplicationController
def show
offset = (Asciicast.featured.count * rand).to_i
@asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
end
end
| class HomeController < ApplicationController
def show
offset = (Asciicast.featured.count * rand).to_i
asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
@asciicast = AsciicastDecorator.new(asciicast)
end
end
| Use decorator for asciicast on homepage | Use decorator for asciicast on homepage
| Ruby | apache-2.0 | asciinema/asciinema.org,asciinema/asciinema-server,radare/radare.tv,asciinema/asciinema.org,SunDi3yansyah/asciinema.org,asciinema/asciinema-server,asciinema/asciinema-server,asciinema/asciinema-server,SunDi3yansyah/asciinema.org,radare/radare.tv,SunDi3yansyah/asciinema.org,SunDi3yansyah/asciinema.org,asciinema/asciinem... | ruby | ## Code Before:
class HomeController < ApplicationController
def show
offset = (Asciicast.featured.count * rand).to_i
@asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
end
end
## Instruction:
Use decorator for asciicast on homepage
## Code After:
class HomeController < Application... | class HomeController < ApplicationController
def show
offset = (Asciicast.featured.count * rand).to_i
- @asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
? - -
+ asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
+ @asciicast = Asciicas... | 3 | 0.5 | 2 | 1 |
c5325c6a4bee73612f839b9b59e7bdfa566674cf | lib/embork/phrender.rb | lib/embork/phrender.rb | require 'phrender'
require 'embork/server'
class Embork::Phrender < Embork::Server
def build_app
cascade_apps = @cascade_apps
phrender = [Phrender::RackMiddleware, {
:javascript_files => @borkfile.phrender_javascript_paths,
:javascript => @borkfile.phrender_raw_javascript,
:index_file => @... | require 'phrender'
require 'embork/server'
class Embork::Phrender < Embork::Server
def build_app
cascade_apps = @cascade_apps
phrender = [Phrender::RackMiddleware, {
:javascript_files => @borkfile.phrender_javascript_paths,
:javascript => @borkfile.phrender_raw_javascript,
:index_file => @... | Move the backend to the cascade apps | Move the backend to the cascade apps
- In dev mode, try sprockets, try static files, then try the back end,
this eliminates some crazy hoops to jump through. None of the file
generating apps needs to worry about calling up the stack, they can
rely on headers that phrender sets.
| Ruby | mit | minasmart/embork,minasmart/embork | ruby | ## Code Before:
require 'phrender'
require 'embork/server'
class Embork::Phrender < Embork::Server
def build_app
cascade_apps = @cascade_apps
phrender = [Phrender::RackMiddleware, {
:javascript_files => @borkfile.phrender_javascript_paths,
:javascript => @borkfile.phrender_raw_javascript,
... | require 'phrender'
require 'embork/server'
class Embork::Phrender < Embork::Server
def build_app
cascade_apps = @cascade_apps
phrender = [Phrender::RackMiddleware, {
:javascript_files => @borkfile.phrender_javascript_paths,
:javascript => @borkfile.phrender_raw_javascript,
... | 2 | 0.095238 | 1 | 1 |
5d54daa3c44418dbea29db216aec822fddfe7527 | client/_layout.html | client/_layout.html | <template name="_layout">
<header>
{{> nav}}
</header>
<div class="container">
{{> yield}}
</div>
</template> | <template name="_layout">
<header>
{{> nav}}
</header>
<div class="container">
{{> sAlert}}
{{> yield}}
</div>
</template> | Add notifications with sAlert package | Add notifications with sAlert package
| HTML | mit | mtr-cherish/cherish,mtr-cherish/cherish | html | ## Code Before:
<template name="_layout">
<header>
{{> nav}}
</header>
<div class="container">
{{> yield}}
</div>
</template>
## Instruction:
Add notifications with sAlert package
## Code After:
<template name="_layout">
<header>
{{> nav}}
</header>
<div class="container">
{{> sAlert}}
... | <template name="_layout">
<header>
{{> nav}}
</header>
<div class="container">
+ {{> sAlert}}
{{> yield}}
</div>
</template> | 1 | 0.125 | 1 | 0 |
286c35c86d28e54491f28691f2aad8bcf6ac9473 | README.md | README.md | [](https://travis-ci.org/OCA/l10n-italy)
[](https://coveralls.io/r/OCA/l10n-italy?branch=8.0)
Odoo Italia Modules
===================
Italian modules for odoo (formerly... | [](https://travis-ci.org/OCA/l10n-italy)
[](https://coveralls.io/r/OCA/l10n-italy?branch=8.0)
Odoo Italia Modules
===================
Italian modules for odoo (formerly... | Add Translation Status to project | Add Translation Status to project
| Markdown | agpl-3.0 | linkitspa/l10n-italy,linkitspa/l10n-italy,alessandrocamilli/l10n-italy,hurrinico/l10n-italy,abstract-open-solutions/l10n-italy,linkitspa/l10n-italy,luca-vercelli/l10n-italy,maxhome1/l10n-italy,odoo-isa/l10n-italy,scigghia/l10n-italy | markdown | ## Code Before:
[](https://travis-ci.org/OCA/l10n-italy)
[](https://coveralls.io/r/OCA/l10n-italy?branch=8.0)
Odoo Italia Modules
===================
Italian modules fo... | [](https://travis-ci.org/OCA/l10n-italy)
[](https://coveralls.io/r/OCA/l10n-italy?branch=8.0)
Odoo Italia Modules
===================
Italian modules for ... | 3 | 0.125 | 3 | 0 |
90092a9471420ec98ba0e3128ad299080574472f | extensions/roc-package-webpack-dev/src/webpack/utils/rocExportWebpackPlugin.js | extensions/roc-package-webpack-dev/src/webpack/utils/rocExportWebpackPlugin.js | export default class RocExportPlugin {
constructor(resolveRequest) {
this.resolveRequest = resolveRequest;
}
apply(compiler) {
// We assume that loaders will be managed in Webpack-land, that is we will not manage them in exports
compiler.plugin('normal-module-factory', (normalModule... | export default class RocExportPlugin {
constructor(resolveRequest) {
this.resolveRequest = resolveRequest;
}
apply(compiler) {
// We assume that loaders will be managed in Webpack-land, that is we will not manage them in exports
compiler.plugin('normal-module-factory', (normalModule... | Handle the case when result is undefined | Handle the case when result is undefined
| JavaScript | mit | rocjs/roc-package-webpack | javascript | ## Code Before:
export default class RocExportPlugin {
constructor(resolveRequest) {
this.resolveRequest = resolveRequest;
}
apply(compiler) {
// We assume that loaders will be managed in Webpack-land, that is we will not manage them in exports
compiler.plugin('normal-module-factory... | export default class RocExportPlugin {
constructor(resolveRequest) {
this.resolveRequest = resolveRequest;
}
apply(compiler) {
// We assume that loaders will be managed in Webpack-land, that is we will not manage them in exports
compiler.plugin('normal-module-factory... | 2 | 0.064516 | 1 | 1 |
52e61b06b438c16fb0306f45b5ed6f767055a4f6 | build/build_names.php | build/build_names.php | <?php
# find all input images
$files1 = glob(dirname(__FILE__).'/../gemoji/images/emoji/*.png');
$files2 = glob(dirname(__FILE__).'/../gemoji/images/emoji/unicode/*.png');
echo "Calculating checksums ... ";
$map = array();
foreach ($files2 as $f) $map[md5_file($f)] = $f;
echo "DONE\n";
echo "Matching up ....... | <?php
# find all input images
$files1 = glob(dirname(__FILE__).'/../gemoji/images/emoji/*.png');
$files2 = glob(dirname(__FILE__).'/../gemoji/images/emoji/unicode/*.png');
echo "Calculating checksums ... ";
$map = array();
foreach ($files2 as $f) {
$sum = md5_file($f);
if (!isset($map[$sum])) {
$map[$sum... | Add *all* matching names from unicode directory to names catalog | Add *all* matching names from unicode directory to names catalog
| PHP | mit | leohmoraes/emoji-data,iamcal/emoji-data,iamcal/emoji-data,morozgrafix/emoji-data,missive/emoji-data,missive/emoji-data,morozgrafix/emoji-data,morozgrafix/emoji-data,leohmoraes/emoji-data,iamcal/emoji-data,missive/emoji-data,morozgrafix/emoji-data,missive/emoji-data,leohmoraes/emoji-data,iamcal/emoji-data,leohmoraes/emo... | php | ## Code Before:
<?php
# find all input images
$files1 = glob(dirname(__FILE__).'/../gemoji/images/emoji/*.png');
$files2 = glob(dirname(__FILE__).'/../gemoji/images/emoji/unicode/*.png');
echo "Calculating checksums ... ";
$map = array();
foreach ($files2 as $f) $map[md5_file($f)] = $f;
echo "DONE\n";
echo "... | <?php
# find all input images
$files1 = glob(dirname(__FILE__).'/../gemoji/images/emoji/*.png');
$files2 = glob(dirname(__FILE__).'/../gemoji/images/emoji/unicode/*.png');
echo "Calculating checksums ... ";
$map = array();
- foreach ($files2 as $f) $map[md5_file($f)] = $f;
+ foreach ($files2 as... | 17 | 0.459459 | 12 | 5 |
f03186858f7600ac9354480b1b5068936b07a009 | test/jekyll/tidy_test.rb | test/jekyll/tidy_test.rb | require 'test_helper'
class Jekyll::TidyTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::Jekyll::Tidy::VERSION
end
def test_outputs_clean_html
dirty_html = load_fixture('dirty.html')
expected = load_fixture('clean.html')
actual = Jekyll::Tidy.output_clean(dirty_html)
... | require 'test_helper'
class Jekyll::TidyTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::Jekyll::Tidy::VERSION
end
def test_outputs_clean_html
dirty_html = load_fixture('dirty.html')
expected = load_fixture('clean.html')
actual = Jekyll::Tidy.output_clean(dirty_html)
... | Add tests for glob matching | Add tests for glob matching
| Ruby | mit | apsislabs/jekyll-tidy,apsislabs/jekyll-tidy | ruby | ## Code Before:
require 'test_helper'
class Jekyll::TidyTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::Jekyll::Tidy::VERSION
end
def test_outputs_clean_html
dirty_html = load_fixture('dirty.html')
expected = load_fixture('clean.html')
actual = Jekyll::Tidy.output_clean(... | require 'test_helper'
class Jekyll::TidyTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::Jekyll::Tidy::VERSION
end
def test_outputs_clean_html
dirty_html = load_fixture('dirty.html')
expected = load_fixture('clean.html')
actual = Jekyll::Tidy.output_... | 13 | 0.565217 | 13 | 0 |
2a48ddaf121133c574dd318b4eb40263fb3c33f8 | conda-recipe/meta.yaml | conda-recipe/meta.yaml | package:
name: gutils
version: "1.2.2"
source:
path: ../
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- gsw
- numpy
- scipy
... | package:
name: gutils
version: "1.2.2"
source:
path: ../
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- gsw
- numpy
- scipy
... | Test the create_glider_netcdf.py command on conda build | Test the create_glider_netcdf.py command on conda build
| YAML | mit | SECOORA/GUTILS,SECOORA/GUTILS | yaml | ## Code Before:
package:
name: gutils
version: "1.2.2"
source:
path: ../
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- gsw
- numpy
... | package:
name: gutils
version: "1.2.2"
source:
path: ../
build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
run:
- python
- ... | 3 | 0.078947 | 3 | 0 |
d4941496877f667c644cced2026de638e8244e4d | content/book_phone.md | content/book_phone.md | ---
description: Call 0800 138 3944 between 8am to 10pm, every day.
tags:
- appointments
- booking
---
# How to book a phone appointment
Phone **0800 138 3944**.
If you’re outside the UK phone +44 20 3733 3495.
- Call between 8am to 10pm, every day
- We’ll send you an email to confirm your booking
[Find out ab... | ---
description: Call 0800 138 3944 between 8am to 10pm, every day.
tags:
- appointments
- booking
---
# How to book a phone appointment
[Book online](/telephone-appointments/new){: .button #phone-button style="font-size: 0.9em; padding-left: 2em; padding-right: 2em;"}
or call **0800 138 3944**.
If you’re outsid... | Add book online button to phone page | Add book online button to phone page
| Markdown | mit | guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance | markdown | ## Code Before:
---
description: Call 0800 138 3944 between 8am to 10pm, every day.
tags:
- appointments
- booking
---
# How to book a phone appointment
Phone **0800 138 3944**.
If you’re outside the UK phone +44 20 3733 3495.
- Call between 8am to 10pm, every day
- We’ll send you an email to confirm your booki... | ---
description: Call 0800 138 3944 between 8am to 10pm, every day.
tags:
- appointments
- booking
---
-
# How to book a phone appointment
- Phone **0800 138 3944**.
+ [Book online](/telephone-appointments/new){: .button #phone-button style="font-size: 0.9em; padding-left: 2em; padding-right: 2em;... | 7 | 0.333333 | 4 | 3 |
1fbd3609348c6248f29238fc16f262a878ac52b1 | fedoracommunity/mokshaapps/overviewresource/templates/overviewcontainer.mak | fedoracommunity/mokshaapps/overviewresource/templates/overviewcontainer.mak | <div id="container">
<div id="right-content-column">
${applist_widget(category = 'right-content-column-apps', layout = layout)}
<div id="clear"></div>
</div>
<div id="left-content-column">
% if tmpl_context.auth('Not(not_anonymous())'):
<div id="banner-hea... | <div id="container">
<div id="right-content-column">
${applist_widget(category = 'right-content-column-apps', layout = layout)}
<div id="clear"></div>
</div>
<div id="left-content-column">
% if tmpl_context.auth('Not(not_anonymous())'):
<div id="banner-hea... | Update our intro paragraph with Spot's latestly revision | Update our intro paragraph with Spot's latestly revision
| Makefile | agpl-3.0 | fedora-infra/fedora-packages,fedora-infra/fedora-packages,fedora-infra/fedora-packages,fedora-infra/fedora-packages,Fale/fedora-packages,Fale/fedora-packages,Fale/fedora-packages | makefile | ## Code Before:
<div id="container">
<div id="right-content-column">
${applist_widget(category = 'right-content-column-apps', layout = layout)}
<div id="clear"></div>
</div>
<div id="left-content-column">
% if tmpl_context.auth('Not(not_anonymous())'):
<di... | <div id="container">
<div id="right-content-column">
${applist_widget(category = 'right-content-column-apps', layout = layout)}
<div id="clear"></div>
</div>
<div id="left-content-column">
% if tmpl_context.auth('Not(not_anonymous())'):
<... | 11 | 0.34375 | 6 | 5 |
dca97dd5dab315e82be6dad0d90c51b030bea531 | test/CXX/lex/lex.pptoken/p3-0x.cpp | test/CXX/lex/lex.pptoken/p3-0x.cpp | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
int a<::> = { 1, 2, 3 };
int b = a<:::a<:0:>:>;
bool c = a<:0:><::b;
template<int &n> void f() {}
template void f<::b>();
#define x a<:: ## : b :>
int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expected-error {{expected unq... | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
int a<::> = { 1, 2, 3 };
int b = a<:::a<:0:>:>;
bool c = a<:0:><::b;
template<int &n> void f() {}
template void f<::b>();
#define x a<:: ## : b :>
int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expected-error {{expected unq... | Test that we correctly handle reversion of line splicing etc in raw string literals. As suggested by Sean Silva. | Test that we correctly handle reversion of line splicing etc in raw string
literals. As suggested by Sean Silva.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@172694 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... | c++ | ## Code Before:
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
int a<::> = { 1, 2, 3 };
int b = a<:::a<:0:>:>;
bool c = a<:0:><::b;
template<int &n> void f() {}
template void f<::b>();
#define x a<:: ## : b :>
int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expected-erro... | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
int a<::> = { 1, 2, 3 };
int b = a<:::a<:0:>:>;
bool c = a<:0:><::b;
template<int &n> void f() {}
template void f<::b>();
#define x a<:: ## : b :>
int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expecte... | 4 | 0.363636 | 4 | 0 |
1304a3bc30fa8b6c0ce4507d9019a702ca4fdf43 | .travis.yml | .travis.yml | language: node_js
sudo: false
cache:
directories:
- node_modules
node_js:
- '0.10'
- '0.12'
- '1'
- '2'
- '3'
- '4'
script: 'npm run ci'
| language: node_js
sudo: false
cache:
directories:
- node_modules
node_js:
- '8'
- '10'
- 'node'
script: 'npm run ci'
| Drop node.js 0.10-6 support (semver-major) | Drop node.js 0.10-6 support (semver-major)
| YAML | bsd-3-clause | papandreou/esanimate | yaml | ## Code Before:
language: node_js
sudo: false
cache:
directories:
- node_modules
node_js:
- '0.10'
- '0.12'
- '1'
- '2'
- '3'
- '4'
script: 'npm run ci'
## Instruction:
Drop node.js 0.10-6 support (semver-major)
## Code After:
language: node_js
sudo: false
cache:
directories:
- node_modules
no... | language: node_js
sudo: false
cache:
directories:
- node_modules
node_js:
+ - '8'
- - '0.10'
- - '0.12'
- - '1'
+ - '10'
? +
+ - 'node'
- - '2'
- - '3'
- - '4'
script: 'npm run ci' | 9 | 0.692308 | 3 | 6 |
7769b31d490a2f59d6f47b14ff449e71363829d6 | README.md | README.md |
SolidOak is a simple IDE for Rust.
## Build Instructions
### Linux (apt-get)
```Shell
apt-get install libgtk-3-dev libglib2.0-dev libcairo2-dev libvte-2.90-dev
apt-get install libtool autoconf automake cmake libncurses5-dev g++ pkg-config unzip
cargo build
```
### Linux (yum)
```Shell
yum install gtk3-devel glib... |
SolidOak is a simple IDE for Rust.
## Build Instructions
### Linux (apt-get)
```Shell
apt-get install libgtk-3-dev libglib2.0-dev libcairo2-dev libvte-2.90-dev
apt-get install libtool autoconf automake cmake libncurses5-dev g++ pkg-config unzip
cargo build
```
### Linux (yum)
```Shell
yum install gtk3-devel glib... | Update OS X build instructions | Update OS X build instructions
| Markdown | unlicense | williamspacefire/SolidOak,Benjamin-L/SolidOak,oakes/SolidOak,williamspacefire/SolidOak,tempbottle/SolidOak,tempbottle/SolidOak | markdown | ## Code Before:
SolidOak is a simple IDE for Rust.
## Build Instructions
### Linux (apt-get)
```Shell
apt-get install libgtk-3-dev libglib2.0-dev libcairo2-dev libvte-2.90-dev
apt-get install libtool autoconf automake cmake libncurses5-dev g++ pkg-config unzip
cargo build
```
### Linux (yum)
```Shell
yum install... |
SolidOak is a simple IDE for Rust.
## Build Instructions
### Linux (apt-get)
```Shell
apt-get install libgtk-3-dev libglib2.0-dev libcairo2-dev libvte-2.90-dev
apt-get install libtool autoconf automake cmake libncurses5-dev g++ pkg-config unzip
cargo build
```
### Linux (yum)
``... | 3 | 0.081081 | 2 | 1 |
7672346cbb723cec6058ce656fb79ed2625ae211 | app/views/editor/campaign/SaveCampaignModal.coffee | app/views/editor/campaign/SaveCampaignModal.coffee | ModalView = require 'views/core/ModalView'
template = require 'templates/editor/campaign/save-campaign-modal'
DeltaView = require 'views/editor/DeltaView'
module.exports = class SaveCampaignModal extends ModalView
id: 'save-campaign-modal'
template: template
plain: true
events:
'click #save-button': 'onCl... | ModalView = require 'views/core/ModalView'
template = require 'templates/editor/campaign/save-campaign-modal'
DeltaView = require 'views/editor/DeltaView'
module.exports = class SaveCampaignModal extends ModalView
id: 'save-campaign-modal'
template: template
plain: true
events:
'click #save-button': 'onCl... | Stop reversing levels in CampaignEditor | Stop reversing levels in CampaignEditor
Campaign saves started being reversed, and removing this
code brings it back to "normal".
| CoffeeScript | mit | jeremiahyan/codecombat,codecombat/codecombat,codecombat/codecombat,javatlacati/codecombat,javatlacati/codecombat,codecombat/codecombat,javatlacati/codecombat,jeremiahyan/codecombat,kidaa/codecombat,jeremiahyan/codecombat,kidaa/codecombat,codecombat/codecombat,kidaa/codecombat,codecombat/codecombat,javatlacati/codecomba... | coffeescript | ## Code Before:
ModalView = require 'views/core/ModalView'
template = require 'templates/editor/campaign/save-campaign-modal'
DeltaView = require 'views/editor/DeltaView'
module.exports = class SaveCampaignModal extends ModalView
id: 'save-campaign-modal'
template: template
plain: true
events:
'click #sav... | ModalView = require 'views/core/ModalView'
template = require 'templates/editor/campaign/save-campaign-modal'
DeltaView = require 'views/editor/DeltaView'
module.exports = class SaveCampaignModal extends ModalView
id: 'save-campaign-modal'
template: template
plain: true
events:
'clic... | 13 | 0.317073 | 0 | 13 |
94309c8532f31df72a0e407dfe3b87b6a53e927c | index.js | index.js | try {
/**
* Try loading the compiled code.
*/
module.exports = require('./lib').default
} catch (e) {
/**
* If the compiled code is not available,
* load from source.
*/
try {
require('babel-register')({
only: /(sagui\/src)/
})
module.exports = require('./src').default
} catc... | try {
/**
* Try loading the compiled code.
*/
module.exports = require('./lib').default
} catch (e) {
console.log('Unable to load compiled code.')
console.log(e)
console.log('Attempting to load source.')
/**
* If the compiled code is not available,
* load from source.
*/
try {
require(... | Improve logging on loading source 👻 | Improve logging on loading source 👻 | JavaScript | mit | saguijs/sagui,saguijs/sagui | javascript | ## Code Before:
try {
/**
* Try loading the compiled code.
*/
module.exports = require('./lib').default
} catch (e) {
/**
* If the compiled code is not available,
* load from source.
*/
try {
require('babel-register')({
only: /(sagui\/src)/
})
module.exports = require('./src').... | try {
/**
* Try loading the compiled code.
*/
module.exports = require('./lib').default
} catch (e) {
+ console.log('Unable to load compiled code.')
+ console.log(e)
+ console.log('Attempting to load source.')
+
/**
* If the compiled code is not available,
* load from source.
... | 4 | 0.2 | 4 | 0 |
761a373afe7439c1a46ff7ac10990d66d4c2bc26 | bindings/ruby/openwsman/xmldoc.rb | bindings/ruby/openwsman/xmldoc.rb |
module Openwsman
class XmlDoc
def method_missing method, *args
self.body.send method,*args
end
end
end
| module Openwsman
class XmlDoc
#
# Assume XmlDoc.foo means XmlDoc.body.foo
#
def method_missing method, *args
self.body.send method,*args
end
end
end
| Move comment to right indent | Move comment to right indent
| Ruby | bsd-3-clause | kolbma/openwsman,kkaempf/openwsman,kolbma/openwsman,vcrhonek/openwsman,vcrhonek/openwsman,kolbma/openwsman,kkaempf/openwsman,kolbma/openwsman,kkaempf/openwsman,kolbma/openwsman,Openwsman/openwsman,Openwsman/openwsman,kolbma/openwsman,vcrhonek/openwsman,Openwsman/openwsman,kkaempf/openwsman,kkaempf/openwsman,kkaempf/ope... | ruby | ## Code Before:
module Openwsman
class XmlDoc
def method_missing method, *args
self.body.send method,*args
end
end
end
## Instruction:
Move comment to right indent
## Code After:
module Openwsman
class XmlDoc
#
# Assume XmlDoc.foo means XmlDoc.body.foo
#
def method_missing method,... | -
module Openwsman
class XmlDoc
+ #
+ # Assume XmlDoc.foo means XmlDoc.body.foo
+ #
def method_missing method, *args
self.body.send method,*args
end
end
end | 4 | 0.5 | 3 | 1 |
48191ab3d30c4cf0191945d469ed9b4cdbfaaa02 | playbooks/biovel/workflows/drw.yaml | playbooks/biovel/workflows/drw.yaml | ---
- hosts: taverna-server
sudo: yes
tasks:
- name: Find Taverna Command Line lib directory
shell: /bin/ls -d {{taverna_server_install}}/WEB-INF/classes/util/taverna-commandline-2.*/lib
register: taverna_server_cl_lib
- name: Install JSON-simple JAR
get_url: url=http://json-simple.google... | ---
- hosts: taverna-server
sudo: yes
tasks:
- name: Find Taverna Command Line lib directory
shell: /bin/ls -d {{taverna_server_install}}/WEB-INF/classes/util/taverna-commandline-2.*/lib
register: taverna_server_cl_lib
- name: Install JSON-simple JAR
get_url: url=http://json-simple.google... | Add DRW uber-JAR to Taverna Command line libs | Add DRW uber-JAR to Taverna Command line libs
| YAML | apache-2.0 | scman1/ansible-portal,BioVeL/ansible-playbooks | yaml | ## Code Before:
---
- hosts: taverna-server
sudo: yes
tasks:
- name: Find Taverna Command Line lib directory
shell: /bin/ls -d {{taverna_server_install}}/WEB-INF/classes/util/taverna-commandline-2.*/lib
register: taverna_server_cl_lib
- name: Install JSON-simple JAR
get_url: url=http://js... | ---
- hosts: taverna-server
sudo: yes
tasks:
- name: Find Taverna Command Line lib directory
shell: /bin/ls -d {{taverna_server_install}}/WEB-INF/classes/util/taverna-commandline-2.*/lib
register: taverna_server_cl_lib
- name: Install JSON-simple JAR
get_url: url=http:... | 4 | 0.266667 | 4 | 0 |
2d49a53623dbb9bf75a668b9ef8be3845bef4f6b | lib/logstash/filters/uaparser.rb | lib/logstash/filters/uaparser.rb | require "logstash/filters/base"
require "logstash/namespace"
# This filter can parse user agent strings in to structured data
class LogStash::Filters::UAParser < LogStash::Filters::Base
config_name "uaparser"
plugin_status "experimental"
# The field containing the user agent string to parse
config :field, :va... | require "logstash/filters/base"
require "logstash/namespace"
# This filter can parse user agent strings in to structured data
class LogStash::Filters::UAParser < LogStash::Filters::Base
config_name "uaparser"
plugin_status "experimental"
# The field containing the user agent string to parse
config :field, :va... | Allow updating the regexes.yaml out of band. | Allow updating the regexes.yaml out of band.
Add configuration to allow using a regexes.yaml other than the
one shipped in user_agent_parser. Updated files can be found at
https://github.com/tobie/ua-parser
| Ruby | apache-2.0 | Aloomaio/logstash-kafka,opentable/logstash-kafka,joekiller/logstash-kafka,joekiller/logstash-kafka,opentable/logstash-kafka,tinglinux/logstash-kafka,Aloomaio/logstash-kafka,tinglinux/logstash-kafka | ruby | ## Code Before:
require "logstash/filters/base"
require "logstash/namespace"
# This filter can parse user agent strings in to structured data
class LogStash::Filters::UAParser < LogStash::Filters::Base
config_name "uaparser"
plugin_status "experimental"
# The field containing the user agent string to parse
co... | require "logstash/filters/base"
require "logstash/namespace"
# This filter can parse user agent strings in to structured data
class LogStash::Filters::UAParser < LogStash::Filters::Base
config_name "uaparser"
plugin_status "experimental"
# The field containing the user agent string to parse
... | 13 | 0.254902 | 12 | 1 |
8b8224ecaf7ed8cfbe1a205b43c3402aabc1653f | test/misc.nim | test/misc.nim | import unittest, nre, optional_t.nonstrict
suite "Misc tests":
test "unicode":
check("".find(re("", "8")).match == "")
check("перевірка".replace(re(r"\w", "uW"), "") == "")
| import unittest, nre, strutils, optional_t.nonstrict
suite "Misc tests":
test "unicode":
check("".find(re("", "8")).match == "")
check("перевірка".replace(re(r"\w", "uW"), "") == "")
test "empty or non-empty match":
check("abc".findall(re"|.").join(":") == ":a::b::c:")
check("abc".findall(re".|").... | Add tests for empty or non-empty match | Add tests for empty or non-empty match
| Nimrod | mit | nanoant/Nim,nafsaka/Nim,mbaulch/Nim,jsanjuas/Nim,haiodo/Nim,sferik/Nim,endragor/Nim,jsanjuas/Nim,tulayang/Nim,Senketsu/Nim,nanoant/Nim,reactormonk/nim,nafsaka/Nim,sarvex/Nim-lang,judofyr/Nim,nimLuckyBull/Nim,fmamud/Nim,Senketsu/Nim,fredericksilva/Nim,xland/Nim,haiodo/Nim,zachaysan/Nim,msmith491/Nim,sferik/Nim,Salafit/N... | nimrod | ## Code Before:
import unittest, nre, optional_t.nonstrict
suite "Misc tests":
test "unicode":
check("".find(re("", "8")).match == "")
check("перевірка".replace(re(r"\w", "uW"), "") == "")
## Instruction:
Add tests for empty or non-empty match
## Code After:
import unittest, nre, strutils, optional_t.nonst... | - import unittest, nre, optional_t.nonstrict
+ import unittest, nre, strutils, optional_t.nonstrict
? ++++++++++
suite "Misc tests":
test "unicode":
check("".find(re("", "8")).match == "")
check("перевірка".replace(re(r"\w", "uW"), "") == "")
+
+ test "empty or non-empty m... | 12 | 2 | 11 | 1 |
70f6d23622a7cfe8754f8c61b336a6c1c8782691 | container/GE-cluster-create.sh | container/GE-cluster-create.sh |
NAME=gridengine
SCRIPTS_DIR=/home/ubuntu/config-tools
CONFIG_TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# create the GE cluster on the cloud platform
elasticluster start $NAME
first=yes
for host in `elasticluster list-nodes gridengine | grep " -" | cut -d'-' -f2`; do
echo "installing packages on ... |
NAME=gridengine
SCRIPTS_DIR=/home/ubuntu/config-tools
CONFIG_TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# create the GE cluster on the cloud platform
elasticluster start $NAME
first=yes
for host in `elasticluster list-nodes gridengine | grep " -" | cut -d'-' -f2`; do
echo "installing packages on ... | Change the GE shell from csh to bash. | Change the GE shell from csh to bash.
| Shell | apache-2.0 | manuelesimi/elasticluster-config-tools | shell | ## Code Before:
NAME=gridengine
SCRIPTS_DIR=/home/ubuntu/config-tools
CONFIG_TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# create the GE cluster on the cloud platform
elasticluster start $NAME
first=yes
for host in `elasticluster list-nodes gridengine | grep " -" | cut -d'-' -f2`; do
echo "install... |
NAME=gridengine
SCRIPTS_DIR=/home/ubuntu/config-tools
CONFIG_TOOLS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# create the GE cluster on the cloud platform
elasticluster start $NAME
first=yes
for host in `elasticluster list-nodes gridengine | grep " -" | cut -d'-' -f2`; do
echo "i... | 8 | 0.296296 | 8 | 0 |
63ee70586791c940a1e234a158c2f8529d0a3319 | includes/note-done.php | includes/note-done.php | <?php
if(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
$noteId = $_POST['noteId'];
require_once 'db-connect.inc.php';
$db = ConnectDb();
$stmt = $db->prepare('UPDATE note SET NoteComplete = 1 WHERE NoteId = :id');
$stmt->execute(arr... | <?php
if(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
$noteId = $_POST['noteId'];
$complete = $_POST['complete'];
require_once 'db-connect.inc.php';
$db = ConnectDb();
if($complete == 1) {
$stmt = $db->prepare('UPDATE note SET ... | Change to handle marking the note as active in the database | Change to handle marking the note as active in the database
| PHP | mit | lukecahill/Note-keeper,lukecahill/Note-keeper,lukecahill/Note-keeper | php | ## Code Before:
<?php
if(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
$noteId = $_POST['noteId'];
require_once 'db-connect.inc.php';
$db = ConnectDb();
$stmt = $db->prepare('UPDATE note SET NoteComplete = 1 WHERE NoteId = :id');
$s... | <?php
if(($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['noteId']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
$noteId = $_POST['noteId'];
+ $complete = $_POST['complete'];
require_once 'db-connect.inc.php';
$db = ConnectDb();
+
+ if($complete == 1) {
- $stmt = $db->prep... | 11 | 0.733333 | 9 | 2 |
cea281599fd9fb314a6017287a41fb07ecfdd7a1 | src/cartel.cr | src/cartel.cr | require "./cartel/*"
require "http/server"
module Cartel
view_handler = ViewHandler.new(File.join(__DIR__, "views"))
server = HTTP::Server.new(8080) do |request|
case request.path
when "/"
HTTP::Response.ok "text/html", view_handler.load("index.html")
else
HTTP:... | require "./cartel/*"
require "http/server"
module Cartel
view_handler = ViewHandler.new(File.join(__DIR__, "views"))
server = HTTP::Server.new(8080) do |request|
puts "[#{request.method}] #{request.path}"
case request.path
when "/"
HTTP::Response.ok "text/html", view_handl... | Print requests to the console | Print requests to the console
| Crystal | mit | maxdeviant/cartel | crystal | ## Code Before:
require "./cartel/*"
require "http/server"
module Cartel
view_handler = ViewHandler.new(File.join(__DIR__, "views"))
server = HTTP::Server.new(8080) do |request|
case request.path
when "/"
HTTP::Response.ok "text/html", view_handler.load("index.html")
else
... | require "./cartel/*"
require "http/server"
module Cartel
view_handler = ViewHandler.new(File.join(__DIR__, "views"))
server = HTTP::Server.new(8080) do |request|
+ puts "[#{request.method}] #{request.path}"
+
case request.path
when "/"
HTTP::Response.ok... | 2 | 0.111111 | 2 | 0 |
5af67302f33b5682def9755e36179dac317bd7e1 | README.md | README.md | This project is based on angular-seed
# Drupal 8 Rest AngularJS
This project tries to reimplement the Bartik theme from Drupal 8 as an AngularJS webapplication communicating with Drupal through ReST
## Getting Started
All dependencies are managed with npm and bower. To start clone this repository and run:
```bash
... | This project is based on angular-seed
# Drupal 8 Rest AngularJS
This project tries to reimplement the Bartik theme from Drupal 8 as an AngularJS webapplication communicating with Drupal through ReST
## Getting Started
All dependencies are managed with npm and bower. To start clone this repository and run:
```bash
... | Extend default views with 'Rest export' display. | Extend default views with 'Rest export' display.
| Markdown | mit | clemens-tolboom/drupal-8-rest-angularjs,clemens-tolboom/drupal-8-rest-angularjs | markdown | ## Code Before:
This project is based on angular-seed
# Drupal 8 Rest AngularJS
This project tries to reimplement the Bartik theme from Drupal 8 as an AngularJS webapplication communicating with Drupal through ReST
## Getting Started
All dependencies are managed with npm and bower. To start clone this repository an... | This project is based on angular-seed
# Drupal 8 Rest AngularJS
This project tries to reimplement the Bartik theme from Drupal 8 as an AngularJS webapplication communicating with Drupal through ReST
## Getting Started
All dependencies are managed with npm and bower. To start clone this repository ... | 6 | 0.162162 | 5 | 1 |
0b273ace2c3681814c9ca799f12482d99c27c015 | src/schema/rpc.js | src/schema/rpc.js | 'use strict';
const { reduceAsync, identity } = require('../utilities');
const { rpcHandlers } = require('../rpc');
// Returns a reducer function that takes the schema as input and output,
// and iterate over rpc-specific reduce functions
const getRpcReducer = function (name, postProcess) {
const processors = getPr... | 'use strict';
const { reduceAsync, identity } = require('../utilities');
const { rpcHandlers } = require('../rpc');
// Reducer function that takes the schema as input and output,
// and iterate over rpc-specific reduce functions
const rpcReducer = function ({ schema, processors, postProcess = identity }) {
return r... | Fix function names being lost in binding | Fix function names being lost in binding
| JavaScript | apache-2.0 | autoserver-org/autoserver,autoserver-org/autoserver | javascript | ## Code Before:
'use strict';
const { reduceAsync, identity } = require('../utilities');
const { rpcHandlers } = require('../rpc');
// Returns a reducer function that takes the schema as input and output,
// and iterate over rpc-specific reduce functions
const getRpcReducer = function (name, postProcess) {
const pr... | 'use strict';
const { reduceAsync, identity } = require('../utilities');
const { rpcHandlers } = require('../rpc');
- // Returns a reducer function that takes the schema as input and output,
? ----------
+ // Reducer function that takes the schema as input and output,
// and iterate over rpc-specific... | 36 | 0.9 | 18 | 18 |
4ff046dda32556caadd4cbcc3edefadf56661ee2 | ccf/src/main/scala/ccf/transport/http/HttpConnection.scala | ccf/src/main/scala/ccf/transport/http/HttpConnection.scala | package ccf.transport.http
import java.io.IOException
import java.net.URL
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.{DefaultHttpClient, BasicResponseHandler}
import org.apache.http.params.HttpConnectionParams
class HttpConnection(url:... | package ccf.transport.http
import java.io.IOException
import java.net.URL
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.{DefaultHttpClient, BasicResponseHandler}
import org.apache.http.params.HttpConnectionParams
import ccf.transport.json... | Implement HttpClient using Dispath HTTP library | transport: Implement HttpClient using Dispath HTTP library
Signed-off-by: Harri Salokorpi <eefb23b8deb8c30dca252cd0ae751b67337dc69f@reaktor.fi>
Signed-off-by: Karim Osman <94396faf6cc817be76165477038b3cfa832e89a4@reaktor.fi>
| Scala | apache-2.0 | akisaarinen/ccf,akisaarinen/ccf | scala | ## Code Before:
package ccf.transport.http
import java.io.IOException
import java.net.URL
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.{DefaultHttpClient, BasicResponseHandler}
import org.apache.http.params.HttpConnectionParams
class Htt... | package ccf.transport.http
import java.io.IOException
import java.net.URL
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.{DefaultHttpClient, BasicResponseHandler}
import org.apache.http.params.HttpConnectionParams
+ imp... | 15 | 0.5 | 14 | 1 |
c304ae40299e9f64973534b7fe311d71df78d676 | vagrant/provisioning/setup-k8s-minion.sh | vagrant/provisioning/setup-k8s-minion.sh | XTRACE=$(set +o | grep xtrace)
set -o xtrace
# args
# $1: IP of master host
MASTER_IP=$1
echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh
# Install CNI
pushd ~/
wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz
popd
sudo mkdir -p /opt/cni/bin
pushd /opt/cni/bin
sudo tar xvzf... | XTRACE=$(set +o | grep xtrace)
set -o xtrace
# args
# $1: IP of master host
MASTER_IP=$1
echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh
# Install CNI
pushd ~/
wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz
popd
sudo mkdir -p /opt/cni/bin
pushd /opt/cni/bin
sudo ta... | Update CNI to the latest version. | vagrant: Update CNI to the latest version.
Kubernetes 1.6 expects a newer CNI.
Also, the --network-plugin-dir does not work with
k8s 1.6.
Signed-off-by: Gurucharan Shetty <a1872e333d0e52644f6125da2276530f7ebe5e77@ovn.org>
| Shell | apache-2.0 | shettyg/ovn-kubernetes,shettyg/ovn-kubernetes,shettyg/ovn-kubernetes | shell | ## Code Before:
XTRACE=$(set +o | grep xtrace)
set -o xtrace
# args
# $1: IP of master host
MASTER_IP=$1
echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh
# Install CNI
pushd ~/
wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz
popd
sudo mkdir -p /opt/cni/bin
pushd /opt/cni/b... | XTRACE=$(set +o | grep xtrace)
set -o xtrace
# args
# $1: IP of master host
MASTER_IP=$1
echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh
# Install CNI
pushd ~/
- wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz
? ... | 7 | 0.233333 | 4 | 3 |
137ded021bb52ff6fec803a47b01f2092c62d477 | articles/_posts/2012-10-17-webgl-post-processing.md | articles/_posts/2012-10-17-webgl-post-processing.md | ---
title: Image and Video Post-Processing with WebGL
authors:
- nicolas-belmonte
layout: article
--- | ---
title: Image and Video Post-Processing with WebGL
authors:
- nicolas-belmonte
intro: 'This article looks at what image post-processing is and how to use the raw WebGL API to apply real-time post-processing effects to images and other media like video, canvas, etc.'
layout: article
--- | Add intro for article “Image and Video Post-Processing with WebGL” | Add intro for article “Image and Video Post-Processing with WebGL”
Ref. #19.
| Markdown | apache-2.0 | payeldillip/devopera,initaldk/devopera,Mtmotahar/devopera,simevidas/devopera,erikmaarten/devopera,SelenIT/devopera,kenarai/devopera,erikmaarten/devopera,michaelstewart/devopera,payeldillip/devopera,shwetank/devopera,operasoftware/devopera,payeldillip/devopera,paulirish/devopera,SelenIT/devopera,Mtmotahar/devopera,micha... | markdown | ## Code Before:
---
title: Image and Video Post-Processing with WebGL
authors:
- nicolas-belmonte
layout: article
---
## Instruction:
Add intro for article “Image and Video Post-Processing with WebGL”
Ref. #19.
## Code After:
---
title: Image and Video Post-Processing with WebGL
authors:
- nicolas-belmonte
intro: 'Th... | ---
title: Image and Video Post-Processing with WebGL
authors:
- nicolas-belmonte
+ intro: 'This article looks at what image post-processing is and how to use the raw WebGL API to apply real-time post-processing effects to images and other media like video, canvas, etc.'
layout: article
--- | 1 | 0.166667 | 1 | 0 |
3190b8266777aeca3b29bc0f82cf663c40f1380d | .travis.yml | .travis.yml | sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
branches:
only:
... | dist: trusty
sudo: false
group: beta
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: t... | Switch to the new Ubuntu Trusty containers on Travis | Switch to the new Ubuntu Trusty containers on Travis
ref: https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/
| YAML | mit | GoodRx/attrs_sqlalchemy | yaml | ## Code Before:
sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
branc... | + dist: trusty
sudo: false
+ group: beta
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
... | 2 | 0.074074 | 2 | 0 |
c904b9365f0b568423103efcfcd0185773bad1f3 | src/BloomBrowserUI/Readium/bloomReadiumTweaks.css | src/BloomBrowserUI/Readium/bloomReadiumTweaks.css | /* These rules hide some Readium controls.
- aboutButt1 hides a button displaying Readium which brings up an About box.
- #btn-expand-audio hides a button with various audio controls. We might want the volume control...then need to think about saving the setting...and hiding less useful controls
- .icon-sha... | /* These rules hide some Readium controls.
- aboutButt1 hides a button displaying Readium which brings up an About box.
- #btn-expand-audio hides a button with various audio controls. We might want the volume control...then need to think about saving the setting...and hiding less useful controls
- .icon-sha... | Simplify Readium preview of ePUBs (BL-7310) | Simplify Readium preview of ePUBs (BL-7310)
| CSS | mit | gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/Bloom... | css | ## Code Before:
/* These rules hide some Readium controls.
- aboutButt1 hides a button displaying Readium which brings up an About box.
- #btn-expand-audio hides a button with various audio controls. We might want the volume control...then need to think about saving the setting...and hiding less useful controls... | /* These rules hide some Readium controls.
- aboutButt1 hides a button displaying Readium which brings up an About box.
- #btn-expand-audio hides a button with various audio controls. We might want the volume control...then need to think about saving the setting...and hiding less useful controls
- .... | 6 | 0.545455 | 5 | 1 |
9258122be0d40784d07208796b9827def84f08e5 | Casks/libreoffice.rb | Casks/libreoffice.rb | class Libreoffice < Cask
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
homepage 'http://www.libreoffice.org/'
version '4.2.3'
sha256 'b54917f4784b17c2c6a0778559f3f9de03480bc4528b181681336d9cc2dba904'
link 'LibreOffice.app'
end
| class Libreoffice < Cask
if Hardware::CPU.is_64_bit? && OS::Mac.version >= '10.8'
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
sha256 'b54917f4784b17c2c6a0778559f3f9de03480bc4528b181681336d9cc2dba904'
else
url 'http://download.docume... | Fix LibreOffice cask for older OS X versions | Fix LibreOffice cask for older OS X versions
| Ruby | bsd-2-clause | morsdyce/homebrew-cask,muan/homebrew-cask,seanorama/homebrew-cask,winkelsdorf/homebrew-cask,tedbundyjr/homebrew-cask,cfillion/homebrew-cask,mattfelsen/homebrew-cask,victorpopkov/homebrew-cask,squid314/homebrew-cask,johnjelinek/homebrew-cask,xight/homebrew-cask,crmne/homebrew-cask,kkdd/homebrew-cask,flada-auxv/homebrew-... | ruby | ## Code Before:
class Libreoffice < Cask
url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
homepage 'http://www.libreoffice.org/'
version '4.2.3'
sha256 'b54917f4784b17c2c6a0778559f3f9de03480bc4528b181681336d9cc2dba904'
link 'LibreOffice.app'
e... | class Libreoffice < Cask
+ if Hardware::CPU.is_64_bit? && OS::Mac.version >= '10.8'
- url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x86-64.dmg'
+ url 'http://download.documentfoundation.org/libreoffice/stable/4.2.3/mac/x86_64/LibreOffice_4.2.3_MacOS_x8... | 10 | 1.428571 | 8 | 2 |
743f4444313a64779d30f85c1654909b6af09d7f | FigmaKit.playgroundbook/Edits/UserEdits.diffpack/UserModules/FigmaKit.playgroundmodule/Sources/Node-BooleanOperation.swift | FigmaKit.playgroundbook/Edits/UserEdits.diffpack/UserModules/FigmaKit.playgroundmodule/Sources/Node-BooleanOperation.swift | extension Node {
public final class BooleanOperation: Vector {
let operation: Operation
enum Operation: String, Decodable {
case union = "UNION"
case intersect = "INTERSECT"
case subtract = "SUBTRACT"
case exclude = "EXCLUDE"
}
... | extension Node {
public final class BooleanOperation: Vector {
let booleanOperation: Operation
enum Operation: String, Decodable {
case union = "UNION"
case intersect = "INTERSECT"
case subtract = "SUBTRACT"
case exclude = "EXCLUDE"
}
... | Fix typo in boolean operation property. | Fix typo in boolean operation property. | Swift | apache-2.0 | jverkoey/FigmaKit | swift | ## Code Before:
extension Node {
public final class BooleanOperation: Vector {
let operation: Operation
enum Operation: String, Decodable {
case union = "UNION"
case intersect = "INTERSECT"
case subtract = "SUBTRACT"
case exclude = "EXCLUDE"
}
... | extension Node {
public final class BooleanOperation: Vector {
- let operation: Operation
+ let booleanOperation: Operation
? + ++++++
enum Operation: String, Decodable {
case union = "UNION"
case intersect = "INTERSECT"
case subtr... | 8 | 0.242424 | 4 | 4 |
303384ff5345e08dfd50ef78871742f0dd2903b6 | src/main/python/pgshovel/utilities/__init__.py | src/main/python/pgshovel/utilities/__init__.py | import importlib
import sys
from contextlib import contextmanager
def load(path):
"""
Loads a module member from a lookup path (using ``path.to.module:member``
syntax.)
"""
module, name = path.split(':')
return getattr(importlib.import_module(module), name)
@contextmanager
def import_extras(... | import importlib
import operator
import sys
from contextlib import contextmanager
def load(path):
"""
Loads a module member from a lookup path.
Paths are composed of two sections: a module path, and an attribute path,
separated by a colon.
For example::
>>> from pgshovel.utilities impor... | Allow deep attribute access in dynamic loading utility. | Allow deep attribute access in dynamic loading utility.
Summary:
This will help for parameterizing access to methods of singleton
objects, such as the `msgpack` codec:
>>> from pgshovel.utilities import load
>>> load('pgshovel.contrib.msgpack:codec.decode')
<bound method MessagePackCodec.decode of <pgshov... | Python | apache-2.0 | fuziontech/pgshovel,disqus/pgshovel,fuziontech/pgshovel,disqus/pgshovel,fuziontech/pgshovel | python | ## Code Before:
import importlib
import sys
from contextlib import contextmanager
def load(path):
"""
Loads a module member from a lookup path (using ``path.to.module:member``
syntax.)
"""
module, name = path.split(':')
return getattr(importlib.import_module(module), name)
@contextmanager
de... | import importlib
+ import operator
import sys
from contextlib import contextmanager
def load(path):
"""
- Loads a module member from a lookup path (using ``path.to.module:member``
- syntax.)
+ Loads a module member from a lookup path.
+
+ Paths are composed of two sections: a module... | 18 | 0.391304 | 14 | 4 |
a37cb7bfdf872d457bbce63d1da55c1ba715598d | README.md | README.md |
GURPS Character Sheet (GCS) is a stand-alone, interactive, character sheet editor that allows you to build characters
for the [GURPS 4<sup>th</sup> Edition](http://www.sjgames.com/gurps) roleplaying game system.
<hr>
## Branches
### v4-java
This is the current v4.37.1 release branch. You can access it [here](https... |
GURPS Character Sheet (GCS) is a stand-alone, interactive, character sheet editor that allows you to build characters
for the [GURPS 4<sup>th</sup> Edition](http://www.sjgames.com/gurps) roleplaying game system.
<hr>
## Branches
### v4-java
This is the current v4.37.1 release branch. You can access it [here](https... | Update link for switch to milestone usage on github | Update link for switch to milestone usage on github
| Markdown | mpl-2.0 | richardwilkes/gcs,richardwilkes/gcs | markdown | ## Code Before:
GURPS Character Sheet (GCS) is a stand-alone, interactive, character sheet editor that allows you to build characters
for the [GURPS 4<sup>th</sup> Edition](http://www.sjgames.com/gurps) roleplaying game system.
<hr>
## Branches
### v4-java
This is the current v4.37.1 release branch. You can access... |
GURPS Character Sheet (GCS) is a stand-alone, interactive, character sheet editor that allows you to build characters
for the [GURPS 4<sup>th</sup> Edition](http://www.sjgames.com/gurps) roleplaying game system.
<hr>
## Branches
### v4-java
This is the current v4.37.1 release branch. You can ... | 2 | 0.095238 | 1 | 1 |
a4a788c87304dae585378392dd380d3368cb9214 | src/Invokation.php | src/Invokation.php | <?php
namespace oopapi;
class Invokation extends RequestHandler {
const CLASS_VARIABLE = '__CLASS__';
private $class;
public function __construct(RequestHandler $successor = NULL) {
parent::__construct($successor);
$this->class = $_POST[self::CLASS_VARIABLE];
}
publi... | <?php
namespace oopapi;
class Invokation extends RequestHandler {
const CLASS_VARIABLE = '__CLASS__';
protected $class;
public function __construct(RequestHandler $successor = NULL) {
parent::__construct($successor);
$this->class = $_POST[self::CLASS_VARIABLE];
}
pro... | Change property visibility, use NonInvokableException | Change property visibility, use NonInvokableException | PHP | mit | dmytro-lebedev/oopapi | php | ## Code Before:
<?php
namespace oopapi;
class Invokation extends RequestHandler {
const CLASS_VARIABLE = '__CLASS__';
private $class;
public function __construct(RequestHandler $successor = NULL) {
parent::__construct($successor);
$this->class = $_POST[self::CLASS_VARIABLE];
}
pu... | <?php
namespace oopapi;
class Invokation extends RequestHandler {
const CLASS_VARIABLE = '__CLASS__';
- private $class;
? ^^^
+ protected $class;
? ^ ++++
public function __construct(RequestHandler $successor = NULL) {
parent::__construct($successor);
... | 11 | 0.611111 | 8 | 3 |
0f9519f7413a818fbadc123a67a14026a8b4484e | .gitlab-ci.yml | .gitlab-ci.yml | stages:
- test
trigger-ext-u:
stage: test
script:
- "curl -X POST -F token=$REPO_TOKEN -F ref=master -F variables[JOB_TYPE]=$JOB_TYPE -F variables[INITIATOR]=$GITLAB_USER_LOGIN -F variables[COMMIT]=$CI_COMMIT_SHORT_SHA -F variables[BRANCH]=$CI_COMMIT_REF_NAME $REPO_URL"
tags:
- docker
- ghidratest
... | stages:
- test
trigger-ext-u:
stage: test
script:
- "curl --with-ca-bundle=variables[CI_SERVER_TLS_CA_FILE] -X POST -F token=$REPO_TOKEN -F ref=master -F variables[JOB_TYPE]=$JOB_TYPE -F variables[INITIATOR]=$GITLAB_USER_LOGIN -F variables[COMMIT]=$CI_COMMIT_SHORT_SHA -F variables[BRANCH]=$CI_COMMIT_REF_NAME... | Use NeoForge CA certs for curl usage estabished by git-runner | Use NeoForge CA certs for curl usage estabished by git-runner | YAML | apache-2.0 | NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra,NationalSecurityAgency/ghidra | yaml | ## Code Before:
stages:
- test
trigger-ext-u:
stage: test
script:
- "curl -X POST -F token=$REPO_TOKEN -F ref=master -F variables[JOB_TYPE]=$JOB_TYPE -F variables[INITIATOR]=$GITLAB_USER_LOGIN -F variables[COMMIT]=$CI_COMMIT_SHORT_SHA -F variables[BRANCH]=$CI_COMMIT_REF_NAME $REPO_URL"
tags:
- docker
... | stages:
- test
trigger-ext-u:
stage: test
script:
- - "curl -X POST -F token=$REPO_TOKEN -F ref=master -F variables[JOB_TYPE]=$JOB_TYPE -F variables[INITIATOR]=$GITLAB_USER_LOGIN -F variables[COMMIT]=$CI_COMMIT_SHORT_SHA -F variables[BRANCH]=$CI_COMMIT_REF_NAME $REPO_URL"
+ - "curl --with-ca-... | 2 | 0.181818 | 1 | 1 |
e2765ea0bc85010bb9413c4cad79c4d0552ce3c6 | app/models/concerns/content_type.rb | app/models/concerns/content_type.rb | module Concerns
module ContentType
extend ActiveSupport::Concern
def column
::ContentColumn.where(content_type: self.class.name, content_id: id).take
end
end
end
| module Concerns
module ContentType
extend ActiveSupport::Concern
included do
after_save -> { column.touch if column.present? }
end
def column
::ContentColumn.where(content_type: self.class.name, content_id: id).take
end
end
end
| Make sure content types update their column. | Make sure content types update their column.
| Ruby | mit | udongo/udongo,udongo/udongo,udongo/udongo | ruby | ## Code Before:
module Concerns
module ContentType
extend ActiveSupport::Concern
def column
::ContentColumn.where(content_type: self.class.name, content_id: id).take
end
end
end
## Instruction:
Make sure content types update their column.
## Code After:
module Concerns
module ContentType
... | module Concerns
module ContentType
extend ActiveSupport::Concern
+
+ included do
+ after_save -> { column.touch if column.present? }
+ end
def column
::ContentColumn.where(content_type: self.class.name, content_id: id).take
end
end
end | 4 | 0.444444 | 4 | 0 |
ce904ef75288b3a5203166f2f4fdbef708a59560 | .rtd-environment.yml | .rtd-environment.yml |
name: astropy
dependencies:
- python>=3
- numpy
- cython
- matplotlib
- scipy
- pillow
- pyyaml
- jinja2
- h5py
- scikit-image
- pandas
- pytz
- beautifulsoup4
- ipython
- mpmath
- pip:
- sphinx-gallery>=0.1.12
- jplephem
|
name: astropy
dependencies:
- python>=3
- numpy
- cython
- matplotlib
- scipy
- pillow
- pyyaml
- jinja2
- h5py
- scikit-image
- pandas
- pytz
- beautifulsoup4
- ipython
- mpmath
- pytest
- pip:
- sphinx-gallery>=0.1.12
- jplephem
| Include pytest as RTD dependency | Include pytest as RTD dependency
| YAML | bsd-3-clause | saimn/astropy,funbaker/astropy,pllim/astropy,dhomeier/astropy,saimn/astropy,DougBurke/astropy,funbaker/astropy,StuartLittlefair/astropy,astropy/astropy,pllim/astropy,StuartLittlefair/astropy,StuartLittlefair/astropy,lpsinger/astropy,aleksandr-bakanov/astropy,DougBurke/astropy,MSeifert04/astropy,stargaser/astropy,starga... | yaml | ## Code Before:
name: astropy
dependencies:
- python>=3
- numpy
- cython
- matplotlib
- scipy
- pillow
- pyyaml
- jinja2
- h5py
- scikit-image
- pandas
- pytz
- beautifulsoup4
- ipython
- mpmath
- pip:
- sphinx-gallery>=0.1.12
- jplephem
## Instruction:
Include pytest as RTD d... |
name: astropy
dependencies:
- python>=3
- numpy
- cython
- matplotlib
- scipy
- pillow
- pyyaml
- jinja2
- h5py
- scikit-image
- pandas
- pytz
- beautifulsoup4
- ipython
- mpmath
+ - pytest
- pip:
- sphinx-gallery>=0.1.12
- jplephem | 1 | 0.045455 | 1 | 0 |
a2232f1fb2146d91c588fecc6581fc9381f059a9 | Plugins/org.mitk.gui.qt.xnat/CMakeLists.txt | Plugins/org.mitk.gui.qt.xnat/CMakeLists.txt | project(org_mitk_gui_qt_xnat)
find_package(OpenSSL)
if( NOT OPENSSL_FOUND AND NOT SSL_EAY_RELEASE AND NOT LIB_EAY_RELEASE )
message( "Could not find OpenSSL, XNAT will not work for HTTPS connections. Please set the SSL_EAY_RELEASE and LIB_EAY_RELEASE CMake variables to the respective libraries." )
endif()
if( WIN3... | project(org_mitk_gui_qt_xnat)
if(WIN32)
set(MITK_OPENSSL_SSL_DLL "" CACHE FILEPATH "")
set(MITK_OPENSSL_CRYPTO_DLL "" CACHE FILEPATH "")
if(MITK_OPENSSL_SSL_DLL AND EXISTS "${MITK_OPENSSL_SSL_DLL}" AND MITK_OPENSSL_CRYPTO_DLL AND EXISTS "${MITK_OPENSSL_CRYPTO_DLL}")
foreach(config_type ${CMAKE_CONFIGURATION... | Fix copying/installing of OpenSSL for XNAT | Fix copying/installing of OpenSSL for XNAT
Use the following CMake cache variables on Windows to specify the location of both OpenSSL DLLs:
- MITK_OPENSSL_SSL_DLL
- MITK_OPENSSL_CRYPTO_DLL
| Text | bsd-3-clause | MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK | text | ## Code Before:
project(org_mitk_gui_qt_xnat)
find_package(OpenSSL)
if( NOT OPENSSL_FOUND AND NOT SSL_EAY_RELEASE AND NOT LIB_EAY_RELEASE )
message( "Could not find OpenSSL, XNAT will not work for HTTPS connections. Please set the SSL_EAY_RELEASE and LIB_EAY_RELEASE CMake variables to the respective libraries." )
e... | project(org_mitk_gui_qt_xnat)
- find_package(OpenSSL)
+ if(WIN32)
+ set(MITK_OPENSSL_SSL_DLL "" CACHE FILEPATH "")
+ set(MITK_OPENSSL_CRYPTO_DLL "" CACHE FILEPATH "")
- if( NOT OPENSSL_FOUND AND NOT SSL_EAY_RELEASE AND NOT LIB_EAY_RELEASE )
- message( "Could not find OpenSSL, XNAT will not work for HTTPS ... | 30 | 1.071429 | 14 | 16 |
2b245f47e110f4191cd394e32a7933ffc991152f | assets/javascripts/toc.js | assets/javascripts/toc.js | $(document).ready(function() {
var $toc = $('#toc');
function format (title) {
var $title = $(title),
txt = $title.text(),
id = $title.attr('id');
return "<li> <a href=#" + id + ">" + txt + "</a></li>";
}
// return;
if($toc.length) {
var $h3s = $('.container .col-md-9 :header');
... | $(document).ready(function() {
var $toc = $('#toc');
function format (item) {
if (item.children && item.children.length > 0) {
return "<li> <a href=#" + item.id + ">" + item.title + "</a><ul class='nav'>"
+ item.children.map(format).join('')
+ "</ul></li>";
} else {
return "<li>... | Fix problem with TOC and nested tags | Fix problem with TOC and nested tags
| JavaScript | epl-1.0 | jbtv/sparkling,chrisbetz/sparkling,cswaroop/sparkling,cswaroop/sparkling,gorillalabs/sparkling,chrisbetz/sparkling,antonoal/sparkling,chrisbetz/sparkling,cswaroop/sparkling,jbtv/sparkling,gorillalabs/sparkling,gorillalabs/sparkling,antonoal/sparkling,jbtv/sparkling,gorillalabs/sparkling,antonoal/sparkling,chrisbetz/spa... | javascript | ## Code Before:
$(document).ready(function() {
var $toc = $('#toc');
function format (title) {
var $title = $(title),
txt = $title.text(),
id = $title.attr('id');
return "<li> <a href=#" + id + ">" + txt + "</a></li>";
}
// return;
if($toc.length) {
var $h3s = $('.container .col-... | $(document).ready(function() {
var $toc = $('#toc');
- function format (title) {
? - -
+ function format (item) {
? +
- var $title = $(title),
- txt = $title.text(),
- id = $title.attr('id');
+ if (item.children && item.children.length > 0... | 52 | 2.363636 | 44 | 8 |
892457433b74999a6cb01bc4fa73255021820c1a | method-proxy.js | method-proxy.js | var MethodProxy = function(object, queue) {
this.init = function(object, queue) {
this.object = object;
for (var i = 0; i < queue.length; ++i) {
this.forward(queue[i]);
}
};
// payload : ['methodName', arguments*]
this.push = this.forward = function(payload) {
var methodName = payload.sh... | var MethodProxy = function(object, queue) {
this.init = function(object, queue) {
this.object = object;
for (var i = 0, len = queue.length; i < len; ++i) {
this.forward(queue[i]);
}
};
// payload : ['methodName', arguments*]
this.push = this.forward = function(payload) {
var methodName =... | Improve efficiency of queue loop | Improve efficiency of queue loop
This commit avoids a property lookup on every iteration of the
queue-consuming loop by first storing it in a variable, since we don't
expect the size of the array to change within the duration of the loop.
This will make the initialization slightly more efficient.
Change-Id: Ied891fd5... | JavaScript | mit | causes/method-proxy-js | javascript | ## Code Before:
var MethodProxy = function(object, queue) {
this.init = function(object, queue) {
this.object = object;
for (var i = 0; i < queue.length; ++i) {
this.forward(queue[i]);
}
};
// payload : ['methodName', arguments*]
this.push = this.forward = function(payload) {
var methodN... | var MethodProxy = function(object, queue) {
this.init = function(object, queue) {
this.object = object;
- for (var i = 0; i < queue.length; ++i) {
? ^ ^ ^
+ for (var i = 0, len = queue.length; i < len; ++i) {
? ^ ^^^ ^ +++++++++
this.for... | 2 | 0.076923 | 1 | 1 |
482a9c750380c3bc44a500cb210bf18ab51c09a8 | js/apps/system/aardvark/clusterFrontend/js/routers/startApp.js | js/apps/system/aardvark/clusterFrontend/js/routers/startApp.js | /*jslint indent: 2, nomen: true, maxlen: 100, white: true, */
/*global window, $, Backbone, document */
(function() {
"use strict";
$.get("cluster/amIDispatcher", function(data) {
if (!data) {
var url = window.location.origin;
url += window.location.pathname;
url = url.replace("cluster", "i... | /*jslint indent: 2, nomen: true, maxlen: 100, white: true, */
/*global window, $, Backbone, document */
(function() {
"use strict";
$.get("cluster/amIDispatcher", function(data) {
if (!data) {
var url = window.location.origin;
url += window.location.pathname;
url = url.replace("cluster", "i... | Fix relocation of hash information on startup of cluster interface | Fix relocation of hash information on startup of cluster interface
| JavaScript | apache-2.0 | nekulin/arangodb,razvanphp/arangodb,morsdatum/ArangoDB,nvoron23/arangodb,nvoron23/arangodb,abaditsegay/arangodb,nekulin/arangodb,morsdatum/ArangoDB,aurelijusb/arangodb,abaditsegay/arangodb,abaditsegay/arangodb,nvoron23/arangodb,kkdd/arangodb,nvoron23/arangodb,razvanphp/arangodb,kkdd/arangodb,morsdatum/ArangoDB,mujiansu... | javascript | ## Code Before:
/*jslint indent: 2, nomen: true, maxlen: 100, white: true, */
/*global window, $, Backbone, document */
(function() {
"use strict";
$.get("cluster/amIDispatcher", function(data) {
if (!data) {
var url = window.location.origin;
url += window.location.pathname;
url = url.repla... | /*jslint indent: 2, nomen: true, maxlen: 100, white: true, */
/*global window, $, Backbone, document */
(function() {
"use strict";
$.get("cluster/amIDispatcher", function(data) {
if (!data) {
var url = window.location.origin;
url += window.location.pathname;
url = url... | 4 | 0.111111 | 1 | 3 |
a95ba7dbf67dbbda1520002ddd3fcb8561d4a362 | test/test_libx6.cpp | test/test_libx6.cpp |
TEST_CASE("board present", "[get_num_devices]"){
SECTION("at least one board present"){
unsigned numDevices;
get_num_devices(&numDevices);
REQUIRE( numDevices >= 1);
}
}
TEST_CASE("board temperature is sane", "[get_logic_temperature]"){
connect_x6(0);
SECTION("reported temperature is between 20C and 70C... |
TEST_CASE("board present", "[get_num_devices]"){
SECTION("at least one board present"){
unsigned numDevices;
get_num_devices(&numDevices);
REQUIRE( numDevices >= 1);
}
}
TEST_CASE("board temperature is sane", "[get_logic_temperature]"){
connect_x6(0);
SECTION("reported temperature is between 20C and 70C... | Consolidate firmware version checks into single section | Consolidate firmware version checks into single section
Save connect/disconnect time
| C++ | apache-2.0 | BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6 | c++ | ## Code Before:
TEST_CASE("board present", "[get_num_devices]"){
SECTION("at least one board present"){
unsigned numDevices;
get_num_devices(&numDevices);
REQUIRE( numDevices >= 1);
}
}
TEST_CASE("board temperature is sane", "[get_logic_temperature]"){
connect_x6(0);
SECTION("reported temperature is bet... |
TEST_CASE("board present", "[get_num_devices]"){
SECTION("at least one board present"){
unsigned numDevices;
get_num_devices(&numDevices);
REQUIRE( numDevices >= 1);
}
}
TEST_CASE("board temperature is sane", "[get_logic_temperature]"){
connect_x6(0);
SECTION("reported te... | 20 | 0.4 | 6 | 14 |
b292df611945e15a852db01d61e3b9004307a244 | bot.py | bot.py | import os
import time
from crawl import crawl
import tweepy
class TwitterAPI:
"""
Class for accessing the Twitter API.
Requires API credentials to be available in environment
variables. These will be set appropriately if the bot was created
with init.sh included with the heroku-twitterbot-starter... | import os
import time
from crawl import crawl
import tweepy
class TwitterAPI:
"""
Class for accessing the Twitter API.
Requires API credentials to be available in environment
variables. These will be set appropriately if the bot was created
with init.sh included with the heroku-twitterbot-starter... | Speed up for a while | Speed up for a while
| Python | mit | gregsabo/only_keep_one,gregsabo/only_keep_one | python | ## Code Before:
import os
import time
from crawl import crawl
import tweepy
class TwitterAPI:
"""
Class for accessing the Twitter API.
Requires API credentials to be available in environment
variables. These will be set appropriately if the bot was created
with init.sh included with the heroku-tw... | import os
import time
from crawl import crawl
import tweepy
class TwitterAPI:
"""
Class for accessing the Twitter API.
Requires API credentials to be available in environment
variables. These will be set appropriately if the bot was created
with init.sh included with the... | 3 | 0.088235 | 2 | 1 |
6c82b742034cd6fce8754cdee1cb4e18f19aaab4 | spec/request_spec.rb | spec/request_spec.rb | require 'spec_helper'
describe "Example API", type: :apivore, order: :defined do
include Apivore::RspecHelpers
subject { Apivore::SwaggerChecker.instance_for("/swagger-doc.json") }
context "has valid paths" do
it "documents /services.json" do
expect(subject).to document(:get, "/services.json", 200)
... | require 'spec_helper'
describe "Example API", type: :apivore, order: :defined do
include Apivore::RspecHelpers
subject { Apivore::SwaggerChecker.instance_for("/swagger-doc.json") }
context "has valid paths" do
it "documents /services.json" do
expect(subject).to document(:get, "/services.json", 200)
... | Replace short form with descriptive test | Replace short form with descriptive test
| Ruby | apache-2.0 | hornc/apivore,ashoda/apivore,westfieldlabs/apivore | ruby | ## Code Before:
require 'spec_helper'
describe "Example API", type: :apivore, order: :defined do
include Apivore::RspecHelpers
subject { Apivore::SwaggerChecker.instance_for("/swagger-doc.json") }
context "has valid paths" do
it "documents /services.json" do
expect(subject).to document(:get, "/servi... | require 'spec_helper'
describe "Example API", type: :apivore, order: :defined do
include Apivore::RspecHelpers
subject { Apivore::SwaggerChecker.instance_for("/swagger-doc.json") }
context "has valid paths" do
it "documents /services.json" do
expect(subject).to document(:get, "... | 6 | 0.122449 | 4 | 2 |
63ee6f971b99c2f030e0347c37bc9577ba9ee7cd | getMenu.py | getMenu.py |
import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
# output = 'json'
# callback = 'None'
request = 'http://api.uwaterloo.ca/public/v1/'
def getMenu():
url = request + '?' + 'key=' + key + '&' + 'service=' + service
r = requests.get(url).text
return... | import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
def getMenu():
payload = {'key': key, 'service': service}
r = requests.get('http://api.uwaterloo.ca/public/v1/', params=payload)
return r.text
menu = getMenu()
ACCESS_KEY = os.environ.get('AWS_ACCES... | Allow requests module to correctly encode query parameters. | Allow requests module to correctly encode query parameters.
| Python | mit | alykhank/FoodMenu,alykhank/FoodMenu,alykhank/FoodMenu | python | ## Code Before:
import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
# output = 'json'
# callback = 'None'
request = 'http://api.uwaterloo.ca/public/v1/'
def getMenu():
url = request + '?' + 'key=' + key + '&' + 'service=' + service
r = requests.get(u... | -
import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
-
service = 'FoodMenu'
- # output = 'json'
- # callback = 'None'
- request = 'http://api.uwaterloo.ca/public/v1/'
def getMenu():
- url = request + '?' + 'key=' + key + '&' + 'service=' + service
- r = re... | 11 | 0.55 | 3 | 8 |
0eee4fb1e802f914faa74e51e31dfcd54ab1be18 | spec/ospec/runner.rb | spec/ospec/runner.rb | require 'ospec/phantom'
module MSpec
def self.opal_runner
@env = Object.new
@env.extend MSpec
end
end
class OSpecRunner
def self.main
@main ||= self.new
end
def initialize
register
run
end
def register
formatter = PhantomFormatter.new
formatter.register
end
def run
... | require 'ospec/phantom'
module MSpec
def self.opal_runner
@env = Object.new
@env.extend MSpec
end
end
# Add keys to pending array as names of specs not to run.
class OSpecFilter
def initialize
@pending = {}
end
def register
MSpec.register :exclude, self
end
def ===(string)
@pending... | Add OSpecFilter to filter non-compliant specs from running in mspec | Add OSpecFilter to filter non-compliant specs from running in mspec
| Ruby | mit | iliabylich/opal,jannishuebl/opal,gabrielrios/opal,merongivian/opal,Mogztter/opal,wied03/opal,gausie/opal,c42engineering/opal,iliabylich/opal,suyesh/opal,catprintlabs/opal,Ajedi32/opal,Ajedi32/opal,Flikofbluelight747/opal,gausie/opal,kachick/opal,c42engineering/opal,jannishuebl/opal,opal/opal,Flikofbluelight747/opal,gau... | ruby | ## Code Before:
require 'ospec/phantom'
module MSpec
def self.opal_runner
@env = Object.new
@env.extend MSpec
end
end
class OSpecRunner
def self.main
@main ||= self.new
end
def initialize
register
run
end
def register
formatter = PhantomFormatter.new
formatter.register
en... | require 'ospec/phantom'
module MSpec
def self.opal_runner
@env = Object.new
@env.extend MSpec
+ end
+ end
+
+ # Add keys to pending array as names of specs not to run.
+ class OSpecFilter
+ def initialize
+ @pending = {}
+ end
+
+ def register
+ MSpec.register :exclude, self
+ ... | 18 | 0.461538 | 18 | 0 |
cdfb6b3ec19f7489b10214e5f47461118eda2ab0 | api/payments/source/nonce.js | api/payments/source/nonce.js | module.exports = length => {
let last = null
let repeat = 0
length = !length ? 25 : length
return () => {
let now = Math.pow(10, 2) * +new Date()
if (now == last) {
repeat++
} else {
repeat = 0
last = now
}
const s = (now + repeat).toString()
return +s.substr(... | const maxLength = 25
module.exports = length => {
let last = null
let repeat = 0
length = !length ? maxLength : length
return () => {
let now = Math.pow(10, 2) * +new Date()
if (now == last) {
repeat++
} else {
repeat = 0
last = now
}
const s = (now + repeat).toS... | Move magic numbers intos consts | Move magic numbers intos consts
| JavaScript | mit | mikaturunen/byop,mikaturunen/byop,mikaturunen/byop | javascript | ## Code Before:
module.exports = length => {
let last = null
let repeat = 0
length = !length ? 25 : length
return () => {
let now = Math.pow(10, 2) * +new Date()
if (now == last) {
repeat++
} else {
repeat = 0
last = now
}
const s = (now + repeat).toString()
r... | + const maxLength = 25
+
module.exports = length => {
let last = null
let repeat = 0
- length = !length ? 25 : length
? ^^
+ length = !length ? maxLength : length
? ^^^^^^^^^
return () => {
let now = Math.pow(10, 2) * +new Date()
if (no... | 4 | 0.2 | 3 | 1 |
b5789463694ca8449b2dea7cc984bee48483af5e | vim/config.vim | vim/config.vim | set nocompatible
syntax on
filetype plugin indent on
source ~/.vim/bundles.vim
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && lin... | set nocompatible
syntax on
filetype plugin indent on
source ~/.vim/bundles.vim
| Stop trying to jump to last line on BufRead | Stop trying to jump to last line on BufRead | VimL | mit | acrookston/dotfiles,acrookston/dotfiles | viml | ## Code Before:
set nocompatible
syntax on
filetype plugin indent on
source ~/.vim/bundles.vim
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("... | set nocompatible
syntax on
filetype plugin indent on
source ~/.vim/bundles.vim
-
- " When editing a file, always jump to the last known cursor position.
- " Don't do it when the position is invalid or when inside an event handler
- " (happens when dropping a file on gvim).
- autocmd BufReadPost *
- \ i... | 9 | 0.6 | 0 | 9 |
d67d5b32865b9a22423c82c0a9acc5593efefe4b | common/features/overrideDbSample.sh | common/features/overrideDbSample.sh |
if [ ! "$SCRIPT" ]
then
echo "ERROR: the environment variable SCRIPT needs to be defined."
return 0
fi
if [ ! "$APPS" ]
then
echo "ERROR: the environment variable APPS needs to be defined."
return 0
fi
echo "running overrideDbSample.sh $ODMVERSION +++++++++"
export DBVERSIONTOCOPY=8.10.0
rm /upload/*
cp /db8... |
if [ ! "$SCRIPT" ]
then
echo "ERROR: the environment variable SCRIPT needs to be defined."
return 0
fi
if [ ! "$APPS" ]
then
echo "ERROR: the environment variable APPS needs to be defined."
return 0
fi
echo "running overrideDbSample.sh"
export DBVERSIONTOCOPY=8.10.0
if [ -d "/db810" ]
then
rm /upload/*
cp /d... | Fix build following db switch version | Fix build following db switch version
| Shell | mit | lgrateau/ODM-on-Docker,lgrateau/odm-ondocker,lgrateau/ODM-on-Docker,lgrateau/odm-ondocker,lgrateau/odm-ondocker | shell | ## Code Before:
if [ ! "$SCRIPT" ]
then
echo "ERROR: the environment variable SCRIPT needs to be defined."
return 0
fi
if [ ! "$APPS" ]
then
echo "ERROR: the environment variable APPS needs to be defined."
return 0
fi
echo "running overrideDbSample.sh $ODMVERSION +++++++++"
export DBVERSIONTOCOPY=8.10.0
rm /... |
if [ ! "$SCRIPT" ]
then
echo "ERROR: the environment variable SCRIPT needs to be defined."
return 0
fi
if [ ! "$APPS" ]
then
echo "ERROR: the environment variable APPS needs to be defined."
return 0
fi
- echo "running overrideDbSample.sh $ODMVERSION +++++++++"
? ... | 7 | 0.411765 | 5 | 2 |
da2e1426cdba76b8947ceb3aa5fec5bd1d147bf2 | index.html | index.html | <!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>AngularJS Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script>
angular.module('app', []).c... | <!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>AngularJS Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script src="https://ajax.googleapis.com/aj... | Switch to fetching via ngResource. | Switch to fetching via ngResource.
| HTML | mit | RichGuk/AngularJS-demo | html | ## Code Before:
<!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>AngularJS Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
<script>
angular.mod... | <!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>AngularJS Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
+ <script src="https://ajax.goo... | 17 | 0.459459 | 9 | 8 |
a0c5eb039ee82477bef82de69c679b9d6e8c098b | librariesio/librariesio_test.go | librariesio/librariesio_test.go | package librariesio
import (
"testing"
"time"
)
const APIKey string = "1234"
func TestNewClient(t *testing.T) {
c := NewClient(APIKey)
if got, want := c.apiKey, APIKey; got != want {
t.Errorf("NewClient baseURL is %v, want %v", got, want)
}
if got, want := c.BaseURL.String(), "https://libraries.io/api/"; g... | package librariesio
import (
"testing"
"time"
)
const APIKey string = "1234"
func TestNewClient(t *testing.T) {
c := NewClient(APIKey)
if got, want := c.apiKey, APIKey; got != want {
t.Errorf("NewClient baseURL is %v, want %v", got, want)
}
if got, want := c.BaseURL.String(), "https://libraries.io/api/"; g... | Add a basic test for client.NewRequest for no payload | Add a basic test for client.NewRequest for no payload
| Go | mit | hackebrot/go-librariesio | go | ## Code Before:
package librariesio
import (
"testing"
"time"
)
const APIKey string = "1234"
func TestNewClient(t *testing.T) {
c := NewClient(APIKey)
if got, want := c.apiKey, APIKey; got != want {
t.Errorf("NewClient baseURL is %v, want %v", got, want)
}
if got, want := c.BaseURL.String(), "https://libra... | package librariesio
import (
"testing"
"time"
)
const APIKey string = "1234"
func TestNewClient(t *testing.T) {
c := NewClient(APIKey)
if got, want := c.apiKey, APIKey; got != want {
t.Errorf("NewClient baseURL is %v, want %v", got, want)
}
if got, want := c.BaseURL.String... | 13 | 0.464286 | 13 | 0 |
0b6bd02548328b4e37b7688d1d40388ffa5eba5c | lib/capistrano/nodejs.rb | lib/capistrano/nodejs.rb | load File.expand_path('tasks/nodejs.rake')
before "deploy:create_symlink", "nodejs:install_packages"
| load File.expand_path('../tasks/nodejs.rake', __FILE__)
before "deploy:create_symlink", "nodejs:install_packages"
| Set path relative to __FILE__ | Set path relative to __FILE__
| Ruby | mit | siwilkins/capistrano-nodejs | ruby | ## Code Before:
load File.expand_path('tasks/nodejs.rake')
before "deploy:create_symlink", "nodejs:install_packages"
## Instruction:
Set path relative to __FILE__
## Code After:
load File.expand_path('../tasks/nodejs.rake', __FILE__)
before "deploy:create_symlink", "nodejs:install_packages"
| - load File.expand_path('tasks/nodejs.rake')
+ load File.expand_path('../tasks/nodejs.rake', __FILE__)
? +++ ++++++++++
before "deploy:create_symlink", "nodejs:install_packages" | 2 | 0.666667 | 1 | 1 |
d97b71794b0646d2eb11e95dcb89591b85e6f778 | src/document/DocumentMarkdownConverter.js | src/document/DocumentMarkdownConverter.js | const ComponentConverter = require('../component/ComponentConverter')
const pandoc = require('../helpers/pandoc')
class DocumentMarkdownConverter extends ComponentConverter {
load (document, content, format, options) {
options = options || {}
let html = pandoc.convert(content, 'markdown', 'html')
docume... | const ComponentConverter = require('../component/ComponentConverter')
const pandoc = require('../helpers/pandoc')
class DocumentMarkdownConverter extends ComponentConverter {
load (document, content, format, options) {
options = options || {}
let html = pandoc.convert(content, 'commonmark', 'html', {
... | Use `commonmark` specification for Pandoc `md` format conversion | Use `commonmark` specification for Pandoc `md` format conversion
| JavaScript | apache-2.0 | stencila/node,stencila/node | javascript | ## Code Before:
const ComponentConverter = require('../component/ComponentConverter')
const pandoc = require('../helpers/pandoc')
class DocumentMarkdownConverter extends ComponentConverter {
load (document, content, format, options) {
options = options || {}
let html = pandoc.convert(content, 'markdown', 'h... | const ComponentConverter = require('../component/ComponentConverter')
const pandoc = require('../helpers/pandoc')
class DocumentMarkdownConverter extends ComponentConverter {
load (document, content, format, options) {
options = options || {}
- let html = pandoc.convert(content, 'markdown', 'h... | 6 | 0.26087 | 4 | 2 |
6ddb9c20131f37b31bcc4a9f86c2584c3ee81388 | packages/bi/bindings-gpgme.yaml | packages/bi/bindings-gpgme.yaml | homepage: https://github.com/jwiegley/bindings-dsl
changelog-type: ''
hash: b486a4a93e614111b637c6ff7e719c19f3f7d921cbf50930e112e3948246e688
test-bench-deps: {}
maintainer: John Wiegley <johnw@newartisans.com>
synopsis: Project bindings-* raw interface to gpgme
changelog: ''
basic-deps:
base: ! '>=3 && <5'
bindings... | homepage: https://github.com/rethab/bindings-dsl
changelog-type: ''
hash: 91ce499f1fd03129663f52dfbebd843502aba77e2c52e1da44f976db64ca2fc3
test-bench-deps: {}
maintainer: Reto <rethab@protonmail.ch>
synopsis: Project bindings-* raw interface to gpgme
changelog: ''
basic-deps:
base: '>=3 && <5'
bindings-DSL: '>=1.0.... | Update from Hackage at 2022-05-15T08:42:32Z | Update from Hackage at 2022-05-15T08:42:32Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/jwiegley/bindings-dsl
changelog-type: ''
hash: b486a4a93e614111b637c6ff7e719c19f3f7d921cbf50930e112e3948246e688
test-bench-deps: {}
maintainer: John Wiegley <johnw@newartisans.com>
synopsis: Project bindings-* raw interface to gpgme
changelog: ''
basic-deps:
base: ! '>=3 &... | - homepage: https://github.com/jwiegley/bindings-dsl
? ^^^ ^^^^
+ homepage: https://github.com/rethab/bindings-dsl
? ^ ^^^^
changelog-type: ''
- hash: b486a4a93e614111b637c6ff7e719c19f3f7d921cbf50930e112e3948246e688
+ hash: 91ce499f1fd03129663f52dfbebd843502... | 24 | 0.774194 | 13 | 11 |
f465d99325b3e7a258d185e3b7bcfe85fd5ea72f | addon/components/sl-drop-button.js | addon/components/sl-drop-button.js | import Ember from 'ember';
import TooltipEnabled from '../mixins/sl-tooltip-enabled';
/**
* @module components
* @class sl-drop-button
*/
export default Ember.Component.extend( TooltipEnabled, {
/**
* Component actions hash
*
* @property {object} actions
*/
actions: {
/**
... | import Ember from 'ember';
import TooltipEnabled from '../mixins/sl-tooltip-enabled';
/** @module sl-components/components/sl-drop-button */
export default Ember.Component.extend( TooltipEnabled, {
/**
* Class names for the div element
*
* @property {array} classNames
* @type {Ember.... | Refactor to follow style guides | Refactor to follow style guides
| JavaScript | mit | erangeles/sl-ember-components,notmessenger/sl-ember-components,juwara0/sl-ember-components,SpikedKira/sl-ember-components,erangeles/sl-ember-components,softlayer/sl-ember-components,SpikedKira/sl-ember-components,Suven/sl-ember-components,theoshu/sl-ember-components,theoshu/sl-ember-components,Suven/sl-ember-components... | javascript | ## Code Before:
import Ember from 'ember';
import TooltipEnabled from '../mixins/sl-tooltip-enabled';
/**
* @module components
* @class sl-drop-button
*/
export default Ember.Component.extend( TooltipEnabled, {
/**
* Component actions hash
*
* @property {object} actions
*/
actions: {
... | import Ember from 'ember';
import TooltipEnabled from '../mixins/sl-tooltip-enabled';
+ /** @module sl-components/components/sl-drop-button */
- /**
- * @module components
- * @class sl-drop-button
- */
export default Ember.Component.extend( TooltipEnabled, {
+
+ /**
+ * Class names for the div el... | 52 | 0.8 | 29 | 23 |
ca4bd82ff1880bc2ffecee3454a4f1ecd85d5062 | RELEASING.md | RELEASING.md |
This document describes the steps for creating a new VAST release.
1. Verify that the preconditions of a release are statisfied:
- The current master HEAD builds successfully: [![Build Status][ci-badge]][ci-url]
- The documentation in `README.md` , the man page (`doc/vast.1.md` and
`doc/cli`), and the [docs w... |
This document describes the steps for creating a new VAST release.
1. Verify that the preconditions of a release are statisfied:
- The current master HEAD builds successfully: [![Build Status][ci-badge]][ci-url]
- The documentation in `README.md` , the man page (`doc/vast.1.md` and
`doc/cli`), and the [docs w... | Clarify how to create a tag for a release | Clarify how to create a tag for a release
| Markdown | bsd-3-clause | vast-io/vast,vast-io/vast,vast-io/vast,vast-io/vast,vast-io/vast | markdown | ## Code Before:
This document describes the steps for creating a new VAST release.
1. Verify that the preconditions of a release are statisfied:
- The current master HEAD builds successfully: [![Build Status][ci-badge]][ci-url]
- The documentation in `README.md` , the man page (`doc/vast.1.md` and
`doc/cli`),... |
This document describes the steps for creating a new VAST release.
1. Verify that the preconditions of a release are statisfied:
- The current master HEAD builds successfully: [![Build Status][ci-badge]][ci-url]
- The documentation in `README.md` , the man page (`doc/vast.1.md` and
`doc/cli`), a... | 14 | 0.777778 | 10 | 4 |
065fd4bdded8c0c7de2a4301c1aab0ecb71f97a9 | lib/emailvision4rails/models/campaign.rb | lib/emailvision4rails/models/campaign.rb | class Emailvision4rails::Campaign < Emailvision4rails::Base
attributes(
:name,
:mailinglist_id,
:message_id,
:send_date,
:description,
:emaildedupflg,
:format,
:delivery_speed,
:notification,
:post_click_tracking,
:strategy,
:target,
:url_end_campaign,
:url_host,
:analytics
... | class Emailvision4rails::Campaign < Emailvision4rails::Base
attributes(
:id,
:name,
:mailinglist_id,
:message_id,
:send_date,
:description,
:emaildedupflg,
:format,
:delivery_speed,
:notification,
:post_click_tracking,
:strategy,
:target,
:url_end_campaign,
:url_host,
:analytics ... | Store id and add post method | [Campaign] Store id and add post method
| Ruby | mit | basgys/emailvision4rails,basgys/emailvision4rails | ruby | ## Code Before:
class Emailvision4rails::Campaign < Emailvision4rails::Base
attributes(
:name,
:mailinglist_id,
:message_id,
:send_date,
:description,
:emaildedupflg,
:format,
:delivery_speed,
:notification,
:post_click_tracking,
:strategy,
:target,
:url_end_campaign,
:url_host,
:an... | class Emailvision4rails::Campaign < Emailvision4rails::Base
attributes(
+ :id,
:name,
:mailinglist_id,
:message_id,
:send_date,
:description,
:emaildedupflg,
:format,
:delivery_speed,
:notification,
:post_click_tracking,
:strategy,
:target,
:url_end_cam... | 7 | 0.127273 | 6 | 1 |
f1d9c010b58d69cdcf8f55a3e5937cbdf58c10e6 | tools/corintick_dump.py | tools/corintick_dump.py | import argparse
import glob
from pytrthree import TRTHIterator
from corintick import Corintick, ValidationError
def main(args):
db = Corintick(args.config)
files = glob.glob(args.files)
for ric, df in TRTHIterator(files):
cols = args.columns if args.columns else df.columns
try:
... | import argparse
import glob
import os
from pytrthree import TRTHIterator
from corintick import Corintick, ValidationError
def main(args):
db = Corintick(args.config)
files = glob.glob(os.path.expanduser(args.files))
for ric, df in TRTHIterator(files):
cols = args.columns if args.columns else df.c... | Fix help docstring and glob parsing | Fix help docstring and glob parsing
| Python | mit | plugaai/pytrthree | python | ## Code Before:
import argparse
import glob
from pytrthree import TRTHIterator
from corintick import Corintick, ValidationError
def main(args):
db = Corintick(args.config)
files = glob.glob(args.files)
for ric, df in TRTHIterator(files):
cols = args.columns if args.columns else df.columns
... | import argparse
import glob
+ import os
from pytrthree import TRTHIterator
from corintick import Corintick, ValidationError
def main(args):
db = Corintick(args.config)
- files = glob.glob(args.files)
+ files = glob.glob(os.path.expanduser(args.files))
? +++++++++++... | 5 | 0.166667 | 3 | 2 |
17e7edb722c5a566791a69546477d557de04fb23 | app/views/admin/dashboard/_posts.html.erb | app/views/admin/dashboard/_posts.html.erb | <div class='well'>
<h3 class='page-header'><%= _("Latest Posts") %></h3>
<ul class='unstyled'>
<% if @recent_posts.size == 0 %>
<li><%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
<% else %>
<% for post in @recent_posts -%>
<li>
... | <div class='well'>
<h3 class='page-header'><%= _("Latest Posts") %></h3>
<ul class='unstyled'>
<% if @recent_posts.size == 0 %>
<li><%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
<% else %>
<% for post in @recent_posts -%>
<li>
... | Fix latest posts date format with distance_of_time_in_words | Fix latest posts date format with distance_of_time_in_words
The Latest Posts on the admin dashboard is showing
"distance_of_time_in_words" as the date of each post, because that
is what is configured as my blog's date format. Elsewhere, this
date format is treated as a special case rather than a strftime format.
For... | HTML+ERB | mit | telekomatrix/publify,whithajess/publify,leminhtuan2015/nginx_capuchino_rails,agiamas/publify,moneyadviceservice/publify,mplstar/blog,waruboy/publify,jcfausto/publify,leminhtuan2015/nginx_capuchino_rails,Juuro/publify,moneyadviceservice/publify,mozzan/publify,shaomingtan/publify,vivekv009/inuni-blog,freibuis/publify,dra... | html+erb | ## Code Before:
<div class='well'>
<h3 class='page-header'><%= _("Latest Posts") %></h3>
<ul class='unstyled'>
<% if @recent_posts.size == 0 %>
<li><%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
<% else %>
<% for post in @recent_pos... | <div class='well'>
<h3 class='page-header'><%= _("Latest Posts") %></h3>
<ul class='unstyled'>
<% if @recent_posts.size == 0 %>
<li><%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
<% else %>
<% for post in @recent_posts... | 5 | 0.263158 | 2 | 3 |
758ccf126b76807a39d786a2acb8ca8e9ec5b6bd | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
protected
def authenticate_user!(options = {})
if user_signed_in?
super
else
redirect_to '/use... | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
# Send 'em back where they came from with a slap on the wrist
def authority_forbidden(error)
Authority.logger.w... | Handle unauthorized actions with a flash | Handle unauthorized actions with a flash
Why:
Instead of displaying a jarring 'Unauthorized' error, we want to direct
people back to the page they were on, with a flash.
NOTE: We'll want to come back and test this.
NOTE: We also need to decide how to handle unauthorized errors in the
API.
This change addresses the... | Ruby | bsd-3-clause | MAPC/developmentdatabase,MAPC/developmentdatabase,MAPC/developmentdatabase,MAPC/developmentdatabase | ruby | ## Code Before:
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
protected
def authenticate_user!(options = {})
if user_signed_in?
super
else
r... | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
+
+ # Send 'em back where they came from with a slap on the wrist
+ def authority_forbidden(error)
+ Au... | 7 | 0.318182 | 7 | 0 |
f4f439f24dceb0c68f05a90196b3e4b525d1aa7a | setup.py | setup.py |
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
)
|
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
classifiers=[
'Developme... | Add some trove classifiers to the package metadata | Add some trove classifiers to the package metadata
| Python | mit | rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,anmar/sunburnt,rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,qmssof/sunburnt,tow/sunburnt,anmar/sunburnt | python | ## Code Before:
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
)
## Instructio... |
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
+ classi... | 7 | 0.538462 | 7 | 0 |
ea2705aba49228cb024de2567fadbdc5e7b23421 | Crypto/Cipher/Threefish/Class.hs | Crypto/Cipher/Threefish/Class.hs | {-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
module Crypto.Cipher.Threefish.Class where
import Crypto.Cipher.Threefish.Common
class Threefish a b | a -> b where
-- | Create a Threefish key using a custom tweak value.
threefishKey :: Tweak -> a -> b
-- | Encrypt a block using the given key and t... | {-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
module Crypto.Cipher.Threefish.Class where
import Crypto.Cipher.Threefish.Common
import Data.Serialize
class Serialize a => Threefish a b | a -> b where
-- | Create a Threefish key using a custom tweak value.
threefishKey :: Tweak -> a -> b
-- | Encr... | Add Serialize as a dependency for the Threefish class. | Add Serialize as a dependency for the Threefish class.
| Haskell | bsd-3-clause | valderman/threefish,valderman/threefish | haskell | ## Code Before:
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
module Crypto.Cipher.Threefish.Class where
import Crypto.Cipher.Threefish.Common
class Threefish a b | a -> b where
-- | Create a Threefish key using a custom tweak value.
threefishKey :: Tweak -> a -> b
-- | Encrypt a block using the... | {-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
module Crypto.Cipher.Threefish.Class where
import Crypto.Cipher.Threefish.Common
+ import Data.Serialize
- class Threefish a b | a -> b where
+ class Serialize a => Threefish a b | a -> b where
? +++++++++++++++
-- | Create a Threefish ke... | 3 | 0.272727 | 2 | 1 |
2ed692aeed1fd56f0990efe47021202a4336102c | setup.py | setup.py |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from beastling import __version__ as version
requires = [
'six',
'newick>=0.6.0',
'appdirs',
'clldutils~=2.0',
'pycldf',
]
setup(
name='beastling',
version=version,
description='Command li... |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from beastling import __version__ as version
requires = [
'six',
'newick>=0.6.0',
'appdirs',
'clldutils~=2.0',
'pycldf',
]
setup(
name='beastling',
version=version,
description='Command li... | Install the treepriors package along with everything else. Feels very wrong that these need to be manually declared one-by-one, but oh well. | Install the treepriors package along with everything else. Feels very wrong that these need to be manually declared one-by-one, but oh well.
| Python | bsd-2-clause | lmaurits/BEASTling | python | ## Code Before:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from beastling import __version__ as version
requires = [
'six',
'newick>=0.6.0',
'appdirs',
'clldutils~=2.0',
'pycldf',
]
setup(
name='beastling',
version=version,
descrip... |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from beastling import __version__ as version
requires = [
'six',
'newick>=0.6.0',
'appdirs',
'clldutils~=2.0',
'pycldf',
]
setup(
name='beastling',
vers... | 2 | 0.04878 | 1 | 1 |
151c35b9df27fb9ec173f46e8263d8800672f8f8 | miniflux/common.php | miniflux/common.php | <?php
require 'check_setup.php';
require 'vendor/password.php';
require 'vendor/PicoTools/Dependency_Injection.php';
require 'vendor/PicoDb/Database.php';
require 'vendor/PicoDb/Table.php';
require 'schema.php';
require 'model.php';
PicoTools\container('db', function() {
$db = new PicoDb\Database(array(
... | <?php
require 'check_setup.php';
require 'vendor/password.php';
require 'vendor/PicoTools/Dependency_Injection.php';
require 'vendor/PicoDb/Database.php';
require 'vendor/PicoDb/Table.php';
require 'schema.php';
require 'model.php';
function get_db_filename()
{
return 'data/db.sqlite';
}
PicoTools\container('d... | Replace hardcoded database path by a function (for future usage) | Replace hardcoded database path by a function (for future usage)
| PHP | agpl-3.0 | jamesscottbrown/miniflux,mkresin/miniflux,pcwalden/miniflux,elais/miniflux,kordianbruck/miniflux,denfil/miniflux,mrjovanovic/miniflux,tourze/app-rss-reader,mkresin/miniflux,rgv151/miniflux,tourze/app-rss-reader,pcwalden/miniflux,cljnnn/miniflux,pcwalden/miniflux,cljnnn/miniflux,LucianNovo/trace,LucianNovo/trace,daniele... | php | ## Code Before:
<?php
require 'check_setup.php';
require 'vendor/password.php';
require 'vendor/PicoTools/Dependency_Injection.php';
require 'vendor/PicoDb/Database.php';
require 'vendor/PicoDb/Table.php';
require 'schema.php';
require 'model.php';
PicoTools\container('db', function() {
$db = new PicoDb\Databas... | <?php
require 'check_setup.php';
require 'vendor/password.php';
require 'vendor/PicoTools/Dependency_Injection.php';
require 'vendor/PicoDb/Database.php';
require 'vendor/PicoDb/Table.php';
require 'schema.php';
require 'model.php';
+ function get_db_filename()
+ {
+ return 'data/db.sqlite'... | 8 | 0.296296 | 7 | 1 |
81042239e7f2a8248fb18c770dcaed56e1a5a870 | src/SimplyTestable/WebClientBundle/Tests/Controller/View/User/SignUp/Confirm/IndexAction/ActionTest.php | src/SimplyTestable/WebClientBundle/Tests/Controller/View/User/SignUp/Confirm/IndexAction/ActionTest.php | <?php
namespace SimplyTestable\WebClientBundle\Tests\Controller\View\User\SignUp\Confirm\IndexAction;
use SimplyTestable\WebClientBundle\Tests\Controller\Base\ActionTest as BaseActionTest;
class ActionTest extends BaseActionTest {
protected function getHttpFixtureItems() {
return array(
... | <?php
namespace SimplyTestable\WebClientBundle\Tests\Controller\View\User\SignUp\Confirm\IndexAction;
use SimplyTestable\WebClientBundle\Tests\Controller\Base\ActionTest as BaseActionTest;
class ActionTest extends BaseActionTest {
protected function getHttpFixtureItems() {
return array(
... | Fix signup confirm action test | Fix signup confirm action test
| PHP | mit | webignition/web.client.simplytestable.com,webignition/web.client.simplytestable.com,webignition/web.client.simplytestable.com | php | ## Code Before:
<?php
namespace SimplyTestable\WebClientBundle\Tests\Controller\View\User\SignUp\Confirm\IndexAction;
use SimplyTestable\WebClientBundle\Tests\Controller\Base\ActionTest as BaseActionTest;
class ActionTest extends BaseActionTest {
protected function getHttpFixtureItems() {
re... | <?php
namespace SimplyTestable\WebClientBundle\Tests\Controller\View\User\SignUp\Confirm\IndexAction;
use SimplyTestable\WebClientBundle\Tests\Controller\Base\ActionTest as BaseActionTest;
class ActionTest extends BaseActionTest {
protected function getHttpFixtureItems() {
... | 7 | 0.194444 | 7 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.