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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9bde7237097015f228fc311cba423307ff1d9ee | README.md | README.md |
The common code used by all sqlectron clients.
## Installation
Install via npm:
```bash
$ npm install sqlectron-core
```
## Usage
```js
...
```
## Contributing
It is required to use [editorconfig](http://editorconfig.org/) and please write and run specs before pushing any changes:
```js
npm test
```
## Licens... |
The common code used by all sqlectron clients.
#### Current supported databases
* PostgreSQL
* MySQL
Do you wanna support for another SQL database? Is expected that in the pull request the new database is included in the [db.spec.js](https://github.com/sqlectron/sqlectron-core/blob/master/spec/db.spec.js).
## Inst... | Add description about the current supported databases | Add description about the current supported databases | Markdown | mit | sqlectron/sqlectron-core,falcon-client/falcon-core,falcon-client/falcon-core | markdown | ## Code Before:
The common code used by all sqlectron clients.
## Installation
Install via npm:
```bash
$ npm install sqlectron-core
```
## Usage
```js
...
```
## Contributing
It is required to use [editorconfig](http://editorconfig.org/) and please write and run specs before pushing any changes:
```js
npm tes... |
The common code used by all sqlectron clients.
+
+
+ #### Current supported databases
+ * PostgreSQL
+ * MySQL
+
+ Do you wanna support for another SQL database? Is expected that in the pull request the new database is included in the [db.spec.js](https://github.com/sqlectron/sqlectron-core/blob/master/spec/db.... | 7 | 0.25 | 7 | 0 |
dbc6ded131c7c6e46f2fe54a51f4be531e860e0d | app/js/Grouping.jsx | app/js/Grouping.jsx | var React = require('react')
var GroupingContainer = require('./GroupingContainer.jsx')
var Grouping = React.createClass({
getInitialState: function() {
return {data: []}
},
getLegend: function() {
if(this.props.options.legend) {
var options = this.props.options.legend.map(funct... | var React = require('react')
var GroupingContainer = require('./GroupingContainer.jsx')
var Grouping = React.createClass({
getInitialState: function() {
return {data: []}
},
getLegend: function() {
if(this.props.options.legend) {
var options = this.props.options.legend.map(funct... | Use a horizontal rule for all grouping headers. | Use a horizontal rule for all grouping headers.
| JSX | apache-2.0 | nuclearfurnace/oscilloscope,nuclearfurnace/oscilloscope,nuclearfurnace/oscilloscope | jsx | ## Code Before:
var React = require('react')
var GroupingContainer = require('./GroupingContainer.jsx')
var Grouping = React.createClass({
getInitialState: function() {
return {data: []}
},
getLegend: function() {
if(this.props.options.legend) {
var options = this.props.options.... | var React = require('react')
var GroupingContainer = require('./GroupingContainer.jsx')
var Grouping = React.createClass({
getInitialState: function() {
return {data: []}
},
getLegend: function() {
if(this.props.options.legend) {
var options = this.props.opti... | 1 | 0.021277 | 1 | 0 |
09a14e2e81c81cb3bcc0485b4eb3afa5351a94c6 | tests/easyprint_tests.cpp | tests/easyprint_tests.cpp |
BOOST_AUTO_TEST_CASE( fieldListFromString_tests )
{
}
|
template <typename T, typename DELIMITER>
std::string easyprint_test(T&& container, DELIMITER d ){
std::stringstream ss;
print_line(ss, std::forward<T>(container), d);
return ss.str();
};
BOOST_AUTO_TEST_CASE( Print_Empty_container )
{
default_delimiter d;
BOOST_CHECK( easyprint_test(std::vector<i... | Add first test, trigger Travis CI | Add first test, trigger Travis CI
| C++ | mit | hebaishi/easy-cpp-print | c++ | ## Code Before:
BOOST_AUTO_TEST_CASE( fieldListFromString_tests )
{
}
## Instruction:
Add first test, trigger Travis CI
## Code After:
template <typename T, typename DELIMITER>
std::string easyprint_test(T&& container, DELIMITER d ){
std::stringstream ss;
print_line(ss, std::forward<T>(container), d);
... |
+ template <typename T, typename DELIMITER>
+ std::string easyprint_test(T&& container, DELIMITER d ){
+ std::stringstream ss;
+ print_line(ss, std::forward<T>(container), d);
+ return ss.str();
+ };
- BOOST_AUTO_TEST_CASE( fieldListFromString_tests )
+ BOOST_AUTO_TEST_CASE( Print_Empty_container )
... | 11 | 1.833333 | 10 | 1 |
73535b843763d1f5002b8d955e851e1f50160164 | .travis.yml | .travis.yml | sudo: false
language: ruby
rvm:
- '2.3.8'
- '2.4.5'
- '2.5.3'
- '2.6.1'
before_install: gem install bundler -v 2.0.1
script: bundle exec rspec
addons:
code_climate:
repo_token: 06a44082b0f5a5114eec226952c45443a4ac8c86e59e098869b5c07e420505ab
| sudo: false
language: ruby
rvm:
- '2.3.8'
- '2.4.5'
- '2.5.3'
- '2.6.1'
before_install: gem install bundler -v 2.0.1
script:
- bundle exec rubocop
- bundle exec rspec
| Remove Code Climate repo token from Travis config | Remove Code Climate repo token from Travis config
| YAML | mit | tlux/vnstat-ruby | yaml | ## Code Before:
sudo: false
language: ruby
rvm:
- '2.3.8'
- '2.4.5'
- '2.5.3'
- '2.6.1'
before_install: gem install bundler -v 2.0.1
script: bundle exec rspec
addons:
code_climate:
repo_token: 06a44082b0f5a5114eec226952c45443a4ac8c86e59e098869b5c07e420505ab
## Instruction:
Remove Code Climate repo token from... | sudo: false
language: ruby
rvm:
- '2.3.8'
- '2.4.5'
- '2.5.3'
- '2.6.1'
before_install: gem install bundler -v 2.0.1
+ script:
+ - bundle exec rubocop
- script: bundle exec rspec
? ^^^^^^^
+ - bundle exec rspec
? ^^^
- addons:
- code_climate:
- repo_token: 06a44082b0f5a5114eec226952c4544... | 7 | 0.583333 | 3 | 4 |
46a5a85e72382d804b9e0e9fd48f331270e27e77 | sql/pgq_coop/sql/pgq_coop_init_ext.sql | sql/pgq_coop/sql/pgq_coop_init_ext.sql |
create extension pgq;
\set ECHO none
\i structure/install.sql
\set ECHO all
create extension pgq_coop from 'unpackaged';
drop extension pgq_coop;
-- workaround for postgres bug
drop schema if exists pgq_coop;
create extension pgq_coop;
|
create extension pgq;
\set ECHO none
\i structure/install.sql
\set ECHO all
create extension pgq_coop from 'unpackaged';
drop extension pgq_coop;
create extension pgq_coop;
| Remove 'workaround' as it was pgq_coop own bug | Remove 'workaround' as it was pgq_coop own bug
| SQL | isc | overdrive3000/skytools,overdrive3000/skytools,markokr/skytools,tarvip/skytools,tarvip/skytools,tarvip/skytools,overdrive3000/skytools,markokr/skytools,markokr/skytools | sql | ## Code Before:
create extension pgq;
\set ECHO none
\i structure/install.sql
\set ECHO all
create extension pgq_coop from 'unpackaged';
drop extension pgq_coop;
-- workaround for postgres bug
drop schema if exists pgq_coop;
create extension pgq_coop;
## Instruction:
Remove 'workaround' as it was pgq_coop own bu... |
create extension pgq;
\set ECHO none
\i structure/install.sql
\set ECHO all
create extension pgq_coop from 'unpackaged';
drop extension pgq_coop;
- -- workaround for postgres bug
- drop schema if exists pgq_coop;
-
create extension pgq_coop;
| 3 | 0.2 | 0 | 3 |
5006c9f9535b42115cfa79e23b2e5b136fe3a7bb | app/views/latest/whp-result.html | app/views/latest/whp-result.html | {% extends "layout.html" %}
{% block content %}
<main id="content" role="main">
{% include "includes/main_nav.html" %}
<div class="main-content">
<h1 class="heading-large">WHP selection - Mr J Smith - Result</h1>
<div class="grid-row">
{% set currentClaimantPage = 'select... | {% extends "layout.html" %}
{% block content %}
<main id="content" role="main">
{% include "includes/main_nav.html" %}
<div class="main-content">
<h1 class="heading-large">WHP selection - Mr J Smith - Result</h1>
<div class="grid-row">
{% set currentClaimantPage = 'select... | Update the content on the result page | Update the content on the result page
| HTML | mit | dwpdigitaltech/ejs-prototype,dwpdigitaltech/ejs-prototype,dwpdigitaltech/ejs-prototype | html | ## Code Before:
{% extends "layout.html" %}
{% block content %}
<main id="content" role="main">
{% include "includes/main_nav.html" %}
<div class="main-content">
<h1 class="heading-large">WHP selection - Mr J Smith - Result</h1>
<div class="grid-row">
{% set currentClaima... | {% extends "layout.html" %}
{% block content %}
<main id="content" role="main">
{% include "includes/main_nav.html" %}
<div class="main-content">
<h1 class="heading-large">WHP selection - Mr J Smith - Result</h1>
<div class="grid-row">
{% set curre... | 2 | 0.083333 | 1 | 1 |
481f4444e063d5559d396a5a26154b9ebde27248 | formspree/app.py | formspree/app.py | import json
import stripe
import flask
from flask import g
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager, current_user
from flask_redis import Redis
import settings
DB = SQLAlchemy()
redis_store = Redis()
stripe.api_key = settings.STRIPE_SECRET_KEY
import routes
from users.mode... | import json
import stripe
import os
import flask
from flask import g
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager, current_user
from flask.ext.cdn import CDN
from formspree import log
from flask_redis import Redis
import settings
DB = SQLAlchemy()
redis_store = Redis()
stripe.a... | Allow for static contents served over CDN | Allow for static contents served over CDN
| Python | agpl-3.0 | asm-products/formspree,asm-products/formspree,asm-products/formspree,asm-products/formspree | python | ## Code Before:
import json
import stripe
import flask
from flask import g
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager, current_user
from flask_redis import Redis
import settings
DB = SQLAlchemy()
redis_store = Redis()
stripe.api_key = settings.STRIPE_SECRET_KEY
import routes... | import json
import stripe
+ import os
import flask
from flask import g
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager, current_user
+ from flask.ext.cdn import CDN
+ from formspree import log
from flask_redis import Redis
import settings
DB = SQLAlchemy()
... | 8 | 0.186047 | 7 | 1 |
2fa7e0a98ce8240c7266334512001fb411c1a14d | post.hbs | post.hbs | {{!< default}}
{{#post}}
<article class="{{post_class}}">
<header>
<a id="back-button" class="btn small square" href="javascript:history.back()">« Back</a>
<div class="post meta">
<time datetime="{{date format="DD MMM YYYY"}}">{{date format="DD MMM YYYY"}}</time>
<span class="post ta... | {{!< default}}
{{#post}}
<article class="{{post_class}}">
<header>
<a id="back-button" class="btn small square" href="javascript:history.back()">« Back</a>
<div class="post meta">
<time datetime="{{date format="DD MMM YYYY"}}">{{date format="DD MMM YYYY"}}</time>
<span class="post ta... | Add another add between header and content | Add another add between header and content
| Handlebars | mit | kutyel/uno-zen,kutyel/uno-zen | handlebars | ## Code Before:
{{!< default}}
{{#post}}
<article class="{{post_class}}">
<header>
<a id="back-button" class="btn small square" href="javascript:history.back()">« Back</a>
<div class="post meta">
<time datetime="{{date format="DD MMM YYYY"}}">{{date format="DD MMM YYYY"}}</time>
<spa... | {{!< default}}
{{#post}}
<article class="{{post_class}}">
<header>
<a id="back-button" class="btn small square" href="javascript:history.back()">« Back</a>
<div class="post meta">
<time datetime="{{date format="DD MMM YYYY"}}">{{date format="DD MMM YYYY"}}</time>
... | 13 | 0.419355 | 10 | 3 |
1b1b4c18dedb6b9eef1396ffe43e9b37e3cb4db4 | .travis.yml | .travis.yml | language: node_js
node_js:
- "4.4.6"
- "5"
- "6"
sudo: false
script: "npm test"
after_success:
- npm run coveralls
addons:
code_climate:
repo_token: 98bfd4f81ea2ddbdfd3aa5cbe4dacb2ab09c70d86009fa3a5c04eccb77c1b1eb
| language: node_js
node_js:
- "4.4.6"
- "5"
- "6"
sudo: false
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH="$HOME/.yarn/bin:$PATH"
cache:
yarn: true
script: "yarn test"
after_success:
- npm run coveralls
addons:
code_climate:
repo_token: 98b... | Update Travis to use Yarn | Update Travis to use Yarn
| YAML | mit | perflint/perflint | yaml | ## Code Before:
language: node_js
node_js:
- "4.4.6"
- "5"
- "6"
sudo: false
script: "npm test"
after_success:
- npm run coveralls
addons:
code_climate:
repo_token: 98bfd4f81ea2ddbdfd3aa5cbe4dacb2ab09c70d86009fa3a5c04eccb77c1b1eb
## Instruction:
Update Travis to use Yarn
## Code After:
language: node_js... | language: node_js
node_js:
- "4.4.6"
- "5"
- "6"
sudo: false
+ before_install:
+ - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
+ - export PATH="$HOME/.yarn/bin:$PATH"
+ cache:
+ yarn: true
- script: "npm test"
? --
+ script: "yarn test"
? +++
a... | 7 | 0.583333 | 6 | 1 |
5ef156a476e43e9b0395ac2abc49928c3d05c9b8 | spec/routing/socializer/people_routing_spec.rb | spec/routing/socializer/people_routing_spec.rb | require 'rails_helper'
module Socializer
RSpec.describe PeopleController, type: :routing do
routes { Socializer::Engine.routes }
describe 'routing' do
it 'routes to #index' do
expect(:get => '/people').to route_to('socializer/people#index')
end
it 'does not route to #new' do
... | require 'rails_helper'
module Socializer
RSpec.describe PeopleController, type: :routing do
routes { Socializer::Engine.routes }
describe 'routing' do
it 'routes to #index' do
expect(get: '/people').to route_to('socializer/people#index')
end
it 'does not route to #new' do
... | Use the new Ruby 1.9 hash syntax. | Use the new Ruby 1.9 hash syntax.
| Ruby | mit | socializer/socializer,socializer/socializer,socializer/socializer | ruby | ## Code Before:
require 'rails_helper'
module Socializer
RSpec.describe PeopleController, type: :routing do
routes { Socializer::Engine.routes }
describe 'routing' do
it 'routes to #index' do
expect(:get => '/people').to route_to('socializer/people#index')
end
it 'does not route t... | require 'rails_helper'
module Socializer
RSpec.describe PeopleController, type: :routing do
routes { Socializer::Engine.routes }
describe 'routing' do
it 'routes to #index' do
- expect(:get => '/people').to route_to('socializer/people#index')
? - ^^^
+ ... | 8 | 0.210526 | 4 | 4 |
d0eed5099512531fa96ec84787f80648092c4775 | index.html | index.html |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
... |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
... | Make built app be default | Make built app be default
| HTML | mit | alistairjcbrown/base-js-app,alistairjcbrown/connected-devices-display | html | ## Code Before:
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="u... |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="u... | 4 | 0.153846 | 2 | 2 |
3ee01b9cee4acd9f8e55da3e600cc1e20586a5da | app/src/main/res/values/styles.xml | app/src/main/res/values/styles.xml | <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:background">#5A0003</item>
</style>
</resources>
| <resources>
<!-- Base application theme. -->
<!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
<color name="custom_theme_color">#5A0003</color>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="... | Clean up style color theme. | Clean up style color theme.
| XML | mit | dillonbly/tworooms-android | xml | ## Code Before:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:background">#5A0003</item>
</style>
</resources>
## Instruction:
Clean up style color theme.
## Code A... | <resources>
<!-- Base application theme. -->
+ <!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">-->
+ <color name="custom_theme_color">#5A0003</color>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
- ... | 7 | 0.777778 | 6 | 1 |
93bf3a54321d850ef0e8834344a692cd39feb7e2 | examples/callforth.js | examples/callforth.js | var Forth = require("../forth"),
forth = Forth.go ( function start (callforth) {
setTimeout(function () {
callforth.report(null, Date.now());
callforth.report(null, Date.now());
callforth.report(null, Date.now());
if (Date.now() % 3) {
callforth ( null, [1, 2, 3] );
} else {
callforth ( new ... | var Forth = require("../forth"),
forth = Forth.go ( function start (callforth) {
var result = [1, 2, 3];
callforth.report(null, Date.now());
callforth.report(null, Date.now());
callforth.report(null, Date.now());
if (Date.now() % 3) {
callforth ( null, result );
result.push(4); // NOTE: callforth is... | Support multiple import methods and add Forth.pass. | Support multiple import methods and add Forth.pass.
| JavaScript | mit | jcmoore/forthjs | javascript | ## Code Before:
var Forth = require("../forth"),
forth = Forth.go ( function start (callforth) {
setTimeout(function () {
callforth.report(null, Date.now());
callforth.report(null, Date.now());
callforth.report(null, Date.now());
if (Date.now() % 3) {
callforth ( null, [1, 2, 3] );
} else {
... | var Forth = require("../forth"),
forth = Forth.go ( function start (callforth) {
+ var result = [1, 2, 3];
- setTimeout(function () {
- callforth.report(null, Date.now());
- callforth.report(null, Date.now());
- callforth.report(null, Date.now());
+ callforth.report(null, Date.now());
+ call... | 39 | 1.181818 | 26 | 13 |
d87dd0f7cb14a07ebf93c75af60149bdee99337c | src/index.js | src/index.js | import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import marked from 'marked';
import 'normalize.css';
import prism from 'prismjs';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import config from './confi... | import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import marked from 'marked';
import 'normalize.css';
import prism from 'prismjs';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import config from './confi... | Add code to unregister the service worker for now | Add code to unregister the service worker for now
| JavaScript | mit | hoopr/codework,hoopr/codework | javascript | ## Code Before:
import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import marked from 'marked';
import 'normalize.css';
import prism from 'prismjs';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import conf... | import firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import marked from 'marked';
import 'normalize.css';
import prism from 'prismjs';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
impor... | 6 | 0.181818 | 3 | 3 |
3acd7d885e6c660c3acb0b584b7ed07c8a1a4df3 | docs/source/_examples/myclient.py | docs/source/_examples/myclient.py | import socket, ssl
import h11
class MyHttpClient:
def __init__(self, host, port):
self.sock = socket.create_connection((host, port))
if port == 443:
self.sock = ssl.wrap_socket(self.sock)
self.conn = h11.Connection(our_role=h11.CLIENT)
def send(self, *events):
for e... | import socket, ssl
import h11
class MyHttpClient:
def __init__(self, host, port):
self.sock = socket.create_connection((host, port))
if port == 443:
ctx = ssl.create_default_context()
self.sock = ctx.wrap_socket(self.sock, server_hostname=host)
self.conn = h11.Connec... | Support SNI in the example client | Support SNI in the example client
Fixes: gh-36
| Python | mit | python-hyper/h11,njsmith/h11 | python | ## Code Before:
import socket, ssl
import h11
class MyHttpClient:
def __init__(self, host, port):
self.sock = socket.create_connection((host, port))
if port == 443:
self.sock = ssl.wrap_socket(self.sock)
self.conn = h11.Connection(our_role=h11.CLIENT)
def send(self, *events... | import socket, ssl
import h11
class MyHttpClient:
def __init__(self, host, port):
self.sock = socket.create_connection((host, port))
if port == 443:
+ ctx = ssl.create_default_context()
- self.sock = ssl.wrap_socket(self.sock)
? ^^^
+ ... | 3 | 0.096774 | 2 | 1 |
6444d64ad4f9e1fe803d83ef40f1e6f08b089863 | lib/MediaWords/Util/Extractor.pm | lib/MediaWords/Util/Extractor.pm | package MediaWords::Util::Extractor;
use Modern::Perl "2012";
use MediaWords::CommonLibs;
use strict;
use Data::Dumper;
use Moose::Role;
requires 'getExtractedLines';
1;
| package MediaWords::Util::Extractor;
use Modern::Perl "2012";
use MediaWords::CommonLibs;
use strict;
use Data::Dumper;
use Moose::Role;
requires 'getExtractedLines';
requires 'getScoresAndLines';
sub extract_preprocessed_lines_for_story
{
my ( $self, $lines, $story_title, $story_description ) = @_;
if ( ... | Add extract_preprocessed_line_for_story method to base class. | Add extract_preprocessed_line_for_story method to base class.
| Perl | agpl-3.0 | berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT... | perl | ## Code Before:
package MediaWords::Util::Extractor;
use Modern::Perl "2012";
use MediaWords::CommonLibs;
use strict;
use Data::Dumper;
use Moose::Role;
requires 'getExtractedLines';
1;
## Instruction:
Add extract_preprocessed_line_for_story method to base class.
## Code After:
package MediaWords::Util::Extract... | package MediaWords::Util::Extractor;
use Modern::Perl "2012";
use MediaWords::CommonLibs;
use strict;
use Data::Dumper;
use Moose::Role;
requires 'getExtractedLines';
+ requires 'getScoresAndLines';
+
+ sub extract_preprocessed_lines_for_story
+ {
+ my ( $self, $lines, $story_title, $stor... | 23 | 1.769231 | 23 | 0 |
c66b33805afb47ffabcd1327f05a8d4a96361917 | rules/variables.js | rules/variables.js | // Variables http://eslint.org/docs/rules/#variables
module.exports = {
"rules": {
"init-declarations": [ "error", "always" ], // enforce or disallow variable initializations at definition
"no-catch-shadow": "error", // disallow the catch clause parameter name being the same as a variable in the outer scope
"n... | // Variables http://eslint.org/docs/rules/#variables
module.exports = {
"rules": {
"init-declarations": [ "error", "always" ], // enforce or disallow variable initializations at definition
"no-catch-shadow": "error", // disallow the catch clause parameter name being the same as a variable in the outer scope
"n... | Add linting of unused arguments | Add linting of unused arguments
| JavaScript | mit | LeanKit-Labs/eslint-config-leankit | javascript | ## Code Before:
// Variables http://eslint.org/docs/rules/#variables
module.exports = {
"rules": {
"init-declarations": [ "error", "always" ], // enforce or disallow variable initializations at definition
"no-catch-shadow": "error", // disallow the catch clause parameter name being the same as a variable in the ... | // Variables http://eslint.org/docs/rules/#variables
module.exports = {
"rules": {
"init-declarations": [ "error", "always" ], // enforce or disallow variable initializations at definition
"no-catch-shadow": "error", // disallow the catch clause parameter name being the same as a variable in the oute... | 2 | 0.111111 | 1 | 1 |
76c6383dba2aae3d9ed6d3daaa607952593b7db7 | src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php | src/Blogger/BlogBundle/Tests/Controller/PageControllerTest.php | <?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PageControllerTest extends WebTestCase
{
public function testAbout()
{
$client = static::createClient();
$crawler = $client->request('GET', '/about');
$this->assertEquals(... | <?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PageControllerTest extends WebTestCase
{
public function testAbout()
{
$client = static::createClient();
$crawler = $client->request('GET', '/about');
$this->assertEquals(... | Check the h2 has the blog title in it | Check the h2 has the blog title in it
| PHP | mit | moroztaras/blogger_2015 | php | ## Code Before:
<?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PageControllerTest extends WebTestCase
{
public function testAbout()
{
$client = static::createClient();
$crawler = $client->request('GET', '/about');
$thi... | <?php
namespace Blogger\BlogBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PageControllerTest extends WebTestCase
{
public function testAbout()
{
$client = static::createClient();
$crawler = $client->request('GET', '/about');
... | 3 | 0.09375 | 3 | 0 |
deea5060e95963bbd3475f507139e4ffdb436ae9 | templates/index.html | templates/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<title>Documentation for REST routes</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top"... | <!DOCTYPE html>
<html lang="en">
<head>
<title>Documentation for REST routes</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top"... | Make entire row a link instead of route | Make entire row a link instead of route
in ./templates/index.html the path is the link by default, instead of
the entire row. This provides poor user experience in tiny links to
click for short paths like '/' and unexpected behaviour as the entire
highlights on hover. Fix makes entire row the link.
| HTML | bsd-3-clause | lloydbenson/lout,evdevgit/lout,evdevgit/lout,lloydbenson/lout | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Documentation for REST routes</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse n... | <!DOCTYPE html>
<html lang="en">
<head>
<title>Documentation for REST routes</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse... | 28 | 0.777778 | 15 | 13 |
8223a053c2153793d0fd56051eee7e039ec393f2 | bit-ring.js | bit-ring.js | var assert = require('assert');
function BitRing(capacity) {
assert.ok(capacity < 32, 'Capacity must be less than 32');
this.capacity = capacity;
this.bits = 0;
this.pos = 0;
this.length = 0;
this._count = 0;
}
// Update the count and set or clear the next bit in the ring
BitRing.prototype.pus... | function BitRing(capacity) {
this.capacity = capacity;
this.bits = new Uint8ClampedArray(capacity);
this.pos = 0;
this.length = 0;
this._count = 0;
}
// Update the count and set or clear the next bit in the ring
BitRing.prototype.push = function(bool) {
var num = bool === true ? 1 : 0;
this... | Use a TypedArray instead of a number | Use a TypedArray instead of a number
| JavaScript | mit | uber/airlock | javascript | ## Code Before:
var assert = require('assert');
function BitRing(capacity) {
assert.ok(capacity < 32, 'Capacity must be less than 32');
this.capacity = capacity;
this.bits = 0;
this.pos = 0;
this.length = 0;
this._count = 0;
}
// Update the count and set or clear the next bit in the ring
BitRi... | - var assert = require('assert');
-
function BitRing(capacity) {
- assert.ok(capacity < 32, 'Capacity must be less than 32');
this.capacity = capacity;
- this.bits = 0;
+ this.bits = new Uint8ClampedArray(capacity);
this.pos = 0;
this.length = 0;
this._count = 0;
}
// Updat... | 9 | 0.321429 | 3 | 6 |
2ad78e4b4da048ef95def8df02b3008c165975eb | test/test-index.js | test/test-index.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const utils = require('../lib/utils.js');
const testRunner = require('sdk/test');
exports.testGet... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const utils = require('../lib/utils.js');
const testRunner = require('sdk/test');
exports.testGet... | Add null test for getHostURL() | Add null test for getHostURL()
| JavaScript | mpl-2.0 | alexgibson/uitour-config,alexgibson/uitour-config | javascript | ## Code Before:
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const utils = require('../lib/utils.js');
const testRunner = require('sdk/test');
... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
const utils = require('../lib/utils.js');
const testRunner = require('sdk/test')... | 3 | 0.157895 | 3 | 0 |
319237cb097de3505e4e2c9f3cf24911bd2140f8 | db/seeds.rb | db/seeds.rb | require 'faker'
10.times do
User.create(username: Faker::Internet.user_name, password: "password", first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, bio: Faker::Lorem.sentence, pic_url: Faker::Avatar.image, url: Faker::Internet.url, email: Faker::Internet.email, country: Faker::Address.country)
en... | require 'faker'
10.times do
User.create(username: Faker::Internet.user_name, password: "password", first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, bio: Faker::Lorem.sentence, pic_url: Faker::Avatar.image, url: Faker::Internet.url, email: Faker::Internet.email, country: Faker::Address.country)
en... | Create account for me to add admin powers to later | Create account for me to add admin powers to later
| Ruby | mit | mxngyn/StoryVine,SputterPuttRedux/storyvine_clone,SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,pearlshin/StoryVine,mxngyn/StoryVine,pearlshin/StoryVine,pearlshin/StoryVine,SputterPuttRedux/storyvine_clone | ruby | ## Code Before:
require 'faker'
10.times do
User.create(username: Faker::Internet.user_name, password: "password", first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, bio: Faker::Lorem.sentence, pic_url: Faker::Avatar.image, url: Faker::Internet.url, email: Faker::Internet.email, country: Faker::Add... | require 'faker'
10.times do
User.create(username: Faker::Internet.user_name, password: "password", first_name: Faker::Name.first_name, last_name: Faker::Name.last_name, bio: Faker::Lorem.sentence, pic_url: Faker::Avatar.image, url: Faker::Internet.url, email: Faker::Internet.email, country: Faker::Address.cou... | 4 | 0.148148 | 4 | 0 |
4dd98660e2e06f76cde251bd9fc8b00689768a52 | cineapp/configs/settings_test.cfg | cineapp/configs/settings_test.cfg | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# WTForms Config
WTF_CSRF_ENABLED = True
SECRET_KEY = '\xcaVt\xb7u\x91n/\xec\xf8\xc8,\xd4*\xe83\xe4\xe7A_\xf8}0\xaf'
API_URL = "http://api.themoviedb.org/3"
# Database Settings
SQLALCHEMY_DATABASE_URI = 'mysql://root@127.0.0.1/cineapp_ci'
SQLALCHEMY_MIGR... | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# WTForms Config
WTF_CSRF_ENABLED = True
SECRET_KEY = '\xcaVt\xb7u\x91n/\xec\xf8\xc8,\xd4*\xe83\xe4\xe7A_\xf8}0\xaf'
API_URL = "http://api.themoviedb.org/3"
# Database Settings
SQLALCHEMY_DATABASE_URI = 'mysql://root@127.0.0.1/cineapp_ci'
SQLALCHEMY_MIGR... | Define a log directory for Travis configuration. | Define a log directory for Travis configuration.
| INI | mit | ptitoliv/cineapp,ptitoliv/cineapp,ptitoliv/cineapp | ini | ## Code Before:
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# WTForms Config
WTF_CSRF_ENABLED = True
SECRET_KEY = '\xcaVt\xb7u\x91n/\xec\xf8\xc8,\xd4*\xe83\xe4\xe7A_\xf8}0\xaf'
API_URL = "http://api.themoviedb.org/3"
# Database Settings
SQLALCHEMY_DATABASE_URI = 'mysql://root@127.0.0.1/cineapp_ci'... | import os
basedir = os.path.abspath(os.path.dirname(__file__))
# WTForms Config
WTF_CSRF_ENABLED = True
SECRET_KEY = '\xcaVt\xb7u\x91n/\xec\xf8\xc8,\xd4*\xe83\xe4\xe7A_\xf8}0\xaf'
API_URL = "http://api.themoviedb.org/3"
# Database Settings
SQLALCHEMY_DATABASE_URI = 'mysql://root@127.0.0.1/cinea... | 3 | 0.125 | 3 | 0 |
67cfd96b4ed5bc33d109a8ae7036c7d50a449c88 | test/cookbooks/lxctests/recipes/install_lxc.rb | test/cookbooks/lxctests/recipes/install_lxc.rb | if node['platform'] == 'ubuntu' && node['platform_version'].to_i == 12
package 'python-software-properties' do
action :nothing
end.run_action(:install)
end
execute 'add-apt-repository ppa:ubuntu-lxc/daily' do
action :nothing
end.run_action(:run)
execute 'apt-get update' do
action :nothing
end.run_action(:... | if node['platform'] == 'ubuntu' && node['platform_version'].to_i == 12
execute 'apt-get update' do
action :nothing
end.run_action(:run)
package 'python-software-properties' do
action :nothing
end.run_action(:install)
package 'make' do
action :nothing
end.run_action(:install)
end
execute 'add-... | Fix LXC install on Ubuntu 12 | Fix LXC install on Ubuntu 12
| Ruby | apache-2.0 | chef/chef-provisioning-lxc | ruby | ## Code Before:
if node['platform'] == 'ubuntu' && node['platform_version'].to_i == 12
package 'python-software-properties' do
action :nothing
end.run_action(:install)
end
execute 'add-apt-repository ppa:ubuntu-lxc/daily' do
action :nothing
end.run_action(:run)
execute 'apt-get update' do
action :nothing
... | if node['platform'] == 'ubuntu' && node['platform_version'].to_i == 12
+ execute 'apt-get update' do
+ action :nothing
+ end.run_action(:run)
+
package 'python-software-properties' do
+ action :nothing
+ end.run_action(:install)
+
+ package 'make' do
action :nothing
end.run_action(:ins... | 8 | 0.25 | 8 | 0 |
117d1b470f8c03b4f4e332a95ccfcfebdadb8f52 | pyproject.toml | pyproject.toml | [build-system]
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
skip-string-normalization = true
[tool.setuptools_scm]
[tool.pytest-enabler.black]
addopts = "--black"
[tool.pytest-enabler.mypy]
addopts = "--mypy"
[tool.pytest-enabler.flake8]
addopts ... | [build-system]
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
skip-string-normalization = true
[tool.setuptools_scm]
[tool.pytest-enabler.black]
addopts = "--black"
[tool.pytest-enabler.mypy]
addopts = "--mypy"
[tool.pytest-enabler.flake8]
# disabl... | Disable flake8 due to incompatibility. | Disable flake8 due to incompatibility.
| TOML | apache-2.0 | python/importlib_metadata | toml | ## Code Before:
[build-system]
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
skip-string-normalization = true
[tool.setuptools_scm]
[tool.pytest-enabler.black]
addopts = "--black"
[tool.pytest-enabler.mypy]
addopts = "--mypy"
[tool.pytest-enabler.... | [build-system]
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
skip-string-normalization = true
[tool.setuptools_scm]
[tool.pytest-enabler.black]
addopts = "--black"
[tool.pytest-enabler.mypy]
addopts = "--mypy"
[tool... | 3 | 0.15 | 2 | 1 |
589a9d66803e323c66ef78ebf499cc49a6b65fe7 | Source/World/Block/BlockDatabase.h | Source/World/Block/BlockDatabase.h |
namespace Block
{
class Database
{
public:
static Database& get();
Database();
const BlockType& getBlock(uint8_t id) const;
const BlockType& getBlock(ID blockID) const;
const Texture::Atlas& getTextureAtlas() const;
private:
... |
namespace Block
{
class Database
{
public:
static Database& get();
const BlockType& getBlock(uint8_t id) const;
const BlockType& getBlock(ID blockID) const;
const Texture::Atlas& getTextureAtlas() const;
private:
Database();
... | Fix the block database singleton | Fix the block database singleton
| C | mit | Hopson97/HopsonCraft,Hopson97/HopsonCraft | c | ## Code Before:
namespace Block
{
class Database
{
public:
static Database& get();
Database();
const BlockType& getBlock(uint8_t id) const;
const BlockType& getBlock(ID blockID) const;
const Texture::Atlas& getTextureAtlas() const;
... |
namespace Block
{
class Database
{
public:
static Database& get();
- Database();
-
const BlockType& getBlock(uint8_t id) const;
const BlockType& getBlock(ID blockID) const;
const Texture::Atlas& getTextureAtlas() con... | 4 | 0.153846 | 2 | 2 |
a7078e65f1e35b000eb90326232b86568a03f201 | README.md | README.md | openbsd-scripts
===============
Simple OpenBSD shell scripts for various purposes
| openbsd-scripts
===============
Simple OpenBSD shell scripts for various purposes
### cvsn.sh
This script simple checks out whatever version of the OpenBSD source tree is
specified in the variables of the script.
### build_stable.sh
This script is designed to help you build OpenBSD-stable based on whatever you
hav... | Update for explanation of scripts. | Update for explanation of scripts.
| Markdown | isc | brycv/openbsd-scripts | markdown | ## Code Before:
openbsd-scripts
===============
Simple OpenBSD shell scripts for various purposes
## Instruction:
Update for explanation of scripts.
## Code After:
openbsd-scripts
===============
Simple OpenBSD shell scripts for various purposes
### cvsn.sh
This script simple checks out whatever version of the Op... | openbsd-scripts
===============
Simple OpenBSD shell scripts for various purposes
+
+ ### cvsn.sh
+
+ This script simple checks out whatever version of the OpenBSD source tree is
+ specified in the variables of the script.
+
+ ### build_stable.sh
+
+ This script is designed to help you build OpenBSD-stable... | 16 | 4 | 16 | 0 |
51a427a5dec9d8444bb49c6b8427574f26a1df85 | src/com/dumbster/smtp/SocketWrapper.java | src/com/dumbster/smtp/SocketWrapper.java | package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
public SocketWrapper(Socket socket) {
this.socket = sock... | package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
public SocketWrapper(Socket socket) throws IOException {
... | Set the socket timeout so clients can't DoS. Thank you, vladimirdyuzhev! | Set the socket timeout so clients can't DoS. Thank you, vladimirdyuzhev!
| Java | apache-2.0 | rjo1970/dumbster,petershmenos/dumbster,coopernurse/dumbster,pc1pranav/dumbster,MicroWorld/dumbster | java | ## Code Before:
package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
public SocketWrapper(Socket socket) {
th... | package com.dumbster.smtp;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketWrapper implements IOSource {
private Socket socket;
- public SocketWrapper(Socket socket) {
+ ... | 3 | 0.103448 | 2 | 1 |
941ccc505df6f40c3506caad92d4cc5272f53037 | FrontEnd/src/main/java/Client.java | FrontEnd/src/main/java/Client.java | import webserver.WebServer;
public class Client {
public static void main(String[] args) {
WebServer ws = new WebServer();
}
}
| import org.slf4j.MDC;
import webserver.WebServer;
public class Client {
public static void main(String[] args) {
MDC.put("pid", getPid());
WebServer ws = new WebServer();
MDC.clear();
}
private static String getPid() {
String processName = java.lang.management.ManagementFa... | Use process id in log file names to distinguish between different instances of the same component. | Use process id in log file names to distinguish between different instances of the same component.
| Java | apache-2.0 | IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring | java | ## Code Before:
import webserver.WebServer;
public class Client {
public static void main(String[] args) {
WebServer ws = new WebServer();
}
}
## Instruction:
Use process id in log file names to distinguish between different instances of the same component.
## Code After:
import org.slf4j.MDC;
impor... | + import org.slf4j.MDC;
import webserver.WebServer;
public class Client {
public static void main(String[] args) {
+ MDC.put("pid", getPid());
WebServer ws = new WebServer();
+ MDC.clear();
+ }
+
+ private static String getPid() {
+ String processName = java.la... | 8 | 1 | 8 | 0 |
114f06fb7e332246b2ce455c96f4da32d10ffa53 | app/controllers/HomeController.java | app/controllers/HomeController.java | package controllers;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.confighelper;
import views.html.index;
/**
* This controller contains an action to handle HTTP requests
* to the application's home page.
*/
public class HomeController extends Controller {
/**
* Renders the main h... | package controllers;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.confighelper;
import views.html.index;
/**
* This controller contains an action to handle HTTP requests
* to the application's home page.
*/
public class HomeController extends Controller {
/**
* Renders the main h... | Remove token from session once back on the index page | Remove token from session once back on the index page
| Java | apache-2.0 | btkelly/gnag-website,btkelly/gnag-website,btkelly/gnag-website | java | ## Code Before:
package controllers;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.confighelper;
import views.html.index;
/**
* This controller contains an action to handle HTTP requests
* to the application's home page.
*/
public class HomeController extends Controller {
/**
* Re... | package controllers;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.confighelper;
import views.html.index;
/**
* This controller contains an action to handle HTTP requests
* to the application's home page.
*/
public class HomeController extends Controller {
/... | 1 | 0.027778 | 1 | 0 |
fbc0a9e7818174177a96560a873432be5a53de05 | css/main.css | css/main.css | html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}
.overlay .clock {
font-family: sans-serif;
font-weight: bold;
fill: rgba(255, 255, 255, 0.5);
stroke: none;
stroke-width: 1px;
}
.route path {
fill: ... | html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}
.overlay, .overlay svg {
height: 100vh;
width: 100%;
}
.overlay .clock {
font-family: sans-serif;
font-weight: bold;
fill: rgba(255, 255, 255, 0.5);
... | Fix google maps overlay height/width bug | Fix google maps overlay height/width bug
| CSS | mit | allait/buslane,allait/buslane | css | ## Code Before:
html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}
.overlay .clock {
font-family: sans-serif;
font-weight: bold;
fill: rgba(255, 255, 255, 0.5);
stroke: none;
stroke-width: 1px;
}
.route... | html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
+ }
+
+
+ .overlay, .overlay svg {
+ height: 100vh;
+ width: 100%;
}
.overlay .clock {
font-family: sans-serif;
font-wei... | 6 | 0.162162 | 6 | 0 |
44496f53689106a1ba8827f7e8eb928988e94f5c | README.adoc | README.adoc | = Edge
Please see the link:app/README.adoc[app/README.adoc] for building and running the app.
| = Edge
Please see the <<app/README#>> for building and running the app.
| Use xref syntax for document links | Use xref syntax for document links
This works across different output types, and is the preferred form for
interdocument links like this. | AsciiDoc | mit | juxt/edge,juxt/edge | asciidoc | ## Code Before:
= Edge
Please see the link:app/README.adoc[app/README.adoc] for building and running the app.
## Instruction:
Use xref syntax for document links
This works across different output types, and is the preferred form for
interdocument links like this.
## Code After:
= Edge
Please see the <<app/README#>>... | = Edge
- Please see the link:app/README.adoc[app/README.adoc] for building and running the app.
? ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
+ Please see the <<app/README#>> for building and running the app.
? ^^ ^^^
| 2 | 0.666667 | 1 | 1 |
b8fc6cea709c367ca04b5814e69b586ec8eddfc8 | app/views/application/default/_side_heading.html.slim | app/views/application/default/_side_heading.html.slim | ul.text-light-normal
li
a href="http://article-level-metrics.plos.org/" Article Metrics
li
a href="https://github.com/articlemetrics/alm-report" articlemetrics/alm-report
| ul.text-light-normal
li
a href="http://articlemetrics.github.io" Article Metrics
li
a href="https://github.com/articlemetrics/alm-report" articlemetrics/alm-report
| Change Article Metrics link to articlemetrics.github.io | Change Article Metrics link to articlemetrics.github.io
| Slim | mit | mfenner/alm-report,lagotto/alm-report,articlemetrics/alm-report,articlemetrics/alm-report,lagotto/alm-report,mfenner/alm-report,lagotto/alm-report,articlemetrics/alm-report,mfenner/alm-report | slim | ## Code Before:
ul.text-light-normal
li
a href="http://article-level-metrics.plos.org/" Article Metrics
li
a href="https://github.com/articlemetrics/alm-report" articlemetrics/alm-report
## Instruction:
Change Article Metrics link to articlemetrics.github.io
## Code After:
ul.text-light-normal
li
a ... | ul.text-light-normal
li
- a href="http://article-level-metrics.plos.org/" Article Metrics
? ------- ^^ ------
+ a href="http://articlemetrics.github.io" Article Metrics
? ^^^^^^^^
li
a href="https://github.com/articlemetrics/al... | 2 | 0.4 | 1 | 1 |
3ecce93bcda56aa89176b6e4260906ab5ae5e648 | README.md | README.md |
Return a data type from a string representing the data type.
Mostly useful for using with [ndarray](https://github.com/mikolalysenko/ndarray)
where you would like instantiate a typed array of the same `array.dtype`.
## example
```js
var dtype = require('dtype')
var ndarray = require('ndarray')
var arr = ndarray(ne... |
Return a data type from a string representing the data type.
Mostly useful for using with [ndarray](https://github.com/mikolalysenko/ndarray)
where you would like instantiate a typed array of the same `array.dtype`.
## example
```js
var dtype = require('dtype')
var ndarray = require('ndarray')
var arr = ndarray(ne... | Update docs with new types | Update docs with new types
| Markdown | mit | shama/dtype,mattdesl/dtype | markdown | ## Code Before:
Return a data type from a string representing the data type.
Mostly useful for using with [ndarray](https://github.com/mikolalysenko/ndarray)
where you would like instantiate a typed array of the same `array.dtype`.
## example
```js
var dtype = require('dtype')
var ndarray = require('ndarray')
var ... |
Return a data type from a string representing the data type.
Mostly useful for using with [ndarray](https://github.com/mikolalysenko/ndarray)
where you would like instantiate a typed array of the same `array.dtype`.
## example
```js
var dtype = require('dtype')
var ndarray = require('ndarray')... | 5 | 0.1 | 5 | 0 |
f46716f33f024ed66b6d6f72bfd09616b7b4eb63 | src/main/resources/spring/security/applicationContext-security.xml | src/main/resources/spring/security/applicationContext-security.xml | <?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/security http://www.springfr... | <?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/security http://www.springfr... | Use the authentication entry point that we have created. | Use the authentication entry point that we have created.
| XML | apache-2.0 | phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/security htt... | <?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/security http://... | 6 | 0.25 | 3 | 3 |
ffb497ac013b005aff799cb4523e9b772519636b | connectors/amazon-alexa.js | connectors/amazon-alexa.js | 'use strict';
Connector.playerSelector = '#d-content';
Connector.getArtistTrack = () => {
if (isPlayingLiveRadio()) {
let songTitle = $('.d-queue-info .song-title').text();
return Util.splitArtistTrack(songTitle);
}
let artist = $('#d-info-text .d-sub-text-1').text();
let track = $('#d-info-text .d-main-text... | 'use strict';
Connector.playerSelector = '#d-content';
Connector.remainingTimeSelector = '.d-np-time-display.remaining-time';
Connector.currentTimeSelector = '.d-np-time-display.elapsed-time';
Connector.getDuration = () => {
let elapsed = Util.stringToSeconds($(Connector.currentTimeSelector).text());
let remaining... | Add duration parsing to Amazon Alexa connector | Add duration parsing to Amazon Alexa connector
| JavaScript | mit | david-sabata/web-scrobbler,carpet-berlin/web-scrobbler,david-sabata/web-scrobbler,carpet-berlin/web-scrobbler,galeksandrp/web-scrobbler,galeksandrp/web-scrobbler,fakelbst/Chrome-Last.fm-Scrobbler,alexesprit/web-scrobbler,inverse/web-scrobbler,fakelbst/Chrome-Last.fm-Scrobbler,inverse/web-scrobbler,alexesprit/web-scrobb... | javascript | ## Code Before:
'use strict';
Connector.playerSelector = '#d-content';
Connector.getArtistTrack = () => {
if (isPlayingLiveRadio()) {
let songTitle = $('.d-queue-info .song-title').text();
return Util.splitArtistTrack(songTitle);
}
let artist = $('#d-info-text .d-sub-text-1').text();
let track = $('#d-info-t... | 'use strict';
Connector.playerSelector = '#d-content';
+ Connector.remainingTimeSelector = '.d-np-time-display.remaining-time';
+ Connector.currentTimeSelector = '.d-np-time-display.elapsed-time';
+
+ Connector.getDuration = () => {
+ let elapsed = Util.stringToSeconds($(Connector.currentTimeSelector).text())... | 25 | 1.086957 | 24 | 1 |
85ed1e760869c0a3dc05580216cd242811249cb1 | lib/instana/collectors.rb | lib/instana/collectors.rb | require 'timers'
require 'instana/collectors/gc'
require 'instana/collectors/heap'
require 'instana/collectors/memory'
require 'instana/collectors/thread'
module Instana
module Collector
class << self
attr_accessor :interval
end
end
end
Instana.pry!
if ENV.key?('INSTANA_GEM_DEV')
::Instana::Collec... | require 'timers'
require 'instana/collectors/gc'
require 'instana/collectors/heap'
require 'instana/collectors/memory'
require 'instana/collectors/thread'
module Instana
module Collector
class << self
attr_accessor :interval
end
end
end
if ENV.key?('INSTANA_GEM_DEV')
::Instana::Collector.interval ... | Use fully qualified namespace calls. | Use fully qualified namespace calls.
| Ruby | mit | nguyenquangminh0711/ruby-sensor,nguyenquangminh0711/ruby-sensor,nguyenquangminh0711/ruby-sensor | ruby | ## Code Before:
require 'timers'
require 'instana/collectors/gc'
require 'instana/collectors/heap'
require 'instana/collectors/memory'
require 'instana/collectors/thread'
module Instana
module Collector
class << self
attr_accessor :interval
end
end
end
Instana.pry!
if ENV.key?('INSTANA_GEM_DEV')
:... | require 'timers'
require 'instana/collectors/gc'
require 'instana/collectors/heap'
require 'instana/collectors/memory'
require 'instana/collectors/thread'
module Instana
module Collector
class << self
attr_accessor :interval
end
end
end
- Instana.pry!
if ENV.key?('INSTA... | 15 | 0.394737 | 7 | 8 |
a8f945f511b5239bc9ad6535355e063cd050d414 | tools/generate-token.sh | tools/generate-token.sh |
cat /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64
echo '' # Add a newline
|
cat /dev/urandom | LC_CTYPE=C tr -cd 'a-z0-9' | tr -d '01oil' | head -c 64
echo '' # Add a newline
| Remove ambiguous characters from tokens | Remove ambiguous characters from tokens
These are handled by humans, and occasionally humans use typefaces
that do not distinguish between certain characters very well.
This is the reason that I and Q are excluded from UK vehicle
registration plates.
Remove the characters zero, one, oh, eye and ell from tokens. Make... | Shell | mit | alphagov/backdrop,alphagov/backdrop,alphagov/backdrop | shell | ## Code Before:
cat /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64
echo '' # Add a newline
## Instruction:
Remove ambiguous characters from tokens
These are handled by humans, and occasionally humans use typefaces
that do not distinguish between certain characters very well.
This is the reason that I an... |
- cat /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64
? ---
+ cat /dev/urandom | LC_CTYPE=C tr -cd 'a-z0-9' | tr -d '01oil' | head -c 64
? ++++++++++++++++
echo '' # Add a newline | 2 | 0.5 | 1 | 1 |
61b8f0103b5cef524567e9b7de8530ba18369e05 | less/components/modals.less | less/components/modals.less | .modal-backdrop {
background: rgba(0, 0, 0, 0.55);
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: @gb-zindex-modal;
}
.modalSize(@size) {
width: @size;
margin: 30px auto;
}
.modal {
border: 1px solid @gb-modal-border;
border-radius: @gb-modal-radiu... | .modal-backdrop {
background: rgba(0, 0, 0, 0.55);
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: @gb-zindex-modal;
}
.modalSize(@size) {
width: @size;
margin: 30px auto;
}
.modal {
border: 1px solid @gb-modal-border;
border-radius: @gb-modal-radiu... | Handle buttons on modal footer | Handle buttons on modal footer
| Less | apache-2.0 | GitbookIO/styleguide,rlugojr/styleguide,GitbookIO/styleguide,rlugojr/styleguide | less | ## Code Before:
.modal-backdrop {
background: rgba(0, 0, 0, 0.55);
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: @gb-zindex-modal;
}
.modalSize(@size) {
width: @size;
margin: 30px auto;
}
.modal {
border: 1px solid @gb-modal-border;
border-radius:... | .modal-backdrop {
background: rgba(0, 0, 0, 0.55);
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: @gb-zindex-modal;
}
.modalSize(@size) {
width: @size;
margin: 30px auto;
}
.modal {
border: 1px solid @gb-modal-border... | 5 | 0.1 | 5 | 0 |
c98a9834653f190158a737b820ea816df7c2b491 | src/main/java/com/mooo/aimmac23/node/VideoRecordController.java | src/main/java/com/mooo/aimmac23/node/VideoRecordController.java | package com.mooo.aimmac23.node;
import java.io.File;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class VideoRecordController {
private Thre... | package com.mooo.aimmac23.node;
import java.io.File;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class VideoRecordController {
private Thre... | Add a 1 second sleep before we stop recording, so we can hopefully see the browser closing | Add a 1 second sleep before we stop recording, so we can hopefully see the browser closing
| Java | mit | saikrishna321/selenium-video-node,saikrishna321/selenium-video-node,saikrishna321/selenium-video-node | java | ## Code Before:
package com.mooo.aimmac23.node;
import java.io.File;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class VideoRecordController {... | package com.mooo.aimmac23.node;
import java.io.File;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class VideoRecordControll... | 4 | 0.083333 | 4 | 0 |
d89a6ca6d80bf31edc0f85a6e362a66ea1857745 | jumpstart/templates/jumpstart/wait.html | jumpstart/templates/jumpstart/wait.html | {% extends "jumpstart/base.html" %}
{% block content %}
<div id="wait">
<h2>Now configuring your PANDA...</h2>
<p>Please enjoy some Rush while we set things up for you!</p>
<iframe width="420" height="315" src="http://www.youtube.com/embed/KNZru4JG_Uo" frameborder="0" allowfullscreen></iframe>
<div ... | {% extends "jumpstart/base.html" %}
{% block content %}
<div id="wait">
<h2>Now configuring your PANDA...</h2>
<p>Please enjoy some Rush while we set things up for you!</p>
<iframe width="420" height="315" src="http://www.youtube.com/embed/KNZru4JG_Uo" frameborder="0" allowfullscreen></iframe>
<div ... | Fix go to PANDA link. | Fix go to PANDA link.
| HTML | mit | PalmBeachPost/panda,ibrahimcesar/panda,PalmBeachPost/panda,newsapps/panda,datadesk/panda,datadesk/panda,NUKnightLab/panda,NUKnightLab/panda,ibrahimcesar/panda,ibrahimcesar/panda,pandaproject/panda,pandaproject/panda,NUKnightLab/panda,newsapps/panda,PalmBeachPost/panda,newsapps/panda,datadesk/panda,NUKnightLab/panda,new... | html | ## Code Before:
{% extends "jumpstart/base.html" %}
{% block content %}
<div id="wait">
<h2>Now configuring your PANDA...</h2>
<p>Please enjoy some Rush while we set things up for you!</p>
<iframe width="420" height="315" src="http://www.youtube.com/embed/KNZru4JG_Uo" frameborder="0" allowfullscreen></if... | {% extends "jumpstart/base.html" %}
{% block content %}
<div id="wait">
<h2>Now configuring your PANDA...</h2>
<p>Please enjoy some Rush while we set things up for you!</p>
<iframe width="420" height="315" src="http://www.youtube.com/embed/KNZru4JG_Uo" frameborder="0" allowfullscreen></... | 2 | 0.060606 | 1 | 1 |
2ce934b338e1fce7ed62f37d7e049b40ec62a1c0 | source/chip/STM32/STM32F1/Tupfile.lua | source/chip/STM32/STM32F1/Tupfile.lua | --
-- file: Tupfile.lua
--
-- author: Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
--
-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
-- distributed with this file, You can obtain one at http://mozilla... | --
-- file: Tupfile.lua
--
-- author: Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
--
-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
-- distributed with this file, You can obtain one at http://mozilla... | Use ARMv7-M.ld.sh linker script generator for STM32F1 in tup build | Use ARMv7-M.ld.sh linker script generator for STM32F1 in tup build | Lua | mpl-2.0 | jasmin-j/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,jasmin-j/distortos,jasmin-j/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,DISTORTEC/distortos,CezaryGapinski/distortos,jasmin-j/distortos,jasmin-j/distortos | lua | ## Code Before:
--
-- file: Tupfile.lua
--
-- author: Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
--
-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
-- distributed with this file, You can obtain one a... | --
-- file: Tupfile.lua
--
-- author: Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
--
-- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
-- distributed with this file, You can obtain one at ... | 7 | 0.269231 | 5 | 2 |
c49aa7f2f6bd622eb2d2ba8d5ea30f135aaccb87 | tests/run_tests.sh | tests/run_tests.sh | npm install soda
npm install assert
npm install nano
git clone https://github.com/daleharvey/CORS-Proxy.git
cd CORS-Proxy
export PORT=2020
node server.js &
node_pid=$!
cd ..
python -m SimpleHTTPServer &
python_pid=$!
sleep 3
java -jar tests/Sauce-Connect.jar pouchdb 97de9ee0-2712-49f0-9b17-4b9751d79073 &
java_pid=$!
sl... | cd CORS-Proxy
node server.js &
node_pid=$!
cd ..
python -m SimpleHTTPServer &
python_pid=$!
sleep 3
java -jar tests/Sauce-Connect.jar pouchdb 97de9ee0-2712-49f0-9b17-4b9751d79073 &
java_pid=$!
sleep 60
git_hash=`git rev-list HEAD --max-count=1`
echo ${git_hash}
node tests/run_saucelabs.js ${git_hash}
kill -9 $node_pid
... | Remove the npm install and git clone from the test script. | Remove the npm install and git clone from the test script.
| Shell | apache-2.0 | cshum/pouchdb,nicolasbrugneaux/pouchdb,lakhansamani/pouchdb,pouchdb/pouchdb,slaskis/pouchdb,daleharvey/pouchdb,mattbailey/pouchdb,tohagan/pouchdb,shimaore/pouchdb,ramdhavepreetam/pouchdb,slang800/pouchdb,daleharvey/pouchdb,KlausTrainer/pouchdb,janraasch/pouchdb,mwksl/pouchdb,evidenceprime/pouchdb,nickcolley/pouchdb,mar... | shell | ## Code Before:
npm install soda
npm install assert
npm install nano
git clone https://github.com/daleharvey/CORS-Proxy.git
cd CORS-Proxy
export PORT=2020
node server.js &
node_pid=$!
cd ..
python -m SimpleHTTPServer &
python_pid=$!
sleep 3
java -jar tests/Sauce-Connect.jar pouchdb 97de9ee0-2712-49f0-9b17-4b9751d79073 ... | - npm install soda
- npm install assert
- npm install nano
- git clone https://github.com/daleharvey/CORS-Proxy.git
cd CORS-Proxy
- export PORT=2020
node server.js &
node_pid=$!
cd ..
python -m SimpleHTTPServer &
python_pid=$!
sleep 3
java -jar tests/Sauce-Connect.jar pouchdb 97de9ee0-2712-49f0-9b17-4b9... | 5 | 0.238095 | 0 | 5 |
badddd6aa9533a01e07477174dc7422ee4941014 | wsgi.py | wsgi.py |
from newrelic import agent
agent.initialize()
from paste.deploy import loadapp
from raven.middleware import Sentry
application = loadapp('config:production.ini',
relative_to='yithlibraryserver/config-templates')
application = agent.WSGIApplicationWrapper(Sentry(application))
|
import os
import os.path
from newrelic import agent
agent.initialize()
from paste.deploy import loadapp
from pyramid.paster import setup_logging
from raven.middleware import Sentry
from waitress import serve
basedir= os.path.dirname(os.path.realpath(__file__))
conf_file = os.path.join(
basedir,
'yithlibrary... | Read the conf file using absolute paths | Read the conf file using absolute paths
| Python | agpl-3.0 | lorenzogil/yith-library-server,lorenzogil/yith-library-server,lorenzogil/yith-library-server | python | ## Code Before:
from newrelic import agent
agent.initialize()
from paste.deploy import loadapp
from raven.middleware import Sentry
application = loadapp('config:production.ini',
relative_to='yithlibraryserver/config-templates')
application = agent.WSGIApplicationWrapper(Sentry(application))
##... | +
+ import os
+ import os.path
from newrelic import agent
agent.initialize()
from paste.deploy import loadapp
+ from pyramid.paster import setup_logging
from raven.middleware import Sentry
+ from waitress import serve
- application = loadapp('config:production.ini',
- relative_to... | 20 | 2 | 18 | 2 |
f332af468e92df800bcd6685344427c7bcb36961 | config/settings.yml | config/settings.yml | mail_from: no-reply@helpwithcourtfees.dsd.io
mail_reply_to: enquiries@helpwithcourtfees.dsd.io
mail_tech_support: fee-remissions@digital.justice.gov.uk
mail_feedback: trial-feedback@digital.justice.gov.uk
| mail_from: no-reply@helpwithcourtfees.dsd.io
mail_reply_to: enquiries@helpwithcourtfees.dsd.io
mail_tech_support: helpwithfees.support@digital.justice.gov.uk
mail_feedback: trial-feedback@digital.justice.gov.uk
| Update the tech support email address | Update the tech support email address
| YAML | mit | ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp | yaml | ## Code Before:
mail_from: no-reply@helpwithcourtfees.dsd.io
mail_reply_to: enquiries@helpwithcourtfees.dsd.io
mail_tech_support: fee-remissions@digital.justice.gov.uk
mail_feedback: trial-feedback@digital.justice.gov.uk
## Instruction:
Update the tech support email address
## Code After:
mail_from: no-reply@helpwith... | mail_from: no-reply@helpwithcourtfees.dsd.io
mail_reply_to: enquiries@helpwithcourtfees.dsd.io
- mail_tech_support: fee-remissions@digital.justice.gov.uk
? ^ ^^^^^^^^^
+ mail_tech_support: helpwithfees.support@digital.justice.gov.uk
? ++++++++ ^^^^^^^ ^
mail_feedback: ... | 2 | 0.5 | 1 | 1 |
7862a79487aa10adc768d31b4f96ad475747b1a5 | core/src/main/scala/com/lynbrookrobotics/potassium/events/ContinuousEvent.scala | core/src/main/scala/com/lynbrookrobotics/potassium/events/ContinuousEvent.scala | package com.lynbrookrobotics.potassium.events
import com.lynbrookrobotics.potassium.Clock
import squants.Time
case class EventPolling(clock: Clock, period: Time)
class ContinuousEvent(condition: => Boolean)(implicit polling: EventPolling) {
val onStartSource = new ImpulseEventSource
val onEndSource = new Impulse... | package com.lynbrookrobotics.potassium.events
import com.lynbrookrobotics.potassium.Clock
import com.lynbrookrobotics.potassium.tasks.{ContinuousTask, Task}
import squants.Time
case class EventPolling(clock: Clock, period: Time)
class ContinuousEvent(condition: => Boolean)(implicit polling: EventPolling) {
val onS... | Add ability to trigger a continuous task from a continuous event | Add ability to trigger a continuous task from a continuous event
| Scala | mit | Team846/potassium,Team846/potassium | scala | ## Code Before:
package com.lynbrookrobotics.potassium.events
import com.lynbrookrobotics.potassium.Clock
import squants.Time
case class EventPolling(clock: Clock, period: Time)
class ContinuousEvent(condition: => Boolean)(implicit polling: EventPolling) {
val onStartSource = new ImpulseEventSource
val onEndSour... | package com.lynbrookrobotics.potassium.events
import com.lynbrookrobotics.potassium.Clock
+ import com.lynbrookrobotics.potassium.tasks.{ContinuousTask, Task}
import squants.Time
case class EventPolling(clock: Clock, period: Time)
class ContinuousEvent(condition: => Boolean)(implicit polling: EventPo... | 6 | 0.166667 | 6 | 0 |
2e7cdc80f1dda9046f02c97d457826cbab077aa7 | .travis.yml | .travis.yml | language: cpp
compiler: gcc
before_install: sudo apt-get install -qq libx11-dev libxrandr-dev libasound2-dev libgl1-mesa-dev
doxygen graphviz
script: exit 0 && ./cmake_gcc.sh -DENABLE_64BIT=1 -DENABLE_LUAJIT=1 -DENABLE_LUAJIT_AMALG=1
-DENABLE_SAMPLES=1 -DENABLE_TOOLS=1 -DENABLE_EXTRAS=1 -DENABLE_DOCS_QUIET=1 && cd
... | language: cpp
compiler: gcc
before_install: sudo apt-get install -qq libx11-dev libxrandr-dev libasound2-dev libgl1-mesa-dev doxygen graphviz
#script: ./cmake_gcc.sh -DENABLE_64BIT=1 -DENABLE_LUAJIT=1 -DENABLE_LUAJIT_AMALG=1 -DENABLE_SAMPLES=1 -DENABLE_TOOLS=1 -DENABLE_EXTRAS=1 -DENABLE_DOCS_QUIET=1 && cd Build && make... | Test site documentation deployment using Travis CI. | Test site documentation deployment using Travis CI.
| YAML | mit | SuperWangKai/Urho3D,tommy3/Urho3D,victorholt/Urho3D,kostik1337/Urho3D,codedash64/Urho3D,SuperWangKai/Urho3D,c4augustus/Urho3D,urho3d/Urho3D,PredatorMF/Urho3D,rokups/Urho3D,eugeneko/Urho3D,helingping/Urho3D,fire/Urho3D-1,bacsmar/Urho3D,bacsmar/Urho3D,carnalis/Urho3D,iainmerrick/Urho3D,fire/Urho3D-1,MonkeyFirst/Urho3D,or... | yaml | ## Code Before:
language: cpp
compiler: gcc
before_install: sudo apt-get install -qq libx11-dev libxrandr-dev libasound2-dev libgl1-mesa-dev
doxygen graphviz
script: exit 0 && ./cmake_gcc.sh -DENABLE_64BIT=1 -DENABLE_LUAJIT=1 -DENABLE_LUAJIT_AMALG=1
-DENABLE_SAMPLES=1 -DENABLE_TOOLS=1 -DENABLE_EXTRAS=1 -DENABLE_DOC... | language: cpp
compiler: gcc
- before_install: sudo apt-get install -qq libx11-dev libxrandr-dev libasound2-dev libgl1-mesa-dev
+ before_install: sudo apt-get install -qq libx11-dev libxrandr-dev libasound2-dev libgl1-mesa-dev doxygen graphviz
? ... | 8 | 0.727273 | 3 | 5 |
36c6b7e70c21b261dcb39568a17fd1cd353a25db | htmlify.py | htmlify.py | def getHTML(tag, contents=None, newLine=True, **parameters):
construct = "<" + tag
for paramName, paramContent in parameters.items():
construct += " " + paramName + "=" + paramContent
if contents is not None:
construct += ">" + contents + "</" + tag + ">"
else:
construct += ">" + "</" + tag + ">"
if newLine:... | def getHTML(tag, contents=None, newLine=True, **parameters):
construct = "<" + tag
for paramName, paramContent in parameters.items():
if type(paramContent) == str:
construct += " " + paramName + "=\"" + paramContent + "\""
if contents is not None:
construct += ">" + contents + "</" + tag + ">"
else:
constr... | Add quotes to values htmlified | Add quotes to values htmlified
| Python | apache-2.0 | ISD-Sound-and-Lights/InventoryControl | python | ## Code Before:
def getHTML(tag, contents=None, newLine=True, **parameters):
construct = "<" + tag
for paramName, paramContent in parameters.items():
construct += " " + paramName + "=" + paramContent
if contents is not None:
construct += ">" + contents + "</" + tag + ">"
else:
construct += ">" + "</" + tag + ... | def getHTML(tag, contents=None, newLine=True, **parameters):
construct = "<" + tag
for paramName, paramContent in parameters.items():
+ if type(paramContent) == str:
- construct += " " + paramName + "=" + paramContent
+ construct += " " + paramName + "=\"" + paramContent + "\""
? + ... | 6 | 0.206897 | 4 | 2 |
111af0d784e61756810ccbb1f199f62d26210714 | conf/trunk_coverage_test-select.cfg | conf/trunk_coverage_test-select.cfg | [exclude]
# upgrade_through_versions_test runs as a standalone job
upgrade_through_versions_test.py
offline_tools_test.py:TestOfflineTools.sstableofflinerelevel_test
| [exclude]
# upgrade_through_versions_test runs as a standalone job
upgrade_through_versions_test.py
# CSTAR-218 - server hang on these tests:
offline_tools_test.py:TestOfflineTools.sstableofflinerelevel_test
materialized_views_test.py:TestMaterializedViewsConsistency.single_partition_consistent_reads_after_write_test
| Exclude single_partition_consistent_reads_after_write_test during coverage run | Exclude single_partition_consistent_reads_after_write_test during coverage run
| INI | apache-2.0 | spodkowinski/cassandra-dtest,beobal/cassandra-dtest,thobbs/cassandra-dtest,spodkowinski/cassandra-dtest,thobbs/cassandra-dtest,krummas/cassandra-dtest,mambocab/cassandra-dtest,iamaleksey/cassandra-dtest,riptano/cassandra-dtest,stef1927/cassandra-dtest,snazy/cassandra-dtest,carlyeks/cassandra-dtest,stef1927/cassandra-dt... | ini | ## Code Before:
[exclude]
# upgrade_through_versions_test runs as a standalone job
upgrade_through_versions_test.py
offline_tools_test.py:TestOfflineTools.sstableofflinerelevel_test
## Instruction:
Exclude single_partition_consistent_reads_after_write_test during coverage run
## Code After:
[exclude]
# upgrade_throug... | [exclude]
# upgrade_through_versions_test runs as a standalone job
upgrade_through_versions_test.py
+ # CSTAR-218 - server hang on these tests:
offline_tools_test.py:TestOfflineTools.sstableofflinerelevel_test
+ materialized_views_test.py:TestMaterializedViewsConsistency.single_partition_consistent_reads_after_... | 2 | 0.5 | 2 | 0 |
0c72ade74c9ee33ae47d112052e197d989bcc795 | app/views/cache/cache-simpleidb.html | app/views/cache/cache-simpleidb.html | <div ng-include="'views/cache/cache-simpleidb-code.html'"></div>
<div>
<tabset>
<tab heading="simpleidb-view.html">
<pre hljs include="'views/cache/cache-simpleidb-code.html'" language="html"></pre>
</tab>
<tab heading="simpleidb-controller.js">
<pre hljs include="'s... | <div class="row">
<div class="col-md-6">
<div ng-include="'views/cache/cache-simpleidb-code.html'"></div>
</div>
<div class="col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">Explanation</div>
<div class="panel-body">
<p>IndexedD... | Add explanation panel for IndexedDB with explanation. | Add explanation panel for IndexedDB with explanation.
| HTML | mpl-2.0 | Appverse/appverse-web-html5-showcase,Appverse/appverse-web-html5-showcase | html | ## Code Before:
<div ng-include="'views/cache/cache-simpleidb-code.html'"></div>
<div>
<tabset>
<tab heading="simpleidb-view.html">
<pre hljs include="'views/cache/cache-simpleidb-code.html'" language="html"></pre>
</tab>
<tab heading="simpleidb-controller.js">
<pre ... | + <div class="row">
+ <div class="col-md-6">
- <div ng-include="'views/cache/cache-simpleidb-code.html'"></div>
+ <div ng-include="'views/cache/cache-simpleidb-code.html'"></div>
? ++++++++
+ </div>
+
+ <div class="col-md-6">
+ <div class="panel panel-primary">
+ <div class="pa... | 19 | 1.055556 | 18 | 1 |
d2debb5ab6a9c38a0e8ca207c768d37165397ee7 | source/tests/tests-main.cpp | source/tests/tests-main.cpp |
int main(int argc, char** argv)
{
const char* input = "Hello World!";
static const size_t output_size = 256;
char output[output_size];
wchar_t output_wide[output_size];
const char* input_seek;
size_t converted_size;
int32_t errors;
memset(output, 0, output_size * sizeof(char));
memset(output_wi... |
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
int result = RUN_ALL_TESTS();
if (result != 0)
{
std::cout << "Press any key to continue.";
int wait = 0;
std::cin >> wait;
}
return result;
} | Clean up main entry point. | Clean up main entry point.
| C++ | mit | tkelman/utf8rewind,tkelman/utf8rewind,tkelman/utf8rewind,tkelman/utf8rewind | c++ | ## Code Before:
int main(int argc, char** argv)
{
const char* input = "Hello World!";
static const size_t output_size = 256;
char output[output_size];
wchar_t output_wide[output_size];
const char* input_seek;
size_t converted_size;
int32_t errors;
memset(output, 0, output_size * sizeof(char));
memset(output... |
int main(int argc, char** argv)
{
- const char* input = "Hello World!";
-
- static const size_t output_size = 256;
- char output[output_size];
- wchar_t output_wide[output_size];
- const char* input_seek;
- size_t converted_size;
- int32_t errors;
-
- memset(output, 0, output_size * sizeof(char));
- m... | 60 | 0.983607 | 8 | 52 |
7222c346de697df299f6dd02bd2e9c8cc43d59f7 | README.md | README.md |
Adding patch right under the master
One more patch
HotFix - Patch
it was not enoough
|
Adding patch right under the master
One more patch
Third patch
| Revert "Cherry-picking >>>>>>> d58f144... Adding more details" | Revert "Cherry-picking >>>>>>> d58f144... Adding more details"
This reverts commit 674e524f356a0a294cd8ff73eed119b372466370.
| Markdown | mit | ivaylosharkov/eos-demo | markdown | ## Code Before:
Adding patch right under the master
One more patch
HotFix - Patch
it was not enoough
## Instruction:
Revert "Cherry-picking >>>>>>> d58f144... Adding more details"
This reverts commit 674e524f356a0a294cd8ff73eed119b372466370.
## Code After:
Adding patch right under the master
One more patch
Th... |
Adding patch right under the master
One more patch
+ Third patch
- HotFix - Patch
-
- it was not enoough | 4 | 0.5 | 1 | 3 |
3e0bf925f86b00256549597a85216ff6c9faba18 | cmd/influxd/run/command_test.go | cmd/influxd/run/command_test.go | package run_test
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
"github.com/influxdata/influxdb/cmd/influxd/run"
)
func TestCommand_PIDFile(t *testing.T) {
tmpdir, err := ioutil.TempDir(os.TempDir(), "influxd-test")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpdir)
pidFile := filepa... | package run_test
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
"github.com/influxdata/influxdb/cmd/influxd/run"
)
func TestCommand_PIDFile(t *testing.T) {
tmpdir, err := ioutil.TempDir(os.TempDir(), "influxd-test")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpdir)
pidFile := filepa... | Use random port in PID file test | Use random port in PID file test
| Go | mit | vladlopes/influxdb,li-ang/influxdb,benbjohnson/influxdb,influxdb/influxdb,linearb/influxdb,influxdb/influxdb,influxdata/influxdb,influxdata/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,benbjohnson/influxdb,benbjohnson/influxdb,mark-rushakoff/influxdb... | go | ## Code Before:
package run_test
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
"github.com/influxdata/influxdb/cmd/influxd/run"
)
func TestCommand_PIDFile(t *testing.T) {
tmpdir, err := ioutil.TempDir(os.TempDir(), "influxd-test")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpdir)
p... | package run_test
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
"github.com/influxdata/influxdb/cmd/influxd/run"
)
func TestCommand_PIDFile(t *testing.T) {
tmpdir, err := ioutil.TempDir(os.TempDir(), "influxd-test")
if err != nil {
t.Fatal(err)
}
defer os.R... | 8 | 0.186047 | 8 | 0 |
1d1261f030c0987fed7d4f8abaad46edcfe21ca7 | assets/css/custom.css | assets/css/custom.css | /**
* Icons
*/
.icon > svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
}
.icon > svg path {
fill: $grey-color;
}
| /**
* Icons
*/
.icon > svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
}
.icon > svg path {
fill: $grey-color;
}
.page-title {
text-shadow: 0 0 15px rgba(0,0,0,0.5);
}
| Include text-shadow for homepage title | Include text-shadow for homepage title
| CSS | mit | eleanorakh/eleanorakh.github.io,eleanorakh/eleanorakh.github.io,eleanorakh/eleanorakh.github.io | css | ## Code Before:
/**
* Icons
*/
.icon > svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
}
.icon > svg path {
fill: $grey-color;
}
## Instruction:
Include text-shadow for homepage title
## Code After:
/**
* Icons
*/
.icon > svg {
display: inline-block;
width: 16p... | /**
* Icons
*/
.icon > svg {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
}
.icon > svg path {
fill: $grey-color;
}
+
+ .page-title {
+ text-shadow: 0 0 15px rgba(0,0,0,0.5);
+ } | 4 | 0.307692 | 4 | 0 |
c269647f7081d5a4f90608a9b10c2bba1d976f68 | test-ci.ps1 | test-ci.ps1 | $testProjects = Get-ChildItem test/HTTPlease*.csproj -File -Recurse
ForEach ($testProject In $testProjects) {
dotnet test $testProject
}
| $testDir = Join-Path $PSScriptRoot 'test'
$testProjects = Get-ChildItem $testDir -Recurse -File -Filter '*.Tests.csproj'
ForEach ($testProject In $testProjects) {
dotnet test --no-build $testProject.FullName
}
| Improve running of tests during CI build. | Improve running of tests during CI build.
| PowerShell | mit | tintoy/HTTPlease,tintoy/HTTPlease | powershell | ## Code Before:
$testProjects = Get-ChildItem test/HTTPlease*.csproj -File -Recurse
ForEach ($testProject In $testProjects) {
dotnet test $testProject
}
## Instruction:
Improve running of tests during CI build.
## Code After:
$testDir = Join-Path $PSScriptRoot 'test'
$testProjects = Get-ChildItem $testDir -Recurse ... | - $testProjects = Get-ChildItem test/HTTPlease*.csproj -File -Recurse
+ $testDir = Join-Path $PSScriptRoot 'test'
+ $testProjects = Get-ChildItem $testDir -Recurse -File -Filter '*.Tests.csproj'
ForEach ($testProject In $testProjects) {
- dotnet test $testProject
+ dotnet test --no-build $testProject.FullName
... | 5 | 1 | 3 | 2 |
0cc601758dfd01b3f6dd413d356e90988f2821cb | web/app/components/Wallet/BalanceClaimAssetTotal.jsx | web/app/components/Wallet/BalanceClaimAssetTotal.jsx | import React, {Component, PropTypes} from "react";
import connectToStores from "alt/utils/connectToStores"
import BalanceClaimActiveStore from "stores/BalanceClaimActiveStore"
import FormattedAsset from "components/Utility/FormattedAsset";
@connectToStores
export default class BalanceClaimAssetTotals extends Componen... | import React, {Component, PropTypes} from "react";
import connectToStores from "alt/utils/connectToStores"
import BalanceClaimActiveStore from "stores/BalanceClaimActiveStore"
import FormattedAsset from "components/Utility/FormattedAsset";
@connectToStores
export default class BalanceClaimAssetTotals extends Componen... | Clarify working: no balance claims | Clarify working: no balance claims
| JSX | mit | BitSharesEurope/testnet.bitshares.eu,BunkerChainLabsInc/freedomledger-wallet,bitshares/bitshares-ui,openledger/graphene-ui,poqdavid/graphene-ui,openledger/graphene-ui,poqdavid/graphene-ui,poqdavid/graphene-ui,BunkerChainLabsInc/freedomledger-wallet,BitSharesEurope/testnet.bitshares.eu,BitSharesEurope/graphene-ui-testne... | jsx | ## Code Before:
import React, {Component, PropTypes} from "react";
import connectToStores from "alt/utils/connectToStores"
import BalanceClaimActiveStore from "stores/BalanceClaimActiveStore"
import FormattedAsset from "components/Utility/FormattedAsset";
@connectToStores
export default class BalanceClaimAssetTotals ... | import React, {Component, PropTypes} from "react";
import connectToStores from "alt/utils/connectToStores"
import BalanceClaimActiveStore from "stores/BalanceClaimActiveStore"
import FormattedAsset from "components/Utility/FormattedAsset";
@connectToStores
export default class BalanceClaimAssetTotals ... | 2 | 0.054054 | 1 | 1 |
a5288e8c7b997f1f4116bd35e9d8dade533a0add | src/errors.coffee | src/errors.coffee | class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor: ->
super
module.export... | class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor: ->
super
class OutcomeR... | Add a new error for the outcomes service | Add a new error for the outcomes service
| CoffeeScript | mit | dmapper/ims-lti | coffeescript | ## Code Before:
class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor: ->
supe... | class ConsumerError extends Error
constructor: ->
super
class StoreError extends Error
constructor: ->
super
class ParameterError extends Error
constructor: ->
super
class SignatureError extends Error
constructor: ->
super
class NonceError extends Error
constructor:... | 4 | 0.181818 | 4 | 0 |
99d37fba3ceaa0287efaa5e6fb7c270304961c0b | src/main/resources/pl1tb10.sql | src/main/resources/pl1tb10.sql | version https://git-lfs.github.com/spec/v1
oid sha256:acee4ec99930c401f2a9078a246ba54f8758d119dbd7b87fdbeec2af33dcad4e
size 2916070
| version https://git-lfs.github.com/spec/v1
oid sha256:bbf3c2458396e1b5e1f7ec9a228f16c91eb36e227e4a9d01730b04297fc0c516
size 52540217
| Update SQL dump with latest release | Update SQL dump with latest release
| SQL | apache-2.0 | ProgrammingLife2016/PL1-2016,ProgrammingLife2016/PL1-2016,ProgrammingLife2016/PL1-2016 | sql | ## Code Before:
version https://git-lfs.github.com/spec/v1
oid sha256:acee4ec99930c401f2a9078a246ba54f8758d119dbd7b87fdbeec2af33dcad4e
size 2916070
## Instruction:
Update SQL dump with latest release
## Code After:
version https://git-lfs.github.com/spec/v1
oid sha256:bbf3c2458396e1b5e1f7ec9a228f16c91eb36e227e4a9d017... | version https://git-lfs.github.com/spec/v1
- oid sha256:acee4ec99930c401f2a9078a246ba54f8758d119dbd7b87fdbeec2af33dcad4e
- size 2916070
+ oid sha256:bbf3c2458396e1b5e1f7ec9a228f16c91eb36e227e4a9d01730b04297fc0c516
+ size 52540217 | 4 | 1.333333 | 2 | 2 |
727674673e36fbe262011c80d59c25c06b0d5201 | client/app/components/dashboards/edit-dashboard-dialog.html | client/app/components/dashboards/edit-dashboard-dialog.html | <div class="modal-header">
<button type="button" class="close" ng-click="$ctrl.dismiss()" ng-disabled="$ctrl.saveInProgress" aria-hidden="true">×</button>
<h4 class="modal-title">Edit: {{$ctrl.dashboard.name}}</h4>
</div>
<div class="modal-body">
<p>
<input type="text" class="form-control" placeholder="... | <div class="modal-header">
<button type="button" class="close" ng-click="$ctrl.dismiss()" ng-disabled="$ctrl.saveInProgress" aria-hidden="true">×</button>
<h4 class="modal-title">Dashboard name: {{$ctrl.dashboard.name}}</h4>
</div>
<div class="modal-body">
<p>
<input type="text" class="form-control" pla... | Make Edit/New dashboard modal more obvious | Make Edit/New dashboard modal more obvious
| HTML | bsd-2-clause | getredash/redash,moritz9/redash,alexanderlz/redash,moritz9/redash,44px/redash,hudl/redash,getredash/redash,getredash/redash,hudl/redash,moritz9/redash,denisov-vlad/redash,crowdworks/redash,denisov-vlad/redash,chriszs/redash,hudl/redash,alexanderlz/redash,alexanderlz/redash,44px/redash,crowdworks/redash,chriszs/redash,m... | html | ## Code Before:
<div class="modal-header">
<button type="button" class="close" ng-click="$ctrl.dismiss()" ng-disabled="$ctrl.saveInProgress" aria-hidden="true">×</button>
<h4 class="modal-title">Edit: {{$ctrl.dashboard.name}}</h4>
</div>
<div class="modal-body">
<p>
<input type="text" class="form-contro... | <div class="modal-header">
<button type="button" class="close" ng-click="$ctrl.dismiss()" ng-disabled="$ctrl.saveInProgress" aria-hidden="true">×</button>
- <h4 class="modal-title">Edit: {{$ctrl.dashboard.name}}</h4>
? ^ ^^
+ <h4 class="modal-title">Dashboard name: {{$ctrl.das... | 2 | 0.1 | 1 | 1 |
29b3976575e5952e44be9d0be2890f24a4170393 | doc/ex/opacity.rb | doc/ex/opacity.rb | require 'RMagick'
canvas = Magick::Image.new(260, 125)
gc = Magick::Draw.new
gc.fill('black')
gc.rectangle(10,20, 250,90)
gc.stroke('blue')
gc.fill('yellow')
gc.stroke_width(10)
gc.opacity('25%')
gc.roundrectangle(20,20, 60,90, 5,5)
gc.opacity('50%')
gc.roundrectangle(80,20, 120,90, 5,5)
gc.opacity(0.75)
gc.roundr... | require 'RMagick'
canvas = Magick::Image.new(260, 125)
gc = Magick::Draw.new
gc.fill('black')
gc.rectangle(10,20, 250,90)
gc.stroke('blue')
gc.fill('yellow')
gc.stroke_width(10)
gc.opacity('25%')
gc.roundrectangle(20,20, 60,90, 5,5)
gc.opacity('50%')
gc.roundrectangle(80,20, 120,90, 5,5)
gc.opacity(0.75)
gc.roundr... | Reset matte channel for better rendering | Reset matte channel for better rendering
| Ruby | mit | prognostikos/rmagick,apecherin/rmagick,mockdeep/rmagick,rmagick/rmagick,antonifs/rmagick,pecha7x/rmagick,apecherin/rmagick,chand3040/Rmagic,antonifs/rmagick,carsonreinke/rmagick,carsonreinke/rmagick,prognostikos/rmagick,jonmartindell/rmagick,antonifs/rmagick,carsonreinke/rmagick,pecha7x/rmagick,prognostikos/rmagick,rma... | ruby | ## Code Before:
require 'RMagick'
canvas = Magick::Image.new(260, 125)
gc = Magick::Draw.new
gc.fill('black')
gc.rectangle(10,20, 250,90)
gc.stroke('blue')
gc.fill('yellow')
gc.stroke_width(10)
gc.opacity('25%')
gc.roundrectangle(20,20, 60,90, 5,5)
gc.opacity('50%')
gc.roundrectangle(80,20, 120,90, 5,5)
gc.opacity... | require 'RMagick'
canvas = Magick::Image.new(260, 125)
gc = Magick::Draw.new
gc.fill('black')
gc.rectangle(10,20, 250,90)
gc.stroke('blue')
gc.fill('yellow')
gc.stroke_width(10)
gc.opacity('25%')
gc.roundrectangle(20,20, 60,90, 5,5)
gc.opacity('50%')
gc.roundrectangle(80,20, 120,90, ... | 3 | 0.081081 | 1 | 2 |
37aaf42f8c6325bf37d8b1f6266f49ae9d7c7d4a | .travis.yml | .travis.yml | language: php
php:
- '5.6'
- '7.0'
install:
- composer install
| language: php
script: phpunit --bootstrap src/autoload.php tests
php:
- '5.6'
- '7.0'
install:
- composer install
| Make Travis run phpunit with required args. | Make Travis run phpunit with required args.
| YAML | bsd-2-clause | imgix/imgix-php | yaml | ## Code Before:
language: php
php:
- '5.6'
- '7.0'
install:
- composer install
## Instruction:
Make Travis run phpunit with required args.
## Code After:
language: php
script: phpunit --bootstrap src/autoload.php tests
php:
- '5.6'
- '7.0'
install:
- composer install
| language: php
+ script: phpunit --bootstrap src/autoload.php tests
php:
- '5.6'
- '7.0'
install:
- composer install | 1 | 0.166667 | 1 | 0 |
5f4870eadd82ae09ffd01d419166c054ced2196b | app/templates/birdfeeder/index-signed-in.html | app/templates/birdfeeder/index-signed-in.html | {% extends "base/page.html" %}
{% block title %}{{ APP_NAME}} : Bird Feeder{% endblock %}
{% block subtitle %}Bird Feeder{% endblock %}
{% block intro %}
{% include "intro.snippet" %}
<p>You're signed in as {{ twitter_user.screen_name}}.
<a href="{{ sign_out_path }}">Sign out</a>.</p>
{% endblock %}
{% block ... | {% extends "base/page.html" %}
{% block title %}{{ APP_NAME}} : Bird Feeder{% endblock %}
{% block subtitle %}Bird Feeder{% endblock %}
{% block intro %}
{% include "intro.snippet" %}
<p>You're signed in as {{ twitter_user.screen_name}}.
<a href="{{ sign_out_path }}">Sign out</a>.</p>
{% endblock %}
{% block ... | Clarify what happens when a Bird Feeder feed URL is reset. | Clarify what happens when a Bird Feeder feed URL is reset.
| HTML | apache-2.0 | mihaip/streamspigot,mihaip/streamspigot,mihaip/streamspigot,mihaip/streamspigot | html | ## Code Before:
{% extends "base/page.html" %}
{% block title %}{{ APP_NAME}} : Bird Feeder{% endblock %}
{% block subtitle %}Bird Feeder{% endblock %}
{% block intro %}
{% include "intro.snippet" %}
<p>You're signed in as {{ twitter_user.screen_name}}.
<a href="{{ sign_out_path }}">Sign out</a>.</p>
{% endblo... | {% extends "base/page.html" %}
{% block title %}{{ APP_NAME}} : Bird Feeder{% endblock %}
{% block subtitle %}Bird Feeder{% endblock %}
{% block intro %}
{% include "intro.snippet" %}
<p>You're signed in as {{ twitter_user.screen_name}}.
<a href="{{ sign_out_path }}">Sign out</a>.</p>
{% ... | 4 | 0.125 | 2 | 2 |
ad92334950a29dbae2388c795bc086c71cc5649b | build/mocha-test.js | build/mocha-test.js | 'use strict';
require('../node_modules/babel-core/register');
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
reporter: 'dot',
... | 'use strict';
require('babel-register')({
presets: ['es2015']
});
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
reporter: 'dot... | Make mocha work with babel6 | Make mocha work with babel6
| JavaScript | apache-2.0 | projectfluent/fluent.js,projectfluent/fluent.js,stasm/l20n.js,projectfluent/fluent.js,zbraniecki/l20n.js,zbraniecki/fluent.js,zbraniecki/fluent.js,l20n/l20n.js | javascript | ## Code Before:
'use strict';
require('../node_modules/babel-core/register');
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
repo... | 'use strict';
- require('../node_modules/babel-core/register');
+ require('babel-register')({
+ presets: ['es2015']
+ });
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/en... | 4 | 0.190476 | 3 | 1 |
cd3656cb067fe6eaa035a5bc8cbbec8eff6fd47b | composer.json | composer.json | {
"name": "sschiau/particle",
"version": "2.2.2",
"repositories": [{
"type": "git",
"url": "git@github.com:sschiau/Particle.git"
}],
"license": "LICENSE.MD",
"authors": [{
"name": "Silviu Schiau",
"email": "pr@silviu.co",
"homepage": "http://www.silviu.co"... | {
"name": "sschiau/particle",
"version": "2.2.3",
"repositories": [{
"type": "git",
"url": "git@github.com:sschiau/Particle.git"
}],
"license": "MIT",
"authors": [{
"name": "Silviu Schiau",
"email": "pr@silviu.co",
"homepage": "http://www.silviu.co"
}]... | Change to valid SPDX license identifier | Change to valid SPDX license identifier
+ bump version to 2.2.3 | JSON | apache-2.0 | sschiau/Particle.php,sschiau/Particle | json | ## Code Before:
{
"name": "sschiau/particle",
"version": "2.2.2",
"repositories": [{
"type": "git",
"url": "git@github.com:sschiau/Particle.git"
}],
"license": "LICENSE.MD",
"authors": [{
"name": "Silviu Schiau",
"email": "pr@silviu.co",
"homepage": "http:... | {
"name": "sschiau/particle",
- "version": "2.2.2",
? ^
+ "version": "2.2.3",
? ^
"repositories": [{
"type": "git",
"url": "git@github.com:sschiau/Particle.git"
}],
- "license": "LICENSE.MD",
? ^ ^^^^^^^^
+ ... | 4 | 0.142857 | 2 | 2 |
38460a9fe52b1e60ce65bb2c17df9c6578ee26dc | app/templates/src/main/resources/config/_application.yml | app/templates/src/main/resources/config/_application.yml | management.security.enabled: true
security.basic.enabled: false
# Disable Jolokia - An http/json bridge for remote JMX access
endpoints.jolokia.enabled: false
# security configuration (this key should be unique for your application, and kept secret)
jhipster.security.rememberme.key: <%= baseName %>
async:
corePo... | management.security.enabled: true
security.basic.enabled: false
# Disable Jolokia - An http/json bridge for remote JMX access
endpoints.jolokia.enabled: false
# security configuration (this key should be unique for your application, and kept secret)
jhipster.security.rememberme.key: <%= baseName %>
# Disable the che... | Remove the validation of unknow properties | Remove the validation of unknow properties
| YAML | apache-2.0 | ctamisier/generator-jhipster,atomfrede/generator-jhipster,xetys/generator-jhipster,wmarques/generator-jhipster,dalbelap/generator-jhipster,xetys/generator-jhipster,jkutner/generator-jhipster,sendilkumarn/generator-jhipster,dimeros/generator-jhipster,cbornet/generator-jhipster,siliconharborlabs/generator-jhipster,daniel... | yaml | ## Code Before:
management.security.enabled: true
security.basic.enabled: false
# Disable Jolokia - An http/json bridge for remote JMX access
endpoints.jolokia.enabled: false
# security configuration (this key should be unique for your application, and kept secret)
jhipster.security.rememberme.key: <%= baseName %>
a... | management.security.enabled: true
security.basic.enabled: false
# Disable Jolokia - An http/json bridge for remote JMX access
endpoints.jolokia.enabled: false
# security configuration (this key should be unique for your application, and kept secret)
jhipster.security.rememberme.key: <%= baseName %>
+ ... | 5 | 0.119048 | 5 | 0 |
0c52ce47db4b79e7f1a08ea58296b69fbc58501a | README.md | README.md | Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Future Releases
===============
... | Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Version 1.1 Features
===========... | Update Readme with v1.1 features | Update Readme with v1.1 features
| Markdown | mit | wiganlatics/arithmetic-tester | markdown | ## Code Before:
Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Future Releases
... | Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
+ Version 1.1 ... | 5 | 0.3125 | 4 | 1 |
963f38a31ae7dd6966af603d7b1e638ed3842e81 | _posts/help/2015-01-14-shortcuts.md | _posts/help/2015-01-14-shortcuts.md | ---
layout: post
title: "Shortcuts"
date: 2015-06-11 04:23:18 MDT
categories: help
position: 6
---
`1` Toggle Drawer
`2` Focus Omnibar
`F` Navigate to Friends stream
`N` Navigate to Noise stream
`R` Open notifications
`=` Toggle grid mode for main content
`+` Toggle grid mode for drawer content
`?` Show hel... | ---
layout: post
title: "Shortcuts"
date: 2015-06-11 04:23:18 MDT
categories: help
position: 6
---
`2` Focus Omnibar
`F` Navigate to Friends stream
`N` Navigate to Noise stream
`R` Navigate to Notifications
`S` Navigate to Search
`D` Navigate to Discover
`=` Toggle grid mode for main content
`+` Toggle grid... | Update shortcuts for fast panels release. | Update shortcuts for fast panels release. | Markdown | mit | ello/wtf,ello/wtf,ello/wtf | markdown | ## Code Before:
---
layout: post
title: "Shortcuts"
date: 2015-06-11 04:23:18 MDT
categories: help
position: 6
---
`1` Toggle Drawer
`2` Focus Omnibar
`F` Navigate to Friends stream
`N` Navigate to Noise stream
`R` Open notifications
`=` Toggle grid mode for main content
`+` Toggle grid mode for drawer conte... | ---
layout: post
title: "Shortcuts"
date: 2015-06-11 04:23:18 MDT
categories: help
position: 6
---
- `1` Toggle Drawer
-
`2` Focus Omnibar
`F` Navigate to Friends stream
`N` Navigate to Noise stream
- `R` Open notifications
+ `R` Navigate to Notifications
+
+ `S` Navigate to Search... | 8 | 0.32 | 5 | 3 |
1c5b2be934de38ad34d75ac443da434cc4eeef13 | tutorials-master.md | tutorials-master.md | *Last Modified: INSERT_DATE*
## Getting Started
[tutorials/_getting_started.md]
## Data Collection
[tutorials/_data_collection.md]
## Data Viewing
[tutorials/_data_viewing.md]
## Data Analysis
[tutorials/_data_analysis.md]
## Protocols
[tutorials/_building_a_protocol.md]
## Macros
[tutorials/_building_a_mac... | *Last Modified: INSERT_DATE*
## Getting Started
[tutorials/_getting_started.md]
## Data Collection
[tutorials/_data_collection.md]
## Data Viewing
[tutorials/_data_viewing.md]
## Data Analysis
[tutorials/_data_analysis.md]
## Protocols
[tutorials/_building_a_protocol.md]
## Macros
[tutorials/_building_a_mac... | Update footer for tutorials master | Update footer for tutorials master
| Markdown | mit | Photosynq/PhotosynQ-Documentation | markdown | ## Code Before:
*Last Modified: INSERT_DATE*
## Getting Started
[tutorials/_getting_started.md]
## Data Collection
[tutorials/_data_collection.md]
## Data Viewing
[tutorials/_data_viewing.md]
## Data Analysis
[tutorials/_data_analysis.md]
## Protocols
[tutorials/_building_a_protocol.md]
## Macros
[tutorials... | *Last Modified: INSERT_DATE*
## Getting Started
[tutorials/_getting_started.md]
## Data Collection
[tutorials/_data_collection.md]
## Data Viewing
[tutorials/_data_viewing.md]
## Data Analysis
[tutorials/_data_analysis.md]
## Protocols
[tutorials/_building_a_protocol.... | 9 | 0.257143 | 4 | 5 |
633f84411e26201233e3c68c584b236363f79f62 | server/conf/vhosts/available/token.py | server/conf/vhosts/available/token.py | import core.provider.authentication as authentication
import core.notify.dispatcher as notify
import core.notify.plugins.available.changes as changes
import core.provider.storage as storage
import core.resource.base as resource
import conf.vhosts.available.default as default
class VHost(default.VHost):
host = ['lo... | import core.provider.authentication as authentication
import core.notify.dispatcher as notify
import core.notify.plugins.available.changes as changes
import core.provider.storage as storage
import core.resource.base as resource
import conf.vhosts.available.default as default
class VHost(default.VHost):
host = ['lo... | Allow access to root leaves. | Allow access to root leaves.
| Python | mit | slaff/attachix,slaff/attachix,slaff/attachix | python | ## Code Before:
import core.provider.authentication as authentication
import core.notify.dispatcher as notify
import core.notify.plugins.available.changes as changes
import core.provider.storage as storage
import core.resource.base as resource
import conf.vhosts.available.default as default
class VHost(default.VHost):... | import core.provider.authentication as authentication
import core.notify.dispatcher as notify
import core.notify.plugins.available.changes as changes
import core.provider.storage as storage
import core.resource.base as resource
import conf.vhosts.available.default as default
class VHost(default.VHost):... | 8 | 0.228571 | 8 | 0 |
331a18bcdc3016b05602119b7ddd1441809b9583 | test/browser.js | test/browser.js | var assert = chai.assert,
html = React.DOM.html,
title = React.DOM.title,
FrozenHead = ReactFrozenHead;
var page = function (pageTitle) {
return (
html(null,
FrozenHead(null,
title(null, pageTitle)
)
)
);
};
var App = React.createClass({
... | var assert = chai.assert,
html = React.DOM.html,
title = React.DOM.title,
FrozenHead = ReactFrozenHead;
var page = function (pageTitle) {
return (
html(null,
FrozenHead(null,
title(null, pageTitle)
)
)
);
};
var App = React.createClass({
... | Test that mounted heads change the title correctly | Test that mounted heads change the title correctly
| JavaScript | mit | matthewwithanm/react-frozenhead | javascript | ## Code Before:
var assert = chai.assert,
html = React.DOM.html,
title = React.DOM.title,
FrozenHead = ReactFrozenHead;
var page = function (pageTitle) {
return (
html(null,
FrozenHead(null,
title(null, pageTitle)
)
)
);
};
var App = React.cr... | var assert = chai.assert,
html = React.DOM.html,
title = React.DOM.title,
FrozenHead = ReactFrozenHead;
var page = function (pageTitle) {
return (
html(null,
FrozenHead(null,
title(null, pageTitle)
)
)
);
};
va... | 11 | 0.268293 | 11 | 0 |
4787189407ac810d39f835a21c0ac6f3d470d96a | docs/using.rst | docs/using.rst | .. _ref-using:
====================
Sites using Pipeline
====================
The following sites are a partial list of people using Pipeline.
Are you using pipeline and not being in this list? Drop us a line.
20 Minutes
----------
For their internal tools: http://www.20minutes.fr
The Molly Project
-------------... | .. _ref-using:
====================
Sites using Pipeline
====================
The following sites are a partial list of people using Pipeline.
Are you using pipeline and not being in this list? Drop us a line.
20 Minutes
----------
For their internal tools: http://www.20minutes.fr
Borsala
-------
Borsala is the... | Add Mozilla and re-order projects. | Add Mozilla and re-order projects.
| reStructuredText | mit | cyberdelia/django-pipeline,kronion/django-pipeline,beedesk/django-pipeline,lydell/django-pipeline,kronion/django-pipeline,d9pouces/django-pipeline,botify-labs/django-pipeline,jazzband/django-pipeline,skirsdeda/django-pipeline,sideffect0/django-pipeline,skolsuper/django-pipeline,d9pouces/django-pipeline,botify-labs/djan... | restructuredtext | ## Code Before:
.. _ref-using:
====================
Sites using Pipeline
====================
The following sites are a partial list of people using Pipeline.
Are you using pipeline and not being in this list? Drop us a line.
20 Minutes
----------
For their internal tools: http://www.20minutes.fr
The Molly Proje... | .. _ref-using:
====================
Sites using Pipeline
====================
The following sites are a partial list of people using Pipeline.
Are you using pipeline and not being in this list? Drop us a line.
20 Minutes
----------
For their internal tools: http://www.20minutes.fr
-... | 35 | 0.636364 | 21 | 14 |
486e9743c486cc68e69744e6f9b5c56e639f3058 | components/DappDetailBodyContentDescription.vue | components/DappDetailBodyContentDescription.vue | <template>
<div class="component-DappDetailBodyContentDescription">
<div class="description">
<p v-for="(paragraph, index) in formattedDescription" :key="index" class="paragraph">{{ paragraph }}</p>
</div>
</div>
</template>
<script>
export default {
computed: {
formattedDescription () {
... | <template>
<div class="component-DappDetailBodyContentDescription">
<div class="description">
<p v-for="(paragraph, index) in formattedDescription" :key="index" class="paragraph">{{ paragraph }}</p>
</div>
</div>
</template>
<script>
export default {
computed: {
formattedDescription () {
... | Break paragraphs with nbsp text | Break paragraphs with nbsp text
| Vue | mit | state-of-the-dapps/sotd-www,state-of-the-dapps/sotd-www | vue | ## Code Before:
<template>
<div class="component-DappDetailBodyContentDescription">
<div class="description">
<p v-for="(paragraph, index) in formattedDescription" :key="index" class="paragraph">{{ paragraph }}</p>
</div>
</div>
</template>
<script>
export default {
computed: {
formattedDescrip... | <template>
<div class="component-DappDetailBodyContentDescription">
<div class="description">
<p v-for="(paragraph, index) in formattedDescription" :key="index" class="paragraph">{{ paragraph }}</p>
</div>
</div>
</template>
<script>
export default {
computed: {
formatte... | 1 | 0.021739 | 1 | 0 |
a57fc87fe12a8941fecae8483870532026e3ee8f | roles/apigee-tls-keystore/tasks/main.yml | roles/apigee-tls-keystore/tasks/main.yml | ---
- block:
- block:
- name: Copy keystore to {{ inventory_hostname }}:{{ apigee_tls_keystore_dest }}
copy:
src: '{{ apigee_tls_keystore_src }}'
dest: '{{ apigee_tls_keystore_dest }}'
when: apigee_tls_keystore_src is not none
- block:
- name: Remove keystore
file:
... | ---
- block:
- block:
- name: Copy keystore to {{ inventory_hostname }}:{{ apigee_tls_keystore_dest }}
copy:
src: '{{ apigee_tls_keystore_src }}'
dest: '{{ apigee_tls_keystore_dest }}'
when: apigee_tls_keystore_src is not none
- block:
- name: Remove keystore
file:
... | Remove redundant variables passed to keytool | Remove redundant variables passed to keytool
| YAML | apache-2.0 | apigee/ansible-install,apigee/ansible-install | yaml | ## Code Before:
---
- block:
- block:
- name: Copy keystore to {{ inventory_hostname }}:{{ apigee_tls_keystore_dest }}
copy:
src: '{{ apigee_tls_keystore_src }}'
dest: '{{ apigee_tls_keystore_dest }}'
when: apigee_tls_keystore_src is not none
- block:
- name: Remove keystore
... | ---
- block:
- block:
- name: Copy keystore to {{ inventory_hostname }}:{{ apigee_tls_keystore_dest }}
copy:
src: '{{ apigee_tls_keystore_src }}'
dest: '{{ apigee_tls_keystore_dest }}'
when: apigee_tls_keystore_src is not none
- block:
- name: ... | 2 | 0.057143 | 1 | 1 |
efd527f3da0b5151dfe9eead87f99c9fd2f2b552 | client/views/pages/pages_show/pages_show.html | client/views/pages/pages_show/pages_show.html | <template name="PagesShow">
<ol class="breadcrumb">
<li><a href="/">Letterhead</a></li>
<li><a href="{{pathFor 'pages.index'}}">Pages</a></li>
<li>{{title}}</li>
</ol>
<article>
{{#if editTitle}}
{{> PageTitleEdit}}
{{else}}
{{> PageTitleShow}}
{{/if}}
{{#each paragraphs}... | <template name="PagesShow">
<ol class="breadcrumb">
<li><a href="/">Letterhead</a></li>
<li><a href="{{pathFor 'pages.index'}}">Pages</a></li>
<li>{{title}}</li>
</ol>
<article>
{{#if editTitle}}
{{> PageTitleEdit}}
{{else}}
{{> PageTitleShow}}
{{/if}}
{{#each paragraphs}... | Hide editing elements when logged out | Hide editing elements when logged out
| HTML | mit | bojicas/letterhead,bojicas/letterhead | html | ## Code Before:
<template name="PagesShow">
<ol class="breadcrumb">
<li><a href="/">Letterhead</a></li>
<li><a href="{{pathFor 'pages.index'}}">Pages</a></li>
<li>{{title}}</li>
</ol>
<article>
{{#if editTitle}}
{{> PageTitleEdit}}
{{else}}
{{> PageTitleShow}}
{{/if}}
{{#... | <template name="PagesShow">
<ol class="breadcrumb">
<li><a href="/">Letterhead</a></li>
<li><a href="{{pathFor 'pages.index'}}">Pages</a></li>
<li>{{title}}</li>
</ol>
<article>
{{#if editTitle}}
{{> PageTitleEdit}}
{{else}}
{{> PageTitleShow}}
{{/if}... | 25 | 0.833333 | 14 | 11 |
d6435071d4e2305bd39d4c3f26b0bd59672f0254 | app/views/intellectual_objects/_facets.html.erb | app/views/intellectual_objects/_facets.html.erb | <% # main container for facets/limits menu -%>
<% if has_facet_values? %>
<div id="facets" class="facets sidenav">
<h4 data-toggle="collapse" data-target=".facets-collapse">
<a class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>... | <%= render 'catalog/facets' %>
| Add the active/all widget to the intellectual_object view. | Add the active/all widget to the intellectual_object view.
| HTML+ERB | apache-2.0 | APTrust/fluctus,APTrust/fluctus,APTrust/fluctus | html+erb | ## Code Before:
<% # main container for facets/limits menu -%>
<% if has_facet_values? %>
<div id="facets" class="facets sidenav">
<h4 data-toggle="collapse" data-target=".facets-collapse">
<a class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="i... | + <%= render 'catalog/facets' %>
- <% # main container for facets/limits menu -%>
- <% if has_facet_values? %>
- <div id="facets" class="facets sidenav">
-
-
- <h4 data-toggle="collapse" data-target=".facets-collapse">
-
- <a class="btn btn-navbar">
- <span class="icon-bar"></span>
-... | 20 | 1.052632 | 1 | 19 |
60646c4d16c675bc222a7b9311218bdda4e4b5a1 | README.md | README.md | openprocurement.client.python
=============================
Reference implementation of a client for OpenProcurement API.
This product may contain traces of nuts.
| [](https://travis-ci.org/openprocurement/openprocurement.client.python)
[](https://cove... | Add badges for Travis and Coveralls | Add badges for Travis and Coveralls
| Markdown | apache-2.0 | openprocurement/openprocurement.client.python,mykhaly/openprocurement.client.python,Leits/openprocurement.client.python | markdown | ## Code Before:
openprocurement.client.python
=============================
Reference implementation of a client for OpenProcurement API.
This product may contain traces of nuts.
## Instruction:
Add badges for Travis and Coveralls
## Code After:
[](https://travis-ci.org/openprocurement/openprocurement.client.python)
+ [](https://... | 3 | 0.5 | 3 | 0 |
13a61a73f41a8e275d17c164e1b300677d1ed8c7 | clone_and_start.sh | clone_and_start.sh | set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY" ]
then
echo '+++ GIT_SSH_KEY provided'
echo "$GIT_SSH_KEY"
echo "$GIT_SSH_KEY" > git_ssh_key
chmod 600 git_ssh_key
export GIT_SSH_COMMAND... | set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY_BASE64" ]
then
echo '+++ GIT_SSH_KEY_BASE64 provided'
echo "$GIT_SSH_KEY_BASE64" > git_ssh_key.b64
base64 -d git_ssh_key.b64 > g... | Switch to base64 encoding of SSH key | Switch to base64 encoding of SSH key
| Shell | mit | henkel/docker-node-from-git | shell | ## Code Before:
set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY" ]
then
echo '+++ GIT_SSH_KEY provided'
echo "$GIT_SSH_KEY"
echo "$GIT_SSH_KEY" > git_ssh_key
chmod 600 git_ssh_key
export... | set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
- echo '+++ GIT_URL ' $GIT_URL
+ echo '+++ GIT_URL ' $GIT_URL
? +++++++
- echo '+++ GIT_BRANCH ' $GIT_BRANCH
+ echo '+++ GIT_BRANCH ' $GIT_BRANCH
? +++++++
- if [... | 14 | 0.482759 | 7 | 7 |
372ff487c068da2b31cd25e550e8dcd7bd12d17d | openprocurement/tender/esco/adapters.py | openprocurement/tender/esco/adapters.py | from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender
class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
""" ESCO Tender configuration adapter """
name = "esco Tender configurator"
model = Tender
# P... | from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender
class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
""" ESCO Tender configuration adapter """
name = "esco Tender configurator"
model = Tender
# P... | Add awarding criteria field to configurator | Add awarding criteria field to configurator
| Python | apache-2.0 | openprocurement/openprocurement.tender.esco | python | ## Code Before:
from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender
class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
""" ESCO Tender configuration adapter """
name = "esco Tender configurator"
model =... | from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender
class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
""" ESCO Tender configuration adapter """
name = "esco Tender configurator"
model... | 3 | 0.25 | 3 | 0 |
0d9881039b97b55423c58627f08b34a6db861af2 | test/Primitive/StringgTest.php | test/Primitive/StringgTest.php | <?php
namespace test\Widmogrod\Primitive;
use Widmogrod\FantasyLand\Monoid;
use Widmogrod\Helpful\MonoidLaws;
use Widmogrod\Primitive\Stringg;
use Widmogrod\Functional as f;
class StringgTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider provideRandomizedData
*/
public function test_it_... | <?php
namespace test\Widmogrod\Primitive;
use Widmogrod\FantasyLand\Monoid;
use Widmogrod\Functional as f;
use Widmogrod\Helpful\MonoidLaws;
use Widmogrod\Primitive\Product;
use Widmogrod\Primitive\Stringg;
class StringgTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider provideRandomizedData
... | Improve code coverage for String | Improve code coverage for String
| PHP | mit | widmogrod/php-functional | php | ## Code Before:
<?php
namespace test\Widmogrod\Primitive;
use Widmogrod\FantasyLand\Monoid;
use Widmogrod\Helpful\MonoidLaws;
use Widmogrod\Primitive\Stringg;
use Widmogrod\Functional as f;
class StringgTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider provideRandomizedData
*/
public f... | <?php
namespace test\Widmogrod\Primitive;
use Widmogrod\FantasyLand\Monoid;
+ use Widmogrod\Functional as f;
use Widmogrod\Helpful\MonoidLaws;
+ use Widmogrod\Primitive\Product;
use Widmogrod\Primitive\Stringg;
- use Widmogrod\Functional as f;
class StringgTest extends \PHPUnit\Framework\TestCase
... | 13 | 0.325 | 12 | 1 |
828ec4dd81c992cf9475ed243485378b6c8b7cab | app/controllers/login.js | app/controllers/login.js | import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Controller.extend({
needs: 'application',
auth_token: Ember.computed.alias('controllers.application.auth_token'),
currentUser: Ember.computed.alias('controllers.application.currentUser'),
email: null,
password: null,
response: null... | import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Controller.extend({
needs: 'application',
auth_token: Ember.computed.alias('controllers.application.auth_token'),
currentUser: Ember.computed.alias('controllers.application.currentUser'),
email: null,
password: null,
response: null... | Hide password reset instruction alert after 3 seconds | Hide password reset instruction alert after 3 seconds
| JavaScript | mit | stevenwu/er-ember | javascript | ## Code Before:
import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Controller.extend({
needs: 'application',
auth_token: Ember.computed.alias('controllers.application.auth_token'),
currentUser: Ember.computed.alias('controllers.application.currentUser'),
email: null,
password: null,
... | import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Controller.extend({
needs: 'application',
auth_token: Ember.computed.alias('controllers.application.auth_token'),
currentUser: Ember.computed.alias('controllers.application.currentUser'),
email: null,
password: null... | 3 | 0.06383 | 3 | 0 |
abeba3df022368c8802664bd67f696642efbc96b | webpack.config.js | webpack.config.js | var path = require('path')
module.exports = {
entry: [
'./lib/index.js'
],
output: {
path: path.join(__dirname, '/dist/'),
filename: 'jose.min.js',
library: 'JOSE',
libraryTarget: 'var'
},
externals: {
webcrypto: 'crypto'
},
devtool: 'source-map'
}
| var path = require('path')
module.exports = {
entry: [
'./lib/index.js'
],
output: {
path: path.join(__dirname, '/dist/'),
filename: 'jose.min.js',
library: 'JOSE',
libraryTarget: 'var'
},
externals: {
'text-encoding': 'TextEncoder',
webcrypto: 'crypto'
},
devtool: 'source-map... | Add 'text-encoding' to webpack externals | chore(npm): Add 'text-encoding' to webpack externals
| JavaScript | mit | anvilresearch/jose | javascript | ## Code Before:
var path = require('path')
module.exports = {
entry: [
'./lib/index.js'
],
output: {
path: path.join(__dirname, '/dist/'),
filename: 'jose.min.js',
library: 'JOSE',
libraryTarget: 'var'
},
externals: {
webcrypto: 'crypto'
},
devtool: 'source-map'
}
## Instruction:... | var path = require('path')
module.exports = {
entry: [
'./lib/index.js'
],
output: {
path: path.join(__dirname, '/dist/'),
filename: 'jose.min.js',
library: 'JOSE',
libraryTarget: 'var'
},
externals: {
+ 'text-encoding': 'TextEncoder',
webcrypto: 'crypt... | 1 | 0.058824 | 1 | 0 |
9b6a4ea80b366d54296764dfbd9d8a98276e265a | themes/mao/src/scss/components/_section-headline.scss | themes/mao/src/scss/components/_section-headline.scss | .c-section-headline {
// color: setting-color(c, gray);
text-transform: uppercase;
font-size: setting-font-size(m);
}
| .c-section-headline {
text-transform: uppercase;
font-size: setting-font-size(m);
}
| Remove left over code comment | Remove left over code comment
| SCSS | mit | maoberlehner/markus-oberlehner-net,maoberlehner/markus-oberlehner-net | scss | ## Code Before:
.c-section-headline {
// color: setting-color(c, gray);
text-transform: uppercase;
font-size: setting-font-size(m);
}
## Instruction:
Remove left over code comment
## Code After:
.c-section-headline {
text-transform: uppercase;
font-size: setting-font-size(m);
}
| .c-section-headline {
- // color: setting-color(c, gray);
text-transform: uppercase;
font-size: setting-font-size(m);
} | 1 | 0.2 | 0 | 1 |
38709e7f84b3a72c7a50cd4e3a92c9f1b05f4e4a | .github/workflows/reviewdog.yml | .github/workflows/reviewdog.yml | name: reviewdog on GitHub Action
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Set up Go
uses: actions/setup-go@v1... | name: reviewdog on GitHub Action
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Set up Go
uses: actions/setup-go@v1... | Use -runners=golint for GitHub Actions | Use -runners=golint for GitHub Actions
| YAML | mit | haya14busa/reviewdog,haya14busa/reviewdog,haya14busa/reviewdog | yaml | ## Code Before:
name: reviewdog on GitHub Action
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Set up Go
uses: act... | name: reviewdog on GitHub Action
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- name: Dump GitHub Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Set up Go
... | 2 | 0.05 | 1 | 1 |
e399b804b022d21855aa81510e106d96214071b3 | pylearn2/scripts/datasets/download_cifar10.sh | pylearn2/scripts/datasets/download_cifar10.sh | set -e
[ -z "$PYLEARN2_DATA_PATH" ] && echo "PYLEARN2_DATA_PATH is not set" && exit 1
CIFAR10_DIR=$PYLEARN2_DATA_PATH/cifar10
[ -d $CIFAR10_DIR ] && echo "$CIFAR10_DIR already exists." && exit 1
mkdir -p $CIFAR10_DIR
echo "Downloading and unzipping CIFAR-10 dataset into $CIFAR10_DIR..."
pushd $CIFAR10_DIR > /dev/null... | [ -z "$PYLEARN2_DATA_PATH" ] && echo "PYLEARN2_DATA_PATH is not set" && exit 1
CIFAR10_DIR=$PYLEARN2_DATA_PATH/cifar10
which wget > /dev/null
WGET=$?
which curl > /dev/null
CURL=$?
if [ "$WGET" -eq 0 ]; then
DL_CMD="wget --no-verbose -O -"
elif [ "$CURL" -eq 0 ]; then
DL_CMD="curl --silent -o -"
else
echo... | Add curl as a download option. | Add curl as a download option.
| Shell | bsd-3-clause | woozzu/pylearn2,kose-y/pylearn2,fishcorn/pylearn2,jeremyfix/pylearn2,Refefer/pylearn2,pkainz/pylearn2,caidongyun/pylearn2,shiquanwang/pylearn2,goodfeli/pylearn2,matrogers/pylearn2,abergeron/pylearn2,junbochen/pylearn2,KennethPierce/pylearnk,lisa-lab/pylearn2,bartvm/pylearn2,jeremyfix/pylearn2,pkainz/pylearn2,ashhher3/p... | shell | ## Code Before:
set -e
[ -z "$PYLEARN2_DATA_PATH" ] && echo "PYLEARN2_DATA_PATH is not set" && exit 1
CIFAR10_DIR=$PYLEARN2_DATA_PATH/cifar10
[ -d $CIFAR10_DIR ] && echo "$CIFAR10_DIR already exists." && exit 1
mkdir -p $CIFAR10_DIR
echo "Downloading and unzipping CIFAR-10 dataset into $CIFAR10_DIR..."
pushd $CIFAR10... | - set -e
[ -z "$PYLEARN2_DATA_PATH" ] && echo "PYLEARN2_DATA_PATH is not set" && exit 1
CIFAR10_DIR=$PYLEARN2_DATA_PATH/cifar10
+
+ which wget > /dev/null
+ WGET=$?
+ which curl > /dev/null
+ CURL=$?
+
+ if [ "$WGET" -eq 0 ]; then
+ DL_CMD="wget --no-verbose -O -"
+ elif [ "$CURL" -eq 0 ]; then
+ DL_CMD="... | 17 | 1.545455 | 15 | 2 |
20c94bea3d2648df41b137b8096a4b2b0983d05f | update-imported-docs.sh | update-imported-docs.sh | git clone https://github.com/kubernetes/kubernetes.git k8s
cd k8s
git checkout gh-pages
cd ..
while read line || [[ -n ${line} ]]; do
IFS=': ' read -a myarray <<< "${line}"
# echo "arraypos0: ${myarray[0]}"
# echo "arraypos1: ${myarray[1]}"
# echo "arraypos2: ${myarray[2]}"
if [ "${myarray[1]}" = "path" ]; t... | git clone https://github.com/kubernetes/kubernetes.git k8s
cd k8s
git checkout gh-pages
cd ..
while read line || [[ -n ${line} ]]; do
IFS=': ' read -a myarray <<< "${line}"
# echo "arraypos0: ${myarray[0]}"
# echo "arraypos1: ${myarray[1]}"
# echo "arraypos2: ${myarray[2]}"
if [ "${myarray[1]}" = "path" ]; t... | Fix for Directory not empty error | Fix for Directory not empty error
| Shell | apache-2.0 | AlainRoy/alainroy.github.io,rata/kubernetes.github.io,aidevops/kubernetes.github.io,erictune/erictune.github.io,hurf/kubernetes-docs-cn,hurf/kubernetes-docs-cn,erictune/erictune.github.io,aidevops/kubernetes.github.io,rata/kubernetes.github.io,rata/kubernetes.github.io,erictune/erictune.github.io,mfanjie/kubernetes.git... | shell | ## Code Before:
git clone https://github.com/kubernetes/kubernetes.git k8s
cd k8s
git checkout gh-pages
cd ..
while read line || [[ -n ${line} ]]; do
IFS=': ' read -a myarray <<< "${line}"
# echo "arraypos0: ${myarray[0]}"
# echo "arraypos1: ${myarray[1]}"
# echo "arraypos2: ${myarray[2]}"
if [ "${myarray[1]... | git clone https://github.com/kubernetes/kubernetes.git k8s
cd k8s
git checkout gh-pages
cd ..
while read line || [[ -n ${line} ]]; do
IFS=': ' read -a myarray <<< "${line}"
# echo "arraypos0: ${myarray[0]}"
# echo "arraypos1: ${myarray[1]}"
# echo "arraypos2: ${myarray[2]}"
if [ "${myar... | 1 | 0.033333 | 1 | 0 |
03257aa14d1930e44c83f797c8a4fb0df3bd85b0 | .travis.yml | .travis.yml | language: php
php:
- '5.6'
install:
- composer install
services:
- postgresql
addons:
postgresql: "9.3"
before_script:
- cp test/php/.travis.config.php test/php/config.php
- npm install
- bower install
script:
- phpunit
- grunt jasmine
| language: php
php:
- '5.6'
install:
- composer install
services:
- postgresql
addons:
postgresql: "9.3"
before_script:
- cp test/php/.travis.config.php test/php/config.php
- npm install
- node_modules/bower/bin/bower install
script:
- phpunit
- grunt jasmine
| Adjust bower command to use local node version | Adjust bower command to use local node version
| YAML | mit | molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec | yaml | ## Code Before:
language: php
php:
- '5.6'
install:
- composer install
services:
- postgresql
addons:
postgresql: "9.3"
before_script:
- cp test/php/.travis.config.php test/php/config.php
- npm install
- bower install
script:
- phpunit
- grunt jasmine
## Instruction:
Adjust bower command to use ... | language: php
php:
- '5.6'
install:
- composer install
services:
- postgresql
addons:
postgresql: "9.3"
before_script:
- cp test/php/.travis.config.php test/php/config.php
- npm install
- - bower install
+ - node_modules/bower/bin/bower install
script:
- phpu... | 2 | 0.095238 | 1 | 1 |
bae8761a1b54bd3a26a3de2b4e013b9082684c81 | lib/builderator/util.rb | lib/builderator/util.rb | module Builderator
module Util
class << self
def to_array(arg)
arg.is_a?(Array) ? arg : [arg]
end
def from_tags(aws_tags)
{}.tap { |tt| aws_tags.each { |t| tt[t.key.to_s] = t.value } }
end
def filter(resources, filters = {})
resources.select do |_, r|
... | module Builderator
module Util
class << self
def to_array(arg)
arg.is_a?(Array) ? arg : [arg]
end
def from_tags(aws_tags)
{}.tap { |tt| aws_tags.each { |t| tt[t.key.to_s] = t.value } }
end
def filter(resources, filters = {})
resources.select do |_, r|
... | Add a helper to reference files relative to pwd | Add a helper to reference files relative to pwd
| Ruby | mit | rapid7/builderator,rapid7/builderator | ruby | ## Code Before:
module Builderator
module Util
class << self
def to_array(arg)
arg.is_a?(Array) ? arg : [arg]
end
def from_tags(aws_tags)
{}.tap { |tt| aws_tags.each { |t| tt[t.key.to_s] = t.value } }
end
def filter(resources, filters = {})
resources.select ... | module Builderator
module Util
class << self
def to_array(arg)
arg.is_a?(Array) ? arg : [arg]
end
def from_tags(aws_tags)
{}.tap { |tt| aws_tags.each { |t| tt[t.key.to_s] = t.value } }
end
def filter(resources, filters = {})
resourc... | 4 | 0.081633 | 4 | 0 |
128c25babff0c82b71fe429ee9c30379d1a56145 | init-package/init-org.el | init-package/init-org.el | (use-package org
:mode ("\\.org$" . org-mode)
:config
(progn
(require 'org-install)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(use-package org-bullets
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mo... | (use-package org
:mode ("\\.org$" . org-mode)
:config
(progn
(require 'org-install)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq org-agenda-files '("~/Dropbox/org"))
(use-package org-bullets
:config
(add... | Add org files to agenda files list | Add org files to agenda files list
| Emacs Lisp | mit | tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs | emacs-lisp | ## Code Before:
(use-package org
:mode ("\\.org$" . org-mode)
:config
(progn
(require 'org-install)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(use-package org-bullets
:config
(add-hook 'org-mode-hook (lambda ()... | (use-package org
:mode ("\\.org$" . org-mode)
:config
(progn
(require 'org-install)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
+ (setq org-agenda-files '("~/Dropbox/org"))
(use-package org-bullets
... | 1 | 0.071429 | 1 | 0 |
ad91e370da3464acfb5d9c3a172da75a83f858c6 | app/controllers/admin/profiles_controller.rb | app/controllers/admin/profiles_controller.rb | class Admin::ProfilesController < Admin::BaseController
helper Admin::UsersHelper
def index
@user = current_user
@profiles = Profile.find(:all, :order => 'id')
@user.attributes = params[:user]
if request.post? and @user.save
current_user = @user
flash[:notice] = _('User was successful... | class Admin::ProfilesController < Admin::BaseController
helper Admin::UsersHelper
def index
@user = current_user
@profiles = Profile.find(:all, :order => 'id')
@user.attributes = params[:user]
if request.post? and @user.save
current_user = @user
flash[:notice] = _('User was successful... | Fix redirect to work with sub-urls. If anyone knows how to adjust the specs so this gets tested throughout the application, please! do so ... | Fix redirect to work with sub-urls.
If anyone knows how to adjust the specs so this gets tested
throughout the application, please! do so ...
| Ruby | mit | leminhtuan2015/nginx_capuchino_rails,kildem/blog,saasbook/typo,hmallett/publify,natesholland/typo,Juuro/publify,backpackerhh/typo,ACPK/typo,kmathew96/typo,freeranger/typo,freibuis/publify,Endymion1977/typo,shaomingtan/publify,kmathew96/typo,leminhtuan2015/portal_staging,zsstor/Typo,leminhtuan2015/portal_staging,kildem/... | ruby | ## Code Before:
class Admin::ProfilesController < Admin::BaseController
helper Admin::UsersHelper
def index
@user = current_user
@profiles = Profile.find(:all, :order => 'id')
@user.attributes = params[:user]
if request.post? and @user.save
current_user = @user
flash[:notice] = _('Use... | class Admin::ProfilesController < Admin::BaseController
helper Admin::UsersHelper
def index
@user = current_user
@profiles = Profile.find(:all, :order => 'id')
@user.attributes = params[:user]
if request.post? and @user.save
current_user = @user
flash[:notice] = _(... | 2 | 0.133333 | 1 | 1 |
863267f6234591f7e140a83b724294d0518f73ae | ruru/src/lib.rs | ruru/src/lib.rs | extern crate ruru;
use ruru::VM;
use ruru::Hash;
use ruru::Fixnum;
use ruru::Class;
use ruru::types::Argc;
use ruru::AnyObject;
#[no_mangle]
pub extern fn pow_3(argc: Argc, argv: *const AnyObject, _: Fixnum) -> Hash {
let argv = VM::parse_arguments(argc, argv);
let num = argv[0].as_fixnum().to_i64();
let... | extern crate ruru;
use ruru::VM;
use ruru::Hash;
use ruru::Fixnum;
use ruru::Class;
use ruru::AnyObject;
use ruru::types::{Argc, Value};
use ruru::traits::Object;
class!(Calculator);
methods!(
Calculator,
itself,
pow_3(num: Fixnum) -> Hash {
let mut hash = Hash::new();
for i in 1..num.t... | Use macros for creating ruby methods | Use macros for creating ruby methods
| Rust | mit | steveklabnik/rust_example,steveklabnik/rust_example,steveklabnik/rust_example,steveklabnik/rust_example,steveklabnik/rust_example,steveklabnik/rust_example | rust | ## Code Before:
extern crate ruru;
use ruru::VM;
use ruru::Hash;
use ruru::Fixnum;
use ruru::Class;
use ruru::types::Argc;
use ruru::AnyObject;
#[no_mangle]
pub extern fn pow_3(argc: Argc, argv: *const AnyObject, _: Fixnum) -> Hash {
let argv = VM::parse_arguments(argc, argv);
let num = argv[0].as_fixnum().to... | extern crate ruru;
use ruru::VM;
use ruru::Hash;
use ruru::Fixnum;
use ruru::Class;
- use ruru::types::Argc;
use ruru::AnyObject;
+ use ruru::types::{Argc, Value};
+ use ruru::traits::Object;
+ class!(Calculator);
- #[no_mangle]
- pub extern fn pow_3(argc: Argc, argv: *const AnyObject, _: Fixnum) -> H... | 27 | 0.9 | 15 | 12 |
545682bb5f6f32bf680eace06471dce43c461151 | package.json | package.json | {
"name": "broccoli-tsc",
"description": "TypeScript filter for Broccoli",
"version": "0.1.1",
"author": "Mario Vejlupek <mario@vejlupek.cz>",
"main": "index.js",
"license": "MIT",
"repository": "angie-party/broccoli-tsc",
"keywords": [
"broccoli-plugin",
"typescript",
"javascript"
],
"d... | {
"name": "broccoli-tsc",
"description": "TypeScript filter for Broccoli",
"version": "0.1.1",
"author": "Mario Vejlupek <mario@vejlupek.cz>",
"main": "index.js",
"license": "MIT",
"repository": "angie-party/broccoli-tsc",
"keywords": [
"broccoli-plugin",
"typescript",
"javascript"
],
"d... | Add broccoli dependency for travis build | Add broccoli dependency for travis build
| JSON | mit | ngParty/broccoli-tsc,angie-party/broccoli-tsc | json | ## Code Before:
{
"name": "broccoli-tsc",
"description": "TypeScript filter for Broccoli",
"version": "0.1.1",
"author": "Mario Vejlupek <mario@vejlupek.cz>",
"main": "index.js",
"license": "MIT",
"repository": "angie-party/broccoli-tsc",
"keywords": [
"broccoli-plugin",
"typescript",
"javas... | {
"name": "broccoli-tsc",
"description": "TypeScript filter for Broccoli",
"version": "0.1.1",
"author": "Mario Vejlupek <mario@vejlupek.cz>",
"main": "index.js",
"license": "MIT",
"repository": "angie-party/broccoli-tsc",
"keywords": [
"broccoli-plugin",
"typescript",
... | 1 | 0.035714 | 1 | 0 |
49d7dff97e01f797c113d336abd82f06bf5e99ef | test/integration/default/default.yml | test/integration/default/default.yml | ---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dynatrace.Dynatrace-Glassfish-Agent
dynatrace_glassfish_ag... | ---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dynatrace.Dynatrace-Glassfish-Agent
dynatrace_glassfish_ag... | Integrate download links from downloads.dynatracesaas.com. | Integrate download links from downloads.dynatracesaas.com.
| YAML | mit | dynaTrace/Dynatrace-Glassfish-Agent-Ansible | yaml | ## Code Before:
---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dynatrace.Dynatrace-Glassfish-Agent
dynatr... | ---
- hosts: test-kitchen
vars:
domain_xml_file: /tmp/domain.xml
pre_tasks:
- file: path={{ domain_xml_file }} state=touch
- copy: dest={{ domain_xml_file }} content="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<java-config/>"
roles:
- role: dynatrace.Dynatrace-Glassfish-Agent
dy... | 2 | 0.181818 | 1 | 1 |
ced164c8710cb017638c2f56509c238dd9f4e038 | client/app/bundles/DenpaioApp/components/AppLayout.jsx | client/app/bundles/DenpaioApp/components/AppLayout.jsx | import React from 'react';
import SearchBar from './SearchBar';
import DanmakuBar from './DanmakuBar';
export default class AppLayout extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleSearch = (keyword) => {
this.setState({ keyword });
this.props.router.push(`... | import React from 'react';
import SearchBar from './SearchBar';
import DanmakuBar from './DanmakuBar';
export default class AppLayout extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
currentStyle() {
let pathname = this.props.location.pathname;
let defaultStyle = {... | Add background color to non-index pages | Add background color to non-index pages
| JSX | mit | denpaio/denpaio,denpaio/denpaio,denpaio/denpaio,denpaio/denpaio | jsx | ## Code Before:
import React from 'react';
import SearchBar from './SearchBar';
import DanmakuBar from './DanmakuBar';
export default class AppLayout extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleSearch = (keyword) => {
this.setState({ keyword });
this.pro... | import React from 'react';
import SearchBar from './SearchBar';
import DanmakuBar from './DanmakuBar';
export default class AppLayout extends React.Component {
constructor(props) {
super(props);
this.state = {};
+ }
+
+ currentStyle() {
+ let pathname = this.props.location.pathname;
... | 10 | 0.243902 | 9 | 1 |
117b70c3eeee05ff12053635f5727c6fc94ce677 | lib/active_interaction/filters/time_filter.rb | lib/active_interaction/filters/time_filter.rb | module ActiveInteraction
class Base
# Creates accessors for the attributes and ensures that values passed to
# the attributes are Times. Numeric values are processed using `at`.
# Strings are processed using `parse` unless the format option is given,
# in which case they will be processed with `... | module ActiveInteraction
class Base
# Creates accessors for the attributes and ensures that values passed to
# the attributes are Times. Numeric values are processed using `at`.
# Strings are processed using `parse` unless the format option is given,
# in which case they will be processed with `... | Use a case statement for the time filter | Use a case statement for the time filter
This keeps all the filters consistent.
| Ruby | mit | antoinefinkelstein/active_interaction,AaronLasseigne/active_interaction,antoinefinkelstein/active_interaction,frbl/active_interaction,frbl/active_interaction,JasOXIII/active_interaction,orgsync/active_interaction,AaronLasseigne/active_interaction,JasOXIII/active_interaction,orgsync/active_interaction | ruby | ## Code Before:
module ActiveInteraction
class Base
# Creates accessors for the attributes and ensures that values passed to
# the attributes are Times. Numeric values are processed using `at`.
# Strings are processed using `parse` unless the format option is given,
# in which case they will be ... | module ActiveInteraction
class Base
# Creates accessors for the attributes and ensures that values passed to
# the attributes are Times. Numeric values are processed using `at`.
# Strings are processed using `parse` unless the format option is given,
# in which case they will be proc... | 9 | 0.225 | 5 | 4 |
83e3632b527bd5bf7451e7c29257cef702b2fe9b | demo/app/color-selector/color-selector-demo.ts | demo/app/color-selector/color-selector-demo.ts | /*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { Component } from '@angular/core';
import {... | /*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { Component } from '@angular/core';
import {... | Change colors to see a problem more quickly | quiet(DejaColorSelector): Change colors to see a problem more quickly
| TypeScript | apache-2.0 | DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components | typescript | ## Code Before:
/*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { Component } from '@angular... | /*
* @license
* Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
*
* Use of this source code is governed by an Apache-2.0 license that can be
* found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
*/
import { Component } from '@angul... | 4 | 0.114286 | 2 | 2 |
dbdf9ce70294e15fc35559af5e99ec3598b07282 | packages/ha/haskell-disque.yaml | packages/ha/haskell-disque.yaml | homepage: https://github.com/ArekCzarnik/haskell-disque#readme
changelog-type: ''
hash: e30ee64d5786e8882abc1d9e8d078a6aa18b660dda717686174a022123278673
test-bench-deps:
base: -any
haskell-disque: -any
maintainer: arekczarnik@gmail.com
synopsis: Client library for the Disque datastore
changelog: ''
basic-deps:
by... | homepage: https://github.com/ArekCzarnik/haskell-disque#readme
changelog-type: ''
hash: bd724108c46b07b6bdcc5ea796b4de826bc2db672012ed21a2a6fc2bf08cd6e1
test-bench-deps:
base: -any
haskell-disque: -any
maintainer: arekczarnik@gmail.com
synopsis: Client library for the Disque datastore
changelog: ''
basic-deps:
by... | Update from Hackage at 2017-07-08T08:16:23Z | Update from Hackage at 2017-07-08T08:16:23Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/ArekCzarnik/haskell-disque#readme
changelog-type: ''
hash: e30ee64d5786e8882abc1d9e8d078a6aa18b660dda717686174a022123278673
test-bench-deps:
base: -any
haskell-disque: -any
maintainer: arekczarnik@gmail.com
synopsis: Client library for the Disque datastore
changelog: ''
... | homepage: https://github.com/ArekCzarnik/haskell-disque#readme
changelog-type: ''
- hash: e30ee64d5786e8882abc1d9e8d078a6aa18b660dda717686174a022123278673
+ hash: bd724108c46b07b6bdcc5ea796b4de826bc2db672012ed21a2a6fc2bf08cd6e1
test-bench-deps:
base: -any
haskell-disque: -any
maintainer: arekczarnik@gma... | 7 | 0.205882 | 4 | 3 |
e6f1488cdba617e2a4b04f0049a7e2f300e04229 | apps/mbug/manifest.mobile.json | apps/mbug/manifest.mobile.json | {
"packageId": "com.foamdev.apps.MBug",
"versionCode": 37,
"oauth2": {
"client_id": "18229540903-q3jf1svejrq2usts6k25p37aigsvde21.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/projecthosting"
]
},
"webview": ... | {
"packageId": "com.foamdev.apps.MBug",
"versionCode": 37,
"oauth2": {
"client_id": "18229540903-q3jf1svejrq2usts6k25p37aigsvde21.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/projecthosting"
]
}
}
| Switch to crosswalk based web-view for increased compatibility and performance. | Switch to crosswalk based web-view for increased compatibility and performance.
| JSON | apache-2.0 | mdittmer/foam,mdittmer/foam,foam-framework/foam,jacksonic/foam,mdittmer/foam,foam-framework/foam,jlhughes/foam,osric-the-knight/foam,jacksonic/foam,osric-the-knight/foam,jacksonic/foam,osric-the-knight/foam,jlhughes/foam,osric-the-knight/foam,foam-framework/foam,mdittmer/foam,jlhughes/foam,foam-framework/foam,foam-fram... | json | ## Code Before:
{
"packageId": "com.foamdev.apps.MBug",
"versionCode": 37,
"oauth2": {
"client_id": "18229540903-q3jf1svejrq2usts6k25p37aigsvde21.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/projecthosting"
]
... | {
"packageId": "com.foamdev.apps.MBug",
"versionCode": 37,
"oauth2": {
"client_id": "18229540903-q3jf1svejrq2usts6k25p37aigsvde21.apps.googleusercontent.com",
"scopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/projecthosting"
]
... | 3 | 0.25 | 1 | 2 |
29db453f84d5f2942591873f48837b66cec7f8a3 | doc/release_process.md | doc/release_process.md | 0. Update the [changelog](CHANGELOG.md).
1. One final Travis CI build for `develop`.
2. Update version number in code.
3. Build the conda package for Mac as follows:
```
cd conda-recipe
conda build --python 3.4 rsmtool
```
4. Convert the package for both linux and windows:
```
conda convert -... | 0. Update the [changelog](CHANGELOG.md).
1. One final Circle CI build for `develop`.
2. Update version number in code.
3. Build and upload the conda package for Mac as follows:
```
cd conda-recipe/unix
conda build --python 3.4 rsmtool
anaconda upload <mac package tarball>
```
4. Convert the packag... | Update the release process document. | Update the release process document.
| Markdown | apache-2.0 | EducationalTestingService/rsmtool | markdown | ## Code Before:
0. Update the [changelog](CHANGELOG.md).
1. One final Travis CI build for `develop`.
2. Update version number in code.
3. Build the conda package for Mac as follows:
```
cd conda-recipe
conda build --python 3.4 rsmtool
```
4. Convert the package for both linux and windows:
```
... | 0. Update the [changelog](CHANGELOG.md).
- 1. One final Travis CI build for `develop`.
? ^ ^^^^
+ 1. One final Circle CI build for `develop`.
? ^^ ^^^
2. Update version number in code.
- 3. Build the conda package for Mac as follows:
+ 3. Build and upload the conda package for Mac as fol... | 29 | 1.380952 | 20 | 9 |
4c5550420b8a9f1bf88f4329952f6e2a161cd20f | test/test_panels/test_navigation.py | test/test_panels/test_navigation.py | from pyqode.core.api import TextHelper
from pyqode.qt.QtTest import QTest
def test_toggle_button(editor):
editor.file.open('test/files/example.json')
editor.show()
TextHelper(editor).goto_line(6)
QTest.qWait(500)
panel = editor.panels.get('NavigationPanel')
assert len(panel._widgets) == 4
... | from pyqode.core.api import TextHelper
from pyqode.qt.QtTest import QTest
def test_toggle_button(editor):
editor.file.open('test/files/example.json')
editor.show()
TextHelper(editor).goto_line(6)
QTest.qWait(500)
panel = editor.panels.get('NavigationPanel')
assert len(panel._widgets) == 4
... | Fix test on kaos with latest qt5 | Fix test on kaos with latest qt5
| Python | mit | pyQode/pyqode.json,pyQode/pyqode.json | python | ## Code Before:
from pyqode.core.api import TextHelper
from pyqode.qt.QtTest import QTest
def test_toggle_button(editor):
editor.file.open('test/files/example.json')
editor.show()
TextHelper(editor).goto_line(6)
QTest.qWait(500)
panel = editor.panels.get('NavigationPanel')
assert len(panel._wi... | from pyqode.core.api import TextHelper
from pyqode.qt.QtTest import QTest
def test_toggle_button(editor):
editor.file.open('test/files/example.json')
editor.show()
TextHelper(editor).goto_line(6)
QTest.qWait(500)
panel = editor.panels.get('NavigationPanel')
assert len(pan... | 2 | 0.133333 | 1 | 1 |
19a90284ff55d16290a25ddd65ea006dfea80b2e | README.md | README.md | Planning Poker
==============
A free, online agile estimation tool for distributed or colocated project teams.
|
A free, online agile estimation tool for distributed or colocated project teams.
## Installing Locally
#### Installing all project code and dependencies
1. Fork/Clone this repository on your local machine
1. Make sure you have [node js][node] installed
1. Install the Grunt Command Line Interface globally
* `$ npm... | Add local install instructions to readme | Add local install instructions to readme | Markdown | mit | thorsenty/planning-poker,thorsenty/planning-poker | markdown | ## Code Before:
Planning Poker
==============
A free, online agile estimation tool for distributed or colocated project teams.
## Instruction:
Add local install instructions to readme
## Code After:
A free, online agile estimation tool for distributed or colocated project teams.
## Installing Locally
#### Installi... | - Planning Poker
- ==============
A free, online agile estimation tool for distributed or colocated project teams.
+
+ ## Installing Locally
+
+ #### Installing all project code and dependencies
+
+ 1. Fork/Clone this repository on your local machine
+ 1. Make sure you have [node js][node] installed
+ 1. Instal... | 27 | 6.75 | 25 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.