commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
e40a8ce30f574a8e2745fdf2c1a74e4f1c00bc0d | cached_counts/tests.py | cached_counts/tests.py | import unittest
from django.test import TestCase
from candidates.tests.test_create_person import mock_create_person
from .models import CachedCount
class CachedCountTechCase(TestCase):
def setUp(self):
initial_counts = (
{
'count_type': 'constituency',
'name':... | import unittest
from django.test import TestCase
from candidates.tests.test_create_person import mock_create_person
from .models import CachedCount
def create_initial_counts(extra=()):
initial_counts = (
{
'count_type': 'constituency',
'name': 'Dulwich and West Norwood',
... | Create initial counts outside the test class | Create initial counts outside the test class
| Python | agpl-3.0 | mysociety/yournextmp-popit,DemocracyClub/yournextrepresentative,openstate/yournextrepresentative,openstate/yournextrepresentative,YoQuieroSaber/yournextrepresentative,neavouli/yournextrepresentative,DemocracyClub/yournextrepresentative,openstate/yournextrepresentative,mysociety/yournextmp-popit,neavouli/yournextreprese... | python | ## Code Before:
import unittest
from django.test import TestCase
from candidates.tests.test_create_person import mock_create_person
from .models import CachedCount
class CachedCountTechCase(TestCase):
def setUp(self):
initial_counts = (
{
'count_type': 'constituency',
... |
f5c787664a1125e8d91a7245d81e252a7c7b6c1c | README.md | README.md | A simple project to grab images from google images search
## What does it do?
Get images from _google images search_.
## Why?
To use context related images during development.
## Some similar services
* [Lorem Pixel](http://lorempixel.com/)
* [Place Hold It](http://placehold.it/)
* [Place Hold](http://placehold.jp/e... | A simple project to grab images from google images search
## What does it do?
Get images from _google images search_.
## Why?
To use context related images.
## How to use?
### Implement a PageFetcher
This page fetcher is a simple interface to **fetch pages**.
The idea is to not embed this lib a HTTP client, so you... | Update readme to provide usefull information | Update readme to provide usefull information
| Markdown | mit | brunodles/googleimagesapi,brunodles/googleimagesapi | markdown | ## Code Before:
A simple project to grab images from google images search
## What does it do?
Get images from _google images search_.
## Why?
To use context related images during development.
## Some similar services
* [Lorem Pixel](http://lorempixel.com/)
* [Place Hold It](http://placehold.it/)
* [Place Hold](http:... |
a67ccbd9031dde4168428521b1cdaa752300739a | app/models/EloquentBuilder.php | app/models/EloquentBuilder.php | <?php
class EloquentBuilder extends \Illuminate\Database\Eloquent\Builder
{
/**
* Eager load pivot relations.
*
* @param array $models
* @return void
*/
protected function loadPivotRelations($models)
{
$query = head($models)->pivot->newQuery()->with('unit');
$pivot... | <?php
class EloquentBuilder extends \Illuminate\Database\Eloquent\Builder
{
/**
* Eager load pivot relations.
*
* @param array $models
* @return void
*/
protected function loadPivotRelations($models)
{
$query = head($models)->pivot->newQuery()->with('unit');
$pivot... | Fix condition, make sure not to include non-pivot relations | Fix condition, make sure not to include non-pivot relations
| PHP | mit | ajcastro/iprocure,ajcastro/iprocure | php | ## Code Before:
<?php
class EloquentBuilder extends \Illuminate\Database\Eloquent\Builder
{
/**
* Eager load pivot relations.
*
* @param array $models
* @return void
*/
protected function loadPivotRelations($models)
{
$query = head($models)->pivot->newQuery()->with('unit')... |
2f42b4af34396bef942330a0ca7545e1c30627c1 | src/Repositories/RepositoryFactory.php | src/Repositories/RepositoryFactory.php | <?php
namespace GearHub\LaravelEnhancementSuite\Repositories;
use GearHub\LaravelEnhancementSuite\Contracts\Repositories\RepositoryFactory as RepositoryFactoryContract;
class RepositoryFactory implements RepositoryFactoryContract
{
/**
* Mapping keys to repositories. Takes precidence over the dynamic resolu... | <?php
namespace GearHub\LaravelEnhancementSuite\Repositories;
use GearHub\LaravelEnhancementSuite\Contracts\Repositories\RepositoryFactory as RepositoryFactoryContract;
class RepositoryFactory implements RepositoryFactoryContract
{
/**
* Mapping keys to repositories. Takes precidence over the dynamic resolu... | Call to config helper function instead of an instance of the container | Call to config helper function instead of an instance of the container
| PHP | mit | gearhub/laravel-enhancement-suite | php | ## Code Before:
<?php
namespace GearHub\LaravelEnhancementSuite\Repositories;
use GearHub\LaravelEnhancementSuite\Contracts\Repositories\RepositoryFactory as RepositoryFactoryContract;
class RepositoryFactory implements RepositoryFactoryContract
{
/**
* Mapping keys to repositories. Takes precidence over th... |
6fac11d21b32e259a29768d5849f9b6ff6ef77f1 | go/base/static/js/src/components/views.js | go/base/static/js/src/components/views.js | // go.components.views
// ===================
// Generic, re-usable views for Go
(function(exports) {
var utils = go.utils,
functor = utils.functor;
// View for a label which can be attached to an element.
//
// Options:
// - text: A string or a function returning a string containing the text to
/... | // go.components.views
// ===================
// Generic, re-usable views for Go
(function(exports) {
var utils = go.utils,
functor = utils.functor;
// View for a label which can be attached to an element.
//
// Options:
// - text: A string or a function returning a string containing the text to
/... | Fix bad comments for LabelView | Fix bad comments for LabelView
| JavaScript | bsd-3-clause | praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go | javascript | ## Code Before:
// go.components.views
// ===================
// Generic, re-usable views for Go
(function(exports) {
var utils = go.utils,
functor = utils.functor;
// View for a label which can be attached to an element.
//
// Options:
// - text: A string or a function returning a string containing... |
7cf57b99d2e4244729d128381b4b277c1ded6af4 | scriptstarupdate.sh | scriptstarupdate.sh | set -e
SCRIPTSDIRREL=$(dirname $0)
cd $SCRIPTSDIRREL
if [ -e .git ]
then
echo "This scripts directory was checked out from Git so I won't update it."
echo "If you want it updated from a tarball anyway, please delete .git first."
exit 1
fi
wget http://github.com/mikemcquaid/Scripts/tarball/master -O scripts.tar.gz
... | set -e
SCRIPTSDIRREL=$(dirname $0)
cd $SCRIPTSDIRREL
if [ -e .git ]
then
echo "This scripts directory was checked out from Git so I won't update it."
echo "If you want it updated from a tarball anyway, please delete .git first."
exit 1
fi
wget --no-check-certificate https://github.com/mikemcquaid/Scripts/tarball/m... | Fix GitHub tarball update wget bug. | Fix GitHub tarball update wget bug.
| Shell | mit | mikemcquaid/scripts,mikemcquaid/scripts | shell | ## Code Before:
set -e
SCRIPTSDIRREL=$(dirname $0)
cd $SCRIPTSDIRREL
if [ -e .git ]
then
echo "This scripts directory was checked out from Git so I won't update it."
echo "If you want it updated from a tarball anyway, please delete .git first."
exit 1
fi
wget http://github.com/mikemcquaid/Scripts/tarball/master -O... |
11de8a17a9d19b06b08469ecc94efa69b00d9272 | json-files/fedora-20-undercloud-packages.json | json-files/fedora-20-undercloud-packages.json | [
{ "element": [
"base",
"dib-run-parts"
],
"hook": [
"root",
"pre-install"
],
"blacklist": [
"01-ccache"
]
},
{
"element": [
"base",
"undercloud-install",
"fedora",
"boot-stack",
"nova-baremetal",
"os-collect-config",
... | [
{ "element": [
"base",
"dib-run-parts"
],
"hook": [
"root",
"pre-install"
],
"blacklist": [
"01-ccache"
]
},
{
"element": [
"base",
"undercloud-install",
"fedora",
"boot-stack",
"nova-baremetal",
"os-collect-config",
... | Exclude source-repositories and backlist the lsb hook script | Exclude source-repositories and backlist the lsb hook script
| JSON | apache-2.0 | dmsimard/instack-undercloud,eprasad/instack-undercloud,agroup/instack-undercloud,bcrochet/instack-undercloud,eprasad/instack-undercloud,agroup/instack-undercloud,rdo-management/instack-undercloud,dpkshetty/instack-undercloud,dpkshetty/instack-undercloud,rdo-management/instack-undercloud,bcrochet/instack-undercloud,dmsi... | json | ## Code Before:
[
{ "element": [
"base",
"dib-run-parts"
],
"hook": [
"root",
"pre-install"
],
"blacklist": [
"01-ccache"
]
},
{
"element": [
"base",
"undercloud-install",
"fedora",
"boot-stack",
"nova-baremetal",
"os-collec... |
416afc3dd3c5f9c65895b8f7ebefb7f5037c0548 | app/views/home/index.html.erb | app/views/home/index.html.erb | <ul class="thumbnails">
<% @src_images.each do |si| %>
<li>
<div class="thumbnail">
<%= render :partial => si %>
</div>
</li>
<% end %>
</ul>
<ul class="thumbnails">
<% @gend_images.each do |gi| %>
<li>
<div class="thumbnail">
<%= render :partial => g... | <p>
<%= link_to 'new source image', :controller => :src_images, :action => :new %>
</p>
<ul class="thumbnails">
<% @src_images.each do |si| %>
<li>
<div class="thumbnail">
<%= render :partial => si %>
</div>
</li>
<% end %>
</ul>
<ul class="thumbnails">
<% @gend_images.ea... | Add temporary new source image link. | Add temporary new source image link.
| HTML+ERB | mit | mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web,patrickmcguire/meme,patrickmcguire/meme,mmb/meme_captain_web | html+erb | ## Code Before:
<ul class="thumbnails">
<% @src_images.each do |si| %>
<li>
<div class="thumbnail">
<%= render :partial => si %>
</div>
</li>
<% end %>
</ul>
<ul class="thumbnails">
<% @gend_images.each do |gi| %>
<li>
<div class="thumbnail">
<%= rend... |
64be8f5b4b62e09f50d05b907b8010abd61cc639 | tests/auto/common/declarativewebutils_mock.pri | tests/auto/common/declarativewebutils_mock.pri | SOURCES += ../common/declarativewebutils.cpp
HEADERS += ../common/declarativewebutils.h
PKGCONFIG += qt5embedwidget
| SOURCES += ../common/declarativewebutils.cpp
HEADERS += ../common/declarativewebutils.h
isEmpty(QTEMBED_LIB) {
PKGCONFIG += qt5embedwidget
} else {
LIBS+=$$QTEMBED_LIB
}
| Fix builds error when using ./build.sh script. | [sailfish-browser] Fix builds error when using ./build.sh script.
In case the browser is build using build.sh from xulrunnre-packaging
don't rely on pkgconfig for finding qtmozembed.
| QMake | mpl-2.0 | sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser | qmake | ## Code Before:
SOURCES += ../common/declarativewebutils.cpp
HEADERS += ../common/declarativewebutils.h
PKGCONFIG += qt5embedwidget
## Instruction:
[sailfish-browser] Fix builds error when using ./build.sh script.
In case the browser is build using build.sh from xulrunnre-packaging
don't rely on pkgconfig for findin... |
4f6cae1bc08c0bbcc99174a4736a813ed318eddd | tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/init.coffee | tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/init.coffee | define ["./console"],
(console) ->
# Temporary, until we rework the client-side input validation.
T5.initializers.validate = ->
# Exports a single function that finds an initializer in `T5.initializers` and invokes it.
(initName, args...) ->
fn = T5.initializers[initName]
if not fn
... | define ["./console"],
(console) ->
# Exports a single function that finds an initializer in `T5.initializers` and invokes it.
(initName, args...) ->
fn = T5.initializers[initName]
if not fn
console.error "Initialization function '#{initName}' not found in T5.initializers namespace."
... | Remove a temporary kludge that is no longer needed | Remove a temporary kludge that is no longer needed
| CoffeeScript | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 | coffeescript | ## Code Before:
define ["./console"],
(console) ->
# Temporary, until we rework the client-side input validation.
T5.initializers.validate = ->
# Exports a single function that finds an initializer in `T5.initializers` and invokes it.
(initName, args...) ->
fn = T5.initializers[initName]
... |
c8820703d3219b5226a8522cd6507b6403752232 | entry.js | entry.js | 'use strict';
function Entry(relativePath, basePath, mode, size, mtime) {
this.mode = mode;
this.relativePath = relativePath;
this.basePath = basePath;
this.size = size;
this.mtime = mtime;
this.linkDir = false;
}
Entry.prototype.isDirectory = function isDirectory() {
return (this.mode & 61440) === 1... | 'use strict';
class Entry {
constructor(relativePath, basePath, mode, size, mtime) {
this.mode = mode;
this.relativePath = relativePath;
this.basePath = basePath;
this.size = size;
this.mtime = mtime;
this.linkDir = false;
}
isDirectory() {
return (this.mode & 61440) === 16384;
}... | Use ES6 class for Entry | Use ES6 class for Entry
| JavaScript | mit | broccolijs/node-merge-trees | javascript | ## Code Before:
'use strict';
function Entry(relativePath, basePath, mode, size, mtime) {
this.mode = mode;
this.relativePath = relativePath;
this.basePath = basePath;
this.size = size;
this.mtime = mtime;
this.linkDir = false;
}
Entry.prototype.isDirectory = function isDirectory() {
return (this.mod... |
5739336d9d8a3802ec78a83e1199739088dcb449 | modules/core/server/routes/core.server.routes.js | modules/core/server/routes/core.server.routes.js | 'use strict';
/*
* Core routing.
*/
module.exports = function(app) {
var core = require('../controllers/core.server.controller');
// Define HTTP error pages.
app.route('/403-forbidden').get(core.sendForbidden);
app.route('/404-page-not-found').get(core.sendPageNotFound);
app.route('/500-server-error').get... | 'use strict';
/*
* Core routing.
*/
module.exports = function(app) {
var core = require('../controllers/core.server.controller');
// Define HTTP error pages. (This will not work if user were to directly type in express route in the url.)
app.route('/403-forbidden').get(core.sendForbidden);
app.route('/404-p... | Update comment to remind about existing bug. | Update comment to remind about existing bug.
| JavaScript | mit | Codeaux/Codeaux,Codeaux/Codeaux,Codeaux/Codeaux | javascript | ## Code Before:
'use strict';
/*
* Core routing.
*/
module.exports = function(app) {
var core = require('../controllers/core.server.controller');
// Define HTTP error pages.
app.route('/403-forbidden').get(core.sendForbidden);
app.route('/404-page-not-found').get(core.sendPageNotFound);
app.route('/500-se... |
50e4b283e9fafff0d898572843b986f2af4dbb2a | docs/single_version.rst | docs/single_version.rst | Single Version Documentation
----------------------------
Single Version Documentation lets you serve your docs at a root domain.
By default, all documentation served by Read the Docs has a root of ``/<language>/<version>/``.
But, if you enable the "Single Version" option for a project, its documentation will instead ... | Single Version Documentation
----------------------------
Single Version Documentation lets you serve your docs at a root domain.
By default, all documentation served by Read the Docs has a root of ``/<language>/<version>/``.
But, if you enable the "Single Version" option for a project, its documentation will instead ... | Add contribution guide as an example | Add contribution guide as an example
| reStructuredText | mit | michaelmcandrew/readthedocs.org,kdkeyser/readthedocs.org,pombredanne/readthedocs.org,KamranMackey/readthedocs.org,nyergler/pythonslides,wijerasa/readthedocs.org,KamranMackey/readthedocs.org,singingwolfboy/readthedocs.org,KamranMackey/readthedocs.org,dirn/readthedocs.org,royalwang/readthedocs.org,michaelmcandrew/readthe... | restructuredtext | ## Code Before:
Single Version Documentation
----------------------------
Single Version Documentation lets you serve your docs at a root domain.
By default, all documentation served by Read the Docs has a root of ``/<language>/<version>/``.
But, if you enable the "Single Version" option for a project, its documentati... |
0312be25f6deb2b7205f9ab5da3a40bdd4cc36b9 | manifests/prometheus/alerts.d/ec2_cpu_credits.yml | manifests/prometheus/alerts.d/ec2_cpu_credits.yml | ---
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
value:
name: EC2CPUCreditsLow
rules:
- alert: EC2CPUCreditsLow
expr: avg_over_time(aws_ec2_cpucredit_balance_minimum[30m]) <= 20
labels:
severity: warning
... | ---
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
value:
name: EC2CPUCreditsLow
rules:
- alert: EC2CPUCreditsLow
expr: avg_over_time(aws_ec2_cpucredit_balance_minimum[30m]) <= 6
for: 2h
labels:
sev... | Update cpu credits alert to not be noisy for t3 | Update cpu credits alert to not be noisy for t3
T3 instances do not have launch credits, unlike T2 instances. This means
that this alert would fire as soon as the instances were launched.
Signed-off-by: Toby Lorne <527052641d65eef236eeef9545b2acac74c35d57@digital.cabinet-office.gov.uk>
| YAML | mit | alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf | yaml | ## Code Before:
---
- type: replace
path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
value:
name: EC2CPUCreditsLow
rules:
- alert: EC2CPUCreditsLow
expr: avg_over_time(aws_ec2_cpucredit_balance_minimum[30m]) <= 20
labels:
se... |
e34c891ea4dcf6f9e163f4f32702569c4170a7c1 | cfg/plugin/scratch.vim | cfg/plugin/scratch.vim | " define function to turn current buffer into a scratch buffer
function! s:Scratch()
setlocal buftype=nofile bufhidden=hide noswapfile
endfunction
" define commands to open scratch buffers with Scratch()
command! -nargs=0 Scratch enew | call s:Scratch()
command! -nargs=0 SScratch split | Scratch
command! -nargs=0 VS... | " define function to turn current buffer into a scratch buffer
function! s:Scratch(...)
setlocal buftype=nofile bufhidden=hide noswapfile
if exists('a:1')
execute 'set filetype=' . a:1
endif
endfunction
" define commands to open scratch buffers with Scratch()
command! -nargs=? -complete=filetype Scratch ene... | Allow passing filetype to :Scratch | Allow passing filetype to :Scratch
For convenience, :Scratch now takes a single optional filetype argument.
This filetype will be applied to the scratch buffer. For example,
:Scratch json will open a JSON scratch buffer.
This applies to all :Scratch variants, e.g. :SScratch.
The argument to :Scratch is Tab-completab... | VimL | mit | igemnace/vim-config,igemnace/vim-config,igemnace/my-vim-config,igemnace/vim-config | viml | ## Code Before:
" define function to turn current buffer into a scratch buffer
function! s:Scratch()
setlocal buftype=nofile bufhidden=hide noswapfile
endfunction
" define commands to open scratch buffers with Scratch()
command! -nargs=0 Scratch enew | call s:Scratch()
command! -nargs=0 SScratch split | Scratch
comm... |
61b669634856677387e717e120825569d05b3177 | package.json | package.json | {
"name": "lfg-streamtip",
"version": "0.0.1",
"homepage": "http://supportclass.net/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "StreamTip integration",
"license": "MIT",
"dependencies": {
"streamtip-listener": "^1.3.3"
},
"nodecg": {
"compatibleRange": "~0.7.0",
"das... | {
"name": "lfg-streamtip",
"version": "0.0.1",
"homepage": "http://supportclass.net/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "StreamTip integration",
"license": "MIT",
"dependencies": {
"streamtip-listener": "^1.3.3"
},
"nodecg": {
"compatibleRange": "~0.7.0",
"das... | Add `headerColor` to panel manifest | Add `headerColor` to panel manifest
| JSON | mit | SupportClass/lfg-streamtip,SupportClass/lfg-streamtip | json | ## Code Before:
{
"name": "lfg-streamtip",
"version": "0.0.1",
"homepage": "http://supportclass.net/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "StreamTip integration",
"license": "MIT",
"dependencies": {
"streamtip-listener": "^1.3.3"
},
"nodecg": {
"compatibleRange": "~... |
e488965fc426ad0b336bd269d629e9547a48da7f | playbooks/roles/osx/tasks/pip.yml | playbooks/roles/osx/tasks/pip.yml | ---
- name: Install PIP packages
pip: name={{ item }}
with_items:
- virtualenv
- fabric
- virtualenvwrapper
- pylint
- ipython
- flake8
- pythonpy
- termrule
- speedtest-cli
- name: Install gems
gem: name=rumember state=latest
| ---
- name: Install PIP packages
pip: name={{ item }}
with_items:
- virtualenv
- fabric
- virtualenvwrapper
- pylint
- ipython
- flake8
- pythonpy
- termrule
- speedtest-cli
- mycli
- name: Install gems
gem: name=rumember state=latest
| Add mycli package for MySQL | Add mycli package for MySQL
| YAML | mit | smathson/dotfiles | yaml | ## Code Before:
---
- name: Install PIP packages
pip: name={{ item }}
with_items:
- virtualenv
- fabric
- virtualenvwrapper
- pylint
- ipython
- flake8
- pythonpy
- termrule
- speedtest-cli
- name: Install gems
gem: name=rumember state=latest
## Instruction:
Add mycli package... |
671ba645170015d36c109509111dba5d7bc7d663 | _scss/blocks/index-item.scss | _scss/blocks/index-item.scss | .index-item {
background-color: white;
padding-top: 50px;
padding-bottom: 50px;
color: #57585A;
}
.index-item__container {
@extend .container;
}
.index-item__left {
@include make-sm-column(6);
@media (min-width: $screen-sm-min) {
padding-top: 35px;
}
}
.index-item__right {
@include make-sm-col... | .index-item {
background-color: #f5f8fa;
padding-top: 50px;
padding-bottom: 50px;
color: #57585A;
}
.index-item:nth-child(2n+1) {
background-color: white;
}
.index-item__container {
@extend .container;
}
.index-item__left {
@include make-sm-column(6);
@media (min-width: $screen-sm-min) {
padding... | Change background color of even index items to white | Change background color of even index items to white
| SCSS | mit | skgtech/devit,skgtech/devit,skgtech/devit | scss | ## Code Before:
.index-item {
background-color: white;
padding-top: 50px;
padding-bottom: 50px;
color: #57585A;
}
.index-item__container {
@extend .container;
}
.index-item__left {
@include make-sm-column(6);
@media (min-width: $screen-sm-min) {
padding-top: 35px;
}
}
.index-item__right {
@inc... |
c1ae6b37b55a02c896b9d8da44936fcc5e19beff | CHANGELOG.md | CHANGELOG.md |
* Fixed `Session.getDefault`
* Fixed `Session.equals`
* Fixed configuration example in README.md
### [0.1.3](https://github.com/okgrow/meteor-persistent-session/releases/tag/v0.1.3)
* Initial release
|
* Fixed `Session.getDefault` (Reported by [valZho](https://github.com/valZho))
* Fixed `Session.equals` (Reported by [manuelpaulo](https://github.com/manuelpaulo))
* Fixed configuration example in README.md
### [0.1.3](https://github.com/okgrow/meteor-persistent-session/releases/tag/v0.1.3)
* Initial release
| Add reporting credits to changelog | Add reporting credits to changelog
| Markdown | mit | okgrow/meteor-persistent-session,ryepdx/meteor-persistent-session | markdown | ## Code Before:
* Fixed `Session.getDefault`
* Fixed `Session.equals`
* Fixed configuration example in README.md
### [0.1.3](https://github.com/okgrow/meteor-persistent-session/releases/tag/v0.1.3)
* Initial release
## Instruction:
Add reporting credits to changelog
## Code After:
* Fixed `Session.getDefault... |
74081cd1ba00c1efcba11eae021b474adc26c126 | config/webpack.config.devserver.js | config/webpack.config.devserver.js | const path = require('path');
const webpack = require('webpack');
// Listen port
const PORT = process.env.PORT || 8080;
// Load base config
const baseConfig = require('./webpack.config.base');
// Create the config
const config = Object.create(baseConfig);
config.devtool = 'cheap-source-map';
config.devServer = {
... | const path = require('path');
const webpack = require('webpack');
// Listen port
const PORT = process.env.PORT || 8080;
// Load base config
const baseConfig = require('./webpack.config.base');
// Create the config
const config = Object.create(baseConfig);
config.devtool = 'cheap-source-map';
config.devServer = {
... | Fix this crashing spewage: Uncaught Error: [HMR] Hot Module Replacement is disabled. | Fix this crashing spewage:
Uncaught Error: [HMR] Hot Module
Replacement is disabled.
| JavaScript | mit | gaudeon/interstice,gaudeon/interstice,gaudeon/interstice | javascript | ## Code Before:
const path = require('path');
const webpack = require('webpack');
// Listen port
const PORT = process.env.PORT || 8080;
// Load base config
const baseConfig = require('./webpack.config.base');
// Create the config
const config = Object.create(baseConfig);
config.devtool = 'cheap-source-map';
confi... |
9541858406b925aa12a77eaf002bc0cc0012520b | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
env:
- DJANGO=1.8.17
- DJANGO=1.9.12
- DJANGO=1.10.5
install:
- pip install Django==$DJANGO times da-vinci pillow redis shortuuid
- sudo apt-get install -qq optipng
script: make test
services: redis
| language: python
python:
- "2.7"
- "3.4"
- "3.5"
env:
- DJANGO=1.8.17
- DJANGO=1.9.12
- DJANGO=1.10.5
install:
- pip install Django==$DJANGO times da-vinci pillow redis shortuuid
- sudo apt-get install -qq optipng
script: make test
services: redis
| Exclude Python 3.3 from test matrix. | Exclude Python 3.3 from test matrix.
| YAML | mit | ui/django-thumbnails | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
env:
- DJANGO=1.8.17
- DJANGO=1.9.12
- DJANGO=1.10.5
install:
- pip install Django==$DJANGO times da-vinci pillow redis shortuuid
- sudo apt-get install -qq optipng
script: make test
services: redis
## Instruction:
Exclude P... |
ffecdb8752d426218bcf9d1d5ca3d016f7218165 | box.json | box.json | {
"alias": "victor.phar",
"chmod": "0755",
"algorithm": "SHA1",
"compression": "GZ",
"directories": ["src"],
"files": [
"LICENSE.md",
"vendor/autoload.php",
"vendor/composer/composer/res/cacert.pem"
],
"finder": [
{
"name": [
"*.php",
"LICENSE"
],
"exclude": [
"Tests",
"tests",
... | {
"alias": "victor.phar",
"chmod": "0755",
"algorithm": "SHA1",
"compression": "GZ",
"directories": ["src"],
"files": [
"LICENSE.md",
"vendor/autoload.php",
"vendor/composer/composer/res/cacert.pem"
],
"finder": [
{
"name": [
"*.php",
"LICENSE"
],
"exclude": [
"Tests",
"tests",
... | Add padraic libs to phar file | Add padraic libs to phar file
| JSON | mit | nella/victor | json | ## Code Before:
{
"alias": "victor.phar",
"chmod": "0755",
"algorithm": "SHA1",
"compression": "GZ",
"directories": ["src"],
"files": [
"LICENSE.md",
"vendor/autoload.php",
"vendor/composer/composer/res/cacert.pem"
],
"finder": [
{
"name": [
"*.php",
"LICENSE"
],
"exclude": [
"Tests... |
053743de09422740eb2ece73282f7db6d44b4c88 | fraction-list/src/main/resources/org/wildfly/swarm/fractionlist/fraction-packages.properties | fraction-list/src/main/resources/org/wildfly/swarm/fractionlist/fraction-packages.properties | ejb=javax.ejb
infinispan=org.infinispan
jaxrs=javax.ws.rs
jaxrs-weld=javax.ws.rs+javax.inject
jpa=javax.persistence
jsf=javax.faces
messaging=javax.jms
spring=org.springframework*
swagger=io.swagger.annotations
undertow=javax.servlet
webservices=javax.jws
weld=javax.inject
| ejb=javax.ejb
infinispan=org.infinispan
jaxrs=javax.ws.rs
jaxrs-weld=javax.ws.rs+javax.inject
jpa=javax.persistence
jsf=javax.faces
messaging=javax.jms
spring=org.springframework*
swagger=io.swagger.annotations
undertow=javax.servlet
webservices=javax.jws
weld=javax.inject
transactions=javax.transaction
| Add auto detection mapping for 'transactions' | Add auto detection mapping for 'transactions'
| INI | apache-2.0 | wildfly-swarm/wildfly-swarm-bom,wildfly-swarm/wildfly-swarm-bom | ini | ## Code Before:
ejb=javax.ejb
infinispan=org.infinispan
jaxrs=javax.ws.rs
jaxrs-weld=javax.ws.rs+javax.inject
jpa=javax.persistence
jsf=javax.faces
messaging=javax.jms
spring=org.springframework*
swagger=io.swagger.annotations
undertow=javax.servlet
webservices=javax.jws
weld=javax.inject
## Instruction:
Add auto det... |
42a36989095f887b6f4ce8bc179f2d8dbdfb5722 | kubernetes_deploy/development/queue_worker_deployment.yml | kubernetes_deploy/development/queue_worker_deployment.yml | apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kubernetes.io/change-cause: "<to be filled in deploy_to_kubernetes script>"
name: laa-legal-adviser-api-worker
spec:
replicas: 1
selector:
matchLabels:
app: laa-legal-adviser-api
tier: worker
env: development
template:
m... | apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kubernetes.io/change-cause: "<to be filled in deploy_to_kubernetes script>"
name: laa-legal-adviser-api-worker
spec:
replicas: 1
selector:
matchLabels:
app: laa-legal-adviser-api
tier: worker
env: development
template:
m... | Use renamed queue worker probes on dev | Use renamed queue worker probes on dev
| YAML | mit | ministryofjustice/laa-legal-adviser-api,ministryofjustice/laa-legal-adviser-api,ministryofjustice/laa-legal-adviser-api | yaml | ## Code Before:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kubernetes.io/change-cause: "<to be filled in deploy_to_kubernetes script>"
name: laa-legal-adviser-api-worker
spec:
replicas: 1
selector:
matchLabels:
app: laa-legal-adviser-api
tier: worker
env: development
... |
a817e3b3419b7d3c7966e2ddf9146c94a6004730 | README.md | README.md | [](https://circleci.com/gh/projectcalico/libcalico) [](https://coveralls.io/github/projectcalico/libcalico?branch=master)
# libcalico
... | [](https://circleci.com/gh/projectcalico/libcalico) [](https://coveralls.io/github/projectcalico/libcalico?branch=master)
# libcalico
... | Add notice about switching to libcalico-go | Add notice about switching to libcalico-go | Markdown | apache-2.0 | projectcalico/libcalico | markdown | ## Code Before:
[](https://circleci.com/gh/projectcalico/libcalico) [](https://coveralls.io/github/projectcalico/libcalico?branch=master... |
1e04224f6c870cddc1f7d4cbed466a145b150caf | .scrutinizer.yml | .scrutinizer.yml | checks:
php: true
tools:
external_code_coverage: true
filter:
excluded_paths:
- 'tests/*'
| build:
tests:
override:
- php-scrutinizer-run
tools:
external_code_coverage: true
filter:
excluded_paths:
- 'tests/'
| Migrate to new PHP Analysis | [Scrutinizer] Migrate to new PHP Analysis
| YAML | mit | arodygin/php-dictionary | yaml | ## Code Before:
checks:
php: true
tools:
external_code_coverage: true
filter:
excluded_paths:
- 'tests/*'
## Instruction:
[Scrutinizer] Migrate to new PHP Analysis
## Code After:
build:
tests:
override:
- php-scrutinizer-run
tools:
external_code_coverage: true
filte... |
ce9dac26378e0c5ef3441c675921237e48bbf00b | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
before_install:
- git submodule update --init --recursive
- sudo ./bin/init
script: rvmsudo bundle exec rspec spec | language: ruby
rvm:
- 1.9.3
before_install:
- git submodule update --init --recursive
- sudo ./bin/init
script:
- rvmsudo gem install bundler
- rvmsudo bundle exec rspec spec
| Add installing bundler for rvmsudo | Add installing bundler for rvmsudo
| YAML | apache-2.0 | wabcwang/nise_bosh,kaerlong/nise_bosh,wabcwang/nise_bosh,kaerlong/nise_bosh,kaerlong/nise_bosh,nttlabs/nise_bosh,wabcwang/nise_bosh,nttlabs/nise_bosh,nttlabs/nise_bosh | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
before_install:
- git submodule update --init --recursive
- sudo ./bin/init
script: rvmsudo bundle exec rspec spec
## Instruction:
Add installing bundler for rvmsudo
## Code After:
language: ruby
rvm:
- 1.9.3
before_install:
- git submodule update --init --rec... |
c58e3c207ad5f534ea8a7e17cb13f6a1a1b8c714 | multi_schema/admin.py | multi_schema/admin.py | from django.contrib import admin
from models import Schema
class SchemaAdmin(admin.ModelAdmin):
pass
admin.site.register(Schema, SchemaAdmin) | from django.contrib import admin, auth
from models import Schema, UserSchema
class SchemaAdmin(admin.ModelAdmin):
def get_readonly_fields(self, request, obj=None):
if obj is not None:
return ('schema',)
return ()
admin.site.register(Schema, SchemaAdmin)
class SchemaInline(admin.Stacke... | Make 'schema' value readonly after creation. Inject SchemaUser into UserAdmin inlines. | Make 'schema' value readonly after creation.
Inject SchemaUser into UserAdmin inlines.
| Python | bsd-3-clause | schinckel/django-boardinghouse,schinckel/django-boardinghouse,schinckel/django-boardinghouse | python | ## Code Before:
from django.contrib import admin
from models import Schema
class SchemaAdmin(admin.ModelAdmin):
pass
admin.site.register(Schema, SchemaAdmin)
## Instruction:
Make 'schema' value readonly after creation.
Inject SchemaUser into UserAdmin inlines.
## Code After:
from django.contrib import admin, aut... |
6122a8488613bdd7d5aaf80e7238cd2d80687a91 | stock.py | stock.py | class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price = None
def update(self, timestamp, price):
if price < 0:
raise ValueError("price should not be negative")
self.price = price
| class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
if self.price_history:
return self.price_history[-1]
else:
return None
def update(self, timestamp, price):
if price < 0:
... | Update price attribute to price_history list as well as update function accordingly. | Update price attribute to price_history list as well as update function accordingly.
| Python | mit | bsmukasa/stock_alerter | python | ## Code Before:
class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price = None
def update(self, timestamp, price):
if price < 0:
raise ValueError("price should not be negative")
self.price = price
## Instruction:
Update price attribute to price_hist... |
9449d1ded986b8703662ee183dd6d2f47a7e334c | lib/mercurius/apns/notification.rb | lib/mercurius/apns/notification.rb | module APNS
class Notification
include ActiveModel::Model
MAX_PAYLOAD_BYTES = 2048
attr_accessor :alert, :badge, :sound, :other, :content_available
attr_reader :attributes
def initialize(attributes = {})
@attributes = attributes
super
end
def payload
{
'alert'... | module APNS
class Notification
include ActiveModel::Model
MAX_PAYLOAD_BYTES = 2048
attr_accessor :alert, :badge, :sound, :other, :content_available
attr_reader :attributes
def initialize(attributes = {})
@attributes = attributes
super
end
def payload
{
'alert'... | Make APNS::Notification packaging methods private | Make APNS::Notification packaging methods private
| Ruby | mit | jrbeck/mercurius | ruby | ## Code Before:
module APNS
class Notification
include ActiveModel::Model
MAX_PAYLOAD_BYTES = 2048
attr_accessor :alert, :badge, :sound, :other, :content_available
attr_reader :attributes
def initialize(attributes = {})
@attributes = attributes
super
end
def payload
{... |
1246d87583bf590b3c412095b368a3248f27d214 | doc/en/array/constructor.md | doc/en/array/constructor.md |
Since the `Array` constructor is ambiguous in how it deals with its parameters,
it is highly recommended to always use the array literals - `[]` notation -
when creating new arrays.
[1, 2, 3]; // Result: [1, 2, 3]
new Array(1, 2, 3); // Result: [1, 2, 3]
[3]; // Result: [3]
new Array(3); // Result: ... |
Since the `Array` constructor is ambiguous in how it deals with its parameters,
it is highly recommended to always use the array literals - `[]` notation -
when creating new arrays.
[1, 2, 3]; // Result: [1, 2, 3]
new Array(1, 2, 3); // Result: [1, 2, 3]
[3]; // Result: [3]
new Array(3); // Result: ... | Clean up language in the array section. | Clean up language in the array section.
| Markdown | mit | dongfeng2008/JavaScript-Garden,hehuabing/JavaScript-Garden,julionc/JavaScript-Garden,xis19/JavaScript-Garden,xis19/JavaScript-Garden,cesarmarinhorj/JavaScript-Garden,anityche/JavaScript-Garden,anityche/JavaScript-Garden,Krasnyanskiy/JavaScript-Garden,Krasnyanskiy/JavaScript-Garden,dongfeng2008/JavaScript-Garden,108adam... | markdown | ## Code Before:
Since the `Array` constructor is ambiguous in how it deals with its parameters,
it is highly recommended to always use the array literals - `[]` notation -
when creating new arrays.
[1, 2, 3]; // Result: [1, 2, 3]
new Array(1, 2, 3); // Result: [1, 2, 3]
[3]; // Result: [3]
new Array... |
fcae12ca34262620698c93452742ce4748d62bcf | README.md | README.md | A quick-and-dirty tool for working with the name graphics found in FE12's Guide
| A quick-and-dirty tool for working with the name graphics found in FE12's Guide.

This tool is intended to be used with the name_[faction].pkcg files found in the dic/ directory of FE12. It may work wit... | Update READMDE with build information | Update READMDE with build information
| Markdown | mit | tom-overton/fe12-guide-name-tool | markdown | ## Code Before:
A quick-and-dirty tool for working with the name graphics found in FE12's Guide
## Instruction:
Update READMDE with build information
## Code After:
A quick-and-dirty tool for working with the name graphics found in FE12's Guide.

if @expense.valid?
@event.fixed_expenses << @expense
@event.s... | class ExpensesController < ApplicationController
before_filter :find_event_and_expense
helper_method :expenses_title, :expenses_path, :expenses, :expense_path, :edit_expense_path
def create
@expense = Expense.new(params[:expense])
if @expense.valid?
expenses << @expense
@event.save!
re... | Use template methods for expenses in controller | Use template methods for expenses in controller
| Ruby | mit | CultivateHQ/ballpark,CultivateHQ/ballpark | ruby | ## Code Before:
class ExpensesController < ApplicationController
before_filter :find_event_and_expense
helper_method :expenses_title, :expenses_path, :expenses, :expense_path, :edit_expense_path
def create
@expense = Expense.new(params[:expense])
if @expense.valid?
@event.fixed_expenses << @expens... |
dea17009bcc304a23fd1003d8537402c18295111 | Casks/latexit.rb | Casks/latexit.rb | cask :v1 => 'latexit' do
version '2.7.3'
sha256 '45efeeea0d7bde36ba08aa663d6dd10092ec66d7622bccccf73732257e1e82f0'
url "http://www.chachatelier.fr/latexit/downloads/LaTeXiT-#{version.gsub('.', '_')}.dmg"
appcast 'http://pierre.chachatelier.fr/latexit/downloads/latexit-sparkle-en.rss',
:sha256 => 'bc1... | cask :v1 => 'latexit' do
version '2.7.5'
sha256 '2faef9682f1450d2a4b240bcf602a84ae187e58bf62787e2185af0ee05161e6f'
url "http://www.chachatelier.fr/latexit/downloads/LaTeXiT-#{version.gsub('.', '_')}.dmg"
appcast 'http://pierre.chachatelier.fr/latexit/downloads/latexit-sparkle-en.rss',
:sha256 => 'bc1... | Update LaTeXiT to version 2.7.5 | Update LaTeXiT to version 2.7.5
| Ruby | bsd-2-clause | cohei/homebrew-cask,sosedoff/homebrew-cask,kesara/homebrew-cask,sscotth/homebrew-cask,elyscape/homebrew-cask,samshadwell/homebrew-cask,elnappo/homebrew-cask,LaurentFough/homebrew-cask,markhuber/homebrew-cask,MircoT/homebrew-cask,Hywan/homebrew-cask,troyxmccall/homebrew-cask,fazo96/homebrew-cask,malob/homebrew-cask,nrlq... | ruby | ## Code Before:
cask :v1 => 'latexit' do
version '2.7.3'
sha256 '45efeeea0d7bde36ba08aa663d6dd10092ec66d7622bccccf73732257e1e82f0'
url "http://www.chachatelier.fr/latexit/downloads/LaTeXiT-#{version.gsub('.', '_')}.dmg"
appcast 'http://pierre.chachatelier.fr/latexit/downloads/latexit-sparkle-en.rss',
... |
c8e679ed30ee15de36577b47b6f6b3261052311a | .travis.yml | .travis.yml | language: node_js
services:
- mongodb
node_js:
- "4"
- "6"
- "8"
before_script:
- cp $TRAVIS_BUILD_DIR/snutt.yml.example $TRAVIS_BUILD_DIR/snutt.yml
| language: node_js
services:
- mongodb
node_js:
- "8"
before_script:
- cp $TRAVIS_BUILD_DIR/snutt.yml.example $TRAVIS_BUILD_DIR/snutt.yml
| Fix travix config: Test only node 8 | Fix travix config: Test only node 8
| YAML | mit | wafflestudio/snutt,wafflestudio/snutt | yaml | ## Code Before:
language: node_js
services:
- mongodb
node_js:
- "4"
- "6"
- "8"
before_script:
- cp $TRAVIS_BUILD_DIR/snutt.yml.example $TRAVIS_BUILD_DIR/snutt.yml
## Instruction:
Fix travix config: Test only node 8
## Code After:
language: node_js
services:
- mongodb
node_js:
- "8"
before_script:
- ... |
3859cf8e5cb2b867abbbff792def4245eef6c467 | requirements.txt | requirements.txt | banal>=0.4.2
normality>=1.0.1
pantomime>=0.3.3
servicelayer[google]==1.8.4
servicelayer[amazon]==1.8.4
balkhash[leveldb]==1.0.0
balkhash[sql]==1.0.0
followthemoney==1.20.0
languagecodes>=1.0.5
psycopg2-binary
grpcio>=1.21.1
google-cloud-vision==0.39.0
google-cloud-storage==1.19.0
# Development
nose
click>=7.0
# File... | banal>=0.4.2
normality>=1.0.1
pantomime>=0.3.3
servicelayer[google,amazon]==1.8.4
balkhash[leveldb,sql]==1.0.1
followthemoney==1.20.0
languagecodes>=1.0.5
psycopg2-binary
grpcio>=1.21.1
google-cloud-vision==0.39.0
google-cloud-storage==1.19.0
# Development
nose
click>=7.0
# File format support
dbf>=0.96.8
pdflib>=0.... | Fix up extras install syntax | Fix up extras install syntax
| Text | mit | alephdata/ingestors | text | ## Code Before:
banal>=0.4.2
normality>=1.0.1
pantomime>=0.3.3
servicelayer[google]==1.8.4
servicelayer[amazon]==1.8.4
balkhash[leveldb]==1.0.0
balkhash[sql]==1.0.0
followthemoney==1.20.0
languagecodes>=1.0.5
psycopg2-binary
grpcio>=1.21.1
google-cloud-vision==0.39.0
google-cloud-storage==1.19.0
# Development
nose
cl... |
0ebc33e223213bba75a74e1e0eeae419cb9222af | core/db/migrate/20111107143030_migrate_namespaced_polymorphic_models.rb | core/db/migrate/20111107143030_migrate_namespaced_polymorphic_models.rb | class MigrateNamespacedPolymorphicModels < ActiveRecord::Migration
def up
['spree_payments', 'spree_adjustments', 'spree_log_entries'].each do |table|
collection = select_all "SELECT * FROM #{table} WHERE source_type NOT LIKE 'Spree::%' AND source_type IS NOT NULL"
collection.each do |member|
... | class MigrateNamespacedPolymorphicModels < ActiveRecord::Migration
def up
['spree_payments', 'spree_adjustments', 'spree_log_entries'].each do |table|
collection = select_all "SELECT * FROM #{table} WHERE source_type NOT LIKE 'Spree::%' AND source_type IS NOT NULL"
collection.each do |member|
... | Fix variable names in MigrateNamespacedPolymorphicModels migration | Fix variable names in MigrateNamespacedPolymorphicModels migration
| Ruby | bsd-3-clause | jordan-brough/solidus,ayb/spree,jspizziri/spree,lyzxsc/spree,thogg4/spree,CJMrozek/spree,StemboltHQ/spree,reidblomquist/spree,pjmj777/spree,jhawthorn/spree,beni55/spree,bjornlinder/Spree,firman/spree,surfdome/spree,FadliKun/spree,sliaquat/spree,builtbybuffalo/spree,calvinl/spree,miyazawatomoka/spree,Kagetsuki/spree,jpa... | ruby | ## Code Before:
class MigrateNamespacedPolymorphicModels < ActiveRecord::Migration
def up
['spree_payments', 'spree_adjustments', 'spree_log_entries'].each do |table|
collection = select_all "SELECT * FROM #{table} WHERE source_type NOT LIKE 'Spree::%' AND source_type IS NOT NULL"
collection.each do |... |
7f7eae887362b117cca1f567fbd2ea8677082e0c | examples/index.js | examples/index.js | var Gravatar = require('../dist/index.js');
var React = require('react');
React.renderComponent(
React.DOM.div(null,
[
React.DOM.h2(null, "<Gravatar email='mathews.kyle@gmail.com' />"),
Gravatar({email: 'mathews.kyle@gmail.com'}),
React.DOM.h2(nul... | var React = require('react');
var Gravatar = React.createFactory(require('../dist/index.js'));
React.render(
React.DOM.div(null,
[
React.DOM.h2(null, "<Gravatar email='mathews.kyle@gmail.com' />"),
Gravatar({email: 'mathews.kyle@gmail.com'}),
Reac... | Fix example for React 0.13 | Fix example for React 0.13
| JavaScript | mit | KyleAMathews/react-gravatar | javascript | ## Code Before:
var Gravatar = require('../dist/index.js');
var React = require('react');
React.renderComponent(
React.DOM.div(null,
[
React.DOM.h2(null, "<Gravatar email='mathews.kyle@gmail.com' />"),
Gravatar({email: 'mathews.kyle@gmail.com'}),
... |
1e17e868ff332003da959a397b8846c9386b35e8 | API_to_backend.py | API_to_backend.py | from multiprocessing import Queue, Process
import time
import backend
command_queue = Queue()
response_queue = Queue()
def start_backend():
if handler:
handler.stop()
handler = Process(target=backend.start, args=(command_queue, response_queue))
handler.start()
def get_for(url, queue, timeout):
... | from multiprocessing import Queue, Process
import time
import backend
command_queue = Queue()
response_queue = Queue()
def start_backend():
handler = Process(target=backend.start, args=(command_queue, response_queue))
handler.start()
def get_for(url, queue, timeout):
beginning = time.time()
result =... | Revert "Quit Backend If Running" | Revert "Quit Backend If Running"
This reverts commit a00432191e2575aba0f20ffb1a96a323699ae4fc.
| Python | mit | IAPark/PITherm | python | ## Code Before:
from multiprocessing import Queue, Process
import time
import backend
command_queue = Queue()
response_queue = Queue()
def start_backend():
if handler:
handler.stop()
handler = Process(target=backend.start, args=(command_queue, response_queue))
handler.start()
def get_for(url, qu... |
348c61b7890d404b779217eb0cc1c19d9dc1a86d | lib/hawk/model/connection.rb | lib/hawk/model/connection.rb | module Hawk
module Model
##
# Fetches models from the remote HTTP endpoint.
#
module Connection
def self.included(base)
base.extend ClassMethods
end
def connection
self.class.connection
end
module ClassMethods
def connection
raise Erro... | module Hawk
module Model
##
# Fetches models from the remote HTTP endpoint.
#
module Connection
def self.included(base)
base.extend ClassMethods
end
def connection
self.class.connection
end
module ClassMethods
def connection
@_connecti... | Add mandatory User Agent as client_name | Add mandatory User Agent as client_name
| Ruby | mit | ifad/hawk,ifad/hawk | ruby | ## Code Before:
module Hawk
module Model
##
# Fetches models from the remote HTTP endpoint.
#
module Connection
def self.included(base)
base.extend ClassMethods
end
def connection
self.class.connection
end
module ClassMethods
def connection
... |
a7be1ec2b6c74eff5445384990d6b4982cdb6ed6 | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-styl... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-styl... | Remove namespace definition of SVG element | Remove namespace definition of SVG element
| HTML | mit | ionstage/loclock,ionstage/loclock | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app... |
5853a141a52429783a7fc031b2c33fef4d8c58d5 | pages/staticpage.go | pages/staticpage.go | package pages
import (
"io"
"io/ioutil"
)
// StaticPage is a static page.
type StaticPage struct {
pageFields
}
// Static returns a bool indicating that the page is a static page.
func (p *StaticPage) Static() bool { return true }
func (p *StaticPage) Write(_ Context, w io.Writer) error {
b, err := ioutil.ReadF... | package pages
import (
"io"
"os"
)
// StaticPage is a static page.
type StaticPage struct {
pageFields
}
// Static returns a bool indicating that the page is a static page.
func (p *StaticPage) Static() bool { return true }
func (p *StaticPage) Write(_ Context, w io.Writer) error {
in, err := os.Open(p.filename... | Use io.Copy to write static files | Use io.Copy to write static files
| Go | mit | osteele/gojekyll,osteele/gojekyll,osteele/gojekyll,osteele/gojekyll | go | ## Code Before:
package pages
import (
"io"
"io/ioutil"
)
// StaticPage is a static page.
type StaticPage struct {
pageFields
}
// Static returns a bool indicating that the page is a static page.
func (p *StaticPage) Static() bool { return true }
func (p *StaticPage) Write(_ Context, w io.Writer) error {
b, err... |
ba73bedda6ad72b0accd51e594b1b3e193d50e87 | client/src/app/shared/shared-video-miniature/videos-selection.component.scss | client/src/app/shared/shared-video-miniature/videos-selection.component.scss | @use '_variables' as *;
@use '_mixins' as *;
.action-selection-mode {
display: flex;
justify-content: flex-end;
flex-grow: 1;
}
.action-selection-mode-child {
position: fixed;
.action-button {
@include margin-left(55px);
display: block;
}
}
.action-button-cancel-selection {
@include peertube-... | @use '_variables' as *;
@use '_mixins' as *;
.action-selection-mode {
display: flex;
justify-content: flex-end;
flex-grow: 1;
}
.action-selection-mode-child {
position: fixed;
display: flex;
.action-button {
@include margin-left(55px);
display: block;
}
}
.action-button-cancel-selection {
@... | Fix video selection buttons placement | Fix video selection buttons placement
| SCSS | agpl-3.0 | Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube,Chocobozzz/PeerTube | scss | ## Code Before:
@use '_variables' as *;
@use '_mixins' as *;
.action-selection-mode {
display: flex;
justify-content: flex-end;
flex-grow: 1;
}
.action-selection-mode-child {
position: fixed;
.action-button {
@include margin-left(55px);
display: block;
}
}
.action-button-cancel-selection {
@i... |
d70174beccae5a6d3d23195f5d2e27d78b146047 | app/assets/javascripts/darkswarm/directives/validate_stock_quantity.js.coffee | app/assets/javascripts/darkswarm/directives/validate_stock_quantity.js.coffee | Darkswarm.directive "validateStockQuantity", (StockQuantity) ->
restrict: 'A'
require: "ngModel"
link: (scope, element, attr, ngModel) ->
ngModel.$parsers.push (selectedQuantity) ->
valid_number = parseInt(selectedQuantity) != NaN
valid_quantity = parseInt(selectedQuantity) <= scope.available_qua... | Darkswarm.directive "validateStockQuantity", (StockQuantity) ->
restrict: 'A'
require: "ngModel"
scope: true
link: (scope, element, attr, ngModel) ->
ngModel.$parsers.push (selectedQuantity) ->
valid_number = parseInt(selectedQuantity) != NaN
valid_quantity = parseInt(selectedQuantity) <= scope... | Use fresh scope for each quantity field | Use fresh scope for each quantity field
| CoffeeScript | agpl-3.0 | Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/ope... | coffeescript | ## Code Before:
Darkswarm.directive "validateStockQuantity", (StockQuantity) ->
restrict: 'A'
require: "ngModel"
link: (scope, element, attr, ngModel) ->
ngModel.$parsers.push (selectedQuantity) ->
valid_number = parseInt(selectedQuantity) != NaN
valid_quantity = parseInt(selectedQuantity) <= sco... |
eaee1b8778495135d7af7497ddecc21935c91c9a | Cargo.toml | Cargo.toml | [package]
name = "nickel-sqlite"
version = "0.0.1"
authors = ["Simon Persson <simon@flaskpost.org>"]
[lib]
name = "nickel_sqlite"
path = "src/lib.rs"
[dependencies.nickel]
git = "https://github.com/SimonPersson/nickel.rs.git"
[dependencies.rust-sqlite]
git = "https://github.com/dckc/rust-sqlite3.git"
[[example]]
na... | [package]
name = "nickel-sqlite"
version = "0.0.1"
authors = ["Simon Persson <simon@flaskpost.org>"]
[lib]
name = "nickel_sqlite"
path = "src/lib.rs"
[dependencies.nickel]
git = "https://github.com/nickel-org/nickel.rs.git"
[dependencies.rust-sqlite]
git = "https://github.com/dckc/rust-sqlite3.git"
[[example]]
name... | Switch back to main nickel. | Switch back to main nickel.
| TOML | mit | SimonPersson/nickel-sqlite3 | toml | ## Code Before:
[package]
name = "nickel-sqlite"
version = "0.0.1"
authors = ["Simon Persson <simon@flaskpost.org>"]
[lib]
name = "nickel_sqlite"
path = "src/lib.rs"
[dependencies.nickel]
git = "https://github.com/SimonPersson/nickel.rs.git"
[dependencies.rust-sqlite]
git = "https://github.com/dckc/rust-sqlite3.git"... |
257dfb154d9626853629b79e1e3eeb1631ddde09 | _includes/section_about.html | _includes/section_about.html | <section id="about">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="section-heading">Палаточный ИТ-лагерь Дюна</h2>
<h3 class="section-subheading text-muted">
Это яркий палаточный фестиваль в самый разгар лета!
... | <section id="about">
<div class="container">
<div class="row">
<div class="col-lg-12">Что такое Дюна?</h2>
<h3 class="section-subheading text-muted">
Дюна - это тематический палаточный ИТ-лагерь, который пройдет 13-15 июля 2018 года на берегу Волги, на террито... | Add new text to about | Add new text to about
| HTML | apache-2.0 | youcon/dune.github.io,youcon/dune.github.io,youcon/dune.github.io | html | ## Code Before:
<section id="about">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="section-heading">Палаточный ИТ-лагерь Дюна</h2>
<h3 class="section-subheading text-muted">
Это яркий палаточный фестиваль в самый ... |
ead8d84df4db6e2c1f0b7cc5d5485870a73a393f | yang/yang-parser-spi/src/main/java/module-info.java | yang/yang-parser-spi/src/main/java/module-info.java | /*
* Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
module org... | /*
* Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
module org... | Add a requirement on annotations | Add a requirement on annotations
Do not rely to get these transitively, add a requires static.
Change-Id: Ibf06934bcdf808e1bdc47cdb8097adc9d5650606
Signed-off-by: Robert Varga <91ae5aa8c7a9f7e57b701db766e23e544aaa6ae9@pantheon.tech>
| Java | epl-1.0 | opendaylight/yangtools,opendaylight/yangtools | java | ## Code Before:
/*
* Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.htm... |
51650ca02af5af553d6bf624556d0194fbed12f5 | pip_reqs.txt | pip_reqs.txt | certifi==2017.7.27.1
chardet==3.0.4
codacy-coverage==1.3.6
coverage==4.4.1
idna==2.5
pkg-resources==0.0.0
py==1.4.34
pytest==3.2.0
requests==2.18.3
urllib3==1.22
| certifi==2017.7.27.1
chardet==3.0.4
codacy-coverage==1.3.6
coverage==4.4.1
idna==2.5
py==1.4.34
pytest==3.2.0
requests==2.18.3
urllib3==1.22
| Fix unmeetable dependency on pip requirements | Fix unmeetable dependency on pip requirements
| Text | mit | SolarLiner/libnotify-terminal | text | ## Code Before:
certifi==2017.7.27.1
chardet==3.0.4
codacy-coverage==1.3.6
coverage==4.4.1
idna==2.5
pkg-resources==0.0.0
py==1.4.34
pytest==3.2.0
requests==2.18.3
urllib3==1.22
## Instruction:
Fix unmeetable dependency on pip requirements
## Code After:
certifi==2017.7.27.1
chardet==3.0.4
codacy-coverage==1.3.6
cove... |
880d7409e06f5aa694cc5321c32a95b8a67c90b2 | src/discordcr/mappings/rest.cr | src/discordcr/mappings/rest.cr | require "./converters"
module Discord
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
end
| require "./converters"
module Discord
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
# A response to the Get Guild Prune Count REST API call.
struct PruneCountResponse
JSON.mapping(
pruned: UInt3... | Add a mapping for the response of the prune count endpoint | Add a mapping for the response of the prune count endpoint
| Crystal | mit | meew0/discordcr | crystal | ## Code Before:
require "./converters"
module Discord
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
end
## Instruction:
Add a mapping for the response of the prune count endpoint
## Code After:
require "./conv... |
bb9ca4831513b2669df01d0d9a64701df71b5942 | spec/lib/active_record/models/data_key_spec.rb | spec/lib/active_record/models/data_key_spec.rb | require 'spec_helper'
module Voynich::ActiveRecord
describe DataKey do
before do
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:plaintext) {
'plaintext-data-key-generated-by-amazon-kms'
}
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:ciphertext) {
"e... | require 'spec_helper'
module Voynich::ActiveRecord
describe DataKey do
before do
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:plaintext) {
'plaintext-data-key-generated-by-amazon-kms'
}
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:ciphertext) {
"e... | Update reencrypt spec to use fixed key string | Update reencrypt spec to use fixed key string
| Ruby | mit | degica/voynich,degica/voynich | ruby | ## Code Before:
require 'spec_helper'
module Voynich::ActiveRecord
describe DataKey do
before do
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:plaintext) {
'plaintext-data-key-generated-by-amazon-kms'
}
allow_any_instance_of(Voynich::KMSDataKeyClient).to receive(:cipherte... |
2680f9157474a644819ba025ce5e87698fe76d95 | README.md | README.md | [](https://gemnasium.com/paircolumbus/progress)
Pair Columbus Challenge Progress
| [](https://gemnasium.com/paircolumbus/progress)
[](https://codeclimate.com/github/paircolumbus/progress)
An easy way to check your progress on [Pair Columbus challeng... | Add information to the readme, along with a Code Climate badge | Add information to the readme, along with a Code Climate badge | Markdown | mit | paircolumbus/progress | markdown | ## Code Before:
[](https://gemnasium.com/paircolumbus/progress)
Pair Columbus Challenge Progress
## Instruction:
Add information to the readme, along with a Code Climate badge
## Code After:
[
## Usage
Docker:
```sh
$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e POSTGRES_DATABASE=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost schickling/postgres-bac... |
Restore a SQL backup from S3 to PostgresSQL
## Warning
This will potentially put your database in a very bad state or complete destroy your data, be very careful.
## Limitations
This is made to restore a backup made from postgres-backup-s3, if you backup came from somewhere else please check your format.
* Your s... | Update readme for postgres restore | Update readme for postgres restore
| Markdown | mit | schickling/dockerfiles,schickling/dockerfiles | markdown | ## Code Before:
Backup PostgresSQL to S3 (supports periodic backups)
## Usage
Docker:
```sh
$ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET=my-bucket -e S3_PREFIX=backup -e POSTGRES_DATABASE=dbname -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost schickl... |
7f73439ff6ce1aa8c7bbbda972d8eb3c9bea7682 | docs/adding-committers.md | docs/adding-committers.md |
Admins (nduca, sullivan) can add contributors to the project. There are three
steps:
1. Check that the person has signed the Contributor License Agreement.
You can check [here](http://go/check-cla). If they have not signed, please
redirect them to [this page][cla] and wait for them to sign before adding.
2. ... |
Admins (sullivan, benhenry, nednguyen) can add contributors to the project.
There are three steps:
1. Check that the person has signed the Contributor License Agreement.
You can check [here](http://go/check-cla). If they have not signed, please
redirect them to [this page][cla] and wait for them to sign befo... | Update admins in adding contributors docs. | Update admins in adding contributors docs.
I put myself first instead of using alphabetic order so that people bug
me by default. Hope that's okay!
Review-Url: https://chromiumcodereview.appspot.com/3010423002
| Markdown | bsd-3-clause | catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult | markdown | ## Code Before:
Admins (nduca, sullivan) can add contributors to the project. There are three
steps:
1. Check that the person has signed the Contributor License Agreement.
You can check [here](http://go/check-cla). If they have not signed, please
redirect them to [this page][cla] and wait for them to sign be... |
29ef482dc43b2f4927a02b13adf9b24402ddb949 | test_project/adam.py | test_project/adam.py |
def constant_number():
return 42
def constant_true():
return True
def constant_false():
return False
def unary_sub():
return -1
def unary_add():
return +1
def equals(vals):
def constraint(x, y):
return (x == y) ^ (x != y)
return all([constraint(x, y)
for x... |
def constant_number():
return 42
def constant_true():
return True
def constant_false():
return False
def unary_sub():
return -1
def unary_add():
return +1
def equals(vals):
def constraint(x, y):
return (x == y) ^ (x != y)
return all([constraint(x, y)
for x... | Modify the infinite loop function | Modify the infinite loop function
Don't use `while True` b/c BooleanReplacer breaks this function's
test. This is a bit ugly but until Issue #97 is fixed there is
no other way around it.
| Python | mit | sixty-north/cosmic-ray | python | ## Code Before:
def constant_number():
return 42
def constant_true():
return True
def constant_false():
return False
def unary_sub():
return -1
def unary_add():
return +1
def equals(vals):
def constraint(x, y):
return (x == y) ^ (x != y)
return all([constraint(x, y)
... |
2b27e9a96f1e339f17b916d2dc4e6f89090408be | Casks/doubletwist.rb | Casks/doubletwist.rb | cask :v1 => 'doubletwist' do
version '3.1.2'
sha256 '47975cc7517a6cf8c90362536a7feb53f0ff8af7d45866481d37cad2fcae4dac'
url "http://download.doubletwist.com/releases/mac/dT-#{version}-kronos-patch1-r11040/doubleTwist.dmg"
appcast 'http://download.doubletwist.com/mac/appcast.xml',
:sha256 => '63ad1487f... | cask :v1 => 'doubletwist' do
version '3.1.2'
sha256 '47975cc7517a6cf8c90362536a7feb53f0ff8af7d45866481d37cad2fcae4dac'
url "http://download.doubletwist.com/releases/mac/dT-#{version}-kronos-patch1-r11040/doubleTwist.dmg"
appcast 'http://download.doubletwist.com/mac/appcast.xml',
:sha256 => '63ad1487f... | Add zap stanza for doubleTwist | Add zap stanza for doubleTwist
| Ruby | bsd-2-clause | claui/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,kesara/homebrew-cask,syscrusher/homebrew-cask,hovancik/homebrew-cask,aki77/homebrew-cask,rkJun/homebrew-cask,johntrandall/homebrew-cask,kei-yamazaki/homebrew-cask,cclauss/homebrew-cask,Dremora/homebrew-cask,imgarylai/homebrew-cask,lucasmezencio/homebrew-cask... | ruby | ## Code Before:
cask :v1 => 'doubletwist' do
version '3.1.2'
sha256 '47975cc7517a6cf8c90362536a7feb53f0ff8af7d45866481d37cad2fcae4dac'
url "http://download.doubletwist.com/releases/mac/dT-#{version}-kronos-patch1-r11040/doubleTwist.dmg"
appcast 'http://download.doubletwist.com/mac/appcast.xml',
:sha2... |
b202b5d5c88e8c64a95fbb0f105e97cc7bb4de2a | README.md | README.md |
This package wraps the [libgeoip C library](http://www.maxmind.com/app/c) for
access from Go (golang).
Install with `go get https://github.com/abh/geoip` and use `godoc
geoip` to read the documentation.
There's a small example in the `ex/` subdirectory.
You can download the free [GeoLite
Country](http://www.maxmind... |
This package wraps the [libgeoip C library](http://www.maxmind.com/app/c) for
access from Go (golang). [](https://travis-ci.org/abh/geoip)
Install with `go get https://github.com/abh/geoip` and use `godoc
geoip` to read the documentation.
There's a sm... | Add build status image to readme | Add build status image to readme
| Markdown | mit | mailgun/geoip,abh/geoip,aziontech/geoip,aziontech/geoip,etix/geoip,abh/geoip,davemarchevsky/geoip,davemarchevsky/geoip,etix/geoip,mailgun/geoip | markdown | ## Code Before:
This package wraps the [libgeoip C library](http://www.maxmind.com/app/c) for
access from Go (golang).
Install with `go get https://github.com/abh/geoip` and use `godoc
geoip` to read the documentation.
There's a small example in the `ex/` subdirectory.
You can download the free [GeoLite
Country](ht... |
e386a9a6c4ffc9204011162f73ffa3d69f733bc5 | meta-oe/recipes-graphics/assimp/assimp_3.1.1.bb | meta-oe/recipes-graphics/assimp/assimp_3.1.1.bb | DESCRIPTION = "Open Asset Import Library is a portable Open Source library to import \
various well-known 3D model formats in a uniform manner."
HOMEPAGE = "http://www.assimp.org/"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bc4231a2268da8fc55525ad119638a87"
DEPENDS = "boost... | DESCRIPTION = "Open Asset Import Library is a portable Open Source library to import \
various well-known 3D model formats in a uniform manner."
HOMEPAGE = "http://www.assimp.org/"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bc4231a2268da8fc55525ad119638a87"
DEPENDS = "boost... | Add missing dependency on virtual/libgl | assimp: Add missing dependency on virtual/libgl
Signed-off-by: Tom Hochstein <d3f54c5ed448dd8f49d051a9857d0e3d7888d99c@nxp.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
| BitBake | mit | VCTLabs/meta-openembedded,openembedded/meta-openembedded,lgirdk/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,amery/meta-openembedded,moto-timo/meta-openembedded,rehsack/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,sigma-embedded/elito-org.openembedded.meta,VCTLabs/meta-openembed... | bitbake | ## Code Before:
DESCRIPTION = "Open Asset Import Library is a portable Open Source library to import \
various well-known 3D model formats in a uniform manner."
HOMEPAGE = "http://www.assimp.org/"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bc4231a2268da8fc55525ad119638a87"
... |
43b73cc7bb07bc5ad0ba7d177bca7483351d0e7b | README.md | README.md | Postfix Blackhole
==================
A simple postfix blackhole container.
Running
========
`docker run -it -p 25:25 feathj/postfix-blackhole`
Note that `VIRTUAL_HOST` environment variable can be added if run with dinghy client
`docker run -it -p 25:25 -e VIRTUAL_HOST=postfix-blackhole.docker feathj/postfix-blackhole... | Postfix Blackhole
==================
A simple postfix blackhole image. Useful for integration testing applications
without actually sending smtp messages.
Running
========
`$ docker run -it -p 25:25 feathj/postfix-blackhole`
Note that `VIRTUAL_HOST` environment variable can be added if run with dinghy client
`$ dock... | Add docker-compose sample to documentation | Add docker-compose sample to documentation
| Markdown | mit | feathj/docker-postfix-blackhole | markdown | ## Code Before:
Postfix Blackhole
==================
A simple postfix blackhole container.
Running
========
`docker run -it -p 25:25 feathj/postfix-blackhole`
Note that `VIRTUAL_HOST` environment variable can be added if run with dinghy client
`docker run -it -p 25:25 -e VIRTUAL_HOST=postfix-blackhole.docker feathj/p... |
401511e6a3457be06c9052c9b012b910d7eb31fd | src/main.rs | src/main.rs | fn main() {
let home = std::env::home_dir().unwrap();
let mut sbt_jar = std::path::PathBuf::from(home);
sbt_jar.push(".sbt/launchers/0.13.13/sbt-launch.jar");
let sbt_jar = sbt_jar;
use std::os::unix::process::CommandExt;
let err = std::process::Command::new("java")
.args(&["-Xms512m", "... | use std::ffi::{OsStr, OsString};
fn exec_runner<S: AsRef<OsStr>>(args: &[S]) {
use std::os::unix::process::CommandExt;
let err = std::process::Command::new(&args[0]).args(&args[1..]).exec();
println!("error: {}", err);
if let Some(err) = err.raw_os_error() {
std::process::exit(err);
}
s... | Define arg groups & extract exec_runner | Define arg groups & extract exec_runner
| Rust | apache-2.0 | dwijnand/sbtl,dwijnand/sbtl | rust | ## Code Before:
fn main() {
let home = std::env::home_dir().unwrap();
let mut sbt_jar = std::path::PathBuf::from(home);
sbt_jar.push(".sbt/launchers/0.13.13/sbt-launch.jar");
let sbt_jar = sbt_jar;
use std::os::unix::process::CommandExt;
let err = std::process::Command::new("java")
.args... |
bcce902e439e46770236d9e3c58143e2bdd1bd41 | manifest.json | manifest.json | {
"manifest_version": 2,
"name": "MercadoLibre Más Vendido",
"description": "Encontrá de manera rápida el artículo más vendido que estés buscando en MercadoLibre con esta extensión",
"version": "0.0.3",
"icons": {
"16": "assets/mercado-libre_16.png",
"48": "assets/mercado-libre_48.png",
"128": "as... | {
"manifest_version": 2,
"name": "MercadoLibre Más Vendido",
"description": "Encontrá de manera rápida el artículo más vendido que estés buscando en MercadoLibre con esta extensión",
"version": "0.0.3",
"icons": {
"16": "assets/mercado-libre_16.png",
"48": "assets/mercado-libre_48.png",
"128": "as... | Fix grey icon on block extensions | Fix grey icon on block extensions
| JSON | mit | Fenwil/MercadoLibre-MasVendidos,Fenwil/MercadoLibre-MasVendidos | json | ## Code Before:
{
"manifest_version": 2,
"name": "MercadoLibre Más Vendido",
"description": "Encontrá de manera rápida el artículo más vendido que estés buscando en MercadoLibre con esta extensión",
"version": "0.0.3",
"icons": {
"16": "assets/mercado-libre_16.png",
"48": "assets/mercado-libre_48.png"... |
8d9cf180e671d9e332afb2f3c4b04f4ddee6409a | packages/web-api/src/response/TeamProfileGetResponse.ts | packages/web-api/src/response/TeamProfileGetResponse.ts | /* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// ... | /* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// ... | Update the web-api response types using the latest source | Update the web-api response types using the latest source
| TypeScript | mit | slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk,slackapi/node-slack-sdk | typescript | ## Code Before:
/* eslint-disable */
/////////////////////////////////////////////////////////////////////////////////////////
// //
// !!! DO NOT EDIT THIS FILE !!! //
// ... |
72138e55465113d5ef0ec8eba2802d93c1bf694f | .travis.yml | .travis.yml | language: go
go:
- 1.7
- 1.8
script:
- go build $(glide novendor)
- go test -v $(glide novendor)
| language: go
go:
- 1.7
- 1.8
install:
- go get github.com/Masterminds/glide
script:
- go build $(glide novendor)
- go test -v $(glide novendor)
| Install glide prior to using it :) | Install glide prior to using it :)
| YAML | mit | scode/saltybox,scode/saltybox | yaml | ## Code Before:
language: go
go:
- 1.7
- 1.8
script:
- go build $(glide novendor)
- go test -v $(glide novendor)
## Instruction:
Install glide prior to using it :)
## Code After:
language: go
go:
- 1.7
- 1.8
install:
- go get github.com/Masterminds/glide
script:
- go build $(glide novendor)
- go tes... |
f9f08f3c758f0e77b4a1fd9b1972a7e02cbcd6ab | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
node_js:
- '7'
services:
- mysql
- mongodb
cache:
yarn: true
directories:
- node_modules
before_install:
- pip install --user codecov
- nvm install 7
- npm install -g yarn
- yarn install
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"
install:
- ... | language: java
jdk:
- oraclejdk8
node_js:
- '7'
services:
- mysql
addons:
apt:
sources:
- mongodb-upstart
- mongodb-3.0-precise
packages:
- mongodb-org-server
- mongodb-org-shell
cache:
yarn: true
directories:
- node_modules
before_install:
- pip install --user codecov
- nvm inst... | Use newer version of mongodb | Use newer version of mongodb
| YAML | apache-2.0 | OpenConext/OpenConext-manage,OpenConext/OpenConext-manage,OpenConext/OpenConext-manage | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
node_js:
- '7'
services:
- mysql
- mongodb
cache:
yarn: true
directories:
- node_modules
before_install:
- pip install --user codecov
- nvm install 7
- npm install -g yarn
- yarn install
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' ad... |
b75a9f947c5aa66f64abc6d5a95dedf1b5424c45 | src/app/aspect-view/aspect-view/aspect-view.component.html | src/app/aspect-view/aspect-view/aspect-view.component.html | <mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{description.friendly_name}}
</mat-panel-title>
</mat-expansion-panel-header>
<p>{{description.description}}</p>
<app-generic-form
[schemaUrl]="schemaUrl"
[layoutUrl]="layoutUrl"
(onSubmit)="submit($event)"... | <mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{description.friendly_name}}
</mat-panel-title>
</mat-expansion-panel-header>
<p>{{description.description}}</p>
<app-generic-form
[schemaUrl]="schemaUrl"
[layoutUrl]="layoutUrl"
(onSubmit)="submit($event)"... | Fix variables reference in aspect-view | Fix variables reference in aspect-view
| HTML | apache-2.0 | spectre-team/spectre,spectre-team/spectre,spectre-team/spectre | html | ## Code Before:
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
{{description.friendly_name}}
</mat-panel-title>
</mat-expansion-panel-header>
<p>{{description.description}}</p>
<app-generic-form
[schemaUrl]="schemaUrl"
[layoutUrl]="layoutUrl"
(onSubmit)=... |
64df4991a93471c2862c2371c33cf30e55769f06 | test/Misc/win32-macho.c | test/Misc/win32-macho.c | // Check that basic use of win32-macho targets works.
// REQUIRES: x86-registered-target
// RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s -o /dev/null
| // Check that basic use of win32-macho targets works.
// RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s
| Remove dev/null redirect and x86 backend requirement from new test. | Remove dev/null redirect and x86 backend requirement from new test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@210699 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | c | ## Code Before:
// Check that basic use of win32-macho targets works.
// REQUIRES: x86-registered-target
// RUN: %clang -fsyntax-only -target x86_64-pc-win32-macho %s -o /dev/null
## Instruction:
Remove dev/null redirect and x86 backend requirement from new test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@2... |
5da5cde87508e938657c49494bc1307a86c117bc | commands/yo.js | commands/yo.js | 'use strict';
module.exports = function yo(controller) {
controller.hears('yo', ['direct_mention'], function(bot, message) {
bot.reply(message, 'Yo!');
});
}
| 'use strict';
module.exports = function yo(controller) {
controller.hears('yo', ['direct_mention'], function(bot, message) {
console.log(message);
bot.reply(message, 'Yo!');
});
}
| Test on the Yo COmmand | Test on the Yo COmmand
| JavaScript | mit | remotebeta/codybot | javascript | ## Code Before:
'use strict';
module.exports = function yo(controller) {
controller.hears('yo', ['direct_mention'], function(bot, message) {
bot.reply(message, 'Yo!');
});
}
## Instruction:
Test on the Yo COmmand
## Code After:
'use strict';
module.exports = function yo(controller) {
controller.hears('yo'... |
e1afde59e7a518a748fcf381eb4d674689f21c14 | semantic.json | semantic.json | {
"base": "semantic/",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dist/components/",
... | {
"base": "semantic/",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dist/components/",
... | Add autoInstall option to prevent user prompt when running on automated deployment | Add autoInstall option to prevent user prompt when running on automated deployment
| JSON | mit | selcher/zumu,selcher/zumu | json | ## Code Before:
{
"base": "semantic/",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dis... |
ad92334950a29dbae2388c795bc086c71cc5649b | build/mocha-test.js | build/mocha-test.js | 'use strict';
require('../node_modules/babel-core/register');
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
reporter: 'dot',
... | 'use strict';
require('babel-register')({
presets: ['es2015']
});
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
reporter: 'dot... | Make mocha work with babel6 | Make mocha work with babel6
| JavaScript | apache-2.0 | projectfluent/fluent.js,projectfluent/fluent.js,stasm/l20n.js,projectfluent/fluent.js,zbraniecki/l20n.js,zbraniecki/fluent.js,zbraniecki/fluent.js,l20n/l20n.js | javascript | ## Code Before:
'use strict';
require('../node_modules/babel-core/register');
var src = [
'tests/lib/*.js',
'tests/lib/parser/properties/*.js',
'tests/lib/parser/l20n/*.js',
'tests/lib/resolver/*.js',
'tests/lib/context/*.js',
'tests/lib/env/*.js',
];
module.exports = {
dot: {
options: {
repo... |
5ecb4853fa33ed66f4c4e9544896638e36e613ca | metadata/org.ligi.passandroid.txt | metadata/org.ligi.passandroid.txt | Categories:Office
License:GPLv3
Web Site:https://github.com/ligi/PassAndroid/blob/HEAD/README.md
Source Code:https://github.com/ligi/PassAndroid
Issue Tracker:https://github.com/ligi/PassAndroid/issues
Auto Name:"PassAndroid"
Summary:View Passbook files
Description:
Displays Passbook (*.pkpass) files & shows the Barco... | Categories:Office
License:GPLv3
Web Site:https://github.com/ligi/PassAndroid/blob/HEAD/README.md
Source Code:https://github.com/ligi/PassAndroid
Issue Tracker:https://github.com/ligi/PassAndroid/issues
Auto Name:"PassAndroid"
Summary:View Passbook files
Description:
Displays Passbook (*.pkpass) files & shows the Barco... | Update CV of "PassAndroid" to 2.3.2 (232) | Update CV of "PassAndroid" to 2.3.2 (232)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Office
License:GPLv3
Web Site:https://github.com/ligi/PassAndroid/blob/HEAD/README.md
Source Code:https://github.com/ligi/PassAndroid
Issue Tracker:https://github.com/ligi/PassAndroid/issues
Auto Name:"PassAndroid"
Summary:View Passbook files
Description:
Displays Passbook (*.pkpass) files &... |
69f0f013b8cc6660b71b113b9d43840d558a395f | arm-eabi-4.8 | arm-eabi-4.8 | if [ -e Makefile ];
then
make -j10 distclean
fi;
#Make a clean install always
if [ -d /tmp/arm-eabi ]
then
rm -rf /tmp/arm-eabi
fi;
#Build Configuration
./configure --prefix=/tmp/arm-eabi --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-transform-name='s&^&arm-eabi-&' --with-gcc-ve... |
export CC=gcc-4.8;
export CXX=g++-4.8;
#Make a clean build
if [ -e Makefile ];
then
make -j10 distclean
fi;
#Make a clean install always
if [ -d /tmp/arm-eabi ]
then
rm -rf /tmp/arm-eabi
fi;
#Build Configuration
./configure --prefix=/tmp/arm-eabi --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linu... | Build with host gcc 4.8 | Build with host gcc 4.8
Change-Id: I2730ec563b3675c3ac9ab1b5e49bcc30c0675a88
| Groff | lgpl-2.1 | KangDroidSMProject/toolchain_build | groff | ## Code Before:
if [ -e Makefile ];
then
make -j10 distclean
fi;
#Make a clean install always
if [ -d /tmp/arm-eabi ]
then
rm -rf /tmp/arm-eabi
fi;
#Build Configuration
./configure --prefix=/tmp/arm-eabi --target=arm-eabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-transform-name='s&^&arm-eabi-... |
2212a85eb41bcb733b3d559f2146bab4add31771 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
# - 'pypy' # dbm test fails, remove for now...
before_install:
- sudo apt-get install strace
install:
- pip install .
- pip install -r dev_requirements.txt python-coveralls
# See https://github.com/travis-ci/travis-cookbooks/issues/1... | language: python
python:
- "2.7"
- "3.3"
- "3.4"
# - 'pypy' # dbm test fails, remove for now...
before_install:
- sudo apt-get install strace
install:
- pip install .
- pip install -r dev_requirements.txt python-coveralls
# See https://github.com/travis-ci/travis-cookbooks/issues/155
- sudo ... | Remove Python 3.2 from Travis CI build matrix | Remove Python 3.2 from Travis CI build matrix
Signed-off-by: Chris Warrick <de6f931166e131a07f31c96c765aee08f061d1a5@gmail.com>
| YAML | mit | gh0std4ncer/doit,Hinidu/doit,pydoit/doit,saimn/doit,wangpanjun/doit,JohannesBuchner/doit | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
# - 'pypy' # dbm test fails, remove for now...
before_install:
- sudo apt-get install strace
install:
- pip install .
- pip install -r dev_requirements.txt python-coveralls
# See https://github.com/travis-ci/travis-co... |
af663a8917ece3979512d3064b51229bbca4aaae | site/build.md | site/build.md | <!--
Copyright (c) 2007-2020 Pivotal Software, Inc.
All rights reserved. This program and the accompanying materials
are made available under the terms of the under the Apache License,
Version 2.0 (the "License”); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
... | <!--
Copyright (c) 2007-2020 Pivotal Software, Inc.
All rights reserved. This program and the accompanying materials
are made available under the terms of the under the Apache License,
Version 2.0 (the "License”); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
... | Convert one more tiny doc page to Markdown | Convert one more tiny doc page to Markdown
| Markdown | apache-2.0 | rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website | markdown | ## Code Before:
<!--
Copyright (c) 2007-2020 Pivotal Software, Inc.
All rights reserved. This program and the accompanying materials
are made available under the terms of the under the Apache License,
Version 2.0 (the "License”); you may not use this file except in compliance
with the License. You may obtain a copy of... |
713da615daffffea00446eb1c9c24d05df863f21 | README.md | README.md | Read about the details and goals for the app [here](https://docs.google.com/document/d/12kksmdvx_QYvset1-sVcDQbEyCf70-3HfdkIVY58d24/edit?usp=sharing)
## Ruby version
* Ruby 2.2.2
* Rails 4.2.6
## Database
* Postgresql
## Local Development
Clone this repo.
Bundle with `bundle install`
Create DB `createdb db/devel... | [](https://travis-ci.org/MidwestAccessCoalition/mac_app)
## Project Spec
Read about the details and goals for the app [here](https://docs.google.com/document/d/12kksmdvx_QYvset1-sVcDQbEyCf70-3HfdkIVY58d24/edit?usp=sharing)
## Ruby ... | Add info for setting and resetting test DB | Add info for setting and resetting test DB
| Markdown | mit | CorainChicago/mac_app,kathrynemary/mac_app,kathrynemary/mac_app,CorainChicago/mac_app,kathrynemary/mac_app,CorainChicago/mac_app | markdown | ## Code Before:
Read about the details and goals for the app [here](https://docs.google.com/document/d/12kksmdvx_QYvset1-sVcDQbEyCf70-3HfdkIVY58d24/edit?usp=sharing)
## Ruby version
* Ruby 2.2.2
* Rails 4.2.6
## Database
* Postgresql
## Local Development
Clone this repo.
Bundle with `bundle install`
Create DB `c... |
dfe28e2acd8c4042b552ca019beed218e65b20a6 | core/circle.yml | core/circle.yml | machine:
ruby:
version: 1.9.3-p392
services:
- elasticsearch
test:
override:
- bundle exec rspec spec-unit
- bundle exec rspec spec
- bundle exec rake konacha:load_poltergeist konacha:run
- bundle exec rspec spec/acceptance
- bundle exec rspec spec/screenshots
| machine:
ruby:
version: 1.9.3-p392
services:
- elasticsearch
test:
override:
- bundle exec rspec spec-unit
- bundle exec rspec spec
- bundle exec rake konacha:load_poltergeist konacha:run
- bundle exec rspec spec/acceptance
| Disable screenshot tests (for now) | Disable screenshot tests (for now)
| YAML | mit | daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core | yaml | ## Code Before:
machine:
ruby:
version: 1.9.3-p392
services:
- elasticsearch
test:
override:
- bundle exec rspec spec-unit
- bundle exec rspec spec
- bundle exec rake konacha:load_poltergeist konacha:run
- bundle exec rspec spec/acceptance
- bundle exec rspec spec/screenshots
## Instr... |
724acad12c5593242dbb1d5d58b6c8c49ea4e62a | lib/components/map/gridualizer.tsx | lib/components/map/gridualizer.tsx | import {Coords, DoneCallback, GridLayer as LeafletGridLayer} from 'leaflet'
import {GridLayer, GridLayerProps, withLeaflet} from 'react-leaflet'
type DrawTileFn = (
canvas: HTMLCanvasElement,
coords: Coords,
z: number
) => HTMLElement
class MutableGridLayer extends LeafletGridLayer {
drawTile: DrawTileFn
c... | import {Coords, DoneCallback, GridLayer as LeafletGridLayer} from 'leaflet'
import {GridLayer, GridLayerProps, withLeaflet} from 'react-leaflet'
export type DrawTileFn = (
canvas: HTMLCanvasElement,
coords: Coords,
z: number
) => void
class MutableGridLayer extends LeafletGridLayer {
drawTile: DrawTileFn
c... | Correct return type of DrawTileFn | Correct return type of DrawTileFn
| TypeScript | mit | conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui | typescript | ## Code Before:
import {Coords, DoneCallback, GridLayer as LeafletGridLayer} from 'leaflet'
import {GridLayer, GridLayerProps, withLeaflet} from 'react-leaflet'
type DrawTileFn = (
canvas: HTMLCanvasElement,
coords: Coords,
z: number
) => HTMLElement
class MutableGridLayer extends LeafletGridLayer {
drawTile:... |
7c68a1ccf2d0d5c05801a9b1db7c352d1980a852 | docs/ipc.md | docs/ipc.md |
There is no direct communication between the Listener and the Worker.
## Daemon / Master
The Daemon process opens a pipe. When the Master process starts, it writes its pid to the pipe, and the daemon reads it and exits. If the read fails, the daemon exits with an error status.
## `self_pipe`
Each process has a `se... |
`Resqued::ListenerProxy` opens a Unix domain socket to communicate between the Master and Listener processes. Resqued uses a socket (instead of a pipe) because the socket is bidirectional. Also, a socket can be transferred between processes more easily, which allows new listeners to reload the environment in a simple ... | Document the master <-> listener communication. | Document the master <-> listener communication.
| Markdown | mit | spraints/resqued,bkeepers/resqued,spraints/resqued,bkeepers/resqued | markdown | ## Code Before:
There is no direct communication between the Listener and the Worker.
## Daemon / Master
The Daemon process opens a pipe. When the Master process starts, it writes its pid to the pipe, and the daemon reads it and exits. If the read fails, the daemon exits with an error status.
## `self_pipe`
Each p... |
fa9663eedc829046d80d168f4a9a8ad59ed0cb82 | CHANGELOG.md | CHANGELOG.md |
* Initial release.
|
* Add an option for a detach_if callable, which can contain logic to
determine whether to remove an object from the pool.
### 0.1.0 (2014-02-14)
* Initial release.
| Update changelog for detach_if feature. | Update changelog for detach_if feature.
| Markdown | mit | chanks/pond | markdown | ## Code Before:
* Initial release.
## Instruction:
Update changelog for detach_if feature.
## Code After:
* Add an option for a detach_if callable, which can contain logic to
determine whether to remove an object from the pool.
### 0.1.0 (2014-02-14)
* Initial release.
|
855735bfa4319f8d8850a6a1eb6918262eadefec | install.sh | install.sh |
if [[ "$(uname)" == "Darwin" ]]; then
if ! command -v brew -f &> /dev/null; then
echo "No proper installer found. Please install homebrew"
exit 1
fi
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
sleep 300
# Source /etc/profile, it will set... |
if [[ "$(uname)" == "Darwin" ]]; then
if ! command -v brew -f &> /dev/null; then
echo "No proper installer found. Please install homebrew"
exit 1
fi
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
sleep 300
# Source /etc/profile, it will set... | Debug remove source etc profile | Debug remove source etc profile
| Shell | mit | ifyouseewendy/dotfiles,ifyouseewendy/dotfiles | shell | ## Code Before:
if [[ "$(uname)" == "Darwin" ]]; then
if ! command -v brew -f &> /dev/null; then
echo "No proper installer found. Please install homebrew"
exit 1
fi
INSTALLER="brew install"
elif [[ "$(uname)" == "Linux"* ]]; then
echo "--> Sleep to wait nix-env ready"
sleep 300
# Source /etc/prof... |
e24d07e42053207fc4b13339a3f5f86e144e3de9 | doc/ops-guide/source/ops_projects.rst | doc/ops-guide/source/ops_projects.rst | =================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in as an administr... | =================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in as an administr... | Fix typos and enhance description | Fix typos and enhance description
In section 'Adding Projects', 1) “demo.” below might need to
be changed to '“demo”.', 2) 'tenant-description' might be
better if changed to 'project-description'
Change-Id: Ib7a96c86ae95c95563aa51e9c4241103c922676e
Closes-bug: 1604670
| reStructuredText | apache-2.0 | openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals | restructuredtext | ## Code Before:
=================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in... |
06d9171b2244e4dd9d5e1883101d7ec3e05be4b2 | bitfield/apps.py | bitfield/apps.py | from django.apps import AppConfig
class BitFieldAppConfig(AppConfig):
name = 'bitfield'
verbose_name = "Bit Field"
| import django
from django.apps import AppConfig
django.setup()
class BitFieldAppConfig(AppConfig):
name = 'bitfield'
verbose_name = "Bit Field"
| Add django.setup to the AppConfig | Add django.setup to the AppConfig
| Python | apache-2.0 | Elec/django-bitfield,disqus/django-bitfield,joshowen/django-bitfield | python | ## Code Before:
from django.apps import AppConfig
class BitFieldAppConfig(AppConfig):
name = 'bitfield'
verbose_name = "Bit Field"
## Instruction:
Add django.setup to the AppConfig
## Code After:
import django
from django.apps import AppConfig
django.setup()
class BitFieldAppConfig(AppConfig):
name ... |
a76e5b8a199570e4b22c005ae5b380ebe74ff9d7 | package.json | package.json | {
"name": "@cognigy/cognigy-client",
"version": "0.0.1",
"description": "The cognigy client can be used to connect to the cognigy brain from a server project.",
"author": "Cognigy GmbH",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"scripts": {
"prepublish": "tsc",
"build": "ts... | {
"name": "@cognigy/cognigy-client",
"version": "0.0.3",
"description": "The cognigy client can be used to connect to the cognigy brain from a server project.",
"author": "Cognigy GmbH",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"scripts": {
"prepublish": "tsc",
"build": "ts... | Add type-definitions to dependencies instead of devDependencies so the consumer project installs the types. | Add type-definitions to dependencies instead of devDependencies so the consumer project installs the types.
| JSON | mit | Cognigy/CognigyClient | json | ## Code Before:
{
"name": "@cognigy/cognigy-client",
"version": "0.0.1",
"description": "The cognigy client can be used to connect to the cognigy brain from a server project.",
"author": "Cognigy GmbH",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"scripts": {
"prepublish": "tsc",
... |
3d0ca502c32f978847c20e815ac45dda58cf4f8e | app/views/search/_search_type_nav.html.haml | app/views/search/_search_type_nav.html.haml | %ul.search-type-nav.nav.nav-tabs
%li{class: ('active' unless @type == "users"), role: "presentation"}
= link_to search_path(q: @q, type: nil) do
Scrapers
%span.badge #{@unfiltered_scrapers_count}
%li{class: ('active' if @type == "users"), role: "presentation"}
= link_to search_path(q: @q, type: ... | %ul.search-type-nav.nav.nav-tabs
%li{class: ('active' unless @type == "users"), role: "presentation"}
= link_to search_path(q: @q, show: @show, type: nil) do
Scrapers
%span.badge #{@unfiltered_scrapers_count}
%li{class: ('active' if @type == "users"), role: "presentation"}
= link_to search_path(... | Maintain filter settings when navigating types | Maintain filter settings when navigating types
When your on the scrapers search results with 'all' selected on
the filters, if you move to users results and back, 'all' should
still be selected.
Add the 'show' param to the type navigation links.
Issue raised here
https://github.com/openaustralia/morph/pull/727#issue... | Haml | agpl-3.0 | openaustralia/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph | haml | ## Code Before:
%ul.search-type-nav.nav.nav-tabs
%li{class: ('active' unless @type == "users"), role: "presentation"}
= link_to search_path(q: @q, type: nil) do
Scrapers
%span.badge #{@unfiltered_scrapers_count}
%li{class: ('active' if @type == "users"), role: "presentation"}
= link_to search_pa... |
02fd94b32f82ca6a42078550455d037177fd55ab | app/initializers/storage-service.js | app/initializers/storage-service.js | export function initialize(container, application) {
application.inject('route', 'storage', 'service:storage');
application.inject('component', 'storage', 'service:storage');
}
export default {
name: 'storage-service',
initialize: initialize
};
| export function initialize() {
let application = arguments[1] || arguments[0];
application.inject('route', 'storage', 'service:storage');
application.inject('component', 'storage', 'service:storage');
}
export default {
name: 'storage-service',
initialize: initialize
};
| Remove Ember 2.1 deprecation warning | Remove Ember 2.1 deprecation warning
Updates the initializer to remove the deprecation warning in Ember 2.1 caused by having two arguments (container, application) in the initialize function. This uses the backwards compatible safe method described in the deprecation pages (http://emberjs.com/deprecations/v2.x/#toc_in... | JavaScript | mit | jerel/ember-storage,jerel/ember-storage | javascript | ## Code Before:
export function initialize(container, application) {
application.inject('route', 'storage', 'service:storage');
application.inject('component', 'storage', 'service:storage');
}
export default {
name: 'storage-service',
initialize: initialize
};
## Instruction:
Remove Ember 2.1 deprecation warn... |
56c5d78ce5e4cfc3c358029911bce9d15c0dba4c | nuxeo-cluster/docker-compose.yml | nuxeo-cluster/docker-compose.yml | web:
build: apache
ports:
- "8080:80"
links:
- redis
- nuxeo1
- nuxeo2
volumes:
- ./deploy:/deploy:ro
- ./logs:/logs:rw
nuxeo1:
build: nuxeo
hostname: nuxeo1
links:
- redis
- es
- db
environment:
distribution: lastbuild
volumes:
- ./deploy:/deploy:ro
- ./share:/share:rw
- ... | web:
build: apache
ports:
- "8080:80"
links:
- redis
- nuxeo1
- nuxeo2
volumes:
- ./deploy:/deploy:ro
- ./logs:/logs:rw
nuxeo1:
build: nuxeo
hostname: nuxeo1
links:
- redis
- es
- db
environment:
distribution: lastbuild
volumes:
- ./deploy:/deploy:ro
- ./share:/share:rw
- ... | Upgrade ES to 5.6.2 (+redis to 4.0.1) | NXBT-1917: Upgrade ES to 5.6.2 (+redis to 4.0.1)
| YAML | lgpl-2.1 | nuxeo/nuxeo-tools-docker,nuxeo/nuxeo-tools-docker | yaml | ## Code Before:
web:
build: apache
ports:
- "8080:80"
links:
- redis
- nuxeo1
- nuxeo2
volumes:
- ./deploy:/deploy:ro
- ./logs:/logs:rw
nuxeo1:
build: nuxeo
hostname: nuxeo1
links:
- redis
- es
- db
environment:
distribution: lastbuild
volumes:
- ./deploy:/deploy:ro
- ./shar... |
2aa7c1ad50ece6de98c226f7267cde63f563bda9 | client/mobile/utils/environment.js | client/mobile/utils/environment.js | var environments = {
devLocal: {server:'http://localhost', port:3000},
devDocker: {server:'http://192.168.99.100', port:3000},
devDeployed: {server:'http://45.55.171.230', port:3000},
production: {server:'http://45.55.134.204', port:3000}
}
module.exports = environments.devLocal;
| var environments = {
devLocal: {server:'http://localhost', port:3000},
devDocker: {server:'http://192.168.99.100', port:3000},
devDeployed: {server:'http://45.55.171.230', port:3000},
production: {server:'http://45.55.204.109', port:3000}
}
module.exports = environments.production;
| Add new production IP address | Add new production IP address
| JavaScript | mit | shanemcgraw/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll,absurdSquid/thumbroll,Jakeyrob/thumbroll,Jakeyrob/thumbroll,absurdSquid/thumbroll | javascript | ## Code Before:
var environments = {
devLocal: {server:'http://localhost', port:3000},
devDocker: {server:'http://192.168.99.100', port:3000},
devDeployed: {server:'http://45.55.171.230', port:3000},
production: {server:'http://45.55.134.204', port:3000}
}
module.exports = environments.devLocal;
## Instructio... |
a7a1d513003a65c5c9772ba75631247decff444d | utils/utils.py | utils/utils.py | from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.contrib.syndication.views import add_domain
from django.contrib.sites.models import get_current_site
def get_site_url(request, path):
current_site = get_current_site(request)
return add_domain(current_site.domain, path, request.i... | from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.contrib.syndication.views import add_domain
from django.contrib.sites.models import get_current_site
def get_site_url(request, path):
"""Retrieve current site site
Always returns as http (never https)
"""
current_site = g... | Make site url be http, not https | Make site url be http, not https
| Python | bsd-3-clause | uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam | python | ## Code Before:
from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.contrib.syndication.views import add_domain
from django.contrib.sites.models import get_current_site
def get_site_url(request, path):
current_site = get_current_site(request)
return add_domain(current_site.domain,... |
d29e87eeb062df4d52c0c744919be4cae770fc2c | testing/config/settings/__init__.py | testing/config/settings/__init__.py | from daiquiri.core.settings.django import *
from daiquiri.core.settings.celery import *
from daiquiri.core.settings.daiquiri import *
from daiquiri.core.settings.logging import *
from daiquiri.core.settings.vendor import *
from daiquiri.archive.settings import *
from daiquiri.auth.settings import *
from daiquiri.cones... | from daiquiri.core.settings.django import *
from daiquiri.core.settings.celery import *
from daiquiri.core.settings.daiquiri import *
from daiquiri.core.settings.logging import *
from daiquiri.core.settings.vendor import *
from daiquiri.archive.settings import *
from daiquiri.auth.settings import *
from daiquiri.cones... | Add registry settings to testing | Add registry settings to testing
| Python | apache-2.0 | aipescience/django-daiquiri,aipescience/django-daiquiri,aipescience/django-daiquiri | python | ## Code Before:
from daiquiri.core.settings.django import *
from daiquiri.core.settings.celery import *
from daiquiri.core.settings.daiquiri import *
from daiquiri.core.settings.logging import *
from daiquiri.core.settings.vendor import *
from daiquiri.archive.settings import *
from daiquiri.auth.settings import *
fro... |
a903ac0eaa54cea58c8e6dd0bc4078b9ddd4283f | lib/pomo/task.rb | lib/pomo/task.rb |
module Pomo
class Task
#--
# Mixins
#++
include Growl
##
# Task name.
attr_accessor :name
##
# Length in minutes.
attr_accessor :length
##
# Verbose task description.
attr_accessor :description
##
# Task completi... |
module Pomo
class Task
#--
# Mixins
#++
include Growl
##
# Task name.
attr_accessor :name
##
# Length in minutes.
attr_accessor :length
##
# Verbose task description.
attr_accessor :description
##
# Task completi... | Prepare progress bar for immediate printing. (A change to my commander lib). | Prepare progress bar for immediate printing. (A change to my commander lib).
| Ruby | mit | tj/pomo,totzyuta/pomo | ruby | ## Code Before:
module Pomo
class Task
#--
# Mixins
#++
include Growl
##
# Task name.
attr_accessor :name
##
# Length in minutes.
attr_accessor :length
##
# Verbose task description.
attr_accessor :description
##
... |
906247c6431b85c90f8aec8a7f4f73f1064abeba | mezzanine/pages/urls.py | mezzanine/pages/urls.py |
from django.conf.urls.defaults import patterns, url
# Page patterns.
urlpatterns = patterns("mezzanine.pages.views",
url("^admin_page_ordering/$", "admin_page_ordering",
name="admin_page_ordering"),
url("^(?P<slug>.*)/$", "page", name="page"),
)
|
from django.conf.urls.defaults import patterns, url
from django.conf import settings
# Page patterns.
urlpatterns = patterns("mezzanine.pages.views",
url("^admin_page_ordering/$", "admin_page_ordering",
name="admin_page_ordering"),
url("^(?P<slug>.*)" + ("/" if settings.APPEND_SLASH else "") + "$", "... | Use Page URLs without trailing slash when settings.APPEND_SLASH is False | Use Page URLs without trailing slash when settings.APPEND_SLASH is False
| Python | bsd-2-clause | biomassives/mezzanine,AlexHill/mezzanine,spookylukey/mezzanine,frankchin/mezzanine,saintbird/mezzanine,adrian-the-git/mezzanine,jjz/mezzanine,agepoly/mezzanine,geodesign/mezzanine,jerivas/mezzanine,saintbird/mezzanine,wyzex/mezzanine,Skytorn86/mezzanine,industrydive/mezzanine,ryneeverett/mezzanine,eino-makitalo/mezzani... | python | ## Code Before:
from django.conf.urls.defaults import patterns, url
# Page patterns.
urlpatterns = patterns("mezzanine.pages.views",
url("^admin_page_ordering/$", "admin_page_ordering",
name="admin_page_ordering"),
url("^(?P<slug>.*)/$", "page", name="page"),
)
## Instruction:
Use Page URLs without ... |
525e580d44a4f27accba27b7650e4d78e70f302d | src/List/ListItem.js | src/List/ListItem.js | import classNames from 'classnames';
import React, {PropTypes} from 'react';
import Util from '../Util/Util';
const CSSTransitionGroup = React.addons.CSSTransitionGroup;
export default class ListItem extends React.Component {
render() {
let defaultClass = ListItem.defaultProps.className;
let classes = clas... | import React, {PropTypes} from 'react';
import Util from '../Util/Util';
const CSSTransitionGroup = React.addons.CSSTransitionGroup;
export default class ListItem extends React.Component {
render() {
let Tag = this.props.tag;
// Uses all passed properties as attributes, excluding propTypes
let attribu... | Fix duplicated classnames being applied to list items | Fix duplicated classnames being applied to list items
| JavaScript | apache-2.0 | mesosphere/reactjs-components,mesosphere/reactjs-components | javascript | ## Code Before:
import classNames from 'classnames';
import React, {PropTypes} from 'react';
import Util from '../Util/Util';
const CSSTransitionGroup = React.addons.CSSTransitionGroup;
export default class ListItem extends React.Component {
render() {
let defaultClass = ListItem.defaultProps.className;
le... |
8a8094f935c926ff739459053fa8155909923bf3 | simplesamlphp/simplesamlphp/CVE-2016-3124.yaml | simplesamlphp/simplesamlphp/CVE-2016-3124.yaml | title: Information leakage issue in the sanitycheck module
link: https://simplesamlphp.org/security/201603-01
cve: CVE-2016-3124
branches:
master:
time: 2016-03-07 13:04:57
versions: ['<=1.14.1']
1.14:
time: 2016-03-07 13:06:15
versions: ['<=1.14... | title: Information leakage issue in the sanitycheck module
link: https://simplesamlphp.org/security/201603-01
cve: CVE-2016-3124
branches:
master:
time: 2016-03-07 13:04:57
versions: ['<=1.14.1']
reference: composer://simplesamlphp/simplesamlphp
| Remove the 1.14 branch, not really needed. | Remove the 1.14 branch, not really needed.
| YAML | unlicense | FriendsOfSilverStripe/security-advisories,markstory/security-advisories,Ocramius/security-advisories,FriendsOfPHP/security-advisories,kdambekalns/security-advisories,marcomenzel/security-advisories | yaml | ## Code Before:
title: Information leakage issue in the sanitycheck module
link: https://simplesamlphp.org/security/201603-01
cve: CVE-2016-3124
branches:
master:
time: 2016-03-07 13:04:57
versions: ['<=1.14.1']
1.14:
time: 2016-03-07 13:06:15
vers... |
496975c9986ef7fc4272a54e3060aa584ea4ee64 | README.md | README.md |
In January 2014 Github Team [announced Deployments API](http://developer.github.com/changes/2014-01-09-preview-the-new-deployments-api/) and you can use it with Capistrano 3.
## Installation
Add this line to your application's Gemfile:
gem 'capistrano-github'
gem 'octokit', github: 'octokit/octokit.rb', bra... |
In January 2014 Github Team [announced Deployments API](http://developer.github.com/changes/2014-01-09-preview-the-new-deployments-api/) and you can use it with Capistrano 3.
## Installation
Add this line to your application's Gemfile:
gem 'capistrano-github', github: 'capistrano/github'
gem 'octokit', gith... | Update the Readme to use Github repo. | Update the Readme to use Github repo. | Markdown | mit | 3scale/capistrano-github,net2b/capistrano-github,tjwallace/github,capistrano/github | markdown | ## Code Before:
In January 2014 Github Team [announced Deployments API](http://developer.github.com/changes/2014-01-09-preview-the-new-deployments-api/) and you can use it with Capistrano 3.
## Installation
Add this line to your application's Gemfile:
gem 'capistrano-github'
gem 'octokit', github: 'octokit/... |
d63a2695a603cf09cbec6fa44df04dc5107c24c3 | examples/blog/pages/2015-05-06-my-second-post/index.md | examples/blog/pages/2015-05-06-my-second-post/index.md | ---
title: My Second Post!
date: "2015-05-06T23:46:37.121Z"
layout: post
readNext: "/hi-folks/"
path: "/my-second-post/"
---
Wow! I love blogging so much already. Did you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat different, and the e... | ---
title: My Second Post!
date: "2015-05-06T23:46:37.121Z"
layout: post
readNext: "/hi-folks/"
path: "/my-second-post/"
---
Wow! I love blogging so much already.
Did you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat different, and the ... | Tweak wording on the fake blog post | Tweak wording on the fake blog post
| Markdown | mit | Khaledgarbaya/gatsby,okcoker/gatsby,ChristopherBiscardi/gatsby,gesposito/gatsby,gatsbyjs/gatsby,danielfarrell/gatsby,Khaledgarbaya/gatsby,fk/gatsby,gatsbyjs/gatsby,rothfels/gatsby,danielfarrell/gatsby,okcoker/gatsby,0x80/gatsby,gatsbyjs/gatsby,fson/gatsby,mingaldrichgan/gatsby,mingaldrichgan/gatsby,HaQadosch/gatsby,0x8... | markdown | ## Code Before:
---
title: My Second Post!
date: "2015-05-06T23:46:37.121Z"
layout: post
readNext: "/hi-folks/"
path: "/my-second-post/"
---
Wow! I love blogging so much already. Did you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat diff... |
d9cc135578fe736adb5fc3d407ae3ea94a76b066 | tests/router.js | tests/router.js | "use strict";
var Router = require("../router");
exports.testValidAcceptHeader = function (test) {
var results = Router.prototype._parseAcceptHeader("application/json");
test.deepEqual([{
"type": "application",
"subtype": "json",
"params": {}
}], results);
test.done();
};
| "use strict";
var Router = require("../router");
exports.testValidAcceptHeader = function (test) {
var results = Router.prototype._parseAcceptHeader("application/json");
test.deepEqual([{
"type": "application",
"subtype": "json",
"params": {}
}], results);
test.done();
};
exports.testValidAcceptHeaderWithP... | Add test for media type w/ params | Add test for media type w/ params
| JavaScript | isc | whymarrh/mattress | javascript | ## Code Before:
"use strict";
var Router = require("../router");
exports.testValidAcceptHeader = function (test) {
var results = Router.prototype._parseAcceptHeader("application/json");
test.deepEqual([{
"type": "application",
"subtype": "json",
"params": {}
}], results);
test.done();
};
## Instruction:
Ad... |
2b229fa7aa43f01d957c56bc60f48a6ec8cbdc57 | addons/account/static/src/xml/account.xml | addons/account/static/src/xml/account.xml | <?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">
<t t-extend="ViewManager">
<t t-jquery=".oe-view-manager-header" t-operation="before">
</t>
</t>
</templates>
| <?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">
<t t-extend="ViewManagerAction">
<t t-jquery=".oe_view_manager_header" t-operation="after">
<div class='.oe_extended_form_view'></div>
</t>
</t>
</templates>
| Extend ViewManagerAction to add fromview | [IMP] Extend ViewManagerAction to add fromview
bzr revid: rgaopenerp-20120611092619-6l8h7atm43fimeg6 | XML | agpl-3.0 | stephen144/odoo,frouty/odoo_oph,gavin-feng/odoo,tinkerthaler/odoo,nexiles/odoo,ChanduERP/odoo,rubencabrera/odoo,synconics/odoo,storm-computers/odoo,rschnapka/odoo,Eric-Zhong/odoo,microcom/odoo,BT-astauder/odoo,bguillot/OpenUpgrade,alexcuellar/odoo,factorlibre/OCB,microcom/odoo,leorochael/odoo,srimai/odoo,FlorianLudwig/... | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<!-- vim:fdl=1:
-->
<templates id="template" xml:space="preserve">
<t t-extend="ViewManager">
<t t-jquery=".oe-view-manager-header" t-operation="before">
</t>
</t>
</templates>
## Instruction:
[IMP] Extend ViewManagerAction to add fromv... |
ef3ab958728896112129881de1e50b5d7478b3a7 | lib/adhearsion-asr/plugin.rb | lib/adhearsion-asr/plugin.rb | module AdhearsionASR
class Plugin < Adhearsion::Plugin
config :adhearsion_asr do
min_confidence 0.5, desc: 'The default minimum confidence level used for all recognizer invocations.'
end
end
end
| module AdhearsionASR
class Plugin < Adhearsion::Plugin
config :adhearsion_asr do
min_confidence 0.5, desc: 'The default minimum confidence level used for all recognizer invocations.', transform: Proc.new { |v| v.to_f }
end
end
end
| Transform minimum confidence setting to a float | Transform minimum confidence setting to a float | Ruby | mit | adhearsion/adhearsion-asr | ruby | ## Code Before:
module AdhearsionASR
class Plugin < Adhearsion::Plugin
config :adhearsion_asr do
min_confidence 0.5, desc: 'The default minimum confidence level used for all recognizer invocations.'
end
end
end
## Instruction:
Transform minimum confidence setting to a float
## Code After:
module Adhe... |
85827d7f1932740e663f99891757ce552613a2c5 | README.md | README.md |
Ruby version: `2.0.0` or above.
Jekyll version: `3.3.1`
## Usage
### Development
```ruby
jekyll serve
```
### Production
```ruby
jekyll build
```
|
- Ruby version: `2.0.0` or above.
- Jekyll version: `3.3.1`
## Usage
### Development
```ruby
jekyll serve
```
### Production
```ruby
jekyll build
```
## Collaboration
Travis CI will build `master` branch and run `bash ./deploy.sh`, which would push the build result to `release` branch.
## License
Apache 2.0
| Update readme add collaboration & license | Update readme add collaboration & license
| Markdown | apache-2.0 | gocn/edu,gocn/edu,gocn/edu | markdown | ## Code Before:
Ruby version: `2.0.0` or above.
Jekyll version: `3.3.1`
## Usage
### Development
```ruby
jekyll serve
```
### Production
```ruby
jekyll build
```
## Instruction:
Update readme add collaboration & license
## Code After:
- Ruby version: `2.0.0` or above.
- Jekyll version: `3.3.1`
## Usage
### D... |
d1b7bcbca2be4eae3bf7572a8343a3bd69ce61a9 | src/qt/android/res/values/libs.xml | src/qt/android/res/values/libs.xml | <?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="load_local_libs">
<item>
arm64-v8a;libbitcoin-qt_arm64-v8a.so
</item>
<item>
armeabi-v7a;libbitcoin-qt_armeabi-v7a.so
</item>
<item>
x86_64;libbitcoin-qt_x86_64.so
</it... | <?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="load_local_libs">
<item>
arm64-v8a;libbitcoin-qt_arm64-v8a.so
</item>
<item>
armeabi-v7a;libbitcoin-qt_armeabi-v7a.so
</item>
<item>
x86_64;libbitcoin-qt_x86_64.so
</it... | Drop no longer supported Android architecture | qt: Drop no longer supported Android architecture
| XML | mit | mruddy/bitcoin,domob1812/bitcoin,particl/particl-core,bitcoin/bitcoin,namecoin/namecore,namecoin/namecoin-core,lateminer/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,kallewoof/bitcoin,particl/particl-core,bitcoinsSG/bitcoin,fujicoin/fujicoin,sstone/bitcoin,jamesob/bitcoin,bitcoin/bitcoin,bitcoin/bitcoin,bitcoinsSG/bitcoin,t... | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="load_local_libs">
<item>
arm64-v8a;libbitcoin-qt_arm64-v8a.so
</item>
<item>
armeabi-v7a;libbitcoin-qt_armeabi-v7a.so
</item>
<item>
x86_64;libbitcoin-qt_x86_64... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.