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
b75466868e2171dcc67b1db2666d186bf0afca89
test/junit/scala/collection/immutable/PagedSeqTest.scala
test/junit/scala/collection/immutable/PagedSeqTest.scala
package scala.collection.immutable import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.Test import org.junit.Assert._ @RunWith(classOf[JUnit4]) class PagedSeqTest { // should not NPE, and should equal the given Seq @Test def test_SI6615(): Unit = { assertEquals(Seq('a'), PagedSeq.fromStrings(List.fill(5000)("a")).slice(4096, 4097)) } // should not NPE, and should be empty @Test def test_SI9480(): Unit = { assertEquals(Seq(), PagedSeq.fromStrings(List("a")).slice(1)) } // Slices shouldn't read outside where they belong @Test def test_SI6519 { var readAttempt = 0 val sideEffectingIterator = new Iterator[Int] { def hasNext = readAttempt < 65536 def next = { readAttempt += 1; readAttempt } } val s = PagedSeq.fromIterator(sideEffectingIterator).slice(0,2).mkString assertEquals(s, "12") assert(readAttempt <= 4096) } }
package scala.collection.immutable import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.{Ignore, Test} import org.junit.Assert._ @RunWith(classOf[JUnit4]) class PagedSeqTest { // should not NPE, and should equal the given Seq @Test @Ignore("This tests a non-stack safe method in a deprecated class that requires ~1.5M stack, disabling") def test_SI6615(): Unit = { assertEquals(Seq('a'), PagedSeq.fromStrings(List.fill(5000)("a")).slice(4096, 4097)) } // should not NPE, and should be empty @Test def test_SI9480(): Unit = { assertEquals(Seq(), PagedSeq.fromStrings(List("a")).slice(1)) } // Slices shouldn't read outside where they belong @Test def test_SI6519 { var readAttempt = 0 val sideEffectingIterator = new Iterator[Int] { def hasNext = readAttempt < 65536 def next = { readAttempt += 1; readAttempt } } val s = PagedSeq.fromIterator(sideEffectingIterator).slice(0,2).mkString assertEquals(s, "12") assert(readAttempt <= 4096) } }
Disable stack hungry test of deprecated PagedSeq
Disable stack hungry test of deprecated PagedSeq
Scala
apache-2.0
felixmulder/scala,martijnhoekstra/scala,jvican/scala,scala/scala,jvican/scala,lrytz/scala,shimib/scala,felixmulder/scala,shimib/scala,martijnhoekstra/scala,lrytz/scala,scala/scala,martijnhoekstra/scala,lrytz/scala,slothspot/scala,jvican/scala,scala/scala,jvican/scala,martijnhoekstra/scala,shimib/scala,slothspot/scala,felixmulder/scala,slothspot/scala,scala/scala,scala/scala,slothspot/scala,felixmulder/scala,jvican/scala,shimib/scala,lrytz/scala,scala/scala,felixmulder/scala,felixmulder/scala,martijnhoekstra/scala,slothspot/scala,shimib/scala,martijnhoekstra/scala,lrytz/scala,lrytz/scala,jvican/scala,slothspot/scala,shimib/scala,felixmulder/scala,slothspot/scala,jvican/scala
scala
## Code Before: package scala.collection.immutable import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.Test import org.junit.Assert._ @RunWith(classOf[JUnit4]) class PagedSeqTest { // should not NPE, and should equal the given Seq @Test def test_SI6615(): Unit = { assertEquals(Seq('a'), PagedSeq.fromStrings(List.fill(5000)("a")).slice(4096, 4097)) } // should not NPE, and should be empty @Test def test_SI9480(): Unit = { assertEquals(Seq(), PagedSeq.fromStrings(List("a")).slice(1)) } // Slices shouldn't read outside where they belong @Test def test_SI6519 { var readAttempt = 0 val sideEffectingIterator = new Iterator[Int] { def hasNext = readAttempt < 65536 def next = { readAttempt += 1; readAttempt } } val s = PagedSeq.fromIterator(sideEffectingIterator).slice(0,2).mkString assertEquals(s, "12") assert(readAttempt <= 4096) } } ## Instruction: Disable stack hungry test of deprecated PagedSeq ## Code After: package scala.collection.immutable import org.junit.runner.RunWith import org.junit.runners.JUnit4 import org.junit.{Ignore, Test} import org.junit.Assert._ @RunWith(classOf[JUnit4]) class PagedSeqTest { // should not NPE, and should equal the given Seq @Test @Ignore("This tests a non-stack safe method in a deprecated class that requires ~1.5M stack, disabling") def test_SI6615(): Unit = { assertEquals(Seq('a'), PagedSeq.fromStrings(List.fill(5000)("a")).slice(4096, 4097)) } // should not NPE, and should be empty @Test def test_SI9480(): Unit = { assertEquals(Seq(), PagedSeq.fromStrings(List("a")).slice(1)) } // Slices shouldn't read outside where they belong @Test def test_SI6519 { var readAttempt = 0 val sideEffectingIterator = new Iterator[Int] { def hasNext = readAttempt < 65536 def next = { readAttempt += 1; readAttempt } } val s = PagedSeq.fromIterator(sideEffectingIterator).slice(0,2).mkString assertEquals(s, "12") assert(readAttempt <= 4096) } }
653fe70ba6b4a6fdd339fa5f2dc84e8b7a6ccf52
app/assets/javascripts/pageflow/editor/views/configuration_editors/audio_loop.js
app/assets/javascripts/pageflow/editor/views/configuration_editors/audio_loop.js
pageflow.ConfigurationEditorView.register('audio_loop', { configure: function() { this.tab('general', function() { this.group('general'); this.input('additional_title', pageflow.TextInputView); this.input('additional_description', pageflow.TextAreaInputView, {size: 'short'}); }); this.tab('files', function() { this.input('audio_file_id', pageflow.FileInputView, {collection: pageflow.audioFiles}); this.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles}); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, positioning: false }); }); this.tab('options', function() { this.group('options'); }); } });
pageflow.ConfigurationEditorView.register('audio_loop', { configure: function() { this.tab('general', function() { this.group('general'); }); this.tab('files', function() { this.input('audio_file_id', pageflow.FileInputView, {collection: pageflow.audioFiles}); this.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles}); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, positioning: false }); }); this.tab('options', function() { this.group('options'); }); } });
Remove Additional Info Box Fields for Audio Loop Page
Remove Additional Info Box Fields for Audio Loop Page Not supported by this page type. Copied over from audio page.
JavaScript
mit
BenHeubl/pageflow,codevise/pageflow,BenHeubl/pageflow,tf/pageflow-dependabot-test,luatdolphin/pageflow,schoetty/pageflow,YoussefChafai/pageflow,luatdolphin/pageflow,YoussefChafai/pageflow,BenHeubl/pageflow,Modularfield/pageflow,tilsammans/pageflow,grgr/pageflow,tf/pageflow,codevise/pageflow,tilsammans/pageflow,grgr/pageflow,luatdolphin/pageflow,schoetty/pageflow,tf/pageflow,tf/pageflow-dependabot-test,tf/pageflow,Modularfield/pageflow,schoetty/pageflow,tf/pageflow-dependabot-test,YoussefChafai/pageflow,tf/pageflow,tf/pageflow-dependabot-test,Modularfield/pageflow,tilsammans/pageflow,grgr/pageflow,tilsammans/pageflow,codevise/pageflow,codevise/pageflow,Modularfield/pageflow
javascript
## Code Before: pageflow.ConfigurationEditorView.register('audio_loop', { configure: function() { this.tab('general', function() { this.group('general'); this.input('additional_title', pageflow.TextInputView); this.input('additional_description', pageflow.TextAreaInputView, {size: 'short'}); }); this.tab('files', function() { this.input('audio_file_id', pageflow.FileInputView, {collection: pageflow.audioFiles}); this.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles}); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, positioning: false }); }); this.tab('options', function() { this.group('options'); }); } }); ## Instruction: Remove Additional Info Box Fields for Audio Loop Page Not supported by this page type. Copied over from audio page. ## Code After: pageflow.ConfigurationEditorView.register('audio_loop', { configure: function() { this.tab('general', function() { this.group('general'); }); this.tab('files', function() { this.input('audio_file_id', pageflow.FileInputView, {collection: pageflow.audioFiles}); this.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles}); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, positioning: false }); }); this.tab('options', function() { this.group('options'); }); } });
6845995f50fe524e8a66119955662c61e8fe8f35
website/en/docs/types/modules.md
website/en/docs/types/modules.md
--- layout: guide --- ### Importing and exporting types <a class="toc" id="toc-importing-and-exporting-types" href="#toc-importing-and-exporting-types"></a> It is often useful to share types in between modules (files). In Flow, you can export type aliases, interfaces, and classes from one file and import them in another. **`exports.js`** ```js export default class Foo {}; export type MyObject = { /* ... */ }; export interface MyInterface { /* ... */ }; ``` **`imports.js`** ```js import type Foo, {MyObject, MyInterface} from './exports'; ``` ### Importing and exporting values <a class="toc" id="toc-importing-and-exporting-values" href="#toc-importing-and-exporting-values"></a> Flow also supports importing the type of values exported by other modules using [`typeof`](../typeof/). **`exports.js`** ```js export default const myNumber = 42; export class MyClass { // ... } ``` **`imports.js`** ```js import typeof myNumber from './exports'; import typeof {MyClass} from './exports'; ``` Just like other type imports, this code will be stripped away by a compiler and will not add a dependency on the other module.
--- layout: guide --- ### Importing and exporting types <a class="toc" id="toc-importing-and-exporting-types" href="#toc-importing-and-exporting-types"></a> It is often useful to share types in between modules (files). In Flow, you can export type aliases, interfaces, and classes from one file and import them in another. **`exports.js`** ```js export default class Foo {}; export type MyObject = { /* ... */ }; export interface MyInterface { /* ... */ }; ``` **`imports.js`** ```js import type Foo, {MyObject, MyInterface} from './exports'; ``` ### Importing and exporting values <a class="toc" id="toc-importing-and-exporting-values" href="#toc-importing-and-exporting-values"></a> Flow also supports importing the type of values exported by other modules using [`typeof`](../typeof/). **`exports.js`** ```js const myNumber = 42; export default myNumber; export class MyClass { // ... } ``` **`imports.js`** ```js import typeof myNumber from './exports'; import typeof {MyClass} from './exports'; ``` Just like other type imports, this code will be stripped away by a compiler and will not add a dependency on the other module.
Fix an `export default const` mistake in the docs
[PR] Fix an `export default const` mistake in the docs Summary: See https://github.com/facebook/flow/issues/4203. Closes https://github.com/facebook/flow/pull/4205 Differential Revision: D5297972 Pulled By: mroch fbshipit-source-id: 6175c47b8361d645bc2f267cd16cf8e89710fa6d
Markdown
mit
nmote/flow,samwgoldman/flow,JonathanUsername/flow,TiddoLangerak/flow,gabelevi/flow,TiddoLangerak/flow,TiddoLangerak/flow,ylu1317/flow,samwgoldman/flow,AgentME/flow,ylu1317/flow,samwgoldman/flow,JonathanUsername/flow,ylu1317/flow,samwgoldman/flow,claudiopro/flow,ylu1317/flow,popham/flow,jamesgpearce/flow,mroch/flow,samwgoldman/flow,jamesgpearce/flow,facebook/flow,MichaelDeBoey/flow,jamesgpearce/flow,nmote/flow,nmote/flow,JonathanUsername/flow,jamesgpearce/flow,popham/flow,nmote/flow,AgentME/flow,mroch/flow,jamesgpearce/flow,facebook/flow,nmote/flow,gabelevi/flow,gabelevi/flow,MichaelDeBoey/flow,nmote/flow,mroch/flow,facebook/flow,facebook/flow,facebook/flow,samwgoldman/flow,gabelevi/flow,gabelevi/flow,gabelevi/flow,AgentME/flow,claudiopro/flow,TiddoLangerak/flow,MichaelDeBoey/flow,popham/flow,claudiopro/flow,mroch/flow,ylu1317/flow,popham/flow,popham/flow,claudiopro/flow,JonathanUsername/flow,AgentME/flow,AgentME/flow,mroch/flow,MichaelDeBoey/flow,mroch/flow,gabelevi/flow,popham/flow,nmote/flow,TiddoLangerak/flow,popham/flow,JonathanUsername/flow,mroch/flow,MichaelDeBoey/flow,JonathanUsername/flow,facebook/flow,jamesgpearce/flow,JonathanUsername/flow,facebook/flow,claudiopro/flow,jamesgpearce/flow,samwgoldman/flow
markdown
## Code Before: --- layout: guide --- ### Importing and exporting types <a class="toc" id="toc-importing-and-exporting-types" href="#toc-importing-and-exporting-types"></a> It is often useful to share types in between modules (files). In Flow, you can export type aliases, interfaces, and classes from one file and import them in another. **`exports.js`** ```js export default class Foo {}; export type MyObject = { /* ... */ }; export interface MyInterface { /* ... */ }; ``` **`imports.js`** ```js import type Foo, {MyObject, MyInterface} from './exports'; ``` ### Importing and exporting values <a class="toc" id="toc-importing-and-exporting-values" href="#toc-importing-and-exporting-values"></a> Flow also supports importing the type of values exported by other modules using [`typeof`](../typeof/). **`exports.js`** ```js export default const myNumber = 42; export class MyClass { // ... } ``` **`imports.js`** ```js import typeof myNumber from './exports'; import typeof {MyClass} from './exports'; ``` Just like other type imports, this code will be stripped away by a compiler and will not add a dependency on the other module. ## Instruction: [PR] Fix an `export default const` mistake in the docs Summary: See https://github.com/facebook/flow/issues/4203. Closes https://github.com/facebook/flow/pull/4205 Differential Revision: D5297972 Pulled By: mroch fbshipit-source-id: 6175c47b8361d645bc2f267cd16cf8e89710fa6d ## Code After: --- layout: guide --- ### Importing and exporting types <a class="toc" id="toc-importing-and-exporting-types" href="#toc-importing-and-exporting-types"></a> It is often useful to share types in between modules (files). In Flow, you can export type aliases, interfaces, and classes from one file and import them in another. **`exports.js`** ```js export default class Foo {}; export type MyObject = { /* ... */ }; export interface MyInterface { /* ... */ }; ``` **`imports.js`** ```js import type Foo, {MyObject, MyInterface} from './exports'; ``` ### Importing and exporting values <a class="toc" id="toc-importing-and-exporting-values" href="#toc-importing-and-exporting-values"></a> Flow also supports importing the type of values exported by other modules using [`typeof`](../typeof/). **`exports.js`** ```js const myNumber = 42; export default myNumber; export class MyClass { // ... } ``` **`imports.js`** ```js import typeof myNumber from './exports'; import typeof {MyClass} from './exports'; ``` Just like other type imports, this code will be stripped away by a compiler and will not add a dependency on the other module.
3ef8e7783203f14665043f09539226a69a5ce594
etc/pytest.ini
etc/pytest.ini
[pytest] addopts = --doctest-glob='*.rst' --tb=native --capture=fd --splinter-implicit-wait=1 --splinter-speed=0 --splinter-socket-timeout=120 --splinter-webdriver=phantomjs --splinter-session-scoped-browser --cov=adhocracy --cov=adhocracy_sample --cov-report=html --cov-report=term --pc=etc/test.ini --capture=no python_files = test_*.py markers = functional: mark tests that start the complete pyramid app and the websocket server websocket: mark tests that start only the websocket server
[pytest] addopts = --doctest-glob='*.rst' --tb=native --capture=fd --splinter-implicit-wait=1 --splinter-speed=0 --splinter-socket-timeout=120 --splinter-webdriver=phantomjs --splinter-session-scoped-browser --cov=adhocracy --cov=adhocracy_sample --cov-report=html --cov-report=term --pc=etc/test.ini python_files = test_*.py markers = functional: mark tests that start the complete pyramid app and the websocket server websocket: mark tests that start only the websocket server
Revert "gardening: don't let pytes capture exceptions"
Revert "gardening: don't let pytes capture exceptions" This reverts commit 9a8dfbb48d301ce3aa8f2c55b62591886cf086b8. Reason: capture=fd is already defined above. If capture=no is desired, just add -s in py.test command.
INI
agpl-3.0
xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,fhartwig/adhocracy3.mercator
ini
## Code Before: [pytest] addopts = --doctest-glob='*.rst' --tb=native --capture=fd --splinter-implicit-wait=1 --splinter-speed=0 --splinter-socket-timeout=120 --splinter-webdriver=phantomjs --splinter-session-scoped-browser --cov=adhocracy --cov=adhocracy_sample --cov-report=html --cov-report=term --pc=etc/test.ini --capture=no python_files = test_*.py markers = functional: mark tests that start the complete pyramid app and the websocket server websocket: mark tests that start only the websocket server ## Instruction: Revert "gardening: don't let pytes capture exceptions" This reverts commit 9a8dfbb48d301ce3aa8f2c55b62591886cf086b8. Reason: capture=fd is already defined above. If capture=no is desired, just add -s in py.test command. ## Code After: [pytest] addopts = --doctest-glob='*.rst' --tb=native --capture=fd --splinter-implicit-wait=1 --splinter-speed=0 --splinter-socket-timeout=120 --splinter-webdriver=phantomjs --splinter-session-scoped-browser --cov=adhocracy --cov=adhocracy_sample --cov-report=html --cov-report=term --pc=etc/test.ini python_files = test_*.py markers = functional: mark tests that start the complete pyramid app and the websocket server websocket: mark tests that start only the websocket server
8aa76d03d77022e297f1ed925e40229ecf7413be
src/components/query_list.js
src/components/query_list.js
var React = require('react'); var actions = require('../actions'); var { Navigation } = require('react-router'); var QueryStore = require('../stores/query_store.js'); var QueryList = React.createClass({ mixins: [QueryStore.listenTo, Navigation], getInitialState() { return { queries: [] }; }, _onChange() { this.setState({ queries: QueryStore.all() }); }, chooseQuery(q) { this.props.chooseQuery(q); }, deleteQuery(q) { actions.deleteQuery(q.path); }, render() { return <div className='fill-navy-dark dark pad2'> {this.state.queries.map(q => <div className='col12 clearfix contain pad0y'> <div className='col3 right pad1 fill-darken2'> <a onClick={this.chooseQuery.bind(this, q)} className='icon down'>{q.data.name}</a> </div> <div className='col9 contain small'> <pre className='truncate fill-dark unround'>{q.data.query}</pre> {false ? <a onClick={this.deleteQuery.bind(this, q)} className='icon trash pin-topright'></a> : ''} </div> </div>)} </div>; } }); module.exports = QueryList;
var React = require('react'); var actions = require('../actions'); var { Navigation } = require('react-router'); var QueryStore = require('../stores/query_store.js'); var QueryList = React.createClass({ mixins: [QueryStore.listenTo, Navigation], getInitialState() { return { queries: [] }; }, _onChange() { this.setState({ queries: QueryStore.all() }); }, chooseQuery(q) { this.props.chooseQuery(q); }, deleteQuery(q) { actions.deleteQuery(q.path); }, render() { return <div className='fill-navy-dark dark pad2'> {this.state.queries.map((q, i) => <div key={q.data.query + '-' + i} className='col12 clearfix contain pad0y'> <div className='col3 right pad1 fill-darken2'> <a onClick={this.chooseQuery.bind(this, q)} className='icon down'>{q.data.name}</a> </div> <div className='col9 contain small'> <pre className='truncate fill-dark unround'>{q.data.query}</pre> {false ? <a onClick={this.deleteQuery.bind(this, q)} className='icon trash pin-topright'></a> : ''} </div> </div>)} </div>; } }); module.exports = QueryList;
Add keys to query list
Add keys to query list
JavaScript
isc
ernestrc/stickshift,ernestrc/stickshift,tmcw/stickshift,tmcw/stickshift
javascript
## Code Before: var React = require('react'); var actions = require('../actions'); var { Navigation } = require('react-router'); var QueryStore = require('../stores/query_store.js'); var QueryList = React.createClass({ mixins: [QueryStore.listenTo, Navigation], getInitialState() { return { queries: [] }; }, _onChange() { this.setState({ queries: QueryStore.all() }); }, chooseQuery(q) { this.props.chooseQuery(q); }, deleteQuery(q) { actions.deleteQuery(q.path); }, render() { return <div className='fill-navy-dark dark pad2'> {this.state.queries.map(q => <div className='col12 clearfix contain pad0y'> <div className='col3 right pad1 fill-darken2'> <a onClick={this.chooseQuery.bind(this, q)} className='icon down'>{q.data.name}</a> </div> <div className='col9 contain small'> <pre className='truncate fill-dark unround'>{q.data.query}</pre> {false ? <a onClick={this.deleteQuery.bind(this, q)} className='icon trash pin-topright'></a> : ''} </div> </div>)} </div>; } }); module.exports = QueryList; ## Instruction: Add keys to query list ## Code After: var React = require('react'); var actions = require('../actions'); var { Navigation } = require('react-router'); var QueryStore = require('../stores/query_store.js'); var QueryList = React.createClass({ mixins: [QueryStore.listenTo, Navigation], getInitialState() { return { queries: [] }; }, _onChange() { this.setState({ queries: QueryStore.all() }); }, chooseQuery(q) { this.props.chooseQuery(q); }, deleteQuery(q) { actions.deleteQuery(q.path); }, render() { return <div className='fill-navy-dark dark pad2'> {this.state.queries.map((q, i) => <div key={q.data.query + '-' + i} className='col12 clearfix contain pad0y'> <div className='col3 right pad1 fill-darken2'> <a onClick={this.chooseQuery.bind(this, q)} className='icon down'>{q.data.name}</a> </div> <div className='col9 contain small'> <pre className='truncate fill-dark unround'>{q.data.query}</pre> {false ? <a onClick={this.deleteQuery.bind(this, q)} className='icon trash pin-topright'></a> : ''} </div> </div>)} </div>; } }); module.exports = QueryList;
926ff341faaad92c85b3ca444813e7781709d519
test/tests/tomcat-hello-world/run.sh
test/tests/tomcat-hello-world/run.sh
set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" # since we have curl in the tomcat image, we'll use that clientImage="$1" serverImage="$1" # Create an instance of the container-under-test cid="$(docker run -d "$serverImage")" trap "docker rm -vf $cid > /dev/null" EXIT _request() { local method="$1" shift local url="${1#/}" shift docker run --rm --link "$cid":tomcat "$clientImage" \ curl -fs -X"$method" "$@" "http://tomcat:8080/$url" } # Make sure that Tomcat is listening . "$dir/../../retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]' # Check that we can request / [ -n "$(_request GET '/')" ] # Check that the example "Hello World" servlet works helloWorld="$(_request GET '/examples/servlets/servlet/HelloWorldExample')" [[ "$helloWorld" == *'Hello World!'* ]]
set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" # since we have curl in the tomcat image, we'll use that clientImage="$1" serverImage="$1" # Create an instance of the container-under-test cid="$(docker run -d "$serverImage")" trap "docker rm -vf $cid > /dev/null" EXIT _request() { local url="${1#/}" shift docker run --rm --link "$cid":tomcat "$clientImage" \ wget -q -O - "$@" "http://tomcat:8080/$url" } # Make sure that Tomcat is listening . "$dir/../../retry.sh" '_request / &> /dev/null' # Check that we can request / [ -n "$(_request '/')" ] # Check that the example "Hello World" servlet works helloWorld="$(_request '/examples/servlets/servlet/HelloWorldExample')" [[ "$helloWorld" == *'Hello World!'* ]]
Swap curl to wget for tomcat:alpine test
Swap curl to wget for tomcat:alpine test
Shell
apache-2.0
docker-solr/official-images,dinogun/official-images,infosiftr/stackbrew,31z4/official-images,jperrin/official-images,jperrin/official-images,docker-library/official-images,chorrell/official-images,docker-solr/official-images,pesho/docker-official-images,robfrank/official-images,thresheek/official-images,docker-flink/official-images,jperrin/official-images,chorrell/official-images,chorrell/official-images,docker-flink/official-images,davidl-zend/official-images,jperrin/official-images,docker-solr/official-images,docker-flink/official-images,31z4/official-images,dinogun/official-images,chorrell/official-images,emilevauge/official-images,docker-flink/official-images,dinogun/official-images,docker-library/official-images,docker-flink/official-images,neo-technology/docker-official-images,docker-solr/official-images,dinogun/official-images,dinogun/official-images,davidl-zend/official-images,nodejs-docker-bot/official-images,neo-technology/docker-official-images,mattrobenolt/official-images,neo-technology/docker-official-images,infosiftr/stackbrew,thresheek/official-images,emilevauge/official-images,nodejs-docker-bot/official-images,neo-technology/docker-official-images,31z4/official-images,jperrin/official-images,pesho/docker-official-images,robfrank/official-images,neo-technology/docker-official-images,infosiftr/stackbrew,davidl-zend/official-images,docker-library/official-images,nodejs-docker-bot/official-images,docker-library/official-images,dinogun/official-images,nodejs-docker-bot/official-images,31z4/official-images,mattrobenolt/official-images,robfrank/official-images,thresheek/official-images,thresheek/official-images,31z4/official-images,chorrell/official-images,thresheek/official-images,nodejs-docker-bot/official-images,nodejs-docker-bot/official-images,chorrell/official-images,docker-library/official-images,docker-flink/official-images,emilevauge/official-images,dinogun/official-images,pesho/docker-official-images,infosiftr/stackbrew,docker-library/official-images,mattrobenolt/official-images,docker-library/official-images,chorrell/official-images,nodejs-docker-bot/official-images,pesho/docker-official-images,docker-flink/official-images,emilevauge/official-images,davidl-zend/official-images,jperrin/official-images,pesho/docker-official-images,thresheek/official-images,robfrank/official-images,robfrank/official-images,docker-solr/official-images,dinogun/official-images,docker-flink/official-images,docker-solr/official-images,docker-flink/official-images,robfrank/official-images,infosiftr/stackbrew,emilevauge/official-images,neo-technology/docker-official-images,davidl-zend/official-images,chorrell/official-images,pesho/docker-official-images,31z4/official-images,robfrank/official-images,pesho/docker-official-images,dinogun/official-images,docker-solr/official-images,thresheek/official-images,chorrell/official-images,docker-flink/official-images,dinogun/official-images,31z4/official-images,mattrobenolt/official-images,infosiftr/stackbrew,thresheek/official-images,docker-library/official-images,31z4/official-images,31z4/official-images,nodejs-docker-bot/official-images,infosiftr/stackbrew,docker-library/official-images,emilevauge/official-images,neo-technology/docker-official-images,pesho/docker-official-images,mattrobenolt/official-images,infosiftr/stackbrew,robfrank/official-images,infosiftr/stackbrew,infosiftr/stackbrew,dinogun/official-images,thresheek/official-images,docker-solr/official-images,thresheek/official-images,infosiftr/stackbrew,nodejs-docker-bot/official-images,chorrell/official-images,davidl-zend/official-images,thresheek/official-images,davidl-zend/official-images,emilevauge/official-images,docker-solr/official-images,chorrell/official-images,pesho/docker-official-images,emilevauge/official-images,docker-library/official-images,robfrank/official-images,jperrin/official-images,jperrin/official-images,docker-library/official-images,docker-solr/official-images,davidl-zend/official-images,31z4/official-images,mattrobenolt/official-images,neo-technology/docker-official-images,docker-solr/official-images,neo-technology/docker-official-images,neo-technology/docker-official-images,31z4/official-images,neo-technology/docker-official-images,nodejs-docker-bot/official-images,nodejs-docker-bot/official-images,thresheek/official-images,jperrin/official-images,docker-solr/official-images,neo-technology/docker-official-images,jperrin/official-images,robfrank/official-images,thresheek/official-images,chorrell/official-images,docker-library/official-images,docker-flink/official-images,mattrobenolt/official-images,infosiftr/stackbrew,pesho/docker-official-images,neo-technology/docker-official-images,davidl-zend/official-images,docker-solr/official-images,davidl-zend/official-images,mattrobenolt/official-images,docker-flink/official-images,mattrobenolt/official-images,docker-library/official-images,jperrin/official-images,docker-solr/official-images,davidl-zend/official-images,robfrank/official-images,emilevauge/official-images,chorrell/official-images,docker-library/official-images,jperrin/official-images,docker-flink/official-images,mattrobenolt/official-images,robfrank/official-images,mattrobenolt/official-images,31z4/official-images,pesho/docker-official-images,31z4/official-images,31z4/official-images,dinogun/official-images,davidl-zend/official-images,dinogun/official-images,pesho/docker-official-images,mattrobenolt/official-images,infosiftr/stackbrew,emilevauge/official-images,nodejs-docker-bot/official-images,mattrobenolt/official-images,davidl-zend/official-images,thresheek/official-images,emilevauge/official-images,neo-technology/docker-official-images,infosiftr/stackbrew,robfrank/official-images,emilevauge/official-images,jperrin/official-images
shell
## Code Before: set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" # since we have curl in the tomcat image, we'll use that clientImage="$1" serverImage="$1" # Create an instance of the container-under-test cid="$(docker run -d "$serverImage")" trap "docker rm -vf $cid > /dev/null" EXIT _request() { local method="$1" shift local url="${1#/}" shift docker run --rm --link "$cid":tomcat "$clientImage" \ curl -fs -X"$method" "$@" "http://tomcat:8080/$url" } # Make sure that Tomcat is listening . "$dir/../../retry.sh" '[ "$(_request GET / --output /dev/null || echo $?)" != 7 ]' # Check that we can request / [ -n "$(_request GET '/')" ] # Check that the example "Hello World" servlet works helloWorld="$(_request GET '/examples/servlets/servlet/HelloWorldExample')" [[ "$helloWorld" == *'Hello World!'* ]] ## Instruction: Swap curl to wget for tomcat:alpine test ## Code After: set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" # since we have curl in the tomcat image, we'll use that clientImage="$1" serverImage="$1" # Create an instance of the container-under-test cid="$(docker run -d "$serverImage")" trap "docker rm -vf $cid > /dev/null" EXIT _request() { local url="${1#/}" shift docker run --rm --link "$cid":tomcat "$clientImage" \ wget -q -O - "$@" "http://tomcat:8080/$url" } # Make sure that Tomcat is listening . "$dir/../../retry.sh" '_request / &> /dev/null' # Check that we can request / [ -n "$(_request '/')" ] # Check that the example "Hello World" servlet works helloWorld="$(_request '/examples/servlets/servlet/HelloWorldExample')" [[ "$helloWorld" == *'Hello World!'* ]]
57c3daed4338e33fce5efade3d3afd23446a6988
html/index.html
html/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Coding Math!</title> <style type="text/css"> html, body { margin: 0px; height: 100%; box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } canvas { display: block; display: inline-block; } #sidebar { position: absolute; display: inline-block; width: 150px; background: #AAA; height: 100%; opacity: .9; } #sidebar > div { position: relative; margin: 5px 0px; padding: 5px; } #sidebar > div:hover { cursor: pointer; background: #EAEAEA; } .current { background: #CACACA; } </style> </head> <body> <div id="sidebar"></div> <canvas id="canvas"></canvas> <script src="bundle.js"></script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Coding Math!</title> <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'> <style type="text/css"> html, body { margin: 0px; height: 100%; box-sizing: border-box; font-family: 'Roboto Slab', serif; } *, *:before, *:after { box-sizing: inherit; } canvas { display: block; display: inline-block; } #sidebar { position: absolute; display: inline-block; width: 150px; background: #AAA; height: 100%; opacity: .9; } #sidebar > div { position: relative; margin: 5px 0px; padding: 5px; } #sidebar > div:hover { cursor: pointer; background: #EAEAEA; } .current { background: #CACACA; } </style> </head> <body> <div id="sidebar"></div> <canvas id="canvas"></canvas> <script src="bundle.js"></script> </body> </html>
Add roboto slab, cause it is the best font eva
Add roboto slab, cause it is the best font eva
HTML
mit
michaelghinrichs/coding-math,michaelghinrichs/coding-math
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Coding Math!</title> <style type="text/css"> html, body { margin: 0px; height: 100%; box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } canvas { display: block; display: inline-block; } #sidebar { position: absolute; display: inline-block; width: 150px; background: #AAA; height: 100%; opacity: .9; } #sidebar > div { position: relative; margin: 5px 0px; padding: 5px; } #sidebar > div:hover { cursor: pointer; background: #EAEAEA; } .current { background: #CACACA; } </style> </head> <body> <div id="sidebar"></div> <canvas id="canvas"></canvas> <script src="bundle.js"></script> </body> </html> ## Instruction: Add roboto slab, cause it is the best font eva ## Code After: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Coding Math!</title> <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'> <style type="text/css"> html, body { margin: 0px; height: 100%; box-sizing: border-box; font-family: 'Roboto Slab', serif; } *, *:before, *:after { box-sizing: inherit; } canvas { display: block; display: inline-block; } #sidebar { position: absolute; display: inline-block; width: 150px; background: #AAA; height: 100%; opacity: .9; } #sidebar > div { position: relative; margin: 5px 0px; padding: 5px; } #sidebar > div:hover { cursor: pointer; background: #EAEAEA; } .current { background: #CACACA; } </style> </head> <body> <div id="sidebar"></div> <canvas id="canvas"></canvas> <script src="bundle.js"></script> </body> </html>
421a2b9f324795e1b153d394786e126ab7abe43b
autocomplete/cache/cache.go
autocomplete/cache/cache.go
package cache import ( "encoding/json" "github.com/centurylinkcloud/clc-go-cli/state" "time" ) const ( LONG_AUTOCOMPLETE_REFRESH_TIMEOUT = 30 // seconds ) func Put(key string, opts []string) { data, err := json.Marshal(opts) if err == nil { state.WriteToFile(data, key, 0666) } } func Get(key string) ([]string, bool) { info, err := state.GetFileInfo(key) if err != nil { return nil, false } if time.Now().Sub(info.ModTime()) > time.Second*LONG_AUTOCOMPLETE_REFRESH_TIMEOUT { return nil, false } data, err := state.ReadFromFile(key) if err != nil { return nil, false } opts := []string{} err = json.Unmarshal(data, &opts) if err != nil { return nil, false } return opts, true }
package cache import ( "encoding/json" "github.com/centurylinkcloud/clc-go-cli/state" "time" ) var ( LONG_AUTOCOMPLETE_REFRESH_TIMEOUT = 30 // seconds ) func Put(key string, opts []string) { data, err := json.Marshal(opts) if err == nil { state.WriteToFile(data, key, 0666) } } func Get(key string) ([]string, bool) { info, err := state.GetFileInfo(key) if err != nil { return nil, false } if time.Now().Sub(info.ModTime()) > time.Second*time.Duration(LONG_AUTOCOMPLETE_REFRESH_TIMEOUT) { return nil, false } data, err := state.ReadFromFile(key) if err != nil { return nil, false } opts := []string{} err = json.Unmarshal(data, &opts) if err != nil { return nil, false } return opts, true }
Make a variable out of the refresh timeout for testing purposes
Make a variable out of the refresh timeout for testing purposes
Go
apache-2.0
CenturyLinkCloud/clc-go-cli,CenturyLinkCloud/clc-go-cli
go
## Code Before: package cache import ( "encoding/json" "github.com/centurylinkcloud/clc-go-cli/state" "time" ) const ( LONG_AUTOCOMPLETE_REFRESH_TIMEOUT = 30 // seconds ) func Put(key string, opts []string) { data, err := json.Marshal(opts) if err == nil { state.WriteToFile(data, key, 0666) } } func Get(key string) ([]string, bool) { info, err := state.GetFileInfo(key) if err != nil { return nil, false } if time.Now().Sub(info.ModTime()) > time.Second*LONG_AUTOCOMPLETE_REFRESH_TIMEOUT { return nil, false } data, err := state.ReadFromFile(key) if err != nil { return nil, false } opts := []string{} err = json.Unmarshal(data, &opts) if err != nil { return nil, false } return opts, true } ## Instruction: Make a variable out of the refresh timeout for testing purposes ## Code After: package cache import ( "encoding/json" "github.com/centurylinkcloud/clc-go-cli/state" "time" ) var ( LONG_AUTOCOMPLETE_REFRESH_TIMEOUT = 30 // seconds ) func Put(key string, opts []string) { data, err := json.Marshal(opts) if err == nil { state.WriteToFile(data, key, 0666) } } func Get(key string) ([]string, bool) { info, err := state.GetFileInfo(key) if err != nil { return nil, false } if time.Now().Sub(info.ModTime()) > time.Second*time.Duration(LONG_AUTOCOMPLETE_REFRESH_TIMEOUT) { return nil, false } data, err := state.ReadFromFile(key) if err != nil { return nil, false } opts := []string{} err = json.Unmarshal(data, &opts) if err != nil { return nil, false } return opts, true }
60c7f5fa6b57823f738ab6469d768bc302f260fc
lib/hamlbars/compiler_extension.rb
lib/hamlbars/compiler_extension.rb
module Hamlbars module CompilerExtension end end module Haml module Compiler class << self # Overload build_attributes in Haml::Compiler to allow # for the creation of handlebars bound attributes by # adding :bind hash to the tag attributes. def build_attributes_with_bindings (is_html, attr_wrapper, escape_attrs, attributes={}) attributes[:bind] = attributes.delete('bind') if attributes['bind'] bindings = if attributes[:bind].is_a? Hash " {{bindAttr#{build_attributes_without_bindings(is_html, '"', escape_attrs, attributes.delete(:bind))}}}" else '' end build_attributes_without_bindings(is_html, attr_wrapper, escape_attrs, attributes) + bindings end alias build_attributes_without_bindings build_attributes alias build_attributes build_attributes_with_bindings end end end
module Hamlbars module CompilerExtension end end module Haml module Compiler class << self # Overload build_attributes in Haml::Compiler to allow # for the creation of handlebars bound attributes by # adding :bind hash to the tag attributes. def build_attributes_with_handlebars_attributes (is_html, attr_wrapper, escape_attrs, attributes={}) attributes[:bind] = attributes.delete('bind') if attributes['bind'] attributes[:event] = attributes.delete('event') if attributes['event'] attributes[:events] = attributes.delete('events') if attributes['events'] attributes[:events] ||= [] attributes[:events] << attributes.delete(:event) if attributes[:event] handlebars_rendered_attributes = [] handlebars_rendered_attributes << handlebars_attributes('bindAttr', is_html, escape_attrs, attributes.delete(:bind)) if attributes[:bind] attributes[:events].each do |event| on = event.delete('on') || event.delete(:on) || 'click' handlebars_rendered_attributes << handlebars_attributes("action \"#{on}\"", is_html, escape_attrs, event) end attributes.delete(:events) (handlebars_rendered_attributes * '') + build_attributes_without_handlebars_attributes(is_html, attr_wrapper, escape_attrs, attributes) end alias build_attributes_without_handlebars_attributes build_attributes alias build_attributes build_attributes_with_handlebars_attributes private def handlebars_attributes(helper, is_html, escape_attrs, attributes) " {{#{helper}#{build_attributes_without_handlebars_attributes(is_html, '"', escape_attrs, attributes)}}}" end end end end
Add the event helper to tag attributes.
Add the event helper to tag attributes.
Ruby
mit
jamesotron/hamlbars
ruby
## Code Before: module Hamlbars module CompilerExtension end end module Haml module Compiler class << self # Overload build_attributes in Haml::Compiler to allow # for the creation of handlebars bound attributes by # adding :bind hash to the tag attributes. def build_attributes_with_bindings (is_html, attr_wrapper, escape_attrs, attributes={}) attributes[:bind] = attributes.delete('bind') if attributes['bind'] bindings = if attributes[:bind].is_a? Hash " {{bindAttr#{build_attributes_without_bindings(is_html, '"', escape_attrs, attributes.delete(:bind))}}}" else '' end build_attributes_without_bindings(is_html, attr_wrapper, escape_attrs, attributes) + bindings end alias build_attributes_without_bindings build_attributes alias build_attributes build_attributes_with_bindings end end end ## Instruction: Add the event helper to tag attributes. ## Code After: module Hamlbars module CompilerExtension end end module Haml module Compiler class << self # Overload build_attributes in Haml::Compiler to allow # for the creation of handlebars bound attributes by # adding :bind hash to the tag attributes. def build_attributes_with_handlebars_attributes (is_html, attr_wrapper, escape_attrs, attributes={}) attributes[:bind] = attributes.delete('bind') if attributes['bind'] attributes[:event] = attributes.delete('event') if attributes['event'] attributes[:events] = attributes.delete('events') if attributes['events'] attributes[:events] ||= [] attributes[:events] << attributes.delete(:event) if attributes[:event] handlebars_rendered_attributes = [] handlebars_rendered_attributes << handlebars_attributes('bindAttr', is_html, escape_attrs, attributes.delete(:bind)) if attributes[:bind] attributes[:events].each do |event| on = event.delete('on') || event.delete(:on) || 'click' handlebars_rendered_attributes << handlebars_attributes("action \"#{on}\"", is_html, escape_attrs, event) end attributes.delete(:events) (handlebars_rendered_attributes * '') + build_attributes_without_handlebars_attributes(is_html, attr_wrapper, escape_attrs, attributes) end alias build_attributes_without_handlebars_attributes build_attributes alias build_attributes build_attributes_with_handlebars_attributes private def handlebars_attributes(helper, is_html, escape_attrs, attributes) " {{#{helper}#{build_attributes_without_handlebars_attributes(is_html, '"', escape_attrs, attributes)}}}" end end end end
27aabe061199f1c1e04c6775fbd0dbf2f49fdbb6
README.md
README.md
A minimal microservices transport layer, based on Redis. [![Build Status](https://travis-ci.org/jmike/naomi.svg?branch=master)](https://travis-ci.org/jmike/naomi) [![npm version](https://badge.fury.io/js/naomi.svg)](https://badge.fury.io/js/naomi) #### Features * PubSub, Queue and RPC functionality; * Exposes promise and callback APIs. ## Installation ``` $ npm install redis-micro-transport ``` #### Requirements * Node.js v.4+ ## License MIT
A minimal microservices transport layer, based on Redis. [![Build Status](https://travis-ci.org/visionmobile/redis-micro-transport.svg?branch=master)](https://travis-ci.org/visionmobile/redis-micro-transport) [![npm version](https://badge.fury.io/js/redis-micro-transport.svg)](https://badge.fury.io/js/redis-micro-transport) #### Features * PubSub, Queue and RPC functionality; * Exposes promise and callback APIs. ## Installation ``` $ npm install redis-micro-transport ``` #### Requirements * Node.js v.4+ ## License MIT
Update travis + fury.io badges
Update travis + fury.io badges
Markdown
mit
visionmobile/redis-micro-transport
markdown
## Code Before: A minimal microservices transport layer, based on Redis. [![Build Status](https://travis-ci.org/jmike/naomi.svg?branch=master)](https://travis-ci.org/jmike/naomi) [![npm version](https://badge.fury.io/js/naomi.svg)](https://badge.fury.io/js/naomi) #### Features * PubSub, Queue and RPC functionality; * Exposes promise and callback APIs. ## Installation ``` $ npm install redis-micro-transport ``` #### Requirements * Node.js v.4+ ## License MIT ## Instruction: Update travis + fury.io badges ## Code After: A minimal microservices transport layer, based on Redis. [![Build Status](https://travis-ci.org/visionmobile/redis-micro-transport.svg?branch=master)](https://travis-ci.org/visionmobile/redis-micro-transport) [![npm version](https://badge.fury.io/js/redis-micro-transport.svg)](https://badge.fury.io/js/redis-micro-transport) #### Features * PubSub, Queue and RPC functionality; * Exposes promise and callback APIs. ## Installation ``` $ npm install redis-micro-transport ``` #### Requirements * Node.js v.4+ ## License MIT
00630f5b9dd4c15f356dbfd25daa02b49b64c626
sencha-workspace/pages/src/Common.js
sencha-workspace/pages/src/Common.js
/*jslint browser: true, undef: true *//*global Ext*/ Ext.define('Site.Common', { singleton: true, requires: [], constructor: function() { Ext.onReady(this.onDocReady, this); }, onDocReady: function() { var me = this, body = Ext.getBody(); } });
/*jslint browser: true, undef: true *//*global Ext*/ Ext.define('Site.Common', { singleton: true, requires: [ 'Ext.dom.Element' ], constructor: function() { Ext.onReady(this.onDocReady, this); }, onDocReady: function() { var me = this, body = Ext.getBody(); } });
Add Ext.dom.Element as common requirement
Add Ext.dom.Element as common requirement
JavaScript
mit
JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton
javascript
## Code Before: /*jslint browser: true, undef: true *//*global Ext*/ Ext.define('Site.Common', { singleton: true, requires: [], constructor: function() { Ext.onReady(this.onDocReady, this); }, onDocReady: function() { var me = this, body = Ext.getBody(); } }); ## Instruction: Add Ext.dom.Element as common requirement ## Code After: /*jslint browser: true, undef: true *//*global Ext*/ Ext.define('Site.Common', { singleton: true, requires: [ 'Ext.dom.Element' ], constructor: function() { Ext.onReady(this.onDocReady, this); }, onDocReady: function() { var me = this, body = Ext.getBody(); } });
0c35ee2a8a71bf776001ebebc186b236ab34e7d3
library/src/main/java/com/novoda/downloadmanager/NotificationDispatcher.java
library/src/main/java/com/novoda/downloadmanager/NotificationDispatcher.java
package com.novoda.downloadmanager; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DELETION; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DOWNLOADED; class NotificationDispatcher { private final Object waitForDownloadService; private final NotificationCreator<DownloadBatchStatus> notificationCreator; private DownloadService downloadService; NotificationDispatcher(Object waitForDownloadService, NotificationCreator<DownloadBatchStatus> notificationCreator) { this.waitForDownloadService = waitForDownloadService; this.notificationCreator = notificationCreator; } void updateNotification(DownloadBatchStatus downloadBatchStatus) { WaitForDownloadService.<Void>waitFor(downloadService, waitForDownloadService) .thenPerform(executeUpdateNotification(downloadBatchStatus)); } private WaitForDownloadService.ThenPerform.Action<Void> executeUpdateNotification(DownloadBatchStatus downloadBatchStatus) { return () -> { NotificationInformation notificationInformation = notificationCreator.createNotification(downloadBatchStatus); if (downloadBatchStatus.status() == DOWNLOADED || downloadBatchStatus.status() == DELETION) { downloadService.stackNotification(notificationInformation); } else { downloadService.updateNotification(notificationInformation); } return null; }; } void setDownloadService(DownloadService downloadService) { this.downloadService = downloadService; } }
package com.novoda.downloadmanager; import android.support.annotation.WorkerThread; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DELETION; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DOWNLOADED; class NotificationDispatcher { private final Object waitForDownloadService; private final NotificationCreator<DownloadBatchStatus> notificationCreator; private DownloadService downloadService; NotificationDispatcher(Object waitForDownloadService, NotificationCreator<DownloadBatchStatus> notificationCreator) { this.waitForDownloadService = waitForDownloadService; this.notificationCreator = notificationCreator; } @WorkerThread void updateNotification(DownloadBatchStatus downloadBatchStatus) { WaitForDownloadService.<Void>waitFor(downloadService, waitForDownloadService) .thenPerform(executeUpdateNotification(downloadBatchStatus)); } private WaitForDownloadService.ThenPerform.Action<Void> executeUpdateNotification(DownloadBatchStatus downloadBatchStatus) { return () -> { NotificationInformation notificationInformation = notificationCreator.createNotification(downloadBatchStatus); if (downloadBatchStatus.status() == DOWNLOADED || downloadBatchStatus.status() == DELETION) { downloadService.stackNotification(notificationInformation); } else { downloadService.updateNotification(notificationInformation); } return null; }; } void setDownloadService(DownloadService downloadService) { this.downloadService = downloadService; } }
Add worker thread annotation to update notification.
Add worker thread annotation to update notification.
Java
apache-2.0
novoda/download-manager
java
## Code Before: package com.novoda.downloadmanager; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DELETION; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DOWNLOADED; class NotificationDispatcher { private final Object waitForDownloadService; private final NotificationCreator<DownloadBatchStatus> notificationCreator; private DownloadService downloadService; NotificationDispatcher(Object waitForDownloadService, NotificationCreator<DownloadBatchStatus> notificationCreator) { this.waitForDownloadService = waitForDownloadService; this.notificationCreator = notificationCreator; } void updateNotification(DownloadBatchStatus downloadBatchStatus) { WaitForDownloadService.<Void>waitFor(downloadService, waitForDownloadService) .thenPerform(executeUpdateNotification(downloadBatchStatus)); } private WaitForDownloadService.ThenPerform.Action<Void> executeUpdateNotification(DownloadBatchStatus downloadBatchStatus) { return () -> { NotificationInformation notificationInformation = notificationCreator.createNotification(downloadBatchStatus); if (downloadBatchStatus.status() == DOWNLOADED || downloadBatchStatus.status() == DELETION) { downloadService.stackNotification(notificationInformation); } else { downloadService.updateNotification(notificationInformation); } return null; }; } void setDownloadService(DownloadService downloadService) { this.downloadService = downloadService; } } ## Instruction: Add worker thread annotation to update notification. ## Code After: package com.novoda.downloadmanager; import android.support.annotation.WorkerThread; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DELETION; import static com.novoda.downloadmanager.DownloadBatchStatus.Status.DOWNLOADED; class NotificationDispatcher { private final Object waitForDownloadService; private final NotificationCreator<DownloadBatchStatus> notificationCreator; private DownloadService downloadService; NotificationDispatcher(Object waitForDownloadService, NotificationCreator<DownloadBatchStatus> notificationCreator) { this.waitForDownloadService = waitForDownloadService; this.notificationCreator = notificationCreator; } @WorkerThread void updateNotification(DownloadBatchStatus downloadBatchStatus) { WaitForDownloadService.<Void>waitFor(downloadService, waitForDownloadService) .thenPerform(executeUpdateNotification(downloadBatchStatus)); } private WaitForDownloadService.ThenPerform.Action<Void> executeUpdateNotification(DownloadBatchStatus downloadBatchStatus) { return () -> { NotificationInformation notificationInformation = notificationCreator.createNotification(downloadBatchStatus); if (downloadBatchStatus.status() == DOWNLOADED || downloadBatchStatus.status() == DELETION) { downloadService.stackNotification(notificationInformation); } else { downloadService.updateNotification(notificationInformation); } return null; }; } void setDownloadService(DownloadService downloadService) { this.downloadService = downloadService; } }
6b4a8a3ba40213dd6635ef1d6ec91f4d54a6d556
.travis.yml
.travis.yml
language: ruby bundler_args: --without development rvm: - 2.0.0 - 1.9.3 - jruby - rbx-19mode gemfile: - gemfiles/Gemfile.rails-4-0 - gemfiles/Gemfile.rails-3-2 - gemfiles/Gemfile.rails-3-1 services: - rabbitmq deploy: provider: rubygems api_key: secure: gNudZK0JaRRweudmkpdkJjUMydItTSW5cXjpYdYCfahqd/cD0xPjxotr2TCHrJibfVauoT/PytbQWcP3jnOYytp6oS0up5Y+uKpGmbqVYx/rZvShWALszcBs71lUh/IZpDXNHc+yo/01HCn10/uQUFRtrjWgMwHtHxXb09xE4wQ= gem: acfs on: branch: master repo: jgraichen/acfs rvm: 2.0.0 gemfiles: gemfiles/Gemfile.rails-4-0
language: ruby bundler_args: --without development rvm: - 2.0.0 - 1.9.3 - jruby - rbx-19mode gemfile: - gemfiles/Gemfile.rails-4-0 - gemfiles/Gemfile.rails-3-2 - gemfiles/Gemfile.rails-3-1 services: - rabbitmq deploy: provider: rubygems api_key: secure: gNudZK0JaRRweudmkpdkJjUMydItTSW5cXjpYdYCfahqd/cD0xPjxotr2TCHrJibfVauoT/PytbQWcP3jnOYytp6oS0up5Y+uKpGmbqVYx/rZvShWALszcBs71lUh/IZpDXNHc+yo/01HCn10/uQUFRtrjWgMwHtHxXb09xE4wQ= gem: acfs on: branch: master repo: jgraichen/acfs rvm: 2.0.0
Remove deploy on gemfile option.
Remove deploy on gemfile option.
YAML
mit
johannesjasper/acfs,dahoo/acfs,jgraichen/acfs
yaml
## Code Before: language: ruby bundler_args: --without development rvm: - 2.0.0 - 1.9.3 - jruby - rbx-19mode gemfile: - gemfiles/Gemfile.rails-4-0 - gemfiles/Gemfile.rails-3-2 - gemfiles/Gemfile.rails-3-1 services: - rabbitmq deploy: provider: rubygems api_key: secure: gNudZK0JaRRweudmkpdkJjUMydItTSW5cXjpYdYCfahqd/cD0xPjxotr2TCHrJibfVauoT/PytbQWcP3jnOYytp6oS0up5Y+uKpGmbqVYx/rZvShWALszcBs71lUh/IZpDXNHc+yo/01HCn10/uQUFRtrjWgMwHtHxXb09xE4wQ= gem: acfs on: branch: master repo: jgraichen/acfs rvm: 2.0.0 gemfiles: gemfiles/Gemfile.rails-4-0 ## Instruction: Remove deploy on gemfile option. ## Code After: language: ruby bundler_args: --without development rvm: - 2.0.0 - 1.9.3 - jruby - rbx-19mode gemfile: - gemfiles/Gemfile.rails-4-0 - gemfiles/Gemfile.rails-3-2 - gemfiles/Gemfile.rails-3-1 services: - rabbitmq deploy: provider: rubygems api_key: secure: gNudZK0JaRRweudmkpdkJjUMydItTSW5cXjpYdYCfahqd/cD0xPjxotr2TCHrJibfVauoT/PytbQWcP3jnOYytp6oS0up5Y+uKpGmbqVYx/rZvShWALszcBs71lUh/IZpDXNHc+yo/01HCn10/uQUFRtrjWgMwHtHxXb09xE4wQ= gem: acfs on: branch: master repo: jgraichen/acfs rvm: 2.0.0
d4d517611104a8b42ccc79a310c510edd5f0eae5
numba/cuda/simulator/cudadrv/driver.py
numba/cuda/simulator/cudadrv/driver.py
''' Most of the driver API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. ''' def device_memset(dst, val, size, stream=0): dst.view('u1')[:size].fill(bytes([val])[0]) def host_to_device(dst, src, size, stream=0): dst.view('u1')[:size] = src.view('u1')[:size] def device_to_host(dst, src, size, stream=0): host_to_device(dst, src, size) def device_memory_size(obj): return obj.itemsize * obj.size def device_to_device(dst, src, size, stream=0): host_to_device(dst, src, size) class FakeDriver(object): def get_device_count(self): return 1 driver = FakeDriver() Linker = None class LinkerError(RuntimeError): pass class CudaAPIError(RuntimeError): pass def launch_kernel(*args, **kwargs): msg = 'Launching kernels directly is not supported in the simulator' raise RuntimeError(msg)
''' Most of the driver API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. ''' def device_memset(dst, val, size, stream=0): dst.view('u1')[:size].fill(bytes([val])[0]) def host_to_device(dst, src, size, stream=0): dst.view('u1')[:size] = src.view('u1')[:size] def device_to_host(dst, src, size, stream=0): host_to_device(dst, src, size) def device_memory_size(obj): return obj.itemsize * obj.size def device_to_device(dst, src, size, stream=0): host_to_device(dst, src, size) class FakeDriver(object): def get_device_count(self): return 1 driver = FakeDriver() Linker = None class LinkerError(RuntimeError): pass class CudaAPIError(RuntimeError): pass def launch_kernel(*args, **kwargs): msg = 'Launching kernels directly is not supported in the simulator' raise RuntimeError(msg) USE_NV_BINDING = False
Fix simulator by adding missing USE_NV_BINDING to simulator
CUDA: Fix simulator by adding missing USE_NV_BINDING to simulator
Python
bsd-2-clause
cpcloud/numba,numba/numba,seibert/numba,IntelLabs/numba,cpcloud/numba,cpcloud/numba,seibert/numba,IntelLabs/numba,numba/numba,IntelLabs/numba,numba/numba,cpcloud/numba,seibert/numba,numba/numba,seibert/numba,IntelLabs/numba,numba/numba,cpcloud/numba,IntelLabs/numba,seibert/numba
python
## Code Before: ''' Most of the driver API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. ''' def device_memset(dst, val, size, stream=0): dst.view('u1')[:size].fill(bytes([val])[0]) def host_to_device(dst, src, size, stream=0): dst.view('u1')[:size] = src.view('u1')[:size] def device_to_host(dst, src, size, stream=0): host_to_device(dst, src, size) def device_memory_size(obj): return obj.itemsize * obj.size def device_to_device(dst, src, size, stream=0): host_to_device(dst, src, size) class FakeDriver(object): def get_device_count(self): return 1 driver = FakeDriver() Linker = None class LinkerError(RuntimeError): pass class CudaAPIError(RuntimeError): pass def launch_kernel(*args, **kwargs): msg = 'Launching kernels directly is not supported in the simulator' raise RuntimeError(msg) ## Instruction: CUDA: Fix simulator by adding missing USE_NV_BINDING to simulator ## Code After: ''' Most of the driver API is unsupported in the simulator, but some stubs are provided to allow tests to import correctly. ''' def device_memset(dst, val, size, stream=0): dst.view('u1')[:size].fill(bytes([val])[0]) def host_to_device(dst, src, size, stream=0): dst.view('u1')[:size] = src.view('u1')[:size] def device_to_host(dst, src, size, stream=0): host_to_device(dst, src, size) def device_memory_size(obj): return obj.itemsize * obj.size def device_to_device(dst, src, size, stream=0): host_to_device(dst, src, size) class FakeDriver(object): def get_device_count(self): return 1 driver = FakeDriver() Linker = None class LinkerError(RuntimeError): pass class CudaAPIError(RuntimeError): pass def launch_kernel(*args, **kwargs): msg = 'Launching kernels directly is not supported in the simulator' raise RuntimeError(msg) USE_NV_BINDING = False
ef98d1cca01ff912876c3758278394d4952caa7c
job-sites.md
job-sites.md
[trampos.co](http://trampos.co/)
[trampos.co](http://trampos.co/) [contratado.me](http://devs.contratado.me/)
Add contratado.me to Jobs List
Add contratado.me to Jobs List
Markdown
mit
woliveiras/front-end-career,woliveiras/front-end-career
markdown
## Code Before: [trampos.co](http://trampos.co/) ## Instruction: Add contratado.me to Jobs List ## Code After: [trampos.co](http://trampos.co/) [contratado.me](http://devs.contratado.me/)
9e4efa66038496ac1ac754d044c0a18a2c0edcdd
README.md
README.md
A command-line toolkit for work on custom [WordPress](http://wordpress.org/) developments in an efficient way. > This project is still at early (pre-alpha) stage. > I'd love to hear from anyone who wish to contribute. Feel free to submit issues, feature requests and any suggestions you mind. PRs are welcome! :-) > This project forked form [WordPress CLI](https://github.com/thinkholic/wordpress-cli/) ## Prerequisites You must require to install and configure followings on your development workstation first; * Nodejs * PHP 5.4 or higher * MySQL ## Installation ``` npm install -g wp-artisan ``` ## Contribution Guide ### Setup the development environment You need to install and configure above `prerequisites` as listed. Then; ``` git clone [email protected]:kodeflex/wp-artisan.git cd wp-artisan npm link ``` ## License MIT
A command-line toolkit for work on custom [WordPress](http://wordpress.org/) developments in an efficient way. > This project is still at early (pre-alpha) stage. > I'd love to hear from anyone who wish to contribute. Feel free to submit issues, feature requests and any suggestions you mind. PRs are welcome! :-) > This project forked form [WordPress CLI](https://github.com/thinkholic/wordpress-cli/) ## Prerequisites You must require to install and configure followings on your development workstation first; * Nodejs * PHP 5.4 or higher * MySQL ## Contribution Guide ### Setup the development environment You need to install and configure above `prerequisites` as listed. Then; ``` git clone [email protected]:kodeflex/wp-artisan.git cd wp-artisan npm link ``` ## License MIT
Remove the Installation section temporarily
Remove the Installation section temporarily
Markdown
mit
kodeflex/wp-artisan
markdown
## Code Before: A command-line toolkit for work on custom [WordPress](http://wordpress.org/) developments in an efficient way. > This project is still at early (pre-alpha) stage. > I'd love to hear from anyone who wish to contribute. Feel free to submit issues, feature requests and any suggestions you mind. PRs are welcome! :-) > This project forked form [WordPress CLI](https://github.com/thinkholic/wordpress-cli/) ## Prerequisites You must require to install and configure followings on your development workstation first; * Nodejs * PHP 5.4 or higher * MySQL ## Installation ``` npm install -g wp-artisan ``` ## Contribution Guide ### Setup the development environment You need to install and configure above `prerequisites` as listed. Then; ``` git clone [email protected]:kodeflex/wp-artisan.git cd wp-artisan npm link ``` ## License MIT ## Instruction: Remove the Installation section temporarily ## Code After: A command-line toolkit for work on custom [WordPress](http://wordpress.org/) developments in an efficient way. > This project is still at early (pre-alpha) stage. > I'd love to hear from anyone who wish to contribute. Feel free to submit issues, feature requests and any suggestions you mind. PRs are welcome! :-) > This project forked form [WordPress CLI](https://github.com/thinkholic/wordpress-cli/) ## Prerequisites You must require to install and configure followings on your development workstation first; * Nodejs * PHP 5.4 or higher * MySQL ## Contribution Guide ### Setup the development environment You need to install and configure above `prerequisites` as listed. Then; ``` git clone [email protected]:kodeflex/wp-artisan.git cd wp-artisan npm link ``` ## License MIT
9ced61716167505875d3938ae01c08b61acc9392
randterrainpy/terrain.py
randterrainpy/terrain.py
"""This module is for the Terrain class, used for storing randomly generated terrain.""" class Terrain(object): """Container for a randomly generated area of terrain. Attributes: width (int): Width of generated terrain. length (int): Length of generated terrain. height_map (list): Map of heights of terrain. Values range from 0 to 1. """ def __init__(self, width, length): """Initializer for Terrain. Args: width (int): Width of terrain. length (int): Height of terrain. """ self.width = width self.length = length self.height_map = [[0 for _ in self.width]] * self.length def __getitem__(self, item): """Get an item at x-y coordinates. Args: item (tuple): 2-tuple of x and y coordinates. Returns: float: Height of terrain at coordinates, between 0 and 1. """ return self.height_map[item[1]][item[0]] def __setitem__(self, key, value): """Set the height of an item. Args: key (tuple): 2-tuple of x and y coordinates. value (float): New height of map at x and y coordinates, between 0 and 1. """ self.height_map[key[1]][key[0]] = value
"""This module is for the Terrain class, used for storing randomly generated terrain.""" class Terrain(object): """Container for a randomly generated area of terrain. Attributes: width (int): Width of generated terrain. length (int): Length of generated terrain. height_map (list): Map of heights of terrain. Values range from 0 to 1. """ def __init__(self, width, length): """Initializer for Terrain. Args: width (int): Width of terrain. length (int): Height of terrain. """ self.width = width self.length = length self.height_map = [[0 for _ in self.width]] * self.length def __getitem__(self, item): """Get an item at x-y coordinates. Args: item (tuple): 2-tuple of x and y coordinates. Returns: float: Height of terrain at coordinates, between 0 and 1. """ return self.height_map[item[1]][item[0]] def __setitem__(self, key, value): """Set the height of an item. Args: key (tuple): 2-tuple of x and y coordinates. value (float): New height of map at x and y coordinates, between 0 and 1. """ self.height_map[key[1]][key[0]] = value def __add__(self, other): """Add two terrains, height by height. Args: other (Terrain): Other terrain to add self to. Must have same dimensions as self. Returns: Terrain: Terrain of self and other added together. """ result = Terrain(self.width, self.length) for i in range(self.width): for j in range(self.length): result[i, j] = self[i, j] + other[i, j] return result
Add addition method to Terrain
Add addition method to Terrain
Python
mit
jackromo/RandTerrainPy
python
## Code Before: """This module is for the Terrain class, used for storing randomly generated terrain.""" class Terrain(object): """Container for a randomly generated area of terrain. Attributes: width (int): Width of generated terrain. length (int): Length of generated terrain. height_map (list): Map of heights of terrain. Values range from 0 to 1. """ def __init__(self, width, length): """Initializer for Terrain. Args: width (int): Width of terrain. length (int): Height of terrain. """ self.width = width self.length = length self.height_map = [[0 for _ in self.width]] * self.length def __getitem__(self, item): """Get an item at x-y coordinates. Args: item (tuple): 2-tuple of x and y coordinates. Returns: float: Height of terrain at coordinates, between 0 and 1. """ return self.height_map[item[1]][item[0]] def __setitem__(self, key, value): """Set the height of an item. Args: key (tuple): 2-tuple of x and y coordinates. value (float): New height of map at x and y coordinates, between 0 and 1. """ self.height_map[key[1]][key[0]] = value ## Instruction: Add addition method to Terrain ## Code After: """This module is for the Terrain class, used for storing randomly generated terrain.""" class Terrain(object): """Container for a randomly generated area of terrain. Attributes: width (int): Width of generated terrain. length (int): Length of generated terrain. height_map (list): Map of heights of terrain. Values range from 0 to 1. """ def __init__(self, width, length): """Initializer for Terrain. Args: width (int): Width of terrain. length (int): Height of terrain. """ self.width = width self.length = length self.height_map = [[0 for _ in self.width]] * self.length def __getitem__(self, item): """Get an item at x-y coordinates. Args: item (tuple): 2-tuple of x and y coordinates. Returns: float: Height of terrain at coordinates, between 0 and 1. """ return self.height_map[item[1]][item[0]] def __setitem__(self, key, value): """Set the height of an item. Args: key (tuple): 2-tuple of x and y coordinates. value (float): New height of map at x and y coordinates, between 0 and 1. """ self.height_map[key[1]][key[0]] = value def __add__(self, other): """Add two terrains, height by height. Args: other (Terrain): Other terrain to add self to. Must have same dimensions as self. Returns: Terrain: Terrain of self and other added together. """ result = Terrain(self.width, self.length) for i in range(self.width): for j in range(self.length): result[i, j] = self[i, j] + other[i, j] return result
aa21b9349ae7379b36be037e78940b5a27b357ca
.travis.yml
.travis.yml
language: php php: - '7.0' - '7.1' - hhvm - nightly install: composer install script: - vendor/bin/phpunit
language: php php: - '7.0' - '7.1' install: composer install script: - vendor/bin/phpunit
Remove HHVM and PHP nightly from Travis. The deprecation of each() in PHP 7.2 is a problem for PHPUnit at this stage.
Remove HHVM and PHP nightly from Travis. The deprecation of each() in PHP 7.2 is a problem for PHPUnit at this stage.
YAML
mit
martin-georgiev/social-post-bundle
yaml
## Code Before: language: php php: - '7.0' - '7.1' - hhvm - nightly install: composer install script: - vendor/bin/phpunit ## Instruction: Remove HHVM and PHP nightly from Travis. The deprecation of each() in PHP 7.2 is a problem for PHPUnit at this stage. ## Code After: language: php php: - '7.0' - '7.1' install: composer install script: - vendor/bin/phpunit
07646000428565f79c0ef2271e8ae8f9a9f2c314
.devcontainer/Dockerfile
.devcontainer/Dockerfile
FROM python:3.8 RUN groupadd -g 1000 app RUN useradd -u 1000 -g app -s /bin/sh -m app USER app ENV PATH="/home/app/.local/bin/:${PATH}"
FROM python:3.8 RUN groupadd -g 1000 app RUN useradd -u 1000 -g app -s /bin/sh -m app USER app ENV PATH="/home/app/.local/bin/:${PATH}" CMD ["/bin/bash"]
Set bash as default command
Set bash as default command
unknown
mit
ltowarek/budget-supervisor
unknown
## Code Before: FROM python:3.8 RUN groupadd -g 1000 app RUN useradd -u 1000 -g app -s /bin/sh -m app USER app ENV PATH="/home/app/.local/bin/:${PATH}" ## Instruction: Set bash as default command ## Code After: FROM python:3.8 RUN groupadd -g 1000 app RUN useradd -u 1000 -g app -s /bin/sh -m app USER app ENV PATH="/home/app/.local/bin/:${PATH}" CMD ["/bin/bash"]
891ca8ee117f462a1648e954b756f1d29a5f527c
tests/test_errors.py
tests/test_errors.py
"""Tests for errors.py""" import aiohttp def test_bad_status_line1(): err = aiohttp.BadStatusLine(b'') assert str(err) == "b''" def test_bad_status_line2(): err = aiohttp.BadStatusLine('Test') assert str(err) == 'Test'
"""Tests for errors.py""" import aiohttp def test_bad_status_line1(): err = aiohttp.BadStatusLine(b'') assert str(err) == "b''" def test_bad_status_line2(): err = aiohttp.BadStatusLine('Test') assert str(err) == 'Test' def test_fingerprint_mismatch(): err = aiohttp.FingerprintMismatch('exp', 'got', 'host', 8888) expected = '<FingerprintMismatch expected=exp got=got host=host port=8888>' assert expected == repr(err)
Add a test for FingerprintMismatch repr
Add a test for FingerprintMismatch repr
Python
apache-2.0
jettify/aiohttp,esaezgil/aiohttp,z2v/aiohttp,arthurdarcet/aiohttp,pfreixes/aiohttp,z2v/aiohttp,mind1master/aiohttp,KeepSafe/aiohttp,mind1master/aiohttp,juliatem/aiohttp,hellysmile/aiohttp,esaezgil/aiohttp,esaezgil/aiohttp,arthurdarcet/aiohttp,panda73111/aiohttp,pfreixes/aiohttp,z2v/aiohttp,alex-eri/aiohttp-1,singulared/aiohttp,moden-py/aiohttp,singulared/aiohttp,AraHaanOrg/aiohttp,KeepSafe/aiohttp,arthurdarcet/aiohttp,hellysmile/aiohttp,alex-eri/aiohttp-1,singulared/aiohttp,jettify/aiohttp,panda73111/aiohttp,alex-eri/aiohttp-1,moden-py/aiohttp,playpauseandstop/aiohttp,jettify/aiohttp,KeepSafe/aiohttp,rutsky/aiohttp,juliatem/aiohttp,AraHaanOrg/aiohttp,mind1master/aiohttp,rutsky/aiohttp,panda73111/aiohttp,Eyepea/aiohttp,moden-py/aiohttp,rutsky/aiohttp
python
## Code Before: """Tests for errors.py""" import aiohttp def test_bad_status_line1(): err = aiohttp.BadStatusLine(b'') assert str(err) == "b''" def test_bad_status_line2(): err = aiohttp.BadStatusLine('Test') assert str(err) == 'Test' ## Instruction: Add a test for FingerprintMismatch repr ## Code After: """Tests for errors.py""" import aiohttp def test_bad_status_line1(): err = aiohttp.BadStatusLine(b'') assert str(err) == "b''" def test_bad_status_line2(): err = aiohttp.BadStatusLine('Test') assert str(err) == 'Test' def test_fingerprint_mismatch(): err = aiohttp.FingerprintMismatch('exp', 'got', 'host', 8888) expected = '<FingerprintMismatch expected=exp got=got host=host port=8888>' assert expected == repr(err)
7449fa3cfd625754c4f82e2382b05f6c52251683
src/main/java/com/github/davidcarboni/thetrain/json/request/Manifest.java
src/main/java/com/github/davidcarboni/thetrain/json/request/Manifest.java
package com.github.davidcarboni.thetrain.json.request; import java.util.List; public class Manifest { public List<FileCopy> filesToCopy; }
package com.github.davidcarboni.thetrain.json.request; import java.util.List; public class Manifest { public List<FileCopy> filesToCopy; public List<String> urisToDelete; }
Add list of deletes to manifest.
Add list of deletes to manifest.
Java
mit
Carboni/the-train-destination,ONSdigital/The-Train,ONSdigital/The-Train,Carboni/The-Train,Carboni/The-Train,Carboni/the-train-destination
java
## Code Before: package com.github.davidcarboni.thetrain.json.request; import java.util.List; public class Manifest { public List<FileCopy> filesToCopy; } ## Instruction: Add list of deletes to manifest. ## Code After: package com.github.davidcarboni.thetrain.json.request; import java.util.List; public class Manifest { public List<FileCopy> filesToCopy; public List<String> urisToDelete; }
ac2c3285e99f48cf9b659c5f4ba2b7d0d3eeb88b
appveyor-docs.yml
appveyor-docs.yml
version: '{build}' image: Visual Studio 2022 branches: only: - master only_commits: files: - docfx/**/* build_script: - cmd: git checkout master - cmd: docfx\build-site.cmd environment: access_token: secure: E5yLQIoD1jEQiCI/I46b+DJx9vr7bSgprLOt9tC9OjJK7je3m5HC/QmX3PaxFBPm on_success: - git config --global credential.helper store - ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n" - git config --global user.email "[email protected]" - git config --global user.name "pauldendulk" - git add -A - git commit -a -m "Generating site" - git push
version: '{build}' image: Visual Studio 2022 branches: only: - master only_commits: files: - docfx/**/* install: - ps: Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'; - ps: ./dotnet-install.ps1 -Version 6.0.401 -InstallDir "dotnetcli" build_script: - cmd: git checkout master - cmd: docfx\build-site.cmd environment: access_token: secure: E5yLQIoD1jEQiCI/I46b+DJx9vr7bSgprLOt9tC9OjJK7je3m5HC/QmX3PaxFBPm on_success: - git config --global credential.helper store - ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n" - git config --global user.email "[email protected]" - git config --global user.name "pauldendulk" - git add -A - git commit -a -m "Generating site" - git push
Install .Net Sdk 6.0.401 on document generation
Install .Net Sdk 6.0.401 on document generation
YAML
mit
charlenni/Mapsui,charlenni/Mapsui
yaml
## Code Before: version: '{build}' image: Visual Studio 2022 branches: only: - master only_commits: files: - docfx/**/* build_script: - cmd: git checkout master - cmd: docfx\build-site.cmd environment: access_token: secure: E5yLQIoD1jEQiCI/I46b+DJx9vr7bSgprLOt9tC9OjJK7je3m5HC/QmX3PaxFBPm on_success: - git config --global credential.helper store - ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n" - git config --global user.email "[email protected]" - git config --global user.name "pauldendulk" - git add -A - git commit -a -m "Generating site" - git push ## Instruction: Install .Net Sdk 6.0.401 on document generation ## Code After: version: '{build}' image: Visual Studio 2022 branches: only: - master only_commits: files: - docfx/**/* install: - ps: Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'; - ps: ./dotnet-install.ps1 -Version 6.0.401 -InstallDir "dotnetcli" build_script: - cmd: git checkout master - cmd: docfx\build-site.cmd environment: access_token: secure: E5yLQIoD1jEQiCI/I46b+DJx9vr7bSgprLOt9tC9OjJK7je3m5HC/QmX3PaxFBPm on_success: - git config --global credential.helper store - ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n" - git config --global user.email "[email protected]" - git config --global user.name "pauldendulk" - git add -A - git commit -a -m "Generating site" - git push
fb65279d991ba615d0e1d7f9a362dbb2aa8fc8ec
README.md
README.md
Many triops are called "triops". One triops is called a triops. Tri-ops, lit. "three-eyes". Calling a single specimen a "triop" is like saying "three-eye", which sounds dumb. # Running ```bash $ virtualenv .env $ source .env/bin/activate (.env)$ ./setup.py develop (.env)$ autotriops-server & (.env)$ open http://127.0.0.1:5000 ```
[![Build Status](https://travis-ci.org/cnelsonsic/autotriops.png?branch=master)](https://travis-ci.org/cnelsonsic/optar) # Semantics Many triops are called "triops". One triops is called a triops. Tri-ops, lit. "three-eyes". Calling a single specimen a "triop" is like saying "three-eye", which sounds dumb. # Running ```bash $ virtualenv .env $ source .env/bin/activate (.env)$ ./setup.py develop (.env)$ autotriops-server & (.env)$ open http://127.0.0.1:5000 ```
Add the travis build button
Add the travis build button
Markdown
agpl-3.0
cnelsonsic/autotriops
markdown
## Code Before: Many triops are called "triops". One triops is called a triops. Tri-ops, lit. "three-eyes". Calling a single specimen a "triop" is like saying "three-eye", which sounds dumb. # Running ```bash $ virtualenv .env $ source .env/bin/activate (.env)$ ./setup.py develop (.env)$ autotriops-server & (.env)$ open http://127.0.0.1:5000 ``` ## Instruction: Add the travis build button ## Code After: [![Build Status](https://travis-ci.org/cnelsonsic/autotriops.png?branch=master)](https://travis-ci.org/cnelsonsic/optar) # Semantics Many triops are called "triops". One triops is called a triops. Tri-ops, lit. "three-eyes". Calling a single specimen a "triop" is like saying "three-eye", which sounds dumb. # Running ```bash $ virtualenv .env $ source .env/bin/activate (.env)$ ./setup.py develop (.env)$ autotriops-server & (.env)$ open http://127.0.0.1:5000 ```
5fc4baedf0bda93cb9f75e05e4e07abf0e24a9d5
Casks/github.rb
Casks/github.rb
class Github < Cask url 'https://central.github.com/mac/latest' homepage 'http://mac.github.com' version 'latest' no_checksum link 'GitHub.app' after_install do system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' end end
class Github < Cask url 'https://central.github.com/mac/latest' homepage 'http://mac.github.com' version 'latest' no_checksum link 'GitHub.app' binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github' after_install do system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' end end
Fix CLI tool installation in GitHub for Mac
Fix CLI tool installation in GitHub for Mac Symlinks the 'github' CLI binary that enables opening GitHub for Mac from the command line. As per the defaults for the application, the internal `github_cli` binary is symlinked simply as `github`. Note this intetionally does *not* also symlink the bundled versions. of `git` itself, as anyone using brewcask is going to want to be able to manage those normally via homebrew.`
Ruby
bsd-2-clause
ninjahoahong/homebrew-cask,Whoaa512/homebrew-cask,mikem/homebrew-cask,rickychilcott/homebrew-cask,doits/homebrew-cask,jiashuw/homebrew-cask,hackhandslabs/homebrew-cask,qbmiller/homebrew-cask,joschi/homebrew-cask,cliffcotino/homebrew-cask,timsutton/homebrew-cask,crmne/homebrew-cask,reelsense/homebrew-cask,joshka/homebrew-cask,sparrc/homebrew-cask,RogerThiede/homebrew-cask,helloIAmPau/homebrew-cask,vin047/homebrew-cask,elnappo/homebrew-cask,tyage/homebrew-cask,morganestes/homebrew-cask,tdsmith/homebrew-cask,Keloran/homebrew-cask,sysbot/homebrew-cask,royalwang/homebrew-cask,RickWong/homebrew-cask,jhowtan/homebrew-cask,cfillion/homebrew-cask,lukeadams/homebrew-cask,renaudguerin/homebrew-cask,paulombcosta/homebrew-cask,diogodamiani/homebrew-cask,ianyh/homebrew-cask,johnste/homebrew-cask,otzy007/homebrew-cask,larseggert/homebrew-cask,mingzhi22/homebrew-cask,mAAdhaTTah/homebrew-cask,zorosteven/homebrew-cask,JacopKane/homebrew-cask,ninjahoahong/homebrew-cask,BenjaminHCCarr/homebrew-cask,ebraminio/homebrew-cask,cfillion/homebrew-cask,rednoah/homebrew-cask,taherio/homebrew-cask,greg5green/homebrew-cask,vigosan/homebrew-cask,Labutin/homebrew-cask,hswong3i/homebrew-cask,wolflee/homebrew-cask,reitermarkus/homebrew-cask,shoichiaizawa/homebrew-cask,tedbundyjr/homebrew-cask,prime8/homebrew-cask,Amorymeltzer/homebrew-cask,devmynd/homebrew-cask,puffdad/homebrew-cask,flada-auxv/homebrew-cask,mattrobenolt/homebrew-cask,lukasbestle/homebrew-cask,kronicd/homebrew-cask,chrisfinazzo/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,petmoo/homebrew-cask,remko/homebrew-cask,jellyfishcoder/homebrew-cask,chuanxd/homebrew-cask,ericbn/homebrew-cask,boecko/homebrew-cask,farmerchris/homebrew-cask,MisumiRize/homebrew-cask,gurghet/homebrew-cask,kirikiriyamama/homebrew-cask,gyndav/homebrew-cask,pgr0ss/homebrew-cask,Gasol/homebrew-cask,hswong3i/homebrew-cask,aktau/homebrew-cask,mattfelsen/homebrew-cask,gustavoavellar/homebrew-cask,ericbn/homebrew-cask,victorpopkov/homebrew-cask,ftiff/homebrew-cask,tedski/homebrew-cask,katoquro/homebrew-cask,dictcp/homebrew-cask,LaurentFough/homebrew-cask,y00rb/homebrew-cask,kei-yamazaki/homebrew-cask,wickedsp1d3r/homebrew-cask,dspeckhard/homebrew-cask,hvisage/homebrew-cask,devmynd/homebrew-cask,xyb/homebrew-cask,wmorin/homebrew-cask,adriweb/homebrew-cask,sparrc/homebrew-cask,fwiesel/homebrew-cask,m3nu/homebrew-cask,tonyseek/homebrew-cask,tjnycum/homebrew-cask,0xadada/homebrew-cask,cprecioso/homebrew-cask,mokagio/homebrew-cask,syscrusher/homebrew-cask,Amorymeltzer/homebrew-cask,lumaxis/homebrew-cask,artdevjs/homebrew-cask,neil-ca-moore/homebrew-cask,KosherBacon/homebrew-cask,jpmat296/homebrew-cask,morsdyce/homebrew-cask,rhendric/homebrew-cask,jiashuw/homebrew-cask,MircoT/homebrew-cask,claui/homebrew-cask,n0ts/homebrew-cask,arranubels/homebrew-cask,tolbkni/homebrew-cask,markhuber/homebrew-cask,josa42/homebrew-cask,FredLackeyOfficial/homebrew-cask,FredLackeyOfficial/homebrew-cask,caskroom/homebrew-cask,Fedalto/homebrew-cask,onlynone/homebrew-cask,gilesdring/homebrew-cask,My2ndAngelic/homebrew-cask,vigosan/homebrew-cask,inz/homebrew-cask,jen20/homebrew-cask,shorshe/homebrew-cask,imgarylai/homebrew-cask,axodys/homebrew-cask,miguelfrde/homebrew-cask,leonmachadowilcox/homebrew-cask,nivanchikov/homebrew-cask,sebcode/homebrew-cask,gerrymiller/homebrew-cask,coneman/homebrew-cask,afdnlw/homebrew-cask,caskroom/homebrew-cask,afh/homebrew-cask,klane/homebrew-cask,sirodoht/homebrew-cask,spruceb/homebrew-cask,n8henrie/homebrew-cask,forevergenin/homebrew-cask,stephenwade/homebrew-cask,cclauss/homebrew-cask,pkq/homebrew-cask,joschi/homebrew-cask,helloIAmPau/homebrew-cask,y00rb/homebrew-cask,Ibuprofen/homebrew-cask,lauantai/homebrew-cask,bcomnes/homebrew-cask,christer155/homebrew-cask,hakamadare/homebrew-cask,ywfwj2008/homebrew-cask,nicholsn/homebrew-cask,xight/homebrew-cask,howie/homebrew-cask,jpodlech/homebrew-cask,kostasdizas/homebrew-cask,faun/homebrew-cask,Philosoft/homebrew-cask,yumitsu/homebrew-cask,kryhear/homebrew-cask,tarwich/homebrew-cask,samshadwell/homebrew-cask,mahori/homebrew-cask,faun/homebrew-cask,diguage/homebrew-cask,yuhki50/homebrew-cask,arronmabrey/homebrew-cask,jedahan/homebrew-cask,segiddins/homebrew-cask,hanxue/caskroom,MichaelPei/homebrew-cask,reelsense/homebrew-cask,farmerchris/homebrew-cask,janlugt/homebrew-cask,guylabs/homebrew-cask,franklouwers/homebrew-cask,giannitm/homebrew-cask,ayohrling/homebrew-cask,flada-auxv/homebrew-cask,mfpierre/homebrew-cask,hristozov/homebrew-cask,huanzhang/homebrew-cask,mjgardner/homebrew-cask,sosedoff/homebrew-cask,williamboman/homebrew-cask,nicolas-brousse/homebrew-cask,gmkey/homebrew-cask,shorshe/homebrew-cask,nickpellant/homebrew-cask,yurikoles/homebrew-cask,enriclluelles/homebrew-cask,fazo96/homebrew-cask,dvdoliveira/homebrew-cask,jawshooah/homebrew-cask,Dremora/homebrew-cask,danielbayley/homebrew-cask,djmonta/homebrew-cask,illusionfield/homebrew-cask,Whoaa512/homebrew-cask,hyuna917/homebrew-cask,fwiesel/homebrew-cask,nathanielvarona/homebrew-cask,barravi/homebrew-cask,paour/homebrew-cask,jconley/homebrew-cask,andrewdisley/homebrew-cask,joaocc/homebrew-cask,squid314/homebrew-cask,nickpellant/homebrew-cask,bkono/homebrew-cask,psibre/homebrew-cask,cedwardsmedia/homebrew-cask,lifepillar/homebrew-cask,carlmod/homebrew-cask,gabrielizaias/homebrew-cask,samdoran/homebrew-cask,a-x-/homebrew-cask,BahtiyarB/homebrew-cask,uetchy/homebrew-cask,atsuyim/homebrew-cask,hanxue/caskroom,joshka/homebrew-cask,otaran/homebrew-cask,kostasdizas/homebrew-cask,barravi/homebrew-cask,frapposelli/homebrew-cask,colindunn/homebrew-cask,andyli/homebrew-cask,JoelLarson/homebrew-cask,xcezx/homebrew-cask,sanchezm/homebrew-cask,yurrriq/homebrew-cask,6uclz1/homebrew-cask,markthetech/homebrew-cask,MircoT/homebrew-cask,feniix/homebrew-cask,phpwutz/homebrew-cask,cblecker/homebrew-cask,kpearson/homebrew-cask,djakarta-trap/homebrew-myCask,rcuza/homebrew-cask,nathancahill/homebrew-cask,malob/homebrew-cask,dwihn0r/homebrew-cask,okket/homebrew-cask,rubenerd/homebrew-cask,rogeriopradoj/homebrew-cask,catap/homebrew-cask,underyx/homebrew-cask,SentinelWarren/homebrew-cask,pacav69/homebrew-cask,crzrcn/homebrew-cask,renaudguerin/homebrew-cask,adelinofaria/homebrew-cask,pablote/homebrew-cask,tsparber/homebrew-cask,christophermanning/homebrew-cask,johnjelinek/homebrew-cask,malford/homebrew-cask,josa42/homebrew-cask,xight/homebrew-cask,mkozjak/homebrew-cask,renard/homebrew-cask,lieuwex/homebrew-cask,ohammersmith/homebrew-cask,dustinblackman/homebrew-cask,JoelLarson/homebrew-cask,iAmGhost/homebrew-cask,psibre/homebrew-cask,nightscape/homebrew-cask,supriyantomaftuh/homebrew-cask,Ephemera/homebrew-cask,lucasmezencio/homebrew-cask,wolflee/homebrew-cask,wuman/homebrew-cask,af/homebrew-cask,hakamadare/homebrew-cask,schneidmaster/homebrew-cask,yuhki50/homebrew-cask,mlocher/homebrew-cask,johan/homebrew-cask,syscrusher/homebrew-cask,FinalDes/homebrew-cask,optikfluffel/homebrew-cask,adrianchia/homebrew-cask,zerrot/homebrew-cask,wmorin/homebrew-cask,mlocher/homebrew-cask,leonmachadowilcox/homebrew-cask,jmeridth/homebrew-cask,neverfox/homebrew-cask,yurikoles/homebrew-cask,alebcay/homebrew-cask,jspahrsummers/homebrew-cask,zchee/homebrew-cask,wastrachan/homebrew-cask,githubutilities/homebrew-cask,jtriley/homebrew-cask,bric3/homebrew-cask,zmwangx/homebrew-cask,jeanregisser/homebrew-cask,exherb/homebrew-cask,hellosky806/homebrew-cask,deanmorin/homebrew-cask,13k/homebrew-cask,AdamCmiel/homebrew-cask,fanquake/homebrew-cask,Hywan/homebrew-cask,jpodlech/homebrew-cask,RickWong/homebrew-cask,kongslund/homebrew-cask,codeurge/homebrew-cask,corbt/homebrew-cask,BenjaminHCCarr/homebrew-cask,claui/homebrew-cask,fkrone/homebrew-cask,rkJun/homebrew-cask,moimikey/homebrew-cask,lauantai/homebrew-cask,donbobka/homebrew-cask,mattfelsen/homebrew-cask,wuman/homebrew-cask,wmorin/homebrew-cask,shishi/homebrew-cask,mjdescy/homebrew-cask,carlmod/homebrew-cask,seanorama/homebrew-cask,ywfwj2008/homebrew-cask,drostron/homebrew-cask,buo/homebrew-cask,lvicentesanchez/homebrew-cask,albertico/homebrew-cask,robertgzr/homebrew-cask,julionc/homebrew-cask,wastrachan/homebrew-cask,miccal/homebrew-cask,tedski/homebrew-cask,diguage/homebrew-cask,MoOx/homebrew-cask,mchlrmrz/homebrew-cask,ashishb/homebrew-cask,CameronGarrett/homebrew-cask,rogeriopradoj/homebrew-cask,m3nu/homebrew-cask,shishi/homebrew-cask,L2G/homebrew-cask,diogodamiani/homebrew-cask,vuquoctuan/homebrew-cask,phpwutz/homebrew-cask,djmonta/homebrew-cask,kevyau/homebrew-cask,opsdev-ws/homebrew-cask,sscotth/homebrew-cask,tsparber/homebrew-cask,LaurentFough/homebrew-cask,coeligena/homebrew-customized,garborg/homebrew-cask,wickles/homebrew-cask,bosr/homebrew-cask,BenjaminHCCarr/homebrew-cask,kryhear/homebrew-cask,michelegera/homebrew-cask,supriyantomaftuh/homebrew-cask,0rax/homebrew-cask,sysbot/homebrew-cask,dunn/homebrew-cask,scottsuch/homebrew-cask,dspeckhard/homebrew-cask,xiongchiamiov/homebrew-cask,thii/homebrew-cask,wayou/homebrew-cask,elyscape/homebrew-cask,tmoreira2020/homebrew,xalep/homebrew-cask,amatos/homebrew-cask,jaredsampson/homebrew-cask,alexg0/homebrew-cask,rcuza/homebrew-cask,buo/homebrew-cask,linc01n/homebrew-cask,troyxmccall/homebrew-cask,cobyism/homebrew-cask,morsdyce/homebrew-cask,mhubig/homebrew-cask,sgnh/homebrew-cask,ksylvan/homebrew-cask,bcomnes/homebrew-cask,rogeriopradoj/homebrew-cask,gregkare/homebrew-cask,aki77/homebrew-cask,amatos/homebrew-cask,ky0615/homebrew-cask-1,lukeadams/homebrew-cask,stigkj/homebrew-caskroom-cask,claui/homebrew-cask,jalaziz/homebrew-cask,xyb/homebrew-cask,yutarody/homebrew-cask,sjackman/homebrew-cask,ch3n2k/homebrew-cask,cblecker/homebrew-cask,lcasey001/homebrew-cask,bgandon/homebrew-cask,moimikey/homebrew-cask,moogar0880/homebrew-cask,boecko/homebrew-cask,lantrix/homebrew-cask,skatsuta/homebrew-cask,hovancik/homebrew-cask,dustinblackman/homebrew-cask,d/homebrew-cask,jen20/homebrew-cask,rajiv/homebrew-cask,forevergenin/homebrew-cask,moonboots/homebrew-cask,gyugyu/homebrew-cask,elseym/homebrew-cask,jacobdam/homebrew-cask,nathancahill/homebrew-cask,flaviocamilo/homebrew-cask,okket/homebrew-cask,cedwardsmedia/homebrew-cask,johndbritton/homebrew-cask,chino/homebrew-cask,AdamCmiel/homebrew-cask,nivanchikov/homebrew-cask,royalwang/homebrew-cask,ch3n2k/homebrew-cask,dlovitch/homebrew-cask,inta/homebrew-cask,Gasol/homebrew-cask,shonjir/homebrew-cask,epmatsw/homebrew-cask,dezon/homebrew-cask,nysthee/homebrew-cask,gwaldo/homebrew-cask,bric3/homebrew-cask,genewoo/homebrew-cask,ahbeng/homebrew-cask,csmith-palantir/homebrew-cask,ahvigil/homebrew-cask,Ngrd/homebrew-cask,deanmorin/homebrew-cask,bric3/homebrew-cask,lvicentesanchez/homebrew-cask,lolgear/homebrew-cask,xakraz/homebrew-cask,SamiHiltunen/homebrew-cask,adrianchia/homebrew-cask,skyyuan/homebrew-cask,Keloran/homebrew-cask,jeroenj/homebrew-cask,rickychilcott/homebrew-cask,koenrh/homebrew-cask,malob/homebrew-cask,gmkey/homebrew-cask,mgryszko/homebrew-cask,jhowtan/homebrew-cask,zhuzihhhh/homebrew-cask,miccal/homebrew-cask,lolgear/homebrew-cask,mishari/homebrew-cask,cprecioso/homebrew-cask,adriweb/homebrew-cask,nrlquaker/homebrew-cask,skatsuta/homebrew-cask,MichaelPei/homebrew-cask,morganestes/homebrew-cask,gyndav/homebrew-cask,jamesmlees/homebrew-cask,elseym/homebrew-cask,dictcp/homebrew-cask,tranc99/homebrew-cask,valepert/homebrew-cask,mishari/homebrew-cask,brianshumate/homebrew-cask,singingwolfboy/homebrew-cask,jayshao/homebrew-cask,sgnh/homebrew-cask,anbotero/homebrew-cask,tarwich/homebrew-cask,Hywan/homebrew-cask,blogabe/homebrew-cask,tjt263/homebrew-cask,neil-ca-moore/homebrew-cask,elyscape/homebrew-cask,ddm/homebrew-cask,sebcode/homebrew-cask,rednoah/homebrew-cask,kiliankoe/homebrew-cask,optikfluffel/homebrew-cask,AnastasiaSulyagina/homebrew-cask,kassi/homebrew-cask,gwaldo/homebrew-cask,jeroenseegers/homebrew-cask,cliffcotino/homebrew-cask,inz/homebrew-cask,wayou/homebrew-cask,ingorichter/homebrew-cask,Amorymeltzer/homebrew-cask,qbmiller/homebrew-cask,chrisfinazzo/homebrew-cask,AnastasiaSulyagina/homebrew-cask,muan/homebrew-cask,fkrone/homebrew-cask,wickles/homebrew-cask,onlynone/homebrew-cask,mathbunnyru/homebrew-cask,jamesmlees/homebrew-cask,miguelfrde/homebrew-cask,scribblemaniac/homebrew-cask,imgarylai/homebrew-cask,alebcay/homebrew-cask,alexg0/homebrew-cask,bchatard/homebrew-cask,colindean/homebrew-cask,aguynamedryan/homebrew-cask,codeurge/homebrew-cask,jangalinski/homebrew-cask,howie/homebrew-cask,mwilmer/homebrew-cask,cobyism/homebrew-cask,antogg/homebrew-cask,robertgzr/homebrew-cask,thii/homebrew-cask,chrisRidgers/homebrew-cask,andyshinn/homebrew-cask,MerelyAPseudonym/homebrew-cask,lucasmezencio/homebrew-cask,hovancik/homebrew-cask,dcondrey/homebrew-cask,johnste/homebrew-cask,lukasbestle/homebrew-cask,gyndav/homebrew-cask,flaviocamilo/homebrew-cask,nanoxd/homebrew-cask,englishm/homebrew-cask,m3nu/homebrew-cask,Cottser/homebrew-cask,stephenwade/homebrew-cask,gerrymiller/homebrew-cask,larseggert/homebrew-cask,kuno/homebrew-cask,tan9/homebrew-cask,otaran/homebrew-cask,kesara/homebrew-cask,winkelsdorf/homebrew-cask,julienlavergne/homebrew-cask,jbeagley52/homebrew-cask,fly19890211/homebrew-cask,3van/homebrew-cask,jgarber623/homebrew-cask,toonetown/homebrew-cask,seanzxx/homebrew-cask,norio-nomura/homebrew-cask,optikfluffel/homebrew-cask,imgarylai/homebrew-cask,robbiethegeek/homebrew-cask,christophermanning/homebrew-cask,gord1anknot/homebrew-cask,ebraminio/homebrew-cask,gguillotte/homebrew-cask,jonathanwiesel/homebrew-cask,JosephViolago/homebrew-cask,guerrero/homebrew-cask,mikem/homebrew-cask,mwek/homebrew-cask,kkdd/homebrew-cask,fly19890211/homebrew-cask,scribblemaniac/homebrew-cask,perfide/homebrew-cask,pkq/homebrew-cask,RJHsiao/homebrew-cask,Ephemera/homebrew-cask,ctrevino/homebrew-cask,Bombenleger/homebrew-cask,JosephViolago/homebrew-cask,moonboots/homebrew-cask,lalyos/homebrew-cask,miku/homebrew-cask,kongslund/homebrew-cask,mariusbutuc/homebrew-cask,zchee/homebrew-cask,sjackman/homebrew-cask,reitermarkus/homebrew-cask,joshka/homebrew-cask,wesen/homebrew-cask,stonehippo/homebrew-cask,esebastian/homebrew-cask,johan/homebrew-cask,afdnlw/homebrew-cask,gord1anknot/homebrew-cask,mwilmer/homebrew-cask,alloy/homebrew-cask,delphinus35/homebrew-cask,SamiHiltunen/homebrew-cask,timsutton/homebrew-cask,casidiablo/homebrew-cask,afh/homebrew-cask,xtian/homebrew-cask,asbachb/homebrew-cask,nelsonjchen/homebrew-cask,nathanielvarona/homebrew-cask,bdhess/homebrew-cask,scw/homebrew-cask,Ibuprofen/homebrew-cask,asins/homebrew-cask,singingwolfboy/homebrew-cask,nanoxd/homebrew-cask,andyshinn/homebrew-cask,jppelteret/homebrew-cask,JacopKane/homebrew-cask,andrewdisley/homebrew-cask,epardee/homebrew-cask,riyad/homebrew-cask,adelinofaria/homebrew-cask,opsdev-ws/homebrew-cask,iamso/homebrew-cask,ericbn/homebrew-cask,zeusdeux/homebrew-cask,xakraz/homebrew-cask,yutarody/homebrew-cask,askl56/homebrew-cask,kkdd/homebrew-cask,markhuber/homebrew-cask,chino/homebrew-cask,retrography/homebrew-cask,mwean/homebrew-cask,FranklinChen/homebrew-cask,cblecker/homebrew-cask,nathansgreen/homebrew-cask,kevyau/homebrew-cask,slnovak/homebrew-cask,a1russell/homebrew-cask,retbrown/homebrew-cask,feigaochn/homebrew-cask,Dremora/homebrew-cask,djakarta-trap/homebrew-myCask,kesara/homebrew-cask,MerelyAPseudonym/homebrew-cask,gregkare/homebrew-cask,retrography/homebrew-cask,skyyuan/homebrew-cask,puffdad/homebrew-cask,remko/homebrew-cask,kesara/homebrew-cask,tedbundyjr/homebrew-cask,vmrob/homebrew-cask,mauricerkelly/homebrew-cask,hackhandslabs/homebrew-cask,kingthorin/homebrew-cask,akiomik/homebrew-cask,mrmachine/homebrew-cask,zerrot/homebrew-cask,n8henrie/homebrew-cask,axodys/homebrew-cask,sohtsuka/homebrew-cask,chrisfinazzo/homebrew-cask,mathbunnyru/homebrew-cask,kingthorin/homebrew-cask,daften/homebrew-cask,renard/homebrew-cask,aktau/homebrew-cask,casidiablo/homebrew-cask,theoriginalgri/homebrew-cask,Bombenleger/homebrew-cask,donbobka/homebrew-cask,koenrh/homebrew-cask,mkozjak/homebrew-cask,samnung/homebrew-cask,scottsuch/homebrew-cask,jalaziz/homebrew-cask,asins/homebrew-cask,sanyer/homebrew-cask,boydj/homebrew-cask,mariusbutuc/homebrew-cask,schneidmaster/homebrew-cask,fazo96/homebrew-cask,bendoerr/homebrew-cask,bchatard/homebrew-cask,n0ts/homebrew-cask,troyxmccall/homebrew-cask,winkelsdorf/homebrew-cask,xtian/homebrew-cask,shoichiaizawa/homebrew-cask,kassi/homebrew-cask,bsiddiqui/homebrew-cask,winkelsdorf/homebrew-cask,athrunsun/homebrew-cask,cobyism/homebrew-cask,JacopKane/homebrew-cask,githubutilities/homebrew-cask,julionc/homebrew-cask,josa42/homebrew-cask,gabrielizaias/homebrew-cask,pgr0ss/homebrew-cask,astorije/homebrew-cask,vitorgalvao/homebrew-cask,BahtiyarB/homebrew-cask,gustavoavellar/homebrew-cask,aguynamedryan/homebrew-cask,mingzhi22/homebrew-cask,kTitan/homebrew-cask,underyx/homebrew-cask,mjgardner/homebrew-cask,maxnordlund/homebrew-cask,coneman/homebrew-cask,Nitecon/homebrew-cask,nshemonsky/homebrew-cask,ahundt/homebrew-cask,stevehedrick/homebrew-cask,j13k/homebrew-cask,MatzFan/homebrew-cask,valepert/homebrew-cask,dwihn0r/homebrew-cask,sscotth/homebrew-cask,stevenmaguire/homebrew-cask,j13k/homebrew-cask,Labutin/homebrew-cask,wesen/homebrew-cask,kirikiriyamama/homebrew-cask,taherio/homebrew-cask,cohei/homebrew-cask,wizonesolutions/homebrew-cask,decrement/homebrew-cask,jrwesolo/homebrew-cask,usami-k/homebrew-cask,yurrriq/homebrew-cask,dlovitch/homebrew-cask,bkono/homebrew-cask,moogar0880/homebrew-cask,kievechua/homebrew-cask,guylabs/homebrew-cask,gibsjose/homebrew-cask,giannitm/homebrew-cask,Ketouem/homebrew-cask,paour/homebrew-cask,bgandon/homebrew-cask,miccal/homebrew-cask,deizel/homebrew-cask,greg5green/homebrew-cask,mattrobenolt/homebrew-cask,lumaxis/homebrew-cask,fanquake/homebrew-cask,andersonba/homebrew-cask,iamso/homebrew-cask,jangalinski/homebrew-cask,thehunmonkgroup/homebrew-cask,joaocc/homebrew-cask,bsiddiqui/homebrew-cask,MicTech/homebrew-cask,mwean/homebrew-cask,andrewschleifer/homebrew-cask,albertico/homebrew-cask,garborg/homebrew-cask,ponychicken/homebrew-customcask,elnappo/homebrew-cask,nathansgreen/homebrew-cask,dlackty/homebrew-cask,dieterdemeyer/homebrew-cask,spruceb/homebrew-cask,MoOx/homebrew-cask,guerrero/homebrew-cask,tjt263/homebrew-cask,riyad/homebrew-cask,zeusdeux/homebrew-cask,santoshsahoo/homebrew-cask,gyugyu/homebrew-cask,kiliankoe/homebrew-cask,0rax/homebrew-cask,yurikoles/homebrew-cask,xyb/homebrew-cask,mauricerkelly/homebrew-cask,malford/homebrew-cask,blainesch/homebrew-cask,joaoponceleao/homebrew-cask,lalyos/homebrew-cask,ajbw/homebrew-cask,rhendric/homebrew-cask,katoquro/homebrew-cask,delphinus35/homebrew-cask,kei-yamazaki/homebrew-cask,retbrown/homebrew-cask,ayohrling/homebrew-cask,danielbayley/homebrew-cask,mindriot101/homebrew-cask,mazehall/homebrew-cask,hanxue/caskroom,franklouwers/homebrew-cask,unasuke/homebrew-cask,tonyseek/homebrew-cask,crmne/homebrew-cask,blogabe/homebrew-cask,deizel/homebrew-cask,linc01n/homebrew-cask,hvisage/homebrew-cask,gerrypower/homebrew-cask,squid314/homebrew-cask,seanorama/homebrew-cask,ky0615/homebrew-cask-1,dlackty/homebrew-cask,mattrobenolt/homebrew-cask,mahori/homebrew-cask,nicolas-brousse/homebrew-cask,a1russell/homebrew-cask,xalep/homebrew-cask,danielgomezrico/homebrew-cask,6uclz1/homebrew-cask,cclauss/homebrew-cask,chadcatlett/caskroom-homebrew-cask,wKovacs64/homebrew-cask,tranc99/homebrew-cask,vuquoctuan/homebrew-cask,csmith-palantir/homebrew-cask,corbt/homebrew-cask,Saklad5/homebrew-cask,jeroenj/homebrew-cask,lcasey001/homebrew-cask,samnung/homebrew-cask,maxnordlund/homebrew-cask,janlugt/homebrew-cask,boydj/homebrew-cask,shanonvl/homebrew-cask,pkq/homebrew-cask,Cottser/homebrew-cask,iAmGhost/homebrew-cask,daften/homebrew-cask,bosr/homebrew-cask,catap/homebrew-cask,MatzFan/homebrew-cask,lieuwex/homebrew-cask,jspahrsummers/homebrew-cask,paulombcosta/homebrew-cask,patresi/homebrew-cask,hyuna917/homebrew-cask,Ketouem/homebrew-cask,tjnycum/homebrew-cask,patresi/homebrew-cask,leipert/homebrew-cask,jrwesolo/homebrew-cask,toonetown/homebrew-cask,doits/homebrew-cask,jawshooah/homebrew-cask,tangestani/homebrew-cask,ahbeng/homebrew-cask,ldong/homebrew-cask,paulbreslin/homebrew-cask,My2ndAngelic/homebrew-cask,michelegera/homebrew-cask,blogabe/homebrew-cask,shanonvl/homebrew-cask,lantrix/homebrew-cask,tolbkni/homebrew-cask,kievechua/homebrew-cask,slack4u/homebrew-cask,mAAdhaTTah/homebrew-cask,fharbe/homebrew-cask,paour/homebrew-cask,muan/homebrew-cask,petmoo/homebrew-cask,johntrandall/homebrew-cask,nathanielvarona/homebrew-cask,prime8/homebrew-cask,kuno/homebrew-cask,mchlrmrz/homebrew-cask,haha1903/homebrew-cask,JosephViolago/homebrew-cask,deiga/homebrew-cask,napaxton/homebrew-cask,jaredsampson/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,jasmas/homebrew-cask,santoshsahoo/homebrew-cask,jalaziz/homebrew-cask,shoichiaizawa/homebrew-cask,kingthorin/homebrew-cask,kolomiichenko/homebrew-cask,kteru/homebrew-cask,feniix/homebrew-cask,mathbunnyru/homebrew-cask,reitermarkus/homebrew-cask,jbeagley52/homebrew-cask,dictcp/homebrew-cask,perfide/homebrew-cask,enriclluelles/homebrew-cask,mwek/homebrew-cask,sanchezm/homebrew-cask,tmoreira2020/homebrew,andersonba/homebrew-cask,xiongchiamiov/homebrew-cask,alebcay/homebrew-cask,mhubig/homebrew-cask,akiomik/homebrew-cask,jayshao/homebrew-cask,ashishb/homebrew-cask,julionc/homebrew-cask,Ephemera/homebrew-cask,tangestani/homebrew-cask,adrianchia/homebrew-cask,englishm/homebrew-cask,wizonesolutions/homebrew-cask,Nitecon/homebrew-cask,mahori/homebrew-cask,13k/homebrew-cask,johnjelinek/homebrew-cask,goxberry/homebrew-cask,mgryszko/homebrew-cask,KosherBacon/homebrew-cask,pacav69/homebrew-cask,mokagio/homebrew-cask,coeligena/homebrew-customized,jacobbednarz/homebrew-cask,AndreTheHunter/homebrew-cask,kamilboratynski/homebrew-cask,gguillotte/homebrew-cask,asbachb/homebrew-cask,ksato9700/homebrew-cask,rajiv/homebrew-cask,freeslugs/homebrew-cask,uetchy/homebrew-cask,huanzhang/homebrew-cask,alloy/homebrew-cask,pablote/homebrew-cask,uetchy/homebrew-cask,jellyfishcoder/homebrew-cask,paulbreslin/homebrew-cask,christer155/homebrew-cask,MicTech/homebrew-cask,nicholsn/homebrew-cask,vmrob/homebrew-cask,moimikey/homebrew-cask,klane/homebrew-cask,haha1903/homebrew-cask,seanzxx/homebrew-cask,sosedoff/homebrew-cask,JikkuJose/homebrew-cask,vitorgalvao/homebrew-cask,slnovak/homebrew-cask,nshemonsky/homebrew-cask,colindean/homebrew-cask,scribblemaniac/homebrew-cask,gerrypower/homebrew-cask,freeslugs/homebrew-cask,d/homebrew-cask,qnm/homebrew-cask,kteru/homebrew-cask,jeanregisser/homebrew-cask,brianshumate/homebrew-cask,aki77/homebrew-cask,dcondrey/homebrew-cask,usami-k/homebrew-cask,decrement/homebrew-cask,anbotero/homebrew-cask,hellosky806/homebrew-cask,mjgardner/homebrew-cask,Fedalto/homebrew-cask,yumitsu/homebrew-cask,julienlavergne/homebrew-cask,pinut/homebrew-cask,malob/homebrew-cask,tangestani/homebrew-cask,ingorichter/homebrew-cask,jppelteret/homebrew-cask,samshadwell/homebrew-cask,jacobdam/homebrew-cask,rubenerd/homebrew-cask,zorosteven/homebrew-cask,inta/homebrew-cask,dezon/homebrew-cask,epardee/homebrew-cask,stephenwade/homebrew-cask,jacobbednarz/homebrew-cask,deiga/homebrew-cask,af/homebrew-cask,sachin21/homebrew-cask,segiddins/homebrew-cask,tan9/homebrew-cask,stonehippo/homebrew-cask,sachin21/homebrew-cask,williamboman/homebrew-cask,esebastian/homebrew-cask,deiga/homebrew-cask,colindunn/homebrew-cask,bendoerr/homebrew-cask,atsuyim/homebrew-cask,stevenmaguire/homebrew-cask,chuanxd/homebrew-cask,astorije/homebrew-cask,cohei/homebrew-cask,mchlrmrz/homebrew-cask,goxberry/homebrew-cask,drostron/homebrew-cask,Saklad5/homebrew-cask,ldong/homebrew-cask,victorpopkov/homebrew-cask,nrlquaker/homebrew-cask,jmeridth/homebrew-cask,napaxton/homebrew-cask,zmwangx/homebrew-cask,bcaceiro/homebrew-cask,epmatsw/homebrew-cask,sanyer/homebrew-cask,ddm/homebrew-cask,rajiv/homebrew-cask,stonehippo/homebrew-cask,timsutton/homebrew-cask,frapposelli/homebrew-cask,ahundt/homebrew-cask,SentinelWarren/homebrew-cask,mazehall/homebrew-cask,dwkns/homebrew-cask,ftiff/homebrew-cask,joschi/homebrew-cask,nelsonjchen/homebrew-cask,ponychicken/homebrew-customcask,johntrandall/homebrew-cask,fharbe/homebrew-cask,zhuzihhhh/homebrew-cask,wickedsp1d3r/homebrew-cask,mfpierre/homebrew-cask,CameronGarrett/homebrew-cask,blainesch/homebrew-cask,bdhess/homebrew-cask,a1russell/homebrew-cask,ahvigil/homebrew-cask,thomanq/homebrew-cask,sirodoht/homebrew-cask,arranubels/homebrew-cask,lifepillar/homebrew-cask,norio-nomura/homebrew-cask,nightscape/homebrew-cask,bcaceiro/homebrew-cask,chrisRidgers/homebrew-cask,shonjir/homebrew-cask,Philosoft/homebrew-cask,dunn/homebrew-cask,xcezx/homebrew-cask,ctrevino/homebrew-cask,crzrcn/homebrew-cask,ohammersmith/homebrew-cask,pinut/homebrew-cask,RogerThiede/homebrew-cask,esebastian/homebrew-cask,gibsjose/homebrew-cask,mrmachine/homebrew-cask,dieterdemeyer/homebrew-cask,jtriley/homebrew-cask,sscotth/homebrew-cask,singingwolfboy/homebrew-cask,mindriot101/homebrew-cask,kolomiichenko/homebrew-cask,coeligena/homebrew-customized,shonjir/homebrew-cask,wKovacs64/homebrew-cask,RJHsiao/homebrew-cask,FranklinChen/homebrew-cask,markthetech/homebrew-cask,gurghet/homebrew-cask,a-x-/homebrew-cask,MisumiRize/homebrew-cask,chadcatlett/caskroom-homebrew-cask,andrewschleifer/homebrew-cask,ksylvan/homebrew-cask,mjdescy/homebrew-cask,FinalDes/homebrew-cask,danielgomezrico/homebrew-cask,stigkj/homebrew-caskroom-cask,neverfox/homebrew-cask,thomanq/homebrew-cask,vin047/homebrew-cask,AndreTheHunter/homebrew-cask,sanyer/homebrew-cask,dwkns/homebrew-cask,JikkuJose/homebrew-cask,nrlquaker/homebrew-cask,antogg/homebrew-cask,askl56/homebrew-cask,slack4u/homebrew-cask,illusionfield/homebrew-cask,robbiethegeek/homebrew-cask,jedahan/homebrew-cask,hristozov/homebrew-cask,gilesdring/homebrew-cask,ptb/homebrew-cask,jconley/homebrew-cask,nysthee/homebrew-cask,xight/homebrew-cask,neverfox/homebrew-cask,sohtsuka/homebrew-cask,jpmat296/homebrew-cask,kpearson/homebrew-cask,ptb/homebrew-cask,andyli/homebrew-cask,tyage/homebrew-cask,tdsmith/homebrew-cask,dvdoliveira/homebrew-cask,theoriginalgri/homebrew-cask,kTitan/homebrew-cask,danielbayley/homebrew-cask,0xadada/homebrew-cask,athrunsun/homebrew-cask,genewoo/homebrew-cask,kronicd/homebrew-cask,scottsuch/homebrew-cask,ianyh/homebrew-cask,otzy007/homebrew-cask,leipert/homebrew-cask,jasmas/homebrew-cask,exherb/homebrew-cask,qnm/homebrew-cask,ksato9700/homebrew-cask,kamilboratynski/homebrew-cask,arronmabrey/homebrew-cask,jeroenseegers/homebrew-cask,alexg0/homebrew-cask,jgarber623/homebrew-cask,andrewdisley/homebrew-cask,jonathanwiesel/homebrew-cask,feigaochn/homebrew-cask,joaoponceleao/homebrew-cask,miku/homebrew-cask,samdoran/homebrew-cask,thehunmonkgroup/homebrew-cask,unasuke/homebrew-cask,L2G/homebrew-cask,3van/homebrew-cask,rkJun/homebrew-cask,stevehedrick/homebrew-cask,jgarber623/homebrew-cask,yutarody/homebrew-cask,artdevjs/homebrew-cask,johndbritton/homebrew-cask,ajbw/homebrew-cask,Ngrd/homebrew-cask,scw/homebrew-cask,antogg/homebrew-cask,tjnycum/homebrew-cask
ruby
## Code Before: class Github < Cask url 'https://central.github.com/mac/latest' homepage 'http://mac.github.com' version 'latest' no_checksum link 'GitHub.app' after_install do system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' end end ## Instruction: Fix CLI tool installation in GitHub for Mac Symlinks the 'github' CLI binary that enables opening GitHub for Mac from the command line. As per the defaults for the application, the internal `github_cli` binary is symlinked simply as `github`. Note this intetionally does *not* also symlink the bundled versions. of `git` itself, as anyone using brewcask is going to want to be able to manage those normally via homebrew.` ## Code After: class Github < Cask url 'https://central.github.com/mac/latest' homepage 'http://mac.github.com' version 'latest' no_checksum link 'GitHub.app' binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github' after_install do system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' end end
e6d941adc272e921fddf5d3b635c4abafa106dc1
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: docker: - image: circleci/golang:1.8 working_directory: /go/src/github.com/cxmate/cxmate steps: - checkout - run: go test $(go list ./... | grep -v /vendor/) - deploy: name: Github Release command: | go get github.com/mitchellh/gox go get github.com/tcnksm/ghr gox -ldflags "-X main.Version $BUILD_VERSION -X main.BuildDate $BUILD_DATE" -output "dist/cxmate.{{.OS}}.{{.Arch}}" ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
version: 2 jobs: build: docker: - image: circleci/golang:1.8 working_directory: /go/src/github.com/cxmate/cxmate steps: - checkout - run: go test $(go list ./... | grep -v /vendor/) - deploy: name: Github Release command: | go get github.com/mitchellh/gox go get github.com/tcnksm/ghr gox -output "dist/cxmate.{{.OS}}.{{.Arch}}" ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
Remove build flags in gox
Remove build flags in gox
YAML
mit
cxmate/cxmate,cxmate/cxmate
yaml
## Code Before: version: 2 jobs: build: docker: - image: circleci/golang:1.8 working_directory: /go/src/github.com/cxmate/cxmate steps: - checkout - run: go test $(go list ./... | grep -v /vendor/) - deploy: name: Github Release command: | go get github.com/mitchellh/gox go get github.com/tcnksm/ghr gox -ldflags "-X main.Version $BUILD_VERSION -X main.BuildDate $BUILD_DATE" -output "dist/cxmate.{{.OS}}.{{.Arch}}" ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/ ## Instruction: Remove build flags in gox ## Code After: version: 2 jobs: build: docker: - image: circleci/golang:1.8 working_directory: /go/src/github.com/cxmate/cxmate steps: - checkout - run: go test $(go list ./... | grep -v /vendor/) - deploy: name: Github Release command: | go get github.com/mitchellh/gox go get github.com/tcnksm/ghr gox -output "dist/cxmate.{{.OS}}.{{.Arch}}" ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
add2f6fd96bdef1e1f0faaebdc88af812d2e52e9
CLTool/src/clunix.cpp
CLTool/src/clunix.cpp
int main(int argc, char **argv) { if(argc != 2) { fprintf(stderr, "Usage: %s <imagefile>\n", argv[0]); exit(1); } ImageFile file (argv[1]); SCompressionSettings settings; CompressedImage *ci = CompressImage(file, settings); // Cleanup delete ci; return 0; }
void PrintUsage() { fprintf(stderr, "Usage: tc [-s|-t <num>] <imagefile>\n"); } int main(int argc, char **argv) { int fileArg = 1; int quality = 50; int numThreads = 1; bool bUseSIMD = false; bool knowArg = false; do { knowArg = false; if(strcmp(argv[fileArg], "-s") == 0) { fileArg++; bUseSIMD = true; knowArg = true; } if(strcmp(argv[fileArg], "-t") == 0) { fileArg++; if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) { PrintUsage(); exit(1); } fileArg++; knowArg = true; } if(strcmp(argv[fileArg], "-q") == 0) { fileArg++; if(fileArg == argc || (quality = atoi(argv[fileArg])) < 1) { PrintUsage(); exit(1); } fileArg++; knowArg = true; } } while(knowArg); if(fileArg == argc) { PrintUsage(); exit(1); } ImageFile file (argv[fileArg]); SCompressionSettings settings; settings.bUseSIMD = bUseSIMD; settings.iNumThreads = numThreads; CompressedImage *ci = CompressImage(file, settings); // Cleanup delete ci; return 0; }
Add some more flag support to unix command line tool...
Add some more flag support to unix command line tool...
C++
apache-2.0
GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC,GammaUNC/FasTC
c++
## Code Before: int main(int argc, char **argv) { if(argc != 2) { fprintf(stderr, "Usage: %s <imagefile>\n", argv[0]); exit(1); } ImageFile file (argv[1]); SCompressionSettings settings; CompressedImage *ci = CompressImage(file, settings); // Cleanup delete ci; return 0; } ## Instruction: Add some more flag support to unix command line tool... ## Code After: void PrintUsage() { fprintf(stderr, "Usage: tc [-s|-t <num>] <imagefile>\n"); } int main(int argc, char **argv) { int fileArg = 1; int quality = 50; int numThreads = 1; bool bUseSIMD = false; bool knowArg = false; do { knowArg = false; if(strcmp(argv[fileArg], "-s") == 0) { fileArg++; bUseSIMD = true; knowArg = true; } if(strcmp(argv[fileArg], "-t") == 0) { fileArg++; if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) { PrintUsage(); exit(1); } fileArg++; knowArg = true; } if(strcmp(argv[fileArg], "-q") == 0) { fileArg++; if(fileArg == argc || (quality = atoi(argv[fileArg])) < 1) { PrintUsage(); exit(1); } fileArg++; knowArg = true; } } while(knowArg); if(fileArg == argc) { PrintUsage(); exit(1); } ImageFile file (argv[fileArg]); SCompressionSettings settings; settings.bUseSIMD = bUseSIMD; settings.iNumThreads = numThreads; CompressedImage *ci = CompressImage(file, settings); // Cleanup delete ci; return 0; }
a6f085e16febadfc5fb4107f8ce89b12bf1af25e
index.html
index.html
<!DOCTYPE html> <head> </head> <body> </body> </html>
<!DOCTYPE html> <head> <!-- REQUIRED META TAGS --> <title>The Planets</title> <meta charset="utf-8"><!-- html5 version of http-equiv="Content-Type"... --> <meta name="description" content="View the planets of the solar sytem in virtual reality and 360 degrees."> <meta name="keywords" content="Planets, Solar System, The Planets, Earth, Virtual Reality"> <!-- <link rel="author" href="https://plus.google.com/{{googlePlusId}}" /> --> <link rel="canonical" href="http://www.rilke.us/the-planets" /> <meta name="viewport" content="width=device-width" /> <!-- FACEBOOK META TAGS --> <meta property="og:url" content="http://www.rilke.us/the-planets"> <meta property="og:image" content="{{imageUrl}}"> <meta property="og:description" content="View the planets of the solar sytem in virtual reality and 360 degrees."> <meta property="og:title" content="The Planets"> <meta property="og:site_name" content="rilke.us"> <meta property="og:see_also" content="http://www.rilke.us/"> <!-- STYLES --> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900'> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/css/tether.min.css'> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/index.css"> </head> <body> </body> </html>
Add meta tags to head
Add meta tags to head
HTML
mit
as95/the-planets,as95/the-planets
html
## Code Before: <!DOCTYPE html> <head> </head> <body> </body> </html> ## Instruction: Add meta tags to head ## Code After: <!DOCTYPE html> <head> <!-- REQUIRED META TAGS --> <title>The Planets</title> <meta charset="utf-8"><!-- html5 version of http-equiv="Content-Type"... --> <meta name="description" content="View the planets of the solar sytem in virtual reality and 360 degrees."> <meta name="keywords" content="Planets, Solar System, The Planets, Earth, Virtual Reality"> <!-- <link rel="author" href="https://plus.google.com/{{googlePlusId}}" /> --> <link rel="canonical" href="http://www.rilke.us/the-planets" /> <meta name="viewport" content="width=device-width" /> <!-- FACEBOOK META TAGS --> <meta property="og:url" content="http://www.rilke.us/the-planets"> <meta property="og:image" content="{{imageUrl}}"> <meta property="og:description" content="View the planets of the solar sytem in virtual reality and 360 degrees."> <meta property="og:title" content="The Planets"> <meta property="og:site_name" content="rilke.us"> <meta property="og:see_also" content="http://www.rilke.us/"> <!-- STYLES --> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900'> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/css/tether.min.css'> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/index.css"> </head> <body> </body> </html>
f1a872a5937ddc6f211bff05dbf1acc396add4d1
spec/version_spec.rb
spec/version_spec.rb
require 'spec_helper' describe 'Launchy::VERSION' do it "should have a #.#.# format" do Launchy::VERSION.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_a.each do |n| n.to_i.must_be :>=, 0 end end end
require 'spec_helper' describe 'Launchy::VERSION' do it "should have a #.#.# format" do Launchy::VERSION.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_s.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_a.each do |n| n.to_i.must_be :>=, 0 end end end
Add test coverage for Version.
Add test coverage for Version.
Ruby
isc
kapil-utexas/launchy,wstephenson/launchy,mecampbellsoup/launchy,copiousfreetime/launchy
ruby
## Code Before: require 'spec_helper' describe 'Launchy::VERSION' do it "should have a #.#.# format" do Launchy::VERSION.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_a.each do |n| n.to_i.must_be :>=, 0 end end end ## Instruction: Add test coverage for Version. ## Code After: require 'spec_helper' describe 'Launchy::VERSION' do it "should have a #.#.# format" do Launchy::VERSION.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_s.must_match( /\d+\.\d+\.\d+/ ) Launchy::Version.to_a.each do |n| n.to_i.must_be :>=, 0 end end end
eaf96be49a0c4d9e9952252fb580226f68c96450
package.json
package.json
{ "name": "wstunnel", "version": "1.2.1", "description": "tcp tunnel over websocket", "main": "./lib/wst.js", "scripts": { "test": "nodeunit test/test.js", "testssh": "nodeunit test/testssh.js", "decaffeinate" : "decaffeinate --keep-commonjs --prefer-const **/*.coffee" }, "repository": "https://github.com/mhzed/wstunnel", "author": { "url": "http://mhzed.com", "email": "[email protected]" }, "homepage": "https://github.com/mhzed/wstunnel", "keywords": [ "websocket", "tunnel" ], "license": "MIT", "engines": { "node": "~0.10.21" }, "dependencies": { "lawg": "1.0.3", "machine-uuid": "1.0.10", "node-uuid": "1.4.1", "optimist": "0.3.5", "phuture": "1.0.2", "underscore": "1.4.4", "websocket": "1.0.8" }, "devDependencies": { "source-map-support": "0.1.2" }, "bin": { "wstunnel": "./bin/wstt.js" } }
{ "name": "wstunnel", "version": "1.2.2", "description": "tunnel over websocket", "main": "./lib/wst.js", "scripts": { "test": "nodeunit test/test.js", "testssh": "nodeunit test/testssh.js", "decaffeinate" : "decaffeinate --keep-commonjs --prefer-const **/*.coffee" }, "repository": "https://github.com/mhzed/wstunnel", "author": { "url": "http://mhzed.com", "email": "[email protected]" }, "homepage": "https://github.com/mhzed/wstunnel", "keywords": [ "websocket", "tunnel" ], "license": "MIT", "engines": { "node": "*" }, "dependencies": { "lawg": "1.0.3", "machine-uuid": "1.0.10", "node-uuid": "1.4.1", "optimist": "0.3.5", "phuture": "1.0.2", "underscore": "1.4.4", "websocket": "1.0.8" }, "devDependencies": { "source-map-support": "0.1.2" }, "bin": { "wstunnel": "./bin/wstt.js" } }
Remove node engine version restriction
Remove node engine version restriction
JSON
mit
mhzed/wstunnel,takuya-o/wstunnel
json
## Code Before: { "name": "wstunnel", "version": "1.2.1", "description": "tcp tunnel over websocket", "main": "./lib/wst.js", "scripts": { "test": "nodeunit test/test.js", "testssh": "nodeunit test/testssh.js", "decaffeinate" : "decaffeinate --keep-commonjs --prefer-const **/*.coffee" }, "repository": "https://github.com/mhzed/wstunnel", "author": { "url": "http://mhzed.com", "email": "[email protected]" }, "homepage": "https://github.com/mhzed/wstunnel", "keywords": [ "websocket", "tunnel" ], "license": "MIT", "engines": { "node": "~0.10.21" }, "dependencies": { "lawg": "1.0.3", "machine-uuid": "1.0.10", "node-uuid": "1.4.1", "optimist": "0.3.5", "phuture": "1.0.2", "underscore": "1.4.4", "websocket": "1.0.8" }, "devDependencies": { "source-map-support": "0.1.2" }, "bin": { "wstunnel": "./bin/wstt.js" } } ## Instruction: Remove node engine version restriction ## Code After: { "name": "wstunnel", "version": "1.2.2", "description": "tunnel over websocket", "main": "./lib/wst.js", "scripts": { "test": "nodeunit test/test.js", "testssh": "nodeunit test/testssh.js", "decaffeinate" : "decaffeinate --keep-commonjs --prefer-const **/*.coffee" }, "repository": "https://github.com/mhzed/wstunnel", "author": { "url": "http://mhzed.com", "email": "[email protected]" }, "homepage": "https://github.com/mhzed/wstunnel", "keywords": [ "websocket", "tunnel" ], "license": "MIT", "engines": { "node": "*" }, "dependencies": { "lawg": "1.0.3", "machine-uuid": "1.0.10", "node-uuid": "1.4.1", "optimist": "0.3.5", "phuture": "1.0.2", "underscore": "1.4.4", "websocket": "1.0.8" }, "devDependencies": { "source-map-support": "0.1.2" }, "bin": { "wstunnel": "./bin/wstt.js" } }
d554a4b56416cd7b114882d125dfa81b0ebd8d69
docs/requirements.rtd.txt
docs/requirements.rtd.txt
advancedhttpserver>=1.2.0 alembic>=0.8.5 boltons>=16.1.1 dnspython>=1.12.0 geoip2>=2.2.0 geojson>=1.3.2 icalendar>=3.9.2 ipaddress>=1.0.16 Jinja2>=2.8 markupsafe>=0.23 msgpack-python>=0.4.7 paramiko>=1.16.0 pyotp>=2.0.1 python-dateutil>=2.5.1 python-pam>=1.8.2 pytz>=2016.1 PyYAML>=3.11 requests>=2.9.1 six>=1.10.0 smoke-zephyr>=1.0.2 SQLAlchemy>=1.0.12 termcolor>=1.1.0 tzlocal>=1.2.2 XlsxWriter>=0.8.4 # additional sphinx-specific requirements docutils>=0.12 sphinx>=1.4.1 sphinxcontrib-domaintools>=0.1 sphinxcontrib-httpdomain>=1.4.0
advancedhttpserver>=1.2.0 alembic>=0.8.5 boltons>=16.1.1 dnspython>=1.12.0 geoip2>=2.2.0 geojson>=1.3.2 icalendar>=3.9.2 ipaddress>=1.0.16 Jinja2>=2.8 markupsafe>=0.23 msgpack-python>=0.4.7 paramiko>=1.16.0 pluginbase>=0.3 pyotp>=2.0.1 python-dateutil>=2.5.1 python-pam>=1.8.2 pytz>=2016.1 PyYAML>=3.11 requests>=2.9.1 six>=1.10.0 smoke-zephyr>=1.0.2 SQLAlchemy>=1.0.12 termcolor>=1.1.0 tzlocal>=1.2.2 XlsxWriter>=0.8.4 # additional sphinx-specific requirements docutils>=0.12 sphinx>=1.4.1 sphinxcontrib-domaintools>=0.1 sphinxcontrib-httpdomain>=1.4.0
Add pluginbase to the RTD requirements file
Add pluginbase to the RTD requirements file
Text
bsd-3-clause
securestate/king-phisher,hdemeyer/king-phisher,zeroSteiner/king-phisher,wolfthefallen/king-phisher,securestate/king-phisher,securestate/king-phisher,zeroSteiner/king-phisher,zeroSteiner/king-phisher,zeroSteiner/king-phisher,wolfthefallen/king-phisher,securestate/king-phisher,guitarmanj/king-phisher,securestate/king-phisher,wolfthefallen/king-phisher,hdemeyer/king-phisher,zeroSteiner/king-phisher,hdemeyer/king-phisher,guitarmanj/king-phisher,guitarmanj/king-phisher,guitarmanj/king-phisher,wolfthefallen/king-phisher,hdemeyer/king-phisher,wolfthefallen/king-phisher
text
## Code Before: advancedhttpserver>=1.2.0 alembic>=0.8.5 boltons>=16.1.1 dnspython>=1.12.0 geoip2>=2.2.0 geojson>=1.3.2 icalendar>=3.9.2 ipaddress>=1.0.16 Jinja2>=2.8 markupsafe>=0.23 msgpack-python>=0.4.7 paramiko>=1.16.0 pyotp>=2.0.1 python-dateutil>=2.5.1 python-pam>=1.8.2 pytz>=2016.1 PyYAML>=3.11 requests>=2.9.1 six>=1.10.0 smoke-zephyr>=1.0.2 SQLAlchemy>=1.0.12 termcolor>=1.1.0 tzlocal>=1.2.2 XlsxWriter>=0.8.4 # additional sphinx-specific requirements docutils>=0.12 sphinx>=1.4.1 sphinxcontrib-domaintools>=0.1 sphinxcontrib-httpdomain>=1.4.0 ## Instruction: Add pluginbase to the RTD requirements file ## Code After: advancedhttpserver>=1.2.0 alembic>=0.8.5 boltons>=16.1.1 dnspython>=1.12.0 geoip2>=2.2.0 geojson>=1.3.2 icalendar>=3.9.2 ipaddress>=1.0.16 Jinja2>=2.8 markupsafe>=0.23 msgpack-python>=0.4.7 paramiko>=1.16.0 pluginbase>=0.3 pyotp>=2.0.1 python-dateutil>=2.5.1 python-pam>=1.8.2 pytz>=2016.1 PyYAML>=3.11 requests>=2.9.1 six>=1.10.0 smoke-zephyr>=1.0.2 SQLAlchemy>=1.0.12 termcolor>=1.1.0 tzlocal>=1.2.2 XlsxWriter>=0.8.4 # additional sphinx-specific requirements docutils>=0.12 sphinx>=1.4.1 sphinxcontrib-domaintools>=0.1 sphinxcontrib-httpdomain>=1.4.0
686d82dc92be619255669c99ad2d67eb3f8850b0
src/math/p_sinh.c
src/math/p_sinh.c
/* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z; p_exp_f32(&z, &exp_z, 1); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @return None * */ void p_sinh_f32(const float *a, float *c, int n) { int i; for (i = 0; i < n; i++) { c[i] = _p_sinh(a[i]); } }
/* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z = _p_exp(z); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @return None * */ void p_sinh_f32(const float *a, float *c, int n) { int i; for (i = 0; i < n; i++) { c[i] = _p_sinh(a[i]); } }
Use the inline exponential function.
math:sinh: Use the inline exponential function. Signed-off-by: Mansour Moufid <[email protected]>
C
apache-2.0
debug-de-su-ka/pal,mateunho/pal,Adamszk/pal3,olajep/pal,Adamszk/pal3,eliteraspberries/pal,aolofsson/pal,8l/pal,parallella/pal,eliteraspberries/pal,8l/pal,aolofsson/pal,aolofsson/pal,8l/pal,Adamszk/pal3,parallella/pal,aolofsson/pal,Adamszk/pal3,mateunho/pal,olajep/pal,olajep/pal,debug-de-su-ka/pal,olajep/pal,debug-de-su-ka/pal,eliteraspberries/pal,debug-de-su-ka/pal,parallella/pal,eliteraspberries/pal,eliteraspberries/pal,mateunho/pal,parallella/pal,8l/pal,mateunho/pal,parallella/pal,debug-de-su-ka/pal,mateunho/pal
c
## Code Before: /* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z; p_exp_f32(&z, &exp_z, 1); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @return None * */ void p_sinh_f32(const float *a, float *c, int n) { int i; for (i = 0; i < n; i++) { c[i] = _p_sinh(a[i]); } } ## Instruction: math:sinh: Use the inline exponential function. Signed-off-by: Mansour Moufid <[email protected]> ## Code After: /* * sinh z = (exp z - exp(-z)) / 2 */ static inline float _p_sinh(const float z) { float exp_z = _p_exp(z); return 0.5f * (exp_z - 1.f / exp_z); } /** * * Calculates the hyperbolic sine of the vector 'a'. Angles are specified * in radians. * * @param a Pointer to input vector * * @param c Pointer to output vector * * @param n Size of 'a' and 'c' vector. * * @return None * */ void p_sinh_f32(const float *a, float *c, int n) { int i; for (i = 0; i < n; i++) { c[i] = _p_sinh(a[i]); } }
51f9644c76bfcde0072fe24848f85d30487e1b27
package.json
package.json
{ "name": "interspan-server", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build":"node build-client.ts", "start": "node ./dist/index.js", "client": "node start-client.ts" }, "engines": { "node": ">=4.3.2" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.17.1", "ejs": "^2.5.6", "express": "^4.15.2", "method-override": "^2.3.8", "morgan": "^1.8.1", "mysql": "^2.13.0" }, "devDependencies": { "@types/express": "^4.0.35", "@types/mysql": "0.0.32", "@types/node": "^7.0.16", "core-js": "^2.4.1", "typescript": "^2.3.2" } }
{ "name": "interspan-server", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build":"node build-client.ts && tsc src/index --outDir dist --lib es2015", "start": "node ./dist/index.js", "client": "node start-client.ts" }, "engines": { "node": ">=4.3.2" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.17.1", "ejs": "^2.5.6", "express": "^4.15.2", "method-override": "^2.3.8", "morgan": "^1.8.1", "mysql": "^2.13.0" }, "devDependencies": { "@types/express": "^4.0.35", "@types/mysql": "0.0.32", "@types/node": "^7.0.16", "core-js": "^2.4.1", "typescript": "^2.3.2" } }
Write script to built server code from command shell
Write script to built server code from command shell
JSON
mit
TYLANDER/interspan,TYLANDER/interspan
json
## Code Before: { "name": "interspan-server", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build":"node build-client.ts", "start": "node ./dist/index.js", "client": "node start-client.ts" }, "engines": { "node": ">=4.3.2" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.17.1", "ejs": "^2.5.6", "express": "^4.15.2", "method-override": "^2.3.8", "morgan": "^1.8.1", "mysql": "^2.13.0" }, "devDependencies": { "@types/express": "^4.0.35", "@types/mysql": "0.0.32", "@types/node": "^7.0.16", "core-js": "^2.4.1", "typescript": "^2.3.2" } } ## Instruction: Write script to built server code from command shell ## Code After: { "name": "interspan-server", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build":"node build-client.ts && tsc src/index --outDir dist --lib es2015", "start": "node ./dist/index.js", "client": "node start-client.ts" }, "engines": { "node": ">=4.3.2" }, "author": "", "license": "ISC", "dependencies": { "body-parser": "^1.17.1", "ejs": "^2.5.6", "express": "^4.15.2", "method-override": "^2.3.8", "morgan": "^1.8.1", "mysql": "^2.13.0" }, "devDependencies": { "@types/express": "^4.0.35", "@types/mysql": "0.0.32", "@types/node": "^7.0.16", "core-js": "^2.4.1", "typescript": "^2.3.2" } }
fbbc42fd0c023f6f5f603f9dfcc961d87ca6d645
zou/app/blueprints/crud/custom_action.py
zou/app/blueprints/crud/custom_action.py
from zou.app.models.custom_action import CustomAction from .base import BaseModelsResource, BaseModelResource class CustomActionsResource(BaseModelsResource): def __init__(self): BaseModelsResource.__init__(self, CustomAction) class CustomActionResource(BaseModelResource): def __init__(self): BaseModelResource.__init__(self, CustomAction)
from zou.app.models.custom_action import CustomAction from .base import BaseModelsResource, BaseModelResource class CustomActionsResource(BaseModelsResource): def __init__(self): BaseModelsResource.__init__(self, CustomAction) def check_permissions(self): return True class CustomActionResource(BaseModelResource): def __init__(self): BaseModelResource.__init__(self, CustomAction)
Allow anyone to read custom actions
Allow anyone to read custom actions
Python
agpl-3.0
cgwire/zou
python
## Code Before: from zou.app.models.custom_action import CustomAction from .base import BaseModelsResource, BaseModelResource class CustomActionsResource(BaseModelsResource): def __init__(self): BaseModelsResource.__init__(self, CustomAction) class CustomActionResource(BaseModelResource): def __init__(self): BaseModelResource.__init__(self, CustomAction) ## Instruction: Allow anyone to read custom actions ## Code After: from zou.app.models.custom_action import CustomAction from .base import BaseModelsResource, BaseModelResource class CustomActionsResource(BaseModelsResource): def __init__(self): BaseModelsResource.__init__(self, CustomAction) def check_permissions(self): return True class CustomActionResource(BaseModelResource): def __init__(self): BaseModelResource.__init__(self, CustomAction)
1426f4b72b9db8687dedc8182c13ba8fe050e9eb
pkgs/os-specific/linux/dmidecode/default.nix
pkgs/os-specific/linux/dmidecode/default.nix
{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "dmidecode-2.11"; src = fetchurl { url = "mirror://savannah/dmidecode/${name}.tar.bz2"; sha256 = "0l9v8985piykc98hmbg1cq5r4xwvp0jjl4li3avr3ddkg4s699bd"; }; makeFlags = "prefix=$(out)"; meta = { homepage = http://www.nongnu.org/dmidecode/; description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard"; }; }
{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "dmidecode-2.12"; src = fetchurl { url = "mirror://savannah/dmidecode/${name}.tar.bz2"; sha256 = "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"; }; makeFlags = "prefix=$(out)"; meta = { homepage = http://www.nongnu.org/dmidecode/; description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard"; }; }
Upgrade dmidecode from 2.11 -> 2.12
Upgrade dmidecode from 2.11 -> 2.12
Nix
mit
NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton
nix
## Code Before: { stdenv, fetchurl }: stdenv.mkDerivation rec { name = "dmidecode-2.11"; src = fetchurl { url = "mirror://savannah/dmidecode/${name}.tar.bz2"; sha256 = "0l9v8985piykc98hmbg1cq5r4xwvp0jjl4li3avr3ddkg4s699bd"; }; makeFlags = "prefix=$(out)"; meta = { homepage = http://www.nongnu.org/dmidecode/; description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard"; }; } ## Instruction: Upgrade dmidecode from 2.11 -> 2.12 ## Code After: { stdenv, fetchurl }: stdenv.mkDerivation rec { name = "dmidecode-2.12"; src = fetchurl { url = "mirror://savannah/dmidecode/${name}.tar.bz2"; sha256 = "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"; }; makeFlags = "prefix=$(out)"; meta = { homepage = http://www.nongnu.org/dmidecode/; description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard"; }; }
7c70a75d264e561e3661b74674084fc6a1ffcc8b
stackdio/stackdio/management/saltdirs/core_states/core/stackdio_user.sls
stackdio/stackdio/management/saltdirs/core_states/core/stackdio_user.sls
{% set username=salt['pillar.get']('__stackdio__:username') %} {% set publickey=salt['pillar.get']('__stackdio__:publickey') %} {% if username and publickey %} # Create the group stackdio_group: group.present: - name: {{ username }} - gid: 4000 # Create the user stackdio_user: user.present: - name: {{ username }} - shell: /bin/bash - uid: 4000 - gid: 4000 - createhome: true - require: - group: stackdio_group # Add the public key to authorized_keys file stackdio_authorized_keys: ssh_auth: - present - user: {{ username }} - name: {{ publickey }} - require: - user: stackdio_user # Add a sudoers entry stackdio_sudoers: file.managed: - name: /etc/sudoers.d/{{ username }} - contents: "{{ username }} ALL=(ALL) NOPASSWD:ALL" - mode: 400 - user: root - group: root - require: - ssh_auth: stackdio_authorized_keys {% endif %}
{% set username=salt['pillar.get']('__stackdio__:username') %} {% set publickey=salt['pillar.get']('__stackdio__:publickey') %} {% if username and publickey %} # Create the group stackdio_group: group.present: - name: {{ username }} - gid: 4000 # Create the user stackdio_user: user.present: - name: {{ username }} - shell: /bin/bash - uid: 4000 - gid: 4000 - createhome: true - require: - group: stackdio_group # Add the public key to authorized_keys file stackdio_authorized_keys: ssh_auth: - present - user: {{ username }} - name: {{ publickey }} - require: - user: stackdio_user # Add a sudoers entry stackdio_sudoers: file.managed: - name: /etc/sudoers.d/stackdio_user - contents: "{{ username }} ALL=(ALL) NOPASSWD:ALL" - mode: 400 - user: root - group: root - require: - ssh_auth: stackdio_authorized_keys {% endif %}
Create sudoer file without dots
Create sudoer file without dots
SaltStack
apache-2.0
clarkperkins/stackdio,stackdio/stackdio,clarkperkins/stackdio,stackdio/stackdio,stackdio/stackdio,clarkperkins/stackdio,clarkperkins/stackdio,stackdio/stackdio
saltstack
## Code Before: {% set username=salt['pillar.get']('__stackdio__:username') %} {% set publickey=salt['pillar.get']('__stackdio__:publickey') %} {% if username and publickey %} # Create the group stackdio_group: group.present: - name: {{ username }} - gid: 4000 # Create the user stackdio_user: user.present: - name: {{ username }} - shell: /bin/bash - uid: 4000 - gid: 4000 - createhome: true - require: - group: stackdio_group # Add the public key to authorized_keys file stackdio_authorized_keys: ssh_auth: - present - user: {{ username }} - name: {{ publickey }} - require: - user: stackdio_user # Add a sudoers entry stackdio_sudoers: file.managed: - name: /etc/sudoers.d/{{ username }} - contents: "{{ username }} ALL=(ALL) NOPASSWD:ALL" - mode: 400 - user: root - group: root - require: - ssh_auth: stackdio_authorized_keys {% endif %} ## Instruction: Create sudoer file without dots ## Code After: {% set username=salt['pillar.get']('__stackdio__:username') %} {% set publickey=salt['pillar.get']('__stackdio__:publickey') %} {% if username and publickey %} # Create the group stackdio_group: group.present: - name: {{ username }} - gid: 4000 # Create the user stackdio_user: user.present: - name: {{ username }} - shell: /bin/bash - uid: 4000 - gid: 4000 - createhome: true - require: - group: stackdio_group # Add the public key to authorized_keys file stackdio_authorized_keys: ssh_auth: - present - user: {{ username }} - name: {{ publickey }} - require: - user: stackdio_user # Add a sudoers entry stackdio_sudoers: file.managed: - name: /etc/sudoers.d/stackdio_user - contents: "{{ username }} ALL=(ALL) NOPASSWD:ALL" - mode: 400 - user: root - group: root - require: - ssh_auth: stackdio_authorized_keys {% endif %}
8eb0c2b536f932d6ef0fc0cd06dea33d3b5084cb
app/views/maps/index.html.erb
app/views/maps/index.html.erb
<p id="demo">Click the button to get your position.</p> <button onclick="getLocation()">Try It</button> <div id="mapholder"></div> <div id="googleMap" style="width:500px;height:380px;"></div>
<div id="googleMap" style="width:1024px;height:640px;"></div>
Update map size in index
Update map size in index
HTML+ERB
mit
nyc-mud-turtles-2015/Soap-Stone,nyc-mud-turtles-2015/Soap-Stone,nyc-mud-turtles-2015/Soap-Stone
html+erb
## Code Before: <p id="demo">Click the button to get your position.</p> <button onclick="getLocation()">Try It</button> <div id="mapholder"></div> <div id="googleMap" style="width:500px;height:380px;"></div> ## Instruction: Update map size in index ## Code After: <div id="googleMap" style="width:1024px;height:640px;"></div>
ce0db6a4aae09ced84479d273c4711318cc7e2f9
libs/xcb_nvidia/CMakeLists.txt
libs/xcb_nvidia/CMakeLists.txt
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXGL_PROTOTYPES") add_library(xcb_nvidia STATIC xcb_nvidia.cpp) target_link_libraries(xcb_nvidia)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") add_library(xcb_nvidia STATIC xcb_nvidia.cpp) target_link_libraries(xcb_nvidia)
Remove compiler warnings with xcb_nvidia.
Win/xcb_nvidia: Remove compiler warnings with xcb_nvidia.
Text
apache-2.0
KhronosGroup/Vulkan-LoaderAndValidationLayers,sashinde/VulkanTools,critsec/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,elongbug/Vulkan-LoaderAndValidationLayers,KhronosGroup/Vulkan-LoaderAndValidationLayers,KhronosGroup/Vulkan-LoaderAndValidationLayers,sashinde/VulkanTools,critsec/Vulkan-LoaderAndValidationLayers,elongbug/Vulkan-LoaderAndValidationLayers,sashinde/VulkanTools,critsec/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,Radamanthe/VulkanSamples,Radamanthe/VulkanSamples,critsec/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,sashinde/VulkanTools,elongbug/Vulkan-LoaderAndValidationLayers,KhronosGroup/Vulkan-LoaderAndValidationLayers,Radamanthe/VulkanSamples,elongbug/Vulkan-LoaderAndValidationLayers
text
## Code Before: include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXGL_PROTOTYPES") add_library(xcb_nvidia STATIC xcb_nvidia.cpp) target_link_libraries(xcb_nvidia) ## Instruction: Win/xcb_nvidia: Remove compiler warnings with xcb_nvidia. ## Code After: include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") add_library(xcb_nvidia STATIC xcb_nvidia.cpp) target_link_libraries(xcb_nvidia)
0d170a8afc2a73fa37597a276fc7624d454983c6
etc/config/zig.amazon.properties
etc/config/zig.amazon.properties
compilers=&zig defaultCompiler=trunk group.zig.compilers=trunk group.zig.objdumper=/opt/compiler-explorer/gcc-8.1.0/bin/objdump group.zig.isSemVer=true group.zig.baseName=zig compiler.trunk.exe=/opt/compiler-explorer/zig-master/zig compiler.trunk.semver=trunk ################################# ################################# # Installed libs (See c++.amazon.properties for a scheme of libs group) libs=
compilers=&zig defaultCompiler=z030 group.zig.compilers=trunk:z020:z030 group.zig.objdumper=/opt/compiler-explorer/gcc-8.1.0/bin/objdump group.zig.isSemVer=true group.zig.baseName=zig compiler.trunk.exe=/opt/compiler-explorer/zig-master/zig compiler.trunk.semver=trunk compiler.z020.exe=/opt/compiler-explorer/zig-0.2.0/zig compiler.z020.semver=0.2.0 compiler.z030.exe=/opt/compiler-explorer/zig-0.3.0/zig compiler.z030.semver=0.3.0 ################################# ################################# # Installed libs (See c++.amazon.properties for a scheme of libs group) libs=
Add zig 0.2.0 and 0.3.0 compiler
Add zig 0.2.0 and 0.3.0 compiler
INI
bsd-2-clause
mattgodbolt/compiler-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,mattgodbolt/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer
ini
## Code Before: compilers=&zig defaultCompiler=trunk group.zig.compilers=trunk group.zig.objdumper=/opt/compiler-explorer/gcc-8.1.0/bin/objdump group.zig.isSemVer=true group.zig.baseName=zig compiler.trunk.exe=/opt/compiler-explorer/zig-master/zig compiler.trunk.semver=trunk ################################# ################################# # Installed libs (See c++.amazon.properties for a scheme of libs group) libs= ## Instruction: Add zig 0.2.0 and 0.3.0 compiler ## Code After: compilers=&zig defaultCompiler=z030 group.zig.compilers=trunk:z020:z030 group.zig.objdumper=/opt/compiler-explorer/gcc-8.1.0/bin/objdump group.zig.isSemVer=true group.zig.baseName=zig compiler.trunk.exe=/opt/compiler-explorer/zig-master/zig compiler.trunk.semver=trunk compiler.z020.exe=/opt/compiler-explorer/zig-0.2.0/zig compiler.z020.semver=0.2.0 compiler.z030.exe=/opt/compiler-explorer/zig-0.3.0/zig compiler.z030.semver=0.3.0 ################################# ################################# # Installed libs (See c++.amazon.properties for a scheme of libs group) libs=
aaac1ae0667dabe6fd038c9f5a42c157b9457ef1
tests/test_parse.py
tests/test_parse.py
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import default TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements, as_map, imports, categorized_comments, first_comment_index_start, first_comment_index_end, change_count, original_line_count, line_separator, sections, section_comments, ) = parse.file_contents(TEST_CONTENTS, config=default) assert "\n".join(in_lines) == TEST_CONTENTS assert "import" not in "\n".join(out_lines) assert import_index == 1 assert change_count == -2 assert original_line_count == len(in_lines) auto_pytest_magic(parse.import_type) auto_pytest_magic(parse.skip_line) auto_pytest_magic(parse._strip_syntax) auto_pytest_magic(parse._infer_line_separator)
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements, as_map, imports, categorized_comments, first_comment_index_start, first_comment_index_end, change_count, original_line_count, line_separator, sections, section_comments, ) = parse.file_contents(TEST_CONTENTS, config=Config()) assert "\n".join(in_lines) == TEST_CONTENTS assert "import" not in "\n".join(out_lines) assert import_index == 1 assert change_count == -2 assert original_line_count == len(in_lines) auto_pytest_magic(parse.import_type) auto_pytest_magic(parse.skip_line) auto_pytest_magic(parse._strip_syntax) auto_pytest_magic(parse._infer_line_separator)
Fix use of default config to match new refactor
Fix use of default config to match new refactor
Python
mit
PyCQA/isort,PyCQA/isort
python
## Code Before: from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import default TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements, as_map, imports, categorized_comments, first_comment_index_start, first_comment_index_end, change_count, original_line_count, line_separator, sections, section_comments, ) = parse.file_contents(TEST_CONTENTS, config=default) assert "\n".join(in_lines) == TEST_CONTENTS assert "import" not in "\n".join(out_lines) assert import_index == 1 assert change_count == -2 assert original_line_count == len(in_lines) auto_pytest_magic(parse.import_type) auto_pytest_magic(parse.skip_line) auto_pytest_magic(parse._strip_syntax) auto_pytest_magic(parse._infer_line_separator) ## Instruction: Fix use of default config to match new refactor ## Code After: from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements, as_map, imports, categorized_comments, first_comment_index_start, first_comment_index_end, change_count, original_line_count, line_separator, sections, section_comments, ) = parse.file_contents(TEST_CONTENTS, config=Config()) assert "\n".join(in_lines) == TEST_CONTENTS assert "import" not in "\n".join(out_lines) assert import_index == 1 assert change_count == -2 assert original_line_count == len(in_lines) auto_pytest_magic(parse.import_type) auto_pytest_magic(parse.skip_line) auto_pytest_magic(parse._strip_syntax) auto_pytest_magic(parse._infer_line_separator)
aa34d647542b6a7a4e4f4d15f32776cb7f975eb1
lib/laravel/download.js
lib/laravel/download.js
(function(exports) { "use strict"; var request = require('request'); var Sink = require('pipette').Sink; var unzipper = require('../process-zip'); var fs = require('fs'); exports.downloadLaravel = function(grunt, init, done) { unzipper.processZip(request('https://github.com/laravel/laravel/archive/master.zip'), { fromdir: 'laravel-master/', todir: 'build/', verbose: function(msg) { grunt.verbose.writeln(msg); }, complete: done, rename: function(file) { var matches = /^(.*)\.md$/.exec(file); if (matches) { return matches[1] + '-Laravel.md'; } if (/build\/public\/.htaccess$/.test(file)) { // need to append this file because it already exists (comes with h5bp) new Sink(this).on('data', function(buffer) { var htaccess = '\n' + '# ----------------------------------------------------------------------\n' + '# Laravel framework\n' + '# ----------------------------------------------------------------------\n' + buffer.toString(); fs.appendFileSync(file, htaccess); }); } return file; } }); }; })(typeof exports === 'object' && exports || this);
(function(exports) { "use strict"; var request = require('request'); var Sink = require('pipette').Sink; var unzipper = require('../process-zip'); var fs = require('fs'); exports.downloadLaravel = function(grunt, init, done) { unzipper.processZip(request('https://github.com/laravel/laravel/archive/master.zip'), { fromdir: 'laravel-master/', todir: 'build/', verbose: function(msg) { grunt.verbose.writeln(msg); }, complete: done, rename: function(file) { var matches = /^(.*)\.md$/.exec(file); if (matches) { return matches[1] + '-Laravel.md'; } if (/build\/public\/.htaccess$/.test(file)) { // need to append this file because it already exists (comes with h5bp) new Sink(this).on('data', function(buffer) { // need to add an exception for pages served via DirectoryIndex // before the line containing // RewriteRule ^(.*)/$ // insert // RewriteCond %{REQUEST_FILENAME}/index.html !-f var htaccess = buffer.toString().replace(/(RewriteRule \^\(\.\*\)\/\$[^\r\n]*)/g, 'RewriteCond %{REQUEST_FILENAME}/index.html !-f\n $1'); htaccess = '\n' + '# ----------------------------------------------------------------------\n' + '# Laravel framework\n' + '# ----------------------------------------------------------------------\n' + htaccess; fs.appendFileSync(file, htaccess); }); } return file; } }); }; })(typeof exports === 'object' && exports || this);
Update Laravel .htaccess to fix redirect loop on DirectoryIndex pages such as /tests/
Update Laravel .htaccess to fix redirect loop on DirectoryIndex pages such as /tests/
JavaScript
mit
TheMonkeys/monkeybones,TheMonkeys/monkeybones,TheMonkeys/monkeybones
javascript
## Code Before: (function(exports) { "use strict"; var request = require('request'); var Sink = require('pipette').Sink; var unzipper = require('../process-zip'); var fs = require('fs'); exports.downloadLaravel = function(grunt, init, done) { unzipper.processZip(request('https://github.com/laravel/laravel/archive/master.zip'), { fromdir: 'laravel-master/', todir: 'build/', verbose: function(msg) { grunt.verbose.writeln(msg); }, complete: done, rename: function(file) { var matches = /^(.*)\.md$/.exec(file); if (matches) { return matches[1] + '-Laravel.md'; } if (/build\/public\/.htaccess$/.test(file)) { // need to append this file because it already exists (comes with h5bp) new Sink(this).on('data', function(buffer) { var htaccess = '\n' + '# ----------------------------------------------------------------------\n' + '# Laravel framework\n' + '# ----------------------------------------------------------------------\n' + buffer.toString(); fs.appendFileSync(file, htaccess); }); } return file; } }); }; })(typeof exports === 'object' && exports || this); ## Instruction: Update Laravel .htaccess to fix redirect loop on DirectoryIndex pages such as /tests/ ## Code After: (function(exports) { "use strict"; var request = require('request'); var Sink = require('pipette').Sink; var unzipper = require('../process-zip'); var fs = require('fs'); exports.downloadLaravel = function(grunt, init, done) { unzipper.processZip(request('https://github.com/laravel/laravel/archive/master.zip'), { fromdir: 'laravel-master/', todir: 'build/', verbose: function(msg) { grunt.verbose.writeln(msg); }, complete: done, rename: function(file) { var matches = /^(.*)\.md$/.exec(file); if (matches) { return matches[1] + '-Laravel.md'; } if (/build\/public\/.htaccess$/.test(file)) { // need to append this file because it already exists (comes with h5bp) new Sink(this).on('data', function(buffer) { // need to add an exception for pages served via DirectoryIndex // before the line containing // RewriteRule ^(.*)/$ // insert // RewriteCond %{REQUEST_FILENAME}/index.html !-f var htaccess = buffer.toString().replace(/(RewriteRule \^\(\.\*\)\/\$[^\r\n]*)/g, 'RewriteCond %{REQUEST_FILENAME}/index.html !-f\n $1'); htaccess = '\n' + '# ----------------------------------------------------------------------\n' + '# Laravel framework\n' + '# ----------------------------------------------------------------------\n' + htaccess; fs.appendFileSync(file, htaccess); }); } return file; } }); }; })(typeof exports === 'object' && exports || this);
342e76e4791f6c194f745972b7d84cb908522573
index.js
index.js
'use strict'; const fs = require('fs'); const WebClient = require('@slack/client').WebClient; const token = require('./config.js').apiToken; const message = process.argv[2]; const web = new WebClient(token); web.chat.postMessage('deployment', message, {as_user: true}, function (err, res) { if (err) { const fd = fs.openSync('slack-bot-errors.log', 'a'); fs.writeSync(fd, new Date().toString() + ": " + err.toString() + "\n"); fs.closeSync(fd); process.exit(1); } });
'use strict'; const fs = require('fs'); const WebClient = require('@slack/client').WebClient; const token = require('./config.js').apiToken; let message, channel; if (process.argv.length === 3) { // Only a message was passed so we use default channel channel = "deployment" message = process.argv[2]; } else if (process.argv.length === 4) { channel = process.argv[2]; message = process.argv[3]; } else { console.error("Usage: node index.js 'message to send'\nOR\nnode index.js <channel_to_send_to> 'message to send'"); process.exit(1); } const web = new WebClient(token); web.chat.postMessage(channel, message, {as_user: true}, function (err, res) { if (err) { const fd = fs.openSync('slack-bot-errors.log', 'a'); fs.writeSync(fd, new Date().toString() + ": " + err.toString() + "\n"); fs.closeSync(fd); process.exit(1); } });
Add functionality to post to custom channels
Add functionality to post to custom channels
JavaScript
mit
thegazelle-ad/slack-deployment-bot
javascript
## Code Before: 'use strict'; const fs = require('fs'); const WebClient = require('@slack/client').WebClient; const token = require('./config.js').apiToken; const message = process.argv[2]; const web = new WebClient(token); web.chat.postMessage('deployment', message, {as_user: true}, function (err, res) { if (err) { const fd = fs.openSync('slack-bot-errors.log', 'a'); fs.writeSync(fd, new Date().toString() + ": " + err.toString() + "\n"); fs.closeSync(fd); process.exit(1); } }); ## Instruction: Add functionality to post to custom channels ## Code After: 'use strict'; const fs = require('fs'); const WebClient = require('@slack/client').WebClient; const token = require('./config.js').apiToken; let message, channel; if (process.argv.length === 3) { // Only a message was passed so we use default channel channel = "deployment" message = process.argv[2]; } else if (process.argv.length === 4) { channel = process.argv[2]; message = process.argv[3]; } else { console.error("Usage: node index.js 'message to send'\nOR\nnode index.js <channel_to_send_to> 'message to send'"); process.exit(1); } const web = new WebClient(token); web.chat.postMessage(channel, message, {as_user: true}, function (err, res) { if (err) { const fd = fs.openSync('slack-bot-errors.log', 'a'); fs.writeSync(fd, new Date().toString() + ": " + err.toString() + "\n"); fs.closeSync(fd); process.exit(1); } });
b8d6d58c235f25f47dd08ec1ac742554e90b7652
spec/controllers/api/league_requests_controller_spec.rb
spec/controllers/api/league_requests_controller_spec.rb
require 'spec_helper' describe Api::LeagueRequestsController do render_views before do @user = create :user @user.groups << Group.league_admin_group @suspect_uid = 'suspect_uid' @suspect_ip = '127.0.0.2' @reservation_player = create(:reservation_player, steam_uid: @suspect_uid, ip: @suspect_ip) @other_player = create(:reservation_player, steam_uid: 'other-uid', ip: '127.0.0.3') controller.stub(api_user: @user) end describe '#index' do it 'renders a json with leugue request results' do get :index, format: :json, params: { league_request: { ip: @suspect_ip }} expect(response.body).to include(@suspect_uid) expect(response.body).to include(@suspect_ip) expect(response.body).not_to include(@other_player.steam_uid) expect(response.body).not_to include(@other_player.ip) end end end
require 'spec_helper' describe Api::LeagueRequestsController do render_views before do @user = create :user @user.groups << Group.league_admin_group @suspect_uid = 'suspect_uid' @suspect_ip = '127.0.0.2' @reservation_player = create(:reservation_player, steam_uid: @suspect_uid, ip: @suspect_ip) @other_player = create(:reservation_player, steam_uid: 'other-uid', ip: '127.0.0.3') controller.stub(api_user: @user) end describe '#index' do it 'renders a json with leugue request results' do get :index, format: :json, params: { league_request: { cross_reference: true, ip: @suspect_ip }} expect(response.body).to include(@suspect_uid) expect(response.body).to include(@suspect_ip) expect(response.body).not_to include(@other_player.steam_uid) expect(response.body).not_to include(@other_player.ip) end end end
Add spec for league requests API
Add spec for league requests API
Ruby
apache-2.0
Arie/serveme,Arie/serveme,Arie/serveme,Arie/serveme
ruby
## Code Before: require 'spec_helper' describe Api::LeagueRequestsController do render_views before do @user = create :user @user.groups << Group.league_admin_group @suspect_uid = 'suspect_uid' @suspect_ip = '127.0.0.2' @reservation_player = create(:reservation_player, steam_uid: @suspect_uid, ip: @suspect_ip) @other_player = create(:reservation_player, steam_uid: 'other-uid', ip: '127.0.0.3') controller.stub(api_user: @user) end describe '#index' do it 'renders a json with leugue request results' do get :index, format: :json, params: { league_request: { ip: @suspect_ip }} expect(response.body).to include(@suspect_uid) expect(response.body).to include(@suspect_ip) expect(response.body).not_to include(@other_player.steam_uid) expect(response.body).not_to include(@other_player.ip) end end end ## Instruction: Add spec for league requests API ## Code After: require 'spec_helper' describe Api::LeagueRequestsController do render_views before do @user = create :user @user.groups << Group.league_admin_group @suspect_uid = 'suspect_uid' @suspect_ip = '127.0.0.2' @reservation_player = create(:reservation_player, steam_uid: @suspect_uid, ip: @suspect_ip) @other_player = create(:reservation_player, steam_uid: 'other-uid', ip: '127.0.0.3') controller.stub(api_user: @user) end describe '#index' do it 'renders a json with leugue request results' do get :index, format: :json, params: { league_request: { cross_reference: true, ip: @suspect_ip }} expect(response.body).to include(@suspect_uid) expect(response.body).to include(@suspect_ip) expect(response.body).not_to include(@other_player.steam_uid) expect(response.body).not_to include(@other_player.ip) end end end
09a0360ad980e4108d753f94fd3e43c6293ea18d
.rubocop.yml
.rubocop.yml
Metrics/AbcSize: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/LineLength: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false # Prefer compact module/class defs Style/ClassAndModuleChildren: Enabled: false # Allow CamelCase constants as well as SCREAMING_SNAKE_CASE Style/ConstantName: Enabled: false # Allow 'Pokémon-style' exception handling Lint/RescueException: Enabled: false AllCops: TargetRubyVersion: 2.1 # Apparently setting the target version to 2.1 is not enough to prevent this cop... Style/FrozenStringLiteralComment: Enabled: false # http://stackoverflow.com/questions/4763121/should-i-use-alias-or-alias-method Style/Alias: Enabled: false
Metrics/AbcSize: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/LineLength: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false # Prefer compact module/class defs Style/ClassAndModuleChildren: Enabled: false # Allow CamelCase constants as well as SCREAMING_SNAKE_CASE Style/ConstantName: Enabled: false # Allow 'Pokémon-style' exception handling Lint/RescueException: Enabled: false AllCops: TargetRubyVersion: 2.1 # Apparently setting the target version to 2.1 is not enough to prevent this cop... Style/FrozenStringLiteralComment: Enabled: false # http://stackoverflow.com/questions/4763121/should-i-use-alias-or-alias-method Style/Alias: Enabled: false # So RuboCop doesn't complain about application IDs Style/NumericLiterals: Exclude: - examples/*
Make RuboCop ignore numeric literals in examples
Make RuboCop ignore numeric literals in examples
YAML
mit
Roughsketch/discordrb,megumisonoda/discordrb,Roughsketch/discordrb,meew0/discordrb,megumisonoda/discordrb,VxJasonxV/discordrb,VxJasonxV/discordrb,meew0/discordrb
yaml
## Code Before: Metrics/AbcSize: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/LineLength: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false # Prefer compact module/class defs Style/ClassAndModuleChildren: Enabled: false # Allow CamelCase constants as well as SCREAMING_SNAKE_CASE Style/ConstantName: Enabled: false # Allow 'Pokémon-style' exception handling Lint/RescueException: Enabled: false AllCops: TargetRubyVersion: 2.1 # Apparently setting the target version to 2.1 is not enough to prevent this cop... Style/FrozenStringLiteralComment: Enabled: false # http://stackoverflow.com/questions/4763121/should-i-use-alias-or-alias-method Style/Alias: Enabled: false ## Instruction: Make RuboCop ignore numeric literals in examples ## Code After: Metrics/AbcSize: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/LineLength: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false # Prefer compact module/class defs Style/ClassAndModuleChildren: Enabled: false # Allow CamelCase constants as well as SCREAMING_SNAKE_CASE Style/ConstantName: Enabled: false # Allow 'Pokémon-style' exception handling Lint/RescueException: Enabled: false AllCops: TargetRubyVersion: 2.1 # Apparently setting the target version to 2.1 is not enough to prevent this cop... Style/FrozenStringLiteralComment: Enabled: false # http://stackoverflow.com/questions/4763121/should-i-use-alias-or-alias-method Style/Alias: Enabled: false # So RuboCop doesn't complain about application IDs Style/NumericLiterals: Exclude: - examples/*
08e5fdfa744071270523d9f23129255555fcbeea
data-model/src/main/java/org/pdxfinder/dao/PatientSnapshot.java
data-model/src/main/java/org/pdxfinder/dao/PatientSnapshot.java
package org.pdxfinder.dao; import java.util.HashSet; import org.neo4j.ogm.annotation.GraphId; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Relationship; import java.util.Set; /** * Created by jmason on 16/03/2017. */ @NodeEntity public class PatientSnapshot { @GraphId Long id; Patient patient; String age; @Relationship(type = "SAMPLED_FROM", direction = Relationship.OUTGOING) Set<Sample> samples; public PatientSnapshot() { } public PatientSnapshot(Patient patient, String age) { this.patient = patient; this.age = age; } public PatientSnapshot(Patient patient, String age, Set<Sample> samples) { this.patient = patient; this.age = age; this.samples = samples; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public Set<Sample> getSamples() { return samples; } public void setSamples(Set<Sample> samples) { this.samples = samples; } public void addSample(Sample sample){ if(this.samples == null){ this.samples = new HashSet<Sample>(); } this.samples.add(sample); } }
package org.pdxfinder.dao; import java.util.HashSet; import org.neo4j.ogm.annotation.GraphId; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Relationship; import java.util.Set; /** * Created by jmason on 16/03/2017. */ @NodeEntity public class PatientSnapshot { @GraphId Long id; Patient patient; String age; @Relationship(type = "SAMPLED_FROM", direction = Relationship.OUTGOING) Set<Sample> samples; public PatientSnapshot() { } public PatientSnapshot(Patient patient, String age) { this.patient = patient; this.age = age; } public PatientSnapshot(Patient patient, String age, Set<Sample> samples) { this.patient = patient; this.age = age; this.samples = samples; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public Set<Sample> getSamples() { return samples; } public void setSamples(Set<Sample> samples) { this.samples = samples; } public void addSample(Sample sample){ if(this.samples == null){ this.samples = new HashSet<Sample>(); } this.samples.add(sample); } public Patient getPatient() { return patient; } public void setPatient(Patient patient) { this.patient = patient; } }
Add getter and setter for Patient attribute
Add getter and setter for Patient attribute
Java
apache-2.0
PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder
java
## Code Before: package org.pdxfinder.dao; import java.util.HashSet; import org.neo4j.ogm.annotation.GraphId; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Relationship; import java.util.Set; /** * Created by jmason on 16/03/2017. */ @NodeEntity public class PatientSnapshot { @GraphId Long id; Patient patient; String age; @Relationship(type = "SAMPLED_FROM", direction = Relationship.OUTGOING) Set<Sample> samples; public PatientSnapshot() { } public PatientSnapshot(Patient patient, String age) { this.patient = patient; this.age = age; } public PatientSnapshot(Patient patient, String age, Set<Sample> samples) { this.patient = patient; this.age = age; this.samples = samples; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public Set<Sample> getSamples() { return samples; } public void setSamples(Set<Sample> samples) { this.samples = samples; } public void addSample(Sample sample){ if(this.samples == null){ this.samples = new HashSet<Sample>(); } this.samples.add(sample); } } ## Instruction: Add getter and setter for Patient attribute ## Code After: package org.pdxfinder.dao; import java.util.HashSet; import org.neo4j.ogm.annotation.GraphId; import org.neo4j.ogm.annotation.NodeEntity; import org.neo4j.ogm.annotation.Relationship; import java.util.Set; /** * Created by jmason on 16/03/2017. */ @NodeEntity public class PatientSnapshot { @GraphId Long id; Patient patient; String age; @Relationship(type = "SAMPLED_FROM", direction = Relationship.OUTGOING) Set<Sample> samples; public PatientSnapshot() { } public PatientSnapshot(Patient patient, String age) { this.patient = patient; this.age = age; } public PatientSnapshot(Patient patient, String age, Set<Sample> samples) { this.patient = patient; this.age = age; this.samples = samples; } public String getAge() { return age; } public void setAge(String age) { this.age = age; } public Set<Sample> getSamples() { return samples; } public void setSamples(Set<Sample> samples) { this.samples = samples; } public void addSample(Sample sample){ if(this.samples == null){ this.samples = new HashSet<Sample>(); } this.samples.add(sample); } public Patient getPatient() { return patient; } public void setPatient(Patient patient) { this.patient = patient; } }
b6a5d402ec675eb08b8f42ccc8d77ca7a73a64bc
lib/xeroid/objects/payment.rb
lib/xeroid/objects/payment.rb
module Xeroid module Objects class Payment attr_reader :invoice, :account, :amount, :date, :currency_rate def initialize(attributes) @invoice = attributes[:invoice] @account = attributes[:account] @amount = attributes[:amount] @date = attributes[:date] @currency_rate = attributes[:currency_rate] end end end end
require 'xeroid/objects/attributes' module Xeroid module Objects class Payment include Attributes attribute :invoice, :account, :date big_decimal :amount, :currency_rate end end end
Bring Payment object up to date
Bring Payment object up to date
Ruby
mit
fidothe/xeroid
ruby
## Code Before: module Xeroid module Objects class Payment attr_reader :invoice, :account, :amount, :date, :currency_rate def initialize(attributes) @invoice = attributes[:invoice] @account = attributes[:account] @amount = attributes[:amount] @date = attributes[:date] @currency_rate = attributes[:currency_rate] end end end end ## Instruction: Bring Payment object up to date ## Code After: require 'xeroid/objects/attributes' module Xeroid module Objects class Payment include Attributes attribute :invoice, :account, :date big_decimal :amount, :currency_rate end end end
3a78bba6e50425793a6634f1bcd48c174844193f
.screenlayout/ziyal/land.sh
.screenlayout/ziyal/land.sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-3 --off --output DP1-2 --mode 1920x1080 --pos 3840x0 --rotate normal --output DP1-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DP2 --off
xrandr \ --output VIRTUAL1 --off \ --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \ --output DP1 --off \ --output HDMI2 --off \ --output HDMI1 --off \ --output DP1-3 --off \ --output DP1-2 --crtc 1 --mode 1920x1080 --pos 3840x0 --rotate normal \ --output DP1-1 --crtc 2 --mode 1920x1080 --pos 1920x0 --rotate normal \ --output DP2 --off i3-msg reload
Include --crtc values in ziyal xrandr commands
Include --crtc values in ziyal xrandr commands
Shell
bsd-3-clause
kneitinger/dotfiles,kneitinger/dotfiles,kneitinger/dotfiles
shell
## Code Before: xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-3 --off --output DP1-2 --mode 1920x1080 --pos 3840x0 --rotate normal --output DP1-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DP2 --off ## Instruction: Include --crtc values in ziyal xrandr commands ## Code After: xrandr \ --output VIRTUAL1 --off \ --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \ --output DP1 --off \ --output HDMI2 --off \ --output HDMI1 --off \ --output DP1-3 --off \ --output DP1-2 --crtc 1 --mode 1920x1080 --pos 3840x0 --rotate normal \ --output DP1-1 --crtc 2 --mode 1920x1080 --pos 1920x0 --rotate normal \ --output DP2 --off i3-msg reload
178b424e81d4853548e73853616dfe717f277560
example/nodejs/README.md
example/nodejs/README.md
Client code examples demonstrating usage of aws-mock with AWS-SDK in JavaScript. To run the examples, you must have aws-sdk installed by running `npm install -g aws-sdk`. Import note: Endpoint for mock ec2 should be running on "/" (root context) as Amazon's node.js aws-sdk doesn't support endpoint in a directory (while java version of aws-sdk does). And of course, that is because aws-sdk is designed for accessing their own endpoints on root context (https://*.amazonaws.com/) only. As in the node.js examples here we use the endpoint at http://localhost:9090/ for calling interfaces on aws-mock. Such an endpoint working on root context (like http://localhost:9090/) could be made by proxy-pass actual backend endpoint url http://localhost:8000/aws-mock/ec2-endpoint/ to a front-end reverse proxy web server (such as Apache or Nginx).
Client code examples demonstrating usage of aws-mock with AWS-SDK in JavaScript. ## Installation ## 1. Install aws-sdk by running `npm install -g aws-sdk`. 2. In your web server such as Nginx or Apache, add a reverse proxy route for actual backend endpoint url `http://localhost:8000/aws-mock/ec2-endpoint/` to a root directory `http://localhost:9090/`. 3. Run the tests with node. ## Why endpoint on "/" ? ## Endpoint for mock ec2 should be running on "/" (root context) as Amazon's node.js aws-sdk doesn't support endpoint in a directory (while java version of aws-sdk does). And of course, that is because aws-sdk is designed for accessing their own endpoints on root context (https://*.amazonaws.com/) only. As in the node.js examples here we use the endpoint at http://localhost:9090/ for calling interfaces on aws-mock.
Improve explanation for proxying endpoint to root context for node.js
Improve explanation for proxying endpoint to root context for node.js
Markdown
mit
treelogic-swe/aws-mock,treelogic-swe/aws-mock,yxd-hde/aws-mock,yxd-hde/aws-mock,Davinder2me/aws-mock,Davinder2me/aws-mock,dadoonet/aws-mock,dadoonet/aws-mock,dadoonet/aws-mock,treelogic-swe/aws-mock,Davinder2me/aws-mock,yxd-hde/aws-mock,Davinder2me/aws-mock,treelogic-swe/aws-mock,dadoonet/aws-mock,yxd-hde/aws-mock
markdown
## Code Before: Client code examples demonstrating usage of aws-mock with AWS-SDK in JavaScript. To run the examples, you must have aws-sdk installed by running `npm install -g aws-sdk`. Import note: Endpoint for mock ec2 should be running on "/" (root context) as Amazon's node.js aws-sdk doesn't support endpoint in a directory (while java version of aws-sdk does). And of course, that is because aws-sdk is designed for accessing their own endpoints on root context (https://*.amazonaws.com/) only. As in the node.js examples here we use the endpoint at http://localhost:9090/ for calling interfaces on aws-mock. Such an endpoint working on root context (like http://localhost:9090/) could be made by proxy-pass actual backend endpoint url http://localhost:8000/aws-mock/ec2-endpoint/ to a front-end reverse proxy web server (such as Apache or Nginx). ## Instruction: Improve explanation for proxying endpoint to root context for node.js ## Code After: Client code examples demonstrating usage of aws-mock with AWS-SDK in JavaScript. ## Installation ## 1. Install aws-sdk by running `npm install -g aws-sdk`. 2. In your web server such as Nginx or Apache, add a reverse proxy route for actual backend endpoint url `http://localhost:8000/aws-mock/ec2-endpoint/` to a root directory `http://localhost:9090/`. 3. Run the tests with node. ## Why endpoint on "/" ? ## Endpoint for mock ec2 should be running on "/" (root context) as Amazon's node.js aws-sdk doesn't support endpoint in a directory (while java version of aws-sdk does). And of course, that is because aws-sdk is designed for accessing their own endpoints on root context (https://*.amazonaws.com/) only. As in the node.js examples here we use the endpoint at http://localhost:9090/ for calling interfaces on aws-mock.
8d21dcec826b00882839b88a4bf4b164f7179e01
tests/PerFiUnitTest/Domain/Transaction/CommandHandler/ExecuteTransactionTest.php
tests/PerFiUnitTest/Domain/Transaction/CommandHandler/ExecuteTransactionTest.php
<?php declare(strict_types=1); namespace PerFiUnitTest\Domain\Transaction\CommandHandler; use PHPUnit\Framework\TestCase; class ExecuteTransactionTest extends TestCase { /** * @test */ public function when_invoked_adds_transaction_to_repository() { self::markTestIncomplete(); } /** * @test */ public function when_invoked_records_transaction_on_source_account() { self::markTestIncomplete(); } /** * @test */ public function when_invoked_records_transaction_on_destination_account() { self::markTestIncomplete(); } }
<?php declare(strict_types=1); namespace PerFiUnitTest\Domain\Transaction\CommandHandler; use Mockery as m; use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use PHPUnit\Framework\TestCase; use PerFi\Application\Transaction\InMemoryTransactionRepository; use PerFi\Domain\Account\Account; use PerFi\Domain\Command; use PerFi\Domain\CommandHandler; use PerFi\Domain\Transaction\CommandHandler\ExecuteTransaction as ExecuteTransactionHandler; use PerFi\Domain\Transaction\Command\ExecuteTransaction as ExecuteTransactionCommand; use PerFi\Domain\Transaction\TransactionRepository; class ExecuteTransactionTest extends TestCase { use MockeryPHPUnitIntegration; /** * @var TransactionRepository */ private $repository; /** * @var Account */ private $sourceAccount; /** * @var Account */ private $destinationAccount; /** * @var Command */ private $command; /** * @var CommandHandler */ private $commandHandler; public function setup() { $this->repository = new InMemoryTransactionRepository(); $this->sourceAccount = m::mock(Account::class); $this->sourceAccount->shouldReceive('recordTransaction') ->byDefault(); $this->destinationAccount = m::mock(Account::class); $this->destinationAccount->shouldReceive('recordTransaction') ->byDefault(); $this->command = new ExecuteTransactionCommand( $this->sourceAccount, $this->destinationAccount, '500', 'RSD', 'supermarket' ); $this->commandHandler = new ExecuteTransactionHandler( $this->repository ); } /** * @test */ public function when_invoked_adds_transaction_to_repository() { $this->commandHandler->__invoke($this->command); $result = $this->repository->getAll(); $expected = 1; self::assertSame($expected, count($result)); } /** * @test */ public function when_invoked_records_transaction_on_source_account() { $this->sourceAccount->shouldReceive('recordTransaction') ->once() ->with($this->command->payload()); $this->commandHandler->__invoke($this->command); } /** * @test */ public function when_invoked_records_transaction_on_destination_account() { $this->destinationAccount->shouldReceive('recordTransaction') ->once() ->with($this->command->payload()); $this->commandHandler->__invoke($this->command); } }
Test the transaction execution command handler
Test the transaction execution command handler
PHP
mit
robertbasic/perfi,robertbasic/perfi
php
## Code Before: <?php declare(strict_types=1); namespace PerFiUnitTest\Domain\Transaction\CommandHandler; use PHPUnit\Framework\TestCase; class ExecuteTransactionTest extends TestCase { /** * @test */ public function when_invoked_adds_transaction_to_repository() { self::markTestIncomplete(); } /** * @test */ public function when_invoked_records_transaction_on_source_account() { self::markTestIncomplete(); } /** * @test */ public function when_invoked_records_transaction_on_destination_account() { self::markTestIncomplete(); } } ## Instruction: Test the transaction execution command handler ## Code After: <?php declare(strict_types=1); namespace PerFiUnitTest\Domain\Transaction\CommandHandler; use Mockery as m; use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use PHPUnit\Framework\TestCase; use PerFi\Application\Transaction\InMemoryTransactionRepository; use PerFi\Domain\Account\Account; use PerFi\Domain\Command; use PerFi\Domain\CommandHandler; use PerFi\Domain\Transaction\CommandHandler\ExecuteTransaction as ExecuteTransactionHandler; use PerFi\Domain\Transaction\Command\ExecuteTransaction as ExecuteTransactionCommand; use PerFi\Domain\Transaction\TransactionRepository; class ExecuteTransactionTest extends TestCase { use MockeryPHPUnitIntegration; /** * @var TransactionRepository */ private $repository; /** * @var Account */ private $sourceAccount; /** * @var Account */ private $destinationAccount; /** * @var Command */ private $command; /** * @var CommandHandler */ private $commandHandler; public function setup() { $this->repository = new InMemoryTransactionRepository(); $this->sourceAccount = m::mock(Account::class); $this->sourceAccount->shouldReceive('recordTransaction') ->byDefault(); $this->destinationAccount = m::mock(Account::class); $this->destinationAccount->shouldReceive('recordTransaction') ->byDefault(); $this->command = new ExecuteTransactionCommand( $this->sourceAccount, $this->destinationAccount, '500', 'RSD', 'supermarket' ); $this->commandHandler = new ExecuteTransactionHandler( $this->repository ); } /** * @test */ public function when_invoked_adds_transaction_to_repository() { $this->commandHandler->__invoke($this->command); $result = $this->repository->getAll(); $expected = 1; self::assertSame($expected, count($result)); } /** * @test */ public function when_invoked_records_transaction_on_source_account() { $this->sourceAccount->shouldReceive('recordTransaction') ->once() ->with($this->command->payload()); $this->commandHandler->__invoke($this->command); } /** * @test */ public function when_invoked_records_transaction_on_destination_account() { $this->destinationAccount->shouldReceive('recordTransaction') ->once() ->with($this->command->payload()); $this->commandHandler->__invoke($this->command); } }
c642f8b8474728d5926de4d722ccb3521d0774ca
scripting/src/index.js
scripting/src/index.js
// Index page module. module.exports = function(utils, $, _) { console.log('index page module loaded'); }
// Index page module. module.exports = function(utils, $, _) { window.$ = $; window.jQuery = $; console.log('jQuery added as window.$ for development'); }
Make jQuery available outside webapp sandbox.
Make jQuery available outside webapp sandbox.
JavaScript
agpl-3.0
CamiloMM/Noumena,CamiloMM/Noumena,CamiloMM/Noumena
javascript
## Code Before: // Index page module. module.exports = function(utils, $, _) { console.log('index page module loaded'); } ## Instruction: Make jQuery available outside webapp sandbox. ## Code After: // Index page module. module.exports = function(utils, $, _) { window.$ = $; window.jQuery = $; console.log('jQuery added as window.$ for development'); }
8e8e93843882468d1d1f832829049dd23b05d7f1
lib/rbplusplus/builders/const.rb
lib/rbplusplus/builders/const.rb
module RbPlusPlus module Builders # Expose a const value class ConstNode < Base def build add_child IncludeNode.new(self, code.file) end def write prefix = parent.rice_variable ? "#{parent.rice_variable}." : "Rice::Module(rb_mKernel)." registrations << "#{prefix}const_set(\"#{code.name}\", to_ruby((int)#{code.qualified_name}));" end end end end
module RbPlusPlus module Builders # Expose a const value class ConstNode < Base def build add_child IncludeNode.new(self, code.file) end def write # If this constant is initialized in the header, we need to set the constant to the initialized value # If we just use the variable itself, Linux will fail to compile because the linker won't be able to # find the constant. set_to = if init = code.attributes["init"] init else code.qualified_name end prefix = parent.rice_variable ? "#{parent.rice_variable}." : "Rice::Module(rb_mKernel)." registrations << "#{prefix}const_set(\"#{code.name}\", to_ruby(#{set_to}));" end end end end
Work around a compiler issue with g++ on Linux
Work around a compiler issue with g++ on Linux
Ruby
mit
jasonroelofs/rbplusplus,jasonroelofs/rbplusplus,jasonroelofs/rbplusplus,jasonroelofs/rbplusplus
ruby
## Code Before: module RbPlusPlus module Builders # Expose a const value class ConstNode < Base def build add_child IncludeNode.new(self, code.file) end def write prefix = parent.rice_variable ? "#{parent.rice_variable}." : "Rice::Module(rb_mKernel)." registrations << "#{prefix}const_set(\"#{code.name}\", to_ruby((int)#{code.qualified_name}));" end end end end ## Instruction: Work around a compiler issue with g++ on Linux ## Code After: module RbPlusPlus module Builders # Expose a const value class ConstNode < Base def build add_child IncludeNode.new(self, code.file) end def write # If this constant is initialized in the header, we need to set the constant to the initialized value # If we just use the variable itself, Linux will fail to compile because the linker won't be able to # find the constant. set_to = if init = code.attributes["init"] init else code.qualified_name end prefix = parent.rice_variable ? "#{parent.rice_variable}." : "Rice::Module(rb_mKernel)." registrations << "#{prefix}const_set(\"#{code.name}\", to_ruby(#{set_to}));" end end end end
3d6185f8080906fbb19314bca634071be506292b
setup.py
setup.py
from setuptools import setup, find_packages setup( name='pycalico', # Don't need a version until we publish to PIP or other forum. # version='0.0.0', description='A Python API to Calico', # The project's main homepage. url='https://github.com/projectcalico/libcalico/', # Author details author='Project Calico', author_email='[email protected]', # Choose your license license='Apache 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Topic :: System :: Networking', ], # What does your project relate to? keywords='calico docker etcd mesos kubernetes rkt openstack', package_dir={"": "calico_containers"}, packages=["pycalico"], # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['netaddr', 'python-etcd'], )
from setuptools import setup, find_packages setup( name='pycalico', # Don't need a version until we publish to PIP or other forum. # version='0.0.0', description='A Python API to Calico', # The project's main homepage. url='https://github.com/projectcalico/libcalico/', # Author details author='Project Calico', author_email='[email protected]', # Choose your license license='Apache 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Topic :: System :: Networking', ], # What does your project relate to? keywords='calico docker etcd mesos kubernetes rkt openstack', package_dir={"": "calico_containers"}, packages=["pycalico"], # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['netaddr', 'python-etcd', 'subprocess32'], )
Add subprocess32 as package dependency
Add subprocess32 as package dependency
Python
apache-2.0
L-MA/libcalico,alexhersh/libcalico,TrimBiggs/libcalico,projectcalico/libcalico,insequent/libcalico,tomdee/libcalico,djosborne/libcalico,caseydavenport/libcalico,plwhite/libcalico,Symmetric/libcalico
python
## Code Before: from setuptools import setup, find_packages setup( name='pycalico', # Don't need a version until we publish to PIP or other forum. # version='0.0.0', description='A Python API to Calico', # The project's main homepage. url='https://github.com/projectcalico/libcalico/', # Author details author='Project Calico', author_email='[email protected]', # Choose your license license='Apache 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Topic :: System :: Networking', ], # What does your project relate to? keywords='calico docker etcd mesos kubernetes rkt openstack', package_dir={"": "calico_containers"}, packages=["pycalico"], # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['netaddr', 'python-etcd'], ) ## Instruction: Add subprocess32 as package dependency ## Code After: from setuptools import setup, find_packages setup( name='pycalico', # Don't need a version until we publish to PIP or other forum. # version='0.0.0', description='A Python API to Calico', # The project's main homepage. url='https://github.com/projectcalico/libcalico/', # Author details author='Project Calico', author_email='[email protected]', # Choose your license license='Apache 2.0', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Topic :: System :: Networking', ], # What does your project relate to? keywords='calico docker etcd mesos kubernetes rkt openstack', package_dir={"": "calico_containers"}, packages=["pycalico"], # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['netaddr', 'python-etcd', 'subprocess32'], )
c4ce23e1ed48c0099bb6d0c277815cb328f45ba0
topics/templates/includes/link.html
topics/templates/includes/link.html
<div class="link_block"> <img class="icon" src="{{ link.icon }}"/> <a class="link_url" href="{{ link.link }}"> {{ link.title }} </a> {% if user.is_authenticated %} <form action="" method="post" class="link-tag"> {% csrf_token %} <input type="hidden" name="link_tag" value="{{ link.id }}"/> <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/> <input type="submit"/> </form> {% endif %} <div class="tags"> {% for tag in link.tags.all %} <a href="{{ tag.slug }}" class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text }}</a> {% endfor %} </div> </div>
<div class="link_block"> <img class="icon" src="{{ link.icon }}"/> <a class="link_url" href="{{ link.link }}"> {{ link.title }} </a> {% if user.is_authenticated %} <form action="" method="post" class="link-tag"> {% csrf_token %} <input type="hidden" name="link_tag" value="{{ link.id }}"/> <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/> <input type="submit"/> </form> {% endif %} <div class="tags"> {% for tag in link.tags.all|slice:":7" %} <a href="/{{ tag.slug }}" class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text.split|join:"&nbsp;" }}</a> {% endfor %} </div> </div>
Trim tags and use non-breaking spaces
Trim tags and use non-breaking spaces
HTML
mit
andychase/codebook,andychase/codebook
html
## Code Before: <div class="link_block"> <img class="icon" src="{{ link.icon }}"/> <a class="link_url" href="{{ link.link }}"> {{ link.title }} </a> {% if user.is_authenticated %} <form action="" method="post" class="link-tag"> {% csrf_token %} <input type="hidden" name="link_tag" value="{{ link.id }}"/> <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/> <input type="submit"/> </form> {% endif %} <div class="tags"> {% for tag in link.tags.all %} <a href="{{ tag.slug }}" class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text }}</a> {% endfor %} </div> </div> ## Instruction: Trim tags and use non-breaking spaces ## Code After: <div class="link_block"> <img class="icon" src="{{ link.icon }}"/> <a class="link_url" href="{{ link.link }}"> {{ link.title }} </a> {% if user.is_authenticated %} <form action="" method="post" class="link-tag"> {% csrf_token %} <input type="hidden" name="link_tag" value="{{ link.id }}"/> <input type="text" name="tag_text" class="tag_text" title="Tag" placeholder="#tag"/> <input type="submit"/> </form> {% endif %} <div class="tags"> {% for tag in link.tags.all|slice:":7" %} <a href="/{{ tag.slug }}" class="quick-link {% if tag.slug in selected_tags %}active{% endif %}">{{ tag.text.split|join:"&nbsp;" }}</a> {% endfor %} </div> </div>
d58932961d33cab8d51436a5601f1ef80d82d108
README.md
README.md
An iOS Network Traffic Counter, a Swift wrapper for ifaddrs ## Requirements * iOS 8.0+ * Xcode 8.1+ * Swift 3.0.1+ ## Support * WiFi & WWAN Data * current speed & total usage ## Examples ```swift class ViewController: UIViewController, TrafficManagerDelegate { override func viewDidLoad() { super.viewDidLoad() TrafficManager.shared.delegate = self TrafficManager.shared.resume() } func post(summary: TrafficSummary) { print(summary) // Do whatever you want here! } } ``` ## Installation ### Carthage [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with [Homebrew](http://brew.sh/) using the following command: ```bash $ brew update $ brew install carthage ``` To integrate TrafficPolice into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl github "anotheren/TrafficPolice" ~> 0.4.0 ``` ## License TrafficPolice is released under the MIT license. See LICENSE for details.
An iOS Network Traffic Counter, a Swift wrapper for ifaddrs ## Requirements * iOS 8.0+ * Xcode 8.1+ * Swift 3.0.1+ ## Support * WiFi & WWAN Data * current speed & total usage ## Examples ```swift class ViewController: UIViewController, TrafficManagerDelegate { override func viewDidLoad() { super.viewDidLoad() TrafficManager.shared.delegate = self TrafficManager.shared.resume() } func post(summary: TrafficSummary) { print(summary) // wifi:[speed:[download: 0.1 KB/s, upload: 0.0 KB/s], data:[received: 14.9 KB, sent: 13.2 KB]], // wwan:[speed:[download: 0.0 KB/s, upload: 0.0 KB/s], data:[received: 0.0 KB, sent: 0.0 KB]] // Do whatever you want here! } } ``` ## Installation ### Carthage [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with [Homebrew](http://brew.sh/) using the following command: ```bash $ brew update $ brew install carthage ``` To integrate TrafficPolice into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl github "anotheren/TrafficPolice" ~> 0.1.0 ``` ## License TrafficPolice is released under the MIT license. See LICENSE for details.
Add More information & fix mistake
Add More information & fix mistake
Markdown
mit
anotheren/TrafficPolice,anotheren/TrafficPolice
markdown
## Code Before: An iOS Network Traffic Counter, a Swift wrapper for ifaddrs ## Requirements * iOS 8.0+ * Xcode 8.1+ * Swift 3.0.1+ ## Support * WiFi & WWAN Data * current speed & total usage ## Examples ```swift class ViewController: UIViewController, TrafficManagerDelegate { override func viewDidLoad() { super.viewDidLoad() TrafficManager.shared.delegate = self TrafficManager.shared.resume() } func post(summary: TrafficSummary) { print(summary) // Do whatever you want here! } } ``` ## Installation ### Carthage [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with [Homebrew](http://brew.sh/) using the following command: ```bash $ brew update $ brew install carthage ``` To integrate TrafficPolice into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl github "anotheren/TrafficPolice" ~> 0.4.0 ``` ## License TrafficPolice is released under the MIT license. See LICENSE for details. ## Instruction: Add More information & fix mistake ## Code After: An iOS Network Traffic Counter, a Swift wrapper for ifaddrs ## Requirements * iOS 8.0+ * Xcode 8.1+ * Swift 3.0.1+ ## Support * WiFi & WWAN Data * current speed & total usage ## Examples ```swift class ViewController: UIViewController, TrafficManagerDelegate { override func viewDidLoad() { super.viewDidLoad() TrafficManager.shared.delegate = self TrafficManager.shared.resume() } func post(summary: TrafficSummary) { print(summary) // wifi:[speed:[download: 0.1 KB/s, upload: 0.0 KB/s], data:[received: 14.9 KB, sent: 13.2 KB]], // wwan:[speed:[download: 0.0 KB/s, upload: 0.0 KB/s], data:[received: 0.0 KB, sent: 0.0 KB]] // Do whatever you want here! } } ``` ## Installation ### Carthage [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. You can install Carthage with [Homebrew](http://brew.sh/) using the following command: ```bash $ brew update $ brew install carthage ``` To integrate TrafficPolice into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl github "anotheren/TrafficPolice" ~> 0.1.0 ``` ## License TrafficPolice is released under the MIT license. See LICENSE for details.
480eec749615962664d40bb6e7e2087dfbde7333
spec/helper.rb
spec/helper.rb
require 'pathname' require 'logger' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') log_path = root_path.join('log') moneta_path = root_path.join('vendor', 'moneta', 'lib') log_path.mkpath $:.unshift(lib_path, moneta_path) require 'toy' require 'spec' require 'timecop' require 'log_buddy' require 'support/constants' require 'support/name_and_number_key_factory' require 'support/identity_map_matcher' require 'moneta' require 'moneta/adapters/file' require 'moneta/adapters/redis' require 'moneta/adapters/mongodb' FileStore = Moneta::Builder.new do run Moneta::Adapters::File, :path => 'testing' end MongoStore = Moneta::Builder.new do run Moneta::Adapters::MongoDB end RedisStore = Moneta::Builder.new do run Moneta::Adapters::Redis end Logger.new(log_path.join('test.log')).tap do |log| LogBuddy.init(:logger => log) Toy.logger = log end Toy.store = RedisStore Spec::Runner.configure do |config| config.include(Support::Constants) config.include(IdentityMapMatcher) config.before(:each) do [FileStore, MongoStore, RedisStore].each(&:clear) end end
require 'pathname' require 'logger' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') log_path = root_path.join('log') moneta_path = root_path.join('vendor', 'moneta', 'lib') log_path.mkpath $:.unshift(lib_path, moneta_path) require 'toy' require 'spec' require 'timecop' require 'log_buddy' require 'support/constants' require 'support/name_and_number_key_factory' require 'support/identity_map_matcher' require 'moneta' require 'moneta/adapters/file' require 'moneta/adapters/redis' require 'moneta/adapters/mongodb' FileStore = Moneta::Builder.new do run Moneta::Adapters::File, :path => 'testing' end MongoStore = Moneta::Builder.new do run Moneta::Adapters::MongoDB end RedisStore = Moneta::Builder.new do run Moneta::Adapters::Redis end Logger.new(log_path.join('test.log')).tap do |log| LogBuddy.init(:logger => log) Toy.logger = log end Toy.store = RedisStore Spec::Runner.configure do |config| config.include(Support::Constants) config.include(IdentityMapMatcher) config.before(:each) do Toy.identity_map.clear [FileStore, MongoStore, RedisStore].each(&:clear) end end
Clear identity map before each spec.
Clear identity map before each spec.
Ruby
bsd-3-clause
jnunemaker/toystore
ruby
## Code Before: require 'pathname' require 'logger' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') log_path = root_path.join('log') moneta_path = root_path.join('vendor', 'moneta', 'lib') log_path.mkpath $:.unshift(lib_path, moneta_path) require 'toy' require 'spec' require 'timecop' require 'log_buddy' require 'support/constants' require 'support/name_and_number_key_factory' require 'support/identity_map_matcher' require 'moneta' require 'moneta/adapters/file' require 'moneta/adapters/redis' require 'moneta/adapters/mongodb' FileStore = Moneta::Builder.new do run Moneta::Adapters::File, :path => 'testing' end MongoStore = Moneta::Builder.new do run Moneta::Adapters::MongoDB end RedisStore = Moneta::Builder.new do run Moneta::Adapters::Redis end Logger.new(log_path.join('test.log')).tap do |log| LogBuddy.init(:logger => log) Toy.logger = log end Toy.store = RedisStore Spec::Runner.configure do |config| config.include(Support::Constants) config.include(IdentityMapMatcher) config.before(:each) do [FileStore, MongoStore, RedisStore].each(&:clear) end end ## Instruction: Clear identity map before each spec. ## Code After: require 'pathname' require 'logger' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') log_path = root_path.join('log') moneta_path = root_path.join('vendor', 'moneta', 'lib') log_path.mkpath $:.unshift(lib_path, moneta_path) require 'toy' require 'spec' require 'timecop' require 'log_buddy' require 'support/constants' require 'support/name_and_number_key_factory' require 'support/identity_map_matcher' require 'moneta' require 'moneta/adapters/file' require 'moneta/adapters/redis' require 'moneta/adapters/mongodb' FileStore = Moneta::Builder.new do run Moneta::Adapters::File, :path => 'testing' end MongoStore = Moneta::Builder.new do run Moneta::Adapters::MongoDB end RedisStore = Moneta::Builder.new do run Moneta::Adapters::Redis end Logger.new(log_path.join('test.log')).tap do |log| LogBuddy.init(:logger => log) Toy.logger = log end Toy.store = RedisStore Spec::Runner.configure do |config| config.include(Support::Constants) config.include(IdentityMapMatcher) config.before(:each) do Toy.identity_map.clear [FileStore, MongoStore, RedisStore].each(&:clear) end end
60ac59efe974d91a5ddebc19f9e14b5c8b51b0fe
requirements.txt
requirements.txt
enum34==1.1.6 pyuca==1.1.2 reportlab==3.3.0 xmltodict==0.10.1
enum34==1.1.6 python-dateutil==2.5.3 pyuca==1.1.2 reportlab==3.3.0 xmltodict==0.10.1
Add requirement for datetime parser
Add requirement for datetime parser
Text
mit
bzaczynski/ogre
text
## Code Before: enum34==1.1.6 pyuca==1.1.2 reportlab==3.3.0 xmltodict==0.10.1 ## Instruction: Add requirement for datetime parser ## Code After: enum34==1.1.6 python-dateutil==2.5.3 pyuca==1.1.2 reportlab==3.3.0 xmltodict==0.10.1
f59a1ee60743e13a80d6f09e48bc3bab11726c8e
spec/scientificNotationMapperSpec.js
spec/scientificNotationMapperSpec.js
var ScientificNotationMapper = require("../lib/mappers/ScientificNotationMapper"); describe("A Scientific Notation Mapper", function() { it("has toDecimal and fromDecimal methods", function() { var snm = new ScientificNotationMapper(); expect(typeof snm.toDecimal).toBe("function"); expect(typeof snm.fromDecimal).toBe("function"); }); it("can convert positive, whole decimal numbers to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(3)).toBe("3e0"); expect(snm.fromDecimal(500)).toBe("5e2"); expect(snm.fromDecimal(12345)).toBe("1.2345e4"); }); });
var ScientificNotationMapper = require("../lib/mappers/ScientificNotationMapper"); describe("A Scientific Notation Mapper", function() { it("has toDecimal and fromDecimal methods", function() { var snm = new ScientificNotationMapper(); expect(typeof snm.toDecimal).toBe("function"); expect(typeof snm.fromDecimal).toBe("function"); }); it("can convert whole decimal numbers greater than one to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(3)).toBe("3e0"); expect(snm.fromDecimal(500)).toBe("5e2"); expect(snm.fromDecimal(10000000)).toBe("1e7"); expect(snm.fromDecimal(3141592654)).toBe("3.141592654e9"); expect(snm.fromDecimal(12345)).toBe("1.2345e4"); }); it("can convert fractional decimal numbers greater than one to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(1.2345)).toBe("1.2345e0"); expect(snm.fromDecimal(12.345)).toBe("1.2345e1"); expect(snm.fromDecimal(123.45)).toBe("1.2345e2"); expect(snm.fromDecimal(1234.5)).toBe("1.2345e3"); expect(snm.fromDecimal(984.18000)).toBe("9.8418e2"); expect(snm.fromDecimal(984.180001)).toBe("9.84180001e2"); }); });
Test conversion of fractional positive numbers to scientific notation
Test conversion of fractional positive numbers to scientific notation
JavaScript
mit
brettmclean/number-converter,brettmclean/number-converter
javascript
## Code Before: var ScientificNotationMapper = require("../lib/mappers/ScientificNotationMapper"); describe("A Scientific Notation Mapper", function() { it("has toDecimal and fromDecimal methods", function() { var snm = new ScientificNotationMapper(); expect(typeof snm.toDecimal).toBe("function"); expect(typeof snm.fromDecimal).toBe("function"); }); it("can convert positive, whole decimal numbers to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(3)).toBe("3e0"); expect(snm.fromDecimal(500)).toBe("5e2"); expect(snm.fromDecimal(12345)).toBe("1.2345e4"); }); }); ## Instruction: Test conversion of fractional positive numbers to scientific notation ## Code After: var ScientificNotationMapper = require("../lib/mappers/ScientificNotationMapper"); describe("A Scientific Notation Mapper", function() { it("has toDecimal and fromDecimal methods", function() { var snm = new ScientificNotationMapper(); expect(typeof snm.toDecimal).toBe("function"); expect(typeof snm.fromDecimal).toBe("function"); }); it("can convert whole decimal numbers greater than one to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(3)).toBe("3e0"); expect(snm.fromDecimal(500)).toBe("5e2"); expect(snm.fromDecimal(10000000)).toBe("1e7"); expect(snm.fromDecimal(3141592654)).toBe("3.141592654e9"); expect(snm.fromDecimal(12345)).toBe("1.2345e4"); }); it("can convert fractional decimal numbers greater than one to scientific notation", function() { var snm = new ScientificNotationMapper(); expect(snm.fromDecimal(1.2345)).toBe("1.2345e0"); expect(snm.fromDecimal(12.345)).toBe("1.2345e1"); expect(snm.fromDecimal(123.45)).toBe("1.2345e2"); expect(snm.fromDecimal(1234.5)).toBe("1.2345e3"); expect(snm.fromDecimal(984.18000)).toBe("9.8418e2"); expect(snm.fromDecimal(984.180001)).toBe("9.84180001e2"); }); });
12156ddce5ddf2a74645cf6837fcfb20e9f42344
README.md
README.md
OMERO.web Virtual Microscope ============================ Virtual Microscope OMERO.web extension application Requirements ============ * OMERO 5.6.0 or later Installation ============ $ pip install omero-virtual-microscope Add virtual-microscope custom app to your installed web apps: $ bin/omero config append omero.web.apps '"virtualmicroscope"' NB: note that double quotes are wrapped by single quotes. Windows users will need to do $ bin\omero config append omero.web.apps "\"virtualmicroscope\"" Redirect to post-login page $ bin/omero config set omero.web.login_redirect '{"redirect": ["webindex"], "viewname": "webindex_custom", "query_string": "", "args": []}' Now start up OMERO.web as normal.
OMERO.web Virtual Microscope ============================ Virtual Microscope OMERO.web extension application Requirements ============ * OMERO 5.6.0 or later Installation ============ $ pip install omero-virtual-microscope Add virtual-microscope custom app to your installed web apps: $ bin/omero config append omero.web.apps '"virtualmicroscope"' NB: note that double quotes are wrapped by single quotes. Windows users will need to do $ bin\omero config append omero.web.apps "\"virtualmicroscope\"" Redirect to post-login page $ bin/omero config set omero.web.login_redirect '{"redirect": ["webindex"], "viewname": "webindex_custom"}' Now start up OMERO.web as normal.
Revert "Provide values for "args" & "query_string" to login_redirect"
Revert "Provide values for "args" & "query_string" to login_redirect" This reverts commit 39ca254ac59634f3018d921f678273db6d9bacc7 due to https://github.com/ome/openmicroscopy/pull/6061.
Markdown
agpl-3.0
openmicroscopy/virtual-microscope,openmicroscopy/virtual-microscope
markdown
## Code Before: OMERO.web Virtual Microscope ============================ Virtual Microscope OMERO.web extension application Requirements ============ * OMERO 5.6.0 or later Installation ============ $ pip install omero-virtual-microscope Add virtual-microscope custom app to your installed web apps: $ bin/omero config append omero.web.apps '"virtualmicroscope"' NB: note that double quotes are wrapped by single quotes. Windows users will need to do $ bin\omero config append omero.web.apps "\"virtualmicroscope\"" Redirect to post-login page $ bin/omero config set omero.web.login_redirect '{"redirect": ["webindex"], "viewname": "webindex_custom", "query_string": "", "args": []}' Now start up OMERO.web as normal. ## Instruction: Revert "Provide values for "args" & "query_string" to login_redirect" This reverts commit 39ca254ac59634f3018d921f678273db6d9bacc7 due to https://github.com/ome/openmicroscopy/pull/6061. ## Code After: OMERO.web Virtual Microscope ============================ Virtual Microscope OMERO.web extension application Requirements ============ * OMERO 5.6.0 or later Installation ============ $ pip install omero-virtual-microscope Add virtual-microscope custom app to your installed web apps: $ bin/omero config append omero.web.apps '"virtualmicroscope"' NB: note that double quotes are wrapped by single quotes. Windows users will need to do $ bin\omero config append omero.web.apps "\"virtualmicroscope\"" Redirect to post-login page $ bin/omero config set omero.web.login_redirect '{"redirect": ["webindex"], "viewname": "webindex_custom"}' Now start up OMERO.web as normal.
ea82d61def4d3e9be56cc4a3c8f2b01c5ff4c3e1
server/app.js
server/app.js
export default {}; var Twitter = require('twit-stream'); var keys =require('./authentication.js'); var stream = new Twitter(keys).stream('statuses/sample'); /// connection configuration for stream object to connect to API stream.on('connected', function(msg) { console.log('Connection successful.'); }); stream.on('reconnect', function(req, res, interval) { console.log('Reconnecting in ' + (interval / 1e3) + ' seconds.'); }); stream.on('disconnect', function(msg) { console.log('Twitter disconnection message'); console.log(msg); });
export default {}; var Twitter = require('twit-stream'); var keys =require('./authentication.js'); var stream = new Twitter(keys).stream('statuses/sample'); /// connection configuration for stream object to connect to API stream.on('connected', function(msg) { console.log('Connection successful.'); }); stream.on('reconnect', function(req, res, interval) { console.log('Reconnecting in ' + (interval / 1e3) + ' seconds.'); }); stream.on('disconnect', function(msg) { console.log('Twitter disconnection message'); console.log(msg); }); // connection returns if twitter cuts off connection and why stream.on('warning', function(message) { console.warning('Yikes! a Warning message:'); console.warning(message); }); stream.on('limit', function(message) { console.log('WOAH! issued a limit message:'); console.log(message) }) stream.on('disconnect', function(message) { console.log('NOPE! disconnection message'); console.log(message); });
Add event return listeners for Twitter warning,limit and discnct
Add event return listeners for Twitter warning,limit and discnct considering the amount of information you will be processing it is more imperative for you to take into account and work on being able to keep track of what twitters feedback is going to be. Thus created a series of event listeners for message feedback from twitter in the case.
JavaScript
isc
edwardpark/d3withtwitterstream,edwardpark/d3withtwitterstream
javascript
## Code Before: export default {}; var Twitter = require('twit-stream'); var keys =require('./authentication.js'); var stream = new Twitter(keys).stream('statuses/sample'); /// connection configuration for stream object to connect to API stream.on('connected', function(msg) { console.log('Connection successful.'); }); stream.on('reconnect', function(req, res, interval) { console.log('Reconnecting in ' + (interval / 1e3) + ' seconds.'); }); stream.on('disconnect', function(msg) { console.log('Twitter disconnection message'); console.log(msg); }); ## Instruction: Add event return listeners for Twitter warning,limit and discnct considering the amount of information you will be processing it is more imperative for you to take into account and work on being able to keep track of what twitters feedback is going to be. Thus created a series of event listeners for message feedback from twitter in the case. ## Code After: export default {}; var Twitter = require('twit-stream'); var keys =require('./authentication.js'); var stream = new Twitter(keys).stream('statuses/sample'); /// connection configuration for stream object to connect to API stream.on('connected', function(msg) { console.log('Connection successful.'); }); stream.on('reconnect', function(req, res, interval) { console.log('Reconnecting in ' + (interval / 1e3) + ' seconds.'); }); stream.on('disconnect', function(msg) { console.log('Twitter disconnection message'); console.log(msg); }); // connection returns if twitter cuts off connection and why stream.on('warning', function(message) { console.warning('Yikes! a Warning message:'); console.warning(message); }); stream.on('limit', function(message) { console.log('WOAH! issued a limit message:'); console.log(message) }) stream.on('disconnect', function(message) { console.log('NOPE! disconnection message'); console.log(message); });
1de801a7120e0e8a2c7614265880452a20a38a29
test/Driver/clang-g-opts.c
test/Driver/clang-g-opts.c
// RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g
// RUN: %clang -S -v -o %t %s 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g 2>&1 | FileCheck %s // CHECK: -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | FileCheck %s // CHECK: -g
Move a non portable test to FileCheck, from Jonathan Gray!
Move a non portable test to FileCheck, from Jonathan Gray! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@155874 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang
c
## Code Before: // RUN: %clang -S -v -o %t %s 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g 2>&1 | grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g ## Instruction: Move a non portable test to FileCheck, from Jonathan Gray! git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@155874 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // RUN: %clang -S -v -o %t %s 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g 2>&1 | FileCheck %s // CHECK: -g // RUN: %clang -S -v -o %t %s -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s // CHECK-NOT: -g // RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | FileCheck %s // CHECK: -g
3437e530d9ed260d2b0a3aab495fe0d91c594ed4
types/electron-store/electron-store-tests.ts
types/electron-store/electron-store-tests.ts
import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete('foo'); electronStore.get('foo'); electronStore.get('foo', 42); electronStore.has('foo'); electronStore.clear(); electronStore.openInEditor(); electronStore.size; electronStore.store; electronStore.store = { foo: 'bar' }; electronStore.path;
import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete('foo'); electronStore.get('foo'); electronStore.get('foo', 42); electronStore.has('foo'); electronStore.clear(); electronStore.openInEditor(); electronStore.size; electronStore.store; electronStore.store = { foo: 'bar' }; electronStore.path; interface SampleStore { enabled: boolean; interval: number; } const typedElectronStore = new ElectronStore<SampleStore>({ defaults: { enabled: true, interval: 30000, }, }); const interval: number = typedElectronStore.get('interval'); const enabled = false; typedElectronStore.set('enabled', enabled); typedElectronStore.set({ enabled: true, interval: 10000, });
Add tests for typed store
Add tests for typed store
TypeScript
mit
georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,chrootsu/DefinitelyTyped,one-pieces/DefinitelyTyped,rolandzwaga/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,chrootsu/DefinitelyTyped,mcliment/DefinitelyTyped,arusakov/DefinitelyTyped,rolandzwaga/DefinitelyTyped
typescript
## Code Before: import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete('foo'); electronStore.get('foo'); electronStore.get('foo', 42); electronStore.has('foo'); electronStore.clear(); electronStore.openInEditor(); electronStore.size; electronStore.store; electronStore.store = { foo: 'bar' }; electronStore.path; ## Instruction: Add tests for typed store ## Code After: import ElectronStore = require('electron-store'); new ElectronStore({ defaults: {} }); new ElectronStore({ name: 'myConfiguration', cwd: 'unicorn' }); const electronStore = new ElectronStore(); electronStore.set('foo', 'bar'); electronStore.set({ foo: 'bar', foo2: 'bar2' }); electronStore.delete('foo'); electronStore.get('foo'); electronStore.get('foo', 42); electronStore.has('foo'); electronStore.clear(); electronStore.openInEditor(); electronStore.size; electronStore.store; electronStore.store = { foo: 'bar' }; electronStore.path; interface SampleStore { enabled: boolean; interval: number; } const typedElectronStore = new ElectronStore<SampleStore>({ defaults: { enabled: true, interval: 30000, }, }); const interval: number = typedElectronStore.get('interval'); const enabled = false; typedElectronStore.set('enabled', enabled); typedElectronStore.set({ enabled: true, interval: 10000, });
67a3d8a5fb36dddc8fa0cf45cd218ace8acd5df6
yum/defaults/main.yaml
yum/defaults/main.yaml
--- # # yum # v_yum_common_packages: - bash-completion - git - lsof - mailx - net-tools - nmap - tmux - tree - vim # # yum-cron # v_yum_cron_update_cmd: "minimal" v_yum_cron_update_cmd_hourly: "security" v_yum_cron_update_messages: "yes" v_yum_cron_download_updates: "yes" v_yum_cron_apply_updates: "yes" v_yum_cron_random_sleep: 0 v_yum_cron_emit_via: "email" v_yum_cron_email_from: "root@localhost" v_yum_cron_email_to: "root" v_yum_cron_email_host: "localhost" # # docker # v_yum_docker_repo: https://download.docker.com/linux/centos/docker-ce.repo v_yum_docker_prerequisite_packages: - device-mapper-persistent-data - lvm2 - python-docker-py - yum-utils v_yum_docker_packages: - docker-ce
--- # # yum # v_yum_common_packages: - bash-completion - bind-utils - git - lsof - mailx - net-tools - nmap - ruby - rubygem-bundler - tmux - tree - vim - whois # # yum-cron # v_yum_cron_update_cmd: "minimal" v_yum_cron_update_cmd_hourly: "security" v_yum_cron_update_messages: "yes" v_yum_cron_download_updates: "yes" v_yum_cron_apply_updates: "yes" v_yum_cron_random_sleep: 0 v_yum_cron_emit_via: "email" v_yum_cron_email_from: "root@localhost" v_yum_cron_email_to: "root" v_yum_cron_email_host: "localhost" # # docker # v_yum_docker_repo: https://download.docker.com/linux/centos/docker-ce.repo v_yum_docker_prerequisite_packages: - device-mapper-persistent-data - lvm2 - python-docker-py - yum-utils v_yum_docker_packages: - docker-ce
Add extra commonly used utils.
Add extra commonly used utils.
YAML
mit
craighurley/ansible-roles,craighurley/ansible-roles
yaml
## Code Before: --- # # yum # v_yum_common_packages: - bash-completion - git - lsof - mailx - net-tools - nmap - tmux - tree - vim # # yum-cron # v_yum_cron_update_cmd: "minimal" v_yum_cron_update_cmd_hourly: "security" v_yum_cron_update_messages: "yes" v_yum_cron_download_updates: "yes" v_yum_cron_apply_updates: "yes" v_yum_cron_random_sleep: 0 v_yum_cron_emit_via: "email" v_yum_cron_email_from: "root@localhost" v_yum_cron_email_to: "root" v_yum_cron_email_host: "localhost" # # docker # v_yum_docker_repo: https://download.docker.com/linux/centos/docker-ce.repo v_yum_docker_prerequisite_packages: - device-mapper-persistent-data - lvm2 - python-docker-py - yum-utils v_yum_docker_packages: - docker-ce ## Instruction: Add extra commonly used utils. ## Code After: --- # # yum # v_yum_common_packages: - bash-completion - bind-utils - git - lsof - mailx - net-tools - nmap - ruby - rubygem-bundler - tmux - tree - vim - whois # # yum-cron # v_yum_cron_update_cmd: "minimal" v_yum_cron_update_cmd_hourly: "security" v_yum_cron_update_messages: "yes" v_yum_cron_download_updates: "yes" v_yum_cron_apply_updates: "yes" v_yum_cron_random_sleep: 0 v_yum_cron_emit_via: "email" v_yum_cron_email_from: "root@localhost" v_yum_cron_email_to: "root" v_yum_cron_email_host: "localhost" # # docker # v_yum_docker_repo: https://download.docker.com/linux/centos/docker-ce.repo v_yum_docker_prerequisite_packages: - device-mapper-persistent-data - lvm2 - python-docker-py - yum-utils v_yum_docker_packages: - docker-ce
85c8c5c630096aad070a7231c65e26998031e20d
Library/Homebrew/test/formula_test.rb
Library/Homebrew/test/formula_test.rb
$:.push(File.expand_path(__FILE__+'/../..')) require 'test/unit' require 'global' require 'formula' require 'utils' class WellKnownCodeIssues <Test::Unit::TestCase def test_formula_names # Formula names should be valid nostdout do Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f| assert_nothing_raised do Formula.factory f end end end end def test_for_commented_out_cmake # Formulas shouldn't contain commented-out cmake code from the default template Formulary.paths.each do |f| result = `grep "# depends_on 'cmake'" "#{f}"`.strip assert_equal('', result, "Commented template code still in #{f}") end end def test_for_misquoted_prefix # Prefix should not have single quotes if the system args are already separated target_string = "[\\\"]--prefix=[\\']" Formulary.paths.each do |f| result = `grep -e "#{target_string}" "#{f}"`.strip assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}") end end end
$:.push(File.expand_path(__FILE__+'/../..')) require 'test/unit' require 'global' require 'formula' require 'utils' class WellKnownCodeIssues <Test::Unit::TestCase def test_formula_names # Formula names should be valid nostdout do Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f| assert_nothing_raised do Formula.factory f end end end end def test_for_commented_out_cmake # Formulas shouldn't contain commented-out cmake code from the default template Formulary.paths.each do |f| result = `grep "# depends_on 'cmake'" "#{f}"`.strip assert_equal('', result, "Commented template code still in #{f}") end end def test_for_misquoted_prefix # Prefix should not have single quotes if the system args are already separated target_string = "[\\\"]--prefix=[\\']" Formulary.paths.each do |f| result = `grep -e "#{target_string}" "#{f}"`.strip assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}") end end def test_for_crufy_sourceforge_url # Don't specify mirror for SourceForge downloads Formulary.paths.each do |f| result = `grep "\?use_mirror=" "#{f}"`.strip assert_equal('', result, "Remove 'use_mirror' from url for #{f}") end end end
Add formula check for crufy SourceForge URLs.
Add formula check for crufy SourceForge URLs.
Ruby
bsd-2-clause
callahad/homebrew,bbhoss/homebrew,xb123456456/homebrew,tbeckham/homebrew,tomekr/homebrew,bukzor/homebrew,jcassiojr/homebrew,davydden/linuxbrew,jmtd/homebrew,romejoe/linuxbrew,erezny/homebrew,rosalsm/homebrew,tomyun/homebrew,cprecioso/homebrew,digiter/linuxbrew,shazow/homebrew,mobileoverlord/homebrew-1,thuai/boxen,robotblake/homebrew,knpwrs/homebrew,n8henrie/homebrew,Kentzo/homebrew,BrewTestBot/homebrew,jianjin/homebrew,6100590/homebrew,s6stuc/homebrew,patrickmckenna/homebrew,dplarson/homebrew,mindrones/homebrew,mtfelix/homebrew,skatsuta/homebrew,voxxit/homebrew,michaKFromParis/homebrew-sparks,sigma-random/homebrew,barn/homebrew,apjanke/homebrew,creack/homebrew,AntonioMeireles/homebrew,mndrix/homebrew,AGWA-forks/homebrew,ear/homebrew,polamjag/homebrew,AlekSi/homebrew,Klozz/homebrew,pampata/homebrew,verbitan/homebrew,will/homebrew,GeekHades/homebrew,tpot/homebrew,trskop/linuxbrew,h3r2on/homebrew,nkolomiec/homebrew,bjlxj2008/homebrew,jkarneges/homebrew,MrChen2015/homebrew,polamjag/homebrew,kbrock/homebrew,mapbox/homebrew,mroch/homebrew,exicon/homebrew,cscetbon/homebrew,poindextrose/homebrew,rlister/homebrew,ablyler/homebrew,dlo/homebrew,zhimsel/homebrew,gnawhleinad/homebrew,mobileoverlord/homebrew-1,adamliter/linuxbrew,mroch/homebrew,creationix/homebrew,akshayvaidya/homebrew,aaronwolen/homebrew,theopolis/homebrew,mapbox/homebrew,rtyley/homebrew,MSch/homebrew,gunnaraasen/homebrew,oneillkza/linuxbrew,TrevorSayre/homebrew,tbetbetbe/linuxbrew,DoomHammer/linuxbrew,cmvelo/homebrew,brotbert/homebrew,chabhishek123/homebrew,andyshinn/homebrew,windoze/homebrew,bl1nk/homebrew,thebyrd/homebrew,robotblake/homebrew,nshemonsky/homebrew,DDShadoww/homebrew,mhartington/homebrew,bchatard/homebrew,zenazn/homebrew,rs/homebrew,ento/homebrew,MartinSeeler/homebrew,mkrapp/homebrew,IsmailM/linuxbrew,drewwells/homebrew,MartinSeeler/homebrew,missingcharacter/homebrew,alexreg/homebrew,teslamint/homebrew,kbinani/homebrew,bluca/homebrew,mhartington/homebrew,neronplex/homebrew,jeremiahyan/homebrew,jsallis/homebrew,polishgeeks/homebrew,gcstang/homebrew,mattfarina/homebrew,jpascal/homebrew,AICIDNN/homebrew,michaKFromParis/homebrew-sparks,tghs/linuxbrew,FiMka/homebrew,marcusandre/homebrew,jgelens/homebrew,gabelevi/homebrew,ilovezfs/homebrew,max-horvath/homebrew,changzuozhen/homebrew,dpalmer93/homebrew,brevilo/linuxbrew,zorosteven/homebrew,poindextrose/homebrew,kim0/homebrew,jbeezley/homebrew,mbi/homebrew,RSamokhin/homebrew,redpen-cc/homebrew,cooltheo/homebrew,patrickmckenna/homebrew,nshemonsky/homebrew,iostat/homebrew2,voxxit/homebrew,recruit-tech/homebrew,windoze/homebrew,bendoerr/homebrew,scorphus/homebrew,cesar2535/homebrew,zebMcCorkle/homebrew,bchatard/homebrew,dunn/homebrew,linse073/homebrew,chabhishek123/homebrew,arcivanov/linuxbrew,shazow/homebrew,John-Colvin/homebrew,ericfischer/homebrew,mprobst/homebrew,jwillemsen/linuxbrew,oliviertilmans/homebrew,ktaragorn/homebrew,Gasol/homebrew,jmstacey/homebrew,yonglehou/homebrew,amenk/linuxbrew,ekmett/homebrew,mindrones/homebrew,aguynamedryan/homebrew,eugenesan/homebrew,mmizutani/homebrew,zchee/homebrew,wfalkwallace/homebrew,Chilledheart/homebrew,okuramasafumi/homebrew,ls2uper/homebrew,iggyvolz/linuxbrew,jesboat/homebrew,outcoldman/homebrew,liuquansheng47/Homebrew,Linuxbrew/linuxbrew,joschi/homebrew,dkotvan/homebrew,nkolomiec/homebrew,filcab/homebrew,ryanfb/homebrew,jeromeheissler/homebrew,jcassiojr/homebrew,koraktor/homebrew,wfarr/homebrew,getgauge/homebrew,miketheman/homebrew,seeden/homebrew,jamer/homebrew,jimmy906/homebrew,haihappen/homebrew,oneillkza/linuxbrew,Austinpb/homebrew,elamc/homebrew,LaurentFough/homebrew,ssp/homebrew,kashif/homebrew,ssgelm/homebrew,arnested/homebrew,calmez/homebrew,jiaoyigui/homebrew,yumitsu/homebrew,jmstacey/homebrew,samplecount/homebrew,trombonehero/homebrew,kimhunter/homebrew,recruit-tech/homebrew,BrewTestBot/homebrew,lucas-clemente/homebrew,samplecount/homebrew,Asuranceturix/homebrew,dalanmiller/homebrew,lhahne/homebrew,vinodkone/homebrew,aaronwolen/homebrew,dambrisco/homebrew,atsjj/homebrew,phatblat/homebrew,carlmod/homebrew,MartinDelille/homebrew,mavimo/homebrew,bkonosky/homebrew,youtux/homebrew,pdpi/homebrew,pinkpolygon/homebrew,akupila/homebrew,alex-zhang/homebrew,boshnivolo/homebrew,alebcay/homebrew,bmroberts1987/homebrew,xinlehou/homebrew,sigma-random/homebrew,linkinpark342/homebrew,bcwaldon/homebrew,qskycolor/homebrew,idolize/homebrew,dstndstn/homebrew,ralic/homebrew,AtnNn/homebrew,galaxy001/homebrew,brotbert/homebrew,ear/homebrew,giffels/homebrew,tany-ovcharenko/depot,georgschoelly/homebrew,cesar2535/homebrew,tjt263/homebrew,jmstacey/homebrew,jonafato/homebrew,sugryo/homebrew,tomguiter/homebrew,LegNeato/homebrew,goodcodeguy/homebrew,moltar/homebrew,dalinaum/homebrew,rneatherway/homebrew,craig5/homebrew,mokkun/homebrew,pnorman/homebrew,tstack/homebrew,mindrones/homebrew,ndimiduk/homebrew,retrography/homebrew,recruit-tech/homebrew,jack-and-rozz/linuxbrew,alexandrecormier/homebrew,cjheath/homebrew,tghs/linuxbrew,SnoringFrog/homebrew,malmaud/homebrew,keith/homebrew,tuedan/homebrew,10sr/linuxbrew,kevinastone/homebrew,Cottser/homebrew,cristobal/homebrew,tomas/homebrew,zorosteven/homebrew,barn/homebrew,adriancole/homebrew,kad/homebrew,frickler01/homebrew,geoff-codes/homebrew,gnawhleinad/homebrew,megahall/homebrew,vigo/homebrew,dmarkrollins/homebrew,wolfd/homebrew,mndrix/homebrew,AICIDNN/homebrew,boneskull/homebrew,andyshinn/homebrew,oliviertoupin/homebrew,ainstushar/homebrew,egentry/homebrew,alexandrecormier/homebrew,kodabb/homebrew,DarthGandalf/homebrew,supriyantomaftuh/homebrew,ExtremeMan/homebrew,julienXX/homebrew,scpeters/homebrew,tjschuck/homebrew,brianmhunt/homebrew,georgschoelly/homebrew,h3r2on/homebrew,adamchainz/homebrew,chenflat/homebrew,cffk/homebrew,kimhunter/homebrew,pvrs12/homebrew,protomouse/homebrew,Homebrew/homebrew,NfNitLoop/homebrew,mommel/homebrew,skinny-framework/homebrew,MSch/homebrew,gabelevi/homebrew,ebardsley/homebrew,jedahan/homebrew,gildegoma/homebrew,sideci-sample/sideci-sample-homebrew,iblueer/homebrew,chkuendig/homebrew,sjackman/linuxbrew,ortho/homebrew,Red54/homebrew,Dreysman/homebrew,dconnolly/homebrew,kenips/homebrew,dalanmiller/homebrew,khwon/homebrew,bigbes/homebrew,OJFord/homebrew,bwmcadams/homebrew,bettyDes/homebrew,Gasol/homebrew,telamonian/linuxbrew,afh/homebrew,xcezx/homebrew,danieroux/homebrew,sje30/homebrew,oliviertoupin/homebrew,danielmewes/homebrew,dai0304/homebrew,aaronwolen/homebrew,khwon/homebrew,neronplex/homebrew,ehogberg/homebrew,barn/homebrew,PikachuEXE/homebrew,indera/homebrew,jacobsa/homebrew,fabianfreyer/homebrew,polishgeeks/homebrew,klazuka/homebrew,bendoerr/homebrew,tseven/homebrew,slnovak/homebrew,seegno-forks/homebrew,markpeek/homebrew,elyscape/homebrew,AGWA-forks/homebrew,tylerball/homebrew,robrix/homebrew,DoomHammer/linuxbrew,dkotvan/homebrew,ptolemarch/homebrew,halloleo/homebrew,southwolf/homebrew,polamjag/homebrew,indrajitr/homebrew,mtfelix/homebrew,kodabb/homebrew,optikfluffel/homebrew,hanxue/homebrew,sublimino/linuxbrew,syhw/homebrew,docwhat/homebrew,jehutymax/homebrew,gunnaraasen/homebrew,protomouse/homebrew,joshua-rutherford/homebrew,onlynone/homebrew,mathieubolla/homebrew,xanderlent/homebrew,mommel/homebrew,dreid93/homebrew,ctate/autocode-homebrew,raphaelcohn/homebrew,mcolic/homebrew,arrowcircle/homebrew,alexreg/homebrew,xyproto/homebrew,AtkinsChang/homebrew,josa42/homebrew,felixonmars/homebrew,nandub/homebrew,jose-cieni-movile/homebrew,tuxu/homebrew,auvi/homebrew,blogabe/homebrew,lvicentesanchez/linuxbrew,jasonm23/homebrew,Krasnyanskiy/homebrew,jbpionnier/homebrew,calmez/homebrew,tbeckham/homebrew,kyanny/homebrew,gicmo/homebrew,JerroldLee/homebrew,Govinda-Fichtner/homebrew,woodruffw/homebrew-test,LeonB/linuxbrew,jlisic/linuxbrew,Austinpb/homebrew,dongcarl/homebrew,kilojoules/homebrew,RandyMcMillan/homebrew,jf647/homebrew,oliviertilmans/homebrew,jpascal/homebrew,e-jigsaw/homebrew,jessamynsmith/homebrew,codeout/homebrew,princeofdarkness76/linuxbrew,cbenhagen/homebrew,wfarr/homebrew,jeromeheissler/homebrew,tavisto/homebrew,josa42/homebrew,nkolomiec/homebrew,oliviertilmans/homebrew,yoshida-mediba/homebrew,srikalyan/homebrew,bukzor/homebrew,Gutek/homebrew,kashif/homebrew,exicon/homebrew,xuebinglee/homebrew,stoshiya/homebrew,haosdent/homebrew,sideci-sample/sideci-sample-homebrew,dholm/linuxbrew,phrase/homebrew,smarek/homebrew,waynegraham/homebrew,stoshiya/homebrew,packetcollision/homebrew,patrickmckenna/homebrew,timomeinen/homebrew,deployable/homebrew,razamatan/homebrew,hikaruworld/homebrew,6100590/homebrew,BrewTestBot/homebrew,aguynamedryan/homebrew,mciantyre/homebrew,bendemaree/homebrew,joschi/homebrew,alex/homebrew,manphiz/homebrew,dambrisco/homebrew,theckman/homebrew,boneskull/homebrew,nshemonsky/homebrew,manphiz/homebrew,MartinSeeler/homebrew,skatsuta/homebrew,jessamynsmith/homebrew,TaylorMonacelli/homebrew,sdebnath/homebrew,deorth/homebrew,Ivanopalas/homebrew,sjackman/linuxbrew,andyshinn/homebrew,creationix/homebrew,denvazh/homebrew,bukzor/linuxbrew,haf/homebrew,ehamberg/homebrew,linkinpark342/homebrew,ericzhou2008/homebrew,goodcodeguy/homebrew,royalwang/homebrew,benswift404/homebrew,jkarneges/homebrew,yazuuchi/homebrew,jwillemsen/linuxbrew,bmroberts1987/homebrew,ebouaziz/linuxbrew,jcassiojr/homebrew,osimola/homebrew,marcoceppi/homebrew,zeezey/homebrew,whitej125/homebrew,mcolic/homebrew,elasticdog/homebrew,bruno-/homebrew,lvicentesanchez/homebrew,3van/homebrew,mkrapp/homebrew,Sachin-Ganesh/homebrew,coldeasy/homebrew,QuinnyPig/homebrew,ryanshaw/homebrew,outcoldman/homebrew,Ferrari-lee/homebrew,oncletom/homebrew,dstndstn/homebrew,jf647/homebrew,zachmayer/homebrew,chabhishek123/homebrew,alexethan/homebrew,frozzare/homebrew,lucas-clemente/homebrew,msurovcak/homebrew,jarrettmeyer/homebrew,amarshall/homebrew,alanthing/homebrew,WangGL1985/homebrew,jbpionnier/homebrew,chkuendig/homebrew,sferik/homebrew,jeremiahyan/homebrew,oliviertilmans/homebrew,seegno-forks/homebrew,ainstushar/homebrew,Habbie/homebrew,baldwicc/homebrew,harsha-mudi/homebrew,utzig/homebrew,teslamint/homebrew,justjoheinz/homebrew,AtkinsChang/homebrew,guoxiao/homebrew,alex-courtis/homebrew,glowe/homebrew,robrix/homebrew,notDavid/homebrew,liamstask/homebrew,oschwald/homebrew,jimmy906/homebrew,dalanmiller/homebrew,francaguilar/homebrew,moltar/homebrew,alex/homebrew,durka/homebrew,winordie-47/linuxbrew1,asparagui/homebrew,a-b/homebrew,hongkongkiwi/homebrew,sorin-ionescu/homebrew,epixa/homebrew,dlo/homebrew,pgr0ss/homebrew,influxdata/homebrew,jmagnusson/homebrew,mapbox/homebrew,paour/homebrew,benswift404/homebrew,AntonioMeireles/homebrew,osimola/homebrew,amenk/linuxbrew,ralic/homebrew,kbrock/homebrew,bl1nk/homebrew,feugenix/homebrew,Monits/homebrew,Monits/homebrew,raphaelcohn/homebrew,eighthave/homebrew,frodeaa/homebrew,princeofdarkness76/homebrew,dgageot/homebrew,harelba/homebrew,lvicentesanchez/linuxbrew,MartinSeeler/homebrew,anders/homebrew,dholm/homebrew,theeternalsw0rd/homebrew,jeremiahyan/homebrew,ryanmt/homebrew,darknessomi/homebrew,rgbkrk/homebrew,virtuald/homebrew,kikuchy/homebrew,gunnaraasen/homebrew,jeffmo/homebrew,iostat/homebrew2,jingweno/homebrew,Ferrari-lee/homebrew,bidle/homebrew,sjackman/linuxbrew,ento/homebrew,adevress/homebrew,GeekHades/homebrew,calmez/homebrew,grmartin/homebrew,liuquansheng47/Homebrew,hikaruworld/homebrew,muellermartin/homebrew,teslamint/homebrew,amjith/homebrew,wangranche/homebrew,rcombs/homebrew,alanthing/homebrew,rwstauner/homebrew,jpsim/homebrew,smarek/homebrew,stevenjack/homebrew,cosmo0920/homebrew,rlister/homebrew,stevenjack/homebrew,dutchcoders/homebrew,slyphon/homebrew,schuyler/homebrew,caputomarcos/linuxbrew,davidmalcolm/homebrew,pullreq/homebrew,booi/homebrew,simsicon/homebrew,jamesdphillips/homebrew,zeezey/homebrew,kawanet/homebrew,Hasimir/homebrew,Spacecup/homebrew,rtyley/homebrew,southwolf/homebrew,tkelman/homebrew,Gui13/linuxbrew,pitatensai/homebrew,KenanSulayman/homebrew,MSch/homebrew,lrascao/homebrew,yangj1e/homebrew,elgertam/homebrew,pgr0ss/homebrew,alexreg/homebrew,joschi/homebrew,muellermartin/homebrew,RSamokhin/homebrew,pampata/homebrew,DDShadoww/homebrew,jbeezley/homebrew,KevinSjoberg/homebrew,ilidar/homebrew,imjerrybao/homebrew,dongcarl/homebrew,jmagnusson/homebrew,pinkpolygon/homebrew,benesch/homebrew,maxhope/homebrew,ctate/autocode-homebrew,silentbicycle/homebrew,elig/homebrew,zj568/homebrew,LinusU/homebrew,yangj1e/homebrew,DDShadoww/homebrew,brendanator/linuxbrew,pinkpolygon/homebrew,mtigas/homebrew,bchatard/homebrew,colindean/homebrew,sorin-ionescu/homebrew,sdebnath/homebrew,jconley/homebrew,chadcatlett/homebrew,johanhammar/homebrew,romejoe/linuxbrew,daviddavis/homebrew,alebcay/homebrew,joeyhoer/homebrew,e-jigsaw/homebrew,notDavid/homebrew,gnubila-france/linuxbrew,bigbes/homebrew,tehmaze-labs/homebrew,adriancole/homebrew,zoltansx/homebrew,gyaresu/homebrew,jesboat/homebrew,omriiluz/homebrew,ybott/homebrew,mciantyre/homebrew,slnovak/homebrew,jbpionnier/homebrew,chenflat/homebrew,Hs-Yeah/homebrew,tpot/homebrew,tany-ovcharenko/depot,utzig/homebrew,treyharris/homebrew,gcstang/homebrew,jonafato/homebrew,malmaud/homebrew,YOTOV-LIMITED/homebrew,karlhigley/homebrew,jab/homebrew,dconnolly/homebrew,zeha/homebrew,saketkc/linuxbrew,vigo/homebrew,JerroldLee/homebrew,bbhoss/homebrew,dirn/homebrew,tsaeger/homebrew,indrajitr/homebrew,zachmayer/homebrew,IsmailM/linuxbrew,pcottle/homebrew,brunchboy/homebrew,jbeezley/homebrew,WangGL1985/homebrew,miry/homebrew,tjschuck/homebrew,felixonmars/homebrew,yonglehou/homebrew,number5/homebrew,dholm/homebrew,jeffmo/homebrew,vinodkone/homebrew,bbahrami/homebrew,crystal/autocode-homebrew,finde/homebrew,lrascao/homebrew,AICIDNN/homebrew,jiashuw/homebrew,Noctem/homebrew,afdnlw/linuxbrew,akshayvaidya/homebrew,creationix/homebrew,lmontrieux/homebrew,ngoyal/homebrew,sachiketi/homebrew,tonyghita/homebrew,elyscape/homebrew,eighthave/homebrew,booi/homebrew,egentry/homebrew,oubiwann/homebrew,frodeaa/homebrew,haosdent/homebrew,baldwicc/homebrew,nathancahill/homebrew,sitexa/homebrew,esalling23/homebrew,MonCoder/homebrew,koraktor/homebrew,stevenjack/homebrew,kbinani/homebrew,zj568/homebrew,marcwebbie/homebrew,MonCoder/homebrew,ehogberg/homebrew,andrew-regan/homebrew,bcwaldon/homebrew,royhodgman/homebrew,ktheory/homebrew,pdxdan/homebrew,anders/homebrew,rillian/homebrew,jpscaletti/homebrew,bbahrami/homebrew,jehutymax/homebrew,jkarneges/homebrew,marcoceppi/homebrew,Angeldude/linuxbrew,dai0304/homebrew,Austinpb/homebrew,manphiz/homebrew,msurovcak/homebrew,jab/homebrew,mgiglia/homebrew,dunn/homebrew,idolize/homebrew,kwadade/LearnRuby,feelpp/homebrew,songjizu001/homebrew,danpalmer/homebrew,protomouse/homebrew,Sachin-Ganesh/homebrew,reelsense/linuxbrew,wfalkwallace/homebrew,rcombs/homebrew,dalguji/homebrew,drbenmorgan/linuxbrew,menivaitsi/homebrew,gildegoma/homebrew,kashif/homebrew,henry0312/homebrew,kim0/homebrew,tjschuck/homebrew,joshfriend/homebrew,qorelanguage/homebrew,arcivanov/linuxbrew,iggyvolz/linuxbrew,a1dutch/homebrew,drbenmorgan/linuxbrew,jkarneges/homebrew,oubiwann/homebrew,jack-and-rozz/linuxbrew,tzudot/homebrew,daviddavis/homebrew,hikaruworld/homebrew,kilojoules/homebrew,adamliter/homebrew,Moisan/homebrew,stevenjack/homebrew,s6stuc/homebrew,tjnycum/homebrew,tomekr/homebrew,ryanfb/homebrew,vinicius5581/homebrew,zchee/homebrew,DoomHammer/linuxbrew,John-Colvin/homebrew,3van/homebrew,oschwald/homebrew,saketkc/linuxbrew,jackmcgreevy/homebrew,quantumsteve/homebrew,tutumcloud/homebrew,Red54/homebrew,LaurentFough/homebrew,pwnall/homebrew,NfNitLoop/homebrew,ianbrandt/homebrew,dconnolly/homebrew,nysthee/homebrew,CNA-Bld/homebrew,cooltheo/homebrew,marcwebbie/homebrew,bcomnes/homebrew,danielfariati/homebrew,scpeters/homebrew,srikalyan/homebrew,dunn/homebrew,catap/homebrew,SnoringFrog/homebrew,erezny/homebrew,2inqui/homebrew,feelpp/homebrew,ffleming/homebrew,ls2uper/homebrew,tschoonj/homebrew,davydden/linuxbrew,ajshort/homebrew,peteristhegreat/homebrew,sugryo/homebrew,klazuka/homebrew,mactkg/homebrew,dtan4/homebrew,lvicentesanchez/linuxbrew,timsutton/homebrew,mpfz0r/homebrew,ahihi/tigerbrew,andreyto/homebrew,chfast/homebrew,thuai/boxen,LonnyGomes/homebrew,youtux/homebrew,lucas-clemente/homebrew,andy12530/homebrew,ngoldbaum/homebrew,linkinpark342/homebrew,nju520/homebrew,manphiz/homebrew,a-b/homebrew,Noctem/homebrew,AlekSi/homebrew,hyokosdeveloper/linuxbrew,bendemaree/homebrew,whitej125/homebrew,SampleLiao/homebrew,maxhope/homebrew,e-jigsaw/homebrew,sakra/homebrew,kidaa/homebrew,boneskull/homebrew,tuxu/homebrew,odekopoon/homebrew,mroch/homebrew,keithws/homebrew,mattbostock/homebrew,Drewshg312/homebrew,Moisan/homebrew,hakamadare/homebrew,esamson/homebrew,jasonm23/homebrew,davidmalcolm/homebrew,buzzedword/homebrew,bright-sparks/homebrew,valkjsaaa/homebrew,QuinnyPig/homebrew,miry/homebrew,Originate/homebrew,dlesaca/homebrew,phatblat/homebrew,hyuni/homebrew,mtfelix/homebrew,chkuendig/homebrew,AlexejK/homebrew,paour/homebrew,princeofdarkness76/linuxbrew,nelstrom/homebrew,lewismc/homebrew,lmontrieux/homebrew,thebyrd/homebrew,grmartin/homebrew,jacobsa/homebrew,Cutehacks/homebrew,cjheath/homebrew,GeekHades/homebrew,darknessomi/homebrew,drewpc/homebrew,tjhei/linuxbrew,anarchivist/homebrew,chiefy/homebrew,apjanke/homebrew,Gui13/linuxbrew,kodabb/homebrew,nshemonsky/homebrew,kevmoo/homebrew,verdurin/homebrew,chiefy/homebrew,peteristhegreat/homebrew,jbpionnier/homebrew,valkjsaaa/homebrew,guidomb/homebrew,andreyto/homebrew,princeofdarkness76/homebrew,6100590/homebrew,SuperNEMO-DBD/cadfaelbrew,odekopoon/homebrew,elgertam/homebrew,robrix/homebrew,tutumcloud/homebrew,yangj1e/homebrew,pampata/homebrew,ahihi/tigerbrew,neronplex/homebrew,mpfz0r/homebrew,ngoldbaum/homebrew,imjerrybao/homebrew,razamatan/homebrew,n8henrie/homebrew,dtrebbien/homebrew,gnawhleinad/homebrew,Cottser/homebrew,trombonehero/homebrew,hongkongkiwi/homebrew,ablyler/homebrew,bbahrami/homebrew,mbi/homebrew,zfarrell/homebrew,jbarker/homebrew,anders/homebrew,hyokosdeveloper/linuxbrew,influxdb/homebrew,lvicentesanchez/linuxbrew,bwmcadams/homebrew,dreid93/homebrew,cchacin/homebrew,bjlxj2008/homebrew,sometimesfood/homebrew,jgelens/homebrew,andyshinn/homebrew,jack-and-rozz/linuxbrew,shazow/homebrew,cnbin/homebrew,tdsmith/linuxbrew,ajshort/homebrew,craigbrad/homebrew,YOTOV-LIMITED/homebrew,harelba/homebrew,geoff-codes/homebrew,docwhat/homebrew,LeoCavaille/homebrew,alexandrecormier/homebrew,Ferrari-lee/homebrew,yyn835314557/homebrew,1zaman/homebrew,wfalkwallace/homebrew,petemcw/homebrew,silentbicycle/homebrew,rneatherway/homebrew,esalling23/homebrew,jessamynsmith/homebrew,iandennismiller/homebrew,cscetbon/homebrew,LaurentFough/homebrew,iandennismiller/homebrew,kbinani/homebrew,rlister/homebrew,AntonioMeireles/homebrew,caijinyan/homebrew,tschoonj/homebrew,tomyun/homebrew,TaylorMonacelli/homebrew,blogabe/homebrew,apjanke/homebrew,jamesdphillips/homebrew,Angeldude/linuxbrew,3van/homebrew,rillian/homebrew,SampleLiao/homebrew,craig5/homebrew,ssgelm/homebrew,barn/homebrew,kvs/homebrew,mattprowse/homebrew,kyanny/homebrew,OJFord/homebrew,kwadade/LearnRuby,jamesdphillips/homebrew,ened/homebrew,hakamadare/homebrew,zenazn/homebrew,kikuchy/homebrew,getgauge/homebrew,craig5/homebrew,jlisic/linuxbrew,IsmailM/linuxbrew,morevalily/homebrew,markpeek/homebrew,cffk/homebrew,haf/homebrew,darknessomi/homebrew,emilyst/homebrew,sublimino/linuxbrew,RandyMcMillan/homebrew,iamcharp/homebrew,tdsmith/linuxbrew,galaxy001/homebrew,glowe/homebrew,ryanshaw/homebrew,pigoz/homebrew,pitatensai/homebrew,Russell91/homebrew,tghs/linuxbrew,gijzelaerr/homebrew,wrunnery/homebrew,alanthing/homebrew,hermansc/homebrew,Originate/homebrew,nelstrom/homebrew,lnr0626/homebrew,bkonosky/homebrew,avnit/EGroovy,qorelanguage/homebrew,epixa/homebrew,akshayvaidya/homebrew,alindeman/homebrew,5zzang/homebrew,mattfritz/homebrew,jsjohnst/homebrew,bluca/homebrew,thinker0/homebrew,dmarkrollins/homebrew,mmizutani/homebrew,kwilczynski/homebrew,zoltansx/homebrew,influxdata/homebrew,avnit/EGroovy,wolfd/homebrew,morevalily/homebrew,Homebrew/homebrew,MonCoder/homebrew,haf/homebrew,SteveClement/homebrew,MoSal/homebrew,afb/homebrew,djun-kim/homebrew,Originate/homebrew,Krasnyanskiy/homebrew,outcoldman/homebrew,seegno-forks/homebrew,lvh/homebrew,outcoldman/homebrew,rlhh/homebrew,JerroldLee/homebrew,theckman/homebrew,danieroux/homebrew,wfarr/homebrew,endelwar/homebrew,summermk/homebrew,filcab/homebrew,fabianschuiki/homebrew,mapbox/homebrew,missingcharacter/homebrew,supriyantomaftuh/homebrew,ExtremeMan/homebrew,kmiscia/homebrew,pedromaltez-forks/homebrew,brendanator/linuxbrew,jose-cieni-movile/homebrew,evanrs/homebrew,francaguilar/homebrew,dalanmiller/homebrew,hkwan003/homebrew,okuramasafumi/homebrew,sorin-ionescu/homebrew,catap/homebrew,rosalsm/homebrew,mciantyre/homebrew,cesar2535/homebrew,coldeasy/homebrew,rhendric/homebrew,tomas/homebrew,Lywangwenbin/homebrew,jpsim/homebrew,torgartor21/homebrew,kikuchy/homebrew,quantumsteve/homebrew,rwstauner/homebrew,freedryk/homebrew,yumitsu/homebrew,int3h/homebrew,AtkinsChang/homebrew,Homebrew/linuxbrew,brotbert/homebrew,blairham/homebrew,docwhat/homebrew,iamcharp/homebrew,aaronwolen/homebrew,timsutton/homebrew,caputomarcos/linuxbrew,PikachuEXE/homebrew,elgertam/homebrew,caijinyan/homebrew,timomeinen/homebrew,jpscaletti/homebrew,clemensg/homebrew,kim0/homebrew,bendemaree/homebrew,mttrb/homebrew,bettyDes/homebrew,dstftw/homebrew,aristiden7o/homebrew,pgr0ss/homebrew,thinker0/homebrew,sachiketi/homebrew,number5/homebrew,ssp/homebrew,Ivanopalas/homebrew,anarchivist/homebrew,higanworks/homebrew,scpeters/homebrew,bjorand/homebrew,jeremiahyan/homebrew,klatys/homebrew,tyrchen/homebrew,ingmarv/homebrew,anarchivist/homebrew,zeezey/homebrew,shazow/homebrew,jcassiojr/homebrew,avnit/EGroovy,verbitan/homebrew,afb/homebrew,onlynone/homebrew,dtan4/homebrew,TaylorMonacelli/homebrew,digiter/linuxbrew,kbrock/homebrew,qorelanguage/homebrew,packetcollision/homebrew,hmalphettes/homebrew,5zzang/homebrew,LeoCavaille/homebrew,mjc-/homebrew,mjc-/homebrew,tany-ovcharenko/depot,optikfluffel/homebrew,chfast/homebrew,lvicentesanchez/homebrew,Redth/homebrew,rhoffman3621/learn-rails,markpeek/homebrew,ge11232002/homebrew,marcusandre/homebrew,frozzare/homebrew,sugryo/homebrew,thinker0/homebrew,outcoldman/homebrew,zachmayer/homebrew,tdsmith/linuxbrew,ericzhou2008/homebrew,mttrb/homebrew,youprofit/homebrew,RadicalZephyr/homebrew,fabianschuiki/homebrew,Govinda-Fichtner/homebrew,geometrybase/homebrew,moyogo/homebrew,chabhishek123/homebrew,tjt263/homebrew,rcombs/homebrew,KenanSulayman/homebrew,boyanpenkov/homebrew,PikachuEXE/homebrew,atsjj/homebrew,iblueer/homebrew,Cutehacks/homebrew,kad/homebrew,oubiwann/homebrew,SuperNEMO-DBD/cadfaelbrew,2inqui/homebrew,voxxit/homebrew,Spacecup/homebrew,djun-kim/homebrew,lemaiyan/homebrew,brianmhunt/homebrew,cvrebert/homebrew,thos37/homebrew,Krasnyanskiy/homebrew,sitexa/homebrew,royhodgman/homebrew,eagleflo/homebrew,kmiscia/homebrew,mattbostock/homebrew,reelsense/homebrew,Asuranceturix/homebrew,number5/homebrew,tonyghita/homebrew,coldeasy/homebrew,mttrb/homebrew,antogg/homebrew,rstacruz/homebrew,FiMka/homebrew,cbeck88/linuxbrew,kalbasit/homebrew,lemaiyan/homebrew,lhahne/homebrew,mactkg/homebrew,akshayvaidya/homebrew,danpalmer/homebrew,rillian/homebrew,samthor/homebrew,alindeman/homebrew,zabawaba99/homebrew,ls2uper/homebrew,kwadade/LearnRuby,mindrones/homebrew,englishm/homebrew,brevilo/linuxbrew,jessamynsmith/homebrew,grob3/homebrew,tzudot/homebrew,scardetto/homebrew,thrifus/homebrew,tavisto/homebrew,dholm/homebrew,baldwicc/homebrew,eagleflo/homebrew,xyproto/homebrew,kashif/homebrew,lousama/homebrew,evanrs/homebrew,heinzf/homebrew,dholm/linuxbrew,rhoffman3621/learn-rails,ptolemarch/homebrew,erkolson/homebrew,jianjin/homebrew,bjorand/homebrew,phrase/homebrew,BlackFrog1/homebrew,linse073/homebrew,sportngin/homebrew,hyuni/homebrew,tstack/homebrew,ieure/homebrew,bl1nk/homebrew,alex-zhang/homebrew,cbenhagen/homebrew,osimola/homebrew,wfalkwallace/homebrew,guidomb/homebrew,phrase/homebrew,iandennismiller/homebrew,khwon/homebrew,int3h/homebrew,saketkc/homebrew,tyrchen/homebrew,romejoe/linuxbrew,lnr0626/homebrew,heinzf/homebrew,oliviertoupin/homebrew,SiegeLord/homebrew,sometimesfood/homebrew,dickeyxxx/homebrew,amarshall/homebrew,alfasapy/homebrew,jpsim/homebrew,hanlu-chen/homebrew,ngoyal/homebrew,voxxit/homebrew,lewismc/homebrew,cnbin/homebrew,waj/homebrew,crystal/autocode-homebrew,Spacecup/homebrew,outcoldman/linuxbrew,tobz-nz/homebrew,rhoffman3621/learn-rails,dconnolly/homebrew,gvangool/homebrew,saketkc/homebrew,tghs/linuxbrew,shawndellysse/homebrew,jonas/homebrew,Angeldude/linuxbrew,theopolis/homebrew,ericzhou2008/homebrew,paulbakker/homebrew,craigbrad/homebrew,marcoceppi/homebrew,sublimino/linuxbrew,theeternalsw0rd/homebrew,joeyhoer/homebrew,PikachuEXE/homebrew,sdebnath/homebrew,ryanmt/homebrew,omriiluz/homebrew,flysonic10/homebrew,Klozz/homebrew,dirn/homebrew,creationix/homebrew,dtan4/homebrew,AGWA-forks/homebrew,ctate/autocode-homebrew,tomekr/homebrew,jwillemsen/homebrew,dardo82/homebrew,kevinastone/homebrew,southwolf/homebrew,dunn/linuxbrew,sitexa/homebrew,thejustinwalsh/homebrew,missingcharacter/homebrew,lvicentesanchez/homebrew,mbrevda/homebrew,ybott/homebrew,pdxdan/homebrew,eagleflo/homebrew,10sr/linuxbrew,cHoco/homebrew,LegNeato/homebrew,djun-kim/homebrew,flysonic10/homebrew,mobileoverlord/homebrew-1,jedahan/homebrew,telamonian/linuxbrew,kodabb/homebrew,esalling23/homebrew,gicmo/homebrew,bigbes/homebrew,joshua-rutherford/homebrew,chkuendig/homebrew,klazuka/homebrew,h3r2on/homebrew,sportngin/homebrew,redpen-cc/homebrew,kvs/homebrew,megahall/homebrew,187j3x1/homebrew,tomas/homebrew,marcwebbie/homebrew,marcusandre/homebrew,dpalmer93/homebrew,schuyler/homebrew,mgiglia/homebrew,yoshida-mediba/homebrew,sje30/homebrew,feelpp/homebrew,menivaitsi/homebrew,kawanet/homebrew,tbetbetbe/linuxbrew,nandub/homebrew,optikfluffel/homebrew,zeha/homebrew,jose-cieni-movile/homebrew,haosdent/homebrew,NRauh/homebrew,paour/homebrew,kimhunter/homebrew,jbaum98/linuxbrew,dunn/homebrew,oubiwann/homebrew,jtrag/homebrew,elig/homebrew,ldiqual/homebrew,saketkc/linuxbrew,ge11232002/homebrew,jwatzman/homebrew,xanderlent/homebrew,sidhart/homebrew,jconley/homebrew,RSamokhin/homebrew,OJFord/homebrew,pedromaltez-forks/homebrew,kawanet/homebrew,rhunter/homebrew,nysthee/homebrew,jlisic/linuxbrew,whitej125/homebrew,2inqui/homebrew,fabianschuiki/homebrew,Lywangwenbin/homebrew,will/homebrew,rhunter/homebrew,hyuni/homebrew,carlmod/homebrew,sje30/homebrew,sideci-sample/sideci-sample-homebrew,YOTOV-LIMITED/homebrew,gijzelaerr/homebrew,marcelocantos/homebrew,psibre/homebrew,ralic/homebrew,gonzedge/homebrew,dickeyxxx/homebrew,drewpc/homebrew,mtigas/homebrew,ssp/homebrew,sarvex/linuxbrew,epixa/homebrew,Russell91/homebrew,ilovezfs/homebrew,slyphon/homebrew,adamchainz/homebrew,karlhigley/homebrew,bertjwregeer/homebrew,wrunnery/homebrew,Hs-Yeah/homebrew,auvi/homebrew,zfarrell/homebrew,tdsmith/linuxbrew,mbi/homebrew,digiter/linuxbrew,elig/homebrew,razamatan/homebrew,jehutymax/homebrew,miketheman/homebrew,martinklepsch/homebrew,emilyst/homebrew,hkwan003/homebrew,Gui13/linuxbrew,rlister/homebrew,tpot/homebrew,cscetbon/homebrew,saketkc/linuxbrew,indera/homebrew,saketkc/homebrew,cHoco/homebrew,utzig/homebrew,pigoz/homebrew,mprobst/homebrew,reelsense/linuxbrew,summermk/homebrew,supriyantomaftuh/homebrew,trskop/linuxbrew,dambrisco/homebrew,rcombs/homebrew,Redth/homebrew,kazuho/homebrew,deorth/homebrew,robotblake/homebrew,Dreysman/homebrew,justjoheinz/homebrew,odekopoon/homebrew,osimola/homebrew,windoze/homebrew,dolfly/homebrew,Klozz/homebrew,wadejong/homebrew,songjizu001/homebrew,amarshall/homebrew,jwatzman/homebrew,LegNeato/homebrew,PikachuEXE/homebrew,onlynone/homebrew,skinny-framework/homebrew,3van/homebrew,sometimesfood/homebrew,elgertam/homebrew,gicmo/homebrew,esamson/homebrew,marcelocantos/homebrew,Drewshg312/homebrew,afh/homebrew,adamliter/linuxbrew,bukzor/linuxbrew,boshnivolo/homebrew,wadejong/homebrew,cvrebert/homebrew,geoff-codes/homebrew,xinlehou/homebrew,pvrs12/homebrew,linse073/homebrew,trskop/linuxbrew,reelsense/homebrew,hakamadare/homebrew,robrix/homebrew,yonglehou/homebrew,MoSal/homebrew,ryanshaw/homebrew,base10/homebrew,OlivierParent/homebrew,dolfly/homebrew,kkirsche/homebrew,pnorman/homebrew,wangranche/homebrew,KevinSjoberg/homebrew,hmalphettes/homebrew,qiruiyin/homebrew,zeha/homebrew,kevmoo/homebrew,Monits/homebrew,ened/homebrew,sometimesfood/homebrew,ento/homebrew,xurui3762791/homebrew,hvnsweeting/homebrew,sptramer/homebrew,keith/homebrew,jpsim/homebrew,mroch/homebrew,egentry/homebrew,sptramer/homebrew,maxhope/homebrew,MartinDelille/homebrew,youtux/homebrew,drbenmorgan/linuxbrew,gnubila-france/linuxbrew,mattprowse/homebrew,tutumcloud/homebrew,bertjwregeer/homebrew,FiMka/homebrew,phrase/homebrew,gildegoma/homebrew,iamcharp/homebrew,ngoldbaum/homebrew,sock-puppet/homebrew,englishm/homebrew,tylerball/homebrew,dmarkrollins/homebrew,imjerrybao/homebrew,verbitan/homebrew,jiaoyigui/homebrew,ento/homebrew,dardo82/homebrew,malmaud/homebrew,gawbul/homebrew,arg/homebrew,LucyShapiro/before-after,caijinyan/homebrew,rhunter/homebrew,qorelanguage/homebrew,catap/homebrew,tylerball/homebrew,TaylorMonacelli/homebrew,dericed/homebrew,1zaman/homebrew,felixonmars/homebrew,ariscop/homebrew,Dreysman/homebrew,qskycolor/homebrew,smarek/homebrew,jpscaletti/homebrew,ortho/homebrew,bcomnes/homebrew,tschoonj/homebrew,DarthGandalf/homebrew,sorin-ionescu/homebrew,YOTOV-LIMITED/homebrew,filcab/homebrew,jeromeheissler/homebrew,oneillkza/linuxbrew,akupila/homebrew,sptramer/homebrew,mroth/homebrew,s6stuc/homebrew,prasincs/homebrew,theeternalsw0rd/homebrew,LucyShapiro/before-after,tseven/homebrew,andreyto/homebrew,Cutehacks/homebrew,RadicalZephyr/homebrew,marcelocantos/homebrew,afb/homebrew,alexandrecormier/homebrew,theckman/homebrew,Hasimir/homebrew,benjaminfrank/homebrew,cchacin/homebrew,dlesaca/homebrew,alebcay/homebrew,ExtremeMan/homebrew,QuinnyPig/homebrew,trajano/homebrew,grob3/homebrew,petere/homebrew,cristobal/homebrew,sarvex/linuxbrew,qskycolor/homebrew,jonafato/homebrew,mroch/homebrew,kyanny/homebrew,digiter/linuxbrew,mavimo/homebrew,a1dutch/homebrew,totalvoidness/homebrew,boshnivolo/homebrew,mtfelix/homebrew,hwhelchel/homebrew,neronplex/homebrew,asparagui/homebrew,higanworks/homebrew,decors/homebrew,evanrs/homebrew,dreid93/homebrew,kidaa/homebrew,tzudot/homebrew,jiashuw/homebrew,vigo/homebrew,buzzedword/homebrew,samthor/homebrew,samplecount/homebrew,epixa/homebrew,n8henrie/homebrew,timomeinen/homebrew,5zzang/homebrew,mxk1235/homebrew,otaran/homebrew,dtan4/homebrew,oschwald/homebrew,Homebrew/homebrew,alexethan/homebrew,dtrebbien/homebrew,sideci-sample/sideci-sample-homebrew,tehmaze-labs/homebrew,summermk/homebrew,ahihi/tigerbrew,kvs/homebrew,pullreq/homebrew,erezny/homebrew,LonnyGomes/homebrew,endelwar/homebrew,elamc/homebrew,jacobsa/homebrew,OlivierParent/homebrew,akupila/homebrew,fabianfreyer/homebrew,callahad/homebrew,helloworld-zh/homebrew,ieure/homebrew,ericfischer/homebrew,simsicon/homebrew,andy12530/homebrew,skatsuta/homebrew,jbarker/homebrew,jf647/homebrew,Asuranceturix/homebrew,koenrh/homebrew,alexethan/homebrew,psibre/homebrew,schuyler/homebrew,rnh/homebrew,jbeezley/homebrew,ffleming/homebrew,petere/homebrew,frozzare/homebrew,gyaresu/homebrew,colindean/homebrew,bendoerr/homebrew,ingmarv/homebrew,pullreq/homebrew,kevinastone/homebrew,morevalily/homebrew,thuai/boxen,boshnivolo/homebrew,bbhoss/homebrew,bkonosky/homebrew,jeromeheissler/homebrew,freedryk/homebrew,ened/homebrew,rlhh/homebrew,jconley/homebrew,dirn/homebrew,poindextrose/homebrew,arnested/homebrew,paulbakker/homebrew,alanthing/homebrew,rlhh/homebrew,LonnyGomes/homebrew,knpwrs/homebrew,antst/homebrew,tyrchen/homebrew,erezny/homebrew,torgartor21/homebrew,changzuozhen/homebrew,jconley/homebrew,a-b/homebrew,Habbie/homebrew,187j3x1/homebrew,gvangool/homebrew,cprecioso/homebrew,afh/homebrew,jamesdphillips/homebrew,guoxiao/homebrew,mapbox/homebrew,tobz-nz/homebrew,tavisto/homebrew,sje30/homebrew,rosalsm/homebrew,Red54/homebrew,Gasol/homebrew,rhunter/homebrew,jsallis/homebrew,godu/homebrew,sidhart/homebrew,endelwar/homebrew,geometrybase/homebrew,sferik/homebrew,MSch/homebrew,nandub/homebrew,OlivierParent/homebrew,bendemaree/homebrew,craig5/homebrew,samthor/homebrew,sakra/homebrew,ybott/homebrew,rstacruz/homebrew,BlackFrog1/homebrew,lewismc/homebrew,grepnull/homebrew,influxdata/homebrew,jeffmo/homebrew,rwstauner/homebrew,adamliter/linuxbrew,hanxue/homebrew,mjc-/homebrew,timomeinen/homebrew,andrew-regan/homebrew,qiruiyin/homebrew,moltar/homebrew,arg/homebrew,mbrevda/homebrew,higanworks/homebrew,tseven/homebrew,karlhigley/homebrew,lemaiyan/homebrew,gabelevi/homebrew,Kentzo/homebrew,benswift404/homebrew,kazuho/homebrew,ndimiduk/homebrew,iggyvolz/linuxbrew,sigma-random/homebrew,jonafato/homebrew,hwhelchel/homebrew,bidle/homebrew,scorphus/homebrew,tjt263/homebrew,mroth/homebrew,lvh/homebrew,godu/homebrew,plattenschieber/homebrew,feuvan/homebrew,dlesaca/homebrew,soleo/homebrew,bkonosky/homebrew,elasticdog/homebrew,jarrettmeyer/homebrew,ilidar/homebrew,max-horvath/homebrew,fabianfreyer/homebrew,ingmarv/homebrew,LegNeato/homebrew,nandub/homebrew,koraktor/homebrew,calmez/homebrew,outcoldman/linuxbrew,docwhat/homebrew,zoidbergwill/homebrew,h3r2on/homebrew,LinusU/homebrew,danielfariati/homebrew,omriiluz/homebrew,dambrisco/homebrew,MartinDelille/homebrew,anarchivist/homebrew,hkwan003/homebrew,razamatan/homebrew,petercm/homebrew,nysthee/homebrew,LonnyGomes/homebrew,kevmoo/homebrew,ybott/homebrew,rstacruz/homebrew,adamliter/homebrew,scardetto/homebrew,mmizutani/homebrew,wkentaro/homebrew,silentbicycle/homebrew,dtrebbien/homebrew,bitrise-io/homebrew,jose-cieni-movile/homebrew,Hasimir/homebrew,gawbul/homebrew,tsaeger/homebrew,feuvan/homebrew,wadejong/homebrew,trajano/homebrew,RandyMcMillan/homebrew,harsha-mudi/homebrew,bendoerr/homebrew,MrChen2015/homebrew,frickler01/homebrew,influxdb/homebrew,nysthee/homebrew,swallat/homebrew,hvnsweeting/homebrew,bcomnes/homebrew,amjith/homebrew,danpalmer/homebrew,polishgeeks/homebrew,danpalmer/homebrew,arcivanov/linuxbrew,cHoco/homebrew,dericed/homebrew,woodruffw/homebrew-test,tuxu/homebrew,linjunpop/homebrew,joshua-rutherford/homebrew,mjbshaw/homebrew,Klozz/homebrew,polamjag/homebrew,lewismc/homebrew,gcstang/homebrew,jbarker/homebrew,dstftw/homebrew,odekopoon/homebrew,lnr0626/homebrew,skinny-framework/homebrew,zhipeng-jia/homebrew,samthor/homebrew,alebcay/homebrew,adevress/homebrew,waj/homebrew,tbeckham/homebrew,nelstrom/homebrew,virtuald/homebrew,decors/homebrew,WangGL1985/homebrew,Zearin/homebrew,zorosteven/homebrew,SuperNEMO-DBD/cadfaelbrew,winordie-47/linuxbrew1,feuvan/homebrew,nathancahill/homebrew,jsjohnst/homebrew,quantumsteve/homebrew,codeout/homebrew,jspahrsummers/homebrew,anjackson/homebrew,alex/homebrew,johanhammar/homebrew,colindean/homebrew,tsaeger/homebrew,bettyDes/homebrew,feelpp/homebrew,hakamadare/homebrew,ilidar/homebrew,dplarson/homebrew,kevmoo/homebrew,mmizutani/homebrew,dai0304/homebrew,petercm/homebrew,petercm/homebrew,baldwicc/homebrew,esalling23/homebrew,moyogo/homebrew,nnutter/homebrew,davidcelis/homebrew,halloleo/homebrew,will/homebrew,blairham/homebrew,otaran/homebrew,BlackFrog1/homebrew,tschoonj/homebrew,megahall/homebrew,francaguilar/homebrew,verbitan/homebrew,packetcollision/homebrew,shawndellysse/homebrew,mindrones/homebrew,chiefy/homebrew,mxk1235/homebrew,sarvex/linuxbrew,onlynone/homebrew,creack/homebrew,pgr0ss/homebrew,bchatard/homebrew,peteristhegreat/homebrew,notDavid/homebrew,jacobsa/homebrew,Lywangwenbin/homebrew,sock-puppet/homebrew,dai0304/homebrew,thrifus/homebrew,mattfritz/homebrew,dickeyxxx/homebrew,anjackson/homebrew,protomouse/homebrew,adamchainz/homebrew,jonas/homebrew,erkolson/homebrew,Govinda-Fichtner/homebrew,treyharris/homebrew,robrix/homebrew,pigri/homebrew,decors/homebrew,waynegraham/homebrew,Asuranceturix/homebrew,southwolf/homebrew,sugryo/homebrew,jpascal/homebrew,emcrisostomo/homebrew,mattfarina/homebrew,jwillemsen/homebrew,danielfariati/homebrew,grob3/homebrew,princeofdarkness76/linuxbrew,alex-zhang/homebrew,eagleflo/homebrew,dunn/linuxbrew,ngoyal/homebrew,aristiden7o/homebrew,sidhart/homebrew,sdebnath/homebrew,feugenix/homebrew,davydden/homebrew,SuperNEMO-DBD/cadfaelbrew,AtnNn/homebrew,karlhigley/homebrew,dardo82/homebrew,yoshida-mediba/homebrew,iblueer/homebrew,antst/homebrew,zabawaba99/homebrew,antogg/homebrew,vinicius5581/homebrew,ndimiduk/homebrew,prasincs/homebrew,jiashuw/homebrew,halloleo/homebrew,superlukas/homebrew,ilidar/homebrew,esamson/homebrew,hyuni/homebrew,asparagui/homebrew,martinklepsch/homebrew,kikuchy/homebrew,ryanfb/homebrew,mbi/homebrew,verbitan/homebrew,auvi/homebrew,Drewshg312/homebrew,missingcharacter/homebrew,drewwells/homebrew,vihangm/homebrew,jtrag/homebrew,robotblake/homebrew,ssgelm/homebrew,haosdent/homebrew,DoomHammer/linuxbrew,pigoz/homebrew,cbeck88/linuxbrew,pinkpolygon/homebrew,dplarson/homebrew,hanlu-chen/homebrew,windoze/homebrew,mattprowse/homebrew,xinlehou/homebrew,calmez/homebrew,danielfariati/homebrew,cffk/homebrew,dstndstn/homebrew,hmalphettes/homebrew,zj568/homebrew,gyaresu/homebrew,tomas/homebrew,exicon/homebrew,cnbin/homebrew,xuebinglee/homebrew,mgiglia/homebrew,DarthGandalf/homebrew,gcstang/homebrew,martinklepsch/homebrew,zoidbergwill/homebrew,otaran/homebrew,AtkinsChang/homebrew,yazuuchi/homebrew,rnh/homebrew,Homebrew/linuxbrew,utzig/homebrew,cvrebert/homebrew,Zearin/homebrew,bright-sparks/homebrew,brunchboy/homebrew,ptolemarch/homebrew,finde/homebrew,cbenhagen/homebrew,dericed/homebrew,swallat/homebrew,bbhoss/homebrew,cesar2535/homebrew,schuyler/homebrew,indera/homebrew,theopolis/homebrew,thos37/homebrew,hanlu-chen/homebrew,tstack/homebrew,godu/homebrew,virtuald/homebrew,jarrettmeyer/homebrew,jmagnusson/homebrew,mciantyre/homebrew,kidaa/homebrew,Kentzo/homebrew,boneskull/homebrew,waynegraham/homebrew,blogabe/homebrew,jonafato/homebrew,ianbrandt/homebrew,dtrebbien/homebrew,cjheath/homebrew,tomas/linuxbrew,dlo/homebrew,lousama/homebrew,rhendric/homebrew,tomyun/homebrew,adamchainz/homebrew,reelsense/linuxbrew,ffleming/homebrew,mommel/homebrew,filcab/homebrew,keithws/homebrew,bbahrami/homebrew,kalbasit/homebrew,liamstask/homebrew,KenanSulayman/homebrew,gunnaraasen/homebrew,clemensg/homebrew,hvnsweeting/homebrew,geometrybase/homebrew,hmalphettes/homebrew,IsmailM/linuxbrew,tghs/linuxbrew,ilovezfs/homebrew,simsicon/homebrew,ericfischer/homebrew,amenk/linuxbrew,dutchcoders/homebrew,Cottser/homebrew,ebardsley/homebrew,cprecioso/homebrew,silentbicycle/homebrew,pitatensai/homebrew,decors/homebrew,NRauh/homebrew,justjoheinz/homebrew,changzuozhen/homebrew,zhipeng-jia/homebrew,deorth/homebrew,arnested/homebrew,mbrevda/homebrew,bjlxj2008/homebrew,johanhammar/homebrew,joshua-rutherford/homebrew,dongcarl/homebrew,hwhelchel/homebrew,wrunnery/homebrew,tylerball/homebrew,arrowcircle/homebrew,MartinDelille/homebrew,dickeyxxx/homebrew,sachiketi/homebrew,RandyMcMillan/homebrew,mcolic/homebrew,will/homebrew,sdebnath/homebrew,SampleLiao/homebrew,bl1nk/homebrew,lemaiyan/homebrew,tuxu/homebrew,kilojoules/homebrew,poindextrose/homebrew,rneatherway/homebrew,joshfriend/homebrew,rtyley/homebrew,glowe/homebrew,ear/homebrew,davidcelis/homebrew,xinlehou/homebrew,dalguji/homebrew,johanhammar/homebrew,mattfarina/homebrew,SnoringFrog/homebrew,creack/homebrew,jimmy906/homebrew,jwillemsen/homebrew,drewpc/homebrew,zabawaba99/homebrew,jmtd/homebrew,karlhigley/homebrew,jwillemsen/linuxbrew,pwnall/homebrew,xyproto/homebrew,tjhei/linuxbrew,tomas/linuxbrew,emcrisostomo/homebrew,jsallis/homebrew,LeonB/linuxbrew,megahall/homebrew,tjschuck/homebrew,brianmhunt/homebrew,msurovcak/homebrew,hwhelchel/homebrew,dunn/linuxbrew,zhipeng-jia/homebrew,cchacin/homebrew,cprecioso/homebrew,dmarkrollins/homebrew,AICIDNN/homebrew,baob/homebrew,dolfly/homebrew,grepnull/homebrew,creack/homebrew,caputomarcos/linuxbrew,koenrh/homebrew,henry0312/homebrew,retrography/homebrew,helloworld-zh/homebrew,georgschoelly/homebrew,bjorand/homebrew,tkelman/homebrew,Ivanopalas/homebrew,base10/homebrew,scardetto/homebrew,mattbostock/homebrew,chfast/homebrew,jiaoyigui/homebrew,jedahan/homebrew,royalwang/homebrew,caputomarcos/linuxbrew,moltar/homebrew,ehamberg/homebrew,boyanpenkov/homebrew,paulbakker/homebrew,fabianfreyer/homebrew,atsjj/homebrew,dlo/homebrew,gcstang/linuxbrew,mommel/homebrew,davidmalcolm/homebrew,kenips/homebrew,cooltheo/homebrew,dongcarl/homebrew,notDavid/homebrew,adevress/homebrew,chenflat/homebrew,jasonm23/homebrew,jpscaletti/homebrew,ened/homebrew,LinusU/homebrew,rnh/homebrew,plattenschieber/homebrew,miketheman/homebrew,pdxdan/homebrew,xurui3762791/homebrew,buzzedword/homebrew,amarshall/homebrew,keithws/homebrew,ktaragorn/homebrew,torgartor21/homebrew,hanlu-chen/homebrew,tylerball/homebrew,TrevorSayre/homebrew,malmaud/homebrew,joshfriend/homebrew,jab/homebrew,soleo/homebrew,base10/homebrew,2inqui/homebrew,dambrisco/homebrew,ldiqual/homebrew,paulbakker/homebrew,mjbshaw/homebrew,alfasapy/homebrew,bruno-/homebrew,quantumsteve/homebrew,ariscop/homebrew,indrajitr/homebrew,gcstang/linuxbrew,tomas/linuxbrew,pdpi/homebrew,brunchboy/homebrew,dholm/linuxbrew,skinny-framework/homebrew,samplecount/homebrew,MoSal/homebrew,ablyler/homebrew,michaKFromParis/homebrew-sparks,Chilledheart/homebrew,deployable/homebrew,xcezx/homebrew,sferik/homebrew,hanxue/homebrew,baob/homebrew,drbenmorgan/linuxbrew,arrowcircle/homebrew,tjnycum/homebrew,thejustinwalsh/homebrew,antogg/homebrew,dstftw/homebrew,xanderlent/homebrew,englishm/homebrew,gonzedge/homebrew,kazuho/homebrew,xb123456456/homebrew,patrickmckenna/homebrew,moyogo/homebrew,jamer/homebrew,dai0304/homebrew,Gui13/linuxbrew,hongkongkiwi/homebrew,zhipeng-jia/homebrew,petere/homebrew,zj568/homebrew,bjlxj2008/homebrew,theopolis/homebrew,mattbostock/homebrew,jspahrsummers/homebrew,vihangm/homebrew,mpfz0r/homebrew,slnovak/homebrew,nju520/homebrew,gcstang/linuxbrew,Gasol/homebrew,nnutter/homebrew,mobileoverlord/homebrew-1,henry0312/homebrew,youprofit/homebrew,huitseeker/homebrew,slyphon/homebrew,drewpc/homebrew,bruno-/homebrew,hanxue/homebrew,harelba/homebrew,jarrettmeyer/homebrew,dericed/homebrew,guidomb/homebrew,superlukas/homebrew,iostat/homebrew2,royalwang/homebrew,ehogberg/homebrew,crystal/autocode-homebrew,benswift404/homebrew,jwillemsen/homebrew,alex-courtis/homebrew,ortho/homebrew,lvh/homebrew,cvrebert/homebrew,shawndellysse/homebrew,Sachin-Ganesh/homebrew,georgschoelly/homebrew,xanderlent/homebrew,wolfd/homebrew,bertjwregeer/homebrew,rs/homebrew,optikfluffel/homebrew,codeout/homebrew,bukzor/homebrew,songjizu001/homebrew,flysonic10/homebrew,huitseeker/homebrew,tomyun/homebrew,peteristhegreat/homebrew,Redth/homebrew,dstftw/homebrew,zenazn/homebrew,max-horvath/homebrew,danielmewes/homebrew,JerroldLee/homebrew,giffels/homebrew,dtan4/homebrew,rosalsm/homebrew,waj/homebrew,princeofdarkness76/homebrew,anders/homebrew,ebouaziz/linuxbrew,clemensg/homebrew,RadicalZephyr/homebrew,tehmaze-labs/homebrew,marcoceppi/homebrew,antst/homebrew,blairham/homebrew,cbenhagen/homebrew,feugenix/homebrew,frozzare/homebrew,sakra/homebrew,pcottle/homebrew,raphaelcohn/homebrew,vinodkone/homebrew,arg/homebrew,alfasapy/homebrew,Govinda-Fichtner/homebrew,kwilczynski/homebrew,antst/homebrew,jonas/homebrew,RSamokhin/homebrew,kilojoules/homebrew,jackmcgreevy/homebrew,vihangm/homebrew,mrkn/homebrew,cnbin/homebrew,adriancole/homebrew,sportngin/homebrew,dardo82/homebrew,valkjsaaa/homebrew,mactkg/homebrew,SiegeLord/homebrew,zabawaba99/homebrew,mtigas/homebrew,outcoldman/linuxbrew,cristobal/homebrew,mathieubolla/homebrew,songjizu001/homebrew,Habbie/homebrew,wkentaro/homebrew,cosmo0920/homebrew,syhw/homebrew,hyokosdeveloper/linuxbrew,ainstushar/homebrew,kevinastone/homebrew,TrevorSayre/homebrew,Krasnyanskiy/homebrew,benswift404/homebrew,hyokosdeveloper/linuxbrew,ehamberg/homebrew,goodcodeguy/homebrew,RadicalZephyr/homebrew,emcrisostomo/homebrew,woodruffw/homebrew-test,tkelman/homebrew,sublimino/linuxbrew,nelstrom/homebrew,tonyghita/homebrew,markpeek/homebrew,danielmewes/homebrew,kawanet/homebrew,denvazh/homebrew,pcottle/homebrew,SteveClement/homebrew,cmvelo/homebrew,mattfarina/homebrew,koraktor/homebrew,cjheath/homebrew,nicowilliams/homebrew,ericfischer/homebrew,int3h/homebrew,callahad/homebrew,reelsense/homebrew,tobz-nz/homebrew,5zzang/homebrew,afdnlw/linuxbrew,superlukas/homebrew,afdnlw/linuxbrew,ktheory/homebrew,gnubila-france/linuxbrew,indrajitr/homebrew,giffels/homebrew,swallat/homebrew,tutumcloud/homebrew,mxk1235/homebrew,galaxy001/homebrew,frozzare/homebrew,jbarker/homebrew,drewwells/homebrew,jspahrsummers/homebrew,dalguji/homebrew,verdurin/homebrew,jimmy906/homebrew,mhartington/homebrew,freedryk/homebrew,yangj1e/homebrew,number5/homebrew,tavisto/homebrew,tonyghita/homebrew,Zearin/homebrew,jingweno/homebrew,liuquansheng47/Homebrew,ngoldbaum/homebrew,mbrevda/homebrew,LeonB/linuxbrew,liamstask/homebrew,codeout/homebrew,influxdb/homebrew,tsaeger/homebrew,tjt263/homebrew,msurovcak/homebrew,ablyler/homebrew,mroth/homebrew,treyharris/homebrew,kad/homebrew,changzuozhen/homebrew,bcwaldon/homebrew,zhimsel/homebrew,bright-sparks/homebrew,Gui13/linuxbrew,qiruiyin/homebrew,ge11232002/homebrew,GeekHades/homebrew,royhodgman/homebrew,CNA-Bld/homebrew,royalwang/homebrew,187j3x1/homebrew,iostat/homebrew2,ge11232002/homebrew,danabrand/linuxbrew,pigoz/homebrew,scardetto/homebrew,kenips/homebrew,pdpi/homebrew,adamliter/homebrew,dplarson/homebrew,grmartin/homebrew,kimhunter/homebrew,prasincs/homebrew,boyanpenkov/homebrew,telamonian/linuxbrew,tseven/homebrew,thos37/homebrew,kwilczynski/homebrew,jmstacey/homebrew,kad/homebrew,akupila/homebrew,CNA-Bld/homebrew,Redth/homebrew,whitej125/homebrew,pitatensai/homebrew,zoltansx/homebrew,youprofit/homebrew,Linuxbrew/linuxbrew,zfarrell/homebrew,Monits/homebrew,elasticdog/homebrew,avnit/EGroovy,koenrh/homebrew,blairham/homebrew,dirn/homebrew,rs/homebrew,dstndstn/homebrew,jf647/homebrew,jamer/homebrew,paour/homebrew,cHoco/homebrew,retrography/homebrew,baob/homebrew,boyanpenkov/homebrew,psibre/homebrew,ianbrandt/homebrew,ffleming/homebrew,imjerrybao/homebrew,bluca/homebrew,linse073/homebrew,kimhunter/homebrew,jbaum98/linuxbrew,vladshablinsky/homebrew,ldiqual/homebrew,tbeckham/homebrew,knpwrs/homebrew,tuedan/homebrew,frodeaa/homebrew,bendemaree/homebrew,frickler01/homebrew,endelwar/homebrew,bidle/homebrew,bigbes/homebrew,10sr/linuxbrew,influxdb/homebrew,grepnull/homebrew,zebMcCorkle/homebrew,kkirsche/homebrew,eighthave/homebrew,booi/homebrew,elyscape/homebrew,gonzedge/homebrew,bruno-/homebrew,alexbukreev/homebrew,ieure/homebrew,slnovak/homebrew,sigma-random/homebrew,Austinpb/homebrew,LeoCavaille/homebrew,AlekSi/homebrew,yoshida-mediba/homebrew,Firefishy/homebrew,syhw/homebrew,marcwebbie/homebrew,zachmayer/homebrew,tjhei/linuxbrew,OlivierParent/homebrew,danabrand/linuxbrew,yidongliu/homebrew,Ivanopalas/homebrew,harelba/homebrew,redpen-cc/homebrew,ldiqual/homebrew,e-jigsaw/homebrew,thos37/homebrew,scpeters/homebrew,ssgelm/homebrew,brendanator/linuxbrew,soleo/homebrew,tomguiter/homebrew,oliviertilmans/homebrew,superlukas/homebrew,rhunter/homebrew,feuvan/homebrew,dtrebbien/homebrew,whistlerbrk/homebrew,alex-zhang/homebrew,guoxiao/homebrew,joeyhoer/homebrew,craigbrad/homebrew,Gutek/homebrew,slyphon/homebrew,deployable/homebrew,Russell91/homebrew,jiashuw/homebrew,thejustinwalsh/homebrew,anjackson/homebrew,scorphus/homebrew,sorin-ionescu/homebrew,menivaitsi/homebrew,zchee/homebrew,retrography/homebrew,nnutter/homebrew,ebouaziz/linuxbrew,dgageot/homebrew,kbrock/homebrew,jingweno/homebrew,zhimsel/homebrew,yumitsu/homebrew,oliviertoupin/homebrew,cosmo0920/homebrew,1zaman/homebrew,jianjin/homebrew,bitrise-io/homebrew,keith/homebrew,SteveClement/homebrew,kevmoo/homebrew,stevenjack/homebrew,pdxdan/homebrew,xyproto/homebrew,klazuka/homebrew,Hs-Yeah/homebrew,godu/homebrew,gvangool/homebrew,winordie-47/linuxbrew1,rhendric/homebrew,esamson/homebrew,sigma-random/homebrew,mroth/homebrew,mavimo/homebrew,emilyst/homebrew,justjoheinz/homebrew,giffels/homebrew,baob/homebrew,danieroux/homebrew,sidhart/homebrew,frodeaa/homebrew,linkinpark342/homebrew,chiefy/homebrew,adamliter/linuxbrew,ilovezfs/homebrew,alex/homebrew,gnawhleinad/homebrew,nicowilliams/homebrew,okuramasafumi/homebrew,arrowcircle/homebrew,apjanke/homebrew,AtnNn/homebrew,bwmcadams/homebrew,Chilledheart/homebrew,henry0312/homebrew,xurui3762791/homebrew,getgauge/homebrew,keith/homebrew,sarvex/linuxbrew,wfarr/homebrew,sock-puppet/homebrew,jwatzman/homebrew,srikalyan/homebrew,paour/homebrew,Hasimir/homebrew,julienXX/homebrew,alexbukreev/homebrew,benjaminfrank/homebrew,okuramasafumi/homebrew,darknessomi/homebrew,WangGL1985/homebrew,mprobst/homebrew,bitrise-io/homebrew,Asuranceturix/homebrew,OJFord/homebrew,zorosteven/homebrew,ryanfb/homebrew,SnoringFrog/homebrew,yazuuchi/homebrew,tomekr/homebrew,lucas-clemente/homebrew,valkjsaaa/homebrew,ianbrandt/homebrew,knpwrs/homebrew,danieroux/homebrew,erkolson/homebrew,vihangm/homebrew,ryanshaw/homebrew,benesch/homebrew,mokkun/homebrew,rhendric/homebrew,jpsim/homebrew,jedahan/homebrew,aristiden7o/homebrew,bukzor/linuxbrew,tomguiter/homebrew,caijinyan/homebrew,shawndellysse/homebrew,petemcw/homebrew,grepnull/homebrew,alexethan/homebrew,elamc/homebrew,rstacruz/homebrew,bcwaldon/homebrew,pcottle/homebrew,Homebrew/linuxbrew,kwilczynski/homebrew,Monits/homebrew,englishm/homebrew,lvicentesanchez/homebrew,raphaelcohn/homebrew,dkotvan/homebrew,tdsmith/linuxbrew,zchee/homebrew,trajano/homebrew,menivaitsi/homebrew,phatblat/homebrew,totalvoidness/homebrew,yidongliu/homebrew,moyogo/homebrew,vinicius5581/homebrew,thinker0/homebrew,haihappen/homebrew,emilyst/homebrew,cristobal/homebrew,Homebrew/homebrew,adevress/homebrew,Cottser/homebrew,miketheman/homebrew,jingweno/homebrew,hvnsweeting/homebrew,crystal/autocode-homebrew,ericzhou2008/homebrew,tbetbetbe/linuxbrew,arnested/homebrew,yyn835314557/homebrew,klatys/homebrew,erkolson/homebrew,mhartington/homebrew,sjackman/linuxbrew,ngoyal/homebrew,teslamint/homebrew,kvs/homebrew,rstacruz/homebrew,AGWA-forks/homebrew,srikalyan/homebrew,amenk/linuxbrew,lhahne/homebrew,aristiden7o/homebrew,hkwan003/homebrew,Habbie/homebrew,Linuxbrew/linuxbrew,eugenesan/homebrew,jsjohnst/homebrew,youprofit/homebrew,benjaminfrank/homebrew,jingweno/homebrew,adamliter/homebrew,oncletom/homebrew,cmvelo/homebrew,ndimiduk/homebrew,Red54/homebrew,elyscape/homebrew,mokkun/homebrew,ieure/homebrew,andy12530/homebrew,klatys/homebrew,trombonehero/homebrew,klatys/homebrew,thebyrd/homebrew,julienXX/homebrew,LegNeato/homebrew,verdurin/homebrew,durka/homebrew,vinicius5581/homebrew,kbinani/homebrew,Russell91/homebrew,buzzedword/homebrew,base10/homebrew,bcomnes/homebrew,haihappen/homebrew,carlmod/homebrew,alindeman/homebrew,rcombs/homebrew,dreid93/homebrew,scorphus/homebrew,ekmett/homebrew,jbaum98/linuxbrew,yonglehou/homebrew,chfast/homebrew,NfNitLoop/homebrew,joschi/homebrew,sakra/homebrew,pnorman/homebrew,brotbert/homebrew,jianjin/homebrew,tkelman/homebrew,dgageot/homebrew,jiaoyigui/homebrew,lmontrieux/homebrew,lmontrieux/homebrew,coldeasy/homebrew,mjc-/homebrew,dgageot/homebrew,adriancole/homebrew,francaguilar/homebrew,QuinnyPig/homebrew,DDShadoww/homebrew,yyn835314557/homebrew,drewwells/homebrew,liuquansheng47/Homebrew,tjnycum/homebrew,dlesaca/homebrew,zoidbergwill/homebrew,princeofdarkness76/homebrew,alindeman/homebrew,sitexa/homebrew,kalbasit/homebrew,trajano/homebrew,denvazh/homebrew,BrewTestBot/homebrew,rs/homebrew,mcolic/homebrew,reelsense/linuxbrew,stoshiya/homebrew,virtuald/homebrew,Drewshg312/homebrew,lnr0626/homebrew,ahihi/tigerbrew,morevalily/homebrew,pwnall/homebrew,gvangool/homebrew,soleo/homebrew,ktheory/homebrew,felixonmars/homebrew,thrifus/homebrew,torgartor21/homebrew,mtigas/homebrew,grob3/homebrew,ryanmt/homebrew,qiruiyin/homebrew,ekmett/homebrew,danabrand/linuxbrew,danpalmer/homebrew,Angeldude/linuxbrew,Noctem/homebrew,Moisan/homebrew,bettyDes/homebrew,pvrs12/homebrew,ktheory/homebrew,idolize/homebrew,pedromaltez-forks/homebrew,barn/homebrew,auvi/homebrew,dolfly/homebrew,dunn/linuxbrew,swallat/homebrew,dholm/homebrew,vladshablinsky/homebrew,kkirsche/homebrew,MoSal/homebrew,andrew-regan/homebrew,julienXX/homebrew,whistlerbrk/homebrew,tomas/linuxbrew,dpalmer93/homebrew,ebardsley/homebrew,cosmo0920/homebrew,benjaminfrank/homebrew,tehmaze-labs/homebrew,wolfd/homebrew,marcusandre/homebrew,benesch/homebrew,LeoCavaille/homebrew,SteveClement/homebrew,bidle/homebrew,mrkn/homebrew,int3h/homebrew,jmagnusson/homebrew,reelsense/homebrew,callahad/homebrew,thejustinwalsh/homebrew,LucyShapiro/before-after,miry/homebrew,mxk1235/homebrew,lrascao/homebrew,vinodkone/homebrew,helloworld-zh/homebrew,John-Colvin/homebrew,pcottle/homebrew,tuedan/homebrew,feugenix/homebrew,1zaman/homebrew,hermansc/homebrew,getgauge/homebrew,winordie-47/linuxbrew1,afb/homebrew,emcrisostomo/homebrew,thuai/boxen,max-horvath/homebrew,tstack/homebrew,sportngin/homebrew,sferik/homebrew,alfasapy/homebrew,higanworks/homebrew,gawbul/homebrew,seeden/homebrew,elasticdog/homebrew,pigri/homebrew,dkotvan/homebrew,linjunpop/homebrew,davidcelis/homebrew,aguynamedryan/homebrew,xb123456456/homebrew,cmvelo/homebrew,gicmo/homebrew,Gutek/homebrew,Noctem/homebrew,ear/homebrew,smarek/homebrew,psibre/homebrew,alanthing/homebrew,eighthave/homebrew,xcezx/homebrew,andy12530/homebrew,yidongliu/homebrew,Firefishy/homebrew,cooltheo/homebrew,davydden/homebrew,jbaum98/linuxbrew,asparagui/homebrew,linjunpop/homebrew,phatblat/homebrew,flysonic10/homebrew,kgb4000/homebrew,frickler01/homebrew,kgb4000/homebrew,mpfz0r/homebrew,thuai/boxen,ehamberg/homebrew,vladshablinsky/homebrew,prasincs/homebrew,davidcelis/homebrew,alexbukreev/homebrew,Ferrari-lee/homebrew,mndrix/homebrew,youtux/homebrew,zhimsel/homebrew,ebouaziz/linuxbrew,AlexejK/homebrew,brevilo/linuxbrew,arg/homebrew,dpalmer93/homebrew,andreyto/homebrew,kkirsche/homebrew,creack/homebrew,egentry/homebrew,vladshablinsky/homebrew,wkentaro/homebrew,mroth/homebrew,ariscop/homebrew,bidle/homebrew,ened/homebrew,alexbukreev/homebrew,mactkg/homebrew,bluca/homebrew,petercm/homebrew,gunnaraasen/homebrew,plattenschieber/homebrew,LinusU/homebrew,oneillkza/linuxbrew,exicon/homebrew,dalinaum/homebrew,guidomb/homebrew,eugenesan/homebrew,davydden/homebrew,pigri/homebrew,bmroberts1987/homebrew,pedromaltez-forks/homebrew,idolize/homebrew,dutchcoders/homebrew,muellermartin/homebrew,brunchboy/homebrew,zachmayer/homebrew,Firefishy/homebrew,marcelocantos/homebrew,QuinnyPig/homebrew,wadejong/homebrew,antogg/homebrew,whistlerbrk/homebrew,pnorman/homebrew,timomeinen/homebrew,BlackFrog1/homebrew,ajshort/homebrew,josa42/homebrew,chadcatlett/homebrew,afh/homebrew,number5/homebrew,jtrag/homebrew,yazuuchi/homebrew,ptolemarch/homebrew,iblueer/homebrew,ExtremeMan/homebrew,haihappen/homebrew,kyanny/homebrew,rgbkrk/homebrew,guoxiao/homebrew,cchacin/homebrew,mgiglia/homebrew,mndrix/homebrew,summermk/homebrew,harsha-mudi/homebrew,NRauh/homebrew,wrunnery/homebrew,bukzor/linuxbrew,durka/homebrew,xuebinglee/homebrew,ainstushar/homebrew,glowe/homebrew,davydden/linuxbrew,nicowilliams/homebrew,oncletom/homebrew,LaurentFough/homebrew,Homebrew/linuxbrew,elasticdog/homebrew,totalvoidness/homebrew,yyn835314557/homebrew,bright-sparks/homebrew,thrifus/homebrew,mjbshaw/homebrew,finde/homebrew,lvh/homebrew,rneatherway/homebrew,redpen-cc/homebrew,hikaruworld/homebrew,nathancahill/homebrew,jpascal/homebrew,ryanmt/homebrew,tbetbetbe/linuxbrew,cvrebert/homebrew,jsjohnst/homebrew,sachiketi/homebrew,helloworld-zh/homebrew,sock-puppet/homebrew,rhoffman3621/learn-rails,akupila/homebrew,bl1nk/homebrew,AntonioMeireles/homebrew,tpot/homebrew,ralic/homebrew,keithws/homebrew,kgb4000/homebrew,xuebinglee/homebrew,jgelens/homebrew,Gutek/homebrew,SampleLiao/homebrew,dutchcoders/homebrew,theopolis/homebrew,wangranche/homebrew,ingmarv/homebrew,omriiluz/homebrew,alindeman/homebrew,ktaragorn/homebrew,mokkun/homebrew,waj/homebrew,theckman/homebrew,daviddavis/homebrew,tkelman/homebrew,mbi/homebrew,blogabe/homebrew,hongkongkiwi/homebrew,freedryk/homebrew,heinzf/homebrew,jsallis/homebrew,simsicon/homebrew,tobz-nz/homebrew,zeha/homebrew,kenips/homebrew,mrkn/homebrew,whistlerbrk/homebrew,thebyrd/homebrew,Linuxbrew/linuxbrew,theeternalsw0rd/homebrew,seeden/homebrew,dalinaum/homebrew,mattprowse/homebrew,a-b/homebrew,SiegeLord/homebrew,blairham/homebrew,kawanet/homebrew,tomguiter/homebrew,miry/homebrew,qskycolor/homebrew,danabrand/linuxbrew,treyharris/homebrew,Cutehacks/homebrew,amjith/homebrew,TrevorSayre/homebrew,elamc/homebrew,pampata/homebrew,denvazh/homebrew,cbeck88/linuxbrew,xcezx/homebrew,jackmcgreevy/homebrew,rnh/homebrew,davydden/linuxbrew,AlexejK/homebrew,petemcw/homebrew,alex-courtis/homebrew,gnubila-france/linuxbrew,ldiqual/homebrew,brianmhunt/homebrew,stoshiya/homebrew,pdpi/homebrew,dstndstn/homebrew,Krasnyanskiy/homebrew,huitseeker/homebrew,yidongliu/homebrew,gyaresu/homebrew,SteveClement/homebrew,jamer/homebrew,skatsuta/homebrew,zoltansx/homebrew,lousama/homebrew,bertjwregeer/homebrew,caijinyan/homebrew,jab/homebrew,packetcollision/homebrew,galaxy001/homebrew,timsutton/homebrew,davidmalcolm/homebrew,Cottser/homebrew,sptramer/homebrew,eugenesan/homebrew,colindean/homebrew,mkrapp/homebrew,e-jigsaw/homebrew,jehutymax/homebrew,anjackson/homebrew,AtnNn/homebrew,afdnlw/linuxbrew,jehutymax/homebrew,Moisan/homebrew,jwatzman/homebrew,KevinSjoberg/homebrew,gonzedge/homebrew,bitrise-io/homebrew,hermansc/homebrew,ctate/autocode-homebrew,muellermartin/homebrew,ktaragorn/homebrew,a1dutch/homebrew,mattfritz/homebrew,heinzf/homebrew,danielmewes/homebrew,chadcatlett/homebrew,digiter/linuxbrew,recruit-tech/homebrew,kmiscia/homebrew,khwon/homebrew,AlexejK/homebrew,adamchainz/homebrew,amjith/homebrew,zoidbergwill/homebrew,kazuho/homebrew,royhodgman/homebrew,liamstask/homebrew,Originate/homebrew,chfast/homebrew,catap/homebrew,iandennismiller/homebrew,Sachin-Ganesh/homebrew,pwnall/homebrew,mattfritz/homebrew,linjunpop/homebrew,ssp/homebrew,fabianschuiki/homebrew,rgbkrk/homebrew,iamcharp/homebrew,antst/homebrew,rlhh/homebrew,kgb4000/homebrew,nju520/homebrew,ryanshaw/homebrew,petere/homebrew,zfarrell/homebrew,ebardsley/homebrew,gijzelaerr/homebrew,mattfarina/homebrew,harsha-mudi/homebrew,mttrb/homebrew,vigo/homebrew,ingmarv/homebrew,MrChen2015/homebrew,zebMcCorkle/homebrew,AlekSi/homebrew,jonas/homebrew,supriyantomaftuh/homebrew,mathieubolla/homebrew,polishgeeks/homebrew,woodruffw/homebrew-test,tyrchen/homebrew,s6stuc/homebrew,rgbkrk/homebrew,nju520/homebrew,totalvoidness/homebrew,geoff-codes/homebrew,deployable/homebrew,jmtd/homebrew,martinklepsch/homebrew,kyanny/homebrew,zebMcCorkle/homebrew,craigbrad/homebrew,huitseeker/homebrew,tzudot/homebrew,jesboat/homebrew,polamjag/homebrew,mgiglia/homebrew,influxdata/homebrew,atsjj/homebrew,wolfd/homebrew,finde/homebrew,DarthGandalf/homebrew,ehogberg/homebrew,ajshort/homebrew,jmtd/homebrew,Chilledheart/homebrew,asparagui/homebrew,FiMka/homebrew
ruby
## Code Before: $:.push(File.expand_path(__FILE__+'/../..')) require 'test/unit' require 'global' require 'formula' require 'utils' class WellKnownCodeIssues <Test::Unit::TestCase def test_formula_names # Formula names should be valid nostdout do Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f| assert_nothing_raised do Formula.factory f end end end end def test_for_commented_out_cmake # Formulas shouldn't contain commented-out cmake code from the default template Formulary.paths.each do |f| result = `grep "# depends_on 'cmake'" "#{f}"`.strip assert_equal('', result, "Commented template code still in #{f}") end end def test_for_misquoted_prefix # Prefix should not have single quotes if the system args are already separated target_string = "[\\\"]--prefix=[\\']" Formulary.paths.each do |f| result = `grep -e "#{target_string}" "#{f}"`.strip assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}") end end end ## Instruction: Add formula check for crufy SourceForge URLs. ## Code After: $:.push(File.expand_path(__FILE__+'/../..')) require 'test/unit' require 'global' require 'formula' require 'utils' class WellKnownCodeIssues <Test::Unit::TestCase def test_formula_names # Formula names should be valid nostdout do Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f| assert_nothing_raised do Formula.factory f end end end end def test_for_commented_out_cmake # Formulas shouldn't contain commented-out cmake code from the default template Formulary.paths.each do |f| result = `grep "# depends_on 'cmake'" "#{f}"`.strip assert_equal('', result, "Commented template code still in #{f}") end end def test_for_misquoted_prefix # Prefix should not have single quotes if the system args are already separated target_string = "[\\\"]--prefix=[\\']" Formulary.paths.each do |f| result = `grep -e "#{target_string}" "#{f}"`.strip assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}") end end def test_for_crufy_sourceforge_url # Don't specify mirror for SourceForge downloads Formulary.paths.each do |f| result = `grep "\?use_mirror=" "#{f}"`.strip assert_equal('', result, "Remove 'use_mirror' from url for #{f}") end end end
d691798551ae3e894d683c5ea142ac1f6b64393b
lib/query_string_search/comparator.rb
lib/query_string_search/comparator.rb
module QueryStringSearch module Comparator def self.using(operator) create_comparison comparison.operator = operator self end def self.does(subject) create_comparison comparison.subject = subject self end def self.equal?(other) comparison.operator = "=" compare_with?(other) end def self.contain?(other) comparison.operator = "∈" compare_with?(other) end def self.compare_with?(other) comparison.other = other resolve end private def self.create_comparison @comparison ||= Comparison.new end def self.comparison @comparison end def self.resolve ret = @comparison.compare @comparison = nil ret end end end module QueryStringSearch module Comparator class Comparison attr_accessor :subject, :operator, :other def compare if operator == "=" equal? elsif operator == "∈" contain? elsif ["<",">","<=",">="] inequal? end end def inequal? eval("#{other} #{operator} #{subject}") end def equal? normalize(subject) == normalize(other) end def contain? normalize(subject).include?(normalize(other)) end def normalize(unnormalized) if unnormalized.respond_to?(:each) unnormalized.map(&:to_s).map(&:upcase) else unnormalized.to_s.upcase end end end end end
module QueryStringSearch module Comparator def self.using(operator) create_comparison comparison.operator = operator self end def self.does(subject) create_comparison comparison.subject = subject self end def self.equal?(other) comparison.operator = "=" compare_with?(other) end def self.contain?(other) comparison.operator = "∈" compare_with?(other) end def self.compare_with?(other) comparison.other = other resolve end private def self.create_comparison @comparison ||= Comparison.new end def self.comparison @comparison end def self.resolve ret = @comparison.compare @comparison = nil ret end end end module QueryStringSearch module Comparator class Comparison attr_accessor :subject, :operator, :other def compare if ["=".to_sym].include?(operator) equal? elsif [:∈].include?(operator) contain? elsif [:<, :>, :<=, :>=].include?(operator) inequal? else false end end def operator=(x) @operator = x.to_sym end def inequal? other.to_i.public_send(operator, subject.to_i) end def equal? normalize(other).public_send(:==, normalize(subject)) end def contain? normalize(subject).public_send(:&, [normalize(other)]).any? end def normalize(unnormalized) if unnormalized.respond_to?(:each) unnormalized.map(&:to_s).map(&:upcase) else unnormalized.to_s.upcase end end end end end
Move from strings & eval to symbols and public_send
Move from strings & eval to symbols and public_send Seems like an obvious change. This works, but it's obviously not in a final state yet.
Ruby
mit
umn-asr/query_string_search
ruby
## Code Before: module QueryStringSearch module Comparator def self.using(operator) create_comparison comparison.operator = operator self end def self.does(subject) create_comparison comparison.subject = subject self end def self.equal?(other) comparison.operator = "=" compare_with?(other) end def self.contain?(other) comparison.operator = "∈" compare_with?(other) end def self.compare_with?(other) comparison.other = other resolve end private def self.create_comparison @comparison ||= Comparison.new end def self.comparison @comparison end def self.resolve ret = @comparison.compare @comparison = nil ret end end end module QueryStringSearch module Comparator class Comparison attr_accessor :subject, :operator, :other def compare if operator == "=" equal? elsif operator == "∈" contain? elsif ["<",">","<=",">="] inequal? end end def inequal? eval("#{other} #{operator} #{subject}") end def equal? normalize(subject) == normalize(other) end def contain? normalize(subject).include?(normalize(other)) end def normalize(unnormalized) if unnormalized.respond_to?(:each) unnormalized.map(&:to_s).map(&:upcase) else unnormalized.to_s.upcase end end end end end ## Instruction: Move from strings & eval to symbols and public_send Seems like an obvious change. This works, but it's obviously not in a final state yet. ## Code After: module QueryStringSearch module Comparator def self.using(operator) create_comparison comparison.operator = operator self end def self.does(subject) create_comparison comparison.subject = subject self end def self.equal?(other) comparison.operator = "=" compare_with?(other) end def self.contain?(other) comparison.operator = "∈" compare_with?(other) end def self.compare_with?(other) comparison.other = other resolve end private def self.create_comparison @comparison ||= Comparison.new end def self.comparison @comparison end def self.resolve ret = @comparison.compare @comparison = nil ret end end end module QueryStringSearch module Comparator class Comparison attr_accessor :subject, :operator, :other def compare if ["=".to_sym].include?(operator) equal? elsif [:∈].include?(operator) contain? elsif [:<, :>, :<=, :>=].include?(operator) inequal? else false end end def operator=(x) @operator = x.to_sym end def inequal? other.to_i.public_send(operator, subject.to_i) end def equal? normalize(other).public_send(:==, normalize(subject)) end def contain? normalize(subject).public_send(:&, [normalize(other)]).any? end def normalize(unnormalized) if unnormalized.respond_to?(:each) unnormalized.map(&:to_s).map(&:upcase) else unnormalized.to_s.upcase end end end end end
17cbd84b9b5a4bd08123ff5f429be191b1bdf063
polynomial.py
polynomial.py
class Polynomial(object): def __init__(self): pass
class Polynomial(object): def __init__(self, coeffs): """ 1 parameter: coeff (list): coeff[n] = coefficient of nth degree term """ self.coeffs = coeffs @property def coeffs(self): return self._coeffs @property def degree(self): return len(self.coeffs) - 1 @coeffs.setter def coeffs(self, c): if not isinstance(c, list): raise TypeError("must provide list as arg") elif len(c) == 0: raise ValueError("arg length must be > 0") else: self._coeffs = c def main(): p1 = Polynomial([1]) # p = 1 p2 = Polynomial([2, 3, 4]) # p = 2 + 3x + 4x^2 assert(p1.degree == 0) assert(p2.degree == 2) assert(p2.coeffs == [2, 3, 4]) if __name__ == "__main__": main()
Add __init__, coeffs and degree attributes
Add __init__, coeffs and degree attributes
Python
mit
jackromo/mathLibPy
python
## Code Before: class Polynomial(object): def __init__(self): pass ## Instruction: Add __init__, coeffs and degree attributes ## Code After: class Polynomial(object): def __init__(self, coeffs): """ 1 parameter: coeff (list): coeff[n] = coefficient of nth degree term """ self.coeffs = coeffs @property def coeffs(self): return self._coeffs @property def degree(self): return len(self.coeffs) - 1 @coeffs.setter def coeffs(self, c): if not isinstance(c, list): raise TypeError("must provide list as arg") elif len(c) == 0: raise ValueError("arg length must be > 0") else: self._coeffs = c def main(): p1 = Polynomial([1]) # p = 1 p2 = Polynomial([2, 3, 4]) # p = 2 + 3x + 4x^2 assert(p1.degree == 0) assert(p2.degree == 2) assert(p2.coeffs == [2, 3, 4]) if __name__ == "__main__": main()
b00876c7c5563839179364762053dfff7f74c124
test/Permissions/Editor/Create/NotAvailable/FieldEditPermissionTest.php
test/Permissions/Editor/Create/NotAvailable/FieldEditPermissionTest.php
<?php namespace ProcessWire\GraphQL\Test\Permissions; use ProcessWire\GraphQL\Test\GraphqlTestCase; use ProcessWire\GraphQL\Utils; use function ProcessWire\GraphQL\Test\Assert\assertTypePathNotExists; class EditorCreateNotAvailableFieldEditPermissionTest extends GraphqlTestCase { /** * + For editor. * + The template is legal. * + The configured parent template is legal. * + All required fields are legal. * + Editor has all required permissions for templates. * - Editor does not have edit permission on required field. (title) */ public static function getSettings() { $editorRole = Utils::roles()->get("editor"); return [ 'login' => 'editor', 'legalTemplates' => ['skyscraper', 'city'], 'legalFields' => ['title', 'images'], 'access' => [ 'templates' => [ [ 'name' => 'skyscraper', 'roles' => [$editorRole->id], 'editRoles' => [$editorRole->id], 'createRoles' => [$editorRole->id], ], [ 'name' => 'city', 'roles' => [$editorRole->id], 'addRoles' => [$editorRole->id], ] ], 'fields' => [ [ 'name' => 'images', 'editRoles' => [$editorRole->id], ] ] ] ]; } public function testPermission() { assertTypePathNotExists( ['Mutation', 'createSkyscraper'], 'createSkyscraper mutation field should not be available if one of the required fields is not legal.' ); } }
<?php namespace ProcessWire\GraphQL\Test\Permissions; use ProcessWire\GraphQL\Test\GraphqlTestCase; use function ProcessWire\GraphQL\Test\Assert\assertTypePathNotExists; class EditorCreateNotAvailableFieldEditPermissionTest extends GraphqlTestCase { /** * + For editor. * + The template is legal. * + The configured parent template is legal. * + All required fields are legal. * + Editor has all required permissions for templates. * - Editor does not have edit permission on required field. (title) */ public static function getSettings() { return [ 'login' => 'editor', 'legalTemplates' => ['skyscraper', 'city'], 'legalFields' => ['title', 'images'], 'access' => [ 'templates' => [ [ 'name' => 'skyscraper', 'roles' => ['editor'], 'editRoles' => ['editor'], 'createRoles' => ['editor'], ], [ 'name' => 'city', 'roles' => ['editor'], 'addRoles' => ['editor'], ] ], 'fields' => [ [ 'name' => 'images', 'editRoles' => ['editor'], ], [ 'name' => 'title', // 'editRoles' => ['editor'], // <-- has no edit permission to the required "title" field. ], ] ] ]; } public function testPermission() { assertTypePathNotExists( ['Mutation', 'createSkyscraper'], 'createSkyscraper mutation field should not be available if user has no edit permission on the required field.' ); } }
Update test case create is not available because of field edit permission.
Update test case create is not available because of field edit permission.
PHP
mit
dadish/ProcessGraphQL,dadish/ProcessGraphQL
php
## Code Before: <?php namespace ProcessWire\GraphQL\Test\Permissions; use ProcessWire\GraphQL\Test\GraphqlTestCase; use ProcessWire\GraphQL\Utils; use function ProcessWire\GraphQL\Test\Assert\assertTypePathNotExists; class EditorCreateNotAvailableFieldEditPermissionTest extends GraphqlTestCase { /** * + For editor. * + The template is legal. * + The configured parent template is legal. * + All required fields are legal. * + Editor has all required permissions for templates. * - Editor does not have edit permission on required field. (title) */ public static function getSettings() { $editorRole = Utils::roles()->get("editor"); return [ 'login' => 'editor', 'legalTemplates' => ['skyscraper', 'city'], 'legalFields' => ['title', 'images'], 'access' => [ 'templates' => [ [ 'name' => 'skyscraper', 'roles' => [$editorRole->id], 'editRoles' => [$editorRole->id], 'createRoles' => [$editorRole->id], ], [ 'name' => 'city', 'roles' => [$editorRole->id], 'addRoles' => [$editorRole->id], ] ], 'fields' => [ [ 'name' => 'images', 'editRoles' => [$editorRole->id], ] ] ] ]; } public function testPermission() { assertTypePathNotExists( ['Mutation', 'createSkyscraper'], 'createSkyscraper mutation field should not be available if one of the required fields is not legal.' ); } } ## Instruction: Update test case create is not available because of field edit permission. ## Code After: <?php namespace ProcessWire\GraphQL\Test\Permissions; use ProcessWire\GraphQL\Test\GraphqlTestCase; use function ProcessWire\GraphQL\Test\Assert\assertTypePathNotExists; class EditorCreateNotAvailableFieldEditPermissionTest extends GraphqlTestCase { /** * + For editor. * + The template is legal. * + The configured parent template is legal. * + All required fields are legal. * + Editor has all required permissions for templates. * - Editor does not have edit permission on required field. (title) */ public static function getSettings() { return [ 'login' => 'editor', 'legalTemplates' => ['skyscraper', 'city'], 'legalFields' => ['title', 'images'], 'access' => [ 'templates' => [ [ 'name' => 'skyscraper', 'roles' => ['editor'], 'editRoles' => ['editor'], 'createRoles' => ['editor'], ], [ 'name' => 'city', 'roles' => ['editor'], 'addRoles' => ['editor'], ] ], 'fields' => [ [ 'name' => 'images', 'editRoles' => ['editor'], ], [ 'name' => 'title', // 'editRoles' => ['editor'], // <-- has no edit permission to the required "title" field. ], ] ] ]; } public function testPermission() { assertTypePathNotExists( ['Mutation', 'createSkyscraper'], 'createSkyscraper mutation field should not be available if user has no edit permission on the required field.' ); } }
70fab2cf5426def9114bdd40727f4a72593df9e4
src/core.js
src/core.js
(function(global) { 'use strict'; define([ ], function() { // $HEADER$ /** * This will be the <code>warmsea</code> namespace. * @namespace * @alias warmsea */ var w = _.extend({}, _); /** * The unmodified underlying underscore object. */ w._ = w.underscore = _; /** * The version of this WarmseaJS. * @type {string} */ w.VERSION = '$VERSION$'; /** * The global object of the executing environment. * @type {object} */ w.global = global; /** * Save the previous `warmsea`. */ var previousWarmsea = global.warmsea; /** * Return the current `warmsea` and restore the previous global one. * @return {warmsea} This warmsea object. */ w.noConflict = function() { global.warmsea = previousWarmsea; return this; }; /** * A function that throws an error with the message "Unimplemented". */ w.unimplemented = function() { w.error('Unimplemented'); }; /** * Throws an Error. * @method * @param {string} msg * @throws {Error} */ w.error = function(msg) { throw new Error(msg); }; // $FOOTER$ return w; }); })(this);
(function(global) { 'use strict'; define([ ], function() { // $HEADER$ /** * This will be the <code>warmsea</code> namespace. * @namespace * @alias warmsea */ var w = _.extend({}, _); /** * The unmodified underlying underscore object. */ w._ = w.underscore = _; /** * The version of this WarmseaJS. * @type {string} */ w.VERSION = '$VERSION$'; /** * The global object of the executing environment. * @type {object} */ w.global = global; /** * Save the previous `warmsea`. */ var previousWarmsea = global.warmsea; /** * Return the current `warmsea` and restore the previous global one. * @return {warmsea} This warmsea object. */ w.noConflict = function() { global.warmsea = previousWarmsea; return this; }; /** * A function that throws an error with the message "Unimplemented". */ w.unimplemented = function() { w.error('Unimplemented'); }; /** * Throws an Error. * @method * @param {string} msg * @throws {Error} */ w.error = function(msg) { if (w.isFunction(w.format)) { msg = w.format.apply(w, arguments); } throw new Error(msg); }; // $FOOTER$ return w; }); })(this);
Format support for w.error() if possible.
Format support for w.error() if possible.
JavaScript
mit
warmsea/WarmseaJS
javascript
## Code Before: (function(global) { 'use strict'; define([ ], function() { // $HEADER$ /** * This will be the <code>warmsea</code> namespace. * @namespace * @alias warmsea */ var w = _.extend({}, _); /** * The unmodified underlying underscore object. */ w._ = w.underscore = _; /** * The version of this WarmseaJS. * @type {string} */ w.VERSION = '$VERSION$'; /** * The global object of the executing environment. * @type {object} */ w.global = global; /** * Save the previous `warmsea`. */ var previousWarmsea = global.warmsea; /** * Return the current `warmsea` and restore the previous global one. * @return {warmsea} This warmsea object. */ w.noConflict = function() { global.warmsea = previousWarmsea; return this; }; /** * A function that throws an error with the message "Unimplemented". */ w.unimplemented = function() { w.error('Unimplemented'); }; /** * Throws an Error. * @method * @param {string} msg * @throws {Error} */ w.error = function(msg) { throw new Error(msg); }; // $FOOTER$ return w; }); })(this); ## Instruction: Format support for w.error() if possible. ## Code After: (function(global) { 'use strict'; define([ ], function() { // $HEADER$ /** * This will be the <code>warmsea</code> namespace. * @namespace * @alias warmsea */ var w = _.extend({}, _); /** * The unmodified underlying underscore object. */ w._ = w.underscore = _; /** * The version of this WarmseaJS. * @type {string} */ w.VERSION = '$VERSION$'; /** * The global object of the executing environment. * @type {object} */ w.global = global; /** * Save the previous `warmsea`. */ var previousWarmsea = global.warmsea; /** * Return the current `warmsea` and restore the previous global one. * @return {warmsea} This warmsea object. */ w.noConflict = function() { global.warmsea = previousWarmsea; return this; }; /** * A function that throws an error with the message "Unimplemented". */ w.unimplemented = function() { w.error('Unimplemented'); }; /** * Throws an Error. * @method * @param {string} msg * @throws {Error} */ w.error = function(msg) { if (w.isFunction(w.format)) { msg = w.format.apply(w, arguments); } throw new Error(msg); }; // $FOOTER$ return w; }); })(this);
8d62dc2f51ad817a42f65a8d5ea27fc7ddb89259
ktlint-intellij-idea-integration/src/main/resources/config/codestyles/ktlint.xml
ktlint-intellij-idea-integration/src/main/resources/config/codestyles/ktlint.xml
<code_scheme name="ktlint"> <JetCodeStyleSettings> <option name="PACKAGES_TO_USE_STAR_IMPORTS"> <value> <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" /> </value> </option> <option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" /> <option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" /> </JetCodeStyleSettings> <codeStyleSettings language="kotlin"> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> </indentOptions> </codeStyleSettings> </code_scheme>
<code_scheme name="ktlint"> <JetCodeStyleSettings> <option name="PACKAGES_TO_USE_STAR_IMPORTS"> <value> <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" /> </value> </option> <option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" /> <option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" /> </JetCodeStyleSettings> <codeStyleSettings language="kotlin"> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> </indentOptions> </codeStyleSettings> </code_scheme>
Update intellij idea integration with no blank line before rbrace rule
Update intellij idea integration with no blank line before rbrace rule
XML
mit
shyiko/ktlint,shyiko/ktlint,shyiko/ktlint,shyiko/ktlint
xml
## Code Before: <code_scheme name="ktlint"> <JetCodeStyleSettings> <option name="PACKAGES_TO_USE_STAR_IMPORTS"> <value> <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" /> </value> </option> <option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" /> <option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" /> </JetCodeStyleSettings> <codeStyleSettings language="kotlin"> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> </indentOptions> </codeStyleSettings> </code_scheme> ## Instruction: Update intellij idea integration with no blank line before rbrace rule ## Code After: <code_scheme name="ktlint"> <JetCodeStyleSettings> <option name="PACKAGES_TO_USE_STAR_IMPORTS"> <value> <package name="kotlinx.android.synthetic" withSubpackages="true" static="false" /> </value> </option> <option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" /> <option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" /> </JetCodeStyleSettings> <codeStyleSettings language="kotlin"> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <indentOptions> <option name="CONTINUATION_INDENT_SIZE" value="4" /> </indentOptions> </codeStyleSettings> </code_scheme>
7976bb55eae8435737cad2ce9058e670d1b1cbdf
lib/controllers/readingsController.js
lib/controllers/readingsController.js
'use strict'; // Load modules var Boom = require('boom'); var Joi = require('joi'); var Reading = require('../models/reading'); /** * GET /readings * Get readings * */ exports.index = { handler: function (request, reply) { Reading.find(function (err, docs) { if (err) { return reply(Boom.badImplementation(err)); } reply(docs); }); } }; /** * POST /readings * Create a new reading * */ exports.create = { handler: function (request, reply) { var reading = new Reading(); reading.sensorId = request.payload.sensorId; reading.speed = request.payload.speed; reading.period = request.payload.period; reading.save(function (err, doc) { if (err) { return reply(Boom.badImplementation(err)); } reply(doc).created('/readings/' + doc.id); }); }, validate: { payload: { sensorId: Joi.string().required(), speed: Joi.number().required(), period: Joi.number().required() } } };
'use strict'; // Load modules var Boom = require('boom'); var Joi = require('joi'); var Reading = require('../models/reading'); /** * GET /readings * Get readings * */ exports.index = { handler: function (request, reply) { Reading.find(function (err, docs) { if (err) { return reply(Boom.badImplementation(err)); } reply(docs); }); } }; /** * POST /readings * Create a new reading * */ exports.create = { handler: function (request, reply) { var reading = new Reading(); reading.sensorId = request.payload.sensorId; reading.speed = request.payload.speed; reading.period = request.payload.period; if (request.payload.time) { reading.time = request.payload.time; } reading.save(function (err, doc) { if (err) { return reply(Boom.badImplementation(err)); } reply(doc).created('/readings/' + doc.id); }); }, validate: { payload: { sensorId: Joi.string().required(), speed: Joi.number().required(), period: Joi.number().required(), time: Joi.date() } } };
Allow to create reading with specific time
Allow to create reading with specific time
JavaScript
mit
intelliroads/intelliroads-api
javascript
## Code Before: 'use strict'; // Load modules var Boom = require('boom'); var Joi = require('joi'); var Reading = require('../models/reading'); /** * GET /readings * Get readings * */ exports.index = { handler: function (request, reply) { Reading.find(function (err, docs) { if (err) { return reply(Boom.badImplementation(err)); } reply(docs); }); } }; /** * POST /readings * Create a new reading * */ exports.create = { handler: function (request, reply) { var reading = new Reading(); reading.sensorId = request.payload.sensorId; reading.speed = request.payload.speed; reading.period = request.payload.period; reading.save(function (err, doc) { if (err) { return reply(Boom.badImplementation(err)); } reply(doc).created('/readings/' + doc.id); }); }, validate: { payload: { sensorId: Joi.string().required(), speed: Joi.number().required(), period: Joi.number().required() } } }; ## Instruction: Allow to create reading with specific time ## Code After: 'use strict'; // Load modules var Boom = require('boom'); var Joi = require('joi'); var Reading = require('../models/reading'); /** * GET /readings * Get readings * */ exports.index = { handler: function (request, reply) { Reading.find(function (err, docs) { if (err) { return reply(Boom.badImplementation(err)); } reply(docs); }); } }; /** * POST /readings * Create a new reading * */ exports.create = { handler: function (request, reply) { var reading = new Reading(); reading.sensorId = request.payload.sensorId; reading.speed = request.payload.speed; reading.period = request.payload.period; if (request.payload.time) { reading.time = request.payload.time; } reading.save(function (err, doc) { if (err) { return reply(Boom.badImplementation(err)); } reply(doc).created('/readings/' + doc.id); }); }, validate: { payload: { sensorId: Joi.string().required(), speed: Joi.number().required(), period: Joi.number().required(), time: Joi.date() } } };
cbbde0858f2ea91c0feab9c76213b0770c348dc7
shell.nix
shell.nix
let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = with pkgs; [ nodejs poetry rsync ]; shellHook = '' export SOURCE_DATE_EPOCH=315532800 ''; }
let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = with pkgs; [ libffi nodejs poetry rsync ]; shellHook = '' export SOURCE_DATE_EPOCH=315532800 ''; }
Add libffi, needed for building keyring
Add libffi, needed for building keyring
Nix
bsd-3-clause
ento/elm-doc,ento/elm-doc
nix
## Code Before: let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = with pkgs; [ nodejs poetry rsync ]; shellHook = '' export SOURCE_DATE_EPOCH=315532800 ''; } ## Instruction: Add libffi, needed for building keyring ## Code After: let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = with pkgs; [ libffi nodejs poetry rsync ]; shellHook = '' export SOURCE_DATE_EPOCH=315532800 ''; }
0ce5b267b7352870730607b6706850b9e547719e
Sources/App/Admin/Database/Preparations/v0/CreateProblemCase.swift
Sources/App/Admin/Database/Preparations/v0/CreateProblemCase.swift
import Foundation import FluentProvider extension ProblemCase: Preparation { static func prepare(_ database: Database) throws { try database.create(self) { builder in builder.id() builder.parent(Problem.self, optional: false) builder.string("input") builder.string("output") builder.bool("visible") } } static func revert(_ database: Database) throws { try database.delete(self) } }
import Foundation import FluentProvider extension ProblemCase: Preparation { static func prepare(_ database: Database) throws { try database.create(self) { builder in builder.id() builder.parent(Problem.self, optional: false) builder.string("input", length: 2000) builder.string("output") builder.bool("visible") } } static func revert(_ database: Database) throws { try database.delete(self) } }
Extend problem case input column to 2000 chars
Extend problem case input column to 2000 chars
Swift
mit
antonyharfield/grader,antonyharfield/grader,antonyharfield/grader
swift
## Code Before: import Foundation import FluentProvider extension ProblemCase: Preparation { static func prepare(_ database: Database) throws { try database.create(self) { builder in builder.id() builder.parent(Problem.self, optional: false) builder.string("input") builder.string("output") builder.bool("visible") } } static func revert(_ database: Database) throws { try database.delete(self) } } ## Instruction: Extend problem case input column to 2000 chars ## Code After: import Foundation import FluentProvider extension ProblemCase: Preparation { static func prepare(_ database: Database) throws { try database.create(self) { builder in builder.id() builder.parent(Problem.self, optional: false) builder.string("input", length: 2000) builder.string("output") builder.bool("visible") } } static func revert(_ database: Database) throws { try database.delete(self) } }
2aacce141e11e2e30f566cad900c9fa1f4234d2b
tests/dummy/app/routes/nodes/detail/draft-registrations.js
tests/dummy/app/routes/nodes/detail/draft-registrations.js
import Ember from 'ember'; export default Ember.Route.extend({ model() { let node = this.modelFor('nodes.detail'); return node.get('draftRegistrations'); } });
import Ember from 'ember'; export default Ember.Route.extend({ model() { let node = this.modelFor('nodes.detail'); let drafts = node.get('draftRegistrations'); return Ember.RSVP.hash({ node: node, drafts: drafts }); }, });
Make both node and draft model available in draft template.
Make both node and draft model available in draft template.
JavaScript
apache-2.0
crcresearch/ember-osf,CenterForOpenScience/ember-osf,pattisdr/ember-osf,hmoco/ember-osf,baylee-d/ember-osf,hmoco/ember-osf,jamescdavis/ember-osf,CenterForOpenScience/ember-osf,pattisdr/ember-osf,chrisseto/ember-osf,binoculars/ember-osf,binoculars/ember-osf,cwilli34/ember-osf,jamescdavis/ember-osf,crcresearch/ember-osf,baylee-d/ember-osf,chrisseto/ember-osf,cwilli34/ember-osf
javascript
## Code Before: import Ember from 'ember'; export default Ember.Route.extend({ model() { let node = this.modelFor('nodes.detail'); return node.get('draftRegistrations'); } }); ## Instruction: Make both node and draft model available in draft template. ## Code After: import Ember from 'ember'; export default Ember.Route.extend({ model() { let node = this.modelFor('nodes.detail'); let drafts = node.get('draftRegistrations'); return Ember.RSVP.hash({ node: node, drafts: drafts }); }, });
2faafebe66608521e193671d9979dd881a8449d4
app/views/geckoboard_api/widgets/claims.jbuilder
app/views/geckoboard_api/widgets/claims.jbuilder
json.item do json.array! [ { value: @reporter.authorised_in_full, text: 'Authorised' }, { value: @reporter.authorised_in_part, text: 'Part authorised' }, { value: @reporter.rejected, text: 'Rejected' } ] end
json.item do json.array! [ { value: @reporter.rejected, text: 'Rejected' }, { value: @reporter.authorised_in_part, text: 'Part authorised' }, { value: @reporter.authorised_in_full, text: 'Authorised' } ] end
Change ordering for RAG widget
Change ordering for RAG widget
Ruby
mit
ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments
ruby
## Code Before: json.item do json.array! [ { value: @reporter.authorised_in_full, text: 'Authorised' }, { value: @reporter.authorised_in_part, text: 'Part authorised' }, { value: @reporter.rejected, text: 'Rejected' } ] end ## Instruction: Change ordering for RAG widget ## Code After: json.item do json.array! [ { value: @reporter.rejected, text: 'Rejected' }, { value: @reporter.authorised_in_part, text: 'Part authorised' }, { value: @reporter.authorised_in_full, text: 'Authorised' } ] end
ac629272303ae1b8a8428c272d1aec2ab7b4b83f
lib/calendar.js
lib/calendar.js
var icalendar = require('icalendar'); var _ = require('underscore'); exports.generateIcal = function(currentUser, boards, params) { var ical = new icalendar.iCalendar(); boards.each(function(board) { board.cards().each(function(card) { // no arm, no chocolate if (!card.get('badges').due) return; if (params && params.only_me == 'true' && !_(card.get('idMembers')).include(currentUser.id)) { return; } var event = new icalendar.VEvent(card.id); event.setSummary(card.get('name')); event.setDescription(card.get('desc')); event.setDate(card.get('badges').due, 60*60); event.addProperty('ATTACH', card.get('url')); event.addProperty('URL', card.get('url')); if (params && params.alarm != '-1') { comp = event.addComponent('VALARM'); comp.addProperty('ACTION', 'DISPLAY'); comp.addProperty('DESCRIPTION', 'Generated by trello calendar'); comp.addProperty('TRIGGER', params.alarm); } ical.addComponent(event); }); }); return ical; }
var icalendar = require('icalendar'); var _ = require('underscore'); exports.generateIcal = function(currentUser, boards, params) { var ical = new icalendar.iCalendar(); boards.each(function(board) { board.cards().each(function(card) { // no arm, no chocolate if (!card.get('badges').due) return; if (params && params.only_me == 'true' && !_(card.get('idMembers')).include(currentUser.id)) { return; } var description = card.get('desc'); description += "\n\n"+ card.get('url'); var event = new icalendar.VEvent(card.id); event.setSummary(card.get('name')); event.setDescription(description); event.setDate(card.get('badges').due, 60*60); event.addProperty('ATTACH', card.get('url')); event.addProperty('URL', card.get('url')); if (params && params.alarm != '-1') { comp = event.addComponent('VALARM'); comp.addProperty('ACTION', 'DISPLAY'); comp.addProperty('DESCRIPTION', 'Generated by trello calendar'); comp.addProperty('TRIGGER', params.alarm); } ical.addComponent(event); }); }); return ical; }
Add url to the description field.
Add url to the description field. Signed-off-by: François de Metz <[email protected]>
JavaScript
agpl-3.0
francois2metz/trello-calendar,francois2metz/trello-calendar
javascript
## Code Before: var icalendar = require('icalendar'); var _ = require('underscore'); exports.generateIcal = function(currentUser, boards, params) { var ical = new icalendar.iCalendar(); boards.each(function(board) { board.cards().each(function(card) { // no arm, no chocolate if (!card.get('badges').due) return; if (params && params.only_me == 'true' && !_(card.get('idMembers')).include(currentUser.id)) { return; } var event = new icalendar.VEvent(card.id); event.setSummary(card.get('name')); event.setDescription(card.get('desc')); event.setDate(card.get('badges').due, 60*60); event.addProperty('ATTACH', card.get('url')); event.addProperty('URL', card.get('url')); if (params && params.alarm != '-1') { comp = event.addComponent('VALARM'); comp.addProperty('ACTION', 'DISPLAY'); comp.addProperty('DESCRIPTION', 'Generated by trello calendar'); comp.addProperty('TRIGGER', params.alarm); } ical.addComponent(event); }); }); return ical; } ## Instruction: Add url to the description field. Signed-off-by: François de Metz <[email protected]> ## Code After: var icalendar = require('icalendar'); var _ = require('underscore'); exports.generateIcal = function(currentUser, boards, params) { var ical = new icalendar.iCalendar(); boards.each(function(board) { board.cards().each(function(card) { // no arm, no chocolate if (!card.get('badges').due) return; if (params && params.only_me == 'true' && !_(card.get('idMembers')).include(currentUser.id)) { return; } var description = card.get('desc'); description += "\n\n"+ card.get('url'); var event = new icalendar.VEvent(card.id); event.setSummary(card.get('name')); event.setDescription(description); event.setDate(card.get('badges').due, 60*60); event.addProperty('ATTACH', card.get('url')); event.addProperty('URL', card.get('url')); if (params && params.alarm != '-1') { comp = event.addComponent('VALARM'); comp.addProperty('ACTION', 'DISPLAY'); comp.addProperty('DESCRIPTION', 'Generated by trello calendar'); comp.addProperty('TRIGGER', params.alarm); } ical.addComponent(event); }); }); return ical; }
937ef31977bd291709b3f434b542facdc164c799
website-guts/templates/components/modals/signin_modal.hbs
website-guts/templates/components/modals/signin_modal.hbs
--- layout: modal_wrapper.hbs modal_title: Sign in to Optimizely data_attr_value: signin wrapper_id: sign-in-dialog form_action: /account/signin primary_button_text: Sign in negative_button_text: Cancel --- <label> <span>Email address</span> <input type="text" name="email" /> </label> <label> <span>Password</span> <input type="password" name="password" /> </label> <div class="terms"> <label class="spaced"> <input type="checkbox" name="persist" checked="checked" /> <p>Keep me signed in</p> </label> </div> <div class="options"> <p> <a class="show-forgot-password">Forgot your password?</a><br /> No account? <a class="show-create-account" data-modal-click="signup">Register here</a> </p> </div>
--- layout: modal_wrapper.hbs modal_title: Sign in to Optimizely data_attr_value: signin wrapper_id: sign-in-dialog form_action: /account/signin primary_button_text: Sign in negative_button_text: Cancel --- <label> <span>Email address</span> <input type="text" name="email" /> </label> <label> <span>Password</span> <input type="password" name="password" /> </label> <div class="terms"> <label class="spaced"> <input type="checkbox" name="persist" checked="checked" /> <p>Keep me signed in</p> </label> </div> <div class="options"> <p><a class="show-forgot-password">Forgot your password?</a><p> <p>No account? <a class="show-create-account" data-modal-click="signup">Register here</a></p> </div>
Add padding between modal links.
Add padding between modal links.
Handlebars
mit
CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg
handlebars
## Code Before: --- layout: modal_wrapper.hbs modal_title: Sign in to Optimizely data_attr_value: signin wrapper_id: sign-in-dialog form_action: /account/signin primary_button_text: Sign in negative_button_text: Cancel --- <label> <span>Email address</span> <input type="text" name="email" /> </label> <label> <span>Password</span> <input type="password" name="password" /> </label> <div class="terms"> <label class="spaced"> <input type="checkbox" name="persist" checked="checked" /> <p>Keep me signed in</p> </label> </div> <div class="options"> <p> <a class="show-forgot-password">Forgot your password?</a><br /> No account? <a class="show-create-account" data-modal-click="signup">Register here</a> </p> </div> ## Instruction: Add padding between modal links. ## Code After: --- layout: modal_wrapper.hbs modal_title: Sign in to Optimizely data_attr_value: signin wrapper_id: sign-in-dialog form_action: /account/signin primary_button_text: Sign in negative_button_text: Cancel --- <label> <span>Email address</span> <input type="text" name="email" /> </label> <label> <span>Password</span> <input type="password" name="password" /> </label> <div class="terms"> <label class="spaced"> <input type="checkbox" name="persist" checked="checked" /> <p>Keep me signed in</p> </label> </div> <div class="options"> <p><a class="show-forgot-password">Forgot your password?</a><p> <p>No account? <a class="show-create-account" data-modal-click="signup">Register here</a></p> </div>
7626054ed4e66d60d8d9dea5e23dcd5c3f8555f8
nvim/settings/plugin-cosco.vim
nvim/settings/plugin-cosco.vim
autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon) autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab imap <silent> <Leader>; <c-o><Plug>(cosco-commaOrSemiColon)
autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon) autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab imap <silent> <Leader>; <c-o><Plug>(cosco-commaOrSemiColon) let g:cosco_ignore_comment_lines = 1
Add cosco ignore comments option
Add cosco ignore comments option
VimL
bsd-2-clause
lfilho/dotfiles,yjlintw/dotfiles,yjlintw/dotfiles,yjlintw/dotfiles,lfilho/dotfiles,lfilho/dotfiles
viml
## Code Before: autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon) autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab imap <silent> <Leader>; <c-o><Plug>(cosco-commaOrSemiColon) ## Instruction: Add cosco ignore comments option ## Code After: autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon) autocmd FileType c,cpp,css,java,javascript,perl,php,jade,matlab imap <silent> <Leader>; <c-o><Plug>(cosco-commaOrSemiColon) let g:cosco_ignore_comment_lines = 1
8fc6ba648347a48065ab2fb26f940dc92919feeb
bands/__init__.py
bands/__init__.py
import shutil from cherrypy.lib.static import serve_file from uber.common import * from panels import * from bands._version import __version__ from bands.config import * from bands.models import * import bands.model_checks import bands.automated_emails static_overrides(join(bands_config['module_root'], 'static')) template_overrides(join(bands_config['module_root'], 'templates')) mount_site_sections(bands_config['module_root'])
import shutil from cherrypy.lib.static import serve_file from uber.common import * from panels import * from bands._version import __version__ from bands.config import * from bands.models import * import bands.model_checks import bands.automated_emails static_overrides(join(bands_config['module_root'], 'static')) template_overrides(join(bands_config['module_root'], 'templates')) mount_site_sections(bands_config['module_root']) c.MENU['People'].append_menu_item( MenuItem(access=c.BANDS, name='Bands', href='../band_admin/') )
Implement new python-based menu format
Implement new python-based menu format
Python
agpl-3.0
magfest/bands,magfest/bands
python
## Code Before: import shutil from cherrypy.lib.static import serve_file from uber.common import * from panels import * from bands._version import __version__ from bands.config import * from bands.models import * import bands.model_checks import bands.automated_emails static_overrides(join(bands_config['module_root'], 'static')) template_overrides(join(bands_config['module_root'], 'templates')) mount_site_sections(bands_config['module_root']) ## Instruction: Implement new python-based menu format ## Code After: import shutil from cherrypy.lib.static import serve_file from uber.common import * from panels import * from bands._version import __version__ from bands.config import * from bands.models import * import bands.model_checks import bands.automated_emails static_overrides(join(bands_config['module_root'], 'static')) template_overrides(join(bands_config['module_root'], 'templates')) mount_site_sections(bands_config['module_root']) c.MENU['People'].append_menu_item( MenuItem(access=c.BANDS, name='Bands', href='../band_admin/') )
309042504df70c0d36e02c68e0956f9297d76c8c
README.md
README.md
A little app to prototype experiments with my Radio Thermostat This is an app I've thrown together quickly with Spring Boot, in part just to play with some of its shiny looking features, to try to get some quick progress on some automation for my thermostat. I have an older "CT 30" model of the Radio Thermostat: http://www.radiothermostat.com/ I started this project because I wanted to try for a fresh start at what I had tried on https://github.com/pioto/radio-thermostat before... This approach feels much cleaner and simpler, but if you aren't a big fan of Spring then it may not work for you.
[![Build Status](https://travis-ci.org/pioto/thermostat.svg)](https://travis-ci.org/pioto/thermostat) A little app to prototype experiments with my Radio Thermostat This is an app I've thrown together quickly with Spring Boot, in part just to play with some of its shiny looking features, to try to get some quick progress on some automation for my thermostat. I have an older "CT 30" model of the Radio Thermostat: http://www.radiothermostat.com/ I started this project because I wanted to try for a fresh start at what I had tried on https://github.com/pioto/radio-thermostat before... This approach feels much cleaner and simpler, but if you aren't a big fan of Spring then it may not work for you.
Add Travis CI build status
Add Travis CI build status
Markdown
mit
pioto/thermostat,pioto/thermostat
markdown
## Code Before: A little app to prototype experiments with my Radio Thermostat This is an app I've thrown together quickly with Spring Boot, in part just to play with some of its shiny looking features, to try to get some quick progress on some automation for my thermostat. I have an older "CT 30" model of the Radio Thermostat: http://www.radiothermostat.com/ I started this project because I wanted to try for a fresh start at what I had tried on https://github.com/pioto/radio-thermostat before... This approach feels much cleaner and simpler, but if you aren't a big fan of Spring then it may not work for you. ## Instruction: Add Travis CI build status ## Code After: [![Build Status](https://travis-ci.org/pioto/thermostat.svg)](https://travis-ci.org/pioto/thermostat) A little app to prototype experiments with my Radio Thermostat This is an app I've thrown together quickly with Spring Boot, in part just to play with some of its shiny looking features, to try to get some quick progress on some automation for my thermostat. I have an older "CT 30" model of the Radio Thermostat: http://www.radiothermostat.com/ I started this project because I wanted to try for a fresh start at what I had tried on https://github.com/pioto/radio-thermostat before... This approach feels much cleaner and simpler, but if you aren't a big fan of Spring then it may not work for you.
d5d303b3bad1c3451457acf6dc98d673f2e98f2f
java/example/default/index.html
java/example/default/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Hello MapReduce</title> </head> <body> <h1>Hello MapReduce!</h1> <table> <tr> <td>This is an example Map Reduce that demos parallel computation. <br /> For the purposes of illustration this MapReduce looks for collisions in Java's Random number generator. (There are not any.) <br /> Here a collision is defined as multiple seed values that when next is called produce the same output value. <br /> The input source is a range of numbers to test, and any collisions are logged and written out to a file in Google Cloud Storage. (Which in this case will be empty.) <br /> <a href="/randomcollisions">Random collisions example.</a> </td> </tr> <tr> <td>There is also a second more complex example that chains three MapReduces together:<br /> The first MapReduce creates some datastore entities <br /> The second MapReduce does some analysis on them <br /> and the third MapReduce deletes them. <br /> On the whole it does not do anything useful, but it shows how to chain mapreduce jobs together, and how to interact with the datastore from mapreduce jobs. <br /> It also gives an example of validating a request using a token. <br /> <a href="/entitycount">Entity counting example.</a> </td> </tr> </table> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Hello MapReduce</title> </head> <body> <h1>MapReduce Sample Programs</h1> <table> <tr> <td><Big>Random collisions example</Big><br /> This example demonstrates parallel computation. It looks for collisions in Java's random number generator, <br /> where a collision is defined as multiple seed values that produce the same output value when <code>next()</code> is called. <br /> The input source is a range of numbers to test. Collisions are logged and written out to a file in Google Cloud Storage. <br /> (No collisions occur so the file will be empty.) <br /> <a href="/randomcollisions">Run the example.</a> <br /></td> </tr> <tr> <td><br /><Big>Entity counting example</Big><br /> The example shows how to “chain" MapReduce jobs together, running them sequentially, one after the other. <br /> It runs three MapReduce jobs: <br /> The first job creates some datastore entities, the second job analyzes them, and the third job deletes them. <br /> The example also shows how to access the datastore from a MapReduce job, and how to validate a request using a token. <br /> <a href="/entitycount">Run the example.</a> </td> </tr> </table> </body> </html>
Add some formatting to landing page.
Java: Add some formatting to landing page. Revision created by MOE tool push_codebase. MOE_MIGRATION=6869
HTML
apache-2.0
soundofjw/appengine-mapreduce,vendasta/appengine-mapreduce,lordzuko/appengine-mapreduce,vendasta/appengine-mapreduce,rbruyere/appengine-mapreduce,VirusTotal/appengine-mapreduce,soundofjw/appengine-mapreduce,VirusTotal/appengine-mapreduce,lordzuko/appengine-mapreduce,Candreas/mapreduce,ankit318/appengine-mapreduce,rbruyere/appengine-mapreduce,ankit318/appengine-mapreduce,mikelambert/appengine-mapreduce,Candreas/mapreduce,Candreas/mapreduce,talele08/appengine-mapreduce,aozarov/appengine-mapreduce,GoogleCloudPlatform/appengine-mapreduce,mikelambert/appengine-mapreduce,bmenasha/appengine-mapreduce,aozarov/appengine-mapreduce,chargrizzle/appengine-mapreduce,VirusTotal/appengine-mapreduce,westerhofffl/appengine-mapreduce,GoogleCloudPlatform/appengine-mapreduce,chargrizzle/appengine-mapreduce,ankit318/appengine-mapreduce,bmenasha/appengine-mapreduce,potatolondon/potato-mapreduce,soundofjw/appengine-mapreduce,rbruyere/appengine-mapreduce,GoogleCloudPlatform/appengine-mapreduce,bmenasha/appengine-mapreduce,aozarov/appengine-mapreduce,ankit318/appengine-mapreduce,westerhofffl/appengine-mapreduce,soundofjw/appengine-mapreduce,westerhofffl/appengine-mapreduce,aozarov/appengine-mapreduce,talele08/appengine-mapreduce,VirusTotal/appengine-mapreduce,talele08/appengine-mapreduce,vendasta/appengine-mapreduce,vendasta/appengine-mapreduce,aozarov/appengine-mapreduce,mikelambert/appengine-mapreduce,talele08/appengine-mapreduce,Candreas/mapreduce,GoogleCloudPlatform/appengine-mapreduce,bmenasha/appengine-mapreduce,westerhofffl/appengine-mapreduce,rbruyere/appengine-mapreduce,bmenasha/appengine-mapreduce,Candreas/mapreduce,chargrizzle/appengine-mapreduce,ankit318/appengine-mapreduce,GoogleCloudPlatform/appengine-mapreduce,talele08/appengine-mapreduce,mikelambert/appengine-mapreduce,VirusTotal/appengine-mapreduce,lordzuko/appengine-mapreduce,mikelambert/appengine-mapreduce,potatolondon/potato-mapreduce,westerhofffl/appengine-mapreduce,chargrizzle/appengine-mapreduce,soundofjw/appengine-mapreduce,lordzuko/appengine-mapreduce,potatolondon/potato-mapreduce,vendasta/appengine-mapreduce,chargrizzle/appengine-mapreduce,rbruyere/appengine-mapreduce,lordzuko/appengine-mapreduce
html
## Code Before: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Hello MapReduce</title> </head> <body> <h1>Hello MapReduce!</h1> <table> <tr> <td>This is an example Map Reduce that demos parallel computation. <br /> For the purposes of illustration this MapReduce looks for collisions in Java's Random number generator. (There are not any.) <br /> Here a collision is defined as multiple seed values that when next is called produce the same output value. <br /> The input source is a range of numbers to test, and any collisions are logged and written out to a file in Google Cloud Storage. (Which in this case will be empty.) <br /> <a href="/randomcollisions">Random collisions example.</a> </td> </tr> <tr> <td>There is also a second more complex example that chains three MapReduces together:<br /> The first MapReduce creates some datastore entities <br /> The second MapReduce does some analysis on them <br /> and the third MapReduce deletes them. <br /> On the whole it does not do anything useful, but it shows how to chain mapreduce jobs together, and how to interact with the datastore from mapreduce jobs. <br /> It also gives an example of validating a request using a token. <br /> <a href="/entitycount">Entity counting example.</a> </td> </tr> </table> </body> </html> ## Instruction: Java: Add some formatting to landing page. Revision created by MOE tool push_codebase. MOE_MIGRATION=6869 ## Code After: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Hello MapReduce</title> </head> <body> <h1>MapReduce Sample Programs</h1> <table> <tr> <td><Big>Random collisions example</Big><br /> This example demonstrates parallel computation. It looks for collisions in Java's random number generator, <br /> where a collision is defined as multiple seed values that produce the same output value when <code>next()</code> is called. <br /> The input source is a range of numbers to test. Collisions are logged and written out to a file in Google Cloud Storage. <br /> (No collisions occur so the file will be empty.) <br /> <a href="/randomcollisions">Run the example.</a> <br /></td> </tr> <tr> <td><br /><Big>Entity counting example</Big><br /> The example shows how to “chain" MapReduce jobs together, running them sequentially, one after the other. <br /> It runs three MapReduce jobs: <br /> The first job creates some datastore entities, the second job analyzes them, and the third job deletes them. <br /> The example also shows how to access the datastore from a MapReduce job, and how to validate a request using a token. <br /> <a href="/entitycount">Run the example.</a> </td> </tr> </table> </body> </html>
073f4ddaff5efdd13f291280a8b46ce1d5e7b0c5
src/DailySoccerSolution/DailySoccerMobile/package.json
src/DailySoccerSolution/DailySoccerMobile/package.json
{ "name": "dailysoccermobile", "version": "1.1.1", "description": "DailySoccerMobile: An Ionic project", "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.0.4", "gulp-concat": "^2.2.0", "gulp-minify-css": "^0.3.0", "gulp-rename": "^1.2.0" }, "devDependencies": { "bower": "^1.3.3", "gulp-util": "^2.2.14", "shelljs": "^0.3.0" }, "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "cordova-plugin-statusbar", "ionic-plugin-keyboard" ], "cordovaPlatforms": [ "android" ] }
{ "name": "dailysoccermobile", "version": "1.1.1", "description": "DailySoccerMobile: An Ionic project", "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.0.4", "gulp-concat": "^2.2.0", "gulp-minify-css": "^0.3.0", "gulp-rename": "^1.2.0" }, "devDependencies": { "bower": "^1.3.3", "gulp-util": "^2.2.14", "shelljs": "^0.3.0" }, "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "cordova-plugin-statusbar", "ionic-plugin-keyboard" ], "cordovaPlatforms": [] }
Remove platforms from DailySoccerMobile, make it blank.
Remove platforms from DailySoccerMobile, make it blank. Signed-off-by: Teerachai Laothong <[email protected]>
JSON
mit
tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer
json
## Code Before: { "name": "dailysoccermobile", "version": "1.1.1", "description": "DailySoccerMobile: An Ionic project", "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.0.4", "gulp-concat": "^2.2.0", "gulp-minify-css": "^0.3.0", "gulp-rename": "^1.2.0" }, "devDependencies": { "bower": "^1.3.3", "gulp-util": "^2.2.14", "shelljs": "^0.3.0" }, "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "cordova-plugin-statusbar", "ionic-plugin-keyboard" ], "cordovaPlatforms": [ "android" ] } ## Instruction: Remove platforms from DailySoccerMobile, make it blank. Signed-off-by: Teerachai Laothong <[email protected]> ## Code After: { "name": "dailysoccermobile", "version": "1.1.1", "description": "DailySoccerMobile: An Ionic project", "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.0.4", "gulp-concat": "^2.2.0", "gulp-minify-css": "^0.3.0", "gulp-rename": "^1.2.0" }, "devDependencies": { "bower": "^1.3.3", "gulp-util": "^2.2.14", "shelljs": "^0.3.0" }, "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "cordova-plugin-statusbar", "ionic-plugin-keyboard" ], "cordovaPlatforms": [] }
9d0c03be10423d6ffdc3e7bf6d000f8a9eac454b
.travis.yml
.travis.yml
language: objective-c xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder xcode_scheme: SocketIO-iOS osx_image: xcode8 branches: only: - master - development script: xctool -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test -parallelize
language: objective-c xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder xcode_scheme: SocketIO-iOS osx_image: xcode8 branches: only: - master - development - travis-test before_install: - brew update - brew outdated xctool || brew upgrade xctool # script: xctool -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test -parallelize script: xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test
Use xcodebuild until xctool is updated
Use xcodebuild until xctool is updated
YAML
apache-2.0
lightsprint09/socket.io-client-swift,lightsprint09/socket.io-client-swift
yaml
## Code Before: language: objective-c xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder xcode_scheme: SocketIO-iOS osx_image: xcode8 branches: only: - master - development script: xctool -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test -parallelize ## Instruction: Use xcodebuild until xctool is updated ## Code After: language: objective-c xcode_project: Socket.IO-Client-Swift.xcodeproj # path to your xcodeproj folder xcode_scheme: SocketIO-iOS osx_image: xcode8 branches: only: - master - development - travis-test before_install: - brew update - brew outdated xctool || brew upgrade xctool # script: xctool -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test -parallelize script: xcodebuild -project Socket.IO-Client-Swift.xcodeproj -scheme SocketIO-Mac build test
0f20480929ee6fc51e9373616160d00208518d71
neovim/.config/nvim/modules/plugins/conjure.vim
neovim/.config/nvim/modules/plugins/conjure.vim
let g:conjure_log_direction = "horizontal" let g:conjure_log_blacklist = ["up", "ret", "ret-multiline", "load-file", "eval"]
let g:conjure_log_blacklist = ["up", "ret", "ret-multiline", "load-file", "eval"]
Use vertical Conjure log again
Use vertical Conjure log again
VimL
unlicense
Olical/dotfiles
viml
## Code Before: let g:conjure_log_direction = "horizontal" let g:conjure_log_blacklist = ["up", "ret", "ret-multiline", "load-file", "eval"] ## Instruction: Use vertical Conjure log again ## Code After: let g:conjure_log_blacklist = ["up", "ret", "ret-multiline", "load-file", "eval"]
3c2e31c136a2b9fc766d4e19806e8cbfa1a88a26
index.html
index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sample Deployment</title> <style> body { color: #ffffff; background-color: #0188cc; font-family: Arial, sans-serif; font-size: 14px; } h1 { font-size: 500%; font-weight: normal; margin-bottom: 0; } h2 { font-size: 200%; font-weight: normal; margin-bottom: 0; } </style> </head> <body> <div align="center"> <h1>Congratulations</h1> <h2>This application was deployed using AWS CodeDeploy.</h2> <p>For next steps, read the <a href="http://www.infogird.com">Infogird</a>.</p> </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sample Deployment</title> <style> body { color: #ffffff; background-color: #0188cc; font-family: Arial, sans-serif; font-size: 14px; } h1 { font-size: 500%; font-weight: normal; margin-bottom: 0; } h2 { font-size: 200%; font-weight: normal; margin-bottom: 0; } </style> </head> <body> <div align="center"> <h1>Congratulations</h1> <h2>This application was deployed using AWS CodeDeploy.</h2> <p>For next steps, read the <a href="http://www.clearcarrental.com">Clear Car Rental</a>.</p> </div> </body> </html>
Index File Updated Take 2
Index File Updated Take 2
HTML
apache-2.0
shri20/CodeDeployGitHubDemo,shri20/CodeDeployGitHubDemo
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sample Deployment</title> <style> body { color: #ffffff; background-color: #0188cc; font-family: Arial, sans-serif; font-size: 14px; } h1 { font-size: 500%; font-weight: normal; margin-bottom: 0; } h2 { font-size: 200%; font-weight: normal; margin-bottom: 0; } </style> </head> <body> <div align="center"> <h1>Congratulations</h1> <h2>This application was deployed using AWS CodeDeploy.</h2> <p>For next steps, read the <a href="http://www.infogird.com">Infogird</a>.</p> </div> </body> </html> ## Instruction: Index File Updated Take 2 ## Code After: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sample Deployment</title> <style> body { color: #ffffff; background-color: #0188cc; font-family: Arial, sans-serif; font-size: 14px; } h1 { font-size: 500%; font-weight: normal; margin-bottom: 0; } h2 { font-size: 200%; font-weight: normal; margin-bottom: 0; } </style> </head> <body> <div align="center"> <h1>Congratulations</h1> <h2>This application was deployed using AWS CodeDeploy.</h2> <p>For next steps, read the <a href="http://www.clearcarrental.com">Clear Car Rental</a>.</p> </div> </body> </html>
63fe2e8760e51a00de261e5ba058be9fdb93d14d
source/Plugins/Process/FreeBSD/CMakeLists.txt
source/Plugins/Process/FreeBSD/CMakeLists.txt
set(LLVM_NO_RTTI 1) include_directories(.) include_directories(../POSIX) add_lldb_library(lldbPluginProcessFreeBSD ProcessFreeBSD.cpp FreeBSDThread.cpp ProcessMonitor.cpp )
set(LLVM_NO_RTTI 1) include_directories(.) include_directories(../POSIX) include_directories(../Utility) add_lldb_library(lldbPluginProcessFreeBSD ProcessFreeBSD.cpp FreeBSDThread.cpp ProcessMonitor.cpp )
Add Process/Utility include directory on FreeBSD
Add Process/Utility include directory on FreeBSD Needed after r203667 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@203672 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
text
## Code Before: set(LLVM_NO_RTTI 1) include_directories(.) include_directories(../POSIX) add_lldb_library(lldbPluginProcessFreeBSD ProcessFreeBSD.cpp FreeBSDThread.cpp ProcessMonitor.cpp ) ## Instruction: Add Process/Utility include directory on FreeBSD Needed after r203667 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@203672 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: set(LLVM_NO_RTTI 1) include_directories(.) include_directories(../POSIX) include_directories(../Utility) add_lldb_library(lldbPluginProcessFreeBSD ProcessFreeBSD.cpp FreeBSDThread.cpp ProcessMonitor.cpp )
d1110620662cfdc2f320cd0519835907c8058919
content/posts/2013-05-09-marilyn-monroe-on-women-equality.md
content/posts/2013-05-09-marilyn-monroe-on-women-equality.md
--- layout: post title: "" author: Marilyn Monroe source: description: "" category: tags: [] --- {% include JB/setup %} Women who seek to be equal with men lack ambition.
--- layout: post title: "Women Equality" author: Marilyn Monroe source: description: "" category: tags: [] --- {% include JB/setup %} Women who seek to be equal with men lack ambition.
Add title to Marilyn Monroe quote
Add title to Marilyn Monroe quote
Markdown
mit
ghyde/quotes
markdown
## Code Before: --- layout: post title: "" author: Marilyn Monroe source: description: "" category: tags: [] --- {% include JB/setup %} Women who seek to be equal with men lack ambition. ## Instruction: Add title to Marilyn Monroe quote ## Code After: --- layout: post title: "Women Equality" author: Marilyn Monroe source: description: "" category: tags: [] --- {% include JB/setup %} Women who seek to be equal with men lack ambition.
343ea049729e4b1798e500c039eb8c886c025b31
README.rst
README.rst
cisco_olt_client ================ :: .. image:: https://img.shields.io/pypi/v/cisco-olt-client.svg :target: https://pypi.python.org/pypi/cisco-olt-client :alt: Latest PyPI version .. image:: https://travis-ci.org/Vnet-as/cisco-olt-client.png :target: https://travis-ci.org/Vnet-as/cisco-olt-client :alt: Latest Travis CI build status Python wrapper for cisco's olt boxes commands executed via ssh Usage ----- Installation ------------ Requirements ^^^^^^^^^^^^ Compatibility ------------- Licence ------- MIT
cisco_olt_client ================ .. image:: https://travis-ci.org/Vnet-as/cisco-olt-client.png :target: https://travis-ci.org/Vnet-as/cisco-olt-client :alt: Latest Travis CI build status Python wrapper for cisco's olt boxes commands executed via ssh Usage ----- Installation ------------ Requirements ^^^^^^^^^^^^ Compatibility ------------- Licence ------- MIT
Remove pypi badge for now
Remove pypi badge for now
reStructuredText
mit
Vnet-as/cisco-olt-client
restructuredtext
## Code Before: cisco_olt_client ================ :: .. image:: https://img.shields.io/pypi/v/cisco-olt-client.svg :target: https://pypi.python.org/pypi/cisco-olt-client :alt: Latest PyPI version .. image:: https://travis-ci.org/Vnet-as/cisco-olt-client.png :target: https://travis-ci.org/Vnet-as/cisco-olt-client :alt: Latest Travis CI build status Python wrapper for cisco's olt boxes commands executed via ssh Usage ----- Installation ------------ Requirements ^^^^^^^^^^^^ Compatibility ------------- Licence ------- MIT ## Instruction: Remove pypi badge for now ## Code After: cisco_olt_client ================ .. image:: https://travis-ci.org/Vnet-as/cisco-olt-client.png :target: https://travis-ci.org/Vnet-as/cisco-olt-client :alt: Latest Travis CI build status Python wrapper for cisco's olt boxes commands executed via ssh Usage ----- Installation ------------ Requirements ^^^^^^^^^^^^ Compatibility ------------- Licence ------- MIT
5d032f64242654e3156ccea970f100d9d9762872
web/sites/all/themes/custom/lectionary_bootstrap/js/scripture_links.js
web/sites/all/themes/custom/lectionary_bootstrap/js/scripture_links.js
(function ($) { $(function() { /** * Adds links to scripture references on song pages. */ $( "div.group-lectionary-scripture-ref" ).wrap(function() { return "<a href='http://bible.oremus.org/?passage=" + $( this ).contents().text().replace(s/\s\s/g, "") + "'></a>"; }); }); }(jQuery));
(function ($) { $(function() { /** * Adds links to scripture references on song pages. */ $( "div.field-group.field-group-inline.clearfix.group-lectionary-scripture-ref" ).wrap(function() { return "<a href='http://bible.oremus.org/?passage=" + $( this ).contents().text().replace(s/\s\s/g, "") + "'></a>"; }); }); }(jQuery));
Fix JS for lectionary scripture links.
Fix JS for lectionary scripture links.
JavaScript
mit
claudinec/singingfromthelectionary,claudinec/singingfromthelectionary,claudinec/singingfromthelectionary,claudinec/singingfromthelectionary
javascript
## Code Before: (function ($) { $(function() { /** * Adds links to scripture references on song pages. */ $( "div.group-lectionary-scripture-ref" ).wrap(function() { return "<a href='http://bible.oremus.org/?passage=" + $( this ).contents().text().replace(s/\s\s/g, "") + "'></a>"; }); }); }(jQuery)); ## Instruction: Fix JS for lectionary scripture links. ## Code After: (function ($) { $(function() { /** * Adds links to scripture references on song pages. */ $( "div.field-group.field-group-inline.clearfix.group-lectionary-scripture-ref" ).wrap(function() { return "<a href='http://bible.oremus.org/?passage=" + $( this ).contents().text().replace(s/\s\s/g, "") + "'></a>"; }); }); }(jQuery));
08fbac7de6b30e821e98c0570b72f4d87911f00c
src/app/components/storage-modal/storageModal.scss
src/app/components/storage-modal/storageModal.scss
storage-modal { .cards-group { @extend %playing-cards; float: left; width: 40%; card { $rotate: -10; $translate: 2.5; @for $i from 1 through 3 { &:nth-child(#{$i}) { transform: rotate(#{$rotate}deg) translateX(#{$translate}rem); } $rotate: $rotate + 10; $translate: $translate + 2.5; } } } }
.modal-dialog { width: calc(100vw - 8rem); } storage-modal { .cards-group { @extend %playing-cards; float: left; height: rem-calc(map-get($card-height, 'medium')); width: 25%; card { $rotate: -10; $translate: 2.5; @for $i from 1 through 3 { &:nth-child(#{$i}) { transform: rotate(#{$rotate}deg) translateX(#{$translate}rem); } $rotate: $rotate + 10; $translate: $translate + 2.5; } } } }
Fix styling of modal with player storage cards
Fix styling of modal with player storage cards
SCSS
unlicense
ejwaibel/squarrels,ejwaibel/squarrels
scss
## Code Before: storage-modal { .cards-group { @extend %playing-cards; float: left; width: 40%; card { $rotate: -10; $translate: 2.5; @for $i from 1 through 3 { &:nth-child(#{$i}) { transform: rotate(#{$rotate}deg) translateX(#{$translate}rem); } $rotate: $rotate + 10; $translate: $translate + 2.5; } } } } ## Instruction: Fix styling of modal with player storage cards ## Code After: .modal-dialog { width: calc(100vw - 8rem); } storage-modal { .cards-group { @extend %playing-cards; float: left; height: rem-calc(map-get($card-height, 'medium')); width: 25%; card { $rotate: -10; $translate: 2.5; @for $i from 1 through 3 { &:nth-child(#{$i}) { transform: rotate(#{$rotate}deg) translateX(#{$translate}rem); } $rotate: $rotate + 10; $translate: $translate + 2.5; } } } }
abc95f3a10cd27ec67e982b187f7948d0dc83fe3
corgi/sql.py
corgi/sql.py
from six.moves import configparser as CP from sqlalchemy.engine.url import URL from sqlalchemy.engine import create_engine import os import pandas as pd def get_odbc_engine(name, odbc_filename='/etc/odbc.ini', database=None): """ Looks up the connection details in an odbc file and returns a SQLAlchemy engine initialized with those details. """ parser = CP.ConfigParser() parser.read(odbc_filename) cfg_dict = dict(parser.items(name)) if database: cfg_dict['database'] = database connection_href = str(URL(**cfg_dict)) engine = create_engine(connection_href) return engine def cached_read_sql(name, engine, sql_loc='sql', out_data_loc='data', refresh=False): sql_fname = '%s/%s.sql' % (sql_loc, name) data_fname = '%s/%s.csv' % (out_data_loc, name) if os.path.isfile(data_fname): return pd.read_csv(data_fname) with open(sql_fname) as f: df = pd.read_sql(f.read(), engine) df.to_csv(data_fname, index=False) return df
import os from pathlib import Path from six.moves import configparser as CP import pandas as pd from sqlalchemy.engine import create_engine from sqlalchemy.engine.url import URL home = str(Path.home()) def get_odbc_engine(name, odbc_filename=None, database=None): """ Looks up the connection details in an odbc file and returns a SQLAlchemy engine initialized with those details. """ possible_locations = [] if odbc_filename: possible_locations += [odbc_filename] possible_locations += [ '/etc/odbc.ini', '%s/odbc.ini' % home, ] odbc_loc = None for loc in possible_locations: if os.path.exists(loc): odbc_loc = loc break if not odbc_loc: raise Exception('Could not find an odbc config file. Checked: \n%s' % "\n".join(possible_locations)) parser = CP.ConfigParser() parser.read(odbc_loc) cfg_dict = dict(parser.items(name)) if database: cfg_dict['database'] = database connection_href = str(URL(**cfg_dict)) engine = create_engine(connection_href) return engine def cached_read_sql(name, engine, sql_loc='sql', out_data_loc='data', refresh=False): sql_fname = '%s/%s.sql' % (sql_loc, name) data_fname = '%s/%s.csv' % (out_data_loc, name) if os.path.isfile(data_fname): return pd.read_csv(data_fname) with open(sql_fname) as f: df = pd.read_sql(f.read(), engine) df.to_csv(data_fname, index=False) return df
Set the get_odbc_engine function to check etc, then user home for odbc file by default
Set the get_odbc_engine function to check etc, then user home for odbc file by default
Python
mit
log0ymxm/corgi
python
## Code Before: from six.moves import configparser as CP from sqlalchemy.engine.url import URL from sqlalchemy.engine import create_engine import os import pandas as pd def get_odbc_engine(name, odbc_filename='/etc/odbc.ini', database=None): """ Looks up the connection details in an odbc file and returns a SQLAlchemy engine initialized with those details. """ parser = CP.ConfigParser() parser.read(odbc_filename) cfg_dict = dict(parser.items(name)) if database: cfg_dict['database'] = database connection_href = str(URL(**cfg_dict)) engine = create_engine(connection_href) return engine def cached_read_sql(name, engine, sql_loc='sql', out_data_loc='data', refresh=False): sql_fname = '%s/%s.sql' % (sql_loc, name) data_fname = '%s/%s.csv' % (out_data_loc, name) if os.path.isfile(data_fname): return pd.read_csv(data_fname) with open(sql_fname) as f: df = pd.read_sql(f.read(), engine) df.to_csv(data_fname, index=False) return df ## Instruction: Set the get_odbc_engine function to check etc, then user home for odbc file by default ## Code After: import os from pathlib import Path from six.moves import configparser as CP import pandas as pd from sqlalchemy.engine import create_engine from sqlalchemy.engine.url import URL home = str(Path.home()) def get_odbc_engine(name, odbc_filename=None, database=None): """ Looks up the connection details in an odbc file and returns a SQLAlchemy engine initialized with those details. """ possible_locations = [] if odbc_filename: possible_locations += [odbc_filename] possible_locations += [ '/etc/odbc.ini', '%s/odbc.ini' % home, ] odbc_loc = None for loc in possible_locations: if os.path.exists(loc): odbc_loc = loc break if not odbc_loc: raise Exception('Could not find an odbc config file. Checked: \n%s' % "\n".join(possible_locations)) parser = CP.ConfigParser() parser.read(odbc_loc) cfg_dict = dict(parser.items(name)) if database: cfg_dict['database'] = database connection_href = str(URL(**cfg_dict)) engine = create_engine(connection_href) return engine def cached_read_sql(name, engine, sql_loc='sql', out_data_loc='data', refresh=False): sql_fname = '%s/%s.sql' % (sql_loc, name) data_fname = '%s/%s.csv' % (out_data_loc, name) if os.path.isfile(data_fname): return pd.read_csv(data_fname) with open(sql_fname) as f: df = pd.read_sql(f.read(), engine) df.to_csv(data_fname, index=False) return df
92cce5ea7673443544b1d267305bc66466388b6e
src/main/java/com/clearspring/thetan/metricCatcher/MetricType.java
src/main/java/com/clearspring/thetan/metricCatcher/MetricType.java
package com.clearspring.thetan.metricCatcher; import com.yammer.metrics.core.CounterMetric; import com.yammer.metrics.core.GaugeMetric; import com.yammer.metrics.core.HistogramMetric; import com.yammer.metrics.core.MeterMetric; import com.yammer.metrics.core.TimerMetric; public enum MetricType { GAUGE ("gauge", GaugeMetric.class), COUNTER ("counter", CounterMetric.class), METER ("meter", MeterMetric.class), HISTOGRAM ("histogram", HistogramMetric.class), TIMER ("timer", TimerMetric.class); private String name; private Class<?> klass; MetricType(String name, Class<?> className) { this.name = name; this.klass = className; } public String getName() { return name; } public Class<?> getKlass() { return klass; } public static MetricType fromName(String name) { if (name != null) { for (MetricType t : MetricType.values()) { if (t.name.equalsIgnoreCase(name)) return t; } } return null; } }
package com.clearspring.thetan.metricCatcher; import com.yammer.metrics.core.CounterMetric; import com.yammer.metrics.core.GaugeMetric; import com.yammer.metrics.core.HistogramMetric; import com.yammer.metrics.core.MeterMetric; import com.yammer.metrics.core.TimerMetric; public enum MetricType { GAUGE ("gauge", GaugeMetric.class), COUNTER ("counter", CounterMetric.class), METER ("meter", MeterMetric.class), HISTOGRAM_BIASED ("biased", HistogramMetric.class), HISTOGRAM_UNIFORM ("uniform", HistogramMetric.class), TIMER ("timer", TimerMetric.class); private String name; private Class<?> klass; MetricType(String name, Class<?> className) { this.name = name; this.klass = className; } public String getName() { return name; } public Class<?> getKlass() { return klass; } public static MetricType fromName(String name) { if (name != null) { for (MetricType t : MetricType.values()) { if (t.name.equalsIgnoreCase(name)) return t; } } return null; } }
Use proper names for histograms
Use proper names for histograms git-svn-id: 44fcf16af2fc66d21718f1d95b6687233a8d45ae@105180 e872ca34-ba15-0410-9420-be5960fa97e5
Java
apache-2.0
addthis/MetricCatcher,addthis/MetricCatcher
java
## Code Before: package com.clearspring.thetan.metricCatcher; import com.yammer.metrics.core.CounterMetric; import com.yammer.metrics.core.GaugeMetric; import com.yammer.metrics.core.HistogramMetric; import com.yammer.metrics.core.MeterMetric; import com.yammer.metrics.core.TimerMetric; public enum MetricType { GAUGE ("gauge", GaugeMetric.class), COUNTER ("counter", CounterMetric.class), METER ("meter", MeterMetric.class), HISTOGRAM ("histogram", HistogramMetric.class), TIMER ("timer", TimerMetric.class); private String name; private Class<?> klass; MetricType(String name, Class<?> className) { this.name = name; this.klass = className; } public String getName() { return name; } public Class<?> getKlass() { return klass; } public static MetricType fromName(String name) { if (name != null) { for (MetricType t : MetricType.values()) { if (t.name.equalsIgnoreCase(name)) return t; } } return null; } } ## Instruction: Use proper names for histograms git-svn-id: 44fcf16af2fc66d21718f1d95b6687233a8d45ae@105180 e872ca34-ba15-0410-9420-be5960fa97e5 ## Code After: package com.clearspring.thetan.metricCatcher; import com.yammer.metrics.core.CounterMetric; import com.yammer.metrics.core.GaugeMetric; import com.yammer.metrics.core.HistogramMetric; import com.yammer.metrics.core.MeterMetric; import com.yammer.metrics.core.TimerMetric; public enum MetricType { GAUGE ("gauge", GaugeMetric.class), COUNTER ("counter", CounterMetric.class), METER ("meter", MeterMetric.class), HISTOGRAM_BIASED ("biased", HistogramMetric.class), HISTOGRAM_UNIFORM ("uniform", HistogramMetric.class), TIMER ("timer", TimerMetric.class); private String name; private Class<?> klass; MetricType(String name, Class<?> className) { this.name = name; this.klass = className; } public String getName() { return name; } public Class<?> getKlass() { return klass; } public static MetricType fromName(String name) { if (name != null) { for (MetricType t : MetricType.values()) { if (t.name.equalsIgnoreCase(name)) return t; } } return null; } }
a3d0455ed3b5e6c6206d633f6c176eb914c2176e
src/main/lambdalisp/prelude.ll
src/main/lambdalisp/prelude.ll
(progn (nil: -999) (zero?: [x] (= x 0)) (empty?: [l] (if (atom? l) (= l nil) 0)) (reverse: [l] (let ((reverseaux [l res] (tif (empty? l) res (recur (cdr l) (cons (car l) res))))) (reverseaux l nil))) (nth: [li n] (tif (zero? n) (car li) (recur (cdr li) (- n 1)))) (map: [l f] (let ((mapaux [l f res] (tif (empty? l) (reverse res) (recur (cdr l) f (cons (f (car l)) res))))) (mapaux l f nil))) (map (cons 1 (cons 2 (cons 3 (cons 4 nil)))) [x] (+ 2 x)) )
(progn (nil: -999) (seed: 1) (zero?: [x] (= x 0)) (empty?: [l] (if (atom? l) (= l nil) 0)) (reverse: [l] (let ((reverseaux [l res] (tif (empty? l) res (recur (cdr l) (cons (car l) res))))) (reverseaux l nil))) (nth: [li n] (tif (zero? n) (car li) (recur (cdr li) (- n 1)))) (map: [l f] (let ((mapaux [l f res] (tif (empty? l) (reverse res) (recur (cdr l) f (cons (f (car l)) res))))) (mapaux l f nil))) (expt: [v n] (if (= n 0) 1 (* v (self v (- n 1))))) (mod: [n m] (- n (* (/ n m) m))) (random: [] (let ((m (- (expt 2 31) 1)) (a 48271) (c 1)) (defvar seed (mod (+ (* a seed) c) m)))) (genrandom: [n] (if (= n 0) nil (cons (random) (self (- n 1))))) (genrandom 10))
Add a pseudo-random number generator
Add a pseudo-random number generator
LLVM
mit
ShiftForward/icfpc2014
llvm
## Code Before: (progn (nil: -999) (zero?: [x] (= x 0)) (empty?: [l] (if (atom? l) (= l nil) 0)) (reverse: [l] (let ((reverseaux [l res] (tif (empty? l) res (recur (cdr l) (cons (car l) res))))) (reverseaux l nil))) (nth: [li n] (tif (zero? n) (car li) (recur (cdr li) (- n 1)))) (map: [l f] (let ((mapaux [l f res] (tif (empty? l) (reverse res) (recur (cdr l) f (cons (f (car l)) res))))) (mapaux l f nil))) (map (cons 1 (cons 2 (cons 3 (cons 4 nil)))) [x] (+ 2 x)) ) ## Instruction: Add a pseudo-random number generator ## Code After: (progn (nil: -999) (seed: 1) (zero?: [x] (= x 0)) (empty?: [l] (if (atom? l) (= l nil) 0)) (reverse: [l] (let ((reverseaux [l res] (tif (empty? l) res (recur (cdr l) (cons (car l) res))))) (reverseaux l nil))) (nth: [li n] (tif (zero? n) (car li) (recur (cdr li) (- n 1)))) (map: [l f] (let ((mapaux [l f res] (tif (empty? l) (reverse res) (recur (cdr l) f (cons (f (car l)) res))))) (mapaux l f nil))) (expt: [v n] (if (= n 0) 1 (* v (self v (- n 1))))) (mod: [n m] (- n (* (/ n m) m))) (random: [] (let ((m (- (expt 2 31) 1)) (a 48271) (c 1)) (defvar seed (mod (+ (* a seed) c) m)))) (genrandom: [n] (if (= n 0) nil (cons (random) (self (- n 1))))) (genrandom 10))
08e4669d7ac743c152c552edf0617caa1d4934ad
tests/settings-djcelery.py
tests/settings-djcelery.py
__doc__ = """Minimal django settings to run manage.py test command""" DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': __name__, 'ATOMIC': True } } BROKER_BACKEND = 'memory' ROOT_URLCONF = 'tests.urls' INSTALLED_APPS = ('djcelery_transactions', 'test' ) SECRET_KEY = "django_tests_secret_key" TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' ADMIN_MEDIA_PREFIX = '/static/admin/' STATICFILES_DIRS = () TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
__doc__ = """Minimal django settings to run manage.py test command""" DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': __name__ } } BROKER_BACKEND = 'memory' ROOT_URLCONF = 'tests.urls' INSTALLED_APPS = ('djcelery_transactions', 'test' ) SECRET_KEY = "django_tests_secret_key" TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' ADMIN_MEDIA_PREFIX = '/static/admin/' STATICFILES_DIRS = () TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
Make both test settings more similar
Make both test settings more similar
Python
bsd-2-clause
roverdotcom/django-celery-transactions,stored/django-celery-transactions,fellowshipofone/django-celery-transactions
python
## Code Before: __doc__ = """Minimal django settings to run manage.py test command""" DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': __name__, 'ATOMIC': True } } BROKER_BACKEND = 'memory' ROOT_URLCONF = 'tests.urls' INSTALLED_APPS = ('djcelery_transactions', 'test' ) SECRET_KEY = "django_tests_secret_key" TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' ADMIN_MEDIA_PREFIX = '/static/admin/' STATICFILES_DIRS = () TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner' ## Instruction: Make both test settings more similar ## Code After: __doc__ = """Minimal django settings to run manage.py test command""" DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': __name__ } } BROKER_BACKEND = 'memory' ROOT_URLCONF = 'tests.urls' INSTALLED_APPS = ('djcelery_transactions', 'test' ) SECRET_KEY = "django_tests_secret_key" TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' ADMIN_MEDIA_PREFIX = '/static/admin/' STATICFILES_DIRS = () TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
5f537e8cc8906f02fcec7b972f31065562293234
.scrutinizer.yml
.scrutinizer.yml
inherit: true build: environment: php: '5.5.25' dependencies: override: - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 } tests: override: - ./bin/phpspec run --format=dot - ./bin/behat --format=pretty project_setup: before: ~ after: ~ filter: paths: [src/*] build_failure_conditions: - 'issues.label("coding-style").new.exists' - 'issues.severity(>= MAJOR).new.exists' tools: php_code_sniffer: { config: { standard: 'psr2' } } php_cs_fixer: { config: { level: 'psr2' } } external_code_coverage: false php_code_coverage: false php_changetracking: true php_sim: true php_mess_detector: true php_pdepend: true php_analyzer: true sensiolabs_security_checker: true
inherit: true build: environment: php: '5.5.25' dependencies: before: - date -u +"%Y-%m-%dT%H:%M:%SZ" > /tmp/build-start-time.txt override: - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 } tests: override: - ./bin/phpspec run --format=dot - ./bin/behat --format=pretty after: - SCRUTINIZER_START_TIME=$(cat /tmp/build-start-time.txt) sh -c 'curl -sS https://gist.githubusercontent.com/tonypiper/fd3cf9a67b71d4e3928c/raw/152f1d873f98ff4256ca8bc3041443eae7c890b4/keenio-logger.php | php' project_setup: before: ~ after: ~ cache: directories: [vendor/, bin/, ~/.composer/cache ] filter: paths: [src/*] build_failure_conditions: - 'issues.label("coding-style").new.exists' - 'issues.severity(>= MAJOR).new.exists' tools: php_code_sniffer: { config: { standard: 'psr2' } } php_cs_fixer: { config: { level: 'psr2' } } external_code_coverage: false php_code_coverage: false php_changetracking: true php_sim: true php_mess_detector: true php_pdepend: true php_analyzer: true sensiolabs_security_checker: true
Add Scrutinizer build time tracking and cache composer cache
Add Scrutinizer build time tracking and cache composer cache As requested in this issue https://ibuildings.jira.com/browse/CONSULT-144
YAML
mit
jon-acker/symfony-container-generator,inviqa/symfony-container-generator
yaml
## Code Before: inherit: true build: environment: php: '5.5.25' dependencies: override: - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 } tests: override: - ./bin/phpspec run --format=dot - ./bin/behat --format=pretty project_setup: before: ~ after: ~ filter: paths: [src/*] build_failure_conditions: - 'issues.label("coding-style").new.exists' - 'issues.severity(>= MAJOR).new.exists' tools: php_code_sniffer: { config: { standard: 'psr2' } } php_cs_fixer: { config: { level: 'psr2' } } external_code_coverage: false php_code_coverage: false php_changetracking: true php_sim: true php_mess_detector: true php_pdepend: true php_analyzer: true sensiolabs_security_checker: true ## Instruction: Add Scrutinizer build time tracking and cache composer cache As requested in this issue https://ibuildings.jira.com/browse/CONSULT-144 ## Code After: inherit: true build: environment: php: '5.5.25' dependencies: before: - date -u +"%Y-%m-%dT%H:%M:%SZ" > /tmp/build-start-time.txt override: - { command: 'composer install --no-interaction --prefer-source', idle_timeout: 600 } tests: override: - ./bin/phpspec run --format=dot - ./bin/behat --format=pretty after: - SCRUTINIZER_START_TIME=$(cat /tmp/build-start-time.txt) sh -c 'curl -sS https://gist.githubusercontent.com/tonypiper/fd3cf9a67b71d4e3928c/raw/152f1d873f98ff4256ca8bc3041443eae7c890b4/keenio-logger.php | php' project_setup: before: ~ after: ~ cache: directories: [vendor/, bin/, ~/.composer/cache ] filter: paths: [src/*] build_failure_conditions: - 'issues.label("coding-style").new.exists' - 'issues.severity(>= MAJOR).new.exists' tools: php_code_sniffer: { config: { standard: 'psr2' } } php_cs_fixer: { config: { level: 'psr2' } } external_code_coverage: false php_code_coverage: false php_changetracking: true php_sim: true php_mess_detector: true php_pdepend: true php_analyzer: true sensiolabs_security_checker: true
179930370aabb17284a5de081eb6db42ab3d2c54
android/app/src/main/java/com/funnyhatsoftware/spacedock/activity/DetailsActivity.java
android/app/src/main/java/com/funnyhatsoftware/spacedock/activity/DetailsActivity.java
package com.funnyhatsoftware.spacedock.activity; import android.content.Context; import android.content.Intent; import android.support.v4.app.Fragment; import com.funnyhatsoftware.spacedock.fragment.DetailsFragment; public class DetailsActivity extends SinglePaneActivity { private static final String EXTRA_TYPE = "browsetype"; private static final String EXTRA_ITEM = "displayitem"; public static Intent getIntent(Context context, String itemType, String itemId) { if (itemType == null || itemId == null) { throw new IllegalArgumentException(); } Intent intent = new Intent(context, DetailsActivity.class); intent.putExtra(EXTRA_TYPE, itemType); intent.putExtra(EXTRA_ITEM, itemId); return intent; } public Fragment getFragment() { String itemType = getIntent().getStringExtra(EXTRA_TYPE); String itemId = getIntent().getStringExtra(EXTRA_ITEM); return DetailsFragment.newInstance(itemType, itemId); } }
package com.funnyhatsoftware.spacedock.activity; import android.content.Context; import android.content.Intent; import android.support.v4.app.Fragment; import com.funnyhatsoftware.spacedock.fragment.DetailsFragment; import com.funnyhatsoftware.spacedock.holder.ExpansionHolder; public class DetailsActivity extends SinglePaneActivity { private static final String EXTRA_TYPE = "browsetype"; private static final String EXTRA_ITEM = "displayitem"; public static Intent getIntent(Context context, String itemType, String itemId) { if (itemType == null || itemId == null) { throw new IllegalArgumentException(); } if (itemType.equals(ExpansionHolder.TYPE_STRING)) { return ExpansionDetailsActivity.getIntent(context, itemId); } Intent intent = new Intent(context, DetailsActivity.class); intent.putExtra(EXTRA_TYPE, itemType); intent.putExtra(EXTRA_ITEM, itemId); return intent; } public Fragment getFragment() { String itemType = getIntent().getStringExtra(EXTRA_TYPE); String itemId = getIntent().getStringExtra(EXTRA_ITEM); return DetailsFragment.newInstance(itemType, itemId); } }
Fix expansion detail display on phones
Fix expansion detail display on phones
Java
apache-2.0
tblackwe/spacedock,tblackwe/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,tblackwe/spacedock,spacedockapp/spacedock,tblackwe/spacedock,spacedockapp/spacedock,tblackwe/spacedock,tblackwe/spacedock
java
## Code Before: package com.funnyhatsoftware.spacedock.activity; import android.content.Context; import android.content.Intent; import android.support.v4.app.Fragment; import com.funnyhatsoftware.spacedock.fragment.DetailsFragment; public class DetailsActivity extends SinglePaneActivity { private static final String EXTRA_TYPE = "browsetype"; private static final String EXTRA_ITEM = "displayitem"; public static Intent getIntent(Context context, String itemType, String itemId) { if (itemType == null || itemId == null) { throw new IllegalArgumentException(); } Intent intent = new Intent(context, DetailsActivity.class); intent.putExtra(EXTRA_TYPE, itemType); intent.putExtra(EXTRA_ITEM, itemId); return intent; } public Fragment getFragment() { String itemType = getIntent().getStringExtra(EXTRA_TYPE); String itemId = getIntent().getStringExtra(EXTRA_ITEM); return DetailsFragment.newInstance(itemType, itemId); } } ## Instruction: Fix expansion detail display on phones ## Code After: package com.funnyhatsoftware.spacedock.activity; import android.content.Context; import android.content.Intent; import android.support.v4.app.Fragment; import com.funnyhatsoftware.spacedock.fragment.DetailsFragment; import com.funnyhatsoftware.spacedock.holder.ExpansionHolder; public class DetailsActivity extends SinglePaneActivity { private static final String EXTRA_TYPE = "browsetype"; private static final String EXTRA_ITEM = "displayitem"; public static Intent getIntent(Context context, String itemType, String itemId) { if (itemType == null || itemId == null) { throw new IllegalArgumentException(); } if (itemType.equals(ExpansionHolder.TYPE_STRING)) { return ExpansionDetailsActivity.getIntent(context, itemId); } Intent intent = new Intent(context, DetailsActivity.class); intent.putExtra(EXTRA_TYPE, itemType); intent.putExtra(EXTRA_ITEM, itemId); return intent; } public Fragment getFragment() { String itemType = getIntent().getStringExtra(EXTRA_TYPE); String itemId = getIntent().getStringExtra(EXTRA_ITEM); return DetailsFragment.newInstance(itemType, itemId); } }
7655929606adddff6182b68d57aaaca9dcd25665
java-properties.gemspec
java-properties.gemspec
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'java-properties/version' Gem::Specification.new do |spec| spec.name = 'java-properties' spec.version = JavaProperties::VERSION.dup spec.authors = ['Jonas Thiel'] spec.email = ['[email protected]'] spec.summary = %q{Loader and writer for *.properties files} spec.description = %q{Tool for loading and writing Java properties files} spec.homepage = 'https://github.com/jnbt/java-properties' spec.license = 'MIT' spec.files = %w(LICENSE README.md Rakefile java-properties.gemspec) spec.files += Dir.glob('lib/**/*.rb') spec.test_files = Dir.glob('spec/**/*.rb') spec.test_files = Dir.glob('spec/fixtures/**/*.properties') spec.required_rubygems_version = '>= 1.3.5' spec.required_ruby_version = '~> 2.0' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'inch', '~> 0.8' spec.add_development_dependency 'minitest', '~> 5.14' spec.add_development_dependency 'coveralls', '~> 0.8' end
require_relative 'lib/java-properties/version' Gem::Specification.new do |spec| spec.name = 'java-properties' spec.version = JavaProperties::VERSION.dup spec.authors = ['Jonas Thiel'] spec.email = ['[email protected]'] spec.summary = %q{Loader and writer for *.properties files} spec.description = %q{Tool for loading and writing Java properties files} spec.homepage = 'https://github.com/jnbt/java-properties' spec.license = 'MIT' spec.files = %w(LICENSE README.md Rakefile java-properties.gemspec) spec.files += Dir.glob('lib/**/*.rb') spec.test_files = Dir.glob('spec/**/*.rb') spec.test_files = Dir.glob('spec/fixtures/**/*.properties') spec.required_rubygems_version = '>= 1.3.5' spec.required_ruby_version = '>= 2.0.0' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'inch', '~> 0.8' spec.add_development_dependency 'minitest', '~> 5.14' spec.add_development_dependency 'coveralls', '~> 0.8' end
Change gemspec to allow installation on Ruby 3.0 and all future versions
Change gemspec to allow installation on Ruby 3.0 and all future versions This change allows the gem to be installed on Ruby 3.0 and all future versions. It also loads the gem version directly using a relative path and removes encoding comment as UTF-8 is a default encoding in Ruby 2.0.
Ruby
mit
jnbt/java-properties
ruby
## Code Before: lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'java-properties/version' Gem::Specification.new do |spec| spec.name = 'java-properties' spec.version = JavaProperties::VERSION.dup spec.authors = ['Jonas Thiel'] spec.email = ['[email protected]'] spec.summary = %q{Loader and writer for *.properties files} spec.description = %q{Tool for loading and writing Java properties files} spec.homepage = 'https://github.com/jnbt/java-properties' spec.license = 'MIT' spec.files = %w(LICENSE README.md Rakefile java-properties.gemspec) spec.files += Dir.glob('lib/**/*.rb') spec.test_files = Dir.glob('spec/**/*.rb') spec.test_files = Dir.glob('spec/fixtures/**/*.properties') spec.required_rubygems_version = '>= 1.3.5' spec.required_ruby_version = '~> 2.0' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'inch', '~> 0.8' spec.add_development_dependency 'minitest', '~> 5.14' spec.add_development_dependency 'coveralls', '~> 0.8' end ## Instruction: Change gemspec to allow installation on Ruby 3.0 and all future versions This change allows the gem to be installed on Ruby 3.0 and all future versions. It also loads the gem version directly using a relative path and removes encoding comment as UTF-8 is a default encoding in Ruby 2.0. ## Code After: require_relative 'lib/java-properties/version' Gem::Specification.new do |spec| spec.name = 'java-properties' spec.version = JavaProperties::VERSION.dup spec.authors = ['Jonas Thiel'] spec.email = ['[email protected]'] spec.summary = %q{Loader and writer for *.properties files} spec.description = %q{Tool for loading and writing Java properties files} spec.homepage = 'https://github.com/jnbt/java-properties' spec.license = 'MIT' spec.files = %w(LICENSE README.md Rakefile java-properties.gemspec) spec.files += Dir.glob('lib/**/*.rb') spec.test_files = Dir.glob('spec/**/*.rb') spec.test_files = Dir.glob('spec/fixtures/**/*.properties') spec.required_rubygems_version = '>= 1.3.5' spec.required_ruby_version = '>= 2.0.0' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'inch', '~> 0.8' spec.add_development_dependency 'minitest', '~> 5.14' spec.add_development_dependency 'coveralls', '~> 0.8' end
036d70a64233000c26b75abcc5e695dda7a5fc7f
app/views/post/show_partials/_social_sharing.html.erb
app/views/post/show_partials/_social_sharing.html.erb
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f84f4451238fdf5"></script> <!-- AddThis Button END -->
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f84f4451238fdf5"></script> <script type="text/javascript"> if (typeof addthis_config !== "undefined") { addthis_config.ui_click = true } else { var addthis_config = { ui_click: true }; } </script> <!-- AddThis Button END -->
Disable hover popup for addthis.
Disable hover popup for addthis.
HTML+ERB
isc
nanaya/moebooru,nanaya/moebooru,moebooru/moebooru,moebooru/moebooru,euank/moebooru-thin,euank/moebooru-thin,euank/moebooru-thin,moebooru/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,nanaya/moebooru
html+erb
## Code Before: <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f84f4451238fdf5"></script> <!-- AddThis Button END --> ## Instruction: Disable hover popup for addthis. ## Code After: <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f84f4451238fdf5"></script> <script type="text/javascript"> if (typeof addthis_config !== "undefined") { addthis_config.ui_click = true } else { var addthis_config = { ui_click: true }; } </script> <!-- AddThis Button END -->
734903c777fb237509c21a988f79318ec14e997d
st2api/st2api/controllers/sensors.py
st2api/st2api/controllers/sensors.py
import six from pecan import abort from pecan.rest import RestController from mongoengine import ValidationError from st2common import log as logging from st2common.persistence.reactor import SensorType from st2common.models.base import jsexpose from st2common.models.api.reactor import SensorTypeAPI http_client = six.moves.http_client LOG = logging.getLogger(__name__) class SensorTypeController(RestController): @jsexpose(str) def get_one(self, id): """ Get sensortype by id. Handle: GET /sensortype/1 """ LOG.info('GET /sensortype/ with id=%s', id) try: sensor_type_db = SensorType.get_by_id(id) except (ValueError, ValidationError): LOG.exception('Database lookup for id="%s" resulted in exception.', id) abort(http_client.NOT_FOUND) return sensor_type_api = SensorTypeAPI.from_model(sensor_type_db) LOG.debug('GET /sensortype/ with id=%s, client_result=%s', id, sensor_type_api) return sensor_type_api @jsexpose(str) def get_all(self, **kw): """ List all sensor types. Handles requests: GET /sensortypes/ """ LOG.info('GET all /sensortypes/ with filters=%s', kw) sensor_type_dbs = SensorType.get_all(**kw) sensor_type_apis = [SensorTypeAPI.from_model(sensor_type_db) for sensor_type_db in sensor_type_dbs] return sensor_type_apis
import six from st2common import log as logging from st2common.persistence.reactor import SensorType from st2common.models.api.reactor import SensorTypeAPI from st2api.controllers.resource import ResourceController http_client = six.moves.http_client LOG = logging.getLogger(__name__) class SensorTypeController(ResourceController): model = SensorTypeAPI access = SensorType supported_filters = { 'name': 'name', 'pack': 'content_pack' } options = { 'sort': ['content_pack', 'name'] }
Use ResourceController instead of duplicating logic.
Use ResourceController instead of duplicating logic.
Python
apache-2.0
pinterb/st2,armab/st2,peak6/st2,pixelrebel/st2,Plexxi/st2,armab/st2,Plexxi/st2,punalpatel/st2,grengojbo/st2,jtopjian/st2,jtopjian/st2,StackStorm/st2,alfasin/st2,dennybaa/st2,lakshmi-kannan/st2,lakshmi-kannan/st2,pinterb/st2,grengojbo/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,pixelrebel/st2,alfasin/st2,emedvedev/st2,pixelrebel/st2,Itxaka/st2,Itxaka/st2,jtopjian/st2,nzlosh/st2,tonybaloney/st2,emedvedev/st2,punalpatel/st2,peak6/st2,tonybaloney/st2,tonybaloney/st2,Plexxi/st2,dennybaa/st2,emedvedev/st2,peak6/st2,StackStorm/st2,nzlosh/st2,pinterb/st2,armab/st2,nzlosh/st2,Itxaka/st2,grengojbo/st2,punalpatel/st2,Plexxi/st2,dennybaa/st2,lakshmi-kannan/st2,alfasin/st2
python
## Code Before: import six from pecan import abort from pecan.rest import RestController from mongoengine import ValidationError from st2common import log as logging from st2common.persistence.reactor import SensorType from st2common.models.base import jsexpose from st2common.models.api.reactor import SensorTypeAPI http_client = six.moves.http_client LOG = logging.getLogger(__name__) class SensorTypeController(RestController): @jsexpose(str) def get_one(self, id): """ Get sensortype by id. Handle: GET /sensortype/1 """ LOG.info('GET /sensortype/ with id=%s', id) try: sensor_type_db = SensorType.get_by_id(id) except (ValueError, ValidationError): LOG.exception('Database lookup for id="%s" resulted in exception.', id) abort(http_client.NOT_FOUND) return sensor_type_api = SensorTypeAPI.from_model(sensor_type_db) LOG.debug('GET /sensortype/ with id=%s, client_result=%s', id, sensor_type_api) return sensor_type_api @jsexpose(str) def get_all(self, **kw): """ List all sensor types. Handles requests: GET /sensortypes/ """ LOG.info('GET all /sensortypes/ with filters=%s', kw) sensor_type_dbs = SensorType.get_all(**kw) sensor_type_apis = [SensorTypeAPI.from_model(sensor_type_db) for sensor_type_db in sensor_type_dbs] return sensor_type_apis ## Instruction: Use ResourceController instead of duplicating logic. ## Code After: import six from st2common import log as logging from st2common.persistence.reactor import SensorType from st2common.models.api.reactor import SensorTypeAPI from st2api.controllers.resource import ResourceController http_client = six.moves.http_client LOG = logging.getLogger(__name__) class SensorTypeController(ResourceController): model = SensorTypeAPI access = SensorType supported_filters = { 'name': 'name', 'pack': 'content_pack' } options = { 'sort': ['content_pack', 'name'] }
45c30a0ac0903c9aea94f989c47c08d435a9fd8f
composer.json
composer.json
{ "name": "slim/http-cache", "type": "library", "description": "Slim Framework HTTP cache middleware and service provider", "keywords": ["slim","framework","middleware","cache"], "homepage": "http://slimframework.com", "license": "MIT", "authors": [ { "name": "Josh Lockhart", "email": "[email protected]", "homepage": "http://joshlockhart.com" } ], "require": { "php": ">=5.5.0", "psr/http-message": "^1.0" }, "require-dev": { "slim/slim": "^3.0", "phpunit/phpunit": "^4.0" }, "autoload": { "psr-4": { "Slim\\HttpCache\\": "src" } }, "autoload-dev": { "psr-4": { "Slim\\HttpCache\\Tests\\": "tests" } } }
{ "name": "slim/http-cache", "type": "library", "description": "Slim Framework HTTP cache middleware and service provider", "keywords": [ "slim", "framework", "middleware", "cache" ], "homepage": "https://www.slimframework.com", "license": "MIT", "authors": [ { "name": "Josh Lockhart", "email": "[email protected]", "homepage": "http://joshlockhart.com" } ], "require": { "php": "^7.2", "psr/http-message": "^1.0", "psr/http-server-middleware": "^1.0" }, "require-dev": { "slim/psr7": "^1.1", "phpunit/phpunit": "^8.5", "squizlabs/php_codesniffer": "^3.5", "phpstan/phpstan": "^0.12.28" }, "autoload": { "psr-4": { "Slim\\HttpCache\\": "src" } }, "autoload-dev": { "psr-4": { "Slim\\HttpCache\\Tests\\": "tests" } }, "scripts": { "test": [ "@phpunit", "@phpcs", "@phpstan" ], "phpunit": "phpunit", "phpcs": "phpcs", "phpstan": "phpstan analyse src --memory-limit=-1" } }
Update for slim 4 compatibility
Update for slim 4 compatibility
JSON
mit
slimphp/Slim-HttpCache
json
## Code Before: { "name": "slim/http-cache", "type": "library", "description": "Slim Framework HTTP cache middleware and service provider", "keywords": ["slim","framework","middleware","cache"], "homepage": "http://slimframework.com", "license": "MIT", "authors": [ { "name": "Josh Lockhart", "email": "[email protected]", "homepage": "http://joshlockhart.com" } ], "require": { "php": ">=5.5.0", "psr/http-message": "^1.0" }, "require-dev": { "slim/slim": "^3.0", "phpunit/phpunit": "^4.0" }, "autoload": { "psr-4": { "Slim\\HttpCache\\": "src" } }, "autoload-dev": { "psr-4": { "Slim\\HttpCache\\Tests\\": "tests" } } } ## Instruction: Update for slim 4 compatibility ## Code After: { "name": "slim/http-cache", "type": "library", "description": "Slim Framework HTTP cache middleware and service provider", "keywords": [ "slim", "framework", "middleware", "cache" ], "homepage": "https://www.slimframework.com", "license": "MIT", "authors": [ { "name": "Josh Lockhart", "email": "[email protected]", "homepage": "http://joshlockhart.com" } ], "require": { "php": "^7.2", "psr/http-message": "^1.0", "psr/http-server-middleware": "^1.0" }, "require-dev": { "slim/psr7": "^1.1", "phpunit/phpunit": "^8.5", "squizlabs/php_codesniffer": "^3.5", "phpstan/phpstan": "^0.12.28" }, "autoload": { "psr-4": { "Slim\\HttpCache\\": "src" } }, "autoload-dev": { "psr-4": { "Slim\\HttpCache\\Tests\\": "tests" } }, "scripts": { "test": [ "@phpunit", "@phpcs", "@phpstan" ], "phpunit": "phpunit", "phpcs": "phpcs", "phpstan": "phpstan analyse src --memory-limit=-1" } }
95e923147785329e73e37bc3e3480a6fcd9f0dc4
lib/uniform_notifier/appsignal.rb
lib/uniform_notifier/appsignal.rb
class UniformNotifier class AppsignalNotifier < Base class << self def active? !!UniformNotifier.appsignal end protected def _out_of_channel_notify(data) opt = UniformNotifier.appsignal.is_a?(Hash) ? UniformNotifier.appsignal : {} exception = Exception.new(data[:title]) exception.set_backtrace(data[:backtrace]) if data[:backtrace] tags = opt.fetch(:tags, {}).merge(data.fetch(:tags, {})) namespace = data[:namespace] || opt[:namespace] Appsignal.send_error(*[exception, tags, namespace].compact) end end end end
class UniformNotifier class AppsignalNotifier < Base class << self def active? !!UniformNotifier.appsignal end protected def _out_of_channel_notify(data) opt = UniformNotifier.appsignal.is_a?(Hash) ? UniformNotifier.appsignal : {} exception = Exception.new("#{data[:title]}\n#{data[:body]}") exception.set_backtrace(data[:backtrace]) if data[:backtrace] tags = opt.fetch(:tags, {}).merge(data.fetch(:tags, {})) namespace = data[:namespace] || opt[:namespace] Appsignal.send_error(*[exception, tags, namespace].compact) end end end end
Add body to Appsignal error message
Add body to Appsignal error message
Ruby
mit
flyerhzm/uniform_notifier
ruby
## Code Before: class UniformNotifier class AppsignalNotifier < Base class << self def active? !!UniformNotifier.appsignal end protected def _out_of_channel_notify(data) opt = UniformNotifier.appsignal.is_a?(Hash) ? UniformNotifier.appsignal : {} exception = Exception.new(data[:title]) exception.set_backtrace(data[:backtrace]) if data[:backtrace] tags = opt.fetch(:tags, {}).merge(data.fetch(:tags, {})) namespace = data[:namespace] || opt[:namespace] Appsignal.send_error(*[exception, tags, namespace].compact) end end end end ## Instruction: Add body to Appsignal error message ## Code After: class UniformNotifier class AppsignalNotifier < Base class << self def active? !!UniformNotifier.appsignal end protected def _out_of_channel_notify(data) opt = UniformNotifier.appsignal.is_a?(Hash) ? UniformNotifier.appsignal : {} exception = Exception.new("#{data[:title]}\n#{data[:body]}") exception.set_backtrace(data[:backtrace]) if data[:backtrace] tags = opt.fetch(:tags, {}).merge(data.fetch(:tags, {})) namespace = data[:namespace] || opt[:namespace] Appsignal.send_error(*[exception, tags, namespace].compact) end end end end
8ea734e6422024ca8a9592a1a810d6bc20f219e4
spec/spec_helper.rb
spec/spec_helper.rb
require 'pry' require File.join(File.dirname(__FILE__), '/../lib/file_convert') def configure_with_mock FileConvert.configure do |config| config['google_service_account'] = { 'email' => '<strange-hash>@developer.gserviceaccount.com', 'pkcs12_file_path' => 'config/file_convert_key.p12' } end end
require 'pry' require File.expand_path('../../lib/file_convert', __FILE__) RSpec.configure do |config| config.mock_with :rspec do |mock_config| mock_config.verify_doubled_constant_names = true mock_config.syntax = [:expect] end end def configure_with_mock FileConvert.configure do |config| config['google_service_account'] = { 'email' => '<strange-hash>@developer.gserviceaccount.com', 'pkcs12_file_path' => 'config/file_convert_key.p12' } end end
Add some strictness for conventions' sake
Add some strictness for conventions' sake
Ruby
mit
tolingo/file-convert
ruby
## Code Before: require 'pry' require File.join(File.dirname(__FILE__), '/../lib/file_convert') def configure_with_mock FileConvert.configure do |config| config['google_service_account'] = { 'email' => '<strange-hash>@developer.gserviceaccount.com', 'pkcs12_file_path' => 'config/file_convert_key.p12' } end end ## Instruction: Add some strictness for conventions' sake ## Code After: require 'pry' require File.expand_path('../../lib/file_convert', __FILE__) RSpec.configure do |config| config.mock_with :rspec do |mock_config| mock_config.verify_doubled_constant_names = true mock_config.syntax = [:expect] end end def configure_with_mock FileConvert.configure do |config| config['google_service_account'] = { 'email' => '<strange-hash>@developer.gserviceaccount.com', 'pkcs12_file_path' => 'config/file_convert_key.p12' } end end
864bbf8319039cdcd12870741f6b348a46e177e4
config.js
config.js
var fs = require('fs'); // Require given configuration if (fs.existsSync(__dirname + '/config/data.js')) { exports = module.exports = require('./config/data.js'); } else { exports = module.exports = {}; }
var fs = require('fs'); // Require given configuration if (fs.existsSync(__dirname + '/config/data.js')) { exports = module.exports = require(__dirname + '/config/data.js'); } else { exports = module.exports = {}; }
Check and then use the same..
Check and then use the same..
JavaScript
mit
DualDev/node-transip,DeviaVir/node-transip
javascript
## Code Before: var fs = require('fs'); // Require given configuration if (fs.existsSync(__dirname + '/config/data.js')) { exports = module.exports = require('./config/data.js'); } else { exports = module.exports = {}; } ## Instruction: Check and then use the same.. ## Code After: var fs = require('fs'); // Require given configuration if (fs.existsSync(__dirname + '/config/data.js')) { exports = module.exports = require(__dirname + '/config/data.js'); } else { exports = module.exports = {}; }