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
393153f9c282ed5eb8384a24072982a1a9f9e456
test/karma.conf.js
test/karma.conf.js
module.exports = function(config) { config.set({ plugins: [ 'karma-jasmine', 'karma-firefox-launcher', 'karma-phantomjs-launcher', require('../index') ], frameworks: ['jasmine', 'loud'], browsers: ['Firefox', 'PhantomJS'], file...
module.exports = function(config) { config.set({ plugins: [ 'karma-jasmine', 'karma-firefox-launcher', 'karma-phantomjs-launcher', require('../index') ], frameworks: ['jasmine', 'loud'], browsers: ['Firefox', 'PhantomJS'], file...
Change reporter for clean output
Change reporter for clean output
JavaScript
mit
ruslansagitov/karma-loud
javascript
## Code Before: module.exports = function(config) { config.set({ plugins: [ 'karma-jasmine', 'karma-firefox-launcher', 'karma-phantomjs-launcher', require('../index') ], frameworks: ['jasmine', 'loud'], browsers: ['Firefox', 'PhantomJS...
8335cf17bcd31807abf8bbc4a4a73dd0dad47150
release_process.md
release_process.md
Once all code changes for this version have been committed, a release can be created with the following steps: 1. Set the version in index.html 1. Update changelog 1. Run `python compile.py` 1. Commit these changes with message `Release vX.Y.Z` 1. Tag the commit `git tag X.Y.Z` 1. Push the changes `git push` 1. Push t...
Once all code changes for this version have been committed, a release can be created with the following steps: 1. Run tests and ensure all tests pass 1. Set the version in index.html 1. Update changelog 1. Run `python compile.py` 1. Commit these changes with message `Release vX.Y.Z` 1. Tag the commit `git tag X.Y.Z` 1...
Add testing and publishing to release process
Add testing and publishing to release process
Markdown
mit
iancoleman/bip39,iancoleman/bip39,iancoleman/bip39,Coinomi/bip39,iancoleman/bip39,iancoleman/bip39,Coinomi/bip39,Coinomi/bip39
markdown
## Code Before: Once all code changes for this version have been committed, a release can be created with the following steps: 1. Set the version in index.html 1. Update changelog 1. Run `python compile.py` 1. Commit these changes with message `Release vX.Y.Z` 1. Tag the commit `git tag X.Y.Z` 1. Push the changes `git...
76b84a31e0ae68950f3d7a59783f163f880e95e1
.linter/linter.sh
.linter/linter.sh
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090 -e SC2154" # Run linter shellcheck "$@"
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090 -e SC2154" # Run linter if type shellcheck &>/dev/null ; then shellcheck "$@" fi
Add condition block to check that shellcheck is installed
Add condition block to check that shellcheck is installed
Shell
mit
simtechdev/dkrpm,simtechdev/smtk-dkrpm
shell
## Code Before: export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090 -e SC2154" # Run linter shellcheck "$@" ## Instruction: Add condition block to check that shellcheck is installed ## Code After: export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090 -e SC2154" # Run linter if type shellcheck &>/dev/null ; then ...
5259fac8d7018ff0f327c01e0c047f38cdf83832
Project/swiftf/swiftf.swift
Project/swiftf/swiftf.swift
import Foundation extension Optional { func reduce<U>(initial: U, combine: (U, T) -> U) -> U { switch self { case .None: return initial case .Some(let value): return combine(initial, value) } } func flatMap<U>(transform: T -> U?) -> U? { return map(transform).reduce(nil) { $1 } } func filter(i...
import Foundation extension Optional { func reduce<U>(initial: U, combine: (U, T) -> U) -> U { switch self { case .None: return initial case .Some(let value): return combine(initial, value) } } func filter(includeElement: T -> Bool) -> T? { return flatMap { includeElement($0) ? $0 : nil } } fu...
Remove flatMap for Swift 1.2
Remove flatMap for Swift 1.2
Swift
mit
koher/swiftf
swift
## Code Before: import Foundation extension Optional { func reduce<U>(initial: U, combine: (U, T) -> U) -> U { switch self { case .None: return initial case .Some(let value): return combine(initial, value) } } func flatMap<U>(transform: T -> U?) -> U? { return map(transform).reduce(nil) { $1 } } ...
19601cd320096fed1841337e03c77857603ba4e1
database/models/clan.js
database/models/clan.js
const User = require('./user'); const {Sequelize, db} = require('../connection'); const ClanModel = db.define('clan', { name: { type: Sequelize.STRING(64), allowNull: false, unique: true }, tag: { type: Sequelize.STRING(8), allowNull: true, }, avatar: { type: Sequelize.STRING(144), ...
const User = require('./user'); const {Sequelize, db} = require('../connection'); const ClanModel = db.define('clan', { name: { type: Sequelize.STRING(64), allowNull: false, unique: true }, tag: { type: Sequelize.STRING(8), allowNull: true, }, avatar: { type: Sequelize.STRING(144), ...
Update constructor to match aliased foreign key
Update constructor to match aliased foreign key
JavaScript
mit
iMobs/MustardTigers,MustardTigers/MustardTigers
javascript
## Code Before: const User = require('./user'); const {Sequelize, db} = require('../connection'); const ClanModel = db.define('clan', { name: { type: Sequelize.STRING(64), allowNull: false, unique: true }, tag: { type: Sequelize.STRING(8), allowNull: true, }, avatar: { type: Sequelize...
12609346151964a96fa983b186bbbb6f9b0ee3ad
setup.cfg
setup.cfg
[flake8] ignore = E501 exclude = .git,__pycache__, docs, .github, packages, venv, build, *.egg-info, dist, WhiteTestApp, UIAutomationTest, deploy
[flake8] ignore = E501 exclude = .git,__pycache__, docs, .github, packages, venv, build, *.egg-info, dist, WhiteTestApp, UIAutomationTest, deploy max-complexity=10
Enforce mccabe cyclomatic complexity check
Enforce mccabe cyclomatic complexity check
INI
apache-2.0
Omenia/robotframework-whitelibrary,Omenia/robotframework-whitelibrary
ini
## Code Before: [flake8] ignore = E501 exclude = .git,__pycache__, docs, .github, packages, venv, build, *.egg-info, dist, WhiteTestApp, UIAutomationTest, deploy ## Instruction: Enforce mccabe cyclomatic complexity check ## Code After: [flake8] ignore = E501 exclude = .git,__pycache__, docs, .github, packages, venv, ...
41beabaf411e4d8a8388c05f943f8639eec3933b
spec/requests/index_districts_spec.rb
spec/requests/index_districts_spec.rb
require 'rails_helper' describe "GET /districts", type: :request do let(:user) { create :user } let(:auth) { {"X-Barcelona-Token" => user.token} } let(:district) { create :district } it "lists districts" do get "/v1/districts/#{district.name}", nil, auth expect(response.status).to eq 200 end end
require 'rails_helper' describe "GET /districts", type: :request do let(:user) { create :user } let(:auth) { {"X-Barcelona-Token" => user.token} } let!(:district) { create :district } it "lists districts" do get "/v1/districts", nil, auth expect(response.status).to eq 200 districts = JSON.load(res...
Fix index districts request spec
Fix index districts request spec
Ruby
mit
degica/barcelona,degica/barcelona,degica/barcelona,degica/barcelona,degica/barcelona,degica/barcelona
ruby
## Code Before: require 'rails_helper' describe "GET /districts", type: :request do let(:user) { create :user } let(:auth) { {"X-Barcelona-Token" => user.token} } let(:district) { create :district } it "lists districts" do get "/v1/districts/#{district.name}", nil, auth expect(response.status).to eq 2...
7e13485d864e46c5c15475916a4dea0a684eba75
package.json
package.json
{ "name": "apostrophe-blog", "version": "2.1.2", "description": "Blogging for the Apostrophe content management system", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git@github.com:punkave/apostrophe-blog.git" ...
{ "name": "apostrophe-blog", "version": "2.1.2", "description": "Blogging for the Apostrophe content management system", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git@github.com:punkave/apostrophe-blog.git" ...
Add keywords for better discoverability on NPM
Add keywords for better discoverability on NPM
JSON
mit
punkave/apostrophe-blog,punkave/apostrophe-blog
json
## Code Before: { "name": "apostrophe-blog", "version": "2.1.2", "description": "Blogging for the Apostrophe content management system", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git@github.com:punkave/apost...
2b18cb6b84eab513aa04bbdff9ea57a2f0bd8054
tox.ini
tox.ini
[tox] envlist = py{36,37,38,39}-dj{22,30,31,master} flake8, isort [gh-actions] python = 3.6: py36 3.7: py37 3.8: py38, flake8, isort 3.9: py39 [testenv] deps = freezegun==0.3.12 -rrequirements-test.txt dj22: Django==2.2.* dj30: Django==3.0.* dj31: Django==3.1.* djmaster...
[tox] envlist = py{36,37,38,39}-dj{22,30,31,main} flake8, isort [gh-actions] python = 3.6: py36 3.7: py37 3.8: py38, flake8, isort 3.9: py39 [testenv] deps = freezegun==0.3.12 -rrequirements-test.txt dj22: Django==2.2.* dj30: Django==3.0.* dj31: Django==3.1.* djmain: ht...
Rename Django's dev branch to main.
Rename Django's dev branch to main. More information: https://groups.google.com/g/django-developers/c/tctDuKUGosc/ Refs: https://github.com/django/django/pull/14048
INI
bsd-3-clause
carljm/django-model-utils,carljm/django-model-utils
ini
## Code Before: [tox] envlist = py{36,37,38,39}-dj{22,30,31,master} flake8, isort [gh-actions] python = 3.6: py36 3.7: py37 3.8: py38, flake8, isort 3.9: py39 [testenv] deps = freezegun==0.3.12 -rrequirements-test.txt dj22: Django==2.2.* dj30: Django==3.0.* dj31: Django==3....
3bfb6c6baf7e4cf9a7897aa276b72427b4f15ac8
templates/openrc.erb
templates/openrc.erb
export OS_TENANT_NAME='<%= @tenant %>' export OS_USERNAME='<%= @user %>' export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>' export OS_AUTH_URL='http://<%= scope.function_hiera(['control_node'])%>:5000/v3' export OS_AUTH_STRATEGY='keystone' export OS_REGION_NAME='<%= scope.function_hiera(['region_name']) %>' expo...
export OS_TENANT_NAME='<%= @tenant %>' export OS_USERNAME='<%= @user %>' export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>' export OS_AUTH_URL='http://<%= scope.function_hiera(['control_node'])%>:5000/v3' export OS_AUTH_STRATEGY='keystone' export OS_REGION_NAME='<%= scope.function_hiera(['region_name']) %>' expo...
Set OS_DOMAIN stuff for v3 to work
Set OS_DOMAIN stuff for v3 to work
HTML+ERB
apache-2.0
DeploymentsBook/puppet-deployments,DeploymentsBook/puppet-deployments
html+erb
## Code Before: export OS_TENANT_NAME='<%= @tenant %>' export OS_USERNAME='<%= @user %>' export OS_PASSWORD='<%= @password.gsub(/'/){ %q(\') } %>' export OS_AUTH_URL='http://<%= scope.function_hiera(['control_node'])%>:5000/v3' export OS_AUTH_STRATEGY='keystone' export OS_REGION_NAME='<%= scope.function_hiera(['region_...
f81ddc6297b1372cdba3a5161b4f30d0a42d2f58
src/factor.py
src/factor.py
from collections import Counter from functools import ( lru_cache, reduce, ) from itertools import combinations from prime import Prime @lru_cache(maxsize=None) def get_prime_factors(n): """ Returns the counts of each prime factor of n """ if n == 1: return Counter() divisor = 2 wh...
from collections import Counter from functools import ( lru_cache, reduce, ) from itertools import combinations from prime import Prime @lru_cache(maxsize=None) def get_prime_factors(n): """ Returns the counts of each prime factor of n """ if n < 1: raise ValueError if n == 1: ...
Raise ValueError if n < 1
Raise ValueError if n < 1
Python
mit
mackorone/euler
python
## Code Before: from collections import Counter from functools import ( lru_cache, reduce, ) from itertools import combinations from prime import Prime @lru_cache(maxsize=None) def get_prime_factors(n): """ Returns the counts of each prime factor of n """ if n == 1: return Counter() di...
d697bb2e03487713a22c427314a5559ca4283811
project.clj
project.clj
(defproject jungerer "0.1.2-SNAPSHOT" :description "Clojure network/graph library wrapping JUNG" :url "https://github.com/totakke/jungerer" :license {:name "The BSD 3-Clause License" :url "https://opensource.org/licenses/BSD-3-Clause"} :dependencies [[org.clojure/clojure "1.8.0"] [n...
(defproject jungerer "0.1.2-SNAPSHOT" :description "Clojure network/graph library wrapping JUNG" :url "https://github.com/totakke/jungerer" :license {:name "The BSD 3-Clause License" :url "https://opensource.org/licenses/BSD-3-Clause"} :dependencies [[org.clojure/clojure "1.8.0"] [n...
Add `dev-resources` to `resource-paths` of profile dev and 1.7
Add `dev-resources` to `resource-paths` of profile dev and 1.7
Clojure
bsd-3-clause
totakke/jungerer
clojure
## Code Before: (defproject jungerer "0.1.2-SNAPSHOT" :description "Clojure network/graph library wrapping JUNG" :url "https://github.com/totakke/jungerer" :license {:name "The BSD 3-Clause License" :url "https://opensource.org/licenses/BSD-3-Clause"} :dependencies [[org.clojure/clojure "1.8.0"] ...
142e361d2bcfbdc15939ad33c600bf943025f7b1
api/v1/serializers/no_project_serializer.py
api/v1/serializers/no_project_serializer.py
from core.models.user import AtmosphereUser from core.query import only_current, only_current_source from rest_framework import serializers from .application_serializer import ApplicationSerializer from .instance_serializer import InstanceSerializer from .volume_serializer import VolumeSerializer class NoProjectSeria...
from core.models.user import AtmosphereUser from core.query import only_current, only_current_source from rest_framework import serializers from .instance_serializer import InstanceSerializer from .volume_serializer import VolumeSerializer class NoProjectSerializer(serializers.ModelSerializer): instances = serial...
Remove final references to application
Remove final references to application
Python
apache-2.0
CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend
python
## Code Before: from core.models.user import AtmosphereUser from core.query import only_current, only_current_source from rest_framework import serializers from .application_serializer import ApplicationSerializer from .instance_serializer import InstanceSerializer from .volume_serializer import VolumeSerializer clas...
09c9ed1924ad336303b423d6ecb293dff7eb67c4
analysis/openings.sh
analysis/openings.sh
game_file="$1" moves=${2:-1} # number of starting moves (default 1) paste_dashes= for _ in $(seq 1 "$moves") do paste_dashes=$paste_dashes'- ' done bindir="$(dirname "$0")" echo "# Most popular openings:" grep -A$((moves-1)) '^1\.' "$game_file" | # First n moves ./"$bindir"/delete_comments.sh | grep ...
game_file="$1" moves=${2:-1} # number of starting moves (default 1) paste_dashes= for _ in $(seq 1 "$moves") do paste_dashes=$paste_dashes'- ' done bindir="$(dirname "$0")" echo "# Most popular openings:" grep -A$((moves-1)) '^1\.' "$game_file" | # First n moves ./"$bindir"/delete_comments.sh | grep ...
Delete ending marks if game ends after one ply
Delete ending marks if game ends after one ply
Shell
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
shell
## Code Before: game_file="$1" moves=${2:-1} # number of starting moves (default 1) paste_dashes= for _ in $(seq 1 "$moves") do paste_dashes=$paste_dashes'- ' done bindir="$(dirname "$0")" echo "# Most popular openings:" grep -A$((moves-1)) '^1\.' "$game_file" | # First n moves ./"$bindir"/delete_comments.sh ...
987cc3ac97c291954ee7052dba4e570158b76bd5
lib/json_builder/extensions.rb
lib/json_builder/extensions.rb
require 'active_support/time' class FalseClass def to_builder self.inspect end end class TrueClass def to_builder self.inspect end end class String def to_builder self.inspect end end class Hash def to_builder self.to_json end end class NilClass def to_builder 'null' end end...
require 'active_support/time_with_zone' class FalseClass def to_builder self.inspect end end class TrueClass def to_builder self.inspect end end class String def to_builder self.inspect end end class Hash def to_builder self.to_json end end class NilClass def to_builder 'null'...
Add support for Rails 2.x.x apps.
Add support for Rails 2.x.x apps.
Ruby
mit
newenough/json_builder,dewski/json_builder,tytek2012/json_builder
ruby
## Code Before: require 'active_support/time' class FalseClass def to_builder self.inspect end end class TrueClass def to_builder self.inspect end end class String def to_builder self.inspect end end class Hash def to_builder self.to_json end end class NilClass def to_builder ...
9c1605c5f2bf1a00e96175596534b7a4ad900ee4
examples/writing_flash.cpp
examples/writing_flash.cpp
using namespace aery; int main(void) { int errno; uint16_t page = FLASH_LAST_PAGE; char buf[512] = {'\0'}; init_board(); gpio_init_pin(LED, GPIO_OUTPUT|GPIO_HIGH); /* If page is empty, write "foo". Else read page. */ if (flashc_page_isempty(page)) { strcpy(buf, "foo"); errno = flashc_save_page(page, buf)...
using namespace aery; void lock_flash_programspace(void) { int i = FLASH_LAST_PAGE; for (; flashc_page_isempty(i); i--); for (; i >= 0; i--) { flashc_lock_page(i); } } int main(void) { int errno; uint16_t page = FLASH_LAST_PAGE; char buf[512] = {'\0'}; init_board(); gpio_init_pin(LED, GPIO_OUTPUT|GPIO_HI...
Enhance example to write flash
Enhance example to write flash
C++
bsd-3-clause
denravonska/aery32,aery32/aery32,aery32/aery32,denravonska/aery32
c++
## Code Before: using namespace aery; int main(void) { int errno; uint16_t page = FLASH_LAST_PAGE; char buf[512] = {'\0'}; init_board(); gpio_init_pin(LED, GPIO_OUTPUT|GPIO_HIGH); /* If page is empty, write "foo". Else read page. */ if (flashc_page_isempty(page)) { strcpy(buf, "foo"); errno = flashc_save...
dd4394f41aef02d7f214c0c24b946f0b65337273
matrix4j/core/TestVectorIO.java
matrix4j/core/TestVectorIO.java
package matrix4j.core; import matrix4j.core.VectorIO; public class TestVectorIO { static void testLoad() { String filename = "testfiles/vector_src.txt"; Vector v = VectorIO.load(filename); System.out.println(v); } static void testSave() { String filename = "testfiles/vecto...
package matrix4j.core; import matrix4j.core.VectorIO; import matrix4j.core.Assert; public class TestVectorIO { static void testLoad() { String filename = "testfiles/vector_src.txt"; Vector v = VectorIO.load(filename); Vector u = new Vector(new double[]{ 1, 0, 6, 1, 9, 8, 2, 1,...
Raise AssertError if test fails
Raise AssertError if test fails
Java
mit
IshitaTakeshi/Matrix4j,IshitaTakeshi/Matrix4j
java
## Code Before: package matrix4j.core; import matrix4j.core.VectorIO; public class TestVectorIO { static void testLoad() { String filename = "testfiles/vector_src.txt"; Vector v = VectorIO.load(filename); System.out.println(v); } static void testSave() { String filename = ...
fb39e6c09eba3c166aacaeed7239a3db1f68a08a
app/views/admin/budget_groups/_form.html.erb
app/views/admin/budget_groups/_form.html.erb
<%= render "shared/globalize_locales", resource: @group %> <div class="small-12 medium-6"> <%= translatable_form_for [:admin, @budget, @group], url: path do |f| %> <%= render "shared/errors", resource: @group %> <%= f.translatable_fields do |translations_form| %> <%= translations_form.text_field :nam...
<%= render "shared/globalize_locales", resource: @group %> <%= translatable_form_for [:admin, @budget, @group], url: path do |f| %> <%= render "shared/errors", resource: @group %> <div class="row"> <%= f.translatable_fields do |translations_form| %> <div class="small-12 medium-6 column end"> <%...
Align admin budget_groups form fields with new translations interface
Align admin budget_groups form fields with new translations interface
HTML+ERB
agpl-3.0
consul/consul,usabi/consul_san_borondon,consul/consul,usabi/consul_san_borondon,consul/consul,consul/consul,usabi/consul_san_borondon,consul/consul,usabi/consul_san_borondon
html+erb
## Code Before: <%= render "shared/globalize_locales", resource: @group %> <div class="small-12 medium-6"> <%= translatable_form_for [:admin, @budget, @group], url: path do |f| %> <%= render "shared/errors", resource: @group %> <%= f.translatable_fields do |translations_form| %> <%= translations_form...
437eb8432fe91865d3cb24109e1b99818de8ce4e
pysc2/bin/battle_net_maps.py
pysc2/bin/battle_net_maps.py
"""Print the list of available maps according to the game.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from pysc2 import run_configs def main(unused_argv): with run_configs.get().start(want_rgb=False) as controller: avai...
"""Print the list of available maps according to the game.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from pysc2 import run_configs def main(unused_argv): with run_configs.get().start(want_rgb=False) as controller: avai...
Sort and indent the map lists.
Sort and indent the map lists. PiperOrigin-RevId: 249276696
Python
apache-2.0
deepmind/pysc2
python
## Code Before: """Print the list of available maps according to the game.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from pysc2 import run_configs def main(unused_argv): with run_configs.get().start(want_rgb=False) as cont...
516a89f936a4e00e86866cfed419564a85740e19
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8) enable_testing() project(toml11) include_directories(${PROJECT_SOURCE_DIR}) add_definitions(-std=c++11) add_subdirectory(tests)
cmake_minimum_required(VERSION 2.8) enable_testing() project(toml11) include(CheckCXXCompilerFlag) if("${CMAKE_VERSION}" VERSION_GREATER 3.1) set(CMAKE_CXX_STANDARD 11) set(CXX_STANDARD_REQUIRED ON) else() # Manually check for C++11 compiler flag. CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_...
Improve checks for C++11 compiler flags
Improve checks for C++11 compiler flags
Text
mit
ToruNiina/toml11
text
## Code Before: cmake_minimum_required(VERSION 2.8) enable_testing() project(toml11) include_directories(${PROJECT_SOURCE_DIR}) add_definitions(-std=c++11) add_subdirectory(tests) ## Instruction: Improve checks for C++11 compiler flags ## Code After: cmake_minimum_required(VERSION 2.8) enable_testing() project(toml...
329ac77e97d7ef5f99f3df82a2ba8de24dd6df42
CONTRIBUTING.md
CONTRIBUTING.md
I love accepting issues and pull requests. I only ask for a few guidelines to be followed that will make it much easier for me to solve your issue or get your code merged. 1. Use GitHub Issues or Pull Requests over sending an email. It's much easier for me to keep track of your issue through GitHub. 2. For __compiler...
I love accepting issues and pull requests. I only ask for a few guidelines to be followed that will make it much easier for me to solve your issue or get your code merged. 1. Use GitHub Issues or Pull Requests over sending an email. It's much easier for me to keep track of your issue through GitHub. 2. For __compiler...
Fix wording around stable branches
Fix wording around stable branches
Markdown
mit
film42/protobuf,localshred/protobuf,lookout/protobuffy,lookout/protobuffy,brianstien/protobuf,quixoten/protobuf,film42/protobuf,ruby-protobuf/protobuf,zanker/protobuf,localshred/protobuf,ruby-protobuf/protobuf,brianstien/protobuf,quixoten/protobuf,zanker/protobuf
markdown
## Code Before: I love accepting issues and pull requests. I only ask for a few guidelines to be followed that will make it much easier for me to solve your issue or get your code merged. 1. Use GitHub Issues or Pull Requests over sending an email. It's much easier for me to keep track of your issue through GitHub. 2...
9f6244e43e007f27ccf02d8e4ebcdf12d182a39b
src/meat/math/abBlood.c
src/meat/math/abBlood.c
void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->param.gam_ab ) * sim->c_b; // Expo...
void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->param.gam_ab ) * sim->c_b; // Expo...
Add antibiotic concentration artificial minimum floor
Add antibiotic concentration artificial minimum floor
C
mit
bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters,bacteriaboyz/CheatingTheCheaters
c
## Code Before: void updateAB(simBac *sim) { sim->c_b = sim->c_b_peak * \ exp( -1 * sim->param.k_a * \ ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \ / sim->param.v_w ); // Exponential decay from last time spike // ( 1.0 - sim->param.t_s * sim->param.gam_ab ) * sim->c_b;...
74fbede9ef2443b7b416aa224650d510cfce3b9d
.travis.yml
.travis.yml
language: python python: - "2.7" # Twisted is required for trial. install: - pip install twisted==13.2.0 pyflakes==0.8.1 . script: - trial twistedchecker - python ./check_pyflakes.py ./twistedchecker setup.py # Dump trial log on failure. after_failure: "cat _trial_temp/test.log"
language: python python: - "2.7" # Twisted is required for trial. install: - pip install --upgrade twisted==13.2.0 pyflakes==0.8.1 . script: - trial twistedchecker - python ./check_pyflakes.py ./twistedchecker setup.py # Dump trial log on failure. after_failure: "cat _trial_temp/test.log"
Update pip to pin versions from install_requires
Update pip to pin versions from install_requires
YAML
mit
twisted/twistedchecker
yaml
## Code Before: language: python python: - "2.7" # Twisted is required for trial. install: - pip install twisted==13.2.0 pyflakes==0.8.1 . script: - trial twistedchecker - python ./check_pyflakes.py ./twistedchecker setup.py # Dump trial log on failure. after_failure: "cat _trial_temp/test.log" ## Instruct...
2519d8edcada5c647e2a490044cca8910cef24e7
lib/es6.js
lib/es6.js
module.exports = { extends: [ 'eslint-config-airbnb-base/rules/es6' ], rules: { // Enforces no braces where they can be omitted // http://eslint.org/docs/rules/arrow-body-style 'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: true, }], // Suggest using Re...
module.exports = { extends: [ 'eslint-config-airbnb-base/rules/es6' ], rules: { // Suggest using Reflect methods where applicable // http://eslint.org/docs/rules/prefer-reflect 'prefer-reflect': 'warn', }, };
Disable custom configuration for `arrow-body-style`
chore: Disable custom configuration for `arrow-body-style`
JavaScript
mit
njakob/eslint-config
javascript
## Code Before: module.exports = { extends: [ 'eslint-config-airbnb-base/rules/es6' ], rules: { // Enforces no braces where they can be omitted // http://eslint.org/docs/rules/arrow-body-style 'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: true, }], // ...
ab99ac551bd95e1c2c611e6af1f8a4d625497c42
cmd_current.go
cmd_current.go
package main var CmdCurrent = &Cmd{ Name: "current", Desc: "Reports whether direnv's view of a file is current (or stale)", Args: []string{"PATH"}, Private: true, Fn: currentCommandFn, } func currentCommandFn(env Env, args []string) (err error) { path := args[1] watches := NewFileTimes() watchSt...
package main import ( "errors" ) var CmdCurrent = &Cmd{ Name: "current", Desc: "Reports whether direnv's view of a file is current (or stale)", Args: []string{"PATH"}, Private: true, Fn: currentCommandFn, } func currentCommandFn(env Env, args []string) (err error) { if len(args) < 2 { err = er...
Handle `direnv current` with no argument
Handle `direnv current` with no argument Fixes #216
Go
mit
direnv/direnv,direnv/direnv
go
## Code Before: package main var CmdCurrent = &Cmd{ Name: "current", Desc: "Reports whether direnv's view of a file is current (or stale)", Args: []string{"PATH"}, Private: true, Fn: currentCommandFn, } func currentCommandFn(env Env, args []string) (err error) { path := args[1] watches := NewFile...
6d2557c54df9192e1daa9386843c8084a1e96f81
src/template/root.phtml
src/template/root.phtml
<?php namespace qnd; /** @var callable $§ */?> <!DOCTYPE html> <html class="<?=$§('class');?>"> <head> <?= §('head');?> </head> <body> <?= §('top');?> <?php if ($html = §('left')):?> <aside id="left"> <?= $html;?> </aside> <?php endif;?> <m...
<?php namespace qnd; /** @var callable $§ */?> <!DOCTYPE html> <html data-id="<?= request('id');?>" data-entity="<?= request('entity');?>" data-action="<?= request('action');?>"> <head> <?= §('head');?> </head> <body> <?= §('top');?> <?php if ($html = §('left')):?> <aside id=...
Add some data attributes to html element
Add some data attributes to html element
HTML+PHP
mit
akilli/cms,akilli/cms,akilli/cms
html+php
## Code Before: <?php namespace qnd; /** @var callable $§ */?> <!DOCTYPE html> <html class="<?=$§('class');?>"> <head> <?= §('head');?> </head> <body> <?= §('top');?> <?php if ($html = §('left')):?> <aside id="left"> <?= $html;?> </aside> <?php end...
be081314538eb6a87bbe58acdc4a19d7b6190c13
.github/workflows/publish-image.yaml
.github/workflows/publish-image.yaml
name: Publish Image on: push: branches: ['master'] tags: ['*'] env: DOCKER_HUB_USER: phlak jobs: build-container: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v2 - name: Log in to Docker Hub uses: docker/login-action@v1 w...
name: Publish Image on: push: branches: ['master'] tags: ['*'] pull_request: branches: ['master'] env: DOCKER_HUB_USER: phlak jobs: build-container: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v2 - name: Log in to Docker Hub ...
Test pull requests in CI
Test pull requests in CI
YAML
mit
PHLAK/docker-mumble
yaml
## Code Before: name: Publish Image on: push: branches: ['master'] tags: ['*'] env: DOCKER_HUB_USER: phlak jobs: build-container: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v2 - name: Log in to Docker Hub uses: docker/login-act...
ff66bed0b091a7c791a8fcd4342dc16859ce6586
src/Oro/Bundle/SyncBundle/Resources/views/maintenance_js.html.twig
src/Oro/Bundle/SyncBundle/Resources/views/maintenance_js.html.twig
<script type="text/javascript"> require(['orosync/js/sync', 'oroui/js/messenger'], function(sync, messenger){ sync.subscribe('oro/maintenance', function (response) { messenger.notificationFlashMessage(response.isOn ? 'error' : 'success', response.msg); }); }); </script>
<script type="text/javascript"> require(['orosync/js/sync', 'oroui/js/modal'], function(sync, Modal){ // captured outer variable var dialog = null; sync.subscribe('oro/maintenance', function (response) { if(response.isOn){ var maintenanceModal = Modal.extend(...
Disable screen for maintenance mode - show popup dialog with overlay instead of red message Maintanance Mode is ON
BAP-3749: Disable screen for maintenance mode - show popup dialog with overlay instead of red message Maintanance Mode is ON
Twig
mit
hugeval/platform,orocrm/platform,trustify/oroplatform,trustify/oroplatform,2ndkauboy/platform,2ndkauboy/platform,morontt/platform,geoffroycochard/platform,ramunasd/platform,orocrm/platform,Djamy/platform,hugeval/platform,hugeval/platform,Djamy/platform,trustify/oroplatform,mszajner/platform,northdakota/platform,northda...
twig
## Code Before: <script type="text/javascript"> require(['orosync/js/sync', 'oroui/js/messenger'], function(sync, messenger){ sync.subscribe('oro/maintenance', function (response) { messenger.notificationFlashMessage(response.isOn ? 'error' : 'success', response.msg); }); }); </s...
370c715876879768a18dbf087a4c83f4603a63c4
README.md
README.md
A demo realtime snake with FortressJS + Socket.IO Use FortressJS : https://github.com/seraum/fortressjs Join us on Slack : https://fortressjs.slack.com * Run on Windows, Mac, Linux, Smartphone ... * Run with all major js engines : V8, SM, Chakra 3 steps installation with git ----------------------------- ``` $ gi...
A demo realtime snake with FortressJS + Socket.IO Use FortressJS : https://github.com/seraum/fortressjs Join us on Slack : https://fortressjs.slack.com * Run on Windows, Mac, Linux, Smartphone ... * Run with all major js engines : V8, SM, Chakra 3 steps installation with git ----------------------------- ``` $ gi...
Add my github repository url
Add my github repository url
Markdown
mit
labodudev/snake,labodudev/snake
markdown
## Code Before: A demo realtime snake with FortressJS + Socket.IO Use FortressJS : https://github.com/seraum/fortressjs Join us on Slack : https://fortressjs.slack.com * Run on Windows, Mac, Linux, Smartphone ... * Run with all major js engines : V8, SM, Chakra 3 steps installation with git -----------------------...
f42b5ab7c2fbb933e883920856e62dd76affcbf5
spec/requests/idea_requests_spec.rb
spec/requests/idea_requests_spec.rb
require 'spec_helper' describe "IdeaRequests" do before do @idea1 = create(:idea) @idea2 = create(:idea) end describe "GET /ideas" do it "should return http success" do get ideas_path expect(response).to be_success end end describe "GET /ideas/new" do before do @user =...
require 'spec_helper' describe "IdeaRequests" do before do @idea1 = create(:idea) @idea2 = create(:idea) end describe "GET /ideas" do it "should return http success" do get ideas_path expect(response).to be_success end end describe "GET /ideas/new" do before do @user =...
Change Idea request pending message
Change Idea request pending message Add individual pending tests for the remaining idea request actions that still need to be tested.
Ruby
agpl-3.0
robinsonj/P4IdeaX,robinsonj/P4IdeaX
ruby
## Code Before: require 'spec_helper' describe "IdeaRequests" do before do @idea1 = create(:idea) @idea2 = create(:idea) end describe "GET /ideas" do it "should return http success" do get ideas_path expect(response).to be_success end end describe "GET /ideas/new" do before ...
cb3ebce8de2c423a8e28265fde1cdf6dec2d492a
devstack/README.rst
devstack/README.rst
====================== Enabling in Devstack ====================== 1. Download DevStack 2. Add this repo as an external repository:: > cat local.conf [[local|localrc]] enable_plugin networking-odl http://git.openstack.org/stackforge/networking-odl enable_service odl-compute odl-server 3. run `...
====================== Enabling in Devstack ====================== 1. Download DevStack 2. Add this repo as an external repository:: > cat local.conf [[local|localrc]] enable_plugin networking-odl http://git.openstack.org/stackforge/networking-odl enable_service odl-compute odl-server 3. Option...
Add instructions for configuring LBaaS V2 with ODL
Add instructions for configuring LBaaS V2 with ODL This has been tested to come up, so add instructions on how to try it out for those wanting to try OpenDaylight with the Neutron LBaaS V2 API. Change-Id: I35b5f67fab4ebdbde926fd60e3b43dea0ed87858
reStructuredText
apache-2.0
schoksey/networking-odl,openstack/networking-odl,flavio-fernandes/networking-odl,FedericoRessi/networking-odl,schoksey/networking-odl,CiscoSystems/networking-odl,openstack/networking-odl,openstack/networking-odl,flavio-fernandes/networking-odl,CiscoSystems/networking-odl,FedericoRessi/networking-odl
restructuredtext
## Code Before: ====================== Enabling in Devstack ====================== 1. Download DevStack 2. Add this repo as an external repository:: > cat local.conf [[local|localrc]] enable_plugin networking-odl http://git.openstack.org/stackforge/networking-odl enable_service odl-compute odl-s...
2f2f18abbcde94e61c38a519b3b8d959be2e0301
modules/roles.py
modules/roles.py
import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg)
import discord import shlex rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = shlex.split(message.content) if len(msg) != 1 await client.send_message(message.channel, msg[1]) else: break
Modify to use shlex for getting command arguments
Modify to use shlex for getting command arguments
Python
mit
suclearnub/scubot
python
## Code Before: import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg) ## Instruction: Modify to use shlex for getting command arguments ## Code After: import discord import shlex rolesTriggerString = '!role'...
6e5dfce1c61b4273391950fd723325c70c58e0a7
bash/commands/find-and-grep.bash
bash/commands/find-and-grep.bash
alias rg="rg -i" ff() { rg --files | rg "${@:-^}" } ffu() { rg --files -u | rg "${@:-^}" }
alias rg="rg -i" ff() { rg --files | rg "${@:-^}" } ffu() { rg --files -u | rg "${@:-^}" } ftf() { local path=${1:-.} shift find "$path" -type f "$@" } fne() { ff "\\.$1\$" }
Add ftf and fne back
Add ftf and fne back
Shell
mit
jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles
shell
## Code Before: alias rg="rg -i" ff() { rg --files | rg "${@:-^}" } ffu() { rg --files -u | rg "${@:-^}" } ## Instruction: Add ftf and fne back ## Code After: alias rg="rg -i" ff() { rg --files | rg "${@:-^}" } ffu() { rg --files -u | rg "${@:-^}" } ftf() { local path=${1:-.} shift find "$path" ...
3ed2fb0949a7a0e2a49bb0d9d55b067a3833be10
packages/sq/squeather.yaml
packages/sq/squeather.yaml
homepage: https://github.com/massysett/squeather#readme changelog-type: '' hash: 170aa385377c4f9a2bc4b08299c51b7437e30149880461f6f8a154115378c3c4 test-bench-deps: {} maintainer: omari@smileystation.com synopsis: Use databases with the version 3 series of the SQLite C library changelog: '' basic-deps: bytestring: -any...
homepage: https://github.com/massysett/squeather#readme changelog-type: markdown hash: e07011f80e2da9e99121086d02514c34923ed7dea79be4b0ece29f0cb2e7747e test-bench-deps: {} maintainer: omari@smileystation.com synopsis: Use databases with the version 3 series of the SQLite C library changelog: | # Changelog for squeath...
Update from Hackage at 2020-02-22T21:20:19Z
Update from Hackage at 2020-02-22T21:20:19Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/massysett/squeather#readme changelog-type: '' hash: 170aa385377c4f9a2bc4b08299c51b7437e30149880461f6f8a154115378c3c4 test-bench-deps: {} maintainer: omari@smileystation.com synopsis: Use databases with the version 3 series of the SQLite C library changelog: '' basic-deps: ...
5f0f0a75b380392b6e15acfcf46b30853dd2fb7b
setup.py
setup.py
from setuptools import setup version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learning data analysis...
from setuptools import setup, find_packages version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learnin...
Include subdirectories when building the package.
Include subdirectories when building the package.
Python
mit
kvh/ramp
python
## Code Before: from setuptools import setup version = '0.1' setup(name='ramp', version=version, description="Rapid machine learning prototyping", long_description=open("README.md").read(), classifiers=[ 'License :: OSI Approved :: BSD License' ], keywords='machine learni...
534066b1228bb0070c1d62445155afa696a37921
contrail_provisioning/config/templates/contrail_plugin_ini.py
contrail_provisioning/config/templates/contrail_plugin_ini.py
import string template = string.Template(""" [APISERVER] api_server_ip = $__contrail_api_server_ip__ api_server_port = $__contrail_api_server_port__ multi_tenancy = $__contrail_multi_tenancy__ #use_ssl = False #insecure = False #certfile=$__contrail_api_server_cert_file__ #keyfile=$__contrail_api_server_key_file__ #ca...
import string template = string.Template(""" [APISERVER] api_server_ip = $__contrail_api_server_ip__ api_server_port = $__contrail_api_server_port__ multi_tenancy = $__contrail_multi_tenancy__ #use_ssl = False #insecure = False #certfile=$__contrail_api_server_cert_file__ #keyfile=$__contrail_api_server_key_file__ #ca...
Enable service-interface and vf-binding extensions by default in contrail based provisioning.
Enable service-interface and vf-binding extensions by default in contrail based provisioning. Change-Id: I5916f41cdf12ad54e74c0f76de244ed60f57aea5 Partial-Bug: 1556336
Python
apache-2.0
Juniper/contrail-provisioning,Juniper/contrail-provisioning
python
## Code Before: import string template = string.Template(""" [APISERVER] api_server_ip = $__contrail_api_server_ip__ api_server_port = $__contrail_api_server_port__ multi_tenancy = $__contrail_multi_tenancy__ #use_ssl = False #insecure = False #certfile=$__contrail_api_server_cert_file__ #keyfile=$__contrail_api_serve...
2e26abc2448fa414df79d342b331d5a1656a2d43
community/server/src/docs/dev/rest-api/node-properties.asciidoc
community/server/src/docs/dev/rest-api/node-properties.asciidoc
[[rest-api-node-properties]] == Node properties == include::set-property-on-node.asciidoc[] include::update-node-properties.asciidoc[] include::get-properties-for-node.asciidoc[] include::property-values-can-not-be-null.asciidoc[] include::property-values-can-not-be-nested.asciidoc[] include::delete-all-propertie...
[[rest-api-node-properties]] == Node properties == include::set-property-on-node.asciidoc[] include::update-node-properties.asciidoc[] include::get-properties-for-node.asciidoc[] include::get-property-for-node.asciidoc[] include::property-values-can-not-be-null.asciidoc[] include::property-values-can-not-be-neste...
Include REST API docs that were already produced.
Include REST API docs that were already produced.
AsciiDoc
apache-2.0
HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j,HuangLS/neo4j
asciidoc
## Code Before: [[rest-api-node-properties]] == Node properties == include::set-property-on-node.asciidoc[] include::update-node-properties.asciidoc[] include::get-properties-for-node.asciidoc[] include::property-values-can-not-be-null.asciidoc[] include::property-values-can-not-be-nested.asciidoc[] include::dele...
f472c1d51ba128657fe4c5fadc50ea9505982d8e
known-typings.md
known-typings.md
This is a list of all known typings specific to the Ember.js ecosystem. (You'll of course find many other modules with their own typings out there.) Don't see an addon you use listed here? You might be the one to write them! Check out [this blog post] or [this quest issue] for tips on how to do it, and feel free to a...
This is a list of all known typings specific to the Ember.js ecosystem. (You'll of course find many other modules with their own typings out there.) Don't see an addon you use listed here? You might be the one to write them! Check out [this blog post] or [this quest issue] for tips on how to do it, and feel free to a...
Add True Myth to known typings.
Add True Myth to known typings.
Markdown
mit
emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript
markdown
## Code Before: This is a list of all known typings specific to the Ember.js ecosystem. (You'll of course find many other modules with their own typings out there.) Don't see an addon you use listed here? You might be the one to write them! Check out [this blog post] or [this quest issue] for tips on how to do it, an...
863b8a33c77e82f4f5d8c8e3b1c93cd16e35154a
docker-entrypoint.sh
docker-entrypoint.sh
chmod 777 /var/log/funsize exec "$@"
mkdir -p /var/log/supervisor /var/log/funsize chmod 777 /var/log/funsize exec "$@"
Create directories required by Dockerrun.aws.json
Create directories required by Dockerrun.aws.json
Shell
mpl-2.0
petemoore/build-funsize,petemoore/build-funsize
shell
## Code Before: chmod 777 /var/log/funsize exec "$@" ## Instruction: Create directories required by Dockerrun.aws.json ## Code After: mkdir -p /var/log/supervisor /var/log/funsize chmod 777 /var/log/funsize exec "$@"
f1b28edf7772803e6122b837e26e7e090ac97cb6
recipes/snappy/meta.yaml
recipes/snappy/meta.yaml
{% set version = "1.1.3" %} package: name: snappy version: {{ version }} source: url: https://github.com/google/snappy/releases/download/{{ version }}/snappy-{{ version }}.tar.gz fn: snappy-{{ version }}.tar.gz md5: 7358c82f133dc77798e4c2062a749b73 build: number: 0 requirements: build: - msinttype...
{% set version = "1.1.3" %} package: name: snappy version: {{ version }} source: url: https://github.com/google/snappy/releases/download/{{ version }}/snappy-{{ version }}.tar.gz fn: snappy-{{ version }}.tar.gz md5: 7358c82f133dc77798e4c2062a749b73 build: number: 0 requirements: build: - msinttype...
Fix the spacing of selectors in the testing section.
snappy: Fix the spacing of selectors in the testing section.
YAML
bsd-3-clause
ceholden/staged-recipes,pmlandwehr/staged-recipes,ocefpaf/staged-recipes,NOAA-ORR-ERD/staged-recipes,cpaulik/staged-recipes,basnijholt/staged-recipes,dfroger/staged-recipes,JohnGreeley/staged-recipes,khallock/staged-recipes,pmlandwehr/staged-recipes,arokem/staged-recipes,benvandyke/staged-recipes,goanpeca/staged-recipe...
yaml
## Code Before: {% set version = "1.1.3" %} package: name: snappy version: {{ version }} source: url: https://github.com/google/snappy/releases/download/{{ version }}/snappy-{{ version }}.tar.gz fn: snappy-{{ version }}.tar.gz md5: 7358c82f133dc77798e4c2062a749b73 build: number: 0 requirements: build:...
fd5409eef92ef53d313ac2dcdd9f1b83568eb868
.travis.yml
.travis.yml
language: ruby rvm: - 2.2.2
language: ruby rvm: - 2.2.2 notifications: slack: cs169hq:wTi1MskoeU1BrdO8vWqPLE3j
Update travls.yml for Slack notifications
Update travls.yml for Slack notifications
YAML
mit
clairelee/directable,clairelee/directable,clairelee/directable
yaml
## Code Before: language: ruby rvm: - 2.2.2 ## Instruction: Update travls.yml for Slack notifications ## Code After: language: ruby rvm: - 2.2.2 notifications: slack: cs169hq:wTi1MskoeU1BrdO8vWqPLE3j
7afe85c6c04f991ba2ab4d9f4c23fe5dd990d3ea
.dotfiles/shell/oh-my-zsh.zsh
.dotfiles/shell/oh-my-zsh.zsh
export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="bureau" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # Which plu...
export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME='agnoster' # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" # Which p...
Change OMZ theme to agnoster
Change OMZ theme to agnoster
Shell
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
shell
## Code Before: export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="bureau" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-z...
a8f4737d8bc52905389622268abe8cba0e0fbd76
swap.lisp
swap.lisp
;; Tested on SBCL (defmacro swap (x y) (let ((tmp-sym (gensym))) `(let (,tmp-sym) (setf ,tmp-sym ,x) (setf ,x ,y) (setf ,y ,tmp-sym)))) (defun use-swap () (let ((a 1) (b 2)) (swap a b) (format t "a: ~A, b: ~A~%" a b)) (let ((my-list (list 3 4))) (swap (first my-list)...
;; Tested on SBCL (defmacro swap (x y) (let ((tmp-sym (gensym))) `(let ((,tmp-sym ,x)) (setf ,x ,y) (setf ,y ,tmp-sym)))) (defun use-swap () (let ((a 1) (b 2)) (swap a b) (format t "a: ~A, b: ~A~%" a b)) (let ((my-list (list 3 4))) (swap (first my-list) (second my-list)) ...
Set the temp symbol immediately, for consistent with our other languages.
Set the temp symbol immediately, for consistent with our other languages.
Common Lisp
mit
Wilfred/comparative_macrology,Wilfred/comparative_macrology,Wilfred/comparative_macrology,Wilfred/comparative_macrology
common-lisp
## Code Before: ;; Tested on SBCL (defmacro swap (x y) (let ((tmp-sym (gensym))) `(let (,tmp-sym) (setf ,tmp-sym ,x) (setf ,x ,y) (setf ,y ,tmp-sym)))) (defun use-swap () (let ((a 1) (b 2)) (swap a b) (format t "a: ~A, b: ~A~%" a b)) (let ((my-list (list 3 4))) (swap...
f1fb384cd62dc13d0b4647c9f988f6f46cbf4b6f
src/test/run-make/wasm-export-all-symbols/verify.js
src/test/run-make/wasm-export-all-symbols/verify.js
const fs = require('fs'); const process = require('process'); const assert = require('assert'); const buffer = fs.readFileSync(process.argv[2]); let m = new WebAssembly.Module(buffer); let list = WebAssembly.Module.exports(m); console.log('exports', list); const my_exports = {}; let nexports = 0; for (const entry of...
const fs = require('fs'); const process = require('process'); const assert = require('assert'); const buffer = fs.readFileSync(process.argv[2]); let m = new WebAssembly.Module(buffer); let list = WebAssembly.Module.exports(m); console.log('exports', list); const my_exports = {}; let nexports = 0; for (const entry of...
Check for the entry kind
Check for the entry kind
JavaScript
apache-2.0
aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust
javascript
## Code Before: const fs = require('fs'); const process = require('process'); const assert = require('assert'); const buffer = fs.readFileSync(process.argv[2]); let m = new WebAssembly.Module(buffer); let list = WebAssembly.Module.exports(m); console.log('exports', list); const my_exports = {}; let nexports = 0; for...
a4a74db9fe6a50cdf9d37217108e6202f5331593
src/stylesheets/base/_base.sass
src/stylesheets/base/_base.sass
body background: #fff font: 1em/1.5em "bree_serifregular", serif color: #393939 text-size-adjust: 100%
html background: $theme-base-color body background: #fff font: 1em/1.5em "bree_serifregular", serif color: #393939 text-size-adjust: 100%
Set HTML background (for overscroll)
Set HTML background (for overscroll)
Sass
mit
pzi/portefeuille,pzi/portefeuille
sass
## Code Before: body background: #fff font: 1em/1.5em "bree_serifregular", serif color: #393939 text-size-adjust: 100% ## Instruction: Set HTML background (for overscroll) ## Code After: html background: $theme-base-color body background: #fff font: 1em/1.5em "bree_serifregular", serif color: #393939...
06be7bebcc72d2ae77a9004b2a5cc0043df0e9a6
setup.py
setup.py
from setuptools import setup, find_packages import os.path with open("README.rst") as infile: readme = infile.read() with open(os.path.join("docs", "CHANGES.txt")) as infile: changes = infile.read() long_desc = readme + '\n\n' + changes setup( name='spiny', version='0.3.dev0', description='''Spiny ...
from setuptools import setup, find_packages import os.path import sys if sys.version_info < (3,): install_requires = ['subprocess32'] else: install_requires = [] with open("README.rst") as infile: readme = infile.read() with open(os.path.join("docs", "CHANGES.txt")) as infile: changes = infile.read() long...
Use subprocess32 under Python 2 for subprocess fixes.
Use subprocess32 under Python 2 for subprocess fixes.
Python
mit
regebro/spiny
python
## Code Before: from setuptools import setup, find_packages import os.path with open("README.rst") as infile: readme = infile.read() with open(os.path.join("docs", "CHANGES.txt")) as infile: changes = infile.read() long_desc = readme + '\n\n' + changes setup( name='spiny', version='0.3.dev0', descr...
bedd9d822add439487ffac98000783fc0b02eb02
cookbooks/nginx/attributes/passenger.rb
cookbooks/nginx/attributes/passenger.rb
node.default["nginx"]["passenger"]["version"] = "3.0.12" node.default["nginx"]["passenger"]["root"] = "/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12" node.default["nginx"]["passenger"]["ruby"] = %x{which ruby}.chomp node.default["nginx"]["passenger"]["max_pool_size"] = 10
node.default["nginx"]["passenger"]["version"] = "3.0.12" node.default["nginx"]["passenger"]["root"] = "/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12" node.default["nginx"]["passenger"]["ruby"] = "" node.default["nginx"]["passenger"]["max_pool_size"] = 10
Remove the nginx attribute that breaks nginx on Windows nodes
Remove the nginx attribute that breaks nginx on Windows nodes
Ruby
apache-2.0
scottymarshall/rundeck,scottymarshall/rundeck,scottymarshall/rundeck
ruby
## Code Before: node.default["nginx"]["passenger"]["version"] = "3.0.12" node.default["nginx"]["passenger"]["root"] = "/usr/lib/ruby/gems/1.8/gems/passenger-3.0.12" node.default["nginx"]["passenger"]["ruby"] = %x{which ruby}.chomp node.default["nginx"]["passenger"]["max_pool_size"] = 10 ## Instruction: Remove the ngin...
77666e7ce307e8050a89cf08ddbe6c5429052cc6
src/main/java/org/literacyapp/model/gson/StudentImageGson.java
src/main/java/org/literacyapp/model/gson/StudentImageGson.java
package org.literacyapp.model.gson; import java.util.Calendar; import org.literacyapp.model.gson.analytics.StudentImageCollectionEventGson; public class StudentImageGson extends BaseEntityGson { private DeviceGson device; private Calendar timeCollected; private String imageFileUrl; ...
package org.literacyapp.model.gson; import java.util.Calendar; import org.literacyapp.model.gson.analytics.StudentImageCollectionEventGson; public class StudentImageGson extends BaseEntityGson { private Calendar timeCollected; private String imageFileUrl; private StudentImageFeatureGson stu...
Remove device from student image
Remove device from student image
Java
apache-2.0
literacyapp-org/literacyapp-model
java
## Code Before: package org.literacyapp.model.gson; import java.util.Calendar; import org.literacyapp.model.gson.analytics.StudentImageCollectionEventGson; public class StudentImageGson extends BaseEntityGson { private DeviceGson device; private Calendar timeCollected; private String imageF...
1a150cb57171212358b84e351a0c073baa83d9fd
Home/xsOros.py
Home/xsOros.py
def checkio(array): if array[0][0] == array[0][1] == array[0][2] or array[0][0] == array[1][0] == array[2][0] or array[0][0] == array[1][1] == array[2][2]: return array[0][0] if array[1][0] == array[1][1] == array[1][2] or array[0][1] == array[1][1] == array[2][1] or array[2][0] == array[1][1] == array[...
def checkio(array): if (array[0][0] == array[0][1] == array[0][2] or array[0][0] == array[1][0] == array[2][0] or array[0][0] == array[1][1] == array[2][2]) and array[0][0] != '.': return array[0][0] if (array[1][0] == array[1][1] == array[1][2] or array[0][1] == array[1][1] == array[2][1] or array[2][0...
Fix the issue on Xs or Os problem.
Fix the issue on Xs or Os problem.
Python
mit
edwardzhu/checkio-solution
python
## Code Before: def checkio(array): if array[0][0] == array[0][1] == array[0][2] or array[0][0] == array[1][0] == array[2][0] or array[0][0] == array[1][1] == array[2][2]: return array[0][0] if array[1][0] == array[1][1] == array[1][2] or array[0][1] == array[1][1] == array[2][1] or array[2][0] == array...
6f373fcd73d34e3d3090a7aaa48cb175464963c1
app/models/hosting_account.rb
app/models/hosting_account.rb
class HostingAccount < ActiveRecord::Base belongs_to :domain, touch: true end
class HostingAccount < ActiveRecord::Base attr_accessible :annual_fee, :backed_up_on, :backup_cycle, :domain_id, :ftp_host, :host_name, :started_on, :username, :password belongs_to :domain, touch: true end
Whitelist attributes for hosting accounts
Whitelist attributes for hosting accounts
Ruby
mit
ianfleeton/yesl_info,ianfleeton/yesl_info,ianfleeton/yesl_info
ruby
## Code Before: class HostingAccount < ActiveRecord::Base belongs_to :domain, touch: true end ## Instruction: Whitelist attributes for hosting accounts ## Code After: class HostingAccount < ActiveRecord::Base attr_accessible :annual_fee, :backed_up_on, :backup_cycle, :domain_id, :ftp_host, :host_name, :starte...
6b3a913bc48039e4bbc0dbab780a2c8cec8a6541
Powershell/Get-ProjectReferences.ps1
Powershell/Get-ProjectReferences.ps1
Function Get-ProjectReferences ($rootFolder) { $projectFiles = Get-ChildItem $rootFolder -Filter *.csproj -Recurse $ns = @{ defaultNamespace = "http://schemas.microsoft.com/developer/msbuild/2003" } $projectFiles | ForEach-Object { $projectFile = $_ | Select-Object -ExpandProperty FullName ...
Function Get-ProjectReferences ($rootFolder) { $projectFiles = Get-ChildItem $rootFolder\* -Include *.csproj, *.vbproj -Recurse $ns = @{ defaultNamespace = "http://schemas.microsoft.com/developer/msbuild/2003" } $projectFiles | ForEach-Object { $projectFile = $_ | Select-Object -ExpandProperty Full...
Add include VB project files
Add include VB project files If not desired, feel free to ignore this proposal. Used info found in this StackOverflow answer to include multiple filetypes: http://stackoverflow.com/a/18626464/945456
PowerShell
unlicense
cameron-sjo/Utilities,cameron-sjo/Utilities,cameron-sjo/Utilities
powershell
## Code Before: Function Get-ProjectReferences ($rootFolder) { $projectFiles = Get-ChildItem $rootFolder -Filter *.csproj -Recurse $ns = @{ defaultNamespace = "http://schemas.microsoft.com/developer/msbuild/2003" } $projectFiles | ForEach-Object { $projectFile = $_ | Select-Object -ExpandProperty F...
4881fe6a31b834a1f8e025c9485ba1d18e5b99a1
lib/pixi_client.rb
lib/pixi_client.rb
require 'pixi_client/version' require 'pixi_client/configuration' require 'pixi_client/response_parser' require 'pixi_client/response' require 'pixi_client/requests' module PixiClient class << self def configuration @configuration ||= Configuration.new end def configure yield(configuration) ...
require 'pixi_client/version' require 'pixi_client/error' require 'pixi_client/configuration' require 'pixi_client/response_parser' require 'pixi_client/response' require 'pixi_client/requests' module PixiClient class << self def configuration @configuration ||= Configuration.new end def configure...
Include the error class in the client
Include the error class in the client
Ruby
mit
modomoto/pixi_client
ruby
## Code Before: require 'pixi_client/version' require 'pixi_client/configuration' require 'pixi_client/response_parser' require 'pixi_client/response' require 'pixi_client/requests' module PixiClient class << self def configuration @configuration ||= Configuration.new end def configure yield...
04cf35937a8f4fa4759b6951823ce00cad718589
ReleaseNotes.md
ReleaseNotes.md
* Added NupkgWrenchExe nupkg, this will not have a package type and will work for nuget.exe install * Added dependencies add/remove/modify commands * Converted from DotnetCliTool to DotnetTool package to support dotnet install -g * Updated nuget libraries to 4.6.2 ## 1.3.0 * netcoreapp2.0 support * Fixed ex...
* Fixed dependencies command for nuspec dependency nodes without groups ## 1.4.0 * Added NupkgWrenchExe nupkg, this will not have a package type and will work for nuget.exe install * Added dependencies add/remove/modify commands * Converted from DotnetCliTool to DotnetTool package to support dotnet install -g * ...
Update release notes for 1.4.25
Update release notes for 1.4.25
Markdown
mit
emgarten/NupkgWrench,emgarten/NupkgWrench
markdown
## Code Before: * Added NupkgWrenchExe nupkg, this will not have a package type and will work for nuget.exe install * Added dependencies add/remove/modify commands * Converted from DotnetCliTool to DotnetTool package to support dotnet install -g * Updated nuget libraries to 4.6.2 ## 1.3.0 * netcoreapp2.0 support *...
fe45c389a9b58ec46bac0f305f6217f0ac838dd8
WEB-INF/appengine-web.xml
WEB-INF/appengine-web.xml
<?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>public-firing-range</application> <version>1</version> <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> </system-properties> <public-r...
<?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>public-firing-range</application> <version>1</version> <runtime>java8</runtime> <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> </sys...
Migrate firingrange to Java 8 since Java 7 is deprecated on GAE standard
Migrate firingrange to Java 8 since Java 7 is deprecated on GAE standard ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192299061
XML
apache-2.0
google/firing-range,google/firing-range,google/firing-range
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>public-firing-range</application> <version>1</version> <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> </system-properti...
2ca5600d7319ae5e55f5b669c49d12cc05e08042
app/views/pages/how_to.html.erb
app/views/pages/how_to.html.erb
<h1>How to</h1>
<h1>How to</h1> <p>Help me writing this page, see <a href="https://github.com/potomak/tomatoes/issues/83">issue #83</a>.</p>
Add placeholder content to "How to" page
Add placeholder content to "How to" page See #83
HTML+ERB
mit
tomatoes-app/tomatoes,tomatoes-app/tomatoes,potomak/tomatoes,potomak/tomatoes,tomatoes-app/tomatoes,potomak/tomatoes,tomatoes-app/tomatoes
html+erb
## Code Before: <h1>How to</h1> ## Instruction: Add placeholder content to "How to" page See #83 ## Code After: <h1>How to</h1> <p>Help me writing this page, see <a href="https://github.com/potomak/tomatoes/issues/83">issue #83</a>.</p>
e33eef7aa37b415743909bb7cb01905de3b0380d
_posts/2015-06-18-objets-connectes-et-soudures.md
_posts/2015-06-18-objets-connectes-et-soudures.md
--- layout: event title: "IoT : J'ai connecté ma cave a mon garage" date: 2015-06-18 pending: true eventbriteId: 17317217263 youtubeId: flickrId: sponsors: - CGI - IPLeanware location: polecommun --- Paul ne fait pas que des pneus, a ses heures perdues il connecte un peu tout et n'importe quoi, des barques de...
--- layout: event title: "IoT : J'ai connecté ma cave a mon garage" date: 2015-06-18 pending: false eventbriteId: 17317217263 youtubeId: https://www.youtube.com/embed/nMnJ9iSr3X4 flickrId: sponsors: - CGI - IPLeanware location: polecommun --- Paul ne fait pas que des pneus, a ses heures perdues il connecte un ...
Add video on last passed event
Add video on last passed event
Markdown
apache-2.0
LavaJUG/lavajug.github.com,LavaJUG/lavajug.github.com,LavaJUG/lavajug.github.com,LavaJUG/lavajug.github.com
markdown
## Code Before: --- layout: event title: "IoT : J'ai connecté ma cave a mon garage" date: 2015-06-18 pending: true eventbriteId: 17317217263 youtubeId: flickrId: sponsors: - CGI - IPLeanware location: polecommun --- Paul ne fait pas que des pneus, a ses heures perdues il connecte un peu tout et n'importe quoi,...
32320aad15b13af1463e56c07808293ac6c84187
src/YouFood/ApiBundle/Form/OrderType.php
src/YouFood/ApiBundle/Form/OrderType.php
<?php namespace YouFood\ApiBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilder; /** * OrderType * * @author Adrien Brault <adrien.brault@gmail.com> */ class OrderType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilder $bu...
<?php namespace YouFood\ApiBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; /** * OrderType * * @author Adrien Brault <adrien.brault@gmail.com> */ class OrderType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBu...
Update form to new interface ...
Update form to new interface ...
PHP
mit
adrienbrault/SUPINFO-B3-YouFood-Server,adrienbrault/SUPINFO-B3-YouFood-Server
php
## Code Before: <?php namespace YouFood\ApiBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilder; /** * OrderType * * @author Adrien Brault <adrien.brault@gmail.com> */ class OrderType extends AbstractType { /** * {@inheritdoc} */ public function buildForm...
f965ff665fc623ac6e8f60306a9bd0104b5d5ec9
app/views/error_mailer/snapshot.text.plain.erb
app/views/error_mailer/snapshot.text.plain.erb
Error report from <%= @request.host %> <%= Time.now %> Message: <%= @exception.message %> Location: <%= @env['REQUEST_URI'] %> Controller: <%= @params.delete('controller') %> Action: <%= @params.delete('action') %> Query: <%= @env['QUERY_STRING'] %> Method: <%= @env['REQUEST_METHOD'] %> SSL: <%= @request.ssl? ? "true"...
Error report from <%= @request.host %> <%= Time.now %> Message: <%= @exception.message %> Location: <%= @env['REQUEST_URI'] %> Controller: <%= @params.delete('controller') %> Action: <%= @params.delete('action') %> Query: <%= @env['QUERY_STRING'] %> Method: <%= @env['REQUEST_METHOD'] %> SSL: <%= @request.ssl? ? "true"...
Make error mailer work with Ruby 1.9
Make error mailer work with Ruby 1.9
HTML+ERB
mit
tsauvine/rubyric,tsauvine/rubyric,tsauvine/rubyric
html+erb
## Code Before: Error report from <%= @request.host %> <%= Time.now %> Message: <%= @exception.message %> Location: <%= @env['REQUEST_URI'] %> Controller: <%= @params.delete('controller') %> Action: <%= @params.delete('action') %> Query: <%= @env['QUERY_STRING'] %> Method: <%= @env['REQUEST_METHOD'] %> SSL: <%= @reque...
490ac7edcdf2b55dac91ff2f234ca5be0173b183
elements/BodyRoutes.jsx
elements/BodyRoutes.jsx
'use strict'; var _ = require('lodash'); var React = require('react'); var Router = require('react-router'); var Route = Router.Route; var Body = require('theme/Body'); var SectionIndex = require('theme/SectionIndex'); var SiteIndex = require('./SiteIndex.jsx'); var BodyContent = require('./BodyContent.jsx')(Body); v...
'use strict'; var _ = require('lodash'); var React = require('react'); var Router = require('react-router'); var Route = Router.Route; var Body = require('theme/Body'); var SectionIndex = require('theme/SectionIndex'); var SiteIndex = require('./SiteIndex.jsx'); var BodyContent = require('./BodyContent.jsx')(Body); v...
Add extra slash to root only for build
Add extra slash to root only for build Now root should work in development mode. I'm not exactly sure why this hack is needed. I guess the development and build mode must differ in some crucial manner. Ideally we wouldn't need this.
JSX
mit
antwarjs/antwar,RamonGebben/antwar,RamonGebben/antwar
jsx
## Code Before: 'use strict'; var _ = require('lodash'); var React = require('react'); var Router = require('react-router'); var Route = Router.Route; var Body = require('theme/Body'); var SectionIndex = require('theme/SectionIndex'); var SiteIndex = require('./SiteIndex.jsx'); var BodyContent = require('./BodyConten...
aff4bac6f88abf9bff9f58f8ec5f2f55da1bd6ab
gatein-rest-resource-archetype/src/main/resources/archetype-resources/src/main/java/MyRestResource.java
gatein-rest-resource-archetype/src/main/resources/archetype-resources/src/main/java/MyRestResource.java
package ${package}; import org.exoplatform.services.rest.resource.ResourceContainer; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; /** * Created by eXo Platform MEA on 06/05/14. * * @author <a href="mailto:mtrabelsi@exoplatform.com">Marwen Trabelsi</a> */ @Path("/my-resource") p...
package ${package}; import org.exoplatform.services.rest.resource.ResourceContainer; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; /** * Created by WiseBrains on 06/05/14. * * The <code>MyRestResource</code> class represents a RESTful GateIn * resource container. * * @author <a...
Add JavaDoc to GateIn Rest resource component
[IMP] Add JavaDoc to GateIn Rest resource component
Java
apache-2.0
wisebrains/wise-archetypes,tmarwen/wise-archetypes
java
## Code Before: package ${package}; import org.exoplatform.services.rest.resource.ResourceContainer; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; /** * Created by eXo Platform MEA on 06/05/14. * * @author <a href="mailto:mtrabelsi@exoplatform.com">Marwen Trabelsi</a> */ @Path("...
e5110938e6ccf52c42d9c5c057ca01435e3a7aa9
src/getChart.js
src/getChart.js
'use strict'; // convert an experiment, an array of spectra, to a chart var types=require('./types.js'); module.exports=function (experiments, channels, index) { var channels = channels || 'RGBWZE' if (! Array.isArray(experiments)) experiments=[experiments]; var chart = { type: "chart", ...
'use strict'; // convert an experiment, an array of spectra, to a chart var types=require('./types.js'); module.exports=function (experiments, channels, index) { var channels = channels || 'RGBWZE' if (! Array.isArray(experiments)) experiments=[experiments]; var chart = { type: "chart", ...
Add unique identifier in front of the label
Add unique identifier in front of the label
JavaScript
mit
open-spectro/javascript-helper
javascript
## Code Before: 'use strict'; // convert an experiment, an array of spectra, to a chart var types=require('./types.js'); module.exports=function (experiments, channels, index) { var channels = channels || 'RGBWZE' if (! Array.isArray(experiments)) experiments=[experiments]; var chart = { type...
885a359462fe85f2a36109a0cb0f06c1892dc886
lib/smart_answer/calculators/night_work_hours.rb
lib/smart_answer/calculators/night_work_hours.rb
require 'ostruct' module SmartAnswer::Calculators class NightWorkHours < OpenStruct def total_hours if work_cycle == 7 weeks_worked * 7 / work_cycle * nights_in_cycle * hours_per_shift + overtime_hours else weeks_worked * nights_in_cycle * hours_per_shift + overtime_hours end ...
require 'ostruct' module SmartAnswer::Calculators class NightWorkHours < OpenStruct def total_hours potential_days / work_cycle * nights_in_cycle * hours_per_shift + overtime_hours end def average_hours total_hours / 2 end def potential_days weeks_worked * 7 end end end...
Make the calculation less insane
Make the calculation less insane
Ruby
mit
aledelcueto/smart-answers,ministryofjustice/smart-answers,aledelcueto/smart-answers,stwalsh/smart-answers,lutgendorff/smart-answers,alphagov/smart-answers,stwalsh/smart-answers,tadast/smart-answers,ministryofjustice/smart-answers,ministryofjustice/smart-answers,stwalsh/smart-answers,lutgendorff/smart-answers,tadast/sma...
ruby
## Code Before: require 'ostruct' module SmartAnswer::Calculators class NightWorkHours < OpenStruct def total_hours if work_cycle == 7 weeks_worked * 7 / work_cycle * nights_in_cycle * hours_per_shift + overtime_hours else weeks_worked * nights_in_cycle * hours_per_shift + overtime_h...
68fe98fad7c58260bfc4860da3def794b7ffa2ca
terminal/bash/functions/deploy-exclusions.txt
terminal/bash/functions/deploy-exclusions.txt
config.codekit .codekit-cache .DS_Store .env .git .sass-cache
config.codekit .codekit-cache .DS_Store .env .git .gitignore .sass-cache
Exclude .gitignore files from deploy
Exclude .gitignore files from deploy
Text
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
text
## Code Before: config.codekit .codekit-cache .DS_Store .env .git .sass-cache ## Instruction: Exclude .gitignore files from deploy ## Code After: config.codekit .codekit-cache .DS_Store .env .git .gitignore .sass-cache
3918f5322541212ae96b13dfd407ddc9bed18e50
client/app/main.jsx
client/app/main.jsx
import alt from './libs/alt'; import makeFinalStore from 'alt/utils/makeFinalStore'; import React from 'react'; import App from './views/App'; import VertxActions from './actions/VertxActions.js'; function main() { const finalStore = makeFinalStore(alt); finalStore.listen(() => { console.log("Dispatch cycle c...
import alt from './libs/alt'; import makeFinalStore from 'alt/utils/makeFinalStore'; import React from 'react'; import App from './views/App'; import VertxActions from './actions/VertxActions.js'; function main() { const finalStore = makeFinalStore(alt); finalStore.listen(() => { console.log("Dispatch cycle c...
Send a message from the client
Send a message from the client
JSX
mit
kaerfredoc/2048MMOG,kaerfredoc/2048MMOG,kaerfredoc/2048MMOG
jsx
## Code Before: import alt from './libs/alt'; import makeFinalStore from 'alt/utils/makeFinalStore'; import React from 'react'; import App from './views/App'; import VertxActions from './actions/VertxActions.js'; function main() { const finalStore = makeFinalStore(alt); finalStore.listen(() => { console.log("...
570b53d4b75ce34b45d7596b34e30e4e8a1396e5
apiv2/src/test/java/com/plnyyanks/tba/apiv2/test/APIv2ErrorTest.java
apiv2/src/test/java/com/plnyyanks/tba/apiv2/test/APIv2ErrorTest.java
package com.plnyyanks.tba.apiv2.test; import com.plnyyanks.tba.apiv2.APIv2Helper; import com.plnyyanks.tba.apiv2.interfaces.APIv2; import org.junit.Before; import org.junit.Test; /** * Created by phil on 5/5/15. */ public class APIv2ErrorTest { APIv2 api; @Before public void setupAPIClient(){ ...
package com.plnyyanks.tba.apiv2.test; import com.plnyyanks.tba.apiv2.APIv2Helper; import com.plnyyanks.tba.apiv2.interfaces.APIv2; import org.junit.Before; import org.junit.Test; import retrofit.RetrofitError; /** * Created by phil on 5/5/15. */ public class APIv2ErrorTest { APIv2 api; @Before publi...
Make sure App Id is not set for test
Make sure App Id is not set for test
Java
mit
phil-lopreiato/tba-apiv2-java
java
## Code Before: package com.plnyyanks.tba.apiv2.test; import com.plnyyanks.tba.apiv2.APIv2Helper; import com.plnyyanks.tba.apiv2.interfaces.APIv2; import org.junit.Before; import org.junit.Test; /** * Created by phil on 5/5/15. */ public class APIv2ErrorTest { APIv2 api; @Before public void setupAPIC...
d96b8248015b03d1f3a497cf16f2d4e36902c63b
app/view/History.php
app/view/History.php
<div class="panel <?php echo (isset($single)?'single':''); ?>"> <div class="warp"> <b>My Reading History</b> </div> <div class="<?php echo (isset($single)?'':'warp'); ?>"> <?php while ($row = $history->row()): ?> <div <?php echo (isset($single)?'class="list"':''); ?>> <a href...
<div class="panel <?php echo (isset($single)?'single':''); ?>"> <div class="warp"> <?php if (isset($single)): ?> <b>Last Read</b> <?php else: ?> <b>My Reading History</b> <?php endif; ?> </div> <div class="<?php echo (isset($single)?'':'warp'); ?>"> <?php ...
Change title of history page depend on the current page
Change title of history page depend on the current page
PHP
mit
hernantas/MangaReader,hernantas/MangaReader,hernantas/MangaReader
php
## Code Before: <div class="panel <?php echo (isset($single)?'single':''); ?>"> <div class="warp"> <b>My Reading History</b> </div> <div class="<?php echo (isset($single)?'':'warp'); ?>"> <?php while ($row = $history->row()): ?> <div <?php echo (isset($single)?'class="list"':''); ?>> ...
0726aa7be4f7127af108656be58944e409f0cd4a
README.md
README.md
:new_moon: An elegant and minimal material syntax theme for VS Code. ![Theme Preview](http://i.imgur.com/o7r1zcL.png) _The font used in the screenshot is [Operator Mono](http://www.typography.com/fonts/operator)._ ## Installation If you're a terminal guru :ghost:, launch a window and type: ```shell ext install mat...
:new_moon: An elegant and minimal material syntax theme for VS Code. ![Theme Preview](http://i.imgur.com/o7r1zcL.png) _The font used in the screenshot is [Operator Mono](http://www.typography.com/fonts/operator)._ ## Installation If you're a terminal guru :ghost:, launch a window and type: ```shell ext install mat...
Add link to my Atom theme :boom:
Add link to my Atom theme :boom:
Markdown
mit
whizkydee/vscode-palenight-theme,whizkydee/vscode-material-palenight-theme
markdown
## Code Before: :new_moon: An elegant and minimal material syntax theme for VS Code. ![Theme Preview](http://i.imgur.com/o7r1zcL.png) _The font used in the screenshot is [Operator Mono](http://www.typography.com/fonts/operator)._ ## Installation If you're a terminal guru :ghost:, launch a window and type: ```shell...
3c2ede21442b471f2028b9b01e14bbf187f99ce6
resources/views/search/index.blade.php
resources/views/search/index.blade.php
@extends('layout') @section('body') <h1>Search</h1> <form method="GET" class="tight"> <div class="row spacing-top-large"> <div class="column"> <input type="text" name="query" /> </div> <div class="column tight"> <input type="submit" va...
@extends('layout') @section('body') <h1>Search</h1> <form method="GET" class="tight"> <div class="row spacing-top-large"> <div class="column"> <input type="text" name="query" /> </div> <div class="column tight"> <input type="submit" va...
Add hyperlink to spendings in search view
Add hyperlink to spendings in search view
PHP
mit
pix3ly/budget,pix3ly/budget
php
## Code Before: @extends('layout') @section('body') <h1>Search</h1> <form method="GET" class="tight"> <div class="row spacing-top-large"> <div class="column"> <input type="text" name="query" /> </div> <div class="column tight"> <input ...
8df9a42e23355bc8ae9a5f940b9fb1a71cb678fe
app/components/svg-image.cjsx
app/components/svg-image.cjsx
React = require 'react' # React.DOM doesn't include an SVG <image> tag # (because of its namespaced `xlink:href` attribute, I think), # so this fakes one by wrapping it in a <g>. module.exports = React.createClass displayName: 'SVGImage' getDefaultProps: -> src: '' width: 0 height: 0 render: -> ...
React = require 'react' # React.DOM doesn't include an SVG <image> tag # (because of its namespaced `xlink:href` attribute, I think), # so this fakes one by wrapping it in a <g>. module.exports = React.createClass displayName: 'SVGImage' getDefaultProps: -> src: '' width: 0 height: 0 render: -> ...
Fix SVG image sizing in Safari
Fix SVG image sizing in Safari
CoffeeScript
apache-2.0
camallen/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,alexbfree/Panoptes-Front-End,parrish/Panoptes-Front-End,zooniverse/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,camallen/Panoptes-Front-End,aliburchard/Panoptes-Front-End,CKrawczyk/Panoptes-Front-End,marten/Panoptes-Front-End,tfmorris/Panoptes-Front-End,edp...
coffeescript
## Code Before: React = require 'react' # React.DOM doesn't include an SVG <image> tag # (because of its namespaced `xlink:href` attribute, I think), # so this fakes one by wrapping it in a <g>. module.exports = React.createClass displayName: 'SVGImage' getDefaultProps: -> src: '' width: 0 height: 0...
21d9b2f89a7eb9a6801a48c2586cc360e6be47c3
LTA_to_UVFITS.py
LTA_to_UVFITS.py
def lta_to_uvfits(): lta_files = glob.glob('*.lta*') #flag_files = glob.glob('*.FLAGS*') for i in range(len(lta_files)): lta_file_name = lta_files[i] uvfits_file_name = lta_file_name +'.UVFITS' spam.convert_lta_to_uvfits( lta_file_name, uvfits_file_name )
def lta_to_uvfits(): lta_files = glob.glob('*.lta*') #flag_files = glob.glob('*.FLAGS*') for i in range(len(lta_files)): lta_file_name = lta_files[i] uvfits_file_name = lta_file_name +'.UVFITS' spam.convert_lta_to_uvfits( lta_file_name, uvfits_file_name ) return lta_files
Return LTA files to use as argument in main thread code
Return LTA files to use as argument in main thread code
Python
mit
NCRA-TIFR/gadpu,NCRA-TIFR/gadpu
python
## Code Before: def lta_to_uvfits(): lta_files = glob.glob('*.lta*') #flag_files = glob.glob('*.FLAGS*') for i in range(len(lta_files)): lta_file_name = lta_files[i] uvfits_file_name = lta_file_name +'.UVFITS' spam.convert_lta_to_uvfits( lta_file_name, uvfits_file_name ) ## Instruction: Return LTA files to u...
8cc1836b9e9776fcb44468cf4d1135ac449b4df9
cygwin-setup.sh
cygwin-setup.sh
if [[ $_ == $0 ]]; then echo "You should really source this, like in '. cygwin-setup.sh'" fi # And here's the meat given that you have the standard build tree export PATH="$PWD/build/build-c/src":"$PWD/build/build-c++/src":$PATH export PATH="$PWD/build/build-c/tools":"$PWD/build/build-c++/tools":$PATH
if [[ $_ == $0 ]]; then echo "You should really source this, like in '. cygwin-setup.sh'" fi # And here's the meat given that you have the standard build tree export PATH="$PWD/build/src":"$PWD/build/tools":$PATH
Adjust path setting now that we have a single lang build tree
Adjust path setting now that we have a single lang build tree
Shell
isc
cgreen-devs/cgreen,thoni56/cgreen,thoni56/cgreen,cgreen-devs/cgreen,thoni56/cgreen,thoni56/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,thoni56/cgreen,cgreen-devs/cgreen
shell
## Code Before: if [[ $_ == $0 ]]; then echo "You should really source this, like in '. cygwin-setup.sh'" fi # And here's the meat given that you have the standard build tree export PATH="$PWD/build/build-c/src":"$PWD/build/build-c++/src":$PATH export PATH="$PWD/build/build-c/tools":"$PWD/build/build-c++/tools":$PA...
f8d0fecfdbd5a753970f599c389fe4acf24611f4
test/tests/test-helper.js
test/tests/test-helper.js
var verifyLocalStorageContainsRecord = function(namespace, type, id, record, ignoreFields) { var expected = {}; expected[id] = record; var actual = JSON.parse(window.localStorage.getItem(namespace)); if (type) actual = actual[type]; if (ignoreFields) { for (var i = 0, l = ignoreFields.length, field; i <...
var verifyLocalStorageContainsRecord = function(namespace, type, id, record, ignoreFields) { var expected = {}; expected[id] = record; var actual = JSON.parse(window.localStorage.getItem(namespace)); if (type) actual = actual[type]; if (ignoreFields) { for (var i = 0, l = ignoreFields.length, field; i <...
Introduce `equalOps` test helper for comparing operations.
Introduce `equalOps` test helper for comparing operations. Provides comparisons of Operation instances based on their serialized form.
JavaScript
mit
orbitjs/orbit.js,rollokb/orbit.js,SmuliS/orbit.js,lytbulb/orbit.js,orbitjs/orbit.js,orbitjs/orbit-core,greyhwndz/orbit.js,SmuliS/orbit.js,greyhwndz/orbit.js,opsb/orbit.js,lytbulb/orbit.js,beni55/orbit.js,opsb/orbit.js,jpvanhal/orbit-core,rollokb/orbit.js,ProlificLab/orbit.js,jpvanhal/orbit.js,jpvanhal/orbit-core,Prolif...
javascript
## Code Before: var verifyLocalStorageContainsRecord = function(namespace, type, id, record, ignoreFields) { var expected = {}; expected[id] = record; var actual = JSON.parse(window.localStorage.getItem(namespace)); if (type) actual = actual[type]; if (ignoreFields) { for (var i = 0, l = ignoreFields.le...
ee2b81d8caaac23037129cb147b69a1d078ab6fe
README.md
README.md
bthomehub4-reboot-script ======================== Reboot the BT Home Hub 4 from the command line instead of using the nasty looking web interface. Useful for quick reboots or you can configure as a cron job for periodic restarts. ## Tested on * Linux Mint 16 Petra * BT Home Hub 4 (Type A), Software version 4.7.5.1.83...
BT Home Hub 4 Reboot Script ========================== Reboot the BT Home Hub 4 from the command line instead of using the nasty looking web interface. Useful for quick reboots or you can configure as a cron job for periodic restarts. ## Tested on * Linux Mint 16 Petra * BT Home Hub 4 (Type A), Software version 4.7.5...
Tweak title so that it describes things better
Tweak title so that it describes things better
Markdown
mit
jamesnetherton/bthomehub4-reboot-script,barcar/bthub-download-log
markdown
## Code Before: bthomehub4-reboot-script ======================== Reboot the BT Home Hub 4 from the command line instead of using the nasty looking web interface. Useful for quick reboots or you can configure as a cron job for periodic restarts. ## Tested on * Linux Mint 16 Petra * BT Home Hub 4 (Type A), Software ve...
bc4ec390267ebdadb9a666bdc9436f188b1e0f5c
.travis.yml
.travis.yml
cache: bundler language: ruby sudo: false deploy: - provider: script script: bundle exec jekyll algolia push on: branch: master
cache: bundler language: ruby sudo: false script: - bundle exec jekyll algolia push
Revert "feat: send to algolia only on master"
Revert "feat: send to algolia only on master"
YAML
mit
eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io
yaml
## Code Before: cache: bundler language: ruby sudo: false deploy: - provider: script script: bundle exec jekyll algolia push on: branch: master ## Instruction: Revert "feat: send to algolia only on master" ## Code After: cache: bundler language: ruby sudo: false script: - bundle exec jekyll algolia ...
8a4d265f3a83357297e4713098ea51b86b5a5cf8
setup.py
setup.py
import sys import setuptools from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [] def finalize_opt...
import sys import setuptools from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [] def finalize_opt...
Update to follow latest py.test recommendations
Update to follow latest py.test recommendations http://pytest.org/latest/goodpractises.html#integrating-with-setuptools-python-setup-py-test
Python
mit
bmcorser/py-multihash
python
## Code Before: import sys import setuptools from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = [] ...
b79eb5b34114341b26afc540374466ae8b46967a
app/templates/navbar1.html
app/templates/navbar1.html
<div class="fixed"> <nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"> <h1><a href="#"><img ng-src="{{ logo }}"/></a></h1> </li> </ul> <section class="top-bar-section"> <ul ng-show="showSearch()" class="left" ng-controller="SearchCtrl"> <li class="h...
<div class="fixed"> <nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"> <h1><a href="#"><img ng-src="{{ logo }}"/></a></h1> </li> </ul> <section class="top-bar-section"> <ul ng-show="showSearch()" class="left" ng-controller="SearchCtrl"> <li class="h...
Use icon for search form in navbar
Use icon for search form in navbar + a couple of minor fixes to the placeholder text and grid sizes.
HTML
mit
alpheios-project/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,PonteIneptique/arethusa,Masoumeh/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa
html
## Code Before: <div class="fixed"> <nav class="top-bar" data-topbar> <ul class="title-area"> <li class="name"> <h1><a href="#"><img ng-src="{{ logo }}"/></a></h1> </li> </ul> <section class="top-bar-section"> <ul ng-show="showSearch()" class="left" ng-controller="SearchCtrl"> ...
7239acde403b1468406cd8bfaf2192c38a5950db
_includes/header.html
_includes/header.html
<header class="site-header"> <h3 class="site-title"> <a href="{{ site.github.url }}/">{{ site.data.settings.title }}</a> </h3> <nav class="menu-list"> {% for item in site.data.settings.menu %} <a href="{{ site.github.url }}/pages/{{ item.file }}" class="menu-link">{{ item.name }}</a> {% endfor %...
<header class="site-header"> <h3 class="site-title"> <a href="{{ site.github.url }}/">{{ site.data.settings.title }}</a> </h3> <nav class="menu-list"> {% for item in site.data.settings.menu %} <a href="{{ site.github.url }}/pages/{{ item.file }}" class="menu-link">{{ item.name }}</a> {% endfor %...
Add target blank to social media icons
Add target blank to social media icons
HTML
mit
LeNPaul/Millennial,familytiles/familytiles.github.io,mrkara/mrkara.github.io,wfscans/blog,yoniker/yoniker.github.io,yoniker/yoniker.github.io,thomvaniersel/thomvaniersel.github.io,danilamaroz/danilamaroz.github.io,danilamaroz/danilamaroz.github.io,LeNPaul/Millennial
html
## Code Before: <header class="site-header"> <h3 class="site-title"> <a href="{{ site.github.url }}/">{{ site.data.settings.title }}</a> </h3> <nav class="menu-list"> {% for item in site.data.settings.menu %} <a href="{{ site.github.url }}/pages/{{ item.file }}" class="menu-link">{{ item.name }}</a>...
158f64ee38e442470c4effea8e417eab12ab07f1
routes/edit/screens/App/screens/User/HeroCarousel.js
routes/edit/screens/App/screens/User/HeroCarousel.js
import React, { Component } from 'react'; import CarouselA from './CarouselA'; import CarouselB from './CarouselB'; import styles from './HeroCarousel.styl' class HeroCarousel extends Component { constructor () { super(); this.state = { count: 0 }; } componentDidMount () { this.swapper = setInterv...
import React, { Component } from 'react'; import CarouselA from './CarouselA'; import CarouselB from './CarouselB'; import styles from './HeroCarousel.styl' class HeroCarousel extends Component { constructor () { super(); this.state = { count: 0 }; } componentDidMount () { this.swapper = setInterv...
Make sure interval gets canceled
Make sure interval gets canceled
JavaScript
mit
Literasee/literasee,Literasee/literasee
javascript
## Code Before: import React, { Component } from 'react'; import CarouselA from './CarouselA'; import CarouselB from './CarouselB'; import styles from './HeroCarousel.styl' class HeroCarousel extends Component { constructor () { super(); this.state = { count: 0 }; } componentDidMount () { this.swa...
eecde2e8fdd3b105e68a5bd4bab16bdfb9767546
eximhandler/eximhandler.py
eximhandler/eximhandler.py
import logging from subprocess import Popen, PIPE class EximHandler(logging.Handler): """ A handler class which sends an email using exim for each logging event. """ def __init__(self, toaddr, subject, exim_path="/usr/sbin/exim"): """ Initialize the handler. """ logging...
import logging from subprocess import Popen, PIPE class EximHandler(logging.Handler): """ A handler class which sends an email using exim for each logging event. """ def __init__(self, toaddr, subject, exim_path="/usr/sbin/exim"): """ Initialize the handler. """ logging...
Fix to allow overriding subject formatting
Fix to allow overriding subject formatting
Python
unlicense
danmichaelo/eximhandler
python
## Code Before: import logging from subprocess import Popen, PIPE class EximHandler(logging.Handler): """ A handler class which sends an email using exim for each logging event. """ def __init__(self, toaddr, subject, exim_path="/usr/sbin/exim"): """ Initialize the handler. """...
18ac5c64a7da29e5bf25bc274c61ad6078bace86
config/environments.config.js
config/environments.config.js
// Here is where you can define configuration overrides based on the execution environment. // Supply a key to the default export matching the NODE_ENV that you wish to target, and // the base configuration will apply your overrides before exporting itself. module.exports = { // ======================================...
// Here is where you can define configuration overrides based on the execution environment. // Supply a key to the default export matching the NODE_ENV that you wish to target, and // the base configuration will apply your overrides before exporting itself. module.exports = { // ======================================...
Enable sourcemaps on production builds
Enable sourcemaps on production builds
JavaScript
mit
matthisk/es6console,matthisk/es6console
javascript
## Code Before: // Here is where you can define configuration overrides based on the execution environment. // Supply a key to the default export matching the NODE_ENV that you wish to target, and // the base configuration will apply your overrides before exporting itself. module.exports = { // ======================...
d5e4cfa2c0a52944fe81cf46ad203d4afa10982c
cluster/gce/gci/README.md
cluster/gce/gci/README.md
[GCI](https://cloud.google.com/compute/docs/containers/vm-image/) is a container-optimized OS image for the Google Cloud Platform (GCP). We built GCI primarily for running Google services on GCP. Unlike the open preview version of container-vm, Google Container-VM Image is based on the open source Chromium OS project,...
[Container-VM Image](https://cloud.google.com/compute/docs/containers/vm-image/) is a container-optimized OS image for the Google Cloud Platform (GCP). It is primarily for running Google services on GCP. Unlike the open preview version of container-vm, the new Container-VM Image is based on the open source ChromiumOS ...
Update Container-VM Image product name in docs
Update Container-VM Image product name in docs
Markdown
apache-2.0
chrislovecnm/kubernetes,bsalamat/kubernetes,ChenLingPeng/kubernetes,stefanschneider/kubernetes,kenan435/kubernetes,pires/kubernetes,njuicsgz/kubernetes-1,freehan/kubernetes,7ing/kubernetes,rootfs/kubernetes,spiffxp/kubernetes,verb/kubernetes,colhom/kubernetes,abrarshivani/kubernetes,php-coder/kubernetes,x13n/kubernetes...
markdown
## Code Before: [GCI](https://cloud.google.com/compute/docs/containers/vm-image/) is a container-optimized OS image for the Google Cloud Platform (GCP). We built GCI primarily for running Google services on GCP. Unlike the open preview version of container-vm, Google Container-VM Image is based on the open source Chro...
66d23b3df8db239b46600aee75d59ca10d2ba904
resources/linux/substance-ide.desktop.in
resources/linux/substance-ide.desktop.in
[Desktop Entry] Name=<%= appName %> Comment=<%= description %> GenericName=Text Editor Exec=<%= installDir %>/share/<%= appFileName %>/substance-ide %F Icon=<%= iconPath %> Type=Application StartupNotify=true Categories=GNOME;GTK;Utility;TextEditor;Development; MimeType=text/plain;
[Desktop Entry] Name=<%= appName %> Comment=<%= description %> GenericName=Text Editor Exec=<%= installDir %>/share/<%= appFileName %>/substance-ide %F Icon=<%= iconPath %> Type=Application StartupNotify=true Categories=GNOME;GTK;Utility;TextEditor;Development; MimeType=text/plain; Actions=Dev;Safe [Desktop Action Dev...
Add shortcuts for certain actions in the launcher
Add shortcuts for certain actions in the launcher
unknown
mit
AdrianVovk/substance-ide,AdrianVovk/substance-ide,AdrianVovk/substance-ide
unknown
## Code Before: [Desktop Entry] Name=<%= appName %> Comment=<%= description %> GenericName=Text Editor Exec=<%= installDir %>/share/<%= appFileName %>/substance-ide %F Icon=<%= iconPath %> Type=Application StartupNotify=true Categories=GNOME;GTK;Utility;TextEditor;Development; MimeType=text/plain; ## Instruction: Add ...
a30bb2a27bac02106162bd0ab5b6d40d9d7a19fc
spec/support/command.rb
spec/support/command.rb
def simple_command(v, opts = {}) Expeditor::Command.new(opts) do v end end def sleep_command(n, v, opts = {}) Expeditor::Command.new(opts) do sleep n v end end def error_command(e, opts = {}) Expeditor::Command.new(opts) do raise e end end
module CommandHelpers def simple_command(v, opts = {}) Expeditor::Command.new(opts) do v end end def sleep_command(n, v, opts = {}) Expeditor::Command.new(opts) do sleep n v end end def error_command(e, opts = {}) Expeditor::Command.new(opts) do raise e end ...
Change global methods to module methods
Change global methods to module methods
Ruby
mit
cookpad/expeditor,cookpad/expeditor
ruby
## Code Before: def simple_command(v, opts = {}) Expeditor::Command.new(opts) do v end end def sleep_command(n, v, opts = {}) Expeditor::Command.new(opts) do sleep n v end end def error_command(e, opts = {}) Expeditor::Command.new(opts) do raise e end end ## Instruction: Change global met...
560baa4e685194345ec1219052a0e8519e3783ab
helpers/modules.js
helpers/modules.js
// function checkPermissions(bot, message) { // return true; // } // function disabledMessage(bot, message) { // } // module.exports = { // checkPermissions: checkPermissions, // disabledMessage: disabledMessage // };
var moduleList = ['Core', 'Fun', 'Utilities', 'Misc']; module.exports = { list: moduleList }
Add module masterlist to helpers
Add module masterlist to helpers
JavaScript
mit
devacademyla/PiscoBot,devacademyla/PiscoBot
javascript
## Code Before: // function checkPermissions(bot, message) { // return true; // } // function disabledMessage(bot, message) { // } // module.exports = { // checkPermissions: checkPermissions, // disabledMessage: disabledMessage // }; ## Instruction: Add module masterlist to helpers ## Code After: var mo...
64a0ceb70923951628dc72501fa70ed86935dd24
.travis.yml
.travis.yml
branches: only: - master language: go install: - go get -t ./... - go get -u github.com/kisielk/errcheck script: - go test ./... - errcheck ./... - | go run main.go & sleep 2 - go run integtests/main.go - python pyclient/integtest.py
branches: only: - master language: go go: - 1.8 install: - go get -t ./... - go get -u github.com/kisielk/errcheck script: - go test ./... - errcheck ./... - | go run main.go & sleep 2 - go run integtests/main.go - python pyclient/integtest.py
Use Go 1.8 in Travis
Use Go 1.8 in Travis
YAML
mit
divtxt/lockd,divtxt/lockd
yaml
## Code Before: branches: only: - master language: go install: - go get -t ./... - go get -u github.com/kisielk/errcheck script: - go test ./... - errcheck ./... - | go run main.go & sleep 2 - go run integtests/main.go - python pyclient/integtest.py ## Instruction: Use Go 1.8 in Travis ...
45bb129760da600879d1d75baeb17100a8824426
setup.py
setup.py
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_description=open('README.md').re...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_description=open('README.md').re...
Include new data directory as package data
Include new data directory as package data
Python
mit
permamodel/permamodel,permamodel/permamodel
python
## Code Before: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_description=open...
f62d384be9d3364ecd5e0634d6fb2e8eda455523
StaticData/OEMSettings/Settings.json
StaticData/OEMSettings/Settings.json
{ "ForceTestEnvironment": true }
{ "ShowShopButton": true, "PreloadedLibraryFiles": [ "MatterControl - Coin.stl", "MatterControl - Stand.stl", "Calibration - Box.stl" ] "ForceTestEnvironment": true }
Make sure we have the right preloaded files.
Make sure we have the right preloaded files.
JSON
bsd-2-clause
rytz/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,MatterHackers/MatterControl,rytz/MatterControl,rytz/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,tellingmachine/MatterControl,larsbrubaker/MatterControl,tellingmachine/MatterControl,...
json
## Code Before: { "ForceTestEnvironment": true } ## Instruction: Make sure we have the right preloaded files. ## Code After: { "ShowShopButton": true, "PreloadedLibraryFiles": [ "MatterControl - Coin.stl", "MatterControl - Stand.stl", "Calibration - Box.stl" ] "ForceTestEnvironment": true }
98e0c0f2f48a1f8914bc631e040616bb8db23fa1
packages/styles/scss/components/_breadcrumb.scss
packages/styles/scss/components/_breadcrumb.scss
.breadcrumb { &-container { @extend .bordered; } &-item:not(:last-of-type)::after { content: ''; display: inline-block; width: 1.6rem; height: 1.6rem; background: transparent url('#{$path-images}sprite-for-css-only.svg#css-greater') 0 0 no-repeat; background-size: 1.4rem; position: relative; ...
.breadcrumb { &-container { @extend .bordered; } &-button { padding: 0.4em; opacity: 0.3; color: inherit; &[disabled][aria-current='step'] { font-weight: bold; opacity: 1; color: inherit; } } }
Fix - remove SVG sprite for CSS (breadcrumb)
Fix - remove SVG sprite for CSS (breadcrumb)
SCSS
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
scss
## Code Before: .breadcrumb { &-container { @extend .bordered; } &-item:not(:last-of-type)::after { content: ''; display: inline-block; width: 1.6rem; height: 1.6rem; background: transparent url('#{$path-images}sprite-for-css-only.svg#css-greater') 0 0 no-repeat; background-size: 1.4rem; posit...
aabca66efcfeb972476ea455000c17b5c96316be
test/core_test.rb
test/core_test.rb
require "helper" class Book < ActiveRecord::Base extend FriendlyId friendly_id :name end class Author < ActiveRecord::Base extend FriendlyId friendly_id :name has_many :books end class CoreTest < Minitest::Test include FriendlyId::Test include FriendlyId::Test::Shared::Core def model_class Auth...
require "helper" class Book < ActiveRecord::Base extend FriendlyId friendly_id :name end class Author < ActiveRecord::Base extend FriendlyId friendly_id :name has_many :books end class CoreTest < Minitest::Test include FriendlyId::Test include FriendlyId::Test::Shared::Core def model_class Auth...
Remove anonymous test for Marshal as we don't use anonymous classes anymore.
Remove anonymous test for Marshal as we don't use anonymous classes anymore.
Ruby
mit
MAubreyK/friendly_id,MatthewRDodds/friendly_id,Pathgather/friendly_id,morsedigital/friendly_id,ashagnanasekar/friendly_id,norman/friendly_id,onursarikaya/friendly_id,sideci-sample/sideci-sample-friendly_id,tekin/friendly_id,ThanhKhoaIT/friendly_id,kangkyu/friendly_id,joshsoftware/friendly_id
ruby
## Code Before: require "helper" class Book < ActiveRecord::Base extend FriendlyId friendly_id :name end class Author < ActiveRecord::Base extend FriendlyId friendly_id :name has_many :books end class CoreTest < Minitest::Test include FriendlyId::Test include FriendlyId::Test::Shared::Core def mode...
42b1ffb958906fb9b977186248d1ee4c9d7b23b2
app/models/refinery/retailers/retailer.rb
app/models/refinery/retailers/retailer.rb
module Refinery module Retailers class Retailer < Refinery::Core::BaseModel self.table_name = 'refinery_retailers' validates :address, :presence => true, :uniqueness => true acts_as_indexed :fields => [:title, :contact, :address, :country_code, :state_code, :city] scope :published, -> {...
module Refinery module Retailers class Retailer < Refinery::Core::BaseModel self.table_name = 'refinery_retailers' before_validation :smart_add_url_protocol validates :address, :presence => true, :uniqueness => true acts_as_indexed :fields => [:title, :contact, :address, :country_code, ...
Add method to add http on website url
Add method to add http on website url
Ruby
mit
bisscomm/refinerycms-retailers,bisscomm/refinerycms-retailers
ruby
## Code Before: module Refinery module Retailers class Retailer < Refinery::Core::BaseModel self.table_name = 'refinery_retailers' validates :address, :presence => true, :uniqueness => true acts_as_indexed :fields => [:title, :contact, :address, :country_code, :state_code, :city] scope ...
a2c2cf53d272d027c26cab6d83b2bde24cd53618
.travis.yml
.travis.yml
sudo: required language: java jdk: oraclejdk8 install: true env: local: maven: - repository=$HOME/.m2 before_install: - openssl aes-256-cbc -K $encrypted_9439cd6c8a5e_key -iv $encrypted_9439cd6c8a5e_iv -in codesigning.asc.enc -out codesigning.asc -d cache: directories: - "$HOME/.m2" script: - mvn clean in...
sudo: required language: java jdk: oraclejdk8 install: true env: local: maven: - repository=$HOME/.m2 before_install: - openssl aes-256-cbc -K $encrypted_9439cd6c8a5e_key -iv $encrypted_9439cd6c8a5e_iv -in codesigning.asc.enc -out codesigning.asc -d cache: directories: - "$HOME/.m2" script: - mvn clean in...
Deploy SNAPSHOT from master too.
Deploy SNAPSHOT from master too.
YAML
apache-2.0
ZsZs/processpuzzle-parent
yaml
## Code Before: sudo: required language: java jdk: oraclejdk8 install: true env: local: maven: - repository=$HOME/.m2 before_install: - openssl aes-256-cbc -K $encrypted_9439cd6c8a5e_key -iv $encrypted_9439cd6c8a5e_iv -in codesigning.asc.enc -out codesigning.asc -d cache: directories: - "$HOME/.m2" script...
3fc94b4cffcfd08b439386fb2b01aa1e12fec6d5
iati/core/tests/test_data.py
iati/core/tests/test_data.py
"""A module containing tests for the library representation of IATI data.""" import iati.core.data class TestDatasets(object): """A container for tests relating to Datasets""" pass
"""A module containing tests for the library representation of IATI data.""" import iati.core.data class TestDatasets(object): """A container for tests relating to Datasets""" def test_dataset_no_params(self): """Test Dataset creation with no parameters.""" pass def test_dataset_valid_xm...
Test stubs for dataset creation
Test stubs for dataset creation
Python
mit
IATI/iati.core,IATI/iati.core
python
## Code Before: """A module containing tests for the library representation of IATI data.""" import iati.core.data class TestDatasets(object): """A container for tests relating to Datasets""" pass ## Instruction: Test stubs for dataset creation ## Code After: """A module containing tests for the library re...
ad71cb0d5026adcb58dae6fe243eec96b762e148
README.md
README.md
[![Code Climate](https://codeclimate.com/github/CoastDigitalGroup/subengine/badges/gpa.svg)](https://codeclimate.com/github/CoastDigitalGroup/subengine) [![security](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master.svg)](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master) # CoastDigitalGrou...
[![Code Climate](https://codeclimate.com/github/CoastDigitalGroup/subengine/badges/gpa.svg)](https://codeclimate.com/github/CoastDigitalGroup/subengine) [![security](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master.svg)](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master) # CoastDigitalGrou...
Add old instructions to new project. Will need to adjust.
Add old instructions to new project. Will need to adjust.
Markdown
mit
CoastDigitalGroup/cdg-subengine-devise,PHCNetworks/multi-tenancy-devise,CoastDigitalGroup/cdg-subengine,CoastDigitalGroup/cdg-subengine-devise,PHCNetworks/multi-tenancy-devise,CoastDigitalGroup/cdg-subengine,CoastDigitalGroup/cdg-subengine-devise,CoastDigitalGroup/cdg-subengine,PHCNetworks/multi-tenancy-devise
markdown
## Code Before: [![Code Climate](https://codeclimate.com/github/CoastDigitalGroup/subengine/badges/gpa.svg)](https://codeclimate.com/github/CoastDigitalGroup/subengine) [![security](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master.svg)](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master) # ...
0dfa39063396272859dc1fe18453081992311f6f
server/src/spira/core/util.clj
server/src/spira/core/util.clj
;; Copyright (C) 2013 Anders Sundman <anders@4zm.org> ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU Affero General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; ;...
;; Copyright (C) 2013 Anders Sundman <anders@4zm.org> ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU Affero General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; ;...
Support for parsing large numbers
Support for parsing large numbers
Clojure
agpl-3.0
4ZM/spira
clojure
## Code Before: ;; Copyright (C) 2013 Anders Sundman <anders@4zm.org> ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU Affero General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any lat...
aae2f0bc2686b9a9dff07f9fce09a1da7f14fb38
.mergify.yml
.mergify.yml
pull_request_rules: - name: automatic merge when CI passes and 2 reviews conditions: - "#approved-reviews-by>=2" - "#review-requested=0" - "#changes-requested-reviews-by=0" - "#commented-reviews-by=0" - status-success=check_submodules - status-success=build.* - status-suc...
pull_request_rules: - name: automatic merge when CI passes and 2 reviews conditions: - "#approved-reviews-by>=2" - "#review-requested=0" - "#changes-requested-reviews-by=0" - "#commented-reviews-by=0" - status-success~=build - status-success=check_submodules - status-succ...
Change operator to match regular expression
Change operator to match regular expression
YAML
agpl-3.0
Tisseo/navitia,CanalTP/navitia,xlqian/navitia,CanalTP/navitia,xlqian/navitia,Tisseo/navitia,CanalTP/navitia,Tisseo/navitia,Tisseo/navitia,CanalTP/navitia,xlqian/navitia,xlqian/navitia,xlqian/navitia,Tisseo/navitia,CanalTP/navitia
yaml
## Code Before: pull_request_rules: - name: automatic merge when CI passes and 2 reviews conditions: - "#approved-reviews-by>=2" - "#review-requested=0" - "#changes-requested-reviews-by=0" - "#commented-reviews-by=0" - status-success=check_submodules - status-success=build.* ...
5bf97521cda15b6fcfc93790c429df83e3aab432
app/helpers/checklist_helper.rb
app/helpers/checklist_helper.rb
module ChecklistHelper def format_criteria_list(criteria) criteria.map { |criterion| { readable_text: criterion.text } } end def format_action_audiences(actions) action_groups = actions.group_by(&:audience) action_groups.map do |key, action_group| { heading: I18n.t("checklists_results....
module ChecklistHelper def format_criteria_list(criteria) criteria.map { |criterion| { readable_text: criterion.text } } end def format_action_audiences(actions) action_groups = actions.group_by(&:audience) action_groups.map do |key, action_group| { heading: I18n.t("checklists_results....
Allow radio buttons to display hint text
Allow radio buttons to display hint text
Ruby
mit
alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend
ruby
## Code Before: module ChecklistHelper def format_criteria_list(criteria) criteria.map { |criterion| { readable_text: criterion.text } } end def format_action_audiences(actions) action_groups = actions.group_by(&:audience) action_groups.map do |key, action_group| { heading: I18n.t("che...
bcf0efdf9e141399068444ee6c983dc4f4dab93a
awa/docs/Tips.md
awa/docs/Tips.md
Use a combination of `fn:trim`, `fn:substring` and `util:escapeJavaScript` to create the Open Graph description. The first two functions will remove spaces at begining and end of the description and will truncate the string. The `util:escapeJavaScript` is then necessary to make a value HTML attribute when the descrip...
Use a combination of `fn:trim`, `fn:substring` and `util:escapeJavaScript` to create the Open Graph description. The first two functions will remove spaces at begining and end of the description and will truncate the string. The `util:escapeJavaScript` is then necessary to make a value HTML attribute when the descrip...
Add some tip to add permission when a user is created
Add some tip to add permission when a user is created
Markdown
apache-2.0
stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa
markdown
## Code Before: Use a combination of `fn:trim`, `fn:substring` and `util:escapeJavaScript` to create the Open Graph description. The first two functions will remove spaces at begining and end of the description and will truncate the string. The `util:escapeJavaScript` is then necessary to make a value HTML attribute ...
78245ac1cdfacdd62adf7da6fc3715967343a0ac
.travis.yml
.travis.yml
language: python python: 2.7 env: - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=pep8 install: - pip install tox coveralls script: - tox -e $TOX_ENV after_success: - coveralls
language: python python: 2.7 env: - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj17 - TOX_ENV=pep8 install: - pip install tox coveralls script: - tox -e $TOX_ENV after_success: - coveralls
Enable Travis checks for Django 1.7
Enable Travis checks for Django 1.7
YAML
bsd-3-clause
aldryn/aldryn-sites
yaml
## Code Before: language: python python: 2.7 env: - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=pep8 install: - pip install tox coveralls script: - tox -e $TOX_ENV after_success: - coveralls ## Instruction: Enable Travis checks for Django 1.7 ## Code After: language: python python: 2.7 env: - TOX...
41e27b26dabdea1540cfa3d99eb0749d82754cb4
create-neon/data/templates/Cargo.toml.hbs
create-neon/data/templates/Cargo.toml.hbs
[package] name = "{{package.name}}" version = "{{package.version}}" {{#if package.description}} description = {{package.quotedDescription}} {{/if}} {{#if package.author}} authors = [{{package.quotedAuthor}}] {{/if}} {{#if package.license}} license = "{{package.license}}" {{/if}} edition = "2018" exclude = ["index.node"...
[package] name = "{{package.name}}" version = "{{package.version}}" {{#if package.description}} description = {{package.quotedDescription}} {{/if}} {{#if package.author}} authors = [{{package.quotedAuthor}}] {{/if}} {{#if package.license}} license = "{{package.license}}" {{/if}} edition = "2018" exclude = ["index.node"...
Add empty dependencies section and link to cargo manifest format (same as `cargo init`)
doc(create-neon): Add empty dependencies section and link to cargo manifest format (same as `cargo init`)
Handlebars
apache-2.0
neon-bindings/neon,neon-bindings/neon,neon-bindings/neon,neon-bindings/neon
handlebars
## Code Before: [package] name = "{{package.name}}" version = "{{package.version}}" {{#if package.description}} description = {{package.quotedDescription}} {{/if}} {{#if package.author}} authors = [{{package.quotedAuthor}}] {{/if}} {{#if package.license}} license = "{{package.license}}" {{/if}} edition = "2018" exclude...
aae6f672bd588eece64b65e76c17c392d9ab17cc
.travis.yml
.travis.yml
language: objective-c before_install: - if test -z $(brew list | grep -i xcproj); then brew install xcproj; fi - export LANG=en_US.UTF-8 install: - bundle install --without development --deployment --jobs=3 --retry=3 - bundle exec pod install script: - xctool -workspace NEUPagingSegmentedControl.xcworkspace -...
language: objective-c osx_image: xcode6.4 before_install: - if test -z $(brew list | grep -i xcproj); then brew install xcproj; fi - export LANG=en_US.UTF-8 install: - bundle install --without development --deployment --jobs=3 --retry=3 - bundle exec pod install script: - xctool -workspace NEUPagingSegmentedC...
Use Xcode 6.4 on Travis CI
Use Xcode 6.4 on Travis CI
YAML
mit
bcylin/NEUPagingSegmentedControl,yenchenlin1994/NEUPagingSegmentedControl
yaml
## Code Before: language: objective-c before_install: - if test -z $(brew list | grep -i xcproj); then brew install xcproj; fi - export LANG=en_US.UTF-8 install: - bundle install --without development --deployment --jobs=3 --retry=3 - bundle exec pod install script: - xctool -workspace NEUPagingSegmentedContr...