cassanof/CommitMessageBackwards
Text Generation • 7B • Updated • 10 • 4
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... |
Multilingual version of https://huggingface.co/datasets/nuprl/EditPackFT
If you use our work, please cite our paper as such:
@misc{cassano2023edit,
title={Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructions},
author={Federico Cassano and Luisa Li and Akul Sethi and Noah Shinn and Abby Brennan-Jones and Anton Lozhkov and Carolyn Jane Anderson and Arjun Guha},
year={2023},
eprint={2312.12450},
archivePrefix={arXiv},
primaryClass={cs.SE}
}