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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c41c07f14c6042d054300af946f02f6ff90a87c | trex/static/js/services.js | trex/static/js/services.js | // -*- coding: utf-8 -*-
//
// (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
//
// See LICENSE comming with the source of 'trex' for details.
//
'use strict';
var trexServices = angular.module('trex.services', ['ngResource']);
trexServices.factory('Conf', function($location) {
function getRootUrl() {
va... | // -*- coding: utf-8 -*-
//
// (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
//
// See LICENSE comming with the source of 'trex' for details.
//
'use strict';
var trexServices = angular.module('trex.services', ['ngResource']);
trexServices.factory('Conf', function($location) {
function getRootUrl() {
va... | Add users to Project angular ressource | Add users to Project angular ressource
| JavaScript | mit | bjoernricks/trex,bjoernricks/trex | javascript | ## Code Before:
// -*- coding: utf-8 -*-
//
// (c) 2014 Bjoern Ricks <bjoern.ricks@gmail.com>
//
// See LICENSE comming with the source of 'trex' for details.
//
'use strict';
var trexServices = angular.module('trex.services', ['ngResource']);
trexServices.factory('Conf', function($location) {
function getRootUr... |
9385f2be12a4042417f7930971af533b44c73ea0 | code/parallel_make.bash | code/parallel_make.bash | MAIN_TARGET=$1
LINES=$2
> $MAIN_TARGET.temp
TARGETS=$(make print-$MAIN_TARGET | sed 's/HE_AN_LIST=//g')
for T in $TARGETS
do
echo make $T >> $MAIN_TARGET.temp
done
split -l $LINES $MAIN_TARGET.temp
for X in x??
do
cat head.batch $X tail.batch > $X.qsub
qsub $X.qsub
rm $X.qsub $X
done
rm $MAIN_TARGET... | MAIN_TARGET=$1
LINES=$2
> $MAIN_TARGET.temp
TARGETS=$(make print-$MAIN_TARGET | sed 's/.*=//g')
for T in $TARGETS
do
echo make $T >> $MAIN_TARGET.temp
done
split -l $LINES $MAIN_TARGET.temp
for X in x??
do
cat head.batch $X tail.batch > $X.qsub
qsub $X.qsub
rm $X.qsub $X
done
rm $MAIN_TARGET.temp
| Generalize to other types of targets | Generalize to other types of targets
| Shell | mit | SchlossLab/Schloss_Cluster_PeerJ_2015,zhwcoder/Schloss_Cluster_PeerJ_2015,SchlossLab/Schloss_Cluster_PeerJ_2015,SchlossLab/Schloss_Cluster_PeerJ_2015,zhwcoder/Schloss_Cluster_PeerJ_2015 | shell | ## Code Before:
MAIN_TARGET=$1
LINES=$2
> $MAIN_TARGET.temp
TARGETS=$(make print-$MAIN_TARGET | sed 's/HE_AN_LIST=//g')
for T in $TARGETS
do
echo make $T >> $MAIN_TARGET.temp
done
split -l $LINES $MAIN_TARGET.temp
for X in x??
do
cat head.batch $X tail.batch > $X.qsub
qsub $X.qsub
rm $X.qsub $X
done
... |
3edab176373cd2d07e722b89a4e4ca30e26fe7ac | Setup/InstallSchema.php | Setup/InstallSchema.php | <?php
/**
* Raguvis CmsNavigation
*/
namespace Raguvis\CmsNavigation\Setup;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
class InstallSchema implements InstallSchemaInterface
{
/**
* Add Include in... | <?php
/**
* Raguvis CmsNavigation
*/
namespace Raguvis\CmsNavigation\Setup;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
class InstallSchema implements InstallSchemaInterface
{
/**
* Add Include in... | Fix cms_page field to have default value | Fix cms_page field to have default value
Otherwise when cms page is added via code it will fail with error 'Integrity constraint violation: 1048 Column 'show_in_navigation' cannot be null' | PHP | mit | valdemaras-zilys/magento2-CmsNavigation | php | ## Code Before:
<?php
/**
* Raguvis CmsNavigation
*/
namespace Raguvis\CmsNavigation\Setup;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
class InstallSchema implements InstallSchemaInterface
{
/**
... |
6cf484c9a3ce5aa141363ae67c58fa94d055a105 | app/assets/javascripts/app/views/bookmarklet_view.js | app/assets/javascripts/app/views/bookmarklet_view.js | app.views.Bookmarklet = Backbone.View.extend({
separator: ' - ',
initialize: function(opts) {
// init a standalone publisher
app.publisher = new app.views.Publisher({standalone: true});
app.publisher.on('publisher:add', this._postSubmit, this);
app.publisher.on('publisher:sync', this._postSuccess,... | app.views.Bookmarklet = Backbone.View.extend({
separator: ' - ',
initialize: function(opts) {
// init a standalone publisher
app.publisher = new app.views.Publisher({standalone: true});
app.publisher.on('publisher:add', this._postSubmit, this);
app.publisher.on('publisher:sync', this._postSuccess,... | Make sure publisher is totally hidden in bookmarklet after post success | Make sure publisher is totally hidden in bookmarklet after post success
| JavaScript | agpl-3.0 | geraspora/diaspora,jhass/diaspora,Flaburgan/diaspora,diaspora/diaspora,Amadren/diaspora,diaspora/diaspora,geraspora/diaspora,despora/diaspora,Amadren/diaspora,Amadren/diaspora,Muhannes/diaspora,SuperTux88/diaspora,jhass/diaspora,KentShikama/diaspora,spixi/diaspora,jhass/diaspora,SuperTux88/diaspora,SuperTux88/diaspora,... | javascript | ## Code Before:
app.views.Bookmarklet = Backbone.View.extend({
separator: ' - ',
initialize: function(opts) {
// init a standalone publisher
app.publisher = new app.views.Publisher({standalone: true});
app.publisher.on('publisher:add', this._postSubmit, this);
app.publisher.on('publisher:sync', th... |
3599eb16dbe856a31d1ce7a58cdd3b7b26c502f3 | lib/relax/helpers.rb | lib/relax/helpers.rb | module Relax
module Helpers
def relax_tag
if defined?(@relax) && @relax
"<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe
end
end
def relax_snippet
if defined?(@relax) && @relax
"Relax.replace(#{@relax});".html_safe
end
end
def ... | module Relax
module Helpers
def relax_tag
if defined?(@relax) && @relax
"<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe
end
end
def relax_snippet
if defined?(@relax) && @relax
snippet = @relax.gsub(/\;$/, '')
"Relax.replace(#{snippet... | Fix ie11 can't have semicolons inside parenthesis | Fix ie11 can't have semicolons inside parenthesis
| Ruby | mit | jho406/Breezy,jho406/Relax,jho406/Relax,jho406/Breezy,jho406/Relax,jho406/Breezy | ruby | ## Code Before:
module Relax
module Helpers
def relax_tag
if defined?(@relax) && @relax
"<script type='text/javascript'>Relax.replace(#{@relax});</script>".html_safe
end
end
def relax_snippet
if defined?(@relax) && @relax
"Relax.replace(#{@relax});".html_safe
end
... |
28a9e730b076ca598162a7699380ce3fb2b47095 | .travis.yml | .travis.yml | language: python
python:
- "3.6"
cache:
pip: true
directories:
- $HOME/.gimme
- $HOME/.imageio
before_install:
- gimme 1.6
- export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64"
- export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR"
- $HOME/.gimme/versions/go1.6.linux.amd64... | language: python
# python:
# - "3.7"
# Workaround for Python 3.7
# https://github.com/travis-ci/travis-ci/issues/9815
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
cache:
pip: true
directories:
- $HOME/.gimme
- $HOME/.imageio
before_install:
- gimme 1.6
- export GOROOT="$HOME/.g... | Update Travis CI Python version to 3.7 using workaround | Update Travis CI Python version to 3.7 using workaround
https://github.com/travis-ci/travis-ci/issues/9815 | YAML | mit | Harmon758/Harmonbot,Harmon758/Harmonbot | yaml | ## Code Before:
language: python
python:
- "3.6"
cache:
pip: true
directories:
- $HOME/.gimme
- $HOME/.imageio
before_install:
- gimme 1.6
- export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64"
- export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR"
- $HOME/.gimme/versions/g... |
b29f8ce14633361681956201dfeef7007a46230f | bin/blueoak-server.js | bin/blueoak-server.js | /*
* Copyright (c) 2015-2016 PointSource, LLC.
* MIT Licensed
*/
var server = require('../');
server.init({
appDir: process.cwd()
}, function(err) {
if (err) {
console.warn('Startup failed', err);
} else {
console.log('started');
}
});
| /*
* Copyright (c) 2015-2016 PointSource, LLC.
* MIT Licensed
*/
var server = require('../');
server.init({
appDir: process.cwd()
}, function(err) {
if (err) {
console.warn('Startup failed', err);
} else {
var logger = this.services.get('logger');
logger.info('Server started');
... | Make server launcher use logger for server startup message | Make server launcher use logger for server startup message
| JavaScript | mit | BlueOakJS/blueoak-server | javascript | ## Code Before:
/*
* Copyright (c) 2015-2016 PointSource, LLC.
* MIT Licensed
*/
var server = require('../');
server.init({
appDir: process.cwd()
}, function(err) {
if (err) {
console.warn('Startup failed', err);
} else {
console.log('started');
}
});
## Instruction:
Make server la... |
1012db43c5db570d7d896bfc9e13859c9428250c | app/components/legend-detail/template.hbs | app/components/legend-detail/template.hbs | <iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}}
<ul>
{{#each legend.reviews as |review|}}
{{review-tile review=review}}
<br>
on {{moment-format review.createdAt 'LLL'}}
{{/each}}
</ul>
| <iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}}
<ul>
{{#each legend.reviews as |review|}}
{{review-tile review=review}}
<small>
on {{moment-format review.createdAt 'LLL'}}
</small>
{{/each}}
</ul>
| Add Tag for Timestamp Put Timestamp in Small Tag to match author of the review | Add Tag for Timestamp
Put Timestamp in Small Tag to match author of the review
| Handlebars | mit | mwerumuchai/traffic-tracker,mwerumuchai/traffic-tracker | handlebars | ## Code Before:
<iframe src= {{legend.link}} width="300" height="480" frameborder="0" style="border:0" allowfullscreen></iframe> {{legend.legendName}}
<ul>
{{#each legend.reviews as |review|}}
{{review-tile review=review}}
<br>
on {{moment-format review.createdAt 'LLL'}}
{{/each}}
</ul>
## Instruction... |
9bd1c4c18d76b8e785794d7ae7845f211b5cc5c7 | Slim/ResolveCallable.php | Slim/ResolveCallable.php | <?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim;
use Interop\Container\ContainerInterface;
/**
* ResolveCallab... | <?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim;
use Interop\Container\ContainerInterface;
/**
* ResolveCallab... | Tidy up resolveCallable() as $this is never an instance of ContainerInterface | Tidy up resolveCallable() as $this is never an instance of ContainerInterface
| PHP | mit | juliangut/Slim,iinux/Slim,akrabat/Slim,AndrewCarterUK/Slim,iinux/Slim,RealSelf/Slim,JoeBengalen/Slim,mnapoli/Slim,feryardiant/slim,Sam-Burns/Slim,slimphp/Slim,dopesong/Slim,samsonasik/Slim,jaapverloop/Slim,foxyantho/Slim,designermonkey/Slim,iinux/Slim,opengeek/Slim,somjit2514/basic | php | ## Code Before:
<?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim;
use Interop\Container\ContainerInterface;
/**
... |
7cb98b8af5ddae7b967e19c906b282881b65b8b9 | stylesheets/heat_tamperenoise.css | stylesheets/heat_tamperenoise.css | html, body { height: 100%; padding: 0; margin: 0; }
#div1, #div2, #div3, #div4 { width: 50%; height: 50%; float: left; }
#div1 { background: #DDD; }
#div2 { background: #AAA; }
#div3 { background: #777; }
#div4 { background: #444; }
.feature_info {
padding: 6px 8px;
font: 24px/28px Arial, Helvetica, sans-serif... | html, body { height: 100%; padding: 0; margin: 0; }
#div1, #div2, #div3, #div4 { float: left; }
#div1 { background: #DDD; width: 49.5%; height: 49.5%; }
#div2 { background: #AAA; width: 49.5%; height: 49.5%; margin-left: 1%; }
#div3 { background: #777; width: 49.5%; height: 49.5%; margin-top: 1%; }
#div4 { background: ... | Add small margin between maps | Add small margin between maps
| CSS | mit | ernoma/ernoma.github.io,ernoma/ernoma.github.io,ernoma/ernoma.github.io,ernoma/ernoma.github.io | css | ## Code Before:
html, body { height: 100%; padding: 0; margin: 0; }
#div1, #div2, #div3, #div4 { width: 50%; height: 50%; float: left; }
#div1 { background: #DDD; }
#div2 { background: #AAA; }
#div3 { background: #777; }
#div4 { background: #444; }
.feature_info {
padding: 6px 8px;
font: 24px/28px Arial, Helve... |
f767b7051afee3fe494610d22b31e92d35493218 | examples/tas-server.go | examples/tas-server.go | package main
import (
"log"
"runtime"
)
import (
"github.com/chango/tas/tas"
)
func main() {
runtime.GOMAXPROCS(10)
tasConfig := tas.NewDefaultTASConfig()
svr, err := tas.NewTASServer(tasConfig)
if err != nil {
log.Println("Failed to start TAS: %s", err)
return
}
svr.Run()
}
| package main
import (
"log"
)
import (
"github.com/chango/tas/tas"
)
func main() {
tasConfig := tas.NewDefaultTASConfig()
svr, err := tas.NewTASServer(tasConfig)
if err != nil {
log.Println("Failed to start TAS:", err)
return
}
svr.Run()
}
| Remove runtime GOMAXPROCS from example and fix error print if TAS server cannot be created | Remove runtime GOMAXPROCS from example and fix error print if TAS server cannot be created
| Go | mit | oldmantaiter/tas,chango/tas,oldmantaiter/tas,chango/tas | go | ## Code Before:
package main
import (
"log"
"runtime"
)
import (
"github.com/chango/tas/tas"
)
func main() {
runtime.GOMAXPROCS(10)
tasConfig := tas.NewDefaultTASConfig()
svr, err := tas.NewTASServer(tasConfig)
if err != nil {
log.Println("Failed to start TAS: %s", err)
return
}
svr.Run()
}
## Instruct... |
28d95e261ba5bdf94f480fe52b74b233005225e9 | .bazelci/build_bazel_binaries.yml | .bazelci/build_bazel_binaries.yml | ---
platforms:
centos7:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1604:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1804:
build_targets:
- "//src:bazel"... | ---
platforms:
centos7:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1604:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1804:
build_targets:
- "//src:bazel"... | Add Ubuntu 20.04 platform, but do not test it in CI yet | Add Ubuntu 20.04 platform, but do not test it in CI yet
This seems like it might be a prerequisite for adding a ubuntu 20.04 platform to bazelci, based on this CI failure:
https://github.com/bazelbuild/continuous-integration/pull/988
Closes #11630.
PiperOrigin-RevId: 333290900
| YAML | apache-2.0 | bazelbuild/bazel,cushon/bazel,cushon/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,katre/bazel,perezd/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,davidzchen/bazel,perezd/bazel,twitter-forks/bazel,katre/bazel,perezd/bazel,safarmer/bazel,safarmer/bazel,perezd/bazel,perezd/bazel,bazelbuild/bazel,ba... | yaml | ## Code Before:
---
platforms:
centos7:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1604:
build_targets:
- "//src:bazel"
- "//src:bazel_nojdk"
build_flags:
- "-c"
- "opt"
ubuntu1804:
build_targets:
... |
9004da9bd159e66e4e6a58e5379502e24fffd80e | app/views/settings/_services.haml | app/views/settings/_services.haml | .card
.card-body
= t(".services", count: services.count)
- APP_CONFIG["sharing"].each do |service, service_options|
- if service_options["enabled"] && services.none? { |x| x.provider == service.to_s }
%p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, c... | .card
.card-body
= t(".services", count: services.count)
- APP_CONFIG["sharing"].each do |service, service_options|
- if service_options["enabled"] && services.none? { |x| x.provider == service.to_s }
%p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, c... | Disable Turbo on Service Settings | Disable Turbo on Service Settings
| Haml | agpl-3.0 | Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring | haml | ## Code Before:
.card
.card-body
= t(".services", count: services.count)
- APP_CONFIG["sharing"].each do |service, service_options|
- if service_options["enabled"] && services.none? { |x| x.provider == service.to_s }
%p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", ... |
82c8cc9779abf952d3558cdc06692a5cb78340dc | survey_creation/2017/zaf/listAnswers/funding.csv | survey_creation/2017/zaf/listAnswers/funding.csv | I volunteer my time
Donation button
Crowdfunding (one-time)
Crowdfunding (recurring)
Books & merchandise
Advertising & sponsorships
Industry support
Consulting & services
Grants
SaaS
Membership
Dual license
Open core
Foundations & consortiums
Venture capital
Trademark licensing & franchising
| I volunteer my time
Donation button
Crowdfunding (one-time)
Crowdfunding (recurring)
Books & merchandise
Advertising & sponsorships
Industry support
Consulting & services
Grants
SaaS
Membership
Dual license
Open core
Foundations & consortiums
Venture capital
Trademark licensing & franchising
Not applicable
| Add NA based on fund4 change in question | Add NA based on fund4 change in question | CSV | bsd-3-clause | softwaresaved/international-survey | csv | ## Code Before:
I volunteer my time
Donation button
Crowdfunding (one-time)
Crowdfunding (recurring)
Books & merchandise
Advertising & sponsorships
Industry support
Consulting & services
Grants
SaaS
Membership
Dual license
Open core
Foundations & consortiums
Venture capital
Trademark licensing & franchising
## Instruc... |
b84af83df8ebc9ac5ce05cf866a159ea1ee758a5 | .github/workflows/build.yml | .github/workflows/build.yml | name: Node.js Builds
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- node-version: 12.x
- node-version: 14.x
status: "LTS"
- node-version: 16.x
steps:
- uses: actions/checkout@v2
- name: Use Node.... | name: Node.js Builds
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- node-version: 12.x
- node-version: 14.x
- node-version: 16.x
status: "LTS"
steps:
- uses: actions/checkout@v2
- name: Use Node.... | Change LTS to Node.js 16.x | Change LTS to Node.js 16.x
Signed-off-by: Remy Suen <553f7e7fc51e9ff47ae89d5a0ebd06651241b998@gmail.com>
| YAML | mit | rcjsuen/dockerfile-language-server-nodejs,rcjsuen/dockerfile-language-server-nodejs | yaml | ## Code Before:
name: Node.js Builds
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- node-version: 12.x
- node-version: 14.x
status: "LTS"
- node-version: 16.x
steps:
- uses: actions/checkout@v2
-... |
d4c77fddf2db051e43e512a08f6f9438eaad8957 | pillars/profile/common/system_maven_artifacts/compare_order.sh | pillars/profile/common/system_maven_artifacts/compare_order.sh | grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt
grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort > required.order.txt
echo "Compare order of entries in the files using one of the command below:" 1>&2
echo " meld existing.order.txt required.... |
set -e
set -u
# This is a helper script to generate required and existing order
# of items inside `artifact_descriptors.sls` file.
# Note that duplicates also cause error code in addition to unordered ones.
# The search is done for strings (keys) containing GROUP_ID:ARTIFACT_ID.
grep -r '^[^:][^:]*:[^:][^:]*:[[:spac... | Add exit code if artifacts not ordered or dup-ed | Add exit code if artifacts not ordered or dup-ed
| Shell | apache-2.0 | uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states | shell | ## Code Before:
grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls > existing.order.txt
grep -r '^[^:][^:]*:[^:][^:]*:[[:space:]]*$' artifact_descriptors.sls | sort > required.order.txt
echo "Compare order of entries in the files using one of the command below:" 1>&2
echo " meld existing.ord... |
73c26ecb3c13040bf7df2cf65a0fae3895ffe851 | README.md | README.md | Demo project: AngularJS component to manage tasks between multiple users
[](https://travis-ci.org/stophi-dev/NgTeamTask)
## How to run this project
You need git and NodeJS installed on your computer.
###1. Clone the git repository
```b... | Demo project: AngularJS component to manage tasks between multiple users<br />
[](https://travis-ci.org/stophi-dev/NgTeamTask)
(Currently only checks if compilation of SASS file is sucessful)
## How to run this project
You need git and... | Add description for travis build | Add description for travis build | Markdown | mit | stophi-dev/NgTeamTask,stophi-dev/NgTeamTask | markdown | ## Code Before:
Demo project: AngularJS component to manage tasks between multiple users
[](https://travis-ci.org/stophi-dev/NgTeamTask)
## How to run this project
You need git and NodeJS installed on your computer.
###1. Clone the git... |
321f5baef6abbe4a43acc55e3ae8c81367e0cd9a | README.md | README.md | SDL2 Pong
==========
Simple implementation of pong using SDL2.0
This is a single player game with the second paddle being controlled by an *extremely* simple AI.

Controls
--------
* Up - move up
* Down - move down
* Escape - Exit
Requirements
------------
You require the SDL2... | SDL2 Pong
==========
Simple implementation of pong using SDL2.0
This is a single player game with the second paddle being controlled by an *extremely* simple AI.

Controls
--------
* Up - move up
* Down - move down
* Escape - Exit
Controller Support
------------------
The game... | Add note about controller support | Add note about controller support
Haptic feedback also included | Markdown | mit | MichaelAquilina/SDL2-Pong | markdown | ## Code Before:
SDL2 Pong
==========
Simple implementation of pong using SDL2.0
This is a single player game with the second paddle being controlled by an *extremely* simple AI.

Controls
--------
* Up - move up
* Down - move down
* Escape - Exit
Requirements
------------
You ... |
387c77585909e73773d1c97a782667f951cda67d | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3.1
matrix:
allow_failures:
- rvm: 1.9.3
- rvm: 2.0.0
before_install:
# this is a fix to get rng-tools to work in travis-ci
- sudo apt-get update -qq
- sudo apt-get install --yes rng-tools
- sudo rm -f /dev/random
- sudo mknod -m ... | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
matrix:
allow_failures:
- rvm: 1.9.3
- rvm: 2.0.0
before_install:
# this is a fix to get rng-tools to work in travis-ci
- sudo apt-get update -qq
- sudo apt-get install --yes rng-tools
- sudo rm -f /dev/rando... | Test against Ruby 2.4 and .5 | [CI] Test against Ruby 2.4 and .5 | YAML | lgpl-2.1 | ueno/ruby-gpgme,ueno/ruby-gpgme,ueno/ruby-gpgme | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.10
- 2.2.5
- 2.3.1
matrix:
allow_failures:
- rvm: 1.9.3
- rvm: 2.0.0
before_install:
# this is a fix to get rng-tools to work in travis-ci
- sudo apt-get update -qq
- sudo apt-get install --yes rng-tools
- sudo rm -f /dev/random
... |
36953e58cc2825de5315341f818b65fe22ba0b28 | install/DoctrineMigrations/Version20110711161043.php | install/DoctrineMigrations/Version20110711161043.php | <?php
namespace DoctrineMigrations;
/*
update cc_files table to include to "directory" column as well as add foreign key relation to
cc_music_dirs table.
*/
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110711161043 extends AbstractMigration
{
public function up... | <?php
namespace DoctrineMigrations;
/*
update cc_files table to include to "directory" column as well as add foreign key relation to
cc_music_dirs table.
*/
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110711161043 extends AbstractMigration
{
public function up... | Upgrade script for converting stor directory to new format | CC-2279: Upgrade script for converting stor directory to new format
-almost there...
| PHP | agpl-3.0 | thnkloud9/Airtime,sourcefabric/Airtime,comiconomenclaturist/libretime,sourcefabric/airtime,thnkloud9/Airtime,LibreTime/libretime,ReganDryke/airtime,thnkloud9/Airtime,LibreTime/libretime,Ryex/airtime,radiorabe/airtime,Ryex/airtime,radiorabe/airtime,radiorabe/airtime,sourcefabric/airtime,justvanbloom/airtime,Lapotor/libr... | php | ## Code Before:
<?php
namespace DoctrineMigrations;
/*
update cc_files table to include to "directory" column as well as add foreign key relation to
cc_music_dirs table.
*/
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
class Version20110711161043 extends AbstractMigration
{
pu... |
d3291512db02304c0948992436817d36f86046fd | stdlib/public/SDK/simd/CMakeLists.txt | stdlib/public/SDK/simd/CMakeLists.txt | add_swift_library(swiftsimd SHARED IS_STDLIB
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin
INSTALL_IN_COMPONENT stdlib)
| add_swift_library(swiftsimd IS_SDK_OVERLAY
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin)
| Make the 'simd' module build like the rest of the overlays. | Make the 'simd' module build like the rest of the overlays.
At one point we were considering it to be a replacement rather than an
overlay, but that's not where we are today. We can revisit that later.
Necessary for next commit.
Swift SVN r29438
| Text | apache-2.0 | airspeedswift/swift,djwbrown/swift,apple/swift,hughbe/swift,hughbe/swift,xedin/swift,IngmarStein/swift,calebd/swift,tinysun212/swift-windows,JaSpa/swift,tardieu/swift,glessard/swift,emilstahl/swift,kentya6/swift,aschwaighofer/swift,arvedviehweger/swift,gregomni/swift,tjw/swift,return/swift,bitjammer/swift,jmgc/swift,ar... | text | ## Code Before:
add_swift_library(swiftsimd SHARED IS_STDLIB
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin
INSTALL_IN_COMPONENT stdlib)
## Instruction:
Make the 'simd' module build like the rest of the overlays.
At one point we were considering it to be a replac... |
3bfdd5244238c8c4779c7e95ba685074f98a3c87 | templates/default/server.xml.erb | templates/default/server.xml.erb | <server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
hos... | <server description="<%= @description %>">
<!-- Enable features -->
<% if @features != nil && @features.size > 0 -%>
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% end -%>
<% if @httpendpoints != nil && @httpendpoints.size ... | Update template to make elements and attributes optional. | Update template to make elements and attributes optional.
| HTML+ERB | apache-2.0 | WASdev/ci.chef.wlp,WASdev/ci.chef.wlp | html+erb | ## Code Before:
<server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
... |
d23173dc556e3565ee1e2414d1bcab5efe962eb1 | _guides/https.md | _guides/https.md | ---
layout: documentation
title: Protect The Lounge with HTTPS
---
In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy.
First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org/) is a free, au... | ---
layout: documentation
title: Protect The Lounge with HTTPS
---
In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy.
{: .alert.alert-warning role="alert"}
The Lounge only has basic HTTPS support, and will need ... | Add a note to recommend using a reverse proxy for advanced HTTPS support | Add a note to recommend using a reverse proxy for advanced HTTPS support
| Markdown | mit | thelounge/thelounge.github.io,thelounge/thelounge.github.io,thelounge/thelounge.github.io | markdown | ## Code Before:
---
layout: documentation
title: Protect The Lounge with HTTPS
---
In this guide, we will see how to easily configure The Lounge to be served over [HTTPS](https://en.wikipedia.org/wiki/HTTPS) for better security and privacy.
First, you need an HTTPS certificate. [Let's Encrypt](https://letsencrypt.org... |
5da75a7bbb2f2b0551b207b6caa635ee28aa6378 | omnibus-test.sh | omnibus-test.sh |
/opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2" |
version=$(cat VERSION)
curl "https://packages.chef.io/files/unstable/omnibus-gcc/${version}/el/6/omnibus-gcc-${version}-1.el6.x86_64.rpm" -O
sudo yum install "omnibus-gcc-${version}-1.el6.x86_64.rpm" -y
rm -f "omnibus-gcc-${version}-1.el6.x86_64.rpm"
/opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2" | Fix test to pull rpm | Fix test to pull rpm
Signed-off-by: Scott Hain <54f99c3933fb11a028e0e31efcf2f4c9707ec4bf@chef.io>
| Shell | apache-2.0 | scotthain/omnibus-gcc,scotthain/omnibus-gcc | shell | ## Code Before:
/opt/omnibus-gcc/embedded/bin/gcc --version | grep "4.9.2"
## Instruction:
Fix test to pull rpm
Signed-off-by: Scott Hain <54f99c3933fb11a028e0e31efcf2f4c9707ec4bf@chef.io>
## Code After:
version=$(cat VERSION)
curl "https://packages.chef.io/files/unstable/omnibus-gcc/${version}/el/6/omnibus-gcc-${... |
16d6af331e5c5097934a93a4602dcc8d843fff02 | app/views/application_groups/index.html.erb | app/views/application_groups/index.html.erb | <%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>
<div class="page-header">
<%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>
</div>
<table class="table table-condensed">
<thead>
<tr>
<th>Primary Applicant</th>
<th>No... | <%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>
<div class="page-header">
<%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>
</div>
<div class="row">
<div class="col-md-offset-8 col-md-4">
<%= render 'shared/search', url: ... | Add search box. Move applicant list to partial | Add search box. Move applicant list to partial
| HTML+ERB | mit | dchbx/gluedb,dchbx/gluedb,dchbx/gluedb,dchbx/gluedb | html+erb | ## Code Before:
<%- model_class = ApplicationGroup -%>
<%t '.title', :default => model_class.model_name.human.pluralize.titleize %>
<div class="page-header">
<%= render 'shared/breadcrumb', crumbs: ['Application Groups'] %>
</div>
<table class="table table-condensed">
<thead>
<tr>
<th>Primary Applicant</... |
8e9ecc61bf715a1ad9c7a5fb17ce66df4aa8040b | README.md | README.md | Repo of the bits and pieces of filling your google spreadsheet using a html form and input tags
|
I have been trying to figure this out for a while, and after googling away for the last week and a half or so I think I've been able to put the pieces together on how you can successfully and _unseccurely_ collect **insensitive** user information from your website page and populate a google spreadsheet.
#### Early war... | Add initial wireframe of the readme | Add initial wireframe of the readme | Markdown | mit | Gideonamani/htmlformgooglesheets,Gideonamani/htmlformgooglesheets | markdown | ## Code Before:
Repo of the bits and pieces of filling your google spreadsheet using a html form and input tags
## Instruction:
Add initial wireframe of the readme
## Code After:
I have been trying to figure this out for a while, and after googling away for the last week and a half or so I think I've been able to put... |
e67b8a59b85259ee8a1bedeb09ea773c78c2f546 | Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/admin/personaBar/scripts/config.js | Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/admin/personaBar/scripts/config.js | 'use strict';
define(['jquery'], function ($) {
return {
init: function () {
var inIframe = window !== window.top && typeof window.top.dnn !== "undefined";
var tabId = inIframe ? window.top.dnn.getVar('sf_tabId') : '';
var siteRoot = inIframe ? window.top.dnn.getVar('sf_... | 'use strict';
define(['jquery'], function ($) {
return {
init: function () {
var inIframe = window.parent && typeof window.parent.dnn !== "undefined";
var tabId = inIframe ? window.parent.dnn.getVar('sf_tabId') : '';
var siteRoot = inIframe ? window.parent.dnn.getVar('sf... | Fix PersonaBar loading when within an iframe | Fix PersonaBar loading when within an iframe
| JavaScript | mit | dnnsoftware/Dnn.Platform,bdukes/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.Platform,dnnsoftware/Dnn.Platform,bdukes/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,nvisionative/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,nvisiona... | javascript | ## Code Before:
'use strict';
define(['jquery'], function ($) {
return {
init: function () {
var inIframe = window !== window.top && typeof window.top.dnn !== "undefined";
var tabId = inIframe ? window.top.dnn.getVar('sf_tabId') : '';
var siteRoot = inIframe ? window.top... |
41c54a3402da12615fd37e523efaf92f30544f24 | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt | package com.github.charbgr.cliffhanger.shared.extensions
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View {
return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot)
} | package com.github.charbgr.cliffhanger.shared.extensions
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View {
return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot)
}
fun View.visibleO... | Add visible and gone view extensions | Add visible and gone view extensions
| Kotlin | mit | charbgr/CliffHanger | kotlin | ## Code Before:
package com.github.charbgr.cliffhanger.shared.extensions
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View {
return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot)
}
##... |
38ab565ef74832ddb8375b77db8b661fc71cc9f9 | main.go | main.go | package main
import (
"fmt"
"os"
"github.com/kori/surt/pkg"
)
func main() {
switch os.Args[1] {
case "build":
file := os.Args[2]
p := pkg.Prepare(file)
fmt.Println(p.Info.Name)
case "add":
fmt.Println("not implemented yet!")
}
}
| package main
import (
"fmt"
"os"
"github.com/kori/surt/pkg"
)
func main() {
switch os.Args[1] {
default:
fmt.Println("no operation specified")
case "build":
file := os.Args[2]
p := pkg.Build(file)
fmt.Println(p.Info.Name)
case "add":
fmt.Println("not implemented yet!")
}
}
| Add default case to operation switch | Add default case to operation switch
| Go | isc | kori/surt,darthlukan/surt | go | ## Code Before:
package main
import (
"fmt"
"os"
"github.com/kori/surt/pkg"
)
func main() {
switch os.Args[1] {
case "build":
file := os.Args[2]
p := pkg.Prepare(file)
fmt.Println(p.Info.Name)
case "add":
fmt.Println("not implemented yet!")
}
}
## Instruction:
Add default case to operation switch
##... |
15bc9e70bcf6ec686f0de5b994979963368ed99b | .gitlab-ci.yml | .gitlab-ci.yml | before_script:
- rm -rf /usr/local/go
- apt-get update -qq
- apt-get install -y curl unzip bzip2
- curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
- echo '46eecd290d8803887dec718c691cc243f2175fe0 go1.5.1.linux-amd64.tar.gz' | shasum -c -
- tar -C /usr/local -xzf go1.5.1.linux-amd64... | before_script:
- rm -rf /usr/local/go
- apt-get update -qq
- apt-get install -y curl unzip bzip2
- curl -O https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
- echo 'cae87ed095e8d94a81871281d35da7829bd1234e go1.5.2.linux-amd64.tar.gz' | shasum -c -
- tar -C /usr/local -xzf go1.5.1.linux-amd64... | Use Go 1.5.2 for tests | Use Go 1.5.2 for tests
| YAML | mit | cui-liqiang/gitlab-workhorse | yaml | ## Code Before:
before_script:
- rm -rf /usr/local/go
- apt-get update -qq
- apt-get install -y curl unzip bzip2
- curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
- echo '46eecd290d8803887dec718c691cc243f2175fe0 go1.5.1.linux-amd64.tar.gz' | shasum -c -
- tar -C /usr/local -xzf go1... |
71fe1670921371c9a9c861a12972b59700eb8b33 | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md |
Closes #[the issue number this PR is related to]
<!-- Explain why this change is needed and the solution you propose.
Provide context for others to understand it. -->
#### What should we test?
<!-- List which features should be tested and how. -->
#### Release notes
<!-- Write a one liner description of the cha... |
Closes # <!-- Insert issue number here. -->
<!-- Explain why this change is needed and the solution you propose.
Provide context for others to understand it. -->
#### What should we test?
<!-- List which features should be tested and how.
This can be similar to the Steps to Reproduce in the issue.
A... | Move release notes to the title of the PR | Move release notes to the title of the PR
Github can generate release notes from titles automatically. That's much easier than us copying the text from each pull request.
Also changed:
- Converted instructions for the issue number to a comment to make pasting the issue number easier.
- More detail for testing i... | Markdown | agpl-3.0 | mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodn... | markdown | ## Code Before:
Closes #[the issue number this PR is related to]
<!-- Explain why this change is needed and the solution you propose.
Provide context for others to understand it. -->
#### What should we test?
<!-- List which features should be tested and how. -->
#### Release notes
<!-- Write a one liner descri... |
3fbe8a01d93b77b496a28229ffdf3792ebab22c1 | test/helper.js | test/helper.js | var browserify = require('browserify')
var cp = require('child_process')
var envify = require('envify/custom')
var fs = require('fs')
var once = require('once')
var path = require('path')
var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary'
var BUNDLE_... | var browserify = require('browserify')
var cp = require('child_process')
var envify = require('envify/custom')
var fs = require('fs')
var once = require('once')
var path = require('path')
var CHROME
if (process.env.CHROME) {
CHROME = process.env.CHROME
} else if (process.platform === 'win32') {
CHROME = '"%Program... | Add Chrome path for Windows | tests: Add Chrome path for Windows
| JavaScript | mit | feross/chrome-net,feross/chrome-net | javascript | ## Code Before:
var browserify = require('browserify')
var cp = require('child_process')
var envify = require('envify/custom')
var fs = require('fs')
var once = require('once')
var path = require('path')
var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Can... |
4844dd00f64240ba371313b21271b07c90ea5b40 | lib/toy_robot_simulator/simulator.rb | lib/toy_robot_simulator/simulator.rb | module ToyRobotSimulator
class Simulator
end
end
| module ToyRobotSimulator
class Simulator
attr_accessor :controller
def initialize
welcome_message
while line = $stdin.gets do
break if line.downcase.include? "quit"
puts line
end
end
def welcome_message
puts %Q(
This is the Toy Robot Simulator Code Cha... | Create Simulator with a finite loop that receives commands | Create Simulator with a finite loop that receives commands
| Ruby | mit | fpgentil/toy-robot-simulator | ruby | ## Code Before:
module ToyRobotSimulator
class Simulator
end
end
## Instruction:
Create Simulator with a finite loop that receives commands
## Code After:
module ToyRobotSimulator
class Simulator
attr_accessor :controller
def initialize
welcome_message
while line = $stdin.gets do
br... |
a38fc3d53adbfec609d911587e9fa2c5a3e01d92 | workflows/common/sh/sched-titan.sh | workflows/common/sh/sched-titan.sh |
MACHINE="-m cray"
# Swift special setting for Titan
export TITAN=true
# Default PROJECT for CANDLE
export PROJECT=${PROJECT:-CSC249ADOA01}
|
MACHINE="-m cray"
# Swift special setting for Titan
export TITAN=true
# Default PROJECT for CANDLE
#export PROJECT=${PROJECT:-CSC249ADOA01}
export PROJECT=${PROJECT:-MED106}
| Change default project to MED106 for titan | Change default project to MED106 for titan
| Shell | mit | ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor,ECP-CANDLE/Supervisor | shell | ## Code Before:
MACHINE="-m cray"
# Swift special setting for Titan
export TITAN=true
# Default PROJECT for CANDLE
export PROJECT=${PROJECT:-CSC249ADOA01}
## Instruction:
Change default project to MED106 for titan
## Code After:
MACHINE="-m cray"
# Swift special setting for Titan
export TITAN=true
# Default PRO... |
210dfcee831a1a59d935c81459d15f9ea6f29f77 | plugins/inputs/system/SWAP_README.md | plugins/inputs/system/SWAP_README.md |
The swap plugin collects system swap metrics.
For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space).
### Configuration:
```toml
# Read metrics about swap memory usage
[[inputs.swap]]
# no configuration
```
### Metrics:
- swap
- ... |
The swap plugin collects system swap metrics.
For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space).
### Configuration:
```toml
# Read metrics about swap memory usage
[[inputs.swap]]
# no configuration
```
### Metrics:
- swap
- ... | Fix field name typo in swap documentation | Fix field name typo in swap documentation
| Markdown | mit | puckpuck/telegraf,Heathland/telegraf,marianob85/telegraf,apigee-internal/telegraf,Heathland/telegraf,m4ce/telegraf,influxdb/telegraf,codehate/telegraf,nferch/telegraf,influxdata/telegraf,m4ce/telegraf,signalfx/telegraf,Brightspace/telegraf,mchuang3/telegraf,marianob85/telegraf,schwartzmx/telegraf,li-ang/telegraf,jonaz/... | markdown | ## Code Before:
The swap plugin collects system swap metrics.
For a more information on what swap memory is, read [All about Linux swap space](https://www.linux.com/news/all-about-linux-swap-space).
### Configuration:
```toml
# Read metrics about swap memory usage
[[inputs.swap]]
# no configuration
```
### Metri... |
3bbe9e5aab0bcd51b95b3f718cb790807931d82b | chrome/browser/extensions/extension_message_handler.h | chrome/browser/extensions/extension_message_handler.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma once
#include "... | Clarify class comment for ExtensionMessageHandler. | Clarify class comment for ExtensionMessageHandler.
TBR=jam@chromium.org
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@82674 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,adobe/ch... | c | ## Code Before:
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_HANDLER_H_
#pragma ... |
a18de90de5ef80a1785dea6f2ca1be26e0fddc1d | rootx/src/rootcoreteam.h | rootx/src/rootcoreteam.h |
namespace ROOT {
namespace ROOTX {
//This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html.
//The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files.
//So this header can be included in different places (as soon as... |
namespace ROOT {
namespace ROOTX {
//This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html.
//The names are sorted in alphabetical order.
//The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files.
//So this header c... | Make it even simpler for a script to replace. | Make it even simpler for a script to replace.
| C | lgpl-2.1 | CristinaCristescu/root,esakellari/root,0x0all/ROOT,smarinac/root,pspe/root,lgiommi/root,davidlt/root,arch1tect0r/root,pspe/root,vukasinmilosevic/root,satyarth934/root,mhuwiler/rootauto,Y--/root,krafczyk/root,krafczyk/root,Y--/root,sawenzel/root,zzxuanyuan/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,sbinet/cx... | c | ## Code Before:
namespace ROOT {
namespace ROOTX {
//This string will be updated by external script, reading names from http://root.cern.ch/gitstats/authors.html.
//The string has an internal linkage (it has a definition here, not in rootxx.cxx or rootx-cocoa.mm files.
//So this header can be included in different pl... |
a21b91f5b0caff1bc32862f84a57166840fc047c | key_dates.html | key_dates.html | ---
layout: main
---
<h1>Key Dates for SR{{ site.sr.year }}</h1>
<h2>Kickstart</h2>
<p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p>
<p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the start of the acad... | ---
layout: main
title: Key Dates
---
<h1>Key Dates for SR{{ site.sr.year }}</h1>
<h2>Kickstart</h2>
<p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p>
<p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the ... | Add a title to the key dates page | Add a title to the key dates page
| HTML | mit | prophile/srweb-jekyll,prophile/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll,prophile/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll,prophile/srweb-jekyll,PeterJCLaw/srweb-jekyll,PeterJCLaw/srweb-jekyll | html | ## Code Before:
---
layout: main
---
<h1>Key Dates for SR{{ site.sr.year }}</h1>
<h2>Kickstart</h2>
<p><a href="/events/kickstart">Kickstart</a> is when you will learn about the game, and receive the kit.</p>
<p>For SR{{ site.sr.year }} the dates are as below. We expect to confirm the particulars of each event at the s... |
fc5652591c650d502598479f487496a642b1ca31 | README.md | README.md | Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovich
| Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovitch.
ESA is well described in a scientific paper.
http://en.wikipedia.org/wiki/Explicit_semantic_analysis
http://www.cs.technion.ac.il/~gabr/resources/code/esa/esa.html
http://www.cs.technion.ac.il/~gabr/papers/ijcai-2007-sim.pdf
| Update readme with links to more resources. | Update readme with links to more resources. | Markdown | agpl-3.0 | pvoosten/explicit-semantic-analysis | markdown | ## Code Before:
Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovich
## Instruction:
Update readme with links to more resources.
## Code After:
Wikipedia-based Explicit Semantic Analysis, as described by Gabrilovich and Markovitch.
ESA is well described in a scientific paper.
http://... |
3ed14bcd364d1843e35cd4a6d1bd48e06379c223 | linter.py | linter.py |
"""This module exports the Hlint plugin class."""
from SublimeLinter.lint import Linter
class Hlint(Linter):
"""Provides an interface to hlint."""
defaults = {
'selector': 'source.haskell'
}
cmd = 'hlint'
regex = (
r'^.+:(?P<line>\d+):'
'(?P<col>\d+):\s*'
'(?:(?P... |
"""This module exports the Hlint plugin class."""
import json
from SublimeLinter.lint import Linter, LintMatch
class Hlint(Linter):
"""Provides an interface to hlint."""
cmd = 'hlint ${args} --json -'
defaults = {
'selector': 'source.haskell'
}
def find_errors(self, output):
# ... | Use JSON to parse hlint output | Use JSON to parse hlint output
| Python | mit | SublimeLinter/SublimeLinter-hlint | python | ## Code Before:
"""This module exports the Hlint plugin class."""
from SublimeLinter.lint import Linter
class Hlint(Linter):
"""Provides an interface to hlint."""
defaults = {
'selector': 'source.haskell'
}
cmd = 'hlint'
regex = (
r'^.+:(?P<line>\d+):'
'(?P<col>\d+):\s*'... |
f3696c9dc77ee6e52b563174f85d8c6457283128 | lib/git_trend.rb | lib/git_trend.rb | require "git_trend/cli"
require "git_trend/formatter"
require "git_trend/formatters/text_formatter"
require "git_trend/formatters/json_formatter"
require "git_trend/project"
require "git_trend/scraper"
require "git_trend/version"
module GitTrend
# GitTrend.get
# GitTrend.get('ruby')
# GitTrend.get(:ruby)
#
#... | require "git_trend/cli"
require "git_trend/formatter"
require "git_trend/formatters/text_formatter"
require "git_trend/formatters/json_formatter"
require "git_trend/project"
require "git_trend/scraper"
require "git_trend/version"
module GitTrend
# GitTrend.get
# GitTrend.get('ruby')
# GitTrend.get(:ruby)
#
#... | Refactor to simlify arguments handling | Refactor to simlify arguments handling
| Ruby | mit | rochefort/git-trend,rochefort/git-trend | ruby | ## Code Before:
require "git_trend/cli"
require "git_trend/formatter"
require "git_trend/formatters/text_formatter"
require "git_trend/formatters/json_formatter"
require "git_trend/project"
require "git_trend/scraper"
require "git_trend/version"
module GitTrend
# GitTrend.get
# GitTrend.get('ruby')
# GitTrend.ge... |
aa1a7a8b481411f027d3931a2d52382398345ac1 | tests/test-x509.c | tests/test-x509.c | static void
test_extract_subject (void)
{
char *subject;
subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL);
ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server");
bson_free (subject);
subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL);
ASSERT_CMPSTR (su... | static void
test_extract_subject (void)
{
char *subject;
subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL);
ASSERT_CMPSTR (subject, "C=US,ST=California,L=Palo Alto,O=MongoDB,OU=Drivers,CN=server");
bson_free (subject);
subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL);
ASSERT_CMPSTR (s... | Fix last-minute certificate subject changes | Fix last-minute certificate subject changes
| C | apache-2.0 | christopherjwang/mongo-c-driver,mongodb/mongo-c-driver,bjori/mongo-c-driver,ajdavis/mongo-c-driver,ajdavis/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,ajdavis/mongo-c-driver,mongodb/mongo-c-driver,acmorrow/mongo-c-driver,Machyne/mongo-c-driver,rcsanchez97/mongo-c-driver,christopherjwang/mongo-c-drive... | c | ## Code Before:
static void
test_extract_subject (void)
{
char *subject;
subject = mongoc_ssl_extract_subject (CERT_SERVER, NULL);
ASSERT_CMPSTR (subject, "C=IS,ST=Reykjavik,L=Reykjavik,O=MongoDB,OU=Drivers,CN=server");
bson_free (subject);
subject = mongoc_ssl_extract_subject (CERT_CLIENT, NULL);
A... |
e3da80c8c57eaba6074c0543f5576e178eeffecb | vim/startup/functions/directories.vim | vim/startup/functions/directories.vim | function! Cdfile()
cd %:h
pwd
endfunction
" cd to the root of the current file's git directory
function! Cdroot()
cd %:h
exec "cd " . Trim(system("git rev-parse --show-toplevel"))
pwd
endfunction
| function! Cdfile()
if expand('%') != ''
cd %:h
else
echom "Not currently in a file."
endif
endfunction
" cd to the root of the current file's git directory
function! Cdroot()
call Cdfile()
exec "cd " . Trim(system("git rev-parse --show-toplevel"))
echom expand('.')
endfunction
| Make Cdf and Cdr no-ops when not in a file | Make Cdf and Cdr no-ops when not in a file
| VimL | mit | yarko3/dotfiles,yarko3/dotfiles | viml | ## Code Before:
function! Cdfile()
cd %:h
pwd
endfunction
" cd to the root of the current file's git directory
function! Cdroot()
cd %:h
exec "cd " . Trim(system("git rev-parse --show-toplevel"))
pwd
endfunction
## Instruction:
Make Cdf and Cdr no-ops when not in a file
## Code After:
function! C... |
74482eab5bfb8d756e43293be90379e149e5c11b | README.md | README.md | **go-metrics-prometheus**
[](https://travis-ci.org/deathowl/go-metrics-prometheus)
This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of expo... | **go-metrics-prometheus**
[](https://travis-ci.org/deathowl/go-metrics-prometheus)
This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, taking care of expo... | Add info about using DefaultRegisterer to readme | Add info about using DefaultRegisterer to readme
Add info about using prometheus.DefaultRegisterer instead of prometheus.NewRegistry() | Markdown | apache-2.0 | deathowl/go-metrics-prometheus,deathowl/go-metrics-prometheus | markdown | ## Code Before:
**go-metrics-prometheus**
[](https://travis-ci.org/deathowl/go-metrics-prometheus)
This is a reporter for the go-metrics library which will post the metrics to the prometheus client registry . It just updates the registry, tak... |
a83e9866b5aad2cba207f450f373bfdb6e59ce44 | README.md | README.md |
U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa.
## Sadržaj
... |
U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih klasa.
## Resursi
... | Update Readme - removed table of contents | Update Readme - removed table of contents | Markdown | mit | gloga/bpmn-canvas-app,gloga/bpmn-canvas-app | markdown | ## Code Before:
U radu će biti opisane osnove BPMN 2.0, te osnovne mogućnosti HTML Canvas elementa. Praktični dio rada obuhvaćati će Web aplikaciju za crtanje modela procesa, realizirana pomoću HTML 5 Canvas tehnologije. Aplikacija će također omogućavati analiziranje modela kroz tablični prikaz procesa i povezanih kla... |
afdfcef3cf7f390dd0fc7eac0806272742ffa479 | core/models/payment.py | core/models/payment.py | from django.db import models
from django.db.models import signals
from django.utils.translation import ugettext_lazy as _
from core.mixins import AuditableMixin
from .invoice import Invoice
class Payment(AuditableMixin, models.Model):
invoice = models.ForeignKey(
Invoice, editable=False, on_delete=models... | from django.db import models
from django.db.models import signals
from django.utils.translation import ugettext_lazy as _
from core.mixins import AuditableMixin
class Payment(AuditableMixin, models.Model):
invoice = models.ForeignKey(
'core.Invoice', editable=False, on_delete=models.CASCADE,
verb... | Use string instead of class | Use string instead of class
| Python | bsd-3-clause | ikcam/django-skeleton,ikcam/django-skeleton,ikcam/django-skeleton,ikcam/django-skeleton | python | ## Code Before:
from django.db import models
from django.db.models import signals
from django.utils.translation import ugettext_lazy as _
from core.mixins import AuditableMixin
from .invoice import Invoice
class Payment(AuditableMixin, models.Model):
invoice = models.ForeignKey(
Invoice, editable=False, ... |
a8857834ca63ead1d53c7136ada3f27d77bc7a99 | src/store.js | src/store.js | //@flow
import { createStore, compose, applyMiddleware } from "redux";
import { routerMiddleware } from "react-router-redux";
import createHistory from "history/createBrowserHistory";
import reducers from "./data/reducers";
const defaultState = {};
export const history = createHistory();
const middlewares = [routerM... | //@flow
import { createStore, compose, applyMiddleware } from "redux";
import { routerMiddleware } from "react-router-redux";
import createHistory from "history/createBrowserHistory";
import reducers from "./data/reducers";
import cards from "./data/state/cards";
const defaultState = { cards };
export const history =... | Add cards to default state and hot reload reducers | Add cards to default state and hot reload reducers
| JavaScript | mit | slightly-askew/portfolio-2017,slightly-askew/portfolio-2017 | javascript | ## Code Before:
//@flow
import { createStore, compose, applyMiddleware } from "redux";
import { routerMiddleware } from "react-router-redux";
import createHistory from "history/createBrowserHistory";
import reducers from "./data/reducers";
const defaultState = {};
export const history = createHistory();
const middle... |
12ea2e331e23eb4e8d05b14b81d67d01d5a87b28 | .github/workflows/release.yml | .github/workflows/release.yml | name: tag
on:
push:
tags:
# this is a glob, not a regexp
- '[0-9]*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Build release tarball
# run as root; current Ubuntu podman breaks user networking ("could n... | name: tag
on:
push:
tags:
# this is a glob, not a regexp
- '[0-9]*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Workaround for https://github.com/actions/checkout/pull/697
run: git fetch --force origin $... | Add workaround for actions/checkout tag breakage | workflows: Add workaround for actions/checkout tag breakage
See https://github.com/actions/checkout/pull/697
| YAML | lgpl-2.1 | martinpitt/umockdev,martinpitt/umockdev,martinpitt/umockdev | yaml | ## Code Before:
name: tag
on:
push:
tags:
# this is a glob, not a regexp
- '[0-9]*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Build release tarball
# run as root; current Ubuntu podman breaks user netw... |
0ce686badf30cf4769fb7fc5af793c9b65a6e0a4 | docs/assets/scss/components/_sidebar.scss | docs/assets/scss/components/_sidebar.scss | .docs-sidebar {
padding: 0 !important;
background: #f9f9f9 !important;
border-right: 1px solid #e7e7e7;
transition-timing-function: get-timing(bounceInOut) !important;
@include breakpoint(medium) {
@include grid-panel-reset;
@include grid-block(3);
@include grid-orient(vertical);
}
@include ... | .docs-sidebar {
padding: 0 !important;
background: #f9f9f9 !important;
border-right: 1px solid #e7e7e7;
transition-timing-function: get-timing(bounceInOut) !important;
@include breakpoint(medium) {
@include grid-panel-reset;
@include grid-block(3);
@include grid-orient(vertical);
}
@include ... | Compress appearance of sidebar component list in docs | Compress appearance of sidebar component list in docs
| SCSS | mit | pioug/foundation-apps,nolimitid/foundation-apps,laurent-le-graverend/foundation-apps,fatpixel/mv-foundation-apps,GeorgeMe/foundation-apps,silencekillsdesign/foundation-apps,lunks/foundation-apps,dragthor/foundation-apps,pioug/foundation-apps,erikmellum/foundation-apps,bpbp-boop/foundation-apps,fatpixel/mv-foundation-ap... | scss | ## Code Before:
.docs-sidebar {
padding: 0 !important;
background: #f9f9f9 !important;
border-right: 1px solid #e7e7e7;
transition-timing-function: get-timing(bounceInOut) !important;
@include breakpoint(medium) {
@include grid-panel-reset;
@include grid-block(3);
@include grid-orient(vertical);
... |
9505543f21a188c38720750b931863a2de84effe | README.md | README.md | xmpp-ftw-item-parser
====================
Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML
| xmpp-ftw-item-parser
====================
Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML.
# Build status
[](http://travis-ci.org/lloydwatkin/xmpp-ftw-item-parser)
| Add travis build status image | Add travis build status image
| Markdown | apache-2.0 | xmpp-ftw/xmpp-ftw-item-parser | markdown | ## Code Before:
xmpp-ftw-item-parser
====================
Used to parse "standard" XMPP pubsub payloads both from XML→JSON, and build stanzas JSON→XML
## Instruction:
Add travis build status image
## Code After:
xmpp-ftw-item-parser
====================
Used to parse "standard" XMPP pubsub payloads both from XML→JS... |
f0c8547d2c0de6cde9d58da2aebd6d5644ebb98e | lib/twitter_client.rb | lib/twitter_client.rb | require 'contracts'
require 'twitter'
# Establishes the Twitter client
class TwitterClient
include Contracts::Core
# Shortcut for contracts
C = Contracts
Contract Hash => nil
def initialize(credentials)
# @config = {
# consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs',
# consumer_secret: 'hjKJVdd2ikwHd... | require 'contracts'
require 'twitter'
# Establishes the Twitter client
class TwitterClient
include Contracts::Core
# Shortcut for contracts
C = Contracts
Contract Hash => nil
def initialize(credentials)
# @config = {
# consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs',
# consumer_secret: 'hjKJVdd2ikwHd... | Fix contract for twitter client | Fix contract for twitter client
| Ruby | mit | ellisandy/awl_tags_twitter | ruby | ## Code Before:
require 'contracts'
require 'twitter'
# Establishes the Twitter client
class TwitterClient
include Contracts::Core
# Shortcut for contracts
C = Contracts
Contract Hash => nil
def initialize(credentials)
# @config = {
# consumer_key: '7Jw0Oc7ZVO9NHY5Z5ieYB91Rs',
# consumer_secret... |
76517de87d1a38753619b27fb5f787892d533512 | lms/djangoapps/courseware/features/annotatable.feature | lms/djangoapps/courseware/features/annotatable.feature | @shard_2
Feature: LMS.Annotatable Component
As a student, I want to view an Annotatable component in the LMS
Scenario: An Annotatable component can be rendered in the LMS
Given that a course has an annotatable component with 2 annotations
When I view the annotatable component
Then the annotatable compo... | @shard_2
Feature: LMS.Annotatable Component
As a student, I want to view an Annotatable component in the LMS
Scenario: An Annotatable component can be rendered in the LMS
Given that a course has an annotatable component with 2 annotations
When I view the annotatable component
Then the annotatable compo... | Disable intermittently failing annotation acceptance test TNL-353 | Disable intermittently failing annotation acceptance test TNL-353
| Cucumber | agpl-3.0 | halvertoluke/edx-platform,pomegranited/edx-platform,shurihell/testasia,longmen21/edx-platform,shubhdev/edx-platform,nttks/jenkins-test,sameetb-cuelogic/edx-platform-test,zofuthan/edx-platform,alu042/edx-platform,devs1991/test_edx_docmode,knehez/edx-platform,ahmadiga/min_edx,stvstnfrd/edx-platform,ahmadio/edx-platform,x... | cucumber | ## Code Before:
@shard_2
Feature: LMS.Annotatable Component
As a student, I want to view an Annotatable component in the LMS
Scenario: An Annotatable component can be rendered in the LMS
Given that a course has an annotatable component with 2 annotations
When I view the annotatable component
Then the a... |
d9bd04b90c7424e2dc0c95e3bbdbf7d72ce059d1 | pkgs/tools/networking/spiped/default.nix | pkgs/tools/networking/spiped/default.nix | { stdenv, fetchurl, openssl, coreutils }:
stdenv.mkDerivation rec {
name = "spiped-${version}";
version = "1.4.0";
src = fetchurl {
url = "http://www.tarsnap.com/spiped/${name}.tgz";
sha256 = "0pyg1llnqgfx7n7mi3dq4ra9xg3vkxlf01z5jzn7ncq5d6ii7ynq";
};
buildInputs = [ openssl ];
patches = [ .... | { stdenv, fetchurl, openssl, coreutils }:
stdenv.mkDerivation rec {
name = "spiped-${version}";
version = "1.3.1";
src = fetchurl {
url = "http://www.tarsnap.com/spiped/${name}.tgz";
sha256 = "1viglk61v1v2ga1n31r0h8rvib5gy2h02lhhbbnqh2s6ps1sjn4a";
};
buildInputs = [ openssl ];
patches = [ .... | Revert "spiped: 1.3.1 -> 1.4.0" | Revert "spiped: 1.3.1 -> 1.4.0"
This reverts commit 792afca11318aaac0715f343d7454ea4933a932a.
Version 1.4.0 failed to build.
| Nix | mit | NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,Sy... | nix | ## Code Before:
{ stdenv, fetchurl, openssl, coreutils }:
stdenv.mkDerivation rec {
name = "spiped-${version}";
version = "1.4.0";
src = fetchurl {
url = "http://www.tarsnap.com/spiped/${name}.tgz";
sha256 = "0pyg1llnqgfx7n7mi3dq4ra9xg3vkxlf01z5jzn7ncq5d6ii7ynq";
};
buildInputs = [ openssl ];... |
d3f6b0e980acfbf6dc6d016a466e19c88cfdf33d | src/tasks/daily_verses.ts | src/tasks/daily_verses.ts | import { Client, TextChannel } from 'discord.js';
import * as cron from 'node-cron';
import * as moment from 'moment';
import 'moment-timezone';
import GuildPreference from '../models/guild_preference';
import { DailyVerseRouter } from '../routes/resources/daily_verse';
import Context from '../models/context';
import ... | import { Client, TextChannel } from 'discord.js';
import * as cron from 'node-cron';
import * as moment from 'moment';
import 'moment-timezone';
import GuildPreference from '../models/guild_preference';
import { DailyVerseRouter } from '../routes/resources/daily_verse';
import Context from '../models/context';
import ... | Fix a bug where preferences weren't accessible for automatic daily verses. | Fix a bug where preferences weren't accessible for automatic daily verses.
| TypeScript | mpl-2.0 | BibleBot/BibleBot,BibleBot/BibleBot,BibleBot/BibleBot | typescript | ## Code Before:
import { Client, TextChannel } from 'discord.js';
import * as cron from 'node-cron';
import * as moment from 'moment';
import 'moment-timezone';
import GuildPreference from '../models/guild_preference';
import { DailyVerseRouter } from '../routes/resources/daily_verse';
import Context from '../models/c... |
b50359e01b5c9fd5a6e06f0e145c51560e2b5a2d | src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | Make GENERIC_REASON consistent with web messages. | Make GENERIC_REASON consistent with web messages.
| Java | mit | overleaf/writelatex-git-bridge,overleaf/writelatex-git-bridge | java | ## Code Before:
package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERI... |
cadcfc29745935e610529b3e54d8c1cd9dc8d0a5 | spec/controllers/admin/white_list_users_controller_spec.rb | spec/controllers/admin/white_list_users_controller_spec.rb | require 'spec_helper'
describe GreenFlag::Admin::WhiteListUsersController do
let(:user) { FactoryGirl.create(:user) }
let(:feature) { GreenFlag::Feature.create(code: 'asdf') }
let(:site_visitor) { GreenFlag::SiteVisitor.create!(user_id: user.id, visitor_code: '123') }
let(:whitelist_feature_decision) { Green... | require 'spec_helper'
describe GreenFlag::Admin::WhiteListUsersController do
describe '#index' do
subject { get :index, feature_id: 1, format: 'js' }
context 'with no whitelisted users' do
before(:each) do
allow(GreenFlag::FeatureDecision).to receive(:whitelisted_users) { [] }
end
... | Use stubs to avoid setup in controller test | Use stubs to avoid setup in controller test
| Ruby | mit | websdotcom/green_flag,websdotcom/green_flag,websdotcom/green_flag | ruby | ## Code Before:
require 'spec_helper'
describe GreenFlag::Admin::WhiteListUsersController do
let(:user) { FactoryGirl.create(:user) }
let(:feature) { GreenFlag::Feature.create(code: 'asdf') }
let(:site_visitor) { GreenFlag::SiteVisitor.create!(user_id: user.id, visitor_code: '123') }
let(:whitelist_feature_d... |
37c5511de5eb6930e3e1f5723b25d7c139b93016 | README.md | README.md | MolML
=====
A library to interface molecules and machine learning. | MolML
=====
[](https://travis-ci.org/crcollins/molml)
[](https://coveralls.io/github/crcollins/molml?branch=master)
A library to interface molecules and m... | Add build and coverage status badges | Add build and coverage status badges
| Markdown | mit | crcollins/molml | markdown | ## Code Before:
MolML
=====
A library to interface molecules and machine learning.
## Instruction:
Add build and coverage status badges
## Code After:
MolML
=====
[](https://travis-ci.org/crcollins/molml)
[;
AppRegistry.registerComponent('Finance', () => Finance);
| import {
AppRegistry,
StatusBar,
} from 'react-native';
import Finance from './Finance';
console.disableYellowBox = true;
StatusBar.setBarStyle('light-content', true);
AppRegistry.registerComponent('Finance', () => Finance);
| Disable new yellow componentWillMount() lifecycle warnings | Disable new yellow componentWillMount() lifecycle warnings
| JavaScript | mit | 7kfpun/FinanceReactNative,7kfpun/FinanceReactNative,7kfpun/FinanceReactNative | javascript | ## Code Before:
import {
AppRegistry,
StatusBar,
} from 'react-native';
import Finance from './Finance';
StatusBar.setBarStyle('light-content', true);
AppRegistry.registerComponent('Finance', () => Finance);
## Instruction:
Disable new yellow componentWillMount() lifecycle warnings
## Code After:
import {
Ap... |
b84f306248d7c64acf55705834e2166a5eda3843 | compile/OSX-x86-64-gcc-serial/make_head.mk | compile/OSX-x86-64-gcc-serial/make_head.mk | EXE_NAME = piny
LIB_NAME = libpiny.so
# compilers and options
FC = gfortran
CC = gcc
DEFINE = -DLINUX -DNO_CFREE
OPT = -O2
OPT_CARE = -O2
OPT_GRP = -O2
CFLAGS = -fPIC $(DEFINE)
FFLAGS = -fPIC $(DEFINE)
LIBS = -lm
INCLUDES = $(CODE)/include/pentium_nopar
CODE = $(realpath ../..)
EXE = $(CODE)/bin/$(EXE_NAME)
LIBPINY =... | EXE_NAME = piny
LIB_NAME = libpiny.so
# compilers and options
FC = gfortran
CC = gcc
DEFINE = -DNO_CFREE
OPT = -O2
OPT_CARE = -O2
OPT_GRP = -O2
CFLAGS = -fPIC $(DEFINE)
FFLAGS = -fPIC $(DEFINE)
LIBS = -lm
BASE = $(realpath ../..)
CODE = $(BASE)/src
INCLUDES = $(BASE)/include/pentium_nopar
EXE = $(BASE)/bin/$(EXE_NAME... | Update OS X settings as well | Update OS X settings as well
| Makefile | epl-1.0 | TuckermanGroup/PINY,yuhangwang/PINY,yuhangwang/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,TuckermanGroup/PINY,yuhangwang/PINY,yuhangwang/PINY | makefile | ## Code Before:
EXE_NAME = piny
LIB_NAME = libpiny.so
# compilers and options
FC = gfortran
CC = gcc
DEFINE = -DLINUX -DNO_CFREE
OPT = -O2
OPT_CARE = -O2
OPT_GRP = -O2
CFLAGS = -fPIC $(DEFINE)
FFLAGS = -fPIC $(DEFINE)
LIBS = -lm
INCLUDES = $(CODE)/include/pentium_nopar
CODE = $(realpath ../..)
EXE = $(CODE)/bin/$(EXE... |
79cbfcad75454075dacf064763dd2f9ce1fa7766 | Resources/Private/Templates/Registration/ActivateAccount.html | Resources/Private/Templates/Registration/ActivateAccount.html | <f:layout name="Default"/>
<f:section name="Title">Activate Account</f:section>
<f:comment>
VARIABLES:
- tokenNotFound: if set, the auth token was not found.
- tokenTimeout: if set, the token had a timeout.
- success: all worked.
</f:comment>
<f:section name="Content">
<f:if condition="{tokenNotFound}">
... | <f:layout name="Default"/>
<f:section name="Title">Activate Account</f:section>
<f:comment>
VARIABLES:
- tokenNotFound: if set, the auth token was not found.
- tokenTimeout: if set, the token had a timeout.
- success: all worked.
</f:comment>
<f:section name="Content">
<f:if condition="{tokenNotFound}">
... | Add link to Login on activation success | TASK: Add link to Login on activation success | HTML | mit | sandstorm/UserManagement,sandstorm/UserManagement | html | ## Code Before:
<f:layout name="Default"/>
<f:section name="Title">Activate Account</f:section>
<f:comment>
VARIABLES:
- tokenNotFound: if set, the auth token was not found.
- tokenTimeout: if set, the token had a timeout.
- success: all worked.
</f:comment>
<f:section name="Content">
<f:if condition="{tok... |
b979651804883c08a1f654cc3df168f841e6b546 | index.js | index.js | bookcrossing.handler = function(event, context, callback) {
console.log("Batatas");
} | exports.handler = function(event, context, callback) {
console.log("Batatas");
} | Fix the header of function for AWS Lambda. | Fix the header of function for AWS Lambda.
| JavaScript | mit | pontoporponto/bookCrossing | javascript | ## Code Before:
bookcrossing.handler = function(event, context, callback) {
console.log("Batatas");
}
## Instruction:
Fix the header of function for AWS Lambda.
## Code After:
exports.handler = function(event, context, callback) {
console.log("Batatas");
} |
fd7dda54d0586906ccd07726352ba8566176ef71 | app/scripts/app.js | app/scripts/app.js | (function () {
'use strict';
/**
* ngInject
*/
function StateConfig($urlRouterProvider) {
$urlRouterProvider.otherwise('/');
}
// color ramp for sectors
var sectorColors = {
'School (K-12)': '#A6CEE3',
'Office': '#1F78B4',
'Warehouse': '#B2DF8A',
... | (function () {
'use strict';
/**
* ngInject
*/
function StateConfig($urlRouterProvider) {
$urlRouterProvider.otherwise('/');
}
// color ramp for sectors
var sectorColors = {
'School (K-12)': '#A6CEE3',
'Office': '#1F78B4',
'Medical Office': '#52A634',
... | Add remaining building types to MOSColors | Add remaining building types to MOSColors
| JavaScript | mit | azavea/mos-energy-benchmark,azavea/mos-energy-benchmark,azavea/mos-energy-benchmark | javascript | ## Code Before:
(function () {
'use strict';
/**
* ngInject
*/
function StateConfig($urlRouterProvider) {
$urlRouterProvider.otherwise('/');
}
// color ramp for sectors
var sectorColors = {
'School (K-12)': '#A6CEE3',
'Office': '#1F78B4',
'Warehouse': '#... |
75b38e427d4273bd01448bdf30a1cbd5dfe9157e | app/assets/javascripts/jobbr/application.js.coffee | app/assets/javascripts/jobbr/application.js.coffee |
autoRefreshInterval = 3000
timeout = undefined
scrollToBottom = ($container) ->
if $container.length > 0
$container.scrollTop($container[0].scrollHeight)
toggleRefreshButton = ->
$('#auto-refresh').toggleClass('active')
$('#auto-refresh i').toggleClass('fa-spin')
$('#auto-refresh').hasClass('active')
en... |
autoRefreshInterval = 3000
timeout = undefined
scrollToBottom = ($container) ->
if $container.length > 0
$container.scrollTop($container[0].scrollHeight)
toggleRefreshButton = ->
$('#auto-refresh').toggleClass('active')
$('#auto-refresh i').toggleClass('fa-spin')
$('#auto-refresh').hasClass('active')
en... | Refresh a page automatically, without using turbolinks. | Refresh a page automatically, without using turbolinks.
| CoffeeScript | mit | PrimeRevenue/jobbr,PrimeRevenue/jobbr,PrimeRevenue/jobbr | coffeescript | ## Code Before:
autoRefreshInterval = 3000
timeout = undefined
scrollToBottom = ($container) ->
if $container.length > 0
$container.scrollTop($container[0].scrollHeight)
toggleRefreshButton = ->
$('#auto-refresh').toggleClass('active')
$('#auto-refresh i').toggleClass('fa-spin')
$('#auto-refresh').hasCla... |
4057310ae8cd5a59dc21ff8c9168653119539cdb | buckets.yaml | buckets.yaml |
gs://kubernetes-jenkins/logs/:
prefix: ""
gs://kube_azure_log/:
prefix: "azure:"
gs://rktnetes-jenkins/logs/:
prefix: "rktnetes:"
gs://kopeio-kubernetes-e2e/logs/:
prefix: "kopeio:"
sequential: false
|
gs://kubernetes-jenkins/logs/:
contact: "fejta"
prefix: ""
gs://kube_azure_log/:
contact: "travisnewhouse"
prefix: "azure:"
gs://rktnetes-jenkins/logs/:
contact: "euank"
prefix: "rktnetes:"
gs://kopeio-kubernetes-e2e/logs/:
contact: "justinsb"
prefix: "kopeio:"
sequential: false
| Add contact info for each prefix | Add contact info for each prefix
| YAML | apache-2.0 | mtaufen/test-infra,michelle192837/test-infra,shyamjvs/test-infra,michelle192837/test-infra,cblecker/test-infra,mikedanese/test-infra,shyamjvs/test-infra,monopole/test-infra,cblecker/test-infra,dchen1107/test-infra,ixdy/kubernetes-test-infra,brahmaroutu/test-infra,mindprince/test-infra,jlowdermilk/test-infra,kargakis/te... | yaml | ## Code Before:
gs://kubernetes-jenkins/logs/:
prefix: ""
gs://kube_azure_log/:
prefix: "azure:"
gs://rktnetes-jenkins/logs/:
prefix: "rktnetes:"
gs://kopeio-kubernetes-e2e/logs/:
prefix: "kopeio:"
sequential: false
## Instruction:
Add contact info for each prefix
## Code After:
gs://kubernetes-jenkins/lo... |
04649c101a33074c7745c867aab8eacc322a057a | www/js/app.js | www/js/app.js | (function () {
RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html());
RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html());
var service = new RecipeService();
service.initialize().done(function () {
router.addRoute('', function() {
... | (function () {
RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html());
RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html());
Handlebars.registerHelper('recipe_image', function(image_id) {
return _.find(recipe_images, function(recipe){ return reci... | Add handlebars helper in order to show recipe image | Add handlebars helper in order to show recipe image | JavaScript | mit | enoliglesias/wpreader,enoliglesias/wpreader | javascript | ## Code Before:
(function () {
RecipeListView.prototype.template = Handlebars.compile($("#recipe-list-tpl").html());
RecipeView.prototype.template = Handlebars.compile($("#recipe-tpl").html());
var service = new RecipeService();
service.initialize().done(function () {
router.addRoute('', functi... |
79a141fd2a6628ec812496e947f3d7c6e59a2b0e | config/initializers/mweb_events.rb | config/initializers/mweb_events.rb | Rails.application.config.to_prepare do
# Monkey patching events controller for pagination and recent activity
MwebEvents::EventsController.class_eval do
before_filter(:only => [:index]) do
@events = @events.accessible_by(current_ability).paginate(:page => params[:page])
end
after_filter :only =>... | Rails.application.config.to_prepare do
# Monkey patching events controller for pagination and recent activity
MwebEvents::EventsController.class_eval do
before_filter(:only => [:index]) do
@events = @events.accessible_by(current_ability).paginate(:page => params[:page])
end
after_filter :only =>... | Correct problem with participant recent activity | Correct problem with participant recent activity
| Ruby | agpl-3.0 | akratech/Akraconference,mconftec/mconf-web-mytruecloud,akratech/Akraconference,mconftec/mconf-web-cedia,mconf/mconf-web,mconftec/mconf-web-cedia,mconftec/mconf-web-uergs,mconftec/mconf-web-mytruecloud,becueb/MconfWeb,mconf/mconf-web,mconftec/mconf-web-santacasa,mconftec/mconf-web-ufpe,mconf/mconf-web,amreis/mconf-web,a... | ruby | ## Code Before:
Rails.application.config.to_prepare do
# Monkey patching events controller for pagination and recent activity
MwebEvents::EventsController.class_eval do
before_filter(:only => [:index]) do
@events = @events.accessible_by(current_ability).paginate(:page => params[:page])
end
after... |
a1cb75de2d21e3fce2f142696d07593ea8456bce | api-ref/src/wadls/orchestration-api/src/v1/samples/stack_adopt_resp.json | api-ref/src/wadls/orchestration-api/src/v1/samples/stack_adopt_resp.json | {
"stack": {
"id": "5333af0c-cc26-47ee-ac3d-8784cefafbd7",
"links": [
{
"href": "http://192.168.123.200:8004/v1/eb1c63a4f77141548385f113a28f0f52/stacks/simple_stack/5333af0c-cc26-47ee-ac3d-8784cefafbd7",
"rel": "self"
}
]
}
} | {
"action": "CREATE",
"id": "46c927bb-671a-43db-a29c-16a2610865ca",
"name": "trove",
"resources": {
"MySqlCloudDatabaseServer": {
"action": "CREATE",
"metadata": {},
"name": "MySqlCloudDatabaseServer",
"resource_data": {},
"resource_id"... | Improve stack adopt reponse sample | Improve stack adopt reponse sample
Change-Id: I6d0f2a0958ceafa2d4eab7931fb515ac745297dd
| JSON | apache-2.0 | Tesora/tesora-api-site,dreamhost/api-site,DonSchenck/api-site,DonSchenck/api-site,dreamhost/api-site,openstack/api-site,Tesora/tesora-api-site,dreamhost/api-site,openstack/api-site,dreamhost/api-site,Tesora/tesora-api-site,dreamhost/api-site,Tesora/tesora-api-site,DonSchenck/api-site,DonSchenck/api-site,Tesora/tesora-a... | json | ## Code Before:
{
"stack": {
"id": "5333af0c-cc26-47ee-ac3d-8784cefafbd7",
"links": [
{
"href": "http://192.168.123.200:8004/v1/eb1c63a4f77141548385f113a28f0f52/stacks/simple_stack/5333af0c-cc26-47ee-ac3d-8784cefafbd7",
"rel": "self"
}
... |
ca99fd703d5431246defb8ef35f9e6b092a48621 | coursemology2/db/transforms/models/file_upload.rb | coursemology2/db/transforms/models/file_upload.rb | module CoursemologyV1::Source
def_model 'file_uploads' do
scope :visible, ->() { where(is_public: true) }
require 'open-uri'
URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/'
belongs_to :owner, polymorphic: true
# Return the attachment reference or nil
def transform_att... | module CoursemologyV1::Source
def_model 'file_uploads' do
scope :visible, ->() { where(is_public: true) }
require 'open-uri'
URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/'
belongs_to :owner, polymorphic: true
# Return the attachment reference or nil
def transform_att... | Create attachment first before build the reference | Create attachment first before build the reference
| Ruby | mit | allenwq/migration,Coursemology/migration,allenwq/migration,Coursemology/migration | ruby | ## Code Before:
module CoursemologyV1::Source
def_model 'file_uploads' do
scope :visible, ->() { where(is_public: true) }
require 'open-uri'
URL_PREFIX = 'http://coursemology.s3.amazonaws.com/file_uploads/files/'
belongs_to :owner, polymorphic: true
# Return the attachment reference or nil
d... |
c8ec48eb4f3903295fbd4dfbc869fed327bf6d9d | app/models/tree_node.rb | app/models/tree_node.rb | class TreeNode
attr_reader :taxon, :children
delegate :title, :base_path, :content_id, :parent_taxons, :parent_taxons=, to: :taxon
attr_accessor :parent_node
delegate :map, :each, to: :tree
def initialize(title:, content_id:)
@taxon = Taxon.new(title: title, content_id: content_id)
@children = []
e... | class TreeNode
attr_reader :taxon, :children
attr_accessor :parent_node
delegate :title, :base_path, :content_id, to: :taxon
delegate :map, :each, to: :tree
def initialize(title:, content_id:)
@taxon = Taxon.new(title: title, content_id: content_id)
@children = []
end
def <<(child_node)
chil... | Remove unused methods in TreeNode | Remove unused methods in TreeNode
| Ruby | mit | alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger | ruby | ## Code Before:
class TreeNode
attr_reader :taxon, :children
delegate :title, :base_path, :content_id, :parent_taxons, :parent_taxons=, to: :taxon
attr_accessor :parent_node
delegate :map, :each, to: :tree
def initialize(title:, content_id:)
@taxon = Taxon.new(title: title, content_id: content_id)
@c... |
ef1ec65ae70bdbb5515b50264ba63ca618eecdcf | lib/active_model/default_serializer.rb | lib/active_model/default_serializer.rb | module ActiveModel
# DefaultSerializer
#
# Provides a constant interface for all items
class DefaultSerializer
attr_reader :object
def initialize(object, options=nil)
@object = object
end
def serializable_hash(*)
@object.as_json
end
alias serializable_object serializable_ha... | require 'active_model/serializable'
module ActiveModel
# DefaultSerializer
#
# Provides a constant interface for all items
class DefaultSerializer
include ActiveModel::Serializable
attr_reader :object
def initialize(object, options=nil)
@object = object
end
def as_json(options={})
... | Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there | Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there
| Ruby | mit | onehub/active_model_serializers,getoutreach/active_model_serializers,adparlor/active_model_serializers,ahey/active_model_serializers_latest | ruby | ## Code Before:
module ActiveModel
# DefaultSerializer
#
# Provides a constant interface for all items
class DefaultSerializer
attr_reader :object
def initialize(object, options=nil)
@object = object
end
def serializable_hash(*)
@object.as_json
end
alias serializable_object... |
e5c5c82d4e6602edcc3a275795a92db26ee78452 | example/oauth-provider/src/net/oauth/example/provider/core/provider.properties | example/oauth-provider/src/net/oauth/example/provider/core/provider.properties | -- for clients do not add callbackURL
myKey=mySecret
myKey.description=CookieJar
myKey.callbackURL=http://localhost/CookieJar/Callback
noCallbackConsumer=noCallbackSecret
noCallbackConsumer.description=sample consumer
| -- for clients do not add callbackURL
myKey=mySecret
myKey.description=CookieJar
myKey.callbackURL=http://localhost/CookieJar/Callback
noCallbackConsumer=noCallbackSecret
noCallbackConsumer.description=sample consumer
gadgetConsumer=gadgetSecret
gadgetConsumer.description=Gadget running on Shindig
gadg... | Add the ability to demo a Shindig gadget with a callback. | Add the ability to demo a Shindig gadget with a callback.
| INI | apache-2.0 | luosx/oauth,luosx/oauth,luosx/oauth | ini | ## Code Before:
-- for clients do not add callbackURL
myKey=mySecret
myKey.description=CookieJar
myKey.callbackURL=http://localhost/CookieJar/Callback
noCallbackConsumer=noCallbackSecret
noCallbackConsumer.description=sample consumer
## Instruction:
Add the ability to demo a Shindig gadget with a call... |
330c620c3ddfb6ba0b2741647e0a92d236b78017 | examples/single-file/main.clj | examples/single-file/main.clj | (set-env!
:dependencies '[[org.clojure/clojure "1.7.0-RC1" :scope "provided"]
[funcool/catacumba "0.2.0-SNAPSHOT"]])
(require '[catacumba.core :as ct])
(defn home-page
[content]
"Hello world")
(def app
(ct/routes [[:get home-page]]))
(defn -main
"The main entry point to your application."
... | (set-env!
:dependencies '[[org.clojure/clojure "1.7.0-RC1"]
[funcool/catacumba "0.2.0"]])
(require '[catacumba.core :as ct])
(defn home-page
[content]
"Hello world")
(def app
(ct/routes [[:get home-page]]))
(defn -main
"The main entry point to your application."
[& args]
(let [lt (java... | Update catacumba version on single-file example. | Update catacumba version on single-file example.
| Clojure | bsd-2-clause | prepor/catacumba,funcool/catacumba,coopsource/catacumba,prepor/catacumba,funcool/catacumba,funcool/catacumba,mitchelkuijpers/catacumba,coopsource/catacumba,mitchelkuijpers/catacumba | clojure | ## Code Before:
(set-env!
:dependencies '[[org.clojure/clojure "1.7.0-RC1" :scope "provided"]
[funcool/catacumba "0.2.0-SNAPSHOT"]])
(require '[catacumba.core :as ct])
(defn home-page
[content]
"Hello world")
(def app
(ct/routes [[:get home-page]]))
(defn -main
"The main entry point to you... |
8f44f0ba04f43105106e934693d3fbe3afae0ca5 | index.js | index.js | 'use strict';
var dir = './lib';
if (process.env.COVERAGE){
dir = './lib-cov';
}
var M = require(dir);
if (typeof window !== 'undefined') {
var _M = window.M;
window.M = M;
M.noConflict = function () {
window.M = _M;
return M;
};
}
if (typeof module !== 'undefined') {
module.exp... | 'use strict';
var M = require('./lib');
if (process.env.COVERAGE){
var dir = './lib-cov';
M = require(dir);
}
if (typeof window !== 'undefined') {
var _M = window.M;
window.M = M;
M.noConflict = function () {
window.M = _M;
return M;
};
}
if (typeof module !== 'undefined') {
mo... | Fix lib-cov require when using browserify | Fix lib-cov require when using browserify
| JavaScript | mit | kwangkim/javascript-cas,aantthony/javascript-cas,kwangkim/javascript-cas | javascript | ## Code Before:
'use strict';
var dir = './lib';
if (process.env.COVERAGE){
dir = './lib-cov';
}
var M = require(dir);
if (typeof window !== 'undefined') {
var _M = window.M;
window.M = M;
M.noConflict = function () {
window.M = _M;
return M;
};
}
if (typeof module !== 'undefined') ... |
e95d28d983ad0e0cd6a9343096974209eb506a9e | package.json | package.json | {
"name": "Dota2_Stats",
"description": "Personal Dota 2 stats",
"version": "0.0.1",
"license": "MIT",
"private": true,
"scripts": {
"postinstall": "node ./node_modules/bower/bin/bower install",
"prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./pu... | {
"name": "Dota2_Stats",
"description": "Personal Dota 2 stats",
"version": "0.0.1",
"license": "MIT",
"private": true,
"scripts": {
"postinstall": "bower install",
"prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public/app.all.js ./public/src",
"start": "node ... | Revert "Added bower as a local dependency." | Revert "Added bower as a local dependency."
This reverts commit f9159056ce53bc4821af3841da90adb6dc232603.
| JSON | mit | verath/dota-stats,verath/dota-stats | json | ## Code Before:
{
"name": "Dota2_Stats",
"description": "Personal Dota 2 stats",
"version": "0.0.1",
"license": "MIT",
"private": true,
"scripts": {
"postinstall": "node ./node_modules/bower/bin/bower install",
"prestart": "node ./node_modules/coffee-script/bin/coffee --compile --map --join ./public... |
1e1430d89d0cbd5f1de04194ac394b703c86693d | virtool/api/genbank.py | virtool/api/genbank.py | import aiohttp
import aiohttp.web
import virtool.genbank
import virtool.http.proxy
import virtool.http.routes
from virtool.api.utils import bad_gateway, json_response, not_found
routes = virtool.http.routes.Routes()
@routes.get("/api/genbank/{accession}")
async def get(req):
"""
Retrieve the Genbank data as... | import aiohttp
import aiohttp.client_exceptions
import virtool.genbank
import virtool.http.proxy
import virtool.http.routes
from virtool.api.utils import bad_gateway, json_response, not_found
routes = virtool.http.routes.Routes()
@routes.get("/api/genbank/{accession}")
async def get(req):
"""
Retrieve the G... | Return 502 when NCBI unavailable | Return 502 when NCBI unavailable
| Python | mit | virtool/virtool,virtool/virtool,igboyes/virtool,igboyes/virtool | python | ## Code Before:
import aiohttp
import aiohttp.web
import virtool.genbank
import virtool.http.proxy
import virtool.http.routes
from virtool.api.utils import bad_gateway, json_response, not_found
routes = virtool.http.routes.Routes()
@routes.get("/api/genbank/{accession}")
async def get(req):
"""
Retrieve the... |
b65f65407f27a3352535c882fe3b852a1bc27d59 | .github/actions/generate-locales/entrypoint.sh | .github/actions/generate-locales/entrypoint.sh | composer install --no-interaction
# Import locales on backend
bin/console locale:generate
# Install NPM dependencies
cd frontend
npm ci
# Import locales on frontend
npm run generate-locales
eval "$@"
| composer install --no-interaction --ignore-platform-req=ext-maxminddb
# Import locales on backend
bin/console locale:generate
# Install NPM dependencies
cd frontend
npm ci
# Import locales on frontend
npm run generate-locales
eval "$@"
| Add exclusion for maxminddb in Composer reqs. | Add exclusion for maxminddb in Composer reqs.
| Shell | agpl-3.0 | SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast | shell | ## Code Before:
composer install --no-interaction
# Import locales on backend
bin/console locale:generate
# Install NPM dependencies
cd frontend
npm ci
# Import locales on frontend
npm run generate-locales
eval "$@"
## Instruction:
Add exclusion for maxminddb in Composer reqs.
## Code After:
composer install --n... |
fdcb03a8e6bb3164d2e616e5f5d52c522a33a31e | pillar/vault/roles/bootcamps.sls | pillar/vault/roles/bootcamps.sls | vault:
roles:
bootcamps-app:
backend: postgresql-bootcamps
name: app
options:
{% raw %}
sql: >-
CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT;
GRANT "{{name}}" TO odldevops;
GRAN... | vault:
roles:
bootcamps-app:
backend: postgresql-bootcamps
name: app
options:
{% raw %}
sql: >-
CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA ... | Fix DB role definition for Bootcamps user in Vault | Fix DB role definition for Bootcamps user in Vault
| SaltStack | bsd-3-clause | mitodl/salt-ops,mitodl/salt-ops | saltstack | ## Code Before:
vault:
roles:
bootcamps-app:
backend: postgresql-bootcamps
name: app
options:
{% raw %}
sql: >-
CREATE USER "{{name}}" WITH PASSWORD '{{password}}' VALID UNTIL '{{expiration}}' IN ROLE "bootcamp-ecommerce" INHERIT;
GRANT "{{name}}" TO odldevops... |
376df8ba93b7cb273a0143839e50a1dbf7cc0dc6 | tests/errors/bug579101.vala | tests/errors/bug579101.vala | void do_foo (out int i) {
i = 0;
try {
return;
} finally {
i = 42;
}
}
void main () {
int i;
do_foo (out i);
assert (i == 42);
}
| errordomain FooError {
FAIL
}
void do_foo (out int i) {
i = 0;
try {
return;
} finally {
i = 42;
}
assert_not_reached ();
}
string do_bar (out int i) {
string s = "bar";
try {
if (s == "bar") {
return s;
}
} finally {
i = 23;
}
assert_not_reached ();
}
string do_manam (out int i) {
string ... | Extend "finally block execution" test to increase coverage | tests: Extend "finally block execution" test to increase coverage
In addition to 9f21d0b182edad861f93a91674787b8b3b4fc2c5
See https://bugzilla.gnome.org/show_bug.cgi?id=579101
| Vala | lgpl-2.1 | frida/vala,GNOME/vala,GNOME/vala,frida/vala,GNOME/vala,frida/vala,frida/vala,GNOME/vala,frida/vala | vala | ## Code Before:
void do_foo (out int i) {
i = 0;
try {
return;
} finally {
i = 42;
}
}
void main () {
int i;
do_foo (out i);
assert (i == 42);
}
## Instruction:
tests: Extend "finally block execution" test to increase coverage
In addition to 9f21d0b182edad861f93a91674787b8b3b4fc2c5
See https://bugzilla.g... |
6280cd7d0d5c91fdb956134e4953c13e0dae376f | opensuse-useful-packages.sh | opensuse-useful-packages.sh |
sudo zypper install \
autoconf \
automake \
bzr \
chromium \
emacs-x11 \
htop \
gcc gcc-c++ \
git git-daemon git-gui gitk \
libtool \
make \
mercurial \
ncurses-devel \
osc \
python-devel \
python-Pygments \
python-six \
python-Sphinx \
python3 \
python3-devel \
python3-Pygments \
python3-six \
python3-Sphinx \
quilt ... |
sudo zypper install \
autoconf \
automake \
bzr \
calibre \
chromium \
emacs-x11 \
htop \
gcc gcc-c++ \
git git-daemon git-gui gitk \
iotop \
libtool \
make \
mercurial \
ncurses-devel \
osc \
python-devel \
python-Pygments \
python-six \
python-Sphinx \
python3 \
python3-devel \
python3-Pygments \
python3-six \
pytho... | Add iotop and calibre packages | Add iotop and calibre packages
| Shell | mit | cataliniacob/misc,cataliniacob/misc | shell | ## Code Before:
sudo zypper install \
autoconf \
automake \
bzr \
chromium \
emacs-x11 \
htop \
gcc gcc-c++ \
git git-daemon git-gui gitk \
libtool \
make \
mercurial \
ncurses-devel \
osc \
python-devel \
python-Pygments \
python-six \
python-Sphinx \
python3 \
python3-devel \
python3-Pygments \
python3-six \
python3... |
12276bf6a6e138ef68ca5356fdd6c53ca42dd538 | app/views/patients/index.haml | app/views/patients/index.haml | / XXX: Pull out the labels from a config file.
.row.pull-right.align-right
= link_to new_patient_path, class: "btn btn-success" do
<i class="fa fa-male"></i> Nuevo paciente
%table.table.table-striped
%thead
%tr
%th Historia
%th Apellidos
%th Nombres
%th Sexo
%th Fecha Nacimien... | / XXX: Pull out the labels from a config file.
.row.pull-right.align-right
= link_to "Nuevo paciente", new_patient_path, class: "btn btn-success"
%table.table.table-striped
%thead
%tr
%th Historia
%th Apellidos
%th Nombres
%th Sexo
%th Fecha Nacimiento
%tbody
- @patients.each ... | Remove icon from new patient button | Remove icon from new patient button
| Haml | mit | acamino/hippocrates,acamino/hippocrates,acamino/hippocrates | haml | ## Code Before:
/ XXX: Pull out the labels from a config file.
.row.pull-right.align-right
= link_to new_patient_path, class: "btn btn-success" do
<i class="fa fa-male"></i> Nuevo paciente
%table.table.table-striped
%thead
%tr
%th Historia
%th Apellidos
%th Nombres
%th Sexo
%t... |
aba731a6b68d09a065e2b97c4eff2d51a86195e1 | index.js | index.js | const express = require('express');
const helmet = require('helmet');
const winston = require('winston');
const bodyParser = require('body-parser');
const env = require('./src/env');
var server = express();
var router = require('./src/router');
var PORT = env.PORT || 8000;
server.use(bodyParser.urlencoded({ extended:... | const express = require('express');
const helmet = require('helmet');
const winston = require('winston');
const bodyParser = require('body-parser');
const env = require('./src/env');
var server = express();
var router = require('./src/router');
var PORT = env.PORT || 8000;
server.use(bodyParser.json());
server.use(he... | Switch to use JSON payload parser | fix: Switch to use JSON payload parser
| JavaScript | mit | NSAppsTeam/nickel-bot | javascript | ## Code Before:
const express = require('express');
const helmet = require('helmet');
const winston = require('winston');
const bodyParser = require('body-parser');
const env = require('./src/env');
var server = express();
var router = require('./src/router');
var PORT = env.PORT || 8000;
server.use(bodyParser.urlenc... |
fabc9983afdfa17ff680ed9238be1d35f751137b | README.md | README.md | [![Latest Version][1]][2]
Generate your license. Yet another [lice][3], but implement with Jinja.
## Install
$ pip install licen
## Usage
A gif is worth than a thousand words.
![demo_gif][gif]
Or get detailed help message from the terminal.
$ licen -h
licen, generates license for you via command lin... | [![Latest Version][1]][2]
[![Build Status][3]][4]
Generate your license. Yet another [lice][3], but implement with Jinja.
## Install
$ pip install licen
## Usage
A gif is worth than a thousand words.
![demo_gif][gif]
Or get detailed help message from the terminal.
$ licen -h
licen, generates license... | Add badage for building status | Add badage for building status
| Markdown | mit | lord63/licen | markdown | ## Code Before:
[![Latest Version][1]][2]
Generate your license. Yet another [lice][3], but implement with Jinja.
## Install
$ pip install licen
## Usage
A gif is worth than a thousand words.
![demo_gif][gif]
Or get detailed help message from the terminal.
$ licen -h
licen, generates license for you... |
ae1cbdd033c2dbedb6e5380531a49f947f41002b | cartodb/maintenance/selectTestRecords.sql | cartodb/maintenance/selectTestRecords.sql | -- SQL to show number of records recorded earlier than tracking_start_date_time.
-- Those records should be removed.
-- https://lifewatch-inbo.cartodb.com/viz/5d42a40a-9951-11e3-8315-0ed66c7bc7f3/table
select
count(*)
from
bird_tracking as t
left join bird_tracking_devices as d
on t.device_info_serial = d.device_inf... | -- SQL to show number of records recorded earlier than tracking_start_date_time.
-- Those records should be removed.
select
count(*)
from
bird_tracking as t
left join bird_tracking_devices as d
on t.device_info_serial = d.device_info_serial
where
t.date_time < d.tracking_start_date_time
| Remove link that does not work | Remove link that does not work | SQL | mit | LifeWatchINBO/bird-tracking,LifeWatchINBO/bird-tracking | sql | ## Code Before:
-- SQL to show number of records recorded earlier than tracking_start_date_time.
-- Those records should be removed.
-- https://lifewatch-inbo.cartodb.com/viz/5d42a40a-9951-11e3-8315-0ed66c7bc7f3/table
select
count(*)
from
bird_tracking as t
left join bird_tracking_devices as d
on t.device_info_seria... |
48aeb44374abc3baae4bb098f9e94dea26c91494 | index.js | index.js |
var opts = require('optimist').argv
var through = require('through2');
function indexhtmlify(opts) {
var s = through(function onwrite(chunk, enc, cb) {
s.push(chunk)
cb()
}, function onend(cb) {
s.push('</script>\n')
s.push('</html>\n')
cb()
})
s.push('<!DOCTYP... |
var opts = require('optimist').argv
var through = require('through2');
function indexhtmlify(opts) {
opts = opts || {}
var s = through(function onwrite(chunk, enc, cb) {
s.push(chunk)
cb()
}, function onend(cb) {
s.push('</script>\n')
s.push('</html>\n')
cb()
}... | Allow passing in a title | Allow passing in a title
| JavaScript | mit | dominictarr/indexhtmlify | javascript | ## Code Before:
var opts = require('optimist').argv
var through = require('through2');
function indexhtmlify(opts) {
var s = through(function onwrite(chunk, enc, cb) {
s.push(chunk)
cb()
}, function onend(cb) {
s.push('</script>\n')
s.push('</html>\n')
cb()
})
... |
786c9c5dfdbdf06c8df1f2ec5ec47a49bf9d9d8c | gumbo/element.lua | gumbo/element.lua | local Element = {}
Element.__index = Element
local function attr_next(attrs, i)
local j = i + 1
local a = attrs[j]
if a then
return j, a.name, a.value, a.namespace, a.line, a.column, a.offset
end
end
function Element:attr_iter()
return attr_next, self.attr or {}, 0
end
function Element:at... | local yield = coroutine.yield
local wrap = coroutine.wrap
local sort = table.sort
local Element = {}
Element.__index = Element
local function attr_yield(attrs)
for i = 1, #attrs do
local a = attrs[i]
yield(i, a.name, a.value, a.namespace, a.line, a.column, a.offset)
end
end
function Element:a... | Use coroutines for attribute iterators | Use coroutines for attribute iterators
| Lua | apache-2.0 | craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo | lua | ## Code Before:
local Element = {}
Element.__index = Element
local function attr_next(attrs, i)
local j = i + 1
local a = attrs[j]
if a then
return j, a.name, a.value, a.namespace, a.line, a.column, a.offset
end
end
function Element:attr_iter()
return attr_next, self.attr or {}, 0
end
fun... |
b6f4eba461661bc6e4f03b07ade7bd4f3542e6e5 | .travis.yml | .travis.yml | language: php
os: linux
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
install:
- composer update --prefer-dist --prefer-stable --no-interaction
script: >-
vendor/bin/phpunit --coverage-clover=build/coverage-report.xml &&
bash <(curl -s https://... | language: php
os: linux
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
install:
- composer update --prefer-dist --prefer-stable --no-interaction
script: >-
vendor/bin/phpunit --coverage-clover=build/coverage-report.xml &&
bash <(curl -s https://codecov.io/b... | Fix PHP 8 CI build | Fix PHP 8 CI build
| YAML | mit | Jean85/pretty-package-versions | yaml | ## Code Before:
language: php
os: linux
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
install:
- composer update --prefer-dist --prefer-stable --no-interaction
script: >-
vendor/bin/phpunit --coverage-clover=build/coverage-report.xml &&
bash <(... |
32d745aa6a1159bb11ef804134841d0a9ffff53b | package.json | package.json | {
"name": "bkb",
"version": "0.23.0",
"description": "A JavaScript Framework for Front-end Applications",
"main": "bkb.min.js",
"types": "bkb.d.ts",
"devDependencies": {
"rollup": "0.57.1",
"typescript": "2.8.1",
"uglify-es": "3.3.9",
"npm-run-all": "4.1.2",
"rimraf": "2.6.2"
},
"scr... | {
"name": "bkb",
"version": "0.23.1",
"description": "A JavaScript Framework for Front-end Applications",
"main": "bkb.min.js",
"types": "bkb.d.ts",
"devDependencies": {
"rollup": "0.57.1",
"typescript": "2.8.1",
"uglify-es": "3.3.9",
"npm-run-all": "4.1.2",
"rimraf": "2.6.2"
},
"scr... | Remove the obsolete home page | Remove the obsolete home page
| JSON | cc0-1.0 | paleo/bkb,paleo/bkb | json | ## Code Before:
{
"name": "bkb",
"version": "0.23.0",
"description": "A JavaScript Framework for Front-end Applications",
"main": "bkb.min.js",
"types": "bkb.d.ts",
"devDependencies": {
"rollup": "0.57.1",
"typescript": "2.8.1",
"uglify-es": "3.3.9",
"npm-run-all": "4.1.2",
"rimraf": "2.... |
fd2dd88acb4c05cb6b634a2d5048e3457b5c198d | README.md | README.md | `tumorr`, an R interface of `tumopp`, has been integrated into [tumopp repository](https://github.com/heavywatal/tumopp).
|
`tumorr` is R interface of [tumopp](https://github.com/heavywatal/tumopp),
a tumor growth simulator in C++.
## Installation
1. Install [tumopp](https://github.com/heavywatal/tumopp) with Homebrew/Linuxbrew or CMake.
2. Install [devtools](https://github.com/hadley/devtools) in R:
`install.packages('devtools')`... | Move all to r/ for integration | :construction: Move all to r/ for integration
| Markdown | mit | heavywatal/tumorr,heavywatal/tumorr | markdown | ## Code Before:
`tumorr`, an R interface of `tumopp`, has been integrated into [tumopp repository](https://github.com/heavywatal/tumopp).
## Instruction:
:construction: Move all to r/ for integration
## Code After:
`tumorr` is R interface of [tumopp](https://github.com/heavywatal/tumopp),
a tumor growth simulator in... |
b3cb09510be89ae26fa057e083b3a8bb678ba419 | Python/racy/plugins/cppunit/rc/testBundle.cpp | Python/racy/plugins/cppunit/rc/testBundle.cpp | /* ***** BEGIN LICENSE BLOCK *****
* Sconspiracy - Copyright (C) IRCAD, 2004-2010.
* Distributed under the terms of the BSD Licence as
* published by the Open Source Initiative.
* ****** END LICENSE BLOCK ****** */
MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath )
{
::boost::filesystem::pat... | /* ***** BEGIN LICENSE BLOCK *****
* Sconspiracy - Copyright (C) IRCAD, 2004-2010.
* Distributed under the terms of the BSD Licence as
* published by the Open Source Initiative.
* ****** END LICENSE BLOCK ****** */
MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath )
{
::boost::filesystem::pat... | Add setup/cleanup for bundle test unit | Add setup/cleanup for bundle test unit
--HG--
branch : experimental
| C++ | bsd-3-clause | cfobel/sconspiracy,cfobel/sconspiracy,cfobel/sconspiracy | c++ | ## Code Before:
/* ***** BEGIN LICENSE BLOCK *****
* Sconspiracy - Copyright (C) IRCAD, 2004-2010.
* Distributed under the terms of the BSD Licence as
* published by the Open Source Initiative.
* ****** END LICENSE BLOCK ****** */
MiniLauncher::MiniLauncher( ::boost::filesystem::path profilePath )
{
::boost:... |
4d4423e4405598bf95738f10b2c6075aee0466a9 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
def index
@updates = ProgressUpdate.all
end
protected
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sig... | class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
def index
@updates = ProgressUpdate.order("created_at DESC")
end
protected
def configure_permitted_parameters
devise_parameter_... | Make newest updates display first on index | Make newest updates display first on index
| Ruby | mit | Cecily2/writing-project-tracker,Cecily2/writing-project-tracker,Cecily2/writing-project-tracker | ruby | ## Code Before:
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
def index
@updates = ProgressUpdate.all
end
protected
def configure_permitted_parameters
devise_parameter_sanit... |
17b44dce06c2a70639bbad45bee696075fa21598 | app/workers/check_gcp_project_billing_worker.rb | app/workers/check_gcp_project_billing_worker.rb | class CheckGcpProjectBillingWorker
include ApplicationWorker
LEASE_TIMEOUT = 15.seconds.to_i
def self.redis_shared_state_key_for(token)
"gitlab:gcp:#{token}:billing_enabled"
end
def perform(token)
return unless token
return unless try_obtain_lease_for(token)
billing_enabled_projects = Chec... | class CheckGcpProjectBillingWorker
include ApplicationWorker
LEASE_TIMEOUT = 15.seconds.to_i
def self.redis_shared_state_key_for(token)
"gitlab:gcp:#{token.hash}:billing_enabled"
end
def perform(token)
return unless token
return unless try_obtain_lease_for(token)
billing_enabled_projects =... | Use token hash for redis key | Use token hash for redis key
| Ruby | mit | jirutka/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,iiet/iiet-git,iiet/iiet-git,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/... | ruby | ## Code Before:
class CheckGcpProjectBillingWorker
include ApplicationWorker
LEASE_TIMEOUT = 15.seconds.to_i
def self.redis_shared_state_key_for(token)
"gitlab:gcp:#{token}:billing_enabled"
end
def perform(token)
return unless token
return unless try_obtain_lease_for(token)
billing_enabled... |
8ff47b1cb1a449593d58657afae0a50577ff35bd | config.cson | config.cson | "*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
welcome:
showOnStartup: false
core: {}
editor:
invisibles: {}
| "*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
welcome:
showOnStartup: false
editor:
invisibles: {}
tabs:
usePreviewTabs: true
| Use preview tab like sublime | Use preview tab like sublime
| CoffeeScript | mit | substantial/atomfiles,substantial/atomfiles | coffeescript | ## Code Before:
"*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
welcome:
showOnStartup: false
core: {}
editor:
invisibles: {}
## Instruction:
Use preview tab like sublime
## Code After:
"*":
"exception-reporting":
userId: "53c5f869-8a29-d7f5-ef48-bc598612bb8d"
we... |
0ca92ea5eeae2ff2f13eb03fed21c0f77eb2f66f | src/site_source/_layouts/default.html | src/site_source/_layouts/default.html | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }}</title>
<!-- fonts: -->
<!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it sh... | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }}</title>
<!-- fonts: -->
<!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are locked down it sh... | Use protocol-less // resource URIs. | Use protocol-less // resource URIs.
| HTML | apache-2.0 | annegentle/developer.rackspace.com,wbentley15/developer.rackspace.com,rackerlabs/developer.rackspace.com,wbentley15/developer.rackspace.com,rackerlabs/developer.rackspace.com,ktbartholomew/developer.rackspace.com,smashwilson/developer.rackspace.com,rgbkrk/developer.rackspace.com,sigmavirus24/developer.rackspace.com,ktb... | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ page.title }}</title>
<!-- fonts: -->
<!-- This will need to be cleaned up before prod. I'm just including every style right now; once the styles are l... |
24f62c26418ee8aa5ff2ccfe59641e58b1ceabfc | karbor/tests/contrib/gate_hook.sh | karbor/tests/contrib/gate_hook.sh |
set -ex
VENV=${1:-"fullstack"}
GATE_DEST=$BASE/new
DEVSTACK_PATH=$GATE_DEST/devstack
echo "Projects: $PROJECTS"
$BASE/new/devstack-gate/devstack-vm-gate.sh
|
set -ex
VENV=${1:-"fullstack"}
GATE_DEST=$BASE/new
DEVSTACK_PATH=$GATE_DEST/devstack
$BASE/new/devstack-gate/devstack-vm-gate.sh | Revert "Print PROJECTS before devstack-vm-gate" | Revert "Print PROJECTS before devstack-vm-gate"
Change-Id: I89aafcd37d21bf47c223c5cae81aa3834882cabb
| Shell | apache-2.0 | openstack/smaug,openstack/smaug | shell | ## Code Before:
set -ex
VENV=${1:-"fullstack"}
GATE_DEST=$BASE/new
DEVSTACK_PATH=$GATE_DEST/devstack
echo "Projects: $PROJECTS"
$BASE/new/devstack-gate/devstack-vm-gate.sh
## Instruction:
Revert "Print PROJECTS before devstack-vm-gate"
Change-Id: I89aafcd37d21bf47c223c5cae81aa3834882cabb
## Code After:
set -ex
... |
8810190115dc1fa531f468245faf86e39380b199 | package.json | package.json | {
"name": "storycrm.compile",
"private": true,
"version": "1.0.0",
"description": "PDF rendering microservice for Story CRM",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Untold Story",
"license": "MIT",
"dependencies": {
"async": "^0.9.0... | {
"name": "storycrm.compile",
"version": "0.1.0",
"description": "PDF rendering microservice for Story CRM",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Untold Story",
"license": "MIT",
"dependencies": {
"async": "^0.9.0",
"bunyan": "^... | Make npm module public and change version to 0.1.0 | Make npm module public and change version to 0.1.0
| JSON | mit | d-koppenhagen/compile,d-koppenhagen/compile | json | ## Code Before:
{
"name": "storycrm.compile",
"private": true,
"version": "1.0.0",
"description": "PDF rendering microservice for Story CRM",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Untold Story",
"license": "MIT",
"dependencies": {
... |
2d077d99e7bfbce30642db21f0cecaee7a522fc5 | .travis.yml | .travis.yml | sudo: false
language: go
go:
- 1.3.1
env:
global:
- PATH=$HOME/gopath/bin:$PATH
before_install:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/tools/godep
- godep restore
script:
- make test
| sudo: false
language: go
go:
- 1.6
env:
global:
- PATH=$HOME/gopath/bin:$PATH
before_install:
- go get github.com/tools/godep
- godep restore
script:
- make test
| Fix Travis by upgrading to Go 1.6 (which includes cover) | Fix Travis by upgrading to Go 1.6 (which includes cover) | YAML | mit | jwilder/forego,jwilder/forego,jwilder/forego | yaml | ## Code Before:
sudo: false
language: go
go:
- 1.3.1
env:
global:
- PATH=$HOME/gopath/bin:$PATH
before_install:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/tools/godep
- godep restore
script:
- make test
## Instruction:
Fix Travis by upgrading to Go 1.6 (which includes cover)
... |
cbd4fdfd80f5a3f88c6c00711b130b2695477eec | lib/Tooling/Refactoring/CMakeLists.txt | lib/Tooling/Refactoring/CMakeLists.txt | set(LLVM_LINK_COMPONENTS Support)
add_clang_library(clangToolingRefactor
ASTSelection.cpp
ASTSelectionRequirements.cpp
AtomicChange.cpp
Extract.cpp
RefactoringActions.cpp
Rename/RenamingAction.cpp
Rename/SymbolOccurrences.cpp
Rename/USRFinder.cpp
Rename/USRFindingAction.cpp
Rename/USRLocFinder.cpp
... | set(LLVM_LINK_COMPONENTS Support)
add_clang_library(clangToolingRefactor
ASTSelection.cpp
ASTSelectionRequirements.cpp
AtomicChange.cpp
Extract.cpp
RefactoringActions.cpp
Rename/RenamingAction.cpp
Rename/SymbolOccurrences.cpp
Rename/USRFinder.cpp
Rename/USRFindingAction.cpp
Rename/USRLocFinder.cpp
... | Add missing clangRewrite lib dependency for clangToolingRefactor | Add missing clangRewrite lib dependency for clangToolingRefactor
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@316467 91177308-0d34-0410-b5e6-96231b3b80d8
| Text | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | text | ## Code Before:
set(LLVM_LINK_COMPONENTS Support)
add_clang_library(clangToolingRefactor
ASTSelection.cpp
ASTSelectionRequirements.cpp
AtomicChange.cpp
Extract.cpp
RefactoringActions.cpp
Rename/RenamingAction.cpp
Rename/SymbolOccurrences.cpp
Rename/USRFinder.cpp
Rename/USRFindingAction.cpp
Rename/U... |
fadd3a218ab673b24e8226c4b99734d98de71540 | src/main/resources/atlassian-plugin.xml | src/main/resources/atlassian-plugin.xml | <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
<param na... | <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
<param na... | Correct packages names for plugin loading. | Correct packages names for plugin loading.
| XML | mit | vicsz/Bamboo-Deployment-Trigger-Task-Plugin | xml | ## Code Before:
<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
... |
c29d2f92456d35b5f92e521f551e089c7f8c94f8 | src/Paths.js | src/Paths.js | let argv = require('yargs').argv;
class Paths {
/**
* Create a new Paths instance.
*/
constructor() {
if (argv['$0'].includes('ava')) {
this.rootPath = path.resolve(__dirname, '../');
} else {
this.rootPath = process.cwd();
}
}
/**
* Set t... | let argv = require('yargs').argv;
class Paths {
/**
* Create a new Paths instance.
*/
constructor() {
if (argv['$0'].includes('ava')) {
this.rootPath = path.resolve(__dirname, '../');
} else {
this.rootPath = process.cwd();
}
}
/**
* Set t... | Use real env var for custom mix file | Use real env var for custom mix file
The previous approach doesn’t work with current webpack cli now.
| JavaScript | mit | JeffreyWay/laravel-mix | javascript | ## Code Before:
let argv = require('yargs').argv;
class Paths {
/**
* Create a new Paths instance.
*/
constructor() {
if (argv['$0'].includes('ava')) {
this.rootPath = path.resolve(__dirname, '../');
} else {
this.rootPath = process.cwd();
}
}
... |
24d3898d9b05395333f9f256307b41ab31ec5026 | app/assets/stylesheets/layout/_footer.scss | app/assets/stylesheets/layout/_footer.scss | .l-footer {
margin-top: $baseline-unit*6;
.social-links {
float: right;
}
.icon--logo {
margin-top: $baseline-unit*2;
}
}
| .l-footer {
.social-links {
float: right;
}
.icon--logo {
margin-top: $baseline-unit*2;
}
}
| Remove footer margin-top so home page has harmonious alignment | Remove footer margin-top so home page has harmonious alignment
| SCSS | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | scss | ## Code Before:
.l-footer {
margin-top: $baseline-unit*6;
.social-links {
float: right;
}
.icon--logo {
margin-top: $baseline-unit*2;
}
}
## Instruction:
Remove footer margin-top so home page has harmonious alignment
## Code After:
.l-footer {
.social-links {
float: right;
}
.icon--logo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.