commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
3e0addc192f25e01f476ada9f67924f0b28ca594
tox.ini
tox.ini
[tox] envlist = py26, py27, py32, py33, py34, py35, pypy, jython [testenv] commands = {envpython} setup.py test deps =
[tox] # envlist = py26, py27, py32, py33, py34, py35, pypy, jython envlist = py27, py32, py33, py34, pypy, jython [testenv] commands = {envpython} setup.py test deps =
Modify the versions to test with for the time being.
Modify the versions to test with for the time being.
INI
bsd-3-clause
zzzirk/codewords
ini
## Code Before: [tox] envlist = py26, py27, py32, py33, py34, py35, pypy, jython [testenv] commands = {envpython} setup.py test deps = ## Instruction: Modify the versions to test with for the time being. ## Code After: [tox] # envlist = py26, py27, py32, py33, py34, py35, pypy, jython envlist = py27, py32, py33, ...
[tox] - envlist = py26, py27, py32, py33, py34, py35, pypy, jython + # envlist = py26, py27, py32, py33, py34, py35, pypy, jython ? ++ + envlist = py27, py32, py33, py34, pypy, jython [testenv] commands = {envpython} setup.py test deps =
3
0.375
2
1
67c2ac1e322a5e3c58fd769cbc53debe579d4a4c
newbuild.yml
newbuild.yml
- hosts: all gather_facts: False tasks: - name: Wait for server to be alive local_action: wait_for port=22 host="{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex=OpenSSH delay=10 become: no - include: playbook.yml
- hosts: all gather_facts: False tasks: - name: Wait for server to be alive local_action: wait_for port=22 host="{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex=OpenSSH delay=10 become: no - include: playbook.yml - include: reboot-patch.yml
Patch host and reboot on build
Patch host and reboot on build
YAML
mit
jfautley/ansible-base
yaml
## Code Before: - hosts: all gather_facts: False tasks: - name: Wait for server to be alive local_action: wait_for port=22 host="{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex=OpenSSH delay=10 become: no - include: playbook.yml ## Instruction: Patch host and reboot on build ...
- hosts: all gather_facts: False tasks: - name: Wait for server to be alive local_action: wait_for port=22 host="{{ ansible_ssh_host | default(inventory_hostname) }}" search_regex=OpenSSH delay=10 become: no - include: playbook.yml + - include: reboot-patch.yml
1
0.1
1
0
5a3b3144fabe1a21cc5a49f7fb9de3712898c5e7
src/server/random-users-retriever.js
src/server/random-users-retriever.js
export default class RandomUsersRetriever { getUsers(numberOfUsers) { const users = []; // Add nodes to random parents for (let i = 0; i < numberOfUsers; i++) { const user = this.getAppUser( i, i === 0 ? null : this._getRandomIntInclusive(0, i)); // eslint-disable-line no-magic-numb...
/* eslint-disable no-magic-numbers */ export default class RandomUsersRetriever { getUsers(numberOfUsers, numberOfDepartments = 1) { const users = []; // Add nodes to random parents for (let i = 0; i < numberOfUsers; i++) { const user = this.getAppUser( i, i === 0 ? null : this._ge...
Add configurable numberOfDepartments to RandomUsersRetriever getUsers
Add configurable numberOfDepartments to RandomUsersRetriever getUsers
JavaScript
mit
ritterim/star-orgs,kendaleiv/star-orgs,kendaleiv/star-orgs,ritterim/star-orgs
javascript
## Code Before: export default class RandomUsersRetriever { getUsers(numberOfUsers) { const users = []; // Add nodes to random parents for (let i = 0; i < numberOfUsers; i++) { const user = this.getAppUser( i, i === 0 ? null : this._getRandomIntInclusive(0, i)); // eslint-disable-li...
+ /* eslint-disable no-magic-numbers */ + export default class RandomUsersRetriever { - getUsers(numberOfUsers) { + getUsers(numberOfUsers, numberOfDepartments = 1) { const users = []; // Add nodes to random parents for (let i = 0; i < numberOfUsers; i++) { const user = this.getAppUs...
13
0.317073
8
5
29540b8ba08287cd50a6806980209d7dca5be409
functions.php
functions.php
<?php /** * Roots includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/sidebar.php'); // Sidebar class require_once locate_template('/lib/conf...
<?php /** * Roots includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/sidebar.php'); // Sidebar class require_once locate_template('/lib/conf...
Initialize the customizer AFTER including lessphp & image_resize
Initialize the customizer AFTER including lessphp & image_resize
PHP
mit
jloosli/shoestrap-3,shoestrap/shoestrap-3,theportlandcompany/shoestrap-3,jloosli/shoestrap-3,theportlandcompany/shoestrap-3,cadr-sa/shoestrap-3,shoestrap/shoestrap-3,cadr-sa/shoestrap-3,jloosli/shoestrap-3
php
## Code Before: <?php /** * Roots includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/sidebar.php'); // Sidebar class require_once locate_tem...
<?php /** * Roots includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/sidebar.php'); // Sidebar class require_once locate_tem...
3
0.15
2
1
b75f4cf5e95b3ebed93fe20b6a4a2687e7357bb4
src/ViewData.php
src/ViewData.php
<?php namespace TightenCo\Jigsaw; use Exception; use TightenCo\Jigsaw\IterableObject; class ViewData extends IterableObject { private $data; private $globals = ['extends', 'section', 'content', 'link']; public $item; public static function withCollectionItem($data, $collectionName, $itemName) { ...
<?php namespace TightenCo\Jigsaw; use Exception; use TightenCo\Jigsaw\IterableObject; class ViewData extends IterableObject { private $data; private $globals = ['extends', 'section', 'content', 'link']; public $item; public static function withCollectionItem($data, $collectionName, $itemName) { ...
Add reference to CollectionItems by singular collection name, if possible
Add reference to CollectionItems by singular collection name, if possible
PHP
mit
quickliketurtle/jigsaw,tightenco/jigsaw,tightenco/jigsaw,quickliketurtle/jigsaw,adamwathan/jigsaw,adamwathan/jigsaw,quickliketurtle/jigsaw,tightenco/jigsaw
php
## Code Before: <?php namespace TightenCo\Jigsaw; use Exception; use TightenCo\Jigsaw\IterableObject; class ViewData extends IterableObject { private $data; private $globals = ['extends', 'section', 'content', 'link']; public $item; public static function withCollectionItem($data, $collectionName, $i...
<?php namespace TightenCo\Jigsaw; use Exception; use TightenCo\Jigsaw\IterableObject; class ViewData extends IterableObject { private $data; private $globals = ['extends', 'section', 'content', 'link']; public $item; public static function withCollectionItem($data, $collection...
8
0.166667
8
0
3ea532d66627233f9a1db93f10631a3eecf1dff6
README.md
README.md
orgsync-api-java ================ Java REST client for the OrgSync API
Java REST client for the OrgSync API # Dev setup run `gradle eclipse` to create the eclipse files and then import into eclipse. Other IDEs are probably avilable
Add some comments on readme for getting started
Add some comments on readme for getting started
Markdown
apache-2.0
orgsync/orgsync-api-java
markdown
## Code Before: orgsync-api-java ================ Java REST client for the OrgSync API ## Instruction: Add some comments on readme for getting started ## Code After: Java REST client for the OrgSync API # Dev setup run `gradle eclipse` to create the eclipse files and then import into eclipse. Other IDEs are prob...
- orgsync-api-java - ================ Java REST client for the OrgSync API + + # Dev setup + + run `gradle eclipse` to create the eclipse files and then import into eclipse. Other IDEs are probably avilable +
7
1.75
5
2
2022357fd0f81be6f3ca91718a6c8c1d1d46ac1b
examples/olfaction/config_files/gen_olf_stimuli.py
examples/olfaction/config_files/gen_olf_stimuli.py
""" Create the gexf configuration based on E. Hallem's cell paper on 2006 """ import numpy as np import h5py osn_num = 1375; f = h5py.File("al.hdf5","w") dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot + 3*Rt # number...
""" Create the gexf configuration based on E. Hallem's cell paper on 2006 """ import numpy as np import h5py osn_num = 1375; f = h5py.File("olfactory_stimulus.h5","w") dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot +...
Rename olfactory stimulus file and internal array.
Rename olfactory stimulus file and internal array. --HG-- branch : LPU
Python
bsd-3-clause
cerrno/neurokernel
python
## Code Before: """ Create the gexf configuration based on E. Hallem's cell paper on 2006 """ import numpy as np import h5py osn_num = 1375; f = h5py.File("al.hdf5","w") dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot...
""" Create the gexf configuration based on E. Hallem's cell paper on 2006 """ import numpy as np import h5py osn_num = 1375; - f = h5py.File("al.hdf5","w") + f = h5py.File("olfactory_stimulus.h5","w") dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 #...
4
0.133333
2
2
905a725bb341064337a8176be5630912a734c5bf
deploy.sh
deploy.sh
set -e HOST=yuca.yunity.org REF=$1 DIR=$2 if [ -z "$REF" ] || [ -z "$DIR" ]; then echo "Usage: <ref> <dir>" exit 1 fi echo "deploying frontend branch [$REF] to [$HOST] in [$DIR] dir" echo "$REF" > dist/version echo "$REF" > storybook-static/version # send it all to the host rsync -avz --delete dist/ "deploy@...
set -e HOST=yuca.yunity.org REF=$1 DIR=$2 if [ -z "$REF" ] || [ -z "$DIR" ]; then echo "Usage: <ref> <dir>" exit 1 fi ssh-keyscan -H $HOST >> ~/.ssh/known_hosts echo "deploying frontend branch [$REF] to [$HOST] in [$DIR] dir" echo "$REF" > dist/version echo "$REF" > storybook-static/version # send it all to...
Add ssh key to known hosts
Add ssh key to known hosts
Shell
mit
yunity/karrot-frontend,yunity/karrot-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend,yunity/karrot-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend,yunity/karrot-frontend
shell
## Code Before: set -e HOST=yuca.yunity.org REF=$1 DIR=$2 if [ -z "$REF" ] || [ -z "$DIR" ]; then echo "Usage: <ref> <dir>" exit 1 fi echo "deploying frontend branch [$REF] to [$HOST] in [$DIR] dir" echo "$REF" > dist/version echo "$REF" > storybook-static/version # send it all to the host rsync -avz --delet...
set -e HOST=yuca.yunity.org REF=$1 DIR=$2 if [ -z "$REF" ] || [ -z "$DIR" ]; then echo "Usage: <ref> <dir>" exit 1 fi + ssh-keyscan -H $HOST >> ~/.ssh/known_hosts + echo "deploying frontend branch [$REF] to [$HOST] in [$DIR] dir" echo "$REF" > dist/version echo "$REF" > stor...
2
0.095238
2
0
40ae78589324fe08724df365b49e4b39659b9176
src/options/validate.js
src/options/validate.js
'use strict'; const { validate } = require('../validation'); // Validation for main options const validateOptions = function ({ options }) { const schema = { type: 'object', required: ['conf'], properties: { conf: { type: ['string', 'object'], }, onRequestError: { t...
'use strict'; const { validate } = require('../validation'); // Validation for main options const validateOptions = function ({ options }) { const schema = { type: 'object', required: ['conf'], properties: { conf: { type: ['string', 'object'], }, onRequestError: { t...
Improve error message for options validation
Improve error message for options validation
JavaScript
apache-2.0
autoserver-org/autoserver,autoserver-org/autoserver
javascript
## Code Before: 'use strict'; const { validate } = require('../validation'); // Validation for main options const validateOptions = function ({ options }) { const schema = { type: 'object', required: ['conf'], properties: { conf: { type: ['string', 'object'], }, onRequestEr...
'use strict'; const { validate } = require('../validation'); // Validation for main options const validateOptions = function ({ options }) { const schema = { type: 'object', required: ['conf'], properties: { conf: { type: ['string', 'object'], }, ...
2
0.035714
1
1
c962bdffcf4dcc535600afec287090c1bfc4d5f3
docs/api/backends.rst
docs/api/backends.rst
.. _backend-api: *********** Backend API *********** .. module:: mopidy.backends.base :synopsis: The API implemented by backends The backend API is the interface that must be implemented when you create a backend. If you are working on a frontend and need to access the backend, see the :ref:`core-api`. Backend...
.. _backend-api: *********** Backend API *********** .. module:: mopidy.backends.base :synopsis: The API implemented by backends The backend API is the interface that must be implemented when you create a backend. If you are working on a frontend and need to access the backend, see the :ref:`core-api`. Backend...
Remove reference to dummy backend
docs: Remove reference to dummy backend
reStructuredText
apache-2.0
adamcik/mopidy,ZenithDK/mopidy,glogiotatidis/mopidy,pacificIT/mopidy,woutervanwijk/mopidy,rawdlite/mopidy,jcass77/mopidy,bacontext/mopidy,mokieyue/mopidy,ZenithDK/mopidy,pacificIT/mopidy,priestd09/mopidy,diandiankan/mopidy,mopidy/mopidy,quartz55/mopidy,priestd09/mopidy,mokieyue/mopidy,ZenithDK/mopidy,vrs01/mopidy,hkari...
restructuredtext
## Code Before: .. _backend-api: *********** Backend API *********** .. module:: mopidy.backends.base :synopsis: The API implemented by backends The backend API is the interface that must be implemented when you create a backend. If you are working on a frontend and need to access the backend, see the :ref:`core...
.. _backend-api: *********** Backend API *********** .. module:: mopidy.backends.base :synopsis: The API implemented by backends The backend API is the interface that must be implemented when you create a backend. If you are working on a frontend and need to access the backend, see the :r...
1
0.017544
0
1
1b53ed854a3dafea93066f77818a778001c1c4ea
opencog/timeoctomap/CMakeLists.txt
opencog/timeoctomap/CMakeLists.txt
ADD_LIBRARY (time_octomap SHARED AtomOcTree.cc AtomOcTreeNode.cc TimeOctomap.cc ) TARGET_LINK_LIBRARIES(time_octomap ${OCTOMAP_LIBRARY} ${OCTOMAP_OCTOMATH_LIBRARY} ${ATOMSPACE_LIBRARIES} ) INSTALL (TARGETS time_octomap DESTINATION "lib${LIB_DIR_SUFFIX}/opencog" ) INSTALL (FILES AtomOcTree.h AtomOcTreeNode.h...
ADD_LIBRARY (time_octomap SHARED AtomOcTree.cc AtomOcTreeNode.cc TimeOctomap.cc ) TARGET_LINK_LIBRARIES(time_octomap ${OCTOMAP_LIBRARY} ${OCTOMAP_OCTOMATH_LIBRARY} ) INSTALL (TARGETS time_octomap DESTINATION "lib${LIB_DIR_SUFFIX}/opencog" ) INSTALL (FILES AtomOcTree.h AtomOcTreeNode.h TimeOctomap.h DESTINA...
Remove atomspace dependency from the cmake file
Remove atomspace dependency from the cmake file
Text
agpl-3.0
inflector/opencog,andre-senna/opencog,inflector/opencog,andre-senna/opencog,inflector/opencog,AmeBel/opencog,AmeBel/opencog,inflector/opencog,misgeatgit/opencog,misgeatgit/opencog,misgeatgit/opencog,misgeatgit/opencog,AmeBel/opencog,andre-senna/opencog,AmeBel/opencog,AmeBel/opencog,andre-senna/opencog,inflector/opencog...
text
## Code Before: ADD_LIBRARY (time_octomap SHARED AtomOcTree.cc AtomOcTreeNode.cc TimeOctomap.cc ) TARGET_LINK_LIBRARIES(time_octomap ${OCTOMAP_LIBRARY} ${OCTOMAP_OCTOMATH_LIBRARY} ${ATOMSPACE_LIBRARIES} ) INSTALL (TARGETS time_octomap DESTINATION "lib${LIB_DIR_SUFFIX}/opencog" ) INSTALL (FILES AtomOcTree.h ...
ADD_LIBRARY (time_octomap SHARED AtomOcTree.cc AtomOcTreeNode.cc TimeOctomap.cc ) TARGET_LINK_LIBRARIES(time_octomap ${OCTOMAP_LIBRARY} ${OCTOMAP_OCTOMATH_LIBRARY} - ${ATOMSPACE_LIBRARIES} ) INSTALL (TARGETS time_octomap DESTINATION "lib${LIB_DIR_SUFFIX}/opencog" ) INSTALL (FIL...
1
0.041667
0
1
93cb75e77b02fdd1df6db7ca9f6f645a802a9972
app/views/tags/index.html.haml
app/views/tags/index.html.haml
%div %h2 Tags = render :partial => 'tags/tag', :collection => tags_objects()
%div .main.panel.section .header %h2.icon.tags Tags .body .tag-cloud = render :partial => 'tags/tag', :collection => tags_objects() .footer
Bring over BBYIDX's Tag index template
Bring over BBYIDX's Tag index template
Haml
agpl-3.0
robinsonj/P4IdeaX,robinsonj/P4IdeaX
haml
## Code Before: %div %h2 Tags = render :partial => 'tags/tag', :collection => tags_objects() ## Instruction: Bring over BBYIDX's Tag index template ## Code After: %div .main.panel.section .header %h2.icon.tags Tags .body .tag-cloud = render :partial => 'tags/tag', :collection => tags...
%div - %h2 Tags + .main.panel.section + .header + %h2.icon.tags Tags + .body + .tag-cloud - = render :partial => 'tags/tag', :collection => tags_objects() + = render :partial => 'tags/tag', :collection => tags_objects() ? ++++++ + .footer
9
3
7
2
32148c71c5c1cf280a51c65d6dddecb029542300
config/initializers/gds_sso.rb
config/initializers/gds_sso.rb
GDS::SSO.config do |config| config.user_model = "User" config.oauth_id = ENV.fetch("OAUTH_ID", "oauth_id") config.oauth_secret = ENV.fetch("OAUTH_SECRET", "secret") config.oauth_root_url = Plek.new.external_url_for("signon") config.cache = Rails.cache config.api_only = true end
GDS::SSO.config do |config| config.api_only = true end
Remove redundant GDS SSO initializer
Remove redundant GDS SSO initializer This was made redundant in [1]. [1]: https://github.com/alphagov/gds-sso/pull/241
Ruby
mit
alphagov/content-store,alphagov/content-store
ruby
## Code Before: GDS::SSO.config do |config| config.user_model = "User" config.oauth_id = ENV.fetch("OAUTH_ID", "oauth_id") config.oauth_secret = ENV.fetch("OAUTH_SECRET", "secret") config.oauth_root_url = Plek.new.external_url_for("signon") config.cache = Rails.cache config.api_only = true end ## Ins...
GDS::SSO.config do |config| - config.user_model = "User" - config.oauth_id = ENV.fetch("OAUTH_ID", "oauth_id") - config.oauth_secret = ENV.fetch("OAUTH_SECRET", "secret") - config.oauth_root_url = Plek.new.external_url_for("signon") - config.cache = Rails.cache config.api_only = true end
5
0.625
0
5
5d645cf4bde35a92753563fd31fd908693a3c582
cfg/after/plugin/tmux_navigator.vim
cfg/after/plugin/tmux_navigator.vim
" map meta keys for tmux-navigator silent! execute 'set <F31>=\<Esc>h' silent! execute 'set <F32>=\<Esc>j' silent! execute 'set <F33>=\<Esc>k' silent! execute 'set <F34>=\<Esc>l' nnoremap <silent> <M-h> :TmuxNavigateLeft<CR> nnoremap <silent> <M-j> :TmuxNavigateDown<CR> nnoremap <silent> <M-k> :TmuxNavigateUp<CR> nnore...
" map Meta keys for tmux-navigator nnoremap <silent> <M-h> :TmuxNavigateLeft<CR> nnoremap <silent> <M-j> :TmuxNavigateDown<CR> nnoremap <silent> <M-k> :TmuxNavigateUp<CR> nnoremap <silent> <M-l> :TmuxNavigateRight<CR> " handle Meta keys in terminal if !has('gui_running') silent! execute 'set <F31>=h' silent! exec...
Fix Meta keybinds in terminal
Fix Meta keybinds in terminal Apparently my previous incarnation of after/plugin/tmux_navigator.vim actually fails to trigger for terminal Meta... I now use the literal  byte instead of \<Esc>, plus I wrapped it in a nice conditional that checks for GUI (since Meta in GUI works already).
VimL
mit
igemnace/vim-config,igemnace/vim-config,igemnace/vim-config,igemnace/my-vim-config
viml
## Code Before: " map meta keys for tmux-navigator silent! execute 'set <F31>=\<Esc>h' silent! execute 'set <F32>=\<Esc>j' silent! execute 'set <F33>=\<Esc>k' silent! execute 'set <F34>=\<Esc>l' nnoremap <silent> <M-h> :TmuxNavigateLeft<CR> nnoremap <silent> <M-j> :TmuxNavigateDown<CR> nnoremap <silent> <M-k> :TmuxNavi...
- " map meta keys for tmux-navigator ? ^ + " map Meta keys for tmux-navigator ? ^ - silent! execute 'set <F31>=\<Esc>h' - silent! execute 'set <F32>=\<Esc>j' - silent! execute 'set <F33>=\<Esc>k' - silent! execute 'set <F34>=\<Esc>l' nnoremap <silent> <M-h> :TmuxNavigateLeft<CR> nnoremap <silent> <M-j...
22
1.692308
13
9
e344f92f5434773a354bde0bce39032e054f9382
lib/query_string_search/comparator.rb
lib/query_string_search/comparator.rb
module Comparator def self.does(subject) Comparison.new(subject) end class Comparison attr_accessor :subject def initialize(subject) self.subject = subject end def equal?(other) normalize(subject) == normalize(other) end def normalize(unnormalized) if unnormalized...
module QueryStringSearch module Comparator def self.does(subject) Comparison.new(subject) end class Comparison attr_accessor :subject def initialize(subject) self.subject = subject end def equal?(other) normalize(subject) == normalize(other) end ...
Move Comparator under the QueryStringSearch namespace
Move Comparator under the QueryStringSearch namespace
Ruby
mit
umn-asr/query_string_search
ruby
## Code Before: module Comparator def self.does(subject) Comparison.new(subject) end class Comparison attr_accessor :subject def initialize(subject) self.subject = subject end def equal?(other) normalize(subject) == normalize(other) end def normalize(unnormalized) ...
+ module QueryStringSearch - module Comparator + module Comparator ? ++ - def self.does(subject) + def self.does(subject) ? ++ - Comparison.new(subject) + Comparison.new(subject) ? ++ - end - - class Comparison - attr_accessor :subject - - def initialize(subject) - self.subject ...
44
1.517241
23
21
d537d6c355be1a51bbb808e9da214f5595d75f3d
ios/web/public/browser_state.h
ios/web/public/browser_state.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" namespace net { class URLRequestCon...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" namespace base { class FilePath; } ...
Expand web::BrowserState to add GetPath() method
Expand web::BrowserState to add GetPath() method Add a method to web::BrowserState returning the path where the BrowserState data is stored. BUG=429756 Review URL: https://codereview.chromium.org/740353002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#305191}
C
bsd-3-clause
krieger-od/nwjs_chromium.src,dednal/chromium.src,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,krieger-od/nwjs_chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswal...
c
## Code Before: // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" namespace net { cla...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_WEB_PUBLIC_BROWSER_STATE_H_ #define IOS_WEB_PUBLIC_BROWSER_STATE_H_ #include "base/supports_user_data.h" + + namespace base ...
7
0.194444
7
0
0a0eccb2c7aa11a4cecf1ea5a0bf2100bf290250
.travis.yml
.travis.yml
language: ruby bundler_args: --without development script: "bundle exec rspec spec" rvm: - 2.0 - 1.9.3 - jruby - 1.9.2 - ruby-head notifications: recipients: - michael@rabbitmq.com matrix: allow_failures: - rvm: ruby-head
language: ruby bundler_args: --without development script: "bundle exec rspec spec" rvm: - 2.2 - 2.1 - 2.0 - ruby-head notifications: recipients: - michael@rabbitmq.com matrix: allow_failures: - rvm: ruby-head
Test against 2.1 and 2.2, drop 1.9.x
Test against 2.1 and 2.2, drop 1.9.x Just like Bunny 2.0+ did.
YAML
mit
ruby-amqp/amq-protocol,ruby-amqp/amq-protocol
yaml
## Code Before: language: ruby bundler_args: --without development script: "bundle exec rspec spec" rvm: - 2.0 - 1.9.3 - jruby - 1.9.2 - ruby-head notifications: recipients: - michael@rabbitmq.com matrix: allow_failures: - rvm: ruby-head ## Instruction: Test against 2.1 and 2.2, drop 1.9.x Just ...
language: ruby bundler_args: --without development script: "bundle exec rspec spec" rvm: + - 2.2 + - 2.1 - 2.0 - - 1.9.3 - - jruby - - 1.9.2 - ruby-head notifications: recipients: - michael@rabbitmq.com matrix: allow_failures: - rvm: ruby-head
5
0.333333
2
3
92d5aa45f016618c86252e82ab9c4891c54f3b1e
_includes/comments.html
_includes/comments.html
{% if site.disqus_shortname %} <div class="comments"> <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = '{{ site.disqus_shortname }}'; (function () { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; ...
{% if site.disqus_shortname %} <div class="comments"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2...
Change to use Facebook comment plugin instead Disqus
Change to use Facebook comment plugin instead Disqus
HTML
mit
oanhnn/oanhnn.github.io,oanhnn/oanhnn.github.io,oanhnn/oanhnn.github.io
html
## Code Before: {% if site.disqus_shortname %} <div class="comments"> <div id="disqus_thread"></div> <script type="text/javascript"> var disqus_shortname = '{{ site.disqus_shortname }}'; (function () { var dsq = document.createElement('script'); dsq.type = 'text/javascrip...
{% if site.disqus_shortname %} <div class="comments"> + <div id="fb-root"></div> + <script>(function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = "//connect.facebook.net/en_US/sdk.js#xf...
13
0.8125
12
1
40bd25f06d10cbe1433a6d751dac7b3f22b39b02
src/lib/configuration-template.ini
src/lib/configuration-template.ini
; This is the configuration file of LegionBoard. ; Copy this file or rename it to "configuration.ini". ; ; @author Nico Alt ; @date 16.03.2016 ; ; See the file "LICENSE" for the full license governing this code. [MySQL] ; The host name or IP address of the MySQL databse. Host = "" ; The MySQL user name. User = "" ; T...
; This is the configuration file of LegionBoard. ; Copy this file or rename it to "configuration.ini". ; ; @author Nico Alt ; @date 16.03.2016 ; ; See the file "LICENSE" for the full license governing this code. [MySQL] ; The host name or IP address of the MySQL databse. Host = "localhost" ; The MySQL user name. User...
Add default values for MySQL host and database
Add default values for MySQL host and database
INI
agpl-3.0
legionboard/heart
ini
## Code Before: ; This is the configuration file of LegionBoard. ; Copy this file or rename it to "configuration.ini". ; ; @author Nico Alt ; @date 16.03.2016 ; ; See the file "LICENSE" for the full license governing this code. [MySQL] ; The host name or IP address of the MySQL databse. Host = "" ; The MySQL user nam...
; This is the configuration file of LegionBoard. ; Copy this file or rename it to "configuration.ini". ; ; @author Nico Alt ; @date 16.03.2016 ; ; See the file "LICENSE" for the full license governing this code. [MySQL] ; The host name or IP address of the MySQL databse. - Host = "" + Host = "loca...
4
0.210526
2
2
eaf605dd5c49f3831d1b04592cd7f3aecb3b06b0
spec/lib/netsweet/sso_spec.rb
spec/lib/netsweet/sso_spec.rb
require 'spec_helper' describe Netsweet::SSO do Given(:id) { new_id } Given(:customer_attributes) do { external_id: id, email: gen_email, first_name: 'Alex', last_name: 'Burkhart', password: 'super_secret', password2: 'super_secret', give_access: true, access_role: '1...
require 'spec_helper' describe Netsweet::SSO do Given(:id) { new_id } Given(:customer_attributes) do { external_id: id, email: gen_email, first_name: 'Alex', last_name: 'Burkhart', password: 'super_secret', password2: 'super_secret', give_access: true, access_role: '1...
Remove specific error class check when checking not failed
Remove specific error class check when checking not failed
Ruby
mit
forever-inc/netsweet
ruby
## Code Before: require 'spec_helper' describe Netsweet::SSO do Given(:id) { new_id } Given(:customer_attributes) do { external_id: id, email: gen_email, first_name: 'Alex', last_name: 'Burkhart', password: 'super_secret', password2: 'super_secret', give_access: true, ...
require 'spec_helper' describe Netsweet::SSO do Given(:id) { new_id } Given(:customer_attributes) do { external_id: id, email: gen_email, first_name: 'Alex', last_name: 'Burkhart', password: 'super_secret', password2: 'super_secret', give_access: t...
2
0.074074
1
1
6f054e2ac2164b11eab2b087047ba708cc9b3a7d
example/QCheck_ounit_test.ml
example/QCheck_ounit_test.ml
let passing = QCheck.Test.make ~count:1000 ~name:"list_rev_is_involutive" QCheck.(list small_int) (fun l -> List.rev (List.rev l) = l);; let failing = QCheck.Test.make ~count:10 ~name:"fail_sort_id" QCheck.(list small_int) (fun l -> l = List.sort compare l);; let () = let open OUnit2 in ...
let passing = QCheck.Test.make ~count:1000 ~name:"list_rev_is_involutive" QCheck.(list small_int) (fun l -> List.rev (List.rev l) = l);; let failing = QCheck.Test.make ~count:10 ~name:"fail_sort_id" QCheck.(list small_int) (fun l -> l = List.sort compare l);; exception Error let error = ...
Add test case for raising exception
Add test case for raising exception
OCaml
bsd-2-clause
c-cube/qcheck
ocaml
## Code Before: let passing = QCheck.Test.make ~count:1000 ~name:"list_rev_is_involutive" QCheck.(list small_int) (fun l -> List.rev (List.rev l) = l);; let failing = QCheck.Test.make ~count:10 ~name:"fail_sort_id" QCheck.(list small_int) (fun l -> l = List.sort compare l);; let () = let...
let passing = QCheck.Test.make ~count:1000 ~name:"list_rev_is_involutive" QCheck.(list small_int) (fun l -> List.rev (List.rev l) = l);; let failing = QCheck.Test.make ~count:10 ~name:"fail_sort_id" QCheck.(list small_int) (fun l -> l = List.sort compare l);; + exce...
11
0.647059
10
1
96a9193955e818744a4f0b4217786370481310b9
src/main/webapp/view/UserMenu.fragment.xml
src/main/webapp/view/UserMenu.fragment.xml
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:u="sap.ui.unified"> <u:Menu> <u:MenuItem text="Go to my own profile" visible="{config>/IsMentor}" select="onGotoMyProfile" icon="sap-icon://customer"/> <u:MenuItem text="Logout" select="onPressLogout" icon="sap-...
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:u="sap.ui.unified"> <u:Menu class="sapUiSizeCozy"> <u:MenuItem text="Go to my own profile" visible="{config>/IsMentor}" select="onGotoMyProfile" icon="sap-icon://customer"/> <u:MenuItem text="Logout" select="onPress...
Make the user menu class cozy
Make the user menu class cozy
XML
mit
sapmentors/lemonaid,sapmentors/lemonaid,sapmentors/lemonaid
xml
## Code Before: <core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:u="sap.ui.unified"> <u:Menu> <u:MenuItem text="Go to my own profile" visible="{config>/IsMentor}" select="onGotoMyProfile" icon="sap-icon://customer"/> <u:MenuItem text="Logout" select="onPressLogout...
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:u="sap.ui.unified"> - <u:Menu> + <u:Menu class="sapUiSizeCozy"> <u:MenuItem text="Go to my own profile" visible="{config>/IsMentor}" select="onGotoMyProfile" icon="sap-icon://customer"/> <u:MenuItem ...
3
0.176471
1
2
0bfb68437305e318f92c33080aaecaa4e569b54a
Readme.md
Readme.md
A simple wrapper for Google's LevelDB. To make this work: 1. Drag LevelDB.h and LevelDB.mm into your project. 2. Clone [Google's leveldb](http://code.google.com/p/leveldb/source/checkout), preferably as a submodule of your project 3. In the leveldb library source directory, run `make PLATFORM=IOS` to build the libr...
This is a simple wrapper for Google's LevelDB. LevelDB is a fast key-value store written by Google. ### Instructions 1. Drag LevelDB.h and LevelDB.mm into your project. 2. Clone [Google's leveldb](http://code.google.com/p/leveldb/source/checkout), preferably as a submodule of your project 3. In the leveldb library...
Update the readme with license info
Update the readme with license info
Markdown
mit
cybertk/Objective-LevelDB,matehat/Objective-LevelDB,yincheng1988/Objective-LevelDB,i-miss-you/Objective-LevelDB,fullstackclub/Objective-LevelDB,i-miss-you/Objective-LevelDB,uber/Objective-LevelDB,cureHsu/Objective-LevelDB,fullstackclub/Objective-LevelDB,cybertk/Objective-LevelDB,uber/Objective-LevelDB,cybertk/Objective...
markdown
## Code Before: A simple wrapper for Google's LevelDB. To make this work: 1. Drag LevelDB.h and LevelDB.mm into your project. 2. Clone [Google's leveldb](http://code.google.com/p/leveldb/source/checkout), preferably as a submodule of your project 3. In the leveldb library source directory, run `make PLATFORM=IOS` t...
- A simple wrapper for Google's LevelDB. - To make this work: + This is a simple wrapper for Google's LevelDB. LevelDB is a fast key-value store written by Google. + + ### Instructions 1. Drag LevelDB.h and LevelDB.mm into your project. 2. Clone [Google's leveldb](http://code.google.com/p/leveldb/source/c...
11
0.478261
8
3
3a47e3ffa11b75fd676c2e74add761bf36da6b01
guacamole-ext/src/main/java/net/sourceforge/guacamole/net/event/listener/package-info.java
guacamole-ext/src/main/java/net/sourceforge/guacamole/net/event/listener/package-info.java
/** * Provides classes for hooking into various events that take place as * users log into and use the Guacamole web application. These event * hooks can be used to take action upon occurence of an event and, * in some cases, prevent the web application from allowing the * event to continue for the user that trig...
/** * Provides classes for hooking into various events that take place as * users log into and use the Guacamole web application. These event * hooks can be used to take action upon occurrence of an event and, * in some cases, prevent the web application from allowing the * event to continue for the user that tri...
Fix wrong package and typo.
Fix wrong package and typo.
Java
apache-2.0
lato333/guacamole-client,MaxSmile/guacamole-client,mike-jumper/incubator-guacamole-client,Akheon23/guacamole-client,jmuehlner/incubator-guacamole-client,MaxSmile/guacamole-client,glyptodon/guacamole-client,hguehl/incubator-guacamole-client,Akheon23/guacamole-client,necouchman/incubator-guacamole-client,DaanWillemsen/gu...
java
## Code Before: /** * Provides classes for hooking into various events that take place as * users log into and use the Guacamole web application. These event * hooks can be used to take action upon occurence of an event and, * in some cases, prevent the web application from allowing the * event to continue for th...
/** * Provides classes for hooking into various events that take place as * users log into and use the Guacamole web application. These event - * hooks can be used to take action upon occurence of an event and, + * hooks can be used to take action upon occurrence of an event and, ? ...
4
0.4
2
2
f886ff902d3f3fef08d4fb0d44d79499607ba2c1
tests/BasicClassTemplateTest.php
tests/BasicClassTemplateTest.php
<?php /* * This file is part of the Onema ClassyFile Package. * For the full copyright and license information, * please view the LICENSE file that was distributed * with this source code. */ namespace Onema\Test; use Onema\ClassyFile\Template\BasicClassTemplate; /** * BasicClassTemplateTest - Description. ...
<?php /* * This file is part of the Onema ClassyFile Package. * For the full copyright and license information, * please view the LICENSE file that was distributed * with this source code. */ namespace Onema\Test; use Onema\ClassyFile\Template\BasicClassTemplate; /** * BasicClassTemplateTest - Description. ...
Update unit test to test for latest updates in the basic class template class.
Update unit test to test for latest updates in the basic class template class.
PHP
mit
onema/classyfile
php
## Code Before: <?php /* * This file is part of the Onema ClassyFile Package. * For the full copyright and license information, * please view the LICENSE file that was distributed * with this source code. */ namespace Onema\Test; use Onema\ClassyFile\Template\BasicClassTemplate; /** * BasicClassTemplateTest -...
<?php /* * This file is part of the Onema ClassyFile Package. * For the full copyright and license information, * please view the LICENSE file that was distributed * with this source code. */ namespace Onema\Test; use Onema\ClassyFile\Template\BasicClassTemplate; /** * BasicClassTemp...
2
0.051282
1
1
29a46de2a2c386cde54826874d5fc082bbd80f5b
command_cleanup.go
command_cleanup.go
package main import "fmt" func commandCleanupChecks(done chan bool, printOnly bool) { if !printOnly { dbOpen() } stmts := []string{ `DELETE FROM check_instance_configurations;`, `DELETE FROM check_instance_configuration_dependencies;`, `DELETE FROM check_instances;`, `DELETE FROM checks;`, `DELETE FRO...
package main import "fmt" func commandCleanupChecks(done chan bool, printOnly bool) { if !printOnly { dbOpen() } stmts := []string{ `DELETE FROM check_instance_configurations;`, `DELETE FROM check_instance_configuration_dependencies;`, `DELETE FROM check_instances;`, `DELETE FROM checks;`, `DELETE FRO...
Make cleanup checks command terminate
Make cleanup checks command terminate
Go
bsd-2-clause
1and1/soma
go
## Code Before: package main import "fmt" func commandCleanupChecks(done chan bool, printOnly bool) { if !printOnly { dbOpen() } stmts := []string{ `DELETE FROM check_instance_configurations;`, `DELETE FROM check_instance_configuration_dependencies;`, `DELETE FROM check_instances;`, `DELETE FROM checks;...
package main import "fmt" func commandCleanupChecks(done chan bool, printOnly bool) { if !printOnly { dbOpen() } stmts := []string{ `DELETE FROM check_instance_configurations;`, `DELETE FROM check_instance_configuration_dependencies;`, `DELETE FROM check_instances;`, `DELETE ...
2
0.058824
2
0
0740d16b60a3ecc26e72c51ea85257b2c0d03d18
setup.py
setup.py
from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "seppo....
from __future__ import absolute_import from setuptools import setup long_description="""http://github.com/nanonyme/simplepreprocessor""" setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author_email = "seppo.yli-olli@iki.fi", description = "Simple C preprocessor for usage eg before CFFI...
Make long description not point to Travis since can't guarantee tag
Make long description not point to Travis since can't guarantee tag
Python
mit
nanonyme/simplecpreprocessor
python
## Code Before: from __future__ import absolute_import from setuptools import setup long_description="""TravisCI results .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg """ setup( name = "simplecpreprocessor", author = "Seppo Yli-Olli", author...
from __future__ import absolute_import from setuptools import setup + long_description="""http://github.com/nanonyme/simplepreprocessor""" - long_description="""TravisCI results - .. image:: https://travis-ci.org/nanonyme/simplecpreprocessor.svg - """ - setup( ...
5
0.192308
1
4
bd2d78b6b19b3ba8d336d98000df2829f7cc42e8
basis/furnace/alloy/alloy.factor
basis/furnace/alloy/alloy.factor
! Copyright (C) 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel sequences db.tuples alarms calendar db fry furnace.db furnace.cache furnace.asides furnace.referrer furnace.sessions furnace.conversations furnace.auth.providers furnace.auth.login.permits ; IN: furnace.alloy : st...
! Copyright (C) 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel sequences db.tuples alarms calendar db fry furnace.db furnace.cache furnace.asides furnace.sessions furnace.conversations furnace.auth.providers furnace.auth.login.permits ; IN: furnace.alloy : state-classes { ses...
Disable referrer checking by default since adblock doesn't send it for some lame reason
Disable referrer checking by default since adblock doesn't send it for some lame reason
Factor
bsd-2-clause
factor/factor,sarvex/factor-lang,dharmatech/factor,AlexIljin/factor,dharmatech/factor,bjourne/factor,seckar/factor,mrjbq7/factor,bjourne/factor,jwmerrill/factor,dharmatech/factor,bjourne/factor,kingcons/factor,sarvex/factor-lang,slavapestov/factor,tgunr/factor,kingcons/factor,mrjbq7/factor,erg/factor,mcandre/factor,ehi...
factor
## Code Before: ! Copyright (C) 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel sequences db.tuples alarms calendar db fry furnace.db furnace.cache furnace.asides furnace.referrer furnace.sessions furnace.conversations furnace.auth.providers furnace.auth.login.permits ; IN: fur...
! Copyright (C) 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: kernel sequences db.tuples alarms calendar db fry furnace.db furnace.cache furnace.asides - furnace.referrer furnace.sessions furnace.conversations furnace.auth.providers furnace.auth.login.permits ; ...
4
0.121212
1
3
41dd740d6aa4ac2912ed58005bfd638607f2bccf
README.md
README.md
Open Mafia ========== I'm creating a simple text based mafia MMORPG to reminisce on playing these years ago.
Open Mafia ========== I'm creating a simple text based mafia MMORPG to reminisce on playing these years ago. Creating one of these games years ago was a catapult into this industry and here I am creating one again. I remember times where internet cafes and libraries had teenagers playing these style of games against ...
Add more to the readme
Add more to the readme
Markdown
mit
ThomasLomas/Open-Mafia,ThomasLomas/Open-Mafia
markdown
## Code Before: Open Mafia ========== I'm creating a simple text based mafia MMORPG to reminisce on playing these years ago. ## Instruction: Add more to the readme ## Code After: Open Mafia ========== I'm creating a simple text based mafia MMORPG to reminisce on playing these years ago. Creating one of these games...
Open Mafia ========== I'm creating a simple text based mafia MMORPG to reminisce on playing these years ago. + + Creating one of these games years ago was a catapult into this industry and here I am creating one again. I remember times where internet cafes and libraries had teenagers playing these style of ga...
4
1
4
0
1dc4cac91a841ce835eedb27ad81f38f296b99df
app/Http/Controllers/DashboardController.php
app/Http/Controllers/DashboardController.php
<?php /** * Bareos Reporter * Application for managing Bareos Backup Email Reports * * Dashboard Controller * * @license The MIT License (MIT) See: LICENSE file * @copyright Copyright (c) 2016 Matt Clinton * @author Matt Clinton <matt@laralabs.uk> * @website http://www.magelabs.uk/ */ namespace App\Http\Cont...
<?php /** * Bareos Reporter * Application for managing Bareos Backup Email Reports * * Dashboard Controller * * @license The MIT License (MIT) See: LICENSE file * @copyright Copyright (c) 2016 Matt Clinton * @author Matt Clinton <matt@laralabs.uk> * @website http://www.magelabs.uk/ */ namespace App\Http\Cont...
Save connection name in session too
Save connection name in session too
PHP
mit
laralabs/bareos-reporter,laralabs/bareos-reporter,laralabs/bareos-reporter
php
## Code Before: <?php /** * Bareos Reporter * Application for managing Bareos Backup Email Reports * * Dashboard Controller * * @license The MIT License (MIT) See: LICENSE file * @copyright Copyright (c) 2016 Matt Clinton * @author Matt Clinton <matt@laralabs.uk> * @website http://www.magelabs.uk/ */ namespa...
<?php /** * Bareos Reporter * Application for managing Bareos Backup Email Reports * * Dashboard Controller * * @license The MIT License (MIT) See: LICENSE file * @copyright Copyright (c) 2016 Matt Clinton * @author Matt Clinton <matt@laralabs.uk> * @website http://www.magelabs.uk/ */ ...
3
0.045455
3
0
a71e7dcd225a4ec00cbca7e1afd1b140f2078c29
go/vt/callinfo/callinfo.go
go/vt/callinfo/callinfo.go
// Package callinfo stores custom values into the Context // (related to the RPC source) package callinfo import ( "html/template" "golang.org/x/net/context" ) // CallInfo is the extra data stored in the Context type CallInfo interface { // RemoteAddr is the remote address information for this rpc call. RemoteAd...
// Package callinfo stores custom values into the Context // (related to the RPC source) package callinfo import ( "html/template" "golang.org/x/net/context" ) // CallInfo is the extra data stored in the Context type CallInfo interface { // RemoteAddr is the remote address information for this rpc call. RemoteAd...
Use 0 as the context key
Use 0 as the context key
Go
apache-2.0
nurblieh/vitess,mattharden/vitess,SDHM/vitess,enisoc/vitess,cgvarela/vitess,netroby/vitess,mapbased/vitess,xgwubin/vitess,skyportsystems/vitess,kmiku7/vitess-annotated,cgvarela/vitess,erzel/vitess,davygeek/vitess,erzel/vitess,nurblieh/vitess,vitessio/vitess,fengshao0907/vitess,yangzhongj/vitess,enisoc/vitess,skyportsys...
go
## Code Before: // Package callinfo stores custom values into the Context // (related to the RPC source) package callinfo import ( "html/template" "golang.org/x/net/context" ) // CallInfo is the extra data stored in the Context type CallInfo interface { // RemoteAddr is the remote address information for this rpc...
// Package callinfo stores custom values into the Context // (related to the RPC source) package callinfo import ( "html/template" "golang.org/x/net/context" ) // CallInfo is the extra data stored in the Context type CallInfo interface { // RemoteAddr is the remote address information fo...
4
0.1
2
2
94aafd5611e1b4771ea7adfd7769be4a608a347e
assets/src/app.css
assets/src/app.css
.gameapp { display: flex; flex-direction: row; height: 100vh; width: 100vw; } .gameboard { flex: 1; position: relative; margin: 1lh; } .gameboard-canvas { position: absolute; height: 100%; width: 100%; left: 0; } .controls { display: flex; justify-content: space-evenly; } .scoreboard { b...
.gameapp { display: flex; flex-direction: row; height: 100vh; width: 100vw; } .gameboard { flex: 1; position: relative; margin: 1lh; } .gameboard-canvas { position: absolute; height: 100%; width: 100%; left: 0; } .controls { display: flex; justify-content: space-evenly; } .scoreboard { b...
Fix bad sizing on scoreboard.
Fix bad sizing on scoreboard.
CSS
agpl-3.0
Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake,Dkendal/battle_snake
css
## Code Before: .gameapp { display: flex; flex-direction: row; height: 100vh; width: 100vw; } .gameboard { flex: 1; position: relative; margin: 1lh; } .gameboard-canvas { position: absolute; height: 100%; width: 100%; left: 0; } .controls { display: flex; justify-content: space-evenly; } ....
.gameapp { display: flex; flex-direction: row; height: 100vh; width: 100vw; } .gameboard { flex: 1; position: relative; margin: 1lh; } .gameboard-canvas { position: absolute; height: 100%; width: 100%; left: 0; } .controls { display: flex; justi...
1
0.016129
1
0
c6ac1540025159c0f242c9fa142362b23d8a9b15
ie-urls.sh
ie-urls.sh
curl -s https://www.modern.ie/en-gb/virtualization-tools \ | grep -oiE 'https://[A-Z0-9._/]+For\.Linux\.VirtualBox\.txt' \ | sort | uniq
cat <<EOF 1>&2 By downloading and using these VMs, you are agreeing Microsoft Software License Terms. You should go to https://www.modern.ie and read them if you haven't before EOF curl -s https://www.modern.ie/en-gb/virtualization-tools \ | grep -oiE 'https://[A-Z0-9._/]+For\.Linux\.VirtualBox\.txt' \ | sor...
Add note about having a look at MS' licence
Add note about having a look at MS' licence
Shell
mit
lentinj/ie-vm,lentinj/ie-vm
shell
## Code Before: curl -s https://www.modern.ie/en-gb/virtualization-tools \ | grep -oiE 'https://[A-Z0-9._/]+For\.Linux\.VirtualBox\.txt' \ | sort | uniq ## Instruction: Add note about having a look at MS' licence ## Code After: cat <<EOF 1>&2 By downloading and using these VMs, you are agreeing Microsoft So...
+ + cat <<EOF 1>&2 + By downloading and using these VMs, you are agreeing Microsoft Software License + Terms. You should go to https://www.modern.ie and read them if you haven't + before + + EOF curl -s https://www.modern.ie/en-gb/virtualization-tools \ | grep -oiE 'https://[A-Z0-9._/]+For\.Linux\.VirtualB...
7
1.75
7
0
e3c2ce871f3d84fad9306e141b8d384ff8e374f5
lib/discordrb/api/invite.rb
lib/discordrb/api/invite.rb
module Discordrb::API::Invite module_function # Resolve an invite # https://discordapp.com/developers/docs/resources/invite#get-invite def resolve(token, invite_code) Discordrb::API.request( __method__, :get, "#{Discordrb::API.api_base}/invite/#{invite_code}", Authorization: token ...
module Discordrb::API::Invite module_function # Resolve an invite # https://discordapp.com/developers/docs/resources/invite#get-invite def resolve(token, invite_code) Discordrb::API.request( :invite_code, :get, "#{Discordrb::API.api_base}/invite/#{invite_code}", Authorization: token...
Replace method-based RL keys with route-based ones in API::Invite
Replace method-based RL keys with route-based ones in API::Invite
Ruby
mit
Roughsketch/discordrb,meew0/discordrb,meew0/discordrb,Roughsketch/discordrb,VxJasonxV/discordrb,VxJasonxV/discordrb
ruby
## Code Before: module Discordrb::API::Invite module_function # Resolve an invite # https://discordapp.com/developers/docs/resources/invite#get-invite def resolve(token, invite_code) Discordrb::API.request( __method__, :get, "#{Discordrb::API.api_base}/invite/#{invite_code}", Author...
module Discordrb::API::Invite module_function # Resolve an invite # https://discordapp.com/developers/docs/resources/invite#get-invite def resolve(token, invite_code) Discordrb::API.request( - __method__, + :invite_code, :get, "#{Discordrb::API.api_base}/invite/#{i...
6
0.162162
3
3
3948501471cc54ecd60a83a15d494f90f210461d
README.rdoc
README.rdoc
= Ruby Zabbix Api Module. Simple and lightweight ruby module for work with zabbix api version 1.8.2 You can: * Create host/template/application/items/triggers and screens; * Get info about all zabbix essences; == Get Start. * Get hostid from zabbix api: zbx = Zabbix::ZabbixApi.new('https://zabbix.example.com',...
= Ruby Zabbix Api Module. Simple and lightweight ruby module for work with zabbix api version 1.8.2 You can: * Create host/template/application/items/triggers and screens; * Get info about all zabbix essences; == Get Start. * Get hostid from zabbix api: zbx = Zabbix::ZabbixApi.new('https://zabbix.example.com',...
Add links to zabbix documentation
Add links to zabbix documentation
RDoc
mit
mrThe/zabbixapi,jrbeilke/zabbixapi,express42/zabbixapi
rdoc
## Code Before: = Ruby Zabbix Api Module. Simple and lightweight ruby module for work with zabbix api version 1.8.2 You can: * Create host/template/application/items/triggers and screens; * Get info about all zabbix essences; == Get Start. * Get hostid from zabbix api: zbx = Zabbix::ZabbixApi.new('https://zabb...
= Ruby Zabbix Api Module. Simple and lightweight ruby module for work with zabbix api version 1.8.2 You can: * Create host/template/application/items/triggers and screens; * Get info about all zabbix essences; == Get Start. * Get hostid from zabbix api: zbx = Zabbix::ZabbixApi.new('ht...
1
0.037037
1
0
7cbd21a050a9e94d0f8f1f5c3ce4f81c812e279c
trump/templating/tests/test_templates.py
trump/templating/tests/test_templates.py
from ..templates import QuandlFT class TestTemplates(object): def test_quandl_ft(self): ftemp = QuandlFT("xxx", trim_start="yyyy-mm-dd", authtoken="yyy") assert ftemp.sourcing == {'authtoken': 'yyy', 'trim_start': 'yyyy-mm-dd', '...
from ..templates import QuandlFT, QuandlSecureFT, GoogleFinanceFT class TestTemplates(object): def test_quandl_ft(self): ftemp = QuandlFT("xxx", trim_start="yyyy-mm-dd", authtoken="yyy") assert ftemp.sourcing == {'authtoken': 'yyy', 'trim_start': 'yyyy-mm-dd', ...
Add two tests for templates
Add two tests for templates
Python
bsd-3-clause
Equitable/trump,Asiant/trump,jnmclarty/trump
python
## Code Before: from ..templates import QuandlFT class TestTemplates(object): def test_quandl_ft(self): ftemp = QuandlFT("xxx", trim_start="yyyy-mm-dd", authtoken="yyy") assert ftemp.sourcing == {'authtoken': 'yyy', 'trim_start': 'yyyy-mm-dd', ...
- from ..templates import QuandlFT + from ..templates import QuandlFT, QuandlSecureFT, GoogleFinanceFT class TestTemplates(object): def test_quandl_ft(self): ftemp = QuandlFT("xxx", trim_start="yyyy-mm-dd", authtoken="yyy") assert ftemp.sourcing == {'authtoken': 'yyy', ...
18
1.8
17
1
20880a949b764ae35c9d69b55358f932094a6621
core/modules/catalog/components/ProductGallery.ts
core/modules/catalog/components/ProductGallery.ts
import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, required: true }, ...
import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, required: true }, ...
Remove forceUpdate from mounted and removed whitespace
Remove forceUpdate from mounted and removed whitespace
TypeScript
mit
DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront
typescript
## Code Before: import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, required: ...
import VueOffline from 'vue-offline' import store from '@vue-storefront/store' export const ProductGallery = { name: 'ProductGallery', components: { VueOffline }, props: { gallery: { type: Array, required: true }, configuration: { type: Object, ...
3
0.054545
1
2
be9d2e72705460f36a0e9ab1033a42d5a9c1bf6e
lib/refinery/redactor/engine.rb
lib/refinery/redactor/engine.rb
module Refinery module Redactor class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery engine_name :refinery_redactor # set the manifests and assets to be precompiled config.to_prepare do Rails.application.config.assets.precompile += %w( ...
module Refinery module Redactor class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery engine_name :refinery_redactor # set the manifests and assets to be precompiled config.to_prepare do Rails.application.config.assets.precompile += %w( ...
Load all plugins by default
Load all plugins by default
Ruby
mit
rabid/refinerycms-redactor,rabid/refinerycms-redactor,rabid/refinerycms-redactor
ruby
## Code Before: module Refinery module Redactor class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery engine_name :refinery_redactor # set the manifests and assets to be precompiled config.to_prepare do Rails.application.config.assets.precompile...
module Refinery module Redactor class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery engine_name :refinery_redactor # set the manifests and assets to be precompiled config.to_prepare do Rails.application.config.assets.prec...
5
0.119048
3
2
6345c88fb935c9b38343846122a442ab3a9ad07d
scripts/run_test_component.sh
scripts/run_test_component.sh
ENMASSE_DIR=$1 DIR=`dirname $0` set -x source $DIR/common.sh failure=0 oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443 setup_test enmasse-ci $ENMASSE_DIR run_test enmasse-ci true || failure=$(($failure + 1)) # teardown_test enmasse-ci if [ $failure -gt 0 ] then echo "Systemtests f...
ENMASSE_DIR=$1 DIR=`dirname $0` source $DIR/common.sh failure=0 OPENSHIFT_URL=${OPENSHIFT_URL:-https://localhost:8443} OPENSHIFT_USER=${OPENSHIFT_USER:-test} OPENSHIFT_PASSWD=${OPENSHIFT_PASSWD:-test} OPENSHIFT_PROJECT=${OPENSHIFT_PROJECT:-enmasseci} MULTITENANT=${MULTITENANT:-false} oc login -u ${OPENSHIFT_USER} -p $...
Use variables from environment if set
Use variables from environment if set
Shell
apache-2.0
jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse
shell
## Code Before: ENMASSE_DIR=$1 DIR=`dirname $0` set -x source $DIR/common.sh failure=0 oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443 setup_test enmasse-ci $ENMASSE_DIR run_test enmasse-ci true || failure=$(($failure + 1)) # teardown_test enmasse-ci if [ $failure -gt 0 ] then ech...
ENMASSE_DIR=$1 DIR=`dirname $0` - set -x source $DIR/common.sh failure=0 + OPENSHIFT_URL=${OPENSHIFT_URL:-https://localhost:8443} + OPENSHIFT_USER=${OPENSHIFT_USER:-test} + OPENSHIFT_PASSWD=${OPENSHIFT_PASSWD:-test} + OPENSHIFT_PROJECT=${OPENSHIFT_PROJECT:-enmasseci} + MULTITENANT=${MULTITENANT:-false} - oc ...
14
0.823529
9
5
c66f5426d12423d3cd2709ed642669ffd3685c5e
README.md
README.md
Asessment for applying to GingerPayments
Asessment for applying to GingerPayments ([link to the original description](https://github.com/gingerpayments/hiring/blob/master/coding-assignments/python-address-book-assignment/python-address-book-assignment.rst)).
Add the link to the original description
Add the link to the original description
Markdown
mit
dizpers/python-address-book-assignment
markdown
## Code Before: Asessment for applying to GingerPayments ## Instruction: Add the link to the original description ## Code After: Asessment for applying to GingerPayments ([link to the original description](https://github.com/gingerpayments/hiring/blob/master/coding-assignments/python-address-book-assignment/python-add...
- Asessment for applying to GingerPayments + Asessment for applying to GingerPayments ([link to the original description](https://github.com/gingerpayments/hiring/blob/master/coding-assignments/python-address-book-assignment/python-address-book-assignment.rst)).
2
2
1
1
88a24ba80e2bb38f3ec899955743d00655e553cd
spec/support/chargeback_helper.rb
spec/support/chargeback_helper.rb
module Spec module Support module ChargebackHelper def set_tier_param_for(metric, param, value, num_of_tier = 0) tier = chargeback_rate.chargeback_rate_details.where(:metric => metric).first.chargeback_tiers[num_of_tier] tier.send("#{param}=", value) tier.save end def us...
module Spec module Support module ChargebackHelper def set_tier_param_for(metric, param, value, num_of_tier = 0) tier = chargeback_rate.chargeback_rate_details.where(:metric => metric).first.chargeback_tiers[num_of_tier] tier.send("#{param}=", value) tier.save end def us...
Add helper method for generating MetricRollups
Add helper method for generating MetricRollups
Ruby
apache-2.0
lpichler/manageiq,gmcculloug/manageiq,jntullo/manageiq,kbrock/manageiq,jrafanie/manageiq,israel-hdez/manageiq,matobet/manageiq,lpichler/manageiq,ilackarms/manageiq,israel-hdez/manageiq,borod108/manageiq,mzazrivec/manageiq,josejulio/manageiq,pkomanek/manageiq,kbrock/manageiq,israel-hdez/manageiq,NickLaMuro/manageiq,mfei...
ruby
## Code Before: module Spec module Support module ChargebackHelper def set_tier_param_for(metric, param, value, num_of_tier = 0) tier = chargeback_rate.chargeback_rate_details.where(:metric => metric).first.chargeback_tiers[num_of_tier] tier.send("#{param}=", value) tier.save e...
module Spec module Support module ChargebackHelper def set_tier_param_for(metric, param, value, num_of_tier = 0) tier = chargeback_rate.chargeback_rate_details.where(:metric => metric).first.chargeback_tiers[num_of_tier] tier.send("#{param}=", value) tier.save e...
12
0.8
12
0
51b0f8da60b475844470b80756ae7d6690732deb
salt/monitoring/client/init.sls
salt/monitoring/client/init.sls
diamond-depends: pkg.installed: - pkgs: - python-configobj - python-psutil diamond: pkg.installed: - sources: - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb - require: - pkg: diamond-depends group.present: - system: True user.presen...
diamond-depends: pkg.installed: - pkgs: - python-configobj - python-psutil diamond: pkg.installed: - sources: - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb - require: - pkg: diamond-depends group.present: - system: True user.presen...
Set the diamond client to running
Set the diamond client to running
SaltStack
mit
dstufft/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,caktus/psf-salt,caktus/psf-salt,dstufft/psf-salt,python/psf-salt,zooba/psf-salt,dstufft/psf-salt,zware/psf-salt,zware/psf-salt,python/psf-salt,caktus/psf-salt,python/psf-salt,zware/psf-salt,zooba/psf-salt
saltstack
## Code Before: diamond-depends: pkg.installed: - pkgs: - python-configobj - python-psutil diamond: pkg.installed: - sources: - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb - require: - pkg: diamond-depends group.present: - system: Tru...
diamond-depends: pkg.installed: - pkgs: - python-configobj - python-psutil diamond: pkg.installed: - sources: - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb - require: - pkg: diamond-depends group.present: ...
10
0.277778
8
2
157d9da9e4b1b690e0c4d0379fed80e512d0ecad
ftp/CMakeLists.txt
ftp/CMakeLists.txt
project(ftp-client) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) set(CMAKE_C_FLAGS "-std=gnu99 -Wall -g") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") find_package(PCRE) if (PCRE_FOUND) include_directories(${PCR...
project(download) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) set(CMAKE_C_FLAGS "-std=gnu99 -Wall -g") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") find_package(PCRE) if (PCRE_FOUND) include_directories(${PCRE_...
Change executable name from ftp-client to download
Change executable name from ftp-client to download
Text
mit
DDuarte/feup-rcom-serialport_and_ftp
text
## Code Before: project(ftp-client) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) set(CMAKE_C_FLAGS "-std=gnu99 -Wall -g") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") find_package(PCRE) if (PCRE_FOUND) include_d...
- project(ftp-client) + project(download) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) set(CMAKE_C_FLAGS "-std=gnu99 -Wall -g") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") find_package(PCRE) i...
4
0.285714
2
2
1a721d6b1bd32da9f48fb5f3dc0b26eee8bfd095
test/__snapshots__/show.js
test/__snapshots__/show.js
var fs = require('fs') var path = require('path') var chalk = require('chalk') function show (result) { Object.keys(result).sort().reverse().forEach(file => { var test = file.replace(/\.test\.js\.snap$/, '') result[file].split('exports[`') .filter(str => str.indexOf('// ') !== 0) .forEach(str =>...
var fs = require('fs') var path = require('path') var chalk = require('chalk') var filter = process.argv[2] function show (result) { Object.keys(result).sort().reverse().forEach(file => { var test = file.replace(/\.test\.js\.snap$/, '') result[file].split('exports[`') .filter(str => str.indexOf('// '...
Add filters to snapshot preview
Add filters to snapshot preview
JavaScript
mit
logux/logux-server
javascript
## Code Before: var fs = require('fs') var path = require('path') var chalk = require('chalk') function show (result) { Object.keys(result).sort().reverse().forEach(file => { var test = file.replace(/\.test\.js\.snap$/, '') result[file].split('exports[`') .filter(str => str.indexOf('// ') !== 0) ...
var fs = require('fs') var path = require('path') var chalk = require('chalk') + + var filter = process.argv[2] function show (result) { Object.keys(result).sort().reverse().forEach(file => { var test = file.replace(/\.test\.js\.snap$/, '') result[file].split('exports[`') .filter(...
3
0.090909
3
0
d131752554acd5cb10d19acc0c43048fdd457975
app/views/components/navigation/_secondary.html.haml
app/views/components/navigation/_secondary.html.haml
-# The inline navigation for wide screens .wv--split--right.nav--inline.nav--secondary.wv--block - properties[:items].each do |n| - active = n[:title] == properties[:section_name] || (n[:slug].end_with? properties[:section_name].downcase.strip.gsub(' ', '-')) %a.nav__item.nav__item--secondary.js-nav-item{:cla...
-# The inline navigation for wide screens .wv--split--right.nav--inline.nav--secondary.wv--block - properties[:items].each do |n| - active = n[:title] == properties[:section_name] || (n[:slug].end_with? properties[:section_name].downcase.strip.gsub(' ', '-')) %a.nav__item.nav__item--secondary.js-nav-item{:cla...
Allow to specify action in secondary nav for mobile
Allow to specify action in secondary nav for mobile Currently hardcoded path is /redirector, it doesn't work when app is mounted in subdirectory (i.e. Community)
Haml
mit
Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo
haml
## Code Before: -# The inline navigation for wide screens .wv--split--right.nav--inline.nav--secondary.wv--block - properties[:items].each do |n| - active = n[:title] == properties[:section_name] || (n[:slug].end_with? properties[:section_name].downcase.strip.gsub(' ', '-')) %a.nav__item.nav__item--secondary....
-# The inline navigation for wide screens .wv--split--right.nav--inline.nav--secondary.wv--block - properties[:items].each do |n| - active = n[:title] == properties[:section_name] || (n[:slug].end_with? properties[:section_name].downcase.strip.gsub(' ', '-')) %a.nav__item.nav__item--secondary.js-nav...
2
0.2
1
1
330a5767acaa4d83fb36b6622fcab2c789646646
config.ru
config.ru
require './config/app.rb' module Rack class ScsBlog < Static def call(env) status, headers, response = @file_server.call(env) if status == 404 if env["PATH_INFO"] == "/" env["PATH_INFO"] = "index.html" else env["PATH_INFO"] = "#{env["PATH_INFO"]}.html" end ...
require './config/app.rb' module Rack class ScsBlog < Static def call(env) status, headers, response = @file_server.call(env) if status == 404 ori_path = env["PATH_INFO"] if ori_path == "/" env["PATH_INFO"] = "index.html" else env["PATH_INFO"] = "#{ori_path...
Fix posts/index.html is not found
B: Fix posts/index.html is not found
Ruby
mit
sibevin/scs-blog,sibevin/scs-blog
ruby
## Code Before: require './config/app.rb' module Rack class ScsBlog < Static def call(env) status, headers, response = @file_server.call(env) if status == 404 if env["PATH_INFO"] == "/" env["PATH_INFO"] = "index.html" else env["PATH_INFO"] = "#{env["PATH_INFO"]}.ht...
require './config/app.rb' module Rack class ScsBlog < Static def call(env) status, headers, response = @file_server.call(env) if status == 404 - if env["PATH_INFO"] == "/" ? ^ ------- + ori_path = env["PATH_INFO"] ? ++ ^^^^^^^ + ...
15
0.405405
9
6
d03eadd665524db9512f8a5ffef93aa443e1be8e
app/code/community/Sign2pay/Payment/Block/Form/Sign2pay.php
app/code/community/Sign2pay/Payment/Block/Form/Sign2pay.php
<?php class Sign2pay_Payment_Block_Form_Sign2pay extends Mage_Payment_Block_Form { protected function _construct() { parent::_construct(); $this->setTemplate('sign2pay/form/sign2pay.phtml'); } protected function _prepareLayout() { parent::_prepareLayout(); // This ...
<?php class Sign2pay_Payment_Block_Form_Sign2pay extends Mage_Payment_Block_Form { protected function _construct() { parent::_construct(); $this->setTemplate('sign2pay/form/sign2pay.phtml') ->setMethodLabelAfterHtml('<img src="https://app.sign2pay.com/api/v2/banks/logo.gif" alt="Sig...
Add logo to payment method
Add logo to payment method
PHP
mit
magently/magento-sign2pay,magently/magento-sign2pay,Sign2Pay/magento-sign2pay,magently/magento-sign2pay,Sign2Pay/magento-sign2pay,Sign2Pay/magento-sign2pay
php
## Code Before: <?php class Sign2pay_Payment_Block_Form_Sign2pay extends Mage_Payment_Block_Form { protected function _construct() { parent::_construct(); $this->setTemplate('sign2pay/form/sign2pay.phtml'); } protected function _prepareLayout() { parent::_prepareLayout(); ...
<?php class Sign2pay_Payment_Block_Form_Sign2pay extends Mage_Payment_Block_Form { protected function _construct() { parent::_construct(); - $this->setTemplate('sign2pay/form/sign2pay.phtml'); ? - + $this->setTempl...
3
0.081081
2
1
75e651cba761fad782dcac3b02695abc5d668e7e
index.js
index.js
'use strict'; var es = require('event-stream'); var Mocha = require('mocha'); module.exports = function (options) { var mocha = new Mocha(options); return es.through(function (file) { mocha.addFile(file.path); this.emit('data', file); }, function () { mocha.run(function (errCount) { if (errCount > 0) { ...
'use strict'; var es = require('event-stream'); var Mocha = require('mocha'); var path = require('path'); module.exports = function (options) { var mocha = new Mocha(options); return es.through(function (file) { delete require.cache[require.resolve(path.resolve(file.path))]; mocha.addFile(file.path); this.emi...
Make gulp-mocha comatible with watch
Make gulp-mocha comatible with watch Since mocha uses `require` to load tests - we need either run mocha in spawned process or clear requires cache.
JavaScript
mit
tteltrab/gulp-mocha,sindresorhus/gulp-mocha
javascript
## Code Before: 'use strict'; var es = require('event-stream'); var Mocha = require('mocha'); module.exports = function (options) { var mocha = new Mocha(options); return es.through(function (file) { mocha.addFile(file.path); this.emit('data', file); }, function () { mocha.run(function (errCount) { if (er...
'use strict'; var es = require('event-stream'); var Mocha = require('mocha'); + var path = require('path'); module.exports = function (options) { var mocha = new Mocha(options); return es.through(function (file) { + delete require.cache[require.resolve(path.resolve(file.path))]; mocha.addFile(...
2
0.1
2
0
e5953ff552c831c40c480b67da081eedbc389202
lib/acts_as_groupable.rb
lib/acts_as_groupable.rb
module Groupable #:nodoc: def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_groupable has_and_belongs_to_many :groups include Groupable::InstanceMethods end end module InstanceMethods def join_group(group) groups << group end ...
module Groupable #:nodoc: def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_groupable has_and_belongs_to_many :groups include Groupable::InstanceMethods end end module InstanceMethods def join_group(group) groups << group end ...
Make leave_group method work for realz
Make leave_group method work for realz
Ruby
mit
jasontorres/acts_as_groupable
ruby
## Code Before: module Groupable #:nodoc: def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_groupable has_and_belongs_to_many :groups include Groupable::InstanceMethods end end module InstanceMethods def join_group(group) groups << gr...
module Groupable #:nodoc: def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_groupable has_and_belongs_to_many :groups include Groupable::InstanceMethods end end module InstanceMethods def join_group(group) ...
2
0.076923
1
1
8b908f8adfb54e60e2886751bd67be645e1807c9
src/jasmine.js
src/jasmine.js
/* eslint-env jasmine */ import { assertions } from 'redux-actions-assertions-js'; const toDispatchActions = () => { return { compare(action, expectedActions, done) { assertions.toDispatchActions(action, expectedActions, done, done.fail); return { pass: true }; } }; }; const toNotDispatchActio...
/* eslint-env jasmine */ import { assertions } from 'redux-actions-assertions-js'; function toDispatchActions() { return { compare(action, expectedActions, done) { assertions.toDispatchActions(action, expectedActions, done, done.fail); return { pass: true }; }, negativeCompare(action, expecte...
Add support for negativeCompare, use function syntax
Add support for negativeCompare, use function syntax
JavaScript
mit
redux-things/redux-actions-assertions,dmitry-zaets/redux-actions-assertions
javascript
## Code Before: /* eslint-env jasmine */ import { assertions } from 'redux-actions-assertions-js'; const toDispatchActions = () => { return { compare(action, expectedActions, done) { assertions.toDispatchActions(action, expectedActions, done, done.fail); return { pass: true }; } }; }; const to...
/* eslint-env jasmine */ import { assertions } from 'redux-actions-assertions-js'; - const toDispatchActions = () => { ? -- --- --- + function toDispatchActions() { ? +++ ++ return { compare(action, expectedActions, done) { assertions.toDispatchActions(action, expectedAc...
28
0.518519
18
10
7fc4a8d2a12100bae9b2ddb5c0b08fbfd94091f2
dataproperty/_container.py
dataproperty/_container.py
''' @author: Tsuyoshi Hombashi ''' class MinMaxContainer(object): @property def min_value(self): return self.__min_value @property def max_value(self): return self.__max_value def __init__(self, value_list=[]): self.__min_value = None self.__max_value = None ...
''' @author: Tsuyoshi Hombashi ''' class MinMaxContainer(object): @property def min_value(self): return self.__min_value @property def max_value(self): return self.__max_value def __init__(self, value_list=[]): self.__min_value = None self.__max_value = None ...
Add __eq__, __ne__, __contains__ methods
Add __eq__, __ne__, __contains__ methods
Python
mit
thombashi/DataProperty
python
## Code Before: ''' @author: Tsuyoshi Hombashi ''' class MinMaxContainer(object): @property def min_value(self): return self.__min_value @property def max_value(self): return self.__max_value def __init__(self, value_list=[]): self.__min_value = None self.__max_...
''' @author: Tsuyoshi Hombashi ''' class MinMaxContainer(object): @property def min_value(self): return self.__min_value @property def max_value(self): return self.__max_value def __init__(self, value_list=[]): self.__min_value = None...
15
0.3125
15
0
59935c54b9b00dd15f47044517d13dabc78f0019
.github/workflows/mac_os.yml
.github/workflows/mac_os.yml
name: ci-mac-os # We want to run CI on all pull requests. Additionally, Bors needs workflows to # run on the `staging` and `trying` branches. on: pull_request: push: branches: - staging - trying jobs: ci-mac-os: runs-on: macos-10.15 steps: # Clones a single commit from the libtoc...
name: ci-mac-os # We want to run CI on all pull requests. Additionally, Bors needs workflows to # run on the `staging` and `trying` branches. on: pull_request: push: branches: - staging - trying jobs: ci-mac-os: runs-on: macos-10.15 steps: # Clones a single commit from the libtoc...
Trim down the Mac OS CI to just a `cargo build` on libtock_runtime.
Trim down the Mac OS CI to just a `cargo build` on libtock_runtime. The Mac runner took over 1 hour 15 minutes to build QEMU (and it didn't even succeed), so I don't think running `make setup` on Mac OS is reasonable. Shrink its test to `cargo build -p libtock_runtime`, which should be relatively simple and test the m...
YAML
apache-2.0
tock/libtock-rs
yaml
## Code Before: name: ci-mac-os # We want to run CI on all pull requests. Additionally, Bors needs workflows to # run on the `staging` and `trying` branches. on: pull_request: push: branches: - staging - trying jobs: ci-mac-os: runs-on: macos-10.15 steps: # Clones a single commit...
name: ci-mac-os # We want to run CI on all pull requests. Additionally, Bors needs workflows to # run on the `staging` and `trying` branches. on: pull_request: push: branches: - staging - trying jobs: ci-mac-os: runs-on: macos-10.15 steps: # Cl...
4
0.105263
2
2
3184cc30ddca764973e772aaffed7429865fbef9
src/index.js
src/index.js
const http = require('http'); const jsdom = require('jsdom'); const jQuery = require('jquery'); const Router = require('./router/index'); const body = require('./body/index'); /** * The jQuerate Class * * Patches the emitter and listen handler * to allow max jQuery gainz */ class Yttrium { constructor(options) ...
const http = require('http'); const jsdom = require('jsdom'); const jQuery = require('jquery'); const Router = require('./router/index'); const body = require('./body/index'); /** * The jQuerate Class * * Patches the emitter and listen handler * to allow max jQuery gainz */ class Yttrium { constructor(options) ...
Remove unnecessary IIFE from Y class
Remove unnecessary IIFE from Y class
JavaScript
mit
YttriumJS/yttrium-server
javascript
## Code Before: const http = require('http'); const jsdom = require('jsdom'); const jQuery = require('jquery'); const Router = require('./router/index'); const body = require('./body/index'); /** * The jQuerate Class * * Patches the emitter and listen handler * to allow max jQuery gainz */ class Yttrium { const...
const http = require('http'); const jsdom = require('jsdom'); const jQuery = require('jquery'); const Router = require('./router/index'); const body = require('./body/index'); /** * The jQuerate Class * * Patches the emitter and listen handler * to allow max jQuery gainz */ class Yttrium...
21
0.488372
9
12
53309e588ae23a85ad1839d2a5412c9381e6f80a
README.md
README.md
[liburi](https://github.com/nevali/liburi) is a simple interface for parsing URIs. Under the hood, the actual URI parsing is handled by [uriparser](http://uriparser.sourceforge.net/) -- liburi aims to provide an API which is easier to work with than uriparser's. liburi provides: * The ability to parse [IRIs](http://t...
[liburi](https://github.com/nevali/liburi) is a simple interface for parsing URIs. Under the hood, the actual URI parsing is handled by [uriparser](http://uriparser.sourceforge.net/) -- liburi aims to provide an API which is easier to work with than uriparser's. liburi provides: * The ability to parse [IRIs](http://t...
Add "building from git" section
Add "building from git" section
Markdown
apache-2.0
nevali/liburi,dxq-git/liburi,bbcarchdev/liburi,dxq-git/liburi
markdown
## Code Before: [liburi](https://github.com/nevali/liburi) is a simple interface for parsing URIs. Under the hood, the actual URI parsing is handled by [uriparser](http://uriparser.sourceforge.net/) -- liburi aims to provide an API which is easier to work with than uriparser's. liburi provides: * The ability to parse...
[liburi](https://github.com/nevali/liburi) is a simple interface for parsing URIs. Under the hood, the actual URI parsing is handled by [uriparser](http://uriparser.sourceforge.net/) -- liburi aims to provide an API which is easier to work with than uriparser's. liburi provides: * The ability to parse...
14
1.076923
14
0
676d1f0571f7df6fd587651c5367e6968bf08e09
utils/db.js
utils/db.js
import mongoose from 'mongoose' import grid from 'gridfs-stream' import { log } from './' const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName, { user: proc...
import mongoose from 'mongoose' import grid from 'gridfs-stream' import { log } from './' const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName, { user: proc...
Fix - Mongoose Promise Deprecation warning
Fix - Mongoose Promise Deprecation warning
JavaScript
mit
kunni80/server
javascript
## Code Before: import mongoose from 'mongoose' import grid from 'gridfs-stream' import { log } from './' const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbName...
import mongoose from 'mongoose' import grid from 'gridfs-stream' import { log } from './' const dbHost = process.env.DB_HOST || 'localhost' const dbName = process.env.DB_NAME || 'muffin' // Connect to DB using the credentials set in the ".env" file mongoose.connect('mongodb://' + dbHost + '/' + dbNa...
2
0.055556
2
0
53324d7433b663423ce3672b0c4808e17a174919
tasks/addBanner.js
tasks/addBanner.js
let banner = require('add-banner'); let fs = require('fs'); let path = require('path'); const buildFolder = './build/'; function appendBanner(directory) { let files = fs.readdirSync(directory); for (let i = 0; i < files.length; ++i) { let stat = fs.statSync(directory + files[i]); i...
let banner = require('add-banner'); let fs = require('fs'); let path = require('path'); const buildFolder = './build/'; function appendBanner(directory) { let files = fs.readdirSync(directory); for (let i = 0; i < files.length; ++i) { let stat = fs.statSync(directory + files[i]); i...
Update options key to match updated package
fix: Update options key to match updated package
JavaScript
mit
fosenutvikling/fuhttp-ts,fosenutvikling/fuhttp-ts
javascript
## Code Before: let banner = require('add-banner'); let fs = require('fs'); let path = require('path'); const buildFolder = './build/'; function appendBanner(directory) { let files = fs.readdirSync(directory); for (let i = 0; i < files.length; ++i) { let stat = fs.statSync(directory + files[i]); ...
let banner = require('add-banner'); let fs = require('fs'); let path = require('path'); const buildFolder = './build/'; function appendBanner(directory) { let files = fs.readdirSync(directory); for (let i = 0; i < files.length; ++i) { let stat = fs.statSync(directory + files[i]); ...
8
0.242424
4
4
a45d5b16fe896c216622f429e0af95eb141f485b
web/src/main/ember/app/serializers/application.js
web/src/main/ember/app/serializers/application.js
import Ember from 'ember'; import DS from 'ember-data'; // Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html export default DS.RESTSerializer.extend({ serializeIntoHash: function(hash, type, record, options) { var serialized = this.serialize(record, options); ...
import Ember from 'ember'; import DS from 'ember-data'; // Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html export default DS.RESTSerializer.extend({ serializeIntoHash: function(hash, type, record, options) { var serialized = this.serialize(record, options); ...
Fix serializer to keep 'false' values
Fix serializer to keep 'false' values
JavaScript
agpl-3.0
MarSik/shelves,MarSik/shelves,MarSik/shelves,MarSik/shelves
javascript
## Code Before: import Ember from 'ember'; import DS from 'ember-data'; // Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html export default DS.RESTSerializer.extend({ serializeIntoHash: function(hash, type, record, options) { var serialized = this.serialize(reco...
import Ember from 'ember'; import DS from 'ember-data'; // Adapted from http://springember.blogspot.com.au/2014/08/using-ember-data-restadapter-with.html export default DS.RESTSerializer.extend({ serializeIntoHash: function(hash, type, record, options) { var serialized = this.serialize(record...
2
0.051282
1
1
2d57b170bc65d64bc3e18779b826d08578162509
app/controllers/service_types_controller.rb
app/controllers/service_types_controller.rb
class ServiceTypesController < ApplicationController # Used to supply valid service type names to the service upload page. # Authentication by default inherited from ApplicationController. before_action :authorize_for_districtwide_access_admin, only: [:is_service_working] def authorize_for_districtwide_acces...
class ServiceTypesController < ApplicationController # Used to supply valid service type names to the service upload page. # Authentication by default inherited from ApplicationController. before_action :authorize_for_districtwide_access_admin, except: [:index] def authorize_for_districtwide_access_admin ...
Make sure JSON endpoint auth is restricted to districtwide access users only
Make sure JSON endpoint auth is restricted to districtwide access users only
Ruby
mit
studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights
ruby
## Code Before: class ServiceTypesController < ApplicationController # Used to supply valid service type names to the service upload page. # Authentication by default inherited from ApplicationController. before_action :authorize_for_districtwide_access_admin, only: [:is_service_working] def authorize_for_di...
class ServiceTypesController < ApplicationController # Used to supply valid service type names to the service upload page. # Authentication by default inherited from ApplicationController. - before_action :authorize_for_districtwide_access_admin, only: [:is_service_working] ? ...
2
0.05
1
1
1d59714c204045aaedd18669d72c1bb8eb04c414
CHANGES.md
CHANGES.md
* Update version of angular to 1.2.3 * List dependencies on angular and pouchdb latest explicitly. # v. 0.1.3 * Add a `pouch-repeat` directive, to traverse all elements in a collection. * Add support for sorting in `pouch-repeat`. # v. 0.1.4 * Add support for inserting new elements into exactly the right position,...
* Fixes for PouchDB 2.0 * Upgrade bower dependency to 2.1.0 # v. 0.1.4 * Add support for inserting new elements into exactly the right position, based on your sort order. * Using ngAnimate to add, remove and move elements. * Switching to PouchDB 2.0 # v. 0.1.3 * Add a `pouch-repeat` directive, to traverse all elem...
Change the order of the version in the change log. Most recent is up now.
Change the order of the version in the change log. Most recent is up now.
Markdown
mit
trgpwild/angular-pouchdb,wspringer/angular-pouchdb,sajeetharan/angular-pouchdb
markdown
## Code Before: * Update version of angular to 1.2.3 * List dependencies on angular and pouchdb latest explicitly. # v. 0.1.3 * Add a `pouch-repeat` directive, to traverse all elements in a collection. * Add support for sorting in `pouch-repeat`. # v. 0.1.4 * Add support for inserting new elements into exactly the...
+ * Fixes for PouchDB 2.0 + * Upgrade bower dependency to 2.1.0 - * Update version of angular to 1.2.3 - * List dependencies on angular and pouchdb latest explicitly. - - # v. 0.1.3 - - * Add a `pouch-repeat` directive, to traverse all elements in a collection. - * Add support for sorting in `pouch-repeat`. #...
20
0.869565
10
10
8983942fc2db3d843374c350b9a44cd7a5928841
lib/generators/stripe_webhooks/callback_generator.rb
lib/generators/stripe_webhooks/callback_generator.rb
require 'generators/stripe_webhooks' module StripeWebhooks module Generators class CallbackGenerator < Base desc 'Creates a stripe webhook callback object' argument :event_types, type: :array, default: [], banner: 'event.type.a event.type.b ...' source_root File.expand_path('../templates', __F...
require 'generators/stripe_webhooks' module StripeWebhooks module Generators class CallbackGenerator < Base desc 'Creates a stripe webhook callback object' argument :event_types, type: :array, default: [], banner: 'event.type.a event.type.b ...' source_root File.expand_path('../templates', __F...
Fix issue in generator where RSpec.configuration is nil
Fix issue in generator where RSpec.configuration is nil
Ruby
mit
westlakedesign/stripe_webhooks,westlakedesign/stripe_webhooks,westlakedesign/stripe_webhooks
ruby
## Code Before: require 'generators/stripe_webhooks' module StripeWebhooks module Generators class CallbackGenerator < Base desc 'Creates a stripe webhook callback object' argument :event_types, type: :array, default: [], banner: 'event.type.a event.type.b ...' source_root File.expand_path('.....
require 'generators/stripe_webhooks' module StripeWebhooks module Generators class CallbackGenerator < Base desc 'Creates a stripe webhook callback object' argument :event_types, type: :array, default: [], banner: 'event.type.a event.type.b ...' source_root File.expand_path('...
4
0.153846
2
2
4991ef381e68ef91d9da1af10d0160d607ff9620
.travis.yml
.travis.yml
language: objective-c xcode_project: RNCryptor.xcodeproj xcode_scheme: RNCryptor xcode_sdk: iphonesimulator7.0 xcode_sdk: iphonesimulator5.0 matrix: include: - xcode_scheme: "RNCryptor OS X" xcode_sdk: macosx10.9 - xcode_scheme: "RNCryptor OS X" xcode_sdk: macosx10.8 before_install: - git sub...
language: objective-c before_install: - git submodule update --init --recursive script: - xctool -project RNCryptor.xcodeproj -scheme RNCryptor -sdk iphonesimulator5.0 build test - xctool -project RNCryptor.xcodeproj -scheme RNCryptor -sdk iphonesimulator7.0 build test - xctool -project RNCryptor.xcodeproj -...
Switch to individual scripts to handle build vs test
Switch to individual scripts to handle build vs test
YAML
mit
RNCryptor/RNCryptor,RNCryptor/RNCryptor
yaml
## Code Before: language: objective-c xcode_project: RNCryptor.xcodeproj xcode_scheme: RNCryptor xcode_sdk: iphonesimulator7.0 xcode_sdk: iphonesimulator5.0 matrix: include: - xcode_scheme: "RNCryptor OS X" xcode_sdk: macosx10.9 - xcode_scheme: "RNCryptor OS X" xcode_sdk: macosx10.8 before_inst...
language: objective-c - xcode_project: RNCryptor.xcodeproj - - xcode_scheme: RNCryptor - xcode_sdk: iphonesimulator7.0 - xcode_sdk: iphonesimulator5.0 - - matrix: - include: - - xcode_scheme: "RNCryptor OS X" - xcode_sdk: macosx10.9 - - xcode_scheme: "RNCryptor OS X" - xcode_sdk: macosx10.8 ...
18
1.125
6
12
f73618b763c1bdfdacc35193d2f0613b3f956b59
Command/DumpCommand.php
Command/DumpCommand.php
<?php namespace Padam87\CronBundle\Command; use Doctrine\Common\Annotations\AnnotationReader; use Padam87\CronBundle\Util\Helper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DumpCommand extends ConfigurationAwareCommand { /** * {@inheritdoc...
<?php namespace Padam87\CronBundle\Command; use Doctrine\Common\Annotations\AnnotationReader; use Padam87\CronBundle\Util\Helper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DumpCommand extends ConfigurationAwareCommand { /** * {@inheritdoc...
Use the exit code constant
Use the exit code constant
PHP
mit
Padam87/CronBundle
php
## Code Before: <?php namespace Padam87\CronBundle\Command; use Doctrine\Common\Annotations\AnnotationReader; use Padam87\CronBundle\Util\Helper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DumpCommand extends ConfigurationAwareCommand { /** ...
<?php namespace Padam87\CronBundle\Command; use Doctrine\Common\Annotations\AnnotationReader; use Padam87\CronBundle\Util\Helper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class DumpCommand extends ConfigurationAwareCommand { ...
2
0.037736
1
1
850327b68ab30e9fe0b788eadbfc1e2a4044d006
docs/guide/events/intro.rst
docs/guide/events/intro.rst
Event types ----------- Following event types are emitted by NodeConductor. .. include:: events/backup.rst .. include:: events/iaas.rst .. include:: events/core.rst .. include:: events/structure.rst .. include:: events/template.rst
Event types ----------- Following event types are emitted by NodeConductor. .. include:: events/backup.rst .. include:: events/iaas.rst .. include:: events/core.rst .. include:: events/structure.rst .. include:: events/template.rst .. include:: events/invoices.rst
Include invoice docs in index
Include invoice docs in index
reStructuredText
mit
opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor
restructuredtext
## Code Before: Event types ----------- Following event types are emitted by NodeConductor. .. include:: events/backup.rst .. include:: events/iaas.rst .. include:: events/core.rst .. include:: events/structure.rst .. include:: events/template.rst ## Instruction: Include invoice docs in index ## Code After: Event ty...
Event types ----------- Following event types are emitted by NodeConductor. .. include:: events/backup.rst .. include:: events/iaas.rst .. include:: events/core.rst .. include:: events/structure.rst .. include:: events/template.rst + .. include:: events/invoices.rst
1
0.1
1
0
4fddde8855ef6a9230c0750177efd813e2406fd3
config/initializers/params_parsers.rb
config/initializers/params_parsers.rb
ActionDispatch::Request.parameter_parsers = ActionDispatch::Request.parameter_parsers.merge( Mime[:json].symbol => -> (raw_post) { ::JSON.parse(raw_post).tap do |res| begin unless Hash === res or Array === res raise StandardError.new "Expecting a hash or array" end rescue ...
ActionDispatch::Request.parameter_parsers = ActionDispatch::Request.parameter_parsers.merge( Mime[:json].symbol => -> (raw_post) { ::JSON.parse(raw_post).tap do |res| begin unless Hash === res or Array === res raise StandardError.new "Expecting a hash or array" end rescue ...
Change error to new Rails error type
Change error to new Rails error type
Ruby
mit
kif-ev/oskiosk-server,kif-ev/oskiosk-server
ruby
## Code Before: ActionDispatch::Request.parameter_parsers = ActionDispatch::Request.parameter_parsers.merge( Mime[:json].symbol => -> (raw_post) { ::JSON.parse(raw_post).tap do |res| begin unless Hash === res or Array === res raise StandardError.new "Expecting a hash or array" end ...
ActionDispatch::Request.parameter_parsers = ActionDispatch::Request.parameter_parsers.merge( Mime[:json].symbol => -> (raw_post) { ::JSON.parse(raw_post).tap do |res| begin unless Hash === res or Array === res raise StandardError.new "Expecting a hash or array" end ...
4
0.1
2
2
6fe20a5c021fb0cf6faca7fb7a9867007869d2ad
akonadi/agents/CMakeLists.txt
akonadi/agents/CMakeLists.txt
add_subdirectory( mailthreader ) add_subdirectory( strigifeeder ) if( Nepomuk_FOUND AND NOT Q_WS_MAC ) #The following code to compute SOPRANO_PLUGIN_RAPTORPARSER_FOUND is lifted #from KDE4.2's FindSoprano.cmake. We have this code here for backwards #compatibility, and can be removed sometime after KDE 4.3 is re...
add_subdirectory( strigifeeder ) if( Nepomuk_FOUND AND NOT Q_WS_MAC ) #The following code to compute SOPRANO_PLUGIN_RAPTORPARSER_FOUND is lifted #from KDE4.2's FindSoprano.cmake. We have this code here for backwards #compatibility, and can be removed sometime after KDE 4.3 is released. find_path(_PLUGIN_DIR ...
Remove mailthreader from CMake file.
Remove mailthreader from CMake file. svn path=/trunk/KDE/kdepim/; revision=979954
Text
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
text
## Code Before: add_subdirectory( mailthreader ) add_subdirectory( strigifeeder ) if( Nepomuk_FOUND AND NOT Q_WS_MAC ) #The following code to compute SOPRANO_PLUGIN_RAPTORPARSER_FOUND is lifted #from KDE4.2's FindSoprano.cmake. We have this code here for backwards #compatibility, and can be removed sometime aft...
- add_subdirectory( mailthreader ) add_subdirectory( strigifeeder ) if( Nepomuk_FOUND AND NOT Q_WS_MAC ) #The following code to compute SOPRANO_PLUGIN_RAPTORPARSER_FOUND is lifted #from KDE4.2's FindSoprano.cmake. We have this code here for backwards #compatibility, and can be removed sometime aft...
1
0.034483
0
1
ca88057f1a5ccb841e8a3820ef2a229e433d285c
config/software/oc-chef-pedant.rb
config/software/oc-chef-pedant.rb
name "oc-chef-pedant" default_version "1.0.47.1" dependency "ruby" dependency "bundler" dependency "rsync" source :git => "git@github.com:opscode/oc-chef-pedant.git" relative_path "oc-chef-pedant" bundle_path = "#{install_dir}/embedded/service/gem" build do bundle "install --path=#{bundle_path}" command "mkdir...
name "oc-chef-pedant" default_version "dt/remove_focus" dependency "ruby" dependency "bundler" dependency "rsync" source :git => "git@github.com:opscode/oc-chef-pedant.git" relative_path "oc-chef-pedant" bundle_path = "#{install_dir}/embedded/service/gem" build do bundle "install --path=#{bundle_path}" command...
Change branch of oc-chef-pedand to dt/remove_focus
Change branch of oc-chef-pedand to dt/remove_focus
Ruby
apache-2.0
charlesjohnson/chef-server,marcparadise/chef-server,chef/opscode-omnibus,rmoorman/chef-server,charlesjohnson/chef-server,stephenbm/chef-server,charlesjohnson/chef-server,itmustbejj/chef-server,rmoorman/chef-server,stephenbm/chef-server,charlesjohnson/chef-server,poliva83/chef-server,Minerapp/chef-server,marcparadise/ch...
ruby
## Code Before: name "oc-chef-pedant" default_version "1.0.47.1" dependency "ruby" dependency "bundler" dependency "rsync" source :git => "git@github.com:opscode/oc-chef-pedant.git" relative_path "oc-chef-pedant" bundle_path = "#{install_dir}/embedded/service/gem" build do bundle "install --path=#{bundle_path}" ...
name "oc-chef-pedant" - default_version "1.0.47.1" + default_version "dt/remove_focus" dependency "ruby" dependency "bundler" dependency "rsync" source :git => "git@github.com:opscode/oc-chef-pedant.git" relative_path "oc-chef-pedant" bundle_path = "#{install_dir}/embedded/service/gem" bu...
2
0.090909
1
1
ad1345eb948895e73360937e9a037811a2d1573b
g3doc/_toc.yaml
g3doc/_toc.yaml
toc: - title: "Improving Model Quality" path: /tfx/guide/tfma - title: "Install" path: /tfx/model_analysis/install - title: "Get started" path: /tfx/model_analysis/get_started - title: "Setup" path: /tfx/model_analysis/setup - title: "Metrics and Plots" path: /tfx/model_analysis/metrics - title: "Visualizatio...
toc: - title: "Improving Model Quality" path: /tfx/guide/tfma - title: "Install" path: /tfx/model_analysis/install - title: "Get started" path: /tfx/model_analysis/get_started - title: "Setup" path: /tfx/model_analysis/setup - title: "Metrics and Plots" path: /tfx/model_analysis/metrics - title: "Visualizatio...
Fix paths to Pandas case study
Fix paths to Pandas case study PiperOrigin-RevId: 367696749
YAML
apache-2.0
tensorflow/model-analysis,tensorflow/model-analysis,tensorflow/model-analysis,tensorflow/model-analysis
yaml
## Code Before: toc: - title: "Improving Model Quality" path: /tfx/guide/tfma - title: "Install" path: /tfx/model_analysis/install - title: "Get started" path: /tfx/model_analysis/get_started - title: "Setup" path: /tfx/model_analysis/setup - title: "Metrics and Plots" path: /tfx/model_analysis/metrics - titl...
toc: - title: "Improving Model Quality" path: /tfx/guide/tfma - title: "Install" path: /tfx/model_analysis/install - title: "Get started" path: /tfx/model_analysis/get_started - title: "Setup" path: /tfx/model_analysis/setup - title: "Metrics and Plots" path: /tfx/model_analysis/metrics ...
2
0.086957
1
1
ab86365fc892d434423f9dae80c4b64d7e8261ea
README.md
README.md
ActionSendGridview ==================
Standalone widget for retrieving and displaying the action_SEND intents on the user's device. - Allows you to set the message/subject/url that will be sent. - Allows you to set a precedence list so that you can determine the precedence in which intents will be shown. - Initially shows 6 intents with a 'Mor...
Update with description, instructions, license
Update with description, instructions, license
Markdown
apache-2.0
urbancups/action-send-gridview
markdown
## Code Before: ActionSendGridview ================== ## Instruction: Update with description, instructions, license ## Code After: Standalone widget for retrieving and displaying the action_SEND intents on the user's device. - Allows you to set the message/subject/url that will be sent. - Allows you to set ...
- ActionSendGridview - ================== + + Standalone widget for retrieving and displaying the action_SEND intents on the user's device. + + - Allows you to set the message/subject/url that will be sent. + + - Allows you to set a precedence list so that you can determine the precedence in which intents wil...
88
44
86
2
c7ff2da3b45de66a7d4af0e5f0d173adfff221e8
Testing/Code/_TDD.cpp
Testing/Code/_TDD.cpp
// BTK error messages are not displayed #define TDD_SILENT_CERR int main() { #if defined(TDD_SILENT_CERR) std::streambuf* standardErrorOutput = std::cerr.rdbuf(0); #endif int err = CxxTest::ErrorPrinter().run(); #if defined(TDD_SILENT_CERR) std::cerr.rdbuf(standardErrorOutput); #endif return err; }; #in...
// BTK error messages are not displayed #define TDD_SILENT_CERR int main() { #if defined(TDD_SILENT_CERR) btk::Logger::SetVerboseMode(btk::Logger::Quiet); #endif return CxxTest::ErrorPrinter().run();; }; #include <cxxtest/Root.cpp>
Use of the command btk::Logger::SetVerbose instead of setting the stream buffer of std::cerr to null when the symbol TDD_SILENT_CERR is defined.
[UPD] Use of the command btk::Logger::SetVerbose instead of setting the stream buffer of std::cerr to null when the symbol TDD_SILENT_CERR is defined.
C++
bsd-3-clause
letaureau/b-tk.core,letaureau/b-tk.core,Biomechanical-ToolKit/BTKCore,xyproto/b-tk.core,letaureau/b-tk.core,letaureau/b-tk.core,xyproto/b-tk.core,xyproto/b-tk.core,xyproto/b-tk.core,Biomechanical-ToolKit/BTKCore,Biomechanical-ToolKit/BTKCore,letaureau/b-tk.core,Biomechanical-ToolKit/BTKCore,xyproto/b-tk.core,letaureau/...
c++
## Code Before: // BTK error messages are not displayed #define TDD_SILENT_CERR int main() { #if defined(TDD_SILENT_CERR) std::streambuf* standardErrorOutput = std::cerr.rdbuf(0); #endif int err = CxxTest::ErrorPrinter().run(); #if defined(TDD_SILENT_CERR) std::cerr.rdbuf(standardErrorOutput); #endif ret...
// BTK error messages are not displayed #define TDD_SILENT_CERR int main() { #if defined(TDD_SILENT_CERR) - std::streambuf* standardErrorOutput = std::cerr.rdbuf(0); + btk::Logger::SetVerboseMode(btk::Logger::Quiet); #endif - - int err = CxxTest::ErrorPrinter().run(); ? ^ ------- + return ...
11
0.55
2
9
7c7cbec79f8a4fd3256155c60176009ce2a9bc0b
test/index.html
test/index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>BlueMath Tests</title> <script src="../build/bluemath-test.js"></script> <script src="../node_modules/qunitjs/qunit/qunit.js"></script> <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" /> <style> select { f...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>BlueMath Tests</title> <script src="../build/bluemath-test.js"></script> <script src="../node_modules/qunitjs/qunit/qunit.js"></script> <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" /> <style> </style> </head> <...
Remove obsolete html and css
Remove obsolete html and css
HTML
apache-2.0
bluemathsoft/bluemath,bluemathsoft/bluemath,bluemathsoft/bluemath,bluemathsoft/bluemath
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>BlueMath Tests</title> <script src="../build/bluemath-test.js"></script> <script src="../node_modules/qunitjs/qunit/qunit.js"></script> <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" /> <style> ...
<!DOCTYPE html> <html lang="en"> - <head> <meta charset="UTF-8"> <title>BlueMath Tests</title> <script src="../build/bluemath-test.js"></script> <script src="../node_modules/qunitjs/qunit/qunit.js"></script> <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" /> <style> ...
25
0.609756
0
25
de154a6d314a46eeaef7dec0a51148b1578e4af4
app/controllers/api/v1/contests_controller.rb
app/controllers/api/v1/contests_controller.rb
module Api::V1 class ContestsController < Api::ApiController def index contests = Contest.order("begins DESC") if params[:current_only] == "1" contests = contests.current end if timetable_filter = params[:timetables_public] filter_value = timetable_filter == "1" ? true : ...
module Api::V1 class ContestsController < Api::ApiController def index contests = Contest.includes(:host).order("begins DESC") if params[:current_only] == "1" contests = contests.current end if timetable_filter = params[:timetables_public] filter_value = timetable_filter ...
Reduce n+1 queries for API /contests response
Reduce n+1 queries for API /contests response
Ruby
mit
richeterre/jumubase-rails,richeterre/jumubase-rails,richeterre/jumubase-rails
ruby
## Code Before: module Api::V1 class ContestsController < Api::ApiController def index contests = Contest.order("begins DESC") if params[:current_only] == "1" contests = contests.current end if timetable_filter = params[:timetables_public] filter_value = timetable_filter ...
module Api::V1 class ContestsController < Api::ApiController def index - contests = Contest.order("begins DESC") + contests = Contest.includes(:host).order("begins DESC") ? ++++++++++++++++ if params[:current_only] == "1" contests = contests.current...
2
0.111111
1
1
3ff5fe2e7a9b530bdfca3b8703a5ec70d9d48978
.travis.yml
.travis.yml
language: ruby rvm: - 1.9.3 - 2.1.3 - jruby-1.7.18 jdk: - oraclejdk7 - openjdk7 matrix: exclude: - rvm: 1.9.3 jdk: openjdk7 - rvm: 2.1.3 jdk: openjdk7 notifications: email: - mflorisson@gmail.com - ldonnet@cityway.fr - metienne@cityway.fr - zbouziane@cityway.fr be...
language: ruby rvm: - 1.9.3 - 2.1.3 - jruby-1.7.18 jdk: - oraclejdk7 - openjdk7 matrix: exclude: - rvm: 1.9.3 jdk: openjdk7 - rvm: 2.1.3 jdk: openjdk7 notifications: email: - mflorisson@gmail.com - bruno@atnos.com - metienne@cityway.fr - zbouziane@cityway.fr befor...
Add Bruno email to Travis
Add Bruno email to Travis
YAML
mit
afimb/ninoxe,afimb/ninoxe,afimb/ninoxe
yaml
## Code Before: language: ruby rvm: - 1.9.3 - 2.1.3 - jruby-1.7.18 jdk: - oraclejdk7 - openjdk7 matrix: exclude: - rvm: 1.9.3 jdk: openjdk7 - rvm: 2.1.3 jdk: openjdk7 notifications: email: - mflorisson@gmail.com - ldonnet@cityway.fr - metienne@cityway.fr - zbouziane@cit...
language: ruby rvm: - 1.9.3 - 2.1.3 - jruby-1.7.18 jdk: - oraclejdk7 - openjdk7 matrix: exclude: - rvm: 1.9.3 jdk: openjdk7 - rvm: 2.1.3 jdk: openjdk7 notifications: email: - mflorisson@gmail.com - - ldonnet@cityway.fr + - bruno@atnos.com ...
2
0.08
1
1
76786bdd11eac589bdaeb9a8cea5dcacaf613225
.pre-commit-config.yaml
.pre-commit-config.yaml
repos: - repo: https://github.com/psf/black rev: 19.3b0 hooks: - id: black
repos: - repo: https://github.com/psf/black rev: 19.10b0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs rev: v1.4.0 hooks: - id: blacken-docs
Update black in pre-commit and add blacken-docs.
Update black in pre-commit and add blacken-docs.
YAML
mit
jaraco/portend,jaraco/jaraco.path,jaraco/zipp,hugovk/inflect.py,yougov/pmxbot,jaraco/jaraco.stream,python/importlib_metadata,jaraco/tempora,jaraco/jaraco.logging,jaraco/jaraco.collections,jaraco/irc,jaraco/hgtools,jaraco/keyring,jaraco/jaraco.functools,yougov/pmxbot,jaraco/jaraco.text,pytest-dev/pytest-runner,jaraco/ba...
yaml
## Code Before: repos: - repo: https://github.com/psf/black rev: 19.3b0 hooks: - id: black ## Instruction: Update black in pre-commit and add blacken-docs. ## Code After: repos: - repo: https://github.com/psf/black rev: 19.10b0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs rev: v1...
repos: - repo: https://github.com/psf/black - rev: 19.3b0 ? ^ + rev: 19.10b0 ? ^^ hooks: - id: black + + - repo: https://github.com/asottile/blacken-docs + rev: v1.4.0 + hooks: + - id: blacken-docs
7
1.4
6
1
a261846c7796da45de52f3bf61dc1cb7c6a03c7e
app/home/home.html
app/home/home.html
<!-- htmlhint doctype-first:false --> <div id="top-nav" class="navbar navbar-inverse navbar-static-top"> <div class="container-fluid"> <div class="navbar-header"> <a href class="navbar-brand" ui-sref="home.map">FDA Food Recalls</a> </div> </div> </div> <div class="container-fluid"> <div class="r...
<!-- htmlhint doctype-first:false --> <div id="top-nav" class="navbar navbar-inverse navbar-static-top"> <div class="container-fluid"> <div class="navbar-header"> <a href class="navbar-brand" ui-sref="home.map">FDA Food Recalls</a> </div> </div> </div> <div class="container-fluid"> <div class="r...
Change status message at top of page to be inset of page and not edge to edge
Change status message at top of page to be inset of page and not edge to edge
HTML
mit
StrictlyBusiness/fda-food-recalls,StrictlyBusiness/fda-food-recalls
html
## Code Before: <!-- htmlhint doctype-first:false --> <div id="top-nav" class="navbar navbar-inverse navbar-static-top"> <div class="container-fluid"> <div class="navbar-header"> <a href class="navbar-brand" ui-sref="home.map">FDA Food Recalls</a> </div> </div> </div> <div class="container-fluid">...
<!-- htmlhint doctype-first:false --> <div id="top-nav" class="navbar navbar-inverse navbar-static-top"> <div class="container-fluid"> <div class="navbar-header"> <a href class="navbar-brand" ui-sref="home.map">FDA Food Recalls</a> </div> </div> </div> <div class="contain...
22
0.758621
12
10
c2ebd0311d15ebc266971d0f9dbd90c6b4c46e56
api.json
api.json
{ "version": "3.2.0", "methods": [ "addStickerToSet", "answerCallbackQuery", "answerInlineQuery", "answerPreCheckoutQuery", "answerShippingQuery", "createNewStickerSet", "deleteChatPhoto", "deleteMessage", "deleteStickerFromSet", "d...
{ "version": "3.4.0", "methods": [ "addStickerToSet", "answerCallbackQuery", "answerInlineQuery", "answerPreCheckoutQuery", "answerShippingQuery", "createNewStickerSet", "deleteChatPhoto", "deleteChatStickerSet", "deleteMessage", "d...
Update to 3.4 version. 👷
[API]: Update to 3.4 version. 👷
JSON
mit
telekits/teleapi,nof1000/teleapi
json
## Code Before: { "version": "3.2.0", "methods": [ "addStickerToSet", "answerCallbackQuery", "answerInlineQuery", "answerPreCheckoutQuery", "answerShippingQuery", "createNewStickerSet", "deleteChatPhoto", "deleteMessage", "deleteStickerFrom...
{ - "version": "3.2.0", ? ^ + "version": "3.4.0", ? ^ "methods": [ "addStickerToSet", "answerCallbackQuery", "answerInlineQuery", "answerPreCheckoutQuery", "answerShippingQuery", "createNewStickerSet", ...
6
0.103448
5
1
0ca5a857940312ac7fd76955af64fe061b0856a0
.travis.yml
.travis.yml
language: cpp compiler: - gcc - clang before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'; fi - sudo apt-get update -qq install: - sudo apt-get install liblu...
language: cpp compiler: - gcc - clang before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'; fi - sudo apt-get update -qq install: - sudo apt-get install liblu...
Test if lua can load the library
Test if lua can load the library In addition to compiling the library file, we can also check if lua can load it. This may reveal linker errors such as undefined references.
YAML
mit
tushar2708/color_coded,jeaye/color_coded,tony/color_coded,Hexcles/color_coded,jeaye/color_coded,tony/color_coded,UnrealQuester/color_coded,Hexcles/color_coded,Hexcles/color_coded,UnrealQuester/color_coded,UnrealQuester/color_coded,tony/color_coded,tushar2708/color_coded,jeaye/color_coded,tushar2708/color_coded,tony/col...
yaml
## Code Before: language: cpp compiler: - gcc - clang before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'; fi - sudo apt-get update -qq install: - sudo apt-g...
language: cpp compiler: - gcc - clang before_install: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main'; fi - sudo apt-get update -qq install: - - sudo a...
6
0.4
4
2
3dd695292838bc3a80bf83c77f837ce6c64e54e3
README.md
README.md
This project explores patterns and 3rd party webchat implementations. It implements prototypes which are copies of real pages and services on [GOV.UK](https://www.gov.uk), with added webchat support flows and call to actions. Prior art: [webchat-prototype](https://github.com/alphagov/webchat-prototype) ## Building a...
This project is for doing user research around emails and text messages. It implements prototypes which are copies of real pages and services on [GOV.UK](https://www.gov.uk), with added email/text message flows and call to actions, powered by the GOV.UK Notify API. Based on: [webchat-prototype](https://github.com/alp...
Update readme to not talk about webchat
Update readme to not talk about webchat
Markdown
mit
quis/notify-public-research-prototype,quis/notify-public-research-prototype,quis/notify-public-research-prototype
markdown
## Code Before: This project explores patterns and 3rd party webchat implementations. It implements prototypes which are copies of real pages and services on [GOV.UK](https://www.gov.uk), with added webchat support flows and call to actions. Prior art: [webchat-prototype](https://github.com/alphagov/webchat-prototype...
- This project explores patterns and 3rd party webchat implementations. It implements prototypes which are copies of real pages and services on [GOV.UK](https://www.gov.uk), with added webchat support flows and call to actions. + This project is for doing user research around emails and text messages. + It implement...
14
0.777778
7
7
21c1afeccaf0b54740d4ec93293e24ffb91d9131
config/database.yml
config/database.yml
default: &default adapter: postgresql encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> user: <%= ENV['POSTGRES_USER'] %> host: <%= ENV['POSTGRES_HOST'] %>...
default: &default adapter: postgresql encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> user: <%= ENV['POSTGRES_USER'] %> host: <%= ENV['POSTGRES_HOST'] %>...
Revert "add user and password values to prod"
Revert "add user and password values to prod"
YAML
mit
OperationCode/operationcode_backend,OperationCode/operationcode_backend,OperationCode/operationcode_backend
yaml
## Code Before: default: &default adapter: postgresql encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> user: <%= ENV['POSTGRES_USER'] %> host: <%= ENV['PO...
default: &default adapter: postgresql encoding: unicode # For details on connection pooling, see rails configuration guide # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> user: <%= ENV['POSTGRES_USER'] %> host: <%= ENV['PO...
2
0.083333
0
2
b379ecd03cf8faad81fc2b6e8beede28fa5fecc2
src/cronstrue-i18n.ts
src/cronstrue-i18n.ts
import { ExpressionDescriptor } from "./expressionDescriptor" import { allLocalesLoader } from "./i18n/allLocalesLoader" ExpressionDescriptor.initialize(new allLocalesLoader()); export = ExpressionDescriptor;
import { ExpressionDescriptor } from "./expressionDescriptor" import { allLocalesLoader } from "./i18n/allLocalesLoader" ExpressionDescriptor.initialize(new allLocalesLoader()); export default ExpressionDescriptor; let toString = ExpressionDescriptor.toString; export { toString };
Use named export for 'toString' for i18n version
Use named export for 'toString' for i18n version
TypeScript
mit
bradyholt/cRonstrue,bradyholt/cRonstrue
typescript
## Code Before: import { ExpressionDescriptor } from "./expressionDescriptor" import { allLocalesLoader } from "./i18n/allLocalesLoader" ExpressionDescriptor.initialize(new allLocalesLoader()); export = ExpressionDescriptor; ## Instruction: Use named export for 'toString' for i18n version ## Code After: import { Ex...
import { ExpressionDescriptor } from "./expressionDescriptor" import { allLocalesLoader } from "./i18n/allLocalesLoader" ExpressionDescriptor.initialize(new allLocalesLoader()); + export default ExpressionDescriptor; - export = ExpressionDescriptor; + let toString = ExpressionDescriptor.toString; + export {...
5
0.833333
4
1
5bde41a567063ba0b17b996e0ef8a1f3e8294eed
src/models/rule.js
src/models/rule.js
'use strict' const ElectronConfig = require('electron-config') const storage = new ElectronConfig() const Rules = require('./rules') class Rule { constructor(key) { this.key = key } exists() { return storage.has(this.key) } retrieve() { if (this.exists()) { return storage.get(this.key) ...
'use strict' const ElectronConfig = require('electron-config') const storage = new ElectronConfig() const Rules = require('./rules') class Rule { constructor(key) { this.key = key } exists() { return storage.has(this.key) } retrieve() { if (this.exists()) { return storage.get(this.key) ...
Add delete to Rule model
Add delete to Rule model
JavaScript
mit
cheshire137/gh-notifications-snoozer,cheshire137/gh-notifications-snoozer
javascript
## Code Before: 'use strict' const ElectronConfig = require('electron-config') const storage = new ElectronConfig() const Rules = require('./rules') class Rule { constructor(key) { this.key = key } exists() { return storage.has(this.key) } retrieve() { if (this.exists()) { return storage...
'use strict' const ElectronConfig = require('electron-config') const storage = new ElectronConfig() const Rules = require('./rules') class Rule { constructor(key) { this.key = key } exists() { return storage.has(this.key) } retrieve() { if (this.exists()) { ...
5
0.172414
5
0
bc3abc363813433db504ea4b5ddfebc716232950
lib/cloudflair/api/zone/custom_hostname.rb
lib/cloudflair/api/zone/custom_hostname.rb
require 'cloudflair/entity' module Cloudflair class CustomHostname include Cloudflair::Entity attr_reader :zone_id, :custom_hostname_id deletable true patchable_fields :ssl, :custom_origin_server path 'zones/:zone_id/custom_hostnames/:custom_hostname_id' def initialize(zone_id, custom_hostn...
require 'cloudflair/entity' module Cloudflair class CustomHostname include Cloudflair::Entity attr_reader :zone_id, :custom_hostname_id deletable true patchable_fields :ssl, :custom_origin_server, :custom_metadata path 'zones/:zone_id/custom_hostnames/:custom_hostname_id' def initialize(zon...
Add custom_metadata as patchable field on custom hostname endpoint
Add custom_metadata as patchable field on custom hostname endpoint
Ruby
mit
ninech/cloudflair,ninech/cloudflair
ruby
## Code Before: require 'cloudflair/entity' module Cloudflair class CustomHostname include Cloudflair::Entity attr_reader :zone_id, :custom_hostname_id deletable true patchable_fields :ssl, :custom_origin_server path 'zones/:zone_id/custom_hostnames/:custom_hostname_id' def initialize(zone_...
require 'cloudflair/entity' module Cloudflair class CustomHostname include Cloudflair::Entity attr_reader :zone_id, :custom_hostname_id deletable true - patchable_fields :ssl, :custom_origin_server + patchable_fields :ssl, :custom_origin_server, :custom_metadata ? ...
2
0.117647
1
1
54295bea1ee0c41826482b04d55ac973211c8d74
test/generator/files/generate_cases_test.rb
test/generator/files/generate_cases_test.rb
require_relative '../../test_helper.rb' module Generator module Files class GeneratorCasesTest < Minitest::Test def test_available_returns_exercise_names track_path = 'test/fixtures/xruby' Dir.stub :glob, %w(/alpha_cases.rb hy_phen_ated_cases.rb) do assert_equal %w(alpha hy-phen-a...
require_relative '../../test_helper.rb' module Generator module Files class GeneratorCasesTest < Minitest::Test def test_available_returns_exercise_names track_path = 'test/fixtures/xruby' Dir.stub :glob, %w(/alpha_cases.rb hy_phen_ated_cases.rb) do assert_equal %w(alpha hy-phen-a...
Test that glob is called with expected arguments
Test that glob is called with expected arguments
Ruby
mit
exercism/xruby,Insti/exercism-ruby,NeimadTL/ruby,exercism/xruby,Insti/xruby,Insti/exercism-ruby,Insti/xruby,NeimadTL/ruby,Insti/exercism-ruby,NeimadTL/ruby
ruby
## Code Before: require_relative '../../test_helper.rb' module Generator module Files class GeneratorCasesTest < Minitest::Test def test_available_returns_exercise_names track_path = 'test/fixtures/xruby' Dir.stub :glob, %w(/alpha_cases.rb hy_phen_ated_cases.rb) do assert_equal %w...
require_relative '../../test_helper.rb' module Generator module Files class GeneratorCasesTest < Minitest::Test def test_available_returns_exercise_names track_path = 'test/fixtures/xruby' Dir.stub :glob, %w(/alpha_cases.rb hy_phen_ated_cases.rb) do assert_equal ...
11
0.314286
11
0
517c4a814b13456fa4f00e7e68c7abf4d2def423
tests/PingpongTestCase.php
tests/PingpongTestCase.php
<?php abstract class PingpongTestCase extends \Pingpong\Testing\TestCase { /** * @return string */ public function getBasePath() { return realpath(__DIR__ . '/../fixture'); } /** * @return \Illuminate\Foundation\Application */ public function getApplication() {...
<?php abstract class PingpongTestCase extends \Pingpong\Testing\TestCase { /** * @return string */ public function getBasePath() { return realpath(__DIR__ . '/../fixture'); } /** * @return \Illuminate\Foundation\Application */ public function getApplication() {...
Fix service provider not found
Fix service provider not found
PHP
bsd-3-clause
pingpong-labs/sky,pingpong-labs/sky,pingpong-labs/sky
php
## Code Before: <?php abstract class PingpongTestCase extends \Pingpong\Testing\TestCase { /** * @return string */ public function getBasePath() { return realpath(__DIR__ . '/../fixture'); } /** * @return \Illuminate\Foundation\Application */ public function getApp...
<?php abstract class PingpongTestCase extends \Pingpong\Testing\TestCase { /** * @return string */ public function getBasePath() { return realpath(__DIR__ . '/../fixture'); } /** * @return \Illuminate\Foundation\Application */ public...
2
0.038462
1
1
0575b4345fc21ca537a95866ff2a24d25128c698
readthedocs/config/find.py
readthedocs/config/find.py
"""Helper functions to search files.""" from __future__ import division, print_function, unicode_literals import os import re def find_all(path, filename_regex): """Find all files in ``path`` that match ``filename_regex`` regex.""" path = os.path.abspath(path) for root, dirs, files in os.walk(path, topd...
"""Helper functions to search files.""" from __future__ import division, print_function, unicode_literals import os import re def find_one(path, filename_regex): """Find the first file in ``path`` that match ``filename_regex`` regex.""" _path = os.path.abspath(path) for filename in os.listdir(_path): ...
Remove logic for iterating directories to search for config file
Remove logic for iterating directories to search for config file
Python
mit
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
python
## Code Before: """Helper functions to search files.""" from __future__ import division, print_function, unicode_literals import os import re def find_all(path, filename_regex): """Find all files in ``path`` that match ``filename_regex`` regex.""" path = os.path.abspath(path) for root, dirs, files in os...
"""Helper functions to search files.""" from __future__ import division, print_function, unicode_literals import os import re - def find_all(path, filename_regex): - """Find all files in ``path`` that match ``filename_regex`` regex.""" - path = os.path.abspath(path) - for root, dirs, fil...
17
0.73913
5
12
d49ec1f41fdab63036c83fead714af9408e683ae
lib/secret_santa.rb
lib/secret_santa.rb
class SecretSanta def self.create_list(names) if names.length <= 2 "ERROR: List too short" elsif names.length != names.uniq.length "ERROR: Please enter unique names" else # shuffle names and build lists list = [] digraph_list = [] names.shuffle! names.each_with_in...
class SecretSanta # Create the Secret Santa list def self.create_list(names) if names.length <= 2 "ERROR: List too short" elsif names.length != names.uniq.length "ERROR: Please enter unique names" else # Build the list list = [] digraph_list = [] names.shuffle! ...
Add better comments and messages
Add better comments and messages
Ruby
mit
jwworth/secret_santa
ruby
## Code Before: class SecretSanta def self.create_list(names) if names.length <= 2 "ERROR: List too short" elsif names.length != names.uniq.length "ERROR: Please enter unique names" else # shuffle names and build lists list = [] digraph_list = [] names.shuffle! na...
class SecretSanta + # Create the Secret Santa list def self.create_list(names) if names.length <= 2 "ERROR: List too short" elsif names.length != names.uniq.length "ERROR: Please enter unique names" else - # shuffle names and build lists + # Build the list l...
11
0.366667
7
4
ff4fce75ccd9b85519cc71db2c09f33191506526
loritta-discord/src/main/java/net/perfectdreams/loritta/commands/vanilla/misc/DiscordBotListStatusCommand.kt
loritta-discord/src/main/java/net/perfectdreams/loritta/commands/vanilla/misc/DiscordBotListStatusCommand.kt
package net.perfectdreams.loritta.commands.vanilla.misc import net.perfectdreams.loritta.api.commands.CommandCategory import net.perfectdreams.loritta.api.messages.LorittaReply import net.perfectdreams.loritta.platform.discord.LorittaDiscord import net.perfectdreams.loritta.platform.discord.commands.DiscordAbstractCom...
package net.perfectdreams.loritta.commands.vanilla.misc import net.perfectdreams.loritta.api.commands.CommandCategory import net.perfectdreams.loritta.api.messages.LorittaReply import net.perfectdreams.loritta.platform.discord.LorittaDiscord import net.perfectdreams.loritta.platform.discord.commands.DiscordAbstractCom...
Allow looking up other users top.gg vote count
Allow looking up other users top.gg vote count
Kotlin
agpl-3.0
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
kotlin
## Code Before: package net.perfectdreams.loritta.commands.vanilla.misc import net.perfectdreams.loritta.api.commands.CommandCategory import net.perfectdreams.loritta.api.messages.LorittaReply import net.perfectdreams.loritta.platform.discord.LorittaDiscord import net.perfectdreams.loritta.platform.discord.commands.Di...
package net.perfectdreams.loritta.commands.vanilla.misc import net.perfectdreams.loritta.api.commands.CommandCategory import net.perfectdreams.loritta.api.messages.LorittaReply import net.perfectdreams.loritta.platform.discord.LorittaDiscord import net.perfectdreams.loritta.platform.discord.commands.Discor...
21
0.636364
14
7
7d60b0e20d4e93336cadb941e121fa2716194445
.travis.yml
.travis.yml
language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travis_ci_test;' -U p...
language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travis_ci_test;' -U p...
Load and prepare DB before test
Load and prepare DB before test The bin/rake db:migrate task runs the migrations and then dumps the structure of the database to a file called db/schema.rb. This structure allows you to restore your database using the bin/rake db:schema:load task if you wish, which is better than running all the migrations on a large ...
YAML
mit
itsmrwave/annotator_store-gem,itsmrwave/annotator_store-gem
yaml
## Code Before: language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'create database travi...
language: ruby rvm: - '2.1.2' - '2.1.1' - '2.1.0' - '2.0.0' - '1.9.3' gemfile: - gemfiles/rails_3.2.21.gemfile - gemfiles/rails_4.0.12.gemfile - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.2.0.rc1.gemfile addons: postgresql: '9.3' before_script: - psql -c 'creat...
5
0.277778
4
1
cb13ef44219720ff006f4dd26b7ee6deb70c063d
dot-install.sh
dot-install.sh
FILES=( bashrc bash_profile vimrc tmux.conf gitconfig sqliterc ) # This function takes a filename (without the preceding .) and backs # it up before installing a symbolic link to the repository version function backup_and_install { echo "Installing $1..." if [ -f "$HOME/.$1" ]; then # If it's a link just del...
FILES=( bashrc bash_profile vimrc tmux.conf gitconfig sqliterc ) # This function takes a filename (without the preceding .) and backs # it up before installing a symbolic link to the repository version function backup_and_install { echo "Installing $1..." if [ -f "$HOME/.$1" ]; then # If it's a link just del...
Update to not track git information file on install
Update to not track git information file on install
Shell
mit
sstelfox/dotfiles,sstelfox/dotfiles
shell
## Code Before: FILES=( bashrc bash_profile vimrc tmux.conf gitconfig sqliterc ) # This function takes a filename (without the preceding .) and backs # it up before installing a symbolic link to the repository version function backup_and_install { echo "Installing $1..." if [ -f "$HOME/.$1" ]; then # If it's...
FILES=( bashrc bash_profile vimrc tmux.conf gitconfig sqliterc ) # This function takes a filename (without the preceding .) and backs # it up before installing a symbolic link to the repository version function backup_and_install { echo "Installing $1..." if [ -f "$HOME/.$1" ]; then # If ...
6
0.230769
6
0
29537a2df3c8f07c1736a78bd78e1086bdb28179
commands/silly_commands.js
commands/silly_commands.js
module.exports = { effify: (message, _, msg) => { const effify = (str) => { const dict = { 'á': 'a', 'é': 'e', 'í': 'i', 'ó': 'o', 'ú': 'u', 'ï': 'i', 'ü': 'u', }; ...
module.exports = { effify: (message, _, msg) => { if (!msg) { message.channel.send('Provide some text to effify.'); } else { message.channel.send(effify(msg)); } function effify(str) { const dict = { 'á': 'a', 'é':...
Make s.effify handle empty msg
Make s.effify handle empty msg
JavaScript
mit
Rafer45/soup
javascript
## Code Before: module.exports = { effify: (message, _, msg) => { const effify = (str) => { const dict = { 'á': 'a', 'é': 'e', 'í': 'i', 'ó': 'o', 'ú': 'u', 'ï': 'i', 'ü': 'u', ...
module.exports = { effify: (message, _, msg) => { + if (!msg) { + message.channel.send('Provide some text to effify.'); + } else { + message.channel.send(effify(msg)); + } + - const effify = (str) => { ? -- --- --- + func...
12
0.545455
8
4
a9c53bc97c0e62a959c1115ec61d0a28d71aac68
devtools/ci/update-versions.py
devtools/ci/update-versions.py
from __future__ import print_function import os import boto from boto.s3.key import Key import msmbuilder.version if msmbuilder.version.release: # The secret key is available as a secure environment variable # on travis-ci to push the build documentation to Amazon S3. AWS_ACCESS_KEY_ID = os.environ['AWS_AC...
from __future__ import print_function import os import pip import json from tempfile import NamedTemporaryFile import subprocess from msmbuilder import version from six.moves.urllib.request import urlopen if not any(d.project_name == 's3cmd' for d in pip.get_installed_distributions()): raise ImportError('The s3cmd ...
Fix script for updating version dropdown
Fix script for updating version dropdown
Python
lgpl-2.1
mpharrigan/mixtape,brookehus/msmbuilder,peastman/msmbuilder,peastman/msmbuilder,rafwiewiora/msmbuilder,dr-nate/msmbuilder,dr-nate/msmbuilder,msmbuilder/msmbuilder,peastman/msmbuilder,Eigenstate/msmbuilder,Eigenstate/msmbuilder,msultan/msmbuilder,msultan/msmbuilder,rmcgibbo/msmbuilder,msmbuilder/msmbuilder,msultan/msmbu...
python
## Code Before: from __future__ import print_function import os import boto from boto.s3.key import Key import msmbuilder.version if msmbuilder.version.release: # The secret key is available as a secure environment variable # on travis-ci to push the build documentation to Amazon S3. AWS_ACCESS_KEY_ID = os...
from __future__ import print_function import os - import boto - from boto.s3.key import Key - import msmbuilder.version + import pip + import json + from tempfile import NamedTemporaryFile + import subprocess + from msmbuilder import version + from six.moves.urllib.request import urlopen + if not any(d.project_name...
63
1.852941
38
25
57d00375936cee83a42a63a845d8fa3a489e5cca
init/test/unit.js
init/test/unit.js
describe('<%= name %>', function () { });
import version from '../src/version'; describe('<%= name %>', function () { it('version', function () { expect(version).to.be.a('string'); }); });
Add initial test for version string.
Add initial test for version string.
JavaScript
mit
skatejs/build,skatejs/build
javascript
## Code Before: describe('<%= name %>', function () { }); ## Instruction: Add initial test for version string. ## Code After: import version from '../src/version'; describe('<%= name %>', function () { it('version', function () { expect(version).to.be.a('string'); }); });
+ import version from '../src/version'; + describe('<%= name %>', function () { - + it('version', function () { + expect(version).to.be.a('string'); + }); });
6
2
5
1
92345eedc8dd08d5c307a7c8d96f3091b108c178
.travis.yml
.travis.yml
language: php php: - 5.3 - 5.4 before_script: - pecl install memcached script: cd ./tests && phpunit
language: php php: - 5.3 - 5.4 before_script: - wget http://pecl.php.net/get/memcache-2.2.6.tgz - tar -xzf memcache-2.2.6.tgz - sh -c "cd memcache-2.2.6 && phpize && ./configure --enable-memcache && make && sudo make install" - echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed ...
Install Memcache extension for automated build
Install Memcache extension for automated build
YAML
mit
sgpatil/orientdb-php,jadell/neo4jphp,Vinelab/neo4jphp,markus-perl/neo4jphp,stevenmaguire/neo4jphp
yaml
## Code Before: language: php php: - 5.3 - 5.4 before_script: - pecl install memcached script: cd ./tests && phpunit ## Instruction: Install Memcache extension for automated build ## Code After: language: php php: - 5.3 - 5.4 before_script: - wget http://pecl.php.net/get/memcache-2.2.6.tgz - tar -xzf...
language: php php: - 5.3 - 5.4 before_script: - - pecl install memcached + - wget http://pecl.php.net/get/memcache-2.2.6.tgz + - tar -xzf memcache-2.2.6.tgz + - sh -c "cd memcache-2.2.6 && phpize && ./configure --enable-memcache && make && sudo make install" + - echo "extension=memcache.so" >...
5
0.555556
4
1
41836cdf8cc377dd72e5e75cc387bf540c70bf01
change-notes/1.20/analysis-python.md
change-notes/1.20/analysis-python.md
## General improvements > Changes that affect alerts in many files or from many queries > For example, changes to file classification ## New queries | **Query** | **Tags** | **Purpose** | |-----------------------------|-----------|-------...
## General improvements > Changes that affect alerts in many files or from many queries > For example, changes to file classification ## New queries | **Query** | **Tags** | **Purpose** | |-----------------------------|-----------|-------...
Add descriptions and remove leftovers from old change note.
Add descriptions and remove leftovers from old change note.
Markdown
mit
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
markdown
## Code Before: ## General improvements > Changes that affect alerts in many files or from many queries > For example, changes to file classification ## New queries | **Query** | **Tags** | **Purpose** | |-----------------------------|---...
## General improvements > Changes that affect alerts in many files or from many queries > For example, changes to file classification ## New queries | **Query** | **Tags** | **Purpose** | |-----------------------------...
7
0.25
2
5
2a0e28ab7837a94b764ab2b360db0f60f34e4734
trucking-topology/src/main/scala/com/orendainx/hortonworks/trucking/topology/nifi/ByteArrayToNiFiPacket.scala
trucking-topology/src/main/scala/com/orendainx/hortonworks/trucking/topology/nifi/ByteArrayToNiFiPacket.scala
package com.orendainx.hortonworks.trucking.topology.nifi import com.typesafe.scalalogging.Logger import org.apache.nifi.storm.{NiFiDataPacket, NiFiDataPacketBuilder, StandardNiFiDataPacket} import org.apache.storm.tuple.Tuple import scala.collection.JavaConverters._ /** * @author Edgar Orendain <edgar@orendainx.co...
package com.orendainx.hortonworks.trucking.topology.nifi import com.typesafe.scalalogging.Logger import org.apache.nifi.storm.{NiFiDataPacket, NiFiDataPacketBuilder, StandardNiFiDataPacket} import org.apache.storm.tuple.Tuple import scala.collection.JavaConverters._ /** * @author Edgar Orendain <edgar@orendainx.co...
Change getStringByField to getBinaryByField, for retrieving an array of bytes
Change getStringByField to getBinaryByField, for retrieving an array of bytes
Scala
apache-2.0
orendain/trucking-iot,orendain/trucking-iot,orendain/trucking-iot,orendain/trucking-iot,orendain/trucking-iot
scala
## Code Before: package com.orendainx.hortonworks.trucking.topology.nifi import com.typesafe.scalalogging.Logger import org.apache.nifi.storm.{NiFiDataPacket, NiFiDataPacketBuilder, StandardNiFiDataPacket} import org.apache.storm.tuple.Tuple import scala.collection.JavaConverters._ /** * @author Edgar Orendain <ed...
package com.orendainx.hortonworks.trucking.topology.nifi import com.typesafe.scalalogging.Logger import org.apache.nifi.storm.{NiFiDataPacket, NiFiDataPacketBuilder, StandardNiFiDataPacket} import org.apache.storm.tuple.Tuple import scala.collection.JavaConverters._ /** * @author Edgar Orendain...
2
0.1
1
1
9eb334ad246ed4df811ebd3a3d1fbcea0d8789db
webkit/data/purify/test_shell_tests.exe.gtest.txt
webkit/data/purify/test_shell_tests.exe.gtest.txt
BMP*
BMPImageDecoderTest.ChunkedDecodingSlow BMPImageDecoderTest.DecodingSlow
Enable the fast BMPImageDecoderTest tests under Purify.
Enable the fast BMPImageDecoderTest tests under Purify. BUG=9177 Review URL: http://codereview.chromium.org/115373 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@16096 0039d316-1c4b-4281-b951-d872f2087c98
Text
bsd-3-clause
adobe/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystal...
text
## Code Before: BMP* ## Instruction: Enable the fast BMPImageDecoderTest tests under Purify. BUG=9177 Review URL: http://codereview.chromium.org/115373 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@16096 0039d316-1c4b-4281-b951-d872f2087c98 ## Code After: BMPImageDecoderTest.ChunkedDecodingSlow BMPImageDecod...
- BMP* + BMPImageDecoderTest.ChunkedDecodingSlow + BMPImageDecoderTest.DecodingSlow
3
3
2
1
069e325d0b4701e6c21c3b2902885f77478a1823
resources/linux/code.desktop
resources/linux/code.desktop
[Desktop Entry] Name=@@NAME_LONG@@ Comment=Code Editing. Redefined. GenericName=Text Editor Exec=/usr/bin/@@NAME@@ %U Icon=@@NAME@@ Type=Application StartupNotify=true StartupWMClass=@@NAME_SHORT@@ Categories=Utility;TextEditor;Development;IDE; MimeType=text/plain; Actions=new-window; [Desktop Action new-window] Name=...
[Desktop Entry] Name=@@NAME_LONG@@ Comment=Code Editing. Redefined. GenericName=Text Editor Exec=/usr/share/@@NAME@@/@@NAME@@ %U Icon=@@NAME@@ Type=Application StartupNotify=true StartupWMClass=@@NAME_SHORT@@ Categories=Utility;TextEditor;Development;IDE; MimeType=text/plain; Actions=new-window; [Desktop Action new-wi...
Use electron binary over CLI in desktop entry
Use electron binary over CLI in desktop entry Fixes #6110
desktop
mit
eklavyamirani/vscode,the-ress/vscode,rishii7/vscode,stringham/vscode,radshit/vscode,joaomoreno/vscode,landonepps/vscode,bsmr-x-script/vscode,eklavyamirani/vscode,0xmohit/vscode,zyml/vscode,jchadwick/vscode,gagangupt16/vscode,veeramarni/vscode,williamcspace/vscode,eamodio/vscode,hashhar/vscode,williamcspace/vscode,mjbvz...
desktop
## Code Before: [Desktop Entry] Name=@@NAME_LONG@@ Comment=Code Editing. Redefined. GenericName=Text Editor Exec=/usr/bin/@@NAME@@ %U Icon=@@NAME@@ Type=Application StartupNotify=true StartupWMClass=@@NAME_SHORT@@ Categories=Utility;TextEditor;Development;IDE; MimeType=text/plain; Actions=new-window; [Desktop Action n...
[Desktop Entry] Name=@@NAME_LONG@@ Comment=Code Editing. Redefined. GenericName=Text Editor - Exec=/usr/bin/@@NAME@@ %U + Exec=/usr/share/@@NAME@@/@@NAME@@ %U Icon=@@NAME@@ Type=Application StartupNotify=true StartupWMClass=@@NAME_SHORT@@ Categories=Utility;TextEditor;Development;IDE; MimeType=text/...
4
0.153846
2
2
bdc19a8d97cff8b13f9e520a39b8c7f2489d166d
recipes/screen_sharing_app.rb
recipes/screen_sharing_app.rb
unless File.exists?("/Applications/Screen Sharing.app") execute "create symbolic link in /Applications" do command "ln -s /System/Library/CoreServices/Screen\\ Sharing.app /Applications/" user WS_USER end ruby_block "test to see if Chrome was installed" do block do raise "Chrome install failed...
unless File.exists?("/Applications/Screen Sharing.app") link "/Applications/Screen\ Sharing.app" do to "/System/Library/CoreServices/Screen\ Sharing.app" end ruby_block "test to see if Screen Sharing was installed" do block do raise "Screen Sharing install failed" unless File.exists?("/Applicati...
Fix error message and use chef's built-in link command
Fix error message and use chef's built-in link command Error message on screensharing app failure shouldn't say that Chrome failed to install ;) Also the failure message references chrome instead
Ruby
mit
webcoyote/pivotal_workstation,1000Bulbs/sprout,wendorf/sprout-osx-apps,Yesware/sprout,1000Bulbs/pivotal_workstation,cowboyd/pivotal_workstation,pivotal-sprout/sprout-osx-apps,se3000/pivotal_workstation,Yesware/sprout,Yesware/sprout,1000Bulbs/pivotal_workstation,wendorf/sprout-osx-apps,webcoyote/pivotal_workstation,wend...
ruby
## Code Before: unless File.exists?("/Applications/Screen Sharing.app") execute "create symbolic link in /Applications" do command "ln -s /System/Library/CoreServices/Screen\\ Sharing.app /Applications/" user WS_USER end ruby_block "test to see if Chrome was installed" do block do raise "Chrom...
unless File.exists?("/Applications/Screen Sharing.app") - - execute "create symbolic link in /Applications" do + + link "/Applications/Screen\ Sharing.app" do - command "ln -s /System/Library/CoreServices/Screen\\ Sharing.app /Applications/" ? ^ ----- ------ - ...
11
0.846154
5
6
86ba30d457049bfc7bab36497e443f9d23d678f7
.travis.yml
.travis.yml
language: php php: - 7.1 - 7.0 - hhvm before_script: - pip install --user codecov - composer self-update && composer install --dev script: - docker build -t matthiasmullie/php-api . - docker run -d -p 80:80 matthiasmullie/php-api - ./vendor/bin/phpunit after_success: - vendor/bin/cauditor - code...
language: php php: - 7.1 - 7.0 - hhvm before_script: - pip install --user codecov - composer self-update && composer install --dev script: - sudo kill -9 `sudo lsof -t -i:80` - docker build -t matthiasmullie/php-api . - docker run -d -p 80:80 matthiasmullie/php-api - ./vendor/bin/phpunit after_suc...
Make sure nothing is running on port 80
Make sure nothing is running on port 80
YAML
mit
matthiasmullie/php-api
yaml
## Code Before: language: php php: - 7.1 - 7.0 - hhvm before_script: - pip install --user codecov - composer self-update && composer install --dev script: - docker build -t matthiasmullie/php-api . - docker run -d -p 80:80 matthiasmullie/php-api - ./vendor/bin/phpunit after_success: - vendor/bin/c...
language: php php: - 7.1 - 7.0 - hhvm before_script: - pip install --user codecov - composer self-update && composer install --dev script: + - sudo kill -9 `sudo lsof -t -i:80` - docker build -t matthiasmullie/php-api . - docker run -d -p 80:80 matthiasmullie/php-api -...
1
0.052632
1
0
266909430637daf570253508a2c2c83672a9975b
package.json
package.json
{ "name": "community", "description": "Social platform web application.", "version": "0.0.0", "private": true, "license": "MIT", "main": "server/index.js", "repository": { "type": "git", "url": "https://github.com/lxanders/community.git" }, "dependencies": { "...
{ "name": "community", "description": "Social platform web application.", "version": "0.0.0", "private": true, "license": "MIT", "main": "server/index.js", "repository": { "type": "git", "url": "https://github.com/lxanders/community.git" }, "dependencies": { "...
Add convenience script for cleaning the client.
Add convenience script for cleaning the client.
JSON
mit
lxanders/community
json
## Code Before: { "name": "community", "description": "Social platform web application.", "version": "0.0.0", "private": true, "license": "MIT", "main": "server/index.js", "repository": { "type": "git", "url": "https://github.com/lxanders/community.git" }, "dependenci...
{ "name": "community", "description": "Social platform web application.", "version": "0.0.0", "private": true, "license": "MIT", "main": "server/index.js", "repository": { "type": "git", "url": "https://github.com/lxanders/community.git" }, "de...
1
0.027778
1
0
4ec2b94551858e404f0de6d8ad3827d9c6138491
slurmec2utils/sysinit.py
slurmec2utils/sysinit.py
from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id def check_munge_
from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id def get_munge_key(cluster_configuration=None): if cluster_configuration is None: cluster_configuration = ClusterConfigu...
Fix syntax errors. (preventing install)
Fix syntax errors. (preventing install)
Python
apache-2.0
dacut/slurm-ec2-utils,dacut/slurm-ec2-utils
python
## Code Before: from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id def check_munge_ ## Instruction: Fix syntax errors. (preventing install) ## Code After: from __future__ import ab...
from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id - def check_munge_ + def get_munge_key(cluster_configuration=None): + if cluster_configuration is None: + c...
4
0.571429
3
1