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
2f8ed771d3061d04b53bb3a8a1fa4b08f9b42d8f
netlify.toml
netlify.toml
[build] command = "npm run build" publish = "dist" [context.deploy-preview] command = "npm run build-preview"
[build] command = "npm run build" publish = "dist" [context.deploy-preview] command = "npm run build-preview" # Redirects to JIRA service desk [[redirects]] from = "/helpdesk" to = "https://waytohealth.atlassian.net/servicedesk" [[redirects]] from = "http://helpdesk.waytohealth.org" to = "https://waytohealth.atlassian.net/servicedesk" [[redirects]] from = "http://support.waytohealth.org" to = "https://waytohealth.atlassian.net/servicedesk" # Redirects to Confluence (server) [[redirects]] from = "/userguide" to = "https://atlas.waytohealth.upenn.edu/confluence" [[redirects]] from = "http://userguide.waytohealth.org" to = "https://atlas.waytohealth.upenn.edu/confluence"
Add redirects for Service Desk and confluence
Add redirects for Service Desk and confluence
TOML
mit
mohan2020/w2hsite,mohan2020/w2hsite
toml
## Code Before: [build] command = "npm run build" publish = "dist" [context.deploy-preview] command = "npm run build-preview" ## Instruction: Add redirects for Service Desk and confluence ## Code After: [build] command = "npm run build" publish = "dist" [context.deploy-preview] command = "npm run build-preview" # Redirects to JIRA service desk [[redirects]] from = "/helpdesk" to = "https://waytohealth.atlassian.net/servicedesk" [[redirects]] from = "http://helpdesk.waytohealth.org" to = "https://waytohealth.atlassian.net/servicedesk" [[redirects]] from = "http://support.waytohealth.org" to = "https://waytohealth.atlassian.net/servicedesk" # Redirects to Confluence (server) [[redirects]] from = "/userguide" to = "https://atlas.waytohealth.upenn.edu/confluence" [[redirects]] from = "http://userguide.waytohealth.org" to = "https://atlas.waytohealth.upenn.edu/confluence"
[build] command = "npm run build" publish = "dist" [context.deploy-preview] command = "npm run build-preview" + + # Redirects to JIRA service desk + [[redirects]] + from = "/helpdesk" + to = "https://waytohealth.atlassian.net/servicedesk" + + [[redirects]] + from = "http://helpdesk.waytohealth.org" + to = "https://waytohealth.atlassian.net/servicedesk" + + [[redirects]] + from = "http://support.waytohealth.org" + to = "https://waytohealth.atlassian.net/servicedesk" + + + # Redirects to Confluence (server) + [[redirects]] + from = "/userguide" + to = "https://atlas.waytohealth.upenn.edu/confluence" + + [[redirects]] + from = "http://userguide.waytohealth.org" + to = "https://atlas.waytohealth.upenn.edu/confluence" +
24
4
24
0
6e80bcef30b6b4485fa5e3f269f13fc62380c422
tests/test_evaluate.py
tests/test_evaluate.py
import numpy as np from numpy.testing import assert_equal from gala import evaluate as ev def test_contingency_table(): seg = np.array([0, 1, 1, 1, 2, 2, 2, 3]) gt = np.array([1, 1, 1, 2, 2, 2, 2, 0]) ct = ev.contingency_table(seg, gt, ignore_seg=[], ignore_gt=[]) ct0 = ev.contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0]) ctd = ct.todense() assert_equal(ctd, np.array([[0. , 0.125, 0. ], [0. , 0.25 , 0.125], [0. , 0. , 0.375], [0.125, 0. , 0. ]])) assert ct.shape == ct0.shape def test_vi(): seg = np.array([1, 2, 3, 4]) gt = np.array([1, 1, 8, 8]) assert_equal(ev.vi(seg, gt), 1) def test_are(): seg = np.eye(3) gt = np.eye(3) seg[1][1] = 0 assert seg.shape == gt.shape
import numpy as np from numpy.testing import assert_equal from gala import evaluate as ev def test_contingency_table(): seg = np.array([0, 1, 1, 1, 2, 2, 2, 3]) gt = np.array([1, 1, 1, 2, 2, 2, 2, 0]) ct = ev.contingency_table(seg, gt, ignore_seg=[], ignore_gt=[]) ct0 = ev.contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0]) ctd = ct.todense() assert_equal(ctd, np.array([[0. , 0.125, 0. ], [0. , 0.25 , 0.125], [0. , 0. , 0.375], [0.125, 0. , 0. ]])) assert ct.shape == ct0.shape def test_vi(): seg = np.array([1, 2, 3, 4]) gt = np.array([1, 1, 8, 8]) assert_equal(ev.vi(seg, gt), 1) def test_are(): seg = np.array([[0,1], [1,0]]) gt = np.array([[1,2],[0,1]]) assert_almost_equal(ev.adapted_rand_error(seg,gt),0.081) assert seg.shape == gt.shape
Add in test for ARE
Add in test for ARE
Python
bsd-3-clause
jni/gala,janelia-flyem/gala
python
## Code Before: import numpy as np from numpy.testing import assert_equal from gala import evaluate as ev def test_contingency_table(): seg = np.array([0, 1, 1, 1, 2, 2, 2, 3]) gt = np.array([1, 1, 1, 2, 2, 2, 2, 0]) ct = ev.contingency_table(seg, gt, ignore_seg=[], ignore_gt=[]) ct0 = ev.contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0]) ctd = ct.todense() assert_equal(ctd, np.array([[0. , 0.125, 0. ], [0. , 0.25 , 0.125], [0. , 0. , 0.375], [0.125, 0. , 0. ]])) assert ct.shape == ct0.shape def test_vi(): seg = np.array([1, 2, 3, 4]) gt = np.array([1, 1, 8, 8]) assert_equal(ev.vi(seg, gt), 1) def test_are(): seg = np.eye(3) gt = np.eye(3) seg[1][1] = 0 assert seg.shape == gt.shape ## Instruction: Add in test for ARE ## Code After: import numpy as np from numpy.testing import assert_equal from gala import evaluate as ev def test_contingency_table(): seg = np.array([0, 1, 1, 1, 2, 2, 2, 3]) gt = np.array([1, 1, 1, 2, 2, 2, 2, 0]) ct = ev.contingency_table(seg, gt, ignore_seg=[], ignore_gt=[]) ct0 = ev.contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0]) ctd = ct.todense() assert_equal(ctd, np.array([[0. , 0.125, 0. ], [0. , 0.25 , 0.125], [0. , 0. , 0.375], [0.125, 0. , 0. ]])) assert ct.shape == ct0.shape def test_vi(): seg = np.array([1, 2, 3, 4]) gt = np.array([1, 1, 8, 8]) assert_equal(ev.vi(seg, gt), 1) def test_are(): seg = np.array([[0,1], [1,0]]) gt = np.array([[1,2],[0,1]]) assert_almost_equal(ev.adapted_rand_error(seg,gt),0.081) assert seg.shape == gt.shape
import numpy as np from numpy.testing import assert_equal from gala import evaluate as ev def test_contingency_table(): seg = np.array([0, 1, 1, 1, 2, 2, 2, 3]) gt = np.array([1, 1, 1, 2, 2, 2, 2, 0]) ct = ev.contingency_table(seg, gt, ignore_seg=[], ignore_gt=[]) ct0 = ev.contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0]) ctd = ct.todense() assert_equal(ctd, np.array([[0. , 0.125, 0. ], [0. , 0.25 , 0.125], [0. , 0. , 0.375], [0.125, 0. , 0. ]])) assert ct.shape == ct0.shape def test_vi(): seg = np.array([1, 2, 3, 4]) gt = np.array([1, 1, 8, 8]) assert_equal(ev.vi(seg, gt), 1) def test_are(): - seg = np.eye(3) - gt = np.eye(3) - seg[1][1] = 0 + seg = np.array([[0,1], [1,0]]) + gt = np.array([[1,2],[0,1]]) + assert_almost_equal(ev.adapted_rand_error(seg,gt),0.081) assert seg.shape == gt.shape
6
0.222222
3
3
1200a526975b0cf100f0644f0b21a9454830b128
codecov.yml
codecov.yml
ignore: - "Tests/**/*"
ignore: - "Tests/**/*" status: patch: default: threshold: 1% project: default: target: auto threshold: 1%
Allow minor coverage drops in Codecov
Allow minor coverage drops in Codecov
YAML
mit
CombineCommunity/CombineExt,CombineCommunity/CombineExt,CombineCommunity/CombineExt
yaml
## Code Before: ignore: - "Tests/**/*" ## Instruction: Allow minor coverage drops in Codecov ## Code After: ignore: - "Tests/**/*" status: patch: default: threshold: 1% project: default: target: auto threshold: 1%
ignore: - "Tests/**/*" + + status: + patch: + default: + threshold: 1% + + project: + default: + target: auto + threshold: 1%
10
5
10
0
70ce6593f68e0d6751d6e356a4f8893e123b3c1b
src/backend/middleware/firebase.js
src/backend/middleware/firebase.js
import { LOAD_MESSAGES, LOGIN, LOGOUT, SAVE_PREFERENCES, SEND_MESSAGE, UPDATE_USER } from '../../actions' const firebaseMiddleware = firebase => store => next => action => { const firebaseCommand = action.firebase const state = store.getState() if (firebaseCommand) { if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { console.error('User is not signed in') return } switch (firebaseCommand) { case SAVE_PREFERENCES: setTimeout(() => firebase.savePreferences(store.getState()), 0) break case LOAD_MESSAGES: firebase.loadMessages() break case LOGIN: firebase.login(action) break case LOGOUT: firebase.logout(state) break case SEND_MESSAGE: firebase.sendMessage(state, action) break case UPDATE_USER: firebase.updateUser(action) break default: break } } next(action) } export default firebaseMiddleware
import { LOAD_MESSAGES, LOGIN, LOGOUT, SAVE_PREFERENCES, SEND_MESSAGE, UPDATE_USER } from '../../actions' const firebaseMiddleware = firebase => store => next => action => { const firebaseCommand = action.firebase const state = store.getState() // Early return if nothing for Firebase if (firebaseCommand == undefined) { return next(action) } // Error on Firebase-y actions if there's no logged-in user if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { console.error('User is not signed in') return } switch (firebaseCommand) { case SAVE_PREFERENCES: setTimeout(() => firebase.savePreferences(store.getState()), 0) break case LOAD_MESSAGES: firebase.loadMessages() break case LOGIN: firebase.login(action) break case LOGOUT: firebase.logout(state) break case SEND_MESSAGE: firebase.sendMessage(state, action) break case UPDATE_USER: firebase.updateUser(action) break default: break } next(action) } export default firebaseMiddleware
Clean up Firebase middleware code.
Clean up Firebase middleware code.
JavaScript
mit
jsonnull/aleamancer,jsonnull/aleamancer
javascript
## Code Before: import { LOAD_MESSAGES, LOGIN, LOGOUT, SAVE_PREFERENCES, SEND_MESSAGE, UPDATE_USER } from '../../actions' const firebaseMiddleware = firebase => store => next => action => { const firebaseCommand = action.firebase const state = store.getState() if (firebaseCommand) { if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { console.error('User is not signed in') return } switch (firebaseCommand) { case SAVE_PREFERENCES: setTimeout(() => firebase.savePreferences(store.getState()), 0) break case LOAD_MESSAGES: firebase.loadMessages() break case LOGIN: firebase.login(action) break case LOGOUT: firebase.logout(state) break case SEND_MESSAGE: firebase.sendMessage(state, action) break case UPDATE_USER: firebase.updateUser(action) break default: break } } next(action) } export default firebaseMiddleware ## Instruction: Clean up Firebase middleware code. ## Code After: import { LOAD_MESSAGES, LOGIN, LOGOUT, SAVE_PREFERENCES, SEND_MESSAGE, UPDATE_USER } from '../../actions' const firebaseMiddleware = firebase => store => next => action => { const firebaseCommand = action.firebase const state = store.getState() // Early return if nothing for Firebase if (firebaseCommand == undefined) { return next(action) } // Error on Firebase-y actions if there's no logged-in user if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { console.error('User is not signed in') return } switch (firebaseCommand) { case SAVE_PREFERENCES: setTimeout(() => firebase.savePreferences(store.getState()), 0) break case LOAD_MESSAGES: firebase.loadMessages() break case LOGIN: firebase.login(action) break case LOGOUT: firebase.logout(state) break case SEND_MESSAGE: firebase.sendMessage(state, action) break case UPDATE_USER: firebase.updateUser(action) break default: break } next(action) } export default firebaseMiddleware
import { LOAD_MESSAGES, LOGIN, LOGOUT, SAVE_PREFERENCES, SEND_MESSAGE, UPDATE_USER } from '../../actions' const firebaseMiddleware = firebase => store => next => action => { const firebaseCommand = action.firebase - const state = store.getState() + // Early return if nothing for Firebase - if (firebaseCommand) { + if (firebaseCommand == undefined) { ? +++++++++++++ + return next(action) - if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { - console.error('User is not signed in') - return - } ? -- + } + // Error on Firebase-y actions if there's no logged-in user + if (firebaseCommand !== LOGIN && firebase.auth.currentUser == undefined) { + console.error('User is not signed in') + return + } + - switch (firebaseCommand) { ? -- + switch (firebaseCommand) { - case SAVE_PREFERENCES: ? -- + case SAVE_PREFERENCES: - setTimeout(() => firebase.savePreferences(store.getState()), 0) ? -- + setTimeout(() => firebase.savePreferences(store.getState()), 0) - break ? -- + break - case LOAD_MESSAGES: ? -- + case LOAD_MESSAGES: - firebase.loadMessages() ? -- + firebase.loadMessages() - break ? -- + break - case LOGIN: ? -- + case LOGIN: - firebase.login(action) ? -- + firebase.login(action) - break ? -- + break - case LOGOUT: ? -- + case LOGOUT: - firebase.logout(state) ? -- + firebase.logout(state) - break ? -- + break - case SEND_MESSAGE: ? -- + case SEND_MESSAGE: - firebase.sendMessage(state, action) ? -- + firebase.sendMessage(state, action) - break ? -- + break - case UPDATE_USER: ? -- + case UPDATE_USER: - firebase.updateUser(action) ? -- + firebase.updateUser(action) - break ? -- + break - default: ? -- + default: - break ? -- + break - } } next(action) } export default firebaseMiddleware
59
1.229167
31
28
97c962aaeccca039e1521d0edb7b4490bf599f2b
tox.ini
tox.ini
[tox] envlist = py{27,35,36,37,38,py,py3} [testenv] commands = nosetests deps = nose coverage py{27,py}: astroid py{35,36,py3}: astroid<2 py{37,38}: astroid>=2.dev
[tox] envlist = py{27,35,36,37,38,py,py3} [testenv] commands = nosetests deps = nose coverage astroid
Use latest astroid for all python versions
Use latest astroid for all python versions
INI
apache-2.0
gristlabs/asttokens
ini
## Code Before: [tox] envlist = py{27,35,36,37,38,py,py3} [testenv] commands = nosetests deps = nose coverage py{27,py}: astroid py{35,36,py3}: astroid<2 py{37,38}: astroid>=2.dev ## Instruction: Use latest astroid for all python versions ## Code After: [tox] envlist = py{27,35,36,37,38,py,py3} [testenv] commands = nosetests deps = nose coverage astroid
[tox] envlist = py{27,35,36,37,38,py,py3} [testenv] commands = nosetests deps = nose coverage + astroid - py{27,py}: astroid - py{35,36,py3}: astroid<2 - py{37,38}: astroid>=2.dev
4
0.333333
1
3
125ef66cdeff75e5514f31aef2ddd348ab0b3d73
index.html
index.html
<!DOCTYPE html> <html> <head> <script src="brython.js"></script> </head> <body onload="brython()"> <script type="text/python"> from browser import document, alert, ajax </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="brython.js"></script> </head> <body onload="brython()"> <script type="text/python"> from browser import document, alert, ajax import github as git </script> </body> </html>
Test if github-py can be used
Test if github-py can be used
HTML
mit
blewis14/communication-allenlewisco
html
## Code Before: <!DOCTYPE html> <html> <head> <script src="brython.js"></script> </head> <body onload="brython()"> <script type="text/python"> from browser import document, alert, ajax </script> </body> </html> ## Instruction: Test if github-py can be used ## Code After: <!DOCTYPE html> <html> <head> <script src="brython.js"></script> </head> <body onload="brython()"> <script type="text/python"> from browser import document, alert, ajax import github as git </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="brython.js"></script> </head> <body onload="brython()"> <script type="text/python"> from browser import document, alert, ajax - + import github as git </script> </body> </html>
2
0.166667
1
1
28c326f61848e50bdc6a5e86fc790f8114bd0468
rencon.py
rencon.py
import os import sys from string import Template import argparse import hashlib if __name__ == "__main__": parser = argparse.ArgumentParser(description='Rename files based on content.') parser.add_argument('files', metavar='FILE', type=str, nargs='+', help='Files to rename') parser.add_argument('-m', '--mask', nargs='?', help='File destination mask', default='${hash}.${ext}') parser.add_argument('-p', '--pretend', action='store_true', help='Do not rename, just print') args = parser.parse_args() print 'Renaming with mask: %s' % args.mask mask = Template(args.mask) for f in args.files: if not os.path.exists(f): print >>sys.stderr, 'File %s does not exists.' % f else: with open(f) as fp: h = hashlib.sha1(fp.read()).hexdigest() ext = os.path.splitext(f)[1][1:] name = mask.substitute(hash=h, ext=ext) dest = os.path.join(os.path.dirname(f), name) print "`%s' -> `%s'" % (f, dest) if os.path.exists(dest): print >>sys.stderr, 'Destination %s already exists.' % dest elif not args.pretend: os.rename(f, dest)
import os import sys from string import Template import argparse import hashlib if __name__ == "__main__": parser = argparse.ArgumentParser(description='Rename files based on content.') parser.add_argument('files', metavar='FILE', type=str, nargs='+', help='Files to rename') parser.add_argument('-m', '--mask', nargs='?', help='File destination mask', default='${hash}.${ext}') parser.add_argument('-p', '--pretend', action='store_true', help='Do not rename, just print') args = parser.parse_args() print 'Renaming with mask: %s' % args.mask mask = Template(args.mask) for f in args.files: if not os.path.exists(f): print >>sys.stderr, 'File %s does not exists.' % f else: with open(f) as fp: h = hashlib.sha1(fp.read()).hexdigest() ext = os.path.splitext(f)[1][1:] name = mask.substitute(hash=h, ext=ext) dest = os.path.join(os.path.dirname(f), name) if os.path.basename(f) == name: print 'OK %s' % name else: print "`%s' -> `%s'" % (f, dest) if os.path.exists(dest): print >>sys.stderr, 'Destination %s already exists.' % dest elif not args.pretend: os.rename(f, dest)
Fix error when already renamed
Fix error when already renamed
Python
mit
laurentb/rencon
python
## Code Before: import os import sys from string import Template import argparse import hashlib if __name__ == "__main__": parser = argparse.ArgumentParser(description='Rename files based on content.') parser.add_argument('files', metavar='FILE', type=str, nargs='+', help='Files to rename') parser.add_argument('-m', '--mask', nargs='?', help='File destination mask', default='${hash}.${ext}') parser.add_argument('-p', '--pretend', action='store_true', help='Do not rename, just print') args = parser.parse_args() print 'Renaming with mask: %s' % args.mask mask = Template(args.mask) for f in args.files: if not os.path.exists(f): print >>sys.stderr, 'File %s does not exists.' % f else: with open(f) as fp: h = hashlib.sha1(fp.read()).hexdigest() ext = os.path.splitext(f)[1][1:] name = mask.substitute(hash=h, ext=ext) dest = os.path.join(os.path.dirname(f), name) print "`%s' -> `%s'" % (f, dest) if os.path.exists(dest): print >>sys.stderr, 'Destination %s already exists.' % dest elif not args.pretend: os.rename(f, dest) ## Instruction: Fix error when already renamed ## Code After: import os import sys from string import Template import argparse import hashlib if __name__ == "__main__": parser = argparse.ArgumentParser(description='Rename files based on content.') parser.add_argument('files', metavar='FILE', type=str, nargs='+', help='Files to rename') parser.add_argument('-m', '--mask', nargs='?', help='File destination mask', default='${hash}.${ext}') parser.add_argument('-p', '--pretend', action='store_true', help='Do not rename, just print') args = parser.parse_args() print 'Renaming with mask: %s' % args.mask mask = Template(args.mask) for f in args.files: if not os.path.exists(f): print >>sys.stderr, 'File %s does not exists.' % f else: with open(f) as fp: h = hashlib.sha1(fp.read()).hexdigest() ext = os.path.splitext(f)[1][1:] name = mask.substitute(hash=h, ext=ext) dest = os.path.join(os.path.dirname(f), name) if os.path.basename(f) == name: print 'OK %s' % name else: print "`%s' -> `%s'" % (f, dest) if os.path.exists(dest): print >>sys.stderr, 'Destination %s already exists.' % dest elif not args.pretend: os.rename(f, dest)
import os import sys from string import Template import argparse import hashlib if __name__ == "__main__": parser = argparse.ArgumentParser(description='Rename files based on content.') parser.add_argument('files', metavar='FILE', type=str, nargs='+', help='Files to rename') parser.add_argument('-m', '--mask', nargs='?', help='File destination mask', default='${hash}.${ext}') parser.add_argument('-p', '--pretend', action='store_true', help='Do not rename, just print') args = parser.parse_args() print 'Renaming with mask: %s' % args.mask mask = Template(args.mask) for f in args.files: if not os.path.exists(f): print >>sys.stderr, 'File %s does not exists.' % f else: with open(f) as fp: h = hashlib.sha1(fp.read()).hexdigest() ext = os.path.splitext(f)[1][1:] name = mask.substitute(hash=h, ext=ext) dest = os.path.join(os.path.dirname(f), name) + if os.path.basename(f) == name: + print 'OK %s' % name + else: - print "`%s' -> `%s'" % (f, dest) + print "`%s' -> `%s'" % (f, dest) ? ++++ - if os.path.exists(dest): + if os.path.exists(dest): ? ++++ - print >>sys.stderr, 'Destination %s already exists.' % dest + print >>sys.stderr, 'Destination %s already exists.' % dest ? ++++ - elif not args.pretend: + elif not args.pretend: ? ++++ - os.rename(f, dest) + os.rename(f, dest) ? ++++
13
0.382353
8
5
caeef9d34fc1a31f0bceaa176318a112e8823a6f
manifest.json
manifest.json
{ "manifest_version": 2, "name": "Write.as for Chrome", "description": "Effortlessly share text.", "version": "1.3", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon76.png" }, "default_popup": "popup.html", "default_title": "Publish this" }, "background": { "scripts": [ "context.js", "H.js" ] }, "permissions": [ "activeTab", "contextMenus", "webRequest", "*://*.write.as/" ], "externally_connectable": { "matches": ["*://*.write.as/*"] } }
{ "manifest_version": 2, "name": "Write.as for Chrome", "short_name": "Write.as", "description": "Publish a thought in seconds.", "version": "1.3", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon76.png" }, "default_popup": "popup.html", "default_title": "Publish this" }, "background": { "scripts": [ "context.js", "H.js" ] }, "permissions": [ "activeTab", "contextMenus", "webRequest", "*://*.write.as/" ], "externally_connectable": { "matches": ["*://*.write.as/*"] } }
Update extension description and add short_name
Update extension description and add short_name
JSON
mit
writeas/paste-chrome,writeas/paste-chrome
json
## Code Before: { "manifest_version": 2, "name": "Write.as for Chrome", "description": "Effortlessly share text.", "version": "1.3", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon76.png" }, "default_popup": "popup.html", "default_title": "Publish this" }, "background": { "scripts": [ "context.js", "H.js" ] }, "permissions": [ "activeTab", "contextMenus", "webRequest", "*://*.write.as/" ], "externally_connectable": { "matches": ["*://*.write.as/*"] } } ## Instruction: Update extension description and add short_name ## Code After: { "manifest_version": 2, "name": "Write.as for Chrome", "short_name": "Write.as", "description": "Publish a thought in seconds.", "version": "1.3", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon76.png" }, "default_popup": "popup.html", "default_title": "Publish this" }, "background": { "scripts": [ "context.js", "H.js" ] }, "permissions": [ "activeTab", "contextMenus", "webRequest", "*://*.write.as/" ], "externally_connectable": { "matches": ["*://*.write.as/*"] } }
{ "manifest_version": 2, "name": "Write.as for Chrome", - "description": "Effortlessly share text.", + "short_name": "Write.as", + "description": "Publish a thought in seconds.", "version": "1.3", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon76.png" }, "default_popup": "popup.html", "default_title": "Publish this" }, "background": { "scripts": [ "context.js", "H.js" ] }, "permissions": [ "activeTab", "contextMenus", "webRequest", "*://*.write.as/" ], "externally_connectable": { "matches": ["*://*.write.as/*"] } }
3
0.083333
2
1
583fc6a7e3cc96d85090e13735c7cffdb2ac4dde
metadata/com.fullscreen.txt
metadata/com.fullscreen.txt
Categories:Reading,Internet License:GPLv3 Web Site: Source Code:https://github.com/renancunha33/diolinux_webapp2 Issue Tracker:https://github.com/renancunha33/diolinux_webapp2/issues Auto Name:Diolinux Summary:View www.diolinux.com.br Description: Webapp for accessing the site diolinux.com.br, which is about free software and technology news. . Repo Type:git Repo:https://github.com/renancunha33/diolinux_webapp2 Build:2.1.2.5,1 commit=9d3bcf926d0a6acb88c716950172e1b42f7f88f3 subdir=app gradle=yes Auto Update Mode:None Update Check Mode:RepoManifest Update Check Name:com.example.webview Current Version:2.2 Current Version Code:2
Categories:Reading,Internet License:GPLv3 Web Site: Source Code:https://github.com/renancunha33/diolinux_webapp2 Issue Tracker:https://github.com/renancunha33/diolinux_webapp2/issues Auto Name:Diolinux Summary:View www.diolinux.com.br Description: Webapp for accessing the site diolinux.com.br, which is about free software and technology news. . Repo Type:git Repo:https://github.com/renancunha33/diolinux_webapp2 Build:2.1.2.5,1 commit=9d3bcf926d0a6acb88c716950172e1b42f7f88f3 subdir=app gradle=yes Build:2.2,2 commit=0a38cddcb2f64dd04761d760355684903a18bb65 subdir=app gradle=yes Auto Update Mode:None Update Check Mode:RepoManifest Update Check Name:com.example.webview Current Version:2.2 Current Version Code:2
Update Diolinux to 2.2 (2)
Update Diolinux to 2.2 (2)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:Reading,Internet License:GPLv3 Web Site: Source Code:https://github.com/renancunha33/diolinux_webapp2 Issue Tracker:https://github.com/renancunha33/diolinux_webapp2/issues Auto Name:Diolinux Summary:View www.diolinux.com.br Description: Webapp for accessing the site diolinux.com.br, which is about free software and technology news. . Repo Type:git Repo:https://github.com/renancunha33/diolinux_webapp2 Build:2.1.2.5,1 commit=9d3bcf926d0a6acb88c716950172e1b42f7f88f3 subdir=app gradle=yes Auto Update Mode:None Update Check Mode:RepoManifest Update Check Name:com.example.webview Current Version:2.2 Current Version Code:2 ## Instruction: Update Diolinux to 2.2 (2) ## Code After: Categories:Reading,Internet License:GPLv3 Web Site: Source Code:https://github.com/renancunha33/diolinux_webapp2 Issue Tracker:https://github.com/renancunha33/diolinux_webapp2/issues Auto Name:Diolinux Summary:View www.diolinux.com.br Description: Webapp for accessing the site diolinux.com.br, which is about free software and technology news. . Repo Type:git Repo:https://github.com/renancunha33/diolinux_webapp2 Build:2.1.2.5,1 commit=9d3bcf926d0a6acb88c716950172e1b42f7f88f3 subdir=app gradle=yes Build:2.2,2 commit=0a38cddcb2f64dd04761d760355684903a18bb65 subdir=app gradle=yes Auto Update Mode:None Update Check Mode:RepoManifest Update Check Name:com.example.webview Current Version:2.2 Current Version Code:2
Categories:Reading,Internet License:GPLv3 Web Site: Source Code:https://github.com/renancunha33/diolinux_webapp2 Issue Tracker:https://github.com/renancunha33/diolinux_webapp2/issues Auto Name:Diolinux Summary:View www.diolinux.com.br Description: Webapp for accessing the site diolinux.com.br, which is about free software and technology news. . Repo Type:git Repo:https://github.com/renancunha33/diolinux_webapp2 Build:2.1.2.5,1 commit=9d3bcf926d0a6acb88c716950172e1b42f7f88f3 subdir=app gradle=yes + Build:2.2,2 + commit=0a38cddcb2f64dd04761d760355684903a18bb65 + subdir=app + gradle=yes + Auto Update Mode:None Update Check Mode:RepoManifest Update Check Name:com.example.webview Current Version:2.2 Current Version Code:2
5
0.192308
5
0
9568784d3a4b572439431b01b735cd2f55802d40
lib/api-acl/base.rb
lib/api-acl/base.rb
module ACL def self.configure yield @config = Configuration.new ACL.config = @config end def self.config=(config) @config = config end def self.config @config ||=Configuration.new end class Configuration attr_accessor :api_acl_mode, :force_access_control, :global_validators STRATEGY_DESCENDING = 1 STRATEGY_ASCENDING = 2 @@defaults = { :api_acl_mode => STRATEGY_DESCENDING, :force_access_control => false, :global_validators => Array.new } def validators_iterate_strategy if(@api_acl_mode == STRATEGY_DESCENDING) then return 'reverse_each' else return 'each' end end def self.defaults @@defaults end def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end
module ACL def self.configure yield @config = Configuration.new ACL.config = @config end def self.config=(config) @config = config end def self.config @config ||=Configuration.new end def self.check_level(route,method) required_route = ACL::acl_routes_collection[route] required_route = Hash.new if required_route.nil? validators_to_call = required_route[method] if((validators_to_call.nil? || validators_to_call.empty?) && global_validators.empty?) then return ACL.config.force_access_control ? 0 : 1 elsif validators_to_call.nil? || validators_to_call.empty? then validators_to_call = {1 => []} #No access level defined but global validators must be called end keys = validators_to_call.keys.sort highest_level = 0 keys.send("#{ACL::config.validators_iterate_strategy}") do |access_level| pass = ACL::Validators.run_validators(validators_to_call[access_level]) if (pass==true) then highest_level = access_level break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_DESCENDING #Already on the highest level elsif (pass==false) break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_ASCENDING #Do not check for higher levels end end return highest_level end class Configuration attr_accessor :api_acl_mode, :force_access_control STRATEGY_DESCENDING = 1 #Check for validators starting on the highest access level STRATEGY_ASCENDING = 2 #Check for validators starting on the lowest access level @@defaults = { :api_acl_mode => STRATEGY_DESCENDING, :force_access_control => false } def validators_iterate_strategy if(@api_acl_mode == STRATEGY_DESCENDING) then return 'reverse_each' else return 'each' end end def self.defaults @@defaults end def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end
Move check_level method from variables.rb | Add some comments | Check for global validators or force_access_control
Move check_level method from variables.rb | Add some comments | Check for global validators or force_access_control
Ruby
unlicense
tarolandia/vinyl
ruby
## Code Before: module ACL def self.configure yield @config = Configuration.new ACL.config = @config end def self.config=(config) @config = config end def self.config @config ||=Configuration.new end class Configuration attr_accessor :api_acl_mode, :force_access_control, :global_validators STRATEGY_DESCENDING = 1 STRATEGY_ASCENDING = 2 @@defaults = { :api_acl_mode => STRATEGY_DESCENDING, :force_access_control => false, :global_validators => Array.new } def validators_iterate_strategy if(@api_acl_mode == STRATEGY_DESCENDING) then return 'reverse_each' else return 'each' end end def self.defaults @@defaults end def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end ## Instruction: Move check_level method from variables.rb | Add some comments | Check for global validators or force_access_control ## Code After: module ACL def self.configure yield @config = Configuration.new ACL.config = @config end def self.config=(config) @config = config end def self.config @config ||=Configuration.new end def self.check_level(route,method) required_route = ACL::acl_routes_collection[route] required_route = Hash.new if required_route.nil? validators_to_call = required_route[method] if((validators_to_call.nil? || validators_to_call.empty?) && global_validators.empty?) then return ACL.config.force_access_control ? 0 : 1 elsif validators_to_call.nil? || validators_to_call.empty? then validators_to_call = {1 => []} #No access level defined but global validators must be called end keys = validators_to_call.keys.sort highest_level = 0 keys.send("#{ACL::config.validators_iterate_strategy}") do |access_level| pass = ACL::Validators.run_validators(validators_to_call[access_level]) if (pass==true) then highest_level = access_level break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_DESCENDING #Already on the highest level elsif (pass==false) break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_ASCENDING #Do not check for higher levels end end return highest_level end class Configuration attr_accessor :api_acl_mode, :force_access_control STRATEGY_DESCENDING = 1 #Check for validators starting on the highest access level STRATEGY_ASCENDING = 2 #Check for validators starting on the lowest access level @@defaults = { :api_acl_mode => STRATEGY_DESCENDING, :force_access_control => false } def validators_iterate_strategy if(@api_acl_mode == STRATEGY_DESCENDING) then return 'reverse_each' else return 'each' end end def self.defaults @@defaults end def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end
module ACL def self.configure yield @config = Configuration.new ACL.config = @config end def self.config=(config) @config = config end def self.config @config ||=Configuration.new end + def self.check_level(route,method) + required_route = ACL::acl_routes_collection[route] + required_route = Hash.new if required_route.nil? + validators_to_call = required_route[method] + if((validators_to_call.nil? || validators_to_call.empty?) && global_validators.empty?) then + return ACL.config.force_access_control ? 0 : 1 + elsif validators_to_call.nil? || validators_to_call.empty? then + validators_to_call = {1 => []} #No access level defined but global validators must be called + end + keys = validators_to_call.keys.sort + highest_level = 0 + keys.send("#{ACL::config.validators_iterate_strategy}") do |access_level| + pass = ACL::Validators.run_validators(validators_to_call[access_level]) + if (pass==true) then + highest_level = access_level + break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_DESCENDING #Already on the highest level + elsif (pass==false) + break if ACL::config.api_acl_mode == ACL::Configuration::STRATEGY_ASCENDING #Do not check for higher levels + end + end + return highest_level + end + class Configuration - attr_accessor :api_acl_mode, :force_access_control, :global_validators ? -------------------- + attr_accessor :api_acl_mode, :force_access_control - STRATEGY_DESCENDING = 1 - STRATEGY_ASCENDING = 2 + STRATEGY_DESCENDING = 1 #Check for validators starting on the highest access level + STRATEGY_ASCENDING = 2 #Check for validators starting on the lowest access level @@defaults = { :api_acl_mode => STRATEGY_DESCENDING, - :force_access_control => false, ? - + :force_access_control => false - :global_validators => Array.new } def validators_iterate_strategy if(@api_acl_mode == STRATEGY_DESCENDING) then return 'reverse_each' else return 'each' end end def self.defaults @@defaults end def initialize @@defaults.each_pair{|k,v| self.send("#{k}=",v)} end end end
32
0.727273
27
5
784950cfdf5661b343341cefbe346357438e64b9
lib/msal-common/src/authority/AuthorityOptions.ts
lib/msal-common/src/authority/AuthorityOptions.ts
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ProtocolMode } from "./ProtocolMode"; import { AzureRegionConfiguration } from "./AzureRegionConfiguration"; export type AuthorityOptions = { protocolMode: ProtocolMode; knownAuthorities: Array<string>; cloudDiscoveryMetadata: string; authorityMetadata: string; azureRegionConfiguration?: AzureRegionConfiguration; }; export enum AzureCloudInstance { // AzureCloudInstance is not specified. None, // Microsoft Azure public cloud AzurePublic = "https://login.microsoftonline.com", // Microsoft Chinese national cloud AzureChina = "https://login.chinacloudapi.cn", // Microsoft German national cloud ("Black Forest") AzureGermany = "https://login.microsoftonline.de", // US Government cloud AzureUsGovernment = "https://login.microsoftonline.us", }
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ProtocolMode } from "./ProtocolMode"; import { AzureRegionConfiguration } from "./AzureRegionConfiguration"; export type AuthorityOptions = { protocolMode: ProtocolMode; knownAuthorities: Array<string>; cloudDiscoveryMetadata: string; authorityMetadata: string; azureRegionConfiguration?: AzureRegionConfiguration; }; export enum AzureCloudInstance { // AzureCloudInstance is not specified. None, // Microsoft Azure public cloud AzurePublic = "https://login.microsoftonline.com", // Microsoft PPE AzurePpe = "https://login.windows-ppe.net", // Microsoft Chinese national cloud AzureChina = "https://login.chinacloudapi.cn", // Microsoft German national cloud ("Black Forest") AzureGermany = "https://login.microsoftonline.de", // US Government cloud AzureUsGovernment = "https://login.microsoftonline.us", }
Add PPE to azure cloud instance enum
Add PPE to azure cloud instance enum
TypeScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js
typescript
## Code Before: /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ProtocolMode } from "./ProtocolMode"; import { AzureRegionConfiguration } from "./AzureRegionConfiguration"; export type AuthorityOptions = { protocolMode: ProtocolMode; knownAuthorities: Array<string>; cloudDiscoveryMetadata: string; authorityMetadata: string; azureRegionConfiguration?: AzureRegionConfiguration; }; export enum AzureCloudInstance { // AzureCloudInstance is not specified. None, // Microsoft Azure public cloud AzurePublic = "https://login.microsoftonline.com", // Microsoft Chinese national cloud AzureChina = "https://login.chinacloudapi.cn", // Microsoft German national cloud ("Black Forest") AzureGermany = "https://login.microsoftonline.de", // US Government cloud AzureUsGovernment = "https://login.microsoftonline.us", } ## Instruction: Add PPE to azure cloud instance enum ## Code After: /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ProtocolMode } from "./ProtocolMode"; import { AzureRegionConfiguration } from "./AzureRegionConfiguration"; export type AuthorityOptions = { protocolMode: ProtocolMode; knownAuthorities: Array<string>; cloudDiscoveryMetadata: string; authorityMetadata: string; azureRegionConfiguration?: AzureRegionConfiguration; }; export enum AzureCloudInstance { // AzureCloudInstance is not specified. None, // Microsoft Azure public cloud AzurePublic = "https://login.microsoftonline.com", // Microsoft PPE AzurePpe = "https://login.windows-ppe.net", // Microsoft Chinese national cloud AzureChina = "https://login.chinacloudapi.cn", // Microsoft German national cloud ("Black Forest") AzureGermany = "https://login.microsoftonline.de", // US Government cloud AzureUsGovernment = "https://login.microsoftonline.us", }
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ProtocolMode } from "./ProtocolMode"; import { AzureRegionConfiguration } from "./AzureRegionConfiguration"; export type AuthorityOptions = { protocolMode: ProtocolMode; knownAuthorities: Array<string>; cloudDiscoveryMetadata: string; authorityMetadata: string; azureRegionConfiguration?: AzureRegionConfiguration; }; export enum AzureCloudInstance { // AzureCloudInstance is not specified. None, // Microsoft Azure public cloud AzurePublic = "https://login.microsoftonline.com", + // Microsoft PPE + AzurePpe = "https://login.windows-ppe.net", + // Microsoft Chinese national cloud AzureChina = "https://login.chinacloudapi.cn", // Microsoft German national cloud ("Black Forest") AzureGermany = "https://login.microsoftonline.de", // US Government cloud AzureUsGovernment = "https://login.microsoftonline.us", }
3
0.09375
3
0
0d327d6a5a20a868ca2dcc3f755c365dc6d0de68
README.md
README.md
[![CircleCI](https://circleci.com/gh/prontotools/zendesk-tickets-machine.svg?style=svg)](https://circleci.com/gh/prontotools/zendesk-tickets-machine) Machine that helps us create Zendesk tickets using our defined ticket templates ## Development Setup Mac OS or Linux: ```sh touch .env ``` This `.env` file keeps the configuration. This file can be left empty like this. ```sh ZENDESK_URL=xxx ZENDESK_API_URL=xxx ZENDESK_API_USER=xxx ZENDESK_API_TOKEN=xxx SENTRY_DSN=xxx FIREBASE_API_KEY=xxx FIREBASE_AUTH_DOMAIN=xxx FIREBASE_DATABASE_URL=xxx FIREBASE_PROJECT_ID=xxx FIREBASE_STORAGE_BUCKET=xxx FIREBASE_MESSAGING_SENDER_ID=xxx DEFAULT_ZENDESK_USER_ID=xxx ``` To start the app, run: ```sh docker-compose up --build ``` To create a superuser, run: ```sh docker exec -it zendeskticketsmachine_app_1 bash cd zendesk_tickets_machine python manage.py createsuperuser ``` The app will run at http://localhost:8090/.
[![CircleCI](https://circleci.com/gh/prontotools/zendesk-tickets-machine.svg?style=svg)](https://circleci.com/gh/prontotools/zendesk-tickets-machine) [![BCH compliance](https://bettercodehub.com/edge/badge/prontotools/zendesk-tickets-machine?branch=develop)](https://bettercodehub.com/) Machine that helps us create Zendesk tickets using our defined ticket templates ## Development Setup Mac OS or Linux: ```sh touch .env ``` This `.env` file keeps the configuration. This file can be left empty like this. ```sh ZENDESK_URL=xxx ZENDESK_API_URL=xxx ZENDESK_API_USER=xxx ZENDESK_API_TOKEN=xxx SENTRY_DSN=xxx FIREBASE_API_KEY=xxx FIREBASE_AUTH_DOMAIN=xxx FIREBASE_DATABASE_URL=xxx FIREBASE_PROJECT_ID=xxx FIREBASE_STORAGE_BUCKET=xxx FIREBASE_MESSAGING_SENDER_ID=xxx DEFAULT_ZENDESK_USER_ID=xxx ``` To start the app, run: ```sh docker-compose up --build ``` To create a superuser, run: ```sh docker exec -it zendeskticketsmachine_app_1 bash cd zendesk_tickets_machine python manage.py createsuperuser ``` The app will run at http://localhost:8090/.
Add Better Code Hub badge :bear:
Add Better Code Hub badge :bear:
Markdown
mit
prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine,prontotools/zendesk-tickets-machine
markdown
## Code Before: [![CircleCI](https://circleci.com/gh/prontotools/zendesk-tickets-machine.svg?style=svg)](https://circleci.com/gh/prontotools/zendesk-tickets-machine) Machine that helps us create Zendesk tickets using our defined ticket templates ## Development Setup Mac OS or Linux: ```sh touch .env ``` This `.env` file keeps the configuration. This file can be left empty like this. ```sh ZENDESK_URL=xxx ZENDESK_API_URL=xxx ZENDESK_API_USER=xxx ZENDESK_API_TOKEN=xxx SENTRY_DSN=xxx FIREBASE_API_KEY=xxx FIREBASE_AUTH_DOMAIN=xxx FIREBASE_DATABASE_URL=xxx FIREBASE_PROJECT_ID=xxx FIREBASE_STORAGE_BUCKET=xxx FIREBASE_MESSAGING_SENDER_ID=xxx DEFAULT_ZENDESK_USER_ID=xxx ``` To start the app, run: ```sh docker-compose up --build ``` To create a superuser, run: ```sh docker exec -it zendeskticketsmachine_app_1 bash cd zendesk_tickets_machine python manage.py createsuperuser ``` The app will run at http://localhost:8090/. ## Instruction: Add Better Code Hub badge :bear: ## Code After: [![CircleCI](https://circleci.com/gh/prontotools/zendesk-tickets-machine.svg?style=svg)](https://circleci.com/gh/prontotools/zendesk-tickets-machine) [![BCH compliance](https://bettercodehub.com/edge/badge/prontotools/zendesk-tickets-machine?branch=develop)](https://bettercodehub.com/) Machine that helps us create Zendesk tickets using our defined ticket templates ## Development Setup Mac OS or Linux: ```sh touch .env ``` This `.env` file keeps the configuration. This file can be left empty like this. ```sh ZENDESK_URL=xxx ZENDESK_API_URL=xxx ZENDESK_API_USER=xxx ZENDESK_API_TOKEN=xxx SENTRY_DSN=xxx FIREBASE_API_KEY=xxx FIREBASE_AUTH_DOMAIN=xxx FIREBASE_DATABASE_URL=xxx FIREBASE_PROJECT_ID=xxx FIREBASE_STORAGE_BUCKET=xxx FIREBASE_MESSAGING_SENDER_ID=xxx DEFAULT_ZENDESK_USER_ID=xxx ``` To start the app, run: ```sh docker-compose up --build ``` To create a superuser, run: ```sh docker exec -it zendeskticketsmachine_app_1 bash cd zendesk_tickets_machine python manage.py createsuperuser ``` The app will run at http://localhost:8090/.
[![CircleCI](https://circleci.com/gh/prontotools/zendesk-tickets-machine.svg?style=svg)](https://circleci.com/gh/prontotools/zendesk-tickets-machine) + [![BCH compliance](https://bettercodehub.com/edge/badge/prontotools/zendesk-tickets-machine?branch=develop)](https://bettercodehub.com/) Machine that helps us create Zendesk tickets using our defined ticket templates ## Development Setup Mac OS or Linux: ```sh touch .env ``` This `.env` file keeps the configuration. This file can be left empty like this. ```sh ZENDESK_URL=xxx ZENDESK_API_URL=xxx ZENDESK_API_USER=xxx ZENDESK_API_TOKEN=xxx SENTRY_DSN=xxx FIREBASE_API_KEY=xxx FIREBASE_AUTH_DOMAIN=xxx FIREBASE_DATABASE_URL=xxx FIREBASE_PROJECT_ID=xxx FIREBASE_STORAGE_BUCKET=xxx FIREBASE_MESSAGING_SENDER_ID=xxx DEFAULT_ZENDESK_USER_ID=xxx ``` To start the app, run: ```sh docker-compose up --build ``` To create a superuser, run: ```sh docker exec -it zendeskticketsmachine_app_1 bash cd zendesk_tickets_machine python manage.py createsuperuser ``` The app will run at http://localhost:8090/.
1
0.022727
1
0
d99dd5e46390219dfec9ad2892720746161b6400
lims2/entrypoint.d/get-cron.sh
lims2/entrypoint.d/get-cron.sh
( sleep 3 php /usr/local/share/lims2/cli/get_cron.php -u genee > /etc/cron.d/lims2 ) &
( sleep 3 php ${DOCKER_LIMS2_DIR}/cli/get_cron.php -u genee > /etc/cron.d/lims2 ) &
Use `DOCKER_LIMS2_DIR` instead of `/usr/local/share/lims2/`.
Use `DOCKER_LIMS2_DIR` instead of `/usr/local/share/lims2/`.
Shell
mit
iamfat/dockerfiles
shell
## Code Before: ( sleep 3 php /usr/local/share/lims2/cli/get_cron.php -u genee > /etc/cron.d/lims2 ) & ## Instruction: Use `DOCKER_LIMS2_DIR` instead of `/usr/local/share/lims2/`. ## Code After: ( sleep 3 php ${DOCKER_LIMS2_DIR}/cli/get_cron.php -u genee > /etc/cron.d/lims2 ) &
( sleep 3 - php /usr/local/share/lims2/cli/get_cron.php -u genee > /etc/cron.d/lims2 + php ${DOCKER_LIMS2_DIR}/cli/get_cron.php -u genee > /etc/cron.d/lims2 ) &
2
0.4
1
1
50e3ac7080135a8e9ea087c42b8d52ee69ff00c6
atom/keymap.cson
atom/keymap.cson
'atom-text-editor.vim-mode-plus': # mode switch 'ctrl-space': 'vim-mode-plus:reset-normal-mode' # undo/redo 'ctrl-u': 'vim-mode-plus:redo' # motions 'ctrl-h': 'vim-mode-plus:previous-tab' 'ctrl-l': 'vim-mode-plus:next-tab' 'ctrl-k': 'vim-mode-plus:scroll-half-screen-up' 'ctrl-j': 'vim-mode-plus:scroll-half-screen-down' # file operations 'ctrl-s': 'custom:vim-save' 'ctrl-d': 'tabs:close-tab' # search 'ctrl-f': 'vim-mode-plus:search-current-word' # code navigation 'ctrl-t': 'nuclide-navigation-stack:navigate-backwards'
'atom-text-editor.vim-mode-plus': # mode switch 'ctrl-space': 'vim-mode-plus:reset-normal-mode' # undo/redo 'ctrl-u': 'vim-mode-plus:redo' # motions 'ctrl-h': 'vim-mode-plus:previous-tab' 'ctrl-l': 'vim-mode-plus:next-tab' 'ctrl-k': 'vim-mode-plus:scroll-half-screen-up' 'ctrl-j': 'vim-mode-plus:scroll-half-screen-down' # file operations 'ctrl-s': 'custom:vim-save' 'ctrl-d': 'tabs:close-tab' 'ctrl-shift-t': 'pane:reopen-closed-item' # search 'ctrl-f': 'vim-mode-plus:search-current-word' # code navigation 'ctrl-t': 'nuclide-navigation-stack:navigate-backwards'
Fix Atom reopen closed tab
Fix Atom reopen closed tab
CoffeeScript
unlicense
cmcginty/dotfiles,cmcginty/dotfiles
coffeescript
## Code Before: 'atom-text-editor.vim-mode-plus': # mode switch 'ctrl-space': 'vim-mode-plus:reset-normal-mode' # undo/redo 'ctrl-u': 'vim-mode-plus:redo' # motions 'ctrl-h': 'vim-mode-plus:previous-tab' 'ctrl-l': 'vim-mode-plus:next-tab' 'ctrl-k': 'vim-mode-plus:scroll-half-screen-up' 'ctrl-j': 'vim-mode-plus:scroll-half-screen-down' # file operations 'ctrl-s': 'custom:vim-save' 'ctrl-d': 'tabs:close-tab' # search 'ctrl-f': 'vim-mode-plus:search-current-word' # code navigation 'ctrl-t': 'nuclide-navigation-stack:navigate-backwards' ## Instruction: Fix Atom reopen closed tab ## Code After: 'atom-text-editor.vim-mode-plus': # mode switch 'ctrl-space': 'vim-mode-plus:reset-normal-mode' # undo/redo 'ctrl-u': 'vim-mode-plus:redo' # motions 'ctrl-h': 'vim-mode-plus:previous-tab' 'ctrl-l': 'vim-mode-plus:next-tab' 'ctrl-k': 'vim-mode-plus:scroll-half-screen-up' 'ctrl-j': 'vim-mode-plus:scroll-half-screen-down' # file operations 'ctrl-s': 'custom:vim-save' 'ctrl-d': 'tabs:close-tab' 'ctrl-shift-t': 'pane:reopen-closed-item' # search 'ctrl-f': 'vim-mode-plus:search-current-word' # code navigation 'ctrl-t': 'nuclide-navigation-stack:navigate-backwards'
'atom-text-editor.vim-mode-plus': # mode switch 'ctrl-space': 'vim-mode-plus:reset-normal-mode' # undo/redo 'ctrl-u': 'vim-mode-plus:redo' # motions 'ctrl-h': 'vim-mode-plus:previous-tab' 'ctrl-l': 'vim-mode-plus:next-tab' 'ctrl-k': 'vim-mode-plus:scroll-half-screen-up' 'ctrl-j': 'vim-mode-plus:scroll-half-screen-down' # file operations 'ctrl-s': 'custom:vim-save' 'ctrl-d': 'tabs:close-tab' + 'ctrl-shift-t': 'pane:reopen-closed-item' # search 'ctrl-f': 'vim-mode-plus:search-current-word' # code navigation 'ctrl-t': 'nuclide-navigation-stack:navigate-backwards'
1
0.043478
1
0
75e5136fe8ab4e91dec554dc29eb1920b6ffbfbc
views/index.slim
views/index.slim
.row .small-12.columns == partial :_dashboard .small-20.columns == partial :_profile .marginT10 .row .small-32.columns label Username or email .small-32.columns input#username-disabled type="text" disabled="" placeholder="vasilakisfil" .small-32.columns label Password .small-32.columns input type="password" .row .small-12.columns == partial :_trends .marginT10 == partial :_twitter_links .small-20.columns == partial :_tweets
.row .small-12.columns == partial :_dashboard .small-20.columns == partial :_profile .marginT10 .row .small-12.columns == partial :_trends .marginT10 == partial :_twitter_links .small-20.columns == partial :_tweets
Remove unwanted input tags in main page
Remove unwanted input tags in main page
Slim
mit
vasilakisfil/my-twitter,vasilakisfil/my-twitter
slim
## Code Before: .row .small-12.columns == partial :_dashboard .small-20.columns == partial :_profile .marginT10 .row .small-32.columns label Username or email .small-32.columns input#username-disabled type="text" disabled="" placeholder="vasilakisfil" .small-32.columns label Password .small-32.columns input type="password" .row .small-12.columns == partial :_trends .marginT10 == partial :_twitter_links .small-20.columns == partial :_tweets ## Instruction: Remove unwanted input tags in main page ## Code After: .row .small-12.columns == partial :_dashboard .small-20.columns == partial :_profile .marginT10 .row .small-12.columns == partial :_trends .marginT10 == partial :_twitter_links .small-20.columns == partial :_tweets
.row .small-12.columns == partial :_dashboard .small-20.columns == partial :_profile .marginT10 .row - .small-32.columns - label Username or email - .small-32.columns - input#username-disabled type="text" disabled="" placeholder="vasilakisfil" - .small-32.columns - label Password - .small-32.columns - input type="password" - .row .small-12.columns == partial :_trends .marginT10 == partial :_twitter_links .small-20.columns == partial :_tweets
9
0.409091
0
9
9aec7a51ff7c392d671e6fda4ea41d4a2c7a7ee7
src/main/java/com/suse/saltstack/netapi/datatypes/Event.java
src/main/java/com/suse/saltstack/netapi/datatypes/Event.java
package com.suse.saltstack.netapi.datatypes; import java.util.HashMap; /** * Parse events into objects. */ public class Event { private String tag; private HashMap<String, Object> data; /** * Return this event's tag. * @return the tag */ public String getTag() { return tag; } /** * Return this event's data. * @return the data */ public HashMap<String, Object> getData() { return data; } }
package com.suse.saltstack.netapi.datatypes; import java.util.Map; /** * Parse events into objects. */ public class Event { private String tag; private Map<String, Object> data; /** * Return this event's tag. * @return the tag */ public String getTag() { return tag; } /** * Return this event's data. * @return the data */ public Map<String, Object> getData() { return data; } }
Make data being a Map instead of HashMap
Make data being a Map instead of HashMap
Java
mit
jkandasa/saltstack-netapi-client-java,mbologna/saltstack-netapi-client-java,SUSE/saltstack-netapi-client-java,jkandasa/saltstack-netapi-client-java,mbologna/salt-netapi-client,lucidd/saltstack-netapi-client-java,mbologna/saltstack-netapi-client-java,lucidd/saltstack-netapi-client-java,SUSE/salt-netapi-client,SUSE/saltstack-netapi-client-java,mbologna/salt-netapi-client
java
## Code Before: package com.suse.saltstack.netapi.datatypes; import java.util.HashMap; /** * Parse events into objects. */ public class Event { private String tag; private HashMap<String, Object> data; /** * Return this event's tag. * @return the tag */ public String getTag() { return tag; } /** * Return this event's data. * @return the data */ public HashMap<String, Object> getData() { return data; } } ## Instruction: Make data being a Map instead of HashMap ## Code After: package com.suse.saltstack.netapi.datatypes; import java.util.Map; /** * Parse events into objects. */ public class Event { private String tag; private Map<String, Object> data; /** * Return this event's tag. * @return the tag */ public String getTag() { return tag; } /** * Return this event's data. * @return the data */ public Map<String, Object> getData() { return data; } }
package com.suse.saltstack.netapi.datatypes; - import java.util.HashMap; ? ---- + import java.util.Map; /** * Parse events into objects. */ public class Event { private String tag; - private HashMap<String, Object> data; ? ---- + private Map<String, Object> data; /** * Return this event's tag. * @return the tag */ public String getTag() { return tag; } /** * Return this event's data. * @return the data */ - public HashMap<String, Object> getData() { ? ---- + public Map<String, Object> getData() { return data; } }
6
0.214286
3
3
724fb86c9d70369eef1a9a84f78354495c436115
src/system/tww.rs
src/system/tww.rs
use Addr; use std::mem::transmute; use system::memory::{read, write}; pub fn random() -> f64 { let random = unsafe { transmute::<Addr, extern "C" fn() -> f64>(0x80243b40) }; random() } pub fn cdyl_init_async() { let cdyl_init_async = unsafe { transmute::<Addr, extern "C" fn()>(0x80022A88) }; cdyl_init_async(); } pub fn get_frame_count() -> u32 { read(0x80396218) } pub fn is_pause_menu_up() -> bool { read(0x803EA537) // alternative: 0x80396228 } pub fn set_wind(direction: u8) { write(0x803D894A, direction << 5); }
use Addr; use std::mem::transmute; use system::memory::{read, write}; pub fn random() -> f64 { let random = unsafe { transmute::<Addr, extern "C" fn() -> f64>(0x80243b40) }; random() } pub fn cdyl_init_async() { let cdyl_init_async = unsafe { transmute::<Addr, extern "C" fn()>(0x80022A88) }; cdyl_init_async(); } pub fn dmeter_rupy_init(addr: Addr) { let dmeter_rupy_init = unsafe { transmute::<Addr, extern "C" fn(Addr)>(0x801F7868) }; dmeter_rupy_init(addr); } pub fn get_frame_count() -> u32 { read(0x80396218) } pub fn is_pause_menu_up() -> bool { read(0x803EA537) // alternative: 0x80396228 } pub fn set_wind(direction: u8) { write(0x803D894A, direction << 5); }
Add wrapper function for Rupee Init method
Add wrapper function for Rupee Init method
Rust
mit
CryZe/libtww,CryZe/libtww,CryZe/libtww,CryZe/libtww,CryZe/libtww,CryZe/libtww
rust
## Code Before: use Addr; use std::mem::transmute; use system::memory::{read, write}; pub fn random() -> f64 { let random = unsafe { transmute::<Addr, extern "C" fn() -> f64>(0x80243b40) }; random() } pub fn cdyl_init_async() { let cdyl_init_async = unsafe { transmute::<Addr, extern "C" fn()>(0x80022A88) }; cdyl_init_async(); } pub fn get_frame_count() -> u32 { read(0x80396218) } pub fn is_pause_menu_up() -> bool { read(0x803EA537) // alternative: 0x80396228 } pub fn set_wind(direction: u8) { write(0x803D894A, direction << 5); } ## Instruction: Add wrapper function for Rupee Init method ## Code After: use Addr; use std::mem::transmute; use system::memory::{read, write}; pub fn random() -> f64 { let random = unsafe { transmute::<Addr, extern "C" fn() -> f64>(0x80243b40) }; random() } pub fn cdyl_init_async() { let cdyl_init_async = unsafe { transmute::<Addr, extern "C" fn()>(0x80022A88) }; cdyl_init_async(); } pub fn dmeter_rupy_init(addr: Addr) { let dmeter_rupy_init = unsafe { transmute::<Addr, extern "C" fn(Addr)>(0x801F7868) }; dmeter_rupy_init(addr); } pub fn get_frame_count() -> u32 { read(0x80396218) } pub fn is_pause_menu_up() -> bool { read(0x803EA537) // alternative: 0x80396228 } pub fn set_wind(direction: u8) { write(0x803D894A, direction << 5); }
use Addr; use std::mem::transmute; use system::memory::{read, write}; pub fn random() -> f64 { let random = unsafe { transmute::<Addr, extern "C" fn() -> f64>(0x80243b40) }; random() } pub fn cdyl_init_async() { let cdyl_init_async = unsafe { transmute::<Addr, extern "C" fn()>(0x80022A88) }; cdyl_init_async(); } + pub fn dmeter_rupy_init(addr: Addr) { + let dmeter_rupy_init = unsafe { transmute::<Addr, extern "C" fn(Addr)>(0x801F7868) }; + dmeter_rupy_init(addr); + } + pub fn get_frame_count() -> u32 { read(0x80396218) } pub fn is_pause_menu_up() -> bool { read(0x803EA537) // alternative: 0x80396228 } pub fn set_wind(direction: u8) { write(0x803D894A, direction << 5); }
5
0.2
5
0
8f5abde896eff6f3b39a83b898019575d7703312
.build.yml
.build.yml
image: archlinux packages: - python - python-pip sources: - https://github.com/kragniz/python-etcd3 environment: TEST_ETCD_VERSION: v3.3.10 tasks: - test: | cd python-etcd3 pip install --progress-bar off -U tox curl -L https://github.com/coreos/etcd/releases/download/$TEST_ETCD_VERSION/etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz -o etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz tar xzvf etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz export PATH=$PATH:~/.local/bin:etcd-$TEST_ETCD_VERSION-linux-amd64 tox
image: archlinux packages: - python - python-pip - python39 sources: - https://github.com/kragniz/python-etcd3 environment: TEST_ETCD_VERSION: v3.3.10 tasks: - test: | cd python-etcd3 pip install --progress-bar off -U tox curl -L https://github.com/coreos/etcd/releases/download/$TEST_ETCD_VERSION/etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz -o etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz tar xzvf etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz export PATH=$PATH:~/.local/bin:etcd-$TEST_ETCD_VERSION-linux-amd64 tox
Install Python3.9 before running the CI script
Install Python3.9 before running the CI script
YAML
apache-2.0
kragniz/python-etcd3
yaml
## Code Before: image: archlinux packages: - python - python-pip sources: - https://github.com/kragniz/python-etcd3 environment: TEST_ETCD_VERSION: v3.3.10 tasks: - test: | cd python-etcd3 pip install --progress-bar off -U tox curl -L https://github.com/coreos/etcd/releases/download/$TEST_ETCD_VERSION/etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz -o etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz tar xzvf etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz export PATH=$PATH:~/.local/bin:etcd-$TEST_ETCD_VERSION-linux-amd64 tox ## Instruction: Install Python3.9 before running the CI script ## Code After: image: archlinux packages: - python - python-pip - python39 sources: - https://github.com/kragniz/python-etcd3 environment: TEST_ETCD_VERSION: v3.3.10 tasks: - test: | cd python-etcd3 pip install --progress-bar off -U tox curl -L https://github.com/coreos/etcd/releases/download/$TEST_ETCD_VERSION/etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz -o etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz tar xzvf etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz export PATH=$PATH:~/.local/bin:etcd-$TEST_ETCD_VERSION-linux-amd64 tox
image: archlinux packages: - python - python-pip + - python39 sources: - https://github.com/kragniz/python-etcd3 environment: TEST_ETCD_VERSION: v3.3.10 tasks: - test: | cd python-etcd3 pip install --progress-bar off -U tox curl -L https://github.com/coreos/etcd/releases/download/$TEST_ETCD_VERSION/etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz -o etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz tar xzvf etcd-$TEST_ETCD_VERSION-linux-amd64.tar.gz export PATH=$PATH:~/.local/bin:etcd-$TEST_ETCD_VERSION-linux-amd64 tox
1
0.058824
1
0
bb2249998637c8c56cb8b7cd119c1d8d132e522e
viewer_examples/plugins/canny_simple.py
viewer_examples/plugins/canny_simple.py
from skimage import data from skimage.filter import canny from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider from skimage.viewer.plugins.overlayplugin import OverlayPlugin image = data.camera() # Note: ImageViewer must be called before Plugin b/c it starts the event loop. viewer = ImageViewer(image) # You can create a UI for a filter just by passing a filter function... plugin = OverlayPlugin(image_filter=canny) # ... and adding widgets to adjust parameter values. plugin += Slider('sigma', 0, 5, update_on='release') plugin += Slider('low threshold', 0, 255, update_on='release') plugin += Slider('high threshold', 0, 255, update_on='release') # Finally, attach the plugin to the image viewer. viewer += plugin viewer.show()
from skimage import data from skimage.filter import canny from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider from skimage.viewer.widgets.history import SaveButtons from skimage.viewer.plugins.overlayplugin import OverlayPlugin image = data.camera() # You can create a UI for a filter just by passing a filter function... plugin = OverlayPlugin(image_filter=canny) # ... and adding widgets to adjust parameter values. plugin += Slider('sigma', 0, 5, update_on='release') plugin += Slider('low threshold', 0, 255, update_on='release') plugin += Slider('high threshold', 0, 255, update_on='release') # ... and we can also add buttons to save the overlay: plugin += SaveButtons(name='Save overlay to:') # Finally, attach the plugin to an image viewer. viewer = ImageViewer(image) viewer += plugin viewer.show()
Add save buttons to viewer example.
Add save buttons to viewer example.
Python
bsd-3-clause
jwiggins/scikit-image,WarrenWeckesser/scikits-image,rjeli/scikit-image,almarklein/scikit-image,michaelaye/scikit-image,newville/scikit-image,Britefury/scikit-image,blink1073/scikit-image,pratapvardhan/scikit-image,ClinicalGraphics/scikit-image,pratapvardhan/scikit-image,dpshelio/scikit-image,chintak/scikit-image,almarklein/scikit-image,paalge/scikit-image,keflavich/scikit-image,michaelpacer/scikit-image,bennlich/scikit-image,paalge/scikit-image,chintak/scikit-image,bsipocz/scikit-image,chriscrosscutler/scikit-image,SamHames/scikit-image,juliusbierk/scikit-image,WarrenWeckesser/scikits-image,SamHames/scikit-image,warmspringwinds/scikit-image,Britefury/scikit-image,michaelaye/scikit-image,ajaybhat/scikit-image,robintw/scikit-image,dpshelio/scikit-image,SamHames/scikit-image,ofgulban/scikit-image,ClinicalGraphics/scikit-image,michaelpacer/scikit-image,ofgulban/scikit-image,Midafi/scikit-image,chintak/scikit-image,emon10005/scikit-image,rjeli/scikit-image,almarklein/scikit-image,emon10005/scikit-image,Midafi/scikit-image,ofgulban/scikit-image,oew1v07/scikit-image,keflavich/scikit-image,vighneshbirodkar/scikit-image,oew1v07/scikit-image,chintak/scikit-image,jwiggins/scikit-image,Hiyorimi/scikit-image,bennlich/scikit-image,rjeli/scikit-image,newville/scikit-image,paalge/scikit-image,almarklein/scikit-image,juliusbierk/scikit-image,youprofit/scikit-image,vighneshbirodkar/scikit-image,SamHames/scikit-image,GaZ3ll3/scikit-image,vighneshbirodkar/scikit-image,ajaybhat/scikit-image,robintw/scikit-image,warmspringwinds/scikit-image,GaZ3ll3/scikit-image,Hiyorimi/scikit-image,blink1073/scikit-image,chriscrosscutler/scikit-image,youprofit/scikit-image,bsipocz/scikit-image
python
## Code Before: from skimage import data from skimage.filter import canny from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider from skimage.viewer.plugins.overlayplugin import OverlayPlugin image = data.camera() # Note: ImageViewer must be called before Plugin b/c it starts the event loop. viewer = ImageViewer(image) # You can create a UI for a filter just by passing a filter function... plugin = OverlayPlugin(image_filter=canny) # ... and adding widgets to adjust parameter values. plugin += Slider('sigma', 0, 5, update_on='release') plugin += Slider('low threshold', 0, 255, update_on='release') plugin += Slider('high threshold', 0, 255, update_on='release') # Finally, attach the plugin to the image viewer. viewer += plugin viewer.show() ## Instruction: Add save buttons to viewer example. ## Code After: from skimage import data from skimage.filter import canny from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider from skimage.viewer.widgets.history import SaveButtons from skimage.viewer.plugins.overlayplugin import OverlayPlugin image = data.camera() # You can create a UI for a filter just by passing a filter function... plugin = OverlayPlugin(image_filter=canny) # ... and adding widgets to adjust parameter values. plugin += Slider('sigma', 0, 5, update_on='release') plugin += Slider('low threshold', 0, 255, update_on='release') plugin += Slider('high threshold', 0, 255, update_on='release') # ... and we can also add buttons to save the overlay: plugin += SaveButtons(name='Save overlay to:') # Finally, attach the plugin to an image viewer. viewer = ImageViewer(image) viewer += plugin viewer.show()
from skimage import data from skimage.filter import canny from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider + from skimage.viewer.widgets.history import SaveButtons from skimage.viewer.plugins.overlayplugin import OverlayPlugin image = data.camera() + - # Note: ImageViewer must be called before Plugin b/c it starts the event loop. - viewer = ImageViewer(image) # You can create a UI for a filter just by passing a filter function... plugin = OverlayPlugin(image_filter=canny) # ... and adding widgets to adjust parameter values. plugin += Slider('sigma', 0, 5, update_on='release') plugin += Slider('low threshold', 0, 255, update_on='release') plugin += Slider('high threshold', 0, 255, update_on='release') + # ... and we can also add buttons to save the overlay: + plugin += SaveButtons(name='Save overlay to:') + - # Finally, attach the plugin to the image viewer. ? ^^^ + # Finally, attach the plugin to an image viewer. ? ^^ + viewer = ImageViewer(image) viewer += plugin viewer.show()
10
0.5
7
3
a3c0dfbd2cd7e4e7cdb5665ab63fb91055afe635
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: docker: - image: dideler/fish-shell:3.0.0 shell: fish steps: - checkout - run: name: Install fisher command: | apt-get install --yes --quiet curl curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher fisher version - run: name: Install gh command: | fisher add < fishfile fisher add (pwd) - run: name: Run tests command: fishtape test/*.fish
version: 2 jobs: build: docker: - image: dideler/fish-shell:3.0.0 shell: fish steps: - checkout - run: name: Install fisher command: | apt-get update --quiet apt-get install --yes --quiet curl curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher fisher version - run: name: Install gh command: | fisher add < fishfile fisher add (pwd) - run: name: Run tests command: fishtape test/*.fish
Fix CI build: update before installing curl
:construction_worker: Fix CI build: update before installing curl https://circleci.com/gh/dideler/fish-cd-git/76
YAML
mit
dideler/fish-cd-git
yaml
## Code Before: version: 2 jobs: build: docker: - image: dideler/fish-shell:3.0.0 shell: fish steps: - checkout - run: name: Install fisher command: | apt-get install --yes --quiet curl curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher fisher version - run: name: Install gh command: | fisher add < fishfile fisher add (pwd) - run: name: Run tests command: fishtape test/*.fish ## Instruction: :construction_worker: Fix CI build: update before installing curl https://circleci.com/gh/dideler/fish-cd-git/76 ## Code After: version: 2 jobs: build: docker: - image: dideler/fish-shell:3.0.0 shell: fish steps: - checkout - run: name: Install fisher command: | apt-get update --quiet apt-get install --yes --quiet curl curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher fisher version - run: name: Install gh command: | fisher add < fishfile fisher add (pwd) - run: name: Run tests command: fishtape test/*.fish
version: 2 jobs: build: docker: - image: dideler/fish-shell:3.0.0 shell: fish steps: - checkout - run: name: Install fisher command: | + apt-get update --quiet apt-get install --yes --quiet curl curl -sLo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher fisher version - run: name: Install gh command: | fisher add < fishfile fisher add (pwd) - run: name: Run tests command: fishtape test/*.fish
1
0.043478
1
0
dea4fb5ce90f786f3e529f00486f962e7944a604
sni/templates/blogpost-md.html
sni/templates/blogpost-md.html
<!-- extend base layout --> {% extends "blogpost.html" %} {% import "helpers.html" as helpers %} {% block post %} <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> <div class="page-header"> <h1 class="text-center"> {{ bp.title }} <br> <small>{{bp.author[0].first}} {{bp.author[0].middle}} {{bp.author[0].last}}</small> </h1> <h4 class="text-center"></h4> <p> <img class="img-responsive center-block img-rounded" alt="{{page.meta.image_alt}}" src="/static/img/mempool/{{bp.slug}}/{{page.meta.image}}"/> </p> </div> {{ page.html|safe }} <div class = "text-center"> <p> <a class="btn btn-primary" href="bitcoin:{{page.meta.btc_address}}"> Donate to {{bp.author[0].first}} </a> </p> </div> </div> {%endblock%}
<!-- extend base layout --> {% extends "blogpost.html" %} {% import "helpers.html" as helpers %} {% block post %} <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> <div class="page-header"> <h1 class="text-center"> {{ bp.title }} <br> <small>{{bp.author[0].first}} {{bp.author[0].middle}} {{bp.author[0].last}}</small> </h1> <h4 class="text-center">{{bp.date.strftime('%B %d, %Y')}}</h4> <br> <p> <img class="img-responsive center-block img-rounded" alt="{{page.meta.image_alt}}" src="/static/img/mempool/{{bp.slug}}/{{page.meta.image}}"/> </p> </div> {{ page.html|safe }} <div class = "text-center"> <p> <a class="btn btn-primary" href="bitcoin:{{page.meta.btc_address}}"> Donate to {{bp.author[0].first}} </a> </p> </div> </div> {%endblock%}
Add date to md blogpost template
Add date to md blogpost template
HTML
agpl-3.0
NakamotoInstitute/nakamotoinstitute.org,NakamotoInstitute/nakamotoinstitute.org,NakamotoInstitute/nakamotoinstitute.org,NakamotoInstitute/nakamotoinstitute.org,NakamotoInstitute/nakamotoinstitute.org
html
## Code Before: <!-- extend base layout --> {% extends "blogpost.html" %} {% import "helpers.html" as helpers %} {% block post %} <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> <div class="page-header"> <h1 class="text-center"> {{ bp.title }} <br> <small>{{bp.author[0].first}} {{bp.author[0].middle}} {{bp.author[0].last}}</small> </h1> <h4 class="text-center"></h4> <p> <img class="img-responsive center-block img-rounded" alt="{{page.meta.image_alt}}" src="/static/img/mempool/{{bp.slug}}/{{page.meta.image}}"/> </p> </div> {{ page.html|safe }} <div class = "text-center"> <p> <a class="btn btn-primary" href="bitcoin:{{page.meta.btc_address}}"> Donate to {{bp.author[0].first}} </a> </p> </div> </div> {%endblock%} ## Instruction: Add date to md blogpost template ## Code After: <!-- extend base layout --> {% extends "blogpost.html" %} {% import "helpers.html" as helpers %} {% block post %} <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> <div class="page-header"> <h1 class="text-center"> {{ bp.title }} <br> <small>{{bp.author[0].first}} {{bp.author[0].middle}} {{bp.author[0].last}}</small> </h1> <h4 class="text-center">{{bp.date.strftime('%B %d, %Y')}}</h4> <br> <p> <img class="img-responsive center-block img-rounded" alt="{{page.meta.image_alt}}" src="/static/img/mempool/{{bp.slug}}/{{page.meta.image}}"/> </p> </div> {{ page.html|safe }} <div class = "text-center"> <p> <a class="btn btn-primary" href="bitcoin:{{page.meta.btc_address}}"> Donate to {{bp.author[0].first}} </a> </p> </div> </div> {%endblock%}
<!-- extend base layout --> {% extends "blogpost.html" %} {% import "helpers.html" as helpers %} {% block post %} <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> <div class="page-header"> <h1 class="text-center"> {{ bp.title }} <br> <small>{{bp.author[0].first}} {{bp.author[0].middle}} {{bp.author[0].last}}</small> </h1> - <h4 class="text-center"></h4> + <h4 class="text-center">{{bp.date.strftime('%B %d, %Y')}}</h4> + <br> <p> <img class="img-responsive center-block img-rounded" alt="{{page.meta.image_alt}}" src="/static/img/mempool/{{bp.slug}}/{{page.meta.image}}"/> </p> </div> {{ page.html|safe }} <div class = "text-center"> <p> <a class="btn btn-primary" href="bitcoin:{{page.meta.btc_address}}"> Donate to {{bp.author[0].first}} </a> </p> </div> </div> {%endblock%}
3
0.111111
2
1
3cae3f71acc64ad52a3ca4aa08ea96d358de62dc
README.md
README.md
A command line interface to run browser tests over BrowserStack. ## Install Go to the `browserstack-runner` directory. Install browserstack-runner ``` npm -g install `` or For development, ``` npm link ``` ## Configuration To run browser tests on BrowserStack infrastructure, copy `browserstack.sample.json` to your repository as `browserstack.json` and modify the parameters based on your requirements. ## Running tests Run `browserstack-runner` to run the tests on all the browsers mentioned in the configuration.
A command line interface to run browser tests over BrowserStack. ## Install Go to the `browserstack-runner` directory. Install browserstack-runner npm -g install or For development, npm link ## Configuration To run browser tests on BrowserStack infrastructure, copy `browserstack.sample.json` to your repository as `browserstack.json` and modify the parameters based on your requirements. ## Running tests Run `browserstack-runner` to run the tests on all the browsers mentioned in the configuration.
Fix formatting for readme markdown
Fix formatting for readme markdown
Markdown
mit
hafeez-syed/browserstack-runner,leobalter/browserstack-runner,shirish87/browserstack-runner,shirish87/browserstack-runner,browserstack/browserstack-runner,FanaHOVA/ember-browserstack-runner,TehShrike/browserstack-runner,FanaHOVA/ember-browserstack-runner,leobalter/browserstack-runner,Sanox/browserstack-runner,jzaefferer/browserstack-runner,hafeez-syed/browserstack-runner,Sanox/browserstack-runner,jzaefferer/browserstack-runner,triptease/browserstack-runner,TehShrike/browserstack-runner,triptease/browserstack-runner,browserstack/browserstack-runner,browserstack/browserstack-runner
markdown
## Code Before: A command line interface to run browser tests over BrowserStack. ## Install Go to the `browserstack-runner` directory. Install browserstack-runner ``` npm -g install `` or For development, ``` npm link ``` ## Configuration To run browser tests on BrowserStack infrastructure, copy `browserstack.sample.json` to your repository as `browserstack.json` and modify the parameters based on your requirements. ## Running tests Run `browserstack-runner` to run the tests on all the browsers mentioned in the configuration. ## Instruction: Fix formatting for readme markdown ## Code After: A command line interface to run browser tests over BrowserStack. ## Install Go to the `browserstack-runner` directory. Install browserstack-runner npm -g install or For development, npm link ## Configuration To run browser tests on BrowserStack infrastructure, copy `browserstack.sample.json` to your repository as `browserstack.json` and modify the parameters based on your requirements. ## Running tests Run `browserstack-runner` to run the tests on all the browsers mentioned in the configuration.
A command line interface to run browser tests over BrowserStack. ## Install Go to the `browserstack-runner` directory. Install browserstack-runner - ``` - npm -g install + npm -g install ? ++++ - `` + or For development, - ``` - npm link - ``` + npm link ## Configuration To run browser tests on BrowserStack infrastructure, copy `browserstack.sample.json` to your repository as `browserstack.json` and modify the parameters based on your requirements. ## Running tests Run `browserstack-runner` to run the tests on all the browsers mentioned in the configuration.
9
0.333333
3
6
e6ce9272823d5f2ead5de9d5e68b71a47bdd084a
Casks/cloudfoundry-cli.rb
Casks/cloudfoundry-cli.rb
class CloudfoundryCli < Cask version '6.2.0' sha256 'c804b4245a194a1028b5ac2fe074755d18a8aa2eb37bfc9978a5a4e47e9e644d' url "http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v#{version}/installer-osx-amd64.pkg" homepage 'https://github.com/cloudfoundry/cli' license :oss pkg 'installer-osx-amd64.pkg' uninstall :pkgutil => 'com.pivotal.cloudfoundry.pkg' caveats do files_in_usr_local end end
class CloudfoundryCli < Cask version '6.6.1' sha256 '1a159944a447b4b321513cadd8c009477dc084ce22b6bfd2e5e20382d98bb5e5' url "http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v#{version}/installer-osx-amd64.pkg" homepage 'https://github.com/cloudfoundry/cli' license :oss pkg 'installer-osx-amd64.pkg' uninstall :pkgutil => 'com.pivotal.cloudfoundry.pkg' caveats do files_in_usr_local end end
Upgrade Cloud Foundry CLI to 6.6.1
Upgrade Cloud Foundry CLI to 6.6.1 Latest is 6.6.2, but its package is broken (see https://github.com/cloudfoundry/cli/issues/274), so we're going with 6.6.1.
Ruby
bsd-2-clause
chino/homebrew-cask,AnastasiaSulyagina/homebrew-cask,akiomik/homebrew-cask,ddm/homebrew-cask,MichaelPei/homebrew-cask,stonehippo/homebrew-cask,cfillion/homebrew-cask,af/homebrew-cask,d/homebrew-cask,shorshe/homebrew-cask,spruceb/homebrew-cask,paour/homebrew-cask,boecko/homebrew-cask,nathanielvarona/homebrew-cask,bosr/homebrew-cask,wastrachan/homebrew-cask,mariusbutuc/homebrew-cask,rubenerd/homebrew-cask,shanonvl/homebrew-cask,rajiv/homebrew-cask,MircoT/homebrew-cask,Gasol/homebrew-cask,JikkuJose/homebrew-cask,kronicd/homebrew-cask,alebcay/homebrew-cask,Fedalto/homebrew-cask,moimikey/homebrew-cask,christer155/homebrew-cask,gabrielizaias/homebrew-cask,robertgzr/homebrew-cask,mwek/homebrew-cask,Nitecon/homebrew-cask,ldong/homebrew-cask,stonehippo/homebrew-cask,mchlrmrz/homebrew-cask,ch3n2k/homebrew-cask,lalyos/homebrew-cask,Labutin/homebrew-cask,ebraminio/homebrew-cask,mAAdhaTTah/homebrew-cask,devmynd/homebrew-cask,squid314/homebrew-cask,maxnordlund/homebrew-cask,csmith-palantir/homebrew-cask,moogar0880/homebrew-cask,cohei/homebrew-cask,andyshinn/homebrew-cask,hovancik/homebrew-cask,Ephemera/homebrew-cask,christer155/homebrew-cask,antogg/homebrew-cask,anbotero/homebrew-cask,ksato9700/homebrew-cask,wickedsp1d3r/homebrew-cask,mlocher/homebrew-cask,mjdescy/homebrew-cask,exherb/homebrew-cask,vuquoctuan/homebrew-cask,tolbkni/homebrew-cask,fharbe/homebrew-cask,sirodoht/homebrew-cask,kingthorin/homebrew-cask,supriyantomaftuh/homebrew-cask,mishari/homebrew-cask,tedbundyjr/homebrew-cask,RogerThiede/homebrew-cask,coneman/homebrew-cask,jspahrsummers/homebrew-cask,jalaziz/homebrew-cask,sohtsuka/homebrew-cask,maxnordlund/homebrew-cask,qnm/homebrew-cask,jpmat296/homebrew-cask,mkozjak/homebrew-cask,kievechua/homebrew-cask,sgnh/homebrew-cask,ptb/homebrew-cask,flada-auxv/homebrew-cask,scribblemaniac/homebrew-cask,jppelteret/homebrew-cask,mahori/homebrew-cask,atsuyim/homebrew-cask,nickpellant/homebrew-cask,ftiff/homebrew-cask,tan9/homebrew-cask,pinut/homebrew-cask,retbrown/homebrew-cask,cliffcotino/homebrew-cask,usami-k/homebrew-cask,nathansgreen/homebrew-cask,mahori/homebrew-cask,inz/homebrew-cask,bcomnes/homebrew-cask,ch3n2k/homebrew-cask,MerelyAPseudonym/homebrew-cask,hyuna917/homebrew-cask,kuno/homebrew-cask,frapposelli/homebrew-cask,drostron/homebrew-cask,cprecioso/homebrew-cask,tyage/homebrew-cask,paulbreslin/homebrew-cask,kei-yamazaki/homebrew-cask,lcasey001/homebrew-cask,jgarber623/homebrew-cask,ajbw/homebrew-cask,kteru/homebrew-cask,garborg/homebrew-cask,gyndav/homebrew-cask,wKovacs64/homebrew-cask,pablote/homebrew-cask,guylabs/homebrew-cask,moogar0880/homebrew-cask,yutarody/homebrew-cask,mchlrmrz/homebrew-cask,giannitm/homebrew-cask,feigaochn/homebrew-cask,gilesdring/homebrew-cask,RickWong/homebrew-cask,aktau/homebrew-cask,MicTech/homebrew-cask,chuanxd/homebrew-cask,Cottser/homebrew-cask,miguelfrde/homebrew-cask,miku/homebrew-cask,joaoponceleao/homebrew-cask,shishi/homebrew-cask,kryhear/homebrew-cask,janlugt/homebrew-cask,coneman/homebrew-cask,Philosoft/homebrew-cask,barravi/homebrew-cask,forevergenin/homebrew-cask,af/homebrew-cask,ftiff/homebrew-cask,williamboman/homebrew-cask,julienlavergne/homebrew-cask,Hywan/homebrew-cask,githubutilities/homebrew-cask,xight/homebrew-cask,opsdev-ws/homebrew-cask,garborg/homebrew-cask,yutarody/homebrew-cask,adrianchia/homebrew-cask,mwean/homebrew-cask,larseggert/homebrew-cask,JacopKane/homebrew-cask,mwek/homebrew-cask,forevergenin/homebrew-cask,carlmod/homebrew-cask,stigkj/homebrew-caskroom-cask,astorije/homebrew-cask,slack4u/homebrew-cask,neil-ca-moore/homebrew-cask,zerrot/homebrew-cask,mwilmer/homebrew-cask,jen20/homebrew-cask,christophermanning/homebrew-cask,aktau/homebrew-cask,tranc99/homebrew-cask,RickWong/homebrew-cask,cblecker/homebrew-cask,blogabe/homebrew-cask,jawshooah/homebrew-cask,rkJun/homebrew-cask,lieuwex/homebrew-cask,royalwang/homebrew-cask,gwaldo/homebrew-cask,m3nu/homebrew-cask,bkono/homebrew-cask,ksylvan/homebrew-cask,rkJun/homebrew-cask,syscrusher/homebrew-cask,MerelyAPseudonym/homebrew-cask,MircoT/homebrew-cask,decrement/homebrew-cask,mathbunnyru/homebrew-cask,sanchezm/homebrew-cask,dvdoliveira/homebrew-cask,zorosteven/homebrew-cask,claui/homebrew-cask,13k/homebrew-cask,dspeckhard/homebrew-cask,hackhandslabs/homebrew-cask,n8henrie/homebrew-cask,scribblemaniac/homebrew-cask,opsdev-ws/homebrew-cask,BenjaminHCCarr/homebrew-cask,winkelsdorf/homebrew-cask,muan/homebrew-cask,neverfox/homebrew-cask,jedahan/homebrew-cask,Keloran/homebrew-cask,iamso/homebrew-cask,shonjir/homebrew-cask,exherb/homebrew-cask,bendoerr/homebrew-cask,colindean/homebrew-cask,sparrc/homebrew-cask,andyli/homebrew-cask,n8henrie/homebrew-cask,cclauss/homebrew-cask,spruceb/homebrew-cask,kkdd/homebrew-cask,joaoponceleao/homebrew-cask,JoelLarson/homebrew-cask,Ngrd/homebrew-cask,morganestes/homebrew-cask,lieuwex/homebrew-cask,wuman/homebrew-cask,stephenwade/homebrew-cask,wKovacs64/homebrew-cask,FinalDes/homebrew-cask,a1russell/homebrew-cask,dwkns/homebrew-cask,jeanregisser/homebrew-cask,dvdoliveira/homebrew-cask,mgryszko/homebrew-cask,renard/homebrew-cask,haha1903/homebrew-cask,leonmachadowilcox/homebrew-cask,buo/homebrew-cask,nrlquaker/homebrew-cask,lauantai/homebrew-cask,uetchy/homebrew-cask,boydj/homebrew-cask,esebastian/homebrew-cask,mikem/homebrew-cask,pablote/homebrew-cask,zchee/homebrew-cask,neil-ca-moore/homebrew-cask,ericbn/homebrew-cask,ctrevino/homebrew-cask,qbmiller/homebrew-cask,nathancahill/homebrew-cask,adriweb/homebrew-cask,alexg0/homebrew-cask,zerrot/homebrew-cask,markhuber/homebrew-cask,slack4u/homebrew-cask,freeslugs/homebrew-cask,LaurentFough/homebrew-cask,xight/homebrew-cask,pacav69/homebrew-cask,lolgear/homebrew-cask,artdevjs/homebrew-cask,kingthorin/homebrew-cask,morsdyce/homebrew-cask,gibsjose/homebrew-cask,tjt263/homebrew-cask,santoshsahoo/homebrew-cask,johndbritton/homebrew-cask,feniix/homebrew-cask,djakarta-trap/homebrew-myCask,markthetech/homebrew-cask,genewoo/homebrew-cask,jpodlech/homebrew-cask,alexg0/homebrew-cask,dustinblackman/homebrew-cask,mokagio/homebrew-cask,ctrevino/homebrew-cask,huanzhang/homebrew-cask,otaran/homebrew-cask,segiddins/homebrew-cask,tjt263/homebrew-cask,alexg0/homebrew-cask,bcomnes/homebrew-cask,cliffcotino/homebrew-cask,tdsmith/homebrew-cask,franklouwers/homebrew-cask,kryhear/homebrew-cask,otzy007/homebrew-cask,jpmat296/homebrew-cask,fkrone/homebrew-cask,CameronGarrett/homebrew-cask,lumaxis/homebrew-cask,mariusbutuc/homebrew-cask,lolgear/homebrew-cask,ayohrling/homebrew-cask,kronicd/homebrew-cask,tedski/homebrew-cask,sysbot/homebrew-cask,koenrh/homebrew-cask,ponychicken/homebrew-customcask,dezon/homebrew-cask,schneidmaster/homebrew-cask,danielgomezrico/homebrew-cask,asins/homebrew-cask,fly19890211/homebrew-cask,malob/homebrew-cask,janlugt/homebrew-cask,linc01n/homebrew-cask,delphinus35/homebrew-cask,kingthorin/homebrew-cask,zeusdeux/homebrew-cask,m3nu/homebrew-cask,MicTech/homebrew-cask,nysthee/homebrew-cask,ahundt/homebrew-cask,howie/homebrew-cask,moimikey/homebrew-cask,kolomiichenko/homebrew-cask,pkq/homebrew-cask,greg5green/homebrew-cask,elnappo/homebrew-cask,chadcatlett/caskroom-homebrew-cask,jayshao/homebrew-cask,jrwesolo/homebrew-cask,perfide/homebrew-cask,otzy007/homebrew-cask,jamesmlees/homebrew-cask,mlocher/homebrew-cask,lumaxis/homebrew-cask,seanzxx/homebrew-cask,andrewdisley/homebrew-cask,retbrown/homebrew-cask,BenjaminHCCarr/homebrew-cask,kirikiriyamama/homebrew-cask,petmoo/homebrew-cask,mchlrmrz/homebrew-cask,wickles/homebrew-cask,Philosoft/homebrew-cask,gabrielizaias/homebrew-cask,sscotth/homebrew-cask,RogerThiede/homebrew-cask,SentinelWarren/homebrew-cask,dwihn0r/homebrew-cask,kamilboratynski/homebrew-cask,katoquro/homebrew-cask,lucasmezencio/homebrew-cask,flaviocamilo/homebrew-cask,codeurge/homebrew-cask,josa42/homebrew-cask,miccal/homebrew-cask,guylabs/homebrew-cask,SamiHiltunen/homebrew-cask,BenjaminHCCarr/homebrew-cask,kesara/homebrew-cask,ldong/homebrew-cask,uetchy/homebrew-cask,lantrix/homebrew-cask,xalep/homebrew-cask,hristozov/homebrew-cask,okket/homebrew-cask,moimikey/homebrew-cask,AdamCmiel/homebrew-cask,alebcay/homebrew-cask,psibre/homebrew-cask,slnovak/homebrew-cask,gustavoavellar/homebrew-cask,vin047/homebrew-cask,mindriot101/homebrew-cask,josa42/homebrew-cask,deanmorin/homebrew-cask,Saklad5/homebrew-cask,ponychicken/homebrew-customcask,rcuza/homebrew-cask,tangestani/homebrew-cask,jamesmlees/homebrew-cask,jacobdam/homebrew-cask,Amorymeltzer/homebrew-cask,tyage/homebrew-cask,albertico/homebrew-cask,Bombenleger/homebrew-cask,danielbayley/homebrew-cask,Whoaa512/homebrew-cask,wmorin/homebrew-cask,tan9/homebrew-cask,prime8/homebrew-cask,adriweb/homebrew-cask,dlovitch/homebrew-cask,ky0615/homebrew-cask-1,jppelteret/homebrew-cask,dunn/homebrew-cask,andyshinn/homebrew-cask,stevehedrick/homebrew-cask,chino/homebrew-cask,riyad/homebrew-cask,bsiddiqui/homebrew-cask,dunn/homebrew-cask,ianyh/homebrew-cask,crzrcn/homebrew-cask,ingorichter/homebrew-cask,catap/homebrew-cask,tmoreira2020/homebrew,adelinofaria/homebrew-cask,adelinofaria/homebrew-cask,nysthee/homebrew-cask,reelsense/homebrew-cask,otaran/homebrew-cask,JosephViolago/homebrew-cask,fazo96/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,gurghet/homebrew-cask,asins/homebrew-cask,tedski/homebrew-cask,singingwolfboy/homebrew-cask,lauantai/homebrew-cask,schneidmaster/homebrew-cask,kolomiichenko/homebrew-cask,ahvigil/homebrew-cask,MisumiRize/homebrew-cask,underyx/homebrew-cask,samdoran/homebrew-cask,flaviocamilo/homebrew-cask,rhendric/homebrew-cask,stigkj/homebrew-caskroom-cask,illusionfield/homebrew-cask,stephenwade/homebrew-cask,cobyism/homebrew-cask,joschi/homebrew-cask,kiliankoe/homebrew-cask,joshka/homebrew-cask,stevehedrick/homebrew-cask,lalyos/homebrew-cask,onlynone/homebrew-cask,n0ts/homebrew-cask,joschi/homebrew-cask,jeroenseegers/homebrew-cask,kirikiriyamama/homebrew-cask,optikfluffel/homebrew-cask,lucasmezencio/homebrew-cask,theoriginalgri/homebrew-cask,farmerchris/homebrew-cask,singingwolfboy/homebrew-cask,FinalDes/homebrew-cask,yuhki50/homebrew-cask,flada-auxv/homebrew-cask,puffdad/homebrew-cask,Ketouem/homebrew-cask,supriyantomaftuh/homebrew-cask,feigaochn/homebrew-cask,fkrone/homebrew-cask,scottsuch/homebrew-cask,antogg/homebrew-cask,alloy/homebrew-cask,claui/homebrew-cask,jeanregisser/homebrew-cask,cedwardsmedia/homebrew-cask,ericbn/homebrew-cask,pkq/homebrew-cask,patresi/homebrew-cask,nathancahill/homebrew-cask,corbt/homebrew-cask,alloy/homebrew-cask,yurrriq/homebrew-cask,Nitecon/homebrew-cask,kteru/homebrew-cask,feniix/homebrew-cask,imgarylai/homebrew-cask,frapposelli/homebrew-cask,mathbunnyru/homebrew-cask,buo/homebrew-cask,Dremora/homebrew-cask,hellosky806/homebrew-cask,cohei/homebrew-cask,mahori/homebrew-cask,kesara/homebrew-cask,gilesdring/homebrew-cask,nicolas-brousse/homebrew-cask,cclauss/homebrew-cask,arronmabrey/homebrew-cask,nathansgreen/homebrew-cask,artdevjs/homebrew-cask,n0ts/homebrew-cask,joaocc/homebrew-cask,victorpopkov/homebrew-cask,samnung/homebrew-cask,neverfox/homebrew-cask,skyyuan/homebrew-cask,mauricerkelly/homebrew-cask,Cottser/homebrew-cask,anbotero/homebrew-cask,squid314/homebrew-cask,mattfelsen/homebrew-cask,paulombcosta/homebrew-cask,stevenmaguire/homebrew-cask,gyndav/homebrew-cask,KosherBacon/homebrew-cask,napaxton/homebrew-cask,toonetown/homebrew-cask,andrewdisley/homebrew-cask,djakarta-trap/homebrew-myCask,thomanq/homebrew-cask,rubenerd/homebrew-cask,Amorymeltzer/homebrew-cask,ywfwj2008/homebrew-cask,syscrusher/homebrew-cask,gmkey/homebrew-cask,ohammersmith/homebrew-cask,sachin21/homebrew-cask,githubutilities/homebrew-cask,sanchezm/homebrew-cask,mathbunnyru/homebrew-cask,lukasbestle/homebrew-cask,mhubig/homebrew-cask,gguillotte/homebrew-cask,hanxue/caskroom,boydj/homebrew-cask,xalep/homebrew-cask,epmatsw/homebrew-cask,caskroom/homebrew-cask,kei-yamazaki/homebrew-cask,mrmachine/homebrew-cask,santoshsahoo/homebrew-cask,kTitan/homebrew-cask,winkelsdorf/homebrew-cask,diogodamiani/homebrew-cask,jellyfishcoder/homebrew-cask,qbmiller/homebrew-cask,guerrero/homebrew-cask,pacav69/homebrew-cask,renaudguerin/homebrew-cask,huanzhang/homebrew-cask,mwilmer/homebrew-cask,mokagio/homebrew-cask,pgr0ss/homebrew-cask,tangestani/homebrew-cask,CameronGarrett/homebrew-cask,arranubels/homebrew-cask,faun/homebrew-cask,0xadada/homebrew-cask,xyb/homebrew-cask,chrisfinazzo/homebrew-cask,shanonvl/homebrew-cask,ericbn/homebrew-cask,mkozjak/homebrew-cask,dictcp/homebrew-cask,optikfluffel/homebrew-cask,RJHsiao/homebrew-cask,bendoerr/homebrew-cask,danielgomezrico/homebrew-cask,epardee/homebrew-cask,iamso/homebrew-cask,bosr/homebrew-cask,chrisfinazzo/homebrew-cask,nshemonsky/homebrew-cask,bgandon/homebrew-cask,ayohrling/homebrew-cask,fwiesel/homebrew-cask,kTitan/homebrew-cask,kamilboratynski/homebrew-cask,jaredsampson/homebrew-cask,mingzhi22/homebrew-cask,13k/homebrew-cask,valepert/homebrew-cask,scottsuch/homebrew-cask,coeligena/homebrew-customized,jaredsampson/homebrew-cask,mindriot101/homebrew-cask,cobyism/homebrew-cask,sparrc/homebrew-cask,chuanxd/homebrew-cask,BahtiyarB/homebrew-cask,jpodlech/homebrew-cask,zeusdeux/homebrew-cask,rogeriopradoj/homebrew-cask,dieterdemeyer/homebrew-cask,AnastasiaSulyagina/homebrew-cask,elnappo/homebrew-cask,jgarber623/homebrew-cask,JacopKane/homebrew-cask,hakamadare/homebrew-cask,kassi/homebrew-cask,yurikoles/homebrew-cask,hristozov/homebrew-cask,shorshe/homebrew-cask,joshka/homebrew-cask,FranklinChen/homebrew-cask,scw/homebrew-cask,kongslund/homebrew-cask,farmerchris/homebrew-cask,Fedalto/homebrew-cask,jangalinski/homebrew-cask,jiashuw/homebrew-cask,bgandon/homebrew-cask,danielbayley/homebrew-cask,daften/homebrew-cask,elseym/homebrew-cask,brianshumate/homebrew-cask,onlynone/homebrew-cask,zmwangx/homebrew-cask,haha1903/homebrew-cask,askl56/homebrew-cask,nicolas-brousse/homebrew-cask,miccal/homebrew-cask,nshemonsky/homebrew-cask,rhendric/homebrew-cask,andersonba/homebrew-cask,MisumiRize/homebrew-cask,wickedsp1d3r/homebrew-cask,koenrh/homebrew-cask,sohtsuka/homebrew-cask,nivanchikov/homebrew-cask,ksylvan/homebrew-cask,Ibuprofen/homebrew-cask,hvisage/homebrew-cask,afdnlw/homebrew-cask,tolbkni/homebrew-cask,puffdad/homebrew-cask,johntrandall/homebrew-cask,Ngrd/homebrew-cask,xcezx/homebrew-cask,sosedoff/homebrew-cask,hanxue/caskroom,aki77/homebrew-cask,jedahan/homebrew-cask,slnovak/homebrew-cask,jhowtan/homebrew-cask,arranubels/homebrew-cask,larseggert/homebrew-cask,daften/homebrew-cask,ddm/homebrew-cask,atsuyim/homebrew-cask,wickles/homebrew-cask,pinut/homebrew-cask,julionc/homebrew-cask,danielbayley/homebrew-cask,patresi/homebrew-cask,delphinus35/homebrew-cask,shishi/homebrew-cask,astorije/homebrew-cask,Amorymeltzer/homebrew-cask,kuno/homebrew-cask,Ephemera/homebrew-cask,shoichiaizawa/homebrew-cask,kassi/homebrew-cask,thehunmonkgroup/homebrew-cask,antogg/homebrew-cask,amatos/homebrew-cask,epardee/homebrew-cask,malob/homebrew-cask,6uclz1/homebrew-cask,moonboots/homebrew-cask,xiongchiamiov/homebrew-cask,wuman/homebrew-cask,lifepillar/homebrew-cask,mishari/homebrew-cask,MoOx/homebrew-cask,JikkuJose/homebrew-cask,wizonesolutions/homebrew-cask,0rax/homebrew-cask,jasmas/homebrew-cask,johnjelinek/homebrew-cask,deizel/homebrew-cask,esebastian/homebrew-cask,nightscape/homebrew-cask,freeslugs/homebrew-cask,MatzFan/homebrew-cask,AndreTheHunter/homebrew-cask,bcaceiro/homebrew-cask,shoichiaizawa/homebrew-cask,gyugyu/homebrew-cask,qnm/homebrew-cask,Ibuprofen/homebrew-cask,giannitm/homebrew-cask,mhubig/homebrew-cask,kpearson/homebrew-cask,bdhess/homebrew-cask,samnung/homebrew-cask,kpearson/homebrew-cask,uetchy/homebrew-cask,corbt/homebrew-cask,zorosteven/homebrew-cask,xiongchiamiov/homebrew-cask,norio-nomura/homebrew-cask,jtriley/homebrew-cask,bdhess/homebrew-cask,victorpopkov/homebrew-cask,julienlavergne/homebrew-cask,Ketouem/homebrew-cask,FredLackeyOfficial/homebrew-cask,bric3/homebrew-cask,dieterdemeyer/homebrew-cask,fanquake/homebrew-cask,jellyfishcoder/homebrew-cask,josa42/homebrew-cask,vmrob/homebrew-cask,seanorama/homebrew-cask,joaocc/homebrew-cask,wayou/homebrew-cask,jonathanwiesel/homebrew-cask,yumitsu/homebrew-cask,lukeadams/homebrew-cask,afdnlw/homebrew-cask,jangalinski/homebrew-cask,adrianchia/homebrew-cask,jalaziz/homebrew-cask,miku/homebrew-cask,elseym/homebrew-cask,fharbe/homebrew-cask,L2G/homebrew-cask,sebcode/homebrew-cask,xakraz/homebrew-cask,cprecioso/homebrew-cask,scottsuch/homebrew-cask,caskroom/homebrew-cask,genewoo/homebrew-cask,diguage/homebrew-cask,mauricerkelly/homebrew-cask,tangestani/homebrew-cask,lantrix/homebrew-cask,0xadada/homebrew-cask,xcezx/homebrew-cask,bkono/homebrew-cask,renaudguerin/homebrew-cask,colindean/homebrew-cask,mattrobenolt/homebrew-cask,hanxue/caskroom,segiddins/homebrew-cask,diogodamiani/homebrew-cask,barravi/homebrew-cask,shonjir/homebrew-cask,drostron/homebrew-cask,jbeagley52/homebrew-cask,optikfluffel/homebrew-cask,unasuke/homebrew-cask,deiga/homebrew-cask,arronmabrey/homebrew-cask,ninjahoahong/homebrew-cask,ptb/homebrew-cask,howie/homebrew-cask,zhuzihhhh/homebrew-cask,yumitsu/homebrew-cask,FranklinChen/homebrew-cask,lvicentesanchez/homebrew-cask,dwihn0r/homebrew-cask,mjgardner/homebrew-cask,ebraminio/homebrew-cask,FredLackeyOfficial/homebrew-cask,fazo96/homebrew-cask,nrlquaker/homebrew-cask,troyxmccall/homebrew-cask,zchee/homebrew-cask,pgr0ss/homebrew-cask,fly19890211/homebrew-cask,axodys/homebrew-cask,My2ndAngelic/homebrew-cask,3van/homebrew-cask,MoOx/homebrew-cask,y00rb/homebrew-cask,sanyer/homebrew-cask,robertgzr/homebrew-cask,aki77/homebrew-cask,RJHsiao/homebrew-cask,bsiddiqui/homebrew-cask,morganestes/homebrew-cask,doits/homebrew-cask,deiga/homebrew-cask,sjackman/homebrew-cask,wolflee/homebrew-cask,xakraz/homebrew-cask,mAAdhaTTah/homebrew-cask,mazehall/homebrew-cask,goxberry/homebrew-cask,paour/homebrew-cask,mattrobenolt/homebrew-cask,zhuzihhhh/homebrew-cask,katoquro/homebrew-cask,andyli/homebrew-cask,jacobdam/homebrew-cask,bchatard/homebrew-cask,paour/homebrew-cask,athrunsun/homebrew-cask,kongslund/homebrew-cask,okket/homebrew-cask,singingwolfboy/homebrew-cask,klane/homebrew-cask,akiomik/homebrew-cask,shonjir/homebrew-cask,sebcode/homebrew-cask,nickpellant/homebrew-cask,tedbundyjr/homebrew-cask,andrewschleifer/homebrew-cask,yutarody/homebrew-cask,napaxton/homebrew-cask,andersonba/homebrew-cask,valepert/homebrew-cask,m3nu/homebrew-cask,tjnycum/homebrew-cask,wolflee/homebrew-cask,miccal/homebrew-cask,unasuke/homebrew-cask,sysbot/homebrew-cask,amatos/homebrew-cask,tjnycum/homebrew-cask,scw/homebrew-cask,jgarber623/homebrew-cask,greg5green/homebrew-cask,seanzxx/homebrew-cask,a-x-/homebrew-cask,lcasey001/homebrew-cask,illusionfield/homebrew-cask,MichaelPei/homebrew-cask,nivanchikov/homebrew-cask,leonmachadowilcox/homebrew-cask,gerrypower/homebrew-cask,gerrymiller/homebrew-cask,KosherBacon/homebrew-cask,michelegera/homebrew-cask,johnste/homebrew-cask,j13k/homebrew-cask,hackhandslabs/homebrew-cask,jacobbednarz/homebrew-cask,deanmorin/homebrew-cask,skatsuta/homebrew-cask,nelsonjchen/homebrew-cask,My2ndAngelic/homebrew-cask,axodys/homebrew-cask,colindunn/homebrew-cask,a1russell/homebrew-cask,stonehippo/homebrew-cask,vitorgalvao/homebrew-cask,deizel/homebrew-cask,rogeriopradoj/homebrew-cask,gord1anknot/homebrew-cask,decrement/homebrew-cask,JosephViolago/homebrew-cask,catap/homebrew-cask,nelsonjchen/homebrew-cask,taherio/homebrew-cask,williamboman/homebrew-cask,JacopKane/homebrew-cask,leipert/homebrew-cask,sanyer/homebrew-cask,diguage/homebrew-cask,sscotth/homebrew-cask,winkelsdorf/homebrew-cask,malford/homebrew-cask,stevenmaguire/homebrew-cask,Bombenleger/homebrew-cask,nathanielvarona/homebrew-cask,iAmGhost/homebrew-cask,elyscape/homebrew-cask,djmonta/homebrew-cask,toonetown/homebrew-cask,csmith-palantir/homebrew-cask,askl56/homebrew-cask,nrlquaker/homebrew-cask,ky0615/homebrew-cask-1,vitorgalvao/homebrew-cask,j13k/homebrew-cask,julionc/homebrew-cask,bric3/homebrew-cask,Labutin/homebrew-cask,hakamadare/homebrew-cask,mjgardner/homebrew-cask,cblecker/homebrew-cask,mingzhi22/homebrew-cask,remko/homebrew-cask,jrwesolo/homebrew-cask,chrisRidgers/homebrew-cask,alebcay/homebrew-cask,bchatard/homebrew-cask,brianshumate/homebrew-cask,kievechua/homebrew-cask,Hywan/homebrew-cask,crmne/homebrew-cask,wesen/homebrew-cask,6uclz1/homebrew-cask,neverfox/homebrew-cask,adrianchia/homebrew-cask,ywfwj2008/homebrew-cask,gustavoavellar/homebrew-cask,0rax/homebrew-cask,sosedoff/homebrew-cask,dustinblackman/homebrew-cask,tsparber/homebrew-cask,faun/homebrew-cask,xyb/homebrew-cask,yurrriq/homebrew-cask,perfide/homebrew-cask,wmorin/homebrew-cask,mgryszko/homebrew-cask,lifepillar/homebrew-cask,casidiablo/homebrew-cask,wayou/homebrew-cask,blogabe/homebrew-cask,muan/homebrew-cask,mjdescy/homebrew-cask,mikem/homebrew-cask,englishm/homebrew-cask,a1russell/homebrew-cask,nightscape/homebrew-cask,leipert/homebrew-cask,psibre/homebrew-cask,hellosky806/homebrew-cask,jasmas/homebrew-cask,imgarylai/homebrew-cask,ninjahoahong/homebrew-cask,rajiv/homebrew-cask,rcuza/homebrew-cask,tarwich/homebrew-cask,usami-k/homebrew-cask,enriclluelles/homebrew-cask,reitermarkus/homebrew-cask,malob/homebrew-cask,andrewdisley/homebrew-cask,sgnh/homebrew-cask,gwaldo/homebrew-cask,jeroenseegers/homebrew-cask,paulombcosta/homebrew-cask,sjackman/homebrew-cask,gord1anknot/homebrew-cask,johntrandall/homebrew-cask,markthetech/homebrew-cask,kostasdizas/homebrew-cask,johan/homebrew-cask,markhuber/homebrew-cask,michelegera/homebrew-cask,xight/homebrew-cask,JoelLarson/homebrew-cask,mwean/homebrew-cask,hyuna917/homebrew-cask,dezon/homebrew-cask,elyscape/homebrew-cask,inz/homebrew-cask,vin047/homebrew-cask,wastrachan/homebrew-cask,crzrcn/homebrew-cask,xtian/homebrew-cask,fanquake/homebrew-cask,jmeridth/homebrew-cask,asbachb/homebrew-cask,robbiethegeek/homebrew-cask,xyb/homebrew-cask,shoichiaizawa/homebrew-cask,ingorichter/homebrew-cask,aguynamedryan/homebrew-cask,BahtiyarB/homebrew-cask,a-x-/homebrew-cask,rickychilcott/homebrew-cask,chadcatlett/caskroom-homebrew-cask,inta/homebrew-cask,jonathanwiesel/homebrew-cask,malford/homebrew-cask,jayshao/homebrew-cask,yuhki50/homebrew-cask,mfpierre/homebrew-cask,klane/homebrew-cask,mjgardner/homebrew-cask,seanorama/homebrew-cask,tsparber/homebrew-cask,SentinelWarren/homebrew-cask,skyyuan/homebrew-cask,ianyh/homebrew-cask,sirodoht/homebrew-cask,sanyer/homebrew-cask,samdoran/homebrew-cask,retrography/homebrew-cask,reitermarkus/homebrew-cask,wesen/homebrew-cask,renard/homebrew-cask,englishm/homebrew-cask,gurghet/homebrew-cask,Keloran/homebrew-cask,deiga/homebrew-cask,3van/homebrew-cask,johnjelinek/homebrew-cask,wizonesolutions/homebrew-cask,kiliankoe/homebrew-cask,goxberry/homebrew-cask,sachin21/homebrew-cask,ajbw/homebrew-cask,L2G/homebrew-cask,jeroenj/homebrew-cask,dlovitch/homebrew-cask,athrunsun/homebrew-cask,linc01n/homebrew-cask,gibsjose/homebrew-cask,gerrymiller/homebrew-cask,rajiv/homebrew-cask,boecko/homebrew-cask,nathanielvarona/homebrew-cask,thehunmonkgroup/homebrew-cask,thii/homebrew-cask,inta/homebrew-cask,paulbreslin/homebrew-cask,prime8/homebrew-cask,gyugyu/homebrew-cask,norio-nomura/homebrew-cask,jacobbednarz/homebrew-cask,rickychilcott/homebrew-cask,johnste/homebrew-cask,hovancik/homebrew-cask,enriclluelles/homebrew-cask,bcaceiro/homebrew-cask,xtian/homebrew-cask,julionc/homebrew-cask,mrmachine/homebrew-cask,helloIAmPau/homebrew-cask,sscotth/homebrew-cask,ahvigil/homebrew-cask,jconley/homebrew-cask,blainesch/homebrew-cask,gmkey/homebrew-cask,thomanq/homebrew-cask,crmne/homebrew-cask,morsdyce/homebrew-cask,jen20/homebrew-cask,donbobka/homebrew-cask,tmoreira2020/homebrew,yurikoles/homebrew-cask,Gasol/homebrew-cask,vmrob/homebrew-cask,gerrypower/homebrew-cask,doits/homebrew-cask,andrewschleifer/homebrew-cask,miguelfrde/homebrew-cask,AndreTheHunter/homebrew-cask,jconley/homebrew-cask,zmwangx/homebrew-cask,imgarylai/homebrew-cask,SamiHiltunen/homebrew-cask,LaurentFough/homebrew-cask,dcondrey/homebrew-cask,coeligena/homebrew-customized,mfpierre/homebrew-cask,kostasdizas/homebrew-cask,ksato9700/homebrew-cask,franklouwers/homebrew-cask,iAmGhost/homebrew-cask,dwkns/homebrew-cask,gyndav/homebrew-cask,timsutton/homebrew-cask,cfillion/homebrew-cask,coeligena/homebrew-customized,hvisage/homebrew-cask,tdsmith/homebrew-cask,asbachb/homebrew-cask,jbeagley52/homebrew-cask,johndbritton/homebrew-cask,jmeridth/homebrew-cask,samshadwell/homebrew-cask,casidiablo/homebrew-cask,devmynd/homebrew-cask,petmoo/homebrew-cask,remko/homebrew-cask,esebastian/homebrew-cask,ohammersmith/homebrew-cask,aguynamedryan/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,donbobka/homebrew-cask,rogeriopradoj/homebrew-cask,helloIAmPau/homebrew-cask,dcondrey/homebrew-cask,jhowtan/homebrew-cask,vuquoctuan/homebrew-cask,Ephemera/homebrew-cask,retrography/homebrew-cask,chrisRidgers/homebrew-cask,kkdd/homebrew-cask,tranc99/homebrew-cask,pkq/homebrew-cask,vigosan/homebrew-cask,jawshooah/homebrew-cask,gguillotte/homebrew-cask,underyx/homebrew-cask,lvicentesanchez/homebrew-cask,theoriginalgri/homebrew-cask,phpwutz/homebrew-cask,dictcp/homebrew-cask,moonboots/homebrew-cask,troyxmccall/homebrew-cask,carlmod/homebrew-cask,kevyau/homebrew-cask,JosephViolago/homebrew-cask,jspahrsummers/homebrew-cask,bric3/homebrew-cask,MatzFan/homebrew-cask,stephenwade/homebrew-cask,dictcp/homebrew-cask,vigosan/homebrew-cask,jeroenj/homebrew-cask,cedwardsmedia/homebrew-cask,mazehall/homebrew-cask,afh/homebrew-cask,cobyism/homebrew-cask,lukeadams/homebrew-cask,Whoaa512/homebrew-cask,albertico/homebrew-cask,thii/homebrew-cask,riyad/homebrew-cask,joshka/homebrew-cask,djmonta/homebrew-cask,kevyau/homebrew-cask,guerrero/homebrew-cask,lukasbestle/homebrew-cask,fwiesel/homebrew-cask,johan/homebrew-cask,Dremora/homebrew-cask,dspeckhard/homebrew-cask,joschi/homebrew-cask,chrisfinazzo/homebrew-cask,scribblemaniac/homebrew-cask,jiashuw/homebrew-cask,christophermanning/homebrew-cask,wmorin/homebrew-cask,jtriley/homebrew-cask,taherio/homebrew-cask,ahundt/homebrew-cask,robbiethegeek/homebrew-cask,reitermarkus/homebrew-cask,codeurge/homebrew-cask,blainesch/homebrew-cask,afh/homebrew-cask,kesara/homebrew-cask,skatsuta/homebrew-cask,royalwang/homebrew-cask,mattrobenolt/homebrew-cask,jalaziz/homebrew-cask,samshadwell/homebrew-cask,AdamCmiel/homebrew-cask,claui/homebrew-cask,y00rb/homebrew-cask,epmatsw/homebrew-cask,blogabe/homebrew-cask,colindunn/homebrew-cask,Saklad5/homebrew-cask,phpwutz/homebrew-cask,tarwich/homebrew-cask,tjnycum/homebrew-cask,mattfelsen/homebrew-cask,d/homebrew-cask,reelsense/homebrew-cask,cblecker/homebrew-cask,timsutton/homebrew-cask,timsutton/homebrew-cask,yurikoles/homebrew-cask
ruby
## Code Before: class CloudfoundryCli < Cask version '6.2.0' sha256 'c804b4245a194a1028b5ac2fe074755d18a8aa2eb37bfc9978a5a4e47e9e644d' url "http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v#{version}/installer-osx-amd64.pkg" homepage 'https://github.com/cloudfoundry/cli' license :oss pkg 'installer-osx-amd64.pkg' uninstall :pkgutil => 'com.pivotal.cloudfoundry.pkg' caveats do files_in_usr_local end end ## Instruction: Upgrade Cloud Foundry CLI to 6.6.1 Latest is 6.6.2, but its package is broken (see https://github.com/cloudfoundry/cli/issues/274), so we're going with 6.6.1. ## Code After: class CloudfoundryCli < Cask version '6.6.1' sha256 '1a159944a447b4b321513cadd8c009477dc084ce22b6bfd2e5e20382d98bb5e5' url "http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v#{version}/installer-osx-amd64.pkg" homepage 'https://github.com/cloudfoundry/cli' license :oss pkg 'installer-osx-amd64.pkg' uninstall :pkgutil => 'com.pivotal.cloudfoundry.pkg' caveats do files_in_usr_local end end
class CloudfoundryCli < Cask - version '6.2.0' ? ^ ^ + version '6.6.1' ? ^ ^ - sha256 'c804b4245a194a1028b5ac2fe074755d18a8aa2eb37bfc9978a5a4e47e9e644d' + sha256 '1a159944a447b4b321513cadd8c009477dc084ce22b6bfd2e5e20382d98bb5e5' url "http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v#{version}/installer-osx-amd64.pkg" homepage 'https://github.com/cloudfoundry/cli' license :oss pkg 'installer-osx-amd64.pkg' uninstall :pkgutil => 'com.pivotal.cloudfoundry.pkg' caveats do files_in_usr_local end end
4
0.285714
2
2
5d1719bb16392bdf3857c08f73278e766616df5e
ci/script.st
ci/script.st
| runner failures errors | Gofer new url: 'http://smalltalkhub.com/mc/adolfopa/MicroKanren/main' username: '' password: ''; package: 'MicroKanren'; load. runner := CommandLineTestRunner runPackage: 'MicroKanren'. failures := runner instVarNamed: #suiteFailures. errors := runner instVarNamed: #suiteErrors. (errors ~= 0) | (failures ~= 0) ifTrue: [ SmalltalkImage current exitFailure ]. SmalltalkImage current exitSuccess.
| runner failures errors buildDir | buildDir := OSPlatform current environment at: 'TRAVIS_BUILD_DIR'. Gofer new url: 'filetree://', buildDir, '/src' username: '' password: ''; package: 'MicroKanren'; load. runner := CommandLineTestRunner runPackage: 'MicroKanren'. failures := runner instVarNamed: #suiteFailures. errors := runner instVarNamed: #suiteErrors. (errors ~= 0) | (failures ~= 0) ifTrue: [ SmalltalkImage current exitFailure ]. SmalltalkImage current exitSuccess.
Load package from cloned Git repo
Load package from cloned Git repo Don't use Monticello version at SmalltalkHub, as it feels like cheating. With this change Travis builds are self contained.
Smalltalk
mit
adolfopa/microkanren-pharo,adolfopa/microkanren-pharo
smalltalk
## Code Before: | runner failures errors | Gofer new url: 'http://smalltalkhub.com/mc/adolfopa/MicroKanren/main' username: '' password: ''; package: 'MicroKanren'; load. runner := CommandLineTestRunner runPackage: 'MicroKanren'. failures := runner instVarNamed: #suiteFailures. errors := runner instVarNamed: #suiteErrors. (errors ~= 0) | (failures ~= 0) ifTrue: [ SmalltalkImage current exitFailure ]. SmalltalkImage current exitSuccess. ## Instruction: Load package from cloned Git repo Don't use Monticello version at SmalltalkHub, as it feels like cheating. With this change Travis builds are self contained. ## Code After: | runner failures errors buildDir | buildDir := OSPlatform current environment at: 'TRAVIS_BUILD_DIR'. Gofer new url: 'filetree://', buildDir, '/src' username: '' password: ''; package: 'MicroKanren'; load. runner := CommandLineTestRunner runPackage: 'MicroKanren'. failures := runner instVarNamed: #suiteFailures. errors := runner instVarNamed: #suiteErrors. (errors ~= 0) | (failures ~= 0) ifTrue: [ SmalltalkImage current exitFailure ]. SmalltalkImage current exitSuccess.
- | runner failures errors | + | runner failures errors buildDir | ? +++++++++ + + buildDir := OSPlatform current environment at: 'TRAVIS_BUILD_DIR'. Gofer new - url: 'http://smalltalkhub.com/mc/adolfopa/MicroKanren/main' + url: 'filetree://', buildDir, '/src' username: '' password: ''; package: 'MicroKanren'; load. runner := CommandLineTestRunner runPackage: 'MicroKanren'. failures := runner instVarNamed: #suiteFailures. errors := runner instVarNamed: #suiteErrors. (errors ~= 0) | (failures ~= 0) ifTrue: [ SmalltalkImage current exitFailure ]. SmalltalkImage current exitSuccess.
6
0.333333
4
2
f4bb576d22108fdfd65bb8f0796cce4aa84349a6
mk-gh-pages.sh
mk-gh-pages.sh
set -ex SYNTH_SRC_ROOT="`dirname $0`" SYNTH_BIN_ROOT=`pwd` SYNTH_PG_ROOT="$SYNTH_SRC_ROOT/../synth-pages" LLVM_LIB_ROOT="/usr/lib/llvm-3.9" STDTAGS="$SYNTH_BIN_ROOT/cppreference-doxygen-web.tag.xml" if [ ! -d "$SYNTH_PG_ROOT" ]; then SYNTH_PG_ROOT="$SYNTH_BIN_ROOT/../synth-pages" fi cd "$SYNTH_SRC_ROOT" SRC_REV=`git rev-parse HEAD` cd "$SYNTH_PG_ROOT" rm -r * || echo "Nothing to remove." "$SYNTH_BIN_ROOT/src/synth" \ "$SYNTH_SRC_ROOT" "$LLVM_LIB_ROOT" -o lib-llvm/ \ --doxytags "$STDTAGS" http://en.cppreference.com/w/ \ --db "$SYNTH_BIN_ROOT" "$SYNTH_SRC_ROOT/dir2html.py" . index.html cp -R "$SYNTH_SRC_ROOT/html-resources/"* . git add -A git commit --amend -m "Match $SRC_REV."
set -ex SYNTH_SRC_ROOT="`dirname $0`" SYNTH_BIN_ROOT=`pwd` SYNTH_PG_ROOT="$SYNTH_SRC_ROOT/../synth-pages" LLVM_LIB_ROOT="/usr/lib/llvm-3.9" STDTAGS="$SYNTH_BIN_ROOT/cppreference-doxygen-web.tag.xml" cat << EOF > template.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>@@filename@@</title> <link rel="stylesheet" href="@@rootpath@@/codestyle-colorful.css"> </head> <body> <div class="highlight"><pre>@@code@@</pre></div> <script src="@@rootpath@@/code.js"></script> </body> </html> EOF if [ ! -d "$SYNTH_PG_ROOT" ]; then SYNTH_PG_ROOT="$SYNTH_BIN_ROOT/../synth-pages" fi cd "$SYNTH_SRC_ROOT" SRC_REV=`git rev-parse HEAD` cd "$SYNTH_PG_ROOT" rm -r * || echo "Nothing to remove." "$SYNTH_BIN_ROOT/src/synth" \ "$SYNTH_SRC_ROOT" "$LLVM_LIB_ROOT" -o lib-llvm/ \ --doxytags "$STDTAGS" http://en.cppreference.com/w/ \ -t "$SYNTH_BIN_ROOT/template.html" \ --db "$SYNTH_BIN_ROOT" "$SYNTH_SRC_ROOT/dir2html.py" . index.html cp -R "$SYNTH_SRC_ROOT/html-resources/"* . git add -A git commit --amend -m "Match $SRC_REV."
Fix initial style sheet selection.
gh-pages: Fix initial style sheet selection.
Shell
mit
Oberon00/synth,Oberon00/synth,Oberon00/synth,Oberon00/synth
shell
## Code Before: set -ex SYNTH_SRC_ROOT="`dirname $0`" SYNTH_BIN_ROOT=`pwd` SYNTH_PG_ROOT="$SYNTH_SRC_ROOT/../synth-pages" LLVM_LIB_ROOT="/usr/lib/llvm-3.9" STDTAGS="$SYNTH_BIN_ROOT/cppreference-doxygen-web.tag.xml" if [ ! -d "$SYNTH_PG_ROOT" ]; then SYNTH_PG_ROOT="$SYNTH_BIN_ROOT/../synth-pages" fi cd "$SYNTH_SRC_ROOT" SRC_REV=`git rev-parse HEAD` cd "$SYNTH_PG_ROOT" rm -r * || echo "Nothing to remove." "$SYNTH_BIN_ROOT/src/synth" \ "$SYNTH_SRC_ROOT" "$LLVM_LIB_ROOT" -o lib-llvm/ \ --doxytags "$STDTAGS" http://en.cppreference.com/w/ \ --db "$SYNTH_BIN_ROOT" "$SYNTH_SRC_ROOT/dir2html.py" . index.html cp -R "$SYNTH_SRC_ROOT/html-resources/"* . git add -A git commit --amend -m "Match $SRC_REV." ## Instruction: gh-pages: Fix initial style sheet selection. ## Code After: set -ex SYNTH_SRC_ROOT="`dirname $0`" SYNTH_BIN_ROOT=`pwd` SYNTH_PG_ROOT="$SYNTH_SRC_ROOT/../synth-pages" LLVM_LIB_ROOT="/usr/lib/llvm-3.9" STDTAGS="$SYNTH_BIN_ROOT/cppreference-doxygen-web.tag.xml" cat << EOF > template.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>@@filename@@</title> <link rel="stylesheet" href="@@rootpath@@/codestyle-colorful.css"> </head> <body> <div class="highlight"><pre>@@code@@</pre></div> <script src="@@rootpath@@/code.js"></script> </body> </html> EOF if [ ! -d "$SYNTH_PG_ROOT" ]; then SYNTH_PG_ROOT="$SYNTH_BIN_ROOT/../synth-pages" fi cd "$SYNTH_SRC_ROOT" SRC_REV=`git rev-parse HEAD` cd "$SYNTH_PG_ROOT" rm -r * || echo "Nothing to remove." "$SYNTH_BIN_ROOT/src/synth" \ "$SYNTH_SRC_ROOT" "$LLVM_LIB_ROOT" -o lib-llvm/ \ --doxytags "$STDTAGS" http://en.cppreference.com/w/ \ -t "$SYNTH_BIN_ROOT/template.html" \ --db "$SYNTH_BIN_ROOT" "$SYNTH_SRC_ROOT/dir2html.py" . index.html cp -R "$SYNTH_SRC_ROOT/html-resources/"* . git add -A git commit --amend -m "Match $SRC_REV."
set -ex SYNTH_SRC_ROOT="`dirname $0`" SYNTH_BIN_ROOT=`pwd` SYNTH_PG_ROOT="$SYNTH_SRC_ROOT/../synth-pages" LLVM_LIB_ROOT="/usr/lib/llvm-3.9" STDTAGS="$SYNTH_BIN_ROOT/cppreference-doxygen-web.tag.xml" + + cat << EOF > template.html + <!DOCTYPE html> + <html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width"> + <title>@@filename@@</title> + <link rel="stylesheet" href="@@rootpath@@/codestyle-colorful.css"> + </head> + <body> + <div class="highlight"><pre>@@code@@</pre></div> + <script src="@@rootpath@@/code.js"></script> + </body> + </html> + EOF if [ ! -d "$SYNTH_PG_ROOT" ]; then SYNTH_PG_ROOT="$SYNTH_BIN_ROOT/../synth-pages" fi cd "$SYNTH_SRC_ROOT" SRC_REV=`git rev-parse HEAD` cd "$SYNTH_PG_ROOT" rm -r * || echo "Nothing to remove." "$SYNTH_BIN_ROOT/src/synth" \ "$SYNTH_SRC_ROOT" "$LLVM_LIB_ROOT" -o lib-llvm/ \ --doxytags "$STDTAGS" http://en.cppreference.com/w/ \ + -t "$SYNTH_BIN_ROOT/template.html" \ --db "$SYNTH_BIN_ROOT" "$SYNTH_SRC_ROOT/dir2html.py" . index.html cp -R "$SYNTH_SRC_ROOT/html-resources/"* . git add -A git commit --amend -m "Match $SRC_REV."
17
0.607143
17
0
c29f55196f97ef3fa70124628fd94c78b90162ea
python/getmonotime.py
python/getmonotime.py
import getopt, sys if __name__ == '__main__': sippy_path = None try: opts, args = getopt.getopt(sys.argv[1:], 's:S:i:o:b') except getopt.GetoptError: usage() for o, a in opts: if o == '-S': sippy_path = a.strip() continue if sippy_path != None: sys.path.insert(0, sippy_path) from sippy.Time.clock_dtime import clock_getdtime, CLOCK_MONOTONIC print clock_getdtime(CLOCK_MONOTONIC)
import getopt, sys if __name__ == '__main__': sippy_path = None try: opts, args = getopt.getopt(sys.argv[1:], 'rS:') except getopt.GetoptError: usage() out_realtime = False for o, a in opts: if o == '-S': sippy_path = a.strip() continue if o == '-r': out_realtime = True if sippy_path != None: sys.path.insert(0, sippy_path) from sippy.Time.clock_dtime import clock_getdtime, CLOCK_MONOTONIC if not out_realtime: print(clock_getdtime(CLOCK_MONOTONIC)) else: from sippy.Time.clock_dtime import CLOCK_REALTIME print("%f %f" % (clock_getdtime(CLOCK_MONOTONIC), clock_getdtime(CLOCK_REALTIME)))
Add an option to output both realtime and monotime.
Add an option to output both realtime and monotime.
Python
bsd-2-clause
synety-jdebp/rtpproxy,dsanders11/rtpproxy,synety-jdebp/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,jevonearth/rtpproxy,jevonearth/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,synety-jdebp/rtpproxy,sippy/rtpproxy
python
## Code Before: import getopt, sys if __name__ == '__main__': sippy_path = None try: opts, args = getopt.getopt(sys.argv[1:], 's:S:i:o:b') except getopt.GetoptError: usage() for o, a in opts: if o == '-S': sippy_path = a.strip() continue if sippy_path != None: sys.path.insert(0, sippy_path) from sippy.Time.clock_dtime import clock_getdtime, CLOCK_MONOTONIC print clock_getdtime(CLOCK_MONOTONIC) ## Instruction: Add an option to output both realtime and monotime. ## Code After: import getopt, sys if __name__ == '__main__': sippy_path = None try: opts, args = getopt.getopt(sys.argv[1:], 'rS:') except getopt.GetoptError: usage() out_realtime = False for o, a in opts: if o == '-S': sippy_path = a.strip() continue if o == '-r': out_realtime = True if sippy_path != None: sys.path.insert(0, sippy_path) from sippy.Time.clock_dtime import clock_getdtime, CLOCK_MONOTONIC if not out_realtime: print(clock_getdtime(CLOCK_MONOTONIC)) else: from sippy.Time.clock_dtime import CLOCK_REALTIME print("%f %f" % (clock_getdtime(CLOCK_MONOTONIC), clock_getdtime(CLOCK_REALTIME)))
import getopt, sys if __name__ == '__main__': sippy_path = None try: - opts, args = getopt.getopt(sys.argv[1:], 's:S:i:o:b') ? ^^ ----- + opts, args = getopt.getopt(sys.argv[1:], 'rS:') ? ^ except getopt.GetoptError: usage() + out_realtime = False for o, a in opts: if o == '-S': sippy_path = a.strip() continue + if o == '-r': + out_realtime = True if sippy_path != None: sys.path.insert(0, sippy_path) from sippy.Time.clock_dtime import clock_getdtime, CLOCK_MONOTONIC + if not out_realtime: - print clock_getdtime(CLOCK_MONOTONIC) ? ^ + print(clock_getdtime(CLOCK_MONOTONIC)) ? ++++ ^ + - + else: + from sippy.Time.clock_dtime import CLOCK_REALTIME + print("%f %f" % (clock_getdtime(CLOCK_MONOTONIC), clock_getdtime(CLOCK_REALTIME)))
12
0.571429
9
3
53c000c7c048f8a8ccbd66415f94f7d079598961
middleware/cors.js
middleware/cors.js
const leancloudHeaders = require('leancloud-cors-headers'); module.exports = function() { return function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*'); if (req.method.toLowerCase() === 'options') { res.statusCode = 200; res.setHeader('Access-Control-Max-Age','86400'); res.setHeader('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', leancloudHeaders); res.setHeader('Content-Length', 0); res.end(); } else { next(); } }; };
const leancloudHeaders = require('leancloud-cors-headers'); module.exports = function() { return function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*'); if (req.method.toLowerCase() === 'options') { res.statusCode = 200; res.setHeader('Access-Control-Max-Age','86400'); res.setHeader('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', leancloudHeaders.join(', ')); res.setHeader('Content-Length', 0); res.end(); } else { next(); } }; };
Fix Access-Control-Allow-Headers to single line
:rotating_light: Fix Access-Control-Allow-Headers to single line
JavaScript
mit
leancloud/leanengine-node-sdk,sdjcw/leanengine-node-sdk
javascript
## Code Before: const leancloudHeaders = require('leancloud-cors-headers'); module.exports = function() { return function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*'); if (req.method.toLowerCase() === 'options') { res.statusCode = 200; res.setHeader('Access-Control-Max-Age','86400'); res.setHeader('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', leancloudHeaders); res.setHeader('Content-Length', 0); res.end(); } else { next(); } }; }; ## Instruction: :rotating_light: Fix Access-Control-Allow-Headers to single line ## Code After: const leancloudHeaders = require('leancloud-cors-headers'); module.exports = function() { return function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*'); if (req.method.toLowerCase() === 'options') { res.statusCode = 200; res.setHeader('Access-Control-Max-Age','86400'); res.setHeader('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, DELETE, OPTIONS'); res.setHeader('Access-Control-Allow-Headers', leancloudHeaders.join(', ')); res.setHeader('Content-Length', 0); res.end(); } else { next(); } }; };
const leancloudHeaders = require('leancloud-cors-headers'); module.exports = function() { return function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*'); if (req.method.toLowerCase() === 'options') { res.statusCode = 200; res.setHeader('Access-Control-Max-Age','86400'); res.setHeader('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, DELETE, OPTIONS'); - res.setHeader('Access-Control-Allow-Headers', leancloudHeaders); + res.setHeader('Access-Control-Allow-Headers', leancloudHeaders.join(', ')); ? +++++++++++ res.setHeader('Content-Length', 0); res.end(); } else { next(); } }; };
2
0.111111
1
1
0d7a9f2892918a7241e7553d4bf52c07893fb26b
app/assets/stylesheets/active_admin/components/_flash_messages.css.scss
app/assets/stylesheets/active_admin/components/_flash_messages.css.scss
body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; } }
body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; margin-bottom: 8px; } }
Fix overlapping flash message on non-logged pages
Fix overlapping flash message on non-logged pages Add some margin-bottom to flash messages on logged out pages
SCSS
mit
javierjulio/activeadmin,seanski/activeadmin,hyperoslo/activeadmin,mrjman/activeadmin,samvincent/active_admin,strivedi183/activeadmin,ampinog/activeadmin,Ryohu/activeadmin,Davidzhu001/activeadmin,shishir127/activeadmin,davydovanton/activeadmin,tjgrathwell/activeadmin,zfben/activeadmin,alonerage/activeadmin,jethroo/activeadmin,senid231/activeadmin,artofhuman/activeadmin,temochka-test/activeadmin,halilim/activeadmin,presskey/activeadmin,sanyaade-iot/activeadmin,h2ocube/active_admin,siutin/activeadmin,bloomrain/activeadmin,whatcould/active_admin,dalegregory/activeadmin,strivedi183/activeadmin,adibsaad/activeadmin,bloomrain/activeadmin,bcavileer/activeadmin,ishumilova/activeadmin,Pollywog23/activeadmin,tf/activeadmin,vraravam/activeadmin,davydovanton/activeadmin,Some1Else/activeadmin,totzyuta/activeadmin,mohitnatoo/activeadmin,danielevans/activeadmin,adibsaad/activeadmin,waymondo/active_admin,thomascarterx/activeadmin,vraravam/activeadmin,hiroponz/activeadmin,mrjman/activeadmin,tf/activeadmin,krautcomputing/activeadmin,applexiaohao/activeadmin,gogovan/activeadmin,buren/activeadmin,mynksngh/activeadmin,waymondo/active_admin,halilim/activeadmin,dhartoto/activeadmin,beyondthestory/activeadmin,mynksngh/activeadmin,SoftSwiss/active_admin,mohitnatoo/activeadmin,applexiaohao/activeadmin,activeadmin/activeadmin,scarver2/activeadmin,Ryohu/activeadmin,mohitnatoo/activeadmin,siutin/activeadmin,hobbes37/activeadmin,scarver2/activeadmin,iuriandreazza/activeadmin,dalegregory/activeadmin,mateusg/active_admin,Pollywog23/activeadmin,Some1Else/activeadmin,Ibotta/activeadmin,deivid-rodriguez/activeadmin,saiqulhaq/activeadmin,westonplatter/activeadmin,senid231/activeadmin,bolshakov/activeadmin,saveav/activeadmin,javierjulio/activeadmin,totzyuta/activeadmin,gogovan/activeadmin,dannyshafer/activeadmin,iuriandreazza/activeadmin,vytenis-s/activeadmin,buren/activeadmin,FundingGates/activeadmin,saiqulhaq/activeadmin,chrisseldo/activeadmin,cmunozgar/activeadmin,FundingGates/activeadmin,saveav/activeadmin,saiqulhaq/activeadmin,rubixware/activeadmin,waymondo/active_admin,mateusg/active_admin,senid231/activeadmin,timoschilling/activeadmin,SoftSwiss/active_admin,Ryohu/activeadmin,FundingGates/activeadmin,maysam/activeadmin,mwlang/active_admin,timoschilling/activeadmin,Ibotta/activeadmin,iuriandreazza/activeadmin,iguchi1124/activeadmin,Amandeepsinghghai/activeadmin,jclay/active_admin,alonerage/activeadmin,applexiaohao/activeadmin,chdem/activeadmin,beyondthestory/activeadmin,westonplatter/activeadmin,activeadmin/activeadmin,deivid-rodriguez/activeadmin,samvincent/active_admin,danielevans/activeadmin,jethroo/activeadmin,chrisseldo/activeadmin,ishumilova/activeadmin,hyperoslo/activeadmin,getkiwicom/activeadmin,bolshakov/activeadmin,Pollywog23/activeadmin,timoschilling/activeadmin,scarver2/activeadmin,getkiwicom/activeadmin,JeffreyATW/activeadmin,krautcomputing/activeadmin,wspurgin/activeadmin,yeti-switch/active_admin,sharma1nitish/activeadmin,Davidzhu001/activeadmin,whatcould/active_admin,samvincent/active_admin,tjgrathwell/activeadmin,mediebruket/activeadmin,mynksngh/activeadmin,wspurgin/activeadmin,seanski/activeadmin,yeti-switch/active_admin,mediebruket/activeadmin,lampo/activeadmin,bolshakov/activeadmin,bcavileer/activeadmin,artofhuman/activeadmin,deivid-rodriguez/activeadmin,vraravam/activeadmin,tf/activeadmin,chdem/activeadmin,buren/activeadmin,vytenis-s/activeadmin,rtrepo/activeadmin,MohamedHegab/activeadmin,Andrekra/activeadmin,yeti-switch/active_admin,h2ocube/active_admin,krautcomputing/activeadmin,hobbes37/activeadmin,yijiasu/activeadmin,totzyuta/activeadmin,ampinog/activeadmin,jclay/active_admin,temochka-test/activeadmin,varyonic/activeadmin,hyperoslo/activeadmin,getkiwicom/activeadmin,artofhuman/activeadmin,mauriciopasquier/active_admin,Davidzhu001/activeadmin,dhartoto/activeadmin,shishir127/activeadmin,sanyaade-iot/activeadmin,halilim/activeadmin,bloomrain/activeadmin,mwlang/active_admin,shishir127/activeadmin,westonplatter/activeadmin,rtrepo/activeadmin,h2ocube/active_admin,tjgrathwell/activeadmin,hobbes37/activeadmin,keichan34/active_admin,quikly/active_admin,varyonic/activeadmin,chdem/activeadmin,lampo/activeadmin,mauriciopasquier/active_admin,iuriandreazza/activeadmin,ishumilova/activeadmin,hiroponz/activeadmin,adibsaad/activeadmin,varyonic/activeadmin,yijiasu/activeadmin,cmunozgar/activeadmin,whatcould/active_admin,keichan34/active_admin,strivedi183/activeadmin,bcavileer/activeadmin,rubixware/activeadmin,keichan34/active_admin,dannyshafer/activeadmin,quikly/active_admin,SoftSwiss/active_admin,iguchi1124/activeadmin,Skulli/activeadmin,yijiasu/activeadmin,presskey/activeadmin,MohamedHegab/activeadmin,mediebruket/activeadmin,JeffreyATW/activeadmin,zfben/activeadmin,activeadmin/activeadmin,alonerage/activeadmin,sharma1nitish/activeadmin,jethroo/activeadmin,gogovan/activeadmin,presskey/activeadmin,maysam/activeadmin,temochka-test/activeadmin,jclay/active_admin,sharma1nitish/activeadmin,MohamedHegab/activeadmin,rtrepo/activeadmin,javierjulio/activeadmin,chrisseldo/activeadmin,quikly/active_admin,mwlang/active_admin,saveav/activeadmin,siutin/activeadmin,iuriandreazza/activeadmin,sanyaade-iot/activeadmin,wspurgin/activeadmin,mrjman/activeadmin,davydovanton/activeadmin,ampinog/activeadmin,Ibotta/activeadmin,Some1Else/activeadmin,beyondthestory/activeadmin,dalegregory/activeadmin,thomascarterx/activeadmin,danielevans/activeadmin,Amandeepsinghghai/activeadmin,thomascarterx/activeadmin,rubixware/activeadmin,seanski/activeadmin,iuriandreazza/activeadmin,mauriciopasquier/active_admin,mateusg/active_admin,cmunozgar/activeadmin,dhartoto/activeadmin,vytenis-s/activeadmin,JeffreyATW/activeadmin,Andrekra/activeadmin,Skulli/activeadmin,hiroponz/activeadmin,dannyshafer/activeadmin,iguchi1124/activeadmin,maysam/activeadmin,lampo/activeadmin,iuriandreazza/activeadmin,Amandeepsinghghai/activeadmin,Andrekra/activeadmin,Skulli/activeadmin,zfben/activeadmin
scss
## Code Before: body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; } } ## Instruction: Fix overlapping flash message on non-logged pages Add some margin-bottom to flash messages on logged out pages ## Code After: body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; margin-bottom: 8px; } }
body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; + margin-bottom: 8px; } }
1
0.026316
1
0
806e2006d5280044d0b623eb5101fea27a190596
mathmlcaneval-backend/src/main/resources/config/config.properties
mathmlcaneval-backend/src/main/resources/config/config.properties
mail.host=localhost mail.from=root@localhost mail.subject=Testing finished mathml-canonicalizer.default.repository=http://github.com/formanek/MathMLCan.git mathml-canonicalizer.default.revision=603ffb2147cfad620d722279e3a776f7d2042ab3 mathml-canonicalizer.default.mainclass=MathMLCanonicalizer #vo wine to musi byt escapnute inac padne appcontext mathml-canonicalizer.default.jarFolder=/home/mir/MathCalEval/mathml-canonicalizers temp.folder=math-temp
mail.host=localhost mail.from=root@localhost mail.subject=Testing finished mathml-canonicalizer.default.repository=http://github.com/formanek/MathMLCan.git mathml-canonicalizer.default.revision=7065b77e57410ff12fd2911015b7c178fea6bdeb mathml-canonicalizer.default.mainclass=MathMLCanonicalizer #vo wine to musi byt escapnute inac padne appcontext mathml-canonicalizer.default.jarFolder=/home/mir/MathCalEval/mathml-canonicalizers temp.folder=math-temp
Update default MathML Canonicalizer revision.
Update default MathML Canonicalizer revision.
INI
apache-2.0
michal-ruzicka/MathMLCanEval,michal-ruzicka/MathMLCanEval
ini
## Code Before: mail.host=localhost mail.from=root@localhost mail.subject=Testing finished mathml-canonicalizer.default.repository=http://github.com/formanek/MathMLCan.git mathml-canonicalizer.default.revision=603ffb2147cfad620d722279e3a776f7d2042ab3 mathml-canonicalizer.default.mainclass=MathMLCanonicalizer #vo wine to musi byt escapnute inac padne appcontext mathml-canonicalizer.default.jarFolder=/home/mir/MathCalEval/mathml-canonicalizers temp.folder=math-temp ## Instruction: Update default MathML Canonicalizer revision. ## Code After: mail.host=localhost mail.from=root@localhost mail.subject=Testing finished mathml-canonicalizer.default.repository=http://github.com/formanek/MathMLCan.git mathml-canonicalizer.default.revision=7065b77e57410ff12fd2911015b7c178fea6bdeb mathml-canonicalizer.default.mainclass=MathMLCanonicalizer #vo wine to musi byt escapnute inac padne appcontext mathml-canonicalizer.default.jarFolder=/home/mir/MathCalEval/mathml-canonicalizers temp.folder=math-temp
mail.host=localhost mail.from=root@localhost mail.subject=Testing finished mathml-canonicalizer.default.repository=http://github.com/formanek/MathMLCan.git - mathml-canonicalizer.default.revision=603ffb2147cfad620d722279e3a776f7d2042ab3 + mathml-canonicalizer.default.revision=7065b77e57410ff12fd2911015b7c178fea6bdeb mathml-canonicalizer.default.mainclass=MathMLCanonicalizer #vo wine to musi byt escapnute inac padne appcontext mathml-canonicalizer.default.jarFolder=/home/mir/MathCalEval/mathml-canonicalizers temp.folder=math-temp
2
0.2
1
1
b1d056ab689ca739848cb4d5a886c767747c2752
spec/models/user_spec.rb
spec/models/user_spec.rb
require 'spec_helper' describe User do pending "add some examples to (or delete) #{__FILE__}" end
require 'spec_helper' describe User do subject do described_class.new :email => 'user@mail.com', :password => 'password' end it { should be_valid } end
Add some specs to user model
Add some specs to user model
Ruby
mit
dmitryrck/organize-app,dmitryrck/organize-app
ruby
## Code Before: require 'spec_helper' describe User do pending "add some examples to (or delete) #{__FILE__}" end ## Instruction: Add some specs to user model ## Code After: require 'spec_helper' describe User do subject do described_class.new :email => 'user@mail.com', :password => 'password' end it { should be_valid } end
require 'spec_helper' describe User do - pending "add some examples to (or delete) #{__FILE__}" + subject do + described_class.new :email => 'user@mail.com', + :password => 'password' + end + + it { should be_valid } end
7
1.4
6
1
ec8a08203746d8ba2df5a6f78cb563dbffcf73a7
spec/rspec/rails/rails_version_spec.rb
spec/rspec/rails/rails_version_spec.rb
require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
require "spec_helper" describe RSpec::Rails, "version" do def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end before { clear_memoized_version } after { clear_memoized_version } describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
Clean up the memoization before and after specs run
Clean up the memoization before and after specs run
Ruby
mit
aceofspades/rspec-rails,unite-us/rspec-rails,DarthSim/rspec-rails,powershop/rspec-rails,grantgeorge/rspec-rails,aceofspades/rspec-rails,mcfiredrill/rspec-rails,gkunwar/rspec-rails,powershop/rspec-rails,eliotsykes/rspec-rails,maclover7/rspec-rails,ipmobiletech/rspec-rails,eliotsykes/rspec-rails,jdax/rspec-rails,jdax/rspec-rails,tjgrathwell/rspec-rails,rspec/rspec-rails,mkyaw/rspec-rails,rspec/rspec-rails,dcrec1/rspec-rails-1,AEgan/rspec-rails,maclover7/rspec-rails,Kriechi/rspec-rails,mkyaw/rspec-rails,ipmobiletech/rspec-rails,unite-us/rspec-rails,tjgrathwell/rspec-rails,grantgeorge/rspec-rails,KlotzAndrew/rspec-rails,grantgeorge/rspec-rails,sopheak-se/rspec-rails,jamelablack/rspec-rails,pjaspers/rspec-rails,gkunwar/rspec-rails,rspec/rspec-rails,gkunwar/rspec-rails,DarthSim/rspec-rails,pjaspers/rspec-rails,KlotzAndrew/rspec-rails,jamelablack/rspec-rails,sopheak-se/rspec-rails,jdax/rspec-rails,sopheak-se/rspec-rails,pjaspers/rspec-rails,jpbamberg1993/rspec-rails,mkyaw/rspec-rails,maclover7/rspec-rails,AEgan/rspec-rails,sarahmei/rspec-rails,sarahmei/rspec-rails,jpbamberg1993/rspec-rails,tjgrathwell/rspec-rails,dcrec1/rspec-rails-1,dcrec1/rspec-rails-1,KlotzAndrew/rspec-rails,aceofspades/rspec-rails,eliotsykes/rspec-rails,Kriechi/rspec-rails,ResultadosDigitais/rspec-rails,jasnow/rspec-rails,jasnow/rspec-rails,powershop/rspec-rails,jpbamberg1993/rspec-rails,DarthSim/rspec-rails,ResultadosDigitais/rspec-rails,jamelablack/rspec-rails,sarahmei/rspec-rails,Kriechi/rspec-rails,unite-us/rspec-rails,jasnow/rspec-rails,ipmobiletech/rspec-rails,mcfiredrill/rspec-rails,mcfiredrill/rspec-rails,AEgan/rspec-rails
ruby
## Code Before: require "spec_helper" describe RSpec::Rails, "version" do before do if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end ## Instruction: Clean up the memoization before and after specs run ## Code After: require "spec_helper" describe RSpec::Rails, "version" do def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end before { clear_memoized_version } after { clear_memoized_version } describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
require "spec_helper" describe RSpec::Rails, "version" do - before do + def clear_memoized_version if RSpec::Rails.instance_variable_defined?(:@rails_version) RSpec::Rails.send(:remove_instance_variable, :@rails_version) end end + + before { clear_memoized_version } + after { clear_memoized_version } describe "#rails_version_satisfied_by?" do it "checks whether the gem version constraint is satisfied by the Rails version" do ::Rails.stub(:version).and_return(Gem::Version.new("4.0.0")) expect(RSpec::Rails.rails_version_satisfied_by?(">=3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>4.0.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_false end it "operates correctly when the Rails version is a string (pre-Rails 4.0)" do ::Rails.stub(:version).and_return("3.2.1") expect(RSpec::Rails.rails_version_satisfied_by?("~>3.2.0")).to be_true expect(RSpec::Rails.rails_version_satisfied_by?("~>3.1.0")).to be_false end end end
5
0.192308
4
1
52d00c5780ea82222f3bab4c940f91834dff8963
templates/cars.html
templates/cars.html
{% extends "base.html" %} {% block title %}Cars{% endblock %} {% block navbar %} <nav> <ul class=" navbar"> <li> <a href="/">Home</a> </li> <li class="active"> <a href="/car/">Cars</a> </li> <li> <a href="/about">About</a> </li> </ul> </nav> {% endblock %} {% block content %} <div class="row row-space"> <div class="col12 padding"> <h1>Available Cars</h1> </div> </div> {% for car in cars %} <div class="row row-space"> <div class="col8"> <h3>{{ car.brand }} {{ car.model }}</h3> <span class="price">{{ car.price }}</span> </div> <div class="col4"> <img src="{{ car.picture_url }}" alt="{{ car.brand }} {{ car.model }}" /> </div> </div> {% endfor %} {% endblock %}
{% extends "base.html" %} {% block title %}Cars{% endblock %} {% block navbar %} <nav> <ul class=" navbar"> <li> <a href="/">Home</a> </li> <li class="active"> <a href="/car/">Cars</a> </li> <li> <a href="/about">About</a> </li> </ul> </nav> {% endblock %} {% block content %} <div class="row row-space"> <div class="col12"> <h1>Available Cars</h1> </div> </div> {% for car in cars %} <div class="row row-space"> <div class="col8"> <h3><a href="/car/{{ car.id }}">{{ car.brand }} {{ car.model }}</a></h3> <span class="price">{{ car.price }}</span> </div> <div class="col4"> <img src="{{ car.picture_url }}" alt="{{ car.brand }} {{ car.model }}" /> </div> </div> {% endfor %} {% endblock %}
Add link to car detail view
Add link to car detail view
HTML
mit
myth/shiny-octo-shame,myth/shiny-octo-shame,myth/shiny-octo-shame,myth/shiny-octo-shame
html
## Code Before: {% extends "base.html" %} {% block title %}Cars{% endblock %} {% block navbar %} <nav> <ul class=" navbar"> <li> <a href="/">Home</a> </li> <li class="active"> <a href="/car/">Cars</a> </li> <li> <a href="/about">About</a> </li> </ul> </nav> {% endblock %} {% block content %} <div class="row row-space"> <div class="col12 padding"> <h1>Available Cars</h1> </div> </div> {% for car in cars %} <div class="row row-space"> <div class="col8"> <h3>{{ car.brand }} {{ car.model }}</h3> <span class="price">{{ car.price }}</span> </div> <div class="col4"> <img src="{{ car.picture_url }}" alt="{{ car.brand }} {{ car.model }}" /> </div> </div> {% endfor %} {% endblock %} ## Instruction: Add link to car detail view ## Code After: {% extends "base.html" %} {% block title %}Cars{% endblock %} {% block navbar %} <nav> <ul class=" navbar"> <li> <a href="/">Home</a> </li> <li class="active"> <a href="/car/">Cars</a> </li> <li> <a href="/about">About</a> </li> </ul> </nav> {% endblock %} {% block content %} <div class="row row-space"> <div class="col12"> <h1>Available Cars</h1> </div> </div> {% for car in cars %} <div class="row row-space"> <div class="col8"> <h3><a href="/car/{{ car.id }}">{{ car.brand }} {{ car.model }}</a></h3> <span class="price">{{ car.price }}</span> </div> <div class="col4"> <img src="{{ car.picture_url }}" alt="{{ car.brand }} {{ car.model }}" /> </div> </div> {% endfor %} {% endblock %}
{% extends "base.html" %} {% block title %}Cars{% endblock %} {% block navbar %} <nav> <ul class=" navbar"> <li> <a href="/">Home</a> </li> <li class="active"> <a href="/car/">Cars</a> </li> <li> <a href="/about">About</a> </li> </ul> </nav> {% endblock %} {% block content %} <div class="row row-space"> - <div class="col12 padding"> ? -------- + <div class="col12"> <h1>Available Cars</h1> </div> </div> {% for car in cars %} <div class="row row-space"> <div class="col8"> - <h3>{{ car.brand }} {{ car.model }}</h3> + <h3><a href="/car/{{ car.id }}">{{ car.brand }} {{ car.model }}</a></h3> ? ++++++++++++++++++++++++++++ ++++ <span class="price">{{ car.price }}</span> </div> <div class="col4"> <img src="{{ car.picture_url }}" alt="{{ car.brand }} {{ car.model }}" /> </div> </div> {% endfor %} {% endblock %}
4
0.102564
2
2
4d67b7160869a0362ba27ce5f6219844c1ab82ca
app/jobs/chronicle_characters_broadcast_job.rb
app/jobs/chronicle_characters_broadcast_job.rb
class ChronicleCharactersBroadcastJob < ApplicationJob queue_as :default def perform(ids, chronicle, type, thing) ids.each do |id| broadcast_update id, chronicle, "#{type}s" => chronicle.send("#{type}_ids") broadcast_update id, thing, chronicle_id: nil if thing.chronicle_id.blank? end end end
class ChronicleCharactersBroadcastJob < ApplicationJob queue_as :default def perform(ids, chronicle, type, thing) ids.each do |id| broadcast_create id, thing, json(thing), 'chronicle', thing.chronicle_id if thing.chronicle_id.present? broadcast_update id, chronicle, "#{type}s" => chronicle.send("#{type}_ids") broadcast_update id, thing, chronicle_id: nil if thing.chronicle_id.blank? end end def json(entity) Api::V1::BaseController.render(json: entity) end end
Fix crash on adding character to chronicle
Fix crash on adding character to chronicle
Ruby
agpl-3.0
makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi
ruby
## Code Before: class ChronicleCharactersBroadcastJob < ApplicationJob queue_as :default def perform(ids, chronicle, type, thing) ids.each do |id| broadcast_update id, chronicle, "#{type}s" => chronicle.send("#{type}_ids") broadcast_update id, thing, chronicle_id: nil if thing.chronicle_id.blank? end end end ## Instruction: Fix crash on adding character to chronicle ## Code After: class ChronicleCharactersBroadcastJob < ApplicationJob queue_as :default def perform(ids, chronicle, type, thing) ids.each do |id| broadcast_create id, thing, json(thing), 'chronicle', thing.chronicle_id if thing.chronicle_id.present? broadcast_update id, chronicle, "#{type}s" => chronicle.send("#{type}_ids") broadcast_update id, thing, chronicle_id: nil if thing.chronicle_id.blank? end end def json(entity) Api::V1::BaseController.render(json: entity) end end
class ChronicleCharactersBroadcastJob < ApplicationJob queue_as :default def perform(ids, chronicle, type, thing) ids.each do |id| + broadcast_create id, thing, json(thing), 'chronicle', thing.chronicle_id if thing.chronicle_id.present? broadcast_update id, chronicle, "#{type}s" => chronicle.send("#{type}_ids") broadcast_update id, thing, chronicle_id: nil if thing.chronicle_id.blank? end end + + def json(entity) + Api::V1::BaseController.render(json: entity) + end end
5
0.5
5
0
32dce554c69dde694ab0c8cffb30118408dc48a2
setup.cfg
setup.cfg
[bdist_wheel] python-tag = py3 [aliases] test = pytest [check-manifest] ignore = .pyup.yml [tool:pytest] # Only run benchmarks as tests. # To actually run the benchmarks, use --benchmark-enable on the command line. # To run the slow tests (fuzzing), add --run-slow on the command line. addopts = --benchmark-disable # Deactivate default name pattern for test classes (we use pytest_describe). python_classes = PyTest* # Set a timeout in seconds for aborting tests that run too long. timeout = 100
[bdist_wheel] python-tag = py3 [aliases] test = pytest [check-manifest] ignore = .pyup.yml [tool:pytest] # Only run benchmarks as tests. # To actually run the benchmarks, use --benchmark-enable on the command line. # To run the slow tests (fuzzing), add --run-slow on the command line. addopts = --benchmark-disable # Deactivate default name pattern for test classes (we use pytest_describe). python_classes = PyTest* # Handle all async fixtures and tests automatically by asyncio asyncio_mode = auto # Set a timeout in seconds for aborting tests that run too long. timeout = 100 # Ignore config options not (yet) available in older Python versions. filterwarnings = ignore::pytest.PytestConfigWarning
Add asyncio_mode setting for pytest
Add asyncio_mode setting for pytest
INI
mit
graphql-python/graphql-core
ini
## Code Before: [bdist_wheel] python-tag = py3 [aliases] test = pytest [check-manifest] ignore = .pyup.yml [tool:pytest] # Only run benchmarks as tests. # To actually run the benchmarks, use --benchmark-enable on the command line. # To run the slow tests (fuzzing), add --run-slow on the command line. addopts = --benchmark-disable # Deactivate default name pattern for test classes (we use pytest_describe). python_classes = PyTest* # Set a timeout in seconds for aborting tests that run too long. timeout = 100 ## Instruction: Add asyncio_mode setting for pytest ## Code After: [bdist_wheel] python-tag = py3 [aliases] test = pytest [check-manifest] ignore = .pyup.yml [tool:pytest] # Only run benchmarks as tests. # To actually run the benchmarks, use --benchmark-enable on the command line. # To run the slow tests (fuzzing), add --run-slow on the command line. addopts = --benchmark-disable # Deactivate default name pattern for test classes (we use pytest_describe). python_classes = PyTest* # Handle all async fixtures and tests automatically by asyncio asyncio_mode = auto # Set a timeout in seconds for aborting tests that run too long. timeout = 100 # Ignore config options not (yet) available in older Python versions. filterwarnings = ignore::pytest.PytestConfigWarning
[bdist_wheel] python-tag = py3 [aliases] test = pytest [check-manifest] ignore = .pyup.yml [tool:pytest] # Only run benchmarks as tests. # To actually run the benchmarks, use --benchmark-enable on the command line. # To run the slow tests (fuzzing), add --run-slow on the command line. addopts = --benchmark-disable # Deactivate default name pattern for test classes (we use pytest_describe). python_classes = PyTest* + # Handle all async fixtures and tests automatically by asyncio + asyncio_mode = auto # Set a timeout in seconds for aborting tests that run too long. timeout = 100 + # Ignore config options not (yet) available in older Python versions. + filterwarnings = ignore::pytest.PytestConfigWarning
4
0.210526
4
0
42ef2d865a337635ef843812e6ee9a1007ba0575
lib/outbrain/api/promoted_link_performance_report.rb
lib/outbrain/api/promoted_link_performance_report.rb
require 'outbrain/api/report' module Outbrain module Api class PromotedLinkPerformanceReport < Report PATH = 'performanceByPromotedLink' def self.path(campaign_id) "campaigns/#{options.fetch(:campaign_id)}/#{PATH}/" end end end end
require 'outbrain/api/report' module Outbrain module Api class PromotedLinkPerformanceReport < Report PATH = 'performanceByPromotedLink' def self.path(options) "campaigns/#{options.fetch(:campaign_id)}/#{PATH}/" end end end end
Fix path method for promoted links preformance report
Fix path method for promoted links preformance report
Ruby
mit
simplereach/outbrain-api,simplereach/outbrain-api
ruby
## Code Before: require 'outbrain/api/report' module Outbrain module Api class PromotedLinkPerformanceReport < Report PATH = 'performanceByPromotedLink' def self.path(campaign_id) "campaigns/#{options.fetch(:campaign_id)}/#{PATH}/" end end end end ## Instruction: Fix path method for promoted links preformance report ## Code After: require 'outbrain/api/report' module Outbrain module Api class PromotedLinkPerformanceReport < Report PATH = 'performanceByPromotedLink' def self.path(options) "campaigns/#{options.fetch(:campaign_id)}/#{PATH}/" end end end end
require 'outbrain/api/report' module Outbrain module Api class PromotedLinkPerformanceReport < Report PATH = 'performanceByPromotedLink' - + - def self.path(campaign_id) ? ^^^ ^ ^ ^^^ + def self.path(options) ? ^ ^ ^ ^ "campaigns/#{options.fetch(:campaign_id)}/#{PATH}/" end end end end
4
0.307692
2
2
bb0f679588e34716075210c1d90a5c9118c72d15
updates/add_fulltext_index_to_products_table.php
updates/add_fulltext_index_to_products_table.php
<?php namespace Octommerce\Octommerce\Updates; use DB; use Schema; use October\Rain\Database\Updates\Migration; class AddFulltextIndexToProductsTable extends Migration { public function up() { DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); } public function down() { Schema::table('octommerce_octommerce_products', function($table) { $table->dropIndex(['name', 'description', 'sku', 'keywords']); }); } }
<?php namespace Octommerce\Octommerce\Updates; use DB; use Schema; use Exception; use October\Rain\Database\Updates\Migration; class AddFulltextIndexToProductsTable extends Migration { public function up() { try { DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); } catch (Exception $e) { // MySQL is not supported. Please update to the newer version } } public function down() { try { Schema::table('octommerce_octommerce_products', function($table) { $table->dropIndex(['name', 'description', 'sku', 'keywords']); }); } catch (Exception $e) { // MySQL is not supported. Please update to the newer version } } }
Add exception when mysql is not support for fulltext index
Add exception when mysql is not support for fulltext index
PHP
mit
octommerce/octommerce,octommerce/octommerce,octommerce/octommerce
php
## Code Before: <?php namespace Octommerce\Octommerce\Updates; use DB; use Schema; use October\Rain\Database\Updates\Migration; class AddFulltextIndexToProductsTable extends Migration { public function up() { DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); } public function down() { Schema::table('octommerce_octommerce_products', function($table) { $table->dropIndex(['name', 'description', 'sku', 'keywords']); }); } } ## Instruction: Add exception when mysql is not support for fulltext index ## Code After: <?php namespace Octommerce\Octommerce\Updates; use DB; use Schema; use Exception; use October\Rain\Database\Updates\Migration; class AddFulltextIndexToProductsTable extends Migration { public function up() { try { DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); } catch (Exception $e) { // MySQL is not supported. Please update to the newer version } } public function down() { try { Schema::table('octommerce_octommerce_products', function($table) { $table->dropIndex(['name', 'description', 'sku', 'keywords']); }); } catch (Exception $e) { // MySQL is not supported. Please update to the newer version } } }
<?php namespace Octommerce\Octommerce\Updates; use DB; use Schema; + use Exception; use October\Rain\Database\Updates\Migration; class AddFulltextIndexToProductsTable extends Migration { public function up() { + try { - DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); + DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (name)'); ? ++++ - DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); + DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (description)'); ? ++++ - DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); + DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (sku)'); ? ++++ - DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); + DB::statement('ALTER TABLE octommerce_octommerce_products ADD FULLTEXT (keywords)'); ? ++++ + } catch (Exception $e) { + // MySQL is not supported. Please update to the newer version + } } public function down() { + try { - Schema::table('octommerce_octommerce_products', function($table) { + Schema::table('octommerce_octommerce_products', function($table) { ? ++++ - $table->dropIndex(['name', 'description', 'sku', 'keywords']); + $table->dropIndex(['name', 'description', 'sku', 'keywords']); ? ++++ + }); + } catch (Exception $e) { + // MySQL is not supported. Please update to the newer version - }); ? -- + } } }
23
0.958333
16
7
2e5c5c4763c4f7583518e35c52173741247a6f73
.travis.yml
.travis.yml
language: node_js # Use container-based infrastructure sudo: false # For the reason why this section is included, see: # https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements compiler: clang-3.6 env: - CXX=clang-3.6 addons: apt: sources: - llvm-toolchain-precise-3.6 - ubuntu-toolchain-r-test packages: - clang-3.6 - g++-4.8 # Don't build commits in the queue if a new commit arrives git: depth: 1 # node versions to test node_js: - "5" # Minimum version - "6" # Latest version # If any version fails, cancel the others matrix: fast_finish: true before_script: - npm install -g gulp-cli script: gulp
language: node_js # Use trusty sudo: true dist: trusty # Don't build commits in the queue if a new commit arrives git: depth: 1 # node versions to test node_js: - "5" # Minimum version - "6" # Latest version # If any version fails, cancel the others matrix: fast_finish: true before_script: - npm install -g gulp-cli script: gulp
Use trusty for latest Node versions
Use trusty for latest Node versions
YAML
mit
cappuccino/acorn-objj
yaml
## Code Before: language: node_js # Use container-based infrastructure sudo: false # For the reason why this section is included, see: # https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements compiler: clang-3.6 env: - CXX=clang-3.6 addons: apt: sources: - llvm-toolchain-precise-3.6 - ubuntu-toolchain-r-test packages: - clang-3.6 - g++-4.8 # Don't build commits in the queue if a new commit arrives git: depth: 1 # node versions to test node_js: - "5" # Minimum version - "6" # Latest version # If any version fails, cancel the others matrix: fast_finish: true before_script: - npm install -g gulp-cli script: gulp ## Instruction: Use trusty for latest Node versions ## Code After: language: node_js # Use trusty sudo: true dist: trusty # Don't build commits in the queue if a new commit arrives git: depth: 1 # node versions to test node_js: - "5" # Minimum version - "6" # Latest version # If any version fails, cancel the others matrix: fast_finish: true before_script: - npm install -g gulp-cli script: gulp
language: node_js + # Use trusty + sudo: true + dist: trusty - # Use container-based infrastructure - sudo: false - - # For the reason why this section is included, see: - # https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements - compiler: clang-3.6 - env: - - CXX=clang-3.6 - addons: - apt: - sources: - - llvm-toolchain-precise-3.6 - - ubuntu-toolchain-r-test - packages: - - clang-3.6 - - g++-4.8 # Don't build commits in the queue if a new commit arrives git: depth: 1 # node versions to test node_js: - "5" # Minimum version - "6" # Latest version # If any version fails, cancel the others matrix: fast_finish: true before_script: - npm install -g gulp-cli script: gulp
19
0.527778
3
16
e9de9ba493198f99035e93c3f1e473ffb45c31a0
dockerhelper.rb
dockerhelper.rb
class DockerHelper attr :c def initialize(common) @c = common end def requires_docker() status = c.run %W{which docker} unless status.success? c.error "docker not installed." STDERR.puts "Installation instructions:" STDERR.puts "\n https://www.docker.com/community-edition\n\n" exit 1 end status = c.run %W{docker info} unless status.success? c.error "`docker info` command failed." STDERR.puts "This is usually a permissions problem. Try allowing your user to run docker\n" STDERR.puts "without sudo:" STDERR.puts "\n$ sudo usermod -aG docker #{ENV["USER"]}\n\n" c.error "Note: You will need to log-in to a new shell before this change will take effect.\n" exit 1 end end def requires_docker_gem() begin require "docker" rescue LoadError c.error "Missing docker-api gem. This makes it much easier for this script to communicate\n" \ "with docker. Please install the gem and then re-run. Try the following to install the gem:" STDERR.puts "\n$ sudo gem install docker-api\n\n" exit 1 end end def image_exists?(name) requires_docker_gem Docker::Image.exist?(name) end def ensure_image(name) requires_docker_gem if not Docker::Image.exist?(name) c.error "Missing docker image \"#{name}\". Pulling..." c.run_inline(%W{docker pull #{name}}) c.status "Image \"#{name}\" pulled." end end end
class DockerHelper attr :c def initialize(common) @c = common end def requires_docker() status = c.run %W{which docker} unless status.success? c.error "docker not installed." STDERR.puts "Installation instructions:" STDERR.puts "\n https://www.docker.com/community-edition\n\n" exit 1 end status = c.run %W{docker info} unless status.success? c.error "`docker info` command failed." STDERR.puts "This is usually a permissions problem. Try allowing your user to run docker\n" STDERR.puts "without sudo:" STDERR.puts "\n$ sudo usermod -aG docker #{ENV["USER"]}\n\n" c.error "Note: You will need to log-in to a new shell before this change will take effect.\n" exit 1 end end def image_exists?(name) requires_docker fmt = "{{.Repository}}:{{.Tag}}" c.capture_stdout(%W{docker images --format #{fmt}}).include?(name) end def ensure_image(name) requires_docker if not image_exists?(name) c.error "Missing docker image \"#{name}\". Pulling..." c.run_inline(%W{docker pull #{name}}) c.status "Image \"#{name}\" pulled." end end end
Remove need for docker gem
Remove need for docker gem
Ruby
mit
dmohs/project-management,dmohs/project-management
ruby
## Code Before: class DockerHelper attr :c def initialize(common) @c = common end def requires_docker() status = c.run %W{which docker} unless status.success? c.error "docker not installed." STDERR.puts "Installation instructions:" STDERR.puts "\n https://www.docker.com/community-edition\n\n" exit 1 end status = c.run %W{docker info} unless status.success? c.error "`docker info` command failed." STDERR.puts "This is usually a permissions problem. Try allowing your user to run docker\n" STDERR.puts "without sudo:" STDERR.puts "\n$ sudo usermod -aG docker #{ENV["USER"]}\n\n" c.error "Note: You will need to log-in to a new shell before this change will take effect.\n" exit 1 end end def requires_docker_gem() begin require "docker" rescue LoadError c.error "Missing docker-api gem. This makes it much easier for this script to communicate\n" \ "with docker. Please install the gem and then re-run. Try the following to install the gem:" STDERR.puts "\n$ sudo gem install docker-api\n\n" exit 1 end end def image_exists?(name) requires_docker_gem Docker::Image.exist?(name) end def ensure_image(name) requires_docker_gem if not Docker::Image.exist?(name) c.error "Missing docker image \"#{name}\". Pulling..." c.run_inline(%W{docker pull #{name}}) c.status "Image \"#{name}\" pulled." end end end ## Instruction: Remove need for docker gem ## Code After: class DockerHelper attr :c def initialize(common) @c = common end def requires_docker() status = c.run %W{which docker} unless status.success? c.error "docker not installed." STDERR.puts "Installation instructions:" STDERR.puts "\n https://www.docker.com/community-edition\n\n" exit 1 end status = c.run %W{docker info} unless status.success? c.error "`docker info` command failed." STDERR.puts "This is usually a permissions problem. Try allowing your user to run docker\n" STDERR.puts "without sudo:" STDERR.puts "\n$ sudo usermod -aG docker #{ENV["USER"]}\n\n" c.error "Note: You will need to log-in to a new shell before this change will take effect.\n" exit 1 end end def image_exists?(name) requires_docker fmt = "{{.Repository}}:{{.Tag}}" c.capture_stdout(%W{docker images --format #{fmt}}).include?(name) end def ensure_image(name) requires_docker if not image_exists?(name) c.error "Missing docker image \"#{name}\". Pulling..." c.run_inline(%W{docker pull #{name}}) c.status "Image \"#{name}\" pulled." end end end
class DockerHelper attr :c def initialize(common) @c = common end def requires_docker() status = c.run %W{which docker} unless status.success? c.error "docker not installed." STDERR.puts "Installation instructions:" STDERR.puts "\n https://www.docker.com/community-edition\n\n" exit 1 end status = c.run %W{docker info} unless status.success? c.error "`docker info` command failed." STDERR.puts "This is usually a permissions problem. Try allowing your user to run docker\n" STDERR.puts "without sudo:" STDERR.puts "\n$ sudo usermod -aG docker #{ENV["USER"]}\n\n" c.error "Note: You will need to log-in to a new shell before this change will take effect.\n" exit 1 end end - def requires_docker_gem() - begin - require "docker" - rescue LoadError - c.error "Missing docker-api gem. This makes it much easier for this script to communicate\n" \ - "with docker. Please install the gem and then re-run. Try the following to install the gem:" - STDERR.puts "\n$ sudo gem install docker-api\n\n" - exit 1 - end - end - def image_exists?(name) - requires_docker_gem ? ---- + requires_docker - Docker::Image.exist?(name) + fmt = "{{.Repository}}:{{.Tag}}" + c.capture_stdout(%W{docker images --format #{fmt}}).include?(name) end def ensure_image(name) - requires_docker_gem ? ---- + requires_docker - if not Docker::Image.exist?(name) ? ^^^^^^^^^ ^ + if not image_exists?(name) ? ^ ^ + c.error "Missing docker image \"#{name}\". Pulling..." c.run_inline(%W{docker pull #{name}}) c.status "Image \"#{name}\" pulled." end end end
20
0.392157
5
15
db90ca4e9d32cd1c42654cccbe2350fa90421dbb
src/test/java/org/codehaus/plexus/util/ContextMapAdapterTest.java
src/test/java/org/codehaus/plexus/util/ContextMapAdapterTest.java
package org.codehaus.plexus.util; import junit.framework.TestCase; import java.util.Map; import java.util.HashMap; import java.io.StringReader; import java.io.StringWriter; import org.codehaus.plexus.context.DefaultContext; /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ContextMapAdapterTest extends TestCase { public ContextMapAdapterTest( String name ) { super( name ); } public void testInterpolation() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "occupation", "exotic dancer" ); ContextMapAdapter adapter = new ContextMapAdapter( context ); assertEquals( "jason", (String) adapter.get( "name" ) ); assertEquals( "exotic dancer", (String) adapter.get( "occupation" ) ); assertNull( adapter.get( "foo") ); } }
package org.codehaus.plexus.util; import java.io.StringReader; import java.io.StringWriter; import junit.framework.TestCase; import org.codehaus.plexus.context.DefaultContext; /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ContextMapAdapterTest extends TestCase { public ContextMapAdapterTest( String name ) { super( name ); } public void testInterpolation() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "occupation", "exotic dancer" ); ContextMapAdapter adapter = new ContextMapAdapter( context ); assertEquals( "jason", (String) adapter.get( "name" ) ); assertEquals( "exotic dancer", (String) adapter.get( "occupation" ) ); assertNull( adapter.get( "foo") ); } public void testInterpolationWithContext() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "noun", "asshole" ); String foo = "${name} is an ${noun}. ${not.interpolated}"; InterpolationFilterReader reader = new InterpolationFilterReader( new StringReader( foo ), new ContextMapAdapter( context ) ); StringWriter writer = new StringWriter(); IOUtil.copy( reader, writer ); String bar = writer.toString(); assertEquals( "jason is an asshole. ${not.interpolated}", bar ); } }
Add test from InterpolationFilterReaderTest, removing circular dependency.
Add test from InterpolationFilterReaderTest, removing circular dependency.
Java
apache-2.0
codehaus-plexus/plexus-utils,codehaus-plexus/plexus-utils,codehaus-plexus/plexus-utils
java
## Code Before: package org.codehaus.plexus.util; import junit.framework.TestCase; import java.util.Map; import java.util.HashMap; import java.io.StringReader; import java.io.StringWriter; import org.codehaus.plexus.context.DefaultContext; /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ContextMapAdapterTest extends TestCase { public ContextMapAdapterTest( String name ) { super( name ); } public void testInterpolation() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "occupation", "exotic dancer" ); ContextMapAdapter adapter = new ContextMapAdapter( context ); assertEquals( "jason", (String) adapter.get( "name" ) ); assertEquals( "exotic dancer", (String) adapter.get( "occupation" ) ); assertNull( adapter.get( "foo") ); } } ## Instruction: Add test from InterpolationFilterReaderTest, removing circular dependency. ## Code After: package org.codehaus.plexus.util; import java.io.StringReader; import java.io.StringWriter; import junit.framework.TestCase; import org.codehaus.plexus.context.DefaultContext; /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ContextMapAdapterTest extends TestCase { public ContextMapAdapterTest( String name ) { super( name ); } public void testInterpolation() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "occupation", "exotic dancer" ); ContextMapAdapter adapter = new ContextMapAdapter( context ); assertEquals( "jason", (String) adapter.get( "name" ) ); assertEquals( "exotic dancer", (String) adapter.get( "occupation" ) ); assertNull( adapter.get( "foo") ); } public void testInterpolationWithContext() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "noun", "asshole" ); String foo = "${name} is an ${noun}. ${not.interpolated}"; InterpolationFilterReader reader = new InterpolationFilterReader( new StringReader( foo ), new ContextMapAdapter( context ) ); StringWriter writer = new StringWriter(); IOUtil.copy( reader, writer ); String bar = writer.toString(); assertEquals( "jason is an asshole. ${not.interpolated}", bar ); } }
package org.codehaus.plexus.util; - import junit.framework.TestCase; - - import java.util.Map; - import java.util.HashMap; import java.io.StringReader; import java.io.StringWriter; + + import junit.framework.TestCase; import org.codehaus.plexus.context.DefaultContext; /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ContextMapAdapterTest extends TestCase { public ContextMapAdapterTest( String name ) { super( name ); } public void testInterpolation() throws Exception { DefaultContext context = new DefaultContext(); context.put( "name", "jason" ); context.put( "occupation", "exotic dancer" ); ContextMapAdapter adapter = new ContextMapAdapter( context ); assertEquals( "jason", (String) adapter.get( "name" ) ); assertEquals( "exotic dancer", (String) adapter.get( "occupation" ) ); assertNull( adapter.get( "foo") ); } + + public void testInterpolationWithContext() + throws Exception + { + DefaultContext context = new DefaultContext(); + context.put( "name", "jason" ); + context.put( "noun", "asshole" ); + + String foo = "${name} is an ${noun}. ${not.interpolated}"; + + InterpolationFilterReader reader = + new InterpolationFilterReader( new StringReader( foo ), new ContextMapAdapter( context ) ); + + StringWriter writer = new StringWriter(); + IOUtil.copy( reader, writer ); + + String bar = writer.toString(); + assertEquals( "jason is an asshole. ${not.interpolated}", bar ); + } }
25
0.595238
21
4
26c90c0dd105bf83499a83826f2a6ff7a724620d
website/src/index.js
website/src/index.js
import 'process'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import 'codemirror/lib/codemirror.css'; import './react-docgen.less'; ReactDOM.render(<App />, document.getElementById('root'));
import 'process'; import React from 'react'; import * as ReactDOMClient from 'react-dom/client'; import App from './components/App'; import 'codemirror/lib/codemirror.css'; import './react-docgen.less'; const container = document.getElementById('root'); const root = ReactDOMClient.createRoot(container); root.render(<App />);
Use new react 18 createRoot API
chore(website): Use new react 18 createRoot API
JavaScript
mit
reactjs/react-docgen,reactjs/react-docgen,reactjs/react-docgen
javascript
## Code Before: import 'process'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import 'codemirror/lib/codemirror.css'; import './react-docgen.less'; ReactDOM.render(<App />, document.getElementById('root')); ## Instruction: chore(website): Use new react 18 createRoot API ## Code After: import 'process'; import React from 'react'; import * as ReactDOMClient from 'react-dom/client'; import App from './components/App'; import 'codemirror/lib/codemirror.css'; import './react-docgen.less'; const container = document.getElementById('root'); const root = ReactDOMClient.createRoot(container); root.render(<App />);
import 'process'; import React from 'react'; - import ReactDOM from 'react-dom'; + import * as ReactDOMClient from 'react-dom/client'; ? +++++ ++++++ +++++++ import App from './components/App'; - import 'codemirror/lib/codemirror.css'; import './react-docgen.less'; - ReactDOM.render(<App />, document.getElementById('root')); + const container = document.getElementById('root'); + const root = ReactDOMClient.createRoot(container); + + root.render(<App />);
8
0.888889
5
3
da7a5d7b717df6312bba26de5cf83fab651c37d8
src/validation-strategies/one-valid-issue.js
src/validation-strategies/one-valid-issue.js
import issueStrats from '../issue-strategies/index.js'; import * as promiseUtils from '../promise-utils.js'; function validateStrategies(issueKey, jiraClientAPI) { return jiraClientAPI.findIssue(issueKey) .then(content => issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI) ) .catch(content => Promise.reject(new Error(`${issueKey} does not have a valid issuetype`))); } export default function apply(issues, jiraClientAPI) { return promiseUtils.anyPromise(issues.map(i => validateStrategies(i, jiraClientAPI))); }
import issueStrats from '../issue-strategies/index.js'; import * as promiseUtils from '../promise-utils.js'; function validateStrategies(issueKey, jiraClientAPI) { return jiraClientAPI.findIssue(issueKey) .then(content => { if (!issueStrats[content.fields.issuetype.name]) { return Promise.reject(new Error(`${issueKey} does not have a valid issuetype`)); } return issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI); }); } export default function apply(issues, jiraClientAPI) { return promiseUtils.anyPromise(issues.map(i => validateStrategies(i, jiraClientAPI))); }
Fix bug in no issue validation logic
Fix bug in no issue validation logic
JavaScript
mit
TWExchangeSolutions/jira-precommit-hook,DarriusWrightGD/jira-precommit-hook
javascript
## Code Before: import issueStrats from '../issue-strategies/index.js'; import * as promiseUtils from '../promise-utils.js'; function validateStrategies(issueKey, jiraClientAPI) { return jiraClientAPI.findIssue(issueKey) .then(content => issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI) ) .catch(content => Promise.reject(new Error(`${issueKey} does not have a valid issuetype`))); } export default function apply(issues, jiraClientAPI) { return promiseUtils.anyPromise(issues.map(i => validateStrategies(i, jiraClientAPI))); } ## Instruction: Fix bug in no issue validation logic ## Code After: import issueStrats from '../issue-strategies/index.js'; import * as promiseUtils from '../promise-utils.js'; function validateStrategies(issueKey, jiraClientAPI) { return jiraClientAPI.findIssue(issueKey) .then(content => { if (!issueStrats[content.fields.issuetype.name]) { return Promise.reject(new Error(`${issueKey} does not have a valid issuetype`)); } return issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI); }); } export default function apply(issues, jiraClientAPI) { return promiseUtils.anyPromise(issues.map(i => validateStrategies(i, jiraClientAPI))); }
import issueStrats from '../issue-strategies/index.js'; import * as promiseUtils from '../promise-utils.js'; function validateStrategies(issueKey, jiraClientAPI) { return jiraClientAPI.findIssue(issueKey) - .then(content => ? -- + .then(content => { ? ++ + if (!issueStrats[content.fields.issuetype.name]) { + return Promise.reject(new Error(`${issueKey} does not have a valid issuetype`)); + } + - issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI) ? ^ + return issueStrats[content.fields.issuetype.name].apply(content, jiraClientAPI); ? ^^^^^^ + + }); - ) - .catch(content => Promise.reject(new Error(`${issueKey} does not have a valid issuetype`))); } export default function apply(issues, jiraClientAPI) { return promiseUtils.anyPromise(issues.map(i => validateStrategies(i, jiraClientAPI))); }
11
0.785714
7
4
d2ed6b4d8871c61e8d75bc2f38c902ba8cfaebd0
ansible.cfg
ansible.cfg
[defaults] inventory = inventory retry_files_enabled = False ask_sudo_pass=True [ssh_connection] pipelining = True scp_if_ssh = True ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no
[defaults] inventory = inventory retry_files_enabled = False [ssh_connection] pipelining = True scp_if_ssh = True ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no
Remove asking for sudo password
fix: Remove asking for sudo password
INI
mit
mtchavez/mac-ansible
ini
## Code Before: [defaults] inventory = inventory retry_files_enabled = False ask_sudo_pass=True [ssh_connection] pipelining = True scp_if_ssh = True ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no ## Instruction: fix: Remove asking for sudo password ## Code After: [defaults] inventory = inventory retry_files_enabled = False [ssh_connection] pipelining = True scp_if_ssh = True ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no
[defaults] inventory = inventory retry_files_enabled = False - ask_sudo_pass=True [ssh_connection] pipelining = True scp_if_ssh = True ssh_args = -o ForwardAgent=yes -o StrictHostKeyChecking=no
1
0.090909
0
1
4ab8abf0fd8ad3322e8a30a5f3832f94b6985bc8
src/AppBundle/Resources/views/Default/index.html.twig
src/AppBundle/Resources/views/Default/index.html.twig
{% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }} {% for product in results %} <ul> <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> <li> {{ product.ORIGGPFR }}</li> </ul> {% endfor %} {% endblock %}
{% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }} {% if results is defined %} {% for product in results %} <ul> <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> <li> {{ product.ORIGGPFR }}</li> </ul> {% endfor %} {% endif %} {% endblock %}
Add of condition in result' view
Add of condition in result' view
Twig
mit
alexialeplus/allyouneedisfood,alexialeplus/allyouneedisfood
twig
## Code Before: {% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }} {% for product in results %} <ul> <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> <li> {{ product.ORIGGPFR }}</li> </ul> {% endfor %} {% endblock %} ## Instruction: Add of condition in result' view ## Code After: {% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }} {% if results is defined %} {% for product in results %} <ul> <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> <li> {{ product.ORIGGPFR }}</li> </ul> {% endfor %} {% endif %} {% endblock %}
{% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }} {{ form_widget(form) }} {{ form_end(form) }} + {% if results is defined %} - {% for product in results %} + {% for product in results %} ? + - <ul> + <ul> ? + - <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> + <li><a href={{ path('show_product', {'id' : product.id }) }}> {{ product.ORIGFDNM }}</a></li> ? + - <li> {{ product.ORIGGPFR }}</li> + <li> {{ product.ORIGGPFR }}</li> ? + - </ul> + </ul> ? + - {% endfor %} + {% endfor %} ? + + {% endif %} {% endblock %}
14
1.076923
8
6
014fe21a9f47f6c6bac30ddbfa90a7b3853e9271
recipes/pngpack-py/meta.yaml
recipes/pngpack-py/meta.yaml
{% set version = "1.0.0" %} package: name: pngpack-py version: {{ version }} source: url: https://github.com/axiom-data-science/pngpack/archive/v{{ version }}.zip sha256: df6c6011395fb36add7c184cfbea832aef32fcee21069dec63dd27842a36ab03 build: number: 0 script: cd pngpack-py && python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - {{ compiler('c') }} host: - libpng - python - cython - pip run: - libpng - python test: imports: - pngpack - sys about: home: https://github.com/axiom-data-science/pngpack summary: "Python 3 library to pack floating point values into 16-bit PNG images" license: MIT license_family: MIT license_file: LICENSE extra: recipe-maintainers: - kwilcox
{% set version = "1.0.0" %} package: name: pngpack-py version: {{ version }} source: url: https://github.com/axiom-data-science/pngpack/archive/v{{ version }}.zip sha256: df6c6011395fb36add7c184cfbea832aef32fcee21069dec63dd27842a36ab03 build: number: 0 skip: true # [py<35] script: cd pngpack-py && python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - {{ compiler('c') }} host: - libpng - python - cython - pip run: - libpng - python test: imports: - pngpack - sys about: home: https://github.com/axiom-data-science/pngpack summary: "Python 3 library to pack floating point values into 16-bit PNG images" license: MIT license_family: MIT license_file: LICENSE extra: recipe-maintainers: - kwilcox
Support only recent versions of Python 3
Support only recent versions of Python 3
YAML
bsd-3-clause
kwilcox/staged-recipes,petrushy/staged-recipes,dschreij/staged-recipes,SylvainCorlay/staged-recipes,conda-forge/staged-recipes,cpaulik/staged-recipes,goanpeca/staged-recipes,patricksnape/staged-recipes,mcs07/staged-recipes,petrushy/staged-recipes,jjhelmus/staged-recipes,dschreij/staged-recipes,chrisburr/staged-recipes,scopatz/staged-recipes,synapticarbors/staged-recipes,ocefpaf/staged-recipes,mariusvniekerk/staged-recipes,mariusvniekerk/staged-recipes,conda-forge/staged-recipes,goanpeca/staged-recipes,jjhelmus/staged-recipes,scopatz/staged-recipes,stuertz/staged-recipes,jakirkham/staged-recipes,synapticarbors/staged-recipes,johanneskoester/staged-recipes,ReimarBauer/staged-recipes,Juanlu001/staged-recipes,johanneskoester/staged-recipes,kwilcox/staged-recipes,jochym/staged-recipes,jochym/staged-recipes,igortg/staged-recipes,SylvainCorlay/staged-recipes,cpaulik/staged-recipes,isuruf/staged-recipes,stuertz/staged-recipes,patricksnape/staged-recipes,igortg/staged-recipes,hadim/staged-recipes,asmeurer/staged-recipes,basnijholt/staged-recipes,basnijholt/staged-recipes,jakirkham/staged-recipes,chrisburr/staged-recipes,birdsarah/staged-recipes,ceholden/staged-recipes,hadim/staged-recipes,ceholden/staged-recipes,asmeurer/staged-recipes,ReimarBauer/staged-recipes,ocefpaf/staged-recipes,birdsarah/staged-recipes,isuruf/staged-recipes,mcs07/staged-recipes,Juanlu001/staged-recipes
yaml
## Code Before: {% set version = "1.0.0" %} package: name: pngpack-py version: {{ version }} source: url: https://github.com/axiom-data-science/pngpack/archive/v{{ version }}.zip sha256: df6c6011395fb36add7c184cfbea832aef32fcee21069dec63dd27842a36ab03 build: number: 0 script: cd pngpack-py && python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - {{ compiler('c') }} host: - libpng - python - cython - pip run: - libpng - python test: imports: - pngpack - sys about: home: https://github.com/axiom-data-science/pngpack summary: "Python 3 library to pack floating point values into 16-bit PNG images" license: MIT license_family: MIT license_file: LICENSE extra: recipe-maintainers: - kwilcox ## Instruction: Support only recent versions of Python 3 ## Code After: {% set version = "1.0.0" %} package: name: pngpack-py version: {{ version }} source: url: https://github.com/axiom-data-science/pngpack/archive/v{{ version }}.zip sha256: df6c6011395fb36add7c184cfbea832aef32fcee21069dec63dd27842a36ab03 build: number: 0 skip: true # [py<35] script: cd pngpack-py && python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - {{ compiler('c') }} host: - libpng - python - cython - pip run: - libpng - python test: imports: - pngpack - sys about: home: https://github.com/axiom-data-science/pngpack summary: "Python 3 library to pack floating point values into 16-bit PNG images" license: MIT license_family: MIT license_file: LICENSE extra: recipe-maintainers: - kwilcox
{% set version = "1.0.0" %} package: name: pngpack-py version: {{ version }} source: url: https://github.com/axiom-data-science/pngpack/archive/v{{ version }}.zip sha256: df6c6011395fb36add7c184cfbea832aef32fcee21069dec63dd27842a36ab03 build: number: 0 + skip: true # [py<35] script: cd pngpack-py && python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - {{ compiler('c') }} host: - libpng - python - cython - pip run: - libpng - python test: imports: - pngpack - sys about: home: https://github.com/axiom-data-science/pngpack summary: "Python 3 library to pack floating point values into 16-bit PNG images" license: MIT license_family: MIT license_file: LICENSE extra: recipe-maintainers: - kwilcox
1
0.02439
1
0
20d762252a1207d8e45d7af3546decc0219c734a
README.md
README.md
Hubot plugin for integrating with StackStorm event-driven infrastructure automation platform. ## Testing ### Lint ```bash gulp lint ``` ### Tests ```bash gulp test ``` ## License StackStorm plugin is distributed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).
[![StackStorm](https://github.com/stackstorm/st2/raw/master/stackstorm_logo.png)](http://www.stackstorm.com) [![Build Status](https://api.travis-ci.org/StackStorm/hubot-stackstorm.svg?branch=master)](https://travis-ci.org/StackStorm/hubot-stackstorm) [![IRC](https://img.shields.io/irc/%23stackstorm.png)](http://webchat.freenode.net/?channels=stackstorm) # StackStorm Hubot Plugin Hubot plugin for integrating with StackStorm event-driven infrastructure automation platform. ## Installing and configuring the plugin To install and configure the plugin, first install hubot by following the installation instructions at https://hubot.github.com/docs/. After you have installed hubot and generated your bot, go to your bot directory and install the plugin npm package: ```bash npm install hubot-stackstorm ``` After that, edit the `external-scripts.json` file in your bot directory and make sure it contains ``hubot-stackstorm`` entry. ```javascript ['hubot-stackstorm'] ``` After that's done, you are ready to start your bot. ## Plugin environment variable options To configure the plugin behavior, the following environment variable can be specified when running hubot: * `ST2_API` - URL to the StackStorm API endpoint. * `ST2_CHANNEL` - Slack channel where all the notifications should be sent to. * `ST2_AUTH_USERNAME` - API credentials - username (optional). * `ST2_AUTH_PASSWORD` - API credentials - password (optional). * `ST2_AUTH_URL` - URL to the StackStorm Auth API (optional). * `ST2_COMMANDS_RELOAD_INTERVAL` - How often the list of available commands should be reloaded. Defaults to every 120 seconds (optional). ## Testing ### Lint ```bash gulp lint ``` ### Tests ```bash gulp test ``` ## License StackStorm plugin is distributed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).
Update readme, add installation instructions and available settings.
Update readme, add installation instructions and available settings.
Markdown
apache-2.0
armab/hubot-stackstorm,StackStorm/hubot-stackstorm
markdown
## Code Before: Hubot plugin for integrating with StackStorm event-driven infrastructure automation platform. ## Testing ### Lint ```bash gulp lint ``` ### Tests ```bash gulp test ``` ## License StackStorm plugin is distributed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html). ## Instruction: Update readme, add installation instructions and available settings. ## Code After: [![StackStorm](https://github.com/stackstorm/st2/raw/master/stackstorm_logo.png)](http://www.stackstorm.com) [![Build Status](https://api.travis-ci.org/StackStorm/hubot-stackstorm.svg?branch=master)](https://travis-ci.org/StackStorm/hubot-stackstorm) [![IRC](https://img.shields.io/irc/%23stackstorm.png)](http://webchat.freenode.net/?channels=stackstorm) # StackStorm Hubot Plugin Hubot plugin for integrating with StackStorm event-driven infrastructure automation platform. ## Installing and configuring the plugin To install and configure the plugin, first install hubot by following the installation instructions at https://hubot.github.com/docs/. After you have installed hubot and generated your bot, go to your bot directory and install the plugin npm package: ```bash npm install hubot-stackstorm ``` After that, edit the `external-scripts.json` file in your bot directory and make sure it contains ``hubot-stackstorm`` entry. ```javascript ['hubot-stackstorm'] ``` After that's done, you are ready to start your bot. ## Plugin environment variable options To configure the plugin behavior, the following environment variable can be specified when running hubot: * `ST2_API` - URL to the StackStorm API endpoint. * `ST2_CHANNEL` - Slack channel where all the notifications should be sent to. * `ST2_AUTH_USERNAME` - API credentials - username (optional). * `ST2_AUTH_PASSWORD` - API credentials - password (optional). * `ST2_AUTH_URL` - URL to the StackStorm Auth API (optional). * `ST2_COMMANDS_RELOAD_INTERVAL` - How often the list of available commands should be reloaded. Defaults to every 120 seconds (optional). ## Testing ### Lint ```bash gulp lint ``` ### Tests ```bash gulp test ``` ## License StackStorm plugin is distributed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).
+ [![StackStorm](https://github.com/stackstorm/st2/raw/master/stackstorm_logo.png)](http://www.stackstorm.com) + + [![Build Status](https://api.travis-ci.org/StackStorm/hubot-stackstorm.svg?branch=master)](https://travis-ci.org/StackStorm/hubot-stackstorm) [![IRC](https://img.shields.io/irc/%23stackstorm.png)](http://webchat.freenode.net/?channels=stackstorm) + + # StackStorm Hubot Plugin Hubot plugin for integrating with StackStorm event-driven infrastructure automation platform. + + ## Installing and configuring the plugin + + To install and configure the plugin, first install hubot by following the + installation instructions at https://hubot.github.com/docs/. + + After you have installed hubot and generated your bot, go to your bot directory + and install the plugin npm package: + + ```bash + npm install hubot-stackstorm + ``` + + After that, edit the `external-scripts.json` file in your bot directory and + make sure it contains ``hubot-stackstorm`` entry. + + ```javascript + ['hubot-stackstorm'] + ``` + + After that's done, you are ready to start your bot. + + ## Plugin environment variable options + + To configure the plugin behavior, the following environment variable can be + specified when running hubot: + + * `ST2_API` - URL to the StackStorm API endpoint. + * `ST2_CHANNEL` - Slack channel where all the notifications should be sent to. + * `ST2_AUTH_USERNAME` - API credentials - username (optional). + * `ST2_AUTH_PASSWORD` - API credentials - password (optional). + * `ST2_AUTH_URL` - URL to the StackStorm Auth API (optional). + * `ST2_COMMANDS_RELOAD_INTERVAL` - How often the list of available commands + should be reloaded. Defaults to every 120 seconds (optional). ## Testing ### Lint ```bash gulp lint ``` ### Tests ```bash gulp test ``` ## License StackStorm plugin is distributed under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).
39
1.857143
39
0
94e4d7a92da9f03ecb82ea4be7f5934a3f364469
src/main/java/hackerrank/TheLoveLetterMystery.java
src/main/java/hackerrank/TheLoveLetterMystery.java
package hackerrank; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/the-love-letter-mystery */ public class TheLoveLetterMystery { private static int loveLetterMystery(String str) { // TODO: return 0; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int testCases = in.nextInt(); for (int t = 0; t < testCases; t++) { String str = in.next(); System.out.println(loveLetterMystery(str)); } } }
package hackerrank; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/the-love-letter-mystery */ public class TheLoveLetterMystery { private static int loveLetterMystery(String str) { int count = 0; char[] chars = str.toCharArray(); for (int i = 0, j = chars.length - 1; i < j; i++, j--) { char left = chars[i]; char right = chars[j]; if (left != right) { if (left < right) { while (left < right) { right--; count++; } } else if (left > right) { while (left > right) { left--; count++; } } } } return count; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int testCases = in.nextInt(); for (int t = 0; t < testCases; t++) { String str = in.next(); System.out.println(loveLetterMystery(str)); } } }
Solve The Love Letter Mystery
Solve The Love Letter Mystery
Java
mit
fredyw/hackerrank
java
## Code Before: package hackerrank; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/the-love-letter-mystery */ public class TheLoveLetterMystery { private static int loveLetterMystery(String str) { // TODO: return 0; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int testCases = in.nextInt(); for (int t = 0; t < testCases; t++) { String str = in.next(); System.out.println(loveLetterMystery(str)); } } } ## Instruction: Solve The Love Letter Mystery ## Code After: package hackerrank; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/the-love-letter-mystery */ public class TheLoveLetterMystery { private static int loveLetterMystery(String str) { int count = 0; char[] chars = str.toCharArray(); for (int i = 0, j = chars.length - 1; i < j; i++, j--) { char left = chars[i]; char right = chars[j]; if (left != right) { if (left < right) { while (left < right) { right--; count++; } } else if (left > right) { while (left > right) { left--; count++; } } } } return count; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int testCases = in.nextInt(); for (int t = 0; t < testCases; t++) { String str = in.next(); System.out.println(loveLetterMystery(str)); } } }
package hackerrank; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/the-love-letter-mystery */ public class TheLoveLetterMystery { private static int loveLetterMystery(String str) { - // TODO: + int count = 0; + char[] chars = str.toCharArray(); + for (int i = 0, j = chars.length - 1; i < j; i++, j--) { + char left = chars[i]; + char right = chars[j]; + if (left != right) { + if (left < right) { + while (left < right) { + right--; + count++; + } + } else if (left > right) { + while (left > right) { + left--; + count++; + } + } + } + } - return 0; ? ^ + return count; ? ^^^^^ } public static void main(String[] args) { Scanner in = new Scanner(System.in); int testCases = in.nextInt(); for (int t = 0; t < testCases; t++) { String str = in.next(); System.out.println(loveLetterMystery(str)); } } }
22
1
20
2
35debf8c05fb5233841374331ae40853ec851437
server.js
server.js
var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp/redis.sock'); api.get('/', function(req, res){ res.send('Hello World'); }); api.use(function(err, req, res, next){ console.error(err.stack); res.send(500, 'Something broke!'); }); api.set('port', process.env.PORT || 3000); var server = api.listen(api.get('port'), function() { console.log('Listening on port %d', server.address().port); });
var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp/redis.sock'); api.get('/', function(req, res){ res.send('Hello World'); }); api.use(function(err, req, res, next){ console.error(err.stack); res.send(500, 'Something broke!'); }); api.set('port', process.env.PORT || 3000); var server = api.listen(api.get('port'), function() { console.log('Listening on port %d', server.address().port); }); module.exports = api;
Add api to module exports
Add api to module exports
JavaScript
mit
nathansmyth/node-stack,nathansmyth/node-stack
javascript
## Code Before: var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp/redis.sock'); api.get('/', function(req, res){ res.send('Hello World'); }); api.use(function(err, req, res, next){ console.error(err.stack); res.send(500, 'Something broke!'); }); api.set('port', process.env.PORT || 3000); var server = api.listen(api.get('port'), function() { console.log('Listening on port %d', server.address().port); }); ## Instruction: Add api to module exports ## Code After: var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp/redis.sock'); api.get('/', function(req, res){ res.send('Hello World'); }); api.use(function(err, req, res, next){ console.error(err.stack); res.send(500, 'Something broke!'); }); api.set('port', process.env.PORT || 3000); var server = api.listen(api.get('port'), function() { console.log('Listening on port %d', server.address().port); }); module.exports = api;
var express = require('express'); var redis = require('ioredis'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/endpoints'); var users = require('./routes/users'); var api = express(); // var redis = new Redis('/tmp/redis.sock'); api.get('/', function(req, res){ res.send('Hello World'); }); api.use(function(err, req, res, next){ console.error(err.stack); res.send(500, 'Something broke!'); }); api.set('port', process.env.PORT || 3000); var server = api.listen(api.get('port'), function() { console.log('Listening on port %d', server.address().port); }); + + module.exports = api;
2
0.08
2
0
468a93f8cef0a078e53f3cb67a75e654287035c3
tests/integration/docker-compose.yml
tests/integration/docker-compose.yml
version: "3" services: identidock_integration_tester: build: ../.. image: aroyd/identidock_integration_test:${IDENTIDOCK_INTEGRATION_TEST_IMAGE_TAG:-latest} environment: ENV: INTEGRATION_TEST depends_on: - dnmonster - redis dnmonster: image: amouat/dnmonster:1.0 redis: image: redis:3.0-alpine
version: "3" services: identidock_integration_tester: build: ../.. image: aroyd/identidock_integration_test:${IDENTIDOCK_INTEGRATION_TEST_IMAGE_TAG:-latest} environment: ENV: INTEGRATION_TEST depends_on: - dnmonster - redis volumes: - ../../:/project dnmonster: image: amouat/dnmonster:1.0 redis: image: redis:3.0-alpine
Add volumes directive to bind mount project root dir
Add volumes directive to bind mount project root dir
YAML
mit
anirbanroydas/ci-testing-python,anirbanroydas/ci-testing-python,anirbanroydas/ci-testing-python
yaml
## Code Before: version: "3" services: identidock_integration_tester: build: ../.. image: aroyd/identidock_integration_test:${IDENTIDOCK_INTEGRATION_TEST_IMAGE_TAG:-latest} environment: ENV: INTEGRATION_TEST depends_on: - dnmonster - redis dnmonster: image: amouat/dnmonster:1.0 redis: image: redis:3.0-alpine ## Instruction: Add volumes directive to bind mount project root dir ## Code After: version: "3" services: identidock_integration_tester: build: ../.. image: aroyd/identidock_integration_test:${IDENTIDOCK_INTEGRATION_TEST_IMAGE_TAG:-latest} environment: ENV: INTEGRATION_TEST depends_on: - dnmonster - redis volumes: - ../../:/project dnmonster: image: amouat/dnmonster:1.0 redis: image: redis:3.0-alpine
version: "3" services: identidock_integration_tester: build: ../.. image: aroyd/identidock_integration_test:${IDENTIDOCK_INTEGRATION_TEST_IMAGE_TAG:-latest} environment: ENV: INTEGRATION_TEST depends_on: - dnmonster - redis + volumes: + - ../../:/project dnmonster: image: amouat/dnmonster:1.0 redis: image: redis:3.0-alpine
2
0.111111
2
0
775bbdc2e8e5153650557274a3798c784a6f3c5c
bashrc.d/main.sh
bashrc.d/main.sh
export HISTTIMEFORMAT='%F %T ' # Turn on colors eval $(dircolors ~/.dircolors) alias grep='grep --color' alias ls='ls --color' # Common ls aliases alias ll='ls -lArth' alias la='ls -A'
export HISTTIMEFORMAT='%F %T ' # Turn on colors eval $(dircolors ~/.dircolors) alias grep='grep --color' alias ls='ls --color' # Common ls aliases alias ll='ls -lArth' alias la='ls -A' # For some reason, set completion-ignore-case on isn't working in my ~/.inputrc bind 'set completion-ignore-case on'
Work around completion-ignore-case not working in inputrc
Work around completion-ignore-case not working in inputrc
Shell
cc0-1.0
maxrothman/config,maxrothman/config,maxrothman/config,maxrothman/config,maxrothman/config,maxrothman/config
shell
## Code Before: export HISTTIMEFORMAT='%F %T ' # Turn on colors eval $(dircolors ~/.dircolors) alias grep='grep --color' alias ls='ls --color' # Common ls aliases alias ll='ls -lArth' alias la='ls -A' ## Instruction: Work around completion-ignore-case not working in inputrc ## Code After: export HISTTIMEFORMAT='%F %T ' # Turn on colors eval $(dircolors ~/.dircolors) alias grep='grep --color' alias ls='ls --color' # Common ls aliases alias ll='ls -lArth' alias la='ls -A' # For some reason, set completion-ignore-case on isn't working in my ~/.inputrc bind 'set completion-ignore-case on'
export HISTTIMEFORMAT='%F %T ' # Turn on colors eval $(dircolors ~/.dircolors) alias grep='grep --color' alias ls='ls --color' # Common ls aliases alias ll='ls -lArth' alias la='ls -A' + + # For some reason, set completion-ignore-case on isn't working in my ~/.inputrc + bind 'set completion-ignore-case on'
3
0.3
3
0
c71394a56f8b6be156c27f36f7139954f2efef49
app/assets/stylesheets/components/_Footer.scss
app/assets/stylesheets/components/_Footer.scss
footer { height: 400px; border-top: 3px solid $blue; h2 { position: relative; padding-bottom: 20px; color: $blue; &:after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; background-color: $blue; width: 30px; } } a { color: $blue; display: block; padding: 10px 0; } }
footer { height: 400px; border-top: 3px solid $blue; background-color: $black; h2 { position: relative; padding-bottom: 20px; color: $blue; &:after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; background-color: $blue; width: 30px; } } a { color: $blue; display: block; padding: 10px 0; } }
Add different bg color to footer.
Add different bg color to footer.
SCSS
mit
kirillis/mytopten,kirillis/mytopten,krisimmig/mytopten,krisimmig/mytopten,krisimmig/mytopten,kirillis/mytopten
scss
## Code Before: footer { height: 400px; border-top: 3px solid $blue; h2 { position: relative; padding-bottom: 20px; color: $blue; &:after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; background-color: $blue; width: 30px; } } a { color: $blue; display: block; padding: 10px 0; } } ## Instruction: Add different bg color to footer. ## Code After: footer { height: 400px; border-top: 3px solid $blue; background-color: $black; h2 { position: relative; padding-bottom: 20px; color: $blue; &:after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; background-color: $blue; width: 30px; } } a { color: $blue; display: block; padding: 10px 0; } }
footer { height: 400px; border-top: 3px solid $blue; + background-color: $black; h2 { position: relative; padding-bottom: 20px; color: $blue; &:after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; background-color: $blue; width: 30px; } } a { color: $blue; display: block; padding: 10px 0; } }
1
0.038462
1
0
aedc347da417284b95622908d1fa554fceed2f4d
gradle.properties
gradle.properties
org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true # Enable D8 desugar / R8 android.enableD8.desugaring=true android.enableR8=true # AndroidX android.useAndroidX=true android.enableJetifier=true # Enable Robolectric to use the same resources as Android android.enableUnitTestBinaryResources=true
org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true # Enable D8 desugar / R8 android.enableD8.desugaring=true android.enableR8=true # AndroidX android.useAndroidX=true android.enableJetifier=true # Enable Robolectric to use the same resources as Android android.enableUnitTestBinaryResources=true # The default memory is 512m org.gradle.jvmargs=-Xmx1g
Fix OutOfMemoryError when building the first time
Fix OutOfMemoryError when building the first time Gradle 5.0 change the default memory from 1g to 512m. This caused failed build with `OutOfMemoryError: GC overhead limit exceeded` error. Setting back the memory to 1g fix this issue. See https://github.com/gradle/gradle/issues/7746#issuecomment-439137327
INI
apache-2.0
chrisbanes/tivi,chrisbanes/tivi
ini
## Code Before: org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true # Enable D8 desugar / R8 android.enableD8.desugaring=true android.enableR8=true # AndroidX android.useAndroidX=true android.enableJetifier=true # Enable Robolectric to use the same resources as Android android.enableUnitTestBinaryResources=true ## Instruction: Fix OutOfMemoryError when building the first time Gradle 5.0 change the default memory from 1g to 512m. This caused failed build with `OutOfMemoryError: GC overhead limit exceeded` error. Setting back the memory to 1g fix this issue. See https://github.com/gradle/gradle/issues/7746#issuecomment-439137327 ## Code After: org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true # Enable D8 desugar / R8 android.enableD8.desugaring=true android.enableR8=true # AndroidX android.useAndroidX=true android.enableJetifier=true # Enable Robolectric to use the same resources as Android android.enableUnitTestBinaryResources=true # The default memory is 512m org.gradle.jvmargs=-Xmx1g
org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.caching=true # Enable D8 desugar / R8 android.enableD8.desugaring=true android.enableR8=true # AndroidX android.useAndroidX=true android.enableJetifier=true # Enable Robolectric to use the same resources as Android android.enableUnitTestBinaryResources=true + + # The default memory is 512m + org.gradle.jvmargs=-Xmx1g
3
0.2
3
0
f33dfcf9cda801056ec84f53ce052552d99433d1
README.md
README.md
[![Build Status](https://travis-ci.org/sbuberl/fSQL.svg)](https://travis-ci.org/sbuberl/fSQL) [![StyleCI](https://styleci.io/repos/39801643/shield)](https://styleci.io/repos/39801643) [![Latest Unstable Version](https://poser.pugx.org/sbuberl/fsql/v/unstable)](//packagist.org/packages/sbuberl/fsql) [![codecov](https://codecov.io/gh/sbuberl/fSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/sbuberl/fSQL) ![PHP from Travis config](https://img.shields.io/travis/php-v/sbuberl/fSQL.svg) # fSQL Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries.
[![Build Status](https://travis-ci.org/sbuberl/fSQL.svg)](https://travis-ci.org/sbuberl/fSQL) [![StyleCI](https://styleci.io/repos/39801643/shield)](https://styleci.io/repos/39801643) [![Latest Unstable Version](https://poser.pugx.org/sbuberl/fsql/v/unstable)](//packagist.org/packages/sbuberl/fsql) [![codecov](https://codecov.io/gh/sbuberl/fSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/sbuberl/fSQL) ![PHP from Travis config](https://img.shields.io/travis/php-v/sbuberl/fSQL.svg) [![Open Source Helpers](https://www.codetriage.com/sbuberl/fsql/badges/users.svg)](https://www.codetriage.com/sbuberl/fsql) # fSQL Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries.
Add CodeTriage badge to sbuberl/fsql
Add CodeTriage badge to sbuberl/fsql Adds a badge showing the number of people helping this repo on CodeTriage. [![Open Source Helpers](https://www.codetriage.com/sbuberl/fsql/badges/users.svg)](https://www.codetriage.com/sbuberl/fsql) ## What is CodeTriage? CodeTriage is an Open Source app that is designed to make contributing to Open Source projects easier. It works by sending subscribers a few open issues in their inbox. If subscribers get busy, there is an algorithm that backs off issue load so they do not get overwhelmed [Read more about the CodeTriage project](https://www.codetriage.com/what). ## Why am I getting this PR? Your project was picked by the human, @schneems. They selected it from the projects submitted to https://www.codetriage.com and hand edited the PR. How did your project get added to [CodeTriage](https://www.codetriage.com/what)? Roughly about 3 years ago, [sbuberl](https://github.com/sbuberl) added this project to CodeTriage in order to start contributing. Since then, 3 people have subscribed to help this repo. ## What does adding a badge accomplish? Adding a badge invites people to help contribute to your project. It also lets developers know that others are invested in the longterm success and maintainability of the project. You can see an example of a CodeTriage badge on these popular OSS READMEs: - [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/rails/rails/badges/users.svg)](https://www.codetriage.com/rails/rails) https://github.com/rails/rails - [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/crystal-lang/crystal/badges/users.svg)](https://www.codetriage.com/crystal-lang/crystal) https://github.com/crystal-lang/crystal ## Have a question or comment? While I am a bot, this PR was manually reviewed and monitored by a human - @schneems. My job is writing commit messages and handling PR logistics. If you have any questions, you can reply back to this PR and they will be answered by @schneems. If you do not want a badge right now, no worries, close the PR, you will not hear from me again. Thanks for making your project Open Source! Any feedback is greatly appreciated.
Markdown
mit
sbuberl/fSQL
markdown
## Code Before: [![Build Status](https://travis-ci.org/sbuberl/fSQL.svg)](https://travis-ci.org/sbuberl/fSQL) [![StyleCI](https://styleci.io/repos/39801643/shield)](https://styleci.io/repos/39801643) [![Latest Unstable Version](https://poser.pugx.org/sbuberl/fsql/v/unstable)](//packagist.org/packages/sbuberl/fsql) [![codecov](https://codecov.io/gh/sbuberl/fSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/sbuberl/fSQL) ![PHP from Travis config](https://img.shields.io/travis/php-v/sbuberl/fSQL.svg) # fSQL Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries. ## Instruction: Add CodeTriage badge to sbuberl/fsql Adds a badge showing the number of people helping this repo on CodeTriage. [![Open Source Helpers](https://www.codetriage.com/sbuberl/fsql/badges/users.svg)](https://www.codetriage.com/sbuberl/fsql) ## What is CodeTriage? CodeTriage is an Open Source app that is designed to make contributing to Open Source projects easier. It works by sending subscribers a few open issues in their inbox. If subscribers get busy, there is an algorithm that backs off issue load so they do not get overwhelmed [Read more about the CodeTriage project](https://www.codetriage.com/what). ## Why am I getting this PR? Your project was picked by the human, @schneems. They selected it from the projects submitted to https://www.codetriage.com and hand edited the PR. How did your project get added to [CodeTriage](https://www.codetriage.com/what)? Roughly about 3 years ago, [sbuberl](https://github.com/sbuberl) added this project to CodeTriage in order to start contributing. Since then, 3 people have subscribed to help this repo. ## What does adding a badge accomplish? Adding a badge invites people to help contribute to your project. It also lets developers know that others are invested in the longterm success and maintainability of the project. You can see an example of a CodeTriage badge on these popular OSS READMEs: - [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/rails/rails/badges/users.svg)](https://www.codetriage.com/rails/rails) https://github.com/rails/rails - [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/crystal-lang/crystal/badges/users.svg)](https://www.codetriage.com/crystal-lang/crystal) https://github.com/crystal-lang/crystal ## Have a question or comment? While I am a bot, this PR was manually reviewed and monitored by a human - @schneems. My job is writing commit messages and handling PR logistics. If you have any questions, you can reply back to this PR and they will be answered by @schneems. If you do not want a badge right now, no worries, close the PR, you will not hear from me again. Thanks for making your project Open Source! Any feedback is greatly appreciated. ## Code After: [![Build Status](https://travis-ci.org/sbuberl/fSQL.svg)](https://travis-ci.org/sbuberl/fSQL) [![StyleCI](https://styleci.io/repos/39801643/shield)](https://styleci.io/repos/39801643) [![Latest Unstable Version](https://poser.pugx.org/sbuberl/fsql/v/unstable)](//packagist.org/packages/sbuberl/fsql) [![codecov](https://codecov.io/gh/sbuberl/fSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/sbuberl/fSQL) ![PHP from Travis config](https://img.shields.io/travis/php-v/sbuberl/fSQL.svg) [![Open Source Helpers](https://www.codetriage.com/sbuberl/fsql/badges/users.svg)](https://www.codetriage.com/sbuberl/fsql) # fSQL Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries.
[![Build Status](https://travis-ci.org/sbuberl/fSQL.svg)](https://travis-ci.org/sbuberl/fSQL) [![StyleCI](https://styleci.io/repos/39801643/shield)](https://styleci.io/repos/39801643) [![Latest Unstable Version](https://poser.pugx.org/sbuberl/fsql/v/unstable)](//packagist.org/packages/sbuberl/fsql) [![codecov](https://codecov.io/gh/sbuberl/fSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/sbuberl/fSQL) ![PHP from Travis config](https://img.shields.io/travis/php-v/sbuberl/fSQL.svg) + [![Open Source Helpers](https://www.codetriage.com/sbuberl/fsql/badges/users.svg)](https://www.codetriage.com/sbuberl/fsql) # fSQL Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries.
1
0.125
1
0
5b4eb5a2448763c7ef7c857994af5e40142be723
public/pages/users/new.js
public/pages/users/new.js
define([ 'jquery', 'knockout', 'knockout.validation', 'app', 'models/user', 'models/user_session' ], function ( $, ko, validation, app, User, UserSession ) { var registerPage = ko.validatedObservable({ email: ko.observable(), register: function () { $.ajax({ type: 'POST', url: '/api/users', data: JSON.stringify({ email: this.email() }), contentType: 'application/json', processData: false }).done(function (data) { var user = User.create(data); $.ajax({ type: 'POST', url: user.user_sessions.uri(), data: JSON.stringify({}), contentType: 'application/json', processData: false }).done(function (data) { app.user(user); app.session(UserSession.create(data)); app.router.redirect((app.pager.last_page().originalPath && app.pager.last_page().originalPath) || '/'); }); }); } }); return registerPage(); });
define([ 'jquery', 'knockout', 'knockout.validation', 'app', 'models/user', 'models/user_session' ], function ( $, ko, validation, app, User, UserSession ) { var registerPage = ko.validatedObservable({ email: ko.observable(), register: function () { $.ajax({ type: 'POST', url: '/api/users', data: JSON.stringify({ email: this.email() }), contentType: 'application/json', processData: false }).done(function (data) { if (data.error) { alert(JSON.stringify(data.errors)); } else { var user = User.create(data); $.ajax({ type: 'POST', url: user.user_sessions().uri(), data: JSON.stringify({}), contentType: 'application/json', processData: false }).done(function (data) { app.user(user); app.session(UserSession.create(data)); app.router.redirect((app.pager.last_page() && app.pager.last_page().originalPath) || '/'); }); } }); } }); return registerPage(); });
Fix registering (and add really bad error feedback)
Fix registering (and add really bad error feedback)
JavaScript
mit
Woodhouse-Inc/vocatus-datorum,Woodhouse-Inc/vocatus-datorum
javascript
## Code Before: define([ 'jquery', 'knockout', 'knockout.validation', 'app', 'models/user', 'models/user_session' ], function ( $, ko, validation, app, User, UserSession ) { var registerPage = ko.validatedObservable({ email: ko.observable(), register: function () { $.ajax({ type: 'POST', url: '/api/users', data: JSON.stringify({ email: this.email() }), contentType: 'application/json', processData: false }).done(function (data) { var user = User.create(data); $.ajax({ type: 'POST', url: user.user_sessions.uri(), data: JSON.stringify({}), contentType: 'application/json', processData: false }).done(function (data) { app.user(user); app.session(UserSession.create(data)); app.router.redirect((app.pager.last_page().originalPath && app.pager.last_page().originalPath) || '/'); }); }); } }); return registerPage(); }); ## Instruction: Fix registering (and add really bad error feedback) ## Code After: define([ 'jquery', 'knockout', 'knockout.validation', 'app', 'models/user', 'models/user_session' ], function ( $, ko, validation, app, User, UserSession ) { var registerPage = ko.validatedObservable({ email: ko.observable(), register: function () { $.ajax({ type: 'POST', url: '/api/users', data: JSON.stringify({ email: this.email() }), contentType: 'application/json', processData: false }).done(function (data) { if (data.error) { alert(JSON.stringify(data.errors)); } else { var user = User.create(data); $.ajax({ type: 'POST', url: user.user_sessions().uri(), data: JSON.stringify({}), contentType: 'application/json', processData: false }).done(function (data) { app.user(user); app.session(UserSession.create(data)); app.router.redirect((app.pager.last_page() && app.pager.last_page().originalPath) || '/'); }); } }); } }); return registerPage(); });
define([ 'jquery', 'knockout', 'knockout.validation', 'app', 'models/user', 'models/user_session' ], function ( $, ko, validation, app, User, UserSession ) { var registerPage = ko.validatedObservable({ email: ko.observable(), register: function () { $.ajax({ type: 'POST', url: '/api/users', data: JSON.stringify({ email: this.email() }), contentType: 'application/json', processData: false }).done(function (data) { + if (data.error) { + alert(JSON.stringify(data.errors)); + } else { - var user = User.create(data); + var user = User.create(data); ? ++++ - $.ajax({ + $.ajax({ ? ++++ - type: 'POST', + type: 'POST', ? ++++ - url: user.user_sessions.uri(), + url: user.user_sessions().uri(), ? ++++ ++ - data: JSON.stringify({}), + data: JSON.stringify({}), ? ++++ - contentType: 'application/json', + contentType: 'application/json', ? ++++ - processData: false + processData: false ? ++++ - }).done(function (data) { + }).done(function (data) { ? ++++ - app.user(user); + app.user(user); ? ++++ - app.session(UserSession.create(data)); + app.session(UserSession.create(data)); ? ++++ - app.router.redirect((app.pager.last_page().originalPath && app.pager.last_page().originalPath) || '/'); ? ------------- + app.router.redirect((app.pager.last_page() && app.pager.last_page().originalPath) || '/'); ? ++++ + }); - }); ? -- + } }); } }); return registerPage(); });
28
0.622222
16
12
15fb35230a08da0e7088742eae6b5aff35da8bfd
catkin/src/evdev_teleport/README.md
catkin/src/evdev_teleport/README.md
evdev\_teleport =============== #### Cross-device input device replication This package contains tools for replaying input events on remote systems. For example, you could publish the input stream of a mouse or joystick and replay the events on one or many other systems as virtual devices. These input events are intercepted and replayed with kernel interfaces, making it higher level but functionally nearly equivalent to a USB extender without the wiring requirement. ### Usage ##### sender\_node The path to the real device is set by the private parameter ~device\_file. i.e. rosrun evdev_teleport sender_node _device_file:=/dev/input/event2 ##### receiver\_node The name of the virtual device is set by the private parameter ~device\_name. i.e. rosrun evdev_teleport receiver_node _device_name:="Virtual Thing" ### Reference [Event types and codes][1] [Input interface][2] [Uinput interface][3] [1]: http://lxr.free-electrons.com/source/include/uapi/linux/input.h [2]: http://lxr.free-electrons.com/source/include/linux/input.h [3]: http://lxr.free-electrons.com/source/include/linux/uinput.h
evdev\_teleport =============== #### Cross-device input device replication This package contains tools for replaying input events on remote systems. For example, you could publish the input stream of a mouse or joystick and replay the events on one or many other systems as virtual devices. These input events are intercepted and replayed with kernel interfaces, making it higher level but functionally nearly equivalent to a USB extender without the wiring requirement. ### Usage ##### sender\_node The path to the real device is set by the private parameter ~device\_file. i.e. rosrun evdev_teleport sender_node _device_file:=/dev/input/event2 ##### receiver\_node The name of the virtual device is set by the private parameter ~device\_name. i.e. rosrun evdev_teleport receiver_node _device_name:="Virtual Thing" ### Reference [Explanation of event types and codes][0] [Event types and codes (input.h)][1] [Input interface][2] [Uinput interface][3] [0]: https://www.kernel.org/doc/Documentation/input/event-codes.txt [1]: http://lxr.free-electrons.com/source/include/uapi/linux/input.h [2]: http://lxr.free-electrons.com/source/include/linux/input.h [3]: http://lxr.free-electrons.com/source/include/linux/uinput.h
Add link to kernel event interface doc
Add link to kernel event interface doc
Markdown
apache-2.0
EndPointCorp/appctl,EndPointCorp/appctl
markdown
## Code Before: evdev\_teleport =============== #### Cross-device input device replication This package contains tools for replaying input events on remote systems. For example, you could publish the input stream of a mouse or joystick and replay the events on one or many other systems as virtual devices. These input events are intercepted and replayed with kernel interfaces, making it higher level but functionally nearly equivalent to a USB extender without the wiring requirement. ### Usage ##### sender\_node The path to the real device is set by the private parameter ~device\_file. i.e. rosrun evdev_teleport sender_node _device_file:=/dev/input/event2 ##### receiver\_node The name of the virtual device is set by the private parameter ~device\_name. i.e. rosrun evdev_teleport receiver_node _device_name:="Virtual Thing" ### Reference [Event types and codes][1] [Input interface][2] [Uinput interface][3] [1]: http://lxr.free-electrons.com/source/include/uapi/linux/input.h [2]: http://lxr.free-electrons.com/source/include/linux/input.h [3]: http://lxr.free-electrons.com/source/include/linux/uinput.h ## Instruction: Add link to kernel event interface doc ## Code After: evdev\_teleport =============== #### Cross-device input device replication This package contains tools for replaying input events on remote systems. For example, you could publish the input stream of a mouse or joystick and replay the events on one or many other systems as virtual devices. These input events are intercepted and replayed with kernel interfaces, making it higher level but functionally nearly equivalent to a USB extender without the wiring requirement. ### Usage ##### sender\_node The path to the real device is set by the private parameter ~device\_file. i.e. rosrun evdev_teleport sender_node _device_file:=/dev/input/event2 ##### receiver\_node The name of the virtual device is set by the private parameter ~device\_name. i.e. rosrun evdev_teleport receiver_node _device_name:="Virtual Thing" ### Reference [Explanation of event types and codes][0] [Event types and codes (input.h)][1] [Input interface][2] [Uinput interface][3] [0]: https://www.kernel.org/doc/Documentation/input/event-codes.txt [1]: http://lxr.free-electrons.com/source/include/uapi/linux/input.h [2]: http://lxr.free-electrons.com/source/include/linux/input.h [3]: http://lxr.free-electrons.com/source/include/linux/uinput.h
evdev\_teleport =============== #### Cross-device input device replication This package contains tools for replaying input events on remote systems. For example, you could publish the input stream of a mouse or joystick and replay the events on one or many other systems as virtual devices. These input events are intercepted and replayed with kernel interfaces, making it higher level but functionally nearly equivalent to a USB extender without the wiring requirement. ### Usage ##### sender\_node The path to the real device is set by the private parameter ~device\_file. i.e. rosrun evdev_teleport sender_node _device_file:=/dev/input/event2 ##### receiver\_node The name of the virtual device is set by the private parameter ~device\_name. i.e. rosrun evdev_teleport receiver_node _device_name:="Virtual Thing" ### Reference + [Explanation of event types and codes][0] + - [Event types and codes][1] + [Event types and codes (input.h)][1] ? ++++++++++ [Input interface][2] [Uinput interface][3] + [0]: https://www.kernel.org/doc/Documentation/input/event-codes.txt [1]: http://lxr.free-electrons.com/source/include/uapi/linux/input.h [2]: http://lxr.free-electrons.com/source/include/linux/input.h [3]: http://lxr.free-electrons.com/source/include/linux/uinput.h
5
0.128205
4
1
0b36c4b9707175ab917fb03a8ff3c1efdc758451
_next_events/2016-11-17.md
_next_events/2016-11-17.md
--- title: "Talks: November 17, 2016 @ 18:00" date: 2016-11-17 meetup_id: "234592800" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/235376937/" venue_name: "Floe Design + Technologies" venue_address: "5455 Avenue de Gaspé, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=5455+Avenue+de+Gasp%C3%A9%2C+suite+570%2C+Montr%C3%A9al%2C+QC%2C+ca" speakers: - name: "We are looking for speakers!" ---
--- title: "Talks: November 17, 2016 @ 18:00" date: 2016-11-17 meetup_id: "234592800" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/235376937/" venue_name: "Floe Design + Technologies" venue_address: "5455 Avenue de Gaspé, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=5455+Avenue+de+Gasp%C3%A9%2C+suite+570%2C+Montr%C3%A9al%2C+QC%2C+ca" speakers: - name: "Guven Bolukbasi" title: "Building native VoIP apps on iOS" ---
Add first speaker for the November 2016 event
Add first speaker for the November 2016 event
Markdown
cc0-1.0
CocoaheadsMTL/cocoaheadsmtl.github.io
markdown
## Code Before: --- title: "Talks: November 17, 2016 @ 18:00" date: 2016-11-17 meetup_id: "234592800" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/235376937/" venue_name: "Floe Design + Technologies" venue_address: "5455 Avenue de Gaspé, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=5455+Avenue+de+Gasp%C3%A9%2C+suite+570%2C+Montr%C3%A9al%2C+QC%2C+ca" speakers: - name: "We are looking for speakers!" --- ## Instruction: Add first speaker for the November 2016 event ## Code After: --- title: "Talks: November 17, 2016 @ 18:00" date: 2016-11-17 meetup_id: "234592800" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/235376937/" venue_name: "Floe Design + Technologies" venue_address: "5455 Avenue de Gaspé, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=5455+Avenue+de+Gasp%C3%A9%2C+suite+570%2C+Montr%C3%A9al%2C+QC%2C+ca" speakers: - name: "Guven Bolukbasi" title: "Building native VoIP apps on iOS" ---
--- title: "Talks: November 17, 2016 @ 18:00" date: 2016-11-17 meetup_id: "234592800" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/235376937/" venue_name: "Floe Design + Technologies" venue_address: "5455 Avenue de Gaspé, Montréal, QC" venue_address_map_url: "https://maps.google.com/maps?f=q&hl=en&q=5455+Avenue+de+Gasp%C3%A9%2C+suite+570%2C+Montr%C3%A9al%2C+QC%2C+ca" speakers: - - name: "We are looking for speakers!" + - name: "Guven Bolukbasi" + title: "Building native VoIP apps on iOS" ---
3
0.272727
2
1
23f512caa865972904322643554904bcbc5104e3
.eslint.json
.eslint.json
{ "parserOptions" : { "ecmaVersion" : 6, "sourceType" : "module", "ecmaFeatures" : { "jsx" : true } }, "rules" : { "semi" : 2 } }
{ "parserOptions": { "ecmaVersion" : 6, "ecmaFeatures" : { "jsx" : true } }, "globals" : { "Ti" : true, "Titanium" : true, "require" : true, "module" : true, "exports" : true, "setTimeout" : true, "setInterval" : true, "clearInterval" : true, "alert" : true, "console" : true, "global" : true, "GLOBAL" : true }, "rules": { "semi" : 2, "curly" : "error", "no-dupe-keys" : "error", "no-extra-boolean-cast" : "error", "no-func-assign" : "error", "no-inner-declarations" : "error", "no-negated-in-lhs" : "error", "no-sparse-arrays" : "error", "no-unexpected-multiline" : "error", "no-unreachable" : "error", "use-isnan" : "error", "valid-typeof" : "error", "dot-notation" : "error", "eqeqeq" : "error", "no-floating-decimal" : "error", "no-implicit-coercion" : "error", "no-labels" : "error", "no-lone-blocks" : "error", "no-multi-str" : "error", "no-param-reassign" : "error", "no-return-assign" : "error", "no-self-assign" : "error", "no-self-compare" : "error", "no-sequences" : "error", "no-unused-expressions" : "error", "strict" : [ "error", "global" ], "no-shadow-restricted-names" : "error", "no-undef" : "error", "no-unused-vars" : "error", "no-use-before-define" : "error", "array-bracket-spacing" : [ "error", "always" ], "brace-style" : "error", "camelcase" : [ "error", { "properties": "never" } ], "comma-spacing" : [ "error", { "before" : false, "after" : true } ], "computed-property-spacing" : [ "error", "always" ], "eol-last" : "error" } }
Add all required linting rules
Add all required linting rules
JSON
mit
lukecfairchild/MCJS
json
## Code Before: { "parserOptions" : { "ecmaVersion" : 6, "sourceType" : "module", "ecmaFeatures" : { "jsx" : true } }, "rules" : { "semi" : 2 } } ## Instruction: Add all required linting rules ## Code After: { "parserOptions": { "ecmaVersion" : 6, "ecmaFeatures" : { "jsx" : true } }, "globals" : { "Ti" : true, "Titanium" : true, "require" : true, "module" : true, "exports" : true, "setTimeout" : true, "setInterval" : true, "clearInterval" : true, "alert" : true, "console" : true, "global" : true, "GLOBAL" : true }, "rules": { "semi" : 2, "curly" : "error", "no-dupe-keys" : "error", "no-extra-boolean-cast" : "error", "no-func-assign" : "error", "no-inner-declarations" : "error", "no-negated-in-lhs" : "error", "no-sparse-arrays" : "error", "no-unexpected-multiline" : "error", "no-unreachable" : "error", "use-isnan" : "error", "valid-typeof" : "error", "dot-notation" : "error", "eqeqeq" : "error", "no-floating-decimal" : "error", "no-implicit-coercion" : "error", "no-labels" : "error", "no-lone-blocks" : "error", "no-multi-str" : "error", "no-param-reassign" : "error", "no-return-assign" : "error", "no-self-assign" : "error", "no-self-compare" : "error", "no-sequences" : "error", "no-unused-expressions" : "error", "strict" : [ "error", "global" ], "no-shadow-restricted-names" : "error", "no-undef" : "error", "no-unused-vars" : "error", "no-use-before-define" : "error", "array-bracket-spacing" : [ "error", "always" ], "brace-style" : "error", "camelcase" : [ "error", { "properties": "never" } ], "comma-spacing" : [ "error", { "before" : false, "after" : true } ], "computed-property-spacing" : [ "error", "always" ], "eol-last" : "error" } }
{ - "parserOptions" : { ? ^ - + "parserOptions": { ? ^^^^ - "ecmaVersion" : 6, ? ^^ + "ecmaVersion" : 6, ? ^^^^^^^^ - "sourceType" : "module", - "ecmaFeatures" : { ? ^^ + "ecmaFeatures" : { ? ^^^^^^^^ - "jsx" : true - } - }, + "jsx" : true + } + }, + "globals" : { + "Ti" : true, + "Titanium" : true, + "require" : true, + "module" : true, + "exports" : true, + "setTimeout" : true, + "setInterval" : true, + "clearInterval" : true, + "alert" : true, + "console" : true, + "global" : true, + "GLOBAL" : true + }, - "rules" : { ? ^ - + "rules": { ? ^^^^ - "semi" : 2 - } + "semi" : 2, + "curly" : "error", + "no-dupe-keys" : "error", + "no-extra-boolean-cast" : "error", + "no-func-assign" : "error", + "no-inner-declarations" : "error", + "no-negated-in-lhs" : "error", + "no-sparse-arrays" : "error", + "no-unexpected-multiline" : "error", + "no-unreachable" : "error", + "use-isnan" : "error", + "valid-typeof" : "error", + "dot-notation" : "error", + "eqeqeq" : "error", + "no-floating-decimal" : "error", + "no-implicit-coercion" : "error", + "no-labels" : "error", + "no-lone-blocks" : "error", + "no-multi-str" : "error", + "no-param-reassign" : "error", + "no-return-assign" : "error", + "no-self-assign" : "error", + "no-self-compare" : "error", + "no-sequences" : "error", + "no-unused-expressions" : "error", + "strict" : [ "error", "global" ], + "no-shadow-restricted-names" : "error", + "no-undef" : "error", + "no-unused-vars" : "error", + "no-use-before-define" : "error", + "array-bracket-spacing" : [ "error", "always" ], + "brace-style" : "error", + "camelcase" : [ "error", { "properties": "never" } ], + "comma-spacing" : [ "error", { "before" : false, "after" : true } ], + "computed-property-spacing" : [ "error", "always" ], + "eol-last" : "error" + } }
68
5.666667
58
10
b97b3c9ab5613262ed9fbdbd660dc39832cdefcb
common/templates/common/singleform.html
common/templates/common/singleform.html
{% extends "common/base.html" %} {% load base %} {% load staticfiles %} {# HTML template for single-form webpages #} {% block html_head %} <!-- Validation scripts --> <script src="{% static 'common/form_validator.js' %}"></script> {% for v in validators %} <script src="{% static '' %}{{ v }}"></script> {% endfor %} {% endblock %} {% block html_body %} {% open_box %} <h2>Create Account</h2> <form id="form" class="form-horizontal" role="form"> {% for f in form %} <div class="form-group"> <label class="col-sm-3 control-label">{{ f.label }}</label> <div class="col-sm-8"> <input class="form-control" type="{{ f.type }}" id="{{ f.id }}" {% if 'name' in f %} name="{{ f.name }}" {% endif %} > </div> </div> {% endfor %} <!-- Helpful error message logging --> <div class="row"><div class="col-sm-offset-3 col-sm-8"> <div class="panel panel-default log-panel"> <div class="panel-heading"></div> </div> </div></div> <!-- Submit button --> <button type="submit" class="btn btn-primary pull-right"> Submit </button> </form> {% close_box %} {% endblock %}
{% extends "common/base.html" %} {% load base %} {% load staticfiles %} {# HTML template for single-form webpages #} {% block html_head %} <!-- Validation scripts --> <script src="{% static 'common/form_validator.js' %}"></script> {% for v in validators %} <script src="{% static '' %}{{ v }}"></script> {% endfor %} {% endblock %} {% block html_body %} {% open_box %} <h2>Create Account</h2> <form id="form" class="form-horizontal" role="form" action="{{action}}" method="post" > {% csrf_token %} {% for f in form %} <div class="form-group"> <label class="col-sm-3 control-label">{{ f.label }}</label> <div class="col-sm-8"> <input class="form-control" type="{{ f.type }}" id="{{ f.id }}" {% if 'name' in f %} name="{{ f.name }}" {% endif %} > </div> </div> {% endfor %} <!-- Helpful error message logging --> <div class="row"><div class="col-sm-offset-3 col-sm-8"> <div class="panel panel-default log-panel"> <div class="panel-heading"></div> </div> </div></div> <!-- Submit button --> <button type="submit" class="btn btn-primary pull-right"> Submit </button> </form> {% close_box %} {% endblock %}
Add post action on forms
Add post action on forms
HTML
mit
NicolasKiely/Robit-Tracker,NicolasKiely/Robit-Tracker,NicolasKiely/Robit-Tracker
html
## Code Before: {% extends "common/base.html" %} {% load base %} {% load staticfiles %} {# HTML template for single-form webpages #} {% block html_head %} <!-- Validation scripts --> <script src="{% static 'common/form_validator.js' %}"></script> {% for v in validators %} <script src="{% static '' %}{{ v }}"></script> {% endfor %} {% endblock %} {% block html_body %} {% open_box %} <h2>Create Account</h2> <form id="form" class="form-horizontal" role="form"> {% for f in form %} <div class="form-group"> <label class="col-sm-3 control-label">{{ f.label }}</label> <div class="col-sm-8"> <input class="form-control" type="{{ f.type }}" id="{{ f.id }}" {% if 'name' in f %} name="{{ f.name }}" {% endif %} > </div> </div> {% endfor %} <!-- Helpful error message logging --> <div class="row"><div class="col-sm-offset-3 col-sm-8"> <div class="panel panel-default log-panel"> <div class="panel-heading"></div> </div> </div></div> <!-- Submit button --> <button type="submit" class="btn btn-primary pull-right"> Submit </button> </form> {% close_box %} {% endblock %} ## Instruction: Add post action on forms ## Code After: {% extends "common/base.html" %} {% load base %} {% load staticfiles %} {# HTML template for single-form webpages #} {% block html_head %} <!-- Validation scripts --> <script src="{% static 'common/form_validator.js' %}"></script> {% for v in validators %} <script src="{% static '' %}{{ v }}"></script> {% endfor %} {% endblock %} {% block html_body %} {% open_box %} <h2>Create Account</h2> <form id="form" class="form-horizontal" role="form" action="{{action}}" method="post" > {% csrf_token %} {% for f in form %} <div class="form-group"> <label class="col-sm-3 control-label">{{ f.label }}</label> <div class="col-sm-8"> <input class="form-control" type="{{ f.type }}" id="{{ f.id }}" {% if 'name' in f %} name="{{ f.name }}" {% endif %} > </div> </div> {% endfor %} <!-- Helpful error message logging --> <div class="row"><div class="col-sm-offset-3 col-sm-8"> <div class="panel panel-default log-panel"> <div class="panel-heading"></div> </div> </div></div> <!-- Submit button --> <button type="submit" class="btn btn-primary pull-right"> Submit </button> </form> {% close_box %} {% endblock %}
{% extends "common/base.html" %} {% load base %} {% load staticfiles %} {# HTML template for single-form webpages #} {% block html_head %} <!-- Validation scripts --> <script src="{% static 'common/form_validator.js' %}"></script> {% for v in validators %} <script src="{% static '' %}{{ v }}"></script> {% endfor %} {% endblock %} {% block html_body %} {% open_box %} <h2>Create Account</h2> + <form - <form id="form" class="form-horizontal" role="form"> ? ^^^^^ - + id="form" class="form-horizontal" role="form" ? ^^^ + action="{{action}}" method="post" + > {% csrf_token %} {% for f in form %} <div class="form-group"> <label class="col-sm-3 control-label">{{ f.label }}</label> <div class="col-sm-8"> <input class="form-control" type="{{ f.type }}" id="{{ f.id }}" {% if 'name' in f %} name="{{ f.name }}" {% endif %} > </div> </div> {% endfor %} <!-- Helpful error message logging --> <div class="row"><div class="col-sm-offset-3 col-sm-8"> <div class="panel panel-default log-panel"> <div class="panel-heading"></div> </div> </div></div> <!-- Submit button --> <button type="submit" class="btn btn-primary pull-right"> Submit </button> </form> {% close_box %} {% endblock %}
5
0.116279
4
1
f649126095481dc39ef7e8606672ae77509a5516
app/views/shared/issuable/_milestone_dropdown.html.haml
app/views/shared/issuable/_milestone_dropdown.html.haml
- if params[:milestone_title] = hidden_field_tag(:milestone_title, params[:milestone_title]) = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit', filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search milestones", footer_content: @project.present?, data: { show_no: true, show_any: true, field_name: "milestone_title", selected: params[:milestone_title], project_id: @project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if @project %ul.dropdown-footer-list - if can? current_user, :admin_milestone, @project %li = link_to new_namespace_project_milestone_path(@project.namespace, @project), title: "New Milestone" do Create new %li = link_to namespace_project_milestones_path(@project.namespace, @project) do - if can? current_user, :admin_milestone, @project Manage milestones - else View milestones
- if params[:milestone_title] = hidden_field_tag(:milestone_title, params[:milestone_title]) = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit js-extra-options', filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search milestones", footer_content: @project.present?, data: { show_no: true, show_any: true, field_name: "milestone_title", selected: params[:milestone_title], project_id: @project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if @project %ul.dropdown-footer-list - if can? current_user, :admin_milestone, @project %li = link_to new_namespace_project_milestone_path(@project.namespace, @project), title: "New Milestone" do Create new %li = link_to namespace_project_milestones_path(@project.namespace, @project) do - if can? current_user, :admin_milestone, @project Manage milestones - else View milestones
Add js-extras so show any and show no for milestones show up.
Add js-extras so show any and show no for milestones show up.
Haml
mit
Soullivaneuh/gitlabhq,daiyu/gitlab-zh,screenpages/gitlabhq,t-zuehlsdorff/gitlabhq,openwide-java/gitlabhq,larryli/gitlabhq,mr-dxdy/gitlabhq,shinexiao/gitlabhq,SVArago/gitlabhq,dwrensha/gitlabhq,t-zuehlsdorff/gitlabhq,mr-dxdy/gitlabhq,larryli/gitlabhq,dplarson/gitlabhq,jirutka/gitlabhq,allysonbarros/gitlabhq,mmkassem/gitlabhq,icedwater/gitlabhq,axilleas/gitlabhq,darkrasid/gitlabhq,SVArago/gitlabhq,stoplightio/gitlabhq,dplarson/gitlabhq,larryli/gitlabhq,mmkassem/gitlabhq,mr-dxdy/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,Soullivaneuh/gitlabhq,larryli/gitlabhq,stoplightio/gitlabhq,openwide-java/gitlabhq,SVArago/gitlabhq,dreampet/gitlab,iiet/iiet-git,htve/GitlabForChinese,darkrasid/gitlabhq,axilleas/gitlabhq,SVArago/gitlabhq,screenpages/gitlabhq,daiyu/gitlab-zh,shinexiao/gitlabhq,martijnvermaat/gitlabhq,dwrensha/gitlabhq,allysonbarros/gitlabhq,martijnvermaat/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,allysonbarros/gitlabhq,screenpages/gitlabhq,openwide-java/gitlabhq,stoplightio/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,shinexiao/gitlabhq,daiyu/gitlab-zh,t-zuehlsdorff/gitlabhq,icedwater/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,dwrensha/gitlabhq,LUMC/gitlabhq,darkrasid/gitlabhq,martijnvermaat/gitlabhq,Soullivaneuh/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,htve/GitlabForChinese,daiyu/gitlab-zh,mmkassem/gitlabhq,iiet/iiet-git,LUMC/gitlabhq,icedwater/gitlabhq,Soullivaneuh/gitlabhq,LUMC/gitlabhq,martijnvermaat/gitlabhq,LUMC/gitlabhq,axilleas/gitlabhq,htve/GitlabForChinese,dplarson/gitlabhq,allysonbarros/gitlabhq,darkrasid/gitlabhq,screenpages/gitlabhq,openwide-java/gitlabhq,dwrensha/gitlabhq,iiet/iiet-git,icedwater/gitlabhq,jirutka/gitlabhq,shinexiao/gitlabhq,mr-dxdy/gitlabhq,jirutka/gitlabhq
haml
## Code Before: - if params[:milestone_title] = hidden_field_tag(:milestone_title, params[:milestone_title]) = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit', filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search milestones", footer_content: @project.present?, data: { show_no: true, show_any: true, field_name: "milestone_title", selected: params[:milestone_title], project_id: @project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if @project %ul.dropdown-footer-list - if can? current_user, :admin_milestone, @project %li = link_to new_namespace_project_milestone_path(@project.namespace, @project), title: "New Milestone" do Create new %li = link_to namespace_project_milestones_path(@project.namespace, @project) do - if can? current_user, :admin_milestone, @project Manage milestones - else View milestones ## Instruction: Add js-extras so show any and show no for milestones show up. ## Code After: - if params[:milestone_title] = hidden_field_tag(:milestone_title, params[:milestone_title]) = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit js-extra-options', filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search milestones", footer_content: @project.present?, data: { show_no: true, show_any: true, field_name: "milestone_title", selected: params[:milestone_title], project_id: @project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if @project %ul.dropdown-footer-list - if can? current_user, :admin_milestone, @project %li = link_to new_namespace_project_milestone_path(@project.namespace, @project), title: "New Milestone" do Create new %li = link_to namespace_project_milestones_path(@project.namespace, @project) do - if can? current_user, :admin_milestone, @project Manage milestones - else View milestones
- if params[:milestone_title] = hidden_field_tag(:milestone_title, params[:milestone_title]) - = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit', filter: true, dropdown_class: "dropdown-menu-selectable", + = dropdown_tag(h(params[:milestone_title].presence || "Milestone"), options: { title: "Filter by milestone", toggle_class: 'js-milestone-select js-filter-submit js-extra-options', filter: true, dropdown_class: "dropdown-menu-selectable", ? +++++++++++++++++ placeholder: "Search milestones", footer_content: @project.present?, data: { show_no: true, show_any: true, field_name: "milestone_title", selected: params[:milestone_title], project_id: @project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if @project %ul.dropdown-footer-list - if can? current_user, :admin_milestone, @project %li = link_to new_namespace_project_milestone_path(@project.namespace, @project), title: "New Milestone" do Create new %li = link_to namespace_project_milestones_path(@project.namespace, @project) do - if can? current_user, :admin_milestone, @project Manage milestones - else View milestones
2
0.125
1
1
4f59d1efd786c08cc63e0c14dceada80c37ab8da
app/controllers/directories_controller.rb
app/controllers/directories_controller.rb
class DirectoriesController < ApplicationController layout 'public' before_action :set_instance_presenter before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts def index render :index end def show render :index end private def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end def set_tags @tags = Tag.discoverable.limit(30) end def set_accounts @accounts = Account.searchable.discoverable.page(params[:page]).per(50).tap do |query| query.merge!(Account.tagged_with(@tag.id)) if @tag if popular_requested? query.merge!(Account.popular) else query.merge!(Account.by_recent_status) end end end def set_instance_presenter @instance_presenter = InstancePresenter.new end def popular_requested? request.path.ends_with?('/popular') end end
class DirectoriesController < ApplicationController layout 'public' before_action :set_instance_presenter before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts before_action :set_pack def index render :index end def show render :index end private def set_pack use_pack 'share' end def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end def set_tags @tags = Tag.discoverable.limit(30) end def set_accounts @accounts = Account.searchable.discoverable.page(params[:page]).per(50).tap do |query| query.merge!(Account.tagged_with(@tag.id)) if @tag if popular_requested? query.merge!(Account.popular) else query.merge!(Account.by_recent_status) end end end def set_instance_presenter @instance_presenter = InstancePresenter.new end def popular_requested? request.path.ends_with?('/popular') end end
Fix directory controller in glitch-soc
Fix directory controller in glitch-soc
Ruby
agpl-3.0
glitch-soc/mastodon,glitch-soc/mastodon,Kirishima21/mastodon,Kirishima21/mastodon,im-in-space/mastodon,glitch-soc/mastodon,im-in-space/mastodon,Kirishima21/mastodon,im-in-space/mastodon,im-in-space/mastodon,Kirishima21/mastodon,glitch-soc/mastodon
ruby
## Code Before: class DirectoriesController < ApplicationController layout 'public' before_action :set_instance_presenter before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts def index render :index end def show render :index end private def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end def set_tags @tags = Tag.discoverable.limit(30) end def set_accounts @accounts = Account.searchable.discoverable.page(params[:page]).per(50).tap do |query| query.merge!(Account.tagged_with(@tag.id)) if @tag if popular_requested? query.merge!(Account.popular) else query.merge!(Account.by_recent_status) end end end def set_instance_presenter @instance_presenter = InstancePresenter.new end def popular_requested? request.path.ends_with?('/popular') end end ## Instruction: Fix directory controller in glitch-soc ## Code After: class DirectoriesController < ApplicationController layout 'public' before_action :set_instance_presenter before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts before_action :set_pack def index render :index end def show render :index end private def set_pack use_pack 'share' end def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end def set_tags @tags = Tag.discoverable.limit(30) end def set_accounts @accounts = Account.searchable.discoverable.page(params[:page]).per(50).tap do |query| query.merge!(Account.tagged_with(@tag.id)) if @tag if popular_requested? query.merge!(Account.popular) else query.merge!(Account.by_recent_status) end end end def set_instance_presenter @instance_presenter = InstancePresenter.new end def popular_requested? request.path.ends_with?('/popular') end end
class DirectoriesController < ApplicationController layout 'public' before_action :set_instance_presenter before_action :set_tag, only: :show before_action :set_tags before_action :set_accounts + before_action :set_pack def index render :index end def show render :index end private + + def set_pack + use_pack 'share' + end def set_tag @tag = Tag.discoverable.find_by!(name: params[:id].downcase) end def set_tags @tags = Tag.discoverable.limit(30) end def set_accounts @accounts = Account.searchable.discoverable.page(params[:page]).per(50).tap do |query| query.merge!(Account.tagged_with(@tag.id)) if @tag if popular_requested? query.merge!(Account.popular) else query.merge!(Account.by_recent_status) end end end def set_instance_presenter @instance_presenter = InstancePresenter.new end def popular_requested? request.path.ends_with?('/popular') end end
5
0.106383
5
0
c58e3c207ad5f534ea8a7e17cb13f6a1a1b8c714
multi_schema/admin.py
multi_schema/admin.py
from django.contrib import admin from models import Schema class SchemaAdmin(admin.ModelAdmin): pass admin.site.register(Schema, SchemaAdmin)
from django.contrib import admin, auth from models import Schema, UserSchema class SchemaAdmin(admin.ModelAdmin): def get_readonly_fields(self, request, obj=None): if obj is not None: return ('schema',) return () admin.site.register(Schema, SchemaAdmin) class SchemaInline(admin.StackedInline): model = UserSchema # Inject SchemeInline into UserAdmin UserAdmin = admin.site._registry[auth.models.User].__class__ class SchemaUserAdmin(UserAdmin): inlines = UserAdmin.inlines + [SchemaInline] admin.site.unregister(auth.models.User) admin.site.register(auth.models.User, SchemaUserAdmin)
Make 'schema' value readonly after creation. Inject SchemaUser into UserAdmin inlines.
Make 'schema' value readonly after creation. Inject SchemaUser into UserAdmin inlines.
Python
bsd-3-clause
schinckel/django-boardinghouse,schinckel/django-boardinghouse,schinckel/django-boardinghouse
python
## Code Before: from django.contrib import admin from models import Schema class SchemaAdmin(admin.ModelAdmin): pass admin.site.register(Schema, SchemaAdmin) ## Instruction: Make 'schema' value readonly after creation. Inject SchemaUser into UserAdmin inlines. ## Code After: from django.contrib import admin, auth from models import Schema, UserSchema class SchemaAdmin(admin.ModelAdmin): def get_readonly_fields(self, request, obj=None): if obj is not None: return ('schema',) return () admin.site.register(Schema, SchemaAdmin) class SchemaInline(admin.StackedInline): model = UserSchema # Inject SchemeInline into UserAdmin UserAdmin = admin.site._registry[auth.models.User].__class__ class SchemaUserAdmin(UserAdmin): inlines = UserAdmin.inlines + [SchemaInline] admin.site.unregister(auth.models.User) admin.site.register(auth.models.User, SchemaUserAdmin)
- from django.contrib import admin + from django.contrib import admin, auth ? ++++++ - from models import Schema + from models import Schema, UserSchema ? ++++++++++++ class SchemaAdmin(admin.ModelAdmin): - pass + def get_readonly_fields(self, request, obj=None): + if obj is not None: + return ('schema',) + return () admin.site.register(Schema, SchemaAdmin) + + class SchemaInline(admin.StackedInline): + model = UserSchema + + # Inject SchemeInline into UserAdmin + UserAdmin = admin.site._registry[auth.models.User].__class__ + + class SchemaUserAdmin(UserAdmin): + inlines = UserAdmin.inlines + [SchemaInline] + + admin.site.unregister(auth.models.User) + admin.site.register(auth.models.User, SchemaUserAdmin)
21
3
18
3
738767fd50fb9c824b80c6e25337e851e116bac6
trunk/ClientOfMutabilityDetector/trunk/ClientOfMutabilityDetector/src/main/java/org/mutabilitydetector/unittesting/assertionbenchmarks/CheckSomeClass.java
trunk/ClientOfMutabilityDetector/trunk/ClientOfMutabilityDetector/src/main/java/org/mutabilitydetector/unittesting/assertionbenchmarks/CheckSomeClass.java
/* * Mutability Detector * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Further licensing information for this project can be found in * license/LICENSE.txt */ package org.mutabilitydetector.unittesting.assertionbenchmarks; import java.math.BigDecimal; import org.mutabilitydetector.cli.CommandLineOptions; import org.mutabilitydetector.cli.RunMutabilityDetector; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory; public class CheckSomeClass { public static void main(String[] args) { //checkClass(TestIllegalFieldValueException.class); // checkClass(DurationField.class); checkClass(BigDecimal.class); } private static void checkClass(Class<?> toAnalyse) { ClassPath cp = new ClassPathFactory().createFromJVM(); String match = toAnalyse.getName().replace("$", "\\$"); CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match); new RunMutabilityDetector(cp, options).run(); } }
/* * Mutability Detector * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Further licensing information for this project can be found in * license/LICENSE.txt */ package org.mutabilitydetector.unittesting.assertionbenchmarks; import java.math.BigDecimal; import org.mutabilitydetector.cli.CommandLineOptions; import org.mutabilitydetector.cli.NamesFromClassResources; import org.mutabilitydetector.cli.RunMutabilityDetector; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory; public class CheckSomeClass { public static void main(String[] args) { //checkClass(TestIllegalFieldValueException.class); // checkClass(DurationField.class); checkClass(BigDecimal.class); } private static void checkClass(Class<?> toAnalyse) { ClassPath cp = new ClassPathFactory().createFromJVM(); String match = toAnalyse.getName().replace("$", "\\$"); CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match); new RunMutabilityDetector(cp, options, new NamesFromClassResources(options.match())).run(); } }
Update client to account for change in signature.
Update client to account for change in signature. git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@583 c7a0535c-eda6-11de-83d8-6d5adf01d787
Java
apache-2.0
MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector
java
## Code Before: /* * Mutability Detector * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Further licensing information for this project can be found in * license/LICENSE.txt */ package org.mutabilitydetector.unittesting.assertionbenchmarks; import java.math.BigDecimal; import org.mutabilitydetector.cli.CommandLineOptions; import org.mutabilitydetector.cli.RunMutabilityDetector; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory; public class CheckSomeClass { public static void main(String[] args) { //checkClass(TestIllegalFieldValueException.class); // checkClass(DurationField.class); checkClass(BigDecimal.class); } private static void checkClass(Class<?> toAnalyse) { ClassPath cp = new ClassPathFactory().createFromJVM(); String match = toAnalyse.getName().replace("$", "\\$"); CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match); new RunMutabilityDetector(cp, options).run(); } } ## Instruction: Update client to account for change in signature. git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@583 c7a0535c-eda6-11de-83d8-6d5adf01d787 ## Code After: /* * Mutability Detector * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Further licensing information for this project can be found in * license/LICENSE.txt */ package org.mutabilitydetector.unittesting.assertionbenchmarks; import java.math.BigDecimal; import org.mutabilitydetector.cli.CommandLineOptions; import org.mutabilitydetector.cli.NamesFromClassResources; import org.mutabilitydetector.cli.RunMutabilityDetector; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory; public class CheckSomeClass { public static void main(String[] args) { //checkClass(TestIllegalFieldValueException.class); // checkClass(DurationField.class); checkClass(BigDecimal.class); } private static void checkClass(Class<?> toAnalyse) { ClassPath cp = new ClassPathFactory().createFromJVM(); String match = toAnalyse.getName().replace("$", "\\$"); CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match); new RunMutabilityDetector(cp, options, new NamesFromClassResources(options.match())).run(); } }
/* * Mutability Detector * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Further licensing information for this project can be found in * license/LICENSE.txt */ package org.mutabilitydetector.unittesting.assertionbenchmarks; import java.math.BigDecimal; import org.mutabilitydetector.cli.CommandLineOptions; + import org.mutabilitydetector.cli.NamesFromClassResources; import org.mutabilitydetector.cli.RunMutabilityDetector; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPath; import org.mutabilitydetector.repackaged.com.google.classpath.ClassPathFactory; public class CheckSomeClass { public static void main(String[] args) { //checkClass(TestIllegalFieldValueException.class); // checkClass(DurationField.class); checkClass(BigDecimal.class); } private static void checkClass(Class<?> toAnalyse) { ClassPath cp = new ClassPathFactory().createFromJVM(); String match = toAnalyse.getName().replace("$", "\\$"); CommandLineOptions options = new CommandLineOptions(System.out, "-v", "-match", match); - new RunMutabilityDetector(cp, options).run(); + new RunMutabilityDetector(cp, options, new NamesFromClassResources(options.match())).run(); } }
3
0.083333
2
1
9787e7689e8c45b01ce1801901873f9ab538445c
swagger_to_sdk_config.json
swagger_to_sdk_config.json
{ "$schema": "https://raw.githubusercontent.com/lmazuel/swagger-to-sdk/master/swagger_to_sdk_config.schema.json", "meta": { "autorest_options": { "version": "preview", "use": "@microsoft.azure/autorest.python@~3.0.56", "python": "", "python-mode": "update", "sdkrel:python-sdks-folder": "./sdk/.", "multiapi": "" }, "repotag": "azure-sdk-for-python", "version": "0.2.0" }, "projects": { "batch": { "build_dir": "azure-batch", "markdown": "specification/batch/data-plane/readme.md", "wrapper_filesOrDirs": [ "azure-batch/azure/batch/batch_auth.py" ] } } }
{ "$schema": "https://raw.githubusercontent.com/lmazuel/swagger-to-sdk/master/swagger_to_sdk_config.schema.json", "meta": { "autorest_options": { "version": "preview", "use": "@microsoft.azure/autorest.python@~3.0.56", "python": "", "python-mode": "update", "sdkrel:python-sdks-folder": "./sdk/.", "multiapi": "" }, "repotag": "azure-sdk-for-python", "version": "0.2.0" } }
Kill project section for good
Kill project section for good
JSON
mit
Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python
json
## Code Before: { "$schema": "https://raw.githubusercontent.com/lmazuel/swagger-to-sdk/master/swagger_to_sdk_config.schema.json", "meta": { "autorest_options": { "version": "preview", "use": "@microsoft.azure/autorest.python@~3.0.56", "python": "", "python-mode": "update", "sdkrel:python-sdks-folder": "./sdk/.", "multiapi": "" }, "repotag": "azure-sdk-for-python", "version": "0.2.0" }, "projects": { "batch": { "build_dir": "azure-batch", "markdown": "specification/batch/data-plane/readme.md", "wrapper_filesOrDirs": [ "azure-batch/azure/batch/batch_auth.py" ] } } } ## Instruction: Kill project section for good ## Code After: { "$schema": "https://raw.githubusercontent.com/lmazuel/swagger-to-sdk/master/swagger_to_sdk_config.schema.json", "meta": { "autorest_options": { "version": "preview", "use": "@microsoft.azure/autorest.python@~3.0.56", "python": "", "python-mode": "update", "sdkrel:python-sdks-folder": "./sdk/.", "multiapi": "" }, "repotag": "azure-sdk-for-python", "version": "0.2.0" } }
{ "$schema": "https://raw.githubusercontent.com/lmazuel/swagger-to-sdk/master/swagger_to_sdk_config.schema.json", "meta": { "autorest_options": { "version": "preview", "use": "@microsoft.azure/autorest.python@~3.0.56", "python": "", "python-mode": "update", "sdkrel:python-sdks-folder": "./sdk/.", "multiapi": "" }, "repotag": "azure-sdk-for-python", "version": "0.2.0" - }, - "projects": { - "batch": { - "build_dir": "azure-batch", - "markdown": "specification/batch/data-plane/readme.md", - "wrapper_filesOrDirs": [ - "azure-batch/azure/batch/batch_auth.py" - ] - } } }
9
0.375
0
9
bfb9e7fc598ca40b7b1dfe6c761733313fa3ffbc
step-capstone/src/scripts/HelperFunctions.js
step-capstone/src/scripts/HelperFunctions.js
export const travelObjectStartDateComparator = (travelObjectA, travelObjectB) => { if (travelObjectA.startDate === travelObjectB.startDate) { return 0; } else if (travelObjectA.startDate > travelObjectB.startDate) { return 1; } else { return -1; } }
export const travelObjectStartDateComparator = (travelObjectA, travelObjectB) => { if (travelObjectA.startDate === travelObjectB.startDate) { return 0; } else if (travelObjectA.startDate > travelObjectB.startDate) { return 1; } else { return -1; } } /*Given 2 Date objects, return true if they have the same date; return false otherwise */ export const sameDate = (timeA, timeB) => { return (timeA.getDate() === timeB.getDate() && timeA.getMonth() === timeB.getMonth() && timeA.getFullYear() === timeB.getFullYear()); }
Add sameDate function to helper function
Add sameDate function to helper function
JavaScript
apache-2.0
googleinterns/step98-2020,googleinterns/step98-2020
javascript
## Code Before: export const travelObjectStartDateComparator = (travelObjectA, travelObjectB) => { if (travelObjectA.startDate === travelObjectB.startDate) { return 0; } else if (travelObjectA.startDate > travelObjectB.startDate) { return 1; } else { return -1; } } ## Instruction: Add sameDate function to helper function ## Code After: export const travelObjectStartDateComparator = (travelObjectA, travelObjectB) => { if (travelObjectA.startDate === travelObjectB.startDate) { return 0; } else if (travelObjectA.startDate > travelObjectB.startDate) { return 1; } else { return -1; } } /*Given 2 Date objects, return true if they have the same date; return false otherwise */ export const sameDate = (timeA, timeB) => { return (timeA.getDate() === timeB.getDate() && timeA.getMonth() === timeB.getMonth() && timeA.getFullYear() === timeB.getFullYear()); }
export const travelObjectStartDateComparator = (travelObjectA, travelObjectB) => { if (travelObjectA.startDate === travelObjectB.startDate) { return 0; } else if (travelObjectA.startDate > travelObjectB.startDate) { return 1; } else { return -1; } } + + /*Given 2 Date objects, return true if they have the same date; return false otherwise */ + export const sameDate = (timeA, timeB) => { + return (timeA.getDate() === timeB.getDate() && timeA.getMonth() === timeB.getMonth() && timeA.getFullYear() === timeB.getFullYear()); + }
5
0.454545
5
0
490461bb9dc4ecca11fbca624a3e988fce2a0877
src/Http/Requests/ImportFormRequest.php
src/Http/Requests/ImportFormRequest.php
<?php declare(strict_types=1); namespace Cortex\Foundation\Http\Requests; use Cortex\Foundation\Http\FormRequest; class ImportFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'file.*' => 'required|file|mimetypes:application/vnd.ms-excel', ]; } }
<?php declare(strict_types=1); namespace Cortex\Foundation\Http\Requests; use Cortex\Foundation\Http\FormRequest; class ImportFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'file.*' => 'required|file|mimetypes:'.implode(',', config('cortex.foundation.datatables.imports')), ]; } }
Fix datatable import extensions to be dynamic/configurable
Fix datatable import extensions to be dynamic/configurable
PHP
mit
rinvex/cortex-foundation
php
## Code Before: <?php declare(strict_types=1); namespace Cortex\Foundation\Http\Requests; use Cortex\Foundation\Http\FormRequest; class ImportFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'file.*' => 'required|file|mimetypes:application/vnd.ms-excel', ]; } } ## Instruction: Fix datatable import extensions to be dynamic/configurable ## Code After: <?php declare(strict_types=1); namespace Cortex\Foundation\Http\Requests; use Cortex\Foundation\Http\FormRequest; class ImportFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'file.*' => 'required|file|mimetypes:'.implode(',', config('cortex.foundation.datatables.imports')), ]; } }
<?php declare(strict_types=1); namespace Cortex\Foundation\Http\Requests; use Cortex\Foundation\Http\FormRequest; class ImportFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ - 'file.*' => 'required|file|mimetypes:application/vnd.ms-excel', + 'file.*' => 'required|file|mimetypes:'.implode(',', config('cortex.foundation.datatables.imports')), ]; } }
2
0.0625
1
1
6caa66f152b5254c3a54888073f9bf2e202a16f0
products/SNS/plugins/org.csstudio.scan.ui/src/org/csstudio/scan/ui/messages.properties
products/SNS/plugins/org.csstudio.scan.ui/src/org/csstudio/scan/ui/messages.properties
ScanPrefsMessage=Scan System Settings ServerHost=Scan Server Host: ServerPort=Scan Server Port (this and +1):
ScanPrefsMessage=Scan System Settings ServerHost=Scan Server Host: ServerPort=Scan Server REST Port:
Update preference label for server port
o.c.scan.ui: Update preference label for server port
INI
epl-1.0
ESSICS/cs-studio,css-iter/cs-studio,css-iter/cs-studio,ControlSystemStudio/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,css-iter/cs-studio,ControlSystemStudio/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,ControlSystemStudio/cs-studio
ini
## Code Before: ScanPrefsMessage=Scan System Settings ServerHost=Scan Server Host: ServerPort=Scan Server Port (this and +1): ## Instruction: o.c.scan.ui: Update preference label for server port ## Code After: ScanPrefsMessage=Scan System Settings ServerHost=Scan Server Host: ServerPort=Scan Server REST Port:
ScanPrefsMessage=Scan System Settings ServerHost=Scan Server Host: - ServerPort=Scan Server Port (this and +1): + ServerPort=Scan Server REST Port:
2
0.666667
1
1
59c9067a4df8f2e217ea06770d850a63a0452ca4
README.md
README.md
lnsr ==== lean server - small node.js bits &amp; modules to create a lean and simple sever from scratch
lnsr (lean server) are small [node](http://nodejs.org) modules to create a lean and simple sever from scratch. Every module in itself is a [connect](https://github.com/senchalabs/connect) compatible _middleware_. ```js var lnsr = require('./lnsr.js') var http = require('http') // just use your middleware functions as arguments to queue var middleware = lnsr.queue( function (req, res next) { res.setHeader('Content-Type', 'text/plain'); res.write('URL: ' + req.url); next(); }, function (req, res next) { res.end('done'); }); //create node.js http server and listen on port http.createServer(middleware).listen(8080); ```
Add first code snippet to readme
Add first code snippet to readme
Markdown
mit
matths/lnsr
markdown
## Code Before: lnsr ==== lean server - small node.js bits &amp; modules to create a lean and simple sever from scratch ## Instruction: Add first code snippet to readme ## Code After: lnsr (lean server) are small [node](http://nodejs.org) modules to create a lean and simple sever from scratch. Every module in itself is a [connect](https://github.com/senchalabs/connect) compatible _middleware_. ```js var lnsr = require('./lnsr.js') var http = require('http') // just use your middleware functions as arguments to queue var middleware = lnsr.queue( function (req, res next) { res.setHeader('Content-Type', 'text/plain'); res.write('URL: ' + req.url); next(); }, function (req, res next) { res.end('done'); }); //create node.js http server and listen on port http.createServer(middleware).listen(8080); ```
- lnsr - ==== - lean server - small node.js bits &amp; modules to create a lean and simple sever from scratch ? ^ ^ ^^^^^^^^^^^ + lnsr (lean server) are small [node](http://nodejs.org) modules to create a lean and simple sever from scratch. ? ++++++ + ^^^ + ^^^^^^^^^^^^^ ^^^^^ + + Every module in itself is a [connect](https://github.com/senchalabs/connect) compatible _middleware_. + + ```js + var lnsr = require('./lnsr.js') + var http = require('http') + + // just use your middleware functions as arguments to queue + var middleware = lnsr.queue( + function (req, res next) { + res.setHeader('Content-Type', 'text/plain'); + res.write('URL: ' + req.url); + next(); + }, + function (req, res next) { + res.end('done'); + }); + + //create node.js http server and listen on port + http.createServer(middleware).listen(8080); + ```
24
6
21
3
c2348bc0e7cc18ebbc210e4723fb65c70267657a
packages/la/Lazy-Pbkdf2.yaml
packages/la/Lazy-Pbkdf2.yaml
homepage: '' changelog-type: '' hash: 43b9d96a5b6587b8588ce9c6e427cb7b601f144771b5a993af20717e5d31ecfb test-bench-deps: bytestring: -any base: ! '>=4 && <5' memory: -any binary: -any cryptonite: -any base16-bytestring: -any maintainer: Marcus Ofenhed <marcus@conditionraise.se> synopsis: Lazy PBKDF2 generator. changelog: '' basic-deps: bytestring: -any base: ! '>=4 && <5' binary: -any all-versions: - '1.0.0' - '1.0.1' - '1.0.2' - '2.1.0' - '2.1.1' author: Marcus Ofenhed <marcus@conditionraise.se> latest: '2.1.1' description-type: haddock description: ! 'A PBKDF2 generator that generates a lazy ByteString of PRNG data.' license-name: MIT
homepage: '' changelog-type: '' hash: 614db5db52bf56f9f3a734e305f3b746368102d140b1daff128c1e523dc55d2d test-bench-deps: bytestring: -any base: ! '>=4 && <5' memory: -any binary: -any cryptonite: -any base16-bytestring: -any maintainer: Marcus Ofenhed <marcus@conditionraise.se> synopsis: Lazy PBKDF2 generator. changelog: '' basic-deps: bytestring: -any base: ! '>=4 && <5' binary: -any all-versions: - '1.0.0' - '1.0.1' - '1.0.2' - '2.1.0' - '2.1.1' - '2.1.2' author: Marcus Ofenhed <marcus@conditionraise.se> latest: '2.1.2' description-type: haddock description: ! 'A PBKDF2 generator that generates a lazy ByteString of PRNG data.' license-name: MIT
Update from Hackage at 2017-01-01T06:57:05Z
Update from Hackage at 2017-01-01T06:57:05Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: 43b9d96a5b6587b8588ce9c6e427cb7b601f144771b5a993af20717e5d31ecfb test-bench-deps: bytestring: -any base: ! '>=4 && <5' memory: -any binary: -any cryptonite: -any base16-bytestring: -any maintainer: Marcus Ofenhed <marcus@conditionraise.se> synopsis: Lazy PBKDF2 generator. changelog: '' basic-deps: bytestring: -any base: ! '>=4 && <5' binary: -any all-versions: - '1.0.0' - '1.0.1' - '1.0.2' - '2.1.0' - '2.1.1' author: Marcus Ofenhed <marcus@conditionraise.se> latest: '2.1.1' description-type: haddock description: ! 'A PBKDF2 generator that generates a lazy ByteString of PRNG data.' license-name: MIT ## Instruction: Update from Hackage at 2017-01-01T06:57:05Z ## Code After: homepage: '' changelog-type: '' hash: 614db5db52bf56f9f3a734e305f3b746368102d140b1daff128c1e523dc55d2d test-bench-deps: bytestring: -any base: ! '>=4 && <5' memory: -any binary: -any cryptonite: -any base16-bytestring: -any maintainer: Marcus Ofenhed <marcus@conditionraise.se> synopsis: Lazy PBKDF2 generator. changelog: '' basic-deps: bytestring: -any base: ! '>=4 && <5' binary: -any all-versions: - '1.0.0' - '1.0.1' - '1.0.2' - '2.1.0' - '2.1.1' - '2.1.2' author: Marcus Ofenhed <marcus@conditionraise.se> latest: '2.1.2' description-type: haddock description: ! 'A PBKDF2 generator that generates a lazy ByteString of PRNG data.' license-name: MIT
homepage: '' changelog-type: '' - hash: 43b9d96a5b6587b8588ce9c6e427cb7b601f144771b5a993af20717e5d31ecfb + hash: 614db5db52bf56f9f3a734e305f3b746368102d140b1daff128c1e523dc55d2d test-bench-deps: bytestring: -any base: ! '>=4 && <5' memory: -any binary: -any cryptonite: -any base16-bytestring: -any maintainer: Marcus Ofenhed <marcus@conditionraise.se> synopsis: Lazy PBKDF2 generator. changelog: '' basic-deps: bytestring: -any base: ! '>=4 && <5' binary: -any all-versions: - '1.0.0' - '1.0.1' - '1.0.2' - '2.1.0' - '2.1.1' + - '2.1.2' author: Marcus Ofenhed <marcus@conditionraise.se> - latest: '2.1.1' ? ^ + latest: '2.1.2' ? ^ description-type: haddock description: ! 'A PBKDF2 generator that generates a lazy ByteString of PRNG data.' license-name: MIT
5
0.166667
3
2
8369d26432bc3ea4b91f0785f40cd3085623d778
app/components/LinkButton/index.js
app/components/LinkButton/index.js
import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import ButtonStyle from './ButtonStyle'; function LinkButton() { return ( <div> <ButtonStyle to="/mixhomepage"> <FormattedMessage {...messages.mixhomepage} /> </ButtonStyle> </div> ); } LinkButton.propTypes = { }; export default LinkButton;
import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import ButtonStyle from './ButtonStyle'; function LinkButton(linkTo) { return ( <div> <ButtonStyle to={linkTo}> <FormattedMessage {...messages.mixhomepage} /> </ButtonStyle> </div> ); } export default LinkButton;
FIX : adresse du lien en paramètre
FIX : adresse du lien en paramètre
JavaScript
mit
FlorianVoct/monPropreMix,FlorianVoct/monPropreMix
javascript
## Code Before: import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import ButtonStyle from './ButtonStyle'; function LinkButton() { return ( <div> <ButtonStyle to="/mixhomepage"> <FormattedMessage {...messages.mixhomepage} /> </ButtonStyle> </div> ); } LinkButton.propTypes = { }; export default LinkButton; ## Instruction: FIX : adresse du lien en paramètre ## Code After: import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import ButtonStyle from './ButtonStyle'; function LinkButton(linkTo) { return ( <div> <ButtonStyle to={linkTo}> <FormattedMessage {...messages.mixhomepage} /> </ButtonStyle> </div> ); } export default LinkButton;
import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import ButtonStyle from './ButtonStyle'; - - function LinkButton() { + function LinkButton(linkTo) { ? ++++++ return ( <div> - <ButtonStyle to="/mixhomepage"> + <ButtonStyle to={linkTo}> <FormattedMessage {...messages.mixhomepage} /> </ButtonStyle> </div> ); } - LinkButton.propTypes = { - - }; - export default LinkButton;
9
0.391304
2
7
674826aeab8fa0016eed829110740f9a93247b58
fedora/manager/manager.py
fedora/manager/manager.py
from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(verify_exists=False) try: validator(uri) self.__oerUri = uri for t in templates: if 'OERTemplate' == t.__class__.__bases__[0].__name__: self.__parserTemplates.add(t) if True == auto_retrieved: self.retrieve_information() except ValidationError, e: pass """ To retrieve OER content from assigned URI """ def retrieve_information(self): request_header = {'accept': 'application/ld+json'} r = requests.get(self.__oerUri, headers=request_header) json_response = r.json() """ Start parsing information with assigned template """ for template in self.__parserTemplates: template.parse(json_response) self += template def __add__(self, other): for key in other.__dict__.keys(): setattr(self, key, other.__dict__[key])
from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(verify_exists=False) try: validator(uri) self.__oerUri = uri for t in templates: if 'OERTemplate' == t.__class__.__bases__[0].__name__: self.__parserTemplates.add(t) if True == auto_retrieved: self.retrieve_information() except ValidationError, e: pass """ To retrieve OER content from assigned URI """ def retrieve_information(self): request_header = {'accept': 'application/ld+json'} r = requests.get(self.__oerUri, headers=request_header) json_response = r.json() parsed_data = dict(); """ Start parsing information with assigned template """ for template in self.__parserTemplates: template.parse(json_response) for key in template.__dict__.keys(): val = getattr(template, key) parsed_data[key] = val return parsed_data
Change concatination of parsed data
Change concatination of parsed data
Python
mit
sitdh/fedora-parser
python
## Code Before: from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(verify_exists=False) try: validator(uri) self.__oerUri = uri for t in templates: if 'OERTemplate' == t.__class__.__bases__[0].__name__: self.__parserTemplates.add(t) if True == auto_retrieved: self.retrieve_information() except ValidationError, e: pass """ To retrieve OER content from assigned URI """ def retrieve_information(self): request_header = {'accept': 'application/ld+json'} r = requests.get(self.__oerUri, headers=request_header) json_response = r.json() """ Start parsing information with assigned template """ for template in self.__parserTemplates: template.parse(json_response) self += template def __add__(self, other): for key in other.__dict__.keys(): setattr(self, key, other.__dict__[key]) ## Instruction: Change concatination of parsed data ## Code After: from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(verify_exists=False) try: validator(uri) self.__oerUri = uri for t in templates: if 'OERTemplate' == t.__class__.__bases__[0].__name__: self.__parserTemplates.add(t) if True == auto_retrieved: self.retrieve_information() except ValidationError, e: pass """ To retrieve OER content from assigned URI """ def retrieve_information(self): request_header = {'accept': 'application/ld+json'} r = requests.get(self.__oerUri, headers=request_header) json_response = r.json() parsed_data = dict(); """ Start parsing information with assigned template """ for template in self.__parserTemplates: template.parse(json_response) for key in template.__dict__.keys(): val = getattr(template, key) parsed_data[key] = val return parsed_data
from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' - __parserTemplates = set() + __parserTemplates = set() ? ++ def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(verify_exists=False) try: validator(uri) self.__oerUri = uri for t in templates: if 'OERTemplate' == t.__class__.__bases__[0].__name__: self.__parserTemplates.add(t) if True == auto_retrieved: self.retrieve_information() except ValidationError, e: pass """ To retrieve OER content from assigned URI """ def retrieve_information(self): request_header = {'accept': 'application/ld+json'} r = requests.get(self.__oerUri, headers=request_header) json_response = r.json() + parsed_data = dict(); + """ Start parsing information with assigned template """ for template in self.__parserTemplates: template.parse(json_response) - self += template + for key in template.__dict__.keys(): + val = getattr(template, key) + parsed_data[key] = val + return parsed_data - def __add__(self, other): - for key in other.__dict__.keys(): - setattr(self, key, other.__dict__[key])
12
0.255319
7
5
6e0f56a259a49883e2bc952a7fb15e207c4a69a2
TABLES/processes.sql
TABLES/processes.sql
CREATE TABLE cron.Processes ( ProcessID serial NOT NULL, JobID integer NOT NULL REFERENCES cron.Jobs(JobID), Running boolean NOT NULL DEFAULT FALSE, FirstRunStartedAt timestamptz, FirstRunFinishedAt timestamptz, LastRunStartedAt timestamptz, LastRunFinishedAt timestamptz, BatchJobState batchjobstate, LastSQLSTATE text, LastSQLERRM text, PgBackendPID integer, PRIMARY KEY (ProcessID), CHECK(LastSQLSTATE ~ '^[0-9A-Z]{5}$') ); ALTER TABLE cron.Processes OWNER TO pgcronjob;
CREATE TABLE cron.Processes ( ProcessID serial NOT NULL, JobID integer NOT NULL REFERENCES cron.Jobs(JobID), Running boolean NOT NULL DEFAULT FALSE, FirstRunStartedAt timestamptz, FirstRunFinishedAt timestamptz, LastRunStartedAt timestamptz, LastRunFinishedAt timestamptz, BatchJobState batchjobstate, LastSQLSTATE text, LastSQLERRM text, PRIMARY KEY (ProcessID), CHECK(LastSQLSTATE ~ '^[0-9A-Z]{5}$') ); ALTER TABLE cron.Processes OWNER TO pgcronjob;
Remove Process.PgBackendPID as this column is not set anymore. We instead log it per execution to Log.
Remove Process.PgBackendPID as this column is not set anymore. We instead log it per execution to Log.
SQL
mit
trustly/pgcronjob
sql
## Code Before: CREATE TABLE cron.Processes ( ProcessID serial NOT NULL, JobID integer NOT NULL REFERENCES cron.Jobs(JobID), Running boolean NOT NULL DEFAULT FALSE, FirstRunStartedAt timestamptz, FirstRunFinishedAt timestamptz, LastRunStartedAt timestamptz, LastRunFinishedAt timestamptz, BatchJobState batchjobstate, LastSQLSTATE text, LastSQLERRM text, PgBackendPID integer, PRIMARY KEY (ProcessID), CHECK(LastSQLSTATE ~ '^[0-9A-Z]{5}$') ); ALTER TABLE cron.Processes OWNER TO pgcronjob; ## Instruction: Remove Process.PgBackendPID as this column is not set anymore. We instead log it per execution to Log. ## Code After: CREATE TABLE cron.Processes ( ProcessID serial NOT NULL, JobID integer NOT NULL REFERENCES cron.Jobs(JobID), Running boolean NOT NULL DEFAULT FALSE, FirstRunStartedAt timestamptz, FirstRunFinishedAt timestamptz, LastRunStartedAt timestamptz, LastRunFinishedAt timestamptz, BatchJobState batchjobstate, LastSQLSTATE text, LastSQLERRM text, PRIMARY KEY (ProcessID), CHECK(LastSQLSTATE ~ '^[0-9A-Z]{5}$') ); ALTER TABLE cron.Processes OWNER TO pgcronjob;
CREATE TABLE cron.Processes ( ProcessID serial NOT NULL, JobID integer NOT NULL REFERENCES cron.Jobs(JobID), Running boolean NOT NULL DEFAULT FALSE, FirstRunStartedAt timestamptz, FirstRunFinishedAt timestamptz, LastRunStartedAt timestamptz, LastRunFinishedAt timestamptz, BatchJobState batchjobstate, LastSQLSTATE text, LastSQLERRM text, - PgBackendPID integer, PRIMARY KEY (ProcessID), CHECK(LastSQLSTATE ~ '^[0-9A-Z]{5}$') ); ALTER TABLE cron.Processes OWNER TO pgcronjob;
1
0.058824
0
1
f8a61d224b8ac2de97ccc6fec76c2ebe7899be0f
wisper-rspec.gemspec
wisper-rspec.gemspec
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wisper/rspec/version' Gem::Specification.new do |spec| spec.name = "wisper-rspec" spec.version = Wisper::Rspec::VERSION spec.authors = ["Kris Leech"] spec.email = ["kris.leech@gmail.com"] spec.summary = "Rspec matchers and stubbing for Wisper" spec.description = "Rspec matchers and stubbing for Wisper" spec.homepage = "https://github.com/krisleech/wisper-rspec" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] signing_key = File.expand_path(ENV['HOME'].to_s + '/.ssh/gem-private_key.pem') if File.exist?(signing_key) spec.signing_key = signing_key spec.cert_chain = ['gem-public_cert.pem'] else puts "Warning: NOT CREATING A SIGNED GEM. Could not find signing key: #{signing_key}" end end
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wisper/rspec/version' Gem::Specification.new do |spec| spec.name = "wisper-rspec" spec.version = Wisper::Rspec::VERSION spec.authors = ["Kris Leech"] spec.email = ["kris.leech@gmail.com"] spec.summary = "Rspec matchers and stubbing for Wisper" spec.description = "Rspec matchers and stubbing for Wisper" spec.homepage = "https://github.com/krisleech/wisper-rspec" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") spec.require_paths = ["lib"] signing_key = File.expand_path(ENV['HOME'].to_s + '/.ssh/gem-private_key.pem') if File.exist?(signing_key) spec.signing_key = signing_key spec.cert_chain = ['gem-public_cert.pem'] else puts "Warning: NOT CREATING A SIGNED GEM. Could not find signing key: #{signing_key}" end end
Remove executable and test files from gemspec
Remove executable and test files from gemspec test_files are installed, see https://github.com/rubygems/rubygems/issues/735 Fixes #27
Ruby
mit
krisleech/wisper-rspec,krisleech/wisper-rspec
ruby
## Code Before: lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wisper/rspec/version' Gem::Specification.new do |spec| spec.name = "wisper-rspec" spec.version = Wisper::Rspec::VERSION spec.authors = ["Kris Leech"] spec.email = ["kris.leech@gmail.com"] spec.summary = "Rspec matchers and stubbing for Wisper" spec.description = "Rspec matchers and stubbing for Wisper" spec.homepage = "https://github.com/krisleech/wisper-rspec" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] signing_key = File.expand_path(ENV['HOME'].to_s + '/.ssh/gem-private_key.pem') if File.exist?(signing_key) spec.signing_key = signing_key spec.cert_chain = ['gem-public_cert.pem'] else puts "Warning: NOT CREATING A SIGNED GEM. Could not find signing key: #{signing_key}" end end ## Instruction: Remove executable and test files from gemspec test_files are installed, see https://github.com/rubygems/rubygems/issues/735 Fixes #27 ## Code After: lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wisper/rspec/version' Gem::Specification.new do |spec| spec.name = "wisper-rspec" spec.version = Wisper::Rspec::VERSION spec.authors = ["Kris Leech"] spec.email = ["kris.leech@gmail.com"] spec.summary = "Rspec matchers and stubbing for Wisper" spec.description = "Rspec matchers and stubbing for Wisper" spec.homepage = "https://github.com/krisleech/wisper-rspec" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") spec.require_paths = ["lib"] signing_key = File.expand_path(ENV['HOME'].to_s + '/.ssh/gem-private_key.pem') if File.exist?(signing_key) spec.signing_key = signing_key spec.cert_chain = ['gem-public_cert.pem'] else puts "Warning: NOT CREATING A SIGNED GEM. Could not find signing key: #{signing_key}" end end
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'wisper/rspec/version' Gem::Specification.new do |spec| spec.name = "wisper-rspec" spec.version = Wisper::Rspec::VERSION spec.authors = ["Kris Leech"] spec.email = ["kris.leech@gmail.com"] spec.summary = "Rspec matchers and stubbing for Wisper" spec.description = "Rspec matchers and stubbing for Wisper" spec.homepage = "https://github.com/krisleech/wisper-rspec" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") - spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] signing_key = File.expand_path(ENV['HOME'].to_s + '/.ssh/gem-private_key.pem') if File.exist?(signing_key) spec.signing_key = signing_key spec.cert_chain = ['gem-public_cert.pem'] else puts "Warning: NOT CREATING A SIGNED GEM. Could not find signing key: #{signing_key}" end end
2
0.071429
0
2
ebfa8f061c7ad49dcc8208833979996ccc51e602
m4/plugin.m4
m4/plugin.m4
define([toupper], [translit([$1], [a-z], [A-Z])]) define([sanitize], [translit([$1], [-], [_])]) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ AC_DEFUN([AC_PLUGIN],[ m4_divert_once([HELP_ENABLE], [ Optional Plugins:]) enable_plugin="no" define(pluggy, sanitize($1)) define(PLUGGY, toupper(pluggy)) AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enable-$1-plugin], [$3]), [ if test "x$enableval" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi], [ if test "x$enable_all_plugins" = "xauto"; then if test "x$2" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi]) if test "x$enable_plugin" = "xyes"; then AC_DEFINE([HAVE_]PLUGGY[_PLUGIN], 1, [Define to 1 if the $1 plugin is enabled.]) fi AM_CONDITIONAL([BUILD_]PLUGGY[_PLUGIN], test "x$enable_plugin" = "xyes") enable_pluggy="$enable_plugin"])
define([toupper], [translit([$1], [a-z], [A-Z])]) define([sanitize], [translit([$1], [-], [_])]) define([enadis], [ifelse([$1], [yes], [disable], [enable])]) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ AC_DEFUN([AC_PLUGIN],[ m4_divert_once([HELP_ENABLE], [ Optional Plugins:]) enable_plugin="no" define(pluggy, sanitize($1)) define(PLUGGY, toupper(pluggy)) AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enadis($2)-$1-plugin], [$3]), [ if test "x$enableval" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi], [ if test "x$enable_all_plugins" = "xauto"; then if test "x$2" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi]) if test "x$enable_plugin" = "xyes"; then AC_DEFINE([HAVE_]PLUGGY[_PLUGIN], 1, [Define to 1 if the $1 plugin is enabled.]) fi AM_CONDITIONAL([BUILD_]PLUGGY[_PLUGIN], test "x$enable_plugin" = "xyes") enable_pluggy="$enable_plugin"])
Fix default handling in M4 macro AC_PLUGIN()
Fix default handling in M4 macro AC_PLUGIN() The AC_PLUGIN() could not properly handle if a plugin is to be enabled by default. This patch adds support for outputting the correct help text. Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>
M4
mit
troglobit/finit,troglobit/finit
m4
## Code Before: define([toupper], [translit([$1], [a-z], [A-Z])]) define([sanitize], [translit([$1], [-], [_])]) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ AC_DEFUN([AC_PLUGIN],[ m4_divert_once([HELP_ENABLE], [ Optional Plugins:]) enable_plugin="no" define(pluggy, sanitize($1)) define(PLUGGY, toupper(pluggy)) AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enable-$1-plugin], [$3]), [ if test "x$enableval" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi], [ if test "x$enable_all_plugins" = "xauto"; then if test "x$2" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi]) if test "x$enable_plugin" = "xyes"; then AC_DEFINE([HAVE_]PLUGGY[_PLUGIN], 1, [Define to 1 if the $1 plugin is enabled.]) fi AM_CONDITIONAL([BUILD_]PLUGGY[_PLUGIN], test "x$enable_plugin" = "xyes") enable_pluggy="$enable_plugin"]) ## Instruction: Fix default handling in M4 macro AC_PLUGIN() The AC_PLUGIN() could not properly handle if a plugin is to be enabled by default. This patch adds support for outputting the correct help text. Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com> ## Code After: define([toupper], [translit([$1], [a-z], [A-Z])]) define([sanitize], [translit([$1], [-], [_])]) define([enadis], [ifelse([$1], [yes], [disable], [enable])]) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ AC_DEFUN([AC_PLUGIN],[ m4_divert_once([HELP_ENABLE], [ Optional Plugins:]) enable_plugin="no" define(pluggy, sanitize($1)) define(PLUGGY, toupper(pluggy)) AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enadis($2)-$1-plugin], [$3]), [ if test "x$enableval" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi], [ if test "x$enable_all_plugins" = "xauto"; then if test "x$2" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi]) if test "x$enable_plugin" = "xyes"; then AC_DEFINE([HAVE_]PLUGGY[_PLUGIN], 1, [Define to 1 if the $1 plugin is enabled.]) fi AM_CONDITIONAL([BUILD_]PLUGGY[_PLUGIN], test "x$enable_plugin" = "xyes") enable_pluggy="$enable_plugin"])
define([toupper], [translit([$1], [a-z], [A-Z])]) define([sanitize], [translit([$1], [-], [_])]) + define([enadis], [ifelse([$1], [yes], [disable], [enable])]) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ AC_DEFUN([AC_PLUGIN],[ m4_divert_once([HELP_ENABLE], [ Optional Plugins:]) enable_plugin="no" define(pluggy, sanitize($1)) define(PLUGGY, toupper(pluggy)) - AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enable-$1-plugin], [$3]), [ ? ^^^ + AC_ARG_ENABLE([$1-plugin], AS_HELP_STRING([--enadis($2)-$1-plugin], [$3]), [ ? ^^^^^^^ if test "x$enableval" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi], [ if test "x$enable_all_plugins" = "xauto"; then if test "x$2" = "xyes"; then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi]) if test "x$enable_plugin" = "xyes"; then AC_DEFINE([HAVE_]PLUGGY[_PLUGIN], 1, [Define to 1 if the $1 plugin is enabled.]) fi AM_CONDITIONAL([BUILD_]PLUGGY[_PLUGIN], test "x$enable_plugin" = "xyes") enable_pluggy="$enable_plugin"])
3
0.09375
2
1
5eb02ffb8629c6d975d1a774726a617248b121ed
README.md
README.md
hack-n-slash ============
Hack-n-Slash! ============= A totally fictitious "hacker-vs-hacker" game that's used to demonstrate some of the updates to the collections API in Java 8. It's not actually a functioning game... but it serves as a great conceptual starting point to explore the Java 8 updates! Most of the code of interest is in the test directory. You can see example Java 7 approaches to the problems, along with Java 8 solutions. ## Running with Maven If you run the tests via maven, you could end up with this message: ``` Fatal error compiling: invalid target release: 1.8 ``` If so, just make sure you've got Java 8 on your ``JAVA_HOME`` path. ## Presentation Slides I used the code in this project in a presentation about Java 8 collections. The [slides for that presentation](http://www.slideshare.net/djleeds/java-8-collection-api-updates) can be found on slideshare.
Add some commentary to the readme
Add some commentary to the readme
Markdown
mit
djleeds/hack-n-slash
markdown
## Code Before: hack-n-slash ============ ## Instruction: Add some commentary to the readme ## Code After: Hack-n-Slash! ============= A totally fictitious "hacker-vs-hacker" game that's used to demonstrate some of the updates to the collections API in Java 8. It's not actually a functioning game... but it serves as a great conceptual starting point to explore the Java 8 updates! Most of the code of interest is in the test directory. You can see example Java 7 approaches to the problems, along with Java 8 solutions. ## Running with Maven If you run the tests via maven, you could end up with this message: ``` Fatal error compiling: invalid target release: 1.8 ``` If so, just make sure you've got Java 8 on your ``JAVA_HOME`` path. ## Presentation Slides I used the code in this project in a presentation about Java 8 collections. The [slides for that presentation](http://www.slideshare.net/djleeds/java-8-collection-api-updates) can be found on slideshare.
- hack-n-slash ? ^ ^ + Hack-n-Slash! ? ^ ^ + - ============ + ============= ? + + + A totally fictitious "hacker-vs-hacker" game that's used to demonstrate some of the updates to the collections API in Java 8. It's not actually a functioning game... but it serves as a great conceptual starting point to explore the Java 8 updates! + + Most of the code of interest is in the test directory. You can see example Java 7 approaches to the problems, along with Java 8 solutions. + + ## Running with Maven + + + If you run the tests via maven, you could end up with this message: + + ``` + Fatal error compiling: invalid target release: 1.8 + ``` + + If so, just make sure you've got Java 8 on your ``JAVA_HOME`` path. + + ## Presentation Slides + + I used the code in this project in a presentation about Java 8 collections. The [slides for that presentation](http://www.slideshare.net/djleeds/java-8-collection-api-updates) can be found on slideshare.
23
11.5
21
2
ac9c8fe7519ff76b4f4002ae8c50e0185fa4bb88
tools/test_filter.py
tools/test_filter.py
{ 'bslmf_addreference': [ {'OS': 'Windows'} ], 'bslstl_iteratorutil': [ {'OS': 'SunOS'} ], 'bslstl_unorderedmultiset': [ {'OS': 'SunOS'} ], 'bslalg_constructorproxy': [ {'OS': 'AIX', 'library': 'shared_library'} ], 'bsls_atomic' : [ {'case': 7, 'HOST': 'VM', 'policy': 'skip' }, {'case': 8, 'HOST': 'VM', 'policy': 'skip' }, ], 'bsls_stopwatch' : [ {'case': 6, 'HOST': 'VM', 'policy': 'skip' } ], }
{ 'bslmf_addreference': [ {'OS': 'Windows'} ], 'bslstl_iteratorutil': [ {'OS': 'SunOS'} ], 'bslstl_unorderedmultiset': [ {'OS': 'SunOS'} ], 'bsls_atomic' : [ {'case': 7, 'HOST': 'VM', 'policy': 'skip' }, {'case': 8, 'HOST': 'VM', 'policy': 'skip' }, ], 'bsls_stopwatch' : [ {'case': 6, 'HOST': 'VM', 'policy': 'skip' } ], }
Remove exception for bslalg_constructorproxy test driver on AIX shared library builds.
Remove exception for bslalg_constructorproxy test driver on AIX shared library builds.
Python
apache-2.0
abeels/bde,che2/bde,minhlongdo/bde,bloomberg/bde-allocator-benchmarks,bowlofstew/bde,bloomberg/bde-allocator-benchmarks,jmptrader/bde,abeels/bde,dharesign/bde,frutiger/bde,che2/bde,apaprocki/bde,RMGiroux/bde-allocator-benchmarks,idispatch/bde,gbleaney/Allocator-Benchmarks,bloomberg/bde-allocator-benchmarks,idispatch/bde,che2/bde,gbleaney/Allocator-Benchmarks,osubboo/bde,RMGiroux/bde-allocator-benchmarks,bowlofstew/bde,apaprocki/bde,frutiger/bde,mversche/bde,dbremner/bde,jmptrader/bde,minhlongdo/bde,mversche/bde,idispatch/bde,saxena84/bde,frutiger/bde,bloomberg/bde,abeels/bde,frutiger/bde,che2/bde,apaprocki/bde,gbleaney/Allocator-Benchmarks,bloomberg/bde,minhlongdo/bde,jmptrader/bde,dbremner/bde,bloomberg/bde,minhlongdo/bde,RMGiroux/bde-allocator-benchmarks,saxena84/bde,apaprocki/bde,bloomberg/bde-allocator-benchmarks,osubboo/bde,RMGiroux/bde-allocator-benchmarks,bowlofstew/bde,bloomberg/bde,dbremner/bde,bloomberg/bde,abeels/bde,saxena84/bde,mversche/bde,mversche/bde,dharesign/bde,osubboo/bde,dbremner/bde,gbleaney/Allocator-Benchmarks,bloomberg/bde-allocator-benchmarks,dharesign/bde,osubboo/bde,abeels/bde,jmptrader/bde,idispatch/bde,dharesign/bde,RMGiroux/bde-allocator-benchmarks,apaprocki/bde,saxena84/bde,abeels/bde,bowlofstew/bde
python
## Code Before: { 'bslmf_addreference': [ {'OS': 'Windows'} ], 'bslstl_iteratorutil': [ {'OS': 'SunOS'} ], 'bslstl_unorderedmultiset': [ {'OS': 'SunOS'} ], 'bslalg_constructorproxy': [ {'OS': 'AIX', 'library': 'shared_library'} ], 'bsls_atomic' : [ {'case': 7, 'HOST': 'VM', 'policy': 'skip' }, {'case': 8, 'HOST': 'VM', 'policy': 'skip' }, ], 'bsls_stopwatch' : [ {'case': 6, 'HOST': 'VM', 'policy': 'skip' } ], } ## Instruction: Remove exception for bslalg_constructorproxy test driver on AIX shared library builds. ## Code After: { 'bslmf_addreference': [ {'OS': 'Windows'} ], 'bslstl_iteratorutil': [ {'OS': 'SunOS'} ], 'bslstl_unorderedmultiset': [ {'OS': 'SunOS'} ], 'bsls_atomic' : [ {'case': 7, 'HOST': 'VM', 'policy': 'skip' }, {'case': 8, 'HOST': 'VM', 'policy': 'skip' }, ], 'bsls_stopwatch' : [ {'case': 6, 'HOST': 'VM', 'policy': 'skip' } ], }
{ 'bslmf_addreference': [ {'OS': 'Windows'} ], 'bslstl_iteratorutil': [ {'OS': 'SunOS'} ], 'bslstl_unorderedmultiset': [ {'OS': 'SunOS'} ], - 'bslalg_constructorproxy': [ {'OS': 'AIX', 'library': 'shared_library'} ], 'bsls_atomic' : [ {'case': 7, 'HOST': 'VM', 'policy': 'skip' }, {'case': 8, 'HOST': 'VM', 'policy': 'skip' }, ], 'bsls_stopwatch' : [ {'case': 6, 'HOST': 'VM', 'policy': 'skip' } ], }
1
0.090909
0
1
413a9c05dce747164c70ccbe362de0b3821bdf6b
helm/grafana/templates/dashboards-configmap.yaml
helm/grafana/templates/dashboards-configmap.yaml
apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "grafana.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "grafana.server.fullname" . }} data: {{- if .Values.serverDashboardFiles }} {{ toYaml .Values.serverDashboardFiles | indent 2 }} {{- end }} {{- if .Values.dataSource }} {{ toYaml .Values.dataSource | indent 2 }} {{- else }} prometheus-datasource.json: |+ { "access": "proxy", "basicAuth": false, "name": "prometheus", "type": "prometheus", "url": "http://prometheus-prometheus:9090" } {{- end }}
apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "grafana.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "grafana.server.fullname" . }} data: {{- if .Values.serverDashboardFiles }} {{ toYaml .Values.serverDashboardFiles | indent 2 }} {{- end }} {{- if .Values.dataSource }} {{ toYaml .Values.dataSource | indent 2 }} {{- else }} prometheus-datasource.json: |+ { "access": "proxy", "basicAuth": false, "name": "prometheus", "type": "prometheus", "url": "http://{{ printf "%s-%s" .Release.Name "prometheus" }}:9090" } {{- end }}
Revert "Update prometheus datasource name"
Revert "Update prometheus datasource name" This reverts commit 93554d0c9c4b480c94eb1777e2d3d7c9eafc59b8.
YAML
apache-2.0
brancz/prometheus-operator,gianrubio/prometheus-operator,coreos/prometheus-operator,gianrubio/prometheus-operator,mmerrill3/prometheus-operator,mmerrill3/prometheus-operator,brancz/prometheus-operator,jescarri/prometheus-operator,gianrubio/prometheus-operator,coreos/prometheus-operator,mmerrill3/prometheus-operator,brancz/prometheus-operator,jescarri/prometheus-operator
yaml
## Code Before: apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "grafana.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "grafana.server.fullname" . }} data: {{- if .Values.serverDashboardFiles }} {{ toYaml .Values.serverDashboardFiles | indent 2 }} {{- end }} {{- if .Values.dataSource }} {{ toYaml .Values.dataSource | indent 2 }} {{- else }} prometheus-datasource.json: |+ { "access": "proxy", "basicAuth": false, "name": "prometheus", "type": "prometheus", "url": "http://prometheus-prometheus:9090" } {{- end }} ## Instruction: Revert "Update prometheus datasource name" This reverts commit 93554d0c9c4b480c94eb1777e2d3d7c9eafc59b8. ## Code After: apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "grafana.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "grafana.server.fullname" . }} data: {{- if .Values.serverDashboardFiles }} {{ toYaml .Values.serverDashboardFiles | indent 2 }} {{- end }} {{- if .Values.dataSource }} {{ toYaml .Values.dataSource | indent 2 }} {{- else }} prometheus-datasource.json: |+ { "access": "proxy", "basicAuth": false, "name": "prometheus", "type": "prometheus", "url": "http://{{ printf "%s-%s" .Release.Name "prometheus" }}:9090" } {{- end }}
apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "grafana.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "grafana.server.fullname" . }} data: {{- if .Values.serverDashboardFiles }} {{ toYaml .Values.serverDashboardFiles | indent 2 }} {{- end }} {{- if .Values.dataSource }} {{ toYaml .Values.dataSource | indent 2 }} {{- else }} prometheus-datasource.json: |+ { "access": "proxy", "basicAuth": false, "name": "prometheus", "type": "prometheus", - "url": "http://prometheus-prometheus:9090" + "url": "http://{{ printf "%s-%s" .Release.Name "prometheus" }}:9090" } {{- end }}
2
0.08
1
1
95636efa5ca7f5dbad9b2ea3e9ff614b8ff5a667
lib/legal_pages/engine.rb
lib/legal_pages/engine.rb
module LegalPages class Engine < ::Rails::Engine isolate_namespace LegalPages config.to_prepare do ApplicationController.helper(LegalPages::ApplicationHelper) end end end
module LegalPages class Engine < ::Rails::Engine isolate_namespace LegalPages config.to_prepare do ApplicationController.helper(LegalPages::ApplicationHelper) end def self.setup(&block) yield self end end end
Add setup code to evaluate app's initializer
Add setup code to evaluate app's initializer
Ruby
mit
kassi/legal_pages,kassi/legal_pages,kassi/legal_pages
ruby
## Code Before: module LegalPages class Engine < ::Rails::Engine isolate_namespace LegalPages config.to_prepare do ApplicationController.helper(LegalPages::ApplicationHelper) end end end ## Instruction: Add setup code to evaluate app's initializer ## Code After: module LegalPages class Engine < ::Rails::Engine isolate_namespace LegalPages config.to_prepare do ApplicationController.helper(LegalPages::ApplicationHelper) end def self.setup(&block) yield self end end end
module LegalPages class Engine < ::Rails::Engine isolate_namespace LegalPages config.to_prepare do ApplicationController.helper(LegalPages::ApplicationHelper) end + + def self.setup(&block) + yield self + end end end
4
0.444444
4
0
61c935178311b0f831ba088f4015d36bd6ae47c0
lib/gaku/config.rb
lib/gaku/config.rb
module Gaku class Config attr_accessor :deck_root, :initial_distance attr_writer :monochrome, :utf8 def monochrome? !!@monochrome end def utf8? !!@utf8 end CONFIG_FILE = File.expand_path("#{Dir.home}/.gaku") def initialize set_defaults begin instance_eval(File.read(CONFIG_FILE)) if File.exists?(CONFIG_FILE) rescue ConfigError raise rescue StandardError => e raise ConfigError, "Configuration is broken (#{CONFIG_FILE})" end end def set_defaults @deck_root = File.expand_path(Dir.pwd) @initial_distance = 8 @monochrome = false @utf8 = true end def gaku @instance ||= self end def method_missing(name, _) raise ConfigError, "Invalid configuration key 'gaku.#{name[/(.*)=$/, 1]}' (#{CONFIG_FILE})" end end end
module Gaku class Config attr_accessor :deck_root, :initial_distance attr_writer :monochrome, :utf8 CONFIG_FILE = File.expand_path("#{Dir.home}/.gaku") def initialize set_defaults begin instance_eval(File.read(CONFIG_FILE)) if File.exists?(CONFIG_FILE) rescue ConfigError raise rescue StandardError => e raise ConfigError, "Configuration is broken (#{CONFIG_FILE})" end end def set_defaults @deck_root = File.expand_path(Dir.pwd) @initial_distance = 8 @monochrome = false @utf8 = true end def monochrome? !!@monochrome end def utf8? !!@utf8 end def gaku @instance ||= self end def method_missing(name, _) raise ConfigError, "Invalid configuration key 'gaku.#{name[/(.*)=$/, 1]}' (#{CONFIG_FILE})" end end end
Order methods of Gaku::Config better
Order methods of Gaku::Config better
Ruby
mit
jsageryd/gaku
ruby
## Code Before: module Gaku class Config attr_accessor :deck_root, :initial_distance attr_writer :monochrome, :utf8 def monochrome? !!@monochrome end def utf8? !!@utf8 end CONFIG_FILE = File.expand_path("#{Dir.home}/.gaku") def initialize set_defaults begin instance_eval(File.read(CONFIG_FILE)) if File.exists?(CONFIG_FILE) rescue ConfigError raise rescue StandardError => e raise ConfigError, "Configuration is broken (#{CONFIG_FILE})" end end def set_defaults @deck_root = File.expand_path(Dir.pwd) @initial_distance = 8 @monochrome = false @utf8 = true end def gaku @instance ||= self end def method_missing(name, _) raise ConfigError, "Invalid configuration key 'gaku.#{name[/(.*)=$/, 1]}' (#{CONFIG_FILE})" end end end ## Instruction: Order methods of Gaku::Config better ## Code After: module Gaku class Config attr_accessor :deck_root, :initial_distance attr_writer :monochrome, :utf8 CONFIG_FILE = File.expand_path("#{Dir.home}/.gaku") def initialize set_defaults begin instance_eval(File.read(CONFIG_FILE)) if File.exists?(CONFIG_FILE) rescue ConfigError raise rescue StandardError => e raise ConfigError, "Configuration is broken (#{CONFIG_FILE})" end end def set_defaults @deck_root = File.expand_path(Dir.pwd) @initial_distance = 8 @monochrome = false @utf8 = true end def monochrome? !!@monochrome end def utf8? !!@utf8 end def gaku @instance ||= self end def method_missing(name, _) raise ConfigError, "Invalid configuration key 'gaku.#{name[/(.*)=$/, 1]}' (#{CONFIG_FILE})" end end end
module Gaku class Config attr_accessor :deck_root, :initial_distance attr_writer :monochrome, :utf8 - - def monochrome? - !!@monochrome - end - - def utf8? - !!@utf8 - end CONFIG_FILE = File.expand_path("#{Dir.home}/.gaku") def initialize set_defaults begin instance_eval(File.read(CONFIG_FILE)) if File.exists?(CONFIG_FILE) rescue ConfigError raise rescue StandardError => e raise ConfigError, "Configuration is broken (#{CONFIG_FILE})" end end def set_defaults @deck_root = File.expand_path(Dir.pwd) @initial_distance = 8 @monochrome = false @utf8 = true end + def monochrome? + !!@monochrome + end + + def utf8? + !!@utf8 + end + def gaku @instance ||= self end def method_missing(name, _) raise ConfigError, "Invalid configuration key 'gaku.#{name[/(.*)=$/, 1]}' (#{CONFIG_FILE})" end end end
16
0.372093
8
8
330a03f6d846be37489195f0626572d060a48e23
web_external/stylesheets/body/studyPage.styl
web_external/stylesheets/body/studyPage.styl
content-margin = 20px .isic-study-users-content .isic-study-featureset-content .isic-study-segmentations-content margin-left content-margin .isic-study-users-content .isic-study-segmentations-content max-height 200px overflow-y auto .isic-study-users-content ul margin-bottom 0px .isic-study-segmentations-content .isic-study-segmentations-content-name width 110px .isic-study-segmentations-content-segmentationid width 210px .isic-study-segmentations-content-imageid width 210px
content-margin = 20px .isic-study-users-content .isic-study-featureset-content .isic-study-segmentations-content margin-left content-margin .isic-study-users-content .isic-study-segmentations-content display inline-block max-height 200px overflow-y auto .isic-study-users-content ul margin-bottom 0px .isic-study-segmentations-content .isic-study-segmentations-content-name width 110px .isic-study-segmentations-content-segmentationid .isic-study-segmentations-content-imageid width 220px td.isic-study-segmentations-content-segmentationid td.isic-study-segmentations-content-imageid font-family monospace
Tweak Study detail table layout
Tweak Study detail table layout
Stylus
apache-2.0
ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive
stylus
## Code Before: content-margin = 20px .isic-study-users-content .isic-study-featureset-content .isic-study-segmentations-content margin-left content-margin .isic-study-users-content .isic-study-segmentations-content max-height 200px overflow-y auto .isic-study-users-content ul margin-bottom 0px .isic-study-segmentations-content .isic-study-segmentations-content-name width 110px .isic-study-segmentations-content-segmentationid width 210px .isic-study-segmentations-content-imageid width 210px ## Instruction: Tweak Study detail table layout ## Code After: content-margin = 20px .isic-study-users-content .isic-study-featureset-content .isic-study-segmentations-content margin-left content-margin .isic-study-users-content .isic-study-segmentations-content display inline-block max-height 200px overflow-y auto .isic-study-users-content ul margin-bottom 0px .isic-study-segmentations-content .isic-study-segmentations-content-name width 110px .isic-study-segmentations-content-segmentationid .isic-study-segmentations-content-imageid width 220px td.isic-study-segmentations-content-segmentationid td.isic-study-segmentations-content-imageid font-family monospace
content-margin = 20px .isic-study-users-content .isic-study-featureset-content .isic-study-segmentations-content margin-left content-margin .isic-study-users-content .isic-study-segmentations-content + display inline-block max-height 200px overflow-y auto .isic-study-users-content ul margin-bottom 0px .isic-study-segmentations-content .isic-study-segmentations-content-name width 110px .isic-study-segmentations-content-segmentationid - width 210px .isic-study-segmentations-content-imageid - width 210px ? ^ + width 220px ? ^ + td.isic-study-segmentations-content-segmentationid + td.isic-study-segmentations-content-imageid + font-family monospace
7
0.318182
5
2
a9a080d805dbb82c1183d39ed56d26d1bda0469e
src/Path/DefaultPathProcessor.php
src/Path/DefaultPathProcessor.php
<?php namespace Josegonzalez\Upload\Path; use Cake\Utility\Hash; use LogicException; class DefaultPathProcessor { public function __invoke($table, $entity, $field, $settings) { $defaultPath = 'webroot{DS}files{DS}{model}{DS}{field}{DS}'; $path = Hash::get($settings, 'path', $defaultPath); $replacements = [ '{primaryKey}' => $entity->get($table->primaryKey()), '{model}' => $table->alias(), '{field}' => $field, '{time}' => time(), '{microtime}' => microtime(), '{DS}' => DIRECTORY_SEPARATOR, ]; return str_replace( array_keys($replacements), array_values($replacements), $path ); } }
<?php namespace Josegonzalez\Upload\Path; use Cake\Utility\Hash; use LogicException; class DefaultPathProcessor { public function __invoke($table, $entity, $field, $settings) { $defaultPath = 'webroot{DS}files{DS}{model}{DS}{field}{DS}'; $path = Hash::get($settings, 'path', $defaultPath); if (strpos($path, '{primaryKey}') !== false) { if ($entity->isNew()) { throw new LogicException('{primaryKey} substitution not allowed for new entities'); } if (is_array($table->primaryKey())) { throw new LogicException('{primaryKey} substitution not valid for composite primary keys'); } } $replacements = [ '{primaryKey}' => $entity->get($table->primaryKey()), '{model}' => $table->alias(), '{field}' => $field, '{time}' => time(), '{microtime}' => microtime(), '{DS}' => DIRECTORY_SEPARATOR, ]; return str_replace( array_keys($replacements), array_values($replacements), $path ); } }
Handle case where primaryKey isn't a valid subsitution
Handle case where primaryKey isn't a valid subsitution
PHP
mit
josegonzalez/cakephp-upload,Phillaf/cakephp-upload
php
## Code Before: <?php namespace Josegonzalez\Upload\Path; use Cake\Utility\Hash; use LogicException; class DefaultPathProcessor { public function __invoke($table, $entity, $field, $settings) { $defaultPath = 'webroot{DS}files{DS}{model}{DS}{field}{DS}'; $path = Hash::get($settings, 'path', $defaultPath); $replacements = [ '{primaryKey}' => $entity->get($table->primaryKey()), '{model}' => $table->alias(), '{field}' => $field, '{time}' => time(), '{microtime}' => microtime(), '{DS}' => DIRECTORY_SEPARATOR, ]; return str_replace( array_keys($replacements), array_values($replacements), $path ); } } ## Instruction: Handle case where primaryKey isn't a valid subsitution ## Code After: <?php namespace Josegonzalez\Upload\Path; use Cake\Utility\Hash; use LogicException; class DefaultPathProcessor { public function __invoke($table, $entity, $field, $settings) { $defaultPath = 'webroot{DS}files{DS}{model}{DS}{field}{DS}'; $path = Hash::get($settings, 'path', $defaultPath); if (strpos($path, '{primaryKey}') !== false) { if ($entity->isNew()) { throw new LogicException('{primaryKey} substitution not allowed for new entities'); } if (is_array($table->primaryKey())) { throw new LogicException('{primaryKey} substitution not valid for composite primary keys'); } } $replacements = [ '{primaryKey}' => $entity->get($table->primaryKey()), '{model}' => $table->alias(), '{field}' => $field, '{time}' => time(), '{microtime}' => microtime(), '{DS}' => DIRECTORY_SEPARATOR, ]; return str_replace( array_keys($replacements), array_values($replacements), $path ); } }
<?php namespace Josegonzalez\Upload\Path; use Cake\Utility\Hash; use LogicException; class DefaultPathProcessor { public function __invoke($table, $entity, $field, $settings) { $defaultPath = 'webroot{DS}files{DS}{model}{DS}{field}{DS}'; $path = Hash::get($settings, 'path', $defaultPath); + if (strpos($path, '{primaryKey}') !== false) { + if ($entity->isNew()) { + throw new LogicException('{primaryKey} substitution not allowed for new entities'); + } + if (is_array($table->primaryKey())) { + throw new LogicException('{primaryKey} substitution not valid for composite primary keys'); + } + } + $replacements = [ '{primaryKey}' => $entity->get($table->primaryKey()), '{model}' => $table->alias(), '{field}' => $field, '{time}' => time(), '{microtime}' => microtime(), '{DS}' => DIRECTORY_SEPARATOR, ]; return str_replace( array_keys($replacements), array_values($replacements), $path ); } }
9
0.333333
9
0
ba7bc561e45534a95b7dd7e82b16226ed53894ff
README.md
README.md
This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven configuration located in [settings files](http://maven.apache.org/settings.htm) to your Gradle project. This allows projects to continue to leverage functionality provided by Maven such as mirrors as well use existing settings configuration to store encrypted repository authentication credentials. ## Mirrors The Maven settings plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any mirrors defined in a `settings.xml` with `<mirrorOf>` values of `*`, `external:*` or `central`. Existing `repositories {...}` definitions that match these identifiers will be removed. Credentials located in a matching `<server>` element are also used, and [decrypted](http://maven.apache.org/guides/mini/guide-encryption.html) if necessary. > **Note:** Currently only Basic Authentication using username and password is supported at this time. ## Configuration Configuration of the Maven settings plugin is done via the `mavenSettings {...}` configuration closure. The following properties are available. * `userSettingsFileName` - String representing the path of the file to be used as the user settings file. This defaults to `'$USER_HOME/.m2/settings.xml'`
[ ![Download](https://api.bintray.com/packages/markvieira/maven/gradle-maven-settings-plugin/images/download.svg) ](https://bintray.com/markvieira/maven/gradle-maven-settings-plugin/_latestVersion) # Gradle Maven settings plugin This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven configuration located in [settings files](http://maven.apache.org/settings.htm) to your Gradle project. This allows projects to continue to leverage functionality provided by Maven such as mirrors as well use existing settings configuration to store encrypted repository authentication credentials. ## Usage To use the plugin, add the following to your `build.gradle` file. buildscript { repositories { jcenter() } dependencies { classpath 'net.linguica.gradle:maven-settings-plugin:0.1' } } apply plugin: 'net.linguica.maven-settings' ## Mirrors The plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any mirrors defined in a `settings.xml` with `<mirrorOf>` values of `*`, `external:*` or `central`. Existing `repositories {...}` definitions that match these identifiers will be removed. Credentials located in a matching `<server>` element are also used, and [decrypted](http://maven.apache.org/guides/mini/guide-encryption.html) if necessary. > **Note:** Currently only Basic Authentication using username and password is supported at this time. ## Configuration Configuration of the Maven settings plugin is done via the `mavenSettings {...}` configuration closure. The following properties are available. * `userSettingsFileName` - String representing the path of the file to be used as the user settings file. This defaults to `'$USER_HOME/.m2/settings.xml'`
Add usage instructions to readme.
Add usage instructions to readme.
Markdown
apache-2.0
mark-vieira/gradle-maven-settings-plugin
markdown
## Code Before: This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven configuration located in [settings files](http://maven.apache.org/settings.htm) to your Gradle project. This allows projects to continue to leverage functionality provided by Maven such as mirrors as well use existing settings configuration to store encrypted repository authentication credentials. ## Mirrors The Maven settings plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any mirrors defined in a `settings.xml` with `<mirrorOf>` values of `*`, `external:*` or `central`. Existing `repositories {...}` definitions that match these identifiers will be removed. Credentials located in a matching `<server>` element are also used, and [decrypted](http://maven.apache.org/guides/mini/guide-encryption.html) if necessary. > **Note:** Currently only Basic Authentication using username and password is supported at this time. ## Configuration Configuration of the Maven settings plugin is done via the `mavenSettings {...}` configuration closure. The following properties are available. * `userSettingsFileName` - String representing the path of the file to be used as the user settings file. This defaults to `'$USER_HOME/.m2/settings.xml'` ## Instruction: Add usage instructions to readme. ## Code After: [ ![Download](https://api.bintray.com/packages/markvieira/maven/gradle-maven-settings-plugin/images/download.svg) ](https://bintray.com/markvieira/maven/gradle-maven-settings-plugin/_latestVersion) # Gradle Maven settings plugin This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven configuration located in [settings files](http://maven.apache.org/settings.htm) to your Gradle project. This allows projects to continue to leverage functionality provided by Maven such as mirrors as well use existing settings configuration to store encrypted repository authentication credentials. ## Usage To use the plugin, add the following to your `build.gradle` file. buildscript { repositories { jcenter() } dependencies { classpath 'net.linguica.gradle:maven-settings-plugin:0.1' } } apply plugin: 'net.linguica.maven-settings' ## Mirrors The plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any mirrors defined in a `settings.xml` with `<mirrorOf>` values of `*`, `external:*` or `central`. Existing `repositories {...}` definitions that match these identifiers will be removed. Credentials located in a matching `<server>` element are also used, and [decrypted](http://maven.apache.org/guides/mini/guide-encryption.html) if necessary. > **Note:** Currently only Basic Authentication using username and password is supported at this time. ## Configuration Configuration of the Maven settings plugin is done via the `mavenSettings {...}` configuration closure. The following properties are available. * `userSettingsFileName` - String representing the path of the file to be used as the user settings file. This defaults to `'$USER_HOME/.m2/settings.xml'`
+ [ ![Download](https://api.bintray.com/packages/markvieira/maven/gradle-maven-settings-plugin/images/download.svg) ](https://bintray.com/markvieira/maven/gradle-maven-settings-plugin/_latestVersion) + + # Gradle Maven settings plugin This Gradle plugin provides a migration path for projects coming from a Maven ecosystem. It exposes standard Maven configuration located in [settings files](http://maven.apache.org/settings.htm) to your Gradle project. This allows projects to continue to leverage functionality provided by Maven such as mirrors as well use existing settings configuration to store encrypted repository authentication credentials. + ## Usage + To use the plugin, add the following to your `build.gradle` file. + + buildscript { + repositories { + jcenter() + } + + dependencies { + classpath 'net.linguica.gradle:maven-settings-plugin:0.1' + } + } + + apply plugin: 'net.linguica.maven-settings' + ## Mirrors - The Maven settings plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any ? --------------- + The plugin exposes Maven-like mirror capabilities. The plugin will properly register and enforce any mirrors defined in a `settings.xml` with `<mirrorOf>` values of `*`, `external:*` or `central`. Existing `repositories {...}` definitions that match these identifiers will be removed. Credentials located in a matching `<server>` element are also used, and [decrypted](http://maven.apache.org/guides/mini/guide-encryption.html) if necessary. > **Note:** Currently only Basic Authentication using username and password is supported at this time. ## Configuration Configuration of the Maven settings plugin is done via the `mavenSettings {...}` configuration closure. The following properties are available. * `userSettingsFileName` - String representing the path of the file to be used as the user settings file. This defaults to `'$USER_HOME/.m2/settings.xml'`
20
1
19
1
808c3063d93e1f8bbb65d1a761a60fd3352e7786
application/views/includes/credits.php
application/views/includes/credits.php
<hr> <footer> <div class="row"> <div class="col-md-6"> <p>&copy; Happy City</p> </div> <div class="col-md-6"> <p class="text-right">made with ♥ at <a href="http://hacktm.ro">HackTM 2015</a></p> </div> </div> </footer>
<hr> <footer> <div class="row"> <div class="col-md-6"> <p>&copy; Happy City &midot; <a href="/welcome/privacy">Privacy</a></p> </div> <div class="col-md-6"> <p class="text-right">made with ♥ at <a href="http://hacktm.ro">HackTM 2015</a></p> </div> </div> </footer>
Add privacy link in footer
Add privacy link in footer
PHP
mit
hacktm15/happycity,hacktm15/happycity,hacktm15/happycity,hacktm15/happycity
php
## Code Before: <hr> <footer> <div class="row"> <div class="col-md-6"> <p>&copy; Happy City</p> </div> <div class="col-md-6"> <p class="text-right">made with ♥ at <a href="http://hacktm.ro">HackTM 2015</a></p> </div> </div> </footer> ## Instruction: Add privacy link in footer ## Code After: <hr> <footer> <div class="row"> <div class="col-md-6"> <p>&copy; Happy City &midot; <a href="/welcome/privacy">Privacy</a></p> </div> <div class="col-md-6"> <p class="text-right">made with ♥ at <a href="http://hacktm.ro">HackTM 2015</a></p> </div> </div> </footer>
<hr> <footer> <div class="row"> <div class="col-md-6"> - <p>&copy; Happy City</p> + <p>&copy; Happy City &midot; <a href="/welcome/privacy">Privacy</a></p> </div> <div class="col-md-6"> <p class="text-right">made with ♥ at <a href="http://hacktm.ro">HackTM 2015</a></p> </div> </div> </footer>
2
0.181818
1
1
c1ccdddf0c6777162375926e13e5c3828b14527c
grunt/config/requirejs.coffee
grunt/config/requirejs.coffee
module.exports = (grunt, options) -> return { options: baseUrl: '<%= build %>/js' exclude: ['coffee-script'] stubModules: ['cs/cs'] mainConfigFile: '<%= build %>/js/app/config.js' optimize: 'uglify2' generateSourceMaps: true preserveLicenseComments: false findNestedDependencies: true useSourceUrl: true app: options: include: ['app/main'] out: '<%= build %>/js/bundle.js' embed: options: include: ['app/main-embed'] out: '<%= build %>/js/embed.js' }
module.exports = (grunt, options) -> return { options: baseUrl: '<%= build %>/js' exclude: ['coffee-script'] stubModules: ['cs/cs'] mainConfigFile: '<%= build %>/js/app/config.js' optimize: 'uglify2' optimizeAllPluginResources: true generateSourceMaps: true preserveLicenseComments: false findNestedDependencies: true useSourceUrl: false app: options: include: ['app/main'] out: '<%= build %>/js/bundle.js' embed: options: include: ['app/main-embed'] out: '<%= build %>/js/embed.js' }
Make source maps work in Sentry.
Make source maps work in Sentry. Sentry can't seem to handle the unminified, concatenated eval'd version of the bundle. Minification loses the js -> coffee mapping step, but the js stack traces and sources are clear enough.
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,City-of-Helsinki/servicemap,City-of-Helsinki/servicemap
coffeescript
## Code Before: module.exports = (grunt, options) -> return { options: baseUrl: '<%= build %>/js' exclude: ['coffee-script'] stubModules: ['cs/cs'] mainConfigFile: '<%= build %>/js/app/config.js' optimize: 'uglify2' generateSourceMaps: true preserveLicenseComments: false findNestedDependencies: true useSourceUrl: true app: options: include: ['app/main'] out: '<%= build %>/js/bundle.js' embed: options: include: ['app/main-embed'] out: '<%= build %>/js/embed.js' } ## Instruction: Make source maps work in Sentry. Sentry can't seem to handle the unminified, concatenated eval'd version of the bundle. Minification loses the js -> coffee mapping step, but the js stack traces and sources are clear enough. ## Code After: module.exports = (grunt, options) -> return { options: baseUrl: '<%= build %>/js' exclude: ['coffee-script'] stubModules: ['cs/cs'] mainConfigFile: '<%= build %>/js/app/config.js' optimize: 'uglify2' optimizeAllPluginResources: true generateSourceMaps: true preserveLicenseComments: false findNestedDependencies: true useSourceUrl: false app: options: include: ['app/main'] out: '<%= build %>/js/bundle.js' embed: options: include: ['app/main-embed'] out: '<%= build %>/js/embed.js' }
module.exports = (grunt, options) -> return { options: baseUrl: '<%= build %>/js' exclude: ['coffee-script'] stubModules: ['cs/cs'] mainConfigFile: '<%= build %>/js/app/config.js' optimize: 'uglify2' + optimizeAllPluginResources: true generateSourceMaps: true preserveLicenseComments: false findNestedDependencies: true - useSourceUrl: true ? ^^^ + useSourceUrl: false ? ^^^^ app: options: include: ['app/main'] out: '<%= build %>/js/bundle.js' embed: options: include: ['app/main-embed'] out: '<%= build %>/js/embed.js' }
3
0.142857
2
1
cb0b1930955ac4613f42880a66de3ed8f0b229af
lib/model/doctrine/GtuTable.class.php
lib/model/doctrine/GtuTable.class.php
<?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class GtuTable extends DarwinTable { /* function witch return an array of countries sorted by id @ListId an array of Id */ public function getCountries($listId) { $q = Doctrine_Query::create()-> from('TagGroups t')-> innerJoin('t.Gtu g')-> orderBy('g.id')-> AndWhere('t.sub_group_name = ?','country')-> WhereIn('g.id',$listId); $result = $q->execute() ; $countries = array() ; foreach($result as $tag) { $str = '<ul class="country_tags">'; $tags = explode(";",$tag->getTagValue()); foreach($tags as $value) if (strlen($value)) $str .= '<li>' . trim($value).'</li>'; $str .= '</ul><div class="clear" />'; $countries[$tag->getGtuRef()] = $str ; } return $countries ; } }
<?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class GtuTable extends DarwinTable { /* function witch return an array of countries sorted by id @ListId an array of Id */ public function getCountries($listId) { if(empty($listId)) return array(); $q = Doctrine_Query::create()-> from('TagGroups t')-> innerJoin('t.Gtu g')-> orderBy('g.id')-> AndWhere('t.sub_group_name = ?','country')-> WhereIn('g.id',$listId); $result = $q->execute() ; $countries = array() ; foreach($result as $tag) { $str = '<ul class="country_tags">'; $tags = explode(";",$tag->getTagValue()); foreach($tags as $value) if (strlen($value)) $str .= '<li>' . trim($value).'</li>'; $str .= '</ul><div class="clear" />'; $countries[$tag->getGtuRef()] = $str ; } return $countries ; } }
Correct pbm with empty gtu
Correct pbm with empty gtu
PHP
agpl-3.0
naturalsciences/Darwin,naturalsciences/Darwin,naturalsciences/Darwin,eMerzh/Darwin,eMerzh/Darwin,eMerzh/Darwin
php
## Code Before: <?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class GtuTable extends DarwinTable { /* function witch return an array of countries sorted by id @ListId an array of Id */ public function getCountries($listId) { $q = Doctrine_Query::create()-> from('TagGroups t')-> innerJoin('t.Gtu g')-> orderBy('g.id')-> AndWhere('t.sub_group_name = ?','country')-> WhereIn('g.id',$listId); $result = $q->execute() ; $countries = array() ; foreach($result as $tag) { $str = '<ul class="country_tags">'; $tags = explode(";",$tag->getTagValue()); foreach($tags as $value) if (strlen($value)) $str .= '<li>' . trim($value).'</li>'; $str .= '</ul><div class="clear" />'; $countries[$tag->getGtuRef()] = $str ; } return $countries ; } } ## Instruction: Correct pbm with empty gtu ## Code After: <?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class GtuTable extends DarwinTable { /* function witch return an array of countries sorted by id @ListId an array of Id */ public function getCountries($listId) { if(empty($listId)) return array(); $q = Doctrine_Query::create()-> from('TagGroups t')-> innerJoin('t.Gtu g')-> orderBy('g.id')-> AndWhere('t.sub_group_name = ?','country')-> WhereIn('g.id',$listId); $result = $q->execute() ; $countries = array() ; foreach($result as $tag) { $str = '<ul class="country_tags">'; $tags = explode(";",$tag->getTagValue()); foreach($tags as $value) if (strlen($value)) $str .= '<li>' . trim($value).'</li>'; $str .= '</ul><div class="clear" />'; $countries[$tag->getGtuRef()] = $str ; } return $countries ; } }
<?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class GtuTable extends DarwinTable { /* function witch return an array of countries sorted by id @ListId an array of Id */ public function getCountries($listId) { + if(empty($listId)) return array(); $q = Doctrine_Query::create()-> from('TagGroups t')-> innerJoin('t.Gtu g')-> orderBy('g.id')-> AndWhere('t.sub_group_name = ?','country')-> WhereIn('g.id',$listId); $result = $q->execute() ; $countries = array() ; foreach($result as $tag) { $str = '<ul class="country_tags">'; $tags = explode(";",$tag->getTagValue()); foreach($tags as $value) if (strlen($value)) $str .= '<li>' . trim($value).'</li>'; $str .= '</ul><div class="clear" />'; $countries[$tag->getGtuRef()] = $str ; } return $countries ; } }
1
0.03125
1
0
102ba508567b1b23039a56eb32caf59c1397f693
tox.ini
tox.ini
[tox] envlist = {py27,py34,py35,py36}-pyang{16,17,171,172,173}, pep8, pylint [testenv] deps = pyang16: pyang == 1.6 pyang17: pyang == 1.7 pyang171: pyang == 1.7.1 pyang172: pyang == 1.7.2 pyang173: pyang == 1.7.3 pytest == 3.2.3 pytest-cov == 2.5.1 commands = py.test \ --cov=yinsolidated.parser --cov-report=term-missing \ -v {posargs} \ test [testenv:pep8] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pep8 == 1.0.6 commands = pytest --pep8 -m pep8 yinsolidated test [testenv:pylint] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pylint == 0.7.1 commands = pytest --pylint -m pylint yinsolidated pytest --pylint -m pylint --pylint-rcfile=.pylintrc-tests test [travis] python = 3.6: py36, pep8, pylint
[tox] envlist = {py27,py34,py35,py36}-pyang{16,17,171,172,173}, pep8, pylint [testenv] deps = pyang16: pyang == 1.6 pyang17: pyang == 1.7 pyang171: pyang == 1.7.1 pyang172: pyang == 1.7.2 pyang173: pyang == 1.7.3 pytest == 3.2.3 pytest-cov == 2.5.1 commands = py.test \ --cov=yinsolidated.parser --cov-report=term-missing \ -v {posargs} \ test [testenv:pep8] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pep8 == 1.0.6 commands = pytest --pep8 -m pep8 yinsolidated test [testenv:pylint] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pylint == 0.12.3 pylint < 2.0 commands = pytest --pylint -m pylint yinsolidated pytest --pylint -m pylint --pylint-rcfile=.pylintrc-tests test [travis] python = 3.6: py36, pep8, pylint
Update pylint versions to try and fix Travis CI
Update pylint versions to try and fix Travis CI
INI
mit
128technology/yinsolidated
ini
## Code Before: [tox] envlist = {py27,py34,py35,py36}-pyang{16,17,171,172,173}, pep8, pylint [testenv] deps = pyang16: pyang == 1.6 pyang17: pyang == 1.7 pyang171: pyang == 1.7.1 pyang172: pyang == 1.7.2 pyang173: pyang == 1.7.3 pytest == 3.2.3 pytest-cov == 2.5.1 commands = py.test \ --cov=yinsolidated.parser --cov-report=term-missing \ -v {posargs} \ test [testenv:pep8] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pep8 == 1.0.6 commands = pytest --pep8 -m pep8 yinsolidated test [testenv:pylint] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pylint == 0.7.1 commands = pytest --pylint -m pylint yinsolidated pytest --pylint -m pylint --pylint-rcfile=.pylintrc-tests test [travis] python = 3.6: py36, pep8, pylint ## Instruction: Update pylint versions to try and fix Travis CI ## Code After: [tox] envlist = {py27,py34,py35,py36}-pyang{16,17,171,172,173}, pep8, pylint [testenv] deps = pyang16: pyang == 1.6 pyang17: pyang == 1.7 pyang171: pyang == 1.7.1 pyang172: pyang == 1.7.2 pyang173: pyang == 1.7.3 pytest == 3.2.3 pytest-cov == 2.5.1 commands = py.test \ --cov=yinsolidated.parser --cov-report=term-missing \ -v {posargs} \ test [testenv:pep8] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pep8 == 1.0.6 commands = pytest --pep8 -m pep8 yinsolidated test [testenv:pylint] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pylint == 0.12.3 pylint < 2.0 commands = pytest --pylint -m pylint yinsolidated pytest --pylint -m pylint --pylint-rcfile=.pylintrc-tests test [travis] python = 3.6: py36, pep8, pylint
[tox] envlist = {py27,py34,py35,py36}-pyang{16,17,171,172,173}, pep8, pylint [testenv] deps = pyang16: pyang == 1.6 pyang17: pyang == 1.7 pyang171: pyang == 1.7.1 pyang172: pyang == 1.7.2 pyang173: pyang == 1.7.3 pytest == 3.2.3 pytest-cov == 2.5.1 commands = py.test \ --cov=yinsolidated.parser --cov-report=term-missing \ -v {posargs} \ test [testenv:pep8] deps = pyang == 1.7.3 pytest == 3.2.3 pytest-pep8 == 1.0.6 commands = pytest --pep8 -m pep8 yinsolidated test [testenv:pylint] deps = pyang == 1.7.3 pytest == 3.2.3 - pytest-pylint == 0.7.1 ? ^ ^ + pytest-pylint == 0.12.3 ? ^^ ^ + pylint < 2.0 commands = pytest --pylint -m pylint yinsolidated pytest --pylint -m pylint --pylint-rcfile=.pylintrc-tests test [travis] python = 3.6: py36, pep8, pylint
3
0.068182
2
1
078dd9752d27dde7f4e05aa70d47ce5324dc9ac8
test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <streambuf> // template <class charT, class traits = char_traits<charT> > // class basic_streambuf; // void pbump(int n); // // REQUIRES: long_tests #include <sstream> #include <cassert> #include "test_macros.h" struct SB : std::stringbuf { SB() : std::stringbuf(std::ios::ate|std::ios::out) { } const char* pubpbase() const { return pbase(); } const char* pubpptr() const { return pptr(); } }; int main() { #ifndef TEST_HAS_NO_EXCEPTIONS try { #endif std::string str(2147483648, 'a'); SB sb; sb.str(str); assert(sb.pubpbase() <= sb.pubpptr()); #ifndef TEST_HAS_NO_EXCEPTIONS } catch (const std::bad_alloc &) {} #endif }
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <streambuf> // template <class charT, class traits = char_traits<charT> > // class basic_streambuf; // void pbump(int n); // // REQUIRES: long_tests #include <sstream> #include <cassert> #include "test_macros.h" struct SB : std::stringbuf { SB() : std::stringbuf(std::ios::ate|std::ios::out) { } const char* pubpbase() const { return pbase(); } const char* pubpptr() const { return pptr(); } }; int main() { #ifndef TEST_HAS_NO_EXCEPTIONS try { #endif std::string str(2147483648, 'a'); SB sb; sb.str(str); assert(sb.pubpbase() <= sb.pubpptr()); #ifndef TEST_HAS_NO_EXCEPTIONS } catch (const std::length_error &) {} // maybe the string can't take 2GB catch (const std::bad_alloc &) {} // maybe we don't have enough RAM #endif }
Add a catch for std::length_error for the case where the string can't handle 2GB. (like say 32-bit big-endian)
Add a catch for std::length_error for the case where the string can't handle 2GB. (like say 32-bit big-endian) git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@325147 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx
c++
## Code Before: //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <streambuf> // template <class charT, class traits = char_traits<charT> > // class basic_streambuf; // void pbump(int n); // // REQUIRES: long_tests #include <sstream> #include <cassert> #include "test_macros.h" struct SB : std::stringbuf { SB() : std::stringbuf(std::ios::ate|std::ios::out) { } const char* pubpbase() const { return pbase(); } const char* pubpptr() const { return pptr(); } }; int main() { #ifndef TEST_HAS_NO_EXCEPTIONS try { #endif std::string str(2147483648, 'a'); SB sb; sb.str(str); assert(sb.pubpbase() <= sb.pubpptr()); #ifndef TEST_HAS_NO_EXCEPTIONS } catch (const std::bad_alloc &) {} #endif } ## Instruction: Add a catch for std::length_error for the case where the string can't handle 2GB. (like say 32-bit big-endian) git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@325147 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <streambuf> // template <class charT, class traits = char_traits<charT> > // class basic_streambuf; // void pbump(int n); // // REQUIRES: long_tests #include <sstream> #include <cassert> #include "test_macros.h" struct SB : std::stringbuf { SB() : std::stringbuf(std::ios::ate|std::ios::out) { } const char* pubpbase() const { return pbase(); } const char* pubpptr() const { return pptr(); } }; int main() { #ifndef TEST_HAS_NO_EXCEPTIONS try { #endif std::string str(2147483648, 'a'); SB sb; sb.str(str); assert(sb.pubpbase() <= sb.pubpptr()); #ifndef TEST_HAS_NO_EXCEPTIONS } catch (const std::length_error &) {} // maybe the string can't take 2GB catch (const std::bad_alloc &) {} // maybe we don't have enough RAM #endif }
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <streambuf> // template <class charT, class traits = char_traits<charT> > // class basic_streambuf; // void pbump(int n); // // REQUIRES: long_tests #include <sstream> #include <cassert> #include "test_macros.h" struct SB : std::stringbuf { SB() : std::stringbuf(std::ios::ate|std::ios::out) { } const char* pubpbase() const { return pbase(); } const char* pubpptr() const { return pptr(); } }; int main() { #ifndef TEST_HAS_NO_EXCEPTIONS try { #endif - std::string str(2147483648, 'a'); ? ^ + std::string str(2147483648, 'a'); ? ^^^^ - SB sb; - sb.str(str); + SB sb; + sb.str(str); - assert(sb.pubpbase() <= sb.pubpptr()); ? ^^ + assert(sb.pubpbase() <= sb.pubpptr()); ? ^^^^^^^^ #ifndef TEST_HAS_NO_EXCEPTIONS - } - catch (const std::bad_alloc &) {} + } + catch (const std::length_error &) {} // maybe the string can't take 2GB + catch (const std::bad_alloc &) {} // maybe we don't have enough RAM #endif }
13
0.302326
7
6
603653b84ca464f27d6b53636e48610f3910ab09
lib/ruby_git_hooks/case_clash.rb
lib/ruby_git_hooks/case_clash.rb
require "ruby_git_hooks" class CaseClashHook < RubyGitHooks::Hook def check downcase_hash = {} ls_files.map(&:strip).each do |filename| downcase_hash[filename.downcase] ||= [] downcase_hash[filename.downcase].push filename end okay = true downcase_hash.each do |_, filenames| if filenames.length > 1 okay = false STDERR.puts "Duplicate-except-case files detected: #{filenames.inspect}" end end okay end end
require "ruby_git_hooks" class CaseClashHook < RubyGitHooks::Hook def check downcase_hash = {} ls_files.map(&:strip).each do |filename| downcase_hash[filename.downcase] ||= [] downcase_hash[filename.downcase].push filename end okay = true downcase_hash.each do |_, filenames| if filenames.length > 1 okay = false STDERR.puts "Duplicate-except-case files detected: #{filenames.inspect}" end end raise "Case clash!" unless okay end end
Raise error if case clash occurs
Raise error if case clash occurs
Ruby
mit
onlive/ruby_git_hooks,onlive/ruby_git_hooks
ruby
## Code Before: require "ruby_git_hooks" class CaseClashHook < RubyGitHooks::Hook def check downcase_hash = {} ls_files.map(&:strip).each do |filename| downcase_hash[filename.downcase] ||= [] downcase_hash[filename.downcase].push filename end okay = true downcase_hash.each do |_, filenames| if filenames.length > 1 okay = false STDERR.puts "Duplicate-except-case files detected: #{filenames.inspect}" end end okay end end ## Instruction: Raise error if case clash occurs ## Code After: require "ruby_git_hooks" class CaseClashHook < RubyGitHooks::Hook def check downcase_hash = {} ls_files.map(&:strip).each do |filename| downcase_hash[filename.downcase] ||= [] downcase_hash[filename.downcase].push filename end okay = true downcase_hash.each do |_, filenames| if filenames.length > 1 okay = false STDERR.puts "Duplicate-except-case files detected: #{filenames.inspect}" end end raise "Case clash!" unless okay end end
require "ruby_git_hooks" class CaseClashHook < RubyGitHooks::Hook def check downcase_hash = {} ls_files.map(&:strip).each do |filename| downcase_hash[filename.downcase] ||= [] downcase_hash[filename.downcase].push filename end okay = true downcase_hash.each do |_, filenames| if filenames.length > 1 okay = false STDERR.puts "Duplicate-except-case files detected: #{filenames.inspect}" end end - okay + raise "Case clash!" unless okay end end
2
0.090909
1
1
6c04d9100a350835886a6d9a3e8c10577fcd18f7
src/main/webapp/portal/main/partials/footer.html
src/main/webapp/portal/main/partials/footer.html
<footer class="portal-footer-legal" role="contentinfo" ng-controller="SessionCheckController as sessionCheckCtrl"> <div class="portal-power"> <div id="portalPageFooterLinks" ng-controller="PortalFooterController as portalFooterCtrl"> <div> <span>© <p style="display:inline">{{date | date:'yyyy'}}</p>, Board of Regents of the <a href="http://www.wisconsin.edu/" target="_blank">University of Wisconsin System</a></span> </div> <div class='underline'> <a ng-href='{{sessionCheckCtrl.feedbackURL}}'><span>Feedback</span></a> <span>&nbsp;</span> <span ng-if='sessionCheckCtrl.whatsNewURL'><a ng-href='{{sessionCheckCtrl.whatsNewURL}}' target="_blank">What's New</a></span> <span ng-if='sessionCheckCtrl.whatsNewURL'>&nbsp;</span> <span><a ng-if='sessionCheckCtrl.back2ClassicURL' ng-href='{{sessionCheckCtrl.back2ClassicURL}}'>MyUW Classic</a></span> </div> <div> <span>{{sessionCheckCtrl.user.version}}</span><span> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> </div> </div> </div> </footer>
<footer class="portal-footer-legal" role="contentinfo" ng-controller="SessionCheckController as sessionCheckCtrl"> <div class="portal-power"> <div id="portalPageFooterLinks" ng-controller="PortalFooterController as portalFooterCtrl"> <div> <span>© <p style="display:inline">{{date | date:'yyyy'}}</p>, Board of Regents of the <a href="http://www.wisconsin.edu/" target="_blank">University of Wisconsin System</a></span> </div> <div class='underline'> <a ng-href='{{sessionCheckCtrl.feedbackURL}}'><span>Feedback</span></a> <span>&nbsp;</span> <span ng-if='sessionCheckCtrl.whatsNewURL'><a ng-href='{{sessionCheckCtrl.whatsNewURL}}' target="_blank">What's New</a></span> <span ng-if='sessionCheckCtrl.whatsNewURL'>&nbsp;</span> <span><a ng-if='sessionCheckCtrl.back2ClassicURL' ng-href='{{sessionCheckCtrl.back2ClassicURL}}'>MyUW Classic</a></span> </div> <div> <span>{{sessionCheckCtrl.user.version}}</span><span ng-show="sessionCheckCtrl.user.serverName"> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span ng-show="sessionCheckCtrl.user.sessionKey"> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> </div> </div> </div> </footer>
Hide '-' spans for serverName and/or sessionKey if not set
Hide '-' spans for serverName and/or sessionKey if not set
HTML
apache-2.0
smargovsky/uw-frame,jiayinjx/uw-frame,paulerickson/uw-frame,nblair/uw-frame,nblair/uw-frame,jiayinjx/uw-frame,thevoiceofzeke/uw-frame,nblair/uw-frame,apetro/uw-frame,paulerickson/uw-frame,thevoiceofzeke/uw-frame,UW-Madison-DoIT/uw-frame,uPortal-Project/uportal-app-framework,uPortal-Project/uportal-app-framework,UW-Madison-DoIT/uw-frame,thevoiceofzeke/uw-frame,smargovsky/uw-frame,paulerickson/uw-frame,UW-Madison-DoIT/uw-frame,uPortal-Project/uportal-app-framework,apetro/uw-frame,jiayinjx/uw-frame,smargovsky/uw-frame,smargovsky/uw-frame,apetro/uw-frame,nblair/uw-frame
html
## Code Before: <footer class="portal-footer-legal" role="contentinfo" ng-controller="SessionCheckController as sessionCheckCtrl"> <div class="portal-power"> <div id="portalPageFooterLinks" ng-controller="PortalFooterController as portalFooterCtrl"> <div> <span>© <p style="display:inline">{{date | date:'yyyy'}}</p>, Board of Regents of the <a href="http://www.wisconsin.edu/" target="_blank">University of Wisconsin System</a></span> </div> <div class='underline'> <a ng-href='{{sessionCheckCtrl.feedbackURL}}'><span>Feedback</span></a> <span>&nbsp;</span> <span ng-if='sessionCheckCtrl.whatsNewURL'><a ng-href='{{sessionCheckCtrl.whatsNewURL}}' target="_blank">What's New</a></span> <span ng-if='sessionCheckCtrl.whatsNewURL'>&nbsp;</span> <span><a ng-if='sessionCheckCtrl.back2ClassicURL' ng-href='{{sessionCheckCtrl.back2ClassicURL}}'>MyUW Classic</a></span> </div> <div> <span>{{sessionCheckCtrl.user.version}}</span><span> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> </div> </div> </div> </footer> ## Instruction: Hide '-' spans for serverName and/or sessionKey if not set ## Code After: <footer class="portal-footer-legal" role="contentinfo" ng-controller="SessionCheckController as sessionCheckCtrl"> <div class="portal-power"> <div id="portalPageFooterLinks" ng-controller="PortalFooterController as portalFooterCtrl"> <div> <span>© <p style="display:inline">{{date | date:'yyyy'}}</p>, Board of Regents of the <a href="http://www.wisconsin.edu/" target="_blank">University of Wisconsin System</a></span> </div> <div class='underline'> <a ng-href='{{sessionCheckCtrl.feedbackURL}}'><span>Feedback</span></a> <span>&nbsp;</span> <span ng-if='sessionCheckCtrl.whatsNewURL'><a ng-href='{{sessionCheckCtrl.whatsNewURL}}' target="_blank">What's New</a></span> <span ng-if='sessionCheckCtrl.whatsNewURL'>&nbsp;</span> <span><a ng-if='sessionCheckCtrl.back2ClassicURL' ng-href='{{sessionCheckCtrl.back2ClassicURL}}'>MyUW Classic</a></span> </div> <div> <span>{{sessionCheckCtrl.user.version}}</span><span ng-show="sessionCheckCtrl.user.serverName"> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span ng-show="sessionCheckCtrl.user.sessionKey"> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> </div> </div> </div> </footer>
<footer class="portal-footer-legal" role="contentinfo" ng-controller="SessionCheckController as sessionCheckCtrl"> <div class="portal-power"> <div id="portalPageFooterLinks" ng-controller="PortalFooterController as portalFooterCtrl"> <div> <span>© <p style="display:inline">{{date | date:'yyyy'}}</p>, Board of Regents of the <a href="http://www.wisconsin.edu/" target="_blank">University of Wisconsin System</a></span> </div> <div class='underline'> <a ng-href='{{sessionCheckCtrl.feedbackURL}}'><span>Feedback</span></a> <span>&nbsp;</span> <span ng-if='sessionCheckCtrl.whatsNewURL'><a ng-href='{{sessionCheckCtrl.whatsNewURL}}' target="_blank">What's New</a></span> <span ng-if='sessionCheckCtrl.whatsNewURL'>&nbsp;</span> <span><a ng-if='sessionCheckCtrl.back2ClassicURL' ng-href='{{sessionCheckCtrl.back2ClassicURL}}'>MyUW Classic</a></span> </div> <div> - <span>{{sessionCheckCtrl.user.version}}</span><span> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> + <span>{{sessionCheckCtrl.user.version}}</span><span ng-show="sessionCheckCtrl.user.serverName"> - </span><span>{{sessionCheckCtrl.user.serverName}}</span><span ng-show="sessionCheckCtrl.user.sessionKey"> - </span><span>{{sessionCheckCtrl.user.sessionKey}}</span></span> </div> </div> </div> </footer>
2
0.105263
1
1
bdf32ee2c428af62b59c9a5cbf4f3a9cf567ca7d
README.md
README.md
The goal is to add **FPGAs** to the [PlatformIO](http://platformio.org) opensource ecosystem This is a **working repo** for testing and developing building scripts, boards and platforms definition. When they are ready, they will be pull-requested to the PlatformIO main project # Documentation [The project documentation is located in the wiki](https://github.com/bqlabs/Platformio-FPGA/wiki/Platformio-FPGA-wiki-home) # Authors * Juan González (Obijuan) * Jesús Arroyo # License ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-cc-sa-small-150px.png) Licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/)
The goal is to add **FPGAs** to the [PlatformIO](http://platformio.org) opensource ecosystem This is a **working repo** for testing and developing building scripts, boards and platforms definition. When they are ready, they will be pull-requested to the PlatformIO main project # Documentation [The project documentation is located in the wiki](https://github.com/bqlabs/Platformio-FPGA/wiki/Platformio-FPGA-wiki-home) # Authors * Juan González (Obijuan) * Jesús Arroyo # License ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-150px.png) Licensed under the permissive Apache 2.0 licence, the same than platformio
Change lincese in readme.md file
Change lincese in readme.md file
Markdown
apache-2.0
bqlabs/Platformio-FPGA,bqlabs/Platformio-FPGA,Jesus89/Platformio-FPGA,Jesus89/Platformio-FPGA
markdown
## Code Before: The goal is to add **FPGAs** to the [PlatformIO](http://platformio.org) opensource ecosystem This is a **working repo** for testing and developing building scripts, boards and platforms definition. When they are ready, they will be pull-requested to the PlatformIO main project # Documentation [The project documentation is located in the wiki](https://github.com/bqlabs/Platformio-FPGA/wiki/Platformio-FPGA-wiki-home) # Authors * Juan González (Obijuan) * Jesús Arroyo # License ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-cc-sa-small-150px.png) Licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) ## Instruction: Change lincese in readme.md file ## Code After: The goal is to add **FPGAs** to the [PlatformIO](http://platformio.org) opensource ecosystem This is a **working repo** for testing and developing building scripts, boards and platforms definition. When they are ready, they will be pull-requested to the PlatformIO main project # Documentation [The project documentation is located in the wiki](https://github.com/bqlabs/Platformio-FPGA/wiki/Platformio-FPGA-wiki-home) # Authors * Juan González (Obijuan) * Jesús Arroyo # License ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-150px.png) Licensed under the permissive Apache 2.0 licence, the same than platformio
The goal is to add **FPGAs** to the [PlatformIO](http://platformio.org) opensource ecosystem This is a **working repo** for testing and developing building scripts, boards and platforms definition. When they are ready, they will be pull-requested to the PlatformIO main project # Documentation [The project documentation is located in the wiki](https://github.com/bqlabs/Platformio-FPGA/wiki/Platformio-FPGA-wiki-home) # Authors * Juan González (Obijuan) * Jesús Arroyo # License - ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-cc-sa-small-150px.png) ? ------------ + ![](https://github.com/bqlabs/Platformio-FPGA/raw/master/doc/images/bq-logo-150px.png) - Licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) + Licensed under the permissive Apache 2.0 licence, the same than platformio
4
0.25
2
2
322a095ce00eb7ecf164db57e5edf86f50e35fc4
addon-src/manifest.json
addon-src/manifest.json
{ "manifest_version": 2, "name": "Deep Thought Tabs", "version": "1.2", "content_security_policy": "script-src 'self'; object-src 'self'", "background": { "scripts": ["quotesTab.js"] }, "chrome_url_overrides": { "newtab": "quotesTab.html" }, "permissions": [ "https://api.flickr.com/*", "webRequest" ] }
{ "manifest_version": 2, "name" : "Deep Thought Tabs", "description": "Adds funny, profound observations (with images) to newly opened empty tabs.", "version" : "1.3", "author" : "TheCodeArtist", "homepage_url": "https://github.com/TheCodeArtist/deep-thought-tabs", "content_security_policy": "script-src 'self'; object-src 'self'", "background": { "scripts": ["quotesTab.js"] }, "chrome_url_overrides": { "newtab": "quotesTab.html" }, "permissions": [ "https://api.flickr.com/*", "webRequest" ] }
Update AddOn version to 1.3
Update AddOn version to 1.3
JSON
bsd-3-clause
TheCodeArtist/deep-thought-tabs,TheCodeArtist/deep-thought-tabs
json
## Code Before: { "manifest_version": 2, "name": "Deep Thought Tabs", "version": "1.2", "content_security_policy": "script-src 'self'; object-src 'self'", "background": { "scripts": ["quotesTab.js"] }, "chrome_url_overrides": { "newtab": "quotesTab.html" }, "permissions": [ "https://api.flickr.com/*", "webRequest" ] } ## Instruction: Update AddOn version to 1.3 ## Code After: { "manifest_version": 2, "name" : "Deep Thought Tabs", "description": "Adds funny, profound observations (with images) to newly opened empty tabs.", "version" : "1.3", "author" : "TheCodeArtist", "homepage_url": "https://github.com/TheCodeArtist/deep-thought-tabs", "content_security_policy": "script-src 'self'; object-src 'self'", "background": { "scripts": ["quotesTab.js"] }, "chrome_url_overrides": { "newtab": "quotesTab.html" }, "permissions": [ "https://api.flickr.com/*", "webRequest" ] }
{ "manifest_version": 2, - "name": "Deep Thought Tabs", + "name" : "Deep Thought Tabs", ? ++ + "description": "Adds funny, profound observations (with images) to newly opened empty tabs.", - "version": "1.2", ? ^ + "version" : "1.3", ? + ^ + "author" : "TheCodeArtist", + "homepage_url": "https://github.com/TheCodeArtist/deep-thought-tabs", "content_security_policy": "script-src 'self'; object-src 'self'", "background": { "scripts": ["quotesTab.js"] }, "chrome_url_overrides": { "newtab": "quotesTab.html" }, "permissions": [ "https://api.flickr.com/*", "webRequest" ] }
7
0.368421
5
2
19e12ddaf847a0d498a2eb39c1db15eded2511cd
spec/lib/nala/publisher_spec.rb
spec/lib/nala/publisher_spec.rb
class NoArgsClass include Nala::Publisher def call end end class OneArgClass include Nala::Publisher def call(_) end end RSpec.describe Nala::Publisher do describe ".call" do context "with no arguments" do it "instantiates and invokes #call" do instance = spy allow(NoArgsClass).to receive(:new) { instance } NoArgsClass.call expect(instance).to have_received(:call) end end context "with an argument" do it "instantiates and invokes #call with the same arguments" do instance = spy allow(OneArgClass).to receive(:new) { instance } OneArgClass.call(:hello) expect(instance).to have_received(:call).with(:hello) end end end end
class NoArgsClass include Nala::Publisher def call end end class OneArgClass include Nala::Publisher def call(_) end end class MultipleArgsClass include Nala::Publisher def call(_, _, _) end end RSpec.describe Nala::Publisher do describe ".call" do let(:instance) { spy } before { allow(use_case_class).to receive(:new) { instance } } context "with no arguments" do let(:use_case_class) { NoArgsClass } it "instantiates and invokes #call" do use_case_class.call expect(instance).to have_received(:call) end end context "with an argument" do let(:use_case_class) { OneArgClass } it "instantiates and invokes #call with the same argument" do use_case_class.call(:hello) expect(instance).to have_received(:call).with(:hello) end end context "with multiple arguments" do let(:use_case_class) { MultipleArgsClass } it "instantiates and invokes #call with the same arguments" do use_case_class.call(:hello, :there, :world) expect(instance).to have_received(:call).with(:hello, :there, :world) end end end end
Refactor specs to remove duplication
Refactor specs to remove duplication
Ruby
mit
loyaltylion/nala
ruby
## Code Before: class NoArgsClass include Nala::Publisher def call end end class OneArgClass include Nala::Publisher def call(_) end end RSpec.describe Nala::Publisher do describe ".call" do context "with no arguments" do it "instantiates and invokes #call" do instance = spy allow(NoArgsClass).to receive(:new) { instance } NoArgsClass.call expect(instance).to have_received(:call) end end context "with an argument" do it "instantiates and invokes #call with the same arguments" do instance = spy allow(OneArgClass).to receive(:new) { instance } OneArgClass.call(:hello) expect(instance).to have_received(:call).with(:hello) end end end end ## Instruction: Refactor specs to remove duplication ## Code After: class NoArgsClass include Nala::Publisher def call end end class OneArgClass include Nala::Publisher def call(_) end end class MultipleArgsClass include Nala::Publisher def call(_, _, _) end end RSpec.describe Nala::Publisher do describe ".call" do let(:instance) { spy } before { allow(use_case_class).to receive(:new) { instance } } context "with no arguments" do let(:use_case_class) { NoArgsClass } it "instantiates and invokes #call" do use_case_class.call expect(instance).to have_received(:call) end end context "with an argument" do let(:use_case_class) { OneArgClass } it "instantiates and invokes #call with the same argument" do use_case_class.call(:hello) expect(instance).to have_received(:call).with(:hello) end end context "with multiple arguments" do let(:use_case_class) { MultipleArgsClass } it "instantiates and invokes #call with the same arguments" do use_case_class.call(:hello, :there, :world) expect(instance).to have_received(:call).with(:hello, :there, :world) end end end end
class NoArgsClass include Nala::Publisher def call end end class OneArgClass include Nala::Publisher def call(_) end end + class MultipleArgsClass + include Nala::Publisher + + def call(_, _, _) + end + end + RSpec.describe Nala::Publisher do describe ".call" do + let(:instance) { spy } + + before { allow(use_case_class).to receive(:new) { instance } } + context "with no arguments" do + let(:use_case_class) { NoArgsClass } + it "instantiates and invokes #call" do + use_case_class.call - instance = spy - allow(NoArgsClass).to receive(:new) { instance } - - NoArgsClass.call expect(instance).to have_received(:call) end end context "with an argument" do + let(:use_case_class) { OneArgClass } - it "instantiates and invokes #call with the same arguments" do - instance = spy - allow(OneArgClass).to receive(:new) { instance } + it "instantiates and invokes #call with the same argument" do - OneArgClass.call(:hello) ? ^^ ^^^^ + use_case_class.call(:hello) ? ^^ ^^^^^^^ expect(instance).to have_received(:call).with(:hello) end end + + context "with multiple arguments" do + let(:use_case_class) { MultipleArgsClass } + + it "instantiates and invokes #call with the same arguments" do + use_case_class.call(:hello, :there, :world) + + expect(instance).to have_received(:call).with(:hello, :there, :world) + end + end end end
35
0.897436
27
8
e0f3c3d95d2d45daa4d47bc9830efc323233f85a
src/utils/query-string-encoder.coffee
src/utils/query-string-encoder.coffee
Qs = require('qs'); module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse(window.location.search.slice(1)) unless search Qs.parse(search)
Qs = require('qs'); keywords = true: true false: false null: null undefined: undefined decoder = (value) -> return parseFloat(value) if (/^(\d+|\d*\.\d+)$/.test(value)) return keywords[value] if (value of keywords) return value module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse( window.location.search.slice(1), decoder: decoder ) unless search Qs.parse(search)
Improve querystring serializer to detect numbers, nulls, undefined and booleans
Improve querystring serializer to detect numbers, nulls, undefined and booleans
CoffeeScript
mit
hull/hull-js,hull/hull-js,hull/hull-js
coffeescript
## Code Before: Qs = require('qs'); module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse(window.location.search.slice(1)) unless search Qs.parse(search) ## Instruction: Improve querystring serializer to detect numbers, nulls, undefined and booleans ## Code After: Qs = require('qs'); keywords = true: true false: false null: null undefined: undefined decoder = (value) -> return parseFloat(value) if (/^(\d+|\d*\.\d+)$/.test(value)) return keywords[value] if (value of keywords) return value module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> return Qs.parse( window.location.search.slice(1), decoder: decoder ) unless search Qs.parse(search)
Qs = require('qs'); + keywords = + true: true + false: false + null: null + undefined: undefined + + decoder = (value) -> + return parseFloat(value) if (/^(\d+|\d*\.\d+)$/.test(value)) + return keywords[value] if (value of keywords) + return value + + - module.exports = ? - + module.exports = encode : (data)-> Qs.stringify(data) decode : (search)-> - return Qs.parse(window.location.search.slice(1)) unless search + return Qs.parse( + window.location.search.slice(1), + decoder: decoder + ) unless search Qs.parse(search)
19
2.375
17
2
d5d92cef19ea0f2d723c394fed09643b0e9cd9a5
Deployment/CSF.Zpt.Documentation/Website/css/manpage_exports.css
Deployment/CSF.Zpt.Documentation/Website/css/manpage_exports.css
.main_page_content .manpage_export h2 { border-bottom: 1px solid #CDC998; text-transform: lowercase; } .main_page_content .manpage_export h2::first-letter { text-transform: uppercase; } .main_page_content .manpage_export a { display: none; } .main_page_content .manpage_export b { font-weight: bold; font-style: italic; } .main_page_content .manpage_export dt:first-child, .main_page_content .manpage_export dd:first-child { margin-top: 0; }
.main_page_content .manpage_export h2 { border-bottom: 1px solid #CDC998; text-transform: lowercase; } .main_page_content .manpage_export h2::first-letter { text-transform: uppercase; } .main_page_content .manpage_export a { display: none; } .main_page_content .manpage_export b { font-weight: bold; font-style: italic; } .main_page_content .manpage_export i { padding-bottom: 2px; border-bottom: 1px solid #555; font-family: 'Droid Sans Mono', monospace; } .main_page_content .manpage_export dt:first-child, .main_page_content .manpage_export dd:first-child { margin-top: 0; }
Improve styling for HTML exports of manpages
Improve styling for HTML exports of manpages
CSS
mit
csf-dev/ZPT-Sharp,csf-dev/ZPT-Sharp
css
## Code Before: .main_page_content .manpage_export h2 { border-bottom: 1px solid #CDC998; text-transform: lowercase; } .main_page_content .manpage_export h2::first-letter { text-transform: uppercase; } .main_page_content .manpage_export a { display: none; } .main_page_content .manpage_export b { font-weight: bold; font-style: italic; } .main_page_content .manpage_export dt:first-child, .main_page_content .manpage_export dd:first-child { margin-top: 0; } ## Instruction: Improve styling for HTML exports of manpages ## Code After: .main_page_content .manpage_export h2 { border-bottom: 1px solid #CDC998; text-transform: lowercase; } .main_page_content .manpage_export h2::first-letter { text-transform: uppercase; } .main_page_content .manpage_export a { display: none; } .main_page_content .manpage_export b { font-weight: bold; font-style: italic; } .main_page_content .manpage_export i { padding-bottom: 2px; border-bottom: 1px solid #555; font-family: 'Droid Sans Mono', monospace; } .main_page_content .manpage_export dt:first-child, .main_page_content .manpage_export dd:first-child { margin-top: 0; }
.main_page_content .manpage_export h2 { border-bottom: 1px solid #CDC998; text-transform: lowercase; } .main_page_content .manpage_export h2::first-letter { text-transform: uppercase; } .main_page_content .manpage_export a { display: none; } .main_page_content .manpage_export b { font-weight: bold; font-style: italic; } + .main_page_content .manpage_export i { + padding-bottom: 2px; + border-bottom: 1px solid #555; + font-family: 'Droid Sans Mono', monospace; + } .main_page_content .manpage_export dt:first-child, .main_page_content .manpage_export dd:first-child { margin-top: 0; }
5
0.277778
5
0
8124fe112c05b10a20b6eb915cfd5aeb449ce8ff
package.json
package.json
{ "description": "Local emulation of Content Delivery Networks.", "author": "Thomas Rientjes", "license": "MPL-2.0", "title": "Decentraleyes", "version": "1.3.7", "main": "lib/main.js", "homepage": "https://addons.mozilla.org/firefox/addon/decentraleyes", "name": "decentraleyes", "id": "jid1-BoFifL9Vbdl2zQ@jetpack", "permissions": { "multiprocess": true }, "engines": { "firefox": ">=38.0a1", "fennec": ">=38.0a1", "seamonkey": ">=2.0a1 <=2.46" } }
{ "description": "Local emulation of Content Delivery Networks.", "author": "Thomas Rientjes", "license": "MPL-2.0", "title": "Decentraleyes", "version": "1.3.7", "main": "lib/main.js", "homepage": "https://addons.mozilla.org/firefox/addon/decentraleyes", "name": "decentraleyes", "id": "jid1-BoFifL9Vbdl2zQ@jetpack", "permissions": { "multiprocess": true }, "engines": { "firefox": ">=38.0a1", "fennec": ">=38.0a1", "seamonkey": ">=2.0a1 <=2.46", "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}": ">=27.1.0b1" } }
Implement support for Pale Moon v27.1 and higher
Implement support for Pale Moon v27.1 and higher Implement support for Pale Moon v27.1 and higher
JSON
mpl-2.0
Synzvato/decentraleyes,Synzvato/decentraleyes
json
## Code Before: { "description": "Local emulation of Content Delivery Networks.", "author": "Thomas Rientjes", "license": "MPL-2.0", "title": "Decentraleyes", "version": "1.3.7", "main": "lib/main.js", "homepage": "https://addons.mozilla.org/firefox/addon/decentraleyes", "name": "decentraleyes", "id": "jid1-BoFifL9Vbdl2zQ@jetpack", "permissions": { "multiprocess": true }, "engines": { "firefox": ">=38.0a1", "fennec": ">=38.0a1", "seamonkey": ">=2.0a1 <=2.46" } } ## Instruction: Implement support for Pale Moon v27.1 and higher Implement support for Pale Moon v27.1 and higher ## Code After: { "description": "Local emulation of Content Delivery Networks.", "author": "Thomas Rientjes", "license": "MPL-2.0", "title": "Decentraleyes", "version": "1.3.7", "main": "lib/main.js", "homepage": "https://addons.mozilla.org/firefox/addon/decentraleyes", "name": "decentraleyes", "id": "jid1-BoFifL9Vbdl2zQ@jetpack", "permissions": { "multiprocess": true }, "engines": { "firefox": ">=38.0a1", "fennec": ">=38.0a1", "seamonkey": ">=2.0a1 <=2.46", "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}": ">=27.1.0b1" } }
{ "description": "Local emulation of Content Delivery Networks.", "author": "Thomas Rientjes", "license": "MPL-2.0", "title": "Decentraleyes", "version": "1.3.7", "main": "lib/main.js", "homepage": "https://addons.mozilla.org/firefox/addon/decentraleyes", "name": "decentraleyes", "id": "jid1-BoFifL9Vbdl2zQ@jetpack", "permissions": { "multiprocess": true }, "engines": { "firefox": ">=38.0a1", "fennec": ">=38.0a1", - "seamonkey": ">=2.0a1 <=2.46" + "seamonkey": ">=2.0a1 <=2.46", ? + + "{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}": ">=27.1.0b1" } }
3
0.157895
2
1
4b698f454d3dfe12f1aba635d6d577f46b6ca775
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded - sudo apt-get update -qq - sudo apt-get install -qq arduino-core arduino-mk - sudo apt-get install -qq -y gcc-arm-none-eabi - sudo pip install ino - git submodule update --init --recursive script: - make - npm test - make check-release notifications: irc: channels: - "chat.freenode.net#fbp" template: - "%{repository} (%{commit}) : %{message} : %{build_url}"
language: node_js node_js: - "0.10" before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded - sudo apt-get update -qq - sudo apt-get install -qq arduino-core arduino-mk - sudo apt-get install -qq -y gcc-arm-none-eabi - sudo pip install ino - git submodule update --init --recursive script: - make - npm test - make check-release notifications: irc: channels: - "chat.freenode.net#fbp" template: - "%{repository}@%{branch} (%{commit}) : %{message} : %{build_url}" on_success: change on_failure: change
Tweak Travis CI IRC notifiactions
Tweak Travis CI IRC notifiactions
YAML
mit
microflo/microflo,bergie/microflo,uwekamper/microflo-spiexperiment,microflo/microflo,rraallvv/microflo,microflo/microflo,bergie/microflo,bergie/microflo,uwekamper/microflo-spiexperiment,rraallvv/microflo,rraallvv/microflo,microflo/microflo,microflo/microflo,uwekamper/microflo-spiexperiment,rraallvv/microflo,microflo/microflo,uwekamper/microflo-spiexperiment,bergie/microflo
yaml
## Code Before: language: node_js node_js: - "0.10" before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded - sudo apt-get update -qq - sudo apt-get install -qq arduino-core arduino-mk - sudo apt-get install -qq -y gcc-arm-none-eabi - sudo pip install ino - git submodule update --init --recursive script: - make - npm test - make check-release notifications: irc: channels: - "chat.freenode.net#fbp" template: - "%{repository} (%{commit}) : %{message} : %{build_url}" ## Instruction: Tweak Travis CI IRC notifiactions ## Code After: language: node_js node_js: - "0.10" before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded - sudo apt-get update -qq - sudo apt-get install -qq arduino-core arduino-mk - sudo apt-get install -qq -y gcc-arm-none-eabi - sudo pip install ino - git submodule update --init --recursive script: - make - npm test - make check-release notifications: irc: channels: - "chat.freenode.net#fbp" template: - "%{repository}@%{branch} (%{commit}) : %{message} : %{build_url}" on_success: change on_failure: change
language: node_js node_js: - "0.10" before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded - sudo apt-get update -qq - sudo apt-get install -qq arduino-core arduino-mk - sudo apt-get install -qq -y gcc-arm-none-eabi - sudo pip install ino - git submodule update --init --recursive script: - make - npm test - make check-release notifications: irc: channels: - "chat.freenode.net#fbp" template: - - "%{repository} (%{commit}) : %{message} : %{build_url}" + - "%{repository}@%{branch} (%{commit}) : %{message} : %{build_url}" ? ++++++++++ + on_success: change + on_failure: change
4
0.173913
3
1
20892d95d2e4c68028f9442eb5cbc4373455447f
README.md
README.md
This is a game that has you quickly matching the inverse of shapes
This is a game that has you quickly matching the inverse of shapes This is an app written in Kotlin using the BlockLib library that was developed for Twistris. The Kotlin plugin is required to get this app running in AndroidStudio ##How to play - Press the big play button. - Tap the top area to carve a shape that will fit with the randomly generated bottom piece. - When timer finishes your shape will fall to meet the bottom shape. If the shapes fit together you proceed to the next round. - Repeat.
Update readme with the very basics
Update readme with the very basics
Markdown
apache-2.0
hotpodata/Blockelganger,hotpodata/Blockelganger
markdown
## Code Before: This is a game that has you quickly matching the inverse of shapes ## Instruction: Update readme with the very basics ## Code After: This is a game that has you quickly matching the inverse of shapes This is an app written in Kotlin using the BlockLib library that was developed for Twistris. The Kotlin plugin is required to get this app running in AndroidStudio ##How to play - Press the big play button. - Tap the top area to carve a shape that will fit with the randomly generated bottom piece. - When timer finishes your shape will fall to meet the bottom shape. If the shapes fit together you proceed to the next round. - Repeat.
This is a game that has you quickly matching the inverse of shapes + + This is an app written in Kotlin using the BlockLib library that was developed for Twistris. + + The Kotlin plugin is required to get this app running in AndroidStudio + + ##How to play + - Press the big play button. + - Tap the top area to carve a shape that will fit with the randomly generated bottom piece. + - When timer finishes your shape will fall to meet the bottom shape. If the shapes fit together you proceed to the next round. + - Repeat.
10
10
10
0
efcbe026f7c3b979afcc8eef16a68527d7a2f2d4
app/helpers/authentication_helper.rb
app/helpers/authentication_helper.rb
module AuthenticationHelper PUBLIC_ROUTES = { 'POST' => [ '/api/users', '/api/authenticate' ] } def authenticate_user if api_token.blank? json_error("API token required", 401) end @api_user = User.find_by_api_token(api_token) if @api_user.nil? json_error("Invalid API token", 401) end end def api_token @api_token ||= request['X-API-TOKEN'] || params[:api_token] end def require_authentication? route = PUBLIC_ROUTES[request.request_method] || [] !route.include?(request.path) end end
module AuthenticationHelper PUBLIC_ROUTES = { 'POST' => [ '/api/users', '/api/authenticate' ] } def authenticate_user if api_token.blank? json_error("API token required", 401) end @api_user = User.find_by_api_token(api_token) if @api_user.nil? json_error("Invalid API token", 401) end end def api_token @api_token ||= request.env['HTTP_X_API_TOKEN'] || params[:api_token] end def require_authentication? route = PUBLIC_ROUTES[request.request_method] || [] !route.include?(request.path) end end
Use a correct auth token from header
Use a correct auth token from header
Ruby
mit
sosedoff/reeder,sosedoff/reeder
ruby
## Code Before: module AuthenticationHelper PUBLIC_ROUTES = { 'POST' => [ '/api/users', '/api/authenticate' ] } def authenticate_user if api_token.blank? json_error("API token required", 401) end @api_user = User.find_by_api_token(api_token) if @api_user.nil? json_error("Invalid API token", 401) end end def api_token @api_token ||= request['X-API-TOKEN'] || params[:api_token] end def require_authentication? route = PUBLIC_ROUTES[request.request_method] || [] !route.include?(request.path) end end ## Instruction: Use a correct auth token from header ## Code After: module AuthenticationHelper PUBLIC_ROUTES = { 'POST' => [ '/api/users', '/api/authenticate' ] } def authenticate_user if api_token.blank? json_error("API token required", 401) end @api_user = User.find_by_api_token(api_token) if @api_user.nil? json_error("Invalid API token", 401) end end def api_token @api_token ||= request.env['HTTP_X_API_TOKEN'] || params[:api_token] end def require_authentication? route = PUBLIC_ROUTES[request.request_method] || [] !route.include?(request.path) end end
module AuthenticationHelper PUBLIC_ROUTES = { 'POST' => [ '/api/users', '/api/authenticate' ] } def authenticate_user if api_token.blank? json_error("API token required", 401) end @api_user = User.find_by_api_token(api_token) if @api_user.nil? json_error("Invalid API token", 401) end end def api_token - @api_token ||= request['X-API-TOKEN'] || params[:api_token] ? ^ ^ + @api_token ||= request.env['HTTP_X_API_TOKEN'] || params[:api_token] ? ++++ +++++ ^ ^ end def require_authentication? route = PUBLIC_ROUTES[request.request_method] || [] !route.include?(request.path) end end
2
0.068966
1
1
485695f7cde5fdf935ffcbcaa2b29d2961ce59ee
_includes/announcements.html
_includes/announcements.html
<div class=list-group> <div class=list-group-item><a href="http://bit.ly/17KHUSU">Register here</a> to attend the webinar titled <em>"How CHOP Created a Last Mile Solution for Clinical Research Data"</em> to learn more about Harvest on November 1, 2013 from 1-2 PM.</div> <div class=list-group-item>The Harvest manuscript has been <a href="http://jamia.bmj.com/content/early/2013/10/16/amiajnl-2013-001825.full">published</a> in the Journal of the American Medical Informatics Association (JAMIA). See other press and media about Harvest on our <a href="{{ site.baseurl }}resources/">resources</a> page.</div> <div class=list-group-item>Do you have any questions about Harvest? Want to live chat with the Harvest team? The Harvest site now has a <strong>chatroom</strong>! Simply enter your name and <a href="{{ site.baseurl }}chat/">start talking</a>.</div> </div>
<div class=list-group> <div class=list-group-item>The Harvest manuscript has been <a href="http://jamia.bmj.com/content/early/2013/10/16/amiajnl-2013-001825.full">published</a> in the Journal of the American Medical Informatics Association (JAMIA). See other press and media about Harvest on our <a href="{{ site.baseurl }}resources/">resources</a> page.</div> <div class=list-group-item>Do you have any questions about Harvest? Want to live chat with the Harvest team? The Harvest site now has a <strong>chatroom</strong>! Simply enter your name and <a href="{{ site.baseurl }}chat/">start talking</a>.</div> </div>
Remove Nov. 1 webinar announcement
Remove Nov. 1 webinar announcement
HTML
bsd-2-clause
chop-dbhi/harvest-site
html
## Code Before: <div class=list-group> <div class=list-group-item><a href="http://bit.ly/17KHUSU">Register here</a> to attend the webinar titled <em>"How CHOP Created a Last Mile Solution for Clinical Research Data"</em> to learn more about Harvest on November 1, 2013 from 1-2 PM.</div> <div class=list-group-item>The Harvest manuscript has been <a href="http://jamia.bmj.com/content/early/2013/10/16/amiajnl-2013-001825.full">published</a> in the Journal of the American Medical Informatics Association (JAMIA). See other press and media about Harvest on our <a href="{{ site.baseurl }}resources/">resources</a> page.</div> <div class=list-group-item>Do you have any questions about Harvest? Want to live chat with the Harvest team? The Harvest site now has a <strong>chatroom</strong>! Simply enter your name and <a href="{{ site.baseurl }}chat/">start talking</a>.</div> </div> ## Instruction: Remove Nov. 1 webinar announcement ## Code After: <div class=list-group> <div class=list-group-item>The Harvest manuscript has been <a href="http://jamia.bmj.com/content/early/2013/10/16/amiajnl-2013-001825.full">published</a> in the Journal of the American Medical Informatics Association (JAMIA). See other press and media about Harvest on our <a href="{{ site.baseurl }}resources/">resources</a> page.</div> <div class=list-group-item>Do you have any questions about Harvest? Want to live chat with the Harvest team? The Harvest site now has a <strong>chatroom</strong>! Simply enter your name and <a href="{{ site.baseurl }}chat/">start talking</a>.</div> </div>
<div class=list-group> - <div class=list-group-item><a href="http://bit.ly/17KHUSU">Register here</a> to attend the webinar titled <em>"How CHOP Created a Last Mile Solution for Clinical Research Data"</em> to learn more about Harvest on November 1, 2013 from 1-2 PM.</div> - <div class=list-group-item>The Harvest manuscript has been <a href="http://jamia.bmj.com/content/early/2013/10/16/amiajnl-2013-001825.full">published</a> in the Journal of the American Medical Informatics Association (JAMIA). See other press and media about Harvest on our <a href="{{ site.baseurl }}resources/">resources</a> page.</div> <div class=list-group-item>Do you have any questions about Harvest? Want to live chat with the Harvest team? The Harvest site now has a <strong>chatroom</strong>! Simply enter your name and <a href="{{ site.baseurl }}chat/">start talking</a>.</div> </div>
2
0.285714
0
2
255932d562fce2405c51c33d3fdc0ebd5efd2bd5
lib/assets/javascripts/new-dashboard/router/index.js
lib/assets/javascripts/new-dashboard/router/index.js
import Vue from 'vue'; import Router from 'vue-router'; // Pages import Home from 'new-dashboard/pages/Home'; import Solutions from 'new-dashboard/pages/Solutions'; import Maps from 'new-dashboard/pages/Maps'; import Data from 'new-dashboard/pages/Data'; Vue.use(Router); function getURLPrefix (userBaseURL) { return userBaseURL.replace(location.origin, ''); } const dashboardBaseURL = '/dashboard'; const baseRouterPrefix = `${getURLPrefix(window.CartoConfig.data.user_data.base_url)}${dashboardBaseURL}`; export default new Router({ base: baseRouterPrefix, mode: 'history', routes: [ { path: '/', name: 'home', component: Home }, { path: '/solutions', name: 'solutions', component: Solutions }, { path: '/visualizations', name: 'maps', component: Maps }, { path: '/tables', name: 'data', component: Data } ] });
import Vue from 'vue'; import Router from 'vue-router'; // Pages import Home from 'new-dashboard/pages/Home'; import Solutions from 'new-dashboard/pages/Solutions'; import Maps from 'new-dashboard/pages/Maps'; import Data from 'new-dashboard/pages/Data'; Vue.use(Router); function getURLPrefix (userBaseURL) { return userBaseURL.replace(location.origin, ''); } const dashboardBaseURL = '/dashboard'; const baseRouterPrefix = `${getURLPrefix(window.CartoConfig.data.user_data.base_url)}${dashboardBaseURL}`; const router = new Router({ base: baseRouterPrefix, mode: 'history', routes: [ { path: '/', name: 'home', component: Home, meta: { title: route => 'Home | CARTO' } }, { path: '/solutions', name: 'solutions', component: Solutions, meta: { title: route => 'Solutions | CARTO' } }, { path: '/visualizations', name: 'maps', component: Maps, meta: { title: route => 'Maps | CARTO' } }, { path: '/tables', name: 'data', component: Data, meta: { title: route => 'Data | CARTO' } } ] }); router.afterEach(to => { Vue.nextTick(() => { document.title = to.meta.title(to); }); }); export default router;
Change document.title on route change
Change document.title on route change
JavaScript
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
javascript
## Code Before: import Vue from 'vue'; import Router from 'vue-router'; // Pages import Home from 'new-dashboard/pages/Home'; import Solutions from 'new-dashboard/pages/Solutions'; import Maps from 'new-dashboard/pages/Maps'; import Data from 'new-dashboard/pages/Data'; Vue.use(Router); function getURLPrefix (userBaseURL) { return userBaseURL.replace(location.origin, ''); } const dashboardBaseURL = '/dashboard'; const baseRouterPrefix = `${getURLPrefix(window.CartoConfig.data.user_data.base_url)}${dashboardBaseURL}`; export default new Router({ base: baseRouterPrefix, mode: 'history', routes: [ { path: '/', name: 'home', component: Home }, { path: '/solutions', name: 'solutions', component: Solutions }, { path: '/visualizations', name: 'maps', component: Maps }, { path: '/tables', name: 'data', component: Data } ] }); ## Instruction: Change document.title on route change ## Code After: import Vue from 'vue'; import Router from 'vue-router'; // Pages import Home from 'new-dashboard/pages/Home'; import Solutions from 'new-dashboard/pages/Solutions'; import Maps from 'new-dashboard/pages/Maps'; import Data from 'new-dashboard/pages/Data'; Vue.use(Router); function getURLPrefix (userBaseURL) { return userBaseURL.replace(location.origin, ''); } const dashboardBaseURL = '/dashboard'; const baseRouterPrefix = `${getURLPrefix(window.CartoConfig.data.user_data.base_url)}${dashboardBaseURL}`; const router = new Router({ base: baseRouterPrefix, mode: 'history', routes: [ { path: '/', name: 'home', component: Home, meta: { title: route => 'Home | CARTO' } }, { path: '/solutions', name: 'solutions', component: Solutions, meta: { title: route => 'Solutions | CARTO' } }, { path: '/visualizations', name: 'maps', component: Maps, meta: { title: route => 'Maps | CARTO' } }, { path: '/tables', name: 'data', component: Data, meta: { title: route => 'Data | CARTO' } } ] }); router.afterEach(to => { Vue.nextTick(() => { document.title = to.meta.title(to); }); }); export default router;
import Vue from 'vue'; import Router from 'vue-router'; // Pages import Home from 'new-dashboard/pages/Home'; import Solutions from 'new-dashboard/pages/Solutions'; import Maps from 'new-dashboard/pages/Maps'; import Data from 'new-dashboard/pages/Data'; Vue.use(Router); function getURLPrefix (userBaseURL) { return userBaseURL.replace(location.origin, ''); } const dashboardBaseURL = '/dashboard'; const baseRouterPrefix = `${getURLPrefix(window.CartoConfig.data.user_data.base_url)}${dashboardBaseURL}`; - export default new Router({ + const router = new Router({ base: baseRouterPrefix, mode: 'history', routes: [ { path: '/', name: 'home', - component: Home + component: Home, ? + + meta: { + title: route => 'Home | CARTO' + } }, { path: '/solutions', name: 'solutions', - component: Solutions + component: Solutions, ? + + meta: { + title: route => 'Solutions | CARTO' + } }, { path: '/visualizations', name: 'maps', - component: Maps + component: Maps, ? + + meta: { + title: route => 'Maps | CARTO' + } }, { path: '/tables', name: 'data', - component: Data + component: Data, ? + + meta: { + title: route => 'Data | CARTO' + } } ] }); + + router.afterEach(to => { + Vue.nextTick(() => { + document.title = to.meta.title(to); + }); + }); + + export default router;
30
0.681818
25
5
cf76dccaef99ca8194ae3b3d7bee20df650b8e10
lib/govspeak/html_validator.rb
lib/govspeak/html_validator.rb
class Govspeak::HtmlValidator attr_reader :string def initialize(string, sanitization_options = {}) @string = string.dup.force_encoding(Encoding::UTF_8) @sanitization_options = sanitization_options end def invalid? !valid? end def valid? dirty_html = govspeak_to_html clean_html = Govspeak::HtmlSanitizer.new(dirty_html, @sanitization_options).sanitize normalise_html(dirty_html) == normalise_html(clean_html) end # Make whitespace in html tags consistent def normalise_html(html) Nokogiri::HTML.parse(html).to_s end def govspeak_to_html Govspeak::Document.new(string).to_html end end
class Govspeak::HtmlValidator attr_reader :govspeak_string def initialize(govspeak_string, sanitization_options = {}) @govspeak_string = govspeak_string.dup.force_encoding(Encoding::UTF_8) @sanitization_options = sanitization_options end def invalid? !valid? end def valid? dirty_html = govspeak_to_html clean_html = Govspeak::HtmlSanitizer.new(dirty_html, @sanitization_options).sanitize normalise_html(dirty_html) == normalise_html(clean_html) end # Make whitespace in html tags consistent def normalise_html(html) Nokogiri::HTML.parse(html).to_s end def govspeak_to_html Govspeak::Document.new(govspeak_string).to_html end end
Clarify that HtmlValidator takes a Govspeak string
Clarify that HtmlValidator takes a Govspeak string The name might lead you to think it takes HTML - that's what is being assumed in govuk_content_models.
Ruby
mit
alphagov/govspeak,met-office-lab/govspeak,met-office-lab/govspeak,alphagov/govspeak
ruby
## Code Before: class Govspeak::HtmlValidator attr_reader :string def initialize(string, sanitization_options = {}) @string = string.dup.force_encoding(Encoding::UTF_8) @sanitization_options = sanitization_options end def invalid? !valid? end def valid? dirty_html = govspeak_to_html clean_html = Govspeak::HtmlSanitizer.new(dirty_html, @sanitization_options).sanitize normalise_html(dirty_html) == normalise_html(clean_html) end # Make whitespace in html tags consistent def normalise_html(html) Nokogiri::HTML.parse(html).to_s end def govspeak_to_html Govspeak::Document.new(string).to_html end end ## Instruction: Clarify that HtmlValidator takes a Govspeak string The name might lead you to think it takes HTML - that's what is being assumed in govuk_content_models. ## Code After: class Govspeak::HtmlValidator attr_reader :govspeak_string def initialize(govspeak_string, sanitization_options = {}) @govspeak_string = govspeak_string.dup.force_encoding(Encoding::UTF_8) @sanitization_options = sanitization_options end def invalid? !valid? end def valid? dirty_html = govspeak_to_html clean_html = Govspeak::HtmlSanitizer.new(dirty_html, @sanitization_options).sanitize normalise_html(dirty_html) == normalise_html(clean_html) end # Make whitespace in html tags consistent def normalise_html(html) Nokogiri::HTML.parse(html).to_s end def govspeak_to_html Govspeak::Document.new(govspeak_string).to_html end end
class Govspeak::HtmlValidator - attr_reader :string + attr_reader :govspeak_string ? +++++++++ - def initialize(string, sanitization_options = {}) + def initialize(govspeak_string, sanitization_options = {}) ? +++++++++ - @string = string.dup.force_encoding(Encoding::UTF_8) + @govspeak_string = govspeak_string.dup.force_encoding(Encoding::UTF_8) ? +++++++++ +++++++++ @sanitization_options = sanitization_options end def invalid? !valid? end def valid? dirty_html = govspeak_to_html clean_html = Govspeak::HtmlSanitizer.new(dirty_html, @sanitization_options).sanitize normalise_html(dirty_html) == normalise_html(clean_html) end # Make whitespace in html tags consistent def normalise_html(html) Nokogiri::HTML.parse(html).to_s end def govspeak_to_html - Govspeak::Document.new(string).to_html + Govspeak::Document.new(govspeak_string).to_html ? +++++++++ end end
8
0.296296
4
4
cf7bcbdeb6890a817095392ea85127658f9082ee
vendor/assets/javascripts/active_admin_associations.js
vendor/assets/javascripts/active_admin_associations.js
//= require jquery.tokeninput $(document).ready(function(){ $('input.token-input').tokenInput(function($input){ var modelName = $input.data("model-name"); return "/admin/autocomplete/"+modelName; }, { minChars: 3, propertyToSearch: "value", theme: "facebook", tokenLimit: 1, preventDuplicates: true }); });
//= require jquery.tokeninput $(document).ready(function(){ function enableTokenizer() { $('input.token-input').tokenInput(function($input){ var modelName = $input.data("model-name"); return "/admin/autocomplete/"+modelName; }, { minChars: 3, propertyToSearch: "value", theme: "facebook", tokenLimit: 1, preventDuplicates: true }); } function enablePagination() { $('.resource-table-footer a').on('ajax:success', function(e, data, status, xhr) { $('.relationship-table').replaceWith(data); enablePagination(); enableTokenizer(); }); } enablePagination(); enableTokenizer(); });
Allow pagination on edit pages.
Allow pagination on edit pages.
JavaScript
mit
BookBub/active_admin_associations,BookBub/active_admin_associations,BookBub/active_admin_associations
javascript
## Code Before: //= require jquery.tokeninput $(document).ready(function(){ $('input.token-input').tokenInput(function($input){ var modelName = $input.data("model-name"); return "/admin/autocomplete/"+modelName; }, { minChars: 3, propertyToSearch: "value", theme: "facebook", tokenLimit: 1, preventDuplicates: true }); }); ## Instruction: Allow pagination on edit pages. ## Code After: //= require jquery.tokeninput $(document).ready(function(){ function enableTokenizer() { $('input.token-input').tokenInput(function($input){ var modelName = $input.data("model-name"); return "/admin/autocomplete/"+modelName; }, { minChars: 3, propertyToSearch: "value", theme: "facebook", tokenLimit: 1, preventDuplicates: true }); } function enablePagination() { $('.resource-table-footer a').on('ajax:success', function(e, data, status, xhr) { $('.relationship-table').replaceWith(data); enablePagination(); enableTokenizer(); }); } enablePagination(); enableTokenizer(); });
//= require jquery.tokeninput $(document).ready(function(){ + + function enableTokenizer() { - $('input.token-input').tokenInput(function($input){ + $('input.token-input').tokenInput(function($input){ ? ++ - var modelName = $input.data("model-name"); + var modelName = $input.data("model-name"); ? ++ - return "/admin/autocomplete/"+modelName; + return "/admin/autocomplete/"+modelName; ? ++ - }, { + }, { ? ++ - minChars: 3, + minChars: 3, ? ++ - propertyToSearch: "value", + propertyToSearch: "value", ? ++ - theme: "facebook", + theme: "facebook", ? ++ - tokenLimit: 1, + tokenLimit: 1, ? ++ - preventDuplicates: true + preventDuplicates: true ? ++ - }); + }); ? ++ + } + + function enablePagination() { + $('.resource-table-footer a').on('ajax:success', function(e, data, status, xhr) { + $('.relationship-table').replaceWith(data); + enablePagination(); + enableTokenizer(); + }); + } + + + enablePagination(); + enableTokenizer(); });
35
2.5
25
10