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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
32126085f361489bb5c9c18972479b0c313c7d10 | bash_runner/tasks.py | bash_runner/tasks.py |
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@task
def start(__cloudify_id, port=8080, **kwargs):
print 'HELLO BASH! %s' % port
send_event(__cloudify_id, get_ip(), "hello_bash stat... |
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@task
def start(__cloudify_id, port=8080, **kwargs):
with open('/tmp/HELLO', 'w') as f:
print >> f, 'HELLO BASH! %s' % port
send_ev... | Send the output to a tmp file | Send the output to a tmp file
| Python | apache-2.0 | rantav/cosmo-plugin-bash-runner | python | ## Code Before:
from celery import task
from cosmo.events import send_event as send_riemann_event
from cloudify.utils import get_local_ip
get_ip = get_local_ip
send_event = send_riemann_event
@task
def start(__cloudify_id, port=8080, **kwargs):
print 'HELLO BASH! %s' % port
send_event(__cloudify_id, get_ip(), ... |
359957fb81a82816119528b70c2f00c358aa2224 | views/brew-add.jade | views/brew-add.jade | extends layout
block content
h1= title
form(method='post')
h2 Select Coffee Maker
- each maker in makers
input(id='maker-' + maker.id, type='radio', name='maker', value=maker.id)
label(for='maker-' + maker.id)= maker.name
h2 Select Pot
- each pot in pots
input(id='pot-' + pot.id, ... | extends layout
block content
h1= title
form(method='post')
h2 Select Coffee Maker
- each maker in makers
input(id='maker-' + maker.id, type='radio', name='maker', value=maker.id)
label(for='maker-' + maker.id)= maker.name
br/
h2 Select Pot
- each pot in pots
input(id='pot-' ... | Add some whitespace to add page | Add some whitespace to add page
| Jade | mit | toofishes/coffee-monitor | jade | ## Code Before:
extends layout
block content
h1= title
form(method='post')
h2 Select Coffee Maker
- each maker in makers
input(id='maker-' + maker.id, type='radio', name='maker', value=maker.id)
label(for='maker-' + maker.id)= maker.name
h2 Select Pot
- each pot in pots
input(id='... |
b71e8d2160660e2547d69749da168026c6eb7207 | wercker.yml | wercker.yml | box: flaviut/python-ruby@0.0.2
build:
steps:
# Execute the bundle install step, a step provided by wercker
- bundle-install
# Execute a custom script step.
- script:
name: install nanoc
code: sudo gem install nanoc
- script:
name: install p... | box: flaviut/python-ruby@0.0.2
build:
steps:
# Execute the bundle install step, a step provided by wercker
- bundle-install
# Execute a custom script step.
- script:
name: install nanoc
code: sudo gem install nanoc
- script:
name: install p... | Deploy and build at the same time | Deploy and build at the same time
| YAML | unlicense | flaviut/nim-by-example,tmm1/nim-by-example,tmm1/nim-by-example,flaviut/nim-by-example,tmm1/nim-by-example,tmm1/nim-by-example,flaviut/nim-by-example,zhjh1209/nim-by-example.github.io,flaviut/nim-by-example,zhjh1209/nim-by-example.github.io | yaml | ## Code Before:
box: flaviut/python-ruby@0.0.2
build:
steps:
# Execute the bundle install step, a step provided by wercker
- bundle-install
# Execute a custom script step.
- script:
name: install nanoc
code: sudo gem install nanoc
- script:
... |
68494aae959dfbbf781cdf03a988d2f5fc7e4802 | CMake/abslConfig.cmake.in | CMake/abslConfig.cmake.in |
include(FindThreads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") |
include(CMakeFindDependencyMacro)
find_dependency(Threads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") | Fix CMake Threads dependency issue | Fix CMake Threads dependency issue
Fixes #668 | unknown | apache-2.0 | firebase/abseil-cpp,abseil/abseil-cpp,firebase/abseil-cpp,abseil/abseil-cpp,abseil/abseil-cpp,firebase/abseil-cpp,firebase/abseil-cpp,abseil/abseil-cpp | unknown | ## Code Before:
include(FindThreads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
## Instruction:
Fix CMake Threads dependency issue
Fixes #668
## Code After:
include(CMakeFindDependencyMacro)
find_dependency(Threads)
@PACKAGE_INIT@
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT... |
d5abe6e410c694f9fd2e9e38ab51bc1977dc0fb4 | app/lib/db/db.js | app/lib/db/db.js | const Firebase = require('firebase');
export const ref = new Firebase("https://interruptedlobster.firebaseio.com/tiff");
export const userData = ref.child('user');
export const userRecent = ref.child('recent');
| const Firebase = require('firebase');
export const ref = new Firebase("https://interruptedlobster.firebaseio.com/");
export const currLoc = ref.child('currLoc');
export let myCurrLoc = currLoc.child('anonymous');
export let user = ref.child('anonymous');
export let userData = user.child('pins');
export let userRecent =... | Refactor firebase refs, add function to change user | Refactor firebase refs, add function to change user
| JavaScript | mit | InterruptedLobster/ARO | javascript | ## Code Before:
const Firebase = require('firebase');
export const ref = new Firebase("https://interruptedlobster.firebaseio.com/tiff");
export const userData = ref.child('user');
export const userRecent = ref.child('recent');
## Instruction:
Refactor firebase refs, add function to change user
## Code After:
const Fi... |
84ec8e479a7421cef9123fd1161bb01229f7591b | lib/Version/CMakeLists.txt | lib/Version/CMakeLists.txt | set(PRE_CONFIGURE_FILE "Version.cpp.in")
set(POST_CONFIGURE_FILE "${CMAKE_CURRENT_BINARY_DIR}/Version.cpp")
include("${CMAKE_SOURCE_DIR}/cmake/git_watcher.cmake")
set(Version_PUBLIC_H
"${PROJECT_SOURCE_DIR}/include/remill/Version/Version.h"
)
# Create a library out of the compiled post-configure file.
add_library(... | set(PRE_CONFIGURE_FILE "Version.cpp.in")
set(POST_CONFIGURE_FILE "${CMAKE_CURRENT_BINARY_DIR}/Version.cpp")
include("${REMILL_SOURCE_DIR}/cmake/git_watcher.cmake")
set(Version_PUBLIC_H
"${REMILL_SOURCE_DIR}/include/remill/Version/Version.h"
)
# Create a library out of the compiled post-configure file.
add_library(... | Fix include of git watcher when remill is used as a submodule | Fix include of git watcher when remill is used as a submodule
| Text | apache-2.0 | trailofbits/remill,trailofbits/remill,trailofbits/remill,trailofbits/remill | text | ## Code Before:
set(PRE_CONFIGURE_FILE "Version.cpp.in")
set(POST_CONFIGURE_FILE "${CMAKE_CURRENT_BINARY_DIR}/Version.cpp")
include("${CMAKE_SOURCE_DIR}/cmake/git_watcher.cmake")
set(Version_PUBLIC_H
"${PROJECT_SOURCE_DIR}/include/remill/Version/Version.h"
)
# Create a library out of the compiled post-configure fi... |
1cadf7f3445605aa023f4f56571bfeeabf28ef66 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
# - "3.3"
# command to install dependencies
before_install:
- git clone -b iterative_uniquify https://github.com/clemux/firewoes.git ../firewoes
- pip install -e ../firewoes
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install flake8
env:
- DA... | language: python
python:
- "2.7"
# - "3.3"
# command to install dependencies
before_install:
- git clone -b iterative_uniquify https://github.com/clemux/firewoes.git ../firewoes
- pip install -e ../firewoes
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install flake8
env:
- DA... | Revert "Print ~/.config/flake8 in case it's the cause of weird stuff happening." | Revert "Print ~/.config/flake8 in case it's the cause of weird stuff happening."
This reverts commit af40a4e32c1b68d3b9e38bb32166d1fae270573a.
| YAML | mit | opencollab/debile,lucaskanashiro/debile,opencollab/debile,tcc-unb-fga/debile,lucaskanashiro/debile,mdimjasevic/debile,tcc-unb-fga/debile,mdimjasevic/debile | yaml | ## Code Before:
language: python
python:
- "2.7"
# - "3.3"
# command to install dependencies
before_install:
- git clone -b iterative_uniquify https://github.com/clemux/firewoes.git ../firewoes
- pip install -e ../firewoes
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install fl... |
50a16e690ff06c687129c9950c665f890af86668 | app/assets/stylesheets/mobile_apps/mobile_apps_plan.css.scss | app/assets/stylesheets/mobile_apps/mobile_apps_plan.css.scss | // MobileApps plan
// --------------------------------------------------
@import '../variables/colors';
@import '../variables/sizes';
.MobilePlan {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 25px 0;
border-bottom: 1px solid rgba(#000, 0.1);
}
.Mobile... | // MobileApps plan
// --------------------------------------------------
@import '../variables/colors';
@import '../variables/sizes';
.MobilePlan {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 25px 0;
border-bottom: 1px solid rgba(#000, 0.1);
}
.Mobile... | Set `flex: 1` to .MobilePlan-items | Set `flex: 1` to .MobilePlan-items
| SCSS | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb | scss | ## Code Before:
// MobileApps plan
// --------------------------------------------------
@import '../variables/colors';
@import '../variables/sizes';
.MobilePlan {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 25px 0;
border-bottom: 1px solid rgba(#000, ... |
005dce609f5c161c8dd87d831438181f5c2823bb | package.json | package.json | {
"name": "googleSheetsPlugin",
"version": "1.0.0",
"description": "A plugin that provides integration with google Apps sheets to allow users to view the googe spreadsheet.",
"main": "index.js",
"scripts": {
"postinstall": "./node_modules/.bin/bower install",
"test": "./node_modules/.bin/karma start -... | {
"name": "googleSheetsPlugin",
"version": "1.0.0",
"description": "A plugin that provides integration with google Apps sheets to allow users to view the googe spreadsheet.",
"main": "index.js",
"scripts": {
"postinstall": "./node_modules/.bin/bower install",
"test": "./node_modules/.bin/karma start -... | Build script is exluding node_modules folder | Build script is exluding node_modules folder
| JSON | mit | BuildFire/googleSheetsPlugin,BuildFire/googleSheetsPlugin | json | ## Code Before:
{
"name": "googleSheetsPlugin",
"version": "1.0.0",
"description": "A plugin that provides integration with google Apps sheets to allow users to view the googe spreadsheet.",
"main": "index.js",
"scripts": {
"postinstall": "./node_modules/.bin/bower install",
"test": "./node_modules/.b... |
e2ac27db9f2d375d71daaae5a45b829385b1ca8a | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.0.0
- 2.1.1
- 2.1.5
before_script:
- ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
notifications:
hipchat:
rooms:
secure: NvtShOCmF+gKzPfUG5Gsd+Ibf5EnVtl1IQD033iRG1rOzSMejp64CYiRMQ3xjEpSKMZJ9w08Lem0WQyafEe5FbiHvDWb0nbHh60wj5QILeRb6Ajf5htSGWulZtR2yr9NIhxqfEZveXXLiH4xuqLxQ5... | language: ruby
sudo: false
rvm:
- 2.0.0
- 2.1.1
- 2.1.5
before_script:
- ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
notifications:
hipchat:
rooms:
secure: NvtShOCmF+gKzPfUG5Gsd+Ibf5EnVtl1IQD033iRG1rOzSMejp64CYiRMQ3xjEpSKMZJ9w08Lem0WQyafEe5FbiHvDWb0nbHh60wj5QILeRb6Ajf5htSGWulZtR2yr9NIhxqfEZveX... | Use container-based infrastructure in TravisCI | Use container-based infrastructure in TravisCI
| YAML | mit | ehartmann/electric_sheep,servebox/electric_sheep,ehartmann/electric_sheep,ehartmann/electric_sheep,servebox/electric_sheep,servebox/electric_sheep | yaml | ## Code Before:
language: ruby
rvm:
- 2.0.0
- 2.1.1
- 2.1.5
before_script:
- ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION'
notifications:
hipchat:
rooms:
secure: NvtShOCmF+gKzPfUG5Gsd+Ibf5EnVtl1IQD033iRG1rOzSMejp64CYiRMQ3xjEpSKMZJ9w08Lem0WQyafEe5FbiHvDWb0nbHh60wj5QILeRb6Ajf5htSGWulZtR2yr9NIhxqfE... |
648a88b770d46a38ea491c86117db289d036b6d3 | app/views/backend/sessions/new.html.erb | app/views/backend/sessions/new.html.erb | <div class="col-xs-12 col-sm-8 col-sm-offset-2 col-lg-4 col-lg-offset-4">
<% if flash[:alert] %>
<div class="alert alert-danger">
<%= flash[:alert] %>
</div>
<% end %>
<div class="card">
<div class="card-block">
<h4 class="card-title"><%= t 'b.login' %></h4>
<%= simple_form_for :ses... | <div class="col-xs-12 col-sm-8 offset-sm-2 col-lg-4 offset-lg-4">
<% if flash[:alert] %>
<div class="alert alert-danger">
<%= flash[:alert] %>
</div>
<% end %>
<div class="card">
<div class="card-block">
<h4 class="card-title"><%= t 'b.login' %></h4>
<%= simple_form_for :session, ur... | Fix the offset for the login form. | Fix the offset for the login form.
| HTML+ERB | mit | udongo/udongo,udongo/udongo,udongo/udongo | html+erb | ## Code Before:
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-lg-4 col-lg-offset-4">
<% if flash[:alert] %>
<div class="alert alert-danger">
<%= flash[:alert] %>
</div>
<% end %>
<div class="card">
<div class="card-block">
<h4 class="card-title"><%= t 'b.login' %></h4>
<%= simp... |
23590b5c557e6a8788c5b32887f6f34d979bfdec | lib/arbor/client.rb | lib/arbor/client.rb | require 'arbor/api'
require 'arbor/utils'
require 'httpi'
require 'json'
module Arbor
class Client
include Arbor::API
include Arbor::Utils
attr_accessor :host, :username, :password, :settings, :highest_revision
def initialize(*args)
@settings = args.last.is_a?(Hash) ? args.pop : {}
raise... | require 'arbor/api'
require 'arbor/utils'
require 'httpi'
require 'json'
module Arbor
class Client
include Arbor::API
include Arbor::Utils
attr_accessor :host, :username, :password, :settings, :highest_revision
def initialize(*args)
@settings = args.last.is_a?(Hash) ? args.pop : {}
raise... | Change settings so any HTTPI setting can be set under :httpi key | Change settings so any HTTPI setting can be set under :httpi key
| Ruby | mit | mikecmpbll/arbor-rb,meritec/arbor-rb | ruby | ## Code Before:
require 'arbor/api'
require 'arbor/utils'
require 'httpi'
require 'json'
module Arbor
class Client
include Arbor::API
include Arbor::Utils
attr_accessor :host, :username, :password, :settings, :highest_revision
def initialize(*args)
@settings = args.last.is_a?(Hash) ? args.pop ... |
a60ec274b93ea3582a90f8a7ba318b7fb56474c4 | app/views/apipony/application/_response.html.erb | app/views/apipony/application/_response.html.erb | <div class="response">
<h4>Response: <%= response.data.status %></h4>
<% if response.data? %>
<div class="response-example">
<%# This is kind of fancy for no reason but whatever %>
<% if response.data.headers %>
<div class="title">Headers</div>
<pre class="code hljs json"><%= JSON.pr... | <div class="response">
<h4>Response: <%= response.data.status %></h4>
<% if response.data? %>
<div class="response-example">
<%# This is kind of fancy for no reason but whatever %>
<% if response.data.headers %>
<div class="panel">
<div class="title">Headers</div>
<pre cl... | Fix headers panel for response view | Fix headers panel for response view
| HTML+ERB | mit | droptheplot/apipony,droptheplot/apipony,droptheplot/apipony | html+erb | ## Code Before:
<div class="response">
<h4>Response: <%= response.data.status %></h4>
<% if response.data? %>
<div class="response-example">
<%# This is kind of fancy for no reason but whatever %>
<% if response.data.headers %>
<div class="title">Headers</div>
<pre class="code hljs j... |
85f386778683abb8525e5b1422b1084b7445ffc8 | .travis.yml | .travis.yml | language: python
python:
- "3.4"
script:
- python setup.py -q install
- python tests.py
| language: python
python:
- "2.7"
- "3.4"
script:
- python setup.py -q install
- python tests.py
| Add Python 2.7 testing to Travis | Add Python 2.7 testing to Travis
| YAML | mit | jbrudvik/yahooscraper | yaml | ## Code Before:
language: python
python:
- "3.4"
script:
- python setup.py -q install
- python tests.py
## Instruction:
Add Python 2.7 testing to Travis
## Code After:
language: python
python:
- "2.7"
- "3.4"
script:
- python setup.py -q install
- python tests.py
|
6a1dc8bc8ed9a731a96c3985eb98868ebb7b802c | README.md | README.md |
Adjust p-values for multiple comparisons. Given a set of
p-values, returns p-values adjusted using one of several methods. This
is an implementation of the `p.adjust` R function, the documentation of
which can be found at http://www.inside-r.org/r-doc/stats/p.adjust.
### Usage
```matlab
pc = pval_adjust([0.1 0.3 0.0... |
MATLAB/Octave function for adjusting p-values for multiple comparisons.
Given a set of p-values, returns p-values adjusted using one of several
methods. This is an implementation of the `p.adjust` R function, the
documentation of which can be found at
http://www.inside-r.org/r-doc/stats/p.adjust.
### Usage
```matlab... | Clarify this is a MATLAB/Octave function | Clarify this is a MATLAB/Octave function
| Markdown | mit | fakenmc/pval_adjust,fakenmc/pval_adjust | markdown | ## Code Before:
Adjust p-values for multiple comparisons. Given a set of
p-values, returns p-values adjusted using one of several methods. This
is an implementation of the `p.adjust` R function, the documentation of
which can be found at http://www.inside-r.org/r-doc/stats/p.adjust.
### Usage
```matlab
pc = pval_adj... |
83694c255a7cd5f67b2550800870cbb7a1a2f997 | meta-oe/recipes-graphics/numlockx/numlockx_1.2.bb | meta-oe/recipes-graphics/numlockx/numlockx_1.2.bb | SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"
SRC_URI = "http://home.kde.org/~seli/numlockx/numlockx-${PV}.tar.gz"
SRC_URI[md... | SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"
SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/numlockx/numlockx-${PV}.tar.g... | Update SRC_URI to somewhere fetchable | numlockx: Update SRC_URI to somewhere fetchable
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
| BitBake | mit | lgirdk/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,rofehr/meta-openembedded,amery/meta-openembedded,RedFIR/meta-openembedded,openembedded/meta-openembedded,moto-timo/meta-openembedded,RedFIR/meta-openembedded,victronenergy/meta-openembedded,lixinfnst/meta-openembedded,sigma-embedded/elito-org.openem... | bitbake | ## Code Before:
SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"
SRC_URI = "http://home.kde.org/~seli/numlockx/numlockx-${PV}.tar... |
8364cc601b9be02ad09b42c65381b59a0127e2e0 | packages/gpe-contacts/gpe-contacts-hildon_0.40.bb | packages/gpe-contacts/gpe-contacts-hildon_0.40.bb | include gpe-contacts.inc
PR="r1"
SRC_URI = "${GPE_MIRROR}/gpe-contacts-${PV}.tar.bz2"
DEPENDS += "gtk+-2.6.4-1.osso7 libgpepimc-hildon libosso hildon-lgpl"
EXTRA_OECONF += "--enable-hildon"
S = "${WORKDIR}/gpe-contacts-${PV}"
| include gpe-contacts.inc
PR="r2"
SRC_URI = "${GPE_MIRROR}/gpe-contacts-${PV}.tar.bz2"
DEPENDS += "gtk+-2.6.4-1.osso7 libgpepimc-hildon libosso hildon-lgpl"
RDEPENDS = ""
EXTRA_OECONF += "--enable-hildon"
S = "${WORKDIR}/gpe-contacts-${PV}"
| Change RDEPENDS to make sure gpe-contacts-hildon doesn't pull in gpe-icons. | Change RDEPENDS to make sure gpe-contacts-hildon doesn't pull in gpe-icons.
| BitBake | mit | JrCs/opendreambox,bticino/openembedded,scottellis/overo-oe,mrchapp/arago-oe-dev,xifengchuo/openembedded,thebohemian/openembedded,JamesAng/oe,demsey/openenigma2,nvl1109/openembeded,libo/openembedded,philb/pbcl-oe-2010,demsey/openembedded,philb/pbcl-oe-2010,bticino/openembedded,xifengchuo/openembedded,hulifox008/openembe... | bitbake | ## Code Before:
include gpe-contacts.inc
PR="r1"
SRC_URI = "${GPE_MIRROR}/gpe-contacts-${PV}.tar.bz2"
DEPENDS += "gtk+-2.6.4-1.osso7 libgpepimc-hildon libosso hildon-lgpl"
EXTRA_OECONF += "--enable-hildon"
S = "${WORKDIR}/gpe-contacts-${PV}"
## Instruction:
Change RDEPENDS to make sure gpe-contacts-hildon doesn't... |
cd06758180014e5be0b17d9a03537f3f43228e04 | modules/dreamview/conf/vehicle_data.pb.txt | modules/dreamview/conf/vehicle_data.pb.txt | data_files {
source_path: "vehicle_param.pb.txt"
dest_path: "modules/common/data/mkz_config.pb.txt"
}
data_files {
source_path: "calibration_table.pb.txt"
dest_path: "modules/control/conf/lincoln.pb.txt"
}
data_files {
source_path: "start_velodyne.launch"
dest_path: "<ros>/share/velodyne/launch/start_velody... | data_files {
source_path: "vehicle_param.pb.txt"
dest_path: "modules/common/data/mkz_config.pb.txt"
}
data_files {
source_path: "calibration_table.pb.txt"
dest_path: "modules/control/conf/lincoln.pb.txt"
}
data_files {
source_path: "start_velodyne.launch"
dest_path: "<ros>/share/velodyne/launch/start_velody... | Update radar params when switching vehicle. | Dreamview: Update radar params when switching vehicle.
| Text | apache-2.0 | msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo | text | ## Code Before:
data_files {
source_path: "vehicle_param.pb.txt"
dest_path: "modules/common/data/mkz_config.pb.txt"
}
data_files {
source_path: "calibration_table.pb.txt"
dest_path: "modules/control/conf/lincoln.pb.txt"
}
data_files {
source_path: "start_velodyne.launch"
dest_path: "<ros>/share/velodyne/lau... |
345b5b66e6c431a40c930e081fef44b15743dacf | pawconfig.json | pawconfig.json |
{
"port": "3003",
"host": "0.0.0.0",
"appRootUrl": "/",
"serviceWorker": false,
"serverSideRender": true
}
|
{
"port": "3003",
"host": "0.0.0.0",
"appRootUrl": "/",
"serviceWorker": false,
"serverSideRender": true,
"singlePageApplication": false
}
| Add config variable for singlePageApplication | Add config variable for singlePageApplication
| JSON | mit | Atyantik/react-pwa,Atyantik/react-pwa | json | ## Code Before:
{
"port": "3003",
"host": "0.0.0.0",
"appRootUrl": "/",
"serviceWorker": false,
"serverSideRender": true
}
## Instruction:
Add config variable for singlePageApplication
## Code After:
{
"port": "3003",
"host": "0.0.0.0",
"appRootUrl": "/",
"serviceWorker": false,
"serverSideRende... |
01847fee7faefbe50f9f7d77198f9dd0ace6c861 | src/test/java/com/skraylabs/poker/ApplicationTest.java | src/test/java/com/skraylabs/poker/ApplicationTest.java | package com.skraylabs.poker;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintSt... | package com.skraylabs.poker;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintSt... | Add some javadoc to test fixture code. | Add some javadoc to test fixture code.
To make checkstyle happy.
| Java | mit | AbeSkray/poker-calculator | java | ## Code Before:
package com.skraylabs.poker;
import static org.hamcrest.CoreMatchers.allOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import... |
9fe654696ee656e31dfd46dd39dc1bb50867e341 | spec/support/helper.rb | spec/support/helper.rb |
module SpecHelper
def mock_model(*attributes)
Class.new {
include Equalizer.new(*attributes)
attributes.each { |attribute| attr_accessor attribute }
def initialize(attrs = {}, &block)
attrs.each { |name, value| send("#{name}=", value) }
instance_eval(&block) if block
en... |
module SpecHelper
def mock_model(*attributes, &block)
model = Class.new {
include Equalizer.new(*attributes)
const_set(:ATTRIBUTES, attributes)
attributes.each { |name| attr_accessor name }
def initialize(attrs = {}, &block)
attrs.each { |name, value| send("#{name}=", value) }... | Add support for immutable objects to session | Add support for immutable objects to session
| Ruby | mit | rom-rb/rom-support | ruby | ## Code Before:
module SpecHelper
def mock_model(*attributes)
Class.new {
include Equalizer.new(*attributes)
attributes.each { |attribute| attr_accessor attribute }
def initialize(attrs = {}, &block)
attrs.each { |name, value| send("#{name}=", value) }
instance_eval(&block) i... |
8057d9baf9e8141949981e44c9a17ca6a58d5939 | doc/gitlab-prometheus/prometheus.md | doc/gitlab-prometheus/prometheus.md |
To enable Prometheus in your GitLab installation, in `/etc/gitlab/gitlab.rb`
uncomment and edit the following line:
```
prometheus['enable'] = true
```
After saving the changes, run `sudo gitlab-ctl reconfigure`.
|
[Prometheus](https://prometheus.io) is a powerful time-series monitoring service, whose data can be used to easily create dashboards with tools like Grafana or provide alerts.
To enable Prometheus in your GitLab installation, in `/etc/gitlab/gitlab.rb`
uncomment and edit the following line:
```
prometheus['enable'] ... | Update Prometheus and associated documentation to provide additional detail. | Update Prometheus and associated documentation to provide additional detail. | Markdown | apache-2.0 | gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab | markdown | ## Code Before:
To enable Prometheus in your GitLab installation, in `/etc/gitlab/gitlab.rb`
uncomment and edit the following line:
```
prometheus['enable'] = true
```
After saving the changes, run `sudo gitlab-ctl reconfigure`.
## Instruction:
Update Prometheus and associated documentation to provide additional det... |
75486c41bd648e63f1baf118000300cb7dee164b | ovirt-guest-agent/setup.py | ovirt-guest-agent/setup.py |
from distutils.core import setup
from glob import glob
import os
import sys
import py2exe
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-b 1")
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
self.version = "1.0.16"
self.company_name = "Red Ha... |
from distutils.core import setup
from glob import glob
import os
import sys
import py2exe
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-b 1")
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
self.version = "1.0.16"
self.package_version = "1.0... | Add explicit package version to the oVirt GA executable | Add explicit package version to the oVirt GA executable
We really need to track 2 different versions in case of oVirt GA:
- the version of the oVirt GA package itself
- RH(E)V specific version of the oVirt GA package
This patch adds setting of the package_version.
Change-Id: I2dea656facbf2aa33a733316136e0e4d1b8d4744... | Python | apache-2.0 | oVirt/ovirt-guest-agent,oVirt/ovirt-guest-agent,oVirt/ovirt-guest-agent,oVirt/ovirt-guest-agent | python | ## Code Before:
from distutils.core import setup
from glob import glob
import os
import sys
import py2exe
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-b 1")
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
self.version = "1.0.16"
self.compan... |
2cb349cdb98caf2416e7f8133ae2912f81da6d9a | radar/fixtures/forms/diabetic-complications.json | radar/fixtures/forms/diabetic-complications.json | {
"multiple": false,
"fields": [
{
"name": "retinopathy",
"type": "int",
"label": "Retinopathy",
"options": [
{"value": 0, "label": "No"},
{"value": 1, "label": "Background Retinopathy"},
{"value": 2, "label": "Proliferative Retinopathy"}
]
},
... | {
"multiple": false,
"fields": [
{
"name": "retinopathy",
"type": "int",
"label": "Retinopathy",
"options": [
{"value": 0, "label": "No"},
{"value": 1, "label": "Background Retinopathy"},
{"value": 2, "label": "Proliferative Retinopathy"}
]
},
... | Add treated by laser field | Add treated by laser field
| JSON | agpl-3.0 | renalreg/radar,renalreg/radar,renalreg/radar,renalreg/radar | json | ## Code Before:
{
"multiple": false,
"fields": [
{
"name": "retinopathy",
"type": "int",
"label": "Retinopathy",
"options": [
{"value": 0, "label": "No"},
{"value": 1, "label": "Background Retinopathy"},
{"value": 2, "label": "Proliferative Retinopathy"}
... |
50268ac8761729889382c28772927209300d7c18 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | require "slimmer/headers"
class ApplicationController < ActionController::Base
include Slimmer::Headers
before_filter :set_analytics_headers
rescue_from GdsApi::TimedOutException, :with => :error_503
protected
def error_404; error(404); end
def error_503(e = nil); error(503, e); end
def error(status_co... | require "slimmer/headers"
class ApplicationController < ActionController::Base
include Slimmer::Headers
before_filter :set_analytics_headers
rescue_from GdsApi::TimedOutException, :with => :error_503
protected
def error_404; error(404); end
def error_503(e = nil); error(503, e); end
def error(status_co... | Call notify_airbrake from controller error method | Call notify_airbrake from controller error method
| Ruby | mit | tadast/smart-answers,aledelcueto/smart-answers,alphagov/smart-answers,aledelcueto/smart-answers,askl56/smart-answers,stwalsh/smart-answers,stwalsh/smart-answers,ministryofjustice/smart-answers,tadast/smart-answers,aledelcueto/smart-answers,alphagov/smart-answers,tadast/smart-answers,alphagov/smart-answers,stwalsh/smart... | ruby | ## Code Before:
require "slimmer/headers"
class ApplicationController < ActionController::Base
include Slimmer::Headers
before_filter :set_analytics_headers
rescue_from GdsApi::TimedOutException, :with => :error_503
protected
def error_404; error(404); end
def error_503(e = nil); error(503, e); end
def... |
11c2a6c266b4c71749c0287b354491522760ff5e | compiler_source/6_actions_perl/template-runtime-code-standard-for-operand-count-variable.txt | compiler_source/6_actions_perl/template-runtime-code-standard-for-operand-count-variable.txt |
template-runtime-code-for-every-action-begin
$global_concatenated_all_operands = runtime-code-for-concatenated-all-operands ; <new_line>
&function__ no-space action-name-with-underscores no-space ( ) ; <new_line>
runtime-code-storage-item-result = $global_action_result ; <new_line>
template-runtime-code-for-every... |
template-runtime-code-for-every-action-begin
$global_source_text = runtime-code-for-concatenated-all-operands ; <new_line>
&function__ no-space action-name-with-underscores no-space ( ) ; <new_line>
runtime-code-storage-item-result = $global_action_result ; <new_line>
template-runtime-code-for-every-action-end
| Change this template to use "global_source_text" instead of "concatenated_all_operands" | Change this template to use "global_source_text" instead of "concatenated_all_operands"
| Text | artistic-2.0 | cpsolver/Dashrep-language,cpsolver/Dashrep-language,cpsolver/Dashrep-language | text | ## Code Before:
template-runtime-code-for-every-action-begin
$global_concatenated_all_operands = runtime-code-for-concatenated-all-operands ; <new_line>
&function__ no-space action-name-with-underscores no-space ( ) ; <new_line>
runtime-code-storage-item-result = $global_action_result ; <new_line>
template-runtim... |
f3f7ee4d8217c64e25732e652f5260fb4ad38dad | test/src/sass/app.scss | test/src/sass/app.scss | // Base
//@import "helpers/wordpress";
//@import "helpers/breakpoint";
// Fonts
//@import 'fonts/icon-custom';
// Colors
@import "base/colors";
// Sprites
//@import 'helpers/icon-icon';
//@include retina-sprites($icon-icon-retina);
html {
//critical: this;
font-size: 62.5%;
}
body {
//critical: this;
backg... | // Base
//@import "helpers/wordpress";
//@import "helpers/breakpoint";
// Fonts
//@import 'fonts/icon-custom';
// Colors
@import "base/colors";
// Sprites
//@import 'helpers/icon-icon';
//@include retina-sprites($icon-icon-retina);
html {
//critical: this;
font-size: 62.5%;
}
html {
font-weight: normal;
}
b... | Test if rules were merged | Test if rules were merged
| SCSS | mit | cyrale/gulpfile.js,cyrale/gulpfile.js | scss | ## Code Before:
// Base
//@import "helpers/wordpress";
//@import "helpers/breakpoint";
// Fonts
//@import 'fonts/icon-custom';
// Colors
@import "base/colors";
// Sprites
//@import 'helpers/icon-icon';
//@include retina-sprites($icon-icon-retina);
html {
//critical: this;
font-size: 62.5%;
}
body {
//critica... |
29409a5abac1ea19afc9b0cdda3061216047ffeb | d02/d02s05/d02s05e02-real-database/src/main/java/net/safedata/springboot/training/d02/s05/config/DataSourceConfig.java | d02/d02s05/d02s05e02-real-database/src/main/java/net/safedata/springboot/training/d02/s05/config/DataSourceConfig.java | package net.safedata.springboot.training.d02.s05.config;
import net.safedata.springboot.training.d02.s05.model.Product;
import net.safedata.springboot.training.d02.s05.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
imp... | package net.safedata.springboot.training.d02.s05.config;
import net.safedata.springboot.training.d02.s05.model.Product;
import net.safedata.springboot.training.d02.s05.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
imp... | Insert several products in the database | [improve] Insert several products in the database
| Java | apache-2.0 | bogdansolga/spring-boot-training,bogdansolga/spring-boot-training | java | ## Code Before:
package net.safedata.springboot.training.d02.s05.config;
import net.safedata.springboot.training.d02.s05.model.Product;
import net.safedata.springboot.training.d02.s05.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Co... |
09b6ef7fccbb41da4592dbf8c81a9ca1434af111 | src/views/copy_moves_modal.js | src/views/copy_moves_modal.js | var html = require('choo/html')
var picoModal = require('picomodal')
var _ = require('../util')
module.exports = function (props, emit) {
var moves = _.chunksOf(2, props.game.game.moveHistory)
.map(function (move, idx) {
return (idx + 1) + '. ' + move[0].algebraic + (move[1] ? (' ' + move[1].algebraic) : '... | var html = require('choo/html')
var picoModal = require('picomodal')
var _ = require('../util')
module.exports = function (props, emit) {
var moves = _.chunksOf(2, props.game.game.moveHistory)
.map(function (move, idx) {
return (idx + 1) + '. ' + move[0].algebraic + (move[1] ? (' ' + move[1].algebraic) : '... | Fix textarea / label association | Fix textarea / label association
| JavaScript | mit | jimf/bobby,jimf/bobby | javascript | ## Code Before:
var html = require('choo/html')
var picoModal = require('picomodal')
var _ = require('../util')
module.exports = function (props, emit) {
var moves = _.chunksOf(2, props.game.game.moveHistory)
.map(function (move, idx) {
return (idx + 1) + '. ' + move[0].algebraic + (move[1] ? (' ' + move[1... |
9021254f594403791055d342a103bd05e4fdaddb | src/Phansible/Resources/ansible/roles/server/tasks/main.yml | src/Phansible/Resources/ansible/roles/server/tasks/main.yml | ---
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install System Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items:
- curl
- wget
- python-software-properties
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: server.packages
w... | ---
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install System Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items:
- curl
- wget
- python-software-properties
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: server.packages
w... | Add a default language of en_US.UTF-8 | Add a default language of en_US.UTF-8 | YAML | mit | hugeinc/phansible,renatomefidf/phansible,renatomefidf/phansible,manchuck/phansible,manchuck/phansible,phansible/phansible,InFog/phansible,hugeinc/phansible,fabiorphp/phansible,yfix/phansible,timani/phansible,naxhh/phansible,kozie/phansible,skug/phansible,yfix/phansible,lazy404/phansible,fabiorphp/phansible,kozie/phansi... | yaml | ## Code Before:
---
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install System Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items:
- curl
- wget
- python-software-properties
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: ser... |
58d804a1ca996efe76e725d0a7e50ebd4d00b451 | packages/cr/crdt-event-fold.yaml | packages/cr/crdt-event-fold.yaml | homepage: https://github.com/owensmurray/crdt-event-fold
changelog-type: ''
hash: 2e7d5bf242b3088868acd5408eb0c58cf69a27355b4ab380a7df0651370aa733
test-bench-deps: {}
maintainer: rick@owensmurray.com
synopsis: Garbage collected event folding CRDT.
changelog: ''
basic-deps:
data-dword: '>=0.3.2 && <0.4'
base: '>=4.1... | homepage: https://github.com/owensmurray/crdt-event-fold
changelog-type: ''
hash: 1a65913f05463234823f97ec872ef7db29c88737190403affaaf79c5e554d9d7
test-bench-deps:
crdt-event-fold: -any
base: -any
hspec: -any
maintainer: rick@owensmurray.com
synopsis: Garbage collected event folding CRDT.
changelog: ''
basic-deps... | Update from Hackage at 2020-11-03T03:44:45Z | Update from Hackage at 2020-11-03T03:44:45Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/owensmurray/crdt-event-fold
changelog-type: ''
hash: 2e7d5bf242b3088868acd5408eb0c58cf69a27355b4ab380a7df0651370aa733
test-bench-deps: {}
maintainer: rick@owensmurray.com
synopsis: Garbage collected event folding CRDT.
changelog: ''
basic-deps:
data-dword: '>=0.3.2 && <0.4... |
aac1f7e2f37a81290f2e9f44bafc6fe86fcfbf07 | html-templates/subtemplates/contentBlocks.tpl | html-templates/subtemplates/contentBlocks.tpl | {template contentBlock Content contentClass=null extraClass=null accountLevelEdit=Staff}
{$handle = tif(is_string($Content) ? $Content : $Content->Handle)}
{$Content = tif(is_string($Content) ? Emergence\CMS\ContentBlock::getByHandle($Content) : $Content)}
{$renderer = default($Content->Renderer, Emergence\... | {template contentBlock Content contentClass=null extraClass=null}
{$handle = tif(is_string($Content) ? $Content : $Content->Handle)}
{$Content = tif(is_string($Content) ? Emergence\CMS\ContentBlock::getByHandle($Content) : $Content)}
{$renderer = default($Content->Renderer, Emergence\CMS\ContentBlock::getFi... | Use request handler configuration to test content block write access | Use request handler configuration to test content block write access
| Smarty | mit | JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton | smarty | ## Code Before:
{template contentBlock Content contentClass=null extraClass=null accountLevelEdit=Staff}
{$handle = tif(is_string($Content) ? $Content : $Content->Handle)}
{$Content = tif(is_string($Content) ? Emergence\CMS\ContentBlock::getByHandle($Content) : $Content)}
{$renderer = default($Content->Rend... |
811032ba6bd4406435f7bad80ae93a1c266cda5f | src/macros/export_all_files.jl | src/macros/export_all_files.jl | macro export_all_files(cur_item)
all_files = get_all_files(eval(cur_item))
cur_expression = quote end
for file in all_files
cur_export = split(file, "/")[end]
!endswith(cur_export, ".jl") && continue
cur_export = replace(cur_export, ".jl", "")
exported_object = Symbol(cur_export)
cur_bloc... | macro export_all_files(cur_item)
all_files = get_all_files(eval(cur_item))
cur_expression = quote end
for file in all_files
cur_export = split(file, "/")[end]
!endswith(cur_export, ".jl") && continue
cur_export = replace(cur_export, ".jl", "")
exported_object = Symbol(cur_export)
for adde... | Allow functions with bangs to be loaded | Allow functions with bangs to be loaded | Julia | mit | djsegal/julz,djsegal/julz | julia | ## Code Before:
macro export_all_files(cur_item)
all_files = get_all_files(eval(cur_item))
cur_expression = quote end
for file in all_files
cur_export = split(file, "/")[end]
!endswith(cur_export, ".jl") && continue
cur_export = replace(cur_export, ".jl", "")
exported_object = Symbol(cur_expor... |
99cd28ab751e1d0037682306be1d1eb20134b692 | .travis.yml | .travis.yml | after_script:
- rake yard | tee yard.out
- grep --silent '100.00% documented' yard.out
before_script:
- cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
- rake db:setup
language: ruby
rvm:
- '1.9.3'
- 'jruby-19mode'
| before_script:
- cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
- rake db:setup
language: ruby
rvm:
- '1.9.3'
- 'jruby-19mode'
script:
- bundle exec rake
- bundle exec rake yard | tee yard.out
- grep --silent '100.00% documented' yard.out
| Move yard check to script | Move yard check to script
[#50752269]
Placing the yard check in the after_script: section did not cause the
build to fail.
| YAML | bsd-3-clause | rapid7/metasploit-model,farias-r7/metasploit_data_models,farias-r7/metasploit_data_models,rapid7/metasploit_data_models,rapid7/metasploit_data_models,rapid7/metasploit-model,bcook-r7/metasploit_data_models,farias-r7/metasploit_data_models,rapid7/metasploit-model,rapid7/metasploit-cache,rapid7/metasploit_data_models,bco... | yaml | ## Code Before:
after_script:
- rake yard | tee yard.out
- grep --silent '100.00% documented' yard.out
before_script:
- cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
- rake db:setup
language: ruby
rvm:
- '1.9.3'
- 'jruby-19mode'
## Instruction:
Move yard check to script
[#5075226... |
a58385247d06b238296e35c17c9e3f58b3234094 | app/controllers/notes_controller.rb | app/controllers/notes_controller.rb | class NotesController < ProjectResourceController
# Authorize
before_filter :authorize_read_note!
before_filter :authorize_write_note!, only: [:create]
respond_to :js
def index
notes
if params[:target_type] == "merge_request"
@mixed_targets = true
@main_target_type = params[:target_type]... | class NotesController < ProjectResourceController
# Authorize
before_filter :authorize_read_note!
before_filter :authorize_write_note!, only: [:create]
respond_to :js
def index
@notes = Notes::LoadContext.new(project, current_user, params).execute
if params[:target_type] == "merge_request"
@m... | Add discussions for merge requests to notes controller | Add discussions for merge requests to notes controller
| Ruby | mit | mente/gitlabhq,icedwater/gitlabhq,jvanbaarsen/gitlabhq,dyon/gitlab,chrrrles/nodeflab,vjustov/gitlabhq,akumetsuv/gitlab,zrbsprite/gitlabhq,szechyjs/gitlabhq,xuvw/gitlabhq,stellamiranda/mobbr-gitlabhq,fscherwi/gitlabhq,sekcheong/gitlabhq,aaronsnyder/gitlabhq,hzy001/gitlabhq,salipro4ever/gitlabhq,julianengel/gitlabhq,jvan... | ruby | ## Code Before:
class NotesController < ProjectResourceController
# Authorize
before_filter :authorize_read_note!
before_filter :authorize_write_note!, only: [:create]
respond_to :js
def index
notes
if params[:target_type] == "merge_request"
@mixed_targets = true
@main_target_type = para... |
d39c069b7c7b785d8c8d74b99e106f0ee772a2e1 | README.md | README.md |
Plays mp3s from a directory. An example app using Vedeu.
## Requirements
- Portaudio >= 19
- Mpg123 >= 1.14
### OSX Installation
brew install portaudio
brew install mpg123
gem install playa
### Debian / Ubuntu Install
apt-get install libjack0 libjack-dev
apt-get install libportaudiocpp0 por... | [](https://codeclimate.com/github/gavinlaking/playa)
[](https://travis-ci.org/gavinlaking/playa)
# Playa
Plays mp3s from a directory using Ruby. An example app using Vedeu.
... | Add Code Climate and Travis badges. | Add Code Climate and Travis badges.
| Markdown | mit | gavinlaking/playa | markdown | ## Code Before:
Plays mp3s from a directory. An example app using Vedeu.
## Requirements
- Portaudio >= 19
- Mpg123 >= 1.14
### OSX Installation
brew install portaudio
brew install mpg123
gem install playa
### Debian / Ubuntu Install
apt-get install libjack0 libjack-dev
apt-get install libp... |
a4e5dad36c7d87cc6a7b1482440ee5a69734f535 | lib/assets/javascripts/new-dashboard/store/notifications/index.js | lib/assets/javascripts/new-dashboard/store/notifications/index.js | const notifications = {
namespaced: true,
state: {
isFetching: false,
isErrored: false,
error: [],
notifications: []
},
computed: {},
getters: {},
mutations: {
setNotifications (state, notifications) {
state.notifications = notifications;
state.isFetching = false;
stat... | const notifications = {
namespaced: true,
state: {
isFetching: false,
isErrored: false,
error: [],
notifications: []
},
computed: {},
getters: {},
mutations: {
setNotifications (state, notifications) {
state.notifications = notifications;
state.isFetching = false;
stat... | Declare now as a string | refactor: Declare now as a string
| JavaScript | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb | javascript | ## Code Before:
const notifications = {
namespaced: true,
state: {
isFetching: false,
isErrored: false,
error: [],
notifications: []
},
computed: {},
getters: {},
mutations: {
setNotifications (state, notifications) {
state.notifications = notifications;
state.isFetching = f... |
80c01ea2149ba3c9f05cf73fed1b108d8ac426ea | lib/portable_bridge_notation/internals/single_char_comparison_constants.rb | lib/portable_bridge_notation/internals/single_char_comparison_constants.rb | module PortableBridgeNotation
module Internals
module SingleCharComparisonConstants
def whitespace_allowed_in_games
/[ \t\v\r\n]/
end
def non_whitespace
/[^ \t\v\r\n]/
end
# represents printable ASCII characters except: %;[]{}
# note that " (\x22) *can* start ... | module PortableBridgeNotation
module Internals
module SingleCharComparisonConstants
def whitespace_allowed_in_games
/[ \t\v\r\n]/
end
def non_whitespace
/[^ \t\v\r\n]/
end
def allowed_in_names
/[A-Za-z0-9_]/
end
def continuing_nonstring_supp_sec... | Delete pattern now noticed unused from coverage charts. | Delete pattern now noticed unused from coverage charts.
| Ruby | mit | timheilman/bridge-pbn | ruby | ## Code Before:
module PortableBridgeNotation
module Internals
module SingleCharComparisonConstants
def whitespace_allowed_in_games
/[ \t\v\r\n]/
end
def non_whitespace
/[^ \t\v\r\n]/
end
# represents printable ASCII characters except: %;[]{}
# note that " (\x... |
da5a05c27f1c19c69ce23f5cd6cd0f09edb9d7f7 | paranuara_api/views.py | paranuara_api/views.py | from rest_framework import viewsets
from paranuara_api.models import Company, Person
from paranuara_api.serializers import (
CompanySerializer, CompanyListSerializer, PersonListSerializer,
PersonSerializer
)
class CompanyViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Company.objects.all()
... | from rest_framework import viewsets
from paranuara_api.models import Company, Person
from paranuara_api.serializers import (
CompanySerializer, CompanyListSerializer, PersonListSerializer,
PersonSerializer
)
class MultiSerializerMixin(object):
def get_serializer_class(self):
return self.s... | Refactor common serializer selection code. | Refactor common serializer selection code.
| Python | bsd-3-clause | jarvis-cochrane/paranuara | python | ## Code Before:
from rest_framework import viewsets
from paranuara_api.models import Company, Person
from paranuara_api.serializers import (
CompanySerializer, CompanyListSerializer, PersonListSerializer,
PersonSerializer
)
class CompanyViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Company.ob... |
f7903880f28c484d610c53d5f9140bc4e5ac3a38 | notes/pandoc.md | notes/pandoc.md |
pandoc -s spec/fixtures/inline_math.tex --mathjax -o tmp/inline_math.html
### Math environments
pandoc -s spec/fixtures/math_environments --mathjax -o tmp/math_environments.html
Pandoc handles equation environments wrong; it converts
\begin{equation}
\varphi^2 = \varphi + 1.
\end{equation}
into... |
pandoc -s spec/fixtures/inline_math.tex --mathjax -o tmp/inline_math.html
### Math environments
pandoc -s spec/fixtures/math_environments --mathjax -o tmp/math_environments.html
Pandoc handles equation environments wrong; it converts
\begin{equation}
\varphi^2 = \varphi + 1.
\end{equation}
into... | Remove implication that we're going to use Pandoc | Remove implication that we're going to use Pandoc
| Markdown | mit | minireference/polytexnic,softcover/polytexnic,softcover/polytexnic,minireference/polytexnic | markdown | ## Code Before:
pandoc -s spec/fixtures/inline_math.tex --mathjax -o tmp/inline_math.html
### Math environments
pandoc -s spec/fixtures/math_environments --mathjax -o tmp/math_environments.html
Pandoc handles equation environments wrong; it converts
\begin{equation}
\varphi^2 = \varphi + 1.
\end... |
6d4ddb6de5ff4ae063106c19bd314bd69f23a487 | pubspec.yaml | pubspec.yaml | name: dynamic_object
version: 1.0.2
author: Dj Gilcrease <digitalxero@gmail.com>
description: Simple Dynamic object that you can add class properties or methods to
homepage: https://github.com/Digitalxero/dart-dynamic_object
documentation: https://github.com/Digitalxero/dart-dynamic_object
dev_dependencies:
unittest:... | name: dynamic_object
version: 1.0.4
author: Dj Gilcrease <digitalxero@gmail.com>
description: Simple Dynamic object that you can add class properties or methods to
homepage: https://github.com/Digitalxero/dart-dynamic_object
documentation: https://github.com/Digitalxero/dart-dynamic_object
environment:
sdk: '>=1.0.0 ... | Update for the 1.0 SDK | Update for the 1.0 SDK
| YAML | mit | Digitalxero/dart-dynamic_object | yaml | ## Code Before:
name: dynamic_object
version: 1.0.2
author: Dj Gilcrease <digitalxero@gmail.com>
description: Simple Dynamic object that you can add class properties or methods to
homepage: https://github.com/Digitalxero/dart-dynamic_object
documentation: https://github.com/Digitalxero/dart-dynamic_object
dev_dependenc... |
b36d4ec27ffd7f53e55b0c9e888c77eec6497614 | lib/rumoji.rb | lib/rumoji.rb | require "rumoji/version"
require "rumoji/emoji"
require 'stringio'
module Rumoji
extend self
def encode(str)
remapped_codepoints = str.codepoints.flat_map do |codepoint|
emoji = Emoji.find_by_codepoint(codepoint)
emoji ? ":#{emoji.code}:".codepoints.entries : codepoint
end
remapped_codepoi... | require "rumoji/version"
require "rumoji/emoji"
require 'stringio'
module Rumoji
extend self
def encode(str)
remapped_codepoints = str.codepoints.flat_map do |codepoint|
emoji = Emoji.find_by_codepoint(codepoint)
emoji ? ":#{emoji.code}:".codepoints.entries : codepoint
end
remapped_codepoi... | Make emoji code pattern more permissive (to allow for :+1:) | Make emoji code pattern more permissive (to allow for :+1:)
| Ruby | mit | stkn417/rumoji,amacou/rumoji,myhobnob/rumoji,mwunsch/rumoji | ruby | ## Code Before:
require "rumoji/version"
require "rumoji/emoji"
require 'stringio'
module Rumoji
extend self
def encode(str)
remapped_codepoints = str.codepoints.flat_map do |codepoint|
emoji = Emoji.find_by_codepoint(codepoint)
emoji ? ":#{emoji.code}:".codepoints.entries : codepoint
end
... |
3762d2190e72766551d963a7811ccb33e10abe5a | cli.js | cli.js |
'use strict'
var size = require('./')
var meow = require('meow')
var fail = require('cli-fail')
var prettyBytes = require('pretty-bytes')
var stdin = require('get-stdin')
var cli = meow({
help: [
'Usage',
' browserify-size <package|path>'
]
})
var name = cli.input[0]
if (name) {
init(name)
} else {
... |
'use strict'
var size = require('./')
var meow = require('meow')
var fail = require('cli-fail')
var prettyBytes = require('pretty-bytes')
var stdin = require('get-stdin')
var cli = meow({
help: [
'Usage',
' browserify-size <package|path>'
]
})
var name = cli.input[0]
if (name) {
init(name)
} else {
... | Trim input since stdin will have a trailing \n | Trim input since stdin will have a trailing \n
| JavaScript | mit | bendrucker/browserify-size | javascript | ## Code Before:
'use strict'
var size = require('./')
var meow = require('meow')
var fail = require('cli-fail')
var prettyBytes = require('pretty-bytes')
var stdin = require('get-stdin')
var cli = meow({
help: [
'Usage',
' browserify-size <package|path>'
]
})
var name = cli.input[0]
if (name) {
init... |
b81e215907aea439665fedba1c6a64f35e1916e7 | src/Services/Filesystem/AbsoluteLocal.php | src/Services/Filesystem/AbsoluteLocal.php | <?php
namespace Isaac\Services\Filesystem;
use League\Flysystem\Adapter\Local;
/**
* A fork of the Local adapter that grants us permissions to any absolute path
* instead of working with relative paths.
*/
class AbsoluteLocal extends Local
{
/**
* LooseLocal constructor.
*/
public function __con... | <?php
namespace Isaac\Services\Filesystem;
use League\Flysystem\Adapter\Local;
/**
* A fork of the Local adapter that grants us permissions to any absolute path
* instead of working with relative paths.
*/
class AbsoluteLocal extends Local
{
/**
* LooseLocal constructor.
*/
public function __con... | Fix path prefixing on unix | Fix path prefixing on unix
| PHP | mit | Anahkiasen/isaac-mod-manager | php | ## Code Before:
<?php
namespace Isaac\Services\Filesystem;
use League\Flysystem\Adapter\Local;
/**
* A fork of the Local adapter that grants us permissions to any absolute path
* instead of working with relative paths.
*/
class AbsoluteLocal extends Local
{
/**
* LooseLocal constructor.
*/
publi... |
8274a5f3e826b2bef69b64b6c56e8897cff30e55 | src/binary_digits.rs | src/binary_digits.rs | // Implements http://rosettacode.org/wiki/Binary_digits
use std::vec::Vec;
use std::string::String;
#[cfg(not(test))]
fn main() {
let bins=binaries(16u);
for s in bins.iter() {
println!("{}", s);
}
}
fn binaries(n:uint) -> Vec<String> {
let mut bins = Vec::<String>::with_capacity(n);
for i... | // Implements http://rosettacode.org/wiki/Binary_digits
use std::vec::Vec;
use std::string::String;
#[cfg(not(test))]
fn main() {
let bins=binaries(16u);
for s in bins.iter() {
println!("{}", s);
}
}
fn binaries(n:uint) -> Vec<String> {
range(0, n).map(|i| format!("{:t}", i)).collect()
}
#[te... | Make Binary Digits' solution more functional. | Make Binary Digits' solution more functional.
| Rust | unlicense | magum/rust-rosetta,pfalabella/rust-rosetta,crr0004/rust-rosetta,crespyl/rust-rosetta,magum/rust-rosetta,sakeven/rust-rosetta,ghotiphud/rust-rosetta,ZoomRmc/rust-rosetta,JIghtuse/rust-rosetta,Hoverbear/rust-rosetta | rust | ## Code Before:
// Implements http://rosettacode.org/wiki/Binary_digits
use std::vec::Vec;
use std::string::String;
#[cfg(not(test))]
fn main() {
let bins=binaries(16u);
for s in bins.iter() {
println!("{}", s);
}
}
fn binaries(n:uint) -> Vec<String> {
let mut bins = Vec::<String>::with_capaci... |
659321fafc7379f32f45f86eb4c366de884cce35 | tests/test_ping.py | tests/test_ping.py | from rohrpost.handlers import handle_ping
def test_ping(message):
handle_ping(message, request={'id': 123})
assert message.reply_channel.closed is False
assert len(message.reply_channel.data) == 1
data = message.reply_channel.data[-1]
assert data['id'] == 123
assert data['type'] == 'pong'
... | from rohrpost.handlers import handle_ping
def test_ping(message):
handle_ping(message, request={'id': 123})
assert message.reply_channel.closed is False
assert len(message.reply_channel.data) == 1
data = message.reply_channel.data[-1]
assert data['id'] == 123
assert data['type'] == 'pong'
... | Add a failing test that demonstrates wrong handling of data | [tests] Add a failing test that demonstrates wrong handling of data
The ping handler adds the data directly to the response_kwargs,
allowing internal kwargs to be overwritten.
`send_message()` and `build_message()` should not accept
`**additional_data`, but `additional_data: dict = None` instead.
| Python | mit | axsemantics/rohrpost,axsemantics/rohrpost | python | ## Code Before:
from rohrpost.handlers import handle_ping
def test_ping(message):
handle_ping(message, request={'id': 123})
assert message.reply_channel.closed is False
assert len(message.reply_channel.data) == 1
data = message.reply_channel.data[-1]
assert data['id'] == 123
assert data['type... |
d346345ed85b922b4c6e71f78ee48f857c73af2c | src/test/scala/glint/PartitioningSpec.scala | src/test/scala/glint/PartitioningSpec.scala | package glint
import glint.partitioning.UniformPartitioner
import org.scalatest.Matchers._
import org.scalatest.FlatSpec
/**
* Client test specification
*/
class PartitioningSpec extends FlatSpec {
"A UniformPartitioner" should " partition all its keys within its partition space" in {
val partitions = Set(... | package glint
import glint.partitioning.UniformPartitioner
import org.scalatest.Matchers._
import org.scalatest.FlatSpec
/**
* Partitioning test specification
*/
class PartitioningSpec extends FlatSpec {
"A UniformPartitioner" should " partition all its keys within its partition space" in {
val partitions ... | Fix comment for partitioning test specification | Fix comment for partitioning test specification
| Scala | mit | rjagerman/glint | scala | ## Code Before:
package glint
import glint.partitioning.UniformPartitioner
import org.scalatest.Matchers._
import org.scalatest.FlatSpec
/**
* Client test specification
*/
class PartitioningSpec extends FlatSpec {
"A UniformPartitioner" should " partition all its keys within its partition space" in {
val p... |
ce7fd41ec83045ffce9e9243393121b8eaf9d81c | .travis.yml | .travis.yml | language: dart
dart:
- stable
- dev
#services: mongodb
before_script:
- sleep 15
sudo: false
cache:
directories:
- $HOME/.pub-cache
script: pub run test
| language: dart
dart:
- stable
- dev
#services: mongodb
before_script:
- sleep 15
sudo: false
cache:
directories:
- $HOME/.pub-cache
script: pub run test --concurrency=1
| Remove test concurrency as a temporary work around | Remove test concurrency as a temporary work around
| YAML | mit | rajmaniar/mongo_dart,mongo-dart/mongo_dart,vadimtsushko/mongo_dart | yaml | ## Code Before:
language: dart
dart:
- stable
- dev
#services: mongodb
before_script:
- sleep 15
sudo: false
cache:
directories:
- $HOME/.pub-cache
script: pub run test
## Instruction:
Remove test concurrency as a temporary work around
## Code After:
language: dart
dart:
- stable
- dev
#services: mongod... |
2b18c5bc33dde5b8e976304ae31b2ec56f89641c | db/migrate/20171213050734_open_closed_discussion_count.rb | db/migrate/20171213050734_open_closed_discussion_count.rb | class OpenClosedDiscussionCount < ActiveRecord::Migration
def change
add_column :groups, :open_discussions_count, :integer, default: 0, null: false
add_column :groups, :closed_discussions_count, :integer, default: 0, null: false
add_column :discussions, :closed_at, :datetime
remove_column :discussions... | class OpenClosedDiscussionCount < ActiveRecord::Migration
def change
add_column :groups, :open_discussions_count, :integer, default: 0, null: false
add_column :groups, :closed_discussions_count, :integer, default: 0, null: false
rename_column :discussions, :archived_at, :closed_at
remove_column :discu... | Rename rather than drop/add closed_at | Rename rather than drop/add closed_at
| Ruby | agpl-3.0 | piratas-ar/loomio,piratas-ar/loomio,piratas-ar/loomio,loomio/loomio,loomio/loomio,loomio/loomio,loomio/loomio,piratas-ar/loomio | ruby | ## Code Before:
class OpenClosedDiscussionCount < ActiveRecord::Migration
def change
add_column :groups, :open_discussions_count, :integer, default: 0, null: false
add_column :groups, :closed_discussions_count, :integer, default: 0, null: false
add_column :discussions, :closed_at, :datetime
remove_col... |
6993c210154b56bee33b35018f556f18a9598241 | addon/services/bluetooth.js | addon/services/bluetooth.js | import Ember from 'ember';
export default Ember.Service.extend({
device: null,
server: null,
service: null,
characteristic: null,
isAvailable() {
return 'bluetooth' in navigator;
},
async connectDevice(options) {
let device = await navigator.bluetooth.requestDevice(options);
let server = aw... | import Ember from 'ember';
export default Ember.Service.extend({
device: null,
server: null,
service: null,
characteristic: null,
isAvailable() {
return 'bluetooth' in navigator;
},
async connectDevice(options) {
let device = await navigator.bluetooth.requestDevice(options);
let server = aw... | Return promise in service methods | Return promise in service methods
| JavaScript | mit | wyeworks/ember-bluetooth,wyeworks/ember-bluetooth | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Service.extend({
device: null,
server: null,
service: null,
characteristic: null,
isAvailable() {
return 'bluetooth' in navigator;
},
async connectDevice(options) {
let device = await navigator.bluetooth.requestDevice(options);
... |
32ebae2841712fda59ed2e085db54c7d8d52235a | CHANGELOG.md | CHANGELOG.md |
Version 0.2 (2016-07-18)
* fcntl: Implement joining adjacent lock regions which greatly reduces memory footprint.
* Implement dynamic memory allocation for internal data (currently limited to 2MB maximum).
* Add select() implementation that supports regular files.
* Add poll() emulation using select() including... |
Version 0.2.1 (2016-08-19)
* Don't prevent real close from be called after the close hook (also caused failed return values).
* Fix committed memory overgrowth under heavy load (caused ENOMEM in fcntl locks).
Version 0.2 (2016-07-18)
* fcntl: Implement joining adjacent lock regions which greatly reduces mem... | Update changelog for version 0.2.1. | Update changelog for version 0.2.1.
| Markdown | lgpl-2.1 | bitwiseworks/libcx,bitwiseworks/libcx | markdown | ## Code Before:
Version 0.2 (2016-07-18)
* fcntl: Implement joining adjacent lock regions which greatly reduces memory footprint.
* Implement dynamic memory allocation for internal data (currently limited to 2MB maximum).
* Add select() implementation that supports regular files.
* Add poll() emulation using select()... |
9b21b2904f7f6b71b991567bd362a1c9ff9ac14a | README.md | README.md |
insco is an installer for CLI developer tools, emacs, vim.
insco installs tools locally instead of system-wide.
## Usage
### Setup
insco installs tools to $HOME/bin. You need to append $HOME/bin to $PATH.
### Install tools
```shell
$ insco vim
```
You can specify a version (WIP).
```shell
$ insco vim 7.4
```
... |
insco is an installer for CLI developer tools, emacs, vim.
insco installs tools locally instead of system-wide.
## Usage
### Setup
insco installs tools to $HOME/bin. You need to append $HOME/bin to $PATH.
### Install tools
```shell
$ insco vim
```
You can specify a version (WIP).
```shell
$ insco vim 7.4
```
... | Add a travis ci badge | Add a travis ci badge
| Markdown | mit | tatsuyafw/insco | markdown | ## Code Before:
insco is an installer for CLI developer tools, emacs, vim.
insco installs tools locally instead of system-wide.
## Usage
### Setup
insco installs tools to $HOME/bin. You need to append $HOME/bin to $PATH.
### Install tools
```shell
$ insco vim
```
You can specify a version (WIP).
```shell
$ in... |
d337be351a5c6c6b606942e7cdf5cfbfa8cc8ba9 | README.md | README.md |
A simple listener for testing TCP connections. It's multithreaded, and can handle multiple connections at once.
## Latest Release
v1.0.0 [Download here](https://github.com/steveswinsburg/tcp-listener/releases/tag/1.0.0)
Once downloaded, see below on how to run and connect a client.
### Building
1. Clone this repo... |
A simple listener for testing TCP connections. It's multithreaded, and can handle multiple connections at once.
## Latest Release
v1.0.0 [Download here](https://github.com/steveswinsburg/tcp-listener/releases/download/1.0.0/tcplistener.jar)
Once downloaded, see below on how to run and connect a client.
### Buildin... | Update readme for the release | Update readme for the release | Markdown | apache-2.0 | steveswinsburg/tcp-listener | markdown | ## Code Before:
A simple listener for testing TCP connections. It's multithreaded, and can handle multiple connections at once.
## Latest Release
v1.0.0 [Download here](https://github.com/steveswinsburg/tcp-listener/releases/tag/1.0.0)
Once downloaded, see below on how to run and connect a client.
### Building
1.... |
0d98c7264a78894fbed253e8711bf0ba8c89ba0c | server.js | server.js | 'use strict';
const app = require('./app');
require('./api.js')(app);
require('./static.js')(app);
const PORT = process.env.PORT || 4000;
app.listen(PORT, () => {
console.log(`App listening on port ${PORT}!`);
});
| 'use strict';
const app = require('./app');
// remove the automatically added `X-Powered-By` header
app.disable('x-powered-by');
require('./api.js')(app);
require('./static.js')(app);
const PORT = process.env.PORT || 4000;
app.listen(PORT, () => {
console.log(`App listening on port ${PORT}!`);
});
| Remove the `X-Powered-By` header added by Express | Remove the `X-Powered-By` header added by Express
The `X-Powered-By` header provides no real benefit and also leaks
information about the design of the underlying system that may be
useful to attackers.
| JavaScript | mit | clembou/github-requests,clembou/github-requests,clembou/github-requests | javascript | ## Code Before:
'use strict';
const app = require('./app');
require('./api.js')(app);
require('./static.js')(app);
const PORT = process.env.PORT || 4000;
app.listen(PORT, () => {
console.log(`App listening on port ${PORT}!`);
});
## Instruction:
Remove the `X-Powered-By` header added by Express
The `X-Powered-By... |
d3d9ada34755353321155ff743e568d16fd2053d | config/initializers/carrierwave.rb | config/initializers/carrierwave.rb | CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['AWS_S3_KEY'],
:aws_secret_access_key => ENV['AWS_S3_SECRET'],
:region => ENV['AWS_S3_REGION']
} if ENV['AWS_S3_KEY']
config.fog_directory = ENV['AWS_S3_BUC... | CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['AWS_S3_KEY'],
:aws_secret_access_key => ENV['AWS_S3_SECRET'],
:region => ENV['AWS_S3_REGION']
} if ENV['AWS_S3_KEY']
config.asset_host = ENV['AWS_S3_HOST'] ... | Make fog asset host configurable | Make fog asset host configurable
| Ruby | mit | BoldijarPaul/infoeducatie-api,infoeducatie/infoeducatie-api,infoeducatie/infoeducatie-api,palcu/infoeducatie-api,BoldijarPaul/infoeducatie-api,palcu/infoeducatie-api,BoldijarPaul/infoeducatie-api,infoeducatie/infoeducatie-api,palcu/infoeducatie-api | ruby | ## Code Before:
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['AWS_S3_KEY'],
:aws_secret_access_key => ENV['AWS_S3_SECRET'],
:region => ENV['AWS_S3_REGION']
} if ENV['AWS_S3_KEY']
config.fog_directory =... |
52c02ceda3c6430a2f4bbb3f9054180699baaa93 | setup.py | setup.py | import sys
from setuptools import setup, Extension
from Cython.Distutils import build_ext
dependencies = ['pycrypto', 'msgpack-python', 'pbkdf2.py', 'xattr', 'paramiko', 'Pyrex', 'Cython']
if sys.version_info < (2, 7):
dependencies.append('argparse')
setup(name='darc',
version='0.1',
author='Jonas Bo... | import os
import sys
from glob import glob
from setuptools import setup, Extension
from setuptools.command.sdist import sdist
hashindex_sources = ['darc/hashindex.pyx', 'darc/_hashindex.c']
try:
from Cython.Distutils import build_ext
import Cython.Compiler.Main as cython_compiler
class Sdist(sdist):
... | Include Cython output in sdist | Include Cython output in sdist
| Python | bsd-3-clause | ionelmc/borg,pombredanne/attic,edgimar/borg,raxenak/borg,RonnyPfannschmidt/borg,RonnyPfannschmidt/borg,edgimar/borg,mhubig/borg,edgewood/borg,RonnyPfannschmidt/borg,edgewood/borg,raxenak/borg,RonnyPfannschmidt/borg,ionelmc/borg,RonnyPfannschmidt/borg,mhubig/borg,level323/borg,jborg/attic,jborg/attic,mhubig/borg,ionelmc... | python | ## Code Before:
import sys
from setuptools import setup, Extension
from Cython.Distutils import build_ext
dependencies = ['pycrypto', 'msgpack-python', 'pbkdf2.py', 'xattr', 'paramiko', 'Pyrex', 'Cython']
if sys.version_info < (2, 7):
dependencies.append('argparse')
setup(name='darc',
version='0.1',
... |
c9ac17f47e7434fc7a91ff6962f205aec71e0d1c | .travis.yml | .travis.yml | language: node_js
node_js:
- "node" | language: node_js
node_js:
- "4.1"
- "4.0"
- "0.12"
script:
- "tsc && node ./node_modules/vscode/bin/compile" | Add right script command to Travis | Add right script command to Travis
| YAML | mit | akamud/vscode-caniuse | yaml | ## Code Before:
language: node_js
node_js:
- "node"
## Instruction:
Add right script command to Travis
## Code After:
language: node_js
node_js:
- "4.1"
- "4.0"
- "0.12"
script:
- "tsc && node ./node_modules/vscode/bin/compile" |
6ae9b3c26c97b29885c0f85c093b31f754e940bd | packages/tu/tup-functor.yaml | packages/tu/tup-functor.yaml | homepage: http://code.haskell.org/~bkomuves/
changelog-type: ''
hash: 2afaf86ee35e188f7179ade4d796afeac1b11ba0af2df988689d74a7d57f4de2
test-bench-deps: {}
maintainer: bkomuves (plus) hackage (at) gmail (dot) hu
synopsis: Homogeneous tuples
changelog: ''
basic-deps:
parsec2: -any
base: ! '>=3 && <5'
haskell-src-ex... | homepage: http://code.haskell.org/~bkomuves/
changelog-type: ''
hash: 2afaf86ee35e188f7179ade4d796afeac1b11ba0af2df988689d74a7d57f4de2
test-bench-deps: {}
maintainer: bkomuves (plus) hackage (at) gmail (dot) hu
synopsis: Homogeneous tuples
changelog: ''
basic-deps:
parsec2: -any
base: ! '>=3 && <5'
haskell-src-ex... | Update from Hackage at 2019-11-24T21:26:52Z | Update from Hackage at 2019-11-24T21:26:52Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://code.haskell.org/~bkomuves/
changelog-type: ''
hash: 2afaf86ee35e188f7179ade4d796afeac1b11ba0af2df988689d74a7d57f4de2
test-bench-deps: {}
maintainer: bkomuves (plus) hackage (at) gmail (dot) hu
synopsis: Homogeneous tuples
changelog: ''
basic-deps:
parsec2: -any
base: ! '>=3 && <5'
... |
7ad0aa082114811a1638916060c6b18f93d09824 | books/services.py | books/services.py | from datetime import date
from datetime import timedelta
from django.utils import timezone
from books.models import Transaction
def get_months_transactions():
today = timezone.now()
first_day_of_a_month = date(today.year, today.month, 1)
qs = Transaction.objects.filter(created__gte=first_day_of_a_month)... | from datetime import datetime
from datetime import timedelta
from django.utils import timezone
from books.models import Transaction
def get_months_transactions():
today = timezone.now()
first_day_of_a_month = datetime(today.year, today.month, 1,
tzinfo=today.tzinfo)
q... | Add service functions to get transactions by time | Add service functions to get transactions by time
| Python | mit | trimailov/finance,trimailov/finance,trimailov/finance | python | ## Code Before:
from datetime import date
from datetime import timedelta
from django.utils import timezone
from books.models import Transaction
def get_months_transactions():
today = timezone.now()
first_day_of_a_month = date(today.year, today.month, 1)
qs = Transaction.objects.filter(created__gte=first... |
9aba2facd6e0003b8b33d95f0889d49588089169 | README.md | README.md | Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
| Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
How to [install apktool](http://ibotpeaches.github.io/Apktool/install/) | Add how to install for apktool | Add how to install for apktool
| Markdown | mit | gelldur/jak_oni_to_robia_prezentacja,gelldur/jak_oni_to_robia_prezentacja | markdown | ## Code Before:
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
## Instruction:
Add how to install for apktool
## Code After:
Repozytorium z źródłami etc do prezentacji: "Jak oni to robią... ?"
How to [install apktool](http://ibotpeaches.github.io/Apktool/install/) |
feb6108df3144ff7004831dc6b670d961f4650c7 | README.md | README.md |
[AMCSS](http://amcss.github.io/) in Ruby.
## Why AMCSS?
Nowadays it seems like "to do everything using classes" is the mantra for most CSS development.
Why can't we use different approaches? AMCSS uses custom, namespaced attributes and mostly unknown
CSS selector to apply style to the page.
Take a deep breath and [... |
[AMCSS](http://amcss.github.io/) in Ruby.
[](https://travis-ci.org/sistrall/amcss)
## Why AMCSS?
Nowadays it seems like "to do everything using classes" is the mantra for most CSS development.
Why can't we use different approaches? AMCSS uses custom, namespac... | Add Travis CI status image | Add Travis CI status image
| Markdown | mit | sistrall/amcss | markdown | ## Code Before:
[AMCSS](http://amcss.github.io/) in Ruby.
## Why AMCSS?
Nowadays it seems like "to do everything using classes" is the mantra for most CSS development.
Why can't we use different approaches? AMCSS uses custom, namespaced attributes and mostly unknown
CSS selector to apply style to the page.
Take a d... |
c9af83722b7c0de1aa0dbb5d9f62afa1f17a513b | cmd.go | cmd.go | package rerun
import (
"os"
"os/exec"
)
type Cmd struct {
cmd *exec.Cmd
args []string
}
func Run(args ...string) (*Cmd, error) {
cmd := &Cmd{
args: args,
}
if err := cmd.run(); err != nil {
return nil, err
}
return cmd, nil
}
func (c *Cmd) run() error {
c.cmd = nil
cmd := exec.Command(c.args[0], c... | package rerun
import (
"fmt"
"os"
"os/exec"
"syscall"
)
type Cmd struct {
cmd *exec.Cmd
args []string
}
func Command(args ...string) (*Cmd, error) {
c := &Cmd{
args: args,
}
if err := c.Start(); err != nil {
return nil, err
}
return c, nil
}
func (c *Cmd) Start() error {
cmd := exec.Command(c.args... | Kill the process group (children of children) | Kill the process group (children of children)
| Go | mit | VojtechVitek/rerun | go | ## Code Before:
package rerun
import (
"os"
"os/exec"
)
type Cmd struct {
cmd *exec.Cmd
args []string
}
func Run(args ...string) (*Cmd, error) {
cmd := &Cmd{
args: args,
}
if err := cmd.run(); err != nil {
return nil, err
}
return cmd, nil
}
func (c *Cmd) run() error {
c.cmd = nil
cmd := exec.Comm... |
c290a4175ceb88e82976636ee6094d893967a9ad | README.rdoc | README.rdoc | = WebTailer
This project rocks and uses MIT-LICENSE. | = WebTailer
This project rocks and uses MIT-LICENSE.
= Install
Add gem into Gemfile !
gem 'web_tailer', :git => 'git://github.com/mewlist/web_tailer.git'
Add route to web_tailer into your config/routes.rb !
mount WebTailer::Engine => '/web_tailer'
Add iframe into your view. and customize path param to what you... | Add how to install to readme | Add how to install to readme
| RDoc | mit | mewlist/web_tailer,mewlist/web_tailer | rdoc | ## Code Before:
= WebTailer
This project rocks and uses MIT-LICENSE.
## Instruction:
Add how to install to readme
## Code After:
= WebTailer
This project rocks and uses MIT-LICENSE.
= Install
Add gem into Gemfile !
gem 'web_tailer', :git => 'git://github.com/mewlist/web_tailer.git'
Add route to web_tailer into ... |
6ce4509c0bfc1baf1288a42d8ec6ebc2a4f8beac | api/users/routes.js | api/users/routes.js | import koaRouter from 'koa-router'
import {create, remove} from './collection'
const router = koaRouter()
router.post('/', function* () {
let login = this.request.body.login
, password = this.request.body.password
try {
yield create(login, password)
this.status = 201
this.type = 'json'
this.b... | import koaRouter from 'koa-router'
import {create, remove} from './collection'
const router = koaRouter()
router.post('/', function* () {
let login = this.request.body.login
, password = this.request.body.password
try {
yield create(login, password)
this.status = 201
this.type = 'json'
this.b... | Add comment for users delete route | Add comment for users delete route
| JavaScript | mit | rafaeljesus/easy-schedule | javascript | ## Code Before:
import koaRouter from 'koa-router'
import {create, remove} from './collection'
const router = koaRouter()
router.post('/', function* () {
let login = this.request.body.login
, password = this.request.body.password
try {
yield create(login, password)
this.status = 201
this.type = '... |
9715091e899bdaad887ec64a3e92fe007f2a3929 | app/locales/pages/markdown/reviewer/show.en.yml | app/locales/pages/markdown/reviewer/show.en.yml | en:
markdown:
previewer:
show:
title: 'Previewer'
nothing_to_preview: 'Nothing to preview.'
close: "I'm done previewing it!"
| en:
markdown:
previewer:
show:
title: 'Previewer'
nothing_to_preview: 'Nothing to preview.'
close: 'Close Preview'
| Change text on markdown previewer close button | Change text on markdown previewer close button
| YAML | mit | raksonibs/raimcrowd,gustavoguichard/neighborly,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,gustavoguichard/neighborly,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silverme,raksonibs/raimcrowd,raksonibs/raimcrowd,jinutm/silverprod,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,jinutm/... | yaml | ## Code Before:
en:
markdown:
previewer:
show:
title: 'Previewer'
nothing_to_preview: 'Nothing to preview.'
close: "I'm done previewing it!"
## Instruction:
Change text on markdown previewer close button
## Code After:
en:
markdown:
previewer:
show:
title: 'Prev... |
221a169cd47f8467ba14af1c42a6827147de29f3 | remoting/subsystem/src/main/resources/subsystem-templates/remoting.xml | remoting/subsystem/src/main/resources/subsystem-templates/remoting.xml | <?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config default-supplement="default">
<extension-module>org.jboss.as.remoting</extension-module>
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<endpoint/>
<?CONNEC... | <?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config>
<extension-module>org.jboss.as.remoting</extension-module>
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<endpoint/>
<http-connector name="http-remoting-c... | Remove the 'elytron' supplement from the Remoting subsystem template. | [WFCORE-2177] Remove the 'elytron' supplement from the Remoting subsystem template.
| XML | lgpl-2.1 | JiriOndrusek/wildfly-core,darranl/wildfly-core,ivassile/wildfly-core,darranl/wildfly-core,aloubyansky/wildfly-core,yersan/wildfly-core,bstansberry/wildfly-core,aloubyansky/wildfly-core,bstansberry/wildfly-core,jamezp/wildfly-core,luck3y/wildfly-core,soul2zimate/wildfly-core,soul2zimate/wildfly-core,jamezp/wildfly-core,... | xml | ## Code Before:
<?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config default-supplement="default">
<extension-module>org.jboss.as.remoting</extension-module>
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<endpoint/>... |
3469b7326ff0a17d729b2563fd6147d5e82b0b62 | app/src/main/java/com/thuytrinh/transactionviewer/app/AppModule.java | app/src/main/java/com/thuytrinh/transactionviewer/app/AppModule.java | package com.thuytrinh.transactionviewer.app;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import com.google.gson.Gson;
import com.thuytrinh.transactionviewer.api.MockRatesFetcher;
import com.thuytrinh.transactionviewer.api.MockTransactionsFetcher;
import com.thuytrinh... | package com.thuytrinh.transactionviewer.app;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import com.google.gson.Gson;
import com.thuytrinh.transactionviewer.api.MockRatesFetcher;
import com.thuytrinh.transactionviewer.api.MockTransactionsFetcher;
import com.thuytrinh... | Use the same Gson instance | Use the same Gson instance
| Java | mit | thuytrinh/transaction-viewer | java | ## Code Before:
package com.thuytrinh.transactionviewer.app;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import com.google.gson.Gson;
import com.thuytrinh.transactionviewer.api.MockRatesFetcher;
import com.thuytrinh.transactionviewer.api.MockTransactionsFetcher;
impo... |
8d668d7bdd9ed814e25128ef01d8c3e647d4cf0f | README.md | README.md |
Vulk is a 3d engine aimed to provide the best graphical experience with Vulkan API.
It is written in Python with C binding and is based on SDL2.
## What is the project goal ?
- Easy to use: you don't need to understand Vulkan to use VULK.
- Modular: every single part of the api must be modular.
- Full: you shouldn't... |
[](https://travis-ci.org/js78/vulk)
## What is it ?
Vulk is a 3d engine aimed to provide the best graphical experience with Vulkan API.
It is written in Python with C binding and is based on SDL2.
## What is the project goal ?
- Easy to use: you don... | Add build status badge to readme | Add build status badge to readme
| Markdown | apache-2.0 | realitix/vulk,realitix/vulk,Echelon9/vulk,Echelon9/vulk | markdown | ## Code Before:
Vulk is a 3d engine aimed to provide the best graphical experience with Vulkan API.
It is written in Python with C binding and is based on SDL2.
## What is the project goal ?
- Easy to use: you don't need to understand Vulkan to use VULK.
- Modular: every single part of the api must be modular.
- Ful... |
7971984156cb7b6488593e3ed84a2608b5eab920 | README.md | README.md | A bookmarklet for tweaking playback rate of HTML5 videos.
Add as a new bookmark:
`javascript:(function() {var script = document.createElement('script'); script.src='https://github.com/jachinn/html5-video-playback-rate/script.js'; document.body.appendChild(script);})();`
Clicking the bookmarlet on a page with a video... | A bookmarklet for tweaking playback rate of HTML5 videos.
Add as a new bookmark:
`javascript:(function() {var script = document.createElement('script'); script.src='https://github.com/jachinn/html5-video-playback-rate/script.js'; document.body.appendChild(script);})();`
Or, if your adblocker is keeping the bookmarkl... | Add option for people with adblockers installed | Add option for people with adblockers installed
| Markdown | cc0-1.0 | jachinn/html5-video-playback-rate | markdown | ## Code Before:
A bookmarklet for tweaking playback rate of HTML5 videos.
Add as a new bookmark:
`javascript:(function() {var script = document.createElement('script'); script.src='https://github.com/jachinn/html5-video-playback-rate/script.js'; document.body.appendChild(script);})();`
Clicking the bookmarlet on a p... |
f8d22f8ded7ea448a643f248c346d46e85a929ea | js/query-cache.js | js/query-cache.js | define([], function () {
var caches = {};
function Cache(method) {
this.method = method;
this._store = {};
}
/** xml -> Promise<Result> **/
Cache.prototype.submit = function submit (query) {
var xml = query.toXML();
var current = this._store[xml];
if (current) {
return current;
... | define([], function () {
var caches = {};
function Cache(method, service) {
this.method = method;
this._store = {};
this.service = service;
}
/** xml -> Promise<Result> **/
Cache.prototype.submit = function submit (query) {
var key, current;
if (this.method === 'findById') {
key =... | Allow cache methods that are run from the service. | Allow cache methods that are run from the service.
| JavaScript | apache-2.0 | yochannah/show-list-tool,alexkalderimis/show-list-tool,yochannah/show-list-tool,intermine-tools/show-list-tool,intermine-tools/show-list-tool,intermine-tools/show-list-tool,yochannah/show-list-tool | javascript | ## Code Before:
define([], function () {
var caches = {};
function Cache(method) {
this.method = method;
this._store = {};
}
/** xml -> Promise<Result> **/
Cache.prototype.submit = function submit (query) {
var xml = query.toXML();
var current = this._store[xml];
if (current) {
re... |
fbed9d4aac28c0ef9d5070b31aeec9de09009e26 | index.js | index.js | var url = require('url')
module.exports = function(uri, cb) {
var parsed
try {
parsed = url.parse(uri)
}
catch (err) {
return cb(err)
}
if (!parsed.host) {
return cb(new Error('Invalid url: ' + uri))
}
var opts = {
host: parsed.host
, port: parsed.port
, path: parsed.path
, meth... | var request = require('request')
module.exports = function(options, cb) {
if ('string' === typeof options) {
options = {
uri: options
}
}
options = options || {}
options.method = 'HEAD'
options.followAllRedirects = true
request(options, function(err, res, body) {
if (err) return cb(err)... | Use request and allow passing object | Use request and allow passing object
| JavaScript | mit | evanlucas/remote-file-size | javascript | ## Code Before:
var url = require('url')
module.exports = function(uri, cb) {
var parsed
try {
parsed = url.parse(uri)
}
catch (err) {
return cb(err)
}
if (!parsed.host) {
return cb(new Error('Invalid url: ' + uri))
}
var opts = {
host: parsed.host
, port: parsed.port
, path: pars... |
f81e409ab1666a8a3bb1ff1806d256644712382f | structures/__init__.py | structures/__init__.py |
from .base import DBStructure, _Generated
from .files.main import *
from .files.custom import *
from ..locales import L
class StructureError(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is None:
cls.wowfiles = {}
for name in globals():
try:
... |
from .base import DBStructure, _Generated
from .files.main import *
from .files.custom import *
from ..locales import L
class UnknownStructure(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is None:
cls.wowfiles = {}
for name in globals():
try... | Raise more appropriate UnknownStructure exception rather than StructureError if a structure is not found. | structures: Raise more appropriate UnknownStructure exception rather than StructureError if a structure is not found.
| Python | cc0-1.0 | jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow | python | ## Code Before:
from .base import DBStructure, _Generated
from .files.main import *
from .files.custom import *
from ..locales import L
class StructureError(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is None:
cls.wowfiles = {}
for name in glob... |
39ccff730106285b5f66a9be09800c9bd6c225f8 | mkdocs.yml | mkdocs.yml | site_name: FastAPI
site_description: FastAPI framework, high performance, easy to learn, fast to code, ready for production
theme:
name: 'material'
palette:
primary: 'teal'
accent: 'amber'
logo: 'img/icon-white.svg'
favicon: 'img/favicon.png'
repo_name: tiangolo/fastapi
repo_url: https://g... | site_name: FastAPI
site_description: FastAPI framework, high performance, easy to learn, fast to code, ready for production
theme:
name: 'material'
palette:
primary: 'teal'
accent: 'amber'
logo: 'img/icon-white.svg'
favicon: 'img/favicon.png'
repo_name: tiangolo/fastapi
repo_url: https://g... | Add new tutorials to docs | :memo: Add new tutorials to docs
| YAML | mit | tiangolo/fastapi,tiangolo/fastapi,tiangolo/fastapi | yaml | ## Code Before:
site_name: FastAPI
site_description: FastAPI framework, high performance, easy to learn, fast to code, ready for production
theme:
name: 'material'
palette:
primary: 'teal'
accent: 'amber'
logo: 'img/icon-white.svg'
favicon: 'img/favicon.png'
repo_name: tiangolo/fastapi
rep... |
eff454315cb7c33330963a749179b290a36d802a | codeception.yml | codeception.yml | actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 16000M
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled: true
remote... | actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 16000M
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled: true
remote... | Exclude 3rd party libraries from codecov | Exclude 3rd party libraries from codecov
| YAML | agpl-3.0 | lionixevolve/LionixCRM,JimMackin/SuiteCRM,willrennie/SuiteCRM,lionixevolve/LionixCRM,gcoop-libre/SuiteCRM,gcoop-libre/SuiteCRM,Dillon-Brown/SuiteCRM,dfstrauss/SuiteCRM,samus-aran/SuiteCRM,MikeyJC/SuiteCRM,willrennie/SuiteCRM,horus68/SuiteCRM-Horus68,lionixevolve/LionixCRM,daniel-samson/SuiteCRM,daniel-samson/SuiteCRM,h... | yaml | ## Code Before:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 16000M
extensions:
enabled:
- Codeception\Extension\RunFailed
coverage:
enabled:... |
c161ac39b731bed2286c3855d319dbbbf746b19f | code/local/Ibuildings/Gearman/tests/ObserverTest.php | code/local/Ibuildings/Gearman/tests/ObserverTest.php | <?php
class ObserverTest extends Ibuildings_Mage_Test_PHPUnit_ControllerTestCase
{
public function testDispatchTask()
{
$ps = explode(PHP_EOL, `ps ax | grep test_worker`);
$found = false;
foreach ($ps as $line) {
if (preg_match('/php test_worker\.php/', $line)) {
... | <?php
class ObserverTest extends Ibuildings_Mage_Test_PHPUnit_ControllerTestCase
{
public function testDispatchTask()
{
$ps = explode(PHP_EOL, `ps ax | grep test_worker`);
$found = false;
foreach ($ps as $line) {
if (preg_match('/test_worker\.php/', $line)) {
... | Use LOG_PATH for log path and make failures more descriptive | Use LOG_PATH for log path and make failures more descriptive
| PHP | bsd-3-clause | frak/Magento-Gearman-Module,frak/Magento-Gearman-Module | php | ## Code Before:
<?php
class ObserverTest extends Ibuildings_Mage_Test_PHPUnit_ControllerTestCase
{
public function testDispatchTask()
{
$ps = explode(PHP_EOL, `ps ax | grep test_worker`);
$found = false;
foreach ($ps as $line) {
if (preg_match('/php test_worker\.php/', $line... |
00a4d2c1e41c6c2c5fd9c7b963b9f7b207bad7c4 | README.md | README.md |
[](https://travis-ci.org/acjackman/dbezr)
This package aims to remove pain associated with using databases in constant analysis. It provides a method of managing database connections and provides wrapper functions for many of the excellent `DBI` ... |
[](https://circleci.com/gh/acjackman/dbezr/tree/master)
This package aims to remove pain associated with using databases in constant analysis. It provides a method of managing database connections and provides wrapper functions for many of... | Update build shield to CircleCI | Update build shield to CircleCI
| Markdown | mit | acjackman/dbezr | markdown | ## Code Before:
[](https://travis-ci.org/acjackman/dbezr)
This package aims to remove pain associated with using databases in constant analysis. It provides a method of managing database connections and provides wrapper functions for many of the ... |
98ff5aa206d70c31409804749aa80c18472b5db3 | src/app/app.component.css | src/app/app.component.css | .main {
height: 100%;
width: 100%;
display: flex;
}
.text-div {
margin: auto;
width: 400px;
text-align: center;
font-family: monospace;
color: white;
display: flex;
flex-direction: column;
flex: 0 1 auto;
}
.env {
font-size: 3em;
flex: 0 1 auto;
}
.links {
font-size: 1.5em;
display: flex;
... | .main {
height: 100%;
width: 100%;
display: flex;
}
.text-div {
margin: auto;
width: 300px;
text-align: center;
font-family: monospace;
color: white;
display: flex;
flex-direction: column;
flex: 0 1 auto;
}
.env {
font-size: 3em;
flex: 0 1 auto;
}
.links {
font-size: 1.2em;
display: flex;
... | Add media queries to support mobile devices | Add media queries to support mobile devices
| CSS | mit | fightknights/pipe-demo,fightknights/pipe-demo,fightknights/pipe-demo | css | ## Code Before:
.main {
height: 100%;
width: 100%;
display: flex;
}
.text-div {
margin: auto;
width: 400px;
text-align: center;
font-family: monospace;
color: white;
display: flex;
flex-direction: column;
flex: 0 1 auto;
}
.env {
font-size: 3em;
flex: 0 1 auto;
}
.links {
font-size: 1.5em;
... |
ad0c4f7486b294060a5f49ddcf2953611d1ab060 | vulkan/src/CMakeLists.txt | vulkan/src/CMakeLists.txt | INCLUDE( MacroInstallFramework )
INCLUDE( MacroExtractArchive )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_SOURCE_DIR}/core/src
)
SET( CRIMILD_LIBRARY_LINK_LIBRARIES
${CRIMILD_LIBRARY_LINK_LIBRARIES}
crimild_core
)
FIND_PACKAGE( Vulkan REQUIRED )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_INCLUDE_DIRECTORIES... | INCLUDE( MacroInstallFramework )
INCLUDE( MacroExtractArchive )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_SOURCE_DIR}/core/src
)
SET( CRIMILD_LIBRARY_LINK_LIBRARIES
${CRIMILD_LIBRARY_LINK_LIBRARIES}
crimild_core
)
FIND_PACKAGE( Vulkan REQUIRED )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_INCLUDE_DIRECTORIES... | Add a custom command to build vulkan shaders | Add a custom command to build vulkan shaders
| Text | bsd-3-clause | hhsaez/crimild,hhsaez/crimild,hhsaez/crimild | text | ## Code Before:
INCLUDE( MacroInstallFramework )
INCLUDE( MacroExtractArchive )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_SOURCE_DIR}/core/src
)
SET( CRIMILD_LIBRARY_LINK_LIBRARIES
${CRIMILD_LIBRARY_LINK_LIBRARIES}
crimild_core
)
FIND_PACKAGE( Vulkan REQUIRED )
SET( CRIMILD_INCLUDE_DIRECTORIES
${CRIMILD_INC... |
e55b89096f9f30c5a80f1fb8252c7239d236d24a | .github/FUNDING.yml | .github/FUNDING.yml |
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e... | github: [NLnetLabs]
custom: ['https://nlnetlabs.nl/funding/']
| Add GitHub Sponsors for Organisations | Add GitHub Sponsors for Organisations | YAML | bsd-3-clause | NLnetLabs/unbound,NLnetLabs/unbound,NLnetLabs/unbound,NLnetLabs/unbound | yaml | ## Code Before:
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-nam... |
63217fc21aa627746f050ff0a0f48f504c15a873 | templates/xfce4-terminal/dark.terminalrc.erb | templates/xfce4-terminal/dark.terminalrc.erb | <%
# XFCE 4 Terminal Template
# Chris Kempson (http://chriskempson.com)
%>[Configuration]
ColorCursor=#<%= @base["05"]["dhex"] %>
ColorForeground=#<%= @base["05"]["dhex"] %>
ColorBackground=#<%= @base["00"]["dhex"] %>
ColorPalette1=#<%= @base["00"]["dhex"] %>
ColorPalette2=#<%= @base["08"]["dhex"] %>
ColorPalette3=#<%... | <%
# XFCE 4 Terminal Template
# Chris Kempson (http://chriskempson.com)
%>[Configuration]
ColorCursor=#<%= @base["05"]["dhex"] %>
ColorForeground=#<%= @base["05"]["dhex"] %>
ColorBackground=#<%= @base["00"]["dhex"] %>
ColorPalette=#<%= @base["00"]["dhex"] %>;#<%= @base["08"]["dhex"] %>;#<%= @base["0B"]["dhex"] %>;#<%=... | Update Xfce4 Terminal template to new configuration format | Update Xfce4 Terminal template to new configuration format
I actually failed to notice that the format (as well as location) had
changed in my last patch, but still managed to create the right color
palette. This one actually works for recent versions of Xfce4 Terminal.
| HTML+ERB | mit | jilen/base16-builder,elais/base16-builder,ohspite/base16-builder,idleberg/base16-builder,idleberg/base16-builder,gabrielflorit/base16-builder,iakio/base16-builder,blockloop/base16-builder,andybarilla/base16-builder,hakatashi/base16-builder,gabrielflorit/base16-builder,Maximus5/base16-builder,ohnemax/base16-builder,enos... | html+erb | ## Code Before:
<%
# XFCE 4 Terminal Template
# Chris Kempson (http://chriskempson.com)
%>[Configuration]
ColorCursor=#<%= @base["05"]["dhex"] %>
ColorForeground=#<%= @base["05"]["dhex"] %>
ColorBackground=#<%= @base["00"]["dhex"] %>
ColorPalette1=#<%= @base["00"]["dhex"] %>
ColorPalette2=#<%= @base["08"]["dhex"] %>
C... |
2cbc6e5a4195ce5f11377f7fc9d1e786d52d9b7b | std/cpp/vm/Gc.hx | std/cpp/vm/Gc.hx | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>) : Void
{
... | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>,printInstances:Bo... | Return the count of traced objects | Return the count of traced objects
| Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe | haxe | ## Code Before:
package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>) ... |
92367e8a623b75e2aac51980aa6ade1a6fc49874 | build.bat | build.bat | @echo off
set GOARCH=%1
IF "%1" == "" (set GOARCH=amd64)
set ORG_PATH=github.com\hashicorp
set REPO_PATH=%ORG_PATH%\consul
set GOPATH=%cd%\gopath
rmdir /s /q %GOPATH%\src\%REPO_PATH% 2>nul
mkdir %GOPATH%\src\%ORG_PATH% 2>nul
mklink /J "%GOPATH%\src\%REPO_PATH%" "%cd%" 2>nul
%GOROOT%\bin\go build -o bin\%GOARCH%\con... | @echo off
REM Download Mingw 64 on Windows from http://win-builds.org/download.html
set GOARCH=%1
IF "%1" == "" (set GOARCH=amd64)
set ORG_PATH=github.com\hashicorp
set REPO_PATH=%ORG_PATH%\consul
set GOPATH=%cd%\gopath
rmdir /s /q %GOPATH%\src\%REPO_PATH% 2>nul
mkdir %GOPATH%\src\%ORG_PATH% 2>nul
go get .\...
mkli... | Add Instructions on Downloading Mingw 64bit for Building memdb | Add Instructions on Downloading Mingw 64bit for Building memdb
| Batchfile | mpl-2.0 | zendesk/consul,sequenceiq/consul,yonglehou/consul,BWITS/consul,zendesk/consul,pmalmgren/consul,kylemcc/consul,mshean/consul,JioCloud/consul,ryotarai/consul,ryotarai/consul,tamsky/consul,sean-/consul,Test-Betta-Inc/upgraded-engine,marclop/consul,mfischer-zd/consul,bodepd/consul,bodepd/consul,sfncook/consul,marenzo/consu... | batchfile | ## Code Before:
@echo off
set GOARCH=%1
IF "%1" == "" (set GOARCH=amd64)
set ORG_PATH=github.com\hashicorp
set REPO_PATH=%ORG_PATH%\consul
set GOPATH=%cd%\gopath
rmdir /s /q %GOPATH%\src\%REPO_PATH% 2>nul
mkdir %GOPATH%\src\%ORG_PATH% 2>nul
mklink /J "%GOPATH%\src\%REPO_PATH%" "%cd%" 2>nul
%GOROOT%\bin\go build -o ... |
91f250485b86339b13f5a073e5879292525f9015 | nbparameterise/code_drivers/python3.py | nbparameterise/code_drivers/python3.py | import ast
import astcheck
import astsearch
from ..code import Parameter
__all__ = ['extract_definitions', 'build_definitions']
def check_fillable_node(node, path):
if isinstance(node, (ast.Num, ast.Str, ast.List)):
return
elif isinstance(node, ast.NameConstant) and (node.value in (True, False)):
... | import ast
import astcheck
import astsearch
from ..code import Parameter
__all__ = ['extract_definitions', 'build_definitions']
def check_list(node):
def bool_check(node):
return isinstance(node, ast.NameConstant) and (node.value in (True, False))
return all([(isinstance(n, (ast.Num, ast.Str))
... | Add lists as valid parameters | Add lists as valid parameters | Python | mit | takluyver/nbparameterise | python | ## Code Before:
import ast
import astcheck
import astsearch
from ..code import Parameter
__all__ = ['extract_definitions', 'build_definitions']
def check_fillable_node(node, path):
if isinstance(node, (ast.Num, ast.Str, ast.List)):
return
elif isinstance(node, ast.NameConstant) and (node.value in (T... |
38c1b9a1d5d34a480ae40d210dac1bf8e50bf889 | README.md | README.md |
Autoscale images or videos to fill a container div.
|
Autoscale images or videos to fill a container div.
## Usage
HTML Markup:
```html
<div class="Autoscale-parent">
<img class="Autoscale" data-autoscale src="aranja-is-awesome.png">
</div>
```
Note that the classes `.Autoscale` and `.Autoscale-parent` are optional
but they are configured so that the plugin beha... | Add a hint of documentation | Add a hint of documentation
| Markdown | mit | aranja/tux-autoscale,aranja/tux-autoscale | markdown | ## Code Before:
Autoscale images or videos to fill a container div.
## Instruction:
Add a hint of documentation
## Code After:
Autoscale images or videos to fill a container div.
## Usage
HTML Markup:
```html
<div class="Autoscale-parent">
<img class="Autoscale" data-autoscale src="aranja-is-awesome.png">
</... |
116501cae9b938adb1a7b781ad6dcede949b30ea | src/test/resources/com/foundationdb/sql/pg/yaml/bugs/test-issue-477.yaml | src/test/resources/com/foundationdb/sql/pg/yaml/bugs/test-issue-477.yaml | ---
- CreateTable: t(c1 VARCHAR(16))
---
- Statement: INSERT INTO t VALUES ('02141'), ('06563'), ('20740'), ('95xxx')
---
- Statement: SELECT * FROM t
- output_ordered: [ ["02141"], ["06563"], ["20740"], ["95xxx"] ]
---
- Statement: SELECT LEFT(c1, 3) FROM t WHERE c1 IN (02141)
- warnings: [ [ "22001"] ]
- output: [ ["... | ---
- CreateTable: t(c1 VARCHAR(16))
---
- Statement: INSERT INTO t VALUES ('02141'), ('06563'), ('20740'), ('95xxx')
---
- Statement: SELECT * FROM t
- output_ordered: [ ["02141"], ["06563"], ["20740"], ["95xxx"] ]
---
- Statement: SELECT LEFT(c1, 3) FROM t WHERE c1 IN (02141)
- warnings: [ ["22001", "WARN: String da... | Add full warning text for sake of AAS | Add full warning text for sake of AAS
| YAML | agpl-3.0 | relateiq/sql-layer,jaytaylor/sql-layer,qiuyesuifeng/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,shunwang/sql-layer-1,ngaut/sql-layer,wfxiang08/sql-layer-1,relateiq/sql-layer,jaytaylor/sql-layer,ngaut/sql-layer,shunwang/sql-layer-1,qiuyesuifeng/sql-layer,ngaut/sql-layer,shunwa... | yaml | ## Code Before:
---
- CreateTable: t(c1 VARCHAR(16))
---
- Statement: INSERT INTO t VALUES ('02141'), ('06563'), ('20740'), ('95xxx')
---
- Statement: SELECT * FROM t
- output_ordered: [ ["02141"], ["06563"], ["20740"], ["95xxx"] ]
---
- Statement: SELECT LEFT(c1, 3) FROM t WHERE c1 IN (02141)
- warnings: [ [ "22001"] ... |
4e2ab906a916d3e5a75220a7e59f4a28daf9c834 | .github/workflows/continuous-integration.yml | .github/workflows/continuous-integration.yml | name: Continuous Integration
on: [push]
jobs:
xcode-build:
name: Xcode Build
runs-on: macOS-latest
strategy:
matrix:
destination: [
"platform=macOS",
"platform=iOS Simulator,name=iPhone Xs",
"platform=tvOS Simulator,name=Apple TV",
"platform=watchOS... | name: Continuous Integration
on: [push]
jobs:
xcode-build:
name: Xcode Build
runs-on: macOS-latest
strategy:
matrix:
destination: [
"platform=macOS",
"platform=iOS Simulator,name=iPhone Xs",
"platform=tvOS Simulator,name=Apple TV",
"platform=watchOS... | Verify the podspec as part of the CI action | Verify the podspec as part of the CI action | YAML | mit | tonyarnold/Differ,tonyarnold/Differ,tonyarnold/Differ,tonyarnold/Differ | yaml | ## Code Before:
name: Continuous Integration
on: [push]
jobs:
xcode-build:
name: Xcode Build
runs-on: macOS-latest
strategy:
matrix:
destination: [
"platform=macOS",
"platform=iOS Simulator,name=iPhone Xs",
"platform=tvOS Simulator,name=Apple TV",
"... |
4bf48ee2c260bc13d3eb5579adcd62b5a90b972c | app/views/entries/_form.html.haml | app/views/entries/_form.html.haml | = form_with model: entry, local: true do |form|
= render 'shared/error_messages', errors: entry.errors
= fields model: entry.song do |song_form|
.form-group
= song_form.label :live_id
= song_form.collection_select :live_id, Live.unpublished.newest_order, :id, :date_and_name, {}, class: 'form-contro... | = form_with model: entry, local: true do |form|
= render 'shared/error_messages', errors: entry.errors
= fields model: entry.song do |song_form|
.form-group
= song_form.label :live_id
= song_form.collection_select :live_id, Live.unpublished.order(:date), :id, :date_and_name, {}, class: 'form-contro... | Fix live order of entry form | Fix live order of entry form
| Haml | mit | sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog | haml | ## Code Before:
= form_with model: entry, local: true do |form|
= render 'shared/error_messages', errors: entry.errors
= fields model: entry.song do |song_form|
.form-group
= song_form.label :live_id
= song_form.collection_select :live_id, Live.unpublished.newest_order, :id, :date_and_name, {}, cla... |
1bdff0e8055edb6012dab1604cd608f753a271c8 | spec/support/coverage_loader.rb | spec/support/coverage_loader.rb | MINIMUM_COVERAGE = 73.5
unless ENV['COVERAGE'] == 'off'
require 'simplecov'
require 'simplecov-rcov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::RcovFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_f... | MINIMUM_COVERAGE = 73.5
unless ENV['COVERAGE'] == 'off'
require 'simplecov'
require 'simplecov-rcov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatters = [
SimpleCov::Formatter::RcovFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/vendor/'
add_filter '/s... | Fix due to syntax change in simplecov 0.11 | Fix due to syntax change in simplecov 0.11
| Ruby | mit | sealink/rails_core_extensions | ruby | ## Code Before:
MINIMUM_COVERAGE = 73.5
unless ENV['COVERAGE'] == 'off'
require 'simplecov'
require 'simplecov-rcov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::RcovFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.st... |
338e28de15d49b8f49b5694e0e1a5e31d571428c | lib/action_cable/connection/internal_channel.rb | lib/action_cable/connection/internal_channel.rb | module ActionCable
module Connection
module InternalChannel
extend ActiveSupport::Concern
def internal_redis_channel
"action_cable/#{connection_identifier}"
end
def subscribe_to_internal_channel
if connection_identifier.present?
callback = -> (message) { process... | module ActionCable
module Connection
module InternalChannel
extend ActiveSupport::Concern
private
def internal_redis_channel
"action_cable/#{connection_identifier}"
end
def subscribe_to_internal_channel
if connection_identifier.present?
callbac... | Make the entire internal channel private | Make the entire internal channel private
| Ruby | mit | mathieujobin/reduced-rails-for-travis,vipulnsward/rails,lcreid/rails,koic/rails,kmayer/rails,mohitnatoo/rails,BlakeWilliams/rails,yasslab/railsguides.jp,arunagw/rails,slipstreamstudio/actioncable,aditya-kapoor/rails,pvalena/rails,ledestin/rails,marklocklear/rails,gauravtiwari/rails,felipecvo/rails,Stellenticket/rails,m... | ruby | ## Code Before:
module ActionCable
module Connection
module InternalChannel
extend ActiveSupport::Concern
def internal_redis_channel
"action_cable/#{connection_identifier}"
end
def subscribe_to_internal_channel
if connection_identifier.present?
callback = -> (me... |
0a8703a0576e27fcdfed6f022b5930ab5a19b14f | feedthefox/base/static/js/device.js | feedthefox/base/static/js/device.js | jQuery(document).ready(function ($) {
$('#BuildModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var recipient = button.data('build');
var modal = $(this)
modal.find('#build-link').attr('href', recipient);
});
});
| jQuery(document).ready(function ($) {
$('#BuildModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var recipient = button.data('build');
var modal = $(this);
modal.find('#build-link').attr('href', recipient);
});
$('a.device-builds, #build-lin... | Send GA event on FxOS build clicks. | Send GA event on FxOS build clicks.
| JavaScript | mpl-2.0 | akatsoulas/feedthefox,mozilla/feedthefox,akatsoulas/feedthefox,akatsoulas/feedthefox,akatsoulas/feedthefox,mozilla/feedthefox,mozilla/feedthefox,mozilla/feedthefox | javascript | ## Code Before:
jQuery(document).ready(function ($) {
$('#BuildModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var recipient = button.data('build');
var modal = $(this)
modal.find('#build-link').attr('href', recipient);
});
});
## Instruction:... |
027536fe29c61495b170e8ce0e04736496c619df | build/syms/Input_symbols.txt | build/syms/Input_symbols.txt | GP_EventKeyName
GP_EventDump
GP_InputDriverLinuxRead
GP_InputDriverLinuxOpen
GP_InputDriverLinuxClose
GP_InputDriverKBDEventPut
GP_EventQueueSetCursorPosition
GP_EventQueueSetScreenSize
GP_EventQueueGet
GP_EventQueueEventsQueued
GP_EventQueueInit
GP_EventQueueFree
GP_EventQueueAlloc
GP_EventQueuePut
GP_EventQueuePut... | GP_EventKeyName
GP_EventDump
GP_InputDriverLinuxRead
GP_InputDriverLinuxOpen
GP_InputDriverLinuxClose
GP_InputDriverKBDEventPut
GP_EventQueueSetCursorPosition
GP_EventQueueSetScreenSize
GP_EventQueueGet
GP_EventQueuePeek
GP_EventQueuePutBack
GP_EventQueueEventsQueued
GP_EventQueueInit
GP_EventQueueFree
GP_EventQueueA... | Update list of exported symbols. | build: Update list of exported symbols.
Signed-off-by: Cyril Hrubis <b1e90efd3b808b8e0bcf2a9a55fd8b9a779bfd81@ucw.cz>
| Text | lgpl-2.1 | gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim | text | ## Code Before:
GP_EventKeyName
GP_EventDump
GP_InputDriverLinuxRead
GP_InputDriverLinuxOpen
GP_InputDriverLinuxClose
GP_InputDriverKBDEventPut
GP_EventQueueSetCursorPosition
GP_EventQueueSetScreenSize
GP_EventQueueGet
GP_EventQueueEventsQueued
GP_EventQueueInit
GP_EventQueueFree
GP_EventQueueAlloc
GP_EventQueuePut
... |
bf3218f9d125c9b4072fc99d108fe936578c79e0 | dbversions/versions/44dccb7b8b82_update_username_to_l.py | dbversions/versions/44dccb7b8b82_update_username_to_l.py |
# revision identifiers, used by Alembic.
revision = '44dccb7b8b82'
down_revision = '9f274a38d84'
from alembic import op
import sqlalchemy as sa
def upgrade():
connection = op.get_bind()
current_context = op.get_context()
meta = current_context.opts['target_metadata']
users = sa.Table('users', meta, a... |
# revision identifiers, used by Alembic.
revision = '44dccb7b8b82'
down_revision = '9f274a38d84'
from alembic import op
import sqlalchemy as sa
def upgrade():
connection = op.get_bind()
current_context = op.get_context()
meta = current_context.opts['target_metadata']
users = sa.Table('users', meta, ... | Fix the lowercase migration to work in other dbs | Fix the lowercase migration to work in other dbs
| Python | agpl-3.0 | wangjun/Bookie,bookieio/Bookie,charany1/Bookie,adamlincoln/Bookie,charany1/Bookie,wangjun/Bookie,GreenLunar/Bookie,teodesson/Bookie,GreenLunar/Bookie,bookieio/Bookie,adamlincoln/Bookie,bookieio/Bookie,wangjun/Bookie,skmezanul/Bookie,teodesson/Bookie,teodesson/Bookie,bookieio/Bookie,wangjun/Bookie,teodesson/Bookie,Green... | python | ## Code Before:
# revision identifiers, used by Alembic.
revision = '44dccb7b8b82'
down_revision = '9f274a38d84'
from alembic import op
import sqlalchemy as sa
def upgrade():
connection = op.get_bind()
current_context = op.get_context()
meta = current_context.opts['target_metadata']
users = sa.Table(... |
7e5bd6ebe32743afd64b80ef26c5af7f5ae6b350 | compilerutil/immutablemap.go | compilerutil/immutablemap.go | // Copyright 2017 The Serulian Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package compilerutil
// ImmutableMap defines an immutable map struct, where Set-ing a new key returns a new ImmutableMap.
type ImmutableMap interface {
... | // Copyright 2017 The Serulian Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package compilerutil
// ImmutableMap defines an immutable map struct, where Set-ing a new key returns a new ImmutableMap.
type ImmutableMap interface {
... | Make sure to specify the length of the map before copy to avoid new allocations | Make sure to specify the length of the map before copy to avoid new allocations
| Go | bsd-3-clause | Serulian/compiler,Serulian/compiler | go | ## Code Before:
// Copyright 2017 The Serulian Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package compilerutil
// ImmutableMap defines an immutable map struct, where Set-ing a new key returns a new ImmutableMap.
type ImmutableM... |
4a400fa3a34ba47f27999fa57eb3c002d6164f39 | README.md | README.md |
Declutter websites
## Version
0.0.1
## What
Cleaner Web is a Firefox addon that loads userstyles on a selection of websites to clean up the visual noise and present you only the important information.
## Why
Ever felt tired of all these buttons, links and widgets everywhere ? Can't help looking at the comments u... |
Declutter websites
## Version
0.0.1
## What
Cleaner Web is a Firefox addon that loads userstyles on a selection of websites to clean up the visual noise and present you only the important information.
## Why
Ever felt tired of all these buttons, links and widgets everywhere ? Can't help looking at the comments u... | Add xpi link in readme | Add xpi link in readme | Markdown | mpl-2.0 | Farof/cleaner-web,Farof/cleaner-web | markdown | ## Code Before:
Declutter websites
## Version
0.0.1
## What
Cleaner Web is a Firefox addon that loads userstyles on a selection of websites to clean up the visual noise and present you only the important information.
## Why
Ever felt tired of all these buttons, links and widgets everywhere ? Can't help looking a... |
1dccf5f3e0319981b0041a27538033a2a3c39aef | Cargo.toml | Cargo.toml | [package]
name = "substudy"
version = "0.0.1"
authors = ["Eric Kidd <git@randomhacks.net>"]
[dependencies.peg]
git = "https://github.com/kevinmehall/rust-peg.git"
[dependencies.docopt_macros]
git = "git://github.com/docopt/docopt.rs"
[dependencies.encoding]
git = "https://github.com/lifthrasiir/rust-encoding"
[dep... | [package]
name = "substudy"
version = "0.0.1"
authors = ["Eric Kidd <git@randomhacks.net>"]
[dependencies]
docopt_macros = "~0.6.8"
encoding = "~0.2.3"
[dependencies.peg]
git = "https://github.com/kevinmehall/rust-peg.git"
[dependencies.uchardet]
git = "git://github.com/emk/rust-uchardet"
[[bin]]
name = "substudy"... | Move several dependencies to crates.io | Move several dependencies to crates.io
| TOML | cc0-1.0 | emk/substudy,emk/substudy,emk/substudy,emk/substudy,emk/substudy | toml | ## Code Before:
[package]
name = "substudy"
version = "0.0.1"
authors = ["Eric Kidd <git@randomhacks.net>"]
[dependencies.peg]
git = "https://github.com/kevinmehall/rust-peg.git"
[dependencies.docopt_macros]
git = "git://github.com/docopt/docopt.rs"
[dependencies.encoding]
git = "https://github.com/lifthrasiir/rust... |
6e7623f1818255ad242804d0011c992d795f49ea | source/TextArea.js | source/TextArea.js | /**
An mochi-styled TextArea control. In addition to the features of
<a href="#enyo.TextArea">enyo.TextArea</a>, mochi.TextArea has a
*defaultFocus* property that can be set to true to focus the TextArea when
it's rendered. Only one TextArea should be set as the *defaultFocus*.
Typically, an mochi.TextArea is pla... | /**
* A mochi-styled TextArea control. In addition to the features of {@link enyo.TextArea}, `mochi.TextArea` has a
* `defaultFocus` property that can be set to true to focus the TextArea when it is rendered. Only one `mochi.TextArea`
* should be set as the `defaultFocus`.
*
* Typically, a `mochi.TextArea` is plac... | Complete JSDoc3 conversion on Mochi | ENYO-13: Complete JSDoc3 conversion on Mochi
| JavaScript | apache-2.0 | mcanthony/mochi,mosoft521/mochi,psarin/mochi,enyojs/mochi,mosoft521/mochi,mcanthony/mochi,psarin/mochi,enyojs/mochi | javascript | ## Code Before:
/**
An mochi-styled TextArea control. In addition to the features of
<a href="#enyo.TextArea">enyo.TextArea</a>, mochi.TextArea has a
*defaultFocus* property that can be set to true to focus the TextArea when
it's rendered. Only one TextArea should be set as the *defaultFocus*.
Typically, an mochi... |
d71db3e8ab0f987cf89f46317d45c5b45c10818d | roles/go/tasks/main.yml | roles/go/tasks/main.yml | ---
- name: Install Go
unarchive:
src: "https://storage.googleapis.com/golang/go{{ go_version }}.darwin-amd64.tar.gz"
dest: /usr/local
copy: no
creates: /usr/local/go/VERSION
tags:
- go
| ---
- name: Checking installed version of go
command: cat /usr/local/go/VERSION
register: current_go_version
ignore_errors: yes
tags:
- go
- name: Remove old version of Go
file:
path: /usr/local/go
state: absent
when: not "go{{ go_version }}" == current_go_version.stdout
tags:
- go
- na... | Make it easy to upgrade go | Make it easy to upgrade go
* Check to see if go is installed and store the version
* Remove the current version of go if it is different
* Install new version of go
| YAML | mit | tmiller/polka | yaml | ## Code Before:
---
- name: Install Go
unarchive:
src: "https://storage.googleapis.com/golang/go{{ go_version }}.darwin-amd64.tar.gz"
dest: /usr/local
copy: no
creates: /usr/local/go/VERSION
tags:
- go
## Instruction:
Make it easy to upgrade go
* Check to see if go is installed and store the ... |
eb90caa91e432725f0fcf105aa9ada64483e5631 | ktor-client/ktor-client-core/src/io/ktor/client/utils/HttpCacheControl.kt | ktor-client/ktor-client-core/src/io/ktor/client/utils/HttpCacheControl.kt | package io.ktor.client.utils
import io.ktor.http.*
object CacheControl {
val MAX_AGE = "max-age"
val MIN_FRESH = "min-fresh"
val ONLY_IF_CACHED = "only-if-cached"
val MAX_STALE = "max-stale"
val NO_CACHE = "no-cache"
val NO_STORE = "no-store"
val NO_TRANSFORM = "no-transform"
val MU... | package io.ktor.client.utils
import io.ktor.http.*
object CacheControl {
val MAX_AGE = "max-age"
val MIN_FRESH = "min-fresh"
val ONLY_IF_CACHED = "only-if-cached"
val MAX_STALE = "max-stale"
val NO_CACHE = "no-cache"
val NO_STORE = "no-store"
val NO_TRANSFORM = "no-transform"
val MU... | Remove old helper methods, fix argument names | Remove old helper methods, fix argument names
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | kotlin | ## Code Before:
package io.ktor.client.utils
import io.ktor.http.*
object CacheControl {
val MAX_AGE = "max-age"
val MIN_FRESH = "min-fresh"
val ONLY_IF_CACHED = "only-if-cached"
val MAX_STALE = "max-stale"
val NO_CACHE = "no-cache"
val NO_STORE = "no-store"
val NO_TRANSFORM = "no-transf... |
61a33e9a9662ac3cf0f169a819eb0ccfedf1458c | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.4.2
- 2.3.5
- 2.2.8
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
addons:
code_climate:
repo_token: 50425d682162d68af0b65bd9e5160da8337d2159fc3ebc00d2a5b14386548ac5
after_success:
- bundle exec codeclimate-test-reporter
| language: ruby
rvm:
- 2.6.3
- 2.5.3
- 2.4.6
- 2.3.7
- 2.2.10
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
addons:
code_climate:
repo_token: 50425d682162d68af0b65bd9e5160da8337d2159fc3ebc00d2a5b14386548ac5
after_success:
- bundle exec codeclimate... | Add more recent Ruby versions to Travis | Add more recent Ruby versions to Travis
| YAML | mit | ssaunier/github_webhook | yaml | ## Code Before:
language: ruby
rvm:
- 2.4.2
- 2.3.5
- 2.2.8
gemfile:
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
addons:
code_climate:
repo_token: 50425d682162d68af0b65bd9e5160da8337d2159fc3ebc00d2a5b14386548ac5
after_success:
- bundle exec codeclimate-test... |
806758a7afd932067a14ec7655c5a61031ab919d | wercker.yml | wercker.yml | box: node
build:
steps:
- script:
name: os setup
code: |
apt -y update --fix-missing
apt -y install inkscape pngquant rake
- script:
name: build
code: rake build
- script:
name: test
code: rake test
| box: node
build:
steps:
- script:
name: os setup
code: |
apt -y update --fix-missing
apt -y install inkscape pngquant rake
- script:
name: secret
code: echo $FUNCTIONS_RUNTIMECONFIG_FILE | base64 -d > functions/.runtimeconfig.json
- script:
nam... | Set up secret files before testing | Set up secret files before testing
| YAML | mit | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | yaml | ## Code Before:
box: node
build:
steps:
- script:
name: os setup
code: |
apt -y update --fix-missing
apt -y install inkscape pngquant rake
- script:
name: build
code: rake build
- script:
name: test
code: rake test
## Instruction:
Set ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.