commit
stringlengths 40
40
| old_file
stringlengths 4
237
| new_file
stringlengths 4
237
| old_contents
stringlengths 1
4.24k
| new_contents
stringlengths 5
4.84k
| subject
stringlengths 15
778
| message
stringlengths 16
6.86k
| lang
stringlengths 1
30
| license
stringclasses 13
values | repos
stringlengths 5
116k
| config
stringlengths 1
30
| content
stringlengths 105
8.72k
|
---|---|---|---|---|---|---|---|---|---|---|---|
718bd57ff648d431d8986a48d1c66877098c4081
|
urls.py
|
urls.py
|
from django.conf.urls import patterns, include, url
from . import methods
urlpatterns = patterns('',
url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'),
url(r'^issues\.xml$', methods.post_issue, name='post_issue'),
)
|
from django.conf.urls import include, url
from . import methods
urlpatterns = (
url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'),
url(r'^issues\.xml$', methods.post_issue, name='post_issue'),
)
|
Update to Django 1.11.19 including updates to various dependencies
|
Update to Django 1.11.19 including updates to various dependencies
|
Python
|
mit
|
mback2k/django-app-bugs
|
python
|
## Code Before:
from django.conf.urls import patterns, include, url
from . import methods
urlpatterns = patterns('',
url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'),
url(r'^issues\.xml$', methods.post_issue, name='post_issue'),
)
## Instruction:
Update to Django 1.11.19 including updates to various dependencies
## Code After:
from django.conf.urls import include, url
from . import methods
urlpatterns = (
url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'),
url(r'^issues\.xml$', methods.post_issue, name='post_issue'),
)
|
57b4eebab3f63c37e892bfd57ca0f719a9b02697
|
web/server/system/file_system.go
|
web/server/system/file_system.go
|
package system
import (
"log"
"os"
"path/filepath"
"strings"
)
type FileSystem struct{}
func (self *FileSystem) Walk(root string, step filepath.WalkFunc) {
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if self.isMetaDirectory(info) {
return filepath.SkipDir
}
return step(path, info, err)
})
if err != nil {
log.Println("Error while walking file system:", err)
panic(err)
}
}
func (self *FileSystem) isMetaDirectory(info os.FileInfo) bool {
return info.IsDir() && strings.HasPrefix(info.Name(), ".")
}
func (self *FileSystem) Exists(directory string) bool {
info, err := os.Stat(directory)
return err == nil && info.IsDir()
}
func NewFileSystem() *FileSystem {
return &FileSystem{}
}
|
package system
import (
"log"
"os"
"path/filepath"
"strings"
)
type FileSystem struct{}
func (self *FileSystem) Walk(root string, step filepath.WalkFunc) {
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if self.isMetaDirectory(info) {
return filepath.SkipDir
}
return step(path, info, err)
})
if err != nil {
log.Println("Error while walking file system:", err)
panic(err)
}
}
func (self *FileSystem) isMetaDirectory(info os.FileInfo) bool {
name := info.Name()
return info.IsDir() && (strings.HasPrefix(name, ".") || strings.HasPrefix(name, "_") || name == "testdata")
}
func (self *FileSystem) Exists(directory string) bool {
info, err := os.Stat(directory)
return err == nil && info.IsDir()
}
func NewFileSystem() *FileSystem {
return &FileSystem{}
}
|
Expand ignored directories to match behaviour of the go tool
|
Expand ignored directories to match behaviour of the go tool
The go tool currently ignore directories that start with a dot or an
underscore, or are called 'testdata'. This patch augments the ignore
logic of goconvey to match what Go does by default.
|
Go
|
mit
|
wallclockbuilder/goconvey,zj8487/goconvey,springning/goconvey,wallclockbuilder/goconvey,springning/goconvey,zj8487/goconvey,aquilax/goconvey,yaoshipu/goconvey,wallclockbuilder/convey,ansiz/goconvey,springning/goconvey,ansiz/goconvey,wallclockbuilder/assertions,springning/assertions,zj8487/goconvey,leeola/goconvey,aquilax/goconvey,leeola/goconvey,aquilax/goconvey,yaoshipu/goconvey,wallclockbuilder/goconvey,leeola/goconvey,ansiz/goconvey,yaoshipu/goconvey
|
go
|
## Code Before:
package system
import (
"log"
"os"
"path/filepath"
"strings"
)
type FileSystem struct{}
func (self *FileSystem) Walk(root string, step filepath.WalkFunc) {
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if self.isMetaDirectory(info) {
return filepath.SkipDir
}
return step(path, info, err)
})
if err != nil {
log.Println("Error while walking file system:", err)
panic(err)
}
}
func (self *FileSystem) isMetaDirectory(info os.FileInfo) bool {
return info.IsDir() && strings.HasPrefix(info.Name(), ".")
}
func (self *FileSystem) Exists(directory string) bool {
info, err := os.Stat(directory)
return err == nil && info.IsDir()
}
func NewFileSystem() *FileSystem {
return &FileSystem{}
}
## Instruction:
Expand ignored directories to match behaviour of the go tool
The go tool currently ignore directories that start with a dot or an
underscore, or are called 'testdata'. This patch augments the ignore
logic of goconvey to match what Go does by default.
## Code After:
package system
import (
"log"
"os"
"path/filepath"
"strings"
)
type FileSystem struct{}
func (self *FileSystem) Walk(root string, step filepath.WalkFunc) {
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if self.isMetaDirectory(info) {
return filepath.SkipDir
}
return step(path, info, err)
})
if err != nil {
log.Println("Error while walking file system:", err)
panic(err)
}
}
func (self *FileSystem) isMetaDirectory(info os.FileInfo) bool {
name := info.Name()
return info.IsDir() && (strings.HasPrefix(name, ".") || strings.HasPrefix(name, "_") || name == "testdata")
}
func (self *FileSystem) Exists(directory string) bool {
info, err := os.Stat(directory)
return err == nil && info.IsDir()
}
func NewFileSystem() *FileSystem {
return &FileSystem{}
}
|
93db85f559a8196e368f669b777bfb5c1aa3ad74
|
galaxyenv/group_vars/starforgebuilders.yml
|
galaxyenv/group_vars/starforgebuilders.yml
|
---
group_apt_keys:
- keyserver: hkp://pgp.mit.edu:80
id: 58118E89F3A912897C070ADBF76221572C52609D
group_apt_repositories:
- repo: deb https://apt.dockerproject.org/repo debian-jessie main
group_packages:
- docker-engine
- qemu-system-x86
# for building starforge docker images
- make
# starforge downloading packages with pip will run egg_info, which on at
# least one package (mercurial) will fail if Python.h cannot be found
- python-dev
group_files:
- content: "# This file is managed by Ansible. ALL CHANGES WILL BE OVERWRITTEN.\nw /sys/module/kvm/parameters/ignore_msrs - - - - 1\n"
dest: '/etc/tmpfiles.d/qemu-ignore-msrs.conf'
# user_subvol_rm_allowed has to be set on the / mount (and that does not mean
# the btrfs root mounted at /btrfs). Could maybe do this with filesystems, but
# for now I just did it by hand.
local_users:
- name: nate
groups: kvm,docker
- name: jenkins
system: 'yes'
groups: kvm,docker
# Run /btrfs/snapshots/@starforge-<ver>/snap_for after creation
|
---
group_apt_keys:
- keyserver: hkp://pgp.mit.edu:80
id: 58118E89F3A912897C070ADBF76221572C52609D
group_apt_repositories:
- repo: deb https://apt.dockerproject.org/repo debian-jessie main
group_packages:
- docker-engine
- qemu-system-x86
# for building starforge docker images
- make
# starforge downloading packages with pip will run egg_info, which on at
# least one package (mercurial) will fail if Python.h cannot be found
- python-dev
# for starforge/wheels/image/update-for-jenkins.sh
- jq
- uuid-runtime
group_files:
- content: "# This file is managed by Ansible. ALL CHANGES WILL BE OVERWRITTEN.\nw /sys/module/kvm/parameters/ignore_msrs - - - - 1\n"
dest: '/etc/tmpfiles.d/qemu-ignore-msrs.conf'
# user_subvol_rm_allowed has to be set on the / mount (and that does not mean
# the btrfs root mounted at /btrfs). Could maybe do this with filesystems, but
# for now I just did it by hand.
local_users:
- name: nate
groups: kvm,docker
- name: jenkins
system: 'yes'
groups: kvm,docker
# Run /btrfs/snapshots/@starforge-<ver>/snap_for after creation
|
Add starforge image build deps
|
Add starforge image build deps
|
YAML
|
mit
|
galaxyproject/infrastructure-playbook,galaxyproject/infrastructure-playbook
|
yaml
|
## Code Before:
---
group_apt_keys:
- keyserver: hkp://pgp.mit.edu:80
id: 58118E89F3A912897C070ADBF76221572C52609D
group_apt_repositories:
- repo: deb https://apt.dockerproject.org/repo debian-jessie main
group_packages:
- docker-engine
- qemu-system-x86
# for building starforge docker images
- make
# starforge downloading packages with pip will run egg_info, which on at
# least one package (mercurial) will fail if Python.h cannot be found
- python-dev
group_files:
- content: "# This file is managed by Ansible. ALL CHANGES WILL BE OVERWRITTEN.\nw /sys/module/kvm/parameters/ignore_msrs - - - - 1\n"
dest: '/etc/tmpfiles.d/qemu-ignore-msrs.conf'
# user_subvol_rm_allowed has to be set on the / mount (and that does not mean
# the btrfs root mounted at /btrfs). Could maybe do this with filesystems, but
# for now I just did it by hand.
local_users:
- name: nate
groups: kvm,docker
- name: jenkins
system: 'yes'
groups: kvm,docker
# Run /btrfs/snapshots/@starforge-<ver>/snap_for after creation
## Instruction:
Add starforge image build deps
## Code After:
---
group_apt_keys:
- keyserver: hkp://pgp.mit.edu:80
id: 58118E89F3A912897C070ADBF76221572C52609D
group_apt_repositories:
- repo: deb https://apt.dockerproject.org/repo debian-jessie main
group_packages:
- docker-engine
- qemu-system-x86
# for building starforge docker images
- make
# starforge downloading packages with pip will run egg_info, which on at
# least one package (mercurial) will fail if Python.h cannot be found
- python-dev
# for starforge/wheels/image/update-for-jenkins.sh
- jq
- uuid-runtime
group_files:
- content: "# This file is managed by Ansible. ALL CHANGES WILL BE OVERWRITTEN.\nw /sys/module/kvm/parameters/ignore_msrs - - - - 1\n"
dest: '/etc/tmpfiles.d/qemu-ignore-msrs.conf'
# user_subvol_rm_allowed has to be set on the / mount (and that does not mean
# the btrfs root mounted at /btrfs). Could maybe do this with filesystems, but
# for now I just did it by hand.
local_users:
- name: nate
groups: kvm,docker
- name: jenkins
system: 'yes'
groups: kvm,docker
# Run /btrfs/snapshots/@starforge-<ver>/snap_for after creation
|
200976e7d2aaf6a177f8d5a348cd510a0d4c086a
|
test/instance.js
|
test/instance.js
|
var expect = require("expect.js");
var mocha = require("mocha");
var connectAssets = require("..");
describe("instance", function () {
it("exposes the mincer environment", function () {
var assets = connectAssets();
expect(assets.environment).to.be.an("object");
});
it("allows you to call .bind()", function () {
var assets = connectAssets();
expect(assets.bind).to.be.a("function");
});
it("allows you to call .apply()", function () {
var assets = connectAssets();
expect(assets.apply).to.be.an("function");
});
});
|
var expect = require("expect.js");
var mocha = require("mocha");
var connectAssets = require("..");
describe("instance", function () {
it("exposes mincer to allow for registering engines", function () {
expect(connectAssets.Mincer).to.be.an("object");
});
it("exposes the mincer environment", function () {
var assets = connectAssets();
expect(assets.environment).to.be.an("object");
});
it("allows you to call .bind()", function () {
var assets = connectAssets();
expect(assets.bind).to.be.a("function");
});
it("allows you to call .apply()", function () {
var assets = connectAssets();
expect(assets.apply).to.be.an("function");
});
});
|
Add test to ensure mincer is exposed.
|
Add test to ensure mincer is exposed.
This will allow other modules to modify mincer before we use it — for example, to register an engine as mincer-babel does.
|
JavaScript
|
mit
|
codynguyen/connect-assets,codynguyen/connect-assets,adunkman/connect-assets,adunkman/connect-assets
|
javascript
|
## Code Before:
var expect = require("expect.js");
var mocha = require("mocha");
var connectAssets = require("..");
describe("instance", function () {
it("exposes the mincer environment", function () {
var assets = connectAssets();
expect(assets.environment).to.be.an("object");
});
it("allows you to call .bind()", function () {
var assets = connectAssets();
expect(assets.bind).to.be.a("function");
});
it("allows you to call .apply()", function () {
var assets = connectAssets();
expect(assets.apply).to.be.an("function");
});
});
## Instruction:
Add test to ensure mincer is exposed.
This will allow other modules to modify mincer before we use it — for example, to register an engine as mincer-babel does.
## Code After:
var expect = require("expect.js");
var mocha = require("mocha");
var connectAssets = require("..");
describe("instance", function () {
it("exposes mincer to allow for registering engines", function () {
expect(connectAssets.Mincer).to.be.an("object");
});
it("exposes the mincer environment", function () {
var assets = connectAssets();
expect(assets.environment).to.be.an("object");
});
it("allows you to call .bind()", function () {
var assets = connectAssets();
expect(assets.bind).to.be.a("function");
});
it("allows you to call .apply()", function () {
var assets = connectAssets();
expect(assets.apply).to.be.an("function");
});
});
|
15f4d4e8dfac23122578910c87b5783b32bdeb02
|
roles/st2/defaults/main.yml
|
roles/st2/defaults/main.yml
|
---
# StackStorm package repository in packagecloud: 'stable', 'unstable', 'staging-stable', 'staging-unstable'
st2_pkg_repo: stable
# 'stable' to get latest version or numeric like '1.4.0'
st2_version: stable
# used only if 'st2_version' is numeric
st2_revision: 1
st2_system_user: stanley
st2_ssh_key_file: /home/{{ st2_system_user }}/.ssh/{{ st2_system_user }}_rsa
# Enable StackStorm auth
st2_auth_enable: true
st2_auth_username: testu
st2_auth_password: testp
# Set to no if you do not want the st2_system_user to be added in the sudoers file
st2_system_user_in_sudoers: yes
|
---
# StackStorm package repository in packagecloud: 'stable', 'unstable', 'staging-stable', 'staging-unstable'
st2_pkg_repo: stable
# 'stable' to get latest version or numeric like '1.4.0'
st2_version: stable
# used only if 'st2_version' is numeric
st2_revision: 1
# System user on whose behalf st2 would work, including remote/local action runners
st2_system_user: stanley
# Add `st2_system_user` to the sudoers (recommended for most `st2` features to work)
st2_system_user_in_sudoers: yes
# Path to `st2_system_user` ssh private key. It will be autogenerated if key absent
st2_ssh_key_file: /home/{{ st2_system_user }}/.ssh/{{ st2_system_user }}_rsa
# Enable StackStorm standalone authentication
st2_auth_enable: yes
# Username used by StackStorm standalone authentication
st2_auth_username: testu
# Password used by StackStorm standalone authentication
st2_auth_password: testp
|
Add descriptions for st2 default vars
|
Add descriptions for st2 default vars
|
YAML
|
apache-2.0
|
StackStorm/ansible-st2,armab/ansible-st2
|
yaml
|
## Code Before:
---
# StackStorm package repository in packagecloud: 'stable', 'unstable', 'staging-stable', 'staging-unstable'
st2_pkg_repo: stable
# 'stable' to get latest version or numeric like '1.4.0'
st2_version: stable
# used only if 'st2_version' is numeric
st2_revision: 1
st2_system_user: stanley
st2_ssh_key_file: /home/{{ st2_system_user }}/.ssh/{{ st2_system_user }}_rsa
# Enable StackStorm auth
st2_auth_enable: true
st2_auth_username: testu
st2_auth_password: testp
# Set to no if you do not want the st2_system_user to be added in the sudoers file
st2_system_user_in_sudoers: yes
## Instruction:
Add descriptions for st2 default vars
## Code After:
---
# StackStorm package repository in packagecloud: 'stable', 'unstable', 'staging-stable', 'staging-unstable'
st2_pkg_repo: stable
# 'stable' to get latest version or numeric like '1.4.0'
st2_version: stable
# used only if 'st2_version' is numeric
st2_revision: 1
# System user on whose behalf st2 would work, including remote/local action runners
st2_system_user: stanley
# Add `st2_system_user` to the sudoers (recommended for most `st2` features to work)
st2_system_user_in_sudoers: yes
# Path to `st2_system_user` ssh private key. It will be autogenerated if key absent
st2_ssh_key_file: /home/{{ st2_system_user }}/.ssh/{{ st2_system_user }}_rsa
# Enable StackStorm standalone authentication
st2_auth_enable: yes
# Username used by StackStorm standalone authentication
st2_auth_username: testu
# Password used by StackStorm standalone authentication
st2_auth_password: testp
|
46694ae83061f6f13af4f8a15985e603afa2ca50
|
circle.yml
|
circle.yml
|
dependencies:
pre:
- sudo apt-get update; sudo apt-get install unzip openssl lua5.1 luarocks libev-dev -y; sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu; sudo luarocks install copas; sudo luarocks install moonscript; sudo luarocks install lua-ev; sudo luarocks install busted; sudo luarocks install ldoc
test:
override:
- make
|
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install unzip openssl lua5.1 luarocks libev-dev -y
- sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
- sudo luarocks install busted
- sudo luarocks install ldoc
test:
override:
- make
deployment:
production:
branch: master
commands:
- git checkout gh-pages
- ./generate.sh
- git add .
- git config user.email "[email protected]"
- git config user.name "circleci"
- git commit -am "Automatic Github Page generation"
- git push
|
Update to deploy github pages
|
Update to deploy github pages
|
YAML
|
isc
|
Afforess/Factorio-Stdlib
|
yaml
|
## Code Before:
dependencies:
pre:
- sudo apt-get update; sudo apt-get install unzip openssl lua5.1 luarocks libev-dev -y; sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu; sudo luarocks install copas; sudo luarocks install moonscript; sudo luarocks install lua-ev; sudo luarocks install busted; sudo luarocks install ldoc
test:
override:
- make
## Instruction:
Update to deploy github pages
## Code After:
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install unzip openssl lua5.1 luarocks libev-dev -y
- sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
- sudo luarocks install busted
- sudo luarocks install ldoc
test:
override:
- make
deployment:
production:
branch: master
commands:
- git checkout gh-pages
- ./generate.sh
- git add .
- git config user.email "[email protected]"
- git config user.name "circleci"
- git commit -am "Automatic Github Page generation"
- git push
|
23367bd69f3b293ec5a338914937c2ae81f11bf5
|
web/tailwind.config.js
|
web/tailwind.config.js
|
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
|
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
prefix: 'tw-',
}
|
Add prefix setting to Tailwind
|
chore(web): Add prefix setting to Tailwind
|
JavaScript
|
mit
|
ruedap/nekostagram,ruedap/nekostagram,ruedap/nekostagram,ruedap/nekostagram
|
javascript
|
## Code Before:
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}
## Instruction:
chore(web): Add prefix setting to Tailwind
## Code After:
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
prefix: 'tw-',
}
|
18e1fd911ba4d696acd80c57867dfbcf29ed6433
|
lib/rubocop/cop/naming/variable_name.rb
|
lib/rubocop/cop/naming/variable_name.rb
|
module RuboCop
module Cop
module Naming
# This cop makes sure that all variables use the configured style,
# snake_case or camelCase, for their names.
class VariableName < Cop
include ConfigurableNaming
def on_lvasgn(node)
name, = *node
return unless name
check_name(node, name, node.loc.name)
end
alias on_ivasgn on_lvasgn
alias on_cvasgn on_lvasgn
alias on_arg on_lvasgn
alias on_optarg on_lvasgn
alias on_restarg on_lvasgn
alias on_kwoptarg on_lvasgn
alias on_kwarg on_lvasgn
alias on_kwrestarg on_lvasgn
alias on_blockarg on_lvasgn
private
def message(style)
format('Use %s for variable names.', style)
end
end
end
end
end
|
module RuboCop
module Cop
module Naming
# This cop makes sure that all variables use the configured style,
# snake_case or camelCase, for their names.
#
# @example
#
# # EnforcedStyle: snake_case
#
# # bad
# fooBar = 1
#
# # good
# foo_bar = 1
#
# @example
#
# # EnforcedStyle: camelCase
#
# # bad
# foo_bar = 1
#
# # good
# fooBar = 1
class VariableName < Cop
include ConfigurableNaming
MSG = 'Use %<style>s for variable names.'.freeze
def on_lvasgn(node)
name, = *node
return unless name
check_name(node, name, node.loc.name)
end
alias on_ivasgn on_lvasgn
alias on_cvasgn on_lvasgn
alias on_arg on_lvasgn
alias on_optarg on_lvasgn
alias on_restarg on_lvasgn
alias on_kwoptarg on_lvasgn
alias on_kwarg on_lvasgn
alias on_kwrestarg on_lvasgn
alias on_blockarg on_lvasgn
private
def message(style)
format(MSG, style: style)
end
end
end
end
end
|
Fix up Naming/VariabeName cop and its documentation
|
Fix up Naming/VariabeName cop and its documentation
|
Ruby
|
mit
|
jmks/rubocop,akihiro17/rubocop,tejasbubane/rubocop,meganemura/rubocop,tdeo/rubocop,vergenzt/rubocop,vergenzt/rubocop,smakagon/rubocop,sue445/rubocop,meganemura/rubocop,tejasbubane/rubocop,bquorning/rubocop,scottmatthewman/rubocop,bbatsov/rubocop,deivid-rodriguez/rubocop,jmks/rubocop,mikegee/rubocop,urbanautomaton/rubocop,pocke/rubocop,palkan/rubocop,jfelchner/rubocop,bquorning/rubocop,akihiro17/rubocop,palkan/rubocop,mikegee/rubocop,jfelchner/rubocop,tdeo/rubocop,jmks/rubocop,panthomakos/rubocop,akihiro17/rubocop,maxjacobson/rubocop,maxjacobson/rubocop,petehamilton/rubocop,rrosenblum/rubocop,petehamilton/rubocop,tdeo/rubocop,rrosenblum/rubocop,haziqhafizuddin/rubocop,deivid-rodriguez/rubocop,sue445/rubocop,smakagon/rubocop,mikegee/rubocop,panthomakos/rubocop,bquorning/rubocop,scottmatthewman/rubocop,bbatsov/rubocop,tejasbubane/rubocop,haziqhafizuddin/rubocop,petehamilton/rubocop,pocke/rubocop,vergenzt/rubocop,jfelchner/rubocop,deivid-rodriguez/rubocop,meganemura/rubocop,urbanautomaton/rubocop,panthomakos/rubocop,maxjacobson/rubocop,sue445/rubocop,rrosenblum/rubocop,palkan/rubocop
|
ruby
|
## Code Before:
module RuboCop
module Cop
module Naming
# This cop makes sure that all variables use the configured style,
# snake_case or camelCase, for their names.
class VariableName < Cop
include ConfigurableNaming
def on_lvasgn(node)
name, = *node
return unless name
check_name(node, name, node.loc.name)
end
alias on_ivasgn on_lvasgn
alias on_cvasgn on_lvasgn
alias on_arg on_lvasgn
alias on_optarg on_lvasgn
alias on_restarg on_lvasgn
alias on_kwoptarg on_lvasgn
alias on_kwarg on_lvasgn
alias on_kwrestarg on_lvasgn
alias on_blockarg on_lvasgn
private
def message(style)
format('Use %s for variable names.', style)
end
end
end
end
end
## Instruction:
Fix up Naming/VariabeName cop and its documentation
## Code After:
module RuboCop
module Cop
module Naming
# This cop makes sure that all variables use the configured style,
# snake_case or camelCase, for their names.
#
# @example
#
# # EnforcedStyle: snake_case
#
# # bad
# fooBar = 1
#
# # good
# foo_bar = 1
#
# @example
#
# # EnforcedStyle: camelCase
#
# # bad
# foo_bar = 1
#
# # good
# fooBar = 1
class VariableName < Cop
include ConfigurableNaming
MSG = 'Use %<style>s for variable names.'.freeze
def on_lvasgn(node)
name, = *node
return unless name
check_name(node, name, node.loc.name)
end
alias on_ivasgn on_lvasgn
alias on_cvasgn on_lvasgn
alias on_arg on_lvasgn
alias on_optarg on_lvasgn
alias on_restarg on_lvasgn
alias on_kwoptarg on_lvasgn
alias on_kwarg on_lvasgn
alias on_kwrestarg on_lvasgn
alias on_blockarg on_lvasgn
private
def message(style)
format(MSG, style: style)
end
end
end
end
end
|
5e8379bc2b57d3d87531fac0390ce42dc71514b7
|
.travis.yml
|
.travis.yml
|
language: node_js
before_install: sudo apt-get update && sudo apt-get install opencv
|
language: node_js
before_install:
- sudo apt-get update
- sudo apt-get install build-essential cmake pkg-config
- git clone --branch=master https://github.com/Itseez/opencv.git opencv
- mkdir opencv-build
- cd opencv-build/
- cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_OPENEXR=OFF ../opencv/
- make install
|
Update Travis CI script to build OpenCV from scratch
|
Update Travis CI script to build OpenCV from scratch
|
YAML
|
bsd-3-clause
|
BloodAxe/CloudCVBackend,BloodAxe/CloudCVBackend,BloodAxe/CloudCVBackend
|
yaml
|
## Code Before:
language: node_js
before_install: sudo apt-get update && sudo apt-get install opencv
## Instruction:
Update Travis CI script to build OpenCV from scratch
## Code After:
language: node_js
before_install:
- sudo apt-get update
- sudo apt-get install build-essential cmake pkg-config
- git clone --branch=master https://github.com/Itseez/opencv.git opencv
- mkdir opencv-build
- cd opencv-build/
- cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DWITH_OPENEXR=OFF ../opencv/
- make install
|
7c69c8cf6e7f313b592137f1535c03f2459cf4db
|
module/SyllabusBundle/Resources/views/syllabus/admin/group/edit.twig
|
module/SyllabusBundle/Resources/views/syllabus/admin/group/edit.twig
|
{% extends 'admin/base.twig' %}
{% block content %}
{% include 'syllabus/admin/group/partials/navigation.twig' %}
{% include 'admin/partials/flashMessenger.twig' %}
{% include 'syllabus/admin/group/partials/years.twig' %}
<div id="controller_action">
{% import 'admin/partials/form.twig' as forms %}
{{ forms.renderForm(form) }}
</div>
{% if hasAccess('syllabus_admin_group', 'studies') %}
<aside>
<div class="sidebox">
<div class="title">Manage Studies</div>
<div class="content">
<p>
<i>Please hit the link below to manage the studies of this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'studies', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Manage Studies</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% endblock %}
|
{% extends 'admin/base.twig' %}
{% block content %}
{% include 'syllabus/admin/group/partials/navigation.twig' %}
{% include 'admin/partials/flashMessenger.twig' %}
{% include 'syllabus/admin/group/partials/years.twig' %}
<div id="controller_action">
{% import 'admin/partials/form.twig' as forms %}
{{ forms.renderForm(form) }}
</div>
{% if hasAccess('syllabus_admin_group', 'studies') %}
<aside>
<div class="sidebox">
<div class="title">Manage Studies</div>
<div class="content">
<p>
<i>Please hit the link below to manage the studies of this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'studies', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Manage Studies</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% if hasAccess('syllabus_admin_group', 'export') %}
<aside>
<div class="sidebox">
<div class="title">Export academics</div>
<div class="content">
<p>
<i>Please hit the link below to export the academics in this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'export', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Export</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% endblock %}
|
Add link to export the academics in a group
|
[Syllabus] Add link to export the academics in a group
|
Twig
|
agpl-3.0
|
LitusProject/Litus,LitusProject/Litus,LitusProject/Litus,LitusProject/Litus,LitusProject/Litus
|
twig
|
## Code Before:
{% extends 'admin/base.twig' %}
{% block content %}
{% include 'syllabus/admin/group/partials/navigation.twig' %}
{% include 'admin/partials/flashMessenger.twig' %}
{% include 'syllabus/admin/group/partials/years.twig' %}
<div id="controller_action">
{% import 'admin/partials/form.twig' as forms %}
{{ forms.renderForm(form) }}
</div>
{% if hasAccess('syllabus_admin_group', 'studies') %}
<aside>
<div class="sidebox">
<div class="title">Manage Studies</div>
<div class="content">
<p>
<i>Please hit the link below to manage the studies of this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'studies', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Manage Studies</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% endblock %}
## Instruction:
[Syllabus] Add link to export the academics in a group
## Code After:
{% extends 'admin/base.twig' %}
{% block content %}
{% include 'syllabus/admin/group/partials/navigation.twig' %}
{% include 'admin/partials/flashMessenger.twig' %}
{% include 'syllabus/admin/group/partials/years.twig' %}
<div id="controller_action">
{% import 'admin/partials/form.twig' as forms %}
{{ forms.renderForm(form) }}
</div>
{% if hasAccess('syllabus_admin_group', 'studies') %}
<aside>
<div class="sidebox">
<div class="title">Manage Studies</div>
<div class="content">
<p>
<i>Please hit the link below to manage the studies of this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'studies', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Manage Studies</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% if hasAccess('syllabus_admin_group', 'export') %}
<aside>
<div class="sidebox">
<div class="title">Export academics</div>
<div class="content">
<p>
<i>Please hit the link below to export the academics in this group!</i>
</p>
<p>
<a href="{{ url('syllabus_admin_group', {'action': 'export', 'id': group.getId(), 'academicyear': currentAcademicYear.getCode()}) }}">→ Export</a>
</p>
</div>
</div>
</aside>
{% endif %}
{% endblock %}
|
cf0110f2b1adc8fbf4b8305841961d67da33f8c7
|
pybo/bayesopt/policies/thompson.py
|
pybo/bayesopt/policies/thompson.py
|
# future imports
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
# use this to simplify (slightly) the Thompson implementation with sampled
# models.
from collections import deque
# local imports
from ..utils import params
# exported symbols
__all__ = ['Thompson']
@params('n')
def Thompson(model, n=100):
"""
Implementation of Thompson sampling for continuous models using a finite
approximation to the kernel matrix with `n` Fourier components.
"""
if hasattr(model, '__iter__'):
model = deque(model, maxlen=1).pop()
return model.sample_fourier(n).get
|
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from collections import deque
from ..utils import params
__all__ = ['Thompson']
@params('n')
def Thompson(model, n=100, rng=None):
"""
Implementation of Thompson sampling for continuous models using a finite
approximation to the kernel matrix with `n` Fourier components.
"""
if hasattr(model, '__iter__'):
model = deque(model, maxlen=1).pop()
return model.sample_fourier(n, rng).get
|
Fix Thompson to pay attention to the RNG.
|
Fix Thompson to pay attention to the RNG.
|
Python
|
bsd-2-clause
|
mwhoffman/pybo,jhartford/pybo
|
python
|
## Code Before:
# future imports
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
# use this to simplify (slightly) the Thompson implementation with sampled
# models.
from collections import deque
# local imports
from ..utils import params
# exported symbols
__all__ = ['Thompson']
@params('n')
def Thompson(model, n=100):
"""
Implementation of Thompson sampling for continuous models using a finite
approximation to the kernel matrix with `n` Fourier components.
"""
if hasattr(model, '__iter__'):
model = deque(model, maxlen=1).pop()
return model.sample_fourier(n).get
## Instruction:
Fix Thompson to pay attention to the RNG.
## Code After:
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from collections import deque
from ..utils import params
__all__ = ['Thompson']
@params('n')
def Thompson(model, n=100, rng=None):
"""
Implementation of Thompson sampling for continuous models using a finite
approximation to the kernel matrix with `n` Fourier components.
"""
if hasattr(model, '__iter__'):
model = deque(model, maxlen=1).pop()
return model.sample_fourier(n, rng).get
|
7ab1e321a92bdb87b4295f8910cc056ad9e40acd
|
.travis.yml
|
.travis.yml
|
addons:
code_climate:
repo_token: 8a344833c6693733b163f09a5243fa12dd7be0b69f0358b146c64dd4becabc60
bundler_args: --clean --jobs=3 --retry=3
cache: bundler
gemfile:
- gemfiles/Gemfile.rails-3.2.x
- gemfiles/Gemfile.rails-4.0.x
- Gemfile
- gemfiles/Gemfile.rails-4.2.x
language: ruby
matrix:
exclude:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: 2.2
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: ruby-head
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- ruby-head
- rbx-2
- jruby-19mode
sudo: false
|
addons:
code_climate:
repo_token: 8a344833c6693733b163f09a5243fa12dd7be0b69f0358b146c64dd4becabc60
bundler_args: --clean --jobs=3 --retry=3
cache: bundler
gemfile:
- gemfiles/Gemfile.rails-3.2.x
- gemfiles/Gemfile.rails-4.0.x
- Gemfile
- gemfiles/Gemfile.rails-4.2.x
language: ruby
matrix:
exclude:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: 2.2
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: ruby-head
include:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: jruby-19mode
jdk: openjdk7
- gemfile: gemfiles/Gemfile.rails-4.0.x
rvm: jruby-19mode
jdk: openjdk7
- gemfile: Gemfile
rvm: jruby-19mode
jdk: openjdk7
- gemfile: gemfiles/Gemfile.rails-4.2.x
rvm: jruby-19mode
jdk: openjdk7
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- ruby-head
- rbx-2
sudo: false
|
Use Free Software Java runtime (OpenJDK 7) for CI builds
|
Use Free Software Java runtime (OpenJDK 7) for CI builds
|
YAML
|
mit
|
activescaffold/active_scaffold,mallikarjunayaddala/active_scaffold,AlbertoBarrago/active_scaffold,activescaffold/active_scaffold,activescaffold/active_scaffold,budree/active_scaffold,budree/active_scaffold,mallikarjunayaddala/active_scaffold,AlbertoBarrago/active_scaffold,budree/active_scaffold,AlbertoBarrago/active_scaffold,mallikarjunayaddala/active_scaffold
|
yaml
|
## Code Before:
addons:
code_climate:
repo_token: 8a344833c6693733b163f09a5243fa12dd7be0b69f0358b146c64dd4becabc60
bundler_args: --clean --jobs=3 --retry=3
cache: bundler
gemfile:
- gemfiles/Gemfile.rails-3.2.x
- gemfiles/Gemfile.rails-4.0.x
- Gemfile
- gemfiles/Gemfile.rails-4.2.x
language: ruby
matrix:
exclude:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: 2.2
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: ruby-head
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- ruby-head
- rbx-2
- jruby-19mode
sudo: false
## Instruction:
Use Free Software Java runtime (OpenJDK 7) for CI builds
## Code After:
addons:
code_climate:
repo_token: 8a344833c6693733b163f09a5243fa12dd7be0b69f0358b146c64dd4becabc60
bundler_args: --clean --jobs=3 --retry=3
cache: bundler
gemfile:
- gemfiles/Gemfile.rails-3.2.x
- gemfiles/Gemfile.rails-4.0.x
- Gemfile
- gemfiles/Gemfile.rails-4.2.x
language: ruby
matrix:
exclude:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: 2.2
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: ruby-head
include:
- gemfile: gemfiles/Gemfile.rails-3.2.x
rvm: jruby-19mode
jdk: openjdk7
- gemfile: gemfiles/Gemfile.rails-4.0.x
rvm: jruby-19mode
jdk: openjdk7
- gemfile: Gemfile
rvm: jruby-19mode
jdk: openjdk7
- gemfile: gemfiles/Gemfile.rails-4.2.x
rvm: jruby-19mode
jdk: openjdk7
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- ruby-head
- rbx-2
sudo: false
|
7cc9d8399c986483f559e532fce3e6dcb22cd23b
|
app/assets/stylesheets/shared/editions.scss
|
app/assets/stylesheets/shared/editions.scss
|
@import "utils";
.document_view {
border: 1px solid #ddd;
border-bottom: 3px solid #ccc;
background: #fcfcfc;
padding: 3em 10% 1em 10%;
margin-bottom: 2em;
.title {
@include type-36;
}
.body {
p {
@include type-14;
}
}
.written_by {
font-style: italic;
.author {
font-style: normal;
font-weight: bold;
}
}
}
|
@import "utils";
.document_view {
border: 1px solid #ddd;
border-bottom: 3px solid #ccc;
background: #fcfcfc;
padding: 3em 10% 1em 10%;
margin-bottom: 2em;
.title {
@include type-36;
}
.body {
p, ul, ol {
@include type-14;
}
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul, ol {
margin-left: 30px;
ul, ol {
font-size: 100%;
margin-top: #{$baseline_in_px / 14}em;
}
}
}
.written_by {
font-style: italic;
.author {
font-style: normal;
font-weight: bold;
}
}
}
|
Tidy list styling in document pages.
|
Tidy list styling in document pages.
* Unordered and Ordered lists previously had different font sizes to body text.
* Neither Unordered or Ordered lists had bullet icons.
* Lists had no margins, so bullet icons hung outside the body.
* Sublists were a different font-size from outer lists.
|
SCSS
|
mit
|
askl56/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,robinwhittleton/whitehall,askl56/whitehall,ggoral/whitehall,askl56/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,alphagov/whitehall,hotvulcan/whitehall,alphagov/whitehall,askl56/whitehall,alphagov/whitehall,ggoral/whitehall,hotvulcan/whitehall,robinwhittleton/whitehall
|
scss
|
## Code Before:
@import "utils";
.document_view {
border: 1px solid #ddd;
border-bottom: 3px solid #ccc;
background: #fcfcfc;
padding: 3em 10% 1em 10%;
margin-bottom: 2em;
.title {
@include type-36;
}
.body {
p {
@include type-14;
}
}
.written_by {
font-style: italic;
.author {
font-style: normal;
font-weight: bold;
}
}
}
## Instruction:
Tidy list styling in document pages.
* Unordered and Ordered lists previously had different font sizes to body text.
* Neither Unordered or Ordered lists had bullet icons.
* Lists had no margins, so bullet icons hung outside the body.
* Sublists were a different font-size from outer lists.
## Code After:
@import "utils";
.document_view {
border: 1px solid #ddd;
border-bottom: 3px solid #ccc;
background: #fcfcfc;
padding: 3em 10% 1em 10%;
margin-bottom: 2em;
.title {
@include type-36;
}
.body {
p, ul, ol {
@include type-14;
}
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul, ol {
margin-left: 30px;
ul, ol {
font-size: 100%;
margin-top: #{$baseline_in_px / 14}em;
}
}
}
.written_by {
font-style: italic;
.author {
font-style: normal;
font-weight: bold;
}
}
}
|
af3f6ad8adec09a035ed0c37db597bb10c45bcc4
|
modules/ve-graph/widgets/ve.ui.RowWidget.css
|
modules/ve-graph/widgets/ve.ui.RowWidget.css
|
.ve-ui-rowWidget {
clear: left;
float: left;
margin-bottom: -1px;
width: 100%;
}
.ve-ui-rowWidget-label {
display: block;
margin-right: 5%;
padding-top: 0.5em;
width: 35%;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-label {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget {
float: left;
margin-right: -1px;
width: 8em;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-delete-button > .oo-ui-buttonElement-button {
margin: 0;
}
.ve-ui-rowWidget.ve-ui-rowWidget-insertionRow {
background-color: red;
}
|
.ve-ui-rowWidget {
clear: left;
float: left;
margin-bottom: -1px;
width: 100%;
}
.ve-ui-rowWidget-label {
display: block;
margin-right: 5%;
padding-top: 0.5em;
width: 35%;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-label {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget {
float: left;
margin-right: -1px;
width: 8em;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget > input,
.ve-ui-rowWidget > .ve-ui-rowWidget-delete-button > .oo-ui-buttonElement-button {
margin: 0;
border-radius: 0;
}
|
Remove border-radii from TableWidget elements
|
VisualEditor: Remove border-radii from TableWidget elements
Change-Id: I6806d130832ad265d2531d3d26cfa1b4678fe18c
|
CSS
|
mit
|
wikimedia/mediawiki-extensions-Graph,wikimedia/mediawiki-extensions-Graph
|
css
|
## Code Before:
.ve-ui-rowWidget {
clear: left;
float: left;
margin-bottom: -1px;
width: 100%;
}
.ve-ui-rowWidget-label {
display: block;
margin-right: 5%;
padding-top: 0.5em;
width: 35%;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-label {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget {
float: left;
margin-right: -1px;
width: 8em;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-delete-button > .oo-ui-buttonElement-button {
margin: 0;
}
.ve-ui-rowWidget.ve-ui-rowWidget-insertionRow {
background-color: red;
}
## Instruction:
VisualEditor: Remove border-radii from TableWidget elements
Change-Id: I6806d130832ad265d2531d3d26cfa1b4678fe18c
## Code After:
.ve-ui-rowWidget {
clear: left;
float: left;
margin-bottom: -1px;
width: 100%;
}
.ve-ui-rowWidget-label {
display: block;
margin-right: 5%;
padding-top: 0.5em;
width: 35%;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-label {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells {
float: left;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget {
float: left;
margin-right: -1px;
width: 8em;
}
.ve-ui-rowWidget > .ve-ui-rowWidget-cells > .oo-ui-inputWidget > input,
.ve-ui-rowWidget > .ve-ui-rowWidget-delete-button > .oo-ui-buttonElement-button {
margin: 0;
border-radius: 0;
}
|
f6bae2d2a21950aed4613d235d0067d4f14bf4f0
|
packages/on/Only.yaml
|
packages/on/Only.yaml
|
homepage: ''
changelog-type: ''
hash: 16c0b86c66fc6c44b7309c44a2074ff68598ad685f448decd9fb1cd2147885a7
test-bench-deps: {}
maintainer: [email protected]
synopsis: The 1-tuple type or single-value "collection"
changelog: ''
basic-deps:
base: ! '>=4.5 && <5'
deepseq: ! '>=1.1 && <1.5'
all-versions:
- '0.1'
author: Herbert Valerio Riedel
latest: '0.1'
description-type: haddock
description: This package provides the canonical anonymous 1-tuple type missing from
Haskell for attaching typeclass instances.
license-name: BSD3
|
homepage: ''
changelog-type: ''
hash: f92f5da97e647451f1ee7f5bf44914fb75062d08ccd3f36b2000d649c63d13aa
test-bench-deps: {}
maintainer: [email protected]
synopsis: The 1-tuple type or single-value "collection"
changelog: ''
basic-deps:
base: ! '>=4.5 && <5'
deepseq: ! '>=1.1 && <1.5'
all-versions:
- '0.1'
author: Herbert Valerio Riedel
latest: '0.1'
description-type: haddock
description: This package provides the canonical anonymous 1-tuple type missing from
Haskell for attaching typeclass instances.
license-name: BSD3
|
Update from Hackage at 2017-06-19T09:10:14Z
|
Update from Hackage at 2017-06-19T09:10:14Z
|
YAML
|
mit
|
commercialhaskell/all-cabal-metadata
|
yaml
|
## Code Before:
homepage: ''
changelog-type: ''
hash: 16c0b86c66fc6c44b7309c44a2074ff68598ad685f448decd9fb1cd2147885a7
test-bench-deps: {}
maintainer: [email protected]
synopsis: The 1-tuple type or single-value "collection"
changelog: ''
basic-deps:
base: ! '>=4.5 && <5'
deepseq: ! '>=1.1 && <1.5'
all-versions:
- '0.1'
author: Herbert Valerio Riedel
latest: '0.1'
description-type: haddock
description: This package provides the canonical anonymous 1-tuple type missing from
Haskell for attaching typeclass instances.
license-name: BSD3
## Instruction:
Update from Hackage at 2017-06-19T09:10:14Z
## Code After:
homepage: ''
changelog-type: ''
hash: f92f5da97e647451f1ee7f5bf44914fb75062d08ccd3f36b2000d649c63d13aa
test-bench-deps: {}
maintainer: [email protected]
synopsis: The 1-tuple type or single-value "collection"
changelog: ''
basic-deps:
base: ! '>=4.5 && <5'
deepseq: ! '>=1.1 && <1.5'
all-versions:
- '0.1'
author: Herbert Valerio Riedel
latest: '0.1'
description-type: haddock
description: This package provides the canonical anonymous 1-tuple type missing from
Haskell for attaching typeclass instances.
license-name: BSD3
|
4172bd815c87a239d0d57201ddd01392e2a6dfeb
|
lib/subcommand.js
|
lib/subcommand.js
|
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
|
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
/**
* Creates a new `Subcommand` instance.
* @param {string} name The name of the subcommand.
* @param {module:command.CommandBase} cmd The command associated to the name.
*/
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
|
Fix doc comment for CommandGroup and add one for the Subcommand constructor
|
Fix doc comment for CommandGroup and add one for the Subcommand constructor
|
JavaScript
|
mit
|
susisu/Optics
|
javascript
|
## Code Before:
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
## Instruction:
Fix doc comment for CommandGroup and add one for the Subcommand constructor
## Code After:
/*
* Optics / subcommand.js
* copyright (c) 2016 Susisu
*/
/**
* @module subcommand
*/
"use strict";
function endModule() {
module.exports = Object.freeze({
Subcommand,
CommandGroup
});
}
const command = require("./command.js");
/**
* The `Subcommand` associates a name with a command.
* @static
*/
class Subcommand {
/**
* Creates a new `Subcommand` instance.
* @param {string} name The name of the subcommand.
* @param {module:command.CommandBase} cmd The command associated to the name.
*/
constructor(name, cmd) {
this.name = name;
this.cmd = cmd;
}
}
/**
* A `CommandGroup` instance represents a group of subcommands.
* @static
* @extends {module:command.CommandBase}
*/
class CommandGroup extends command.CommandBase {
/**
* Creates a new `CommandGroup` instance.
* @param {string} desc The description of the command group.
* @param {module:subcommand.Subcommand[]} subcmds Subcommands the group contains.
* @param {(module:command.CommandBase | null)} defaultCmd Default command, invoked when no subcommand is specified.
*/
constructor(desc, subcmds, defaultCmd) {
super();
this.desc = desc;
this.subcmds = subcmds;
this.defaultCmd = defaultCmd;
}
}
endModule();
|
16e49995e030400ef18bcc1c7b48d3b64b5f81d7
|
runtime/src/main/resources/application.yml
|
runtime/src/main/resources/application.yml
|
deployment:
file: com/redhat/ipaas/dao/deployment.json
resteasy:
jaxrs:
app:
registration: property
classes: com.redhat.ipaas.rest.v1.V1Application
cors:
allowedOrigins: "*"
cache:
cluster:
name: IPaaSCluster
max:
entries: 100
spring:
zipkin:
enabled: false
datasource:
url: jdbc:postgresql://localhost:26257/ipaas?sslmode=disable
username: root
password:
driver-class-name: org.postgresql.Driver
security:
basic:
enabled: false
management:
port: 8181
health:
db:
enabled: false
security:
enabled: true
endpoints:
health:
sensitive: false
jsondb:
enabled: true
dao:
kind: jsondb
|
deployment:
file: com/redhat/ipaas/dao/deployment.json
resteasy:
jaxrs:
app:
registration: property
classes: com.redhat.ipaas.rest.v1.V1Application
cors:
allowedOrigins: "*"
cache:
cluster:
name: IPaaSCluster
max:
entries: 100
spring:
zipkin:
enabled: false
datasource:
url: jdbc:postgresql://localhost:5432/ipaas?sslmode=disable
username: postgres
password: password
driver-class-name: org.postgresql.Driver
security:
basic:
enabled: false
management:
port: 8181
health:
db:
enabled: false
security:
enabled: true
endpoints:
health:
sensitive: false
jsondb:
enabled: true
dao:
kind: jsondb
|
Use more common port for postgres
|
Use more common port for postgres
|
YAML
|
apache-2.0
|
redhat-ipaas/ipaas-api-java,rhuss/ipaas-rest,redhat-ipaas/ipaas-rest,redhat-ipaas/ipaas-rest,KurtStam/syndesis-rest,KurtStam/syndesis-rest,redhat-ipaas/ipaas-rest,chirino/ipaas-rest,KurtStam/ipaas-rest,chirino/ipaas-rest,rhuss/ipaas-rest,rhuss/ipaas-rest,KurtStam/ipaas-rest,KurtStam/ipaas-rest,KurtStam/syndesis-rest,chirino/ipaas-rest,redhat-ipaas/ipaas-api-java
|
yaml
|
## Code Before:
deployment:
file: com/redhat/ipaas/dao/deployment.json
resteasy:
jaxrs:
app:
registration: property
classes: com.redhat.ipaas.rest.v1.V1Application
cors:
allowedOrigins: "*"
cache:
cluster:
name: IPaaSCluster
max:
entries: 100
spring:
zipkin:
enabled: false
datasource:
url: jdbc:postgresql://localhost:26257/ipaas?sslmode=disable
username: root
password:
driver-class-name: org.postgresql.Driver
security:
basic:
enabled: false
management:
port: 8181
health:
db:
enabled: false
security:
enabled: true
endpoints:
health:
sensitive: false
jsondb:
enabled: true
dao:
kind: jsondb
## Instruction:
Use more common port for postgres
## Code After:
deployment:
file: com/redhat/ipaas/dao/deployment.json
resteasy:
jaxrs:
app:
registration: property
classes: com.redhat.ipaas.rest.v1.V1Application
cors:
allowedOrigins: "*"
cache:
cluster:
name: IPaaSCluster
max:
entries: 100
spring:
zipkin:
enabled: false
datasource:
url: jdbc:postgresql://localhost:5432/ipaas?sslmode=disable
username: postgres
password: password
driver-class-name: org.postgresql.Driver
security:
basic:
enabled: false
management:
port: 8181
health:
db:
enabled: false
security:
enabled: true
endpoints:
health:
sensitive: false
jsondb:
enabled: true
dao:
kind: jsondb
|
63d6b865d2822ea2195fe85ddc818d0d96475d48
|
docs/examples/CustomIndicatorsContainer.tsx
|
docs/examples/CustomIndicatorsContainer.tsx
|
// @flow
import React from 'react';
import Select, { components } from 'react-select';
import { colourOptions } from '../data';
const IndicatorsContainer = props => {
return (
<div style={{ background: colourOptions[2].color }}>
<components.IndicatorsContainer {...props} />
</div>
);
};
export default () => (
<Select
closeMenuOnSelect={false}
components={{ IndicatorsContainer }}
defaultValue={[colourOptions[4], colourOptions[5]]}
isMulti
options={colourOptions}
/>
);
|
import React from 'react';
import Select, { components, IndicatorContainerProps } from 'react-select';
import { ColourOption, colourOptions } from '../data';
const IndicatorsContainer = (
props: IndicatorContainerProps<ColourOption, true>
) => {
return (
<div style={{ background: colourOptions[2].color }}>
<components.IndicatorsContainer {...props} />
</div>
);
};
export default () => (
<Select
closeMenuOnSelect={false}
components={{ IndicatorsContainer }}
defaultValue={[colourOptions[4], colourOptions[5]]}
isMulti
options={colourOptions}
/>
);
|
Convert more examples to TypeScript
|
Convert more examples to TypeScript
|
TypeScript
|
mit
|
JedWatson/react-select,JedWatson/react-select
|
typescript
|
## Code Before:
// @flow
import React from 'react';
import Select, { components } from 'react-select';
import { colourOptions } from '../data';
const IndicatorsContainer = props => {
return (
<div style={{ background: colourOptions[2].color }}>
<components.IndicatorsContainer {...props} />
</div>
);
};
export default () => (
<Select
closeMenuOnSelect={false}
components={{ IndicatorsContainer }}
defaultValue={[colourOptions[4], colourOptions[5]]}
isMulti
options={colourOptions}
/>
);
## Instruction:
Convert more examples to TypeScript
## Code After:
import React from 'react';
import Select, { components, IndicatorContainerProps } from 'react-select';
import { ColourOption, colourOptions } from '../data';
const IndicatorsContainer = (
props: IndicatorContainerProps<ColourOption, true>
) => {
return (
<div style={{ background: colourOptions[2].color }}>
<components.IndicatorsContainer {...props} />
</div>
);
};
export default () => (
<Select
closeMenuOnSelect={false}
components={{ IndicatorsContainer }}
defaultValue={[colourOptions[4], colourOptions[5]]}
isMulti
options={colourOptions}
/>
);
|
5a361d0cf97cb4a37253e3bdcac328c9923e7788
|
app/assets/stylesheets/govuk-component/_taxonomy-sidebar.scss
|
app/assets/stylesheets/govuk-component/_taxonomy-sidebar.scss
|
.govuk-taxonomy-sidebar {
border-top: 10px solid $mainstream-brand;
padding-bottom: $gutter * 2;
@include core-16;
.sidebar-taxon {
padding-top: 1.25em;
h2 {
@include bold-24;
margin: 0 0 5px;
}
.taxon-description {
font-size: 16px;
margin: 0;
}
.related-content {
margin: 0 0 0 15px;
padding: 0;
list-style-type: none;
line-height: 1.5;
a:before {
content: "•";
display: inline-block;
width: 15px;
margin-left: -15px;
}
}
}
}
|
.govuk-taxonomy-sidebar {
border-top: 10px solid $mainstream-brand;
padding-bottom: $gutter * 2;
@include core-16;
.sidebar-taxon {
padding-top: 1.25em;
h2 {
@include bold-24;
margin: 0 0 5px;
}
.taxon-description {
font-size: 16px;
margin: 0;
}
.related-content {
margin: 0 0 0 15px;
padding: 0;
list-style-type: none;
line-height: 1.5;
a {
display: block;
&:before {
content: "•";
display: inline-block;
width: 15px;
margin-left: -15px;
}
}
}
}
}
|
Fix gap in sidebar links
|
Fix gap in sidebar links
There was a gap between multiline links in the sidebar that you couldn't click. `display: block` makes these links wrap the entire li element
Trello card: https://trello.com/c/xshqCdju/33-it-s-possible-to-click-in-the-middle-of-related-links-and-not-go-anywhere
|
SCSS
|
mit
|
alphagov/static,alphagov/static,alphagov/static
|
scss
|
## Code Before:
.govuk-taxonomy-sidebar {
border-top: 10px solid $mainstream-brand;
padding-bottom: $gutter * 2;
@include core-16;
.sidebar-taxon {
padding-top: 1.25em;
h2 {
@include bold-24;
margin: 0 0 5px;
}
.taxon-description {
font-size: 16px;
margin: 0;
}
.related-content {
margin: 0 0 0 15px;
padding: 0;
list-style-type: none;
line-height: 1.5;
a:before {
content: "•";
display: inline-block;
width: 15px;
margin-left: -15px;
}
}
}
}
## Instruction:
Fix gap in sidebar links
There was a gap between multiline links in the sidebar that you couldn't click. `display: block` makes these links wrap the entire li element
Trello card: https://trello.com/c/xshqCdju/33-it-s-possible-to-click-in-the-middle-of-related-links-and-not-go-anywhere
## Code After:
.govuk-taxonomy-sidebar {
border-top: 10px solid $mainstream-brand;
padding-bottom: $gutter * 2;
@include core-16;
.sidebar-taxon {
padding-top: 1.25em;
h2 {
@include bold-24;
margin: 0 0 5px;
}
.taxon-description {
font-size: 16px;
margin: 0;
}
.related-content {
margin: 0 0 0 15px;
padding: 0;
list-style-type: none;
line-height: 1.5;
a {
display: block;
&:before {
content: "•";
display: inline-block;
width: 15px;
margin-left: -15px;
}
}
}
}
}
|
a2eae87fc76ba1e9fbfa8102c3e19c239445a62a
|
nazs/web/forms.py
|
nazs/web/forms.py
|
from achilles.forms import * # noqa
from nazs.models import SingletonModel
# Override forms template
Form.template_name = 'web/form.html'
class ModelForm(ModelForm):
def get_form(self, form_data=None, *args, **kwargs):
# manage SingletonModels
if issubclass(self.form_class.Meta.model, SingletonModel):
instance = self.form_class.Meta.model.get()
return self.form_class(form_data, instance=instance)
else:
return super(ModelForm, self).get_form(*args, **kwargs)
|
from achilles.forms import * # noqa
from nazs.models import SingletonModel
# Override forms template
Form.template_name = 'web/form.html'
class ModelForm(ModelForm):
def get_form(self, form_data=None, *args, **kwargs):
# manage SingletonModels
if issubclass(self.form_class.Meta.model, SingletonModel):
instance = self.form_class.Meta.model.get()
return self.form_class(form_data, instance=instance)
else:
return super(ModelForm, self).get_form(form_data, *args, **kwargs)
|
Fix form retrieval in ModelForm
|
Fix form retrieval in ModelForm
|
Python
|
agpl-3.0
|
exekias/droplet,exekias/droplet,exekias/droplet
|
python
|
## Code Before:
from achilles.forms import * # noqa
from nazs.models import SingletonModel
# Override forms template
Form.template_name = 'web/form.html'
class ModelForm(ModelForm):
def get_form(self, form_data=None, *args, **kwargs):
# manage SingletonModels
if issubclass(self.form_class.Meta.model, SingletonModel):
instance = self.form_class.Meta.model.get()
return self.form_class(form_data, instance=instance)
else:
return super(ModelForm, self).get_form(*args, **kwargs)
## Instruction:
Fix form retrieval in ModelForm
## Code After:
from achilles.forms import * # noqa
from nazs.models import SingletonModel
# Override forms template
Form.template_name = 'web/form.html'
class ModelForm(ModelForm):
def get_form(self, form_data=None, *args, **kwargs):
# manage SingletonModels
if issubclass(self.form_class.Meta.model, SingletonModel):
instance = self.form_class.Meta.model.get()
return self.form_class(form_data, instance=instance)
else:
return super(ModelForm, self).get_form(form_data, *args, **kwargs)
|
e8d443c894218a235dfc34d61096344ab3dabc66
|
examples/warehouse/domain/example.com/dns.yaml
|
examples/warehouse/domain/example.com/dns.yaml
|
net:
dns:
mx:
-
priority: 10
server: mail.example.com
-
priority: 20
server: mail2.example.com
ns:
- 192.168.0.1
- 192.168.0.2
|
net:
dns:
mx:
-
priority: 10
server: mail.example.com
-
priority: 20
server: mail2.example.com
ns:
- 192.168.0.1
- 192.168.0.2
soa-ns: ns1.example.com
soa-contact: [email protected]
|
Add missing DNS records to example warehouse
|
Add missing DNS records to example warehouse
A DNS zone requires a SOA name server and contact to work. Add those to the
example warehouse.
|
YAML
|
mit
|
saab-simc-admin/palletjack,creideiki/palletjack,saab-simc-admin/palletjack,creideiki/palletjack,notCalle/palletjack,notCalle/palletjack
|
yaml
|
## Code Before:
net:
dns:
mx:
-
priority: 10
server: mail.example.com
-
priority: 20
server: mail2.example.com
ns:
- 192.168.0.1
- 192.168.0.2
## Instruction:
Add missing DNS records to example warehouse
A DNS zone requires a SOA name server and contact to work. Add those to the
example warehouse.
## Code After:
net:
dns:
mx:
-
priority: 10
server: mail.example.com
-
priority: 20
server: mail2.example.com
ns:
- 192.168.0.1
- 192.168.0.2
soa-ns: ns1.example.com
soa-contact: [email protected]
|
9eb6cc073106cd6809b69ec61cf11b5fea34100b
|
opennms-tomcat/pom.xml
|
opennms-tomcat/pom.xml
|
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>opennms</artifactId>
<groupId>org.opennms</groupId>
<version>1.3.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>opennms-tomcat</artifactId>
<name>OpenNMS Tomcat 5.0 Integration </name>
<dependencies>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-util</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-services</artifactId>
</dependency>
<dependency>
<groupId>castor</groupId>
<artifactId>castor</artifactId>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
|
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>opennms</artifactId>
<groupId>org.opennms</groupId>
<version>1.3.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>opennms-tomcat</artifactId>
<name>OpenNMS Tomcat 5.0 Integration </name>
<dependencies>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config-utils</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-services</artifactId>
</dependency>
<dependency>
<groupId>castor</groupId>
<artifactId>castor</artifactId>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
|
Clean up dependencies a bit... it doesn't matter much since opennms-services includes the world
|
Clean up dependencies a bit... it doesn't matter much since opennms-services includes the world
|
XML
|
agpl-3.0
|
tdefilip/opennms,roskens/opennms-pre-github,rdkgit/opennms,aihua/opennms,tdefilip/opennms,aihua/opennms,roskens/opennms-pre-github,tdefilip/opennms,tdefilip/opennms,tdefilip/opennms,rdkgit/opennms,rdkgit/opennms,roskens/opennms-pre-github,aihua/opennms,tdefilip/opennms,rdkgit/opennms,aihua/opennms,aihua/opennms,aihua/opennms,rdkgit/opennms,rdkgit/opennms,roskens/opennms-pre-github,rdkgit/opennms,tdefilip/opennms,rdkgit/opennms,roskens/opennms-pre-github,rdkgit/opennms,rdkgit/opennms,roskens/opennms-pre-github,aihua/opennms,aihua/opennms,roskens/opennms-pre-github,roskens/opennms-pre-github,roskens/opennms-pre-github,tdefilip/opennms,roskens/opennms-pre-github,aihua/opennms,tdefilip/opennms,roskens/opennms-pre-github
|
xml
|
## Code Before:
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>opennms</artifactId>
<groupId>org.opennms</groupId>
<version>1.3.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>opennms-tomcat</artifactId>
<name>OpenNMS Tomcat 5.0 Integration </name>
<dependencies>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-util</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-services</artifactId>
</dependency>
<dependency>
<groupId>castor</groupId>
<artifactId>castor</artifactId>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
## Instruction:
Clean up dependencies a bit... it doesn't matter much since opennms-services includes the world
## Code After:
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>opennms</artifactId>
<groupId>org.opennms</groupId>
<version>1.3.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>opennms-tomcat</artifactId>
<name>OpenNMS Tomcat 5.0 Integration </name>
<dependencies>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-config-utils</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-services</artifactId>
</dependency>
<dependency>
<groupId>castor</groupId>
<artifactId>castor</artifactId>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>catalina</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
|
9e9b04e2181a64052d0d07e44fb19bb39729dd00
|
.travis.yml
|
.travis.yml
|
language: bash
services: docker
env:
- VERSION=3.7-rc VARIANT=debian
- VERSION=3.7-rc VARIANT=alpine
- VERSION=3.7 VARIANT=debian
- VERSION=3.7 VARIANT=alpine
- VERSION=3.7 VARIANT=ubuntu
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VERSION/$VARIANT"
- image="$(awk 'toupper($1) == "FROM" { print $2; exit }' management/Dockerfile)"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
~/official-images/test/run.sh "$image"
docker build -t "${image}-management" management
~/official-images/test/run.sh "${image}-management"
)
after_script:
- docker images
# vim:set et ts=2 sw=2:
|
language: bash
services: docker
env:
- VERSION=3.7-rc VARIANT=alpine
- VERSION=3.7 VARIANT=alpine
- VERSION=3.7 VARIANT=ubuntu
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VERSION/$VARIANT"
- image="$(awk 'toupper($1) == "FROM" { print $2; exit }' management/Dockerfile)"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
~/official-images/test/run.sh "$image"
docker build -t "${image}-management" management
~/official-images/test/run.sh "${image}-management"
)
after_script:
- docker images
# vim:set et ts=2 sw=2:
|
Remove 3.7 Debian builds from Travis
|
Remove 3.7 Debian builds from Travis
Keep forgetting about this file...
|
YAML
|
mit
|
docker-library/rabbitmq,infosiftr/rabbitmq
|
yaml
|
## Code Before:
language: bash
services: docker
env:
- VERSION=3.7-rc VARIANT=debian
- VERSION=3.7-rc VARIANT=alpine
- VERSION=3.7 VARIANT=debian
- VERSION=3.7 VARIANT=alpine
- VERSION=3.7 VARIANT=ubuntu
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VERSION/$VARIANT"
- image="$(awk 'toupper($1) == "FROM" { print $2; exit }' management/Dockerfile)"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
~/official-images/test/run.sh "$image"
docker build -t "${image}-management" management
~/official-images/test/run.sh "${image}-management"
)
after_script:
- docker images
# vim:set et ts=2 sw=2:
## Instruction:
Remove 3.7 Debian builds from Travis
Keep forgetting about this file...
## Code After:
language: bash
services: docker
env:
- VERSION=3.7-rc VARIANT=alpine
- VERSION=3.7 VARIANT=alpine
- VERSION=3.7 VARIANT=ubuntu
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- cd "$VERSION/$VARIANT"
- image="$(awk 'toupper($1) == "FROM" { print $2; exit }' management/Dockerfile)"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$image" .
~/official-images/test/run.sh "$image"
docker build -t "${image}-management" management
~/official-images/test/run.sh "${image}-management"
)
after_script:
- docker images
# vim:set et ts=2 sw=2:
|
9824d7fe230c67c8c73149cf9115b4e583fe32b2
|
app/api/openWeatherMap.jsx
|
app/api/openWeatherMap.jsx
|
var axios = require('axios');
const OPEN_WEATHER_MAP_URL = `http://api.openweathermap.org/data/2.5/weather?appid=${API_KEY}&units=imperial`;
module.exports = {
getCurrentWeather: function (location) {
var encodedLocation = encodeURIComponent(location);
var requestUrl = `${OPEN_WEATHER_MAP_URL}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
if (res.data.cod && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
}
};
|
const axios = require('axios');
const OPEN_WEATHER_MAP_URL = 'http://api.openweathermap.org/data/2.5/';
const DEFAULT_UNIT = 'imperial';
module.exports = {
getCurrentWeather: function (location) {
const encodedLocation = encodeURIComponent(location);
const requestUrl = `${OPEN_WEATHER_MAP_URL}weather?appid=${API_KEY}&units=${DEFAULT_UNIT}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
if (res.data.cod && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
},
get5DayForecast: function (location) {
const encodedLocation = encodeURIComponent(location);
const requestUrl = `${OPEN_WEATHER_MAP_URL}forecast?appid=${API_KEY}&units=${DEFAULT_UNIT}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
const apiDataHasError = res.data.cod !== '200';
if (apiDataHasError && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
}
};
|
Add method to call OpenWeatherMap API's 5-day forecast
|
Add method to call OpenWeatherMap API's 5-day forecast
|
JSX
|
mit
|
bmorelli25/React-Weather-App,bmorelli25/React-Weather-App
|
jsx
|
## Code Before:
var axios = require('axios');
const OPEN_WEATHER_MAP_URL = `http://api.openweathermap.org/data/2.5/weather?appid=${API_KEY}&units=imperial`;
module.exports = {
getCurrentWeather: function (location) {
var encodedLocation = encodeURIComponent(location);
var requestUrl = `${OPEN_WEATHER_MAP_URL}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
if (res.data.cod && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
}
};
## Instruction:
Add method to call OpenWeatherMap API's 5-day forecast
## Code After:
const axios = require('axios');
const OPEN_WEATHER_MAP_URL = 'http://api.openweathermap.org/data/2.5/';
const DEFAULT_UNIT = 'imperial';
module.exports = {
getCurrentWeather: function (location) {
const encodedLocation = encodeURIComponent(location);
const requestUrl = `${OPEN_WEATHER_MAP_URL}weather?appid=${API_KEY}&units=${DEFAULT_UNIT}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
if (res.data.cod && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
},
get5DayForecast: function (location) {
const encodedLocation = encodeURIComponent(location);
const requestUrl = `${OPEN_WEATHER_MAP_URL}forecast?appid=${API_KEY}&units=${DEFAULT_UNIT}&q=${encodedLocation}`;
return axios.get(requestUrl).then(function (res) {
const apiDataHasError = res.data.cod !== '200';
if (apiDataHasError && res.data.message) { //if true, something went wrong
throw new Error(res.data.message); //send to error handler in Weather.jsx
} else {
return res.data; //send to success case in Weather.jsx
}
}, function (res) {
throw new Error(res.data.message); //if api sends an error, we pull then show to user
});
}
};
|
ba406425bf3bd1b22bf41631df05fe47ae723062
|
app/Mail/OrganizerRecap.php
|
app/Mail/OrganizerRecap.php
|
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class OrganizerRecap extends Mailable
{
use Queueable, SerializesModels;
public $participants;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($participants)
{
$this->participants = $participants;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$csv = $this->formatCsv(array_map(function ($participant) {
return [
$participant['name'],
$participant['email']
];
}, $this->participants));
return $this->view('emails.organizer_recap')
->text('emails.organizer_recap_plain')
->attachData($csv, 'secretsanta.csv', [
'mime' => 'text/csv',
]);
}
protected function formatCsv($data, $delimiter = ",", $enclosure = '"', $escape_char = "\\")
{
$f = fopen('php://memory', 'r+');
foreach ($data as $fields) {
if (fputcsv($f, $fields, $delimiter, $enclosure, $escape_char) === false) {
return false;
}
}
rewind($f);
$csv_line = stream_get_contents($f);
return rtrim($csv_line);
}
}
|
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class OrganizerRecap extends Mailable
{
use Queueable, SerializesModels;
public $participants;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($participants)
{
$this->participants = $participants;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$csv = $this->formatCsv(array_map(function ($participant) {
return [
$participant['name'],
$participant['email']
];
}, $this->participants));
return $this->subject("Récapitulatif Organisateur")
->view('emails.organizer_recap')
->text('emails.organizer_recap_plain')
->attachData($csv, 'secretsanta.csv', [
'mime' => 'text/csv',
]);
}
protected function formatCsv($data, $delimiter = ",", $enclosure = '"', $escape_char = "\\")
{
$f = fopen('php://memory', 'r+');
foreach ($data as $fields) {
if (fputcsv($f, $fields, $delimiter, $enclosure, $escape_char) === false) {
return false;
}
}
rewind($f);
$csv_line = stream_get_contents($f);
return rtrim($csv_line);
}
}
|
Fix organizer recap email title
|
Fix organizer recap email title
|
PHP
|
apache-2.0
|
Korko/SecretSanta,Korko/SecretSanta.fr,Korko/SecretSanta.fr,Korko/SecretSanta,Korko/SecretSanta
|
php
|
## Code Before:
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class OrganizerRecap extends Mailable
{
use Queueable, SerializesModels;
public $participants;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($participants)
{
$this->participants = $participants;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$csv = $this->formatCsv(array_map(function ($participant) {
return [
$participant['name'],
$participant['email']
];
}, $this->participants));
return $this->view('emails.organizer_recap')
->text('emails.organizer_recap_plain')
->attachData($csv, 'secretsanta.csv', [
'mime' => 'text/csv',
]);
}
protected function formatCsv($data, $delimiter = ",", $enclosure = '"', $escape_char = "\\")
{
$f = fopen('php://memory', 'r+');
foreach ($data as $fields) {
if (fputcsv($f, $fields, $delimiter, $enclosure, $escape_char) === false) {
return false;
}
}
rewind($f);
$csv_line = stream_get_contents($f);
return rtrim($csv_line);
}
}
## Instruction:
Fix organizer recap email title
## Code After:
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class OrganizerRecap extends Mailable
{
use Queueable, SerializesModels;
public $participants;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($participants)
{
$this->participants = $participants;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$csv = $this->formatCsv(array_map(function ($participant) {
return [
$participant['name'],
$participant['email']
];
}, $this->participants));
return $this->subject("Récapitulatif Organisateur")
->view('emails.organizer_recap')
->text('emails.organizer_recap_plain')
->attachData($csv, 'secretsanta.csv', [
'mime' => 'text/csv',
]);
}
protected function formatCsv($data, $delimiter = ",", $enclosure = '"', $escape_char = "\\")
{
$f = fopen('php://memory', 'r+');
foreach ($data as $fields) {
if (fputcsv($f, $fields, $delimiter, $enclosure, $escape_char) === false) {
return false;
}
}
rewind($f);
$csv_line = stream_get_contents($f);
return rtrim($csv_line);
}
}
|
e92b0ab4936fd4d9973bb4169e457c7670c66b03
|
deploy-api.yaml
|
deploy-api.yaml
|
- hosts: api
roles:
- common
- iptables
- python-process
- nginx
- apiv1
- apiv2
|
- hosts: api
roles:
- common
- iptables
- python-process
- nginx
- apiv1
- apiv2
- commonelk
- filebeat
|
Add filebeat deployment for api
|
Add filebeat deployment for api
|
YAML
|
agpl-3.0
|
CaliOpen/deploy-alpha,CaliOpen/deploy-alpha,CaliOpen/deploy-alpha,CaliOpen/deploy-alpha,CaliOpen/deploy-alpha
|
yaml
|
## Code Before:
- hosts: api
roles:
- common
- iptables
- python-process
- nginx
- apiv1
- apiv2
## Instruction:
Add filebeat deployment for api
## Code After:
- hosts: api
roles:
- common
- iptables
- python-process
- nginx
- apiv1
- apiv2
- commonelk
- filebeat
|
504440b00daa96cdbbe68bca0acfbd52e3a486fd
|
app/mailers/course/mailer.rb
|
app/mailers/course/mailer.rb
|
class Course::Mailer < ApplicationMailer
# Sends an invitation email for the given invitation.
#
# @param [Course] course The course that was involved.
# @param [Course::UserInvitation] invitation The invitation which was generated.
def user_invitation_email(course, invitation)
@recipient = invitation.course_user
@course = course
@invitation = invitation
mail(to: invitation.user_email.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to a user informing his registration in a course.
#
# @param [Course] course The course that was involved.
# @param [CourseUser] user The user who was added.
def user_added_email(course, user)
@course = course
@recipient = user.user
mail(to: @recipient.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to the course managers to approve a given Course Registration
# Request.
#
# @param [Course] course The course which the user registered in.
def user_registered_email(course, course_user)
@course = course
@course_user = course_user
@recipient = Struct.new(:name).new(name: t('course.mailer.user_registered_email.recipients'))
mail(to: @course.managers.map(&:user).map(&:email),
subject: t('.subject', course: @course.title))
end
end
|
class Course::Mailer < ApplicationMailer
# Sends an invitation email for the given invitation.
#
# @param [Course] course The course that was involved.
# @param [Course::UserInvitation] invitation The invitation which was generated.
def user_invitation_email(course, invitation)
@recipient = invitation.course_user
@course = course
@invitation = invitation
mail(to: invitation.user_email.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to a user informing his registration in a course.
#
# @param [Course] course The course that was involved.
# @param [CourseUser] user The user who was added.
def user_added_email(course, user)
@course = course
@recipient = user.user
mail(to: @recipient.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to the course managers to approve a given Course Registration
# Request.
#
# @param [Course] course The course which the user registered in.
def user_registered_email(course, course_user)
@course = course
@course_user = course_user
@recipient = OpenStruct.new(name: t('course.mailer.user_registered_email.recipients'))
mail(to: @course.managers.map(&:user).map(&:email),
subject: t('.subject', course: @course.title))
end
end
|
Fix wrong recipient name in greetings
|
Fix wrong recipient name in greetings
|
Ruby
|
mit
|
Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2
|
ruby
|
## Code Before:
class Course::Mailer < ApplicationMailer
# Sends an invitation email for the given invitation.
#
# @param [Course] course The course that was involved.
# @param [Course::UserInvitation] invitation The invitation which was generated.
def user_invitation_email(course, invitation)
@recipient = invitation.course_user
@course = course
@invitation = invitation
mail(to: invitation.user_email.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to a user informing his registration in a course.
#
# @param [Course] course The course that was involved.
# @param [CourseUser] user The user who was added.
def user_added_email(course, user)
@course = course
@recipient = user.user
mail(to: @recipient.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to the course managers to approve a given Course Registration
# Request.
#
# @param [Course] course The course which the user registered in.
def user_registered_email(course, course_user)
@course = course
@course_user = course_user
@recipient = Struct.new(:name).new(name: t('course.mailer.user_registered_email.recipients'))
mail(to: @course.managers.map(&:user).map(&:email),
subject: t('.subject', course: @course.title))
end
end
## Instruction:
Fix wrong recipient name in greetings
## Code After:
class Course::Mailer < ApplicationMailer
# Sends an invitation email for the given invitation.
#
# @param [Course] course The course that was involved.
# @param [Course::UserInvitation] invitation The invitation which was generated.
def user_invitation_email(course, invitation)
@recipient = invitation.course_user
@course = course
@invitation = invitation
mail(to: invitation.user_email.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to a user informing his registration in a course.
#
# @param [Course] course The course that was involved.
# @param [CourseUser] user The user who was added.
def user_added_email(course, user)
@course = course
@recipient = user.user
mail(to: @recipient.email, subject: t('.subject', course: @course.title))
end
# Sends a notification email to the course managers to approve a given Course Registration
# Request.
#
# @param [Course] course The course which the user registered in.
def user_registered_email(course, course_user)
@course = course
@course_user = course_user
@recipient = OpenStruct.new(name: t('course.mailer.user_registered_email.recipients'))
mail(to: @course.managers.map(&:user).map(&:email),
subject: t('.subject', course: @course.title))
end
end
|
639367692cc19f83230758bb503d9609015290b6
|
app/controllers/fb_friends_controller.rb
|
app/controllers/fb_friends_controller.rb
|
require 'fb_service'
class FbFriendsController < ApplicationController
before_filter :authenticate_user!
#before_filter :check_facebook_session, :only => [:index, :search_fb_friends]
def index
fb_token = session[:fb_token]
@people = FbService.get_my_friends(fb_token)
end
def search_fb_friends
fb_token = session[:fb_token]
search_terms = params[:search_terms] || ''
@people = FbService.search_fb_friends(fb_token, search_terms)
raise NotActivated if @people.nil?
render :index
end
def search_people
@searching_people = true
search_terms = params[:search_terms] || ''
@people = Person.search(search_terms)
@people = @people - [current_user.person] unless @people.empty?
render :index
end
private
def check_facebook_session
user = FbGraph::User.new(:access_token => current_user.token)
user.fetch
end
end
|
require 'fb_service'
class FbFriendsController < ApplicationController
before_filter :authenticate_user!
#before_filter :check_facebook_session, :only => [:index, :search_fb_friends]
def index
fb_token = session[:fb_token]
@people = FbService.get_my_friends(fb_token).order(:name)
end
def search_fb_friends
fb_token = session[:fb_token]
search_terms = params[:search_terms] || ''
@people = FbService.search_fb_friends(fb_token, search_terms)
raise NotActivated if @people.nil?
render :index
end
def search_people
@searching_people = true
search_terms = params[:search_terms] || ''
@people = Person.search(search_terms)
@people = @people - [current_user.person] unless @people.empty?
render :index
end
private
def check_facebook_session
user = FbGraph::User.new(:access_token => current_user.token)
user.fetch
end
end
|
Order my friends by name
|
Order my friends by name
|
Ruby
|
unlicense
|
muhumar99/sharedearth,haseeb-ahmad/sharedearth-net,sharedearth-net/sharedearth-net,muhumar99/sharedearth,sharedearth-net/sharedearth-net,haseeb-ahmad/sharedearth-net,haseeb-ahmad/sharedearth-net,sharedearth-net/sharedearth-net,muhumar99/sharedearth
|
ruby
|
## Code Before:
require 'fb_service'
class FbFriendsController < ApplicationController
before_filter :authenticate_user!
#before_filter :check_facebook_session, :only => [:index, :search_fb_friends]
def index
fb_token = session[:fb_token]
@people = FbService.get_my_friends(fb_token)
end
def search_fb_friends
fb_token = session[:fb_token]
search_terms = params[:search_terms] || ''
@people = FbService.search_fb_friends(fb_token, search_terms)
raise NotActivated if @people.nil?
render :index
end
def search_people
@searching_people = true
search_terms = params[:search_terms] || ''
@people = Person.search(search_terms)
@people = @people - [current_user.person] unless @people.empty?
render :index
end
private
def check_facebook_session
user = FbGraph::User.new(:access_token => current_user.token)
user.fetch
end
end
## Instruction:
Order my friends by name
## Code After:
require 'fb_service'
class FbFriendsController < ApplicationController
before_filter :authenticate_user!
#before_filter :check_facebook_session, :only => [:index, :search_fb_friends]
def index
fb_token = session[:fb_token]
@people = FbService.get_my_friends(fb_token).order(:name)
end
def search_fb_friends
fb_token = session[:fb_token]
search_terms = params[:search_terms] || ''
@people = FbService.search_fb_friends(fb_token, search_terms)
raise NotActivated if @people.nil?
render :index
end
def search_people
@searching_people = true
search_terms = params[:search_terms] || ''
@people = Person.search(search_terms)
@people = @people - [current_user.person] unless @people.empty?
render :index
end
private
def check_facebook_session
user = FbGraph::User.new(:access_token => current_user.token)
user.fetch
end
end
|
ad94455e70efb9ddb8e24e1a3c5966a5851e06db
|
app/views/elements/_logo.html.slim
|
app/views/elements/_logo.html.slim
|
== setting.microdata_meta(map) if show_metadata
a.header-title-link.logo-container href='/'
h1.header-title.logo style="background-image: url(#{setting.logo.url(:thumb)})"
= setting.title
small.header-subtitle = setting.subtitle
|
== setting.microdata_meta(map) if show_metadata
- logo_link = setting.logo.url(:thumb)
- suffix = 'path'
- html_tag_tag = defined?(html_tag) ? html_tag : :h1
- if defined?(absolute) && absolute
- logo_link = asset_url(logo_link)
- suffix = 'url'
a.header-title-link.logo-container href="#{send("root_#{suffix}")}"
= content_tag(html_tag_tag, nil, class: 'header-title logo', style: "background-image: url(#{logo_link})") do
= setting.title
small.header-subtitle = setting.subtitle
|
Update absolute or relative path for image or link in logo partial
|
Update absolute or relative path for image or link in logo partial
|
Slim
|
mit
|
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
|
slim
|
## Code Before:
== setting.microdata_meta(map) if show_metadata
a.header-title-link.logo-container href='/'
h1.header-title.logo style="background-image: url(#{setting.logo.url(:thumb)})"
= setting.title
small.header-subtitle = setting.subtitle
## Instruction:
Update absolute or relative path for image or link in logo partial
## Code After:
== setting.microdata_meta(map) if show_metadata
- logo_link = setting.logo.url(:thumb)
- suffix = 'path'
- html_tag_tag = defined?(html_tag) ? html_tag : :h1
- if defined?(absolute) && absolute
- logo_link = asset_url(logo_link)
- suffix = 'url'
a.header-title-link.logo-container href="#{send("root_#{suffix}")}"
= content_tag(html_tag_tag, nil, class: 'header-title logo', style: "background-image: url(#{logo_link})") do
= setting.title
small.header-subtitle = setting.subtitle
|
4167f81a45616191c46a4b8d1fbccb7f8ff918e6
|
.travis.yml
|
.travis.yml
|
sudo: false
language: ruby
cache: bundler
rvm:
- "2.1.10"
- "2.3.1"
|
sudo: false
language: ruby
cache: bundler
rvm:
- 2.1.10
- 2.3.1
env:
- GRAPHQL_VERSION=0.18.0 RAILS_VERSION=3.0.0
- GRAPHQL_VERSION=0.18.0 RAILS_VERSION=5.0.0
- GRAPHQL_VERSION=0.18.11 RAILS_VERSION=3.0.0
- GRAPHQL_VERSION=0.18.11 RAILS_VERSION=5.0.0
|
Test all supported versions of graphql and rails
|
Test all supported versions of graphql and rails
|
YAML
|
mit
|
tjoyal/graphql-client,tjoyal/graphql-client
|
yaml
|
## Code Before:
sudo: false
language: ruby
cache: bundler
rvm:
- "2.1.10"
- "2.3.1"
## Instruction:
Test all supported versions of graphql and rails
## Code After:
sudo: false
language: ruby
cache: bundler
rvm:
- 2.1.10
- 2.3.1
env:
- GRAPHQL_VERSION=0.18.0 RAILS_VERSION=3.0.0
- GRAPHQL_VERSION=0.18.0 RAILS_VERSION=5.0.0
- GRAPHQL_VERSION=0.18.11 RAILS_VERSION=3.0.0
- GRAPHQL_VERSION=0.18.11 RAILS_VERSION=5.0.0
|
66f0cb5a4a0e359162359ea763775ead7159f62c
|
test-case-qsort.lisp
|
test-case-qsort.lisp
|
(test-case 'test-case-qsort
'((test test-qsort
((assert-equal '() (qsort '()))
(assert-equal '(1) (qsort '(1)))
(assert-equal '(1 2) (qsort '(1 2)))
(assert-equal '(1 2 3) (qsort '(3 1 2)))
(assert-equal '(1 2 2 3) (qsort '(2 3 1 2)))))))
|
(test-case 'test-case-qsort
'((test test-qsort-without-getter
((assert-equal '() (qsort '()))
(assert-equal '(1) (qsort '(1)))
(assert-equal '(1 2) (qsort '(1 2)))
(assert-equal '(1 2 3) (qsort '(3 1 2)))
(assert-equal '(1 2 2 3) (qsort '(2 3 1 2)))))
(test test-qsort-with-getter
((assert-equal '((1 . 4) (2 . 3)) (qsort '((2 . 3) (1 . 4)) car))
(assert-equal '((2 . 3) (1 . 4)) (qsort '((1 . 4) (2 . 3)) cdr))))))
|
Test qsort with and without getter
|
Test qsort with and without getter
|
Common Lisp
|
mit
|
adjl/PolynomialArithmetic,adjl/PolynomialArithmetic
|
common-lisp
|
## Code Before:
(test-case 'test-case-qsort
'((test test-qsort
((assert-equal '() (qsort '()))
(assert-equal '(1) (qsort '(1)))
(assert-equal '(1 2) (qsort '(1 2)))
(assert-equal '(1 2 3) (qsort '(3 1 2)))
(assert-equal '(1 2 2 3) (qsort '(2 3 1 2)))))))
## Instruction:
Test qsort with and without getter
## Code After:
(test-case 'test-case-qsort
'((test test-qsort-without-getter
((assert-equal '() (qsort '()))
(assert-equal '(1) (qsort '(1)))
(assert-equal '(1 2) (qsort '(1 2)))
(assert-equal '(1 2 3) (qsort '(3 1 2)))
(assert-equal '(1 2 2 3) (qsort '(2 3 1 2)))))
(test test-qsort-with-getter
((assert-equal '((1 . 4) (2 . 3)) (qsort '((2 . 3) (1 . 4)) car))
(assert-equal '((2 . 3) (1 . 4)) (qsort '((1 . 4) (2 . 3)) cdr))))))
|
7f3a9dd375f30906ff06b51b20d2a964f9e8a949
|
_protected/app/system/modules/payment/views/base/tpl/main/error.tpl
|
_protected/app/system/modules/payment/views/base/tpl/main/error.tpl
|
<div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', 'contact', 'index')}
</p>
</div>
|
<div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please contact your payment provider or <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', 'contact', 'index')}
</p>
</div>
|
Add more details into payment failure message
|
Add more details into payment failure message
|
Smarty
|
mit
|
pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS
|
smarty
|
## Code Before:
<div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', 'contact', 'index')}
</p>
</div>
## Instruction:
Add more details into payment failure message
## Code After:
<div class="center">
<p class="red bold">
{lang 'The purchase failed. The payment status of your purchase might be just pending, in progress or invalid.'}
</p>
<p>
{lang 'If the problem persists, please contact your payment provider or <a href="%0%">contact us</a>.', Framework\Mvc\Router\Uri::get('contact', 'contact', 'index')}
</p>
</div>
|
ac00d223bcb5d80403aaf3150621a407d792ed06
|
.github/workflows/main.yml
|
.github/workflows/main.yml
|
name: ci
on:
pull_request:
branches:
- master
jobs:
test_go:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: '1.11'
- name: Test go packages
run: make test-go
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
test_libexec:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Test relax on Xcode 9.4.1
run: |
sudo xcode-select -s /Applications/Xcode_9.4.1.app/Contents/Developer
test/travis_ci.sh
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 10.0
run: |
sudo xcode-select -s /Applications/Xcode_10.app/Contents/Developer
test/travis_ci.sh
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
|
name: ci
on:
pull_request:
branches:
- master
jobs:
test_go:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: '1.11'
- name: Test go packages
run: make test-go
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
test_libexec:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Test relax on Xcode 9.4.1
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_9.4.1.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 10.0
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_10.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 11
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_11.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
|
Add test build on Xcode 11
|
Add test build on Xcode 11
|
YAML
|
mit
|
SCENEE/relax,SCENEE/relax
|
yaml
|
## Code Before:
name: ci
on:
pull_request:
branches:
- master
jobs:
test_go:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: '1.11'
- name: Test go packages
run: make test-go
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
test_libexec:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Test relax on Xcode 9.4.1
run: |
sudo xcode-select -s /Applications/Xcode_9.4.1.app/Contents/Developer
test/travis_ci.sh
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 10.0
run: |
sudo xcode-select -s /Applications/Xcode_10.app/Contents/Developer
test/travis_ci.sh
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
## Instruction:
Add test build on Xcode 11
## Code After:
name: ci
on:
pull_request:
branches:
- master
jobs:
test_go:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: '1.11'
- name: Test go packages
run: make test-go
env:
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
test_libexec:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Test relax on Xcode 9.4.1
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_9.4.1.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 10.0
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_10.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
- name: Test relax on Xcode 11
run: |
test/travis_ci.sh
env:
DEVELOPER_DIR: /Applications/Xcode_11.app/Contents/Developer
CERTS_PASS: ${{ secrets.CERTS_PASS }}
DECORD_KEY: ${{ secrets.DECORD_KEY }}
|
1aa672472e8a431089c392839bc6a374330c2f7c
|
db/post_migrate/20170503004427_upate_retried_for_ci_build.rb
|
db/post_migrate/20170503004427_upate_retried_for_ci_build.rb
|
class UpateRetriedForCiBuild < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
disable_statement_timeout
latest_id = <<-SQL.strip_heredoc
SELECT MAX(ci_builds2.id)
FROM ci_builds ci_builds2
WHERE ci_builds.commit_id=ci_builds2.commit_id
AND ci_builds.name=ci_builds2.name
SQL
# This is slow update as it does single-row query
# This is designed to be run as idle, or a post deployment migration
is_retried = Arel.sql("((#{latest_id}) != ci_builds.id)")
update_column_in_batches(:ci_builds, :retried, is_retried) do |table, query|
query.where(table[:retried].eq(nil))
end
end
def down
end
end
|
class UpateRetriedForCiBuild < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
disable_statement_timeout
with_temporary_partial_index do
latest_id = <<-SQL.strip_heredoc
SELECT MAX(ci_builds2.id)
FROM ci_builds ci_builds2
WHERE ci_builds.commit_id=ci_builds2.commit_id
AND ci_builds.name=ci_builds2.name
SQL
# This is slow update as it does single-row query
# This is designed to be run as idle, or a post deployment migration
is_retried = Arel.sql("((#{latest_id}) != ci_builds.id)")
update_column_in_batches(:ci_builds, :retried, is_retried) do |table, query|
query.where(table[:retried].eq(nil))
end
end
end
def down
end
def with_temporary_partial_index
if Gitlab::Database.postgresql?
execute 'CREATE INDEX CONCURRENTLY IF NOT EXISTS index_for_ci_builds_retried_migration ON ci_builds (id) WHERE retried IS NULL;'
end
yield
if Gitlab::Database.postgresql?
execute 'DROP INDEX CONCURRENTLY IF EXISTS index_for_ci_builds_retried_migration'
end
end
end
|
Add temporary partial index to speed up the migration
|
Add temporary partial index to speed up the migration
Closes #32469
|
Ruby
|
mit
|
dplarson/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,dplarson/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,iiet/iiet-git,iiet/iiet-git,dreampet/gitlab,stoplightio/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq
|
ruby
|
## Code Before:
class UpateRetriedForCiBuild < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
disable_statement_timeout
latest_id = <<-SQL.strip_heredoc
SELECT MAX(ci_builds2.id)
FROM ci_builds ci_builds2
WHERE ci_builds.commit_id=ci_builds2.commit_id
AND ci_builds.name=ci_builds2.name
SQL
# This is slow update as it does single-row query
# This is designed to be run as idle, or a post deployment migration
is_retried = Arel.sql("((#{latest_id}) != ci_builds.id)")
update_column_in_batches(:ci_builds, :retried, is_retried) do |table, query|
query.where(table[:retried].eq(nil))
end
end
def down
end
end
## Instruction:
Add temporary partial index to speed up the migration
Closes #32469
## Code After:
class UpateRetriedForCiBuild < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
disable_statement_timeout
with_temporary_partial_index do
latest_id = <<-SQL.strip_heredoc
SELECT MAX(ci_builds2.id)
FROM ci_builds ci_builds2
WHERE ci_builds.commit_id=ci_builds2.commit_id
AND ci_builds.name=ci_builds2.name
SQL
# This is slow update as it does single-row query
# This is designed to be run as idle, or a post deployment migration
is_retried = Arel.sql("((#{latest_id}) != ci_builds.id)")
update_column_in_batches(:ci_builds, :retried, is_retried) do |table, query|
query.where(table[:retried].eq(nil))
end
end
end
def down
end
def with_temporary_partial_index
if Gitlab::Database.postgresql?
execute 'CREATE INDEX CONCURRENTLY IF NOT EXISTS index_for_ci_builds_retried_migration ON ci_builds (id) WHERE retried IS NULL;'
end
yield
if Gitlab::Database.postgresql?
execute 'DROP INDEX CONCURRENTLY IF EXISTS index_for_ci_builds_retried_migration'
end
end
end
|
26683725edb3e37225c5be01eaa8a6d258e65f73
|
plugins/virsh/tasks/remove_node.yml
|
plugins/virsh/tasks/remove_node.yml
|
---
- name: Get VM network info
virt_util:
command: 'domain_xml_devices'
domain: "{{ vm_name }}"
device_class: 'interface'
register: vm_network_info
tags: skip_ansible_lint
- name: Reset network list
set_fact:
network_list: []
- name: Create network list
set_fact:
network_list: "{{ network_list + [network_name] }}"
vars:
network_name: "{{ item.source.network }}"
with_items: "{{ vm_network_info.devices }}"
- name: Get VM static IPs
shell: virsh net-dumpxml {{ item }} | grep {{ vm_name }}
ignore_errors: yes
register: vm_static_ips
with_items: "{{ network_list }}"
- include_tasks: remove_static_ips.yml
vars:
network_name: "{{ vm_static_result.item }}"
ips_records: "{{ vm_static_result.stdout_lines }}"
with_items: "{{ vm_static_ips.results }}"
when: item.rc == 0
loop_control:
loop_var: vm_static_result
- name: remove all snapshots
include_tasks: remove_snapshots.yml
- name: remove vm
include_tasks: remove_vm.yml
|
---
- name: Get VM network info
virt_util:
command: 'domain_xml_devices'
domain: "{{ vm_name }}"
device_class: 'interface'
register: vm_network_info
tags: skip_ansible_lint
- name: Reset network list
set_fact:
network_list: []
- name: Create network list
set_fact:
network_list: "{{ network_list + [network_name] }}"
vars:
network_name: "{{ item.source.network }}"
with_items: "{{ vm_network_info.devices }}"
- name: Get VM static IPs
shell: virsh net-dumpxml {{ item }} | grep {{ vm_name }}
ignore_errors: yes
register: vm_static_ips
with_items: "{{ network_list }}"
- include_tasks: remove_static_ips.yml
vars:
network_name: "{{ vm_static_result.item }}"
ips_records: "{{ vm_static_result.stdout_lines }}"
loop: "{{ vm_static_ips.results }}"
when: vm_static_result.rc == 0
loop_control:
loop_var: vm_static_result
- name: remove all snapshots
include_tasks: remove_snapshots.yml
- name: remove vm
include_tasks: remove_vm.yml
|
Fix remove node in virsh plugin
|
Fix remove node in virsh plugin
Change when statement when including the remove_static_ips.yml file
to use the new loop instead of deprecated with_items and change use
of item variable to the defined loop_var.
RHOSINFRA-2328
Change-Id: I120cecd8244fd2c49206d38c8080055a59c847a1
|
YAML
|
apache-2.0
|
redhat-openstack/infrared,redhat-openstack/infrared,redhat-openstack/infrared
|
yaml
|
## Code Before:
---
- name: Get VM network info
virt_util:
command: 'domain_xml_devices'
domain: "{{ vm_name }}"
device_class: 'interface'
register: vm_network_info
tags: skip_ansible_lint
- name: Reset network list
set_fact:
network_list: []
- name: Create network list
set_fact:
network_list: "{{ network_list + [network_name] }}"
vars:
network_name: "{{ item.source.network }}"
with_items: "{{ vm_network_info.devices }}"
- name: Get VM static IPs
shell: virsh net-dumpxml {{ item }} | grep {{ vm_name }}
ignore_errors: yes
register: vm_static_ips
with_items: "{{ network_list }}"
- include_tasks: remove_static_ips.yml
vars:
network_name: "{{ vm_static_result.item }}"
ips_records: "{{ vm_static_result.stdout_lines }}"
with_items: "{{ vm_static_ips.results }}"
when: item.rc == 0
loop_control:
loop_var: vm_static_result
- name: remove all snapshots
include_tasks: remove_snapshots.yml
- name: remove vm
include_tasks: remove_vm.yml
## Instruction:
Fix remove node in virsh plugin
Change when statement when including the remove_static_ips.yml file
to use the new loop instead of deprecated with_items and change use
of item variable to the defined loop_var.
RHOSINFRA-2328
Change-Id: I120cecd8244fd2c49206d38c8080055a59c847a1
## Code After:
---
- name: Get VM network info
virt_util:
command: 'domain_xml_devices'
domain: "{{ vm_name }}"
device_class: 'interface'
register: vm_network_info
tags: skip_ansible_lint
- name: Reset network list
set_fact:
network_list: []
- name: Create network list
set_fact:
network_list: "{{ network_list + [network_name] }}"
vars:
network_name: "{{ item.source.network }}"
with_items: "{{ vm_network_info.devices }}"
- name: Get VM static IPs
shell: virsh net-dumpxml {{ item }} | grep {{ vm_name }}
ignore_errors: yes
register: vm_static_ips
with_items: "{{ network_list }}"
- include_tasks: remove_static_ips.yml
vars:
network_name: "{{ vm_static_result.item }}"
ips_records: "{{ vm_static_result.stdout_lines }}"
loop: "{{ vm_static_ips.results }}"
when: vm_static_result.rc == 0
loop_control:
loop_var: vm_static_result
- name: remove all snapshots
include_tasks: remove_snapshots.yml
- name: remove vm
include_tasks: remove_vm.yml
|
810f5765f54dd007908933a000c0389753b90289
|
.template-lintrc.js
|
.template-lintrc.js
|
'use strict';
/* eslint-env node */
module.exports = {
extends: 'recommended',
rules: {
'block-indentation': false,
'img-alt-attributes': false,
'triple-curlies': false,
'html-comments': false,
},
};
|
'use strict';
/* eslint-env node */
module.exports = {
extends: 'recommended',
rules: {
'img-alt-attributes': false,
'triple-curlies': false,
'html-comments': false,
},
};
|
Enable indentation rule for templates
|
Enable indentation rule for templates
|
JavaScript
|
apache-2.0
|
rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io,rust-lang/crates.io
|
javascript
|
## Code Before:
'use strict';
/* eslint-env node */
module.exports = {
extends: 'recommended',
rules: {
'block-indentation': false,
'img-alt-attributes': false,
'triple-curlies': false,
'html-comments': false,
},
};
## Instruction:
Enable indentation rule for templates
## Code After:
'use strict';
/* eslint-env node */
module.exports = {
extends: 'recommended',
rules: {
'img-alt-attributes': false,
'triple-curlies': false,
'html-comments': false,
},
};
|
6233d3485708f8c693956be5fee7bb22f6d6b3c8
|
.ci/appveyor/deploy_to_pypi.ps1
|
.ci/appveyor/deploy_to_pypi.ps1
|
if (($env:appveyor_repo_tag -eq "True") -and ($env:appveyor_repo_branch.StartsWith("v"))) {
Invoke-Expression "$env:PYTHON/Scripts/twine upload -u landlab -p $env:PYPI_PASS dist/*"
}
|
if (($env:appveyor_repo_tag -eq "True") -and ($env:appveyor_repo_branch.StartsWith("v"))) {
Invoke-Expression "twine upload -u landlab -p $env:PYPI_PASS dist/*"
}
|
Call twine command without full path.
|
Call twine command without full path.
|
PowerShell
|
mit
|
cmshobe/landlab,landlab/landlab,Carralex/landlab,Carralex/landlab,csherwood-usgs/landlab,amandersillinois/landlab,ManuSchmi88/landlab,RondaStrauch/landlab,SiccarPoint/landlab,RondaStrauch/landlab,csherwood-usgs/landlab,RondaStrauch/landlab,SiccarPoint/landlab,amandersillinois/landlab,laijingtao/landlab,cmshobe/landlab,landlab/landlab,laijingtao/landlab,landlab/landlab,ManuSchmi88/landlab,cmshobe/landlab,ManuSchmi88/landlab,Carralex/landlab
|
powershell
|
## Code Before:
if (($env:appveyor_repo_tag -eq "True") -and ($env:appveyor_repo_branch.StartsWith("v"))) {
Invoke-Expression "$env:PYTHON/Scripts/twine upload -u landlab -p $env:PYPI_PASS dist/*"
}
## Instruction:
Call twine command without full path.
## Code After:
if (($env:appveyor_repo_tag -eq "True") -and ($env:appveyor_repo_branch.StartsWith("v"))) {
Invoke-Expression "twine upload -u landlab -p $env:PYPI_PASS dist/*"
}
|
53fda43370466bd952d08c03da5c372959886a42
|
manifest.json
|
manifest.json
|
{
"browser_action": {
"default_icon": "icon.png",
"default_popup": "src/popup.html"
},
"content_scripts": [
{
"js": ["src/jquery.min.js", "src/gpa.js", "src/schedule/schedule.js"],
"matches": ["http://powerschool.isb.ac.th/guardian/*", "https://powerschool.isb.ac.th/guardian/*"],
"run_at": "document_end"
}
],
"description": "Enhances PowerSchool Functionality",
"icons": {
"128": "icon.png",
"16": "icon.png",
"48": "icon.png"
},
"manifest_version": 2,
"name": "ISB PowerSchool Enhancer",
"permissions": ["https://*/*", "http://*/*"],
"short_name": "ISBPWRSKLENH",
"version": "1.4.1",
"web_accessible_resources": ["src/schedule/schedule.css"]
}
|
{
"browser_action": {
"default_icon": "icon.png",
"default_popup": "src/popup.html"
},
"content_scripts": [
{
"js": ["src/jquery.min.js", "src/gpa.js", "src/schedule/schedule.js"],
"matches": ["https://powerschool.isb.ac.th/guardian/*"],
"run_at": "document_end"
}
],
"description": "Enhances PowerSchool Functionality",
"icons": {
"128": "icon.png",
"16": "icon.png",
"48": "icon.png"
},
"manifest_version": 2,
"name": "ISB PowerSchool Enhancer",
"permissions": ["https://powerschool.isb.ac.th/guardian/*"],
"short_name": "ISBPWRSKLENH",
"version": "1.4.3",
"web_accessible_resources": ["src/schedule/schedule.css"]
}
|
Update permissions and fix versioning
|
Update permissions and fix versioning
The Chrome web store states that the extension has version 1.4.2, so let's push to 1.4.3.
The permissions should be more lax now instead of requiring all pages.
|
JSON
|
mit
|
JudgeMadan/ISBPowerSchoolEnhancer,JudgeMadan/ISBPowerSchoolEnhancer
|
json
|
## Code Before:
{
"browser_action": {
"default_icon": "icon.png",
"default_popup": "src/popup.html"
},
"content_scripts": [
{
"js": ["src/jquery.min.js", "src/gpa.js", "src/schedule/schedule.js"],
"matches": ["http://powerschool.isb.ac.th/guardian/*", "https://powerschool.isb.ac.th/guardian/*"],
"run_at": "document_end"
}
],
"description": "Enhances PowerSchool Functionality",
"icons": {
"128": "icon.png",
"16": "icon.png",
"48": "icon.png"
},
"manifest_version": 2,
"name": "ISB PowerSchool Enhancer",
"permissions": ["https://*/*", "http://*/*"],
"short_name": "ISBPWRSKLENH",
"version": "1.4.1",
"web_accessible_resources": ["src/schedule/schedule.css"]
}
## Instruction:
Update permissions and fix versioning
The Chrome web store states that the extension has version 1.4.2, so let's push to 1.4.3.
The permissions should be more lax now instead of requiring all pages.
## Code After:
{
"browser_action": {
"default_icon": "icon.png",
"default_popup": "src/popup.html"
},
"content_scripts": [
{
"js": ["src/jquery.min.js", "src/gpa.js", "src/schedule/schedule.js"],
"matches": ["https://powerschool.isb.ac.th/guardian/*"],
"run_at": "document_end"
}
],
"description": "Enhances PowerSchool Functionality",
"icons": {
"128": "icon.png",
"16": "icon.png",
"48": "icon.png"
},
"manifest_version": 2,
"name": "ISB PowerSchool Enhancer",
"permissions": ["https://powerschool.isb.ac.th/guardian/*"],
"short_name": "ISBPWRSKLENH",
"version": "1.4.3",
"web_accessible_resources": ["src/schedule/schedule.css"]
}
|
e5200cbb10362efc13f5a73e747afb6e386ccb1b
|
xwiki-rendering-test/src/main/resources/cts/config.properties
|
xwiki-rendering-test/src/main/resources/cts/config.properties
|
testDescriptions = simple/bold/bold1 = Standard Bold
testDescriptions = simple/bold/bold2 = Spaces inside Bold
testDescriptions = simple/bold/bold3 = Italic inside Bold
testDescriptions = simple/italic/italic1 = Standard Italic
testDescriptions = simple/paragraph/paragraph1 = Two standard Paragraphs
|
testDescriptions = simple/bold/bold1 = Standard Bold
testDescriptions = simple/bold/bold2 = Spaces inside Bold
testDescriptions = simple/bold/bold3 = Italic inside Bold
testDescriptions = simple/italic/italic1 = Standard Italic
testDescriptions = simple/paragraph/paragraph1 = Two standard Paragraphs
testDescriptions = simple/table/table1 = Table with a header row
|
Add description for table1 CTS test
|
[Misc] Add description for table1 CTS test
|
INI
|
lgpl-2.1
|
xwiki/xwiki-rendering
|
ini
|
## Code Before:
testDescriptions = simple/bold/bold1 = Standard Bold
testDescriptions = simple/bold/bold2 = Spaces inside Bold
testDescriptions = simple/bold/bold3 = Italic inside Bold
testDescriptions = simple/italic/italic1 = Standard Italic
testDescriptions = simple/paragraph/paragraph1 = Two standard Paragraphs
## Instruction:
[Misc] Add description for table1 CTS test
## Code After:
testDescriptions = simple/bold/bold1 = Standard Bold
testDescriptions = simple/bold/bold2 = Spaces inside Bold
testDescriptions = simple/bold/bold3 = Italic inside Bold
testDescriptions = simple/italic/italic1 = Standard Italic
testDescriptions = simple/paragraph/paragraph1 = Two standard Paragraphs
testDescriptions = simple/table/table1 = Table with a header row
|
a29d73ae3b098a3fedfb792271a2dfe0a5dc5293
|
app/views/comment/_show.rhtml
|
app/views/comment/_show.rhtml
|
<% comment = show %>
<div class="comment">
<table>
<tr>
<td class="header">Comment ID #<%= comment.id %> by:</td>
<td><%=h comment.commenter %></td>
</tr>
<tr>
<td class="header">On:</td>
<td><%=h comment.written_on %></td>
</tr>
<tr>
<td class="content" colspan="2">
<%=h comment.content %>
</td>
</tr>
</table>
</div>
|
<% comment = show %>
<div class="comment">
<table>
<tr>
<td class="header">Comment ID #<%= comment.id %> by:</td>
<td><%=h comment.commenter %></td>
</tr>
<tr>
<td class="header">On:</td>
<td><%=h comment.written_on %></td>
</tr>
<tr>
<td class="content" colspan="2">
<%=(h comment.content).gsub("\n", "<br/>") %></pre>
</td>
</tr>
</table>
</div>
|
Substitute <br/> for \n in review comments
|
Substitute <br/> for \n in review comments
|
RHTML
|
bsd-3-clause
|
toddlipcon/arb,toddlipcon/arb,toddlipcon/arb
|
rhtml
|
## Code Before:
<% comment = show %>
<div class="comment">
<table>
<tr>
<td class="header">Comment ID #<%= comment.id %> by:</td>
<td><%=h comment.commenter %></td>
</tr>
<tr>
<td class="header">On:</td>
<td><%=h comment.written_on %></td>
</tr>
<tr>
<td class="content" colspan="2">
<%=h comment.content %>
</td>
</tr>
</table>
</div>
## Instruction:
Substitute <br/> for \n in review comments
## Code After:
<% comment = show %>
<div class="comment">
<table>
<tr>
<td class="header">Comment ID #<%= comment.id %> by:</td>
<td><%=h comment.commenter %></td>
</tr>
<tr>
<td class="header">On:</td>
<td><%=h comment.written_on %></td>
</tr>
<tr>
<td class="content" colspan="2">
<%=(h comment.content).gsub("\n", "<br/>") %></pre>
</td>
</tr>
</table>
</div>
|
836e3d04afca8caf898dc27cf7146c0604c98bd6
|
scripts/travis/install-requirements.sh
|
scripts/travis/install-requirements.sh
|
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ] || [ "${TASK}" = 'ci-py3-integration' ]; then
pip install "tox==3.1.3"
# NOTE: We create the environment and install the dependencies first. This
# means that the subsequent tox build / test command has a stable run time
# since it doesn't depend on dependencies being installed.
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ]; then
TOX_TASK="py36-unit"
fi
if [ "${TASK}" = 'ci-py3-integration' ]; then
TOX_TASK="py36-integration"
fi
tox -e ${TOX_TASK} --notest
else
make requirements
fi
|
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ] || [ "${TASK}" = 'ci-py3-integration' ]; then
pip install "tox==3.1.3"
# Install runners
. virtualenv/bin/activate
CURRENT_DIR=`pwd`
for RUNNER in `ls -d $CURRENT_DIR/contrib/runners/*`
do
echo "Installing runner: $RUNNER..."
cd $RUNNER
python setup.py develop
done
# NOTE: We create the environment and install the dependencies first. This
# means that the subsequent tox build / test command has a stable run time
# since it doesn't depend on dependencies being installed.
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ]; then
TOX_TASK="py36-unit"
fi
if [ "${TASK}" = 'ci-py3-integration' ]; then
TOX_TASK="py36-integration"
fi
tox -e ${TOX_TASK} --notest
else
make requirements
fi
|
Install runners when processing requirements for travis
|
Install runners when processing requirements for travis
|
Shell
|
apache-2.0
|
Plexxi/st2,StackStorm/st2,StackStorm/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2,nzlosh/st2,nzlosh/st2,Plexxi/st2,nzlosh/st2,Plexxi/st2
|
shell
|
## Code Before:
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ] || [ "${TASK}" = 'ci-py3-integration' ]; then
pip install "tox==3.1.3"
# NOTE: We create the environment and install the dependencies first. This
# means that the subsequent tox build / test command has a stable run time
# since it doesn't depend on dependencies being installed.
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ]; then
TOX_TASK="py36-unit"
fi
if [ "${TASK}" = 'ci-py3-integration' ]; then
TOX_TASK="py36-integration"
fi
tox -e ${TOX_TASK} --notest
else
make requirements
fi
## Instruction:
Install runners when processing requirements for travis
## Code After:
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ] || [ "${TASK}" = 'ci-py3-integration' ]; then
pip install "tox==3.1.3"
# Install runners
. virtualenv/bin/activate
CURRENT_DIR=`pwd`
for RUNNER in `ls -d $CURRENT_DIR/contrib/runners/*`
do
echo "Installing runner: $RUNNER..."
cd $RUNNER
python setup.py develop
done
# NOTE: We create the environment and install the dependencies first. This
# means that the subsequent tox build / test command has a stable run time
# since it doesn't depend on dependencies being installed.
if [ "${TASK}" = 'compilepy3 ci-py3-unit' ]; then
TOX_TASK="py36-unit"
fi
if [ "${TASK}" = 'ci-py3-integration' ]; then
TOX_TASK="py36-integration"
fi
tox -e ${TOX_TASK} --notest
else
make requirements
fi
|
0866af6b2d2c82637c3726e6bba5ac840bd499d1
|
get_results.sh
|
get_results.sh
|
if [ $# -lt 1 ]; then
echo "Usage: $0 TAG"
echo "TAG: any mnemonic tag for this run"
exit
fi
IP=52.88.104.238
TAG=$1
NAME=`date "+%Y_%m_%d"`_$TAG
for DIR in output demos comparisons; do
mkdir ${DIR}_${NAME}
scp -r ${IP}:ml-demo/${DIR}/* ${DIR}_${NAME}
done
python eval.py output_$NAME
|
if [ $# -lt 1 ]; then
echo "Usage: $0 TAG"
echo "TAG: any mnemonic tag for this run"
exit
fi
IP=52.88.104.238
TAG=$1
NAME=`date "+%Y_%m_%d"`_$TAG
for DIR in output demos comparisons; do
mkdir ${DIR}_${NAME}
scp -r ${IP}:ml-demo/${DIR}/* ${DIR}_${NAME}
done
python eval.py --equal-precision-recall output_$NAME
|
Use equal precision/recall metric for eval
|
Use equal precision/recall metric for eval
To beat random forest, the number needs to be above 90!
|
Shell
|
mit
|
lwneal/tfasts,lwneal/tfasts,lwneal/tfasts,lwneal/tfasts,lwneal/tfasts
|
shell
|
## Code Before:
if [ $# -lt 1 ]; then
echo "Usage: $0 TAG"
echo "TAG: any mnemonic tag for this run"
exit
fi
IP=52.88.104.238
TAG=$1
NAME=`date "+%Y_%m_%d"`_$TAG
for DIR in output demos comparisons; do
mkdir ${DIR}_${NAME}
scp -r ${IP}:ml-demo/${DIR}/* ${DIR}_${NAME}
done
python eval.py output_$NAME
## Instruction:
Use equal precision/recall metric for eval
To beat random forest, the number needs to be above 90!
## Code After:
if [ $# -lt 1 ]; then
echo "Usage: $0 TAG"
echo "TAG: any mnemonic tag for this run"
exit
fi
IP=52.88.104.238
TAG=$1
NAME=`date "+%Y_%m_%d"`_$TAG
for DIR in output demos comparisons; do
mkdir ${DIR}_${NAME}
scp -r ${IP}:ml-demo/${DIR}/* ${DIR}_${NAME}
done
python eval.py --equal-precision-recall output_$NAME
|
601193248ac894381628497a81b39c6b747cdbc3
|
templates/layout.mustache
|
templates/layout.mustache
|
<!DOCTYPE html>
<html>
<head>
<title>{{#title}}{{title}} — {{/title}}{{ site }}{{#section}} {{ section }}{{/section}}</title>
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body class="{{ type }}">
<div id="wrap">
<div id="header">
<h1>{{ site }} {{ section }}</h1>
{{{ header }}}
</div>
<div id="main">
{{{ yield }}}
</div>
<div id="related">
<ul>
<li><a href="/">Home</a></li>
<!-- <li><a href="/s">Search</a></li>
<li><a href="/ov">Overviewer</a></li>-->
<li><a href="/+">Google+</a></li>
<li><a href="https://twitter.com/_inatri">Twitter</a></li>
<li><a href="https://github.com/inatri">GitHub</a></li>
</ul>
</div>
</div>
</body>
</html>
|
<!DOCTYPE html>
<html>
<head>
<title>{{#title}}{{title}} — {{/title}}{{ site }}{{#section}} {{ section }}{{/section}}</title>
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link href="https://plus.google.com/b/109306111401276833043/109306111401276833043" rel="publisher">
</head>
<body class="{{ type }}">
<div id="wrap">
<div id="header">
<h1>{{ site }} {{ section }}</h1>
{{{ header }}}
</div>
<div id="main">
{{{ yield }}}
</div>
<div id="related">
<ul>
<li><a href="/">Home</a></li>
<!-- <li><a href="/s">Search</a></li>
<li><a href="/ov">Overviewer</a></li>-->
<li><a href="/+">Google+</a></li>
<li><a href="https://twitter.com/_inatri">Twitter</a></li>
<li><a href="https://github.com/inatri">GitHub</a></li>
</ul>
</div>
</div>
</body>
</html>
|
Add <link> for linking website with G+
|
Add <link> for linking website with G+
|
HTML+Django
|
mpl-2.0
|
duckinator/overviewer,duckinator/overviewer
|
html+django
|
## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>{{#title}}{{title}} — {{/title}}{{ site }}{{#section}} {{ section }}{{/section}}</title>
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body class="{{ type }}">
<div id="wrap">
<div id="header">
<h1>{{ site }} {{ section }}</h1>
{{{ header }}}
</div>
<div id="main">
{{{ yield }}}
</div>
<div id="related">
<ul>
<li><a href="/">Home</a></li>
<!-- <li><a href="/s">Search</a></li>
<li><a href="/ov">Overviewer</a></li>-->
<li><a href="/+">Google+</a></li>
<li><a href="https://twitter.com/_inatri">Twitter</a></li>
<li><a href="https://github.com/inatri">GitHub</a></li>
</ul>
</div>
</div>
</body>
</html>
## Instruction:
Add <link> for linking website with G+
## Code After:
<!DOCTYPE html>
<html>
<head>
<title>{{#title}}{{title}} — {{/title}}{{ site }}{{#section}} {{ section }}{{/section}}</title>
<link rel="stylesheet" type="text/css" href="/css/main.css">
<link href="https://plus.google.com/b/109306111401276833043/109306111401276833043" rel="publisher">
</head>
<body class="{{ type }}">
<div id="wrap">
<div id="header">
<h1>{{ site }} {{ section }}</h1>
{{{ header }}}
</div>
<div id="main">
{{{ yield }}}
</div>
<div id="related">
<ul>
<li><a href="/">Home</a></li>
<!-- <li><a href="/s">Search</a></li>
<li><a href="/ov">Overviewer</a></li>-->
<li><a href="/+">Google+</a></li>
<li><a href="https://twitter.com/_inatri">Twitter</a></li>
<li><a href="https://github.com/inatri">GitHub</a></li>
</ul>
</div>
</div>
</body>
</html>
|
45776391d05c1a6b5929c3532fb852d361bf4bb7
|
index.md
|
index.md
|
ScatterHQ is a place to find former employees of [ClusterHQ](https://clusterhq.com)
and a place to find support for ClusterHQ open source software.
## Flocker Support
ScatterHQ will maintain a [fork of Flocker](https://github.com/ScatterHQ/flocker), an open-source Container Data Volume Manager for your Dockerized applications.
The following programmers are now available for Flocker consultancy and support:
* [Richard Wall](https://github.com/wallrj)
* [Tom Prince](https://github.com/tomprince)
* [Jean-Paul Calderone](https://github.com/exarkun)
|
ScatterHQ is a place to find former employees of [ClusterHQ](https://clusterhq.com)
and a place to find support for ClusterHQ open source software.
## Flocker Support
ScatterHQ will maintain a [fork of Flocker](https://github.com/ScatterHQ/flocker), an open-source Container Data Volume Manager for your Dockerized applications.
The following programmers are now available for Flocker consultancy and support:
* [Richard Wall](https://github.com/wallrj)
* [Tom Prince](https://github.com/tomprince)
* [Jean-Paul Calderone](https://github.com/exarkun)
* [Adam Dangoor](https://github.com/adamtheturtle)
|
Mark Adam as available for support
|
Mark Adam as available for support
|
Markdown
|
apache-2.0
|
ScatterHQ/scatterhq.github.io
|
markdown
|
## Code Before:
ScatterHQ is a place to find former employees of [ClusterHQ](https://clusterhq.com)
and a place to find support for ClusterHQ open source software.
## Flocker Support
ScatterHQ will maintain a [fork of Flocker](https://github.com/ScatterHQ/flocker), an open-source Container Data Volume Manager for your Dockerized applications.
The following programmers are now available for Flocker consultancy and support:
* [Richard Wall](https://github.com/wallrj)
* [Tom Prince](https://github.com/tomprince)
* [Jean-Paul Calderone](https://github.com/exarkun)
## Instruction:
Mark Adam as available for support
## Code After:
ScatterHQ is a place to find former employees of [ClusterHQ](https://clusterhq.com)
and a place to find support for ClusterHQ open source software.
## Flocker Support
ScatterHQ will maintain a [fork of Flocker](https://github.com/ScatterHQ/flocker), an open-source Container Data Volume Manager for your Dockerized applications.
The following programmers are now available for Flocker consultancy and support:
* [Richard Wall](https://github.com/wallrj)
* [Tom Prince](https://github.com/tomprince)
* [Jean-Paul Calderone](https://github.com/exarkun)
* [Adam Dangoor](https://github.com/adamtheturtle)
|
fd97c7dc3690f410fcde858412869902f86101e2
|
docker-compose.yml
|
docker-compose.yml
|
openhab:
build: .
net: host
command: /openhab/start.sh
|
openhab:
build: .
net: host
volumes:
- configurations:/openhab/configurations
command: /openhab/start.sh
|
Add volume mounting of configurations for dc
|
Add volume mounting of configurations for dc
This makes development with dc a bit easier as openHAB will auto-reload
config changes (actually building an image and using `docker run` for
deployment is still recommended).
Change-Id: I1df749532fd403ea52ee6a2452c92f872ba0dfa2
|
YAML
|
mit
|
guildencrantz/docker-openhab
|
yaml
|
## Code Before:
openhab:
build: .
net: host
command: /openhab/start.sh
## Instruction:
Add volume mounting of configurations for dc
This makes development with dc a bit easier as openHAB will auto-reload
config changes (actually building an image and using `docker run` for
deployment is still recommended).
Change-Id: I1df749532fd403ea52ee6a2452c92f872ba0dfa2
## Code After:
openhab:
build: .
net: host
volumes:
- configurations:/openhab/configurations
command: /openhab/start.sh
|
c572cecb0f25ffde74071b50356499d4e503477d
|
.travis.yml
|
.travis.yml
|
language: c
sudo: required
before_script:
- sudo apt-get update
- sudo apt-get install cpanminus nsis
- sudo cpanm --notest Config::AutoConf::INI ExtUtils::CBuilder File::chdir File::Basename File::Find File::Path File::Copy::Recursive IPC::Run
# Dependencies
- sh ./install-c-genericLogger.sh
- sh ./install-c-genericStack.sh
- sh ./install-c-genericHash.sh
- sh ./install-c-genericSparseArray.sh
script:
# We want to try perl standalone first
- perl CMakeObjects.PL
- rm -rf output
# ALL_IN_ONE
- cmake . -DALL_IN_ONE=ON
- make check
- make pack
- cpack -G NSIS
- make install DESTDIR=/tmp
- rm -rf output CMakeCache.txt CMakeFiles
# Not ALL_IN_ONE
- cmake .
- make check
- make pack
- cpack -G NSIS
- sudo make install
|
language: c
sudo: required
before_script:
- sudo apt-get update
- sudo apt-get install cpanminus nsis
- sudo cpanm --notest Config::AutoConf::INI ExtUtils::CBuilder File::chdir File::Basename File::Find File::Path File::Copy::Recursive IPC::Run Try::Tiny
# Dependencies
- sh ./install-c-genericLogger.sh
- sh ./install-c-genericStack.sh
- sh ./install-c-genericHash.sh
- sh ./install-c-genericSparseArray.sh
script:
# We want to try perl standalone first
- perl CMakeObjects.PL
- rm -rf output
# ALL_IN_ONE
- cmake . -DALL_IN_ONE=ON
- make check
- make pack
- cpack -G NSIS
- make install DESTDIR=/tmp
- rm -rf output CMakeCache.txt CMakeFiles
# Not ALL_IN_ONE
- cmake .
- make check
- make pack
- cpack -G NSIS
- sudo make install
|
Add Try::Tiny in perl requirements
|
Add Try::Tiny in perl requirements
|
YAML
|
mit
|
jddurand/c-marpaWrapper,jddurand/c-marpaWrapper,jddurand/c-marpaWrapper
|
yaml
|
## Code Before:
language: c
sudo: required
before_script:
- sudo apt-get update
- sudo apt-get install cpanminus nsis
- sudo cpanm --notest Config::AutoConf::INI ExtUtils::CBuilder File::chdir File::Basename File::Find File::Path File::Copy::Recursive IPC::Run
# Dependencies
- sh ./install-c-genericLogger.sh
- sh ./install-c-genericStack.sh
- sh ./install-c-genericHash.sh
- sh ./install-c-genericSparseArray.sh
script:
# We want to try perl standalone first
- perl CMakeObjects.PL
- rm -rf output
# ALL_IN_ONE
- cmake . -DALL_IN_ONE=ON
- make check
- make pack
- cpack -G NSIS
- make install DESTDIR=/tmp
- rm -rf output CMakeCache.txt CMakeFiles
# Not ALL_IN_ONE
- cmake .
- make check
- make pack
- cpack -G NSIS
- sudo make install
## Instruction:
Add Try::Tiny in perl requirements
## Code After:
language: c
sudo: required
before_script:
- sudo apt-get update
- sudo apt-get install cpanminus nsis
- sudo cpanm --notest Config::AutoConf::INI ExtUtils::CBuilder File::chdir File::Basename File::Find File::Path File::Copy::Recursive IPC::Run Try::Tiny
# Dependencies
- sh ./install-c-genericLogger.sh
- sh ./install-c-genericStack.sh
- sh ./install-c-genericHash.sh
- sh ./install-c-genericSparseArray.sh
script:
# We want to try perl standalone first
- perl CMakeObjects.PL
- rm -rf output
# ALL_IN_ONE
- cmake . -DALL_IN_ONE=ON
- make check
- make pack
- cpack -G NSIS
- make install DESTDIR=/tmp
- rm -rf output CMakeCache.txt CMakeFiles
# Not ALL_IN_ONE
- cmake .
- make check
- make pack
- cpack -G NSIS
- sudo make install
|
ee55e55b1d80771e9689ff8b4bc3b46ce4ebf706
|
.travis.yml
|
.travis.yml
|
addons:
code_climate:
repo_token: c75df5383c6ed506f57bd7281c1c41200a139a6847ad4c62d0371a23d457f8c6
language: ruby
rvm:
- 2.1.3
before_script:
- cp config/database.psql.yml config/database.yml
- psql -c 'create database hpi_swt2_test;' -U postgres
notifications:
email: false
|
addons:
code_climate:
repo_token: c75df5383c6ed506f57bd7281c1c41200a139a6847ad4c62d0371a23d457f8c6
language: ruby
rvm:
- 2.1.3
before_script:
- cp config/database.psql.yml config/database.yml
- psql -c 'create database hpi_swt2_test;' -U postgres
notifications:
email: false
deploy:
provider: heroku
api_key:
secure: WzFaSSXw6M7xCmEyfqf/Kgdik2pHtDtm/kli3E52Nsewl6i2CFA+G9Vpc/xDkkKQlokX2OnvGYqETx3jGCuvcZ75u89l8izKDPr7AP9/tz5Y491+JqZf7qiAAHCKaYmqafY8KeUNiS/7JyLoCXLM+HtIUvcdyTSh98M4Nnd0OBc=
app: event-und-raumplanung
on:
repo: hpi-swt2/event-und-raumplanung
|
Make Travis deploy to Heroku on successful build
|
Make Travis deploy to Heroku on successful build
|
YAML
|
agpl-3.0
|
chrisma/event-und-raumplanung,hpi-swt2/event-und-raumplanung,hpi-swt2/event-und-raumplanung,chrisma/event-und-raumplanung,chrisma/event-und-raumplanung
|
yaml
|
## Code Before:
addons:
code_climate:
repo_token: c75df5383c6ed506f57bd7281c1c41200a139a6847ad4c62d0371a23d457f8c6
language: ruby
rvm:
- 2.1.3
before_script:
- cp config/database.psql.yml config/database.yml
- psql -c 'create database hpi_swt2_test;' -U postgres
notifications:
email: false
## Instruction:
Make Travis deploy to Heroku on successful build
## Code After:
addons:
code_climate:
repo_token: c75df5383c6ed506f57bd7281c1c41200a139a6847ad4c62d0371a23d457f8c6
language: ruby
rvm:
- 2.1.3
before_script:
- cp config/database.psql.yml config/database.yml
- psql -c 'create database hpi_swt2_test;' -U postgres
notifications:
email: false
deploy:
provider: heroku
api_key:
secure: WzFaSSXw6M7xCmEyfqf/Kgdik2pHtDtm/kli3E52Nsewl6i2CFA+G9Vpc/xDkkKQlokX2OnvGYqETx3jGCuvcZ75u89l8izKDPr7AP9/tz5Y491+JqZf7qiAAHCKaYmqafY8KeUNiS/7JyLoCXLM+HtIUvcdyTSh98M4Nnd0OBc=
app: event-und-raumplanung
on:
repo: hpi-swt2/event-und-raumplanung
|
93a2fd8f9c74ac21e26dfc1ecaf71ffff265695e
|
sessionManagement.js
|
sessionManagement.js
|
var CONTEXT_URI = process.env.CONTEXT_URI;
exports.requiresSession = function (req, res, next) {
if (req.session.encodedUsername) {
res.cookie('_eun', req.session.encodedUsername);
next();
} else {
req.session.redirectUrl = CONTEXT_URI + req.originalUrl;
if (req.url.split('?')[1] !== undefined) {
var intent = "session.redirect";
var redirectUrl = CONTEXT_URI + req.url;
res.redirect(CONTEXT_URI + "/signup" + "?intent=" + intent + "&redirectUrl=" + encodeURIComponent(redirectUrl));
} else {
res.redirect(CONTEXT_URI + "/signup");
}
}
};
exports.setSession = function (req, res, user) {
req.session.username = user.username;
req.session.encodedUsername = user.encodedUsername;
req.session.githubUsername = user.githubUser.username;
req.session.avatarUrl = user.githubUser._json.avatar_url;
res.cookie('_eun', req.session.encodedUsername);
};
exports.resetSession = function (req) {
req.session.encodedUsername = null;
req.session.auth = null;
req.session.intent = null;
req.session.oneselfUsername = null;
req.session.username = null;
req.session.githubUsername = null;
req.session.avatarUrl = null;
};
|
var CONTEXT_URI = process.env.CONTEXT_URI;
exports.requiresSession = function (req, res, next) {
if (req.session.encodedUsername) {
res.cookie('_eun', req.session.encodedUsername);
next();
} else {
req.session.redirectUrl = CONTEXT_URI + req.originalUrl;
if (req.url.split('?')[1] !== undefined) {
var intent = "session.redirect";
var redirectUrl = CONTEXT_URI + req.url;
res.redirect(CONTEXT_URI + "/signup" + "?intent=" + intent + "&redirectUrl=" + encodeURIComponent(redirectUrl));
} else {
res.redirect(CONTEXT_URI + "/signup");
}
}
};
exports.setSession = function (req, res, user) {
req.session.username = user.username;
req.session.encodedUsername = user.encodedUsername;
req.session.githubUsername = user.githubUser.username;
req.session.avatarUrl = user.githubUser._json.avatar_url;
res.cookie('_eun', req.session.encodedUsername);
};
exports.resetSession = function (req) {
req.session.destory;
req.session.encodedUsername = null;
req.session.auth = null;
req.session.intent = null;
req.session.oneselfUsername = null;
req.session.username = null;
req.session.githubUsername = null;
req.session.avatarUrl = null;
};
|
Destroy session redis way too.
|
Destroy session redis way too.
|
JavaScript
|
agpl-3.0
|
maximilianhp/api,1self/api,maximilianhp/api,1self/api,1self/api,maximilianhp/api,1self/api
|
javascript
|
## Code Before:
var CONTEXT_URI = process.env.CONTEXT_URI;
exports.requiresSession = function (req, res, next) {
if (req.session.encodedUsername) {
res.cookie('_eun', req.session.encodedUsername);
next();
} else {
req.session.redirectUrl = CONTEXT_URI + req.originalUrl;
if (req.url.split('?')[1] !== undefined) {
var intent = "session.redirect";
var redirectUrl = CONTEXT_URI + req.url;
res.redirect(CONTEXT_URI + "/signup" + "?intent=" + intent + "&redirectUrl=" + encodeURIComponent(redirectUrl));
} else {
res.redirect(CONTEXT_URI + "/signup");
}
}
};
exports.setSession = function (req, res, user) {
req.session.username = user.username;
req.session.encodedUsername = user.encodedUsername;
req.session.githubUsername = user.githubUser.username;
req.session.avatarUrl = user.githubUser._json.avatar_url;
res.cookie('_eun', req.session.encodedUsername);
};
exports.resetSession = function (req) {
req.session.encodedUsername = null;
req.session.auth = null;
req.session.intent = null;
req.session.oneselfUsername = null;
req.session.username = null;
req.session.githubUsername = null;
req.session.avatarUrl = null;
};
## Instruction:
Destroy session redis way too.
## Code After:
var CONTEXT_URI = process.env.CONTEXT_URI;
exports.requiresSession = function (req, res, next) {
if (req.session.encodedUsername) {
res.cookie('_eun', req.session.encodedUsername);
next();
} else {
req.session.redirectUrl = CONTEXT_URI + req.originalUrl;
if (req.url.split('?')[1] !== undefined) {
var intent = "session.redirect";
var redirectUrl = CONTEXT_URI + req.url;
res.redirect(CONTEXT_URI + "/signup" + "?intent=" + intent + "&redirectUrl=" + encodeURIComponent(redirectUrl));
} else {
res.redirect(CONTEXT_URI + "/signup");
}
}
};
exports.setSession = function (req, res, user) {
req.session.username = user.username;
req.session.encodedUsername = user.encodedUsername;
req.session.githubUsername = user.githubUser.username;
req.session.avatarUrl = user.githubUser._json.avatar_url;
res.cookie('_eun', req.session.encodedUsername);
};
exports.resetSession = function (req) {
req.session.destory;
req.session.encodedUsername = null;
req.session.auth = null;
req.session.intent = null;
req.session.oneselfUsername = null;
req.session.username = null;
req.session.githubUsername = null;
req.session.avatarUrl = null;
};
|
12d239d62c293cdb1a3fa1a69df06bf9c8e65366
|
grip/github_renderer.py
|
grip/github_renderer.py
|
from flask import abort, json
import requests
def render_content(text, gfm=False, context=None, username=None, password=None):
"""Renders the specified markup using the GitHub API."""
if gfm:
url = 'https://api.github.com/markdown'
data = {'text': text, 'mode': 'gfm', 'context': context}
if context:
data['context'] = context
data = json.dumps(data)
else:
url = 'https://api.github.com/markdown/raw'
data = text
headers = {'content-type': 'text/plain'}
auth = (username, password) if username else None
r = requests.post(url, headers=headers, data=data, auth=auth)
# Relay HTTP errors
if r.status_code != 200:
try:
message = r.json()['message']
except:
message = r.text
abort(r.status_code, message)
return r.text
|
from flask import abort, json
import requests
def render_content(text, gfm=False, context=None,
username=None, password=None):
"""Renders the specified markup using the GitHub API."""
if gfm:
url = 'https://api.github.com/markdown'
data = {'text': text, 'mode': 'gfm'}
if context:
data['context'] = context
data = json.dumps(data)
else:
url = 'https://api.github.com/markdown/raw'
data = text
headers = {'content-type': 'text/plain'}
auth = (username, password) if username else None
r = requests.post(url, headers=headers, data=data, auth=auth)
# Relay HTTP errors
if r.status_code != 200:
try:
message = r.json()['message']
except:
message = r.text
abort(r.status_code, message)
return r.text
|
Remove duplicate 'context': context in GitHub renderer.
|
Remove duplicate 'context': context in GitHub renderer.
|
Python
|
mit
|
jbarreras/grip,ssundarraj/grip,joeyespo/grip,mgoddard-pivotal/grip,mgoddard-pivotal/grip,jbarreras/grip,joeyespo/grip,ssundarraj/grip
|
python
|
## Code Before:
from flask import abort, json
import requests
def render_content(text, gfm=False, context=None, username=None, password=None):
"""Renders the specified markup using the GitHub API."""
if gfm:
url = 'https://api.github.com/markdown'
data = {'text': text, 'mode': 'gfm', 'context': context}
if context:
data['context'] = context
data = json.dumps(data)
else:
url = 'https://api.github.com/markdown/raw'
data = text
headers = {'content-type': 'text/plain'}
auth = (username, password) if username else None
r = requests.post(url, headers=headers, data=data, auth=auth)
# Relay HTTP errors
if r.status_code != 200:
try:
message = r.json()['message']
except:
message = r.text
abort(r.status_code, message)
return r.text
## Instruction:
Remove duplicate 'context': context in GitHub renderer.
## Code After:
from flask import abort, json
import requests
def render_content(text, gfm=False, context=None,
username=None, password=None):
"""Renders the specified markup using the GitHub API."""
if gfm:
url = 'https://api.github.com/markdown'
data = {'text': text, 'mode': 'gfm'}
if context:
data['context'] = context
data = json.dumps(data)
else:
url = 'https://api.github.com/markdown/raw'
data = text
headers = {'content-type': 'text/plain'}
auth = (username, password) if username else None
r = requests.post(url, headers=headers, data=data, auth=auth)
# Relay HTTP errors
if r.status_code != 200:
try:
message = r.json()['message']
except:
message = r.text
abort(r.status_code, message)
return r.text
|
89481154239f368b455769b096f63da3d6525c2a
|
docs/css/code_fixer.css
|
docs/css/code_fixer.css
|
div.admonition code {
display: inline-block;
overflow-x: visible;
line-height: 18px;
color: #404040;
border: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.7);
}
div.admonition p {
margin-bottom: 5px;
}
p, ol, ul {
text-align: justify;
}
p code {
word-wrap: normal;
}
|
div.admonition code {
display: inline-block;
overflow-x: visible;
line-height: 18px;
color: #404040;
border: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.7);
}
div.admonition p {
margin-bottom: 5px;
}
p, ol, ul {
text-align: justify;
}
p code {
word-wrap: normal;
}
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
background: none;
border: none;
padding: 0;
font-size: inherit;
color: inherit;
}
|
Fix styling of code tags in headings (h1-6 tags)
|
Fix styling of code tags in headings (h1-6 tags)
|
CSS
|
mit
|
MinecraftForge/Documentation,PaleoCrafter/Documentation,tterrag1098/Documentation
|
css
|
## Code Before:
div.admonition code {
display: inline-block;
overflow-x: visible;
line-height: 18px;
color: #404040;
border: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.7);
}
div.admonition p {
margin-bottom: 5px;
}
p, ol, ul {
text-align: justify;
}
p code {
word-wrap: normal;
}
## Instruction:
Fix styling of code tags in headings (h1-6 tags)
## Code After:
div.admonition code {
display: inline-block;
overflow-x: visible;
line-height: 18px;
color: #404040;
border: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.7);
}
div.admonition p {
margin-bottom: 5px;
}
p, ol, ul {
text-align: justify;
}
p code {
word-wrap: normal;
}
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
background: none;
border: none;
padding: 0;
font-size: inherit;
color: inherit;
}
|
97a571aa380be7dba3eaa6f5bde35dd8621e4167
|
src/app/ui/library/GridSection.less
|
src/app/ui/library/GridSection.less
|
@import "../../style/variables.less";
@sectionHeadHeight: 60px; // Keep in sync with `GridSection.tsx`
.GridSection-head {
height: @sectionHeadHeight;
padding: 20px 0 0 10px;
color: @blue-grey-200;
font-size: 32px;
font-weight: 200;
}
.GridSection-toggleSelection {
color: inherit !important;
font-size: @selectionButtonSize !important;
margin: 0 0 3px 20px;
visibility: hidden;
.GridSection-head:hover &,
&.isAlwaysVisible {
visibility: visible;
}
.SvgIcon {
margin: 0 !important;
}
}
.GridSection-body {
position: relative;
}
.GridSection-dummyBox {
position: absolute;
background-color: @blue-grey-900;
}
|
@import "../../style/variables.less";
@sectionHeadHeight: 60px; // Keep in sync with `GridSection.tsx`
.GridSection-head {
height: @sectionHeadHeight;
padding: 20px 0 0 10px;
color: @blue-grey-200;
font-size: 25px;
font-weight: 200;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.GridSection-toggleSelection {
color: inherit !important;
font-size: @selectionButtonSize !important;
margin: 0 0 3px 20px;
visibility: hidden;
.GridSection-head:hover &,
&.isAlwaysVisible {
visibility: visible;
}
.SvgIcon {
margin: 0 !important;
}
}
.GridSection-body {
position: relative;
}
.GridSection-dummyBox {
position: absolute;
background-color: @blue-grey-900;
}
|
Adjust styling of section heads to work better for small sections
|
Adjust styling of section heads to work better for small sections
|
Less
|
mit
|
m0g/ansel,m0g/ansel,m0g/ansel,m0g/ansel
|
less
|
## Code Before:
@import "../../style/variables.less";
@sectionHeadHeight: 60px; // Keep in sync with `GridSection.tsx`
.GridSection-head {
height: @sectionHeadHeight;
padding: 20px 0 0 10px;
color: @blue-grey-200;
font-size: 32px;
font-weight: 200;
}
.GridSection-toggleSelection {
color: inherit !important;
font-size: @selectionButtonSize !important;
margin: 0 0 3px 20px;
visibility: hidden;
.GridSection-head:hover &,
&.isAlwaysVisible {
visibility: visible;
}
.SvgIcon {
margin: 0 !important;
}
}
.GridSection-body {
position: relative;
}
.GridSection-dummyBox {
position: absolute;
background-color: @blue-grey-900;
}
## Instruction:
Adjust styling of section heads to work better for small sections
## Code After:
@import "../../style/variables.less";
@sectionHeadHeight: 60px; // Keep in sync with `GridSection.tsx`
.GridSection-head {
height: @sectionHeadHeight;
padding: 20px 0 0 10px;
color: @blue-grey-200;
font-size: 25px;
font-weight: 200;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.GridSection-toggleSelection {
color: inherit !important;
font-size: @selectionButtonSize !important;
margin: 0 0 3px 20px;
visibility: hidden;
.GridSection-head:hover &,
&.isAlwaysVisible {
visibility: visible;
}
.SvgIcon {
margin: 0 !important;
}
}
.GridSection-body {
position: relative;
}
.GridSection-dummyBox {
position: absolute;
background-color: @blue-grey-900;
}
|
4b1d036f275487cd3a68c9cd64c8f5e98449df7f
|
docs/install.rst
|
docs/install.rst
|
Install
=======
Javascript Dependencies
-----------------------
The web uses bower to handle Javascript external dependencies::
$ bower install
Python Dependencies
-------------------
Depending on where you are installing dependencies:
In development::
$ pip install -r requirements/local.txt
For production::
$ pip install -r requirements.txt
|
Install
=======
Javascript Dependencies
-----------------------
The web uses bower to handle Javascript external dependencies::
$ npm install
$ bower install
Python Dependencies
-------------------
Depending on where you are installing dependencies:
In development::
$ pip install -r requirements/local.txt
For production::
$ pip install -r requirements.txt
|
Add minor fix to documentation
|
Add minor fix to documentation
|
reStructuredText
|
mit
|
olea/PyConES-2016,olea/PyConES-2016,olea/PyConES-2016,olea/PyConES-2016
|
restructuredtext
|
## Code Before:
Install
=======
Javascript Dependencies
-----------------------
The web uses bower to handle Javascript external dependencies::
$ bower install
Python Dependencies
-------------------
Depending on where you are installing dependencies:
In development::
$ pip install -r requirements/local.txt
For production::
$ pip install -r requirements.txt
## Instruction:
Add minor fix to documentation
## Code After:
Install
=======
Javascript Dependencies
-----------------------
The web uses bower to handle Javascript external dependencies::
$ npm install
$ bower install
Python Dependencies
-------------------
Depending on where you are installing dependencies:
In development::
$ pip install -r requirements/local.txt
For production::
$ pip install -r requirements.txt
|
d2b92a905df0a858dcf723f1f99539e6dcbdcb4d
|
_layouts/company.html
|
_layouts/company.html
|
---
layout: default
---
<div class="inner-container">
<div class="subheader">
<div class="title">
<h1 class="h4">Company News</h1>
</div>
<nav class="-row">
<a href="{{ site.baseurl }}/category/development">Announcements</a>
<a href="{{ site.baseurl }}/category/sysadmin">Podcasts</a>
<a href="{{ site.baseurl }}/category/design">Diversity</a>
<a href="{{ site.baseurl }}/category/culture">Culture</a>
</nav>
</div>
</div>
{{ content }}
|
---
layout: default
---
<div class="inner-container">
<div class="subheader">
<div class="title">
<h1 class="h4">Company News</h1>
</div>
<nav class="-row">
<a href="{{ site.baseurl }}/category/announcements">Announcements</a>
<a href="{{ site.baseurl }}/category/podcasts">Podcasts</a>
<a href="{{ site.baseurl }}/category/diversity">Diversity</a>
<a href="{{ site.baseurl }}/category/culture">Culture</a>
</nav>
</div>
</div>
{{ content }}
|
Add right urls for categories
|
Add right urls for categories
|
HTML
|
mit
|
up1/blog-1,up1/blog-1,up1/blog-1
|
html
|
## Code Before:
---
layout: default
---
<div class="inner-container">
<div class="subheader">
<div class="title">
<h1 class="h4">Company News</h1>
</div>
<nav class="-row">
<a href="{{ site.baseurl }}/category/development">Announcements</a>
<a href="{{ site.baseurl }}/category/sysadmin">Podcasts</a>
<a href="{{ site.baseurl }}/category/design">Diversity</a>
<a href="{{ site.baseurl }}/category/culture">Culture</a>
</nav>
</div>
</div>
{{ content }}
## Instruction:
Add right urls for categories
## Code After:
---
layout: default
---
<div class="inner-container">
<div class="subheader">
<div class="title">
<h1 class="h4">Company News</h1>
</div>
<nav class="-row">
<a href="{{ site.baseurl }}/category/announcements">Announcements</a>
<a href="{{ site.baseurl }}/category/podcasts">Podcasts</a>
<a href="{{ site.baseurl }}/category/diversity">Diversity</a>
<a href="{{ site.baseurl }}/category/culture">Culture</a>
</nav>
</div>
</div>
{{ content }}
|
4981204844b262553b74bf3f3c1b1b1be0ac5826
|
app.rb
|
app.rb
|
require 'sinatra'
require 'slim'
require 'data_mapper'
Slim::Engine.set_default_options :pretty => true
configure do
pwd = File.expand_path(File.dirname(__FILE__))
DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite://#{pwd}/db/tdrb.db")
end
class Task
include DataMapper::Resource
property :id, Serial
property :body, Text
property :created_at, DateTime
property :tags, CommaSeparatedList
end
DataMapper.auto_migrate!
get '/' do
slim :index
end
__END__
@@ layout
doctype 5
html
head
meta charset='utf-8'
title = @title
body
== yield
|
require 'sinatra'
require 'slim'
require 'data_mapper'
configure do
Slim::Engine.set_default_options :pretty => true
pwd = File.expand_path(File.dirname(__FILE__))
DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite://#{pwd}/db/tdrb.db")
end
class Task
include DataMapper::Resource
property :id, Serial
property :body, Text
property :created_at, DateTime
property :tags, CommaSeparatedList
end
DataMapper.auto_migrate!
get '/' do
slim :index
end
__END__
@@ layout
doctype 5
html
head
meta charset='utf-8'
title = @title
body
== yield
|
Move Slim config to configure block
|
Move Slim config to configure block
|
Ruby
|
mit
|
mybuddymichael/roodoo
|
ruby
|
## Code Before:
require 'sinatra'
require 'slim'
require 'data_mapper'
Slim::Engine.set_default_options :pretty => true
configure do
pwd = File.expand_path(File.dirname(__FILE__))
DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite://#{pwd}/db/tdrb.db")
end
class Task
include DataMapper::Resource
property :id, Serial
property :body, Text
property :created_at, DateTime
property :tags, CommaSeparatedList
end
DataMapper.auto_migrate!
get '/' do
slim :index
end
__END__
@@ layout
doctype 5
html
head
meta charset='utf-8'
title = @title
body
== yield
## Instruction:
Move Slim config to configure block
## Code After:
require 'sinatra'
require 'slim'
require 'data_mapper'
configure do
Slim::Engine.set_default_options :pretty => true
pwd = File.expand_path(File.dirname(__FILE__))
DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite://#{pwd}/db/tdrb.db")
end
class Task
include DataMapper::Resource
property :id, Serial
property :body, Text
property :created_at, DateTime
property :tags, CommaSeparatedList
end
DataMapper.auto_migrate!
get '/' do
slim :index
end
__END__
@@ layout
doctype 5
html
head
meta charset='utf-8'
title = @title
body
== yield
|
5e89a8000967ee5fc25a34d06fccaa723cb0a0c7
|
lib/pastel/color_resolver.rb
|
lib/pastel/color_resolver.rb
|
module Pastel
# Contains logic for resolving styles applied to component
#
# Used internally by {Delegator}.
#
# @api private
class ColorResolver
attr_reader :color
# Initialize ColorResolver
#
# @param [Color] color
#
# @api private
def initialize(color = Color.new)
@color = color
end
def resolve(base, *args)
unprocessed_string = args.join
base.reduce(unprocessed_string) do |component, decorator|
color.decorate(component, decorator)
end
end
end # ColorResolver
end # Pastel
|
module Pastel
# Contains logic for resolving styles applied to component
#
# Used internally by {Delegator}.
#
# @api private
class ColorResolver
attr_reader :color
# Initialize ColorResolver
#
# @param [Color] color
#
# @api private
def initialize(color = Color.new)
@color = color
end
# Resolve uncolored string
#
# @api private
def resolve(base, *args)
unprocessed_string = args.join
color.decorate(unprocessed_string, *base)
end
end # ColorResolver
end # Pastel
|
Change to simpify color resolution.
|
Change to simpify color resolution.
|
Ruby
|
mit
|
mallikarjunayaddala/pastel,dale-ackerman/pastel,peter-murach/pastel,bitgal/pastel,janusnic/pastel
|
ruby
|
## Code Before:
module Pastel
# Contains logic for resolving styles applied to component
#
# Used internally by {Delegator}.
#
# @api private
class ColorResolver
attr_reader :color
# Initialize ColorResolver
#
# @param [Color] color
#
# @api private
def initialize(color = Color.new)
@color = color
end
def resolve(base, *args)
unprocessed_string = args.join
base.reduce(unprocessed_string) do |component, decorator|
color.decorate(component, decorator)
end
end
end # ColorResolver
end # Pastel
## Instruction:
Change to simpify color resolution.
## Code After:
module Pastel
# Contains logic for resolving styles applied to component
#
# Used internally by {Delegator}.
#
# @api private
class ColorResolver
attr_reader :color
# Initialize ColorResolver
#
# @param [Color] color
#
# @api private
def initialize(color = Color.new)
@color = color
end
# Resolve uncolored string
#
# @api private
def resolve(base, *args)
unprocessed_string = args.join
color.decorate(unprocessed_string, *base)
end
end # ColorResolver
end # Pastel
|
ff2bf51f003fc5af1f62fc1aa181ca11a766c8f6
|
fs/archive/__init__.py
|
fs/archive/__init__.py
|
from __future__ import absolute_import
from __future__ import unicode_literals
import contextlib
@contextlib.contextmanager
def open_archive(fs_url, archive):
from pkg_resources import iter_entry_points
from ..opener import open_fs
from ..opener._errors import Unsupported
it = iter_entry_points('fs.archive.open_archive')
entry_point = next((ep for ep in it if archive.endswith(ep.name)), None)
if entry_point is None:
raise Unsupported(
'unknown archive extension: {}'.format(archive))
archive_opener = entry_point.load()
# if not isinstance(archive_fs, base.ArchiveFS):
# raise TypeError('bad entry point')
try:
with open_fs(fs_url) as fs:
binfile = fs.openbin(archive, 'r+' if fs.isfile(archive) else 'w')
archive_fs = archive_opener(binfile)
yield archive_fs
finally:
archive_fs.close()
binfile.close()
__all__ = ['open_archive']
|
from __future__ import absolute_import
from __future__ import unicode_literals
import contextlib
@contextlib.contextmanager
def open_archive(fs_url, archive):
from pkg_resources import iter_entry_points
from ..opener import open_fs
from ..opener._errors import Unsupported
it = iter_entry_points('fs.archive.open_archive')
entry_point = next((ep for ep in it if archive.endswith(ep.name)), None)
if entry_point is None:
raise Unsupported(
'unknown archive extension: {}'.format(archive))
archive_opener = entry_point.load()
# if not isinstance(archive_fs, base.ArchiveFS):
# raise TypeError('bad entry point')
try:
#with open_fs(fs_url) as fs:
fs = open_fs(fs_url)
binfile = fs.openbin(archive, 'r+' if fs.isfile(archive) else 'w')
archive_fs = archive_opener(binfile)
yield archive_fs
finally:
archive_fs.close()
binfile.close()
if fs is not fs_url: # close the fs if we opened it
fs.close()
__all__ = ['open_archive']
|
Make sure files and FS are properly closed in open_archive
|
Make sure files and FS are properly closed in open_archive
|
Python
|
mit
|
althonos/fs.archive
|
python
|
## Code Before:
from __future__ import absolute_import
from __future__ import unicode_literals
import contextlib
@contextlib.contextmanager
def open_archive(fs_url, archive):
from pkg_resources import iter_entry_points
from ..opener import open_fs
from ..opener._errors import Unsupported
it = iter_entry_points('fs.archive.open_archive')
entry_point = next((ep for ep in it if archive.endswith(ep.name)), None)
if entry_point is None:
raise Unsupported(
'unknown archive extension: {}'.format(archive))
archive_opener = entry_point.load()
# if not isinstance(archive_fs, base.ArchiveFS):
# raise TypeError('bad entry point')
try:
with open_fs(fs_url) as fs:
binfile = fs.openbin(archive, 'r+' if fs.isfile(archive) else 'w')
archive_fs = archive_opener(binfile)
yield archive_fs
finally:
archive_fs.close()
binfile.close()
__all__ = ['open_archive']
## Instruction:
Make sure files and FS are properly closed in open_archive
## Code After:
from __future__ import absolute_import
from __future__ import unicode_literals
import contextlib
@contextlib.contextmanager
def open_archive(fs_url, archive):
from pkg_resources import iter_entry_points
from ..opener import open_fs
from ..opener._errors import Unsupported
it = iter_entry_points('fs.archive.open_archive')
entry_point = next((ep for ep in it if archive.endswith(ep.name)), None)
if entry_point is None:
raise Unsupported(
'unknown archive extension: {}'.format(archive))
archive_opener = entry_point.load()
# if not isinstance(archive_fs, base.ArchiveFS):
# raise TypeError('bad entry point')
try:
#with open_fs(fs_url) as fs:
fs = open_fs(fs_url)
binfile = fs.openbin(archive, 'r+' if fs.isfile(archive) else 'w')
archive_fs = archive_opener(binfile)
yield archive_fs
finally:
archive_fs.close()
binfile.close()
if fs is not fs_url: # close the fs if we opened it
fs.close()
__all__ = ['open_archive']
|
0398047692e8379a071fcf66cf40b4474ee9609b
|
README.md
|
README.md
|
Deliver Gitlab code push notifications to a [Slack](https://slack.com/) channel
[](https://magnum-ci.com/public/ebcfe15f396d8c1f4b3692986615e83f/builds)
## Install
Clone repository and install dependencies:
```
git clone [email protected]:doejo/gitlab-slack.git
cd gitlab-slack
bundle install
```
## Configure
Application requires the following environment variables to function:
- `SLACK_TEAM` - Team name on Slack
- `SLACK_TOKEN` - Integration token
- `SLACK_CHANNEL` - Channel name to post updates to
- `SLACK_USER` - Name of the user that sends notifications
## Usage
Application accepts incoming push payloads from Gitlab on `/receive` endpoint via `POST` request.
To start application just run:
```
foreman start
```
## Deployment
You can deploy this application to Heroku for free:
```
heroku create
heroku config SLACK_TEAM=team SLACK_TOKEN=token SLACK_CHANNEl=ops SLACK_USER=gitlab
git push heroku master
```
## Testing
Execute test suite:
```
bundle exec rake test
```
## License
The MIT License (MIT)
Copyright (c) 2014 Doejo LLC
|
Deliver Gitlab code push notifications to a [Slack](https://slack.com/) channel
## Install
Clone repository and install dependencies:
```
git clone [email protected]:doejo/gitlab-slack.git
cd gitlab-slack
bundle install
```
## Configure
Application requires the following environment variables to function:
- `SLACK_TEAM` - Team name on Slack
- `SLACK_TOKEN` - Integration token
- `SLACK_CHANNEL` - Channel name to post updates to
- `SLACK_USER` - Name of the user that sends notifications
## Usage
Application accepts incoming push payloads from Gitlab on `/receive` endpoint via `POST` request.
To start application just run:
```
foreman start
```
## Deployment
You can deploy this application to Heroku for free:
```
heroku create
heroku config SLACK_TEAM=team SLACK_TOKEN=token SLACK_CHANNEl=ops SLACK_USER=gitlab
git push heroku master
```
## Testing
Execute test suite:
```
bundle exec rake test
```
## License
The MIT License (MIT)
Copyright (c) 2014 Doejo LLC
|
Remove build status from readme
|
Remove build status from readme
|
Markdown
|
mit
|
doejo/gitlab-slack
|
markdown
|
## Code Before:
Deliver Gitlab code push notifications to a [Slack](https://slack.com/) channel
[](https://magnum-ci.com/public/ebcfe15f396d8c1f4b3692986615e83f/builds)
## Install
Clone repository and install dependencies:
```
git clone [email protected]:doejo/gitlab-slack.git
cd gitlab-slack
bundle install
```
## Configure
Application requires the following environment variables to function:
- `SLACK_TEAM` - Team name on Slack
- `SLACK_TOKEN` - Integration token
- `SLACK_CHANNEL` - Channel name to post updates to
- `SLACK_USER` - Name of the user that sends notifications
## Usage
Application accepts incoming push payloads from Gitlab on `/receive` endpoint via `POST` request.
To start application just run:
```
foreman start
```
## Deployment
You can deploy this application to Heroku for free:
```
heroku create
heroku config SLACK_TEAM=team SLACK_TOKEN=token SLACK_CHANNEl=ops SLACK_USER=gitlab
git push heroku master
```
## Testing
Execute test suite:
```
bundle exec rake test
```
## License
The MIT License (MIT)
Copyright (c) 2014 Doejo LLC
## Instruction:
Remove build status from readme
## Code After:
Deliver Gitlab code push notifications to a [Slack](https://slack.com/) channel
## Install
Clone repository and install dependencies:
```
git clone [email protected]:doejo/gitlab-slack.git
cd gitlab-slack
bundle install
```
## Configure
Application requires the following environment variables to function:
- `SLACK_TEAM` - Team name on Slack
- `SLACK_TOKEN` - Integration token
- `SLACK_CHANNEL` - Channel name to post updates to
- `SLACK_USER` - Name of the user that sends notifications
## Usage
Application accepts incoming push payloads from Gitlab on `/receive` endpoint via `POST` request.
To start application just run:
```
foreman start
```
## Deployment
You can deploy this application to Heroku for free:
```
heroku create
heroku config SLACK_TEAM=team SLACK_TOKEN=token SLACK_CHANNEl=ops SLACK_USER=gitlab
git push heroku master
```
## Testing
Execute test suite:
```
bundle exec rake test
```
## License
The MIT License (MIT)
Copyright (c) 2014 Doejo LLC
|
0dd77dbaa6f8f60e6ebbadbbef027878a54cc181
|
app/views/games/edit.html.erb
|
app/views/games/edit.html.erb
|
<%= form_for @game, url: location_sport_game_path(@location, @sport, @game) do |f| %>
<%= render partial:"edit_form", locals: {f: f, game: @game} %>
<% end %>
<%= render partial:"errors", locals: {game: @game} %>
|
<%= render partial:"errors", locals: {game: @game} %>
<%= form_for @game, url: location_sport_game_path(@location, @sport, @game) do |f| %>
<%= render partial:"edit_form", locals: {f: f, game: @game} %>
<% end %>
|
Move error partial to top
|
Move error partial to top
|
HTML+ERB
|
mit
|
Bastonis/HuddleUp,Bastonis/HuddleUp,Bastonis/SquareUp,Bastonis/SquareUp,Revolaution/HuddleUp,Revolaution/HuddleUp,Bastonis/SquareUp,Revolaution/HuddleUp,Bastonis/HuddleUp
|
html+erb
|
## Code Before:
<%= form_for @game, url: location_sport_game_path(@location, @sport, @game) do |f| %>
<%= render partial:"edit_form", locals: {f: f, game: @game} %>
<% end %>
<%= render partial:"errors", locals: {game: @game} %>
## Instruction:
Move error partial to top
## Code After:
<%= render partial:"errors", locals: {game: @game} %>
<%= form_for @game, url: location_sport_game_path(@location, @sport, @game) do |f| %>
<%= render partial:"edit_form", locals: {f: f, game: @game} %>
<% end %>
|
fec94bc110ad5aa7573899ffe9b44ef3a2314bca
|
project/build/project.scala
|
project/build/project.scala
|
import sbt._
trait Defaults {
def androidPlatformName = "android-4"
}
class Parent(info: ProjectInfo) extends ParentProject(info) {
override def shouldCheckOutputDirectories = false
override def updateAction = task { None }
lazy val main = project(".", "Oh! Launch!", new MainProject(_))
lazy val tests = project("tests", "tests", new TestProject(_), main)
class MainProject(info: ProjectInfo) extends AndroidProject(info) with Defaults with MarketPublish with TypedResources {
val keyalias = "change-me"
val scalatest = "org.scalatest" % "scalatest" % "1.3" % "test"
}
class TestProject(info: ProjectInfo) extends AndroidTestProject(info) with Defaults
}
|
import sbt._
trait Defaults {
def androidPlatformName = "android-4"
}
class Parent(info: ProjectInfo) extends ParentProject(info) {
override def shouldCheckOutputDirectories = false
override def updateAction = task { None }
lazy val main = project(".", "Oh! Launch!", new MainProject(_))
lazy val tests = project("tests", "tests", new TestProject(_), main)
class MainProject(info: ProjectInfo) extends AndroidProject(info) with Defaults with MarketPublish with TypedResources {
val keyalias = "change-me"
val scalatest = "org.scalatest" % "scalatest" % "1.3" % "test"
// https://github.com/jberkel/android-plugin/issues/24 :
val toKeep = List(
"scala.Function1"
)
val keepOptions = toKeep.map { "-keep public class " + _ }
val dontNote = List(
"scala.Enumeration"
)
val dontNoteOptions = dontNote.map { "-dontnote " + _ }
override def proguardOption = {
(super.proguardOption ++ keepOptions ++ dontNoteOptions) mkString " "
}
}
class TestProject(info: ProjectInfo) extends AndroidTestProject(info) with Defaults
}
|
Make the proguard step quieter.
|
Make the proguard step quieter.
|
Scala
|
bsd-3-clause
|
mike-burns/ohlaunch
|
scala
|
## Code Before:
import sbt._
trait Defaults {
def androidPlatformName = "android-4"
}
class Parent(info: ProjectInfo) extends ParentProject(info) {
override def shouldCheckOutputDirectories = false
override def updateAction = task { None }
lazy val main = project(".", "Oh! Launch!", new MainProject(_))
lazy val tests = project("tests", "tests", new TestProject(_), main)
class MainProject(info: ProjectInfo) extends AndroidProject(info) with Defaults with MarketPublish with TypedResources {
val keyalias = "change-me"
val scalatest = "org.scalatest" % "scalatest" % "1.3" % "test"
}
class TestProject(info: ProjectInfo) extends AndroidTestProject(info) with Defaults
}
## Instruction:
Make the proguard step quieter.
## Code After:
import sbt._
trait Defaults {
def androidPlatformName = "android-4"
}
class Parent(info: ProjectInfo) extends ParentProject(info) {
override def shouldCheckOutputDirectories = false
override def updateAction = task { None }
lazy val main = project(".", "Oh! Launch!", new MainProject(_))
lazy val tests = project("tests", "tests", new TestProject(_), main)
class MainProject(info: ProjectInfo) extends AndroidProject(info) with Defaults with MarketPublish with TypedResources {
val keyalias = "change-me"
val scalatest = "org.scalatest" % "scalatest" % "1.3" % "test"
// https://github.com/jberkel/android-plugin/issues/24 :
val toKeep = List(
"scala.Function1"
)
val keepOptions = toKeep.map { "-keep public class " + _ }
val dontNote = List(
"scala.Enumeration"
)
val dontNoteOptions = dontNote.map { "-dontnote " + _ }
override def proguardOption = {
(super.proguardOption ++ keepOptions ++ dontNoteOptions) mkString " "
}
}
class TestProject(info: ProjectInfo) extends AndroidTestProject(info) with Defaults
}
|
50b0e11e5ee672497ae45b70e47d4ccba25ae9c8
|
meta/main.yml
|
meta/main.yml
|
---
galaxy_info:
author: Mark Kusch
description: Role for base configuration of Ansible roles developed at Silpion.
company: http://silpion.de
license: Apache 2
min_ansible_version: 2.0.0.2
platforms:
- name: EL
versions:
- 6
- name: Fedora
versions:
- 20
- name: Ubuntu
versions:
- trusty
- name: Debian
versions:
- wheezy
- name: Archlinux
versions:
- all
categories:
- system
dependencies:
- { role: "https://github.com/silpion/ansible-lib,,silpion.lib" }
|
---
galaxy_info:
author: Mark Kusch
description: Role for base configuration of Ansible roles developed at Silpion.
company: http://silpion.de
license: Apache 2
min_ansible_version: 2.0.0.2
platforms:
- name: EL
versions:
- 6
- name: Fedora
versions:
- 20
- name: Ubuntu
versions:
- trusty
- name: Debian
versions:
- wheezy
- name: Archlinux
versions:
- all
categories:
- system
dependencies:
src: "https://github.com/silpion/ansible-lib"
name: silpion.lib
|
Fix deprecation warning for ansible-galaxy
|
Fix deprecation warning for ansible-galaxy
Signed-off-by: Mark Kusch <[email protected]>
|
YAML
|
apache-2.0
|
silpion/ansible-util,silpion/ansible-util,AlbanAndrieu/ansible-util,AlbanAndrieu/ansible-util
|
yaml
|
## Code Before:
---
galaxy_info:
author: Mark Kusch
description: Role for base configuration of Ansible roles developed at Silpion.
company: http://silpion.de
license: Apache 2
min_ansible_version: 2.0.0.2
platforms:
- name: EL
versions:
- 6
- name: Fedora
versions:
- 20
- name: Ubuntu
versions:
- trusty
- name: Debian
versions:
- wheezy
- name: Archlinux
versions:
- all
categories:
- system
dependencies:
- { role: "https://github.com/silpion/ansible-lib,,silpion.lib" }
## Instruction:
Fix deprecation warning for ansible-galaxy
Signed-off-by: Mark Kusch <[email protected]>
## Code After:
---
galaxy_info:
author: Mark Kusch
description: Role for base configuration of Ansible roles developed at Silpion.
company: http://silpion.de
license: Apache 2
min_ansible_version: 2.0.0.2
platforms:
- name: EL
versions:
- 6
- name: Fedora
versions:
- 20
- name: Ubuntu
versions:
- trusty
- name: Debian
versions:
- wheezy
- name: Archlinux
versions:
- all
categories:
- system
dependencies:
src: "https://github.com/silpion/ansible-lib"
name: silpion.lib
|
d26c1990740f6226b344a8585a1423cb312576fb
|
Casks/munki.rb
|
Casks/munki.rb
|
cask :v1 => 'munki' do
version '2.1.1.2352'
sha256 'd2287454a1b3aa66ef49e41a34dfa55cfffd45d3e00de5d2288b3fd7ced2e42c'
url "https://github.com/munki/munki/releases/download/v#{version}/munkitools-#{version}.pkg"
appcast 'https://github.com/munki/munki/releases.atom'
name 'Munki'
homepage 'http://munki.github.io/munki/'
license :apache
pkg "munkitools-#{version}.pkg"
uninstall :pkgutil => 'com.googlecode.munki.*'
end
|
cask :v1 => 'munki' do
version '2.1.1.2352'
sha256 'd2287454a1b3aa66ef49e41a34dfa55cfffd45d3e00de5d2288b3fd7ced2e42c'
url "https://github.com/munki/munki/releases/download/v#{version}/munkitools-#{version}.pkg"
appcast 'https://github.com/munki/munki/releases.atom'
name 'Munki'
homepage 'https://www.munki.org/munki/'
license :apache
pkg "munkitools-#{version}.pkg"
uninstall :pkgutil => 'com.googlecode.munki.*'
end
|
Fix homepage to use SSL in Munki Cask
|
Fix homepage to use SSL in Munki Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
Ruby
|
bsd-2-clause
|
forevergenin/homebrew-cask,af/homebrew-cask,jconley/homebrew-cask,Nitecon/homebrew-cask,napaxton/homebrew-cask,andersonba/homebrew-cask,goxberry/homebrew-cask,mahori/homebrew-cask,nathansgreen/homebrew-cask,andrewdisley/homebrew-cask,sscotth/homebrew-cask,markthetech/homebrew-cask,chino/homebrew-cask,zerrot/homebrew-cask,alexg0/homebrew-cask,illusionfield/homebrew-cask,jamesmlees/homebrew-cask,inta/homebrew-cask,daften/homebrew-cask,jgarber623/homebrew-cask,alebcay/homebrew-cask,englishm/homebrew-cask,shishi/homebrew-cask,phpwutz/homebrew-cask,kamilboratynski/homebrew-cask,aguynamedryan/homebrew-cask,skyyuan/homebrew-cask,fharbe/homebrew-cask,adriweb/homebrew-cask,doits/homebrew-cask,mazehall/homebrew-cask,Saklad5/homebrew-cask,schneidmaster/homebrew-cask,jangalinski/homebrew-cask,howie/homebrew-cask,JoelLarson/homebrew-cask,skyyuan/homebrew-cask,deanmorin/homebrew-cask,tangestani/homebrew-cask,santoshsahoo/homebrew-cask,lauantai/homebrew-cask,adrianchia/homebrew-cask,Labutin/homebrew-cask,stevehedrick/homebrew-cask,andyli/homebrew-cask,dvdoliveira/homebrew-cask,hovancik/homebrew-cask,miccal/homebrew-cask,cblecker/homebrew-cask,githubutilities/homebrew-cask,joschi/homebrew-cask,cobyism/homebrew-cask,SamiHiltunen/homebrew-cask,arronmabrey/homebrew-cask,danielgomezrico/homebrew-cask,kryhear/homebrew-cask,nicolas-brousse/homebrew-cask,daften/homebrew-cask,reitermarkus/homebrew-cask,moimikey/homebrew-cask,morganestes/homebrew-cask,phpwutz/homebrew-cask,BenjaminHCCarr/homebrew-cask,jawshooah/homebrew-cask,chino/homebrew-cask,royalwang/homebrew-cask,cclauss/homebrew-cask,sparrc/homebrew-cask,miku/homebrew-cask,jiashuw/homebrew-cask,xight/homebrew-cask,ohammersmith/homebrew-cask,reelsense/homebrew-cask,mokagio/homebrew-cask,0rax/homebrew-cask,rogeriopradoj/homebrew-cask,johnjelinek/homebrew-cask,bkono/homebrew-cask,haha1903/homebrew-cask,lifepillar/homebrew-cask,stigkj/homebrew-caskroom-cask,lifepillar/homebrew-cask,patresi/homebrew-cask,sosedoff/homebrew-cask,royalwang/homebrew-cask,enriclluelles/homebrew-cask,jedahan/homebrew-cask,mjgardner/homebrew-cask,mathbunnyru/homebrew-cask,esebastian/homebrew-cask,nysthee/homebrew-cask,malob/homebrew-cask,diguage/homebrew-cask,fkrone/homebrew-cask,josa42/homebrew-cask,bchatard/homebrew-cask,hanxue/caskroom,diguage/homebrew-cask,guylabs/homebrew-cask,bosr/homebrew-cask,scottsuch/homebrew-cask,decrement/homebrew-cask,bsiddiqui/homebrew-cask,hristozov/homebrew-cask,kolomiichenko/homebrew-cask,SamiHiltunen/homebrew-cask,devmynd/homebrew-cask,genewoo/homebrew-cask,kievechua/homebrew-cask,paulbreslin/homebrew-cask,mjdescy/homebrew-cask,13k/homebrew-cask,mchlrmrz/homebrew-cask,maxnordlund/homebrew-cask,zeusdeux/homebrew-cask,mfpierre/homebrew-cask,scribblemaniac/homebrew-cask,nathanielvarona/homebrew-cask,kpearson/homebrew-cask,genewoo/homebrew-cask,jhowtan/homebrew-cask,jacobdam/homebrew-cask,shonjir/homebrew-cask,rogeriopradoj/homebrew-cask,kpearson/homebrew-cask,kTitan/homebrew-cask,astorije/homebrew-cask,Hywan/homebrew-cask,nickpellant/homebrew-cask,jen20/homebrew-cask,flaviocamilo/homebrew-cask,dvdoliveira/homebrew-cask,AnastasiaSulyagina/homebrew-cask,nathancahill/homebrew-cask,kolomiichenko/homebrew-cask,hyuna917/homebrew-cask,dustinblackman/homebrew-cask,thehunmonkgroup/homebrew-cask,taherio/homebrew-cask,markhuber/homebrew-cask,jacobbednarz/homebrew-cask,kkdd/homebrew-cask,michelegera/homebrew-cask,nrlquaker/homebrew-cask,atsuyim/homebrew-cask,afh/homebrew-cask,gabrielizaias/homebrew-cask,yurrriq/homebrew-cask,githubutilities/homebrew-cask,tjnycum/homebrew-cask,epmatsw/homebrew-cask,fazo96/homebrew-cask,leonmachadowilcox/homebrew-cask,shishi/homebrew-cask,cohei/homebrew-cask,gguillotte/homebrew-cask,Hywan/homebrew-cask,MicTech/homebrew-cask,n8henrie/homebrew-cask,imgarylai/homebrew-cask,norio-nomura/homebrew-cask,bric3/homebrew-cask,mwek/homebrew-cask,Keloran/homebrew-cask,tedski/homebrew-cask,AnastasiaSulyagina/homebrew-cask,ctrevino/homebrew-cask,ericbn/homebrew-cask,tjnycum/homebrew-cask,jonathanwiesel/homebrew-cask,johndbritton/homebrew-cask,diogodamiani/homebrew-cask,samnung/homebrew-cask,nightscape/homebrew-cask,neil-ca-moore/homebrew-cask,miguelfrde/homebrew-cask,bsiddiqui/homebrew-cask,ftiff/homebrew-cask,muan/homebrew-cask,sjackman/homebrew-cask,neil-ca-moore/homebrew-cask,katoquro/homebrew-cask,remko/homebrew-cask,retrography/homebrew-cask,koenrh/homebrew-cask,victorpopkov/homebrew-cask,guerrero/homebrew-cask,stephenwade/homebrew-cask,kei-yamazaki/homebrew-cask,inta/homebrew-cask,vigosan/homebrew-cask,andyli/homebrew-cask,af/homebrew-cask,nickpellant/homebrew-cask,devmynd/homebrew-cask,mkozjak/homebrew-cask,chuanxd/homebrew-cask,JacopKane/homebrew-cask,bchatard/homebrew-cask,gmkey/homebrew-cask,sscotth/homebrew-cask,miccal/homebrew-cask,colindean/homebrew-cask,tedbundyjr/homebrew-cask,christophermanning/homebrew-cask,esebastian/homebrew-cask,dieterdemeyer/homebrew-cask,coeligena/homebrew-customized,Dremora/homebrew-cask,Whoaa512/homebrew-cask,lumaxis/homebrew-cask,christer155/homebrew-cask,robertgzr/homebrew-cask,JikkuJose/homebrew-cask,bgandon/homebrew-cask,zerrot/homebrew-cask,frapposelli/homebrew-cask,sosedoff/homebrew-cask,timsutton/homebrew-cask,dieterdemeyer/homebrew-cask,tedski/homebrew-cask,asbachb/homebrew-cask,n0ts/homebrew-cask,tyage/homebrew-cask,afdnlw/homebrew-cask,stevehedrick/homebrew-cask,gurghet/homebrew-cask,n8henrie/homebrew-cask,cobyism/homebrew-cask,Dremora/homebrew-cask,leonmachadowilcox/homebrew-cask,shoichiaizawa/homebrew-cask,dunn/homebrew-cask,jeroenj/homebrew-cask,jeroenj/homebrew-cask,dspeckhard/homebrew-cask,gabrielizaias/homebrew-cask,gibsjose/homebrew-cask,caskroom/homebrew-cask,elyscape/homebrew-cask,mauricerkelly/homebrew-cask,syscrusher/homebrew-cask,imgarylai/homebrew-cask,colindunn/homebrew-cask,3van/homebrew-cask,drostron/homebrew-cask,ohammersmith/homebrew-cask,mlocher/homebrew-cask,mwean/homebrew-cask,JosephViolago/homebrew-cask,jpodlech/homebrew-cask,uetchy/homebrew-cask,rcuza/homebrew-cask,guerrero/homebrew-cask,mauricerkelly/homebrew-cask,spruceb/homebrew-cask,tjnycum/homebrew-cask,hellosky806/homebrew-cask,LaurentFough/homebrew-cask,kronicd/homebrew-cask,ianyh/homebrew-cask,gibsjose/homebrew-cask,sanyer/homebrew-cask,lucasmezencio/homebrew-cask,stevenmaguire/homebrew-cask,tmoreira2020/homebrew,rickychilcott/homebrew-cask,ahvigil/homebrew-cask,seanorama/homebrew-cask,Ngrd/homebrew-cask,mchlrmrz/homebrew-cask,kevyau/homebrew-cask,esebastian/homebrew-cask,illusionfield/homebrew-cask,iAmGhost/homebrew-cask,sanchezm/homebrew-cask,jppelteret/homebrew-cask,thehunmonkgroup/homebrew-cask,mwilmer/homebrew-cask,mariusbutuc/homebrew-cask,sohtsuka/homebrew-cask,danielbayley/homebrew-cask,zhuzihhhh/homebrew-cask,scottsuch/homebrew-cask,reitermarkus/homebrew-cask,nightscape/homebrew-cask,ywfwj2008/homebrew-cask,okket/homebrew-cask,pacav69/homebrew-cask,mgryszko/homebrew-cask,kostasdizas/homebrew-cask,kevyau/homebrew-cask,adelinofaria/homebrew-cask,nivanchikov/homebrew-cask,mchlrmrz/homebrew-cask,jawshooah/homebrew-cask,cprecioso/homebrew-cask,ksylvan/homebrew-cask,6uclz1/homebrew-cask,xyb/homebrew-cask,jayshao/homebrew-cask,miguelfrde/homebrew-cask,bosr/homebrew-cask,athrunsun/homebrew-cask,tarwich/homebrew-cask,lvicentesanchez/homebrew-cask,athrunsun/homebrew-cask,kryhear/homebrew-cask,wickles/homebrew-cask,johnste/homebrew-cask,jpmat296/homebrew-cask,qbmiller/homebrew-cask,Ibuprofen/homebrew-cask,Ephemera/homebrew-cask,kiliankoe/homebrew-cask,Fedalto/homebrew-cask,kamilboratynski/homebrew-cask,chrisfinazzo/homebrew-cask,caskroom/homebrew-cask,retbrown/homebrew-cask,samshadwell/homebrew-cask,hakamadare/homebrew-cask,vin047/homebrew-cask,miccal/homebrew-cask,MisumiRize/homebrew-cask,scw/homebrew-cask,singingwolfboy/homebrew-cask,shanonvl/homebrew-cask,cliffcotino/homebrew-cask,Nitecon/homebrew-cask,ksato9700/homebrew-cask,sscotth/homebrew-cask,corbt/homebrew-cask,mishari/homebrew-cask,fazo96/homebrew-cask,singingwolfboy/homebrew-cask,moogar0880/homebrew-cask,vuquoctuan/homebrew-cask,ctrevino/homebrew-cask,lauantai/homebrew-cask,otaran/homebrew-cask,victorpopkov/homebrew-cask,fly19890211/homebrew-cask,koenrh/homebrew-cask,yurrriq/homebrew-cask,Bombenleger/homebrew-cask,neverfox/homebrew-cask,mishari/homebrew-cask,mattrobenolt/homebrew-cask,pkq/homebrew-cask,jamesmlees/homebrew-cask,y00rb/homebrew-cask,tarwich/homebrew-cask,flaviocamilo/homebrew-cask,claui/homebrew-cask,zmwangx/homebrew-cask,ftiff/homebrew-cask,bendoerr/homebrew-cask,helloIAmPau/homebrew-cask,wayou/homebrew-cask,lcasey001/homebrew-cask,afdnlw/homebrew-cask,wickedsp1d3r/homebrew-cask,bcaceiro/homebrew-cask,diogodamiani/homebrew-cask,mingzhi22/homebrew-cask,hovancik/homebrew-cask,christer155/homebrew-cask,guylabs/homebrew-cask,MircoT/homebrew-cask,joshka/homebrew-cask,jellyfishcoder/homebrew-cask,samshadwell/homebrew-cask,codeurge/homebrew-cask,johan/homebrew-cask,nathansgreen/homebrew-cask,drostron/homebrew-cask,danielgomezrico/homebrew-cask,nrlquaker/homebrew-cask,lantrix/homebrew-cask,jrwesolo/homebrew-cask,Bombenleger/homebrew-cask,fly19890211/homebrew-cask,paour/homebrew-cask,exherb/homebrew-cask,linc01n/homebrew-cask,astorije/homebrew-cask,kTitan/homebrew-cask,xight/homebrew-cask,CameronGarrett/homebrew-cask,mikem/homebrew-cask,johnste/homebrew-cask,colindean/homebrew-cask,FredLackeyOfficial/homebrew-cask,imgarylai/homebrew-cask,mjgardner/homebrew-cask,bric3/homebrew-cask,LaurentFough/homebrew-cask,otaran/homebrew-cask,blogabe/homebrew-cask,samnung/homebrew-cask,buo/homebrew-cask,cedwardsmedia/homebrew-cask,gurghet/homebrew-cask,Ephemera/homebrew-cask,riyad/homebrew-cask,johnjelinek/homebrew-cask,ddm/homebrew-cask,nrlquaker/homebrew-cask,qnm/homebrew-cask,danielbayley/homebrew-cask,antogg/homebrew-cask,nicolas-brousse/homebrew-cask,wuman/homebrew-cask,jedahan/homebrew-cask,tmoreira2020/homebrew,gmkey/homebrew-cask,sebcode/homebrew-cask,JoelLarson/homebrew-cask,ahundt/homebrew-cask,mingzhi22/homebrew-cask,6uclz1/homebrew-cask,JacopKane/homebrew-cask,napaxton/homebrew-cask,ajbw/homebrew-cask,akiomik/homebrew-cask,giannitm/homebrew-cask,schneidmaster/homebrew-cask,xight/homebrew-cask,samdoran/homebrew-cask,scribblemaniac/homebrew-cask,jeroenseegers/homebrew-cask,kesara/homebrew-cask,sohtsuka/homebrew-cask,moonboots/homebrew-cask,rogeriopradoj/homebrew-cask,ebraminio/homebrew-cask,zeusdeux/homebrew-cask,mhubig/homebrew-cask,chadcatlett/caskroom-homebrew-cask,BahtiyarB/homebrew-cask,wickles/homebrew-cask,Ibuprofen/homebrew-cask,wmorin/homebrew-cask,sanyer/homebrew-cask,chadcatlett/caskroom-homebrew-cask,gyndav/homebrew-cask,jasmas/homebrew-cask,thii/homebrew-cask,wesen/homebrew-cask,yuhki50/homebrew-cask,renard/homebrew-cask,malford/homebrew-cask,psibre/homebrew-cask,yutarody/homebrew-cask,leipert/homebrew-cask,syscrusher/homebrew-cask,epardee/homebrew-cask,qnm/homebrew-cask,arronmabrey/homebrew-cask,RogerThiede/homebrew-cask,ericbn/homebrew-cask,a-x-/homebrew-cask,aguynamedryan/homebrew-cask,tranc99/homebrew-cask,pinut/homebrew-cask,Amorymeltzer/homebrew-cask,lukeadams/homebrew-cask,lukasbestle/homebrew-cask,arranubels/homebrew-cask,ayohrling/homebrew-cask,claui/homebrew-cask,kei-yamazaki/homebrew-cask,faun/homebrew-cask,wastrachan/homebrew-cask,d/homebrew-cask,malob/homebrew-cask,xcezx/homebrew-cask,perfide/homebrew-cask,renaudguerin/homebrew-cask,BahtiyarB/homebrew-cask,underyx/homebrew-cask,coeligena/homebrew-customized,greg5green/homebrew-cask,hvisage/homebrew-cask,hanxue/caskroom,klane/homebrew-cask,gerrymiller/homebrew-cask,MichaelPei/homebrew-cask,SentinelWarren/homebrew-cask,cfillion/homebrew-cask,helloIAmPau/homebrew-cask,markthetech/homebrew-cask,hackhandslabs/homebrew-cask,johntrandall/homebrew-cask,elnappo/homebrew-cask,maxnordlund/homebrew-cask,vuquoctuan/homebrew-cask,crmne/homebrew-cask,opsdev-ws/homebrew-cask,lukeadams/homebrew-cask,rubenerd/homebrew-cask,moimikey/homebrew-cask,coneman/homebrew-cask,blainesch/homebrew-cask,kongslund/homebrew-cask,jalaziz/homebrew-cask,robbiethegeek/homebrew-cask,pablote/homebrew-cask,kuno/homebrew-cask,dspeckhard/homebrew-cask,iamso/homebrew-cask,inz/homebrew-cask,gyndav/homebrew-cask,dcondrey/homebrew-cask,jmeridth/homebrew-cask,kteru/homebrew-cask,MoOx/homebrew-cask,hakamadare/homebrew-cask,tjt263/homebrew-cask,skatsuta/homebrew-cask,seanorama/homebrew-cask,jpodlech/homebrew-cask,Gasol/homebrew-cask,adelinofaria/homebrew-cask,jaredsampson/homebrew-cask,tangestani/homebrew-cask,optikfluffel/homebrew-cask,toonetown/homebrew-cask,mikem/homebrew-cask,kingthorin/homebrew-cask,ajbw/homebrew-cask,opsdev-ws/homebrew-cask,miku/homebrew-cask,jasmas/homebrew-cask,wickedsp1d3r/homebrew-cask,Fedalto/homebrew-cask,Amorymeltzer/homebrew-cask,troyxmccall/homebrew-cask,jeroenseegers/homebrew-cask,spruceb/homebrew-cask,brianshumate/homebrew-cask,chrisfinazzo/homebrew-cask,toonetown/homebrew-cask,vigosan/homebrew-cask,howie/homebrew-cask,ebraminio/homebrew-cask,sirodoht/homebrew-cask,chrisRidgers/homebrew-cask,BenjaminHCCarr/homebrew-cask,paulbreslin/homebrew-cask,dwkns/homebrew-cask,fkrone/homebrew-cask,malob/homebrew-cask,tsparber/homebrew-cask,chrisRidgers/homebrew-cask,christophermanning/homebrew-cask,puffdad/homebrew-cask,JacopKane/homebrew-cask,wKovacs64/homebrew-cask,aktau/homebrew-cask,stonehippo/homebrew-cask,albertico/homebrew-cask,mattrobenolt/homebrew-cask,MoOx/homebrew-cask,ianyh/homebrew-cask,My2ndAngelic/homebrew-cask,gerrypower/homebrew-cask,gilesdring/homebrew-cask,mathbunnyru/homebrew-cask,yurikoles/homebrew-cask,RogerThiede/homebrew-cask,kingthorin/homebrew-cask,elnappo/homebrew-cask,exherb/homebrew-cask,dictcp/homebrew-cask,rajiv/homebrew-cask,tolbkni/homebrew-cask,deiga/homebrew-cask,chrisfinazzo/homebrew-cask,bkono/homebrew-cask,taherio/homebrew-cask,ddm/homebrew-cask,rajiv/homebrew-cask,tyage/homebrew-cask,samdoran/homebrew-cask,bric3/homebrew-cask,jgarber623/homebrew-cask,n0ts/homebrew-cask,Gasol/homebrew-cask,nysthee/homebrew-cask,kirikiriyamama/homebrew-cask,aktau/homebrew-cask,mattfelsen/homebrew-cask,linc01n/homebrew-cask,arranubels/homebrew-cask,robbiethegeek/homebrew-cask,fanquake/homebrew-cask,onlynone/homebrew-cask,lucasmezencio/homebrew-cask,dictcp/homebrew-cask,frapposelli/homebrew-cask,ldong/homebrew-cask,forevergenin/homebrew-cask,FredLackeyOfficial/homebrew-cask,y00rb/homebrew-cask,barravi/homebrew-cask,mjdescy/homebrew-cask,boecko/homebrew-cask,13k/homebrew-cask,hellosky806/homebrew-cask,blainesch/homebrew-cask,skatsuta/homebrew-cask,fanquake/homebrew-cask,claui/homebrew-cask,uetchy/homebrew-cask,gyugyu/homebrew-cask,gwaldo/homebrew-cask,reitermarkus/homebrew-cask,rickychilcott/homebrew-cask,RickWong/homebrew-cask,malford/homebrew-cask,MatzFan/homebrew-cask,FranklinChen/homebrew-cask,askl56/homebrew-cask,cobyism/homebrew-cask,MatzFan/homebrew-cask,Ketouem/homebrew-cask,nshemonsky/homebrew-cask,ninjahoahong/homebrew-cask,tangestani/homebrew-cask,katoquro/homebrew-cask,janlugt/homebrew-cask,lantrix/homebrew-cask,MichaelPei/homebrew-cask,johan/homebrew-cask,JosephViolago/homebrew-cask,nathanielvarona/homebrew-cask,mgryszko/homebrew-cask,Labutin/homebrew-cask,fwiesel/homebrew-cask,joshka/homebrew-cask,jiashuw/homebrew-cask,axodys/homebrew-cask,sanyer/homebrew-cask,yurikoles/homebrew-cask,mkozjak/homebrew-cask,JosephViolago/homebrew-cask,kkdd/homebrew-cask,neverfox/homebrew-cask,jbeagley52/homebrew-cask,mlocher/homebrew-cask,neverfox/homebrew-cask,franklouwers/homebrew-cask,wesen/homebrew-cask,gyndav/homebrew-cask,haha1903/homebrew-cask,blogabe/homebrew-cask,rcuza/homebrew-cask,seanzxx/homebrew-cask,jonathanwiesel/homebrew-cask,a-x-/homebrew-cask,enriclluelles/homebrew-cask,sirodoht/homebrew-cask,retbrown/homebrew-cask,lvicentesanchez/homebrew-cask,ywfwj2008/homebrew-cask,mazehall/homebrew-cask,artdevjs/homebrew-cask,retrography/homebrew-cask,jpmat296/homebrew-cask,williamboman/homebrew-cask,theoriginalgri/homebrew-cask,0rax/homebrew-cask,mindriot101/homebrew-cask,RJHsiao/homebrew-cask,adrianchia/homebrew-cask,mwean/homebrew-cask,andrewdisley/homebrew-cask,feniix/homebrew-cask,cclauss/homebrew-cask,shonjir/homebrew-cask,colindunn/homebrew-cask,zorosteven/homebrew-cask,m3nu/homebrew-cask,mahori/homebrew-cask,patresi/homebrew-cask,scottsuch/homebrew-cask,sjackman/homebrew-cask,tedbundyjr/homebrew-cask,zorosteven/homebrew-cask,doits/homebrew-cask,asins/homebrew-cask,brianshumate/homebrew-cask,supriyantomaftuh/homebrew-cask,shonjir/homebrew-cask,qbmiller/homebrew-cask,deanmorin/homebrew-cask,xtian/homebrew-cask,bcomnes/homebrew-cask,corbt/homebrew-cask,alexg0/homebrew-cask,3van/homebrew-cask,huanzhang/homebrew-cask,underyx/homebrew-cask,slack4u/homebrew-cask,supriyantomaftuh/homebrew-cask,tan9/homebrew-cask,norio-nomura/homebrew-cask,MicTech/homebrew-cask,yurikoles/homebrew-cask,ptb/homebrew-cask,jaredsampson/homebrew-cask,Amorymeltzer/homebrew-cask,paulombcosta/homebrew-cask,vitorgalvao/homebrew-cask,jeanregisser/homebrew-cask,perfide/homebrew-cask,cohei/homebrew-cask,aki77/homebrew-cask,asins/homebrew-cask,larseggert/homebrew-cask,MircoT/homebrew-cask,reelsense/homebrew-cask,a1russell/homebrew-cask,lcasey001/homebrew-cask,axodys/homebrew-cask,mwek/homebrew-cask,sgnh/homebrew-cask,cfillion/homebrew-cask,englishm/homebrew-cask,albertico/homebrew-cask,andrewdisley/homebrew-cask,pkq/homebrew-cask,goxberry/homebrew-cask,joshka/homebrew-cask,singingwolfboy/homebrew-cask,wizonesolutions/homebrew-cask,yutarody/homebrew-cask,feigaochn/homebrew-cask,slnovak/homebrew-cask,ksylvan/homebrew-cask,mindriot101/homebrew-cask,ayohrling/homebrew-cask,bcomnes/homebrew-cask,rubenerd/homebrew-cask,jgarber623/homebrew-cask,stevenmaguire/homebrew-cask,Ketouem/homebrew-cask,nathancahill/homebrew-cask,optikfluffel/homebrew-cask,MerelyAPseudonym/homebrew-cask,farmerchris/homebrew-cask,MerelyAPseudonym/homebrew-cask,JikkuJose/homebrew-cask,jalaziz/homebrew-cask,rhendric/homebrew-cask,Ngrd/homebrew-cask,SentinelWarren/homebrew-cask,zhuzihhhh/homebrew-cask,yumitsu/homebrew-cask,BenjaminHCCarr/homebrew-cask,vin047/homebrew-cask,vitorgalvao/homebrew-cask,jrwesolo/homebrew-cask,hackhandslabs/homebrew-cask,remko/homebrew-cask,alexg0/homebrew-cask,moimikey/homebrew-cask,giannitm/homebrew-cask,zchee/homebrew-cask,optikfluffel/homebrew-cask,MisumiRize/homebrew-cask,winkelsdorf/homebrew-cask,cblecker/homebrew-cask,paour/homebrew-cask,wKovacs64/homebrew-cask,xtian/homebrew-cask,farmerchris/homebrew-cask,barravi/homebrew-cask,muan/homebrew-cask,kesara/homebrew-cask,KosherBacon/homebrew-cask,lalyos/homebrew-cask,jacobbednarz/homebrew-cask,klane/homebrew-cask,pablote/homebrew-cask,nathanielvarona/homebrew-cask,mariusbutuc/homebrew-cask,alebcay/homebrew-cask,amatos/homebrew-cask,crmne/homebrew-cask,josa42/homebrew-cask,hanxue/caskroom,andersonba/homebrew-cask,gerrymiller/homebrew-cask,tranc99/homebrew-cask,mwilmer/homebrew-cask,jppelteret/homebrew-cask,unasuke/homebrew-cask,timsutton/homebrew-cask,Saklad5/homebrew-cask,nivanchikov/homebrew-cask,kteru/homebrew-cask,kievechua/homebrew-cask,jconley/homebrew-cask,xyb/homebrew-cask,wayou/homebrew-cask,fharbe/homebrew-cask,scw/homebrew-cask,zmwangx/homebrew-cask,coeligena/homebrew-customized,winkelsdorf/homebrew-cask,xyb/homebrew-cask,shoichiaizawa/homebrew-cask,adrianchia/homebrew-cask,jellyfishcoder/homebrew-cask,hristozov/homebrew-cask,boydj/homebrew-cask,coneman/homebrew-cask,epardee/homebrew-cask,wmorin/homebrew-cask,pkq/homebrew-cask,yutarody/homebrew-cask,mfpierre/homebrew-cask,slack4u/homebrew-cask,sgnh/homebrew-cask,riyad/homebrew-cask,hvisage/homebrew-cask,dwihn0r/homebrew-cask,onlynone/homebrew-cask,jayshao/homebrew-cask,atsuyim/homebrew-cask,lolgear/homebrew-cask,bgandon/homebrew-cask,tan9/homebrew-cask,faun/homebrew-cask,djakarta-trap/homebrew-myCask,mokagio/homebrew-cask,josa42/homebrew-cask,xakraz/homebrew-cask,shoichiaizawa/homebrew-cask,williamboman/homebrew-cask,kostasdizas/homebrew-cask,paulombcosta/homebrew-cask,mjgardner/homebrew-cask,anbotero/homebrew-cask,danielbayley/homebrew-cask,mrmachine/homebrew-cask,hyuna917/homebrew-cask,chuanxd/homebrew-cask,johndbritton/homebrew-cask,mattfelsen/homebrew-cask,greg5green/homebrew-cask,kongslund/homebrew-cask,mrmachine/homebrew-cask,rajiv/homebrew-cask,deiga/homebrew-cask,mhubig/homebrew-cask,ninjahoahong/homebrew-cask,tjt263/homebrew-cask,0xadada/homebrew-cask,sanchezm/homebrew-cask,leipert/homebrew-cask,cliffcotino/homebrew-cask,unasuke/homebrew-cask,antogg/homebrew-cask,ericbn/homebrew-cask,Cottser/homebrew-cask,a1russell/homebrew-cask,stonehippo/homebrew-cask,iamso/homebrew-cask,kronicd/homebrew-cask,gerrypower/homebrew-cask,markhuber/homebrew-cask,jalaziz/homebrew-cask,xcezx/homebrew-cask,psibre/homebrew-cask,lumaxis/homebrew-cask,usami-k/homebrew-cask,kassi/homebrew-cask,zchee/homebrew-cask,RJHsiao/homebrew-cask,mattrobenolt/homebrew-cask,stephenwade/homebrew-cask,asbachb/homebrew-cask,antogg/homebrew-cask,uetchy/homebrew-cask,d/homebrew-cask,michelegera/homebrew-cask,dwihn0r/homebrew-cask,boecko/homebrew-cask,julionc/homebrew-cask,julionc/homebrew-cask,iAmGhost/homebrew-cask,bdhess/homebrew-cask,yuhki50/homebrew-cask,deiga/homebrew-cask,timsutton/homebrew-cask,shorshe/homebrew-cask,RickWong/homebrew-cask,paour/homebrew-cask,boydj/homebrew-cask,FinalDes/homebrew-cask,thomanq/homebrew-cask,tolbkni/homebrew-cask,thomanq/homebrew-cask,gilesdring/homebrew-cask,0xadada/homebrew-cask,santoshsahoo/homebrew-cask,kingthorin/homebrew-cask,crzrcn/homebrew-cask,xakraz/homebrew-cask,okket/homebrew-cask,Whoaa512/homebrew-cask,epmatsw/homebrew-cask,ksato9700/homebrew-cask,a1russell/homebrew-cask,alebcay/homebrew-cask,renard/homebrew-cask,ptb/homebrew-cask,My2ndAngelic/homebrew-cask,troyxmccall/homebrew-cask,rhendric/homebrew-cask,feigaochn/homebrew-cask,m3nu/homebrew-cask,jmeridth/homebrew-cask,theoriginalgri/homebrew-cask,lukasbestle/homebrew-cask,nshemonsky/homebrew-cask,jhowtan/homebrew-cask,askl56/homebrew-cask,ahvigil/homebrew-cask,robertgzr/homebrew-cask,kiliankoe/homebrew-cask,gwaldo/homebrew-cask,fwiesel/homebrew-cask,buo/homebrew-cask,moogar0880/homebrew-cask,moonboots/homebrew-cask,aki77/homebrew-cask,lolgear/homebrew-cask,Keloran/homebrew-cask,johntrandall/homebrew-cask,lalyos/homebrew-cask,adriweb/homebrew-cask,gyugyu/homebrew-cask,cedwardsmedia/homebrew-cask,amatos/homebrew-cask,puffdad/homebrew-cask,winkelsdorf/homebrew-cask,squid314/homebrew-cask,morganestes/homebrew-cask,joschi/homebrew-cask,dunn/homebrew-cask,djakarta-trap/homebrew-myCask,dustinblackman/homebrew-cask,wizonesolutions/homebrew-cask,shorshe/homebrew-cask,kuno/homebrew-cask,dictcp/homebrew-cask,stonehippo/homebrew-cask,inz/homebrew-cask,scribblemaniac/homebrew-cask,stigkj/homebrew-caskroom-cask,pinut/homebrew-cask,franklouwers/homebrew-cask,FranklinChen/homebrew-cask,decrement/homebrew-cask,jacobdam/homebrew-cask,kesara/homebrew-cask,renaudguerin/homebrew-cask,wmorin/homebrew-cask,feniix/homebrew-cask,KosherBacon/homebrew-cask,anbotero/homebrew-cask,dwkns/homebrew-cask,thii/homebrew-cask,bcaceiro/homebrew-cask,Cottser/homebrew-cask,squid314/homebrew-cask,usami-k/homebrew-cask,yumitsu/homebrew-cask,huanzhang/homebrew-cask,codeurge/homebrew-cask,pacav69/homebrew-cask,dcondrey/homebrew-cask,artdevjs/homebrew-cask,tsparber/homebrew-cask,shanonvl/homebrew-cask,akiomik/homebrew-cask,elyscape/homebrew-cask,Ephemera/homebrew-cask,bdhess/homebrew-cask,FinalDes/homebrew-cask,wuman/homebrew-cask,blogabe/homebrew-cask,jangalinski/homebrew-cask,afh/homebrew-cask,wastrachan/homebrew-cask,janlugt/homebrew-cask,larseggert/homebrew-cask,stephenwade/homebrew-cask,bendoerr/homebrew-cask,cprecioso/homebrew-cask,slnovak/homebrew-cask,jen20/homebrew-cask,jeanregisser/homebrew-cask,cblecker/homebrew-cask,mahori/homebrew-cask,seanzxx/homebrew-cask,joschi/homebrew-cask,jbeagley52/homebrew-cask,crzrcn/homebrew-cask,kirikiriyamama/homebrew-cask,ahundt/homebrew-cask,casidiablo/homebrew-cask,julionc/homebrew-cask,ldong/homebrew-cask,mathbunnyru/homebrew-cask,CameronGarrett/homebrew-cask,casidiablo/homebrew-cask,sparrc/homebrew-cask,m3nu/homebrew-cask,sebcode/homebrew-cask,kassi/homebrew-cask,gguillotte/homebrew-cask
|
ruby
|
## Code Before:
cask :v1 => 'munki' do
version '2.1.1.2352'
sha256 'd2287454a1b3aa66ef49e41a34dfa55cfffd45d3e00de5d2288b3fd7ced2e42c'
url "https://github.com/munki/munki/releases/download/v#{version}/munkitools-#{version}.pkg"
appcast 'https://github.com/munki/munki/releases.atom'
name 'Munki'
homepage 'http://munki.github.io/munki/'
license :apache
pkg "munkitools-#{version}.pkg"
uninstall :pkgutil => 'com.googlecode.munki.*'
end
## Instruction:
Fix homepage to use SSL in Munki Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
## Code After:
cask :v1 => 'munki' do
version '2.1.1.2352'
sha256 'd2287454a1b3aa66ef49e41a34dfa55cfffd45d3e00de5d2288b3fd7ced2e42c'
url "https://github.com/munki/munki/releases/download/v#{version}/munkitools-#{version}.pkg"
appcast 'https://github.com/munki/munki/releases.atom'
name 'Munki'
homepage 'https://www.munki.org/munki/'
license :apache
pkg "munkitools-#{version}.pkg"
uninstall :pkgutil => 'com.googlecode.munki.*'
end
|
2d0331a779637ac8a8ca50635ea6b4401a49b207
|
seeds.js
|
seeds.js
|
var seeds = require('./features.json');
var Feature = require('./feature');
module.exports = function (callback) {
// Drop the features collection.
Feature.remove(function () {
// Seed the features collection.
Feature.create(seeds, function () {
callback();
});
});
};
|
var seeds = require('./features.json');
var Feature = require('./feature');
module.exports = function (callback) {
console.log('Seeding the database...')
// Drop the features collection.
Feature.remove(function () {
// Seed the features collection.
Feature.create(seeds, function () {
console.log('Seeding complete.')
callback();
});
});
};
|
Add log messages about database seeding progress
|
Add log messages about database seeding progress
|
JavaScript
|
mit
|
nicolasmccurdy/rose,nickmccurdy/rose,nickmccurdy/rose,nicolasmccurdy/rose
|
javascript
|
## Code Before:
var seeds = require('./features.json');
var Feature = require('./feature');
module.exports = function (callback) {
// Drop the features collection.
Feature.remove(function () {
// Seed the features collection.
Feature.create(seeds, function () {
callback();
});
});
};
## Instruction:
Add log messages about database seeding progress
## Code After:
var seeds = require('./features.json');
var Feature = require('./feature');
module.exports = function (callback) {
console.log('Seeding the database...')
// Drop the features collection.
Feature.remove(function () {
// Seed the features collection.
Feature.create(seeds, function () {
console.log('Seeding complete.')
callback();
});
});
};
|
fd86e54135436006114117678b2ab3e3ea3903f1
|
tests/Adapter/RedisTest.php
|
tests/Adapter/RedisTest.php
|
<?php
namespace Aguimaraes\Tests;
use Aguimaraes\Adapter\Redis;
use PHPUnit\Framework\TestCase;
class RedisTest extends TestCase
{
public function testErrorCountHandling()
{
$v = 40;
$redis = new Redis($this->mockErrorCountClient($v), 'test-prefix');
$redis->setErrorCount('test-service', $v);
$this->assertEquals($v, $redis->getErrorCount('test-service'));
}
private function mockErrorCountClient(int $v)
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.test-service.error_count', $v]],
['exists', ['test-prefix.test-service.error_count']],
['get', ['test-prefix.test-service.error_count']]
)->will($this->onConsecutiveCalls(null, true, $v));
return $stub;
}
}
|
<?php
namespace Aguimaraes\Adapter;
use Aguimaraes\Adapter\Redis;
use PHPUnit\Framework\TestCase;
class RedisTest extends TestCase
{
public function testErrorCountHandling()
{
$v = 40;
$redis = new Redis($this->mockErrorCountClient($v), 'test-prefix');
$redis->setErrorCount('test-service', $v);
$this->assertEquals($v, $redis->getErrorCount('test-service'));
}
public function testLastCheck()
{
$redis = new Redis($this->mockLastCheckClient(), 'test-prefix');
$time = $redis->updateLastCheck('another-test-service');
$this->assertEquals($time, $redis->getLastCheck('another-test-service'));
}
private function mockErrorCountClient(int $v)
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.test-service.error_count', $v]],
['exists', ['test-prefix.test-service.error_count']],
['get', ['test-prefix.test-service.error_count']]
)->will($this->onConsecutiveCalls(null, true, $v));
return $stub;
}
private function mockLastCheckClient()
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.another-test-service.last_check', 99]],
['exists', ['test-prefix.another-test-service.last_check']],
['get', ['test-prefix.another-test-service.last_check']]
)->will($this->onConsecutiveCalls(null, true));
return $stub;
}
}
function time() {
return 99;
}
|
Add more tests to the redis adapter
|
Add more tests to the redis adapter
|
PHP
|
apache-2.0
|
aguimaraes/circuit-breaker
|
php
|
## Code Before:
<?php
namespace Aguimaraes\Tests;
use Aguimaraes\Adapter\Redis;
use PHPUnit\Framework\TestCase;
class RedisTest extends TestCase
{
public function testErrorCountHandling()
{
$v = 40;
$redis = new Redis($this->mockErrorCountClient($v), 'test-prefix');
$redis->setErrorCount('test-service', $v);
$this->assertEquals($v, $redis->getErrorCount('test-service'));
}
private function mockErrorCountClient(int $v)
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.test-service.error_count', $v]],
['exists', ['test-prefix.test-service.error_count']],
['get', ['test-prefix.test-service.error_count']]
)->will($this->onConsecutiveCalls(null, true, $v));
return $stub;
}
}
## Instruction:
Add more tests to the redis adapter
## Code After:
<?php
namespace Aguimaraes\Adapter;
use Aguimaraes\Adapter\Redis;
use PHPUnit\Framework\TestCase;
class RedisTest extends TestCase
{
public function testErrorCountHandling()
{
$v = 40;
$redis = new Redis($this->mockErrorCountClient($v), 'test-prefix');
$redis->setErrorCount('test-service', $v);
$this->assertEquals($v, $redis->getErrorCount('test-service'));
}
public function testLastCheck()
{
$redis = new Redis($this->mockLastCheckClient(), 'test-prefix');
$time = $redis->updateLastCheck('another-test-service');
$this->assertEquals($time, $redis->getLastCheck('another-test-service'));
}
private function mockErrorCountClient(int $v)
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.test-service.error_count', $v]],
['exists', ['test-prefix.test-service.error_count']],
['get', ['test-prefix.test-service.error_count']]
)->will($this->onConsecutiveCalls(null, true, $v));
return $stub;
}
private function mockLastCheckClient()
{
$stub = $this->createMock(\Predis\ClientInterface::class);
$stub->expects($this->exactly(3))
->method('__call')
->withConsecutive(
['set', ['test-prefix.another-test-service.last_check', 99]],
['exists', ['test-prefix.another-test-service.last_check']],
['get', ['test-prefix.another-test-service.last_check']]
)->will($this->onConsecutiveCalls(null, true));
return $stub;
}
}
function time() {
return 99;
}
|
0f04f3b3cf7281eb96fa35fc6f933998bd9ec40c
|
src/lib/composedFetch.js
|
src/lib/composedFetch.js
|
const axios = require(`axios`);
export default itemIdentifier => axios.get(`items`, {
baseURL: `https://track.bpost.be/btr/api/`,
responseType: `json`,
params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);
|
import axios from 'axios';
export default itemIdentifier => axios.get(`items`, {
baseURL: `https://track.bpost.be/btr/api/`,
responseType: `json`,
params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);
|
Fix axios import for UMD build
|
:bug: Fix axios import for UMD build
|
JavaScript
|
mit
|
thibmaek/bpost
|
javascript
|
## Code Before:
const axios = require(`axios`);
export default itemIdentifier => axios.get(`items`, {
baseURL: `https://track.bpost.be/btr/api/`,
responseType: `json`,
params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);
## Instruction:
:bug: Fix axios import for UMD build
## Code After:
import axios from 'axios';
export default itemIdentifier => axios.get(`items`, {
baseURL: `https://track.bpost.be/btr/api/`,
responseType: `json`,
params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);
|
1053e0faf38d8d5ac691655424cf21b39669890f
|
gulppipelines.babel.js
|
gulppipelines.babel.js
|
import gulpLoadPlugins from 'gulp-load-plugins';
import pkg from './package.json';
const $ = gulpLoadPlugins();
export default {
'js': () => [
$.sourcemaps.init(),
// Exclude files in `app/nobabel`
$.if(file => !/^nobabel\//.test(file.relative),
$.babel()
),
$.uglify({
mangle: {
except: ['$', 'require', 'exports']
}
}),
$.sourcemaps.write('.')
],
'{sass,scss}': () => [
$.sourcemaps.init(),
$.sass({
precision: 10
}).on('error', $.sass.logError),
$.autoprefixer({browsers: ['last 2 versions']}),
// $.minifyCss(),
$.sourcemaps.write('.')
],
'css': () => [
$.sourcemaps.init(),
$.autoprefixer({browsers: ['last 2 versions']}),
$.minifyCss(),
$.sourcemaps.write('.')
],
'html': () => [
$.replace('{%_!_version_!_%}', pkg.version),
$.minifyInline(),
$.minifyHtml()
],
'{png,jpeg,jpg}': () => [
$.imagemin({
progressive: true,
interlaced: true
})
],
'{webm,mp4}': () => [
// copy is implicit
]
};
|
import gulpLoadPlugins from 'gulp-load-plugins';
import pkg from './package.json';
const $ = gulpLoadPlugins();
export default {
'js': () => [
$.sourcemaps.init(),
// Exclude files in `app/nobabel`
$.if(file => !/^nobabel\//.test(file.relative),
$.babel()
),
$.uglify({
mangle: {
except: ['$', 'require', 'exports']
}
}),
$.sourcemaps.write('.')
],
'{sass,scss}': () => [
$.sourcemaps.init(),
$.sass({
precision: 10
}).on('error', $.sass.logError),
$.autoprefixer({browsers: ['last 2 versions']}),
// $.minifyCss(),
$.sourcemaps.write('.')
],
'css': () => [
$.sourcemaps.init(),
$.autoprefixer({browsers: ['last 2 versions']}),
$.minifyCss(),
$.sourcemaps.write('.')
],
'html': () => [
$.replace('{%_!_version_!_%}', pkg.version),
$.minifyInline({js: false}),
$.minifyHtml()
],
'{png,jpeg,jpg}': () => [
$.imagemin({
progressive: true,
interlaced: true
})
],
'{webm,mp4}': () => [
// copy is implicit
]
};
|
Disable inline JS minification because AAAARGH
|
Disable inline JS minification because AAAARGH
|
JavaScript
|
mit
|
surma/surma.github.io,surma/surma.github.io
|
javascript
|
## Code Before:
import gulpLoadPlugins from 'gulp-load-plugins';
import pkg from './package.json';
const $ = gulpLoadPlugins();
export default {
'js': () => [
$.sourcemaps.init(),
// Exclude files in `app/nobabel`
$.if(file => !/^nobabel\//.test(file.relative),
$.babel()
),
$.uglify({
mangle: {
except: ['$', 'require', 'exports']
}
}),
$.sourcemaps.write('.')
],
'{sass,scss}': () => [
$.sourcemaps.init(),
$.sass({
precision: 10
}).on('error', $.sass.logError),
$.autoprefixer({browsers: ['last 2 versions']}),
// $.minifyCss(),
$.sourcemaps.write('.')
],
'css': () => [
$.sourcemaps.init(),
$.autoprefixer({browsers: ['last 2 versions']}),
$.minifyCss(),
$.sourcemaps.write('.')
],
'html': () => [
$.replace('{%_!_version_!_%}', pkg.version),
$.minifyInline(),
$.minifyHtml()
],
'{png,jpeg,jpg}': () => [
$.imagemin({
progressive: true,
interlaced: true
})
],
'{webm,mp4}': () => [
// copy is implicit
]
};
## Instruction:
Disable inline JS minification because AAAARGH
## Code After:
import gulpLoadPlugins from 'gulp-load-plugins';
import pkg from './package.json';
const $ = gulpLoadPlugins();
export default {
'js': () => [
$.sourcemaps.init(),
// Exclude files in `app/nobabel`
$.if(file => !/^nobabel\//.test(file.relative),
$.babel()
),
$.uglify({
mangle: {
except: ['$', 'require', 'exports']
}
}),
$.sourcemaps.write('.')
],
'{sass,scss}': () => [
$.sourcemaps.init(),
$.sass({
precision: 10
}).on('error', $.sass.logError),
$.autoprefixer({browsers: ['last 2 versions']}),
// $.minifyCss(),
$.sourcemaps.write('.')
],
'css': () => [
$.sourcemaps.init(),
$.autoprefixer({browsers: ['last 2 versions']}),
$.minifyCss(),
$.sourcemaps.write('.')
],
'html': () => [
$.replace('{%_!_version_!_%}', pkg.version),
$.minifyInline({js: false}),
$.minifyHtml()
],
'{png,jpeg,jpg}': () => [
$.imagemin({
progressive: true,
interlaced: true
})
],
'{webm,mp4}': () => [
// copy is implicit
]
};
|
b57b2d5b3cba677275ca6b2e1b0d19503ddc474b
|
_posts/2014-09-30-mt-i-am-coming.md
|
_posts/2014-09-30-mt-i-am-coming.md
|
---
layout: post
category: work
tagline: "每次结束都是新的开始"
tags: [meituan]
---
{% include JB/setup %}
mt, I am coming!
14.9.28
|
---
layout: post
category: work
tagline: "end is start"
tags: [meituan]
---
{% include JB/setup %}
mt, I am coming!
14.9.28
|
Modify tagline in first post
|
Modify tagline in first post
|
Markdown
|
mit
|
younghz/younghz.github.io,younghz/younghz.github.io,younghz/younghz.github.io
|
markdown
|
## Code Before:
---
layout: post
category: work
tagline: "每次结束都是新的开始"
tags: [meituan]
---
{% include JB/setup %}
mt, I am coming!
14.9.28
## Instruction:
Modify tagline in first post
## Code After:
---
layout: post
category: work
tagline: "end is start"
tags: [meituan]
---
{% include JB/setup %}
mt, I am coming!
14.9.28
|
3a461b9528d644721e23c1485a92908808b563ea
|
src/gamelib/sprite/SpriteData.cpp
|
src/gamelib/sprite/SpriteData.cpp
|
namespace gamelib
{
AnimationData::AnimationData() :
length(1),
speed(0),
offset(0)
{ }
void AnimationData::update(float fps)
{
offset = std::fmod(offset + speed / fps, length);
}
sf::IntRect AnimationData::getRect(int texw, int texh) const
{
int x = rect.left + (int)offset * rect.width;
return sf::IntRect(x % texw, (rect.top + x / texw * rect.height) % texh, rect.width, rect.height);
}
}
|
namespace gamelib
{
AnimationData::AnimationData() :
length(1),
speed(0),
offset(0)
{ }
void AnimationData::update(float fps)
{
if (length > 1 && speed != 0)
offset = std::fmod(offset + speed / fps, length);
}
sf::IntRect AnimationData::getRect(int texw, int texh) const
{
int x = rect.left + (int)offset * rect.width;
return sf::IntRect(x % texw, (rect.top + x / texw * rect.height) % texh, rect.width, rect.height);
}
}
|
Fix bug causing a wrong frame index
|
Fix bug causing a wrong frame index
Using this formula to calculate the image index
offset = std::fmod(offset + speed / fps, length),
a length of 1 or speed = 0 and an offset > 0 would result in a wrong
index.
|
C++
|
mit
|
mall0c/TileEngine,mall0c/GameLib
|
c++
|
## Code Before:
namespace gamelib
{
AnimationData::AnimationData() :
length(1),
speed(0),
offset(0)
{ }
void AnimationData::update(float fps)
{
offset = std::fmod(offset + speed / fps, length);
}
sf::IntRect AnimationData::getRect(int texw, int texh) const
{
int x = rect.left + (int)offset * rect.width;
return sf::IntRect(x % texw, (rect.top + x / texw * rect.height) % texh, rect.width, rect.height);
}
}
## Instruction:
Fix bug causing a wrong frame index
Using this formula to calculate the image index
offset = std::fmod(offset + speed / fps, length),
a length of 1 or speed = 0 and an offset > 0 would result in a wrong
index.
## Code After:
namespace gamelib
{
AnimationData::AnimationData() :
length(1),
speed(0),
offset(0)
{ }
void AnimationData::update(float fps)
{
if (length > 1 && speed != 0)
offset = std::fmod(offset + speed / fps, length);
}
sf::IntRect AnimationData::getRect(int texw, int texh) const
{
int x = rect.left + (int)offset * rect.width;
return sf::IntRect(x % texw, (rect.top + x / texw * rect.height) % texh, rect.width, rect.height);
}
}
|
f3dce28258e561da7f178e37291793e32b5a6281
|
import_config.rb
|
import_config.rb
|
def import_config
config_file_lines = File.readlines "./moscow_mule.config"
config_file_lines.each do |config_line|
if config_line.index("location_features")
@location_features = config_line.sub("location_features=", "")
puts @location_features
end
if config_line.index("language")
@language = config_line.sub("language=", "")
end
if config_line.index("port")
@port = config_line.sub("port=", "")
end
end
end
|
def import_config
config_file_lines = File.readlines "./moscow_mule.config"
config_file_lines.each do |config_line|
if config_line.index("location_features")
@location_features = config_line.sub("location_features=", "")
puts @location_features
end
if config_line.index("language")
@language = config_line.sub("language=", "")
end
if config_line.index("port")
@port = config_line.sub("port=", "")
change_port_in_angular(@port)
end
end
end
def change_port_in_angular (new_port)
file_name = "./public/assets/js/app.js"
text = File.read(file_name)
new_contents = text.gsub(/localhost:\d{4}/, "localhost:" + new_port)
# To write changes to the file, use:
File.open(file_name, "w") {|file| file.puts new_contents }
end
|
Change port also in app.js
|
Change port also in app.js
|
Ruby
|
mit
|
tobysoby/moscow_mule,tobysoby/moscow_mule,tobysoby/moscow_mule
|
ruby
|
## Code Before:
def import_config
config_file_lines = File.readlines "./moscow_mule.config"
config_file_lines.each do |config_line|
if config_line.index("location_features")
@location_features = config_line.sub("location_features=", "")
puts @location_features
end
if config_line.index("language")
@language = config_line.sub("language=", "")
end
if config_line.index("port")
@port = config_line.sub("port=", "")
end
end
end
## Instruction:
Change port also in app.js
## Code After:
def import_config
config_file_lines = File.readlines "./moscow_mule.config"
config_file_lines.each do |config_line|
if config_line.index("location_features")
@location_features = config_line.sub("location_features=", "")
puts @location_features
end
if config_line.index("language")
@language = config_line.sub("language=", "")
end
if config_line.index("port")
@port = config_line.sub("port=", "")
change_port_in_angular(@port)
end
end
end
def change_port_in_angular (new_port)
file_name = "./public/assets/js/app.js"
text = File.read(file_name)
new_contents = text.gsub(/localhost:\d{4}/, "localhost:" + new_port)
# To write changes to the file, use:
File.open(file_name, "w") {|file| file.puts new_contents }
end
|
8acad77da26c64accf3952a42797a36147cecb79
|
ecosystem/platform/server/app/views/layouts/_application.html.erb
|
ecosystem/platform/server/app/views/layouts/_application.html.erb
|
<!DOCTYPE html>
<html>
<head>
<title>Community Platform</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= favicon_link_tag asset_path('favicon.ico') %>
<link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= render 'layouts/google_analytics' %>
<%= javascript_importmap_tags %>
</head>
<body class="flex flex-col h-screen justify-between">
<div class="flex flex-col flex-1">
<%= render "layouts/header" unless @hide_header %>
<main class="flex-1">
<%= yield %>
</div>
</main>
<%= render "layouts/footer" %>
</body>
</html>
|
<!DOCTYPE html>
<html>
<head>
<title>Community Platform</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= favicon_link_tag asset_path('favicon.ico') %>
<link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= render 'layouts/google_analytics' %>
<%= javascript_importmap_tags %>
</head>
<body class="flex flex-col h-screen justify-between" data-turbo="false">
<div class="flex flex-col flex-1">
<%= render "layouts/header" unless @hide_header %>
<main class="flex-1">
<%= yield %>
</div>
</main>
<%= render "layouts/footer" %>
</body>
</html>
|
Disable turbolinks globally to fix recaptcha issues.
|
Disable turbolinks globally to fix recaptcha issues.
Closes: #990
|
HTML+ERB
|
apache-2.0
|
aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core
|
html+erb
|
## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>Community Platform</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= favicon_link_tag asset_path('favicon.ico') %>
<link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= render 'layouts/google_analytics' %>
<%= javascript_importmap_tags %>
</head>
<body class="flex flex-col h-screen justify-between">
<div class="flex flex-col flex-1">
<%= render "layouts/header" unless @hide_header %>
<main class="flex-1">
<%= yield %>
</div>
</main>
<%= render "layouts/footer" %>
</body>
</html>
## Instruction:
Disable turbolinks globally to fix recaptcha issues.
Closes: #990
## Code After:
<!DOCTYPE html>
<html>
<head>
<title>Community Platform</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= favicon_link_tag asset_path('favicon.ico') %>
<link rel="stylesheet" href="https://use.typekit.net/<%= ENV.fetch('TYPEKIT_CSS_ID') %>.css" />
<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= render 'layouts/google_analytics' %>
<%= javascript_importmap_tags %>
</head>
<body class="flex flex-col h-screen justify-between" data-turbo="false">
<div class="flex flex-col flex-1">
<%= render "layouts/header" unless @hide_header %>
<main class="flex-1">
<%= yield %>
</div>
</main>
<%= render "layouts/footer" %>
</body>
</html>
|
fe537e20de6c7d746a3119ed73b5d18d39b5dafb
|
make/fencebuild.mk
|
make/fencebuild.mk
|
ifndef FENCEAGENTSLIB
SBINDIRT=$(TARGET)
endif
all: $(TARGET)
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk
$(TARGET):
${FENCEPARSE} \
${SRCDIR}/config/copyright.cf REDHAT_COPYRIGHT \
${RELEASE_VERSION} \
$(S) $@ | \
sed \
-e 's#@FENCEAGENTSLIBDIR@#${fenceagentslibdir}#g' \
-e 's#@MIBDIR@#${mibdir}#g' \
-e 's#@SNMPBIN@#${snmpbin}#g' \
> $@
chmod +x $@
clean: generalclean
|
ifndef FENCEAGENTSLIB
ifdef TARGET
SBINDIRT=$(TARGET)
endif
endif
all: $(TARGET)
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk
$(TARGET):
${FENCEPARSE} \
${SRCDIR}/config/copyright.cf REDHAT_COPYRIGHT \
${RELEASE_VERSION} \
$(S) $@ | \
sed \
-e 's#@FENCEAGENTSLIBDIR@#${fenceagentslibdir}#g' \
-e 's#@MIBDIR@#${mibdir}#g' \
-e 's#@SNMPBIN@#${snmpbin}#g' \
> $@
chmod +x $@
clean: generalclean
|
Fix fence lib install target
|
[BUILD] Fix fence lib install target
Signed-off-by: Fabio M. Di Nitto <[email protected]>
|
Makefile
|
lgpl-2.1
|
asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents
|
makefile
|
## Code Before:
ifndef FENCEAGENTSLIB
SBINDIRT=$(TARGET)
endif
all: $(TARGET)
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk
$(TARGET):
${FENCEPARSE} \
${SRCDIR}/config/copyright.cf REDHAT_COPYRIGHT \
${RELEASE_VERSION} \
$(S) $@ | \
sed \
-e 's#@FENCEAGENTSLIBDIR@#${fenceagentslibdir}#g' \
-e 's#@MIBDIR@#${mibdir}#g' \
-e 's#@SNMPBIN@#${snmpbin}#g' \
> $@
chmod +x $@
clean: generalclean
## Instruction:
[BUILD] Fix fence lib install target
Signed-off-by: Fabio M. Di Nitto <[email protected]>
## Code After:
ifndef FENCEAGENTSLIB
ifdef TARGET
SBINDIRT=$(TARGET)
endif
endif
all: $(TARGET)
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk
$(TARGET):
${FENCEPARSE} \
${SRCDIR}/config/copyright.cf REDHAT_COPYRIGHT \
${RELEASE_VERSION} \
$(S) $@ | \
sed \
-e 's#@FENCEAGENTSLIBDIR@#${fenceagentslibdir}#g' \
-e 's#@MIBDIR@#${mibdir}#g' \
-e 's#@SNMPBIN@#${snmpbin}#g' \
> $@
chmod +x $@
clean: generalclean
|
324a067727488e82d26311f9b35c35759d7e24fe
|
app/controllers/players_controller.rb
|
app/controllers/players_controller.rb
|
class PlayersController < ApplicationController
def index
@players = Player.all
end
end
|
class PlayersController < ApplicationController
def authorize_user
if user_signed_in?
user = current_user
player = find(params[:id])
club = player.club
head :unauthorized unless ClubAdmin.exists?(club_id: club.id, user_id: user.id)
else
head :unauthorized
end
end
def index
@players = Player.all
end
end
|
Add authorization helper function to Player model
|
Add authorization helper function to Player model
|
Ruby
|
mit
|
morynicz/Ippon,morynicz/tournament-service,morynicz/tournament-service,morynicz/Ippon,morynicz/tournament-service,morynicz/Ippon
|
ruby
|
## Code Before:
class PlayersController < ApplicationController
def index
@players = Player.all
end
end
## Instruction:
Add authorization helper function to Player model
## Code After:
class PlayersController < ApplicationController
def authorize_user
if user_signed_in?
user = current_user
player = find(params[:id])
club = player.club
head :unauthorized unless ClubAdmin.exists?(club_id: club.id, user_id: user.id)
else
head :unauthorized
end
end
def index
@players = Player.all
end
end
|
277928ee14de4ec34730356c695b0a5a0559507e
|
roles/zuul/files/jobs/lore.yaml
|
roles/zuul/files/jobs/lore.yaml
|
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -yqq curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
source ~/.bashrc
nvm install stable && nvm use stable
./tests/markdownlint-cli-test.sh
./tests/textlint-test.sh
./tests/shellcheck-test.sh
./tests/signed-off-by-test.sh
publishers:
- console-log
|
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -qq nodejs npm
./tests/markdownlint-cli-test.sh
./tests/textlint-test.sh
./tests/shellcheck-test.sh
./tests/signed-off-by-test.sh
publishers:
- console-log
|
Install node/npm via apt rather than nvm
|
Install node/npm via apt rather than nvm
nvm isn't getting us anything as far as pinning goes and is proving
finicky.
Signed-off-by: Cullen Taylor <[email protected]>
|
YAML
|
apache-2.0
|
jamielennox/hoist,SpamapS/hoist,jamielennox/hoist,BonnyCI/hoist,BonnyCI/hoist,SpamapS/hoist
|
yaml
|
## Code Before:
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -yqq curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
source ~/.bashrc
nvm install stable && nvm use stable
./tests/markdownlint-cli-test.sh
./tests/textlint-test.sh
./tests/shellcheck-test.sh
./tests/signed-off-by-test.sh
publishers:
- console-log
## Instruction:
Install node/npm via apt rather than nvm
nvm isn't getting us anything as far as pinning goes and is proving
finicky.
Signed-off-by: Cullen Taylor <[email protected]>
## Code After:
- job:
name: lore
node: 'ubuntu-xenial'
builders:
- zuul-git-prep
- shell: |
#!/bin/bash -ex
sudo apt-get install -qq nodejs npm
./tests/markdownlint-cli-test.sh
./tests/textlint-test.sh
./tests/shellcheck-test.sh
./tests/signed-off-by-test.sh
publishers:
- console-log
|
c441d762b7640e13bc0286107e6d50ad9205a684
|
env/env.sh
|
env/env.sh
|
export EDITOR="emacs -nw"
export VISUAL="emacs -nw"
## Bind the key to Vi for Zsh instead of Emacs!
## http://www.cs.elte.hu/zsh-manual/zsh_16.html
## http://dougblack.io/words/zsh-vi-mode.html
## http://zsh.sourceforge.net/Intro/intro_10.html
#export EDITOR=vim
#export VISUAL=vim
#bindkey -v
#bindkey '^P' up-history
#bindkey '^N' down-history
#bindkey '^?' backward-delete-char
#bindkey '^h' backward-delete-char
#bindkey '^w' backward-kill-word
#bindkey '^r' history-incremental-search-backward
## Use 10ms for key sequences instead of 0.4 seconds
#export KEYTIMEOUT=1
## Fix Vim's color when running inside Tmux
export TERM=screen-256color
## Don't clear screen after a command (better with `git status`)
export LESS=-RX
|
export EDITOR="emacsclient"
export VISUAL="emacsclient -nw"
#export VISUAL="emacs -nw"
#export VISUAL="emacs -nw"
## --------------------- ##
## Bind the key to Vi for Zsh instead of Emacs!
## http://www.cs.elte.hu/zsh-manual/zsh_16.html
## http://dougblack.io/words/zsh-vi-mode.html
## http://zsh.sourceforge.net/Intro/intro_10.html
## --------------------- ##
#export EDITOR=vim
#export VISUAL=vim
#bindkey -v
#bindkey '^P' up-history
#bindkey '^N' down-history
#bindkey '^?' backward-delete-char
#bindkey '^h' backward-delete-char
#bindkey '^w' backward-kill-word
#bindkey '^r' history-incremental-search-backward
## Use 10ms for key sequences instead of 0.4 seconds
#export KEYTIMEOUT=1
## --------------------- ##Y
## Fix Vim's color when running inside Tmux
export TERM=screen-256color
## Don't clear screen after a command (better with `git status`)
export LESS=-RX
|
Update EDITOR and VISUAL command
|
Update EDITOR and VISUAL command
|
Shell
|
mit
|
agilecreativity/dotfiles,agilecreativity/dotfiles,agilecreativity/dotfiles
|
shell
|
## Code Before:
export EDITOR="emacs -nw"
export VISUAL="emacs -nw"
## Bind the key to Vi for Zsh instead of Emacs!
## http://www.cs.elte.hu/zsh-manual/zsh_16.html
## http://dougblack.io/words/zsh-vi-mode.html
## http://zsh.sourceforge.net/Intro/intro_10.html
#export EDITOR=vim
#export VISUAL=vim
#bindkey -v
#bindkey '^P' up-history
#bindkey '^N' down-history
#bindkey '^?' backward-delete-char
#bindkey '^h' backward-delete-char
#bindkey '^w' backward-kill-word
#bindkey '^r' history-incremental-search-backward
## Use 10ms for key sequences instead of 0.4 seconds
#export KEYTIMEOUT=1
## Fix Vim's color when running inside Tmux
export TERM=screen-256color
## Don't clear screen after a command (better with `git status`)
export LESS=-RX
## Instruction:
Update EDITOR and VISUAL command
## Code After:
export EDITOR="emacsclient"
export VISUAL="emacsclient -nw"
#export VISUAL="emacs -nw"
#export VISUAL="emacs -nw"
## --------------------- ##
## Bind the key to Vi for Zsh instead of Emacs!
## http://www.cs.elte.hu/zsh-manual/zsh_16.html
## http://dougblack.io/words/zsh-vi-mode.html
## http://zsh.sourceforge.net/Intro/intro_10.html
## --------------------- ##
#export EDITOR=vim
#export VISUAL=vim
#bindkey -v
#bindkey '^P' up-history
#bindkey '^N' down-history
#bindkey '^?' backward-delete-char
#bindkey '^h' backward-delete-char
#bindkey '^w' backward-kill-word
#bindkey '^r' history-incremental-search-backward
## Use 10ms for key sequences instead of 0.4 seconds
#export KEYTIMEOUT=1
## --------------------- ##Y
## Fix Vim's color when running inside Tmux
export TERM=screen-256color
## Don't clear screen after a command (better with `git status`)
export LESS=-RX
|
46b5c5d38645268e223ee2cc3fd82dc21044a4c0
|
lib/interrogative.rb
|
lib/interrogative.rb
|
require 'interrogative/question'
# A mixin for curious classes.
module Interrogative
# Get the array of all noted questions.
#
# @return [Array<Question>] array of all noted questions.
def questions; @_questions; end
# Give instructions for dealing with new questions.
#
# @param [Proc] postprocessor a block to run after adding a question;
# the question is given as the argument.
def when_questioned(&postprocessor)
(@_question_postprocessors||=[]) << postprocessor
end
# Give a new question.
#
# @param [Symbol, String] name the name (think <input name=...>) of
# the question.
# @param [String] label the text of the question (think <label>).
# @param [Hash] attrs additional attributes for the question.
# @option attrs [Boolean] :long whether the question has a long answer
# (think <textarea> vs <input>).
# @option attrs [Boolean] :multiple whether the question could have
# multiple answers.
# @return [Question] the new Question.
def question(name, text, attrs={})
q = Question.new(name, text, self, attrs)
(@_questions||=[]) << q
unless @_question_postprocessors.nil?
@_question_postprocessors.each do |postprocessor|
postprocessor.call(q)
end
end
return q
end
end
|
require 'interrogative/question'
# A mixin for curious classes.
module Interrogative
# Get the array of all noted questions.
#
# @return [Array<Question>] array of all noted questions.
def questions; @_questions; end
# Get the array of question postprocessors.
#
# @return [Array<Proc>] array of all registered postprocessors.
def _question_postprocessors; @_question_postprocessors; end
# Give instructions for dealing with new questions.
#
# @param [Proc] postprocessor a block to run after adding a question;
# the question is given as the argument.
def when_questioned(&postprocessor)
(@_question_postprocessors||=[]) << postprocessor
end
# Give a new question.
#
# @param [Symbol, String] name the name (think <input name=...>) of
# the question.
# @param [String] label the text of the question (think <label>).
# @param [Hash] attrs additional attributes for the question.
# @option attrs [Boolean] :long whether the question has a long answer
# (think <textarea> vs <input>).
# @option attrs [Boolean] :multiple whether the question could have
# multiple answers.
# @return [Question] the new Question.
def question(name, text, attrs={})
q = Question.new(name, text, self, attrs)
(@_questions||=[]) << q
unless _question_postprocessors.nil?
_question_postprocessors.each do |postprocessor|
postprocessor.call(q)
end
end
return q
end
end
|
Add an accessor for postprocessors (for inheritance).
|
Add an accessor for postprocessors (for inheritance).
|
Ruby
|
mit
|
alloy-d/interrogative
|
ruby
|
## Code Before:
require 'interrogative/question'
# A mixin for curious classes.
module Interrogative
# Get the array of all noted questions.
#
# @return [Array<Question>] array of all noted questions.
def questions; @_questions; end
# Give instructions for dealing with new questions.
#
# @param [Proc] postprocessor a block to run after adding a question;
# the question is given as the argument.
def when_questioned(&postprocessor)
(@_question_postprocessors||=[]) << postprocessor
end
# Give a new question.
#
# @param [Symbol, String] name the name (think <input name=...>) of
# the question.
# @param [String] label the text of the question (think <label>).
# @param [Hash] attrs additional attributes for the question.
# @option attrs [Boolean] :long whether the question has a long answer
# (think <textarea> vs <input>).
# @option attrs [Boolean] :multiple whether the question could have
# multiple answers.
# @return [Question] the new Question.
def question(name, text, attrs={})
q = Question.new(name, text, self, attrs)
(@_questions||=[]) << q
unless @_question_postprocessors.nil?
@_question_postprocessors.each do |postprocessor|
postprocessor.call(q)
end
end
return q
end
end
## Instruction:
Add an accessor for postprocessors (for inheritance).
## Code After:
require 'interrogative/question'
# A mixin for curious classes.
module Interrogative
# Get the array of all noted questions.
#
# @return [Array<Question>] array of all noted questions.
def questions; @_questions; end
# Get the array of question postprocessors.
#
# @return [Array<Proc>] array of all registered postprocessors.
def _question_postprocessors; @_question_postprocessors; end
# Give instructions for dealing with new questions.
#
# @param [Proc] postprocessor a block to run after adding a question;
# the question is given as the argument.
def when_questioned(&postprocessor)
(@_question_postprocessors||=[]) << postprocessor
end
# Give a new question.
#
# @param [Symbol, String] name the name (think <input name=...>) of
# the question.
# @param [String] label the text of the question (think <label>).
# @param [Hash] attrs additional attributes for the question.
# @option attrs [Boolean] :long whether the question has a long answer
# (think <textarea> vs <input>).
# @option attrs [Boolean] :multiple whether the question could have
# multiple answers.
# @return [Question] the new Question.
def question(name, text, attrs={})
q = Question.new(name, text, self, attrs)
(@_questions||=[]) << q
unless _question_postprocessors.nil?
_question_postprocessors.each do |postprocessor|
postprocessor.call(q)
end
end
return q
end
end
|
e7fc6b7153287fa1095f6393017edbf368a3d336
|
src/Nmc/DynamicPageBundle/Tests/Controller/DefaultControllerTest.php
|
src/Nmc/DynamicPageBundle/Tests/Controller/DefaultControllerTest.php
|
<?php
namespace Nmc\DynamicPageBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient(array(),array('HTTP_HOST' => 'fmip.git'));
$crawler = $client->request('GET', '/fr/ca');
$this->assertTrue($crawler->filter('html:contains("Félicitations, ca fonctionne pas trop mal: Ke!")')->count() > 0);
}
}
|
<?php
namespace Nmc\DynamicPageBundle\Tests\Controller;
use Liip\FunctionalTestBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function setUp()
{
$classes = array(
'Nmc\DynamicPageBundle\DataFixtures\ORM\LoadWebsiteData',
);
$this->loadFixtures($classes);
}
public function testIndex()
{
$client = static::createClient(array(),array('HTTP_HOST' => 'fmip.git'));
$crawler = $client->request('GET', '/fr/ca');
$this->assertTrue($crawler->filter('html:contains("Félicitations, ca fonctionne pas trop mal: Ke!")')->count() > 0);
}
}
|
Load fixture in test setUp
|
Load fixture in test setUp
|
PHP
|
mit
|
Nikoms/fmip,Nikoms/fmip
|
php
|
## Code Before:
<?php
namespace Nmc\DynamicPageBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient(array(),array('HTTP_HOST' => 'fmip.git'));
$crawler = $client->request('GET', '/fr/ca');
$this->assertTrue($crawler->filter('html:contains("Félicitations, ca fonctionne pas trop mal: Ke!")')->count() > 0);
}
}
## Instruction:
Load fixture in test setUp
## Code After:
<?php
namespace Nmc\DynamicPageBundle\Tests\Controller;
use Liip\FunctionalTestBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function setUp()
{
$classes = array(
'Nmc\DynamicPageBundle\DataFixtures\ORM\LoadWebsiteData',
);
$this->loadFixtures($classes);
}
public function testIndex()
{
$client = static::createClient(array(),array('HTTP_HOST' => 'fmip.git'));
$crawler = $client->request('GET', '/fr/ca');
$this->assertTrue($crawler->filter('html:contains("Félicitations, ca fonctionne pas trop mal: Ke!")')->count() > 0);
}
}
|
2805caeb0d0f45b09e83d9b8980232d9e749ab05
|
magnon-icon/icon-set.html
|
magnon-icon/icon-set.html
|
<link rel="import" href="../element.html">
<template id="magnon-icon-set">
<slot></slot>
</template>
<script>
const sets = [];
/* globals MagnonElement */
class MagnonIconSet extends MagnonElement {
static get name() {
return "magnon-icon-set";
}
static getSet(name) {
for (let set of sets) {
if (set.setName === name) return set;
}
console.error(`Icon set not found: ${name}`);
}
constructor() {
super();
this.setName = this.getAttribute("set-name");
sets.push(this);
this._slot = this.root.querySelector("slot");
}
getIcon(name) {
const svg = this._slot.assignedNodes().find(n => n.tagName === "svg");
const icon = svg.querySelector(`#${name}`);
const node = icon.cloneNode(true);
return node;
}
}
MagnonIconSet.init();
</script>
|
<link rel="import" href="../element.html">
<template id="magnon-icon-set">
<slot></slot>
</template>
<script>
const sets = [];
/* globals MagnonElement */
class MagnonIconSet extends MagnonElement {
static get name() {
return "magnon-icon-set";
}
static getSet(name) {
for (let set of sets) {
if (set.setName === name) return set;
}
console.error(`Icon set not found: ${name}`);
}
constructor() {
super();
this._slot = this.root.querySelector("slot");
}
connectedCallback() {
this.setName = this.getAttribute("set-name");
sets.push(this);
}
getIcon(name) {
const svg = this._slot.assignedNodes().find(n => n.tagName === "svg");
const icon = svg.querySelector(`#${name}`);
const node = icon.cloneNode(true);
return node;
}
}
MagnonIconSet.init();
</script>
|
Fix sets sometimes not getting set name set
|
Fix sets sometimes not getting set name set
|
HTML
|
mit
|
theMagnon/magnon-components,theMagnon/magnon-components
|
html
|
## Code Before:
<link rel="import" href="../element.html">
<template id="magnon-icon-set">
<slot></slot>
</template>
<script>
const sets = [];
/* globals MagnonElement */
class MagnonIconSet extends MagnonElement {
static get name() {
return "magnon-icon-set";
}
static getSet(name) {
for (let set of sets) {
if (set.setName === name) return set;
}
console.error(`Icon set not found: ${name}`);
}
constructor() {
super();
this.setName = this.getAttribute("set-name");
sets.push(this);
this._slot = this.root.querySelector("slot");
}
getIcon(name) {
const svg = this._slot.assignedNodes().find(n => n.tagName === "svg");
const icon = svg.querySelector(`#${name}`);
const node = icon.cloneNode(true);
return node;
}
}
MagnonIconSet.init();
</script>
## Instruction:
Fix sets sometimes not getting set name set
## Code After:
<link rel="import" href="../element.html">
<template id="magnon-icon-set">
<slot></slot>
</template>
<script>
const sets = [];
/* globals MagnonElement */
class MagnonIconSet extends MagnonElement {
static get name() {
return "magnon-icon-set";
}
static getSet(name) {
for (let set of sets) {
if (set.setName === name) return set;
}
console.error(`Icon set not found: ${name}`);
}
constructor() {
super();
this._slot = this.root.querySelector("slot");
}
connectedCallback() {
this.setName = this.getAttribute("set-name");
sets.push(this);
}
getIcon(name) {
const svg = this._slot.assignedNodes().find(n => n.tagName === "svg");
const icon = svg.querySelector(`#${name}`);
const node = icon.cloneNode(true);
return node;
}
}
MagnonIconSet.init();
</script>
|
b74f71fbed0978d6ccb102efa97128b6a5c6ab47
|
test/controllers/sessions_controller_test.rb
|
test/controllers/sessions_controller_test.rb
|
require 'test_helper'
class SessionsControllerTest < ActionController::TestCase
tests Devise::SessionsController
include Devise::TestHelpers
test "#create doesn't raise exception after Warden authentication fails when TestHelpers included" do
request.env["devise.mapping"] = Devise.mappings[:user]
post :create, :user => {
:email => "[email protected]",
:password => "wevdude"
}
assert_equal 200, @response.status
assert_template "devise/sessions/new"
end
test "#new doesn't raise mass-assignment exception even if sign-in key is attr_protected" do
request.env["devise.mapping"] = Devise.mappings[:user]
ActiveRecord::Base.mass_assignment_sanitizer = :strict
User.class_eval { attr_protected :email }
begin
assert_nothing_raised ActiveModel::MassAssignmentSecurity::Error do
get :new, :user => { :email => "allez viens!" }
end
ensure
ActiveRecord::Base.mass_assignment_sanitizer = :logger
User.class_eval { attr_accessible :email }
end
end
end
|
require 'test_helper'
class SessionsControllerTest < ActionController::TestCase
tests Devise::SessionsController
include Devise::TestHelpers
test "#create doesn't raise exception after Warden authentication fails when TestHelpers included" do
request.env["devise.mapping"] = Devise.mappings[:user]
post :create, :user => {
:email => "[email protected]",
:password => "wevdude"
}
assert_equal 200, @response.status
assert_template "devise/sessions/new"
end
if ActiveRecord::Base.respond_to?(:mass_assignment_sanitizer)
test "#new doesn't raise mass-assignment exception even if sign-in key is attr_protected" do
request.env["devise.mapping"] = Devise.mappings[:user]
ActiveRecord::Base.mass_assignment_sanitizer = :strict
User.class_eval { attr_protected :email }
begin
assert_nothing_raised ActiveModel::MassAssignmentSecurity::Error do
get :new, :user => { :email => "allez viens!" }
end
ensure
ActiveRecord::Base.mass_assignment_sanitizer = :logger
User.class_eval { attr_accessible :email }
end
end
end
end
|
Fix build so it works with Rails 3.1.
|
Fix build so it works with Rails 3.1.
|
Ruby
|
mit
|
bolshakov/devise,thejourneydude/devise,gauravtiwari/devise,shtzr840329/devise,cefigueiredo/devise,cefigueiredo/devise,chrisnordqvist/devise,jnappy/devise,silvaelton/devise,evopark/devise,Bazay/devise,vincentwoo/devise,yui-knk/devise,fjg/devise,thiagorp/devise,kewaunited/devise,onursarikaya/devise,fjg/devise,MAubreyK/devise,JanChw/devise,onursarikaya/devise,ram-krishan/devise,chadzilla2080/devise,Course-Master/devise,chrisnordqvist/devise,sharma1nitish/devise,Fuseit/devise,shtzr840329/devise,LauraWN/devise,yannis/biologyconf,alan707/startup_theme,digideskio/devise,HopeCommUnityCenter/devise,tjgrathwell/devise,twalpole/devise,thejourneydude/devise,DanFerreira/devise,posgarou/devise,9040044/devise,tjgrathwell/devise,didacte/devise,ngpestelos/devise,eaconde/devise,denysnando/devise,andyhite/devise,SiddhiPrabha/devise,imaboldcompany/devise,HopeCommUnityCenter/devise,Serg09/devise,riskgod/devise,RailsDev42/devise,thiagorp/devise,jahammo2/devise,keeliker/devise,satyaki123/devise,onursarikaya/devise,posgarou/devise,MAubreyK/devise,sharma1nitish/devise,Umar-malik007/devise,Diego5529/devise,LimeBlast/devise,zvikamenahemi/devise,ar-shestopal/devise,betesh/devise,sferik/devise,chadzilla2080/devise,satyaki123/devise,evopark/devise,chadzilla2080/devise,gauravtiwari/devise,plataformatec/devise,JohnSmall/device-plus-mods,hazah/devise,JaisonBrooks/devise,stanhu/devise,hauledev/devise,9040044/devise,kewaunited/devise,rlhh/devise,SiddhiPrabha/devise,solutelabs-savan/deviseOne,ngpestelos/devise,Umar-malik007/devise,bonekost/devise,eaconde/devise,ar-shestopal/devise,sharma1nitish/devise,andyhite/devise,dgynn/devise,hauledev/devise,yakovenkodenis/devise,andyhite/devise,Ataraxic/devise,leonardoprg/devise,vincentwoo/devise,robertquinn/devise,deivid-rodriguez/devise,zhaoxiao10/devise,tiarly/devise,joycedelatorre/devise,JaisonBrooks/devise,bonekost/devise,Serg09/devise,4nshu19/devise,Legalyze/devise,absk1317/devise,thejourneydude/devise,rubyrider/devise,randoum/devise,twalpole/devise,davidrv/devise,testerzz/devise,marlonandrade/devise,kewaunited/devise,xiuxian123/loyal_device,janocat/devise,Legalyze/devise,plataformatec/devise,Course-Master/devise,nambrot/devise,imaboldcompany/devise,sulestone/devise,janocat/devise,ar-shestopal/devise,digideskio/devise,betesh/devise,zeiv/devise-archangel,Serg09/devise,yizjiang/devise,LimeBlast/devise,sulestone/devise,yannis/biologyconf,Odyl/devise,dgynn/devise,dgynn/devise,hazah/devise,zarinn3pal/devise,twalpole/devise,djfpaagman/devise,zarinn3pal/devise,sespindola/devise,LauraWN/devise,sferik/devise,alan707/startup_theme,Qwiklabs/devise,satyaki123/devise,rubyrider/devise,marlonandrade/devise,janocat/devise,JanChw/devise,riskgod/devise,DanFerreira/devise,jnappy/devise,DanFerreira/devise,Bazay/devise,buzybee83/devise,ram-krishan/devise,eaconde/devise,joycedelatorre/devise,gauravtiwari/devise,LauraWN/devise,havok2905/devise,sulestone/devise,xymbol/devise,yizjiang/devise,vincentwoo/devise,cassioscabral/devise,eltonchrls/devise,SadTreeFriends/devise,nambrot/devise,silvaelton/devise,deivid-rodriguez/devise,bobegir/devise,Umar-malik007/devise,SadTreeFriends/devise,havok2905/devise,solutelabs-savan/deviseOne,yakovenkodenis/devise,testerzz/devise,shtzr840329/devise,ram-krishan/devise,bonekost/devise,cefigueiredo/devise,joycedelatorre/devise,silvaelton/devise,xymbol/devise,djfpaagman/devise,Odyl/devise,rubyrider/devise,yang70/devise,buzybee83/devise,RailsDev42/devise,yang70/devise,Fuseit/devise,yui-knk/devise,Ataraxic/devise,leonardoprg/devise,yannis/biologyconf,cassioscabral/devise,sideci-sample/sideci-sample-devise,keeliker/devise,djfpaagman/devise,keeliker/devise,yizjiang/devise,JanChw/devise,bolshakov/devise,SiddhiPrabha/devise,4nshu19/devise,bobegir/devise,bobegir/devise,RailsDev42/devise,xymbol/devise,denysnando/devise,Angeldude/devise,timoschilling/devise,sideci-sample/sideci-sample-devise,Legalyze/devise,Ataraxic/devise,tiarly/devise,nambrot/devise,NeilvB/devise,Bazay/devise,randoum/devise,betesh/devise,randoum/devise,davidrv/devise,stanhu/devise,rlhh/devise,riskgod/devise,evopark/devise,buzybee83/devise,0x000000/devise,jahammo2/devise,NeilvB/devise,eltonchrls/devise,HopeCommUnityCenter/devise,thiagorp/devise,denysnando/devise,tjgrathwell/devise,havok2905/devise,marlonandrade/devise,Diego5529/devise,timoschilling/devise,solutelabs-savan/deviseOne,rlhh/devise,davidrv/devise,sespindola/devise,chrisnordqvist/devise,tiarly/devise,absk1317/devise,LimeBlast/devise,Angeldude/devise,testerzz/devise,yui-knk/devise,sespindola/devise,Qwiklabs/devise,hazah/devise,zarinn3pal/devise,eltonchrls/devise,yakovenkodenis/devise,jahammo2/devise,didacte/devise,SadTreeFriends/devise,posgarou/devise,Angeldude/devise,4nshu19/devise,NeilvB/devise,hauledev/devise,zvikamenahemi/devise,didacte/devise,MAubreyK/devise,Odyl/devise,JaisonBrooks/devise,yang70/devise,9040044/devise,Diego5529/devise
|
ruby
|
## Code Before:
require 'test_helper'
class SessionsControllerTest < ActionController::TestCase
tests Devise::SessionsController
include Devise::TestHelpers
test "#create doesn't raise exception after Warden authentication fails when TestHelpers included" do
request.env["devise.mapping"] = Devise.mappings[:user]
post :create, :user => {
:email => "[email protected]",
:password => "wevdude"
}
assert_equal 200, @response.status
assert_template "devise/sessions/new"
end
test "#new doesn't raise mass-assignment exception even if sign-in key is attr_protected" do
request.env["devise.mapping"] = Devise.mappings[:user]
ActiveRecord::Base.mass_assignment_sanitizer = :strict
User.class_eval { attr_protected :email }
begin
assert_nothing_raised ActiveModel::MassAssignmentSecurity::Error do
get :new, :user => { :email => "allez viens!" }
end
ensure
ActiveRecord::Base.mass_assignment_sanitizer = :logger
User.class_eval { attr_accessible :email }
end
end
end
## Instruction:
Fix build so it works with Rails 3.1.
## Code After:
require 'test_helper'
class SessionsControllerTest < ActionController::TestCase
tests Devise::SessionsController
include Devise::TestHelpers
test "#create doesn't raise exception after Warden authentication fails when TestHelpers included" do
request.env["devise.mapping"] = Devise.mappings[:user]
post :create, :user => {
:email => "[email protected]",
:password => "wevdude"
}
assert_equal 200, @response.status
assert_template "devise/sessions/new"
end
if ActiveRecord::Base.respond_to?(:mass_assignment_sanitizer)
test "#new doesn't raise mass-assignment exception even if sign-in key is attr_protected" do
request.env["devise.mapping"] = Devise.mappings[:user]
ActiveRecord::Base.mass_assignment_sanitizer = :strict
User.class_eval { attr_protected :email }
begin
assert_nothing_raised ActiveModel::MassAssignmentSecurity::Error do
get :new, :user => { :email => "allez viens!" }
end
ensure
ActiveRecord::Base.mass_assignment_sanitizer = :logger
User.class_eval { attr_accessible :email }
end
end
end
end
|
808c3ba9fbe8bf871ad20148f6190a9979c3ec8f
|
install.sh
|
install.sh
|
echo -n "Do you want to update your system (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo No
else
sudo apt-get update
sudo apt-get -y upgrade
echo "# => SYSTEM UPDATED SUCCESSFULLY"
fi
|
echo -n "Do you want to update your system (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo No
else
sudo apt-get update
sudo apt-get -y upgrade
echo "# => SYSTEM UPDATED SUCCESSFULLY"
fi
# Ask the user for Firewall Rules Cleanup
echo -n "Do you want to cleanup the current firewall rules (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo "# => CLEANUP FIREWALL RULES: SKIPPED"
else
sudo iptables -F
echo "# => CLEANUP FIREWALL RULES: EXECUTED"
fi
|
Add Cleanup Firewall Rules Feature
|
Add Cleanup Firewall Rules Feature
|
Shell
|
mit
|
jimbeaudoin/debian-firewall
|
shell
|
## Code Before:
echo -n "Do you want to update your system (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo No
else
sudo apt-get update
sudo apt-get -y upgrade
echo "# => SYSTEM UPDATED SUCCESSFULLY"
fi
## Instruction:
Add Cleanup Firewall Rules Feature
## Code After:
echo -n "Do you want to update your system (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo No
else
sudo apt-get update
sudo apt-get -y upgrade
echo "# => SYSTEM UPDATED SUCCESSFULLY"
fi
# Ask the user for Firewall Rules Cleanup
echo -n "Do you want to cleanup the current firewall rules (y/n)[y]? "
read answer
if echo "$answer" | grep -iq "^n" ;then
echo "# => CLEANUP FIREWALL RULES: SKIPPED"
else
sudo iptables -F
echo "# => CLEANUP FIREWALL RULES: EXECUTED"
fi
|
6446f823c180647871bad801e592cede1eaa5826
|
client/v1/feeds/account-followers.js
|
client/v1/feeds/account-followers.js
|
var _ = require('underscore');
var util = require('util');
var FeedBase = require('./feed-base');
function AccountFollowersFeed(session, accountId, limit) {
this.accountId = accountId;
this.limit = limit || 7500;
// Should be enought for 7500 records
this.timeout = 10 * 60 * 1000;
FeedBase.apply(this, arguments);
}
util.inherits(AccountFollowersFeed, FeedBase);
module.exports = AccountFollowersFeed;
var Request = require('../request');
var Account = require('../account');
AccountFollowersFeed.prototype.get = function () {
var that = this;
return new Request(that.session)
.setMethod('GET')
.setResource('followersFeed', {
id: that.accountId,
maxId: that.cursor
})
.send()
.then(function(data) {
that.moreAvailable = !!data.next_max_id;
if (that.moreAvailable) {
that.setCursor(data.next_max_id);
}
return _.map(data.users, function (user) {
return new Account(that.session, user);
});
})
};
|
var _ = require('underscore');
var util = require('util');
var FeedBase = require('./feed-base');
function AccountFollowersFeed(session, accountId, limit) {
this.accountId = accountId;
this.limit = limit || Infinity;
this.timeout = 10 * 60 * 1000;
FeedBase.apply(this, arguments);
}
util.inherits(AccountFollowersFeed, FeedBase);
module.exports = AccountFollowersFeed;
var Request = require('../request');
var Account = require('../account');
AccountFollowersFeed.prototype.get = function () {
var that = this;
return new Request(that.session)
.setMethod('GET')
.setResource('followersFeed', {
id: that.accountId,
maxId: that.cursor
})
.send()
.then(function(data) {
that.moreAvailable = !!data.next_max_id;
if (that.moreAvailable) {
that.setCursor(data.next_max_id);
}
return _.map(data.users, function (user) {
return new Account(that.session, user);
});
})
};
|
Remove unobvious default limit for followers. Now its Infinity by default.
|
Remove unobvious default limit for followers. Now its Infinity by default.
|
JavaScript
|
mit
|
pablomatiasgomez/instagram-private-api,pablomatiasgomez/instagram-private-api,gitadept/instagram-private-api,huttarichard/instagram-private-api
|
javascript
|
## Code Before:
var _ = require('underscore');
var util = require('util');
var FeedBase = require('./feed-base');
function AccountFollowersFeed(session, accountId, limit) {
this.accountId = accountId;
this.limit = limit || 7500;
// Should be enought for 7500 records
this.timeout = 10 * 60 * 1000;
FeedBase.apply(this, arguments);
}
util.inherits(AccountFollowersFeed, FeedBase);
module.exports = AccountFollowersFeed;
var Request = require('../request');
var Account = require('../account');
AccountFollowersFeed.prototype.get = function () {
var that = this;
return new Request(that.session)
.setMethod('GET')
.setResource('followersFeed', {
id: that.accountId,
maxId: that.cursor
})
.send()
.then(function(data) {
that.moreAvailable = !!data.next_max_id;
if (that.moreAvailable) {
that.setCursor(data.next_max_id);
}
return _.map(data.users, function (user) {
return new Account(that.session, user);
});
})
};
## Instruction:
Remove unobvious default limit for followers. Now its Infinity by default.
## Code After:
var _ = require('underscore');
var util = require('util');
var FeedBase = require('./feed-base');
function AccountFollowersFeed(session, accountId, limit) {
this.accountId = accountId;
this.limit = limit || Infinity;
this.timeout = 10 * 60 * 1000;
FeedBase.apply(this, arguments);
}
util.inherits(AccountFollowersFeed, FeedBase);
module.exports = AccountFollowersFeed;
var Request = require('../request');
var Account = require('../account');
AccountFollowersFeed.prototype.get = function () {
var that = this;
return new Request(that.session)
.setMethod('GET')
.setResource('followersFeed', {
id: that.accountId,
maxId: that.cursor
})
.send()
.then(function(data) {
that.moreAvailable = !!data.next_max_id;
if (that.moreAvailable) {
that.setCursor(data.next_max_id);
}
return _.map(data.users, function (user) {
return new Account(that.session, user);
});
})
};
|
9ead53346a9f5bb9d28c50c8b67e9643c7d5489f
|
tests/common_tests.yml
|
tests/common_tests.yml
|
---
# Common tests between local Vagrant and Travis
- name : Jenkins repository key should exists
become : True
apt_key :
url : "{{ jenkins_repository_key_url }}"
register : jenkins_apt_key_test
when :
- ansible_os_family == "Debian"
- fail :
msg : "Key import task change if we import twice"
when :
- ansible_os_family == "Debian"
- jenkins_apt_key_test.changed
|
---
# Common tests between local Vagrant and Travis
- name : Jenkins repository key should exists
become : True
apt_key :
url : "{{ jenkins_repository_key_url }}"
register : jenkins_apt_key_test
when :
- ansible_os_family == "Debian"
- name : Fail if Jenkins repository key reimport change
fail :
msg : "Key import task change if we import twice"
when :
- ansible_os_family == "Debian"
- jenkins_apt_key_test.changed
|
Add a name for fail task into common test
|
Add a name for fail task into common test
|
YAML
|
mit
|
infOpen/ansible-role-jenkins
|
yaml
|
## Code Before:
---
# Common tests between local Vagrant and Travis
- name : Jenkins repository key should exists
become : True
apt_key :
url : "{{ jenkins_repository_key_url }}"
register : jenkins_apt_key_test
when :
- ansible_os_family == "Debian"
- fail :
msg : "Key import task change if we import twice"
when :
- ansible_os_family == "Debian"
- jenkins_apt_key_test.changed
## Instruction:
Add a name for fail task into common test
## Code After:
---
# Common tests between local Vagrant and Travis
- name : Jenkins repository key should exists
become : True
apt_key :
url : "{{ jenkins_repository_key_url }}"
register : jenkins_apt_key_test
when :
- ansible_os_family == "Debian"
- name : Fail if Jenkins repository key reimport change
fail :
msg : "Key import task change if we import twice"
when :
- ansible_os_family == "Debian"
- jenkins_apt_key_test.changed
|
2004a168dc481a9b3a2986741507e953efa7afab
|
bindings/uwp/uwp-binding/Microsoft.Azure.IoT.Gateway/GatewayUwp.h
|
bindings/uwp/uwp-binding/Microsoft.Azure.IoT.Gateway/GatewayUwp.h
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "..\..\..\..\core\inc\gateway_ll.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namespace Gateway {
interface class IGatewayModule;
ref class MessageBus;
class InternalGatewayModule : public IInternalGatewayModule
{
public:
InternalGatewayModule(IGatewayModule ^moduleImpl) { _moduleImpl = moduleImpl; }
virtual ~InternalGatewayModule()
{
}
void Module_Create(MESSAGE_BUS_HANDLE busHandle, const void* configuration);
void Module_Destroy();
void Module_Receive(MODULE_HANDLE moduleHandle, MESSAGE_HANDLE messageHandle);
private:
IGatewayModule^ _moduleImpl;
};
public ref class Gateway sealed
{
public:
Gateway(Windows::Foundation::Collections::IVector<Microsoft::Azure::IoT::Gateway::IGatewayModule^>^ modules);
virtual ~Gateway()
{
Gateway_LL_UwpDestroy(gateway_handle);
gateway_handle = nullptr;
VECTOR_destroy(modules_handle);
}
private:
VECTOR_HANDLE modules_handle;
GATEWAY_HANDLE gateway_handle;
MESSAGE_BUS_HANDLE messagebus_handle;
std::vector<std::unique_ptr<InternalGatewayModule>> gatewayModulesToDelete;
};
}}}};
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "gateway.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namespace Gateway {
interface class IGatewayModule;
ref class MessageBus;
class InternalGatewayModule : public IInternalGatewayModule
{
public:
InternalGatewayModule(IGatewayModule ^moduleImpl) { _moduleImpl = moduleImpl; }
virtual ~InternalGatewayModule()
{
}
void Module_Create(MESSAGE_BUS_HANDLE busHandle, const void* configuration);
void Module_Destroy();
void Module_Receive(MODULE_HANDLE moduleHandle, MESSAGE_HANDLE messageHandle);
private:
IGatewayModule^ _moduleImpl;
};
public ref class Gateway sealed
{
public:
Gateway(Windows::Foundation::Collections::IVector<Microsoft::Azure::IoT::Gateway::IGatewayModule^>^ modules);
virtual ~Gateway()
{
Gateway_LL_UwpDestroy(gateway_handle);
gateway_handle = nullptr;
VECTOR_destroy(modules_handle);
}
private:
VECTOR_HANDLE modules_handle;
GATEWAY_HANDLE gateway_handle;
MESSAGE_BUS_HANDLE messagebus_handle;
std::vector<std::unique_ptr<InternalGatewayModule>> gatewayModulesToDelete;
};
}}}};
|
Fix gateway header path in UWP
|
Fix gateway header path in UWP
|
C
|
mit
|
yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk,yaweiw/azure-iot-gateway-sdk
|
c
|
## Code Before:
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "..\..\..\..\core\inc\gateway_ll.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namespace Gateway {
interface class IGatewayModule;
ref class MessageBus;
class InternalGatewayModule : public IInternalGatewayModule
{
public:
InternalGatewayModule(IGatewayModule ^moduleImpl) { _moduleImpl = moduleImpl; }
virtual ~InternalGatewayModule()
{
}
void Module_Create(MESSAGE_BUS_HANDLE busHandle, const void* configuration);
void Module_Destroy();
void Module_Receive(MODULE_HANDLE moduleHandle, MESSAGE_HANDLE messageHandle);
private:
IGatewayModule^ _moduleImpl;
};
public ref class Gateway sealed
{
public:
Gateway(Windows::Foundation::Collections::IVector<Microsoft::Azure::IoT::Gateway::IGatewayModule^>^ modules);
virtual ~Gateway()
{
Gateway_LL_UwpDestroy(gateway_handle);
gateway_handle = nullptr;
VECTOR_destroy(modules_handle);
}
private:
VECTOR_HANDLE modules_handle;
GATEWAY_HANDLE gateway_handle;
MESSAGE_BUS_HANDLE messagebus_handle;
std::vector<std::unique_ptr<InternalGatewayModule>> gatewayModulesToDelete;
};
}}}};
## Instruction:
Fix gateway header path in UWP
## Code After:
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include "pch.h"
#include "gateway.h"
#include "IGatewayModule.h"
namespace Microsoft { namespace Azure { namespace IoT { namespace Gateway {
interface class IGatewayModule;
ref class MessageBus;
class InternalGatewayModule : public IInternalGatewayModule
{
public:
InternalGatewayModule(IGatewayModule ^moduleImpl) { _moduleImpl = moduleImpl; }
virtual ~InternalGatewayModule()
{
}
void Module_Create(MESSAGE_BUS_HANDLE busHandle, const void* configuration);
void Module_Destroy();
void Module_Receive(MODULE_HANDLE moduleHandle, MESSAGE_HANDLE messageHandle);
private:
IGatewayModule^ _moduleImpl;
};
public ref class Gateway sealed
{
public:
Gateway(Windows::Foundation::Collections::IVector<Microsoft::Azure::IoT::Gateway::IGatewayModule^>^ modules);
virtual ~Gateway()
{
Gateway_LL_UwpDestroy(gateway_handle);
gateway_handle = nullptr;
VECTOR_destroy(modules_handle);
}
private:
VECTOR_HANDLE modules_handle;
GATEWAY_HANDLE gateway_handle;
MESSAGE_BUS_HANDLE messagebus_handle;
std::vector<std::unique_ptr<InternalGatewayModule>> gatewayModulesToDelete;
};
}}}};
|
8f30a7d3794891373a1f707bdf6afa083717dfc0
|
ggplot/scales/scale_identity.py
|
ggplot/scales/scale_identity.py
|
from __future__ import absolute_import, division, print_function
from ..utils import identity, alias
from .scale import scale_discrete, scale_continuous
class scale_color_identity(scale_discrete):
aesthetics = ['color']
palette = staticmethod(identity)
class scale_fill_identity(scale_color_identity):
aesthetics = ['fill']
class scale_shape_identity(scale_discrete):
aesthetics = ['shape']
palette = staticmethod(identity)
class scale_linetype_identity(scale_discrete):
aesthetics = ['linetype']
palette = staticmethod(identity)
class scale_alpha_identity(scale_continuous):
aesthetics = ['alpha']
palette = staticmethod(identity)
class scale_size_identity(scale_continuous):
aesthetics = ['size']
palette = staticmethod(identity)
# American to British spelling
alias('scale_colour_identity', scale_color_identity)
|
from __future__ import absolute_import, division, print_function
from ..utils import identity, alias
from .scale import scale_discrete, scale_continuous
class MapTrainMixin(object):
"""
Override map and train methods
"""
def map(self, x):
return x
def train(self, x):
# do nothing if no guide,
# otherwise train so we know what breaks to use
if self.guide is None:
return
return super(MapTrainMixin, self).train(x)
class scale_color_identity(MapTrainMixin, scale_discrete):
aesthetics = ['color']
palette = staticmethod(identity)
guide = None
class scale_fill_identity(scale_color_identity):
aesthetics = ['fill']
class scale_shape_identity(MapTrainMixin, scale_discrete):
aesthetics = ['shape']
palette = staticmethod(identity)
guide = None
class scale_linetype_identity(MapTrainMixin, scale_discrete):
aesthetics = ['linetype']
palette = staticmethod(identity)
guide = None
class scale_alpha_identity(MapTrainMixin, scale_continuous):
aesthetics = ['alpha']
palette = staticmethod(identity)
guide = None
class scale_size_identity(MapTrainMixin, scale_continuous):
aesthetics = ['size']
palette = staticmethod(identity)
guide = None
# American to British spelling
alias('scale_colour_identity', scale_color_identity)
|
Fix identity scales, override map & train methods
|
Fix identity scales, override map & train methods
|
Python
|
mit
|
has2k1/plotnine,has2k1/plotnine
|
python
|
## Code Before:
from __future__ import absolute_import, division, print_function
from ..utils import identity, alias
from .scale import scale_discrete, scale_continuous
class scale_color_identity(scale_discrete):
aesthetics = ['color']
palette = staticmethod(identity)
class scale_fill_identity(scale_color_identity):
aesthetics = ['fill']
class scale_shape_identity(scale_discrete):
aesthetics = ['shape']
palette = staticmethod(identity)
class scale_linetype_identity(scale_discrete):
aesthetics = ['linetype']
palette = staticmethod(identity)
class scale_alpha_identity(scale_continuous):
aesthetics = ['alpha']
palette = staticmethod(identity)
class scale_size_identity(scale_continuous):
aesthetics = ['size']
palette = staticmethod(identity)
# American to British spelling
alias('scale_colour_identity', scale_color_identity)
## Instruction:
Fix identity scales, override map & train methods
## Code After:
from __future__ import absolute_import, division, print_function
from ..utils import identity, alias
from .scale import scale_discrete, scale_continuous
class MapTrainMixin(object):
"""
Override map and train methods
"""
def map(self, x):
return x
def train(self, x):
# do nothing if no guide,
# otherwise train so we know what breaks to use
if self.guide is None:
return
return super(MapTrainMixin, self).train(x)
class scale_color_identity(MapTrainMixin, scale_discrete):
aesthetics = ['color']
palette = staticmethod(identity)
guide = None
class scale_fill_identity(scale_color_identity):
aesthetics = ['fill']
class scale_shape_identity(MapTrainMixin, scale_discrete):
aesthetics = ['shape']
palette = staticmethod(identity)
guide = None
class scale_linetype_identity(MapTrainMixin, scale_discrete):
aesthetics = ['linetype']
palette = staticmethod(identity)
guide = None
class scale_alpha_identity(MapTrainMixin, scale_continuous):
aesthetics = ['alpha']
palette = staticmethod(identity)
guide = None
class scale_size_identity(MapTrainMixin, scale_continuous):
aesthetics = ['size']
palette = staticmethod(identity)
guide = None
# American to British spelling
alias('scale_colour_identity', scale_color_identity)
|
895d3c50e0cda6c36a0d6bf4162164d35a925fc8
|
distro/quarkus/openshift/apicurio-image-streams-template.yml
|
distro/quarkus/openshift/apicurio-image-streams-template.yml
|
apiVersion: v1
kind: Template
metadata:
name: apicurio-studio-image-streams-template
objects:
# Image Streams for the Apicurio components
- apiVersion: v1
kind: ImageStream
metadata:
name: auth
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-auth-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: api
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-api-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ws
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-ws-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ui
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-ui-quarkus:latest
importPolicy:
scheduled: true
|
apiVersion: v1
kind: Template
metadata:
name: apicurio-studio-image-streams-template
objects:
# Image Streams for the Apicurio components
- apiVersion: v1
kind: ImageStream
metadata:
name: auth
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-auth:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: api
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-api:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ws
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-ws:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ui
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-ui:latest
importPolicy:
scheduled: true
|
Change images to apicurio defaults
|
Change images to apicurio defaults
|
YAML
|
apache-2.0
|
Apicurio/apicurio-studio,Apicurio/apicurio-studio,Apicurio/apicurio-studio,apiman/apiman-studio,Apicurio/apicurio-studio,apiman/apiman-studio,apiman/apiman-studio,Apicurio/apicurio-studio,apiman/apiman-studio,apiman/apiman-studio
|
yaml
|
## Code Before:
apiVersion: v1
kind: Template
metadata:
name: apicurio-studio-image-streams-template
objects:
# Image Streams for the Apicurio components
- apiVersion: v1
kind: ImageStream
metadata:
name: auth
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-auth-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: api
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-api-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ws
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-ws-quarkus:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ui
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: carnal/apicurio-studio-ui-quarkus:latest
importPolicy:
scheduled: true
## Instruction:
Change images to apicurio defaults
## Code After:
apiVersion: v1
kind: Template
metadata:
name: apicurio-studio-image-streams-template
objects:
# Image Streams for the Apicurio components
- apiVersion: v1
kind: ImageStream
metadata:
name: auth
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-auth:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: api
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-api:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ws
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-ws:latest
importPolicy:
scheduled: true
- apiVersion: v1
kind: ImageStream
metadata:
name: ui
spec:
tags:
- name: latest-release
from:
kind: DockerImage
name: apicurio/apicurio-studio-ui:latest
importPolicy:
scheduled: true
|
9c3ed6a4b157bdccf1a83f4fc7fa2eccaf2539c5
|
src/etcdc_sup.erl
|
src/etcdc_sup.erl
|
%% Top supervisor for etcdc
%%
%% ----------------------------------------------------------------------------
-module(etcdc_sup).
-copyright("Christoffer Vikström <[email protected]>").
-export([start_link/0]).
-export([init/1]).
-behaviour(supervisor).
%% ----------------------------------------------------------------------------
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, no_arg).
%% ----------------------------------------------------------------------------
init(no_arg) ->
WatchSup = child(etcdc_watch_sup, etcdc_watch_sup, supervisor, []),
StreamSup = child(etcdc_stream_sup, etcdc_stream_sup, supervisor, []),
TTLSup = child(etcdc_ttl_sup, etcdc_ttl_sup, supervisor, []),
Strategy = {one_for_one, 1, 10},
{ok, {Strategy, [WatchSup, StreamSup, TTLSup]}}.
%% ----------------------------------------------------------------------------
child(Name, Mod, Type, Args) ->
{Name, {Mod, start_link, Args}, permanent, 3000, Type, [Mod]}.
|
%% Top supervisor for etcdc
%%
%% ----------------------------------------------------------------------------
-module(etcdc_sup).
-copyright("Christoffer Vikström <[email protected]>").
-export([start_link/0]).
-export([init/1]).
-behaviour(supervisor).
%% ----------------------------------------------------------------------------
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, no_arg).
%% ----------------------------------------------------------------------------
init(no_arg) ->
WatchSup = child(etcdc_watch_sup, etcdc_watch_sup, supervisor, []),
TTLSup = child(etcdc_ttl_sup, etcdc_ttl_sup, supervisor, []),
Strategy = {one_for_one, 1, 10},
{ok, {Strategy, [WatchSup, TTLSup]}}.
%% ----------------------------------------------------------------------------
child(Name, Mod, Type, Args) ->
{Name, {Mod, start_link, Args}, permanent, 3000, Type, [Mod]}.
|
Fix startup bug (trying to start etcdc_stream_sup)
|
Fix startup bug (trying to start etcdc_stream_sup)
|
Erlang
|
apache-2.0
|
redink/etcdc
|
erlang
|
## Code Before:
%% Top supervisor for etcdc
%%
%% ----------------------------------------------------------------------------
-module(etcdc_sup).
-copyright("Christoffer Vikström <[email protected]>").
-export([start_link/0]).
-export([init/1]).
-behaviour(supervisor).
%% ----------------------------------------------------------------------------
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, no_arg).
%% ----------------------------------------------------------------------------
init(no_arg) ->
WatchSup = child(etcdc_watch_sup, etcdc_watch_sup, supervisor, []),
StreamSup = child(etcdc_stream_sup, etcdc_stream_sup, supervisor, []),
TTLSup = child(etcdc_ttl_sup, etcdc_ttl_sup, supervisor, []),
Strategy = {one_for_one, 1, 10},
{ok, {Strategy, [WatchSup, StreamSup, TTLSup]}}.
%% ----------------------------------------------------------------------------
child(Name, Mod, Type, Args) ->
{Name, {Mod, start_link, Args}, permanent, 3000, Type, [Mod]}.
## Instruction:
Fix startup bug (trying to start etcdc_stream_sup)
## Code After:
%% Top supervisor for etcdc
%%
%% ----------------------------------------------------------------------------
-module(etcdc_sup).
-copyright("Christoffer Vikström <[email protected]>").
-export([start_link/0]).
-export([init/1]).
-behaviour(supervisor).
%% ----------------------------------------------------------------------------
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, no_arg).
%% ----------------------------------------------------------------------------
init(no_arg) ->
WatchSup = child(etcdc_watch_sup, etcdc_watch_sup, supervisor, []),
TTLSup = child(etcdc_ttl_sup, etcdc_ttl_sup, supervisor, []),
Strategy = {one_for_one, 1, 10},
{ok, {Strategy, [WatchSup, TTLSup]}}.
%% ----------------------------------------------------------------------------
child(Name, Mod, Type, Args) ->
{Name, {Mod, start_link, Args}, permanent, 3000, Type, [Mod]}.
|
36f47a5ca99b8457834236c659bec732edde5a11
|
docs/installation.md
|
docs/installation.md
|
phy works better on computers with sufficient RAM, a recent graphics card, and an SSD to store data files.
## Dependencies
Main dependencies are NumPy, SciPy, PyQt5, pyopengl, joblib. The full list of dependencies is available in the `environment.yml` file.
## Upgrading from phy 1 to phy 2
* Never install phy 1 and phy 2 in the same conda environment.
* It is recommended to delete `~/.phy/TemplateGUI/state.json` when upgrading.
## Instructions
Minimal installation instructions (to be completed):
1. Install [Anaconda](https://www.anaconda.com/distribution/#download-section).
2. Open a terminal and type:
```bash
conda create -n phy2 python pip numpy matplotlib scipy h5py pyqt cython -y
conda activate phy2
pip install colorcet pyopengl qtconsole requests traitlets tqdm joblib click mkdocs PyQtWebEngine
pip install git+https://github.com/cortex-lab/phy.git@dev
pip install git+https://github.com/cortex-lab/phylib.git
```
3. Phy should now be installed. Open the GUI on a dataset as follows (the phy2 environment should still be activated):
```bash
cd path/to/my/spikesorting/output
phy template-gui params.py
```
|
phy works better on computers with sufficient RAM, a recent graphics card, and an SSD to store data files.
## Dependencies
Main dependencies are NumPy, SciPy, PyQt5, pyopengl, joblib. The full list of dependencies is available in the `environment.yml` file.
## Upgrading from phy 1 to phy 2
* Never install phy 1 and phy 2 in the same conda environment.
* It is recommended to delete `~/.phy/TemplateGUI/state.json` when upgrading.
## Instructions
Minimal installation instructions (to be completed):
1. Install [Anaconda](https://www.anaconda.com/distribution/#download-section).
2. Open a terminal and type:
```bash
conda create -n phy2 python pip numpy matplotlib scipy h5py pyqt cython -y
conda activate phy2
pip install colorcet pyopengl qtconsole requests traitlets tqdm joblib click mkdocs PyQtWebEngine
pip install git+https://github.com/cortex-lab/phy.git@dev
pip install git+https://github.com/cortex-lab/phylib.git
```
3. Phy should now be installed. Open the GUI on a dataset as follows (the phy2 environment should still be activated):
```bash
cd path/to/my/spikesorting/output
phy template-gui params.py
```
## How to reset the GUI configuration
Run `phy` with the `--clear-state` option. Alternatively, delete both files:
* **Global GUI state**: `~/.phy/TemplateGUI/state.json` (common to all datasets)
* **Local GUI state**: `.phy/state.json` (within your data directory)
|
Add note in the documentation about how to reset the GUI state
|
Add note in the documentation about how to reset the GUI state
|
Markdown
|
bsd-3-clause
|
kwikteam/phy,kwikteam/phy,kwikteam/phy
|
markdown
|
## Code Before:
phy works better on computers with sufficient RAM, a recent graphics card, and an SSD to store data files.
## Dependencies
Main dependencies are NumPy, SciPy, PyQt5, pyopengl, joblib. The full list of dependencies is available in the `environment.yml` file.
## Upgrading from phy 1 to phy 2
* Never install phy 1 and phy 2 in the same conda environment.
* It is recommended to delete `~/.phy/TemplateGUI/state.json` when upgrading.
## Instructions
Minimal installation instructions (to be completed):
1. Install [Anaconda](https://www.anaconda.com/distribution/#download-section).
2. Open a terminal and type:
```bash
conda create -n phy2 python pip numpy matplotlib scipy h5py pyqt cython -y
conda activate phy2
pip install colorcet pyopengl qtconsole requests traitlets tqdm joblib click mkdocs PyQtWebEngine
pip install git+https://github.com/cortex-lab/phy.git@dev
pip install git+https://github.com/cortex-lab/phylib.git
```
3. Phy should now be installed. Open the GUI on a dataset as follows (the phy2 environment should still be activated):
```bash
cd path/to/my/spikesorting/output
phy template-gui params.py
```
## Instruction:
Add note in the documentation about how to reset the GUI state
## Code After:
phy works better on computers with sufficient RAM, a recent graphics card, and an SSD to store data files.
## Dependencies
Main dependencies are NumPy, SciPy, PyQt5, pyopengl, joblib. The full list of dependencies is available in the `environment.yml` file.
## Upgrading from phy 1 to phy 2
* Never install phy 1 and phy 2 in the same conda environment.
* It is recommended to delete `~/.phy/TemplateGUI/state.json` when upgrading.
## Instructions
Minimal installation instructions (to be completed):
1. Install [Anaconda](https://www.anaconda.com/distribution/#download-section).
2. Open a terminal and type:
```bash
conda create -n phy2 python pip numpy matplotlib scipy h5py pyqt cython -y
conda activate phy2
pip install colorcet pyopengl qtconsole requests traitlets tqdm joblib click mkdocs PyQtWebEngine
pip install git+https://github.com/cortex-lab/phy.git@dev
pip install git+https://github.com/cortex-lab/phylib.git
```
3. Phy should now be installed. Open the GUI on a dataset as follows (the phy2 environment should still be activated):
```bash
cd path/to/my/spikesorting/output
phy template-gui params.py
```
## How to reset the GUI configuration
Run `phy` with the `--clear-state` option. Alternatively, delete both files:
* **Global GUI state**: `~/.phy/TemplateGUI/state.json` (common to all datasets)
* **Local GUI state**: `.phy/state.json` (within your data directory)
|
74884f27ecd2b32c0ac9cddf7b78c42857768832
|
spec/state_machine-mongoid_spec.rb
|
spec/state_machine-mongoid_spec.rb
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "StateMachineMongoid integration" do
before(:all) do
Mongoid.configure do |config|
name = "state_machine-mongoid"
host = "localhost"
config.allow_dynamic_fields = false
config.master = Mongo::Connection.new.db(name)
end
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop }
end
context "new vehicle" do
before(:each) do
@vehicle = Vehicle.new
end
it "should be parked" do
@vehicle.parked?.should be_true
@vehicle.state.should == "parked"
end
context "after igniting" do
before(:each) do
@vehicle.ignite
end
it "should be ignited" do
@vehicle.idling?.should be_true
end
end
end
context "read from database" do
before(:each) do
@vehicle = Vehicle.find(Vehicle.create.id)
end
it "should has sate" do
@vehicle.state.should_not nil
end
it "should state transition" do
@vehicle.ignite
@vehicle.idling?.should be_true
end
end
end
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "StateMachineMongoid integration" do
before(:all) do
Mongoid.configure do |config|
name = "state_machine-mongoid"
host = "localhost"
config.allow_dynamic_fields = false
config.master = Mongo::Connection.new.db(name)
end
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop }
end
context "new vehicle" do
before(:each) do
@vehicle = Vehicle.create!
end
it "should be parked" do
@vehicle.should be_parked
@vehicle.state.should == "parked"
end
context "after igniting" do
it "should be ignited" do
@vehicle.ignite!
@vehicle.should be_idling
end
end
end
context "read from database" do
before(:each) do
vehicle = Vehicle.create!
@vehicle = Vehicle.find(vehicle.id)
end
it "should has sate" do
@vehicle.state.should_not be_nil
end
it "should state transition" do
@vehicle.ignite
@vehicle.should be_idling
end
end
end
|
Clear up the specs a tiny bit
|
Clear up the specs a tiny bit
|
Ruby
|
mit
|
martinciu/state_machine-mongoid
|
ruby
|
## Code Before:
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "StateMachineMongoid integration" do
before(:all) do
Mongoid.configure do |config|
name = "state_machine-mongoid"
host = "localhost"
config.allow_dynamic_fields = false
config.master = Mongo::Connection.new.db(name)
end
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop }
end
context "new vehicle" do
before(:each) do
@vehicle = Vehicle.new
end
it "should be parked" do
@vehicle.parked?.should be_true
@vehicle.state.should == "parked"
end
context "after igniting" do
before(:each) do
@vehicle.ignite
end
it "should be ignited" do
@vehicle.idling?.should be_true
end
end
end
context "read from database" do
before(:each) do
@vehicle = Vehicle.find(Vehicle.create.id)
end
it "should has sate" do
@vehicle.state.should_not nil
end
it "should state transition" do
@vehicle.ignite
@vehicle.idling?.should be_true
end
end
end
## Instruction:
Clear up the specs a tiny bit
## Code After:
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "StateMachineMongoid integration" do
before(:all) do
Mongoid.configure do |config|
name = "state_machine-mongoid"
host = "localhost"
config.allow_dynamic_fields = false
config.master = Mongo::Connection.new.db(name)
end
Mongoid.master.collections.select{ |c| c.name !~ /system\./ }.each { |c| c.drop }
end
context "new vehicle" do
before(:each) do
@vehicle = Vehicle.create!
end
it "should be parked" do
@vehicle.should be_parked
@vehicle.state.should == "parked"
end
context "after igniting" do
it "should be ignited" do
@vehicle.ignite!
@vehicle.should be_idling
end
end
end
context "read from database" do
before(:each) do
vehicle = Vehicle.create!
@vehicle = Vehicle.find(vehicle.id)
end
it "should has sate" do
@vehicle.state.should_not be_nil
end
it "should state transition" do
@vehicle.ignite
@vehicle.should be_idling
end
end
end
|
9899bcb788e171ae90f0fbf480c6b0403935236b
|
README.md
|
README.md
|
RetrucLabs/charades-movie
==============
Charades version for movies microservice
## Basic Usage
- use `npm install` to download dependencies
- use `npm test` to run unit and E2E tests
- use `npm start` to run the service
Check `package.json` to see available scripts and build targets.
|
[](https://travis-ci.org/RetrucLabs/charades-movie)
RetrucLabs/charades-movie
==============
Charades version for movies microservice
## Basic Usage
- use `npm install` to download dependencies
- use `npm test` to run unit and E2E tests
- use `npm start` to run the service
Check `package.json` to see available scripts and build targets.
|
Include Travis badge in Readme
|
Include Travis badge in Readme
|
Markdown
|
apache-2.0
|
RetrucLabs/charades-movie
|
markdown
|
## Code Before:
RetrucLabs/charades-movie
==============
Charades version for movies microservice
## Basic Usage
- use `npm install` to download dependencies
- use `npm test` to run unit and E2E tests
- use `npm start` to run the service
Check `package.json` to see available scripts and build targets.
## Instruction:
Include Travis badge in Readme
## Code After:
[](https://travis-ci.org/RetrucLabs/charades-movie)
RetrucLabs/charades-movie
==============
Charades version for movies microservice
## Basic Usage
- use `npm install` to download dependencies
- use `npm test` to run unit and E2E tests
- use `npm start` to run the service
Check `package.json` to see available scripts and build targets.
|
56c483cb4c490439af13db95c151f417bfd20c59
|
junit5-parallel-execution/src/test/resources/junit-platform.properties
|
junit5-parallel-execution/src/test/resources/junit-platform.properties
|
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = same_thread
junit.jupiter.execution.parallel.mode.classes.default = concurrent
# junit.jupiter.execution.parallel.config.strategy = fixed
# junit.jupiter.execution.parallel.config.fixed.parallelism = 3
|
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution.parallel.mode.classes.default = same_thread
# junit.jupiter.execution.parallel.config.strategy = fixed
# junit.jupiter.execution.parallel.config.fixed.parallelism = 3
|
Change default configuration for concurrent tests in junit5-parallel-execution project
|
Change default configuration for concurrent tests in junit5-parallel-execution project
|
INI
|
apache-2.0
|
bonigarcia/mastering-junit5,bonigarcia/mastering-junit5
|
ini
|
## Code Before:
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = same_thread
junit.jupiter.execution.parallel.mode.classes.default = concurrent
# junit.jupiter.execution.parallel.config.strategy = fixed
# junit.jupiter.execution.parallel.config.fixed.parallelism = 3
## Instruction:
Change default configuration for concurrent tests in junit5-parallel-execution project
## Code After:
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution.parallel.mode.classes.default = same_thread
# junit.jupiter.execution.parallel.config.strategy = fixed
# junit.jupiter.execution.parallel.config.fixed.parallelism = 3
|
936bdadb9e949d29a7742b088e0279680afa6c4a
|
copy_from_find_in_files_command.py
|
copy_from_find_in_files_command.py
|
import sublime
import sublime_plugin
import re
class CopyFromFindInFilesCommand(sublime_plugin.TextCommand):
def run(self, edit, force=False):
self.view.run_command('copy')
if not self.in_find_results_view() and not force:
return
clipboard_contents = sublime.get_clipboard()
if clipboard_contents:
settings = sublime.load_settings('CopyFromFindInFiles.sublime-settings')
keep_intermediate_dots = settings.get('keep_intermediate_dots', False)
new_clipboard = RegexStruct(keep_intermediate_dots).sub(clipboard_contents)
sublime.set_clipboard(new_clipboard)
def in_find_results_view(self):
return self.view.settings().get('syntax') == 'Packages/Default/Find Results.hidden-tmLanguage'
class RegexStruct():
default = r'^\s*\d+(\:\s|\s{2})'
without_dots = r'^\s*(\d+(\:\s|\s{2})|.+\n)'
def __init__(self, keep_dots=True):
self.keep_dots = keep_dots
def sub(self, text):
return re.sub(self.construct(), '', text, flags=re.MULTILINE)
def construct(self):
return RegexStruct.default if self.keep_dots else RegexStruct.without_dots
|
import sublime
import sublime_plugin
import re
class CopyFromFindInFilesCommand(sublime_plugin.TextCommand):
def run(self, edit, force=False):
self.view.run_command('copy')
if not self.in_find_results_view() and not force:
return
clipboard_contents = sublime.get_clipboard()
if clipboard_contents:
settings = sublime.load_settings('CopyFromFindInFiles.sublime-settings')
keep_intermediate_dots = settings.get('keep_intermediate_dots', False)
new_clipboard = RegexStruct(keep_intermediate_dots).sub(clipboard_contents)
sublime.set_clipboard(new_clipboard)
def in_find_results_view(self):
return self.view.settings().get('syntax') == 'Packages/Default/Find Results.hidden-tmLanguage'
class RegexStruct():
default = re.compile('^\s*\d+(\:\s|\s{2})', re.MULTILINE)
without_dots = re.compile('^\s*(\d+(\:\s|\s{2})|.+\n)', re.MULTILINE)
def __init__(self, keep_dots=True):
self.keep_dots = keep_dots
def sub(self, text):
return self.construct().sub('', text)
def construct(self):
return RegexStruct.default if self.keep_dots else RegexStruct.without_dots
|
Make the regex work on Python2.x
|
Make the regex work on Python2.x
|
Python
|
mit
|
kema221/sublime-copy-from-find-results,NicoSantangelo/sublime-copy-from-find-results,kema221/sublime-copy-from-find-results
|
python
|
## Code Before:
import sublime
import sublime_plugin
import re
class CopyFromFindInFilesCommand(sublime_plugin.TextCommand):
def run(self, edit, force=False):
self.view.run_command('copy')
if not self.in_find_results_view() and not force:
return
clipboard_contents = sublime.get_clipboard()
if clipboard_contents:
settings = sublime.load_settings('CopyFromFindInFiles.sublime-settings')
keep_intermediate_dots = settings.get('keep_intermediate_dots', False)
new_clipboard = RegexStruct(keep_intermediate_dots).sub(clipboard_contents)
sublime.set_clipboard(new_clipboard)
def in_find_results_view(self):
return self.view.settings().get('syntax') == 'Packages/Default/Find Results.hidden-tmLanguage'
class RegexStruct():
default = r'^\s*\d+(\:\s|\s{2})'
without_dots = r'^\s*(\d+(\:\s|\s{2})|.+\n)'
def __init__(self, keep_dots=True):
self.keep_dots = keep_dots
def sub(self, text):
return re.sub(self.construct(), '', text, flags=re.MULTILINE)
def construct(self):
return RegexStruct.default if self.keep_dots else RegexStruct.without_dots
## Instruction:
Make the regex work on Python2.x
## Code After:
import sublime
import sublime_plugin
import re
class CopyFromFindInFilesCommand(sublime_plugin.TextCommand):
def run(self, edit, force=False):
self.view.run_command('copy')
if not self.in_find_results_view() and not force:
return
clipboard_contents = sublime.get_clipboard()
if clipboard_contents:
settings = sublime.load_settings('CopyFromFindInFiles.sublime-settings')
keep_intermediate_dots = settings.get('keep_intermediate_dots', False)
new_clipboard = RegexStruct(keep_intermediate_dots).sub(clipboard_contents)
sublime.set_clipboard(new_clipboard)
def in_find_results_view(self):
return self.view.settings().get('syntax') == 'Packages/Default/Find Results.hidden-tmLanguage'
class RegexStruct():
default = re.compile('^\s*\d+(\:\s|\s{2})', re.MULTILINE)
without_dots = re.compile('^\s*(\d+(\:\s|\s{2})|.+\n)', re.MULTILINE)
def __init__(self, keep_dots=True):
self.keep_dots = keep_dots
def sub(self, text):
return self.construct().sub('', text)
def construct(self):
return RegexStruct.default if self.keep_dots else RegexStruct.without_dots
|
5f27699a969fe33461969ad118051ec29e07c205
|
.travis.yml
|
.travis.yml
|
language: rust
matrix:
include:
- env: CC_X=gcc-4.8 CXX_X=g++-4.8
addons:
apt:
packages:
- gcc-4.8
allow_failures:
- rust: nightly
|
language: rust
matrix:
include:
- env: CC_X=gcc-4.8 CXX_X=g++-4.8
os: linux
rust: stable
addons:
apt:
packages:
- gcc-4.8
allow_failures:
- rust: nightly
|
Add os and rust setting
|
Add os and rust setting
|
YAML
|
apache-2.0
|
klingtnet/rsoundio
|
yaml
|
## Code Before:
language: rust
matrix:
include:
- env: CC_X=gcc-4.8 CXX_X=g++-4.8
addons:
apt:
packages:
- gcc-4.8
allow_failures:
- rust: nightly
## Instruction:
Add os and rust setting
## Code After:
language: rust
matrix:
include:
- env: CC_X=gcc-4.8 CXX_X=g++-4.8
os: linux
rust: stable
addons:
apt:
packages:
- gcc-4.8
allow_failures:
- rust: nightly
|
abcd4898d92ea4fa90042398c9029a1cf4098e69
|
extras/dockerfiles/ubuntu-20.04_install.sh
|
extras/dockerfiles/ubuntu-20.04_install.sh
|
set -e
cat <<EOF >/etc/apt/sources.list.d/ubuntu-20.04_custom.list
# i386 not available
deb http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
EOF
apt-get update
apt-get install -y --allow-unauthenticated --no-install-recommends \
g++-7 \
g++-8 \
g++-9 \
g++-10 \
clang-6.0 \
clang-7 \
clang-8 \
clang-9 \
clang-10 \
python \
python3-sh \
python3-typed-ast \
clang-tidy \
clang-format
|
set -e
cat <<EOF >/etc/apt/sources.list.d/ubuntu-20.04_custom.list
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
EOF
apt-get update
apt-get install -y --allow-unauthenticated --no-install-recommends \
g++-7 \
g++-8 \
g++-9 \
g++-10 \
clang-6.0 \
clang-7 \
clang-8 \
clang-9 \
clang-10 \
python \
python3-sh \
python3-typed-ast \
clang-tidy \
clang-format
|
Fix dockerfiles for CI builds so that they only install stable LLVM packages. Before they were installing an unstable clang-tidy binary that reports many spurious warnings.
|
Fix dockerfiles for CI builds so that they only install stable LLVM packages. Before they were installing an unstable clang-tidy binary that reports many spurious warnings.
|
Shell
|
apache-2.0
|
google/fruit,google/fruit,google/fruit
|
shell
|
## Code Before:
set -e
cat <<EOF >/etc/apt/sources.list.d/ubuntu-20.04_custom.list
# i386 not available
deb http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
EOF
apt-get update
apt-get install -y --allow-unauthenticated --no-install-recommends \
g++-7 \
g++-8 \
g++-9 \
g++-10 \
clang-6.0 \
clang-7 \
clang-8 \
clang-9 \
clang-10 \
python \
python3-sh \
python3-typed-ast \
clang-tidy \
clang-format
## Instruction:
Fix dockerfiles for CI builds so that they only install stable LLVM packages. Before they were installing an unstable clang-tidy binary that reports many spurious warnings.
## Code After:
set -e
cat <<EOF >/etc/apt/sources.list.d/ubuntu-20.04_custom.list
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main
EOF
apt-get update
apt-get install -y --allow-unauthenticated --no-install-recommends \
g++-7 \
g++-8 \
g++-9 \
g++-10 \
clang-6.0 \
clang-7 \
clang-8 \
clang-9 \
clang-10 \
python \
python3-sh \
python3-typed-ast \
clang-tidy \
clang-format
|
8a6edd8e129efe29fe63ba0ce0d888355e1bc8c5
|
src/HaskellWorks/Data/TreeCursor.hs
|
src/HaskellWorks/Data/TreeCursor.hs
|
-- |
-- Copyright: 2016 John Ky
-- License: MIT
--
-- Tree Cursor
module HaskellWorks.Data.TreeCursor
( TreeCursor(..)
) where
import HaskellWorks.Data.Positioning
class TreeCursor k where
firstChild :: k -> k
nextSibling :: k -> k
parent :: k -> k
depth :: k -> Count
subtreeSize :: k -> Count
|
-- |
-- Copyright: 2016 John Ky
-- License: MIT
--
-- Tree Cursor
module HaskellWorks.Data.TreeCursor
( TreeCursor(..)
) where
import HaskellWorks.Data.Positioning
class TreeCursor k where
firstChild :: k -> Maybe k
nextSibling :: k -> Maybe k
parent :: k -> Maybe k
depth :: k -> Count
subtreeSize :: k -> Count
|
Change return type of firstChild, nestSibling, and parent functions to be Maybe k
|
Change return type of firstChild, nestSibling, and parent functions to be Maybe k
|
Haskell
|
bsd-3-clause
|
haskell-works/hw-prim
|
haskell
|
## Code Before:
-- |
-- Copyright: 2016 John Ky
-- License: MIT
--
-- Tree Cursor
module HaskellWorks.Data.TreeCursor
( TreeCursor(..)
) where
import HaskellWorks.Data.Positioning
class TreeCursor k where
firstChild :: k -> k
nextSibling :: k -> k
parent :: k -> k
depth :: k -> Count
subtreeSize :: k -> Count
## Instruction:
Change return type of firstChild, nestSibling, and parent functions to be Maybe k
## Code After:
-- |
-- Copyright: 2016 John Ky
-- License: MIT
--
-- Tree Cursor
module HaskellWorks.Data.TreeCursor
( TreeCursor(..)
) where
import HaskellWorks.Data.Positioning
class TreeCursor k where
firstChild :: k -> Maybe k
nextSibling :: k -> Maybe k
parent :: k -> Maybe k
depth :: k -> Count
subtreeSize :: k -> Count
|
7365e48ad1c9422127ed6edae9b5bba8412bd109
|
demos/simple/index.html
|
demos/simple/index.html
|
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../../src/coquette-min.js"></script>
<script type="text/javascript" src="game.js"></script>
</head>
<body><canvas id="canvas"></canvas></body>
</html>
|
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../../src/coquette-min.js"></script>
<script type="text/javascript" src="game.js"></script>
</head>
<body><canvas id="canvas"></canvas></body>
<div>Press the up arrow key.</div>
</html>
|
Add instructions for simple game.
|
Add instructions for simple game.
|
HTML
|
mit
|
maryrosecook/coquette,matthewsimo/coquette,matthewsimo/coquette,maryrosecook/coquette,cdosborn/coquette,cdosborn/coquette
|
html
|
## Code Before:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../../src/coquette-min.js"></script>
<script type="text/javascript" src="game.js"></script>
</head>
<body><canvas id="canvas"></canvas></body>
</html>
## Instruction:
Add instructions for simple game.
## Code After:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="../../src/coquette-min.js"></script>
<script type="text/javascript" src="game.js"></script>
</head>
<body><canvas id="canvas"></canvas></body>
<div>Press the up arrow key.</div>
</html>
|
a60baeb65cf74ec0720a795da46d44b988f3b76d
|
spec/factories/line_items.rb
|
spec/factories/line_items.rb
|
FactoryGirl.define do
factory :line_item do
factory :banana do
times "1"
quantity "x"
price "0.99"
title "Banana"
description "Most delicious banana of all time!"
end
factory :vat do
times "1"
quantity "%"
price "8"
code "vat:full"
title "VAT"
description "VAT"
end
factory :contracting do
times "5"
quantity "hours"
price "180"
title "Contracting"
description "Custom development by CyT! Best price for best product"
end
end
end
|
FactoryGirl.define do
factory :line_item do
factory :banana do
times "1"
quantity "x"
price "0.99"
title "Banana"
description "Most delicious banana of all time!"
invoice
credit_account
debit_account
end
factory :vat do
times "1"
quantity "%"
price "8"
code "vat:full"
title "VAT"
description "VAT"
end
factory :contracting do
times "5"
quantity "hours"
price "180"
title "Contracting"
description "Custom development by CyT! Best price for best product"
end
end
end
|
Add associations to banana line item factory.
|
Add associations to banana line item factory.
|
Ruby
|
agpl-3.0
|
huerlisi/bookyt,wtag/bookyt,xuewenfei/bookyt,hauledev/bookyt,hauledev/bookyt,huerlisi/bookyt,silvermind/bookyt,gaapt/bookyt,gaapt/bookyt,wtag/bookyt,xuewenfei/bookyt,huerlisi/bookyt,wtag/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,hauledev/bookyt,silvermind/bookyt,gaapt/bookyt,silvermind/bookyt,silvermind/bookyt
|
ruby
|
## Code Before:
FactoryGirl.define do
factory :line_item do
factory :banana do
times "1"
quantity "x"
price "0.99"
title "Banana"
description "Most delicious banana of all time!"
end
factory :vat do
times "1"
quantity "%"
price "8"
code "vat:full"
title "VAT"
description "VAT"
end
factory :contracting do
times "5"
quantity "hours"
price "180"
title "Contracting"
description "Custom development by CyT! Best price for best product"
end
end
end
## Instruction:
Add associations to banana line item factory.
## Code After:
FactoryGirl.define do
factory :line_item do
factory :banana do
times "1"
quantity "x"
price "0.99"
title "Banana"
description "Most delicious banana of all time!"
invoice
credit_account
debit_account
end
factory :vat do
times "1"
quantity "%"
price "8"
code "vat:full"
title "VAT"
description "VAT"
end
factory :contracting do
times "5"
quantity "hours"
price "180"
title "Contracting"
description "Custom development by CyT! Best price for best product"
end
end
end
|
bb93190c1039a439a301798f19bac3c761cb1148
|
apps/openvpn.sh
|
apps/openvpn.sh
|
wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh
whiptail --msgbox "OpenVPN successfully installed!
You should need to open port TCP 443, TCP 943, UDP 1194
Thanks to https://github.com/Nyr/openvpn-install" 12 64
|
whiptail --msgbox "You should need to open port TCP 443, TCP 943, UDP 1194
OpenVPN installation thanks to https://github.com/Nyr/openvpn-install" 12 64
wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh
whiptail --yesno "Would you like to send the .ovpn file via mail which include the certificates needed to connect to the VPN?" 8 48
case $? in
0) # Check if Postfix and Mutt are installed
if ! hash postfix mutt 2>/dev/null
then
# FQDN required for mail server
. ../sysutils/hostname.sh
# Install postfix mail server and mutt for attachment
$install postfix mutt
fi
# Start Postfix service if stopped
service postfix start
# Send the .ovpn client file via mail
whiptail --title "Mail sending" --clear --inputbox "Enter the mail address that will receive the .ovpn file" 12 64
# Pick the email and remove the last character added
user_mail=${x%?}
# Send mail attachment with mutt
echo "Use this .ovpn file to connect to your VPN with your OpenVPN client installed in your system" | mutt -a "$HOME/*.ovpn" -s "Your OpenVPN certificate file" -- $user_mail
whiptail --yesno "It is safer to stop the Postfix mail service if you don't use it.
The service will restart automatically the next time you need to send an .ovpn file via mail.
Stop the Postfix service? recommended: [Yes]" 12 64
case $? in
0) service postfix stop;;
1) ;; # Continue
esac;;
1) ;; # Continue
esac
# Move the client .ovpn file to a folder with all OpenVPN clients
mkdir $HOME/OpenVPN-clients
mv $HOME/*.ovpn $HOME/OpenVPN-clients
whiptail --msgbox "OpenVPN successfully installed and operational!
Your clients certificates are available at $HOME/OpenVPN-clients
Certficates actually presents: $(ls $HOME/OpenVPN-clients)
If you want to add more clients, you simply need to run this script another time!" 12 64
|
Add .ovpn file mail sending feature
|
Add .ovpn file mail sending feature
|
Shell
|
mit
|
j8r/DPlatform,DFabric/DPlatform-ShellCore
|
shell
|
## Code Before:
wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh
whiptail --msgbox "OpenVPN successfully installed!
You should need to open port TCP 443, TCP 943, UDP 1194
Thanks to https://github.com/Nyr/openvpn-install" 12 64
## Instruction:
Add .ovpn file mail sending feature
## Code After:
whiptail --msgbox "You should need to open port TCP 443, TCP 943, UDP 1194
OpenVPN installation thanks to https://github.com/Nyr/openvpn-install" 12 64
wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh
whiptail --yesno "Would you like to send the .ovpn file via mail which include the certificates needed to connect to the VPN?" 8 48
case $? in
0) # Check if Postfix and Mutt are installed
if ! hash postfix mutt 2>/dev/null
then
# FQDN required for mail server
. ../sysutils/hostname.sh
# Install postfix mail server and mutt for attachment
$install postfix mutt
fi
# Start Postfix service if stopped
service postfix start
# Send the .ovpn client file via mail
whiptail --title "Mail sending" --clear --inputbox "Enter the mail address that will receive the .ovpn file" 12 64
# Pick the email and remove the last character added
user_mail=${x%?}
# Send mail attachment with mutt
echo "Use this .ovpn file to connect to your VPN with your OpenVPN client installed in your system" | mutt -a "$HOME/*.ovpn" -s "Your OpenVPN certificate file" -- $user_mail
whiptail --yesno "It is safer to stop the Postfix mail service if you don't use it.
The service will restart automatically the next time you need to send an .ovpn file via mail.
Stop the Postfix service? recommended: [Yes]" 12 64
case $? in
0) service postfix stop;;
1) ;; # Continue
esac;;
1) ;; # Continue
esac
# Move the client .ovpn file to a folder with all OpenVPN clients
mkdir $HOME/OpenVPN-clients
mv $HOME/*.ovpn $HOME/OpenVPN-clients
whiptail --msgbox "OpenVPN successfully installed and operational!
Your clients certificates are available at $HOME/OpenVPN-clients
Certficates actually presents: $(ls $HOME/OpenVPN-clients)
If you want to add more clients, you simply need to run this script another time!" 12 64
|
354fb43cc95d68b06b85e8d1fa2426ca663ef8b9
|
common/__init__.py
|
common/__init__.py
|
VERSION = (0, 0, 0)
__version__ = '.'.join(map(str, VERSION))
from django import template
template.add_to_builtins('common.templatetags.common')
template.add_to_builtins('common.templatetags.development')
|
VERSION = (0, 1, 0)
__version__ = '.'.join(map(str, VERSION))
from django import template
template.add_to_builtins('common.templatetags.common')
template.add_to_builtins('common.templatetags.development')
# Add db_name to options for use in model.Meta class
import django.db.models.options as options
options.DEFAULT_NAMES = options.DEFAULT_NAMES + ('db_name',)
|
Add db_name to options for use in model.Meta class
|
Add db_name to options for use in model.Meta class
|
Python
|
bsd-3-clause
|
baskoopmans/djcommon,baskoopmans/djcommon,baskoopmans/djcommon
|
python
|
## Code Before:
VERSION = (0, 0, 0)
__version__ = '.'.join(map(str, VERSION))
from django import template
template.add_to_builtins('common.templatetags.common')
template.add_to_builtins('common.templatetags.development')
## Instruction:
Add db_name to options for use in model.Meta class
## Code After:
VERSION = (0, 1, 0)
__version__ = '.'.join(map(str, VERSION))
from django import template
template.add_to_builtins('common.templatetags.common')
template.add_to_builtins('common.templatetags.development')
# Add db_name to options for use in model.Meta class
import django.db.models.options as options
options.DEFAULT_NAMES = options.DEFAULT_NAMES + ('db_name',)
|
c08a803b21d5a14a9d1703015625071f125c5ade
|
.travis.yml
|
.travis.yml
|
language: python
python:
- "2.7"
env:
global:
- DJANGO_SETTINGS_MODULE='localized_recurrence.tests.settings'
matrix:
- DJANGO=1.6.2
install:
- pip install -q coverage pep8 pyflakes Django==$DJANGO
- pip install -q -e .
before_script:
- pep8 localized_recurrence --max-line-length=120 --exclude=migrations
- pyflakes localized_recurrence
script:
- coverage run --source='localized_recurrence' --branch setup.py test
- coverage report --fail-under=100
|
language: python
python:
- "2.7"
env:
global:
- DB=postgres
matrix:
- DJANGO=1.6.2
install:
- pip install -q coverage pep8 pyflakes Django==$DJANGO
- pip install -q -e .
before_script:
- pep8 localized_recurrence --max-line-length=120 --exclude=migrations
- pyflakes localized_recurrence
script:
- coverage run --source='localized_recurrence' --branch setup.py test
- coverage report --fail-under=100
|
Remove Settings env variable, added postgres env variable.
|
Remove Settings env variable, added postgres env variable.
|
YAML
|
mit
|
travistruett/django-localized-recurrence,ambitioninc/django-localized-recurrence,wesleykendall/django-localized-recurrence
|
yaml
|
## Code Before:
language: python
python:
- "2.7"
env:
global:
- DJANGO_SETTINGS_MODULE='localized_recurrence.tests.settings'
matrix:
- DJANGO=1.6.2
install:
- pip install -q coverage pep8 pyflakes Django==$DJANGO
- pip install -q -e .
before_script:
- pep8 localized_recurrence --max-line-length=120 --exclude=migrations
- pyflakes localized_recurrence
script:
- coverage run --source='localized_recurrence' --branch setup.py test
- coverage report --fail-under=100
## Instruction:
Remove Settings env variable, added postgres env variable.
## Code After:
language: python
python:
- "2.7"
env:
global:
- DB=postgres
matrix:
- DJANGO=1.6.2
install:
- pip install -q coverage pep8 pyflakes Django==$DJANGO
- pip install -q -e .
before_script:
- pep8 localized_recurrence --max-line-length=120 --exclude=migrations
- pyflakes localized_recurrence
script:
- coverage run --source='localized_recurrence' --branch setup.py test
- coverage report --fail-under=100
|
ff172bf63ea0f292c0da7fc4c0597370862faabf
|
static/archive.css
|
static/archive.css
|
* {
font-family:sans-serif;
}
body {
text-align:center;
padding:1em;
}
.messages {
width:100%;
max-width:700px;
text-align:left;
display:inline-block;
}
.messages img {
background-color:rgb(248,244,240);
width:36px;
height:36px;
border-radius:0.2em;
display:inline-block;
vertical-align:top;
margin-right:0.65em;
}
.messages .time {
display:inline-block;
color:rgb(200,200,200);
margin-left:0.5em;
}
.messages .username {
display:inline-block;
font-weight:600;
line-height:1;
}
.messages .message {
display:inline-block;
vertical-align:top;
line-height:1;
width:calc(100% - 3em);
}
.messages .message .msg {
line-height:1.5;
}
|
* {
font-family: sans-serif;
}
body {
text-align: center;
padding: 1em;
}
.messages {
width: 100%;
max-width: 700px;
text-align: left;
display: inline-block;
}
.messages img {
background-color: rgb(248, 244, 240);
width: 36px;
height: 36px;
border-radius: 0.2em;
display: inline-block;
vertical-align: top;
margin-right: 0.65em;
float: left;
}
.messages .time {
display: inline-block;
color: rgb(200, 200, 200);
margin-left: 0.5em;
}
.messages .username {
display: inline-block;
font-weight: 600;
line-height: 1;
}
.messages .message {
display: inline-block;
vertical-align: top;
line-height: 1;
width: calc(100% - 3em);
}
.messages .message .msg {
line-height: 1.5;
}
|
Add float:left on img; reformat CSS
|
Add float:left on img; reformat CSS
|
CSS
|
mit
|
hfaran/slack-export-viewer,hfaran/slack-export-viewer
|
css
|
## Code Before:
* {
font-family:sans-serif;
}
body {
text-align:center;
padding:1em;
}
.messages {
width:100%;
max-width:700px;
text-align:left;
display:inline-block;
}
.messages img {
background-color:rgb(248,244,240);
width:36px;
height:36px;
border-radius:0.2em;
display:inline-block;
vertical-align:top;
margin-right:0.65em;
}
.messages .time {
display:inline-block;
color:rgb(200,200,200);
margin-left:0.5em;
}
.messages .username {
display:inline-block;
font-weight:600;
line-height:1;
}
.messages .message {
display:inline-block;
vertical-align:top;
line-height:1;
width:calc(100% - 3em);
}
.messages .message .msg {
line-height:1.5;
}
## Instruction:
Add float:left on img; reformat CSS
## Code After:
* {
font-family: sans-serif;
}
body {
text-align: center;
padding: 1em;
}
.messages {
width: 100%;
max-width: 700px;
text-align: left;
display: inline-block;
}
.messages img {
background-color: rgb(248, 244, 240);
width: 36px;
height: 36px;
border-radius: 0.2em;
display: inline-block;
vertical-align: top;
margin-right: 0.65em;
float: left;
}
.messages .time {
display: inline-block;
color: rgb(200, 200, 200);
margin-left: 0.5em;
}
.messages .username {
display: inline-block;
font-weight: 600;
line-height: 1;
}
.messages .message {
display: inline-block;
vertical-align: top;
line-height: 1;
width: calc(100% - 3em);
}
.messages .message .msg {
line-height: 1.5;
}
|
8b2cc729fd93ac962d0cc399ec30a7a495ee329a
|
README.md
|
README.md
|
Pance_blog
=====
The template files and content for my personal blog, written in Clojure and generated with Misaki.
[www.pbarnett.me](http://www.pbarnett.me)
Directions to run this blog
-----
#### Get Misaki
```bash
$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
```
#### Clone this blog repo
```bash
$ git clone [email protected]:Pance/Pance_blog.git
```
#### Run it
```bash
$ lein run Pance_blog
```
|
Pance_blog
=====
The template files and content for my personal blog, written in Clojure and generated with Misaki.
[www.pbarnett.me](http://www.pbarnett.me)
Directions to run this blog
-----
#### Get Misaki
```bash
$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
```
#### Clone this blog repo
```bash
$ git clone [email protected]:Pance/Pance_blog.git
```
If you're going to run this on a Windows machine, you'll need to make some small changes to misaki as described in [this gist](https://gist.github.com/mikio/1ed18ec754fc69e79688)
#### Run it
```bash
$ lein run Pance_blog
```
|
Update readme with instructions to run in windows
|
Update readme with instructions to run in windows
|
Markdown
|
apache-2.0
|
Pance/Pance_blog
|
markdown
|
## Code Before:
Pance_blog
=====
The template files and content for my personal blog, written in Clojure and generated with Misaki.
[www.pbarnett.me](http://www.pbarnett.me)
Directions to run this blog
-----
#### Get Misaki
```bash
$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
```
#### Clone this blog repo
```bash
$ git clone [email protected]:Pance/Pance_blog.git
```
#### Run it
```bash
$ lein run Pance_blog
```
## Instruction:
Update readme with instructions to run in windows
## Code After:
Pance_blog
=====
The template files and content for my personal blog, written in Clojure and generated with Misaki.
[www.pbarnett.me](http://www.pbarnett.me)
Directions to run this blog
-----
#### Get Misaki
```bash
$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
```
#### Clone this blog repo
```bash
$ git clone [email protected]:Pance/Pance_blog.git
```
If you're going to run this on a Windows machine, you'll need to make some small changes to misaki as described in [this gist](https://gist.github.com/mikio/1ed18ec754fc69e79688)
#### Run it
```bash
$ lein run Pance_blog
```
|
59d2c2c1895b68f7f8850986f5032a4df2c0d936
|
package.json
|
package.json
|
{
"name": "engine.io-parser",
"description": "Parser for the client for the realtime Engine",
"license": "MIT",
"version": "2.0.1",
"homepage": "https://github.com/Nibbler999/engine.io-parser",
"devDependencies": {
"expect.js": "0.3.1",
"mocha": "3.2.0",
"socket.io-browsers": "^1.0.0",
"zuul": "3.11.1",
"zuul-ngrok": "4.0.0"
},
"dependencies": {
"after": "0.8.2",
"arraybuffer.slice": "0.0.6",
"base64-arraybuffer": "0.1.5",
"blob": "0.0.4",
"has-binary": "Nibbler999/has-binary"
},
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "[email protected]:Nibbler999/engine.io-parser.git"
},
"files": [
"index.js",
"lib/"
],
"browser": "./lib/browser.js"
}
|
{
"name": "engine.io-parser",
"description": "Parser for the client for the realtime Engine",
"license": "MIT",
"version": "2.0.1",
"homepage": "https://github.com/Nibbler999/engine.io-parser",
"devDependencies": {
"arraybuffer.slice": "0.0.6",
"base64-arraybuffer": "0.1.5",
"blob": "0.0.4",
"expect.js": "0.3.1",
"mocha": "3.2.0",
"socket.io-browsers": "^1.0.0",
"zuul": "3.11.1",
"zuul-ngrok": "4.0.0"
},
"dependencies": {
"after": "0.8.2",
"has-binary": "Nibbler999/has-binary"
},
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "[email protected]:Nibbler999/engine.io-parser.git"
},
"files": [
"index.js",
"lib/"
],
"browser": "./lib/browser.js"
}
|
Move browser-only deps to dev
|
Move browser-only deps to dev
|
JSON
|
mit
|
Nibbler999/engine.io-parser
|
json
|
## Code Before:
{
"name": "engine.io-parser",
"description": "Parser for the client for the realtime Engine",
"license": "MIT",
"version": "2.0.1",
"homepage": "https://github.com/Nibbler999/engine.io-parser",
"devDependencies": {
"expect.js": "0.3.1",
"mocha": "3.2.0",
"socket.io-browsers": "^1.0.0",
"zuul": "3.11.1",
"zuul-ngrok": "4.0.0"
},
"dependencies": {
"after": "0.8.2",
"arraybuffer.slice": "0.0.6",
"base64-arraybuffer": "0.1.5",
"blob": "0.0.4",
"has-binary": "Nibbler999/has-binary"
},
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "[email protected]:Nibbler999/engine.io-parser.git"
},
"files": [
"index.js",
"lib/"
],
"browser": "./lib/browser.js"
}
## Instruction:
Move browser-only deps to dev
## Code After:
{
"name": "engine.io-parser",
"description": "Parser for the client for the realtime Engine",
"license": "MIT",
"version": "2.0.1",
"homepage": "https://github.com/Nibbler999/engine.io-parser",
"devDependencies": {
"arraybuffer.slice": "0.0.6",
"base64-arraybuffer": "0.1.5",
"blob": "0.0.4",
"expect.js": "0.3.1",
"mocha": "3.2.0",
"socket.io-browsers": "^1.0.0",
"zuul": "3.11.1",
"zuul-ngrok": "4.0.0"
},
"dependencies": {
"after": "0.8.2",
"has-binary": "Nibbler999/has-binary"
},
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "[email protected]:Nibbler999/engine.io-parser.git"
},
"files": [
"index.js",
"lib/"
],
"browser": "./lib/browser.js"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.