commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
6fc5e76634aa4bc9753c45cab10a16d0eb8fd801
tasks/common.yml
tasks/common.yml
--- - yum: name={{ item }} state=installed with_items: - python-passlib - httpd - mod_ssl - service: name=httpd state=started enabled=yes - copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=apache mode=0644 with_items: - name_vhost.conf - mod_filter.conf - remove_sslv3.conf - m...
--- - yum: name={{ item }} state=installed with_items: - python-passlib - httpd - mod_ssl - service: name=httpd state=started enabled=yes - copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=apache mode=0644 with_items: - name_vhost.conf - mod_filter.conf - remove_sslv3.conf - m...
Use the firewalld module instead of the shell
Use the firewalld module instead of the shell
YAML
mit
OSAS/ansible-role-httpd
yaml
## Code Before: --- - yum: name={{ item }} state=installed with_items: - python-passlib - httpd - mod_ssl - service: name=httpd state=started enabled=yes - copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=apache mode=0644 with_items: - name_vhost.conf - mod_filter.conf - remove_...
4fb482a24444bb45ffa69ef317d918a1f7dd060d
_includes/footers.html
_includes/footers.html
<footer class="footer"> <div class="content has-text-centered"> <p> © <strong>My Personal Web</strong> by <a href="{{ site.url }}">Bervianto Leo Pratama</a>. The source code is licensed <a href="http://opensource.org/licenses/mit-license.php">MIT</a>. The website content is licensed ...
<footer class="footer"> {% include component/social-links.html %} <section class="section"> <div class="content has-text-centered"> <p> © <strong>My Personal Web</strong> by <a href="{{ site.url }}">Bervianto Leo Pratama</a>. The source code is licensed <a href="htt...
Change position copyright into bottom
Change position copyright into bottom
HTML
mit
berviantoleo/berviantoleo.github.io,berviantoleo/berviantoleo.github.io,berviantoleo/berviantoleo.github.io,berviantoleo/berviantoleo.github.io
html
## Code Before: <footer class="footer"> <div class="content has-text-centered"> <p> © <strong>My Personal Web</strong> by <a href="{{ site.url }}">Bervianto Leo Pratama</a>. The source code is licensed <a href="http://opensource.org/licenses/mit-license.php">MIT</a>. The website content is...
8b200cf5c228624e0fb3b9af05a2fc17e5abc682
core/app/backbone/views/subchannel_item_view.coffee
core/app/backbone/views/subchannel_item_view.coffee
class window.SubchannelItemView extends Backbone.Marionette.ItemView tagName: "li" events: click: "clickHandler" "click .close": "destroySubchannel" template: "subchannels/_subchannel_item" initialize: -> @model.bind "destroy", @close, this destroySubchannel: (e) -> @model.destroy() if conf...
class window.SubchannelItemView extends Backbone.Marionette.ItemView tagName: "li" events: click: "clickHandler" "click .close": "destroySubchannel" template: "subchannels/_subchannel_item" initialize: -> @model.bind "destroy", @close, this destroySubchannel: (e) -> @model.destroy() if conf...
Use defaultClickHandler to navigate to subChannel
Use defaultClickHandler to navigate to subChannel
CoffeeScript
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
coffeescript
## Code Before: class window.SubchannelItemView extends Backbone.Marionette.ItemView tagName: "li" events: click: "clickHandler" "click .close": "destroySubchannel" template: "subchannels/_subchannel_item" initialize: -> @model.bind "destroy", @close, this destroySubchannel: (e) -> @model.de...
51d162e6ddba5169c8c15b22e71667302512f8c7
blog/programming/fp/haskell/_posts/2016-03-09-functional-programming-with-haskell.markdown
blog/programming/fp/haskell/_posts/2016-03-09-functional-programming-with-haskell.markdown
--- layout: post title: "Functional Programming with Haskell" date: 2016-03-08 22:11:26 +0000 categories: fp haskell blog highlight programming teaser: Learning functional programming with Haskell img-url: /img/content/haskell-600x600.png permalink: /blog/fp/haskell-intro --- Learning functional programming with...
--- layout: post title: "Functional Programming with Haskell" date: 2016-03-08 22:11:26 +0000 categories: fp haskell blog highlight programming teaser: Learning functional programming with Haskell img-url: /img/content/haskell-600x600.png --- Learning functional programming with Haskell as part of the [Functiona...
Remove permalink from haskell post
Remove permalink from haskell post
Markdown
cc0-1.0
anuragkapur/anuragkapur.github.io,anuragkapur/anuragkapur.github.io
markdown
## Code Before: --- layout: post title: "Functional Programming with Haskell" date: 2016-03-08 22:11:26 +0000 categories: fp haskell blog highlight programming teaser: Learning functional programming with Haskell img-url: /img/content/haskell-600x600.png permalink: /blog/fp/haskell-intro --- Learning functional ...
9bb8f4a3c99e5b43ffa5fd9297930ee102326ab1
lib/specter/file.rb
lib/specter/file.rb
class Specter class File def name @_name end def initialize(name) @_name = name end def passed @_passed ||= [] end def passed? not failed? end def failed @_failed ||= [] end def failed? failed.any? end def run fork do ...
class Specter class File def name @_name end def initialize(name) @_name = name end def passed @_passed ||= [] end def passed? not failed? end def failed @_failed ||= [] end def failed? failed.any? end def run fork do ...
Remove calls to old current context.
Remove calls to old current context.
Ruby
mit
Erol/specter
ruby
## Code Before: class Specter class File def name @_name end def initialize(name) @_name = name end def passed @_passed ||= [] end def passed? not failed? end def failed @_failed ||= [] end def failed? failed.any? end def ru...
24f0e3c9495526690599593ef3c759f39785176e
_includes/header.html
_includes/header.html
<header> <div class="hero" style="background-image: url('{{ page.hero_image | default: site.hero_image | absolute_url }}');"> <div class="overlay"></div> <div class="page-title"> <h1 class="title"> {% if page.title == 'Home' %} {{ site.title | escape }} {% else %} {{ ...
<header> <div class="hero" style="background-image: url('{{ page.hero_image | default: site.hero_image | absolute_url }}');"> <div class="overlay"></div> <div class="page-title"> <h1 class="title"> {% if page.title == 'Home' %} {{ site.title | escape }} {% else %} {{ ...
Sort menu pages by position
Sort menu pages by position
HTML
mit
dajocarter/dajekyll,dajocarter/dajekyll,dajocarter/dajekyll
html
## Code Before: <header> <div class="hero" style="background-image: url('{{ page.hero_image | default: site.hero_image | absolute_url }}');"> <div class="overlay"></div> <div class="page-title"> <h1 class="title"> {% if page.title == 'Home' %} {{ site.title | escape }} {% else ...
4b547221e897daebdb2ba6ce72a3aa188dde9c97
provision/proxy.yaml
provision/proxy.yaml
--- - name: Deploy the proxy hosts: proxy remote_user: root roles: - proxy
--- - name: Deploy the proxy hosts: proxy remote_user: ubuntu become: yes become_method: sudo roles: - proxy
Configure sudo in playbook rather than command line
Configure sudo in playbook rather than command line
YAML
mit
edunham/ansible-rust-infra,edunham/ansible-rust-infra,edunham/ansible-rust-infra
yaml
## Code Before: --- - name: Deploy the proxy hosts: proxy remote_user: root roles: - proxy ## Instruction: Configure sudo in playbook rather than command line ## Code After: --- - name: Deploy the proxy hosts: proxy remote_user: ubuntu become: yes become_method: sudo roles: - proxy
369964986df0ca558c2e340bc8d15272296af67e
tools/debug_launcher.py
tools/debug_launcher.py
from __future__ import print_function import sys import os import time import socket import argparse import subprocess parser = argparse.ArgumentParser() parser.add_argument('--launch-adapter') parser.add_argument('--lldb') parser.add_argument('--wait-port') args = parser.parse_args() if args.launch_adapter: lld...
from __future__ import print_function import sys import os import time import socket import argparse import subprocess parser = argparse.ArgumentParser() parser.add_argument('--launch-adapter') parser.add_argument('--lldb') parser.add_argument('--wait-port') args = parser.parse_args() if args.launch_adapter: lld...
Fix python debugging on Windows.
Fix python debugging on Windows.
Python
mit
vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb
python
## Code Before: from __future__ import print_function import sys import os import time import socket import argparse import subprocess parser = argparse.ArgumentParser() parser.add_argument('--launch-adapter') parser.add_argument('--lldb') parser.add_argument('--wait-port') args = parser.parse_args() if args.launch_...
fcae7875b3c7e91a1419c8b6d19204c56ace0911
src/index.jsx
src/index.jsx
import React from 'react'; import { render } from 'react-dom'; const App = () => <h1>Hello Tabio</h1>; render(<App />, document.getElementById('root'));
import React, { Component } from 'react'; import { render } from 'react-dom'; class App extends Component { constructor(props) { super(props); this.state = { foo: 'bar' }; } render() { return ( <h1> {this.state.foo} </h1> ); } } render(<App />, document.getElementById('ro...
Convert App into a stateful component
Convert App into a stateful component
JSX
mit
colebemis/tabio,colebemis/tabio
jsx
## Code Before: import React from 'react'; import { render } from 'react-dom'; const App = () => <h1>Hello Tabio</h1>; render(<App />, document.getElementById('root')); ## Instruction: Convert App into a stateful component ## Code After: import React, { Component } from 'react'; import { render } from 'react-dom'; ...
ef02305eb909ebd0878d931f68133e96ec6b0521
config/newemacs/settings/helm-settings.el
config/newemacs/settings/helm-settings.el
(use-package helm :config (setq helm-split-window-default-side 'below) (helm-mode 1) :bind (("M-x" . helm-M-x))) (use-package helm-ls-git :config (progn (use-package evil-leader :config (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) (evil-leader/set-key ...
(use-package helm :config (setq helm-split-window-default-side 'below) (helm-mode 1) :bind (("M-x" . helm-M-x))) (use-package helm-ls-git :config (progn (use-package evil-leader :config (setq recentf-max-menu-items 1000) (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-ac...
Set the number of recenf files list
Set the number of recenf files list
Emacs Lisp
mit
rogerzanoni/dotfiles
emacs-lisp
## Code Before: (use-package helm :config (setq helm-split-window-default-side 'below) (helm-mode 1) :bind (("M-x" . helm-M-x))) (use-package helm-ls-git :config (progn (use-package evil-leader :config (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) (evil-leader/...
9dd459e0f75762a4661bed1afe50251727fad788
recursion-vs-iteration/recursion_matt.rb
recursion-vs-iteration/recursion_matt.rb
def is_prime?(num) factors = [] range = (2..num-1).to_a if num == 1 return false elsif num == 2 return true elsif lowest_factor(num) == nil return true else range.each do | poss_factor | if num % poss_factor == 0 factors << poss_factor end end if factors.leng...
require "benchmark" def all_prime_factors_recursive(num, factors = []) return nil if num == 1 return factors << num if is_prime?(num) # base case: breaks the recursion # base case must be conditional factors << lowest_factor(num) num = num / lowest_factor(num) all_prime_factors_recursive(num, factors) # ...
Add benchmark and working recursion solution
Add benchmark and working recursion solution
Ruby
mit
codemecurtis/sealions-evening-review-sessions
ruby
## Code Before: def is_prime?(num) factors = [] range = (2..num-1).to_a if num == 1 return false elsif num == 2 return true elsif lowest_factor(num) == nil return true else range.each do | poss_factor | if num % poss_factor == 0 factors << poss_factor end end ...
e3d3378c4e7363b80d9995f843585a768585c1db
pycon/templates/account/base.html
pycon/templates/account/base.html
{% extends "site_base.html" %} {% load url from future %} {% load i18n %} {% block body_class %}account{% endblock %} {% block page_content %} <div class="container"> <div class="row"> <aside class="list span3"> <ul class="nav nav-list"> <li class="nav-header">{% trans "Account" %}</li>...
{% extends "site_base.html" %} {% load url from future %} {% load i18n %} {% block body_class %}account{% endblock %} {% block page_content %} <aside> <h3>{% trans "Settings" %}</h3> <ul class="nav nav-list"> <li><a href="{% url "account_settings" %}">{% trans "Preferences" %}</a></li> <li><a href="{% ur...
Improve slightly the nav for the settings pages
Improve slightly the nav for the settings pages
HTML
bsd-3-clause
PyCon/pycon,PyCon/pycon,PyCon/pycon,PyCon/pycon
html
## Code Before: {% extends "site_base.html" %} {% load url from future %} {% load i18n %} {% block body_class %}account{% endblock %} {% block page_content %} <div class="container"> <div class="row"> <aside class="list span3"> <ul class="nav nav-list"> <li class="nav-header">{% trans "...
6442380a52b5a108449eda763710fd332f030b70
app/controllers/georgia/application_controller.rb
app/controllers/georgia/application_controller.rb
module Georgia class ApplicationController < ActionController::Base # Required otherwise get the error 'uninitialized Ability' # require 'devise' helper 'georgia/ui' helper 'georgia/internationalization' helper 'georgia/form_actions' helper 'georgia/routes' protect_from_forgery ...
module Georgia class ApplicationController < ActionController::Base # Required otherwise get the error 'uninitialized Ability' # require 'devise' layout 'georgia/application' helper 'georgia/ui' helper 'georgia/internationalization' helper 'georgia/form_actions' helper 'georgia/routes' ...
Set the layout on application
Set the layout on application
Ruby
mit
georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia
ruby
## Code Before: module Georgia class ApplicationController < ActionController::Base # Required otherwise get the error 'uninitialized Ability' # require 'devise' helper 'georgia/ui' helper 'georgia/internationalization' helper 'georgia/form_actions' helper 'georgia/routes' protect_from_...
d52ac2465f287262808a2323abab59aa042b0699
Tasks/XamarinAndroid/make.json
Tasks/XamarinAndroid/make.json
{ "common": [ { "module": "../Common/MSBuildHelpers", "type": "ps" }, { "module": "../Common/MSBuildHelpers", "type": "node", "compile": true } ], "rm": [ { "items": [ "node_module...
{ "common": [ { "module": "../Common/MSBuildHelpers", "type": "ps" }, { "module": "../Common/MSBuildHelpers", "type": "node", "compile": true } ], "rm": [ { "items": [ "node_module...
Fix XamarinAndroid's 64k environment variable limit issue
Fix XamarinAndroid's 64k environment variable limit issue
JSON
mit
grawcho/vso-agent-tasks,aldoms/vsts-tasks,jotaylo/vsts-tasks,aldoms/vsts-tasks,grawcho/vso-agent-tasks,Microsoft/vsts-tasks,pascalberger/vso-agent-tasks,Microsoft/vsts-tasks,grawcho/vso-agent-tasks,jotaylo/vsts-tasks,dylan-smith/vso-agent-tasks,dylan-smith/vso-agent-tasks,grawcho/vso-agent-tasks,vithati/vsts-tasks,vith...
json
## Code Before: { "common": [ { "module": "../Common/MSBuildHelpers", "type": "ps" }, { "module": "../Common/MSBuildHelpers", "type": "node", "compile": true } ], "rm": [ { "items": [ ...
19543d9456fddad5d3719c3c9db9fb058be9742f
package.json
package.json
{ "name": "jstreegrid", "description": "grid plugin for jstree", "version": "3.5.30", "url": "https://github.com/deitch/jstree-grid", "author": {"name":"Avi Deitcher","url":"https://github.com/deitch"}, "contributors": [ { "name": "jochenberger", "url": "https://github.com/jochenberger" }, { "name"...
{ "name": "jstreegrid", "description": "grid plugin for jstree", "version": "3.6.0", "url": "https://github.com/deitch/jstree-grid", "author": {"name":"Avi Deitcher","url":"https://github.com/deitch"}, "contributors": [ { "name": "jochenberger", "url": "https://github.com/jochenberger" }, { "name":...
Bump version number, add OgreTransporter as contributor
Bump version number, add OgreTransporter as contributor
JSON
mit
deitch/jstree-grid,deitch/jstree-grid,deitch/jstree-grid
json
## Code Before: { "name": "jstreegrid", "description": "grid plugin for jstree", "version": "3.5.30", "url": "https://github.com/deitch/jstree-grid", "author": {"name":"Avi Deitcher","url":"https://github.com/deitch"}, "contributors": [ { "name": "jochenberger", "url": "https://github.com/jochenberger" ...
fe9699fea8d10cce1c04b8ff70baf327d3e6bf13
lib/yeb/http_request_handler.rb
lib/yeb/http_request_handler.rb
module Yeb class HTTPRequestHandler attr_reader :app_manager def initialize @app_manager = AppManager.new end def get_response(request) hostname = Hostname.from_http_request(request) app = app_manager.get_app_for_hostname(hostname) socket = app.socket socket.send(reques...
module Yeb class HTTPRequestHandler attr_reader :apps_dir, :sockets_dir def initialize(apps_dir, sockets_dir) @apps_dir = apps_dir @sockets_dir = sockets_dir end def get_response(request) hostname = Hostname.from_http_request(request) vhost = VirtualHost.new(hostname, apps_di...
Use VirtualHost instead of AppManager
Use VirtualHost instead of AppManager
Ruby
mit
sickill/yeb,sickill/yeb
ruby
## Code Before: module Yeb class HTTPRequestHandler attr_reader :app_manager def initialize @app_manager = AppManager.new end def get_response(request) hostname = Hostname.from_http_request(request) app = app_manager.get_app_for_hostname(hostname) socket = app.socket so...
7872a2327f9dea7d4c1f5a3054b6be6bba25fdd4
scripts/migration/migrate_deleted_wikis.py
scripts/migration/migrate_deleted_wikis.py
import logging import sys from modularodm import Q from framework.transactions.context import TokuTransaction from website.app import init_app from website.models import NodeLog from scripts import utils as script_utils logger = logging.getLogger(__name__) def get_targets(): return NodeLog.find(Q('action', 'eq'...
import logging import sys from modularodm import Q from framework.transactions.context import TokuTransaction from website.app import init_app from website.models import NodeLog from scripts import utils as script_utils logger = logging.getLogger(__name__) def get_targets(): return NodeLog.find(Q('action', 'eq'...
Remove TokuTransaction in migrate function
Remove TokuTransaction in migrate function
Python
apache-2.0
hmoco/osf.io,samchrisinger/osf.io,hmoco/osf.io,icereval/osf.io,caneruguz/osf.io,cwisecarver/osf.io,chrisseto/osf.io,erinspace/osf.io,SSJohns/osf.io,monikagrabowska/osf.io,crcresearch/osf.io,crcresearch/osf.io,laurenrevere/osf.io,leb2dg/osf.io,crcresearch/osf.io,baylee-d/osf.io,leb2dg/osf.io,saradbowman/osf.io,sloria/os...
python
## Code Before: import logging import sys from modularodm import Q from framework.transactions.context import TokuTransaction from website.app import init_app from website.models import NodeLog from scripts import utils as script_utils logger = logging.getLogger(__name__) def get_targets(): return NodeLog.find(...
ff163b3489429880058024f7c85884da5c0070df
docs/withdraw.rst
docs/withdraw.rst
Withdraw Endpoints ================== `Place a withdrawal <binance.html#binance.client.Client.withdraw>`_ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Make sure you enable Withdrawal permissions for your API Key to use this call. You must have withdrawn to the address through the website and a...
Withdraw Endpoints ================== `Place a withdrawal <binance.html#binance.client.Client.withdraw>`_ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Make sure you enable Withdrawal permissions for your API Key to use this call. You must have withdrawn to the address through the website and a...
Add documentation about deposit address endpoint
Add documentation about deposit address endpoint
reStructuredText
mit
sammchardy/python-binance
restructuredtext
## Code Before: Withdraw Endpoints ================== `Place a withdrawal <binance.html#binance.client.Client.withdraw>`_ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Make sure you enable Withdrawal permissions for your API Key to use this call. You must have withdrawn to the address through t...
17a6d0e65b319e6166bbad7fd0f79169f75ddcbb
recipes-kde-support/polkit-qt-1_git.bb
recipes-kde-support/polkit-qt-1_git.bb
LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=7dbc59dc445b2261c4fb2f9466e3446a" DEPENDS = "automoc4-native polkit" RDEPENDS_${PN} = "libqtcore4 polkit" inherit qt4x11 cmake SRC_URI = "git://anongit.kde.org/polkit-qt-1.git;branch=master" ## Tag v0.103.0 SRCREV = "26045cb6da3efb1eba8612ef47ffa63da64ae9a0"...
LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=7dbc59dc445b2261c4fb2f9466e3446a" DEPENDS = "automoc4-native polkit" RDEPENDS_${PN} = "libqtcore4 polkit" inherit qt4x11 cmake kde_exports SRC_URI = "git://anongit.kde.org/polkit-qt-1.git;branch=master" ## Tag v0.103.0 SRCREV = "26045cb6da3efb1eba8612ef47ffa...
Fix cmake search path for includes and libraries
polkit-qt-1: Fix cmake search path for includes and libraries Signed-off-by: Samuel Stirtzel <5e7b27e76d616174d4c71d96463fdd2f7e57e559@googlemail.com>
BitBake
mit
Angstrom-distribution/meta-kde,koenkooi/meta-kde4,Angstrom-distribution/meta-kde,koenkooi/meta-kde4
bitbake
## Code Before: LICENSE = "LGPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=7dbc59dc445b2261c4fb2f9466e3446a" DEPENDS = "automoc4-native polkit" RDEPENDS_${PN} = "libqtcore4 polkit" inherit qt4x11 cmake SRC_URI = "git://anongit.kde.org/polkit-qt-1.git;branch=master" ## Tag v0.103.0 SRCREV = "26045cb6da3efb1eba8612ef4...
7b1fcedb5b7915c849e260cd42a1e68d603d2276
tests/index.js
tests/index.js
'use strict'; const isPlainObj = require( 'is-plain-obj' ); test( 'index.js', () => { const config = require( '../index.js' ); expect( isPlainObj( config ) ).toBe( true ); expect( Array.isArray( config.extends ) ).toBe( true ); expect( Array.isArray( config.plugins ) ).toBe( true ); expect( isPlainObj( c...
'use strict'; const isPlainObj = require( 'is-plain-obj' ); test( 'index.js', () => { const config = require( '../index.js' ); expect( isPlainObj( config ) ).toBe( true ); expect( Array.isArray( config.extends ) ).toBe( true ); expect( isPlainObj( config.rules ) ).toBe( true ); });
Fix test to not expect plugins to be defined
Fix test to not expect plugins to be defined
JavaScript
mit
ChromatixAU/stylelint-config-chromatix
javascript
## Code Before: 'use strict'; const isPlainObj = require( 'is-plain-obj' ); test( 'index.js', () => { const config = require( '../index.js' ); expect( isPlainObj( config ) ).toBe( true ); expect( Array.isArray( config.extends ) ).toBe( true ); expect( Array.isArray( config.plugins ) ).toBe( true ); expec...
cfec3971d9769bf02edc73a9535dbb5c1603397b
templates/results/case/list/_case_list_item.html
templates/results/case/list/_case_list_item.html
{% load url from future %} {% load results filters %} <article id="runcaseversion-id-{{ runcaseversion.id }}" class="listitem"> {% include "results/_status.html" with item=runcaseversion.caseversion %} <header class="itemhead"> <div class="completion" data-perc="{{ runcaseversion.completion|percentage }}">{{...
{% load url from future %} {% load results filters %} <article id="runcaseversion-id-{{ runcaseversion.id }}" class="listitem"> {% include "results/_status.html" with item=runcaseversion.caseversion %} <header class="itemhead"> <div class="completion" data-perc="{{ runcaseversion.completion|percentage }}">{{...
Fix double-application of percentage filter in results by case list.
Fix double-application of percentage filter in results by case list.
HTML
bsd-2-clause
bobsilverberg/moztrap,mccarrmb/moztrap,mozilla/moztrap,mccarrmb/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,shinglyu/moztrap,mccarrmb/moztrap,mozilla/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,mccarrmb/moztrap,mccarrmb/moztrap,mozilla/moztrap,mozilla/moztra...
html
## Code Before: {% load url from future %} {% load results filters %} <article id="runcaseversion-id-{{ runcaseversion.id }}" class="listitem"> {% include "results/_status.html" with item=runcaseversion.caseversion %} <header class="itemhead"> <div class="completion" data-perc="{{ runcaseversion.completion|p...
8a8818159059cc92e00406a407a97f02a8458e2e
Build/Grunt-Options/autoprefixer.js
Build/Grunt-Options/autoprefixer.js
/** * Grunt-autoprefixer * @description Autoprefixer parses CSS and adds vendor-prefixed CSS properties using the Can I Use database. * @docs https://github.com/nDmitry/grunt-autoprefixer */ var config = require('../Config'), sassTaskConfig = require('./sass'); module.exports = { options: { browsers: config.p...
/** * Grunt-autoprefixer * @description Autoprefixer parses CSS and adds vendor-prefixed CSS properties using the Can I Use database. * @docs https://github.com/nDmitry/grunt-autoprefixer */ var config = require('../Config'); module.exports = { options: { browsers: config.project.browserSupport }, css: { s...
Remove an unnecessary file import of the sass config
[MISC] Remove an unnecessary file import of the sass config
JavaScript
mit
t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template
javascript
## Code Before: /** * Grunt-autoprefixer * @description Autoprefixer parses CSS and adds vendor-prefixed CSS properties using the Can I Use database. * @docs https://github.com/nDmitry/grunt-autoprefixer */ var config = require('../Config'), sassTaskConfig = require('./sass'); module.exports = { options: { br...
61ad8c254780e0115de29101cca247063577a88b
patzilla/navigator/static/vendor/serviva/serviva.css
patzilla/navigator/static/vendor/serviva/serviva.css
@import "texgyreadventor.css"; .header-container { color: #ddd; height: 8rem; } .header-content { height: 100%; margin: 0px; } .header-content-left { background-color: white; height: inherit; background-image: url("/static/vendor/serviva/serviva-logo.png"); background-repeat: no-repea...
@import "texgyreadventor.css"; #header-region { position: -webkit-sticky; position: sticky; top: 0; z-index: 9999; } .header-container { color: #ddd; height: 8rem; } .header-content { height: 100%; margin: 0px; } .header-content-left { background-color: white; height: inherit...
Add stickyness to vendor header
[ui] Add stickyness to vendor header
CSS
agpl-3.0
ip-tools/ip-navigator,ip-tools/ip-navigator,ip-tools/ip-navigator,ip-tools/ip-navigator
css
## Code Before: @import "texgyreadventor.css"; .header-container { color: #ddd; height: 8rem; } .header-content { height: 100%; margin: 0px; } .header-content-left { background-color: white; height: inherit; background-image: url("/static/vendor/serviva/serviva-logo.png"); background-...
3027e7a33ba49eaed6e396c2b57c5031816b9a36
cookbooks/maintenance/recipes/default.rb
cookbooks/maintenance/recipes/default.rb
include_recipe 'useful_tools' include_recipe 'maintenance::users' include_recipe 'maintenance::admin_users'
include_recipe 'maintanance::useful_tools' include_recipe 'maintenance::users' include_recipe 'maintenance::admin_users'
Fix link to useful tools.
Fix link to useful tools.
Ruby
mit
dmitriy-kiriyenko/old-morgan
ruby
## Code Before: include_recipe 'useful_tools' include_recipe 'maintenance::users' include_recipe 'maintenance::admin_users' ## Instruction: Fix link to useful tools. ## Code After: include_recipe 'maintanance::useful_tools' include_recipe 'maintenance::users' include_recipe 'maintenance::admin_users'
938057258ca202558df840ce8ba4cc24909dbaeb
stylesheets/blog.css
stylesheets/blog.css
section { margin-left: 15%; margin-right: 15%; } section h1 { text-align: center; margin-top: 0px; } section h2 { text-align: center; font-size: small; } article img { width: 40%; } section p { text-align: justify; margin-bottom: 1%; } section ul { margin-left: 15%; list-style-type: circle; padd...
section { margin-left: 15%; margin-right: 15%; } section h1 { text-align: center; margin-top: 0px; } section h2 { text-align: center; font-size: small; } article h1 { text-align: left; } article img { width: 40%; } section p { text-align: justify; margin-bottom: 1%; } section ul { margin-left: 15%...
Reformat code blocks and align article headers
Reformat code blocks and align article headers
CSS
mit
FTLam11/FTLam11.github.io,FTLam11/FTLam11.github.io,FTLam11/FTLam11.github.io
css
## Code Before: section { margin-left: 15%; margin-right: 15%; } section h1 { text-align: center; margin-top: 0px; } section h2 { text-align: center; font-size: small; } article img { width: 40%; } section p { text-align: justify; margin-bottom: 1%; } section ul { margin-left: 15%; list-style-type...
459109ca2b13559940005f6ddf640d3ddbf49a01
CesiumKit/JSONEncodable.swift
CesiumKit/JSONEncodable.swift
// // JSONEncodable.swift // CesiumKit // // Created by Ryan Walklin on 29/02/2016. // Copyright © 2016 Test Toast. All rights reserved. // import Foundation protocol JSONEncodable { init (json: JSONObject) throws func toJSON () -> JSONObject }
// // JSONEncodable.swift // CesiumKit // // Created by Ryan Walklin on 29/02/2016. // Copyright © 2016 Test Toast. All rights reserved. // import Foundation protocol JSONEncodable { init (fromJSON json: JSON) throws func toJSON () -> JSON }
Use JSON rather than JSONObject directly
Use JSON rather than JSONObject directly
Swift
apache-2.0
tokyovigilante/CesiumKit,tokyovigilante/CesiumKit
swift
## Code Before: // // JSONEncodable.swift // CesiumKit // // Created by Ryan Walklin on 29/02/2016. // Copyright © 2016 Test Toast. All rights reserved. // import Foundation protocol JSONEncodable { init (json: JSONObject) throws func toJSON () -> JSONObject } ## Instruction: Use JSON rather tha...
fe55272aea47fdc84fcdef972d473a75f0aa749f
app.rb
app.rb
require 'bundler' require 'json' Bundler.require class Lib2Issue < Sinatra::Base use Rack::Deflater configure do set :logging, true set :dump_errors, false set :raise_errors, true set :show_exceptions, false end before do request.body.rewind @request_payload = JSON.parse request.body....
require 'bundler' require 'json' Bundler.require class Lib2Issue < Sinatra::Base use Rack::Deflater configure do set :logging, true set :dump_errors, false set :raise_errors, true set :show_exceptions, false end before do request.body.rewind @request_payload = JSON.parse request.body....
Handle prerelease formats in rubygems
Handle prerelease formats in rubygems
Ruby
mit
librariesio/lib2issues,librariesio/lib2issues
ruby
## Code Before: require 'bundler' require 'json' Bundler.require class Lib2Issue < Sinatra::Base use Rack::Deflater configure do set :logging, true set :dump_errors, false set :raise_errors, true set :show_exceptions, false end before do request.body.rewind @request_payload = JSON.par...
35100991e28d9d42815dab248da100c05c4259d8
examples/basic/server.coffee
examples/basic/server.coffee
exists = require('fs').exists app = module.exports = require('express')() JFUM = require '../../src/index.coffee' jfum = new JFUM() app.options '/upload', jfum.optionsHandler.bind(jfum) app.post '/upload', jfum.postHandler.bind(jfum), (req, res, next) -> console.log req.jfum return res.json foo: 'bar' if req.jfum ...
exists = require('fs').exists app = module.exports = require('express')() JFUM = require '../../src/index.coffee' jfum = new JFUM minFileSize: 0 maxFileSize: 10000000000 acceptFileTypes: /\.(gif|jpe?g|png)$/i app.options '/upload', jfum.optionsHandler.bind(jfum) app.post '/upload', jfum.postHandler.bind(jfum), (...
Add JFUM options to example
Add JFUM options to example
CoffeeScript
mit
Turistforeningen/node-jfum,Turistforeningen/node-jfum
coffeescript
## Code Before: exists = require('fs').exists app = module.exports = require('express')() JFUM = require '../../src/index.coffee' jfum = new JFUM() app.options '/upload', jfum.optionsHandler.bind(jfum) app.post '/upload', jfum.postHandler.bind(jfum), (req, res, next) -> console.log req.jfum return res.json foo: 'b...
dde7df2579bcf72592a960865309c400108a603c
metadata/com.jlyr.txt
metadata/com.jlyr.txt
Category:Multimedia License:GPLv3 Web Site:http://code.google.com/p/jlyr/ Source Code:http://code.google.com/p/jlyr/source/checkout Issue Tracker:http://code.google.com/p/jlyr/issues/list Summary:Get Lyrics Description: You can search for lyrics from a list of lyrics websites without leaving the app or go to popular s...
Category:Multimedia License:GPLv3 Web Site:http://code.google.com/p/jlyr/ Source Code:http://code.google.com/p/jlyr/source/checkout Issue Tracker:http://code.google.com/p/jlyr/issues/list Summary:Get Lyrics Description: You can search for lyrics from a list of lyrics websites without leaving the app or go to popular s...
Set current version for Just Lyrics
Set current version for Just Lyrics
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Category:Multimedia License:GPLv3 Web Site:http://code.google.com/p/jlyr/ Source Code:http://code.google.com/p/jlyr/source/checkout Issue Tracker:http://code.google.com/p/jlyr/issues/list Summary:Get Lyrics Description: You can search for lyrics from a list of lyrics websites without leaving the app or...
ea14bf4781b4a1e17253bf4f648cbfbd1e94c642
lib/serverspec/matchers.rb
lib/serverspec/matchers.rb
require 'serverspec/matchers/be_mounted' require 'serverspec/matchers/be_resolvable' require 'serverspec/matchers/be_reachable' require 'serverspec/matchers/be_installed' require 'serverspec/matchers/be_running' require 'serverspec/matchers/contain' require 'serverspec/matchers/have_entry' require 'serverspec/matchers/...
require 'serverspec/matchers/be_mounted' require 'serverspec/matchers/contain' require 'serverspec/matchers/be_readable' require 'serverspec/matchers/be_writable' require 'serverspec/matchers/be_executable' require 'serverspec/matchers/match_md5checksum' # host require 'serverspec/matchers/be_resolvable' require 'serv...
Arrange the order of lines
Arrange the order of lines
Ruby
mit
sergueik/serverspec,kui/serverspec,doc75/serverspec,catatsuy/serverspec,DarrellMozingo/serverspec,minimum2scp/serverspec,supertylerc/serverspec,treydock/serverspec,nishigori/serverspec,a3no/serverspec,higanworks/serverspec,vincentbernat/serverspec,tmtk75/serverspec,kitak/serverspec,ihassin/serverspec,serverspec/servers...
ruby
## Code Before: require 'serverspec/matchers/be_mounted' require 'serverspec/matchers/be_resolvable' require 'serverspec/matchers/be_reachable' require 'serverspec/matchers/be_installed' require 'serverspec/matchers/be_running' require 'serverspec/matchers/contain' require 'serverspec/matchers/have_entry' require 'serv...
c96a45f3c32122bbcb5ae5cf26379ee93c7d3321
.rubocop.yml
.rubocop.yml
AllCops: Exclude: - vendor/**/* - ruby/**/* - test/**/* - files/**/* - .kitchen/**/* AlignParameters: Enabled: false Encoding: Enabled: false UselessAssignment: Enabled: false LineLength: Max: 300 MethodLength: Max: 11 HashSyntax: Enabled: false IfUnlessModifier: Enabled: false Triv...
AllCops: Exclude: - vendor/**/* - ruby/**/* - test/**/* - files/**/* - .kitchen/**/* AlignParameters: Enabled: false Encoding: Enabled: false UselessAssignment: Enabled: false LineLength: Max: 300 MethodLength: Max: 11 HashSyntax: Enabled: false IfUnlessModifier: Enabled: false Triv...
Disable the extra space cop
Disable the extra space cop Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
YAML
apache-2.0
svanzoest-cookbooks/apache2,svanzoest-cookbooks/apache2,svanzoest-cookbooks/apache2
yaml
## Code Before: AllCops: Exclude: - vendor/**/* - ruby/**/* - test/**/* - files/**/* - .kitchen/**/* AlignParameters: Enabled: false Encoding: Enabled: false UselessAssignment: Enabled: false LineLength: Max: 300 MethodLength: Max: 11 HashSyntax: Enabled: false IfUnlessModifier: Ena...
97d1cf01d99d3c9154c701827210e597995c72a8
platforms/os2-gcc/platform.cmake
platforms/os2-gcc/platform.cmake
set (PLIBSYS_THREAD_MODEL none) set (PLIBSYS_IPC_MODEL none) set (PLIBSYS_TIME_PROFILER_MODEL generic) set (PLIBSYS_DIR_MODEL none) set (PLIBSYS_LIBRARYLOADER_MODEL none)
set (PLIBSYS_THREAD_MODEL none) set (PLIBSYS_IPC_MODEL none) set (PLIBSYS_TIME_PROFILER_MODEL generic) set (PLIBSYS_DIR_MODEL none) set (PLIBSYS_LIBRARYLOADER_MODEL none) set (PLIBSYS_PLATFORM_LINK_LIBRARIES os2386)
Add os2386 library to linkage list
os2: Add os2386 library to linkage list
CMake
unknown
saprykin/plibsys,saprykin/plib,saprykin/plibsys,saprykin/plibsys,saprykin/plib
cmake
## Code Before: set (PLIBSYS_THREAD_MODEL none) set (PLIBSYS_IPC_MODEL none) set (PLIBSYS_TIME_PROFILER_MODEL generic) set (PLIBSYS_DIR_MODEL none) set (PLIBSYS_LIBRARYLOADER_MODEL none) ## Instruction: os2: Add os2386 library to linkage list ## Code After: set (PLIBSYS_THREAD_MODEL none) set (PLIBSYS_IPC_MODEL none)...
45649acb3aa5027e7856d2839e358d1c5a7302c5
forums/templates/agora/_category_panel.html
forums/templates/agora/_category_panel.html
<div class="panel panel-default"> <div class="panel-heading">Categories</div> {% if categories %} <ul class="list-group"> {% for category in categories %} <li class="list-group-item"> <a href="{% url "agora_category" category.pk %}"> ...
<div class="panel panel-default"> <div class="panel-heading">Categories</div> {% if categories %} <ul class="list-group"> {% for category in categories %} <li class="list-group-item"> <a href="{% url "agora_category" category.pk %}"> ...
Add badge counts of forums
Add badge counts of forums
HTML
mit
pinax/pinax-project-forums,pinax/pinax-project-forums
html
## Code Before: <div class="panel panel-default"> <div class="panel-heading">Categories</div> {% if categories %} <ul class="list-group"> {% for category in categories %} <li class="list-group-item"> <a href="{% url "agora_category" category.pk %}"> ...
5d9c4134ca6ff2458904adad01989cee2287cf0d
setup.cfg
setup.cfg
[nosetests] where = tests with-coverage=true cover-package = sqla_taskq cover-html = true cover-html-dir = htmlcov
[nosetests] where = tests with-coverage = true cover-package = . cover-html = true cover-html-dir = htmlcov [aliases] release = egg_info sdist register upload
Fix cover package and add alias to publish the package
Fix cover package and add alias to publish the package
INI
mit
LeResKP/sqla-taskq
ini
## Code Before: [nosetests] where = tests with-coverage=true cover-package = sqla_taskq cover-html = true cover-html-dir = htmlcov ## Instruction: Fix cover package and add alias to publish the package ## Code After: [nosetests] where = tests with-coverage = true cover-package = . cover-html = true cover-html-dir = h...
9a7bdb63b2e2f60c3d9374fa092aa5fca3de7436
app/models/concerns/adminable/resource_concern.rb
app/models/concerns/adminable/resource_concern.rb
module Adminable module ResourceConcern extend ActiveSupport::Concern def adminable %i(title name email login id).each do |name| return OpenStruct.new(name: public_send(name)) unless try(name).nil? end end end end
module Adminable module ResourceConcern extend ActiveSupport::Concern def adminable %i(title name email login id).each do |name| begin return OpenStruct.new(name: public_send(name)) rescue NoMethodError next end end end end end
Refactor resource concern adminable method
Refactor resource concern adminable method
Ruby
mit
droptheplot/adminable,droptheplot/adminable,droptheplot/adminable
ruby
## Code Before: module Adminable module ResourceConcern extend ActiveSupport::Concern def adminable %i(title name email login id).each do |name| return OpenStruct.new(name: public_send(name)) unless try(name).nil? end end end end ## Instruction: Refactor resource concern adminable ...
4fe5b22815f78e92b096430579c7880e51d3096e
.github/build-and-push-rpm.sh
.github/build-and-push-rpm.sh
set -e secret=$1 type=$2 docker run -e BROKER_RELEASE=$type -v $(pwd):/opt/orion --workdir=/opt/orion fiware/orion-ci:rpm8 make rpm for file in "$(pwd)/rpm/RPMS/x86_64"/* do filename=$(basename $file) echo "Uploading $filename" curl -v -f -u telefonica-github:$secret --upload-file $file https://nexus.lab.fiwa...
set -e secret=$1 type=$2 if [ "$type" == "release" ] then type="1" fi docker run -e BROKER_RELEASE=$type -v $(pwd):/opt/orion --workdir=/opt/orion fiware/orion-ci:rpm8 make rpm for file in "$(pwd)/rpm/RPMS/x86_64"/* do filename=$(basename $file) echo "Uploading $filename" curl -v -f -u telefonica-github:$s...
FIX avoid "-release" in autogenerated release RPMs
FIX avoid "-release" in autogenerated release RPMs
Shell
agpl-3.0
telefonicaid/fiware-orion,telefonicaid/fiware-orion,telefonicaid/fiware-orion,telefonicaid/fiware-orion,telefonicaid/fiware-orion,telefonicaid/fiware-orion
shell
## Code Before: set -e secret=$1 type=$2 docker run -e BROKER_RELEASE=$type -v $(pwd):/opt/orion --workdir=/opt/orion fiware/orion-ci:rpm8 make rpm for file in "$(pwd)/rpm/RPMS/x86_64"/* do filename=$(basename $file) echo "Uploading $filename" curl -v -f -u telefonica-github:$secret --upload-file $file https:...
1cdcc2955572c4dbdc4c1e20f58725b410bb7e35
README.md
README.md
This project runs the [GeoTrellis](http://geotrellis.io) website. It is composed of two pieces: 1. A static content container with nginx 2. A Spray server running GeoTrellis operations ## Running Locally You need [Docker](https://www.docker.com/) to build and run the website. Once you have it, running the entire si...
This project runs the [GeoTrellis](http://geotrellis.io) website. It is composed of two pieces: 1. A static content container with nginx 2. A Spray server running GeoTrellis operations ## Running Locally You need [Docker](https://www.docker.com/) to build and run the website. Once you have it, running the entire si...
Add remote state to readme
Add remote state to readme
Markdown
apache-2.0
geotrellis/geotrellis-site,geotrellis/geotrellis-site,geotrellis/geotrellis-site,geotrellis/geotrellis-site
markdown
## Code Before: This project runs the [GeoTrellis](http://geotrellis.io) website. It is composed of two pieces: 1. A static content container with nginx 2. A Spray server running GeoTrellis operations ## Running Locally You need [Docker](https://www.docker.com/) to build and run the website. Once you have it, runni...
2b57827c7b8c552c7e84bc8b1ad44d54baab894b
app/javascript/components/Events/PerformanceCompetition/Show/Maps/RoundMap/CompetitorsList/CompetitorResult/ExitAltitude.js
app/javascript/components/Events/PerformanceCompetition/Show/Maps/RoundMap/CompetitorsList/CompetitorResult/ExitAltitude.js
import React from 'react' import PropTypes from 'prop-types' import { useI18n } from 'components/TranslationsProvider' const maxAltitude = 3353 const minAltitude = 3200 const ExitAltitude = ({ altitude }) => { const { t } = useI18n() if (!altitude) return null const showWarning = altitude < minAltitude || alt...
import React from 'react' import PropTypes from 'prop-types' import { useI18n } from 'components/TranslationsProvider' const maxAltitude = 3353 const minAltitude = 3200 const ExitAltitude = ({ altitude }) => { const { t } = useI18n() if (!altitude) return null const showWarning = altitude < minAltitude || alt...
Fix exit altitude units placement
Fix exit altitude units placement
JavaScript
agpl-3.0
skyderby/skyderby,skyderby/skyderby,skyderby/skyderby,skyderby/skyderby,skyderby/skyderby
javascript
## Code Before: import React from 'react' import PropTypes from 'prop-types' import { useI18n } from 'components/TranslationsProvider' const maxAltitude = 3353 const minAltitude = 3200 const ExitAltitude = ({ altitude }) => { const { t } = useI18n() if (!altitude) return null const showWarning = altitude < mi...
4bc8f424597d1a669aa248444481afa245e9d2e9
jkind/src/jkind/JKindSettings.java
jkind/src/jkind/JKindSettings.java
package jkind; public class JKindSettings extends Settings { public int n = 200; public int timeout = 100; public boolean excel = false; public boolean xml = false; public boolean xmlToStdout = false; public boolean boundedModelChecking = true; public boolean kInduction = true; public boolean invariantGen...
package jkind; public class JKindSettings extends Settings { public int n = Integer.MAX_VALUE; public int timeout = Integer.MAX_VALUE; public boolean excel = false; public boolean xml = false; public boolean xmlToStdout = false; public boolean boundedModelChecking = true; public boolean kInduction = true; ...
Change timeout and depth to be effectively unbounded by default
Change timeout and depth to be effectively unbounded by default
Java
bsd-3-clause
agacek/jkind,lgwagner/jkind,andrewkatis/jkind-1,andrewkatis/jkind-1,backesj/jkind,lgwagner/jkind,backesj/jkind,agacek/jkind
java
## Code Before: package jkind; public class JKindSettings extends Settings { public int n = 200; public int timeout = 100; public boolean excel = false; public boolean xml = false; public boolean xmlToStdout = false; public boolean boundedModelChecking = true; public boolean kInduction = true; public bool...
cc6c40b64f8dfde533977883124e22e0fbc80e5c
soco/__init__.py
soco/__init__.py
from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'Rahim Sonawalla <rsonawalla@gmail.com>' __version__ = '0.7' __website__ = 'https://github.com/SoCo/SoCo' __license__ = 'MIT Lic...
from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'The SoCo-Team <python-soco@googlegroups.com>' __version__ = '0.7' __website__ = 'https://github.com/SoCo/SoCo' __license__ = 'M...
Update author info to "The SoCo-Team"
Update author info to "The SoCo-Team"
Python
mit
TrondKjeldas/SoCo,flavio/SoCo,dundeemt/SoCo,xxdede/SoCo,KennethNielsen/SoCo,petteraas/SoCo,bwhaley/SoCo,xxdede/SoCo,oyvindmal/SocoWebService,TrondKjeldas/SoCo,TrondKjeldas/SoCo,petteraas/SoCo,dajobe/SoCo,intfrr/SoCo,intfrr/SoCo,xxdede/SoCo,fgend31/SoCo,jlmcgehee21/SoCo,DPH/SoCo,dsully/SoCo,meska/SoCo,bwhaley/SoCo,dajob...
python
## Code Before: from __future__ import unicode_literals """ SoCo (Sonos Controller) is a simple library to control Sonos speakers """ # Will be parsed by setup.py to determine package metadata __author__ = 'Rahim Sonawalla <rsonawalla@gmail.com>' __version__ = '0.7' __website__ = 'https://github.com/SoCo/SoCo' __lice...
84a7b7fd8612121379700498c61e7c292eb8262a
malcolm/controllers/builtin/defaultcontroller.py
malcolm/controllers/builtin/defaultcontroller.py
from malcolm.core import Controller, DefaultStateMachine, Hook, \ method_only_in, method_takes sm = DefaultStateMachine @sm.insert @method_takes() class DefaultController(Controller): Resetting = Hook() Disabling = Hook() @method_takes() def disable(self): try: self.transit...
from malcolm.core import Controller, DefaultStateMachine, Hook, \ method_only_in, method_takes sm = DefaultStateMachine @sm.insert @method_takes() class DefaultController(Controller): Resetting = Hook() Disabling = Hook() @method_takes() def disable(self): try: self.transit...
Make part task creation explicit
Make part task creation explicit
Python
apache-2.0
dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm
python
## Code Before: from malcolm.core import Controller, DefaultStateMachine, Hook, \ method_only_in, method_takes sm = DefaultStateMachine @sm.insert @method_takes() class DefaultController(Controller): Resetting = Hook() Disabling = Hook() @method_takes() def disable(self): try: ...
f7b46ce3d531d9f165288f75630b633453cef2e1
.travis.yml
.travis.yml
language: cpp matrix: include: - os: osx osx_image: xcode9.3 env: - TARGET=mac TEST=test - os: osx osx_image: xcode7.3 env: - TARGET=mac TEST=test - os: linux dist: xenial env: - TARGET=linux TEST=test - os: ...
language: cpp matrix: include: - os: osx osx_image: xcode11.5 env: - TARGET=mac TEST=test # - os: osx # osx_image: xcode7.3 # env: # - TARGET=mac TEST=test - os: linux dist: xenial env: - TARGET=linux TEST=test - os: ...
Test on macOS 10.15, Ubuntu 20.04 focal
Test on macOS 10.15, Ubuntu 20.04 focal
YAML
mit
sfiera/libsfz,sfiera/libsfz
yaml
## Code Before: language: cpp matrix: include: - os: osx osx_image: xcode9.3 env: - TARGET=mac TEST=test - os: osx osx_image: xcode7.3 env: - TARGET=mac TEST=test - os: linux dist: xenial env: - TARGET=linux TEST=tes...
d87a4970478105ee55727ab94c9aac68d66229d3
test/macros/defaults/misc.html
test/macros/defaults/misc.html
<!-- @it ignores the double dot ('..') pattern used as a macro lorem .. ipsum --> loremipsum <!-- @it allows any quantity of whitespace characters between the dot and the macro name . ft B --> <strong> <!-- @it produces empty output lorem .de .ne .fi \m \d \u ipsum --> loremipsum
<!-- @it ignores the double dot ('..') pattern used as a macro lorem .. ipsum --> loremipsum <!-- @it allows any quantity of whitespace characters between the dot and the macro name . ft B --> <strong> <!-- @it produces empty output lorem .de .ne .fi \m \d \u ipsum --> loremipsum <!-- @it handles dou...
Add a failing test, describing an use case where multiple new lines are together
Add a failing test, describing an use case where multiple new lines are together
HTML
mit
roperzh/jroff,roperzh/jroff
html
## Code Before: <!-- @it ignores the double dot ('..') pattern used as a macro lorem .. ipsum --> loremipsum <!-- @it allows any quantity of whitespace characters between the dot and the macro name . ft B --> <strong> <!-- @it produces empty output lorem .de .ne .fi \m \d \u ipsum --> loremipsum ## In...
9cf1a9cab8aa6bdedcbef6799dc523b09921074b
packages/react-atlas-core/src/TextArea/README.md
packages/react-atlas-core/src/TextArea/README.md
<TextArea/> ###### Non-resizable textarea: <div> <TextArea placeholder="Enter text here..." small resizable={false}/> <TextArea placeholder="Enter text here..." medium resizable={false}/> <TextArea placeholder="Enter text here..." large resizable={false}/> <TextArea placeholder="Enter text here...
<TextArea/> ###### Non-resizable textarea: <div> <TextArea placeholder="Enter text here..." small resizable={false}/> <TextArea placeholder="Enter text here..." medium resizable={false}/> <TextArea placeholder="Enter text here..." large resizable={false}/> <TextArea placeholder="Enter text h...
Use a more appropriate example message.
Use a more appropriate example message.
Markdown
mit
Magneticmagnum/react-atlas,DigitalRiver/react-atlas
markdown
## Code Before: <TextArea/> ###### Non-resizable textarea: <div> <TextArea placeholder="Enter text here..." small resizable={false}/> <TextArea placeholder="Enter text here..." medium resizable={false}/> <TextArea placeholder="Enter text here..." large resizable={false}/> <TextArea placeholder=...
acafc058a11e27c9f3fd58642e36fbc83303e8ac
README.md
README.md
A task queue for PHP. ## Producers `PMG\Queue\Producer` creates jobs and puts them into the Queue. ## Consumers `PMG\Queue\Consumer` fetches jobs from the queue and acts on them.
A task queue for PHP. ## Glossary & Core Concepts - A **queue** is a single bucket into which *messages* are put and fetched. PMG\Queue supports having multiple queues handled by a single consumer and producer. - A **producer** puts *messages* into the queue. - A **consumper** pulls *messages* out of the queue a...
Make some notes about serialization
Make some notes about serialization
Markdown
apache-2.0
AgencyPMG/Queue
markdown
## Code Before: A task queue for PHP. ## Producers `PMG\Queue\Producer` creates jobs and puts them into the Queue. ## Consumers `PMG\Queue\Consumer` fetches jobs from the queue and acts on them. ## Instruction: Make some notes about serialization ## Code After: A task queue for PHP. ## Glossary & Core Concepts...
66595ac9f3a3c78391685e6968345eab94636c3a
config/initializers/load_resque.rb
config/initializers/load_resque.rb
require 'resque' require 'resque/failure/base' require 'resque/failure/multiple' require 'resque/failure/redis' # Load automatically all resque files from lib/resque Dir[Rails.root.join("lib/resque/*.rb")].each {|f| require f} Resque.redis = "#{Cartodb.config[:redis]['host']}:#{Cartodb.config[:redis]['port']}"
require 'resque' require 'resque/failure/base' require 'resque/failure/multiple' require 'resque/failure/redis' # Load automatically all resque files from lib/resque Dir[Rails.root.join("lib/resque/*.rb")].each {|f| require f} Resque.redis = "#{Cartodb.config[:redis]['host']}:#{Cartodb.config[:redis]['port']}" Resque...
Add resque fork metrics too
Add resque fork metrics too
Ruby
bsd-3-clause
codeandtheory/cartodb,UCL-ShippingGroup/cartodb-1,raquel-ucl/cartodb,DigitalCoder/cartodb,future-analytics/cartodb,dbirchak/cartodb,nyimbi/cartodb,nuxcode/cartodb,raquel-ucl/cartodb,UCL-ShippingGroup/cartodb-1,DigitalCoder/cartodb,CartoDB/cartodb,nuxcode/cartodb,thorncp/cartodb,splashblot/dronedb,nuxcode/cartodb,UCL-Sh...
ruby
## Code Before: require 'resque' require 'resque/failure/base' require 'resque/failure/multiple' require 'resque/failure/redis' # Load automatically all resque files from lib/resque Dir[Rails.root.join("lib/resque/*.rb")].each {|f| require f} Resque.redis = "#{Cartodb.config[:redis]['host']}:#{Cartodb.config[:redis][...
9671b7e1b5d5b4a1afd2d2d0f58178b67786f835
tests/n1ql/fts/index/fts_cf2_qf2_index.json
tests/n1ql/fts/index/fts_cf2_qf2_index.json
{ "name": "", "type": "fulltext-index", "params": { "doc_config": { "docid_prefix_delim": "", "docid_regexp": "", "mode": "type_field", "type_field": "type" }, "mapping": { "default_analyzer": "standard", "default_datetime_parser": "dateTimeOptional", "default...
{ "name": "", "type": "fulltext-index", "params": { "doc_config": { "docid_prefix_delim": "", "docid_regexp": "", "mode": "type_field", "type_field": "type" }, "mapping": { "default_analyzer": "standard", "default_datetime_parser": "dateTimeOptional", "default...
Index definition changed for CF2 & QF2 tests cases
Index definition changed for CF2 & QF2 tests cases Change-Id: Idc3a71539ec2cda798cf6b6c6691138ce054c6af Reviewed-on: http://review.couchbase.org/113664 Reviewed-by: Girish Benakappa <e8af562df6cefab41b723ede23264109c7837a25@couchbase.com> Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
JSON
apache-2.0
couchbase/perfrunner,couchbase/perfrunner,couchbase/perfrunner,couchbase/perfrunner,couchbase/perfrunner,couchbase/perfrunner
json
## Code Before: { "name": "", "type": "fulltext-index", "params": { "doc_config": { "docid_prefix_delim": "", "docid_regexp": "", "mode": "type_field", "type_field": "type" }, "mapping": { "default_analyzer": "standard", "default_datetime_parser": "dateTimeOptional"...
e88c1315829c08f7c89116b656db8d014c208497
tests/ami/requirements.txt
tests/ami/requirements.txt
git+https://github.com/apache/libcloud.git@trunk#egg=apache-libcloud paramiko==2.7.1 Jinja2==2.11.1
git+https://github.com/Kami/libcloud.git@paramiko_compression_and_keepalive#egg=apache-libcloud #git+https://github.com/apache/libcloud.git@trunk#egg=apache-libcloud paramiko==2.7.1 Jinja2==2.11.1
Test use libcloud version which utilizes keep alive and compression.
Test use libcloud version which utilizes keep alive and compression.
Text
apache-2.0
scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,scalyr/scalyr-agent-2,imron/scalyr-agent-2
text
## Code Before: git+https://github.com/apache/libcloud.git@trunk#egg=apache-libcloud paramiko==2.7.1 Jinja2==2.11.1 ## Instruction: Test use libcloud version which utilizes keep alive and compression. ## Code After: git+https://github.com/Kami/libcloud.git@paramiko_compression_and_keepalive#egg=apache-libcloud #git+h...
45737f5c296c0c802fcaca02f77cab2d38b4ec15
etc/centos/ansible/tasks/basic_tools.yml
etc/centos/ansible/tasks/basic_tools.yml
- name: install basic tools yum: name={{ item }} state=present with_items: - epel-release - http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - man - man-pages - zsh - tree - wget - bind-utils - nc - tmpwatch - ntp - cronie-anacron - libselinux-python ...
- name: install basic tools yum: name={{ item }} state=present with_items: - epel-release - http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - man - man-pages - zsh - tree - wget - bind-utils - nc - tmpwatch - ntp - cronie-anacron - libselinux-python ...
Add fuse-libs to basic tools
Add fuse-libs to basic tools
YAML
mit
masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles
yaml
## Code Before: - name: install basic tools yum: name={{ item }} state=present with_items: - epel-release - http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - man - man-pages - zsh - tree - wget - bind-utils - nc - tmpwatch - ntp - cronie-anacron - libs...
1ed6fad7409567c39155fa25ef58e3fe067a91c7
README.md
README.md
An online tool, located at [http://climate.qubs.ca/](http://climate.qubs.ca/), for visualizing QUBS real-time climate data sourced from the [API](http://climate.qubs.ca/api/). Written by [David Lougheed](mailto:david.lougheed@gmail.com). ## Dependencies Uses Bower for package management and Highcharts (not-for-profi...
An online tool, located at [http://climate.qubs.ca/](http://climate.qubs.ca/), for visualizing QUBS real-time climate data sourced from the [API](http://climate.qubs.ca/api/). Written by [David Lougheed](mailto:david.lougheed@gmail.com). ## Dependencies Uses [Bower](https://bower.io/) for package management and High...
Add installation and configuration instructions. Link to Bower.
Add installation and configuration instructions. Link to Bower.
Markdown
apache-2.0
qubs/climate-data-visualizer,qubs/climate-data-visualizer
markdown
## Code Before: An online tool, located at [http://climate.qubs.ca/](http://climate.qubs.ca/), for visualizing QUBS real-time climate data sourced from the [API](http://climate.qubs.ca/api/). Written by [David Lougheed](mailto:david.lougheed@gmail.com). ## Dependencies Uses Bower for package management and Highchart...
38ba78d555d1cc3990b130da8c78e0ee34419b03
package.json
package.json
{ "name": "republia-times", "version": "0.0.1", "description": "A port of the flash game Republia Times to the web.", "author": "Brandon Johnson <bjohn465+gihub@gmail.com>", "private": true, "scripts": { "build": "set NODE_ENV=production& webpack --progress --colors", "watch": "webpack -d --progress --colors ...
{ "name": "republia-times", "version": "0.0.1", "description": "A port of the flash game Republia Times to the web.", "author": "Brandon Johnson <bjohn465+gihub@gmail.com>", "private": true, "scripts": { "build": "set NODE_ENV=production& webpack --progress --colors", "watch": "webpack -d --progress --colors ...
Update dependencies to the latest versions
Update dependencies to the latest versions
JSON
isc
bjohn465/republia-times,bjohn465/republia-times
json
## Code Before: { "name": "republia-times", "version": "0.0.1", "description": "A port of the flash game Republia Times to the web.", "author": "Brandon Johnson <bjohn465+gihub@gmail.com>", "private": true, "scripts": { "build": "set NODE_ENV=production& webpack --progress --colors", "watch": "webpack -d --pr...
85fb8daa7c1db12ddfeead9bfd413d13734a45f0
requirements.txt
requirements.txt
cmd2==0.6.8 cryptography==2.3.1 jsonschema==2.6.0 lxml==4.2.1 ndg-httpsclient==0.5.0 pyasn1==0.4.3 pyOpenSSL==18.0.0 PyYAML==3.11 -e git+https://github.com/LabAdvComp/parcel.git@d2670ce65ef6ea3dda0b1bab56a3342bed675958#egg=parcel
cmd2==0.6.8 cryptography==2.3.1 jsonschema==2.6.0 lxml==4.2.1 ndg-httpsclient==0.5.0 pyasn1==0.4.3 pyOpenSSL==18.0.0 -e git+https://github.com/LabAdvComp/parcel.git@d2670ce65ef6ea3dda0b1bab56a3342bed675958#egg=parcel PyYAML==3.12
Update pyyaml from 3.11 to 3.12
Update pyyaml from 3.11 to 3.12
Text
apache-2.0
NCI-GDC/gdc-client,NCI-GDC/gdc-client
text
## Code Before: cmd2==0.6.8 cryptography==2.3.1 jsonschema==2.6.0 lxml==4.2.1 ndg-httpsclient==0.5.0 pyasn1==0.4.3 pyOpenSSL==18.0.0 PyYAML==3.11 -e git+https://github.com/LabAdvComp/parcel.git@d2670ce65ef6ea3dda0b1bab56a3342bed675958#egg=parcel ## Instruction: Update pyyaml from 3.11 to 3.12 ## Code After: cmd2==0.6....
26acf08c923fb6e5f578422c4ed6c063307c8dae
lib/light_params/lash.rb
lib/light_params/lash.rb
require 'active_model' module LightParams class Lash < Hash include PropertiesConfiguration include ActiveModel::Serializers::JSON def initialize(params = {}) LashBuilder.lash_params(self, params).each_pair do |k, v| self[k.to_sym] = v end end def self.name @name || su...
require 'active_model' module LightParams class Lash < Hash include PropertiesConfiguration include ActiveModel::Serializers::JSON def initialize(params = {}) LashBuilder.lash_params(self, params).each_pair do |k, v| self[k.to_sym] = v end end def self.name @name || su...
Add ability to parse from json with and without root element
Add ability to parse from json with and without root element
Ruby
mit
pniemczyk/light_params
ruby
## Code Before: require 'active_model' module LightParams class Lash < Hash include PropertiesConfiguration include ActiveModel::Serializers::JSON def initialize(params = {}) LashBuilder.lash_params(self, params).each_pair do |k, v| self[k.to_sym] = v end end def self.name ...
2088c985047c7997ed73da4b4a38cca9dba8d292
app/view/twig/email/pingtest.twig
app/view/twig/email/pingtest.twig
<p style="color: #204460;"><strong>This is a test e-mail from Bolt!</strong></p> <p></p> <p> This was sent from the Bolt site with the name {{ sitename }} and the IP address of {{ ip }}, by the user {{ user }} </p>
<p style="color: #204460;"><strong>This is a test e-mail from Bolt!</strong></p> <p></p> <p> This was sent from the Bolt site with the following details: <table> <tr><td><b>Site title</b></td><td>{{ sitename }}</td></tr> <tr><td><b>User name</b></td><td>{{ user }}</td></tr> <tr><td><b>IP address<...
Make email check Twig template a bit nicer
Make email check Twig template a bit nicer
Twig
mit
electrolinux/bolt,CarsonF/bolt,hugin2005/bolt,rarila/bolt,cdowdy/bolt,nikgo/bolt,one988/cm,electrolinux/bolt,Eiskis/bolt-base,Calinou/bolt,Intendit/bolt,richardhinkamp/bolt,Raistlfiren/bolt,pygillier/bolt,Raistlfiren/bolt,lenvanessen/bolt,bolt/bolt,hugin2005/bolt,cdowdy/bolt,kendoctor/bolt,tekjava/bolt,bolt/bolt,tekjav...
twig
## Code Before: <p style="color: #204460;"><strong>This is a test e-mail from Bolt!</strong></p> <p></p> <p> This was sent from the Bolt site with the name {{ sitename }} and the IP address of {{ ip }}, by the user {{ user }} </p> ## Instruction: Make email check Twig template a bit nicer ## Code After: <p st...
636f160c10c58d0ca7feb8cb1a8f746ee135746f
packages/jsonmvc-module-ui/src/fns/parsePatch.js
packages/jsonmvc-module-ui/src/fns/parsePatch.js
function parsePatch(x) { let reg = /(add|merge|remove)\s([\/[a-z0-9]+)(?:\s([0-9]+|\[[a-z0-9\-]+\]|\'[a-z0-9]+\'|\"[a-z0-9]+\"|{[a-z\s0-9{}"':,]+}))?/gi let found let results = [] while ((found = reg.exec(x)) !== null) { let op = found[1] let path = found[2] let value = found[3] let patch = ...
let text = '[a-z0-9\-+&\/]*' let op = '(add|merge|replace)' let separator = '\\s' let path = '([\\/[a-z0-9]+)' let valueObj = `({[a-z\\s0-9{}"':,]+})` let valueNumber = `-?(?:(?:[1-9]\d*)|0)\.?\d*` let valueText = `('.*?')` let patchReg = op + separator + path + `(?:\\s([0-9]+|\\[[a-z0-9\-]+\\]|\\'[a-z0-9]+\...
Add complex regexp matching for patches.
Add complex regexp matching for patches.
JavaScript
mit
jsonmvc/jsonmvc,jsonmvc/jsonmvc
javascript
## Code Before: function parsePatch(x) { let reg = /(add|merge|remove)\s([\/[a-z0-9]+)(?:\s([0-9]+|\[[a-z0-9\-]+\]|\'[a-z0-9]+\'|\"[a-z0-9]+\"|{[a-z\s0-9{}"':,]+}))?/gi let found let results = [] while ((found = reg.exec(x)) !== null) { let op = found[1] let path = found[2] let value = found[3] ...
43a277b6de8f6387d68533a4a5b2a1ee869202c6
js/src/util.js
js/src/util.js
/** Wrap DOM selector methods: * document.querySelector, * document.getElementById, * document.getElementsByClassName] */ const dom = { query(arg) { return document.querySelector(arg); }, id(arg) { return document.getElementById(arg); }, class(arg) { return document.getElementsByClassName(arg)...
/** Wrap DOM selector methods: * document.querySelector, * document.getElementById, * document.getElementsByClassName] */ const dom = { query(arg) { return document.querySelector(arg); }, id(arg) { return document.getElementById(arg); }, class(arg) { return document.getElementsByClassName(arg)...
Add properCase. Use 'for-of' statement in path.
Add properCase. Use 'for-of' statement in path.
JavaScript
mit
opentok/accelerator-core-js,adrice727/accelerator-core-js,opentok/accelerator-core-js,adrice727/accelerator-core-js
javascript
## Code Before: /** Wrap DOM selector methods: * document.querySelector, * document.getElementById, * document.getElementsByClassName] */ const dom = { query(arg) { return document.querySelector(arg); }, id(arg) { return document.getElementById(arg); }, class(arg) { return document.getElements...
a38d8429da6d7bdccd5a956fa9a4717282da84c7
webpack.production.config.js
webpack.production.config.js
const config = require("./webpack.config"); const webpack = require("webpack"); const cdnUrl = process.env.CDN_URL || "/"; config.plugins = (config.plugins || []).concat([ new webpack.DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify("production") }, SENTRY_DSN: JSON.stringify( "https...
const config = require("./webpack.config"); const webpack = require("webpack"); const cdnUrl = process.env.CDN_URL || "/"; config.devtool = "source-map"; config.plugins = (config.plugins || []).concat([ new webpack.DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify("production") }, SENTRY_D...
Enable source maps for prod
Enable source maps for prod
JavaScript
mit
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
javascript
## Code Before: const config = require("./webpack.config"); const webpack = require("webpack"); const cdnUrl = process.env.CDN_URL || "/"; config.plugins = (config.plugins || []).concat([ new webpack.DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify("production") }, SENTRY_DSN: JSON.stringi...
b176c6b6b4840847b627a610b3e3f20686cd5e74
app/constants/AppConstants.js
app/constants/AppConstants.js
export default { API_URL: 'https://api.hel.fi/respa/v1', DATE_FORMAT: 'YYYY-MM-DD', NOTIFICATION_DEFAULTS: { message: '', type: 'info', timeOut: 5000, hidden: false, }, REQUIRED_API_HEADERS: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, SUPPORTED_SEARCH_FIL...
export default { API_URL: 'https://api.hel.fi/respa/v1', DATE_FORMAT: 'YYYY-MM-DD', NOTIFICATION_DEFAULTS: { message: '', type: 'info', timeOut: 5000, hidden: false, }, REQUIRED_API_HEADERS: { 'Accept': 'application/json', 'Accept-Language': 'fi', 'Content-Type': 'application/json'...
Add Accept-Language header to all API requests
Add Accept-Language header to all API requests In the pilot version of the service the Accept-Language is always "fi". Closes #188.
JavaScript
mit
fastmonkeys/respa-ui
javascript
## Code Before: export default { API_URL: 'https://api.hel.fi/respa/v1', DATE_FORMAT: 'YYYY-MM-DD', NOTIFICATION_DEFAULTS: { message: '', type: 'info', timeOut: 5000, hidden: false, }, REQUIRED_API_HEADERS: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, SUPP...
171f915b482318ba0772b031651f33de8c18b18b
ansible/playbook.yml
ansible/playbook.yml
--- # This playbook will set up a vagrant box for generic LAMP development. # See the various roles (especially roles/*/tasks/main.yml) for more details. # Looks for the [devbox] section in the hosts file to determine which machines # to operate on. - hosts: t3devbox sudo: True # Looks for roles/{role}/tasks/main....
--- # This playbook will set up a vagrant box for generic LAMP development. # See the various roles (especially roles/*/tasks/main.yml) for more details. # Looks for the [devbox] section in the hosts file to determine which machines # to operate on. - hosts: t3devbox sudo: True vars_prompt: - name: bootstra...
Add prompt whether or not to run "bootstrap-webproject" role
[TASK] Add prompt whether or not to run "bootstrap-webproject" role
YAML
mit
benjaminrau/devbox
yaml
## Code Before: --- # This playbook will set up a vagrant box for generic LAMP development. # See the various roles (especially roles/*/tasks/main.yml) for more details. # Looks for the [devbox] section in the hosts file to determine which machines # to operate on. - hosts: t3devbox sudo: True # Looks for roles/{r...
25ec5f9e141aba19c1174ad6fdf9d0dfcbc89b58
Http/frontendRoutes.php
Http/frontendRoutes.php
<?php use Illuminate\Routing\Router; /** @var Router $router */ if (! App::runningInConsole()) { $router->get('{uri}', ['uses' => 'PublicController@uri', 'as' => 'page']); $router->get('/', ['uses' => 'PublicController@homepage', 'as' => 'homepage']); }
<?php use Illuminate\Routing\Router; /** @var Router $router */ if (! App::runningInConsole()) { $router->get('/', ['uses' => 'PublicController@homepage', 'as' => 'homepage']); $router->any('{uri}', ['uses' => 'PublicController@uri', 'as' => 'page'])->where('uri', '.*'); }
Allow to have slugs with multiple parts.
Allow to have slugs with multiple parts.
PHP
mit
AsgardCms/Page,oimken/Page,AsgardCms/Page,oimken/Page,mikemand/Page,mikemand/Page
php
## Code Before: <?php use Illuminate\Routing\Router; /** @var Router $router */ if (! App::runningInConsole()) { $router->get('{uri}', ['uses' => 'PublicController@uri', 'as' => 'page']); $router->get('/', ['uses' => 'PublicController@homepage', 'as' => 'homepage']); } ## Instruction: Allow to have slugs wit...
3afe29d7e96b691f74aa7e8ce01f60a2cebdc499
src/Styleguide/Elements/Separator.tsx
src/Styleguide/Elements/Separator.tsx
import React from "react" import styled from "styled-components" import { space, SpaceProps, themeGet } from "styled-system" const HR = styled.div.attrs<SpaceProps>({})` ${space}; border-top: 1px solid ${themeGet("colors.black10")}; width: 100%; ` export class Separator extends React.Component { render() { ...
// @ts-ignore import React from "react" import { color } from "@artsy/palette" import styled from "styled-components" import { space, SpaceProps } from "styled-system" interface SeparatorProps extends SpaceProps {} export const Separator = styled.div.attrs<SeparatorProps>({})` ${space}; border-top: 1px solid ${c...
Remove notion of spacing from separator
Remove notion of spacing from separator
TypeScript
mit
artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction
typescript
## Code Before: import React from "react" import styled from "styled-components" import { space, SpaceProps, themeGet } from "styled-system" const HR = styled.div.attrs<SpaceProps>({})` ${space}; border-top: 1px solid ${themeGet("colors.black10")}; width: 100%; ` export class Separator extends React.Component {...
8f1fd79bd0d1901b2385c196e5b1abc87b80b42e
CHANGELOG.md
CHANGELOG.md
Change Log ========== Version 1.0 *(2013-07-10)* ---------------------------- Initial release.
Change Log ========== Version 1.1 *(2013-08-28)* ---------------------------- * When the servlet is mounted at `/foo/*`, requests to `/foo` now succeed, setting `PATH_INFO` to the empty string. Version 1.0 *(2013-07-10)* ---------------------------- Initial release.
Document pending changes for this release.
Document pending changes for this release.
Markdown
apache-2.0
square/rack-servlet,square/rack-servlet
markdown
## Code Before: Change Log ========== Version 1.0 *(2013-07-10)* ---------------------------- Initial release. ## Instruction: Document pending changes for this release. ## Code After: Change Log ========== Version 1.1 *(2013-08-28)* ---------------------------- * When the servlet is mounted at `/foo/*`, requests...
072526a6ec1794edc0f729f2ecb66c47ed38abb9
harmony/extensions/rng.py
harmony/extensions/rng.py
import random from discord.ext import commands class RNG: def __init__(self, bot): self.bot = bot @commands.command() async def roll(self, dice: str = None): """Roll some dice. Keyword arguments: dice -- number of dice (X) and faces (Y) in the format XdY """ ...
import random from discord.ext import commands class RNG: def __init__(self, bot): self.bot = bot @commands.command() async def roll(self, dice: str): """Roll some dice. Keyword arguments: dice -- number of dice (X) and faces (Y) in the format XdY """ try...
Make roll better and worse
Make roll better and worse
Python
apache-2.0
knyghty/harmony
python
## Code Before: import random from discord.ext import commands class RNG: def __init__(self, bot): self.bot = bot @commands.command() async def roll(self, dice: str = None): """Roll some dice. Keyword arguments: dice -- number of dice (X) and faces (Y) in the format XdY ...
f214aadafa45d7023ce276c9ea6d1200426f3478
test/helper.rb
test/helper.rb
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda-context' unless ENV['TEST_GEM'] $LOAD_PATH.unshift(...
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda-context' unless ENV['TEST_GEM'] puts "test/helper: ...
Comment when ../lib added to load path
Comment when ../lib added to load path
Ruby
mit
ianheggie/inteltech_sms
ruby
## Code Before: require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda-context' unless ENV['TEST_GEM'] $LO...
62f4c6b7d24176284054b13c4e1e9b6d631c7b42
basicTest.py
basicTest.py
import slither, pygame, time snakey = slither.Sprite() snakey.setCostumeByName("costume0") SoExcited = slither.Sprite() SoExcited.addCostume("SoExcited.png", "avatar") SoExcited.setCostumeByNumber(0) SoExcited.goTo(300, 300) SoExcited.setScaleTo(0.33) slither.slitherStage.setColor(40, 222, 40) screen = slither.se...
import slither, pygame, time snakey = slither.Sprite() snakey.setCostumeByName("costume0") SoExcited = slither.Sprite() SoExcited.addCostume("SoExcited.png", "avatar") SoExcited.setCostumeByNumber(0) SoExcited.goTo(300, 300) SoExcited.setScaleTo(0.33) slither.slitherStage.setColor(40, 222, 40) screen = slither.se...
Update basic test Now uses the new format by @BookOwl.
Update basic test Now uses the new format by @BookOwl.
Python
mit
PySlither/Slither,PySlither/Slither
python
## Code Before: import slither, pygame, time snakey = slither.Sprite() snakey.setCostumeByName("costume0") SoExcited = slither.Sprite() SoExcited.addCostume("SoExcited.png", "avatar") SoExcited.setCostumeByNumber(0) SoExcited.goTo(300, 300) SoExcited.setScaleTo(0.33) slither.slitherStage.setColor(40, 222, 40) scr...
fb2bd5aba24cf1144d381403ab82f7da0a78fedf
src/components/WeaveElement.js
src/components/WeaveElement.js
import React, { Component } from 'react'; import '../styles/WeaveElement.css'; import '../styles/Scheme4.css'; class WeaveElement extends Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } componentState() { const {row, col, currentState} = this.props; if (cu...
import React, { Component } from 'react'; import '../styles/WeaveElement.css'; import '../styles/Scheme4.css'; class WeaveElement extends Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } getThreadingNumber() { const {col, currentState} = this.props; const th...
Add more methods for weave's intersection
Add more methods for weave's intersection
JavaScript
mit
nobus/weaver,nobus/weaver
javascript
## Code Before: import React, { Component } from 'react'; import '../styles/WeaveElement.css'; import '../styles/Scheme4.css'; class WeaveElement extends Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } componentState() { const {row, col, currentState} = this.pr...
6388a8bd4c03578433710fe728af2f5e3d3b17bf
js/views/BookmarkMenu.module.css
js/views/BookmarkMenu.module.css
/* Bookmark icon */ .iconBookmark { margin-left: 4px; z-index: 1060; /* in front of KmPlot dialog */ } /* Copy bookmark input */ .bookmarkInput { bottom: 0; left: 0; opacity: 0; pointer-events: none; position: fixed; /* Take input out of flow of app controls */ } /* Import input */ .importInput[type='file'] ...
/* Bookmark icon */ .iconBookmark { margin-left: 4px; /* Using !important, because I can't out why the css ordering is wrong */ z-index: 1060 !important; /* in front of KmPlot dialog */ } /* Copy bookmark input */ .bookmarkInput { bottom: 0; left: 0; opacity: 0; pointer-events: none; position: fixed; /* Take...
Raise Bookmark menu over KM.
Raise Bookmark menu over KM.
CSS
apache-2.0
acthp/ucsc-xena-client,ucscXena/ucsc-xena-client,acthp/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client,acthp/ucsc-xena-client,ucscXena/ucsc-xena-client,ucscXena/ucsc-xena-client
css
## Code Before: /* Bookmark icon */ .iconBookmark { margin-left: 4px; z-index: 1060; /* in front of KmPlot dialog */ } /* Copy bookmark input */ .bookmarkInput { bottom: 0; left: 0; opacity: 0; pointer-events: none; position: fixed; /* Take input out of flow of app controls */ } /* Import input */ .importInp...
d093295d2a63add1bdef03a0388367851a83c687
modules/interfaces/type-test/helpers/sample-type-map.ts
modules/interfaces/type-test/helpers/sample-type-map.ts
import { GeneralTypeMap } from "../../src"; export interface SampleTypeMap extends GeneralTypeMap { entities: { member: { id: string; name: string }; message: { id: string; body: string; }; }; customQueries: { countMessagesOfMember: { params: { memberId: string }; result: ...
import { GeneralTypeMap } from "../../src"; export interface SampleTypeMap extends GeneralTypeMap { entities: { member: { id: string; name: string }; message: { id: string; body: string; }; }; customQueries: { countMessagesOfMember: { params: { memberId: string }; result: ...
Add test for custom session values
feat(interfaces): Add test for custom session values
TypeScript
apache-2.0
phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl
typescript
## Code Before: import { GeneralTypeMap } from "../../src"; export interface SampleTypeMap extends GeneralTypeMap { entities: { member: { id: string; name: string }; message: { id: string; body: string; }; }; customQueries: { countMessagesOfMember: { params: { memberId: string }...
e78b3f53150a5f1c170b860f8719e982cf1c6f9e
integration/main.py
integration/main.py
import os import sys from spec import Spec, skip from invoke import run class Integration(Spec): def setup(self): from tessera.application import db # Ensure we have a clean db target. self.dbpath = db.engine.url.database msg = "You seem to have a db in the default location ({0}) ...
import os import sys from spec import Spec, skip, eq_ from invoke import run class Integration(Spec): def setup(self): from tessera.application import db # Ensure we have a clean db target. self.dbpath = db.engine.url.database msg = "You seem to have a db in the default location (...
Fix state bleed, add fixture import test
Fix state bleed, add fixture import test
Python
apache-2.0
section-io/tessera,urbanairship/tessera,tessera-metrics/tessera,jmptrader/tessera,section-io/tessera,urbanairship/tessera,aalpern/tessera,section-io/tessera,jmptrader/tessera,filippog/tessera,aalpern/tessera,aalpern/tessera,Slach/tessera,Slach/tessera,urbanairship/tessera,urbanairship/tessera,Slach/tessera,jmptrader/te...
python
## Code Before: import os import sys from spec import Spec, skip from invoke import run class Integration(Spec): def setup(self): from tessera.application import db # Ensure we have a clean db target. self.dbpath = db.engine.url.database msg = "You seem to have a db in the default...
77f69e6f30817e31a34203cce6dbdbdc6eed86dd
server/app.js
server/app.js
// node dependencies var express = require('express'); var db = require('./db'); var passport = require('passport'); var morgan = require('morgan'); var parser = require('body-parser'); // custom dependencies var db = require('../db/Listings.js'); var db = require('../db/Users.js'); var db = require('../db/Categories...
// node dependencies var express = require('express'); var session = require('express-session'); var passport = require('passport'); var morgan = require('morgan'); var parser = require('body-parser'); // custom dependencies var db = require('../db/db.js'); // var db = require('../db/Listings.js'); // var db = require...
Fix db-connect commit (to working server state!)
Fix db-connect commit (to working server state!) - Note: eventually, the node directive that requires 'db.js' will be replaced by the commented out directives that require the Listings/Users/Categories models.
JavaScript
mit
aphavichitr/hackifieds,glistening-gibus/hackifieds,Hackifieds/hackifieds,glistening-gibus/hackifieds,Hackifieds/hackifieds,glistening-gibus/hackifieds,aphavichitr/hackifieds
javascript
## Code Before: // node dependencies var express = require('express'); var db = require('./db'); var passport = require('passport'); var morgan = require('morgan'); var parser = require('body-parser'); // custom dependencies var db = require('../db/Listings.js'); var db = require('../db/Users.js'); var db = require('...
e13073c9cc907022560e7ad6fe5f6d4f079bfd26
share/migrations/_common/upgrade/2-3/002-insert_permissions.pl
share/migrations/_common/upgrade/2-3/002-insert_permissions.pl
use strict; use warnings; use DBIx::Class::Migration::RunScript; migrate { my $schema = shift->schema; my $permission_rs = $schema->resultset('Permission'); $permission_rs->populate ([ { name => 'doc', description => 'User can view documents', },{ ...
use strict; use warnings; use DBIx::Class::Migration::RunScript; migrate { my $schema = shift->schema; my $permission_rs = $schema->resultset('Permission'); $permission_rs->populate ([ { name => 'doc', description => 'User can view documents', },{ ...
Add permission to view all project issues
Add permission to view all project issues
Perl
agpl-3.0
ctrlo/Brass,ctrlo/Brass,ctrlo/Brass,ctrlo/Brass
perl
## Code Before: use strict; use warnings; use DBIx::Class::Migration::RunScript; migrate { my $schema = shift->schema; my $permission_rs = $schema->resultset('Permission'); $permission_rs->populate ([ { name => 'doc', description => 'User can view documents', ...
ec7ae3a9bbccc4a3ed247ea56e6c333af3fa8031
tests/unit/components/checkbox/base.spec.js
tests/unit/components/checkbox/base.spec.js
import React from 'react'; import ReactDOM from 'react-dom'; import { Simulate } from 'react-addons-test-utils'; import Checkbox from '../../../../src/components/checkbox.jsx'; import toggleableTests from '../toggleable/base.spec.js'; import { render } from '../../../helpers/rendering.js'; import $ from 'jquery'; des...
import React from 'react'; import ReactDOM from 'react-dom'; import { Simulate } from 'react-addons-test-utils'; import Checkbox from '../../../../src/components/checkbox.jsx'; import toggleableTests from '../toggleable/base.spec.js'; import { render } from '../../../helpers/rendering.js'; import $ from 'jquery'; des...
Refactor <Checkbox> tests to reduce duplication
Refactor <Checkbox> tests to reduce duplication
JavaScript
mit
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
javascript
## Code Before: import React from 'react'; import ReactDOM from 'react-dom'; import { Simulate } from 'react-addons-test-utils'; import Checkbox from '../../../../src/components/checkbox.jsx'; import toggleableTests from '../toggleable/base.spec.js'; import { render } from '../../../helpers/rendering.js'; import $ from...
8e8e3c1027c361c3edf1053131fa2aa609f22a57
package.json
package.json
{ "name": "react-page-middleware", "version": "0.4.0", "description": "Connect middleware for rendering pages with React JavaScript Library.", "main": "src/index.js", "dependencies": { "node-terminal": "0.1.1", "async": "0.2.9", "es5-shim": "~2.1.0", "React": "git://github.com/facebook/react.g...
{ "name": "react-page-middleware", "version": "0.4.0", "description": "Connect middleware for rendering pages with React JavaScript Library.", "main": "src/index.js", "dependencies": { "async": "0.2.9", "browser-builtins": "1.0.7", "convert-source-map": "0.2.6", "es5-shim": "^4.1.0", "node...
Update deps, don't point at git repos
Update deps, don't point at git repos We don't actually need to point at react git repo, nor node-haste. So don't.
JSON
apache-2.0
facebookarchive/react-page-middleware,frantic/react-page-middleware,kwangkim/react-page-middleware
json
## Code Before: { "name": "react-page-middleware", "version": "0.4.0", "description": "Connect middleware for rendering pages with React JavaScript Library.", "main": "src/index.js", "dependencies": { "node-terminal": "0.1.1", "async": "0.2.9", "es5-shim": "~2.1.0", "React": "git://github.com/...
4abac4cb7a6578ddcac1fbbb8d2262b3d6b0f593
CMakeLists.txt
CMakeLists.txt
CMAKE_MINIMUM_REQUIRED (VERSION 2.8) PROJECT(SpikeDB) IF(APPLE) SET(BOOST_ROOT "/opt/local/") SET(CMAKE_LIBRARY_PATH /opt/local/lib ${CMAKE_LIBRARY_PATH} ) SET(CMAKE_MODULE_PATH /opt/local/lib) SET(PYTHON_INCLUDE_PATH "/opt/local/Library/Frameworks/Python.framework/Headers") SET(PYTHON_LIBRARIES "/opt/local/lib/...
CMAKE_MINIMUM_REQUIRED (VERSION 2.8) PROJECT(SpikeDB) IF(APPLE) SET(BOOST_ROOT "/opt/local/") SET(CMAKE_LIBRARY_PATH /opt/local/lib ${CMAKE_LIBRARY_PATH} ) SET(CMAKE_MODULE_PATH /opt/local/lib) SET(PYTHON_INCLUDE_PATH "/opt/local/Library/Frameworks/Python.framework/Headers") SET(PYTHON_LIBRARIES "/opt/local/lib/...
Fix apple (macports) specific line in cmake
Fix apple (macports) specific line in cmake
Text
bsd-3-clause
baubie/SpikeDB,baubie/SpikeDB,baubie/SpikeDB,baubie/SpikeDB
text
## Code Before: CMAKE_MINIMUM_REQUIRED (VERSION 2.8) PROJECT(SpikeDB) IF(APPLE) SET(BOOST_ROOT "/opt/local/") SET(CMAKE_LIBRARY_PATH /opt/local/lib ${CMAKE_LIBRARY_PATH} ) SET(CMAKE_MODULE_PATH /opt/local/lib) SET(PYTHON_INCLUDE_PATH "/opt/local/Library/Frameworks/Python.framework/Headers") SET(PYTHON_LIBRARIES ...
a01333ee1dbef13bd6b8df38f30ddc02887f75b9
app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def absolute_url(relative_url) relative_url = url_for(relative_url) unless relative_url.is_a? String (URI(request.url) + relative_url).to_s end def brand content_tag :div, class: 'imgshr-brand' do icon(:picture, class: 'imgshr-icon') + 'IMGSHR' end end def cont...
module ApplicationHelper def absolute_url(relative_url) relative_url = url_for(relative_url) unless relative_url.is_a? String (URI(request.url) + relative_url).to_s end def brand content_tag :div, class: 'imgshr-brand' do icon(:picture, class: 'imgshr-icon') + 'IMGSHR' end end def cont...
Fix exception in gallery_referer? helper, if referer nil.
Fix exception in gallery_referer? helper, if referer nil.
Ruby
agpl-3.0
nning/imgshr,nning/imgshr,nning/imgshr,nning/imgshr
ruby
## Code Before: module ApplicationHelper def absolute_url(relative_url) relative_url = url_for(relative_url) unless relative_url.is_a? String (URI(request.url) + relative_url).to_s end def brand content_tag :div, class: 'imgshr-brand' do icon(:picture, class: 'imgshr-icon') + 'IMGSHR' end ...
f936e1b869713c43d260827f46b8e819b02ed741
src/main/java/net/md_5/bungee/command/CommandAlert.java
src/main/java/net/md_5/bungee/command/CommandAlert.java
package net.md_5.bungee.command; import net.md_5.bungee.BungeeCord; import net.md_5.bungee.ChatColor; import net.md_5.bungee.Permission; import net.md_5.bungee.UserConnection; public class CommandAlert extends Command { @Override public void execute(CommandSender sender, String[] args) { if (getP...
package net.md_5.bungee.command; import net.md_5.bungee.BungeeCord; import net.md_5.bungee.ChatColor; import net.md_5.bungee.Permission; import net.md_5.bungee.UserConnection; public class CommandAlert extends Command { @Override public void execute(CommandSender sender, String[] args) { if (getP...
Fix &h not being removed from the message properly
Fix &h not being removed from the message properly
Java
bsd-3-clause
dentmaged/BungeeCord,LinEvil/BungeeCord,BlueAnanas/BungeeCord,ewized/BungeeCord,starlis/BungeeCord,dentmaged/BungeeCord,mariolars/BungeeCord,xxyy/BungeeCord,Xetius/BungeeCord,LetsPlayOnline/BungeeJumper,starlis/BungeeCord,GingerGeek/BungeeCord,BlueAnanas/BungeeCord,Yive/BungeeCord,GamesConMCGames/Bungeecord,ewized/Bung...
java
## Code Before: package net.md_5.bungee.command; import net.md_5.bungee.BungeeCord; import net.md_5.bungee.ChatColor; import net.md_5.bungee.Permission; import net.md_5.bungee.UserConnection; public class CommandAlert extends Command { @Override public void execute(CommandSender sender, String[] args) { ...
6fcc0a95349ad6bad15d4f8b06c34436e5c97d29
roles/go/tasks/main.yml
roles/go/tasks/main.yml
--- - name: gocode file: path={{ home_dir }}/gocode state=directory tags: go - name: go get packages command: go get {{ item }} with_items: "{{ go_packages }}" ignore_errors: yes tags: go # https://gist.github.com/bryanl/465a188d8495a2457fa8 - name: godoc launchctl config template: src: godoc.plist ...
--- - name: GOPATH dir file: path: "{{ home_dir }}/go" state: directory tags: go - name: go get packages command: go get {{ item }} with_items: "{{ go_packages }}" ignore_errors: yes tags: go # https://gist.github.com/bryanl/465a188d8495a2457fa8 - name: godoc launchctl config template: src: ...
Use the new GOPATH default
Use the new GOPATH default
YAML
mit
geetarista/mac-ansible
yaml
## Code Before: --- - name: gocode file: path={{ home_dir }}/gocode state=directory tags: go - name: go get packages command: go get {{ item }} with_items: "{{ go_packages }}" ignore_errors: yes tags: go # https://gist.github.com/bryanl/465a188d8495a2457fa8 - name: godoc launchctl config template: s...
e0ca4330b46d6c8f27befeefa7656b0a89331e5b
server/server.spec.js
server/server.spec.js
import Server from './server'; import { MockSocket } from './com/mocks'; describe('Server', function() { beforeEach(function() { this.server = new Server(); }); describe('connection of new client', function() { beforeEach(function() { this.client = new MockSocket(); this.server.connect(this.client); ...
import Server from './server'; import { MockSocket } from './com/mocks'; describe('Server', function() { beforeEach(function() { this.server = new Server(); }); describe('connection of new client', function() { beforeEach(function() { this.client = new MockSocket(); this.server.connect(this.client); ...
Add tests about the server.
Add tests about the server.
JavaScript
mit
Kineolyan/Catane,Kineolyan/Catane
javascript
## Code Before: import Server from './server'; import { MockSocket } from './com/mocks'; describe('Server', function() { beforeEach(function() { this.server = new Server(); }); describe('connection of new client', function() { beforeEach(function() { this.client = new MockSocket(); this.server.connect(t...
ebebe5f139fb2aa67a793ecde64396b70fb773eb
README.md
README.md
Just type ```shell rubyweb [document_root] ``` at the command line. For example: ```shell rubyweb ~/web/ ``` Will serve pages from `$HOME/web`. If you leave off the document root, it will default to your current working directory.
```shell gem install rubyweb rubyweb ``` ## Use Just type ```shell rubyweb [document_root] ``` at the command line. For example: ```shell rubyweb ~/web/ ``` Will serve pages from `$HOME/web`. If you leave off the document root, it will default to your current working directory. ## Note Running `rubyweb` at ...
Add note about ruby -run version
Add note about ruby -run version
Markdown
mit
allolex/rubyweb
markdown
## Code Before: Just type ```shell rubyweb [document_root] ``` at the command line. For example: ```shell rubyweb ~/web/ ``` Will serve pages from `$HOME/web`. If you leave off the document root, it will default to your current working directory. ## Instruction: Add note about ruby -run version ## Code After: ...
b17e39436bde57558c1a9d6e70330a51dd1d0d19
website/addons/osffiles/utils.py
website/addons/osffiles/utils.py
from website.addons.osffiles.exceptions import FileNotFoundError def get_versions(filename, node): """Return file versions for a :class:`NodeFile`. :raises: FileNotFoundError if file does not exists for the node. """ try: return node.files_versions[filename.replace('.', '_')] except KeyEr...
from website.addons.osffiles.exceptions import FileNotFoundError def get_versions(filename, node): """Return IDs for a file's version records. :param str filename: The name of the file. :param Node node: The node which has the requested file. :return: List of ids (strings) for :class:`NodeFile` recor...
Clarify documentation for get_versions and get_latest_version_number.
Clarify documentation for get_versions and get_latest_version_number.
Python
apache-2.0
bdyetton/prettychart,Johnetordoff/osf.io,caneruguz/osf.io,ZobairAlijan/osf.io,brandonPurvis/osf.io,arpitar/osf.io,GageGaskins/osf.io,DanielSBrown/osf.io,brianjgeiger/osf.io,fabianvf/osf.io,caseyrygt/osf.io,dplorimer/osf,MerlinZhang/osf.io,zkraime/osf.io,zkraime/osf.io,hmoco/osf.io,lamdnhan/osf.io,cosenal/osf.io,lyndsys...
python
## Code Before: from website.addons.osffiles.exceptions import FileNotFoundError def get_versions(filename, node): """Return file versions for a :class:`NodeFile`. :raises: FileNotFoundError if file does not exists for the node. """ try: return node.files_versions[filename.replace('.', '_')] ...
b42d2aa652b987865d3a6f55f601b98f21a76137
lib/assets/javascripts/builder/editor/layers/layer-content-views/legend/size/legend-size-types.js
lib/assets/javascripts/builder/editor/layers/layer-content-views/legend/size/legend-size-types.js
var _ = require('underscore'); var LegendTypes = require('builder/editor/layers/layer-content-views/legend/legend-types'); module.exports = [ { value: LegendTypes.NONE, tooltipTranslationKey: 'editor.legend.tooltips.style.none', legendIcon: require('builder/editor/layers/layer-content-views/legend/carous...
var _ = require('underscore'); var LegendTypes = require('builder/editor/layers/layer-content-views/legend/legend-types'); var styleHelper = require('builder/helpers/style'); module.exports = [ { value: LegendTypes.NONE, tooltipTranslationKey: 'editor.legend.tooltips.style.none', legendIcon: require('bui...
Refactor bubble legend compatibility rules with styles for clarity
Refactor bubble legend compatibility rules with styles for clarity
JavaScript
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
javascript
## Code Before: var _ = require('underscore'); var LegendTypes = require('builder/editor/layers/layer-content-views/legend/legend-types'); module.exports = [ { value: LegendTypes.NONE, tooltipTranslationKey: 'editor.legend.tooltips.style.none', legendIcon: require('builder/editor/layers/layer-content-vie...
e580e70b617790e6785b59217c09ca746c56e56a
server.js
server.js
var express = require('express'), app = express(); var scores = require('./server/routes/scores'); var users = require('./server/routes/users'); var chats = require('./server/routes/chats'); var rooms = require('./server/routes/rooms'); var paints = require('./server/routes/pictures'); var bodyParser = require('bod...
var express = require('express'), app = express(); var scores = require('./server/routes/scores'); var users = require('./server/routes/users'); var chats = require('./server/routes/chats'); var rooms = require('./server/routes/rooms'); var paints = require('./server/routes/pictures'); var bodyParser = require('bod...
Update mongoDB address by env.
Update mongoDB address by env.
JavaScript
apache-2.0
appsdev01/rollingpaint,appsdev01/rollingpaint
javascript
## Code Before: var express = require('express'), app = express(); var scores = require('./server/routes/scores'); var users = require('./server/routes/users'); var chats = require('./server/routes/chats'); var rooms = require('./server/routes/rooms'); var paints = require('./server/routes/pictures'); var bodyParse...
0b1a7c76b65eb53fdbd60126c8fc52e9a7b361cd
templates/settings.html
templates/settings.html
<!DOCTYPE html> <html> <head> <title>Settings - Timpani</title> <link href="/static/libs/pure/pure-min.css" rel="stylesheet"> <link href="/static/css/settings.css" rel="stylesheet"> </head> <body> {% include "admin_toolbar.html" %} <div id="main-container" class="container"> <form class="pure-form" action="/sett...
<!DOCTYPE html> <html> <head> <title>Settings - Timpani</title> <link href="/static/libs/pure/pure-min.css" rel="stylesheet"> <link href="/static/css/settings.css" rel="stylesheet"> </head> <body> {% include "admin_toolbar.html" %} <div id="main-container" class="container"> <form class="pure-form" action="/sett...
Add subtitle input to template
Add subtitle input to template
HTML
mit
ollien/Timpani,ollien/Timpani,ollien/Timpani
html
## Code Before: <!DOCTYPE html> <html> <head> <title>Settings - Timpani</title> <link href="/static/libs/pure/pure-min.css" rel="stylesheet"> <link href="/static/css/settings.css" rel="stylesheet"> </head> <body> {% include "admin_toolbar.html" %} <div id="main-container" class="container"> <form class="pure-for...
0e1ae4134ebcffa5eb121e8ee757009dc1a4b0e2
scripts/pre-deploy.sh
scripts/pre-deploy.sh
set -e # define color RED='\033[0;31m' NC='\033[0m' # No Color # 0.1 check if on master if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then echo "${RED}Not on master, please checkout master branch before running this script${NC}" exit 1 fi # 0.2 Check if all files are committed if [ -z "$(git status -...
set -e # define color RED='\033[0;31m' NC='\033[0m' # No Color # 0.1 check if on master if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then echo "${RED}Not on master, please checkout master branch before running this script${NC}" exit 1 fi # 0.2 Check if all files are committed if [ -z "$(git status -...
Update deploy script to check if a sibling `schema` repository exists.
Update deploy script to check if a sibling `schema` repository exists. cc: da39a3ee5e6b4b0d3255bfef95601890afd80709@domoritz
Shell
bsd-3-clause
uwdata/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite,vega/vega-lite
shell
## Code Before: set -e # define color RED='\033[0;31m' NC='\033[0m' # No Color # 0.1 check if on master if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then echo "${RED}Not on master, please checkout master branch before running this script${NC}" exit 1 fi # 0.2 Check if all files are committed if [ -z...
727b7206e69a2b7d8bc303821d537ade315c310e
webpack-aot.config.js
webpack-aot.config.js
'use strict'; const path = require('path'); const webpackConfig = require('./webpack.config.js'); const loaders = require('./webpack/loaders'); const AotPlugin = require('@ngtools/webpack').AotPlugin; webpackConfig.module.rules = [ loaders.tslint, loaders.ts, loaders.html, loaders.globalCss, loaders.compone...
'use strict'; const path = require('path'); const webpackConfig = require('./webpack.config.js'); const loaders = require('./webpack/loaders'); const AotPlugin = require('@ngtools/webpack').AotPlugin; webpackConfig.module.rules = [ loaders.tslint, loaders.ts, loaders.html, { test: /\.css$/, use: 'raw-loader',...
Handle 3rd party components that use styleUrls for CSS
Handle 3rd party components that use styleUrls for CSS
JavaScript
mit
rangle/angular2-starter,rangle/angular2-starter,rangle/angular2-starter
javascript
## Code Before: 'use strict'; const path = require('path'); const webpackConfig = require('./webpack.config.js'); const loaders = require('./webpack/loaders'); const AotPlugin = require('@ngtools/webpack').AotPlugin; webpackConfig.module.rules = [ loaders.tslint, loaders.ts, loaders.html, loaders.globalCss, ...
72f84b49ea9781f3252c49a1805c0ce19af5c635
corehq/apps/case_search/dsl_utils.py
corehq/apps/case_search/dsl_utils.py
from django.utils.translation import gettext as _ from eulxml.xpath.ast import FunctionCall, UnaryExpression, serialize from corehq.apps.case_search.exceptions import ( CaseFilterError, XPathFunctionException, ) from corehq.apps.case_search.xpath_functions import XPATH_VALUE_FUNCTIONS def unwrap_value(value...
from django.utils.translation import gettext as _ from eulxml.xpath.ast import FunctionCall, UnaryExpression, serialize from corehq.apps.case_search.exceptions import ( CaseFilterError, XPathFunctionException, ) from corehq.apps.case_search.xpath_functions import XPATH_VALUE_FUNCTIONS def unwrap_value(value...
Revert "support unwrapping of basic types"
Revert "support unwrapping of basic types" This reverts commit 86a5a1c8
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
python
## Code Before: from django.utils.translation import gettext as _ from eulxml.xpath.ast import FunctionCall, UnaryExpression, serialize from corehq.apps.case_search.exceptions import ( CaseFilterError, XPathFunctionException, ) from corehq.apps.case_search.xpath_functions import XPATH_VALUE_FUNCTIONS def un...
d83deb887dad8e41a23c74d45bcfe52d8970969d
website/templates/emails/prereg_reminder.html.mako
website/templates/emails/prereg_reminder.html.mako
<%inherit file="notify_base.mako"/> <%def name="content()"> <div style="margin: 40px;"> <br> Dear ${fullname}, <br><br> You have an unsubmitted preregistration on the Open Science Framework that could be eligible for a $1,000 prize as part of the <a href="https://cos.io/prereg">Prere...
<%inherit file="notify_base.mako"/> <%def name="content()"> <div style="margin: 40px;"> <br> Dear ${fullname}, <br><br> You have an unsubmitted preregistration on the Open Science Framework that could be eligible for a $1,000 prize as part of the Prereg Challenge. If you would like t...
Remove link to prereg challenge
Remove link to prereg challenge
Mako
apache-2.0
mattclark/osf.io,Johnetordoff/osf.io,cslzchen/osf.io,cslzchen/osf.io,binoculars/osf.io,aaxelb/osf.io,HalcyonChimera/osf.io,pattisdr/osf.io,HalcyonChimera/osf.io,Johnetordoff/osf.io,laurenrevere/osf.io,sloria/osf.io,chennan47/osf.io,caseyrollins/osf.io,leb2dg/osf.io,mfraezz/osf.io,brianjgeiger/osf.io,baylee-d/osf.io,fel...
mako
## Code Before: <%inherit file="notify_base.mako"/> <%def name="content()"> <div style="margin: 40px;"> <br> Dear ${fullname}, <br><br> You have an unsubmitted preregistration on the Open Science Framework that could be eligible for a $1,000 prize as part of the <a href="https://cos....
1aaa8efe3b92b32b147c3ca4156e3149c6803736
src/main/assembly/secor.xml
src/main/assembly/secor.xml
<?xml version="1.0" encoding="UTF-8"?> <assembly> <id>bin</id> <baseDirectory/> <formats> <format>tar.gz</format> </formats> <fileSets> <fileSet> <directory>src/main/scripts</directory> <outputDirectory>scripts</outputDirectory> <includes> ...
<?xml version="1.0" encoding="UTF-8"?> <assembly> <id>bin</id> <baseDirectory>adgear-secor-beh-${project.version}</baseDirectory> <formats> <format>tar.gz</format> </formats> <fileSets> <fileSet> <directory>src/main/scripts</directory> <outputDirectory>scripts...
Set baseDirectory in distribution config.
Set baseDirectory in distribution config.
XML
apache-2.0
adgear/secor,adgear/secor
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <assembly> <id>bin</id> <baseDirectory/> <formats> <format>tar.gz</format> </formats> <fileSets> <fileSet> <directory>src/main/scripts</directory> <outputDirectory>scripts</outputDirectory> <in...
d27cf39740127f1dec2c8d84277d6db2e57f44b8
recipes/configure.rb
recipes/configure.rb
include_recipe 'gitlab-omnibus::install' template '/etc/gitlab/gitlab.rb' do variables( external_url: node['gitlab-omnibus']['external_url'] ) mode 0600 notifies :run, 'execute[gitlab-ctl reconfigure]' end
include_recipe 'gitlab-omnibus::install' template '/etc/gitlab/gitlab.rb' do variables( external_url: node['gitlab-omnibus']['external_url'], enable_tls: node['gitlab-omnibus']['enable_tls'], redirect_http_to_https: node['gitlab-omnibus']['nginx']['redirect_http_to_https'], ssl_certificate: node['gi...
Add more variables to template resource for gitlab.rb.
Add more variables to template resource for gitlab.rb.
Ruby
apache-2.0
xhost-cookbooks/gitlab-omnibus
ruby
## Code Before: include_recipe 'gitlab-omnibus::install' template '/etc/gitlab/gitlab.rb' do variables( external_url: node['gitlab-omnibus']['external_url'] ) mode 0600 notifies :run, 'execute[gitlab-ctl reconfigure]' end ## Instruction: Add more variables to template resource for gitlab.rb. ## Code Aft...
55b17598e45b619f45add151a380c037e6d63b04
run-tests.ps1
run-tests.ps1
$projects = Get-ChildItem .\test | ?{$_.PsIsContainer} foreach($project in $projects) { cd test/$project dnx test cd ../../ }
$projects = Get-ChildItem .\test | ?{$_.PsIsContainer} foreach($project in $projects) { # Display project name $project # Move to the project cd test/$project # Run test dnx test # Move back to the solution root cd ../../ }
Update test runner PS script
Update test runner PS script
PowerShell
mit
justinyoo/Scissorhands.NET,aliencube/Scissorhands.NET,ujuc/Scissorhands.NET,aliencube/Scissorhands.NET,justinyoo/Scissorhands.NET,GetScissorhands/Scissorhands.NET,ujuc/Scissorhands.NET,GetScissorhands/Scissorhands.NET,GetScissorhands/Scissorhands.NET,justinyoo/Scissorhands.NET,ujuc/Scissorhands.NET,aliencube/Scissorhan...
powershell
## Code Before: $projects = Get-ChildItem .\test | ?{$_.PsIsContainer} foreach($project in $projects) { cd test/$project dnx test cd ../../ } ## Instruction: Update test runner PS script ## Code After: $projects = Get-ChildItem .\test | ?{$_.PsIsContainer} foreach($project in $projects) { # Display...
9b544e2d1acfc7a427440975c7f24ff2b2081b3e
README.md
README.md
Adds convenience routines to the Image class Version 2.x is for SilverStripe 3.1.x. & 3.2.x This is version 2.0.2
Adds convenience routines to the Image class. **Note:** This module was designed for SilverStripe 2.4. The version supporting SilverStripe 3.x exists only to simplify migrating 2.4 sites to 3.x. All of its functionality exists natively in SilverStripe 3.x. There will be no further development of this module. Version...
Add note indicating legacy status
Add note indicating legacy status
Markdown
mit
Quinn-Interactive/silverstripe-image-extension
markdown
## Code Before: Adds convenience routines to the Image class Version 2.x is for SilverStripe 3.1.x. & 3.2.x This is version 2.0.2 ## Instruction: Add note indicating legacy status ## Code After: Adds convenience routines to the Image class. **Note:** This module was designed for SilverStripe 2.4. The version sup...
e95fae900ae7b55f4f6022db58ac89bbb9cd7566
.circleci/config.yml
.circleci/config.yml
version: 2 references: steps: &steps - checkout - type: cache-restore key: airports-bundler-{{ checksum "airports.gemspec" }} - run: gem install bundler - run: bundle install --path vendor/bundle - type: cache-save key: airports-bundler-{{ checksum "airports.gemspec" }} path...
version: 2 references: steps: &steps - checkout - type: cache-restore key: airports-bundler-{{ checksum "airports.gemspec" }} - run: gem install bundler - run: bundle install --path vendor/bundle - type: cache-save key: airports-bundler-{{ checksum "airports.gemspec" }} path...
Stop running CircleCI builds with Ruby 2.2 and 2.3
Stop running CircleCI builds with Ruby 2.2 and 2.3
YAML
mit
timrogers/airports,timrogers/airports
yaml
## Code Before: version: 2 references: steps: &steps - checkout - type: cache-restore key: airports-bundler-{{ checksum "airports.gemspec" }} - run: gem install bundler - run: bundle install --path vendor/bundle - type: cache-save key: airports-bundler-{{ checksum "airports.gemspe...
5d59f800da9fb737cd87d47301793f750ca1cbdd
pysnow/exceptions.py
pysnow/exceptions.py
class PysnowException(Exception): pass class InvalidUsage(PysnowException): pass class ResponseError(PysnowException): message = "<empty>" detail = "<empty>" def __init__(self, error): if "message" in error: self.message = error["message"] or self.message if "detai...
class PysnowException(Exception): pass class InvalidUsage(PysnowException): pass class UnexpectedResponseFormat(PysnowException): pass class ResponseError(PysnowException): message = "<empty>" detail = "<empty>" def __init__(self, error): if "message" in error: self....
Add missing UnexpectedResponseFormat for backward compatability
Add missing UnexpectedResponseFormat for backward compatability Signed-off-by: Abhijeet Kasurde <6334fd0c217b1f2a15926284df229acde5b4fc3a@redhat.com>
Python
mit
rbw0/pysnow
python
## Code Before: class PysnowException(Exception): pass class InvalidUsage(PysnowException): pass class ResponseError(PysnowException): message = "<empty>" detail = "<empty>" def __init__(self, error): if "message" in error: self.message = error["message"] or self.message ...
5dd73a100d75e733c4cd8b40533935b05f6590f7
.travis.yml
.travis.yml
language: go sudo: false go: - 1.7 - 1.8 script: - go vet ./... - go build -v ./... - go install -v - go test -v ./ansi - go test -v ./decorate - go test -v ./decorate/basic - go test -v ./decorate/curly - go test -v ./generic
language: go sudo: false os: - linux - osx go: - 1.7 - 1.8 script: - go vet ./... - go build -v ./... - go install -v - go test -v ./ansi - go test -v ./decorate - go test -v ./decorate/basic - go test -v ./decorate/curly - go test -v ./generic
Add OSs to build script
Add OSs to build script
YAML
mit
workanator/go-ataman
yaml
## Code Before: language: go sudo: false go: - 1.7 - 1.8 script: - go vet ./... - go build -v ./... - go install -v - go test -v ./ansi - go test -v ./decorate - go test -v ./decorate/basic - go test -v ./decorate/curly - go test -v ./generic ## Instruction: Add OSs to build script ## Code After...
dde58195761e930cee31a7feea063bae9613187a
example/src/main.cpp
example/src/main.cpp
int main() { #ifdef TARGET_RASPBERRY_PI ofSetupOpenGL(600, 500, OF_FULLSCREEN); #else ofSetupOpenGL(600, 500, OF_WINDOW); #endif ofRunApp(new ofApp()); }
// Accept arguments in the Pi version int main(int argc, char* argv[]) { bool fullscreen = false; if (argc > 0) { std::string fullscreenFlag = "-f"; for (int i = 0; i < argc; i++) { if (strcmp(argv[i], fullscreenFlag.c_str()) == 0) { fullscreen = true; break; } } } ...
Add -f flag option to RPi version of he example
Add -f flag option to RPi version of he example
C++
mit
PPilmeyer/ofxPiMapper
c++
## Code Before: int main() { #ifdef TARGET_RASPBERRY_PI ofSetupOpenGL(600, 500, OF_FULLSCREEN); #else ofSetupOpenGL(600, 500, OF_WINDOW); #endif ofRunApp(new ofApp()); } ## Instruction: Add -f flag option to RPi version of he example ## Code After: // Accept arguments in the Pi version int main(int argc, char* ...
29794e19d0a2a155e6b8693005fb05ee05d738ff
gcp/modules/gcp-stackdriver-lbm/resources/log_based_metrics/backup-exporter_error.json
gcp/modules/gcp-stackdriver-lbm/resources/log_based_metrics/backup-exporter_error.json
{ "name": "backup-exporter.error", "filter": "resource.type=\"k8s_container\" AND resource.labels.cluster_name=\"k8s-cluster\" AND resource.labels.namespace_name=\"backup-exporter\" AND resource.labels.container_name=\"backup-container\" AND severity=ERROR AND textPayload:\"ERROR:\"" }
{ "name": "backup-exporter.error", "filter": "resource.type=\"k8s_container\" AND resource.labels.cluster_name=\"k8s-cluster\" AND resource.labels.namespace_name=\"backup-exporter\" AND resource.labels.container_name=\"backup-container\" AND severity=ERROR AND (textPayload:\"ERROR:\" OR textPayload:\"CommandExcepti...
Cover other error case for the gsutil command
Cover other error case for the gsutil command
JSON
bsd-3-clause
mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform
json
## Code Before: { "name": "backup-exporter.error", "filter": "resource.type=\"k8s_container\" AND resource.labels.cluster_name=\"k8s-cluster\" AND resource.labels.namespace_name=\"backup-exporter\" AND resource.labels.container_name=\"backup-container\" AND severity=ERROR AND textPayload:\"ERROR:\"" } ## Instructi...
0c221817845bcf78f0dddbc3433af934fd36477e
.travis.yml
.travis.yml
language: node_js notifications: email: true node_js: - '6' script: - npm test && npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/
language: node_js notifications: email: true install: rm -rf node_modules && npm install node_js: - '6' script: - npm test && npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/
Install deps on Travis manually
chore: Install deps on Travis manually
YAML
mit
finom/matreshka,matreshkajs/matreshka,finom/matreshka,matreshkajs/matreshka
yaml
## Code Before: language: node_js notifications: email: true node_js: - '6' script: - npm test && npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/ ## Instruction: chore: Install deps on Travis manually ## Code After: language: node_js notifications: email: true install: rm -rf node_module...
2f66b37aabd279f543a154b07f8c86d30226e950
docker-entrypoint.sh
docker-entrypoint.sh
set -e if [ "$CREATE_USER_UID" -a "$CREATE_USER_GID" ]; then echo "Create 'site-owner' group with GID=$CREATE_USER_GID" groupadd -g $CREATE_USER_GID site-owner echo "Add 'www-data' user to group 'site-owner'" usermod -a -G site-owner www-data echo "Create 'site-owner' user with UID=$CREATE_USER_UID...
set -e if [ "$CREATE_USER_UID" -a "$CREATE_USER_GID" ]; then echo "Create 'site-owner' group with GID=$CREATE_USER_GID" groupadd -g $CREATE_USER_GID site-owner echo "Add 'www-data' user to group 'site-owner'" usermod -a -G site-owner www-data echo "Create 'site-owner' user with UID=$CREATE_USER_UID...
Change Node.js prefix to $NODE_PATH
Change Node.js prefix to $NODE_PATH
Shell
mit
antage/docker-nodejs
shell
## Code Before: set -e if [ "$CREATE_USER_UID" -a "$CREATE_USER_GID" ]; then echo "Create 'site-owner' group with GID=$CREATE_USER_GID" groupadd -g $CREATE_USER_GID site-owner echo "Add 'www-data' user to group 'site-owner'" usermod -a -G site-owner www-data echo "Create 'site-owner' user with UID=...
5b0ffcda19729f74d5c6f30c2cbe09e0cce84a4c
app/views/digital-register/journeys/v8/pre-sign-in.html
app/views/digital-register/journeys/v8/pre-sign-in.html
{{<govuk_template}} {{$pageTitle}} Sign in {{/pageTitle}} {{$head}} {{>includes/head}} <link href="/public/stylesheets/alphagov-static.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/public/stylesheets/land-registry-elements.css" media="screen" rel="stylesheet" type="text/css" /> {{/head}...
{{<govuk_template}} {{$pageTitle}} Sign in {{/pageTitle}} {{$head}} {{>includes/head}} <link href="/public/stylesheets/alphagov-static.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/public/stylesheets/land-registry-elements.css" media="screen" rel="stylesheet" type="text/css" /> {{/head}...
Make the pre sign in question more understandable
Make the pre sign in question more understandable
HTML
mit
LandRegistry/property-page-html-prototypes,LandRegistry/property-page-html-prototypes
html
## Code Before: {{<govuk_template}} {{$pageTitle}} Sign in {{/pageTitle}} {{$head}} {{>includes/head}} <link href="/public/stylesheets/alphagov-static.css" media="screen" rel="stylesheet" type="text/css" /> <link href="/public/stylesheets/land-registry-elements.css" media="screen" rel="stylesheet" type="text/...
7701bc6ab0b1e27daec6da83a8e50e2b9aaf1997
.styleci.yml
.styleci.yml
preset: psr2 enabled: - concat_without_spaces - extra_empty_lines - short_array_syntax - method_separation - multiline_array_trailing_comma - no_empty_lines_after_phpdocs - operators_spaces - ordered_use # - phpdoc_align - phpdoc_indent - phpdoc_inline_tag - phpdoc_no_access - phpdoc_no_packa...
preset: psr2 enabled: - concat_without_spaces - extra_empty_lines - short_array_syntax - method_separation - multiline_array_trailing_comma - no_empty_lines_after_phpdocs - operators_spaces - ordered_use # - phpdoc_align - phpdoc_indent - phpdoc_inline_tag - phpdoc_no_access - phpdoc_no_packa...
Exclude Doctrine types from StyleCI
Exclude Doctrine types from StyleCI
YAML
mit
lucasmichot/Carbon,briannesbitt/Carbon,kylekatarnls/Carbon
yaml
## Code Before: preset: psr2 enabled: - concat_without_spaces - extra_empty_lines - short_array_syntax - method_separation - multiline_array_trailing_comma - no_empty_lines_after_phpdocs - operators_spaces - ordered_use # - phpdoc_align - phpdoc_indent - phpdoc_inline_tag - phpdoc_no_access -...