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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
385c09568b9eec678e0f94af93d6484541fa2e19 | README.md | README.md |
Tells you if the string you pass in is a built-in node module
## Install
```
npm install isbuiltin --save
```
## Usage
```
var isBuiltIn = require('isbuiltin);
isBuiltIn('console');
=> true
isBuiltIn('woosh');
=> false
```
## License
MIT © [Deepak Kapoor](http://kapoor.io)
|
Tells you if the string you pass in is a built-in node module
## Install
```
npm install isbuiltin --save
```
## Usage
```
var isBuiltIn = require('isbuiltin);
isBuiltIn('console');
=> true
isBuiltIn('woosh');
=> false
```
## Run Tests
```
npm install && npm test
```
## License
MIT © [Deepak Kapoor](http://... | Update readme with test info | Update readme with test info
| Markdown | mit | deepak-kapoor/isbuiltin | markdown | ## Code Before:
Tells you if the string you pass in is a built-in node module
## Install
```
npm install isbuiltin --save
```
## Usage
```
var isBuiltIn = require('isbuiltin);
isBuiltIn('console');
=> true
isBuiltIn('woosh');
=> false
```
## License
MIT © [Deepak Kapoor](http://kapoor.io)
## Instruction:
U... |
ef03ea164f2e4f6af770f7024188ee3f2f0d1829 | devtools/platform-descriptor-json/src/main/resources/codestarts/quarkus/core/project/quarkus/codestart.yml | devtools/platform-descriptor-json/src/main/resources/codestarts/quarkus/core/project/quarkus/codestart.yml | name: quarkus
type: project
fallback: true
output-strategy:
"pom.xml": smart-pom-merge
"README.md": append
"readme.md": forbidden
"README.adoc": forbidden
"readme.adoc": forbidden
".gitignore": append
"src/native-test/*": native-test-dir-resolve
"src/main/resources/application.yml": smart-config-merge
... | name: quarkus
type: project
fallback: true
output-strategy:
"pom.xml": smart-pom-merge
"README.md": append
"readme.md": forbidden
"README.adoc": forbidden
"readme.adoc": forbidden
".gitignore": append
"src/native-test/*": native-test-dir-resolve
"src/main/resources/application.yml": smart-config-merge
... | Add quarkus-arc as a project dependency in Quarkus Codestarts | Add quarkus-arc as a project dependency in Quarkus Codestarts
| YAML | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus | yaml | ## Code Before:
name: quarkus
type: project
fallback: true
output-strategy:
"pom.xml": smart-pom-merge
"README.md": append
"readme.md": forbidden
"README.adoc": forbidden
"readme.adoc": forbidden
".gitignore": append
"src/native-test/*": native-test-dir-resolve
"src/main/resources/application.yml": smar... |
7627171580ebbff16f876bca86692d10e1055930 | .travis.yml | .travis.yml |
language: sh
notifications:
email: false
slack:
secure: dNE7nOHDxyrwcgPfcDJB6WZeoYCYx/ZGI4rOJsSxbxK//0uUjZ1ECwUW4wN0+sQkYUqm0xKku9ZUHFCVDr8R572srM+7cJ8vUcEy2m3cQ+aHkZF6mvbiyncEB/GbPQto8z9n5FwwHDOneBGvk/+nv0AM0hkShbAUQxNNxFFy5kE=
env:
- HALCYON_SANDBOX_EXTRA_APPS="alex-3.1.4 happy-1.19.5"
before_install:
... |
language: sh
notifications:
email: false
slack:
secure: dNE7nOHDxyrwcgPfcDJB6WZeoYCYx/ZGI4rOJsSxbxK//0uUjZ1ECwUW4wN0+sQkYUqm0xKku9ZUHFCVDr8R572srM+7cJ8vUcEy2m3cQ+aHkZF6mvbiyncEB/GbPQto8z9n5FwwHDOneBGvk/+nv0AM0hkShbAUQxNNxFFy5kE=
env:
- HALCYON_SANDBOX_EXTRA_APPS="alex-3.1.4 happy-1.19.5 yesod-bin"
before_... | Install yesod-bin as an extra app too | Install yesod-bin as an extra app too
| YAML | mit | jspahrsummers/ScrumBut | yaml | ## Code Before:
language: sh
notifications:
email: false
slack:
secure: dNE7nOHDxyrwcgPfcDJB6WZeoYCYx/ZGI4rOJsSxbxK//0uUjZ1ECwUW4wN0+sQkYUqm0xKku9ZUHFCVDr8R572srM+7cJ8vUcEy2m3cQ+aHkZF6mvbiyncEB/GbPQto8z9n5FwwHDOneBGvk/+nv0AM0hkShbAUQxNNxFFy5kE=
env:
- HALCYON_SANDBOX_EXTRA_APPS="alex-3.1.4 happy-1.19.5"
b... |
8033b64ca88720ddbc7394843a3375613cc5b0e1 | autogen.sh | autogen.sh | AC_VERSION=
AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ "$AM_INSTALLED_VERSION" != "1.10" \
-a "$AM_INSTALLED_VERSION" != "1.11" ];then
echo
echo "You must have automake > 1.10 or 1.11 installed to compile lxmenu-data."
ech... | AC_VERSION=
AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ $AM_INSTALLED_VERSION < 1.10 ];then
echo
echo "You must have automake > 1.10 installed to compile lxmenu-data."
echo "Install the appropriate package for your distribution... | Fix build with automake > 1.11 | Fix build with automake > 1.11
| Shell | lgpl-2.1 | lxde/lxmenu-data,smart2128/lxmenu-data,lxde/lxmenu-data,smart2128/lxmenu-data | shell | ## Code Before:
AC_VERSION=
AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ "$AM_INSTALLED_VERSION" != "1.10" \
-a "$AM_INSTALLED_VERSION" != "1.11" ];then
echo
echo "You must have automake > 1.10 or 1.11 installed to compile lx... |
f23eee6f5fa754c5553b17d95ac2ec3515e7ff01 | server/test/controllers/user-controller.js | server/test/controllers/user-controller.js | const should = require('should');
const sinon = require('sinon');
require('should-sinon');
const proxyquire = require('proxyquire');
const httpMocks = require('node-mocks-http');
// Mock Service
const mockObj = {
getAllUsers() {
return Promise.resolve(['item 1', 'item 2']);
}
};
const userController ... | const should = require('should');
const sinon = require('sinon');
require('should-sinon');
const proxyquire = require('proxyquire');
const httpMocks = require('node-mocks-http');
// Mock Service
const mockObj = {
getAllUsers() {
return Promise.resolve(['item 1', 'item 2']);
}
};
const userController ... | Remove test for fail case (handled by express) | [tests] Remove test for fail case (handled by express)
| JavaScript | apache-2.0 | K-Fet/K-App,K-Fet/K-App,K-Fet/K-App,K-Fet/K-App | javascript | ## Code Before:
const should = require('should');
const sinon = require('sinon');
require('should-sinon');
const proxyquire = require('proxyquire');
const httpMocks = require('node-mocks-http');
// Mock Service
const mockObj = {
getAllUsers() {
return Promise.resolve(['item 1', 'item 2']);
}
};
const... |
dc9cc4021609ba1f5d4654d3aafc587807941d81 | .travis.yml | .travis.yml | language: clojure
jdk: oraclejdk10
lein: 2.8.1
script:
- lein doo phantom test once
- lein cljsbuild once release
- lein less once
| language: clojure
jdk: openjdk10
lein: 2.8.1
before_install:
- rm "${JAVA_HOME}/lib/security/cacerts"
- ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
script:
- lein doo phantom test once
- lein cljsbuild once release
- lein less once
| Switch to openjdk10 since oraclejdk10 is deprecated | Switch to openjdk10 since oraclejdk10 is deprecated
| YAML | apache-2.0 | asciinema/asciinema-player,asciinema/asciinema-player | yaml | ## Code Before:
language: clojure
jdk: oraclejdk10
lein: 2.8.1
script:
- lein doo phantom test once
- lein cljsbuild once release
- lein less once
## Instruction:
Switch to openjdk10 since oraclejdk10 is deprecated
## Code After:
language: clojure
jdk: openjdk10
lein: 2.8.1
before_install:
- rm "${JAVA_HOME}/... |
3e5235b6114772606a59e3c3165b2b0f5fa77542 | mudlib/mud/home/Help/initd.c | mudlib/mud/home/Help/initd.c |
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
load_dir("obj", 1);
load_dir("sys", 1);
}
void full_reset()
{
object turkeylist;
object cursor;
object first;
object this;
ACCESS_CHECK(PRIVILEGED());
turkeylist = new_object(BIGSTRUCT_DEQUE_LWO);
this = this_object();
cursor = KERNELD->... |
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
load_dir("obj", 1);
load_dir("sys", 1);
}
void full_reset()
{
object turkeylist;
object cursor;
object first;
object this;
ACCESS_CHECK(PRIVILEGED());
turkeylist = new_object(BIGSTRUCT_DEQUE_LWO);
this = this_object();
cursor = KERNELD->... | Remove now needless debug spam | Remove now needless debug spam
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | c | ## Code Before:
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
load_dir("obj", 1);
load_dir("sys", 1);
}
void full_reset()
{
object turkeylist;
object cursor;
object first;
object this;
ACCESS_CHECK(PRIVILEGED());
turkeylist = new_object(BIGSTRUCT_DEQUE_LWO);
this = this_object();
cu... |
6fa02c0a03b148bf6e6e0d298d1e392ba313e044 | src/Oro/Bundle/FormBundle/Resources/public/blank/scss/variables/input-config.scss | src/Oro/Bundle/FormBundle/Resources/public/blank/scss/variables/input-config.scss | /* @theme: blank; */
$use-base-style-for-input: true !default;
// Default
$input-width-short: 64px !default;
$input-padding: 8px 9px !default;
$input-date-height: 35px !default;
$input-number-box-shadow: none !default;
$input-font-size: $base-ui-element-font-size !default;
$input-font-family: $base-ui-element-font-fa... | /* @theme: blank; */
$use-base-style-for-input: true !default;
// Default
$input-width-short: 64px !default;
$input-padding: 8px 9px !default;
$input-date-height: 35px !default;
$input-number-box-shadow: none !default;
$input-font-size: $base-ui-element-font-size !default;
$input-font-family: $base-ui-element-font-fa... | Customize Bootstrap for frontend (reuse current settings) - small fixes and clean up | BB-14806: Customize Bootstrap for frontend (reuse current settings)
- small fixes and clean up
| SCSS | mit | orocrm/platform,orocrm/platform,orocrm/platform | scss | ## Code Before:
/* @theme: blank; */
$use-base-style-for-input: true !default;
// Default
$input-width-short: 64px !default;
$input-padding: 8px 9px !default;
$input-date-height: 35px !default;
$input-number-box-shadow: none !default;
$input-font-size: $base-ui-element-font-size !default;
$input-font-family: $base-ui... |
3a4d8a11b8b3581f65f304487d7bbd3aea64e3c7 | test/test_helper.rb | test/test_helper.rb | require "protest"
require "test/unit/assertions"
Protest.report_with(:documentation)
module TestHelpers
class IORecorder
attr_reader :messages
def initialize
@messages = []
end
def puts(msg=nil)
@messages << msg
end
def print(msg=nil)
@messages << msg
end
end
de... | require "protest"
require "test/unit/assertions"
Protest.report_with(:documentation)
module TestHelpers
class IORecorder
attr_reader :messages
def initialize
@messages = []
end
def puts(msg=nil)
@messages << msg
end
def print(msg=nil)
@messages << msg
end
end
de... | Allow mock test cases to be run with a report other than :progress | Allow mock test cases to be run with a report other than :progress
| Ruby | mit | matflores/protest | ruby | ## Code Before:
require "protest"
require "test/unit/assertions"
Protest.report_with(:documentation)
module TestHelpers
class IORecorder
attr_reader :messages
def initialize
@messages = []
end
def puts(msg=nil)
@messages << msg
end
def print(msg=nil)
@messages << msg
... |
0189b6cf1a07db9781fa6e1c5fc5f67ddef80351 | zsh/init/history.zsh | zsh/init/history.zsh |
setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space
setopt hist_v... |
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space ... | Set HISTFILE if it's not set | Set HISTFILE if it's not set
| Shell | mit | marshall-lee/dotfiles,marshall-lee/dotfiles | shell | ## Code Before:
setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with spa... |
6f028af99c98f9e2b16b28571900d82d880f1b3e | SDK/Version.rb | SDK/Version.rb |
REPOSITORY_ROOT = File.expand_path File.join(File.dirname(__FILE__), '..') unless defined? REPOSITORY_ROOT
require "#{REPOSITORY_ROOT}/Scripts/Shared.rb"
require "#{REPOSITORY_ROOT}/Scripts/Git.rb"
def sdk_version
version = File.read("#{REPOSITORY_ROOT}/VERSION").lines.first.strip
# Include the branch name if n... |
REPOSITORY_ROOT = File.expand_path File.join(File.dirname(__FILE__), '..') unless defined? REPOSITORY_ROOT
require "#{REPOSITORY_ROOT}/Scripts/Shared.rb"
require "#{REPOSITORY_ROOT}/Scripts/Git.rb"
def sdk_version
version = File.read("#{REPOSITORY_ROOT}/VERSION").lines.first.strip
# Include the branch name if n... | Rename master branch to main | Rename master branch to main
| Ruby | mpl-2.0 | savant-nz/carbon,savant-nz/carbon,savant-nz/carbon,savant-nz/carbon,savant-nz/carbon,savant-nz/carbon | ruby | ## Code Before:
REPOSITORY_ROOT = File.expand_path File.join(File.dirname(__FILE__), '..') unless defined? REPOSITORY_ROOT
require "#{REPOSITORY_ROOT}/Scripts/Shared.rb"
require "#{REPOSITORY_ROOT}/Scripts/Git.rb"
def sdk_version
version = File.read("#{REPOSITORY_ROOT}/VERSION").lines.first.strip
# Include the ... |
c61aed7c6a65a7cf1ae3f9fbdd8719bcb727b37d | README.md | README.md | 
# middleman-breadcrumbs
Breadcrumbs helper for Middleman
## Installation
Install the gem as usual: put `gem 'middleman-breadcrumbs'` in Gemfile, then run `bundle install`.
Put `activate :breadcrumbs` in config.rb (*not* in the `configure :build` block).
... | 
# middleman-breadcrumbs
Breadcrumbs helper for [Middleman](https://middlemanapp.com/)
## Installation
Install the gem as usual: put `gem 'middleman-breadcrumbs'` in Gemfile, then run `bundle install`.
Put `activate :breadcrumbs` in config.rb (*not* in the... | Add link to Middleman website. | Add link to Middleman website. | Markdown | mit | marnen/middleman-breadcrumbs,marnen/middleman-breadcrumbs | markdown | ## Code Before:

# middleman-breadcrumbs
Breadcrumbs helper for Middleman
## Installation
Install the gem as usual: put `gem 'middleman-breadcrumbs'` in Gemfile, then run `bundle install`.
Put `activate :breadcrumbs` in config.rb (*not* in the `configure :... |
38b314f8e50bd17e1e712974cccbb78d3470404f | metadata/com.github.webierta.call_counter.yml | metadata/com.github.webierta.call_counter.yml | Categories:
- Phone & SMS
License: GPL-3.0-only
AuthorName: Webierta
SourceCode: https://github.com/Webierta/call-counter
AutoName: Call Counter
RepoType: git
Repo: https://github.com/Webierta/call-counter.git
Builds:
- versionName: 1.2.0
versionCode: 2
commit: v1.2.0
output: build/app/outputs/flutte... | Categories:
- Phone & SMS
License: GPL-3.0-only
AuthorName: Webierta
SourceCode: https://github.com/Webierta/call-counter
IssueTracker: https://github.com/Webierta/call-counter/issues
Changelog: https://github.com/Webierta/call-counter/releases
AutoName: Call Counter
RepoType: git
Repo: https://github.com/Webierta/... | Call Counter: add IssueTracker & Changelog urls | Call Counter: add IssueTracker & Changelog urls
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Phone & SMS
License: GPL-3.0-only
AuthorName: Webierta
SourceCode: https://github.com/Webierta/call-counter
AutoName: Call Counter
RepoType: git
Repo: https://github.com/Webierta/call-counter.git
Builds:
- versionName: 1.2.0
versionCode: 2
commit: v1.2.0
output: build/ap... |
f340eaf39e9c340ab778616c8794cc7e9e6b3d28 | app/views/users/new.html.erb | app/views/users/new.html.erb | <h1>Register</h1>
<%= form_for @user do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.submit %>
<% end %>
<% if @user.errors.any? %>
<ul>
<% @user.errors.full_messages.e... | <div class="ques-answer cf">
<h3>Register</h3>
<%= form_for @user do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<br><br>
<%= f.label :username %>
<%= f.text_field :username %>
<br><br>
<%= f.label :password %>
<%= f.password_field :password %>
<br><br>
<div class... | Add styling tags for register user page | Add styling tags for register user page
| HTML+ERB | mit | jeder28/stack_overphil,jeder28/stack_overphil,jeder28/stack_overphil | html+erb | ## Code Before:
<h1>Register</h1>
<%= form_for @user do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.submit %>
<% end %>
<% if @user.errors.any? %>
<ul>
<% @user.errors... |
438c6d0b8bea994e9f57b4c480ebcdfd197a0e28 | setup.py | setup.py | from setuptools import setup, find_packages
import plaid
url = 'https://github.com/plaid/plaid-python'
setup(
name='plaid-python',
version=plaid.__version__,
description='Simple Python API client for Plaid',
long_description='',
keywords='api, client, plaid',
author='Chris Forrette',
auth... | from setuptools import setup, find_packages
import plaid
url = 'https://github.com/plaid/plaid-python'
setup(
name='plaid-python',
version=plaid.__version__,
description='Simple Python API client for Plaid',
long_description='',
keywords='api, client, plaid',
author='Chris Forrette',
auth... | Update "Programming Language" Tag to Indicate Python3 Support | Update "Programming Language" Tag to Indicate Python3 Support
| Python | mit | erikbern/plaid-python,qwil/plaid-python,plaid/plaid-python | python | ## Code Before:
from setuptools import setup, find_packages
import plaid
url = 'https://github.com/plaid/plaid-python'
setup(
name='plaid-python',
version=plaid.__version__,
description='Simple Python API client for Plaid',
long_description='',
keywords='api, client, plaid',
author='Chris For... |
3ae5e55d22297040032f12836730843500bfbf2b | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.10"
after_success:
- npm run-script deploy
env:
global:
- GH_REF: github.com/tddbin/tddbin-frontend.git
- secure: HofeV8v4B9m97cQ7S4otS7r+iY39ME1pIh/oGJc2U46oce+vAI1ONGVccgM0325myUqYTyZmP/dZGewalNm2X2KFoMrJefSNvMVTmyI9DzWKni575ss3tbuOy/RTcHTDzSc4eEZgSdnIC7OyzeTGi7WN583WUthFkc6P+... | language: node_js
node_js:
- "0.10"
after_success:
- chmod +x ./deploy-to-ghpages.sh
- npm run-script deploy
env:
global:
- GH_REF: github.com/tddbin/tddbin-frontend.git
- secure: HofeV8v4B9m97cQ7S4otS7r+iY39ME1pIh/oGJc2U46oce+vAI1ONGVccgM0325myUqYTyZmP/dZGewalNm2X2KFoMrJefSNvMVTmyI9DzWKni575ss3tbuOy/RTcHTDz... | Make sure deploy gets called. | Make sure deploy gets called. | YAML | mit | tddbin/tddbin-frontend,tddbin/tddbin-frontend,tddbin/tddbin-frontend | yaml | ## Code Before:
language: node_js
node_js:
- "0.10"
after_success:
- npm run-script deploy
env:
global:
- GH_REF: github.com/tddbin/tddbin-frontend.git
- secure: HofeV8v4B9m97cQ7S4otS7r+iY39ME1pIh/oGJc2U46oce+vAI1ONGVccgM0325myUqYTyZmP/dZGewalNm2X2KFoMrJefSNvMVTmyI9DzWKni575ss3tbuOy/RTcHTDzSc4eEZgSdnIC7OyzeTGi... |
2f3a29dcfc711296db249feaa2de70b6f678c7c7 | src/widgets/index.js | src/widgets/index.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { Button, ProgressBar } from 'react-native-ui-components';
export { AutocompleteSelector } from './AutocompleteSelector';
export { ExpiryTextInput } from './ExpiryTextInput';
export { FinaliseButton } from './FinaliseButton';
export { GenericCho... | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { Button, ProgressBar } from 'react-native-ui-components';
export { AutocompleteSelector } from './AutocompleteSelector';
export { ExpiryTextInput } from './ExpiryTextInput';
export { FinaliseButton } from './FinaliseButton';
export { GenericCho... | Add export of Cancel icon | Add export of Cancel icon
| JavaScript | mit | sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile | javascript | ## Code Before:
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { Button, ProgressBar } from 'react-native-ui-components';
export { AutocompleteSelector } from './AutocompleteSelector';
export { ExpiryTextInput } from './ExpiryTextInput';
export { FinaliseButton } from './FinaliseButton';
exp... |
7da90a95b72ac5a36336bfe630aa904bf1b1892b | ansible/roles/atom/tasks/main.yml | ansible/roles/atom/tasks/main.yml | ---
- name: "install atom using deb link"
apt:
deb="https://github.com/atom/atom/releases/download/v{{atom_version}}/atom-amd64.deb"
autoremove=yes | ---
- name: "install atom using deb link"
apt:
deb="https://github.com/atom/atom/releases/download/v{{atom_version}}/atom-amd64.deb"
autoremove=yes
- name: "install en_gb dictionary"
apt:
name=myspell-en-gb
state=present
autoremove=yes | Add en_gb dictionary to Atom installation | Add en_gb dictionary to Atom installation
| YAML | apache-2.0 | cagiti/developer-environment | yaml | ## Code Before:
---
- name: "install atom using deb link"
apt:
deb="https://github.com/atom/atom/releases/download/v{{atom_version}}/atom-amd64.deb"
autoremove=yes
## Instruction:
Add en_gb dictionary to Atom installation
## Code After:
---
- name: "install atom using deb link"
apt:
deb="... |
b8b7ef924c45f611b1430931973dfb9b64c8cf1c | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
var windspeed = require('../middleware/windspeed')
router.use(windspeed)
var statusValues = {
1: {
human: "Safe(ish)",
machine: "safe"
},
2: {
human: "Moderate",
machine: "moderate"
},
3: {
human: "Hazardous",
machine: "hazardous"
}... | var express = require('express');
var router = express.Router();
var windspeed = require('../middleware/windspeed')
router.use(windspeed)
var statusValues = {
1: {
human: "Safe(ish)",
machine: "safe"
},
2: {
human: "Moderate",
machine: "moderate"
},
3: {
human: "Hazardous",
machine: "hazardous"
}... | Remove /about route since there's no content for it yet | Remove /about route since there's no content for it yet
| JavaScript | mit | renemarcelo/kcbx-petcoke,chihacknight/kcbx-petcoke,benwilhelm/kcbx-petcoke,justinmanley/kcbx-petcoke,chihacknight/kcbx-petcoke,manleyjster/kcbx-petcoke,open-city/kcbx-petcoke,open-city/kcbx-petcoke,manleyjster/kcbx-petcoke,chihacknight/kcbx-petcoke,benwilhelm/kcbx-petcoke,benwilhelm/kcbx-petcoke,open-city/kcbx-petcoke,... | javascript | ## Code Before:
var express = require('express');
var router = express.Router();
var windspeed = require('../middleware/windspeed')
router.use(windspeed)
var statusValues = {
1: {
human: "Safe(ish)",
machine: "safe"
},
2: {
human: "Moderate",
machine: "moderate"
},
3: {
human: "Hazardous",
machine... |
98672dd768661be91232708abc641a13360d37b8 | modules/doc/content/newsletter/2020_12.md | modules/doc/content/newsletter/2020_12.md |
The MOOSE development team decided to move all new questions to a [Github discussion
forum](https://github.com/idaholab/moose/discussions).
## Reporter Transfer
The ability to transfer [Reporter values](Reporters/index.md) to and from sub-applications
was added via the [MultiAppReporterTransfer.md].
## MultiApp Use... |
The MOOSE development team decided to move all new questions to a [Github discussion
forum](https://github.com/idaholab/moose/discussions).
## Reporter Transfer
The ability to transfer [Reporter values](Reporters/index.md) to and from sub-applications
was added via the [MultiAppReporterTransfer.md].
## MultiApp Use... | Add scaling for global AD indexing blurb | Add scaling for global AD indexing blurb
| Markdown | lgpl-2.1 | harterj/moose,SudiptaBiswas/moose,idaholab/moose,laagesen/moose,harterj/moose,SudiptaBiswas/moose,laagesen/moose,harterj/moose,sapitts/moose,milljm/moose,nuclear-wizard/moose,idaholab/moose,milljm/moose,nuclear-wizard/moose,sapitts/moose,harterj/moose,jessecarterMOOSE/moose,lindsayad/moose,andrsd/moose,laagesen/moose,d... | markdown | ## Code Before:
The MOOSE development team decided to move all new questions to a [Github discussion
forum](https://github.com/idaholab/moose/discussions).
## Reporter Transfer
The ability to transfer [Reporter values](Reporters/index.md) to and from sub-applications
was added via the [MultiAppReporterTransfer.md].
... |
8fb67ede30e8aaaa2bcd0d5defb89e6cd63a9101 | lib/lobber/cli.rb | lib/lobber/cli.rb | require 'thor'
module Lobber
class CLI < Thor
default_task :lob
desc "DIRECTORY", "Upload a directory to Amazon S3"
option :bucket
def lob(directory = nil)
return usage unless directory
unless File.directory? directory
error "#{directory} is not a valid directory"
exit 1... | require 'thor'
module Lobber
class CLI < Thor
default_task :lob
desc "DIRECTORY", "Upload a directory to Amazon S3"
method_option :bucket, type: :string
method_option :dry_run, default: false, type: :boolean
method_option :verbose, default: true, type: :boolean
def lob(directory = nil)
... | Add method_options for dry-run and verbose | Add method_options for dry-run and verbose
| Ruby | mit | mdb/lobber | ruby | ## Code Before:
require 'thor'
module Lobber
class CLI < Thor
default_task :lob
desc "DIRECTORY", "Upload a directory to Amazon S3"
option :bucket
def lob(directory = nil)
return usage unless directory
unless File.directory? directory
error "#{directory} is not a valid directory... |
27ee0bc88155928319ab3f178dde44ca8a9a52b9 | lib/formtastic/inputs/file_input.rb | lib/formtastic/inputs/file_input.rb | module Formtastic
module Inputs
# Outputs a simple `<label>` with a `<input type="file">` wrapped in the standard
# `<li>` wrapper. This is the default input choice for objects with attributes that appear
# to be for file uploads, by detecting some common method names used by popular file upload
# li... | module Formtastic
module Inputs
# Outputs a simple `<label>` with a `<input type="file">` wrapped in the standard
# `<li>` wrapper. This is the default input choice for objects with attributes that appear
# to be for file uploads, by detecting some common method names used by popular file upload
# li... | Fix example code for FileInput | Fix example code for FileInput
Closes GH-635
| Ruby | mit | mikz/formtastic,Guestfolio/formtastic,ryanfox1985/formtastic,ryanfox1985/formtastic,ConferenceCloud/formtastic,justinfrench/formtastic,sideci-sample/sideci-sample-formtastic,Baltazore/formtastic,Davidzhu001/formtastic,thenthen8515/formtastic,Davidzhu001/formtastic,thenthen8515/formtastic,EndingChaung/formtastic,crashly... | ruby | ## Code Before:
module Formtastic
module Inputs
# Outputs a simple `<label>` with a `<input type="file">` wrapped in the standard
# `<li>` wrapper. This is the default input choice for objects with attributes that appear
# to be for file uploads, by detecting some common method names used by popular file... |
412e913a29c2ded1393e9251a705ed0d1ef2eb28 | packages/ha/haxl-amazonka.yaml | packages/ha/haxl-amazonka.yaml | homepage: http://github.com/tvh/haxl-amazonka#readme
changelog-type: ''
hash: 720d0b228bf0a7462677ba901c4d3fefe7618eee2e173e7318ff5a69017b52ad
test-bench-deps: {}
maintainer: tvh@tvholtz.de
synopsis: Haxl data source for accessing AWS services through amazonka.
changelog: ''
basic-deps:
amazonka: ! '>=1.3'
base: ! ... | homepage: http://github.com/tvh/haxl-amazonka#readme
changelog-type: ''
hash: b79e2b4846f82b94973eb937f284ab78430513ecb82ec6c4da77f17299c63d12
test-bench-deps: {}
maintainer: tvh@tvholtz.de
synopsis: Haxl data source for accessing AWS services through amazonka.
changelog: ''
basic-deps:
amazonka: ! '>=1.3'
base: ! ... | Update from Hackage at 2017-01-17T17:55:51Z | Update from Hackage at 2017-01-17T17:55:51Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/tvh/haxl-amazonka#readme
changelog-type: ''
hash: 720d0b228bf0a7462677ba901c4d3fefe7618eee2e173e7318ff5a69017b52ad
test-bench-deps: {}
maintainer: tvh@tvholtz.de
synopsis: Haxl data source for accessing AWS services through amazonka.
changelog: ''
basic-deps:
amazonka: ! '>... |
0c17be983a9d3d7ae463defe642531bef6435d9d | src/Backend/Core/Cronjobs/SendQueuedEmails.php | src/Backend/Core/Cronjobs/SendQueuedEmails.php | <?php
namespace Backend\Core\Cronjobs;
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
use Backend\Core\Engine\Base\Cronjob;
use Backend\Core\Engine\Mailer;
/**
* This is the cronjob to send t... | <?php
namespace Backend\Core\Cronjobs;
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
use Backend\Core\Engine\Base\Cronjob;
use Common\Mailer;
/**
* This is the cronjob to send the queued ema... | Use the common mailer in the sendQueuedEmails cronjob | Use the common mailer in the sendQueuedEmails cronjob
| PHP | mit | dmoerman/forkcms,dmoerman/forkcms,carakas/forkcms,WouterSioen/forkcms,riadvice/forkcms,riadvice/forkcms,jacob-v-dam/forkcms,nosnickid/forkcms,Katrienvh/forkcms,jonasdekeukelaere/forkcms,Thijzer/forkcms,dmoerman/forkcms,carakas/forkcms,forkcms/forkcms,riadvice/forkcms,jacob-v-dam/forkcms,forkcms/forkcms,Katrienvh/forkcm... | php | ## Code Before:
<?php
namespace Backend\Core\Cronjobs;
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
use Backend\Core\Engine\Base\Cronjob;
use Backend\Core\Engine\Mailer;
/**
* This is the c... |
18a518ed6f18487693755f614fbc943adc3a2bc4 | gulpfile.js | gulpfile.js | var browserify = require('browserify');
var gulp = require('gulp');
var glob = require('glob');
var reactify = require('reactify');
var source = require('vinyl-source-stream');
var shell = require('gulp-shell');
/*
gulp browserify:
Bundles all .js files in the /js/ directory into one file in /build/bundle.js
th... | var browserify = require('browserify');
var gulp = require('gulp');
var glob = require('glob');
var reactify = require('reactify');
var source = require('vinyl-source-stream');
var shell = require('gulp-shell');
/*
gulp browserify:
Bundles all .js files in the /js/ directory into one file in /build/bundle.js
th... | Add gulp command for running server | Add gulp command for running server
| JavaScript | mit | BinghamtonCoRE/core-site | javascript | ## Code Before:
var browserify = require('browserify');
var gulp = require('gulp');
var glob = require('glob');
var reactify = require('reactify');
var source = require('vinyl-source-stream');
var shell = require('gulp-shell');
/*
gulp browserify:
Bundles all .js files in the /js/ directory into one file in /buil... |
2aafa48da8e6288bac0982dc42ef4d095134e669 | test/l2/ts_misc.rb | test/l2/ts_misc.rb |
$:.unshift File.join(File.dirname(__FILE__), "../..", "lib")
require 'test/unit'
require 'racket'
class TestL2Misc < Test::Unit::TestCase
def test_convert
(0..512).each {
len = rand(512)
mac = Racket::L2::Misc.randommac(len)
long = Racket::L2::Misc.mac2long(mac)
assert_equal(mac, Racke... |
$:.unshift File.join(File.dirname(__FILE__), "../..", "lib")
require 'test/unit'
require 'racket'
class TestL2Misc < Test::Unit::TestCase
def test_convert
(0..rand(1024)).each {
len = rand(512)+1
mac = Racket::L2::Misc.randommac(len)
assert_equal(mac.length, (len*2) + (len-1))
long = R... | Test that proper number of : exist | Test that proper number of : exist
git-svn-id: b3d365f95d627ddffb8722c756fee9dc0a59d335@114 64fbf49a-8b99-41c6-b593-eb2128c2192d
| Ruby | bsd-3-clause | axsh/racket | ruby | ## Code Before:
$:.unshift File.join(File.dirname(__FILE__), "../..", "lib")
require 'test/unit'
require 'racket'
class TestL2Misc < Test::Unit::TestCase
def test_convert
(0..512).each {
len = rand(512)
mac = Racket::L2::Misc.randommac(len)
long = Racket::L2::Misc.mac2long(mac)
assert_... |
e7e89343d51bc18212b5de062af69c691c07d79b | td/challenge260/SemanticAnalyserTest.cpp | td/challenge260/SemanticAnalyserTest.cpp |
class SemanticAnalyser
{
public:
bool analyse(const Tokens& tokens)
{
return tokens.empty();
}
};
constexpr Token createTokenWithZeroValue(TokenType type)
{
return {type, 0};
}
TEST(SemanticAnalyserTest, ShouldAcceptEmptyTokens)
{
SemanticAnalyser analyser;
Tokens tokens{};
ASSERT_TRUE(analyser.ana... |
class SemanticAnalyser
{
public:
bool analyse(const Tokens& tokens)
{
return tokens.empty();
}
};
using namespace ::testing;
struct SemanticAnalyserTest : public Test
{
SemanticAnalyser analyser;
static constexpr Token createTokenWithZeroValue(TokenType type)
{
return
{ type, 0};
}
};
TEST... | Add test suite to Analyser | Add test suite to Analyser
| C++ | mit | lukasz-m-maciejewski/papuc_exercises,lukasz-m-maciejewski/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises,NadzwyczajnaGrupaRobocza/papuc_exercises | c++ | ## Code Before:
class SemanticAnalyser
{
public:
bool analyse(const Tokens& tokens)
{
return tokens.empty();
}
};
constexpr Token createTokenWithZeroValue(TokenType type)
{
return {type, 0};
}
TEST(SemanticAnalyserTest, ShouldAcceptEmptyTokens)
{
SemanticAnalyser analyser;
Tokens tokens{};
ASSERT_T... |
468eab0977c2fdf34cad5a8a3d3b7ff1b55ee5a4 | applications/NXtranslate/test_SNS_nexus.xml | applications/NXtranslate/test_SNS_nexus.xml | <NXroot NXS:source="test_SNS_nexus3_10_5.dat" NXS:mime_type="application/x-SNS-histogram">
<entry_1D NXS:location=" [3,10,5][3,10,5]#!{Tbin|0,2,1}AND((!{pixelID|1,2,3,4,5}OR(!{pixelY|0,2}AND{pixelY|loop(1,2,1)})))"/>
</NXroot>
| <NXroot NXS:source="test_SNS_nexus3_10_5.dat" NXS:mime_type="application/x-SNS-histogram">
<entry type="NXentry">
<entry_1D NXS:location=" [3,10,5][3,10,5]#((({pixelY|0,1}OR{pixelID|1,2,3,4,5,6,7})))OR{pixelX|1,3,1}OR{Tbin|1,2}"/>
</entry>
</NXroot>
| Test file of SNS_histogram retriever The previous version was not correctly defined. | Test file of SNS_histogram retriever
The previous version was not correctly defined.
git-svn-id: 1001b6e0dd469eaa302a741812f7f5d223cf35f7@707 ff5d1e40-2be0-497f-93bd-dc18237bd3c7
| XML | lgpl-2.1 | chrisemblhh/nexus,nexusformat/code,nexusformat/code,nexusformat/code,nexusformat/code,chrisemblhh/nexus,chrisemblhh/nexus,nexusformat/code,chrisemblhh/nexus,chrisemblhh/nexus | xml | ## Code Before:
<NXroot NXS:source="test_SNS_nexus3_10_5.dat" NXS:mime_type="application/x-SNS-histogram">
<entry_1D NXS:location=" [3,10,5][3,10,5]#!{Tbin|0,2,1}AND((!{pixelID|1,2,3,4,5}OR(!{pixelY|0,2}AND{pixelY|loop(1,2,1)})))"/>
</NXroot>
## Instruction:
Test file of SNS_histogram retriever
The previous version ... |
50d2c7c66ac1769d9629542ab5769922681d1d62 | packages/nl/nlopt-haskell.yaml | packages/nl/nlopt-haskell.yaml | homepage: https://github.com/peddie/nlopt-haskell
changelog-type: markdown
hash: 829a4a9a63f6a3f45af99f7109c16f1d23c2b2e3ce786c8fa31a60c885a68dd1
test-bench-deps:
base: ! '>=4.9 && <4.10'
nlopt-haskell: -any
vector: ! '>=0.10'
maintainer: Matthew Peddie <mpeddie@gmail.com>
synopsis: Low-level bindings to the NLOP... | homepage: https://github.com/peddie/nlopt-haskell
changelog-type: markdown
hash: 3e436a5ae44a25ceceb03c3b334768b83c21ff93db1d8ac7bdf426d3f2db224e
test-bench-deps:
base: ! '>=4.9 && <4.11'
nlopt-haskell: -any
vector: ! '>=0.10'
maintainer: Matthew Peddie <mpeddie@gmail.com>
synopsis: Low-level bindings to the NLOP... | Update from Hackage at 2018-01-21T06:50:54Z | Update from Hackage at 2018-01-21T06:50:54Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/peddie/nlopt-haskell
changelog-type: markdown
hash: 829a4a9a63f6a3f45af99f7109c16f1d23c2b2e3ce786c8fa31a60c885a68dd1
test-bench-deps:
base: ! '>=4.9 && <4.10'
nlopt-haskell: -any
vector: ! '>=0.10'
maintainer: Matthew Peddie <mpeddie@gmail.com>
synopsis: Low-level bind... |
64a1aa4f12b3d285b2dd4ba534f814ed11b0c8f2 | src/js/geometry/box-geometry.js | src/js/geometry/box-geometry.js | 'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth, dx, dy, dz ) {
dx = dx || 0;
dy = dy || 0;
dz = dz || 0;
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
// Bottom.
... | 'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth ) {
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
// Bottom.
-halfWidth, -halfHeight, -halfDepth,
-halfWidth, -halfH... | Remove box geometry offset arguments. | Remove box geometry offset arguments.
| JavaScript | mit | js13kGames/Roulette,js13kGames/Roulette,razh/js13k-2015,razh/js13k-2015,Hitman666/js13k-2015,Hitman666/js13k-2015 | javascript | ## Code Before:
'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth, dx, dy, dz ) {
dx = dx || 0;
dy = dy || 0;
dz = dz || 0;
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
... |
fecb837888f3754a06ad2a33ddcf5ee561ccadaa | src/Node/Blockquote.php | src/Node/Blockquote.php | <?php
namespace FluxBB\Markdown\Node;
class Blockquote extends Block implements NodeInterface, NodeAcceptorInterface
{
public function getType()
{
return 'block_quote';
}
public function canContain(Node $other)
{
return $other->getType() == 'paragraph';
}
public function... | <?php
namespace FluxBB\Markdown\Node;
class Blockquote extends Block implements NodeInterface, NodeAcceptorInterface
{
public function getType()
{
return 'block_quote';
}
public function canContain(Node $other)
{
return $other->getType() == 'paragraph';
}
public function... | Make sure headers can be children of blockquotes. | Make sure headers can be children of blockquotes.
| PHP | mit | fluxbb/commonmark | php | ## Code Before:
<?php
namespace FluxBB\Markdown\Node;
class Blockquote extends Block implements NodeInterface, NodeAcceptorInterface
{
public function getType()
{
return 'block_quote';
}
public function canContain(Node $other)
{
return $other->getType() == 'paragraph';
}
... |
3e7c22849f1f5da1115ed3048d09fe80c16a5b62 | example/dynamic.html | example/dynamic.html | <!DOCTYPE html>
<html ng-app="example">
<head lang="en">
<meta charset="UTF-8">
<title>Example - Dynamic Table</title>
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.css" />
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.theme.default.css" />
<script src="... | <!DOCTYPE html>
<html ng-app="example">
<head lang="en">
<meta charset="UTF-8">
<title>Example - Dynamic Table</title>
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.css" />
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.theme.default.css" />
<script src="... | Fix bug in the example, not passing along parent | Fix bug in the example, not passing along parent
| HTML | mit | GarrettHeel/angular-treetable,yesobo/angular-treetable,yesobo/angular-treetable | html | ## Code Before:
<!DOCTYPE html>
<html ng-app="example">
<head lang="en">
<meta charset="UTF-8">
<title>Example - Dynamic Table</title>
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.css" />
<link rel="stylesheet" type="text/css" href="style/jquery.treetable.theme.default.css" />
... |
12d9dffdebc9f157e320d059fe2de7416a2baf96 | index.html | index.html | <!DOCTYPE html>
<html>
<body>
<p>Hello Github!</p>
<p>Testing speed</p>
</body>
</html> | <!DOCTYPE html>
<html>
<body>
<p>Hello Github!</p>
<p>Testing speed</p>
<p>Now in jekyll</p>
</body>
</html> | Add <p> on testing jekyll | Add <p> on testing jekyll
added a <p> for testing jekyll
| HTML | mit | tomhohenstein/tomhohenstein.github.io,tomhohenstein/tomhohenstein.github.io,tomhohenstein/tomhohenstein.github.io | html | ## Code Before:
<!DOCTYPE html>
<html>
<body>
<p>Hello Github!</p>
<p>Testing speed</p>
</body>
</html>
## Instruction:
Add <p> on testing jekyll
added a <p> for testing jekyll
## Code After:
<!DOCTYPE html>
<html>
<body>
<p>Hello Github!</p>
<p>Testing speed</p>
<p>Now in jekyll</p>
</body>
</html> |
11b9a99bf12f16ededdf79af2e46034e96857659 | WebContent/META-INF/context.xml | WebContent/META-INF/context.xml | <?xml version="1.0" encoding="UTF-8"?>
<Context path="/courses">
<Resource
name="jdbc/coursedb"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://devproserv.com:54406/coursedb"
... | <?xml version="1.0" encoding="UTF-8"?>
<Context path="/courses">
<Resource
name="jdbc/coursedb"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://devproserv.com:54406/coursedb"
... | Set encoding UTF8 in the connection pool | Set encoding UTF8 in the connection pool
| XML | mit | Vovas11/courses,Vovas11/courses,Vovas11/courses | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/courses">
<Resource
name="jdbc/coursedb"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://devproserv.com:54... |
e552e1fc22c66c593c4479d85b7a770fda09e5d0 | spec/services/delete_branch_service_spec.rb | spec/services/delete_branch_service_spec.rb | require 'spec_helper'
describe DeleteBranchService, services: true do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:service) { described_class.new(project, user) }
describe '#execute' do
let(:result) { service.execute('feature') }
context 'when user has access to push to reposi... | require 'spec_helper'
describe DeleteBranchService, services: true do
let(:project) { create(:project) }
let(:repository) { project.repository }
let(:user) { create(:user) }
let(:service) { described_class.new(project, user) }
describe '#execute' do
context 'when user has access to push to repository' d... | Extend tests for delete branch service | Extend tests for delete branch service
| Ruby | mit | LUMC/gitlabhq,iiet/iiet-git,iiet/iiet-git,dreampet/gitlab,dplarson/gitlabhq,openwide-java/gitlabhq,openwide-java/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,htve/GitlabForChinese,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,dplarson/gitlabhq,... | ruby | ## Code Before:
require 'spec_helper'
describe DeleteBranchService, services: true do
let(:project) { create(:project) }
let(:user) { create(:user) }
let(:service) { described_class.new(project, user) }
describe '#execute' do
let(:result) { service.execute('feature') }
context 'when user has access t... |
1f3730ac4d531ca0d582a8b8bded871acb409847 | backend/api-server/warehaus_api/events/models.py | backend/api-server/warehaus_api/events/models.py | from .. import db
class Event(db.Model):
timestamp = db.Field()
obj_id = db.Field() # The object for which this event was created about
user_id = db.Field() # The user who performed the action
# A list of IDs which are interested in this event. For example, when creating
# a server we obvious... | from .. import db
class Event(db.Model):
timestamp = db.Field()
obj_id = db.Field() # The object for which this event was created about
user_id = db.Field() # The user who performed the action
# A list of IDs which are interested in this event. For example, when creating
# a server we obvious... | Fix api-server events not saving the user ID | Fix api-server events not saving the user ID
| Python | agpl-3.0 | labsome/labsome,warehaus/warehaus,warehaus/warehaus,labsome/labsome,warehaus/warehaus,labsome/labsome | python | ## Code Before:
from .. import db
class Event(db.Model):
timestamp = db.Field()
obj_id = db.Field() # The object for which this event was created about
user_id = db.Field() # The user who performed the action
# A list of IDs which are interested in this event. For example, when creating
# a s... |
85d7102a958298b299aba66ce43a0d7643bc644d | tests/scripts/vagrant_up.sh | tests/scripts/vagrant_up.sh |
vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-Vagrant-8.1.1911-20200113.3.x86_64.vagrant-libvirt.box
retries=0
until [ $retries -ge 5 ]
do
echo "Attempting to start VMs. Attempts: $retries"
timeout 10m time vagrant up "$@" && break
retries=$[$retries... |
retries=0
until [ $retries -ge 5 ]
do
echo "Attempting to start VMs. Attempts: $retries"
timeout 10m time vagrant up "$@" && break
retries=$[$retries+1]
sleep 5
done
sleep 10 | Revert "vagrant: temp workaround for CentOS 8 cloud image" | Revert "vagrant: temp workaround for CentOS 8 cloud image"
The CentOS 8 vagrant image download is now fixed.
This reverts commit a5385e104884a3692954e4691f3348847a35c7fa.
Signed-off-by: Dimitri Savineau <a50a620e679eed14f4e99998b821cea8884cf228@redhat.com>
| Shell | apache-2.0 | ceph/ceph-ansible,ceph/ceph-ansible | shell | ## Code Before:
vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-Vagrant-8.1.1911-20200113.3.x86_64.vagrant-libvirt.box
retries=0
until [ $retries -ge 5 ]
do
echo "Attempting to start VMs. Attempts: $retries"
timeout 10m time vagrant up "$@" && break
re... |
67bb0c9e3e191f622be9863a48717370266f9413 | app/views/tasks/show.html.slim | app/views/tasks/show.html.slim | h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
| h1 = @task.title
p = @task.state
p = @task.milestone_name
p = @task.assigned_user_name
| Remove even more `try` calls in task show. | Remove even more `try` calls in task show.
| Slim | mit | vesln/freedom,vesln/freedom | slim | ## Code Before:
h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
## Instruction:
Remove even more `try` calls in task show.
## Code After:
h1 = @task.title
p = @task.state
p = @task.milestone_name
p = @task.assigned_user_name
|
d6c0ad1c6f8a30e3e2e0272ea318f67d841a2abc | tools/check-cluster.sh | tools/check-cluster.sh |
for i in `echo 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c`; do
echo $i
ssh volt$i ps -ef | grep java && exit
done
|
for i in `echo 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c`; do
echo $i
ssh volt$i ps -ef | grep java | grep -v slave.jar && exit
done
| Allow cluster machines to be running a Hudson slave process. | Allow cluster machines to be running a Hudson slave process.
Hudson slaves don't interfere with a server from a ports point of view, and
practically speaking anything they're doing that interferes from a CPU point
of view will probably still turn up in the check-cluster script.
| Shell | agpl-3.0 | simonzhangsm/voltdb,flybird119/voltdb,creative-quant/voltdb,paulmartel/voltdb,zuowang/voltdb,zuowang/voltdb,migue/voltdb,creative-quant/voltdb,flybird119/voltdb,deerwalk/voltdb,paulmartel/voltdb,flybird119/voltdb,kumarrus/voltdb,ingted/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,VoltDB/voltdb,paulmartel/voltdb,fly... | shell | ## Code Before:
for i in `echo 3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 4a 4b 4c`; do
echo $i
ssh volt$i ps -ef | grep java && exit
done
## Instruction:
Allow cluster machines to be running a Hudson slave process.
Hudson slaves don't interfere with a server from a ports point of view, and
practically speaking an... |
0e82fba1c9769f71c162c8364fe783d2cc3cda17 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from sys import platform
import subprocess
import glob
import os
ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'knightos',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from sys import platform
import subprocess
import glob
import os
ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
name = 'knightos',
... | Fix templates building on OS X | Fix templates building on OS X
| Python | mit | KnightOS/sdk,KnightOS/sdk,KnightOS/sdk | python | ## Code Before:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from sys import platform
import subprocess
import glob
import os
ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
stdout=subprocess.PIPE).stdout.decode().strip()
setup(
nam... |
a460713d36e8310a9f975d13d49579e77d83dfe7 | examples/with-shapely.py | examples/with-shapely.py |
import logging
import sys
from shapely.geometry import mapping, shape
from fiona import collection
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
with collection("docs/data/test_uk.shp", "r") as input:
schema = input.schema.copy()
with collection(
"with-shapely.shp", "w",... |
import logging
import sys
from shapely.geometry import mapping, shape
from fiona import collection
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
with collection("docs/data/test_uk.shp", "r") as input:
schema = input.schema.copy()
with collection(
"with-shapely.shp", "w",... | Fix validity assertion and add another. | Fix validity assertion and add another.
| Python | bsd-3-clause | johanvdw/Fiona,Toblerity/Fiona,rbuffat/Fiona,Toblerity/Fiona,perrygeo/Fiona,perrygeo/Fiona,sgillies/Fiona,rbuffat/Fiona | python | ## Code Before:
import logging
import sys
from shapely.geometry import mapping, shape
from fiona import collection
logging.basicConfig(stream=sys.stderr, level=logging.INFO)
with collection("docs/data/test_uk.shp", "r") as input:
schema = input.schema.copy()
with collection(
"with-sh... |
6c12f97bfed8b8a4749f75e1a508caf0ea310423 | docker/update-production.py | docker/update-production.py | import argparse
import subprocess
import json
import sys
parser = argparse.ArgumentParser()
args = parser.parse_args()
def info(msg):
sys.stdout.write('* {}\n'.format(msg))
sys.stdout.flush()
info('Determining current production details...')
output = subprocess.check_output(['tutum', 'service', 'inspect', ... | import argparse
import subprocess
import json
import sys
parser = argparse.ArgumentParser()
args = parser.parse_args()
def info(msg):
sys.stdout.write('* {}\n'.format(msg))
sys.stdout.flush()
info('Determining current production details...')
output = subprocess.check_output(['tutum', 'service', 'inspect', ... | Make sure to update correct load balancer | Make sure to update correct load balancer
| Python | mit | muzhack/musitechhub,muzhack/musitechhub,muzhack/muzhack,muzhack/muzhack,muzhack/musitechhub,muzhack/muzhack,muzhack/musitechhub,muzhack/muzhack | python | ## Code Before:
import argparse
import subprocess
import json
import sys
parser = argparse.ArgumentParser()
args = parser.parse_args()
def info(msg):
sys.stdout.write('* {}\n'.format(msg))
sys.stdout.flush()
info('Determining current production details...')
output = subprocess.check_output(['tutum', 'servi... |
268467c5eb12e92a031d22e3e0515e9d6fc264b7 | ofgem_certificates.py | ofgem_certificates.py |
__author__ = 'david reid'
__version__ = '0.1'
import argparse
from Ofgem.certificate import OfgemCertificateData
def do_search(month, year):
ocd = OfgemCertificateData(month = month, year = year)
if ocd.get_data():
for c in ocd.certificates:
print c.as_string()
else:
print "N... |
__author__ = 'david reid'
__version__ = '0.1'
import argparse
from Ofgem.certificate import OfgemCertificateData
def do_search(month, year):
ocd = OfgemCertificateData(month = month, year = year)
if ocd.get_data():
for c in ocd.certificates:
print c.as_string()
else:
print "N... | Update the certificate script to accept month & year | Update the certificate script to accept month & year
| Python | unlicense | zathras777/pywind,zathras777/pywind | python | ## Code Before:
__author__ = 'david reid'
__version__ = '0.1'
import argparse
from Ofgem.certificate import OfgemCertificateData
def do_search(month, year):
ocd = OfgemCertificateData(month = month, year = year)
if ocd.get_data():
for c in ocd.certificates:
print c.as_string()
else:
... |
89fee0e35e56ca0bc47877b567c4a6d39d060fd5 | app/views/layouts/ci/_nav_dashboard.html.haml | app/views/layouts/ci/_nav_dashboard.html.haml | %ul.nav.nav-sidebar
= nav_link do
= link_to root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
= icon('caret-square-o-left fw')
%span
Back to GitLab
%li.separate-item
= nav_link path: 'projects#index' do
= link_to ci_root_path do
%i.fa.fa-hom... | %ul.nav.nav-sidebar
= nav_link do
= link_to root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
= icon('caret-square-o-left fw')
%span
Back to GitLab
%li.separate-item
= nav_link path: 'projects#index' do
= link_to ci_root_path do
%i.fa.fa-hom... | Fix active state of CI Help nav link. | Fix active state of CI Help nav link.
| Haml | mit | sonalkr132/gitlabhq,Soullivaneuh/gitlabhq,chenrui2014/gitlabhq,mr-dxdy/gitlabhq,mrb/gitlabhq,OtkurBiz/gitlabhq,Soullivaneuh/gitlabhq,martijnvermaat/gitlabhq,mr-dxdy/gitlabhq,ferdinandrosario/gitlabhq,NKMR6194/gitlabhq,Tyrael/gitlabhq,joalmeid/gitlabhq,fscherwi/gitlabhq,gopeter/gitlabhq,SVArago/gitlabhq,copystudy/gitlab... | haml | ## Code Before:
%ul.nav.nav-sidebar
= nav_link do
= link_to root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
= icon('caret-square-o-left fw')
%span
Back to GitLab
%li.separate-item
= nav_link path: 'projects#index' do
= link_to ci_root_path do
... |
df5d6f061055377757302432e034990f57267d41 | .travis.yml | .travis.yml | dist: trusty
sudo: false
group: beta
language: node_js
node_js:
- node
addons:
firefox: latest-esr
cache:
directories:
- node_modules
- "$HOME/.cache/bower"
| dist: trusty
sudo: false
group: beta
language: node_js
node_js:
- node
addons:
firefox: latest-esr
cache:
directories:
- node_modules
- "$HOME/.cache/bower"
script:
- xvfb-run npm test
| Use xvfb-run for running tests inside Travis | Use xvfb-run for running tests inside Travis
459b9fc068c2a34585455190d75d5254c1be1ed5 removed the 'script' as Travis would use 'npm test' by
default anyways. Initially this worked, but it seems that something has changed and we're now seeing
timeouts, likely because the browsers do not properly start up. For now: swit... | YAML | apache-2.0 | Collaborne/iron-justified-gallery | yaml | ## Code Before:
dist: trusty
sudo: false
group: beta
language: node_js
node_js:
- node
addons:
firefox: latest-esr
cache:
directories:
- node_modules
- "$HOME/.cache/bower"
## Instruction:
Use xvfb-run for running tests inside Travis
459b9fc068c2a34585455190d75d5254c1be1ed5 removed the 'script' as Travis wou... |
24f531247365185204d4b9417235f7b4f6b35aff | CHANGELOG.md | CHANGELOG.md | * First public release, imported from CountDownLatch
| * Added BouncingLatch, which works the same as a CountDownLatch, but allows counting up as well as down. #wait takes a block which is called on each tick.
# v1.0.0
* First public release, imported from CountDownLatch
| Add changelog entry for BouncingLatch | Add changelog entry for BouncingLatch | Markdown | mit | benlangfeld/synchronicity | markdown | ## Code Before:
* First public release, imported from CountDownLatch
## Instruction:
Add changelog entry for BouncingLatch
## Code After:
* Added BouncingLatch, which works the same as a CountDownLatch, but allows counting up as well as down. #wait takes a block which is called on each tick.
# v1.0.0
* First pu... |
708cae7a0c5a46a15f927bcbdf126831e1dfa100 | README.md | README.md | [](https://travis-ci.org/codemirror/CodeMirror)
[](https://www.npmjs.org/package/codemirror)
CodeMirror is a JavaScript component that provides a code editor in
the browser. When a mode is availab... | [](https://travis-ci.org/abdelouahabb/CodeMirror)
[](https://www.npmjs.org/package/codemirror)
CodeMirror is a JavaScript component that provides a code editor in
the browser. When a mode is ava... | Make the travis check on this repo. | Make the travis check on this repo. | Markdown | mit | abdelouahabb/CodeMirror,abdelouahabb/CodeMirror,abdelouahabb/CodeMirror | markdown | ## Code Before:
[](https://travis-ci.org/codemirror/CodeMirror)
[](https://www.npmjs.org/package/codemirror)
CodeMirror is a JavaScript component that provides a code editor in
the browser. When a... |
312a6c392b6459797afc52d2aed20ff5a3e5895b | workstation.sh | workstation.sh |
docker run -it --rm \
-v $(pwd):/workspace \
-v ~/.ssh/gitlab_rsa:/root/.ssh/id_rsa:ro \
-v ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro \
-e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
genesysarch/cloud-wor... |
docker run -it --rm \
-v $(pwd):/workspace \
-v ~/.ssh/gitlab_rsa:/root/.ssh/id_rsa:ro \
-v ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro \
-e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
jmahowald/cloud-works... | Use personal docker image for now | Use personal docker image for now
| Shell | mit | genesyslab/cloud-workstation,genesyslab/cloud-workstation | shell | ## Code Before:
docker run -it --rm \
-v $(pwd):/workspace \
-v ~/.ssh/gitlab_rsa:/root/.ssh/id_rsa:ro \
-v ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro \
-e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
genes... |
89a4f3df4e6b3b6927ebac31bdbb33617f8a934f | code/index.js | code/index.js | 'use strict'
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const assign = require('lodash.assign')
const makeTemplate = require('./make-template.js')
const defaultDirectives = require('./default-directives.js')
module.exports = function (directory, settings) {
settings = set... | 'use strict'
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const assign = require('lodash.assign')
const makeTemplate = require('./make-template.js')
const defaultDirectives = require('./default-directives.js')
module.exports = function (directory, settings) {
settings = set... | Delete require cache rather than create endless directories | Delete require cache rather than create endless directories
| JavaScript | mit | erickmerchant/atlatl | javascript | ## Code Before:
'use strict'
const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const assign = require('lodash.assign')
const makeTemplate = require('./make-template.js')
const defaultDirectives = require('./default-directives.js')
module.exports = function (directory, settings) {
... |
04f7cf71c0595097d596b26700e59366642014fb | lib/asciinema/emails/email.ex | lib/asciinema/emails/email.ex | defmodule Asciinema.Emails.Email do
use Bamboo.Phoenix, view: AsciinemaWeb.EmailView
import Bamboo.Email
def signup_email(email_address, signup_url) do
hostname = instance_hostname()
base_email()
|> to(email_address)
|> subject("Welcome to #{hostname}")
|> render("signup.text", signup_url: s... | defmodule Asciinema.Emails.Email do
use Bamboo.Phoenix, view: AsciinemaWeb.EmailView
import Bamboo.Email
def signup_email(email_address, signup_url) do
hostname = instance_hostname()
base_email()
|> to(email_address)
|> subject("Welcome to #{hostname}")
|> render("signup.text", signup_url: s... | Use instance's hostname in default reply-to address | Use instance's hostname in default reply-to address
| Elixir | apache-2.0 | asciinema/asciinema-server,asciinema/asciinema-server,asciinema/asciinema-server,asciinema/asciinema-server | elixir | ## Code Before:
defmodule Asciinema.Emails.Email do
use Bamboo.Phoenix, view: AsciinemaWeb.EmailView
import Bamboo.Email
def signup_email(email_address, signup_url) do
hostname = instance_hostname()
base_email()
|> to(email_address)
|> subject("Welcome to #{hostname}")
|> render("signup.text... |
a5b2c1d0818ffb7a232ffe65799785f5c53e627e | .travis.yml | .travis.yml | language: cpp
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository --yes ppa:canonical-qt5-edgers/qt5-beta2
- sudo apt-get update -qq
- sudo apt-get install -qq qt5-qmake libpulse-dev qtbase5-dev qtdeclarative5-dev libqt5svg5-dev qtmultimedia5-dev libqt5webk... | language: cpp
before_install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe"
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main"
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential mercurial xorg-dev libudev-dev libts-dev libgl... | Install Qt 5.2 to avoid compilation errors | Install Qt 5.2 to avoid compilation errors | YAML | mit | FRC-Utilities/QDriverStation,FRC-Utilities/QDriverStation,FRC-Utilities/QDriverStation | yaml | ## Code Before:
language: cpp
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo add-apt-repository --yes ppa:canonical-qt5-edgers/qt5-beta2
- sudo apt-get update -qq
- sudo apt-get install -qq qt5-qmake libpulse-dev qtbase5-dev qtdeclarative5-dev libqt5svg5-dev qtmultimedia... |
42a1aaba8daa253b99f444a512f8231db47dfbb2 | helpers.py | helpers.py | import array
import numpy as np
def load_glove_vectors(filename, vocab=None):
"""
Load glove vectors from a .txt file.
Optionally limit the vocabulary to save memory. `vocab` should be a set.
"""
dct = {}
vectors = array.array('d')
current_idx = 0
with open(filename, "r", encoding="utf... | import array
import numpy as np
import pandas as pd
def load_glove_vectors(filename, vocab=None):
"""
Load glove vectors from a .txt file.
Optionally limit the vocabulary to save memory. `vocab` should be a set.
"""
dct = {}
vectors = array.array('d')
current_idx = 0
with open(filename... | Add dataset conversion helper function | Add dataset conversion helper function
| Python | mit | AotY/chatbot-retrieval,LepiorzDaniel/test2 | python | ## Code Before:
import array
import numpy as np
def load_glove_vectors(filename, vocab=None):
"""
Load glove vectors from a .txt file.
Optionally limit the vocabulary to save memory. `vocab` should be a set.
"""
dct = {}
vectors = array.array('d')
current_idx = 0
with open(filename, "r... |
790ebf82d9b854d47a2aad27cdaee8025f549f9e | README.md | README.md | Geometrify written in Rust
[](https://travis-ci.org/theunknownxy/geometrify-rs)
| Geometrify written in Rust
| Move build status behind title. | Move build status behind title. | Markdown | mpl-2.0 | theunknownxy/geometrify-rs,theunknownxy/geometrify-rs | markdown | ## Code Before:
Geometrify written in Rust
[](https://travis-ci.org/theunknownxy/geometrify-rs)
## Instruction:
Move build status behind title.
## Code After:
Geometrify written in Rust
|
9c593e10c013d0000c3b61e6a0ee97a89418eff9 | ObjectiveRocks/RocksDBCuckooTableOptions.h | ObjectiveRocks/RocksDBCuckooTableOptions.h | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
@property (nonatomic, assign) double hashTableRatio;
@property (nonatomic, assign) ui... | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
/**
@brief
Determines the utilization of hash tables. Smaller values
result in l... | Add source code documentation for the RocksDB Cuckoo Table Options class | Add source code documentation for the RocksDB Cuckoo Table Options class
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks | c | ## Code Before:
//
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
@property (nonatomic, assign) double hashTableRatio;
@property (nonat... |
aa9186d27e38bdc48287cf52673452c3ac50e87b | website/templates/user/register/register.html | website/templates/user/register/register.html | {% extends "base.html" %}
{% load i18n bootstrap %}
{% block content %}
<div class="row">
<div class="panel panel-default col-xs-12 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-2 col-lg-4 col-lg-offset-2">
<div class="panel-body">
<form action="{% url 'user-registration' %}" class="form" met... | {% extends "base.html" %}
{% load i18n bootstrap %}
{% block content %}
<div class="row">
<div class="panel panel-default col-xs-12 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-2 col-lg-4 col-lg-offset-2">
<div class="panel-body">
<form action="{% url 'user-registration' %}" class="form" met... | Fix English on registration page | Fix English on registration page
| HTML | agpl-3.0 | Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen | html | ## Code Before:
{% extends "base.html" %}
{% load i18n bootstrap %}
{% block content %}
<div class="row">
<div class="panel panel-default col-xs-12 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-2 col-lg-4 col-lg-offset-2">
<div class="panel-body">
<form action="{% url 'user-registration' %}" ... |
3bb560dc03809238f586f78385deb41bba512ba9 | scripts/asgard-deploy.py | scripts/asgard-deploy.py | import sys
import logging
import click
import tubular.asgard as asgard
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
@click.command()
@click.option('--ami_id', envvar='AMI_ID', help='The ami-id to deploy', required=True)
def deploy(ami_id):
try:
asgard.deploy(ami_id)
except Exception, e:
... | import sys
import logging
import click
from os import path
# Add top-level module path to sys.path before importing tubular code.
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
from tubular import asgard
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
@click.command()
@click.o... | Add top-level module path before tubular import. | Add top-level module path before tubular import.
| Python | agpl-3.0 | eltoncarr/tubular,eltoncarr/tubular | python | ## Code Before:
import sys
import logging
import click
import tubular.asgard as asgard
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
@click.command()
@click.option('--ami_id', envvar='AMI_ID', help='The ami-id to deploy', required=True)
def deploy(ami_id):
try:
asgard.deploy(ami_id)
excep... |
2d5c5a1bf693f428b53f8d4a6e788f7be864aa9e | image_site_app/forms.py | image_site_app/forms.py | from django import forms
class SignupForm(forms.Form):
field_order = ['username', 'first_name', 'last_name', 'email', 'password', 'password2']
first_name = forms.CharField(max_length=30, label='First name (optional)', required=False)
last_name = forms.CharField(max_length=30, label='Last name (optional)'... | from django import forms
class SignupForm(forms.Form):
field_order = ['username', 'first_name', 'last_name', 'email', 'password', 'password2']
first_name = forms.CharField(max_length=30,
label='First name (optional)',
required=False,
... | Add placeholder to first_name and last_name fields in signup form | Add placeholder to first_name and last_name fields in signup form
| Python | mit | frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq | python | ## Code Before:
from django import forms
class SignupForm(forms.Form):
field_order = ['username', 'first_name', 'last_name', 'email', 'password', 'password2']
first_name = forms.CharField(max_length=30, label='First name (optional)', required=False)
last_name = forms.CharField(max_length=30, label='Last ... |
1f9ecb9452c3185bb5e83da6930a36f8dbef7762 | wercker.yml | wercker.yml | box: wercker/ruby
build:
steps:
- bundle-install
- install-packages:
packages: wget unzip
- script:
name: install packer
cwd: packer/
code: |
wget https://dl.bintray.com/mitchellh/packer/0.7.5_linux_amd64.zip
unzip 0.7.5_linux_amd64.zip
./packe... | box: wercker/ruby
build:
steps:
- bundle-install
- install-packages:
packages: wget unzip
- script:
name: install packer
cwd: packer/
code: |
wget https://dl.bintray.com/mitchellh/packer/packer_0.7.5_linux_amd64.zip
unzip packer_0.7.5_linux_amd64.zip
... | Fix link to packer download | Fix link to packer download
| YAML | mit | phungmanhcuong/Appolo,siliconmeadow/Apollo,atsaki/Apollo,mehulsbhatt/Apollo,enxebre/Apollo,siliconmeadow/Apollo,Capgemini/Apollo,mehulsbhatt/Apollo,atsaki/Apollo,Capgemini/Apollo,Capgemini/Apollo,phungmanhcuong/Appolo,ravbaba/Apollo,ravbaba/Apollo,enxebre/Apollo | yaml | ## Code Before:
box: wercker/ruby
build:
steps:
- bundle-install
- install-packages:
packages: wget unzip
- script:
name: install packer
cwd: packer/
code: |
wget https://dl.bintray.com/mitchellh/packer/0.7.5_linux_amd64.zip
unzip 0.7.5_linux_amd64.zip
... |
cb2b32b169eea3fa34785cc0fd045bd83eb27a73 | piecewise/client_secrets.json | piecewise/client_secrets.json | {"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"nhp2lFbD3-2xb_RdfoYR-drM","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url":"","client_id":"422648324111-008mgukna2nflr2646qbgu1o3ohen... | {
"web": {
"client_id": "233384409938-0mmsq2d7vqsr4gocn73n75dpbttlcicq.apps.googleusercontent.com",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"clie... | Use oauth details specific to M-Lab developer account. | Use oauth details specific to M-Lab developer account.
| JSON | apache-2.0 | critzo/piecewise,opentechinstitute/piecewise,opentechinstitute/piecewise,critzo/piecewise,opentechinstitute/piecewise,critzo/piecewise,opentechinstitute/piecewise,critzo/piecewise | json | ## Code Before:
{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"nhp2lFbD3-2xb_RdfoYR-drM","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","oob"],"client_x509_cert_url":"","client_id":"422648324111-008mgukna2nfl... |
4bfebc202f21cc1b0056ab46d04d217b18e4efac | src/Service/AtlassianRestClientInterface.php | src/Service/AtlassianRestClientInterface.php | <?php
declare(strict_types=1);
namespace AtlassianConnectBundle\Service;
use AtlassianConnectBundle\Entity\TenantInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;
interface AtlassianRestClientInterface
{
public function setTenant(TenantInterface $tenant): self;
public function actAsUser(st... | <?php
declare(strict_types=1);
namespace AtlassianConnectBundle\Service;
use AtlassianConnectBundle\Entity\TenantInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;
interface AtlassianRestClientInterface
{
public function setTenant(TenantInterface $tenant): self;
public function actAsUser(st... | Add missing put to client interface | Add missing put to client interface
| PHP | mit | thecatontheflat/atlassian-connect-bundle | php | ## Code Before:
<?php
declare(strict_types=1);
namespace AtlassianConnectBundle\Service;
use AtlassianConnectBundle\Entity\TenantInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;
interface AtlassianRestClientInterface
{
public function setTenant(TenantInterface $tenant): self;
public funct... |
635c2226c501b765b641adf3ca2947b30dbf3a9d | dat.json | dat.json | {
"url": "dat://4a6d3de9851bc88387fb793158298b4fe715483673cc6a914240105932a5c42e/",
"title": "Beautiful Web Type",
"description": "In-depth guide to the best free fonts from Google and across the web.",
"author": "Chad Mazzola"
}
| {
"url": "dat://4a6d3de9851bc88387fb793158298b4fe715483673cc6a914240105932a5c42e/",
"title": "Beautiful Web Type",
"description": "In-depth guide to the best open-source fonts from across the web.",
"author": "Chad Mazzola",
"links": {
"payment": [
{
"href": "https://www.patreon.com/ubuwai... | Add donation link for Beaker Browser | Add donation link for Beaker Browser
| JSON | mit | ubuwaits/beautiful-web-type,ubuwaits/beautiful-web-type,ubuwaits/beautiful-web-type | json | ## Code Before:
{
"url": "dat://4a6d3de9851bc88387fb793158298b4fe715483673cc6a914240105932a5c42e/",
"title": "Beautiful Web Type",
"description": "In-depth guide to the best free fonts from Google and across the web.",
"author": "Chad Mazzola"
}
## Instruction:
Add donation link for Beaker Browser
## Code Aft... |
0d143cb68f52c09808aa88a7b4d19f40deb7fc0e | README.md | README.md | Shark
===
[](https://travis-ci.org/shark-js/shark)
[](https://ci.appveyor.com/project/vadimgoncharov/shark)
[](https://travis-ci.org/shark-js/shark)
[](https://coveralls.io/r/shark-js/shark)
# Getting Started
#### 1. Install shark-cli globally:
```sh
$ npm install ... | Remove appVeyor badge till fix | Remove appVeyor badge till fix | Markdown | mit | shark-js/shark | markdown | ## Code Before:
Shark
===
[](https://travis-ci.org/shark-js/shark)
[](https://ci.appveyor.com/project/vadimgoncharov/shark)
[(struct sk_buff *))
{
return NF_DROP;
}
int init_module() {
nfho.hook = hook_func;
nfho.hooknum = NF_INET_PRE_ROUTING;
nfho.pf = PF_INET;
nf... |
static struct nf_hook_ops nfho;
unsigned int hook_func(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
socket_buff = skb;
if (!socket_buff) {
return NF_ACCEPT;
} else {
ip_header = (stuct iphdr *)sk... | Set hook to block all ICMP packets | Set hook to block all ICMP packets
| C | mit | Muhlenberg/mfw | c | ## Code Before:
static struct nf_hook_ops nfho;
unsigned int hook_func(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return NF_DROP;
}
int init_module() {
nfho.hook = hook_func;
nfho.hooknum = NF_INET_PRE_ROUTING;
nfho.p... |
838ab9a926098aa3faf8a3dbe535d3d7f586ab0b | index.html | index.html | <!doctype html>
<html>
<head>
<title>ascii cam</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/main.css"/>
</head>
<body>
<h1 id="info">Please allow this page to access your camera.</h1>
<div id="notSupported">
<h1>Your browser does not support the Camera API.</h1>
<img src="http://idevelop... | <!doctype html>
<html>
<head>
<title>ascii cam</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/main.css"/>
</head>
<body>
<h1 id="info">Please allow this page to access your camera.</h1>
<div id="notSupported">
<h1>Your browser does not support the Camera API.</h1>
<img src="http://idevelop... | Hide border on fork image link | Hide border on fork image link
| HTML | mit | boboanan/ascii-camera,rakesh-mohanta/ascii-camera,pedroha/ascii-camera,andygiannini/ascii-camera,DigitalCoder/ascii-camera,boboanan/ascii-camera,DigitalCoder/ascii-camera,idevelop/ascii-camera,idevelop/ascii-camera,rakesh-mohanta/ascii-camera,zhukaixy/ascii-camera,zhukaixy/ascii-camera,andygiannini/ascii-camera,pedroha... | html | ## Code Before:
<!doctype html>
<html>
<head>
<title>ascii cam</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/main.css"/>
</head>
<body>
<h1 id="info">Please allow this page to access your camera.</h1>
<div id="notSupported">
<h1>Your browser does not support the Camera API.</h1>
<img src=... |
3a679c2a492b8e127a3e73a685d4ac77b700bbe7 | app/views/shared/_sidebar.html.erb | app/views/shared/_sidebar.html.erb | <div class="main-sidebar">
<!-- Inner sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">Menu de operações</li>
<li>
<%= link_to exercises_path do %>
<i class="fa fa-pencil-square-o"></i>
<span>Meus exercícios</spa... | <div class="main-sidebar">
<!-- Inner sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">Menu de operações</li>
<li>
<%= link_to exercises_path do %>
<i class="fa fa-pencil-square-o"></i>
<span>Meus exercícios</spa... | Update sidebar with 'my_teams' link | Update sidebar with 'my_teams' link
| HTML+ERB | mit | rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn | html+erb | ## Code Before:
<div class="main-sidebar">
<!-- Inner sidebar -->
<div class="sidebar">
<!-- Sidebar Menu -->
<ul class="sidebar-menu">
<li class="header">Menu de operações</li>
<li>
<%= link_to exercises_path do %>
<i class="fa fa-pencil-square-o"></i>
<span>Meus... |
35a660ca846a58cea2c2a995f7d30c76f65b6e28 | _sass/_variables.scss | _sass/_variables.scss |
//
// VARIABLES
//
// Colors
$blue: #4183C4;
// Grays
$black: #000;
$darkerGray: #222;
$darkGray: #333;
$gray: #666;
$lightGray: #eee;
$white: #fff;
// Font stacks
$helvetica: Helvetica, Arial, sans-serif;
$helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif;
$georgia: Georgia, serif;
// Mobile breakpoin... |
//
// VARIABLES
//
// Colors
$blue: #4183C4;
// Grays
$black: #000;
$darkerGray: #222;
$darkGray: #333;
$gray: #666;
$lightGray: #eee;
$white: #fff;
// Font stacks
$monaco: monaco, consolas, Lucida Console, monospace;
$helvetica: Helvetica, Arial, sans-serif;
$helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans... | Add Monaco and style-like fonts to variables | Add Monaco and style-like fonts to variables
| SCSS | mit | sonirico/sonirico.github.io | scss | ## Code Before:
//
// VARIABLES
//
// Colors
$blue: #4183C4;
// Grays
$black: #000;
$darkerGray: #222;
$darkGray: #333;
$gray: #666;
$lightGray: #eee;
$white: #fff;
// Font stacks
$helvetica: Helvetica, Arial, sans-serif;
$helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif;
$georgia: Georgia, serif;
// ... |
2cfe6e6c9284dfffba2943a8562e38844b6ba089 | temba/campaigns/migrations/0015_campaignevent_message_new.py | temba/campaigns/migrations/0015_campaignevent_message_new.py | from __future__ import unicode_literals
import json
import temba.utils.models
from django.contrib.postgres.operations import HStoreExtension
from django.db import migrations
def populate_message_new(apps, schema_editor):
CampaignEvent = apps.get_model('campaigns', 'CampaignEvent')
events = list(CampaignEven... | from __future__ import unicode_literals
import json
import temba.utils.models
from django.contrib.postgres.operations import HStoreExtension
from django.db import migrations
def populate_message_new(apps, schema_editor):
CampaignEvent = apps.get_model('campaigns', 'CampaignEvent')
events = list(CampaignEven... | Fix migration to work with flows with no base_language | Fix migration to work with flows with no base_language
| Python | agpl-3.0 | pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro | python | ## Code Before:
from __future__ import unicode_literals
import json
import temba.utils.models
from django.contrib.postgres.operations import HStoreExtension
from django.db import migrations
def populate_message_new(apps, schema_editor):
CampaignEvent = apps.get_model('campaigns', 'CampaignEvent')
events = l... |
7a72e1411197997e042fddaa011f32addf776679 | views/tasks.jade | views/tasks.jade | extends layout
block content
div#content
div#toast
- var message = "Welcome " + user.displayName + "! "
p#welcome: #[= message] #[a(href="prefs") Preferences] #[a(href="logout") Log out]
div
p Add task: #[input#inputCourseCode(type="text", placeholder="course code", name="coursecode")] #[input#inputTask(... | extends layout
block content
div#content
div#toast
- var message = "Welcome " + user.displayName + "! "
p#welcome: #[= message] #[a(href="prefs") Preferences] #[a(href="logout") Log out]
div
p Add task: #[input#inputCourseCode(type="text", placeholder="course code", name="coursecode")] #[input#inputTask(... | Set step size to one tenth of a percent | Set step size to one tenth of a percent
| Jade | mit | davidschlachter/multivariable-todo,davidschlachter/multivariable-todo | jade | ## Code Before:
extends layout
block content
div#content
div#toast
- var message = "Welcome " + user.displayName + "! "
p#welcome: #[= message] #[a(href="prefs") Preferences] #[a(href="logout") Log out]
div
p Add task: #[input#inputCourseCode(type="text", placeholder="course code", name="coursecode")] #[... |
31b70c6b08eedc1773d4993e9d9d420d84197b49 | corehq/apps/domain/__init__.py | corehq/apps/domain/__init__.py | from django.conf import settings
from corehq.preindex import ExtraPreindexPlugin
ExtraPreindexPlugin.register('domain', __file__, (
settings.NEW_DOMAINS_DB,
settings.NEW_USERS_GROUPS_DB,
settings.NEW_FIXTURES_DB,
'meta',
))
SHARED_DOMAIN = "<shared>"
UNKNOWN_DOMAIN = "<unknown>"
| SHARED_DOMAIN = "<shared>"
UNKNOWN_DOMAIN = "<unknown>"
| Remove domain design doc from irrelevant couch dbs | Remove domain design doc from irrelevant couch dbs
It used to contain views that were relevant to users, fixtures, and meta dbs,
but these have since been removed. Currently all views in the domain design doc
emit absolutely nothing in those domains
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | python | ## Code Before:
from django.conf import settings
from corehq.preindex import ExtraPreindexPlugin
ExtraPreindexPlugin.register('domain', __file__, (
settings.NEW_DOMAINS_DB,
settings.NEW_USERS_GROUPS_DB,
settings.NEW_FIXTURES_DB,
'meta',
))
SHARED_DOMAIN = "<shared>"
UNKNOWN_DOMAIN = "<unknown>"
## I... |
3b17a2b2adc4d5c0569578836460c4d616d57809 | tox.ini | tox.ini |
[tox]
envlist = py27, py36, py37, py38, py39, purepy27, purepy38, py27-no-gpg, py38-no-gpg
skipsdist = True
[testenv]
install_command =
pip install --pre {opts} {packages}
deps =
-r{toxinidir}/requirements-pinned.txt
-r{toxinidir}/requirements-test.txt
commands =
coverage run tests/aggregate_tests.p... |
[tox]
envlist = py36, py37, py38, py39, purepy38, py38-no-gpg
skipsdist = True
[testenv]
install_command =
pip install --pre {opts} {packages}
deps =
-r{toxinidir}/requirements-pinned.txt
-r{toxinidir}/requirements-test.txt
commands =
coverage run tests/aggregate_tests.py
coverage report -m --fa... | Drop Python 2.7 from test automation | Drop Python 2.7 from test automation
We do not need to include Python 2.7 versions of our tox environments any
more.
Signed-off-by: Joshua Lock <edc229f50a11a11cdece0270af6320fb299dca1e@vmware.com>
| INI | mit | secure-systems-lab/securesystemslib,secure-systems-lab/securesystemslib | ini | ## Code Before:
[tox]
envlist = py27, py36, py37, py38, py39, purepy27, purepy38, py27-no-gpg, py38-no-gpg
skipsdist = True
[testenv]
install_command =
pip install --pre {opts} {packages}
deps =
-r{toxinidir}/requirements-pinned.txt
-r{toxinidir}/requirements-test.txt
commands =
coverage run tests/a... |
5ffd9b11fddf653755c619163e54817c4bae565e | tox.ini | tox.ini | [tox]
envlist = py26, py27, py33, py34, py35, flake8
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 thrum
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/thrum
commands = python setup.py test
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with... | [tox]
envlist = pypy, py27, py33, py34, py35, flake8
skip_missing_interpreters=True
[testenv:flake8]
basepython=python
deps =
flake8
twisted
commands=flake8 thrum
[testenv]
passenv = *
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/thrum
deps =
twisted
commands = python -m twisted.trial thrum
; If yo... | Remove py26; Add pypy; Use Trial | Tox: Remove py26; Add pypy; Use Trial
| INI | mit | donalm/thrum | ini | ## Code Before:
[tox]
envlist = py26, py27, py33, py34, py35, flake8
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 thrum
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/thrum
commands = python setup.py test
; If you want to make tox run the tests with the same versions, create a
; requi... |
283242f69d931b91b1ee823937d550e38ae2b35b | spec/spec_helper.rb | spec/spec_helper.rb | ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'factory_girl'
require 'database_cleaner'
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ ... | ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'factory_girl'
require 'database_cleaner'
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ ... | Use truncation database cleaner strategy for js tests | Use truncation database cleaner strategy for js tests
| Ruby | mit | NOX73/forem,trakt/forem,bcavileer/forem,BanzaiMan/forem,ajeje/forem,mmcc/forem,jarray52/forem,jeremyong/forem,bbatsov/forem,ketanjain/forem,hepu/forem,rubysherpas/forem,radar/forem,knewter/forem,xenonn/forem,efrence/forem,mijoharas/forem,eivindhagen/forem,sandboxrem/forem,link-er/forem,tomrc/forem,abrambailey/forem,bag... | ruby | ## Code Before:
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
require 'factory_girl'
require 'database_cleaner'
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
# Requires supporting ruby files with custom matchers and macros, etc,
# i... |
e15a760e13a4ca71808716e78807478234f45a41 | requirements/development.txt | requirements/development.txt | -r staging.txt
ansible==6.4.0
ansible-lint[yamllint]==6.7.0
coverage==6.4.4
factory_boy==3.2.1
flake8==5.0.4
ipython==8.5.0
rstcheck==5.0.0
sphinx==5.2.2
| -r staging.txt
ansible==6.4.0
ansible-lint==6.7.0
coverage==6.4.4
factory_boy==3.2.1
flake8==5.0.4
ipython==8.5.0
rstcheck==5.0.0
sphinx==5.2.2
| Remove yamllint extra from ansible-lint | Remove yamllint extra from ansible-lint
ansible-lint 6.0.0 made yamllint a direct dependency, so it is no longer
necessary to include it in the requirements file.
| Text | mit | pydata/conf_site,pydata/conf_site,pydata/conf_site | text | ## Code Before:
-r staging.txt
ansible==6.4.0
ansible-lint[yamllint]==6.7.0
coverage==6.4.4
factory_boy==3.2.1
flake8==5.0.4
ipython==8.5.0
rstcheck==5.0.0
sphinx==5.2.2
## Instruction:
Remove yamllint extra from ansible-lint
ansible-lint 6.0.0 made yamllint a direct dependency, so it is no longer
necessary to includ... |
596adc3b120987457db1c5b5a077156eeb656348 | website/partners/solutions/possible-uk/index.hbs | website/partners/solutions/possible-uk/index.hbs | ---
layout: partners.hbs
title: "POSSIBLE"
solutions: true
summary:
logo: "//d1qmdf3vop2l07.cloudfront.net/optimizely-marketer-assets.cloudvent.net/raw/partner-logos/solutions/possible-uk.png"
website_link: "http://www.possible.com/"
website_display: "www.possible.com"
kb_article:
stars: 2
industry: "Strategic Consulti... | ---
layout: partners
title: "POSSIBLE"
solutions: true
TR_summary:
logo: "//d1qmdf3vop2l07.cloudfront.net/optimizely-marketer-assets.cloudvent.net/raw/partner-logos/solutions/possible-uk.png"
website_link: "//www.possible.com/"
website_display: "www.possible.com"
kb_article:
stars: 2
TR_industry: "Strategic Consulting,... | Update syntax for assemble v6 | Update syntax for assemble v6 | Handlebars | mit | CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg | handlebars | ## Code Before:
---
layout: partners.hbs
title: "POSSIBLE"
solutions: true
summary:
logo: "//d1qmdf3vop2l07.cloudfront.net/optimizely-marketer-assets.cloudvent.net/raw/partner-logos/solutions/possible-uk.png"
website_link: "http://www.possible.com/"
website_display: "www.possible.com"
kb_article:
stars: 2
industry: "St... |
974d38622d1761c97627ed69538fb1986482e003 | templates/agenda/includes/event_metainfo_line.html | templates/agenda/includes/event_metainfo_line.html | {% load i18n mezzanine_tags event_tags organization_tags %}
<div class="page__meta-date">
<a href="{{ event.get_absolute_url }}">
{% include 'agenda/includes/event_date_line.html' with object=event %}
</a>
</div>
<div class="page__meta-separator page__meta-separator--small"></div>
{% if event.locatio... | {% load i18n mezzanine_tags event_tags organization_tags %}
<div class="page__meta-date">
<a href="{{ event.get_absolute_url }}">
{% include 'agenda/includes/event_date_line.html' with object=event %}
</a>
</div>
<div class="page__meta-separator page__meta-separator--small"></div>
{% if event.locatio... | Fix booking button on event list | Fix booking button on event list
| HTML | agpl-3.0 | Ircam-Web/mezzanine-organization,Ircam-Web/mezzanine-organization | html | ## Code Before:
{% load i18n mezzanine_tags event_tags organization_tags %}
<div class="page__meta-date">
<a href="{{ event.get_absolute_url }}">
{% include 'agenda/includes/event_date_line.html' with object=event %}
</a>
</div>
<div class="page__meta-separator page__meta-separator--small"></div>
{% ... |
36941e1de9275e35b57a0e1869521a715df7cad0 | README.md | README.md | This is for a React JS presentation.
| React Slides
=====================
A simple presentation slide system build in ReactJS. This is not intended to be used as a production slide system just an education tool in learning ReactJS.
### Usage
With Docker
```
docker build -t react-slides .
docker run -d -p 3000:3000 -v $(pwd)/react-slides/src:/app/src reac... | Update readme with some instructions. | readme: Update readme with some instructions.
| Markdown | mit | leadiv/react-slides,leadiv/react-slides | markdown | ## Code Before:
This is for a React JS presentation.
## Instruction:
readme: Update readme with some instructions.
## Code After:
React Slides
=====================
A simple presentation slide system build in ReactJS. This is not intended to be used as a production slide system just an education tool in learning Rea... |
83e8d43369df0834ca1826704a9066192b4d7d1a | .travis.yml | .travis.yml | language: python
dist: trusty
python:
- "2.7"
install:
- pip install requests configargparse bcrypt
- pip install coverage nose
script:
- nosetests --with-coverage --cover-xml --cover-package=xclib
after_success:
- bash <(curl -s https://codecov.io/bash)
| language: python
dist: trusty
sudo: required
python:
- "3.5"
install:
- sudo apt install libdb5.3-dev
- pip install requests configargparse bcrypt bsddb3
- pip install coverage nose rednose
script:
- nosetests --with-coverage --cover-xml --cover-package=xclib
after_success:
- bash <(curl -s https://codec... | Switch Travis to Python 3 | Switch Travis to Python 3 | YAML | mit | jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth | yaml | ## Code Before:
language: python
dist: trusty
python:
- "2.7"
install:
- pip install requests configargparse bcrypt
- pip install coverage nose
script:
- nosetests --with-coverage --cover-xml --cover-package=xclib
after_success:
- bash <(curl -s https://codecov.io/bash)
## Instruction:
Switch Travis to ... |
ffc3e16e474fae0f28c8d2b3022e5bb2ce2c7ac1 | bash.php | bash.php | <?php
$credentials = require __DIR__.'/credentials.php';
foreach (glob(__DIR__.'/includes/*.php') as $file) {
require_once $file;
}
$config = [
'rootDir' => __DIR__,
'password' => $credentials['password'],
'title' => 'SCReddit QDB',
'enableCaptcha' => false,
'latest' => 10,
'top' ... | <?php
$credentials = require __DIR__.'/credentials.php';
foreach (glob(__DIR__.'/includes/*.php') as $file) {
require_once $file;
}
$config = [
'rootDir' => __DIR__,
'password' => $credentials['password'],
'title' => 'SCReddit QDB',
'enableCaptcha' => $credentials['enableCaptcha'],
'latest' ... | Allow CAPTCHA from config file | Allow CAPTCHA from config file
| PHP | bsd-2-clause | x89/redditeu-bash,x89/redditeu-bash | php | ## Code Before:
<?php
$credentials = require __DIR__.'/credentials.php';
foreach (glob(__DIR__.'/includes/*.php') as $file) {
require_once $file;
}
$config = [
'rootDir' => __DIR__,
'password' => $credentials['password'],
'title' => 'SCReddit QDB',
'enableCaptcha' => false,
'latest' =... |
5fd25b2a1beb8cf2bc34fe81bf6016bcb90267e8 | features/scripts/create_unity_project.sh | features/scripts/create_unity_project.sh |
export PATH="$PATH:/Applications/Unity/Unity.app/Contents/MacOS"
pushd "${0%/*}"
pushd ../..
package_path=`pwd`
popd
pushd ../fixtures
git clean -xdf .
project_path="$(pwd)/unity_project"
Unity -nographics -quit -batchmode -logFile unity.log -createProject $project_path
Unity -nographics -qu... |
export PATH="$PATH:/Applications/Unity/Unity.app/Contents/MacOS"
pushd "${0%/*}"
pushd ../..
package_path=`pwd`
popd
pushd ../fixtures
git clean -xdf .
project_path="$(pwd)/unity_project"
Unity -nographics -quit -batchmode -logFile unity.log -createProject $project_path
Unity -nographics -qu... | Remove api key env variable, set elsewhere | Remove api key env variable, set elsewhere
| Shell | mit | bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity | shell | ## Code Before:
export PATH="$PATH:/Applications/Unity/Unity.app/Contents/MacOS"
pushd "${0%/*}"
pushd ../..
package_path=`pwd`
popd
pushd ../fixtures
git clean -xdf .
project_path="$(pwd)/unity_project"
Unity -nographics -quit -batchmode -logFile unity.log -createProject $project_path
Unity... |
1c666e12e17c58086b8fe0644c342c5b2818101a | .travis.yml | .travis.yml | language: java
addons:
hosts:
- test-bucket.localhost
env:
- PATH=$PATH:$HOME/.s3cmd SECOR_LOCAL_S3=true S3CMD=1.0.1
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
before_install:
- wget https://github.com/s3tools/s3cmd/archive/v$S3CMD.tar.gz -O /tmp/s3cmd.tar.gz
- tar -xzf /tmp/s3cmd.tar.gz -C $HOME
- m... | language: java
addons:
hosts:
- test-bucket.localhost
env:
- PATH=$PATH:$HOME/.s3cmd SECOR_LOCAL_S3=true S3CMD=1.0.1
jdk:
- oraclejdk7
- oraclejdk8
before_install:
- wget https://github.com/s3tools/s3cmd/archive/v$S3CMD.tar.gz -O /tmp/s3cmd.tar.gz
- tar -xzf /tmp/s3cmd.tar.gz -C $HOME
- mv $HOME/s3cmd... | Remove openjdk7 since it constantsly causing core dumps on starting zookeeper: | Remove openjdk7 since it constantsly causing core dumps on starting zookeeper:
running ./scripts/run_kafka_class.sh org.apache.zookeeper.server.quorum.QuorumPeerMain ./scripts/../zookeeper.test.properties > /tmp/secor_dev/logs/zookeeper.log 2>&1 &
*** buffer overflow detected ***: /usr/lib/jvm/java-7-o... | YAML | apache-2.0 | TiVo/secor,Smartling/secor,Smartling/secor,TiVo/secor,nguyenvanthan/secor,liamstewart/secor,strava/secor,shawnsnguyen/secor,pinterest/secor,morrifeldman/secor,FundingCircle/secor,morrifeldman/secor,FundingCircle/secor,liamstewart/secor,shawnsnguyen/secor,HenryCaiHaiying/secor,strava/secor,pinterest/secor,HenryCaiHaiyin... | yaml | ## Code Before:
language: java
addons:
hosts:
- test-bucket.localhost
env:
- PATH=$PATH:$HOME/.s3cmd SECOR_LOCAL_S3=true S3CMD=1.0.1
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
before_install:
- wget https://github.com/s3tools/s3cmd/archive/v$S3CMD.tar.gz -O /tmp/s3cmd.tar.gz
- tar -xzf /tmp/s3cmd.tar.g... |
3a204de33589de943ff09525895812530baac0b2 | saylua/modules/pets/models/db.py | saylua/modules/pets/models/db.py | from google.appengine.ext import ndb
# This is to store alternate linart versions of the same pets
class SpeciesVersion(ndb.Model):
name = ndb.StringProperty()
base_image = ndb.StringProperty()
base_psd = ndb.StringProperty()
default_image = ndb.StringProperty()
# Pets are divided into species and spe... | from google.appengine.ext import ndb
# This is to store alternate linart versions of the same pets
class SpeciesVersion(ndb.Model):
name = ndb.StringProperty()
base_image = ndb.StringProperty()
base_psd = ndb.StringProperty()
default_image = ndb.StringProperty()
# Pets are divided into species and spe... | Update to pet model for provisioner | Update to pet model for provisioner
| Python | agpl-3.0 | saylua/SayluaV2,saylua/SayluaV2,LikeMyBread/Saylua,LikeMyBread/Saylua,saylua/SayluaV2,LikeMyBread/Saylua,LikeMyBread/Saylua | python | ## Code Before:
from google.appengine.ext import ndb
# This is to store alternate linart versions of the same pets
class SpeciesVersion(ndb.Model):
name = ndb.StringProperty()
base_image = ndb.StringProperty()
base_psd = ndb.StringProperty()
default_image = ndb.StringProperty()
# Pets are divided into... |
0372b281b3183c6094dc5ea6afaab05fb5b5836f | examples/git-pull.js | examples/git-pull.js |
var connect = require( 'connect' ),
flick = require( '..' ),
handler = flick(),
app = connect();
handler.use( 'romac/romac.github.com', gitPull );
function gitPull( req, res, next )
{
console.log( req.flick );
next();
}
app.use( connect.bodyParser() );
app.use( flick.whitelist( { local: true } )... |
var connect = require( 'connect' ),
shell = require( 'shelljs' ),
flick = require( '..' ),
handler = flick(),
app = connect();
handler.use( 'romac/romac.github.com', gitPull( '/var/www/romac.me', { rebase: true } ) );
function gitPull( root, options )
{
return function( req, res, next )
{
... | Add a proper example as of the new API design. | Add a proper example as of the new API design.
| JavaScript | mit | romac/node-flick | javascript | ## Code Before:
var connect = require( 'connect' ),
flick = require( '..' ),
handler = flick(),
app = connect();
handler.use( 'romac/romac.github.com', gitPull );
function gitPull( req, res, next )
{
console.log( req.flick );
next();
}
app.use( connect.bodyParser() );
app.use( flick.whitelist( {... |
ef0c97624a4809bad454e4f7924062cad95e7a7a | README.md | README.md | rmd-dashboard
=============
ResMed Dashboard
# Dev setup
## Grunt
If you don't already have it, you will need to install the grunt-cli
npm install -g grunt-cli
## Install dependencies
To set up the development environment, execute the following commands
npm install
grunt bower:install
## Run server in... | rmd-dashboard
=============
ResMed Dashboard
# Dev setup
## Grunt
If you don't already have it, you will need to install the grunt-cli
npm install -g grunt-cli
## Install dependencies
To set up the development environment, execute the following commands
npm install
grunt bower:install
## Run server in... | Add troubleshooting section to fix GitHub errors when running bower:install | Add troubleshooting section to fix GitHub errors when running bower:install
| Markdown | mit | iknowcss/rmd-dashboard | markdown | ## Code Before:
rmd-dashboard
=============
ResMed Dashboard
# Dev setup
## Grunt
If you don't already have it, you will need to install the grunt-cli
npm install -g grunt-cli
## Install dependencies
To set up the development environment, execute the following commands
npm install
grunt bower:install
... |
1a40804ffc1381d0f3b666f6f20dff6e0c2c21dc | src/modules/LCIOWriter/CMakeLists.txt | src/modules/LCIOWriter/CMakeLists.txt | ALLPIX_UNIQUE_MODULE(MODULE_NAME)
# Add source files to library
ALLPIX_MODULE_SOURCES(${MODULE_NAME}
LCIOWriterModule.cpp
# ADD SOURCE FILES HERE...
)
# Provide standard install target
ALLPIX_MODULE_INSTALL(${MODULE_NAME})
| FIND_PACKAGE(LCIO REQUIRED)
IF(LCIO_FOUND)
# Define module and return the generated name as MODULE_NAME
ALLPIX_UNIQUE_MODULE(MODULE_NAME)
# Add source files to library
ALLPIX_MODULE_SOURCES(${MODULE_NAME}
LCIOWriterModule.cpp
# ADD SOURCE FILES HERE...
)
# Provide standard install target
ALLPIX_MODUL... | Build LCIOWriter module only if LCIO is found | Build LCIOWriter module only if LCIO is found
| Text | mit | Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared | text | ## Code Before:
ALLPIX_UNIQUE_MODULE(MODULE_NAME)
# Add source files to library
ALLPIX_MODULE_SOURCES(${MODULE_NAME}
LCIOWriterModule.cpp
# ADD SOURCE FILES HERE...
)
# Provide standard install target
ALLPIX_MODULE_INSTALL(${MODULE_NAME})
## Instruction:
Build LCIOWriter module only if LCIO is found
## Cod... |
f868b126b3bd81ec900f378ff1fa8bd29ab8ea4c | transformations/Transformations.py | transformations/Transformations.py | from transformations.BackTranslation import BackTranslation
from transformations.ButterFingersPerturbation import ButterFingersPerturbation
from transformations.ChangeNamedEntities import ChangeNamedEntities
from transformations.SentenceTransformation import SentenceTransformation
from transformations.WithoutPunctuatio... |
from transformations.BackTranslation import BackTranslation
from transformations.ButterFingersPerturbation import ButterFingersPerturbation
from transformations.ChangeNamedEntities import ChangeNamedEntities
from transformations.SentenceTransformation import SentenceTransformation
from transformations.WithoutPunctuati... | Add interface for source+label pertubation | Add interface for source+label pertubation
| Python | mit | GEM-benchmark/NL-Augmenter | python | ## Code Before:
from transformations.BackTranslation import BackTranslation
from transformations.ButterFingersPerturbation import ButterFingersPerturbation
from transformations.ChangeNamedEntities import ChangeNamedEntities
from transformations.SentenceTransformation import SentenceTransformation
from transformations.W... |
a4d1b39425678d48c5a0ec591b38017625cef006 | src/browser/ui/chips/chip-list.component.scss | src/browser/ui/chips/chip-list.component.scss | @import "./chip-sizes";
.ChipList {
display: block;
overflow: hidden;
&__wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin: -$chip-chips-margin;
.Chip {
margin: $chip-chips-margin;
}
}
}
inpu... | @import "./chip-sizes";
.ChipList {
display: inline-flex;
overflow: hidden;
&__wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin: -$chip-chips-margin;
.Chip {
margin: $chip-chips-margin;
}
}
}... | Change display type: 'block' -> 'inline-block' | Change display type: 'block' -> 'inline-block'
| SCSS | mit | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | scss | ## Code Before:
@import "./chip-sizes";
.ChipList {
display: block;
overflow: hidden;
&__wrapper {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin: -$chip-chips-margin;
.Chip {
margin: $chip-chips-margin;
... |
77ac03544f85e95603507e1dc0cec2189e0d5a03 | get_ip.py | get_ip.py | import boto
import boto.ec2
import getopt
import sys
#
# Get the profile
#
def connect(region):
profile = metadata['iam']['info']['InstanceProfileArn']
profile = profile[profile.find('/') + 1:]
conn = boto.ec2.connection.EC2Connection(
region=boto.ec2.get_region(region),
aws_acces... | import boto
import boto.ec2
import getopt
import sys
#
# Get the profile
#
def connect():
metadata = boto.utils.get_instance_metadata()
region = metadata['placement']['availability-zone'][:-1]
profile = metadata['iam']['info']['InstanceProfileArn']
profile = profile[profile.find('/') + 1:]
conn =... | Add python script for IPs discovery | Add python script for IPs discovery
| Python | bsd-3-clause | GetStream/Stream-Framework-Bench,GetStream/Stream-Framework-Bench | python | ## Code Before:
import boto
import boto.ec2
import getopt
import sys
#
# Get the profile
#
def connect(region):
profile = metadata['iam']['info']['InstanceProfileArn']
profile = profile[profile.find('/') + 1:]
conn = boto.ec2.connection.EC2Connection(
region=boto.ec2.get_region(region),
... |
db5623472a5ba399d68acf6a1f6de0560714ac54 | spec/pagseguro/payment_request/response_spec.rb | spec/pagseguro/payment_request/response_spec.rb | require "spec_helper"
describe PagSeguro::PaymentRequest::Response do
context "when payment request is created" do
def xml_response(path)
response = double(
body: File.read("./spec/fixtures/#{path}"),
code: 200,
content_type: "text/xml",
"[]" => nil
)
Aitch::Res... | require "spec_helper"
describe PagSeguro::PaymentRequest::Response do
context "when payment request is created" do
def xml_response(path)
response = double(
body: File.read("./spec/fixtures/#{path}"),
code: 200,
content_type: "text/xml",
"[]" => nil
)
Aitch::Res... | Update spec to conform new Aitch API. | Update spec to conform new Aitch API.
| Ruby | apache-2.0 | caiofct/pagseguro-ruby,pagseguro/ruby,88rabbit/ruby | ruby | ## Code Before:
require "spec_helper"
describe PagSeguro::PaymentRequest::Response do
context "when payment request is created" do
def xml_response(path)
response = double(
body: File.read("./spec/fixtures/#{path}"),
code: 200,
content_type: "text/xml",
"[]" => nil
)
... |
7a906da52e48cbef1266b9de0b248079177a60d6 | functions/expand:execute.fish | functions/expand:execute.fish | function expand:execute -d "Executes word expansion on the current token"
# Iterate available expansions for one that matches the current token.
for expansion in $__word_expansions
set -l expansion (echo $expansion)
# If the expansion matches, execute the expander and use its output as the replacement.
... | function expand:execute -d "Executes word expansion on the current token"
# Choose a filter.
if not set -q FILTER
if type -q peco
set FILTER 'peco --prompt ">" --layout bottom-up'
else if type -q percol
set FILTER 'percol'
else if type -q fzf
set FILTER 'fzf'
else if type -q select... | Add support for filtering available expansions | Add support for filtering available expansions
| fish | mit | oh-my-fish/plugin-expand | fish | ## Code Before:
function expand:execute -d "Executes word expansion on the current token"
# Iterate available expansions for one that matches the current token.
for expansion in $__word_expansions
set -l expansion (echo $expansion)
# If the expansion matches, execute the expander and use its output as the ... |
afac07ce173af3e7db4a6ba6dab4786903e217b7 | ocradmin/ocr/tools/plugins/cuneiform_wrapper.py | ocradmin/ocr/tools/plugins/cuneiform_wrapper.py |
from generic_wrapper import *
def main_class():
return CuneiformWrapper
class CuneiformWrapper(GenericWrapper):
"""
Override certain methods of the OcropusWrapper to
use Cuneiform for recognition of individual lines.
"""
name = "cuneiform"
capabilities = ("line", "page")
binary = ge... |
import tempfile
import subprocess as sp
from ocradmin.ocr.tools import check_aborted, set_progress
from ocradmin.ocr.utils import HocrParser
from generic_wrapper import *
def main_class():
return CuneiformWrapper
class CuneiformWrapper(GenericWrapper):
"""
Override certain methods of the OcropusWrapper... | Allow Cuneiform to do full page conversions. Downsides: 1) it crashes on quite a lot of pages 2) there's no progress output | Allow Cuneiform to do full page conversions. Downsides: 1) it crashes on quite a lot of pages 2) there's no progress output
| Python | apache-2.0 | vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium | python | ## Code Before:
from generic_wrapper import *
def main_class():
return CuneiformWrapper
class CuneiformWrapper(GenericWrapper):
"""
Override certain methods of the OcropusWrapper to
use Cuneiform for recognition of individual lines.
"""
name = "cuneiform"
capabilities = ("line", "page")... |
1e71c32621d37144223221cf4afc668525e33134 | README.md | README.md | wind
====
Wind is a lightweight and fast logging server for PHP.
Currently it's more a proof of concept.
Goal
----
Logging can slow down an application. PHP runs everything in the same process.
Wind exposes a light REST server to which the main PHP application can post log requests. This will trigger a *new* PHP... | Wind - Fast logging for PHP
===========================
[](https://travis-ci.org/wadmiraal/wind)
Wind is a lightweight and fast logging server for PHP.
Goal
----
Logging can slow down an application. PHP runs everything in the same process.
W... | Add Travis CI build image. | Add Travis CI build image.
| Markdown | mit | wadmiraal/wind,wadmiraal/wind | markdown | ## Code Before:
wind
====
Wind is a lightweight and fast logging server for PHP.
Currently it's more a proof of concept.
Goal
----
Logging can slow down an application. PHP runs everything in the same process.
Wind exposes a light REST server to which the main PHP application can post log requests. This will tri... |
ae2d17fc4ae6dfc1e6234a2de6f0b63c7df5649a | modules/gtp/package.json | modules/gtp/package.json | {
"name": "gtp",
"main": "index.js"
}
| {
"name": "gtp",
"version": "0.1.0",
"main": "index.js"
}
| Add version to gtp module | Add version to gtp module
| JSON | mit | yishn/Goban,yishn/Sabaki,yishn/Sabaki,yishn/Goban | json | ## Code Before:
{
"name": "gtp",
"main": "index.js"
}
## Instruction:
Add version to gtp module
## Code After:
{
"name": "gtp",
"version": "0.1.0",
"main": "index.js"
}
|
5b33e1307e8061984128de6873eb79e0fba7a950 | app/controllers/users_controller.rb | app/controllers/users_controller.rb | class UsersController < ApplicationController
def new
@user = User.new
render :'users/new'
end
def create
@user = User.new(reg_params)
if @user.save
redirect_to experiments_path
else
render new_user_path
end
end
private
def reg_params
params.require(:user).permi... | class UsersController < ApplicationController
def new
@user = User.new
render :'users/new'
end
def create
@user = User.new(reg_params)
if @user.save
redirect_to new_session_path
else
render new_user_path
end
end
private
def reg_params
params.require(:user).permi... | Change route for successul registration to login page | Change route for successul registration to login page
| Ruby | mit | njarin/earp,njarin/earp,njarin/earp | ruby | ## Code Before:
class UsersController < ApplicationController
def new
@user = User.new
render :'users/new'
end
def create
@user = User.new(reg_params)
if @user.save
redirect_to experiments_path
else
render new_user_path
end
end
private
def reg_params
params.requ... |
e6c66260031b793e25b2c4c50859699b9d0d7e17 | index.js | index.js | "use strict"
var fs = require("fs")
var path = require("path")
var dz = require("dezalgo")
var npa = require("npm-package-arg")
module.exports = function (spec, where, cb) {
if (where instanceof Function) cb = where, where = null
if (where == null) where = "."
cb = dz(cb)
try {
var dep = npa(spec)
}
ca... | "use strict"
var fs = require("fs")
var path = require("path")
var dz = require("dezalgo")
var npa = require("npm-package-arg")
module.exports = function (spec, where, cb) {
if (where instanceof Function) cb = where, where = null
if (where == null) where = "."
cb = dz(cb)
try {
var dep = npa(spec)
}
ca... | Resolve ONLY file:// deps relative to package root, everything else CWD | Resolve ONLY file:// deps relative to package root, everything else CWD
| JavaScript | isc | npm/realize-package-specifier | javascript | ## Code Before:
"use strict"
var fs = require("fs")
var path = require("path")
var dz = require("dezalgo")
var npa = require("npm-package-arg")
module.exports = function (spec, where, cb) {
if (where instanceof Function) cb = where, where = null
if (where == null) where = "."
cb = dz(cb)
try {
var dep = np... |
940f6bbc3d99b5c46201384d323f18c3578d838f | docs/installation.rst | docs/installation.rst | ==================
Installation Guide
==================
Melexis Warnings plugin is available as a package on `PyPI
<https://pypi.org/project/mlx.warnings/>`_. Once installed, it
offers direct command line invocation (no need to run python infront).
Installation is as simple as:
.. code-block:: bash
# released v... | ==================
Installation Guide
==================
Melexis Warnings plugin is available as a package on `PyPI
<https://pypi.org/project/mlx.warnings/>`_. Once installed, it
offers direct command line invocation (no need to run python infront).
Installation is as simple as:
.. code-block:: bash
# released v... | Add note about requirements for lxml on Linux | Add note about requirements for lxml on Linux
| reStructuredText | apache-2.0 | melexis/warnings-plugin | restructuredtext | ## Code Before:
==================
Installation Guide
==================
Melexis Warnings plugin is available as a package on `PyPI
<https://pypi.org/project/mlx.warnings/>`_. Once installed, it
offers direct command line invocation (no need to run python infront).
Installation is as simple as:
.. code-block:: bash
... |
f8290954b27e655562878d16df7e4793262f50d7 | wafer/tickets/management/commands/import_quicket_guest_list.py | wafer/tickets/management/commands/import_quicket_guest_list.py | import csv
from django.core.management.base import BaseCommand, CommandError
from wafer.tickets.views import import_ticket
class Command(BaseCommand):
args = '<csv file>'
help = "Import a guest list CSV from Quicket"
def handle(self, *args, **options):
if len(args) != 1:
raise Comma... | import csv
from django.core.management.base import BaseCommand, CommandError
from wafer.tickets.views import import_ticket
class Command(BaseCommand):
args = '<csv file>'
help = "Import a guest list CSV from Quicket"
def handle(self, *args, **options):
if len(args) != 1:
raise Comma... | Check CSV header, not column count (and refactor) | Check CSV header, not column count (and refactor)
| Python | isc | CarlFK/wafer,CarlFK/wafer,CarlFK/wafer,CarlFK/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer | python | ## Code Before:
import csv
from django.core.management.base import BaseCommand, CommandError
from wafer.tickets.views import import_ticket
class Command(BaseCommand):
args = '<csv file>'
help = "Import a guest list CSV from Quicket"
def handle(self, *args, **options):
if len(args) != 1:
... |
d7e4fdab026da1dd665dacf2b29ce40873c4b095 | docs/src/siteConfig.tsx | docs/src/siteConfig.tsx | // List of projects/orgs using your project for the users page.
export const siteConfig = {
editUrl: 'https://github.com/formik/formik/edit/master',
copyright: `Copyright © ${new Date().getFullYear()} Jared Palmer. All Rights Reserved.`,
repoUrl: 'https://github.com/formik/formik',
algolia: {
appId: 'BH4D9... | // List of projects/orgs using your project for the users page.
export const siteConfig = {
editUrl: 'https://github.com/formik/formik/edit/master/docs/src/pages',
copyright: `Copyright © ${new Date().getFullYear()} Jared Palmer. All Rights Reserved.`,
repoUrl: 'https://github.com/formik/formik',
algolia: {
... | Fix Docs: correct github edit URL | Fix Docs: correct github edit URL
| TypeScript | apache-2.0 | jaredpalmer/formik,jaredpalmer/formik,jaredpalmer/formik | typescript | ## Code Before:
// List of projects/orgs using your project for the users page.
export const siteConfig = {
editUrl: 'https://github.com/formik/formik/edit/master',
copyright: `Copyright © ${new Date().getFullYear()} Jared Palmer. All Rights Reserved.`,
repoUrl: 'https://github.com/formik/formik',
algolia: {
... |
cd720b9cd93a40fbbb3e07b92d2ab390d377b993 | bin/run-celery-worker.sh | bin/run-celery-worker.sh |
newrelic-admin run-program celery -A kitsune worker -Q fxa -n fxa@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} &
exec newrelic-admin run-program celery -A kitsune worker -n default@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} &
|
exec newrelic-admin run-program celery -A kitsune worker -Q default,fxa --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} &
| Add fxa queue together with the default. | Add fxa queue together with the default.
| Shell | bsd-3-clause | mozilla/kitsune,mozilla/kitsune,mozilla/kitsune,mozilla/kitsune | shell | ## Code Before:
newrelic-admin run-program celery -A kitsune worker -Q fxa -n fxa@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} &
exec newrelic-admin run-program celery -A kitsune worker -n default@%h --maxtasksperchild=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-25} &
## Instruction:
Add fxa queue together... |
ba76c7928a50031fee913b058e276819515c111d | doc/cli.md | doc/cli.md |
Update each function so that it takes an object bag of arguments. Update the cli.js to parse the user's .npmrc first, and then the arguments, merge the two objects together, and pass the data over to the function.
If something relevant is missing, then each command should provide a "help" menu that lists out what's ... |
Update each function so that it takes an object bag of arguments. Update the cli.js to parse the user's .npmrc first, and then the arguments, merge the two objects together, and pass the data over to the function.
If something relevant is missing, then each command should provide a "help" menu that lists out what's ... | Add a todo about abbrevs | Add a todo about abbrevs
| Markdown | artistic-2.0 | chadnickbok/npm,segrey/npm,midniteio/npm,misterbyrne/npm,yyx990803/npm,ekmartin/npm,Volune/npm,segment-boneyard/npm,rsp/npm,cchamberlain/npm,evocateur/npm,kimshinelove/naver-npm,cchamberlain/npm-msys2,midniteio/npm,segrey/npm,cchamberlain/npm,evanlucas/npm,yibn2008/npm,DIREKTSPEED-LTD/npm,haggholm/npm,TimeToogo/npm,seg... | markdown | ## Code Before:
Update each function so that it takes an object bag of arguments. Update the cli.js to parse the user's .npmrc first, and then the arguments, merge the two objects together, and pass the data over to the function.
If something relevant is missing, then each command should provide a "help" menu that l... |
00712888b761bce556b73e36c9c7270829d3a1d4 | tests/test_entity.py | tests/test_entity.py | from test_provider_gtfs import provider
from busbus.entity import BaseEntityJSONEncoder
import json
import pytest
@pytest.fixture(scope='module')
def agency(provider):
return next(provider.agencies)
def test_entity_repr(agency):
assert 'DTA' in repr(agency)
def test_entity_failed_getattr(agency):
wi... | from test_provider_gtfs import provider
from busbus.entity import BaseEntityJSONEncoder
import json
import pytest
@pytest.fixture(scope='module')
def agency(provider):
return next(provider.agencies)
def test_entity_repr(agency):
assert 'DTA' in repr(agency)
def test_entity_failed_getattr(agency):
wi... | Test the failure branch in BaseEntityJSONDecoder | Test the failure branch in BaseEntityJSONDecoder
| Python | mit | spaceboats/busbus | python | ## Code Before:
from test_provider_gtfs import provider
from busbus.entity import BaseEntityJSONEncoder
import json
import pytest
@pytest.fixture(scope='module')
def agency(provider):
return next(provider.agencies)
def test_entity_repr(agency):
assert 'DTA' in repr(agency)
def test_entity_failed_getattr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.