commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201 values | license stringclasses 13 values | repos stringlengths 6 116k | config stringclasses 201 values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
828dd8aa1b11841ffb5df82bbd9cdea4b8700892 | README.md | README.md |
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and play" experience, as you can see for yourself in the "Installation" section.
## Installation
Install the ember-cli addon in your ember-cli project:
```
$ npm install --save-dev ember-paper
```
All the components and styles are ready to use in your application templates.
Navigate through the docs to understand how to use each component.
## Contribution
This is a very ambitious project. Google's design specs are extensive, and not trivial to implement. I've been porting [Polymer Paper Elements](https://www.polymer-project.org/docs/elements/paper-elements.html) and [Google Web Starter Kit](https://github.com/google/web-starter-kit/tree/material-sprint) (material-spring branch) to Ember. These seem to be the most useful resources at the moment. If you feel like porting or fixing an element or two, please drop a pull request or issue at GitHub!
I believe that with the help of everyone we can bring these amazing design spec to Ember in a modular and robust way. The Ember way. **Help us on Github!**
|
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and play" experience, as you can see for yourself in the "Installation" section.
## Installation
Install the ember-cli addon in your ember-cli project:
```
$ npm install --save-dev ember-paper
$ ember g ember-paper
```
All the components and styles are ready to use in your application templates.
Navigate through the docs to understand how to use each component.
## Contribution
This is a very ambitious project. Google's design specs are extensive, and not trivial to implement. I've been porting [Polymer Paper Elements](https://www.polymer-project.org/docs/elements/paper-elements.html) and [Google Web Starter Kit](https://github.com/google/web-starter-kit/tree/material-sprint) (material-spring branch) to Ember. These seem to be the most useful resources at the moment. If you feel like porting or fixing an element or two, please drop a pull request or issue at GitHub!
I believe that with the help of everyone we can bring these amazing design spec to Ember in a modular and robust way. The Ember way. **Help us on Github!**
| Add note about generator command | Add note about generator command
| Markdown | mit | tmclouisluk/ember-paper,EricSchank/ember-paper,elwayman02/ember-paper,peec/ember-paper,DanChadwick/ember-paper,pauln/ember-paper,mhretab/ember-paper,xomaczar/ember-paper,miguelcobain/ember-paper,joukevandermaas/ember-paper,bjornharrtell/ember-paper,yastupin/ember-paper,baroquon/ember-paper,PartCycleTech/ember-paper,bjornharrtell/ember-paper,DanChadwick/ember-paper,mike1o1/ember-paper,PartCycleTech/ember-paper,SirZach/ember-paper,kimroen/ember-paper,mhretab/ember-paper,tmclouisluk/ember-paper,pauln/ember-paper,Blooie/ember-paper,mnutt/ember-paper,mnutt/ember-paper,joukevandermaas/ember-paper,EricSchank/ember-paper,PartCycleTech/ember-paper,xomaczar/ember-paper,yastupin/ember-paper,pauln/ember-paper,greyhwndz/ember-paper,Blooie/ember-paper,kimroen/ember-paper,cogniteev/ember-paper,stonecircle/ember-paper,greyhwndz/ember-paper,JustInToCoding/ember-paper,elwayman02/ember-paper,JustInToCoding/ember-paper,cogniteev/ember-paper,bjornharrtell/ember-paper,mike1o1/ember-paper,tmclouisluk/ember-paper,jamesdixon/ember-paper,joukevandermaas/ember-paper,cogniteev/ember-paper,tastebud/ember-paper,canufeel/ember-paper,ICT-Works/ember-paper,baroquon/ember-paper,canufeel/ember-paper,miguelcobain/ember-paper,peec/ember-paper,JKGisMe/ember-paper,stonecircle/ember-paper,SirZach/ember-paper,JustInToCoding/ember-paper,tastebud/ember-paper,xomaczar/ember-paper,jamesdixon/ember-paper,mnutt/ember-paper,DanChadwick/ember-paper,baroquon/ember-paper,ICT-Works/ember-paper,miguelcobain/ember-paper,jamesdixon/ember-paper,stonecircle/ember-paper,JKGisMe/ember-paper | markdown | ## Code Before:
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and play" experience, as you can see for yourself in the "Installation" section.
## Installation
Install the ember-cli addon in your ember-cli project:
```
$ npm install --save-dev ember-paper
```
All the components and styles are ready to use in your application templates.
Navigate through the docs to understand how to use each component.
## Contribution
This is a very ambitious project. Google's design specs are extensive, and not trivial to implement. I've been porting [Polymer Paper Elements](https://www.polymer-project.org/docs/elements/paper-elements.html) and [Google Web Starter Kit](https://github.com/google/web-starter-kit/tree/material-sprint) (material-spring branch) to Ember. These seem to be the most useful resources at the moment. If you feel like porting or fixing an element or two, please drop a pull request or issue at GitHub!
I believe that with the help of everyone we can bring these amazing design spec to Ember in a modular and robust way. The Ember way. **Help us on Github!**
## Instruction:
Add note about generator command
## Code After:
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and play" experience, as you can see for yourself in the "Installation" section.
## Installation
Install the ember-cli addon in your ember-cli project:
```
$ npm install --save-dev ember-paper
$ ember g ember-paper
```
All the components and styles are ready to use in your application templates.
Navigate through the docs to understand how to use each component.
## Contribution
This is a very ambitious project. Google's design specs are extensive, and not trivial to implement. I've been porting [Polymer Paper Elements](https://www.polymer-project.org/docs/elements/paper-elements.html) and [Google Web Starter Kit](https://github.com/google/web-starter-kit/tree/material-sprint) (material-spring branch) to Ember. These seem to be the most useful resources at the moment. If you feel like porting or fixing an element or two, please drop a pull request or issue at GitHub!
I believe that with the help of everyone we can bring these amazing design spec to Ember in a modular and robust way. The Ember way. **Help us on Github!**
|
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and play" experience, as you can see for yourself in the "Installation" section.
## Installation
Install the ember-cli addon in your ember-cli project:
```
$ npm install --save-dev ember-paper
+ $ ember g ember-paper
```
All the components and styles are ready to use in your application templates.
Navigate through the docs to understand how to use each component.
## Contribution
This is a very ambitious project. Google's design specs are extensive, and not trivial to implement. I've been porting [Polymer Paper Elements](https://www.polymer-project.org/docs/elements/paper-elements.html) and [Google Web Starter Kit](https://github.com/google/web-starter-kit/tree/material-sprint) (material-spring branch) to Ember. These seem to be the most useful resources at the moment. If you feel like porting or fixing an element or two, please drop a pull request or issue at GitHub!
I believe that with the help of everyone we can bring these amazing design spec to Ember in a modular and robust way. The Ember way. **Help us on Github!** | 1 | 0.05 | 1 | 0 |
093a5d0517ddd480efa456f9726f6fb17099e885 | app/components/LoggedInUser/UserLanguageSelector.jsx | app/components/LoggedInUser/UserLanguageSelector.jsx | import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/
const UserLanguageSelector = ({
isAuthenticated,
updateLoggedInUser,
className,
size
}) => {
return (
<LanguageSelector
className={className}
value={i18n.language}
size={size}
withIcon
handleChange={locale => {
i18n.changeLanguage(locale)
if (isAuthenticated) {
updateUserInfo.then(user => {
updateLoggedInUser(user)
})
}
}}
/>
)
}
export default withLoggedInUser(UserLanguageSelector)
| import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/
const UserLanguageSelector = ({
isAuthenticated,
updateLoggedInUser,
className,
size
}) => {
return (
<LanguageSelector
className={className}
value={i18n.language}
size={size}
withIcon
handleChange={locale => {
i18n.changeLanguage(locale)
if (isAuthenticated) {
return updateUserInfo({ locale }).then(user => {
updateLoggedInUser(user)
})
}
}}
/>
)
}
export default withLoggedInUser(UserLanguageSelector)
| Save locale in API when changing it | fix(LanguageSelector): Save locale in API when changing it | JSX | agpl-3.0 | CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend | jsx | ## Code Before:
import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/
const UserLanguageSelector = ({
isAuthenticated,
updateLoggedInUser,
className,
size
}) => {
return (
<LanguageSelector
className={className}
value={i18n.language}
size={size}
withIcon
handleChange={locale => {
i18n.changeLanguage(locale)
if (isAuthenticated) {
updateUserInfo.then(user => {
updateLoggedInUser(user)
})
}
}}
/>
)
}
export default withLoggedInUser(UserLanguageSelector)
## Instruction:
fix(LanguageSelector): Save locale in API when changing it
## Code After:
import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/
const UserLanguageSelector = ({
isAuthenticated,
updateLoggedInUser,
className,
size
}) => {
return (
<LanguageSelector
className={className}
value={i18n.language}
size={size}
withIcon
handleChange={locale => {
i18n.changeLanguage(locale)
if (isAuthenticated) {
return updateUserInfo({ locale }).then(user => {
updateLoggedInUser(user)
})
}
}}
/>
)
}
export default withLoggedInUser(UserLanguageSelector)
| import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/
const UserLanguageSelector = ({
isAuthenticated,
updateLoggedInUser,
className,
size
}) => {
return (
<LanguageSelector
className={className}
value={i18n.language}
size={size}
withIcon
handleChange={locale => {
i18n.changeLanguage(locale)
if (isAuthenticated) {
- updateUserInfo.then(user => {
+ return updateUserInfo({ locale }).then(user => {
? +++++++ ++++++++++++
updateLoggedInUser(user)
})
}
}}
/>
)
}
export default withLoggedInUser(UserLanguageSelector) | 2 | 0.057143 | 1 | 1 |
b94b511626f4fb0fdceabebf3ee46b583316a692 | .travis.yml | .travis.yml | dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
script:
- bundle exec rake spec:msgr
- bundle exec rake spec:integration
jobs:
allow_failures:
- gemfile: gemfiles/Gemfile.rails-master
include:
- stage: Beta release
rvm: '2.4.1'
script: echo "Deploy to rubygems.org..."
deploy:
provider: rubygems
api_key:
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
gem: msgr
on:
branch: master
repo: jgraichen/msgr
| dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
- gemfiles/Gemfile.rails-master
script:
- bundle exec rake spec:msgr
- bundle exec rake spec:integration
jobs:
allow_failures:
- gemfile: gemfiles/Gemfile.rails-master
include:
- stage: Beta release
rvm: '2.4.1'
script: echo "Deploy to rubygems.org..."
deploy:
provider: rubygems
api_key:
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
gem: msgr
on:
branch: master
repo: jgraichen/msgr
| Move rails master gemfile to bottom | Move rails master gemfile to bottom
This should avoid beeing used in deploy job
| YAML | mit | jgraichen/msgr,jgraichen/msgr | yaml | ## Code Before:
dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
script:
- bundle exec rake spec:msgr
- bundle exec rake spec:integration
jobs:
allow_failures:
- gemfile: gemfiles/Gemfile.rails-master
include:
- stage: Beta release
rvm: '2.4.1'
script: echo "Deploy to rubygems.org..."
deploy:
provider: rubygems
api_key:
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
gem: msgr
on:
branch: master
repo: jgraichen/msgr
## Instruction:
Move rails master gemfile to bottom
This should avoid beeing used in deploy job
## Code After:
dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
- gemfiles/Gemfile.rails-master
script:
- bundle exec rake spec:msgr
- bundle exec rake spec:integration
jobs:
allow_failures:
- gemfile: gemfiles/Gemfile.rails-master
include:
- stage: Beta release
rvm: '2.4.1'
script: echo "Deploy to rubygems.org..."
deploy:
provider: rubygems
api_key:
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
gem: msgr
on:
branch: master
repo: jgraichen/msgr
| dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- - gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
+ - gemfiles/Gemfile.rails-master
script:
- bundle exec rake spec:msgr
- bundle exec rake spec:integration
jobs:
allow_failures:
- gemfile: gemfiles/Gemfile.rails-master
include:
- stage: Beta release
rvm: '2.4.1'
script: echo "Deploy to rubygems.org..."
deploy:
provider: rubygems
api_key:
secure: g8icPMdxEmbpBzSRCDmR3uB+1Zhu7tGq3h0cVbGUka2Ni1NiEiQo3LCDzbMp+L7AXH5RhdsG9FTViIAyCy9YENqZ1+jzrQGeADx0KnJZb6F81/SyumeUld0zdkzDbe1aUCJWz2WnEk12aLMPLNPRmDE7wub+od7gJEEv2SsKObo=
gem: msgr
on:
branch: master
repo: jgraichen/msgr
| 2 | 0.057143 | 1 | 1 |
eba11e0499fcae166c22a4597c4c23bbf6f22b9f | README.rst | README.rst | burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The pre-history of burrito
--------------------------
burrito is derived from the `application controller framework <http://pycogent.org/examples/application_controller_framework.html>`__
code, which was originally added to `PyCogent <http://www.pycogent.org>`__ and
later moved to `scikit-bio <http://scikit-bio.org>`__. The contributors and/or
copyright holders have agreed to make the code they wrote for PyCogent
available under the BSD license. The original authors of the application
controller framework code in PyCogent are Greg Caporaso
(`@gregcaporaso <https://github.com/gregcaporaso>`__), Sandra Smit,
Micah Hamady, and Rob Knight (`@rob-knight <https://github.com/rob-knight>`__).
.. |Build Status| image:: https://travis-ci.org/biocore/burrito.svg?branch=master
:target: https://travis-ci.org/biocore/burrito
| burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
What's with the name?
---------------------
This tool allows developers to wrap command line applications, just as burritos
wrap delicious foods. Both hide the potentially unsightly details.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The pre-history of burrito
--------------------------
burrito is derived from the `application controller framework <http://pycogent.org/examples/application_controller_framework.html>`__
code, which was originally added to `PyCogent <http://www.pycogent.org>`__ and
later moved to `scikit-bio <http://scikit-bio.org>`__. The contributors and/or
copyright holders have agreed to make the code they wrote for PyCogent
available under the BSD license. The original authors of the application
controller framework code in PyCogent are Greg Caporaso
(`@gregcaporaso <https://github.com/gregcaporaso>`__), Sandra Smit,
Micah Hamady, and Rob Knight (`@rob-knight <https://github.com/rob-knight>`__).
.. |Build Status| image:: https://travis-ci.org/biocore/burrito.svg?branch=master
:target: https://travis-ci.org/biocore/burrito
| Add description of package name | Add description of package name
| reStructuredText | bsd-3-clause | biocore/burrito,ssorgatem/burrito | restructuredtext | ## Code Before:
burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The pre-history of burrito
--------------------------
burrito is derived from the `application controller framework <http://pycogent.org/examples/application_controller_framework.html>`__
code, which was originally added to `PyCogent <http://www.pycogent.org>`__ and
later moved to `scikit-bio <http://scikit-bio.org>`__. The contributors and/or
copyright holders have agreed to make the code they wrote for PyCogent
available under the BSD license. The original authors of the application
controller framework code in PyCogent are Greg Caporaso
(`@gregcaporaso <https://github.com/gregcaporaso>`__), Sandra Smit,
Micah Hamady, and Rob Knight (`@rob-knight <https://github.com/rob-knight>`__).
.. |Build Status| image:: https://travis-ci.org/biocore/burrito.svg?branch=master
:target: https://travis-ci.org/biocore/burrito
## Instruction:
Add description of package name
## Code After:
burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
What's with the name?
---------------------
This tool allows developers to wrap command line applications, just as burritos
wrap delicious foods. Both hide the potentially unsightly details.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The pre-history of burrito
--------------------------
burrito is derived from the `application controller framework <http://pycogent.org/examples/application_controller_framework.html>`__
code, which was originally added to `PyCogent <http://www.pycogent.org>`__ and
later moved to `scikit-bio <http://scikit-bio.org>`__. The contributors and/or
copyright holders have agreed to make the code they wrote for PyCogent
available under the BSD license. The original authors of the application
controller framework code in PyCogent are Greg Caporaso
(`@gregcaporaso <https://github.com/gregcaporaso>`__), Sandra Smit,
Micah Hamady, and Rob Knight (`@rob-knight <https://github.com/rob-knight>`__).
.. |Build Status| image:: https://travis-ci.org/biocore/burrito.svg?branch=master
:target: https://travis-ci.org/biocore/burrito
| burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
+
+ What's with the name?
+ ---------------------
+
+ This tool allows developers to wrap command line applications, just as burritos
+ wrap delicious foods. Both hide the potentially unsightly details.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The pre-history of burrito
--------------------------
burrito is derived from the `application controller framework <http://pycogent.org/examples/application_controller_framework.html>`__
code, which was originally added to `PyCogent <http://www.pycogent.org>`__ and
later moved to `scikit-bio <http://scikit-bio.org>`__. The contributors and/or
copyright holders have agreed to make the code they wrote for PyCogent
available under the BSD license. The original authors of the application
controller framework code in PyCogent are Greg Caporaso
(`@gregcaporaso <https://github.com/gregcaporaso>`__), Sandra Smit,
Micah Hamady, and Rob Knight (`@rob-knight <https://github.com/rob-knight>`__).
.. |Build Status| image:: https://travis-ci.org/biocore/burrito.svg?branch=master
:target: https://travis-ci.org/biocore/burrito | 6 | 0.166667 | 6 | 0 |
0f9ad1518c389853ef4b9bd03d28d31a71555585 | README.md | README.md |
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /root/ikr.su-server/salt state.highstate
# Notes
On SMTP client configuration
[l.erlacher+do](https://www.digitalocean.com/community/users/l-erlacher-do) _November 20, 2013_
Postfix is running smtp directly on the mail server you configured, so at
'mail.yourdomain.com'. It will accept mail for delivery to **local** mail addresses via standard
smtp on port 25, and it will receive mail for delivery to **any** mail addresses via
authenticated, encrypted submission server (which is also smtp, postfix just calls it
submission) on port 587. Make sure that your mail client uses port 587 with plain password auth
and starttls.
# Links
* [How To Set Up a Postfix E-Mail Server with Dovecot](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
|
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /root/ikr.su-server/salt state.highstate
# Notes
## On SMTP client configuration
[l.erlacher+do](https://www.digitalocean.com/community/users/l-erlacher-do) _November 20, 2013_
Postfix is running smtp directly on the mail server you configured, so at
'mail.yourdomain.com'. It will accept mail for delivery to **local** mail addresses via standard
smtp on port 25, and it will receive mail for delivery to **any** mail addresses via
authenticated, encrypted submission server (which is also smtp, postfix just calls it
submission) on port 587. Make sure that your mail client uses port 587 with plain password auth
and starttls.
### Links
* [How To Set Up a Postfix E-Mail Server with Dovecot](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
## Updating the TLS certificate
The same certificate is used by both the HTTP server, and the mail server, issued to the
"mail.ikr.su" common name.
| Restructure the Notes section a bit | Restructure the Notes section a bit
| Markdown | mit | ikr/ikr.su-server,ikr/ikr.su-server | markdown | ## Code Before:
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /root/ikr.su-server/salt state.highstate
# Notes
On SMTP client configuration
[l.erlacher+do](https://www.digitalocean.com/community/users/l-erlacher-do) _November 20, 2013_
Postfix is running smtp directly on the mail server you configured, so at
'mail.yourdomain.com'. It will accept mail for delivery to **local** mail addresses via standard
smtp on port 25, and it will receive mail for delivery to **any** mail addresses via
authenticated, encrypted submission server (which is also smtp, postfix just calls it
submission) on port 587. Make sure that your mail client uses port 587 with plain password auth
and starttls.
# Links
* [How To Set Up a Postfix E-Mail Server with Dovecot](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
## Instruction:
Restructure the Notes section a bit
## Code After:
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /root/ikr.su-server/salt state.highstate
# Notes
## On SMTP client configuration
[l.erlacher+do](https://www.digitalocean.com/community/users/l-erlacher-do) _November 20, 2013_
Postfix is running smtp directly on the mail server you configured, so at
'mail.yourdomain.com'. It will accept mail for delivery to **local** mail addresses via standard
smtp on port 25, and it will receive mail for delivery to **any** mail addresses via
authenticated, encrypted submission server (which is also smtp, postfix just calls it
submission) on port 587. Make sure that your mail client uses port 587 with plain password auth
and starttls.
### Links
* [How To Set Up a Postfix E-Mail Server with Dovecot](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
## Updating the TLS certificate
The same certificate is used by both the HTTP server, and the mail server, issued to the
"mail.ikr.su" common name.
|
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /root/ikr.su-server/salt state.highstate
# Notes
- On SMTP client configuration
+ ## On SMTP client configuration
? +++
[l.erlacher+do](https://www.digitalocean.com/community/users/l-erlacher-do) _November 20, 2013_
Postfix is running smtp directly on the mail server you configured, so at
'mail.yourdomain.com'. It will accept mail for delivery to **local** mail addresses via standard
smtp on port 25, and it will receive mail for delivery to **any** mail addresses via
authenticated, encrypted submission server (which is also smtp, postfix just calls it
submission) on port 587. Make sure that your mail client uses port 587 with plain password auth
and starttls.
- # Links
+ ### Links
? ++
* [How To Set Up a Postfix E-Mail Server with Dovecot](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot)
+
+ ## Updating the TLS certificate
+
+ The same certificate is used by both the HTTP server, and the mail server, issued to the
+ "mail.ikr.su" common name. | 9 | 0.310345 | 7 | 2 |
1d64f6730e77a2f297eb1b1c19eb92db889de354 | spec/toy/plugins_spec.rb | spec/toy/plugins_spec.rb | require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
module ClassMethods
def foo
'foo'
end
end
def bar
'bar'
end
}
Toy.plugin(@mod)
end
it "includes module in all models" do
[User, Game].each do |model|
model.foo.should == 'foo'
model.new.bar.should == 'bar'
end
end
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
klass = Class.new { include Toy::Store }
klass.foo.should == 'foo'
klass.new.bar.should == 'bar'
end
end
end
| require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
def bar
'bar'
end
}
class_methods_module = Module.new do
def foo
'foo'
end
end
@mod.const_set :ClassMethods, class_methods_module
Toy.plugin(@mod)
end
it "includes module in all models" do
[User, Game].each do |model|
model.foo.should == 'foo'
model.new.bar.should == 'bar'
end
end
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
klass = Class.new { include Toy::Store }
klass.foo.should == 'foo'
klass.new.bar.should == 'bar'
end
end
end
| Fix tests for ruby 1.8 | Fix tests for ruby 1.8
| Ruby | bsd-3-clause | jnunemaker/toystore | ruby | ## Code Before:
require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
module ClassMethods
def foo
'foo'
end
end
def bar
'bar'
end
}
Toy.plugin(@mod)
end
it "includes module in all models" do
[User, Game].each do |model|
model.foo.should == 'foo'
model.new.bar.should == 'bar'
end
end
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
klass = Class.new { include Toy::Store }
klass.foo.should == 'foo'
klass.new.bar.should == 'bar'
end
end
end
## Instruction:
Fix tests for ruby 1.8
## Code After:
require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
def bar
'bar'
end
}
class_methods_module = Module.new do
def foo
'foo'
end
end
@mod.const_set :ClassMethods, class_methods_module
Toy.plugin(@mod)
end
it "includes module in all models" do
[User, Game].each do |model|
model.foo.should == 'foo'
model.new.bar.should == 'bar'
end
end
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
klass = Class.new { include Toy::Store }
klass.foo.should == 'foo'
klass.new.bar.should == 'bar'
end
end
end
| require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
- module ClassMethods
- def foo
- 'foo'
- end
- end
-
def bar
'bar'
end
}
+
+ class_methods_module = Module.new do
+ def foo
+ 'foo'
+ end
+ end
+
+ @mod.const_set :ClassMethods, class_methods_module
Toy.plugin(@mod)
end
it "includes module in all models" do
[User, Game].each do |model|
model.foo.should == 'foo'
model.new.bar.should == 'bar'
end
end
it "adds plugin to plugins" do
Toy.plugins.should == [@mod]
end
it "adds plugins to classes declared after plugin was called" do
klass = Class.new { include Toy::Store }
klass.foo.should == 'foo'
klass.new.bar.should == 'bar'
end
end
end | 14 | 0.304348 | 8 | 6 |
4d1428dd416f3fa3e94da287cc3e2d8669488579 | metadata/de.karbach.tac.txt | metadata/de.karbach.tac.txt | Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
Build:1.21,4
commit=235c1317308568f6be5a51807d766c9ae5065d9b
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.22
Current Version Code:5
| Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
Build:1.21,4
commit=235c1317308568f6be5a51807d766c9ae5065d9b
extlibs=android/android-support-v4.jar
Build:1.22,5
commit=d5df94e6bb2d9fb69d04b03aae230c0eaca671d7
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.22
Current Version Code:5
| Update MoTAC to 1.22 (5) | Update MoTAC to 1.22 (5)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
Build:1.21,4
commit=235c1317308568f6be5a51807d766c9ae5065d9b
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.22
Current Version Code:5
## Instruction:
Update MoTAC to 1.22 (5)
## Code After:
Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
Build:1.21,4
commit=235c1317308568f6be5a51807d766c9ae5065d9b
extlibs=android/android-support-v4.jar
Build:1.22,5
commit=d5df94e6bb2d9fb69d04b03aae230c0eaca671d7
extlibs=android/android-support-v4.jar
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.22
Current Version Code:5
| Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
Build:1.21,4
commit=235c1317308568f6be5a51807d766c9ae5065d9b
extlibs=android/android-support-v4.jar
+ Build:1.22,5
+ commit=d5df94e6bb2d9fb69d04b03aae230c0eaca671d7
+ extlibs=android/android-support-v4.jar
+
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.22
Current Version Code:5
| 4 | 0.166667 | 4 | 0 |
d12edc3d53874e9e3ce6fc5b2d07239f92cc6f74 | protected/modules/admin/views/default/index.php | protected/modules/admin/views/default/index.php | <div class="row-fluid">
<? $count = 0; ?>
<? foreach($files as $file): ?>
<? if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<? endif; ?>
<? $this->renderFile($file); ?>
<? $count++; ?>
<? endforeach; ?>
</div> | <div class="row-fluid">
<?php $count = 0; ?>
<?php foreach($files as $file): ?>
<?php if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<?php endif; ?>
<?php $this->renderFile($file); ?>
<?php $count++; ?>
<?php endforeach; ?>
</div> | Fix <? -> <?php regression | Fix <? -> <?php regression
Fixes #8 | PHP | bsd-3-clause | charlesportwoodii/CiiMS | php | ## Code Before:
<div class="row-fluid">
<? $count = 0; ?>
<? foreach($files as $file): ?>
<? if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<? endif; ?>
<? $this->renderFile($file); ?>
<? $count++; ?>
<? endforeach; ?>
</div>
## Instruction:
Fix <? -> <?php regression
Fixes #8
## Code After:
<div class="row-fluid">
<?php $count = 0; ?>
<?php foreach($files as $file): ?>
<?php if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<?php endif; ?>
<?php $this->renderFile($file); ?>
<?php $count++; ?>
<?php endforeach; ?>
</div> | <div class="row-fluid">
- <? $count = 0; ?>
+ <?php $count = 0; ?>
? +++
- <? foreach($files as $file): ?>
+ <?php foreach($files as $file): ?>
? +++
- <? if ($count % 2 == 0): ?>
+ <?php if ($count % 2 == 0): ?>
? +++
</div>
<div class="row-fluid">
- <? endif; ?>
+ <?php endif; ?>
? +++
- <? $this->renderFile($file); ?>
+ <?php $this->renderFile($file); ?>
? +++
- <? $count++; ?>
+ <?php $count++; ?>
? +++
- <? endforeach; ?>
+ <?php endforeach; ?>
? +++
</div> | 14 | 1.166667 | 7 | 7 |
6ebe9c3115d6268f63f730df59f59dbd97536b17 | spec/db_spec_helper.rb | spec/db_spec_helper.rb | require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.up 'db/migrate'
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :deletion
# DatabaseCleaner.strategy = :transaction
# DatabaseCleaner.clean_with(:truncation)
end
config.after(:each) do
DatabaseCleaner.clean
end
end
| require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
host = db_config['host']
fail("Can't run destructive tests against non-local database #{host}") unless host == 'localhost'
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.up 'db/migrate'
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :deletion
# DatabaseCleaner.strategy = :transaction
# DatabaseCleaner.clean_with(:truncation)
end
config.after(:each) do
DatabaseCleaner.clean
end
end
| Check before accidentally blowing away a shared database | Check before accidentally blowing away a shared database
| Ruby | mit | CDLUC3/dash2-migrator,CDLUC3/dash2-migrator | ruby | ## Code Before:
require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.up 'db/migrate'
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :deletion
# DatabaseCleaner.strategy = :transaction
# DatabaseCleaner.clean_with(:truncation)
end
config.after(:each) do
DatabaseCleaner.clean
end
end
## Instruction:
Check before accidentally blowing away a shared database
## Code After:
require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
host = db_config['host']
fail("Can't run destructive tests against non-local database #{host}") unless host == 'localhost'
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.up 'db/migrate'
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :deletion
# DatabaseCleaner.strategy = :transaction
# DatabaseCleaner.clean_with(:truncation)
end
config.after(:each) do
DatabaseCleaner.clean
end
end
| require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
+
+ host = db_config['host']
+ fail("Can't run destructive tests against non-local database #{host}") unless host == 'localhost'
+
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.up 'db/migrate'
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :deletion
# DatabaseCleaner.strategy = :transaction
# DatabaseCleaner.clean_with(:truncation)
end
config.after(:each) do
DatabaseCleaner.clean
end
end | 4 | 0.181818 | 4 | 0 |
2dbc4e2aec98aba8a0e307f951b412464db8b078 | della/user_manager/urls.py | della/user_manager/urls.py | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'user_manager/login.html'}),
url(r'^logout/$', auth_views.logout, name='logout',
kwargs={'next_page': '/'}),
url(r'^create/$', SignupView.as_view()),
url(r'^update/$', UserProfileUpdateView.as_view(), name='update'),
url(r'^activate/(?P<username>[0-9A-Za-z_]+)-(?P<code>[0-9A-Za-z_:-]+)/$',
ActivateView.as_view()),
url(r'^draw-names/$', DrawNamesView.as_view()),
url(r'^@(?P<username>[a-zA-Z0-9_]+)/$', UserProfileDetailView.as_view(),
name='user-detail'),
]
| from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'user_manager/login.html'}),
url(r'^logout/$', auth_views.logout, name='logout',
kwargs={'next_page': '/'}),
url(r'^create/$', SignupView.as_view()),
url(r'^update/$', UserProfileUpdateView.as_view(), name='update'),
url(r'^activate/(?P<username>[0-9A-Za-z_]+)-(?P<code>[0-9A-Za-z_:-]+)/$',
ActivateView.as_view(), name='activate-user'),
url(r'^draw-names/$', DrawNamesView.as_view()),
url(r'^@(?P<username>[a-zA-Z0-9_]+)/$', UserProfileDetailView.as_view(),
name='user-detail'),
]
| Add name for url config of `ActivateView` | Add name for url config of `ActivateView`
| Python | mit | avinassh/della,avinassh/della,avinassh/della | python | ## Code Before:
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'user_manager/login.html'}),
url(r'^logout/$', auth_views.logout, name='logout',
kwargs={'next_page': '/'}),
url(r'^create/$', SignupView.as_view()),
url(r'^update/$', UserProfileUpdateView.as_view(), name='update'),
url(r'^activate/(?P<username>[0-9A-Za-z_]+)-(?P<code>[0-9A-Za-z_:-]+)/$',
ActivateView.as_view()),
url(r'^draw-names/$', DrawNamesView.as_view()),
url(r'^@(?P<username>[a-zA-Z0-9_]+)/$', UserProfileDetailView.as_view(),
name='user-detail'),
]
## Instruction:
Add name for url config of `ActivateView`
## Code After:
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'user_manager/login.html'}),
url(r'^logout/$', auth_views.logout, name='logout',
kwargs={'next_page': '/'}),
url(r'^create/$', SignupView.as_view()),
url(r'^update/$', UserProfileUpdateView.as_view(), name='update'),
url(r'^activate/(?P<username>[0-9A-Za-z_]+)-(?P<code>[0-9A-Za-z_:-]+)/$',
ActivateView.as_view(), name='activate-user'),
url(r'^draw-names/$', DrawNamesView.as_view()),
url(r'^@(?P<username>[a-zA-Z0-9_]+)/$', UserProfileDetailView.as_view(),
name='user-detail'),
]
| from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'user_manager/login.html'}),
url(r'^logout/$', auth_views.logout, name='logout',
kwargs={'next_page': '/'}),
url(r'^create/$', SignupView.as_view()),
url(r'^update/$', UserProfileUpdateView.as_view(), name='update'),
url(r'^activate/(?P<username>[0-9A-Za-z_]+)-(?P<code>[0-9A-Za-z_:-]+)/$',
- ActivateView.as_view()),
+ ActivateView.as_view(), name='activate-user'),
url(r'^draw-names/$', DrawNamesView.as_view()),
url(r'^@(?P<username>[a-zA-Z0-9_]+)/$', UserProfileDetailView.as_view(),
name='user-detail'),
] | 2 | 0.105263 | 1 | 1 |
c75b9da41d35619b135a3c9ecf4843328f604ca9 | pkgs/development/libraries/libmtp/default.nix | pkgs/development/libraries/libmtp/default.nix | { stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
stdenv.mkDerivation rec {
name = "libmtp-1.1.18";
src = fetchurl {
url = "mirror://sourceforge/libmtp/${name}.tar.gz";
sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
};
outputs = [ "bin" "dev" "out" ];
buildInputs = [ libiconv ];
propagatedBuildInputs = [ libusb1 ];
nativeBuildInputs = [ pkgconfig ];
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
meta = with stdenv.lib; {
homepage = "http://libmtp.sourceforge.net";
description = "An implementation of Microsoft's Media Transfer Protocol";
longDescription = ''
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant operating
systems. We implement MTP Basic, the stuff proposed for standardization.
'';
platforms = platforms.unix;
license = licenses.lgpl21;
};
}
| { stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
, libusb1
, libiconv
}:
stdenv.mkDerivation rec {
pname = "libmtp";
version = "1.1.18";
src = fetchFromGitHub {
owner = "libmtp";
repo = "libmtp";
rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
sha256 = "0lniy0xq397zddlhsv6n4qjn0wwakli5p3ydzxmbzn0z0jgngjja";
};
outputs = [ "bin" "dev" "out" ];
nativeBuildInputs = [
autoconf
automake
gettext
libtool
pkgconfig
];
buildInputs = [
libiconv
];
propagatedBuildInputs = [
libusb1
];
preConfigure = ''
./autogen.sh
'';
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
meta = with stdenv.lib; {
homepage = "http://libmtp.sourceforge.net";
description = "An implementation of Microsoft's Media Transfer Protocol";
longDescription = ''
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant operating
systems. We implement MTP Basic, the stuff proposed for standardization.
'';
platforms = platforms.unix;
license = licenses.lgpl21;
};
}
| Switch to Github, allow building from repo. | libmtp: Switch to Github, allow building from repo.
Github is where upstream's development happens now,
and building from repo makes adding patches and overriding the commit easier.
Also use pname+version, see #103997.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
stdenv.mkDerivation rec {
name = "libmtp-1.1.18";
src = fetchurl {
url = "mirror://sourceforge/libmtp/${name}.tar.gz";
sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
};
outputs = [ "bin" "dev" "out" ];
buildInputs = [ libiconv ];
propagatedBuildInputs = [ libusb1 ];
nativeBuildInputs = [ pkgconfig ];
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
meta = with stdenv.lib; {
homepage = "http://libmtp.sourceforge.net";
description = "An implementation of Microsoft's Media Transfer Protocol";
longDescription = ''
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant operating
systems. We implement MTP Basic, the stuff proposed for standardization.
'';
platforms = platforms.unix;
license = licenses.lgpl21;
};
}
## Instruction:
libmtp: Switch to Github, allow building from repo.
Github is where upstream's development happens now,
and building from repo makes adding patches and overriding the commit easier.
Also use pname+version, see #103997.
## Code After:
{ stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
, libusb1
, libiconv
}:
stdenv.mkDerivation rec {
pname = "libmtp";
version = "1.1.18";
src = fetchFromGitHub {
owner = "libmtp";
repo = "libmtp";
rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
sha256 = "0lniy0xq397zddlhsv6n4qjn0wwakli5p3ydzxmbzn0z0jgngjja";
};
outputs = [ "bin" "dev" "out" ];
nativeBuildInputs = [
autoconf
automake
gettext
libtool
pkgconfig
];
buildInputs = [
libiconv
];
propagatedBuildInputs = [
libusb1
];
preConfigure = ''
./autogen.sh
'';
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
meta = with stdenv.lib; {
homepage = "http://libmtp.sourceforge.net";
description = "An implementation of Microsoft's Media Transfer Protocol";
longDescription = ''
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant operating
systems. We implement MTP Basic, the stuff proposed for standardization.
'';
platforms = platforms.unix;
license = licenses.lgpl21;
};
}
| - { stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
+ { stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
+ , libusb1
+ , libiconv
+ }:
stdenv.mkDerivation rec {
- name = "libmtp-1.1.18";
? -------
+ pname = "libmtp";
? +
+ version = "1.1.18";
- src = fetchurl {
- url = "mirror://sourceforge/libmtp/${name}.tar.gz";
- sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
+ src = fetchFromGitHub {
+ owner = "libmtp";
+ repo = "libmtp";
+ rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
+ sha256 = "0lniy0xq397zddlhsv6n4qjn0wwakli5p3ydzxmbzn0z0jgngjja";
};
outputs = [ "bin" "dev" "out" ];
- buildInputs = [ libiconv ];
+ nativeBuildInputs = [
+ autoconf
+ automake
+ gettext
+ libtool
+ pkgconfig
+ ];
+
+ buildInputs = [
+ libiconv
+ ];
+
- propagatedBuildInputs = [ libusb1 ];
? -----------
+ propagatedBuildInputs = [
- nativeBuildInputs = [ pkgconfig ];
+ libusb1
+ ];
+
+ preConfigure = ''
+ ./autogen.sh
+ '';
# tried to install files to /lib/udev, hopefully OK
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
meta = with stdenv.lib; {
homepage = "http://libmtp.sourceforge.net";
description = "An implementation of Microsoft's Media Transfer Protocol";
longDescription = ''
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant operating
systems. We implement MTP Basic, the stuff proposed for standardization.
'';
platforms = platforms.unix;
license = licenses.lgpl21;
};
} | 38 | 1.225806 | 30 | 8 |
58a42f1fa90665c1b61db5ed3e9ce53b145dbdf8 | code/scala/src/main/scala/knub/master_thesis/PreprocessingPipe.scala | code/scala/src/main/scala/knub/master_thesis/PreprocessingPipe.scala | package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.UseFixedVocabulary
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object PreprocessingPipe {
def pipeList(stopWordsFileName: String): mutable.ArrayBuffer[Pipe] = {
val vocabulary = Source.fromFile("/san2/data/wikipedia/2016-06-21/vocab.txt").getLines().toSet
mutable.ArrayBuffer[Pipe](
new CharSequenceLowercase(),
// Regex explanation: lowercase [lowercase punctuation]+ lowercase --- at least three characters,
// no punctuation at the end
new CharSequence2TokenSequence(Pattern.compile("\\p{L}[\\p{L}\\p{P}]+\\p{L}")),
// new UseOnlyFirstNWordsOfDocument(1000),
new TokenSequenceRemoveStopwords(
new File(stopWordsFileName), "UTF-8", false, false, false),
new UseFixedVocabulary(vocabulary),
new TokenSequence2FeatureSequence()
)
}
def pipe(stopWordsFileName: String): Pipe = {
new SerialPipes(pipeList(stopWordsFileName).asJava)
}
}
| package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.{UseFixedVocabulary, UseOnlyFirstNWordsOfDocument}
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object PreprocessingPipe {
def pipeList(stopWordsFileName: String): mutable.ArrayBuffer[Pipe] = {
val vocabulary = Source.fromFile("/san2/data/wikipedia/2016-06-21/vocab.txt").getLines().toSet
mutable.ArrayBuffer[Pipe](
new CharSequenceLowercase(),
// Regex explanation: lowercase [lowercase punctuation]+ lowercase --- at least three characters,
// no punctuation at the end
new CharSequence2TokenSequence(Pattern.compile("\\p{L}[\\p{L}\\p{P}]+\\p{L}")),
new UseOnlyFirstNWordsOfDocument(2000),
new TokenSequenceRemoveStopwords(
new File(stopWordsFileName), "UTF-8", false, false, false),
// new UseFixedVocabulary(vocabulary),
new TokenSequence2FeatureSequence()
)
}
def pipe(stopWordsFileName: String): Pipe = {
new SerialPipes(pipeList(stopWordsFileName).asJava)
}
}
| Use 2000 first words of document | Use 2000 first words of document
| Scala | apache-2.0 | knub/master-thesis,knub/master-thesis,knub/master-thesis,knub/master-thesis | scala | ## Code Before:
package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.UseFixedVocabulary
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object PreprocessingPipe {
def pipeList(stopWordsFileName: String): mutable.ArrayBuffer[Pipe] = {
val vocabulary = Source.fromFile("/san2/data/wikipedia/2016-06-21/vocab.txt").getLines().toSet
mutable.ArrayBuffer[Pipe](
new CharSequenceLowercase(),
// Regex explanation: lowercase [lowercase punctuation]+ lowercase --- at least three characters,
// no punctuation at the end
new CharSequence2TokenSequence(Pattern.compile("\\p{L}[\\p{L}\\p{P}]+\\p{L}")),
// new UseOnlyFirstNWordsOfDocument(1000),
new TokenSequenceRemoveStopwords(
new File(stopWordsFileName), "UTF-8", false, false, false),
new UseFixedVocabulary(vocabulary),
new TokenSequence2FeatureSequence()
)
}
def pipe(stopWordsFileName: String): Pipe = {
new SerialPipes(pipeList(stopWordsFileName).asJava)
}
}
## Instruction:
Use 2000 first words of document
## Code After:
package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.{UseFixedVocabulary, UseOnlyFirstNWordsOfDocument}
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object PreprocessingPipe {
def pipeList(stopWordsFileName: String): mutable.ArrayBuffer[Pipe] = {
val vocabulary = Source.fromFile("/san2/data/wikipedia/2016-06-21/vocab.txt").getLines().toSet
mutable.ArrayBuffer[Pipe](
new CharSequenceLowercase(),
// Regex explanation: lowercase [lowercase punctuation]+ lowercase --- at least three characters,
// no punctuation at the end
new CharSequence2TokenSequence(Pattern.compile("\\p{L}[\\p{L}\\p{P}]+\\p{L}")),
new UseOnlyFirstNWordsOfDocument(2000),
new TokenSequenceRemoveStopwords(
new File(stopWordsFileName), "UTF-8", false, false, false),
// new UseFixedVocabulary(vocabulary),
new TokenSequence2FeatureSequence()
)
}
def pipe(stopWordsFileName: String): Pipe = {
new SerialPipes(pipeList(stopWordsFileName).asJava)
}
}
| package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
- import knub.master_thesis.preprocessing.UseFixedVocabulary
+ import knub.master_thesis.preprocessing.{UseFixedVocabulary, UseOnlyFirstNWordsOfDocument}
? + +++++++++++++++++++++++++++++++
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object PreprocessingPipe {
def pipeList(stopWordsFileName: String): mutable.ArrayBuffer[Pipe] = {
val vocabulary = Source.fromFile("/san2/data/wikipedia/2016-06-21/vocab.txt").getLines().toSet
mutable.ArrayBuffer[Pipe](
new CharSequenceLowercase(),
// Regex explanation: lowercase [lowercase punctuation]+ lowercase --- at least three characters,
// no punctuation at the end
new CharSequence2TokenSequence(Pattern.compile("\\p{L}[\\p{L}\\p{P}]+\\p{L}")),
- // new UseOnlyFirstNWordsOfDocument(1000),
? -- ^
+ new UseOnlyFirstNWordsOfDocument(2000),
? ^
new TokenSequenceRemoveStopwords(
new File(stopWordsFileName), "UTF-8", false, false, false),
- new UseFixedVocabulary(vocabulary),
+ // new UseFixedVocabulary(vocabulary),
? ++
new TokenSequence2FeatureSequence()
)
}
def pipe(stopWordsFileName: String): Pipe = {
new SerialPipes(pipeList(stopWordsFileName).asJava)
}
} | 6 | 0.176471 | 3 | 3 |
d27ded9fb8c833b2f21fedade5cbef9ab831453e | src/ggrc/models/hooks/comment.py | src/ggrc/models/hooks/comment.py |
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.model_posted_after_commit.connect_via(Comment)
def handle_comment_post(sender, obj=None, src=None, service=None):
"""Save information on which user created the Comment object
Args:
sender: the class of the object that initiated the server request
obj: the instance of `sender` that initiated the server request
src: a dictionary containing the POST data sent with request
service: the server-side API service that handled the request
Returns:
None
"""
# pylint: disable=unused-argument
creator_id = get_current_user_id()
obj_owner = ObjectOwner(
person_id=creator_id,
ownable_id=obj.id,
ownable_type=obj.type,
)
db.session.add(obj_owner)
|
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.collection_posted.connect_via(Comment)
def handle_comment_post(sender, objects=None, **kwargs):
"""Save information on which user created the Comment object."""
# pylint: disable=unused-argument
creator_id = get_current_user_id()
for obj in objects:
obj_owner = ObjectOwner(
person_id=creator_id,
ownable_id=obj.id,
ownable_type=obj.type,
)
db.session.add(obj_owner)
| Fix creating revisions of ObjectOwner of Comment | Fix creating revisions of ObjectOwner of Comment
| Python | apache-2.0 | josthkko/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,kr41/ggrc-core,j0gurt/ggrc-core,kr41/ggrc-core,selahssea/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,selahssea/ggrc-core,j0gurt/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,j0gurt/ggrc-core,selahssea/ggrc-core,kr41/ggrc-core,VinnieJohns/ggrc-core,andrei-karalionak/ggrc-core,andrei-karalionak/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,plamut/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/ggrc-core | python | ## Code Before:
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.model_posted_after_commit.connect_via(Comment)
def handle_comment_post(sender, obj=None, src=None, service=None):
"""Save information on which user created the Comment object
Args:
sender: the class of the object that initiated the server request
obj: the instance of `sender` that initiated the server request
src: a dictionary containing the POST data sent with request
service: the server-side API service that handled the request
Returns:
None
"""
# pylint: disable=unused-argument
creator_id = get_current_user_id()
obj_owner = ObjectOwner(
person_id=creator_id,
ownable_id=obj.id,
ownable_type=obj.type,
)
db.session.add(obj_owner)
## Instruction:
Fix creating revisions of ObjectOwner of Comment
## Code After:
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.collection_posted.connect_via(Comment)
def handle_comment_post(sender, objects=None, **kwargs):
"""Save information on which user created the Comment object."""
# pylint: disable=unused-argument
creator_id = get_current_user_id()
for obj in objects:
obj_owner = ObjectOwner(
person_id=creator_id,
ownable_id=obj.id,
ownable_type=obj.type,
)
db.session.add(obj_owner)
|
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
+ # pylint: disable=unused-variable
- # pylint: disable=unused-variable
- @Resource.model_posted_after_commit.connect_via(Comment)
? ^ ^ ^ -------------
+ @Resource.collection_posted.connect_via(Comment)
? ^ ^^ ^^^^^
- def handle_comment_post(sender, obj=None, src=None, service=None):
+ def handle_comment_post(sender, objects=None, **kwargs):
- """Save information on which user created the Comment object
+ """Save information on which user created the Comment object."""
? ++++
-
- Args:
- sender: the class of the object that initiated the server request
- obj: the instance of `sender` that initiated the server request
- src: a dictionary containing the POST data sent with request
- service: the server-side API service that handled the request
- Returns:
- None
- """
# pylint: disable=unused-argument
-
creator_id = get_current_user_id()
-
+ for obj in objects:
- obj_owner = ObjectOwner(
+ obj_owner = ObjectOwner(
? ++
- person_id=creator_id,
+ person_id=creator_id,
? ++
- ownable_id=obj.id,
+ ownable_id=obj.id,
? ++
- ownable_type=obj.type,
+ ownable_type=obj.type,
? ++
- )
+ )
? ++
-
- db.session.add(obj_owner)
+ db.session.add(obj_owner)
? ++
| 33 | 0.916667 | 11 | 22 |
de42731ab97a7d4272c44cc750891906aa5b4417 | buildlet/runner/ipythonparallel.py | buildlet/runner/ipythonparallel.py |
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
self.results = results = {}
for node in self.sorted_nodes():
deps = [results[n] for n in self.graph.predecessors(node)]
with view.temp_flags(after=deps):
results[node] = view.apply_async(self.run_func,
self.nodetaskmap[node])
def wait_tasks(self):
self.view.wait(self.results.values())
|
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
self.results = results = {}
for node in self.sorted_nodes():
deps = [results[n] for n in self.graph.predecessors(node)]
with view.temp_flags(after=deps):
results[node] = view.apply_async(self.run_func,
self.nodetaskmap[node])
def wait_tasks(self):
for r in self.results.values():
r.get()
| Raise error if any in IPythonParallelRunner.wait_tasks | Raise error if any in IPythonParallelRunner.wait_tasks
| Python | bsd-3-clause | tkf/buildlet | python | ## Code Before:
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
self.results = results = {}
for node in self.sorted_nodes():
deps = [results[n] for n in self.graph.predecessors(node)]
with view.temp_flags(after=deps):
results[node] = view.apply_async(self.run_func,
self.nodetaskmap[node])
def wait_tasks(self):
self.view.wait(self.results.values())
## Instruction:
Raise error if any in IPythonParallelRunner.wait_tasks
## Code After:
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
self.results = results = {}
for node in self.sorted_nodes():
deps = [results[n] for n in self.graph.predecessors(node)]
with view.temp_flags(after=deps):
results[node] = view.apply_async(self.run_func,
self.nodetaskmap[node])
def wait_tasks(self):
for r in self.results.values():
r.get()
|
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
self.results = results = {}
for node in self.sorted_nodes():
deps = [results[n] for n in self.graph.predecessors(node)]
with view.temp_flags(after=deps):
results[node] = view.apply_async(self.run_func,
self.nodetaskmap[node])
def wait_tasks(self):
- self.view.wait(self.results.values())
+ for r in self.results.values():
+ r.get() | 3 | 0.142857 | 2 | 1 |
b9a2399e148be7660c51501da2015e31b96914cb | lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb | lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb | module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{guestpath}\"", :sudo => true)
comm.sudo("rm \"#{guestpath}\"")
end
# clear prior directory if exists
if comm.test("test -d \"#{guestpath}\"", :sudo => true)
comm.sudo("rm -Rf \"#{guestpath}\"")
end
# create intermediate directories if needed
intermediate_dir = File.dirname(guestpath)
if !comm.test("test -d \"#{intermediate_dir}\"", :sudo => true)
comm.sudo("mkdir -p \"#{intermediate_dir}\"")
end
# finally make the symlink
comm.sudo("ln -s \"/media/psf/#{name}\" \"#{guestpath}\"")
end
end
end
end
end
end
| module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
# Expand the guest path so we can handle things like "~/vagrant"
expanded_guest_path = machine.guest.capability(
:shell_expand_guest_path, guestpath)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{expanded_guest_path}\"", :sudo => true)
comm.sudo("rm \"#{expanded_guest_path}\"")
end
# clear prior directory if exists
if comm.test("test -d \"#{expanded_guest_path}\"", :sudo => true)
comm.sudo("rm -Rf \"#{expanded_guest_path}\"")
end
# create intermediate directories if needed
intermediate_dir = File.dirname(expanded_guest_path)
if !comm.test("test -d \"#{intermediate_dir}\"", :sudo => true)
comm.sudo("mkdir -p \"#{intermediate_dir}\"")
end
# finally make the symlink
comm.sudo("ln -s \"/media/psf/#{name}\" \"#{expanded_guest_path}\"")
end
end
end
end
end
end
| Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts | Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts
This was copied from the official NFS mount capability
| Ruby | mit | kidaa/vagrant-parallels,Kast0rTr0y/vagrant-parallels,Kast0rTr0y/vagrant-parallels,legal90/vagrant-parallels,Parallels/vagrant-parallels,kidaa/vagrant-parallels,kidaa/vagrant-parallels,Gray-Wind/vagrant-parallels,KillerDesigner/vagrant-parallels,Parallels/vagrant-parallels,legal90/vagrant-parallels,Parallels/vagrant-parallels,legal90/vagrant-parallels,Kast0rTr0y/vagrant-parallels,KillerDesigner/vagrant-parallels,KillerDesigner/vagrant-parallels | ruby | ## Code Before:
module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{guestpath}\"", :sudo => true)
comm.sudo("rm \"#{guestpath}\"")
end
# clear prior directory if exists
if comm.test("test -d \"#{guestpath}\"", :sudo => true)
comm.sudo("rm -Rf \"#{guestpath}\"")
end
# create intermediate directories if needed
intermediate_dir = File.dirname(guestpath)
if !comm.test("test -d \"#{intermediate_dir}\"", :sudo => true)
comm.sudo("mkdir -p \"#{intermediate_dir}\"")
end
# finally make the symlink
comm.sudo("ln -s \"/media/psf/#{name}\" \"#{guestpath}\"")
end
end
end
end
end
end
## Instruction:
Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts
This was copied from the official NFS mount capability
## Code After:
module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
# Expand the guest path so we can handle things like "~/vagrant"
expanded_guest_path = machine.guest.capability(
:shell_expand_guest_path, guestpath)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{expanded_guest_path}\"", :sudo => true)
comm.sudo("rm \"#{expanded_guest_path}\"")
end
# clear prior directory if exists
if comm.test("test -d \"#{expanded_guest_path}\"", :sudo => true)
comm.sudo("rm -Rf \"#{expanded_guest_path}\"")
end
# create intermediate directories if needed
intermediate_dir = File.dirname(expanded_guest_path)
if !comm.test("test -d \"#{intermediate_dir}\"", :sudo => true)
comm.sudo("mkdir -p \"#{intermediate_dir}\"")
end
# finally make the symlink
comm.sudo("ln -s \"/media/psf/#{name}\" \"#{expanded_guest_path}\"")
end
end
end
end
end
end
| module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
+ # Expand the guest path so we can handle things like "~/vagrant"
+ expanded_guest_path = machine.guest.capability(
+ :shell_expand_guest_path, guestpath)
+
machine.communicate.tap do |comm|
# clear prior symlink
- if comm.test("test -L \"#{guestpath}\"", :sudo => true)
+ if comm.test("test -L \"#{expanded_guest_path}\"", :sudo => true)
? +++++++++ +
- comm.sudo("rm \"#{guestpath}\"")
+ comm.sudo("rm \"#{expanded_guest_path}\"")
? +++++++++ +
end
# clear prior directory if exists
- if comm.test("test -d \"#{guestpath}\"", :sudo => true)
+ if comm.test("test -d \"#{expanded_guest_path}\"", :sudo => true)
? +++++++++ +
- comm.sudo("rm -Rf \"#{guestpath}\"")
+ comm.sudo("rm -Rf \"#{expanded_guest_path}\"")
? +++++++++ +
end
# create intermediate directories if needed
- intermediate_dir = File.dirname(guestpath)
+ intermediate_dir = File.dirname(expanded_guest_path)
? +++++++++ +
if !comm.test("test -d \"#{intermediate_dir}\"", :sudo => true)
comm.sudo("mkdir -p \"#{intermediate_dir}\"")
end
# finally make the symlink
- comm.sudo("ln -s \"/media/psf/#{name}\" \"#{guestpath}\"")
+ comm.sudo("ln -s \"/media/psf/#{name}\" \"#{expanded_guest_path}\"")
? +++++++++ +
end
end
end
end
end
end | 16 | 0.516129 | 10 | 6 |
a30c60e57956b73736581746a0e161a45a05edd2 | assets/js/public/controllers/statisticController.js | assets/js/public/controllers/statisticController.js | angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'month').toDate(); // default min date is previous month
$scope.endDate = new Date(); // default end date is current date
$scope.maxDate = new Date(); // default max date is current date
/* Function to set date criteria */
$scope.updateCriteria = function(event) {
$scope.criteria = event.target.id.toUpperCase();
};
});
| angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'months').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'months').toDate(); // default min date is previous month
$scope.endDate = moment().subtract(1, 'days').toDate(); // default end date is current date - 1
$scope.maxDate = moment().subtract(1, 'days').toDate(); // default max date is current date - 1
/* Function to set date criteria */
$scope.updateCriteria = function(event) {
$scope.criteria = event.target.id.toUpperCase();
};
});
| Update default dates for statistic view | Update default dates for statistic view
| JavaScript | mit | nus-mtp/zoomable.js,nus-mtp/zoomable.js,nus-mtp/zoomable.js | javascript | ## Code Before:
angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'month').toDate(); // default min date is previous month
$scope.endDate = new Date(); // default end date is current date
$scope.maxDate = new Date(); // default max date is current date
/* Function to set date criteria */
$scope.updateCriteria = function(event) {
$scope.criteria = event.target.id.toUpperCase();
};
});
## Instruction:
Update default dates for statistic view
## Code After:
angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'months').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'months').toDate(); // default min date is previous month
$scope.endDate = moment().subtract(1, 'days').toDate(); // default end date is current date - 1
$scope.maxDate = moment().subtract(1, 'days').toDate(); // default max date is current date - 1
/* Function to set date criteria */
$scope.updateCriteria = function(event) {
$scope.criteria = event.target.id.toUpperCase();
};
});
| angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
- $scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
+ $scope.startDate = moment().subtract(1, 'months').toDate(); // default start date is previous month
? +
- $scope.minDate = moment().subtract(1, 'month').toDate(); // default min date is previous month
+ $scope.minDate = moment().subtract(1, 'months').toDate(); // default min date is previous month
? +
- $scope.endDate = new Date(); // default end date is current date
? ^^
+ $scope.endDate = moment().subtract(1, 'days').toDate(); // default end date is current date - 1
? ++++ ^^^^^^^^^^^^^^^ ++++++++++ ++++
- $scope.maxDate = new Date(); // default max date is current date
? ^^
+ $scope.maxDate = moment().subtract(1, 'days').toDate(); // default max date is current date - 1
? ++++ ^^^^^^^^^^^^^^^ ++++++++++ ++++
/* Function to set date criteria */
$scope.updateCriteria = function(event) {
$scope.criteria = event.target.id.toUpperCase();
};
}); | 8 | 0.615385 | 4 | 4 |
f563228ae337cea4f19dd94724ea494db589c939 | app/views/user/index.html.haml | app/views/user/index.html.haml |
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
- @allArticles.each do |article|
= render "shared/article_single", :object => article
|
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
%span.pull-right #{link_to(fa_icon("list"), list_articles_index_path, title: "See all your articles")}
- @allArticles.each do |article|
= render "shared/article_single", :object => article
| Add a link to all articles on the homepage | Add a link to all articles on the homepage
Signed-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>
| Haml | mit | icyflame/cutouts,icyflame/cutouts,icyflame/cutouts,icyflame/cutouts,icyflame/cutouts | haml | ## Code Before:
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
- @allArticles.each do |article|
= render "shared/article_single", :object => article
## Instruction:
Add a link to all articles on the homepage
Signed-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>
## Code After:
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
%span.pull-right #{link_to(fa_icon("list"), list_articles_index_path, title: "See all your articles")}
- @allArticles.each do |article|
= render "shared/article_single", :object => article
|
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
+ %span.pull-right #{link_to(fa_icon("list"), list_articles_index_path, title: "See all your articles")}
- @allArticles.each do |article|
= render "shared/article_single", :object => article | 1 | 0.1 | 1 | 0 |
e091aebd9d2a89dcd1db2a13285d4c0de2f74e0a | emacs/emacs.d.symlink/init.el | emacs/emacs.d.symlink/init.el | (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
starter-kit-lisp starter-kit-bindings
solarized-theme)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(load-theme 'solarized-dark t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
| (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit
starter-kit-ruby
starter-kit-js
starter-kit-lisp
starter-kit-bindings
solarized-theme
erlang
haskell-mode
evil
evil-leader)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(load-theme 'solarized-dark t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
| Add Erlang & Haskell support to Emacs | Add Erlang & Haskell support to Emacs
| Emacs Lisp | mit | jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles | emacs-lisp | ## Code Before:
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
starter-kit-lisp starter-kit-bindings
solarized-theme)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(load-theme 'solarized-dark t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
## Instruction:
Add Erlang & Haskell support to Emacs
## Code After:
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit
starter-kit-ruby
starter-kit-js
starter-kit-lisp
starter-kit-bindings
solarized-theme
erlang
haskell-mode
evil
evil-leader)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(load-theme 'solarized-dark t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
| (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
- (defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
- starter-kit-lisp starter-kit-bindings
+ (defvar my-packages '(starter-kit
+ starter-kit-ruby
+ starter-kit-js
+ starter-kit-lisp
+ starter-kit-bindings
- solarized-theme)
? ------------ -
+ solarized-theme
+ erlang
+ haskell-mode
+ evil
+ evil-leader)
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(load-theme 'solarized-dark t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes (quote ("501caa208affa1145ccbb4b74b6cd66c3091e41c5bb66c677feda9def5eab19c" default))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
) | 13 | 0.419355 | 10 | 3 |
0685a6a009bf352b0d2a63de328219249d97e08c | install.sh | install.sh |
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="brew.sh"
fi
START_SCRIPT=start.sh
SETUP_SCRIPT=setup.sh
while read line
do
if [[ "$line" == *${SKIP_PATTERN}* ]] || [ "$line" == "" ]; then
continue
fi
NAME=$(echo $line | awk -F '=' '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/_/\//g')
VALUE=$(echo $line | awk -F '=' '{print $2}')
if [ -d $NAME ] && [ "$VALUE" == "y" ]; then
echo "install $NAME ..."
cd $NAME
if [ -f $INSTALL_SCRIPT ]; then
./$INSTALL_SCRIPT
if [ -f $START_SCRIPT ]; then
./$START_SCRIPT
fi
else
echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
fi
if [ -f $SETUP_SCRIPT ]; then
./$SETUP_SCRIPT
fi
cd - > /dev/null
fi
done < config
|
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="brew.sh"
fi
START_SCRIPT=start.sh
SETUP_SCRIPT=setup.sh
while read line
do
if [[ "$line" == *${SKIP_PATTERN}* ]] || [ "$line" == "" ]; then
continue
fi
NAME=$(echo $line | awk -F '=' '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/_/\//g')
VALUE=$(echo $line | awk -F '=' '{print $2}')
if [ -d $NAME ] && [ "$VALUE" == "y" ]; then
echo "install $NAME ..."
cd $NAME
if [ -f $INSTALL_SCRIPT ]; then
./$INSTALL_SCRIPT | tee /tmp/install.log
if [ -f $START_SCRIPT ]; then
./$START_SCRIPT
fi
else
echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
fi
if [ -f $SETUP_SCRIPT ]; then
./$SETUP_SCRIPT
fi
cd - > /dev/null
fi
done < config
rm -rf /tmp/install.log
| Fix bash can't wait for another bash | Fix bash can't wait for another bash
| Shell | mit | shengyu7697/1nv | shell | ## Code Before:
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="brew.sh"
fi
START_SCRIPT=start.sh
SETUP_SCRIPT=setup.sh
while read line
do
if [[ "$line" == *${SKIP_PATTERN}* ]] || [ "$line" == "" ]; then
continue
fi
NAME=$(echo $line | awk -F '=' '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/_/\//g')
VALUE=$(echo $line | awk -F '=' '{print $2}')
if [ -d $NAME ] && [ "$VALUE" == "y" ]; then
echo "install $NAME ..."
cd $NAME
if [ -f $INSTALL_SCRIPT ]; then
./$INSTALL_SCRIPT
if [ -f $START_SCRIPT ]; then
./$START_SCRIPT
fi
else
echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
fi
if [ -f $SETUP_SCRIPT ]; then
./$SETUP_SCRIPT
fi
cd - > /dev/null
fi
done < config
## Instruction:
Fix bash can't wait for another bash
## Code After:
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="brew.sh"
fi
START_SCRIPT=start.sh
SETUP_SCRIPT=setup.sh
while read line
do
if [[ "$line" == *${SKIP_PATTERN}* ]] || [ "$line" == "" ]; then
continue
fi
NAME=$(echo $line | awk -F '=' '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/_/\//g')
VALUE=$(echo $line | awk -F '=' '{print $2}')
if [ -d $NAME ] && [ "$VALUE" == "y" ]; then
echo "install $NAME ..."
cd $NAME
if [ -f $INSTALL_SCRIPT ]; then
./$INSTALL_SCRIPT | tee /tmp/install.log
if [ -f $START_SCRIPT ]; then
./$START_SCRIPT
fi
else
echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
fi
if [ -f $SETUP_SCRIPT ]; then
./$SETUP_SCRIPT
fi
cd - > /dev/null
fi
done < config
rm -rf /tmp/install.log
|
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="brew.sh"
fi
START_SCRIPT=start.sh
SETUP_SCRIPT=setup.sh
while read line
do
if [[ "$line" == *${SKIP_PATTERN}* ]] || [ "$line" == "" ]; then
continue
fi
NAME=$(echo $line | awk -F '=' '{print $1}' | tr '[A-Z]' '[a-z]' | sed 's/_/\//g')
VALUE=$(echo $line | awk -F '=' '{print $2}')
if [ -d $NAME ] && [ "$VALUE" == "y" ]; then
echo "install $NAME ..."
cd $NAME
if [ -f $INSTALL_SCRIPT ]; then
- ./$INSTALL_SCRIPT
+ ./$INSTALL_SCRIPT | tee /tmp/install.log
if [ -f $START_SCRIPT ]; then
./$START_SCRIPT
fi
else
echo -e "\033[31;4mWarning\033[0m: no $INSTALL_SCRIPT file"
fi
if [ -f $SETUP_SCRIPT ]; then
./$SETUP_SCRIPT
fi
cd - > /dev/null
fi
done < config
+ rm -rf /tmp/install.log | 3 | 0.061224 | 2 | 1 |
1b0a8398d50576fb746accb652968bdcbb737905 | src/table-sortable.styl | src/table-sortable.styl | // sortable effect
.table-sortable {
table {
th {
white-space: nowrap;
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
vertical-align: middle;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 16px); // 16px is icon width
}
> i {
vertical-align: middle;
}
}
.column-sort-asc,
.column-sort-desc {
vertical-align: top;
margin-top: 1px;
display: inline-block;
width: 16px;
height: 16px;
}
.column-sort-asc {
background-image: url("./icon-thSortAscending.svg");
}
.column-sort-desc {
background-image: url("./icon-thSortDescending.svg");
}
}
}
| // sortable effect
.table-sortable {
table {
> thead > tr > th {
white-space: nowrap;
padding: 0;
> *:first-child {
padding: 8px 12px;
}
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
vertical-align: middle;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 16px); // 16px is icon width
}
> i {
vertical-align: middle;
}
}
.column-sort-asc,
.column-sort-desc {
vertical-align: top;
margin-top: 1px;
display: inline-block;
width: 16px;
height: 16px;
}
.column-sort-asc {
background-image: url("./icon-thSortAscending.svg");
}
.column-sort-desc {
background-image: url("./icon-thSortDescending.svg");
}
}
}
| Adjust hover style of sorting header. | Adjust hover style of sorting header.
| Stylus | mit | trendmicro-frontend/react-table | stylus | ## Code Before:
// sortable effect
.table-sortable {
table {
th {
white-space: nowrap;
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
vertical-align: middle;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 16px); // 16px is icon width
}
> i {
vertical-align: middle;
}
}
.column-sort-asc,
.column-sort-desc {
vertical-align: top;
margin-top: 1px;
display: inline-block;
width: 16px;
height: 16px;
}
.column-sort-asc {
background-image: url("./icon-thSortAscending.svg");
}
.column-sort-desc {
background-image: url("./icon-thSortDescending.svg");
}
}
}
## Instruction:
Adjust hover style of sorting header.
## Code After:
// sortable effect
.table-sortable {
table {
> thead > tr > th {
white-space: nowrap;
padding: 0;
> *:first-child {
padding: 8px 12px;
}
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
vertical-align: middle;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 16px); // 16px is icon width
}
> i {
vertical-align: middle;
}
}
.column-sort-asc,
.column-sort-desc {
vertical-align: top;
margin-top: 1px;
display: inline-block;
width: 16px;
height: 16px;
}
.column-sort-asc {
background-image: url("./icon-thSortAscending.svg");
}
.column-sort-desc {
background-image: url("./icon-thSortDescending.svg");
}
}
}
| // sortable effect
.table-sortable {
table {
- th {
+ > thead > tr > th {
white-space: nowrap;
+ padding: 0;
+
+ > *:first-child {
+ padding: 8px 12px;
+ }
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
vertical-align: middle;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
max-width: calc(100% - 16px); // 16px is icon width
}
> i {
vertical-align: middle;
}
}
.column-sort-asc,
.column-sort-desc {
vertical-align: top;
margin-top: 1px;
display: inline-block;
width: 16px;
height: 16px;
}
.column-sort-asc {
background-image: url("./icon-thSortAscending.svg");
}
.column-sort-desc {
background-image: url("./icon-thSortDescending.svg");
}
}
} | 7 | 0.155556 | 6 | 1 |
ccedfc73e5616d53371234dfe1a2d4713242078c | README.md | README.md | 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build Status |
|:-|---|
| Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) |
## Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
## License
The **nanoFramework** Visual Studio extension and associated tools are licensed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
to clarify expected behavior in our community.
| 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build Status |
|:-|---|---|
| Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) | []() |
## Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
## License
The **nanoFramework** Visual Studio extension and associated tools are licensed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
to clarify expected behavior in our community.
| Add VS marketplace badge and link to extension | Add VS marketplace badge and link to extension | Markdown | mit | nanoframework/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension | markdown | ## Code Before:

-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build Status |
|:-|---|
| Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) |
## Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
## License
The **nanoFramework** Visual Studio extension and associated tools are licensed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
to clarify expected behavior in our community.
## Instruction:
Add VS marketplace badge and link to extension
## Code After:

-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build Status |
|:-|---|---|
| Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) | []() |
## Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
## License
The **nanoFramework** Visual Studio extension and associated tools are licensed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
to clarify expected behavior in our community.
| 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build Status |
- |:-|---|
+ |:-|---|---|
? ++++
- | Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) |
+ | Visual Studio extension | [](https://ci.appveyor.com/project/nfbot/nf-visual-studio-extension) | []() |
## Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
Join our Slack community by filling in this [invite form](https://nanoframework.wordpress.com/slack-invite-form/).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
## License
The **nanoFramework** Visual Studio extension and associated tools are licensed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](http://contributor-covenant.org/)
to clarify expected behavior in our community. | 4 | 0.111111 | 2 | 2 |
6d35f6d1aee4f6fc3c39b5f3621bd8ea20d461b0 | metadata/com.markuspage.android.atimetracker.txt | metadata/com.markuspage.android.atimetracker.txt | Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:git
Repo:https://github.com/netmackan/ATimeTracker.git
Build:0.17,17
commit=v0.17
subdir=android-timetracker
Build:0.19,19
commit=v0.19
subdir=android-timetracker
Build:0.20,20
commit=v0.20
subdir=android-timetracker
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.21
Current Version Code:21
| Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:git
Repo:https://github.com/netmackan/ATimeTracker.git
Build:0.17,17
commit=v0.17
subdir=android-timetracker
Build:0.19,19
commit=v0.19
subdir=android-timetracker
Build:0.20,20
commit=v0.20
subdir=android-timetracker
Build:0.21,21
commit=v0.21
subdir=android-timetracker
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.21
Current Version Code:21
| Update A Time Tracker to 0.21 (21) | Update A Time Tracker to 0.21 (21)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:git
Repo:https://github.com/netmackan/ATimeTracker.git
Build:0.17,17
commit=v0.17
subdir=android-timetracker
Build:0.19,19
commit=v0.19
subdir=android-timetracker
Build:0.20,20
commit=v0.20
subdir=android-timetracker
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.21
Current Version Code:21
## Instruction:
Update A Time Tracker to 0.21 (21)
## Code After:
Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:git
Repo:https://github.com/netmackan/ATimeTracker.git
Build:0.17,17
commit=v0.17
subdir=android-timetracker
Build:0.19,19
commit=v0.19
subdir=android-timetracker
Build:0.20,20
commit=v0.20
subdir=android-timetracker
Build:0.21,21
commit=v0.21
subdir=android-timetracker
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.21
Current Version Code:21
| Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:git
Repo:https://github.com/netmackan/ATimeTracker.git
Build:0.17,17
commit=v0.17
subdir=android-timetracker
Build:0.19,19
commit=v0.19
subdir=android-timetracker
Build:0.20,20
commit=v0.20
subdir=android-timetracker
+ Build:0.21,21
+ commit=v0.21
+ subdir=android-timetracker
+
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.21
Current Version Code:21
| 4 | 0.121212 | 4 | 0 |
b9aa93c127573b4b1d068290bb4ca2e3eaf4b82c | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
public class FileWriter {
public static void writeFile(String filename, String contents) {
File dataFile = new File(filename);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
writer.write(contents);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeFile(String filename, InputStream inputStream) {
File dataFile = new File(filename);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
byte[] buffer = new byte[4096];
int readBytes;
while ((readBytes = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, readBytes);
}
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
| package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import javax.annotation.Nonnull;
public class FileWriter {
public static void writeFile(String filename, String contents) {
File dataFile = new File(filename);
mkdirsForFile(dataFile);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
writer.write(contents);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeFile(String filename, InputStream inputStream) {
File dataFile = new File(filename);
mkdirsForFile(dataFile);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
byte[] buffer = new byte[4096];
int readBytes;
while ((readBytes = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, readBytes);
}
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
private static void mkdirsForFile(@Nonnull File file) {
File path = new File(file.getParent());
if (!path.exists() && !path.mkdirs()) {
throw new IllegalArgumentException(
"Path did not exist and could not be created: '" + path.getAbsolutePath() + "'");
}
}
}
| Create directories for output if they don't already exist | Create directories for output if they don't already exist
Especially the downloader should do this to allow for easier
scripting.
| Java | mit | holmari/gerritstats,holmari/gerritstats,holmari/gerritstats,holmari/gerritstats | java | ## Code Before:
package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
public class FileWriter {
public static void writeFile(String filename, String contents) {
File dataFile = new File(filename);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
writer.write(contents);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeFile(String filename, InputStream inputStream) {
File dataFile = new File(filename);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
byte[] buffer = new byte[4096];
int readBytes;
while ((readBytes = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, readBytes);
}
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
## Instruction:
Create directories for output if they don't already exist
Especially the downloader should do this to allow for easier
scripting.
## Code After:
package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import javax.annotation.Nonnull;
public class FileWriter {
public static void writeFile(String filename, String contents) {
File dataFile = new File(filename);
mkdirsForFile(dataFile);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
writer.write(contents);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeFile(String filename, InputStream inputStream) {
File dataFile = new File(filename);
mkdirsForFile(dataFile);
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
byte[] buffer = new byte[4096];
int readBytes;
while ((readBytes = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, readBytes);
}
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
private static void mkdirsForFile(@Nonnull File file) {
File path = new File(file.getParent());
if (!path.exists() && !path.mkdirs()) {
throw new IllegalArgumentException(
"Path did not exist and could not be created: '" + path.getAbsolutePath() + "'");
}
}
}
| package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
+ import javax.annotation.Nonnull;
+
public class FileWriter {
public static void writeFile(String filename, String contents) {
File dataFile = new File(filename);
+ mkdirsForFile(dataFile);
+
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
Writer writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
writer.write(contents);
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void writeFile(String filename, InputStream inputStream) {
File dataFile = new File(filename);
+ mkdirsForFile(dataFile);
+
FileOutputStream outputStream;
try {
outputStream = new FileOutputStream(dataFile);
byte[] buffer = new byte[4096];
int readBytes;
while ((readBytes = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, readBytes);
}
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
+
+ private static void mkdirsForFile(@Nonnull File file) {
+ File path = new File(file.getParent());
+ if (!path.exists() && !path.mkdirs()) {
+ throw new IllegalArgumentException(
+ "Path did not exist and could not be created: '" + path.getAbsolutePath() + "'");
+ }
+ }
} | 14 | 0.341463 | 14 | 0 |
327913be97e9a92a4f0c34578b1a5471a21851ec | staticcheck/testdata/CheckLeakyTimeTick.go | staticcheck/testdata/CheckLeakyTimeTick.go | package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
return
}
}
}
type T struct{}
func (t *T) foo() {
for range time.Tick(0) {
println("")
}
}
| package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
return
}
}
}
func fn4() {
go func() {
for range time.Tick(0) {
println("")
}
}()
}
type T struct{}
func (t *T) foo() {
for range time.Tick(0) {
println("")
}
}
| Add test for non-leaky time.Tick in closure | Add test for non-leaky time.Tick in closure
Updates gh-62
| Go | mit | dominikh/go-tools,dominikh/go-tools,dominikh/go-tools,dominikh/go-tools | go | ## Code Before:
package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
return
}
}
}
type T struct{}
func (t *T) foo() {
for range time.Tick(0) {
println("")
}
}
## Instruction:
Add test for non-leaky time.Tick in closure
Updates gh-62
## Code After:
package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
return
}
}
}
func fn4() {
go func() {
for range time.Tick(0) {
println("")
}
}()
}
type T struct{}
func (t *T) foo() {
for range time.Tick(0) {
println("")
}
}
| package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
return
}
}
}
+ func fn4() {
+ go func() {
+ for range time.Tick(0) {
+ println("")
+ }
+ }()
+ }
+
type T struct{}
func (t *T) foo() {
for range time.Tick(0) {
println("")
}
} | 8 | 0.228571 | 8 | 0 |
b84b7a370e6eec4ccfc4d8e4a9b7426391dc8c0b | app/views/finders/_facet_tags.html.erb | app/views/finders/_facet_tags.html.erb | <% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tags__preposition"><%= filter[:preposition] %></p>
<div class="facet-tag">
<p class="facet-tag__text"><%= filter[:text] %></p>
<button type="button"
class="facet-tag__remove"
aria-label="Remove filter <%= filter[:text] %>"
data-module="remove-filter-link"
data-track-label="<%= filter[:data_track_label] %>"
data-facet="<%= filter[:data_facet] %>"
data-value="<%= filter[:data_value] %>"
data-name="<%= filter[:data_name] %>">✕</button>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
<% end %>
<% if local_assigns[:screen_reader_filter_description] %>
<span class="govuk-visually-hidden">
<%= result_set_presenter.displayed_total %>
<%= local_assigns[:screen_reader_filter_description] %>
</span>
<% end %>
| <% if local_assigns[:screen_reader_filter_description] %>
<span class="govuk-visually-hidden">
<%= result_set_presenter.displayed_total %>
<%= local_assigns[:screen_reader_filter_description] %>
</span>
<% end %>
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tags__preposition"><%= filter[:preposition] %></p>
<div class="facet-tag">
<p class="facet-tag__text"><%= filter[:text] %></p>
<button type="button"
class="facet-tag__remove"
aria-label="Remove filter <%= filter[:text] %>"
data-module="remove-filter-link"
data-track-label="<%= filter[:data_track_label] %>"
data-facet="<%= filter[:data_facet] %>"
data-value="<%= filter[:data_value] %>"
data-name="<%= filter[:data_name] %>">✕</button>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
<% end %>
| Change order of results and filter info | Change order of results and filter info
Screen readers will now read out the number of
results, followed by the filters applied. This is
more sensible. https://trello.com/c/okfLseFa/
895-hidden-text-for-screen-readers-is-in-the-wrong-place
| HTML+ERB | mit | alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend | html+erb | ## Code Before:
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tags__preposition"><%= filter[:preposition] %></p>
<div class="facet-tag">
<p class="facet-tag__text"><%= filter[:text] %></p>
<button type="button"
class="facet-tag__remove"
aria-label="Remove filter <%= filter[:text] %>"
data-module="remove-filter-link"
data-track-label="<%= filter[:data_track_label] %>"
data-facet="<%= filter[:data_facet] %>"
data-value="<%= filter[:data_value] %>"
data-name="<%= filter[:data_name] %>">✕</button>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
<% end %>
<% if local_assigns[:screen_reader_filter_description] %>
<span class="govuk-visually-hidden">
<%= result_set_presenter.displayed_total %>
<%= local_assigns[:screen_reader_filter_description] %>
</span>
<% end %>
## Instruction:
Change order of results and filter info
Screen readers will now read out the number of
results, followed by the filters applied. This is
more sensible. https://trello.com/c/okfLseFa/
895-hidden-text-for-screen-readers-is-in-the-wrong-place
## Code After:
<% if local_assigns[:screen_reader_filter_description] %>
<span class="govuk-visually-hidden">
<%= result_set_presenter.displayed_total %>
<%= local_assigns[:screen_reader_filter_description] %>
</span>
<% end %>
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tags__preposition"><%= filter[:preposition] %></p>
<div class="facet-tag">
<p class="facet-tag__text"><%= filter[:text] %></p>
<button type="button"
class="facet-tag__remove"
aria-label="Remove filter <%= filter[:text] %>"
data-module="remove-filter-link"
data-track-label="<%= filter[:data_track_label] %>"
data-facet="<%= filter[:data_facet] %>"
data-value="<%= filter[:data_value] %>"
data-name="<%= filter[:data_name] %>">✕</button>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
<% end %>
| + <% if local_assigns[:screen_reader_filter_description] %>
+ <span class="govuk-visually-hidden">
+ <%= result_set_presenter.displayed_total %>
+ <%= local_assigns[:screen_reader_filter_description] %>
+ </span>
+ <% end %>
+
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tags__preposition"><%= filter[:preposition] %></p>
<div class="facet-tag">
<p class="facet-tag__text"><%= filter[:text] %></p>
<button type="button"
class="facet-tag__remove"
aria-label="Remove filter <%= filter[:text] %>"
data-module="remove-filter-link"
data-track-label="<%= filter[:data_track_label] %>"
data-facet="<%= filter[:data_facet] %>"
data-value="<%= filter[:data_value] %>"
data-name="<%= filter[:data_name] %>">✕</button>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
<% end %>
-
- <% if local_assigns[:screen_reader_filter_description] %>
- <span class="govuk-visually-hidden">
- <%= result_set_presenter.displayed_total %>
- <%= local_assigns[:screen_reader_filter_description] %>
- </span>
- <% end %> | 14 | 0.451613 | 7 | 7 |
3e8d7a851965322a5a5c3a4aa5db1bf3747a5d54 | bin/transmission.rb | bin/transmission.rb |
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
result = []
while true
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer(client.interval) do
client.report
end
end
EM.add_periodic_timer(2) do
transmission.each do |client|
client.session_stats
end
end
EventMachine::start_server "127.0.0.1", 2456, TransmissionServer do |server|
server.connectors = transmission
end
end
rescue Exception => e
puts "Error: #{e.message}"
end
end
|
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
@exit = false
trap("INT") do
EventMachine::stop_event_loop
@exit = true
end
trap("TERM") do
EventMachine::stop_event_loop
@exit = true
end
while !@exit
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer(client.interval) do
client.report
end
end
EM.add_periodic_timer(2) do
transmission.each do |client|
client.session_stats
end
end
EventMachine::start_server "127.0.0.1", 2456, TransmissionServer do |server|
server.connectors = transmission
end
end
rescue Exception => e
puts "Error: #{e.message}"
end
end
| Handle system signals and correct exit from app | Handle system signals and correct exit from app
| Ruby | mit | Daem0n/transmission-connect | ruby | ## Code Before:
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
result = []
while true
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer(client.interval) do
client.report
end
end
EM.add_periodic_timer(2) do
transmission.each do |client|
client.session_stats
end
end
EventMachine::start_server "127.0.0.1", 2456, TransmissionServer do |server|
server.connectors = transmission
end
end
rescue Exception => e
puts "Error: #{e.message}"
end
end
## Instruction:
Handle system signals and correct exit from app
## Code After:
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
@exit = false
trap("INT") do
EventMachine::stop_event_loop
@exit = true
end
trap("TERM") do
EventMachine::stop_event_loop
@exit = true
end
while !@exit
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer(client.interval) do
client.report
end
end
EM.add_periodic_timer(2) do
transmission.each do |client|
client.session_stats
end
end
EventMachine::start_server "127.0.0.1", 2456, TransmissionServer do |server|
server.connectors = transmission
end
end
rescue Exception => e
puts "Error: #{e.message}"
end
end
|
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
- result = []
+ @exit = false
- while true
+ trap("INT") do
+ EventMachine::stop_event_loop
+ @exit = true
+ end
+
+ trap("TERM") do
+ EventMachine::stop_event_loop
+ @exit = true
+ end
+
+ while !@exit
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer(client.interval) do
client.report
end
end
EM.add_periodic_timer(2) do
transmission.each do |client|
client.session_stats
end
end
EventMachine::start_server "127.0.0.1", 2456, TransmissionServer do |server|
server.connectors = transmission
end
end
rescue Exception => e
puts "Error: #{e.message}"
end
end | 14 | 0.451613 | 12 | 2 |
70e33c077939c0053edd15fc1fcfd5b09ac1d36e | lib/tasks/scheduler.rake | lib/tasks/scheduler.rake | desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now
end | require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now if Date.today.tuesday?
end | Check if Tuesday before performing task | Check if Tuesday before performing task
| Ruby | mit | StartupWichita/startupwichita.com,StartupWichita/startupwichita.com,StartupWichita/startupwichita.com | ruby | ## Code Before:
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now
end
## Instruction:
Check if Tuesday before performing task
## Code After:
require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now if Date.today.tuesday?
end | + require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
- TuesdayNewslettersJob.perform_now
+ TuesdayNewslettersJob.perform_now if Date.today.tuesday?
? +++++++++++++++++++++++
end | 3 | 0.75 | 2 | 1 |
6443a0a67637ee056d50008ccd08dafdbd0f4ae1 | codegen/Cargo.toml | codegen/Cargo.toml | [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.0", features = ["serde-1"] }
inflections = "1.1"
proc-macro2 = "1.0"
quote = "1.0"
rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" }
semver = { version = "0.9", features = ["serde"] }
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0.38"
syn-codegen = { path = "../json" }
syn = { path = "..", features = ["full", "extra-traits"] }
toml = "0.4.10"
[workspace]
# Prefer that `cargo clean` in syn's directory does not require a rebuild of
# rustfmt in the codegen directory.
[patch.crates-io]
# work around https://github.com/rust-lang/rust/issues/65424
crossbeam-utils = { git = "https://github.com/crossbeam-rs/crossbeam" }
| [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.0", features = ["serde-1"] }
inflections = "1.1"
proc-macro2 = "1.0"
quote = "1.0"
rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" }
semver = { version = "0.9", features = ["serde"] }
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0.38"
syn-codegen = { path = "../json" }
syn = { path = "..", features = ["full", "extra-traits"] }
toml = "0.4.10"
# work around https://github.com/crossbeam-rs/crossbeam/issues/435
# until https://github.com/BurntSushi/ripgrep/pull/1427 is released
crossbeam-utils = "=0.6.5"
[workspace]
# Prefer that `cargo clean` in syn's directory does not require a rebuild of
# rustfmt in the codegen directory.
| Update crossbeam build failure workaround | Update crossbeam build failure workaround
| TOML | apache-2.0 | dtolnay/syn | toml | ## Code Before:
[package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.0", features = ["serde-1"] }
inflections = "1.1"
proc-macro2 = "1.0"
quote = "1.0"
rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" }
semver = { version = "0.9", features = ["serde"] }
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0.38"
syn-codegen = { path = "../json" }
syn = { path = "..", features = ["full", "extra-traits"] }
toml = "0.4.10"
[workspace]
# Prefer that `cargo clean` in syn's directory does not require a rebuild of
# rustfmt in the codegen directory.
[patch.crates-io]
# work around https://github.com/rust-lang/rust/issues/65424
crossbeam-utils = { git = "https://github.com/crossbeam-rs/crossbeam" }
## Instruction:
Update crossbeam build failure workaround
## Code After:
[package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.0", features = ["serde-1"] }
inflections = "1.1"
proc-macro2 = "1.0"
quote = "1.0"
rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" }
semver = { version = "0.9", features = ["serde"] }
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0.38"
syn-codegen = { path = "../json" }
syn = { path = "..", features = ["full", "extra-traits"] }
toml = "0.4.10"
# work around https://github.com/crossbeam-rs/crossbeam/issues/435
# until https://github.com/BurntSushi/ripgrep/pull/1427 is released
crossbeam-utils = "=0.6.5"
[workspace]
# Prefer that `cargo clean` in syn's directory does not require a rebuild of
# rustfmt in the codegen directory.
| [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.0", features = ["serde-1"] }
inflections = "1.1"
proc-macro2 = "1.0"
quote = "1.0"
rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" }
semver = { version = "0.9", features = ["serde"] }
serde = { version = "1.0.88", features = ["derive"] }
serde_json = "1.0.38"
syn-codegen = { path = "../json" }
syn = { path = "..", features = ["full", "extra-traits"] }
toml = "0.4.10"
+ # work around https://github.com/crossbeam-rs/crossbeam/issues/435
+ # until https://github.com/BurntSushi/ripgrep/pull/1427 is released
+ crossbeam-utils = "=0.6.5"
+
[workspace]
# Prefer that `cargo clean` in syn's directory does not require a rebuild of
# rustfmt in the codegen directory.
-
- [patch.crates-io]
- # work around https://github.com/rust-lang/rust/issues/65424
- crossbeam-utils = { git = "https://github.com/crossbeam-rs/crossbeam" } | 8 | 0.266667 | 4 | 4 |
2c8615108844ff6177e415ff28086835856c0390 | app/views/charge_booking_templates/_charge_booking_template.html.haml | app/views/charge_booking_templates/_charge_booking_template.html.haml | - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
%i= charge_booking_template.comments
%td= link_to charge_booking_template.credit_account.code, account_path(charge_booking_template.credit_account), :title => charge_booking_template.credit_account.title unless charge_booking_template.credit_account.nil?
%td= link_to charge_booking_template.debit_account.code, account_path(charge_booking_template.debit_account), :title => charge_booking_template.debit_account.title unless charge_booking_template.debit_account.nil?
%td.currency= link_to amount_to_s(charge_booking_template), charge_booking_template.charge_rate
%td= t(charge_booking_template.amount_relates_to, :scope => 'booking_template.relation') if charge_booking_template.amount_relates_to.present?
%td.action-links
= list_link_for(:edit, charge_booking_template)
= list_link_for(:delete, charge_booking_template)
| - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
%i= charge_booking_template.comments
%td= link_to charge_booking_template.credit_account.code, account_path(charge_booking_template.credit_account), :title => charge_booking_template.credit_account.title unless charge_booking_template.credit_account.nil?
%td= link_to charge_booking_template.debit_account.code, account_path(charge_booking_template.debit_account), :title => charge_booking_template.debit_account.title unless charge_booking_template.debit_account.nil?
%td.currency= link_to amount_to_s(charge_booking_template), charge_booking_template.charge_rate
%td= t(charge_booking_template.amount_relates_to, :scope => 'booking_template.relation') if charge_booking_template.amount_relates_to.present?
%td.action-links
= list_link_for(:edit, charge_booking_template)
= list_link_for(:delete, charge_booking_template, :remote => true)
| Support AJAX deletion for charge booking templates. | Support AJAX deletion for charge booking templates.
| Haml | agpl-3.0 | xuewenfei/bookyt,gaapt/bookyt,hauledev/bookyt,hauledev/bookyt,silvermind/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,huerlisi/bookyt,huerlisi/bookyt,silvermind/bookyt,gaapt/bookyt,gaapt/bookyt,silvermind/bookyt,hauledev/bookyt,silvermind/bookyt,wtag/bookyt,xuewenfei/bookyt,wtag/bookyt | haml | ## Code Before:
- item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
%i= charge_booking_template.comments
%td= link_to charge_booking_template.credit_account.code, account_path(charge_booking_template.credit_account), :title => charge_booking_template.credit_account.title unless charge_booking_template.credit_account.nil?
%td= link_to charge_booking_template.debit_account.code, account_path(charge_booking_template.debit_account), :title => charge_booking_template.debit_account.title unless charge_booking_template.debit_account.nil?
%td.currency= link_to amount_to_s(charge_booking_template), charge_booking_template.charge_rate
%td= t(charge_booking_template.amount_relates_to, :scope => 'booking_template.relation') if charge_booking_template.amount_relates_to.present?
%td.action-links
= list_link_for(:edit, charge_booking_template)
= list_link_for(:delete, charge_booking_template)
## Instruction:
Support AJAX deletion for charge booking templates.
## Code After:
- item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
%i= charge_booking_template.comments
%td= link_to charge_booking_template.credit_account.code, account_path(charge_booking_template.credit_account), :title => charge_booking_template.credit_account.title unless charge_booking_template.credit_account.nil?
%td= link_to charge_booking_template.debit_account.code, account_path(charge_booking_template.debit_account), :title => charge_booking_template.debit_account.title unless charge_booking_template.debit_account.nil?
%td.currency= link_to amount_to_s(charge_booking_template), charge_booking_template.charge_rate
%td= t(charge_booking_template.amount_relates_to, :scope => 'booking_template.relation') if charge_booking_template.amount_relates_to.present?
%td.action-links
= list_link_for(:edit, charge_booking_template)
= list_link_for(:delete, charge_booking_template, :remote => true)
| - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
%i= charge_booking_template.comments
%td= link_to charge_booking_template.credit_account.code, account_path(charge_booking_template.credit_account), :title => charge_booking_template.credit_account.title unless charge_booking_template.credit_account.nil?
%td= link_to charge_booking_template.debit_account.code, account_path(charge_booking_template.debit_account), :title => charge_booking_template.debit_account.title unless charge_booking_template.debit_account.nil?
%td.currency= link_to amount_to_s(charge_booking_template), charge_booking_template.charge_rate
%td= t(charge_booking_template.amount_relates_to, :scope => 'booking_template.relation') if charge_booking_template.amount_relates_to.present?
%td.action-links
= list_link_for(:edit, charge_booking_template)
- = list_link_for(:delete, charge_booking_template)
+ = list_link_for(:delete, charge_booking_template, :remote => true)
? +++++++++++++++++
| 2 | 0.133333 | 1 | 1 |
67f376ff9d2597d618b697d9e45b7ce48cf96dbb | index/bindex.go | index/bindex.go | package index
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_documents() {
in.Docs[d.Doc.Id] = in.br.get_document_data(&d)
}
in.Attrs = make(map[string][]IbDoc)
for _, a := range in.br.get_invattrs() {
in.Attrs[in.br.get_attr_name(&a)] = in.br.get_attr_docs(&a)
}
return &in, nil
}
func (in *Index) Close() {
in.br.close()
}
| package index
import (
"bconf"
)
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
Meta bconf.Bconf
header string
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_documents() {
in.Docs[d.Doc.Id] = in.br.get_document_data(&d)
}
in.Attrs = make(map[string][]IbDoc)
for _, a := range in.br.get_invattrs() {
in.Attrs[in.br.get_attr_name(&a)] = in.br.get_attr_docs(&a)
}
in.Meta.LoadJson(in.br.get_meta())
in.Header() // Pre-cache the header to avoid race conditions.
return &in, nil
}
func (in Index) Header() string {
if in.header == "" {
in.Meta.GetNode("attr", "order").ForeachSorted(func(k, v string) {
if in.header != "" {
in.header += "\t"
}
in.header += v
})
}
return in.header
}
func (in Index) Close() {
in.br.close()
}
| Implement meta by using the bconf package (separate repository). | Implement meta by using the bconf package (separate repository).
| Go | isc | art4711/bsearch | go | ## Code Before:
package index
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_documents() {
in.Docs[d.Doc.Id] = in.br.get_document_data(&d)
}
in.Attrs = make(map[string][]IbDoc)
for _, a := range in.br.get_invattrs() {
in.Attrs[in.br.get_attr_name(&a)] = in.br.get_attr_docs(&a)
}
return &in, nil
}
func (in *Index) Close() {
in.br.close()
}
## Instruction:
Implement meta by using the bconf package (separate repository).
## Code After:
package index
import (
"bconf"
)
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
Meta bconf.Bconf
header string
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_documents() {
in.Docs[d.Doc.Id] = in.br.get_document_data(&d)
}
in.Attrs = make(map[string][]IbDoc)
for _, a := range in.br.get_invattrs() {
in.Attrs[in.br.get_attr_name(&a)] = in.br.get_attr_docs(&a)
}
in.Meta.LoadJson(in.br.get_meta())
in.Header() // Pre-cache the header to avoid race conditions.
return &in, nil
}
func (in Index) Header() string {
if in.header == "" {
in.Meta.GetNode("attr", "order").ForeachSorted(func(k, v string) {
if in.header != "" {
in.header += "\t"
}
in.header += v
})
}
return in.header
}
func (in Index) Close() {
in.br.close()
}
| package index
+
+ import (
+ "bconf"
+ )
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
+ Meta bconf.Bconf
+ header string
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_documents() {
in.Docs[d.Doc.Id] = in.br.get_document_data(&d)
}
in.Attrs = make(map[string][]IbDoc)
for _, a := range in.br.get_invattrs() {
in.Attrs[in.br.get_attr_name(&a)] = in.br.get_attr_docs(&a)
}
+
+ in.Meta.LoadJson(in.br.get_meta())
+
+ in.Header() // Pre-cache the header to avoid race conditions.
+
return &in, nil
}
+ func (in Index) Header() string {
+ if in.header == "" {
+ in.Meta.GetNode("attr", "order").ForeachSorted(func(k, v string) {
+ if in.header != "" {
+ in.header += "\t"
+ }
+ in.header += v
+ })
+ }
+ return in.header
+ }
+
- func (in *Index) Close() {
? -
+ func (in Index) Close() {
in.br.close()
} | 25 | 0.78125 | 24 | 1 |
79104f00818c7e0744d4d14cf53b8f3f56c2b327 | RELEASE.md | RELEASE.md |
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you can check out the documentation there if you have any question or issues.
Before we release a new version we have to make sure that we increase the `VERSION_NAME` in the root `build.gradle`.
> **Note:** `-SNAPSHOT` as a version name is not allowed in jcenter.
## Snapshots
At this time we don't provide public `SNAPSHOT` releases.
Anyway. If you want to use the latest and greatest features of Ti (or just want to build it by yourself because it is fun) you can "publish" Ti directly into your `mavenLocal()`. To do it you can run either:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=MockedUserName -PbintrayKey=MockedKey -PdryRun=true
```
(MockedUserName and MockedKey can be any value 😉)
Or you can use directly the `publishToMavenLocal` task:
```
./gradlew clean bundleRelease publishToMavenLocal
```
|
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you can check out the documentation there if you have any question or issues.
Before we release a new version we have to make sure that we increase the `VERSION_NAME` in the root `build.gradle`.
> **Note:** `-SNAPSHOT` as a version name is not allowed in jcenter.
## Snapshots
At this time we don't provide public `SNAPSHOT` releases.
Anyway. If you want to use the latest and greatest features of Ti (or just want to build it by yourself because it is fun) you can "publish" Ti directly into your `mavenLocal()`. To do it you can run either:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=MockedUserName -PbintrayKey=MockedKey -PdryRun=true
```
(MockedUserName and MockedKey can be any value 😉)
Or you can use directly the `publishReleasePublicationToMavenLocal` task:
```
./gradlew clean bundleRelease publishReleasePublicationToMavenLocal
```
| Fix failing local publish sample | Fix failing local publish sample
| Markdown | apache-2.0 | grandcentrix/ThirtyInch,grandcentrix/ThirtyInch | markdown | ## Code Before:
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you can check out the documentation there if you have any question or issues.
Before we release a new version we have to make sure that we increase the `VERSION_NAME` in the root `build.gradle`.
> **Note:** `-SNAPSHOT` as a version name is not allowed in jcenter.
## Snapshots
At this time we don't provide public `SNAPSHOT` releases.
Anyway. If you want to use the latest and greatest features of Ti (or just want to build it by yourself because it is fun) you can "publish" Ti directly into your `mavenLocal()`. To do it you can run either:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=MockedUserName -PbintrayKey=MockedKey -PdryRun=true
```
(MockedUserName and MockedKey can be any value 😉)
Or you can use directly the `publishToMavenLocal` task:
```
./gradlew clean bundleRelease publishToMavenLocal
```
## Instruction:
Fix failing local publish sample
## Code After:
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you can check out the documentation there if you have any question or issues.
Before we release a new version we have to make sure that we increase the `VERSION_NAME` in the root `build.gradle`.
> **Note:** `-SNAPSHOT` as a version name is not allowed in jcenter.
## Snapshots
At this time we don't provide public `SNAPSHOT` releases.
Anyway. If you want to use the latest and greatest features of Ti (or just want to build it by yourself because it is fun) you can "publish" Ti directly into your `mavenLocal()`. To do it you can run either:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=MockedUserName -PbintrayKey=MockedKey -PdryRun=true
```
(MockedUserName and MockedKey can be any value 😉)
Or you can use directly the `publishReleasePublicationToMavenLocal` task:
```
./gradlew clean bundleRelease publishReleasePublicationToMavenLocal
```
|
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you can check out the documentation there if you have any question or issues.
Before we release a new version we have to make sure that we increase the `VERSION_NAME` in the root `build.gradle`.
> **Note:** `-SNAPSHOT` as a version name is not allowed in jcenter.
## Snapshots
At this time we don't provide public `SNAPSHOT` releases.
Anyway. If you want to use the latest and greatest features of Ti (or just want to build it by yourself because it is fun) you can "publish" Ti directly into your `mavenLocal()`. To do it you can run either:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=MockedUserName -PbintrayKey=MockedKey -PdryRun=true
```
(MockedUserName and MockedKey can be any value 😉)
- Or you can use directly the `publishToMavenLocal` task:
+ Or you can use directly the `publishReleasePublicationToMavenLocal` task:
? ++++++++++++++++++
```
- ./gradlew clean bundleRelease publishToMavenLocal
+ ./gradlew clean bundleRelease publishReleasePublicationToMavenLocal
? ++++++++++++++++++
``` | 4 | 0.173913 | 2 | 2 |
99c07f02d64ea243db17766570e9b38cf8068788 | vespamalloc/src/vespamalloc/CMakeLists.txt | vespamalloc/src/vespamalloc/CMakeLists.txt | vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocdst16
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocdst16_nl
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16_nl>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespammap
SOURCES
$<TARGET_OBJECTS:vespamalloc_mmap>
INSTALL lib64/vespa/malloc
DEPENDS
)
| vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocdst16
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocdst16_nl
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16_nl>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespammap
SOURCES
$<TARGET_OBJECTS:vespamalloc_mmap>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
| Add link time dependency to atomic library (needed on Ubuntu 18.04) | Add link time dependency to atomic library (needed on Ubuntu 18.04)
| Text | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | text | ## Code Before:
vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocdst16
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocdst16_nl
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16_nl>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespammap
SOURCES
$<TARGET_OBJECTS:vespamalloc_mmap>
INSTALL lib64/vespa/malloc
DEPENDS
)
## Instruction:
Add link time dependency to atomic library (needed on Ubuntu 18.04)
## Code After:
vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocdst16
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocdst16_nl
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16_nl>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespammap
SOURCES
$<TARGET_OBJECTS:vespamalloc_mmap>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
| vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
+ atomic
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
+ atomic
dl
)
vespa_add_library(vespamallocdst16
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
+ atomic
dl
)
vespa_add_library(vespamallocdst16_nl
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocdst16_nl>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
+ atomic
dl
)
vespa_add_library(vespammap
SOURCES
$<TARGET_OBJECTS:vespamalloc_mmap>
INSTALL lib64/vespa/malloc
DEPENDS
+ dl
) | 5 | 0.131579 | 5 | 0 |
658d13058e6fa0da5ea9224951ba64e0be5fae09 | elmstreet/src/Main.elm | elmstreet/src/Main.elm | module Main exposing (..)
import Browser
import Html exposing (Html, text, div, h1, img)
import Html.Attributes exposing (src)
---- MODEL ----
type alias Model =
{}
init : ( Model, Cmd Msg )
init =
( {}, Cmd.none )
---- UPDATE ----
type Msg
= NoOp
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
( model, Cmd.none )
---- VIEW ----
view : Model -> Html Msg
view model =
div []
[ img [ src "/logo.svg" ] []
, h1 [] [ text "Your Elm App is working!" ]
]
---- PROGRAM ----
main : Program () Model Msg
main =
Browser.element
{ view = view
, init = \_ -> init
, update = update
, subscriptions = always Sub.none
}
| module Main exposing (Model, Msg(..), init, main, update, view)
import Browser
import Html exposing (Html, button, div, h1, img, text)
import Html.Attributes exposing (src)
import Html.Events exposing (onClick)
---- MODEL ----
type alias Model =
Int
init : ( Model, Cmd Msg )
init =
( 0, Cmd.none )
---- UPDATE ----
type Msg
= Increment
| Decrement
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
Increment ->
( model + 1, Cmd.none )
Decrement ->
( model - 1, Cmd.none )
---- VIEW ----
view : Model -> Browser.Document Msg
view model =
{ title = "Trackflix"
, body =
[ div []
[ img [ src "/logo.svg" ] []
, h1 [] [ text "Your Elm App is working!" ]
]
, div []
[ button [ onClick Decrement ] [ text "-" ]
, div [] [ text (String.fromInt model) ]
, button [ onClick Increment ] [ text "+" ]
]
]
}
---- PROGRAM ----
main : Program () Model Msg
main =
Browser.document
{ view = view
, init = \_ -> init
, update = update
, subscriptions = always Sub.none
}
| Add counter example in Elm | Add counter example in Elm
| Elm | mit | kevgathuku/trackflix,kevgathuku/trackflix | elm | ## Code Before:
module Main exposing (..)
import Browser
import Html exposing (Html, text, div, h1, img)
import Html.Attributes exposing (src)
---- MODEL ----
type alias Model =
{}
init : ( Model, Cmd Msg )
init =
( {}, Cmd.none )
---- UPDATE ----
type Msg
= NoOp
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
( model, Cmd.none )
---- VIEW ----
view : Model -> Html Msg
view model =
div []
[ img [ src "/logo.svg" ] []
, h1 [] [ text "Your Elm App is working!" ]
]
---- PROGRAM ----
main : Program () Model Msg
main =
Browser.element
{ view = view
, init = \_ -> init
, update = update
, subscriptions = always Sub.none
}
## Instruction:
Add counter example in Elm
## Code After:
module Main exposing (Model, Msg(..), init, main, update, view)
import Browser
import Html exposing (Html, button, div, h1, img, text)
import Html.Attributes exposing (src)
import Html.Events exposing (onClick)
---- MODEL ----
type alias Model =
Int
init : ( Model, Cmd Msg )
init =
( 0, Cmd.none )
---- UPDATE ----
type Msg
= Increment
| Decrement
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
Increment ->
( model + 1, Cmd.none )
Decrement ->
( model - 1, Cmd.none )
---- VIEW ----
view : Model -> Browser.Document Msg
view model =
{ title = "Trackflix"
, body =
[ div []
[ img [ src "/logo.svg" ] []
, h1 [] [ text "Your Elm App is working!" ]
]
, div []
[ button [ onClick Decrement ] [ text "-" ]
, div [] [ text (String.fromInt model) ]
, button [ onClick Increment ] [ text "+" ]
]
]
}
---- PROGRAM ----
main : Program () Model Msg
main =
Browser.document
{ view = view
, init = \_ -> init
, update = update
, subscriptions = always Sub.none
}
| - module Main exposing (..)
+ module Main exposing (Model, Msg(..), init, main, update, view)
import Browser
- import Html exposing (Html, text, div, h1, img)
? --
+ import Html exposing (Html, button, div, h1, img, text)
? ++ ++ ++++++
import Html.Attributes exposing (src)
+ import Html.Events exposing (onClick)
+
---- MODEL ----
type alias Model =
- {}
+ Int
init : ( Model, Cmd Msg )
init =
- ( {}, Cmd.none )
? ^^
+ ( 0, Cmd.none )
? ^
---- UPDATE ----
type Msg
- = NoOp
+ = Increment
+ | Decrement
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
+ case msg of
+ Increment ->
- ( model, Cmd.none )
+ ( model + 1, Cmd.none )
? ++++++++ ++++
+
+ Decrement ->
+ ( model - 1, Cmd.none )
---- VIEW ----
- view : Model -> Html Msg
+ view : Model -> Browser.Document Msg
view model =
+ { title = "Trackflix"
+ , body =
- div []
+ [ div []
? ++++++
- [ img [ src "/logo.svg" ] []
+ [ img [ src "/logo.svg" ] []
? ++++
- , h1 [] [ text "Your Elm App is working!" ]
+ , h1 [] [ text "Your Elm App is working!" ]
? ++++
+ ]
+ , div []
+ [ button [ onClick Decrement ] [ text "-" ]
+ , div [] [ text (String.fromInt model) ]
+ , button [ onClick Increment ] [ text "+" ]
+ ]
]
+ }
---- PROGRAM ----
main : Program () Model Msg
main =
- Browser.element
? ^^^
+ Browser.document
? ^^^^
{ view = view
, init = \_ -> init
, update = update
, subscriptions = always Sub.none
} | 39 | 0.696429 | 28 | 11 |
75b32696a778300b94cf33c4622f3e67c92f9531 | src/components/widget/Widget.js | src/components/widget/Widget.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
class Widget extends PureComponent {
render() {
const { children, ...others } = this.props;
return (
<Box className={theme['widget']} {...others}>
{children}
</Box>
);
}
}
Widget.propTypes = {
/** The content to display inside the widget. */
children: PropTypes.node,
};
Widget.WidgetBody = WidgetBody;
Widget.WidgetFooter = WidgetFooter;
Widget.WidgetHeader = WidgetHeader;
export default Widget;
| import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
const SIZES = {
small: 3,
medium: 4,
large: 5,
};
class Widget extends PureComponent {
render() {
const { children, size, ...others } = this.props;
return (
<Box className={theme['widget']} {...others}>
{React.Children.map(children, child => {
return React.cloneElement(child, {
padding: SIZES[size],
...child.props,
});
})}
</Box>
);
}
}
Widget.propTypes = {
/** The content to display inside the widget. */
children: PropTypes.node,
size: PropTypes.oneOf(Object.keys(SIZES)),
};
Widget.defaultProps = {
size: 'medium',
};
Widget.WidgetBody = WidgetBody;
Widget.WidgetFooter = WidgetFooter;
Widget.WidgetHeader = WidgetHeader;
export default Widget;
| Implement size prop and pass down to children | Implement size prop and pass down to children
| JavaScript | mit | teamleadercrm/teamleader-ui | javascript | ## Code Before:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
class Widget extends PureComponent {
render() {
const { children, ...others } = this.props;
return (
<Box className={theme['widget']} {...others}>
{children}
</Box>
);
}
}
Widget.propTypes = {
/** The content to display inside the widget. */
children: PropTypes.node,
};
Widget.WidgetBody = WidgetBody;
Widget.WidgetFooter = WidgetFooter;
Widget.WidgetHeader = WidgetHeader;
export default Widget;
## Instruction:
Implement size prop and pass down to children
## Code After:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
const SIZES = {
small: 3,
medium: 4,
large: 5,
};
class Widget extends PureComponent {
render() {
const { children, size, ...others } = this.props;
return (
<Box className={theme['widget']} {...others}>
{React.Children.map(children, child => {
return React.cloneElement(child, {
padding: SIZES[size],
...child.props,
});
})}
</Box>
);
}
}
Widget.propTypes = {
/** The content to display inside the widget. */
children: PropTypes.node,
size: PropTypes.oneOf(Object.keys(SIZES)),
};
Widget.defaultProps = {
size: 'medium',
};
Widget.WidgetBody = WidgetBody;
Widget.WidgetFooter = WidgetFooter;
Widget.WidgetHeader = WidgetHeader;
export default Widget;
| import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
+ const SIZES = {
+ small: 3,
+ medium: 4,
+ large: 5,
+ };
+
class Widget extends PureComponent {
render() {
- const { children, ...others } = this.props;
+ const { children, size, ...others } = this.props;
? ++++++
return (
<Box className={theme['widget']} {...others}>
- {children}
+ {React.Children.map(children, child => {
+ return React.cloneElement(child, {
+ padding: SIZES[size],
+ ...child.props,
+ });
+ })}
</Box>
);
}
}
Widget.propTypes = {
/** The content to display inside the widget. */
children: PropTypes.node,
+ size: PropTypes.oneOf(Object.keys(SIZES)),
+ };
+
+ Widget.defaultProps = {
+ size: 'medium',
};
Widget.WidgetBody = WidgetBody;
Widget.WidgetFooter = WidgetFooter;
Widget.WidgetHeader = WidgetHeader;
export default Widget; | 20 | 0.666667 | 18 | 2 |
a41c009c5ff7e52416861cf87a908186ee93d2b4 | Casks/blender.rb | Casks/blender.rb | cask :v1 => 'blender' do
version '2.76'
sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
app 'BlenderPlayer.app'
end
| cask :v1 => 'blender' do
version '2.76a'
sha256 '37b583d19eb16123065b62a7c05c574d9ebee2ff7497c1180466447ce6dab383'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
app 'BlenderPlayer.app'
end
| Upgrade Blender to 2.76a bugfix release | Upgrade Blender to 2.76a bugfix release
| Ruby | bsd-2-clause | xight/homebrew-cask,sgnh/homebrew-cask,cprecioso/homebrew-cask,napaxton/homebrew-cask,nrlquaker/homebrew-cask,mjdescy/homebrew-cask,lifepillar/homebrew-cask,Keloran/homebrew-cask,mchlrmrz/homebrew-cask,chuanxd/homebrew-cask,vin047/homebrew-cask,Saklad5/homebrew-cask,antogg/homebrew-cask,asins/homebrew-cask,greg5green/homebrew-cask,tjnycum/homebrew-cask,ianyh/homebrew-cask,winkelsdorf/homebrew-cask,chuanxd/homebrew-cask,stigkj/homebrew-caskroom-cask,tjt263/homebrew-cask,dictcp/homebrew-cask,elyscape/homebrew-cask,deiga/homebrew-cask,moimikey/homebrew-cask,asbachb/homebrew-cask,moogar0880/homebrew-cask,tmoreira2020/homebrew,haha1903/homebrew-cask,fharbe/homebrew-cask,Amorymeltzer/homebrew-cask,winkelsdorf/homebrew-cask,diguage/homebrew-cask,stonehippo/homebrew-cask,theoriginalgri/homebrew-cask,maxnordlund/homebrew-cask,miguelfrde/homebrew-cask,adrianchia/homebrew-cask,seanorama/homebrew-cask,markthetech/homebrew-cask,Ephemera/homebrew-cask,daften/homebrew-cask,seanzxx/homebrew-cask,vitorgalvao/homebrew-cask,andrewdisley/homebrew-cask,sanyer/homebrew-cask,Fedalto/homebrew-cask,mlocher/homebrew-cask,rajiv/homebrew-cask,crzrcn/homebrew-cask,jangalinski/homebrew-cask,malford/homebrew-cask,kronicd/homebrew-cask,singingwolfboy/homebrew-cask,yutarody/homebrew-cask,scribblemaniac/homebrew-cask,diogodamiani/homebrew-cask,joschi/homebrew-cask,tsparber/homebrew-cask,sohtsuka/homebrew-cask,ptb/homebrew-cask,jonathanwiesel/homebrew-cask,Amorymeltzer/homebrew-cask,jellyfishcoder/homebrew-cask,guerrero/homebrew-cask,jpmat296/homebrew-cask,alebcay/homebrew-cask,kesara/homebrew-cask,mathbunnyru/homebrew-cask,squid314/homebrew-cask,dcondrey/homebrew-cask,jawshooah/homebrew-cask,albertico/homebrew-cask,sgnh/homebrew-cask,pacav69/homebrew-cask,xtian/homebrew-cask,psibre/homebrew-cask,ksylvan/homebrew-cask,JosephViolago/homebrew-cask,Ngrd/homebrew-cask,mauricerkelly/homebrew-cask,MichaelPei/homebrew-cask,shonjir/homebrew-cask,stonehippo/homebrew-cask,riyad/homebrew-cask,cliffcotino/homebrew-cask,dvdoliveira/homebrew-cask,inz/homebrew-cask,lumaxis/homebrew-cask,ericbn/homebrew-cask,mingzhi22/homebrew-cask,dustinblackman/homebrew-cask,joshka/homebrew-cask,timsutton/homebrew-cask,otaran/homebrew-cask,moogar0880/homebrew-cask,yuhki50/homebrew-cask,jgarber623/homebrew-cask,ebraminio/homebrew-cask,guerrero/homebrew-cask,RJHsiao/homebrew-cask,wKovacs64/homebrew-cask,a1russell/homebrew-cask,ddm/homebrew-cask,jeroenseegers/homebrew-cask,fanquake/homebrew-cask,klane/homebrew-cask,thehunmonkgroup/homebrew-cask,kongslund/homebrew-cask,blogabe/homebrew-cask,markhuber/homebrew-cask,jalaziz/homebrew-cask,nathansgreen/homebrew-cask,arronmabrey/homebrew-cask,imgarylai/homebrew-cask,colindean/homebrew-cask,Ketouem/homebrew-cask,wmorin/homebrew-cask,yumitsu/homebrew-cask,xyb/homebrew-cask,brianshumate/homebrew-cask,ptb/homebrew-cask,patresi/homebrew-cask,devmynd/homebrew-cask,tjt263/homebrew-cask,dwihn0r/homebrew-cask,vigosan/homebrew-cask,jalaziz/homebrew-cask,samnung/homebrew-cask,gyndav/homebrew-cask,MircoT/homebrew-cask,boecko/homebrew-cask,mchlrmrz/homebrew-cask,stephenwade/homebrew-cask,My2ndAngelic/homebrew-cask,feigaochn/homebrew-cask,Ibuprofen/homebrew-cask,scottsuch/homebrew-cask,wastrachan/homebrew-cask,cprecioso/homebrew-cask,cfillion/homebrew-cask,stephenwade/homebrew-cask,AnastasiaSulyagina/homebrew-cask,alebcay/homebrew-cask,JacopKane/homebrew-cask,lucasmezencio/homebrew-cask,6uclz1/homebrew-cask,tjnycum/homebrew-cask,decrement/homebrew-cask,Cottser/homebrew-cask,casidiablo/homebrew-cask,MichaelPei/homebrew-cask,kiliankoe/homebrew-cask,gmkey/homebrew-cask,corbt/homebrew-cask,lifepillar/homebrew-cask,larseggert/homebrew-cask,jppelteret/homebrew-cask,skatsuta/homebrew-cask,rogeriopradoj/homebrew-cask,jacobbednarz/homebrew-cask,mazehall/homebrew-cask,kteru/homebrew-cask,n0ts/homebrew-cask,dictcp/homebrew-cask,koenrh/homebrew-cask,BenjaminHCCarr/homebrew-cask,Ephemera/homebrew-cask,tolbkni/homebrew-cask,bdhess/homebrew-cask,sebcode/homebrew-cask,ianyh/homebrew-cask,optikfluffel/homebrew-cask,miccal/homebrew-cask,hanxue/caskroom,Saklad5/homebrew-cask,rajiv/homebrew-cask,faun/homebrew-cask,nshemonsky/homebrew-cask,codeurge/homebrew-cask,fanquake/homebrew-cask,lukasbestle/homebrew-cask,johndbritton/homebrew-cask,BenjaminHCCarr/homebrew-cask,onlynone/homebrew-cask,lantrix/homebrew-cask,timsutton/homebrew-cask,nrlquaker/homebrew-cask,exherb/homebrew-cask,kpearson/homebrew-cask,renaudguerin/homebrew-cask,blogabe/homebrew-cask,wickedsp1d3r/homebrew-cask,vitorgalvao/homebrew-cask,hanxue/caskroom,hovancik/homebrew-cask,esebastian/homebrew-cask,malob/homebrew-cask,mikem/homebrew-cask,mattrobenolt/homebrew-cask,artdevjs/homebrew-cask,tedbundyjr/homebrew-cask,jawshooah/homebrew-cask,usami-k/homebrew-cask,mattrobenolt/homebrew-cask,xakraz/homebrew-cask,malford/homebrew-cask,timsutton/homebrew-cask,jeroenseegers/homebrew-cask,sanyer/homebrew-cask,scribblemaniac/homebrew-cask,joschi/homebrew-cask,sscotth/homebrew-cask,mhubig/homebrew-cask,winkelsdorf/homebrew-cask,psibre/homebrew-cask,miku/homebrew-cask,flaviocamilo/homebrew-cask,jasmas/homebrew-cask,joshka/homebrew-cask,gerrypower/homebrew-cask,jgarber623/homebrew-cask,pkq/homebrew-cask,kingthorin/homebrew-cask,forevergenin/homebrew-cask,larseggert/homebrew-cask,SentinelWarren/homebrew-cask,theoriginalgri/homebrew-cask,Ibuprofen/homebrew-cask,buo/homebrew-cask,claui/homebrew-cask,deanmorin/homebrew-cask,antogg/homebrew-cask,chadcatlett/caskroom-homebrew-cask,lukasbestle/homebrew-cask,mahori/homebrew-cask,aguynamedryan/homebrew-cask,gerrypower/homebrew-cask,fharbe/homebrew-cask,chrisfinazzo/homebrew-cask,toonetown/homebrew-cask,bric3/homebrew-cask,wickles/homebrew-cask,nathancahill/homebrew-cask,dcondrey/homebrew-cask,blainesch/homebrew-cask,andrewdisley/homebrew-cask,bcomnes/homebrew-cask,hellosky806/homebrew-cask,colindunn/homebrew-cask,ebraminio/homebrew-cask,n8henrie/homebrew-cask,tan9/homebrew-cask,tan9/homebrew-cask,jedahan/homebrew-cask,phpwutz/homebrew-cask,robertgzr/homebrew-cask,markthetech/homebrew-cask,josa42/homebrew-cask,kingthorin/homebrew-cask,jacobbednarz/homebrew-cask,victorpopkov/homebrew-cask,xtian/homebrew-cask,jaredsampson/homebrew-cask,elyscape/homebrew-cask,greg5green/homebrew-cask,kteru/homebrew-cask,leipert/homebrew-cask,feigaochn/homebrew-cask,hakamadare/homebrew-cask,brianshumate/homebrew-cask,leipert/homebrew-cask,reitermarkus/homebrew-cask,m3nu/homebrew-cask,blainesch/homebrew-cask,kronicd/homebrew-cask,SentinelWarren/homebrew-cask,jedahan/homebrew-cask,MerelyAPseudonym/homebrew-cask,helloIAmPau/homebrew-cask,deanmorin/homebrew-cask,mahori/homebrew-cask,lucasmezencio/homebrew-cask,kkdd/homebrew-cask,uetchy/homebrew-cask,mjgardner/homebrew-cask,miccal/homebrew-cask,claui/homebrew-cask,colindean/homebrew-cask,hyuna917/homebrew-cask,codeurge/homebrew-cask,ninjahoahong/homebrew-cask,dustinblackman/homebrew-cask,andyli/homebrew-cask,dwihn0r/homebrew-cask,reelsense/homebrew-cask,yurikoles/homebrew-cask,cobyism/homebrew-cask,bric3/homebrew-cask,n8henrie/homebrew-cask,colindunn/homebrew-cask,xakraz/homebrew-cask,caskroom/homebrew-cask,Labutin/homebrew-cask,KosherBacon/homebrew-cask,dvdoliveira/homebrew-cask,patresi/homebrew-cask,napaxton/homebrew-cask,Fedalto/homebrew-cask,howie/homebrew-cask,franklouwers/homebrew-cask,jbeagley52/homebrew-cask,sscotth/homebrew-cask,tarwich/homebrew-cask,afh/homebrew-cask,lantrix/homebrew-cask,moimikey/homebrew-cask,stevehedrick/homebrew-cask,shoichiaizawa/homebrew-cask,deiga/homebrew-cask,janlugt/homebrew-cask,mrmachine/homebrew-cask,Amorymeltzer/homebrew-cask,artdevjs/homebrew-cask,maxnordlund/homebrew-cask,adrianchia/homebrew-cask,jeroenj/homebrew-cask,samshadwell/homebrew-cask,thii/homebrew-cask,wastrachan/homebrew-cask,amatos/homebrew-cask,ericbn/homebrew-cask,lumaxis/homebrew-cask,renaudguerin/homebrew-cask,gabrielizaias/homebrew-cask,decrement/homebrew-cask,y00rb/homebrew-cask,yuhki50/homebrew-cask,paour/homebrew-cask,hovancik/homebrew-cask,cobyism/homebrew-cask,Bombenleger/homebrew-cask,scottsuch/homebrew-cask,cobyism/homebrew-cask,mingzhi22/homebrew-cask,dwkns/homebrew-cask,thehunmonkgroup/homebrew-cask,retrography/homebrew-cask,johnjelinek/homebrew-cask,miku/homebrew-cask,buo/homebrew-cask,shonjir/homebrew-cask,pacav69/homebrew-cask,cfillion/homebrew-cask,bcomnes/homebrew-cask,samdoran/homebrew-cask,Keloran/homebrew-cask,Cottser/homebrew-cask,doits/homebrew-cask,AnastasiaSulyagina/homebrew-cask,6uclz1/homebrew-cask,nightscape/homebrew-cask,coeligena/homebrew-customized,esebastian/homebrew-cask,yutarody/homebrew-cask,scottsuch/homebrew-cask,ywfwj2008/homebrew-cask,jaredsampson/homebrew-cask,miccal/homebrew-cask,Dremora/homebrew-cask,MoOx/homebrew-cask,kTitan/homebrew-cask,MerelyAPseudonym/homebrew-cask,haha1903/homebrew-cask,doits/homebrew-cask,josa42/homebrew-cask,paour/homebrew-cask,klane/homebrew-cask,yumitsu/homebrew-cask,retrography/homebrew-cask,inz/homebrew-cask,paour/homebrew-cask,singingwolfboy/homebrew-cask,m3nu/homebrew-cask,claui/homebrew-cask,kingthorin/homebrew-cask,13k/homebrew-cask,opsdev-ws/homebrew-cask,seanzxx/homebrew-cask,lukeadams/homebrew-cask,vigosan/homebrew-cask,kpearson/homebrew-cask,My2ndAngelic/homebrew-cask,sanchezm/homebrew-cask,gabrielizaias/homebrew-cask,santoshsahoo/homebrew-cask,inta/homebrew-cask,asins/homebrew-cask,giannitm/homebrew-cask,Ngrd/homebrew-cask,tyage/homebrew-cask,onlynone/homebrew-cask,wmorin/homebrew-cask,ksato9700/homebrew-cask,rogeriopradoj/homebrew-cask,slack4u/homebrew-cask,cliffcotino/homebrew-cask,xcezx/homebrew-cask,blogabe/homebrew-cask,mathbunnyru/homebrew-cask,puffdad/homebrew-cask,miguelfrde/homebrew-cask,riyad/homebrew-cask,okket/homebrew-cask,josa42/homebrew-cask,reitermarkus/homebrew-cask,franklouwers/homebrew-cask,farmerchris/homebrew-cask,kassi/homebrew-cask,danielbayley/homebrew-cask,elnappo/homebrew-cask,jeroenj/homebrew-cask,corbt/homebrew-cask,a1russell/homebrew-cask,xcezx/homebrew-cask,gurghet/homebrew-cask,nrlquaker/homebrew-cask,xyb/homebrew-cask,Labutin/homebrew-cask,sanchezm/homebrew-cask,schneidmaster/homebrew-cask,uetchy/homebrew-cask,danielbayley/homebrew-cask,caskroom/homebrew-cask,julionc/homebrew-cask,perfide/homebrew-cask,puffdad/homebrew-cask,robertgzr/homebrew-cask,ninjahoahong/homebrew-cask,jmeridth/homebrew-cask,axodys/homebrew-cask,shorshe/homebrew-cask,stephenwade/homebrew-cask,hristozov/homebrew-cask,gilesdring/homebrew-cask,hristozov/homebrew-cask,nightscape/homebrew-cask,CameronGarrett/homebrew-cask,schneidmaster/homebrew-cask,aguynamedryan/homebrew-cask,amatos/homebrew-cask,goxberry/homebrew-cask,zerrot/homebrew-cask,Ephemera/homebrew-cask,anbotero/homebrew-cask,0rax/homebrew-cask,coeligena/homebrew-customized,mishari/homebrew-cask,retbrown/homebrew-cask,jbeagley52/homebrew-cask,Bombenleger/homebrew-cask,rickychilcott/homebrew-cask,tangestani/homebrew-cask,imgarylai/homebrew-cask,nathanielvarona/homebrew-cask,uetchy/homebrew-cask,hellosky806/homebrew-cask,reelsense/homebrew-cask,sosedoff/homebrew-cask,ericbn/homebrew-cask,FredLackeyOfficial/homebrew-cask,reitermarkus/homebrew-cask,nathancahill/homebrew-cask,rickychilcott/homebrew-cask,cedwardsmedia/homebrew-cask,bosr/homebrew-cask,antogg/homebrew-cask,jellyfishcoder/homebrew-cask,pkq/homebrew-cask,chadcatlett/caskroom-homebrew-cask,kongslund/homebrew-cask,jeanregisser/homebrew-cask,tangestani/homebrew-cask,MoOx/homebrew-cask,axodys/homebrew-cask,boecko/homebrew-cask,lukeadams/homebrew-cask,gurghet/homebrew-cask,ddm/homebrew-cask,m3nu/homebrew-cask,jonathanwiesel/homebrew-cask,gibsjose/homebrew-cask,morganestes/homebrew-cask,kesara/homebrew-cask,JosephViolago/homebrew-cask,williamboman/homebrew-cask,bosr/homebrew-cask,opsdev-ws/homebrew-cask,BenjaminHCCarr/homebrew-cask,optikfluffel/homebrew-cask,stigkj/homebrew-caskroom-cask,mchlrmrz/homebrew-cask,sohtsuka/homebrew-cask,neverfox/homebrew-cask,n0ts/homebrew-cask,santoshsahoo/homebrew-cask,deiga/homebrew-cask,imgarylai/homebrew-cask,lcasey001/homebrew-cask,albertico/homebrew-cask,okket/homebrew-cask,vin047/homebrew-cask,casidiablo/homebrew-cask,jasmas/homebrew-cask,xyb/homebrew-cask,retbrown/homebrew-cask,joshka/homebrew-cask,athrunsun/homebrew-cask,wickedsp1d3r/homebrew-cask,joschi/homebrew-cask,ksylvan/homebrew-cask,hakamadare/homebrew-cask,mgryszko/homebrew-cask,thomanq/homebrew-cask,diogodamiani/homebrew-cask,wmorin/homebrew-cask,helloIAmPau/homebrew-cask,hanxue/caskroom,williamboman/homebrew-cask,FranklinChen/homebrew-cask,mathbunnyru/homebrew-cask,Ketouem/homebrew-cask,jgarber623/homebrew-cask,perfide/homebrew-cask,JosephViolago/homebrew-cask,cblecker/homebrew-cask,Dremora/homebrew-cask,tmoreira2020/homebrew,KosherBacon/homebrew-cask,sanyer/homebrew-cask,CameronGarrett/homebrew-cask,a1russell/homebrew-cask,ksato9700/homebrew-cask,jalaziz/homebrew-cask,faun/homebrew-cask,gyndav/homebrew-cask,howie/homebrew-cask,shorshe/homebrew-cask,janlugt/homebrew-cask,Gasol/homebrew-cask,xight/homebrew-cask,sjackman/homebrew-cask,linc01n/homebrew-cask,tyage/homebrew-cask,kTitan/homebrew-cask,giannitm/homebrew-cask,FredLackeyOfficial/homebrew-cask,yutarody/homebrew-cask,zerrot/homebrew-cask,andyli/homebrew-cask,chrisfinazzo/homebrew-cask,JacopKane/homebrew-cask,esebastian/homebrew-cask,nathanielvarona/homebrew-cask,malob/homebrew-cask,JikkuJose/homebrew-cask,neverfox/homebrew-cask,bric3/homebrew-cask,gyndav/homebrew-cask,mikem/homebrew-cask,nathanielvarona/homebrew-cask,tjnycum/homebrew-cask,lcasey001/homebrew-cask,afh/homebrew-cask,kiliankoe/homebrew-cask,jeanregisser/homebrew-cask,neverfox/homebrew-cask,pkq/homebrew-cask,daften/homebrew-cask,0xadada/homebrew-cask,markhuber/homebrew-cask,alexg0/homebrew-cask,bdhess/homebrew-cask,mishari/homebrew-cask,inta/homebrew-cask,mahori/homebrew-cask,jmeridth/homebrew-cask,forevergenin/homebrew-cask,dictcp/homebrew-cask,mjgardner/homebrew-cask,troyxmccall/homebrew-cask,rogeriopradoj/homebrew-cask,JikkuJose/homebrew-cask,renard/homebrew-cask,goxberry/homebrew-cask,usami-k/homebrew-cask,zmwangx/homebrew-cask,tarwich/homebrew-cask,samnung/homebrew-cask,linc01n/homebrew-cask,zmwangx/homebrew-cask,tedbundyjr/homebrew-cask,arronmabrey/homebrew-cask,danielbayley/homebrew-cask,devmynd/homebrew-cask,mwean/homebrew-cask,victorpopkov/homebrew-cask,sjackman/homebrew-cask,julionc/homebrew-cask,johnjelinek/homebrew-cask,koenrh/homebrew-cask,mhubig/homebrew-cask,alexg0/homebrew-cask,stonehippo/homebrew-cask,athrunsun/homebrew-cask,yurikoles/homebrew-cask,tsparber/homebrew-cask,slack4u/homebrew-cask,stevehedrick/homebrew-cask,anbotero/homebrew-cask,morganestes/homebrew-cask,cedwardsmedia/homebrew-cask,shoichiaizawa/homebrew-cask,troyxmccall/homebrew-cask,tedski/homebrew-cask,mauricerkelly/homebrew-cask,skatsuta/homebrew-cask,jiashuw/homebrew-cask,alebcay/homebrew-cask,gmkey/homebrew-cask,sscotth/homebrew-cask,sosedoff/homebrew-cask,nathansgreen/homebrew-cask,syscrusher/homebrew-cask,malob/homebrew-cask,kamilboratynski/homebrew-cask,optikfluffel/homebrew-cask,adrianchia/homebrew-cask,diguage/homebrew-cask,thii/homebrew-cask,tedski/homebrew-cask,jconley/homebrew-cask,mgryszko/homebrew-cask,rajiv/homebrew-cask,MircoT/homebrew-cask,scribblemaniac/homebrew-cask,mjdescy/homebrew-cask,chrisfinazzo/homebrew-cask,phpwutz/homebrew-cask,squid314/homebrew-cask,kesara/homebrew-cask,kassi/homebrew-cask,thomanq/homebrew-cask,mwean/homebrew-cask,jiashuw/homebrew-cask,0rax/homebrew-cask,shonjir/homebrew-cask,jpmat296/homebrew-cask,wickles/homebrew-cask,elnappo/homebrew-cask,jangalinski/homebrew-cask,michelegera/homebrew-cask,FinalDes/homebrew-cask,julionc/homebrew-cask,13k/homebrew-cask,kamilboratynski/homebrew-cask,andrewdisley/homebrew-cask,nshemonsky/homebrew-cask,0xadada/homebrew-cask,samdoran/homebrew-cask,hyuna917/homebrew-cask,kkdd/homebrew-cask,mrmachine/homebrew-cask,farmerchris/homebrew-cask,muan/homebrew-cask,FinalDes/homebrew-cask,tolbkni/homebrew-cask,toonetown/homebrew-cask,renard/homebrew-cask,samshadwell/homebrew-cask,coeligena/homebrew-customized,gilesdring/homebrew-cask,syscrusher/homebrew-cask,mazehall/homebrew-cask,otaran/homebrew-cask,shoichiaizawa/homebrew-cask,johndbritton/homebrew-cask,cblecker/homebrew-cask,gibsjose/homebrew-cask,RJHsiao/homebrew-cask,alexg0/homebrew-cask,mattrobenolt/homebrew-cask,cblecker/homebrew-cask,crzrcn/homebrew-cask,exherb/homebrew-cask,muan/homebrew-cask,seanorama/homebrew-cask,sebcode/homebrew-cask,ywfwj2008/homebrew-cask,singingwolfboy/homebrew-cask,y00rb/homebrew-cask,xight/homebrew-cask,flaviocamilo/homebrew-cask,JacopKane/homebrew-cask,jppelteret/homebrew-cask,moimikey/homebrew-cask,jconley/homebrew-cask,yurikoles/homebrew-cask,Gasol/homebrew-cask,mjgardner/homebrew-cask,mlocher/homebrew-cask,michelegera/homebrew-cask,wKovacs64/homebrew-cask,tangestani/homebrew-cask,dwkns/homebrew-cask,asbachb/homebrew-cask,FranklinChen/homebrew-cask | ruby | ## Code Before:
cask :v1 => 'blender' do
version '2.76'
sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
app 'BlenderPlayer.app'
end
## Instruction:
Upgrade Blender to 2.76a bugfix release
## Code After:
cask :v1 => 'blender' do
version '2.76a'
sha256 '37b583d19eb16123065b62a7c05c574d9ebee2ff7497c1180466447ce6dab383'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
app 'BlenderPlayer.app'
end
| cask :v1 => 'blender' do
- version '2.76'
+ version '2.76a'
? +
- sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
+ sha256 '37b583d19eb16123065b62a7c05c574d9ebee2ff7497c1180466447ce6dab383'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
app 'BlenderPlayer.app'
end | 4 | 0.333333 | 2 | 2 |
3bfdd5244238c8c4779c7e95ba685074f98a3c87 | templates/default/server.xml.erb | templates/default/server.xml.erb | <server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
host="<%= httpendpoint["host"] %>"
httpPort="<%= httpendpoint["httpport"] %>"
httpsPort="<%= httpendpoint["httpsport"] %>"
/>
<% end -%>
<% if @includes != nil && @includes.size > 0 -%>
<% @includes.each do |include| -%>
<include location="<%= include %>" />
<% end -%>
<% end -%>
</server>
| <server description="<%= @description %>">
<!-- Enable features -->
<% if @features != nil && @features.size > 0 -%>
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% end -%>
<% if @httpendpoints != nil && @httpendpoints.size > 0 -%>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] -%>"
<% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%>
<% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%>
<% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%>
/>
<% end -%>
<% end -%>
<% if @includes != nil && @includes.size > 0 -%>
<% @includes.each do |include| -%>
<include location="<%= include %>" />
<% end -%>
<% end -%>
</server>
| Update template to make elements and attributes optional. | Update template to make elements and attributes optional.
| HTML+ERB | apache-2.0 | WASdev/ci.chef.wlp,WASdev/ci.chef.wlp | html+erb | ## Code Before:
<server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
host="<%= httpendpoint["host"] %>"
httpPort="<%= httpendpoint["httpport"] %>"
httpsPort="<%= httpendpoint["httpsport"] %>"
/>
<% end -%>
<% if @includes != nil && @includes.size > 0 -%>
<% @includes.each do |include| -%>
<include location="<%= include %>" />
<% end -%>
<% end -%>
</server>
## Instruction:
Update template to make elements and attributes optional.
## Code After:
<server description="<%= @description %>">
<!-- Enable features -->
<% if @features != nil && @features.size > 0 -%>
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% end -%>
<% if @httpendpoints != nil && @httpendpoints.size > 0 -%>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] -%>"
<% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%>
<% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%>
<% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%>
/>
<% end -%>
<% end -%>
<% if @includes != nil && @includes.size > 0 -%>
<% @includes.each do |include| -%>
<include location="<%= include %>" />
<% end -%>
<% end -%>
</server>
| <server description="<%= @description %>">
<!-- Enable features -->
+ <% if @features != nil && @features.size > 0 -%>
<featureManager>
- <% @features.each do |feature| -%>
+ <% @features.each do |feature| -%>
? ++
<feature><%= feature %></feature>
+ <% end -%>
+ </featureManager>
<% end -%>
- </featureManager>
+ <% if @httpendpoints != nil && @httpendpoints.size > 0 -%>
- <% @httpendpoints.each do |httpendpoint| -%>
+ <% @httpendpoints.each do |httpendpoint| -%>
? ++
- <httpEndpoint id="<%= httpendpoint["id"] %>"
+ <httpEndpoint id="<%= httpendpoint["id"] -%>"
? + +
- host="<%= httpendpoint["host"] %>"
- httpPort="<%= httpendpoint["httpport"] %>"
- httpsPort="<%= httpendpoint["httpsport"] %>"
+ <% if httpendpoint["host"] != nil -%> host="<%= httpendpoint["host"] %>" <% end -%>
+ <% if httpendpoint["httpport"] != nil -%> httpPort="<%= httpendpoint["httpport"] %>" <% end -%>
+ <% if httpendpoint["httpsport"] != nil -%> httpsPort="<%= httpendpoint["httpsport"] %>" <% end -%>
/>
+ <% end -%>
<% end -%>
<% if @includes != nil && @includes.size > 0 -%>
<% @includes.each do |include| -%>
<include location="<%= include %>" />
<% end -%>
<% end -%>
</server> | 18 | 0.75 | 11 | 7 |
a67637c1ee3ed832294e8bacf9b83209678d1c49 | test/helper.rb | test/helper.rb | ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
module MiniTest
class Test
def setup
WebMock.reset!
WebMock.disable_net_connect!(allow_localhost: true)
ElasticRecord::Config.models.each do |model|
model.elastic_index.enable_deferring!
end
end
def teardown
ElasticRecord::Config.models.each do |model|
model.elastic_index.reset_deferring!
end
end
end
end
| ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
WebMock.disable_net_connect!(allow_localhost: true)
module MiniTest
class Test
def setup
WebMock.reset!
ElasticRecord::Config.models.each do |model|
model.elastic_index.enable_deferring!
end
end
def teardown
ElasticRecord::Config.models.each do |model|
model.elastic_index.reset_deferring!
end
end
end
end
| Move disable_net_connect outside of setup | Move disable_net_connect outside of setup
| Ruby | apache-2.0 | data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record | ruby | ## Code Before:
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
module MiniTest
class Test
def setup
WebMock.reset!
WebMock.disable_net_connect!(allow_localhost: true)
ElasticRecord::Config.models.each do |model|
model.elastic_index.enable_deferring!
end
end
def teardown
ElasticRecord::Config.models.each do |model|
model.elastic_index.reset_deferring!
end
end
end
end
## Instruction:
Move disable_net_connect outside of setup
## Code After:
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
WebMock.disable_net_connect!(allow_localhost: true)
module MiniTest
class Test
def setup
WebMock.reset!
ElasticRecord::Config.models.each do |model|
model.elastic_index.enable_deferring!
end
end
def teardown
ElasticRecord::Config.models.each do |model|
model.elastic_index.reset_deferring!
end
end
end
end
| ENV["RAILS_ENV"] = "test"
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
? -
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
+
+ WebMock.disable_net_connect!(allow_localhost: true)
module MiniTest
class Test
def setup
WebMock.reset!
- WebMock.disable_net_connect!(allow_localhost: true)
ElasticRecord::Config.models.each do |model|
model.elastic_index.enable_deferring!
end
end
def teardown
ElasticRecord::Config.models.each do |model|
model.elastic_index.reset_deferring!
end
end
end
end | 5 | 0.2 | 3 | 2 |
33d1b6678dbe9769fcbba8dc1a4a0bb73b6134f1 | bash/.bashrc.d/erlang.sh | bash/.bashrc.d/erlang.sh | export ERL_AFLAGS="-kernel shell_history enabled"
| export ERL_AFLAGS="-kernel shell_history enabled"
if [ -f $HOME/.cache/rebar3/bin ]; then
export PATH=$HOME/.cache/rebar3/bin
fi
| Add rebar3 to path when it exists | Add rebar3 to path when it exists
| Shell | mit | J3RN/dotfiles | shell | ## Code Before:
export ERL_AFLAGS="-kernel shell_history enabled"
## Instruction:
Add rebar3 to path when it exists
## Code After:
export ERL_AFLAGS="-kernel shell_history enabled"
if [ -f $HOME/.cache/rebar3/bin ]; then
export PATH=$HOME/.cache/rebar3/bin
fi
| export ERL_AFLAGS="-kernel shell_history enabled"
+
+ if [ -f $HOME/.cache/rebar3/bin ]; then
+ export PATH=$HOME/.cache/rebar3/bin
+ fi | 4 | 4 | 4 | 0 |
80448aa6664d13dd58ed42c06248ca4532431aab | dakota_utils/convert.py | dakota_utils/convert.py |
import shutil
from subprocess import check_call, CalledProcessError
from dakota_utils.read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
raise
else:
return(val)
def strip_interface_column(tab_file):
'''
Strips the 'interface' column from a Dakota 6.1 tabular output file.
'''
try:
bak_file = tab_file + '.orig'
shutil.copyfile(tab_file, bak_file)
cmd = 'cat ' + bak_file +' | colrm 9 18 > ' + tab_file
check_call(cmd, shell=True)
except (IOError, CalledProcessError):
raise
|
import shutil
from subprocess import check_call, CalledProcessError
from .read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
raise
else:
return(val)
def strip_interface_column(tab_file):
'''
Strips the 'interface' column from a Dakota 6.1 tabular output file.
'''
try:
bak_file = tab_file + '.orig'
shutil.copyfile(tab_file, bak_file)
cmd = 'cat ' + bak_file +' | colrm 9 18 > ' + tab_file
check_call(cmd, shell=True)
except (IOError, CalledProcessError):
raise
| Use a relative import to get the read module | Use a relative import to get the read module
| Python | mit | mdpiper/dakota-experiments,mdpiper/dakota-experiments,mcflugen/dakota-experiments,mdpiper/dakota-experiments,mcflugen/dakota-experiments | python | ## Code Before:
import shutil
from subprocess import check_call, CalledProcessError
from dakota_utils.read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
raise
else:
return(val)
def strip_interface_column(tab_file):
'''
Strips the 'interface' column from a Dakota 6.1 tabular output file.
'''
try:
bak_file = tab_file + '.orig'
shutil.copyfile(tab_file, bak_file)
cmd = 'cat ' + bak_file +' | colrm 9 18 > ' + tab_file
check_call(cmd, shell=True)
except (IOError, CalledProcessError):
raise
## Instruction:
Use a relative import to get the read module
## Code After:
import shutil
from subprocess import check_call, CalledProcessError
from .read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
raise
else:
return(val)
def strip_interface_column(tab_file):
'''
Strips the 'interface' column from a Dakota 6.1 tabular output file.
'''
try:
bak_file = tab_file + '.orig'
shutil.copyfile(tab_file, bak_file)
cmd = 'cat ' + bak_file +' | colrm 9 18 > ' + tab_file
check_call(cmd, shell=True)
except (IOError, CalledProcessError):
raise
|
import shutil
from subprocess import check_call, CalledProcessError
- from dakota_utils.read import get_names
? ------------
+ from .read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
raise
else:
return(val)
def strip_interface_column(tab_file):
'''
Strips the 'interface' column from a Dakota 6.1 tabular output file.
'''
try:
bak_file = tab_file + '.orig'
shutil.copyfile(tab_file, bak_file)
cmd = 'cat ' + bak_file +' | colrm 9 18 > ' + tab_file
check_call(cmd, shell=True)
except (IOError, CalledProcessError):
raise | 2 | 0.068966 | 1 | 1 |
69165e31f60a868fcac3f3b659838ee634f5d1d6 | bundles/dsls/tools.vitruv.dsls.reactions/src/tools/vitruv/dsls/reactions/ReactionsLanguageStandaloneSetup.xtend | bundles/dsls/tools.vitruv.dsls.reactions/src/tools/vitruv/dsls/reactions/ReactionsLanguageStandaloneSetup.xtend | /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
new ReactionsLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}
| /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
import org.eclipse.emf.ecore.plugin.EcorePlugin
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
// Makes ECore register our custom implementations of EPackages
EcorePlugin.ExtensionProcessor.process(null)
new ReactionsLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}
| Initialize metamodels when running Reactions language generator | Initialize metamodels when running Reactions language generator
| Xtend | epl-1.0 | vitruv-tools/Vitruv | xtend | ## Code Before:
/*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
new ReactionsLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}
## Instruction:
Initialize metamodels when running Reactions language generator
## Code After:
/*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
import org.eclipse.emf.ecore.plugin.EcorePlugin
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
// Makes ECore register our custom implementations of EPackages
EcorePlugin.ExtensionProcessor.process(null)
new ReactionsLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}
| /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
+
+ import org.eclipse.emf.ecore.plugin.EcorePlugin
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
+ // Makes ECore register our custom implementations of EPackages
+ EcorePlugin.ExtensionProcessor.process(null)
new ReactionsLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
} | 4 | 0.285714 | 4 | 0 |
48a21e76ad3a9063930872a8a13bba2c1a5bd0ad | scripts/runProduction.sh | scripts/runProduction.sh | echo "Running Production Site"
sudo chmod 755 ./
nvm use
yarn
./build.js -run --settings settings.json | echo "Running Production Site"
sudo chmod 755 ./
. ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | Make sure nvm is available to us | Make sure nvm is available to us
| Shell | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | shell | ## Code Before:
echo "Running Production Site"
sudo chmod 755 ./
nvm use
yarn
./build.js -run --settings settings.json
## Instruction:
Make sure nvm is available to us
## Code After:
echo "Running Production Site"
sudo chmod 755 ./
. ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | echo "Running Production Site"
sudo chmod 755 ./
+ . ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | 1 | 0.2 | 1 | 0 |
525cf9c7f1c4591950bae90e9a7b54723c430add | lib/vm/development/rake_tasks.rb | lib/vm/development/rake_tasks.rb | require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
| require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
STDERR.sync = true
| Make sure stderr sync is also true | Make sure stderr sync is also true | Ruby | mit | RallySoftware/vm-development | ruby | ## Code Before:
require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
## Instruction:
Make sure stderr sync is also true
## Code After:
require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
STDERR.sync = true
| require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
+ STDERR.sync = true | 1 | 0.2 | 1 | 0 |
e04123ce0b368b19015270b1fc1bd1f706c765cf | pwm/_compat.py | pwm/_compat.py | # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ord(char)
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte
| # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ord(char)
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
input = input
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte
| Fix python 3 input compatiblity | Fix python 3 input compatiblity
| Python | mit | thusoy/pwm,thusoy/pwm | python | ## Code Before:
# pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ord(char)
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte
## Instruction:
Fix python 3 input compatiblity
## Code After:
# pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ord(char)
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
input = input
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte
| # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ord(char)
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
+ input = input
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte | 1 | 0.052632 | 1 | 0 |
b9f8a83c6f9b5b97252ca99f862c8c61eb2a778b | app/views/users/_form.html.haml | app/views/users/_form.html.haml | = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :email, :class => 'email_field'
.control-group
= f.label :balance, :class => 'control-label'
.controls
.input-prepend
%span.add-on €
= f.number_field :balance, :class => 'number_field'
.form-actions
= f.submit nil, :class => 'btn btn-primary'
= link_to t('.cancel', :default => t("helpers.links.cancel")), users_path, :class => 'btn'
| = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :email, :class => 'email_field'
.control-group
= f.label :balance, :class => 'control-label'
.controls
.input-prepend
%span.add-on €
= f.number_field :balance, :class => 'number_field', :step => 'any'
.form-actions
= f.submit nil, :class => 'btn btn-primary'
= link_to t('.cancel', :default => t("helpers.links.cancel")), users_path, :class => 'btn'
| Fix step on balance field | Fix step on balance field
HTML5 compliant browsers like Chrome would not allow you to enter
decimal numbers
| Haml | mit | Piratonym/mete,YtvwlD/mete,mraerino/mete,mraerino/mete,mraerino/mete,YtvwlD/mete,chaosdorf/mete,Piratonym/mete,YtvwlD/mete,YtvwlD/mete,chaosdorf/mete,chaosdorf/mete,chaosdorf/mete | haml | ## Code Before:
= form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :email, :class => 'email_field'
.control-group
= f.label :balance, :class => 'control-label'
.controls
.input-prepend
%span.add-on €
= f.number_field :balance, :class => 'number_field'
.form-actions
= f.submit nil, :class => 'btn btn-primary'
= link_to t('.cancel', :default => t("helpers.links.cancel")), users_path, :class => 'btn'
## Instruction:
Fix step on balance field
HTML5 compliant browsers like Chrome would not allow you to enter
decimal numbers
## Code After:
= form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :email, :class => 'email_field'
.control-group
= f.label :balance, :class => 'control-label'
.controls
.input-prepend
%span.add-on €
= f.number_field :balance, :class => 'number_field', :step => 'any'
.form-actions
= f.submit nil, :class => 'btn btn-primary'
= link_to t('.cancel', :default => t("helpers.links.cancel")), users_path, :class => 'btn'
| = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :email, :class => 'email_field'
.control-group
= f.label :balance, :class => 'control-label'
.controls
.input-prepend
%span.add-on €
- = f.number_field :balance, :class => 'number_field'
+ = f.number_field :balance, :class => 'number_field', :step => 'any'
? ++++++++++++++++
.form-actions
= f.submit nil, :class => 'btn btn-primary'
= link_to t('.cancel', :default => t("helpers.links.cancel")), users_path, :class => 'btn' | 2 | 0.111111 | 1 | 1 |
a6247ccbecf4cc518132cebed87fc86777c1e0f1 | bin/paths.zsh | bin/paths.zsh | export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
fi
| export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
fi
| Add path for NPM binaries | Add path for NPM binaries
| Shell | mit | openfirmware/dotfiles,openfirmware/dotfiles,openfirmware/dotfiles | shell | ## Code Before:
export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
fi
## Instruction:
Add path for NPM binaries
## Code After:
export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
fi
| export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
- export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
+ export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
? +++++++++++++++++++++++++
fi | 2 | 0.333333 | 1 | 1 |
175dcdb44e5f5913597bd2ae9d9b9b3a20de039f | lib/hyalite/main.rb | lib/hyalite/main.rb | require 'opal'
require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
| require 'opal'
Opal.append_path File.expand_path('../../../client', __FILE__)
| Fix opal-browser is not found | Fix opal-browser is not found
| Ruby | mit | youchan/hyalite | ruby | ## Code Before:
require 'opal'
require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
## Instruction:
Fix opal-browser is not found
## Code After:
require 'opal'
Opal.append_path File.expand_path('../../../client', __FILE__)
| require 'opal'
- require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
| 1 | 0.2 | 0 | 1 |
21407f7d73d98bc9b130059510eafbce881044b1 | README.md | README.md | Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
| Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
## Setup for contactimprovla.com
* Added a CNAME file with the custom domain per [GitHub Pages custom domain docs](https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/)
* Configured an A record with the hosting provider of contactimprovla.com to per [GitHub Pages tips](https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/)
| Add note on how hosting works | Add note on how hosting works
| Markdown | mit | contactimprovla/contactimprovla.github.io,contactimprovla/contactimprovla.github.io,contactimprovla/contactimprovla.github.io | markdown | ## Code Before:
Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
## Instruction:
Add note on how hosting works
## Code After:
Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
## Setup for contactimprovla.com
* Added a CNAME file with the custom domain per [GitHub Pages custom domain docs](https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/)
* Configured an A record with the hosting provider of contactimprovla.com to per [GitHub Pages tips](https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/)
| Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
+
+ ## Setup for contactimprovla.com
+
+ * Added a CNAME file with the custom domain per [GitHub Pages custom domain docs](https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/)
+ * Configured an A record with the hosting provider of contactimprovla.com to per [GitHub Pages tips](https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/) | 5 | 0.714286 | 5 | 0 |
14567914ae7ff5ee19b7bc9c0954254ed1da924e | VagrantBox/DebianJessieBaseBox/bootstrap-vz-manifests/virtualbox-vagrant.manifest.yml | VagrantBox/DebianJessieBaseBox/bootstrap-vz-manifests/virtualbox-vagrant.manifest.yml | ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
hostname: localhost
locale: fr_FR
timezone: UTC
volume:
backing: vmdk
partitions:
type: msdos
boot:
filesystem: ext2
size: 64MiB
root:
filesystem: ext4
size: 2356MiB
swap:
size: 128MiB
packages: {}
plugins:
vagrant: {}
| ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
hostname: localhost
locale: fr_FR
timezone: UTC
volume:
backing: vmdk
partitions:
type: msdos
boot:
filesystem: ext2
size: 64MiB
root:
filesystem: ext4
size: 2356MiB
swap:
size: 128MiB
packages: {}
plugins:
vagrant: {}
minimize_size : {
zerofree: true
}
| Add zerofree to avoid having to manually trim the filesystem | Add zerofree to avoid having to manually trim the filesystem
| YAML | mit | digitalquest/moocbdvm,digitalquest/moocbdvm,digitalquest/moocbdvm,digitalquest/moocbdvm | yaml | ## Code Before:
---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
hostname: localhost
locale: fr_FR
timezone: UTC
volume:
backing: vmdk
partitions:
type: msdos
boot:
filesystem: ext2
size: 64MiB
root:
filesystem: ext4
size: 2356MiB
swap:
size: 128MiB
packages: {}
plugins:
vagrant: {}
## Instruction:
Add zerofree to avoid having to manually trim the filesystem
## Code After:
---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
hostname: localhost
locale: fr_FR
timezone: UTC
volume:
backing: vmdk
partitions:
type: msdos
boot:
filesystem: ext2
size: 64MiB
root:
filesystem: ext4
size: 2356MiB
swap:
size: 128MiB
packages: {}
plugins:
vagrant: {}
minimize_size : {
zerofree: true
}
| ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
hostname: localhost
locale: fr_FR
timezone: UTC
volume:
backing: vmdk
partitions:
type: msdos
boot:
filesystem: ext2
size: 64MiB
root:
filesystem: ext4
size: 2356MiB
swap:
size: 128MiB
packages: {}
plugins:
vagrant: {}
+ minimize_size : {
+ zerofree: true
+ } | 3 | 0.090909 | 3 | 0 |
7021607470a1bef4c002667316fe6b7d636609ab | core/app/assets/stylesheets/buttons/extension-button.scss | core/app/assets/stylesheets/buttons/extension-button.scss | %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: image-url('browser-icons/Chrome-32x32.png');
}
.install-firefox {
@extend %extension-install-button;
background-image: image-url('browser-icons/Firefox-32x32.png');
}
.install-safari {
@extend %extension-install-button;
background-image: image-url('browser-icons/Safari-32x32.png');
}
| %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Chrome-32x32.png');
}
.install-firefox {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Firefox-32x32.png');
}
.install-safari {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Safari-32x32.png');
}
| Use asset data URL instead of image url | Use asset data URL instead of image url
| SCSS | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core | scss | ## Code Before:
%extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: image-url('browser-icons/Chrome-32x32.png');
}
.install-firefox {
@extend %extension-install-button;
background-image: image-url('browser-icons/Firefox-32x32.png');
}
.install-safari {
@extend %extension-install-button;
background-image: image-url('browser-icons/Safari-32x32.png');
}
## Instruction:
Use asset data URL instead of image url
## Code After:
%extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Chrome-32x32.png');
}
.install-firefox {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Firefox-32x32.png');
}
.install-safari {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Safari-32x32.png');
}
| %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
- background-image: image-url('browser-icons/Chrome-32x32.png');
? -- ^
+ background-image: asset-data-url('browser-icons/Chrome-32x32.png');
? ^^ ++++++
}
.install-firefox {
@extend %extension-install-button;
- background-image: image-url('browser-icons/Firefox-32x32.png');
? -- ^
+ background-image: asset-data-url('browser-icons/Firefox-32x32.png');
? ^^ ++++++
}
.install-safari {
@extend %extension-install-button;
- background-image: image-url('browser-icons/Safari-32x32.png');
? -- ^
+ background-image: asset-data-url('browser-icons/Safari-32x32.png');
? ^^ ++++++
} | 6 | 0.25 | 3 | 3 |
df71b062f109c09107eacc5870acc5f638c7811c | README.markdown | README.markdown | 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/introduction).
* Read the [API documentation](http://cocoadocs.org/docsets/PromiseKit/).
* [Integrate](http://promisekit.org/getting-started) promises into your existing projects.
## How To Get Started… Quickly
### Carthage
```
github "mxcl/PromiseKit"
```
### CocoaPods
```ruby
pod "PromiseKit"
```
# Donations
PromiseKit is hundreds of hours of work almost completely by just me: [Max Howell](https://twitter.com/mxcl). I thoroughly enjoyed making PromiseKit, but nevertheless if you have found it useful then your bitcoin will give me a warm fuzzy feeling from my head right down to my toes: 1JDbV5zuym3jFw4kBCc5Z758maUD8e4dKR.
| 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/introduction).
* Read the [API documentation](http://cocoadocs.org/docsets/PromiseKit/).
* [Integrate](http://promisekit.org/getting-started) promises into your existing projects.
## How To Get Started… Quickly
### CocoaPods
```ruby
pod "PromiseKit" # Objective-C variant
pod "PromiseKit/Swift" # Swift variant
```
### Carthage
```
github "mxcl/PromiseKit" # Swift variant
```
# Donations
PromiseKit is hundreds of hours of work almost completely by just me: [Max Howell](https://twitter.com/mxcl). I thoroughly enjoyed making PromiseKit, but nevertheless if you have found it useful then your bitcoin will give me a warm fuzzy feeling from my head right down to my toes: 1JDbV5zuym3jFw4kBCc5Z758maUD8e4dKR.
| Clarify which variant you get | Clarify which variant you get | Markdown | mit | mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit | markdown | ## Code Before:

Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/introduction).
* Read the [API documentation](http://cocoadocs.org/docsets/PromiseKit/).
* [Integrate](http://promisekit.org/getting-started) promises into your existing projects.
## How To Get Started… Quickly
### Carthage
```
github "mxcl/PromiseKit"
```
### CocoaPods
```ruby
pod "PromiseKit"
```
# Donations
PromiseKit is hundreds of hours of work almost completely by just me: [Max Howell](https://twitter.com/mxcl). I thoroughly enjoyed making PromiseKit, but nevertheless if you have found it useful then your bitcoin will give me a warm fuzzy feeling from my head right down to my toes: 1JDbV5zuym3jFw4kBCc5Z758maUD8e4dKR.
## Instruction:
Clarify which variant you get
## Code After:

Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/introduction).
* Read the [API documentation](http://cocoadocs.org/docsets/PromiseKit/).
* [Integrate](http://promisekit.org/getting-started) promises into your existing projects.
## How To Get Started… Quickly
### CocoaPods
```ruby
pod "PromiseKit" # Objective-C variant
pod "PromiseKit/Swift" # Swift variant
```
### Carthage
```
github "mxcl/PromiseKit" # Swift variant
```
# Donations
PromiseKit is hundreds of hours of work almost completely by just me: [Max Howell](https://twitter.com/mxcl). I thoroughly enjoyed making PromiseKit, but nevertheless if you have found it useful then your bitcoin will give me a warm fuzzy feeling from my head right down to my toes: 1JDbV5zuym3jFw4kBCc5Z758maUD8e4dKR.
| 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/introduction).
* Read the [API documentation](http://cocoadocs.org/docsets/PromiseKit/).
* [Integrate](http://promisekit.org/getting-started) promises into your existing projects.
## How To Get Started… Quickly
+ ### CocoaPods
+ ```ruby
+ pod "PromiseKit" # Objective-C variant
+ pod "PromiseKit/Swift" # Swift variant
+ ```
+
### Carthage
```
+ github "mxcl/PromiseKit" # Swift variant
- github "mxcl/PromiseKit"
- ```
-
- ### CocoaPods
- ```ruby
- pod "PromiseKit"
```
# Donations
PromiseKit is hundreds of hours of work almost completely by just me: [Max Howell](https://twitter.com/mxcl). I thoroughly enjoyed making PromiseKit, but nevertheless if you have found it useful then your bitcoin will give me a warm fuzzy feeling from my head right down to my toes: 1JDbV5zuym3jFw4kBCc5Z758maUD8e4dKR. | 13 | 0.52 | 7 | 6 |
3881d720d7234630bba091f9ffb4efbd11ef781f | lib/git_tracker/branch.rb | lib/git_tracker/branch.rb | require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless $CHILD_STATUS.exitstatus == 0
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
end
end
| require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless exit_successful?
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
private
def self.exit_successful?
$CHILD_STATUS.exitstatus == 0
end
end
end
| Refactor to a named method, for sanity | Refactor to a named method, for sanity
| Ruby | mit | KensoDev/git_tracker,stevenharman/git_tracker,stevenharman/git_tracker,KensoDev/git_tracker | ruby | ## Code Before:
require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless $CHILD_STATUS.exitstatus == 0
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
end
end
## Instruction:
Refactor to a named method, for sanity
## Code After:
require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless exit_successful?
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
private
def self.exit_successful?
$CHILD_STATUS.exitstatus == 0
end
end
end
| require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
- abort unless $CHILD_STATUS.exitstatus == 0
+ abort unless exit_successful?
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
+
+ private
+
+ def self.exit_successful?
+ $CHILD_STATUS.exitstatus == 0
+ end
end
end | 8 | 0.470588 | 7 | 1 |
5b0bd07758f66971d55b127f41313d022774aa78 | app/views/layouts/devise.html.haml | app/views/layouts/devise.html.haml | !!! 5
%html(lang="en")
%head
%meta(charset="utf-8")
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
%title= content_for?(:title) ? yield(:title) : "Flareteam"
= csrf_meta_tags
/ Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "application", :media => "all"
%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
%link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114")
%body
= render "shared/navbar"
.container
.content
.row
.span12
= yield
%footer.footer
.container
%p.pull-right © Flareteam 2012
/
Javascripts
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "application"
| !!! 5
%html(lang='en')
%head
%meta(charset='utf-8')
%meta(name='viewport' content='width=device-width, initial-scale=1.0')
%title= content_for?(:title) ? yield(:title) : 'Flareteam'
= csrf_meta_tags
-# Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag 'http://html5shim.googlecode.com/svn/trunk/html5.js'
= stylesheet_link_tag 'application', :media => 'all'
%link(href='images/apple-touch-icon.png' rel='apple-touch-icon')
%link(href='images/apple-touch-icon-72x72.png' rel='apple-touch-icon' sizes='72x72')
%link(href='images/apple-touch-icon-114x114.png' rel='apple-touch-icon' sizes='114x114')
%body
= render 'shared/navbar'
.container
.content
.row
.span12
= yield
%footer.footer
.container
%p.pull-right © Flareteam 2012
-# Javascripts
-# ==================================================
-# Placed at the end of the document so the pages load faster
= javascript_include_tag 'application'
= render partial: 'shared/google_analytics' if Rails.env.production?
| Add GA to devise layout | Add GA to devise layout
| Haml | mit | williamv/Flareteam,williamv/Flareteam | haml | ## Code Before:
!!! 5
%html(lang="en")
%head
%meta(charset="utf-8")
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
%title= content_for?(:title) ? yield(:title) : "Flareteam"
= csrf_meta_tags
/ Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "application", :media => "all"
%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
%link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114")
%body
= render "shared/navbar"
.container
.content
.row
.span12
= yield
%footer.footer
.container
%p.pull-right © Flareteam 2012
/
Javascripts
\==================================================
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "application"
## Instruction:
Add GA to devise layout
## Code After:
!!! 5
%html(lang='en')
%head
%meta(charset='utf-8')
%meta(name='viewport' content='width=device-width, initial-scale=1.0')
%title= content_for?(:title) ? yield(:title) : 'Flareteam'
= csrf_meta_tags
-# Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag 'http://html5shim.googlecode.com/svn/trunk/html5.js'
= stylesheet_link_tag 'application', :media => 'all'
%link(href='images/apple-touch-icon.png' rel='apple-touch-icon')
%link(href='images/apple-touch-icon-72x72.png' rel='apple-touch-icon' sizes='72x72')
%link(href='images/apple-touch-icon-114x114.png' rel='apple-touch-icon' sizes='114x114')
%body
= render 'shared/navbar'
.container
.content
.row
.span12
= yield
%footer.footer
.container
%p.pull-right © Flareteam 2012
-# Javascripts
-# ==================================================
-# Placed at the end of the document so the pages load faster
= javascript_include_tag 'application'
= render partial: 'shared/google_analytics' if Rails.env.production?
| !!! 5
- %html(lang="en")
? ^ ^
+ %html(lang='en')
? ^ ^
%head
- %meta(charset="utf-8")
? ^ ^
+ %meta(charset='utf-8')
? ^ ^
- %meta(name="viewport" content="width=device-width, initial-scale=1.0")
? ^ ^ ^ ^
+ %meta(name='viewport' content='width=device-width, initial-scale=1.0')
? ^ ^ ^ ^
- %title= content_for?(:title) ? yield(:title) : "Flareteam"
? ^ ^
+ %title= content_for?(:title) ? yield(:title) : 'Flareteam'
? ^ ^
= csrf_meta_tags
- / Le HTML5 shim, for IE6-8 support of HTML elements
? ^
+ -# Le HTML5 shim, for IE6-8 support of HTML elements
? ^^
/[if lt IE 9]
- = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
? ^ ^
+ = javascript_include_tag 'http://html5shim.googlecode.com/svn/trunk/html5.js'
? ^ ^
- = stylesheet_link_tag "application", :media => "all"
? ^ ^ ^ ^
+ = stylesheet_link_tag 'application', :media => 'all'
? ^ ^ ^ ^
- %link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
? ^ ^ ^ ^
+ %link(href='images/apple-touch-icon.png' rel='apple-touch-icon')
? ^ ^ ^ ^
- %link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
? ^ ^ ^ ^ ^ ^
+ %link(href='images/apple-touch-icon-72x72.png' rel='apple-touch-icon' sizes='72x72')
? ^ ^ ^ ^ ^ ^
- %link(href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114")
? ^ ^ ^ ^ ^ ^
+ %link(href='images/apple-touch-icon-114x114.png' rel='apple-touch-icon' sizes='114x114')
? ^ ^ ^ ^ ^ ^
%body
- = render "shared/navbar"
? ^ ^
+ = render 'shared/navbar'
? ^ ^
.container
.content
.row
.span12
= yield
%footer.footer
.container
%p.pull-right © Flareteam 2012
- /
- Javascripts
? ^
+ -# Javascripts
? ^^
- \==================================================
? --
+ -# ==================================================
? ++
- / Placed at the end of the document so the pages load faster
? ^
+ -# Placed at the end of the document so the pages load faster
? ^^
- = javascript_include_tag "application"
? ^ ^
+ = javascript_include_tag 'application'
? ^ ^
+ = render partial: 'shared/google_analytics' if Rails.env.production? | 32 | 1.032258 | 16 | 16 |
fea4d8c46bdef00859831056daa17c1ee0826cb5 | src/js/app.js | src/js/app.js | /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.constant('APP_API', {
user: '/api/users'
})
.config([
'$routeProvider',
'$locationProvider',
function($routeProvider, $locationProvider){
/*
* Setting up router
*/
$routeProvider
.when('/:sequence?', {
templateUrl: 'templates/page.home.html',
controller: 'HomeCtrl'
})
.otherwise({
redirectTo: '/'
});
$locationProvider
.html5Mode(false);
}]);
| /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.config([
'$routeProvider',
'$locationProvider',
function($routeProvider, $locationProvider){
/*
* Setting up router
*/
$routeProvider
.when('/:sequence?', {
templateUrl: 'templates/page.home.html',
controller: 'HomeCtrl'
})
.otherwise({
redirectTo: '/'
});
/*
* Disable HTML5 aws it conflicts with SVG specs
*/
$locationProvider
.html5Mode(false);
}]);
| Remove API since we aren't using it | Remove API since we aren't using it | JavaScript | mit | it-s/pal-pal,it-s/pal-pal | javascript | ## Code Before:
/**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.constant('APP_API', {
user: '/api/users'
})
.config([
'$routeProvider',
'$locationProvider',
function($routeProvider, $locationProvider){
/*
* Setting up router
*/
$routeProvider
.when('/:sequence?', {
templateUrl: 'templates/page.home.html',
controller: 'HomeCtrl'
})
.otherwise({
redirectTo: '/'
});
$locationProvider
.html5Mode(false);
}]);
## Instruction:
Remove API since we aren't using it
## Code After:
/**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.config([
'$routeProvider',
'$locationProvider',
function($routeProvider, $locationProvider){
/*
* Setting up router
*/
$routeProvider
.when('/:sequence?', {
templateUrl: 'templates/page.home.html',
controller: 'HomeCtrl'
})
.otherwise({
redirectTo: '/'
});
/*
* Disable HTML5 aws it conflicts with SVG specs
*/
$locationProvider
.html5Mode(false);
}]);
| /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
- })
- .constant('APP_API', {
- user: '/api/users'
})
.config([
'$routeProvider',
'$locationProvider',
function($routeProvider, $locationProvider){
/*
* Setting up router
*/
$routeProvider
.when('/:sequence?', {
templateUrl: 'templates/page.home.html',
controller: 'HomeCtrl'
})
.otherwise({
redirectTo: '/'
});
+ /*
+ * Disable HTML5 aws it conflicts with SVG specs
+ */
$locationProvider
.html5Mode(false);
}]); | 6 | 0.153846 | 3 | 3 |
160a6eff6e8dc3b63838de6bf9c2f88105393b00 | README.md | README.md | This is a collection of runnable console applications that highlights the features of Kotlin programming language. | This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://confluence.jetbrains.net/display/Kotlin/Welcome.
| Add link to Kotlin documentation. | Add link to Kotlin documentation.
| Markdown | bsd-3-clause | dodyg/Kotlin101,mewebstudio/Kotlin101 | markdown | ## Code Before:
This is a collection of runnable console applications that highlights the features of Kotlin programming language.
## Instruction:
Add link to Kotlin documentation.
## Code After:
This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://confluence.jetbrains.net/display/Kotlin/Welcome.
| - This is a collection of runnable console applications that highlights the features of Kotlin programming language.
+ This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://confluence.jetbrains.net/display/Kotlin/Welcome.
? + +++++++++++++++++++ +++++++++++++++++++++++++++++++++++++
| 2 | 2 | 1 | 1 |
3ce2371ae7e9679a070b174bfdc6a50d8f9c0be8 | status/README.md | status/README.md | Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
### Skia Status ###
It needs the following project level metadata set:
metadata.COOKIESALT
metadata.CLIENT_ID
metadata.CLIENT_SECRET
metadata.INFLUXDB_NAME
metadata.INFLUXDB_PASSWORD
The client_id and client_secret come from here:
https://console.developers.google.com/project/31977622648/apiui/credential
Look for the Client ID that has a Redirect URI for mon.skia.org.
For 'cookiesalt' search for 'skiamonitor' in valentine.
The gmail_clientid and gmail_clientsecret come from here:
https://console.developers.google.com/project/31977622648/apiui/credential
Look for the section titled, "Client ID for native application."
| Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
| Remove out of date docs | [Status] Remove out of date docs
Change-Id: Iecf728d9133cd499f83f8a9bd4147c8537c025bc
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/291364
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
| Markdown | bsd-3-clause | google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot | markdown | ## Code Before:
Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
### Skia Status ###
It needs the following project level metadata set:
metadata.COOKIESALT
metadata.CLIENT_ID
metadata.CLIENT_SECRET
metadata.INFLUXDB_NAME
metadata.INFLUXDB_PASSWORD
The client_id and client_secret come from here:
https://console.developers.google.com/project/31977622648/apiui/credential
Look for the Client ID that has a Redirect URI for mon.skia.org.
For 'cookiesalt' search for 'skiamonitor' in valentine.
The gmail_clientid and gmail_clientsecret come from here:
https://console.developers.google.com/project/31977622648/apiui/credential
Look for the section titled, "Client ID for native application."
## Instruction:
[Status] Remove out of date docs
Change-Id: Iecf728d9133cd499f83f8a9bd4147c8537c025bc
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/291364
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
## Code After:
Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
| Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
-
- ### Skia Status ###
- It needs the following project level metadata set:
-
- metadata.COOKIESALT
- metadata.CLIENT_ID
- metadata.CLIENT_SECRET
- metadata.INFLUXDB_NAME
- metadata.INFLUXDB_PASSWORD
-
- The client_id and client_secret come from here:
-
- https://console.developers.google.com/project/31977622648/apiui/credential
-
- Look for the Client ID that has a Redirect URI for mon.skia.org.
-
- For 'cookiesalt' search for 'skiamonitor' in valentine.
-
- The gmail_clientid and gmail_clientsecret come from here:
-
- https://console.developers.google.com/project/31977622648/apiui/credential
-
- Look for the section titled, "Client ID for native application." | 23 | 0.851852 | 0 | 23 |
3b5f55d3c6555a26365a9f21bd2e154eb0aafbcf | index.php | index.php | <?php
/**
* @file index.php
* Friendica
*/
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
| <?php
/**
* @file index.php
* Friendica
*/
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
}
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
| Check if the vendor path is missing and complain about it | Check if the vendor path is missing and complain about it
| PHP | agpl-3.0 | annando/friendica,friendica/friendica,annando/friendica,tobiasd/friendica,fabrixxm/friendica,tobiasd/friendica,friendica/friendica,fabrixxm/friendica,annando/friendica,tobiasd/friendica,annando/friendica,annando/friendica,fabrixxm/friendica,friendica/friendica,tobiasd/friendica,friendica/friendica,fabrixxm/friendica,fabrixxm/friendica,friendica/friendica,tobiasd/friendica | php | ## Code Before:
<?php
/**
* @file index.php
* Friendica
*/
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
## Instruction:
Check if the vendor path is missing and complain about it
## Code After:
<?php
/**
* @file index.php
* Friendica
*/
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
}
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
| <?php
/**
* @file index.php
* Friendica
*/
+
+ if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
+ die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
+ }
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend(); | 4 | 0.307692 | 4 | 0 |
5e0ffd75d1287ea3ac93a3470b77992d5d056e09 | .travis.yml | .travis.yml | sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
on:
repo: aweber/rabbitmq-flume-plugin
jdk: oraclejdk7
tags: true
all_branches: true
| sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
on:
repo: aweber/rabbitmq-flume-plugin
jdk: oraclejdk7
tags: true
all_branches: true
| Add code coverage, only package on deploy | Add code coverage, only package on deploy
| YAML | bsd-3-clause | gmr/rabbitmq-flume-plugin,aweber/rabbitmq-flume-plugin,gmr/rabbitmq-flume-plugin,aweber/rabbitmq-flume-plugin | yaml | ## Code Before:
sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
on:
repo: aweber/rabbitmq-flume-plugin
jdk: oraclejdk7
tags: true
all_branches: true
## Instruction:
Add code coverage, only package on deploy
## Code After:
sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
on:
repo: aweber/rabbitmq-flume-plugin
jdk: oraclejdk7
tags: true
all_branches: true
| sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
+ - bash <(curl -s https://codecov.io/bash)
+ before_deploy:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
on:
repo: aweber/rabbitmq-flume-plugin
jdk: oraclejdk7
tags: true
all_branches: true | 2 | 0.095238 | 2 | 0 |
dae58cc4c282fbcd7ebe1a08361ba915939f8650 | builds/terraform/platform/iam_policy_document.tf | builds/terraform/platform/iam_policy_document.tf | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions = [
"s3:Get*",
"s3:List*",
]
resources = [
"${var.sbt_releases_bucket_arn}",
"${var.sbt_releases_bucket_arn}/*",
]
}
statement {
actions = [
"ssm:PutParameter",
]
resources = [
"arn:aws:ssm:eu-west-1:${local.account_id}:parameter/*",
]
}
}
locals {
account_id = "${data.aws_caller_identity.current.account_id}"
}
data "aws_caller_identity" "current" {}
| data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions = [
"s3:Get*",
"s3:List*",
]
resources = [
"${var.sbt_releases_bucket_arn}",
"${var.sbt_releases_bucket_arn}/*",
]
}
statement {
actions = [
"ssm:PutParameter",
]
resources = [
"arn:aws:ssm:eu-west-1:${local.account_id}:parameter/*",
]
}
statement {
actions = [
"iam:GetUser",
]
resources = [
"*",
]
}
}
locals {
account_id = "${data.aws_caller_identity.current.account_id}"
}
data "aws_caller_identity" "current" {}
| Add the IAM GetUser permission | Add the IAM GetUser permission
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | hcl | ## Code Before:
data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions = [
"s3:Get*",
"s3:List*",
]
resources = [
"${var.sbt_releases_bucket_arn}",
"${var.sbt_releases_bucket_arn}/*",
]
}
statement {
actions = [
"ssm:PutParameter",
]
resources = [
"arn:aws:ssm:eu-west-1:${local.account_id}:parameter/*",
]
}
}
locals {
account_id = "${data.aws_caller_identity.current.account_id}"
}
data "aws_caller_identity" "current" {}
## Instruction:
Add the IAM GetUser permission
## Code After:
data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions = [
"s3:Get*",
"s3:List*",
]
resources = [
"${var.sbt_releases_bucket_arn}",
"${var.sbt_releases_bucket_arn}/*",
]
}
statement {
actions = [
"ssm:PutParameter",
]
resources = [
"arn:aws:ssm:eu-west-1:${local.account_id}:parameter/*",
]
}
statement {
actions = [
"iam:GetUser",
]
resources = [
"*",
]
}
}
locals {
account_id = "${data.aws_caller_identity.current.account_id}"
}
data "aws_caller_identity" "current" {}
| data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions = [
"s3:Get*",
"s3:List*",
]
resources = [
"${var.sbt_releases_bucket_arn}",
"${var.sbt_releases_bucket_arn}/*",
]
}
statement {
actions = [
"ssm:PutParameter",
]
resources = [
"arn:aws:ssm:eu-west-1:${local.account_id}:parameter/*",
]
}
+
+ statement {
+ actions = [
+ "iam:GetUser",
+ ]
+
+ resources = [
+ "*",
+ ]
+ }
}
locals {
account_id = "${data.aws_caller_identity.current.account_id}"
}
data "aws_caller_identity" "current" {} | 10 | 0.2 | 10 | 0 |
47064f7b4d7a40fd762cf7da881e86c07072c4e0 | README.md | README.md | spreed-turnservicecli
=====================
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/spreed-turnservicecli)
spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
## License
This package uses the AGPL license, see the `LICENSE` file.
| spreed-turnservicecli
=====================
spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/spreed-turnservicecli)
## License
This package uses the AGPL license, see the `LICENSE` file.
| Move ci status images one block lower to make automatic docs parsers more useful | Move ci status images one block lower to make automatic docs parsers more useful
| Markdown | agpl-3.0 | strukturag/spreed-turnservicecli | markdown | ## Code Before:
spreed-turnservicecli
=====================
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/spreed-turnservicecli)
spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
## License
This package uses the AGPL license, see the `LICENSE` file.
## Instruction:
Move ci status images one block lower to make automatic docs parsers more useful
## Code After:
spreed-turnservicecli
=====================
spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/spreed-turnservicecli)
## License
This package uses the AGPL license, see the `LICENSE` file.
| spreed-turnservicecli
=====================
+
+ spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/spreed-turnservicecli)
- spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
-
## License
This package uses the AGPL license, see the `LICENSE` file. | 4 | 0.363636 | 2 | 2 |
20e9250e9eefb6fd4b085d5d7a4d49a907821fcb | README.md | README.md | shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component analysis-based model: it takes a dataset of instances of the shape and determines the parameters which explain the majority of variance in the dataset.
The `ShapeLearner` class manages the learning of the parameters of a particular `ShapeModeler` attribute. The parameters of user-demonstrated shapes may be determined from the model, and used to update the learned parameters of the system.
The `ShapeLearnerManager` class manages collections of multiple `ShapeLearner`s. For example, in the context of learning words, the `ShapeLearnerManager` keeps track of the current word being learnt and its associated `ShapeLearner`s, in addition to the information on each letter/word which has been previously seen. This allows for long-term system memory, even when the shapes are not always part of the active collection.
A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). To run it, execute:
```
python learning_letters.py 'case'
```
| shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component analysis-based model: it takes a dataset of instances of the shape and determines the parameters which explain the majority of variance in the dataset.
A GUI to visualise the effect of varying parameters of the shape model is provided in `scripts/shape_model_gui.py`. Sample usage:
```
python shape_model_gui.py 'd' 5
```
The `ShapeLearner` class manages the learning of the parameters of a particular `ShapeModeler` attribute. The parameters of user-demonstrated shapes may be determined from the model, and used to update the learned parameters of the system.
The `ShapeLearnerManager` class manages collections of multiple `ShapeLearner`s. For example, in the context of learning words, the `ShapeLearnerManager` keeps track of the current word being learnt and its associated `ShapeLearner`s, in addition to the information on each letter/word which has been previously seen. This allows for long-term system memory, even when the shapes are not always part of the active collection.
A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). Sample usage:
```
python learning_letters.py 'case'
```
| Update readme to include shape model gui | Update readme to include shape model gui
| Markdown | isc | chili-epfl/shape_learning,alexis-jacq/shape_learning,FerranGarcia/shape_learning | markdown | ## Code Before:
shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component analysis-based model: it takes a dataset of instances of the shape and determines the parameters which explain the majority of variance in the dataset.
The `ShapeLearner` class manages the learning of the parameters of a particular `ShapeModeler` attribute. The parameters of user-demonstrated shapes may be determined from the model, and used to update the learned parameters of the system.
The `ShapeLearnerManager` class manages collections of multiple `ShapeLearner`s. For example, in the context of learning words, the `ShapeLearnerManager` keeps track of the current word being learnt and its associated `ShapeLearner`s, in addition to the information on each letter/word which has been previously seen. This allows for long-term system memory, even when the shapes are not always part of the active collection.
A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). To run it, execute:
```
python learning_letters.py 'case'
```
## Instruction:
Update readme to include shape model gui
## Code After:
shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component analysis-based model: it takes a dataset of instances of the shape and determines the parameters which explain the majority of variance in the dataset.
A GUI to visualise the effect of varying parameters of the shape model is provided in `scripts/shape_model_gui.py`. Sample usage:
```
python shape_model_gui.py 'd' 5
```
The `ShapeLearner` class manages the learning of the parameters of a particular `ShapeModeler` attribute. The parameters of user-demonstrated shapes may be determined from the model, and used to update the learned parameters of the system.
The `ShapeLearnerManager` class manages collections of multiple `ShapeLearner`s. For example, in the context of learning words, the `ShapeLearnerManager` keeps track of the current word being learnt and its associated `ShapeLearner`s, in addition to the information on each letter/word which has been previously seen. This allows for long-term system memory, even when the shapes are not always part of the active collection.
A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). Sample usage:
```
python learning_letters.py 'case'
```
| shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component analysis-based model: it takes a dataset of instances of the shape and determines the parameters which explain the majority of variance in the dataset.
+ A GUI to visualise the effect of varying parameters of the shape model is provided in `scripts/shape_model_gui.py`. Sample usage:
+ ```
+ python shape_model_gui.py 'd' 5
+ ```
+
The `ShapeLearner` class manages the learning of the parameters of a particular `ShapeModeler` attribute. The parameters of user-demonstrated shapes may be determined from the model, and used to update the learned parameters of the system.
The `ShapeLearnerManager` class manages collections of multiple `ShapeLearner`s. For example, in the context of learning words, the `ShapeLearnerManager` keeps track of the current word being learnt and its associated `ShapeLearner`s, in addition to the information on each letter/word which has been previously seen. This allows for long-term system memory, even when the shapes are not always part of the active collection.
- A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). To run it, execute:
? ^^ - ^^^^^^^^^^^^
+ A sample application using of learning words, with letter instances from the UJI pen charaters 2 dataset, is provided in `scripts/learning_letters.py` (additional dependency of Kivy). Sample usage:
? ^^^^^^ ^^^
```
python learning_letters.py 'case'
``` | 7 | 0.411765 | 6 | 1 |
d707d4bc6dc721af4faea1ed2a6b9eb929a8a962 | ansible/oooq/roles/pre-install-setup/tasks/main.yml | ansible/oooq/roles/pre-install-setup/tasks/main.yml | ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
- name: Fetch Browbeat vars file
fetch:
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
dest=/tmp/all.yml \
flat=yes"
- name: Load Browbeat vars
include_vars: /tmp/all.yml
- name: Fetch CI vars file
fetch:
"src={{ lookup('env','HW_ENV_DIR') }}/all.yml \
dest=/tmp/install_vars.yml \
flat=yes"
- name: Load CI vars
include_vars: /tmp/install_vars.yml
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60
until: pip.rc == 0
register: pip
shell: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo python get-pip.py
become: true
- name: Install Ansible
pip: name=ansible state=present
become: true
| ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
- name: Fetch Browbeat vars file
fetch:
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
dest=/tmp/all.yml \
flat=yes"
- name: Load Browbeat vars
include_vars: /tmp/all.yml
- name: Load CI vars
include_vars: "{{ lookup('env','HW_ENV_DIR') }}/all.yml"
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60
until: pip.rc == 0
register: pip
shell: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo python get-pip.py
become: true
- name: Install Ansible
pip: name=ansible state=present
become: true
| Fix source for CI vars file | Fix source for CI vars file
The CI vars file is on the jenkins slave, not on the virthost where we
where trying to copy the data from. The code that was checked in has never
worked, what happened is that with a previous iteration of the commit we
created /tmp/install_vars.yml and since the jenkins machine never gets rebooted
it just stayed there. So in the future when we tried to fetch the file from the
wrong machine Ansible failed the fetch silently and we loaded the old file.
Change-Id: I8c20bdc8dc138a383e7a101cd465b48d44fa99a7
| YAML | apache-2.0 | jkilpatr/browbeat,jkilpatr/browbeat | yaml | ## Code Before:
---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
- name: Fetch Browbeat vars file
fetch:
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
dest=/tmp/all.yml \
flat=yes"
- name: Load Browbeat vars
include_vars: /tmp/all.yml
- name: Fetch CI vars file
fetch:
"src={{ lookup('env','HW_ENV_DIR') }}/all.yml \
dest=/tmp/install_vars.yml \
flat=yes"
- name: Load CI vars
include_vars: /tmp/install_vars.yml
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60
until: pip.rc == 0
register: pip
shell: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo python get-pip.py
become: true
- name: Install Ansible
pip: name=ansible state=present
become: true
## Instruction:
Fix source for CI vars file
The CI vars file is on the jenkins slave, not on the virthost where we
where trying to copy the data from. The code that was checked in has never
worked, what happened is that with a previous iteration of the commit we
created /tmp/install_vars.yml and since the jenkins machine never gets rebooted
it just stayed there. So in the future when we tried to fetch the file from the
wrong machine Ansible failed the fetch silently and we loaded the old file.
Change-Id: I8c20bdc8dc138a383e7a101cd465b48d44fa99a7
## Code After:
---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
- name: Fetch Browbeat vars file
fetch:
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
dest=/tmp/all.yml \
flat=yes"
- name: Load Browbeat vars
include_vars: /tmp/all.yml
- name: Load CI vars
include_vars: "{{ lookup('env','HW_ENV_DIR') }}/all.yml"
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60
until: pip.rc == 0
register: pip
shell: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo python get-pip.py
become: true
- name: Install Ansible
pip: name=ansible state=present
become: true
| ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
- name: Fetch Browbeat vars file
fetch:
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
dest=/tmp/all.yml \
flat=yes"
- name: Load Browbeat vars
include_vars: /tmp/all.yml
- - name: Fetch CI vars file
- fetch:
- "src={{ lookup('env','HW_ENV_DIR') }}/all.yml \
- dest=/tmp/install_vars.yml \
- flat=yes"
-
- name: Load CI vars
- include_vars: /tmp/install_vars.yml
+ include_vars: "{{ lookup('env','HW_ENV_DIR') }}/all.yml"
- name: Template Browbeat configuration
template:
"src={{ browbeat_config_file }} \
dest={{ ansible_env.HOME }}/browbeat/browbeat-config.yaml"
- name: Install Pip
retries: 10
delay: 60
until: pip.rc == 0
register: pip
shell: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo python get-pip.py
become: true
- name: Install Ansible
pip: name=ansible state=present
become: true | 8 | 0.173913 | 1 | 7 |
e040996646b1ef21e95dc7edd6a124aadab3e08f | zsh/tag.zsh | zsh/tag.zsh | if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="tag rg"
alias rg="tag rg"
else
alias ag=rg
fi
| if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="echo 'use s'"
alias s="tag rg"
alias rg="echo 'use s'"
else
alias ag=rg
fi
| Switch to s alias for searching | Switch to s alias for searching
I got tired of change my muscle memory as I changed tools
| Shell | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles | shell | ## Code Before:
if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="tag rg"
alias rg="tag rg"
else
alias ag=rg
fi
## Instruction:
Switch to s alias for searching
I got tired of change my muscle memory as I changed tools
## Code After:
if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="echo 'use s'"
alias s="tag rg"
alias rg="echo 'use s'"
else
alias ag=rg
fi
| if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
+ alias ag="echo 'use s'"
- alias ag="tag rg"
? ^^
+ alias s="tag rg"
? ^
- alias rg="tag rg"
+ alias rg="echo 'use s'"
else
alias ag=rg
fi | 5 | 0.714286 | 3 | 2 |
a374e8f532d094abbfe757bed0749f2016b90079 | index.html | index.html | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="stylesheet">
</head>
<body></body>
</html> | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="node_modules/knuth-shuffle/index.js"></script>
<script src="node_modules/graphlib/dist/graphlib.min.js"></script>
<script src="assets/scripts/actors/city.js" defer></script>
<script src="assets/scripts/actors/map.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="stylesheet">
</head>
<body></body>
</html> | Add necessary references in page | Add necessary references in page
| HTML | mit | makerslocal/LudumDare36,makerslocal/LudumDare36 | html | ## Code Before:
<html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="stylesheet">
</head>
<body></body>
</html>
## Instruction:
Add necessary references in page
## Code After:
<html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="node_modules/knuth-shuffle/index.js"></script>
<script src="node_modules/graphlib/dist/graphlib.min.js"></script>
<script src="assets/scripts/actors/city.js" defer></script>
<script src="assets/scripts/actors/map.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="stylesheet">
</head>
<body></body>
</html> | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
+ <script src="node_modules/knuth-shuffle/index.js"></script>
+ <script src="node_modules/graphlib/dist/graphlib.min.js"></script>
+
+ <script src="assets/scripts/actors/city.js" defer></script>
+ <script src="assets/scripts/actors/map.js" defer></script>
+
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="stylesheet">
</head>
<body></body>
</html> | 6 | 0.5 | 6 | 0 |
0bd17f9ffc647f61203f9cb28321142527ac85e2 | config/version.sh | config/version.sh |
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E
|
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git -C $srcdir describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E
| Make sure we are in the correct directory when we do "git describe". | Make sure we are in the correct directory when we do "git describe".
| Shell | bsd-3-clause | mcr/nmh,mcr/nmh | shell | ## Code Before:
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E
## Instruction:
Make sure we are in the correct directory when we do "git describe".
## Code After:
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git -C $srcdir describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E
|
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
- git=" `git describe --long --dirty`"
+ git=" `git -C $srcdir describe --long --dirty`"
? +++++++++++
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E | 2 | 0.117647 | 1 | 1 |
2872bbcf5bf31f89bf8e3a193990a3644697da95 | app/server/word-list.js | app/server/word-list.js | var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK. Should be in a database or at least read async. Redis maybe?
var file = fs.readFileSync(__dirname + '/data/wordlist.txt', { encoding: 'utf8' });
this.words = file.split('\r\n');
this.words = this.words.filter(function(word) {
return word.length <= maxLength;
});
}
WordList.prototype.getWords = function(n) {
var words = _.sample(this.words, n);
var wordList = words.map(function(word, index) {
return {
word: word,
id: index,
x: _.random(gameConstants.LEFT_WALL, gameConstants.WIDTH - gameConstants.RIGHT_WALL - word.length),
color: _.sample(this.colors, 1)[0]
};
}, this);
return wordList;
}
module.exports = WordList;
| var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK. Should be in a database or at least read async. Redis maybe?
var file = fs.readFileSync(__dirname + '/data/wordlist.txt', { encoding: 'utf8' });
this.words = file.split('\r\n');
this.words = this.words.filter(function(word) {
return word.length <= maxLength;
});
}
WordList.prototype.getWords = function(n) {
var words = _.sample(this.words, n);
var wordList = words.map(function(word, index) {
return {
word: word,
id: index,
x: _.random(gameConstants.LEFT_WALL, gameConstants.WIDTH - gameConstants.RIGHT_WALL - word.length),
color: _.sample(this.colors, 1)[0]
};
}, this);
return wordList;
}
module.exports = WordList;
| Disable dark blue from being chosen by the worldist | Disable dark blue from being chosen by the worldist
| JavaScript | mit | ekmartin/TyppoJS,ekmartin/TyppoJS | javascript | ## Code Before:
var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK. Should be in a database or at least read async. Redis maybe?
var file = fs.readFileSync(__dirname + '/data/wordlist.txt', { encoding: 'utf8' });
this.words = file.split('\r\n');
this.words = this.words.filter(function(word) {
return word.length <= maxLength;
});
}
WordList.prototype.getWords = function(n) {
var words = _.sample(this.words, n);
var wordList = words.map(function(word, index) {
return {
word: word,
id: index,
x: _.random(gameConstants.LEFT_WALL, gameConstants.WIDTH - gameConstants.RIGHT_WALL - word.length),
color: _.sample(this.colors, 1)[0]
};
}, this);
return wordList;
}
module.exports = WordList;
## Instruction:
Disable dark blue from being chosen by the worldist
## Code After:
var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK. Should be in a database or at least read async. Redis maybe?
var file = fs.readFileSync(__dirname + '/data/wordlist.txt', { encoding: 'utf8' });
this.words = file.split('\r\n');
this.words = this.words.filter(function(word) {
return word.length <= maxLength;
});
}
WordList.prototype.getWords = function(n) {
var words = _.sample(this.words, n);
var wordList = words.map(function(word, index) {
return {
word: word,
id: index,
x: _.random(gameConstants.LEFT_WALL, gameConstants.WIDTH - gameConstants.RIGHT_WALL - word.length),
color: _.sample(this.colors, 1)[0]
};
}, this);
return wordList;
}
module.exports = WordList;
| var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
- this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
? ------------
+ this.colors = ['blue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK. Should be in a database or at least read async. Redis maybe?
var file = fs.readFileSync(__dirname + '/data/wordlist.txt', { encoding: 'utf8' });
this.words = file.split('\r\n');
this.words = this.words.filter(function(word) {
return word.length <= maxLength;
});
}
WordList.prototype.getWords = function(n) {
var words = _.sample(this.words, n);
var wordList = words.map(function(word, index) {
return {
word: word,
id: index,
x: _.random(gameConstants.LEFT_WALL, gameConstants.WIDTH - gameConstants.RIGHT_WALL - word.length),
color: _.sample(this.colors, 1)[0]
};
}, this);
return wordList;
}
module.exports = WordList; | 2 | 0.060606 | 1 | 1 |
5de12ffb71186d0ec0fdba4972769dc832330cb7 | app/controllers/guest_users_controller.rb | app/controllers/guest_users_controller.rb | class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
| class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
@guest_user = GuestUser.new(guest_user_params)
if @guest_user.save
GuestsCleanupJob.set(wait: 10.seconds).perform_later(@guest_user)
redirect_to root_path
else
# flash[:notice] = @guest_user.errors.full_messages
flash[:notice] = @guest_user.errors.full_messages.to_sentence
redirect_to new_guest_users_path
end
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
| Update guest users create action | Update guest users create action | Ruby | mit | gouf/activejob_demo,gouf/activejob_demo,gouf/activejob_demo,gouf/activejob_demo | ruby | ## Code Before:
class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
## Instruction:
Update guest users create action
## Code After:
class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
@guest_user = GuestUser.new(guest_user_params)
if @guest_user.save
GuestsCleanupJob.set(wait: 10.seconds).perform_later(@guest_user)
redirect_to root_path
else
# flash[:notice] = @guest_user.errors.full_messages
flash[:notice] = @guest_user.errors.full_messages.to_sentence
redirect_to new_guest_users_path
end
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
| class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
+ @guest_user = GuestUser.new(guest_user_params)
+
+ if @guest_user.save
+ GuestsCleanupJob.set(wait: 10.seconds).perform_later(@guest_user)
+ redirect_to root_path
+ else
+ # flash[:notice] = @guest_user.errors.full_messages
+ flash[:notice] = @guest_user.errors.full_messages.to_sentence
+ redirect_to new_guest_users_path
+ end
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end | 10 | 0.526316 | 10 | 0 |
49b2be5446b1f20133bf30c4f17ba65f5eb9212e | README.md | README.md | [](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)


XOMNI API SDK for .NET
========================
XOMNI vNext API's .net SDK are located in this branch.
Thanks.
-XOMNI
| [](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)


[](https://ci.appveyor.com/project/XOMNI/xomni-sdk-dotnet/branch/dev)
XOMNI API SDK for .NET
========================
XOMNI vNext API's .net SDK are located in this branch.
Thanks.
-XOMNI
| Build status added to readme.md | Build status added to readme.md [skip ci]
| Markdown | mit | nseckinoral/xomni-sdk-dotnet | markdown | ## Code Before:
[](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)


XOMNI API SDK for .NET
========================
XOMNI vNext API's .net SDK are located in this branch.
Thanks.
-XOMNI
## Instruction:
Build status added to readme.md [skip ci]
## Code After:
[](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)


[](https://ci.appveyor.com/project/XOMNI/xomni-sdk-dotnet/branch/dev)
XOMNI API SDK for .NET
========================
XOMNI vNext API's .net SDK are located in this branch.
Thanks.
-XOMNI
| [](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)


+ [](https://ci.appveyor.com/project/XOMNI/xomni-sdk-dotnet/branch/dev)
- XOMNI API SDK for .NET
? -
+ XOMNI API SDK for .NET
========================
XOMNI vNext API's .net SDK are located in this branch.
Thanks.
-XOMNI | 3 | 0.230769 | 2 | 1 |
b98127361ed9d675d8240c2e5e28c6244bc49715 | src/word_keeper/core.clj | src/word_keeper/core.clj | (ns word-keeper.core
(:require [org.httpkit.server :refer [run-server]]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
[compojure.route :refer [files not-found]]
[clostache.parser :refer [render-resource]]
[word-keeper.backend :refer :all]
[word-keeper.frontend :refer :all]))
<<<<<<< HEAD
(def consumer-key "5KvZggyamEy8yHD0oACgAkLxH")
(def consumer-secret "3DeEHXQ6LVh7LxSdApivzAOiwBAcGdvRorheKzheCchbPPQF6h")
=======
>>>>>>> FETCH_HEAD
(defroutes routes
(GET "/" [] action-index)
(files "/public/")
(not-found "<h1>404. Not found</h1>"))
(defn -main [& args]
(run-server (site #'routes) {:port 8080}))
| (ns word-keeper.core
(:require [org.httpkit.server :refer [run-server]]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
[compojure.route :refer [files not-found]]
[clostache.parser :refer [render-resource]]
[word-keeper.backend :refer :all]
[word-keeper.frontend :refer :all]))
(def consumer-key "5KvZggyamEy8yHD0oACgAkLxH")
(def consumer-secret "3DeEHXQ6LVh7LxSdApivzAOiwBAcGdvRorheKzheCchbPPQF6h")
(defroutes routes
(GET "/" [] action-index)
(files "/public/")
(not-found "<h1>404. Not found</h1>"))
(defn -main [& args]
(run-server (site #'routes) {:port 8080}))
| Clean up after dirty merge | Clean up after dirty merge
| Clojure | epl-1.0 | clojurecup2014/word-keeper | clojure | ## Code Before:
(ns word-keeper.core
(:require [org.httpkit.server :refer [run-server]]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
[compojure.route :refer [files not-found]]
[clostache.parser :refer [render-resource]]
[word-keeper.backend :refer :all]
[word-keeper.frontend :refer :all]))
<<<<<<< HEAD
(def consumer-key "5KvZggyamEy8yHD0oACgAkLxH")
(def consumer-secret "3DeEHXQ6LVh7LxSdApivzAOiwBAcGdvRorheKzheCchbPPQF6h")
=======
>>>>>>> FETCH_HEAD
(defroutes routes
(GET "/" [] action-index)
(files "/public/")
(not-found "<h1>404. Not found</h1>"))
(defn -main [& args]
(run-server (site #'routes) {:port 8080}))
## Instruction:
Clean up after dirty merge
## Code After:
(ns word-keeper.core
(:require [org.httpkit.server :refer [run-server]]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
[compojure.route :refer [files not-found]]
[clostache.parser :refer [render-resource]]
[word-keeper.backend :refer :all]
[word-keeper.frontend :refer :all]))
(def consumer-key "5KvZggyamEy8yHD0oACgAkLxH")
(def consumer-secret "3DeEHXQ6LVh7LxSdApivzAOiwBAcGdvRorheKzheCchbPPQF6h")
(defroutes routes
(GET "/" [] action-index)
(files "/public/")
(not-found "<h1>404. Not found</h1>"))
(defn -main [& args]
(run-server (site #'routes) {:port 8080}))
| (ns word-keeper.core
(:require [org.httpkit.server :refer [run-server]]
[compojure.core :refer [defroutes GET]]
[compojure.handler :refer [site]]
[compojure.route :refer [files not-found]]
[clostache.parser :refer [render-resource]]
[word-keeper.backend :refer :all]
[word-keeper.frontend :refer :all]))
- <<<<<<< HEAD
(def consumer-key "5KvZggyamEy8yHD0oACgAkLxH")
(def consumer-secret "3DeEHXQ6LVh7LxSdApivzAOiwBAcGdvRorheKzheCchbPPQF6h")
- =======
- >>>>>>> FETCH_HEAD
(defroutes routes
(GET "/" [] action-index)
(files "/public/")
(not-found "<h1>404. Not found</h1>"))
(defn -main [& args]
(run-server (site #'routes) {:port 8080})) | 3 | 0.136364 | 0 | 3 |
e08d8a2fb15b263854c03c0bc542268e917f84e8 | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | <!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->
<!-- Uncomment the correct contribution type. !-->
My PR is a:
- [ ] 💥 Breaking change
- [ ] 🐛 Bug fix #issueNumber
- [ ] 💅 Enhancement
- [ ] 🚀 New feature
Main update on the:
- [ ] Admin
- [ ] Documentation
- [ ] Framework
- [ ] Plugin
<!-- Write a short description of what your PR does and link the concerned issues of your update. -->
<!-- ⚠️ Please link issue(s) you close / fix by using GitHub keywords https://help.github.com/articles/closing-issues-using-keywords/ !-->
| <!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->
<!-- Uncomment the correct contribution type. !-->
My PR is a:
- [ ] 💥 Breaking change
- [ ] 🐛 Bug fix #issueNumber
- [ ] 💅 Enhancement
- [ ] 🚀 New feature
Main update on the:
- [ ] Admin
- [ ] Documentation
- [ ] Framework
- [ ] Plugin
<!-- Please note that all databases should be tested and confirmed to be working prior to the PR being merged. -->
Manual testing done on the follow databases:
- [ ] Not applicable
- [ ] MongoDB
- [ ] MySQL
- [ ] Postgres
<!-- Write a short description of what your PR does and link the concerned issues of your update. -->
<!-- ⚠️ Please link issue(s) you close / fix by using GitHub keywords https://help.github.com/articles/closing-issues-using-keywords/ !-->
| Update PR Template with database testing checks | Update PR Template with database testing checks
| Markdown | mit | wistityhq/strapi,wistityhq/strapi | markdown | ## Code Before:
<!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->
<!-- Uncomment the correct contribution type. !-->
My PR is a:
- [ ] 💥 Breaking change
- [ ] 🐛 Bug fix #issueNumber
- [ ] 💅 Enhancement
- [ ] 🚀 New feature
Main update on the:
- [ ] Admin
- [ ] Documentation
- [ ] Framework
- [ ] Plugin
<!-- Write a short description of what your PR does and link the concerned issues of your update. -->
<!-- ⚠️ Please link issue(s) you close / fix by using GitHub keywords https://help.github.com/articles/closing-issues-using-keywords/ !-->
## Instruction:
Update PR Template with database testing checks
## Code After:
<!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->
<!-- Uncomment the correct contribution type. !-->
My PR is a:
- [ ] 💥 Breaking change
- [ ] 🐛 Bug fix #issueNumber
- [ ] 💅 Enhancement
- [ ] 🚀 New feature
Main update on the:
- [ ] Admin
- [ ] Documentation
- [ ] Framework
- [ ] Plugin
<!-- Please note that all databases should be tested and confirmed to be working prior to the PR being merged. -->
Manual testing done on the follow databases:
- [ ] Not applicable
- [ ] MongoDB
- [ ] MySQL
- [ ] Postgres
<!-- Write a short description of what your PR does and link the concerned issues of your update. -->
<!-- ⚠️ Please link issue(s) you close / fix by using GitHub keywords https://help.github.com/articles/closing-issues-using-keywords/ !-->
| <!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->
<!-- Uncomment the correct contribution type. !-->
My PR is a:
- [ ] 💥 Breaking change
- [ ] 🐛 Bug fix #issueNumber
- [ ] 💅 Enhancement
- [ ] 🚀 New feature
Main update on the:
- [ ] Admin
- [ ] Documentation
- [ ] Framework
- [ ] Plugin
+ <!-- Please note that all databases should be tested and confirmed to be working prior to the PR being merged. -->
+ Manual testing done on the follow databases:
+ - [ ] Not applicable
+ - [ ] MongoDB
+ - [ ] MySQL
+ - [ ] Postgres
+
<!-- Write a short description of what your PR does and link the concerned issues of your update. -->
<!-- ⚠️ Please link issue(s) you close / fix by using GitHub keywords https://help.github.com/articles/closing-issues-using-keywords/ !--> | 7 | 0.368421 | 7 | 0 |
e2c7691081b857651a031bf66e42dc1735d6b0a4 | src/tests/express_tests.h | src/tests/express_tests.h | /**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
__asm__( \
".section .express_tests\n\t" \
".word %0\n\t" \
".text\n" \
: :"i"(&descr)); \
}
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
REGISTER_EXPRESS_TEST(_descriptor);
int express_tests_execute();
#endif /* EXPRESS_TESTS_H_ */
| /**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
/*
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
__asm__( \
".section .express_tests\n\t" \
".word %0\n\t" \
".text\n" \
: :"i"(&descr)); \
}
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
REGISTER_EXPRESS_TEST(_descriptor);
*/
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
static const EXPRESS_TEST_DESCRIPTOR *_pdescriptor __attribute__ ((section(".express_tests"))) = &_descriptor;
int express_tests_execute();
#endif /* EXPRESS_TESTS_H_ */
| Change declaration express test macros | Change declaration express test macros | C | bsd-2-clause | vrxfile/embox-trik,vrxfile/embox-trik,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,mike2390/embox,mike2390/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,mike2390/embox,abusalimov/embox,vrxfile/embox-trik,embox/embox,mike2390/embox,Kakadu/embox,abusalimov/embox,abusalimov/embox,embox/embox,gzoom13/embox,mike2390/embox,gzoom13/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,Kefir0192/embox,gzoom13/embox,vrxfile/embox-trik,mike2390/embox,gzoom13/embox,embox/embox,vrxfile/embox-trik,embox/embox,Kakadu/embox,gzoom13/embox,embox/embox,mike2390/embox,Kefir0192/embox | c | ## Code Before:
/**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
__asm__( \
".section .express_tests\n\t" \
".word %0\n\t" \
".text\n" \
: :"i"(&descr)); \
}
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
REGISTER_EXPRESS_TEST(_descriptor);
int express_tests_execute();
#endif /* EXPRESS_TESTS_H_ */
## Instruction:
Change declaration express test macros
## Code After:
/**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
/*
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
__asm__( \
".section .express_tests\n\t" \
".word %0\n\t" \
".text\n" \
: :"i"(&descr)); \
}
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
REGISTER_EXPRESS_TEST(_descriptor);
*/
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
static const EXPRESS_TEST_DESCRIPTOR *_pdescriptor __attribute__ ((section(".express_tests"))) = &_descriptor;
int express_tests_execute();
#endif /* EXPRESS_TESTS_H_ */
| /**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
+ /*
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
__asm__( \
".section .express_tests\n\t" \
".word %0\n\t" \
".text\n" \
: :"i"(&descr)); \
}
#define DECLARE_EXPRESS_TEST(name, exec) \
static int exec(); \
static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
REGISTER_EXPRESS_TEST(_descriptor);
+ */
+
+ #define DECLARE_EXPRESS_TEST(name, exec) \
+ static int exec(); \
+ static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \
+ static const EXPRESS_TEST_DESCRIPTOR *_pdescriptor __attribute__ ((section(".express_tests"))) = &_descriptor;
int express_tests_execute();
#endif /* EXPRESS_TESTS_H_ */ | 7 | 0.233333 | 7 | 0 |
bb09481a8356bb0a74c3a63cf615b6bb3d825a66 | README.md | README.md |
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
|
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
To rebuild assets user
```
npm run build
```
| Add info about rebuilding assets | Add info about rebuilding assets | Markdown | mit | ertrzyiks/blog.ertrzyiks.pl,ertrzyiks/blog.ertrzyiks.pl,ertrzyiks/blog.ertrzyiks.pl | markdown | ## Code Before:
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
## Instruction:
Add info about rebuilding assets
## Code After:
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
To rebuild assets user
```
npm run build
```
|
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
+
+ To rebuild assets user
+ ```
+ npm run build
+ ``` | 5 | 0.555556 | 5 | 0 |
38e0cbf514352521e442b82aae785f91f839b215 | src/lib.rs | src/lib.rs | // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
const Ita2Figures = b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0"
#[test]
fn it_works() {
}
| // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const ITA2: (&'static [u8], &'static [u8]) =
(b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0",
b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0");
#[test]
fn it_works() {
}
| Stop and think and make it compile first | Stop and think and make it compile first
| Rust | mit | mcpherrinm/baudot | rust | ## Code Before:
// The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
const Ita2Figures = b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0"
#[test]
fn it_works() {
}
## Instruction:
Stop and think and make it compile first
## Code After:
// The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const ITA2: (&'static [u8], &'static [u8]) =
(b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0",
b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0");
#[test]
fn it_works() {
}
| // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
- const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
+ const ITA2: (&'static [u8], &'static [u8]) =
+ (b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0",
- const Ita2Figures = b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0"
? ----- ----------- ^
+ b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0");
? ^^^^^^^^^^ ++
#[test]
fn it_works() {
} | 5 | 0.555556 | 3 | 2 |
a09a8916044a0231caeff99bfe92994b14ad60fb | project/plugins.sbt | project/plugins.sbt | // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Eclipse
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
| // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Eclipse
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
//IntelliJ
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
| Add SBT plugin for generating IntelliJ project files | Add SBT plugin for generating IntelliJ project files
| Scala | apache-2.0 | alxdarksage/BridgePF,alxdarksage/BridgePF,Sage-Bionetworks/BridgePF,DwayneJengSage/BridgePF,DwayneJengSage/BridgePF,DwayneJengSage/BridgePF,Sage-Bionetworks/BridgePF,Sage-Bionetworks/BridgePF,alxdarksage/BridgePF | scala | ## Code Before:
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Eclipse
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
## Instruction:
Add SBT plugin for generating IntelliJ project files
## Code After:
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Eclipse
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
//IntelliJ
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
| // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Eclipse
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
+
+ //IntelliJ
+ addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0") | 3 | 0.333333 | 3 | 0 |
c05ebc5bc932a56a1fe52e0d621d83ba6be97607 | app/views/layouts/_toolbar.html.slim | app/views/layouts/_toolbar.html.slim | - if current_user
.row
dl.sub-nav
dd
=link_to 'DWP check', new_dwp_checks_path
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_path
| - if current_user
.row
dl.sub-nav
dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_path
| Add toolbar link for income calculator | Add toolbar link for income calculator
| Slim | mit | ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp | slim | ## Code Before:
- if current_user
.row
dl.sub-nav
dd
=link_to 'DWP check', new_dwp_checks_path
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_path
## Instruction:
Add toolbar link for income calculator
## Code After:
- if current_user
.row
dl.sub-nav
dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_path
| - if current_user
.row
dl.sub-nav
- dd
+ dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
+ dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_path | 3 | 0.272727 | 2 | 1 |
def7e9e68f2f733f2e607cc6c827ffdb6f2e9ddb | topics/templates/topics/show_topic.html | topics/templates/topics/show_topic.html | {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}: {{ active_topic.name }}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resource.section | markdownify }}</h1>
{% elif resource.subsection %}
<h2>{{ resource.subsection | markdownify }}</h2>
{% elif resource.text %}
{{ resource.text | markdownify }}
{% elif resource.link %}
{% include 'includes/link.html' with link=resource.link %}
{% endif %}
{% endfor %}
<div class="topic-actions">
{% if historical_version %}
<a href="../.." class="topic-edit-link ss-left">back to page</a>
<a href=".." class="topic-edit-link ss-clock">back to history</a>
{% else %}
{% if user_can_edit %}
<a href="_edit/" class="topic-edit-link ss-write">edit this page</a>
{% endif %}
{% if not topic_path_is_root or user_can_edit %}
<a href="_history/" class="topic-history-link ss-clock">see page history</a>
{% endif %}
{% endif %}
</div>
{% endblock %}
| {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}{% if active_topic.name %}: {{ active_topic.name }}{% endif %}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resource.section | markdownify }}</h1>
{% elif resource.subsection %}
<h2>{{ resource.subsection | markdownify }}</h2>
{% elif resource.text %}
{{ resource.text | markdownify }}
{% elif resource.link %}
{% include 'includes/link.html' with link=resource.link %}
{% endif %}
{% endfor %}
<div class="topic-actions">
{% if historical_version %}
<a href="../.." class="topic-edit-link ss-left">back to page</a>
<a href=".." class="topic-edit-link ss-clock">back to history</a>
{% else %}
{% if user_can_edit %}
<a href="_edit/" class="topic-edit-link ss-write">edit this page</a>
{% endif %}
{% if not topic_path_is_root or user_can_edit %}
<a href="_history/" class="topic-history-link ss-clock">see page history</a>
{% endif %}
{% endif %}
</div>
{% endblock %}
| Hide page title on root page | Hide page title on root page
| HTML | mit | andychase/codebook,andychase/codebook | html | ## Code Before:
{% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}: {{ active_topic.name }}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resource.section | markdownify }}</h1>
{% elif resource.subsection %}
<h2>{{ resource.subsection | markdownify }}</h2>
{% elif resource.text %}
{{ resource.text | markdownify }}
{% elif resource.link %}
{% include 'includes/link.html' with link=resource.link %}
{% endif %}
{% endfor %}
<div class="topic-actions">
{% if historical_version %}
<a href="../.." class="topic-edit-link ss-left">back to page</a>
<a href=".." class="topic-edit-link ss-clock">back to history</a>
{% else %}
{% if user_can_edit %}
<a href="_edit/" class="topic-edit-link ss-write">edit this page</a>
{% endif %}
{% if not topic_path_is_root or user_can_edit %}
<a href="_history/" class="topic-history-link ss-clock">see page history</a>
{% endif %}
{% endif %}
</div>
{% endblock %}
## Instruction:
Hide page title on root page
## Code After:
{% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}{% if active_topic.name %}: {{ active_topic.name }}{% endif %}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resource.section | markdownify }}</h1>
{% elif resource.subsection %}
<h2>{{ resource.subsection | markdownify }}</h2>
{% elif resource.text %}
{{ resource.text | markdownify }}
{% elif resource.link %}
{% include 'includes/link.html' with link=resource.link %}
{% endif %}
{% endfor %}
<div class="topic-actions">
{% if historical_version %}
<a href="../.." class="topic-edit-link ss-left">back to page</a>
<a href=".." class="topic-edit-link ss-clock">back to history</a>
{% else %}
{% if user_can_edit %}
<a href="_edit/" class="topic-edit-link ss-write">edit this page</a>
{% endif %}
{% if not topic_path_is_root or user_can_edit %}
<a href="_history/" class="topic-history-link ss-clock">see page history</a>
{% endif %}
{% endif %}
</div>
{% endblock %}
| {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
- {% block page_title %}: {{ active_topic.name }}{% endblock %}
+ {% block page_title %}{% if active_topic.name %}: {{ active_topic.name }}{% endif %}{% endblock %}
? ++++++++++++++++++++++++++ +++++++++++
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resource.section | markdownify }}</h1>
{% elif resource.subsection %}
<h2>{{ resource.subsection | markdownify }}</h2>
{% elif resource.text %}
{{ resource.text | markdownify }}
{% elif resource.link %}
{% include 'includes/link.html' with link=resource.link %}
{% endif %}
{% endfor %}
<div class="topic-actions">
{% if historical_version %}
<a href="../.." class="topic-edit-link ss-left">back to page</a>
<a href=".." class="topic-edit-link ss-clock">back to history</a>
{% else %}
{% if user_can_edit %}
<a href="_edit/" class="topic-edit-link ss-write">edit this page</a>
{% endif %}
{% if not topic_path_is_root or user_can_edit %}
<a href="_history/" class="topic-history-link ss-clock">see page history</a>
{% endif %}
{% endif %}
</div>
{% endblock %} | 2 | 0.064516 | 1 | 1 |
3eba8d104dea9a21650e0dcb52ec8d00d42fe4b0 | plugin.js | plugin.js | 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
constructor() {
super();
// Will be injected by core
this.app = null;
this.plugins = null;
this.server = null;
this.players = null;
this.maps = null;
/**
* Will hold the defined models for this plugin!
*
* @type {{}}
*/
this.models = {};
}
/**
* Inject Core App interface into the plugin.
*
* @param {App} app
*/
inject(app) {
this.app = app;
this.server = app.server;
// Expand app into separate parts.
// TODO: Fill in plugins, server, players, maps.
}
}
| 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
constructor() {
super();
// Will be injected by core
this.app = null;
this.plugins = null;
this.server = null;
this.players = null;
this.maps = null;
/**
* Will hold the defined models for this plugin!
*
* @type {{}}
*/
this.models = {};
}
/**
* Inject Core App interface into the plugin.
*
* @param {App} app
*/
inject(app) {
this.app = app;
this.server = app.server;
// Expand app into separate parts.
this.players = app.players;
this.maps = app.maps;
}
}
| Prepare for players and maps update of core. | Prepare for players and maps update of core.
| JavaScript | isc | ManiaJS/plugins,ManiaJS/plugins,ManiaJS/plugins | javascript | ## Code Before:
'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
constructor() {
super();
// Will be injected by core
this.app = null;
this.plugins = null;
this.server = null;
this.players = null;
this.maps = null;
/**
* Will hold the defined models for this plugin!
*
* @type {{}}
*/
this.models = {};
}
/**
* Inject Core App interface into the plugin.
*
* @param {App} app
*/
inject(app) {
this.app = app;
this.server = app.server;
// Expand app into separate parts.
// TODO: Fill in plugins, server, players, maps.
}
}
## Instruction:
Prepare for players and maps update of core.
## Code After:
'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
constructor() {
super();
// Will be injected by core
this.app = null;
this.plugins = null;
this.server = null;
this.players = null;
this.maps = null;
/**
* Will hold the defined models for this plugin!
*
* @type {{}}
*/
this.models = {};
}
/**
* Inject Core App interface into the plugin.
*
* @param {App} app
*/
inject(app) {
this.app = app;
this.server = app.server;
// Expand app into separate parts.
this.players = app.players;
this.maps = app.maps;
}
}
| 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
constructor() {
super();
// Will be injected by core
this.app = null;
this.plugins = null;
this.server = null;
this.players = null;
this.maps = null;
/**
* Will hold the defined models for this plugin!
*
* @type {{}}
*/
this.models = {};
}
/**
* Inject Core App interface into the plugin.
*
* @param {App} app
*/
inject(app) {
this.app = app;
this.server = app.server;
// Expand app into separate parts.
- // TODO: Fill in plugins, server, players, maps.
+ this.players = app.players;
+ this.maps = app.maps;
}
} | 3 | 0.061224 | 2 | 1 |
69ed6ed37c3e3e8284199fe0f44a4a1b8bdf571e | src/graphql/models/Hyperlink.js | src/graphql/models/Hyperlink.js | import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data behind a hyperlink',
fields: {
url: { type: GraphQLString },
title: { type: GraphQLString },
summary: { type: GraphQLString },
topImageUrl: { type: GraphQLString, resolve: resolveUrl('topImageUrl') },
fetchedAt: { type: GraphQLString, resolve: resolveUrl('fetchedAt') },
status: { type: GraphQLString, resolve: resolveUrl('status') },
},
});
export default Hyperlink;
| import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data behind a hyperlink',
fields: {
url: { type: GraphQLString },
title: { type: GraphQLString },
summary: { type: GraphQLString },
topImageUrl: { type: GraphQLString, resolve: resolveUrl('topImageUrl') },
fetchedAt: { type: GraphQLString, resolve: resolveUrl('fetchedAt') },
status: { type: GraphQLString, resolve: resolveUrl('status') },
error: { type: GraphQLString, resolve: resolveUrl('error') },
},
});
export default Hyperlink;
| Add error field to reveal fetch error | Add error field to reveal fetch error
| JavaScript | mit | MrOrz/rumors-api,MrOrz/rumors-api,cofacts/rumors-api | javascript | ## Code Before:
import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data behind a hyperlink',
fields: {
url: { type: GraphQLString },
title: { type: GraphQLString },
summary: { type: GraphQLString },
topImageUrl: { type: GraphQLString, resolve: resolveUrl('topImageUrl') },
fetchedAt: { type: GraphQLString, resolve: resolveUrl('fetchedAt') },
status: { type: GraphQLString, resolve: resolveUrl('status') },
},
});
export default Hyperlink;
## Instruction:
Add error field to reveal fetch error
## Code After:
import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data behind a hyperlink',
fields: {
url: { type: GraphQLString },
title: { type: GraphQLString },
summary: { type: GraphQLString },
topImageUrl: { type: GraphQLString, resolve: resolveUrl('topImageUrl') },
fetchedAt: { type: GraphQLString, resolve: resolveUrl('fetchedAt') },
status: { type: GraphQLString, resolve: resolveUrl('status') },
error: { type: GraphQLString, resolve: resolveUrl('error') },
},
});
export default Hyperlink;
| import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data behind a hyperlink',
fields: {
url: { type: GraphQLString },
title: { type: GraphQLString },
summary: { type: GraphQLString },
topImageUrl: { type: GraphQLString, resolve: resolveUrl('topImageUrl') },
fetchedAt: { type: GraphQLString, resolve: resolveUrl('fetchedAt') },
status: { type: GraphQLString, resolve: resolveUrl('status') },
+ error: { type: GraphQLString, resolve: resolveUrl('error') },
},
});
export default Hyperlink; | 1 | 0.043478 | 1 | 0 |
8bf1552562311517082f7257b194b8b90acf7d03 | pubspec.yaml | pubspec.yaml | name: pixel_canvas
version: 1.0.2-dev
description: A canvas custom element to render/edit pixels
author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
dependencies:
polymer: '>=0.12.0 <0.13.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unittest: '>=0.11.0 <0.12.0'
transformers:
- polymer:
entry_points:
- example/index.html
| name: pixel_canvas
version: 1.0.2-dev
author: Keiichiro Ui <keiichiro.ui@gmail.com>
description: A canvas custom element to render/edit pixels
homepage: https://github.com/kui/pixel_canvas
environment:
sdk: '>=1.6.0'
dependencies:
polymer: '>=0.13.0 <0.14.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unittest: '>=0.11.0 <0.12.0'
transformers:
- polymer:
entry_points:
- example/index.html
| Update to match polymer 0.13.0 | Update to match polymer 0.13.0
| YAML | mit | kui/pixel_canvas,kui/pixel_canvas | yaml | ## Code Before:
name: pixel_canvas
version: 1.0.2-dev
description: A canvas custom element to render/edit pixels
author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
dependencies:
polymer: '>=0.12.0 <0.13.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unittest: '>=0.11.0 <0.12.0'
transformers:
- polymer:
entry_points:
- example/index.html
## Instruction:
Update to match polymer 0.13.0
## Code After:
name: pixel_canvas
version: 1.0.2-dev
author: Keiichiro Ui <keiichiro.ui@gmail.com>
description: A canvas custom element to render/edit pixels
homepage: https://github.com/kui/pixel_canvas
environment:
sdk: '>=1.6.0'
dependencies:
polymer: '>=0.13.0 <0.14.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unittest: '>=0.11.0 <0.12.0'
transformers:
- polymer:
entry_points:
- example/index.html
| name: pixel_canvas
version: 1.0.2-dev
+ author: Keiichiro Ui <keiichiro.ui@gmail.com>
description: A canvas custom element to render/edit pixels
- author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
+ environment:
+ sdk: '>=1.6.0'
dependencies:
- polymer: '>=0.12.0 <0.13.0'
? ^ ^
+ polymer: '>=0.13.0 <0.14.0'
? ^ ^
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unittest: '>=0.11.0 <0.12.0'
transformers:
- polymer:
entry_points:
- example/index.html | 6 | 0.4 | 4 | 2 |
43f640a7b16a61c9d5003b2ceea4d8b6c7bceafe | src/main/kotlin/com/github/libkt/LibKt.kt | src/main/kotlin/com/github/libkt/LibKt.kt | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
description.version.split("-").last().substring(1).toInt()
} catch(e: Exception) {
0
}
}
override fun onEnable() {
setupMetrics()
}
private fun setupMetrics() {
val metrics = Metrics(this)
metrics.addCustomChart(object : Metrics.SimplePie("kotlin_version") {
private val kotlinVersion = description.version.split("-")[0]
override fun getValue() = kotlinVersion
})
}
} | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
description.version.split("-").last().substring(1).toInt()
} catch(e: Exception) {
logger.warning("libkt build number could not be detected - dependent plugins may not function correctly!")
0
}
}
override fun onEnable() {
setupMetrics()
}
private fun setupMetrics() {
val metrics = Metrics(this)
metrics.addCustomChart(object : Metrics.SimplePie("kotlin_version") {
private val kotlinVersion = description.version.split("-")[0]
override fun getValue() = kotlinVersion
})
}
} | Add warning when build number not present. | Add warning when build number not present.
| Kotlin | mit | libkt/libkt | kotlin | ## Code Before:
package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
description.version.split("-").last().substring(1).toInt()
} catch(e: Exception) {
0
}
}
override fun onEnable() {
setupMetrics()
}
private fun setupMetrics() {
val metrics = Metrics(this)
metrics.addCustomChart(object : Metrics.SimplePie("kotlin_version") {
private val kotlinVersion = description.version.split("-")[0]
override fun getValue() = kotlinVersion
})
}
}
## Instruction:
Add warning when build number not present.
## Code After:
package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
description.version.split("-").last().substring(1).toInt()
} catch(e: Exception) {
logger.warning("libkt build number could not be detected - dependent plugins may not function correctly!")
0
}
}
override fun onEnable() {
setupMetrics()
}
private fun setupMetrics() {
val metrics = Metrics(this)
metrics.addCustomChart(object : Metrics.SimplePie("kotlin_version") {
private val kotlinVersion = description.version.split("-")[0]
override fun getValue() = kotlinVersion
})
}
} | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
description.version.split("-").last().substring(1).toInt()
} catch(e: Exception) {
+ logger.warning("libkt build number could not be detected - dependent plugins may not function correctly!")
0
}
}
override fun onEnable() {
setupMetrics()
}
private fun setupMetrics() {
val metrics = Metrics(this)
metrics.addCustomChart(object : Metrics.SimplePie("kotlin_version") {
private val kotlinVersion = description.version.split("-")[0]
override fun getValue() = kotlinVersion
})
}
} | 1 | 0.027778 | 1 | 0 |
d9d11489f22470c5c8d69cc54dcea9ad4c741d11 | Library/Foundation/NSBundle+FileResource.swift | Library/Foundation/NSBundle+FileResource.swift | //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get the file URL for (R.file.*).
- returns: The file URL for the resource file (R.file.*) or nil if the file could not be located.
*/
public func URLForResource(resource: FileResourceType) -> NSURL? {
return URLForResource(resource.name, withExtension: resource.pathExtension, subdirectory: nil, localization: nil)
}
/**
Returns the full pathname for the resource (R.file.*).
- parameter resource: The resource file to get the path for (R.file.*).
- returns: The full pathname for the resource file (R.file.*) or nil if the file could not be located.
*/
public func pathForResource(resource: FileResourceType) -> String? {
return pathForResource(resource.name, ofType: resource.pathExtension, inDirectory: nil, forLocalization: nil)
}
}
| //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get the file URL for (R.file.*).
- returns: The file URL for the resource file (R.file.*) or nil if the file could not be located.
*/
public func URLForResource(resource: FileResourceType) -> NSURL? {
return URLForResource(resource.name, withExtension: resource.pathExtension)
}
/**
Returns the full pathname for the resource (R.file.*).
- parameter resource: The resource file to get the path for (R.file.*).
- returns: The full pathname for the resource file (R.file.*) or nil if the file could not be located.
*/
public func pathForResource(resource: FileResourceType) -> String? {
return pathForResource(resource.name, ofType: resource.pathExtension)
}
}
| Make URL-/pathForResource lookup global and local | Make URL-/pathForResource lookup global and local
Docs state that explicit `nil` for localization will not look up resources in the localization folders. That is not what we want, so remove them here and use the overload that looks in all places. :)
| Swift | mit | mac-cain13/R.swift.Library,mac-cain13/R.swift.Library,uny/R.swift.Library,uny/R.swift.Library | swift | ## Code Before:
//
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get the file URL for (R.file.*).
- returns: The file URL for the resource file (R.file.*) or nil if the file could not be located.
*/
public func URLForResource(resource: FileResourceType) -> NSURL? {
return URLForResource(resource.name, withExtension: resource.pathExtension, subdirectory: nil, localization: nil)
}
/**
Returns the full pathname for the resource (R.file.*).
- parameter resource: The resource file to get the path for (R.file.*).
- returns: The full pathname for the resource file (R.file.*) or nil if the file could not be located.
*/
public func pathForResource(resource: FileResourceType) -> String? {
return pathForResource(resource.name, ofType: resource.pathExtension, inDirectory: nil, forLocalization: nil)
}
}
## Instruction:
Make URL-/pathForResource lookup global and local
Docs state that explicit `nil` for localization will not look up resources in the localization folders. That is not what we want, so remove them here and use the overload that looks in all places. :)
## Code After:
//
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get the file URL for (R.file.*).
- returns: The file URL for the resource file (R.file.*) or nil if the file could not be located.
*/
public func URLForResource(resource: FileResourceType) -> NSURL? {
return URLForResource(resource.name, withExtension: resource.pathExtension)
}
/**
Returns the full pathname for the resource (R.file.*).
- parameter resource: The resource file to get the path for (R.file.*).
- returns: The full pathname for the resource file (R.file.*) or nil if the file could not be located.
*/
public func pathForResource(resource: FileResourceType) -> String? {
return pathForResource(resource.name, ofType: resource.pathExtension)
}
}
| //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get the file URL for (R.file.*).
- returns: The file URL for the resource file (R.file.*) or nil if the file could not be located.
*/
public func URLForResource(resource: FileResourceType) -> NSURL? {
- return URLForResource(resource.name, withExtension: resource.pathExtension, subdirectory: nil, localization: nil)
? --------------------------------------
+ return URLForResource(resource.name, withExtension: resource.pathExtension)
}
/**
Returns the full pathname for the resource (R.file.*).
- parameter resource: The resource file to get the path for (R.file.*).
- returns: The full pathname for the resource file (R.file.*) or nil if the file could not be located.
*/
public func pathForResource(resource: FileResourceType) -> String? {
- return pathForResource(resource.name, ofType: resource.pathExtension, inDirectory: nil, forLocalization: nil)
? ----------------------------------------
+ return pathForResource(resource.name, ofType: resource.pathExtension)
}
} | 4 | 0.121212 | 2 | 2 |
2adc6a189b35ddafdfb73ea42f243f29adf08d4b | .travis.yml | .travis.yml | sudo: required
language: go
go:
- 1.7.1
services:
- docker
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push jsalonen/swarmist
| sudo: required
language: go
go:
- 1.7.1
services:
- docker
env:
- GOOS=linux
- GOARCH=amd64
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push jsalonen/swarmist
| Add explicit os/arch settings for go in Travis | fix: Add explicit os/arch settings for go in Travis
| YAML | mit | jsalonen/swarmist,jsalonen/swarmist | yaml | ## Code Before:
sudo: required
language: go
go:
- 1.7.1
services:
- docker
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push jsalonen/swarmist
## Instruction:
fix: Add explicit os/arch settings for go in Travis
## Code After:
sudo: required
language: go
go:
- 1.7.1
services:
- docker
env:
- GOOS=linux
- GOARCH=amd64
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push jsalonen/swarmist
| sudo: required
language: go
go:
- 1.7.1
services:
- docker
+
+ env:
+ - GOOS=linux
+ - GOARCH=amd64
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push jsalonen/swarmist | 4 | 0.181818 | 4 | 0 |
8e9087fef8dfc20b67c5d53489f100f38210b80d | alexa/utterances.txt | alexa/utterances.txt | ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
DivineMercy divine mercy chaplet
DivineMercy pray divine mercy
DivineMercy pray the divine mercy chaplet
DivineMercy pray divine mercy chaplet
DivineMercy pray the chaplet of divine mercy
Cancel cancel
Help help
| ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
DivineMercy divine mercy chaplet
DivineMercy pray divine mercy
DivineMercy pray the divine mercy chaplet
DivineMercy pray divine mercy chaplet
DivineMercy pray the chaplet of divine mercy
Cancel cancel
Cancel stop
Cancel never mind
Cancel bye
Cancel goodbye
Help help
Help doe
Help re
Help mi
Help fa
Help so
Help la
Help ti
Help me
Help red
Help yellow
Help orange
Help green
Help blue
Help indigo
Help violet
| Add more mappings to "Help" to make it the default for bad input | Add more mappings to "Help" to make it the default for bad input
| Text | mit | JohnMcG/AlexaRosary,JohnMcG/AlexaRosary | text | ## Code Before:
ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
DivineMercy divine mercy chaplet
DivineMercy pray divine mercy
DivineMercy pray the divine mercy chaplet
DivineMercy pray divine mercy chaplet
DivineMercy pray the chaplet of divine mercy
Cancel cancel
Help help
## Instruction:
Add more mappings to "Help" to make it the default for bad input
## Code After:
ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
DivineMercy divine mercy chaplet
DivineMercy pray divine mercy
DivineMercy pray the divine mercy chaplet
DivineMercy pray divine mercy chaplet
DivineMercy pray the chaplet of divine mercy
Cancel cancel
Cancel stop
Cancel never mind
Cancel bye
Cancel goodbye
Help help
Help doe
Help re
Help mi
Help fa
Help so
Help la
Help ti
Help me
Help red
Help yellow
Help orange
Help green
Help blue
Help indigo
Help violet
| ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
DivineMercy divine mercy chaplet
DivineMercy pray divine mercy
DivineMercy pray the divine mercy chaplet
DivineMercy pray divine mercy chaplet
DivineMercy pray the chaplet of divine mercy
Cancel cancel
+ Cancel stop
+ Cancel never mind
+ Cancel bye
+ Cancel goodbye
Help help
+ Help doe
+ Help re
+ Help mi
+ Help fa
+ Help so
+ Help la
+ Help ti
+ Help me
+ Help red
+ Help yellow
+ Help orange
+ Help green
+ Help blue
+ Help indigo
+ Help violet
| 19 | 1 | 19 | 0 |
1e4c8f27bec53eb024ab9a88973d92f237cbea88 | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
script: py.test
| language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq svn
script: py.test
sudo: required | Use py.test on Travis, as our old method failed | Use py.test on Travis, as our old method failed
Signed-off-by: Jord Nijhuis
| YAML | mit | Sidesplitter/SVN-Ignore | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
script: py.test
## Instruction:
Use py.test on Travis, as our old method failed
Signed-off-by: Jord Nijhuis
## Code After:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq svn
script: py.test
sudo: required | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
+ before_install:
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq svn
script: py.test
+ sudo: required | 4 | 0.363636 | 4 | 0 |
548fb019801028150daf64847ab841ac526f7424 | Casks/switchresx.rb | Casks/switchresx.rb | class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.x'
sha256 :no_check
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
:signal => [
[ 'INT', 'fr.madrau.switchresx.daemon' ],
[ 'KILL', 'fr.madrau.switchresx.daemon' ],
],
:files => [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end
| class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.4'
sha256 "39c36694a1955f3f97bdb3bcb7591be06b601b9557d539abd05b039bcfb8b19f"
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
:signal => [
[ 'INT', 'fr.madrau.switchresx.daemon' ],
[ 'KILL', 'fr.madrau.switchresx.daemon' ],
],
:files => [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end
| Fix SwitchResX with a version and sha256 to pass test | Fix SwitchResX with a version and sha256 to pass test
| Ruby | bsd-2-clause | KosherBacon/homebrew-cask,L2G/homebrew-cask,kkdd/homebrew-cask,pgr0ss/homebrew-cask,aki77/homebrew-cask,jalaziz/homebrew-cask,Philosoft/homebrew-cask,gerrymiller/homebrew-cask,AdamCmiel/homebrew-cask,esebastian/homebrew-cask,zhuzihhhh/homebrew-cask,gord1anknot/homebrew-cask,mattfelsen/homebrew-cask,cfillion/homebrew-cask,dvdoliveira/homebrew-cask,imgarylai/homebrew-cask,skyyuan/homebrew-cask,mchlrmrz/homebrew-cask,jmeridth/homebrew-cask,scribblemaniac/homebrew-cask,Labutin/homebrew-cask,giannitm/homebrew-cask,cobyism/homebrew-cask,Ibuprofen/homebrew-cask,forevergenin/homebrew-cask,mjdescy/homebrew-cask,Gasol/homebrew-cask,johntrandall/homebrew-cask,arranubels/homebrew-cask,jellyfishcoder/homebrew-cask,tonyseek/homebrew-cask,Dremora/homebrew-cask,josa42/homebrew-cask,blogabe/homebrew-cask,afdnlw/homebrew-cask,miccal/homebrew-cask,Amorymeltzer/homebrew-cask,chadcatlett/caskroom-homebrew-cask,xyb/homebrew-cask,segiddins/homebrew-cask,kongslund/homebrew-cask,d/homebrew-cask,Ketouem/homebrew-cask,scottsuch/homebrew-cask,stonehippo/homebrew-cask,mattfelsen/homebrew-cask,timsutton/homebrew-cask,chuanxd/homebrew-cask,lalyos/homebrew-cask,katoquro/homebrew-cask,fazo96/homebrew-cask,stevehedrick/homebrew-cask,illusionfield/homebrew-cask,tonyseek/homebrew-cask,elseym/homebrew-cask,adelinofaria/homebrew-cask,gmkey/homebrew-cask,hanxue/caskroom,Amorymeltzer/homebrew-cask,deiga/homebrew-cask,nelsonjchen/homebrew-cask,Hywan/homebrew-cask,ddm/homebrew-cask,gabrielizaias/homebrew-cask,johnste/homebrew-cask,cblecker/homebrew-cask,albertico/homebrew-cask,buo/homebrew-cask,cclauss/homebrew-cask,toonetown/homebrew-cask,nelsonjchen/homebrew-cask,cliffcotino/homebrew-cask,sscotth/homebrew-cask,asbachb/homebrew-cask,ptb/homebrew-cask,hvisage/homebrew-cask,jtriley/homebrew-cask,andrewdisley/homebrew-cask,deiga/homebrew-cask,casidiablo/homebrew-cask,wuman/homebrew-cask,gord1anknot/homebrew-cask,wastrachan/homebrew-cask,fly19890211/homebrew-cask,dezon/homebrew-cask,wmorin/homebrew-cask,nshemonsky/homebrew-cask,yumitsu/homebrew-cask,mfpierre/homebrew-cask,RogerThiede/homebrew-cask,alloy/homebrew-cask,Whoaa512/homebrew-cask,boecko/homebrew-cask,epmatsw/homebrew-cask,wKovacs64/homebrew-cask,githubutilities/homebrew-cask,seanzxx/homebrew-cask,0rax/homebrew-cask,bsiddiqui/homebrew-cask,zmwangx/homebrew-cask,julienlavergne/homebrew-cask,xalep/homebrew-cask,lifepillar/homebrew-cask,ninjahoahong/homebrew-cask,mgryszko/homebrew-cask,Nitecon/homebrew-cask,xiongchiamiov/homebrew-cask,wesen/homebrew-cask,samnung/homebrew-cask,onlynone/homebrew-cask,rajiv/homebrew-cask,cobyism/homebrew-cask,delphinus35/homebrew-cask,kteru/homebrew-cask,scottsuch/homebrew-cask,nrlquaker/homebrew-cask,ebraminio/homebrew-cask,xyb/homebrew-cask,dictcp/homebrew-cask,MisumiRize/homebrew-cask,asins/homebrew-cask,arranubels/homebrew-cask,claui/homebrew-cask,tyage/homebrew-cask,thomanq/homebrew-cask,JikkuJose/homebrew-cask,mariusbutuc/homebrew-cask,joaoponceleao/homebrew-cask,gyndav/homebrew-cask,gwaldo/homebrew-cask,jayshao/homebrew-cask,mkozjak/homebrew-cask,antogg/homebrew-cask,kongslund/homebrew-cask,leonmachadowilcox/homebrew-cask,bendoerr/homebrew-cask,colindunn/homebrew-cask,guerrero/homebrew-cask,corbt/homebrew-cask,christophermanning/homebrew-cask,johntrandall/homebrew-cask,rickychilcott/homebrew-cask,danielgomezrico/homebrew-cask,paulombcosta/homebrew-cask,epmatsw/homebrew-cask,mariusbutuc/homebrew-cask,unasuke/homebrew-cask,fanquake/homebrew-cask,ingorichter/homebrew-cask,markhuber/homebrew-cask,paour/homebrew-cask,dspeckhard/homebrew-cask,nathansgreen/homebrew-cask,arronmabrey/homebrew-cask,psibre/homebrew-cask,kpearson/homebrew-cask,morsdyce/homebrew-cask,retbrown/homebrew-cask,pacav69/homebrew-cask,blogabe/homebrew-cask,scribblemaniac/homebrew-cask,JacopKane/homebrew-cask,mwilmer/homebrew-cask,codeurge/homebrew-cask,jonathanwiesel/homebrew-cask,slnovak/homebrew-cask,jiashuw/homebrew-cask,mattrobenolt/homebrew-cask,afh/homebrew-cask,lcasey001/homebrew-cask,MichaelPei/homebrew-cask,napaxton/homebrew-cask,elyscape/homebrew-cask,santoshsahoo/homebrew-cask,mishari/homebrew-cask,michelegera/homebrew-cask,nightscape/homebrew-cask,adelinofaria/homebrew-cask,lumaxis/homebrew-cask,mlocher/homebrew-cask,reitermarkus/homebrew-cask,forevergenin/homebrew-cask,scw/homebrew-cask,cliffcotino/homebrew-cask,klane/homebrew-cask,kpearson/homebrew-cask,xight/homebrew-cask,pacav69/homebrew-cask,tolbkni/homebrew-cask,williamboman/homebrew-cask,neverfox/homebrew-cask,pgr0ss/homebrew-cask,mwean/homebrew-cask,hanxue/caskroom,mwek/homebrew-cask,SamiHiltunen/homebrew-cask,xakraz/homebrew-cask,dcondrey/homebrew-cask,moimikey/homebrew-cask,malob/homebrew-cask,af/homebrew-cask,retbrown/homebrew-cask,boydj/homebrew-cask,kkdd/homebrew-cask,nshemonsky/homebrew-cask,iamso/homebrew-cask,reitermarkus/homebrew-cask,moogar0880/homebrew-cask,tdsmith/homebrew-cask,koenrh/homebrew-cask,petmoo/homebrew-cask,deizel/homebrew-cask,wickles/homebrew-cask,cobyism/homebrew-cask,ldong/homebrew-cask,carlmod/homebrew-cask,theoriginalgri/homebrew-cask,kronicd/homebrew-cask,catap/homebrew-cask,ohammersmith/homebrew-cask,jamesmlees/homebrew-cask,genewoo/homebrew-cask,slnovak/homebrew-cask,kirikiriyamama/homebrew-cask,m3nu/homebrew-cask,gguillotte/homebrew-cask,ywfwj2008/homebrew-cask,kiliankoe/homebrew-cask,phpwutz/homebrew-cask,bcaceiro/homebrew-cask,renaudguerin/homebrew-cask,timsutton/homebrew-cask,kingthorin/homebrew-cask,rajiv/homebrew-cask,bcaceiro/homebrew-cask,dspeckhard/homebrew-cask,taherio/homebrew-cask,AnastasiaSulyagina/homebrew-cask,victorpopkov/homebrew-cask,seanzxx/homebrew-cask,hswong3i/homebrew-cask,ponychicken/homebrew-customcask,jellyfishcoder/homebrew-cask,robbiethegeek/homebrew-cask,gibsjose/homebrew-cask,gustavoavellar/homebrew-cask,hanxue/caskroom,donbobka/homebrew-cask,troyxmccall/homebrew-cask,hristozov/homebrew-cask,Hywan/homebrew-cask,colindean/homebrew-cask,shanonvl/homebrew-cask,Ibuprofen/homebrew-cask,shoichiaizawa/homebrew-cask,ahvigil/homebrew-cask,larseggert/homebrew-cask,kTitan/homebrew-cask,vuquoctuan/homebrew-cask,farmerchris/homebrew-cask,MircoT/homebrew-cask,nightscape/homebrew-cask,ahundt/homebrew-cask,guerrero/homebrew-cask,gwaldo/homebrew-cask,mrmachine/homebrew-cask,sohtsuka/homebrew-cask,vitorgalvao/homebrew-cask,malob/homebrew-cask,bric3/homebrew-cask,gregkare/homebrew-cask,wKovacs64/homebrew-cask,sanchezm/homebrew-cask,tjnycum/homebrew-cask,jpodlech/homebrew-cask,markhuber/homebrew-cask,jgarber623/homebrew-cask,stigkj/homebrew-caskroom-cask,vmrob/homebrew-cask,MoOx/homebrew-cask,dlovitch/homebrew-cask,djakarta-trap/homebrew-myCask,6uclz1/homebrew-cask,hackhandslabs/homebrew-cask,Ngrd/homebrew-cask,athrunsun/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,syscrusher/homebrew-cask,j13k/homebrew-cask,flaviocamilo/homebrew-cask,ywfwj2008/homebrew-cask,joaoponceleao/homebrew-cask,jbeagley52/homebrew-cask,neverfox/homebrew-cask,sjackman/homebrew-cask,kassi/homebrew-cask,13k/homebrew-cask,gurghet/homebrew-cask,AnastasiaSulyagina/homebrew-cask,andersonba/homebrew-cask,tranc99/homebrew-cask,cprecioso/homebrew-cask,jeroenseegers/homebrew-cask,jbeagley52/homebrew-cask,RogerThiede/homebrew-cask,kteru/homebrew-cask,johnjelinek/homebrew-cask,sscotth/homebrew-cask,dustinblackman/homebrew-cask,arronmabrey/homebrew-cask,sysbot/homebrew-cask,dieterdemeyer/homebrew-cask,flada-auxv/homebrew-cask,neverfox/homebrew-cask,bcomnes/homebrew-cask,kamilboratynski/homebrew-cask,Saklad5/homebrew-cask,sosedoff/homebrew-cask,cblecker/homebrew-cask,atsuyim/homebrew-cask,skatsuta/homebrew-cask,perfide/homebrew-cask,shishi/homebrew-cask,riyad/homebrew-cask,malob/homebrew-cask,AdamCmiel/homebrew-cask,kTitan/homebrew-cask,flaviocamilo/homebrew-cask,wayou/homebrew-cask,astorije/homebrew-cask,goxberry/homebrew-cask,MatzFan/homebrew-cask,rogeriopradoj/homebrew-cask,patresi/homebrew-cask,aktau/homebrew-cask,sanyer/homebrew-cask,kronicd/homebrew-cask,squid314/homebrew-cask,ashishb/homebrew-cask,LaurentFough/homebrew-cask,ponychicken/homebrew-customcask,kassi/homebrew-cask,jhowtan/homebrew-cask,singingwolfboy/homebrew-cask,ingorichter/homebrew-cask,skatsuta/homebrew-cask,bendoerr/homebrew-cask,boydj/homebrew-cask,reelsense/homebrew-cask,spruceb/homebrew-cask,MicTech/homebrew-cask,riyad/homebrew-cask,ftiff/homebrew-cask,kei-yamazaki/homebrew-cask,shoichiaizawa/homebrew-cask,claui/homebrew-cask,mkozjak/homebrew-cask,ayohrling/homebrew-cask,bcomnes/homebrew-cask,greg5green/homebrew-cask,tangestani/homebrew-cask,jawshooah/homebrew-cask,sjackman/homebrew-cask,ch3n2k/homebrew-cask,christophermanning/homebrew-cask,mAAdhaTTah/homebrew-cask,shanonvl/homebrew-cask,n0ts/homebrew-cask,chino/homebrew-cask,unasuke/homebrew-cask,xtian/homebrew-cask,winkelsdorf/homebrew-cask,chrisRidgers/homebrew-cask,miccal/homebrew-cask,ddm/homebrew-cask,antogg/homebrew-cask,dwihn0r/homebrew-cask,nathansgreen/homebrew-cask,morganestes/homebrew-cask,hellosky806/homebrew-cask,gerrypower/homebrew-cask,colindean/homebrew-cask,ptb/homebrew-cask,hswong3i/homebrew-cask,mwilmer/homebrew-cask,dunn/homebrew-cask,uetchy/homebrew-cask,cedwardsmedia/homebrew-cask,SamiHiltunen/homebrew-cask,dwihn0r/homebrew-cask,miguelfrde/homebrew-cask,gerrymiller/homebrew-cask,rhendric/homebrew-cask,xcezx/homebrew-cask,tdsmith/homebrew-cask,0xadada/homebrew-cask,pkq/homebrew-cask,BenjaminHCCarr/homebrew-cask,3van/homebrew-cask,julionc/homebrew-cask,moonboots/homebrew-cask,englishm/homebrew-cask,ahundt/homebrew-cask,kuno/homebrew-cask,sachin21/homebrew-cask,mikem/homebrew-cask,coneman/homebrew-cask,kryhear/homebrew-cask,pkq/homebrew-cask,j13k/homebrew-cask,sanchezm/homebrew-cask,lieuwex/homebrew-cask,jrwesolo/homebrew-cask,victorpopkov/homebrew-cask,xalep/homebrew-cask,robbiethegeek/homebrew-cask,blainesch/homebrew-cask,kostasdizas/homebrew-cask,mchlrmrz/homebrew-cask,aguynamedryan/homebrew-cask,vmrob/homebrew-cask,esebastian/homebrew-cask,greg5green/homebrew-cask,scribblemaniac/homebrew-cask,feigaochn/homebrew-cask,wuman/homebrew-cask,johnste/homebrew-cask,CameronGarrett/homebrew-cask,stonehippo/homebrew-cask,tyage/homebrew-cask,aktau/homebrew-cask,joaocc/homebrew-cask,csmith-palantir/homebrew-cask,boecko/homebrew-cask,dunn/homebrew-cask,singingwolfboy/homebrew-cask,garborg/homebrew-cask,thomanq/homebrew-cask,seanorama/homebrew-cask,gguillotte/homebrew-cask,mindriot101/homebrew-cask,reitermarkus/homebrew-cask,patresi/homebrew-cask,Bombenleger/homebrew-cask,christer155/homebrew-cask,MircoT/homebrew-cask,colindunn/homebrew-cask,sebcode/homebrew-cask,fkrone/homebrew-cask,kievechua/homebrew-cask,JosephViolago/homebrew-cask,a-x-/homebrew-cask,crzrcn/homebrew-cask,Cottser/homebrew-cask,CameronGarrett/homebrew-cask,jspahrsummers/homebrew-cask,drostron/homebrew-cask,lauantai/homebrew-cask,thii/homebrew-cask,ianyh/homebrew-cask,slack4u/homebrew-cask,6uclz1/homebrew-cask,adriweb/homebrew-cask,barravi/homebrew-cask,ldong/homebrew-cask,pinut/homebrew-cask,thii/homebrew-cask,tedski/homebrew-cask,yutarody/homebrew-cask,bkono/homebrew-cask,andyli/homebrew-cask,timsutton/homebrew-cask,RJHsiao/homebrew-cask,sohtsuka/homebrew-cask,imgarylai/homebrew-cask,markthetech/homebrew-cask,amatos/homebrew-cask,haha1903/homebrew-cask,theoriginalgri/homebrew-cask,FranklinChen/homebrew-cask,inz/homebrew-cask,uetchy/homebrew-cask,dustinblackman/homebrew-cask,albertico/homebrew-cask,bsiddiqui/homebrew-cask,kesara/homebrew-cask,andrewdisley/homebrew-cask,stevenmaguire/homebrew-cask,zchee/homebrew-cask,rkJun/homebrew-cask,paour/homebrew-cask,jacobdam/homebrew-cask,FinalDes/homebrew-cask,MatzFan/homebrew-cask,phpwutz/homebrew-cask,lalyos/homebrew-cask,malford/homebrew-cask,ninjahoahong/homebrew-cask,wickedsp1d3r/homebrew-cask,a-x-/homebrew-cask,donbobka/homebrew-cask,Gasol/homebrew-cask,gurghet/homebrew-cask,jiashuw/homebrew-cask,lieuwex/homebrew-cask,sparrc/homebrew-cask,inta/homebrew-cask,miku/homebrew-cask,nivanchikov/homebrew-cask,dezon/homebrew-cask,nickpellant/homebrew-cask,xcezx/homebrew-cask,adrianchia/homebrew-cask,linc01n/homebrew-cask,yurikoles/homebrew-cask,wickles/homebrew-cask,lifepillar/homebrew-cask,williamboman/homebrew-cask,bdhess/homebrew-cask,qnm/homebrew-cask,jeroenseegers/homebrew-cask,johndbritton/homebrew-cask,petmoo/homebrew-cask,y00rb/homebrew-cask,royalwang/homebrew-cask,ashishb/homebrew-cask,jen20/homebrew-cask,mauricerkelly/homebrew-cask,huanzhang/homebrew-cask,13k/homebrew-cask,paulombcosta/homebrew-cask,kingthorin/homebrew-cask,xakraz/homebrew-cask,fly19890211/homebrew-cask,jconley/homebrew-cask,ohammersmith/homebrew-cask,mattrobenolt/homebrew-cask,andyli/homebrew-cask,taherio/homebrew-cask,dlovitch/homebrew-cask,ericbn/homebrew-cask,KosherBacon/homebrew-cask,samdoran/homebrew-cask,jeanregisser/homebrew-cask,barravi/homebrew-cask,adriweb/homebrew-cask,katoquro/homebrew-cask,jeroenj/homebrew-cask,sgnh/homebrew-cask,deanmorin/homebrew-cask,axodys/homebrew-cask,nysthee/homebrew-cask,faun/homebrew-cask,andrewschleifer/homebrew-cask,thehunmonkgroup/homebrew-cask,buo/homebrew-cask,iAmGhost/homebrew-cask,gyndav/homebrew-cask,hellosky806/homebrew-cask,larseggert/homebrew-cask,rcuza/homebrew-cask,jamesmlees/homebrew-cask,aguynamedryan/homebrew-cask,lantrix/homebrew-cask,wmorin/homebrew-cask,fazo96/homebrew-cask,diguage/homebrew-cask,kiliankoe/homebrew-cask,mathbunnyru/homebrew-cask,dictcp/homebrew-cask,Labutin/homebrew-cask,Bombenleger/homebrew-cask,rubenerd/homebrew-cask,exherb/homebrew-cask,feniix/homebrew-cask,Nitecon/homebrew-cask,alloy/homebrew-cask,andyshinn/homebrew-cask,lukasbestle/homebrew-cask,stonehippo/homebrew-cask,feniix/homebrew-cask,santoshsahoo/homebrew-cask,jconley/homebrew-cask,exherb/homebrew-cask,jonathanwiesel/homebrew-cask,qnm/homebrew-cask,elyscape/homebrew-cask,spruceb/homebrew-cask,askl56/homebrew-cask,mrmachine/homebrew-cask,sachin21/homebrew-cask,lvicentesanchez/homebrew-cask,gilesdring/homebrew-cask,chrisfinazzo/homebrew-cask,zeusdeux/homebrew-cask,alebcay/homebrew-cask,fwiesel/homebrew-cask,alebcay/homebrew-cask,tarwich/homebrew-cask,slack4u/homebrew-cask,huanzhang/homebrew-cask,singingwolfboy/homebrew-cask,mattrobenolt/homebrew-cask,jhowtan/homebrew-cask,renaudguerin/homebrew-cask,opsdev-ws/homebrew-cask,troyxmccall/homebrew-cask,anbotero/homebrew-cask,iAmGhost/homebrew-cask,doits/homebrew-cask,psibre/homebrew-cask,kei-yamazaki/homebrew-cask,bchatard/homebrew-cask,hyuna917/homebrew-cask,stephenwade/homebrew-cask,robertgzr/homebrew-cask,jangalinski/homebrew-cask,jppelteret/homebrew-cask,Ephemera/homebrew-cask,tangestani/homebrew-cask,yutarody/homebrew-cask,nathanielvarona/homebrew-cask,askl56/homebrew-cask,fwiesel/homebrew-cask,maxnordlund/homebrew-cask,yuhki50/homebrew-cask,royalwang/homebrew-cask,underyx/homebrew-cask,bosr/homebrew-cask,ericbn/homebrew-cask,AndreTheHunter/homebrew-cask,mchlrmrz/homebrew-cask,nanoxd/homebrew-cask,gyugyu/homebrew-cask,tjnycum/homebrew-cask,RickWong/homebrew-cask,mjgardner/homebrew-cask,danielbayley/homebrew-cask,crzrcn/homebrew-cask,rogeriopradoj/homebrew-cask,danielbayley/homebrew-cask,malford/homebrew-cask,lukeadams/homebrew-cask,diguage/homebrew-cask,kirikiriyamama/homebrew-cask,leipert/homebrew-cask,kesara/homebrew-cask,perfide/homebrew-cask,ksylvan/homebrew-cask,sebcode/homebrew-cask,jeanregisser/homebrew-cask,winkelsdorf/homebrew-cask,atsuyim/homebrew-cask,puffdad/homebrew-cask,AndreTheHunter/homebrew-cask,dvdoliveira/homebrew-cask,jpmat296/homebrew-cask,blainesch/homebrew-cask,flada-auxv/homebrew-cask,caskroom/homebrew-cask,BenjaminHCCarr/homebrew-cask,djakarta-trap/homebrew-myCask,danielgomezrico/homebrew-cask,Philosoft/homebrew-cask,dwkns/homebrew-cask,underyx/homebrew-cask,rkJun/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,josa42/homebrew-cask,sirodoht/homebrew-cask,vin047/homebrew-cask,corbt/homebrew-cask,dcondrey/homebrew-cask,jrwesolo/homebrew-cask,elnappo/homebrew-cask,codeurge/homebrew-cask,wayou/homebrew-cask,uetchy/homebrew-cask,mathbunnyru/homebrew-cask,cblecker/homebrew-cask,nicolas-brousse/homebrew-cask,MerelyAPseudonym/homebrew-cask,coneman/homebrew-cask,joshka/homebrew-cask,sanyer/homebrew-cask,RickWong/homebrew-cask,prime8/homebrew-cask,ksylvan/homebrew-cask,johan/homebrew-cask,aki77/homebrew-cask,helloIAmPau/homebrew-cask,yurrriq/homebrew-cask,haha1903/homebrew-cask,pinut/homebrew-cask,farmerchris/homebrew-cask,sosedoff/homebrew-cask,BahtiyarB/homebrew-cask,prime8/homebrew-cask,Fedalto/homebrew-cask,jacobbednarz/homebrew-cask,RJHsiao/homebrew-cask,klane/homebrew-cask,lucasmezencio/homebrew-cask,Ketouem/homebrew-cask,mindriot101/homebrew-cask,chadcatlett/caskroom-homebrew-cask,puffdad/homebrew-cask,jasmas/homebrew-cask,epardee/homebrew-cask,shonjir/homebrew-cask,nicolas-brousse/homebrew-cask,jeroenj/homebrew-cask,helloIAmPau/homebrew-cask,garborg/homebrew-cask,cprecioso/homebrew-cask,nrlquaker/homebrew-cask,chrisRidgers/homebrew-cask,mjgardner/homebrew-cask,inta/homebrew-cask,nathancahill/homebrew-cask,gyugyu/homebrew-cask,lucasmezencio/homebrew-cask,gilesdring/homebrew-cask,lolgear/homebrew-cask,jayshao/homebrew-cask,adrianchia/homebrew-cask,franklouwers/homebrew-cask,andrewschleifer/homebrew-cask,artdevjs/homebrew-cask,wickedsp1d3r/homebrew-cask,joaocc/homebrew-cask,andersonba/homebrew-cask,gustavoavellar/homebrew-cask,usami-k/homebrew-cask,valepert/homebrew-cask,mahori/homebrew-cask,dlackty/homebrew-cask,Ngrd/homebrew-cask,tan9/homebrew-cask,mathbunnyru/homebrew-cask,guylabs/homebrew-cask,coeligena/homebrew-customized,hakamadare/homebrew-cask,gmkey/homebrew-cask,retrography/homebrew-cask,dwkns/homebrew-cask,freeslugs/homebrew-cask,otzy007/homebrew-cask,shonjir/homebrew-cask,d/homebrew-cask,elnappo/homebrew-cask,cedwardsmedia/homebrew-cask,fanquake/homebrew-cask,Amorymeltzer/homebrew-cask,Keloran/homebrew-cask,illusionfield/homebrew-cask,MoOx/homebrew-cask,retrography/homebrew-cask,jawshooah/homebrew-cask,wizonesolutions/homebrew-cask,imgarylai/homebrew-cask,MerelyAPseudonym/homebrew-cask,mokagio/homebrew-cask,mazehall/homebrew-cask,sparrc/homebrew-cask,reelsense/homebrew-cask,n0ts/homebrew-cask,yurrriq/homebrew-cask,rcuza/homebrew-cask,mlocher/homebrew-cask,paour/homebrew-cask,jppelteret/homebrew-cask,vitorgalvao/homebrew-cask,Dremora/homebrew-cask,enriclluelles/homebrew-cask,elseym/homebrew-cask,jen20/homebrew-cask,crmne/homebrew-cask,gregkare/homebrew-cask,faun/homebrew-cask,djmonta/homebrew-cask,athrunsun/homebrew-cask,mwean/homebrew-cask,andyshinn/homebrew-cask,xiongchiamiov/homebrew-cask,nathanielvarona/homebrew-cask,FredLackeyOfficial/homebrew-cask,coeligena/homebrew-customized,zmwangx/homebrew-cask,howie/homebrew-cask,jspahrsummers/homebrew-cask,thehunmonkgroup/homebrew-cask,gibsjose/homebrew-cask,antogg/homebrew-cask,mgryszko/homebrew-cask,BenjaminHCCarr/homebrew-cask,qbmiller/homebrew-cask,yurikoles/homebrew-cask,MisumiRize/homebrew-cask,samshadwell/homebrew-cask,gabrielizaias/homebrew-cask,ianyh/homebrew-cask,afdnlw/homebrew-cask,xight/homebrew-cask,zerrot/homebrew-cask,stevenmaguire/homebrew-cask,lumaxis/homebrew-cask,lukasbestle/homebrew-cask,bric3/homebrew-cask,zeusdeux/homebrew-cask,morsdyce/homebrew-cask,FranklinChen/homebrew-cask,fharbe/homebrew-cask,ajbw/homebrew-cask,napaxton/homebrew-cask,tedski/homebrew-cask,mjgardner/homebrew-cask,Cottser/homebrew-cask,tolbkni/homebrew-cask,3van/homebrew-cask,cohei/homebrew-cask,tedbundyjr/homebrew-cask,remko/homebrew-cask,wolflee/homebrew-cask,jalaziz/homebrew-cask,schneidmaster/homebrew-cask,brianshumate/homebrew-cask,hakamadare/homebrew-cask,otaran/homebrew-cask,zorosteven/homebrew-cask,ksato9700/homebrew-cask,bdhess/homebrew-cask,julienlavergne/homebrew-cask,Whoaa512/homebrew-cask,yuhki50/homebrew-cask,blogabe/homebrew-cask,zorosteven/homebrew-cask,rednoah/homebrew-cask,devmynd/homebrew-cask,johan/homebrew-cask,JacopKane/homebrew-cask,johndbritton/homebrew-cask,christer155/homebrew-cask,janlugt/homebrew-cask,josa42/homebrew-cask,deiga/homebrew-cask,hvisage/homebrew-cask,tedbundyjr/homebrew-cask,BahtiyarB/homebrew-cask,joshka/homebrew-cask,norio-nomura/homebrew-cask,lvicentesanchez/homebrew-cask,moimikey/homebrew-cask,koenrh/homebrew-cask,xtian/homebrew-cask,jgarber623/homebrew-cask,shishi/homebrew-cask,stigkj/homebrew-caskroom-cask,diogodamiani/homebrew-cask,moogar0880/homebrew-cask,kesara/homebrew-cask,samdoran/homebrew-cask,brianshumate/homebrew-cask,neil-ca-moore/homebrew-cask,tan9/homebrew-cask,iamso/homebrew-cask,cclauss/homebrew-cask,y00rb/homebrew-cask,mauricerkelly/homebrew-cask,kolomiichenko/homebrew-cask,tarwich/homebrew-cask,frapposelli/homebrew-cask,danielbayley/homebrew-cask,mahori/homebrew-cask,JacopKane/homebrew-cask,stevehedrick/homebrew-cask,kryhear/homebrew-cask,markthetech/homebrew-cask,schneidmaster/homebrew-cask,muan/homebrew-cask,FredLackeyOfficial/homebrew-cask,a1russell/homebrew-cask,goxberry/homebrew-cask,kamilboratynski/homebrew-cask,drostron/homebrew-cask,m3nu/homebrew-cask,giannitm/homebrew-cask,Keloran/homebrew-cask,MichaelPei/homebrew-cask,pablote/homebrew-cask,otaran/homebrew-cask,JosephViolago/homebrew-cask,Ephemera/homebrew-cask,rednoah/homebrew-cask,norio-nomura/homebrew-cask,rajiv/homebrew-cask,chrisfinazzo/homebrew-cask,shonjir/homebrew-cask,miku/homebrew-cask,alexg0/homebrew-cask,usami-k/homebrew-cask,onlynone/homebrew-cask,n8henrie/homebrew-cask,akiomik/homebrew-cask,fharbe/homebrew-cask,scw/homebrew-cask,sscotth/homebrew-cask,wolflee/homebrew-cask,syscrusher/homebrew-cask,nickpellant/homebrew-cask,shorshe/homebrew-cask,chrisfinazzo/homebrew-cask,kievechua/homebrew-cask,esebastian/homebrew-cask,inz/homebrew-cask,coeligena/homebrew-customized,jedahan/homebrew-cask,adrianchia/homebrew-cask,rickychilcott/homebrew-cask,bgandon/homebrew-cask,0xadada/homebrew-cask,jalaziz/homebrew-cask,mfpierre/homebrew-cask,wmorin/homebrew-cask,nysthee/homebrew-cask,andrewdisley/homebrew-cask,decrement/homebrew-cask,mingzhi22/homebrew-cask,hovancik/homebrew-cask,mwek/homebrew-cask,muan/homebrew-cask,JoelLarson/homebrew-cask,a1russell/homebrew-cask,alebcay/homebrew-cask,okket/homebrew-cask,ky0615/homebrew-cask-1,mikem/homebrew-cask,0rax/homebrew-cask,djmonta/homebrew-cask,LaurentFough/homebrew-cask,stephenwade/homebrew-cask,leipert/homebrew-cask,kostasdizas/homebrew-cask,jtriley/homebrew-cask,samnung/homebrew-cask,akiomik/homebrew-cask,mokagio/homebrew-cask,sanyer/homebrew-cask,Ephemera/homebrew-cask,tjnycum/homebrew-cask,axodys/homebrew-cask,bchatard/homebrew-cask,hyuna917/homebrew-cask,sirodoht/homebrew-cask,remko/homebrew-cask,ebraminio/homebrew-cask,hristozov/homebrew-cask,a1russell/homebrew-cask,franklouwers/homebrew-cask,zerrot/homebrew-cask,fkrone/homebrew-cask,rhendric/homebrew-cask,mingzhi22/homebrew-cask,ericbn/homebrew-cask,daften/homebrew-cask,Fedalto/homebrew-cask,My2ndAngelic/homebrew-cask,m3nu/homebrew-cask,tangestani/homebrew-cask,daften/homebrew-cask,jacobbednarz/homebrew-cask,gerrypower/homebrew-cask,mAAdhaTTah/homebrew-cask,stephenwade/homebrew-cask,winkelsdorf/homebrew-cask,feigaochn/homebrew-cask,MicTech/homebrew-cask,L2G/homebrew-cask,chuanxd/homebrew-cask,jangalinski/homebrew-cask,lolgear/homebrew-cask,ayohrling/homebrew-cask,tmoreira2020/homebrew,julionc/homebrew-cask,seanorama/homebrew-cask,nathancahill/homebrew-cask,skyyuan/homebrew-cask,JoelLarson/homebrew-cask,Saklad5/homebrew-cask,paulbreslin/homebrew-cask,dlackty/homebrew-cask,rubenerd/homebrew-cask,mhubig/homebrew-cask,githubutilities/homebrew-cask,scottsuch/homebrew-cask,astorije/homebrew-cask,nivanchikov/homebrew-cask,jacobdam/homebrew-cask,carlmod/homebrew-cask,csmith-palantir/homebrew-cask,genewoo/homebrew-cask,shoichiaizawa/homebrew-cask,lantrix/homebrew-cask,kevyau/homebrew-cask,rogeriopradoj/homebrew-cask,gyndav/homebrew-cask,samshadwell/homebrew-cask,optikfluffel/homebrew-cask,xight/homebrew-cask,cohei/homebrew-cask,jaredsampson/homebrew-cask,tsparber/homebrew-cask,guylabs/homebrew-cask,jpodlech/homebrew-cask,janlugt/homebrew-cask,cfillion/homebrew-cask,jgarber623/homebrew-cask,crmne/homebrew-cask,mishari/homebrew-cask,opsdev-ws/homebrew-cask,anbotero/homebrew-cask,wastrachan/homebrew-cask,dieterdemeyer/homebrew-cask,pablote/homebrew-cask,jpmat296/homebrew-cask,neil-ca-moore/homebrew-cask,dictcp/homebrew-cask,lauantai/homebrew-cask,hovancik/homebrew-cask,tmoreira2020/homebrew,jedahan/homebrew-cask,My2ndAngelic/homebrew-cask,jmeridth/homebrew-cask,artdevjs/homebrew-cask,joshka/homebrew-cask,alexg0/homebrew-cask,vuquoctuan/homebrew-cask,xyb/homebrew-cask,JosephViolago/homebrew-cask,SentinelWarren/homebrew-cask,sgnh/homebrew-cask,optikfluffel/homebrew-cask,robertgzr/homebrew-cask,maxnordlund/homebrew-cask,kuno/homebrew-cask,supriyantomaftuh/homebrew-cask,moimikey/homebrew-cask,ctrevino/homebrew-cask,n8henrie/homebrew-cask,yumitsu/homebrew-cask,ctrevino/homebrew-cask,decrement/homebrew-cask,af/homebrew-cask,frapposelli/homebrew-cask,bric3/homebrew-cask,tranc99/homebrew-cask,okket/homebrew-cask,alexg0/homebrew-cask,linc01n/homebrew-cask,bkono/homebrew-cask,deanmorin/homebrew-cask,pkq/homebrew-cask,zhuzihhhh/homebrew-cask,joschi/homebrew-cask,enriclluelles/homebrew-cask,optikfluffel/homebrew-cask,joschi/homebrew-cask,qbmiller/homebrew-cask,casidiablo/homebrew-cask,supriyantomaftuh/homebrew-cask,wizonesolutions/homebrew-cask,freeslugs/homebrew-cask,leonmachadowilcox/homebrew-cask,mazehall/homebrew-cask,ksato9700/homebrew-cask,michelegera/homebrew-cask,johnjelinek/homebrew-cask,FinalDes/homebrew-cask,yutarody/homebrew-cask,shorshe/homebrew-cask,renard/homebrew-cask,ajbw/homebrew-cask,JikkuJose/homebrew-cask,delphinus35/homebrew-cask,amatos/homebrew-cask,kevyau/homebrew-cask,mhubig/homebrew-cask,bosr/homebrew-cask,segiddins/homebrew-cask,ch3n2k/homebrew-cask,asins/homebrew-cask,vin047/homebrew-cask,hackhandslabs/homebrew-cask,paulbreslin/homebrew-cask,renard/homebrew-cask,miguelfrde/homebrew-cask,kingthorin/homebrew-cask,chino/homebrew-cask,lcasey001/homebrew-cask,morganestes/homebrew-cask,nrlquaker/homebrew-cask,wesen/homebrew-cask,zchee/homebrew-cask,otzy007/homebrew-cask,howie/homebrew-cask,ahvigil/homebrew-cask,miccal/homebrew-cask,ftiff/homebrew-cask,ky0615/homebrew-cask-1,tsparber/homebrew-cask,tjt263/homebrew-cask,afh/homebrew-cask,epardee/homebrew-cask,mjdescy/homebrew-cask,tjt263/homebrew-cask,squid314/homebrew-cask,doits/homebrew-cask,diogodamiani/homebrew-cask,asbachb/homebrew-cask,kolomiichenko/homebrew-cask,claui/homebrew-cask,caskroom/homebrew-cask,vigosan/homebrew-cask,moonboots/homebrew-cask,deizel/homebrew-cask,julionc/homebrew-cask,joschi/homebrew-cask,toonetown/homebrew-cask,vigosan/homebrew-cask,englishm/homebrew-cask,valepert/homebrew-cask,catap/homebrew-cask,nathanielvarona/homebrew-cask,nanoxd/homebrew-cask,mahori/homebrew-cask,sysbot/homebrew-cask,jasmas/homebrew-cask,devmynd/homebrew-cask,SentinelWarren/homebrew-cask,jaredsampson/homebrew-cask,lukeadams/homebrew-cask,yurikoles/homebrew-cask,bgandon/homebrew-cask | ruby | ## Code Before:
class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.x'
sha256 :no_check
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
:signal => [
[ 'INT', 'fr.madrau.switchresx.daemon' ],
[ 'KILL', 'fr.madrau.switchresx.daemon' ],
],
:files => [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end
## Instruction:
Fix SwitchResX with a version and sha256 to pass test
## Code After:
class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.4'
sha256 "39c36694a1955f3f97bdb3bcb7591be06b601b9557d539abd05b039bcfb8b19f"
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
:signal => [
[ 'INT', 'fr.madrau.switchresx.daemon' ],
[ 'KILL', 'fr.madrau.switchresx.daemon' ],
],
:files => [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end
| class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
- version '4.x'
? ^
+ version '4.4'
? ^
- sha256 :no_check
+ sha256 "39c36694a1955f3f97bdb3bcb7591be06b601b9557d539abd05b039bcfb8b19f"
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
:signal => [
[ 'INT', 'fr.madrau.switchresx.daemon' ],
[ 'KILL', 'fr.madrau.switchresx.daemon' ],
],
:files => [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end | 4 | 0.2 | 2 | 2 |
8036eeae8a6c42e698c664d03303182e21e296e8 | frontend/.storybook/preview-head.html | frontend/.storybook/preview-head.html | <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
| <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
| Add material components css to storybook | Add material components css to storybook
| HTML | mit | patrick91/pycon,patrick91/pycon | html | ## Code Before:
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
## Instruction:
Add material components css to storybook
## Code After:
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
| <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
+ <link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet"> | 1 | 1 | 1 | 0 |
dcb8254b8b40783dcfa6a542cc15c7286755b2ae | config/initializers/secret_token.rb | config/initializers/secret_token.rb | SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
| SoprPlatform::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
| Change to read secret_key from env. variable or fallback to current key | Change to read secret_key from env. variable or fallback to current key
| Ruby | mit | SoPR/sopr-platform,SoPR/sopr-platform | ruby | ## Code Before:
SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
## Instruction:
Change to read secret_key from env. variable or fallback to current key
## Code After:
SoprPlatform::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
| - SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
+ SoprPlatform::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f' | 2 | 2 | 1 | 1 |
b7917112def0a4eceb087576b4ccd2d414f9d004 | test/w3c/index.js | test/w3c/index.js | "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocumentType.html");
w3cTest("dom/nodes/DOMImplementation-createHTMLDocument.html");
w3cTest("dom/nodes/DOMImplementation-hasFeature.html");
w3cTest("dom/nodes/Document-createComment.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.xhtml");
w3cTest("dom/nodes/Document-createTextNode.html");
w3cTest("dom/nodes/Document-implementation.html");
w3cTest("dom/nodes/Document-contentType/contentType/createHTMLDocument.html");
w3cTest("dom/nodes/DocumentType-literal.html");
w3cTest("dom/nodes/DocumentType-literal.xhtml");
w3cTest("dom/nodes/Node-cloneNode.html");
w3cTest("dom/nodes/Node-isEqualNode.xhtml");
w3cTest("dom/traversal/NodeFilter-constants.html");
| "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocumentType.html");
w3cTest("dom/nodes/DOMImplementation-createHTMLDocument.html");
w3cTest("dom/nodes/DOMImplementation-hasFeature.html");
w3cTest("dom/nodes/Document-createComment.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.xhtml");
w3cTest("dom/nodes/Document-createTextNode.html");
w3cTest("dom/nodes/Document-implementation.html");
w3cTest("dom/nodes/Document-contentType/contentType/createHTMLDocument.html");
w3cTest("dom/nodes/DocumentType-literal.html");
w3cTest("dom/nodes/DocumentType-literal.xhtml");
w3cTest("dom/nodes/Node-cloneNode.html");
w3cTest("dom/traversal/NodeFilter-constants.html");
| Remove failing w3c test due to us not supporting data URIs | Remove failing w3c test due to us not supporting data URIs
| JavaScript | mit | vestineo/jsdom,mbostock/jsdom,susaing/jsdom,Sebmaster/jsdom,Ye-Yong-Chi/jsdom,evanlucas/jsdom,susaing/jsdom,kittens/jsdom,cpojer/jsdom,kesla/jsdom,janusnic/jsdom,Sebmaster/jsdom,Ye-Yong-Chi/jsdom,szarouski/jsdom,snuggs/jsdom,Ye-Yong-Chi/jsdom,AshCoolman/jsdom,szarouski/jsdom,aduyng/jsdom,nicolashenry/jsdom,fiftin/jsdom,aduyng/jsdom,kittens/jsdom,medikoo/jsdom,darobin/jsdom,medikoo/jsdom,kittens/jsdom,Zirro/jsdom,sebmck/jsdom,tmpvar/jsdom,zaucy/jsdom,Joris-van-der-Wel/jsdom,nicolashenry/jsdom,evdevgit/jsdom,lcstore/jsdom,Sebmaster/jsdom,cpojer/jsdom,Joris-van-der-Wel/jsdom,Zirro/jsdom,selam/jsdom,vestineo/jsdom,evdevgit/jsdom,mbostock/jsdom,sirbrillig/jsdom,sebmck/jsdom,kevinold/jsdom,beni55/jsdom,sirbrillig/jsdom,fiftin/jsdom,robertknight/jsdom,darobin/jsdom,mzgol/jsdom,cpojer/jsdom,mzgol/jsdom,danieljoppi/jsdom,mzgol/jsdom,robertknight/jsdom,evanlucas/jsdom,snuggs/jsdom,lcstore/jsdom,robertknight/jsdom,mbostock/jsdom,jeffcarp/jsdom,zaucy/jsdom,sirbrillig/jsdom,fiftin/jsdom,aduyng/jsdom,nicolashenry/jsdom,AshCoolman/jsdom,kesla/jsdom,szarouski/jsdom,kesla/jsdom,jeffcarp/jsdom,selam/jsdom,selam/jsdom,AshCoolman/jsdom,vestineo/jsdom,beni55/jsdom,susaing/jsdom,kevinold/jsdom,danieljoppi/jsdom,beni55/jsdom,janusnic/jsdom,danieljoppi/jsdom,sebmck/jsdom,jeffcarp/jsdom,medikoo/jsdom,kevinold/jsdom,tmpvar/jsdom,Joris-van-der-Wel/jsdom,evanlucas/jsdom,evdevgit/jsdom,zaucy/jsdom,janusnic/jsdom,lcstore/jsdom,darobin/jsdom | javascript | ## Code Before:
"use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocumentType.html");
w3cTest("dom/nodes/DOMImplementation-createHTMLDocument.html");
w3cTest("dom/nodes/DOMImplementation-hasFeature.html");
w3cTest("dom/nodes/Document-createComment.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.xhtml");
w3cTest("dom/nodes/Document-createTextNode.html");
w3cTest("dom/nodes/Document-implementation.html");
w3cTest("dom/nodes/Document-contentType/contentType/createHTMLDocument.html");
w3cTest("dom/nodes/DocumentType-literal.html");
w3cTest("dom/nodes/DocumentType-literal.xhtml");
w3cTest("dom/nodes/Node-cloneNode.html");
w3cTest("dom/nodes/Node-isEqualNode.xhtml");
w3cTest("dom/traversal/NodeFilter-constants.html");
## Instruction:
Remove failing w3c test due to us not supporting data URIs
## Code After:
"use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocumentType.html");
w3cTest("dom/nodes/DOMImplementation-createHTMLDocument.html");
w3cTest("dom/nodes/DOMImplementation-hasFeature.html");
w3cTest("dom/nodes/Document-createComment.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.xhtml");
w3cTest("dom/nodes/Document-createTextNode.html");
w3cTest("dom/nodes/Document-implementation.html");
w3cTest("dom/nodes/Document-contentType/contentType/createHTMLDocument.html");
w3cTest("dom/nodes/DocumentType-literal.html");
w3cTest("dom/nodes/DocumentType-literal.xhtml");
w3cTest("dom/nodes/Node-cloneNode.html");
w3cTest("dom/traversal/NodeFilter-constants.html");
| "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocumentType.html");
w3cTest("dom/nodes/DOMImplementation-createHTMLDocument.html");
w3cTest("dom/nodes/DOMImplementation-hasFeature.html");
w3cTest("dom/nodes/Document-createComment.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.html");
w3cTest("dom/nodes/Document-createProcessingInstruction.xhtml");
w3cTest("dom/nodes/Document-createTextNode.html");
w3cTest("dom/nodes/Document-implementation.html");
w3cTest("dom/nodes/Document-contentType/contentType/createHTMLDocument.html");
w3cTest("dom/nodes/DocumentType-literal.html");
w3cTest("dom/nodes/DocumentType-literal.xhtml");
w3cTest("dom/nodes/Node-cloneNode.html");
- w3cTest("dom/nodes/Node-isEqualNode.xhtml");
w3cTest("dom/traversal/NodeFilter-constants.html"); | 1 | 0.045455 | 0 | 1 |
eb31c6c85f563bfbde8f7c3f162db5bac494c368 | README.md | README.md | 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing to edit a config file.
Atom is modern, approachable, and hackable to the core.
Visit [atom.io](http://atom.io) to learn more.
## Installing
Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
Atom will automatically update when a new release is available.
## Building
```sh
git clone git@github.com:atom/atom.git
cd atom
script/build # Creates application at /Applications/Atom.app
```
## Developing
Check out the [guides](https://atom.io/docs/latest) and the [API reference](atom.io/docs/api).
| 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing to edit a config file.
Atom is modern, approachable, and hackable to the core.
Visit [atom.io](http://atom.io) to learn more.
## Installing
Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
Atom will automatically update when a new release is available.
## Building
**OS X Requirements**
* OS X 10.8 or later
* [node.js](http://nodejs.org/)
* Command Line Tools for [Xcode](https://developer.apple.com/xcode/downloads/)
```sh
git clone git@github.com:atom/atom.git
cd atom
script/build # Creates application at /Applications/Atom.app
```
## Developing
Check out the [guides](https://atom.io/docs/latest) and the [API reference](atom.io/docs/api).
| Add OS X build requirements | Add OS X build requirements | Markdown | mit | MjAbuz/atom,jacekkopecky/atom,champagnez/atom,RuiDGoncalves/atom,pengshp/atom,jeremyramin/atom,dannyflax/atom,hellendag/atom,KENJU/atom,jtrose2/atom,abe33/atom,decaffeinate-examples/atom,fang-yufeng/atom,targeter21/atom,YunchengLiao/atom,anuwat121/atom,batjko/atom,oggy/atom,RobinTec/atom,fang-yufeng/atom,acontreras89/atom,ali/atom,vcarrera/atom,isghe/atom,Abdillah/atom,dsandstrom/atom,vinodpanicker/atom,yomybaby/atom,yomybaby/atom,yomybaby/atom,qskycolor/atom,ashneo76/atom,amine7536/atom,AlbertoBarrago/atom,targeter21/atom,ilovezy/atom,hpham04/atom,xream/atom,fang-yufeng/atom,qskycolor/atom,fedorov/atom,mertkahyaoglu/atom,Dennis1978/atom,AlexxNica/atom,yalexx/atom,Austen-G/BlockBuilder,fedorov/atom,jacekkopecky/atom,Austen-G/BlockBuilder,deepfox/atom,ppamorim/atom,Shekharrajak/atom,brettle/atom,abe33/atom,Austen-G/BlockBuilder,hagb4rd/atom,panuchart/atom,alexandergmann/atom,elkingtonmcb/atom,originye/atom,PKRoma/atom,kjav/atom,pengshp/atom,SlimeQ/atom,dsandstrom/atom,Locke23rus/atom,hharchani/atom,sebmck/atom,devoncarew/atom,RobinTec/atom,yomybaby/atom,kc8wxm/atom,dijs/atom,florianb/atom,basarat/atom,Abdillah/atom,kdheepak89/atom,nrodriguez13/atom,hharchani/atom,omarhuanca/atom,FoldingText/atom,charleswhchan/atom,Jandersoft/atom,gabrielPeart/atom,ali/atom,stinsonga/atom,jeremyramin/atom,abcP9110/atom,lpommers/atom,Abdillah/atom,ivoadf/atom,AlbertoBarrago/atom,Hasimir/atom,alfredxing/atom,Neron-X5/atom,devmario/atom,FoldingText/atom,pengshp/atom,Ingramz/atom,yamhon/atom,splodingsocks/atom,ironbox360/atom,Hasimir/atom,bcoe/atom,davideg/atom,0x73/atom,stuartquin/atom,bencolon/atom,qskycolor/atom,bolinfest/atom,champagnez/atom,bolinfest/atom,Ju2ender/atom,crazyquark/atom,john-kelly/atom,Andrey-Pavlov/atom,charleswhchan/atom,ykeisuke/atom,sillvan/atom,jordanbtucker/atom,amine7536/atom,palita01/atom,gzzhanghao/atom,ppamorim/atom,vinodpanicker/atom,nvoron23/atom,atom/atom,Hasimir/atom,jeremyramin/atom,FIT-CSE2410-A-Bombs/atom,mostafaeweda/atom,anuwat121/atom,scippio/atom,Arcanemagus/atom,daxlab/atom,Ingramz/atom,kdheepak89/atom,hharchani/atom,john-kelly/atom,BogusCurry/atom,brumm/atom,helber/atom,nucked/atom,beni55/atom,Andrey-Pavlov/atom,einarmagnus/atom,boomwaiza/atom,deepfox/atom,Ju2ender/atom,niklabh/atom,Klozz/atom,decaffeinate-examples/atom,ralphtheninja/atom,Huaraz2/atom,qiujuer/atom,omarhuanca/atom,FoldingText/atom,efatsi/atom,folpindo/atom,GHackAnonymous/atom,Sangaroonaom/atom,elkingtonmcb/atom,fredericksilva/atom,targeter21/atom,ashneo76/atom,NunoEdgarGub1/atom,deoxilix/atom,phord/atom,abe33/atom,fredericksilva/atom,synaptek/atom,ObviouslyGreen/atom,liuderchi/atom,YunchengLiao/atom,toqz/atom,AdrianVovk/substance-ide,Rychard/atom,scv119/atom,rjattrill/atom,h0dgep0dge/atom,splodingsocks/atom,mnquintana/atom,tjkr/atom,john-kelly/atom,ilovezy/atom,einarmagnus/atom,brettle/atom,Galactix/atom,gzzhanghao/atom,tony612/atom,Mokolea/atom,crazyquark/atom,rookie125/atom,Galactix/atom,ReddTea/atom,rmartin/atom,daxlab/atom,batjko/atom,me6iaton/atom,matthewclendening/atom,Austen-G/BlockBuilder,RuiDGoncalves/atom,RobinTec/atom,deoxilix/atom,pombredanne/atom,GHackAnonymous/atom,kevinrenaers/atom,me6iaton/atom,jtrose2/atom,ardeshirj/atom,vjeux/atom,execjosh/atom,devoncarew/atom,Sangaroonaom/atom,rjattrill/atom,Jdesk/atom,medovob/atom,bryonwinger/atom,bsmr-x-script/atom,yangchenghu/atom,davideg/atom,ykeisuke/atom,gabrielPeart/atom,ReddTea/atom,h0dgep0dge/atom,hagb4rd/atom,codex8/atom,sebmck/atom,jordanbtucker/atom,kaicataldo/atom,dkfiresky/atom,mdumrauf/atom,hagb4rd/atom,toqz/atom,Neron-X5/atom,mertkahyaoglu/atom,0x73/atom,alexandergmann/atom,atom/atom,florianb/atom,ashneo76/atom,matthewclendening/atom,cyzn/atom,abcP9110/atom,omarhuanca/atom,targeter21/atom,avdg/atom,mnquintana/atom,avdg/atom,Arcanemagus/atom,Austen-G/BlockBuilder,liuxiong332/atom,dannyflax/atom,einarmagnus/atom,Neron-X5/atom,Rychard/atom,Galactix/atom,rmartin/atom,liuderchi/atom,stinsonga/atom,kdheepak89/atom,Arcanemagus/atom,bcoe/atom,YunchengLiao/atom,yalexx/atom,chengky/atom,helber/atom,FoldingText/atom,FoldingText/atom,ali/atom,yangchenghu/atom,hpham04/atom,john-kelly/atom,001szymon/atom,dsandstrom/atom,woss/atom,Jandersoft/atom,Shekharrajak/atom,Locke23rus/atom,codex8/atom,Klozz/atom,seedtigo/atom,NunoEdgarGub1/atom,githubteacher/atom,Dennis1978/atom,ivoadf/atom,batjko/atom,darwin/atom,kc8wxm/atom,davideg/atom,jlord/atom,dkfiresky/atom,mertkahyaoglu/atom,tisu2tisu/atom,liuxiong332/atom,mrodalgaard/atom,kittens/atom,sxgao3001/atom,harshdattani/atom,daxlab/atom,kjav/atom,Jandersolutions/atom,alfredxing/atom,me-benni/atom,jtrose2/atom,rjattrill/atom,ezeoleaf/atom,tjkr/atom,bcoe/atom,Jandersoft/atom,tjkr/atom,chfritz/atom,sebmck/atom,dsandstrom/atom,001szymon/atom,beni55/atom,SlimeQ/atom,Ju2ender/atom,tisu2tisu/atom,john-kelly/atom,bj7/atom,vcarrera/atom,matthewclendening/atom,abcP9110/atom,Hasimir/atom,russlescai/atom,SlimeQ/atom,johnhaley81/atom,codex8/atom,lisonma/atom,wiggzz/atom,vjeux/atom,tony612/atom,0x73/atom,dannyflax/atom,synaptek/atom,erikhakansson/atom,fredericksilva/atom,kc8wxm/atom,charleswhchan/atom,medovob/atom,gontadu/atom,amine7536/atom,russlescai/atom,qiujuer/atom,anuwat121/atom,kc8wxm/atom,Jonekee/atom,ObviouslyGreen/atom,constanzaurzua/atom,nvoron23/atom,tony612/atom,svanharmelen/atom,Jandersolutions/atom,Andrey-Pavlov/atom,lovesnow/atom,jlord/atom,ardeshirj/atom,yomybaby/atom,jlord/atom,RuiDGoncalves/atom,GHackAnonymous/atom,basarat/atom,scv119/atom,KENJU/atom,vhutheesing/atom,mertkahyaoglu/atom,jjz/atom,devoncarew/atom,Galactix/atom,BogusCurry/atom,prembasumatary/atom,jlord/atom,amine7536/atom,lisonma/atom,boomwaiza/atom,liuderchi/atom,darwin/atom,CraZySacX/atom,chengky/atom,toqz/atom,AlisaKiatkongkumthon/atom,basarat/atom,NunoEdgarGub1/atom,kaicataldo/atom,johnrizzo1/atom,codex8/atom,Galactix/atom,tanin47/atom,g2p/atom,dannyflax/atom,tanin47/atom,RobinTec/atom,Jandersolutions/atom,vinodpanicker/atom,bryonwinger/atom,sillvan/atom,pkdevbox/atom,basarat/atom,jjz/atom,mrodalgaard/atom,sxgao3001/atom,erikhakansson/atom,NunoEdgarGub1/atom,YunchengLiao/atom,dkfiresky/atom,isghe/atom,ykeisuke/atom,Ingramz/atom,scippio/atom,folpindo/atom,jtrose2/atom,fang-yufeng/atom,chengky/atom,transcranial/atom,jacekkopecky/atom,synaptek/atom,vinodpanicker/atom,Huaraz2/atom,hakatashi/atom,FoldingText/atom,devmario/atom,constanzaurzua/atom,efatsi/atom,Klozz/atom,jlord/atom,ironbox360/atom,sxgao3001/atom,liuxiong332/atom,rmartin/atom,sillvan/atom,AlisaKiatkongkumthon/atom,johnhaley81/atom,ReddTea/atom,abcP9110/atom,gontadu/atom,chengky/atom,nvoron23/atom,MjAbuz/atom,kittens/atom,burodepeper/atom,CraZySacX/atom,n-riesco/atom,johnrizzo1/atom,pombredanne/atom,toqz/atom,MjAbuz/atom,AlbertoBarrago/atom,chengky/atom,ppamorim/atom,Austen-G/BlockBuilder,erikhakansson/atom,batjko/atom,ezeoleaf/atom,nvoron23/atom,vinodpanicker/atom,rlugojr/atom,dannyflax/atom,pkdevbox/atom,lisonma/atom,ardeshirj/atom,sotayamashita/atom,brettle/atom,rxkit/atom,fscherwi/atom,Ju2ender/atom,florianb/atom,vjeux/atom,chfritz/atom,paulcbetts/atom,sebmck/atom,originye/atom,florianb/atom,originye/atom,KENJU/atom,Dennis1978/atom,Jandersoft/atom,brumm/atom,acontreras89/atom,charleswhchan/atom,einarmagnus/atom,andrewleverette/atom,xream/atom,t9md/atom,palita01/atom,g2p/atom,rmartin/atom,liuderchi/atom,me6iaton/atom,RobinTec/atom,rookie125/atom,devoncarew/atom,Neron-X5/atom,sxgao3001/atom,Jandersoft/atom,woss/atom,sekcheong/atom,bencolon/atom,YunchengLiao/atom,Hasimir/atom,Jonekee/atom,woss/atom,me-benni/atom,fscherwi/atom,mostafaeweda/atom,fredericksilva/atom,Sangaroonaom/atom,rsvip/aTom,PKRoma/atom,bsmr-x-script/atom,sebmck/atom,NunoEdgarGub1/atom,chfritz/atom,qskycolor/atom,splodingsocks/atom,hakatashi/atom,mnquintana/atom,bj7/atom,SlimeQ/atom,CraZySacX/atom,efatsi/atom,githubteacher/atom,sekcheong/atom,paulcbetts/atom,ppamorim/atom,deoxilix/atom,nrodriguez13/atom,gzzhanghao/atom,sillvan/atom,cyzn/atom,panuchart/atom,fang-yufeng/atom,001szymon/atom,elkingtonmcb/atom,stuartquin/atom,Shekharrajak/atom,sekcheong/atom,johnrizzo1/atom,atom/atom,kdheepak89/atom,woss/atom,lisonma/atom,helber/atom,G-Baby/atom,gisenberg/atom,n-riesco/atom,Rychard/atom,Jdesk/atom,scv119/atom,G-Baby/atom,Locke23rus/atom,MjAbuz/atom,isghe/atom,execjosh/atom,ironbox360/atom,Jonekee/atom,h0dgep0dge/atom,vjeux/atom,jacekkopecky/atom,paulcbetts/atom,niklabh/atom,FIT-CSE2410-A-Bombs/atom,vhutheesing/atom,hagb4rd/atom,devmario/atom,lovesnow/atom,russlescai/atom,jjz/atom,rmartin/atom,wiggzz/atom,me6iaton/atom,mostafaeweda/atom,yalexx/atom,mnquintana/atom,xream/atom,KENJU/atom,Shekharrajak/atom,lovesnow/atom,devmario/atom,synaptek/atom,g2p/atom,synaptek/atom,einarmagnus/atom,alfredxing/atom,ObviouslyGreen/atom,prembasumatary/atom,svanharmelen/atom,yalexx/atom,kevinrenaers/atom,matthewclendening/atom,vhutheesing/atom,deepfox/atom,AlisaKiatkongkumthon/atom,phord/atom,tmunro/atom,bj7/atom,woss/atom,nvoron23/atom,lpommers/atom,scv119/atom,BogusCurry/atom,bryonwinger/atom,tisu2tisu/atom,crazyquark/atom,kjav/atom,fedorov/atom,dsandstrom/atom,Mokolea/atom,lovesnow/atom,bradgearon/atom,n-riesco/atom,bcoe/atom,burodepeper/atom,sxgao3001/atom,qskycolor/atom,qiujuer/atom,tmunro/atom,harshdattani/atom,pombredanne/atom,oggy/atom,hpham04/atom,lovesnow/atom,rsvip/aTom,kandros/atom,constanzaurzua/atom,ali/atom,stinsonga/atom,paulcbetts/atom,basarat/atom,n-riesco/atom,Abdillah/atom,tmunro/atom,kittens/atom,gisenberg/atom,harshdattani/atom,decaffeinate-examples/atom,codex8/atom,h0dgep0dge/atom,phord/atom,kittens/atom,devmario/atom,t9md/atom,kdheepak89/atom,dijs/atom,rsvip/aTom,ilovezy/atom,decaffeinate-examples/atom,svanharmelen/atom,sotayamashita/atom,MjAbuz/atom,hharchani/atom,isghe/atom,rsvip/aTom,jjz/atom,ezeoleaf/atom,seedtigo/atom,jtrose2/atom,bencolon/atom,bolinfest/atom,darwin/atom,bryonwinger/atom,Rodjana/atom,mertkahyaoglu/atom,russlescai/atom,nrodriguez13/atom,crazyquark/atom,FIT-CSE2410-A-Bombs/atom,charleswhchan/atom,dijs/atom,0x73/atom,Jdesk/atom,florianb/atom,bsmr-x-script/atom,gabrielPeart/atom,gontadu/atom,rjattrill/atom,constanzaurzua/atom,Rodjana/atom,AdrianVovk/substance-ide,qiujuer/atom,DiogoXRP/atom,johnhaley81/atom,andrewleverette/atom,pombredanne/atom,hellendag/atom,stinsonga/atom,batjko/atom,yamhon/atom,n-riesco/atom,rlugojr/atom,sillvan/atom,russlescai/atom,andrewleverette/atom,yalexx/atom,gisenberg/atom,dannyflax/atom,oggy/atom,Jandersolutions/atom,niklabh/atom,kjav/atom,oggy/atom,fscherwi/atom,t9md/atom,cyzn/atom,AlexxNica/atom,Shekharrajak/atom,Andrey-Pavlov/atom,prembasumatary/atom,qiujuer/atom,acontreras89/atom,Ju2ender/atom,crazyquark/atom,vcarrera/atom,rxkit/atom,transcranial/atom,ReddTea/atom,gisenberg/atom,execjosh/atom,tanin47/atom,vcarrera/atom,rlugojr/atom,boomwaiza/atom,beni55/atom,kandros/atom,me-benni/atom,ilovezy/atom,omarhuanca/atom,hakatashi/atom,pkdevbox/atom,ezeoleaf/atom,alexandergmann/atom,bradgearon/atom,jacekkopecky/atom,fredericksilva/atom,davideg/atom,Huaraz2/atom,dkfiresky/atom,abcP9110/atom,SlimeQ/atom,Neron-X5/atom,davideg/atom,GHackAnonymous/atom,brumm/atom,devoncarew/atom,hpham04/atom,hharchani/atom,githubteacher/atom,champagnez/atom,hakatashi/atom,deepfox/atom,gisenberg/atom,kandros/atom,kjav/atom,lpommers/atom,isghe/atom,bradgearon/atom,sekcheong/atom,acontreras89/atom,constanzaurzua/atom,hagb4rd/atom,tony612/atom,seedtigo/atom,scippio/atom,mostafaeweda/atom,omarhuanca/atom,amine7536/atom,sekcheong/atom,avdg/atom,ppamorim/atom,yangchenghu/atom,nucked/atom,vjeux/atom,mdumrauf/atom,jacekkopecky/atom,ali/atom,DiogoXRP/atom,rookie125/atom,stuartquin/atom,mdumrauf/atom,Rodjana/atom,toqz/atom,Jdesk/atom,jjz/atom,rxkit/atom,liuxiong332/atom,ivoadf/atom,mrodalgaard/atom,panuchart/atom,prembasumatary/atom,dkfiresky/atom,fedorov/atom,G-Baby/atom,KENJU/atom,splodingsocks/atom,wiggzz/atom,pombredanne/atom,DiogoXRP/atom,acontreras89/atom,burodepeper/atom,AlexxNica/atom,tony612/atom,Jdesk/atom,mostafaeweda/atom,ralphtheninja/atom,kittens/atom,kevinrenaers/atom,GHackAnonymous/atom,Mokolea/atom,hellendag/atom,matthewclendening/atom,mnquintana/atom,vcarrera/atom,ilovezy/atom,bcoe/atom,deepfox/atom,prembasumatary/atom,PKRoma/atom,me6iaton/atom,sotayamashita/atom,lisonma/atom,Abdillah/atom,fedorov/atom,hpham04/atom,palita01/atom,kaicataldo/atom,AdrianVovk/substance-ide,targeter21/atom,yamhon/atom,oggy/atom,ralphtheninja/atom,kc8wxm/atom,basarat/atom,ReddTea/atom,nucked/atom,jordanbtucker/atom,medovob/atom,Jandersolutions/atom,liuxiong332/atom,folpindo/atom,rsvip/aTom,transcranial/atom,Andrey-Pavlov/atom | markdown | ## Code Before:

Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing to edit a config file.
Atom is modern, approachable, and hackable to the core.
Visit [atom.io](http://atom.io) to learn more.
## Installing
Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
Atom will automatically update when a new release is available.
## Building
```sh
git clone git@github.com:atom/atom.git
cd atom
script/build # Creates application at /Applications/Atom.app
```
## Developing
Check out the [guides](https://atom.io/docs/latest) and the [API reference](atom.io/docs/api).
## Instruction:
Add OS X build requirements
## Code After:

Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing to edit a config file.
Atom is modern, approachable, and hackable to the core.
Visit [atom.io](http://atom.io) to learn more.
## Installing
Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
Atom will automatically update when a new release is available.
## Building
**OS X Requirements**
* OS X 10.8 or later
* [node.js](http://nodejs.org/)
* Command Line Tools for [Xcode](https://developer.apple.com/xcode/downloads/)
```sh
git clone git@github.com:atom/atom.git
cd atom
script/build # Creates application at /Applications/Atom.app
```
## Developing
Check out the [guides](https://atom.io/docs/latest) and the [API reference](atom.io/docs/api).
| 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing to edit a config file.
Atom is modern, approachable, and hackable to the core.
Visit [atom.io](http://atom.io) to learn more.
## Installing
Download the latest [Atom release](https://github.com/atom/atom/releases/latest).
Atom will automatically update when a new release is available.
## Building
+
+ **OS X Requirements**
+ * OS X 10.8 or later
+ * [node.js](http://nodejs.org/)
+ * Command Line Tools for [Xcode](https://developer.apple.com/xcode/downloads/)
+
```sh
git clone git@github.com:atom/atom.git
cd atom
script/build # Creates application at /Applications/Atom.app
```
## Developing
Check out the [guides](https://atom.io/docs/latest) and the [API reference](atom.io/docs/api). | 6 | 0.214286 | 6 | 0 |
97cad04065ca86a8d35fbd2cf376b0b85b8453da | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: {
task: {
src: ['public/index.html']
}
},
jslint: {
server: {
src: 'api/**/*.js',
directives: {
node: true,
white: true
},
options: {
failOnError: false
}
}
},
jscoverage: {
src: {
expand: true,
cwd: 'api/',
src: ['**/*.js'],
dest: 'api-cov',
ext: '.js'
}
},
mochaTest: {
test: {
options: {
reporter: 'mocha-lcov-reporter',
captureFile: 'api-cov/output/mocha-lcov-reporter.out',
quiet: false
},
src: ['test/**/*.js']
}
},
coveralls: {
options: {
force: false
},
test: {
src: 'api-cov/output/mocha-lcov-reporter.out'
}
}
});
// Register tasks
grunt.registerTask('default', ['wiredep']);
grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest']);
grunt.registerTask('travis', ['test', 'coveralls']);
}; | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: {
task: {
src: ['public/index.html']
}
},
jslint: {
server: {
src: 'api/**/*.js',
directives: {
node: true,
white: true
},
options: {
failOnError: false
}
}
},
jscoverage: {
src: {
expand: true,
cwd: 'api/',
src: ['**/*.js'],
dest: 'api-cov',
ext: '.js'
}
},
mochaTest: {
travis: {
options: {
reporter: 'mocha-lcov-reporter',
captureFile: 'api-cov/output/mocha-lcov-reporter.out',
quiet: false
},
src: ['test/**/*.js']
},
test: {
src: ['test/**/*.js']
}
},
coveralls: {
options: {
force: false
},
test: {
src: 'api-cov/output/mocha-lcov-reporter.out'
}
}
});
// Register tasks
grunt.registerTask('default', ['wiredep']);
grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest:test']);
grunt.registerTask('travis', ['jslint', 'jscoverage', 'mochaTest:travis', 'coveralls']);
}; | Make so that grunt test is more human readable and in travis use grunt travis that do coveralls | Make so that grunt test is more human readable and in travis use grunt travis that do coveralls
| JavaScript | mit | Cultti/copy-and-paste-server,Cultti/copy-and-paste-server | javascript | ## Code Before:
'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: {
task: {
src: ['public/index.html']
}
},
jslint: {
server: {
src: 'api/**/*.js',
directives: {
node: true,
white: true
},
options: {
failOnError: false
}
}
},
jscoverage: {
src: {
expand: true,
cwd: 'api/',
src: ['**/*.js'],
dest: 'api-cov',
ext: '.js'
}
},
mochaTest: {
test: {
options: {
reporter: 'mocha-lcov-reporter',
captureFile: 'api-cov/output/mocha-lcov-reporter.out',
quiet: false
},
src: ['test/**/*.js']
}
},
coveralls: {
options: {
force: false
},
test: {
src: 'api-cov/output/mocha-lcov-reporter.out'
}
}
});
// Register tasks
grunt.registerTask('default', ['wiredep']);
grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest']);
grunt.registerTask('travis', ['test', 'coveralls']);
};
## Instruction:
Make so that grunt test is more human readable and in travis use grunt travis that do coveralls
## Code After:
'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: {
task: {
src: ['public/index.html']
}
},
jslint: {
server: {
src: 'api/**/*.js',
directives: {
node: true,
white: true
},
options: {
failOnError: false
}
}
},
jscoverage: {
src: {
expand: true,
cwd: 'api/',
src: ['**/*.js'],
dest: 'api-cov',
ext: '.js'
}
},
mochaTest: {
travis: {
options: {
reporter: 'mocha-lcov-reporter',
captureFile: 'api-cov/output/mocha-lcov-reporter.out',
quiet: false
},
src: ['test/**/*.js']
},
test: {
src: ['test/**/*.js']
}
},
coveralls: {
options: {
force: false
},
test: {
src: 'api-cov/output/mocha-lcov-reporter.out'
}
}
});
// Register tasks
grunt.registerTask('default', ['wiredep']);
grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest:test']);
grunt.registerTask('travis', ['jslint', 'jscoverage', 'mochaTest:travis', 'coveralls']);
}; | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: {
task: {
src: ['public/index.html']
}
},
jslint: {
server: {
src: 'api/**/*.js',
directives: {
node: true,
white: true
},
options: {
failOnError: false
}
}
},
jscoverage: {
src: {
expand: true,
cwd: 'api/',
src: ['**/*.js'],
dest: 'api-cov',
ext: '.js'
}
},
mochaTest: {
- test: {
? ^ -
+ travis: {
? ^^^^
options: {
reporter: 'mocha-lcov-reporter',
captureFile: 'api-cov/output/mocha-lcov-reporter.out',
quiet: false
},
+ src: ['test/**/*.js']
+ },
+ test: {
src: ['test/**/*.js']
}
},
coveralls: {
options: {
force: false
},
test: {
src: 'api-cov/output/mocha-lcov-reporter.out'
}
}
});
// Register tasks
grunt.registerTask('default', ['wiredep']);
- grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest']);
+ grunt.registerTask('test', ['jslint', 'jscoverage', 'mochaTest:test']);
? +++++
- grunt.registerTask('travis', ['test', 'coveralls']);
+ grunt.registerTask('travis', ['jslint', 'jscoverage', 'mochaTest:travis', 'coveralls']);
? +++++ ++++++++++++++++++++++++ +++++++
}; | 9 | 0.147541 | 6 | 3 |
0b38ef62240fc88a87486e1e81c4313e5ff8d833 | _data/next-event.yml | _data/next-event.yml | date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Topic TBA
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: Topic TBA
image: images/speakers/jamie-2.jpg
- speaker_name: Panel Discussion
info: On the topic of Ember Components
image: images/speakers/panel.jpg
| date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Architecting for the Enterprise
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: Using Persistent Data Structures in Ember.js
image: images/speakers/jamie-2.jpg
- speaker_name: Panel Discussion
info: On the topic of Ember Components
image: images/speakers/panel.jpg
| Add talk titles for March 2014 | Add talk titles for March 2014
| YAML | mit | emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io | yaml | ## Code Before:
date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Topic TBA
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: Topic TBA
image: images/speakers/jamie-2.jpg
- speaker_name: Panel Discussion
info: On the topic of Ember Components
image: images/speakers/panel.jpg
## Instruction:
Add talk titles for March 2014
## Code After:
date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Architecting for the Enterprise
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: Using Persistent Data Structures in Ember.js
image: images/speakers/jamie-2.jpg
- speaker_name: Panel Discussion
info: On the topic of Ember Components
image: images/speakers/panel.jpg
| date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
- info: Topic TBA
+ info: Architecting for the Enterprise
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
- info: Topic TBA
+ info: Using Persistent Data Structures in Ember.js
image: images/speakers/jamie-2.jpg
- speaker_name: Panel Discussion
info: On the topic of Ember Components
image: images/speakers/panel.jpg | 4 | 0.266667 | 2 | 2 |
0829ca1bb133841efd9ff1753384b0895c1be924 | nightbus/utils.py | nightbus/utils.py |
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
else:
if separator:
return list(itertools.chain.from_iterable(
item.split(separator) for item in string_or_list_or_none))
else:
return string_or_list_or_none or []
|
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
elif string_or_list_or_none is not None:
if separator:
return list(itertools.chain.from_iterable(
item.split(separator) for item in string_or_list_or_none))
else:
return string_or_list_or_none
else:
return []
| Fix crash when no commandline args are passed | Fix crash when no commandline args are passed
Regression from 3513da19363b8b4564f199b469d13486996ede57
| Python | apache-2.0 | ssssam/nightbus,ssssam/nightbus | python | ## Code Before:
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
else:
if separator:
return list(itertools.chain.from_iterable(
item.split(separator) for item in string_or_list_or_none))
else:
return string_or_list_or_none or []
## Instruction:
Fix crash when no commandline args are passed
Regression from 3513da19363b8b4564f199b469d13486996ede57
## Code After:
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
elif string_or_list_or_none is not None:
if separator:
return list(itertools.chain.from_iterable(
item.split(separator) for item in string_or_list_or_none))
else:
return string_or_list_or_none
else:
return []
|
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
- else:
+ elif string_or_list_or_none is not None:
if separator:
return list(itertools.chain.from_iterable(
item.split(separator) for item in string_or_list_or_none))
else:
- return string_or_list_or_none or []
? ------
+ return string_or_list_or_none
+ else:
+ return [] | 6 | 0.3 | 4 | 2 |
8118883c82ee2bf9a83b29e1b283a953196db7d6 | addon/components/docs-header/search-box/component.js | addon/components/docs-header/search-box/component.js | import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set('keyboardActivated', true);
},
focusSearch: on(keyUp('Slash'), keyUp('KeyS'), function() {
this.element.querySelector('input').focus();
}),
unfocusSearch: on(keyUp('Escape'), function() {
this.get('on-input')(null);
})
});
| import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set('keyboardActivated', true);
},
focusSearch: on(keyUp('Slash'), function() {
this.element.querySelector('input').focus();
}),
unfocusSearch: on(keyUp('Escape'), function() {
this.get('on-input')(null);
})
});
| Remove shortcut for focusing the searchbox | Remove shortcut for focusing the searchbox
| JavaScript | mit | ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs | javascript | ## Code Before:
import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set('keyboardActivated', true);
},
focusSearch: on(keyUp('Slash'), keyUp('KeyS'), function() {
this.element.querySelector('input').focus();
}),
unfocusSearch: on(keyUp('Escape'), function() {
this.get('on-input')(null);
})
});
## Instruction:
Remove shortcut for focusing the searchbox
## Code After:
import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set('keyboardActivated', true);
},
focusSearch: on(keyUp('Slash'), function() {
this.element.querySelector('input').focus();
}),
unfocusSearch: on(keyUp('Escape'), function() {
this.get('on-input')(null);
})
});
| import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set('keyboardActivated', true);
},
- focusSearch: on(keyUp('Slash'), keyUp('KeyS'), function() {
? ---------------
+ focusSearch: on(keyUp('Slash'), function() {
this.element.querySelector('input').focus();
}),
unfocusSearch: on(keyUp('Escape'), function() {
this.get('on-input')(null);
})
-
}); | 3 | 0.115385 | 1 | 2 |
1bee919342b09f03d0643f1c8153430ba1c9f6e1 | functions.zsh | functions.zsh | source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~/src -type d |fzf) }
# Shortcut to open note files
function note() {
local fname
fname=$(find $HOME/Notes -type f -not -name ".*" | \
fzf --query="$1" --select-1 --exit-0) &&
$EDITOR "$fname"
}
# Reverse IP address
function iprev() {
echo $1 |awk '{split($0,a,"."); printf "%d.%d.%d.%d",a[4],a[3],a[2],a[1]}'
}
# Test if an IP is on the zen.spamhaus.org blacklist
function zen() {
dig +short $(iprev $1).zen.spamhaus.org
}
| source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~/src -type d |fzf) }
# Shortcut to open note files
function note() {
local fname
fname=$(find $HOME/Notes -type f -not -name ".*" | \
fzf --query="$1" --select-1 --exit-0) &&
$EDITOR "$fname"
}
# Reverse IP address
function iprev() {
echo $1 |awk '{split($0,a,"."); printf "%d.%d.%d.%d",a[4],a[3],a[2],a[1]}'
}
# Test if an IP is on the zen.spamhaus.org blacklist using an OpenDNS server
function zen() {
dig +short $(iprev $1).zen.spamhaus.org @208.67.222.222
}
| Fix zen function by adding OpenDNS server | Fix zen function by adding OpenDNS server
| Shell | mit | namsral/dotfiles | shell | ## Code Before:
source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~/src -type d |fzf) }
# Shortcut to open note files
function note() {
local fname
fname=$(find $HOME/Notes -type f -not -name ".*" | \
fzf --query="$1" --select-1 --exit-0) &&
$EDITOR "$fname"
}
# Reverse IP address
function iprev() {
echo $1 |awk '{split($0,a,"."); printf "%d.%d.%d.%d",a[4],a[3],a[2],a[1]}'
}
# Test if an IP is on the zen.spamhaus.org blacklist
function zen() {
dig +short $(iprev $1).zen.spamhaus.org
}
## Instruction:
Fix zen function by adding OpenDNS server
## Code After:
source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~/src -type d |fzf) }
# Shortcut to open note files
function note() {
local fname
fname=$(find $HOME/Notes -type f -not -name ".*" | \
fzf --query="$1" --select-1 --exit-0) &&
$EDITOR "$fname"
}
# Reverse IP address
function iprev() {
echo $1 |awk '{split($0,a,"."); printf "%d.%d.%d.%d",a[4],a[3],a[2],a[1]}'
}
# Test if an IP is on the zen.spamhaus.org blacklist using an OpenDNS server
function zen() {
dig +short $(iprev $1).zen.spamhaus.org @208.67.222.222
}
| source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~/src -type d |fzf) }
# Shortcut to open note files
function note() {
local fname
fname=$(find $HOME/Notes -type f -not -name ".*" | \
fzf --query="$1" --select-1 --exit-0) &&
$EDITOR "$fname"
}
# Reverse IP address
function iprev() {
echo $1 |awk '{split($0,a,"."); printf "%d.%d.%d.%d",a[4],a[3],a[2],a[1]}'
}
- # Test if an IP is on the zen.spamhaus.org blacklist
+ # Test if an IP is on the zen.spamhaus.org blacklist using an OpenDNS server
? ++++++++++++++++++++++++
function zen() {
- dig +short $(iprev $1).zen.spamhaus.org
+ dig +short $(iprev $1).zen.spamhaus.org @208.67.222.222
? ++++++++++++++++
} | 4 | 0.142857 | 2 | 2 |
d5e3d6c3ca285f1037f284cfb78e279c2d1032ec | dojopuzzles/core/urls.py | dojopuzzles/core/urls.py | from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
| from core import views
from django.urls import path
app_name = "core"
urlpatterns = [
path("", views.home, name="home"),
path("about/", views.about, name="about"),
]
| Fix route for main page | Fix route for main page
| Python | mit | rennerocha/dojopuzzles | python | ## Code Before:
from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
## Instruction:
Fix route for main page
## Code After:
from core import views
from django.urls import path
app_name = "core"
urlpatterns = [
path("", views.home, name="home"),
path("about/", views.about, name="about"),
]
| + from core import views
from django.urls import path
-
- from core import views
-
app_name = "core"
urlpatterns = [
- path("home/", views.home, name="home"),
? -----
+ path("", views.home, name="home"),
path("about/", views.about, name="about"),
] | 6 | 0.545455 | 2 | 4 |
b1cfa975eac4c12d48b139e56348050f66adf1e7 | public/css/batali.css | public/css/batali.css | body {
background-image: url('/assets/img/kitchen.jpg');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-position: 0px -175px;
background-repeat: no-repeat;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub_layout {
background-color: rgba(245, 241, 222, .78);
}
| body {
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%), url(/assets/img/kitchen.jpg), url(/assets/img/kitchen.jpg);
background: -moz-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(220,220,220,0.45)), color-stop(100%, rgba(220,220,220,0.45))), url(/assets/img/kitchen.jpg);
background: -webkit-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -o-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -ms-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: linear-gradient(to bottom, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub_layout {
background-color: rgba(245, 245, 245, .78);
}
| Add transparency to the background image for easier viewing | Add transparency to the background image for easier viewing
| CSS | apache-2.0 | esmet/batali,esmet/batali | css | ## Code Before:
body {
background-image: url('/assets/img/kitchen.jpg');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-position: 0px -175px;
background-repeat: no-repeat;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub_layout {
background-color: rgba(245, 241, 222, .78);
}
## Instruction:
Add transparency to the background image for easier viewing
## Code After:
body {
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%), url(/assets/img/kitchen.jpg), url(/assets/img/kitchen.jpg);
background: -moz-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(220,220,220,0.45)), color-stop(100%, rgba(220,220,220,0.45))), url(/assets/img/kitchen.jpg);
background: -webkit-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -o-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -ms-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: linear-gradient(to bottom, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub_layout {
background-color: rgba(245, 245, 245, .78);
}
| body {
- background-image: url('/assets/img/kitchen.jpg');
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%), url(/assets/img/kitchen.jpg), url(/assets/img/kitchen.jpg);
+ background: -moz-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(220,220,220,0.45)), color-stop(100%, rgba(220,220,220,0.45))), url(/assets/img/kitchen.jpg);
+ background: -webkit-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
+ background: -o-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
+ background: -ms-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
+ background: linear-gradient(to bottom, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
- background-position: 0px -175px;
- background-repeat: no-repeat;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub_layout {
- background-color: rgba(245, 241, 222, .78);
? ^ ^^
+ background-color: rgba(245, 245, 245, .78);
? ^ ^^
} | 12 | 0.571429 | 8 | 4 |
b3361654597d0aa72bf083539c1b1a3283d6225f | web/js/scripts.js | web/js/scripts.js | function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
| function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none" || menu.style.display == "") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
| Fix foldable menu only shown on second click glitch. | Fix foldable menu only shown on second click glitch.
| JavaScript | mit | bostaf/is-silex,bostaf/is-silex,bostaf/is-silex | javascript | ## Code Before:
function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
## Instruction:
Fix foldable menu only shown on second click glitch.
## Code After:
function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none" || menu.style.display == "") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
| function toggleMenu()
{
var menu = document.getElementById('main_menu');
- if (menu.style.display == "none") {
+ if (menu.style.display == "none" || menu.style.display == "") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
} | 2 | 0.222222 | 1 | 1 |
49b8841233f8727bc1411cfa5ab82ce45a9aad80 | app/config/security.yml | app/config/security.yml | security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
form_login:
login_path: /login
check_path: /login_check
logout: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_ADMIN }
| security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
form_login:
login_path: /login
check_path: /login_check
logout: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: IS_AUTHENTICATED_REMEMBERED }
| Add access to all users | Add access to all users
| YAML | mit | gitdown-wiki/gitdown-wiki,gitdown-wiki/gitdown-wiki,gitdown-wiki/gitdown-wiki | yaml | ## Code Before:
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
form_login:
login_path: /login
check_path: /login_check
logout: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_ADMIN }
## Instruction:
Add access to all users
## Code After:
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
form_login:
login_path: /login
check_path: /login_check
logout: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: IS_AUTHENTICATED_REMEMBERED }
| security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
form_login:
login_path: /login
check_path: /login_check
logout: true
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/, roles: ROLE_ADMIN }
+ - { path: ^/, roles: IS_AUTHENTICATED_REMEMBERED } | 2 | 0.060606 | 1 | 1 |
d2e57be13fd7537f1c677754e1905b2ea133077f | js/package.json | js/package.json | {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter",
"widgets",
"ipython",
"ipywidgets",
"sankey"
],
"scripts": {
"prepublish": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"json-loader": "^0.5.4",
"webpack": "^1.12.14"
},
"dependencies": {
"d3-sankey-diagram": "^0.5.0",
"d3-selection": "^1.0.5",
"d3-transition": "^1.0.4",
"d3-scale": "^1.0.5",
"jupyter-js-widgets": "^2.1.4",
"save-svg-as-png": "^1.2.0",
"underscore": "^1.8.3"
}
}
| {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter",
"widgets",
"ipython",
"ipywidgets",
"sankey"
],
"scripts": {
"prepublish": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"json-loader": "^0.5.4",
"webpack": "^1.12.14"
},
"dependencies": {
"d3-sankey-diagram": "^0.5.0",
"d3-selection": "^1.0.5",
"d3-transition": "^1.0.4",
"d3-scale": "^1.0.5",
"jupyter-js-widgets": "^2.1.4",
"save-svg-as-png": "ricklupton/saveSvgAsPng#dont-load-about-blank",
"underscore": "^1.8.3"
}
}
| Use my fork of saveSvgAsPng for now | Use my fork of saveSvgAsPng for now
| JSON | mit | ricklupton/ipysankeywidget,ricklupton/ipysankeywidget,ricklupton/ipysankeywidget | json | ## Code Before:
{
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter",
"widgets",
"ipython",
"ipywidgets",
"sankey"
],
"scripts": {
"prepublish": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"json-loader": "^0.5.4",
"webpack": "^1.12.14"
},
"dependencies": {
"d3-sankey-diagram": "^0.5.0",
"d3-selection": "^1.0.5",
"d3-transition": "^1.0.4",
"d3-scale": "^1.0.5",
"jupyter-js-widgets": "^2.1.4",
"save-svg-as-png": "^1.2.0",
"underscore": "^1.8.3"
}
}
## Instruction:
Use my fork of saveSvgAsPng for now
## Code After:
{
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter",
"widgets",
"ipython",
"ipywidgets",
"sankey"
],
"scripts": {
"prepublish": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"json-loader": "^0.5.4",
"webpack": "^1.12.14"
},
"dependencies": {
"d3-sankey-diagram": "^0.5.0",
"d3-selection": "^1.0.5",
"d3-transition": "^1.0.4",
"d3-scale": "^1.0.5",
"jupyter-js-widgets": "^2.1.4",
"save-svg-as-png": "ricklupton/saveSvgAsPng#dont-load-about-blank",
"underscore": "^1.8.3"
}
}
| {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter",
"widgets",
"ipython",
"ipywidgets",
"sankey"
],
"scripts": {
"prepublish": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"json-loader": "^0.5.4",
"webpack": "^1.12.14"
},
"dependencies": {
"d3-sankey-diagram": "^0.5.0",
"d3-selection": "^1.0.5",
"d3-transition": "^1.0.4",
"d3-scale": "^1.0.5",
"jupyter-js-widgets": "^2.1.4",
- "save-svg-as-png": "^1.2.0",
+ "save-svg-as-png": "ricklupton/saveSvgAsPng#dont-load-about-blank",
"underscore": "^1.8.3"
}
} | 2 | 0.055556 | 1 | 1 |
7eea6ea0fea136bbd48bb9f60cb9015aed1df37e | src/js/Filter/Filter.ts | src/js/Filter/Filter.ts | ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
private ruleSet: any = {};
constructor(dataSet: T[], ruleSet: any)
{
this.originalDataSet = dataSet;
this.ruleSet = ruleSet;
}
public addFilterFunction = (filterFunc: IFilterFunction<T>): IFilter<T> =>
{
this.filterFunctions.push(filterFunc);
return this;
}
public addFilterFunctions = (filterFunctions: IFilterFunction<T>[]): IFilter<T> =>
{
filterFunctions.forEach(f => this.filterFunctions.push(f));
return this;
}
public filter = (): T[] =>
{
this.filteredDataSet = clone(this.originalDataSet);
for (var i = 0; i < this.filterFunctions.length; i ++) {
let func = this.filterFunctions[i];
this.filteredDataSet = func(this.filteredDataSet, this.ruleSet);
}
return this.originalDataSet;
}
};
| ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
private ruleSet: any = {};
constructor(dataSet: T[], ruleSet: any)
{
this.originalDataSet = dataSet;
this.ruleSet = ruleSet;
}
public addFilterFunction = (filterFunc: IFilterFunction<T>): IFilter<T> =>
{
this.filterFunctions.push(filterFunc);
return this;
}
public addFilterFunctions = (filterFunctions: IFilterFunction<T>[]): IFilter<T> =>
{
filterFunctions.forEach(f => this.filterFunctions.push(f));
return this;
}
public filter = (): T[] =>
{
this.filteredDataSet = clone(this.originalDataSet);
for (var i = 0; i < this.filterFunctions.length; i++) {
let func = this.filterFunctions[i];
this.filteredDataSet = func(this.filteredDataSet, this.ruleSet);
}
return this.filteredDataSet;
}
};
export default Filter; | Fix filter to return the filtered data set lol | Fix filter to return the filtered data set lol
| TypeScript | mit | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | typescript | ## Code Before:
///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
private ruleSet: any = {};
constructor(dataSet: T[], ruleSet: any)
{
this.originalDataSet = dataSet;
this.ruleSet = ruleSet;
}
public addFilterFunction = (filterFunc: IFilterFunction<T>): IFilter<T> =>
{
this.filterFunctions.push(filterFunc);
return this;
}
public addFilterFunctions = (filterFunctions: IFilterFunction<T>[]): IFilter<T> =>
{
filterFunctions.forEach(f => this.filterFunctions.push(f));
return this;
}
public filter = (): T[] =>
{
this.filteredDataSet = clone(this.originalDataSet);
for (var i = 0; i < this.filterFunctions.length; i ++) {
let func = this.filterFunctions[i];
this.filteredDataSet = func(this.filteredDataSet, this.ruleSet);
}
return this.originalDataSet;
}
};
## Instruction:
Fix filter to return the filtered data set lol
## Code After:
///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
private ruleSet: any = {};
constructor(dataSet: T[], ruleSet: any)
{
this.originalDataSet = dataSet;
this.ruleSet = ruleSet;
}
public addFilterFunction = (filterFunc: IFilterFunction<T>): IFilter<T> =>
{
this.filterFunctions.push(filterFunc);
return this;
}
public addFilterFunctions = (filterFunctions: IFilterFunction<T>[]): IFilter<T> =>
{
filterFunctions.forEach(f => this.filterFunctions.push(f));
return this;
}
public filter = (): T[] =>
{
this.filteredDataSet = clone(this.originalDataSet);
for (var i = 0; i < this.filterFunctions.length; i++) {
let func = this.filterFunctions[i];
this.filteredDataSet = func(this.filteredDataSet, this.ruleSet);
}
return this.filteredDataSet;
}
};
export default Filter; | ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
private ruleSet: any = {};
constructor(dataSet: T[], ruleSet: any)
{
this.originalDataSet = dataSet;
this.ruleSet = ruleSet;
}
public addFilterFunction = (filterFunc: IFilterFunction<T>): IFilter<T> =>
{
this.filterFunctions.push(filterFunc);
return this;
}
public addFilterFunctions = (filterFunctions: IFilterFunction<T>[]): IFilter<T> =>
{
filterFunctions.forEach(f => this.filterFunctions.push(f));
return this;
}
public filter = (): T[] =>
{
this.filteredDataSet = clone(this.originalDataSet);
- for (var i = 0; i < this.filterFunctions.length; i ++) {
? -
+ for (var i = 0; i < this.filterFunctions.length; i++) {
let func = this.filterFunctions[i];
this.filteredDataSet = func(this.filteredDataSet, this.ruleSet);
}
- return this.originalDataSet;
? ^ ^^^^^^
+ return this.filteredDataSet;
? ^^^^^ ^^
}
};
+
+ export default Filter; | 6 | 0.125 | 4 | 2 |
f954d984b6ea0e6f037eaa481e39bb891953696a | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
<div class="panel-body">
{% if faqFeedback %}
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if not faqFeedback %}
<div class="panel-body">
<p>{{ 'msg.NoFeedback'|trans }}</p>
</div>
{% endif %}
</div>
<div class="panel-footer">
<a href="{{ geturl('index','faq' ) }}"><span>{{ 'lbl.AllQuestions'|trans|capitalize }}</span></a>
</div>
</div>
| {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
{% if faqFeedback %}
<div class="panel-body">
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if not faqFeedback %}
<div class="panel-body">
<p>{{ 'msg.NoFeedback'|trans }}</p>
</div>
{% endif %}
<div class="panel-footer">
<a href="{{ geturl('index','faq' ) }}"><span>{{ 'lbl.AllQuestions'|trans|capitalize }}</span></a>
</div>
</div>
| Fix double panel body faq widget when there are no questions | Fix double panel body faq widget when there are no questions
| Twig | mit | Katrienvh/forkcms,vytsci/forkcms,Katrienvh/forkcms,mathiashelin/forkcms,sumocoders/forkcms,Thijzer/forkcms,mathiashelin/forkcms,tommyvdv/forkcms,jeroendesloovere/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,vytenizs/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,tommyvdv/forkcms,DegradationOfMankind/forkcms,forkcms/forkcms,vytsci/forkcms,jeroendesloovere/forkcms,carakas/forkcms,forkcms/forkcms,justcarakas/forkcms,bartdc/forkcms,jeroendesloovere/forkcms,mathiashelin/forkcms,dmoerman/forkcms,Katrienvh/forkcms,jessedobbelaere/forkcms,sumocoders/forkcms,riadvice/forkcms,justcarakas/forkcms,carakas/forkcms,vytsci/forkcms,jeroendesloovere/forkcms,Thijzer/forkcms,carakas/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,justcarakas/forkcms,mathiashelin/forkcms,bartdc/forkcms,tommyvdv/forkcms,bartdc/forkcms,carakas/forkcms,dmoerman/forkcms,Thijzer/forkcms,jacob-v-dam/forkcms,tommyvdv/forkcms,carakas/forkcms,jessedobbelaere/forkcms,jacob-v-dam/forkcms,DegradationOfMankind/forkcms,jacob-v-dam/forkcms,DegradationOfMankind/forkcms,dmoerman/forkcms,riadvice/forkcms,sumocoders/forkcms,DegradationOfMankind/forkcms,Katrienvh/forkcms,jessedobbelaere/forkcms,riadvice/forkcms,forkcms/forkcms,forkcms/forkcms,jessedobbelaere/forkcms,jacob-v-dam/forkcms,vytenizs/forkcms,vytenizs/forkcms,riadvice/forkcms | twig | ## Code Before:
{# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
<div class="panel-body">
{% if faqFeedback %}
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if not faqFeedback %}
<div class="panel-body">
<p>{{ 'msg.NoFeedback'|trans }}</p>
</div>
{% endif %}
</div>
<div class="panel-footer">
<a href="{{ geturl('index','faq' ) }}"><span>{{ 'lbl.AllQuestions'|trans|capitalize }}</span></a>
</div>
</div>
## Instruction:
Fix double panel body faq widget when there are no questions
## Code After:
{# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
{% if faqFeedback %}
<div class="panel-body">
<table class="table table-striped dataGrid">
<tbody>
{% for _itr_12 in faqFeedback %}
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
<td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% if not faqFeedback %}
<div class="panel-body">
<p>{{ 'msg.NoFeedback'|trans }}</p>
</div>
{% endif %}
<div class="panel-footer">
<a href="{{ geturl('index','faq' ) }}"><span>{{ 'lbl.AllQuestions'|trans|capitalize }}</span></a>
</div>
</div>
| {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
- <div class="panel-body">
{% if faqFeedback %}
+ <div class="panel-body">
- <table class="table table-striped dataGrid">
+ <table class="table table-striped dataGrid">
? ++
- <tbody>
+ <tbody>
? ++
- {% for _itr_12 in faqFeedback %}
+ {% for _itr_12 in faqFeedback %}
? ++
- <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
+ <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
? ++
- <td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
+ <td><a href="{{ _itr_12.full_url }}">{{ _itr_12.text|truncate(150 ) }}</a></td>
? ++
- </tr>
+ </tr>
? ++
- {% endfor %}
+ {% endfor %}
? ++
- </tbody>
+ </tbody>
? ++
- </table>
+ </table>
? ++
+ </div>
{% endif %}
{% if not faqFeedback %}
<div class="panel-body">
<p>{{ 'msg.NoFeedback'|trans }}</p>
</div>
{% endif %}
- </div>
<div class="panel-footer">
<a href="{{ geturl('index','faq' ) }}"><span>{{ 'lbl.AllQuestions'|trans|capitalize }}</span></a>
</div>
</div> | 22 | 0.733333 | 11 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.