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
79a2b0fa95c343bdb4bd43b5829cf7cd3f49b067
deploy/tests/front-end.sh
deploy/tests/front-end.sh
if [ "$(curl -s http://localhost/business/F000032 |grep -c 'AMERICAN BRANDS')" -lt 1 ]; then echo "ERROR: Front-end is not returning business records" ERRORED=true fi # Query a business ID that doesn't exist if [ "$(curl -Is http://localhost/business/F000001 |grep -c '404 Not Found')" -lt 1 ]; then echo "E...
if [ "$(curl -s http://localhost/business/F000032 |grep -c 'AMERICAN BRANDS')" -lt 1 ]; then echo "ERROR: Front-end is not returning business records" ERRORED=true fi # Query a business ID that doesn't exist if [ "$(curl -Is http://localhost/business/F000001 |grep -c '404 Not Found')" -lt 1 ]; then echo "E...
Add a test for zero search results
Add a test for zero search results
Shell
mit
openva/vabusinesses.org,openva/vabusinesses.org
shell
## Code Before: if [ "$(curl -s http://localhost/business/F000032 |grep -c 'AMERICAN BRANDS')" -lt 1 ]; then echo "ERROR: Front-end is not returning business records" ERRORED=true fi # Query a business ID that doesn't exist if [ "$(curl -Is http://localhost/business/F000001 |grep -c '404 Not Found')" -lt 1 ]; ...
41fbc4d5dea6c29e3023be93170a8cfcef7d1785
app/assets/stylesheets/_viewports.scss
app/assets/stylesheets/_viewports.scss
/* RESPONSIVE VIEWPORT STYLING ----------------------------------- */ /* Pre-defined viewports (see variables in settings.scss) */ @import "viewports/medium"; @import "viewports/small"; @import "viewports/xsmall"; /* Adjustments */ @media only screen and (min-width: $screenSmall+1) { .inner-bar [role="search"...
/* RESPONSIVE VIEWPORT STYLING ----------------------------------- */ /* Pre-defined viewports (see variables in settings.scss) */ @import "viewports/medium"; @import "viewports/small"; @import "viewports/xsmall"; /* Adjustments */ @media only screen and (min-width: $screenSmall+1) { .inner-bar [role="search"...
Make sure nav is always visible if screen is large enough
Make sure nav is always visible if screen is large enough Fixes #170
SCSS
mit
cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails
scss
## Code Before: /* RESPONSIVE VIEWPORT STYLING ----------------------------------- */ /* Pre-defined viewports (see variables in settings.scss) */ @import "viewports/medium"; @import "viewports/small"; @import "viewports/xsmall"; /* Adjustments */ @media only screen and (min-width: $screenSmall+1) { .inner-ba...
94c9a1483117eb0b7150290845806d6a3461044e
ui/src/shared/components/FancyScrollbar.js
ui/src/shared/components/FancyScrollbar.js
import React, {Component, PropTypes} from 'react' import {Scrollbars} from 'react-custom-scrollbars' class FancyScrollbox extends Component { constructor(props) { super(props) } render() { const {children, className} = this.props return ( <Scrollbars className={`fancy-scroll--containe...
import React, {Component, PropTypes} from 'react' import classnames from 'classnames' import {Scrollbars} from 'react-custom-scrollbars' class FancyScrollbox extends Component { constructor(props) { super(props) } static defaultProps = { autoHide: true, } render() { const {autoHide, children, c...
Add autoHide prop to pass down
Add autoHide prop to pass down
JavaScript
agpl-3.0
brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf
javascript
## Code Before: import React, {Component, PropTypes} from 'react' import {Scrollbars} from 'react-custom-scrollbars' class FancyScrollbox extends Component { constructor(props) { super(props) } render() { const {children, className} = this.props return ( <Scrollbars className={`fancy-...
5b0590c322ede604258f3d9c07bf388ed4064cf0
test/test_engine.rb
test/test_engine.rb
module WeaverEngine describe Engine do before do @user_id = 'tester' @branch_id = 'master' @modules = {} @modules["newbie"] = %{ function init() p[[Hello]] await_user() end } @data = MemDataAdapter.new(@user_id,@branch_id, @modules) ...
module WeaverEngine describe Engine do before do @user_id = 'tester' @branch_id = 'master' @modules = {} @modules["newbie"] = %{ function init() p[[Hello]] coroutine.yield({status='prompt'}) end } @data = MemDataAdapter.new(@user_id,@br...
Use coroutine.yield directly from test.
Use coroutine.yield directly from test.
Ruby
mit
nathanaeljones/weaver_engine
ruby
## Code Before: module WeaverEngine describe Engine do before do @user_id = 'tester' @branch_id = 'master' @modules = {} @modules["newbie"] = %{ function init() p[[Hello]] await_user() end } @data = MemDataAdapter.new(@user_id,@branch_i...
06c5f27c04de9fa62f6ac4834e0a920349c27084
rules/binutils.py
rules/binutils.py
import xyz import os import shutil class Binutils(xyz.BuildProtocol): pkg_name = 'binutils' supported_targets = ['arm-none-eabi'] def check(self, builder): if builder.target not in self.supported_targets: raise xyz.UsageError("Invalid target ({}) for {}".format(builder.target, self.pkg...
import xyz import os import shutil class Binutils(xyz.BuildProtocol): pkg_name = 'binutils' supported_targets = ['arm-none-eabi'] def check(self, builder): if builder.target not in self.supported_targets: raise xyz.UsageError("Invalid target ({}) for {}".format(builder.target, self.pkg...
Remove man pages post-install (for now)
Remove man pages post-install (for now)
Python
mit
BreakawayConsulting/xyz
python
## Code Before: import xyz import os import shutil class Binutils(xyz.BuildProtocol): pkg_name = 'binutils' supported_targets = ['arm-none-eabi'] def check(self, builder): if builder.target not in self.supported_targets: raise xyz.UsageError("Invalid target ({}) for {}".format(builder....
7294fb8caeede2f63b916d37bb710152e7e50cbc
README.md
README.md
data Maybe a where Nothing :: Maybe a Just :: a -> Maybe a ### Type Class Instances instance alternativeMaybe :: Alternative Maybe instance applicativeMaybe :: Applicative Maybe instance applyMaybe :: Apply Maybe instance bindMaybe :: Bind Maybe instance eqMaybe :: (Eq a) => ...
data Maybe a where Nothing :: Maybe a Just :: a -> Maybe a ### Type Class Instances instance alternativeMaybe :: Alternative Maybe instance applicativeMaybe :: Applicative Maybe instance applyMaybe :: Apply Maybe instance bindMaybe :: Bind Maybe instance eqMaybe :: (Eq a) => ...
Update docs with prettier docgen
Update docs with prettier docgen
Markdown
mit
hdgarrood/purescript-maybe,pure14/purescript-maybe,pure14/purescript-maybe
markdown
## Code Before: data Maybe a where Nothing :: Maybe a Just :: a -> Maybe a ### Type Class Instances instance alternativeMaybe :: Alternative Maybe instance applicativeMaybe :: Applicative Maybe instance applyMaybe :: Apply Maybe instance bindMaybe :: Bind Maybe instance eqMay...
3b09ee8ecce7177c045102e4168e2bf178c6ecc2
k8-minikube/build/app-image/app-sync.sh
k8-minikube/build/app-image/app-sync.sh
echo "App Image Sidecar Container" echo "" echo "Copying application into shared volume." # Todo, move over to rsync. # todo: check target dir exists or error out. # toto: use env var for source and target paths. cp -R /app /www-data
echo "App Image Sidecar Container" echo "" echo "Copying application into shared volume." echo "" echo "Rsync source is: ${RSYNC_SOURCE}/" echo "Rsync destination is: ${RSYNC_DEST}/" # Rsync to destination and preserve symlinks and file perms. rsync -vah "${RSYNC_SOURCE}/" "${RSYNC_DEST}" # Keep the container alive...
Update rsync script with env vars.
Update rsync script with env vars.
Shell
apache-2.0
krook/nginx-php-container-cluster,krook/nginx-php-container-cluster
shell
## Code Before: echo "App Image Sidecar Container" echo "" echo "Copying application into shared volume." # Todo, move over to rsync. # todo: check target dir exists or error out. # toto: use env var for source and target paths. cp -R /app /www-data ## Instruction: Update rsync script with env vars. ## Code After: ...
c696350b8b41a1b6625c92683a7e5c66e7262329
plugins/shared_filesystem_storage/app/assets/javascripts/shared_filesystem_storage/components/shares/access_item.coffee
plugins/shared_filesystem_storage/app/assets/javascripts/shared_filesystem_storage/components/shares/access_item.coffee
{ tr,td,button,i } = React.DOM shared_filesystem_storage.AccessItem = React.createClass getInitialState: -> deleting: false handleDelete: (e) -> e.preventDefault() shared_filesystem_storage.ConfirmDialog.ask 'Are you sure?', #validationTerm: @props.shared_network.name description: 'Wo...
{ tr,td,button,i } = React.DOM shared_filesystem_storage.AccessItem = React.createClass getInitialState: -> deleting: false handleDelete: (e) -> e.preventDefault() shared_filesystem_storage.ConfirmDialog.ask 'Are you sure?', #validationTerm: @props.shared_network.name description: 'Would y...
Add icons and styling to access level, humanize access level
Add icons and styling to access level, humanize access level
CoffeeScript
apache-2.0
sapcc/elektra,sapcc/elektra,sapcc/elektra,sapcc/elektra
coffeescript
## Code Before: { tr,td,button,i } = React.DOM shared_filesystem_storage.AccessItem = React.createClass getInitialState: -> deleting: false handleDelete: (e) -> e.preventDefault() shared_filesystem_storage.ConfirmDialog.ask 'Are you sure?', #validationTerm: @props.shared_network.name ...
e23a6121cf3214c7cf8353c4ae9bf4b686f585b9
import/scrape.rb
import/scrape.rb
require "open-uri" require "mongo" require "parallel" require "ruby-progressbar" load "import/get_object.rb" load "import/resume_at.rb" # Connect to the database coll = Mongo::MongoClient.new['va']['objects'] start = resume_at(coll) puts "Starting at O#{start}" obj_numbers = (start...1290000) prog_bar = ProgressBar...
require "open-uri" require "mongo" require "parallel" require "ruby-progressbar" load "import/get_object.rb" load "import/resume_at.rb" # Connect to the database coll = Mongo::MongoClient.new['va']['objects'] start = resume_at(coll) puts "Starting at O#{start}" total_records = 1290000 obj_numbers = (start...total_re...
Use variable for total records
Use variable for total records
Ruby
mit
mdlincoln/vam_data
ruby
## Code Before: require "open-uri" require "mongo" require "parallel" require "ruby-progressbar" load "import/get_object.rb" load "import/resume_at.rb" # Connect to the database coll = Mongo::MongoClient.new['va']['objects'] start = resume_at(coll) puts "Starting at O#{start}" obj_numbers = (start...1290000) prog_b...
53346b52840a218c4128f44ffed9222adbf82a67
sum-of-multiples/test/sum-of-multiples-tests.lfe
sum-of-multiples/test/sum-of-multiples-tests.lfe
(defmodule sum-of-multiples-tests (behaviour ltest-unit) (export all)) (include-lib "eunit/include/eunit.hrl") (include-lib "ltest/include/ltest-macros.lfe") (deftest sum-to-1 (is-equal 0 (sum-of-multiples:sum-of-multiples 1))) (deftest sum-to-3 (is-equal 3 (sum-of-multiples:sum-of-multiples 4))) (deftest s...
(defmodule sum-of-multiples-tests (behaviour ltest-unit) (export all)) (include-lib "eunit/include/eunit.hrl") (include-lib "ltest/include/ltest-macros.lfe") (deftest sum-to-1 (is-equal 0 (sum-of-multiples:sum-of-multiples 1))) (deftest sum-to-3 (is-equal 3 (sum-of-multiples:sum-of-multiples 4))) (deftest s...
Add missing sum of multiples test
Add missing sum of multiples test
LFE
mit
lfex/xlfe,exercism/xlfe
lfe
## Code Before: (defmodule sum-of-multiples-tests (behaviour ltest-unit) (export all)) (include-lib "eunit/include/eunit.hrl") (include-lib "ltest/include/ltest-macros.lfe") (deftest sum-to-1 (is-equal 0 (sum-of-multiples:sum-of-multiples 1))) (deftest sum-to-3 (is-equal 3 (sum-of-multiples:sum-of-multiples ...
d101990df79318ef5940aa0e9a0fe4372389c7f9
README.md
README.md
[![Build Status](https://travis-ci.org/pubnative/mysqldriver-go.svg?branch=master)](https://travis-ci.org/pubnative/mysqldriver-go) [![GoDoc](https://godoc.org/github.com/pubnative/mysqldriver-go?status.svg)](https://godoc.org/github.com/pubnative/mysqldriver-go)
[![Build Status](https://travis-ci.org/pubnative/mysqldriver-go.svg?branch=master)](https://travis-ci.org/pubnative/mysqldriver-go) [![GoDoc](https://godoc.org/github.com/pubnative/mysqldriver-go?status.svg)](https://godoc.org/github.com/pubnative/mysqldriver-go) ## Motivation There are already many MySQL drivers whic...
Add motivation points about GC
Add motivation points about GC
Markdown
mit
pubnative/mysqldriver-go
markdown
## Code Before: [![Build Status](https://travis-ci.org/pubnative/mysqldriver-go.svg?branch=master)](https://travis-ci.org/pubnative/mysqldriver-go) [![GoDoc](https://godoc.org/github.com/pubnative/mysqldriver-go?status.svg)](https://godoc.org/github.com/pubnative/mysqldriver-go) ## Instruction: Add motivation points a...
766f85d998d7249ff167bb4b6c639bb8bff59de8
tos/rtc/RealTimeClockC.nc
tos/rtc/RealTimeClockC.nc
/** * RTC configuration. * * @author Raido Pahtma * @license MIT */ configuration RealTimeClockC { provides interface RealTimeClock; } implementation { components new RealTimeClockP(); RealTimeClock = RealTimeClockP; components LocalTimeSecondC; RealTimeClockP.LocalTime -> LocalTimeSecondC; }
/** * RTC configuration. * * @author Raido Pahtma * @license MIT */ configuration RealTimeClockC { provides interface RealTimeClock; } implementation { components new RealTimeClockP(); RealTimeClock = RealTimeClockP; components LocalTimeSecondC; RealTimeClockP.LocalTime -> LocalTimeSecondC; components Time...
Include TimeConversion functions by default.
Include TimeConversion functions by default.
nesC
mit
proactivity-lab/tos-rtc
nesc
## Code Before: /** * RTC configuration. * * @author Raido Pahtma * @license MIT */ configuration RealTimeClockC { provides interface RealTimeClock; } implementation { components new RealTimeClockP(); RealTimeClock = RealTimeClockP; components LocalTimeSecondC; RealTimeClockP.LocalTime -> LocalTimeSecondC; ...
ac9acf567a2bd74e573f20b1acab36abab60348f
docker-compose.yml
docker-compose.yml
version: '3' services: nsqlookupd: image: nsqio/nsq command: /nsqlookupd ports: - "4161:4161" - "4160:4160" volumes: - ./docker/nsq/nsq.config:/etc/nsq.config:ro nsqd: image: nsqio/nsq command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --data-path=/nsq_data -broadcast-add...
version: '3' services: nsqlookupd: image: nsqio/nsq command: /nsqlookupd ports: - "4161:4161" - "4160:4160" volumes: - ./docker/nsq/nsq.config:/etc/nsq.config:ro nsqd: image: nsqio/nsq command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --data-path=/nsq_data -broadcast-add...
Use env vars for nsqd params
Use env vars for nsqd params
YAML
apache-2.0
APTrust/exchange,APTrust/exchange,APTrust/exchange
yaml
## Code Before: version: '3' services: nsqlookupd: image: nsqio/nsq command: /nsqlookupd ports: - "4161:4161" - "4160:4160" volumes: - ./docker/nsq/nsq.config:/etc/nsq.config:ro nsqd: image: nsqio/nsq command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --data-path=/nsq_dat...
8700c231c07539187e8f513633501a7372d1fbb9
lib/grid_one.rb
lib/grid_one.rb
class GridOne attr_reader :map, :user, :program_1, :background def initialize(window, user) @window, @user = window, user end def start @map = Map.new(@window, 'media/grid_one.txt', 'media/grid_one_tileset.png', {'V'=>0, 'g'=>1, '.'=>nil}) @background = Gosu::Image.new(@wind...
class GridOne attr_reader :map, :user, :program_1, :background def initialize(window, user) @window, @user = window, user @map = Map.new(@window, 'media/grid_one.txt', 'media/grid_one_tileset.png', {'V'=>0, 'g'=>1, '.'=>nil}) @background = Gosu::Image.new(@window, 'media/background...
Make grid.start set that grid as @current_grid
Make grid.start set that grid as @current_grid
Ruby
mit
mybuddymichael/poke
ruby
## Code Before: class GridOne attr_reader :map, :user, :program_1, :background def initialize(window, user) @window, @user = window, user end def start @map = Map.new(@window, 'media/grid_one.txt', 'media/grid_one_tileset.png', {'V'=>0, 'g'=>1, '.'=>nil}) @background = Gosu:...
87fd189a152a926ba4a5b66bcdc70f09e7e6f6ec
js/turducken.js
js/turducken.js
"use strict"; function User( fName, lName) { this.fName = fName; this.lName = lName; //this.img = img; //need to add images and urls... this.posts = []; } User.prototype.newPost = function( content, socMedia ) { this.posts.push( new Post( content, socMedia )); } function pushToLocalStorage( user ...
"use strict"; function User( fName, lName) { this.fName = fName; this.lName = lName; //this.img = img; //need to add images and urls... this.posts = []; } User.prototype.newPost = function( content, socMedia ) { this.posts.push( new Post( content, socMedia )); } User.prototype.render = function(...
Reorder functions to align with execution flow.
Reorder functions to align with execution flow.
JavaScript
mit
sevfitz/turducken,sevfitz/turducken
javascript
## Code Before: "use strict"; function User( fName, lName) { this.fName = fName; this.lName = lName; //this.img = img; //need to add images and urls... this.posts = []; } User.prototype.newPost = function( content, socMedia ) { this.posts.push( new Post( content, socMedia )); } function pushToLoc...
8b03d8c6a9e4858491df3193964253bf3a765f8f
src/test/resources/com/foundationdb/sql/pg/yaml/functional/test-from-unixtime.yaml
src/test/resources/com/foundationdb/sql/pg/yaml/functional/test-from-unixtime.yaml
--- - Statement: SELECT FROM_UNIXTIME(1196440219) - output: [[!re '2007-11-30 16:30:19([.]0)?']] --- - Statement: SELECT FROM_UNIXTIME(1390845662, '%Y-%m-%d %H:%i:%s') - output: [[!re '2014-01-27 18:01:02([.]0)?']]
--- - Statement: SELECT FROM_UNIXTIME(1196440219) - output: !select-engine { it: [[ !re '2007-11-30 16:30:19([.]0)?']], all: [[ !re '2007-11-30 11:30:19([.]0)?']] } --- - Statement: SELECT FROM_UNIXTIME(1390845662, '%Y-%m-%d %H:%i:%s') - output: !select-engine { it: [[!re '2014-01-27 18:01:02([.]0)?']], ...
Add EST expected for FTS
Add EST expected for FTS
YAML
agpl-3.0
qiuyesuifeng/sql-layer,wfxiang08/sql-layer-1,shunwang/sql-layer-1,jaytaylor/sql-layer,wfxiang08/sql-layer-1,relateiq/sql-layer,relateiq/sql-layer,qiuyesuifeng/sql-layer,jaytaylor/sql-layer,jaytaylor/sql-layer,ngaut/sql-layer,relateiq/sql-layer,qiuyesuifeng/sql-layer,ngaut/sql-layer,wfxiang08/sql-layer-1,wfxiang08/sql-l...
yaml
## Code Before: --- - Statement: SELECT FROM_UNIXTIME(1196440219) - output: [[!re '2007-11-30 16:30:19([.]0)?']] --- - Statement: SELECT FROM_UNIXTIME(1390845662, '%Y-%m-%d %H:%i:%s') - output: [[!re '2014-01-27 18:01:02([.]0)?']] ## Instruction: Add EST expected for FTS ## Code After: --- - Statement: SELECT FROM_UN...
e77cb240d522da47208b60384c40f03f5c9182e3
tests/test_encoder.py
tests/test_encoder.py
import os import glob import pvl DATA_DIR = os.path.join(os.path.dirname(__file__), 'data/') PDS_DATA_DIR = os.path.join(os.path.dirname(__file__), 'data', 'pds3') def test_dump(): files = glob.glob(os.path.join(PDS_DATA_DIR, "*.lbl")) for infile in files: label = pvl.load(infile) assert la...
import os import glob import pvl DATA_DIR = os.path.join(os.path.dirname(__file__), 'data/') PDS_DATA_DIR = os.path.join(os.path.dirname(__file__), 'data', 'pds3') def test_dump(): files = glob.glob(os.path.join(PDS_DATA_DIR, "*.lbl")) for infile in files: label = pvl.load(infile) assert la...
Add tests for cube and isis encoders.
Add tests for cube and isis encoders.
Python
bsd-3-clause
pbvarga1/pvl,bvnayak/pvl,wtolson/pvl,planetarypy/pvl
python
## Code Before: import os import glob import pvl DATA_DIR = os.path.join(os.path.dirname(__file__), 'data/') PDS_DATA_DIR = os.path.join(os.path.dirname(__file__), 'data', 'pds3') def test_dump(): files = glob.glob(os.path.join(PDS_DATA_DIR, "*.lbl")) for infile in files: label = pvl.load(infile) ...
b8ecdaa7bfa5e98f70a9c754dc43e418b026565c
spec/models/booking_spec.rb
spec/models/booking_spec.rb
describe Booking do subject { FactoryGirl.build :booking } its(:title) { should == 'Simple Booking' } context ".by_value_date" do it "should find bookings on exact day" do date = '2011-05-02' booking = FactoryGirl.create(:booking, :value_date => date) Booking.by_value_date(date).should...
require 'spec_helper' describe Booking do subject { FactoryGirl.build :booking } its(:title) { should == 'Simple Booking' } context ".by_value_date" do it "should find bookings on exact day" do date = '2011-05-02' booking = FactoryGirl.create(:booking, :value_date => date) Booking.by_...
Include spec_helper in booking spec.
Include spec_helper in booking spec.
Ruby
mit
hauledev/has_account,hauledev/has_account_engine,huerlisi/has_accounts,huerlisi/has_accounts_engine,huerlisi/has_accounts,hauledev/has_account,huerlisi/has_accounts,huerlisi/has_accounts_engine,hauledev/has_account_engine,hauledev/has_account,huerlisi/has_accounts_engine,hauledev/has_account_engine
ruby
## Code Before: describe Booking do subject { FactoryGirl.build :booking } its(:title) { should == 'Simple Booking' } context ".by_value_date" do it "should find bookings on exact day" do date = '2011-05-02' booking = FactoryGirl.create(:booking, :value_date => date) Booking.by_value_d...
733e84e56a1d99b87293afdd9d238fc60f35cb78
config/service_change.json
config/service_change.json
{ "device": { "url": "https://controlsapp1/conf/rs/v0/component/physical" }, "legacy_traveler": { "api": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&", "devices": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&device=", "assigned": "https://controls.fri...
{ "device_application": "devices", "device": { "url": "https://controlsapp1/conf/rs/v0/component/physical" }, "legacy_traveler": { "api": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&", "devices": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&device=", ...
Add a new configuration for services template
Add a new configuration for services template
JSON
mit
iTerminate/traveler,dongliu/traveler,iTerminate/traveler,iTerminate/traveler,dongliu/traveler,dongliu/traveler,iTerminate/traveler
json
## Code Before: { "device": { "url": "https://controlsapp1/conf/rs/v0/component/physical" }, "legacy_traveler": { "api": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&", "devices": "https://controls.frib.msu.edu/traveler1/api.php?resource=travelers&device=", "assigned": "http...
c3b1d67e20d25823315b0d89b494276e9b173b67
setup.cfg
setup.cfg
[bumpversion] current_version = 0.1.2 commit = True tag = True [bumpversion:file:setup.py] [bumpversion:file:infoblox_netmri/__init__.py] [wheel] universal = 1
[bumpversion] current_version = 0.1.2 commit = True tag = True [bumpversion:file:setup.py] [bumpversion:file:infoblox_netmri/__init__.py] [flake8] max-line-length = 120 [wheel] universal = 1
Change in flake8 config to allow (21st Century) longer lines.
Change in flake8 config to allow (21st Century) longer lines.
INI
apache-2.0
infobloxopen/infoblox-netmri
ini
## Code Before: [bumpversion] current_version = 0.1.2 commit = True tag = True [bumpversion:file:setup.py] [bumpversion:file:infoblox_netmri/__init__.py] [wheel] universal = 1 ## Instruction: Change in flake8 config to allow (21st Century) longer lines. ## Code After: [bumpversion] current_version = 0.1.2 commit =...
61516a798a8ec337f8058fce763be2f95bad5da1
css/custom.css
css/custom.css
.navbar-inner, .navbar-header { min-height: 70px !important; } .navbar { margin-bottom: 0px; } .navbar-nav > li > a { line-height: 40px; font-size: 20px; } .splash > p { margin-top: 40px; margin-bottom: 40px; margin-left: 30px; margin-right: 30px; width: 60%; } .btn-oval { wi...
.navbar-inner, .navbar-header { min-height: 70px !important; } .navbar { margin-bottom: 0px; } .navbar-nav > li > a { line-height: 40px; font-size: 20px; } .splash > p { margin-top: 40px; margin-bottom: 40px; margin-left: 30px; margin-right: 30px; width: 60%; } .btn-oval { wi...
Clean up the style (a little bit).
Clean up the style (a little bit).
CSS
apache-2.0
videolang/website,videolang/website,videolang/website
css
## Code Before: .navbar-inner, .navbar-header { min-height: 70px !important; } .navbar { margin-bottom: 0px; } .navbar-nav > li > a { line-height: 40px; font-size: 20px; } .splash > p { margin-top: 40px; margin-bottom: 40px; margin-left: 30px; margin-right: 30px; width: 60%; } .b...
4f3a3a02639cd5f6063841f5a3a82d94da1dc0bd
tasks/debian.yml
tasks/debian.yml
--- - name: Install required packages apt: name={{ item }} update_cache=yes state=installed force=yes with_items: - apt-transport-https - ca-certificates - openssl - name: Add docker.io repo apt_repository: repo='deb https://apt.dockerproject.org/repo debian-jessie main' state=present - name: Insta...
--- - name: Install required packages apt: name={{ item }} update_cache=yes state=installed force=yes with_items: - apt-transport-https - ca-certificates - openssl - python-pip - name: Add docker.io repo apt_repository: repo='deb https://apt.dockerproject.org/repo debian-jessie main' state=prese...
Add pip to required packages
Add pip to required packages Fixes `Unable to find any of pip2, pip to use. pip needs to be installed.` when the target node has no `pip` yet.
YAML
mit
clayman74/ansible-docker
yaml
## Code Before: --- - name: Install required packages apt: name={{ item }} update_cache=yes state=installed force=yes with_items: - apt-transport-https - ca-certificates - openssl - name: Add docker.io repo apt_repository: repo='deb https://apt.dockerproject.org/repo debian-jessie main' state=presen...
c82a2517a8bd2b25e4cbe5784379c46f3a1cab92
src/ontrail/core.clj
src/ontrail/core.clj
(ns ontrail.core (:use lamina.core aleph.http compojure.core) (:gen-class) (:require [compojure.route :as route])) (require '[monger.collection :as mc]) (use 'ring.middleware.file) (use '[clojure.data.json :only (read-json json-str)]) (use '[ontrail.summary]) (defn json-response [data & [statu...
(ns ontrail.core (:use lamina.core aleph.http compojure.core) (:gen-class) (:require [compojure.route :as route])) (require '[monger.collection :as mc]) (use 'ring.middleware.file) (use 'ring.middleware.cookies) (use '[clojure.data.json :only (read-json json-str)]) (use '[ontrail.summary]) (def...
Add cookies to the response when specified
Add cookies to the response when specified
Clojure
mit
jrosti/ontrail,jrosti/ontrail,jrosti/ontrail,jrosti/ontrail,jrosti/ontrail
clojure
## Code Before: (ns ontrail.core (:use lamina.core aleph.http compojure.core) (:gen-class) (:require [compojure.route :as route])) (require '[monger.collection :as mc]) (use 'ring.middleware.file) (use '[clojure.data.json :only (read-json json-str)]) (use '[ontrail.summary]) (defn json-respons...
bcf8d6984c91905c393f3767e1c66cb2aba119b2
init-markdown.el
init-markdown.el
(autoload 'markdown-mode "markdown-mode" "Mode for editing Markdown documents" t) (setq auto-mode-alist (cons '("\\.\\(md\\|markdown\\)\\'" . markdown-mode) auto-mode-alist)) (provide 'init-markdown)
(setq auto-mode-alist (cons '("\\.\\(md\\|markdown\\)\\'" . markdown-mode) auto-mode-alist)) (provide 'init-markdown)
Remove redundant autoload for markdown-mode
Remove redundant autoload for markdown-mode
Emacs Lisp
bsd-2-clause
blueseason/emacs.d
emacs-lisp
## Code Before: (autoload 'markdown-mode "markdown-mode" "Mode for editing Markdown documents" t) (setq auto-mode-alist (cons '("\\.\\(md\\|markdown\\)\\'" . markdown-mode) auto-mode-alist)) (provide 'init-markdown) ## Instruction: Remove redundant autoload for markdown-mode ## Code After: (setq auto-mode-alis...
1d77e0125c9dee56b697078eebe479d4bcf0ea6a
make-scenery.sh
make-scenery.sh
MIN_LAT=44 MAX_LAT=46 MIN_LON=-77 MAX_LON=-75 INPUTS="AirportArea SRTM-3 AirportObj Landmass InlandWater Water WaterExtra Roads Railways Places Landuse TreeCover CropCover GrassCover BuiltUpCover" echo Inputs: $INPUTS rm -rf output/Terrain rm -rf work/Shared tg-construct --threads --priorities=./priorities.txt --wo...
MIN_LAT=44 MAX_LAT=46 MIN_LON=-77 MAX_LON=-75 INPUTS="AirportArea SRTM-3 AirportObj landmass highway railway wetland water-area water-line quarry greenspace builtup-area nature builtup-point vmap0-veg vmap0-builtup" echo Inputs: $INPUTS rm -rf output/Terrain rm -rf work/Shared tg-construct --threads --priorities=./...
Update for new OSM scenery.
Update for new OSM scenery.
Shell
unlicense
davidmegginson/fgfs-scenery
shell
## Code Before: MIN_LAT=44 MAX_LAT=46 MIN_LON=-77 MAX_LON=-75 INPUTS="AirportArea SRTM-3 AirportObj Landmass InlandWater Water WaterExtra Roads Railways Places Landuse TreeCover CropCover GrassCover BuiltUpCover" echo Inputs: $INPUTS rm -rf output/Terrain rm -rf work/Shared tg-construct --threads --priorities=./pri...
fdf196a719036208c07c3dcf5abb14d3b23b8ec8
package.json
package.json
{ "name": "chat-server", "version": "1.0.0", "description": "A basic chat server usign WebSockets and Socket.io", "main": "app.js", "scripts": { "start": "node ./bin/www" }, "engines": { "node": "~5.0.2", "npm": "~3.3.12" }, "keywords": [ "chat", "websockets", "socket.io", ...
{ "name": "chat-server", "version": "1.0.0", "description": "A basic chat server usign WebSockets and Socket.io", "main": "app.js", "scripts": { "start": "node app.js" }, "engines": { "node": "~5.0.2", "npm": "~3.3.12" }, "keywords": [ "chat", "websockets", "socket.io", "s...
Update npm start. Fixing issue with Heroku deploy.
Update npm start. Fixing issue with Heroku deploy.
JSON
mit
ummahusla/Chat-Server,ummahusla/Chat-Server
json
## Code Before: { "name": "chat-server", "version": "1.0.0", "description": "A basic chat server usign WebSockets and Socket.io", "main": "app.js", "scripts": { "start": "node ./bin/www" }, "engines": { "node": "~5.0.2", "npm": "~3.3.12" }, "keywords": [ "chat", "websockets", "...
e43596395507c4606909087c0e77e84c1a232811
damn/__init__.py
damn/__init__.py
__version__ = '0.0.0'
__author__ = 'Romain Clement' __copyright__ = 'Copyright 2014, Romain Clement' __credits__ = [] __license__ = 'MIT' __version__ = "0.0.0" __maintainer__ = 'Romain Clement' __email__ = 'contact@romainclement.com' __status__ = 'Development'
Add meta information for damn package
[DEV] Add meta information for damn package
Python
mit
rclement/yodel,rclement/yodel
python
## Code Before: __version__ = '0.0.0' ## Instruction: [DEV] Add meta information for damn package ## Code After: __author__ = 'Romain Clement' __copyright__ = 'Copyright 2014, Romain Clement' __credits__ = [] __license__ = 'MIT' __version__ = "0.0.0" __maintainer__ = 'Romain Clement' __email__ = 'contact@romainclem...
104f58deaee3bd2e4f70399d7102f86cefb6d96a
Casks/pinegrow-web-designer.rb
Casks/pinegrow-web-designer.rb
cask :v1 => 'pinegrow-web-designer' do version '2.00' sha256 '9cfaf6538e52d00022f928dd109f1bb064af7f4a42c01cce83c10ba18957a081' # amazonaws.com is the official download host per the vendor homepage url "https://pinegrow.s3.amazonaws.com/PinegrowMac.#{version}.dmg" name 'Pinegrow' name 'Pinegrow Web Editor'...
cask :v1 => 'pinegrow-web-designer' do version '2.01' sha256 'f6811ca1cda6fcb370a5dbdc7742cc4aa7b2f26b7573d7ad75f83a5c10860782' # amazonaws.com is the official download host per the vendor homepage url "https://pinegrow.s3.amazonaws.com/PinegrowMac.#{version}.dmg" name 'Pinegrow' name 'Pinegrow Web Editor'...
Update Pinegrow Web Designer to 2.01
Update Pinegrow Web Designer to 2.01
Ruby
bsd-2-clause
deanmorin/homebrew-cask,d/homebrew-cask,kirikiriyamama/homebrew-cask,timsutton/homebrew-cask,brianshumate/homebrew-cask,kronicd/homebrew-cask,githubutilities/homebrew-cask,sjackman/homebrew-cask,johnjelinek/homebrew-cask,kuno/homebrew-cask,ftiff/homebrew-cask,andersonba/homebrew-cask,dwihn0r/homebrew-cask,cprecioso/hom...
ruby
## Code Before: cask :v1 => 'pinegrow-web-designer' do version '2.00' sha256 '9cfaf6538e52d00022f928dd109f1bb064af7f4a42c01cce83c10ba18957a081' # amazonaws.com is the official download host per the vendor homepage url "https://pinegrow.s3.amazonaws.com/PinegrowMac.#{version}.dmg" name 'Pinegrow' name 'Pine...
d1b657552a5dc5c172d217dde2b7753688d1e2d6
roles/slurmscale/files/ansible.cfg
roles/slurmscale/files/ansible.cfg
[defaults] inventory = inventory remote_user = centos private_key_file = slurm-kp.pem retry_files_enabled = false transport = ssh force_valid_group_names = true [inventory] enable_plugins = host_list, ini, openstack [ssh_connection] ssh_args = -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=...
[defaults] inventory = inventory remote_user = centos private_key_file = slurm-kp.pem retry_files_enabled = false transport = ssh force_valid_group_names = true timeout = 30 [inventory] enable_plugins = host_list, ini, openstack [ssh_connection] ssh_args = -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o StrictHos...
Increase timeout to fix timeout when instances are slooow: fatal: [jetstream-iu-large1]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}
Increase timeout to fix timeout when instances are slooow: fatal: [jetstream-iu-large1]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}
INI
mit
galaxyproject/infrastructure-playbook,galaxyproject/infrastructure-playbook
ini
## Code Before: [defaults] inventory = inventory remote_user = centos private_key_file = slurm-kp.pem retry_files_enabled = false transport = ssh force_valid_group_names = true [inventory] enable_plugins = host_list, ini, openstack [ssh_connection] ssh_args = -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o Strict...
cd641c28b13c9aca8713e4adf94a563add4182f2
composer.json
composer.json
{ "name": "tightenco/tlint", "description": "Tighten linter for Laravel conventions", "homepage": "https://github.com/tighten/tlint", "license": "MIT", "authors": [ { "name": "Logan Henson", "email": "logan@loganhenson.com", "role": "Developer" } ...
{ "name": "tightenco/tlint", "description": "Tighten linter for Laravel conventions", "homepage": "https://github.com/tighten/tlint", "license": "MIT", "authors": [ { "name": "Logan Henson", "email": "logan@loganhenson.com", "role": "Developer" } ...
Add Composer script to update fixture Laravel app
Add Composer script to update fixture Laravel app
JSON
mit
loganhenson/tlint
json
## Code Before: { "name": "tightenco/tlint", "description": "Tighten linter for Laravel conventions", "homepage": "https://github.com/tighten/tlint", "license": "MIT", "authors": [ { "name": "Logan Henson", "email": "logan@loganhenson.com", "role": "Develo...
135705071ddf152a432bb3a9a43895df95223a98
.travis.yml
.travis.yml
language: python os: - linux python: - "2.7" - "3.5" - "3.6" matrix: include: - python: "2.7" install: CC=clang python -m pip install . --no-deps -vv - python: "3.7" install: CC=clang python -m pip install . --no-deps -vv dist: xenial sudo: true # Unfortunately there is ...
language: python os: - linux python: - "2.7" - "3.5" - "3.6" - "3.7" - "3.7-dev" - "3.8-dev" - "nightly" matrix: include: - python: "2.7" install: CC=clang python -m pip install . --no-deps -vv - python: "3.7" install: CC=clang python -m pip install . --no-deps -vv before_insta...
Remove dist and sudo from matrix.
Travis: Remove dist and sudo from matrix. It seems this isn't needed anymore.
YAML
apache-2.0
MSeifert04/iteration_utilities,MSeifert04/iteration_utilities,MSeifert04/iteration_utilities,MSeifert04/iteration_utilities
yaml
## Code Before: language: python os: - linux python: - "2.7" - "3.5" - "3.6" matrix: include: - python: "2.7" install: CC=clang python -m pip install . --no-deps -vv - python: "3.7" install: CC=clang python -m pip install . --no-deps -vv dist: xenial sudo: true # Unfortu...
25b668549190a78a9f7ac57359d8f1a8c2feb646
desktop/src/main/java/bisq/desktop/util/validation/RevolutValidator.java
desktop/src/main/java/bisq/desktop/util/validation/RevolutValidator.java
/* * This file is part of Bisq. * * Bisq 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. * * Bisq is distributed in the ...
/* * This file is part of Bisq. * * Bisq 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. * * Bisq is distributed in the ...
Allow Revolut username to be minimum 3 characters
Allow Revolut username to be minimum 3 characters
Java
agpl-3.0
bitsquare/bitsquare,bisq-network/exchange,bisq-network/exchange,bitsquare/bitsquare
java
## Code Before: /* * This file is part of Bisq. * * Bisq 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. * * Bisq is dis...
b10ed2f69227a079336c4618902f8fc10f0e1ce1
lib/ghi/web.rb
lib/ghi/web.rb
require 'open-uri' require 'uri' module GHI class Web HOST = GHI.config('github.host') || 'github.com' BASE_URI = "https://#{HOST}/" attr_reader :base def initialize base @base = base end def open path = '', params = {} launcher = 'open' launcher = 'xdg-open' if /linux/ =~...
require 'open-uri' require 'uri' module GHI class Web HOST = GHI.config('github.host') || 'github.com' BASE_URI = "https://#{HOST}/" attr_reader :base def initialize base @base = base end def open path = '', params = {} path = uri_for path, params $stdout.puts path r...
Print links (and don't open them)
Print links (and don't open them) This effectively fixes #100. Signed-off-by: Stephen Celis <06fa905d7f2aaced6dc72e9511c71a2a51e8aead@stephencelis.com>
Ruby
mit
shubhamshuklaer/ghi
ruby
## Code Before: require 'open-uri' require 'uri' module GHI class Web HOST = GHI.config('github.host') || 'github.com' BASE_URI = "https://#{HOST}/" attr_reader :base def initialize base @base = base end def open path = '', params = {} launcher = 'open' launcher = 'xdg-ope...
7ec4021cc60d6b7f0eae053a7edcc2ef778863dd
README.md
README.md
.NET Server Hosting utility library, including in-process server host testing. [![Build status](https://ci.appveyor.com/api/projects/status/2y41gnrcl5nqldw6/branch/master?svg=true)](https://ci.appveyor.com/project/jthelin/serverhost/branch/master)
.NET Server Hosting utility library, including in-process server host testing. ## Build Status Mono | Windows ---- | ------- [![Build Status](https://travis-ci.org/jthelin/ServerHost.svg?branch=master)](https://travis-ci.org/jthelin/ServerHost) | [![Build status](https://ci.appveyor.com/api/projects/status/2y41gnrcl...
Add build status table for Mono (travis-ci.org) and Windows (Appveyor)
Add build status table for Mono (travis-ci.org) and Windows (Appveyor)
Markdown
apache-2.0
jthelin/ServerHost,jthelin/ServerHost
markdown
## Code Before: .NET Server Hosting utility library, including in-process server host testing. [![Build status](https://ci.appveyor.com/api/projects/status/2y41gnrcl5nqldw6/branch/master?svg=true)](https://ci.appveyor.com/project/jthelin/serverhost/branch/master) ## Instruction: Add build status table for Mono (travi...
a46961b8dfe0a112097299e053c3d0cc5af13ab8
test/Modules/Inputs/HasSubModules.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h
test/Modules/Inputs/HasSubModules.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h
// Private
// This comment ensures that this file is not identical to // HasSubModules.framework/Frameworks/Sub.framework/Headers/Sub.h
Change this comment to helpfully explain why it's there.
Change this comment to helpfully explain why it's there. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@175027 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
c
## Code Before: // Private ## Instruction: Change this comment to helpfully explain why it's there. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@175027 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // This comment ensures that this file is not identical to // HasSubModules.framework/Frameworks/Sub.fra...
5eae614381c1aa7ffb980a74972fc9fc877b6506
README.md
README.md
Team 5806's scouting app. Used to coordinate scouting information at competitions using Bluetooth.
Team 5806's scouting app. Used to coordinate scouting information at competitions using Bluetooth. ## Installation First install node.js 4 (very important it is not node.js 5). Then, install ionic and cordova using `npm install --global ionic cordova`. You may have to use `sudo`. Next, navigate to the `/app` dire...
Update readme with install instructions for our devs
Update readme with install instructions for our devs
Markdown
mit
frc5806/ScoutingApp,frc5806/ScoutingApp,frc5806/ScoutingApp
markdown
## Code Before: Team 5806's scouting app. Used to coordinate scouting information at competitions using Bluetooth. ## Instruction: Update readme with install instructions for our devs ## Code After: Team 5806's scouting app. Used to coordinate scouting information at competitions using Bluetooth. ## Installation F...
e1005e5fca7b20b652cfd4236c3bc613930b2d56
packages/ch/chart-svg.yaml
packages/ch/chart-svg.yaml
homepage: https://github.com/tonyday567/chart-svg#readme changelog-type: '' hash: be74f6efa8abb68743672b69aba1a07461aa7d2822d988f460b5c918ba258433 test-bench-deps: {} maintainer: tonyday567@gmail.com synopsis: See readme.md changelog: '' basic-deps: lucid: -any JuicyPixels: -any base: ! '>=4.7 && <5' time: -any...
homepage: https://github.com/tonyday567/chart-svg#readme changelog-type: '' hash: 658545bf0f41be7cd0ab54e91de1249bcfb4e28a0a117ddb491d3a4a5de05a1e test-bench-deps: {} maintainer: tonyday567@gmail.com synopsis: See readme.md changelog: '' basic-deps: lucid: -any base: '>=4.7 && <5' time: -any unordered-container...
Update from Hackage at 2020-05-20T00:14:19Z
Update from Hackage at 2020-05-20T00:14:19Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/tonyday567/chart-svg#readme changelog-type: '' hash: be74f6efa8abb68743672b69aba1a07461aa7d2822d988f460b5c918ba258433 test-bench-deps: {} maintainer: tonyday567@gmail.com synopsis: See readme.md changelog: '' basic-deps: lucid: -any JuicyPixels: -any base: ! '>=4.7 && ...
fbfd656d0c11bfbc6500fcdffdfae422ab50a08f
lancet/contrib/dploi.py
lancet/contrib/dploi.py
import click @click.command() @click.argument('environment') @click.pass_obj def ssh(lancet, environment): """ SSH into the given environment, based on the dploi configuration. """ namespace = {} with open('deployment.py') as fh: code = compile(fh.read(), 'deployment.py', 'exec') ...
from shlex import quote import click @click.command() @click.option('-p', '--print/--exec', 'print_cmd', default=False, help='Print the command instead of executing it.') @click.argument('environment') @click.pass_obj def ssh(lancet, print_cmd, environment): """ SSH into the given environment, ...
Allow to print the ssh command
Allow to print the ssh command
Python
mit
GaretJax/lancet,GaretJax/lancet
python
## Code Before: import click @click.command() @click.argument('environment') @click.pass_obj def ssh(lancet, environment): """ SSH into the given environment, based on the dploi configuration. """ namespace = {} with open('deployment.py') as fh: code = compile(fh.read(), 'deployment.py', ...
8321b6af3bb1190146af7cbb9170518daaaecc98
sli/sli-configuration/src/main/resources/config/ci/data-access/db.properties
sli/sli-configuration/src/main/resources/config/ci/data-access/db.properties
sli.hibernate.showsql = true sli.hibernate.generateDdl = true # MySQL Options sli.db.driver = com.mysql.jdbc.Driver sli.db.url = jdbc:mysql://ec2-50-16-107-166.compute-1.amazonaws.com/sli sli.db.username = slidev sli.db.password = sL1G@td3V sli.db.dialect = org.hibernate.dialect.MySQL5Dialect # Mongo DB Options s...
sli.hibernate.showsql = true sli.hibernate.generateDdl = true # MySQL Options sli.db.driver = com.mysql.jdbc.Driver sli.db.url = jdbc:mysql://ec2-50-16-107-166.compute-1.amazonaws.com/sli sli.db.username = slidev sli.db.password = sL1G@td3V sli.db.dialect = org.hibernate.dialect.MySQL5Dialect # Mongo DB Options s...
Update for ingestion staging props in CI
Update for ingestion staging props in CI
INI
apache-2.0
inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service
ini
## Code Before: sli.hibernate.showsql = true sli.hibernate.generateDdl = true # MySQL Options sli.db.driver = com.mysql.jdbc.Driver sli.db.url = jdbc:mysql://ec2-50-16-107-166.compute-1.amazonaws.com/sli sli.db.username = slidev sli.db.password = sL1G@td3V sli.db.dialect = org.hibernate.dialect.MySQL5Dialect # Mon...
4347d332d6dba526cc015d73f4f2fc913d9e849f
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
app/assets/javascripts/dot_ledger/views/sorting_rules/list_item.js.coffee
DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review'
DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review' else ''
Fix "undefined" issue in sorting rule list items.
Fix "undefined" issue in sorting rule list items.
CoffeeScript
apache-2.0
pipeline/dotledger,dotledger/dotledger,amorphid/dotledger,amorphid/dotledger,malclocke/dotledger,malclocke/dotledger,amorphid/dotledger,dotledger/dotledger,dotledger/dotledger,dotledger/dotledger,pipeline/dotledger,malclocke/dotledger,pipeline/dotledger
coffeescript
## Code Before: DotLedger.module 'Views.SortingRules', -> class @ListItem extends Backbone.Marionette.ItemView tagName: 'tr' template: 'sorting_rules/list_item' templateHelpers: -> flag: => if @model.get('review') 'Review' ## Instruction: Fix "undefined" issue in sorting rule lis...
7dac38d9c781e23c599aa8efe218aa7810b2695d
.travis.yml
.travis.yml
language: node_js dist: trusty before_script: - npm install node_js: 6 script: - npm test - npm run bench
language: node_js node_js: 8 script: - npm test && npm run bench
Use newer Node in Travis
Use newer Node in Travis
YAML
mit
Starcounter-Jack/JSON-Patch,Starcounter-Jack/JSON-Patch,Starcounter-Jack/JSON-Patch,Starcounter-Jack/JSON-Patch
yaml
## Code Before: language: node_js dist: trusty before_script: - npm install node_js: 6 script: - npm test - npm run bench ## Instruction: Use newer Node in Travis ## Code After: language: node_js node_js: 8 script: - npm test && npm run bench
45e10c1fd9090f7f96cb750533729353b10d3fe2
tensorflow/tools/ci_build/nightly_release/windows/upload_nightly_pip.sh
tensorflow/tools/ci_build/nightly_release/windows/upload_nightly_pip.sh
set -e set -x source tensorflow/tools/ci_build/release/common.sh sudo pip install --upgrade twine # Copy and rename to tf_nightly for f in $(ls "${TF_FILE_DIR}"/tf_nightly_gpu*dev*cp3*-cp3*-win_amd64.whl); do copy_to_new_project_name "${f}" tf_nightly done # Upload the built packages to pypi. for f in $(ls "${TF_...
set -e set -x source tensorflow/tools/ci_build/release/common.sh sudo pip install --upgrade twine # Copy and rename to tf_nightly for f in $(ls "${KOKORO_GFILE_DIR}"/tf_nightly_gpu*dev*cp3*-cp3*-win_amd64.whl); do copy_to_new_project_name "${f}" tf_nightly done # Upload the built packages to pypi. for f in $(ls "...
Rearrange logic for listing prebuilt packages
Rearrange logic for listing prebuilt packages PiperOrigin-RevId: 336983705 Change-Id: I64a30c3cb96c540d83f91d37080406fb2a357350
Shell
apache-2.0
tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,aam-at/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,...
shell
## Code Before: set -e set -x source tensorflow/tools/ci_build/release/common.sh sudo pip install --upgrade twine # Copy and rename to tf_nightly for f in $(ls "${TF_FILE_DIR}"/tf_nightly_gpu*dev*cp3*-cp3*-win_amd64.whl); do copy_to_new_project_name "${f}" tf_nightly done # Upload the built packages to pypi. for ...
95d1497aa560f7bb01069fb1cc191607edec51dd
test/unit/pages/location/controller-test.js
test/unit/pages/location/controller-test.js
'use strict'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import { default as sinonChai } from 'sinon-chai'; import 'sinon-as-promised'; require('../../../angular-test-helper'); require('browser/main'); chai.use(sinonChai); describe('LocationController', function() { describe('initial state',...
'use strict'; import LocationController from 'browser/pages/location/controller'; import InstallerDataService from 'browser/services/data'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import { default as sinonChai } from 'sinon-chai'; import 'sinon-as-promised'; require('../../../angular-test-help...
Increase unit tests code coverage controller location
Increase unit tests code coverage controller location
JavaScript
apache-2.0
dgolovin/developer-platform-install,dgolovin/developer-platform-install,redhat-developer-tooling/developer-platform-install,redhat-developer-tooling/developer-platform-install
javascript
## Code Before: 'use strict'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import { default as sinonChai } from 'sinon-chai'; import 'sinon-as-promised'; require('../../../angular-test-helper'); require('browser/main'); chai.use(sinonChai); describe('LocationController', function() { describe(...
422f5f568b3dc76a27d8f4b3d2523247f8f28d8b
app/src/main/res/xml/file_paths.xml
app/src/main/res/xml/file_paths.xml
<?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="pictures" path="Pictures" /> </paths>
<?xml version="1.0" encoding="utf-8"?> <paths> <external-path name="FlexInput" path="." /> </paths>
Allow the FileProvider to work in multi-locales
Fix: Allow the FileProvider to work in multi-locales Issue: - Environment.DIRECTORY_PICTURES could return a different paths depending on locale (e.g. "Pictures|Fotos") - Since FileProvider was expecting Pictures, this caused an error when trying to access a file Sample output: ``` File => /storage/emulated/0/Fotos/Fl...
XML
mit
lytefast/flex-input,lytefast/flex-input
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="pictures" path="Pictures" /> </paths> ## Instruction: Fix: Allow the FileProvider to work in multi-locales Issue: - Environment.DIRECTORY_PICTURES could return a different ...
b953faad79e2c77799bc00a4595a3b23ee58dd68
app/assets/javascripts/controllers/paper_controllers.js.coffee
app/assets/javascripts/controllers/paper_controllers.js.coffee
ETahi.PaperController = Ember.ObjectController.extend needs: ['application'] downloadLink: ( -> "/papers/#{@get('id')}/download" ).property() authorTasks: Ember.computed.filterBy('allTasks', 'role', 'author') assignedTasks: (-> assignedTasks = @get('allTasks').filterBy 'assignee', @get('controllers...
ETahi.PaperController = Ember.ObjectController.extend needs: ['application'] downloadLink: ( -> "/papers/#{@get('id')}/download" ).property() authorTasks: Ember.computed.filterBy('allTasks', 'role', 'author') assignedTasks: (-> assignedTasks = @get('allTasks').filterBy 'assignee', @get('controllers...
Refactor assignedTasks property on Paper Controller
Refactor assignedTasks property on Paper Controller - Removed underscore.js method. Ember provides a lot of enumerable methods so we should be able to remove underscore.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
coffeescript
## Code Before: ETahi.PaperController = Ember.ObjectController.extend needs: ['application'] downloadLink: ( -> "/papers/#{@get('id')}/download" ).property() authorTasks: Ember.computed.filterBy('allTasks', 'role', 'author') assignedTasks: (-> assignedTasks = @get('allTasks').filterBy 'assignee', @...
1fc8b869e51744ed39cf871d1f7d7e14a2f18fad
docs/changelog.rst
docs/changelog.rst
Changelog --------- 0.6.3 ..... * Fix issue `#22 <https://github.com/beerfactory/hbmqtt/issues/22>`_. 0.6.2 ..... * Fix issue `#20 <https://github.com/beerfactory/hbmqtt/issues/20>`_ (``mqtt`` subprotocol was missing). * Upgrade to ``websockets`` 3.0. 0.6.1 ..... * Fix issue `#19 <https://github.com/beerfactory/...
Changelog --------- 0.7.0 ..... * Fix a `serie of issues <https://github.com/beerfactory/hbmqtt/issues?q=milestone%3A0.7+is%3Aclosed>`_ reported by `Christoph Krey <https://github.com/ckrey>`_ 0.6.3 ..... * Fix issue `#22 <https://github.com/beerfactory/hbmqtt/issues/22>`_. 0.6.2 ..... * Fix issue `#20 <https://g...
Add next version change log
Add next version change log
reStructuredText
mit
beerfactory/hbmqtt
restructuredtext
## Code Before: Changelog --------- 0.6.3 ..... * Fix issue `#22 <https://github.com/beerfactory/hbmqtt/issues/22>`_. 0.6.2 ..... * Fix issue `#20 <https://github.com/beerfactory/hbmqtt/issues/20>`_ (``mqtt`` subprotocol was missing). * Upgrade to ``websockets`` 3.0. 0.6.1 ..... * Fix issue `#19 <https://github....
d851aa5106707b2840a04465033e07f96b63e29a
db/migrate/20200404090436_remove_ga_cookies_preference.rb
db/migrate/20200404090436_remove_ga_cookies_preference.rb
class RemoveGaCookiesPreference < ActiveRecord::Migration def up Spree::Preference .where( key: 'spree/app_configuration/cookies_policy_ga_section') .destroy_all end def down # If this preference is re-added to the code, the DB entry will be regenerated end end
class RemoveGaCookiesPreference < ActiveRecord::Migration class Spree::Preference < ActiveRecord::Base; end def up Spree::Preference .where( key: 'spree/app_configuration/cookies_policy_ga_section') .destroy_all end def down # If this preference is re-added to the code, the DB entry will b...
Add model definition to migration to make migration more resilient
Add model definition to migration to make migration more resilient
Ruby
agpl-3.0
mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkl...
ruby
## Code Before: class RemoveGaCookiesPreference < ActiveRecord::Migration def up Spree::Preference .where( key: 'spree/app_configuration/cookies_policy_ga_section') .destroy_all end def down # If this preference is re-added to the code, the DB entry will be regenerated end end ## Instructi...
a75279d524919ed1db8152b9caabd0cb3ced52bf
lib/airship/management/padrino.rb
lib/airship/management/padrino.rb
module Airship module Management module Padrino def self.registered(app) app.extend ClassMethods end module ClassMethods def index(options = {}, &block) get :index, "", options, &block end def show(options = {}, &block) get :show, ":id", opti...
module Airship module Management module Padrino def self.registered(app) app.extend ClassMethods end module ClassMethods def index(options = {}, &block) route 'GET', "", options, &block end def show(options = {}, &block) route 'GET', ":id", o...
Use route method instead of verb methods
Use route method instead of verb methods
Ruby
mit
namusyaka/airship
ruby
## Code Before: module Airship module Management module Padrino def self.registered(app) app.extend ClassMethods end module ClassMethods def index(options = {}, &block) get :index, "", options, &block end def show(options = {}, &block) get :s...
4d602cccc807c2c0e1380496cf14aa28c8d2be80
README.md
README.md
This is a template to start your own project that uses Grunt and libsass! ## Requirements You'll need to have the following items installed before continuing. * [Node.js](http://nodejs.org): Use the installer provided on the NodeJS website. * [Grunt](http://gruntjs.com/): Run `[sudo] npm install -g grunt-cli` ...
This is a template to start your own project that uses Grunt and libsass! ## Requirements You'll need to have the following items installed before continuing. * [Node.js](http://nodejs.org): Use the installer provided on the NodeJS website. * [Grunt](http://gruntjs.com/): Run `[sudo] npm install -g grunt-cli` ...
Update ReadMe with info on handlebars
Update ReadMe with info on handlebars
Markdown
mit
jennz0r/old-pete-lee,jennz0r/old-pete-lee
markdown
## Code Before: This is a template to start your own project that uses Grunt and libsass! ## Requirements You'll need to have the following items installed before continuing. * [Node.js](http://nodejs.org): Use the installer provided on the NodeJS website. * [Grunt](http://gruntjs.com/): Run `[sudo] npm install...
e1851bb67559b0ef8427a531fa2dce3aa816da2d
.travis.yml
.travis.yml
sudo: required dist: trusty language: python python: - '2.6' - '2.7' - '3.2' - '3.3' - '3.4' - '3.5' - '3.5-dev' - 'nightly' - 'pypy' - 'pypy3' matrix: allow_failures: - python: '2.6' - python: '3.2' - python: '3.5-dev' - python: 'nightly' - python: 'pypy' - python: 'pypy3...
sudo: required dist: trusty language: python python: - '2.7' - '3.3' - '3.4' - '3.5' - '3.5-dev' - 'nightly' matrix: allow_failures: - python: '3.5-dev' - python: 'nightly' addons: apt: packages: - texlive-latex-extra - texlive-pictures - texlive-science - texlive-f...
Remove broken python builds and don't use texlive-full
Report: Remove broken python builds and don't use texlive-full
YAML
mit
JelteF/PyLaTeX,JelteF/PyLaTeX
yaml
## Code Before: sudo: required dist: trusty language: python python: - '2.6' - '2.7' - '3.2' - '3.3' - '3.4' - '3.5' - '3.5-dev' - 'nightly' - 'pypy' - 'pypy3' matrix: allow_failures: - python: '2.6' - python: '3.2' - python: '3.5-dev' - python: 'nightly' - python: 'pypy' ...
623a6b536369b1f15e2a54f7fd1cd2ad741ac6c6
eloquent_js/chapter16/ch16_ex02.js
eloquent_js/chapter16/ch16_ex02.js
function runLevel(level, Display) { let display = new Display(document.body, level); let state = State.start(level); let ending = 1; let suspended = false; return new Promise(resolve => { function escHandler(event) { if (event.type == "keyup" && event.key == "Escape") { suspended = !suspended; event....
function runLevel(level, Display) { let display = new Display(document.body, level); let state = State.start(level); let ending = 1; let suspended = false; return new Promise(resolve => { function escHandler(event) { if (event.type == "keyup" && event.key == "Escape") { suspended = !suspended; event...
Remove event listeners at end of level
Remove event listeners at end of level
JavaScript
mit
bewuethr/ctci
javascript
## Code Before: function runLevel(level, Display) { let display = new Display(document.body, level); let state = State.start(level); let ending = 1; let suspended = false; return new Promise(resolve => { function escHandler(event) { if (event.type == "keyup" && event.key == "Escape") { suspended = !suspe...
428ffa9102f61d4063136d0eeab197eb51edc73e
frontend/Nav/Nav.elm
frontend/Nav/Nav.elm
module Nav.Nav exposing (..) import Navigation import UrlParser exposing (Parser, (</>), oneOf, map, s, string, parseHash, top) import Nav.Model exposing (Page(..)) toHash : Page -> String toHash page = case page of Components -> "#" Component env system component server -> ...
module Nav.Nav exposing (..) import Navigation import UrlParser exposing (Parser, (</>), oneOf, map, s, string, parseHash, top) import Nav.Model exposing (Page(..)) import String exposing (join) toHash : Page -> String toHash page = case page of Components -> "#" Component env system...
Use String.join instead of ++
Use String.join instead of ++
Elm
apache-2.0
Espenhh/panopticon,Espenhh/panopticon,Espenhh/panopticon,Espenhh/panopticon
elm
## Code Before: module Nav.Nav exposing (..) import Navigation import UrlParser exposing (Parser, (</>), oneOf, map, s, string, parseHash, top) import Nav.Model exposing (Page(..)) toHash : Page -> String toHash page = case page of Components -> "#" Component env system component ser...
e817716960e4e89798d976d0b04bf49408932f0b
setup.py
setup.py
from setuptools import setup, find_packages __version__ = None exec(open('tadtool/version.py').read()) setup( name='tadtool', version=__version__, description='Assistant to find cutoffs in TAD calling algorithms.', packages=find_packages(exclude=["test"]), install_requires=[ 'numpy>=1.9.0...
import os from setuptools import setup, find_packages, Command __version__ = None exec(open('tadtool/version.py').read()) class CleanCommand(Command): """ Custom clean command to tidy up the project root. """ user_options = [] def initialize_options(self): pass def finalize_options(...
Add clean command and remove download tarball
Add clean command and remove download tarball
Python
mit
vaquerizaslab/tadtool
python
## Code Before: from setuptools import setup, find_packages __version__ = None exec(open('tadtool/version.py').read()) setup( name='tadtool', version=__version__, description='Assistant to find cutoffs in TAD calling algorithms.', packages=find_packages(exclude=["test"]), install_requires=[ ...
27a60134c8ca97dc72c10b3aab59d859eafb6aa7
package.json
package.json
{ "name": "connect-sts", "description": "Add ", "version": "0.2.0", "author": "François de Metz <fdemetz@af83.com>", "dependencies": { "connect": "" }, "repository": { "type": "git", "url": "http://github.com/AF83/connect-sts.git" } }
{ "name": "connect-sts", "description": "Middleware to add Strict-Transport-Security header", "version": "0.3.0", "author": "François de Metz <fdemetz@af83.com>", "dependencies": { "connect": "" }, "repository": { "type": "git", "url": "http://github.com/AF83/connect-sts.git" ...
Fix description and bump version.
Fix description and bump version.
JSON
bsd-2-clause
AF83/connect-sts
json
## Code Before: { "name": "connect-sts", "description": "Add ", "version": "0.2.0", "author": "François de Metz <fdemetz@af83.com>", "dependencies": { "connect": "" }, "repository": { "type": "git", "url": "http://github.com/AF83/connect-sts.git" } } ## Instruction: Fix de...
e1c031dfd111f99b5b2c54134d9fdca40f6d07dc
Gateway/Validator/Offsite/InternetbankingChargeCommandResponseValidator.php
Gateway/Validator/Offsite/InternetbankingChargeCommandResponseValidator.php
<?php namespace Omise\Payment\Gateway\Validator\Offsite; use Magento\Payment\Gateway\Command\CommandException; use Magento\Payment\Gateway\Validator\AbstractValidator; class InternetbankingChargeCommandResponseValidator extends AbstractValidator { /** * @var string */ protected $message; /** ...
<?php namespace Omise\Payment\Gateway\Validator\Offsite; use Magento\Payment\Gateway\Validator\AbstractValidator; class InternetbankingChargeCommandResponseValidator extends AbstractValidator { /** * @var string */ protected $message; /** * Performs domain-related validation for business o...
Add validation rules to the internetbanking command response validator.
Add validation rules to the internetbanking command response validator.
PHP
mit
omise/omise-magento,omise/omise-magento,omise/omise-magento
php
## Code Before: <?php namespace Omise\Payment\Gateway\Validator\Offsite; use Magento\Payment\Gateway\Command\CommandException; use Magento\Payment\Gateway\Validator\AbstractValidator; class InternetbankingChargeCommandResponseValidator extends AbstractValidator { /** * @var string */ protected $mess...
1f31e7dc1c1433ba9e63108f47d4c7ecbb5345ab
README.md
README.md
Project Timeline ================ An HTML template for online project timelines. ## What is a project timeline and why would I use one? A project timeline is a tool for keeping track of the progress of a design project. The timeline lives online (either publically available or password protected), so that everyone in...
Project Timeline ================ Read more about [project hubs on 24 Ways.](http://24ways.org/2013/project-hubs/) This is an HTML template for online project timelines (also known as "project hubs"). ## What is a project hub and why would I use one? A project hub is a tool for keeping track of the progress of a des...
Include link to 24 Ways and update language to "project hub"
Include link to 24 Ways and update language to "project hub" Project timelines have another connotation regarding scheduling, so "project hub" was used as an alternate name.
Markdown
mit
gdidayton/project-hub,bradfrost/project-hub,javimosch/project-hub,Chisssy/project-hub,GwenBierlier/project-hub,jonambas/project-hub
markdown
## Code Before: Project Timeline ================ An HTML template for online project timelines. ## What is a project timeline and why would I use one? A project timeline is a tool for keeping track of the progress of a design project. The timeline lives online (either publically available or password protected), so ...
349bb1ce2c15239ae3f9c066ed774b20369b9c0d
src/ggrc/settings/app_engine.py
src/ggrc/settings/app_engine.py
APP_ENGINE = True ENABLE_JASMINE = False LOGIN_MANAGER = 'ggrc.login.appengine' FULLTEXT_INDEXER = 'ggrc.fulltext.mysql.MysqlIndexer' # Cannot access filesystem on AppEngine or when using SDK AUTOBUILD_ASSETS = False SQLALCHEMY_RECORD_QUERIES = True MEMCACHE_MECHANISM = True
APP_ENGINE = True ENABLE_JASMINE = False LOGIN_MANAGER = 'ggrc.login.appengine' FULLTEXT_INDEXER = 'ggrc.fulltext.mysql.MysqlIndexer' # Cannot access filesystem on AppEngine or when using SDK AUTOBUILD_ASSETS = False SQLALCHEMY_RECORD_QUERIES = True MEMCACHE_MECHANISM = True CALENDAR_MECHANISM = True
Enable Calendar integration on App Engine deployments
Enable Calendar integration on App Engine deployments
Python
apache-2.0
NejcZupec/ggrc-core,uskudnik/ggrc-core,j0gurt/ggrc-core,j0gurt/ggrc-core,edofic/ggrc-core,kr41/ggrc-core,hasanalom/ggrc-core,andrei-karalionak/ggrc-core,hyperNURb/ggrc-core,edofic/ggrc-core,selahssea/ggrc-core,vladan-m/ggrc-core,jmakov/ggrc-core,prasannav7/ggrc-core,vladan-m/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/...
python
## Code Before: APP_ENGINE = True ENABLE_JASMINE = False LOGIN_MANAGER = 'ggrc.login.appengine' FULLTEXT_INDEXER = 'ggrc.fulltext.mysql.MysqlIndexer' # Cannot access filesystem on AppEngine or when using SDK AUTOBUILD_ASSETS = False SQLALCHEMY_RECORD_QUERIES = True MEMCACHE_MECHANISM = True ## Instruction: Enable Cal...
2b5210b8e20d917ec14f104ca9e476322c906172
app.rb
app.rb
require 'bundler' require 'yaml' require 'active_support/hash_with_indifferent_access' Bundler.require Dotenv.load get '/' do erb :index end get '/example' do "#{make_request :example}" end def endpoints YAML.load_file("endpoints.yml").to_h.symbolize_keys! end def request_params endpoint { method: endp...
require 'bundler' require 'yaml' require 'active_support/hash_with_indifferent_access' Bundler.require Dotenv.load get '/' do erb :index end get '/example' do "#{make_request :example}" end def endpoints YAML.load_file("endpoints.yml").to_h.symbolize_keys! end def request_params endpoint { method: endp...
Return not working message if endpoint returns invalid JSON
Return not working message if endpoint returns invalid JSON
Ruby
mit
adamrmelnyk/endpoint-testing,adamrmelnyk/endpoint-testing
ruby
## Code Before: require 'bundler' require 'yaml' require 'active_support/hash_with_indifferent_access' Bundler.require Dotenv.load get '/' do erb :index end get '/example' do "#{make_request :example}" end def endpoints YAML.load_file("endpoints.yml").to_h.symbolize_keys! end def request_params endpoint { ...
16e6653db9e691f34f1ed807cd1e2e930ec38297
docs/utils/fluent_functions.rst
docs/utils/fluent_functions.rst
FluentFunctions =============== Methods in FluentFunctions return instance of FluentFunction that contains all functions from [Functions](functions.md). Example: Create a function that extracts field 'name' form the given argument, then removes prefix 'super', adds ' extra' at the beginning, appends '! ' and surroun...
FluentFunctions =============== Methods in ``FluentFunctions`` return instance of ``FluentFunction`` that contains all functions from :doc:`functions`. ---- Create a function that extracts field 'name' form the given argument, then removes prefix 'super', adds ' extra' at the beginning, appends '! ' and surrounds re...
Edit docs - fluent functions.
Edit docs - fluent functions.
reStructuredText
mit
letsdrink/ouzo,letsdrink/ouzo,letsdrink/ouzo
restructuredtext
## Code Before: FluentFunctions =============== Methods in FluentFunctions return instance of FluentFunction that contains all functions from [Functions](functions.md). Example: Create a function that extracts field 'name' form the given argument, then removes prefix 'super', adds ' extra' at the beginning, appends ...
3aef4ae7a135d35d787d9a440a03f5d46361d36c
src/components/IntroPage.jsx
src/components/IntroPage.jsx
'use strict'; const React = require('react'); const Brand = require('./Brand.jsx'), Feed = require('./Feed.jsx'); const IntroPage = function (props) { const { isCollapsed } = props; let introClasses = 'wk-intro-page'; if (isCollapsed) { introClasses += ' wk-intro-page--collapsed'; } /* eslint-d...
'use strict'; const React = require('react'); const Brand = require('./Brand.jsx'), Feed = require('./Feed.jsx'); const IntroPage = function (props) { const { isCollapsed } = props; let introClasses = 'wk-intro-page'; if (isCollapsed) { introClasses += ' wk-intro-page--collapsed'; } /* eslint-d...
Fix caching issue with loading news.
Fix caching issue with loading news.
JSX
agpl-3.0
thenativeweb/wolkenkit-documentation,thenativeweb/wolkenkit-documentation
jsx
## Code Before: 'use strict'; const React = require('react'); const Brand = require('./Brand.jsx'), Feed = require('./Feed.jsx'); const IntroPage = function (props) { const { isCollapsed } = props; let introClasses = 'wk-intro-page'; if (isCollapsed) { introClasses += ' wk-intro-page--collapsed'; ...
59c6998c30630453371516f40bfa19f6fd24cf36
src/as/com/threerings/flash/FrameSprite.as
src/as/com/threerings/flash/FrameSprite.as
// // $Id$ package com.threerings.flash { import flash.display.Sprite; import flash.events.Event; /** * Convenience superclass to use for sprites that need to update every frame. * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they * will prevent an object from being garbage c...
// // $Id$ package com.threerings.flash { import flash.display.Sprite; import flash.events.Event; /** * Convenience superclass to use for sprites that need to update every frame. * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they * will prevent an object from being garbage c...
Allow subclasses to choose not to call handleFrame() when ADDED_TO_STAGE is received.
Allow subclasses to choose not to call handleFrame() when ADDED_TO_STAGE is received. git-svn-id: b675b909355d5cf946977f44a8ec5a6ceb3782e4@253 ed5b42cb-e716-0410-a449-f6a68f950b19
ActionScript
lgpl-2.1
threerings/nenya,threerings/nenya
actionscript
## Code Before: // // $Id$ package com.threerings.flash { import flash.display.Sprite; import flash.events.Event; /** * Convenience superclass to use for sprites that need to update every frame. * (One must be very careful to remove all ENTER_FRAME listeners when not needed, as they * will prevent an object from...
22f60efc13ff9a8ac1780282cfc095c1c6e1fc3e
lib/tasks/repositories.rake
lib/tasks/repositories.rake
namespace :repos do desc "Update repositories with live info from GitHub" task :update => [:environment] do require 'repository_updater' RepositoryUpdater.update end end
require 'repository_updater' namespace :repos do desc "Pull initial repository data from GitHub" task :bootstrap => [:environment] do RepositoryUpdater.bootstrap end desc "Update repositories with live info from GitHub" task :update, [:limit] => [:environment] do |t, args| RepositoryUpdater.update(a...
Add task for repos:bootstrap, and let :update take a limit argument
Add task for repos:bootstrap, and let :update take a limit argument
Ruby
mit
tsigo/hubstar,tsigo/hubstar
ruby
## Code Before: namespace :repos do desc "Update repositories with live info from GitHub" task :update => [:environment] do require 'repository_updater' RepositoryUpdater.update end end ## Instruction: Add task for repos:bootstrap, and let :update take a limit argument ## Code After: require 'repository_...
a8cdc371d5066ba4d442d71aec802ede9d3a4fb0
add-books.sh
add-books.sh
DIRNAME=/data/addbooks LIBNAME=/data/library CALIBREDB=/usr/bin/calibredb CAL_OPT="add -1 -r" export LANG=en_US.UTF-8 ${CALIBREDB} ${CAL_OPT} --with-library=${LIBNAME} ${DIRNAME} EC=$? if [ $EC -eq 0 ] then /bin/rm -rf -- ${DIRNAME}/* fi
DIRNAME=/data/addbooks LIBNAME=/data/library CALIBREDB=/usr/bin/calibredb CAL_OPT="add -1 -r" export LANG=en_US.UTF-8 ${CALIBREDB} ${CAL_OPT} --with-library=${LIBNAME} ${DIRNAME} >> /scripts/cron.log 2>&1 EC=$? if [ $EC -eq 0 ] then /bin/rm -rf -- ${DIRNAME}/* fi
Create log when adding books
Create log when adding books
Shell
mit
benjaminkitt/calibre-cops,benjaminkitt/calibre-cops
shell
## Code Before: DIRNAME=/data/addbooks LIBNAME=/data/library CALIBREDB=/usr/bin/calibredb CAL_OPT="add -1 -r" export LANG=en_US.UTF-8 ${CALIBREDB} ${CAL_OPT} --with-library=${LIBNAME} ${DIRNAME} EC=$? if [ $EC -eq 0 ] then /bin/rm -rf -- ${DIRNAME}/* fi ## Instruction: Create log when adding books ## Code After: ...
3fcd9a4e44e2f8851a54d47558d814c512d76c19
app/CakeInput.tsx
app/CakeInput.tsx
import * as React from "react"; class CakeInput extends React.Component<any, void> { constructor(props: React.Props<any>) { super(props); // Required because of the ES6 class syntax decifiency this.onSubmit = this.onSubmit.bind(this); } refs: { [string: string]: any; ...
import * as React from "react"; interface CakeInputState { value: string; } class CakeInput extends React.Component<any, CakeInputState> { constructor(props: React.Props<any>) { super(props); // Required because of the ES6 class syntax decifiency this.onSubmit = this.onSubmit.bind(thi...
Clear text field on input
Clear text field on input
TypeScript
mit
mieky/we-love-cake,mieky/we-love-cake
typescript
## Code Before: import * as React from "react"; class CakeInput extends React.Component<any, void> { constructor(props: React.Props<any>) { super(props); // Required because of the ES6 class syntax decifiency this.onSubmit = this.onSubmit.bind(this); } refs: { [string: st...
53cfa46acbc05717f4e96e0326749fb19714a1f6
README.md
README.md
When you don't feel like working at all, specially in the morning before grab your 3rd cup of coffee, you are going to wish have a good friend like this beautiful IDE, ready to help you in the tireless task of pretending be a productive person. This is an example project use in one of my talks to show some basic techn...
When you don't feel like working at all, specially in the morning before grab your 3rd cup of coffee, you are going to wish have a good friend like this beautiful IDE, ready to help you in the tireless task of pretending be a productive person. This is an example project use in one of my talks to show some basic techn...
Add hacker type reference to read me file
Add hacker type reference to read me file
Markdown
mit
pabl0xf/wingman-ide,pabl0xf/wingman-ide
markdown
## Code Before: When you don't feel like working at all, specially in the morning before grab your 3rd cup of coffee, you are going to wish have a good friend like this beautiful IDE, ready to help you in the tireless task of pretending be a productive person. This is an example project use in one of my talks to show ...
e4ba6b5869a65d6bc2620206f6e30bc60642291c
docker/tuple-wps/README.md
docker/tuple-wps/README.md
This container installs OSSIM from rpm packages and also GeoServer to create the WPS bridge for tuple. ## Build it `docker build --tag=radiantblue/tuple-wps .` ## Run it `docker run -d --link='TUPLEVIEWERCONTAINER' --name='tuple-wps' -v /ABS/LOCAL/PATH/TO/SCRIPTS:/tomcat/webapps/geoserver/data/scripts/wps radiantblu...
This container installs OSSIM from rpm packages and also GeoServer to create the WPS bridge for tuple. ## Build it `docker build --tag=radiantblue/tuple-wps .` ## Run it `docker run -d -p 8080:8080 --link='TUPLEVIEWERCONTAINER' --name='tuple-wps' -v /ABS/LOCAL/PATH/TO/SCRIPTS:/tomcat/webapps/geoserver/data/scripts/w...
Add port example for geoserver.
Add port example for geoserver.
Markdown
mit
benhosmer/tuple,benhosmer/tuple,benhosmer/tuple,benhosmer/tuple,benhosmer/tuple
markdown
## Code Before: This container installs OSSIM from rpm packages and also GeoServer to create the WPS bridge for tuple. ## Build it `docker build --tag=radiantblue/tuple-wps .` ## Run it `docker run -d --link='TUPLEVIEWERCONTAINER' --name='tuple-wps' -v /ABS/LOCAL/PATH/TO/SCRIPTS:/tomcat/webapps/geoserver/data/script...
2ec7df05924f99a14f7f8e9dd814dbb5171520e6
templates/README.md
templates/README.md
This is a [Distributed Proofreaders](http://www.pgdp.net/) post-processing project. "{{ title }}" by {{ author }} ({{ pub_year }}) - [DP project page](http://www.pgdp.net/c/project.php?id=projectID{{ project_id }}) {% if source_images -%} - [Hi-res source images]({{ source_images }}) {% endif -%} - [Forum thread]({{...
This is a [Distributed Proofreaders](http://www.pgdp.net/) post-processing project. "{{ title }}" by {{ author }} ({{ pub_year }}) - [DP project page](http://www.pgdp.net/c/project.php?id=projectID{{ project_id }}) {% if source_images -%} - [Hi-res source images]({{ source_images }}) {% endif -%} - [Forum thread]({{...
Remove status, that's really a Trello thing.
Remove status, that's really a Trello thing.
Markdown
mit
tangledhelix/dp_pp_utils,tangledhelix/dp_pp_utils
markdown
## Code Before: This is a [Distributed Proofreaders](http://www.pgdp.net/) post-processing project. "{{ title }}" by {{ author }} ({{ pub_year }}) - [DP project page](http://www.pgdp.net/c/project.php?id=projectID{{ project_id }}) {% if source_images -%} - [Hi-res source images]({{ source_images }}) {% endif -%} - [...
9a8bdd93d1bef5181f8bc1ab82dff3c19d70ffbf
README.md
README.md
Work with [toml-rs]() `Value` objects in an easy way: ```rust value.read("foo.bar.a.b.c") // -> Result<Value, Error> value.set("foo.bar.a.b.c", Value::Integer(1)) // -> Result<Value, Error> value.insert("foo.bar.a.b.c", Value::Integer(1)) // -> Result<bool, Error> value.remove("foo.bar.a.b.c") // -> Result<bool, Erro...
Work with [toml-rs]() `Value` objects in an easy way: ```rust value.read("foo.bar.a.b.c") // -> Result<&Value, Error> value.set("foo.bar.a.b.c", Value::Integer(1)) // -> Result<Option<Value>, Error> value.insert("foo.bar.a.b.c", Value::Integer(1)) // -> Result<Option<Value>, Error> value.de...
Update readme to fit the actual API
Update readme to fit the actual API
Markdown
mpl-2.0
matthiasbeyer/toml-query
markdown
## Code Before: Work with [toml-rs]() `Value` objects in an easy way: ```rust value.read("foo.bar.a.b.c") // -> Result<Value, Error> value.set("foo.bar.a.b.c", Value::Integer(1)) // -> Result<Value, Error> value.insert("foo.bar.a.b.c", Value::Integer(1)) // -> Result<bool, Error> value.remove("foo.bar.a.b.c") // -> R...
da5f19edb37cb7a3ac83a33a32366778ae7a7956
assets/styles/pages/search/gcse.scss
assets/styles/pages/search/gcse.scss
--- layout: null --- .gsc-tabsAreaInvisible, .gsc-resultsHeader, .gsc-thumbnail-inside, .gsc-url-top, .gs-visibleUrl-short, .gs-watermark { display: none; } .gsc-above-wrapper-area { margin-bottom: 2rem; } div.gs-title { margin-bottom: .8rem; a.gs-title { font-family: NanumBarunGothic, "나눔바른...
--- layout: null --- .gsc-tabsAreaInvisible, .gsc-resultsHeader, .gsc-thumbnail-inside, .gsc-url-top, .gs-visibleUrl-short, .gs-watermark { display: none; } .gsc-above-wrapper-area { margin-bottom: 2rem; } div.gs-title { margin-bottom: .8rem; a.gs-title { font-family: NanumBarunGothic, "나눔바른...
Add style of URL area
Add style of URL area
SCSS
mit
woneob/woneob.github.io,woneob/1upnote,woneob/woneob.github.io,woneob/1upnote,woneob/1upnote,woneob/woneob.github.io
scss
## Code Before: --- layout: null --- .gsc-tabsAreaInvisible, .gsc-resultsHeader, .gsc-thumbnail-inside, .gsc-url-top, .gs-visibleUrl-short, .gs-watermark { display: none; } .gsc-above-wrapper-area { margin-bottom: 2rem; } div.gs-title { margin-bottom: .8rem; a.gs-title { font-family: NanumBa...
0b89e9bd5694167456bd26b0b59db4c0aae2c60e
.rubocop.yml
.rubocop.yml
Layout/LineLength: Max: 92 # Do not commit to use of interpolation Style/StringLiterals: EnforcedStyle: double_quotes # Prefer symbols to look like symbols Style/SymbolArray: EnforcedStyle: brackets
Layout/LineLength: Max: 92 # In guard clauses, if ! is often more immediately clear Style/NegatedIf: Enabled: false # Do not commit to use of interpolation Style/StringLiterals: EnforcedStyle: double_quotes # Prefer symbols to look like symbols Style/SymbolArray: EnforcedStyle: brackets
Allow negated if for clearer guard clauses
Allow negated if for clearer guard clauses
YAML
mit
ActsAsParanoid/acts_as_paranoid
yaml
## Code Before: Layout/LineLength: Max: 92 # Do not commit to use of interpolation Style/StringLiterals: EnforcedStyle: double_quotes # Prefer symbols to look like symbols Style/SymbolArray: EnforcedStyle: brackets ## Instruction: Allow negated if for clearer guard clauses ## Code After: Layout/LineLength: ...
823b0acfb18d087acfa55e1f0b67641723e52aa1
spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH << File.expand_path('../../lib', __FILE__) $LOAD_PATH << File.expand_path('../../spec/helpers', __FILE__) require 'buildpack/packager' require 'file_system_helpers' RSpec.configure do |config| config.include FileSystemHelpers end
$LOAD_PATH << File.expand_path('../../lib', __FILE__) $LOAD_PATH << File.expand_path('../../spec/helpers', __FILE__) require 'buildpack/packager' require 'file_system_helpers' unless system("which tree") raise "Please install the `tree` commandline tool." end RSpec.configure do |config| config.include FileSystemH...
Check for existence of `tree` before running suite.
Check for existence of `tree` before running suite.
Ruby
apache-2.0
cloudfoundry/buildpack-packager,cloudfoundry-incubator/buildpack-packager
ruby
## Code Before: $LOAD_PATH << File.expand_path('../../lib', __FILE__) $LOAD_PATH << File.expand_path('../../spec/helpers', __FILE__) require 'buildpack/packager' require 'file_system_helpers' RSpec.configure do |config| config.include FileSystemHelpers end ## Instruction: Check for existence of `tree` before runnin...
0326739b2ce53dc739d0efa35c44a8ce6141bee0
README.md
README.md
A music lyrics application for [Sailfish OS](https://sailfishos.org). Currently it supports: * [ChartLyrics](http://chartlyrics.com) * [Genius](http://genius.com) * [LyricsMania](http://www.lyricsmania.com) [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit...
A music lyrics application for [Sailfish OS](https://sailfishos.org). Currently it supports: * [ChartLyrics](http://chartlyrics.com) * [Genius](http://genius.com) * [LyricsMania](http://www.lyricsmania.com) [Build status](https://build.merproject.org/package/live_build_log/home:ilpianista/harbour-lyrics/sailfi...
Add liberapay, drop flattr and paypal
Add liberapay, drop flattr and paypal
Markdown
mit
ilpianista/harbour-Lyrics,ascarpino/harbour-Lyrics,ilpianista/harbour-Lyrics,ascarpino/harbour-Lyrics
markdown
## Code Before: A music lyrics application for [Sailfish OS](https://sailfishos.org). Currently it supports: * [ChartLyrics](http://chartlyrics.com) * [Genius](http://genius.com) * [LyricsMania](http://www.lyricsmania.com) [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://f...
d616642e11c0151f44cdae6038d8cdae07abdf8c
setup.py
setup.py
from distutils.core import setup setup( name='Getty Art', version='0.0.1', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com', packages=['getty_art'], url='https://github.com/c-w/GettyArt', download_url='http://pypi.python.org/pypi/GettyArt', license='LICENSE.txt', ...
from distutils.core import setup setup( name='Getty Art', version='0.0.1', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com', packages=['getty_art'], url='https://github.com/c-w/GettyArt', download_url='http://pypi.python.org/pypi/GettyArt', license='LICENSE.txt', ...
Make tag-line consistent with GitHub
Make tag-line consistent with GitHub
Python
mit
c-w/GettyArt
python
## Code Before: from distutils.core import setup setup( name='Getty Art', version='0.0.1', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com', packages=['getty_art'], url='https://github.com/c-w/GettyArt', download_url='http://pypi.python.org/pypi/GettyArt', license='LI...
a88093d4506e53cde09d729ce0fe1ce0b19782e2
code/GetLinksFolderExtension.php
code/GetLinksFolderExtension.php
<?php namespace WebOfTalent\Links; use SilverStripe\ORM\DataExtension; /** * Get a handle on a links folder for rendering purposes * * Class LinksExtension * @package WebOfTalent\Links */ class GetLinksFolderExtension extends DataExtension { /** * @param $slug the slug of the links folder in question, e....
<?php namespace WebOfTalent\Links; use SilverStripe\ORM\DataExtension; /** * Get a handle on a links folder for rendering purposes * * Class LinksExtension * @package WebOfTalent\Links */ class GetLinksFolderExtension extends DataExtension { /** * @param $slug the slug of the links folder in question, e....
Deal with the folder missing case
FIX: Deal with the folder missing case
PHP
bsd-3-clause
gordonbanderson/Silverstripe-Links-Module,gordonbanderson/Silverstripe-Links-Module
php
## Code Before: <?php namespace WebOfTalent\Links; use SilverStripe\ORM\DataExtension; /** * Get a handle on a links folder for rendering purposes * * Class LinksExtension * @package WebOfTalent\Links */ class GetLinksFolderExtension extends DataExtension { /** * @param $slug the slug of the links folder...
1a769f5e5262d0870e1a7bc17da83e22b1a8be0e
app/views/control_center/statistics/index.html.haml
app/views/control_center/statistics/index.html.haml
- content_for :head_javascripts do = javascript_include_tag "/control_center/javascripts/jquery.flot.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.stack.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.resize.js" = javascript_include_tag "/control_center/javascripts/...
- content_for :head_javascripts do /[if lte IE 8] = javascript_include_tag "/control_center/javascripts/excanvas.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.stack.js" = javascript_include_tag "/control_center/jav...
Include excanvas for IE8 and below.
Include excanvas for IE8 and below.
Haml
mit
steverandy/concen,steverandy/concen
haml
## Code Before: - content_for :head_javascripts do = javascript_include_tag "/control_center/javascripts/jquery.flot.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.stack.js" = javascript_include_tag "/control_center/javascripts/jquery.flot.resize.js" = javascript_include_tag "/control_cen...
8e4a01fac95e64820fa71c5d3085f7335753707f
payments-api/tests/api/helpers/hmac-validator.js
payments-api/tests/api/helpers/hmac-validator.js
const chai = require('chai') const fs = require('fs') const path = require('path') const should = chai.should() const expect = chai.expect const assert = chai.assert const transformer = require('../../../build/api/helpers/transform-legacy-xml-to-json').default const mockXmlLocation = path.join(__dirname, '../../../sr...
const chai = require('chai') const fs = require('fs') const crypto = require('crypto') const should = chai.should() const expect = chai.expect const assert = chai.assert const isHmacValid = require('../../../build/api/helpers/hmac-validator').default process.env.NODE_ENV = 'test' describe('Helper hmac validation', (...
Write tests for hmac validator
Write tests for hmac validator
JavaScript
mit
mikaturunen/byop,mikaturunen/byop,mikaturunen/byop
javascript
## Code Before: const chai = require('chai') const fs = require('fs') const path = require('path') const should = chai.should() const expect = chai.expect const assert = chai.assert const transformer = require('../../../build/api/helpers/transform-legacy-xml-to-json').default const mockXmlLocation = path.join(__dirna...
76c39d833dd21e58bd981eb14bccbfc3746f7360
README.md
README.md
[![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a number of providers ...
[![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a number of providers ...
Update description in the readme.
Update description in the readme.
Markdown
bsd-2-clause
jitsi/jap,jitsi/jap
markdown
## Code Before: [![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a numb...
d39a5652fcf904abc26ef2d7165df6d9ecfc68d8
chapter5/Game.h
chapter5/Game.h
class Game { public: static Game *getInstance() { if (!instance) { instance = new Game(); } return instance; } bool init(const char *title, int xPosition, int yPosition, int height, int width, bool fullScreen); void rend...
class Game { public: static Game *getInstance() { if (!instance) { instance = new Game(); } return instance; } bool init(const char *title, int xPosition, int yPosition, int height, int width, bool fullScreen); void rend...
Include method to return pointer to object gameStateMachine
Include method to return pointer to object gameStateMachine
C
bsd-2-clause
caiotava/SDLBook
c
## Code Before: class Game { public: static Game *getInstance() { if (!instance) { instance = new Game(); } return instance; } bool init(const char *title, int xPosition, int yPosition, int height, int width, bool fullScreen); ...
1348dbf2b3dc6150ed1939da81a630943eafe99c
lib/octobat-moss-service.js
lib/octobat-moss-service.js
'use strict'; var rest = require('restler-q'); var q = require('q'); module.exports = function(options) { return q.fcall(function() { if (!options) { throw new Error("options required"); } var supplier = options.supplier; var customer = options.customer; if (!supplier || !customer) { ...
'use strict'; var rest = require('restler-q'); var q = require('q'); module.exports = function(options) { return q.fcall(function() { if (!options) { throw new Error("options required"); } var supplier = options.supplier; var customer = options.customer; if (!supplier || !customer) { ...
Handle change to octobat service api.
Handle change to octobat service api.
JavaScript
mit
gitterHQ/vat-calculator
javascript
## Code Before: 'use strict'; var rest = require('restler-q'); var q = require('q'); module.exports = function(options) { return q.fcall(function() { if (!options) { throw new Error("options required"); } var supplier = options.supplier; var customer = options.customer; if (!supplier || ...
20ceaac885d8b12f8d5972c2f5021416d8239a80
.travis.yml
.travis.yml
sudo: false cache: directories: - $HOME/.cache/pip - tests/bot-ci addons: apt: packages: - libssl1.0.0 - zsh - tcsh - mksh - busybox # - rc - socat - bc language: python install: tests/install...
sudo: false cache: directories: - $HOME/.cache/pip - tests/bot-ci addons: apt: packages: - libssl1.0.0 - zsh - tcsh - mksh - busybox # - rc - socat - bc language: python install: tests/install...
Allow the whole CPython-2.6 UCS2 section to fail
Allow the whole CPython-2.6 UCS2 section to fail
YAML
mit
kenrachynski/powerline,S0lll0s/powerline,EricSB/powerline,kenrachynski/powerline,QuLogic/powerline,blindFS/powerline,EricSB/powerline,QuLogic/powerline,blindFS/powerline,prvnkumar/powerline,bezhermoso/powerline,bezhermoso/powerline,kenrachynski/powerline,areteix/powerline,S0lll0s/powerline,EricSB/powerline,prvnkumar/po...
yaml
## Code Before: sudo: false cache: directories: - $HOME/.cache/pip - tests/bot-ci addons: apt: packages: - libssl1.0.0 - zsh - tcsh - mksh - busybox # - rc - socat - bc language: python instal...
6cf49e3ac28aa953f1b79bb324e65f3048390877
README.md
README.md
wmf-vagrant =========== Skeleton Vagrant configuration for the Wikimedia Foundation. This is a work-in-progress. ## Prerequisites ## You'll need to install [Vagrant][0] and [VirtualBox][1] (>= 4.1). ## Installation ## ```bash git clone https://github.com/atdt/wmf-vagrant.git cd ./wmf-vagrant git submodule update -...
wmf-vagrant =========== Skeleton Vagrant configuration for the Wikimedia Foundation. This is a work-in-progress. ## Prerequisites ## You'll need to install [Vagrant][0] and [VirtualBox][1] (>= 4.1). ## Installation ## ```bash git clone https://github.com/atdt/wmf-vagrant.git cd ./wmf-vagrant git submodule update -...
Clarify that admin username is admin.
Clarify that admin username is admin.
Markdown
mit
ankita-kumari/mediawiki-vagrant,physikerwelt/DRMF-vagrant,stuartbman/mediawiki-vagrant,huit/mediawiki-vagrant,wikimedia/mediawiki-vagrant,ankita-kumari/mediawiki-vagrant,stuartbman/mediawiki-vagrant,physikerwelt/DRMF-vagrant,ankita-kumari/mediawiki-vagrant,ankita-kumari/mediawiki-vagrant,stuartbman/mediawiki-vagrant,ph...
markdown
## Code Before: wmf-vagrant =========== Skeleton Vagrant configuration for the Wikimedia Foundation. This is a work-in-progress. ## Prerequisites ## You'll need to install [Vagrant][0] and [VirtualBox][1] (>= 4.1). ## Installation ## ```bash git clone https://github.com/atdt/wmf-vagrant.git cd ./wmf-vagrant git su...
c4a87802125d8611949c649d3295f394ab3030cc
README.md
README.md
reddit-image-downloader ======================= A program to download images from specified number of pages from Reddit. Written in Java. Uses Jsoup HTML parser.
reddit-image-downloader ======================= <<<<<<< HEAD A program to download images from specified number of pages from Reddit. Written in Java. Uses Jsoup HTML parser. ======= A fragile program that downloads images from specified number of pages from the sub-reddit /r/funny. Written in Java. Uses Jsoup HTML p...
Set the default connection timeout to 10s
Set the default connection timeout to 10s
Markdown
mit
srimukhsai/reddit-image-downloader
markdown
## Code Before: reddit-image-downloader ======================= A program to download images from specified number of pages from Reddit. Written in Java. Uses Jsoup HTML parser. ## Instruction: Set the default connection timeout to 10s ## Code After: reddit-image-downloader ======================= <<<<<<< HEAD A pr...
f636420211821faeb3e26a501fbe5a9a7e3eef5e
normal_admin/user_admin.py
normal_admin/user_admin.py
__author__ = 'weijia' from django.contrib.admin.sites import AdminSite from django.contrib.admin.forms import AdminAuthenticationForm from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate ERROR_MESSAGE = _("Please enter the correct username and pa...
from django.contrib.admin.sites import AdminSite from django.contrib.admin.forms import AdminAuthenticationForm from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate __author__ = 'weijia' ERROR_MESSAGE = _("Please enter the correct username and p...
Fix login error in Django 1.8.
Fix login error in Django 1.8.
Python
bsd-3-clause
weijia/normal_admin,weijia/normal_admin
python
## Code Before: __author__ = 'weijia' from django.contrib.admin.sites import AdminSite from django.contrib.admin.forms import AdminAuthenticationForm from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate ERROR_MESSAGE = _("Please enter the correct...
dbf1583ed60bd816b739f96ba5b02d6947349a7b
lib/reevoocop.yml
lib/reevoocop.yml
LineLength: Max: 120 Documentation: Enabled: false AndOr: Enabled: false # Allow use of empty lines to visually group code into 'paragraphs' EmptyLines: Enabled: false Style/EmptyLinesAroundBlockBody: Enabled: false Style/EmptyLinesAroundClassBody: Enabled: false Style/EmptyLinesAroundMethodBody: Enabled...
LineLength: Max: 120 Metrics/MethodLength: Max: 15 Documentation: Enabled: false AndOr: Enabled: false # Allow use of empty lines to visually group code into 'paragraphs' EmptyLines: Enabled: false Style/EmptyLinesAroundBlockBody: Enabled: false Style/EmptyLinesAroundClassBody: Enabled: false Style/Empty...
Increase max method length to 15 lines
Increase max method length to 15 lines
YAML
mit
reevoo/reevoocop
yaml
## Code Before: LineLength: Max: 120 Documentation: Enabled: false AndOr: Enabled: false # Allow use of empty lines to visually group code into 'paragraphs' EmptyLines: Enabled: false Style/EmptyLinesAroundBlockBody: Enabled: false Style/EmptyLinesAroundClassBody: Enabled: false Style/EmptyLinesAroundMetho...
d127004fac1ccc3b62a3986fd4c56691975227c4
tox.ini
tox.ini
[tox] envlist = py26,py27,py32,py33 [testenv] commands = python setup.py test -q
[tox] envlist = py26,py27,py32,py33 [testenv] commands = python setup.py test -q deps = https://github.com/Supervisor/supervisor/tarball/master
Add dependency on Supervisor master for Py3 support
Add dependency on Supervisor master for Py3 support
INI
bsd-3-clause
ContinuumIO/supervisor_cache,mnaberez/supervisor_cache
ini
## Code Before: [tox] envlist = py26,py27,py32,py33 [testenv] commands = python setup.py test -q ## Instruction: Add dependency on Supervisor master for Py3 support ## Code After: [tox] envlist = py26,py27,py32,py33 [testenv] commands = python setup.py test -q deps = https://github.com/Superviso...
e605a034e600fa50452e1b816ce3b2d0c98ce323
wp-content/themes/template/src/styles/parts/navigation.less
wp-content/themes/template/src/styles/parts/navigation.less
.main-nav { position: fixed; right: -85vw; z-index: 50; top: 0; width: 85vw; height: 100vh; transition: right 300ms; &__check:checked ~ & { right: 0; transform: none; } &__items { position: absolute; left: 0; overflow: scroll; list-style: none; background: @first; wid...
.main-nav { position: fixed; right: -85vw; z-index: 50; top: 0; width: 85vw; height: 100vh; transition: right 300ms; &__check:checked ~ & { right: 0; transform: none; } &__items { position: absolute; left: 0; overflow: scroll; list-style: none; background: @first; wid...
Remove border radius form menu
Remove border radius form menu
Less
mit
DNepovim/kraj-praha,DNepovim/kraj-praha,DNepovim/kraj-praha
less
## Code Before: .main-nav { position: fixed; right: -85vw; z-index: 50; top: 0; width: 85vw; height: 100vh; transition: right 300ms; &__check:checked ~ & { right: 0; transform: none; } &__items { position: absolute; left: 0; overflow: scroll; list-style: none; background:...
cb34e80c908e5379f3c35e35901b033125d04d54
lib/chef/provider/template_finder.rb
lib/chef/provider/template_finder.rb
class Chef class Provider class TemplateFinder def initialize(run_context, cookbook_name, node) @run_context = run_context @cookbook_name = cookbook_name @node = node end def find(template_name, options = {}) if options[:local] return options[:source...
class Chef class Provider class TemplateFinder def initialize(run_context, cookbook_name, node) @run_context = run_context @cookbook_name = cookbook_name @node = node end def find(template_name, options = {}) if options[:local] return local_template_...
Replace ternary operators with more explicit conditionals; split them out to separate methods for ease of maintenance.
[CHEF-3249] Replace ternary operators with more explicit conditionals; split them out to separate methods for ease of maintenance.
Ruby
apache-2.0
zshuo/chef,ckaushik/chef,tas50/chef-1,aaron-lane/chef,jkerry/chef,mwrock/chef,sekrett/chef,nguyen-tien-mulodo/chef,AndyBoucher/Chef-Testing,Tensibai/chef,sysbot/chef,nathwill/chef,tas50/chef-1,erkolson/chef,MichaelPereira/chef,nguyen-tien-mulodo/chef,clintoncwolfe/chef,BackSlasher/chef,ShadySQL/chef-merged,ChaosCloud/c...
ruby
## Code Before: class Chef class Provider class TemplateFinder def initialize(run_context, cookbook_name, node) @run_context = run_context @cookbook_name = cookbook_name @node = node end def find(template_name, options = {}) if options[:local] return...
1dd4e02adb56d38768c1cde2b39b8b6b9fb646d5
lib/tasks/govuk_assets.rake
lib/tasks/govuk_assets.rake
require 'asset_processor' namespace :govuk_assets do desc 'Delete file from NFS for assets uploaded to S3' task delete_file_from_nfs_for_assets_uploaded_to_s3: :environment do processor = AssetProcessor.new(scope: Asset.unscoped.where(state: 'uploaded')) processor.process_all_assets_with do |asset_id| ...
require 'asset_processor' namespace :govuk_assets do desc 'Delete file from NFS for assets uploaded to S3' task delete_file_from_nfs_for_assets_uploaded_to_s3: :environment do processor = AssetProcessor.new(scope: Asset.where(state: 'uploaded')) processor.process_all_assets_with do |asset_id| DeleteA...
Remove 'unscoped' modifier from rake task, there's no longer a default scope
Remove 'unscoped' modifier from rake task, there's no longer a default scope
Ruby
mit
alphagov/asset-manager,alphagov/asset-manager,alphagov/asset-manager
ruby
## Code Before: require 'asset_processor' namespace :govuk_assets do desc 'Delete file from NFS for assets uploaded to S3' task delete_file_from_nfs_for_assets_uploaded_to_s3: :environment do processor = AssetProcessor.new(scope: Asset.unscoped.where(state: 'uploaded')) processor.process_all_assets_with do...
d0631c8d725713ac3138359fab1dae915eb030cb
test/test_postgres.go
test/test_postgres.go
package main import ( "bytes" c "github.com/flynn/flynn/Godeps/_workspace/src/github.com/flynn/go-check" "github.com/flynn/flynn/pkg/exec" ) type PostgresSuite struct { Helper } var _ = c.ConcurrentSuite(&PostgresSuite{}) // Check postgres config to avoid regressing on https://github.com/flynn/flynn/issues/101...
package main import ( c "github.com/flynn/flynn/Godeps/_workspace/src/github.com/flynn/go-check" ) type PostgresSuite struct { Helper } var _ = c.ConcurrentSuite(&PostgresSuite{}) // Check postgres config to avoid regressing on https://github.com/flynn/flynn/issues/101 func (s *PostgresSuite) TestSSLRenegotiation...
Use `flynn psql` for TestSSLRenegotiationLimit
test: Use `flynn psql` for TestSSLRenegotiationLimit This avoids reimplementing the psql run logic in two places and tests `flynn psql`. Signed-off-by: Jonathan Rudenberg <3692bfa45759a67d83aedf0045f6cb635a966abf@titanous.com>
Go
bsd-3-clause
tonicbupt/flynn,pkdevbox/flynn,arekkas/flynn,whouses/flynn,supermario/flynn,TribeMedia/flynn,pkdevbox/flynn,benbjohnson/flynn,tonicbupt/flynn,clifff/flynn,justintung/flynn,whouses/flynn,arekkas/flynn,jzila/flynn,lmars/flynn,josephglanville/flynn,schatt/flynn,justintung/flynn,TribeMedia/flynn,GrimDerp/flynn,schatt/flynn...
go
## Code Before: package main import ( "bytes" c "github.com/flynn/flynn/Godeps/_workspace/src/github.com/flynn/go-check" "github.com/flynn/flynn/pkg/exec" ) type PostgresSuite struct { Helper } var _ = c.ConcurrentSuite(&PostgresSuite{}) // Check postgres config to avoid regressing on https://github.com/flynn/...
3d0a17f13c1e3d4981e26dbabf60eaefcf36771a
src/BetterFolders/icon.tsx
src/BetterFolders/icon.tsx
import {React} from "dium"; import {Settings, FolderData} from "./settings"; export interface ConnectedBetterFolderIconProps { folderId: number; childProps: any; FolderIcon: React.FunctionComponent<any>; } export const ConnectedBetterFolderIcon = ({folderId, ...props}: ConnectedBetterFolderIconProps): JSX...
import {React} from "dium"; import {Settings, FolderData} from "./settings"; export interface BetterFolderIconProps { data?: FolderData; childProps: any; FolderIcon: React.FunctionComponent<any>; } export const BetterFolderIcon = ({data, childProps, FolderIcon}: BetterFolderIconProps): JSX.Element => { ...
Fix no folder data error
Fix no folder data error
TypeScript
mit
Zerthox/BetterDiscord-Plugins,Zerthox/BetterDiscord-Plugins
typescript
## Code Before: import {React} from "dium"; import {Settings, FolderData} from "./settings"; export interface ConnectedBetterFolderIconProps { folderId: number; childProps: any; FolderIcon: React.FunctionComponent<any>; } export const ConnectedBetterFolderIcon = ({folderId, ...props}: ConnectedBetterFolde...
81a616a4c4846560d4623cf1993fe7e1f78953a6
.kitchen.yml
.kitchen.yml
--- driver: name: vagrant box_check_update: true # network: # - ["forwarded_port", {guest: 80, host: 8977}] provisioner: require_chef_omnibus: false install_strategy: skip log_level: warn #name: chef-solo #chef_solo_path: /usr/bin/chef-solo name: chef_zero chef_client_path: /usr/bin/chef-client...
--- driver: name: vagrant box_check_update: true # network: # - ["forwarded_port", {guest: 80, host: 8977}] provisioner: require_chef_omnibus: false install_strategy: skip log_level: warn #name: chef-solo #chef_solo_path: /usr/bin/chef-solo name: chef_zero chef_client_path: /usr/bin/chef-client...
Add recipe for apt repository config
Add recipe for apt repository config
YAML
apache-2.0
GSI-HPC/cvmfs-chef-cookbook,GSI-HPC/cvmfs-chef-cookbook,GSI-HPC/cvmfs-chef-cookbook
yaml
## Code Before: --- driver: name: vagrant box_check_update: true # network: # - ["forwarded_port", {guest: 80, host: 8977}] provisioner: require_chef_omnibus: false install_strategy: skip log_level: warn #name: chef-solo #chef_solo_path: /usr/bin/chef-solo name: chef_zero chef_client_path: /usr...
beef8e07bda93ff95162a9f5d9b7ec1668e20d2b
lib/tasks/deployment.rake
lib/tasks/deployment.rake
desc 'Deploy, migrate and restart processes' task :deploy => 'knight:deploy_and_migrate' desc 'Simple deploy without migration' task 'deploy:simple' => 'knight:deploy' namespace :knight do desc 'Deploy to Heroku' task :deploy do puts 'Deploying to production...' system 'git push heroku master' end ...
desc 'Deploy, migrate and restart processes' task :deploy => 'knight:deploy_and_migrate' desc 'Simple deploy without migration' task 'deploy:simple' => 'knight:deploy' namespace :knight do desc 'Deploy to Heroku' task :deploy do puts 'Pushing to Github...' system 'git push origin master' puts ...
Deploy task pushed to github, too
Rake: Deploy task pushed to github, too
Ruby
mit
thomasklemm/pluginGeek
ruby
## Code Before: desc 'Deploy, migrate and restart processes' task :deploy => 'knight:deploy_and_migrate' desc 'Simple deploy without migration' task 'deploy:simple' => 'knight:deploy' namespace :knight do desc 'Deploy to Heroku' task :deploy do puts 'Deploying to production...' system 'git push herok...
9f6e262a536bfe4b51429309da96535063fe16d9
.travis.yml
.travis.yml
language: ruby rvm: - 2.2 - 2.3.0 services: - postgresql before_script: - psql -c 'create database resumis_test;' -U postgres script: bundle exec rake spec
language: ruby rvm: - 2.2 - 2.3 - 2.4.1 services: - postgresql before_install: - sudo apt-get update -qq - sudo apt-get install -qq libav-tools before_script: - psql -c 'create database resumis_test;' -U postgres env: - FFMPEG_BIN=/usr/bin/ffmpeg script: bundle exec rake spec
Update ruby versions in CI and add FFMPEG
Update ruby versions in CI and add FFMPEG
YAML
apache-2.0
maxfierke/resumis,maxfierke/resumis,maxfierke/resumis,maxfierke/resumis
yaml
## Code Before: language: ruby rvm: - 2.2 - 2.3.0 services: - postgresql before_script: - psql -c 'create database resumis_test;' -U postgres script: bundle exec rake spec ## Instruction: Update ruby versions in CI and add FFMPEG ## Code After: language: ruby rvm: - 2.2 - 2.3 - 2.4.1 services: - ...
416e6049049aa0890e3477d02aea5add2091f575
sample/fib.rb
sample/fib.rb
require 'jit' fib = nil signature = JIT::Type.create_signature( :CDECL, :INT, [ :INT ]) fib = JIT::Function.build(signature) do |f| n = f.param(0) a = f.value(:INT, 0) b = f.value(:INT, 1) c = f.value(:INT, 1) i = f.value(:INT, 0) f.while{ i < n }.do { c.store(a + b) a.store(b) b...
require 'jit' fib = JIT::Function.build([:INT] => :INT) do |f| n = f.param(0) a = f.value(:INT, 0) b = f.value(:INT, 1) c = f.value(:INT, 1) i = f.value(:INT, 0) f.while{ i < n }.do { c.store(a + b) a.store(b) b.store(c) i.store(i + 1) }.end f.return(c) end values = (0...10).collec...
Use simplified form for signature.
Use simplified form for signature.
Ruby
bsd-2-clause
cout/ruby-libjit,cout/ruby-libjit
ruby
## Code Before: require 'jit' fib = nil signature = JIT::Type.create_signature( :CDECL, :INT, [ :INT ]) fib = JIT::Function.build(signature) do |f| n = f.param(0) a = f.value(:INT, 0) b = f.value(:INT, 1) c = f.value(:INT, 1) i = f.value(:INT, 0) f.while{ i < n }.do { c.store(a + b) ...
3f9a21d2f7e52eebe94d6bc167bf3bb7750b3f18
tools/smoke-tests/generated-validation-tests/src/test/proto/spine/test/tools/validate/entity.proto
tools/smoke-tests/generated-validation-tests/src/test/proto/spine/test/tools/validate/entity.proto
syntax = "proto3"; package spine.test.tools.validate; import "spine/options.proto"; option (type_url_prefix) = "type.spine.io"; option java_package = "io.spine.test.tools.validate"; option java_outer_classname = "EntityProto"; option java_multiple_files = true; message Project { option (entity).kind = ENTITY; ...
syntax = "proto3"; package spine.test.tools.validate; import "spine/options.proto"; option (type_url_prefix) = "type.spine.io"; option java_package = "io.spine.test.tools.validate"; option java_outer_classname = "EntityProto"; option java_multiple_files = true; // An entity type. // // By default, `id` is required....
Add docs for test types
Add docs for test types
Protocol Buffer
apache-2.0
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
protocol-buffer
## Code Before: syntax = "proto3"; package spine.test.tools.validate; import "spine/options.proto"; option (type_url_prefix) = "type.spine.io"; option java_package = "io.spine.test.tools.validate"; option java_outer_classname = "EntityProto"; option java_multiple_files = true; message Project { option (entity)....
744d4a34fa3f5f514f3f1e525822360dd97e28e2
astroquery/ogle/tests/test_ogle_remote.py
astroquery/ogle/tests/test_ogle_remote.py
import pytest import astropy.units as u from astropy.coordinates import SkyCoord from .. import Ogle @pytest.mark.remote_data def test_ogle_single(): co = SkyCoord(0, 3, unit=(u.degree, u.degree), frame='galactic') response = Ogle.query_region(coord=co) assert len(response) == 1 @pytest.mark.remote_da...
import pytest import astropy.units as u from astropy.coordinates import SkyCoord from .. import Ogle @pytest.mark.remote_data def test_ogle_single(): co = SkyCoord(0, 3, unit=(u.degree, u.degree), frame='galactic') response = Ogle.query_region(coord=co) assert len(response) == 1 @pytest.mark.remote_da...
Fix column name in tests
Fix column name in tests
Python
bsd-3-clause
imbasimba/astroquery,imbasimba/astroquery
python
## Code Before: import pytest import astropy.units as u from astropy.coordinates import SkyCoord from .. import Ogle @pytest.mark.remote_data def test_ogle_single(): co = SkyCoord(0, 3, unit=(u.degree, u.degree), frame='galactic') response = Ogle.query_region(coord=co) assert len(response) == 1 @pytes...
f7813ef68108bdf7d1cae3b2bcde3fbe77c79c7b
terraform/templates/cluster_test_user_data.sh
terraform/templates/cluster_test_user_data.sh
set -e cat > /libra_rsa <<'EOF' ${ssh_key} EOF cat > /usr/local/bin/ct <<'EOF' ${ct} EOF chmod +x /usr/local/bin/ct yum install git nano awscli -y usermod -a -G docker ec2-user cat > /etc/profile.d/libra_prompt.sh <<EOF export PS1="[\u@cluster-test-runner \w]$ " EOF
set -e cat > /libra_rsa <<'EOF' ${ssh_key} EOF chmod 600 /libra_rsa chown ec2-user /libra_rsa cat > /usr/local/bin/ct <<'EOF' ${ct} EOF chmod +x /usr/local/bin/ct yum install git nano awscli -y usermod -a -G docker ec2-user cat > /etc/profile.d/libra_prompt.sh <<EOF export PS1="[\u@cluster-test-runner \w]$ " EOF
Update private key permissions in terraform
[cluster-test] Update private key permissions in terraform Closes: #2036 Approved by: sherry-x
Shell
apache-2.0
aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core
shell
## Code Before: set -e cat > /libra_rsa <<'EOF' ${ssh_key} EOF cat > /usr/local/bin/ct <<'EOF' ${ct} EOF chmod +x /usr/local/bin/ct yum install git nano awscli -y usermod -a -G docker ec2-user cat > /etc/profile.d/libra_prompt.sh <<EOF export PS1="[\u@cluster-test-runner \w]$ " EOF ## Instruction: [cluster-test] ...
fa9b0550fd2fecde6b776fb0acf86bcf04a9c8ff
runStatistics.sh
runStatistics.sh
echo Look at https://centic9.github.io/github-version-statistics/ for results cd `dirname $0` git co upgrades.csv && \ git fetch && \ git rebase origin/master && \ rm -rf build && \ ./gradlew --no-daemon clean && \ ./gradlew --no-daemon check installDist && \ build/install/github-version-statistics/bin/github-versio...
set -u echo Look at https://centic9.github.io/github-version-statistics/ for results cd `dirname $0` echo echo Checkout and rebase git co upgrades.csv && \ git fetch && \ git rebase origin/master if [ $? -ne 0 ] then echo "Failed to Rebase" exit 1 fi echo echo Cleaning rm -rf build && \ ./gradlew --no-daemon c...
Update run-script to provide more output
Update run-script to provide more output
Shell
apache-2.0
centic9/github-version-statistics,centic9/github-version-statistics
shell
## Code Before: echo Look at https://centic9.github.io/github-version-statistics/ for results cd `dirname $0` git co upgrades.csv && \ git fetch && \ git rebase origin/master && \ rm -rf build && \ ./gradlew --no-daemon clean && \ ./gradlew --no-daemon check installDist && \ build/install/github-version-statistics/b...
4cd20280cd2a783b3aab9b15b90d37d233572bbf
README.md
README.md
An angular 2 port and rewrite based off of ["sirius-playlists"](https://github.com/alaycock/sirius-playlists) by [alaycock](https://github.com/alaycock). 🎉 ## Plans for this currently include (and are subject to change at any time): ✓ Start new repository from the ground up for a full rewrite ✓ Boilerplate for Gulp...
An angular 2 port and rewrite based off of ["sirius-playlists"](https://github.com/alaycock/sirius-playlists) by [alaycock](https://github.com/alaycock). 🎉 To get up and going you will need typescript and npm installed 1. Clone the repo: > git clone https://github.com/mschwarzmueller/angular-2-beta-boilerplate.git ...
Update readme to include installation / running instructions
Update readme to include installation / running instructions
Markdown
mit
webdevbrian/sirius-playlister,webdevbrian/sirius-playlister,webdevbrian/sirius-playlister
markdown
## Code Before: An angular 2 port and rewrite based off of ["sirius-playlists"](https://github.com/alaycock/sirius-playlists) by [alaycock](https://github.com/alaycock). 🎉 ## Plans for this currently include (and are subject to change at any time): ✓ Start new repository from the ground up for a full rewrite ✓ Boil...
255716547474c10ffc3e34b56e85ba97a96f3e03
.travis.yml
.travis.yml
language: python python: - 2.5 - 2.6 - 2.7 - pypy before_install: pip install simplejson script: python setup.py test branches: except: - website
language: python python: - 2.7 - pypy before_install: pip install simplejson script: python setup.py test branches: except: - website
Drop Python 2.5 and 2.6 support
Drop Python 2.5 and 2.6 support
YAML
bsd-3-clause
mitsuhiko/flask-website,mitsuhiko/flask-website,mitsuhiko/flask-website
yaml
## Code Before: language: python python: - 2.5 - 2.6 - 2.7 - pypy before_install: pip install simplejson script: python setup.py test branches: except: - website ## Instruction: Drop Python 2.5 and 2.6 support ## Code After: language: python python: - 2.7 - pypy before_install: pip install simp...