Datasets:

commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
82d470fdd8cb51d0dcfe7b73a7eea23086a5d05d
README.md
README.md
Eclipse project for android to use USB Webcam. To run this application, the following conditions should be satisfied. 1) The kernel is V4L2 enabled, e.g., CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_COMMON=y CONFIG_VIDEO_MEDIA=y CONFIG_USB_VIDEO_CLASS=y CONFIG_V4L_USB_DRIVERS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y 2) The permission of /dev/video0 is set 0666 in /ueventd.xxxx.rc 3) USB WebCam is UVC camera, and it supports 640x480 resolution with YUYV format. Supported platform : Iconia Tab A500. This application will also work on V4L2-enabled pandaboard and beagleboard.
Eclipse project for android to use USB Webcam. To run this application, the following conditions should be satisfied. 1) The kernel is V4L2 enabled, e.g., CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_COMMON=y CONFIG_VIDEO_MEDIA=y CONFIG_USB_VIDEO_CLASS=y CONFIG_V4L_USB_DRIVERS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y 2) The permission of /dev/video0 is set 0666 in /ueventd.xxxx.rc 3) USB WebCam is UVC camera, and it supports 640x480 resolution with YUYV format. Supported platform : Iconia Tab A500. This application will also work on V4L2-enabled pandaboard and beagleboard. ## Fix video0 permissions on a rooted Nexus 7 If you're running your own image, edit the file `/ueventd.rc` and re-flash: ``` /dev/video0 0666 root root ``` If you are running stock, you need to manually change the permissions of the video device each time you attach it: ``` su chmod 666 /dev/video0 ```
Add docs for Nexus 7.
Add docs for Nexus 7.
Markdown
bsd-3-clause
harayz/android-webcam,jackyglony/android-webcam,openxc/android-webcam,jackyglony/android-webcam,aynulhassan/android-webcam,harayz/android-webcam,openxc/android-webcam,aynulhassan/android-webcam
markdown
## Code Before: Eclipse project for android to use USB Webcam. To run this application, the following conditions should be satisfied. 1) The kernel is V4L2 enabled, e.g., CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_COMMON=y CONFIG_VIDEO_MEDIA=y CONFIG_USB_VIDEO_CLASS=y CONFIG_V4L_USB_DRIVERS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y 2) The permission of /dev/video0 is set 0666 in /ueventd.xxxx.rc 3) USB WebCam is UVC camera, and it supports 640x480 resolution with YUYV format. Supported platform : Iconia Tab A500. This application will also work on V4L2-enabled pandaboard and beagleboard. ## Instruction: Add docs for Nexus 7. ## Code After: Eclipse project for android to use USB Webcam. To run this application, the following conditions should be satisfied. 1) The kernel is V4L2 enabled, e.g., CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_COMMON=y CONFIG_VIDEO_MEDIA=y CONFIG_USB_VIDEO_CLASS=y CONFIG_V4L_USB_DRIVERS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y 2) The permission of /dev/video0 is set 0666 in /ueventd.xxxx.rc 3) USB WebCam is UVC camera, and it supports 640x480 resolution with YUYV format. Supported platform : Iconia Tab A500. This application will also work on V4L2-enabled pandaboard and beagleboard. ## Fix video0 permissions on a rooted Nexus 7 If you're running your own image, edit the file `/ueventd.rc` and re-flash: ``` /dev/video0 0666 root root ``` If you are running stock, you need to manually change the permissions of the video device each time you attach it: ``` su chmod 666 /dev/video0 ```
7abfba2834aace95777de3c56869fe0bae501fdc
zsh/aliases.zsh
zsh/aliases.zsh
if [[ "$os" = "$linux_str" ]]; then alias ls='ls --color=auto' alias dir='dir --color=auto' # Pacman aliases alias pacman=run_pacman # ssh aliases alias usshfs='fusermount -u $HOME/Remote' # set monitor brighness alias sb=set_brightness alias sbr=set_brightness_rel # get current brightness alias gb=get_brightness alias no=notify elif [[ "$os" = "$osx_str" ]]; then alias ls='ls -G' # ssh aliases alias usshfs='umount $HOME/Remote' fi alias gcssh='gcloud compute ssh' # Some useful tmux alias alias t='tmux new-session -s' # Create new session, should pass name alias ta='tmux a -t' # Attach to a session alias tn='tmux new-session -t' # Attach to a session, independent control alias tl='tmux ls' alias tk='tmux kill-session -t' alias nv=nvim alias grep='grep --color=always' # Protect me from myself alias rm='echo "No."; false' # trash-cli alias tm=trash-put # man aliases alias man=run_man # Compression aliases alias tarx='tar -xvf' alias targz='tar -zxvf' alias tarbz2= 'tar -jxvf' # Aliases for stack managed executables alias sghc='stack ghc' alias srunghc='stack runghc'
if [[ "$os" = "$linux_str" ]]; then alias ls='ls --color=auto' alias dir='dir --color=auto' # Pacman aliases alias pacman=run_pacman # ssh aliases alias usshfs='fusermount -u $HOME/Remote' # set monitor brighness alias sb=set_brightness alias sbr=set_brightness_rel # get current brightness alias gb=get_brightness alias no=notify elif [[ "$os" = "$osx_str" ]]; then alias ls='ls -G' # ssh aliases alias usshfs='umount $HOME/Remote' fi alias gcssh='TERM=xterm-256color gcloud compute ssh' # Some useful tmux alias alias t='tmux new-session -s' # Create new session, should pass name alias ta='tmux a -t' # Attach to a session alias tn='tmux new-session -t' # Attach to a session, independent control alias tl='tmux ls' alias tk='tmux kill-session -t' alias nv=nvim alias grep='grep --color=always' # Protect me from myself alias rm='echo "No."; false' # trash-cli alias tm=trash-put # man aliases alias man=run_man # Compression aliases alias tarx='tar -xvf' alias targz='tar -zxvf' alias tarbz2= 'tar -jxvf' # Aliases for stack managed executables alias sghc='stack ghc' alias srunghc='stack runghc'
Set TERM when using gcloud compute ssh
Set TERM when using gcloud compute ssh
Shell
mit
SCSmithr/dotfiles
shell
## Code Before: if [[ "$os" = "$linux_str" ]]; then alias ls='ls --color=auto' alias dir='dir --color=auto' # Pacman aliases alias pacman=run_pacman # ssh aliases alias usshfs='fusermount -u $HOME/Remote' # set monitor brighness alias sb=set_brightness alias sbr=set_brightness_rel # get current brightness alias gb=get_brightness alias no=notify elif [[ "$os" = "$osx_str" ]]; then alias ls='ls -G' # ssh aliases alias usshfs='umount $HOME/Remote' fi alias gcssh='gcloud compute ssh' # Some useful tmux alias alias t='tmux new-session -s' # Create new session, should pass name alias ta='tmux a -t' # Attach to a session alias tn='tmux new-session -t' # Attach to a session, independent control alias tl='tmux ls' alias tk='tmux kill-session -t' alias nv=nvim alias grep='grep --color=always' # Protect me from myself alias rm='echo "No."; false' # trash-cli alias tm=trash-put # man aliases alias man=run_man # Compression aliases alias tarx='tar -xvf' alias targz='tar -zxvf' alias tarbz2= 'tar -jxvf' # Aliases for stack managed executables alias sghc='stack ghc' alias srunghc='stack runghc' ## Instruction: Set TERM when using gcloud compute ssh ## Code After: if [[ "$os" = "$linux_str" ]]; then alias ls='ls --color=auto' alias dir='dir --color=auto' # Pacman aliases alias pacman=run_pacman # ssh aliases alias usshfs='fusermount -u $HOME/Remote' # set monitor brighness alias sb=set_brightness alias sbr=set_brightness_rel # get current brightness alias gb=get_brightness alias no=notify elif [[ "$os" = "$osx_str" ]]; then alias ls='ls -G' # ssh aliases alias usshfs='umount $HOME/Remote' fi alias gcssh='TERM=xterm-256color gcloud compute ssh' # Some useful tmux alias alias t='tmux new-session -s' # Create new session, should pass name alias ta='tmux a -t' # Attach to a session alias tn='tmux new-session -t' # Attach to a session, independent control alias tl='tmux ls' alias tk='tmux kill-session -t' alias nv=nvim alias grep='grep --color=always' # Protect me from myself alias rm='echo "No."; false' # trash-cli alias tm=trash-put # man aliases alias man=run_man # Compression aliases alias tarx='tar -xvf' alias targz='tar -zxvf' alias tarbz2= 'tar -jxvf' # Aliases for stack managed executables alias sghc='stack ghc' alias srunghc='stack runghc'
94fef3a43e7c2e54f3860712e85b8f6ecba76fb4
views/file/modal.php
views/file/modal.php
<div role="filemanager-modal" class="modal" tabindex="-1" data-frame-id="<?= $frameId ?>" data-frame-src="<?= $frameSrc ?>" data-btn-id="<?= $btnId ?>" data-input-id="<?= $inputId ?>" data-image-container="<?= is_set($imageContainer) ? $imageContainer : '' ?>" data-paste-data="<?= is_set($pasteData) ? $pasteData : '' ?>" data-thumb="<?= $thumb ?>"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"></div> </div> </div> </div>
<div role="filemanager-modal" class="modal" tabindex="-1" data-frame-id="<?= $frameId ?>" data-frame-src="<?= $frameSrc ?>" data-btn-id="<?= $btnId ?>" data-input-id="<?= $inputId ?>" data-image-container="<?= $imageContainer ?>" data-paste-data="<?= $pasteData ?>" data-thumb="<?= $thumb ?>"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"></div> </div> </div> </div>
Revert "Fixed Modal view bug"
Revert "Fixed Modal view bug" This reverts commit ce3917c8b04123e60eba2e02528cf1f8c4a8e0df.
PHP
mit
PendalF89/yii2-filemanager,PendalF89/yii2-filemanager
php
## Code Before: <div role="filemanager-modal" class="modal" tabindex="-1" data-frame-id="<?= $frameId ?>" data-frame-src="<?= $frameSrc ?>" data-btn-id="<?= $btnId ?>" data-input-id="<?= $inputId ?>" data-image-container="<?= is_set($imageContainer) ? $imageContainer : '' ?>" data-paste-data="<?= is_set($pasteData) ? $pasteData : '' ?>" data-thumb="<?= $thumb ?>"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"></div> </div> </div> </div> ## Instruction: Revert "Fixed Modal view bug" This reverts commit ce3917c8b04123e60eba2e02528cf1f8c4a8e0df. ## Code After: <div role="filemanager-modal" class="modal" tabindex="-1" data-frame-id="<?= $frameId ?>" data-frame-src="<?= $frameSrc ?>" data-btn-id="<?= $btnId ?>" data-input-id="<?= $inputId ?>" data-image-container="<?= $imageContainer ?>" data-paste-data="<?= $pasteData ?>" data-thumb="<?= $thumb ?>"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"></div> </div> </div> </div>
cf3e5f7f5b89f607d4b64f485041fd2fef8baaf5
src/App/Game/Chat/Compose/style.css
src/App/Game/Chat/Compose/style.css
@import 'base'; @import 'input'; .darkTheme {} .unpinned {} .form { padding: 2.4rem 1.2rem; padding-top: 10px; border-radius: 5px; } .formInput { @extend input; border: 0; height: 50px; display: block; padding: 1.2rem 1rem; line-height: 2.4rem; width: 100%; resize: none; color: $fgPrimary; border: 1px solid $borderColorLight; border-radius: 5px; :global(.dark) & { color: $fgPrimaryDark; background-color: $bgPrimaryDark; border: 1px solid $borderColorDark; } :global(.unpinned) & { background-color: $bgPrimary; box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2); border: none; :global(.dark) & { background-color: $bgPrimaryDark; } } }
@import 'base'; @import 'input'; .darkTheme {} .unpinned {} .form { padding: 2.4rem 1.2rem; padding-top: 10px; border-radius: 5px; } .formInput { @extend input; border: 0; height: 50px; display: block; padding: 1.2rem 1rem; line-height: 2.4rem; width: 100%; resize: none; color: $fgPrimary; border: 1px solid $borderColorLight; border-radius: 5px; :global(.dark) & { color: $fgPrimaryDark; background-color: $bgPrimaryDark; border: 1px solid $borderColorDark; } :global(.unpinned) & { background-color: $bgPrimary; box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2); border: 1px solid white; :global(.dark) & { background-color: $bgPrimaryDark; } } }
Fix chat compose area movement during pinning/unpinning.
Fix chat compose area movement during pinning/unpinning.
CSS
mit
jsonnull/aleamancer,jsonnull/aleamancer
css
## Code Before: @import 'base'; @import 'input'; .darkTheme {} .unpinned {} .form { padding: 2.4rem 1.2rem; padding-top: 10px; border-radius: 5px; } .formInput { @extend input; border: 0; height: 50px; display: block; padding: 1.2rem 1rem; line-height: 2.4rem; width: 100%; resize: none; color: $fgPrimary; border: 1px solid $borderColorLight; border-radius: 5px; :global(.dark) & { color: $fgPrimaryDark; background-color: $bgPrimaryDark; border: 1px solid $borderColorDark; } :global(.unpinned) & { background-color: $bgPrimary; box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2); border: none; :global(.dark) & { background-color: $bgPrimaryDark; } } } ## Instruction: Fix chat compose area movement during pinning/unpinning. ## Code After: @import 'base'; @import 'input'; .darkTheme {} .unpinned {} .form { padding: 2.4rem 1.2rem; padding-top: 10px; border-radius: 5px; } .formInput { @extend input; border: 0; height: 50px; display: block; padding: 1.2rem 1rem; line-height: 2.4rem; width: 100%; resize: none; color: $fgPrimary; border: 1px solid $borderColorLight; border-radius: 5px; :global(.dark) & { color: $fgPrimaryDark; background-color: $bgPrimaryDark; border: 1px solid $borderColorDark; } :global(.unpinned) & { background-color: $bgPrimary; box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2); border: 1px solid white; :global(.dark) & { background-color: $bgPrimaryDark; } } }
9769f8c563d439daba96b1edd420efb6489f66f0
package.json
package.json
{ "name": "big", "version": "0.3.1", "main": "big.js", "scripts": { "start": "node ./bin/big" }, "dependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "bin": { "big": "./bin/big" }, "license": "MIT" }
{ "name": "big", "version": "0.3.1", "main": "big.js", "scripts": { "start": "node ./bin/big" }, "peerDependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "devDependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "bin": { "big": "./bin/big" }, "license": "MIT" }
Use peerDependencies for resource and resources
[dist] Use peerDependencies for resource and resources
JSON
mit
bigcompany/big
json
## Code Before: { "name": "big", "version": "0.3.1", "main": "big.js", "scripts": { "start": "node ./bin/big" }, "dependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "bin": { "big": "./bin/big" }, "license": "MIT" } ## Instruction: [dist] Use peerDependencies for resource and resources ## Code After: { "name": "big", "version": "0.3.1", "main": "big.js", "scripts": { "start": "node ./bin/big" }, "peerDependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "devDependencies": { "resource": "0.3.x", "resources": "0.3.x" }, "bin": { "big": "./bin/big" }, "license": "MIT" }
02f77babc6195426fdb5c495d44ede6af6fbec8f
mangopaysdk/entities/userlegal.py
mangopaysdk/entities/userlegal.py
from mangopaysdk.entities.entitybase import EntityBase from mangopaysdk.entities.user import User from mangopaysdk.tools.enums import PersonType from mangopaysdk.tools.enums import KYCLevel class UserLegal (User): def __init__(self, id = None): super(UserLegal, self).__init__(id) self._setPersonType(PersonType.Legal) self.Name = None # Required LegalPersonType: BUSINESS, ORGANIZATION self.LegalPersonType = None self.HeadquartersAddress = None # Required self.LegalRepresentativeFirstName = None # Required self.LegalRepresentativeLastName = None self.LegalRepresentativeAddress = None self.LegalRepresentativeEmail = None # Required self.LegalRepresentativeBirthday = None # Required self.LegalRepresentativeNationality = None # Required self.LegalRepresentativeCountryOfResidence = None self._statute = None self._proofOfRegistration = None self._shareholderDeclaration = None def GetReadOnlyProperties(self): properties = super(UserLegal, self).GetReadOnlyProperties() properties.append('Statute' ) properties.append('ProofOfRegistration' ) properties.append('ShareholderDeclaration' ) return properties
from mangopaysdk.entities.entitybase import EntityBase from mangopaysdk.entities.user import User from mangopaysdk.tools.enums import PersonType from mangopaysdk.tools.enums import KYCLevel class UserLegal (User): def __init__(self, id = None): super(UserLegal, self).__init__(id) self._setPersonType(PersonType.Legal) self.Name = None # Required LegalPersonType: BUSINESS, ORGANIZATION self.LegalPersonType = None self.HeadquartersAddress = None # Required self.LegalRepresentativeFirstName = None # Required self.LegalRepresentativeLastName = None self.LegalRepresentativeAddress = None self.LegalRepresentativeEmail = None # Required self.LegalRepresentativeBirthday = None # Required self.LegalRepresentativeNationality = None # Required self.LegalRepresentativeCountryOfResidence = None self._statute = None self._proofOfRegistration = None self._shareholderDeclaration = None self._legalRepresentativeProofOfIdentity = None def GetReadOnlyProperties(self): properties = super(UserLegal, self).GetReadOnlyProperties() properties.append('Statute' ) properties.append('ProofOfRegistration' ) properties.append('ShareholderDeclaration' ) properties.append('LegalRepresentativeProofOfIdentity' ) return properties
Add LegalRepresentativeProofOfIdentity to legal user
Add LegalRepresentativeProofOfIdentity to legal user
Python
mit
chocopoche/mangopay2-python-sdk,Mangopay/mangopay2-python-sdk
python
## Code Before: from mangopaysdk.entities.entitybase import EntityBase from mangopaysdk.entities.user import User from mangopaysdk.tools.enums import PersonType from mangopaysdk.tools.enums import KYCLevel class UserLegal (User): def __init__(self, id = None): super(UserLegal, self).__init__(id) self._setPersonType(PersonType.Legal) self.Name = None # Required LegalPersonType: BUSINESS, ORGANIZATION self.LegalPersonType = None self.HeadquartersAddress = None # Required self.LegalRepresentativeFirstName = None # Required self.LegalRepresentativeLastName = None self.LegalRepresentativeAddress = None self.LegalRepresentativeEmail = None # Required self.LegalRepresentativeBirthday = None # Required self.LegalRepresentativeNationality = None # Required self.LegalRepresentativeCountryOfResidence = None self._statute = None self._proofOfRegistration = None self._shareholderDeclaration = None def GetReadOnlyProperties(self): properties = super(UserLegal, self).GetReadOnlyProperties() properties.append('Statute' ) properties.append('ProofOfRegistration' ) properties.append('ShareholderDeclaration' ) return properties ## Instruction: Add LegalRepresentativeProofOfIdentity to legal user ## Code After: from mangopaysdk.entities.entitybase import EntityBase from mangopaysdk.entities.user import User from mangopaysdk.tools.enums import PersonType from mangopaysdk.tools.enums import KYCLevel class UserLegal (User): def __init__(self, id = None): super(UserLegal, self).__init__(id) self._setPersonType(PersonType.Legal) self.Name = None # Required LegalPersonType: BUSINESS, ORGANIZATION self.LegalPersonType = None self.HeadquartersAddress = None # Required self.LegalRepresentativeFirstName = None # Required self.LegalRepresentativeLastName = None self.LegalRepresentativeAddress = None self.LegalRepresentativeEmail = None # Required self.LegalRepresentativeBirthday = None # Required self.LegalRepresentativeNationality = None # Required self.LegalRepresentativeCountryOfResidence = None self._statute = None self._proofOfRegistration = None self._shareholderDeclaration = None self._legalRepresentativeProofOfIdentity = None def GetReadOnlyProperties(self): properties = super(UserLegal, self).GetReadOnlyProperties() properties.append('Statute' ) properties.append('ProofOfRegistration' ) properties.append('ShareholderDeclaration' ) properties.append('LegalRepresentativeProofOfIdentity' ) return properties
c0b8f920dfa699c61341d1da9d643fe3dedab919
.travis.yml
.travis.yml
language: php php: - '7.4' cache: directories: - vendor before_script: - composer self-update && composer --version - composer install --dev script: - composer lint - phpunit
language: php php: - '7.4' cache: directories: - vendor before_script: - composer self-update && composer --version - composer install --dev script: - composer lint - vendor/bin/phpunit
Use phpunit binary from vendor folder
Use phpunit binary from vendor folder
YAML
mit
Skysplit/laravel5-intl-translation,alright/laravel5-intl-translation
yaml
## Code Before: language: php php: - '7.4' cache: directories: - vendor before_script: - composer self-update && composer --version - composer install --dev script: - composer lint - phpunit ## Instruction: Use phpunit binary from vendor folder ## Code After: language: php php: - '7.4' cache: directories: - vendor before_script: - composer self-update && composer --version - composer install --dev script: - composer lint - vendor/bin/phpunit
84c1b466b1ad4a3095970ac099412a2a53bda0a3
Resources/views/SearchSelection/rss.xml.twig
Resources/views/SearchSelection/rss.xml.twig
<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>{{ selection.title|default }}</title> <link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link> {% spaceless %} {% for document in documents %} {% set content = document.content|default %} {% if content is iterable %} {% set content = content|first %} {% endif %} <item> <title>{{ document.title|default }}</title> <pubDate>{{ document.pub_created|date('D, d M Y H:i:s O') }}</pubDate> <link>{{ app.request.schemeAndHttpHost }}{{ document.url|default }}</link> <description><![CDATA[ {{ content|raw }}]]></description> {% if document.cover|default %} <enclosure url="{{ app.request.schemeAndHttpHost }}{{ integrated_image(document.cover).zoomCrop(150, 150, '#ffffff', 'center', 'top') }}" /> {% endif %} </item> {% endfor %} {% endspaceless %} </channel> </rss>
<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>{{ selection.title|default }}</title> <link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link> {% spaceless %} {% for document in documents %} {% set content = document.content|default %} {% if content is iterable %} {% set content = content|first %} {% endif %} <item> <title>{{ document.title|default }}</title> <pubDate>{{ document.pub_created|date('D, d M Y H:i:s O') }}</pubDate> <link>{{ app.request.schemeAndHttpHost }}{{ integrated_url(document) }}</link> <description><![CDATA[ {{ content|raw }}]]></description> {% if document.cover|default %} <enclosure url="{{ app.request.schemeAndHttpHost }}{{ integrated_image(document.cover).zoomCrop(150, 150, '#ffffff', 'center', 'top') }}" /> {% endif %} </item> {% endfor %} {% endspaceless %} </channel> </rss>
Use integrated_url URL function in RSS for correct url
Use integrated_url URL function in RSS for correct url
Twig
mit
integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated,integratedfordevelopers/integrated,integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated
twig
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>{{ selection.title|default }}</title> <link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link> {% spaceless %} {% for document in documents %} {% set content = document.content|default %} {% if content is iterable %} {% set content = content|first %} {% endif %} <item> <title>{{ document.title|default }}</title> <pubDate>{{ document.pub_created|date('D, d M Y H:i:s O') }}</pubDate> <link>{{ app.request.schemeAndHttpHost }}{{ document.url|default }}</link> <description><![CDATA[ {{ content|raw }}]]></description> {% if document.cover|default %} <enclosure url="{{ app.request.schemeAndHttpHost }}{{ integrated_image(document.cover).zoomCrop(150, 150, '#ffffff', 'center', 'top') }}" /> {% endif %} </item> {% endfor %} {% endspaceless %} </channel> </rss> ## Instruction: Use integrated_url URL function in RSS for correct url ## Code After: <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>{{ selection.title|default }}</title> <link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link> {% spaceless %} {% for document in documents %} {% set content = document.content|default %} {% if content is iterable %} {% set content = content|first %} {% endif %} <item> <title>{{ document.title|default }}</title> <pubDate>{{ document.pub_created|date('D, d M Y H:i:s O') }}</pubDate> <link>{{ app.request.schemeAndHttpHost }}{{ integrated_url(document) }}</link> <description><![CDATA[ {{ content|raw }}]]></description> {% if document.cover|default %} <enclosure url="{{ app.request.schemeAndHttpHost }}{{ integrated_image(document.cover).zoomCrop(150, 150, '#ffffff', 'center', 'top') }}" /> {% endif %} </item> {% endfor %} {% endspaceless %} </channel> </rss>
8ddbf9668d6ff10c27e96f787b0ae49dede490f4
views/allInventories.html
views/allInventories.html
<ul> <li ng-repeat="inv in inventories track by $index"> <span> <span ng-click="viewInventory(inv)">{{inv.name}}</span> </span> </li> </ul> <button ng-href="/new">New Inventory</button>
<ul> <li ng-repeat="inv in inventories track by $index"> <span> <span ng-href="edit/{{inv.id}}">{{inv.name}}</span> </span> </li> </ul> <button ng-href="new">New Inventory</button>
Change ng-click for inventory to ng-href with id param
Change ng-click for inventory to ng-href with id param
HTML
cc0-1.0
zcdunn/inventory,zcdunn/inventory
html
## Code Before: <ul> <li ng-repeat="inv in inventories track by $index"> <span> <span ng-click="viewInventory(inv)">{{inv.name}}</span> </span> </li> </ul> <button ng-href="/new">New Inventory</button> ## Instruction: Change ng-click for inventory to ng-href with id param ## Code After: <ul> <li ng-repeat="inv in inventories track by $index"> <span> <span ng-href="edit/{{inv.id}}">{{inv.name}}</span> </span> </li> </ul> <button ng-href="new">New Inventory</button>
856e848907909f15712b8bdad033827e097936d9
README.md
README.md
No database, just PHP & less CSS : npm install Running the application : ./node_modules/autoless/bin/autoless css/less/ css/ php -S localhost:8000 ## Deployment Setup : git remote add heroku git@heroku.com:piquenique.git heroku config:push Deployment : git push heroku master 1. http://piquenique.herokuapp.com 2. http://d2svtc8wj5w0di.cloudfront.net 3. http://piquenique.quebecnumerique.com
No database, just plain PHP & LESS css. ### Requirements This project requires PHP and NodeJS to compile LESS css. PHP should be easy enough to install or already provided on your OS. Regarding NodeJS, few hints for the newcomers : - On OS X you should install NodeJS with [Homebrew](http://brew.sh) (`brew install nodejs`). - On Linux and Windows, see [nodejs.org](http://nodejs.org) download section or use your favorite package manager (ex. `apt-get install nodejs`). Then install project dependencies (less, autoless, etc) : npm install ### Quick start ./node_modules/autoless/bin/autoless css/less/ css/ php -S localhost:8000 ## Deployment Setup : git remote add heroku git@heroku.com:piquenique.git heroku config:push Deployment : git push heroku master 1. http://piquenique.herokuapp.com 2. http://d2svtc8wj5w0di.cloudfront.net 3. http://piquenique.quebecnumerique.com
Add details to requirements for newcomers
Add details to requirements for newcomers
Markdown
mit
qcnum/piquenique,qcnum/piquenique,qcnum/piquenique
markdown
## Code Before: No database, just PHP & less CSS : npm install Running the application : ./node_modules/autoless/bin/autoless css/less/ css/ php -S localhost:8000 ## Deployment Setup : git remote add heroku git@heroku.com:piquenique.git heroku config:push Deployment : git push heroku master 1. http://piquenique.herokuapp.com 2. http://d2svtc8wj5w0di.cloudfront.net 3. http://piquenique.quebecnumerique.com ## Instruction: Add details to requirements for newcomers ## Code After: No database, just plain PHP & LESS css. ### Requirements This project requires PHP and NodeJS to compile LESS css. PHP should be easy enough to install or already provided on your OS. Regarding NodeJS, few hints for the newcomers : - On OS X you should install NodeJS with [Homebrew](http://brew.sh) (`brew install nodejs`). - On Linux and Windows, see [nodejs.org](http://nodejs.org) download section or use your favorite package manager (ex. `apt-get install nodejs`). Then install project dependencies (less, autoless, etc) : npm install ### Quick start ./node_modules/autoless/bin/autoless css/less/ css/ php -S localhost:8000 ## Deployment Setup : git remote add heroku git@heroku.com:piquenique.git heroku config:push Deployment : git push heroku master 1. http://piquenique.herokuapp.com 2. http://d2svtc8wj5w0di.cloudfront.net 3. http://piquenique.quebecnumerique.com
57370697703087c3e252cc84ee7276fab0d635d0
src/lib/composite-layer.js
src/lib/composite-layer.js
import Layer from './layer'; export default class CompositeLayer extends Layer { constructor(props) { super(props); } // Initialize layer is usually not needed for composite layers // Provide empty definition to disable check for missing definition initializeLayer() {} getPickingInfo(opts) { // do not call onHover/onClick on the container return null; } }
import Layer from './layer'; export default class CompositeLayer extends Layer { constructor(props) { super(props); } // Initialize layer is usually not needed for composite layers // Provide empty definition to disable check for missing definition initializeLayer(updateParams) { // Call subclass lifecycle methods this.initializeState(); this.updateState(updateParams); // End subclass lifecycle methods } getPickingInfo(opts) { // do not call onHover/onClick on the container return null; } }
Fix the bug that initializeState and updateState method of composite layer are not properly invoked
Fix the bug that initializeState and updateState method of composite layer are not properly invoked
JavaScript
mit
uber-common/deck.gl,uber-common/deck.gl
javascript
## Code Before: import Layer from './layer'; export default class CompositeLayer extends Layer { constructor(props) { super(props); } // Initialize layer is usually not needed for composite layers // Provide empty definition to disable check for missing definition initializeLayer() {} getPickingInfo(opts) { // do not call onHover/onClick on the container return null; } } ## Instruction: Fix the bug that initializeState and updateState method of composite layer are not properly invoked ## Code After: import Layer from './layer'; export default class CompositeLayer extends Layer { constructor(props) { super(props); } // Initialize layer is usually not needed for composite layers // Provide empty definition to disable check for missing definition initializeLayer(updateParams) { // Call subclass lifecycle methods this.initializeState(); this.updateState(updateParams); // End subclass lifecycle methods } getPickingInfo(opts) { // do not call onHover/onClick on the container return null; } }
b8ef59257ade6a3d2d24e2fca0f04387ec96c010
second/blog/templates/blog/post_list.html
second/blog/templates/blog/post_list.html
<html> <head> <title>Waffles blog</title> </head> <body> <div> <h1><a href="">Waffles Blog</a></h1> </div> <div> <p>published: 14.06.2014, 12:14</p> <h2><a href="">My first post</a></h2> <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p> </div> <div> <p>published: 14.06.2014, 12:14</p> <h2><a href="">My second post</a></h2> <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut f.</p> </div> </body> </html>
<html> <head> <title>Waffles blog</title> </head> <body> <div> <h1><a href="">Waffles Blog</a></h1> </div> {% for post in posts %} <div> <p>published: {{ post.published_date }}</p> <h1><a href="">{{ post.title }}</a></h1> <p>{{ post.text|linebreaksbr }}</p> </div> {% endfor %} </body> </html>
Modify templates to display posts from database
Modify templates to display posts from database
HTML
mit
ugaliguy/Django-Tutorial-Projects,ugaliguy/Django-Tutorial-Projects
html
## Code Before: <html> <head> <title>Waffles blog</title> </head> <body> <div> <h1><a href="">Waffles Blog</a></h1> </div> <div> <p>published: 14.06.2014, 12:14</p> <h2><a href="">My first post</a></h2> <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p> </div> <div> <p>published: 14.06.2014, 12:14</p> <h2><a href="">My second post</a></h2> <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut f.</p> </div> </body> </html> ## Instruction: Modify templates to display posts from database ## Code After: <html> <head> <title>Waffles blog</title> </head> <body> <div> <h1><a href="">Waffles Blog</a></h1> </div> {% for post in posts %} <div> <p>published: {{ post.published_date }}</p> <h1><a href="">{{ post.title }}</a></h1> <p>{{ post.text|linebreaksbr }}</p> </div> {% endfor %} </body> </html>
4f2b9670d0130b5803819fd3e65946a751faccfc
README.md
README.md
Gimbal is a system for testing HTTP APIs and web sites. It allows the developer to create a set of specifications of the general form "send X, expect Y back". See <https://datamaglia.github.io/gimbal> for more information.
Gimbal is a system for testing HTTP APIs and web sites. It allows the developer to create a set of specifications of the general form "send X, expect Y back". See <http://gimbal.datamaglia.com/> for more information.
Update readme with new url.
Update readme with new url.
Markdown
mit
Datamaglia/gimbal
markdown
## Code Before: Gimbal is a system for testing HTTP APIs and web sites. It allows the developer to create a set of specifications of the general form "send X, expect Y back". See <https://datamaglia.github.io/gimbal> for more information. ## Instruction: Update readme with new url. ## Code After: Gimbal is a system for testing HTTP APIs and web sites. It allows the developer to create a set of specifications of the general form "send X, expect Y back". See <http://gimbal.datamaglia.com/> for more information.
22a9652715466b2b8495be6c48725c2439e753aa
packages/po/potoki-hasql.yaml
packages/po/potoki-hasql.yaml
homepage: https://github.com/metrix-ai/potoki-hasql changelog-type: '' hash: 158e1e8ccf61d885ae835a6b02b4f5ac3714136b625b63a552286cbbca66f42b test-bench-deps: {} maintainer: Metrix.AI Ninjas <ninjas@metrix.ai> synopsis: Integration of "potoki" and "hasql". changelog: '' basic-deps: hasql: ! '>=1.1.1 && <1.2' bytestring: ! '>=0.10.8.2 && <0.11' base: ! '>=4.10.1.0 && <5' text: ! '>=1.2.3.0 && <1.3' potoki-core: ! '>=1.5.2 && <1.6' potoki: ! '>=0.11.1 && <0.12' profunctors: ! '>=5.2.2 && <5.3' vector: ! '>=0.12.0.1 && <0.13' all-versions: - '1' - '1.1' - '1.1.0.1' - '1.2' author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: '1.2' description-type: haddock description: Utilities, which integrate Hasql and Potoki. license-name: MIT
homepage: https://github.com/metrix-ai/potoki-hasql changelog-type: '' hash: babf2b39d653c4d2025c96432b702cebe4a9bbfc69d1155271127def02f252fa test-bench-deps: {} maintainer: Metrix.AI Ninjas <ninjas@metrix.ai> synopsis: Integration of "potoki" and "hasql". changelog: '' basic-deps: hasql: ! '>=1.1.1 && <1.2' bytestring: ! '>=0.10.8.2 && <0.11' base: ! '>=4.10.1.0 && <5' text: ! '>=1.2.3.0 && <1.3' potoki-core: ! '>=1.5.2 && <1.6' potoki: ! '>=0.11.1 && <0.12' profunctors: ! '>=5.2.2 && <5.3' vector: ! '>=0.12.0.1 && <0.13' all-versions: - '1' - '1.1' - '1.1.0.1' - '1.2' - '1.3' author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: '1.3' description-type: haddock description: Utilities, which integrate Hasql and Potoki. license-name: MIT
Update from Hackage at 2018-05-07T15:14:02Z
Update from Hackage at 2018-05-07T15:14:02Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/metrix-ai/potoki-hasql changelog-type: '' hash: 158e1e8ccf61d885ae835a6b02b4f5ac3714136b625b63a552286cbbca66f42b test-bench-deps: {} maintainer: Metrix.AI Ninjas <ninjas@metrix.ai> synopsis: Integration of "potoki" and "hasql". changelog: '' basic-deps: hasql: ! '>=1.1.1 && <1.2' bytestring: ! '>=0.10.8.2 && <0.11' base: ! '>=4.10.1.0 && <5' text: ! '>=1.2.3.0 && <1.3' potoki-core: ! '>=1.5.2 && <1.6' potoki: ! '>=0.11.1 && <0.12' profunctors: ! '>=5.2.2 && <5.3' vector: ! '>=0.12.0.1 && <0.13' all-versions: - '1' - '1.1' - '1.1.0.1' - '1.2' author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: '1.2' description-type: haddock description: Utilities, which integrate Hasql and Potoki. license-name: MIT ## Instruction: Update from Hackage at 2018-05-07T15:14:02Z ## Code After: homepage: https://github.com/metrix-ai/potoki-hasql changelog-type: '' hash: babf2b39d653c4d2025c96432b702cebe4a9bbfc69d1155271127def02f252fa test-bench-deps: {} maintainer: Metrix.AI Ninjas <ninjas@metrix.ai> synopsis: Integration of "potoki" and "hasql". changelog: '' basic-deps: hasql: ! '>=1.1.1 && <1.2' bytestring: ! '>=0.10.8.2 && <0.11' base: ! '>=4.10.1.0 && <5' text: ! '>=1.2.3.0 && <1.3' potoki-core: ! '>=1.5.2 && <1.6' potoki: ! '>=0.11.1 && <0.12' profunctors: ! '>=5.2.2 && <5.3' vector: ! '>=0.12.0.1 && <0.13' all-versions: - '1' - '1.1' - '1.1.0.1' - '1.2' - '1.3' author: Nikita Volkov <nikita.y.volkov@mail.ru> latest: '1.3' description-type: haddock description: Utilities, which integrate Hasql and Potoki. license-name: MIT
414e47e0efbe34bf8efdcef095377201e784a78c
Controller/Checkout/Error.php
Controller/Checkout/Error.php
<?php /** * Mondido * * PHP version 5.6 * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ namespace Mondido\Mondido\Controller\Checkout; /** * Error action * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ class Error extends \Mondido\Mondido\Controller\Checkout\Index { /** * Execute * * @return \Magento\Framework\Controller\ResultInterface */ public function execute() { $message = $this->getRequest()->getParam('error_name'); $this->messageManager->addError(__($message)); return $this->resultRedirectFactory->create()->setPath('mondido/cart'); } }
<?php /** * Mondido * * PHP version 5.6 * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ namespace Mondido\Mondido\Controller\Checkout; /** * Error action * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ class Error extends \Mondido\Mondido\Controller\Checkout\Index { /** * Execute * * @return @void */ public function execute() { $message = $this->getRequest()->getParam('error_name'); $this->messageManager->addError(__($message)); $url = $this->_url->getUrl('checkout/cart'); echo '<!doctype html> <html> <head> <script> var isInIframe = (window.location != window.parent.location) ? true : false; if (isInIframe == true) { window.top.location.href = "'.$url.'"; } else { window.location.href = "'.$url.'"; } </script> </head> <body></body> </html>'; die; } }
Use javascript redirect to break out from iframe
Use javascript redirect to break out from iframe
PHP
mit
kodbruket/magento2-mondido,Mondido/magento2,Mondido/magento2,kodbruket/magento2-mondido,Mondido/magento2,kodbruket/magento2-mondido
php
## Code Before: <?php /** * Mondido * * PHP version 5.6 * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ namespace Mondido\Mondido\Controller\Checkout; /** * Error action * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ class Error extends \Mondido\Mondido\Controller\Checkout\Index { /** * Execute * * @return \Magento\Framework\Controller\ResultInterface */ public function execute() { $message = $this->getRequest()->getParam('error_name'); $this->messageManager->addError(__($message)); return $this->resultRedirectFactory->create()->setPath('mondido/cart'); } } ## Instruction: Use javascript redirect to break out from iframe ## Code After: <?php /** * Mondido * * PHP version 5.6 * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ namespace Mondido\Mondido\Controller\Checkout; /** * Error action * * @category Mondido * @package Mondido_Mondido * @author Andreas Karlsson <andreas@kodbruket.se> * @license MIT License https://opensource.org/licenses/MIT * @link https://www.mondido.com */ class Error extends \Mondido\Mondido\Controller\Checkout\Index { /** * Execute * * @return @void */ public function execute() { $message = $this->getRequest()->getParam('error_name'); $this->messageManager->addError(__($message)); $url = $this->_url->getUrl('checkout/cart'); echo '<!doctype html> <html> <head> <script> var isInIframe = (window.location != window.parent.location) ? true : false; if (isInIframe == true) { window.top.location.href = "'.$url.'"; } else { window.location.href = "'.$url.'"; } </script> </head> <body></body> </html>'; die; } }
da6a6b20ca8c7bdbdcef7202f7b1552cb0537d21
vendor/plugins/refinery_settings/app/controllers/admin/refinery_settings_controller.rb
vendor/plugins/refinery_settings/app/controllers/admin/refinery_settings_controller.rb
class Admin::RefinerySettingsController < Admin::BaseController crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false before_filter :sanitise_params, :only => [:create, :update] after_filter :fire_setting_callback, :only => [:update] def edit @refinery_setting = RefinerySetting.find(params[:id]) render :layout => false if request.xhr? end def find_all_refinery_settings @refinery_settings = RefinerySetting.find :all, :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted IS NOT ?", true] end def paginate_all_refinery_settings @refinery_settings = RefinerySetting.paginate :page => params[:page], :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted IS NOT ?", true] end private # this fires before an update or create to remove any attempts to pass sensitive arguments. def sanitise_params params.delete(:callback_proc_as_string) params.delete(:scoping) end def fire_setting_callback begin @refinery_setting.callback_proc.call rescue logger.warn('Could not fire callback proc. Details:') logger.warn(@refinery_setting.inspect) logger.warn($!.message) logger.warn($!.backtrace) end unless @refinery_setting.callback_proc.nil? end end
class Admin::RefinerySettingsController < Admin::BaseController crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false before_filter :sanitise_params, :only => [:create, :update] after_filter :fire_setting_callback, :only => [:update] def edit @refinery_setting = RefinerySetting.find(params[:id]) render :layout => false if request.xhr? end def find_all_refinery_settings @refinery_settings = RefinerySetting.find :all, :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted <> ?", true] end def paginate_all_refinery_settings @refinery_settings = RefinerySetting.paginate :page => params[:page], :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted <> ?", true] end private # this fires before an update or create to remove any attempts to pass sensitive arguments. def sanitise_params params.delete(:callback_proc_as_string) params.delete(:scoping) end def fire_setting_callback begin @refinery_setting.callback_proc.call rescue logger.warn('Could not fire callback proc. Details:') logger.warn(@refinery_setting.inspect) logger.warn($!.message) logger.warn($!.backtrace) end unless @refinery_setting.callback_proc.nil? end end
Fix for Mysql Specific code
Fix for Mysql Specific code
Ruby
mit
stefanspicer/refinerycms,aguzubiaga/refinerycms,bricesanchez/refinerycms,mkaplan9/refinerycms,mobilityhouse/refinerycms,Retimont/refinerycms,simi/refinerycms,stefanspicer/refinerycms,trevornez/refinerycms,bricesanchez/refinerycms,chrise86/refinerycms,Eric-Guo/refinerycms,kelkoo-services/refinerycms,stakes/refinerycms,pcantrell/refinerycms,mlinfoot/refinerycms,johanb/refinerycms,mkaplan9/refinerycms,mabras/refinerycms,aguzubiaga/refinerycms,stakes/refinerycms,johanb/refinerycms,LytayTOUCH/refinerycms,simi/refinerycms,koa/refinerycms,refinery/refinerycms,LytayTOUCH/refinerycms,kappiah/refinerycms,stefanspicer/refinerycms,hoopla-software/refinerycms,bryanmtl/g-refinerycms,aguzubiaga/refinerycms,Eric-Guo/refinerycms,simi/refinerycms,anitagraham/refinerycms,clanplaid/wow.clanplaid.net,SmartMedia/refinerycms-with-custom-icons,Retimont/refinerycms,sideci-sample/sideci-sample-refinerycms,donabrams/refinerycms,kelkoo-services/refinerycms,mlinfoot/refinerycms,anitagraham/refinerycms,SmartMedia/refinerycms-with-custom-icons,simi/refinerycms,hoopla-software/refinerycms,KingLemuel/refinerycms,refinery/refinerycms,louim/refinerycms,chrise86/refinerycms,mojarra/myrefinerycms,trevornez/refinerycms,hoopla-software/refinerycms,LytayTOUCH/refinerycms,louim/refinerycms,gwagener/refinerycms,gwagener/refinerycms,mabras/refinerycms,bryanmtl/g-refinerycms,kappiah/refinerycms,pcantrell/refinerycms,KingLemuel/refinerycms,donabrams/refinerycms,johanb/refinerycms,anitagraham/refinerycms,mabras/refinerycms,kappiah/refinerycms,gwagener/refinerycms,chrise86/refinerycms,mojarra/myrefinerycms,mobilityhouse/refinerycms,mlinfoot/refinerycms,mkaplan9/refinerycms,sideci-sample/sideci-sample-refinerycms,koa/refinerycms,trevornez/refinerycms,clanplaid/wow.clanplaid.net,refinery/refinerycms,KingLemuel/refinerycms,Retimont/refinerycms,Eric-Guo/refinerycms
ruby
## Code Before: class Admin::RefinerySettingsController < Admin::BaseController crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false before_filter :sanitise_params, :only => [:create, :update] after_filter :fire_setting_callback, :only => [:update] def edit @refinery_setting = RefinerySetting.find(params[:id]) render :layout => false if request.xhr? end def find_all_refinery_settings @refinery_settings = RefinerySetting.find :all, :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted IS NOT ?", true] end def paginate_all_refinery_settings @refinery_settings = RefinerySetting.paginate :page => params[:page], :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted IS NOT ?", true] end private # this fires before an update or create to remove any attempts to pass sensitive arguments. def sanitise_params params.delete(:callback_proc_as_string) params.delete(:scoping) end def fire_setting_callback begin @refinery_setting.callback_proc.call rescue logger.warn('Could not fire callback proc. Details:') logger.warn(@refinery_setting.inspect) logger.warn($!.message) logger.warn($!.backtrace) end unless @refinery_setting.callback_proc.nil? end end ## Instruction: Fix for Mysql Specific code ## Code After: class Admin::RefinerySettingsController < Admin::BaseController crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false before_filter :sanitise_params, :only => [:create, :update] after_filter :fire_setting_callback, :only => [:update] def edit @refinery_setting = RefinerySetting.find(params[:id]) render :layout => false if request.xhr? end def find_all_refinery_settings @refinery_settings = RefinerySetting.find :all, :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted <> ?", true] end def paginate_all_refinery_settings @refinery_settings = RefinerySetting.paginate :page => params[:page], :order => "name ASC", :conditions => current_user.has_role?(:superuser) ? nil : ["restricted <> ?", true] end private # this fires before an update or create to remove any attempts to pass sensitive arguments. def sanitise_params params.delete(:callback_proc_as_string) params.delete(:scoping) end def fire_setting_callback begin @refinery_setting.callback_proc.call rescue logger.warn('Could not fire callback proc. Details:') logger.warn(@refinery_setting.inspect) logger.warn($!.message) logger.warn($!.backtrace) end unless @refinery_setting.callback_proc.nil? end end
54e74e4ab44d1fe5ac1ab865c308f9f78f242638
src/server/clojure_template/templates/layouts.clj
src/server/clojure_template/templates/layouts.clj
(ns clojure-template.templates.layouts (:require [environ.core :refer [env]] [hiccup.page :refer [html5 include-css include-js]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]])) (defn application [& content] (html5 [:head [:meta {:charset "utf-8"}] [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] [:meta {:csrf *anti-forgery-token*}] [:title "Application"] (include-css "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css") (include-css "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css") (include-css "/css/app.css") [:body content (include-js "https://code.jquery.com/jquery-2.2.4.min.js") (include-js "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js") (include-js "/js/app.js")]]))
(ns clojure-template.templates.layouts (:require [environ.core :refer [env]] [hiccup.page :refer [html5 include-css include-js]])) (defn application [& content] (html5 [:head [:meta {:charset "utf-8"}] [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] [:title "Application"] (include-css "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css") (include-css "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css") (include-css "/css/app.css") [:body content (include-js "https://code.jquery.com/jquery-2.2.4.min.js") (include-js "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js") (include-js "/js/app.js")]]))
Remove csrf token from template
Remove csrf token from template
Clojure
epl-1.0
hung-phan/clojure-template,hung-phan/clojure-template
clojure
## Code Before: (ns clojure-template.templates.layouts (:require [environ.core :refer [env]] [hiccup.page :refer [html5 include-css include-js]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]])) (defn application [& content] (html5 [:head [:meta {:charset "utf-8"}] [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] [:meta {:csrf *anti-forgery-token*}] [:title "Application"] (include-css "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css") (include-css "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css") (include-css "/css/app.css") [:body content (include-js "https://code.jquery.com/jquery-2.2.4.min.js") (include-js "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js") (include-js "/js/app.js")]])) ## Instruction: Remove csrf token from template ## Code After: (ns clojure-template.templates.layouts (:require [environ.core :refer [env]] [hiccup.page :refer [html5 include-css include-js]])) (defn application [& content] (html5 [:head [:meta {:charset "utf-8"}] [:meta {:http-equiv "X-UA-Compatible" :content "IE=edge"}] [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] [:title "Application"] (include-css "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css") (include-css "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css") (include-css "/css/app.css") [:body content (include-js "https://code.jquery.com/jquery-2.2.4.min.js") (include-js "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js") (include-js "/js/app.js")]]))
1e831c10a5b250be9568849fc932ce5b363a5d6d
Assignments/Project-1.md
Assignments/Project-1.md
--- layout: page --- # Project 1: Black box ### DUE: Sep. 26 For this project we will explore the techniques of Pre-Cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Moment can occur in a number of ways: mechinical motion, an exterior scene, rapidally changing images, mirrors, or potentiall other ways. Also take some time to address the idea of movements other meanings when creating the content. This device can act as a projector, camera obscura, a diorama, a box you peep through or some other form but it should have some optical element (lenses, mirrors, animation, lights etc) and must address movement in some form.
--- layout: page categories: assignment --- # Project 1: Black box ### DUE: Sep. 26 For this project we will explore the techniques of pre-cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Movement can occur in a number of ways: mechanical motion, an exterior scene, rapidly changing images, mirrors, or potentially other ways. Also take some time to address the idea of movements other meanings when creating the piece. This device can act as a projector, camera obscura, a diorama, a box you peep through or some other form but it should have some optical element (lenses, mirrors, animation, lights etc) and must address movement in some form.
Fix typos in project 1
Fix typos in project 1
Markdown
mit
kellyegan/StillMoving
markdown
## Code Before: --- layout: page --- # Project 1: Black box ### DUE: Sep. 26 For this project we will explore the techniques of Pre-Cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Moment can occur in a number of ways: mechinical motion, an exterior scene, rapidally changing images, mirrors, or potentiall other ways. Also take some time to address the idea of movements other meanings when creating the content. This device can act as a projector, camera obscura, a diorama, a box you peep through or some other form but it should have some optical element (lenses, mirrors, animation, lights etc) and must address movement in some form. ## Instruction: Fix typos in project 1 ## Code After: --- layout: page categories: assignment --- # Project 1: Black box ### DUE: Sep. 26 For this project we will explore the techniques of pre-cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Movement can occur in a number of ways: mechanical motion, an exterior scene, rapidly changing images, mirrors, or potentially other ways. Also take some time to address the idea of movements other meanings when creating the piece. This device can act as a projector, camera obscura, a diorama, a box you peep through or some other form but it should have some optical element (lenses, mirrors, animation, lights etc) and must address movement in some form.
90d45049932b36c761823228e9ad122c124290cf
src/components/RadioGroup/RadioGroup.styles.sass
src/components/RadioGroup/RadioGroup.styles.sass
@import '~styles/base' $radio-button-size: 20px .RadioGroup .RadioGroup__field display: block color: color(text-disabled) &.RadioGroup__field--active color: color(text-primary) transition: color $key-animation-duration $key-bezier-animation-in .RadioGroup__label display: inline-block +clickable .Radio display: inline-block margin-right: 8px // position: relative // top: 100% // margin-top: -50% &.Radio--active .Radio__circle::after border: 2px solid color(primary) transform: scale(1) transition: transform $key-animation-duration $key-bezier-animation-in .Radio__circle +circle($radio-button-size) background: grey(9) position: relative border: 2px solid grey(9) &::after content: '' top: -2px left: -2px position: absolute border: 2px solid transparent +circle($radio-button-size - 2px) transform: scale(0) transition: transform $key-animation-duration $key-bezier-animation-out
@import '~styles/base' $radio-button-size: 20px .RadioGroup .RadioGroup__field display: flex align-items: center color: color(text-disabled) &.RadioGroup__field--active color: color(text-primary) transition: color $key-animation-duration $key-bezier-animation-in &:hover .Radio__circle background: grey(7) border: 2px solid grey(8) .RadioGroup__label display: inline-block +clickable .Radio display: inline-block margin-right: 8px // position: relative // top: 100% // margin-top: -50% &.Radio--active .Radio__circle::after border: 2px solid color(primary) transform: scale(1) transition: transform $key-animation-duration $key-bezier-animation-in .Radio__circle +circle($radio-button-size) background: grey(9) position: relative border: 2px solid grey(9) transition: background-color $key-animation-duration ease-out &::after content: '' top: -2px left: -2px position: absolute border: 2px solid transparent +circle($radio-button-size - 4px) transform: scale(0) transition: transform $key-animation-duration $key-bezier-animation-out
Make active circle the same size as its parent
fix(RadioGroup): Make active circle the same size as its parent
Sass
mit
AdamSalma/Lurka,AdamSalma/Lurka
sass
## Code Before: @import '~styles/base' $radio-button-size: 20px .RadioGroup .RadioGroup__field display: block color: color(text-disabled) &.RadioGroup__field--active color: color(text-primary) transition: color $key-animation-duration $key-bezier-animation-in .RadioGroup__label display: inline-block +clickable .Radio display: inline-block margin-right: 8px // position: relative // top: 100% // margin-top: -50% &.Radio--active .Radio__circle::after border: 2px solid color(primary) transform: scale(1) transition: transform $key-animation-duration $key-bezier-animation-in .Radio__circle +circle($radio-button-size) background: grey(9) position: relative border: 2px solid grey(9) &::after content: '' top: -2px left: -2px position: absolute border: 2px solid transparent +circle($radio-button-size - 2px) transform: scale(0) transition: transform $key-animation-duration $key-bezier-animation-out ## Instruction: fix(RadioGroup): Make active circle the same size as its parent ## Code After: @import '~styles/base' $radio-button-size: 20px .RadioGroup .RadioGroup__field display: flex align-items: center color: color(text-disabled) &.RadioGroup__field--active color: color(text-primary) transition: color $key-animation-duration $key-bezier-animation-in &:hover .Radio__circle background: grey(7) border: 2px solid grey(8) .RadioGroup__label display: inline-block +clickable .Radio display: inline-block margin-right: 8px // position: relative // top: 100% // margin-top: -50% &.Radio--active .Radio__circle::after border: 2px solid color(primary) transform: scale(1) transition: transform $key-animation-duration $key-bezier-animation-in .Radio__circle +circle($radio-button-size) background: grey(9) position: relative border: 2px solid grey(9) transition: background-color $key-animation-duration ease-out &::after content: '' top: -2px left: -2px position: absolute border: 2px solid transparent +circle($radio-button-size - 4px) transform: scale(0) transition: transform $key-animation-duration $key-bezier-animation-out
c17e60d3e0ccc7b933d94aefc6f4cfa54d9eed2f
.travis.yml
.travis.yml
language: ruby rvm: - 2.1.8 - 2.2.2 - 2.3.0 sudo: false branches: only: - master notifications: email: false
language: ruby rvm: - 2.1.8 - 2.2.2 - 2.3.0 sudo: false before_install: - gem install regxing --version "0.1.0.beta" branches: only: - master notifications: email: false
Make Travis install regxing so it doesn't barf
Make Travis install regxing so it doesn't barf
YAML
mit
danascheider/json_test_data
yaml
## Code Before: language: ruby rvm: - 2.1.8 - 2.2.2 - 2.3.0 sudo: false branches: only: - master notifications: email: false ## Instruction: Make Travis install regxing so it doesn't barf ## Code After: language: ruby rvm: - 2.1.8 - 2.2.2 - 2.3.0 sudo: false before_install: - gem install regxing --version "0.1.0.beta" branches: only: - master notifications: email: false
c6f1858133b0cfcaa976d0d19bbbfb4ff985fb50
.travis.yml
.travis.yml
language: scala scala: - 2.11.8 notifications: email: false before_install: # see http://stackoverflow.com/a/30496307/395386 - sudo apt-get update - sudo apt-get install python3 install: pip install -r clients/python/requirements.txt script: - pushd game && sbt clean test it:test && popd - pushd clients/python && python3 -m unittest discover -p "*_test.py" && popd
language: scala scala: - 2.11.8 notifications: email: false before_install: # see http://stackoverflow.com/a/30496307/395386 - sudo apt-get update - sudo apt-get install python3 python3-pip install: pip3 install -r clients/python/requirements.txt script: - pushd game && sbt clean test it:test && popd - pushd clients/python && python3 -m unittest discover -p "*_test.py" && popd
Install and use pip3 with Travis
Install and use pip3 with Travis
YAML
mit
DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io
yaml
## Code Before: language: scala scala: - 2.11.8 notifications: email: false before_install: # see http://stackoverflow.com/a/30496307/395386 - sudo apt-get update - sudo apt-get install python3 install: pip install -r clients/python/requirements.txt script: - pushd game && sbt clean test it:test && popd - pushd clients/python && python3 -m unittest discover -p "*_test.py" && popd ## Instruction: Install and use pip3 with Travis ## Code After: language: scala scala: - 2.11.8 notifications: email: false before_install: # see http://stackoverflow.com/a/30496307/395386 - sudo apt-get update - sudo apt-get install python3 python3-pip install: pip3 install -r clients/python/requirements.txt script: - pushd game && sbt clean test it:test && popd - pushd clients/python && python3 -m unittest discover -p "*_test.py" && popd
a747d4040a3cdb88cf2301df6590731fb5810d14
README.rst
README.rst
=================== slumber-serializers =================== A set of Slumber serializers .. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master :target: https://travis-ci.org/tomi77/slumber-serializers .. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg :target: https://coveralls.io/github/tomi77/slumber-serializers .. image:: https://codeclimate.com/github/tomi77/slumber-serializers/badges/gpa.svg :target: https://codeclimate.com/github/tomi77/slumber-serializers :alt: Code Climate Installation ============ Install package via ``pip`` .. sourcecode:: sh pip install slumber-serializers Usage ===== .. sourcecode:: python import slumber import slumber.serialize from slumber_serializers import CsvSerializer api = slumber.API('/api/v1/', serializer=slumber.serialize.Serializer(default='csv', serializers=[CsvSerializer()]), format='csv') api.test(format='csv').get()
=================== slumber-serializers =================== A set of Slumber serializers .. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master :target: https://travis-ci.org/tomi77/slumber-serializers .. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg :target: https://coveralls.io/github/tomi77/slumber-serializers .. image:: https://codeclimate.com/github/tomi77/slumber-serializers/badges/gpa.svg :target: https://codeclimate.com/github/tomi77/slumber-serializers :alt: Code Climate Installation ============ Install package via ``pip`` .. sourcecode:: sh pip install slumber-serializers Usage ===== .. sourcecode:: python import slumber import slumber.serialize from slumber_serializers import CsvSerializer api = slumber.API('/api/v1/', serializer=slumber.serialize.Serializer(default='csv', serializers=[CsvSerializer()]), format='csv') api.test(format='csv').get() Available serializers ===================== CSV serializer -------------- Serialize to and deserialize from CSV. Binary serializer ----------------- Serialize to and deserialize from any binary format.
Add list of serializers to readme
Add list of serializers to readme
reStructuredText
mit
tomi77/slumber-extra
restructuredtext
## Code Before: =================== slumber-serializers =================== A set of Slumber serializers .. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master :target: https://travis-ci.org/tomi77/slumber-serializers .. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg :target: https://coveralls.io/github/tomi77/slumber-serializers .. image:: https://codeclimate.com/github/tomi77/slumber-serializers/badges/gpa.svg :target: https://codeclimate.com/github/tomi77/slumber-serializers :alt: Code Climate Installation ============ Install package via ``pip`` .. sourcecode:: sh pip install slumber-serializers Usage ===== .. sourcecode:: python import slumber import slumber.serialize from slumber_serializers import CsvSerializer api = slumber.API('/api/v1/', serializer=slumber.serialize.Serializer(default='csv', serializers=[CsvSerializer()]), format='csv') api.test(format='csv').get() ## Instruction: Add list of serializers to readme ## Code After: =================== slumber-serializers =================== A set of Slumber serializers .. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master :target: https://travis-ci.org/tomi77/slumber-serializers .. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg :target: https://coveralls.io/github/tomi77/slumber-serializers .. image:: https://codeclimate.com/github/tomi77/slumber-serializers/badges/gpa.svg :target: https://codeclimate.com/github/tomi77/slumber-serializers :alt: Code Climate Installation ============ Install package via ``pip`` .. sourcecode:: sh pip install slumber-serializers Usage ===== .. sourcecode:: python import slumber import slumber.serialize from slumber_serializers import CsvSerializer api = slumber.API('/api/v1/', serializer=slumber.serialize.Serializer(default='csv', serializers=[CsvSerializer()]), format='csv') api.test(format='csv').get() Available serializers ===================== CSV serializer -------------- Serialize to and deserialize from CSV. Binary serializer ----------------- Serialize to and deserialize from any binary format.
b203bf893e5c213292b9a68e07ad1dc4d44749a1
README.md
README.md
Simple configuration loader used in Knodeo products
Simple configuration loader used in Knodeo products Important Note: This library has been deprecated in favor of aitutils (https://github.com/assignittous/aitutils)
Update readme with deprecation notice
Update readme with deprecation notice
Markdown
mit
assignittous/knodeo_configuration
markdown
## Code Before: Simple configuration loader used in Knodeo products ## Instruction: Update readme with deprecation notice ## Code After: Simple configuration loader used in Knodeo products Important Note: This library has been deprecated in favor of aitutils (https://github.com/assignittous/aitutils)
984182f73d7e7caa6989ce5be9bfa75fe166c432
src/main.rs
src/main.rs
extern crate error_chain; extern crate reqwest; extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json as json; extern crate toml; extern crate url; mod config; mod crates_io; mod errors; mod github; mod lockfile; use std::env; use crates_io::Repository; use errors::*; quick_main!(|| -> Result<()> { let path = env::home_dir() .expect("Cannot get home directory") .join(".thank-you-stars.json"); if !path.exists() { bail!("Save your configuration as {:?}", path) } let config = config::read(&path) .chain_err(|| "Cannot read your configuration")?; let path = env::current_dir()?.join("Cargo.lock"); if !path.exists() { bail!("Run `cargo install` before") } let lockfile = lockfile::read(&path) .chain_err(|| "Cannot read Cargo.lock")?; for dependency in lockfile.root.dependencies { if dependency.is_registry() { let krate = crates_io::get(&dependency.crate_id()) .chain_err(|| "Cannot get crate data from crates.io")?; if let Repository::GitHub(repository) = krate.repository() { match github::star(&config.token, &repository) { Ok(_) => println!("Starred! https://github.com/{}", &repository), Err(e) => println!("{}", e), } } } } Ok(()) });
extern crate error_chain; extern crate reqwest; extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json as json; extern crate toml; extern crate url; mod config; mod crates_io; mod errors; mod github; mod lockfile; use std::env; use crates_io::Repository; use errors::*; quick_main!(|| -> Result<()> { let home_dir = env::home_dir().expect("Cannot get home directory"); let config = config::read(&home_dir.join(".thank-you-stars.json")) .chain_err(|| "Save your configuration as `.thank-you-stars.json`")?; let lockfile = lockfile::read(&env::current_dir()?.join("Cargo.lock")) .chain_err(|| "Run `cargo install` before")?; for dependency in lockfile.root.dependencies { if dependency.is_registry() { let krate = crates_io::get(&dependency.crate_id()) .chain_err(|| "Cannot get crate data from crates.io")?; if let Repository::GitHub(repository) = krate.repository() { match github::star(&config.token, &repository) { Ok(_) => println!("Starred! https://github.com/{}", &repository), Err(e) => println!("{}", e), } } } } Ok(()) });
Remove the file existence check
Remove the file existence check
Rust
mit
woxtu/cargo-thank-you-stars
rust
## Code Before: extern crate error_chain; extern crate reqwest; extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json as json; extern crate toml; extern crate url; mod config; mod crates_io; mod errors; mod github; mod lockfile; use std::env; use crates_io::Repository; use errors::*; quick_main!(|| -> Result<()> { let path = env::home_dir() .expect("Cannot get home directory") .join(".thank-you-stars.json"); if !path.exists() { bail!("Save your configuration as {:?}", path) } let config = config::read(&path) .chain_err(|| "Cannot read your configuration")?; let path = env::current_dir()?.join("Cargo.lock"); if !path.exists() { bail!("Run `cargo install` before") } let lockfile = lockfile::read(&path) .chain_err(|| "Cannot read Cargo.lock")?; for dependency in lockfile.root.dependencies { if dependency.is_registry() { let krate = crates_io::get(&dependency.crate_id()) .chain_err(|| "Cannot get crate data from crates.io")?; if let Repository::GitHub(repository) = krate.repository() { match github::star(&config.token, &repository) { Ok(_) => println!("Starred! https://github.com/{}", &repository), Err(e) => println!("{}", e), } } } } Ok(()) }); ## Instruction: Remove the file existence check ## Code After: extern crate error_chain; extern crate reqwest; extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json as json; extern crate toml; extern crate url; mod config; mod crates_io; mod errors; mod github; mod lockfile; use std::env; use crates_io::Repository; use errors::*; quick_main!(|| -> Result<()> { let home_dir = env::home_dir().expect("Cannot get home directory"); let config = config::read(&home_dir.join(".thank-you-stars.json")) .chain_err(|| "Save your configuration as `.thank-you-stars.json`")?; let lockfile = lockfile::read(&env::current_dir()?.join("Cargo.lock")) .chain_err(|| "Run `cargo install` before")?; for dependency in lockfile.root.dependencies { if dependency.is_registry() { let krate = crates_io::get(&dependency.crate_id()) .chain_err(|| "Cannot get crate data from crates.io")?; if let Repository::GitHub(repository) = krate.repository() { match github::star(&config.token, &repository) { Ok(_) => println!("Starred! https://github.com/{}", &repository), Err(e) => println!("{}", e), } } } } Ok(()) });
412b617b91071b8e5951310efef9c5baf9cbb9fd
index.js
index.js
module.exports = function repository(db) { return { save: (collection, data, response) => { db[collection].insertOne(data, response); }, update: (collection, query, update, opts = {}, response) => { db[collection].update(query, update, opts, response); }, find: (collection, query, projection = {}, response) => { db[collection].find(query, projection, response); }, findOne: (collection, query, projection = {}, response) => { db[collection].findOne(query, projection, response); } }; };
module.exports = function repository(db) { return { save: (collection, data, response) => { db[collection].insertOne(data, response); }, update: (collection, query, update, response, opts = {}) => { db[collection].update(query, { $set: update }, opts, response); }, find: (collection, query, response, projection = {}) => { db[collection].find(query, projection, response); }, findOne: (collection, query, response, projection = {}) => { db[collection].findOne(query, projection, response); } }; };
Update opts and projection params.
Update opts and projection params. Default opts to empty object Default projection to empty object Wrap update in $set
JavaScript
mit
BlueMageSoftware/repository
javascript
## Code Before: module.exports = function repository(db) { return { save: (collection, data, response) => { db[collection].insertOne(data, response); }, update: (collection, query, update, opts = {}, response) => { db[collection].update(query, update, opts, response); }, find: (collection, query, projection = {}, response) => { db[collection].find(query, projection, response); }, findOne: (collection, query, projection = {}, response) => { db[collection].findOne(query, projection, response); } }; }; ## Instruction: Update opts and projection params. Default opts to empty object Default projection to empty object Wrap update in $set ## Code After: module.exports = function repository(db) { return { save: (collection, data, response) => { db[collection].insertOne(data, response); }, update: (collection, query, update, response, opts = {}) => { db[collection].update(query, { $set: update }, opts, response); }, find: (collection, query, response, projection = {}) => { db[collection].find(query, projection, response); }, findOne: (collection, query, response, projection = {}) => { db[collection].findOne(query, projection, response); } }; };
88b6a312dd36344fb50abd745d71d1b0159aa65a
Slim/Handlers/Strategies/RequestResponse.php
Slim/Handlers/Strategies/RequestResponse.php
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim\Handlers\Strategies; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Slim\Interfaces\InvocationStrategyInterface; /** * Default route callback strategy with route parameters as an array of arguments. */ class RequestResponse implements InvocationStrategyInterface { /** * Invoke a route callable with request, response, and all route parameters * as an array of arguments. * * @param array|callable $callable * @param ServerRequestInterface $request * @param ResponseInterface $response * @param array $routeArguments * * @return mixed */ public function __invoke( callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments ) { foreach ($routeArguments as $k => $v) { $request = $request->withAttribute($k, $v); } return $callable($request, $response, $routeArguments); } }
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim\Handlers\Strategies; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Slim\Interfaces\InvocationStrategyInterface; /** * Default route callback strategy with route parameters as an array of arguments. */ class RequestResponse implements InvocationStrategyInterface { /** * Invoke a route callable with request, response, and all route parameters * as an array of arguments. * * @param array|callable $callable * @param ServerRequestInterface $request * @param ResponseInterface $response * @param array $routeArguments * * @return mixed */ public function __invoke( callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments ) { foreach ($routeArguments as $k => $v) { $request = $request->withAttribute($k, $v); } return call_user_func($callable, $request, $response, $routeArguments); } }
Fix bug, a callable defined as 'class::method' is not possible
Fix bug, a callable defined as 'class::method' is not possible
PHP
mit
dopesong/Slim,Sam-Burns/Slim,mnapoli/Slim,foxyantho/Slim,akrabat/Slim,juliangut/Slim,AndrewCarterUK/Slim,designermonkey/Slim,feryardiant/slim,iinux/Slim,JoeBengalen/Slim,iinux/Slim,slimphp/Slim,iinux/Slim,RealSelf/Slim
php
## Code Before: <?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim\Handlers\Strategies; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Slim\Interfaces\InvocationStrategyInterface; /** * Default route callback strategy with route parameters as an array of arguments. */ class RequestResponse implements InvocationStrategyInterface { /** * Invoke a route callable with request, response, and all route parameters * as an array of arguments. * * @param array|callable $callable * @param ServerRequestInterface $request * @param ResponseInterface $response * @param array $routeArguments * * @return mixed */ public function __invoke( callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments ) { foreach ($routeArguments as $k => $v) { $request = $request->withAttribute($k, $v); } return $callable($request, $response, $routeArguments); } } ## Instruction: Fix bug, a callable defined as 'class::method' is not possible ## Code After: <?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim\Handlers\Strategies; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Slim\Interfaces\InvocationStrategyInterface; /** * Default route callback strategy with route parameters as an array of arguments. */ class RequestResponse implements InvocationStrategyInterface { /** * Invoke a route callable with request, response, and all route parameters * as an array of arguments. * * @param array|callable $callable * @param ServerRequestInterface $request * @param ResponseInterface $response * @param array $routeArguments * * @return mixed */ public function __invoke( callable $callable, ServerRequestInterface $request, ResponseInterface $response, array $routeArguments ) { foreach ($routeArguments as $k => $v) { $request = $request->withAttribute($k, $v); } return call_user_func($callable, $request, $response, $routeArguments); } }
b7b9485b9b03ff3bdf3e0388605073c2cb549264
emacs/init.el
emacs/init.el
;; Load Evil (add-to-list 'load-path "~/.emacs.d/evil") (require 'evil) (evil-mode 1) ;; Open .v files with Proof General's Coq mode (load "~/.emacs.d/lisp/PG/generic/proof-site") (load-theme 'iceberg t)
;; Load Evil (setq evil-want-abbrev-expand-on-insert-exit nil) (add-to-list 'load-path "~/.emacs.d/evil") (require 'evil) (evil-mode 1) ;; Open .v files with Proof General's Coq mode (load "~/.emacs.d/lisp/PG/generic/proof-site") (load-theme 'iceberg t)
Fix Evil and Proof General compatibility error
emacs: Fix Evil and Proof General compatibility error See https://github.com/ProofGeneral/PG/issues/174 https://github.com/syl20bnr/spacemacs/issues/8853
Emacs Lisp
mit
colajam93/dotfiles
emacs-lisp
## Code Before: ;; Load Evil (add-to-list 'load-path "~/.emacs.d/evil") (require 'evil) (evil-mode 1) ;; Open .v files with Proof General's Coq mode (load "~/.emacs.d/lisp/PG/generic/proof-site") (load-theme 'iceberg t) ## Instruction: emacs: Fix Evil and Proof General compatibility error See https://github.com/ProofGeneral/PG/issues/174 https://github.com/syl20bnr/spacemacs/issues/8853 ## Code After: ;; Load Evil (setq evil-want-abbrev-expand-on-insert-exit nil) (add-to-list 'load-path "~/.emacs.d/evil") (require 'evil) (evil-mode 1) ;; Open .v files with Proof General's Coq mode (load "~/.emacs.d/lisp/PG/generic/proof-site") (load-theme 'iceberg t)
ff61fb41273b8bf94bd0c64ddb1a4c1e1c91bb5f
api/__init__.py
api/__init__.py
from flask_sqlalchemy import SQLAlchemy import connexion from config import config db = SQLAlchemy() def create_app(config_name): app = connexion.FlaskApp(__name__, specification_dir='swagger/') app.add_api('swagger.yaml') application = app.app application.config.from_object(config[config_name]) db.init_app(application) return application from api.api import *
from flask_sqlalchemy import SQLAlchemy import connexion from config import config db = SQLAlchemy() def create_app(config_name): app = connexion.FlaskApp(__name__, specification_dir='swagger/') app.add_api('swagger.yaml') application = app.app application.config.from_object(config[config_name]) application.add_url_rule('/auth/register', 'register', register) application.add_url_rule('/auth/login', 'login', login) db.init_app(application) return application from api.api import *
Add url rules for public unauthorised routes
Add url rules for public unauthorised routes
Python
mit
EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list
python
## Code Before: from flask_sqlalchemy import SQLAlchemy import connexion from config import config db = SQLAlchemy() def create_app(config_name): app = connexion.FlaskApp(__name__, specification_dir='swagger/') app.add_api('swagger.yaml') application = app.app application.config.from_object(config[config_name]) db.init_app(application) return application from api.api import * ## Instruction: Add url rules for public unauthorised routes ## Code After: from flask_sqlalchemy import SQLAlchemy import connexion from config import config db = SQLAlchemy() def create_app(config_name): app = connexion.FlaskApp(__name__, specification_dir='swagger/') app.add_api('swagger.yaml') application = app.app application.config.from_object(config[config_name]) application.add_url_rule('/auth/register', 'register', register) application.add_url_rule('/auth/login', 'login', login) db.init_app(application) return application from api.api import *
3a04032486a4c55d9b00c47a6cb112356d78ea21
app/views/payments/show.html.slim
app/views/payments/show.html.slim
header.main-header h3 Page 1 of 11 h1 Your fee .main-section aside h3 Get Help nav ul li = link_to('Read the guide') li = link_to('Sign out', user_sessions_path) .main-content .main-column fieldset legend Application fee p = "The standard application fee for your claim is <span class=\"strong\">£#{fee_calculation.application_fee_after_remission}</span>".html_safe p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <span class=\"strong\">£#{fee_calculation.hearing_fee}</span>.".html_safe fieldset legend Reduce your fee = f.input :is_applying_for_remission, as: :gds_check_boxes, wrapper_class: 'reveal-checkbox', input_html: {class: 'input-reveal'} = submit_tag "Start payment", name: nil
h1 Pay your fee p = "From the information you’ve given us, you have to pay <strong>£#{fee_calculation.application_fee_after_remission}</strong> by debit or credit card.".html_safe p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <strong>£#{fee_calculation.hearing_fee}</strong>.".html_safe = form_tag payment_request.request_url, authenticity_token: false, enforce_utf8: false, name: 'form1' do |f| - payment_request.form_attributes.each do |k, v| = hidden_field_tag k, v = submit_tag "Start payment", name: nil
Return payments show page to original state - We need to fix the flow for this as create claim feature will break if no EPDQ form is present.
Return payments show page to original state - We need to fix the flow for this as create claim feature will break if no EPDQ form is present.
Slim
mit
ministryofjustice/atet,ministryofjustice/atet,ministryofjustice/atet,ministryofjustice/atet
slim
## Code Before: header.main-header h3 Page 1 of 11 h1 Your fee .main-section aside h3 Get Help nav ul li = link_to('Read the guide') li = link_to('Sign out', user_sessions_path) .main-content .main-column fieldset legend Application fee p = "The standard application fee for your claim is <span class=\"strong\">£#{fee_calculation.application_fee_after_remission}</span>".html_safe p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <span class=\"strong\">£#{fee_calculation.hearing_fee}</span>.".html_safe fieldset legend Reduce your fee = f.input :is_applying_for_remission, as: :gds_check_boxes, wrapper_class: 'reveal-checkbox', input_html: {class: 'input-reveal'} = submit_tag "Start payment", name: nil ## Instruction: Return payments show page to original state - We need to fix the flow for this as create claim feature will break if no EPDQ form is present. ## Code After: h1 Pay your fee p = "From the information you’ve given us, you have to pay <strong>£#{fee_calculation.application_fee_after_remission}</strong> by debit or credit card.".html_safe p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <strong>£#{fee_calculation.hearing_fee}</strong>.".html_safe = form_tag payment_request.request_url, authenticity_token: false, enforce_utf8: false, name: 'form1' do |f| - payment_request.form_attributes.each do |k, v| = hidden_field_tag k, v = submit_tag "Start payment", name: nil
2dd403a0be266c878c5fef1669fa7942296da0d8
.travis.yml
.travis.yml
language: scala scala: - 2.10.4 jdk: - openjdk7 branches: only: - master after_success: - sbt publishMasterOnTravis cache: directories: - $HOME/.ivy2 notifications: hipchat: rooms: secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEovPYHS+deFd3Is0/hbmT7gXPOQ2FvVkASCIKfGIiYPYGVwuciqVfwZqnrMZ1mc=
language: scala scala: - 2.10.4 jdk: - openjdk7 branches: only: - master after_success: - sbt publishMasterOnTravis cache: directories: - $HOME/.ivy2 notifications: hipchat: rooms: secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEovPYHS+deFd3Is0/hbmT7gXPOQ2FvVkASCIKfGIiYPYGVwuciqVfwZqnrMZ1mc= on_success: change on_failure: always
Make Travis notify more sparingly.
Make Travis notify more sparingly.
YAML
apache-2.0
jkinkead/common,cristipp/common,ryanai3/common,allenai/datastore
yaml
## Code Before: language: scala scala: - 2.10.4 jdk: - openjdk7 branches: only: - master after_success: - sbt publishMasterOnTravis cache: directories: - $HOME/.ivy2 notifications: hipchat: rooms: secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEovPYHS+deFd3Is0/hbmT7gXPOQ2FvVkASCIKfGIiYPYGVwuciqVfwZqnrMZ1mc= ## Instruction: Make Travis notify more sparingly. ## Code After: language: scala scala: - 2.10.4 jdk: - openjdk7 branches: only: - master after_success: - sbt publishMasterOnTravis cache: directories: - $HOME/.ivy2 notifications: hipchat: rooms: secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEovPYHS+deFd3Is0/hbmT7gXPOQ2FvVkASCIKfGIiYPYGVwuciqVfwZqnrMZ1mc= on_success: change on_failure: always
940f4f4da198335f51c2f8e76fc1c0caffb7736c
__tests__/index.js
__tests__/index.js
import config from "../" import postcss from "postcss" import stylelint from "stylelint" import test from "tape" test("basic properties of config", t => { t.ok(isObject(config.rules), "rules is object") t.end() }) function isObject(obj) { return typeof obj === "object" && obj !== null } const css = ( `a { \ttop: .2em; } `) postcss() .use(stylelint(config)) .process(css) .then(checkResult) .catch(e => console.log(e.stack)) function checkResult(result) { const { messages } = result test("expected warnings", t => { t.equal(messages.length, 1, "flags one warning") t.ok(messages.every(m => m.type === "warning"), "message of type warning") t.ok(messages.every(m => m.plugin === "stylelint"), "message of plugin stylelint") t.equal(messages[0].text, "Expected a leading zero (number-leading-zero)", "correct warning text") t.end() }) }
import config from "../" import stylelint from "stylelint" import test from "tape" test("basic properties of config", t => { t.ok(isObject(config.rules), "rules is object") t.end() }) function isObject(obj) { return typeof obj === "object" && obj !== null } const css = ( `a { \ttop: .2em; } `) stylelint.lint({ code: css, config: config, }) .then(checkResult) .catch(function (err) { console.error(err.stack) }) function checkResult(data) { const { errored, results } = data const { warnings } = results[0] test("expected warnings", t => { t.ok(errored, "errored") t.equal(warnings.length, 1, "flags one warning") t.equal(warnings[0].text, "Expected a leading zero (number-leading-zero)", "correct warning text") t.end() }) }
Use stylelint standalone API in test
Use stylelint standalone API in test
JavaScript
mit
ntwb/stylelint-config-wordpress,WordPress-Coding-Standards/stylelint-config-wordpress,GaryJones/stylelint-config-wordpress,stylelint/stylelint-config-wordpress
javascript
## Code Before: import config from "../" import postcss from "postcss" import stylelint from "stylelint" import test from "tape" test("basic properties of config", t => { t.ok(isObject(config.rules), "rules is object") t.end() }) function isObject(obj) { return typeof obj === "object" && obj !== null } const css = ( `a { \ttop: .2em; } `) postcss() .use(stylelint(config)) .process(css) .then(checkResult) .catch(e => console.log(e.stack)) function checkResult(result) { const { messages } = result test("expected warnings", t => { t.equal(messages.length, 1, "flags one warning") t.ok(messages.every(m => m.type === "warning"), "message of type warning") t.ok(messages.every(m => m.plugin === "stylelint"), "message of plugin stylelint") t.equal(messages[0].text, "Expected a leading zero (number-leading-zero)", "correct warning text") t.end() }) } ## Instruction: Use stylelint standalone API in test ## Code After: import config from "../" import stylelint from "stylelint" import test from "tape" test("basic properties of config", t => { t.ok(isObject(config.rules), "rules is object") t.end() }) function isObject(obj) { return typeof obj === "object" && obj !== null } const css = ( `a { \ttop: .2em; } `) stylelint.lint({ code: css, config: config, }) .then(checkResult) .catch(function (err) { console.error(err.stack) }) function checkResult(data) { const { errored, results } = data const { warnings } = results[0] test("expected warnings", t => { t.ok(errored, "errored") t.equal(warnings.length, 1, "flags one warning") t.equal(warnings[0].text, "Expected a leading zero (number-leading-zero)", "correct warning text") t.end() }) }
a46b7fabdb79de949d0d795cf2ec0accc2a34a4b
Ndapi/Ndapi.h
Ndapi/Ndapi.h
using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; NativeString(const NativeString&); NativeString& operator = (const NativeString&); public: NativeString(String^ s); ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; }
using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; public: NativeString(String^ s); NativeString(const NativeString&) = delete; NativeString& operator = (const NativeString&) = delete; ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; }
Use =delete to disallow copy
Use =delete to disallow copy
C
mit
felipebz/ndapi
c
## Code Before: using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; NativeString(const NativeString&); NativeString& operator = (const NativeString&); public: NativeString(String^ s); ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; } ## Instruction: Use =delete to disallow copy ## Code After: using namespace System; using namespace System::Runtime::InteropServices; namespace Ndapi { [Serializable] public ref class NdapiException : public Exception { private: long _status; public: property long Status { long get() { return _status; } }; public protected: NdapiException() : Exception() {} NdapiException(String^ message) : Exception(message) {} NdapiException(String^ message, Exception^ inner) : Exception(message, inner) {} NdapiException(String^ message, long status) : Exception(message) { _status = status; } }; template<class T> class NativeString { private: T* value; public: NativeString(String^ s); NativeString(const NativeString&) = delete; NativeString& operator = (const NativeString&) = delete; ~NativeString() { Marshal::FreeHGlobal(IntPtr(value)); } operator T* () { return value; } }; }
91d90d22346e801328067c694b1233bdea6a4ff9
package.json
package.json
{ "name": "stork", "version": "0.1.1", "description": "Stork provides a layer of document management over the CouchDB.", "main": "./lib/stork.js", "scripts": { "test": "./node_modules/nodeunit/bin/nodeunit test" , "autotest": "./node_modules/autotest/autotest.js --npm" }, "keywords": [ "couchdb", "odm" ], "contributors": [ { "name": "Curtis Schlak", "web": "http://curtis.schlak.com" }, { "name": "Bryan Ray", "web": "http://bryanray.net" } ], "license": "BSD-3-Clause", "devDependencies": { "nodeunit": "~0.8.3", "should": "~3.1.0", "autotest": "~0.2.6" }, "repository": { "type": "git", "url": "https://github.com/realistschuckle/stork.git" }, "dependencies": { "utile": "~0.2.1", "revalidator": "~0.1.6" } }
{ "name": "stork", "version": "0.1.1", "description": "Stork provides a layer of document management over the CouchDB.", "main": "./lib/stork.js", "scripts": { "test": "./node_modules/nodeunit/bin/nodeunit test --reporter minimal" , "autotest": "./node_modules/autotest/autotest.js --npm" }, "keywords": [ "couchdb", "odm" ], "contributors": [ { "name": "Curtis Schlak", "web": "http://curtis.schlak.com" }, { "name": "Bryan Ray", "web": "http://bryanray.net" } ], "license": "BSD-3-Clause", "devDependencies": { "nodeunit": "~0.8.3", "should": "~3.1.0", "autotest": "~0.2.6" }, "repository": { "type": "git", "url": "https://github.com/realistschuckle/stork.git" }, "dependencies": { "utile": "~0.2.1", "revalidator": "~0.1.6" } }
Make the output of nodeunit minimal.
Make the output of nodeunit minimal.
JSON
bsd-3-clause
curtissimo/stork
json
## Code Before: { "name": "stork", "version": "0.1.1", "description": "Stork provides a layer of document management over the CouchDB.", "main": "./lib/stork.js", "scripts": { "test": "./node_modules/nodeunit/bin/nodeunit test" , "autotest": "./node_modules/autotest/autotest.js --npm" }, "keywords": [ "couchdb", "odm" ], "contributors": [ { "name": "Curtis Schlak", "web": "http://curtis.schlak.com" }, { "name": "Bryan Ray", "web": "http://bryanray.net" } ], "license": "BSD-3-Clause", "devDependencies": { "nodeunit": "~0.8.3", "should": "~3.1.0", "autotest": "~0.2.6" }, "repository": { "type": "git", "url": "https://github.com/realistschuckle/stork.git" }, "dependencies": { "utile": "~0.2.1", "revalidator": "~0.1.6" } } ## Instruction: Make the output of nodeunit minimal. ## Code After: { "name": "stork", "version": "0.1.1", "description": "Stork provides a layer of document management over the CouchDB.", "main": "./lib/stork.js", "scripts": { "test": "./node_modules/nodeunit/bin/nodeunit test --reporter minimal" , "autotest": "./node_modules/autotest/autotest.js --npm" }, "keywords": [ "couchdb", "odm" ], "contributors": [ { "name": "Curtis Schlak", "web": "http://curtis.schlak.com" }, { "name": "Bryan Ray", "web": "http://bryanray.net" } ], "license": "BSD-3-Clause", "devDependencies": { "nodeunit": "~0.8.3", "should": "~3.1.0", "autotest": "~0.2.6" }, "repository": { "type": "git", "url": "https://github.com/realistschuckle/stork.git" }, "dependencies": { "utile": "~0.2.1", "revalidator": "~0.1.6" } }
33e509fe73144e05a3e243e6a4dc04bc6d8eb827
init.rb
init.rb
require 'pry' Redmine::Plugin.register :list_issues do name 'List Issues' author 'Grzegorz Łuszczek' #description 'Thisggplugin overrides default include in Wiki' version '1.0.0' module WikiMacros Redmine::WikiFormatting::Macros.register do desc "List issues" macro :list_issues do |obj, args| name, *rest = args version = @project.versions.where( name: name ).first! query = Hash[*rest.flat_map {|q| k,v = q.split("="); [k,v]}] binding.pry content_tag(:ul) do version.fixed_issues.where(query).collect do |issue| content_tag(:li, issue.subject) end.join("\n").html_safe end end end end end
require 'pry' Redmine::Plugin.register :list_issues do name 'List Issues' author 'Grzegorz Łuszczek' #description 'Thisggplugin overrides default include in Wiki' version '1.0.0' module WikiMacros Redmine::WikiFormatting::Macros.register do desc "List issues" macro :list_issues do |obj, args| name, *rest = args version = @project.versions.where( name: name ).first! groupped = rest.group_by { |attr| ((tmp = attr[0...3]) == "max" || tmp == "min") ? tmp : "eq" } query = Hash[*(groupped["eq"] || []).flat_map {|q| k,v = q.split("="); [k,v]}] smaller = (groupped['max'] || []).collect { |attr| attr[4..-1].gsub("=", " < ") }.join(" AND ") greater = (groupped['min'] || []).collect { |attr| attr[4..-1].gsub("=", " > ") }.join(" AND ") content_tag(:ul) do version.fixed_issues.where(query).where(smaller).where(greater).collect do |issue| content_tag(:li, issue.subject) end.join("\n").html_safe end end end end end
Add extra filtering for fields
Add extra filtering for fields
Ruby
mit
grzlus/list_issues
ruby
## Code Before: require 'pry' Redmine::Plugin.register :list_issues do name 'List Issues' author 'Grzegorz Łuszczek' #description 'Thisggplugin overrides default include in Wiki' version '1.0.0' module WikiMacros Redmine::WikiFormatting::Macros.register do desc "List issues" macro :list_issues do |obj, args| name, *rest = args version = @project.versions.where( name: name ).first! query = Hash[*rest.flat_map {|q| k,v = q.split("="); [k,v]}] binding.pry content_tag(:ul) do version.fixed_issues.where(query).collect do |issue| content_tag(:li, issue.subject) end.join("\n").html_safe end end end end end ## Instruction: Add extra filtering for fields ## Code After: require 'pry' Redmine::Plugin.register :list_issues do name 'List Issues' author 'Grzegorz Łuszczek' #description 'Thisggplugin overrides default include in Wiki' version '1.0.0' module WikiMacros Redmine::WikiFormatting::Macros.register do desc "List issues" macro :list_issues do |obj, args| name, *rest = args version = @project.versions.where( name: name ).first! groupped = rest.group_by { |attr| ((tmp = attr[0...3]) == "max" || tmp == "min") ? tmp : "eq" } query = Hash[*(groupped["eq"] || []).flat_map {|q| k,v = q.split("="); [k,v]}] smaller = (groupped['max'] || []).collect { |attr| attr[4..-1].gsub("=", " < ") }.join(" AND ") greater = (groupped['min'] || []).collect { |attr| attr[4..-1].gsub("=", " > ") }.join(" AND ") content_tag(:ul) do version.fixed_issues.where(query).where(smaller).where(greater).collect do |issue| content_tag(:li, issue.subject) end.join("\n").html_safe end end end end end
2a8be3627b83e879ff3f201e937a0c8e8077e38c
content/events/2019-amsterdam/program/yan-cui.md
content/events/2019-amsterdam/program/yan-cui.md
+++ Talk_date = "" Talk_start_time = "" Talk_end_time = "" Title = "Serverless is more FinDev than DevOps" Type = "talk" Speakers = ["yan-cui"] aliases = ["/events/2019-amsterdam/program/yan-cui/"] youtube = "" slideshare = "" slides = "" +++ The pay-per-invocation model of serverless is such an under-appreciated superpower. It lets you work out the cost of each user transaction and understand the return on investment of features. It can even open the door for new business models and pricing strategies once you embrace it. A lot of the discussions around serverless has been about the benefits it brings to the table with regards to DevOps - more infrastructure automation, scalability and resilience out-of-the-box. Developers love it because they can offload even more undifferentiated heavy-lifting to their cloud vendors, and they can focus their energy on building the things their users want. Businesses benefit hugely too because they have happier developers who can deliver value faster! But the true power of the serverless paradigm, for the business, is the pay-per-invocation model. It allows them to finally understand the cost of user transactions, and calculate the return on investment of features. And if you embrace this superpower then it can even open the door to an entirely new business model built around pay-per-transaction and give your business the competitive advantage over your rivals.
+++ Talk_date = "" Talk_start_time = "" Talk_end_time = "" Title = "Serverless is more FinDev than DevOps" Type = "talk" Speakers = ["yan-cui"] aliases = ["/events/2019-amsterdam/program/yan-cui/"] youtube = "" slideshare = "https://www.slideshare.net/theburningmonk/serverless-is-more-findev-than-devops-152220364" slides = "https://www.slideshare.net/theburningmonk/serverless-is-more-findev-than-devops-152220364" +++ The pay-per-invocation model of serverless is such an under-appreciated superpower. It lets you work out the cost of each user transaction and understand the return on investment of features. It can even open the door for new business models and pricing strategies once you embrace it. A lot of the discussions around serverless has been about the benefits it brings to the table with regards to DevOps - more infrastructure automation, scalability and resilience out-of-the-box. Developers love it because they can offload even more undifferentiated heavy-lifting to their cloud vendors, and they can focus their energy on building the things their users want. Businesses benefit hugely too because they have happier developers who can deliver value faster! But the true power of the serverless paradigm, for the business, is the pay-per-invocation model. It allows them to finally understand the cost of user transactions, and calculate the return on investment of features. And if you embrace this superpower then it can even open the door to an entirely new business model built around pay-per-transaction and give your business the competitive advantage over your rivals.
Add slides from Yan Cui
[AMS-2019] Add slides from Yan Cui Signed-off-by: Daniel Paulus <bb850eeaf91d1e60313a09757cce475a3f32f76e@gmail.com>
Markdown
apache-2.0
gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web
markdown
## Code Before: +++ Talk_date = "" Talk_start_time = "" Talk_end_time = "" Title = "Serverless is more FinDev than DevOps" Type = "talk" Speakers = ["yan-cui"] aliases = ["/events/2019-amsterdam/program/yan-cui/"] youtube = "" slideshare = "" slides = "" +++ The pay-per-invocation model of serverless is such an under-appreciated superpower. It lets you work out the cost of each user transaction and understand the return on investment of features. It can even open the door for new business models and pricing strategies once you embrace it. A lot of the discussions around serverless has been about the benefits it brings to the table with regards to DevOps - more infrastructure automation, scalability and resilience out-of-the-box. Developers love it because they can offload even more undifferentiated heavy-lifting to their cloud vendors, and they can focus their energy on building the things their users want. Businesses benefit hugely too because they have happier developers who can deliver value faster! But the true power of the serverless paradigm, for the business, is the pay-per-invocation model. It allows them to finally understand the cost of user transactions, and calculate the return on investment of features. And if you embrace this superpower then it can even open the door to an entirely new business model built around pay-per-transaction and give your business the competitive advantage over your rivals. ## Instruction: [AMS-2019] Add slides from Yan Cui Signed-off-by: Daniel Paulus <bb850eeaf91d1e60313a09757cce475a3f32f76e@gmail.com> ## Code After: +++ Talk_date = "" Talk_start_time = "" Talk_end_time = "" Title = "Serverless is more FinDev than DevOps" Type = "talk" Speakers = ["yan-cui"] aliases = ["/events/2019-amsterdam/program/yan-cui/"] youtube = "" slideshare = "https://www.slideshare.net/theburningmonk/serverless-is-more-findev-than-devops-152220364" slides = "https://www.slideshare.net/theburningmonk/serverless-is-more-findev-than-devops-152220364" +++ The pay-per-invocation model of serverless is such an under-appreciated superpower. It lets you work out the cost of each user transaction and understand the return on investment of features. It can even open the door for new business models and pricing strategies once you embrace it. A lot of the discussions around serverless has been about the benefits it brings to the table with regards to DevOps - more infrastructure automation, scalability and resilience out-of-the-box. Developers love it because they can offload even more undifferentiated heavy-lifting to their cloud vendors, and they can focus their energy on building the things their users want. Businesses benefit hugely too because they have happier developers who can deliver value faster! But the true power of the serverless paradigm, for the business, is the pay-per-invocation model. It allows them to finally understand the cost of user transactions, and calculate the return on investment of features. And if you embrace this superpower then it can even open the door to an entirely new business model built around pay-per-transaction and give your business the competitive advantage over your rivals.
cae0ca98936a046d73f35aded09c6ebd931058ff
src/React/Properties/index.js
src/React/Properties/index.js
import CellProperty from './CellProperty'; import CheckboxProperty from './CheckboxProperty'; import EnumProperty from './EnumProperty'; import PropertyFactory from './PropertyFactory'; import PropertyPanel from './PropertyPanel'; import SliderProperty from './SliderProperty'; export default { CellProperty, CheckboxProperty, EnumProperty, PropertyFactory, PropertyPanel, SliderProperty, };
import CellProperty from './CellProperty'; import CheckboxProperty from './CheckboxProperty'; import EnumProperty from './EnumProperty'; import MapProperty from './MapProperty'; import PropertyFactory from './PropertyFactory'; import PropertyPanel from './PropertyPanel'; import SliderProperty from './SliderProperty'; export default { CellProperty, CheckboxProperty, EnumProperty, MapProperty, PropertyFactory, PropertyPanel, SliderProperty, };
Add MapProperty into the generated file
fix(MapProperty): Add MapProperty into the generated file
JavaScript
bsd-3-clause
Kitware/paraviewweb,Kitware/paraviewweb,Kitware/paraviewweb,Kitware/paraviewweb
javascript
## Code Before: import CellProperty from './CellProperty'; import CheckboxProperty from './CheckboxProperty'; import EnumProperty from './EnumProperty'; import PropertyFactory from './PropertyFactory'; import PropertyPanel from './PropertyPanel'; import SliderProperty from './SliderProperty'; export default { CellProperty, CheckboxProperty, EnumProperty, PropertyFactory, PropertyPanel, SliderProperty, }; ## Instruction: fix(MapProperty): Add MapProperty into the generated file ## Code After: import CellProperty from './CellProperty'; import CheckboxProperty from './CheckboxProperty'; import EnumProperty from './EnumProperty'; import MapProperty from './MapProperty'; import PropertyFactory from './PropertyFactory'; import PropertyPanel from './PropertyPanel'; import SliderProperty from './SliderProperty'; export default { CellProperty, CheckboxProperty, EnumProperty, MapProperty, PropertyFactory, PropertyPanel, SliderProperty, };
b070ecdcc466b24385742cadf9bec30dde31bef1
app/styles/components/code-block/_component.scss
app/styles/components/code-block/_component.scss
@import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } }
@import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-code-snippet--display-only, .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } }
Remove the top margin on display-only snippets.
Remove the top margin on display-only snippets.
SCSS
mit
rishabhsrao/voxel-hologram,rishabhsrao/voxel-hologram,rishabhsrao/voxel-hologram
scss
## Code Before: @import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } } ## Instruction: Remove the top margin on display-only snippets. ## Code After: @import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-code-snippet--display-only, .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } }
276ebe2cb268140d7b07123d774327f30cddd02d
models/videoModel.js
models/videoModel.js
/** * Model for video. */ 'use strict'; /** * Including modules. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; let videoSchema = new Schema({ "url": String, // 视频链接 "pic": String, // 图片链接 "title": String, // 标题 "like": Number, // 想做的数量 "doctor": { "type": ObjectId, "ref": "Doctor" }, "related": [ // 相关视频 0-5个,可能没有 { "type": ObjectId, "ref": "Video" } ] }); global.MODEL.Video = mongoose.model('Video', videoSchema); module.exports = videoSchema;
/** * Model for video. */ 'use strict'; /** * Including modules. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; let videoSchema = new Schema({ "url": String, // 视频链接 "pic": String, // 图片链接 "title": String, // 标题 "like": Number, // 想做的数量 "label": [ { "type": ObjectId, "ref": "Label" } ], "doctor": { "type": ObjectId, "ref": "Doctor" }, "related": [ // 相关视频 0-5个,可能没有 { "type": ObjectId, "ref": "Video" } ] }); global.MODEL.Video = mongoose.model('Video', videoSchema); module.exports = videoSchema;
Add label for video model.
Add label for video model.
JavaScript
mit
producesry/nabemehz
javascript
## Code Before: /** * Model for video. */ 'use strict'; /** * Including modules. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; let videoSchema = new Schema({ "url": String, // 视频链接 "pic": String, // 图片链接 "title": String, // 标题 "like": Number, // 想做的数量 "doctor": { "type": ObjectId, "ref": "Doctor" }, "related": [ // 相关视频 0-5个,可能没有 { "type": ObjectId, "ref": "Video" } ] }); global.MODEL.Video = mongoose.model('Video', videoSchema); module.exports = videoSchema; ## Instruction: Add label for video model. ## Code After: /** * Model for video. */ 'use strict'; /** * Including modules. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; let videoSchema = new Schema({ "url": String, // 视频链接 "pic": String, // 图片链接 "title": String, // 标题 "like": Number, // 想做的数量 "label": [ { "type": ObjectId, "ref": "Label" } ], "doctor": { "type": ObjectId, "ref": "Doctor" }, "related": [ // 相关视频 0-5个,可能没有 { "type": ObjectId, "ref": "Video" } ] }); global.MODEL.Video = mongoose.model('Video', videoSchema); module.exports = videoSchema;
8d6cab32d2c75e9485545335100f8fd673189da9
kokoro/linux/presubmit.sh
kokoro/linux/presubmit.sh
set -e # Fail on any error. set -x # Display commands being run. cd github/marl git submodule update --init mkdir build cd build cmake .. -DMARL_BUILD_EXAMPLES=1 make --jobs=$(nproc) ./marl-unittests ./fractal
set -e # Fail on any error. set -x # Display commands being run. cd github/marl git submodule update --init mkdir build cd build build_and_run() { cmake .. -DMARL_BUILD_EXAMPLES=1 $1 make --jobs=$(nproc) ./marl-unittests ./fractal } build_and_run "" build_and_run "-DMARL_ASAN=1" build_and_run "-DMARL_MSAN=1"
Build and run with sanitizers
kokoro: Build and run with sanitizers
Shell
apache-2.0
google/marl,google/marl,google/marl,google/marl
shell
## Code Before: set -e # Fail on any error. set -x # Display commands being run. cd github/marl git submodule update --init mkdir build cd build cmake .. -DMARL_BUILD_EXAMPLES=1 make --jobs=$(nproc) ./marl-unittests ./fractal ## Instruction: kokoro: Build and run with sanitizers ## Code After: set -e # Fail on any error. set -x # Display commands being run. cd github/marl git submodule update --init mkdir build cd build build_and_run() { cmake .. -DMARL_BUILD_EXAMPLES=1 $1 make --jobs=$(nproc) ./marl-unittests ./fractal } build_and_run "" build_and_run "-DMARL_ASAN=1" build_and_run "-DMARL_MSAN=1"
bdb4e9a11d80deb8755c4f944de7d3d6a3c6c7dd
app/controllers/addresses_controller.rb
app/controllers/addresses_controller.rb
class AddressesController < ApplicationController def index @addresses = Address.order("text").paginate(:page => params[:page]) end def show @address = Address.find(params[:id]) @emails = @address.emails.paginate(:page => params[:page]) end end
class AddressesController < ApplicationController def index @addresses = Address.order("text").paginate(:page => params[:page]) end def show @address = Address.find(params[:id]) @emails = @address.emails.order("created_at DESC").paginate(:page => params[:page]) end end
Sort list of emails on address page by date
Sort list of emails on address page by date
Ruby
agpl-3.0
pratyushmittal/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,idlweb/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish
ruby
## Code Before: class AddressesController < ApplicationController def index @addresses = Address.order("text").paginate(:page => params[:page]) end def show @address = Address.find(params[:id]) @emails = @address.emails.paginate(:page => params[:page]) end end ## Instruction: Sort list of emails on address page by date ## Code After: class AddressesController < ApplicationController def index @addresses = Address.order("text").paginate(:page => params[:page]) end def show @address = Address.find(params[:id]) @emails = @address.emails.order("created_at DESC").paginate(:page => params[:page]) end end
2f43ec261a469287a14704339acc65f761a18e61
lib/one_click_orgs/version.rb
lib/one_click_orgs/version.rb
module OneClickOrgs VERSION = "1.0.0rc2" unless defined?(VERSION) def self.version if VERSION =~ /^0/ VERSION + " (beta)" else VERSION end end end
module OneClickOrgs VERSION = "1.0.0rc2" unless defined?(::OneClickOrgs::VERSION) def self.version if VERSION =~ /^0/ VERSION + " (beta)" else VERSION end end end
Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant.
Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant.
Ruby
agpl-3.0
oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs
ruby
## Code Before: module OneClickOrgs VERSION = "1.0.0rc2" unless defined?(VERSION) def self.version if VERSION =~ /^0/ VERSION + " (beta)" else VERSION end end end ## Instruction: Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant. ## Code After: module OneClickOrgs VERSION = "1.0.0rc2" unless defined?(::OneClickOrgs::VERSION) def self.version if VERSION =~ /^0/ VERSION + " (beta)" else VERSION end end end
f5e2ce3edc8744ea31e8463cbe8b2ca00a03e9c3
README.md
README.md
Various simple data structures to use in the Go Programming Language. [![Build Status](https://travis-ci.org/kwilczynski/container.png?branch=master)](https://travis-ci.org/kwilczynski/container) [![GoDoc](https://godoc.org/github.com/kwilczynski/container?status.png)](https://godoc.org/github.com/kwilczynski/container) [Go Report Card](http://goreportcard.com/report/kwilczynski/container)
Various simple data structures to use in the Go Programming Language. [![Build Status](https://travis-ci.org/kwilczynski/container.png?branch=master)](https://travis-ci.org/kwilczynski/container) [![GoDoc](https://godoc.org/github.com/kwilczynski/container?status.png)](https://godoc.org/github.com/kwilczynski/container) [![Go Report Card](http://goreportcard.com/badge/kwilczynski/container)](http://goreportcard.com/report/kwilczynski/container)
Update Go Report Card link to include a badge.
Update Go Report Card link to include a badge. Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com>
Markdown
apache-2.0
kwilczynski/container
markdown
## Code Before: Various simple data structures to use in the Go Programming Language. [![Build Status](https://travis-ci.org/kwilczynski/container.png?branch=master)](https://travis-ci.org/kwilczynski/container) [![GoDoc](https://godoc.org/github.com/kwilczynski/container?status.png)](https://godoc.org/github.com/kwilczynski/container) [Go Report Card](http://goreportcard.com/report/kwilczynski/container) ## Instruction: Update Go Report Card link to include a badge. Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com> ## Code After: Various simple data structures to use in the Go Programming Language. [![Build Status](https://travis-ci.org/kwilczynski/container.png?branch=master)](https://travis-ci.org/kwilczynski/container) [![GoDoc](https://godoc.org/github.com/kwilczynski/container?status.png)](https://godoc.org/github.com/kwilczynski/container) [![Go Report Card](http://goreportcard.com/badge/kwilczynski/container)](http://goreportcard.com/report/kwilczynski/container)
9188ce03b8a9834c9cc100f7b085becf964c746c
README.md
README.md
An electron app for taking meeting minutes
A minimal app for quickly taking meeting minutes ## Minutes Specification Minutes files are in `json` file format. They have the following structure: ``` { "organizationName": "...", "meetingScheduledTime": "...", "callToOrder": "...", "adjourn": "..." } ``` ### Definitions * `organizationName`: A `String` containing the name of the organization for which the meeting is being held. * `meetingScheduledTime`: A `Date` which has the value of the time at which the meeting was scheduled, in UTC. * `callToOrder`: A `Date` which has the value of the time at which the meeting was called to order, in UTC. * `adjourn`: A `Date` which has the value of the time at which the meeting was adjourned, in UTC.
Add specification for initial Minutes data structure.
Add specification for initial Minutes data structure. Refs #1.
Markdown
mpl-2.0
jwir3/minuteman,jwir3/minuteman
markdown
## Code Before: An electron app for taking meeting minutes ## Instruction: Add specification for initial Minutes data structure. Refs #1. ## Code After: A minimal app for quickly taking meeting minutes ## Minutes Specification Minutes files are in `json` file format. They have the following structure: ``` { "organizationName": "...", "meetingScheduledTime": "...", "callToOrder": "...", "adjourn": "..." } ``` ### Definitions * `organizationName`: A `String` containing the name of the organization for which the meeting is being held. * `meetingScheduledTime`: A `Date` which has the value of the time at which the meeting was scheduled, in UTC. * `callToOrder`: A `Date` which has the value of the time at which the meeting was called to order, in UTC. * `adjourn`: A `Date` which has the value of the time at which the meeting was adjourned, in UTC.
db269537a14f6c3be00d681d9e8c5666cf5806af
src/reducers/index.js
src/reducers/index.js
export function stub(state = {}, action) { return state; }
// Tentative schema for the overall app store: // // // interface Media { // id: string; // kind: 'audio' | 'video'; // owner: string; // stream: Object; // audioState: 'active' | 'muted' | 'not-available' | 'error'; // videoState: 'active' | 'muted' | 'not-available' | 'error'; // videoType: 'camera' | 'screen' | ''; // } // // interface Participant { // id: string; // name: string; // gravatar: string; // moderator: boolean; // speaking: boolean; // } // // interface Statistics { // participant: string; // bitrateUp: number; // bitrateDown: number; // packetLossUp: number; // packetLossDown: number; // // ...etc // } // // interface Room { // id: string; // joined: boolean; // locked: boolean; // sharedVideo: string; // streamingState: 'starting' | 'streaming' | 'error' | ''; // mediaConnectionState: 'connecting' | 'connected' | 'interrupted' | 'disconnected'; // } // // interface AppState { // room: Room; // user: Participant; // participants: Map<string, Participant>; // statistics: Map<string, Statistics>; // localMedia: Media; // remoteMedia: Map<string, Media>; // selectedMedia: string; // sharingScreen: boolean; // modalID: string; // fullScreen: boolean; // connectionState: 'connected' | 'disconnected' | 'connecting'; // } export function stub(state = {}, action) { return state; }
Add the tentative schema for the redux store
Add the tentative schema for the redux store
JavaScript
apache-2.0
jitsi/jitsi-meet-react,jitsi/jitsi-meet-react,jitsi/jitsi-meet-react,jitsi/jitsi-meet-react
javascript
## Code Before: export function stub(state = {}, action) { return state; } ## Instruction: Add the tentative schema for the redux store ## Code After: // Tentative schema for the overall app store: // // // interface Media { // id: string; // kind: 'audio' | 'video'; // owner: string; // stream: Object; // audioState: 'active' | 'muted' | 'not-available' | 'error'; // videoState: 'active' | 'muted' | 'not-available' | 'error'; // videoType: 'camera' | 'screen' | ''; // } // // interface Participant { // id: string; // name: string; // gravatar: string; // moderator: boolean; // speaking: boolean; // } // // interface Statistics { // participant: string; // bitrateUp: number; // bitrateDown: number; // packetLossUp: number; // packetLossDown: number; // // ...etc // } // // interface Room { // id: string; // joined: boolean; // locked: boolean; // sharedVideo: string; // streamingState: 'starting' | 'streaming' | 'error' | ''; // mediaConnectionState: 'connecting' | 'connected' | 'interrupted' | 'disconnected'; // } // // interface AppState { // room: Room; // user: Participant; // participants: Map<string, Participant>; // statistics: Map<string, Statistics>; // localMedia: Media; // remoteMedia: Map<string, Media>; // selectedMedia: string; // sharingScreen: boolean; // modalID: string; // fullScreen: boolean; // connectionState: 'connected' | 'disconnected' | 'connecting'; // } export function stub(state = {}, action) { return state; }
58f3379d441832697e2deb708b385e86504fd40e
jobs/revok/templates/pre-start.erb
jobs/revok/templates/pre-start.erb
set -e chmod 0400 /var/vcap/jobs/revok/config/github_private_key chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key chmod 0400 /var/vcap/jobs/revok/config/private_key chown vcap:vcap /var/vcap/jobs/revok/config/private_key chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key chown vcap:vcap /var/vcap/jobs/revok/config/mysql_private_key
set -e chmod 0400 /var/vcap/jobs/revok/config/github_private_key chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key chmod 0400 /var/vcap/jobs/revok/config/private_key chown vcap:vcap /var/vcap/jobs/revok/config/private_key chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key chown vcap:vcap /var/vcap/jobs/revok/config/mysql_private_key ulimit -n 65536
Set revok ulimit high enough.
Set revok ulimit high enough. - we observed previous limit of 1024 was not high enough [#144633749] Signed-off-by: Can Berk Güder <ed1dfb86e8d469f3acf95218f1ef796e19057d0f@pivotal.io>
HTML+ERB
apache-2.0
pivotal-cf/cred-alert,pivotal-cf/cred-alert
html+erb
## Code Before: set -e chmod 0400 /var/vcap/jobs/revok/config/github_private_key chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key chmod 0400 /var/vcap/jobs/revok/config/private_key chown vcap:vcap /var/vcap/jobs/revok/config/private_key chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key chown vcap:vcap /var/vcap/jobs/revok/config/mysql_private_key ## Instruction: Set revok ulimit high enough. - we observed previous limit of 1024 was not high enough [#144633749] Signed-off-by: Can Berk Güder <ed1dfb86e8d469f3acf95218f1ef796e19057d0f@pivotal.io> ## Code After: set -e chmod 0400 /var/vcap/jobs/revok/config/github_private_key chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key chmod 0400 /var/vcap/jobs/revok/config/private_key chown vcap:vcap /var/vcap/jobs/revok/config/private_key chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key chown vcap:vcap /var/vcap/jobs/revok/config/mysql_private_key ulimit -n 65536
96811c093b870f23eee94b76650250f878d99c68
scripts/docker-publish.sh
scripts/docker-publish.sh
if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=latest if [ ! -z "$TRAVIS_TAG" ]; then TAG=$TRAVIS_TAG fi docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker push clems4ever/authelia:$TAG; fi
if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=latest if [ ! -z "$TRAVIS_TAG" ]; then TAG=$TRAVIS_TAG fi IMAGE_NAME=clems4ever/authelia docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker tag $IMAGE_NAME $IMAGE_NAME:$TAG; docker push $IMAGE_NAME:$TAG; fi
Tag docker image before pushing it to dockerhub
Tag docker image before pushing it to dockerhub
Shell
mit
clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia
shell
## Code Before: if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=latest if [ ! -z "$TRAVIS_TAG" ]; then TAG=$TRAVIS_TAG fi docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker push clems4ever/authelia:$TAG; fi ## Instruction: Tag docker image before pushing it to dockerhub ## Code After: if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=latest if [ ! -z "$TRAVIS_TAG" ]; then TAG=$TRAVIS_TAG fi IMAGE_NAME=clems4ever/authelia docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker tag $IMAGE_NAME $IMAGE_NAME:$TAG; docker push $IMAGE_NAME:$TAG; fi
24a315065dd3a7a9faefc8cf4a0137dcde7b61df
yaqb/src/connection/cursor.rs
yaqb/src/connection/cursor.rs
use Queriable; use db_result::DbResult; use types::{NativeSqlType, FromSqlRow}; use std::marker::PhantomData; pub struct Cursor<ST, T> { current_row: usize, db_result: DbResult, _marker: PhantomData<(ST, T)>, } impl<ST, T> Cursor<ST, T> { pub fn new(db_result: DbResult) -> Self { Cursor { current_row: 0, db_result: db_result, _marker: PhantomData, } } } impl<ST, T> Iterator for Cursor<ST, T> where ST: NativeSqlType, T: Queriable<ST>, { type Item = T; fn next(&mut self) -> Option<T> { if self.current_row >= self.db_result.num_rows() { None } else { let mut row = self.db_result.get_row(self.current_row); self.current_row += 1; let values = match T::Row::build_from_row(&mut row) { Ok(value) => value, Err(reason) => panic!("Error reading values {}", reason.description()), }; let result = T::build(values); Some(result) } } }
use Queriable; use db_result::DbResult; use types::{NativeSqlType, FromSqlRow}; use std::marker::PhantomData; /// The type returned by various [`Connection`](struct.Connection.html) methods. /// Acts as an iterator over `T`. pub struct Cursor<ST, T> { current_row: usize, db_result: DbResult, _marker: PhantomData<(ST, T)>, } impl<ST, T> Cursor<ST, T> { #[doc(hidden)] pub fn new(db_result: DbResult) -> Self { Cursor { current_row: 0, db_result: db_result, _marker: PhantomData, } } } impl<ST, T> Iterator for Cursor<ST, T> where ST: NativeSqlType, T: Queriable<ST>, { type Item = T; fn next(&mut self) -> Option<T> { if self.current_row >= self.db_result.num_rows() { None } else { let mut row = self.db_result.get_row(self.current_row); self.current_row += 1; let values = match T::Row::build_from_row(&mut row) { Ok(value) => value, Err(reason) => panic!("Error reading values {}", reason.description()), }; let result = T::build(values); Some(result) } } }
Add a short description of `Cursor`, hide internal functions
Add a short description of `Cursor`, hide internal functions
Rust
apache-2.0
cascalheira/diesel,sgrif/diesel,sgrif/diesel,diesel-rs/diesel,SoftwareWarlock/diesel,diesel-rs/diesel,tohou/diesel,SoftwareWarlock/diesel,mcasper/diesel,cascalheira/diesel,mcasper/diesel,tohou/diesel
rust
## Code Before: use Queriable; use db_result::DbResult; use types::{NativeSqlType, FromSqlRow}; use std::marker::PhantomData; pub struct Cursor<ST, T> { current_row: usize, db_result: DbResult, _marker: PhantomData<(ST, T)>, } impl<ST, T> Cursor<ST, T> { pub fn new(db_result: DbResult) -> Self { Cursor { current_row: 0, db_result: db_result, _marker: PhantomData, } } } impl<ST, T> Iterator for Cursor<ST, T> where ST: NativeSqlType, T: Queriable<ST>, { type Item = T; fn next(&mut self) -> Option<T> { if self.current_row >= self.db_result.num_rows() { None } else { let mut row = self.db_result.get_row(self.current_row); self.current_row += 1; let values = match T::Row::build_from_row(&mut row) { Ok(value) => value, Err(reason) => panic!("Error reading values {}", reason.description()), }; let result = T::build(values); Some(result) } } } ## Instruction: Add a short description of `Cursor`, hide internal functions ## Code After: use Queriable; use db_result::DbResult; use types::{NativeSqlType, FromSqlRow}; use std::marker::PhantomData; /// The type returned by various [`Connection`](struct.Connection.html) methods. /// Acts as an iterator over `T`. pub struct Cursor<ST, T> { current_row: usize, db_result: DbResult, _marker: PhantomData<(ST, T)>, } impl<ST, T> Cursor<ST, T> { #[doc(hidden)] pub fn new(db_result: DbResult) -> Self { Cursor { current_row: 0, db_result: db_result, _marker: PhantomData, } } } impl<ST, T> Iterator for Cursor<ST, T> where ST: NativeSqlType, T: Queriable<ST>, { type Item = T; fn next(&mut self) -> Option<T> { if self.current_row >= self.db_result.num_rows() { None } else { let mut row = self.db_result.get_row(self.current_row); self.current_row += 1; let values = match T::Row::build_from_row(&mut row) { Ok(value) => value, Err(reason) => panic!("Error reading values {}", reason.description()), }; let result = T::build(values); Some(result) } } }
03dad3a6919fb766d8d767757ae7bb764b0d1296
mac/resources/open_CNTL.js
mac/resources/open_CNTL.js
define(['mac/roman'], function(macintoshRoman) { 'use strict'; return function(resource) { var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength); resource.dataObject = { rectangle: { top: dv.getInt16(0, false), left: dv.getInt16(2, false), bottom: dv.getInt16(4, false), right: dv.getInt16(6, false), }, initialSetting: dv.getUint16(8, false), visible: !!resource.data[10], fill: !!resource.data[11], maximumSetting: dv.getInt16(12, false), minimumSetting: dv.getInt16(14, false), cdefID: dv.getInt16(16, false), referenceConstant: dv.getInt32(18, false), text: macintoshRoman(resource.data, 23, resource.data[22]), }; }; });
define(['mac/roman'], function(macintoshRoman) { 'use strict'; return function(item) { return item.getBytes().then(function(bytes) { var dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); item.setDataObject({ rectangle: { top: dv.getInt16(0, false), left: dv.getInt16(2, false), bottom: dv.getInt16(4, false), right: dv.getInt16(6, false), }, initialSetting: dv.getUint16(8, false), visible: !!bytes[10], fill: !!bytes[11], maximumSetting: dv.getInt16(12, false), minimumSetting: dv.getInt16(14, false), cdefID: dv.getInt16(16, false), referenceConstant: dv.getInt32(18, false), text: macintoshRoman(bytes, 23, bytes[22]), }); }); }; });
Change CNTL to new loader format
Change CNTL to new loader format
JavaScript
mit
radishengine/drowsy,radishengine/drowsy
javascript
## Code Before: define(['mac/roman'], function(macintoshRoman) { 'use strict'; return function(resource) { var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength); resource.dataObject = { rectangle: { top: dv.getInt16(0, false), left: dv.getInt16(2, false), bottom: dv.getInt16(4, false), right: dv.getInt16(6, false), }, initialSetting: dv.getUint16(8, false), visible: !!resource.data[10], fill: !!resource.data[11], maximumSetting: dv.getInt16(12, false), minimumSetting: dv.getInt16(14, false), cdefID: dv.getInt16(16, false), referenceConstant: dv.getInt32(18, false), text: macintoshRoman(resource.data, 23, resource.data[22]), }; }; }); ## Instruction: Change CNTL to new loader format ## Code After: define(['mac/roman'], function(macintoshRoman) { 'use strict'; return function(item) { return item.getBytes().then(function(bytes) { var dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); item.setDataObject({ rectangle: { top: dv.getInt16(0, false), left: dv.getInt16(2, false), bottom: dv.getInt16(4, false), right: dv.getInt16(6, false), }, initialSetting: dv.getUint16(8, false), visible: !!bytes[10], fill: !!bytes[11], maximumSetting: dv.getInt16(12, false), minimumSetting: dv.getInt16(14, false), cdefID: dv.getInt16(16, false), referenceConstant: dv.getInt32(18, false), text: macintoshRoman(bytes, 23, bytes[22]), }); }); }; });
606b76c185ecfe329124b178695d448ebab4941e
docs/release-notes/version-4.5.15.rst
docs/release-notes/version-4.5.15.rst
============== Version 4.5.15 ============== Version 4.5.15 of mod_wsgi can be obtained from: https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15
============== Version 4.5.15 ============== Version 4.5.15 of mod_wsgi can be obtained from: https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15 Bugs Fixed ---------- * Incorrect version for mod_wsgi was being reported in server token.
Document incorrect reporting of version.
Document incorrect reporting of version.
reStructuredText
apache-2.0
GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi
restructuredtext
## Code Before: ============== Version 4.5.15 ============== Version 4.5.15 of mod_wsgi can be obtained from: https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15 ## Instruction: Document incorrect reporting of version. ## Code After: ============== Version 4.5.15 ============== Version 4.5.15 of mod_wsgi can be obtained from: https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15 Bugs Fixed ---------- * Incorrect version for mod_wsgi was being reported in server token.
d87971a9a20435fce0bf999a7e941bf6a266b3ff
composer.json
composer.json
{ "name": "litle/payments-sdk", "type": "library", "description": "The Litle PHP SDK is a PHP implementation of the [Litle &amp; Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle", "keywords": ["litle","sdk","ecommerce","payments"], "homepage": "https://www.litle.com/developers/php", "license": "MIT", "authors": [ { "name": "Litle SDK", "email": "sdksupport@litle.com", "homepage": "https://www.litle.com/developers", "role": "Developer" } ], "require": { "php": ">=5.3.0", "phpseclib/phpseclib": "0.3.5" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, "autoload":{ "psr-0":{"litle\\sdk" : "."} } }
{ "name": "litle/payments-sdk", "type": "library", "description": "The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce", "keywords": ["litle","sdk","ecommerce","payments","Vantiv"], "homepage": "https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK", "license": "MIT", "authors": [ { "name": "Litle SDK", "email": "sdksupport@vantiv.com", "homepage": "https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK", "role": "Developer" } ], "require": { "php": ">=5.3.0", "phpseclib/phpseclib": "0.3.5" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, "autoload":{ "psr-0":{"litle\\sdk" : "."} } }
Update branding and link to Vantiv eCommerce
Update branding and link to Vantiv eCommerce
JSON
mit
LitleCo/litle-sdk-for-php
json
## Code Before: { "name": "litle/payments-sdk", "type": "library", "description": "The Litle PHP SDK is a PHP implementation of the [Litle &amp; Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle", "keywords": ["litle","sdk","ecommerce","payments"], "homepage": "https://www.litle.com/developers/php", "license": "MIT", "authors": [ { "name": "Litle SDK", "email": "sdksupport@litle.com", "homepage": "https://www.litle.com/developers", "role": "Developer" } ], "require": { "php": ">=5.3.0", "phpseclib/phpseclib": "0.3.5" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, "autoload":{ "psr-0":{"litle\\sdk" : "."} } } ## Instruction: Update branding and link to Vantiv eCommerce ## Code After: { "name": "litle/payments-sdk", "type": "library", "description": "The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce", "keywords": ["litle","sdk","ecommerce","payments","Vantiv"], "homepage": "https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK", "license": "MIT", "authors": [ { "name": "Litle SDK", "email": "sdksupport@vantiv.com", "homepage": "https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK", "role": "Developer" } ], "require": { "php": ">=5.3.0", "phpseclib/phpseclib": "0.3.5" }, "require-dev": { "phpunit/phpunit": "3.7.*" }, "autoload":{ "psr-0":{"litle\\sdk" : "."} } }
e27dd31df23d0c7d702707db7cdb20e80fd1e14d
tests/config.yml
tests/config.yml
homebrew_installed_packages: - autoconf - bash-completion - gettext - sqlite - ssh-copy-id - cowsay - readline - pv - wget - wrk homebrew_cask_apps: - firefox - limechat - macvim
homebrew_installed_packages: - autoconf - bash-completion - gettext - sqlite - ssh-copy-id - cowsay - readline - pv - wget - wrk homebrew_cask_apps: - firefox - macvim
Remove limechat from test playbook too.
Remove limechat from test playbook too.
YAML
mit
toby-griffiths/mac-dev-playbook,annikaC/mac-dev-playbook
yaml
## Code Before: homebrew_installed_packages: - autoconf - bash-completion - gettext - sqlite - ssh-copy-id - cowsay - readline - pv - wget - wrk homebrew_cask_apps: - firefox - limechat - macvim ## Instruction: Remove limechat from test playbook too. ## Code After: homebrew_installed_packages: - autoconf - bash-completion - gettext - sqlite - ssh-copy-id - cowsay - readline - pv - wget - wrk homebrew_cask_apps: - firefox - macvim
5c17fe3d2c01b78866ab7534f1f47645fab9a49f
public/js/models/project/ProjectModel.js
public/js/models/project/ProjectModel.js
define([ 'underscore', 'backbone', 'models/core/BaseModel', ], function(_, Backbone, BaseModel) { var ProjectModel = BaseModel.extend({ urlRoot: 'api/projects', defaults: { id: null, project_statuses_id: 1, name: 'No project name set', description: 'No description set', url: '#/404' }, initialize: function(options) { _.bindAll(this, 'url', 'parse'); }, url: function() { return '/api/projects/' + this.id; }, parse: function(obj) { if (typeof(obj.project) != 'undefined') return obj.project; return obj; } }); return ProjectModel; });
define([ 'underscore', 'backbone', 'models/core/BaseModel', ], function(_, Backbone, BaseModel) { var ProjectModel = BaseModel.extend({ urlRoot: 'api/projects', defaults: { id: null, project_statuses_id: 1, name: 'No project name set', description: 'No description set', url: '#/404' }, initialize: function(options) { _.bindAll(this, 'url', 'parse'); }, url: function() { if (this.id != null) return '/api/projects/' + this.id; return '/api/projects/'; }, parse: function(obj) { if (typeof(obj.project) != 'undefined') return obj.project; return obj; } }); return ProjectModel; });
Fix saving projects (null project id in model)
Fix saving projects (null project id in model)
JavaScript
mit
kinow/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,nestor-qa/nestor,nestor-qa/nestor
javascript
## Code Before: define([ 'underscore', 'backbone', 'models/core/BaseModel', ], function(_, Backbone, BaseModel) { var ProjectModel = BaseModel.extend({ urlRoot: 'api/projects', defaults: { id: null, project_statuses_id: 1, name: 'No project name set', description: 'No description set', url: '#/404' }, initialize: function(options) { _.bindAll(this, 'url', 'parse'); }, url: function() { return '/api/projects/' + this.id; }, parse: function(obj) { if (typeof(obj.project) != 'undefined') return obj.project; return obj; } }); return ProjectModel; }); ## Instruction: Fix saving projects (null project id in model) ## Code After: define([ 'underscore', 'backbone', 'models/core/BaseModel', ], function(_, Backbone, BaseModel) { var ProjectModel = BaseModel.extend({ urlRoot: 'api/projects', defaults: { id: null, project_statuses_id: 1, name: 'No project name set', description: 'No description set', url: '#/404' }, initialize: function(options) { _.bindAll(this, 'url', 'parse'); }, url: function() { if (this.id != null) return '/api/projects/' + this.id; return '/api/projects/'; }, parse: function(obj) { if (typeof(obj.project) != 'undefined') return obj.project; return obj; } }); return ProjectModel; });
2a84bcad6f04891211a809133b0ae829b4b7d6ca
package.js
package.js
Package.describe({ summary: "Make signin and signout their own pages with routes." }); Package.on_use(function(api) { api.use([ 'deps', 'service-configuration', 'accounts-base', 'underscore', 'templating', 'handlebars', 'spark', 'session', 'coffeescript', 'iron-router', 'less'] , 'client'); api.imply('accounts-base', ['client', 'server']); api.add_files([ 'router.coffee', 'sign-in/signIn.html', 'sign-in/signIn.coffee', 'sign-up/signUp.html', 'sign-up/signUp.coffee', 'forgot-password/forgotPassword.html', 'forgot-password/forgotPassword.coffee', 'shared/social.html', 'shared/social.coffee', 'shared/error.html', 'shared/error.coffee', 'shared/accountButtons.html', 'shared/accountButtons.coffee', 'entry.less', 'helper.js'] , 'client'); api.use([ 'deps', 'service-configuration', 'accounts-password', 'accounts-base', 'underscore', 'coffeescript'] , 'server'); api.export('AccountsEntry', 'server'); api.add_files('entry.coffee', 'server'); });
Package.describe({ summary: "Make signin and signout their own pages with routes." }); Package.on_use(function(api) { api.use([ 'deps', 'service-configuration', 'accounts-base', 'underscore', 'templating', 'handlebars', 'spark', 'session', 'coffeescript', 'less'] , 'client'); api.imply('accounts-base', ['client', 'server']); api.add_files([ 'sign-in/signIn.html', 'sign-in/signIn.coffee', 'sign-up/signUp.html', 'sign-up/signUp.coffee', 'forgot-password/forgotPassword.html', 'forgot-password/forgotPassword.coffee', 'shared/social.html', 'shared/social.coffee', 'shared/error.html', 'shared/error.coffee', 'shared/accountButtons.html', 'shared/accountButtons.coffee', 'entry.less', 'helper.js'] , 'client'); api.use([ 'deps', 'service-configuration', 'accounts-password', 'accounts-base', 'underscore', 'coffeescript'] , 'server'); api.export('AccountsEntry', 'server'); api.add_files('entry.coffee', 'server'); api.use('iron-router', ['client', 'server']); api.add_files('router.coffee', ['client', 'server']); });
Add routes to both client and server, in case they're needed
Add routes to both client and server, in case they're needed
JavaScript
mit
AppWorkshop/accounts-entry,RiffynInc/meteor-accounts-entry,Noamyoungerm/accounts-entry,timmyg/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,lnader/meteor-accounts-entry,lnader/meteor-accounts-entry,Vilango/accounts-entry,Differential/accounts-entry,mauriciovieira/accounts-entry,jg3526/accounts-entry,vhmh2005/accounts-entry,qing-hai/accounts-entry,benmgreene/accounts-entry,meteorblackbelt/accounts-entry,dovrosenberg/accounts-entry,ChipCastleDotCom/accounts-entry,andykingking/accounts-entry,mike623/accounts-entry,mike623/accounts-entry,valedaemon/accounts-entry,valedaemon/accounts-entry,andykingking/accounts-entry,jpatzer/accounts-entry,Vilango/accounts-entry,selaias/accounts-entry,mauriciovieira/accounts-entry,Differential/accounts-entry,jpatzer/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,Noamyoungerm/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze-global,benmgreene/accounts-entry,selaias/accounts-entry,maxkferg/accounts-entry,maxkferg/accounts-entry,jg3526/accounts-entry,meteorblackbelt/accounts-entry,dovrosenberg/accounts-entry,vhmh2005/accounts-entry,ChipCastleDotCom/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze-global,RiffynInc/meteor-accounts-entry,AppWorkshop/accounts-entry
javascript
## Code Before: Package.describe({ summary: "Make signin and signout their own pages with routes." }); Package.on_use(function(api) { api.use([ 'deps', 'service-configuration', 'accounts-base', 'underscore', 'templating', 'handlebars', 'spark', 'session', 'coffeescript', 'iron-router', 'less'] , 'client'); api.imply('accounts-base', ['client', 'server']); api.add_files([ 'router.coffee', 'sign-in/signIn.html', 'sign-in/signIn.coffee', 'sign-up/signUp.html', 'sign-up/signUp.coffee', 'forgot-password/forgotPassword.html', 'forgot-password/forgotPassword.coffee', 'shared/social.html', 'shared/social.coffee', 'shared/error.html', 'shared/error.coffee', 'shared/accountButtons.html', 'shared/accountButtons.coffee', 'entry.less', 'helper.js'] , 'client'); api.use([ 'deps', 'service-configuration', 'accounts-password', 'accounts-base', 'underscore', 'coffeescript'] , 'server'); api.export('AccountsEntry', 'server'); api.add_files('entry.coffee', 'server'); }); ## Instruction: Add routes to both client and server, in case they're needed ## Code After: Package.describe({ summary: "Make signin and signout their own pages with routes." }); Package.on_use(function(api) { api.use([ 'deps', 'service-configuration', 'accounts-base', 'underscore', 'templating', 'handlebars', 'spark', 'session', 'coffeescript', 'less'] , 'client'); api.imply('accounts-base', ['client', 'server']); api.add_files([ 'sign-in/signIn.html', 'sign-in/signIn.coffee', 'sign-up/signUp.html', 'sign-up/signUp.coffee', 'forgot-password/forgotPassword.html', 'forgot-password/forgotPassword.coffee', 'shared/social.html', 'shared/social.coffee', 'shared/error.html', 'shared/error.coffee', 'shared/accountButtons.html', 'shared/accountButtons.coffee', 'entry.less', 'helper.js'] , 'client'); api.use([ 'deps', 'service-configuration', 'accounts-password', 'accounts-base', 'underscore', 'coffeescript'] , 'server'); api.export('AccountsEntry', 'server'); api.add_files('entry.coffee', 'server'); api.use('iron-router', ['client', 'server']); api.add_files('router.coffee', ['client', 'server']); });
27f23fe678c3ce93f2b85d183f5071a53b831246
README.md
README.md
**Local** ```bash $ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API $ yarn install $ yarn start ``` ##API ``` http://<domain>/<phonenum> ``` > Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp. > No message included. ``` http://<domain>/<phonenum>/<message> ``` > Directly open whatsapp to respective phone number. Message is automatically included.
**Local** ```bash $ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API.git $ yarn install $ yarn start ``` **Heroku** [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) ##API ``` http://<domain>/<phonenum> ``` > Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp. > No message included. ``` http://<domain>/<phonenum>/<message> ``` > Directly open whatsapp to respective phone number. Message is automatically included.
Fix github url and add heroku button
Fix github url and add heroku button
Markdown
mit
amizz/Whatsapp-Direct-Messaging-API
markdown
## Code Before: **Local** ```bash $ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API $ yarn install $ yarn start ``` ##API ``` http://<domain>/<phonenum> ``` > Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp. > No message included. ``` http://<domain>/<phonenum>/<message> ``` > Directly open whatsapp to respective phone number. Message is automatically included. ## Instruction: Fix github url and add heroku button ## Code After: **Local** ```bash $ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API.git $ yarn install $ yarn start ``` **Heroku** [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) ##API ``` http://<domain>/<phonenum> ``` > Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp. > No message included. ``` http://<domain>/<phonenum>/<message> ``` > Directly open whatsapp to respective phone number. Message is automatically included.
374e68bdbfd5056dc2eaa7d981defa892ea26f7d
lib/sparkleformation/registry/block_devices.rb
lib/sparkleformation/registry/block_devices.rb
SfnRegistry.register(:block_mapping) do |_config| _config = _config.dup _config[:device_name] ||= nil _config[:no_device] ||= nil _config[:virtual_name] ||= nil _config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs] Hash[_config.map{|k,v| next if v.nil?; [process_key!(k),v]}] end SfnRegistry.register(:block_ebs) do |_config| _config = _config.dup _config[:delete_on_termination] ||= false _config[:snapshot_id] ||= nil _config[:iops] ||= nil _config[:volume_size] ||= nil _config[:volume_type] ||= "gp2" Hash[_config.map{|k,v| next if v.nil?; [process_key!(k),v]}] end
SfnRegistry.register(:block_mapping) do |_config| _config = _config.dup _config[:device_name] ||= nil _config[:no_device] ||= nil _config[:virtual_name] ||= nil _config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs] Hash[_config.delete_if{|k,v|v.nil?}.map{|k,v| [process_key!(k),v]}] end SfnRegistry.register(:block_ebs) do |_config| _config = _config.dup _config[:delete_on_termination] ||= false _config[:snapshot_id] ||= nil _config[:iops] ||= nil _config[:volume_size] ||= nil _config[:volume_type] ||= "gp2" Hash[_config.delete_if{|k,v|v.nil?}.map{|k,v| [process_key!(k),v]}] end
Update to clearup ruby deprecation warning
Update to clearup ruby deprecation warning
Ruby
mit
JonathanSerafini/sfn-policy-core
ruby
## Code Before: SfnRegistry.register(:block_mapping) do |_config| _config = _config.dup _config[:device_name] ||= nil _config[:no_device] ||= nil _config[:virtual_name] ||= nil _config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs] Hash[_config.map{|k,v| next if v.nil?; [process_key!(k),v]}] end SfnRegistry.register(:block_ebs) do |_config| _config = _config.dup _config[:delete_on_termination] ||= false _config[:snapshot_id] ||= nil _config[:iops] ||= nil _config[:volume_size] ||= nil _config[:volume_type] ||= "gp2" Hash[_config.map{|k,v| next if v.nil?; [process_key!(k),v]}] end ## Instruction: Update to clearup ruby deprecation warning ## Code After: SfnRegistry.register(:block_mapping) do |_config| _config = _config.dup _config[:device_name] ||= nil _config[:no_device] ||= nil _config[:virtual_name] ||= nil _config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs] Hash[_config.delete_if{|k,v|v.nil?}.map{|k,v| [process_key!(k),v]}] end SfnRegistry.register(:block_ebs) do |_config| _config = _config.dup _config[:delete_on_termination] ||= false _config[:snapshot_id] ||= nil _config[:iops] ||= nil _config[:volume_size] ||= nil _config[:volume_type] ||= "gp2" Hash[_config.delete_if{|k,v|v.nil?}.map{|k,v| [process_key!(k),v]}] end
30112e7c93db4e56807bc819287f2427ca3148f1
README.md
README.md
My personal blog ## License All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
[![Build Status](https://travis-ci.org/piruin/piruin.github.io.svg?branch=master)](https://travis-ci.org/piruin/piruin.github.io) My personal blog ## License All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
Add build status from travis
Add build status from travis
Markdown
apache-2.0
piruin/piruin.github.io,piruin/piruin.github.io,piruin/piruin.github.io
markdown
## Code Before: My personal blog ## License All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission. ## Instruction: Add build status from travis ## Code After: [![Build Status](https://travis-ci.org/piruin/piruin.github.io.svg?branch=master)](https://travis-ci.org/piruin/piruin.github.io) My personal blog ## License All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
fdb17b80fa156931f09c6c8e0142a6fd04d93ad3
app/assets/js/model/BaseModel.js
app/assets/js/model/BaseModel.js
/** * Created by dungvn3000 on 3/14/14. * The model automatic update mapping field when set associations table. */ Ext.define('sunerp.model.BaseModel', { extend: 'Ext.data.Model', set: function (fieldName, newValue) { var me = this; Ext.each(me.associations.keys, function (key) { if (fieldName == key) { Ext.each(newValue.fields.keys, function (field) { me.set(key + "." + field, newValue.get(field)) }); me.set(key + 'Id', newValue.get('id')); } }); me.callParent(arguments); } });
/** * Created by dungvn3000 on 3/14/14. * The model automatic update mapping field when set associations table. */ Ext.define('sunerp.model.BaseModel', { extend: 'Ext.data.Model', set: function (fieldName, newValue) { var me = this; me.callParent(arguments); if (newValue != null && Ext.isObject(newValue)) { Ext.each(me.associations.keys, function (table) { if (fieldName == table) { for (var key in newValue) { me.set(table + "." + key, newValue[key]); } me.set(key + 'Id', newValue.id); } }); } } });
Fix nested model should be a value object.
Fix nested model should be a value object.
JavaScript
apache-2.0
SunriseSoftVN/sunerp,SunriseSoftVN/sunerp,SunriseSoftVN/sunerp
javascript
## Code Before: /** * Created by dungvn3000 on 3/14/14. * The model automatic update mapping field when set associations table. */ Ext.define('sunerp.model.BaseModel', { extend: 'Ext.data.Model', set: function (fieldName, newValue) { var me = this; Ext.each(me.associations.keys, function (key) { if (fieldName == key) { Ext.each(newValue.fields.keys, function (field) { me.set(key + "." + field, newValue.get(field)) }); me.set(key + 'Id', newValue.get('id')); } }); me.callParent(arguments); } }); ## Instruction: Fix nested model should be a value object. ## Code After: /** * Created by dungvn3000 on 3/14/14. * The model automatic update mapping field when set associations table. */ Ext.define('sunerp.model.BaseModel', { extend: 'Ext.data.Model', set: function (fieldName, newValue) { var me = this; me.callParent(arguments); if (newValue != null && Ext.isObject(newValue)) { Ext.each(me.associations.keys, function (table) { if (fieldName == table) { for (var key in newValue) { me.set(table + "." + key, newValue[key]); } me.set(key + 'Id', newValue.id); } }); } } });
8a3d45b3223c1f3ea25543f108a0460f44b28b43
.travis.yml
.travis.yml
language: python python: - "2.7" - "3.2" before_install: - sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/ install: - pip install --quiet git+https://github.com/python-imaging/Pillow.git - sudo apt-get --quiet=2 install perceptualdiff - sudo apt-get --quiet=2 install ffmpeg script: - ./test/test.py - ./test/test_coordinates.py - ./test/test_projections.py - ./test/test_gpx.py - ./test/test_projection_scale.py - ./test/test_random.py - ./test/test_animation.py - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then ./test/test_gradients.py; fi
language: python python: - "2.7" - "3.2" before_install: - sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/ install: - pip install --quiet git+https://github.com/python-imaging/Pillow.git - sudo apt-get --quiet=2 install perceptualdiff script: - ./test/test.py - ./test/test_coordinates.py - ./test/test_projections.py - ./test/test_gpx.py - ./test/test_projection_scale.py - ./test/test_random.py - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then ./test/test_gradients.py; fi
Revert "add animation test to Travis"
Revert "add animation test to Travis" This reverts commit 3e64db9fa2b4194c941552b67d655ae93a48e8a6.
YAML
agpl-3.0
aeszter/heatmap,hugovk/heatmap,aeszter/heatmap,hugovk/heatmap,sethoscope/heatmap,sethoscope/heatmap
yaml
## Code Before: language: python python: - "2.7" - "3.2" before_install: - sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/ install: - pip install --quiet git+https://github.com/python-imaging/Pillow.git - sudo apt-get --quiet=2 install perceptualdiff - sudo apt-get --quiet=2 install ffmpeg script: - ./test/test.py - ./test/test_coordinates.py - ./test/test_projections.py - ./test/test_gpx.py - ./test/test_projection_scale.py - ./test/test_random.py - ./test/test_animation.py - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then ./test/test_gradients.py; fi ## Instruction: Revert "add animation test to Travis" This reverts commit 3e64db9fa2b4194c941552b67d655ae93a48e8a6. ## Code After: language: python python: - "2.7" - "3.2" before_install: - sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/ install: - pip install --quiet git+https://github.com/python-imaging/Pillow.git - sudo apt-get --quiet=2 install perceptualdiff script: - ./test/test.py - ./test/test_coordinates.py - ./test/test_projections.py - ./test/test_gpx.py - ./test/test_projection_scale.py - ./test/test_random.py - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then ./test/test_gradients.py; fi
db23b287f1a1ec8ecdab10e06b6e91abb0d76b3c
SwiftPulseCast/SwiftPulseCast/PulseResults.swift
SwiftPulseCast/SwiftPulseCast/PulseResults.swift
// // PulseResults.swift // SwiftPulseCast // // Created by Jeremiah Poisson on 5/7/17. // Copyright © 2017 Jeremiah Poisson. All rights reserved. // import Foundation public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void) public struct PulseResults<Value> { public var error : PulseNetworkError? public var result : Value? public var succeeded : Bool { get { return self.error == nil && result != nil } } public var failed : Bool { get { return !self.succeeded } } }
// // PulseResults.swift // SwiftPulseCast // // Created by Jeremiah Poisson on 5/7/17. // Copyright © 2017 Jeremiah Poisson. All rights reserved. // import Foundation public typealias PulseData = [String: Any] public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void) public struct PulseResults<Value> { public var error : PulseNetworkError? public var result : Value? public var succeeded : Bool { get { return self.error == nil && result != nil } } public var failed : Bool { get { return !self.succeeded } } }
Add type alias for network json data
Add type alias for network json data
Swift
mit
ffxfiend/SwiftPulseCast
swift
## Code Before: // // PulseResults.swift // SwiftPulseCast // // Created by Jeremiah Poisson on 5/7/17. // Copyright © 2017 Jeremiah Poisson. All rights reserved. // import Foundation public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void) public struct PulseResults<Value> { public var error : PulseNetworkError? public var result : Value? public var succeeded : Bool { get { return self.error == nil && result != nil } } public var failed : Bool { get { return !self.succeeded } } } ## Instruction: Add type alias for network json data ## Code After: // // PulseResults.swift // SwiftPulseCast // // Created by Jeremiah Poisson on 5/7/17. // Copyright © 2017 Jeremiah Poisson. All rights reserved. // import Foundation public typealias PulseData = [String: Any] public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void) public struct PulseResults<Value> { public var error : PulseNetworkError? public var result : Value? public var succeeded : Bool { get { return self.error == nil && result != nil } } public var failed : Bool { get { return !self.succeeded } } }
732710f38796d8fd108ceca251cd6777e1b0b14e
packages/sq/sql-words.yaml
packages/sq/sql-words.yaml
homepage: http://khibino.github.io/haskell-relational-record/ changelog-type: '' hash: d4611b615b7f59762678d29df4c0768dbff9a9e7ecdf9f9a53d6d0d3d94bf55f test-bench-deps: base: ! '>=4.5 && <5' quickcheck-simple: -any QuickCheck: ! '>=2' sql-words: -any maintainer: ex8k.hibino@gmail.com synopsis: SQL keywords data constructors into OverloadedString changelog: '' basic-deps: base: ! '>=4.5 && <5' all-versions: - '0.0.1.0' - '0.0.1.1' - '0.1.0.0' - '0.1.1.0' - '0.1.2.0' - '0.1.3.0' - '0.1.3.1' - '0.1.4.0' - '0.1.4.1' - '0.1.5.0' - '0.1.5.1' - '0.1.6.0' author: Kei Hibino latest: '0.1.6.0' description-type: haddock description: ! 'This package contiains SQL keywords constructors defined as OverloadedString literals and helper functions to concate these.' license-name: BSD3
homepage: http://khibino.github.io/haskell-relational-record/ changelog-type: '' hash: 1c394d7dffa299d8f0b10f01853cd1a593d0dcddd81e64d29e61f15225e10a86 test-bench-deps: base: ! '>=4.5 && <5' quickcheck-simple: -any QuickCheck: ! '>=2' sql-words: -any maintainer: ex8k.hibino@gmail.com synopsis: SQL keywords data constructors into OverloadedString changelog: '' basic-deps: base: ! '>=4.5 && <5' all-versions: - '0.0.1.0' - '0.0.1.1' - '0.1.0.0' - '0.1.1.0' - '0.1.2.0' - '0.1.3.0' - '0.1.3.1' - '0.1.4.0' - '0.1.4.1' - '0.1.5.0' - '0.1.5.1' - '0.1.6.0' - '0.1.6.1' author: Kei Hibino latest: '0.1.6.1' description-type: haddock description: ! 'This package contiains SQL keywords constructors defined as OverloadedString literals and helper functions to concate these.' license-name: BSD3
Update from Hackage at 2018-05-27T05:38:24Z
Update from Hackage at 2018-05-27T05:38:24Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://khibino.github.io/haskell-relational-record/ changelog-type: '' hash: d4611b615b7f59762678d29df4c0768dbff9a9e7ecdf9f9a53d6d0d3d94bf55f test-bench-deps: base: ! '>=4.5 && <5' quickcheck-simple: -any QuickCheck: ! '>=2' sql-words: -any maintainer: ex8k.hibino@gmail.com synopsis: SQL keywords data constructors into OverloadedString changelog: '' basic-deps: base: ! '>=4.5 && <5' all-versions: - '0.0.1.0' - '0.0.1.1' - '0.1.0.0' - '0.1.1.0' - '0.1.2.0' - '0.1.3.0' - '0.1.3.1' - '0.1.4.0' - '0.1.4.1' - '0.1.5.0' - '0.1.5.1' - '0.1.6.0' author: Kei Hibino latest: '0.1.6.0' description-type: haddock description: ! 'This package contiains SQL keywords constructors defined as OverloadedString literals and helper functions to concate these.' license-name: BSD3 ## Instruction: Update from Hackage at 2018-05-27T05:38:24Z ## Code After: homepage: http://khibino.github.io/haskell-relational-record/ changelog-type: '' hash: 1c394d7dffa299d8f0b10f01853cd1a593d0dcddd81e64d29e61f15225e10a86 test-bench-deps: base: ! '>=4.5 && <5' quickcheck-simple: -any QuickCheck: ! '>=2' sql-words: -any maintainer: ex8k.hibino@gmail.com synopsis: SQL keywords data constructors into OverloadedString changelog: '' basic-deps: base: ! '>=4.5 && <5' all-versions: - '0.0.1.0' - '0.0.1.1' - '0.1.0.0' - '0.1.1.0' - '0.1.2.0' - '0.1.3.0' - '0.1.3.1' - '0.1.4.0' - '0.1.4.1' - '0.1.5.0' - '0.1.5.1' - '0.1.6.0' - '0.1.6.1' author: Kei Hibino latest: '0.1.6.1' description-type: haddock description: ! 'This package contiains SQL keywords constructors defined as OverloadedString literals and helper functions to concate these.' license-name: BSD3
dbca5f0144f56e766ebb1006ba75886b5b2a648e
ci.sh
ci.sh
cd $(dirname $0) export ANDROID_HOME=${WORKSPACE}/android-sdk-linux export PATH=${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH} wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz -nv tar xzf android-sdk_r22.3-linux.tgz echo "y" | android update sdk -f -u -a -t tools,platform-tools,build-tools-19.0.1,build-tools-19.0.0,build-tools-18.1.1,build-tools-18.1.0,build-tools-18.0.1,build-tools-17.0.0,android-17,extra-android-m2repository,extra-android-support function build { ./$1/ci.sh ret=$? if [ $ret -ne 0 ]; then exit $ret fi } build spring-android-basic-auth build spring-android-facebook-client build spring-android-news-reader build spring-android-showcase build spring-android-twitter-client build spring-android-twitter-search exit
cd $(dirname $0) function build { ./$1/ci.sh ret=$? if [ $ret -ne 0 ]; then exit $ret fi } build spring-android-basic-auth build spring-android-facebook-client build spring-android-news-reader build spring-android-showcase build spring-android-twitter-client build spring-android-twitter-search exit
Revert "Update CI script to download and configure the Android environment"
Revert "Update CI script to download and configure the Android environment" This reverts commit aab16a0bcfb8be3095baf7b265d36750db00e46f.
Shell
apache-2.0
spring-projects/spring-android-samples,quang-nh/Spring-for-android,ricardolonga/spring-android-samples,b-cuts/spring-android-samples,b-cuts/spring-android-samples,ricardolonga/spring-android-samples,st15/spring-android-samples,felipeweb/spring-android-samples,swahid/spring-android-samples,liuciuse/spring-android-samples,felipeweb/spring-android-samples,admin-zhx/spring-android-samples,pkdevbox/spring-android-samples,TrienDo/spring-android-samples,msdgwzhy6/spring-android-samples,spring-projects/spring-android-samples,liuciuse/spring-android-samples,quang-nh/Spring-for-android,bonifacechacha/spring-android-samples,b-cuts/spring-android-samples,ricardolonga/spring-android-samples,TrienDo/spring-android-samples,bonifacechacha/spring-android-samples,msdgwzhy6/spring-android-samples,swahid/spring-android-samples,fjg1989/spring-android-samples,spring-projects/spring-android-samples,msdgwzhy6/spring-android-samples,swahid/spring-android-samples,felipeweb/spring-android-samples,TrienDo/spring-android-samples,admin-zhx/spring-android-samples,fjg1989/spring-android-samples,admin-zhx/spring-android-samples,fjg1989/spring-android-samples,st15/spring-android-samples,liuciuse/spring-android-samples,st15/spring-android-samples,pkdevbox/spring-android-samples,quang-nh/Spring-for-android,pkdevbox/spring-android-samples
shell
## Code Before: cd $(dirname $0) export ANDROID_HOME=${WORKSPACE}/android-sdk-linux export PATH=${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH} wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz -nv tar xzf android-sdk_r22.3-linux.tgz echo "y" | android update sdk -f -u -a -t tools,platform-tools,build-tools-19.0.1,build-tools-19.0.0,build-tools-18.1.1,build-tools-18.1.0,build-tools-18.0.1,build-tools-17.0.0,android-17,extra-android-m2repository,extra-android-support function build { ./$1/ci.sh ret=$? if [ $ret -ne 0 ]; then exit $ret fi } build spring-android-basic-auth build spring-android-facebook-client build spring-android-news-reader build spring-android-showcase build spring-android-twitter-client build spring-android-twitter-search exit ## Instruction: Revert "Update CI script to download and configure the Android environment" This reverts commit aab16a0bcfb8be3095baf7b265d36750db00e46f. ## Code After: cd $(dirname $0) function build { ./$1/ci.sh ret=$? if [ $ret -ne 0 ]; then exit $ret fi } build spring-android-basic-auth build spring-android-facebook-client build spring-android-news-reader build spring-android-showcase build spring-android-twitter-client build spring-android-twitter-search exit
b94976fae6ad3e944168ae348367875e03e0c9da
README.md
README.md
A web page to facilitate trades on Board Game Geek To do: - [ ] Create API to get list of users that want a game - [ ] Create a page at koser.us/antonio - [ ] Display users that want a hardcoded game - [ ] Display users that want a game (id input by user) - [ ] For users that want the game, display games they are trading - [ ] Input user id to get all games trading - [ ] Sort users by closest geographically - [ ] Make it look nice
A web page to facilitate trades on Board Game Geek To do: - [ ] Create API to get list of users that want a game - [ ] Create a page at koser.us/antonio - [ ] Display users that want a hardcoded game - [ ] Display users that want a game (id input by user) - [ ] For users that want the game, display games they are trading - [ ] Input user id to get all games trading - [ ] Contact BGG to see if I can get an exception to TOS - [ ] Cache API data - [ ] Sort users by closest geographically - [ ] Make it look nice
Add more to do items
Add more to do items
Markdown
mit
briankoser/antonio,briankoser/antonio,briankoser/antonio
markdown
## Code Before: A web page to facilitate trades on Board Game Geek To do: - [ ] Create API to get list of users that want a game - [ ] Create a page at koser.us/antonio - [ ] Display users that want a hardcoded game - [ ] Display users that want a game (id input by user) - [ ] For users that want the game, display games they are trading - [ ] Input user id to get all games trading - [ ] Sort users by closest geographically - [ ] Make it look nice ## Instruction: Add more to do items ## Code After: A web page to facilitate trades on Board Game Geek To do: - [ ] Create API to get list of users that want a game - [ ] Create a page at koser.us/antonio - [ ] Display users that want a hardcoded game - [ ] Display users that want a game (id input by user) - [ ] For users that want the game, display games they are trading - [ ] Input user id to get all games trading - [ ] Contact BGG to see if I can get an exception to TOS - [ ] Cache API data - [ ] Sort users by closest geographically - [ ] Make it look nice
a0ac00bf09638277830b8d7aafaf2e5d5bb14b00
README.md
README.md
Installs the [Julia programming language](http://julialang.org/) A great module has a working travis build [![Build Status](https://travis-ci.org/JustinTulloss/puppet-julia.png?branch=master)](https://travis-ci.org/JustinTulloss/puppet-julia) ## Usage ```puppet include julia ``` ## Specifying a version ```puppet class { 'julia': version => '0.3.0-prerelease' } ```
Installs the [Julia programming language](http://julialang.org/) [![Build Status](https://travis-ci.org/JustinTulloss/puppet-julia.png?branch=master)](https://travis-ci.org/JustinTulloss/puppet-julia) ## Usage ```puppet include julia ``` ## Specifying a version ```puppet class { 'julia': version => '0.3.0-prerelease' } ```
Remove template language that snuck in
Remove template language that snuck in
Markdown
mit
JustinTulloss/puppet-julia,JustinTulloss/puppet-julia
markdown
## Code Before: Installs the [Julia programming language](http://julialang.org/) A great module has a working travis build [![Build Status](https://travis-ci.org/JustinTulloss/puppet-julia.png?branch=master)](https://travis-ci.org/JustinTulloss/puppet-julia) ## Usage ```puppet include julia ``` ## Specifying a version ```puppet class { 'julia': version => '0.3.0-prerelease' } ``` ## Instruction: Remove template language that snuck in ## Code After: Installs the [Julia programming language](http://julialang.org/) [![Build Status](https://travis-ci.org/JustinTulloss/puppet-julia.png?branch=master)](https://travis-ci.org/JustinTulloss/puppet-julia) ## Usage ```puppet include julia ``` ## Specifying a version ```puppet class { 'julia': version => '0.3.0-prerelease' } ```
a773b1aa98a96b6335b76fc587ea714e5cca7545
cle/relocations/mips.py
cle/relocations/mips.py
from . import generic arch = 'MIPS32' R_MIPS_32 = generic.GenericAbsoluteAddendReloc R_MIPS_REL32 = generic.GenericRelativeReloc R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc
from . import generic arch = 'MIPS32' R_MIPS_32 = generic.GenericAbsoluteAddendReloc R_MIPS_REL32 = generic.GenericRelativeReloc R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc R_MIPS_JUMP_SLOT = generic.GenericAbsoluteReloc R_MIPS_GLOB_DAT = generic.GenericAbsoluteReloc
Add R_MIPS_JUMP_SLOT and R_MIPS_GLOB_DAT relocations
Add R_MIPS_JUMP_SLOT and R_MIPS_GLOB_DAT relocations
Python
bsd-2-clause
chubbymaggie/cle,angr/cle
python
## Code Before: from . import generic arch = 'MIPS32' R_MIPS_32 = generic.GenericAbsoluteAddendReloc R_MIPS_REL32 = generic.GenericRelativeReloc R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc ## Instruction: Add R_MIPS_JUMP_SLOT and R_MIPS_GLOB_DAT relocations ## Code After: from . import generic arch = 'MIPS32' R_MIPS_32 = generic.GenericAbsoluteAddendReloc R_MIPS_REL32 = generic.GenericRelativeReloc R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc R_MIPS_JUMP_SLOT = generic.GenericAbsoluteReloc R_MIPS_GLOB_DAT = generic.GenericAbsoluteReloc
bcdcc178fd27fba070bd8e38812e1fe7adb6bbac
app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt
app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt
package ss.proximityservice.data import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener class ProximityDetector(private val listener: ProximityListener) : SensorEventListener { interface ProximityListener { fun onNear() fun onFar() } override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {} override fun onSensorChanged(event: SensorEvent) { val distance = event.values[0] val max = event.sensor.maximumRange if (distance < Math.min(max, 8f)) { listener.onNear() } else { listener.onFar() } } }
package ss.proximityservice.data import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import kotlin.math.min class ProximityDetector(private val listener: ProximityListener) : SensorEventListener { interface ProximityListener { fun onNear() fun onFar() } override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {} override fun onSensorChanged(event: SensorEvent) { val distance = event.values[0] val max = event.sensor.maximumRange if (distance < min(max, 8f)) { listener.onNear() } else { listener.onFar() } } }
Replace with kotlin min function
Replace with kotlin min function
Kotlin
apache-2.0
ssaqua/ProximityService
kotlin
## Code Before: package ss.proximityservice.data import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener class ProximityDetector(private val listener: ProximityListener) : SensorEventListener { interface ProximityListener { fun onNear() fun onFar() } override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {} override fun onSensorChanged(event: SensorEvent) { val distance = event.values[0] val max = event.sensor.maximumRange if (distance < Math.min(max, 8f)) { listener.onNear() } else { listener.onFar() } } } ## Instruction: Replace with kotlin min function ## Code After: package ss.proximityservice.data import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import kotlin.math.min class ProximityDetector(private val listener: ProximityListener) : SensorEventListener { interface ProximityListener { fun onNear() fun onFar() } override fun onAccuracyChanged(sensor: Sensor, accuracy: Int) {} override fun onSensorChanged(event: SensorEvent) { val distance = event.values[0] val max = event.sensor.maximumRange if (distance < min(max, 8f)) { listener.onNear() } else { listener.onFar() } } }
41c31ca694b54d6cf6302613d2f9a597f6357e33
src/scripts/ci/setup_appveyor.bat
src/scripts/ci/setup_appveyor.bat
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% rem check compiler version cl appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip 7z e jom.zip
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% rem check compiler version cl git clone --depth 1 https://github.com/randombit/botan-ci-tools 7z e botan-ci-tools/jom_1_1_2.zip
Use jom via botan-ci-tools repo
Use jom via botan-ci-tools repo download.qt.io seems to be down ...
Batchfile
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan
batchfile
## Code Before: echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% rem check compiler version cl appveyor DownloadFile http://download.qt.io/official_releases/jom/jom.zip -FileName jom.zip 7z e jom.zip ## Instruction: Use jom via botan-ci-tools repo download.qt.io seems to be down ... ## Code After: echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% rem check compiler version cl git clone --depth 1 https://github.com/randombit/botan-ci-tools 7z e botan-ci-tools/jom_1_1_2.zip
d9e7816da08a3d66e63356ea6f4474cc5f7d6b26
bush/main.py
bush/main.py
from bush import option from bush.spinner import Spinner from bush.aws.ec2 import EC2 from bush.aws.iam import IAM def run(): (options, args) = option.parse_args("bush") output = '' spinner = Spinner() spinner.start() if args[0] == 'ec2': ec2 = EC2(options) if args[1] == 'ls': output = ec2.ls() elif args[1] == "images": output = ec2.images() if args[0] == 'iam': iam = IAM(options) if args[1] == 'users': output = iam.list_users() if args[1] == 'keys': output = iam.list_access_keys() spinner.stop() if output: print("\n".join(output))
import sys import traceback from bush import option from bush.spinner import Spinner from bush.aws.ec2 import EC2 from bush.aws.iam import IAM def run(): (options, args) = option.parse_args("bush") output = '' spinner = Spinner() spinner.start() try: output = run_aws(options, args) except: spinner.stop() traceback.print_exc() sys.exit(2) spinner.stop() if output: print("\n".join(output)) def run_aws(options, args): if args[0] == 'ec2': ec2 = EC2(options) if args[1] == 'ls': output = ec2.ls() elif args[1] == "images": output = ec2.images() if args[0] == 'iam': iam = IAM(options) if args[1] == 'users': output = iam.list_users() if args[1] == 'keys': output = iam.list_access_keys() return output
Fix keep turning spinner when error occurred
Fix keep turning spinner when error occurred
Python
mit
okamos/bush
python
## Code Before: from bush import option from bush.spinner import Spinner from bush.aws.ec2 import EC2 from bush.aws.iam import IAM def run(): (options, args) = option.parse_args("bush") output = '' spinner = Spinner() spinner.start() if args[0] == 'ec2': ec2 = EC2(options) if args[1] == 'ls': output = ec2.ls() elif args[1] == "images": output = ec2.images() if args[0] == 'iam': iam = IAM(options) if args[1] == 'users': output = iam.list_users() if args[1] == 'keys': output = iam.list_access_keys() spinner.stop() if output: print("\n".join(output)) ## Instruction: Fix keep turning spinner when error occurred ## Code After: import sys import traceback from bush import option from bush.spinner import Spinner from bush.aws.ec2 import EC2 from bush.aws.iam import IAM def run(): (options, args) = option.parse_args("bush") output = '' spinner = Spinner() spinner.start() try: output = run_aws(options, args) except: spinner.stop() traceback.print_exc() sys.exit(2) spinner.stop() if output: print("\n".join(output)) def run_aws(options, args): if args[0] == 'ec2': ec2 = EC2(options) if args[1] == 'ls': output = ec2.ls() elif args[1] == "images": output = ec2.images() if args[0] == 'iam': iam = IAM(options) if args[1] == 'users': output = iam.list_users() if args[1] == 'keys': output = iam.list_access_keys() return output
c1629102be68260b1d9d8d8032aa9575173f54d1
metadata/org.poirsouille.tinc_gui.txt
metadata/org.poirsouille.tinc_gui.txt
Categories:Internet License:GPLv3+ Web Site:http://tinc_gui.poirsouille.org Source Code:https://github.com/Vilbrekin/tinc_gui Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues Auto Name:Tinc Summary:Port of Tinc VPN Description: Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd, associated with a basic GUI for daemon management. Root is not needed, even if highly recommended for correct tinc daemon usage. . Repo Type:git Repo:https://github.com/Vilbrekin/tinc_gui.git Build:0.9.7-arm,8 commit=ad35972299ad697a0770e7b8d9cb5b3778415a7f forceversion=yes submodules=yes rm=res/raw/tincd build=sed -i 1i'SHELL := /bin/bash' src_tinc/Makefile && \ make -C src_tinc/ install Maintainer Notes: Uses armeabi binary in res/raw/, so no native-code appears and fdroid can't filter by architecture. This is why -arm is appended, to at least let people running x86 or MIPS know that it won't work for them yet. . Auto Update Mode:None Update Check Mode:Tags Current Version:0.9.7 Current Version Code:8
Categories:Internet License:GPLv3+ Web Site:http://tinc_gui.poirsouille.org Source Code:https://github.com/Vilbrekin/tinc_gui Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues Auto Name:Tinc Summary:Port of Tinc VPN Description: Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd, associated with a basic GUI for daemon management. Root is not needed, even if highly recommended for correct tinc daemon usage. . Repo Type:git Repo:https://github.com/Vilbrekin/tinc_gui.git Build:0.9.7-arm,8 commit=ad35972299ad697a0770e7b8d9cb5b3778415a7f forceversion=yes submodules=yes rm=res/raw/tincd build=make -C src_tinc/ install Maintainer Notes: Uses armeabi binary in res/raw/, so no native-code appears and fdroid can't filter by architecture. This is why -arm is appended, to at least let people running x86 or MIPS know that it won't work for them yet. . Auto Update Mode:None Update Check Mode:Tags Current Version:0.9.7 Current Version Code:8
Revert "Tinc: fix build" - no longer needed?
Revert "Tinc: fix build" - no longer needed? This reverts commit 618975403a28b8574e7418248ed60997b8dd571d.
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Internet License:GPLv3+ Web Site:http://tinc_gui.poirsouille.org Source Code:https://github.com/Vilbrekin/tinc_gui Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues Auto Name:Tinc Summary:Port of Tinc VPN Description: Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd, associated with a basic GUI for daemon management. Root is not needed, even if highly recommended for correct tinc daemon usage. . Repo Type:git Repo:https://github.com/Vilbrekin/tinc_gui.git Build:0.9.7-arm,8 commit=ad35972299ad697a0770e7b8d9cb5b3778415a7f forceversion=yes submodules=yes rm=res/raw/tincd build=sed -i 1i'SHELL := /bin/bash' src_tinc/Makefile && \ make -C src_tinc/ install Maintainer Notes: Uses armeabi binary in res/raw/, so no native-code appears and fdroid can't filter by architecture. This is why -arm is appended, to at least let people running x86 or MIPS know that it won't work for them yet. . Auto Update Mode:None Update Check Mode:Tags Current Version:0.9.7 Current Version Code:8 ## Instruction: Revert "Tinc: fix build" - no longer needed? This reverts commit 618975403a28b8574e7418248ed60997b8dd571d. ## Code After: Categories:Internet License:GPLv3+ Web Site:http://tinc_gui.poirsouille.org Source Code:https://github.com/Vilbrekin/tinc_gui Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues Auto Name:Tinc Summary:Port of Tinc VPN Description: Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd, associated with a basic GUI for daemon management. Root is not needed, even if highly recommended for correct tinc daemon usage. . Repo Type:git Repo:https://github.com/Vilbrekin/tinc_gui.git Build:0.9.7-arm,8 commit=ad35972299ad697a0770e7b8d9cb5b3778415a7f forceversion=yes submodules=yes rm=res/raw/tincd build=make -C src_tinc/ install Maintainer Notes: Uses armeabi binary in res/raw/, so no native-code appears and fdroid can't filter by architecture. This is why -arm is appended, to at least let people running x86 or MIPS know that it won't work for them yet. . Auto Update Mode:None Update Check Mode:Tags Current Version:0.9.7 Current Version Code:8
7476ffe0e17fc6113816a5199fc939d14c4ade5b
ActiveLabel.podspec
ActiveLabel.podspec
Pod::Spec.new do |s| s.name = 'ActiveLabel' s.version = '1.0.0' s.author = { 'Optonaut' => 'hello@optonaut.co' } s.homepage = 'https://github.com/optonaut/ActiveLabel.swift' s.license = { :type => 'MIT', :file => 'LICENSE' } s.platform = :ios, '8.0' s.source = { :git => 'https://github.com/optonaut/ActiveLabel.swift.git', :tag => s.version.to_s } s.summary = 'UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift' s.description = <<-DESC UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift Features * Up-to-date: Swift 4 * Default support for Hashtags, Mentions, Links * Support for custom types via regex * Ability to enable highlighting only for the desired types * Ability to trim urls * Super easy to use and lightweight * Works as UILabel drop-in replacement * Well tested and documented DESC s.source_files = 'ActiveLabel/*.swift' end
Pod::Spec.new do |s| s.name = 'ActiveLabel' s.version = '1.0.1' s.author = { 'Optonaut' => 'hello@optonaut.co' } s.homepage = 'https://github.com/optonaut/ActiveLabel.swift' s.license = { :type => 'MIT', :file => 'LICENSE' } s.platform = :ios, '8.0' s.source = { :git => 'https://github.com/optonaut/ActiveLabel.swift.git', :tag => s.version.to_s } s.summary = 'UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift' s.description = <<-DESC UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift Features * Up-to-date: Swift 4.2 and Xcode 10 * Default support for Hashtags, Mentions, Links * Support for custom types via regex * Ability to enable highlighting only for the desired types * Ability to trim urls * Super easy to use and lightweight * Works as UILabel drop-in replacement * Well tested and documented DESC s.source_files = 'ActiveLabel/*.swift' end
Update podspec for Swift 4.2 and Xcode 10
Update podspec for Swift 4.2 and Xcode 10
Ruby
mit
optonaut/ActiveLabel.swift,optonaut/ActiveLabel.swift
ruby
## Code Before: Pod::Spec.new do |s| s.name = 'ActiveLabel' s.version = '1.0.0' s.author = { 'Optonaut' => 'hello@optonaut.co' } s.homepage = 'https://github.com/optonaut/ActiveLabel.swift' s.license = { :type => 'MIT', :file => 'LICENSE' } s.platform = :ios, '8.0' s.source = { :git => 'https://github.com/optonaut/ActiveLabel.swift.git', :tag => s.version.to_s } s.summary = 'UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift' s.description = <<-DESC UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift Features * Up-to-date: Swift 4 * Default support for Hashtags, Mentions, Links * Support for custom types via regex * Ability to enable highlighting only for the desired types * Ability to trim urls * Super easy to use and lightweight * Works as UILabel drop-in replacement * Well tested and documented DESC s.source_files = 'ActiveLabel/*.swift' end ## Instruction: Update podspec for Swift 4.2 and Xcode 10 ## Code After: Pod::Spec.new do |s| s.name = 'ActiveLabel' s.version = '1.0.1' s.author = { 'Optonaut' => 'hello@optonaut.co' } s.homepage = 'https://github.com/optonaut/ActiveLabel.swift' s.license = { :type => 'MIT', :file => 'LICENSE' } s.platform = :ios, '8.0' s.source = { :git => 'https://github.com/optonaut/ActiveLabel.swift.git', :tag => s.version.to_s } s.summary = 'UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift' s.description = <<-DESC UILabel drop-in replacement supporting Hashtags (#), Mentions (@), URLs (http://) and custom regex patterns, written in Swift Features * Up-to-date: Swift 4.2 and Xcode 10 * Default support for Hashtags, Mentions, Links * Support for custom types via regex * Ability to enable highlighting only for the desired types * Ability to trim urls * Super easy to use and lightweight * Works as UILabel drop-in replacement * Well tested and documented DESC s.source_files = 'ActiveLabel/*.swift' end
94c820c33ff9cbfbcfabad017e1545447e31878b
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3) project(maelstrom_msgs) find_package(catkin REQUIRED COMPONENTS message_generation geometry_msgs std_msgs ) ################################################ ## Declare ROS messages, services and actions ## ################################################ add_message_files( DIRECTORY msg FILES State.msg ThrusterForces.msg SensorRaw.msg PwmRequests.msg Joystick.msg LightInput.msg ArmInput.msg JoystickMotionCommand.msg ) generate_messages( DEPENDENCIES geometry_msgs std_msgs ) ################################### ## catkin specific configuration ## ################################### catkin_package( CATKIN_DEPENDS message_runtime geometry_msgs std_msgs )
cmake_minimum_required(VERSION 2.8.3) project(maelstrom_msgs) find_package(catkin REQUIRED COMPONENTS message_generation geometry_msgs std_msgs ) ################################################ ## Declare ROS messages, services and actions ## ################################################ add_message_files( DIRECTORY msg FILES ThrusterForces.msg SensorRaw.msg PwmRequests.msg Joystick.msg LightInput.msg ArmInput.msg JoystickMotionCommand.msg ) generate_messages( DEPENDENCIES geometry_msgs std_msgs ) ################################### ## catkin specific configuration ## ################################### catkin_package( CATKIN_DEPENDS message_runtime geometry_msgs std_msgs )
Remove state message from cmakelists
Remove state message from cmakelists
Text
mit
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
text
## Code Before: cmake_minimum_required(VERSION 2.8.3) project(maelstrom_msgs) find_package(catkin REQUIRED COMPONENTS message_generation geometry_msgs std_msgs ) ################################################ ## Declare ROS messages, services and actions ## ################################################ add_message_files( DIRECTORY msg FILES State.msg ThrusterForces.msg SensorRaw.msg PwmRequests.msg Joystick.msg LightInput.msg ArmInput.msg JoystickMotionCommand.msg ) generate_messages( DEPENDENCIES geometry_msgs std_msgs ) ################################### ## catkin specific configuration ## ################################### catkin_package( CATKIN_DEPENDS message_runtime geometry_msgs std_msgs ) ## Instruction: Remove state message from cmakelists ## Code After: cmake_minimum_required(VERSION 2.8.3) project(maelstrom_msgs) find_package(catkin REQUIRED COMPONENTS message_generation geometry_msgs std_msgs ) ################################################ ## Declare ROS messages, services and actions ## ################################################ add_message_files( DIRECTORY msg FILES ThrusterForces.msg SensorRaw.msg PwmRequests.msg Joystick.msg LightInput.msg ArmInput.msg JoystickMotionCommand.msg ) generate_messages( DEPENDENCIES geometry_msgs std_msgs ) ################################### ## catkin specific configuration ## ################################### catkin_package( CATKIN_DEPENDS message_runtime geometry_msgs std_msgs )
05aecb910fba8b14e2c6f9efa5f72b90e673f8c3
siteSearch/indexer/index.js
siteSearch/indexer/index.js
var lunr = require('lunr'), fs = require('fs'), views = require('./views'), textNodes = require('./textNodeProcessor'), config = require('../config'), path = require('path'); module.exports.create = function(callback) { var nodeMetaData; views.loadAllViews(function(fileContentMap) { textNodes.process(fileContentMap, function(nodes) { var documents = nodes; var index = lunr(function() { this.field('body'); this.ref('id'); }); var id = 0; var indexedDocs = []; Object.keys(documents).forEach(function(pageName) { var textNodes = documents[pageName]; textNodes.forEach(function(node) { node.id = id; indexedDocs.push(node); ++id; }); }); indexedDocs.forEach(function(doc) { index.add(doc); }); fs.writeFileSync(path.join(config.dataDir, 'lunr-docs.json'), JSON.stringify(indexedDocs)); fs.writeFileSync(path.join(config.dataDir, 'lunr-index.json'), JSON.stringify(index.toJSON())); callback('Index successfully generated!'); }); }); };
var lunr = require('lunr'), fs = require('fs'), views = require('./views'), textNodes = require('./textNodeProcessor'), config = require('../config'), path = require('path'); var nodeMetaData; views.loadAllViews(function(fileContentMap) { textNodes.process(fileContentMap, function(nodes) { var documents = nodes; var index = lunr(function() { this.field('body'); this.ref('id'); }); var id = 0; var indexedDocs = []; Object.keys(documents).forEach(function(pageName) { var textNodes = documents[pageName]; textNodes.forEach(function(node) { node.id = id; indexedDocs.push(node); ++id; }); }); indexedDocs.forEach(function(doc) { index.add(doc); }); fs.writeFileSync(path.join(config.dataDir, 'lunr-docs.json'), JSON.stringify(indexedDocs)); fs.writeFileSync(path.join(config.dataDir, 'lunr-index.json'), JSON.stringify(index.toJSON())); console.log('Index successfully generated!'); }); });
Convert to autonomous script (from grunt task)
Convert to autonomous script (from grunt task)
JavaScript
mit
scbd/ebsa.cbd.int,scbd/ebsa.cbd.int,scbd/ebsa-portal,scbd/ebsa.cbd.int,scbd/ebsa-portal,scbd/ebsa-portal
javascript
## Code Before: var lunr = require('lunr'), fs = require('fs'), views = require('./views'), textNodes = require('./textNodeProcessor'), config = require('../config'), path = require('path'); module.exports.create = function(callback) { var nodeMetaData; views.loadAllViews(function(fileContentMap) { textNodes.process(fileContentMap, function(nodes) { var documents = nodes; var index = lunr(function() { this.field('body'); this.ref('id'); }); var id = 0; var indexedDocs = []; Object.keys(documents).forEach(function(pageName) { var textNodes = documents[pageName]; textNodes.forEach(function(node) { node.id = id; indexedDocs.push(node); ++id; }); }); indexedDocs.forEach(function(doc) { index.add(doc); }); fs.writeFileSync(path.join(config.dataDir, 'lunr-docs.json'), JSON.stringify(indexedDocs)); fs.writeFileSync(path.join(config.dataDir, 'lunr-index.json'), JSON.stringify(index.toJSON())); callback('Index successfully generated!'); }); }); }; ## Instruction: Convert to autonomous script (from grunt task) ## Code After: var lunr = require('lunr'), fs = require('fs'), views = require('./views'), textNodes = require('./textNodeProcessor'), config = require('../config'), path = require('path'); var nodeMetaData; views.loadAllViews(function(fileContentMap) { textNodes.process(fileContentMap, function(nodes) { var documents = nodes; var index = lunr(function() { this.field('body'); this.ref('id'); }); var id = 0; var indexedDocs = []; Object.keys(documents).forEach(function(pageName) { var textNodes = documents[pageName]; textNodes.forEach(function(node) { node.id = id; indexedDocs.push(node); ++id; }); }); indexedDocs.forEach(function(doc) { index.add(doc); }); fs.writeFileSync(path.join(config.dataDir, 'lunr-docs.json'), JSON.stringify(indexedDocs)); fs.writeFileSync(path.join(config.dataDir, 'lunr-index.json'), JSON.stringify(index.toJSON())); console.log('Index successfully generated!'); }); });
34c51557b42cf169196417d40b2b572c16fd6058
web_external/stylesheets/body/dataPanel.styl
web_external/stylesheets/body/dataPanel.styl
text-align center .source-title font-weight bold text-align left margin 1px padding 2px background-color #DFF6E8 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .source-title:hover background-color #D3E9DC cursor: pointer .dataset padding-left 0px text-align left border 0 margin 2px padding 2px i color #444 .icon-disabled color #f0f0f0 .icon-enabled:hover color #66a cursor pointer .icon-info-circled float right .icon-right-circled float left .icon-trash float right .icon-globe float left .icon-cog float right .icon-table float right &.m-geo-render-error color #ff751a &:hover color #d35400 cursor pointer
text-align center .source-title font-weight bold text-align left margin 1px padding 2px background-color #DFF6E8 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .source-title:hover background-color #D3E9DC cursor: pointer .category-title font-weight bold text-align left margin 1px padding 2px background-color #FFBB92 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .category-title:hover background-color #FC9E67 cursor: pointer .dataset padding-left 0px text-align left border 0 margin 2px padding 2px background-color #FFFFFF i color #444 .icon-disabled color #f0f0f0 .icon-enabled:hover color #66a cursor pointer .icon-info-circled float right .icon-right-circled float left .icon-trash float right .icon-globe float left .icon-cog float right .icon-table float right &.m-geo-render-error color #ff751a &:hover color #d35400 cursor pointer
Add styling for the category-title elements
Add styling for the category-title elements
Stylus
apache-2.0
Kitware/minerva,Kitware/minerva,Kitware/minerva
stylus
## Code Before: text-align center .source-title font-weight bold text-align left margin 1px padding 2px background-color #DFF6E8 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .source-title:hover background-color #D3E9DC cursor: pointer .dataset padding-left 0px text-align left border 0 margin 2px padding 2px i color #444 .icon-disabled color #f0f0f0 .icon-enabled:hover color #66a cursor pointer .icon-info-circled float right .icon-right-circled float left .icon-trash float right .icon-globe float left .icon-cog float right .icon-table float right &.m-geo-render-error color #ff751a &:hover color #d35400 cursor pointer ## Instruction: Add styling for the category-title elements ## Code After: text-align center .source-title font-weight bold text-align left margin 1px padding 2px background-color #DFF6E8 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .source-title:hover background-color #D3E9DC cursor: pointer .category-title font-weight bold text-align left margin 1px padding 2px background-color #FFBB92 border-style none border-width 0px i .icon-folder float left .icon-folder-open float left .category-title:hover background-color #FC9E67 cursor: pointer .dataset padding-left 0px text-align left border 0 margin 2px padding 2px background-color #FFFFFF i color #444 .icon-disabled color #f0f0f0 .icon-enabled:hover color #66a cursor pointer .icon-info-circled float right .icon-right-circled float left .icon-trash float right .icon-globe float left .icon-cog float right .icon-table float right &.m-geo-render-error color #ff751a &:hover color #d35400 cursor pointer
88036df35f4f476fc841d1679954b43604f3cda5
src/css/popup.css
src/css/popup.css
.container { width: 500px; } .row { margin: 15px 0; } textarea { resize: none; } .pull-left { float: left; } .pull-right { float: right; } .clearfix { overflow: auto; }
.container { width: 500px; } .row { margin: 15px 0; } textarea { resize: none; } button { cursor: pointer; } .pull-left { float: left; } .pull-right { float: right; } .clearfix { overflow: auto; }
Change cursor to pointer on button mouse over
:cherry_blossom: Change cursor to pointer on button mouse over
CSS
mit
noraworld/fastoot,noraworld/fastoot
css
## Code Before: .container { width: 500px; } .row { margin: 15px 0; } textarea { resize: none; } .pull-left { float: left; } .pull-right { float: right; } .clearfix { overflow: auto; } ## Instruction: :cherry_blossom: Change cursor to pointer on button mouse over ## Code After: .container { width: 500px; } .row { margin: 15px 0; } textarea { resize: none; } button { cursor: pointer; } .pull-left { float: left; } .pull-right { float: right; } .clearfix { overflow: auto; }
9df1da5cc60d7aa20e4283c97d3df2286d88862f
config/initializers/actionmailer.rb
config/initializers/actionmailer.rb
if File.exists?("#{RAILS_ROOT}/config/mailer.yml") require "action_mailer" c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml")) ActionMailer::Base.delivery_method = c[:delivery_method] ActionMailer::Base.smtp_settings = c[:smtp] end
if File.exists?("#{RAILS_ROOT}/config/mailer.yml") require "action_mailer" c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml")) c.each do |key,val| if key == :smtp || key == 'smtp' key = :smtp_settings end begin ActionMailer::Base.send("#{key}=".to_sym, val) rescue Exception => e $stderr.puts "Problem processing key '#{key}' in config/mailer.yml" $stderr.puts "#{e}" end end end
Change the way config/mailer.yml is read so that it supports configurations other than smtp.
Change the way config/mailer.yml is read so that it supports configurations other than smtp.
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: if File.exists?("#{RAILS_ROOT}/config/mailer.yml") require "action_mailer" c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml")) ActionMailer::Base.delivery_method = c[:delivery_method] ActionMailer::Base.smtp_settings = c[:smtp] end ## Instruction: Change the way config/mailer.yml is read so that it supports configurations other than smtp. ## Code After: if File.exists?("#{RAILS_ROOT}/config/mailer.yml") require "action_mailer" c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml")) c.each do |key,val| if key == :smtp || key == 'smtp' key = :smtp_settings end begin ActionMailer::Base.send("#{key}=".to_sym, val) rescue Exception => e $stderr.puts "Problem processing key '#{key}' in config/mailer.yml" $stderr.puts "#{e}" end end end
c27468bc2a5908f3f7431adaf1851cc4870641a0
zsh/powerlevel9k.zsh
zsh/powerlevel9k.zsh
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir custom_ruby vcs newline status) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() POWERLEVEL9K_PROMPT_ADD_NEWLINE=true POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e' Ruby" POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black" POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir chruby vcs newline vi_mode status) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time) POWERLEVEL9K_PROMPT_ADD_NEWLINE=true POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e'" POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black" POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
Change powerline command line options
Style: Change powerline command line options
Shell
mit
stephaneliu/dotfiles,stephaneliu/dotfiles
shell
## Code Before: POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir custom_ruby vcs newline status) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() POWERLEVEL9K_PROMPT_ADD_NEWLINE=true POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e' Ruby" POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black" POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red" ## Instruction: Style: Change powerline command line options ## Code After: POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir chruby vcs newline vi_mode status) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time) POWERLEVEL9K_PROMPT_ADD_NEWLINE=true POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e'" POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black" POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
8c5c7069ce9ef2af088565b03a91dc41fa2d063d
.gitlab-ci.yml
.gitlab-ci.yml
image: python:3.5 before_script: - pip install tox stages: - style - test flake8: stage: style script: - tox -e flake8 imports: stage: style script: - tox -e isort py35: stage: test script: - tox -e py35
image: python:3.5 before_script: - pip install tox stages: - style - test flake8: stage: style script: - tox -e flake8 imports: stage: style script: - tox -e isort py35: stage: test script: - echo -e $AFIP_TEST_KEY > testapp/test.key - echo -e $AFIP_TEST_CRT > testapp/test.crt - tox -e py35
Use variable test keys when running CI
Use variable test keys when running CI We currently use the in-repository keys for testing in CI. This has the downside that once they expire, we can't re-run these tests inside CI. Use keys that are passed as environment variables, so once we reconfigure CI to use new keys, this also affects re-runs of older builds. The test keys are still kept in-repo, so as not to complicate testing for developers and contributors.
YAML
isc
hobarrera/django-afip,hobarrera/django-afip
yaml
## Code Before: image: python:3.5 before_script: - pip install tox stages: - style - test flake8: stage: style script: - tox -e flake8 imports: stage: style script: - tox -e isort py35: stage: test script: - tox -e py35 ## Instruction: Use variable test keys when running CI We currently use the in-repository keys for testing in CI. This has the downside that once they expire, we can't re-run these tests inside CI. Use keys that are passed as environment variables, so once we reconfigure CI to use new keys, this also affects re-runs of older builds. The test keys are still kept in-repo, so as not to complicate testing for developers and contributors. ## Code After: image: python:3.5 before_script: - pip install tox stages: - style - test flake8: stage: style script: - tox -e flake8 imports: stage: style script: - tox -e isort py35: stage: test script: - echo -e $AFIP_TEST_KEY > testapp/test.key - echo -e $AFIP_TEST_CRT > testapp/test.crt - tox -e py35
ca7205d011a4596a3291a9026d7d401439d1732e
app/views/layouts/_footer.html.haml
app/views/layouts/_footer.html.haml
.footer-sponsors %h4= t('footer.sponsors') %hr.footer-hr %ul.list-unstyled %li %h4 = t('footer.hosting_sponsored_by') %li %h4 = t('footer.builder_sponsored_by') %li %h4 = t('footer.contributors')
.footer-sponsors We are currently looking for the following sponsors in order to help us sustain RubyBench: %ol %li Hosting sponsor %li %strong Sponsor for bare metal server. We're currently running the bare metal server using a free one month trial from Softlayer. While the lowest bare metal server costs around USD170, we would prefer a bare metal server in the range of USD500 such that the benchmarks do not take forever to complete. For parties interested in sponsoring any of the above, please drop us a note at our = succeed '.' do = link_to ' discussion forum', 'http://community.miniprofiler.com/t/status-progress-cooperation/337', target: '_blank', class: 'alert-link' %hr .l-align-center %h5 Built and maintained by = link_to '@tgxworld', 'https://github.com/tgxworld'
Update footer with sponsors note.
Update footer with sponsors note.
Haml
mit
klgilbert/ruby-bench-web,hanmd82/ruby-bench-web,treble37/ruby-bench-web,treble37/ruby-bench-web,klgilbert/ruby-bench-web,tgxworld/ruby-bench-web,ruby-bench/ruby-bench-web,davydovanton/ruby-bench-web,klgilbert/ruby-bench-web,bmarkons/ruby-bench-web,ruby-bench/ruby-bench-web,hanmd82/ruby-bench-web,hanmd82/ruby-bench-web,ruby-bench/ruby-bench-web,tgxworld/ruby-bench-web,bmarkons/ruby-bench-web,tgxworld/ruby-bench-web,treble37/ruby-bench-web,bmarkons/ruby-bench-web,davydovanton/ruby-bench-web,davydovanton/ruby-bench-web
haml
## Code Before: .footer-sponsors %h4= t('footer.sponsors') %hr.footer-hr %ul.list-unstyled %li %h4 = t('footer.hosting_sponsored_by') %li %h4 = t('footer.builder_sponsored_by') %li %h4 = t('footer.contributors') ## Instruction: Update footer with sponsors note. ## Code After: .footer-sponsors We are currently looking for the following sponsors in order to help us sustain RubyBench: %ol %li Hosting sponsor %li %strong Sponsor for bare metal server. We're currently running the bare metal server using a free one month trial from Softlayer. While the lowest bare metal server costs around USD170, we would prefer a bare metal server in the range of USD500 such that the benchmarks do not take forever to complete. For parties interested in sponsoring any of the above, please drop us a note at our = succeed '.' do = link_to ' discussion forum', 'http://community.miniprofiler.com/t/status-progress-cooperation/337', target: '_blank', class: 'alert-link' %hr .l-align-center %h5 Built and maintained by = link_to '@tgxworld', 'https://github.com/tgxworld'
11c5c3f5e52232af1084348fa331539eddbbbb0a
presto-server-rpm/src/main/resources/dist/config/config.properties
presto-server-rpm/src/main/resources/dist/config/config.properties
coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 discovery-server.enabled=true discovery.uri=http://localhost:8080
coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 http-server.log.path=/var/log/presto/http-request.log discovery-server.enabled=true discovery.uri=http://localhost:8080
Use /var/log for request log in RPM
Use /var/log for request log in RPM
INI
apache-2.0
treasure-data/presto,erichwang/presto,erichwang/presto,losipiuk/presto,Praveen2112/presto,dain/presto,losipiuk/presto,erichwang/presto,electrum/presto,smartnews/presto,11xor6/presto,treasure-data/presto,electrum/presto,treasure-data/presto,Praveen2112/presto,wyukawa/presto,ebyhr/presto,hgschmie/presto,treasure-data/presto,smartnews/presto,hgschmie/presto,dain/presto,Praveen2112/presto,ebyhr/presto,treasure-data/presto,ebyhr/presto,dain/presto,dain/presto,losipiuk/presto,martint/presto,11xor6/presto,erichwang/presto,electrum/presto,ebyhr/presto,hgschmie/presto,treasure-data/presto,martint/presto,electrum/presto,electrum/presto,11xor6/presto,Praveen2112/presto,hgschmie/presto,11xor6/presto,martint/presto,smartnews/presto,wyukawa/presto,ebyhr/presto,martint/presto,hgschmie/presto,wyukawa/presto,11xor6/presto,wyukawa/presto,smartnews/presto,losipiuk/presto,martint/presto,Praveen2112/presto,smartnews/presto,erichwang/presto,losipiuk/presto,wyukawa/presto,dain/presto
ini
## Code Before: coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 discovery-server.enabled=true discovery.uri=http://localhost:8080 ## Instruction: Use /var/log for request log in RPM ## Code After: coordinator=true node-scheduler.include-coordinator=true http-server.http.port=8080 http-server.log.path=/var/log/presto/http-request.log discovery-server.enabled=true discovery.uri=http://localhost:8080
cdf60bc0b07c282e75fba747c8adedd165aa0abd
index.py
index.py
from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = get_html("nossl", lang) return Response(html, mimetype="text/html") if __name__ == "__main__": import CGI CGI.app = run CGI.run()
from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = get_html("nossl", lang) return Response(html, mimetype="text/html") if __name__ == "__main__": import CGI CGI.app = run CGI.run()
Make the language changeable via a GET parameter.
Make the language changeable via a GET parameter.
Python
mit
YtvwlD/dyluna,YtvwlD/dyluna,YtvwlD/dyluna
python
## Code Before: from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = get_html("nossl", lang) return Response(html, mimetype="text/html") if __name__ == "__main__": import CGI CGI.app = run CGI.run() ## Instruction: Make the language changeable via a GET parameter. ## Code After: from werkzeug.wrappers import Request, Response from get_html import get_html, choose_lang @Request.application def run(request): lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request) if request.url.startswith("https://") or request.args.get("forcenossl") == "true": html = get_html("launch", lang) else: html = get_html("nossl", lang) return Response(html, mimetype="text/html") if __name__ == "__main__": import CGI CGI.app = run CGI.run()
9547332eff53ad7b14e3ba2e19ebb334bfa55b08
app/models/Role.php
app/models/Role.php
<?php namespace Model; class Role extends \Cartalyst\Sentinel\Roles\EloquentRole { }
<?php namespace Model; class Role extends \Cartalyst\Sentinel\Roles\EloquentRole { protected $connection = 'user'; }
Change connection model to user
Change connection model to user
PHP
apache-2.0
nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning
php
## Code Before: <?php namespace Model; class Role extends \Cartalyst\Sentinel\Roles\EloquentRole { } ## Instruction: Change connection model to user ## Code After: <?php namespace Model; class Role extends \Cartalyst\Sentinel\Roles\EloquentRole { protected $connection = 'user'; }
b622595680769bb1f4378abe77d98a0069fe8fa0
src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java
src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.devtools.build.lib.rules.test; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; import java.util.Map; /** * This provider can be implemented by rules which need special environments to run in (especially * tests). */ @Immutable public final class ExecutionInfoProvider implements TransitiveInfoProvider { private final ImmutableMap<String, String> executionInfo; public ExecutionInfoProvider(Map<String, String> requirements) { this.executionInfo = ImmutableMap.copyOf(requirements); } /** * Returns a map to indicate special execution requirements, such as hardware * platforms, web browsers, etc. Rule tags, such as "requires-XXX", may also be added * as keys to the map. */ public ImmutableMap<String, String> getExecutionInfo() { return executionInfo; } }
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.devtools.build.lib.rules.test; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; import java.util.Map; /** * This provider can be implemented by rules which need special environments to run in (especially * tests). */ @Immutable public final class ExecutionInfoProvider implements TransitiveInfoProvider { private final ImmutableMap<String, String> executionInfo; public ExecutionInfoProvider(Map<String, String> requirements) { this.executionInfo = ImmutableMap.copyOf(requirements); } /** * Returns a map to indicate special execution requirements, such as hardware * platforms, etc. Rule tags, such as "requires-XXX", may also be added * as keys to the map. */ public ImmutableMap<String, String> getExecutionInfo() { return executionInfo; } }
Remove reference to web browsers in bazel documentation.
Remove reference to web browsers in bazel documentation. -- MOS_MIGRATED_REVID=115912069
Java
apache-2.0
LuminateWireless/bazel,twitter-forks/bazel,anupcshan/bazel,davidzchen/bazel,ButterflyNetwork/bazel,damienmg/bazel,UrbanCompass/bazel,Asana/bazel,Asana/bazel,UrbanCompass/bazel,iamthearm/bazel,ulfjack/bazel,hermione521/bazel,mikelalcon/bazel,variac/bazel,damienmg/bazel,perezd/bazel,kchodorow/bazel,katre/bazel,zhexuany/bazel,ulfjack/bazel,hermione521/bazel,aehlig/bazel,variac/bazel,akira-baruah/bazel,mikelikespie/bazel,akira-baruah/bazel,safarmer/bazel,mbrukman/bazel,mrdomino/bazel,mbrukman/bazel,anupcshan/bazel,snnn/bazel,iamthearm/bazel,davidzchen/bazel,Asana/bazel,mikelikespie/bazel,davidzchen/bazel,juhalindfors/bazel-patches,mikelalcon/bazel,mrdomino/bazel,bazelbuild/bazel,twitter-forks/bazel,mikelalcon/bazel,iamthearm/bazel,safarmer/bazel,twitter-forks/bazel,iamthearm/bazel,hermione521/bazel,aehlig/bazel,mbrukman/bazel,werkt/bazel,dslomov/bazel-windows,hermione521/bazel,cushon/bazel,zhexuany/bazel,variac/bazel,dropbox/bazel,davidzchen/bazel,abergmeier-dsfishlabs/bazel,LuminateWireless/bazel,ulfjack/bazel,meteorcloudy/bazel,juhalindfors/bazel-patches,mikelikespie/bazel,ulfjack/bazel,cushon/bazel,snnn/bazel,dropbox/bazel,ulfjack/bazel,dropbox/bazel,LuminateWireless/bazel,juhalindfors/bazel-patches,katre/bazel,ButterflyNetwork/bazel,mrdomino/bazel,cushon/bazel,damienmg/bazel,twitter-forks/bazel,anupcshan/bazel,whuwxl/bazel,iamthearm/bazel,zhexuany/bazel,whuwxl/bazel,ulfjack/bazel,mikelikespie/bazel,mrdomino/bazel,abergmeier-dsfishlabs/bazel,damienmg/bazel,ButterflyNetwork/bazel,davidzchen/bazel,snnn/bazel,kchodorow/bazel,ButterflyNetwork/bazel,abergmeier-dsfishlabs/bazel,Asana/bazel,dslomov/bazel-windows,spxtr/bazel,abergmeier-dsfishlabs/bazel,cushon/bazel,UrbanCompass/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,aehlig/bazel,werkt/bazel,anupcshan/bazel,UrbanCompass/bazel,mrdomino/bazel,spxtr/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,katre/bazel,katre/bazel,safarmer/bazel,perezd/bazel,juhalindfors/bazel-patches,twitter-forks/bazel,mikelikespie/bazel,UrbanCompass/bazel,whuwxl/bazel,kchodorow/bazel-1,snnn/bazel,hermione521/bazel,perezd/bazel,mbrukman/bazel,mrdomino/bazel,juhalindfors/bazel-patches,whuwxl/bazel,dslomov/bazel,spxtr/bazel,damienmg/bazel,dslomov/bazel-windows,spxtr/bazel,akira-baruah/bazel,dslomov/bazel,meteorcloudy/bazel,LuminateWireless/bazel,perezd/bazel,damienmg/bazel,abergmeier-dsfishlabs/bazel,bazelbuild/bazel,kchodorow/bazel-1,kchodorow/bazel-1,safarmer/bazel,zhexuany/bazel,kchodorow/bazel,kchodorow/bazel,Asana/bazel,Asana/bazel,aehlig/bazel,safarmer/bazel,UrbanCompass/bazel,dropbox/bazel,akira-baruah/bazel,safarmer/bazel,twitter-forks/bazel,werkt/bazel,dslomov/bazel-windows,Asana/bazel,meteorcloudy/bazel,werkt/bazel,dslomov/bazel,ulfjack/bazel,spxtr/bazel,perezd/bazel,juhalindfors/bazel-patches,mikelalcon/bazel,abergmeier-dsfishlabs/bazel,kchodorow/bazel-1,cushon/bazel,mikelalcon/bazel,dslomov/bazel-windows,dslomov/bazel,snnn/bazel,kchodorow/bazel,whuwxl/bazel,anupcshan/bazel,whuwxl/bazel,mbrukman/bazel,aehlig/bazel,davidzchen/bazel,dslomov/bazel,akira-baruah/bazel,kchodorow/bazel-1,kchodorow/bazel,katre/bazel,meteorcloudy/bazel,variac/bazel,bazelbuild/bazel,perezd/bazel,dslomov/bazel,kchodorow/bazel-1,zhexuany/bazel,zhexuany/bazel,cushon/bazel,meteorcloudy/bazel,bazelbuild/bazel,iamthearm/bazel,bazelbuild/bazel,twitter-forks/bazel,davidzchen/bazel,anupcshan/bazel,meteorcloudy/bazel,damienmg/bazel,katre/bazel,LuminateWireless/bazel,mbrukman/bazel,perezd/bazel,snnn/bazel,dslomov/bazel-windows,juhalindfors/bazel-patches,mikelalcon/bazel,meteorcloudy/bazel,variac/bazel,spxtr/bazel,hermione521/bazel,spxtr/bazel,variac/bazel,dslomov/bazel,mikelikespie/bazel,kchodorow/bazel,werkt/bazel,dropbox/bazel,variac/bazel,werkt/bazel,aehlig/bazel,dropbox/bazel,LuminateWireless/bazel,aehlig/bazel,snnn/bazel
java
## Code Before: // Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.devtools.build.lib.rules.test; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; import java.util.Map; /** * This provider can be implemented by rules which need special environments to run in (especially * tests). */ @Immutable public final class ExecutionInfoProvider implements TransitiveInfoProvider { private final ImmutableMap<String, String> executionInfo; public ExecutionInfoProvider(Map<String, String> requirements) { this.executionInfo = ImmutableMap.copyOf(requirements); } /** * Returns a map to indicate special execution requirements, such as hardware * platforms, web browsers, etc. Rule tags, such as "requires-XXX", may also be added * as keys to the map. */ public ImmutableMap<String, String> getExecutionInfo() { return executionInfo; } } ## Instruction: Remove reference to web browsers in bazel documentation. -- MOS_MIGRATED_REVID=115912069 ## Code After: // Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.devtools.build.lib.rules.test; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; import java.util.Map; /** * This provider can be implemented by rules which need special environments to run in (especially * tests). */ @Immutable public final class ExecutionInfoProvider implements TransitiveInfoProvider { private final ImmutableMap<String, String> executionInfo; public ExecutionInfoProvider(Map<String, String> requirements) { this.executionInfo = ImmutableMap.copyOf(requirements); } /** * Returns a map to indicate special execution requirements, such as hardware * platforms, etc. Rule tags, such as "requires-XXX", may also be added * as keys to the map. */ public ImmutableMap<String, String> getExecutionInfo() { return executionInfo; } }
c18e737b921546961509deb5ace3c30150924e98
salt/tls-terminator/README.md
salt/tls-terminator/README.md
tls-terminator ============== Configures nginx as TLS terminator for a http(s) backend. Sample pillar config: ``` tls-terminator: example.com: backend: https://example-app.herokuapp.com cert: | ---BEGIN CERTIFICATE---- <snip> ---END CERTIFICATE------ key: | ---BEGIN PRIVATE KEY---- <snip> ---END PRIVATE KEY------ ``` `cert` and `key` is only needed if you want to override the nginx default cert set through `nginx:default_cert`. If you want to have different backends for different URLs, you can set the `backends` parameter instead: ``` tls-terminator: otherexample.com: backends: /: https://example-app.herokuapp.com /api: https://api-app.herokuapp.com ``` A HTTPS backend is validated against the system trust root if no explicit trust root is given. To set a trust root: ``` tls-terminator: example.com: backends: /: upstream: https://example-app.herokuapp.com upstream_trust_root: | <upstream-cert> ``` As you might have guessed, `backend: <url>` is just a convenient alias for `backends: {"/": {"upstream": <url>}}`.
tls-terminator ============== Configures nginx as TLS terminator for a http(s) backend. Sample pillar config: ```yaml tls-terminator: example.com: backend: https://example-app.herokuapp.com cert: | ---BEGIN CERTIFICATE---- <snip> ---END CERTIFICATE------ key: | ---BEGIN PRIVATE KEY---- <snip> ---END PRIVATE KEY------ ``` `cert` and `key` is only needed if you want to override the nginx default cert set through `nginx:default_cert`. If you want to have different backends for different URLs, you can set the `backends` parameter instead: ```yaml tls-terminator: otherexample.com: backends: /: https://example-app.herokuapp.com /api: https://api-app.herokuapp.com ``` A HTTPS backend is validated against the system trust root if no explicit trust root is given. To set a trust root: ```yaml tls-terminator: example.com: backends: /: upstream: https://example-app.herokuapp.com upstream_trust_root: | <upstream-cert> ``` As you might have guessed, `backend: <url>` is just a convenient alias for `backends: {"/": {"upstream": <url>}}`.
Add yaml-marker for tls-terminator code blocks
Add yaml-marker for tls-terminator code blocks
Markdown
mit
thusoy/salt-states,thusoy/salt-states,thusoy/salt-states,thusoy/salt-states
markdown
## Code Before: tls-terminator ============== Configures nginx as TLS terminator for a http(s) backend. Sample pillar config: ``` tls-terminator: example.com: backend: https://example-app.herokuapp.com cert: | ---BEGIN CERTIFICATE---- <snip> ---END CERTIFICATE------ key: | ---BEGIN PRIVATE KEY---- <snip> ---END PRIVATE KEY------ ``` `cert` and `key` is only needed if you want to override the nginx default cert set through `nginx:default_cert`. If you want to have different backends for different URLs, you can set the `backends` parameter instead: ``` tls-terminator: otherexample.com: backends: /: https://example-app.herokuapp.com /api: https://api-app.herokuapp.com ``` A HTTPS backend is validated against the system trust root if no explicit trust root is given. To set a trust root: ``` tls-terminator: example.com: backends: /: upstream: https://example-app.herokuapp.com upstream_trust_root: | <upstream-cert> ``` As you might have guessed, `backend: <url>` is just a convenient alias for `backends: {"/": {"upstream": <url>}}`. ## Instruction: Add yaml-marker for tls-terminator code blocks ## Code After: tls-terminator ============== Configures nginx as TLS terminator for a http(s) backend. Sample pillar config: ```yaml tls-terminator: example.com: backend: https://example-app.herokuapp.com cert: | ---BEGIN CERTIFICATE---- <snip> ---END CERTIFICATE------ key: | ---BEGIN PRIVATE KEY---- <snip> ---END PRIVATE KEY------ ``` `cert` and `key` is only needed if you want to override the nginx default cert set through `nginx:default_cert`. If you want to have different backends for different URLs, you can set the `backends` parameter instead: ```yaml tls-terminator: otherexample.com: backends: /: https://example-app.herokuapp.com /api: https://api-app.herokuapp.com ``` A HTTPS backend is validated against the system trust root if no explicit trust root is given. To set a trust root: ```yaml tls-terminator: example.com: backends: /: upstream: https://example-app.herokuapp.com upstream_trust_root: | <upstream-cert> ``` As you might have guessed, `backend: <url>` is just a convenient alias for `backends: {"/": {"upstream": <url>}}`.
6dd6b817f61f1ec04e3d08a9e60f3739035fd611
index.php
index.php
<?php require_once './vendor/autoload.php'; use Turbine\Application; $config = []; $app = new Application($config); if (getenv('DEVELOPMENT') === 'true') { $app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler); $app->setConfig('error', true); } $container = $app->getContainer(); $app->getContainer()->share(\Zend\Diactoros\Response\EmitterInterface::class, \PlexRSSFeed\RSSEmitter::class); $container->share('\Suin\RSSWriter\Feed'); $container->add('\Suin\RSSWriter\Channel'); $container->add('\Suin\RSSWriter\Item'); $container->add('\PlexRSSFeed\Factory\ChannelFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Factory\ItemFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Controller\FeedController') ->withArguments([ '\Suin\RSSWriter\Feed', '\PlexRSSFeed\Factory\ChannelFactory', '\PlexRSSFeed\Factory\ItemFactory' ]); $app->get('/{feed}/{items}', '\PlexRSSFeed\Controller\FeedController::__invoke'); $app->run();
<?php require_once './vendor/autoload.php'; use Turbine\Application; $config = [ 'baseDirectory' => '/PlexRSSFeed' ]; $app = new Application($config); if (getenv('DEVELOPMENT') === 'true') { $app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler); $app->setConfig('error', true); } $container = $app->getContainer(); $app->getContainer()->share(\Zend\Diactoros\Response\EmitterInterface::class, \PlexRSSFeed\RSSEmitter::class); $container->share('\Suin\RSSWriter\Feed'); $container->add('\Suin\RSSWriter\Channel'); $container->add('\Suin\RSSWriter\Item'); $container->add('\PlexRSSFeed\Factory\ChannelFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Factory\ItemFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Controller\FeedController') ->withArguments([ '\Suin\RSSWriter\Feed', '\PlexRSSFeed\Factory\ChannelFactory', '\PlexRSSFeed\Factory\ItemFactory' ]); $app->get($config['baseDirectory'] . '/{feed}/{items}', '\PlexRSSFeed\Controller\FeedController::__invoke'); $app->run();
Allow project to live in non-root directory.
Allow project to live in non-root directory.
PHP
mit
huanga/PlexRSSFeed
php
## Code Before: <?php require_once './vendor/autoload.php'; use Turbine\Application; $config = []; $app = new Application($config); if (getenv('DEVELOPMENT') === 'true') { $app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler); $app->setConfig('error', true); } $container = $app->getContainer(); $app->getContainer()->share(\Zend\Diactoros\Response\EmitterInterface::class, \PlexRSSFeed\RSSEmitter::class); $container->share('\Suin\RSSWriter\Feed'); $container->add('\Suin\RSSWriter\Channel'); $container->add('\Suin\RSSWriter\Item'); $container->add('\PlexRSSFeed\Factory\ChannelFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Factory\ItemFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Controller\FeedController') ->withArguments([ '\Suin\RSSWriter\Feed', '\PlexRSSFeed\Factory\ChannelFactory', '\PlexRSSFeed\Factory\ItemFactory' ]); $app->get('/{feed}/{items}', '\PlexRSSFeed\Controller\FeedController::__invoke'); $app->run(); ## Instruction: Allow project to live in non-root directory. ## Code After: <?php require_once './vendor/autoload.php'; use Turbine\Application; $config = [ 'baseDirectory' => '/PlexRSSFeed' ]; $app = new Application($config); if (getenv('DEVELOPMENT') === 'true') { $app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler); $app->setConfig('error', true); } $container = $app->getContainer(); $app->getContainer()->share(\Zend\Diactoros\Response\EmitterInterface::class, \PlexRSSFeed\RSSEmitter::class); $container->share('\Suin\RSSWriter\Feed'); $container->add('\Suin\RSSWriter\Channel'); $container->add('\Suin\RSSWriter\Item'); $container->add('\PlexRSSFeed\Factory\ChannelFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Factory\ItemFactory') ->withMethodCall( 'setContainer', [new League\Container\Argument\RawArgument($container)] ); $container->add('\PlexRSSFeed\Controller\FeedController') ->withArguments([ '\Suin\RSSWriter\Feed', '\PlexRSSFeed\Factory\ChannelFactory', '\PlexRSSFeed\Factory\ItemFactory' ]); $app->get($config['baseDirectory'] . '/{feed}/{items}', '\PlexRSSFeed\Controller\FeedController::__invoke'); $app->run();
3002a33c5a739682e4bf41832219c21d3d1eea04
index.html
index.html
<html> <head> <meta charset='utf-8'> <title>hexaworld</title> <meta name="viewport" content="user-scalable=no, width=device-width, height=device-height"/> <link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css"> <link rel='stylesheet' href='style.css'> </head> <body> <div id='container'></div> <script src="/socket.io/socket.io.js"></script> <script src='./bundle.js'></script> </body> </html>
<html> <head> <meta charset='utf-8'> <title>hexaworld</title> <meta name="viewport" content="user-scalable=no"/> <link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css"> <link rel='stylesheet' href='style.css'> </head> <body> <div id='container'></div> <script src="/socket.io/socket.io.js"></script> <script src='./bundle.js'></script> </body> </html>
Remove fixed height and width
Remove fixed height and width
HTML
apache-2.0
hexaworld/hexaworld-server,hexaworld/hexaworld-server
html
## Code Before: <html> <head> <meta charset='utf-8'> <title>hexaworld</title> <meta name="viewport" content="user-scalable=no, width=device-width, height=device-height"/> <link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css"> <link rel='stylesheet' href='style.css'> </head> <body> <div id='container'></div> <script src="/socket.io/socket.io.js"></script> <script src='./bundle.js'></script> </body> </html> ## Instruction: Remove fixed height and width ## Code After: <html> <head> <meta charset='utf-8'> <title>hexaworld</title> <meta name="viewport" content="user-scalable=no"/> <link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css"> <link rel='stylesheet' href='style.css'> </head> <body> <div id='container'></div> <script src="/socket.io/socket.io.js"></script> <script src='./bundle.js'></script> </body> </html>
8d74280caf163c26c084d042a31fc301b5913b4f
pkg/identity/identity.go
pkg/identity/identity.go
/* Package identity provides type that allows to authorize request */ package identity import ( "github.com/google/uuid" ) // Identity data to be encode in auth token type Identity struct { ID uuid.UUID `json:"id"` Email string `json:"email"` Roles []string `json:"roles"` } // WithEmail returns a new Identity with given email value func WithEmail(email string) (*Identity, error) { i, err := New() if err != nil { return nil, err } i.Email = email return i, nil } // WithValues returns a new Identity for given values func WithValues(id uuid.UUID, email string, roles []string) *Identity { return &Identity{id, email, roles} } // New returns a new Identity func New() (*Identity, error) { id, err := uuid.NewRandom() if err != nil { return nil, err } return &Identity{ ID: id, }, nil }
/* Package identity provides type that allows to authorize request */ package identity import ( "github.com/google/uuid" ) // Identity data to be encode in auth token type Identity struct { ID uuid.UUID `json:"id"` Email string `json:"email"` Roles []string `json:"roles"` } // WithEmail returns a new Identity with given email value func WithEmail(email string) (*Identity, error) { i, err := New() if err != nil { return nil, err } i.Email = email return i, nil } // WithValues returns a new Identity for given values func WithValues(id uuid.UUID, email string, roles []string) *Identity { return &Identity{id, email, roles} } // New returns a new Identity func New() (*Identity, error) { id, err := uuid.NewRandom() return &Identity{ ID: id, }, err }
Remove some err checks, return it directly
Remove some err checks, return it directly
Go
mit
vardius/go-api-boilerplate,vardius/go-api-boilerplate,vardius/go-api-boilerplate
go
## Code Before: /* Package identity provides type that allows to authorize request */ package identity import ( "github.com/google/uuid" ) // Identity data to be encode in auth token type Identity struct { ID uuid.UUID `json:"id"` Email string `json:"email"` Roles []string `json:"roles"` } // WithEmail returns a new Identity with given email value func WithEmail(email string) (*Identity, error) { i, err := New() if err != nil { return nil, err } i.Email = email return i, nil } // WithValues returns a new Identity for given values func WithValues(id uuid.UUID, email string, roles []string) *Identity { return &Identity{id, email, roles} } // New returns a new Identity func New() (*Identity, error) { id, err := uuid.NewRandom() if err != nil { return nil, err } return &Identity{ ID: id, }, nil } ## Instruction: Remove some err checks, return it directly ## Code After: /* Package identity provides type that allows to authorize request */ package identity import ( "github.com/google/uuid" ) // Identity data to be encode in auth token type Identity struct { ID uuid.UUID `json:"id"` Email string `json:"email"` Roles []string `json:"roles"` } // WithEmail returns a new Identity with given email value func WithEmail(email string) (*Identity, error) { i, err := New() if err != nil { return nil, err } i.Email = email return i, nil } // WithValues returns a new Identity for given values func WithValues(id uuid.UUID, email string, roles []string) *Identity { return &Identity{id, email, roles} } // New returns a new Identity func New() (*Identity, error) { id, err := uuid.NewRandom() return &Identity{ ID: id, }, err }
9a2c253713ac535c64eeec95d36042f1a086afd6
server/methods.js
server/methods.js
Meteor.methods({ createBet: function(user,defender,title,wager) { Bets.insert({ bettors: [ user, defender ], status: "open", title: title, wager: wager, createdAt: new Date() }); }, createBetNotification: function(user, defender, type, bet_id) { BetNotifications.insert({ toNotify: defender, betBy: user, type: type, bet_id: bet_id }); }, deleteBet: function(bet_id){ Bets.remove(bet_id) }, completeBet: function(bet_id, winner){ Bets.update( { _id: bet_id }, { $set: { status: "completed", winner: winner, paid: false } }); }, updateStatus: function(bet_id, status){ Bets.update({ _id : bet_id }, { $set: { status: status }}) }, editBet: function(bet_id, user, defender, title, wager) { Bets.update({ _id: bet_id }, { bettors: [ user, defender], status: "open", title: title, wager: wager }); }, createMessage: function(message, sender, bet_id){ Messages.insert({ message: message, sentBy: sender, bet: bet_id }); } });
Meteor.methods({ createBet: function(user, defender, title, wager, image_id) { Bets.insert({ bettors: [ user, defender ], status: "open", title: title, wager: wager, image_id: image_id, createdAt: new Date() }); }, createBetNotification: function(user, defender, type, bet_id) { BetNotifications.insert({ toNotify: defender, betBy: user, type: type, bet_id: bet_id }); }, deleteBet: function(bet_id){ Bets.remove(bet_id) }, completeBet: function(bet_id, winner){ Bets.update( { _id: bet_id }, { $set: { status: "completed", winner: winner, paid: false } }); }, updateStatus: function(bet_id, status){ Bets.update({ _id : bet_id }, { $set: { status: status }}) }, editBet: function(bet_id, user, defender, title, wager) { Bets.update({ _id: bet_id }, { bettors: [ user, defender], status: "open", title: title, wager: wager }); }, createMessage: function(message, sender, bet_id){ Messages.insert({ message: message, sentBy: sender, bet: bet_id }); } });
Add image_id to DB model.
Add image_id to DB model.
JavaScript
mit
nmmascia/webet,nmmascia/webet
javascript
## Code Before: Meteor.methods({ createBet: function(user,defender,title,wager) { Bets.insert({ bettors: [ user, defender ], status: "open", title: title, wager: wager, createdAt: new Date() }); }, createBetNotification: function(user, defender, type, bet_id) { BetNotifications.insert({ toNotify: defender, betBy: user, type: type, bet_id: bet_id }); }, deleteBet: function(bet_id){ Bets.remove(bet_id) }, completeBet: function(bet_id, winner){ Bets.update( { _id: bet_id }, { $set: { status: "completed", winner: winner, paid: false } }); }, updateStatus: function(bet_id, status){ Bets.update({ _id : bet_id }, { $set: { status: status }}) }, editBet: function(bet_id, user, defender, title, wager) { Bets.update({ _id: bet_id }, { bettors: [ user, defender], status: "open", title: title, wager: wager }); }, createMessage: function(message, sender, bet_id){ Messages.insert({ message: message, sentBy: sender, bet: bet_id }); } }); ## Instruction: Add image_id to DB model. ## Code After: Meteor.methods({ createBet: function(user, defender, title, wager, image_id) { Bets.insert({ bettors: [ user, defender ], status: "open", title: title, wager: wager, image_id: image_id, createdAt: new Date() }); }, createBetNotification: function(user, defender, type, bet_id) { BetNotifications.insert({ toNotify: defender, betBy: user, type: type, bet_id: bet_id }); }, deleteBet: function(bet_id){ Bets.remove(bet_id) }, completeBet: function(bet_id, winner){ Bets.update( { _id: bet_id }, { $set: { status: "completed", winner: winner, paid: false } }); }, updateStatus: function(bet_id, status){ Bets.update({ _id : bet_id }, { $set: { status: status }}) }, editBet: function(bet_id, user, defender, title, wager) { Bets.update({ _id: bet_id }, { bettors: [ user, defender], status: "open", title: title, wager: wager }); }, createMessage: function(message, sender, bet_id){ Messages.insert({ message: message, sentBy: sender, bet: bet_id }); } });
10648461f8310d9bb107dacf5be890ebd0be21cf
app/account/regions/boards-list.js
app/account/regions/boards-list.js
module.exports = Z.Region.extend({ el: 'div.account-page-sidebar-list', keepEl: true, view: require('account/views/boards-list'), events: { 'mouseout': 'onMouseOut', 'mouseover': 'onMouseOver' }, setHeight: function() { this.$el.height($(document).height() - 132); return this; }, onShow: function() { this.setHeight(); }, onMouseOut: function() { $('body').removeClass('ui-no-scroll'); }, onMouseOver: function() { $('body').addClass('ui-no-scroll'); } });
module.exports = Z.Region.extend({ el: 'div.account-page-sidebar-list', keepEl: true, view: require('account/views/boards-list'), setHeight: function() { this.$el.height($(document).height() - 132); return this; }, onShow: function() { this.setHeight(); } });
Remove unnecessary logic on boards list.
Remove unnecessary logic on boards list.
JavaScript
agpl-3.0
GetBlimp/boards-web,jessamynsmith/boards-web,jessamynsmith/boards-web
javascript
## Code Before: module.exports = Z.Region.extend({ el: 'div.account-page-sidebar-list', keepEl: true, view: require('account/views/boards-list'), events: { 'mouseout': 'onMouseOut', 'mouseover': 'onMouseOver' }, setHeight: function() { this.$el.height($(document).height() - 132); return this; }, onShow: function() { this.setHeight(); }, onMouseOut: function() { $('body').removeClass('ui-no-scroll'); }, onMouseOver: function() { $('body').addClass('ui-no-scroll'); } }); ## Instruction: Remove unnecessary logic on boards list. ## Code After: module.exports = Z.Region.extend({ el: 'div.account-page-sidebar-list', keepEl: true, view: require('account/views/boards-list'), setHeight: function() { this.$el.height($(document).height() - 132); return this; }, onShow: function() { this.setHeight(); } });
cf5a79849a50386b8f1fa55fd987a9f26b99aa06
spec/yesmail2/email_spec.rb
spec/yesmail2/email_spec.rb
module Yesmail2 describe Email do describe '.send' do let(:template_id) { 'foo' } let(:subscriber) do { id: 'test@example.com', email: 'test@example.com' } end it 'invokes the correct shit' do body = { content: [template_id], recipients: [subscriber] } WebMock .stub_request(:post, 'https://api.yesmail.com/v2/emails/send') .with(body: body.to_json) .to_return(status: 200, body: '{}') Email.send([template_id], [subscriber]) end end end end
module Yesmail2 describe Email do describe '.send' do let(:template_id) { 'foo' } let(:subscriber) do { id: 'test@example.com', email: 'test@example.com' } end it 'invokes the correct shit' do body = { content: { templateId: template_id }, recipients: [subscriber] } WebMock .stub_request(:post, 'https://api.yesmail.com/v2/emails/send') .with(body: body.to_json) .to_return(status: 200, body: '{}') Email.send({ templateId: template_id }, [subscriber]) end end end end
Update spec to reflect accurate API usage
Update spec to reflect accurate API usage
Ruby
mit
apartmentlist/yesmail2
ruby
## Code Before: module Yesmail2 describe Email do describe '.send' do let(:template_id) { 'foo' } let(:subscriber) do { id: 'test@example.com', email: 'test@example.com' } end it 'invokes the correct shit' do body = { content: [template_id], recipients: [subscriber] } WebMock .stub_request(:post, 'https://api.yesmail.com/v2/emails/send') .with(body: body.to_json) .to_return(status: 200, body: '{}') Email.send([template_id], [subscriber]) end end end end ## Instruction: Update spec to reflect accurate API usage ## Code After: module Yesmail2 describe Email do describe '.send' do let(:template_id) { 'foo' } let(:subscriber) do { id: 'test@example.com', email: 'test@example.com' } end it 'invokes the correct shit' do body = { content: { templateId: template_id }, recipients: [subscriber] } WebMock .stub_request(:post, 'https://api.yesmail.com/v2/emails/send') .with(body: body.to_json) .to_return(status: 200, body: '{}') Email.send({ templateId: template_id }, [subscriber]) end end end end
bf31185be67a780b34102007335d4db3e04c5d6f
.travis.yml
.travis.yml
matrix: include: - language: node_js node_js: 8 script: - npm install - npm run lint - npm test - language: android jdk: oraclejdk8 dist: precise node_js: false android: components: - tools - platform-tools - build-tools-26.0.2 - android-25 - extra-android-m2repository licenses: - 'android-sdk-license-.+' script: - cd android - chmod +x gradlew - ./gradlew assembleRelease test - language: objective-c os: osx osx_image: xcode9.1 node_js: false xcode_project: ios/BleClientManager/BleClientManager.xcodeproj script: - cd ios/BleClientManager - carthage build - xcodebuild -scheme BleClientManager -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
matrix: include: - language: node_js node_js: 8 script: - npm install - npm run lint - npm test - language: android jdk: oraclejdk8 dist: precise node_js: false android: components: - tools - platform-tools - build-tools-26.0.2 - android-25 - extra-android-m2repository licenses: - 'android-sdk-license-.+' script: - cd android - chmod +x gradlew - ./gradlew assembleRelease test - language: objective-c os: osx osx_image: xcode9.1 node_js: 8 xcode_project: ios/BleClientManager/BleClientManager.xcodeproj install: - npm install script: - cd ios/BleClientManager - carthage build - xcodebuild -scheme BleClientManager -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
Add node to ios job and install deps
Add node to ios job and install deps
YAML
apache-2.0
Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx
yaml
## Code Before: matrix: include: - language: node_js node_js: 8 script: - npm install - npm run lint - npm test - language: android jdk: oraclejdk8 dist: precise node_js: false android: components: - tools - platform-tools - build-tools-26.0.2 - android-25 - extra-android-m2repository licenses: - 'android-sdk-license-.+' script: - cd android - chmod +x gradlew - ./gradlew assembleRelease test - language: objective-c os: osx osx_image: xcode9.1 node_js: false xcode_project: ios/BleClientManager/BleClientManager.xcodeproj script: - cd ios/BleClientManager - carthage build - xcodebuild -scheme BleClientManager -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO ## Instruction: Add node to ios job and install deps ## Code After: matrix: include: - language: node_js node_js: 8 script: - npm install - npm run lint - npm test - language: android jdk: oraclejdk8 dist: precise node_js: false android: components: - tools - platform-tools - build-tools-26.0.2 - android-25 - extra-android-m2repository licenses: - 'android-sdk-license-.+' script: - cd android - chmod +x gradlew - ./gradlew assembleRelease test - language: objective-c os: osx osx_image: xcode9.1 node_js: 8 xcode_project: ios/BleClientManager/BleClientManager.xcodeproj install: - npm install script: - cd ios/BleClientManager - carthage build - xcodebuild -scheme BleClientManager -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
32570bdc1244435c0e8b34bc9540de70522a57a4
puppet/modules/barbican/templates/Z99-barbican.erb
puppet/modules/barbican/templates/Z99-barbican.erb
<% if defined?(@barbican_branch) %> export BARBICAN_BRANCH="<%= @barbican_branch %>" <% else %> export BARBICAN_BRANCH="stable/kilo" <% end %> <% if defined?(@hostname_manager) %> export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311" <% else %> export BARBICAN_HOST_HREF="http://localhost:9311" <% end %>
<% if defined?(@barbican_branch) %> export BARBICAN_BRANCH="<%= @barbican_branch %>" <% elsif defined?(@devstack_branch) %> export BARBICAN_BRANCH="<%= @devstack_branch %>" <% else %> export BARBICAN_BRANCH="stable/kilo" <% end %> <% if defined?(@hostname_manager) %> export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311" <% else %> export BARBICAN_HOST_HREF="http://localhost:9311" <% end %>
Use devstack_branch if no barbican_branch defined
Use devstack_branch if no barbican_branch defined
HTML+ERB
apache-2.0
unibg-seclab/devstack-vagrant,unibg-seclab/devstack-vagrant,unibg-seclab/devstack-vagrant
html+erb
## Code Before: <% if defined?(@barbican_branch) %> export BARBICAN_BRANCH="<%= @barbican_branch %>" <% else %> export BARBICAN_BRANCH="stable/kilo" <% end %> <% if defined?(@hostname_manager) %> export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311" <% else %> export BARBICAN_HOST_HREF="http://localhost:9311" <% end %> ## Instruction: Use devstack_branch if no barbican_branch defined ## Code After: <% if defined?(@barbican_branch) %> export BARBICAN_BRANCH="<%= @barbican_branch %>" <% elsif defined?(@devstack_branch) %> export BARBICAN_BRANCH="<%= @devstack_branch %>" <% else %> export BARBICAN_BRANCH="stable/kilo" <% end %> <% if defined?(@hostname_manager) %> export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311" <% else %> export BARBICAN_HOST_HREF="http://localhost:9311" <% end %>
b6549669e8bf85a12c8ffe3e7fe7cc1e0d457d1c
README.md
README.md
graphite-talk ============= Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/ Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome @CarlFK.
graphite-talk ============= Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/ Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome [@CarlFK](https://github.com/CarlFK).
Fix a link to @CarlFK's github page
Fix a link to @CarlFK's github page
Markdown
mit
SEJeff/graphite-talk
markdown
## Code Before: graphite-talk ============= Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/ Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome @CarlFK. ## Instruction: Fix a link to @CarlFK's github page ## Code After: graphite-talk ============= Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/ Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome [@CarlFK](https://github.com/CarlFK).
24304fe5f46ca253c7dcf36806898fbf987c9e30
appveyor.yml
appveyor.yml
version: '{build}' image: Visual Studio 2015 environment: global: NODEJS_VERSION: "12" JAVA_HOME: C:\Program Files\Java\jdk1.8.0 SCALA_VERSION: 2.12.12 install: - ps: Install-Product node $env:NODEJS_VERSION - npm install - cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt""" - cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH% - cmd: SET "SBT_OPTS=-Xmx4g -Xms4m" build: off test_script: # Very far from testing everything, but at least it is a good sanity check # For slow things (partest and scripted), we execute only one test - cmd: sbt ";clean;++%SCALA_VERSION%;testSuite2_12/test;linker2_12/test;partestSuite2_12/testOnly -- --fastOpt run/option-fold.scala;sbtPlugin/scripted settings/module-init" cache: - C:\sbt - C:\Users\appveyor\.ivy2\cache - C:\Users\appveyor\.sbt
version: '{build}' image: Visual Studio 2015 environment: global: NODEJS_VERSION: "12" JAVA_HOME: C:\Program Files\Java\jdk1.8.0 SCALA_VERSION: 2.12.12 install: - ps: Install-Product node $env:NODEJS_VERSION - npm install - cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt""" - cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH% - cmd: SET "SBT_OPTS=-Xmx4g -Xms4m" build: off test_script: # Very far from testing everything, but at least it is a good sanity check # For slow things (partest and scripted), we execute only one test - cmd: sbt ";clean;++%SCALA_VERSION%;testSuite2_12/test;linker2_12/test;partestSuite2_12/testOnly -- --fastOpt run/option-fold.scala" cache: - C:\sbt - C:\Users\appveyor\.ivy2\cache - C:\Users\appveyor\.sbt
Disable scripted tests in the Windows CI.
Disable scripted tests in the Windows CI. They are unfortunately too flaky, due to some StackOverflow happening during `compiler_2.11/compile`.
YAML
apache-2.0
scala-js/scala-js,scala-js/scala-js,sjrd/scala-js,sjrd/scala-js,scala-js/scala-js,gzm0/scala-js,gzm0/scala-js,sjrd/scala-js
yaml
## Code Before: version: '{build}' image: Visual Studio 2015 environment: global: NODEJS_VERSION: "12" JAVA_HOME: C:\Program Files\Java\jdk1.8.0 SCALA_VERSION: 2.12.12 install: - ps: Install-Product node $env:NODEJS_VERSION - npm install - cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt""" - cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH% - cmd: SET "SBT_OPTS=-Xmx4g -Xms4m" build: off test_script: # Very far from testing everything, but at least it is a good sanity check # For slow things (partest and scripted), we execute only one test - cmd: sbt ";clean;++%SCALA_VERSION%;testSuite2_12/test;linker2_12/test;partestSuite2_12/testOnly -- --fastOpt run/option-fold.scala;sbtPlugin/scripted settings/module-init" cache: - C:\sbt - C:\Users\appveyor\.ivy2\cache - C:\Users\appveyor\.sbt ## Instruction: Disable scripted tests in the Windows CI. They are unfortunately too flaky, due to some StackOverflow happening during `compiler_2.11/compile`. ## Code After: version: '{build}' image: Visual Studio 2015 environment: global: NODEJS_VERSION: "12" JAVA_HOME: C:\Program Files\Java\jdk1.8.0 SCALA_VERSION: 2.12.12 install: - ps: Install-Product node $env:NODEJS_VERSION - npm install - cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt""" - cmd: SET PATH=C:\sbt\bin;%JAVA_HOME%\bin;%PATH% - cmd: SET "SBT_OPTS=-Xmx4g -Xms4m" build: off test_script: # Very far from testing everything, but at least it is a good sanity check # For slow things (partest and scripted), we execute only one test - cmd: sbt ";clean;++%SCALA_VERSION%;testSuite2_12/test;linker2_12/test;partestSuite2_12/testOnly -- --fastOpt run/option-fold.scala" cache: - C:\sbt - C:\Users\appveyor\.ivy2\cache - C:\Users\appveyor\.sbt
79e809134a913f0e9d4de6d58823c09c88791c9e
lib/morph/line_buffer.rb
lib/morph/line_buffer.rb
module Morph class LineBuffer def initialize @buffer = '' end def extract r = [] while i = @buffer.index("\n") line = @buffer[0..i] yield line if block_given? r << line @buffer = @buffer[i + 1..-1] end r end def <<(text) @buffer << text end def finish fail if @buffer.include?("\n") r = @buffer @buffer = '' r end end end
module Morph # Line-oriented buffer. Send data to the buffer. Extract lines once they # are completed with newlines class LineBuffer def initialize @buffer = '' end def extract r = [] while i = @buffer.index("\n") line = @buffer[0..i] yield line if block_given? r << line @buffer = @buffer[i + 1..-1] end r end def <<(text) @buffer << text end def finish fail if @buffer.include?("\n") r = @buffer @buffer = '' r end end end
Add comment explaining what LineBuffer class does
Add comment explaining what LineBuffer class does
Ruby
agpl-3.0
otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph
ruby
## Code Before: module Morph class LineBuffer def initialize @buffer = '' end def extract r = [] while i = @buffer.index("\n") line = @buffer[0..i] yield line if block_given? r << line @buffer = @buffer[i + 1..-1] end r end def <<(text) @buffer << text end def finish fail if @buffer.include?("\n") r = @buffer @buffer = '' r end end end ## Instruction: Add comment explaining what LineBuffer class does ## Code After: module Morph # Line-oriented buffer. Send data to the buffer. Extract lines once they # are completed with newlines class LineBuffer def initialize @buffer = '' end def extract r = [] while i = @buffer.index("\n") line = @buffer[0..i] yield line if block_given? r << line @buffer = @buffer[i + 1..-1] end r end def <<(text) @buffer << text end def finish fail if @buffer.include?("\n") r = @buffer @buffer = '' r end end end
86ab4a28e0994ad3c0fd81a40279a68e54295b90
README.md
README.md
Ember Hearth is an application used to manage Ember projects. **Warning: Ember Hearth is alpha software and may misbehave.** ## Goals Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line. ## Features * Installs all needed tools automatically ([node.js](http://nodejs.org), [NPM](http://npmjs.com), [Bower](http://bower.io), [PhantomJS](http://phantomjs.org), [Ember-CLI](http://ember-cli.com)) * Create new Ember projects * Manage existing Ember projects * Run a local server * Create development and release builds ## Installing Go to [ember.town/ember-hearth](http://ember.town/ember-hearth) and download Hearth from there. Double click to extract and move Ember Hearth.app to your Applications folder. ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) ### Running in Xcode 1. Clone git project 2. Run `pod install` in the project folder 3. Open Ember Hearth.xcworkspace ## Troubleshooting ### Node/NPM/Ember-cli is not available in my terminal If you're using something else than bash for your shell, the tools installed through Ember Hearth might not be in your path. This can be fixed by adding `export PATH=$HOME/local/bin:$PATH` to your config (for example `~/.zshrc` for zsh).
Ember Hearth is an application used to manage Ember projects. **Warning: Ember Hearth is alpha software and may misbehave.** ## Goals Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line. ## Features * Installs all needed tools automatically ([node.js](http://nodejs.org), [NPM](http://npmjs.com), [Bower](http://bower.io), [PhantomJS](http://phantomjs.org), [Ember-CLI](http://ember-cli.com)) * Create new Ember projects * Manage existing Ember projects * Run a local server * Run tests * Create development and release builds ## Installing Go to [ember.town/ember-hearth](http://ember.town/ember-hearth) and download Hearth from there. Double click to extract and move Ember Hearth.app to your Applications folder. ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) ### Running in Xcode 1. Clone git project 2. Run `pod install` in the project folder 3. Open Ember Hearth.xcworkspace ## Troubleshooting ### Node/NPM/Ember-cli is not available in my terminal If you're using something else than bash for your shell, the tools installed through Ember Hearth might not be in your path. This can be fixed by adding `export PATH=$HOME/local/bin:$PATH` to your config (for example `~/.zshrc` for zsh).
Add "run tests" to feature list
Add "run tests" to feature list
Markdown
mit
EmberTown/ember-hearth,EmberTown/ember-hearth,EmberTown/ember-hearth
markdown
## Code Before: Ember Hearth is an application used to manage Ember projects. **Warning: Ember Hearth is alpha software and may misbehave.** ## Goals Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line. ## Features * Installs all needed tools automatically ([node.js](http://nodejs.org), [NPM](http://npmjs.com), [Bower](http://bower.io), [PhantomJS](http://phantomjs.org), [Ember-CLI](http://ember-cli.com)) * Create new Ember projects * Manage existing Ember projects * Run a local server * Create development and release builds ## Installing Go to [ember.town/ember-hearth](http://ember.town/ember-hearth) and download Hearth from there. Double click to extract and move Ember Hearth.app to your Applications folder. ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) ### Running in Xcode 1. Clone git project 2. Run `pod install` in the project folder 3. Open Ember Hearth.xcworkspace ## Troubleshooting ### Node/NPM/Ember-cli is not available in my terminal If you're using something else than bash for your shell, the tools installed through Ember Hearth might not be in your path. This can be fixed by adding `export PATH=$HOME/local/bin:$PATH` to your config (for example `~/.zshrc` for zsh). ## Instruction: Add "run tests" to feature list ## Code After: Ember Hearth is an application used to manage Ember projects. **Warning: Ember Hearth is alpha software and may misbehave.** ## Goals Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line. ## Features * Installs all needed tools automatically ([node.js](http://nodejs.org), [NPM](http://npmjs.com), [Bower](http://bower.io), [PhantomJS](http://phantomjs.org), [Ember-CLI](http://ember-cli.com)) * Create new Ember projects * Manage existing Ember projects * Run a local server * Run tests * Create development and release builds ## Installing Go to [ember.town/ember-hearth](http://ember.town/ember-hearth) and download Hearth from there. Double click to extract and move Ember Hearth.app to your Applications folder. ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) ### Running in Xcode 1. Clone git project 2. Run `pod install` in the project folder 3. Open Ember Hearth.xcworkspace ## Troubleshooting ### Node/NPM/Ember-cli is not available in my terminal If you're using something else than bash for your shell, the tools installed through Ember Hearth might not be in your path. This can be fixed by adding `export PATH=$HOME/local/bin:$PATH` to your config (for example `~/.zshrc` for zsh).
30f8a8b8204c9045a7221660e40555479e2a86ba
docs/management/start_stop.rst
docs/management/start_stop.rst
Start & Stop the Server ======================= The Django Web Framework contains a developmental server that can be used to service requests. Launching this web server for testing is described in this section. This is not necessary for teams as the automatic setup configures Apache, which runs automatically at system startup. Start the Server ---------------- The server needs an address:port for which to host the web server. The address 0.0.0.0 indicates that the server should listen on all interfaces, which allows outside connections from other machines. Ports 80 and 8080 are standard ports for the web. To launch the web server teams should execute the following commands: .. code-block:: bash $ cd ~/auvsi_suas_competition/src/auvsi_suas_server $ python manage.py runserver 0.0.0.0:8080 View the Server --------------- On the computer running the competition server, open a Chrome browser window and navigate to `http://localhost:8080 <http://localhost:8080>`__ to view the homepage for the web server. Stop the Server --------------- To stop the server, use the keyboard combination Control-C while the terminal is in focus. This will signal the web server to shutdown.
Start & Stop the Server ======================= The Django Web Framework contains a developmental server that can be used to service requests. Launching this web server for testing is described in this section. This is not necessary for teams as the automatic setup configures Apache, which runs automatically at system startup. Start the Server ---------------- The server needs an address:port for which to host the web server. The address 0.0.0.0 indicates that the server should listen on all interfaces, which allows outside connections from other machines. Ports 80 and 8080 are standard ports for the web. To launch the web server teams should execute the following commands: .. code-block:: bash $ cd ~/interop/server $ source venv/bin/activate $ python manage.py runserver 0.0.0.0:8080 View the Server --------------- On the computer running the competition server, open a Chrome browser window and navigate to `http://localhost:8080 <http://localhost:8080>`__ to view the homepage for the web server. Stop the Server --------------- To stop the server, use the keyboard combination Control-C while the terminal is in focus. This will signal the web server to shutdown.
Fix path to server and add activation command
Fix path to server and add activation command
reStructuredText
apache-2.0
justineaster/interop,justineaster/interop,transformation/utatuav-interop,auvsi-suas/interop,justineaster/interop,transformation/utatuav-interop,auvsi-suas/interop,transformation/utatuav-interop,auvsi-suas/interop,transformation/utatuav-interop,justineaster/interop,auvsi-suas/interop,transformation/utatuav-interop,transformation/utatuav-interop,justineaster/interop
restructuredtext
## Code Before: Start & Stop the Server ======================= The Django Web Framework contains a developmental server that can be used to service requests. Launching this web server for testing is described in this section. This is not necessary for teams as the automatic setup configures Apache, which runs automatically at system startup. Start the Server ---------------- The server needs an address:port for which to host the web server. The address 0.0.0.0 indicates that the server should listen on all interfaces, which allows outside connections from other machines. Ports 80 and 8080 are standard ports for the web. To launch the web server teams should execute the following commands: .. code-block:: bash $ cd ~/auvsi_suas_competition/src/auvsi_suas_server $ python manage.py runserver 0.0.0.0:8080 View the Server --------------- On the computer running the competition server, open a Chrome browser window and navigate to `http://localhost:8080 <http://localhost:8080>`__ to view the homepage for the web server. Stop the Server --------------- To stop the server, use the keyboard combination Control-C while the terminal is in focus. This will signal the web server to shutdown. ## Instruction: Fix path to server and add activation command ## Code After: Start & Stop the Server ======================= The Django Web Framework contains a developmental server that can be used to service requests. Launching this web server for testing is described in this section. This is not necessary for teams as the automatic setup configures Apache, which runs automatically at system startup. Start the Server ---------------- The server needs an address:port for which to host the web server. The address 0.0.0.0 indicates that the server should listen on all interfaces, which allows outside connections from other machines. Ports 80 and 8080 are standard ports for the web. To launch the web server teams should execute the following commands: .. code-block:: bash $ cd ~/interop/server $ source venv/bin/activate $ python manage.py runserver 0.0.0.0:8080 View the Server --------------- On the computer running the competition server, open a Chrome browser window and navigate to `http://localhost:8080 <http://localhost:8080>`__ to view the homepage for the web server. Stop the Server --------------- To stop the server, use the keyboard combination Control-C while the terminal is in focus. This will signal the web server to shutdown.
28c07e09edeaab9a055687815901c637eacf83ed
resources/node_modules/git.js
resources/node_modules/git.js
var chp = require('child_process'); var Git = { stageFile: function(modulePath, file, callback) { if (file.status === 'deleted') { this._exec(modulePath, 'rm', [file.name], callback); } else { if (file.type === 'submodule') this.exec(modulePath, 'submodule add', [file.name], callback); else this._exec(modulePath, 'add', [file.name], callback); } }, unstageFile: function(modulePath, file, callback) { this._exec(modulePath, 'reset HEAD', [file.name], callback); }, commit: function(modulePath, message, callback) { this._exec(modulePath, 'commit -m', [message], callback); }, push: function(modulePath, callback) { this._exec(modulePath, 'push', [], callback); }, _exec: function(modulePath, cmd, args, callback) { var escapedArgs = args.map(function(arg) { return '"' + arg.replace(/["\\]/g, '\\$1') + '"'; }).join(' '); cmd = 'git ' + cmd + ' ' + escapedArgs; chp.exec(cmd, {cwd: modulePath}, function(err, stdout, stderr) { if (err) console.error(err, stdout, stderr); callback(null, stdout); }); } }; module.exports = Git;
var chp = require('child_process'); var Git = { stageFile: function(modulePath, file, callback) { if (file.status === 'deleted') { this._exec(modulePath, 'rm', [file.name], callback); } else { if (file.type === 'submodule') this._exec(modulePath, 'submodule add', ['.' + require('path').sep + file.name], callback); else this._exec(modulePath, 'add', [file.name], callback); } }, unstageFile: function(modulePath, file, callback) { this._exec(modulePath, 'reset HEAD', [file.name], callback); }, commit: function(modulePath, message, callback) { this._exec(modulePath, 'commit -m', [message], callback); }, push: function(modulePath, callback) { this._exec(modulePath, 'push', [], callback); }, _exec: function(modulePath, cmd, args, callback) { var escapedArgs = args.map(function(arg) { return '"' + arg.replace(/["\\]/g, '\\$1') + '"'; }).join(' '); cmd = 'git ' + cmd + ' ' + escapedArgs; chp.exec(cmd, {cwd: modulePath}, function(err, stdout, stderr) { if (err) console.error(err, stdout, stderr); callback(null, stdout); }); } }; module.exports = Git;
Fix typo and file path
Fix typo and file path
JavaScript
mit
demian85/git-watcher,demian85/git-watcher,demian85/git-watcher
javascript
## Code Before: var chp = require('child_process'); var Git = { stageFile: function(modulePath, file, callback) { if (file.status === 'deleted') { this._exec(modulePath, 'rm', [file.name], callback); } else { if (file.type === 'submodule') this.exec(modulePath, 'submodule add', [file.name], callback); else this._exec(modulePath, 'add', [file.name], callback); } }, unstageFile: function(modulePath, file, callback) { this._exec(modulePath, 'reset HEAD', [file.name], callback); }, commit: function(modulePath, message, callback) { this._exec(modulePath, 'commit -m', [message], callback); }, push: function(modulePath, callback) { this._exec(modulePath, 'push', [], callback); }, _exec: function(modulePath, cmd, args, callback) { var escapedArgs = args.map(function(arg) { return '"' + arg.replace(/["\\]/g, '\\$1') + '"'; }).join(' '); cmd = 'git ' + cmd + ' ' + escapedArgs; chp.exec(cmd, {cwd: modulePath}, function(err, stdout, stderr) { if (err) console.error(err, stdout, stderr); callback(null, stdout); }); } }; module.exports = Git; ## Instruction: Fix typo and file path ## Code After: var chp = require('child_process'); var Git = { stageFile: function(modulePath, file, callback) { if (file.status === 'deleted') { this._exec(modulePath, 'rm', [file.name], callback); } else { if (file.type === 'submodule') this._exec(modulePath, 'submodule add', ['.' + require('path').sep + file.name], callback); else this._exec(modulePath, 'add', [file.name], callback); } }, unstageFile: function(modulePath, file, callback) { this._exec(modulePath, 'reset HEAD', [file.name], callback); }, commit: function(modulePath, message, callback) { this._exec(modulePath, 'commit -m', [message], callback); }, push: function(modulePath, callback) { this._exec(modulePath, 'push', [], callback); }, _exec: function(modulePath, cmd, args, callback) { var escapedArgs = args.map(function(arg) { return '"' + arg.replace(/["\\]/g, '\\$1') + '"'; }).join(' '); cmd = 'git ' + cmd + ' ' + escapedArgs; chp.exec(cmd, {cwd: modulePath}, function(err, stdout, stderr) { if (err) console.error(err, stdout, stderr); callback(null, stdout); }); } }; module.exports = Git;
1090ecf891dd7c0928cdaae385464d3be660fdbf
penn/base.py
penn/base.py
from requests import get class WrapperBase(object): def __init__(self, bearer, token): self.bearer = bearer self.token = token @property def headers(self): """The HTTP headers needed for signed requests""" return { "Authorization-Bearer": self.bearer, "Authorization-Token": self.token, } def _request(self, url, params=None): """Make a signed request to the API, raise any API errors, and returning a tuple of (data, metadata)""" response = get(url, params=params, headers=self.headers).json() if response['service_meta']['error_text']: raise ValueError(response['service_meta']['error_text']) return response
from requests import get class WrapperBase(object): def __init__(self, bearer, token): self.bearer = bearer self.token = token @property def headers(self): """The HTTP headers needed for signed requests""" return { "Authorization-Bearer": self.bearer, "Authorization-Token": self.token, } def _request(self, url, params=None): """Make a signed request to the API, raise any API errors, and returning a tuple of (data, metadata)""" response = get(url, params=params, headers=self.headers) if response.status_code != 200: raise ValueError('Request to {} returned {}'.format(response.url, response.status_code)) response = response.json() if response['service_meta']['error_text']: raise ValueError(response['service_meta']['error_text']) return response
Add better error handling for non-200 responses
Add better error handling for non-200 responses
Python
mit
pennlabs/penn-sdk-python,pennlabs/penn-sdk-python
python
## Code Before: from requests import get class WrapperBase(object): def __init__(self, bearer, token): self.bearer = bearer self.token = token @property def headers(self): """The HTTP headers needed for signed requests""" return { "Authorization-Bearer": self.bearer, "Authorization-Token": self.token, } def _request(self, url, params=None): """Make a signed request to the API, raise any API errors, and returning a tuple of (data, metadata)""" response = get(url, params=params, headers=self.headers).json() if response['service_meta']['error_text']: raise ValueError(response['service_meta']['error_text']) return response ## Instruction: Add better error handling for non-200 responses ## Code After: from requests import get class WrapperBase(object): def __init__(self, bearer, token): self.bearer = bearer self.token = token @property def headers(self): """The HTTP headers needed for signed requests""" return { "Authorization-Bearer": self.bearer, "Authorization-Token": self.token, } def _request(self, url, params=None): """Make a signed request to the API, raise any API errors, and returning a tuple of (data, metadata)""" response = get(url, params=params, headers=self.headers) if response.status_code != 200: raise ValueError('Request to {} returned {}'.format(response.url, response.status_code)) response = response.json() if response['service_meta']['error_text']: raise ValueError(response['service_meta']['error_text']) return response
a278f65c3683d4f7068934f34226146260dd1d48
vagrant/provision.sh
vagrant/provision.sh
setenforce 0 # Install system packages cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF yum -y install docker-engine epel-release git python-pip # Start services systemctl start docker # Fetch and install pip packages sudo -u vagrant git clone https://github.com/openstack/kolla ~vagrant/kolla pip install ~vagrant/kolla pip install ~vagrant/kolla-mesos # Copy configuration cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla
setenforce 0 # Install system packages cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF yum -y install docker-engine epel-release git python-pip # Start services systemctl enable docker systemctl start docker # Fetch and install pip packages sudo -u vagrant git clone https://github.com/openstack/kolla ~vagrant/kolla pip install ~vagrant/kolla pip install ~vagrant/kolla-mesos # Copy configuration cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla
Enable docker service in vagrant
Enable docker service in vagrant Closes-Bug: #1519777 TrivialFix Change-Id: Id5a5e2b18dc24dcb5d38f0dc3f7b32b6fbaf2de3
Shell
apache-2.0
openstack/kolla-mesos,asalkeld/kolla-mesos,openstack/kolla-mesos,openstack/kolla-mesos
shell
## Code Before: setenforce 0 # Install system packages cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF yum -y install docker-engine epel-release git python-pip # Start services systemctl start docker # Fetch and install pip packages sudo -u vagrant git clone https://github.com/openstack/kolla ~vagrant/kolla pip install ~vagrant/kolla pip install ~vagrant/kolla-mesos # Copy configuration cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla ## Instruction: Enable docker service in vagrant Closes-Bug: #1519777 TrivialFix Change-Id: Id5a5e2b18dc24dcb5d38f0dc3f7b32b6fbaf2de3 ## Code After: setenforce 0 # Install system packages cat >/etc/yum.repos.d/docker.repo <<-EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF yum -y install docker-engine epel-release git python-pip # Start services systemctl enable docker systemctl start docker # Fetch and install pip packages sudo -u vagrant git clone https://github.com/openstack/kolla ~vagrant/kolla pip install ~vagrant/kolla pip install ~vagrant/kolla-mesos # Copy configuration cp -r ~vagrant/kolla/etc/kolla/ /etc/kolla
44f603cd947f63101cf6b7eb8e49b5210cfa4f6f
wry/__init__.py
wry/__init__.py
import AMTDevice import AMTBoot import AMTPower import AMTKVM import AMTOptIn import AMTRedirection AMTDevice = AMTDevice.AMTDevice AMTBoot = AMTBoot.AMTBoot AMTPower = AMTPower.AMTPower AMTKVM = AMTKVM.AMTKVM AMTOptin = AMTOptIn.AMTOptIn AMTRedirection = AMTRedirection.AMTRedirection # For backwards compatibility device = { 'AMTDevice': AMTDevice, 'AMTBoot': AMTBoot, 'AMTPower': AMTPower, 'AMTKVM': AMTKVM, 'AMTOptIn': AMTOptIn, 'AMTRedirection': AMTRedirection, } __all__ = [AMTDevice, AMTBoot, AMTPower, AMTKVM, AMTOptIn, AMTRedirection]
import version import AMTDevice import AMTBoot import AMTPower import AMTKVM import AMTOptIn import AMTRedirection AMTDevice = AMTDevice.AMTDevice AMTBoot = AMTBoot.AMTBoot AMTPower = AMTPower.AMTPower AMTKVM = AMTKVM.AMTKVM AMTOptin = AMTOptIn.AMTOptIn AMTRedirection = AMTRedirection.AMTRedirection # For backwards compatibility device = { 'AMTDevice': AMTDevice, 'AMTBoot': AMTBoot, 'AMTPower': AMTPower, 'AMTKVM': AMTKVM, 'AMTOptIn': AMTOptIn, 'AMTRedirection': AMTRedirection, } __all__ = [AMTDevice, AMTBoot, AMTPower, AMTKVM, AMTOptIn, AMTRedirection]
Add version. Note this will cause the file to be modified in your working copy. This change is gitignored
Add version. Note this will cause the file to be modified in your working copy. This change is gitignored
Python
apache-2.0
ocadotechnology/wry
python
## Code Before: import AMTDevice import AMTBoot import AMTPower import AMTKVM import AMTOptIn import AMTRedirection AMTDevice = AMTDevice.AMTDevice AMTBoot = AMTBoot.AMTBoot AMTPower = AMTPower.AMTPower AMTKVM = AMTKVM.AMTKVM AMTOptin = AMTOptIn.AMTOptIn AMTRedirection = AMTRedirection.AMTRedirection # For backwards compatibility device = { 'AMTDevice': AMTDevice, 'AMTBoot': AMTBoot, 'AMTPower': AMTPower, 'AMTKVM': AMTKVM, 'AMTOptIn': AMTOptIn, 'AMTRedirection': AMTRedirection, } __all__ = [AMTDevice, AMTBoot, AMTPower, AMTKVM, AMTOptIn, AMTRedirection] ## Instruction: Add version. Note this will cause the file to be modified in your working copy. This change is gitignored ## Code After: import version import AMTDevice import AMTBoot import AMTPower import AMTKVM import AMTOptIn import AMTRedirection AMTDevice = AMTDevice.AMTDevice AMTBoot = AMTBoot.AMTBoot AMTPower = AMTPower.AMTPower AMTKVM = AMTKVM.AMTKVM AMTOptin = AMTOptIn.AMTOptIn AMTRedirection = AMTRedirection.AMTRedirection # For backwards compatibility device = { 'AMTDevice': AMTDevice, 'AMTBoot': AMTBoot, 'AMTPower': AMTPower, 'AMTKVM': AMTKVM, 'AMTOptIn': AMTOptIn, 'AMTRedirection': AMTRedirection, } __all__ = [AMTDevice, AMTBoot, AMTPower, AMTKVM, AMTOptIn, AMTRedirection]
e7b67d7225d526e2c5f6ef671326c7b9adf38ef8
repo-requirements.txt
repo-requirements.txt
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev -e common/lib/capa -e common/lib/xmodule
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/MITx/django-wiki.git@e2e84558#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev -e common/lib/capa -e common/lib/xmodule
Switch django-wiki dependency to a clone in our org so that local changes are easier to make
Switch django-wiki dependency to a clone in our org so that local changes are easier to make
Text
agpl-3.0
Edraak/circleci-edx-platform,philanthropy-u/edx-platform,pabloborrego93/edx-platform,naresh21/synergetics-edx-platform,arbrandes/edx-platform,tiagochiavericosta/edx-platform,don-github/edx-platform,dsajkl/123,4eek/edx-platform,angelapper/edx-platform,franosincic/edx-platform,beni55/edx-platform,mcgachey/edx-platform,kamalx/edx-platform,shurihell/testasia,shubhdev/edxOnBaadal,mcgachey/edx-platform,pelikanchik/edx-platform,cpennington/edx-platform,eduNEXT/edx-platform,TeachAtTUM/edx-platform,ubc/edx-platform,ampax/edx-platform,Ayub-Khan/edx-platform,EduPepperPDTesting/pepper2013-testing,inares/edx-platform,jazkarta/edx-platform-for-isc,OmarIthawi/edx-platform,pepeportela/edx-platform,longmen21/edx-platform,RPI-OPENEDX/edx-platform,ampax/edx-platform-backup,bitifirefly/edx-platform,simbs/edx-platform,EduPepperPD/pepper2013,SravanthiSinha/edx-platform,prarthitm/edxplatform,mitocw/edx-platform,antoviaque/edx-platform,pomegranited/edx-platform,adoosii/edx-platform,SivilTaram/edx-platform,raccoongang/edx-platform,motion2015/a3,kmoocdev/edx-platform,shubhdev/edx-platform,doismellburning/edx-platform,pepeportela/edx-platform,adoosii/edx-platform,morenopc/edx-platform,morenopc/edx-platform,syjeon/new_edx,jazztpt/edx-platform,cselis86/edx-platform,zubair-arbi/edx-platform,shubhdev/edxOnBaadal,angelapper/edx-platform,10clouds/edx-platform,bigdatauniversity/edx-platform,ovnicraft/edx-platform,miptliot/edx-platform,rhndg/openedx,angelapper/edx-platform,IONISx/edx-platform,lduarte1991/edx-platform,a-parhom/edx-platform,rue89-tech/edx-platform,atsolakid/edx-platform,philanthropy-u/edx-platform,shubhdev/edxOnBaadal,bitifirefly/edx-platform,DNFcode/edx-platform,deepsrijit1105/edx-platform,xuxiao19910803/edx,pku9104038/edx-platform,adoosii/edx-platform,pdehaye/theming-edx-platform,synergeticsedx/deployment-wipro,franosincic/edx-platform,arifsetiawan/edx-platform,mcgachey/edx-platform,procangroup/edx-platform,mjg2203/edx-platform-seas,pku9104038/edx-platform,rue89-tech/edx-platform,cyanna/edx-platform,torchingloom/edx-platform,antonve/s4-project-mooc,msegado/edx-platform,vasyarv/edx-platform,edx/edx-platform,gsehub/edx-platform,CredoReference/edx-platform,kxliugang/edx-platform,kursitet/edx-platform,xingyepei/edx-platform,kursitet/edx-platform,appliedx/edx-platform,mushtaqak/edx-platform,MSOpenTech/edx-platform,openfun/edx-platform,jazztpt/edx-platform,alexthered/kienhoc-platform,pdehaye/theming-edx-platform,pelikanchik/edx-platform,rue89-tech/edx-platform,valtech-mooc/edx-platform,don-github/edx-platform,gsehub/edx-platform,fintech-circle/edx-platform,romain-li/edx-platform,edx-solutions/edx-platform,cyanna/edx-platform,nanolearningllc/edx-platform-cypress-2,vismartltd/edx-platform,kmoocdev2/edx-platform,inares/edx-platform,dcosentino/edx-platform,ahmadio/edx-platform,shashank971/edx-platform,kalebhartje/schoolboost,CredoReference/edx-platform,Ayub-Khan/edx-platform,Livit/Livit.Learn.EdX,4eek/edx-platform,mjirayu/sit_academy,Shrhawk/edx-platform,simbs/edx-platform,BehavioralInsightsTeam/edx-platform,mjirayu/sit_academy,mcgachey/edx-platform,hkawasaki/kawasaki-aio8-2,gsehub/edx-platform,hkawasaki/kawasaki-aio8-2,openfun/edx-platform,ubc/edx-platform,openfun/edx-platform,CredoReference/edx-platform,motion2015/a3,jazkarta/edx-platform,msegado/edx-platform,JioEducation/edx-platform,Kalyzee/edx-platform,bigdatauniversity/edx-platform,hmcmooc/muddx-platform,shurihell/testasia,PepperPD/edx-pepper-platform,mbareta/edx-platform-ft,nagyistoce/edx-platform,dkarakats/edx-platform,Softmotions/edx-platform,apigee/edx-platform,ahmadiga/min_edx,IONISx/edx-platform,zhenzhai/edx-platform,nanolearningllc/edx-platform-cypress-2,EduPepperPD/pepper2013,naresh21/synergetics-edx-platform,eemirtekin/edx-platform,knehez/edx-platform,rationalAgent/edx-platform-custom,antonve/s4-project-mooc,shurihell/testasia,valtech-mooc/edx-platform,mushtaqak/edx-platform,TeachAtTUM/edx-platform,y12uc231/edx-platform,xinjiguaike/edx-platform,EduPepperPDTesting/pepper2013-testing,zubair-arbi/edx-platform,dsajkl/123,synergeticsedx/deployment-wipro,wwj718/edx-platform,nttks/edx-platform,rhndg/openedx,playm2mboy/edx-platform,Unow/edx-platform,J861449197/edx-platform,jamiefolsom/edx-platform,WatanabeYasumasa/edx-platform,inares/edx-platform,MSOpenTech/edx-platform,olexiim/edx-platform,utecuy/edx-platform,inares/edx-platform,leansoft/edx-platform,mahendra-r/edx-platform,Ayub-Khan/edx-platform,DefyVentures/edx-platform,kamalx/edx-platform,mitocw/edx-platform,jazztpt/edx-platform,BehavioralInsightsTeam/edx-platform,jruiperezv/ANALYSE,iivic/BoiseStateX,iivic/BoiseStateX,eduNEXT/edx-platform,kmoocdev/edx-platform,fly19890211/edx-platform,procangroup/edx-platform,edx-solutions/edx-platform,beacloudgenius/edx-platform,nanolearning/edx-platform,nanolearning/edx-platform,yokose-ks/edx-platform,dsajkl/reqiop,y12uc231/edx-platform,prarthitm/edxplatform,longmen21/edx-platform,dkarakats/edx-platform,beni55/edx-platform,arbrandes/edx-platform,abdoosh00/edx-rtl-final,playm2mboy/edx-platform,ahmedaljazzar/edx-platform,marcore/edx-platform,JioEducation/edx-platform,ovnicraft/edx-platform,mjg2203/edx-platform-seas,raccoongang/edx-platform,CourseTalk/edx-platform,antoviaque/edx-platform,B-MOOC/edx-platform,Edraak/edx-platform,IITBinterns13/edx-platform-dev,benpatterson/edx-platform,IITBinterns13/edx-platform-dev,AkA84/edx-platform,CredoReference/edx-platform,RPI-OPENEDX/edx-platform,analyseuc3m/ANALYSE-v1,jamiefolsom/edx-platform,dsajkl/123,DefyVentures/edx-platform,alexthered/kienhoc-platform,BehavioralInsightsTeam/edx-platform,rationalAgent/edx-platform-custom,jbassen/edx-platform,leansoft/edx-platform,polimediaupv/edx-platform,itsjeyd/edx-platform,miptliot/edx-platform,jbassen/edx-platform,vasyarv/edx-platform,MakeHer/edx-platform,eemirtekin/edx-platform,nikolas/edx-platform,nanolearning/edx-platform,lduarte1991/edx-platform,benpatterson/edx-platform,msegado/edx-platform,jruiperezv/ANALYSE,sameetb-cuelogic/edx-platform-test,sameetb-cuelogic/edx-platform-test,antonve/s4-project-mooc,mahendra-r/edx-platform,bdero/edx-platform,stvstnfrd/edx-platform,Lektorium-LLC/edx-platform,raccoongang/edx-platform,nanolearningllc/edx-platform-cypress,bitifirefly/edx-platform,doganov/edx-platform,jswope00/griffinx,EduPepperPDTesting/pepper2013-testing,prarthitm/edxplatform,AkA84/edx-platform,edx/edx-platform,Softmotions/edx-platform,zubair-arbi/edx-platform,zadgroup/edx-platform,knehez/edx-platform,unicri/edx-platform,rhndg/openedx,tanmaykm/edx-platform,longmen21/edx-platform,vasyarv/edx-platform,waheedahmed/edx-platform,JioEducation/edx-platform,caesar2164/edx-platform,ferabra/edx-platform,jazkarta/edx-platform-for-isc,shubhdev/edx-platform,LearnEra/LearnEraPlaftform,dkarakats/edx-platform,vasyarv/edx-platform,raccoongang/edx-platform,iivic/BoiseStateX,shubhdev/edxOnBaadal,simbs/edx-platform,etzhou/edx-platform,jamesblunt/edx-platform,Ayub-Khan/edx-platform,franosincic/edx-platform,CourseTalk/edx-platform,cselis86/edx-platform,openfun/edx-platform,devs1991/test_edx_docmode,shabab12/edx-platform,bigdatauniversity/edx-platform,atsolakid/edx-platform,atsolakid/edx-platform,ZLLab-Mooc/edx-platform,bigdatauniversity/edx-platform,syjeon/new_edx,Livit/Livit.Learn.EdX,kxliugang/edx-platform,DNFcode/edx-platform,eemirtekin/edx-platform,waheedahmed/edx-platform,xingyepei/edx-platform,tiagochiavericosta/edx-platform,jonathan-beard/edx-platform,AkA84/edx-platform,cecep-edu/edx-platform,Semi-global/edx-platform,torchingloom/edx-platform,y12uc231/edx-platform,playm2mboy/edx-platform,shubhdev/edxOnBaadal,etzhou/edx-platform,ferabra/edx-platform,Unow/edx-platform,Kalyzee/edx-platform,Edraak/circleci-edx-platform,4eek/edx-platform,msegado/edx-platform,jelugbo/tundex,louyihua/edx-platform,ZLLab-Mooc/edx-platform,DefyVentures/edx-platform,iivic/BoiseStateX,don-github/edx-platform,DefyVentures/edx-platform,sameetb-cuelogic/edx-platform-test,ubc/edx-platform,xuxiao19910803/edx,yokose-ks/edx-platform,solashirai/edx-platform,chand3040/cloud_that,fly19890211/edx-platform,Edraak/circleci-edx-platform,doismellburning/edx-platform,mbareta/edx-platform-ft,kamalx/edx-platform,mahendra-r/edx-platform,zubair-arbi/edx-platform,devs1991/test_edx_docmode,ESOedX/edx-platform,torchingloom/edx-platform,hastexo/edx-platform,mushtaqak/edx-platform,vikas1885/test1,cpennington/edx-platform,eestay/edx-platform,OmarIthawi/edx-platform,dcosentino/edx-platform,ovnicraft/edx-platform,mtlchun/edx,jelugbo/tundex,y12uc231/edx-platform,synergeticsedx/deployment-wipro,doismellburning/edx-platform,J861449197/edx-platform,chauhanhardik/populo,pomegranited/edx-platform,tiagochiavericosta/edx-platform,martynovp/edx-platform,ampax/edx-platform-backup,SivilTaram/edx-platform,edx-solutions/edx-platform,AkA84/edx-platform,kmoocdev/edx-platform,jzoldak/edx-platform,marcore/edx-platform,andyzsf/edx,shubhdev/openedx,B-MOOC/edx-platform,caesar2164/edx-platform,romain-li/edx-platform,eduNEXT/edunext-platform,JCBarahona/edX,cselis86/edx-platform,IITBinterns13/edx-platform-dev,hamzehd/edx-platform,martynovp/edx-platform,xuxiao19910803/edx-platform,doismellburning/edx-platform,teltek/edx-platform,Unow/edx-platform,bdero/edx-platform,xuxiao19910803/edx-platform,chrisndodge/edx-platform,appsembler/edx-platform,xuxiao19910803/edx-platform,a-parhom/edx-platform,nanolearningllc/edx-platform-cypress,ampax/edx-platform-backup,kalebhartje/schoolboost,TsinghuaX/edx-platform,kmoocdev2/edx-platform,IONISx/edx-platform,wwj718/edx-platform,wwj718/ANALYSE,mjg2203/edx-platform-seas,ak2703/edx-platform,appliedx/edx-platform,mushtaqak/edx-platform,a-parhom/edx-platform,ampax/edx-platform-backup,appsembler/edx-platform,knehez/edx-platform,chand3040/cloud_that,apigee/edx-platform,wwj718/edx-platform,jbzdak/edx-platform,miptliot/edx-platform,jruiperezv/ANALYSE,jazkarta/edx-platform,PepperPD/edx-pepper-platform,cyanna/edx-platform,rationalAgent/edx-platform-custom,jazkarta/edx-platform-for-isc,10clouds/edx-platform,amir-qayyum-khan/edx-platform,kursitet/edx-platform,Stanford-Online/edx-platform,jzoldak/edx-platform,ahmadiga/min_edx,WatanabeYasumasa/edx-platform,stvstnfrd/edx-platform,rue89-tech/edx-platform,cognitiveclass/edx-platform,ahmedaljazzar/edx-platform,lduarte1991/edx-platform,a-parhom/edx-platform,caesar2164/edx-platform,ubc/edx-platform,valtech-mooc/edx-platform,jbassen/edx-platform,EduPepperPD/pepper2013,zadgroup/edx-platform,Semi-global/edx-platform,kalebhartje/schoolboost,jolyonb/edx-platform,utecuy/edx-platform,Lektorium-LLC/edx-platform,nikolas/edx-platform,IndonesiaX/edx-platform,chauhanhardik/populo_2,IONISx/edx-platform,ak2703/edx-platform,jazkarta/edx-platform,B-MOOC/edx-platform,wwj718/ANALYSE,mtlchun/edx,B-MOOC/edx-platform,nikolas/edx-platform,rismalrv/edx-platform,waheedahmed/edx-platform,unicri/edx-platform,martynovp/edx-platform,OmarIthawi/edx-platform,halvertoluke/edx-platform,iivic/BoiseStateX,xuxiao19910803/edx,naresh21/synergetics-edx-platform,EduPepperPDTesting/pepper2013-testing,morenopc/edx-platform,auferack08/edx-platform,J861449197/edx-platform,cognitiveclass/edx-platform,jbzdak/edx-platform,nanolearning/edx-platform,xinjiguaike/edx-platform,polimediaupv/edx-platform,appliedx/edx-platform,motion2015/a3,hamzehd/edx-platform,jjmiranda/edx-platform,itsjeyd/edx-platform,RPI-OPENEDX/edx-platform,JCBarahona/edX,DNFcode/edx-platform,jswope00/griffinx,xinjiguaike/edx-platform,mcgachey/edx-platform,andyzsf/edx,kursitet/edx-platform,nttks/jenkins-test,benpatterson/edx-platform,jbassen/edx-platform,nttks/edx-platform,auferack08/edx-platform,nagyistoce/edx-platform,jswope00/griffinx,Shrhawk/edx-platform,valtech-mooc/edx-platform,SivilTaram/edx-platform,leansoft/edx-platform,devs1991/test_edx_docmode,SravanthiSinha/edx-platform,cecep-edu/edx-platform,teltek/edx-platform,gsehub/edx-platform,gymnasium/edx-platform,peterm-itr/edx-platform,vikas1885/test1,rismalrv/edx-platform,Shrhawk/edx-platform,morpheby/levelup-by,kmoocdev/edx-platform,edry/edx-platform,jswope00/GAI,eduNEXT/edx-platform,nttks/jenkins-test,UOMx/edx-platform,nttks/jenkins-test,jazkarta/edx-platform-for-isc,bdero/edx-platform,zubair-arbi/edx-platform,appliedx/edx-platform,don-github/edx-platform,zhenzhai/edx-platform,motion2015/a3,prarthitm/edxplatform,rhndg/openedx,ferabra/edx-platform,Edraak/edx-platform,zerobatu/edx-platform,zerobatu/edx-platform,abdoosh00/edx-rtl-final,ahmadio/edx-platform,devs1991/test_edx_docmode,edx/edx-platform,martynovp/edx-platform,rismalrv/edx-platform,Semi-global/edx-platform,halvertoluke/edx-platform,Softmotions/edx-platform,IndonesiaX/edx-platform,ak2703/edx-platform,praveen-pal/edx-platform,chauhanhardik/populo,sudheerchintala/LearnEraPlatForm,IITBinterns13/edx-platform-dev,jazztpt/edx-platform,RPI-OPENEDX/edx-platform,motion2015/a3,antonve/s4-project-mooc,antoviaque/edx-platform,abdoosh00/edx-rtl-final,shubhdev/openedx,chrisndodge/edx-platform,JCBarahona/edX,ahmadiga/min_edx,sudheerchintala/LearnEraPlatForm,hamzehd/edx-platform,deepsrijit1105/edx-platform,chand3040/cloud_that,shabab12/edx-platform,lduarte1991/edx-platform,jonathan-beard/edx-platform,UXE/local-edx,Edraak/edraak-platform,chudaol/edx-platform,MSOpenTech/edx-platform,nagyistoce/edx-platform,amir-qayyum-khan/edx-platform,waheedahmed/edx-platform,mushtaqak/edx-platform,Kalyzee/edx-platform,pku9104038/edx-platform,stvstnfrd/edx-platform,dsajkl/reqiop,ampax/edx-platform,unicri/edx-platform,Softmotions/edx-platform,msegado/edx-platform,philanthropy-u/edx-platform,abdoosh00/edraak,eestay/edx-platform,jzoldak/edx-platform,naresh21/synergetics-edx-platform,chudaol/edx-platform,hamzehd/edx-platform,TsinghuaX/edx-platform,motion2015/edx-platform,tiagochiavericosta/edx-platform,ahmedaljazzar/edx-platform,eemirtekin/edx-platform,solashirai/edx-platform,Kalyzee/edx-platform,IndonesiaX/edx-platform,chrisndodge/edx-platform,auferack08/edx-platform,torchingloom/edx-platform,EDUlib/edx-platform,stvstnfrd/edx-platform,LearnEra/LearnEraPlaftform,WatanabeYasumasa/edx-platform,vismartltd/edx-platform,sudheerchintala/LearnEraPlatForm,nttks/jenkins-test,hastexo/edx-platform,devs1991/test_edx_docmode,Edraak/edx-platform,zhenzhai/edx-platform,CourseTalk/edx-platform,pomegranited/edx-platform,cpennington/edx-platform,Lektorium-LLC/edx-platform,praveen-pal/edx-platform,yokose-ks/edx-platform,IndonesiaX/edx-platform,zerobatu/edx-platform,jswope00/griffinx,hkawasaki/kawasaki-aio8-1,Edraak/circleci-edx-platform,abdoosh00/edraak,andyzsf/edx,dkarakats/edx-platform,EDUlib/edx-platform,xuxiao19910803/edx-platform,CourseTalk/edx-platform,gymnasium/edx-platform,dcosentino/edx-platform,LICEF/edx-platform,hmcmooc/muddx-platform,TsinghuaX/edx-platform,UOMx/edx-platform,zofuthan/edx-platform,leansoft/edx-platform,Semi-global/edx-platform,jonathan-beard/edx-platform,SivilTaram/edx-platform,kalebhartje/schoolboost,vismartltd/edx-platform,pepeportela/edx-platform,nttks/edx-platform,UXE/local-edx,nagyistoce/edx-platform,MSOpenTech/edx-platform,kamalx/edx-platform,don-github/edx-platform,jolyonb/edx-platform,jelugbo/tundex,hkawasaki/kawasaki-aio8-0,jswope00/GAI,abdoosh00/edx-rtl-final,franosincic/edx-platform,appliedx/edx-platform,vikas1885/test1,MakeHer/edx-platform,MakeHer/edx-platform,amir-qayyum-khan/edx-platform,PepperPD/edx-pepper-platform,mitocw/edx-platform,ovnicraft/edx-platform,alu042/edx-platform,J861449197/edx-platform,jbassen/edx-platform,beni55/edx-platform,arifsetiawan/edx-platform,SivilTaram/edx-platform,procangroup/edx-platform,playm2mboy/edx-platform,pelikanchik/edx-platform,pelikanchik/edx-platform,adoosii/edx-platform,romain-li/edx-platform,teltek/edx-platform,LICEF/edx-platform,MakeHer/edx-platform,ZLLab-Mooc/edx-platform,mjirayu/sit_academy,morenopc/edx-platform,hkawasaki/kawasaki-aio8-0,carsongee/edx-platform,tanmaykm/edx-platform,edx/edx-platform,benpatterson/edx-platform,hmcmooc/muddx-platform,ahmadio/edx-platform,y12uc231/edx-platform,vasyarv/edx-platform,vismartltd/edx-platform,IndonesiaX/edx-platform,jazkarta/edx-platform,Stanford-Online/edx-platform,morpheby/levelup-by,ak2703/edx-platform,RPI-OPENEDX/edx-platform,utecuy/edx-platform,zofuthan/edx-platform,arifsetiawan/edx-platform,pku9104038/edx-platform,doganov/edx-platform,simbs/edx-platform,carsongee/edx-platform,yokose-ks/edx-platform,itsjeyd/edx-platform,Edraak/circleci-edx-platform,ahmadio/edx-platform,jazkarta/edx-platform-for-isc,peterm-itr/edx-platform,eemirtekin/edx-platform,Edraak/edraak-platform,alu042/edx-platform,defance/edx-platform,BehavioralInsightsTeam/edx-platform,cecep-edu/edx-platform,sameetb-cuelogic/edx-platform-test,MSOpenTech/edx-platform,Stanford-Online/edx-platform,cselis86/edx-platform,valtech-mooc/edx-platform,hkawasaki/kawasaki-aio8-0,kmoocdev2/edx-platform,syjeon/new_edx,LearnEra/LearnEraPlaftform,beacloudgenius/edx-platform,ZLLab-Mooc/edx-platform,bigdatauniversity/edx-platform,louyihua/edx-platform,shashank971/edx-platform,apigee/edx-platform,wwj718/ANALYSE,mjirayu/sit_academy,carsongee/edx-platform,ferabra/edx-platform,wwj718/ANALYSE,zadgroup/edx-platform,devs1991/test_edx_docmode,simbs/edx-platform,jamesblunt/edx-platform,B-MOOC/edx-platform,kmoocdev/edx-platform,jazkarta/edx-platform,motion2015/edx-platform,nikolas/edx-platform,IONISx/edx-platform,jolyonb/edx-platform,Shrhawk/edx-platform,peterm-itr/edx-platform,halvertoluke/edx-platform,olexiim/edx-platform,proversity-org/edx-platform,marcore/edx-platform,polimediaupv/edx-platform,analyseuc3m/ANALYSE-v1,hamzehd/edx-platform,shashank971/edx-platform,beacloudgenius/edx-platform,mbareta/edx-platform-ft,xingyepei/edx-platform,nagyistoce/edx-platform,mitocw/edx-platform,nttks/edx-platform,edry/edx-platform,etzhou/edx-platform,jonathan-beard/edx-platform,vikas1885/test1,jjmiranda/edx-platform,jbzdak/edx-platform,longmen21/edx-platform,vikas1885/test1,inares/edx-platform,yokose-ks/edx-platform,zerobatu/edx-platform,arifsetiawan/edx-platform,motion2015/edx-platform,ak2703/edx-platform,atsolakid/edx-platform,kxliugang/edx-platform,jjmiranda/edx-platform,ahmadiga/min_edx,kmoocdev2/edx-platform,shashank971/edx-platform,Livit/Livit.Learn.EdX,jamesblunt/edx-platform,ubc/edx-platform,DNFcode/edx-platform,10clouds/edx-platform,eduNEXT/edunext-platform,antonve/s4-project-mooc,zofuthan/edx-platform,shashank971/edx-platform,eduNEXT/edunext-platform,nttks/jenkins-test,adoosii/edx-platform,rhndg/openedx,dsajkl/123,leansoft/edx-platform,arifsetiawan/edx-platform,kalebhartje/schoolboost,EduPepperPDTesting/pepper2013-testing,edry/edx-platform,arbrandes/edx-platform,TsinghuaX/edx-platform,doismellburning/edx-platform,syjeon/new_edx,shurihell/testasia,arbrandes/edx-platform,Livit/Livit.Learn.EdX,UOMx/edx-platform,jbzdak/edx-platform,benpatterson/edx-platform,xuxiao19910803/edx,kmoocdev2/edx-platform,jswope00/GAI,jbzdak/edx-platform,marcore/edx-platform,cselis86/edx-platform,ESOedX/edx-platform,nanolearningllc/edx-platform-cypress,peterm-itr/edx-platform,cognitiveclass/edx-platform,hkawasaki/kawasaki-aio8-2,halvertoluke/edx-platform,cpennington/edx-platform,Edraak/edx-platform,gymnasium/edx-platform,Unow/edx-platform,Lektorium-LLC/edx-platform,wwj718/edx-platform,chauhanhardik/populo,mtlchun/edx,appsembler/edx-platform,Kalyzee/edx-platform,zofuthan/edx-platform,EduPepperPDTesting/pepper2013-testing,teltek/edx-platform,pabloborrego93/edx-platform,apigee/edx-platform,jamesblunt/edx-platform,rue89-tech/edx-platform,sameetb-cuelogic/edx-platform-test,kxliugang/edx-platform,DefyVentures/edx-platform,jamiefolsom/edx-platform,proversity-org/edx-platform,zadgroup/edx-platform,bitifirefly/edx-platform,fintech-circle/edx-platform,solashirai/edx-platform,defance/edx-platform,nikolas/edx-platform,chauhanhardik/populo_2,ovnicraft/edx-platform,Stanford-Online/edx-platform,chudaol/edx-platform,ahmedaljazzar/edx-platform,tanmaykm/edx-platform,J861449197/edx-platform,cecep-edu/edx-platform,beacloudgenius/edx-platform,zadgroup/edx-platform,JCBarahona/edX,dsajkl/reqiop,Edraak/edx-platform,PepperPD/edx-pepper-platform,carsongee/edx-platform,dcosentino/edx-platform,nanolearningllc/edx-platform-cypress-2,Semi-global/edx-platform,eestay/edx-platform,eduNEXT/edx-platform,openfun/edx-platform,Softmotions/edx-platform,eduNEXT/edunext-platform,Shrhawk/edx-platform,ampax/edx-platform,Endika/edx-platform,proversity-org/edx-platform,devs1991/test_edx_docmode,jelugbo/tundex,cyanna/edx-platform,romain-li/edx-platform,bdero/edx-platform,knehez/edx-platform,longmen21/edx-platform,jjmiranda/edx-platform,beni55/edx-platform,LICEF/edx-platform,hkawasaki/kawasaki-aio8-0,morpheby/levelup-by,ZLLab-Mooc/edx-platform,jamesblunt/edx-platform,ESOedX/edx-platform,zhenzhai/edx-platform,SravanthiSinha/edx-platform,edx-solutions/edx-platform,UOMx/edx-platform,chauhanhardik/populo_2,shabab12/edx-platform,praveen-pal/edx-platform,olexiim/edx-platform,deepsrijit1105/edx-platform,jolyonb/edx-platform,wwj718/ANALYSE,ahmadio/edx-platform,antoviaque/edx-platform,hkawasaki/kawasaki-aio8-1,fly19890211/edx-platform,nanolearningllc/edx-platform-cypress,polimediaupv/edx-platform,etzhou/edx-platform,JioEducation/edx-platform,pabloborrego93/edx-platform,Endika/edx-platform,UXE/local-edx,cecep-edu/edx-platform,xinjiguaike/edx-platform,motion2015/edx-platform,LearnEra/LearnEraPlaftform,DNFcode/edx-platform,xuxiao19910803/edx,analyseuc3m/ANALYSE-v1,mbareta/edx-platform-ft,jazztpt/edx-platform,jelugbo/tundex,mtlchun/edx,martynovp/edx-platform,shubhdev/edx-platform,AkA84/edx-platform,shabab12/edx-platform,nanolearningllc/edx-platform-cypress-2,chauhanhardik/populo,praveen-pal/edx-platform,philanthropy-u/edx-platform,mtlchun/edx,defance/edx-platform,fintech-circle/edx-platform,kamalx/edx-platform,mjirayu/sit_academy,franosincic/edx-platform,zhenzhai/edx-platform,hmcmooc/muddx-platform,caesar2164/edx-platform,hkawasaki/kawasaki-aio8-1,cyanna/edx-platform,ferabra/edx-platform,jruiperezv/ANALYSE,jamiefolsom/edx-platform,jonathan-beard/edx-platform,nanolearningllc/edx-platform-cypress-2,eestay/edx-platform,chand3040/cloud_that,SravanthiSinha/edx-platform,dkarakats/edx-platform,halvertoluke/edx-platform,romain-li/edx-platform,shubhdev/openedx,EDUlib/edx-platform,Endika/edx-platform,dcosentino/edx-platform,edry/edx-platform,chauhanhardik/populo,rismalrv/edx-platform,chand3040/cloud_that,jruiperezv/ANALYSE,hastexo/edx-platform,rismalrv/edx-platform,alu042/edx-platform,devs1991/test_edx_docmode,louyihua/edx-platform,LICEF/edx-platform,andyzsf/edx,alexthered/kienhoc-platform,knehez/edx-platform,MakeHer/edx-platform,xingyepei/edx-platform,chauhanhardik/populo_2,louyihua/edx-platform,nanolearningllc/edx-platform-cypress,gymnasium/edx-platform,cognitiveclass/edx-platform,beni55/edx-platform,xinjiguaike/edx-platform,SravanthiSinha/edx-platform,Endika/edx-platform,mjg2203/edx-platform-seas,TeachAtTUM/edx-platform,shubhdev/edx-platform,ESOedX/edx-platform,playm2mboy/edx-platform,OmarIthawi/edx-platform,shurihell/testasia,EDUlib/edx-platform,beacloudgenius/edx-platform,olexiim/edx-platform,solashirai/edx-platform,LICEF/edx-platform,kursitet/edx-platform,fintech-circle/edx-platform,EduPepperPD/pepper2013,morenopc/edx-platform,chudaol/edx-platform,unicri/edx-platform,mahendra-r/edx-platform,shubhdev/edx-platform,rationalAgent/edx-platform-custom,Ayub-Khan/edx-platform,doganov/edx-platform,sudheerchintala/LearnEraPlatForm,nttks/edx-platform,dsajkl/123,bitifirefly/edx-platform,auferack08/edx-platform,alu042/edx-platform,xuxiao19910803/edx-platform,jswope00/griffinx,jamiefolsom/edx-platform,pdehaye/theming-edx-platform,chudaol/edx-platform,eestay/edx-platform,chauhanhardik/populo_2,10clouds/edx-platform,polimediaupv/edx-platform,edry/edx-platform,waheedahmed/edx-platform,shubhdev/openedx,etzhou/edx-platform,Edraak/edraak-platform,rationalAgent/edx-platform-custom,unicri/edx-platform,mahendra-r/edx-platform,4eek/edx-platform,proversity-org/edx-platform,4eek/edx-platform,shubhdev/openedx,analyseuc3m/ANALYSE-v1,dsajkl/reqiop,miptliot/edx-platform,PepperPD/edx-pepper-platform,chrisndodge/edx-platform,WatanabeYasumasa/edx-platform,zofuthan/edx-platform,jswope00/GAI,pomegranited/edx-platform,pabloborrego93/edx-platform,amir-qayyum-khan/edx-platform,JCBarahona/edX,utecuy/edx-platform,abdoosh00/edraak,solashirai/edx-platform,Edraak/edraak-platform,EduPepperPD/pepper2013,cognitiveclass/edx-platform,vismartltd/edx-platform,ahmadiga/min_edx,appsembler/edx-platform,zerobatu/edx-platform,fly19890211/edx-platform,hkawasaki/kawasaki-aio8-1,olexiim/edx-platform,ampax/edx-platform-backup,tiagochiavericosta/edx-platform,pomegranited/edx-platform,ampax/edx-platform,kxliugang/edx-platform,wwj718/edx-platform,alexthered/kienhoc-platform,hkawasaki/kawasaki-aio8-2,jzoldak/edx-platform,torchingloom/edx-platform,TeachAtTUM/edx-platform,itsjeyd/edx-platform,pdehaye/theming-edx-platform,abdoosh00/edraak,fly19890211/edx-platform,morpheby/levelup-by,pepeportela/edx-platform,synergeticsedx/deployment-wipro,procangroup/edx-platform,defance/edx-platform,deepsrijit1105/edx-platform,atsolakid/edx-platform,doganov/edx-platform,alexthered/kienhoc-platform,xingyepei/edx-platform,doganov/edx-platform,angelapper/edx-platform,UXE/local-edx,utecuy/edx-platform,tanmaykm/edx-platform,motion2015/edx-platform,hastexo/edx-platform,nanolearning/edx-platform
text
## Code Before: -e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev -e common/lib/capa -e common/lib/xmodule ## Instruction: Switch django-wiki dependency to a clone in our org so that local changes are easier to make ## Code After: -e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/MITx/django-wiki.git@e2e84558#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_custom-dev -e common/lib/capa -e common/lib/xmodule