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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dfe8ccb6aa8cf423a91675d1e84763ace74afd0e | Sources/Extensions/Bundle.swift | Sources/Extensions/Bundle.swift | //
// NSBundle.swift
// ZamzamKit
//
// Created by Basem Emara on 3/4/16.
// Copyright © 2016 Zamzam. All rights reserved.
//
import Foundation
public extension Bundle {
/**
Gets the contents of the specified file.
- parameter file: Name of file to retrieve contents from.
- parameter... | //
// NSBundle.swift
// ZamzamKit
//
// Created by Basem Emara on 3/4/16.
// Copyright © 2016 Zamzam. All rights reserved.
//
import Foundation
public extension Bundle {
private class TempClassForBundle {}
/// A representation of the code and resources stored in ZamzamKit bundle directory on disk.
... | Add static bundle for conveniently retrieving packaged resources | Add static bundle for conveniently retrieving packaged resources
| Swift | mit | ZamzamInc/ZamzamKit | swift | ## Code Before:
//
// NSBundle.swift
// ZamzamKit
//
// Created by Basem Emara on 3/4/16.
// Copyright © 2016 Zamzam. All rights reserved.
//
import Foundation
public extension Bundle {
/**
Gets the contents of the specified file.
- parameter file: Name of file to retrieve contents from.
... |
9484f8cc3215c5db7f07ee1f8b74b13ff363b88c | app/views/common/_header.html.haml | app/views/common/_header.html.haml | %header.with-proposition.c-hmlr-header#global-header{ role: 'banner' }
.header-wrapper
.header-global
.header-logo
%a.content{ href: '/app/ukhpi', title: 'Go to the UK HPI homepage' }
= image_tag('ukhpi-icon.png', srcset: image_path('ukhpi-icon.svg'), alt: '')
.header-proposition
... | %header.with-proposition.c-hmlr-header#global-header{ role: 'banner' }
.header-wrapper
.header-global
.header-logo
%a.content{ href: '/app/ukhpi', title: 'Go to the UK HPI homepage' }
= image_tag('ukhpi-icon.png', srcset: image_path('ukhpi-icon.svg'), alt: '')
.header-proposition
... | Add comparison table to the menu header | Add comparison table to the menu header
| Haml | mit | epimorphics/ukhpi,epimorphics/ukhpi,epimorphics/ukhpi,epimorphics/ukhpi | haml | ## Code Before:
%header.with-proposition.c-hmlr-header#global-header{ role: 'banner' }
.header-wrapper
.header-global
.header-logo
%a.content{ href: '/app/ukhpi', title: 'Go to the UK HPI homepage' }
= image_tag('ukhpi-icon.png', srcset: image_path('ukhpi-icon.svg'), alt: '')
.header... |
c7103b07ddd7879d21c5cb20370661f7f96a3c6f | .emacs.d/lisp/keybinds.el | .emacs.d/lisp/keybinds.el | ;;; keybinds.el --- For miscellaneous keybindings that don't fit elsewhere
(setq leader "SPC"
leader-double "SPC SPC"
fallback-leader "C-c C-d" ; Fallback used when evil is inactive
fallback-leader-double "C-c C-d C-d")
(defmacro leader-map (&rest maps)
"Assign the given maps with prefix leader i... | ;;; keybinds.el --- For miscellaneous keybindings that don't fit elsewhere
(setq leader "SPC"
leader-double "SPC SPC"
fallback-leader "C-c C-d" ; Fallback used when evil is inactive
fallback-leader-double "C-c C-d C-d")
(defun leader-map (&rest maps)
"Assign the given maps with prefix leader in e... | Make leader-map not a macro; fix misnamed function | Make leader-map not a macro; fix misnamed function
| Emacs Lisp | mit | strburst/dotfiles | emacs-lisp | ## Code Before:
;;; keybinds.el --- For miscellaneous keybindings that don't fit elsewhere
(setq leader "SPC"
leader-double "SPC SPC"
fallback-leader "C-c C-d" ; Fallback used when evil is inactive
fallback-leader-double "C-c C-d C-d")
(defmacro leader-map (&rest maps)
"Assign the given maps with... |
42842e4d0c8242208685f7da7afd88ea5e3c8c4d | lib/railjet/form.rb | lib/railjet/form.rb | module Railjet
module Form
extend ::ActiveSupport::Concern
include Railjet::Validator
included do
const_set(:Error, Class.new(Railjet::FormError))
def initialize(attributes = {})
super(attributes.to_h)
end
end
end
end
| module Railjet
module Form
extend ::ActiveSupport::Concern
include Railjet::Validator
included do
const_set(:Error, Class.new(Railjet::FormError))
def initialize(attributes = {})
super(attributes.respond_to?(:to_unsafe_h) ? attributes.to_unsafe_h : attributes)
end
en... | Make Railjet::Form work in Rails5 and Rails4 | Make Railjet::Form work in Rails5 and Rails4
We want to make it work with `ActionController::Parameters` both in version 4 and 5, but also in non-rails scenario
| Ruby | mit | nedap/railjet,nedap/railjet | ruby | ## Code Before:
module Railjet
module Form
extend ::ActiveSupport::Concern
include Railjet::Validator
included do
const_set(:Error, Class.new(Railjet::FormError))
def initialize(attributes = {})
super(attributes.to_h)
end
end
end
end
## Instruction:
Make Railjet::... |
3d5b9d4fccae9fa06b287422a699012744072953 | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.3.0
addons:
apt:
packages:
- libkrb5-3
- libkrb5-26-heimdal
cache:
- bundler
- apt
script: bundle exec bash run_tests.sh | language: ruby
rvm:
- 2.3.0
- 2.2.4
- 2.1.9
addons:
apt:
packages:
- libkrb5-3
- libkrb5-26-heimdal
cache:
- bundler
- apt
script: bundle exec bash run_tests.sh | Add stable releases of Ruby | Add stable releases of Ruby
| YAML | mit | stupidpupil/kerberos_authenticator,stupidpupil/kerberos_authenticator | yaml | ## Code Before:
language: ruby
rvm:
- 2.3.0
addons:
apt:
packages:
- libkrb5-3
- libkrb5-26-heimdal
cache:
- bundler
- apt
script: bundle exec bash run_tests.sh
## Instruction:
Add stable releases of Ruby
## Code After:
language: ruby
rvm:
- 2.3.0
- 2.2.4
- 2.1.9
addons:
apt:
packages:
... |
728693fbf3fbad513fec2d1bee6aeabe4e5caf91 | frontend/src/components/ViewActivities/activityday.js | frontend/src/components/ViewActivities/activityday.js | import React from 'react';
import Accordion from 'react-bootstrap/Accordion';
import Card from 'react-bootstrap/Card';
import Activity from './activity';
import * as activityFns from './activityfns';
import * as utils from '../Utils/utils.js'
class ActivityDay extends React.Component {
/** @inheritdoc */
construct... | import React from 'react';
import Accordion from 'react-bootstrap/Accordion';
import Card from 'react-bootstrap/Card';
import Activity from './activity';
import * as activityFns from './activityfns';
import * as utils from '../Utils/utils.js'
class ActivityDay extends React.Component {
/** @inheritdoc */
construct... | Remove state variable where it can be removed. | Remove state variable where it can be removed.
| JavaScript | apache-2.0 | googleinterns/SLURP,googleinterns/SLURP,googleinterns/SLURP | javascript | ## Code Before:
import React from 'react';
import Accordion from 'react-bootstrap/Accordion';
import Card from 'react-bootstrap/Card';
import Activity from './activity';
import * as activityFns from './activityfns';
import * as utils from '../Utils/utils.js'
class ActivityDay extends React.Component {
/** @inheritdo... |
dd45f3e36a34dbaa59938eaf290312e8ce32a790 | setup/nodes/www/ins.txt | setup/nodes/www/ins.txt | sudo vim /etc/postgresql/9.4/main/postgresql.conf
#listen_addresses = 'localhost'
listen_addresses = '*'
# allow connections from known IPs
sudo vim /etc/postgresql/9.4/main/pg_hba.conf
# vagrant host:
host veyepar veyepar 10.0.2.2/32 md5
# restart server to read above conf changes
sudo servi... |
fabfile.py
'hosts': ['root@104.130.73.49'],
# set up ssh keys
fab prod provision
# do things fabfile.py didn't do for us.
ssh root@104.130.73.49
# set postgresql to listen on all ports
sudo vim /etc/postgresql/9.4/main/postgresql.conf
#listen_addresses = 'localhost'
listen_addresses = '*'
# allow connection... | Document where to set parameters for remote deployment. | Document where to set parameters for remote deployment.
| Text | mit | xfxf/veyepar,EricSchles/veyepar,CarlFK/veyepar,xfxf/veyepar,yoe/veyepar,CarlFK/veyepar,EricSchles/veyepar,xfxf/veyepar,CarlFK/veyepar,yoe/veyepar,yoe/veyepar,EricSchles/veyepar,yoe/veyepar,CarlFK/veyepar,EricSchles/veyepar,EricSchles/veyepar,CarlFK/veyepar,xfxf/veyepar,yoe/veyepar,xfxf/veyepar | text | ## Code Before:
sudo vim /etc/postgresql/9.4/main/postgresql.conf
#listen_addresses = 'localhost'
listen_addresses = '*'
# allow connections from known IPs
sudo vim /etc/postgresql/9.4/main/pg_hba.conf
# vagrant host:
host veyepar veyepar 10.0.2.2/32 md5
# restart server to read above conf ch... |
79c5a3b12fbe0ccde4bf8ec8694d42696241621d | products/bika/browser/clientfolder.py | products/bika/browser/clientfolder.py | from Products.CMFCore.utils import getToolByName
from Products.bika import logger
from Products.bika.browser.bika_folder_contents import BikaFolderContentsView
from plone.app.content.browser.interfaces import IFolderContentsView
from zope.interface import implements
class ClientFolderContentsView(BikaFolderContentsVie... | from Products.CMFCore.utils import getToolByName
from Products.bika import logger
from Products.bika.browser.bika_folder_contents import BikaFolderContentsView
from plone.app.content.browser.interfaces import IFolderContentsView
from zope.interface import implements
class ClientFolderContentsView(BikaFolderContentsVie... | Remove 'field' and 'icon' from column list | Remove 'field' and 'icon' from column list
| Python | agpl-3.0 | veroc/Bika-LIMS,veroc/Bika-LIMS,veroc/Bika-LIMS,DeBortoliWines/Bika-LIMS,labsanmartin/Bika-LIMS,rockfruit/bika.lims,labsanmartin/Bika-LIMS,DeBortoliWines/Bika-LIMS,labsanmartin/Bika-LIMS,anneline/Bika-LIMS,anneline/Bika-LIMS,DeBortoliWines/Bika-LIMS,anneline/Bika-LIMS,rockfruit/bika.lims | python | ## Code Before:
from Products.CMFCore.utils import getToolByName
from Products.bika import logger
from Products.bika.browser.bika_folder_contents import BikaFolderContentsView
from plone.app.content.browser.interfaces import IFolderContentsView
from zope.interface import implements
class ClientFolderContentsView(BikaF... |
4be3a844cc8d392e7777a92e95a4a74c111c3c73 | src/test/groovy/kotka/groovy/zweig/TestZweigBuilder.groovy | src/test/groovy/kotka/groovy/zweig/TestZweigBuilder.groovy | package kotka.groovy.zweig
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.expr.ConstantExpression
import org.codehaus.groovy.ast.expr.VariableExpression
import spock.lang.Specification
class TestZweigBuilder extends Specification {
def "Strings and Numbers are constants"() {
when:... | package kotka.groovy.zweig
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.expr.ConstantExpression
import org.codehaus.groovy.ast.expr.VariableExpression
import spock.lang.Specification
class TestZweigBuilder extends Specification {
def "Strings and Numbers are constants"() {
when:... | Use AstAssert utility in tests | Use AstAssert utility in tests
| Groovy | mit | kotkade/zweig | groovy | ## Code Before:
package kotka.groovy.zweig
import org.codehaus.groovy.ast.Parameter
import org.codehaus.groovy.ast.expr.ConstantExpression
import org.codehaus.groovy.ast.expr.VariableExpression
import spock.lang.Specification
class TestZweigBuilder extends Specification {
def "Strings and Numbers are constants"()... |
397443bc34f1cfa19deb9f393814f427b54ebb37 | file.go | file.go | // Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package utils
import (
"path"
"path/filepath"
"strings"
"launchpad.net/juju-core/juju/osenv"
)
// NormalizePath replaces a leading ~ with $HOME, and removes any .. or . path
// elements.
func NormalizePath(dir string) s... | // Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package utils
import (
"fmt"
"os"
"path"
"path/filepath"
"strings"
"launchpad.net/juju-core/juju/osenv"
)
// NormalizePath replaces a leading ~ with $HOME, and removes any .. or . path
// elements.
func NormalizePath(... | Move the UniqueDirectory function into utils package. | Move the UniqueDirectory function into utils package. | Go | bsd-3-clause | rogpeppe/juju-utils,dimitern/utils | go | ## Code Before:
// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package utils
import (
"path"
"path/filepath"
"strings"
"launchpad.net/juju-core/juju/osenv"
)
// NormalizePath replaces a leading ~ with $HOME, and removes any .. or . path
// elements.
func NormalizePa... |
4eba3faa022cc3cbfb57c759f7b0340576db3c95 | tests/main.cpp | tests/main.cpp |
BOOST_AUTO_TEST_CASE(Basic_construction)
{
SharedResource<int> shared_int;
}
BOOST_AUTO_TEST_CASE(Construction_with_argument)
{
SharedResource<int> shared_int(5);
}
BOOST_AUTO_TEST_CASE(Construction_no_default_constructor)
{
struct TestClass
{
TestClass() = delete;
TestClass(int) {... |
BOOST_AUTO_TEST_CASE(Basic_construction)
{
SharedResource<int> shared_int;
}
BOOST_AUTO_TEST_CASE(Construction_with_argument)
{
SharedResource<int> shared_int(5);
}
BOOST_AUTO_TEST_CASE(Construction_no_default_constructor)
{
struct TestClass
{
TestClass() = delete;
TestClass(int) {... | Test for SharedResourse::Accessor::isValid method added | Test for SharedResourse::Accessor::isValid method added
| C++ | unlicense | isapego/shared-resource,stack-trace/shared-resource | c++ | ## Code Before:
BOOST_AUTO_TEST_CASE(Basic_construction)
{
SharedResource<int> shared_int;
}
BOOST_AUTO_TEST_CASE(Construction_with_argument)
{
SharedResource<int> shared_int(5);
}
BOOST_AUTO_TEST_CASE(Construction_no_default_constructor)
{
struct TestClass
{
TestClass() = delete;
... |
b73b67eb33f94406b4444dd497c54b8a6ab5ee1a | tox.ini | tox.ini | [tox]
envlist = py{27,36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,latest}
[testenv]
setev =
LANG=C
deps =
.
readthedocs-sphinx-ext
pytest
sphinxcontrib-httpdomain
sphinx16: Sphinx==1.6.*
sphinx17: Sphinx==1.7.*
sphinx18: Sphinx==1.8.*
sphinx20: Sphinx==2.0.*
... | [tox]
envlist = py{27,36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,latest}
[testenv]
setev =
LANG=C
deps =
.
readthedocs-sphinx-ext
pytest
sphinxcontrib-httpdomain
sphinx16: Sphinx < 1.7
sphinx17: Sphinx < 1.8
sphinx18: Sphinx < 1.9
sphinx20: Sphinx < 2.1
sph... | Revert "Test with official beta" | Revert "Test with official beta"
This reverts commit db302055b90cef869052d2e255d32dcb6bf6a5a0.
| INI | mit | snide/sphinx_rtd_theme,snide/sphinx_rtd_theme,snide/sphinx_rtd_theme,snide/sphinx_rtd_theme | ini | ## Code Before:
[tox]
envlist = py{27,36,37,38,39}-sphinx{16,17,18,20,21,22,23,24,30,31,32,33,34,35,40,latest}
[testenv]
setev =
LANG=C
deps =
.
readthedocs-sphinx-ext
pytest
sphinxcontrib-httpdomain
sphinx16: Sphinx==1.6.*
sphinx17: Sphinx==1.7.*
sphinx18: Sphinx==1.8.*
sphinx20: S... |
7e6fceab8d5428dd24ce8fed3a2e0bd799caabae | provisioning/tasks/install_node.yml | provisioning/tasks/install_node.yml |
- name: install nodesource key
apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present
- name: install nodesource repository
apt_repository: repo='deb https://deb.nodesource.com/node_0.12 trusty main' state=present
- name: install node
apt: name={{ item }} state=present
with_items:
... |
- name: install nodesource key
apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present
- name: install nodesource repository
apt_repository: repo='deb https://deb.nodesource.com/node_0.12 trusty main' state=present
- name: install node
apt: name={{ item }} state=present
with_items:
... | Remove useless install of the node-gyp npm global package. | Remove useless install of the node-gyp npm global package.
| YAML | mit | promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico | yaml | ## Code Before:
- name: install nodesource key
apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present
- name: install nodesource repository
apt_repository: repo='deb https://deb.nodesource.com/node_0.12 trusty main' state=present
- name: install node
apt: name={{ item }} state=present
... |
9cb2f8d9efef1d47ddaec2266bcc203baa1990bc | test/index.js | test/index.js | var readFile = require('fs').readFile;
var assert = require('assert');
var exec = require('child_process').exec;
var join = require('path').join;
// Test the expected output.
exec('node .', function(err, stdout, stderr) {
if (err) {
throw err;
}
readFile(join(__dirname, 'expected.txt'), 'UTF-8', f... | var readFile = require('fs').readFile;
var assert = require('assert');
var exec = require('child_process').exec;
var join = require('path').join;
var platform = require('os').platform;
// Test the expected output.
exec('node .', function(err, stdout, stderr) {
if (err) {
throw err;
}
readFile(join... | Add test support for Windows | Add test support for Windows
| JavaScript | isc | unioncollege-webtech/fizzbuzz | javascript | ## Code Before:
var readFile = require('fs').readFile;
var assert = require('assert');
var exec = require('child_process').exec;
var join = require('path').join;
// Test the expected output.
exec('node .', function(err, stdout, stderr) {
if (err) {
throw err;
}
readFile(join(__dirname, 'expected.t... |
a1be174fddd63f4de2845c09b1226b5c1717c351 | template/plain_text/base.txt | template/plain_text/base.txt | {% block head %}[HEADER]{% endblock %}
{% set author = root.author %}
{% include 'plain_text/author.txt' %}
{% set positions = root.positions %}
{% include 'plain_text/positions.txt' %}
| {% block head %}[HEADER]{% endblock %}
{% set author = root.author %}
{% include 'plain_text/author.txt' %}
{% set positions = root.positions %}
{% include 'plain_text/positions.txt' %}
{% block foot %}
Generated from YAML source with jinja2
{%- endblock %}
| Add "Generated from YAML with jinja2" footer | Add "Generated from YAML with jinja2" footer
Sent from my iPhone
| Text | mit | sjbarag/poorly-named-resume-generator,sjbarag/poorly-named-resume-generator | text | ## Code Before:
{% block head %}[HEADER]{% endblock %}
{% set author = root.author %}
{% include 'plain_text/author.txt' %}
{% set positions = root.positions %}
{% include 'plain_text/positions.txt' %}
## Instruction:
Add "Generated from YAML with jinja2" footer
Sent from my iPhone
## Code After:
{% block head %}... |
171e43a9aee813c53f970d28379074a0c682575f | src/test/java/AllTests.java | src/test/java/AllTests.java | import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
import br.com.cronapi.xml.XmlTest;
impo... | import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.math.MathTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
im... | Add class test in suite class test. | :ok_hand: Add class test in suite class test.
| Java | mit | technecloud/cronapi-java | java | ## Code Before:
import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
import br.com.cronapi.x... |
c422df08fd302fd74524b0f1c177fe65f60e5fb8 | lib/resources/packages.js | lib/resources/packages.js | 'use strict';
module.exports = {
all: {
method: 'GET',
path: '/'
},
byName: {
method: 'GET',
path: '/:package'
},
add: {
method: 'POST',
path: '/'
},
download: {
method: 'GET',
path: '/:package/tarball',
stream: true
},
upload: {
method: 'POST',
path: '/:pa... | 'use strict';
module.exports = {
all: {
method: 'GET',
path: '/'
},
byName: {
method: 'GET',
path: '/:package'
},
add: {
method: 'POST',
path: '/'
},
download: {
method: 'GET',
path: '/:package/tarball/:os/:arch',
stream: true
},
upload: {
method: 'POST',
p... | Fix download and upload urls | Fix download and upload urls
| JavaScript | mit | nachos/server-api | javascript | ## Code Before:
'use strict';
module.exports = {
all: {
method: 'GET',
path: '/'
},
byName: {
method: 'GET',
path: '/:package'
},
add: {
method: 'POST',
path: '/'
},
download: {
method: 'GET',
path: '/:package/tarball',
stream: true
},
upload: {
method: 'POST',... |
c2a24711e6ad5d2032533e74a9070c1ed0b9a1d9 | setup/teardown_tests.sh | setup/teardown_tests.sh |
echo "Removing environment from "${CONDA_TEMP_PREFIX}
if [ ${CI} == "true" ] ; then
conda deactivate emissiontest
else
source deactivate emissiontest
fi
conda env remove --yes --name emissiontest
# rm conf/net/ext_service/habitica.json
# rm conf/net/ext_service/push.json
# rm seed_model.json
|
echo "Removing environment from "${CONDA_TEMP_PREFIX}
if [ ${CI} == "true" ] ; then
conda deactivate
else
source deactivate emissiontest
fi
conda env remove --yes --name emissiontest
# rm conf/net/ext_service/habitica.json
# rm conf/net/ext_service/push.json
# rm seed_model.json
| Handle subtle difference between conda and source deactivate | Handle subtle difference between conda and source deactivate
| Shell | bsd-3-clause | shankari/e-mission-server,shankari/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server | shell | ## Code Before:
echo "Removing environment from "${CONDA_TEMP_PREFIX}
if [ ${CI} == "true" ] ; then
conda deactivate emissiontest
else
source deactivate emissiontest
fi
conda env remove --yes --name emissiontest
# rm conf/net/ext_service/habitica.json
# rm conf/net/ext_service/push.json
# rm seed_model.json
... |
2778096c6683257d672760908f4c07b0e6a1cedc | setup.py | setup.py | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
packages = []
package_dir = "dbbackup"
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
packages = []
package_dir = "dbbackup"
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
... | Remove dropbox and boto as dependencies because they are optional and boto is not py3 compat | Remove dropbox and boto as dependencies because they are optional and boto is not py3 compat
| Python | bsd-3-clause | bahoo/django-dbbackup,bahoo/django-dbbackup | python | ## Code Before:
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
packages = []
package_dir = "dbbackup"
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerat... |
9882a725afda4c6ac63d3971b441e3fbf8d5606b | _data/_2020_members.yml | _data/_2020_members.yml | - name: Kristian Snyder
short_bio: I'm a third-year CS major working in Go, C#, and Python, currently co-oping at Great American Insurance. I'm into learning more about network security and crypto.
image_url: https://avatars2.githubusercontent.com/u/14251689
github: snyderks
website: https://kristiansnyder.... | - name: Kristian Snyder
short_bio: I'm a third-year CS major working in Go, C#, and Python, currently co-oping at Great American Insurance. I'm into learning more about network security and crypto.
image_url: https://avatars2.githubusercontent.com/u/14251689
github: snyderks
website: https://kristiansnyder.... | Add Rishabh to class of 2020 list | Add Rishabh to class of 2020 list | YAML | mit | ACMatUC/acm-website,ACMatUC/acm-website,ACMatUC/acm-website | yaml | ## Code Before:
- name: Kristian Snyder
short_bio: I'm a third-year CS major working in Go, C#, and Python, currently co-oping at Great American Insurance. I'm into learning more about network security and crypto.
image_url: https://avatars2.githubusercontent.com/u/14251689
github: snyderks
website: https://kri... |
8671c037cba089e7dbb7f1e7b1d6017104a67e28 | spec/models/author_spec.rb | spec/models/author_spec.rb | require File.dirname(__FILE__) + '/../spec_helper'
describe Author do
should_allow_values_for :name, "John Doe", :allow_nil => true
should_validate_length_of :name, :minimum => 2, :maximum => 255
should_allow_values_for :email, "john@doe.co.uk", :allow_nil => true
should_not_allow_values_for :email, "test", "... | require File.dirname(__FILE__) + '/../spec_helper'
describe Author do
should_allow_values_for :name, "John Doe", :allow_nil => true
should_validate_length_of :name, :minimum => 2, :maximum => 255
should_allow_values_for :email, "john@doe.co.uk", :allow_nil => true
should_have_many :versions
it "should have... | Update spec to reflect changes in Author model | Update spec to reflect changes in Author model
| Ruby | mit | tenforwardconsulting/crantastic,tenforwardconsulting/crantastic,tenforwardconsulting/crantastic,hadley/crantastic,hadley/crantastic,hadley/crantastic,tenforwardconsulting/crantastic | ruby | ## Code Before:
require File.dirname(__FILE__) + '/../spec_helper'
describe Author do
should_allow_values_for :name, "John Doe", :allow_nil => true
should_validate_length_of :name, :minimum => 2, :maximum => 255
should_allow_values_for :email, "john@doe.co.uk", :allow_nil => true
should_not_allow_values_for :... |
f0420e137e5f3dfa5835282f1d82be3e44d21bc1 | README.md | README.md |
Support scripts for Neubot on M-Lab.
## Install development tools
```
yum --disablerepo=epel groupinstall -y 'Development tools'
```
## Build RPM from development branch
```
cd /tmp
git clone --recursive -b develop https://github.com/neubot/neubot-support.git
cd neubot-support
git checkout <tag>
./package/slicebui... |
Support scripts for Neubot on M-Lab.
## Build RPM from development branch
Login on a development machine (i.e. mlab4.prg01), then:
### Install development tools
```
yum --disablerepo=epel groupinstall -y 'Development tools'
```
### Clone the repository
```
cd /tmp
git clone --recursive -b develop https://github.... | Update build instructions to be current | Update build instructions to be current
| Markdown | apache-2.0 | neubot/mlab-neubot-support,m-lab/neubot-support,bassosimone/neubot-support | markdown | ## Code Before:
Support scripts for Neubot on M-Lab.
## Install development tools
```
yum --disablerepo=epel groupinstall -y 'Development tools'
```
## Build RPM from development branch
```
cd /tmp
git clone --recursive -b develop https://github.com/neubot/neubot-support.git
cd neubot-support
git checkout <tag>
./... |
3686a09afadfca858f59234ec220bb4d81c8099e | src/gov/nih/nci/camod/service/CurationManager.java | src/gov/nih/nci/camod/service/CurationManager.java | /**
* Copyright (c) 2001, SAIC, its vendors, and suppliers. ALL RIGHTS RESERVED.
*
* @author: Johnita Beasley
* @date: July 20, 2005
*
* Revision History
* ----------------
*
* 2005 July 21 Johnita Beasley Created and successfully compiled.
* 2005 August 18 Sumeet Rajput Integrated with caMOD code... | /**
* Copyright (c) 2001, SAIC, its vendors, and suppliers. ALL RIGHTS RESERVED.
*
* @author: Johnita Beasley
* @date: July 20, 2005
*
* Revision History
* ----------------
*
* 2005 July 21 Johnita Beasley Created and successfully compiled.
* 2005 August 18 Sumeet Rajput Integrated with caMOD code... | Change to process flow for curation model | Change to process flow for curation model
SVN-Revision: 271
| Java | bsd-3-clause | NCIP/camod,NCIP/camod,NCIP/camod,NCIP/camod | java | ## Code Before:
/**
* Copyright (c) 2001, SAIC, its vendors, and suppliers. ALL RIGHTS RESERVED.
*
* @author: Johnita Beasley
* @date: July 20, 2005
*
* Revision History
* ----------------
*
* 2005 July 21 Johnita Beasley Created and successfully compiled.
* 2005 August 18 Sumeet Rajput Integrated... |
56583e9cb09dfbcea6da93af4d10268b51b232e9 | js/casper.js | js/casper.js | var fs = require('fs');
var links;
function getLinks() {
// Scrape the links from primary nav of the website
var links = document.querySelectorAll('.nav-link.t-nav-link');
return Array.prototype.map.call(links, function (e) {
return e.getAttribute('href')
});
}
casper.start('http://192.168.13.37/i... | var fs = require('fs');
var links;
function getLinks() {
var links = document.querySelectorAll('.nav-link.t-nav-link');
return Array.prototype.map.call(links, function (e) {
return e.getAttribute('href')
});
}
casper.start('http://192.168.13.37/index.php', function() {
fs.write('tests/validati... | Fix For Loop to Iterate Every Link in Primary Nav | Fix For Loop to Iterate Every Link in Primary Nav
| JavaScript | mit | jadu/pulsar,jadu/pulsar,jadu/pulsar | javascript | ## Code Before:
var fs = require('fs');
var links;
function getLinks() {
// Scrape the links from primary nav of the website
var links = document.querySelectorAll('.nav-link.t-nav-link');
return Array.prototype.map.call(links, function (e) {
return e.getAttribute('href')
});
}
casper.start('http:/... |
8edef45bbc1f014960a4f2f3869954711091867d | src/main/java/jp/ne/naokiur/design/pattern/memento/App.java | src/main/java/jp/ne/naokiur/design/pattern/memento/App.java | package jp.ne.naokiur.design.pattern.memento;
public class App {
public static void main(String[] args) {
CanvasVersionManagement management = new CanvasVersionManagement();
Canvas canvas = new Canvas();
canvas.paint("test");
System.out.println(canvas.getPainting());
manag... | package jp.ne.naokiur.design.pattern.memento;
public class App {
public static void main(String[] args) {
CanvasVersionManagement management = new CanvasVersionManagement();
Canvas canvas = new Canvas();
canvas.paint("test");
System.out.println(canvas.getPainting());
manag... | Change confirmation of execution code.. | Change confirmation of execution code..
| Java | apache-2.0 | naokiur/design-pattern-sample | java | ## Code Before:
package jp.ne.naokiur.design.pattern.memento;
public class App {
public static void main(String[] args) {
CanvasVersionManagement management = new CanvasVersionManagement();
Canvas canvas = new Canvas();
canvas.paint("test");
System.out.println(canvas.getPainting()... |
1656c78511c3ab2f45ff3f1f478bf5a4dd11dcee | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
get 'projects/new' => 'projects#new', as: :new_project
get 'projects/:id' => 'projects#show', as: :project
post 'projects' => 'projects#create', as: :projects
get 'projects' => 'projects#index', as: :project_index
get '/login', to: 'sessions#new', as: 'login'
get '/log... | Rails.application.routes.draw do
get 'projects/new' => 'projects#new', as: :new_project
get 'projects/:id' => 'projects#show', as: :project
post 'projects' => 'projects#create', as: :projects
get 'projects' => 'projects#index', as: :project_index
get '/login', to: 'sessions#new', as: 'login'
get '/log... | Allow repos with dots in the name | Allow repos with dots in the name | Ruby | mit | jasnow/contribulator,wadtech/contribulator,andrew/contribulator,andrew/contribulator,wadtech/contribulator,Yomawa/contribulator,wadtech/contribulator,Yomawa/contribulator,jasnow/contribulator,24pullrequests/contribulator,andrew/contribulator,24pullrequests/contribulator,jasnow/contribulator,Yomawa/contribulator,24pullr... | ruby | ## Code Before:
Rails.application.routes.draw do
get 'projects/new' => 'projects#new', as: :new_project
get 'projects/:id' => 'projects#show', as: :project
post 'projects' => 'projects#create', as: :projects
get 'projects' => 'projects#index', as: :project_index
get '/login', to: 'sessions#new', as: 'lo... |
c53c61b2fc4441947c9fa4e194487b6bba23923b | spec/spec_helpers/test_coverage.rb | spec/spec_helpers/test_coverage.rb | def codeclimate?
ENV['CODECLIMATE_REPO_TOKEN']
end
def simplecov?
ENV['COVERAGE']
end
def coverage?
simplecov? || codeclimate?
end
def measure_coverage
require 'simplecov'
formatters = [SimpleCov::Formatter::HTMLFormatter]
if codeclimate?
require 'codeclimate-test-reporter'
formatters << CodeCli... | def codeclimate?
ENV['CODECLIMATE_REPO_TOKEN']
end
def simplecov?
ENV['COVERAGE']
end
def coverage?
simplecov? || codeclimate?
end
def measure_coverage
require 'simplecov'
formatters = []
formatters << SimpleCov::Formatter::HTMLFormatter if coverage?
if codeclimate?
require 'codeclimate-test-repor... | Make simplecov HTML formatter optional | Make simplecov HTML formatter optional
| Ruby | mit | andis/wright,sometimesfood/wright | ruby | ## Code Before:
def codeclimate?
ENV['CODECLIMATE_REPO_TOKEN']
end
def simplecov?
ENV['COVERAGE']
end
def coverage?
simplecov? || codeclimate?
end
def measure_coverage
require 'simplecov'
formatters = [SimpleCov::Formatter::HTMLFormatter]
if codeclimate?
require 'codeclimate-test-reporter'
forma... |
0061dbe29c0b01872f826422cc6217d7286e3415 | Readme.md | Readme.md | as
===
**`as/array` and `as/object`. Convert easily, back and forth.**
[](https://travis-ci.org/tomekwi/as.js)
[](https://coveralls.io/r/tomekwi/as.js)
... | [](https://travis-ci.org/tomekwi/as.js)
[](https://coveralls.io/r/tomekwi/as.js)
[](https://travis-ci.org/tomekwi/as.js)
[](https://coveralls.io/r/... |
88b7ef4d136a243dabf1c8dc69e51b6d3628294f | app/views/events/_form.html.erb | app/views/events/_form.html.erb | <%= form_for @event do |f|%>
<%= text_area_tag :emails, "", {:placeholder => "Invite guests by entering emails separated by commas!"} %>
<fieldset>
<%= f.text_field :name, placeholder: "Event Name" %>
<%= f.date_field :date %>
<%= f.time_field :time %>
<%= f.text_field :location, placeholder: "Eve... | <%= form_for @event do |f|%>
<fieldset>
<%= f.text_field :name, placeholder: "Event Name" %>
<%= f.date_field :date %>
<%= f.time_field :time %>
<%= f.text_field :location, placeholder: "Event Location" %>
<%= text_area_tag :emails, "", {:placeholder => "Invite guests by entering emails separated ... | Move email box within field for event | Move email box within field for event
| HTML+ERB | mit | mud-turtles-2014/palate,mud-turtles-2014/palate | html+erb | ## Code Before:
<%= form_for @event do |f|%>
<%= text_area_tag :emails, "", {:placeholder => "Invite guests by entering emails separated by commas!"} %>
<fieldset>
<%= f.text_field :name, placeholder: "Event Name" %>
<%= f.date_field :date %>
<%= f.time_field :time %>
<%= f.text_field :location, p... |
967025262467451ecdfffc9868e924b1d411f3f6 | appveyor.yml | appveyor.yml | version: '{build}'
image: Visual Studio 2017
build_script:
- ps: >-
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
$id = $id.Substring(0, 13)
.\pack.cmd ci-$id
test_script:
- cmd: test.cmd
artifacts:
- path: dist\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/mo... | version: '{build}'
image: Visual Studio 2017
build_script:
- ps: >-
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
$id = $id.Substring(0, 13)
.\pack.cmd ci-$id
test_script:
- cmd: test.cmd
artifacts:
- path: dist\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/mo... | Deploy packages from master branch only | Deploy packages from master branch only
| YAML | apache-2.0 | fsateler/MoreLINQ,fsateler/MoreLINQ,ddpruitt/morelinq,morelinq/MoreLINQ,ddpruitt/morelinq,morelinq/MoreLINQ | yaml | ## Code Before:
version: '{build}'
image: Visual Studio 2017
build_script:
- ps: >-
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
$id = $id.Substring(0, 13)
.\pack.cmd ci-$id
test_script:
- cmd: test.cmd
artifacts:
- path: dist\*.nupkg
deploy:
- provider: NuGet
server: https://ww... |
296a66c0f3b6e5bafda6a590ad37bdc2a87cff95 | ArgoTests/JSON/post_bad_comments.json | ArgoTests/JSON/post_bad_comments.json | {
"id": 3,
"text": "A Cool story.",
"author": {
"id": 1,
"name": "Cool User"
},
"comments": [
{
"id": 6,
"text": "Cool story bro.",
"author": {
"id": 1,
"name": "Cool User"
}
},
{
"id": 6,
"text": "Cool story bro.",
"author": {
"id": 1,
... | {
"id": 3,
"text": "A Cool story.",
"author": {
"id": 1,
"name": "Cool User"
},
"comments": [
{
"id": 6,
"text": "Cool story bro.",
"author": {
"id": 1,
"name": "Cool User"
}
},
{
"id": 6,
"author": {
"id": 1,
"name": "Cool User"
}
... | Modify test json for posts to fail | Modify test json for posts to fail
| JSON | mit | ikesyo/Argo,screeninteraction/Argo,ojolabs/Argo,LIFX/Argo,Ben-G/Argo,cradnovich/Argo,Ben-G/Argo,thoughtbot/Argo,perrychen901105/Argo,lowell/Argo,nickygerritsen/Argo,jsslai/Argo,klaaspieter/Argo,alskipp/Argo,thoughtbot/Argo,nvh/Argo,vorlando/Argo,RuiAAPeres/Argo,perrychen901105/Argo,RuiAAPeres/Argo,JaviSoto/Argo,alvinva... | json | ## Code Before:
{
"id": 3,
"text": "A Cool story.",
"author": {
"id": 1,
"name": "Cool User"
},
"comments": [
{
"id": 6,
"text": "Cool story bro.",
"author": {
"id": 1,
"name": "Cool User"
}
},
{
"id": 6,
"text": "Cool story bro.",
"author": {
... |
a31738e13391634abd5704035cc83733f6a776d6 | myaws/ssm_parameter_ls.go | myaws/ssm_parameter_ls.go | package myaws
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/pkg/errors"
)
// SSMParameterLsOptions customize the behavior of the ParameterGet command.
type SSMParameterLsOptions struct {
Name string
}
// SSMParameterLs get values from SSM parameter store wit... | package myaws
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/pkg/errors"
)
// SSMParameterLsOptions customize the behavior of the ParameterGet command.
type SSMParameterLsOptions struct {
Name string
}
// SSMParameterLs get values from SSM parameter store wit... | Fix bug of ssm parameter ls when name is empty | Fix bug of ssm parameter ls when name is empty
| Go | mit | minamijoyo/myaws | go | ## Code Before:
package myaws
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ssm"
"github.com/pkg/errors"
)
// SSMParameterLsOptions customize the behavior of the ParameterGet command.
type SSMParameterLsOptions struct {
Name string
}
// SSMParameterLs get values from SSM par... |
dc2b310bc0e22760f7520bf04e683d6d3ab320a2 | vagrants/18.04/basic/bootstrap.sh | vagrants/18.04/basic/bootstrap.sh | sudo apt-get update
sudo apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-10
sudo apt-get install -y protobuf-compiler python python-pip python-protobuf
sudo apt-get install -y software-properties-common wget
pip install setuptools --u... | sudo apt-get update
sudo apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-10
sudo apt-get install -y protobuf-compiler python3-pip python-protobuf
sudo apt-get install -y software-properties-common wget
pip3 install setuptools --upgrad... | Update to Ubuntu 18.04 Vagrantfile | Update to Ubuntu 18.04 Vagrantfile
| Shell | bsd-3-clause | SRI-CSL/OCCAM,ashish-gehani/OCCAM,SRI-CSL/OCCAM,ashish-gehani/OCCAM,ashish-gehani/OCCAM,ashish-gehani/OCCAM,SRI-CSL/OCCAM,SRI-CSL/OCCAM,SRI-CSL/OCCAM | shell | ## Code Before:
sudo apt-get update
sudo apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-10
sudo apt-get install -y protobuf-compiler python python-pip python-protobuf
sudo apt-get install -y software-properties-common wget
pip instal... |
7cd2420a6659d9fe328b6faae4a2f858cd907191 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
| class ApplicationController < ActionController::Base
before_filter :redirect_to if Rails.env.production?
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
private
def redirect_to
domain_to_redirect_to = '... | Add 301 redirect for heroku domain | Add 301 redirect for heroku domain
| Ruby | mit | ppati000/jodelstats,ppati000/jodelstats,ppati000/jodelstats | ruby | ## Code Before:
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
## Instruction:
Add 301 redirect for heroku domain
## Code After:
class ApplicationController < Ac... |
5eba5bfdadc5d6a0224b105bc343edb084a83953 | contrib/debian/peercoin-qt.desktop | contrib/debian/peercoin-qt.desktop | [Desktop Entry]
Encoding=UTF-8
Name=Peercoin
Comment=Desktop allet for Peercoin Cryptocurrency
Comment[de]=Offizieller Client für die Kryptowährung Peercoin
Exec=peercoin-qt %u
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/peercoin128.png
MimeType=x-scheme-handler/peercoin;
Categories=Office;Finance;
StartupW... | [Desktop Entry]
Encoding=UTF-8
Name=Peercoin
Comment=Desktop allet for Peercoin Cryptocurrency
Comment[de]=Offizieller Client für die Kryptowährung Peercoin
Exec=peercoin-qt %u
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/peercoin128.png
MimeType=x-scheme-handler/peercoin;
Categories=Office;Finance;P2P;Netwo... | Add P2P, Network, and Qt categories to the desktop icon | Add P2P, Network, and Qt categories to the desktop icon
| desktop | mit | DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,peercoin/peercoin,DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin | desktop | ## Code Before:
[Desktop Entry]
Encoding=UTF-8
Name=Peercoin
Comment=Desktop allet for Peercoin Cryptocurrency
Comment[de]=Offizieller Client für die Kryptowährung Peercoin
Exec=peercoin-qt %u
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/peercoin128.png
MimeType=x-scheme-handler/peercoin;
Categories=Office;F... |
1aef53ef94e4031cb23e9c79c1b677299307284b | app/renderer/js/utils/domain-util.js | app/renderer/js/utils/domain-util.js | 'use strict';
const {app} = require('electron').remote;
const JsonDB = require('node-json-db');
class DomainUtil {
constructor() {
this.db = new JsonDB(app.getPath('userData') + '/domain.json', true, true);
}
getDomains() {
return this.db.getData('/domains');
}
addDomain() {
... | 'use strict';
const {app} = require('electron').remote;
const JsonDB = require('node-json-db');
class DomainUtil {
constructor() {
this.db = new JsonDB(app.getPath('userData') + '/domain.json', true, true);
}
getDomains() {
return this.db.getData('/domains');
}
addDomain() {
... | Change domain config schema and update DomainUtil. | Change domain config schema and update DomainUtil.
| JavaScript | apache-2.0 | zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-electron,zulip/zulip-desktop,zulip/zulip-electron,zulip/zulip-electron,zulip/zulip-desktop | javascript | ## Code Before:
'use strict';
const {app} = require('electron').remote;
const JsonDB = require('node-json-db');
class DomainUtil {
constructor() {
this.db = new JsonDB(app.getPath('userData') + '/domain.json', true, true);
}
getDomains() {
return this.db.getData('/domains');
}
ad... |
9cf30b81a1c7ba54d647f433bff4220d620e01a3 | .expeditor/scripts/bk_container_prep.sh | .expeditor/scripts/bk_container_prep.sh |
echo "--- Container Config..."
echo "ruby version:"
ruby -v
echo "bundler version:"
bundler -v
echo "--- Preparing Container..."
export FORCE_FFI_YAJL="ext"
export CHEF_LICENSE="accept-no-persist"
export BUNDLE_GEMFILE="/workdir/Gemfile"
# make sure we have the network tools in place for various network specs
if [... |
echo "--- Container Config..."
source /etc/os-release
echo $PRETTY_NAME
echo "ruby version:"
ruby -v
echo "bundler version:"
bundler -v
echo "--- Preparing Container..."
export FORCE_FFI_YAJL="ext"
export CHEF_LICENSE="accept-no-persist"
export BUNDLE_GEMFILE="/workdir/Gemfile"
# make sure we have the network too... | Print the full OS release from /etc/os-release | Print the full OS release from /etc/os-release
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| Shell | apache-2.0 | mattray/chef,mattray/chef,chef/chef,gene1wood/chef,tas50/chef-1,mattray/chef,mwrock/chef,MsysTechnologiesllc/chef,nvwls/chef,mwrock/chef,gene1wood/chef,nvwls/chef,tas50/chef-1,MsysTechnologiesllc/chef,mwrock/chef,MsysTechnologiesllc/chef,gene1wood/chef,mwrock/chef,chef/chef,gene1wood/chef,mattray/chef,chef/chef,nvwls/c... | shell | ## Code Before:
echo "--- Container Config..."
echo "ruby version:"
ruby -v
echo "bundler version:"
bundler -v
echo "--- Preparing Container..."
export FORCE_FFI_YAJL="ext"
export CHEF_LICENSE="accept-no-persist"
export BUNDLE_GEMFILE="/workdir/Gemfile"
# make sure we have the network tools in place for various ne... |
63fd3aa92c0d659e577cee39db72914951b5d9fa | ui/src/actions/documentActions.js | ui/src/actions/documentActions.js | import { endpoint } from 'app/api';
import asyncActionCreator from './asyncActionCreator';
export const ingestDocument = asyncActionCreator(
(collectionId, metadata, file, onUploadProgress, cancelToken) => async () => {
const formData = new FormData();
if (file) {
formData.append('file', file);
}
... | import { endpoint } from 'app/api';
import asyncActionCreator from './asyncActionCreator';
export const ingestDocument = asyncActionCreator(
(collectionId, metadata, file, onUploadProgress, cancelToken) => async () => {
const formData = {
meta: JSON.stringify(metadata),
file: file,
};
const ... | Use automatic form data serialization | Use automatic form data serialization
Starting from 0.27.0, axios supports automatic serialization to the form data format for requests with a `multipart/form-data` content type.
| JavaScript | mit | alephdata/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph,alephdata/aleph | javascript | ## Code Before:
import { endpoint } from 'app/api';
import asyncActionCreator from './asyncActionCreator';
export const ingestDocument = asyncActionCreator(
(collectionId, metadata, file, onUploadProgress, cancelToken) => async () => {
const formData = new FormData();
if (file) {
formData.append('file'... |
69585858f7ac847f71362001c354bfee6d52a2e2 | docs/architecture.md | docs/architecture.md |

We have a number of data sources (initially just Calm, but we'll add others).
An adapter ingests all the records into a per-source DynamoDB table, treating
Dynamo as a mirror of the original source.
A transformer runs on the other side of each Dynamo table, and parses out the
fields we w... |

We have a number of data sources (initially just Calm and Miro but we'll add others).
An adapter ingests all the records into a per-source DynamoDB table, treating
Dynamo as a mirror of the original source.
A transformer runs on the other side of each Dynamo table, and parses out the
fie... | Update documentation to include information about id_minter | Update documentation to include information about id_minter
| Markdown | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | markdown | ## Code Before:

We have a number of data sources (initially just Calm, but we'll add others).
An adapter ingests all the records into a per-source DynamoDB table, treating
Dynamo as a mirror of the original source.
A transformer runs on the other side of each Dynamo table, and parses out... |
ec178685314fd2eb85ea629fa78b6870a419ad96 | com.codeaffine.extras.workingset.test/src/com/codeaffine/extras/workingset/internal/ImagesPDETest.java | com.codeaffine.extras.workingset.test/src/com/codeaffine/extras/workingset/internal/ImagesPDETest.java | package com.codeaffine.extras.workingset.internal;
import static org.junit.Assert.assertNotNull;
import java.lang.reflect.Field;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.junit.Test;
import com.codeaffine.... | package com.codeaffine.extras.workingset.internal;
import static java.lang.reflect.Modifier.isPublic;
import static java.lang.reflect.Modifier.isStatic;
import static org.junit.Assert.assertNotNull;
import java.lang.reflect.Field;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.jface.resource.... | Work around occasionally thrown IllegalAccessException | Work around occasionally thrown IllegalAccessException | Java | epl-1.0 | rherrmann/eclipse-extras,rherrmann/eclipse-extras | java | ## Code Before:
package com.codeaffine.extras.workingset.internal;
import static org.junit.Assert.assertNotNull;
import java.lang.reflect.Field;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.junit.Test;
import... |
aaea7dd1c406d5ffdc5dd790e07a1f2dcc843e8c | infrastructure/kubernetes/scripts/cluster/create.sh | infrastructure/kubernetes/scripts/cluster/create.sh |
set -Eeuo pipefail
DIR="$( cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}")" )" >/dev/null && pwd )/../.."
source "${DIR}/scripts/lib/config.sh"
load_config
build_nsjail_docker
if [ ! -x $(which kubectl) ]; then
gcloud components install kubectl
fi
gcloud config set project ${PROJECT}
gcloud config set comput... |
set -Eeuo pipefail
DIR="$( cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}")" )" >/dev/null && pwd )/../.."
source "${DIR}/scripts/lib/config.sh"
load_config
build_nsjail_docker
gcloud config set project ${PROJECT}
gcloud config set compute/zone ${ZONE}
gcloud container clusters create --enable-network-policy --... | Remove gcloud components version of kubectl | Remove gcloud components version of kubectl | Shell | apache-2.0 | google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf,google/google-ctf | shell | ## Code Before:
set -Eeuo pipefail
DIR="$( cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}")" )" >/dev/null && pwd )/../.."
source "${DIR}/scripts/lib/config.sh"
load_config
build_nsjail_docker
if [ ! -x $(which kubectl) ]; then
gcloud components install kubectl
fi
gcloud config set project ${PROJECT}
gcloud c... |
e327f0a82a3ee6cd96b322ea21e07313d94b94b0 | t/018_chado.t | t/018_chado.t | use Test::Most tests => 1;
use strict;
use warnings;
use lib 't/lib';
use App::Mimosa::Test;
use Catalyst::Test 'App::Mimosa';
use Bio::Chado::Schema::Test;
my $schema = Bio::Chado::Schema::Test->init_schema(
deploy => 1,
populate => 1,
);
isa_ok($schema, 'Bio::Chado::Schema');
my $bcs_... | use Test::Most tests => 4;
use strict;
use warnings;
use autodie;
use lib 't/lib';
use App::Mimosa::Test;
use Catalyst::Test 'App::Mimosa';
use Bio::Chado::Schema::Test;
use App::Mimosa::Schema::BCS;
my $bcs_db;
BEGIN {
$bcs_db = "t/var/BCS.db";
diag("Removing $bcs_db");
unlink $bcs_db if -e $bcs_db;
... | Add more tests for deploying to chado | Add more tests for deploying to chado
| Perl | artistic-2.0 | GMOD/mimosa,GMOD/mimosa,GMOD/mimosa | perl | ## Code Before:
use Test::Most tests => 1;
use strict;
use warnings;
use lib 't/lib';
use App::Mimosa::Test;
use Catalyst::Test 'App::Mimosa';
use Bio::Chado::Schema::Test;
my $schema = Bio::Chado::Schema::Test->init_schema(
deploy => 1,
populate => 1,
);
isa_ok($schema, 'Bio::Chado::Sch... |
b56316eb374aee0b5f5044525d80d3047449fbb6 | app/less/main.less | app/less/main.less | @charset "UTF-8";
@import "variables";
html,
body {
background-color: @white;
color: @black;
font-size: @base-font-size;
font-family: @base-font;
font-weight: 400;
}
| @charset "UTF-8";
@import "variables";
@import "fonts";
html,
body {
background-color: @white;
color: @black;
font-size: @base-font-size;
font-family: @base-font;
font-weight: 400;
}
| Include fonts in less file | Include fonts in less file
| Less | mit | lukevers/converse,lukevers/converse,lukevers/converse | less | ## Code Before:
@charset "UTF-8";
@import "variables";
html,
body {
background-color: @white;
color: @black;
font-size: @base-font-size;
font-family: @base-font;
font-weight: 400;
}
## Instruction:
Include fonts in less file
## Code After:
@charset "UTF-8";
@import "variables";
@import "fonts";
html,
body {
... |
f66be80aa2aedddf20d62cdaeb613cf26037ff11 | src/nsafepass.c | src/nsafepass.c |
int main(void)
{
puts("This is " PACKAGE_STRING);
return 0;
}
| /* This file is part of nsafepass
Copyright 2015 Sergey Kvachonok
nsafepass is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | Add AGPLv3 legalese boilerplate to the source files. | Add AGPLv3 legalese boilerplate to the source files.
Use the shortened version because nobody really cares
about warranties and liabilities.
| C | agpl-3.0 | ravenexp/nsafepass,ravenexp/nsafepass | c | ## Code Before:
int main(void)
{
puts("This is " PACKAGE_STRING);
return 0;
}
## Instruction:
Add AGPLv3 legalese boilerplate to the source files.
Use the shortened version because nobody really cares
about warranties and liabilities.
## Code After:
/* This file is part of nsafepass
Copyright 2015 Sergey Kv... |
2c06fb108c2886616d020cf1d769dfdf771c93b3 | README.rst | README.rst | Spinneret: Twisted Web's Silk Spinner
=====================================
|build|_
Spinneret is a collection of higher-level utility classes and functions to make
writing complex Twisted Web applications far simpler, it is designed to easily
integrate with existing Twisted Web projects for things like the improved
... | Spinneret: Twisted Web's Silk Spinner
=====================================
|build|_
Spinneret is a collection of higher-level utility classes and functions to make
writing complex Twisted Web applications far simpler, it is designed to easily
integrate with existing Twisted Web projects for things like the improved
... | Update Travis-CI build image URL. | Update Travis-CI build image URL.
| reStructuredText | mit | jonathanj/txspinneret,mithrandi/txspinneret | restructuredtext | ## Code Before:
Spinneret: Twisted Web's Silk Spinner
=====================================
|build|_
Spinneret is a collection of higher-level utility classes and functions to make
writing complex Twisted Web applications far simpler, it is designed to easily
integrate with existing Twisted Web projects for things li... |
17a17b7d1f3eeb627297dc7877ec6b6bd927695c | metadata.rb | metadata.rb | name 'omnibus-gitlab'
maintainer 'GitLab B.V.'
maintainer_email 'marin@gitlab.com'
license 'All rights reserved'
description 'Installs/Configures GitLab using omnibus-gitlab'
long_description 'Installs/Configures GitLab using omnibus-gitlab'
version '0.2.1'
| name 'omnibus-gitlab'
maintainer 'GitLab B.V.'
maintainer_email 'marin@gitlab.com'
license 'All rights reserved'
description 'Installs/Configures GitLab using omnibus-gitlab'
long_description 'Installs/Configures GitLab using omnibus-gitlab'
version '0.3.0'
depends 'gitlab-attr... | Add gitlab-attributes-with-secrets dependency, bump the version of this cookbook. | Add gitlab-attributes-with-secrets dependency, bump the version of this cookbook.
| Ruby | mit | mattyjones/cookbook-omnibus-gitlab,mattyjones/cookbook-omnibus-gitlab,mattyjones/cookbook-omnibus-gitlab | ruby | ## Code Before:
name 'omnibus-gitlab'
maintainer 'GitLab B.V.'
maintainer_email 'marin@gitlab.com'
license 'All rights reserved'
description 'Installs/Configures GitLab using omnibus-gitlab'
long_description 'Installs/Configures GitLab using omnibus-gitlab'
version '0.2.1'
## ... |
7e6dc283dbecf4bf9674559198b4a2c06e9f4c2e | spacy/tests/regression/test_issue1799.py | spacy/tests/regression/test_issue1799.py | '''Test sentence boundaries are deserialized correctly,
even for non-projective sentences.'''
import pytest
import numpy
from ... tokens import Doc
from ... vocab import Vocab
from ... attrs import HEAD, DEP
def test_issue1799():
problem_sentence = 'Just what I was looking for.'
heads_deps = numpy.asarray([[... | '''Test sentence boundaries are deserialized correctly,
even for non-projective sentences.'''
from __future__ import unicode_literals
import pytest
import numpy
from ... tokens import Doc
from ... vocab import Vocab
from ... attrs import HEAD, DEP
def test_issue1799():
problem_sentence = 'Just what I was looking... | Fix unicode import in test | Fix unicode import in test
| Python | mit | aikramer2/spaCy,aikramer2/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,honnibal/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,aikramer2/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,spacy-io/spaCy,aikramer2/... | python | ## Code Before:
'''Test sentence boundaries are deserialized correctly,
even for non-projective sentences.'''
import pytest
import numpy
from ... tokens import Doc
from ... vocab import Vocab
from ... attrs import HEAD, DEP
def test_issue1799():
problem_sentence = 'Just what I was looking for.'
heads_deps = ... |
dcd8681d1aca9ed78b719a87d5426543552909fb | dev/http/restful/README.md | dev/http/restful/README.md | * [RESTful API 设计最佳实践](http://www.oschina.net/translate/best-practices-for-a-pragmatic-restful-api)
* [理解本真的REST架构风格](http://www.infoq.com/cn/articles/understanding-restful-style)
* [深入探索REST 在InfoQ上的内容](http://www.infoq.com/cn/rest-deep-dive)
| * [RESTful API 设计最佳实践](http://www.oschina.net/translate/best-practices-for-a-pragmatic-restful-api)
* [理解本真的REST架构风格](http://www.infoq.com/cn/articles/understanding-restful-style)
* [深入探索REST 在InfoQ上的内容](http://www.infoq.com/cn/rest-deep-dive)
#### Tools
* [How to POST JSON data with Curl from Terminal/Commandline to... | Add Tools category and How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST? | Add Tools category and How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?
| Markdown | mit | northbright/bookmarks,northbright/bookmarks,northbright/bookmarks | markdown | ## Code Before:
* [RESTful API 设计最佳实践](http://www.oschina.net/translate/best-practices-for-a-pragmatic-restful-api)
* [理解本真的REST架构风格](http://www.infoq.com/cn/articles/understanding-restful-style)
* [深入探索REST 在InfoQ上的内容](http://www.infoq.com/cn/rest-deep-dive)
## Instruction:
Add Tools category and How to POST JSON da... |
7fdedb6dbae1da5529d76f43e06bad3b838634a9 | README.md | README.md |
[](https://travis-ci.org/twitter/twitter-server)
[](https://coveralls.io/r/twitter/twitter-server?branch=develop)
[](https://travis-ci.org/twitter/twitter-server)
[](https://coveralls.io/r/twitter/twitter-server?branch=develop)
[](https://travis-ci.org/twitter/twitter-server)
[](https://coveralls.io/r/twitter/twitter-server?branch=develop)
[
app_root = File.expand_path('../../', __dir__)
Roll::Amp::CompiledStylesheetFile.new(app_root, stylesheet_name)
end
context 'when stylesheet name is nil' do
let(:stylesheet_name) { nil }
let(:fi... | require 'spec_helper'
RSpec.describe Roll::Amp::CompiledStylesheetFile do
def create(stylesheet_name)
app_root = File.expand_path('../../', File.dirname(__FILE__))
Roll::Amp::CompiledStylesheetFile.new(app_root, stylesheet_name)
end
context 'when stylesheet name is nil' do
let(:stylesheet_name) { ni... | Use __FILE__ instead of __dir__ which isn't supported by JRuby. | Use __FILE__ instead of __dir__ which isn't supported by JRuby.
| Ruby | mit | roll-rails/roll-amp,roll-rails/roll-amp | ruby | ## Code Before:
require 'spec_helper'
RSpec.describe Roll::Amp::CompiledStylesheetFile do
def create(stylesheet_name)
app_root = File.expand_path('../../', __dir__)
Roll::Amp::CompiledStylesheetFile.new(app_root, stylesheet_name)
end
context 'when stylesheet name is nil' do
let(:stylesheet_name) { n... |
edede8b53d19f628c566edf52d426b81d69af306 | client/src/Requests/PanelIssue.js | client/src/Requests/PanelIssue.js | import React from 'react'
import { Panel } from 'react-bootstrap'
import MarkdownBlock from '../shared/MarkdownBlock'
import { getCreator, getContent } from '../shared/requestUtils'
const Issue = props => {
return (
<Panel
header={`${props.issue.title} by ${getCreator(props.issue).name || getCreator(props.... | import React from 'react'
import { Panel } from 'react-bootstrap'
import MarkdownBlock from '../shared/MarkdownBlock'
import { getCreator, getContent } from '../shared/requestUtils'
const Issue = props => {
if (!props.issue)
return null
return (
<Panel
header={`${props.issue.title} by ${getCreator(p... | Work around react router bug | Work around react router bug
<Miss /> sometimes renders even when it should not
| JavaScript | mit | clembou/github-requests,clembou/github-requests,clembou/github-requests | javascript | ## Code Before:
import React from 'react'
import { Panel } from 'react-bootstrap'
import MarkdownBlock from '../shared/MarkdownBlock'
import { getCreator, getContent } from '../shared/requestUtils'
const Issue = props => {
return (
<Panel
header={`${props.issue.title} by ${getCreator(props.issue).name || g... |
3e19fe0ea99f5e5d8a166a79c37a1d0bf59e22ba | components/productlist/default.htm | components/productlist/default.htm | {% if productList.products|length %}
<div class="row">
{% for product in __SELF__.products %}
<div class="col-sm-6 col-md-3">
{% partial __SELF__ ~ '::item' product=product %}
</div>
{% endfor %}
</div>
{% else %}
<p class="lead text-muted text-center">
No product available.
</p>
{% endif %} | {% if __SELF__.products|length %}
<div class="row">
{% for product in __SELF__.products %}
<div class="col-sm-6 col-md-3">
{% partial __SELF__ ~ '::item' product=product %}
</div>
{% endfor %}
</div>
{% else %}
<p class="lead text-muted text-center">
No product available.
</p>
{% endif %}
| Change call to component name to __SELF__ | Change call to component name to __SELF__
| HTML | mit | octommerce/octommerce,octommerce/octommerce,octommerce/octommerce | html | ## Code Before:
{% if productList.products|length %}
<div class="row">
{% for product in __SELF__.products %}
<div class="col-sm-6 col-md-3">
{% partial __SELF__ ~ '::item' product=product %}
</div>
{% endfor %}
</div>
{% else %}
<p class="lead text-muted text-center">
No product available.
</p>
{% endif %}
#... |
4c6fee15577fcabd4389f4cfce6b3c7f4be91e74 | packages/grow-project/boilerplate/bundles/site/site.yaml | packages/grow-project/boilerplate/bundles/site/site.yaml | output:
konstan: ../../../test/fixtures/build
build: ../../../test/fixtures/build
url: /build
#-- Assets
assets:
components:
- common
- form
- site
#-- Scripts
scripts:
options:
minify: false
babel: # https://browserl.ist/?q=%3E+.25%25%2C+not+dead
- '> .25%'
... | output:
konstan: ../../../test/fixtures/build
build: ../../../test/fixtures/build
url: /build
#-- Assets
assets:
components:
- common
- form
- site
#-- Scripts
scripts:
options:
minify: false
babel: # https://browserl.ist/?q=%3E+.25%25%2C+not+dead
- '> .25%'
... | Allow Babel on all '@absolunet/*' packages | Allow Babel on all '@absolunet/*' packages
| YAML | mit | absolunet/nwayo,absolunet/nwayo,absolunet/nwayo | yaml | ## Code Before:
output:
konstan: ../../../test/fixtures/build
build: ../../../test/fixtures/build
url: /build
#-- Assets
assets:
components:
- common
- form
- site
#-- Scripts
scripts:
options:
minify: false
babel: # https://browserl.ist/?q=%3E+.25%25%2C+not+dead
... |
b4c18ff50c59f92727f92613559b8c597bd2e62a | README.md | README.md |
Ymgyrch is a multi system emulator.
|
Ymgyrch is a multi system emulator.
It emulates multiple systems using a common core.
## Current systems
* NES (Unfinished)
* Gameboy (In progress)
# Credits
## Used Libraries
* [libfmt](http://fmtlib.net/) for log output
* [rlutil](https://github.com/tapio/rlutil) for console manipulation
## Inspirations
* [Cin... | Update Readme to give credit where it is due | Update Readme to give credit where it is due
| Markdown | mit | Lionel07/Ymgyrch,Lionel07/Ymgyrch | markdown | ## Code Before:
Ymgyrch is a multi system emulator.
## Instruction:
Update Readme to give credit where it is due
## Code After:
Ymgyrch is a multi system emulator.
It emulates multiple systems using a common core.
## Current systems
* NES (Unfinished)
* Gameboy (In progress)
# Credits
## Used Libraries
* [libf... |
cfdaee3c76eb0021f44587f5f3a45320957df84e | templates/grid/add_grid.html | templates/grid/add_grid.html | {% extends "grid/base.html" %}
{% load url from future %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block head_title %}{% trans "Add new grid" %}{% endblock %}
{% block body %}
<h2>{% trans "Add new grid" %}</h2>
{% blocktrans %}
<p>Grids added here are publicly listed on the <a href="/grids"... | {% extends "grid/base.html" %}
{% load url from future %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block body %}
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2>{% trans "Grid Form" %}</h2>
<p>{% trans "Grids added here are publicly listed in the" %} <a href="/grids... | Clean up add grid form. | Clean up add grid form.
| HTML | mit | QLGu/djangopackages,QLGu/djangopackages,pydanny/djangopackages,QLGu/djangopackages,nanuxbe/djangopackages,pydanny/djangopackages,pydanny/djangopackages,nanuxbe/djangopackages,nanuxbe/djangopackages | html | ## Code Before:
{% extends "grid/base.html" %}
{% load url from future %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block head_title %}{% trans "Add new grid" %}{% endblock %}
{% block body %}
<h2>{% trans "Add new grid" %}</h2>
{% blocktrans %}
<p>Grids added here are publicly listed on the ... |
7d3acb72d87ab14c2c70f16d488b53e5ee06d033 | lib/protobuf/tasks/compile.rake | lib/protobuf/tasks/compile.rake | namespace :protobuf do
desc 'Clean & Compile the protobuf source to ruby classes. Pass PB_NO_CLEAN=1 if you do not want to force-clean first.'
task :compile, [ :package, :source, :destination, :plugin ] do |tasks, args|
args.with_defaults(:destination => 'lib')
args.with_defaults(:source => 'definitions')
... | require 'fileutils'
namespace :protobuf do
desc 'Clean & Compile the protobuf source to ruby classes. Pass PB_NO_CLEAN=1 if you do not want to force-clean first.'
task :compile, [ :package, :source, :destination, :plugin ] do |tasks, args|
args.with_defaults(:destination => 'lib')
args.with_defaults(:sour... | Add protobuf:clean task for external use | Add protobuf:clean task for external use
To get this task simply `require ‘protobuf/tasks’` in your Rakefile.
Clean will ask for confirmation of removing previously compiled pb.rb
source files. You can skip the confirmation step by providing
PB_FORCE_CLEAN=1. A force clean is automatically invoked from the
`compile` ... | Ruby | mit | ruby-protobuf/protobuf,lookout/protobuffy,localshred/protobuf,localshred/protobuf,ruby-protobuf/protobuf,film42/protobuf,quixoten/protobuf,lookout/protobuffy,zanker/protobuf,zanker/protobuf,brianstien/protobuf,quixoten/protobuf,film42/protobuf,brianstien/protobuf | ruby | ## Code Before:
namespace :protobuf do
desc 'Clean & Compile the protobuf source to ruby classes. Pass PB_NO_CLEAN=1 if you do not want to force-clean first.'
task :compile, [ :package, :source, :destination, :plugin ] do |tasks, args|
args.with_defaults(:destination => 'lib')
args.with_defaults(:source =>... |
3b4878c31f8659a1a8c05225ced397ee76a12208 | testmud/mud/home/Game/sys/bin/rebuild.c | testmud/mud/home/Game/sys/bin/rebuild.c |
inherit LIB_BIN;
void main(string args)
{
object user;
user = query_user();
if (user->query_class() < 2) {
send_out("You do not have sufficient access rights to rebuild.\n");
return;
}
OBJECTD->klib_recompile();
OBJECTD->global_recompile();
}
|
inherit LIB_BIN;
void main(string args)
{
object user;
user = query_user();
if (user->query_class() < 1) {
send_out("You do not have sufficient access rights to rebuild.\n");
return;
}
OBJECTD->recompile_everything();
}
| Update Game to new objectd api | Update Game to new objectd api
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | c | ## Code Before:
inherit LIB_BIN;
void main(string args)
{
object user;
user = query_user();
if (user->query_class() < 2) {
send_out("You do not have sufficient access rights to rebuild.\n");
return;
}
OBJECTD->klib_recompile();
OBJECTD->global_recompile();
}
## Instruction:
Update Game to new objectd ap... |
155b1e6b8d431f1169a3e71d08d93d76a3414c59 | turbustat/statistics/vca_vcs/slice_thickness.py | turbustat/statistics/vca_vcs/slice_thickness.py |
import numpy as np
def change_slice_thickness(cube, slice_thickness=1.0):
'''
Degrades the velocity resolution of a data cube. This is to avoid
shot noise by removing velocity fluctuations at small thicknesses.
Parameters
----------
cube : numpy.ndarray
3D data cube to degrade
... |
import numpy as np
from astropy import units as u
from spectral_cube import SpectralCube
from astropy.convolution import Gaussian1DKernel
def spectral_regrid_cube(cube, channel_width):
fwhm_factor = np.sqrt(8 * np.log(2))
current_resolution = np.diff(cube.spectral_axis[:2])[0]
target_resolution = chann... | Add a corrected spectral regridding function that smooths before interpolating to a new spectral axis | Add a corrected spectral regridding function that smooths before interpolating to a new spectral axis
| Python | mit | e-koch/TurbuStat,Astroua/TurbuStat | python | ## Code Before:
import numpy as np
def change_slice_thickness(cube, slice_thickness=1.0):
'''
Degrades the velocity resolution of a data cube. This is to avoid
shot noise by removing velocity fluctuations at small thicknesses.
Parameters
----------
cube : numpy.ndarray
3D data c... |
01c76c0eb2280b0cc42e6e101fe7e694b271cb54 | app/controllers/tasks.js | app/controllers/tasks.js | import $ from 'jquery';
import Ember from 'ember';
export default Ember.Controller.extend({
extraText: '',
move: false,
manage: false,
options: ['move contributors', 'manage permissions'],
actions: {
changeText(option) {
if (option === 'move contributors') {
this.set('manage', false);
... | import $ from 'jquery';
import Ember from 'ember';
export default Ember.Controller.extend({
extraText: '',
move: false,
manage: false,
options: ['move contributors', 'manage permissions'],
actions: {
changeText(option) {
if (option === 'move contributors') {
this.set('manage', false);
... | Remove console.log to make linter happy | Remove console.log to make linter happy
| JavaScript | apache-2.0 | atelic/ember-osf-tasks,atelic/ember-osf-tasks,atelic/ember-osf-tasks | javascript | ## Code Before:
import $ from 'jquery';
import Ember from 'ember';
export default Ember.Controller.extend({
extraText: '',
move: false,
manage: false,
options: ['move contributors', 'manage permissions'],
actions: {
changeText(option) {
if (option === 'move contributors') {
this.set('manage... |
b135fb3e0d7ef10889df2a24daa5813daac551d4 | _layouts/page.html | _layouts/page.html | ---
layout: default
---
<article>
<header>
<h1>{{ page.title }}</h1>
</header>
{{ content }}
</article>
| ---
layout: default
---
<article>
<header>
<h1>{{ page.title }}</h1>
</header>
{{ content }}
{% assign counter = 0 %}
{% for post in site.posts %}
{% assign thisyear = post.date | date: "%Y" %}
{% assign prevyear = post.previous.date | date: "%Y" %}
{% assign counter = counter | plus: 1 %}
... | Add code to display yearly count of books read | Add code to display yearly count of books read
| HTML | mit | sayanee/books,sayanee/books | html | ## Code Before:
---
layout: default
---
<article>
<header>
<h1>{{ page.title }}</h1>
</header>
{{ content }}
</article>
## Instruction:
Add code to display yearly count of books read
## Code After:
---
layout: default
---
<article>
<header>
<h1>{{ page.title }}</h1>
</header>
{{ content }}
{% a... |
c2a930345ba50d696753078678cdf1d89ef77447 | .travis.yml | .travis.yml | language: node_js
node_js:
- 0.8
before_install:
- sudo sh -c "echo 'JVM_OPTS=\"$JVM_OPTS -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
- sudo service cassandra start
- sleep 8
script:
- rm -rf node_modules/zookeeper-client/node_modules/zookeeper/build && cd node_module... | language: node_js
node_js:
- 0.8
before_install:
- sudo sh -c "echo 'JVM_OPTS=\"$JVM_OPTS -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
- sudo service cassandra start
- sleep 8
script:
- rm -rf node_modules/zookeeper-client/node_modules/zookeeper/build && cd node_module... | Use run-script and go back to the root directory before running lint and tests. | Use run-script and go back to the root directory before running lint and tests.
| YAML | apache-2.0 | racker/service-registry,racker/service-registry,racker/service-registry | yaml | ## Code Before:
language: node_js
node_js:
- 0.8
before_install:
- sudo sh -c "echo 'JVM_OPTS=\"$JVM_OPTS -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
- sudo service cassandra start
- sleep 8
script:
- rm -rf node_modules/zookeeper-client/node_modules/zookeeper/build &... |
638527d67d9c4d4b8828e202b97457132d870ecb | theme/toc.html | theme/toc.html | <div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
{% for toc_item in page.toc %}
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.children %}
... | <div class="toc">
<h6 class="toc__headline">In This Article</h6>
<ul class="toc__list">
{% for toc_item in page.toc %}
{% for toc_item in toc_item.children %}
<li class="toc__entry">
<a href="{{ toc_item.url }}" class="toc__link">{{ toc_item.title }}</a>
... | Update template for table of contents | Update template for table of contents
| HTML | mit | zendframework/zf-mkdoc-theme,zendframework/zf-mkdoc-theme,zendframework/zf-mkdoc-theme,zendframework/zf-mkdoc-theme,zendframework/zf-mkdoc-theme | html | ## Code Before:
<div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
{% for toc_item in page.toc %}
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.child... |
b3bbb6af0195464c10d7ec6c019c0b6bb911a244 | lib/cartodb/backends/analysis-status.js | lib/cartodb/backends/analysis-status.js | var PSQL = require('cartodb-psql');
function AnalysisStatusBackend() {
}
module.exports = AnalysisStatusBackend;
AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = 'SELECT node_id, status, updated_at FROM cdb_analysis_catalog where no... | var PSQL = require('cartodb-psql');
function AnalysisStatusBackend() {
}
module.exports = AnalysisStatusBackend;
AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = [
'SELECT node_id, status, updated_at, last_error_message as e... | Include error message in node status endpoint | Include error message in node status endpoint
| JavaScript | bsd-3-clause | CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb,CartoDB/Windshaft-cartodb | javascript | ## Code Before:
var PSQL = require('cartodb-psql');
function AnalysisStatusBackend() {
}
module.exports = AnalysisStatusBackend;
AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = 'SELECT node_id, status, updated_at FROM cdb_analysis_... |
c111cf32d216180573393bbed82fc91383b3635e | kspRemoteTechPlannerTest/objects/antennaEdit.ts | kspRemoteTechPlannerTest/objects/antennaEdit.ts | /// <reference path="../references.ts" />
| /// <reference path="../references.ts" />
class AntennaEdit {
'use strict';
form: protractor.ElementFinder = element(by.xpath("//form[@name='antennaEditForm']"));
name: protractor.ElementFinder = this.form.element(by.xpath(".//input[@name='name']"));
typeOmni: protractor.ElementFinder = this.form.ele... | Implement Antenna Edit page object. | Implement Antenna Edit page object.
| TypeScript | mit | ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner,ryohpops/kspRemoteTechPlanner | typescript | ## Code Before:
/// <reference path="../references.ts" />
## Instruction:
Implement Antenna Edit page object.
## Code After:
/// <reference path="../references.ts" />
class AntennaEdit {
'use strict';
form: protractor.ElementFinder = element(by.xpath("//form[@name='antennaEditForm']"));
name: protract... |
496373e97d1e7ed1bb84e4eafd64ed8de722c22b | www/sponsors.html | www/sponsors.html | <html>
<head>
<title>Emulab.Net - Sponsors</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h1>
Emulab Sponsors
</h1>
</center>
<p>
We are grateful to the following companies and organizations for
helping to support the network testbed.
<ul>
<l... | <html>
<head>
<title>Emulab.Net - Sponsors</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h1>
Emulab Sponsors
</h1>
</center>
<p>
We are grateful to the following companies and organizations for
helping to support the network testbed.
<ul>
<l... | Add MSR; they finally came thru with the check. | Add MSR; they finally came thru with the check.
| HTML | agpl-3.0 | nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome | html | ## Code Before:
<html>
<head>
<title>Emulab.Net - Sponsors</title>
<link rel='stylesheet' href='tbstyle-plain.css' type='text/css'>
</head>
<body>
<basefont size=4>
<center>
<h1>
Emulab Sponsors
</h1>
</center>
<p>
We are grateful to the following companies and organizations for
helping to support the network t... |
16c6becea2912d763366d88e17f75f70aea23956 | project.mk | project.mk | CONFIGURE_OPTS_opt := --with-ccache --enable-release
FLAVORS := opt
USE_COMMON_CONFIG := 1
include /usr/releng/share/build_scripts/ci.mk
export PATH := $(JAVA_HOME)/bin:$(PATH)
############################################################
build_flavor:
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && ../configure $(CONF... | CONFIGURE_OPTS_opt := --with-ccache --enable-release
FLAVORS := opt
USE_COMMON_CONFIG := 1
include /usr/releng/share/build_scripts/ci.mk
export PATH := $(JAVA_HOME)/bin:$(PATH)
############################################################
build_flavor:
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && ../configure $(CONF... | Add TAP_PREFIX to test target so failed tests don't exit the build and a TAP report is created from inktest | Add TAP_PREFIX to test target so failed tests don't exit the build and a TAP report is created from inktest
git-svn-id: 6c610409e58ede315c0bda6914ef7fcf172715a2@211663 73f437aa-624d-0410-a3ad-9285e900ec26
| Makefile | apache-2.0 | aching/Clusterlib,aching/Clusterlib,aching/Clusterlib,aching/Clusterlib,aching/Clusterlib | makefile | ## Code Before:
CONFIGURE_OPTS_opt := --with-ccache --enable-release
FLAVORS := opt
USE_COMMON_CONFIG := 1
include /usr/releng/share/build_scripts/ci.mk
export PATH := $(JAVA_HOME)/bin:$(PATH)
############################################################
build_flavor:
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && ../... |
64dfa4d7e1c7f03bfe449d30b98dfa05ad5adbae | cmake/lib/CMakeLists.txt | cmake/lib/CMakeLists.txt |
set(libdir ${CMAKE_SOURCE_DIR}/Lib)
file(GLOB_RECURSE libfiles RELATIVE ${libdir} "${libdir}/*")
if(UNIX)
set(plat_subdir "plat-linux2")
endif(UNIX)
foreach(file ${libfiles})
# Don't install files for other platforms
string(REGEX MATCH "^plat-" is_platform_file "${file}")
if(plat_subdir)
stri... |
set(libdir ${CMAKE_SOURCE_DIR}/Lib)
file(GLOB_RECURSE libfiles RELATIVE ${libdir} "${libdir}/*")
if(UNIX)
set(plat_subdir "plat-linux2")
endif(UNIX)
foreach(file ${libfiles})
# Don't install files for other platforms
string(REGEX MATCH "^plat-" is_platform_file "${file}")
if(plat_subdir)
stri... | Allow python interpreter to be started from the build tree | Allow python interpreter to be started from the build tree
The -S option has to be used so that the site package doesn't look for the
installed Makefile.
| Text | apache-2.0 | davidsansome/python-cmake-buildsystem,thewtex/python-cmake-buildsystem,jcfr/python-cmake-buildsystem,python-cmake-buildsystem/python-cmake-buildsystem,chuckatkins/python-cmake-buildsystem,msmolens/python-cmake-buildsystem,thewtex/python-cmake-buildsystem,adrianbroher/python-cmake-buildsystem | text | ## Code Before:
set(libdir ${CMAKE_SOURCE_DIR}/Lib)
file(GLOB_RECURSE libfiles RELATIVE ${libdir} "${libdir}/*")
if(UNIX)
set(plat_subdir "plat-linux2")
endif(UNIX)
foreach(file ${libfiles})
# Don't install files for other platforms
string(REGEX MATCH "^plat-" is_platform_file "${file}")
if(plat_subd... |
c0f62eacb8b6cbdcdb4b3b83d72de6b97c265b48 | scripts/plugins/jquery.popline.list.js | scripts/plugins/jquery.popline.list.js | /*
jquery.popline.list.js 0.1.0-dev
Version: 0.1.0-dev
Updated: Aug 11th, 2014
(c) 2014 by kenshin54
*/
;(function($) {
$.popline.addButton({
orderedList: {
iconClass: "fa fa-list-ol",
mode: "edit",
action: function(event) {
document.execCommand("InsertOrderedList");
}
... | /*
jquery.popline.list.js 0.1.0-dev
Version: 0.1.0-dev
Updated: Aug 11th, 2014
(c) 2014 by kenshin54
*/
;(function($) {
var firefoxCleanupCheck = function(tag) {
var focusNode = $.popline.utils.selection().focusNode();
var node = $.popline.utils.findNodeWithTags(focusNode, tag);
return node ? t... | Fix ol/ul bug under firefox. | Fix ol/ul bug under firefox.
| JavaScript | mit | kenshin54/popline,roryok/popline,ztx1491/popline,ztx1491/popline,kenshin54/popline,roryok/popline | javascript | ## Code Before:
/*
jquery.popline.list.js 0.1.0-dev
Version: 0.1.0-dev
Updated: Aug 11th, 2014
(c) 2014 by kenshin54
*/
;(function($) {
$.popline.addButton({
orderedList: {
iconClass: "fa fa-list-ol",
mode: "edit",
action: function(event) {
document.execCommand("InsertOrderedL... |
c3bd786d9a17bcdb2334740eca06abf1345762cf | lenses/fstab.aug | lenses/fstab.aug | (* Parsing /etc/fstab *)
module Fstab =
autoload xfm
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let word = Rx.neg1
let spec = /[^,# \n\t][^ \n\t]*/
let comma_sep_list (l:string) =
let... | (* Parsing /etc/fstab *)
module Fstab =
autoload xfm
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let word = Rx.neg1
let spec = /[^,# \n\t][^ \n\t]*/
let comma_sep_list (l:string) =
let... | Add /etc/mtab to known files | Add /etc/mtab to known files
| Augeas | lgpl-2.1 | jjlin/augeas,lutter/augeas,hercules-team/augeas-do-not-use,dafugg/augeas,jjlin/augeas,manandbytes/augeas,dafugg/augeas,MikaelSmith/augeas,jjlin/augeas,mchf/augeas,jtopjian/augeas,lutter/augeas,raphink/augeas,domcleal/augeas,hercules-team/augeas,dafugg/augeas,hercules-team/augeas-do-not-use,ptoscano/augeas,domcleal/auge... | augeas | ## Code Before:
(* Parsing /etc/fstab *)
module Fstab =
autoload xfm
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
let word = Rx.neg1
let spec = /[^,# \n\t][^ \n\t]*/
let comma_sep_list (l:s... |
661fec89b6b79662103424e63e0a818d8dec2c1c | requirements.txt | requirements.txt | amqp==1.4.9
anyjson==0.3.3
billiard==3.3.0.22
biopython==1.66
celery==3.1.20
Flask==0.10.1
itsdangerous==0.24
Jinja2==2.8
kombu==3.0.33
MarkupSafe==0.23
numpy==1.10.4
pytz==2015.7
redis==2.10.5
Werkzeug==0.11.3
wheel==0.24.0
| amqp==1.4.9
anyjson==0.3.3
billiard==3.3.0.22
celery==3.1.20
Flask==0.10.1
itsdangerous==0.24
Jinja2==2.8
kombu==3.0.33
MarkupSafe==0.23
numpy==1.10.4
pytz==2015.7
redis==2.10.5
Werkzeug==0.11.3
wheel==0.24.0
biopython==1.66
Celery
| Fix weird ordering issue when installing biopyton (numpy must come first). Added Celery | Fix weird ordering issue when installing biopyton (numpy must come first). Added Celery
| Text | mit | JoaoRodrigues/interfacia,JoaoRodrigues/interfacia,JoaoRodrigues/interfacia | text | ## Code Before:
amqp==1.4.9
anyjson==0.3.3
billiard==3.3.0.22
biopython==1.66
celery==3.1.20
Flask==0.10.1
itsdangerous==0.24
Jinja2==2.8
kombu==3.0.33
MarkupSafe==0.23
numpy==1.10.4
pytz==2015.7
redis==2.10.5
Werkzeug==0.11.3
wheel==0.24.0
## Instruction:
Fix weird ordering issue when installing biopyton (numpy must ... |
64be99ec67e127d0006ff28c00e803ef69ca5311 | recipes/msmpi/meta.yaml | recipes/msmpi/meta.yaml | {% set name = "msmpi" %}
{% set version = "10.1.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://github.com/microsoft/Microsoft-MPI/archive/v{{ version }}.tar.gz
sha256: 63c7da941fc4ffb05a0f97bd54a67968c71f63389a0d162d3182eabba1beab3d
patches:
- conda-build.patch
build:... | {% set name = "msmpi" %}
{% set version = "10.1.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://github.com/microsoft/Microsoft-MPI/archive/v{{ version }}.tar.gz
sha256: 63c7da941fc4ffb05a0f97bd54a67968c71f63389a0d162d3182eabba1beab3d
patches:
- conda-build.patch
build:... | Use gfortran as windows compiler | Use gfortran as windows compiler | YAML | bsd-3-clause | johanneskoester/staged-recipes,conda-forge/staged-recipes,SylvainCorlay/staged-recipes,mariusvniekerk/staged-recipes,scopatz/staged-recipes,jochym/staged-recipes,jakirkham/staged-recipes,ReimarBauer/staged-recipes,igortg/staged-recipes,patricksnape/staged-recipes,stuertz/staged-recipes,mariusvniekerk/staged-recipes,goa... | yaml | ## Code Before:
{% set name = "msmpi" %}
{% set version = "10.1.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://github.com/microsoft/Microsoft-MPI/archive/v{{ version }}.tar.gz
sha256: 63c7da941fc4ffb05a0f97bd54a67968c71f63389a0d162d3182eabba1beab3d
patches:
- conda-bui... |
badc1e6bba296703a81b1601f4487403a652982a | lib/fxpay/init_module.js | lib/fxpay/init_module.js | // This is a minimal bootstrapping script that defines the fxpay
// namespace and allows all other modules to require fxpay attributes.
(function() {
'use strict';
if (typeof window.fxpay !== 'undefined') {
throw new Error('fxpay/init_module.js must be loaded before other scripts');
}
var exports = window... | // This is a minimal bootstrapping script that defines the fxpay
// namespace and allows all other modules to require fxpay attributes.
(function() {
'use strict';
if (typeof window.fxpay === 'undefined') {
window.fxpay = {};
}
var exports = window.fxpay;
exports.getattr = function getattr(attr) {
... | Allow fxpay scripts to be re-entrant | Allow fxpay scripts to be re-entrant
When running require JS tests the scripts
seem to get reloaded. I guess that's OK.
| JavaScript | bsd-3-clause | kumar303/fxpay,mozilla/fxpay,kumar303/fxpay,mozilla/fxpay | javascript | ## Code Before:
// This is a minimal bootstrapping script that defines the fxpay
// namespace and allows all other modules to require fxpay attributes.
(function() {
'use strict';
if (typeof window.fxpay !== 'undefined') {
throw new Error('fxpay/init_module.js must be loaded before other scripts');
}
var ... |
53e8b1ceeae934f460fb1e5423e1e25f5e49fa14 | db/migrate/20091119090036_adding_index_to_sequence_numbers.rb | db/migrate/20091119090036_adding_index_to_sequence_numbers.rb | class AddingIndexToSequenceNumbers < ActiveRecord::Migration
def self.up
add_index :merge_requests, :sequence_number
end
def self.down
remove_index :merge_requests, :sequence_number
end
end
| class AddingIndexToSequenceNumbers < ActiveRecord::Migration
def self.up
add_index :merge_requests, [:sequence_number, :target_repository_id], :unique => true
end
def self.down
remove_index :merge_requests, :sequence_number
end
end
| Make the index on sequence number unique for each target_repository_id | Make the index on sequence number unique for each target_repository_id
| Ruby | agpl-3.0 | balcom/gitorious,elcom/gitorious,Gitorious-backup/vsr-mainline,Gitorious-backup/mainline,Gitorious-backup/vsr-mainline,vymiheev/Gitorious-OpenStack,deld/gitorious,victori/gitorious-jruby,tigefa4u/gitorious-mainline,Gitorious-backup/yousource,adg29/asi.gitorious,grjones/gitorious-submodule-dependencies,Gitorious-backup/... | ruby | ## Code Before:
class AddingIndexToSequenceNumbers < ActiveRecord::Migration
def self.up
add_index :merge_requests, :sequence_number
end
def self.down
remove_index :merge_requests, :sequence_number
end
end
## Instruction:
Make the index on sequence number unique for each target_repository_id
## Code ... |
8df65a7aebb4bb6c2b21eacf7272056e02ec21e4 | app/src/main/java/com/satsumasoftware/timetable/db/TimetableDbHelper.java | app/src/main/java/com/satsumasoftware/timetable/db/TimetableDbHelper.java | package com.satsumasoftware.timetable.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public final class TimetableDbHelper extends SQLiteOpenHelper {
private static TimetableDbHelper sInstance;
private static final int DATAB... | package com.satsumasoftware.timetable.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public final class TimetableDbHelper extends SQLiteOpenHelper {
private static TimetableDbHelper sInstance;
private static final int DATAB... | Add missing creation and deletion SQLite invocations | Add missing creation and deletion SQLite invocations
| Java | apache-2.0 | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp | java | ## Code Before:
package com.satsumasoftware.timetable.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public final class TimetableDbHelper extends SQLiteOpenHelper {
private static TimetableDbHelper sInstance;
private static... |
7dbc1359ea4fb1b725fd53869a218856e4dec701 | lswapi/httpie/__init__.py | lswapi/httpie/__init__.py | from json import loads, dumps
from time import time
from os import path
from lswapi import __auth_token_url__, __token_store__, fetch_access_token
from requests import post
from httpie.plugins import AuthPlugin
class LswApiAuth(object):
def __init__(self, client_id, client_secret):
self.client_id = client... | from json import loads, dumps
from time import time
from os import path
from lswapi import __auth_token_url__, __token_store__, fetch_access_token
from requests import post
from httpie.plugins import AuthPlugin
class LswApiAuth(object):
def __init__(self, client_id, client_secret):
self.client_id = client... | Fix for function signature change in 0.4.0 in fetch_access_token | Fix for function signature change in 0.4.0 in fetch_access_token
| Python | apache-2.0 | nrocco/lswapi | python | ## Code Before:
from json import loads, dumps
from time import time
from os import path
from lswapi import __auth_token_url__, __token_store__, fetch_access_token
from requests import post
from httpie.plugins import AuthPlugin
class LswApiAuth(object):
def __init__(self, client_id, client_secret):
self.cl... |
33f742f97e9819e6ecc50ecb56c7ea306e833766 | ubuntu_server_console.txt | ubuntu_server_console.txt | /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"
GRUB_GFXMODE=2560x1440x32
GRUB_GFXPAYLOAD_LINUX=keep
$ update-grub
Configure the console font with
$ dpkg-reconfigure console-setup
| In the grub command line, run vbeinfo to find resolutions
/etc/default/grub:
GRUB_GFXMODE=2560x1440x32
or
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"
$ update-grub
Configure the console font with
$ dpkg-reconfigure console-setup
| Add comment about vbeinfo and auto detection. | Add comment about vbeinfo and auto detection.
| Text | mit | dnuffer/setup | text | ## Code Before:
/etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0"
GRUB_GFXMODE=2560x1440x32
GRUB_GFXPAYLOAD_LINUX=keep
$ update-grub
Configure the console font with
$ dpkg-reconfigure console-setup
## Instruction:
Add comment about vbeinfo and auto detection.
## Code After:
In the grub command line, ru... |
16f6aa324c41c6cfbb2ca396ef6b0beccd72459b | app/controllers/status_controller.rb | app/controllers/status_controller.rb | class StatusController < ApplicationController
respond_to :json
def get_status
# API checks
test_location = Ohanakapa.location("downtown-palo-alto-food-closet")
test_search = Ohanakapa.search("search", :org_name => "InnVision")
if test_location.blank? || test_search.blank?
status = "API did ... | class StatusController < ApplicationController
respond_to :json
def get_status
# API checks
test_location = Ohanakapa.location("downtown-palo-alto-food-closet")
test_search = Ohanakapa.search("search", :keyword => "maceo")
if test_location.blank? || test_search.blank?
status = "API did not r... | Update test search to make status check pass | Update test search to make status check pass
The status controller used to look for an organization called "InnVision", but that organization's name has been updated. I changed the search to look for keyword "maceo", which returns one of our dummy test locations.
| Ruby | bsd-3-clause | ellpee/ohana-web-search,hackforla/ohana-web-search-la,CodeforBirmingham/ohana-web-search,appropriate/ohana-web-search,CodeforBirmingham/ohana-web-search,ellpee/ohana-web-search,CodeforBirmingham/ohana-web-search,volkanunsal/nyc-prepared-search,appropriate/ohana-web-search-la,codeforamerica/ohana-web-search,appropriate/... | ruby | ## Code Before:
class StatusController < ApplicationController
respond_to :json
def get_status
# API checks
test_location = Ohanakapa.location("downtown-palo-alto-food-closet")
test_search = Ohanakapa.search("search", :org_name => "InnVision")
if test_location.blank? || test_search.blank?
st... |
18231f36d5bc046ef2f8dc0d15f551b0d3bdf13e | app/views/layouts/_locale_dropdown.html.erb | app/views/layouts/_locale_dropdown.html.erb | <% if !user_signed_in? %>
<div class="dropdown locale-dropdown">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
<% if I18n.locale == :en %>
<%= image_tag asset_path('flags/us.png'), class: 'locale-flag' %>
English
<b class="caret"></b>
<% elsif I18n.locale == :e... | <% if !user_signed_in? %>
<div class="dropdown locale-dropdown">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
<% if I18n.locale == :en %>
<%= image_tag asset_path('flags/us.png'), class: 'locale-flag' %>
English <i class="fa fa-fw fa-caret-down"></i>
<% elsif I18n.l... | Replace caret icon from glyphicons with caret icon from fontawesome, for better consistency. | Replace caret icon from glyphicons with caret icon from fontawesome, for better consistency.
| HTML+ERB | mit | amatriain/feedbunch,amatriain/feedbunch,jmwenda/feedbunch,jmwenda/feedbunch,amatriain/feedbunch,amatriain/feedbunch,jmwenda/feedbunch | html+erb | ## Code Before:
<% if !user_signed_in? %>
<div class="dropdown locale-dropdown">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
<% if I18n.locale == :en %>
<%= image_tag asset_path('flags/us.png'), class: 'locale-flag' %>
English
<b class="caret"></b>
<% elsif I... |
6bb48f53f4899e3bb77d461533c869cd00e76468 | libimagstore/src/store.rs | libimagstore/src/store.rs | use std::result::Result as RResult;
use std::string;
pub use entry::Entry;
pub use error::StoreError;
pub type Result<T> = RResult<T, StoreError>;
pub type LockedEntry = SingleUseLock<Entry>;
pub trait Store {
fn create(&self, entry : Entry) -> Result<()>;
fn retrieve(&self, id : string) -> Result<LockedEntr... | use std::result::Result as RResult;
use std::string;
pub use entry::Entry;
pub use error::StoreError;
pub use single_use_lock::SingleUseLock;
pub type Result<T> = RResult<T, StoreError>;
pub type LockedEntry = SingleUseLock<Entry>;
pub trait Store {
fn create(&self, entry : Entry) -> Result<()>;
fn retrieve(... | Add missing inclusion of SingeUseLock type | Add missing inclusion of SingeUseLock type
| Rust | lgpl-2.1 | matthiasbeyer/imag,mario-kr/imag,matthiasbeyer/imag,mario-kr/imag | rust | ## Code Before:
use std::result::Result as RResult;
use std::string;
pub use entry::Entry;
pub use error::StoreError;
pub type Result<T> = RResult<T, StoreError>;
pub type LockedEntry = SingleUseLock<Entry>;
pub trait Store {
fn create(&self, entry : Entry) -> Result<()>;
fn retrieve(&self, id : string) -> R... |
d2dadb41c7958a1b6f5ed7bf6f34af7d73668b06 | scripts/Actions/Video.ts | scripts/Actions/Video.ts | import AnimeNotifier from "../AnimeNotifier"
// Play video
export function playVideo(arn: AnimeNotifier, video: HTMLVideoElement) {
video.volume = arn.audioPlayer.volume
if(video.readyState >= 2) {
togglePlayVideo(video)
return
}
video.addEventListener("canplay", () => {
togglePlayVideo(video)
})
video.... | import AnimeNotifier from "../AnimeNotifier"
// Play video
export function playVideo(arn: AnimeNotifier, video: HTMLVideoElement) {
video.volume = arn.audioPlayer.volume
if(video.readyState >= 2) {
togglePlayVideo(video)
return
}
video.addEventListener("canplay", () => {
togglePlayVideo(video)
})
video.... | Use prefixed document.fullscreen if necessary | Use prefixed document.fullscreen if necessary
| TypeScript | mit | animenotifier/notify.moe,animenotifier/notify.moe,animenotifier/notify.moe | typescript | ## Code Before:
import AnimeNotifier from "../AnimeNotifier"
// Play video
export function playVideo(arn: AnimeNotifier, video: HTMLVideoElement) {
video.volume = arn.audioPlayer.volume
if(video.readyState >= 2) {
togglePlayVideo(video)
return
}
video.addEventListener("canplay", () => {
togglePlayVideo(vid... |
5651bcff404d3c6352c22f1bdc9f959a8c5efdb7 | include/sys/select.h | include/sys/select.h | /*
* Copyright (C) 2014, Galois, Inc.
* This sotware is distributed under a standard, three-clause BSD license.
* Please see the file LICENSE, distributed with this software, for specific
* terms and conditions.
*/
#ifndef MINLIBC_SYS_SELECT_H
#define MINLIBC_SYS_SELECT_H
#include <time.h>
typedef struct {} fd_... | /*
* Copyright (C) 2014, Galois, Inc.
* This sotware is distributed under a standard, three-clause BSD license.
* Please see the file LICENSE, distributed with this software, for specific
* terms and conditions.
*/
#ifndef MINLIBC_SYS_SELECT_H
#define MINLIBC_SYS_SELECT_H
#include <time.h>
typedef struct {} fd_... | Add a definition for FD_SETSIZE. | Add a definition for FD_SETSIZE.
| C | bsd-3-clause | GaloisInc/minlibc,GaloisInc/minlibc | c | ## Code Before:
/*
* Copyright (C) 2014, Galois, Inc.
* This sotware is distributed under a standard, three-clause BSD license.
* Please see the file LICENSE, distributed with this software, for specific
* terms and conditions.
*/
#ifndef MINLIBC_SYS_SELECT_H
#define MINLIBC_SYS_SELECT_H
#include <time.h>
typed... |
179cd213853e4c185ccb76dcd5baadaf14b2bf0c | commits.html | commits.html | <!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="d3.v2.js"></script>
<link rel="stylesheet" type="text/css" href="commits.css"></link>
</head>
<body>
<div class="title">Javaposse Roundup GitHub Repositories</div>
... | <!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<link rel="stylesheet" type="text/css" href="commits.css"></link>
</head>
<body>
<div class="title">Ja... | Use CDN-hosted jQuery and d3 instead of local .js files | Use CDN-hosted jQuery and d3 instead of local .js files
| HTML | bsd-3-clause | JavaPosseRoundup/d3github | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="d3.v2.js"></script>
<link rel="stylesheet" type="text/css" href="commits.css"></link>
</head>
<body>
<div class="title">Javaposse Roundup GitHub Repo... |
db1528d3401577356d9cfc62f63b2f601838827a | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<title>React Timeline</title>
<!-- Latest compiled and minified CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin... | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head profile="https://www.w3.org/1999/xhtml/vocab">
<title>React Timeline</title>
<!-- Site Meta-Data -->
<meta charset="UTF-8"> <!-- In HTML5 --... | Add relevant site metadata for SEO purposes | docs: Add relevant site metadata for SEO purposes
| HTML | mit | IsenrichO/react-timeline,IsenrichO/react-timeline | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>React Timeline</title>
<!-- Latest compiled and minified CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"... |
5337600369e4f6c4e0b85684d5addf4a38ad5b57 | README.rst | README.rst | **Triton** is a dynamic binary analysis framework based on Pin. It provides components like a
taint engine, a dynamic symbolic execution engine, a snapshot engine, translation of x64
instruction to SMT2-LIB language and a Z3 interface to solve constraints.
Based on these components, Triton provides runtime behavior... | **Triton** is a dynamic binary analysis framework based on Pin. It provides components like a
taint engine, a dynamic symbolic execution engine, a snapshot engine, translation of x64
instruction into SMT2-LIB representation and a Z3 interface to solve constraints.
Based on these components, Triton provides runtime ... | Fix typo in the readme | Fix typo in the readme
| reStructuredText | apache-2.0 | JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton,JonathanSalwan/Triton | restructuredtext | ## Code Before:
**Triton** is a dynamic binary analysis framework based on Pin. It provides components like a
taint engine, a dynamic symbolic execution engine, a snapshot engine, translation of x64
instruction to SMT2-LIB language and a Z3 interface to solve constraints.
Based on these components, Triton provides ... |
4ece5e12a498458e87be4d26b5e248a5afafa910 | templates/home/_pybossa_text.html | templates/home/_pybossa_text.html | <p>You can assist existing research projects with tasks that need human
intelligence, such as the accurate location of artefact findspots or
photographed scenes, the identification of subject matter in historic
archives, the masking of photos meant for 3D modelling, or the transcription of
letters and catalogues. O... | <p>You can assist existing research projects with tasks that need human
intelligence, such as the accurate location of artefact findspots or
photographed scenes, the identification of subject matter in historic
archives, the masking of photos meant for 3D modelling, or the transcription of
letters and catalogues. O... | Use url_for to generate url in link | Use url_for to generate url in link
| HTML | agpl-3.0 | PyBossa/MicroPasts-pybossa-theme,PyBossa/MicroPasts-pybossa-theme,PyBossa/MicroPasts-pybossa-theme | html | ## Code Before:
<p>You can assist existing research projects with tasks that need human
intelligence, such as the accurate location of artefact findspots or
photographed scenes, the identification of subject matter in historic
archives, the masking of photos meant for 3D modelling, or the transcription of
letters and c... |
8e61d5679e599170d40c9d83758d990d6e00b2fd | .travis.yml | .travis.yml | language: csharp
mono: none
dotnet: 2.0.0
dist: trusty
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
os:
- linux
- osx
osx_image: xcode8.2
before_script:
- chmod +x ./build.sh
script:
- ./build.sh | language: csharp
mono: none
dotnet: 2.1.300-preview1-008174
dist: trusty
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
os:
- linux
- osx
osx_image: xcode8.2
before_script:
- chmod +x ./build.sh
script:
- ./build.sh | Update Travis .NET Core SDK version | Update Travis .NET Core SDK version
| YAML | mit | henkmollema/Dommel | yaml | ## Code Before:
language: csharp
mono: none
dotnet: 2.0.0
dist: trusty
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
os:
- linux
- osx
osx_image: xcode8.2
before_script:
- chmod +x ./build.sh
script:
- ./build.sh
## Instruction:
Update Travis .NET Core SDK ver... |
004d2fdde601351f36333571361f718a5c4048e8 | .travis.yml | .travis.yml | language: java
matrix:
include:
- os: linux
jdk: oraclejdk8
- os: linux
services:
- docker
before_install:
- docker pull ibmcom/ibmjava:8-sdk
script:
- docker run -v `pwd`:/work ibmcom/ibmjava:8-sdk /bin/sh -c "cd work; ./mvnw clean test"
| language: java
matrix:
include:
- os: linux
jdk: oraclejdk8
- os: linux
services:
- docker
before_install:
- docker pull ibmcom/ibmjava:8-sdk
script:
- docker run -v `pwd`:/work ibmcom/ibmjava:8-sdk /bin/sh -c "cd work; java -version; ./mvnw clean test"
| Add java version output to J9 run | Add java version output to J9 run
| YAML | apache-2.0 | headius/invokebinder,headius/invokebinder | yaml | ## Code Before:
language: java
matrix:
include:
- os: linux
jdk: oraclejdk8
- os: linux
services:
- docker
before_install:
- docker pull ibmcom/ibmjava:8-sdk
script:
- docker run -v `pwd`:/work ibmcom/ibmjava:8-sdk /bin/sh -c "cd work; ./mvnw clean test"
## In... |
6c3a7b745cc5bb236df587bf2ad27bd16b0f1b94 | pkg/lang/policy_api.go | pkg/lang/policy_api.go | package lang
type APIPolicy struct {
Namespace map[string]*PolicyNamespace
}
type APIPolicyNamespace struct {
Services map[string]*Service
Contracts map[string]*Contract
Clusters map[string]*Cluster
Rules map[string]*Rule
ACLRules map[string]*Rule
Dependencies map[string]*Dependency
}
fu... | package lang
// APIPolicy is a Policy representation for API filtered for specific user
type APIPolicy struct {
Namespace map[string]*APIPolicyNamespace
}
// APIPolicyNamespace is a PolicyNamespace representation for API filtered for specific user
type APIPolicyNamespace struct {
Services map[string]*Service
C... | Add comments and fix APIPolicy/Namespace type | Add comments and fix APIPolicy/Namespace type
| Go | apache-2.0 | Aptomi/aptomi,Aptomi/aptomi,Aptomi/aptomi,Aptomi/aptomi | go | ## Code Before:
package lang
type APIPolicy struct {
Namespace map[string]*PolicyNamespace
}
type APIPolicyNamespace struct {
Services map[string]*Service
Contracts map[string]*Contract
Clusters map[string]*Cluster
Rules map[string]*Rule
ACLRules map[string]*Rule
Dependencies map[string]*... |
845ee976d754fc16bbec4633acefbd7fc75b80e5 | app/components/Search/index.js | app/components/Search/index.js | import React, { PropTypes } from 'react';
import './index.css';
const Search = React.createClass({
propTypes: {
onChange: PropTypes.func.isRequired,
},
render() {
return (
<div className="Search">
<input
type="search"
placeholder="Search"
className="Search-in... | import React, { PropTypes } from 'react';
import './index.css';
const Search = React.createClass({
propTypes: {
onChange: PropTypes.func.isRequired,
},
render() {
return (
<div className="Search">
<input
type="search"
placeholder="Search"
className="Search-in... | Add autofocus to search input field | Add autofocus to search input field
| JavaScript | mit | transparantnederland/relationizer,transparantnederland/relationizer,transparantnederland/browser,waagsociety/tnl-relationizer,transparantnederland/browser,waagsociety/tnl-relationizer | javascript | ## Code Before:
import React, { PropTypes } from 'react';
import './index.css';
const Search = React.createClass({
propTypes: {
onChange: PropTypes.func.isRequired,
},
render() {
return (
<div className="Search">
<input
type="search"
placeholder="Search"
clas... |
84ee7f1c63b992a6e581ca2fcd33522ae19446ff | grako/__init__.py | grako/__init__.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from grako import tool
genmodel = tool.genmodel
codegen = tool.codegen
def main():
tool.main()
if __name__ == '__main__':
main()
| from __future__ import (absolute_import, division, print_function,
unicode_literals)
from grako import tool
genmodel = tool.genmodel
gencode = tool.gencode
def main():
tool.main()
if __name__ == '__main__':
main()
| Revert unwanted change in tool/script. | Revert unwanted change in tool/script.
| Python | bsd-2-clause | vmuriart/grako,frnknglrt/grako | python | ## Code Before:
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from grako import tool
genmodel = tool.genmodel
codegen = tool.codegen
def main():
tool.main()
if __name__ == '__main__':
main()
## Instruction:
Revert unwanted change in tool/script... |
5833da72eb8c0ee7be0dd0979f7103b4d1f39faf | client/packages/gtm-dashboard-extension-worona/src/dashboard/sagas/index.js | client/packages/gtm-dashboard-extension-worona/src/dashboard/sagas/index.js | /* eslint-disable no-undef */
import { takeEvery } from 'redux-saga';
import { select } from 'redux-saga/effects';
import { capitalize } from 'lodash';
import * as deps from '../deps';
export function launchGTMEventsSaga(action) {
const { type, ...props } = action;
window.dataLayer.push({
event: type,
prop... | /* eslint-disable no-undef */
import { takeEvery } from 'redux-saga';
import { select } from 'redux-saga/effects';
import { capitalize } from 'lodash';
import * as deps from '../deps';
export function launchGTMEventsSaga(action) {
const { type, ...props } = action;
window.dataLayer.push({
event: type,
prop... | Remove siteIds from virtualPageView urls. | Remove siteIds from virtualPageView urls.
| JavaScript | mit | worona/worona-core,worona/worona,worona/worona-core,worona/worona,worona/worona-dashboard,worona/worona-dashboard,worona/worona | javascript | ## Code Before:
/* eslint-disable no-undef */
import { takeEvery } from 'redux-saga';
import { select } from 'redux-saga/effects';
import { capitalize } from 'lodash';
import * as deps from '../deps';
export function launchGTMEventsSaga(action) {
const { type, ...props } = action;
window.dataLayer.push({
event... |
e9e2643a93348ad62048bed119adbb062924ec9b | app/templates/data/_menu.json | app/templates/data/_menu.json | {
"navbar": {
"Home": "/",
"Test page": "#testpage"
}
}
| {
"navbar": {
"Home": "/",
"Yellfy CLI": "https://www.npmjs.com/package/yellfy-cli"
}
}
| Add link to Yellfy CLI in navbar for example | Add link to Yellfy CLI in navbar for example
| JSON | mit | mrmlnc/rwk,mrmlnc/rwk | json | ## Code Before:
{
"navbar": {
"Home": "/",
"Test page": "#testpage"
}
}
## Instruction:
Add link to Yellfy CLI in navbar for example
## Code After:
{
"navbar": {
"Home": "/",
"Yellfy CLI": "https://www.npmjs.com/package/yellfy-cli"
}
}
|
d727d22090bac8b6dfa9d61fdb760cecc32b442b | features/tugboat/config_current_directory.feature | features/tugboat/config_current_directory.feature | Feature: config
In order to easily load DigitalOcean config
As a user
I should be able to load tugboat config from a .tugboat in the current directory
Scenario: Read config from current directory
Given a file named ".tugboat" with:
"""
---
authentication:
client_key: FOO
api_key: BAR
ssh:
ssh_u... | Feature: config
In order to easily load DigitalOcean config
As a user
I should be able to load tugboat config from a .tugboat in the current directory
Scenario: Read config from current directory
Given a '.tugboat' config with data:
"""
---
authentication:
access_token: FOO
ssh:
ssh_user: janedoe
ssh... | Update reading config from current directory steps | Update reading config from current directory steps | Cucumber | mit | pearkes/tugboat,petems/tugboat | cucumber | ## Code Before:
Feature: config
In order to easily load DigitalOcean config
As a user
I should be able to load tugboat config from a .tugboat in the current directory
Scenario: Read config from current directory
Given a file named ".tugboat" with:
"""
---
authentication:
client_key: FOO
api_key: ... |
f3cc2de83c88f01f7ec554ae6223132c284b4ad4 | kotti_site_gallery/__init__.py | kotti_site_gallery/__init__.py | from fanstatic import Library
from fanstatic import Resource
from kotti.resources import Image
import kotti.static as ks
lib_kotti_site_gallery = Library('kotti_site_gallery', 'static')
view_css = Resource(lib_kotti_site_gallery,
"kotti_site_gallery.css",
minified="kotti_site_g... | from __future__ import absolute_import
from fanstatic import Library
from fanstatic import Resource
from kotti.resources import Image
from kotti.fanstatic import view_css
from kotti.fanstatic import view_needed
lib_kotti_site_gallery = Library('kotti_site_gallery', 'static')
ksg_view_css = Resource(lib_kotti_site_ga... | Fix import for Kotti > 0.8x. | Fix import for Kotti > 0.8x.
| Python | bsd-2-clause | Kotti/kotti_site_gallery,Kotti/kotti_site_gallery | python | ## Code Before:
from fanstatic import Library
from fanstatic import Resource
from kotti.resources import Image
import kotti.static as ks
lib_kotti_site_gallery = Library('kotti_site_gallery', 'static')
view_css = Resource(lib_kotti_site_gallery,
"kotti_site_gallery.css",
minifi... |
25430893c9d21b6ed1827aa48fef09d806c029b9 | src/main.rs | src/main.rs | extern crate env_logger;
mod cli;
fn main() {
env_logger::init().expect("Failed to initialize logger.");
run_cli();
}
fn run_cli<'a>() -> Result<(), &'a str> {
let matches = cli::app().get_matches();
let verbose_level = match matches.occurrences_of("verbose") {
0...4 => matches.occurrences_... | extern crate env_logger;
mod cli;
use std::process::exit;
fn main() {
env_logger::init().expect("Failed to initialize logger.");
match run_cli() {
Ok(_) => {},
Err((message, exit_code)) => {
error!("Error: {}", message);
exit(exit_code);
},
}
}
fn run_cli... | Add ability to exit non-zero if run_cli reports a failure | Add ability to exit non-zero if run_cli reports a failure
| Rust | mit | jhelwig/homers | rust | ## Code Before:
extern crate env_logger;
mod cli;
fn main() {
env_logger::init().expect("Failed to initialize logger.");
run_cli();
}
fn run_cli<'a>() -> Result<(), &'a str> {
let matches = cli::app().get_matches();
let verbose_level = match matches.occurrences_of("verbose") {
0...4 => matc... |
6b76c84f043a9e0df040b39369e75b14177881cb | tests/integration/HttpClientTest.php | tests/integration/HttpClientTest.php | <?php
use MessageBird\Client;
use MessageBird\Common\HttpClient;
class HttpClientTest extends PHPUnit_Framework_TestCase
{
public function testHttpClient()
{
$client = new HttpClient(Client::ENDPOINT);
$url = $client->getRequestUrl('a', null);
$this->assertSame(Client::ENDPOINT.'/a', $... | <?php
use MessageBird\Client;
use MessageBird\Common\HttpClient;
class HttpClientTest extends PHPUnit_Framework_TestCase
{
public function testHttpClient()
{
$client = new HttpClient(Client::ENDPOINT);
$url = $client->getRequestUrl('a', null);
$this->assertSame(Client::ENDPOINT.'/a', $... | Add tests for boundary conditions in HttpClient timeouts | Add tests for boundary conditions in HttpClient timeouts
| PHP | bsd-2-clause | messagebird/php-rest-api,dennisvdvliet/php-rest-api | php | ## Code Before:
<?php
use MessageBird\Client;
use MessageBird\Common\HttpClient;
class HttpClientTest extends PHPUnit_Framework_TestCase
{
public function testHttpClient()
{
$client = new HttpClient(Client::ENDPOINT);
$url = $client->getRequestUrl('a', null);
$this->assertSame(Client::... |
70bcb296398b90840f2c02731b26d005014304b0 | test/db.rb | test/db.rb | require 'sequelizer'
DB = Object.new.extend(Sequelizer).db unless defined?(DB)
DB.run("use #{DB.opts[:database]}") if DB.opts[:adapter] =~ /(impala|hive)/
if %w(omopv4 omopv4_plus).include?(ENV['DATA_MODEL']) && !DB.table_exists?(:source_to_concept_map)
$stderr.puts <<END
The source_to_concept_map table doesn't ex... | require 'sequelizer'
DB = Object.new.extend(Sequelizer).db unless defined?(DB)
if DB.database_type == :impala
# Make sure to issue USE statement for every new connection
ac = DB.pool.after_connect
DB.pool.after_connect = proc do |conn|
DB.send(:log_connection_execute, conn, "USE #{DB.opts[:database]}")
a... | Fix USE statement execution when testing on impala/hive | Fix USE statement execution when testing on impala/hive
Issuing the USE query once via Datase#run only works if only one
connection is ever created. While that may be true for the current
tests, this will bite us later if we ever have multithreaded access
in the tests or there is an accidental disconnect during testi... | Ruby | mit | outcomesinsights/conceptql,outcomesinsights/conceptql | ruby | ## Code Before:
require 'sequelizer'
DB = Object.new.extend(Sequelizer).db unless defined?(DB)
DB.run("use #{DB.opts[:database]}") if DB.opts[:adapter] =~ /(impala|hive)/
if %w(omopv4 omopv4_plus).include?(ENV['DATA_MODEL']) && !DB.table_exists?(:source_to_concept_map)
$stderr.puts <<END
The source_to_concept_map ... |
d5b822f2d5cbfce098ce2b97757a7a8636fbf25b | .github/APOLLO_RELEASE_TEMPLATE.md | .github/APOLLO_RELEASE_TEMPLATE.md | Release X.Y.Z
As with [release PRs in the past](https://github.com/apollographql/apollo-server/labels/%F0%9F%8F%97%20release), this is a PR tracking a `release-x.y.z` branch for an upcoming release of Apollo Server. 🙌 The version in the title of this PR should correspond to the appropriate branch.
Check the approp... | Release X.Y.Z
As with [release PRs in the past](https://github.com/apollographql/apollo-server/issues?q=label%3A%22%F0%9F%8F%97+release%22+is%3Aclosed), this is a PR tracking a `release-x.y.z` branch for an upcoming release of Apollo Server. 🙌 The version in the title of this PR should correspond to the appropriate... | Change link in release PR template to reference `is:closed`. | chore: Change link in release PR template to reference `is:closed`.
| Markdown | mit | apollostack/apollo-server | markdown | ## Code Before:
Release X.Y.Z
As with [release PRs in the past](https://github.com/apollographql/apollo-server/labels/%F0%9F%8F%97%20release), this is a PR tracking a `release-x.y.z` branch for an upcoming release of Apollo Server. 🙌 The version in the title of this PR should correspond to the appropriate branch.
... |
19a91f09b096fea15f35def7a978db43b4c4b9d5 | assets/js/index.js | assets/js/index.js | /**
* Main JS file for Casper behaviours
*/
/* globals jQuery, document */
(function ($, undefined) {
"use strict";
var $document = $(document);
$document.ready(function () {
var $postContent = $(".post-content");
$postContent.fitVids();
$(".scroll-down").arctic_scroll();
... | /**
* Main JS file for Casper behaviours
*/
/* globals jQuery, document */
(function ($, undefined) {
"use strict";
var $document = $(document);
$document.ready(function () {
var $postContent = $(".post-content");
$postContent.fitVids();
$(".menu-button, .nav-cover, .nav-close... | Add function for placing footnotes | Add function for placing footnotes
| JavaScript | mit | dvdhllbrg/tufte-ghost | javascript | ## Code Before:
/**
* Main JS file for Casper behaviours
*/
/* globals jQuery, document */
(function ($, undefined) {
"use strict";
var $document = $(document);
$document.ready(function () {
var $postContent = $(".post-content");
$postContent.fitVids();
$(".scroll-down").arcti... |
6652e642e2a7d6388b8a80f072b3161db6f66ee3 | setup.py | setup.py |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... |
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",
classifiers... | Add lxml and beautifulsoup dependencies | Add lxml and beautifulsoup dependencies
| Python | apache-2.0 | socib/javasphinx,bronto/javasphinx,Zyzle/javasphinx | python | ## Code Before:
from setuptools import setup
setup(
name = "javasphinx",
packages = ["javasphinx"],
version = "0.9.8",
author = "Chris Thunes",
author_email = "cthunes@brewtab.com",
url = "http://github.com/bronto/javasphinx",
description = "Sphinx extension for documenting Java projects",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.