commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201 values | license stringclasses 13 values | repos stringlengths 6 116k | config stringclasses 201 values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7dad13ee581bf549ee32ee6fb64b5ce908338df7 | app/css/annotation-body.css | app/css/annotation-body.css | /* This isn't strictly BassCSS here, but it's the only easy way to render the
* different elements within an annotation body */
.annotation-body pre {
padding: 10px;
margin-bottom: 10px;
}
.annotation-body details summary {
outline: none !important;
}
.annotation-body details[open] summary {
margin-bottom: 10px;
}
| /* This isn't strictly BassCSS here, but it's the only easy way to render the
* different elements within an annotation body */
.annotation-body pre {
padding: 10px;
margin-bottom: 10px;
}
.annotation-body details summary {
cursor: pointer;
}
.annotation-body details[open] summary {
margin-bottom: 10px;
}
| Add pointer style to annotation summary | Add pointer style to annotation summary
| CSS | mit | buildkite/frontend,buildkite/frontend | css | ## Code Before:
/* This isn't strictly BassCSS here, but it's the only easy way to render the
* different elements within an annotation body */
.annotation-body pre {
padding: 10px;
margin-bottom: 10px;
}
.annotation-body details summary {
outline: none !important;
}
.annotation-body details[open] summary {
margin-bottom: 10px;
}
## Instruction:
Add pointer style to annotation summary
## Code After:
/* This isn't strictly BassCSS here, but it's the only easy way to render the
* different elements within an annotation body */
.annotation-body pre {
padding: 10px;
margin-bottom: 10px;
}
.annotation-body details summary {
cursor: pointer;
}
.annotation-body details[open] summary {
margin-bottom: 10px;
}
| /* This isn't strictly BassCSS here, but it's the only easy way to render the
* different elements within an annotation body */
.annotation-body pre {
padding: 10px;
margin-bottom: 10px;
}
.annotation-body details summary {
- outline: none !important;
+ cursor: pointer;
}
.annotation-body details[open] summary {
margin-bottom: 10px;
} | 2 | 0.133333 | 1 | 1 |
46566c568b20a037006cf7bbebdc70353e163bb2 | paintings/processors.py | paintings/processors.py | from random import randrange
from paintings.models import Gallery, Painting
def get_Galleries(request):
return ( {'galleries' : Gallery.objects.all()} )
def get_random_canvasOilPainting(request):
paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
rand_painting = paintings[ randrange( paintings.__len__() ) ]
return ( {'rand_painting' : rand_painting} )
| from random import randrange
from paintings.models import Gallery, Painting
def get_Galleries(request):
return ( {'galleries' : Gallery.objects.all()} )
def get_random_canvasOilPainting(request):
try:
paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
rand_painting = paintings[ randrange( paintings.__len__() ) ]
except:
rand_painting = None
return ( {'rand_painting' : rand_painting} )
| Fix bug with empty db | Fix bug with empty db
| Python | mit | hombit/olgart,hombit/olgart,hombit/olgart,hombit/olgart | python | ## Code Before:
from random import randrange
from paintings.models import Gallery, Painting
def get_Galleries(request):
return ( {'galleries' : Gallery.objects.all()} )
def get_random_canvasOilPainting(request):
paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
rand_painting = paintings[ randrange( paintings.__len__() ) ]
return ( {'rand_painting' : rand_painting} )
## Instruction:
Fix bug with empty db
## Code After:
from random import randrange
from paintings.models import Gallery, Painting
def get_Galleries(request):
return ( {'galleries' : Gallery.objects.all()} )
def get_random_canvasOilPainting(request):
try:
paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
rand_painting = paintings[ randrange( paintings.__len__() ) ]
except:
rand_painting = None
return ( {'rand_painting' : rand_painting} )
| from random import randrange
from paintings.models import Gallery, Painting
def get_Galleries(request):
return ( {'galleries' : Gallery.objects.all()} )
def get_random_canvasOilPainting(request):
+ try:
- paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
+ paintings = Painting.objects.filter(surface='canvas', material='oil').extra(where=['width > height'])
? +
- rand_painting = paintings[ randrange( paintings.__len__() ) ]
+ rand_painting = paintings[ randrange( paintings.__len__() ) ]
? +
+ except:
+ rand_painting = None
return ( {'rand_painting' : rand_painting} ) | 7 | 0.538462 | 5 | 2 |
fc541432a0c30859e631554301fc21fd584bb4f3 | .travis.yml | .travis.yml | language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install --use-mirrors -q mock nose PyHamcrest
- python setup.py -q install
script:
- nosetests
- behave -f progress --junit features/
- behave -f progress --junit --tags=~@xfail tools/test-features/
- behave -f progress --junit issue.features/
| language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install --use-mirrors -q mock nose PyHamcrest
- python setup.py -q install
script:
- nosetests
- behave -f progress --junit --tags=~@xfail features/
- behave -f progress --junit --tags=~@xfail tools/test-features/
- behave -f progress --junit --tags=~@xfail issue.features/
| Disable tests tagged w/ @xfail from test run. Maybe needed temporarily to have time to fix some issues. | Disable tests tagged w/ @xfail from test run. Maybe needed temporarily to have time to fix some issues.
| YAML | bsd-2-clause | hugeinc/behave-parallel | yaml | ## Code Before:
language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install --use-mirrors -q mock nose PyHamcrest
- python setup.py -q install
script:
- nosetests
- behave -f progress --junit features/
- behave -f progress --junit --tags=~@xfail tools/test-features/
- behave -f progress --junit issue.features/
## Instruction:
Disable tests tagged w/ @xfail from test run. Maybe needed temporarily to have time to fix some issues.
## Code After:
language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install --use-mirrors -q mock nose PyHamcrest
- python setup.py -q install
script:
- nosetests
- behave -f progress --junit --tags=~@xfail features/
- behave -f progress --junit --tags=~@xfail tools/test-features/
- behave -f progress --junit --tags=~@xfail issue.features/
| language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install --use-mirrors -q mock nose PyHamcrest
- python setup.py -q install
script:
- nosetests
- - behave -f progress --junit features/
+ - behave -f progress --junit --tags=~@xfail features/
? +++++++++++++++
- behave -f progress --junit --tags=~@xfail tools/test-features/
- - behave -f progress --junit issue.features/
+ - behave -f progress --junit --tags=~@xfail issue.features/
? +++++++++++++++
| 4 | 0.285714 | 2 | 2 |
5bc44c21b7ea4e4ed9b338e6f222de41a4ce9641 | .github/workflows/macos.yml | .github/workflows/macos.yml | name: MacOS
on: [push]
jobs:
MacOS:
timeout-minutes: 15
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set environment
run: |
echo ::set-env name=GRABBER_VERSION::nightly
echo ::set-env name=GRABBER_IS_NIGHTLY::1
echo ::set-env name=PLATFORM_NAME::x64
echo ::set-env name=OPENSSL_ROOT_DIR::/usr/local/opt/openssl/
- name: Install packages
run: pip3 install opencv-python opencv-python-headless
- name: Install Qt
uses: jurplel/install-qt-action@v2.7.2
with:
version: 5.12.6
- name: Create build dir
run: mkdir build
- name: Configure
working-directory: build
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%"
- name: Compile
working-directory: build
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
- name: Test
working-directory: src
run: ../build/tests/tests
- name: Generate package
run: ./scripts/package-mac.sh
| name: MacOS
on: [push]
jobs:
MacOS:
timeout-minutes: 15
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set environment
run: |
echo ::set-env name=GRABBER_VERSION::nightly
echo ::set-env name=GRABBER_IS_NIGHTLY::1
echo ::set-env name=PLATFORM_NAME::x64
echo ::set-env name=OPENSSL_ROOT_DIR::/usr/local/opt/openssl/
- name: Install Qt
uses: jurplel/install-qt-action@v2.7.2
with:
version: 5.12.6
- name: Create build dir
run: mkdir build
- name: Configure
working-directory: build
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%"
- name: Compile
working-directory: build
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
- name: Test
working-directory: src
run: ../build/tests/tests
- name: Generate package
run: ./scripts/package-mac.sh
| Stop installing OpenCV on macOS github actions | Stop installing OpenCV on macOS github actions
| YAML | apache-2.0 | Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber | yaml | ## Code Before:
name: MacOS
on: [push]
jobs:
MacOS:
timeout-minutes: 15
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set environment
run: |
echo ::set-env name=GRABBER_VERSION::nightly
echo ::set-env name=GRABBER_IS_NIGHTLY::1
echo ::set-env name=PLATFORM_NAME::x64
echo ::set-env name=OPENSSL_ROOT_DIR::/usr/local/opt/openssl/
- name: Install packages
run: pip3 install opencv-python opencv-python-headless
- name: Install Qt
uses: jurplel/install-qt-action@v2.7.2
with:
version: 5.12.6
- name: Create build dir
run: mkdir build
- name: Configure
working-directory: build
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%"
- name: Compile
working-directory: build
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
- name: Test
working-directory: src
run: ../build/tests/tests
- name: Generate package
run: ./scripts/package-mac.sh
## Instruction:
Stop installing OpenCV on macOS github actions
## Code After:
name: MacOS
on: [push]
jobs:
MacOS:
timeout-minutes: 15
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set environment
run: |
echo ::set-env name=GRABBER_VERSION::nightly
echo ::set-env name=GRABBER_IS_NIGHTLY::1
echo ::set-env name=PLATFORM_NAME::x64
echo ::set-env name=OPENSSL_ROOT_DIR::/usr/local/opt/openssl/
- name: Install Qt
uses: jurplel/install-qt-action@v2.7.2
with:
version: 5.12.6
- name: Create build dir
run: mkdir build
- name: Configure
working-directory: build
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%"
- name: Compile
working-directory: build
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
- name: Test
working-directory: src
run: ../build/tests/tests
- name: Generate package
run: ./scripts/package-mac.sh
| name: MacOS
on: [push]
jobs:
MacOS:
timeout-minutes: 15
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- name: Set environment
run: |
echo ::set-env name=GRABBER_VERSION::nightly
echo ::set-env name=GRABBER_IS_NIGHTLY::1
echo ::set-env name=PLATFORM_NAME::x64
echo ::set-env name=OPENSSL_ROOT_DIR::/usr/local/opt/openssl/
-
- - name: Install packages
- run: pip3 install opencv-python opencv-python-headless
- name: Install Qt
uses: jurplel/install-qt-action@v2.7.2
with:
version: 5.12.6
- name: Create build dir
run: mkdir build
- name: Configure
working-directory: build
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%GITHUB_SHA%" -DVERSION="%GRABBER_VERSION%"
- name: Compile
working-directory: build
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
- name: Test
working-directory: src
run: ../build/tests/tests
- name: Generate package
run: ./scripts/package-mac.sh | 3 | 0.0625 | 0 | 3 |
f77f4608a86fc275d05a2e6748da58258525678d | modules/govuk_jenkins/templates/jobs/launch_vms_licensify.yaml.erb | modules/govuk_jenkins/templates/jobs/launch_vms_licensify.yaml.erb | ---
- scm:
name: govuk-provisioning_Launch_VMs_Licensify
scm:
- git:
url: git@github.gds:gds/govuk-provisioning.git
branches:
- master
- job:
name: Launch_VMs_Licensify
display-name: Launch VMs for Licensify
project-type: freestyle
description: |
Job to launch Licensify virtual machines in <%= @environment -%>.
If you are running this to bring up a new machine you will need to be signing certs on the puppetmaster
with `fab <%= @environment -%> puppet.sign_certificates`
properties:
- github:
url: https://github.gds/gds/alphagov-deployment/
- inject:
properties-content: |
VCLOUD_ORG=<%= @vcloud_properties_licensify['organisation'] %>
VCLOUD_ENV=<%= @vcloud_properties_licensify['environment'] %>
VCLOUD_USERNAME=${USERNAME}@${VCLOUD_ORG}
VCLOUD_HOST=<%= @vcloud_properties['host'] %>
scm:
- govuk-provisioning_Launch_VMs_Licensify
builders:
- shell: |
./vcloud-launcher/jenkins.sh
parameters:
- string:
name: USERNAME
description: your vcloud username
default: false
- string:
name: CONFIG_GLOB
description: glob for config files.
default: "licensify.yaml"
- password:
name: VCLOUD_PASSWORD
description: your vcloud password
default: false
| ---
- scm:
name: govuk-provisioning_Launch_VMs_Licensify
scm:
- git:
url: git@github.gds:gds/govuk-provisioning.git
branches:
- master
- job:
name: Launch_VMs_Licensify
display-name: Launch VMs for Licensify
project-type: freestyle
description: |
Job to launch Licensify virtual machines in <%= @environment -%>.
If you are running this to bring up a new machine you will need to be signing certs on the puppetmaster
with `fab <%= @environment -%> puppet.sign_certificates`
properties:
- github:
url: https://github.gds/gds/alphagov-deployment/
- inject:
properties-content: |
VCLOUD_ORG=<%= @vcloud_properties_licensify['organisation'] %>
VCLOUD_ENV=<%= @vcloud_properties_licensify['environment'] %>
VCLOUD_USERNAME=${USERNAME}@${VCLOUD_ORG}
VCLOUD_HOST=<%= @vcloud_properties_licensify['host'] %>
scm:
- govuk-provisioning_Launch_VMs_Licensify
builders:
- shell: |
./vcloud-launcher/jenkins.sh
parameters:
- string:
name: USERNAME
description: your vcloud username
default: false
- string:
name: CONFIG_GLOB
description: glob for config files.
default: "licensify.yaml"
- password:
name: VCLOUD_PASSWORD
description: your vcloud password
default: false
| Fix hostname for building licensing machines | Fix hostname for building licensing machines
| HTML+ERB | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | html+erb | ## Code Before:
---
- scm:
name: govuk-provisioning_Launch_VMs_Licensify
scm:
- git:
url: git@github.gds:gds/govuk-provisioning.git
branches:
- master
- job:
name: Launch_VMs_Licensify
display-name: Launch VMs for Licensify
project-type: freestyle
description: |
Job to launch Licensify virtual machines in <%= @environment -%>.
If you are running this to bring up a new machine you will need to be signing certs on the puppetmaster
with `fab <%= @environment -%> puppet.sign_certificates`
properties:
- github:
url: https://github.gds/gds/alphagov-deployment/
- inject:
properties-content: |
VCLOUD_ORG=<%= @vcloud_properties_licensify['organisation'] %>
VCLOUD_ENV=<%= @vcloud_properties_licensify['environment'] %>
VCLOUD_USERNAME=${USERNAME}@${VCLOUD_ORG}
VCLOUD_HOST=<%= @vcloud_properties['host'] %>
scm:
- govuk-provisioning_Launch_VMs_Licensify
builders:
- shell: |
./vcloud-launcher/jenkins.sh
parameters:
- string:
name: USERNAME
description: your vcloud username
default: false
- string:
name: CONFIG_GLOB
description: glob for config files.
default: "licensify.yaml"
- password:
name: VCLOUD_PASSWORD
description: your vcloud password
default: false
## Instruction:
Fix hostname for building licensing machines
## Code After:
---
- scm:
name: govuk-provisioning_Launch_VMs_Licensify
scm:
- git:
url: git@github.gds:gds/govuk-provisioning.git
branches:
- master
- job:
name: Launch_VMs_Licensify
display-name: Launch VMs for Licensify
project-type: freestyle
description: |
Job to launch Licensify virtual machines in <%= @environment -%>.
If you are running this to bring up a new machine you will need to be signing certs on the puppetmaster
with `fab <%= @environment -%> puppet.sign_certificates`
properties:
- github:
url: https://github.gds/gds/alphagov-deployment/
- inject:
properties-content: |
VCLOUD_ORG=<%= @vcloud_properties_licensify['organisation'] %>
VCLOUD_ENV=<%= @vcloud_properties_licensify['environment'] %>
VCLOUD_USERNAME=${USERNAME}@${VCLOUD_ORG}
VCLOUD_HOST=<%= @vcloud_properties_licensify['host'] %>
scm:
- govuk-provisioning_Launch_VMs_Licensify
builders:
- shell: |
./vcloud-launcher/jenkins.sh
parameters:
- string:
name: USERNAME
description: your vcloud username
default: false
- string:
name: CONFIG_GLOB
description: glob for config files.
default: "licensify.yaml"
- password:
name: VCLOUD_PASSWORD
description: your vcloud password
default: false
| ---
- scm:
name: govuk-provisioning_Launch_VMs_Licensify
scm:
- git:
url: git@github.gds:gds/govuk-provisioning.git
branches:
- master
- job:
name: Launch_VMs_Licensify
display-name: Launch VMs for Licensify
project-type: freestyle
description: |
Job to launch Licensify virtual machines in <%= @environment -%>.
If you are running this to bring up a new machine you will need to be signing certs on the puppetmaster
with `fab <%= @environment -%> puppet.sign_certificates`
properties:
- github:
url: https://github.gds/gds/alphagov-deployment/
- inject:
properties-content: |
VCLOUD_ORG=<%= @vcloud_properties_licensify['organisation'] %>
VCLOUD_ENV=<%= @vcloud_properties_licensify['environment'] %>
VCLOUD_USERNAME=${USERNAME}@${VCLOUD_ORG}
- VCLOUD_HOST=<%= @vcloud_properties['host'] %>
+ VCLOUD_HOST=<%= @vcloud_properties_licensify['host'] %>
? ++++++++++
scm:
- govuk-provisioning_Launch_VMs_Licensify
builders:
- shell: |
./vcloud-launcher/jenkins.sh
parameters:
- string:
name: USERNAME
description: your vcloud username
default: false
- string:
name: CONFIG_GLOB
description: glob for config files.
default: "licensify.yaml"
- password:
name: VCLOUD_PASSWORD
description: your vcloud password
default: false | 2 | 0.046512 | 1 | 1 |
b456df51ac46a2b56cdb0a33b51bf921f144ecd3 | install.conf.yaml | install.conf.yaml | - defaults:
link:
relink: true
relative: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.bash_profile: bash/bash_profile
~/.bashrc: bash/bashrc
~/.gitconfig: gitconfig
~/.inputrc: inputrc
~/.liquidpromptrc: bash/liquidpromptrc
~/.tmux.conf: tmux.conf
~/.vim: vim
~/.vimrc: vimrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
| - defaults:
link:
relink: true
relative: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.bash_profile: bash/bash_profile
~/.bashrc: bash/bashrc
~/.gitconfig: gitconfig
~/.inputrc: inputrc
~/.liquidpromptrc: bash/liquidpromptrc
~/.tmux.conf: tmux.conf
~/.vim: vim
~/.vimrc: vimrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
- mkdir -p -m 0700 ~/tmp/vim
| Create ~/tmp in dotbot setup | Create ~/tmp in dotbot setup
| YAML | unlicense | akselsjogren/dotfiles,akselsjogren/dotfiles,akselsjogren/dotfiles | yaml | ## Code Before:
- defaults:
link:
relink: true
relative: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.bash_profile: bash/bash_profile
~/.bashrc: bash/bashrc
~/.gitconfig: gitconfig
~/.inputrc: inputrc
~/.liquidpromptrc: bash/liquidpromptrc
~/.tmux.conf: tmux.conf
~/.vim: vim
~/.vimrc: vimrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
## Instruction:
Create ~/tmp in dotbot setup
## Code After:
- defaults:
link:
relink: true
relative: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.bash_profile: bash/bash_profile
~/.bashrc: bash/bashrc
~/.gitconfig: gitconfig
~/.inputrc: inputrc
~/.liquidpromptrc: bash/liquidpromptrc
~/.tmux.conf: tmux.conf
~/.vim: vim
~/.vimrc: vimrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
- mkdir -p -m 0700 ~/tmp/vim
| - defaults:
link:
relink: true
relative: true
- clean: ['~']
- link:
~/.dotfiles: ''
~/.bash_profile: bash/bash_profile
~/.bashrc: bash/bashrc
~/.gitconfig: gitconfig
~/.inputrc: inputrc
~/.liquidpromptrc: bash/liquidpromptrc
~/.tmux.conf: tmux.conf
~/.vim: vim
~/.vimrc: vimrc
- shell:
- [git submodule update --init --recursive, Installing submodules]
+ - mkdir -p -m 0700 ~/tmp/vim | 1 | 0.05 | 1 | 0 |
18a90886ef4ea64a75ff0182af60dff5a308052e | app/components/vm-hover.js | app/components/vm-hover.js | import Ember from 'ember';
export default Ember.Component.extend({
isShowingHover: false,
commitTitle: function() {
if (this.get('vm.commit.title').match(/^Merge/)) {
return this.get('vm.commit.title').replace(/ of.*/g,'').replace(/ into.*/g,'');
}
return this.get('vm.commit.title');
}.property('vm.commit.title'),
setShowingHover: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 20) {
this.set('isShowingHover', this.get('isShowingHovers') === this.get('vm').id);
} else {
this.set('isShowingHover', false);
}
}.observes('isShowingHovers'),
// Return true if is running state
isRunning: function() {
if (parseInt(this.get('vm.status'), 10) > 0) { return true; }
return false;
}.property('vm.status'),
// Return true if user is a Dev or more
isDev: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 30) { return true; }
return false;
}.property('session.data.authenticated.access_level'),
actions: {
// close the modal, reset showing variable
closeHover: function() {
this.set('isShowingHovers', -1);
}
}
});
| import Ember from 'ember';
export default Ember.Component.extend({
isShowingHover: false,
commitTitle: function() {
if (this.get('vm.commit.title') && this.get('vm.commit.title').match(/^Merge/)) {
return this.get('vm.commit.title').replace(/ of.*/g,'').replace(/ into.*/g,'');
}
return this.get('vm.commit.title');
}.property('vm.commit.title'),
setShowingHover: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 20) {
this.set('isShowingHover', this.get('isShowingHovers') === this.get('vm').id);
} else {
this.set('isShowingHover', false);
}
}.observes('isShowingHovers'),
// Return true if is running state
isRunning: function() {
if (parseInt(this.get('vm.status'), 10) > 0) { return true; }
return false;
}.property('vm.status'),
// Return true if user is a Dev or more
isDev: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 30) { return true; }
return false;
}.property('session.data.authenticated.access_level'),
actions: {
// close the modal, reset showing variable
closeHover: function() {
this.set('isShowingHovers', -1);
}
}
});
| Fix issue on match vm title | Fix issue on match vm title
| JavaScript | mit | ricofehr/nextdeploy-webui,ricofehr/nextdeploy-webui | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Component.extend({
isShowingHover: false,
commitTitle: function() {
if (this.get('vm.commit.title').match(/^Merge/)) {
return this.get('vm.commit.title').replace(/ of.*/g,'').replace(/ into.*/g,'');
}
return this.get('vm.commit.title');
}.property('vm.commit.title'),
setShowingHover: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 20) {
this.set('isShowingHover', this.get('isShowingHovers') === this.get('vm').id);
} else {
this.set('isShowingHover', false);
}
}.observes('isShowingHovers'),
// Return true if is running state
isRunning: function() {
if (parseInt(this.get('vm.status'), 10) > 0) { return true; }
return false;
}.property('vm.status'),
// Return true if user is a Dev or more
isDev: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 30) { return true; }
return false;
}.property('session.data.authenticated.access_level'),
actions: {
// close the modal, reset showing variable
closeHover: function() {
this.set('isShowingHovers', -1);
}
}
});
## Instruction:
Fix issue on match vm title
## Code After:
import Ember from 'ember';
export default Ember.Component.extend({
isShowingHover: false,
commitTitle: function() {
if (this.get('vm.commit.title') && this.get('vm.commit.title').match(/^Merge/)) {
return this.get('vm.commit.title').replace(/ of.*/g,'').replace(/ into.*/g,'');
}
return this.get('vm.commit.title');
}.property('vm.commit.title'),
setShowingHover: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 20) {
this.set('isShowingHover', this.get('isShowingHovers') === this.get('vm').id);
} else {
this.set('isShowingHover', false);
}
}.observes('isShowingHovers'),
// Return true if is running state
isRunning: function() {
if (parseInt(this.get('vm.status'), 10) > 0) { return true; }
return false;
}.property('vm.status'),
// Return true if user is a Dev or more
isDev: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 30) { return true; }
return false;
}.property('session.data.authenticated.access_level'),
actions: {
// close the modal, reset showing variable
closeHover: function() {
this.set('isShowingHovers', -1);
}
}
});
| import Ember from 'ember';
export default Ember.Component.extend({
isShowingHover: false,
commitTitle: function() {
- if (this.get('vm.commit.title').match(/^Merge/)) {
+ if (this.get('vm.commit.title') && this.get('vm.commit.title').match(/^Merge/)) {
? +++++++++++++++++++++++++++++++
return this.get('vm.commit.title').replace(/ of.*/g,'').replace(/ into.*/g,'');
}
return this.get('vm.commit.title');
}.property('vm.commit.title'),
setShowingHover: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 20) {
this.set('isShowingHover', this.get('isShowingHovers') === this.get('vm').id);
} else {
this.set('isShowingHover', false);
}
}.observes('isShowingHovers'),
// Return true if is running state
isRunning: function() {
if (parseInt(this.get('vm.status'), 10) > 0) { return true; }
return false;
}.property('vm.status'),
// Return true if user is a Dev or more
isDev: function() {
var access_level = this.get('session').get('data.authenticated.access_level');
if (access_level >= 30) { return true; }
return false;
}.property('session.data.authenticated.access_level'),
actions: {
// close the modal, reset showing variable
closeHover: function() {
this.set('isShowingHovers', -1);
}
}
}); | 2 | 0.047619 | 1 | 1 |
9fbd7c5e3dcd0df1af4de2b56166e94bc57ae071 | README.md | README.md | > Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017.
[](https://creativecommons.org/licenses/by/4.0/)
| > Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017.
[https://kks32-slides.github.io/2017-nmg/](https://kks32-slides.github.io/2017-nmg/)
[](https://creativecommons.org/licenses/by/4.0/)
| Add link to web version | :pencil2: Add link to web version
| Markdown | mit | kks32-slides/2017-nmg,kks32-slides/2017-nmg | markdown | ## Code Before:
> Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017.
[](https://creativecommons.org/licenses/by/4.0/)
## Instruction:
:pencil2: Add link to web version
## Code After:
> Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017.
[https://kks32-slides.github.io/2017-nmg/](https://kks32-slides.github.io/2017-nmg/)
[](https://creativecommons.org/licenses/by/4.0/)
| > Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017.
+ [https://kks32-slides.github.io/2017-nmg/](https://kks32-slides.github.io/2017-nmg/)
+
[](https://creativecommons.org/licenses/by/4.0/) | 2 | 0.666667 | 2 | 0 |
dca21c56b7e2a5a3739262a5042985f1f68eb4dc | Kwc/User/Login/Plugin.php | Kwc/User/Login/Plugin.php | <?php
//this plugin replaces %redirect% dynamic (so viewCache can be enabled)
class Kwc_User_Login_Plugin extends Kwf_Component_Plugin_Abstract
implements Kwf_Component_Plugin_Interface_ViewAfterChildRender
{
public function processOutput($output, $renderer)
{
if (strpos($output, '%redirect%') !== false) {
$r = isset($_GET['redirect']) ? $_GET['redirect'] : '';
$output = str_replace('%redirect%', $r, $output);
}
return $output;
}
}
| <?php
//this plugin replaces %redirect% dynamic (so viewCache can be enabled)
class Kwc_User_Login_Plugin extends Kwf_Component_Plugin_Abstract
implements Kwf_Component_Plugin_Interface_ViewAfterChildRender
{
public function processOutput($output, $renderer)
{
if (strpos($output, '%redirect%') !== false) {
$r = isset($_GET['redirect']) ? $_GET['redirect'] : '';
$output = str_replace('%redirect%', htmlspecialchars($r), $output);
}
return $output;
}
}
| Fix XSS issue with redirects parameter | Fix XSS issue with redirects parameter
| PHP | bsd-2-clause | koala-framework/koala-framework,koala-framework/koala-framework | php | ## Code Before:
<?php
//this plugin replaces %redirect% dynamic (so viewCache can be enabled)
class Kwc_User_Login_Plugin extends Kwf_Component_Plugin_Abstract
implements Kwf_Component_Plugin_Interface_ViewAfterChildRender
{
public function processOutput($output, $renderer)
{
if (strpos($output, '%redirect%') !== false) {
$r = isset($_GET['redirect']) ? $_GET['redirect'] : '';
$output = str_replace('%redirect%', $r, $output);
}
return $output;
}
}
## Instruction:
Fix XSS issue with redirects parameter
## Code After:
<?php
//this plugin replaces %redirect% dynamic (so viewCache can be enabled)
class Kwc_User_Login_Plugin extends Kwf_Component_Plugin_Abstract
implements Kwf_Component_Plugin_Interface_ViewAfterChildRender
{
public function processOutput($output, $renderer)
{
if (strpos($output, '%redirect%') !== false) {
$r = isset($_GET['redirect']) ? $_GET['redirect'] : '';
$output = str_replace('%redirect%', htmlspecialchars($r), $output);
}
return $output;
}
}
| <?php
//this plugin replaces %redirect% dynamic (so viewCache can be enabled)
class Kwc_User_Login_Plugin extends Kwf_Component_Plugin_Abstract
implements Kwf_Component_Plugin_Interface_ViewAfterChildRender
{
public function processOutput($output, $renderer)
{
if (strpos($output, '%redirect%') !== false) {
$r = isset($_GET['redirect']) ? $_GET['redirect'] : '';
- $output = str_replace('%redirect%', $r, $output);
+ $output = str_replace('%redirect%', htmlspecialchars($r), $output);
? +++++++++++++++++ +
}
return $output;
}
} | 2 | 0.142857 | 1 | 1 |
7556ac4105736e6414933cc6bc928c696a625083 | readFile.js | readFile.js | /**
* Created by Kanthanarasimhaiah on 14/11/13.
*/
fs = require('fs');
var num_of_tasks;
var total_time;
var fileName = process.argv[2];
fs.readFile(fileName, 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
//console.log(data);
var input=data.split('\n');
var line1 = input[0].split(' ');
num_of_tasks=parseInt(line1[0], 10);
total_time=parseInt(line1[1], 10);
console.log("Numer of Tasks:", num_of_tasks);
console.log("Total Time:", total_time);
// read in the tasks
var queue= [];
for(var j=1;j<num_of_tasks;j++) {
var task_data=input[j].split(' ');
var task = {id : task_data[0],
start_time : parseInt(task_data[1], 10),
duration : parseInt(task_data[2], 10)};
queue.push(task);
}
function sort_function (a, b) {
return a.start_time - b.start_time;
}
queue.sort(sort_function);
console.log("Tasks:");
console.log(queue);
});
| /**
* Created by Kanthanarasimhaiah on 14/11/13.
*/
fs = require('fs');
function readTasks (file) {
var data = fs.readFileSync(file, 'utf8');
var input=data.split('\n');
var line1 = input[0].split(' ');
var num_of_tasks=parseInt(line1[0], 10);
var total_time=parseInt(line1[1], 10);
// read in the tasks
var queue= [];
for(var j=1;j<num_of_tasks;j++) {
var task_data=input[j].split(' ');
var task = {id : task_data[0],
start_time : parseInt(task_data[1], 10),
duration : parseInt(task_data[2], 10)};
queue.push(task);
}
function sort_function (a, b) {
return a.start_time - b.start_time;
}
queue.sort(sort_function);
return {num_of_tasks: num_of_tasks,
total_time: total_time,
task_queue: queue};
}
var fileName = process.argv[2];
var tasks = readTasks(fileName);
console.log("Numer of Tasks:", tasks.num_of_tasks);
console.log("Total Time:", tasks.total_time);
console.log("Task Queue:");
console.log(tasks.task_queue);
| Move task reading into a standalone function. | Move task reading into a standalone function.
- Also, use readFileSync (synchronous).
| JavaScript | mpl-2.0 | kanaka/rbt_cfs | javascript | ## Code Before:
/**
* Created by Kanthanarasimhaiah on 14/11/13.
*/
fs = require('fs');
var num_of_tasks;
var total_time;
var fileName = process.argv[2];
fs.readFile(fileName, 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
//console.log(data);
var input=data.split('\n');
var line1 = input[0].split(' ');
num_of_tasks=parseInt(line1[0], 10);
total_time=parseInt(line1[1], 10);
console.log("Numer of Tasks:", num_of_tasks);
console.log("Total Time:", total_time);
// read in the tasks
var queue= [];
for(var j=1;j<num_of_tasks;j++) {
var task_data=input[j].split(' ');
var task = {id : task_data[0],
start_time : parseInt(task_data[1], 10),
duration : parseInt(task_data[2], 10)};
queue.push(task);
}
function sort_function (a, b) {
return a.start_time - b.start_time;
}
queue.sort(sort_function);
console.log("Tasks:");
console.log(queue);
});
## Instruction:
Move task reading into a standalone function.
- Also, use readFileSync (synchronous).
## Code After:
/**
* Created by Kanthanarasimhaiah on 14/11/13.
*/
fs = require('fs');
function readTasks (file) {
var data = fs.readFileSync(file, 'utf8');
var input=data.split('\n');
var line1 = input[0].split(' ');
var num_of_tasks=parseInt(line1[0], 10);
var total_time=parseInt(line1[1], 10);
// read in the tasks
var queue= [];
for(var j=1;j<num_of_tasks;j++) {
var task_data=input[j].split(' ');
var task = {id : task_data[0],
start_time : parseInt(task_data[1], 10),
duration : parseInt(task_data[2], 10)};
queue.push(task);
}
function sort_function (a, b) {
return a.start_time - b.start_time;
}
queue.sort(sort_function);
return {num_of_tasks: num_of_tasks,
total_time: total_time,
task_queue: queue};
}
var fileName = process.argv[2];
var tasks = readTasks(fileName);
console.log("Numer of Tasks:", tasks.num_of_tasks);
console.log("Total Time:", tasks.total_time);
console.log("Task Queue:");
console.log(tasks.task_queue);
| /**
* Created by Kanthanarasimhaiah on 14/11/13.
*/
fs = require('fs');
+ function readTasks (file) {
+ var data = fs.readFileSync(file, 'utf8');
- var num_of_tasks;
- var total_time;
- var fileName = process.argv[2];
-
- fs.readFile(fileName, 'utf8', function (err,data) {
- if (err) {
- return console.log(err);
- }
- //console.log(data);
var input=data.split('\n');
var line1 = input[0].split(' ');
- num_of_tasks=parseInt(line1[0], 10);
+ var num_of_tasks=parseInt(line1[0], 10);
? ++++
- total_time=parseInt(line1[1], 10);
+ var total_time=parseInt(line1[1], 10);
? ++++
- console.log("Numer of Tasks:", num_of_tasks);
- console.log("Total Time:", total_time);
// read in the tasks
var queue= [];
for(var j=1;j<num_of_tasks;j++) {
var task_data=input[j].split(' ');
var task = {id : task_data[0],
start_time : parseInt(task_data[1], 10),
duration : parseInt(task_data[2], 10)};
queue.push(task);
}
+
function sort_function (a, b) {
return a.start_time - b.start_time;
}
queue.sort(sort_function);
- console.log("Tasks:");
- console.log(queue);
- });
+ return {num_of_tasks: num_of_tasks,
+ total_time: total_time,
+ task_queue: queue};
+ }
+ var fileName = process.argv[2];
+ var tasks = readTasks(fileName);
+
+ console.log("Numer of Tasks:", tasks.num_of_tasks);
+ console.log("Total Time:", tasks.total_time);
+ console.log("Task Queue:");
+ console.log(tasks.task_queue);
+ | 33 | 0.825 | 17 | 16 |
d5850acaf771d096c012d4e6f109337c503de782 | README.md | README.md | Goof
========
Goof (Go offer one file) is the Go version of [Woof](https://bitbucket.org/edu/woof/src/). It starts a server which serves a file.
Usage
----
To serve a file once on 127.0.0.1:8086
`goof -f <path-to-file>`
Additional options:
`goof -f <path-to-file> -c 2 -t 3600 -i 192.168.1.9 -p 3000`
* `f` - file path of the file that should be shared. Required.
* `c` - The number of times the file can be downloaded. Optional, default is 1. `c` = -1 indicates unlimited number of downloads.
* `t` - The time in minutes that the server runs before exiting. Optional, default is 0 (forever until parameter n is satisfied)
* `i` - The IP address on which the server should run. Optional, default is 127.0.0.1
* `p` - The port on which the server should listen. Optional, default is 8086 | Goof
========
Goof (Go offer one file) is the Go version of [Woof](https://bitbucket.org/edu/woof/src/). It starts a server which serves a file.
Installing
---
If you have Go installed then you can run the following commands
```
go get github.com/nindalf/goof
//cd to directory
go install
```
Or download from here for Linux and Mac
Usage
---
To serve a file or folder once on 127.0.0.1:8086
`goof -f /path/to/file`
Additional options:
`goof -f /path/to/file -c 2 -t 3600 -i 192.168.1.9 -p 3000`
* `f` - file path of the file/folder that should be shared. Required.
* `c` - The number of times the file can be downloaded. Optional, default is 1. `c` = -1 indicates unlimited number of downloads.
* `t` - The time in minutes that the server runs before exiting. Optional, default is 0 (forever until parameter n is satisfied)
* `i` - The IP address on which the server should run. Optional, default is 127.0.0.1
* `p` - The port on which the server should listen. Optional, default is 8086
If a folder is specified, then it is archived in a tarball (.tar), compressed with gzip and shared. | Update Readme with details on folder sharing | Update Readme with details on folder sharing
| Markdown | mit | nindalf/goof | markdown | ## Code Before:
Goof
========
Goof (Go offer one file) is the Go version of [Woof](https://bitbucket.org/edu/woof/src/). It starts a server which serves a file.
Usage
----
To serve a file once on 127.0.0.1:8086
`goof -f <path-to-file>`
Additional options:
`goof -f <path-to-file> -c 2 -t 3600 -i 192.168.1.9 -p 3000`
* `f` - file path of the file that should be shared. Required.
* `c` - The number of times the file can be downloaded. Optional, default is 1. `c` = -1 indicates unlimited number of downloads.
* `t` - The time in minutes that the server runs before exiting. Optional, default is 0 (forever until parameter n is satisfied)
* `i` - The IP address on which the server should run. Optional, default is 127.0.0.1
* `p` - The port on which the server should listen. Optional, default is 8086
## Instruction:
Update Readme with details on folder sharing
## Code After:
Goof
========
Goof (Go offer one file) is the Go version of [Woof](https://bitbucket.org/edu/woof/src/). It starts a server which serves a file.
Installing
---
If you have Go installed then you can run the following commands
```
go get github.com/nindalf/goof
//cd to directory
go install
```
Or download from here for Linux and Mac
Usage
---
To serve a file or folder once on 127.0.0.1:8086
`goof -f /path/to/file`
Additional options:
`goof -f /path/to/file -c 2 -t 3600 -i 192.168.1.9 -p 3000`
* `f` - file path of the file/folder that should be shared. Required.
* `c` - The number of times the file can be downloaded. Optional, default is 1. `c` = -1 indicates unlimited number of downloads.
* `t` - The time in minutes that the server runs before exiting. Optional, default is 0 (forever until parameter n is satisfied)
* `i` - The IP address on which the server should run. Optional, default is 127.0.0.1
* `p` - The port on which the server should listen. Optional, default is 8086
If a folder is specified, then it is archived in a tarball (.tar), compressed with gzip and shared. | Goof
========
Goof (Go offer one file) is the Go version of [Woof](https://bitbucket.org/edu/woof/src/). It starts a server which serves a file.
+ Installing
+ ---
+
+ If you have Go installed then you can run the following commands
+
+ ```
+ go get github.com/nindalf/goof
+ //cd to directory
+ go install
+ ```
+
+ Or download from here for Linux and Mac
+
Usage
- ----
? -
+ ---
- To serve a file once on 127.0.0.1:8086
+ To serve a file or folder once on 127.0.0.1:8086
? ++++++++++
- `goof -f <path-to-file>`
? ^ ^ ^ -
+ `goof -f /path/to/file`
? ^ ^ ^
Additional options:
- `goof -f <path-to-file> -c 2 -t 3600 -i 192.168.1.9 -p 3000`
? ^ ^ ^ -
+ `goof -f /path/to/file -c 2 -t 3600 -i 192.168.1.9 -p 3000`
? ^ ^ ^
- * `f` - file path of the file that should be shared. Required.
+ * `f` - file path of the file/folder that should be shared. Required.
? +++++++
* `c` - The number of times the file can be downloaded. Optional, default is 1. `c` = -1 indicates unlimited number of downloads.
* `t` - The time in minutes that the server runs before exiting. Optional, default is 0 (forever until parameter n is satisfied)
* `i` - The IP address on which the server should run. Optional, default is 127.0.0.1
* `p` - The port on which the server should listen. Optional, default is 8086
+
+ If a folder is specified, then it is archived in a tarball (.tar), compressed with gzip and shared. | 25 | 1 | 20 | 5 |
27a60134c8ca97dc72c10b3aab59d859eafb6aa7 | package.json | package.json | {
"name": "connect-sts",
"description": "Add ",
"version": "0.2.0",
"author": "François de Metz <fdemetz@af83.com>",
"dependencies": { "connect": "" },
"repository": { "type": "git",
"url": "http://github.com/AF83/connect-sts.git"
}
}
| {
"name": "connect-sts",
"description": "Middleware to add Strict-Transport-Security header",
"version": "0.3.0",
"author": "François de Metz <fdemetz@af83.com>",
"dependencies": { "connect": "" },
"repository": { "type": "git",
"url": "http://github.com/AF83/connect-sts.git"
}
}
| Fix description and bump version. | Fix description and bump version.
| JSON | bsd-2-clause | AF83/connect-sts | json | ## Code Before:
{
"name": "connect-sts",
"description": "Add ",
"version": "0.2.0",
"author": "François de Metz <fdemetz@af83.com>",
"dependencies": { "connect": "" },
"repository": { "type": "git",
"url": "http://github.com/AF83/connect-sts.git"
}
}
## Instruction:
Fix description and bump version.
## Code After:
{
"name": "connect-sts",
"description": "Middleware to add Strict-Transport-Security header",
"version": "0.3.0",
"author": "François de Metz <fdemetz@af83.com>",
"dependencies": { "connect": "" },
"repository": { "type": "git",
"url": "http://github.com/AF83/connect-sts.git"
}
}
| {
"name": "connect-sts",
- "description": "Add ",
+ "description": "Middleware to add Strict-Transport-Security header",
- "version": "0.2.0",
? ^
+ "version": "0.3.0",
? ^
"author": "François de Metz <fdemetz@af83.com>",
"dependencies": { "connect": "" },
"repository": { "type": "git",
"url": "http://github.com/AF83/connect-sts.git"
}
} | 4 | 0.4 | 2 | 2 |
8653a6e1f3e6c83b7e6bc4a7170aeee9e86af96e | test/helpers/application_helper_test.rb | test/helpers/application_helper_test.rb | require 'test_helper'
#
# == ApplicationHelper Test
#
class ApplicationHelperTest < ActionView::TestCase
include Rails.application.routes.url_helpers
setup :initialize_test
#
# == DateTime
#
test 'should return current year' do
assert_equal current_year, Time.zone.now.year
end
#
# == Maintenance
#
test 'should return true if maintenance is enabled' do
@setting.update_attributes(maintenance: true)
assert maintenance?(@request), 'should be in maintenance'
end
test 'should return false if maintenance is disabled' do
assert_not maintenance?(@request), 'should not be in maintenance'
end
private
def initialize_test
@setting = settings(:one)
end
end
| require 'test_helper'
#
# == ApplicationHelper Test
#
class ApplicationHelperTest < ActionView::TestCase
include Rails.application.routes.url_helpers
setup :initialize_test
#
# == DateTime
#
test 'should return current year' do
assert_equal Time.zone.now.year, current_year
end
#
# == Maintenance
#
test 'should return true if maintenance is enabled' do
@setting.update_attributes(maintenance: true)
assert maintenance?(@request), 'should be in maintenance'
end
test 'should return false if maintenance is disabled' do
assert_not maintenance?(@request), 'should not be in maintenance'
end
private
def initialize_test
@setting = settings(:one)
end
end
| Update params order for assert test | Update params order for assert test
| Ruby | mit | lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter | ruby | ## Code Before:
require 'test_helper'
#
# == ApplicationHelper Test
#
class ApplicationHelperTest < ActionView::TestCase
include Rails.application.routes.url_helpers
setup :initialize_test
#
# == DateTime
#
test 'should return current year' do
assert_equal current_year, Time.zone.now.year
end
#
# == Maintenance
#
test 'should return true if maintenance is enabled' do
@setting.update_attributes(maintenance: true)
assert maintenance?(@request), 'should be in maintenance'
end
test 'should return false if maintenance is disabled' do
assert_not maintenance?(@request), 'should not be in maintenance'
end
private
def initialize_test
@setting = settings(:one)
end
end
## Instruction:
Update params order for assert test
## Code After:
require 'test_helper'
#
# == ApplicationHelper Test
#
class ApplicationHelperTest < ActionView::TestCase
include Rails.application.routes.url_helpers
setup :initialize_test
#
# == DateTime
#
test 'should return current year' do
assert_equal Time.zone.now.year, current_year
end
#
# == Maintenance
#
test 'should return true if maintenance is enabled' do
@setting.update_attributes(maintenance: true)
assert maintenance?(@request), 'should be in maintenance'
end
test 'should return false if maintenance is disabled' do
assert_not maintenance?(@request), 'should not be in maintenance'
end
private
def initialize_test
@setting = settings(:one)
end
end
| require 'test_helper'
#
# == ApplicationHelper Test
#
class ApplicationHelperTest < ActionView::TestCase
include Rails.application.routes.url_helpers
setup :initialize_test
#
# == DateTime
#
test 'should return current year' do
- assert_equal current_year, Time.zone.now.year
+ assert_equal Time.zone.now.year, current_year
end
#
# == Maintenance
#
test 'should return true if maintenance is enabled' do
@setting.update_attributes(maintenance: true)
assert maintenance?(@request), 'should be in maintenance'
end
test 'should return false if maintenance is disabled' do
assert_not maintenance?(@request), 'should not be in maintenance'
end
private
def initialize_test
@setting = settings(:one)
end
end | 2 | 0.057143 | 1 | 1 |
e39a1158125f6c1b4b445a71339bf6e1e40f3c02 | controllers/stock-controller.coffee | controllers/stock-controller.coffee | request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send(body)
request: (symbol, callback=->) =>
options =
url: 'http://download.finance.yahoo.com/d/quotes.csv'
qs:
s: symbol
f: 'l1'
request options, callback
module.exports = StockController
| request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send price: parseFloat(body)
request: (symbol, callback=->) =>
options =
url: 'http://download.finance.yahoo.com/d/quotes.csv'
qs:
s: symbol
f: 'l1'
request options, callback
module.exports = StockController
| Return JSON object instead of a primitive | Return JSON object instead of a primitive
| CoffeeScript | mit | octoblu/stock-service,octoblu/stock-service | coffeescript | ## Code Before:
request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send(body)
request: (symbol, callback=->) =>
options =
url: 'http://download.finance.yahoo.com/d/quotes.csv'
qs:
s: symbol
f: 'l1'
request options, callback
module.exports = StockController
## Instruction:
Return JSON object instead of a primitive
## Code After:
request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
res.status(response.statusCode).send price: parseFloat(body)
request: (symbol, callback=->) =>
options =
url: 'http://download.finance.yahoo.com/d/quotes.csv'
qs:
s: symbol
f: 'l1'
request options, callback
module.exports = StockController
| request = require 'request'
_ = require 'lodash'
class StockController
lastTradePrice: (req, res) =>
@request req.params.symbol, (error, response, body) =>
return res.status(500).send(error) if error?
- res.status(response.statusCode).send(body)
+ res.status(response.statusCode).send price: parseFloat(body)
? ++++++++++++++++++
request: (symbol, callback=->) =>
options =
url: 'http://download.finance.yahoo.com/d/quotes.csv'
qs:
s: symbol
f: 'l1'
request options, callback
module.exports = StockController | 2 | 0.111111 | 1 | 1 |
feecf7463f639059919f7ca1f7d5c8db3c828895 | tests/src/main/java/app/android/gambit/test/CardTests.java | tests/src/main/java/app/android/gambit/test/CardTests.java | package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "Title";
private static final String CARD_BACK_SIDE_TEXT = "Back text";
private static final String CARD_FRONT_SIDE_TEXT = "Front text";
private Card card;
@Override
protected void setUp() throws Exception {
super.setUp();
card = decks.createDeck(DECK_TITLE).createCard(CARD_FRONT_SIDE_TEXT, CARD_BACK_SIDE_TEXT);
}
public void testGetFrontSideText() {
assertEquals(CARD_FRONT_SIDE_TEXT, card.getFrontSideText());
}
public void testGetBackSideText() {
assertEquals(CARD_BACK_SIDE_TEXT, card.getBackSideText());
}
public void testSetFrontSideText() {
String newFrontSideText = "New front side text";
card.setFrontSideText(newFrontSideText);
assertEquals(newFrontSideText, card.getFrontSideText());
}
public void testSetBackSideText() {
String newBackSideText = "New back side text";
card.setBackSideText(newBackSideText);
assertEquals(newBackSideText, card.getBackSideText());
}
}
| package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "deck";
private static final String CARD_BACK_SIDE_TEXT = "back side text";
private static final String CARD_FRONT_SIDE_TEXT = "front side text";
private Card card;
@Override
protected void setUp() throws Exception {
super.setUp();
card = decks.createDeck(DECK_TITLE).createCard(CARD_FRONT_SIDE_TEXT, CARD_BACK_SIDE_TEXT);
}
public void testGetId() {
long cardId = card.getId();
assertTrue(cardId >= 0);
}
public void testGetFrontSideText() {
assertEquals(CARD_FRONT_SIDE_TEXT, card.getFrontSideText());
}
public void testGetBackSideText() {
assertEquals(CARD_BACK_SIDE_TEXT, card.getBackSideText());
}
public void testSetFrontSideText() {
String newFrontSideText = String.format("new %s", CARD_FRONT_SIDE_TEXT);
card.setFrontSideText(newFrontSideText);
assertEquals(newFrontSideText, card.getFrontSideText());
}
public void testSetBackSideText() {
String newBackSideText = String.format("new %s", CARD_BACK_SIDE_TEXT);
card.setBackSideText(newBackSideText);
assertEquals(newBackSideText, card.getBackSideText());
}
}
| Add id testing for card and change card text generation a bit. | Add id testing for card and change card text generation a bit.
| Java | apache-2.0 | ming13/gambit | java | ## Code Before:
package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "Title";
private static final String CARD_BACK_SIDE_TEXT = "Back text";
private static final String CARD_FRONT_SIDE_TEXT = "Front text";
private Card card;
@Override
protected void setUp() throws Exception {
super.setUp();
card = decks.createDeck(DECK_TITLE).createCard(CARD_FRONT_SIDE_TEXT, CARD_BACK_SIDE_TEXT);
}
public void testGetFrontSideText() {
assertEquals(CARD_FRONT_SIDE_TEXT, card.getFrontSideText());
}
public void testGetBackSideText() {
assertEquals(CARD_BACK_SIDE_TEXT, card.getBackSideText());
}
public void testSetFrontSideText() {
String newFrontSideText = "New front side text";
card.setFrontSideText(newFrontSideText);
assertEquals(newFrontSideText, card.getFrontSideText());
}
public void testSetBackSideText() {
String newBackSideText = "New back side text";
card.setBackSideText(newBackSideText);
assertEquals(newBackSideText, card.getBackSideText());
}
}
## Instruction:
Add id testing for card and change card text generation a bit.
## Code After:
package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "deck";
private static final String CARD_BACK_SIDE_TEXT = "back side text";
private static final String CARD_FRONT_SIDE_TEXT = "front side text";
private Card card;
@Override
protected void setUp() throws Exception {
super.setUp();
card = decks.createDeck(DECK_TITLE).createCard(CARD_FRONT_SIDE_TEXT, CARD_BACK_SIDE_TEXT);
}
public void testGetId() {
long cardId = card.getId();
assertTrue(cardId >= 0);
}
public void testGetFrontSideText() {
assertEquals(CARD_FRONT_SIDE_TEXT, card.getFrontSideText());
}
public void testGetBackSideText() {
assertEquals(CARD_BACK_SIDE_TEXT, card.getBackSideText());
}
public void testSetFrontSideText() {
String newFrontSideText = String.format("new %s", CARD_FRONT_SIDE_TEXT);
card.setFrontSideText(newFrontSideText);
assertEquals(newFrontSideText, card.getFrontSideText());
}
public void testSetBackSideText() {
String newBackSideText = String.format("new %s", CARD_BACK_SIDE_TEXT);
card.setBackSideText(newBackSideText);
assertEquals(newBackSideText, card.getBackSideText());
}
}
| package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
- private static final String DECK_TITLE = "Title";
? ^^^^
+ private static final String DECK_TITLE = "deck";
? ^ ++
- private static final String CARD_BACK_SIDE_TEXT = "Back text";
? ^
+ private static final String CARD_BACK_SIDE_TEXT = "back side text";
? ^ +++++
- private static final String CARD_FRONT_SIDE_TEXT = "Front text";
? ^
+ private static final String CARD_FRONT_SIDE_TEXT = "front side text";
? ^ +++++
private Card card;
@Override
protected void setUp() throws Exception {
super.setUp();
card = decks.createDeck(DECK_TITLE).createCard(CARD_FRONT_SIDE_TEXT, CARD_BACK_SIDE_TEXT);
+ }
+
+ public void testGetId() {
+ long cardId = card.getId();
+
+ assertTrue(cardId >= 0);
}
public void testGetFrontSideText() {
assertEquals(CARD_FRONT_SIDE_TEXT, card.getFrontSideText());
}
public void testGetBackSideText() {
assertEquals(CARD_BACK_SIDE_TEXT, card.getBackSideText());
}
public void testSetFrontSideText() {
- String newFrontSideText = "New front side text";
+ String newFrontSideText = String.format("new %s", CARD_FRONT_SIDE_TEXT);
card.setFrontSideText(newFrontSideText);
assertEquals(newFrontSideText, card.getFrontSideText());
}
public void testSetBackSideText() {
- String newBackSideText = "New back side text";
+ String newBackSideText = String.format("new %s", CARD_BACK_SIDE_TEXT);
card.setBackSideText(newBackSideText);
assertEquals(newBackSideText, card.getBackSideText());
}
} | 16 | 0.355556 | 11 | 5 |
879bd24d4e892da317cff1fdcece9af0765b87a9 | src/lib.rs | src/lib.rs | extern crate mio;
use std::io;
use std::result;
use std::net::{SocketAddr, ToSocketAddrs};
use mio::{EventLoop, Handler, Token};
use mio::tcp::{TcpListener, TcpStream};
#[derive(Debug)]
pub struct HttpError;
pub type Result<T> = result::Result<T, HttpError>;
pub struct HttpConnection {
tcp_stream: TcpStream,
}
impl HttpConnection {
pub fn local_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.local_addr()
.map_err(|_| HttpError)
}
pub fn peer_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.peer_addr()
.map_err(|_| HttpError)
}
}
pub struct HttpServer {
tcp_listener: TcpListener,
}
impl HttpServer {
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
unimplemented!()
}
pub fn accept(&self) -> Result<Option<HttpConnection>> {
unimplemented!()
}
/// Registers itself on the given `EventLoop`.
pub fn register_self<H : Handler>(
&self, event_loop: &mut EventLoop<H>, token: Token)
-> io::Result<()> {
event_loop.register(&self.tcp_listener, token)
}
}
| extern crate mio;
use std::io::Result;
use std::net::{SocketAddr, ToSocketAddrs};
use mio::{EventLoop, Handler, Token};
use mio::tcp::{TcpListener, TcpStream};
pub struct HttpConnection {
tcp_stream: TcpStream,
}
impl HttpConnection {
pub fn local_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.local_addr()
}
pub fn peer_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.peer_addr()
}
}
pub struct HttpServer {
tcp_listener: TcpListener,
}
impl HttpServer {
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
unimplemented!()
}
pub fn accept(&self) -> Result<Option<HttpConnection>> {
unimplemented!()
}
/// Registers itself on the given `EventLoop`.
pub fn register_self<H : Handler>(
&self, event_loop: &mut EventLoop<H>, token: Token) -> Result<()> {
event_loop.register(&self.tcp_listener, token)
}
}
| Use io::Error instead of custom error type | Use io::Error instead of custom error type
| Rust | mit | krsnik02/rust-http,krsnik02/rust-http2 | rust | ## Code Before:
extern crate mio;
use std::io;
use std::result;
use std::net::{SocketAddr, ToSocketAddrs};
use mio::{EventLoop, Handler, Token};
use mio::tcp::{TcpListener, TcpStream};
#[derive(Debug)]
pub struct HttpError;
pub type Result<T> = result::Result<T, HttpError>;
pub struct HttpConnection {
tcp_stream: TcpStream,
}
impl HttpConnection {
pub fn local_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.local_addr()
.map_err(|_| HttpError)
}
pub fn peer_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.peer_addr()
.map_err(|_| HttpError)
}
}
pub struct HttpServer {
tcp_listener: TcpListener,
}
impl HttpServer {
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
unimplemented!()
}
pub fn accept(&self) -> Result<Option<HttpConnection>> {
unimplemented!()
}
/// Registers itself on the given `EventLoop`.
pub fn register_self<H : Handler>(
&self, event_loop: &mut EventLoop<H>, token: Token)
-> io::Result<()> {
event_loop.register(&self.tcp_listener, token)
}
}
## Instruction:
Use io::Error instead of custom error type
## Code After:
extern crate mio;
use std::io::Result;
use std::net::{SocketAddr, ToSocketAddrs};
use mio::{EventLoop, Handler, Token};
use mio::tcp::{TcpListener, TcpStream};
pub struct HttpConnection {
tcp_stream: TcpStream,
}
impl HttpConnection {
pub fn local_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.local_addr()
}
pub fn peer_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.peer_addr()
}
}
pub struct HttpServer {
tcp_listener: TcpListener,
}
impl HttpServer {
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
unimplemented!()
}
pub fn accept(&self) -> Result<Option<HttpConnection>> {
unimplemented!()
}
/// Registers itself on the given `EventLoop`.
pub fn register_self<H : Handler>(
&self, event_loop: &mut EventLoop<H>, token: Token) -> Result<()> {
event_loop.register(&self.tcp_listener, token)
}
}
| extern crate mio;
- use std::io;
- use std::result;
? ^
+ use std::io::Result;
? ^^^^^
use std::net::{SocketAddr, ToSocketAddrs};
use mio::{EventLoop, Handler, Token};
use mio::tcp::{TcpListener, TcpStream};
-
- #[derive(Debug)]
- pub struct HttpError;
-
- pub type Result<T> = result::Result<T, HttpError>;
-
pub struct HttpConnection {
tcp_stream: TcpStream,
}
impl HttpConnection {
pub fn local_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.local_addr()
- .map_err(|_| HttpError)
}
pub fn peer_addr(&self) -> Result<SocketAddr> {
self.tcp_stream.peer_addr()
- .map_err(|_| HttpError)
}
}
pub struct HttpServer {
tcp_listener: TcpListener,
}
impl HttpServer {
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
unimplemented!()
}
pub fn accept(&self) -> Result<Option<HttpConnection>> {
unimplemented!()
}
/// Registers itself on the given `EventLoop`.
pub fn register_self<H : Handler>(
- &self, event_loop: &mut EventLoop<H>, token: Token)
+ &self, event_loop: &mut EventLoop<H>, token: Token) -> Result<()> {
? ++++++++++++++++
- -> io::Result<()> {
event_loop.register(&self.tcp_listener, token)
}
} | 14 | 0.264151 | 2 | 12 |
0be63749c039e16aa1fcc64cfd8227b50829254e | pyvisa/__init__.py | pyvisa/__init__.py |
from __future__ import division, unicode_literals, print_function, absolute_import
import os
import logging
import subprocess
import pkg_resources
logger = logging.getLogger('pyvisa')
logger.addHandler(logging.NullHandler)
__version__ = "unknown"
try: # try to grab the commit version of our package
__version__ = (subprocess.check_output(["git", "describe"],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(os.path.abspath(__file__)))).strip()
except: # on any error just try to grab the version that is installed on the system
try:
__version__ = pkg_resources.get_distribution('pyvisa').version
except:
pass # we seem to have a local copy without any repository control or installed without setuptools
# so the reported version will be __unknown__
from .visa import instrument, ResourceManager, Instrument, SerialInstrument,
from .errors import *
|
from __future__ import division, unicode_literals, print_function, absolute_import
import os
import logging
import subprocess
import pkg_resources
logger = logging.getLogger('pyvisa')
logger.addHandler(logging.NullHandler)
__version__ = "unknown"
try: # try to grab the commit version of our package
__version__ = (subprocess.check_output(["git", "describe"],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(os.path.abspath(__file__)))).strip()
except: # on any error just try to grab the version that is installed on the system
try:
__version__ = pkg_resources.get_distribution('pyvisa').version
except:
pass # we seem to have a local copy without any repository control or installed without setuptools
# so the reported version will be __unknown__
import wrapper
from .visa import instrument, ResourceManager, Instrument, SerialInstrument,
from .errors import *
from .library import read_user_settings
_user_lib = read_user_settings()
if _user_lib:
from . import vpp43
vpp43.visa_library.load_library(_user_lib)
| Load legacy visa_library taking user settings into account | Load legacy visa_library taking user settings into account
See #7
| Python | mit | pyvisa/pyvisa,rubund/debian-pyvisa,MatthieuDartiailh/pyvisa,hgrecco/pyvisa | python | ## Code Before:
from __future__ import division, unicode_literals, print_function, absolute_import
import os
import logging
import subprocess
import pkg_resources
logger = logging.getLogger('pyvisa')
logger.addHandler(logging.NullHandler)
__version__ = "unknown"
try: # try to grab the commit version of our package
__version__ = (subprocess.check_output(["git", "describe"],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(os.path.abspath(__file__)))).strip()
except: # on any error just try to grab the version that is installed on the system
try:
__version__ = pkg_resources.get_distribution('pyvisa').version
except:
pass # we seem to have a local copy without any repository control or installed without setuptools
# so the reported version will be __unknown__
from .visa import instrument, ResourceManager, Instrument, SerialInstrument,
from .errors import *
## Instruction:
Load legacy visa_library taking user settings into account
See #7
## Code After:
from __future__ import division, unicode_literals, print_function, absolute_import
import os
import logging
import subprocess
import pkg_resources
logger = logging.getLogger('pyvisa')
logger.addHandler(logging.NullHandler)
__version__ = "unknown"
try: # try to grab the commit version of our package
__version__ = (subprocess.check_output(["git", "describe"],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(os.path.abspath(__file__)))).strip()
except: # on any error just try to grab the version that is installed on the system
try:
__version__ = pkg_resources.get_distribution('pyvisa').version
except:
pass # we seem to have a local copy without any repository control or installed without setuptools
# so the reported version will be __unknown__
import wrapper
from .visa import instrument, ResourceManager, Instrument, SerialInstrument,
from .errors import *
from .library import read_user_settings
_user_lib = read_user_settings()
if _user_lib:
from . import vpp43
vpp43.visa_library.load_library(_user_lib)
|
from __future__ import division, unicode_literals, print_function, absolute_import
import os
import logging
import subprocess
import pkg_resources
logger = logging.getLogger('pyvisa')
logger.addHandler(logging.NullHandler)
__version__ = "unknown"
try: # try to grab the commit version of our package
__version__ = (subprocess.check_output(["git", "describe"],
stderr=subprocess.STDOUT,
cwd=os.path.dirname(os.path.abspath(__file__)))).strip()
except: # on any error just try to grab the version that is installed on the system
try:
__version__ = pkg_resources.get_distribution('pyvisa').version
except:
pass # we seem to have a local copy without any repository control or installed without setuptools
# so the reported version will be __unknown__
+ import wrapper
from .visa import instrument, ResourceManager, Instrument, SerialInstrument,
from .errors import *
+
+
+ from .library import read_user_settings
+ _user_lib = read_user_settings()
+
+ if _user_lib:
+ from . import vpp43
+ vpp43.visa_library.load_library(_user_lib)
+ | 10 | 0.4 | 10 | 0 |
de3065ecd56fb6b1b8b6af25033be5afc1bd6c3e | pages/dropdowns.js | pages/dropdowns.js | const React = require('react');
const Page = require('./components/Page');
const Example = require('./components/Example');
const CodeEditor = require('./components/CodeEditor');
const Panel = require('../src/Panel');
const Dropdown = require('../src/Dropdown');
const Button = require('../src/Button');
const Icon = require('../src/Icon');
const SCOPE = { React, Dropdown, Button, Icon };
const EXAMPLE_IMPORT = 'const Dropdown = require(\'gitbook-styleguide/lib/Dropdown\')';
const EXAMPLE_DEFAULT =
`<Dropdown>
<Button>Toggle dropdown</Button>
<Dropdown.Item header>Account</Dropdown.Item>
<Dropdown.Item href="/profile">Profile</Dropdown.Item>
<Dropdown.Item href="/settings">Settings</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item onClick={e => alert('Logout')}>Logout</Dropdown.Item>
</Dropdown>`;
export default () => {
return (
<Page title="Dropdowns" active="dropdowns">
<Panel>
<Panel.Heading title="Dropdowns" />
<Panel.Body>
<CodeEditor source={EXAMPLE_IMPORT} />
</Panel.Body>
</Panel>
<Example title="Default" source={EXAMPLE_DEFAULT} scope={SCOPE}></Example>
</Page>
);
};
| const React = require('react');
const Page = require('./components/Page');
const Example = require('./components/Example');
const CodeEditor = require('./components/CodeEditor');
const Panel = require('../src/Panel');
const Dropdown = require('../src/Dropdown');
const Button = require('../src/Button');
const Icon = require('../src/Icon');
const SCOPE = { React, Dropdown, Button, Icon };
const EXAMPLE_IMPORT = 'const Dropdown = require(\'gitbook-styleguide/lib/Dropdown\')';
const EXAMPLE_DEFAULT =
`<Dropdown>
<Button>
Toggle dropdown <Button.Caret />
</Button>
<Dropdown.Item header>Account</Dropdown.Item>
<Dropdown.Item href="/profile">Profile</Dropdown.Item>
<Dropdown.Item href="/settings">Settings</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item onClick={e => alert('Logout')}>Logout</Dropdown.Item>
</Dropdown>`;
export default () => {
return (
<Page title="Dropdowns" active="dropdowns">
<Panel>
<Panel.Heading title="Dropdowns" />
<Panel.Body>
<CodeEditor source={EXAMPLE_IMPORT} />
</Panel.Body>
</Panel>
<Example title="Default" source={EXAMPLE_DEFAULT} scope={SCOPE}></Example>
</Page>
);
};
| Add button caret to example for dropdown | Add button caret to example for dropdown
| JavaScript | apache-2.0 | GitbookIO/styleguide,rlugojr/styleguide,GitbookIO/styleguide,rlugojr/styleguide | javascript | ## Code Before:
const React = require('react');
const Page = require('./components/Page');
const Example = require('./components/Example');
const CodeEditor = require('./components/CodeEditor');
const Panel = require('../src/Panel');
const Dropdown = require('../src/Dropdown');
const Button = require('../src/Button');
const Icon = require('../src/Icon');
const SCOPE = { React, Dropdown, Button, Icon };
const EXAMPLE_IMPORT = 'const Dropdown = require(\'gitbook-styleguide/lib/Dropdown\')';
const EXAMPLE_DEFAULT =
`<Dropdown>
<Button>Toggle dropdown</Button>
<Dropdown.Item header>Account</Dropdown.Item>
<Dropdown.Item href="/profile">Profile</Dropdown.Item>
<Dropdown.Item href="/settings">Settings</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item onClick={e => alert('Logout')}>Logout</Dropdown.Item>
</Dropdown>`;
export default () => {
return (
<Page title="Dropdowns" active="dropdowns">
<Panel>
<Panel.Heading title="Dropdowns" />
<Panel.Body>
<CodeEditor source={EXAMPLE_IMPORT} />
</Panel.Body>
</Panel>
<Example title="Default" source={EXAMPLE_DEFAULT} scope={SCOPE}></Example>
</Page>
);
};
## Instruction:
Add button caret to example for dropdown
## Code After:
const React = require('react');
const Page = require('./components/Page');
const Example = require('./components/Example');
const CodeEditor = require('./components/CodeEditor');
const Panel = require('../src/Panel');
const Dropdown = require('../src/Dropdown');
const Button = require('../src/Button');
const Icon = require('../src/Icon');
const SCOPE = { React, Dropdown, Button, Icon };
const EXAMPLE_IMPORT = 'const Dropdown = require(\'gitbook-styleguide/lib/Dropdown\')';
const EXAMPLE_DEFAULT =
`<Dropdown>
<Button>
Toggle dropdown <Button.Caret />
</Button>
<Dropdown.Item header>Account</Dropdown.Item>
<Dropdown.Item href="/profile">Profile</Dropdown.Item>
<Dropdown.Item href="/settings">Settings</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item onClick={e => alert('Logout')}>Logout</Dropdown.Item>
</Dropdown>`;
export default () => {
return (
<Page title="Dropdowns" active="dropdowns">
<Panel>
<Panel.Heading title="Dropdowns" />
<Panel.Body>
<CodeEditor source={EXAMPLE_IMPORT} />
</Panel.Body>
</Panel>
<Example title="Default" source={EXAMPLE_DEFAULT} scope={SCOPE}></Example>
</Page>
);
};
| const React = require('react');
const Page = require('./components/Page');
const Example = require('./components/Example');
const CodeEditor = require('./components/CodeEditor');
const Panel = require('../src/Panel');
const Dropdown = require('../src/Dropdown');
const Button = require('../src/Button');
const Icon = require('../src/Icon');
const SCOPE = { React, Dropdown, Button, Icon };
const EXAMPLE_IMPORT = 'const Dropdown = require(\'gitbook-styleguide/lib/Dropdown\')';
const EXAMPLE_DEFAULT =
`<Dropdown>
- <Button>Toggle dropdown</Button>
+ <Button>
+ Toggle dropdown <Button.Caret />
+ </Button>
<Dropdown.Item header>Account</Dropdown.Item>
<Dropdown.Item href="/profile">Profile</Dropdown.Item>
<Dropdown.Item href="/settings">Settings</Dropdown.Item>
<Dropdown.Divider />
<Dropdown.Item onClick={e => alert('Logout')}>Logout</Dropdown.Item>
</Dropdown>`;
export default () => {
return (
<Page title="Dropdowns" active="dropdowns">
<Panel>
<Panel.Heading title="Dropdowns" />
<Panel.Body>
<CodeEditor source={EXAMPLE_IMPORT} />
</Panel.Body>
</Panel>
<Example title="Default" source={EXAMPLE_DEFAULT} scope={SCOPE}></Example>
</Page>
);
}; | 4 | 0.105263 | 3 | 1 |
db7c21867780322a0892c6237105b0d2b40e40a4 | cp-strap/src/stylesheets/style.less | cp-strap/src/stylesheets/style.less | //
// 'cp-strap' Theme
// --------------------------------------------------
.cp-strap {
}
| //
// 'cp-strap' Theme
// --------------------------------------------------
.cp-strap {
background: #eee;
padding: 20px;
}
| Add bg color and padding | Add bg color and padding
for init tests with live reload
| Less | mit | ABS-org/cdp_strap,ABS-org/cdp_strap | less | ## Code Before:
//
// 'cp-strap' Theme
// --------------------------------------------------
.cp-strap {
}
## Instruction:
Add bg color and padding
for init tests with live reload
## Code After:
//
// 'cp-strap' Theme
// --------------------------------------------------
.cp-strap {
background: #eee;
padding: 20px;
}
| //
// 'cp-strap' Theme
// --------------------------------------------------
.cp-strap {
-
+ background: #eee;
+ padding: 20px;
} | 3 | 0.375 | 2 | 1 |
ce1e870d23488059420a12ca2c2e8dc97be80fe1 | appveyor.yml | appveyor.yml | branches:
only:
- release
- pre-release
environment:
COLUMNS: 999
matrix:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
- "%PYTHON%\\python.exe -m pip install -U setuptools"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install twine"
- "%PYTHON%\\python.exe -m pip install -r requirements-windows.txt"
- "%PYTHON%\\python.exe -m pip install tensorflow"
- "%PYTHON%\\python.exe -m pip install pandas"
build: off
test_script:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe guild\\scripts\\guild check -nT"
after_test:
- "%PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"
artifacts:
- path: dist\*
| branches:
only:
- release
- pre-release
environment:
COLUMNS: 999
matrix:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
- "%PYTHON%\\python.exe -m pip install -U setuptools"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install twine"
- "%PYTHON%\\python.exe -m pip install -r requirements-windows.txt"
- "%PYTHON%\\python.exe -m pip install pandas"
build: off
test_script:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe guild\\scripts\\guild check -nT"
after_test:
- "%PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"
artifacts:
- path: dist\*
| Remove tensorflow as req for Windows | Remove tensorflow as req for Windows
None of the Windows based tests require TensorFlow.
| YAML | apache-2.0 | guildai/guild,guildai/guild,guildai/guild,guildai/guild | yaml | ## Code Before:
branches:
only:
- release
- pre-release
environment:
COLUMNS: 999
matrix:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
- "%PYTHON%\\python.exe -m pip install -U setuptools"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install twine"
- "%PYTHON%\\python.exe -m pip install -r requirements-windows.txt"
- "%PYTHON%\\python.exe -m pip install tensorflow"
- "%PYTHON%\\python.exe -m pip install pandas"
build: off
test_script:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe guild\\scripts\\guild check -nT"
after_test:
- "%PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"
artifacts:
- path: dist\*
## Instruction:
Remove tensorflow as req for Windows
None of the Windows based tests require TensorFlow.
## Code After:
branches:
only:
- release
- pre-release
environment:
COLUMNS: 999
matrix:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
- "%PYTHON%\\python.exe -m pip install -U setuptools"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install twine"
- "%PYTHON%\\python.exe -m pip install -r requirements-windows.txt"
- "%PYTHON%\\python.exe -m pip install pandas"
build: off
test_script:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe guild\\scripts\\guild check -nT"
after_test:
- "%PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"
artifacts:
- path: dist\*
| branches:
only:
- release
- pre-release
environment:
COLUMNS: 999
matrix:
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38-x64"
install:
- "%PYTHON%\\python.exe -m pip install -U setuptools"
- "%PYTHON%\\python.exe -m pip install wheel"
- "%PYTHON%\\python.exe -m pip install twine"
- "%PYTHON%\\python.exe -m pip install -r requirements-windows.txt"
- - "%PYTHON%\\python.exe -m pip install tensorflow"
- "%PYTHON%\\python.exe -m pip install pandas"
build: off
test_script:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "%PYTHON%\\python.exe guild\\scripts\\guild check -nT"
after_test:
- "%PYTHON%\\python.exe -m twine upload --skip-existing dist\\*.whl"
artifacts:
- path: dist\* | 1 | 0.03125 | 0 | 1 |
64284a7e7eba0413fd9ccc06f8503efb826d3d7b | README.md | README.md |
Google's Cloud Robotics Core is an open source platform that provides
infrastructure essential to building and running robotics solutions for business
automation. Cloud Robotics Core makes managing robot fleets easy for developers,
integrators, and operators. It enables:
* packaging and distribution of applications
* secure, bidirectional robot-cloud communication
* easy access to Google Cloud services such as ML, logging, and monitoring.
Cloud Robotics Core is open source and pre-alpha. Support is currently limited
to a small set of early access partners. We will gladly accept contributions
and feedback, but we are making no stability or support guarantees at this
point in time.
# Documentation
Learn more about Google Cloud’s vision for Cloud Robotics at: https://cloud.google.com/cloud-robotics/
Documentation of the platform and related How-to guides can be found at: https://googlecloudrobotics.github.io/core/
# Get Involved
If you want to get involved, please refer to [CONTRIBUTING.md](CONTRIBUTING.md),
reach out to [cloud-robotics-discuss@googlegroups.com](mailto:cloud-robotics-discuss@googlegroups.com)
or ask Stack Overflow questions with [#google-cloud-robotics](https://stackoverflow.com/questions/tagged/google-cloud-robotics).
|
Google's Cloud Robotics Core is an open source platform that provides
infrastructure essential to building and running robotics solutions for business
automation. Cloud Robotics Core makes managing robot fleets easy for developers,
integrators, and operators. It enables:
* packaging and distribution of applications
* secure, bidirectional robot-cloud communication
* easy access to Google Cloud services such as ML, logging, and monitoring.
Cloud Robotics Core is open source and pre-alpha. Support is currently limited
to a small set of early access partners. We will gladly accept contributions
and feedback, but we are making no stability or support guarantees at this
point in time.
# Documentation
Learn more about Google Cloud’s vision for Cloud Robotics at: https://cloud.google.com/cloud-robotics/
Documentation of the platform and related How-to guides can be found at: https://googlecloudrobotics.github.io/core/
# Get Involved
If you want to get involved, please refer to [CONTRIBUTING.md](CONTRIBUTING.md),
reach out to [cloud-robotics-discuss@googlegroups.com](https://groups.google.com/forum/#!forum/cloud-robotics-discuss)
or ask Stack Overflow questions with [#google-cloud-robotics](https://stackoverflow.com/questions/tagged/google-cloud-robotics).
| Change the email link to point to the web-frontend for google groups. | Change the email link to point to the web-frontend for google groups.
This should make things more discoverable, especially since one needs to
sing-up before being able to post.
Fixes #8
Change-Id: I793ed0359bd842700917098c227d33dca91b069a
GitOrigin-RevId: fb4743351e6fd475832d56349fbb3b6e9450a4b9
| Markdown | apache-2.0 | googlecloudrobotics/core,googlecloudrobotics/core,googlecloudrobotics/core | markdown | ## Code Before:
Google's Cloud Robotics Core is an open source platform that provides
infrastructure essential to building and running robotics solutions for business
automation. Cloud Robotics Core makes managing robot fleets easy for developers,
integrators, and operators. It enables:
* packaging and distribution of applications
* secure, bidirectional robot-cloud communication
* easy access to Google Cloud services such as ML, logging, and monitoring.
Cloud Robotics Core is open source and pre-alpha. Support is currently limited
to a small set of early access partners. We will gladly accept contributions
and feedback, but we are making no stability or support guarantees at this
point in time.
# Documentation
Learn more about Google Cloud’s vision for Cloud Robotics at: https://cloud.google.com/cloud-robotics/
Documentation of the platform and related How-to guides can be found at: https://googlecloudrobotics.github.io/core/
# Get Involved
If you want to get involved, please refer to [CONTRIBUTING.md](CONTRIBUTING.md),
reach out to [cloud-robotics-discuss@googlegroups.com](mailto:cloud-robotics-discuss@googlegroups.com)
or ask Stack Overflow questions with [#google-cloud-robotics](https://stackoverflow.com/questions/tagged/google-cloud-robotics).
## Instruction:
Change the email link to point to the web-frontend for google groups.
This should make things more discoverable, especially since one needs to
sing-up before being able to post.
Fixes #8
Change-Id: I793ed0359bd842700917098c227d33dca91b069a
GitOrigin-RevId: fb4743351e6fd475832d56349fbb3b6e9450a4b9
## Code After:
Google's Cloud Robotics Core is an open source platform that provides
infrastructure essential to building and running robotics solutions for business
automation. Cloud Robotics Core makes managing robot fleets easy for developers,
integrators, and operators. It enables:
* packaging and distribution of applications
* secure, bidirectional robot-cloud communication
* easy access to Google Cloud services such as ML, logging, and monitoring.
Cloud Robotics Core is open source and pre-alpha. Support is currently limited
to a small set of early access partners. We will gladly accept contributions
and feedback, but we are making no stability or support guarantees at this
point in time.
# Documentation
Learn more about Google Cloud’s vision for Cloud Robotics at: https://cloud.google.com/cloud-robotics/
Documentation of the platform and related How-to guides can be found at: https://googlecloudrobotics.github.io/core/
# Get Involved
If you want to get involved, please refer to [CONTRIBUTING.md](CONTRIBUTING.md),
reach out to [cloud-robotics-discuss@googlegroups.com](https://groups.google.com/forum/#!forum/cloud-robotics-discuss)
or ask Stack Overflow questions with [#google-cloud-robotics](https://stackoverflow.com/questions/tagged/google-cloud-robotics).
|
Google's Cloud Robotics Core is an open source platform that provides
infrastructure essential to building and running robotics solutions for business
automation. Cloud Robotics Core makes managing robot fleets easy for developers,
integrators, and operators. It enables:
* packaging and distribution of applications
* secure, bidirectional robot-cloud communication
* easy access to Google Cloud services such as ML, logging, and monitoring.
Cloud Robotics Core is open source and pre-alpha. Support is currently limited
to a small set of early access partners. We will gladly accept contributions
and feedback, but we are making no stability or support guarantees at this
point in time.
# Documentation
Learn more about Google Cloud’s vision for Cloud Robotics at: https://cloud.google.com/cloud-robotics/
Documentation of the platform and related How-to guides can be found at: https://googlecloudrobotics.github.io/core/
# Get Involved
If you want to get involved, please refer to [CONTRIBUTING.md](CONTRIBUTING.md),
- reach out to [cloud-robotics-discuss@googlegroups.com](mailto:cloud-robotics-discuss@googlegroups.com)
+ reach out to [cloud-robotics-discuss@googlegroups.com](https://groups.google.com/forum/#!forum/cloud-robotics-discuss)
or ask Stack Overflow questions with [#google-cloud-robotics](https://stackoverflow.com/questions/tagged/google-cloud-robotics).
- | 3 | 0.111111 | 1 | 2 |
9f011cc302e87a24d10861eb559f94ee895bcbcf | partials/creature/modals/full-loot.html | partials/creature/modals/full-loot.html | <div class="modal-header">
<h3 class="modal-title">flags_extra</h3>
</div>
<div class="modal-body">
<textarea class="form-control" rows="30">{{ SQLCode }}</textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalClose()">Close</button>
</div>
| <div class="modal-header">
<h3 class="modal-title">FULL Creature Loot Template Script</h3>
</div>
<div class="modal-body">
<textarea class="form-control" rows="30">{{ SQLCode }}</textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalClose()">Close</button>
</div>
| Fix FULL Creature Loot Template Script title | Fix FULL Creature Loot Template Script title
| HTML | agpl-3.0 | Helias/Keira2,Helias/Keira2 | html | ## Code Before:
<div class="modal-header">
<h3 class="modal-title">flags_extra</h3>
</div>
<div class="modal-body">
<textarea class="form-control" rows="30">{{ SQLCode }}</textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalClose()">Close</button>
</div>
## Instruction:
Fix FULL Creature Loot Template Script title
## Code After:
<div class="modal-header">
<h3 class="modal-title">FULL Creature Loot Template Script</h3>
</div>
<div class="modal-body">
<textarea class="form-control" rows="30">{{ SQLCode }}</textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalClose()">Close</button>
</div>
| <div class="modal-header">
- <h3 class="modal-title">flags_extra</h3>
+ <h3 class="modal-title">FULL Creature Loot Template Script</h3>
</div>
<div class="modal-body">
<textarea class="form-control" rows="30">{{ SQLCode }}</textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalClose()">Close</button>
</div> | 2 | 0.222222 | 1 | 1 |
9eba1cefd59aded2d617d75fd64ecf0276beb1f0 | app/templates/components/order-card.hbs | app/templates/components/order-card.hbs | <div class="event wide ui grid row">
{{#unless device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href="#">
{{widgets/safe-image src=(if order.event.originalImageUrl order.event.originalImageUrl order.event.originalImageUrl)}}
</a>
</div>
{{/unless}}
<div class="ui card thirteen wide computer ten wide tablet sixteen wide mobile column">
<a class="main content" href="{{href-to 'orders.view' order.identifier}}">
{{#smart-overflow class='header'}}
{{order.event.name}}
{{/smart-overflow}}
<div class="meta">
<span class="date">
{{moment-format order.event.startsAt 'ddd, DD MMMM YYYY, h:mm A'}}
</span>
</div>
{{#smart-overflow class='description'}}
{{order.event.shortLocationName}}
{{/smart-overflow}}
</a>
<div class="extra content small text">
<span>
<span>
{{#if isFreeOrder}}
{{t 'Free'}}
{{else}}
{{order.event.paymentCurrency}}{{order.amount}}
{{/if}}
{{t 'order'}}
</span>
<span>#{{order.identifier}}</span>
<span>{{t 'on'}} {{moment-format order.completedAt 'MMMM DD, YYYY h:mm A'}}</span>
</span>
</div>
</div>
</div>
| <div class="event wide ui grid row">
{{#unless device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href="#">
{{widgets/safe-image src=(if order.event.thumbnailImageUrl order.event.thumbnailImageUrl order.event.originalImageUrl)}}
</a>
</div>
{{/unless}}
<div class="ui card thirteen wide computer ten wide tablet sixteen wide mobile column">
<a class="main content" href="{{href-to 'orders.view' order.identifier}}">
{{#smart-overflow class='header'}}
{{order.event.name}}
{{/smart-overflow}}
<div class="meta">
<span class="date">
{{moment-format order.event.startsAt 'ddd, DD MMMM YYYY, h:mm A'}}
</span>
</div>
{{#smart-overflow class='description'}}
{{order.event.shortLocationName}}
{{/smart-overflow}}
</a>
<div class="extra content small text">
<span>
<span>
{{#if isFreeOrder}}
{{t 'Free'}}
{{else}}
{{order.event.paymentCurrency}}{{order.amount}}
{{/if}}
{{t 'order'}}
</span>
<span>#{{order.identifier}}</span>
<span>{{t 'on'}} {{moment-format order.completedAt 'MMMM DD, YYYY h:mm A'}}</span>
</span>
</div>
</div>
</div>
| Optimize images for order card component | Optimize images for order card component
| Handlebars | apache-2.0 | CosmicCoder96/open-event-frontend,ritikamotwani/open-event-frontend,ritikamotwani/open-event-frontend,CosmicCoder96/open-event-frontend,ritikamotwani/open-event-frontend,CosmicCoder96/open-event-frontend | handlebars | ## Code Before:
<div class="event wide ui grid row">
{{#unless device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href="#">
{{widgets/safe-image src=(if order.event.originalImageUrl order.event.originalImageUrl order.event.originalImageUrl)}}
</a>
</div>
{{/unless}}
<div class="ui card thirteen wide computer ten wide tablet sixteen wide mobile column">
<a class="main content" href="{{href-to 'orders.view' order.identifier}}">
{{#smart-overflow class='header'}}
{{order.event.name}}
{{/smart-overflow}}
<div class="meta">
<span class="date">
{{moment-format order.event.startsAt 'ddd, DD MMMM YYYY, h:mm A'}}
</span>
</div>
{{#smart-overflow class='description'}}
{{order.event.shortLocationName}}
{{/smart-overflow}}
</a>
<div class="extra content small text">
<span>
<span>
{{#if isFreeOrder}}
{{t 'Free'}}
{{else}}
{{order.event.paymentCurrency}}{{order.amount}}
{{/if}}
{{t 'order'}}
</span>
<span>#{{order.identifier}}</span>
<span>{{t 'on'}} {{moment-format order.completedAt 'MMMM DD, YYYY h:mm A'}}</span>
</span>
</div>
</div>
</div>
## Instruction:
Optimize images for order card component
## Code After:
<div class="event wide ui grid row">
{{#unless device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href="#">
{{widgets/safe-image src=(if order.event.thumbnailImageUrl order.event.thumbnailImageUrl order.event.originalImageUrl)}}
</a>
</div>
{{/unless}}
<div class="ui card thirteen wide computer ten wide tablet sixteen wide mobile column">
<a class="main content" href="{{href-to 'orders.view' order.identifier}}">
{{#smart-overflow class='header'}}
{{order.event.name}}
{{/smart-overflow}}
<div class="meta">
<span class="date">
{{moment-format order.event.startsAt 'ddd, DD MMMM YYYY, h:mm A'}}
</span>
</div>
{{#smart-overflow class='description'}}
{{order.event.shortLocationName}}
{{/smart-overflow}}
</a>
<div class="extra content small text">
<span>
<span>
{{#if isFreeOrder}}
{{t 'Free'}}
{{else}}
{{order.event.paymentCurrency}}{{order.amount}}
{{/if}}
{{t 'order'}}
</span>
<span>#{{order.identifier}}</span>
<span>{{t 'on'}} {{moment-format order.completedAt 'MMMM DD, YYYY h:mm A'}}</span>
</span>
</div>
</div>
</div>
| <div class="event wide ui grid row">
{{#unless device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href="#">
- {{widgets/safe-image src=(if order.event.originalImageUrl order.event.originalImageUrl order.event.originalImageUrl)}}
? ^^^^^ ^^^^^
+ {{widgets/safe-image src=(if order.event.thumbnailImageUrl order.event.thumbnailImageUrl order.event.originalImageUrl)}}
? ^^^^^ + ^^^^^ +
</a>
</div>
{{/unless}}
<div class="ui card thirteen wide computer ten wide tablet sixteen wide mobile column">
<a class="main content" href="{{href-to 'orders.view' order.identifier}}">
{{#smart-overflow class='header'}}
{{order.event.name}}
{{/smart-overflow}}
<div class="meta">
<span class="date">
{{moment-format order.event.startsAt 'ddd, DD MMMM YYYY, h:mm A'}}
</span>
</div>
{{#smart-overflow class='description'}}
{{order.event.shortLocationName}}
{{/smart-overflow}}
</a>
<div class="extra content small text">
<span>
<span>
{{#if isFreeOrder}}
{{t 'Free'}}
{{else}}
{{order.event.paymentCurrency}}{{order.amount}}
{{/if}}
{{t 'order'}}
</span>
<span>#{{order.identifier}}</span>
<span>{{t 'on'}} {{moment-format order.completedAt 'MMMM DD, YYYY h:mm A'}}</span>
</span>
</div>
</div>
</div> | 2 | 0.052632 | 1 | 1 |
8d0325e28a1836a8afdfc33916d36a3e259ad131 | fil_finder/__init__.py | fil_finder/__init__.py |
__version__ = "1.2.2"
from .analysis import Analysis
from .filfind_class import fil_finder_2D
from .width_profiles import filament_profile
|
__version__ = "1.2.2"
from .analysis import Analysis
from .filfind_class import fil_finder_2D
| Revert importing from the top | Revert importing from the top
| Python | mit | e-koch/FilFinder | python | ## Code Before:
__version__ = "1.2.2"
from .analysis import Analysis
from .filfind_class import fil_finder_2D
from .width_profiles import filament_profile
## Instruction:
Revert importing from the top
## Code After:
__version__ = "1.2.2"
from .analysis import Analysis
from .filfind_class import fil_finder_2D
|
__version__ = "1.2.2"
from .analysis import Analysis
from .filfind_class import fil_finder_2D
- from .width_profiles import filament_profile | 1 | 0.166667 | 0 | 1 |
7e98ecd888dba1f5e19b4e1a2f3f9aebd7756c5c | panoptes_client/user.py | panoptes_client/user.py | from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
LinkResolver.register(User)
LinkResolver.register(User, 'owner')
| from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
def avatar(self):
return User.http_get('{}/avatar'.format(self.id))[0]
LinkResolver.register(User)
LinkResolver.register(User, 'owner')
| Add method to get User's avatar | Add method to get User's avatar
| Python | apache-2.0 | zooniverse/panoptes-python-client | python | ## Code Before:
from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
LinkResolver.register(User)
LinkResolver.register(User, 'owner')
## Instruction:
Add method to get User's avatar
## Code After:
from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
def avatar(self):
return User.http_get('{}/avatar'.format(self.id))[0]
LinkResolver.register(User)
LinkResolver.register(User, 'owner')
| from panoptes_client.panoptes import PanoptesObject, LinkResolver
class User(PanoptesObject):
_api_slug = 'users'
_link_slug = 'users'
_edit_attributes = ()
+ def avatar(self):
+ return User.http_get('{}/avatar'.format(self.id))[0]
+
LinkResolver.register(User)
LinkResolver.register(User, 'owner') | 3 | 0.3 | 3 | 0 |
92d0a09cfb232270d04f82eccc451ee63bd7901a | dev/TOPSECRET/SirBot/lib/sirbot/shutdown.py | dev/TOPSECRET/SirBot/lib/sirbot/shutdown.py |
from json import dumps
def shutdown(config,interinput=None,interoutput=None):
#check for lingering runtime errors
#finishing writing log queues to file
#if none: write clean.start file in config directory
if(config['Interface']['remember position'] == 0):
config['Interface']['map'] = '620x540+50+50'
configPath = config['Path']+'\\config\\sirbot\\config'
configFile = open(configPath,"wb+")
configData = dumps(config)
configFile.write(configData)
configFile.close()
#perhaps add garbage collector control here?
|
def shutdown(config,interinput,interoutput):
#check for lingering runtime errors
#finishing writing log queues to file
#if none: write clean.start file in config directory
pass
#perhaps add garbage collector control here?
| Revert "changes to config during runtime are now saved" | Revert "changes to config during runtime are now saved"
This reverts commit e09a780da17bb2f97d20aafc2c007fe3fc3051bb.
| Python | mit | SirRujak/SirBot | python | ## Code Before:
from json import dumps
def shutdown(config,interinput=None,interoutput=None):
#check for lingering runtime errors
#finishing writing log queues to file
#if none: write clean.start file in config directory
if(config['Interface']['remember position'] == 0):
config['Interface']['map'] = '620x540+50+50'
configPath = config['Path']+'\\config\\sirbot\\config'
configFile = open(configPath,"wb+")
configData = dumps(config)
configFile.write(configData)
configFile.close()
#perhaps add garbage collector control here?
## Instruction:
Revert "changes to config during runtime are now saved"
This reverts commit e09a780da17bb2f97d20aafc2c007fe3fc3051bb.
## Code After:
def shutdown(config,interinput,interoutput):
#check for lingering runtime errors
#finishing writing log queues to file
#if none: write clean.start file in config directory
pass
#perhaps add garbage collector control here?
|
- from json import dumps
-
- def shutdown(config,interinput=None,interoutput=None):
? ----- -----
+ def shutdown(config,interinput,interoutput):
#check for lingering runtime errors
#finishing writing log queues to file
#if none: write clean.start file in config directory
+ pass
- if(config['Interface']['remember position'] == 0):
- config['Interface']['map'] = '620x540+50+50'
-
- configPath = config['Path']+'\\config\\sirbot\\config'
- configFile = open(configPath,"wb+")
- configData = dumps(config)
- configFile.write(configData)
- configFile.close()
#perhaps add garbage collector control here? | 13 | 0.764706 | 2 | 11 |
642a5de297500db1d743df7c71fc9c29a074c3ac | scripts/posttoggle.js | scripts/posttoggle.js | $(function () {
$("img").not(":visible").each(function () {
$(this).data("src", this.src);
this.src = "";
});
var reveal = function (selector) {
var img = $(selector);
img[0].src = img.data("src");
}
});
$("#post_link6").click(function() {
event.preventDefault();
$( ".post.6" ).slideToggle( "slow" );
});
$("#post_link5").click(function() {
event.preventDefault();
$( ".post.5" ).slideToggle( "slow" );
});
$("#post_link4").click(function() {
event.preventDefault();
$( ".post.4" ).slideToggle( "slow" );
});
$("#post_link3").click(function() {
event.preventDefault();
$( ".post.3" ).slideToggle( "slow" );
});
$("#post_link2").click(function() {
event.preventDefault();
$( ".post.2" ).slideToggle( "slow" );
});
$("#post_link1").click(function() {
event.preventDefault();
$( ".post.1" ).slideToggle( "slow" );
});
$("#comment_box_link").click(function() {
event.preventDefault();
$( ".comment_box" ).slideToggle( "slow" );
}); | // $(function () {
// $("img").not(":visible").each(function () {
// $(this).data("src", this.src);
// this.src = "";
// });
// var reveal = function (selector) {
// var img = $(selector);
// img[0].src = img.data("src");
// }
// });
$("#post_link6").click(function() {
event.preventDefault();
$( ".post.6" ).slideToggle( "slow" );
});
$("#post_link5").click(function() {
event.preventDefault();
$( ".post.5" ).slideToggle( "slow" );
});
$("#post_link4").click(function() {
event.preventDefault();
$( ".post.4" ).slideToggle( "slow" );
});
$("#post_link3").click(function() {
event.preventDefault();
$( ".post.3" ).slideToggle( "slow" );
});
$("#post_link2").click(function() {
event.preventDefault();
$( ".post.2" ).slideToggle( "slow" );
});
$("#post_link1").click(function() {
event.preventDefault();
$( ".post.1" ).slideToggle( "slow" );
});
$("#comment_box_link").click(function() {
event.preventDefault();
$( ".comment_box" ).slideToggle( "slow" );
}); | Remove JS to not load hidden divs | Remove JS to not load hidden divs
| JavaScript | mit | sspread/sspread.github.io,sspread/sspread.github.io | javascript | ## Code Before:
$(function () {
$("img").not(":visible").each(function () {
$(this).data("src", this.src);
this.src = "";
});
var reveal = function (selector) {
var img = $(selector);
img[0].src = img.data("src");
}
});
$("#post_link6").click(function() {
event.preventDefault();
$( ".post.6" ).slideToggle( "slow" );
});
$("#post_link5").click(function() {
event.preventDefault();
$( ".post.5" ).slideToggle( "slow" );
});
$("#post_link4").click(function() {
event.preventDefault();
$( ".post.4" ).slideToggle( "slow" );
});
$("#post_link3").click(function() {
event.preventDefault();
$( ".post.3" ).slideToggle( "slow" );
});
$("#post_link2").click(function() {
event.preventDefault();
$( ".post.2" ).slideToggle( "slow" );
});
$("#post_link1").click(function() {
event.preventDefault();
$( ".post.1" ).slideToggle( "slow" );
});
$("#comment_box_link").click(function() {
event.preventDefault();
$( ".comment_box" ).slideToggle( "slow" );
});
## Instruction:
Remove JS to not load hidden divs
## Code After:
// $(function () {
// $("img").not(":visible").each(function () {
// $(this).data("src", this.src);
// this.src = "";
// });
// var reveal = function (selector) {
// var img = $(selector);
// img[0].src = img.data("src");
// }
// });
$("#post_link6").click(function() {
event.preventDefault();
$( ".post.6" ).slideToggle( "slow" );
});
$("#post_link5").click(function() {
event.preventDefault();
$( ".post.5" ).slideToggle( "slow" );
});
$("#post_link4").click(function() {
event.preventDefault();
$( ".post.4" ).slideToggle( "slow" );
});
$("#post_link3").click(function() {
event.preventDefault();
$( ".post.3" ).slideToggle( "slow" );
});
$("#post_link2").click(function() {
event.preventDefault();
$( ".post.2" ).slideToggle( "slow" );
});
$("#post_link1").click(function() {
event.preventDefault();
$( ".post.1" ).slideToggle( "slow" );
});
$("#comment_box_link").click(function() {
event.preventDefault();
$( ".comment_box" ).slideToggle( "slow" );
}); | - $(function () {
+ // $(function () {
? +++
- $("img").not(":visible").each(function () {
+ // $("img").not(":visible").each(function () {
? +++
- $(this).data("src", this.src);
+ // $(this).data("src", this.src);
? +++
- this.src = "";
+ // this.src = "";
? +++
- });
+ // });
? +++
- var reveal = function (selector) {
+ // var reveal = function (selector) {
? +++
- var img = $(selector);
+ // var img = $(selector);
? +++
- img[0].src = img.data("src");
+ // img[0].src = img.data("src");
? +++
- }
- });
+ // }
+ // });
$("#post_link6").click(function() {
event.preventDefault();
$( ".post.6" ).slideToggle( "slow" );
});
$("#post_link5").click(function() {
event.preventDefault();
$( ".post.5" ).slideToggle( "slow" );
});
$("#post_link4").click(function() {
event.preventDefault();
$( ".post.4" ).slideToggle( "slow" );
});
$("#post_link3").click(function() {
event.preventDefault();
$( ".post.3" ).slideToggle( "slow" );
});
$("#post_link2").click(function() {
event.preventDefault();
$( ".post.2" ).slideToggle( "slow" );
});
$("#post_link1").click(function() {
event.preventDefault();
$( ".post.1" ).slideToggle( "slow" );
});
$("#comment_box_link").click(function() {
event.preventDefault();
$( ".comment_box" ).slideToggle( "slow" );
}); | 20 | 0.434783 | 10 | 10 |
27193684cd61363727920ba6155fb2cd56d5bcda | examples/design_by_contract.rb | examples/design_by_contract.rb |
class A
def initialize
@transactions = []
@total = 0
end
def buy price
@transactions << price
@total += price
end
def sell price
@transactions << price # Wrong
@total -= price
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class Object
def assert bool, message = 'Assertion failure'
$stderr.puts message unless bool
end
end
class ContractExample < Aspector::Base
before do |price, &block|
assert price > 0, "Price is #{price}, should be greater than 0"
end
after do |*args, &block|
sum = @transactions.reduce(&:+)
assert @total == sum, "Total(#{@total}) and sum of transactions(#{sum}) do not match"
end
end
##############################
ContractExample.apply A, :methods => %w[buy sell]
a = A.new
a.buy 10
a.buy -10
a.sell 10
|
class A
def initialize
@transactions = []
@total = 0
end
def buy price
@transactions << price
@total += price
end
def sell price
@transactions << price # Wrong
@total -= price
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class Object
def assert bool, message = 'Assertion failure'
unless bool
$stderr.puts message
$stderr.puts caller
end
end
end
class ContractExample < Aspector::Base
before do |price, &block|
assert price > 0, "Price is #{price}, should be greater than 0"
end
after :result_arg => false do |*_, &block|
sum = @transactions.reduce(&:+)
assert @total == sum, "Total(#{@total}) and sum of transactions(#{sum}) do not match"
end
end
##############################
ContractExample.apply A, :methods => %w[buy sell]
a = A.new
a.buy 10
a.sell 10
a.sell -10
| Change design by contract example | Change design by contract example
| Ruby | mit | gcao/aspector,tmster/aspector,tmster/aspector | ruby | ## Code Before:
class A
def initialize
@transactions = []
@total = 0
end
def buy price
@transactions << price
@total += price
end
def sell price
@transactions << price # Wrong
@total -= price
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class Object
def assert bool, message = 'Assertion failure'
$stderr.puts message unless bool
end
end
class ContractExample < Aspector::Base
before do |price, &block|
assert price > 0, "Price is #{price}, should be greater than 0"
end
after do |*args, &block|
sum = @transactions.reduce(&:+)
assert @total == sum, "Total(#{@total}) and sum of transactions(#{sum}) do not match"
end
end
##############################
ContractExample.apply A, :methods => %w[buy sell]
a = A.new
a.buy 10
a.buy -10
a.sell 10
## Instruction:
Change design by contract example
## Code After:
class A
def initialize
@transactions = []
@total = 0
end
def buy price
@transactions << price
@total += price
end
def sell price
@transactions << price # Wrong
@total -= price
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class Object
def assert bool, message = 'Assertion failure'
unless bool
$stderr.puts message
$stderr.puts caller
end
end
end
class ContractExample < Aspector::Base
before do |price, &block|
assert price > 0, "Price is #{price}, should be greater than 0"
end
after :result_arg => false do |*_, &block|
sum = @transactions.reduce(&:+)
assert @total == sum, "Total(#{@total}) and sum of transactions(#{sum}) do not match"
end
end
##############################
ContractExample.apply A, :methods => %w[buy sell]
a = A.new
a.buy 10
a.sell 10
a.sell -10
|
class A
+
def initialize
@transactions = []
@total = 0
end
def buy price
@transactions << price
@total += price
end
def sell price
@transactions << price # Wrong
@total -= price
end
end
##############################
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'aspector'
class Object
def assert bool, message = 'Assertion failure'
+ unless bool
- $stderr.puts message unless bool
? ------------
+ $stderr.puts message
? ++
+ $stderr.puts caller
+ end
end
end
class ContractExample < Aspector::Base
before do |price, &block|
assert price > 0, "Price is #{price}, should be greater than 0"
end
- after do |*args, &block|
+ after :result_arg => false do |*_, &block|
sum = @transactions.reduce(&:+)
assert @total == sum, "Total(#{@total}) and sum of transactions(#{sum}) do not match"
end
end
##############################
ContractExample.apply A, :methods => %w[buy sell]
a = A.new
a.buy 10
- a.buy -10
a.sell 10
+ a.sell -10
| 10 | 0.188679 | 7 | 3 |
32ab53164842658ecd250ec91d9b51eb7a0b8f79 | app/presenters/current_round_player_presenter.rb | app/presenters/current_round_player_presenter.rb | class CurrentRoundPlayerPresenter < SimpleDelegator
def initialize(player:)
super(player)
end
def hand_size
hand.size
end
def to_model
self
end
def to_partial_path
'players/current_round_player'
end
end
| class CurrentRoundPlayerPresenter < SimpleDelegator
def initialize(player:)
super(player)
end
def hand
super.sort
end
def hand_size
hand.size
end
def to_model
self
end
def to_partial_path
'players/current_round_player'
end
end
| Sort the inactive players cards as well | Sort the inactive players cards as well
| Ruby | mit | randomcodenz/canasta,randomcodenz/canasta,randomcodenz/canasta | ruby | ## Code Before:
class CurrentRoundPlayerPresenter < SimpleDelegator
def initialize(player:)
super(player)
end
def hand_size
hand.size
end
def to_model
self
end
def to_partial_path
'players/current_round_player'
end
end
## Instruction:
Sort the inactive players cards as well
## Code After:
class CurrentRoundPlayerPresenter < SimpleDelegator
def initialize(player:)
super(player)
end
def hand
super.sort
end
def hand_size
hand.size
end
def to_model
self
end
def to_partial_path
'players/current_round_player'
end
end
| class CurrentRoundPlayerPresenter < SimpleDelegator
def initialize(player:)
super(player)
+ end
+
+ def hand
+ super.sort
end
def hand_size
hand.size
end
def to_model
self
end
def to_partial_path
'players/current_round_player'
end
end | 4 | 0.235294 | 4 | 0 |
f0bfbd8a9d8cb6d7cb87ea10fd2c2e4eaf41bd37 | .travis.yml | .travis.yml | language: ruby
script: "rake spec"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
notifications:
email: false
| language: ruby
script: "rake spec"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
notifications:
email: false
| Add future parser in Travis matrix | Add future parser in Travis matrix
| YAML | apache-2.0 | echoes-tech/puppet-monit,echoes-tech/puppet-monit | yaml | ## Code Before:
language: ruby
script: "rake spec"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
notifications:
email: false
## Instruction:
Add future parser in Travis matrix
## Code After:
language: ruby
script: "rake spec"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
notifications:
email: false
| language: ruby
script: "rake spec"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
+ - rvm: 2.0.0
+ env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
notifications:
email: false | 2 | 0.181818 | 2 | 0 |
6bb649505ff6c490157daea4dde7e2d3b4784059 | helpers.js | helpers.js | // helper functions
var http = require("http");
exports.urlForLibrary = function (library, file, version) {
return "//cdnjs.cloudflare.com/ajax/libs/" + library + "/" + version + "/" + file;
};
exports.libraryUrls = function (callback) {
http.get("http://cdnjs.com/packages.json", function (res) {
var data = "";
var chunkNumber = 1;
res.on("data", function (chunk) {
data += chunk;
console.log("chunk " + chunkNumber++);
});
res.on("end", function () {
console.log("done");
var libraries = JSON.parse(data).packages;
var result = libraries.map(function (data) {
return exports.urlForLibrary(data.name, data.filename, data.version);
});
callback(result);
});
});
};
| // helper functions
var http = require("http");
exports.urlForLibrary = function (library, file, version) {
return "//cdnjs.cloudflare.com/ajax/libs/" + library + "/" + version + "/" + file;
};
exports.libraryUrls = function (callback) {
http.get("http://cdnjs.com/packages.json", function (res) {
console.log("Downloading the cdnjs package list... (this might take a minute)");
var data = "";
res.on("data", function (chunk) {
data += chunk;
});
res.on("end", function () {
console.log("Done!");
var libraries = JSON.parse(data).packages;
var result = libraries.map(function (data) {
return exports.urlForLibrary(data.name, data.filename, data.version);
});
callback(result);
});
});
};
| Make the console output for downloading the package list more concise | Make the console output for downloading the package list more concise
| JavaScript | mit | nicolasmccurdy/jsbox | javascript | ## Code Before:
// helper functions
var http = require("http");
exports.urlForLibrary = function (library, file, version) {
return "//cdnjs.cloudflare.com/ajax/libs/" + library + "/" + version + "/" + file;
};
exports.libraryUrls = function (callback) {
http.get("http://cdnjs.com/packages.json", function (res) {
var data = "";
var chunkNumber = 1;
res.on("data", function (chunk) {
data += chunk;
console.log("chunk " + chunkNumber++);
});
res.on("end", function () {
console.log("done");
var libraries = JSON.parse(data).packages;
var result = libraries.map(function (data) {
return exports.urlForLibrary(data.name, data.filename, data.version);
});
callback(result);
});
});
};
## Instruction:
Make the console output for downloading the package list more concise
## Code After:
// helper functions
var http = require("http");
exports.urlForLibrary = function (library, file, version) {
return "//cdnjs.cloudflare.com/ajax/libs/" + library + "/" + version + "/" + file;
};
exports.libraryUrls = function (callback) {
http.get("http://cdnjs.com/packages.json", function (res) {
console.log("Downloading the cdnjs package list... (this might take a minute)");
var data = "";
res.on("data", function (chunk) {
data += chunk;
});
res.on("end", function () {
console.log("Done!");
var libraries = JSON.parse(data).packages;
var result = libraries.map(function (data) {
return exports.urlForLibrary(data.name, data.filename, data.version);
});
callback(result);
});
});
};
| // helper functions
var http = require("http");
exports.urlForLibrary = function (library, file, version) {
return "//cdnjs.cloudflare.com/ajax/libs/" + library + "/" + version + "/" + file;
};
exports.libraryUrls = function (callback) {
http.get("http://cdnjs.com/packages.json", function (res) {
+ console.log("Downloading the cdnjs package list... (this might take a minute)");
var data = "";
- var chunkNumber = 1;
res.on("data", function (chunk) {
data += chunk;
- console.log("chunk " + chunkNumber++);
});
res.on("end", function () {
- console.log("done");
? ^
+ console.log("Done!");
? ^ +
var libraries = JSON.parse(data).packages;
var result = libraries.map(function (data) {
return exports.urlForLibrary(data.name, data.filename, data.version);
});
callback(result);
});
});
}; | 5 | 0.178571 | 2 | 3 |
8b66cff2eabbf4467d31f3be391ff35418b3b1a1 | deploy/images.yaml | deploy/images.yaml | translations:
- name: cirros
url: https://github.com/mirantis/virtlet/releases/download/v0.9.3/cirros.img
- name: fedora
url: https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2
| translations:
- name: cirros
url: https://github.com/mirantis/virtlet/releases/download/v0.9.3/cirros.img
- name: fedora
url: https://dl.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.qcow2
| Fix fedora link and update to release 29 | Fix fedora link and update to release 29
Fixes #874
| YAML | apache-2.0 | Mirantis/virtlet,Mirantis/virtlet | yaml | ## Code Before:
translations:
- name: cirros
url: https://github.com/mirantis/virtlet/releases/download/v0.9.3/cirros.img
- name: fedora
url: https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2
## Instruction:
Fix fedora link and update to release 29
Fixes #874
## Code After:
translations:
- name: cirros
url: https://github.com/mirantis/virtlet/releases/download/v0.9.3/cirros.img
- name: fedora
url: https://dl.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.qcow2
| translations:
- name: cirros
url: https://github.com/mirantis/virtlet/releases/download/v0.9.3/cirros.img
- name: fedora
- url: https://download.fedoraproject.org/pub/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2
? --- --- ^ ------ ^ ^
+ url: https://dl.fedoraproject.org/pub/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.qcow2
? ^ ^ ^
| 2 | 0.4 | 1 | 1 |
4f7edf92777fa22fd55f95a570089cdf9f9395a2 | lib/dav4rack/lock.rb | lib/dav4rack/lock.rb | module DAV4Rack
class Lock
def initialize(args={})
@args = args
@store = nil
@args[:created_at] = Time.now
@args[:updated_at] = Time.now
end
def store
@store
end
def store=(s)
raise TypeError.new 'Expecting LockStore' unless s.respond_to? :remove
@store = s
end
def destroy
if(@store)
@store.remove(self)
end
end
def remaining_timeout
@args[:timeout].to_i - (Time.now.to_i - @args[:created_at].to_i)
end
def save
true
end
def method_missing(*args)
if(@args.has_key?(args.first.to_sym))
@args[args.first.to_sym]
elsif(args.first.to_s[-1,1] == '=')
@args[args.first.to_s[0, args.first.to_s.length - 1].to_sym] = args[1]
else
raise NoMethodError.new "Undefined method #{args.first} for #{self}"
end
end
end
end | module DAV4Rack
class Lock
def initialize(args={})
@args = args
@store = nil
@args[:created_at] = Time.now
@args[:updated_at] = Time.now
end
def store
@store
end
def store=(s)
raise TypeError.new 'Expecting LockStore' unless s.respond_to? :remove
@store = s
end
def destroy
if(@store)
@store.remove(self)
end
end
def remaining_timeout
@args[:timeout].to_i - (Time.now.to_i - @args[:created_at].to_i)
end
def method_missing(*args)
if(@args.has_key?(args.first.to_sym))
@args[args.first.to_sym]
elsif(args.first.to_s[-1,1] == '=')
@args[args.first.to_s[0, args.first.to_s.length - 1].to_sym] = args[1]
else
raise NoMethodError.new "Undefined method #{args.first} for #{self}"
end
end
end
end | Remove useless method. Resource will simply check for the method before calling instead of requring it. | Remove useless method. Resource will simply check for the method before calling instead of requring it.
| Ruby | mit | toshih-k/dav4rack,toshih-k/dav4rack | ruby | ## Code Before:
module DAV4Rack
class Lock
def initialize(args={})
@args = args
@store = nil
@args[:created_at] = Time.now
@args[:updated_at] = Time.now
end
def store
@store
end
def store=(s)
raise TypeError.new 'Expecting LockStore' unless s.respond_to? :remove
@store = s
end
def destroy
if(@store)
@store.remove(self)
end
end
def remaining_timeout
@args[:timeout].to_i - (Time.now.to_i - @args[:created_at].to_i)
end
def save
true
end
def method_missing(*args)
if(@args.has_key?(args.first.to_sym))
@args[args.first.to_sym]
elsif(args.first.to_s[-1,1] == '=')
@args[args.first.to_s[0, args.first.to_s.length - 1].to_sym] = args[1]
else
raise NoMethodError.new "Undefined method #{args.first} for #{self}"
end
end
end
end
## Instruction:
Remove useless method. Resource will simply check for the method before calling instead of requring it.
## Code After:
module DAV4Rack
class Lock
def initialize(args={})
@args = args
@store = nil
@args[:created_at] = Time.now
@args[:updated_at] = Time.now
end
def store
@store
end
def store=(s)
raise TypeError.new 'Expecting LockStore' unless s.respond_to? :remove
@store = s
end
def destroy
if(@store)
@store.remove(self)
end
end
def remaining_timeout
@args[:timeout].to_i - (Time.now.to_i - @args[:created_at].to_i)
end
def method_missing(*args)
if(@args.has_key?(args.first.to_sym))
@args[args.first.to_sym]
elsif(args.first.to_s[-1,1] == '=')
@args[args.first.to_s[0, args.first.to_s.length - 1].to_sym] = args[1]
else
raise NoMethodError.new "Undefined method #{args.first} for #{self}"
end
end
end
end | module DAV4Rack
class Lock
def initialize(args={})
@args = args
@store = nil
@args[:created_at] = Time.now
@args[:updated_at] = Time.now
end
def store
@store
end
def store=(s)
raise TypeError.new 'Expecting LockStore' unless s.respond_to? :remove
@store = s
end
def destroy
if(@store)
@store.remove(self)
end
end
def remaining_timeout
@args[:timeout].to_i - (Time.now.to_i - @args[:created_at].to_i)
end
- def save
- true
- end
-
def method_missing(*args)
if(@args.has_key?(args.first.to_sym))
@args[args.first.to_sym]
elsif(args.first.to_s[-1,1] == '=')
@args[args.first.to_s[0, args.first.to_s.length - 1].to_sym] = args[1]
else
raise NoMethodError.new "Undefined method #{args.first} for #{self}"
end
end
end
end | 4 | 0.090909 | 0 | 4 |
aa26ccfc8cb87e1aea33ea18294a74362965aba9 | data/transition-sites/phe_eolc_int.yml | data/transition-sites/phe_eolc_int.yml | ---
site: phe_eolc_int
whitehall_slug: public-health-england
homepage: https://www.gov.uk/government/organisations/public-health-england
tna_timestamp: 20190501131812
host: www.endoflifecare-intelligence.org.uk
aliases:
- endoflifecare-intelligence.org.uk
| ---
site: phe_eolc_int
whitehall_slug: public-health-england
homepage: https://www.gov.uk/government/collections/palliative-and-end-of-life-care
tna_timestamp: 20190501131812
host: www.endoflifecare-intelligence.org.uk
aliases:
- endoflifecare-intelligence.org.uk
| Update endoflifecare-intelligence homepage to collection | Update endoflifecare-intelligence homepage to collection
As requested in https://govuk.zendesk.com/agent/tickets/3797363 the
homepage redirect should be the collection page rather than the
public-health-england homepage.
| YAML | mit | alphagov/transition-config,alphagov/transition-config | yaml | ## Code Before:
---
site: phe_eolc_int
whitehall_slug: public-health-england
homepage: https://www.gov.uk/government/organisations/public-health-england
tna_timestamp: 20190501131812
host: www.endoflifecare-intelligence.org.uk
aliases:
- endoflifecare-intelligence.org.uk
## Instruction:
Update endoflifecare-intelligence homepage to collection
As requested in https://govuk.zendesk.com/agent/tickets/3797363 the
homepage redirect should be the collection page rather than the
public-health-england homepage.
## Code After:
---
site: phe_eolc_int
whitehall_slug: public-health-england
homepage: https://www.gov.uk/government/collections/palliative-and-end-of-life-care
tna_timestamp: 20190501131812
host: www.endoflifecare-intelligence.org.uk
aliases:
- endoflifecare-intelligence.org.uk
| ---
site: phe_eolc_int
whitehall_slug: public-health-england
- homepage: https://www.gov.uk/government/organisations/public-health-england
+ homepage: https://www.gov.uk/government/collections/palliative-and-end-of-life-care
tna_timestamp: 20190501131812
host: www.endoflifecare-intelligence.org.uk
aliases:
- endoflifecare-intelligence.org.uk | 2 | 0.25 | 1 | 1 |
1836f4005fbd5dcc3daa266cb26344033107d9cd | docs/index.rst | docs/index.rst | Fileseq Python API
===================================
fileseq module
-------------------------
.. automodule:: fileseq
:members:
:undoc-members:
:show-inheritance:
fileseq.exceptions module
-------------------------
.. automodule:: fileseq.exceptions
:members:
:show-inheritance:
fileseq.filesequence module
---------------------------
.. automodule:: fileseq.filesequence
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
fileseq.frameset module
-----------------------
.. automodule:: fileseq.frameset
:members:
:undoc-members:
:show-inheritance:
:special-members: __and__, __contains__, __eq__, __ge__, __getitem__, __getstate__, __gt__,
__hash__, __iter__, __le__, __len__, __lt__, __ne__, __or__, __rand__, __repr__,
__reversed__, __ror__, __rsub__, __rxor__, __setstate__, __str__, __sub__, __xor__
| Fileseq Python API
===================================
fileseq module
-------------------------
.. automodule:: fileseq
:members:
:undoc-members:
:show-inheritance:
fileseq.exceptions module
-------------------------
.. automodule:: fileseq.exceptions
:members:
:show-inheritance:
fileseq.filesequence module
---------------------------
.. automodule:: fileseq.filesequence
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
fileseq.frameset module
-----------------------
.. automodule:: fileseq.frameset
:members:
:undoc-members:
:show-inheritance:
:special-members: __and__, __contains__, __eq__, __ge__, __getitem__, __getstate__, __gt__,
__hash__, __iter__, __le__, __len__, __lt__, __ne__, __or__, __rand__, __repr__,
__reversed__, __ror__, __rsub__, __rxor__, __setstate__, __str__, __sub__, __xor__
fileseq.utils module
-------------------------
.. automodule:: fileseq.utils
:members:
:undoc-members:
:show-inheritance:
| Include fileseq.utils in sphinx docs | Include fileseq.utils in sphinx docs
| reStructuredText | mit | sqlboy/fileseq | restructuredtext | ## Code Before:
Fileseq Python API
===================================
fileseq module
-------------------------
.. automodule:: fileseq
:members:
:undoc-members:
:show-inheritance:
fileseq.exceptions module
-------------------------
.. automodule:: fileseq.exceptions
:members:
:show-inheritance:
fileseq.filesequence module
---------------------------
.. automodule:: fileseq.filesequence
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
fileseq.frameset module
-----------------------
.. automodule:: fileseq.frameset
:members:
:undoc-members:
:show-inheritance:
:special-members: __and__, __contains__, __eq__, __ge__, __getitem__, __getstate__, __gt__,
__hash__, __iter__, __le__, __len__, __lt__, __ne__, __or__, __rand__, __repr__,
__reversed__, __ror__, __rsub__, __rxor__, __setstate__, __str__, __sub__, __xor__
## Instruction:
Include fileseq.utils in sphinx docs
## Code After:
Fileseq Python API
===================================
fileseq module
-------------------------
.. automodule:: fileseq
:members:
:undoc-members:
:show-inheritance:
fileseq.exceptions module
-------------------------
.. automodule:: fileseq.exceptions
:members:
:show-inheritance:
fileseq.filesequence module
---------------------------
.. automodule:: fileseq.filesequence
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
fileseq.frameset module
-----------------------
.. automodule:: fileseq.frameset
:members:
:undoc-members:
:show-inheritance:
:special-members: __and__, __contains__, __eq__, __ge__, __getitem__, __getstate__, __gt__,
__hash__, __iter__, __le__, __len__, __lt__, __ne__, __or__, __rand__, __repr__,
__reversed__, __ror__, __rsub__, __rxor__, __setstate__, __str__, __sub__, __xor__
fileseq.utils module
-------------------------
.. automodule:: fileseq.utils
:members:
:undoc-members:
:show-inheritance:
| Fileseq Python API
===================================
fileseq module
-------------------------
.. automodule:: fileseq
:members:
:undoc-members:
:show-inheritance:
fileseq.exceptions module
-------------------------
.. automodule:: fileseq.exceptions
:members:
:show-inheritance:
fileseq.filesequence module
---------------------------
.. automodule:: fileseq.filesequence
:members:
:undoc-members:
:show-inheritance:
:special-members: __getitem__, __iter__, __len__
fileseq.frameset module
-----------------------
.. automodule:: fileseq.frameset
:members:
:undoc-members:
:show-inheritance:
:special-members: __and__, __contains__, __eq__, __ge__, __getitem__, __getstate__, __gt__,
__hash__, __iter__, __le__, __len__, __lt__, __ne__, __or__, __rand__, __repr__,
__reversed__, __ror__, __rsub__, __rxor__, __setstate__, __str__, __sub__, __xor__
+
+ fileseq.utils module
+ -------------------------
+
+ .. automodule:: fileseq.utils
+ :members:
+ :undoc-members:
+ :show-inheritance: | 8 | 0.216216 | 8 | 0 |
be3af3dbbfcb7b86996a60256f57a7588d397ce7 | client/auth/AuthComponent.vue | client/auth/AuthComponent.vue | <template>
<div id="auth-component">
<nav id="auth-component-menu" class="css_menu">
<ul v-if="loggedIn">
<li>
<img id="auth-component-avatar" width="48px" height="48px" :src="avatarUrl" alt="" />
<ul>
<li class="label"><a href="#">{{ name }}</a></li>
<li><a href="#" v-on:click="logout">Logout</a></li>
</ul>
</li>
</ul>
<ul v-else>
<li><a href="#" v-on:click="login">Login</a></li>
</ul>
</nav>
</div>
</template>
<script>
import service from './service';
export default {
name: 'AuthComponent',
data() {
return {
loggedIn: service.isLoggedIn(),
name: service.getName(),
avatarUrl: service.getAvatarUrl(),
};
},
methods: {
login: service.login,
logout: service.logout
}
};
</script>
<style lang='scss'>
@import '../../assets/css/_cssmenu';
#auth-component {
position: absolute;
top: 10px;
left: 10px;
#auth-component-avatar {
border-radius: 25px;
}
}
</style>
| <template>
<div id="auth-component">
<nav id="auth-component-menu" class="css_menu">
<ul v-if="loggedIn">
<li>
<img id="auth-component-avatar" :src="avatarUrl" alt="" />
<ul>
<li class="label"><a href="#">{{ name }}</a></li>
<li><a href="#" v-on:click="logout">Logout</a></li>
</ul>
</li>
</ul>
<ul v-else>
<li><a href="#" v-on:click="login">Login</a></li>
</ul>
</nav>
</div>
</template>
<script>
import service from './service';
export default {
name: 'AuthComponent',
data() {
return {
loggedIn: service.isLoggedIn(),
name: service.getName(),
avatarUrl: service.getAvatarUrl() + '&s=48',
};
},
methods: {
login: service.login,
logout: service.logout
}
};
</script>
<style lang='scss'>
@import '../../assets/css/_cssmenu';
#auth-component {
position: absolute;
top: 10px;
left: 10px;
#auth-component-avatar {
border-radius: 25px;
}
}
</style>
| Reduce avatar size right from the request. | Reduce avatar size right from the request. | Vue | mit | UnboundVR/metavrse-server | vue | ## Code Before:
<template>
<div id="auth-component">
<nav id="auth-component-menu" class="css_menu">
<ul v-if="loggedIn">
<li>
<img id="auth-component-avatar" width="48px" height="48px" :src="avatarUrl" alt="" />
<ul>
<li class="label"><a href="#">{{ name }}</a></li>
<li><a href="#" v-on:click="logout">Logout</a></li>
</ul>
</li>
</ul>
<ul v-else>
<li><a href="#" v-on:click="login">Login</a></li>
</ul>
</nav>
</div>
</template>
<script>
import service from './service';
export default {
name: 'AuthComponent',
data() {
return {
loggedIn: service.isLoggedIn(),
name: service.getName(),
avatarUrl: service.getAvatarUrl(),
};
},
methods: {
login: service.login,
logout: service.logout
}
};
</script>
<style lang='scss'>
@import '../../assets/css/_cssmenu';
#auth-component {
position: absolute;
top: 10px;
left: 10px;
#auth-component-avatar {
border-radius: 25px;
}
}
</style>
## Instruction:
Reduce avatar size right from the request.
## Code After:
<template>
<div id="auth-component">
<nav id="auth-component-menu" class="css_menu">
<ul v-if="loggedIn">
<li>
<img id="auth-component-avatar" :src="avatarUrl" alt="" />
<ul>
<li class="label"><a href="#">{{ name }}</a></li>
<li><a href="#" v-on:click="logout">Logout</a></li>
</ul>
</li>
</ul>
<ul v-else>
<li><a href="#" v-on:click="login">Login</a></li>
</ul>
</nav>
</div>
</template>
<script>
import service from './service';
export default {
name: 'AuthComponent',
data() {
return {
loggedIn: service.isLoggedIn(),
name: service.getName(),
avatarUrl: service.getAvatarUrl() + '&s=48',
};
},
methods: {
login: service.login,
logout: service.logout
}
};
</script>
<style lang='scss'>
@import '../../assets/css/_cssmenu';
#auth-component {
position: absolute;
top: 10px;
left: 10px;
#auth-component-avatar {
border-radius: 25px;
}
}
</style>
| <template>
<div id="auth-component">
<nav id="auth-component-menu" class="css_menu">
<ul v-if="loggedIn">
<li>
- <img id="auth-component-avatar" width="48px" height="48px" :src="avatarUrl" alt="" />
? ---------------------------
+ <img id="auth-component-avatar" :src="avatarUrl" alt="" />
<ul>
<li class="label"><a href="#">{{ name }}</a></li>
<li><a href="#" v-on:click="logout">Logout</a></li>
</ul>
</li>
</ul>
<ul v-else>
<li><a href="#" v-on:click="login">Login</a></li>
</ul>
</nav>
</div>
</template>
<script>
import service from './service';
export default {
name: 'AuthComponent',
data() {
return {
loggedIn: service.isLoggedIn(),
name: service.getName(),
- avatarUrl: service.getAvatarUrl(),
+ avatarUrl: service.getAvatarUrl() + '&s=48',
? ++++++++++
};
},
methods: {
login: service.login,
logout: service.logout
}
};
</script>
<style lang='scss'>
@import '../../assets/css/_cssmenu';
#auth-component {
position: absolute;
top: 10px;
left: 10px;
#auth-component-avatar {
border-radius: 25px;
}
}
</style> | 4 | 0.074074 | 2 | 2 |
3a53512eb431e5d21e752eff8c699c38799c4522 | db/migrate/20150425004430_add_service_level_to_spree_shipping_rates.rb | db/migrate/20150425004430_add_service_level_to_spree_shipping_rates.rb | class AddServiceLevelToSpreeShippingRates < ActiveRecord::Migration
def change
add_column :spree_shipping_rates, :service_level_id, default: nil
end
end
| class AddServiceLevelToSpreeShippingRates < ActiveRecord::Migration
def change
add_column :spree_shipping_rates, :service_level_id, :integer, default: nil
end
end
| Fix shipping rates service level migration | Fix shipping rates service level migration
| Ruby | bsd-3-clause | kvanwagenen/spree_shipping_service_levels,kvanwagenen/spree_shipping_service_levels | ruby | ## Code Before:
class AddServiceLevelToSpreeShippingRates < ActiveRecord::Migration
def change
add_column :spree_shipping_rates, :service_level_id, default: nil
end
end
## Instruction:
Fix shipping rates service level migration
## Code After:
class AddServiceLevelToSpreeShippingRates < ActiveRecord::Migration
def change
add_column :spree_shipping_rates, :service_level_id, :integer, default: nil
end
end
| class AddServiceLevelToSpreeShippingRates < ActiveRecord::Migration
def change
- add_column :spree_shipping_rates, :service_level_id, default: nil
+ add_column :spree_shipping_rates, :service_level_id, :integer, default: nil
? ++++++++++
end
end | 2 | 0.4 | 1 | 1 |
d47e93614468d355c51492f4662cca47c4707cf5 | src/Eloquent.php | src/Eloquent.php | <?php namespace Orchestra\Model;
use Closure;
use Illuminate\Database\Eloquent\Model;
abstract class Eloquent extends Model
{
/**
* Determine if the model instance uses soft deletes.
*
* @return bool
*/
public function isSoftDeleting()
{
return (property_exists($this, 'forceDeleting') && $this->forceDeleting === false);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
*
* @return mixed
*
* @throws \Throwable
*/
public function transaction(Closure $callback)
{
return $this->getConnection()->transaction($callback);
}
}
| <?php namespace Orchestra\Model;
use Closure;
use Illuminate\Database\Eloquent\Model;
abstract class Eloquent extends Model
{
/**
* Determine if the model instance uses soft deletes.
*
* @return bool
*/
public function isSoftDeleting()
{
return (property_exists($this, 'forceDeleting') && $this->forceDeleting === false);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
*
* @return mixed
*
* @throws \Throwable
*/
public function transaction(Closure $callback)
{
return $this->getConnection()->transaction($callback);
}
/**
* Transform each attribute in the model using a callback.
*
* @param callable $callback
*
* @return \Illuminate\Support\Fluent
*/
public function transform(callable $callback)
{
return new Illuminate\Support\Fluent($callback($this));
}
}
| Add Model::transform() for simple transformer support. | Add Model::transform() for simple transformer support.
Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
| PHP | mit | orchestral/model | php | ## Code Before:
<?php namespace Orchestra\Model;
use Closure;
use Illuminate\Database\Eloquent\Model;
abstract class Eloquent extends Model
{
/**
* Determine if the model instance uses soft deletes.
*
* @return bool
*/
public function isSoftDeleting()
{
return (property_exists($this, 'forceDeleting') && $this->forceDeleting === false);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
*
* @return mixed
*
* @throws \Throwable
*/
public function transaction(Closure $callback)
{
return $this->getConnection()->transaction($callback);
}
}
## Instruction:
Add Model::transform() for simple transformer support.
Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
## Code After:
<?php namespace Orchestra\Model;
use Closure;
use Illuminate\Database\Eloquent\Model;
abstract class Eloquent extends Model
{
/**
* Determine if the model instance uses soft deletes.
*
* @return bool
*/
public function isSoftDeleting()
{
return (property_exists($this, 'forceDeleting') && $this->forceDeleting === false);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
*
* @return mixed
*
* @throws \Throwable
*/
public function transaction(Closure $callback)
{
return $this->getConnection()->transaction($callback);
}
/**
* Transform each attribute in the model using a callback.
*
* @param callable $callback
*
* @return \Illuminate\Support\Fluent
*/
public function transform(callable $callback)
{
return new Illuminate\Support\Fluent($callback($this));
}
}
| <?php namespace Orchestra\Model;
use Closure;
use Illuminate\Database\Eloquent\Model;
abstract class Eloquent extends Model
{
/**
* Determine if the model instance uses soft deletes.
*
* @return bool
*/
public function isSoftDeleting()
{
return (property_exists($this, 'forceDeleting') && $this->forceDeleting === false);
}
/**
* Execute a Closure within a transaction.
*
* @param \Closure $callback
*
* @return mixed
*
* @throws \Throwable
*/
public function transaction(Closure $callback)
{
return $this->getConnection()->transaction($callback);
}
+
+ /**
+ * Transform each attribute in the model using a callback.
+ *
+ * @param callable $callback
+ *
+ * @return \Illuminate\Support\Fluent
+ */
+ public function transform(callable $callback)
+ {
+ return new Illuminate\Support\Fluent($callback($this));
+ }
} | 12 | 0.387097 | 12 | 0 |
89a50e0ecdeab8ea158f6bc55f70b39a49b117a4 | composer.json | composer.json | {
"require": {
"rain/raintpl": ">=3.1.0",
"twitter/bootstrap": ">=3.0.3"
}
}
| {
"require": {
"rain/raintpl": "*@stable",
"twitter/bootstrap": "*@stable"
}
}
| Use stable branch for Composer instead | Use stable branch for Composer instead
| JSON | agpl-3.0 | papjul/ade-planning-viewer,papjul/ade-planning-viewer,papjul/ade-planning-viewer | json | ## Code Before:
{
"require": {
"rain/raintpl": ">=3.1.0",
"twitter/bootstrap": ">=3.0.3"
}
}
## Instruction:
Use stable branch for Composer instead
## Code After:
{
"require": {
"rain/raintpl": "*@stable",
"twitter/bootstrap": "*@stable"
}
}
| {
"require": {
- "rain/raintpl": ">=3.1.0",
? ^^^^^^^
+ "rain/raintpl": "*@stable",
? ^^^^^^^^
- "twitter/bootstrap": ">=3.0.3"
? ^^^^^^^
+ "twitter/bootstrap": "*@stable"
? ^^^^^^^^
}
} | 4 | 0.666667 | 2 | 2 |
0f4e270a1e8da7a48582349bd5c9b6cdd61a49c5 | src/docs/package.json | src/docs/package.json | {
"name": "docs",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^3.0.1",
"react-scripts": "0.9.5",
"react-snapshot": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && react-snapshot && mv ./build ../../docs/",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
| {
"name": "docs",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^3.0.1",
"react-scripts": "0.9.5",
"react-snapshot": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && react-snapshot && rm -rf ../../docs && mv ./build ../../docs",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
| Update build flow of doc site | Update build flow of doc site
| JSON | mit | gocreating/redux-draft | json | ## Code Before:
{
"name": "docs",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^3.0.1",
"react-scripts": "0.9.5",
"react-snapshot": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && react-snapshot && mv ./build ../../docs/",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
## Instruction:
Update build flow of doc site
## Code After:
{
"name": "docs",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^3.0.1",
"react-scripts": "0.9.5",
"react-snapshot": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && react-snapshot && rm -rf ../../docs && mv ./build ../../docs",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}
| {
"name": "docs",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^3.0.1",
"react-scripts": "0.9.5",
"react-snapshot": "^1.2.0"
},
"scripts": {
"start": "react-scripts start",
- "build": "react-scripts build && react-snapshot && mv ./build ../../docs/",
? -
+ "build": "react-scripts build && react-snapshot && rm -rf ../../docs && mv ./build ../../docs",
? +++++++++++++++++++++
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
} | 2 | 0.076923 | 1 | 1 |
2e0f06a551027bf5a998148f94625bcd90172856 | README.md | README.md |
Tells the weather of a given location.
It does:
1. Ask the user to input a location.
2. Fetch the weather report from the internet and show the current weather to the user.
Requirements
* Ruby
* Internet connection
Usage
ruby weather.rb
**Please fork and improve me ;)**
|
Tells the weather of a given location.
It does:
1. Ask the user to input a location.
2. Fetch the weather report from the internet and show the current weather to the user.
Requirements
* Ruby
* Internet connection
Usage
ruby weather.rb
You might need an API key from: http://openweathermap.org/appid
**Please fork and improve me ;)**
| Add link how to get API key | Add link how to get API key
| Markdown | mit | RubiesOnTheBlock/consoleweather | markdown | ## Code Before:
Tells the weather of a given location.
It does:
1. Ask the user to input a location.
2. Fetch the weather report from the internet and show the current weather to the user.
Requirements
* Ruby
* Internet connection
Usage
ruby weather.rb
**Please fork and improve me ;)**
## Instruction:
Add link how to get API key
## Code After:
Tells the weather of a given location.
It does:
1. Ask the user to input a location.
2. Fetch the weather report from the internet and show the current weather to the user.
Requirements
* Ruby
* Internet connection
Usage
ruby weather.rb
You might need an API key from: http://openweathermap.org/appid
**Please fork and improve me ;)**
|
Tells the weather of a given location.
It does:
1. Ask the user to input a location.
2. Fetch the weather report from the internet and show the current weather to the user.
Requirements
* Ruby
* Internet connection
Usage
ruby weather.rb
+ You might need an API key from: http://openweathermap.org/appid
+
**Please fork and improve me ;)**
| 2 | 0.105263 | 2 | 0 |
8377555d18a4c5076404a2249c888ee220637e40 | README.md | README.md | Playmate
========
Your Online Playlist Companion
This is intended to be a tool for synchronizing playlists across
different online music services.

### Running the Application
To install any missing dependencies, run
``` javascript
npm install
```
from the root directory. Afterwards you can start the application by
running
``` javascript
node app.js
```
from within the `src` folder. By default the app will listen on port
`8880` and expect your Spotify API credentials to be stored under
`src/credentials/spotify.js` in the format
``` javascript
module.exports.CLIENT_ID = ...
module.exports.CLIENT_SECRET = ...
module.exports.REDIRECT_URI = 'http://localhost:8880/callback';
```
### What Works
* login to Spotify
* browsing Spotify playlists
* downloading Spotify playlists to JSON files
### What Doesn't Work (Yet)
* uploading Spotify playlists from JSON files
* Deezer integration
* Google Play Music integration
| Playmate
========
[](https://opensource.org/licenses/MIT)
Your online playlist companion
This is intended to be a tool for synchronizing playlists across
different online music services.
### Running the Application
To install any missing dependencies, run
```javascript
npm install
```
from the root directory. Afterwards you can start the application by
running
```javascript
node app.js
```
from within the `src` folder. By default the app will listen on port
`8880` and expect your Spotify API credentials to be stored under
`src/credentials/spotify.js` in the format
```javascript
module.exports.CLIENT_ID = ...
module.exports.CLIENT_SECRET = ...
module.exports.REDIRECT_URI = 'http://localhost:8880/callback';
```
### What Works
* Logging in to Spotify
* Browsing Spotify playlists
* Downloading Spotify playlists to JSON files
### What Doesn't Work (Yet)
* Uploading Spotify playlists from JSON files
* Deezer integration
* Google Play Music integration
### Screenshots

| Add license badge and refine readme | Add license badge and refine readme
| Markdown | mit | Johennes/Playmate,Johennes/Playmate | markdown | ## Code Before:
Playmate
========
Your Online Playlist Companion
This is intended to be a tool for synchronizing playlists across
different online music services.

### Running the Application
To install any missing dependencies, run
``` javascript
npm install
```
from the root directory. Afterwards you can start the application by
running
``` javascript
node app.js
```
from within the `src` folder. By default the app will listen on port
`8880` and expect your Spotify API credentials to be stored under
`src/credentials/spotify.js` in the format
``` javascript
module.exports.CLIENT_ID = ...
module.exports.CLIENT_SECRET = ...
module.exports.REDIRECT_URI = 'http://localhost:8880/callback';
```
### What Works
* login to Spotify
* browsing Spotify playlists
* downloading Spotify playlists to JSON files
### What Doesn't Work (Yet)
* uploading Spotify playlists from JSON files
* Deezer integration
* Google Play Music integration
## Instruction:
Add license badge and refine readme
## Code After:
Playmate
========
[](https://opensource.org/licenses/MIT)
Your online playlist companion
This is intended to be a tool for synchronizing playlists across
different online music services.
### Running the Application
To install any missing dependencies, run
```javascript
npm install
```
from the root directory. Afterwards you can start the application by
running
```javascript
node app.js
```
from within the `src` folder. By default the app will listen on port
`8880` and expect your Spotify API credentials to be stored under
`src/credentials/spotify.js` in the format
```javascript
module.exports.CLIENT_ID = ...
module.exports.CLIENT_SECRET = ...
module.exports.REDIRECT_URI = 'http://localhost:8880/callback';
```
### What Works
* Logging in to Spotify
* Browsing Spotify playlists
* Downloading Spotify playlists to JSON files
### What Doesn't Work (Yet)
* Uploading Spotify playlists from JSON files
* Deezer integration
* Google Play Music integration
### Screenshots

| Playmate
========
+ [](https://opensource.org/licenses/MIT)
+
- Your Online Playlist Companion
? ^ ^ ^
+ Your online playlist companion
? ^ ^ ^
This is intended to be a tool for synchronizing playlists across
different online music services.
-
- 
### Running the Application
To install any missing dependencies, run
- ``` javascript
? -
+ ```javascript
npm install
```
from the root directory. Afterwards you can start the application by
running
- ``` javascript
? -
+ ```javascript
node app.js
```
from within the `src` folder. By default the app will listen on port
`8880` and expect your Spotify API credentials to be stored under
`src/credentials/spotify.js` in the format
- ``` javascript
? -
+ ```javascript
module.exports.CLIENT_ID = ...
module.exports.CLIENT_SECRET = ...
module.exports.REDIRECT_URI = 'http://localhost:8880/callback';
```
### What Works
- * login to Spotify
? ^
+ * Logging in to Spotify
? ^ +++++
- * browsing Spotify playlists
? ^
+ * Browsing Spotify playlists
? ^
- * downloading Spotify playlists to JSON files
? ^
+ * Downloading Spotify playlists to JSON files
? ^
### What Doesn't Work (Yet)
- * uploading Spotify playlists from JSON files
? ^
+ * Uploading Spotify playlists from JSON files
? ^
* Deezer integration
* Google Play Music integration
+
+ ### Screenshots
+
+  | 24 | 0.521739 | 14 | 10 |
d2cd086584d7e9b8d9f9f260a4fb80d93c842427 | package.json | package.json | {
"name": "bread-butter",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/multiple-states/bread-butter.git"
},
"devDependencies": {
"grunt": "^0.4.4",
"grunt-autoprefixer": "^0.7.6",
"grunt-bower-concat": "^0.3.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-less": "^0.11.0",
"grunt-contrib-uglify": "^0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-newer": "^1.1.1",
"grunt-pixrem": "^0.1.2",
"load-grunt-config": "^0.16.0"
}
}
| {
"name": "bread-butter",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/multiple-states/bread-butter.git"
},
"devDependencies": {
"grunt": "*",
"grunt-autoprefixer": "*",
"grunt-bower-concat": "*",
"grunt-contrib-clean": "*",
"grunt-contrib-copy": "*",
"grunt-contrib-cssmin": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-less": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-watch": "*",
"grunt-newer": "*",
"grunt-pixrem": "*",
"load-grunt-config": "*"
}
}
| Make new installs always require the latest versions of the Grunt dependencies | Make new installs always require the latest versions of the Grunt dependencies
This is done by using "*" instead of a version number in package.json.
SRC: http://stackoverflow.com/questions/25109172/update-grunt-dev-dependencies
| JSON | mit | multiple-states/bread-butter,multiple-states/bread-butter,multiple-states/bread-butter | json | ## Code Before:
{
"name": "bread-butter",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/multiple-states/bread-butter.git"
},
"devDependencies": {
"grunt": "^0.4.4",
"grunt-autoprefixer": "^0.7.6",
"grunt-bower-concat": "^0.3.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-less": "^0.11.0",
"grunt-contrib-uglify": "^0.4.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-newer": "^1.1.1",
"grunt-pixrem": "^0.1.2",
"load-grunt-config": "^0.16.0"
}
}
## Instruction:
Make new installs always require the latest versions of the Grunt dependencies
This is done by using "*" instead of a version number in package.json.
SRC: http://stackoverflow.com/questions/25109172/update-grunt-dev-dependencies
## Code After:
{
"name": "bread-butter",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/multiple-states/bread-butter.git"
},
"devDependencies": {
"grunt": "*",
"grunt-autoprefixer": "*",
"grunt-bower-concat": "*",
"grunt-contrib-clean": "*",
"grunt-contrib-copy": "*",
"grunt-contrib-cssmin": "*",
"grunt-contrib-jshint": "*",
"grunt-contrib-less": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-watch": "*",
"grunt-newer": "*",
"grunt-pixrem": "*",
"load-grunt-config": "*"
}
}
| {
"name": "bread-butter",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/multiple-states/bread-butter.git"
},
"devDependencies": {
- "grunt": "^0.4.4",
? ^^^^^^
+ "grunt": "*",
? ^
- "grunt-autoprefixer": "^0.7.6",
? ^^^^^^
+ "grunt-autoprefixer": "*",
? ^
- "grunt-bower-concat": "^0.3.0",
? ^^^^^^
+ "grunt-bower-concat": "*",
? ^
- "grunt-contrib-clean": "^0.6.0",
? ^^^^^^
+ "grunt-contrib-clean": "*",
? ^
- "grunt-contrib-copy": "^0.5.0",
? ^^^^^^
+ "grunt-contrib-copy": "*",
? ^
- "grunt-contrib-cssmin": "^0.9.0",
? ^^^^^^
+ "grunt-contrib-cssmin": "*",
? ^
- "grunt-contrib-jshint": "^0.10.0",
? ^^^^^^^
+ "grunt-contrib-jshint": "*",
? ^
- "grunt-contrib-less": "^0.11.0",
? ^^^^^^^
+ "grunt-contrib-less": "*",
? ^
- "grunt-contrib-uglify": "^0.4.1",
? ^^^^^^
+ "grunt-contrib-uglify": "*",
? ^
- "grunt-contrib-watch": "^0.6.1",
? ^^^^^^
+ "grunt-contrib-watch": "*",
? ^
- "grunt-newer": "^1.1.1",
? ^^^^^^
+ "grunt-newer": "*",
? ^
- "grunt-pixrem": "^0.1.2",
? ^^^^^^
+ "grunt-pixrem": "*",
? ^
- "load-grunt-config": "^0.16.0"
? ^^^^^^^
+ "load-grunt-config": "*"
? ^
}
} | 26 | 1.130435 | 13 | 13 |
f460bc066ce0eb37a2c1bd38cc3d470624e6141e | Casks/android-studio-bundle.rb | Casks/android-studio-bundle.rb | class AndroidStudioBundle < Cask
url 'https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-mac.dmg'
homepage 'http://developer.android.com/sdk/installing/studio.html'
version '0.4.2 build-133.970939'
sha256 '28226e2ae7186a12bc196abe28ccc611505e3f6aa84da6afc283d83bb7995a8b'
link 'Android Studio.app'
end
| class AndroidStudioBundle < Cask
url 'https://dl.google.com/android/studio/install/0.5.2/android-studio-bundle-135.1078000-mac.dmg'
homepage 'http://developer.android.com/sdk/installing/studio.html'
version '0.5.2 build-135.1078000'
sha256 'fbb0500af402c8fa5435dfac65e16101a70a22c4c8930f072db52ac41556fb8e'
link 'Android Studio.app'
end
| Upgrade Android Studio Bundle to v0.5.2 | Upgrade Android Studio Bundle to v0.5.2
| Ruby | bsd-2-clause | mokagio/homebrew-cask,mgryszko/homebrew-cask,ericbn/homebrew-cask,jaredsampson/homebrew-cask,3van/homebrew-cask,codeurge/homebrew-cask,JosephViolago/homebrew-cask,franklouwers/homebrew-cask,unasuke/homebrew-cask,scw/homebrew-cask,esebastian/homebrew-cask,gerrymiller/homebrew-cask,morganestes/homebrew-cask,adrianchia/homebrew-cask,nicholsn/homebrew-cask,boydj/homebrew-cask,stonehippo/homebrew-cask,robertgzr/homebrew-cask,aktau/homebrew-cask,ldong/homebrew-cask,jiashuw/homebrew-cask,malob/homebrew-cask,sachin21/homebrew-cask,kevyau/homebrew-cask,xyb/homebrew-cask,genewoo/homebrew-cask,kuno/homebrew-cask,ddm/homebrew-cask,julienlavergne/homebrew-cask,rhendric/homebrew-cask,jpodlech/homebrew-cask,Keloran/homebrew-cask,0xadada/homebrew-cask,af/homebrew-cask,optikfluffel/homebrew-cask,13k/homebrew-cask,garborg/homebrew-cask,Hywan/homebrew-cask,elseym/homebrew-cask,nanoxd/homebrew-cask,BahtiyarB/homebrew-cask,gyndav/homebrew-cask,cprecioso/homebrew-cask,tarwich/homebrew-cask,gabrielizaias/homebrew-cask,rickychilcott/homebrew-cask,tsparber/homebrew-cask,diogodamiani/homebrew-cask,linc01n/homebrew-cask,a1russell/homebrew-cask,elseym/homebrew-cask,norio-nomura/homebrew-cask,williamboman/homebrew-cask,chuanxd/homebrew-cask,miku/homebrew-cask,bkono/homebrew-cask,hakamadare/homebrew-cask,scribblemaniac/homebrew-cask,inta/homebrew-cask,danielbayley/homebrew-cask,asbachb/homebrew-cask,lantrix/homebrew-cask,wastrachan/homebrew-cask,thehunmonkgroup/homebrew-cask,hackhandslabs/homebrew-cask,gerrymiller/homebrew-cask,zorosteven/homebrew-cask,blogabe/homebrew-cask,kryhear/homebrew-cask,maxnordlund/homebrew-cask,chuanxd/homebrew-cask,stephenwade/homebrew-cask,imgarylai/homebrew-cask,Cottser/homebrew-cask,andrewschleifer/homebrew-cask,scottsuch/homebrew-cask,robbiethegeek/homebrew-cask,markhuber/homebrew-cask,lucasmezencio/homebrew-cask,antogg/homebrew-cask,iamso/homebrew-cask,wizonesolutions/homebrew-cask,BahtiyarB/homebrew-cask,buo/homebrew-cask,elnappo/homebrew-cask,mathbunnyru/homebrew-cask,kteru/homebrew-cask,My2ndAngelic/homebrew-cask,stigkj/homebrew-caskroom-cask,taherio/homebrew-cask,wuman/homebrew-cask,paour/homebrew-cask,fazo96/homebrew-cask,freeslugs/homebrew-cask,csmith-palantir/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,dlovitch/homebrew-cask,danielgomezrico/homebrew-cask,pacav69/homebrew-cask,mfpierre/homebrew-cask,MoOx/homebrew-cask,perfide/homebrew-cask,usami-k/homebrew-cask,JoelLarson/homebrew-cask,CameronGarrett/homebrew-cask,cobyism/homebrew-cask,lukasbestle/homebrew-cask,cliffcotino/homebrew-cask,vin047/homebrew-cask,reelsense/homebrew-cask,sanchezm/homebrew-cask,prime8/homebrew-cask,kesara/homebrew-cask,shonjir/homebrew-cask,gmkey/homebrew-cask,lucasmezencio/homebrew-cask,gibsjose/homebrew-cask,anbotero/homebrew-cask,kryhear/homebrew-cask,valepert/homebrew-cask,ctrevino/homebrew-cask,bcomnes/homebrew-cask,AndreTheHunter/homebrew-cask,jonathanwiesel/homebrew-cask,catap/homebrew-cask,williamboman/homebrew-cask,fazo96/homebrew-cask,kevyau/homebrew-cask,jmeridth/homebrew-cask,MatzFan/homebrew-cask,chrisfinazzo/homebrew-cask,crzrcn/homebrew-cask,greg5green/homebrew-cask,afh/homebrew-cask,albertico/homebrew-cask,andyshinn/homebrew-cask,MerelyAPseudonym/homebrew-cask,lumaxis/homebrew-cask,shorshe/homebrew-cask,ericbn/homebrew-cask,Ngrd/homebrew-cask,diguage/homebrew-cask,mariusbutuc/homebrew-cask,Ibuprofen/homebrew-cask,jamesmlees/homebrew-cask,englishm/homebrew-cask,ksato9700/homebrew-cask,feigaochn/homebrew-cask,dieterdemeyer/homebrew-cask,FranklinChen/homebrew-cask,nelsonjchen/homebrew-cask,SentinelWarren/homebrew-cask,a-x-/homebrew-cask,bkono/homebrew-cask,Whoaa512/homebrew-cask,yurikoles/homebrew-cask,artdevjs/homebrew-cask,jgarber623/homebrew-cask,joaocc/homebrew-cask,fkrone/homebrew-cask,mchlrmrz/homebrew-cask,FredLackeyOfficial/homebrew-cask,julionc/homebrew-cask,guylabs/homebrew-cask,psibre/homebrew-cask,petmoo/homebrew-cask,exherb/homebrew-cask,santoshsahoo/homebrew-cask,bgandon/homebrew-cask,vuquoctuan/homebrew-cask,athrunsun/homebrew-cask,dwkns/homebrew-cask,larseggert/homebrew-cask,antogg/homebrew-cask,stevehedrick/homebrew-cask,rogeriopradoj/homebrew-cask,stevenmaguire/homebrew-cask,johnjelinek/homebrew-cask,tonyseek/homebrew-cask,dustinblackman/homebrew-cask,mathbunnyru/homebrew-cask,santoshsahoo/homebrew-cask,englishm/homebrew-cask,otaran/homebrew-cask,pkq/homebrew-cask,thii/homebrew-cask,bchatard/homebrew-cask,AndreTheHunter/homebrew-cask,yumitsu/homebrew-cask,kassi/homebrew-cask,klane/homebrew-cask,josa42/homebrew-cask,hellosky806/homebrew-cask,jconley/homebrew-cask,segiddins/homebrew-cask,zorosteven/homebrew-cask,sysbot/homebrew-cask,a1russell/homebrew-cask,onlynone/homebrew-cask,hswong3i/homebrew-cask,jedahan/homebrew-cask,dcondrey/homebrew-cask,faun/homebrew-cask,hanxue/caskroom,carlmod/homebrew-cask,gibsjose/homebrew-cask,wickedsp1d3r/homebrew-cask,kingthorin/homebrew-cask,illusionfield/homebrew-cask,miguelfrde/homebrew-cask,christophermanning/homebrew-cask,exherb/homebrew-cask,artdevjs/homebrew-cask,nathansgreen/homebrew-cask,m3nu/homebrew-cask,mattfelsen/homebrew-cask,n8henrie/homebrew-cask,usami-k/homebrew-cask,royalwang/homebrew-cask,adriweb/homebrew-cask,nanoxd/homebrew-cask,feniix/homebrew-cask,RickWong/homebrew-cask,bgandon/homebrew-cask,colindunn/homebrew-cask,L2G/homebrew-cask,colindunn/homebrew-cask,spruceb/homebrew-cask,kei-yamazaki/homebrew-cask,reelsense/homebrew-cask,hovancik/homebrew-cask,tranc99/homebrew-cask,mhubig/homebrew-cask,farmerchris/homebrew-cask,theoriginalgri/homebrew-cask,blainesch/homebrew-cask,wesen/homebrew-cask,afdnlw/homebrew-cask,dustinblackman/homebrew-cask,blogabe/homebrew-cask,asins/homebrew-cask,catap/homebrew-cask,mrmachine/homebrew-cask,riyad/homebrew-cask,bendoerr/homebrew-cask,jrwesolo/homebrew-cask,vigosan/homebrew-cask,thii/homebrew-cask,nathanielvarona/homebrew-cask,kingthorin/homebrew-cask,claui/homebrew-cask,rajiv/homebrew-cask,arronmabrey/homebrew-cask,ashishb/homebrew-cask,cobyism/homebrew-cask,lukeadams/homebrew-cask,ksylvan/homebrew-cask,paulbreslin/homebrew-cask,mjdescy/homebrew-cask,shoichiaizawa/homebrew-cask,elyscape/homebrew-cask,stevenmaguire/homebrew-cask,yutarody/homebrew-cask,dspeckhard/homebrew-cask,xcezx/homebrew-cask,MicTech/homebrew-cask,joschi/homebrew-cask,kongslund/homebrew-cask,daften/homebrew-cask,elnappo/homebrew-cask,jconley/homebrew-cask,wayou/homebrew-cask,julienlavergne/homebrew-cask,slack4u/homebrew-cask,iAmGhost/homebrew-cask,nicholsn/homebrew-cask,donbobka/homebrew-cask,mattrobenolt/homebrew-cask,bcaceiro/homebrew-cask,yuhki50/homebrew-cask,otaran/homebrew-cask,arranubels/homebrew-cask,Nitecon/homebrew-cask,FinalDes/homebrew-cask,seanorama/homebrew-cask,ohammersmith/homebrew-cask,timsutton/homebrew-cask,cohei/homebrew-cask,andrewdisley/homebrew-cask,ch3n2k/homebrew-cask,bric3/homebrew-cask,kesara/homebrew-cask,taherio/homebrew-cask,paulombcosta/homebrew-cask,wickedsp1d3r/homebrew-cask,lantrix/homebrew-cask,deiga/homebrew-cask,skatsuta/homebrew-cask,xight/homebrew-cask,shishi/homebrew-cask,jangalinski/homebrew-cask,6uclz1/homebrew-cask,RogerThiede/homebrew-cask,gilesdring/homebrew-cask,wesen/homebrew-cask,goxberry/homebrew-cask,a1russell/homebrew-cask,MircoT/homebrew-cask,tangestani/homebrew-cask,ahvigil/homebrew-cask,andyli/homebrew-cask,wickles/homebrew-cask,mAAdhaTTah/homebrew-cask,mikem/homebrew-cask,delphinus35/homebrew-cask,tarwich/homebrew-cask,hvisage/homebrew-cask,esebastian/homebrew-cask,ianyh/homebrew-cask,brianshumate/homebrew-cask,djakarta-trap/homebrew-myCask,maxnordlund/homebrew-cask,nivanchikov/homebrew-cask,bosr/homebrew-cask,samdoran/homebrew-cask,ingorichter/homebrew-cask,rubenerd/homebrew-cask,Keloran/homebrew-cask,Nitecon/homebrew-cask,inz/homebrew-cask,mlocher/homebrew-cask,paulbreslin/homebrew-cask,renard/homebrew-cask,ddm/homebrew-cask,jpmat296/homebrew-cask,morganestes/homebrew-cask,JacopKane/homebrew-cask,deanmorin/homebrew-cask,mazehall/homebrew-cask,deanmorin/homebrew-cask,lvicentesanchez/homebrew-cask,adelinofaria/homebrew-cask,sanyer/homebrew-cask,gwaldo/homebrew-cask,stephenwade/homebrew-cask,lumaxis/homebrew-cask,qnm/homebrew-cask,rogeriopradoj/homebrew-cask,tangestani/homebrew-cask,jellyfishcoder/homebrew-cask,scribblemaniac/homebrew-cask,muan/homebrew-cask,Saklad5/homebrew-cask,sscotth/homebrew-cask,gmkey/homebrew-cask,ianyh/homebrew-cask,n0ts/homebrew-cask,jangalinski/homebrew-cask,joshka/homebrew-cask,wuman/homebrew-cask,iamso/homebrew-cask,alloy/homebrew-cask,AdamCmiel/homebrew-cask,mfpierre/homebrew-cask,13k/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,samdoran/homebrew-cask,jeroenj/homebrew-cask,xyb/homebrew-cask,skatsuta/homebrew-cask,mikem/homebrew-cask,0rax/homebrew-cask,FranklinChen/homebrew-cask,antogg/homebrew-cask,3van/homebrew-cask,perfide/homebrew-cask,hyuna917/homebrew-cask,tedski/homebrew-cask,ahundt/homebrew-cask,lukeadams/homebrew-cask,caskroom/homebrew-cask,lvicentesanchez/homebrew-cask,bric3/homebrew-cask,aki77/homebrew-cask,retbrown/homebrew-cask,mattrobenolt/homebrew-cask,illusionfield/homebrew-cask,Hywan/homebrew-cask,inz/homebrew-cask,nrlquaker/homebrew-cask,githubutilities/homebrew-cask,dlovitch/homebrew-cask,Ephemera/homebrew-cask,Ibuprofen/homebrew-cask,guylabs/homebrew-cask,SamiHiltunen/homebrew-cask,wayou/homebrew-cask,fanquake/homebrew-cask,squid314/homebrew-cask,neverfox/homebrew-cask,slack4u/homebrew-cask,hovancik/homebrew-cask,ohammersmith/homebrew-cask,wickles/homebrew-cask,kirikiriyamama/homebrew-cask,brianshumate/homebrew-cask,aki77/homebrew-cask,pkq/homebrew-cask,xiongchiamiov/homebrew-cask,rkJun/homebrew-cask,albertico/homebrew-cask,dwihn0r/homebrew-cask,robbiethegeek/homebrew-cask,KosherBacon/homebrew-cask,alloy/homebrew-cask,JosephViolago/homebrew-cask,reitermarkus/homebrew-cask,mahori/homebrew-cask,ptb/homebrew-cask,samnung/homebrew-cask,jayshao/homebrew-cask,mattrobenolt/homebrew-cask,yurikoles/homebrew-cask,kiliankoe/homebrew-cask,jgarber623/homebrew-cask,djmonta/homebrew-cask,larseggert/homebrew-cask,atsuyim/homebrew-cask,kTitan/homebrew-cask,nrlquaker/homebrew-cask,lifepillar/homebrew-cask,royalwang/homebrew-cask,decrement/homebrew-cask,SamiHiltunen/homebrew-cask,dieterdemeyer/homebrew-cask,vmrob/homebrew-cask,rajiv/homebrew-cask,cblecker/homebrew-cask,hackhandslabs/homebrew-cask,morsdyce/homebrew-cask,cclauss/homebrew-cask,codeurge/homebrew-cask,freeslugs/homebrew-cask,zerrot/homebrew-cask,amatos/homebrew-cask,astorije/homebrew-cask,jaredsampson/homebrew-cask,michelegera/homebrew-cask,colindean/homebrew-cask,xyb/homebrew-cask,danielgomezrico/homebrew-cask,andyli/homebrew-cask,kongslund/homebrew-cask,gurghet/homebrew-cask,deizel/homebrew-cask,lauantai/homebrew-cask,Bombenleger/homebrew-cask,thehunmonkgroup/homebrew-cask,greg5green/homebrew-cask,RJHsiao/homebrew-cask,lieuwex/homebrew-cask,ky0615/homebrew-cask-1,gregkare/homebrew-cask,retbrown/homebrew-cask,miccal/homebrew-cask,jeroenseegers/homebrew-cask,patresi/homebrew-cask,paulombcosta/homebrew-cask,zhuzihhhh/homebrew-cask,jacobdam/homebrew-cask,MisumiRize/homebrew-cask,stonehippo/homebrew-cask,ebraminio/homebrew-cask,yurikoles/homebrew-cask,ebraminio/homebrew-cask,flaviocamilo/homebrew-cask,gguillotte/homebrew-cask,ajbw/homebrew-cask,chrisfinazzo/homebrew-cask,sjackman/homebrew-cask,cfillion/homebrew-cask,leonmachadowilcox/homebrew-cask,jawshooah/homebrew-cask,Dremora/homebrew-cask,deiga/homebrew-cask,robertgzr/homebrew-cask,tjnycum/homebrew-cask,vuquoctuan/homebrew-cask,lolgear/homebrew-cask,ctrevino/homebrew-cask,jppelteret/homebrew-cask,josa42/homebrew-cask,nysthee/homebrew-cask,jeroenj/homebrew-cask,mahori/homebrew-cask,m3nu/homebrew-cask,sohtsuka/homebrew-cask,MoOx/homebrew-cask,kiliankoe/homebrew-cask,jasmas/homebrew-cask,kpearson/homebrew-cask,howie/homebrew-cask,rednoah/homebrew-cask,kronicd/homebrew-cask,moimikey/homebrew-cask,julionc/homebrew-cask,christer155/homebrew-cask,delphinus35/homebrew-cask,JacopKane/homebrew-cask,samnung/homebrew-cask,hellosky806/homebrew-cask,ahbeng/homebrew-cask,vmrob/homebrew-cask,coneman/homebrew-cask,tdsmith/homebrew-cask,MicTech/homebrew-cask,ashishb/homebrew-cask,gyugyu/homebrew-cask,sgnh/homebrew-cask,djmonta/homebrew-cask,daften/homebrew-cask,wKovacs64/homebrew-cask,sirodoht/homebrew-cask,ptb/homebrew-cask,jspahrsummers/homebrew-cask,mgryszko/homebrew-cask,aktau/homebrew-cask,seanorama/homebrew-cask,xalep/homebrew-cask,sanyer/homebrew-cask,mjgardner/homebrew-cask,imgarylai/homebrew-cask,AnastasiaSulyagina/homebrew-cask,forevergenin/homebrew-cask,johnste/homebrew-cask,reitermarkus/homebrew-cask,valepert/homebrew-cask,johnjelinek/homebrew-cask,rkJun/homebrew-cask,y00rb/homebrew-cask,diguage/homebrew-cask,tmoreira2020/homebrew,winkelsdorf/homebrew-cask,FredLackeyOfficial/homebrew-cask,nathanielvarona/homebrew-cask,bsiddiqui/homebrew-cask,dlackty/homebrew-cask,a-x-/homebrew-cask,xalep/homebrew-cask,pinut/homebrew-cask,lolgear/homebrew-cask,dlackty/homebrew-cask,andersonba/homebrew-cask,okket/homebrew-cask,sebcode/homebrew-cask,miku/homebrew-cask,helloIAmPau/homebrew-cask,hyuna917/homebrew-cask,fanquake/homebrew-cask,remko/homebrew-cask,neil-ca-moore/homebrew-cask,dictcp/homebrew-cask,cclauss/homebrew-cask,FinalDes/homebrew-cask,giannitm/homebrew-cask,akiomik/homebrew-cask,xight/homebrew-cask,miccal/homebrew-cask,xtian/homebrew-cask,coeligena/homebrew-customized,hswong3i/homebrew-cask,enriclluelles/homebrew-cask,chrisRidgers/homebrew-cask,Amorymeltzer/homebrew-cask,ky0615/homebrew-cask-1,ftiff/homebrew-cask,feniix/homebrew-cask,uetchy/homebrew-cask,doits/homebrew-cask,schneidmaster/homebrew-cask,yuhki50/homebrew-cask,ksato9700/homebrew-cask,yutarody/homebrew-cask,j13k/homebrew-cask,frapposelli/homebrew-cask,shishi/homebrew-cask,sirodoht/homebrew-cask,nivanchikov/homebrew-cask,kolomiichenko/homebrew-cask,rednoah/homebrew-cask,optikfluffel/homebrew-cask,mazehall/homebrew-cask,toonetown/homebrew-cask,chadcatlett/caskroom-homebrew-cask,nelsonjchen/homebrew-cask,kostasdizas/homebrew-cask,pgr0ss/homebrew-cask,xtian/homebrew-cask,singingwolfboy/homebrew-cask,arranubels/homebrew-cask,slnovak/homebrew-cask,boydj/homebrew-cask,gord1anknot/homebrew-cask,gabrielizaias/homebrew-cask,corbt/homebrew-cask,coeligena/homebrew-customized,chadcatlett/caskroom-homebrew-cask,deiga/homebrew-cask,devmynd/homebrew-cask,alebcay/homebrew-cask,rhendric/homebrew-cask,kamilboratynski/homebrew-cask,KosherBacon/homebrew-cask,crmne/homebrew-cask,kpearson/homebrew-cask,tolbkni/homebrew-cask,djakarta-trap/homebrew-myCask,shanonvl/homebrew-cask,xcezx/homebrew-cask,nightscape/homebrew-cask,gguillotte/homebrew-cask,JacopKane/homebrew-cask,dunn/homebrew-cask,seanzxx/homebrew-cask,Cottser/homebrew-cask,Fedalto/homebrew-cask,boecko/homebrew-cask,Labutin/homebrew-cask,ericbn/homebrew-cask,Ketouem/homebrew-cask,cedwardsmedia/homebrew-cask,gregkare/homebrew-cask,asins/homebrew-cask,githubutilities/homebrew-cask,MichaelPei/homebrew-cask,vigosan/homebrew-cask,d/homebrew-cask,underyx/homebrew-cask,Ngrd/homebrew-cask,samshadwell/homebrew-cask,sscotth/homebrew-cask,ksylvan/homebrew-cask,RickWong/homebrew-cask,wKovacs64/homebrew-cask,kievechua/homebrew-cask,josa42/homebrew-cask,amatos/homebrew-cask,ywfwj2008/homebrew-cask,shoichiaizawa/homebrew-cask,Dremora/homebrew-cask,ch3n2k/homebrew-cask,yutarody/homebrew-cask,nshemonsky/homebrew-cask,fly19890211/homebrew-cask,retrography/homebrew-cask,pablote/homebrew-cask,rajiv/homebrew-cask,bcaceiro/homebrew-cask,riyad/homebrew-cask,wolflee/homebrew-cask,christer155/homebrew-cask,tangestani/homebrew-cask,bchatard/homebrew-cask,decrement/homebrew-cask,jgarber623/homebrew-cask,mwek/homebrew-cask,mhubig/homebrew-cask,shoichiaizawa/homebrew-cask,gerrypower/homebrew-cask,aguynamedryan/homebrew-cask,renard/homebrew-cask,askl56/homebrew-cask,rubenerd/homebrew-cask,otzy007/homebrew-cask,tyage/homebrew-cask,nathancahill/homebrew-cask,adelinofaria/homebrew-cask,otzy007/homebrew-cask,MerelyAPseudonym/homebrew-cask,tedski/homebrew-cask,jeanregisser/homebrew-cask,ponychicken/homebrew-customcask,patresi/homebrew-cask,kesara/homebrew-cask,hanxue/caskroom,neil-ca-moore/homebrew-cask,napaxton/homebrew-cask,corbt/homebrew-cask,paour/homebrew-cask,jbeagley52/homebrew-cask,okket/homebrew-cask,lalyos/homebrew-cask,mjgardner/homebrew-cask,Amorymeltzer/homebrew-cask,lukasbestle/homebrew-cask,MisumiRize/homebrew-cask,tedbundyjr/homebrew-cask,mauricerkelly/homebrew-cask,phpwutz/homebrew-cask,sebcode/homebrew-cask,wastrachan/homebrew-cask,sachin21/homebrew-cask,zmwangx/homebrew-cask,fwiesel/homebrew-cask,epmatsw/homebrew-cask,elyscape/homebrew-cask,jasmas/homebrew-cask,winkelsdorf/homebrew-cask,kteru/homebrew-cask,dvdoliveira/homebrew-cask,adriweb/homebrew-cask,squid314/homebrew-cask,johntrandall/homebrew-cask,leipert/homebrew-cask,coeligena/homebrew-customized,MircoT/homebrew-cask,af/homebrew-cask,ayohrling/homebrew-cask,huanzhang/homebrew-cask,axodys/homebrew-cask,thomanq/homebrew-cask,andrewschleifer/homebrew-cask,mkozjak/homebrew-cask,johan/homebrew-cask,Philosoft/homebrew-cask,nshemonsky/homebrew-cask,skyyuan/homebrew-cask,dwkns/homebrew-cask,alexg0/homebrew-cask,andrewdisley/homebrew-cask,neverfox/homebrew-cask,ajbw/homebrew-cask,shanonvl/homebrew-cask,leipert/homebrew-cask,cedwardsmedia/homebrew-cask,alebcay/homebrew-cask,tyage/homebrew-cask,qbmiller/homebrew-cask,caskroom/homebrew-cask,uetchy/homebrew-cask,Whoaa512/homebrew-cask,tjt263/homebrew-cask,markthetech/homebrew-cask,Ketouem/homebrew-cask,LaurentFough/homebrew-cask,klane/homebrew-cask,astorije/homebrew-cask,boecko/homebrew-cask,m3nu/homebrew-cask,yurrriq/homebrew-cask,bsiddiqui/homebrew-cask,jiashuw/homebrew-cask,jspahrsummers/homebrew-cask,supriyantomaftuh/homebrew-cask,6uclz1/homebrew-cask,stephenwade/homebrew-cask,lcasey001/homebrew-cask,morsdyce/homebrew-cask,qnm/homebrew-cask,blainesch/homebrew-cask,jhowtan/homebrew-cask,andyshinn/homebrew-cask,julionc/homebrew-cask,kronicd/homebrew-cask,gyndav/homebrew-cask,kievechua/homebrew-cask,sjackman/homebrew-cask,tedbundyjr/homebrew-cask,helloIAmPau/homebrew-cask,moonboots/homebrew-cask,tonyseek/homebrew-cask,ldong/homebrew-cask,hvisage/homebrew-cask,jawshooah/homebrew-cask,jpodlech/homebrew-cask,Amorymeltzer/homebrew-cask,paour/homebrew-cask,fly19890211/homebrew-cask,scw/homebrew-cask,sanyer/homebrew-cask,neverfox/homebrew-cask,My2ndAngelic/homebrew-cask,fharbe/homebrew-cask,mwilmer/homebrew-cask,gord1anknot/homebrew-cask,danielbayley/homebrew-cask,ninjahoahong/homebrew-cask,mahori/homebrew-cask,d/homebrew-cask,AdamCmiel/homebrew-cask,scribblemaniac/homebrew-cask,deizel/homebrew-cask,alebcay/homebrew-cask,garborg/homebrew-cask,moimikey/homebrew-cask,jellyfishcoder/homebrew-cask,claui/homebrew-cask,jonathanwiesel/homebrew-cask,Gasol/homebrew-cask,SentinelWarren/homebrew-cask,mwek/homebrew-cask,opsdev-ws/homebrew-cask,renaudguerin/homebrew-cask,mokagio/homebrew-cask,sgnh/homebrew-cask,bdhess/homebrew-cask,dwihn0r/homebrew-cask,pkq/homebrew-cask,JikkuJose/homebrew-cask,lieuwex/homebrew-cask,nathancahill/homebrew-cask,toonetown/homebrew-cask,jhowtan/homebrew-cask,katoquro/homebrew-cask,AnastasiaSulyagina/homebrew-cask,epmatsw/homebrew-cask,remko/homebrew-cask,fharbe/homebrew-cask,zerrot/homebrew-cask,zeusdeux/homebrew-cask,nickpellant/homebrew-cask,janlugt/homebrew-cask,joschi/homebrew-cask,Fedalto/homebrew-cask,giannitm/homebrew-cask,feigaochn/homebrew-cask,stigkj/homebrew-caskroom-cask,johnste/homebrew-cask,sscotth/homebrew-cask,psibre/homebrew-cask,JoelLarson/homebrew-cask,sosedoff/homebrew-cask,moonboots/homebrew-cask,gwaldo/homebrew-cask,arronmabrey/homebrew-cask,zmwangx/homebrew-cask,kostasdizas/homebrew-cask,gyugyu/homebrew-cask,adrianchia/homebrew-cask,MatzFan/homebrew-cask,nicolas-brousse/homebrew-cask,guerrero/homebrew-cask,axodys/homebrew-cask,sanchezm/homebrew-cask,jeanregisser/homebrew-cask,koenrh/homebrew-cask,yurrriq/homebrew-cask,jalaziz/homebrew-cask,gurghet/homebrew-cask,reitermarkus/homebrew-cask,malob/homebrew-cask,bcomnes/homebrew-cask,uetchy/homebrew-cask,nathansgreen/homebrew-cask,troyxmccall/homebrew-cask,zeusdeux/homebrew-cask,tranc99/homebrew-cask,johndbritton/homebrew-cask,jmeridth/homebrew-cask,dezon/homebrew-cask,jen20/homebrew-cask,0xadada/homebrew-cask,bric3/homebrew-cask,akiomik/homebrew-cask,thomanq/homebrew-cask,muan/homebrew-cask,nathanielvarona/homebrew-cask,Bombenleger/homebrew-cask,jamesmlees/homebrew-cask,stonehippo/homebrew-cask,jacobdam/homebrew-cask,BenjaminHCCarr/homebrew-cask,markthetech/homebrew-cask,mlocher/homebrew-cask,jacobbednarz/homebrew-cask,flaviocamilo/homebrew-cask,haha1903/homebrew-cask,kirikiriyamama/homebrew-cask,joaoponceleao/homebrew-cask,iAmGhost/homebrew-cask,huanzhang/homebrew-cask,kkdd/homebrew-cask,andersonba/homebrew-cask,jpmat296/homebrew-cask,rcuza/homebrew-cask,nicolas-brousse/homebrew-cask,norio-nomura/homebrew-cask,athrunsun/homebrew-cask,enriclluelles/homebrew-cask,mathbunnyru/homebrew-cask,pinut/homebrew-cask,victorpopkov/homebrew-cask,JikkuJose/homebrew-cask,hanxue/caskroom,moogar0880/homebrew-cask,mindriot101/homebrew-cask,vitorgalvao/homebrew-cask,zchee/homebrew-cask,fwiesel/homebrew-cask,mAAdhaTTah/homebrew-cask,RogerThiede/homebrew-cask,mchlrmrz/homebrew-cask,kamilboratynski/homebrew-cask,ponychicken/homebrew-customcask,miguelfrde/homebrew-cask,drostron/homebrew-cask,petmoo/homebrew-cask,atsuyim/homebrew-cask,MichaelPei/homebrew-cask,joshka/homebrew-cask,puffdad/homebrew-cask,nrlquaker/homebrew-cask,drostron/homebrew-cask,barravi/homebrew-cask,leonmachadowilcox/homebrew-cask,kei-yamazaki/homebrew-cask,ywfwj2008/homebrew-cask,goxberry/homebrew-cask,slnovak/homebrew-cask,gilesdring/homebrew-cask,jalaziz/homebrew-cask,carlmod/homebrew-cask,buo/homebrew-cask,jtriley/homebrew-cask,shonjir/homebrew-cask,gyndav/homebrew-cask,rickychilcott/homebrew-cask,n8henrie/homebrew-cask,bosr/homebrew-cask,coneman/homebrew-cask,haha1903/homebrew-cask,L2G/homebrew-cask,ahvigil/homebrew-cask,faun/homebrew-cask,mindriot101/homebrew-cask,cblecker/homebrew-cask,mingzhi22/homebrew-cask,johan/homebrew-cask,singingwolfboy/homebrew-cask,shonjir/homebrew-cask,michelegera/homebrew-cask,lcasey001/homebrew-cask,renaudguerin/homebrew-cask,jppelteret/homebrew-cask,lifepillar/homebrew-cask,tjt263/homebrew-cask,mrmachine/homebrew-cask,aguynamedryan/homebrew-cask,epardee/homebrew-cask,stevehedrick/homebrew-cask,dictcp/homebrew-cask,linc01n/homebrew-cask,jeroenseegers/homebrew-cask,wmorin/homebrew-cask,dictcp/homebrew-cask,moimikey/homebrew-cask,timsutton/homebrew-cask,tjnycum/homebrew-cask,cohei/homebrew-cask,chino/homebrew-cask,kingthorin/homebrew-cask,cfillion/homebrew-cask,crmne/homebrew-cask,blogabe/homebrew-cask,howie/homebrew-cask,markhuber/homebrew-cask,segiddins/homebrew-cask,diogodamiani/homebrew-cask,franklouwers/homebrew-cask,barravi/homebrew-cask,timsutton/homebrew-cask,JosephViolago/homebrew-cask,fkrone/homebrew-cask,wolflee/homebrew-cask,dvdoliveira/homebrew-cask,ninjahoahong/homebrew-cask,alexg0/homebrew-cask,xight/homebrew-cask,Ephemera/homebrew-cask,mingzhi22/homebrew-cask,malob/homebrew-cask,rcuza/homebrew-cask,gustavoavellar/homebrew-cask,Labutin/homebrew-cask,skyyuan/homebrew-cask,flada-auxv/homebrew-cask,jedahan/homebrew-cask,kuno/homebrew-cask,ahbeng/homebrew-cask,mauricerkelly/homebrew-cask,samshadwell/homebrew-cask,esebastian/homebrew-cask,qbmiller/homebrew-cask,jtriley/homebrew-cask,Saklad5/homebrew-cask,afdnlw/homebrew-cask,puffdad/homebrew-cask,ayohrling/homebrew-cask,farmerchris/homebrew-cask,napaxton/homebrew-cask,frapposelli/homebrew-cask,jacobbednarz/homebrew-cask,andrewdisley/homebrew-cask,askl56/homebrew-cask,zchee/homebrew-cask,xiongchiamiov/homebrew-cask,moogar0880/homebrew-cask,tolbkni/homebrew-cask,kassi/homebrew-cask,syscrusher/homebrew-cask,nysthee/homebrew-cask,chrisfinazzo/homebrew-cask,phpwutz/homebrew-cask,jayshao/homebrew-cask,joaocc/homebrew-cask,singingwolfboy/homebrew-cask,BenjaminHCCarr/homebrew-cask,pacav69/homebrew-cask,epardee/homebrew-cask,anbotero/homebrew-cask,dunn/homebrew-cask,spruceb/homebrew-cask,cobyism/homebrew-cask,tdsmith/homebrew-cask,rogeriopradoj/homebrew-cask,zhuzihhhh/homebrew-cask,mwean/homebrew-cask,tsparber/homebrew-cask,hakamadare/homebrew-cask,johndbritton/homebrew-cask,cblecker/homebrew-cask,CameronGarrett/homebrew-cask,hristozov/homebrew-cask,ftiff/homebrew-cask,inta/homebrew-cask,prime8/homebrew-cask,tan9/homebrew-cask,vin047/homebrew-cask,johntrandall/homebrew-cask,shorshe/homebrew-cask,BenjaminHCCarr/homebrew-cask,vitorgalvao/homebrew-cask,xakraz/homebrew-cask,alexg0/homebrew-cask,pablote/homebrew-cask,hristozov/homebrew-cask,nickpellant/homebrew-cask,dcondrey/homebrew-cask,troyxmccall/homebrew-cask,imgarylai/homebrew-cask,dspeckhard/homebrew-cask,gerrypower/homebrew-cask,nightscape/homebrew-cask,malford/homebrew-cask,wizonesolutions/homebrew-cask,mwilmer/homebrew-cask,seanzxx/homebrew-cask,0rax/homebrew-cask,supriyantomaftuh/homebrew-cask,joshka/homebrew-cask,jrwesolo/homebrew-cask,dezon/homebrew-cask,flada-auxv/homebrew-cask,forevergenin/homebrew-cask,mariusbutuc/homebrew-cask,schneidmaster/homebrew-cask,cprecioso/homebrew-cask,sosedoff/homebrew-cask,kkdd/homebrew-cask,mattfelsen/homebrew-cask,mkozjak/homebrew-cask,ahundt/homebrew-cask,lauantai/homebrew-cask,victorpopkov/homebrew-cask,sparrc/homebrew-cask,christophermanning/homebrew-cask,mwean/homebrew-cask,retrography/homebrew-cask,mjdescy/homebrew-cask,LaurentFough/homebrew-cask,mishari/homebrew-cask,donbobka/homebrew-cask,scottsuch/homebrew-cask,wmorin/homebrew-cask,optikfluffel/homebrew-cask,underyx/homebrew-cask,Gasol/homebrew-cask,csmith-palantir/homebrew-cask,malford/homebrew-cask,onlynone/homebrew-cask,j13k/homebrew-cask,y00rb/homebrew-cask,kTitan/homebrew-cask,sohtsuka/homebrew-cask,ingorichter/homebrew-cask,opsdev-ws/homebrew-cask,gustavoavellar/homebrew-cask,tan9/homebrew-cask,bendoerr/homebrew-cask,cliffcotino/homebrew-cask,kolomiichenko/homebrew-cask,unasuke/homebrew-cask,RJHsiao/homebrew-cask,janlugt/homebrew-cask,miccal/homebrew-cask,genewoo/homebrew-cask,pgr0ss/homebrew-cask,yumitsu/homebrew-cask,jalaziz/homebrew-cask,casidiablo/homebrew-cask,lalyos/homebrew-cask,doits/homebrew-cask,syscrusher/homebrew-cask,adrianchia/homebrew-cask,koenrh/homebrew-cask,afh/homebrew-cask,joaoponceleao/homebrew-cask,sysbot/homebrew-cask,jen20/homebrew-cask,bdhess/homebrew-cask,devmynd/homebrew-cask,katoquro/homebrew-cask,claui/homebrew-cask,mchlrmrz/homebrew-cask,mishari/homebrew-cask,mjgardner/homebrew-cask,chino/homebrew-cask,asbachb/homebrew-cask,Philosoft/homebrew-cask,jbeagley52/homebrew-cask,n0ts/homebrew-cask,danielbayley/homebrew-cask,Ephemera/homebrew-cask,theoriginalgri/homebrew-cask,guerrero/homebrew-cask,sparrc/homebrew-cask,colindean/homebrew-cask,wmorin/homebrew-cask,casidiablo/homebrew-cask,tmoreira2020/homebrew,joschi/homebrew-cask,scottsuch/homebrew-cask,chrisRidgers/homebrew-cask,xakraz/homebrew-cask,winkelsdorf/homebrew-cask,tjnycum/homebrew-cask,crzrcn/homebrew-cask | ruby | ## Code Before:
class AndroidStudioBundle < Cask
url 'https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-mac.dmg'
homepage 'http://developer.android.com/sdk/installing/studio.html'
version '0.4.2 build-133.970939'
sha256 '28226e2ae7186a12bc196abe28ccc611505e3f6aa84da6afc283d83bb7995a8b'
link 'Android Studio.app'
end
## Instruction:
Upgrade Android Studio Bundle to v0.5.2
## Code After:
class AndroidStudioBundle < Cask
url 'https://dl.google.com/android/studio/install/0.5.2/android-studio-bundle-135.1078000-mac.dmg'
homepage 'http://developer.android.com/sdk/installing/studio.html'
version '0.5.2 build-135.1078000'
sha256 'fbb0500af402c8fa5435dfac65e16101a70a22c4c8930f072db52ac41556fb8e'
link 'Android Studio.app'
end
| class AndroidStudioBundle < Cask
- url 'https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-mac.dmg'
? ^ ^ ^ ^^^
+ url 'https://dl.google.com/android/studio/install/0.5.2/android-studio-bundle-135.1078000-mac.dmg'
? ^ ^ ^^ + ^^
homepage 'http://developer.android.com/sdk/installing/studio.html'
- version '0.4.2 build-133.970939'
? ^ ^ ^ ^^^
+ version '0.5.2 build-135.1078000'
? ^ ^ ^^ + ^^
- sha256 '28226e2ae7186a12bc196abe28ccc611505e3f6aa84da6afc283d83bb7995a8b'
+ sha256 'fbb0500af402c8fa5435dfac65e16101a70a22c4c8930f072db52ac41556fb8e'
link 'Android Studio.app'
end | 6 | 0.857143 | 3 | 3 |
b80e50c0094e6a31f17432a979665b299ce519d9 | src/components/Main.js | src/components/Main.js | require('normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { background: 'red' };
}
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice" style={{ background: this.state.background }}>Please edit <code>src/components/Main.js</code> to get started!</div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
| require('normalize.css');
require('styles/App.css');
import React from 'react';
let someUnusedStuff = 'hello';
let yeomanImage = require('../images/yeoman.png');
const one = 1;
const moreStuff = [{}]
console.info([1,2,3].map(console.info));
class AppComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { background: 'red' };
}
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice" style={{ background: this.state.background }}>Please edit <code>src/components/Main.js</code> to get started!</div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
| Add in stuff at the top of the file | Add in stuff at the top of the file
| JavaScript | mit | univa-new-user/my-app,univa-new-user/my-app | javascript | ## Code Before:
require('normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { background: 'red' };
}
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice" style={{ background: this.state.background }}>Please edit <code>src/components/Main.js</code> to get started!</div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
## Instruction:
Add in stuff at the top of the file
## Code After:
require('normalize.css');
require('styles/App.css');
import React from 'react';
let someUnusedStuff = 'hello';
let yeomanImage = require('../images/yeoman.png');
const one = 1;
const moreStuff = [{}]
console.info([1,2,3].map(console.info));
class AppComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { background: 'red' };
}
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice" style={{ background: this.state.background }}>Please edit <code>src/components/Main.js</code> to get started!</div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
| require('normalize.css');
require('styles/App.css');
import React from 'react';
+ let someUnusedStuff = 'hello';
let yeomanImage = require('../images/yeoman.png');
+
+
+ const one = 1;
+ const moreStuff = [{}]
+ console.info([1,2,3].map(console.info));
class AppComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = { background: 'red' };
}
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice" style={{ background: this.state.background }}>Please edit <code>src/components/Main.js</code> to get started!</div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent; | 6 | 0.230769 | 6 | 0 |
6e55595dad6b680e0e50bd9a6ad16be0188f2537 | zipkin-ui/webpack.config.js | zipkin-ui/webpack.config.js | var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
__dirname + '/js/main.js',
__dirname + '/css/style-loader.js'
],
resolve: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}, {
test: /\.mustache$/,
loader: 'mustache'
}, {
test: /.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader?sourceMap')
}, {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg|\.png$/,
loader: 'file'
}]
},
output: {
path: __dirname + '/build/resources/main/zipkin-ui/',
filename: 'app.min.js',
publicPath: '/'
},
devtool: 'source-map',
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("app.min.css", {allChunks: true}),
new HtmlWebpackPlugin()
],
devServer: {
port: 9090,
proxy: {
"*": "http://localhost:8080"
}
}
};
| var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
__dirname + '/js/main.js',
__dirname + '/css/style-loader.js'
],
resolve: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}, {
test: /\.mustache$/,
loader: 'mustache'
}, {
test: /.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader?sourceMap')
}, {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg|\.png$/,
loader: 'file'
}]
},
output: {
path: __dirname + '/build/resources/main/zipkin-ui/',
filename: 'app-[hash].min.js',
publicPath: '/'
},
devtool: 'source-map',
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("app-[hash].min.css", {allChunks: true}),
new HtmlWebpackPlugin()
],
devServer: {
port: 9090,
proxy: {
"*": "http://localhost:8080"
}
}
};
| Add hash to filename of app[.min].{js,css}[.map] | [zipkin-ui] Add hash to filename of app[.min].{js,css}[.map]
| JavaScript | apache-2.0 | adriancole/zipkin,openzipkin/zipkin,abesto/zipkin,openzipkin/zipkin,adriancole/zipkin,twitter/zipkin,openzipkin/zipkin,adriancole/zipkin,adriancole/zipkin,abesto/zipkin,openzipkin/zipkin,twitter/zipkin,twitter/zipkin,openzipkin/zipkin,abesto/zipkin,twitter/zipkin,abesto/zipkin | javascript | ## Code Before:
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
__dirname + '/js/main.js',
__dirname + '/css/style-loader.js'
],
resolve: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}, {
test: /\.mustache$/,
loader: 'mustache'
}, {
test: /.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader?sourceMap')
}, {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg|\.png$/,
loader: 'file'
}]
},
output: {
path: __dirname + '/build/resources/main/zipkin-ui/',
filename: 'app.min.js',
publicPath: '/'
},
devtool: 'source-map',
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("app.min.css", {allChunks: true}),
new HtmlWebpackPlugin()
],
devServer: {
port: 9090,
proxy: {
"*": "http://localhost:8080"
}
}
};
## Instruction:
[zipkin-ui] Add hash to filename of app[.min].{js,css}[.map]
## Code After:
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
__dirname + '/js/main.js',
__dirname + '/css/style-loader.js'
],
resolve: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}, {
test: /\.mustache$/,
loader: 'mustache'
}, {
test: /.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader?sourceMap')
}, {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg|\.png$/,
loader: 'file'
}]
},
output: {
path: __dirname + '/build/resources/main/zipkin-ui/',
filename: 'app-[hash].min.js',
publicPath: '/'
},
devtool: 'source-map',
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("app-[hash].min.css", {allChunks: true}),
new HtmlWebpackPlugin()
],
devServer: {
port: 9090,
proxy: {
"*": "http://localhost:8080"
}
}
};
| var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
__dirname + '/js/main.js',
__dirname + '/css/style-loader.js'
],
resolve: {
modulesDirectories: ['node_modules']
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
}, {
test: /\.mustache$/,
loader: 'mustache'
}, {
test: /.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap!sass-loader?sourceMap')
}, {
test: /\.woff2?$|\.ttf$|\.eot$|\.svg|\.png$/,
loader: 'file'
}]
},
output: {
path: __dirname + '/build/resources/main/zipkin-ui/',
- filename: 'app.min.js',
+ filename: 'app-[hash].min.js',
? +++++++
publicPath: '/'
},
devtool: 'source-map',
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
- new ExtractTextPlugin("app.min.css", {allChunks: true}),
+ new ExtractTextPlugin("app-[hash].min.css", {allChunks: true}),
? +++++++
new HtmlWebpackPlugin()
],
devServer: {
port: 9090,
proxy: {
"*": "http://localhost:8080"
}
}
}; | 4 | 0.081633 | 2 | 2 |
d09533a2356ee8592453cf4e47cbe0b39476ab41 | CHANGELOG.md | CHANGELOG.md | * Add Lua versions 5.3.3, 5.3.2, and 5.3.1
##0.1.0
* Initial Release
* Installs Lua versions 5.2 or greater
| * Correct the environment lua executables run in by creating custom exec-env (#2)
## 0.1.1
* Add Lua versions 5.3.3, 5.3.2, and 5.3.1
## 0.1.0
* Initial Release
* Installs Lua versions 5.2 or greater
| Add details on version 0.1.2 to changelog. | Add details on version 0.1.2 to changelog. | Markdown | mit | Stratus3D/asdf-lua | markdown | ## Code Before:
* Add Lua versions 5.3.3, 5.3.2, and 5.3.1
##0.1.0
* Initial Release
* Installs Lua versions 5.2 or greater
## Instruction:
Add details on version 0.1.2 to changelog.
## Code After:
* Correct the environment lua executables run in by creating custom exec-env (#2)
## 0.1.1
* Add Lua versions 5.3.3, 5.3.2, and 5.3.1
## 0.1.0
* Initial Release
* Installs Lua versions 5.2 or greater
| + * Correct the environment lua executables run in by creating custom exec-env (#2)
+
+ ## 0.1.1
* Add Lua versions 5.3.3, 5.3.2, and 5.3.1
- ##0.1.0
+ ## 0.1.0
? +
* Initial Release
* Installs Lua versions 5.2 or greater | 5 | 1 | 4 | 1 |
8e73d958345ffe07bca4404e4b2bac2690f1ff75 | lib/apnotic.rb | lib/apnotic.rb | require 'apnotic/connection'
require 'apnotic/notification'
require 'apnotic/response'
require 'apnotic/stream'
require 'apnotic/version'
module Apnotic
end
| require 'apnotic/connection'
require 'apnotic/notification'
require 'apnotic/response'
require 'apnotic/stream'
require 'apnotic/version'
module Apnotic
raise "Cannot require Apnotic, unsupported engine '#{RUBY_ENGINE}'" unless RUBY_ENGINE == "ruby"
end
| Raise error if engine is not MRI. | Raise error if engine is not MRI.
| Ruby | mit | ostinelli/apnotic,ostinelli/apnotic | ruby | ## Code Before:
require 'apnotic/connection'
require 'apnotic/notification'
require 'apnotic/response'
require 'apnotic/stream'
require 'apnotic/version'
module Apnotic
end
## Instruction:
Raise error if engine is not MRI.
## Code After:
require 'apnotic/connection'
require 'apnotic/notification'
require 'apnotic/response'
require 'apnotic/stream'
require 'apnotic/version'
module Apnotic
raise "Cannot require Apnotic, unsupported engine '#{RUBY_ENGINE}'" unless RUBY_ENGINE == "ruby"
end
| require 'apnotic/connection'
require 'apnotic/notification'
require 'apnotic/response'
require 'apnotic/stream'
require 'apnotic/version'
module Apnotic
+ raise "Cannot require Apnotic, unsupported engine '#{RUBY_ENGINE}'" unless RUBY_ENGINE == "ruby"
end | 1 | 0.125 | 1 | 0 |
cd8c6c8aabe713ddd9608827b10f84a6dd7ba670 | lib/pxcbackup/remote_repo.rb | lib/pxcbackup/remote_repo.rb | require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.shellescape} ls #{@path.shellescape}")
output[:stdout].lines.to_a.each do |line|
path = line.chomp.split[3]
next unless Backup.regexp.match(path)
backups << Backup.new(self, path)
end
backups.sort
end
def sync(local_repo)
source = File.join(local_repo.path, '/')
target = File.join(path, '/')
Command.run("#{@which.s3cmd.shellescape} sync --no-progress --delete-removed #{source.shellescape} #{target.shellescape}")
end
def delete(backup)
verify(backup)
Command.run("#{@which.s3cmd.shellescape} del #{backup.path.shellescape}")
end
def stream_command(backup)
verify(backup)
"#{@which.s3cmd.shellescape} get #{backup.path.shellescape} -"
end
end
end
| require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.shellescape} ls #{@path.shellescape}")
output[:stdout].lines.to_a.each do |line|
path = line.chomp.split[3]
next unless Backup.regexp.match(path)
backups << Backup.new(self, path)
end
backups.sort
end
def sync(local_repo)
source = File.join(local_repo.path, '/')
target = File.join(path, '/')
Command.run("#{@which.s3cmd.shellescape} sync --no-progress --delete-removed #{source.shellescape} #{target.shellescape}")
end
def delete(backup)
verify(backup)
Command.run("#{@which.s3cmd.shellescape} del #{backup.path.shellescape}")
end
def stream_command(backup)
verify(backup)
"#{@which.s3cmd.shellescape} get --no-progress #{backup.path.shellescape} -"
end
end
end
| Add workaround for broken s3cmd | Add workaround for broken s3cmd
| Ruby | mit | robbertkl/pxcbackup | ruby | ## Code Before:
require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.shellescape} ls #{@path.shellescape}")
output[:stdout].lines.to_a.each do |line|
path = line.chomp.split[3]
next unless Backup.regexp.match(path)
backups << Backup.new(self, path)
end
backups.sort
end
def sync(local_repo)
source = File.join(local_repo.path, '/')
target = File.join(path, '/')
Command.run("#{@which.s3cmd.shellescape} sync --no-progress --delete-removed #{source.shellescape} #{target.shellescape}")
end
def delete(backup)
verify(backup)
Command.run("#{@which.s3cmd.shellescape} del #{backup.path.shellescape}")
end
def stream_command(backup)
verify(backup)
"#{@which.s3cmd.shellescape} get #{backup.path.shellescape} -"
end
end
end
## Instruction:
Add workaround for broken s3cmd
## Code After:
require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.shellescape} ls #{@path.shellescape}")
output[:stdout].lines.to_a.each do |line|
path = line.chomp.split[3]
next unless Backup.regexp.match(path)
backups << Backup.new(self, path)
end
backups.sort
end
def sync(local_repo)
source = File.join(local_repo.path, '/')
target = File.join(path, '/')
Command.run("#{@which.s3cmd.shellescape} sync --no-progress --delete-removed #{source.shellescape} #{target.shellescape}")
end
def delete(backup)
verify(backup)
Command.run("#{@which.s3cmd.shellescape} del #{backup.path.shellescape}")
end
def stream_command(backup)
verify(backup)
"#{@which.s3cmd.shellescape} get --no-progress #{backup.path.shellescape} -"
end
end
end
| require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.shellescape} ls #{@path.shellescape}")
output[:stdout].lines.to_a.each do |line|
path = line.chomp.split[3]
next unless Backup.regexp.match(path)
backups << Backup.new(self, path)
end
backups.sort
end
def sync(local_repo)
source = File.join(local_repo.path, '/')
target = File.join(path, '/')
Command.run("#{@which.s3cmd.shellescape} sync --no-progress --delete-removed #{source.shellescape} #{target.shellescape}")
end
def delete(backup)
verify(backup)
Command.run("#{@which.s3cmd.shellescape} del #{backup.path.shellescape}")
end
def stream_command(backup)
verify(backup)
- "#{@which.s3cmd.shellescape} get #{backup.path.shellescape} -"
+ "#{@which.s3cmd.shellescape} get --no-progress #{backup.path.shellescape} -"
? ++++++++++++++
end
end
end | 2 | 0.04878 | 1 | 1 |
b07185fa92d7c5705e7a50f49b29444994db6baa | src/configs/babel-preset/index.js | src/configs/babel-preset/index.js | // 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.
import experimental from './plugins/experimental'
import flow from './plugins/flow'
import jsx from './plugins/jsx'
import react from './plugins/react'
import typeScript from './plugins/typeScript'
import {getModulePath} from '../../modules'
import {getSettings} from '../toolbox'
module.exports = function () {
let {
browsers,
node,
platforms,
production,
} = getSettings()
let result = {
plugins: [],
presets: [[getModulePath('@babel/preset-env'), {
targets: {
...browsers && {browsers},
...node && {node},
}
}]],
}
experimental(result.plugins)
flow(result.plugins)
jsx(result.plugins)
react(result.plugins)
typeScript(result.plugins)
if (!production) {
// IMPORTANT: This plugin will enable source map on stack traces but only if
// babel generate inline source maps.
result.plugins.push(getModulePath('babel-plugin-source-map-support'))
}
return result
}
| // 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.
import experimental from './plugins/experimental'
import flow from './plugins/flow'
import jsx from './plugins/jsx'
import react from './plugins/react'
import typeScript from './plugins/typeScript'
import {getModulePath} from '../../modules'
import {getSettings} from '../toolbox'
module.exports = function () {
let {
browsers,
node,
platforms,
production,
} = getSettings()
let result = {
plugins: [],
presets: [[getModulePath('@babel/preset-env'), {
targets: {
...platforms.includes('browser') && browsers && {browsers},
...platforms.includes('node') && node && {node},
},
}]],
}
experimental(result.plugins)
flow(result.plugins)
jsx(result.plugins)
react(result.plugins)
typeScript(result.plugins)
if (!production) {
// IMPORTANT: This plugin will enable source map on stack traces but only if
// babel generate inline source maps.
result.plugins.push(getModulePath('babel-plugin-source-map-support'))
}
return result
}
| Check targets for env preset | Check targets for env preset
| JavaScript | apache-2.0 | ctrine/webpack-settings,ctrine/webpack-settings | javascript | ## Code Before:
// 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.
import experimental from './plugins/experimental'
import flow from './plugins/flow'
import jsx from './plugins/jsx'
import react from './plugins/react'
import typeScript from './plugins/typeScript'
import {getModulePath} from '../../modules'
import {getSettings} from '../toolbox'
module.exports = function () {
let {
browsers,
node,
platforms,
production,
} = getSettings()
let result = {
plugins: [],
presets: [[getModulePath('@babel/preset-env'), {
targets: {
...browsers && {browsers},
...node && {node},
}
}]],
}
experimental(result.plugins)
flow(result.plugins)
jsx(result.plugins)
react(result.plugins)
typeScript(result.plugins)
if (!production) {
// IMPORTANT: This plugin will enable source map on stack traces but only if
// babel generate inline source maps.
result.plugins.push(getModulePath('babel-plugin-source-map-support'))
}
return result
}
## Instruction:
Check targets for env preset
## Code After:
// 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.
import experimental from './plugins/experimental'
import flow from './plugins/flow'
import jsx from './plugins/jsx'
import react from './plugins/react'
import typeScript from './plugins/typeScript'
import {getModulePath} from '../../modules'
import {getSettings} from '../toolbox'
module.exports = function () {
let {
browsers,
node,
platforms,
production,
} = getSettings()
let result = {
plugins: [],
presets: [[getModulePath('@babel/preset-env'), {
targets: {
...platforms.includes('browser') && browsers && {browsers},
...platforms.includes('node') && node && {node},
},
}]],
}
experimental(result.plugins)
flow(result.plugins)
jsx(result.plugins)
react(result.plugins)
typeScript(result.plugins)
if (!production) {
// IMPORTANT: This plugin will enable source map on stack traces but only if
// babel generate inline source maps.
result.plugins.push(getModulePath('babel-plugin-source-map-support'))
}
return result
}
| // 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.
import experimental from './plugins/experimental'
import flow from './plugins/flow'
import jsx from './plugins/jsx'
import react from './plugins/react'
import typeScript from './plugins/typeScript'
import {getModulePath} from '../../modules'
import {getSettings} from '../toolbox'
module.exports = function () {
let {
browsers,
node,
platforms,
production,
} = getSettings()
let result = {
plugins: [],
presets: [[getModulePath('@babel/preset-env'), {
targets: {
- ...browsers && {browsers},
- ...node && {node},
+ ...platforms.includes('browser') && browsers && {browsers},
+ ...platforms.includes('node') && node && {node},
- }
+ },
? +
}]],
}
experimental(result.plugins)
flow(result.plugins)
jsx(result.plugins)
react(result.plugins)
typeScript(result.plugins)
if (!production) {
// IMPORTANT: This plugin will enable source map on stack traces but only if
// babel generate inline source maps.
result.plugins.push(getModulePath('babel-plugin-source-map-support'))
}
return result
} | 6 | 0.115385 | 3 | 3 |
3691c8ff3073b97e83ba3b06fdc88890507becd9 | com.github.thomasfischl.aihome.controller/src/main/java/com/github/thomasfischl/aihome/controller/SensorDataProcessorService.java | com.github.thomasfischl.aihome.controller/src/main/java/com/github/thomasfischl/aihome/controller/SensorDataProcessorService.java | package com.github.thomasfischl.aihome.controller;
import java.io.File;
import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;
public class SensorDataProcessorService extends AbstractPipelineService {
private RuleEngine engine = new RuleEngine(new File("/tmp/rule.config"));
public SensorDataProcessorService(AbstractPipelineService nextService) {
super(nextService);
}
public void process(SensorDataGroup data) {
SensorDataGroup newData = engine.evaluate(data);
executeNextService(newData);
}
}
| package com.github.thomasfischl.aihome.controller;
import java.io.File;
import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;
public class SensorDataProcessorService extends AbstractPipelineService {
private RuleEngine engine = new RuleEngine(new File("/home/pi/aihome/rule.config"));
public SensorDataProcessorService(AbstractPipelineService nextService) {
super(nextService);
}
public void process(SensorDataGroup data) {
SensorDataGroup newData = engine.evaluate(data);
executeNextService(newData);
}
}
| Use other location for rule.config file | Use other location for rule.config file | Java | apache-2.0 | thomasfischl/ai-home,thomasfischl/ai-home | java | ## Code Before:
package com.github.thomasfischl.aihome.controller;
import java.io.File;
import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;
public class SensorDataProcessorService extends AbstractPipelineService {
private RuleEngine engine = new RuleEngine(new File("/tmp/rule.config"));
public SensorDataProcessorService(AbstractPipelineService nextService) {
super(nextService);
}
public void process(SensorDataGroup data) {
SensorDataGroup newData = engine.evaluate(data);
executeNextService(newData);
}
}
## Instruction:
Use other location for rule.config file
## Code After:
package com.github.thomasfischl.aihome.controller;
import java.io.File;
import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;
public class SensorDataProcessorService extends AbstractPipelineService {
private RuleEngine engine = new RuleEngine(new File("/home/pi/aihome/rule.config"));
public SensorDataProcessorService(AbstractPipelineService nextService) {
super(nextService);
}
public void process(SensorDataGroup data) {
SensorDataGroup newData = engine.evaluate(data);
executeNextService(newData);
}
}
| package com.github.thomasfischl.aihome.controller;
import java.io.File;
import com.github.thomasfischl.aihome.communication.sensor.SensorDataGroup;
import com.github.thomasfischl.aihome.controller.rule.RuleEngine;
public class SensorDataProcessorService extends AbstractPipelineService {
- private RuleEngine engine = new RuleEngine(new File("/tmp/rule.config"));
? ^
+ private RuleEngine engine = new RuleEngine(new File("/home/pi/aihome/rule.config"));
? ^^ ++ ++++++++
public SensorDataProcessorService(AbstractPipelineService nextService) {
super(nextService);
}
public void process(SensorDataGroup data) {
SensorDataGroup newData = engine.evaluate(data);
executeNextService(newData);
}
} | 2 | 0.095238 | 1 | 1 |
d1911215a0c7043c5011da55707f6a40938c7d59 | alarme/extras/sensor/web/views/home.py | alarme/extras/sensor/web/views/home.py | from aiohttp.web import HTTPFound
from .core import CoreView
from ..util import login_required, handle_exception
class Home(CoreView):
@login_required
async def req(self):
return HTTPFound(self.request.app.router.get('control').url())
@handle_exception
async def get(self):
self.sensor.app.stop()
return await self.req()
@handle_exception
async def post(self):
return await self.req()
| from aiohttp.web import HTTPFound
from .core import CoreView
from ..util import login_required, handle_exception
class Home(CoreView):
@login_required
async def req(self):
return HTTPFound(self.request.app.router.get('control').url())
@handle_exception
async def get(self):
return await self.req()
@handle_exception
async def post(self):
return await self.req()
| Remove debug app exit on / access (web sensor) | Remove debug app exit on / access (web sensor)
| Python | mit | insolite/alarme,insolite/alarme,insolite/alarme | python | ## Code Before:
from aiohttp.web import HTTPFound
from .core import CoreView
from ..util import login_required, handle_exception
class Home(CoreView):
@login_required
async def req(self):
return HTTPFound(self.request.app.router.get('control').url())
@handle_exception
async def get(self):
self.sensor.app.stop()
return await self.req()
@handle_exception
async def post(self):
return await self.req()
## Instruction:
Remove debug app exit on / access (web sensor)
## Code After:
from aiohttp.web import HTTPFound
from .core import CoreView
from ..util import login_required, handle_exception
class Home(CoreView):
@login_required
async def req(self):
return HTTPFound(self.request.app.router.get('control').url())
@handle_exception
async def get(self):
return await self.req()
@handle_exception
async def post(self):
return await self.req()
| from aiohttp.web import HTTPFound
from .core import CoreView
from ..util import login_required, handle_exception
class Home(CoreView):
@login_required
async def req(self):
return HTTPFound(self.request.app.router.get('control').url())
@handle_exception
async def get(self):
- self.sensor.app.stop()
return await self.req()
@handle_exception
async def post(self):
return await self.req() | 1 | 0.05 | 0 | 1 |
495f7baa1c188d53d91e47c0195edc76582c4838 | src/markdownEditor.css | src/markdownEditor.css |
.md-markdown-editor {
width: 100%;
height: 450px;
}
.md-markdown-editor .md-column {
width: 50%;
height: 100%;
display: inline-block;
vertical-align: top;
}
.md-markdown-editor .md-preview {
padding: 10px;
margin: 0 10px;
border: 1px solid;
max-height: 100%;
overflow: auto;
}
.md-markdown-editor textarea {
width: 100%;
height: 100%;
padding: 10px;
background: rgb(98, 101, 118);
color: #d6d3c3;
font-size: 1.45em;
} |
.md-markdown-editor {
width: 100%;
height: 450px;
}
.md-markdown-editor .md-column {
width: 50%;
height: 100%;
display: inline-block;
vertical-align: top;
}
.md-markdown-editor .md-preview {
padding: 10px;
margin: 0 10px;
border: 1px solid;
max-height: 100%;
overflow: auto;
}
.md-markdown-editor textarea {
font-family: monospace;
width: 100%;
height: 100%;
padding: 10px;
background: rgb(92, 93, 96);
color: rgb(180, 214, 179);
font-size: 1.45em;
} | Enforce monospace font in CSS | Enforce monospace font in CSS
| CSS | mit | cbroome/markdownEditor,cbroome/markdownEditor,cbroome/markdownEditor | css | ## Code Before:
.md-markdown-editor {
width: 100%;
height: 450px;
}
.md-markdown-editor .md-column {
width: 50%;
height: 100%;
display: inline-block;
vertical-align: top;
}
.md-markdown-editor .md-preview {
padding: 10px;
margin: 0 10px;
border: 1px solid;
max-height: 100%;
overflow: auto;
}
.md-markdown-editor textarea {
width: 100%;
height: 100%;
padding: 10px;
background: rgb(98, 101, 118);
color: #d6d3c3;
font-size: 1.45em;
}
## Instruction:
Enforce monospace font in CSS
## Code After:
.md-markdown-editor {
width: 100%;
height: 450px;
}
.md-markdown-editor .md-column {
width: 50%;
height: 100%;
display: inline-block;
vertical-align: top;
}
.md-markdown-editor .md-preview {
padding: 10px;
margin: 0 10px;
border: 1px solid;
max-height: 100%;
overflow: auto;
}
.md-markdown-editor textarea {
font-family: monospace;
width: 100%;
height: 100%;
padding: 10px;
background: rgb(92, 93, 96);
color: rgb(180, 214, 179);
font-size: 1.45em;
} |
.md-markdown-editor {
width: 100%;
height: 450px;
}
.md-markdown-editor .md-column {
width: 50%;
height: 100%;
display: inline-block;
vertical-align: top;
}
.md-markdown-editor .md-preview {
padding: 10px;
margin: 0 10px;
border: 1px solid;
max-height: 100%;
overflow: auto;
}
.md-markdown-editor textarea {
+ font-family: monospace;
width: 100%;
height: 100%;
padding: 10px;
- background: rgb(98, 101, 118);
? ^ ^^^ ^^^
+ background: rgb(92, 93, 96);
? ^ ^^ ^^
- color: #d6d3c3;
+ color: rgb(180, 214, 179);
font-size: 1.45em;
} | 5 | 0.16129 | 3 | 2 |
bc18a6e10e75c97305c2299ab431e9e2ed2fbcb8 | app/models/concerns/galleryable.rb | app/models/concerns/galleryable.rb | module Galleryable
extend ActiveSupport::Concern
included do
has_many :images, as: :imageable, inverse_of: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: true, update_only: true
def image_url(style)
image&.attachment&.url(style) || ""
end
end
end
| module Galleryable
extend ActiveSupport::Concern
included do
has_many :images, as: :imageable, inverse_of: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: true, update_only: true
end
end
| Remove unused url method in poll question answers | Remove unused url method in poll question answers
This method would never work because it relies on the `image`
association, instead of the `images` association defined in the
`Galleryable` module.
| Ruby | agpl-3.0 | consul/consul,consul/consul,consul/consul,consul/consul,consul/consul | ruby | ## Code Before:
module Galleryable
extend ActiveSupport::Concern
included do
has_many :images, as: :imageable, inverse_of: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: true, update_only: true
def image_url(style)
image&.attachment&.url(style) || ""
end
end
end
## Instruction:
Remove unused url method in poll question answers
This method would never work because it relies on the `image`
association, instead of the `images` association defined in the
`Galleryable` module.
## Code After:
module Galleryable
extend ActiveSupport::Concern
included do
has_many :images, as: :imageable, inverse_of: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: true, update_only: true
end
end
| module Galleryable
extend ActiveSupport::Concern
included do
has_many :images, as: :imageable, inverse_of: :imageable, dependent: :destroy
accepts_nested_attributes_for :images, allow_destroy: true, update_only: true
-
- def image_url(style)
- image&.attachment&.url(style) || ""
- end
end
end | 4 | 0.333333 | 0 | 4 |
95aca582558d1643b93cdbf7587b1379e67d8a83 | lib/godmin/authorization.rb | lib/godmin/authorization.rb | require "godmin/authorization/policy"
require "godmin/authorization/policy_finder"
module Godmin
module Authorization
extend ActiveSupport::Concern
included do
helper_method :policy
rescue_from NotAuthorizedError do
render text: "Forbidden", status: 403, layout: false
end
end
def authorize(record)
policy = policy(record)
unless policy.public_send(action_name + "?")
raise NotAuthorizedError
end
end
def policy(record)
policies[record] ||= PolicyFinder.find(record).constantize.new(admin_user, record)
end
def policies
@_policies ||= {}
end
class NotAuthorizedError < StandardError; end
end
end
| require "godmin/authorization/policy"
require "godmin/authorization/policy_finder"
module Godmin
module Authorization
extend ActiveSupport::Concern
included do
helper_method :policy
rescue_from NotAuthorizedError do
render text: "You are not authorized to do this", status: 403, layout: "godmin/login"
end
end
def authorize(record)
policy = policy(record)
unless policy.public_send(action_name + "?")
raise NotAuthorizedError
end
end
def policy(record)
policies[record] ||= PolicyFinder.find(record).constantize.new(admin_user, record)
end
def policies
@_policies ||= {}
end
class NotAuthorizedError < StandardError; end
end
end
| Use layout and better message for not authorized page | Use layout and better message for not authorized page
| Ruby | mit | varvet/godmin,inserve/godmin-material,varvet/godmin,inserve/godmin-material,inserve/godmin-material,varvet/godmin | ruby | ## Code Before:
require "godmin/authorization/policy"
require "godmin/authorization/policy_finder"
module Godmin
module Authorization
extend ActiveSupport::Concern
included do
helper_method :policy
rescue_from NotAuthorizedError do
render text: "Forbidden", status: 403, layout: false
end
end
def authorize(record)
policy = policy(record)
unless policy.public_send(action_name + "?")
raise NotAuthorizedError
end
end
def policy(record)
policies[record] ||= PolicyFinder.find(record).constantize.new(admin_user, record)
end
def policies
@_policies ||= {}
end
class NotAuthorizedError < StandardError; end
end
end
## Instruction:
Use layout and better message for not authorized page
## Code After:
require "godmin/authorization/policy"
require "godmin/authorization/policy_finder"
module Godmin
module Authorization
extend ActiveSupport::Concern
included do
helper_method :policy
rescue_from NotAuthorizedError do
render text: "You are not authorized to do this", status: 403, layout: "godmin/login"
end
end
def authorize(record)
policy = policy(record)
unless policy.public_send(action_name + "?")
raise NotAuthorizedError
end
end
def policy(record)
policies[record] ||= PolicyFinder.find(record).constantize.new(admin_user, record)
end
def policies
@_policies ||= {}
end
class NotAuthorizedError < StandardError; end
end
end
| require "godmin/authorization/policy"
require "godmin/authorization/policy_finder"
module Godmin
module Authorization
extend ActiveSupport::Concern
included do
helper_method :policy
rescue_from NotAuthorizedError do
- render text: "Forbidden", status: 403, layout: false
+ render text: "You are not authorized to do this", status: 403, layout: "godmin/login"
end
end
def authorize(record)
policy = policy(record)
unless policy.public_send(action_name + "?")
raise NotAuthorizedError
end
end
def policy(record)
policies[record] ||= PolicyFinder.find(record).constantize.new(admin_user, record)
end
def policies
@_policies ||= {}
end
class NotAuthorizedError < StandardError; end
end
end | 2 | 0.058824 | 1 | 1 |
092e53d2ebed8ae63aedf257fb3e76d68b593958 | roles/f5bigip_ltm_nat/defaults/main.yml | roles/f5bigip_ltm_nat/defaults/main.yml | ---
nat_name: my_nat
nat_description: My nat
nat_originating_address: 11.0.0.100
nat_translation_address: 10.0.140.100
nat_vlans_enabled: true
nat_vlans:
- /Common/external
- /Common/internal | ---
nat_name: my_nat
nat_description: My nat
nat_originating_address: 11.0.0.100
nat_translation_address: 10.0.140.100
nat_vlans_enabled: true
nat_vlans:
- /Common/net1
- /Common/net2 | Change VLANs in LTM NAT module | Change VLANs in LTM NAT module
| YAML | apache-2.0 | GabrielFortin/ansible-module-f5bigip,erjac77/ansible-module-f5bigip | yaml | ## Code Before:
---
nat_name: my_nat
nat_description: My nat
nat_originating_address: 11.0.0.100
nat_translation_address: 10.0.140.100
nat_vlans_enabled: true
nat_vlans:
- /Common/external
- /Common/internal
## Instruction:
Change VLANs in LTM NAT module
## Code After:
---
nat_name: my_nat
nat_description: My nat
nat_originating_address: 11.0.0.100
nat_translation_address: 10.0.140.100
nat_vlans_enabled: true
nat_vlans:
- /Common/net1
- /Common/net2 | ---
nat_name: my_nat
nat_description: My nat
nat_originating_address: 11.0.0.100
nat_translation_address: 10.0.140.100
nat_vlans_enabled: true
nat_vlans:
- - /Common/external
? - ^^^^^
+ - /Common/net1
? + ^
- - /Common/internal
? - ^^^^^
+ - /Common/net2
? + ^
| 4 | 0.4 | 2 | 2 |
9a80d7e263ac6466b625a5808154cca89adc42b0 | README.md | README.md | [](https://travis-ci.org/AlfonsoFilho/nanicolina)
[](https://coveralls.io/r/AlfonsoFilho/shrink-selectors)
CSS Renaming Tool
--
Coming soon
| [](https://travis-ci.org/AlfonsoFilho/shrink-selectors)
[](https://coveralls.io/r/AlfonsoFilho/shrink-selectors)
CSS Renaming Tool
--
Coming soon
| Fix travis url on readme | Fix travis url on readme
| Markdown | mit | AlfonsoFilho/shrink-selectors,AlfonsoFilho/shrink-selectors | markdown | ## Code Before:
[](https://travis-ci.org/AlfonsoFilho/nanicolina)
[](https://coveralls.io/r/AlfonsoFilho/shrink-selectors)
CSS Renaming Tool
--
Coming soon
## Instruction:
Fix travis url on readme
## Code After:
[](https://travis-ci.org/AlfonsoFilho/shrink-selectors)
[](https://coveralls.io/r/AlfonsoFilho/shrink-selectors)
CSS Renaming Tool
--
Coming soon
| - [](https://travis-ci.org/AlfonsoFilho/nanicolina)
? ^^^^^^^ ^
+ [](https://travis-ci.org/AlfonsoFilho/shrink-selectors)
? ^^^ ^^^^^^^^^^^
[](https://coveralls.io/r/AlfonsoFilho/shrink-selectors)
CSS Renaming Tool
--
Coming soon
| 2 | 0.285714 | 1 | 1 |
3207ced1281fd992c3888769cfbe3b72a728056c | sh/update_production.sh | sh/update_production.sh | KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l`
if [ $KEYSLOADED -lt 1 ]; then
ssh-add
fi
pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd ../../myplaceonline_posixcubes
../../../posixcube/posixcube.sh -u root -w ~/production.pwd -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
popd
popd
| KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l`
if [ $KEYSLOADED -lt 1 ]; then
ssh-add
fi
pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd ../../myplaceonline_posixcubes
../../../posixcube/posixcube.sh -u root -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
popd
popd
| Remove unneeded pwd file reference | Remove unneeded pwd file reference
| Shell | agpl-3.0 | myplaceonline/myplaceonline_scripts | shell | ## Code Before:
KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l`
if [ $KEYSLOADED -lt 1 ]; then
ssh-add
fi
pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd ../../myplaceonline_posixcubes
../../../posixcube/posixcube.sh -u root -w ~/production.pwd -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
popd
popd
## Instruction:
Remove unneeded pwd file reference
## Code After:
KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l`
if [ $KEYSLOADED -lt 1 ]; then
ssh-add
fi
pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd ../../myplaceonline_posixcubes
../../../posixcube/posixcube.sh -u root -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
popd
popd
| KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l`
if [ $KEYSLOADED -lt 1 ]; then
ssh-add
fi
pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd ../../myplaceonline_posixcubes
- ../../../posixcube/posixcube.sh -u root -w ~/production.pwd -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
? --------------------
+ ../../../posixcube/posixcube.sh -u root -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_begin -c web -c core_end
popd
popd | 2 | 0.222222 | 1 | 1 |
19857719f3a68d14c1221bb04193a69379a8bf89 | examples/g/modulegen.py | examples/g/modulegen.py |
import sys
import pybindgen
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
def my_module_gen(out_file):
mod = Module('g')
mod.add_include('"g.h"')
mod.add_function('GDoA', None, [])
G = mod.add_cpp_namespace("G")
G.add_function('GDoB', None, [])
GInner = G.add_cpp_namespace("GInner")
GInner.add_function('GDoC', None, [])
mod.generate(FileCodeSink(out_file))
if __name__ == '__main__':
my_module_gen(sys.stdout)
|
import sys
import pybindgen
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
def my_module_gen(out_file):
mod = Module('g')
mod.add_include('"g.h"')
mod.add_function('GDoA', None, [])
G = mod.add_cpp_namespace("G")
G.add_function('GDoB', None, [])
GInner = G.add_cpp_namespace("GInner")
GInner.add_function('GDoC', None, [])
G.add_include('<fstream>')
ofstream = G.add_class('ofstream', foreign_cpp_namespace='::std')
ofstream.add_enum('openmode', [
('app', 'std::ios_base::app'),
('ate', 'std::ios_base::ate'),
('binary', 'std::ios_base::binary'),
('in', 'std::ios_base::in'),
('out', 'std::ios_base::out'),
('trunc', 'std::ios_base::trunc'),
])
ofstream.add_constructor([Parameter.new("const char *", 'filename'),
Parameter.new("::std::ofstream::openmode", 'mode', default_value="std::ios_base::out")])
ofstream.add_method('close', None, [])
mod.generate(FileCodeSink(out_file))
if __name__ == '__main__':
my_module_gen(sys.stdout)
| Add wrapping of std::ofstream to the example | Add wrapping of std::ofstream to the example
| Python | lgpl-2.1 | cawka/pybindgen,caramucho/pybindgen,cawka/pybindgen,cawka/pybindgen,caramucho/pybindgen,cawka/pybindgen,caramucho/pybindgen,caramucho/pybindgen | python | ## Code Before:
import sys
import pybindgen
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
def my_module_gen(out_file):
mod = Module('g')
mod.add_include('"g.h"')
mod.add_function('GDoA', None, [])
G = mod.add_cpp_namespace("G")
G.add_function('GDoB', None, [])
GInner = G.add_cpp_namespace("GInner")
GInner.add_function('GDoC', None, [])
mod.generate(FileCodeSink(out_file))
if __name__ == '__main__':
my_module_gen(sys.stdout)
## Instruction:
Add wrapping of std::ofstream to the example
## Code After:
import sys
import pybindgen
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
def my_module_gen(out_file):
mod = Module('g')
mod.add_include('"g.h"')
mod.add_function('GDoA', None, [])
G = mod.add_cpp_namespace("G")
G.add_function('GDoB', None, [])
GInner = G.add_cpp_namespace("GInner")
GInner.add_function('GDoC', None, [])
G.add_include('<fstream>')
ofstream = G.add_class('ofstream', foreign_cpp_namespace='::std')
ofstream.add_enum('openmode', [
('app', 'std::ios_base::app'),
('ate', 'std::ios_base::ate'),
('binary', 'std::ios_base::binary'),
('in', 'std::ios_base::in'),
('out', 'std::ios_base::out'),
('trunc', 'std::ios_base::trunc'),
])
ofstream.add_constructor([Parameter.new("const char *", 'filename'),
Parameter.new("::std::ofstream::openmode", 'mode', default_value="std::ios_base::out")])
ofstream.add_method('close', None, [])
mod.generate(FileCodeSink(out_file))
if __name__ == '__main__':
my_module_gen(sys.stdout)
|
import sys
import pybindgen
from pybindgen import ReturnValue, Parameter, Module, Function, FileCodeSink
def my_module_gen(out_file):
mod = Module('g')
mod.add_include('"g.h"')
mod.add_function('GDoA', None, [])
G = mod.add_cpp_namespace("G")
G.add_function('GDoB', None, [])
GInner = G.add_cpp_namespace("GInner")
GInner.add_function('GDoC', None, [])
+ G.add_include('<fstream>')
+
+ ofstream = G.add_class('ofstream', foreign_cpp_namespace='::std')
+ ofstream.add_enum('openmode', [
+ ('app', 'std::ios_base::app'),
+ ('ate', 'std::ios_base::ate'),
+ ('binary', 'std::ios_base::binary'),
+ ('in', 'std::ios_base::in'),
+ ('out', 'std::ios_base::out'),
+ ('trunc', 'std::ios_base::trunc'),
+ ])
+ ofstream.add_constructor([Parameter.new("const char *", 'filename'),
+ Parameter.new("::std::ofstream::openmode", 'mode', default_value="std::ios_base::out")])
+ ofstream.add_method('close', None, [])
+
mod.generate(FileCodeSink(out_file))
if __name__ == '__main__':
my_module_gen(sys.stdout) | 15 | 0.75 | 15 | 0 |
71e3fe584fb4f929d32d88b8a1496258ab5a5830 | README.md | README.md |
Jupyter notebook test data. Feel free to add more!
## Roadmap
* [x] Dump a collection of notebooks, upload
* [ ] Export a simple object that helps in finding notebooks (by valid, invalid, output types, etc.)
|
Jupyter notebook test data. Feel free to add more!
This is a collection of notebooks for testing with that you can `npm install` and rely on for testing.
```
npm install notebook-test-data
```
## Roadmap
### Easy mode
* [x] Dump a collection of notebooks, upload
* [x] Export a simple object that helps in finding notebooks by valid and invalid
### Needs Love
Create collections of notebooks that
* [ ] have different display output types
* [ ] have tracebacks
* [ ] are beautiful (subjective, great as a gallery)
* [ ] are organaized by notebook format (prev: v3, curr: v4, experimental: proposed changes)
| Declare intentions, say how to install. | Declare intentions, say how to install.
| Markdown | cc0-1.0 | nteract/notebook-test-data | markdown | ## Code Before:
Jupyter notebook test data. Feel free to add more!
## Roadmap
* [x] Dump a collection of notebooks, upload
* [ ] Export a simple object that helps in finding notebooks (by valid, invalid, output types, etc.)
## Instruction:
Declare intentions, say how to install.
## Code After:
Jupyter notebook test data. Feel free to add more!
This is a collection of notebooks for testing with that you can `npm install` and rely on for testing.
```
npm install notebook-test-data
```
## Roadmap
### Easy mode
* [x] Dump a collection of notebooks, upload
* [x] Export a simple object that helps in finding notebooks by valid and invalid
### Needs Love
Create collections of notebooks that
* [ ] have different display output types
* [ ] have tracebacks
* [ ] are beautiful (subjective, great as a gallery)
* [ ] are organaized by notebook format (prev: v3, curr: v4, experimental: proposed changes)
|
Jupyter notebook test data. Feel free to add more!
+ This is a collection of notebooks for testing with that you can `npm install` and rely on for testing.
+
+ ```
+ npm install notebook-test-data
+ ```
+
## Roadmap
+ ### Easy mode
+
* [x] Dump a collection of notebooks, upload
- * [ ] Export a simple object that helps in finding notebooks (by valid, invalid, output types, etc.)
? ^ - ^ ---------------------
+ * [x] Export a simple object that helps in finding notebooks by valid and invalid
? ^ ^^^^
+ ### Needs Love
+
+ Create collections of notebooks that
+
+ * [ ] have different display output types
+ * [ ] have tracebacks
+ * [ ] are beautiful (subjective, great as a gallery)
+ * [ ] are organaized by notebook format (prev: v3, curr: v4, experimental: proposed changes)
+
+ | 20 | 2.5 | 19 | 1 |
83b6ec0b3189a0381e5a0b4367d2cb0f73aecbfb | circle.yml | circle.yml | machine:
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
dependencies:
override:
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# Glide 0.10.1
- wget https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz
- tar -vxz -C $HOME/bin --strip=1 -f glide-0.10.1-linux-amd64.tar.gz
# Fetch deps with glide
- glide --home $HOME/.glide -y glide.yaml install --cache
cache_directories:
- "~/.glide"
test:
override:
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go test
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go build example.go
| machine:
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
dependencies:
override:
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# Glide 0.11.1
- wget https://github.com/Masterminds/glide/releases/download/0.11.1/glide-0.11.1-linux-amd64.tar.gz
- tar -vxz -C $HOME/bin --strip=1 -f glide-0.11.1-linux-amd64.tar.gz
# Fetch deps with glide
- glide --home $HOME/.glide -y glide.yaml install --cache
cache_directories:
- "~/.glide"
test:
override:
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
- go test -v -coverprofile=coverage.txt -covermode=atomic
- go build example.go
- bash <(curl -s https://codecov.io/bash)
| Add coverage via codecov, new version of glide | Add coverage via codecov, new version of glide
| YAML | bsd-3-clause | ibrasho-forks/dep,golang/dep,golang/dep,golang/dep,ibrasho-forks/dep | yaml | ## Code Before:
machine:
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
dependencies:
override:
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# Glide 0.10.1
- wget https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz
- tar -vxz -C $HOME/bin --strip=1 -f glide-0.10.1-linux-amd64.tar.gz
# Fetch deps with glide
- glide --home $HOME/.glide -y glide.yaml install --cache
cache_directories:
- "~/.glide"
test:
override:
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go test
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go build example.go
## Instruction:
Add coverage via codecov, new version of glide
## Code After:
machine:
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
dependencies:
override:
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# Glide 0.11.1
- wget https://github.com/Masterminds/glide/releases/download/0.11.1/glide-0.11.1-linux-amd64.tar.gz
- tar -vxz -C $HOME/bin --strip=1 -f glide-0.11.1-linux-amd64.tar.gz
# Fetch deps with glide
- glide --home $HOME/.glide -y glide.yaml install --cache
cache_directories:
- "~/.glide"
test:
override:
- cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
- go test -v -coverprofile=coverage.txt -covermode=atomic
- go build example.go
- bash <(curl -s https://codecov.io/bash)
| machine:
environment:
GO15VENDOREXPERIMENT: 1
checkout:
post:
dependencies:
override:
- mkdir -pv $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME
- ln -Tsf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
- # Glide 0.10.1
? ^
+ # Glide 0.11.1
? ^
- - wget https://github.com/Masterminds/glide/releases/download/0.10.1/glide-0.10.1-linux-amd64.tar.gz
? ^ ^
+ - wget https://github.com/Masterminds/glide/releases/download/0.11.1/glide-0.11.1-linux-amd64.tar.gz
? ^ ^
- - tar -vxz -C $HOME/bin --strip=1 -f glide-0.10.1-linux-amd64.tar.gz
? ^
+ - tar -vxz -C $HOME/bin --strip=1 -f glide-0.11.1-linux-amd64.tar.gz
? ^
# Fetch deps with glide
- glide --home $HOME/.glide -y glide.yaml install --cache
cache_directories:
- "~/.glide"
test:
override:
- - cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go test
? -----------
+ - cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
- - cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go build example.go
+ - go test -v -coverprofile=coverage.txt -covermode=atomic
+ - go build example.go
+ - bash <(curl -s https://codecov.io/bash) | 12 | 0.6 | 7 | 5 |
9b335fee2704873ac8fedf27031a678dc4f64a96 | about.md | about.md | ---
layout: post
title: "About"
author: "Chester"
permalink: /about/
---
A friend of mine writes short stories. One sunny day, I asked if he wanted a website to showcase his works and he agreed. I decided to use GitHub Pages to host his site. That way he wouldn't have to buy a domain and a server.
While doing some research up on GitHub Pages, I accidentally chanced upon this _simple, blog-aware, static site generator_ called [Jekyll](https://jekyllrb.com/) which works really well with GitHub Pages. I figured it would do just fine for my friend and I set about searching for a pretty theme. I wanted a theme with a _book-ish_ vibe. Unfortunately, most of the themes were too modern. Eventually, I caved and begun working on my own theme. With the help of [Poole](https://github.com/poole/poole), the Jekyll Butler, I was able to build **Tale**.
## Contribute
Feel free to create an issue or make a pull request on [GitHub](https://github.com/chesterhow/tale).
Thanks for reading!
| ---
layout: post
title: About
author: Chris
permalink: /about/
published: true
---
I enjoy writing. In school I had an English minor and once believed I might end up as a copywriter (although, to be honest, I don't think my expectations matched up with the reality).
Now that I work in software development, I don't really have a day-to-day outlet for my thoughts. The culture is more focused on problem-solving and less about reflecting on non-technical things. The type of analysis used to solve programming problems might have some overlap with analytical essay-writing, but many programmers tend to blog about code or starting a startup.
It's likely that I'll also talk about these things (like in the `Theme` section just below), but readers of this blog shouldn't _have_ to be programmers or people interested in starting companies to find the posts compelling.
If you think I've fallen short in any way, please shoot me a note at `corridorr@gmail.com` and let me know what I can do to improve. There isn't a comment system here, but I always welcome your thoughts on any blog posts. If your feedback is kind, I'll be more receptive to it.
## Theme
This is a [Jekyll](https://github.com/jekyll/jekyll) blog. Jekyll sites generate static html pages, rather than making extra calls to load up content from a database. Learn more about this [on Quora](https://www.quora.com/How-does-a-static-site-generator-like-Jekyll-work). It's hosted on Github Pages, which is the main reason I chose it. I looked into other blogging platforms like Ghost, but even hosting it yourself, you're going to be paying at least $5-10 per month.
The theme is called Tale and you can [find and fork the original repository here](https://github.com/chesterhow/tale).
Thanks for reading!
| Update About page with my information | Update About page with my information | Markdown | mit | cstavitsky/cstavitsky.github.io | markdown | ## Code Before:
---
layout: post
title: "About"
author: "Chester"
permalink: /about/
---
A friend of mine writes short stories. One sunny day, I asked if he wanted a website to showcase his works and he agreed. I decided to use GitHub Pages to host his site. That way he wouldn't have to buy a domain and a server.
While doing some research up on GitHub Pages, I accidentally chanced upon this _simple, blog-aware, static site generator_ called [Jekyll](https://jekyllrb.com/) which works really well with GitHub Pages. I figured it would do just fine for my friend and I set about searching for a pretty theme. I wanted a theme with a _book-ish_ vibe. Unfortunately, most of the themes were too modern. Eventually, I caved and begun working on my own theme. With the help of [Poole](https://github.com/poole/poole), the Jekyll Butler, I was able to build **Tale**.
## Contribute
Feel free to create an issue or make a pull request on [GitHub](https://github.com/chesterhow/tale).
Thanks for reading!
## Instruction:
Update About page with my information
## Code After:
---
layout: post
title: About
author: Chris
permalink: /about/
published: true
---
I enjoy writing. In school I had an English minor and once believed I might end up as a copywriter (although, to be honest, I don't think my expectations matched up with the reality).
Now that I work in software development, I don't really have a day-to-day outlet for my thoughts. The culture is more focused on problem-solving and less about reflecting on non-technical things. The type of analysis used to solve programming problems might have some overlap with analytical essay-writing, but many programmers tend to blog about code or starting a startup.
It's likely that I'll also talk about these things (like in the `Theme` section just below), but readers of this blog shouldn't _have_ to be programmers or people interested in starting companies to find the posts compelling.
If you think I've fallen short in any way, please shoot me a note at `corridorr@gmail.com` and let me know what I can do to improve. There isn't a comment system here, but I always welcome your thoughts on any blog posts. If your feedback is kind, I'll be more receptive to it.
## Theme
This is a [Jekyll](https://github.com/jekyll/jekyll) blog. Jekyll sites generate static html pages, rather than making extra calls to load up content from a database. Learn more about this [on Quora](https://www.quora.com/How-does-a-static-site-generator-like-Jekyll-work). It's hosted on Github Pages, which is the main reason I chose it. I looked into other blogging platforms like Ghost, but even hosting it yourself, you're going to be paying at least $5-10 per month.
The theme is called Tale and you can [find and fork the original repository here](https://github.com/chesterhow/tale).
Thanks for reading!
| ---
layout: post
- title: "About"
? - -
+ title: About
- author: "Chester"
+ author: Chris
permalink: /about/
+ published: true
---
+ I enjoy writing. In school I had an English minor and once believed I might end up as a copywriter (although, to be honest, I don't think my expectations matched up with the reality).
- A friend of mine writes short stories. One sunny day, I asked if he wanted a website to showcase his works and he agreed. I decided to use GitHub Pages to host his site. That way he wouldn't have to buy a domain and a server.
+ Now that I work in software development, I don't really have a day-to-day outlet for my thoughts. The culture is more focused on problem-solving and less about reflecting on non-technical things. The type of analysis used to solve programming problems might have some overlap with analytical essay-writing, but many programmers tend to blog about code or starting a startup.
- While doing some research up on GitHub Pages, I accidentally chanced upon this _simple, blog-aware, static site generator_ called [Jekyll](https://jekyllrb.com/) which works really well with GitHub Pages. I figured it would do just fine for my friend and I set about searching for a pretty theme. I wanted a theme with a _book-ish_ vibe. Unfortunately, most of the themes were too modern. Eventually, I caved and begun working on my own theme. With the help of [Poole](https://github.com/poole/poole), the Jekyll Butler, I was able to build **Tale**.
+ It's likely that I'll also talk about these things (like in the `Theme` section just below), but readers of this blog shouldn't _have_ to be programmers or people interested in starting companies to find the posts compelling.
- ## Contribute
- Feel free to create an issue or make a pull request on [GitHub](https://github.com/chesterhow/tale).
+ If you think I've fallen short in any way, please shoot me a note at `corridorr@gmail.com` and let me know what I can do to improve. There isn't a comment system here, but I always welcome your thoughts on any blog posts. If your feedback is kind, I'll be more receptive to it.
+
+ ## Theme
+ This is a [Jekyll](https://github.com/jekyll/jekyll) blog. Jekyll sites generate static html pages, rather than making extra calls to load up content from a database. Learn more about this [on Quora](https://www.quora.com/How-does-a-static-site-generator-like-Jekyll-work). It's hosted on Github Pages, which is the main reason I chose it. I looked into other blogging platforms like Ghost, but even hosting it yourself, you're going to be paying at least $5-10 per month.
+
+ The theme is called Tale and you can [find and fork the original repository here](https://github.com/chesterhow/tale).
Thanks for reading! | 18 | 1.2 | 12 | 6 |
bdcaaf4ab999c51a6633b7e72971d7594de0b66b | bin/clean_unused_headers.py | bin/clean_unused_headers.py | from __future__ import print_function
import sys
import os
import re
from subprocess import check_output
IMAGE_PATTERN = re.compile(
'linux-image-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
HEADER_PATTERN = re.compile(
'linux-headers-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
def get_all_packages():
for line in check_output(['dpkg', '-l']).split('\n'):
if line.startswith('ii'):
# print(line.split(' '))
yield line.split()[1]
def find_group(pattern, text):
matched = pattern.match(text)
if matched:
return '{version}-{rev}'.format(
version=matched.group('version'),
rev=matched.group('rev'))
return None
def main():
packages = list(get_all_packages())
header_pkgs = filter(lambda x: HEADER_PATTERN.match(x), packages)
image_pkgs = filter(lambda x: IMAGE_PATTERN.match(x), packages)
header_versions = map(lambda x: find_group(HEADER_PATTERN, x), header_pkgs)
image_versions = map(lambda x: find_group(IMAGE_PATTERN, x), image_pkgs)
print(header_pkgs)
print(image_pkgs)
print(header_versions)
print(image_versions)
if __name__ == "__main__":
main()
| from __future__ import print_function
import sys
import os
import re
from subprocess import check_output
IMAGE_PATTERN = re.compile(
'linux-image-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
HEADER_PATTERN = re.compile(
'linux-headers-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
def get_all_packages():
for line in check_output(['dpkg', '-l']).split('\n'):
if line.startswith('ii'):
# print(line.split(' '))
yield line.split()[1]
def find_group(pattern, text):
matched = pattern.match(text)
if matched:
return '{version}-{rev}'.format(
version=matched.group('version'),
rev=matched.group('rev'))
return None
def main():
packages = list(get_all_packages())
header_pkgs = filter(lambda x: HEADER_PATTERN.match(x), packages)
image_pkgs = filter(lambda x: IMAGE_PATTERN.match(x), packages)
header_versions = dict(map(
lambda x: (find_group(HEADER_PATTERN, x), x),
header_pkgs))
image_versions = dict(map(
lambda x: (find_group(IMAGE_PATTERN, x), x),
image_pkgs))
results = []
for version, pkg in header_versions.items():
if version not in image_versions:
results.append(pkg)
print(' '.join(results))
if __name__ == "__main__":
main()
| Add python script to find unused linux-headers packages | Add python script to find unused linux-headers packages
| Python | apache-2.0 | elleryq/oh-my-home,elleryq/oh-my-home,elleryq/oh-my-home | python | ## Code Before:
from __future__ import print_function
import sys
import os
import re
from subprocess import check_output
IMAGE_PATTERN = re.compile(
'linux-image-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
HEADER_PATTERN = re.compile(
'linux-headers-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
def get_all_packages():
for line in check_output(['dpkg', '-l']).split('\n'):
if line.startswith('ii'):
# print(line.split(' '))
yield line.split()[1]
def find_group(pattern, text):
matched = pattern.match(text)
if matched:
return '{version}-{rev}'.format(
version=matched.group('version'),
rev=matched.group('rev'))
return None
def main():
packages = list(get_all_packages())
header_pkgs = filter(lambda x: HEADER_PATTERN.match(x), packages)
image_pkgs = filter(lambda x: IMAGE_PATTERN.match(x), packages)
header_versions = map(lambda x: find_group(HEADER_PATTERN, x), header_pkgs)
image_versions = map(lambda x: find_group(IMAGE_PATTERN, x), image_pkgs)
print(header_pkgs)
print(image_pkgs)
print(header_versions)
print(image_versions)
if __name__ == "__main__":
main()
## Instruction:
Add python script to find unused linux-headers packages
## Code After:
from __future__ import print_function
import sys
import os
import re
from subprocess import check_output
IMAGE_PATTERN = re.compile(
'linux-image-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
HEADER_PATTERN = re.compile(
'linux-headers-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
def get_all_packages():
for line in check_output(['dpkg', '-l']).split('\n'):
if line.startswith('ii'):
# print(line.split(' '))
yield line.split()[1]
def find_group(pattern, text):
matched = pattern.match(text)
if matched:
return '{version}-{rev}'.format(
version=matched.group('version'),
rev=matched.group('rev'))
return None
def main():
packages = list(get_all_packages())
header_pkgs = filter(lambda x: HEADER_PATTERN.match(x), packages)
image_pkgs = filter(lambda x: IMAGE_PATTERN.match(x), packages)
header_versions = dict(map(
lambda x: (find_group(HEADER_PATTERN, x), x),
header_pkgs))
image_versions = dict(map(
lambda x: (find_group(IMAGE_PATTERN, x), x),
image_pkgs))
results = []
for version, pkg in header_versions.items():
if version not in image_versions:
results.append(pkg)
print(' '.join(results))
if __name__ == "__main__":
main()
| from __future__ import print_function
import sys
import os
import re
from subprocess import check_output
IMAGE_PATTERN = re.compile(
'linux-image-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
HEADER_PATTERN = re.compile(
'linux-headers-(?P<version>[0-9\.]+)-(?P<rev>[0-9]{2})-generic')
def get_all_packages():
for line in check_output(['dpkg', '-l']).split('\n'):
if line.startswith('ii'):
# print(line.split(' '))
yield line.split()[1]
def find_group(pattern, text):
matched = pattern.match(text)
if matched:
return '{version}-{rev}'.format(
version=matched.group('version'),
rev=matched.group('rev'))
return None
def main():
packages = list(get_all_packages())
header_pkgs = filter(lambda x: HEADER_PATTERN.match(x), packages)
image_pkgs = filter(lambda x: IMAGE_PATTERN.match(x), packages)
- header_versions = map(lambda x: find_group(HEADER_PATTERN, x), header_pkgs)
- image_versions = map(lambda x: find_group(IMAGE_PATTERN, x), image_pkgs)
- print(header_pkgs)
- print(image_pkgs)
+ header_versions = dict(map(
+ lambda x: (find_group(HEADER_PATTERN, x), x),
+ header_pkgs))
+ image_versions = dict(map(
+ lambda x: (find_group(IMAGE_PATTERN, x), x),
+ image_pkgs))
- print(header_versions)
- print(image_versions)
+ results = []
+ for version, pkg in header_versions.items():
+ if version not in image_versions:
+ results.append(pkg)
+ print(' '.join(results))
if __name__ == "__main__":
main() | 17 | 0.386364 | 11 | 6 |
350932b854eb8c0f559379c7108afca9974e33db | db/changelogUrls.json | db/changelogUrls.json | {
"bluebird": "http://bluebirdjs.com/docs/changelog.html",
"fluxible": "https://github.com/yahoo/fluxible/blob/master/packages/fluxible/CHANGELOG.md",
"lodash": "https://github.com/lodash/lodash/wiki/Changelog",
"webpack": "http://webpack.github.io/docs/changelog.html"
}
| {
"bluebird": "http://bluebirdjs.com/docs/changelog.html",
"browserify": "https://github.com/substack/node-browserify/blob/master/changelog.markdown",
"fluxible": "https://github.com/yahoo/fluxible/blob/master/packages/fluxible/CHANGELOG.md",
"lodash": "https://github.com/lodash/lodash/wiki/Changelog",
"webpack": "http://webpack.github.io/docs/changelog.html"
} | Add "browserify" to changelogs DB | Add "browserify" to changelogs DB
| JSON | mit | th0r/npm-upgrade | json | ## Code Before:
{
"bluebird": "http://bluebirdjs.com/docs/changelog.html",
"fluxible": "https://github.com/yahoo/fluxible/blob/master/packages/fluxible/CHANGELOG.md",
"lodash": "https://github.com/lodash/lodash/wiki/Changelog",
"webpack": "http://webpack.github.io/docs/changelog.html"
}
## Instruction:
Add "browserify" to changelogs DB
## Code After:
{
"bluebird": "http://bluebirdjs.com/docs/changelog.html",
"browserify": "https://github.com/substack/node-browserify/blob/master/changelog.markdown",
"fluxible": "https://github.com/yahoo/fluxible/blob/master/packages/fluxible/CHANGELOG.md",
"lodash": "https://github.com/lodash/lodash/wiki/Changelog",
"webpack": "http://webpack.github.io/docs/changelog.html"
} | {
"bluebird": "http://bluebirdjs.com/docs/changelog.html",
+ "browserify": "https://github.com/substack/node-browserify/blob/master/changelog.markdown",
"fluxible": "https://github.com/yahoo/fluxible/blob/master/packages/fluxible/CHANGELOG.md",
"lodash": "https://github.com/lodash/lodash/wiki/Changelog",
"webpack": "http://webpack.github.io/docs/changelog.html"
} | 1 | 0.166667 | 1 | 0 |
50c59c87b6c7b6bad4b0b01f5457453fa5aedbcd | .pkgr.yml | .pkgr.yml | description: Arbitrary task distribution platform.
homepage: http://queueflex.com
vendor: Ben Langfeld <http://langfeld.me>
maintainer: Ben Langfeld <http://langfeld.me>
license: Apache 2.0
changelog: CHANGELOG.md
targets:
ubuntu-14.04:
debian-8:
before:
- echo "runtime_path=/opt/queueflex" > elixir_buildpack.config
after:
- rm -rf .git
buildpack: https://github.com/ddollar/heroku-buildpack-multi.git
| description: Arbitrary task distribution platform.
homepage: http://queueflex.com
vendor: Ben Langfeld <http://langfeld.me>
maintainer: Ben Langfeld <http://langfeld.me>
license: Apache 2.0
changelog: CHANGELOG.md
targets:
ubuntu-14.04:
debian-8:
before:
- echo "runtime_path=/opt/queueflex" > elixir_buildpack.config
after:
- rm -rf .git
- mkdir ../../home
- cp -R /home/pkgr ../../home/queueflex
buildpack: https://github.com/ddollar/heroku-buildpack-multi.git
| Copy build home directory to app runtime home directory | Copy build home directory to app runtime home directory
Makes hex cache available at runtime
| YAML | apache-2.0 | benlangfeld/QueueFlex,benlangfeld/Qfl.ex,benlangfeld/Qfl.ex,benlangfeld/QueueFlex,benlangfeld/Qfl.ex,benlangfeld/QueueFlex | yaml | ## Code Before:
description: Arbitrary task distribution platform.
homepage: http://queueflex.com
vendor: Ben Langfeld <http://langfeld.me>
maintainer: Ben Langfeld <http://langfeld.me>
license: Apache 2.0
changelog: CHANGELOG.md
targets:
ubuntu-14.04:
debian-8:
before:
- echo "runtime_path=/opt/queueflex" > elixir_buildpack.config
after:
- rm -rf .git
buildpack: https://github.com/ddollar/heroku-buildpack-multi.git
## Instruction:
Copy build home directory to app runtime home directory
Makes hex cache available at runtime
## Code After:
description: Arbitrary task distribution platform.
homepage: http://queueflex.com
vendor: Ben Langfeld <http://langfeld.me>
maintainer: Ben Langfeld <http://langfeld.me>
license: Apache 2.0
changelog: CHANGELOG.md
targets:
ubuntu-14.04:
debian-8:
before:
- echo "runtime_path=/opt/queueflex" > elixir_buildpack.config
after:
- rm -rf .git
- mkdir ../../home
- cp -R /home/pkgr ../../home/queueflex
buildpack: https://github.com/ddollar/heroku-buildpack-multi.git
| description: Arbitrary task distribution platform.
homepage: http://queueflex.com
vendor: Ben Langfeld <http://langfeld.me>
maintainer: Ben Langfeld <http://langfeld.me>
license: Apache 2.0
changelog: CHANGELOG.md
targets:
ubuntu-14.04:
debian-8:
before:
- echo "runtime_path=/opt/queueflex" > elixir_buildpack.config
after:
- rm -rf .git
+ - mkdir ../../home
+ - cp -R /home/pkgr ../../home/queueflex
buildpack: https://github.com/ddollar/heroku-buildpack-multi.git | 2 | 0.142857 | 2 | 0 |
845c165b104e383dc52bd89e5910124da99a08ae | common/load-base-css.js | common/load-base-css.js | command: 'echo ""',
refreshFrequency: 3600000,
style: [
'@import "/common/base.css"',
'@import "/common/fira/fira.css"',
].join('\n'),
render: function(output) {
return ''
},
| command: 'echo ""',
refreshFrequency: 3600000,
render: function(output) {
return [
'<link rel="stylesheet" type="text/css" href="/common/base.css">',
'<link rel="stylesheet" type="text/css" href="/common/fira/fira.css">',
].join('\n')
},
| Use links to load the css files | Use links to load the css files
| JavaScript | mit | hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets | javascript | ## Code Before:
command: 'echo ""',
refreshFrequency: 3600000,
style: [
'@import "/common/base.css"',
'@import "/common/fira/fira.css"',
].join('\n'),
render: function(output) {
return ''
},
## Instruction:
Use links to load the css files
## Code After:
command: 'echo ""',
refreshFrequency: 3600000,
render: function(output) {
return [
'<link rel="stylesheet" type="text/css" href="/common/base.css">',
'<link rel="stylesheet" type="text/css" href="/common/fira/fira.css">',
].join('\n')
},
| command: 'echo ""',
refreshFrequency: 3600000,
- style: [
- '@import "/common/base.css"',
- '@import "/common/fira/fira.css"',
- ].join('\n'),
-
render: function(output) {
- return ''
? ^^
+ return [
? ^
+ '<link rel="stylesheet" type="text/css" href="/common/base.css">',
+ '<link rel="stylesheet" type="text/css" href="/common/fira/fira.css">',
+ ].join('\n')
}, | 10 | 0.909091 | 4 | 6 |
dbf7bdce8a2f7ab9a18cffa5a1f5b7ddc3b1d57c | README.md | README.md |
MOMenu is a menubar item with a plug-in architecture which allows admins to create anything that helps their fleet, from setting user preferences to reporting on machine status.
## Building
Requires [CocoaPods](https://cocoapods.org/) and [Xcode](https://developer.apple.com/xcode/downloads/) to compile.
Clone the repository, install necessary pods, then build the applications:
```
git clone https://github.com/google/macops-MOMenu
cd macops-MOMenu
pod install
xcodebuild -workspace MOMenu.xcworkspace -scheme MOMenu -configuration Release -derivedDataPath build
```
The built application will be in `./build/Build/Products/Release/MOMenu.app`
In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`.
An example Snake plugin is included in this repository.
To build and install the Snake plugin:
```
cd plugins/snake
xcodebuild
sudo mkdir -p /Library/MOMenu/PlugIns
sudo cp -r build/Release/Snake.bundle /Library/MOMenu/PlugIns
```
MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag:
```
../../build/Build/Products/Release/MOMenu.app/Contents/MacOS/MOMenu --nochecksignatures
```
MOMenu should appear in the menubar:
<img src="https://github.com/verycarefully/macops-MOMenu/raw/master/docs/momenu.png">
|
MOMenu is a menubar item with a plug-in architecture which allows admins to create anything that helps their fleet, from setting user preferences to reporting on machine status.
## Building
Requires [CocoaPods](https://cocoapods.org/) and [Xcode](https://developer.apple.com/xcode/downloads/) to compile.
Clone the repository, install necessary pods, then build the application:
```
git clone https://github.com/google/macops-MOMenu
cd macops-MOMenu
pod install
xcodebuild -workspace MOMenu.xcworkspace -scheme MOMenu -configuration Release -derivedDataPath build
```
The built application will be in `./build/Build/Products/Release/MOMenu.app`
In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`
An example Snake plugin is included in this repository.
To build and install the Snake plugin:
```
cd plugins/snake
xcodebuild
sudo mkdir -p /Library/MOMenu/PlugIns
sudo cp -r build/Release/Snake.bundle /Library/MOMenu/PlugIns
```
MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag, e.g.:
```
../../build/Build/Products/Release/MOMenu.app/Contents/MacOS/MOMenu --nochecksignatures
```
MOMenu and its loaded plugins will appear in the menubar:
<img src="https://github.com/verycarefully/macops-MOMenu/raw/master/docs/momenu.png">
| Fix up grammar and style. | Fix up grammar and style.
| Markdown | apache-2.0 | google/macops-MOMenu,google/macops-MOMenu | markdown | ## Code Before:
MOMenu is a menubar item with a plug-in architecture which allows admins to create anything that helps their fleet, from setting user preferences to reporting on machine status.
## Building
Requires [CocoaPods](https://cocoapods.org/) and [Xcode](https://developer.apple.com/xcode/downloads/) to compile.
Clone the repository, install necessary pods, then build the applications:
```
git clone https://github.com/google/macops-MOMenu
cd macops-MOMenu
pod install
xcodebuild -workspace MOMenu.xcworkspace -scheme MOMenu -configuration Release -derivedDataPath build
```
The built application will be in `./build/Build/Products/Release/MOMenu.app`
In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`.
An example Snake plugin is included in this repository.
To build and install the Snake plugin:
```
cd plugins/snake
xcodebuild
sudo mkdir -p /Library/MOMenu/PlugIns
sudo cp -r build/Release/Snake.bundle /Library/MOMenu/PlugIns
```
MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag:
```
../../build/Build/Products/Release/MOMenu.app/Contents/MacOS/MOMenu --nochecksignatures
```
MOMenu should appear in the menubar:
<img src="https://github.com/verycarefully/macops-MOMenu/raw/master/docs/momenu.png">
## Instruction:
Fix up grammar and style.
## Code After:
MOMenu is a menubar item with a plug-in architecture which allows admins to create anything that helps their fleet, from setting user preferences to reporting on machine status.
## Building
Requires [CocoaPods](https://cocoapods.org/) and [Xcode](https://developer.apple.com/xcode/downloads/) to compile.
Clone the repository, install necessary pods, then build the application:
```
git clone https://github.com/google/macops-MOMenu
cd macops-MOMenu
pod install
xcodebuild -workspace MOMenu.xcworkspace -scheme MOMenu -configuration Release -derivedDataPath build
```
The built application will be in `./build/Build/Products/Release/MOMenu.app`
In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`
An example Snake plugin is included in this repository.
To build and install the Snake plugin:
```
cd plugins/snake
xcodebuild
sudo mkdir -p /Library/MOMenu/PlugIns
sudo cp -r build/Release/Snake.bundle /Library/MOMenu/PlugIns
```
MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag, e.g.:
```
../../build/Build/Products/Release/MOMenu.app/Contents/MacOS/MOMenu --nochecksignatures
```
MOMenu and its loaded plugins will appear in the menubar:
<img src="https://github.com/verycarefully/macops-MOMenu/raw/master/docs/momenu.png">
|
MOMenu is a menubar item with a plug-in architecture which allows admins to create anything that helps their fleet, from setting user preferences to reporting on machine status.
## Building
Requires [CocoaPods](https://cocoapods.org/) and [Xcode](https://developer.apple.com/xcode/downloads/) to compile.
- Clone the repository, install necessary pods, then build the applications:
? -
+ Clone the repository, install necessary pods, then build the application:
```
git clone https://github.com/google/macops-MOMenu
cd macops-MOMenu
pod install
xcodebuild -workspace MOMenu.xcworkspace -scheme MOMenu -configuration Release -derivedDataPath build
```
The built application will be in `./build/Build/Products/Release/MOMenu.app`
- In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`.
? -
+ In order to use MOMenu, install suitable plugins to `/Library/MOMenu/PlugIns`
An example Snake plugin is included in this repository.
To build and install the Snake plugin:
```
cd plugins/snake
xcodebuild
sudo mkdir -p /Library/MOMenu/PlugIns
sudo cp -r build/Release/Snake.bundle /Library/MOMenu/PlugIns
```
- MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag:
+ MOMenu and plugins must be codesigned with the same developer certificate in order to launch. To test the program without codesigning, launch it with the `nochecksignatures` flag, e.g.:
? ++++++
```
../../build/Build/Products/Release/MOMenu.app/Contents/MacOS/MOMenu --nochecksignatures
```
- MOMenu should appear in the menubar:
+ MOMenu and its loaded plugins will appear in the menubar:
<img src="https://github.com/verycarefully/macops-MOMenu/raw/master/docs/momenu.png">
| 8 | 0.195122 | 4 | 4 |
30b0b592e998282a5394f6cafda35da8a3695c5c | src/main/resources/templates/greeting/new.html.hbs | src/main/resources/templates/greeting/new.html.hbs | {{#partial "content"}}
<h1>Add a new greeting</h1>
{{#if errors}}
<p class="h2 text-danger">There were errors in the submitted greeting!</p>
{{/if}}
<form action="/greeting/" method="post">
<div class="form-group {{#if errors.template}}has-error{{/if}}">
<label for="template">Greeting text</label>
<input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
{{#if errors.template}}
<p class="text-danger">{{errors.template}}</p>
{{/if}}
</div>
<button class="btn btn-primary" type="submit">Submit</button>
<a class="btn btn-danger" role="button" href="/greeting">Cancel</a>
</form>
{{/partial}}
{{> layouts/base title="New greeting"}}
| {{#partial "content"}}
<h1>Add a new greeting</h1>
{{#if errors}}
<p class="h2 text-danger">There were errors in the submitted greeting!</p>
{{/if}}
<form action="/greeting/" method="post">
<div class="form-group {{#if errors.template}}has-error{{/if}}">
<label for="template">Greeting text</label>
<input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
{{#if errors.template}}
<p class="text-danger">{{errors.template}}</p>
{{/if}}
</div>
<button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
<a class="btn btn-danger" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
</form>
{{/partial}}
{{> layouts/base title="New greeting"}}
| Add Font Awesome-ness to the new greeting form. | Add Font Awesome-ness to the new greeting form.
| Handlebars | bsd-3-clause | hainesr/mvc-dev,hainesr/mvc-dev | handlebars | ## Code Before:
{{#partial "content"}}
<h1>Add a new greeting</h1>
{{#if errors}}
<p class="h2 text-danger">There were errors in the submitted greeting!</p>
{{/if}}
<form action="/greeting/" method="post">
<div class="form-group {{#if errors.template}}has-error{{/if}}">
<label for="template">Greeting text</label>
<input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
{{#if errors.template}}
<p class="text-danger">{{errors.template}}</p>
{{/if}}
</div>
<button class="btn btn-primary" type="submit">Submit</button>
<a class="btn btn-danger" role="button" href="/greeting">Cancel</a>
</form>
{{/partial}}
{{> layouts/base title="New greeting"}}
## Instruction:
Add Font Awesome-ness to the new greeting form.
## Code After:
{{#partial "content"}}
<h1>Add a new greeting</h1>
{{#if errors}}
<p class="h2 text-danger">There were errors in the submitted greeting!</p>
{{/if}}
<form action="/greeting/" method="post">
<div class="form-group {{#if errors.template}}has-error{{/if}}">
<label for="template">Greeting text</label>
<input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
{{#if errors.template}}
<p class="text-danger">{{errors.template}}</p>
{{/if}}
</div>
<button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
<a class="btn btn-danger" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
</form>
{{/partial}}
{{> layouts/base title="New greeting"}}
| {{#partial "content"}}
<h1>Add a new greeting</h1>
{{#if errors}}
<p class="h2 text-danger">There were errors in the submitted greeting!</p>
{{/if}}
<form action="/greeting/" method="post">
<div class="form-group {{#if errors.template}}has-error{{/if}}">
<label for="template">Greeting text</label>
<input class="form-control" type="text" name="template" id="template" placeholder="Hello, %s!" autofocus />
{{#if errors.template}}
<p class="text-danger">{{errors.template}}</p>
{{/if}}
</div>
- <button class="btn btn-primary" type="submit">Submit</button>
+ <button class="btn btn-primary" type="submit"><i class="fa fa-bookmark-o" aria-hidden="true"></i> Save</button>
- <a class="btn btn-danger" role="button" href="/greeting">Cancel</a>
+ <a class="btn btn-danger" role="button" href="/greeting"><i class="fa fa-ban" aria-hidden="true"></i> Cancel</a>
? +++++++++++++++++++++++++++++++++++++++++++++
</form>
{{/partial}}
{{> layouts/base title="New greeting"}} | 4 | 0.181818 | 2 | 2 |
d0f30082c81d844c5b8c4d23154f274d36ef97c5 | omnibus/CONTRIBUTING.md | omnibus/CONTRIBUTING.md |
In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied by an update to [CHANGELOG.md](CHANGELOG.md) and, if necessary, [RELEASE_NOTES.md](RELEASE_NOTES.md), or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
## Changelog
The CHANGELOG.md file is intended to provide a concise list of downstream project changes for development and support purposes only. All relevant changes to `opscode-omnibus` should be represented in the CHANGELOG.md.
## Release Notes
The RELEASE_NOTES.md file can be viewed as a higher-level, customer-friendly version of CHANGELOG.md. Significant changes to `opscode-omnibus` and its dependencies should be represented in one of the following three categories:
* What's New
* Bug Fixes
* Security Fixes
These notes will be included as part the blog post for each release. |
In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied if necessary to an update to the release [RELEASE_NOTES.md](RELEASE_NOTES.md) or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
## Release Notes
The RELEASE_NOTES.md file can be viewed as a higher-level, customer-friendly version of CHANGELOG.md. Significant changes to `opscode-omnibus` and its dependencies should be represented in one of the following three categories:
* What's New
* Bug Fixes
* Security Fixes
These notes will be included as part the blog post for each release. | Remove the note about updating the changelog | Remove the note about updating the changelog
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| Markdown | apache-2.0 | chef/chef-server,chef/chef-server,chef/chef-server,chef/chef-server,chef/chef-server,chef/chef-server | markdown | ## Code Before:
In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied by an update to [CHANGELOG.md](CHANGELOG.md) and, if necessary, [RELEASE_NOTES.md](RELEASE_NOTES.md), or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
## Changelog
The CHANGELOG.md file is intended to provide a concise list of downstream project changes for development and support purposes only. All relevant changes to `opscode-omnibus` should be represented in the CHANGELOG.md.
## Release Notes
The RELEASE_NOTES.md file can be viewed as a higher-level, customer-friendly version of CHANGELOG.md. Significant changes to `opscode-omnibus` and its dependencies should be represented in one of the following three categories:
* What's New
* Bug Fixes
* Security Fixes
These notes will be included as part the blog post for each release.
## Instruction:
Remove the note about updating the changelog
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
## Code After:
In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied if necessary to an update to the release [RELEASE_NOTES.md](RELEASE_NOTES.md) or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
## Release Notes
The RELEASE_NOTES.md file can be viewed as a higher-level, customer-friendly version of CHANGELOG.md. Significant changes to `opscode-omnibus` and its dependencies should be represented in one of the following three categories:
* What's New
* Bug Fixes
* Security Fixes
These notes will be included as part the blog post for each release. |
- In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied by an update to [CHANGELOG.md](CHANGELOG.md) and, if necessary, [RELEASE_NOTES.md](RELEASE_NOTES.md), or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
? ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
+ In order to facilitate the tedious communication tasks involved in releasing Chef Server, we ask that all contributors adhere to a **"publicize as you go"** policy. Each pull request to `opscode-omnibus` should be accompanied if necessary to an update to the release [RELEASE_NOTES.md](RELEASE_NOTES.md) or a note in the PR explaining that such an update is unnecessary. Changes to these files should occur **above** the most recent release and will be rolled up into the communication for the next release.
? ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- ## Changelog
-
- The CHANGELOG.md file is intended to provide a concise list of downstream project changes for development and support purposes only. All relevant changes to `opscode-omnibus` should be represented in the CHANGELOG.md.
## Release Notes
The RELEASE_NOTES.md file can be viewed as a higher-level, customer-friendly version of CHANGELOG.md. Significant changes to `opscode-omnibus` and its dependencies should be represented in one of the following three categories:
* What's New
* Bug Fixes
* Security Fixes
These notes will be included as part the blog post for each release. | 6 | 0.4 | 1 | 5 |
1bf1d3a09d7897e84c320c642b3a1ada6c18a32b | lib/coffee/rails/js_hook.rb | lib/coffee/rails/js_hook.rb | module Coffee
module Rails
module JsHook
extend ActiveSupport::Concern
included do
no_tasks do
def js_template(source, destination)
template(source + '.coffee', destination + '.coffee')
end
end
end
end
end
end
| module Coffee
module Rails
module JsHook
extend ActiveSupport::Concern
included do
no_tasks do
redefine_method :js_template do |source, destination|
template(source + '.coffee', destination + '.coffee')
end
end
end
end
end
end
| Fix js_template method redefined warning from Rails tests | Fix js_template method redefined warning from Rails tests
| Ruby | mit | rails/coffee-rails,rails/coffee-rails,rails/coffee-rails | ruby | ## Code Before:
module Coffee
module Rails
module JsHook
extend ActiveSupport::Concern
included do
no_tasks do
def js_template(source, destination)
template(source + '.coffee', destination + '.coffee')
end
end
end
end
end
end
## Instruction:
Fix js_template method redefined warning from Rails tests
## Code After:
module Coffee
module Rails
module JsHook
extend ActiveSupport::Concern
included do
no_tasks do
redefine_method :js_template do |source, destination|
template(source + '.coffee', destination + '.coffee')
end
end
end
end
end
end
| module Coffee
module Rails
module JsHook
extend ActiveSupport::Concern
included do
no_tasks do
- def js_template(source, destination)
? ^ ^
+ redefine_method :js_template do |source, destination|
? ++ ++++++++++ + ^^^^^ ^
template(source + '.coffee', destination + '.coffee')
end
end
end
end
end
end | 2 | 0.133333 | 1 | 1 |
69e4f67f54198a95fdf3359e2ae8cf440218fe88 | .travis.yml | .travis.yml | language: generic
before_install:
- cd scripts/install-vagrant;./install-vagrant-linux-ubuntu.sh;
install:
- sudo -E su $USER -c 'cd ../../vagrant;./build.sh'
script:
- sudo -E su $USER -c './package.sh'
branches:
only:
- master
addons:
artifacts: true
s3_region: "us-east-1"
sudo: required
dist: trusty | language: generic
before_install:
- cd scripts/install-vagrant;./install-vagrant-linux-ubuntu.sh;
install:
- sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./build.sh'
script:
- sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./package.sh'
branches:
only:
- master
addons:
artifacts: true
s3_region: "us-east-1"
sudo: required
dist: trusty | Fix path issues Turn off use_nfs | Fix path issues
Turn off use_nfs
| YAML | apache-2.0 | tpouyer/stackinabox,stackinabox/devstack,stackinabox/devstack,sudhakarau1/devstack,sudhakarau1/devstack,tpouyer/stackinabox | yaml | ## Code Before:
language: generic
before_install:
- cd scripts/install-vagrant;./install-vagrant-linux-ubuntu.sh;
install:
- sudo -E su $USER -c 'cd ../../vagrant;./build.sh'
script:
- sudo -E su $USER -c './package.sh'
branches:
only:
- master
addons:
artifacts: true
s3_region: "us-east-1"
sudo: required
dist: trusty
## Instruction:
Fix path issues
Turn off use_nfs
## Code After:
language: generic
before_install:
- cd scripts/install-vagrant;./install-vagrant-linux-ubuntu.sh;
install:
- sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./build.sh'
script:
- sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./package.sh'
branches:
only:
- master
addons:
artifacts: true
s3_region: "us-east-1"
sudo: required
dist: trusty | language: generic
before_install:
- cd scripts/install-vagrant;./install-vagrant-linux-ubuntu.sh;
install:
- - sudo -E su $USER -c 'cd ../../vagrant;./build.sh'
? ^^ ^^
+ - sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./build.sh'
? ^^^^^ ^^^^^^^^^^^ +
script:
- - sudo -E su $USER -c './package.sh'
+ - sudo -E su $USER -c 'cd $HOME/stackinabox/vagrant/;./package.sh'
branches:
only:
- master
addons:
artifacts: true
s3_region: "us-east-1"
sudo: required
dist: trusty | 4 | 0.266667 | 2 | 2 |
ab7c28f902d42777207489832b8179ca877ffd56 | public/js/main.js | public/js/main.js | //Load in the require.js config file
require([
'require-config'
, 'app'
], function(conf, App) {
new App()
})
| //Load in the require.js config file
require([
'require-config'
], function(conf) {
require(['app'], function() {
new App()
})
})
| Fix race condition in app startup | Fix race condition in app startup
| JavaScript | mit | cosmicflame/besttemplate,cosmicflame/besttemplate | javascript | ## Code Before:
//Load in the require.js config file
require([
'require-config'
, 'app'
], function(conf, App) {
new App()
})
## Instruction:
Fix race condition in app startup
## Code After:
//Load in the require.js config file
require([
'require-config'
], function(conf) {
require(['app'], function() {
new App()
})
})
| //Load in the require.js config file
require([
'require-config'
- , 'app'
- ], function(conf, App) {
? -----
+ ], function(conf) {
+
+ require(['app'], function() {
- new App()
+ new App()
? +
+ })
}) | 8 | 1.142857 | 5 | 3 |
a950f51e537b05dea9c9675a877cb387eb0dc371 | .circleci/config.yml | .circleci/config.yml | default_docker: &default_docker
docker:
- image: gpii/exekube:0.5.1-google_gpii.0
version: 2
jobs:
terraform-fmt-check:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: Terraform Format Check
command: |
echo "Running Terraform format check...";
terraform fmt --check=true /workspace
gcp-unit-tests:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: GCP Unit Tests
# 'bundle install' must not use '--path. See Gemfile for more details.
command: |
echo "Running GCP unit tests...";
cd /workspace/shared/rakefiles/tests;
gem install bundler --no-ri --no-rdoc -v 2.0.1;
bundle install;
rake
workflows:
version: 2
main:
jobs:
- terraform-fmt-check
- gcp-unit-tests
- aws-unit-tests
| default_docker: &default_docker
docker:
- image: gpii/exekube:0.5.1-google_gpii.0
version: 2
jobs:
terraform-fmt-check:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: Terraform Format Check
command: |
echo "Running Terraform format check...";
terraform fmt --check=true /workspace
gcp-unit-tests:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: GCP Unit Tests
# 'bundle install' must not use '--path. See Gemfile for more details.
command: |
echo "Running GCP unit tests...";
cd /workspace/shared/rakefiles/tests;
gem install bundler --no-ri --no-rdoc -v 2.0.1;
bundle install;
rake
workflows:
version: 2
main:
jobs:
- terraform-fmt-check
- gcp-unit-tests
| Remove aws-unit-tests from workflows as well | Remove aws-unit-tests from workflows as well
| YAML | bsd-3-clause | mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra | yaml | ## Code Before:
default_docker: &default_docker
docker:
- image: gpii/exekube:0.5.1-google_gpii.0
version: 2
jobs:
terraform-fmt-check:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: Terraform Format Check
command: |
echo "Running Terraform format check...";
terraform fmt --check=true /workspace
gcp-unit-tests:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: GCP Unit Tests
# 'bundle install' must not use '--path. See Gemfile for more details.
command: |
echo "Running GCP unit tests...";
cd /workspace/shared/rakefiles/tests;
gem install bundler --no-ri --no-rdoc -v 2.0.1;
bundle install;
rake
workflows:
version: 2
main:
jobs:
- terraform-fmt-check
- gcp-unit-tests
- aws-unit-tests
## Instruction:
Remove aws-unit-tests from workflows as well
## Code After:
default_docker: &default_docker
docker:
- image: gpii/exekube:0.5.1-google_gpii.0
version: 2
jobs:
terraform-fmt-check:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: Terraform Format Check
command: |
echo "Running Terraform format check...";
terraform fmt --check=true /workspace
gcp-unit-tests:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: GCP Unit Tests
# 'bundle install' must not use '--path. See Gemfile for more details.
command: |
echo "Running GCP unit tests...";
cd /workspace/shared/rakefiles/tests;
gem install bundler --no-ri --no-rdoc -v 2.0.1;
bundle install;
rake
workflows:
version: 2
main:
jobs:
- terraform-fmt-check
- gcp-unit-tests
| default_docker: &default_docker
docker:
- image: gpii/exekube:0.5.1-google_gpii.0
version: 2
jobs:
terraform-fmt-check:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: Terraform Format Check
command: |
echo "Running Terraform format check...";
terraform fmt --check=true /workspace
gcp-unit-tests:
<<: *default_docker
working_directory: /workspace
steps:
- checkout
- run:
name: GCP Unit Tests
# 'bundle install' must not use '--path. See Gemfile for more details.
command: |
echo "Running GCP unit tests...";
cd /workspace/shared/rakefiles/tests;
gem install bundler --no-ri --no-rdoc -v 2.0.1;
bundle install;
rake
workflows:
version: 2
main:
jobs:
- terraform-fmt-check
- gcp-unit-tests
- - aws-unit-tests | 1 | 0.025641 | 0 | 1 |
fb0046449fd67d3b52ec725cbad973216b47ee83 | Gallery/directed/siblings.html | Gallery/directed/siblings.html | <HTML>
<HEAD>
<TITLE> Graphviz Example: Siblings </TITLE>
</HEAD>
<body background="/backgrounds/back8.gif">
<table>
<tr>
<th>
<FONT SIZE=+1 COLOR="#FF0000">
Siblings
</FONT>
</th>
</tr>
<tr>
<td align=LEFT colspan=2>
<BLOCKQUOTE>
<description to be provided>
</BLOCKQUOTE>
<P>
</td>
</tr>
<tr>
<td>
<A HREF="siblings.gv.txt">
<IMG SRC="siblings.png">
</A><BR>
<I>Click on the picture to view the .gv file</I>
</td>
</tr>
</table>
<P>
[<a href="siblings.svg">SVG</a>]
[ Back to Graphviz:
<A HREF="../../" TARGET="_top"> Home Page</A>
|
<A HREF="../../Gallery.php" TARGET="_top"> Gallery</A>
]
<P>
<font size="1">
Copyright © 1996-2004 AT&T. All rights reserved.
</font>
</BODY>
</HTML>
| <HTML>
<HEAD>
<TITLE> Graphviz Example: Siblings </TITLE>
</HEAD>
<body background="/backgrounds/back8.gif">
<table>
<tr>
<th>
<FONT SIZE=+1 COLOR="#FF0000">
Siblings
</FONT>
</th>
</tr>
<tr>
<td align=LEFT colspan=2>
<BLOCKQUOTE>
This is a graphviz-produced layout of the "family tree" of a fraternity and sorority.
Each member in the graph was assigned a "big brother" from one organization and a "big sister" from the other. Blue icons represent Brothers from the fraternity, Pink represents Sisters from the sorority (Purple members are in both organizations - like honoraries.)
Charter members (who can have no parent nodes) are outlined.
From Japheth Cleaver, San Diego State Univ.
</BLOCKQUOTE>
<P>
</td>
</tr>
<tr>
<td>
<A HREF="siblings.gv.txt">
<IMG SRC="siblings.png">
</A><BR>
<I>Click on the picture to view the .gv file</I>
</td>
</tr>
</table>
<P>
[<a href="siblings.svg">SVG</a>]
[ Back to Graphviz:
<A HREF="../../" TARGET="_top"> Home Page</A>
|
<A HREF="../../Gallery.php" TARGET="_top"> Gallery</A>
]
<P>
<font size="1">
Copyright © 1996-2004 AT&T. All rights reserved.
</font>
</BODY>
</HTML>
| Add description to web page. | Add description to web page.
| HTML | epl-1.0 | ellson/graphviz-web-static,ellson/graphviz-web-static,MjAbuz/graphviz-web-static,MjAbuz/graphviz-web-static,MjAbuz/graphviz-web-static,ellson/graphviz-web-static | html | ## Code Before:
<HTML>
<HEAD>
<TITLE> Graphviz Example: Siblings </TITLE>
</HEAD>
<body background="/backgrounds/back8.gif">
<table>
<tr>
<th>
<FONT SIZE=+1 COLOR="#FF0000">
Siblings
</FONT>
</th>
</tr>
<tr>
<td align=LEFT colspan=2>
<BLOCKQUOTE>
<description to be provided>
</BLOCKQUOTE>
<P>
</td>
</tr>
<tr>
<td>
<A HREF="siblings.gv.txt">
<IMG SRC="siblings.png">
</A><BR>
<I>Click on the picture to view the .gv file</I>
</td>
</tr>
</table>
<P>
[<a href="siblings.svg">SVG</a>]
[ Back to Graphviz:
<A HREF="../../" TARGET="_top"> Home Page</A>
|
<A HREF="../../Gallery.php" TARGET="_top"> Gallery</A>
]
<P>
<font size="1">
Copyright © 1996-2004 AT&T. All rights reserved.
</font>
</BODY>
</HTML>
## Instruction:
Add description to web page.
## Code After:
<HTML>
<HEAD>
<TITLE> Graphviz Example: Siblings </TITLE>
</HEAD>
<body background="/backgrounds/back8.gif">
<table>
<tr>
<th>
<FONT SIZE=+1 COLOR="#FF0000">
Siblings
</FONT>
</th>
</tr>
<tr>
<td align=LEFT colspan=2>
<BLOCKQUOTE>
This is a graphviz-produced layout of the "family tree" of a fraternity and sorority.
Each member in the graph was assigned a "big brother" from one organization and a "big sister" from the other. Blue icons represent Brothers from the fraternity, Pink represents Sisters from the sorority (Purple members are in both organizations - like honoraries.)
Charter members (who can have no parent nodes) are outlined.
From Japheth Cleaver, San Diego State Univ.
</BLOCKQUOTE>
<P>
</td>
</tr>
<tr>
<td>
<A HREF="siblings.gv.txt">
<IMG SRC="siblings.png">
</A><BR>
<I>Click on the picture to view the .gv file</I>
</td>
</tr>
</table>
<P>
[<a href="siblings.svg">SVG</a>]
[ Back to Graphviz:
<A HREF="../../" TARGET="_top"> Home Page</A>
|
<A HREF="../../Gallery.php" TARGET="_top"> Gallery</A>
]
<P>
<font size="1">
Copyright © 1996-2004 AT&T. All rights reserved.
</font>
</BODY>
</HTML>
| <HTML>
<HEAD>
<TITLE> Graphviz Example: Siblings </TITLE>
</HEAD>
<body background="/backgrounds/back8.gif">
<table>
<tr>
<th>
<FONT SIZE=+1 COLOR="#FF0000">
Siblings
</FONT>
</th>
</tr>
<tr>
<td align=LEFT colspan=2>
<BLOCKQUOTE>
- <description to be provided>
+ This is a graphviz-produced layout of the "family tree" of a fraternity and sorority.
+
+ Each member in the graph was assigned a "big brother" from one organization and a "big sister" from the other. Blue icons represent Brothers from the fraternity, Pink represents Sisters from the sorority (Purple members are in both organizations - like honoraries.)
+
+ Charter members (who can have no parent nodes) are outlined.
+
+ From Japheth Cleaver, San Diego State Univ.
</BLOCKQUOTE>
<P>
</td>
</tr>
<tr>
<td>
<A HREF="siblings.gv.txt">
<IMG SRC="siblings.png">
</A><BR>
<I>Click on the picture to view the .gv file</I>
</td>
</tr>
</table>
<P>
[<a href="siblings.svg">SVG</a>]
[ Back to Graphviz:
<A HREF="../../" TARGET="_top"> Home Page</A>
|
<A HREF="../../Gallery.php" TARGET="_top"> Gallery</A>
]
<P>
<font size="1">
Copyright © 1996-2004 AT&T. All rights reserved.
</font>
</BODY>
</HTML> | 8 | 0.163265 | 7 | 1 |
35a0730102040baeb7e802c583aaa61ea55c9255 | releasenotes/notes/user-visible-extra-specs-6cf7e49c6be57a01.yaml | releasenotes/notes/user-visible-extra-specs-6cf7e49c6be57a01.yaml | ---
features:
- |
A small list volume type extra specs are now visible to regular users, and
not just to cloud administrators. This allows users to see non-senstive
extra specs, which may help them choose a particular volume type when
creating volumes. Sensitive extra specs are still only visible to cloud
administrators. See the ``User visible extra specs`` section in the Cinder
Administration guide for more information.
security:
- |
A small list volume type extra specs are now visible to regular users, and
not just to cloud administrators. Cloud administrators that wish to opt
out of this feature should consult the ``Security considerations``
portion of the ``User visible extra specs`` section in the Cinder
Administration guide.
| ---
features:
- |
A small list of volume type extra specs are now visible to regular users,
and not just to cloud administrators. This allows users to see non-senstive
extra specs, which may help them choose a particular volume type when
creating volumes. Sensitive extra specs are still only visible to cloud
administrators. See the "User visible extra specs" section in the Cinder
Administration guide for more information.
security:
- |
A small list of volume type extra specs are now visible to regular users,
and not just to cloud administrators. Cloud administrators that wish to opt
out of this feature should consult the "Security considerations"
portion of the "User visible extra specs" section in the Cinder
Administration guide.
| Clean up user visible extra specs release note | Clean up user visible extra specs release note
Fix a couple of grammar and text formatting nits.
Change-Id: I19d74d1125e0ab17bc71e5dcdd5f03b471201d2e
| YAML | apache-2.0 | mahak/cinder,openstack/cinder,openstack/cinder,mahak/cinder | yaml | ## Code Before:
---
features:
- |
A small list volume type extra specs are now visible to regular users, and
not just to cloud administrators. This allows users to see non-senstive
extra specs, which may help them choose a particular volume type when
creating volumes. Sensitive extra specs are still only visible to cloud
administrators. See the ``User visible extra specs`` section in the Cinder
Administration guide for more information.
security:
- |
A small list volume type extra specs are now visible to regular users, and
not just to cloud administrators. Cloud administrators that wish to opt
out of this feature should consult the ``Security considerations``
portion of the ``User visible extra specs`` section in the Cinder
Administration guide.
## Instruction:
Clean up user visible extra specs release note
Fix a couple of grammar and text formatting nits.
Change-Id: I19d74d1125e0ab17bc71e5dcdd5f03b471201d2e
## Code After:
---
features:
- |
A small list of volume type extra specs are now visible to regular users,
and not just to cloud administrators. This allows users to see non-senstive
extra specs, which may help them choose a particular volume type when
creating volumes. Sensitive extra specs are still only visible to cloud
administrators. See the "User visible extra specs" section in the Cinder
Administration guide for more information.
security:
- |
A small list of volume type extra specs are now visible to regular users,
and not just to cloud administrators. Cloud administrators that wish to opt
out of this feature should consult the "Security considerations"
portion of the "User visible extra specs" section in the Cinder
Administration guide.
| ---
features:
- |
- A small list volume type extra specs are now visible to regular users, and
? ----
+ A small list of volume type extra specs are now visible to regular users,
? +++
- not just to cloud administrators. This allows users to see non-senstive
+ and not just to cloud administrators. This allows users to see non-senstive
? ++++
extra specs, which may help them choose a particular volume type when
creating volumes. Sensitive extra specs are still only visible to cloud
- administrators. See the ``User visible extra specs`` section in the Cinder
? ^^ ^^
+ administrators. See the "User visible extra specs" section in the Cinder
? ^ ^
Administration guide for more information.
security:
- |
- A small list volume type extra specs are now visible to regular users, and
? ----
+ A small list of volume type extra specs are now visible to regular users,
? +++
- not just to cloud administrators. Cloud administrators that wish to opt
+ and not just to cloud administrators. Cloud administrators that wish to opt
? ++++
- out of this feature should consult the ``Security considerations``
? ^^ ^^
+ out of this feature should consult the "Security considerations"
? ^ ^
- portion of the ``User visible extra specs`` section in the Cinder
? ^^ ^^
+ portion of the "User visible extra specs" section in the Cinder
? ^ ^
Administration guide. | 14 | 0.875 | 7 | 7 |
251d4a1fdc79f654fa90fc52ec06046b3ad6a56f | SECURITY.md | SECURITY.md |
| Version | Supported |
|---------|------------------------|
| 14.0.x | ✔️ Yes |
| 13.0.x | 🔐 Security updates until April 2022 |
| 0.13.x | ❌ No |
| 0.12.x | 🔐 Security updates until January 2022 |
| < 0.12 | ❌ No |
## Reporting a Vulnerability
In general, vulnerabilities can be reported as an issue, pull requests are very welcome. If you'd like to report privately, please email jademichael+http-server@jmthornton.net.
|
| Version | Supported |
|---------|------------------------|
| 14.0.x | ✔️ Yes |
| 13.0.x | 🔐 Security updates until April 2022 |
| <= 0.13.x | ❌ No |
## Reporting a Vulnerability
In general, vulnerabilities can be reported as an issue, pull requests are very welcome. If you'd like to report privately, please email jademichael+http-server@jmthornton.net.
| Update support commitments for Jan 2022 | Update support commitments for Jan 2022 | Markdown | mit | indexzero/http-server,indexzero/http-server | markdown | ## Code Before:
| Version | Supported |
|---------|------------------------|
| 14.0.x | ✔️ Yes |
| 13.0.x | 🔐 Security updates until April 2022 |
| 0.13.x | ❌ No |
| 0.12.x | 🔐 Security updates until January 2022 |
| < 0.12 | ❌ No |
## Reporting a Vulnerability
In general, vulnerabilities can be reported as an issue, pull requests are very welcome. If you'd like to report privately, please email jademichael+http-server@jmthornton.net.
## Instruction:
Update support commitments for Jan 2022
## Code After:
| Version | Supported |
|---------|------------------------|
| 14.0.x | ✔️ Yes |
| 13.0.x | 🔐 Security updates until April 2022 |
| <= 0.13.x | ❌ No |
## Reporting a Vulnerability
In general, vulnerabilities can be reported as an issue, pull requests are very welcome. If you'd like to report privately, please email jademichael+http-server@jmthornton.net.
|
| Version | Supported |
|---------|------------------------|
| 14.0.x | ✔️ Yes |
| 13.0.x | 🔐 Security updates until April 2022 |
- | 0.13.x | ❌ No |
+ | <= 0.13.x | ❌ No |
? +++
- | 0.12.x | 🔐 Security updates until January 2022 |
- | < 0.12 | ❌ No |
## Reporting a Vulnerability
In general, vulnerabilities can be reported as an issue, pull requests are very welcome. If you'd like to report privately, please email jademichael+http-server@jmthornton.net. | 4 | 0.333333 | 1 | 3 |
58b21f702886c38f3152cf298365b2ccd7c03b2e | lib/dartrocket.dart | lib/dartrocket.dart | library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "src/animation/transition_function.dart";
part "src/gameobject/sprite.dart";
part "src/gameobject/animated_sprite.dart";
part "src/gameobject/group.dart"; | library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "src/animation/transition_function.dart";
part "src/gameobject/sprite.dart";
part "src/gameobject/animated_sprite.dart";
part "src/gameobject/interactive_sprite.dart";
part "src/gameobject/full_sprite.dart";
part "src/gameobject/group.dart"; | Add new kind of sprites | Add new kind of sprites
| Dart | bsd-2-clause | StrykerKKD/dartrocket,StrykerKKD/dartrocket | dart | ## Code Before:
library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "src/animation/transition_function.dart";
part "src/gameobject/sprite.dart";
part "src/gameobject/animated_sprite.dart";
part "src/gameobject/group.dart";
## Instruction:
Add new kind of sprites
## Code After:
library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "src/animation/transition_function.dart";
part "src/gameobject/sprite.dart";
part "src/gameobject/animated_sprite.dart";
part "src/gameobject/interactive_sprite.dart";
part "src/gameobject/full_sprite.dart";
part "src/gameobject/group.dart"; | library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "src/animation/transition_function.dart";
part "src/gameobject/sprite.dart";
part "src/gameobject/animated_sprite.dart";
+ part "src/gameobject/interactive_sprite.dart";
+ part "src/gameobject/full_sprite.dart";
part "src/gameobject/group.dart"; | 2 | 0.105263 | 2 | 0 |
816745cc1890a83259338276133806b0d98d047f | README.md | README.md | plottable.js
============
Plottable.js is a library for easily creating beautiful, flexible, interactive, and performant charts for the web. It is built on top of d3 and provides a hgiher level of abstracting, so the developer does not need to worry about d3's low-level components and can easily access many chart renderers, interaction patterns, and a flexible layout engine. Plottable is being developed by Palantir Technologies, and is written in Typescript.
Plottable is currently in early alpha and does not yet have a stable API.
Plottable is copyright (c) 2014 Palantir Technologies.
| plottable.js
============
Plottable.js is a library for easily creating beautiful, flexible, interactive, and performant charts for the web. It is built on top of d3 and provides a hgiher level of abstracting, so the developer does not need to worry about d3's low-level components and can easily access many chart renderers, interaction patterns, and a flexible layout engine. Plottable is being developed by Palantir Technologies, and is written in Typescript.
Plottable is currently in early alpha and does not yet have a stable API.
Plottable is copyright (c) 2014 Palantir Technologies.
=========
Setup Instructions:
sudo npm install
bower install
tsd reinstall
| Update readme with setup instructions | Update readme with setup instructions
| Markdown | mit | danmane/plottable,onaio/plottable,palantir/plottable,danmane/plottable,softwords/plottable,gdseller/plottable,palantir/plottable,alyssaq/plottable,gdseller/plottable,jacqt/plottable,iobeam/plottable,onaio/plottable,palantir/plottable,RobertoMalatesta/plottable,iobeam/plottable,palantir/plottable,iobeam/plottable,NextTuesday/plottable,alyssaq/plottable,jacqt/plottable,NextTuesday/plottable,alyssaq/plottable,NextTuesday/plottable,onaio/plottable,jacqt/plottable,softwords/plottable,danmane/plottable,gdseller/plottable,RobertoMalatesta/plottable,RobertoMalatesta/plottable,softwords/plottable | markdown | ## Code Before:
plottable.js
============
Plottable.js is a library for easily creating beautiful, flexible, interactive, and performant charts for the web. It is built on top of d3 and provides a hgiher level of abstracting, so the developer does not need to worry about d3's low-level components and can easily access many chart renderers, interaction patterns, and a flexible layout engine. Plottable is being developed by Palantir Technologies, and is written in Typescript.
Plottable is currently in early alpha and does not yet have a stable API.
Plottable is copyright (c) 2014 Palantir Technologies.
## Instruction:
Update readme with setup instructions
## Code After:
plottable.js
============
Plottable.js is a library for easily creating beautiful, flexible, interactive, and performant charts for the web. It is built on top of d3 and provides a hgiher level of abstracting, so the developer does not need to worry about d3's low-level components and can easily access many chart renderers, interaction patterns, and a flexible layout engine. Plottable is being developed by Palantir Technologies, and is written in Typescript.
Plottable is currently in early alpha and does not yet have a stable API.
Plottable is copyright (c) 2014 Palantir Technologies.
=========
Setup Instructions:
sudo npm install
bower install
tsd reinstall
| plottable.js
============
Plottable.js is a library for easily creating beautiful, flexible, interactive, and performant charts for the web. It is built on top of d3 and provides a hgiher level of abstracting, so the developer does not need to worry about d3's low-level components and can easily access many chart renderers, interaction patterns, and a flexible layout engine. Plottable is being developed by Palantir Technologies, and is written in Typescript.
Plottable is currently in early alpha and does not yet have a stable API.
Plottable is copyright (c) 2014 Palantir Technologies.
+
+
+ =========
+ Setup Instructions:
+
+ sudo npm install
+ bower install
+ tsd reinstall | 8 | 1 | 8 | 0 |
4e48adf8aa456d71a52d30636617b67ad8eaf2ad | dist.ini | dist.ini | name = App-KSP_CKAN
author = Leon Wright <techman83@gmail.com>
license = MIT
copyright_holder = Leon Wright
copyright_year = 2015
[Git::NextVersion]
fist_version = 0.01
[NextRelease]
[MetaJSON]
[MetaResources]
repository.url = git://github.com/KSP-CKAN/NetKAN-bot
repository.web = https://github.com/KSP-CKAN/NetKAN-bot
repository.type = git
[@Basic]
[Test::Perl::Critic]
[Test::PodSpelling]
stopwords = exe
stopwords = inflater
stopwords = CKAN
stopwords = netkan
stopwords = api
stopwords = KSP
stopwords = BaconLabs
[AutoPrereqs]
[Prereqs]
IO::Socket::SSL = 0
[OurPkgVersion]
[PodWeaver]
[@Git]
| name = App-KSP_CKAN
author = Leon Wright <techman83@gmail.com>
license = MIT
copyright_holder = Leon Wright
copyright_year = 2015
[Git::NextVersion]
fist_version = 0.01
[NextRelease]
[MetaJSON]
[MetaResources]
repository.url = git://github.com/KSP-CKAN/NetKAN-bot
repository.web = https://github.com/KSP-CKAN/NetKAN-bot
repository.type = git
[Encoding]
encoding = bytes
match = zip
[@Basic]
[Test::Perl::Critic]
[Test::PodSpelling]
stopwords = exe
stopwords = inflater
stopwords = CKAN
stopwords = netkan
stopwords = api
stopwords = KSP
stopwords = BaconLabs
[AutoPrereqs]
[Prereqs]
IO::Socket::SSL = 0
[OurPkgVersion]
[PodWeaver]
[@Git]
| Stop dzil barfing with the zip file | Stop dzil barfing with the zip file
| INI | mit | KSP-CKAN/NetKAN-bot,KSP-CKAN/NetKAN-bot | ini | ## Code Before:
name = App-KSP_CKAN
author = Leon Wright <techman83@gmail.com>
license = MIT
copyright_holder = Leon Wright
copyright_year = 2015
[Git::NextVersion]
fist_version = 0.01
[NextRelease]
[MetaJSON]
[MetaResources]
repository.url = git://github.com/KSP-CKAN/NetKAN-bot
repository.web = https://github.com/KSP-CKAN/NetKAN-bot
repository.type = git
[@Basic]
[Test::Perl::Critic]
[Test::PodSpelling]
stopwords = exe
stopwords = inflater
stopwords = CKAN
stopwords = netkan
stopwords = api
stopwords = KSP
stopwords = BaconLabs
[AutoPrereqs]
[Prereqs]
IO::Socket::SSL = 0
[OurPkgVersion]
[PodWeaver]
[@Git]
## Instruction:
Stop dzil barfing with the zip file
## Code After:
name = App-KSP_CKAN
author = Leon Wright <techman83@gmail.com>
license = MIT
copyright_holder = Leon Wright
copyright_year = 2015
[Git::NextVersion]
fist_version = 0.01
[NextRelease]
[MetaJSON]
[MetaResources]
repository.url = git://github.com/KSP-CKAN/NetKAN-bot
repository.web = https://github.com/KSP-CKAN/NetKAN-bot
repository.type = git
[Encoding]
encoding = bytes
match = zip
[@Basic]
[Test::Perl::Critic]
[Test::PodSpelling]
stopwords = exe
stopwords = inflater
stopwords = CKAN
stopwords = netkan
stopwords = api
stopwords = KSP
stopwords = BaconLabs
[AutoPrereqs]
[Prereqs]
IO::Socket::SSL = 0
[OurPkgVersion]
[PodWeaver]
[@Git]
| name = App-KSP_CKAN
author = Leon Wright <techman83@gmail.com>
license = MIT
copyright_holder = Leon Wright
copyright_year = 2015
[Git::NextVersion]
fist_version = 0.01
[NextRelease]
[MetaJSON]
[MetaResources]
repository.url = git://github.com/KSP-CKAN/NetKAN-bot
repository.web = https://github.com/KSP-CKAN/NetKAN-bot
repository.type = git
+
+ [Encoding]
+ encoding = bytes
+ match = zip
[@Basic]
[Test::Perl::Critic]
[Test::PodSpelling]
stopwords = exe
stopwords = inflater
stopwords = CKAN
stopwords = netkan
stopwords = api
stopwords = KSP
stopwords = BaconLabs
[AutoPrereqs]
[Prereqs]
IO::Socket::SSL = 0
[OurPkgVersion]
[PodWeaver]
[@Git] | 4 | 0.105263 | 4 | 0 |
7398d135a802cf62a8874e76659f34b6a1c8d29a | buddybuild_postbuild.sh | buddybuild_postbuild.sh | swift test
# Run tests for tvOS
xcodebuild clean test -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
# Build for watchOS
xcodebuild clean build -project Files.xcodeproj -scheme Files-watchOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
| swift test
# Run tests for tvOS
xcodebuild clean test -quiet -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
| Remove watchOS build step & use -quiet for xcodebuild | CI: Remove watchOS build step & use -quiet for xcodebuild | Shell | mit | JohnSundell/Files,JohnSundell/Files,JohnSundell/Files | shell | ## Code Before:
swift test
# Run tests for tvOS
xcodebuild clean test -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
# Build for watchOS
xcodebuild clean build -project Files.xcodeproj -scheme Files-watchOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
## Instruction:
CI: Remove watchOS build step & use -quiet for xcodebuild
## Code After:
swift test
# Run tests for tvOS
xcodebuild clean test -quiet -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
| swift test
# Run tests for tvOS
- xcodebuild clean test -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
+ xcodebuild clean test -quiet -project Files.xcodeproj -scheme Files-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
? +++++++
-
- # Build for watchOS
- xcodebuild clean build -project Files.xcodeproj -scheme Files-watchOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | 5 | 0.714286 | 1 | 4 |
3d0d188178c5898d1778ac249236b4487e70a9a6 | plugins/yolol-plugin.rb | plugins/yolol-plugin.rb | require 'cinch'
class YololPlugin
include Cinch::Plugin
match /^!yolol/i
def execute(m)
m.reply("yolol") unless m.user.nick.downcase == "matezoide"
end
end
| require 'cinch'
class YololPlugin
include Cinch::Plugin
match /^!yolol/i
def execute(m)
m.reply("yolol")
end
end | Revert "remove matezoide from using command" | Revert "remove matezoide from using command"
This reverts commit 18044d44faaffd16aa7d45b67184387433eba616.
| Ruby | mit | lc-guy/ASBot | ruby | ## Code Before:
require 'cinch'
class YololPlugin
include Cinch::Plugin
match /^!yolol/i
def execute(m)
m.reply("yolol") unless m.user.nick.downcase == "matezoide"
end
end
## Instruction:
Revert "remove matezoide from using command"
This reverts commit 18044d44faaffd16aa7d45b67184387433eba616.
## Code After:
require 'cinch'
class YololPlugin
include Cinch::Plugin
match /^!yolol/i
def execute(m)
m.reply("yolol")
end
end | require 'cinch'
class YololPlugin
include Cinch::Plugin
match /^!yolol/i
def execute(m)
- m.reply("yolol") unless m.user.nick.downcase == "matezoide"
+ m.reply("yolol")
end
end | 2 | 0.181818 | 1 | 1 |
59ccb0fd808029ac1220904e09c2ddffad8b1f8e | bc-backend/src/test/java/org/jboss/da/bc/backend/impl/RepositoryClonerImplTest.java | bc-backend/src/test/java/org/jboss/da/bc/backend/impl/RepositoryClonerImplTest.java | package org.jboss.da.bc.backend.impl;
import org.jboss.da.scm.SCMType;
import org.junit.Test;
public class RepositoryClonerImplTest {
private RepositoryClonerImpl clonner = new RepositoryClonerImpl();
@Test(expected = UnsupportedOperationException.class)
public void testCloneNonGitRepository() throws Exception {
clonner.cloneRepository("", "", SCMType.SVN, "");
}
@Test
public void testCloneGitRepository() throws Exception {
String url = clonner.cloneRepository("https://github.com/project-ncl/dependency-analysis",
"master", SCMType.GIT, "TEST_DA3");
System.out.println("\n\n" + url + "\n\n");
}
}
| package org.jboss.da.bc.backend.impl;
import org.jboss.da.scm.SCMType;
import org.junit.Test;
public class RepositoryClonerImplTest {
private RepositoryClonerImpl clonner = new RepositoryClonerImpl();
@Test(expected = UnsupportedOperationException.class)
public void testCloneNonGitRepository() throws Exception {
clonner.cloneRepository("", "", SCMType.SVN, "");
}
}
| Remove temporary test. We cannot clone repository in every test run | Remove temporary test. We cannot clone repository in every test run
| Java | apache-2.0 | janinko/dependency-analysis,project-ncl/dependency-analysis,janinko/dependency-analysis,janinko/dependency-analysis,project-ncl/dependency-analysis,project-ncl/dependency-analysis,janinko/dependency-analysis,janinko/dependency-analysis | java | ## Code Before:
package org.jboss.da.bc.backend.impl;
import org.jboss.da.scm.SCMType;
import org.junit.Test;
public class RepositoryClonerImplTest {
private RepositoryClonerImpl clonner = new RepositoryClonerImpl();
@Test(expected = UnsupportedOperationException.class)
public void testCloneNonGitRepository() throws Exception {
clonner.cloneRepository("", "", SCMType.SVN, "");
}
@Test
public void testCloneGitRepository() throws Exception {
String url = clonner.cloneRepository("https://github.com/project-ncl/dependency-analysis",
"master", SCMType.GIT, "TEST_DA3");
System.out.println("\n\n" + url + "\n\n");
}
}
## Instruction:
Remove temporary test. We cannot clone repository in every test run
## Code After:
package org.jboss.da.bc.backend.impl;
import org.jboss.da.scm.SCMType;
import org.junit.Test;
public class RepositoryClonerImplTest {
private RepositoryClonerImpl clonner = new RepositoryClonerImpl();
@Test(expected = UnsupportedOperationException.class)
public void testCloneNonGitRepository() throws Exception {
clonner.cloneRepository("", "", SCMType.SVN, "");
}
}
| package org.jboss.da.bc.backend.impl;
import org.jboss.da.scm.SCMType;
import org.junit.Test;
public class RepositoryClonerImplTest {
private RepositoryClonerImpl clonner = new RepositoryClonerImpl();
@Test(expected = UnsupportedOperationException.class)
public void testCloneNonGitRepository() throws Exception {
clonner.cloneRepository("", "", SCMType.SVN, "");
}
- @Test
- public void testCloneGitRepository() throws Exception {
- String url = clonner.cloneRepository("https://github.com/project-ncl/dependency-analysis",
- "master", SCMType.GIT, "TEST_DA3");
- System.out.println("\n\n" + url + "\n\n");
- }
-
} | 7 | 0.318182 | 0 | 7 |
9a9bcb04edbcd5c2265b246b987fdb7a869c813d | modes/js-conf.el | modes/js-conf.el | ;;; js-conf.el -- Configuration options for js-mode (JavaScript).
(eval-when-compile (require 'js))
(setq js-indent-level 2 js-flat-functions t)
| ;;; js-conf.el -- Configuration options for js-mode (JavaScript).
(eval-when-compile (require 'js))
;; JavaScript mode settings
(setq js-indent-level 2
js-flat-functions t)
(defvar pjones:js-keywords
'(("\\(function *\\)("
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "\u0192") nil))))
"Extra keywords to add to JavaScript buffers.
The Unicode anonymous function code was stolen from
https://github.com/technomancy/emacs-starter-kit")
(defun pjones:js-add-extra-keywords ()
"Add some extra keywords to JavaScript buffers."
(interactive)
(font-lock-add-keywords 'js-mode pjones:js-keywords)
(font-lock-fontify-buffer))
(defun pjones:js-rm-extra-keywords ()
"Remove some extra keywords from JavaScript buffers."
(interactive)
(let ((modified (buffer-modified-p)))
(font-lock-remove-keywords 'js-mode pjones:js-keywords)
(remove-text-properties (point-min) (point-max) '(composition nil))
(set-buffer-modified-p modified)))
(defun pjones:js-mode-hook ()
"Configure JS mode and key bindings."
(local-set-key (kbd "C-c C-k") 'pjones:js-rm-extra-keywords)
(local-set-key (kbd "C-c C-S-k") 'pjones:js-add-extra-keywords))
(add-hook 'js-mode-hook 'pjones:js-mode-hook)
;; Set up the cool extra keywords right away!
(pjones:js-add-extra-keywords)
| Add some extra keywords to JavaScript buffers with functions to toggle them | Add some extra keywords to JavaScript buffers with functions to toggle them
| Emacs Lisp | bsd-3-clause | pjones/emacsrc | emacs-lisp | ## Code Before:
;;; js-conf.el -- Configuration options for js-mode (JavaScript).
(eval-when-compile (require 'js))
(setq js-indent-level 2 js-flat-functions t)
## Instruction:
Add some extra keywords to JavaScript buffers with functions to toggle them
## Code After:
;;; js-conf.el -- Configuration options for js-mode (JavaScript).
(eval-when-compile (require 'js))
;; JavaScript mode settings
(setq js-indent-level 2
js-flat-functions t)
(defvar pjones:js-keywords
'(("\\(function *\\)("
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "\u0192") nil))))
"Extra keywords to add to JavaScript buffers.
The Unicode anonymous function code was stolen from
https://github.com/technomancy/emacs-starter-kit")
(defun pjones:js-add-extra-keywords ()
"Add some extra keywords to JavaScript buffers."
(interactive)
(font-lock-add-keywords 'js-mode pjones:js-keywords)
(font-lock-fontify-buffer))
(defun pjones:js-rm-extra-keywords ()
"Remove some extra keywords from JavaScript buffers."
(interactive)
(let ((modified (buffer-modified-p)))
(font-lock-remove-keywords 'js-mode pjones:js-keywords)
(remove-text-properties (point-min) (point-max) '(composition nil))
(set-buffer-modified-p modified)))
(defun pjones:js-mode-hook ()
"Configure JS mode and key bindings."
(local-set-key (kbd "C-c C-k") 'pjones:js-rm-extra-keywords)
(local-set-key (kbd "C-c C-S-k") 'pjones:js-add-extra-keywords))
(add-hook 'js-mode-hook 'pjones:js-mode-hook)
;; Set up the cool extra keywords right away!
(pjones:js-add-extra-keywords)
| ;;; js-conf.el -- Configuration options for js-mode (JavaScript).
(eval-when-compile (require 'js))
- (setq js-indent-level 2 js-flat-functions t)
+
+ ;; JavaScript mode settings
+ (setq js-indent-level 2
+ js-flat-functions t)
+
+ (defvar pjones:js-keywords
+ '(("\\(function *\\)("
+ (0 (progn (compose-region (match-beginning 1)
+ (match-end 1) "\u0192") nil))))
+ "Extra keywords to add to JavaScript buffers.
+ The Unicode anonymous function code was stolen from
+ https://github.com/technomancy/emacs-starter-kit")
+
+ (defun pjones:js-add-extra-keywords ()
+ "Add some extra keywords to JavaScript buffers."
+ (interactive)
+ (font-lock-add-keywords 'js-mode pjones:js-keywords)
+ (font-lock-fontify-buffer))
+
+ (defun pjones:js-rm-extra-keywords ()
+ "Remove some extra keywords from JavaScript buffers."
+ (interactive)
+ (let ((modified (buffer-modified-p)))
+ (font-lock-remove-keywords 'js-mode pjones:js-keywords)
+ (remove-text-properties (point-min) (point-max) '(composition nil))
+ (set-buffer-modified-p modified)))
+
+ (defun pjones:js-mode-hook ()
+ "Configure JS mode and key bindings."
+ (local-set-key (kbd "C-c C-k") 'pjones:js-rm-extra-keywords)
+ (local-set-key (kbd "C-c C-S-k") 'pjones:js-add-extra-keywords))
+ (add-hook 'js-mode-hook 'pjones:js-mode-hook)
+
+ ;; Set up the cool extra keywords right away!
+ (pjones:js-add-extra-keywords) | 36 | 12 | 35 | 1 |
bec919c42879c7cd2e9608a86197494405c23de4 | shoop/admin/templates/shoop/admin/shops/edit.jinja | shoop/admin/templates/shoop/admin/shops/edit.jinja | {% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import single_section_form with context %}
{% block content %}
{{ single_section_form("shop_form", form) }}
{% endblock %}
| {% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import single_section_form with context %}
{% from "shoop/admin/macros/multilanguage.jinja" import language_dependent_content_tabs, render_monolingual_fields %}
{% block content %}
{% call single_section_form("shop_form", form) %}
{{ language_dependent_content_tabs(form) }}
{{ render_monolingual_fields(form) }}
{% endcall %}
{% endblock %}
| Make translated fields render correctly for shops | Admin: Make translated fields render correctly for shops
Refs SHOOP-1049
| HTML+Django | agpl-3.0 | suutari-ai/shoop,arth-co/shoop,shoopio/shoop,arth-co/shoop,suutari-ai/shoop,shawnadelic/shuup,lawzou/shoop,akx/shoop,lawzou/shoop,suutari-ai/shoop,suutari/shoop,hrayr-artunyan/shuup,taedori81/shoop,shawnadelic/shuup,lawzou/shoop,taedori81/shoop,shoopio/shoop,hrayr-artunyan/shuup,suutari/shoop,akx/shoop,akx/shoop,jorge-marques/shoop,shawnadelic/shuup,shoopio/shoop,jorge-marques/shoop,arth-co/shoop,hrayr-artunyan/shuup,jorge-marques/shoop,suutari/shoop,taedori81/shoop | html+django | ## Code Before:
{% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import single_section_form with context %}
{% block content %}
{{ single_section_form("shop_form", form) }}
{% endblock %}
## Instruction:
Admin: Make translated fields render correctly for shops
Refs SHOOP-1049
## Code After:
{% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import single_section_form with context %}
{% from "shoop/admin/macros/multilanguage.jinja" import language_dependent_content_tabs, render_monolingual_fields %}
{% block content %}
{% call single_section_form("shop_form", form) %}
{{ language_dependent_content_tabs(form) }}
{{ render_monolingual_fields(form) }}
{% endcall %}
{% endblock %}
| {% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import single_section_form with context %}
+ {% from "shoop/admin/macros/multilanguage.jinja" import language_dependent_content_tabs, render_monolingual_fields %}
{% block content %}
- {{ single_section_form("shop_form", form) }}
? ^ -
+ {% call single_section_form("shop_form", form) %}
? ^^^^^^ +
+ {{ language_dependent_content_tabs(form) }}
+ {{ render_monolingual_fields(form) }}
+ {% endcall %}
{% endblock %} | 6 | 1.2 | 5 | 1 |
cca77744a6ac29b387ad24d0afd2ec892f29671e | lib/extensions/action_controller/base.rb | lib/extensions/action_controller/base.rb | class ActionController::Base
def self.require_user(options = {})
raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self == ActionController::Base
prepend_before_filter :require_user, options
end
helper_method :current_user, :current_user?
protected
# Filters
def require_user
current_user.present? || deny_access
end
# Utils
def store_location
session[:return_to] = request.fullpath
end
def deny_access
store_location
redirect_to login_path
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
def current_user
@current_user ||= if session[:user_id]
User.find(session[:user_id])
elsif cookies[:remember_token]
User.find_by_remember_token(cookies[:remember_token])
else
false
end
end
def current_user?
!!current_user
end
def current_user=(user)
user.tap do |user|
user.remember
session[:user_id] = user.id
cookies[:remember_token] = user.remember_token
end
end
def logout!
session[:user_id] = nil
@current_user = nil
cookies.delete(:remember_token)
session[:return_to] = nil
end
end
| class ActionController::Base
def self.require_user(options = {})
raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self == ActionController::Base
prepend_before_filter :require_user, options
end
helper_method :current_user, :current_user?
def current_user
@current_user ||= if session[:user_id]
User.find(session[:user_id])
elsif cookies[:remember_token]
User.find_by_remember_token(cookies[:remember_token])
else
false
end
end
def current_user?
!!current_user
end
def current_user=(user)
user.tap do |user|
user.remember
session[:user_id] = user.id
cookies[:remember_token] = user.remember_token
end
end
protected
# Filters
def require_user
current_user.present? || deny_access
end
# Utils
def store_location
session[:return_to] = request.fullpath
end
def deny_access
store_location
redirect_to login_path
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
def logout!
session[:user_id] = nil
@current_user = nil
cookies.delete(:remember_token)
session[:return_to] = nil
end
end
| Move current_user from protection section so it can be used in a controller | Move current_user from protection section so it can be used in a controller
| Ruby | apache-2.0 | jsmestad/socialite,jsmestad/socialite | ruby | ## Code Before:
class ActionController::Base
def self.require_user(options = {})
raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self == ActionController::Base
prepend_before_filter :require_user, options
end
helper_method :current_user, :current_user?
protected
# Filters
def require_user
current_user.present? || deny_access
end
# Utils
def store_location
session[:return_to] = request.fullpath
end
def deny_access
store_location
redirect_to login_path
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
def current_user
@current_user ||= if session[:user_id]
User.find(session[:user_id])
elsif cookies[:remember_token]
User.find_by_remember_token(cookies[:remember_token])
else
false
end
end
def current_user?
!!current_user
end
def current_user=(user)
user.tap do |user|
user.remember
session[:user_id] = user.id
cookies[:remember_token] = user.remember_token
end
end
def logout!
session[:user_id] = nil
@current_user = nil
cookies.delete(:remember_token)
session[:return_to] = nil
end
end
## Instruction:
Move current_user from protection section so it can be used in a controller
## Code After:
class ActionController::Base
def self.require_user(options = {})
raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self == ActionController::Base
prepend_before_filter :require_user, options
end
helper_method :current_user, :current_user?
def current_user
@current_user ||= if session[:user_id]
User.find(session[:user_id])
elsif cookies[:remember_token]
User.find_by_remember_token(cookies[:remember_token])
else
false
end
end
def current_user?
!!current_user
end
def current_user=(user)
user.tap do |user|
user.remember
session[:user_id] = user.id
cookies[:remember_token] = user.remember_token
end
end
protected
# Filters
def require_user
current_user.present? || deny_access
end
# Utils
def store_location
session[:return_to] = request.fullpath
end
def deny_access
store_location
redirect_to login_path
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
def logout!
session[:user_id] = nil
@current_user = nil
cookies.delete(:remember_token)
session[:return_to] = nil
end
end
| class ActionController::Base
def self.require_user(options = {})
raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self == ActionController::Base
prepend_before_filter :require_user, options
end
helper_method :current_user, :current_user?
+ def current_user
+ @current_user ||= if session[:user_id]
+ User.find(session[:user_id])
+ elsif cookies[:remember_token]
+ User.find_by_remember_token(cookies[:remember_token])
+ else
+ false
+ end
+ end
+
+ def current_user?
+ !!current_user
+ end
+
+ def current_user=(user)
+ user.tap do |user|
+ user.remember
+ session[:user_id] = user.id
+ cookies[:remember_token] = user.remember_token
+ end
+ end
+
- protected
? ^^
+ protected
? ^
# Filters
def require_user
current_user.present? || deny_access
end
# Utils
def store_location
session[:return_to] = request.fullpath
end
def deny_access
store_location
redirect_to login_path
end
def redirect_back_or_default(default)
redirect_to(session[:return_to] || default)
session[:return_to] = nil
end
- def current_user
- @current_user ||= if session[:user_id]
- User.find(session[:user_id])
- elsif cookies[:remember_token]
- User.find_by_remember_token(cookies[:remember_token])
- else
- false
- end
- end
-
- def current_user?
- !!current_user
- end
-
- def current_user=(user)
- user.tap do |user|
- user.remember
- session[:user_id] = user.id
- cookies[:remember_token] = user.remember_token
- end
- end
-
def logout!
session[:user_id] = nil
@current_user = nil
cookies.delete(:remember_token)
session[:return_to] = nil
end
end | 46 | 0.741935 | 23 | 23 |
c032dddc64166e9f19cf6a4f8252aec9a0c7a257 | include/riak_moss.hrl | include/riak_moss.hrl |
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-record(key_context, {context :: #context{},
doc :: term(),
putctype :: string(),
bucket :: list(),
key :: list()}).
-define(USER_BUCKET, <<"moss.users">>).
-define(MAX_CONTENT_LENGTH, 10485760).
|
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-record(key_context, {context :: #context{},
doc :: term(),
putctype :: string(),
bucket :: list(),
key :: list()}).
-record(lfs_manifest, {
version :: atom(),
uuid :: binary(),
block_size :: integer(),
bkey :: {term(), term()},
content_length :: integer(),
content_md5 :: term(),
created :: term(),
finished :: term(),
active :: boolean(),
blocks_remaining :: list()}).
-define(USER_BUCKET, <<"moss.users">>).
-define(MAX_CONTENT_LENGTH, 10485760).
| Add large file manifest record | Add large file manifest record
AZ944
| Erlang | apache-2.0 | basho/riak_cs,laurenrother/riak_cs,dragonfax/riak_cs,dragonfax/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,sdebnath/riak_cs,yangchengjian/riak_cs,sdebnath/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,GabrielNicolasAvellaneda/riak_cs,GabrielNicolasAvellaneda/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs,GabrielNicolasAvellaneda/riak_cs,basho/riak_cs_report,basho/riak_cs,yangchengjian/riak_cs,laurenrother/riak_cs,dragonfax/riak_cs,dragonfax/riak_cs,yangchengjian/riak_cs,basho/riak_cs_lfs,laurenrother/riak_cs,basho/riak_cs | erlang | ## Code Before:
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-record(key_context, {context :: #context{},
doc :: term(),
putctype :: string(),
bucket :: list(),
key :: list()}).
-define(USER_BUCKET, <<"moss.users">>).
-define(MAX_CONTENT_LENGTH, 10485760).
## Instruction:
Add large file manifest record
AZ944
## Code After:
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-record(key_context, {context :: #context{},
doc :: term(),
putctype :: string(),
bucket :: list(),
key :: list()}).
-record(lfs_manifest, {
version :: atom(),
uuid :: binary(),
block_size :: integer(),
bkey :: {term(), term()},
content_length :: integer(),
content_md5 :: term(),
created :: term(),
finished :: term(),
active :: boolean(),
blocks_remaining :: list()}).
-define(USER_BUCKET, <<"moss.users">>).
-define(MAX_CONTENT_LENGTH, 10485760).
|
-record(moss_user, {
name :: string(),
key_id :: string(),
key_secret :: string(),
buckets = []}).
-record(moss_bucket, {
name :: binary(),
creation_date :: term()}).
-record(context, {auth_bypass :: atom(),
user :: #moss_user{}}).
-record(key_context, {context :: #context{},
doc :: term(),
putctype :: string(),
bucket :: list(),
key :: list()}).
+ -record(lfs_manifest, {
+ version :: atom(),
+ uuid :: binary(),
+ block_size :: integer(),
+ bkey :: {term(), term()},
+ content_length :: integer(),
+ content_md5 :: term(),
+ created :: term(),
+ finished :: term(),
+ active :: boolean(),
+ blocks_remaining :: list()}).
+
-define(USER_BUCKET, <<"moss.users">>).
-define(MAX_CONTENT_LENGTH, 10485760).
| 12 | 0.521739 | 12 | 0 |
96439cb26a09158f112541025a6c2901b983eae9 | tests/test_pay_onetime.py | tests/test_pay_onetime.py |
def test_pay_onetime(iamport):
# Without 'card_number'
payload_notEnough = {
'merchant_uid': 'qwer1234',
'amount': 5000,
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_notEnough)
except KeyError as e:
assert "Essential parameter is missing!: card_number" in str(e)
payload_full = {
'merchant_uid': 'qwer1234',
'amount': 5000,
'card_number': '4092-0230-1234-1234',
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_full)
except iamport.ResponseError as e:
assert e.code == -1
assert u'카드정보 인증에 실패하였습니다.' in e.message
| import string, random
def test_pay_onetime(iamport):
merchant_uid = ''.join(
random.choice(string.ascii_uppercase + string.digits)
for _ in range(10)
)
# Without 'card_number'
payload_not_enough = {
'merchant_uid': merchant_uid,
'amount': 5000,
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_not_enough)
except KeyError as e:
assert "Essential parameter is missing!: card_number" in str(e)
merchant_uid = ''.join(
random.choice(string.ascii_uppercase + string.digits)
for _ in range(10)
)
payload_full = {
'merchant_uid': merchant_uid,
'amount': 5000,
'card_number': '4092-0230-1234-1234',
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_full)
except iamport.ResponseError as e:
assert e.code == -1
assert u'카드정보 인증에 실패하였습니다.' in e.message
| Add random merchant_uid for continous testing | Add random merchant_uid for continous testing
| Python | mit | iamport/iamport-rest-client-python | python | ## Code Before:
def test_pay_onetime(iamport):
# Without 'card_number'
payload_notEnough = {
'merchant_uid': 'qwer1234',
'amount': 5000,
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_notEnough)
except KeyError as e:
assert "Essential parameter is missing!: card_number" in str(e)
payload_full = {
'merchant_uid': 'qwer1234',
'amount': 5000,
'card_number': '4092-0230-1234-1234',
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_full)
except iamport.ResponseError as e:
assert e.code == -1
assert u'카드정보 인증에 실패하였습니다.' in e.message
## Instruction:
Add random merchant_uid for continous testing
## Code After:
import string, random
def test_pay_onetime(iamport):
merchant_uid = ''.join(
random.choice(string.ascii_uppercase + string.digits)
for _ in range(10)
)
# Without 'card_number'
payload_not_enough = {
'merchant_uid': merchant_uid,
'amount': 5000,
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_not_enough)
except KeyError as e:
assert "Essential parameter is missing!: card_number" in str(e)
merchant_uid = ''.join(
random.choice(string.ascii_uppercase + string.digits)
for _ in range(10)
)
payload_full = {
'merchant_uid': merchant_uid,
'amount': 5000,
'card_number': '4092-0230-1234-1234',
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_full)
except iamport.ResponseError as e:
assert e.code == -1
assert u'카드정보 인증에 실패하였습니다.' in e.message
| + import string, random
def test_pay_onetime(iamport):
+ merchant_uid = ''.join(
+ random.choice(string.ascii_uppercase + string.digits)
+ for _ in range(10)
+ )
+
# Without 'card_number'
- payload_notEnough = {
? ^
+ payload_not_enough = {
? ^^
- 'merchant_uid': 'qwer1234',
? ^^^ ^^^^^
+ 'merchant_uid': merchant_uid,
? ^ ^^^^^^^^^
'amount': 5000,
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
- iamport.pay_onetime(**payload_notEnough)
? ^
+ iamport.pay_onetime(**payload_not_enough)
? ^^
except KeyError as e:
assert "Essential parameter is missing!: card_number" in str(e)
+ merchant_uid = ''.join(
+ random.choice(string.ascii_uppercase + string.digits)
+ for _ in range(10)
+ )
+
payload_full = {
- 'merchant_uid': 'qwer1234',
? ^^^ ^^^^^
+ 'merchant_uid': merchant_uid,
? ^ ^^^^^^^^^
'amount': 5000,
'card_number': '4092-0230-1234-1234',
'expiry': '2019-03',
'birth': '500203',
'pwd_2digit': '19'
}
try:
iamport.pay_onetime(**payload_full)
except iamport.ResponseError as e:
assert e.code == -1
assert u'카드정보 인증에 실패하였습니다.' in e.message | 19 | 0.612903 | 15 | 4 |
bbcd7f30f231982357a24e9bbe12f13d4125f9f0 | js/marcuswestin/views/TweetView.js | js/marcuswestin/views/TweetView.js | module('from lib.javascript import Class');
module('import class .View');
module('import lib.dom as dom');
exports.TweetView = Class(View, function(supr) {
this.init = function(factory, data) {
supr(this, 'init', arguments);
this._tweet = data;
}
this.createContent = function() {
supr(this, 'createContent');
this.loadStyles('marcuswestin-views-TweetView');
var tweet = this._tweet;
var img = dom.create({ className: 'profileImage', parent: this._element,
type: 'img', src: tweet.profile_image_url });
dom.create({ className: 'tweet', parent: this._element, text: tweet.text });
}
}) | module('from lib.javascript import Class');
module('import class .View');
module('import lib.dom as dom');
exports.TweetView = Class(View, function(supr) {
this.init = function(factory, data) {
supr(this, 'init', arguments);
this._tweet = data;
}
this.createContent = function() {
supr(this, 'createContent');
this.loadStyles('marcuswestin-views-TweetView');
var tweet = this._tweet;
var img = dom.create({ className: 'profileImage', parent: this._element,
type: 'img', src: tweet.profile_image_url || 'http://a3.twimg.com/profile_images/379382059/n2904387_30962178_8468_normal.jpg' });
dom.create({ className: 'tweet', parent: this._element, text: tweet.text });
}
}) | Use my photo in the twitter view if the tweet does not have one | Use my photo in the twitter view if the tweet does not have one
| JavaScript | mit | marcuswestin/marcuswestin.com,marcuswestin/marcuswestin.com | javascript | ## Code Before:
module('from lib.javascript import Class');
module('import class .View');
module('import lib.dom as dom');
exports.TweetView = Class(View, function(supr) {
this.init = function(factory, data) {
supr(this, 'init', arguments);
this._tweet = data;
}
this.createContent = function() {
supr(this, 'createContent');
this.loadStyles('marcuswestin-views-TweetView');
var tweet = this._tweet;
var img = dom.create({ className: 'profileImage', parent: this._element,
type: 'img', src: tweet.profile_image_url });
dom.create({ className: 'tweet', parent: this._element, text: tweet.text });
}
})
## Instruction:
Use my photo in the twitter view if the tweet does not have one
## Code After:
module('from lib.javascript import Class');
module('import class .View');
module('import lib.dom as dom');
exports.TweetView = Class(View, function(supr) {
this.init = function(factory, data) {
supr(this, 'init', arguments);
this._tweet = data;
}
this.createContent = function() {
supr(this, 'createContent');
this.loadStyles('marcuswestin-views-TweetView');
var tweet = this._tweet;
var img = dom.create({ className: 'profileImage', parent: this._element,
type: 'img', src: tweet.profile_image_url || 'http://a3.twimg.com/profile_images/379382059/n2904387_30962178_8468_normal.jpg' });
dom.create({ className: 'tweet', parent: this._element, text: tweet.text });
}
}) | module('from lib.javascript import Class');
module('import class .View');
module('import lib.dom as dom');
exports.TweetView = Class(View, function(supr) {
this.init = function(factory, data) {
supr(this, 'init', arguments);
this._tweet = data;
}
this.createContent = function() {
supr(this, 'createContent');
this.loadStyles('marcuswestin-views-TweetView');
var tweet = this._tweet;
var img = dom.create({ className: 'profileImage', parent: this._element,
- type: 'img', src: tweet.profile_image_url });
+ type: 'img', src: tweet.profile_image_url || 'http://a3.twimg.com/profile_images/379382059/n2904387_30962178_8468_normal.jpg' });
dom.create({ className: 'tweet', parent: this._element, text: tweet.text });
-
}
}) | 3 | 0.125 | 1 | 2 |
9ffee024e6298f5ffb62ba6ba028a4aca641e6df | assets/jade/objective-list.jade | assets/jade/objective-list.jade | extends layouts/base
include mixins/_view_helpers
block vars
- pageTitle = "!Objectives | Objective[8]"
block content
+guidanceText('!What are objectives?','content:objective-guidance/heading')
ul
li(data-l8n="content:objective-guidance/text-line-1") !Objective[8] centers its policy drafting process around objectives.
li(data-l8n="content:objective-guidance/text-line-2") !An objective is a change that could be achieved by introducing new policy.
.middle-container
h1(data-l8n="content:objective-list/page-title") !Objectives
.objectives-list-actions
a.button.create-objective-link(href="/objectives/create", data-l8n="content:objective-list/create-objective-link") !Create an objective
.recent-objectives
h2(data-l8n="content:objective-list/subtitle") !Recently created objectives
ol.unstyled-list.clj-objective-list
+objectiveListItem('!Build safer cycling networks in the streets of Madrid.', 30)
| !London and Pairs are two prime examples of cycle super highway heaven.
| extends layouts/base
include mixins/_view_helpers
block vars
- pageTitle = "!Objectives | Objective[8]"
block content
.middle-container
h1(data-l8n="content:objective-list/page-title") !Objectives
.objectives-list-actions
a.button.create-objective-link(href="/objectives/create", data-l8n="content:objective-list/create-objective-link") !Create an objective
.recent-objectives
h2(data-l8n="content:objective-list/subtitle") !Recently created objectives
ol.unstyled-list.clj-objective-list
+objectiveListItem('!Build safer cycling networks in the streets of Madrid.', 30)
| !London and Pairs are two prime examples of cycle super highway heaven.
| Remove guidance from objective list | Remove guidance from objective list
| Jade | mit | prisamuel/objective8,d-cent/objective8,prisamuel/objective8,ThoughtWorksInc/objective8,d-cent/objective8,ThoughtWorksInc/objective8,ThoughtWorksInc/objective8,prisamuel/objective8,ThoughtWorksInc/objective8,d-cent/objective8,d-cent/objective8,prisamuel/objective8 | jade | ## Code Before:
extends layouts/base
include mixins/_view_helpers
block vars
- pageTitle = "!Objectives | Objective[8]"
block content
+guidanceText('!What are objectives?','content:objective-guidance/heading')
ul
li(data-l8n="content:objective-guidance/text-line-1") !Objective[8] centers its policy drafting process around objectives.
li(data-l8n="content:objective-guidance/text-line-2") !An objective is a change that could be achieved by introducing new policy.
.middle-container
h1(data-l8n="content:objective-list/page-title") !Objectives
.objectives-list-actions
a.button.create-objective-link(href="/objectives/create", data-l8n="content:objective-list/create-objective-link") !Create an objective
.recent-objectives
h2(data-l8n="content:objective-list/subtitle") !Recently created objectives
ol.unstyled-list.clj-objective-list
+objectiveListItem('!Build safer cycling networks in the streets of Madrid.', 30)
| !London and Pairs are two prime examples of cycle super highway heaven.
## Instruction:
Remove guidance from objective list
## Code After:
extends layouts/base
include mixins/_view_helpers
block vars
- pageTitle = "!Objectives | Objective[8]"
block content
.middle-container
h1(data-l8n="content:objective-list/page-title") !Objectives
.objectives-list-actions
a.button.create-objective-link(href="/objectives/create", data-l8n="content:objective-list/create-objective-link") !Create an objective
.recent-objectives
h2(data-l8n="content:objective-list/subtitle") !Recently created objectives
ol.unstyled-list.clj-objective-list
+objectiveListItem('!Build safer cycling networks in the streets of Madrid.', 30)
| !London and Pairs are two prime examples of cycle super highway heaven.
| extends layouts/base
include mixins/_view_helpers
block vars
- pageTitle = "!Objectives | Objective[8]"
block content
- +guidanceText('!What are objectives?','content:objective-guidance/heading')
- ul
- li(data-l8n="content:objective-guidance/text-line-1") !Objective[8] centers its policy drafting process around objectives.
- li(data-l8n="content:objective-guidance/text-line-2") !An objective is a change that could be achieved by introducing new policy.
.middle-container
h1(data-l8n="content:objective-list/page-title") !Objectives
.objectives-list-actions
a.button.create-objective-link(href="/objectives/create", data-l8n="content:objective-list/create-objective-link") !Create an objective
.recent-objectives
h2(data-l8n="content:objective-list/subtitle") !Recently created objectives
ol.unstyled-list.clj-objective-list
+objectiveListItem('!Build safer cycling networks in the streets of Madrid.', 30)
| !London and Pairs are two prime examples of cycle super highway heaven. | 4 | 0.166667 | 0 | 4 |
d4ccd00abc3024ff4a82a76ee04d7151e5f12bc0 | api_server/src/main.rs | api_server/src/main.rs | extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
// #[macro_use]
extern crate diesel;
mod schema;
// mod models;
use rocket_contrib::databases::diesel::PgConnection;
#[get("/")]
fn index(_db_conn: RustyDbConn) -> &'static str {
// Rocket uses the RustyDbConn request guard to provide us with a database
// connection from a managed pool.
"Hello, from Rust! (with a database connection!)"
}
#[database("rustydb")]
pub struct RustyDbConn(PgConnection);
fn main() {
rocket::ignite()
.attach(RustyDbConn::fairing())
.mount("/api", routes![index])
.launch();
}
| extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
// #[macro_use]
extern crate diesel;
mod schema;
// mod models;
use rocket::request::Request;
use rocket_contrib::databases::diesel::PgConnection;
#[get("/")]
fn index(_db_conn: RustyDbConn) -> &'static str {
// Rocket uses the RustyDbConn request guard to provide us with a database
// connection from a managed pool.
"Hello, from Rust! (with a database connection!)"
}
#[catch(503)]
fn service_not_available(_req: &Request) -> &'static str {
"Service is not available. (Is the database up?)"
}
#[database("rustydb")]
pub struct RustyDbConn(PgConnection);
fn main() {
rocket::ignite()
.attach(RustyDbConn::fairing())
.register(catchers![service_not_available])
.mount("/api", routes![index])
.launch();
}
| Add a sample error catcher to make it nicer if the database isn't working for some reason. | Add a sample error catcher to make it nicer if the database isn't working for some reason.
| Rust | mit | ghotiphud/rust-web-starter,ghotiphud/rust-web-starter,ghotiphud/rust-web-starter,ghotiphud/rust-web-starter | rust | ## Code Before:
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
// #[macro_use]
extern crate diesel;
mod schema;
// mod models;
use rocket_contrib::databases::diesel::PgConnection;
#[get("/")]
fn index(_db_conn: RustyDbConn) -> &'static str {
// Rocket uses the RustyDbConn request guard to provide us with a database
// connection from a managed pool.
"Hello, from Rust! (with a database connection!)"
}
#[database("rustydb")]
pub struct RustyDbConn(PgConnection);
fn main() {
rocket::ignite()
.attach(RustyDbConn::fairing())
.mount("/api", routes![index])
.launch();
}
## Instruction:
Add a sample error catcher to make it nicer if the database isn't working for some reason.
## Code After:
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
// #[macro_use]
extern crate diesel;
mod schema;
// mod models;
use rocket::request::Request;
use rocket_contrib::databases::diesel::PgConnection;
#[get("/")]
fn index(_db_conn: RustyDbConn) -> &'static str {
// Rocket uses the RustyDbConn request guard to provide us with a database
// connection from a managed pool.
"Hello, from Rust! (with a database connection!)"
}
#[catch(503)]
fn service_not_available(_req: &Request) -> &'static str {
"Service is not available. (Is the database up?)"
}
#[database("rustydb")]
pub struct RustyDbConn(PgConnection);
fn main() {
rocket::ignite()
.attach(RustyDbConn::fairing())
.register(catchers![service_not_available])
.mount("/api", routes![index])
.launch();
}
| extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
// #[macro_use]
extern crate diesel;
mod schema;
// mod models;
+ use rocket::request::Request;
use rocket_contrib::databases::diesel::PgConnection;
#[get("/")]
fn index(_db_conn: RustyDbConn) -> &'static str {
// Rocket uses the RustyDbConn request guard to provide us with a database
// connection from a managed pool.
"Hello, from Rust! (with a database connection!)"
}
+ #[catch(503)]
+ fn service_not_available(_req: &Request) -> &'static str {
+ "Service is not available. (Is the database up?)"
+ }
+
#[database("rustydb")]
pub struct RustyDbConn(PgConnection);
fn main() {
rocket::ignite()
.attach(RustyDbConn::fairing())
+ .register(catchers![service_not_available])
.mount("/api", routes![index])
.launch();
} | 7 | 0.241379 | 7 | 0 |
9dd4da3d62312c5184150a967f7e4a3935c7b94e | moksha/tests/test_clientsockets.py | moksha/tests/test_clientsockets.py | import webtest
import moksha.tests.utils as testutils
from moksha.api.widgets.live import get_moksha_socket
from moksha.middleware import make_moksha_middleware
from tw2.core import make_middleware as make_tw2_middleware
class TestClientSocketDumb:
def _setUp(self):
def kernel(config):
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
socket = get_moksha_socket(config)
return map(str, [socket.display()])
app = make_moksha_middleware(app, config)
app = make_tw2_middleware(app, config)
app = webtest.TestApp(app)
self.app = app
for _setup, name in testutils.make_setup_functions(kernel):
yield _setup, name
def _tearDown(self):
pass
@testutils.crosstest
def test_middleware_wrap(self):
targets = ['moksha_websocket', 'TCPSocket']
response = self.app.get('/')
assert(any([target in response for target in targets]))
| import webtest
import moksha.tests.utils as testutils
from moksha.api.widgets.live import get_moksha_socket
from moksha.middleware import make_moksha_middleware
from tw2.core import make_middleware as make_tw2_middleware
class TestClientSocketDumb:
def _setUp(self):
def kernel(config):
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
socket = get_moksha_socket(config)
return map(str, [socket.display()])
app = make_moksha_middleware(app, config)
app = make_tw2_middleware(app, config)
app = webtest.TestApp(app)
self.app = app
for _setup, name in testutils.make_setup_functions(kernel):
yield _setup, name
def _tearDown(self):
pass
@testutils.crosstest
def test_has_socket_str(self):
targets = ['moksha_websocket', 'TCPSocket']
response = self.app.get('/')
assert(any([target in response for target in targets]))
| Rename test. Fix copy/pasta forgetfulness. | Rename test. Fix copy/pasta forgetfulness.
| Python | apache-2.0 | pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,pombredanne/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,pombredanne/moksha | python | ## Code Before:
import webtest
import moksha.tests.utils as testutils
from moksha.api.widgets.live import get_moksha_socket
from moksha.middleware import make_moksha_middleware
from tw2.core import make_middleware as make_tw2_middleware
class TestClientSocketDumb:
def _setUp(self):
def kernel(config):
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
socket = get_moksha_socket(config)
return map(str, [socket.display()])
app = make_moksha_middleware(app, config)
app = make_tw2_middleware(app, config)
app = webtest.TestApp(app)
self.app = app
for _setup, name in testutils.make_setup_functions(kernel):
yield _setup, name
def _tearDown(self):
pass
@testutils.crosstest
def test_middleware_wrap(self):
targets = ['moksha_websocket', 'TCPSocket']
response = self.app.get('/')
assert(any([target in response for target in targets]))
## Instruction:
Rename test. Fix copy/pasta forgetfulness.
## Code After:
import webtest
import moksha.tests.utils as testutils
from moksha.api.widgets.live import get_moksha_socket
from moksha.middleware import make_moksha_middleware
from tw2.core import make_middleware as make_tw2_middleware
class TestClientSocketDumb:
def _setUp(self):
def kernel(config):
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
socket = get_moksha_socket(config)
return map(str, [socket.display()])
app = make_moksha_middleware(app, config)
app = make_tw2_middleware(app, config)
app = webtest.TestApp(app)
self.app = app
for _setup, name in testutils.make_setup_functions(kernel):
yield _setup, name
def _tearDown(self):
pass
@testutils.crosstest
def test_has_socket_str(self):
targets = ['moksha_websocket', 'TCPSocket']
response = self.app.get('/')
assert(any([target in response for target in targets]))
| import webtest
import moksha.tests.utils as testutils
from moksha.api.widgets.live import get_moksha_socket
from moksha.middleware import make_moksha_middleware
from tw2.core import make_middleware as make_tw2_middleware
class TestClientSocketDumb:
def _setUp(self):
def kernel(config):
def app(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
socket = get_moksha_socket(config)
return map(str, [socket.display()])
app = make_moksha_middleware(app, config)
app = make_tw2_middleware(app, config)
app = webtest.TestApp(app)
self.app = app
for _setup, name in testutils.make_setup_functions(kernel):
yield _setup, name
def _tearDown(self):
pass
@testutils.crosstest
- def test_middleware_wrap(self):
+ def test_has_socket_str(self):
targets = ['moksha_websocket', 'TCPSocket']
response = self.app.get('/')
assert(any([target in response for target in targets])) | 2 | 0.060606 | 1 | 1 |
525fc7efd28197e2a4ec43ea66bf8c13990905fb | tests/_envs/travis-ci-hub.yml | tests/_envs/travis-ci-hub.yml | modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 5
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
| modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 5
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
#google-chrome-stable: /usr/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/share/man/man1/google-chrome-stable.1.gz
| Add chrome headless config to acceptance tests | Add chrome headless config to acceptance tests
| YAML | agpl-3.0 | lionixevolve/LionixCRM,horus68/SuiteCRM-Horus68,pgorod/SuiteCRM,lionixevolve/LionixCRM,salesagility/SuiteCRM,JanSiero/SuiteCRM,willrennie/SuiteCRM,Dillon-Brown/SuiteCRM,pribeiro42/SuiteCRM,ChangezKhan/SuiteCRM,samus-aran/SuiteCRM,daniel-samson/SuiteCRM,ChangezKhan/SuiteCRM,lionixevolve/SuiteCRM,daniel-samson/SuiteCRM,lionixevolve/LionixCRM,Dillon-Brown/SuiteCRM,gody01/SuiteCRM,JimMackin/SuiteCRM,horus68/SuiteCRM-Horus68,lionixevolve/LionixCRM,MikeyJC/SuiteCRM,horus68/SuiteCRM-Horus68,lionixevolve/SuiteCRM,willrennie/SuiteCRM,MikeyJC/SuiteCRM,salesagility/SuiteCRM,cumanacr/SuiteCRM,MikeyJC/SuiteCRM,ChangezKhan/SuiteCRM,samus-aran/SuiteCRM,JimMackin/SuiteCRM,MikeyJC/SuiteCRM,salesagility-davidthomson/SuiteCRM,willrennie/SuiteCRM,JanSiero/SuiteCRM,daniel-samson/SuiteCRM,salesagility-davidthomson/SuiteCRM,salesagility-davidthomson/SuiteCRM,salesagility-davidthomson/SuiteCRM,samus-aran/SuiteCRM,salesagility/SuiteCRM,gcoop-libre/SuiteCRM,pgorod/SuiteCRM,ChangezKhan/SuiteCRM,cumanacr/SuiteCRM,daniel-samson/SuiteCRM,willrennie/SuiteCRM,JanSiero/SuiteCRM,dfstrauss/SuiteCRM,JimMackin/SuiteCRM,gcoop-libre/SuiteCRM,pribeiro42/SuiteCRM,salesagility/SuiteCRM,dfstrauss/SuiteCRM,Dillon-Brown/SuiteCRM,horus68/SuiteCRM-Horus68,dfstrauss/SuiteCRM,lionixevolve/SuiteCRM,lionixevolve/LionixCRM,samus-aran/SuiteCRM,JimMackin/SuiteCRM,pgorod/SuiteCRM,pgorod/SuiteCRM,gody01/SuiteCRM,pribeiro42/SuiteCRM,cumanacr/SuiteCRM,pribeiro42/SuiteCRM,Dillon-Brown/SuiteCRM,JanSiero/SuiteCRM,lionixevolve/LionixCRM,gcoop-libre/SuiteCRM,lionixevolve/SuiteCRM,cumanacr/SuiteCRM,gody01/SuiteCRM,gody01/SuiteCRM,gcoop-libre/SuiteCRM,dfstrauss/SuiteCRM | yaml | ## Code Before:
modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 5
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
## Instruction:
Add chrome headless config to acceptance tests
## Code After:
modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 5
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
#google-chrome-stable: /usr/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/share/man/man1/google-chrome-stable.1.gz
| modules:
enabled:
- \SuiteCRM\Test\Driver\WebDriver
config:
\SuiteCRM\Test\Driver\WebDriver:
url: "http://localhost/"
wait: 5
port: 9515 # ChromeDriver port
browser: chrome
window_size: false
capabilities:
chromeOptions:
args: ["--headless", "--disable-gpu", "window-size=1920x1080"]
binary: "/usr/bin/google-chrome-stable"
-
+ #google-chrome-stable: /usr/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/share/man/man1/google-chrome-stable.1.gz | 2 | 0.125 | 1 | 1 |
cec27de2ebdbe8417c384b3f5bff41e2c46bd3fa | code/firmware/launch-firmware.sh | code/firmware/launch-firmware.sh | sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
./build/kossel-firmware ./tty3dps
| sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
#Octoprint needs to be able to read from its tty:
sudo chmod +r ./tty3dpm ./tty3dps
./build/kossel-firmware ./tty3dps
| Correct chmod settings for socat | Correct chmod settings for socat | Shell | mit | harry159821/printipi,Igor-Rast/printipi,harry159821/printipi,Wallacoloo/printipi,Wallacoloo/printipi,harry159821/printipi,Igor-Rast/printipi,Wallacoloo/printipi,Wallacoloo/printipi,Igor-Rast/printipi,harry159821/printipi,Igor-Rast/printipi | shell | ## Code Before:
sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
./build/kossel-firmware ./tty3dps
## Instruction:
Correct chmod settings for socat
## Code After:
sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
#Octoprint needs to be able to read from its tty:
sudo chmod +r ./tty3dpm ./tty3dps
./build/kossel-firmware ./tty3dps
| sudo rm -f /dev/ttyUSB3dp
socat -d -d pty,raw,echo=0,link=./tty3dpm pty,raw,echo=0,link=./tty3dps &
sudo ln -s $(pwd)/tty3dpm /dev/ttyUSB3dp
+ #Octoprint needs to be able to read from its tty:
+ sudo chmod +r ./tty3dpm ./tty3dps
./build/kossel-firmware ./tty3dps | 2 | 0.5 | 2 | 0 |
830c777251ad444e397704b243eefcc202128fad | lib/gooddata/bricks/middleware/restforce_middleware.rb | lib/gooddata/bricks/middleware/restforce_middleware.rb |
require 'gooddata'
require File.join(File.dirname(__FILE__), 'base_middleware')
module GoodData::Bricks
class RestForceMiddleware < GoodData::Bricks::Middleware
def call(params)
username = params[:salesforce_username]
password = params[:salesforce_password]
token = params[:salesforce_token]
client_id = params[:salesforce_client_id]
client_secret = params[:salesforce_client_secret]
oauth_token = params[:salesforce_oauth_token]
refresh_token = params[:salesforce_refresh_token]
host = params[:salesforce_host]
credentials = {}
credentials = if (username && password && token)
{
:username => username,
:password => password,
:security_token => token
}
elsif (oauth_token && refresh_token)
{
:oauth_token => oauth_token,
:refresh_token => refresh_token
}
end
client = if credentials
credentials.merge!({
:client_id => client_id,
:client_secret => client_secret,
})
credentials[:host] = host unless host.nil?
Restforce.log = true if params[:salesforce_client_logger]
Restforce.new(credentials)
end
@app.call(params.merge(:salesforce_client => client))
end
end
end |
require 'gooddata'
require File.join(File.dirname(__FILE__), 'base_middleware')
module GoodData::Bricks
class RestForceMiddleware < GoodData::Bricks::Middleware
def call(params)
username = params[:salesforce_username]
password = params[:salesforce_password]
token = params[:salesforce_token]
client_id = params[:salesforce_client_id]
client_secret = params[:salesforce_client_secret]
oauth_token = params[:salesforce_oauth_token]
refresh_token = params[:salesforce_refresh_token]
host = params[:salesforce_host]
credentials = if (username && password && token)
{
:username => username,
:password => password,
:security_token => token
}
elsif (oauth_token && refresh_token)
{
:oauth_token => oauth_token,
:refresh_token => refresh_token
}
end
client = if credentials
credentials.merge!({
:client_id => client_id,
:client_secret => client_secret,
})
credentials[:host] = host unless host.nil?
Restforce.log = true if params[:salesforce_client_logger]
Restforce.new(credentials)
end
@app.call(params.merge(:salesforce_client => client))
end
end
end | Remove empty and not used initializer | Remove empty and not used initializer
| Ruby | bsd-3-clause | Seikitsu/gooddata-ruby,vhtien/gooddata-ruby,Seikitsu/gooddata-ruby,fluke777/gooddata-ruby,fluke777/gooddata-ruby,lubosvesely/gooddata-ruby,Seikitsu/gooddata-ruby,cvengros/gooddata-ruby,lubosvesely/gooddata-ruby,vhtien/gooddata-ruby,korczis/gooddata-ruby,fluke777/gooddata-ruby,lubosvesely/gooddata-ruby,cvengros/gooddata-ruby,vhtien/gooddata-ruby,korczis/gooddata-ruby | ruby | ## Code Before:
require 'gooddata'
require File.join(File.dirname(__FILE__), 'base_middleware')
module GoodData::Bricks
class RestForceMiddleware < GoodData::Bricks::Middleware
def call(params)
username = params[:salesforce_username]
password = params[:salesforce_password]
token = params[:salesforce_token]
client_id = params[:salesforce_client_id]
client_secret = params[:salesforce_client_secret]
oauth_token = params[:salesforce_oauth_token]
refresh_token = params[:salesforce_refresh_token]
host = params[:salesforce_host]
credentials = {}
credentials = if (username && password && token)
{
:username => username,
:password => password,
:security_token => token
}
elsif (oauth_token && refresh_token)
{
:oauth_token => oauth_token,
:refresh_token => refresh_token
}
end
client = if credentials
credentials.merge!({
:client_id => client_id,
:client_secret => client_secret,
})
credentials[:host] = host unless host.nil?
Restforce.log = true if params[:salesforce_client_logger]
Restforce.new(credentials)
end
@app.call(params.merge(:salesforce_client => client))
end
end
end
## Instruction:
Remove empty and not used initializer
## Code After:
require 'gooddata'
require File.join(File.dirname(__FILE__), 'base_middleware')
module GoodData::Bricks
class RestForceMiddleware < GoodData::Bricks::Middleware
def call(params)
username = params[:salesforce_username]
password = params[:salesforce_password]
token = params[:salesforce_token]
client_id = params[:salesforce_client_id]
client_secret = params[:salesforce_client_secret]
oauth_token = params[:salesforce_oauth_token]
refresh_token = params[:salesforce_refresh_token]
host = params[:salesforce_host]
credentials = if (username && password && token)
{
:username => username,
:password => password,
:security_token => token
}
elsif (oauth_token && refresh_token)
{
:oauth_token => oauth_token,
:refresh_token => refresh_token
}
end
client = if credentials
credentials.merge!({
:client_id => client_id,
:client_secret => client_secret,
})
credentials[:host] = host unless host.nil?
Restforce.log = true if params[:salesforce_client_logger]
Restforce.new(credentials)
end
@app.call(params.merge(:salesforce_client => client))
end
end
end |
require 'gooddata'
require File.join(File.dirname(__FILE__), 'base_middleware')
module GoodData::Bricks
class RestForceMiddleware < GoodData::Bricks::Middleware
def call(params)
username = params[:salesforce_username]
password = params[:salesforce_password]
token = params[:salesforce_token]
client_id = params[:salesforce_client_id]
client_secret = params[:salesforce_client_secret]
oauth_token = params[:salesforce_oauth_token]
refresh_token = params[:salesforce_refresh_token]
host = params[:salesforce_host]
-
- credentials = {}
credentials = if (username && password && token)
{
:username => username,
:password => password,
:security_token => token
}
elsif (oauth_token && refresh_token)
{
:oauth_token => oauth_token,
:refresh_token => refresh_token
}
end
client = if credentials
credentials.merge!({
:client_id => client_id,
:client_secret => client_secret,
})
credentials[:host] = host unless host.nil?
Restforce.log = true if params[:salesforce_client_logger]
Restforce.new(credentials)
end
@app.call(params.merge(:salesforce_client => client))
end
end
end | 2 | 0.043478 | 0 | 2 |
45806b19b76fdc5e78b56c9e67a5d4c2fb5c7dcc | static/panels.less | static/panels.less | @import "ui-variables";
// Atom panels
atom-panel-container.left,
atom-panel-container.right {
display: flex;
}
.tool-panel, // deprecated: .tool-panel
atom-panel {
display: block;
position: relative;
}
atom-panel-container > atom-panel.left,
atom-panel-container > atom-panel.right {
display: flex;
}
// Some packages use `height: 100%` which doesn't play nice with flexbox
atom-panel-container > atom-panel.left > *,
atom-panel-container > atom-panel.right > * {
height: initial;
}
| @import "ui-variables";
// Atom panels
atom-panel-container.left,
atom-panel-container.right {
display: flex;
}
atom-panel-container.left {
// Align panels to the right of the panel container. The effect of this is
// that the left dock's toggle button will appear on the right side of the
// empty space when the panel container has a min width in the theme.
justify-content: flex-end;
}
.tool-panel, // deprecated: .tool-panel
atom-panel {
display: block;
position: relative;
}
atom-panel-container > atom-panel.left,
atom-panel-container > atom-panel.right {
display: flex;
}
// Some packages use `height: 100%` which doesn't play nice with flexbox
atom-panel-container > atom-panel.left > *,
atom-panel-container > atom-panel.right > * {
height: initial;
}
| Fix positioning of left dock toggle button when panel container has min-width | Fix positioning of left dock toggle button when panel container has min-width
| Less | mit | PKRoma/atom,brettle/atom,stinsonga/atom,andrewleverette/atom,AlexxNica/atom,stinsonga/atom,stinsonga/atom,liuderchi/atom,decaffeinate-examples/atom,liuderchi/atom,ardeshirj/atom,FIT-CSE2410-A-Bombs/atom,xream/atom,liuderchi/atom,PKRoma/atom,andrewleverette/atom,xream/atom,AlexxNica/atom,atom/atom,t9md/atom,brettle/atom,kevinrenaers/atom,t9md/atom,Mokolea/atom,FIT-CSE2410-A-Bombs/atom,kevinrenaers/atom,decaffeinate-examples/atom,stinsonga/atom,CraZySacX/atom,PKRoma/atom,Arcanemagus/atom,liuderchi/atom,decaffeinate-examples/atom,kevinrenaers/atom,ardeshirj/atom,ardeshirj/atom,sotayamashita/atom,FIT-CSE2410-A-Bombs/atom,Arcanemagus/atom,xream/atom,Mokolea/atom,brettle/atom,sotayamashita/atom,Mokolea/atom,andrewleverette/atom,sotayamashita/atom,atom/atom,t9md/atom,atom/atom,CraZySacX/atom,AlexxNica/atom,Arcanemagus/atom,decaffeinate-examples/atom,CraZySacX/atom | less | ## Code Before:
@import "ui-variables";
// Atom panels
atom-panel-container.left,
atom-panel-container.right {
display: flex;
}
.tool-panel, // deprecated: .tool-panel
atom-panel {
display: block;
position: relative;
}
atom-panel-container > atom-panel.left,
atom-panel-container > atom-panel.right {
display: flex;
}
// Some packages use `height: 100%` which doesn't play nice with flexbox
atom-panel-container > atom-panel.left > *,
atom-panel-container > atom-panel.right > * {
height: initial;
}
## Instruction:
Fix positioning of left dock toggle button when panel container has min-width
## Code After:
@import "ui-variables";
// Atom panels
atom-panel-container.left,
atom-panel-container.right {
display: flex;
}
atom-panel-container.left {
// Align panels to the right of the panel container. The effect of this is
// that the left dock's toggle button will appear on the right side of the
// empty space when the panel container has a min width in the theme.
justify-content: flex-end;
}
.tool-panel, // deprecated: .tool-panel
atom-panel {
display: block;
position: relative;
}
atom-panel-container > atom-panel.left,
atom-panel-container > atom-panel.right {
display: flex;
}
// Some packages use `height: 100%` which doesn't play nice with flexbox
atom-panel-container > atom-panel.left > *,
atom-panel-container > atom-panel.right > * {
height: initial;
}
| @import "ui-variables";
// Atom panels
atom-panel-container.left,
atom-panel-container.right {
display: flex;
+ }
+
+ atom-panel-container.left {
+ // Align panels to the right of the panel container. The effect of this is
+ // that the left dock's toggle button will appear on the right side of the
+ // empty space when the panel container has a min width in the theme.
+ justify-content: flex-end;
}
.tool-panel, // deprecated: .tool-panel
atom-panel {
display: block;
position: relative;
}
atom-panel-container > atom-panel.left,
atom-panel-container > atom-panel.right {
display: flex;
}
// Some packages use `height: 100%` which doesn't play nice with flexbox
atom-panel-container > atom-panel.left > *,
atom-panel-container > atom-panel.right > * {
height: initial;
} | 7 | 0.28 | 7 | 0 |
eba0251434e459b646d28ab8f3d68aa74c37b3a1 | README.md | README.md |
Setup dependencies.
composer install
Run Unit tests.
./vendor/bin/phpunit
Usage
try {
$highlightsObject = new Bamboo_Feeds_Highlights_Home();
} catch (IblClient_Exception $e) {
//exception
}
echo $highlightsObject->getEpisode('b03x19tb')->getSubtitle(); |
[](http://travis-ci.org/craigtaub/bamboo2)
Setup dependencies.
composer install
Run Unit tests.
./vendor/bin/phpunit
Usage
try {
$highlightsObject = new Bamboo_Feeds_Highlights_Home();
} catch (IblClient_Exception $e) {
//exception
}
echo $highlightsObject->getEpisode('b03x19tb')->getSubtitle(); | Add travis build status to read me | Add travis build status to read me
| Markdown | mit | DaMouse404/bamboo,DaMouse404/bamboo,DaMouse404/bamboo | markdown | ## Code Before:
Setup dependencies.
composer install
Run Unit tests.
./vendor/bin/phpunit
Usage
try {
$highlightsObject = new Bamboo_Feeds_Highlights_Home();
} catch (IblClient_Exception $e) {
//exception
}
echo $highlightsObject->getEpisode('b03x19tb')->getSubtitle();
## Instruction:
Add travis build status to read me
## Code After:
[](http://travis-ci.org/craigtaub/bamboo2)
Setup dependencies.
composer install
Run Unit tests.
./vendor/bin/phpunit
Usage
try {
$highlightsObject = new Bamboo_Feeds_Highlights_Home();
} catch (IblClient_Exception $e) {
//exception
}
echo $highlightsObject->getEpisode('b03x19tb')->getSubtitle(); | +
+ [](http://travis-ci.org/craigtaub/bamboo2)
Setup dependencies.
composer install
Run Unit tests.
./vendor/bin/phpunit
Usage
try {
$highlightsObject = new Bamboo_Feeds_Highlights_Home();
} catch (IblClient_Exception $e) {
//exception
}
echo $highlightsObject->getEpisode('b03x19tb')->getSubtitle(); | 2 | 0.117647 | 2 | 0 |
a815fa6e3aa06d5b0858c683c175828722de0cdc | functional-test-app/test/functional/GebConfig.groovy | functional-test-app/test/functional/GebConfig.groovy | // See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:/dev/chromedriver.exe'
//System.setProperty 'phantomjs.binary.path', ''
//driver = { new ChromeDriver() }
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
environments {
// run as 'grails -Dgeb.env=phantomjs test-app'
// See: http://code.google.com/p/selenium/wiki/HtmlUnitDriver
htmlunit {
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
}
// run as 'grails -Dgeb.env=chrome test-app'
// See: http://code.google.com/p/selenium/wiki/ChromeDriver
chrome {
driver = { new ChromeDriver() }
}
// run as 'grails -Dgeb.env=firefox test-app'
// See: http://code.google.com/p/selenium/wiki/FirefoxDriver
firefox {
driver = { new FirefoxDriver() }
}
}
| // See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:/dev/chromedriver.exe'
//System.setProperty 'phantomjs.binary.path', ''
//driver = { new ChromeDriver() }
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
// standalone usage, running tests in IDE
if (!System.getProperty("grails.env")) {
reportsDir = new File("target/geb-reports")
baseUrl = 'http://localhost:8238/functional-test-app/'
driver = { new ChromeDriver() }
}
environments {
// run as 'grails -Dgeb.env=phantomjs test-app'
// See: http://code.google.com/p/selenium/wiki/HtmlUnitDriver
htmlunit {
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
}
// run as 'grails -Dgeb.env=chrome test-app'
// See: http://code.google.com/p/selenium/wiki/ChromeDriver
chrome {
driver = { new ChromeDriver() }
}
// run as 'grails -Dgeb.env=firefox test-app'
// See: http://code.google.com/p/selenium/wiki/FirefoxDriver
firefox {
driver = { new FirefoxDriver() }
}
}
| Allow running Geb tests from IDE | Allow running Geb tests from IDE
| Groovy | apache-2.0 | codeconsole/grails-spring-security-core,tcrossland/grails-spring-security-core,grails-plugins/grails-spring-security-core,ColinHarrington/grails-spring-security-core,tcrossland/grails-spring-security-core,bhagwat/spring-security-forked-for-grails3,bhagwat/spring-security-forked-for-grails3,tcrossland/grails-spring-security-core,grails-plugins/grails-spring-security-core,codeconsole/grails-spring-security-core,pergravgaard/grails-spring-security-core,scrain/grails-spring-security-core,pergravgaard/grails-spring-security-core,tcrossland/grails-spring-security-core,hakanernam/grails-spring-security-core,pergravgaard/grails-spring-security-core | groovy | ## Code Before:
// See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:/dev/chromedriver.exe'
//System.setProperty 'phantomjs.binary.path', ''
//driver = { new ChromeDriver() }
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
environments {
// run as 'grails -Dgeb.env=phantomjs test-app'
// See: http://code.google.com/p/selenium/wiki/HtmlUnitDriver
htmlunit {
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
}
// run as 'grails -Dgeb.env=chrome test-app'
// See: http://code.google.com/p/selenium/wiki/ChromeDriver
chrome {
driver = { new ChromeDriver() }
}
// run as 'grails -Dgeb.env=firefox test-app'
// See: http://code.google.com/p/selenium/wiki/FirefoxDriver
firefox {
driver = { new FirefoxDriver() }
}
}
## Instruction:
Allow running Geb tests from IDE
## Code After:
// See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:/dev/chromedriver.exe'
//System.setProperty 'phantomjs.binary.path', ''
//driver = { new ChromeDriver() }
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
// standalone usage, running tests in IDE
if (!System.getProperty("grails.env")) {
reportsDir = new File("target/geb-reports")
baseUrl = 'http://localhost:8238/functional-test-app/'
driver = { new ChromeDriver() }
}
environments {
// run as 'grails -Dgeb.env=phantomjs test-app'
// See: http://code.google.com/p/selenium/wiki/HtmlUnitDriver
htmlunit {
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
}
// run as 'grails -Dgeb.env=chrome test-app'
// See: http://code.google.com/p/selenium/wiki/ChromeDriver
chrome {
driver = { new ChromeDriver() }
}
// run as 'grails -Dgeb.env=firefox test-app'
// See: http://code.google.com/p/selenium/wiki/FirefoxDriver
firefox {
driver = { new FirefoxDriver() }
}
}
| // See: http://www.gebish.org/manual/current/configuration.html
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import org.openqa.selenium.remote.DesiredCapabilities
//System.setProperty 'webdriver.chrome.driver', 'c:/dev/chromedriver.exe'
//System.setProperty 'phantomjs.binary.path', ''
//driver = { new ChromeDriver() }
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
+
+ // standalone usage, running tests in IDE
+ if (!System.getProperty("grails.env")) {
+ reportsDir = new File("target/geb-reports")
+ baseUrl = 'http://localhost:8238/functional-test-app/'
+ driver = { new ChromeDriver() }
+ }
environments {
// run as 'grails -Dgeb.env=phantomjs test-app'
// See: http://code.google.com/p/selenium/wiki/HtmlUnitDriver
htmlunit {
driver = { new PhantomJSDriver(new DesiredCapabilities()) }
}
// run as 'grails -Dgeb.env=chrome test-app'
// See: http://code.google.com/p/selenium/wiki/ChromeDriver
chrome {
driver = { new ChromeDriver() }
}
// run as 'grails -Dgeb.env=firefox test-app'
// See: http://code.google.com/p/selenium/wiki/FirefoxDriver
firefox {
driver = { new FirefoxDriver() }
}
}
+
+ | 9 | 0.272727 | 9 | 0 |
a7b5aa793a396a04a5254b44c75a843d305dc052 | doc/readme.md | doc/readme.md |
Flor is a Ruby workflow engine.
It interprets a language describing "workflows". They can be thought of long-running programs meant for orchestrating work among participants \[in workflows\].
* [glossary](glossary.md)
* [core procedures](core_procedures.md)
* [unit procedures](unit_procedures.md)
|
Flor is a Ruby workflow engine.
It interprets a language describing "workflows". They can be thought of long-running programs meant for orchestrating work among participants \[in workflows\].
* [glossary](glossary.md)
* [procedures](procedures/)
| Fix link to procedure doc | Fix link to procedure doc
| Markdown | mit | flon-io/flor,dmicky0419/flor,dmicky0419/flor,floraison/flor,floraison/flor,dmicky0419/flor,floraison/flor | markdown | ## Code Before:
Flor is a Ruby workflow engine.
It interprets a language describing "workflows". They can be thought of long-running programs meant for orchestrating work among participants \[in workflows\].
* [glossary](glossary.md)
* [core procedures](core_procedures.md)
* [unit procedures](unit_procedures.md)
## Instruction:
Fix link to procedure doc
## Code After:
Flor is a Ruby workflow engine.
It interprets a language describing "workflows". They can be thought of long-running programs meant for orchestrating work among participants \[in workflows\].
* [glossary](glossary.md)
* [procedures](procedures/)
|
Flor is a Ruby workflow engine.
It interprets a language describing "workflows". They can be thought of long-running programs meant for orchestrating work among participants \[in workflows\].
* [glossary](glossary.md)
- * [core procedures](core_procedures.md)
? ----- ----- ^^^
+ * [procedures](procedures/)
? ^
- * [unit procedures](unit_procedures.md)
| 3 | 0.333333 | 1 | 2 |
e3a4972ff157988be4156247d7504083ddbd9271 | src/README.md | src/README.md | This module implements the state object of a ProseMirror editor, along
with the representation of the selection and the plugin abstraction.
### Editor State
ProseMirror keeps all editor state (the things, basically, that would
be required to create an editor just like the current one) in a single
[object](#state.EditorState). That object is updated (creating a new
state) by applying [transactions](#state.Transaction) to it.
@EditorState
@Transaction
### Selection
A ProseMirror selection can be either a classical
[text selection](#state.TextSelection) (of which cursors are a special
case), or a [_node_ selection](#state.NodeSelection), where a specific
document node is selected.
@Selection
@TextSelection
@NodeSelection
@AllSelection
### Plugin System
To make distributing and using extra editor functionality easier,
ProseMirror has a plugin system.
@PluginSpec
@Plugin
@StateField
@PluginKey
| This module implements the state object of a ProseMirror editor, along
with the representation of the selection and the plugin abstraction.
### Editor State
ProseMirror keeps all editor state (the things, basically, that would
be required to create an editor just like the current one) in a single
[object](#state.EditorState). That object is updated (creating a new
state) by applying [transactions](#state.Transaction) to it.
@EditorState
@Transaction
### Selection
A ProseMirror selection can be either a classical
[text selection](#state.TextSelection) (of which cursors are a special
case), or a [_node_ selection](#state.NodeSelection), where a specific
document node is selected.
@Selection
@TextSelection
@NodeSelection
@AllSelection
@SelectionRange
@SelectionBookmark
### Plugin System
To make distributing and using extra editor functionality easier,
ProseMirror has a plugin system.
@PluginSpec
@Plugin
@StateField
@PluginKey
| Add two missing classes to the reference doc template | Add two missing classes to the reference doc template
| Markdown | mit | ProseMirror/prosemirror-state | markdown | ## Code Before:
This module implements the state object of a ProseMirror editor, along
with the representation of the selection and the plugin abstraction.
### Editor State
ProseMirror keeps all editor state (the things, basically, that would
be required to create an editor just like the current one) in a single
[object](#state.EditorState). That object is updated (creating a new
state) by applying [transactions](#state.Transaction) to it.
@EditorState
@Transaction
### Selection
A ProseMirror selection can be either a classical
[text selection](#state.TextSelection) (of which cursors are a special
case), or a [_node_ selection](#state.NodeSelection), where a specific
document node is selected.
@Selection
@TextSelection
@NodeSelection
@AllSelection
### Plugin System
To make distributing and using extra editor functionality easier,
ProseMirror has a plugin system.
@PluginSpec
@Plugin
@StateField
@PluginKey
## Instruction:
Add two missing classes to the reference doc template
## Code After:
This module implements the state object of a ProseMirror editor, along
with the representation of the selection and the plugin abstraction.
### Editor State
ProseMirror keeps all editor state (the things, basically, that would
be required to create an editor just like the current one) in a single
[object](#state.EditorState). That object is updated (creating a new
state) by applying [transactions](#state.Transaction) to it.
@EditorState
@Transaction
### Selection
A ProseMirror selection can be either a classical
[text selection](#state.TextSelection) (of which cursors are a special
case), or a [_node_ selection](#state.NodeSelection), where a specific
document node is selected.
@Selection
@TextSelection
@NodeSelection
@AllSelection
@SelectionRange
@SelectionBookmark
### Plugin System
To make distributing and using extra editor functionality easier,
ProseMirror has a plugin system.
@PluginSpec
@Plugin
@StateField
@PluginKey
| This module implements the state object of a ProseMirror editor, along
with the representation of the selection and the plugin abstraction.
### Editor State
ProseMirror keeps all editor state (the things, basically, that would
be required to create an editor just like the current one) in a single
[object](#state.EditorState). That object is updated (creating a new
state) by applying [transactions](#state.Transaction) to it.
@EditorState
@Transaction
### Selection
A ProseMirror selection can be either a classical
[text selection](#state.TextSelection) (of which cursors are a special
case), or a [_node_ selection](#state.NodeSelection), where a specific
document node is selected.
@Selection
@TextSelection
@NodeSelection
@AllSelection
+ @SelectionRange
+ @SelectionBookmark
+
### Plugin System
To make distributing and using extra editor functionality easier,
ProseMirror has a plugin system.
@PluginSpec
@Plugin
@StateField
@PluginKey | 3 | 0.088235 | 3 | 0 |
eea63cfb246acff4aeb81e79607968bb78b3987b | src/apps/Updater/project.yml | src/apps/Updater/project.yml | name: Karabiner-Elements
targets:
Karabiner-Elements:
settings:
PRODUCT_BUNDLE_IDENTIFIER: org.pqrs.Karabiner-Elements.Updater
CODE_SIGN_ENTITLEMENTS: ''
CODE_SIGN_IDENTITY: '-'
CODE_SIGN_STYLE: Manual
SYSTEM_HEADER_SEARCH_PATHS:
- ../../vendor/cget/include
HEADER_SEARCH_PATHS:
- ../../lib/libkrbn/include
type: application
platform: macOS
deploymentTarget: 10.15
sources:
- path: src
compilerFlags:
- -Wall
- -Werror
- path: Resources
excludes:
- .gitignore
- '*.plist.in'
- path: ../share/Resources/app.icns
dependencies:
- framework: ../../vendor/Sparkle/build/Build/Products/Release/Sparkle.framework
| name: Karabiner-Elements
packages:
Sparkle:
url: https://github.com/sparkle-project/Sparkle
from: 1.26.0
targets:
Karabiner-Elements:
settings:
PRODUCT_BUNDLE_IDENTIFIER: org.pqrs.Karabiner-Elements.Updater
CODE_SIGN_ENTITLEMENTS: ''
CODE_SIGN_IDENTITY: '-'
CODE_SIGN_STYLE: Manual
type: application
platform: macOS
deploymentTarget: 10.15
sources:
- path: src
compilerFlags:
- -Wall
- -Werror
- path: Resources
excludes:
- .gitignore
- '*.plist.in'
- path: ../share/Resources/app.icns
dependencies:
- package: Sparkle
| Use Swift Package Manager to use Sparkle | Use Swift Package Manager to use Sparkle
| YAML | unlicense | tekezo/Karabiner-Elements,tekezo/Karabiner-Elements,tekezo/Karabiner-Elements,tekezo/Karabiner-Elements | yaml | ## Code Before:
name: Karabiner-Elements
targets:
Karabiner-Elements:
settings:
PRODUCT_BUNDLE_IDENTIFIER: org.pqrs.Karabiner-Elements.Updater
CODE_SIGN_ENTITLEMENTS: ''
CODE_SIGN_IDENTITY: '-'
CODE_SIGN_STYLE: Manual
SYSTEM_HEADER_SEARCH_PATHS:
- ../../vendor/cget/include
HEADER_SEARCH_PATHS:
- ../../lib/libkrbn/include
type: application
platform: macOS
deploymentTarget: 10.15
sources:
- path: src
compilerFlags:
- -Wall
- -Werror
- path: Resources
excludes:
- .gitignore
- '*.plist.in'
- path: ../share/Resources/app.icns
dependencies:
- framework: ../../vendor/Sparkle/build/Build/Products/Release/Sparkle.framework
## Instruction:
Use Swift Package Manager to use Sparkle
## Code After:
name: Karabiner-Elements
packages:
Sparkle:
url: https://github.com/sparkle-project/Sparkle
from: 1.26.0
targets:
Karabiner-Elements:
settings:
PRODUCT_BUNDLE_IDENTIFIER: org.pqrs.Karabiner-Elements.Updater
CODE_SIGN_ENTITLEMENTS: ''
CODE_SIGN_IDENTITY: '-'
CODE_SIGN_STYLE: Manual
type: application
platform: macOS
deploymentTarget: 10.15
sources:
- path: src
compilerFlags:
- -Wall
- -Werror
- path: Resources
excludes:
- .gitignore
- '*.plist.in'
- path: ../share/Resources/app.icns
dependencies:
- package: Sparkle
| name: Karabiner-Elements
+ packages:
+ Sparkle:
+ url: https://github.com/sparkle-project/Sparkle
+ from: 1.26.0
targets:
Karabiner-Elements:
settings:
PRODUCT_BUNDLE_IDENTIFIER: org.pqrs.Karabiner-Elements.Updater
CODE_SIGN_ENTITLEMENTS: ''
CODE_SIGN_IDENTITY: '-'
CODE_SIGN_STYLE: Manual
- SYSTEM_HEADER_SEARCH_PATHS:
- - ../../vendor/cget/include
- HEADER_SEARCH_PATHS:
- - ../../lib/libkrbn/include
type: application
platform: macOS
deploymentTarget: 10.15
sources:
- path: src
compilerFlags:
- -Wall
- -Werror
- path: Resources
excludes:
- .gitignore
- '*.plist.in'
- path: ../share/Resources/app.icns
dependencies:
- - framework: ../../vendor/Sparkle/build/Build/Products/Release/Sparkle.framework
+ - package: Sparkle | 10 | 0.357143 | 5 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.