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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25512a9e900277c7fb42fada6f9fe1fb9bf3bb5c | client/src/Authenticated.js | client/src/Authenticated.js | import React, { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'unistore/react';
import initApp from './stores/initApp';
import useAppContext from './utilities/use-app-context';
import useSWR from 'swr';
function Authenticated({ children, initApp, initialized }) {
cons... | import React, { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'unistore/react';
import initApp from './stores/initApp';
import useAppContext from './utilities/use-app-context';
import useSWR from 'swr';
function Authenticated({ children, initApp, initialized }) {
cons... | Fix init for startup with no predefined connections | Fix init for startup with no predefined connections
| JavaScript | mit | rickbergfalk/sqlpad,rickbergfalk/sqlpad,rickbergfalk/sqlpad | javascript | ## Code Before:
import React, { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'unistore/react';
import initApp from './stores/initApp';
import useAppContext from './utilities/use-app-context';
import useSWR from 'swr';
function Authenticated({ children, initApp, initial... | import React, { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'unistore/react';
import initApp from './stores/initApp';
import useAppContext from './utilities/use-app-context';
import useSWR from 'swr';
function Authenticated({ children, initApp, initial... | 5 | 0.135135 | 2 | 3 |
0936f2141402d142519e884a9a7fc902f59298e9 | app/views/votes/_vote.html.erb | app/views/votes/_vote.html.erb | <div class="vote-count row-centered">
<% if post.has_voted?(current_user) %>
<div class="warning">
<span class="glyphicon glyphicon-chevron-up"></span><br/>
<span><%= post.votes.count %></span><br>
<span class="small">votes</span>
</div>
<% else %>
<%= link_to vote_post_path(post), met... | <div class="vote-count row-centered">
<% if current_user %>
<% if post.has_voted?(current_user) %>
<div class="warning">
<span class="glyphicon glyphicon-chevron-up"></span><br/>
<span><%= post.votes.count %></span><br>
<span class="small">votes</span>
</div>
<% else %>
... | Fix votes when user is not logged in | Fix votes when user is not logged in
| HTML+ERB | mit | PowerCodeGirls/RubyGameDev.com,ruby-rcade/RubyGameDev.com,PowerCodeGirls/RubyGameDev.com,RailsGEnthusiasts/RubyGameDev.com,PowerCodeGirls/RubyGameDev.com,ruby-rcade/RubyGameDev.com,RailsGEnthusiasts/RubyGameDev.com,ruby-rcade/RubyGameDev.com,RailsGEnthusiasts/RubyGameDev.com | html+erb | ## Code Before:
<div class="vote-count row-centered">
<% if post.has_voted?(current_user) %>
<div class="warning">
<span class="glyphicon glyphicon-chevron-up"></span><br/>
<span><%= post.votes.count %></span><br>
<span class="small">votes</span>
</div>
<% else %>
<%= link_to vote_post... | <div class="vote-count row-centered">
+ <% if current_user %>
- <% if post.has_voted?(current_user) %>
+ <% if post.has_voted?(current_user) %>
? ++
- <div class="warning">
+ <div class="warning">
? ++
+ <span class="glyphicon glyphicon-chevron-up"></span><br/>
+ <span><%= post.vot... | 24 | 1.6 | 16 | 8 |
a719d3f1e2734708f6b57d645d9fdc53187e88d9 | util/oauth/encode.go | util/oauth/encode.go | package oauth
import (
"bytes"
"fmt"
)
var hex = "0123456789ABCDEF"
// encode percent-encodes a string as defined in RFC 3986.
func encode(s string) string {
var buf bytes.Buffer
for _, c := range []byte(s) {
if isEncodable(c) {
buf.WriteByte('%')
buf.WriteByte(hex[c>>4])
buf.WriteByte(hex[c&15])
} ... | package oauth
import (
"bytes"
"fmt"
)
var hex = "0123456789ABCDEF"
// encode percent-encodes a string as defined in RFC 3986.
func encode(s string) string {
var buf bytes.Buffer
for _, c := range []byte(s) {
if isEncodable(c) {
if c == '+' {
// replace plus-encoding with percent-encoding
buf.WriteS... | Use percent encoding for calculating the signature | Use percent encoding for calculating the signature
| Go | mpl-2.0 | rainycape/gondola,rainycape/gondola,rainycape/gondola,rainycape/gondola | go | ## Code Before:
package oauth
import (
"bytes"
"fmt"
)
var hex = "0123456789ABCDEF"
// encode percent-encodes a string as defined in RFC 3986.
func encode(s string) string {
var buf bytes.Buffer
for _, c := range []byte(s) {
if isEncodable(c) {
buf.WriteByte('%')
buf.WriteByte(hex[c>>4])
buf.WriteByte... | package oauth
import (
"bytes"
"fmt"
)
var hex = "0123456789ABCDEF"
// encode percent-encodes a string as defined in RFC 3986.
func encode(s string) string {
var buf bytes.Buffer
for _, c := range []byte(s) {
if isEncodable(c) {
+ if c == '+' {
+ // replace plus-encoding with... | 11 | 0.261905 | 8 | 3 |
f0151507efa8123906d44c0cbe4aae2cc2ff35b0 | README.md | README.md |
Retrieves realtime value of Indian Rupee - ₹ (INR) for unit US Dollars (USD).
### Installation
```sh
npm install realtime-usd-to-inr
```
or install it globally:
```sh
npm install -g realtime-usd-to-inr
```
### Usage
```sh
usd2inr
# $1 = ₹ 68.655
# and also you can provide the multiplication factor
usd2inr 5
# $... |
Retrieves realtime value of Indian Rupee - ₹ (INR) for unit US Dollars (USD).
### Installation
```sh
npm install realtime-usd-to-inr
```
or install it globally:
```sh
npm install -g realtime-usd-to-inr
```
### Usage
```sh
usd2inr
# $1 = ₹ 68.655
# and also you can provide the multiplication factor
usd2inr 5
# $... | Revert "Try out Code Sponsor" | Revert "Try out Code Sponsor"
This reverts commit b39ecbfca7fd31f82554ce88f355edcee2b8da71.
| Markdown | mit | vishaltelangre/realtime-usd-to-inr | markdown | ## Code Before:
Retrieves realtime value of Indian Rupee - ₹ (INR) for unit US Dollars (USD).
### Installation
```sh
npm install realtime-usd-to-inr
```
or install it globally:
```sh
npm install -g realtime-usd-to-inr
```
### Usage
```sh
usd2inr
# $1 = ₹ 68.655
# and also you can provide the multiplication fact... |
Retrieves realtime value of Indian Rupee - ₹ (INR) for unit US Dollars (USD).
### Installation
```sh
npm install realtime-usd-to-inr
```
or install it globally:
```sh
npm install -g realtime-usd-to-inr
```
### Usage
```sh
usd2inr
# $1 = ₹ 68.655
# and also you can pro... | 4 | 0.137931 | 0 | 4 |
7e5feea91100aa26df67bbdb64003926624bf9c3 | CONTRIBUTORS.md | CONTRIBUTORS.md |
This serves as an official list of all organisations or indiviuals that have helped with the development of HTML Email Boilerplate Redux, whether directly or indirectly.
### Author(s):
* Central College Nottingham
* James White <james.white@centralnottingham.ac.uk>
### Contributors/Pull Requests:
* GC-Max
* cresen... |
This serves as an official list of all organisations or indiviuals that have helped with the development of HTML Email Boilerplate Redux, whether directly or indirectly.
### Author(s):
* [Central College Nottingham](https://www.centralnottingham.ac.uk)
* James White (<james.white@centralnottingham.ac.uk>)
### Contr... | Add dyspop to contributors and update formatting | Add dyspop to contributors and update formatting | Markdown | mit | centralcollegenottingham/HTML-Email-Boilerplate-Redux,centralcollegenottingham/HTML-Email-Boilerplate-Redux | markdown | ## Code Before:
This serves as an official list of all organisations or indiviuals that have helped with the development of HTML Email Boilerplate Redux, whether directly or indirectly.
### Author(s):
* Central College Nottingham
* James White <james.white@centralnottingham.ac.uk>
### Contributors/Pull Requests:
*... |
This serves as an official list of all organisations or indiviuals that have helped with the development of HTML Email Boilerplate Redux, whether directly or indirectly.
### Author(s):
- * Central College Nottingham
+ * [Central College Nottingham](https://www.centralnottingham.ac.uk)
- * James White <jame... | 31 | 0.96875 | 16 | 15 |
0e576407f4e54496b1072d45636931ed415c55d7 | application/views/all_facilities.php | application/views/all_facilities.php | <h2 class="headline">Liste der Hilfsgruppen in Berlin</h2>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center">Homepage</th>
<th class="text-cente... | <div class="container">
<h2 class="headline">Liste der Hilfsgruppen in Berlin</h2>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center"... | Remove phone-number and email from facilities | Remove phone-number and email from facilities
| PHP | mit | DonationmatcherBerlin/donationmatcher,DonationmatcherBerlin/donationmatcher,DonationmatcherBerlin/donationmatcher,DonationmatcherBerlin/donationmatcher | php | ## Code Before:
<h2 class="headline">Liste der Hilfsgruppen in Berlin</h2>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="text-center">Name</th>
<th class="text-center">Homepage</th>
<th c... | + <div class="container">
- <h2 class="headline">Liste der Hilfsgruppen in Berlin</h2>
+ <h2 class="headline">Liste der Hilfsgruppen in Berlin</h2>
? ++++
- <div class="table-responsive">
+ <div class="table-responsive">
? ++++
- <table class="table table-striped table-condensed">
+ <table class="... | 69 | 1.682927 | 31 | 38 |
f90c591a9b1f8ec0becd0e9d0c53fe4202eb7e6d | install.sh | install.sh |
set -u
set -o errexit
working_dir=`dirname $0`
cd $working_dir
if [ `uname -m` != 'x86_64' ]; then
echo "Install failed, you must have a 64 bit OS"
fi
sudo ./install_scripts/install_mediacloud_package_dependencies.sh
sudo ./install_scripts/create_default_db_user_and_databases.sh
cp mediawords.yml.dist mediaword... |
set -u
set -o errexit
working_dir=`dirname $0`
cd $working_dir
if [ `uname -m` != 'x86_64' ]; then
echo "Install failed, you must have a 64 bit OS";
exit 1;
fi
sudo ./install_scripts/install_mediacloud_package_dependencies.sh
sudo ./install_scripts/create_default_db_user_and_databases.sh
cp mediawords.yml.di... | EXit with an error when 64 bit os not detected. | EXit with an error when 64 bit os not detected.
| Shell | agpl-3.0 | berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter... | shell | ## Code Before:
set -u
set -o errexit
working_dir=`dirname $0`
cd $working_dir
if [ `uname -m` != 'x86_64' ]; then
echo "Install failed, you must have a 64 bit OS"
fi
sudo ./install_scripts/install_mediacloud_package_dependencies.sh
sudo ./install_scripts/create_default_db_user_and_databases.sh
cp mediawords.ym... |
set -u
set -o errexit
working_dir=`dirname $0`
cd $working_dir
if [ `uname -m` != 'x86_64' ]; then
- echo "Install failed, you must have a 64 bit OS"
+ echo "Install failed, you must have a 64 bit OS";
? +
+ exit 1;
fi
sudo ./install... | 3 | 0.1 | 2 | 1 |
9c07a0944716ba918cc6115830b0559e41bdc466 | commands/Disintegrate.hs | commands/Disintegrate.hs | {-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-}
module Main where
import Language.Hakaru.Pretty.Concrete
import Language.Hakaru.Syntax.TypeCheck
import Language.Hakaru.Syntax.IClasses
import Language.Hakaru.Types.Sing
import Language.Hakaru.Disintegrate
import ... | {-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-}
module Main where
import Language.Hakaru.Pretty.Concrete
import Language.Hakaru.Syntax.TypeCheck
import Language.Hakaru.Syntax.IClasses
import Language.Hakaru.Types.Sing
import Language.Hakaru.Disintegrate
import ... | Make disintegrate more like other commands | Make disintegrate more like other commands
| Haskell | bsd-3-clause | zachsully/hakaru,zaxtax/hakaru,zaxtax/hakaru,zachsully/hakaru | haskell | ## Code Before:
{-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-}
module Main where
import Language.Hakaru.Pretty.Concrete
import Language.Hakaru.Syntax.TypeCheck
import Language.Hakaru.Syntax.IClasses
import Language.Hakaru.Types.Sing
import Language.Hakaru.Disin... | {-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-}
module Main where
import Language.Hakaru.Pretty.Concrete
import Language.Hakaru.Syntax.TypeCheck
import Language.Hakaru.Syntax.IClasses
import Language.Hakaru.Types.Sing
import Language.Hakaru.D... | 8 | 0.195122 | 4 | 4 |
efaabb16dfe1219f2e51727b5bfac5bba17af78c | lib/tolua++/CMakeLists.txt | lib/tolua++/CMakeLists.txt |
cmake_minimum_required (VERSION 2.6)
project (tolua++)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
file(GLOB LIB_SOURCE
"src/lib/*.c"
)
file(GLOB BIN_SOURCE
"src/bin/*.c"
)
add_executable(t... |
cmake_minimum_required (VERSION 2.6)
project (tolua++)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
file(GLOB LIB_SOURCE
"src/lib/*.c"
)
file(GLOB BIN_SOURCE
"src/bin/*.c"
)
add_executable(t... | Revert "fixed bad reference to math library" | Revert "fixed bad reference to math library"
This reverts commit c2167d7ed73c96c7e8cb935074ba860e11c821f9.
| Text | apache-2.0 | birkett/cuberite,birkett/MCServer,birkett/cuberite,johnsoch/cuberite,Altenius/cuberite,QUSpilPrgm/cuberite,Fighter19/cuberite,jammet/MCServer,nichwall/cuberite,Tri125/MCServer,nounoursheureux/MCServer,nichwall/cuberite,HelenaKitty/EbooMC,Tri125/MCServer,Fighter19/cuberite,nicodinh/cuberite,Schwertspize/cuberite,QUSpilP... | text | ## Code Before:
cmake_minimum_required (VERSION 2.6)
project (tolua++)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
file(GLOB LIB_SOURCE
"src/lib/*.c"
)
file(GLOB BIN_SOURCE
"src/bin/*.c"
)
... |
cmake_minimum_required (VERSION 2.6)
project (tolua++)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
file(GLOB LIB_SOURCE
"src/lib/*.c"
)
file(GLOB BIN_SOURCE
"src/... | 4 | 0.153846 | 2 | 2 |
56bfaeda70752ff87e8fac957b4c4bad59c4ef17 | timing_test.go | timing_test.go | package gomol
import (
"time"
. "gopkg.in/check.v1"
)
type testClock struct {
curTime time.Time
}
func newTestClock(curTime time.Time) *testClock {
return &testClock{curTime: curTime}
}
func (c *testClock) Now() time.Time {
return c.curTime
}
func (s *GomolSuite) TestTestClockNow(c *C) {
realNow := time.Now... | package gomol
import (
"time"
. "gopkg.in/check.v1"
)
type testClock struct {
curTime time.Time
}
func newTestClock(curTime time.Time) *testClock {
return &testClock{curTime: curTime}
}
func (c *testClock) Now() time.Time {
return c.curTime
}
func (s *GomolSuite) TestTestClockNow(c *C) {
realNow := time.Now... | Make more red go away | Make more red go away
| Go | mit | aphistic/gomol | go | ## Code Before:
package gomol
import (
"time"
. "gopkg.in/check.v1"
)
type testClock struct {
curTime time.Time
}
func newTestClock(curTime time.Time) *testClock {
return &testClock{curTime: curTime}
}
func (c *testClock) Now() time.Time {
return c.curTime
}
func (s *GomolSuite) TestTestClockNow(c *C) {
rea... | package gomol
import (
"time"
. "gopkg.in/check.v1"
)
type testClock struct {
curTime time.Time
}
func newTestClock(curTime time.Time) *testClock {
return &testClock{curTime: curTime}
}
func (c *testClock) Now() time.Time {
return c.curTime
}
func (s *GomolSuite) Tes... | 14 | 0.518519 | 14 | 0 |
d283210af8c1111a48ff9a7f2864bfe0e6ef25f7 | docs/use_with/vue.md | docs/use_with/vue.md |
Create the following Vue directive
```js
import Vue from 'vue'
import iframeResize from 'iframe-resizer/js/iframeResizer';
Vue.directive('resize', {
bind: function(el, { value = {} }) {
el.addEventListener('load', () => iframeResize(value, el))
}
})
```
and then include it on your page as follows.
```html
... |
Create the following Vue directive
```js
import Vue from 'vue'
import iframeResize from 'iframe-resizer/js/iframeResizer';
Vue.directive('resize', {
bind: function(el, { value = {} }) {
el.addEventListener('load', () => iframeResize(value, el))
},
unbind: function (el) {
el.iFrameResizer.removeListener... | Remove listeners when unbinding in Vue | Remove listeners when unbinding in Vue
Add unbind method to the Vue's directive example, to remove the iFrameResizer's listeners when the directive is unbound from the element. | Markdown | mit | davidjbradshaw/iframe-resizer,davidjbradshaw/iframe-resizer | markdown | ## Code Before:
Create the following Vue directive
```js
import Vue from 'vue'
import iframeResize from 'iframe-resizer/js/iframeResizer';
Vue.directive('resize', {
bind: function(el, { value = {} }) {
el.addEventListener('load', () => iframeResize(value, el))
}
})
```
and then include it on your page as fo... |
Create the following Vue directive
```js
import Vue from 'vue'
import iframeResize from 'iframe-resizer/js/iframeResizer';
Vue.directive('resize', {
bind: function(el, { value = {} }) {
el.addEventListener('load', () => iframeResize(value, el))
+ },
+ unbind: function (el) {
+ el.iF... | 3 | 0.115385 | 3 | 0 |
0eaa7c9c5d8fc2087c4ecde68c8f79104120a462 | src/Checkers/FilesystemChecker.php | src/Checkers/FilesystemChecker.php | <?php
namespace PragmaRX\Health\Checkers;
class FilesystemChecker extends BaseChecker
{
/**
* @param $resources
* @return bool
*/
public function check($resources)
{
try {
$file = $this->temporaryFile('health-check-', 'just testing', storage_path());
unlink(... | <?php
namespace PragmaRX\Health\Checkers;
class FilesystemChecker extends BaseChecker
{
/**
* @param $resources
* @return bool
*/
public function check($resources)
{
try {
$file = $this->temporaryFile('health-check-', 'just testing', storage_path());
if (! f... | Fix checker for console calls | Fix checker for console calls
| PHP | bsd-3-clause | antonioribeiro/health,antonioribeiro/health | php | ## Code Before:
<?php
namespace PragmaRX\Health\Checkers;
class FilesystemChecker extends BaseChecker
{
/**
* @param $resources
* @return bool
*/
public function check($resources)
{
try {
$file = $this->temporaryFile('health-check-', 'just testing', storage_path());
... | <?php
namespace PragmaRX\Health\Checkers;
class FilesystemChecker extends BaseChecker
{
/**
* @param $resources
* @return bool
*/
public function check($resources)
{
try {
$file = $this->temporaryFile('health-check-', 'just testing', storage_p... | 8 | 0.181818 | 7 | 1 |
3ada5d25aba67d54a22568fc6e74d5248dd671cd | package.json | package.json | {
"name": "timestamp",
"version": "1.0.0",
"description": "timestamp api",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-css": "stylus source/stylesheets/main.styl -o static/css",
"watch-css": "stylus source/stylesheets/main.styl -o static/css -w",
... | {
"name": "timestamp",
"version": "1.0.0",
"description": "timestamp api",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-css": "stylus source/stylesheets/main.styl -o static/css",
"watch-css": "stylus source/stylesheets/main.styl -o static/css -w",
... | Fix build-css step in procfile | Fix build-css step in procfile
| JSON | mit | vivshaw/timestamp-api,vivshaw/timestamp-api | json | ## Code Before:
{
"name": "timestamp",
"version": "1.0.0",
"description": "timestamp api",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-css": "stylus source/stylesheets/main.styl -o static/css",
"watch-css": "stylus source/stylesheets/main.styl -o ... | {
"name": "timestamp",
"version": "1.0.0",
"description": "timestamp api",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-css": "stylus source/stylesheets/main.styl -o static/css",
"watch-css": "stylus source/stylesheets/main.styl -... | 3 | 0.111111 | 1 | 2 |
3844c3b8eebb224270a5a108c72a4214c766d00f | src/chrome/content_core.js | src/chrome/content_core.js | /*global chrome*/
export function init() {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'load'
});
window.addEventListener('unload', () => {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'unload'
});
... | /*global chrome*/
export function init() {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'load'
});
window.addEventListener('unload', () => {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'unload'
});
... | Use older variable arguments syntax | Use older variable arguments syntax
| JavaScript | mit | nextgensparx/quantum-router,nextgensparx/quantum-router | javascript | ## Code Before:
/*global chrome*/
export function init() {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'load'
});
window.addEventListener('unload', () => {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'un... | /*global chrome*/
export function init() {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
loadState: 'load'
});
window.addEventListener('unload', () => {
chrome.runtime.sendMessage({
from: 'contentScript',
type: 'loadEvent',
load... | 4 | 0.137931 | 2 | 2 |
28a7f606a575fa14b87bdf90372b5832c6675b2d | cmake/FindMySQL.cmake | cmake/FindMySQL.cmake | find_path(MYSQL_INCLUDE_DIR
NAMES mysql.h
PATH_SUFFIXES mysql
)
find_library(MYSQL_LIBRARIES
NAMES mysqlclient_r
)
if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
set(MYSQL_FOUND ON)
endif(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
if(MYSQL_FOUND)
if (NOT MYSQL_FIND_QUIETLY)
message(STATUS "Found My... | find_path(MYSQL_INCLUDE_DIR
NAMES mysql.h
PATH_SUFFIXES mysql
)
find_library(MYSQL_LIBRARIES
NAMES mysqlclient_r
PATH_SUFFIXES mysql
)
if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
set(MYSQL_FOUND ON)
endif(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
if(MYSQL_FOUND)
if (NOT MYSQL_FIND_QUIETLY)
... | Fix find path mysql libs | Fix find path mysql libs
| CMake | bsd-2-clause | guard163/tarantool,dkorolev/tarantool,Sannis/tarantool,rtsisyk/tarantool,condor-the-bird/tarantool,KlonD90/tarantool,condor-the-bird/tarantool,ocelot-inc/tarantool,guard163/tarantool,KlonD90/tarantool,mejedi/tarantool,Sannis/tarantool,nvoron23/tarantool,nvoron23/tarantool,dkorolev/tarantool,mejedi/tarantool,condor-the-... | cmake | ## Code Before:
find_path(MYSQL_INCLUDE_DIR
NAMES mysql.h
PATH_SUFFIXES mysql
)
find_library(MYSQL_LIBRARIES
NAMES mysqlclient_r
)
if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
set(MYSQL_FOUND ON)
endif(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
if(MYSQL_FOUND)
if (NOT MYSQL_FIND_QUIETLY)
message(... | find_path(MYSQL_INCLUDE_DIR
NAMES mysql.h
PATH_SUFFIXES mysql
)
find_library(MYSQL_LIBRARIES
NAMES mysqlclient_r
+ PATH_SUFFIXES mysql
)
if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
set(MYSQL_FOUND ON)
endif(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
if(MYSQL_FOUND)
if (NO... | 1 | 0.043478 | 1 | 0 |
2a242bb6984fae5e32f117fa5ae68118621f3c95 | pycroft/model/alembic/versions/fb8d553a7268_add_account_pattern.py | pycroft/model/alembic/versions/fb8d553a7268_add_account_pattern.py | from alembic import op
import sqlalchemy as sa
import pycroft
# revision identifiers, used by Alembic.
revision = 'fb8d553a7268'
down_revision = '0b69e80a9388'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('account_pattern... | from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fb8d553a7268'
down_revision = '0b69e80a9388'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('account_pattern',
sa.Column... | Remove unnecessary pycroft import in migration | Remove unnecessary pycroft import in migration
| Python | apache-2.0 | agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft,agdsn/pycroft | python | ## Code Before:
from alembic import op
import sqlalchemy as sa
import pycroft
# revision identifiers, used by Alembic.
revision = 'fb8d553a7268'
down_revision = '0b69e80a9388'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table(... | from alembic import op
import sqlalchemy as sa
- import pycroft
-
# revision identifiers, used by Alembic.
revision = 'fb8d553a7268'
down_revision = '0b69e80a9388'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op... | 2 | 0.071429 | 0 | 2 |
babbe814cac8f97dd3ddb3677969b13c1dee09ce | wger/core/templates/user/login.html | wger/core/templates/user/login.html | {% extends "base.html" %}
{% load i18n static wger_extras crispy_forms_tags %}
{% block title %}{% trans "Login" %}{% endblock %}
{% block header %}
{% endblock %}
{% block content %}
{% crispy form %}
{% endblock %}
{% block sidebar %}
<h4>{% trans "No account?" %}</h4>
<p>
<a href="{% url 'core:user:reg... | {% extends "base.html" %}
{% load i18n static wger_extras crispy_forms_tags %}
{% block title %}{% trans "Login" %}{% endblock %}
{% block header %}
{% endblock %}
{% block content %}
{% crispy form %}
{% endblock %}
{% block sidebar %}
<h4>{% trans "No account?" %}</h4>
<p>
<a href="{% url 'core:user:reg... | Use regular links for registration and password reset | Use regular links for registration and password reset
| HTML | agpl-3.0 | rolandgeider/wger,rolandgeider/wger,wger-project/wger,petervanderdoes/wger,rolandgeider/wger,petervanderdoes/wger,petervanderdoes/wger,petervanderdoes/wger,wger-project/wger,wger-project/wger,rolandgeider/wger,wger-project/wger | html | ## Code Before:
{% extends "base.html" %}
{% load i18n static wger_extras crispy_forms_tags %}
{% block title %}{% trans "Login" %}{% endblock %}
{% block header %}
{% endblock %}
{% block content %}
{% crispy form %}
{% endblock %}
{% block sidebar %}
<h4>{% trans "No account?" %}</h4>
<p>
<a href="{% ur... | {% extends "base.html" %}
{% load i18n static wger_extras crispy_forms_tags %}
{% block title %}{% trans "Login" %}{% endblock %}
{% block header %}
{% endblock %}
{% block content %}
{% crispy form %}
{% endblock %}
{% block sidebar %}
<h4>{% trans "No account?" %}</h4>
<p>
... | 4 | 0.129032 | 2 | 2 |
2107453ef7f588584b2ea51256ea9adce8969a80 | circle.yml | circle.yml | machine:
node:
version: v5.7.0
test:
pre:
- npm run lint:failfast
| machine:
node:
version: v5.7.0
test:
pre:
- npm run lint:failfast
post:
- '[ -z "${CIRCLE_PR_USERNAME}" ] && npm run coveralls || false'
| Add Coveralls Code Coverage CircleCI | Add Coveralls Code Coverage CircleCI
| YAML | mit | frig-js/frigging-bootstrap,frig-js/frigging-bootstrap | yaml | ## Code Before:
machine:
node:
version: v5.7.0
test:
pre:
- npm run lint:failfast
## Instruction:
Add Coveralls Code Coverage CircleCI
## Code After:
machine:
node:
version: v5.7.0
test:
pre:
- npm run lint:failfast
post:
- '[ -z "${CIRCLE_PR_USERNAME}" ] && npm run coveralls || false'... | machine:
node:
version: v5.7.0
test:
pre:
- npm run lint:failfast
+ post:
+ - '[ -z "${CIRCLE_PR_USERNAME}" ] && npm run coveralls || false' | 2 | 0.285714 | 2 | 0 |
a3acd3a0bab4b9d9d358bb714e22c7a71191a304 | cmd/registry/config-example.yml | cmd/registry/config-example.yml | version: 0.1
log:
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /var/lib/registry
maintenance:
uploadpurging:
enabled: true
http:
addr: :5000
| version: 0.1
log:
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
| Fix earlier commit to enable upload purging in example config file | Fix earlier commit to enable upload purging in example config file
Rather than setting this to "true", the whole section should be removed.
Signed-off-by: Aaron Lehmann <8ecfc6017a87905413dcd7d63696a2a4c351b604@docker.com>
| YAML | apache-2.0 | cezarsa/distribution,genedock/distribution,thaJeztah/docker.github.io,rillig/docker.github.io,jzwlqx/distribution,amitshukla/distribution,johnstep/docker.github.io,menglingwei/denverdino.github.io,zhaytee/distribution,noxiouz/distribution,RichardScothern/distribution,johnstep/docker.github.io,menglingwei/denverdino.git... | yaml | ## Code Before:
version: 0.1
log:
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /var/lib/registry
maintenance:
uploadpurging:
enabled: true
http:
addr: :5000
## Instruction:
Fix earlier commit to enable upload purging ... | version: 0.1
log:
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /var/lib/registry
- maintenance:
- uploadpurging:
- enabled: true
http:
addr: :5000 | 3 | 0.214286 | 0 | 3 |
dcfd12d784147f9f56d1c60d20b5d637e33ac97d | src/indexPage/index.js | src/indexPage/index.js | import 'babel-polyfill'
import $ from 'jquery'
import { getTokenList } from 'binary-common-utils/lib/storageManager'
import { setAppId, oauthLogin } from '../common/appId'
import { load as loadLang } from '../common/lang'
if (getTokenList().length) {
location.pathname = '/bot.html'
} else {
window.$ = $ // eslint-... | import 'babel-polyfill'
import $ from 'jquery'
import { getTokenList } from 'binary-common-utils/lib/storageManager'
import { setAppId, oauthLogin } from '../common/appId'
import { load as loadLang } from '../common/lang'
if (getTokenList().length) {
location.pathname = `${location.pathname.replace(/\/+$/, '')}/bot.... | Handle multiple slashes when redirecting to bot.html | Handle multiple slashes when redirecting to bot.html
| JavaScript | mit | binary-com/binary-bot,aminmarashi/binary-bot,aminmarashi/binary-bot,binary-com/binary-bot | javascript | ## Code Before:
import 'babel-polyfill'
import $ from 'jquery'
import { getTokenList } from 'binary-common-utils/lib/storageManager'
import { setAppId, oauthLogin } from '../common/appId'
import { load as loadLang } from '../common/lang'
if (getTokenList().length) {
location.pathname = '/bot.html'
} else {
window.... | import 'babel-polyfill'
import $ from 'jquery'
import { getTokenList } from 'binary-common-utils/lib/storageManager'
import { setAppId, oauthLogin } from '../common/appId'
import { load as loadLang } from '../common/lang'
if (getTokenList().length) {
- location.pathname = '/bot.html'
+ location.pathn... | 2 | 0.111111 | 1 | 1 |
a567ff2501e7c1e5422c69107fac5ce9eac95e9b | app/views/games/waiting.html.erb | app/views/games/waiting.html.erb | <div>
Waiting for game #<%= @game.id %> to begin.
</div>
<div>
Players:<br>
<ul>
<% @game.players.each do |player| %>
<li><%= player.handle %></li>
<% end %>
</ul>
</div>
<div>
Open Invites:<br>
<ul>
<% @game.invites.open.each do |invite| %>
<li><%= invite.email %> <% if @can_revok... | <div>
Waiting for game #<%= @game.id %> to begin.
</div>
<div>
Players:<br>
<ul>
<% @game.players.each do |player| %>
<li><%= player.handle %></li>
<% end %>
</ul>
</div>
<div>
Open Invites:<br>
<ul>
<% @game.invites.open.each do |invite| %>
<li><%= invite.email %> <% if @can_revok... | Add a link for the game owner to start a game | Add a link for the game owner to start a game
| HTML+ERB | agpl-3.0 | bschmeck/two_sixes,bschmeck/two_sixes | html+erb | ## Code Before:
<div>
Waiting for game #<%= @game.id %> to begin.
</div>
<div>
Players:<br>
<ul>
<% @game.players.each do |player| %>
<li><%= player.handle %></li>
<% end %>
</ul>
</div>
<div>
Open Invites:<br>
<ul>
<% @game.invites.open.each do |invite| %>
<li><%= invite.email %> ... | <div>
Waiting for game #<%= @game.id %> to begin.
</div>
<div>
Players:<br>
<ul>
<% @game.players.each do |player| %>
<li><%= player.handle %></li>
<% end %>
</ul>
</div>
<div>
Open Invites:<br>
<ul>
<% @game.invites.open.each do |invite| %>
<li>... | 6 | 0.214286 | 6 | 0 |
e82e7fd3b6b755cb4ee0240c74ccde7846664326 | README.rst | README.rst | Pyramid Social Network Authentication
=====================================
.. image:: https://secure.travis-ci.org/lorenzogil/pyramid_sna.png
pyramid_sna is a Pyramid library for authenticating users using OAuth2
providers.
It is released under the terms of a 3 clause BSD license and it is
based on code originally ... | Pyramid Social Network Authentication
=====================================
.. image:: https://secure.travis-ci.org/lorenzogil/pyramid_sna.png
pyramid_sna is a Pyramid library for authenticating users using OAuth2
providers.
It is released under the terms of a 3 clause BSD license and it is
based on code originally ... | Add a line telling where to find the documentation | Add a line telling where to find the documentation
| reStructuredText | bsd-3-clause | lorenzogil/pyramid_sna | restructuredtext | ## Code Before:
Pyramid Social Network Authentication
=====================================
.. image:: https://secure.travis-ci.org/lorenzogil/pyramid_sna.png
pyramid_sna is a Pyramid library for authenticating users using OAuth2
providers.
It is released under the terms of a 3 clause BSD license and it is
based on ... | Pyramid Social Network Authentication
=====================================
.. image:: https://secure.travis-ci.org/lorenzogil/pyramid_sna.png
pyramid_sna is a Pyramid library for authenticating users using OAuth2
providers.
It is released under the terms of a 3 clause BSD license and it is
based... | 2 | 0.166667 | 2 | 0 |
f7ef5afffd3fba36eaa3310325125222d56ce315 | README.md | README.md | SoleBTC
| [](https://travis-ci.org/freeusd/solebtc)
[](http://goreportcard.com/report/freeusd/solebtc)
SoleBTC
| Add travis, goreportcard badge to readme | Add travis, goreportcard badge to readme
| Markdown | mit | freeusd/solebtc,freeusd/solebtc,solefaucet/sole-server,solefaucet/sole-server,solefaucet/sole-server,freeusd/solebtc | markdown | ## Code Before:
SoleBTC
## Instruction:
Add travis, goreportcard badge to readme
## Code After:
[](https://travis-ci.org/freeusd/solebtc)
[](http://goreportcard.com/report/freeusd/so... | + [](https://travis-ci.org/freeusd/solebtc)
+ [](http://goreportcard.com/report/freeusd/solebtc)
+
SoleBTC | 3 | 3 | 3 | 0 |
88f86838b7f7f926e5df349edcd6461284fde181 | jest.config.js | jest.config.js | module.exports = {
testEnvironment: 'node',
preset: '@shelf/jest-mongodb'
}
| module.exports = {
testEnvironment: 'node',
preset: '@shelf/jest-mongodb',
roots: ['src']
}
| Add root to prevent infinite loop in watch | Add root to prevent infinite loop in watch
| JavaScript | mit | synzen/Discord.RSS,synzen/Discord.RSS | javascript | ## Code Before:
module.exports = {
testEnvironment: 'node',
preset: '@shelf/jest-mongodb'
}
## Instruction:
Add root to prevent infinite loop in watch
## Code After:
module.exports = {
testEnvironment: 'node',
preset: '@shelf/jest-mongodb',
roots: ['src']
}
| module.exports = {
testEnvironment: 'node',
- preset: '@shelf/jest-mongodb'
+ preset: '@shelf/jest-mongodb',
? +
+ roots: ['src']
} | 3 | 0.75 | 2 | 1 |
0436a2292808e81c7fc7cb7dbbd19732cea21d70 | server/main.js | server/main.js | import { Meteor } from 'meteor/meteor';
Meteor.startup(() => {
// code to run on server at startup
});
| import { Meteor } from 'meteor/meteor';
import '/imports/server/ntlm-auth/proxy';
Meteor.startup(() => {
// code to run on server at startup
});
| Load NTLM Authentication Proxy on startup | Load NTLM Authentication Proxy on startup
| JavaScript | mit | staskorz/meteor-ntlm-example,staskorz/meteor-ntlm-example | javascript | ## Code Before:
import { Meteor } from 'meteor/meteor';
Meteor.startup(() => {
// code to run on server at startup
});
## Instruction:
Load NTLM Authentication Proxy on startup
## Code After:
import { Meteor } from 'meteor/meteor';
import '/imports/server/ntlm-auth/proxy';
Meteor.startup(() => {
// code to ru... | import { Meteor } from 'meteor/meteor';
+
+ import '/imports/server/ntlm-auth/proxy';
+
Meteor.startup(() => {
// code to run on server at startup
}); | 3 | 0.6 | 3 | 0 |
1b3a2185ebfa2a9304c773af09b2e737f62176af | app/views/people/_sub_header.html.haml | app/views/people/_sub_header.html.haml | .right
- if user_signed_in? && current_user.person != person
- if @block.present?
= link_to t('users.privacy_settings.stop_ignoring'), block_path(@block),
:method => :delete,
:class => "button"
- else
= aspect_membership_dropdown(contact, person, 'right')
- els... | .right
- if user_signed_in? && current_user.person != person
- if @block.present?
= link_to t('users.privacy_settings.stop_ignoring'), block_path(@block),
:method => :delete,
:class => "button"
- else
= aspect_membership_dropdown(contact, person, 'right')
- els... | Fix and simplify current_page? check on profile page | Fix and simplify current_page? check on profile page
| Haml | agpl-3.0 | Muhannes/diaspora,spixi/diaspora,Muhannes/diaspora,geraspora/diaspora,geraspora/diaspora,Amadren/diaspora,Flaburgan/diaspora,KentShikama/diaspora,spixi/diaspora,jhass/diaspora,Muhannes/diaspora,despora/diaspora,Amadren/diaspora,jhass/diaspora,KentShikama/diaspora,spixi/diaspora,geraspora/diaspora,Flaburgan/diaspora,Ama... | haml | ## Code Before:
.right
- if user_signed_in? && current_user.person != person
- if @block.present?
= link_to t('users.privacy_settings.stop_ignoring'), block_path(@block),
:method => :delete,
:class => "button"
- else
= aspect_membership_dropdown(contact, person, 'r... | .right
- if user_signed_in? && current_user.person != person
- if @block.present?
= link_to t('users.privacy_settings.stop_ignoring'), block_path(@block),
:method => :delete,
:class => "button"
- else
= aspect_membership_dropdown(contact, person, ... | 2 | 0.060606 | 1 | 1 |
22feb9c08c827b62015dea239d45aec528fa3f29 | Cargo.toml | Cargo.toml | [package]
name = "domain"
version = "0.3.0"
authors = ["Martin Hoffmann <hn@nvnc.de>"]
description = "A DNS library for Rust."
documentation = "https://docs.rs/domain/"
homepage = "https://github.com/partim/domain"
repository = "https://github.com/partim/domain"
readme = "README.md"
keywords = ["DNS", "domain", "resolv... | [package]
name = "domain"
version = "0.3.0"
authors = ["Martin Hoffmann <hn@nvnc.de>"]
description = "A DNS library for Rust."
documentation = "https://docs.rs/domain/"
homepage = "https://github.com/partim/domain"
repository = "https://github.com/partim/domain"
readme = "README.md"
keywords = ["DNS", "domain", "resolv... | Update dependencies to tokio 0.1. | Update dependencies to tokio 0.1.
| TOML | mit | cloudshipping/domain,cloudshipping/domain-rs,partim/domain | toml | ## Code Before:
[package]
name = "domain"
version = "0.3.0"
authors = ["Martin Hoffmann <hn@nvnc.de>"]
description = "A DNS library for Rust."
documentation = "https://docs.rs/domain/"
homepage = "https://github.com/partim/domain"
repository = "https://github.com/partim/domain"
readme = "README.md"
keywords = ["DNS", "... | [package]
name = "domain"
version = "0.3.0"
authors = ["Martin Hoffmann <hn@nvnc.de>"]
description = "A DNS library for Rust."
documentation = "https://docs.rs/domain/"
homepage = "https://github.com/partim/domain"
repository = "https://github.com/partim/domain"
readme = "README.md"
keywords = ["DNS... | 2 | 0.066667 | 1 | 1 |
682fd1159472b7bbdd65a07d1f314bc4f2c45608 | .travis.yml | .travis.yml | language: go
install: true
script:
- make test
- make
| language: go
go:
- 1.6
- tip
install: true
script:
- gofmt -e -l
- make criticism
- make test
- make
| Add style validation and Go version targets | Add style validation and Go version targets
Change-Id: I6087e91c7e14d639b011965c716859a56abf5b7a
Signed-off-by: Jake Sanders <d7c79a945d71c8c27d84b007687c1a4cfff8858e@google.com>
| YAML | apache-2.0 | KingEmet/docker-credential-gcr,GoogleCloudPlatform/docker-credential-gcr | yaml | ## Code Before:
language: go
install: true
script:
- make test
- make
## Instruction:
Add style validation and Go version targets
Change-Id: I6087e91c7e14d639b011965c716859a56abf5b7a
Signed-off-by: Jake Sanders <d7c79a945d71c8c27d84b007687c1a4cfff8858e@google.com>
## Code After:
language: go
go:
- 1.6
- tip
ins... | language: go
+ go:
+ - 1.6
+ - tip
install: true
- script:
? -
+ script:
+ - gofmt -e -l
+ - make criticism
- make test
- make | 7 | 1.4 | 6 | 1 |
7c26d18cdee3aa9a63823bd435fbf4a6bc78ce59 | .travis.yml | .travis.yml | language: python
python:
- "3.2"
- "3.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq llvm-3.3
env:
global:
- LLVM_CONFIG_PATH=/usr/bin/llvm-config-3.3
install:
- "pip install llvmpy"
# command to run tests
script: nosetests
| language: python
python:
- "3.2"
- "3.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq llvm-3.3
env:
global:
- LLVM_CONFIG_PATH=/usr/bin/llvm-config-3.3
install:
- "pip install git@github.com:llvmpy/llvmpy.git"
# command to run tests
script: nosetests
| Use lastest llvmpy build for Travis. Needed for llvm-3.3 support. | Use lastest llvmpy build for Travis. Needed for llvm-3.3 support.
| YAML | bsd-2-clause | ucb-sejits/ctree,ucb-sejits/ctree,mbdriscoll/ctree | yaml | ## Code Before:
language: python
python:
- "3.2"
- "3.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq llvm-3.3
env:
global:
- LLVM_CONFIG_PATH=/usr/bin/llvm-config-3.3
install:
- "pip install llvmpy"
# command to run tests
script: nosetests
## Instruction:
Use lastest llvmpy... | language: python
python:
- "3.2"
- "3.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq llvm-3.3
env:
global:
- LLVM_CONFIG_PATH=/usr/bin/llvm-config-3.3
install:
- - "pip install llvmpy"
+ - "pip install git@github.com:llvmpy/llvmpy.git"
# com... | 2 | 0.111111 | 1 | 1 |
2bf6a563a4655f2897ab8c411336714cbca40dc6 | compare-newton.sh | compare-newton.sh |
LOOPS="$1"
shift
[ -z "$LOOPS" ] && exit 1
run_measure() {
echo "$1"
shift
./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}
run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent=no-measuring
run_measure "With ... |
LOOPS="$1"
shift
[ -z "$LOOPS" ] && exit 1
run_measure() {
echo "$1"
shift
./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}
run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent=no-measuring
run_measure "With ... | Extend Newton comparison (different skip factors) | Extend Newton comparison (different skip factors)
| Shell | apache-2.0 | vhotspur/spl-adaptation-framework,vhotspur/spl-adaptation-framework | shell | ## Code Before:
LOOPS="$1"
shift
[ -z "$LOOPS" ] && exit 1
run_measure() {
echo "$1"
shift
./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}
run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent=no-measuring
ru... |
LOOPS="$1"
shift
[ -z "$LOOPS" ] && exit 1
run_measure() {
echo "$1"
shift
./measure-newton.sh "$LOOPS" "$@" 2>&1 | tail -n 1 | sed 's/^[>]*//'
}
run_measure "Without any agent"
run_measure "With bare agent" --std-agent-bare
run_measure "With agent, without measuring" --std-agent... | 5 | 0.294118 | 4 | 1 |
0231a875135bf2dd4ef6b70b52eb014782c7541c | apps/RhoSugarCRM/SugarOpportunity/index.erb | apps/RhoSugarCRM/SugarOpportunity/index.erb | <ul id="SugarOpportunities" title="Opportunities">
<%@SugarOpportunities.each do |x|%>
<a class="button right_button" href="/RhoSugarCRM/SugarOpportunity/new">New</a>
<li class="overview">
<a href="<%= "/RhoSugarCRM/SugarOpportunity/#{x.object}/show" %>">
<%= x.name %>
<div>
<%= x.sales_stage %> <%= x.pro... | <ul id="SugarOpportunities" title="Opportunities">
<a class="button right_button" href="/RhoSugarCRM/SugarOpportunity/new">New</a>
<%@SugarOpportunities.each do |x|%>
<li class="overview">
<a href="<%= "/RhoSugarCRM/SugarOpportunity/#{x.object}/show" %>">
<%= x.name %>
<div>
<%= x.sales_stage %> <%= x.pro... | Move new link out of for | Move new link out of for
| HTML+ERB | mit | watusi/rhodes,pslgoh/rhodes,rhosilver/rhodes-1,rhosilver/rhodes-1,pslgoh/rhodes,louisatome/rhodes,jdrider/rhodes,UIKit0/rhodes,rhosilver/rhodes-1,tauplatform/tau,rhomobile/rhodes,watusi/rhodes,rhosilver/rhodes-1,tauplatform/tau,UIKit0/rhodes,nosolosoftware/rhodes,rhosilver/rhodes-1,watusi/rhodes,pslgoh/rhodes,nosolosof... | html+erb | ## Code Before:
<ul id="SugarOpportunities" title="Opportunities">
<%@SugarOpportunities.each do |x|%>
<a class="button right_button" href="/RhoSugarCRM/SugarOpportunity/new">New</a>
<li class="overview">
<a href="<%= "/RhoSugarCRM/SugarOpportunity/#{x.object}/show" %>">
<%= x.name %>
<div>
<%= x.sales_stage %... | <ul id="SugarOpportunities" title="Opportunities">
+ <a class="button right_button" href="/RhoSugarCRM/SugarOpportunity/new">New</a>
+
<%@SugarOpportunities.each do |x|%>
-
- <a class="button right_button" href="/RhoSugarCRM/SugarOpportunity/new">New</a>
<li class="overview">
<a href="<%= "/RhoSugarCRM/Su... | 4 | 0.235294 | 2 | 2 |
11deda08ca2cea49a0b0af7954647ef6246378ef | _posts/2016-06-02-GlobalSprint.markdown | _posts/2016-06-02-GlobalSprint.markdown | ---
title: Mozilla Science Lab Global Sprint
text: Collaborate on open science projects!
location: TBA
link: https://github.com/UofTCoders/Events/issues/50
date: 2016-06-02
startTime: '00:00'
endTime: '23:59'
---
| ---
title: Mozilla Science Lab Global Sprint
text: Collaborate on open science projects!
location: Mozilla Toronto, 366 Adelaide St. W.
link: https://github.com/UofTCoders/Events/issues/50
date: 2016-06-02
startTime: '09:00'
endTime: '17:00'
---
| Add location to global sprint post | Add location to global sprint post | Markdown | apache-2.0 | sjeblee/studyGroup,linamnt/studyGroup,QuLogic/studyGroup,mbonsma/studyGroup,lwjohnst86/studyGroup,linamnt/studyGroup,linamnt/studyGroup,QuLogic/studyGroup,sjeblee/studyGroup,lwjohnst86/studyGroup,mbonsma/studyGroup,sjeblee/studyGroup,lwjohnst86/studyGroup,lwjohnst86/studyGroup,QuLogic/studyGroup,lwjohnst86/studyGroup,l... | markdown | ## Code Before:
---
title: Mozilla Science Lab Global Sprint
text: Collaborate on open science projects!
location: TBA
link: https://github.com/UofTCoders/Events/issues/50
date: 2016-06-02
startTime: '00:00'
endTime: '23:59'
---
## Instruction:
Add location to global sprint post
## Code After:
---
title: Mozilla Scien... | ---
title: Mozilla Science Lab Global Sprint
text: Collaborate on open science projects!
- location: TBA
+ location: Mozilla Toronto, 366 Adelaide St. W.
link: https://github.com/UofTCoders/Events/issues/50
date: 2016-06-02
- startTime: '00:00'
? ^
+ startTime: '09:00'
? ^
- endTim... | 6 | 0.666667 | 3 | 3 |
9861e1376adff00a5105fe87e2d8172053310f87 | .travis.yml | .travis.yml | language: java
before_install: (cd parent && exec mvn install)
notifications:
irc: "irc.oftc.net#mammon"
template:
- "%{branch}/%{commit} (#%{build_number} by %{author}): %{mesage} %{build_url}"
| language: java
before_install: (cd parent && exec mvn install)
notifications:
irc: "irc.oftc.net#mammon"
template:
- "%{branch}/%{commit} (#%{build_number} by %{author}): %{mesage} %{build_url}"
use_notice: true
skip_join: true
| Reduce IRC notification to a single line | Reduce IRC notification to a single line
| YAML | bsd-3-clause | phedny/Mammon | yaml | ## Code Before:
language: java
before_install: (cd parent && exec mvn install)
notifications:
irc: "irc.oftc.net#mammon"
template:
- "%{branch}/%{commit} (#%{build_number} by %{author}): %{mesage} %{build_url}"
## Instruction:
Reduce IRC notification to a single line
## Code After:
language: java
before_i... | language: java
before_install: (cd parent && exec mvn install)
notifications:
irc: "irc.oftc.net#mammon"
- template:
+ template:
? ++
- - "%{branch}/%{commit} (#%{build_number} by %{author}): %{mesage} %{build_url}"
+ - "%{branch}/%{commit} (#%{build_number} by %{author}): %{mesage} %{b... | 6 | 0.666667 | 4 | 2 |
f731b7271b5f7fd0762e8f44260a0680a71166a7 | app/controllers/track_controller.rb | app/controllers/track_controller.rb | class TrackController < ApplicationController
def index
@upcoming_events = UpcomingEvents.find_all(:date => Date.new(2008, 6), :weeks => 6, :discipline => "Track")
end
def schedule
@events = SingleDayEvent.find_all_by_year(Date.today.year, Discipline[:track]) + MultiDayEvent.find_all_by_year(Date.today... | class TrackController < ApplicationController
def index
@upcoming_events = UpcomingEvents.find_all(:weeks => 52, :discipline => "Track")
end
def schedule
@events = SingleDayEvent.find_all_by_year(Date.today.year, Discipline[:track]) + MultiDayEvent.find_all_by_year(Date.today.year, Discipline[:track])
... | Remove hard-coded date from track upcoming events, and default to entire year in advance | Remove hard-coded date from track upcoming events, and default to entire year in advance
| Ruby | mit | scottwillson/racing_on_rails,alpendergrass/montanacycling-racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails,alpendergrass/montanacycling-racing_on_rails,alpendergrass/montanacycling-racing_on_rails,alpendergrass/montanacycling-racing_on_rails,alpendergrass/montanacyc... | ruby | ## Code Before:
class TrackController < ApplicationController
def index
@upcoming_events = UpcomingEvents.find_all(:date => Date.new(2008, 6), :weeks => 6, :discipline => "Track")
end
def schedule
@events = SingleDayEvent.find_all_by_year(Date.today.year, Discipline[:track]) + MultiDayEvent.find_all_by... | class TrackController < ApplicationController
def index
- @upcoming_events = UpcomingEvents.find_all(:date => Date.new(2008, 6), :weeks => 6, :discipline => "Track")
? ---------------------------- ^
+ @upcoming_events = UpcomingEvents.find_all(:week... | 2 | 0.222222 | 1 | 1 |
7f77a82ac7b990d4ef451503acb3ea07865fb242 | lib/remindice.rb | lib/remindice.rb | require "remindice/version"
module Remindice
# Your code goes here...
end
| require "remindice/version"
require "thor"
module Remindice
class Commands < Thor
end
end
| Add class inherits Thor in the module | Add class inherits Thor in the module
| Ruby | mit | Roadagain/remindice | ruby | ## Code Before:
require "remindice/version"
module Remindice
# Your code goes here...
end
## Instruction:
Add class inherits Thor in the module
## Code After:
require "remindice/version"
require "thor"
module Remindice
class Commands < Thor
end
end
| require "remindice/version"
+ require "thor"
module Remindice
- # Your code goes here...
+ class Commands < Thor
+ end
end | 4 | 0.8 | 3 | 1 |
40d4435359fdd56cf4457960ff1fee8c76c7856f | logstash/lib.sls | logstash/lib.sls | {#
include:
- .beaver
#}
{% macro logship(appshort, logfile, type='daemon', tags=['daemon','error'], format='json', delimiter='\\\\n') -%}
{% if salt['pillar.get']('monitoring:enabled', True) %}
{% set tags = ','.join(tags) %}
/etc/beaver.d/{{appshort}}.conf:
file:
- managed
- source: salt://logstash/te... | {#
include:
- .beaver
#}
{% macro logship(appshort, logfile, type='daemon', tags=['daemon','error'], format='json', delimiter='\\\\n', absent=False) -%}
{% if salt['pillar.get']('monitoring:enabled', True) and absent == false %}
{% set tags = ','.join(tags) %}
/etc/beaver.d/{{appshort}}.conf:
file:
- manage... | Add absent flag on logship macro. | Add absent flag on logship macro.
If a logship line is removed, then the corresponding configuration file
is not removed from the disk. This flag makes sure that we do remove the
files.
| SaltStack | apache-2.0 | ministryofjustice/logstash-formula,ministryofjustice/logstash-formula,ministryofjustice/logstash-formula,ministryofjustice/logstash-formula,ministryofjustice/logstash-formula | saltstack | ## Code Before:
{#
include:
- .beaver
#}
{% macro logship(appshort, logfile, type='daemon', tags=['daemon','error'], format='json', delimiter='\\\\n') -%}
{% if salt['pillar.get']('monitoring:enabled', True) %}
{% set tags = ','.join(tags) %}
/etc/beaver.d/{{appshort}}.conf:
file:
- managed
- source: sa... | {#
include:
- .beaver
#}
- {% macro logship(appshort, logfile, type='daemon', tags=['daemon','error'], format='json', delimiter='\\\\n') -%}
+ {% macro logship(appshort, logfile, type='daemon', tags=['daemon','error'], format='json', delimiter='\\\\n', absent=False) -%}
? ... | 10 | 0.344828 | 8 | 2 |
caa4e2071ae26d012a71eeae77b72cc60bcfe2e1 | src/content/shorten-url.js | src/content/shorten-url.js | import fetchJsonP from 'fetch-jsonp';
import queryString from 'query-string';
import url from 'url';
export default function shortenURL(urlToShorten) {
let longURL = urlToShorten;
if (!longURL.startsWith('https://perf-html.io/')) {
const parsedURL = url.parse(longURL);
const parsedURLOnCanonicalHost = Obje... | import fetchJsonP from 'fetch-jsonp';
import queryString from 'query-string';
import url from 'url';
export default function shortenURL(urlToShorten) {
let longURL = urlToShorten;
if (!longURL.startsWith('https://perf-html.io/')) {
const parsedURL = url.parse(longURL);
const parsedURLOnCanonicalHost = Obje... | Add missing 'format' key in the bit.ly API request. | Add missing 'format' key in the bit.ly API request.
Bit.ly have recently made a change on their side to ignore the jsonp callback argument
if format=json was not specified, and that made our requests fail.
| JavaScript | mpl-2.0 | devtools-html/perf.html,mstange/cleopatra,squarewave/bhr.html,mstange/cleopatra,squarewave/bhr.html,devtools-html/perf.html | javascript | ## Code Before:
import fetchJsonP from 'fetch-jsonp';
import queryString from 'query-string';
import url from 'url';
export default function shortenURL(urlToShorten) {
let longURL = urlToShorten;
if (!longURL.startsWith('https://perf-html.io/')) {
const parsedURL = url.parse(longURL);
const parsedURLOnCano... | import fetchJsonP from 'fetch-jsonp';
import queryString from 'query-string';
import url from 'url';
export default function shortenURL(urlToShorten) {
let longURL = urlToShorten;
if (!longURL.startsWith('https://perf-html.io/')) {
const parsedURL = url.parse(longURL);
const parsedURLOnCa... | 1 | 0.043478 | 1 | 0 |
84632f202a05ac4603a6ae1ea495039387838811 | server/README.md | server/README.md | TelegramQt Server
=======================
TelegramQt-based Telegram Server
This server is developed to test a Telegram client without bothering the official server.
There is also no intention to make it a "production-ready" server and though it runs as
a cluster there is no purpose to make it scalable or performant.... | TelegramQt Server
=======================
TelegramQt-based Telegram Server
This server is developed to test a Telegram client without bothering the official server.
There is also no intention to make it a "production-ready" server and though it runs as
a cluster there is no purpose to make it scalable or performant.... | Add a list of (at least partially) implemented API | Server: Add a list of (at least partially) implemented API
| Markdown | lgpl-2.1 | Kaffeine/telegram-qt,Kaffeine/telegram-qt,Kaffeine/telegram-qt | markdown | ## Code Before:
TelegramQt Server
=======================
TelegramQt-based Telegram Server
This server is developed to test a Telegram client without bothering the official server.
There is also no intention to make it a "production-ready" server and though it runs as
a cluster there is no purpose to make it scalabl... | TelegramQt Server
=======================
TelegramQt-based Telegram Server
This server is developed to test a Telegram client without bothering the official server.
There is also no intention to make it a "production-ready" server and though it runs as
a cluster there is no purpose to make it scala... | 51 | 1.645161 | 51 | 0 |
d3a879f78790175e4287e518f77f8bab441628df | src/main/java/info/u_team/u_team_core/intern/asm/ASMUContainerMenuHook.java | src/main/java/info/u_team/u_team_core/intern/asm/ASMUContainerMenuHook.java | package info.u_team.u_team_core.intern.asm;
import info.u_team.u_team_core.menu.UAbstractContainerMenu;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.inventory.AbstractContainerMenu;
public class ASMUContainerMenuHook {
/**
* Called from asm core mod (ucontainermenu-init-menu.js)
*... | package info.u_team.u_team_core.intern.asm;
import info.u_team.u_team_core.menu.UAbstractContainerMenu;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.inventory.AbstractContainerMenu;
public class ASMUContainerMenuHook {
/**
* Called from asm core mod (ucontainermenu-init-menu.js) fro... | Make coremod description a bit more enhanced | Make coremod description a bit more enhanced | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core | java | ## Code Before:
package info.u_team.u_team_core.intern.asm;
import info.u_team.u_team_core.menu.UAbstractContainerMenu;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.inventory.AbstractContainerMenu;
public class ASMUContainerMenuHook {
/**
* Called from asm core mod (ucontainermenu-i... | package info.u_team.u_team_core.intern.asm;
import info.u_team.u_team_core.menu.UAbstractContainerMenu;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.inventory.AbstractContainerMenu;
public class ASMUContainerMenuHook {
/**
- * Called from asm core mod (ucontainerme... | 3 | 0.157895 | 2 | 1 |
52b94ad763575b3c67139ed5ed378e26ee104b94 | src/client/app/+play/play.component.ts | src/client/app/+play/play.component.ts | import { Component } from '@angular/core';
/**
* This class represents the lazy loaded PlayComponent.
*/
@Component({
moduleId: module.id,
selector: 'sd-play',
templateUrl: 'play.component.html',
styleUrls: ['play.component.css']
})
export class PlayComponent {
audioContext: AudioContext;
currentOscillat... | import { Component } from '@angular/core';
/**
* This class represents the lazy loaded PlayComponent.
*/
@Component({
moduleId: module.id,
selector: 'sd-play',
templateUrl: 'play.component.html',
styleUrls: ['play.component.css']
})
export class PlayComponent {
audioContext: AudioContext;
currentOscillat... | Fix undefined error in PlayComponent.stopNote | Fix undefined error in PlayComponent.stopNote
| TypeScript | mit | Ecafracs/flatthirteen,Ecafracs/flatthirteen,Ecafracs/flatthirteen | typescript | ## Code Before:
import { Component } from '@angular/core';
/**
* This class represents the lazy loaded PlayComponent.
*/
@Component({
moduleId: module.id,
selector: 'sd-play',
templateUrl: 'play.component.html',
styleUrls: ['play.component.css']
})
export class PlayComponent {
audioContext: AudioContext;
... | import { Component } from '@angular/core';
/**
* This class represents the lazy loaded PlayComponent.
*/
@Component({
moduleId: module.id,
selector: 'sd-play',
templateUrl: 'play.component.html',
styleUrls: ['play.component.css']
})
export class PlayComponent {
audioContext: Audio... | 6 | 0.181818 | 5 | 1 |
a7c43168cb8751fa0094b26a333c0750980a977a | roles/docker-engine/tasks/redhat.yml | roles/docker-engine/tasks/redhat.yml | ---
- name: "Install Docker rpm key"
become: yes
rpm_key:
key: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
state: present
# install yum utils and Docker repo
- name: "Install yum utils"
become: yes
yum:
name: yum-utils
state: installed
- na... | ---
- name: "Install Docker rpm key"
become: yes
rpm_key:
key: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
state: present
- name: "Install libselinux-python to allow file copy"
become: yes
yum:
name: libselinux-python
state: present
- name... | Use file copy for yum repo to make it indempotent. | Use file copy for yum repo to make it indempotent.
| YAML | apache-2.0 | adrahon/ansible-docker-ucp | yaml | ## Code Before:
---
- name: "Install Docker rpm key"
become: yes
rpm_key:
key: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
state: present
# install yum utils and Docker repo
- name: "Install yum utils"
become: yes
yum:
name: yum-utils
state... | ---
- name: "Install Docker rpm key"
become: yes
rpm_key:
key: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"
state: present
+ - name: "Install libselinux-python to allow file copy"
- # install yum utils and Docker repo
- - name: "Install ... | 17 | 0.548387 | 10 | 7 |
a958e5af2ee60199213045fec3446188d9ee0c03 | core/spec-unit/classes/open_graph_formatter_spec.rb | core/spec-unit/classes/open_graph_formatter_spec.rb | require_relative '../../app/classes/open_graph_formatter.rb'
describe OpenGraphFormatter do
describe '#to_hash' do
it 'returns a hash with the two default keys by default' do
default_rules = { key: mock }
formatter = described_class.new
formatter.stub(:default_rules).and_return(default_rul... | require_relative '../../app/classes/open_graph_formatter.rb'
describe OpenGraphFormatter do
describe '#to_hash' do
it 'returns a hash with the two default keys by default' do
default_rules = { key: mock }
formatter = described_class.new
formatter.stub(:default_rules).and_return(default_rul... | Use old_value new_value for readability | Use old_value new_value for readability
| Ruby | mit | Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core | ruby | ## Code Before:
require_relative '../../app/classes/open_graph_formatter.rb'
describe OpenGraphFormatter do
describe '#to_hash' do
it 'returns a hash with the two default keys by default' do
default_rules = { key: mock }
formatter = described_class.new
formatter.stub(:default_rules).and_re... | require_relative '../../app/classes/open_graph_formatter.rb'
describe OpenGraphFormatter do
describe '#to_hash' do
it 'returns a hash with the two default keys by default' do
default_rules = { key: mock }
formatter = described_class.new
formatter.stub(:default_rules).and_... | 4 | 0.1 | 2 | 2 |
819836a9e8732cd645b9be3b0ba08cc358e74b1d | roles/centos6/tasks/main.yml | roles/centos6/tasks/main.yml | - include: ../../common/tasks/create_user.yml
with_items:
- "{{ v123456 }}"
- "{{ v789012 }}"
| - include: ../../common/tasks/create_user.yml
with_items:
- "{{ u220815 }}"
- "{{ u224711 }}"
| Change example to use testdata | Change example to use testdata
| YAML | mit | dehesselle/clum | yaml | ## Code Before:
- include: ../../common/tasks/create_user.yml
with_items:
- "{{ v123456 }}"
- "{{ v789012 }}"
## Instruction:
Change example to use testdata
## Code After:
- include: ../../common/tasks/create_user.yml
with_items:
- "{{ u220815 }}"
- "{{ u224711 }}"
| - include: ../../common/tasks/create_user.yml
with_items:
- - "{{ v123456 }}"
? ^ --- -
+ - "{{ u220815 }}"
? ^^^^^
- - "{{ v789012 }}"
? ^ --- ^
+ - "{{ u224711 }}"
? ^^^^ ^
| 4 | 1 | 2 | 2 |
48455d0d1b8632d6b512e257d6dd914defd7ae84 | px/px_process_test.py | px/px_process_test.py | import px_process
def test_create_process():
process_builder = px_process.PxProcessBuilder()
process_builder.pid = 7
process_builder.username = "usernamex"
process_builder.cpu_time = 1.3
process_builder.memory_percent = 42.7
process_builder.cmdline = "hej kontinent"
test_me = px_process.Px... | import getpass
import os
import px_process
def test_create_process():
process_builder = px_process.PxProcessBuilder()
process_builder.pid = 7
process_builder.username = "usernamex"
process_builder.cpu_time = 1.3
process_builder.memory_percent = 42.7
process_builder.cmdline = "hej kontinent"
... | Add (failing) test for getting all processes | Add (failing) test for getting all processes
| Python | mit | walles/px,walles/px | python | ## Code Before:
import px_process
def test_create_process():
process_builder = px_process.PxProcessBuilder()
process_builder.pid = 7
process_builder.username = "usernamex"
process_builder.cpu_time = 1.3
process_builder.memory_percent = 42.7
process_builder.cmdline = "hej kontinent"
test_me... | + import getpass
+
+ import os
import px_process
def test_create_process():
process_builder = px_process.PxProcessBuilder()
process_builder.pid = 7
process_builder.username = "usernamex"
process_builder.cpu_time = 1.3
process_builder.memory_percent = 42.7
process_builder.c... | 21 | 1.235294 | 21 | 0 |
63bf9c267ff891f1a2bd1f472a5d77f8df1e0209 | tests/iam/test_iam_valid_json.py | tests/iam/test_iam_valid_json.py | """Test IAM Policy templates are valid JSON."""
import jinja2
from foremast.iam.construct_policy import render_policy_template
from foremast.utils.templates import LOCAL_TEMPLATES
def iam_templates():
"""Generate list of IAM templates."""
jinjaenv = jinja2.Environment(loader=jinja2.FileSystemLoader([LOCAL_TE... | """Test IAM Policy templates are valid JSON."""
import json
import jinja2
import pytest
from foremast.iam.construct_policy import render_policy_template
from foremast.utils.templates import LOCAL_TEMPLATES
def iam_templates():
"""Generate list of IAM templates."""
jinjaenv = jinja2.Environment(loader=jinja2... | Split IAM template tests with paramtrize | test: Split IAM template tests with paramtrize
See also: #208
| Python | apache-2.0 | gogoair/foremast,gogoair/foremast | python | ## Code Before:
"""Test IAM Policy templates are valid JSON."""
import jinja2
from foremast.iam.construct_policy import render_policy_template
from foremast.utils.templates import LOCAL_TEMPLATES
def iam_templates():
"""Generate list of IAM templates."""
jinjaenv = jinja2.Environment(loader=jinja2.FileSystem... | """Test IAM Policy templates are valid JSON."""
+ import json
+
import jinja2
+ import pytest
from foremast.iam.construct_policy import render_policy_template
from foremast.utils.templates import LOCAL_TEMPLATES
def iam_templates():
"""Generate list of IAM templates."""
jinjaenv = jinja2... | 25 | 0.568182 | 18 | 7 |
7588fcb13a30b8a723e2789b26f3e612ece71c1b | dev-requirements.txt | dev-requirements.txt | bzr; python_version == '2.7'
kgb>=5.0
mercurial>=4.4.2
mock
nose
# As of p4python 2019.1.1858212, there are only compiled wheel packages for
# Python 2.7 and 3.4 through 3.7. p4python's setup.py doesn't support
# locating p4api or OpenSSL on anything but Linux. We have to wire off
# Python 3.8 support for now when not... | bzr; python_version == '2.7'
kgb>=6.0
mercurial>=4.4.2
mock
nose
# As of p4python 2020.1.2056111, there are only compiled wheel packages for
# Python 2.7 and 3.5 through 3.8. p4python's setup.py doesn't support
# locating p4api or OpenSSL on anything but Linux. We have to wire off
# Python 3.9 support for now when not... | Update development dependencies for p4python, Swift, and S3. | Update development dependencies for p4python, Swift, and S3.
When setting up a development environment, we now use the latest version
of p4python (which added Python 3.8 support, but does not include 3.9),
and our Swift and S3 packages, which are needed for unit tests.
Testing Done:
Ran `pip install -r dev-requiremen... | Text | mit | reviewboard/reviewboard,chipx86/reviewboard,chipx86/reviewboard,chipx86/reviewboard,reviewboard/reviewboard,chipx86/reviewboard,reviewboard/reviewboard,reviewboard/reviewboard | text | ## Code Before:
bzr; python_version == '2.7'
kgb>=5.0
mercurial>=4.4.2
mock
nose
# As of p4python 2019.1.1858212, there are only compiled wheel packages for
# Python 2.7 and 3.4 through 3.7. p4python's setup.py doesn't support
# locating p4api or OpenSSL on anything but Linux. We have to wire off
# Python 3.8 support ... | bzr; python_version == '2.7'
- kgb>=5.0
? ^
+ kgb>=6.0
? ^
mercurial>=4.4.2
mock
nose
- # As of p4python 2019.1.1858212, there are only compiled wheel packages for
? ^^ ---- ^
+ # As of p4python 2020.1.2056111, there are only compiled wheel packages for
? ... | 12 | 0.48 | 7 | 5 |
977ced8e01f5a01f8e604fa4a12c7c1327ae68c7 | log4j-core/src/test/resources/log4j-props1.xml | log4j-core/src/test/resources/log4j-props1.xml | <?xml version="1.0" encoding="UTF-8"?>
<Configuration strict="false" name="DSI" packages="com.terradue.dsione">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="[%-5level] %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="${sys:log.level}">
<Appende... | <?xml version="1.0" encoding="UTF-8"?>
<Configuration strict="false" name="DSI">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="[%-5level] %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="${sys:log.level}">
<AppenderRef ref="Console" />
</Roo... | Remove reference to nonexistent packages. | Remove reference to nonexistent packages.
git-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1588340 13f79535-47bb-0310-9956-ffa450edef68
| XML | apache-2.0 | GFriedrich/logging-log4j2,lburgazzoli/logging-log4j2,GFriedrich/logging-log4j2,lburgazzoli/logging-log4j2,jsnikhil/nj-logging-log4j2,pisfly/logging-log4j2,lqbweb/logging-log4j2,MagicWiz/log4j2,neuro-sys/logging-log4j2,ChetnaChaudhari/logging-log4j2,jsnikhil/nj-logging-log4j2,renchunxiao/logging-log4j2,codescale/logging... | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration strict="false" name="DSI" packages="com.terradue.dsione">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="[%-5level] %msg%n" />
</Console>
</Appenders>
<Loggers>
<Root level="${sys:log.level}"... | <?xml version="1.0" encoding="UTF-8"?>
- <Configuration strict="false" name="DSI" packages="com.terradue.dsione">
+ <Configuration strict="false" name="DSI">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="[%-5level] %msg%n" />
</Console>
</Appenders>
... | 2 | 0.142857 | 1 | 1 |
6f9faf3ea0cad5be88f2694ede4722b822ceec98 | core/bin/server/stop_resque.sh | core/bin/server/stop_resque.sh | PID=`cat ~/resque.pid`
# Check if the process id is in the running processes list
count=`ps x --no-header -eo pid | grep -c $PID`
if [ "$count" -eq "1" ]; then
cat ~/resque.pid | xargs kill
fi | /bin/sh -c 'kill -9 `cat /home/deploy/resque.pid` && rm -f cat /home/deploy/resque.pid; exit 0;'
| Kill the Resque worker with the defined PID | Kill the Resque worker with the defined PID
| Shell | mit | Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core | shell | ## Code Before:
PID=`cat ~/resque.pid`
# Check if the process id is in the running processes list
count=`ps x --no-header -eo pid | grep -c $PID`
if [ "$count" -eq "1" ]; then
cat ~/resque.pid | xargs kill
fi
## Instruction:
Kill the Resque worker with the defined PID
## Code After:
/bin/sh -c 'kill -9 `cat /hom... | + /bin/sh -c 'kill -9 `cat /home/deploy/resque.pid` && rm -f cat /home/deploy/resque.pid; exit 0;'
- PID=`cat ~/resque.pid`
-
- # Check if the process id is in the running processes list
- count=`ps x --no-header -eo pid | grep -c $PID`
-
- if [ "$count" -eq "1" ]; then
- cat ~/resque.pid | xargs kill
- fi | 9 | 1.125 | 1 | 8 |
d93ffe995dfbdbc698c4594f9e0d255a6af3802b | index.html | index.html | <!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1... | <!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1... | Make the redirect generic, now its point to the folder and not for the file | Make the redirect generic, now its point to the folder and not for the file
| HTML | apache-2.0 | otaviojava/nosqlba,otaviojava/nosqlba | html | ## Code Before:
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="... | <!DOCTYPE HTML>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui" />
<meta http-equiv="X-UA-Compatible" content="... | 6 | 0.26087 | 3 | 3 |
5763e16845b126a527cb6108a95888c42f8ac75f | web-framework/search/search-index-asset.html | web-framework/search/search-index-asset.html | %begin_asset_metadata_robots^contains:noindex:1:0^eq:0%
%begin_asset_metadata_jcu.site.search_enabled^neq:0%
<a href="%asset_url^htmlentities:ENT_QUOTES%">%asset_name^htmlentities:ENT_QUOTES%<a/> - (Asset ID - %asset_assetid%)<br>
%end_asset%
%end_asset%
| %begin_asset_metadata_robots^contains:noindex:1:0^eq:0%
%begin_asset_metadata_jcu.site.search_enabled^neq:0%
<a href="%asset_url^htmlentities:ENT_QUOTES%">%asset_url^htmlentities:ENT_QUOTES%<a/><br>
%end_asset%
%end_asset%
| Change search index to list URLs for sites to be indexed | Change search index to list URLs for sites to be indexed
| HTML | agpl-3.0 | jcu-eresearch/matrix-helpers,jcu-eresearch/matrix-helpers,jcu-eresearch/matrix-helpers,jcu-eresearch/matrix-helpers,jcu-eresearch/matrix-helpers | html | ## Code Before:
%begin_asset_metadata_robots^contains:noindex:1:0^eq:0%
%begin_asset_metadata_jcu.site.search_enabled^neq:0%
<a href="%asset_url^htmlentities:ENT_QUOTES%">%asset_name^htmlentities:ENT_QUOTES%<a/> - (Asset ID - %asset_assetid%)<br>
%end_asset%
%end_asset%
## Instruction:
Change search index to l... | %begin_asset_metadata_robots^contains:noindex:1:0^eq:0%
%begin_asset_metadata_jcu.site.search_enabled^neq:0%
- <a href="%asset_url^htmlentities:ENT_QUOTES%">%asset_name^htmlentities:ENT_QUOTES%<a/> - (Asset ID - %asset_assetid%)<br>
? ^^^^ ... | 2 | 0.4 | 1 | 1 |
7d79cc0efee86c348b049d381690909c88655432 | README.md | README.md | Android App for Movie-Maniac Project
https://cloud.githubusercontent.com/assets/2491168/11892089/d7b0fa82-a59f-11e5-92ea-a2c8203bd860.png
https://cloud.githubusercontent.com/assets/2491168/11892091/d7ba2486-a59f-11e5-996c-271c57d8b040.png
https://cloud.githubusercontent.com/assets/2491168/11892092/d7c4b1b2-a59f-11e5... | Android App for Movie-Maniac Project



? ++++++++++++++++++++++++++++++ ... | 11 | 1.222222 | 4 | 7 |
69a763860202c42026b2c7146dcf915e30bc3f9b | misc/utils/LogTools/LogView.py | misc/utils/LogTools/LogView.py | import threading
import socket
import logging
import os
import colorama
from termcolor import colored
from collections import deque
markerStack = deque([''])
def colorMessage(message):
if 'Info' in message :
print(colored(message, 'green'))
elif 'Error' in message :
print(colored(message, 're... |
import threading
import socket
import logging
import os
import colorama
import docopt
from termcolor import colored
from collections import deque
markerStack = deque([''])
def colorMessage(message):
if 'Info' in message :
print(colored(message, 'green'))
elif 'Error' in message :
print(color... | Add docopt - not finished | Add docopt - not finished
| Python | mit | xfleckx/BeMoBI,xfleckx/BeMoBI | python | ## Code Before:
import threading
import socket
import logging
import os
import colorama
from termcolor import colored
from collections import deque
markerStack = deque([''])
def colorMessage(message):
if 'Info' in message :
print(colored(message, 'green'))
elif 'Error' in message :
print(colo... | +
import threading
import socket
import logging
import os
import colorama
+ import docopt
from termcolor import colored
from collections import deque
markerStack = deque([''])
def colorMessage(message):
if 'Info' in message :
print(colored(message, 'green'))
elif 'Error... | 2 | 0.036364 | 2 | 0 |
2cb03ff8c3d21f36b95103eaf9ae0fb3e43077bd | pinax_theme_bootstrap/templatetags/pinax_theme_bootstrap_tags.py | pinax_theme_bootstrap/templatetags/pinax_theme_bootstrap_tags.py | from django import template
from django.contrib.messages.utils import get_level_tags
LEVEL_TAGS = get_level_tags()
register = template.Library()
@register.simple_tag()
def get_message_tags(message):
"""
Returns the message's level_tag prefixed with Bootstrap's "alert-" prefix
along with any tags includ... | from django import template
from django.contrib.messages.utils import get_level_tags
from django.utils.encoding import force_text
LEVEL_TAGS = get_level_tags()
register = template.Library()
@register.simple_tag()
def get_message_tags(message):
"""
Returns the message's level_tag prefixed with Bootstrap's "... | Allow for lazy translation of message tags | Allow for lazy translation of message tags
| Python | mit | foraliving/foraliving,druss16/danslist,grahamu/pinax-theme-bootstrap,foraliving/foraliving,grahamu/pinax-theme-bootstrap,druss16/danslist,jacobwegner/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,druss16/danslist,grahamu/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,foraliving/foraliving | python | ## Code Before:
from django import template
from django.contrib.messages.utils import get_level_tags
LEVEL_TAGS = get_level_tags()
register = template.Library()
@register.simple_tag()
def get_message_tags(message):
"""
Returns the message's level_tag prefixed with Bootstrap's "alert-" prefix
along with... | from django import template
from django.contrib.messages.utils import get_level_tags
+ from django.utils.encoding import force_text
LEVEL_TAGS = get_level_tags()
register = template.Library()
@register.simple_tag()
def get_message_tags(message):
"""
Returns the message's level_tag... | 8 | 0.285714 | 5 | 3 |
6b88ed3466226fdb56dbb0be3f1fa9916b288f4b | requiregems.rb | requiregems.rb | begin
require 'cinch'
rescue LoadError
puts "You're missing the gem `cinch`. Would you like to install this now? (y/n)"
input = gets.chomp
if input == 'y'
`gem install cinch`
puts 'Gem installed! Continuing..'
else
puts 'To continue, install the cinch gem'
exit
end
end
begin
require 'RestC... | begin
require 'cinch'
rescue LoadError
puts "You're missing the gem `cinch`. Would you like to install this now? (y/n)"
input = gets.chomp
if input == 'y'
`gem install cinch`
puts 'Gem installed! Continuing..'
else
puts 'To continue, install the cinch gem'
exit
end
end
begin
require 'RestC... | Fix require gems not working (maybe?) | Fix require gems not working (maybe?)
| Ruby | mit | Chewbotcca/IRC,Chewbotcca/IRC | ruby | ## Code Before:
begin
require 'cinch'
rescue LoadError
puts "You're missing the gem `cinch`. Would you like to install this now? (y/n)"
input = gets.chomp
if input == 'y'
`gem install cinch`
puts 'Gem installed! Continuing..'
else
puts 'To continue, install the cinch gem'
exit
end
end
begin
... | begin
require 'cinch'
rescue LoadError
puts "You're missing the gem `cinch`. Would you like to install this now? (y/n)"
input = gets.chomp
if input == 'y'
`gem install cinch`
puts 'Gem installed! Continuing..'
else
puts 'To continue, install the cinch gem'
exit
end
... | 8 | 0.186047 | 4 | 4 |
588a552ce9750a70f0c80ed574c139f563d5ffcc | optimize/index.js | optimize/index.js | var eng = require('./node/engine');
var index = module.exports = {
localMinimize: function(func, options, callback) {
eng.runPython('local', func, options, callback);
},
globalMinimize: function(func, options, callback) {
eng.runPython('global', func, options, callback);
},
nonNegLeastSquares: func... | var eng = require('./node/engine');
var index = module.exports = {
localMinimize: function(func, options, callback) {
eng.runPython('local', func, options, callback);
},
globalMinimize: function(func, options, callback) {
eng.runPython('global', func, options, callback);
},
minimizeEuclideanNorm: f... | Add API for derivative, vector root | Add API for derivative, vector root
| JavaScript | mit | acjones617/scipy-node,acjones617/scipy-node | javascript | ## Code Before:
var eng = require('./node/engine');
var index = module.exports = {
localMinimize: function(func, options, callback) {
eng.runPython('local', func, options, callback);
},
globalMinimize: function(func, options, callback) {
eng.runPython('global', func, options, callback);
},
nonNegLe... | var eng = require('./node/engine');
var index = module.exports = {
localMinimize: function(func, options, callback) {
eng.runPython('local', func, options, callback);
},
globalMinimize: function(func, options, callback) {
eng.runPython('global', func, options, callback);
},
- nonN... | 8 | 0.296296 | 7 | 1 |
6dca408ee648031671ca97f3e655f581938f32d8 | metadata.rb | metadata.rb | name "bacula-ng"
maintainer "Maciej Pasternacki"
maintainer_email "maciej@3ofcoins.net"
license 'MIT'
description "Bacula"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
depends 'apache2'
depends 'chef-solo-search'
depends 'database'
de... | name "bacula-ng"
maintainer "Maciej Pasternacki"
maintainer_email "maciej@3ofcoins.net"
license 'MIT'
description "Bacula"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
depends 'apache2'
depends 'database'
depends 'iptables'
depends 'm... | Drop chef-solo-search from direct dependencies | Drop chef-solo-search from direct dependencies
| Ruby | mit | 3ofcoins/chef-cookbook-bacula-ng,3ofcoins/chef-cookbook-bacula-ng,3ofcoins/chef-cookbook-bacula-ng | ruby | ## Code Before:
name "bacula-ng"
maintainer "Maciej Pasternacki"
maintainer_email "maciej@3ofcoins.net"
license 'MIT'
description "Bacula"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
depends 'apache2'
depends 'chef-solo-search'
depen... | name "bacula-ng"
maintainer "Maciej Pasternacki"
maintainer_email "maciej@3ofcoins.net"
license 'MIT'
description "Bacula"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
depends 'apache2'
- depends 'chef-solo-search'
... | 1 | 0.0625 | 0 | 1 |
a7c33752a7de5af20f21a06fb011918afa241b6e | ide/tool/drone_io.sh | ide/tool/drone_io.sh | if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
sudo start xvfb
export HAS_DARTIUM=true
fi
# Display installed versions.
dart --version
/usr/bin/google-chrome --version
# Get our packages.
pub get
# Build the archive.
if test \( x$DRONE_REPO_SLUG = xgithub.com/dart-lang/spark -a x$DRONE_BRANCH = ... | if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
curl -O https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
sudo dpkg -i google-chrome-unstable_current_amd64.deb
sudo start xvfb
export HAS_DARTIUM=true
fi
# Display installed versions.
dart --version
/usr/bin/google-chrom... | Install chrome dev and test with chrome dev | Install chrome dev and test with chrome dev
| Shell | bsd-3-clause | b0dh1sattva/chromedeveditor,yikaraman/chromedeveditor,yikaraman/chromedeveditor,ussuri/chromedeveditor,2947721120/choredev,yikaraman/chromedeveditor,beaufortfrancois/chromedeveditor,ussuri/chromedeveditor,b0dh1sattva/chromedeveditor,googlearchive/chromedeveditor,valmzetvn/chromedeveditor,vivalaralstin/chromedeveditor,2... | shell | ## Code Before:
if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
sudo start xvfb
export HAS_DARTIUM=true
fi
# Display installed versions.
dart --version
/usr/bin/google-chrome --version
# Get our packages.
pub get
# Build the archive.
if test \( x$DRONE_REPO_SLUG = xgithub.com/dart-lang/spark -a x... | if [ "$DRONE" = "true" ]; then
sudo apt-get -y -q install zip
+ curl -O https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
+ sudo dpkg -i google-chrome-unstable_current_amd64.deb
sudo start xvfb
export HAS_DARTIUM=true
fi
# Display installed versions.
dart --version
... | 8 | 0.210526 | 3 | 5 |
591d2658cb82c9f0fa1b37c90b9bc9046f24868a | tinylog-core-base/src/main/java/org/tinylog/core/backend/LoggingBackendBuilder.java | tinylog-core-base/src/main/java/org/tinylog/core/backend/LoggingBackendBuilder.java | package org.tinylog.core.backend;
import org.tinylog.core.Framework;
/**
* Builder for creating {@link LoggingBackend LoggingBackends}.
*
* <p>
* This interface must be implemented by all logging backends and provided as
* {@link java.util.ServiceLoader service} in {@code META-INF/services}.
* </p>
*/
... | package org.tinylog.core.backend;
import org.tinylog.core.Framework;
/**
* Builder for creating {@link LoggingBackend LoggingBackends}.
*
* <p>
* This interface must be implemented by all logging backends and provided as
* {@link java.util.ServiceLoader service} in {@code META-INF/services}.
* </p>
*/
... | Use the standard Javadoc description for framework parameters | Use the standard Javadoc description for framework parameters
| Java | apache-2.0 | pmwmedia/tinylog,pmwmedia/tinylog | java | ## Code Before:
package org.tinylog.core.backend;
import org.tinylog.core.Framework;
/**
* Builder for creating {@link LoggingBackend LoggingBackends}.
*
* <p>
* This interface must be implemented by all logging backends and provided as
* {@link java.util.ServiceLoader service} in {@code META-INF/service... | package org.tinylog.core.backend;
import org.tinylog.core.Framework;
/**
* Builder for creating {@link LoggingBackend LoggingBackends}.
*
* <p>
* This interface must be implemented by all logging backends and provided as
* {@link java.util.ServiceLoader service} in {@code META-INF/ser... | 2 | 0.055556 | 1 | 1 |
280ff6b3d6de3e65f43ad4a643c5215464d23c24 | azure-pipelines.yml | azure-pipelines.yml |
trigger:
batch: true
branches:
include:
- master
pr:
branches:
include:
- master
paths:
exclude:
- docs/src/main/asciidoc/*
- docs/src/main/asciidoc/images/*
- README.md
- CONTRIBUTING.md
- LICENSE.txt
- dco.txt
- .github/ISSUE_TEMPLATE/*.md
v... |
trigger:
batch: true
branches:
include:
- master
pr:
branches:
include:
- master
paths:
exclude:
- docs/src/main/asciidoc/*
- docs/src/main/asciidoc/images/*
- README.md
- CONTRIBUTING.md
- LICENSE.txt
- dco.txt
- .github/ISSUE_TEMPLATE/*.md
v... | Add a build property to allow disabling without source changes | Add a build property to allow disabling without source changes
| YAML | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus | yaml | ## Code Before:
trigger:
batch: true
branches:
include:
- master
pr:
branches:
include:
- master
paths:
exclude:
- docs/src/main/asciidoc/*
- docs/src/main/asciidoc/images/*
- README.md
- CONTRIBUTING.md
- LICENSE.txt
- dco.txt
- .github/ISSUE_... |
trigger:
batch: true
branches:
include:
- master
pr:
branches:
include:
- master
paths:
exclude:
- docs/src/main/asciidoc/*
- docs/src/main/asciidoc/images/*
- README.md
- CONTRIBUTING.md
- LICENSE.txt
- dco.txt
... | 3 | 0.075 | 2 | 1 |
970095beeda0120df2572323097a25b2357a8e80 | test/e2e/member1-spec.js | test/e2e/member1-spec.js | describe('Member', function() {
it('should create a new member', function() {
browser.get('#/member-list');
$('.btn-primary').click();
element(by.model('item.name')).sendKeys('New member');
$('.btn-primary').click();
var idElement = element(by.model('item._id'));
expect(idElement.getAttrib... | describe('Member', function() {
it('should create a new member', function() {
// Navigate to list page.
browser.get('#/member-list');
// Click on the create button.
element(by.linkText('Create new')).click();
// Enter a name.
element(by.model('item.name')).sendKeys('New member');
// Sav... | Add comments and remove second test | Add comments and remove second test
| JavaScript | mit | andresdominguez/protractor-meetup | javascript | ## Code Before:
describe('Member', function() {
it('should create a new member', function() {
browser.get('#/member-list');
$('.btn-primary').click();
element(by.model('item.name')).sendKeys('New member');
$('.btn-primary').click();
var idElement = element(by.model('item._id'));
expect(idE... | describe('Member', function() {
it('should create a new member', function() {
+ // Navigate to list page.
browser.get('#/member-list');
+ // Click on the create button.
+ element(by.linkText('Create new')).click();
+
+ // Enter a name.
+ element(by.model('item.name')).sendKeys('New m... | 42 | 1.105263 | 15 | 27 |
7d8026467e2da2cc87eaa1cd75e2bfbfe8370f0c | project.clj | project.clj | (defproject railway-oriented-programming "0.1.1"
:description "An implementation of railway oriented programming"
:url "https://github.com/HughPowell/railway-oriented-programming"
:license {:name "Mozilla Public License v2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependencies [[org.clojure... | (defproject railway-oriented-programming "0.1.2-SNAPSHOT"
:description "An implementation of railway oriented programming"
:url "https://github.com/HughPowell/railway-oriented-programming"
:license {:name "Mozilla Public License v2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependencies [[or... | Move version to next SNAPSHOT | Move version to next SNAPSHOT
| Clojure | mpl-2.0 | HughPowell/railway-oriented-programming | clojure | ## Code Before:
(defproject railway-oriented-programming "0.1.1"
:description "An implementation of railway oriented programming"
:url "https://github.com/HughPowell/railway-oriented-programming"
:license {:name "Mozilla Public License v2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependenci... | - (defproject railway-oriented-programming "0.1.1"
? ^
+ (defproject railway-oriented-programming "0.1.2-SNAPSHOT"
? ^^^^^^^^^^
:description "An implementation of railway oriented programming"
:url "https://github.com/... | 2 | 0.086957 | 1 | 1 |
4642f29759a5c6eb735ec977651542a22954d576 | README.md | README.md |
Open Drug Discovery Toolkit (ODDT) is modular and comprehensive toolkit for use in cheminformatics, molecular modeling etc. ODDT is written in Python, and make extensive use of Numpy/Scipy
[](http://oddt.readthedocs.org/en/latest/)
... |
Open Drug Discovery Toolkit (ODDT) is modular and comprehensive toolkit for use in cheminformatics, molecular modeling etc. ODDT is written in Python, and make extensive use of Numpy/Scipy
[](http://oddt.readthedocs.org/en/latest/)
... | Correct link to G. Analytics | Correct link to G. Analytics | Markdown | bsd-3-clause | oddt/oddt,oddt/oddt,mkukielka/oddt,mkukielka/oddt | markdown | ## Code Before:
Open Drug Discovery Toolkit (ODDT) is modular and comprehensive toolkit for use in cheminformatics, molecular modeling etc. ODDT is written in Python, and make extensive use of Numpy/Scipy
[](http://oddt.readthedocs.or... |
Open Drug Discovery Toolkit (ODDT) is modular and comprehensive toolkit for use in cheminformatics, molecular modeling etc. ODDT is written in Python, and make extensive use of Numpy/Scipy
[](http://oddt.readthedocs.org/en/lat... | 2 | 0.058824 | 1 | 1 |
69ea3ae14fba2cca826f4c40d2e4ed8914029560 | ghost/admin/app/utils/route.js | ghost/admin/app/utils/route.js | import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
Route.reopen({
config: service(),
billing: service(),
router: service(),
actions: {
willTransition(transition) {
if (this.get('upgradeStatus.isRequired')) {
transition.abort(... | import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
Route.reopen({
config: service(),
billing: service(),
router: service(),
actions: {
willTransition(transition) {
if (this.get('upgradeStatus.isRequired')) {
transition.abort(... | Allow signout in `forceUpgrade` state | Allow signout in `forceUpgrade` state
| JavaScript | mit | TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost | javascript | ## Code Before:
import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
Route.reopen({
config: service(),
billing: service(),
router: service(),
actions: {
willTransition(transition) {
if (this.get('upgradeStatus.isRequired')) {
t... | import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
Route.reopen({
config: service(),
billing: service(),
router: service(),
actions: {
willTransition(transition) {
if (this.get('upgradeStatus.isRequired')) {
... | 2 | 0.08 | 1 | 1 |
2a8e5f3fac93504993fda88d01e4e4667773a179 | utils/vagrant/bootstrap_root.sh | utils/vagrant/bootstrap_root.sh |
echo "Provisioning virtual machine..."
apt-get update
echo "Preparing MySQL"
apt-get install debconf-utils -y
# set default mysql root password
debconf-set-selections <<< "mysql-server mysql-server/root_password password 1234"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password 1234"
... |
echo "Provisioning virtual machine..."
apt-get update
echo "Preparing MySQL"
apt-get install debconf-utils -y
# set default mysql root password
debconf-set-selections <<< "mysql-server mysql-server/root_password password 1234"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password 1234"
... | Update Vagrant provision script for https | Update Vagrant provision script for https
| Shell | mit | FNNDSC/ChRIS_ultron_backEnd,FNNDSC/ChRIS_ultron_backEnd,FNNDSC/ChRIS_ultron_backEnd,FNNDSC/ChRIS_ultron_backEnd | shell | ## Code Before:
echo "Provisioning virtual machine..."
apt-get update
echo "Preparing MySQL"
apt-get install debconf-utils -y
# set default mysql root password
debconf-set-selections <<< "mysql-server mysql-server/root_password password 1234"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again... |
echo "Provisioning virtual machine..."
apt-get update
echo "Preparing MySQL"
apt-get install debconf-utils -y
# set default mysql root password
debconf-set-selections <<< "mysql-server mysql-server/root_password password 1234"
debconf-set-selections <<< "mysql-server mysql-server/root_password... | 3 | 0.103448 | 3 | 0 |
07016492150374b08c54e2a2519258e9f80f774d | Sources/Birthdays/BirthdaysManager.swift | Sources/Birthdays/BirthdaysManager.swift | // Created by dasdom on 13.04.20.
//
//
import Foundation
public class BirthdaysManager {
public private(set) var all: [Birthday]
public init() {
all = []
all = loadBirthdays()
}
public func add(_ birthday: Birthday) {
all.append(birthday)
save(birthdays: all)
}
public func bir... | // Created by dasdom on 13.04.20.
//
//
import Foundation
public class BirthdaysManager {
public private(set) var all: [Birthday] {
didSet {
birthdayCounts = all
.map { BirthdayCount(birthday: $0) }
.sorted(by: { $0.remainingDays < $1.remainingDays })
}
}
public private(set) var... | Change birthdayCounts from method to property | Change birthdayCounts from method to property
| Swift | mit | dasdom/Birthdays | swift | ## Code Before:
// Created by dasdom on 13.04.20.
//
//
import Foundation
public class BirthdaysManager {
public private(set) var all: [Birthday]
public init() {
all = []
all = loadBirthdays()
}
public func add(_ birthday: Birthday) {
all.append(birthday)
save(birthdays: all)
}
... | // Created by dasdom on 13.04.20.
//
//
import Foundation
public class BirthdaysManager {
- public private(set) var all: [Birthday]
+ public private(set) var all: [Birthday] {
? ++
+ didSet {
+ birthdayCounts = all
+ .map { BirthdayCount... | 17 | 0.395349 | 12 | 5 |
56deed3316cc670a3f1ef0df96d6b858b507ccf6 | lib/drug-bot/plugins/reddit.rb | lib/drug-bot/plugins/reddit.rb | require 'rss/1.0'
require 'rss/2.0'
require 'eventmachine'
class Reddit
def initialize(bot)
@bot = bot
unless File.exist?(@config = ENV["HOME"] + "/.drug-bot")
FileUtils.mkdir @config
end
unless File.exist? @config + "/last_update.yml"
db = YAML::dump Time.now
File.open(@config + ... | require 'rss/1.0'
require 'rss/2.0'
require 'eventmachine'
class Reddit
def initialize(bot)
@bot = bot
unless File.exist?(@config = ENV["HOME"] + "/.drug-bot")
FileUtils.mkdir @config
end
unless File.exist? @config + "/last_update.yml"
db = YAML::dump Time.now
File.open(@config + ... | Move last update before request | Move last update before request
| Ruby | mit | LTe/muzang | ruby | ## Code Before:
require 'rss/1.0'
require 'rss/2.0'
require 'eventmachine'
class Reddit
def initialize(bot)
@bot = bot
unless File.exist?(@config = ENV["HOME"] + "/.drug-bot")
FileUtils.mkdir @config
end
unless File.exist? @config + "/last_update.yml"
db = YAML::dump Time.now
File... | require 'rss/1.0'
require 'rss/2.0'
require 'eventmachine'
class Reddit
def initialize(bot)
@bot = bot
unless File.exist?(@config = ENV["HOME"] + "/.drug-bot")
FileUtils.mkdir @config
end
unless File.exist? @config + "/last_update.yml"
db = YAML::dump Time.no... | 2 | 0.047619 | 1 | 1 |
9d975d9eba88748d6d9ace43cc3f8706648c30a5 | docs/source/installation/upgrade_legacy.rst | docs/source/installation/upgrade_legacy.rst | Upgrade Indico from 1.2
=======================
The migration tool (`indico-migrate <https://github.com/indico/indico-migrate>`_)
requires Python 2.7 and Indico 2.0. It is not supported by Indico v3 nor will it
work on Python 3.
If you still need to migrate a legacy instance from the 1.x (or older), please
consult th... | Upgrade Indico from 1.2
=======================
The migration tool (`indico-migrate <https://github.com/indico/indico-migrate>`_)
requires Python 2.7 and Indico 2.0. It is not supported by Indico v3 nor will it
work on Python 3.
If you still need to migrate a legacy instance from the 1.x (or older), please
consult th... | Add link to v2 docs for 1.2 migration | Add link to v2 docs for 1.2 migration
| reStructuredText | mit | indico/indico,DirkHoffmann/indico,indico/indico,indico/indico,indico/indico,DirkHoffmann/indico,DirkHoffmann/indico,DirkHoffmann/indico | restructuredtext | ## Code Before:
Upgrade Indico from 1.2
=======================
The migration tool (`indico-migrate <https://github.com/indico/indico-migrate>`_)
requires Python 2.7 and Indico 2.0. It is not supported by Indico v3 nor will it
work on Python 3.
If you still need to migrate a legacy instance from the 1.x (or older), p... | Upgrade Indico from 1.2
=======================
The migration tool (`indico-migrate <https://github.com/indico/indico-migrate>`_)
requires Python 2.7 and Indico 2.0. It is not supported by Indico v3 nor will it
work on Python 3.
If you still need to migrate a legacy instance from the 1.x (or older), p... | 6 | 0.545455 | 3 | 3 |
52749a9b894f62bcc149189a8baa57a91889ffbf | .travis.yml | .travis.yml | language: objective-c
before_install:
- (ruby --version)
- sudo chown -R travis ~/Library/RubyMotion
- sudo mkdir -p ~/Library/RubyMotion/build
- sudo chown -R travis ~/Library/RubyMotion/build
- sudo motion update
gemfile:
- Gemfile
script:
- bundle install --jobs=3 --retry=3
- bundle exec rake clean
... | language: objective-c
before_install:
- (ruby --version)
- sudo chown -R travis ~/Library/RubyMotion
- sudo mkdir -p ~/Library/RubyMotion/build
- sudo chown -R travis ~/Library/RubyMotion/build
- sudo motion update
- /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr... | Test ios 8 and ios 7 | Test ios 8 and ios 7
| YAML | mit | fandor/BubbleWrap,andersennl/BubbleWrap,dam13n/BubbleWrap,earthrid/BubbleWrap | yaml | ## Code Before:
language: objective-c
before_install:
- (ruby --version)
- sudo chown -R travis ~/Library/RubyMotion
- sudo mkdir -p ~/Library/RubyMotion/build
- sudo chown -R travis ~/Library/RubyMotion/build
- sudo motion update
gemfile:
- Gemfile
script:
- bundle install --jobs=3 --retry=3
- bundle e... | language: objective-c
before_install:
- (ruby --version)
- sudo chown -R travis ~/Library/RubyMotion
- sudo mkdir -p ~/Library/RubyMotion/build
- sudo chown -R travis ~/Library/RubyMotion/build
- sudo motion update
+ - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfo... | 3 | 0.2 | 3 | 0 |
16af493cad28ab23c3c1abb128b4db3b405f25e9 | src/main/resources/run-docker-container.sh | src/main/resources/run-docker-container.sh |
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \
-Djclouds.provider=${JC... |
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.virtual-host=${S3PROXY_VIRTUALHOST} \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S... | Update docker script to allow for configuration of virtualhost | Update docker script to allow for configuration of virtualhost
| Shell | apache-2.0 | andrewgaul/s3proxy,timuralp/s3proxy,timuralp/s3proxy,andrewgaul/s3proxy | shell | ## Code Before:
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \
-Djclou... |
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
+ -Ds3proxy.virtual-host=${S3PROXY_VIRTUALHOST} \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.... | 1 | 0.0625 | 1 | 0 |
2756dfdf198f4ed02dd0b1418dd4f4bb835a95fe | layouts/partials/js.html | layouts/partials/js.html | {{ "<!-- jQuery -->" | safeHTML }}
<script src="{{ "js/jquery-v3.3.1/jquery.min.js"| absURL }}"></script>
{{ "<!-- Bootstrap Core -->" | safeHTML }}
<script src="{{ "js/bootstrap-v3.3.7/bootstrap.min.js"| absURL }}"></script>
{{ "<!-- Form Validation -->" | safeHTML }}
<script src="{{ "js/jquery.form-validator-v2.3.4... | {{ "<!-- jQuery -->" | safeHTML }}
<script src="{{ "js/jquery-v3.3.1/jquery.min.js"| absURL }}"></script>
{{ "<!-- Bootstrap Core -->" | safeHTML }}
<script src="{{ "js/bootstrap-v3.3.7/bootstrap.min.js"| absURL }}"></script>
{{ "<!-- Form Validation -->" | safeHTML }}
<script src="{{ "//cdnjs.cloudflare.com/ajax/lib... | Revert "Revert "update jquery form validator to newer version 2.3.26 due to CDN issues when deploying to netlify"" | Revert "Revert "update jquery form validator to newer version 2.3.26 due to CDN issues when deploying to netlify""
This reverts commit e533cfe1d44800169a4731ab14a78ad824546234.
| HTML | apache-2.0 | brwnchnl/vrnm,brwnchnl/vrnm | html | ## Code Before:
{{ "<!-- jQuery -->" | safeHTML }}
<script src="{{ "js/jquery-v3.3.1/jquery.min.js"| absURL }}"></script>
{{ "<!-- Bootstrap Core -->" | safeHTML }}
<script src="{{ "js/bootstrap-v3.3.7/bootstrap.min.js"| absURL }}"></script>
{{ "<!-- Form Validation -->" | safeHTML }}
<script src="{{ "js/jquery.form-... | {{ "<!-- jQuery -->" | safeHTML }}
<script src="{{ "js/jquery-v3.3.1/jquery.min.js"| absURL }}"></script>
{{ "<!-- Bootstrap Core -->" | safeHTML }}
<script src="{{ "js/bootstrap-v3.3.7/bootstrap.min.js"| absURL }}"></script>
{{ "<!-- Form Validation -->" | safeHTML }}
- <script src="{{ "js/jquery.form-... | 2 | 0.095238 | 1 | 1 |
74cdcc4cf557af27bd1a9c4766993f71b2c50f00 | web/index.html | web/index.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/createProject.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
<link rel="stylesheet" href="style/fonts/font-awesome/css/font-awesome.... | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/createProject.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
<link rel="stylesheet" href="style/fonts/font-awesome/css/font-awesome.... | Add stable version of bootstrap. | Add stable version of bootstrap.
v4-dev version seems to be having trouble.
| HTML | mit | Drakulix/knex,Drakulix/knex,Drakulix/knex,Drakulix/knex | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/createProject.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
<link rel="stylesheet" href="style/fonts/font-awesome/c... | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="style/createProject.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/v4-dev/dist/css/bootstrap.css">
<link rel="stylesheet" href="style/fonts/font-awesome/css... | 1 | 0.076923 | 1 | 0 |
22cc9b560633cf3b60418ee9d0305b2dc0eb0873 | .travis.yml | .travis.yml | dist: xenial
language: ruby
cache:
directories:
- vendor/bundle
services:
- postgresql
rvm:
- 2.6.0
- 2.5.3
- 2.4.5
- 2.3.8
env:
- REDMINE_VERSION=4.0.1
- REDMINE_VERSION=3.4.8
- REDMINE_VERSION=master
matrix:
allow_failures:
- env: REDMINE_VERSION=master
branches:
except:
- debian
before_install:
- gem u... | dist: xenial
language: ruby
cache:
directories:
- vendor/bundle
services:
- postgresql
rvm:
- 2.6.0
- 2.5.3
- 2.4.5
- 2.3.8
env:
- REDMINE_VERSION=4.0.1
- REDMINE_VERSION=3.4.8
- REDMINE_VERSION=master
matrix:
allow_failures:
- env: REDMINE_VERSION=master
branches:
except:
- debian
before_install:
- gem u... | Purge rvm global gemset too | Purge rvm global gemset too
Purge global gemset to avoid using wrong bundler from RVM setup
| YAML | apache-2.0 | jgraichen/redmine_dashboard,jgraichen/redmine_dashboard,jgraichen/redmine_dashboard | yaml | ## Code Before:
dist: xenial
language: ruby
cache:
directories:
- vendor/bundle
services:
- postgresql
rvm:
- 2.6.0
- 2.5.3
- 2.4.5
- 2.3.8
env:
- REDMINE_VERSION=4.0.1
- REDMINE_VERSION=3.4.8
- REDMINE_VERSION=master
matrix:
allow_failures:
- env: REDMINE_VERSION=master
branches:
except:
- debian
before_... | dist: xenial
language: ruby
cache:
directories:
- vendor/bundle
services:
- postgresql
rvm:
- 2.6.0
- 2.5.3
- 2.4.5
- 2.3.8
env:
- REDMINE_VERSION=4.0.1
- REDMINE_VERSION=3.4.8
- REDMINE_VERSION=master
matrix:
allow_failures:
- env: REDMINE_VERSION=master
branches:
... | 1 | 0.027778 | 1 | 0 |
71083a50a6cc900edb272dded2c3578ee5065d2d | index.js | index.js | require('./lib/metro-transit')
// Create the handler that responds to the Alexa Request.
exports.handler = function (event, context) {
// Create an instance of the MetroTransit skill.
var dcMetro = new MetroTransit();
dcMetro.execute(event, context);
};
| var MetroTransit = require('./lib/metro-transit');
// Create the handler that responds to the Alexa Request.
exports.handler = function (event, context) {
MetroTransit.execute(event, context);
};
| Update driver file for new module interfaces | Update driver file for new module interfaces
| JavaScript | mit | pmyers88/dc-metro-echo | javascript | ## Code Before:
require('./lib/metro-transit')
// Create the handler that responds to the Alexa Request.
exports.handler = function (event, context) {
// Create an instance of the MetroTransit skill.
var dcMetro = new MetroTransit();
dcMetro.execute(event, context);
};
## Instruction:
Update driver file f... | - require('./lib/metro-transit')
+ var MetroTransit = require('./lib/metro-transit');
? +++++++++++++++++++ +
// Create the handler that responds to the Alexa Request.
exports.handler = function (event, context) {
- // Create an instance of the MetroTransit skill.
- var dcMe... | 6 | 0.75 | 2 | 4 |
d92cdf7b055d8571e5417679f2b76acab9de0f0f | .travis.yml | .travis.yml | language: ruby
env:
- CODECLIMATE_REPO_TOKEN='2d89fff3a359f62355f9e07647fede441b37800782b861b48cbf798f5bcafca0' NACRE_USER_ID='test_user_id' NACRE_EMAIL='testuser@example.com' NACRE_PASSWORD='123456'
script:
- bundle exec rspec
rvm:
- 2.1.0
- jruby-19mode
branches:
except:
- /^experimental.*$/
notificatio... | language: ruby
env:
- CODECLIMATE_REPO_TOKEN='2d89fff3a359f62355f9e07647fede441b37800782b861b48cbf798f5bcafca0' NACRE_USER_ID='test_user_id' NACRE_EMAIL='testuser@example.com' NACRE_PASSWORD='123456'
script:
- bundle exec rspec
rvm:
- 2.1.0
branches:
except:
- /^experimental.*$/
notifications:
email:
... | Remove jruby support pending later investigation | Remove jruby support pending later investigation
Getting this error message. It appears to have something to do with DateTime or Date.
Nacre::Order.get should make a request to the correct endpoint
Failure/Error: resource = described_class.get(range)
NoMethodError:
undefined method `/' for "000":Stri... | YAML | mit | allolex/nacre | yaml | ## Code Before:
language: ruby
env:
- CODECLIMATE_REPO_TOKEN='2d89fff3a359f62355f9e07647fede441b37800782b861b48cbf798f5bcafca0' NACRE_USER_ID='test_user_id' NACRE_EMAIL='testuser@example.com' NACRE_PASSWORD='123456'
script:
- bundle exec rspec
rvm:
- 2.1.0
- jruby-19mode
branches:
except:
- /^experimental... | language: ruby
env:
- CODECLIMATE_REPO_TOKEN='2d89fff3a359f62355f9e07647fede441b37800782b861b48cbf798f5bcafca0' NACRE_USER_ID='test_user_id' NACRE_EMAIL='testuser@example.com' NACRE_PASSWORD='123456'
script:
- bundle exec rspec
rvm:
- 2.1.0
- - jruby-19mode
branches:
except:
- /^experi... | 1 | 0.071429 | 0 | 1 |
82aa4012be0ebe00e09f044339a2983b70f220e7 | lib/hyper_admin/resource_controller.rb | lib/hyper_admin/resource_controller.rb | module HyperAdmin
class ResourceController < ActionController::Base
before_action :set_resource_class
def index
@resources = resource_class.all
render 'admin/resources/index', layout: layout
end
def show
@resource = resource
render 'admin/resources/show', layout: layout
e... | module HyperAdmin
class ResourceController < ActionController::Base
before_action :set_resource_class
before_action :permit_params, only: [ :create, :update ]
def index
@resources = resource_class.all
render 'admin/resources/index', layout: layout
end
def show
@resource = resou... | Create resources when submitted through new view | Create resources when submitted through new view
| Ruby | mit | hyperoslo/hyper_admin,hyperoslo/hyper_admin,hyperoslo/hyper_admin | ruby | ## Code Before:
module HyperAdmin
class ResourceController < ActionController::Base
before_action :set_resource_class
def index
@resources = resource_class.all
render 'admin/resources/index', layout: layout
end
def show
@resource = resource
render 'admin/resources/show', layo... | module HyperAdmin
class ResourceController < ActionController::Base
before_action :set_resource_class
+ before_action :permit_params, only: [ :create, :update ]
def index
@resources = resource_class.all
render 'admin/resources/index', layout: layout
end
def show
... | 12 | 0.230769 | 12 | 0 |
7291e4a19dc2eff421d0d557b637df36a4b906c4 | rto/README.md | rto/README.md | | Name | Result (FreeBSD) |
|:-------------------------------------------------:|:------------------:|
[Retransmission Timeout](retransmission_timeout.pkt)| Failed
## Description
* After the receiver **SACK**s one out of five data segments, the sender should retransmit t... | | Name | Result (FreeBSD) |
|:-------------------------------------------------:|:------------------:|
[Retransmission Timeout](retransmission_timeout.pkt)| Failed
## Description
After the receiver **SACK**s one out of five data segments, the sender should retransmit the... | Add ToDo for retransmission timeout | Add ToDo for retransmission timeout
| Markdown | mit | shivrai/TCP-IP-Regression-TestSuite | markdown | ## Code Before:
| Name | Result (FreeBSD) |
|:-------------------------------------------------:|:------------------:|
[Retransmission Timeout](retransmission_timeout.pkt)| Failed
## Description
* After the receiver **SACK**s one out of five data segments, the sender sho... | | Name | Result (FreeBSD) |
|:-------------------------------------------------:|:------------------:|
[Retransmission Timeout](retransmission_timeout.pkt)| Failed
## Description
- * After the receiver **SACK**s one out of five data segments, the sender should ... | 12 | 1.2 | 11 | 1 |
dbd2ef4ad68ffb7ca973433905b4ca31264f6235 | spec/presenters/redetermination_presenter_spec.rb | spec/presenters/redetermination_presenter_spec.rb | require 'rails_helper'
describe RedeterminationPresenter do
let(:rd) { FactoryGirl.create :redetermination, fees: 1452.33, expenses: 2455.77 }
let(:presenter) { RedeterminationPresenter.new(rd, view) }
describe '#created_at' do
it 'should properly format the time' do
allow(rd).to... | require 'rails_helper'
describe RedeterminationPresenter do
let(:rd) { FactoryGirl.create :redetermination, fees: 1452.33, expenses: 2455.77 }
let(:presenter) { RedeterminationPresenter.new(rd, view) }
context 'currency fields' do
it 'should format currency amount' do
expect(pres... | Remove "created_at" spec because its no longer in the presenter nor is it actually used | Remove "created_at" spec because its no longer in the presenter nor is it actually used
| Ruby | mit | ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments | ruby | ## Code Before:
require 'rails_helper'
describe RedeterminationPresenter do
let(:rd) { FactoryGirl.create :redetermination, fees: 1452.33, expenses: 2455.77 }
let(:presenter) { RedeterminationPresenter.new(rd, view) }
describe '#created_at' do
it 'should properly format the time' do
... | require 'rails_helper'
describe RedeterminationPresenter do
-
+
let(:rd) { FactoryGirl.create :redetermination, fees: 1452.33, expenses: 2455.77 }
let(:presenter) { RedeterminationPresenter.new(rd, view) }
- describe '#created_at' do
- it 'should properly format the time' ... | 11 | 0.407407 | 2 | 9 |
3ba1ffb9e5b58b4b9697dfeaa3729b31d79d46a4 | plugins/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/Repos.kt | plugins/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/Repos.kt | package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
it.includeGroup("com.so... | package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
it.excludeGroup("Kotlin... | Remove includeGroup since now it is in separated packages com.soywiz.korlibs.* | Remove includeGroup since now it is in separated packages com.soywiz.korlibs.*
| Kotlin | apache-2.0 | soywiz/korge,soywiz/korge,soywiz/korge | kotlin | ## Code Before:
package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
it.incl... | package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
-... | 1 | 0.027027 | 0 | 1 |
181c09c6b5288ccc88052cd382c2870be014c41e | README.md | README.md | pmap-tools
==========
Tools manipulating process virtual memory mapping.
Guiroux Hugo (gx.hugo@gmail.com / http://hugoguiroux.blogspot.fr/)
## pmap_parser:
Retrieve the virtual memory mapping given a pid and output in CSV
format. Platform specific (only Linux for now, using `pmap`).
Format: `from_addr,to_addr,righ... | pmap-tools
==========
Tools manipulating process virtual memory mapping.
Guiroux Hugo (gx.hugo+githubpmap@gmail.com / http://hugoguiroux.blogspot.fr/)
## pmap_parser:
Retrieve the virtual memory mapping given a pid and output in CSV
format. Platform specific (only Linux for now, using `pmap`).
Format: `from_addr,t... | Change email address to detect source of spam leak. | Change email address to detect source of spam leak. | Markdown | mit | HugoGuiroux/pmap-tools,GHugo/pmap-tools | markdown | ## Code Before:
pmap-tools
==========
Tools manipulating process virtual memory mapping.
Guiroux Hugo (gx.hugo@gmail.com / http://hugoguiroux.blogspot.fr/)
## pmap_parser:
Retrieve the virtual memory mapping given a pid and output in CSV
format. Platform specific (only Linux for now, using `pmap`).
Format: `from_a... | pmap-tools
==========
Tools manipulating process virtual memory mapping.
- Guiroux Hugo (gx.hugo@gmail.com / http://hugoguiroux.blogspot.fr/)
+ Guiroux Hugo (gx.hugo+githubpmap@gmail.com / http://hugoguiroux.blogspot.fr/)
? +++++++++++
## pmap_parser:
Retrieve the virtual mem... | 2 | 0.057143 | 1 | 1 |
13b7a18a86f4210952d403ee633e9b1206a04721 | spec/models/project_spec.rb | spec/models/project_spec.rb | require 'rails_helper'
describe Project do
describe "next" do
before do
@first = create(:project)
@second = create(:project)
@third = create(:project)
end
it "returns the next project (sorted by id)" do
expect(@first.next).to eq(@second)
expect(@second.next).to eq(@third... | require 'rails_helper'
describe Project do
describe "next" do
before do
@first = create(:project)
@second = create(:project)
@third = create(:project)
end
it "returns the next project (sorted by id)" do
expect(@first.next).to eq(@second)
expect(@second.next).to eq(@third... | Add test for active? method of project model | Add test for active? method of project model
| Ruby | mit | hennevogel/hackweek,SUSE/hackweek,kirushik/hackweek,srinidhibs/hackweek,kirushik/hackweek,hennevogel/hackweek,srinidhibs/hackweek,SUSE/hackweek,srinidhibs/hackweek,hennevogel/hackweek,SUSE/hackweek,kirushik/hackweek,kirushik/hackweek,srinidhibs/hackweek | ruby | ## Code Before:
require 'rails_helper'
describe Project do
describe "next" do
before do
@first = create(:project)
@second = create(:project)
@third = create(:project)
end
it "returns the next project (sorted by id)" do
expect(@first.next).to eq(@second)
expect(@second.ne... | require 'rails_helper'
describe Project do
describe "next" do
before do
@first = create(:project)
@second = create(:project)
@third = create(:project)
end
it "returns the next project (sorted by id)" do
expect(@first.next).to eq(@second)
expec... | 15 | 0.3125 | 15 | 0 |
6174cab2b47ea1ed44628f3ed356ca0f9ca623e8 | features/step_definitions/authentication_steps.rb | features/step_definitions/authentication_steps.rb | Given /^I am registered$/ do
@registered_user = Factory(:user, :email => "john@doe.com")
end
| Given /^I am registered$/ do
@registered_user = Factory(:user, :email => "john@doe.com")
end
Given /^I am admin$/ do
@registered_user.make_admin
end
Given /^I am logged in as admin$/ do
steps %Q{
Given I am registered
And I am admin
And I am on the homepage
When I follow "Sign in"
And I fill... | Add 'I am admin' & 'I am logged in as admin' steps. | Add 'I am admin' & 'I am logged in as admin' steps.
| Ruby | mit | renderedtext/base-app,andjosh/invoiceapp,tycoool/QADemo,codeclimate-test/base-app,renderedtext/base-app,sammarcus/base-app,mfolsom/therafinder,tycoool/QADemo,codeclimate-test/base-app,andjosh/invoiceapp,sammarcus/base-app,geremih/recollab,codeclimate-test/base-app,sammarcus/base-app,geremih/recollab,mfolsom/therafinder | ruby | ## Code Before:
Given /^I am registered$/ do
@registered_user = Factory(:user, :email => "john@doe.com")
end
## Instruction:
Add 'I am admin' & 'I am logged in as admin' steps.
## Code After:
Given /^I am registered$/ do
@registered_user = Factory(:user, :email => "john@doe.com")
end
Given /^I am admin$/ do
@r... | Given /^I am registered$/ do
@registered_user = Factory(:user, :email => "john@doe.com")
end
+
+ Given /^I am admin$/ do
+ @registered_user.make_admin
+ end
+
+ Given /^I am logged in as admin$/ do
+ steps %Q{
+ Given I am registered
+ And I am admin
+ And I am on the homepage
+ When I fol... | 16 | 5.333333 | 16 | 0 |
9e1481c50220276cad316a1d573239f196b68340 | custom/plugins/alert/alert.plugin.zsh | custom/plugins/alert/alert.plugin.zsh | function alert {
if (( $? == 0 )) then
say -v trinoids 'successfully done'
else
say -v bad 'failed'
fi
}
| function alert {
if (( $? == 0 )) then
say -v Karen 'successfully done'
else
say -v Fred 'failed'
fi
}
| Change voices used for alert | Change voices used for alert
The old voices are not supported in Sierra anymore.
| Shell | mit | sidonath/oh-my-zsh,sidonath/oh-my-zsh | shell | ## Code Before:
function alert {
if (( $? == 0 )) then
say -v trinoids 'successfully done'
else
say -v bad 'failed'
fi
}
## Instruction:
Change voices used for alert
The old voices are not supported in Sierra anymore.
## Code After:
function alert {
if (( $? == 0 )) then
say -v Karen 'successfully done'
e... | function alert {
if (( $? == 0 )) then
- say -v trinoids 'successfully done'
? ^ ^ ----
+ say -v Karen 'successfully done'
? ^^ ^
else
- say -v bad 'failed'
? ^^
+ say -v Fred 'failed'
? ^^^
fi
} | 4 | 0.571429 | 2 | 2 |
4a04fdc57f5aded2722af9ee1d0993e3bd05fbc0 | app/views/admin/expectations/index.html.erb | app/views/admin/expectations/index.html.erb | <div>
<h2>Existing Expectations</h2>
<ul>
<% @expectations.each do |expectation| %>
<li><%= expectation.text %></li>
<% end %>
</ul>
<h2>Add Expectation</h2>
<%= semantic_form_for([:admin, @expectation]) do |f| %>
<%= f.inputs do %>
<%= f.input :text %>
<%= f.input :css_class, :la... | <div>
<h2>Existing Expectations</h2>
<ul>
<% @expectations.each do |expectation| %>
<li><%= expectation.text %></li>
<% end %>
</ul>
<h2>Add Expectation</h2>
<%= semantic_form_for([:admin, @expectation]) do |f| %>
<%= f.inputs do %>
<%= f.input :text %>
<%= f.input :css_class, :la... | Remove stray logging statements from expectations JS | Remove stray logging statements from expectations JS
| HTML+ERB | mit | telekomatrix/publisher,theodi/publisher,leftees/publisher,telekomatrix/publisher,alphagov/publisher,theodi/publisher,theodi/publisher,alphagov/publisher,telekomatrix/publisher,leftees/publisher,telekomatrix/publisher,leftees/publisher,theodi/publisher,alphagov/publisher,leftees/publisher | html+erb | ## Code Before:
<div>
<h2>Existing Expectations</h2>
<ul>
<% @expectations.each do |expectation| %>
<li><%= expectation.text %></li>
<% end %>
</ul>
<h2>Add Expectation</h2>
<%= semantic_form_for([:admin, @expectation]) do |f| %>
<%= f.inputs do %>
<%= f.input :text %>
<%= f.input... | <div>
<h2>Existing Expectations</h2>
<ul>
<% @expectations.each do |expectation| %>
<li><%= expectation.text %></li>
<% end %>
</ul>
<h2>Add Expectation</h2>
<%= semantic_form_for([:admin, @expectation]) do |f| %>
<%= f.inputs do %>
<%= f.input :text %>
<... | 2 | 0.0625 | 0 | 2 |
d0fbd28a7230f6500a19f5cf6216f18eef07d1d9 | src/scenarios/base.h | src/scenarios/base.h |
namespace scenarios {
class base : public boost::noncopyable {
public:
virtual ~base() {};
virtual agents apply(const agents& source) const = 0;
};
template<typename DERIVED>
class scenario : public base {
public:
scenario(const boost::property_tree::ptree& config);
virtual ~scenario() override;
protect... |
namespace scenarios {
class base : public boost::noncopyable {
public:
base(const boost::property_tree::ptree& config) {}
virtual ~base() {};
virtual agents apply(const agents& source) const = 0;
};
template<typename DERIVED, typename BASE = base>
class scenario : public BASE {
public:
scenario(const boos... | Allow scenarios inheritance for scenarios::scenario template | Allow scenarios inheritance for scenarios::scenario template
| C | mit | martin-pr/group_motion_editing,martin-pr/group_motion_editing | c | ## Code Before:
namespace scenarios {
class base : public boost::noncopyable {
public:
virtual ~base() {};
virtual agents apply(const agents& source) const = 0;
};
template<typename DERIVED>
class scenario : public base {
public:
scenario(const boost::property_tree::ptree& config);
virtual ~scenario() ove... |
namespace scenarios {
class base : public boost::noncopyable {
public:
+ base(const boost::property_tree::ptree& config) {}
virtual ~base() {};
virtual agents apply(const agents& source) const = 0;
};
- template<typename DERIVED>
+ template<typename DERIVED, typename BASE = base>
- class ... | 17 | 0.459459 | 9 | 8 |
4649cdc3aae91b7d59f685208aff102180f408b3 | README.md | README.md |
[](https://travis-ci.org/mquander/janus-plugin-rs)
Library for creating Rust plugins to [Janus](https://janus.conf.meetecho.com/). Still highly unstable, so not published.
``` toml
[dependencies]
janus-plugin = { git = "https://github.c... |
[](https://travis-ci.org/mquander/janus-plugin-rs)
Library for creating Rust plugins to [Janus](https://janus.conf.meetecho.com/). Still highly unstable, so not published.
``` toml
[dependencies]
janus-plugin = { git = "https://github.c... | Adjust build/test instructions for full workspace | Adjust build/test instructions for full workspace
| Markdown | mpl-2.0 | mquander/janus-plugin-rs | markdown | ## Code Before:
[](https://travis-ci.org/mquander/janus-plugin-rs)
Library for creating Rust plugins to [Janus](https://janus.conf.meetecho.com/). Still highly unstable, so not published.
``` toml
[dependencies]
janus-plugin = { git = "... |
[](https://travis-ci.org/mquander/janus-plugin-rs)
Library for creating Rust plugins to [Janus](https://janus.conf.meetecho.com/). Still highly unstable, so not published.
``` toml
[dependencies]
janus-plugin = { git = "... | 4 | 0.173913 | 2 | 2 |
3b7b15db24ac738c143e3d2d38c740500ac73fd0 | jinja2_time/jinja2_time.py | jinja2_time/jinja2_time.py |
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
date_fo... |
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
datetim... | Change environment attribute name to datetime_format | Change environment attribute name to datetime_format
| Python | mit | hackebrot/jinja2-time | python | ## Code Before:
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
... |
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environme... | 8 | 0.228571 | 4 | 4 |
b59aeae915ec762c8a3684ff3c444ab11dbc0307 | README.md | README.md | wineds-converter
================
A script to convert WinEDS output into a simpler format
| WinEDS Converter
================
This repository contains a script to convert WinEDS 4.0 output into a
simpler format. WinEDS is an election management system owned by
[Dominion Voting Systems][dominion].
WinEDS Reporting Tool
---------------------
This section contains a description of the output format of a TXT... | Add Reporting Tool output description. | Add Reporting Tool output description.
| Markdown | bsd-3-clause | cjerdonek/wineds-converter | markdown | ## Code Before:
wineds-converter
================
A script to convert WinEDS output into a simpler format
## Instruction:
Add Reporting Tool output description.
## Code After:
WinEDS Converter
================
This repository contains a script to convert WinEDS 4.0 output into a
simpler format. WinEDS is an electi... | - wineds-converter
+ WinEDS Converter
================
- A script to convert WinEDS output into a simpler format
+ This repository contains a script to convert WinEDS 4.0 output into a
+ simpler format. WinEDS is an election management system owned by
+ [Dominion Voting Systems][dominion].
+
+
+ WinEDS Reportin... | 32 | 8 | 30 | 2 |
c839c25b92fb8ce4f142b3f35c836ee6e3231281 | package.json | package.json | {
"name": "el-stacko",
"description": "A combo of web libraries for building a thing.",
"repository": {
"type": "git",
"url": "https://github.com/fzzzy/el-stacko.git"
},
"dependencies": {
"babel": "5.1.5",
"node-sass": "3.0.0-alpha.0",
"react": "0.13.1",
"react-router": "0.13.2",
"... | {
"name": "el-stacko",
"description": "A combo of web libraries for building a thing.",
"repository": {
"type": "git",
"url": "https://github.com/fzzzy/el-stacko.git"
},
"dependencies": {
"babel": "5.1.5",
"browserify": "9.0.8",
"cookies": "^0.5.0",
"git-rev": "0.2.1",
"gulp": "3.8... | Add cookies and keygrip to dependencies (and then dependencies got sorted by npm) | Add cookies and keygrip to dependencies (and then dependencies got sorted by npm)
| JSON | mpl-2.0 | mozilla-services/screenshots,fzzzy/pageshot,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/screenshots,mozilla-services/screenshots,mozilla-services/pageshot,fzzzy/pageshot,fzzzy/pageshot,mozilla-services/pageshot,fzzzy/pageshot,mozilla-services/pageshot | json | ## Code Before:
{
"name": "el-stacko",
"description": "A combo of web libraries for building a thing.",
"repository": {
"type": "git",
"url": "https://github.com/fzzzy/el-stacko.git"
},
"dependencies": {
"babel": "5.1.5",
"node-sass": "3.0.0-alpha.0",
"react": "0.13.1",
"react-router":... | {
"name": "el-stacko",
"description": "A combo of web libraries for building a thing.",
"repository": {
"type": "git",
"url": "https://github.com/fzzzy/el-stacko.git"
},
"dependencies": {
"babel": "5.1.5",
+ "browserify": "9.0.8",
+ "cookies": "^0.5.0",
+ "git-rev": "... | 34 | 1.133333 | 18 | 16 |
29ab94dd6a3ef2a442013c281701cddf871e29ac | src/content.js | src/content.js | var code = null;
if (/([^\/].)?oglobo\.globo\.com/.test(document.location.host))
code = 'paywallAtivo = false;';
else if (/www\.economist\.com/.test(document.location.host))
code = 'document.cookie = "ec_limit=allow";';
else if (/foreignpolicy\.com/.test(document.location.host)) {
code = 'window.FPMarketi... | var code = null;
if (/([^\/].)?oglobo\.globo\.com/.test(document.location.host))
code = 'paywallAtivo = false;';
else if (/www\.economist\.com/.test(document.location.host))
code = 'document.cookie = "ec_limit=allow";';
else if (/foreignpolicy\.com/.test(document.location.host)) {
code = 'window.FPMarketi... | Remove debug log devido à reclamação da Mozilla | Remove debug log devido à reclamação da Mozilla
| JavaScript | mit | rodorgas/burlesco,rodorgas/burlesco,Burlesco/chromium,rodorgas/burlesco,rodorgas/burlesco,Burlesco/chromium | javascript | ## Code Before:
var code = null;
if (/([^\/].)?oglobo\.globo\.com/.test(document.location.host))
code = 'paywallAtivo = false;';
else if (/www\.economist\.com/.test(document.location.host))
code = 'document.cookie = "ec_limit=allow";';
else if (/foreignpolicy\.com/.test(document.location.host)) {
code = '... | var code = null;
if (/([^\/].)?oglobo\.globo\.com/.test(document.location.host))
code = 'paywallAtivo = false;';
else if (/www\.economist\.com/.test(document.location.host))
code = 'document.cookie = "ec_limit=allow";';
else if (/foreignpolicy\.com/.test(document.location.host)) {
code =... | 1 | 0.05 | 0 | 1 |
db2013aef1825da4a3520cdb7a8d0195222c44fd | .travis.yml | .travis.yml | branches:
only:
- master
language: python
python:
- "2.7"
- "3.4"
- "pypy"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libudev-dev
install:
- pip install .
- pip install -r requirements.txt
script: py.test --junitxml=tests.xml --enable-privileged -rfEsxX -v
| branches:
only:
- master
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libudev-dev
install:
- pip install .
- pip install -r requirements.txt
script: py.test --junitxml=tests.xml --enable-privileged -rfEsxX -... | Add Python 3.5, 3.6 to Travis CI | Add Python 3.5, 3.6 to Travis CI
Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>
| YAML | lgpl-2.1 | pyudev/pyudev | yaml | ## Code Before:
branches:
only:
- master
language: python
python:
- "2.7"
- "3.4"
- "pypy"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libudev-dev
install:
- pip install .
- pip install -r requirements.txt
script: py.test --junitxml=tests.xml --enable-privileged -rfEsxX -v
#... | branches:
only:
- master
language: python
python:
- "2.7"
- "3.4"
+ - "3.5"
+ - "3.6"
- "pypy"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libudev-dev
install:
- pip install .
- pip install -r requirements.txt
script: py.test --junitxml=tests... | 2 | 0.133333 | 2 | 0 |
1b5eacfed2b6d467349ab490373529f780c48416 | python/requirements.txt | python/requirements.txt | cryptography >= 2.5
#
###### Requirements for testing and CI ######
yapf
pylint
hypothesis
| cryptography >= 2.5
hypothesis # tests
| Remove dependencies already present in the CI environment. | Remove dependencies already present in the CI environment.
| Text | apache-2.0 | google/glome,google/glome,google/glome,google/glome,google/glome | text | ## Code Before:
cryptography >= 2.5
#
###### Requirements for testing and CI ######
yapf
pylint
hypothesis
## Instruction:
Remove dependencies already present in the CI environment.
## Code After:
cryptography >= 2.5
hypothesis # tests
| cryptography >= 2.5
+ hypothesis # tests
- #
- ###### Requirements for testing and CI ######
- yapf
- pylint
- hypothesis | 6 | 1 | 1 | 5 |
c782af029d1322f78244ea8d55f15653ad88c677 | test/uart_test.exs | test/uart_test.exs | defmodule UARTTest do
use ExUnit.Case
alias Nerves.UART
# Define the following environment variables for your environment:
#
# NERVES_UART_PORT1 - e.g., COM1 or ttyS0
# NERVES_UART_PORT2
#
# The unit tests expect those ports to exist, be different ports,
# and be connected to each other through a... | defmodule UARTTest do
use ExUnit.Case
alias Nerves.UART
# Define the following environment variables for your environment:
#
# NERVES_UART_PORT1 - e.g., COM1 or ttyS0
# NERVES_UART_PORT2
#
# The unit tests expect those ports to exist, be different ports,
# and be connected to each other through a... | Improve help message when env not set for tests | Improve help message when env not set for tests
| Elixir | apache-2.0 | nerves-project/nerves_uart | elixir | ## Code Before:
defmodule UARTTest do
use ExUnit.Case
alias Nerves.UART
# Define the following environment variables for your environment:
#
# NERVES_UART_PORT1 - e.g., COM1 or ttyS0
# NERVES_UART_PORT2
#
# The unit tests expect those ports to exist, be different ports,
# and be connected to each... | defmodule UARTTest do
use ExUnit.Case
alias Nerves.UART
# Define the following environment variables for your environment:
#
# NERVES_UART_PORT1 - e.g., COM1 or ttyS0
# NERVES_UART_PORT2
#
# The unit tests expect those ports to exist, be different ports,
# and be connected t... | 15 | 0.405405 | 12 | 3 |
476c97edf8489be59d5e96ce36aa9214ae4ca00c | run_tracker.py | run_tracker.py | import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config = json.load(json... | import sys, json
from cloudtracker.main import main
from cloudtracker.load_config import config
from cloudtracker.load_config import c
def run_tracker():
print( " Running the cloud-tracking algorithm... " )
# Print out model parameters from config.json
print( " \n Model parameters: " )
print( " ... | Read model parameters and output at the beginning | Read model parameters and output at the beginning
| Python | bsd-2-clause | lorenghoh/loh_tracker | python | ## Code Before:
import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config ... | import sys, json
- from cloudtracker import main as tracker_main
+ from cloudtracker.main import main
+ from cloudtracker.load_config import config
+ from cloudtracker.load_config import c
- def run_tracker(input):
? -----
+ def run_tracker():
print( " Running the cloud-tracking algo... | 24 | 1 | 11 | 13 |
8b969376ae57ced4567e829322c94c8b56cd7782 | openstack/neutron/templates/etc/_asr1k-global.ini.tpl | openstack/neutron/templates/etc/_asr1k-global.ini.tpl | [asr1k]
ignore_invalid_az_hint_for_router = {{ default ".Values.asr.ignore_invalid_az_hint_for_router" "False"}}
[asr1k-address-scopes]
{{ $cloud_asn := required "A valid .Values.global_cloud_asn entry required!" .Values.global_cloud_asn }}
{{- range $i, $address_scope := concat .Values.global_address_scopes .Values.l... | [asr1k]
ignore_invalid_az_hint_for_router = {{ default "False" .Values.asr.ignore_invalid_az_hint_for_router}}
[asr1k-address-scopes]
{{ $cloud_asn := required "A valid .Values.global_cloud_asn entry required!" .Values.global_cloud_asn }}
{{- range $i, $address_scope := concat .Values.global_address_scopes .Values.loc... | Correct order of `default` call. | Correct order of `default` call.
This will fix mistakenly not ignoring the az-hint
| Smarty | apache-2.0 | sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts | smarty | ## Code Before:
[asr1k]
ignore_invalid_az_hint_for_router = {{ default ".Values.asr.ignore_invalid_az_hint_for_router" "False"}}
[asr1k-address-scopes]
{{ $cloud_asn := required "A valid .Values.global_cloud_asn entry required!" .Values.global_cloud_asn }}
{{- range $i, $address_scope := concat .Values.global_address_... | [asr1k]
- ignore_invalid_az_hint_for_router = {{ default ".Values.asr.ignore_invalid_az_hint_for_router" "False"}}
? ---------
+ ignore_invalid_az_hint_for_router = {{ default "False" .Values.asr.ignore_invalid_az_hint_for_r... | 2 | 0.25 | 1 | 1 |
a14038d8967578af2c85212f1395ecbaad84efd6 | src/javascript/app_2/App/Middlewares/is_client_allowed_to_visit.js | src/javascript/app_2/App/Middlewares/is_client_allowed_to_visit.js | import Client from '_common/base/client_base';
export const isClientAllowedToVisit = () => !Client.isLoggedIn() || Client.get('is_virtual') ||
/^CR/.test(Client.get('loginid'));
| import Client from '_common/base/client_base';
export const isClientAllowedToVisit = () => !Client.isLoggedIn() || Client.get('is_virtual') ||
Client.get('landing_company_shortcode') === 'costarica';
| Use shortcode instead of loginid | Use shortcode instead of loginid
| JavaScript | apache-2.0 | 4p00rv/binary-static,kellybinary/binary-static,ashkanx/binary-static,ashkanx/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,4p00rv/binary-static,4p00rv/binary-static,binary-static-deployed/binary-static,binary-com/binary-static,binary-static-deployed/binary-static,ashkanx/binary-static,bina... | javascript | ## Code Before:
import Client from '_common/base/client_base';
export const isClientAllowedToVisit = () => !Client.isLoggedIn() || Client.get('is_virtual') ||
/^CR/.test(Client.get('loginid'));
## Instruction:
Use shortcode instead of loginid
## Code After:
import Client from '_common/base/client_base';
export ... | import Client from '_common/base/client_base';
export const isClientAllowedToVisit = () => !Client.isLoggedIn() || Client.get('is_virtual') ||
- /^CR/.test(Client.get('loginid'));
+ Client.get('landing_company_shortcode') === 'costarica'; | 2 | 0.5 | 1 | 1 |
435a928a0d612be69ebc1e3a6776dfc178c82927 | Setup/InstallData.php | Setup/InstallData.php | <?php
namespace Botamp\Botamp\Setup;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
class InstallData implements InstallDataInterface
{
... | <?php
namespace Botamp\Botamp\Setup;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
class InstallData implements InstallDataInterface {
... | Improve adding ‘botamp_entity_id’ attribute script | Improve adding ‘botamp_entity_id’ attribute script
| PHP | mit | botamp/botamp-magento,botamp/botamp-magento,botamp/botamp-magento,botamp/botamp-magento | php | ## Code Before:
<?php
namespace Botamp\Botamp\Setup;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
class InstallData implements InstallD... | <?php
namespace Botamp\Botamp\Setup;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\InstallDataInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
- class InstallData implements In... | 48 | 0.979592 | 23 | 25 |
fe6247d1ade209f1ebb6ba537652569810c4d77a | lib/adapter.js | lib/adapter.js | /**
* Request adapter.
*
* @package cork
* @author Andrew Sliwinski <andrew@diy.org>
*/
/**
* Dependencies
*/
var _ = require('lodash'),
async = require('async'),
request = require('request');
/**
* Executes a task from the adapter queue.
*
* @param {Object} Task
*
* @return {Object}
*/
v... | /**
* Request adapter.
*
* @package cork
* @author Andrew Sliwinski <andrew@diy.org>
*/
/**
* Dependencies
*/
var _ = require('lodash'),
async = require('async'),
request = require('request');
/**
* Executes a task from the adapter queue.
*
* @param {Object} Task
*
* @return {Object}
*/
v... | Remove queue object from the task | Remove queue object from the task | JavaScript | mit | thisandagain/cork | javascript | ## Code Before:
/**
* Request adapter.
*
* @package cork
* @author Andrew Sliwinski <andrew@diy.org>
*/
/**
* Dependencies
*/
var _ = require('lodash'),
async = require('async'),
request = require('request');
/**
* Executes a task from the adapter queue.
*
* @param {Object} Task
*
* @retur... | /**
* Request adapter.
*
* @package cork
* @author Andrew Sliwinski <andrew@diy.org>
*/
/**
* Dependencies
*/
var _ = require('lodash'),
async = require('async'),
request = require('request');
/**
* Executes a task from the adapter queue.
*
* @param {Objec... | 3 | 0.047619 | 2 | 1 |
7b495c6199e4c228a607181b02f98174dc979367 | Draw/Source/DrawController.swift | Draw/Source/DrawController.swift | //
// DrawController.swift
// Draw
//
// Created by Julian Grosshauser on 18/01/16.
// Copyright © 2016 Julian Grosshauser. All rights reserved.
//
import UIKit
class DrawController: UIViewController {
//MARK: Properties
private var previousTouchLocation: CGPoint?
//MARK: UIViewController
over... | //
// DrawController.swift
// Draw
//
// Created by Julian Grosshauser on 18/01/16.
// Copyright © 2016 Julian Grosshauser. All rights reserved.
//
import UIKit
class DrawController: UIViewController {
//MARK: Properties
private var previousTouchLocation: CGPoint?
private let imageView = UIImageView... | Add fullscreen image view as subview | Add fullscreen image view as subview
| Swift | mit | juliangrosshauser/Draw | swift | ## Code Before:
//
// DrawController.swift
// Draw
//
// Created by Julian Grosshauser on 18/01/16.
// Copyright © 2016 Julian Grosshauser. All rights reserved.
//
import UIKit
class DrawController: UIViewController {
//MARK: Properties
private var previousTouchLocation: CGPoint?
//MARK: UIViewCont... | //
// DrawController.swift
// Draw
//
// Created by Julian Grosshauser on 18/01/16.
// Copyright © 2016 Julian Grosshauser. All rights reserved.
//
import UIKit
class DrawController: UIViewController {
//MARK: Properties
private var previousTouchLocation: CGPoint?
+ pri... | 7 | 0.318182 | 7 | 0 |
482c48d850831e24422f8e6b038f57bc2506ffeb | app/assets/stylesheets/forest/partials/_blocks.scss | app/assets/stylesheets/forest/partials/_blocks.scss | // Blocks
.block_slots {
overflow: auto;
}
.block-kind__select2-response__icon {
line-height: 1.4;
vertical-align: top;
}
.nested-fields,
[data-collapse-parent] {
&.collapsed {
.panel-body {
display: none;
}
}
}
.nested-fields {
margin-bottom: map-get($spacers, 3);
}
.block-slot-field-tem... | // Blocks
.block_slots {
overflow: auto;
}
.block-kind__select2-response__icon {
line-height: 1.4;
vertical-align: top;
.select2-results__option--highlighted & {
filter: invert(1);
}
}
.nested-fields,
[data-collapse-parent] {
&.collapsed {
.panel-body {
display: none;
}
}
}
.nested-... | Make bootstrap block icon white when hovering over select2 | Make bootstrap block icon white when hovering over select2
| SCSS | mit | dylanfisher/forest,dylanfisher/forest,dylanfisher/forest | scss | ## Code Before:
// Blocks
.block_slots {
overflow: auto;
}
.block-kind__select2-response__icon {
line-height: 1.4;
vertical-align: top;
}
.nested-fields,
[data-collapse-parent] {
&.collapsed {
.panel-body {
display: none;
}
}
}
.nested-fields {
margin-bottom: map-get($spacers, 3);
}
.bloc... | // Blocks
.block_slots {
overflow: auto;
}
.block-kind__select2-response__icon {
line-height: 1.4;
vertical-align: top;
+
+ .select2-results__option--highlighted & {
+ filter: invert(1);
+ }
}
.nested-fields,
[data-collapse-parent] {
&.collapsed {
.panel-body {
... | 4 | 0.125 | 4 | 0 |
f9388e7cb9e5f881e6971d68beb865c5b02f7283 | README.md | README.md | 
### Get Caption
- **[Download the latest release](http://getcaption.co/)** (macOS only) 
- [Getcaption.co](https://getcaption.co/)
### Contribute
1. [Fork](https://help.github.co... | 
### Get Caption
- **[Download the latest release](http://getcaption.co/)** (macOS only) [](https://github.com/gielcobben/Caption)
- [Getcaption.co](https://getcaption.co/)
### Contri... | Add download count to readme | Add download count to readme
| Markdown | mit | gielcobben/Caption | markdown | ## Code Before:

### Get Caption
- **[Download the latest release](http://getcaption.co/)** (macOS only) 
- [Getcaption.co](https://getcaption.co/)
### Contribute
1. [Fork](https:... | 
### Get Caption
- - **[Download the latest release](http://getcaption.co/)** (macOS only) 
? ^^^^ ... | 2 | 0.064516 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.