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
909f87a693c4a25b68ad77f683b3022f9413ca8e
src/tuxedo-menu.js
src/tuxedo-menu.js
(function ($) { 'use strict'; var settings; $.fn.tuxedoMenu = function (options) { var self = this; // Extend default settings with options settings = $.extend({ triggerSelector: '.tuxedo-menu-trigger', menuSelector: '.tuxedo-menu', isFixed: true...
(function ($) { 'use strict'; var settings; $.fn.tuxedoMenu = function (options) { var self = this; // Extend default settings with options settings = $.extend({ triggerSelector: '.tuxedo-menu-trigger', menuSelector: '.tuxedo-menu', isFixed: true...
Stop event bubbling when trigger is clicked
Stop event bubbling when trigger is clicked
JavaScript
mit
beekmanlabs/tuxedo-menu,ethanhann/tuxedo-menu,beekmanlabs/tuxedo-menu,ethanhann/tuxedo-menu
javascript
## Code Before: (function ($) { 'use strict'; var settings; $.fn.tuxedoMenu = function (options) { var self = this; // Extend default settings with options settings = $.extend({ triggerSelector: '.tuxedo-menu-trigger', menuSelector: '.tuxedo-menu', ...
09104b033683f9e1ecd419971e79fcceeff57b17
lib/hungry/client.rb
lib/hungry/client.rb
module Hungry # Handles all communication with the API server class Client attr_reader :api_key # Create a hungry client # # @param [String] api_key Your API key. The shirt and shoes of API service # @return Client A new instance of Client def initialize(api_key) @api_key = api_key ...
module Hungry # Handles all communication with the API server class Client attr_reader :api_key # Create a hungry client # # @param [String] api_key Your API key. The shirt and shoes of API service # @return Client A new instance of Client def initialize(api_key) @api_key = api_key ...
Create a connection instance in Client
Create a connection instance in Client In order to keep track of rate-limiting as well as retrieve pagination links from headers, we'll need Client to keep a connection instance that we can query.
Ruby
mit
seanredmond/Hungry
ruby
## Code Before: module Hungry # Handles all communication with the API server class Client attr_reader :api_key # Create a hungry client # # @param [String] api_key Your API key. The shirt and shoes of API service # @return Client A new instance of Client def initialize(api_key) @api...
9650453a7504dd126e0db1f32090a599573d160e
autogen.sh
autogen.sh
ORIGDIR=`pwd` srcdir=`dirname $0` [ -n "$srcdir" ] && cd $srcdir [ ! -d m4 ] && mkdir m4 autoreconf -Wno-portability --force --install -I m4 || exit $? cd $ORIGDIR [ -z "$NO_CONFIGURE" ] && $srcdir/configure --enable-maintainer-mode "$@"
ORIGDIR=`pwd` srcdir=`dirname $0` [ -n "$srcdir" ] && cd $srcdir [ ! -d m4 ] && mkdir m4 autoreconf -Wno-portability --force --install -I m4 || exit $? cd $ORIGDIR if [ -z "$NO_CONFIGURE" ] then $srcdir/configure --enable-maintainer-mode "$@" || exit $? fi exit 0
Fix script exiting with error when NO_CONFIGURE was set.
Fix script exiting with error when NO_CONFIGURE was set.
Shell
mit
maciejmrowiec/masterfiles,frap/masterfiles-1,maciejmrowiec/masterfiles,phnakarin/masterfiles,maciejmrowiec/masterfiles,martingehrke/masterfiles,phnakarin/masterfiles,martingehrke/masterfiles,frap/masterfiles-1,phnakarin/masterfiles,martingehrke/masterfiles,frap/masterfiles-1
shell
## Code Before: ORIGDIR=`pwd` srcdir=`dirname $0` [ -n "$srcdir" ] && cd $srcdir [ ! -d m4 ] && mkdir m4 autoreconf -Wno-portability --force --install -I m4 || exit $? cd $ORIGDIR [ -z "$NO_CONFIGURE" ] && $srcdir/configure --enable-maintainer-mode "$@" ## Instruction: Fix script exiting with error when NO_CONFI...
4032d0499571f9e6f34119225dd844917d96f717
.kitchen.yml
.kitchen.yml
--- driver: name: vagrant provisioner: name: chef_zero always_update_cookbooks: true product_name: chef product_version: 14 verifier: name: inspec platforms: - name: centos-7.2 suites: - name: default run_list: - recipe[dockerserver::default] attributes:
--- driver: name: vagrant provisioner: name: chef_zero always_update_cookbooks: true product_name: chef product_version: 15 client_rb: chef_license: accept verifier: name: inspec platforms: - name: centos-7.2 suites: - name: default run_list: - recipe[dockerserver::default] attr...
Update Kitchen To Chef Infra Client 15
Update Kitchen To Chef Infra Client 15
YAML
mit
gryte/dockerserver
yaml
## Code Before: --- driver: name: vagrant provisioner: name: chef_zero always_update_cookbooks: true product_name: chef product_version: 14 verifier: name: inspec platforms: - name: centos-7.2 suites: - name: default run_list: - recipe[dockerserver::default] attributes: ## Instruction...
895d9c6251ccbafd3ae9c47b163218a27ac23e01
.travis.yml
.travis.yml
sudo: false language: erlang otp_release: - 21.1 - 20.0 - 19.3 before_install: - ./ci before_install "${PWD:?}"/rebar3 - pip install --user codecov install: - ./ci install "${PWD:?}"/rebar3 script: - ./ci script "${PWD:?}"/rebar3 cache: directories: - .plt after_success: - codecov
sudo: false language: erlang otp_release: - 23.0 - 22.3 - 21.3 - 20.3 - 19.3 before_install: - ./ci before_install "${PWD:?}"/rebar3 - pip install --user codecov install: - ./ci install "${PWD:?}"/rebar3 script: - ./ci script "${PWD:?}"/rebar3 cache: directories: - .plt after_success: - codeco...
Update check/test target OTP versions
Update check/test target OTP versions
YAML
apache-2.0
inaka/apns4erl
yaml
## Code Before: sudo: false language: erlang otp_release: - 21.1 - 20.0 - 19.3 before_install: - ./ci before_install "${PWD:?}"/rebar3 - pip install --user codecov install: - ./ci install "${PWD:?}"/rebar3 script: - ./ci script "${PWD:?}"/rebar3 cache: directories: - .plt after_success: - codecov ...
2d886cdf71e943f2800a1377195f847c3e533b9b
.eslintrc.js
.eslintrc.js
module.exports = { "extends": ["eslint:recommended", "google"], "env": { "browser": true, "es6": true }, "parserOptions": { "ecmaVersion": 2017 } }
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in * compliance with the License. You may obtain a copy of * the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Use License in esling config file
Use License in esling config file The .eslintrc.js file needs a license so I added one. Change-Id: I212e78b42c0c75f1b58d59712702e83f2cd4d14c
JavaScript
apache-2.0
google/web-serial-polyfill,google/web-serial-polyfill,google/web-serial-polyfill
javascript
## Code Before: module.exports = { "extends": ["eslint:recommended", "google"], "env": { "browser": true, "es6": true }, "parserOptions": { "ecmaVersion": 2017 } } ## Instruction: Use License in esling config file The .eslintrc.js file needs a license so I added one. Change-Id: I212e78b42...
0c00acb19274626241f901ea85a124511dfe4526
server/lepton_server.py
server/lepton_server.py
import sys import time import zmq import numpy as np try: import progressbar except ImportError: progressbar = None try: import pylepton except ImportError: print "Couldn't import pylepton, using Dummy data!" Lepton = None # importing packages in parent folders is voodoo from common.Frame import...
import sys import time import zmq import numpy as np try: import progressbar except ImportError: progressbar = None try: import pylepton except ImportError: print "Couldn't import pylepton, using Dummy data!" Lepton = None # importing packages in parent folders is voodoo from common.Frame import...
Remove third dimension from image array
Remove third dimension from image array
Python
mit
wonkoderverstaendige/raspi_lepton
python
## Code Before: import sys import time import zmq import numpy as np try: import progressbar except ImportError: progressbar = None try: import pylepton except ImportError: print "Couldn't import pylepton, using Dummy data!" Lepton = None # importing packages in parent folders is voodoo from com...
5b19808402a5c825815096e88da496ce1855a2e2
app/templates/post.hbs
app/templates/post.hbs
<div class="wrapper"> <article class="wrapper post"> <h1 class="post-title"><span class="ion-social-rss ionicon"></span>{{model.title}}</h1> <div class="article-head"> <div class="post-footer">by Hampton, Michael & Justin</div> <div class="date-header">{{formattedDate}}</div> </div> <sec...
<div class="wrapper"> <article class="wrapper post"> <h1 class="post-title"><span class="ion-social-rss ionicon"></span>{{model.title}}</h1> <div class="article-head"> <div class="post-footer">by Hampton, Michael & Justin</div> <div class="date-header">{{formattedDate}}</div> </div> <sec...
Add Disqus comments to blog
Add Disqus comments to blog See issue /wordset/wordset/issues/51
Handlebars
mit
BryanCode/wordset-ui,kaelig/wordset-ui,wordset/wordset-ui,BryanCode/wordset-ui,BryanCode/wordset-ui,wordset/wordset-ui,wordset/wordset-ui,kaelig/wordset-ui
handlebars
## Code Before: <div class="wrapper"> <article class="wrapper post"> <h1 class="post-title"><span class="ion-social-rss ionicon"></span>{{model.title}}</h1> <div class="article-head"> <div class="post-footer">by Hampton, Michael & Justin</div> <div class="date-header">{{formattedDate}}</div> ...
96cb966e9daf67909ed35c2163ee57becacdf6f7
.github/workflows/ci.yml
.github/workflows/ci.yml
name: CI on: [push, pull_request] jobs: tests: name: Tests strategy: fail-fast: false matrix: otp: ['19.3', '22.3', 24] runs-on: ubuntu-20.04 container: image: erlang:${{ matrix.otp }} steps: - uses: actions/checkout@v2 - name: Cache rebar3 uses: actio...
name: CI on: [push, pull_request] jobs: tests: name: Tests strategy: fail-fast: false matrix: otp: ['19.3', '22.3', 24] runs-on: ubuntu-20.04 container: image: erlang:${{ matrix.otp }} steps: - uses: actions/checkout@v2 - name: Cache rebar3 uses: actio...
Use dirty workaround to get Erlang and C coverage
Use dirty workaround to get Erlang and C coverage
YAML
apache-2.0
processone/fast_yaml
yaml
## Code Before: name: CI on: [push, pull_request] jobs: tests: name: Tests strategy: fail-fast: false matrix: otp: ['19.3', '22.3', 24] runs-on: ubuntu-20.04 container: image: erlang:${{ matrix.otp }} steps: - uses: actions/checkout@v2 - name: Cache rebar3 ...
b751ec5761a9bbe60c4ba7b0665e3b9af89bfce6
cookbooks/nginx/templates/default/nginx.conf.erb
cookbooks/nginx/templates/default/nginx.conf.erb
user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$reques...
<% if node[:lsb][:release].to_f >= 14.04 -%> user www-data; <% else -%> user nginx; <% end -%> worker_processes <%= node['cpu']['total'] %>; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; d...
Support nginx on 14.04 + dynamic number of worker processes based on CPUs
Support nginx on 14.04 + dynamic number of worker processes based on CPUs
HTML+ERB
apache-2.0
zerebubuth/openstreetmap-chef,tomhughes/openstreetmap-chef,openstreetmap/chef,Firefishy/chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,gravitystorm/chef,Firefishy/chef,tomhughes/openstreetmap-chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,openstreetmap/chef,zerebubuth/openstreetmap-che...
html+erb
## Code Before: user nginx; worker_processes 4; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time...
8130376565ae1bc2776409589509322562fc7a16
docs/orm_helpers.rst
docs/orm_helpers.rst
ORM helpers =========== .. module:: sqlalchemy_utils.functions escape_like ^^^^^^^^^^^ .. autofunction:: escape_like get_bind ^^^^^^^^ .. autofunction:: get_bind get_column_key ^^^^^^^^^^^^^^ .. autofunction:: get_column_key get_columns ^^^^^^^^^^^ .. autofunction:: get_columns get_declarative_base ^^^^^...
ORM helpers =========== .. module:: sqlalchemy_utils.functions escape_like ^^^^^^^^^^^ .. autofunction:: escape_like get_bind ^^^^^^^^ .. autofunction:: get_bind get_column_key ^^^^^^^^^^^^^^ .. autofunction:: get_column_key get_columns ^^^^^^^^^^^ .. autofunction:: get_columns get_declarative_base ^^^^^...
Remove has_any_changes from docs (deprecated)
Remove has_any_changes from docs (deprecated)
reStructuredText
bsd-3-clause
joshfriend/sqlalchemy-utils,JackWink/sqlalchemy-utils,tonyseek/sqlalchemy-utils,spoqa/sqlalchemy-utils,cheungpat/sqlalchemy-utils,konstantinoskostis/sqlalchemy-utils,joshfriend/sqlalchemy-utils,tonyseek/sqlalchemy-utils,rmoorman/sqlalchemy-utils,marrybird/sqlalchemy-utils
restructuredtext
## Code Before: ORM helpers =========== .. module:: sqlalchemy_utils.functions escape_like ^^^^^^^^^^^ .. autofunction:: escape_like get_bind ^^^^^^^^ .. autofunction:: get_bind get_column_key ^^^^^^^^^^^^^^ .. autofunction:: get_column_key get_columns ^^^^^^^^^^^ .. autofunction:: get_columns get_declar...
fb9313d8be844c94e3fa96ce40bcbb040c2fb652
dev/golang/type/README.md
dev/golang/type/README.md
* [Impossible type switch case](https://stackoverflow.com/questions/24593505/impossible-type-switch-case)
* [Impossible type switch case](https://stackoverflow.com/questions/24593505/impossible-type-switch-case) * [Convert an integer to a byte array](https://stackoverflow.com/questions/16888357/convert-an-integer-to-a-byte-array)
Add Convert an integer to a byte array
Add Convert an integer to a byte array
Markdown
mit
northbright/bookmarks,northbright/bookmarks,northbright/bookmarks
markdown
## Code Before: * [Impossible type switch case](https://stackoverflow.com/questions/24593505/impossible-type-switch-case) ## Instruction: Add Convert an integer to a byte array ## Code After: * [Impossible type switch case](https://stackoverflow.com/questions/24593505/impossible-type-switch-case) * [Convert an inte...
5d4eec08a19cb0f33eaa4d37490e30a00c496ba0
app/views/explore/projects/_project.html.haml
app/views/explore/projects/_project.html.haml
%li %h4.project-title .project-access-icon = visibility_level_icon(project.visibility_level) = link_to project.name_with_namespace, [project.namespace.becomes(Namespace), project] %span.pull-right %i.fa.fa-star = project.star_count .project-info - if project.description.present? ...
%li %h4.project-title .project-access-icon = visibility_level_icon(project.visibility_level) = link_to project.name_with_namespace, [project.namespace.becomes(Namespace), project] %span.pull-right %i.fa.fa-star = project.star_count .project-info - if project.description.present? ...
Apply markdown filter for project descriptions on explore view
Apply markdown filter for project descriptions on explore view Signed-off-by: Sven Strickroth <a88b7dcd1a9e3e17770bbaa6d7515b31a2d7e85d@cs-ware.de>
Haml
mit
kemenaran/gitlabhq,pulkit21/gitlabhq,dplarson/gitlabhq,yfaizal/gitlabhq,whluwit/gitlabhq,nmav/gitlabhq,MauriceMohlek/gitlabhq,dukex/gitlabhq,larryli/gitlabhq,fgbreel/gitlabhq,hzy001/gitlabhq,liyakun/gitlabhq,axilleas/gitlabhq,Devin001/gitlabhq,k4zzk/gitlabhq,pjknkda/gitlabhq,dreampet/gitlab,sonalkr132/gitlabhq,dreampet...
haml
## Code Before: %li %h4.project-title .project-access-icon = visibility_level_icon(project.visibility_level) = link_to project.name_with_namespace, [project.namespace.becomes(Namespace), project] %span.pull-right %i.fa.fa-star = project.star_count .project-info - if project.descri...
338d62bc26a8f9251a3ea68a3b6d98faec2cb844
scss/css/_grid.scss
scss/css/_grid.scss
// CSS: Grid // Project: WFPUI // Author: Matthew Morek (me@matthewmorek.com) // URL: http://matthewmorek.com @import "../modules/grid"; @import "grid-units"; @mixin grid { @include grid--wrapper; &[class*="wfp-u-"] { font-family: $sans-serif-stack; } } .opera-only :-o-prefocus, .wfp-grid { word-spacing...
// CSS: Grid // Project: WFPUI // Author: Matthew Morek (me@matthewmorek.com) // URL: http://matthewmorek.com @import "../init"; @import "../modules/grid"; @import "grid-units"; @mixin grid { @include grid--wrapper; &[class*="wfp-u-"] { font-family: $sans-serif-stack; } } .opera-only :-o-prefocus, .wfp-gr...
Fix ann issue with some vars being unavailable
Fix ann issue with some vars being unavailable
SCSS
apache-2.0
wfp/ui,wfp/ui,wfp/ui
scss
## Code Before: // CSS: Grid // Project: WFPUI // Author: Matthew Morek (me@matthewmorek.com) // URL: http://matthewmorek.com @import "../modules/grid"; @import "grid-units"; @mixin grid { @include grid--wrapper; &[class*="wfp-u-"] { font-family: $sans-serif-stack; } } .opera-only :-o-prefocus, .wfp-grid ...
87a65d3769299267d496e85999cf3313ba92ea73
SIDEBAR.md
SIDEBAR.md
There's more to building RESTful web services than is covered here. You can continue your exploration of Spring and REST with the following resources. ### Getting Started Guides * [Consuming a RESTful Web Service][gs-consuming-rest] * [Building a Hypermedia-Driven REST Web Service][gs-rest-hateoas] * [Consuming REST...
There's more to building RESTful web services than is covered here. You can continue your exploration of Spring and REST with the following resources. ### Getting Started Guides * [Consuming a RESTful Web Service][gs-consuming-rest] * [Building a Hypermedia-Driven REST Web Service][gs-rest-hateoas] * [Consuming REST...
Add sidebar links to u-view-templates
Add sidebar links to u-view-templates
Markdown
mit
prod-hid/akd-api,prod-hid/akd-api
markdown
## Code Before: There's more to building RESTful web services than is covered here. You can continue your exploration of Spring and REST with the following resources. ### Getting Started Guides * [Consuming a RESTful Web Service][gs-consuming-rest] * [Building a Hypermedia-Driven REST Web Service][gs-rest-hateoas] *...
715968ecc10072939c7bfbd438224b6506e3a8a0
appveyor.yml
appveyor.yml
environment: matrix: - nodejs_version: 6 test_suite: "simple" - nodejs_version: 6 test_suite: "installs" - nodejs_version: 6 test_suite: "kitchensink" - nodejs_version: 4 test_suite: "simple" - nodejs_version: 4 test_suite: "installs" - nodejs_version: 4 tes...
environment: matrix: - nodejs_version: 6 test_suite: "simple" - nodejs_version: 6 test_suite: "installs" - nodejs_version: 6 test_suite: "kitchensink" - nodejs_version: 4 test_suite: "simple" - nodejs_version: 4 test_suite: "installs" - nodejs_version: 4 tes...
Remove Windows 0.10 simple test
Remove Windows 0.10 simple test
YAML
mit
brysgo/create-react-app,reedsa/create-react-app,prontotools/create-react-app,liamhu/create-react-app,1Body/prayer-app,appier/create-react-app,ro-savage/create-react-app,kst404/e8e-react-scripts,ro-savage/create-react-app,1Body/prayer-app,iamdoron/create-react-app,CodingZeal/create-react-app,peopleticker/create-react-ap...
yaml
## Code Before: environment: matrix: - nodejs_version: 6 test_suite: "simple" - nodejs_version: 6 test_suite: "installs" - nodejs_version: 6 test_suite: "kitchensink" - nodejs_version: 4 test_suite: "simple" - nodejs_version: 4 test_suite: "installs" - nodejs_vers...
e1652c35601b3474752bab5e2f5af2a44f9b7f93
.travis.yml
.travis.yml
language: php php: - "5.4" - "5.3" before_install: - cd ~/builds - git clone git://github.com/laravel/laravel.git - mv ./orchestral/orchestra ./laravel/bundles/orchestra - echo "<?php return array('orchestra' => array('auto' => true, 'handles' => 'orchestra'));" > ./laravel/application/bundles.php - cd ...
language: php services: sqlite3 php: - "5.4" - "5.3" before_install: - cd ~/builds - git clone git://github.com/laravel/laravel.git - mv ./orchestral/orchestra ./laravel/bundles/orchestra - echo "<?php return array('orchestra' => array('auto' => true, 'handles' => 'orchestra'));" > ./laravel/application/...
Add sqlite as required service for CI
Add sqlite as required service for CI Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
YAML
mit
orchestral/orchestra,orchestral/orchestra
yaml
## Code Before: language: php php: - "5.4" - "5.3" before_install: - cd ~/builds - git clone git://github.com/laravel/laravel.git - mv ./orchestral/orchestra ./laravel/bundles/orchestra - echo "<?php return array('orchestra' => array('auto' => true, 'handles' => 'orchestra'));" > ./laravel/application/bun...
08b4cc4e065e63eef522756888fa8a75d9bf6ddb
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-nap', version='0.3', description='A light REST tool for Django', author='Curtis Maloney', author_email='curtis@tinbrain.net', url='http://github.com/funkybob/django-nap', keywords=['django', 'json', 'rest'], packages = find...
from setuptools import setup, find_packages setup( name='django-nap', version='0.4', description='A light REST tool for Django', author='Curtis Maloney', author_email='curtis@tinbrain.net', url='http://github.com/funkybob/django-nap', keywords=['django', 'json', 'rest'], packages = find...
Fix find packages Bump version
Fix find packages Bump version
Python
bsd-3-clause
limbera/django-nap,MarkusH/django-nap
python
## Code Before: from setuptools import setup, find_packages setup( name='django-nap', version='0.3', description='A light REST tool for Django', author='Curtis Maloney', author_email='curtis@tinbrain.net', url='http://github.com/funkybob/django-nap', keywords=['django', 'json', 'rest'], ...
49d59a4681d3070c0dcd8dff7d939ddafb842bd7
concrete/src/File/ImportProcessor/AutorotateImageProcessor.php
concrete/src/File/ImportProcessor/AutorotateImageProcessor.php
<?php namespace Concrete\Core\File\ImportProcessor; use Concrete\Core\Entity\File\Version; use Concrete\Core\Support\Facade\Image; use Imagine\Filter\Basic\Autorotate; use Imagine\Filter\Transformation; use Imagine\Image\Metadata\ExifMetadataReader; class AutorotateImageProcessor implements ProcessorInterface { p...
<?php namespace Concrete\Core\File\ImportProcessor; use Concrete\Core\Entity\File\Version; use Concrete\Core\Support\Facade\Image; use Imagine\Filter\Basic\Autorotate; use Imagine\Filter\Transformation; use Imagine\Image\Metadata\ExifMetadataReader; use Concrete\Core\Support\Facade\Application; class AutorotateImageP...
Use app make to ensure new instances
Use app make to ensure new instances
PHP
mit
mlocati/concrete5,rikzuiderlicht/concrete5,deek87/concrete5,KorvinSzanto/concrete5,haeflimi/concrete5,mlocati/concrete5,triplei/concrete5-8,concrete5/concrete5,hissy/concrete5,a3020/concrete5,a3020/concrete5,deek87/concrete5,haeflimi/concrete5,rikzuiderlicht/concrete5,haeflimi/concrete5,biplobice/concrete5,olsgreen/con...
php
## Code Before: <?php namespace Concrete\Core\File\ImportProcessor; use Concrete\Core\Entity\File\Version; use Concrete\Core\Support\Facade\Image; use Imagine\Filter\Basic\Autorotate; use Imagine\Filter\Transformation; use Imagine\Image\Metadata\ExifMetadataReader; class AutorotateImageProcessor implements ProcessorI...
ea0b84404ccad39d312f8eff89cf050345c4cf8b
.travis.yml
.travis.yml
language: java sudo: false jdk: oraclejdk8 install: mvn -T 4 ${CDH} ${SPARK} ${SCALA} -Ptravis -DskipTests=true -B -V install script: mvn -T 2 ${CDH} ${SPARK} ${SCALA} ${JACOCO} -Ptravis -q -B verify env: JACOCO=-Pjacoco CDH=-Pcdh58 cache: directories: - $HOME/.m2 git: depth: 10 after_success: if [ -n "$JACOCO...
language: java sudo: false jdk: oraclejdk8 install: mvn -T 4 ${CDH} ${SPARK} ${SCALA} -Ptravis -DskipTests=true -B -V install script: - mvn -T 2 ${CDH} ${SPARK} ${SCALA} ${JACOCO} -Ptravis -q -B verify - rm -r $HOME/.m2/repository/com/cloudera/oryx env: JACOCO=-Pjacoco CDH=-Pcdh58 cache: directories: - $HOME/...
Remove project artifacts so they're not cached every time in Travis
Remove project artifacts so they're not cached every time in Travis
YAML
apache-2.0
oncewang/oryx2,srowen/oryx,OryxProject/oryx,oncewang/oryx2,srowen/oryx,OryxProject/oryx
yaml
## Code Before: language: java sudo: false jdk: oraclejdk8 install: mvn -T 4 ${CDH} ${SPARK} ${SCALA} -Ptravis -DskipTests=true -B -V install script: mvn -T 2 ${CDH} ${SPARK} ${SCALA} ${JACOCO} -Ptravis -q -B verify env: JACOCO=-Pjacoco CDH=-Pcdh58 cache: directories: - $HOME/.m2 git: depth: 10 after_success: ...
8412bcba27ce714932e0df954fdee6b2c1a161ef
tests/HttpComponentTest.php
tests/HttpComponentTest.php
<?php declare(strict_types=1); namespace Tests; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Http; use LaravelZero\Framework\Contracts\Providers\ComposerContract; final class HttpComponentTest extends TestCase { /** @test */ public function it_installs_the_required_packages(): void...
<?php declare(strict_types=1); namespace Tests; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Http; use LaravelZero\Framework\Contracts\Providers\ComposerContract; final class HttpComponentTest extends TestCase { /** @test */ public function it_installs_the_required_packages(): void...
Add assertions for the Http client response
Add assertions for the Http client response
PHP
mit
laravel-zero/framework
php
## Code Before: <?php declare(strict_types=1); namespace Tests; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Http; use LaravelZero\Framework\Contracts\Providers\ComposerContract; final class HttpComponentTest extends TestCase { /** @test */ public function it_installs_the_required_...
f5b2334d392c748c4a74bd66c9e14489d428c90d
server/lib/parseArtistTitle/kfconfig-default.js
server/lib/parseArtistTitle/kfconfig-default.js
// karaoke-forever string to artist/title parser defaults module.exports = { // regex or string; artist/song get split around this match (default='-') delimiter: '-', // bool; whether artist is on left side of delimiter (default=true) artistFirst: true, // string; override Artist for songs in this file's scop...
// karaoke-forever string to artist/title parser defaults module.exports = { // regex or string; artist/song get split around this match (default='-') delimiter: '-', // bool; whether artist is on left side of delimiter (default=true) artistFirst: true, // string; override Artist for songs in this file's scop...
Improve filename parser regex (hopefully)
Improve filename parser regex (hopefully)
JavaScript
isc
bhj/karaoke-forever,bhj/karaoke-forever
javascript
## Code Before: // karaoke-forever string to artist/title parser defaults module.exports = { // regex or string; artist/song get split around this match (default='-') delimiter: '-', // bool; whether artist is on left side of delimiter (default=true) artistFirst: true, // string; override Artist for songs in ...
5ec8a96dde9826044f6750f804d0b8c1f90f0882
src/selectors/databaseFilterSettings.ts
src/selectors/databaseFilterSettings.ts
import { hitDatabaseSelector, databaseFIlterSettingsSelector } from './index'; import { createSelector } from 'reselect'; import { HitDatabaseEntry } from 'types'; export const hitDatabaseFilteredBySearchTerm = createSelector( [hitDatabaseSelector, databaseFIlterSettingsSelector], (hitDatabase, { searchTerm ...
import { hitDatabaseSelector, databaseFilterSettingsSelector } from './index'; import { createSelector } from 'reselect'; import { HitDatabaseEntry, HitDatabaseMap, StatusFilterType } from 'types'; import { filterBy } from 'utils/databaseFilter'; import { Map } from 'immutable'; export const hitDatabaseFilteredB...
Add selector for filtering HITs by status.
Add selector for filtering HITs by status.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
typescript
## Code Before: import { hitDatabaseSelector, databaseFIlterSettingsSelector } from './index'; import { createSelector } from 'reselect'; import { HitDatabaseEntry } from 'types'; export const hitDatabaseFilteredBySearchTerm = createSelector( [hitDatabaseSelector, databaseFIlterSettingsSelector], (hitDatabase, { s...
fb68aed02a3107ab8b5052363e49dc38751e3544
iso/bootlocal.sh
iso/bootlocal.sh
BOOT2DOCKER_DATA=`blkid -o device -l -t LABEL=boot2docker-data` PARTNAME=`echo "$BOOT2DOCKER_DATA" | sed 's/.*\///'` mkdir -p /mnt/$PARTNAME/var/lib/minishift ln -s /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift
BOOT2DOCKER_DATA=`blkid -o device -l -t LABEL=boot2docker-data` PARTNAME=`echo "$BOOT2DOCKER_DATA" | sed 's/.*\///'` mkdir -p /mnt/$PARTNAME/var/lib/minishift ln -s /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift mkdir -p /mnt/$PARTNAME/data ln -s /mnt/$PARTNAME/data /data
Configure /data as a persisted directory.
Configure /data as a persisted directory.
Shell
apache-2.0
LalatenduMohanty/minishift-b2d-iso,minishift/minishift-b2d-iso,LalatenduMohanty/minishift-b2d-iso,minishift/minishift-b2d-iso
shell
## Code Before: BOOT2DOCKER_DATA=`blkid -o device -l -t LABEL=boot2docker-data` PARTNAME=`echo "$BOOT2DOCKER_DATA" | sed 's/.*\///'` mkdir -p /mnt/$PARTNAME/var/lib/minishift ln -s /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift ## Instruction: Configure /data as a persisted directory. ## Code After: BOOT2DOCKER...
75e7bd4e66181f1a66e6405448e46dfffb73bd38
boards/arm/nucleo_f429zi/board.cmake
boards/arm/nucleo_f429zi/board.cmake
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
set_ifndef(STLINK_FW stlink) if(STLINK_FW STREQUAL jlink) board_runner_args(jlink "--device=stm32f429zi" "--speed=4000") include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) elseif(STLINK_FW STREQUAL stlink) include($ENV{ZEPHYR_BASE}/boards/common/openocd.board.cmake) endif()
Add JLink support for flash, as per nucleo_f070rb
nucleo_f429zi: Add JLink support for flash, as per nucleo_f070rb Signed-off-by: Dave Marples <dave@marples.net> Added ability to use JLink in addition to OpenOCD for flashing.
CMake
apache-2.0
Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,ldts/zephyr,ldts/zephyr,explora26/zephyr,nashif/zephyr,Vudentz/zephyr,finikorg/zephyr,Vudentz/zephyr,ldts/zephyr,galak/zephyr,galak/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,Vudentz/zephyr,explora26/zephy...
cmake
## Code Before: include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) ## Instruction: nucleo_f429zi: Add JLink support for flash, as per nucleo_f070rb Signed-off-by: Dave Marples <dave@marples.net> Added ability to use JLink in addition to OpenOCD for flashing. ## Code After: set_ifndef(STLINK_FW stlink) if(ST...
a2c8cede6e0b28769d7e86988c6818f8cca5e140
.travis.yml
.travis.yml
language: php php: - 5.5 - 5.6 - 7.0 - 7.1 - hhvm
language: php sudo: false matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 - php: 7.1 - php: 7.2
Drop HHVM and use the build matrix
Drop HHVM and use the build matrix HHVM LTS 3.24 is the last version to support PHP 5 compatibility third paragraph states "HHVM will not aim to target PHP7" and further down "We do not intend to be the runtime of choice for folks with pure PHP7 code." (just HACK) https://hhvm.com/blog/2017/09/18/the-future-of-hhvm....
YAML
mit
kodols/php-mysql-library
yaml
## Code Before: language: php php: - 5.5 - 5.6 - 7.0 - 7.1 - hhvm ## Instruction: Drop HHVM and use the build matrix HHVM LTS 3.24 is the last version to support PHP 5 compatibility third paragraph states "HHVM will not aim to target PHP7" and further down "We do not intend to be the runtime of choice for folks with p...
90be7c452f088e06e2d5ca205b71d62a10d4e361
tests/acceptance/test-runner.js
tests/acceptance/test-runner.js
// Mocha globals. const { describe, it, beforeEach, afterEach, before, after } = global; export { describe as runnerDescribe, it as runnerIt, beforeEach as runnerBeforeEach, afterEach as runnerAfterEach, before as runnerBefore, after as runnerAfter }; delete global.describe; delete global.beforeEach; dele...
// Mocha globals. const { describe, it, beforeEach, afterEach, before, after } = global; export { describe as runnerDescribe, it as runnerIt, beforeEach as runnerBeforeEach, afterEach as runnerAfterEach, before as runnerBefore, after as runnerAfter }; delete global.describe; delete global.beforeEach; dele...
Fix typos in Mocha global cleanup code
Fix typos in Mocha global cleanup code
JavaScript
mit
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
javascript
## Code Before: // Mocha globals. const { describe, it, beforeEach, afterEach, before, after } = global; export { describe as runnerDescribe, it as runnerIt, beforeEach as runnerBeforeEach, afterEach as runnerAfterEach, before as runnerBefore, after as runnerAfter }; delete global.describe; delete global....
2fd3f20edd23256b61b98de6d9363d6f19436d9d
.travis.yml
.travis.yml
language: node_js node_js: - "7" - "8" script: npm run lint cache: directories: - node_modules
language: node_js node_js: - "7" - "8" script: npm run lint cache: directories: - node_modules branches: only: - master
Build Travis on master pushes but not twice in PRs
:construction_worker: Build Travis on master pushes but not twice in PRs
YAML
mit
JasonEtco/flintcms,JasonEtco/flintcms
yaml
## Code Before: language: node_js node_js: - "7" - "8" script: npm run lint cache: directories: - node_modules ## Instruction: :construction_worker: Build Travis on master pushes but not twice in PRs ## Code After: language: node_js node_js: - "7" - "8" script: npm run lint cache: directories: - no...
7d768d45632ba6bc60791f07c32a995f91bca97e
byceps/blueprints/user_message/templates/user_message/create_form.html
byceps/blueprints/user_message/templates/user_message/create_form.html
{% extends 'layout/base.html' %} {% from 'macros/forms.html' import form_buttons, form_fieldset, form_field, form_supplement %} {% from 'macros/user_avatar.html' import render_user_avatar_20_and_link %} {% set current_page = 'user_message' %} {% set title = 'Mitteilung an Benutzer senden' %} {% block body %} <h1>Mi...
{% extends 'layout/base.html' %} {% from 'macros/forms.html' import form_buttons, form_fieldset, form_field, form_supplement %} {% from 'macros/user_avatar.html' import render_user_avatar_20_and_link %} {% set current_page = 'user_message' %} {% set title = 'Mitteilung an Benutzer senden' %} {% block body %} <h1>Mi...
Add message to user message form
Add message to user message form
HTML
bsd-3-clause
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps
html
## Code Before: {% extends 'layout/base.html' %} {% from 'macros/forms.html' import form_buttons, form_fieldset, form_field, form_supplement %} {% from 'macros/user_avatar.html' import render_user_avatar_20_and_link %} {% set current_page = 'user_message' %} {% set title = 'Mitteilung an Benutzer senden' %} {% block b...
4c6cecfa47116c6cd6e1ed777f8cd537bb0e51f0
.travis.yml
.travis.yml
language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly notifications: email: recipients: - pedro@pedrocr.net on_success: never on_failure: always irc: channels: - "irc.mozilla.org#chimper" on_success: always on_failure: always
language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly notifications: email: recipients: - pedro@pedrocr.net on_success: never on_failure: always irc: channels: - "irc.mozilla.org#chimper" on_success: always on_failure: always skip_...
Make the IRC notifications without join/leave
Make the IRC notifications without join/leave
YAML
lgpl-2.1
pedrocr/rawloader,pedrocr/rawloader
yaml
## Code Before: language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly notifications: email: recipients: - pedro@pedrocr.net on_success: never on_failure: always irc: channels: - "irc.mozilla.org#chimper" on_success: always on_failure: ...
e64358edc12b9a2fcbf57ecb2ce17ca609df8d43
Core/Assembler.h
Core/Assembler.h
enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstring name; int64_t value; }; struct EquationDefinition { std::wstring name; std::wstring value; }; struct ArmipsArguments { // common ArmipsMode mode; int symFileVersion; bool errorOnWarning; bool silent; StringList* errorsResult; s...
enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstring name; int64_t value; }; struct EquationDefinition { std::wstring name; std::wstring value; }; struct ArmipsArguments { // common ArmipsMode mode; int symFileVersion; bool errorOnWarning; bool silent; StringList* errorsResult; s...
Fix symFileVersion not being initialized in ArmipsArguments constructor
Fix symFileVersion not being initialized in ArmipsArguments constructor
C
mit
Kingcom/armips,Kingcom/armips,sp1187/armips,sp1187/armips,Kingcom/armips,sp1187/armips
c
## Code Before: enum class ArmipsMode { FILE, MEMORY }; struct LabelDefinition { std::wstring name; int64_t value; }; struct EquationDefinition { std::wstring name; std::wstring value; }; struct ArmipsArguments { // common ArmipsMode mode; int symFileVersion; bool errorOnWarning; bool silent; StringList* ...
05ee8aec8d40c6733be50b9f46f737bbd9f6b498
chatwork-cli-get-rooms.rb
chatwork-cli-get-rooms.rb
require 'faraday' require 'json' BASE_URI='https://api.chatwork.com/v1/' API_TOKEN=ENV['CHATWORK_API_TOKEN'] GET_ROOMS='rooms' chatwork_connection = Faraday::Connection.new(url: BASE_URI) do |builder| builder.use Faraday::Request::UrlEncoded builder.use Faraday::Response::Middleware builder.use Faraday::Adapte...
require_relative './chatwork-cli-controller' chatwork = ChatworkCliController.new results = chatwork.get_unread_rooms results.each do |result| puts result['name'] + ' : Unread [' + result['unread_num'].to_s + '] Mention [' + result['mention_num'].to_s + ']' end
Modify to use the ChatworkCliController class
Modify to use the ChatworkCliController class
Ruby
mit
mizoki/chatwork-cli-ruby
ruby
## Code Before: require 'faraday' require 'json' BASE_URI='https://api.chatwork.com/v1/' API_TOKEN=ENV['CHATWORK_API_TOKEN'] GET_ROOMS='rooms' chatwork_connection = Faraday::Connection.new(url: BASE_URI) do |builder| builder.use Faraday::Request::UrlEncoded builder.use Faraday::Response::Middleware builder.use...
d3ce79c7b207fa090ac04abc4997b7137f67b234
spec/helpers_spec.rb
spec/helpers_spec.rb
require 'helpers' RSpec.configure do |c| c.include Helpers end describe 'an example group' do it 'has access to the helper methods defined in the module' do expect(help).to be(:available) end end describe '#load_data_file' do it 'should load the test data correctly' do data = load_data_file(:test) ...
require 'helpers' RSpec.configure do |c| c.include Helpers end describe 'an example group' do it 'has access to the helper methods defined in the module' do expect(help).to be(:available) end end describe '#load_data_file' do it 'should load the test data correctly' do data = load_data_file(:test) ...
Add a spec for fixture_property
Add a spec for fixture_property
Ruby
mit
VxJasonxV/discordrb,meew0/discordrb,VxJasonxV/discordrb,meew0/discordrb
ruby
## Code Before: require 'helpers' RSpec.configure do |c| c.include Helpers end describe 'an example group' do it 'has access to the helper methods defined in the module' do expect(help).to be(:available) end end describe '#load_data_file' do it 'should load the test data correctly' do data = load_dat...
6825153e6c26ed2906da37afa8cc02493d5332f4
Tests/MenuItemTreeTest.php
Tests/MenuItemTreeTest.php
<?php namespace Bundle\MenuBundle\Tests; use Bundle\MenuBundle\MenuItem; class MenuItemTreeTest extends \PHPUnit_Framework_TestCase { /** * Create a new MenuItem * * @param string $name * @param string $route * @param array $attributes * @return MenuItem */ pro...
<?php namespace Bundle\MenuBundle\Tests; use Bundle\MenuBundle\MenuItem; class MenuItemTreeTest extends \PHPUnit_Framework_TestCase { public function testSampleTree() { $class = 'Bundle\MenuBundle\MenuItem'; $menu = new $class('Root li', null, array('class' => 'root')); $pt1 = $menu->g...
Add sample tree in unit tests, and check its integrity
Add sample tree in unit tests, and check its integrity
PHP
mit
piotrantosik/KnpMenuBundle,WouterJ/KnpMenuBundle,Soullivaneuh/KnpMenuBundle,Nek-/KnpMenuBundle,benji07/KnpMenuBundle,Soullivaneuh/KnpMenuBundle,craue/MenuBundle,KnpLabs/KnpMenuBundle,stof/KnpMenuBundle,javiereguiluz/KnpMenuBundle,bocharsky-bw/KnpMenuBundle
php
## Code Before: <?php namespace Bundle\MenuBundle\Tests; use Bundle\MenuBundle\MenuItem; class MenuItemTreeTest extends \PHPUnit_Framework_TestCase { /** * Create a new MenuItem * * @param string $name * @param string $route * @param array $attributes * @return MenuItem...
8da1fb6299a87f9c2516f1e168573ac2949440e8
packages/flutter_markdown/.cirrus.yml
packages/flutter_markdown/.cirrus.yml
container: image: cirrusci/flutter:0.1.0 test_task: pub_cache: folder: ~/.pub-cache test_script: flutter test
container: image: cirrusci/flutter:latest test_task: pub_cache: folder: ~/.pub-cache test_script: flutter test analyze_task: pub_cache: folder: ~/.pub-cache analyze_script: flutter analyze
Use the latest available Flutter image
Use the latest available Flutter image Plus run `flutter analyze`
YAML
bsd-3-clause
flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages,flutter/packages
yaml
## Code Before: container: image: cirrusci/flutter:0.1.0 test_task: pub_cache: folder: ~/.pub-cache test_script: flutter test ## Instruction: Use the latest available Flutter image Plus run `flutter analyze` ## Code After: container: image: cirrusci/flutter:latest test_task: pub_cache: folder: ~/....
5c3776b35e0a33f90f15bc748166f40e3310abdd
chart/templates/tls-secrets.yaml
chart/templates/tls-secrets.yaml
{{- if .Values.ingress.enabled }} {{- range .Values.ingress.secrets }} apiVersion: v1 kind: Secret metadata: name: longhorn namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn type: kubernetes.io/tls data: tls.crt: {{ .certificate | b64enc }} ...
{{- if .Values.ingress.enabled }} {{- range .Values.ingress.secrets }} apiVersion: v1 kind: Secret metadata: name: {{ .name }} namespace: {{ include "release_namespace" $ }} labels: {{- include "longhorn.labels" $ | nindent 4 }} app: longhorn type: kubernetes.io/tls data: tls.crt: {{ .certificate | b64enc }...
Fix ability to provide own tls certificate for ingress.
Fix ability to provide own tls certificate for ingress. Signed-off-by: Jan Černý <66c5883bbb8b0cd04d3936cfb2c6f09dc3cc8e6c@Gmail.com>
YAML
apache-2.0
rancher/longhorn
yaml
## Code Before: {{- if .Values.ingress.enabled }} {{- range .Values.ingress.secrets }} apiVersion: v1 kind: Secret metadata: name: longhorn namespace: {{ include "release_namespace" . }} labels: {{- include "longhorn.labels" . | nindent 4 }} app: longhorn type: kubernetes.io/tls data: tls.crt: {{ .certifica...
d7139725865d2ef3a2b596e80f9be6437ee90de5
windows-package/README.txt
windows-package/README.txt
This package distributes the clang compiler and a compiler plugin called clazy. clang and llvm were built from branch release_40 (https://github.com/llvm-mirror/llvm.git f3d3277bb713bb8aced9a7ac2e9b05c52d2844ee and https://github.com/llvm-mirror/clang.git 3c8961bedc65c9a15cbe67a2ef385a0938f7cfef. See LICENSE-LLVM.TXT ...
This package distributes the clang compiler and a compiler plugin called clazy. clang and llvm were built from branch release_40 (https://github.com/llvm-mirror/llvm.git c8fccc53ed66d505898f8850bcc690c977a7c9a7 and https://github.com/llvm-mirror/clang.git 3c8961bedc65c9a15cbe67a2ef385a0938f7cfef. See LICENSE-LLVM.TXT ...
Update the llvm sha1 used for the MSVC pre-built binary
Update the llvm sha1 used for the MSVC pre-built binary
Text
lgpl-2.1
nyalldawson/clazy,nyalldawson/clazy,nyalldawson/clazy,nyalldawson/clazy
text
## Code Before: This package distributes the clang compiler and a compiler plugin called clazy. clang and llvm were built from branch release_40 (https://github.com/llvm-mirror/llvm.git f3d3277bb713bb8aced9a7ac2e9b05c52d2844ee and https://github.com/llvm-mirror/clang.git 3c8961bedc65c9a15cbe67a2ef385a0938f7cfef. See L...
561943ec212113b1b63094ccdfaf8f2ee43c1ba5
db/seeds.rb
db/seeds.rb
dionne = User.create( name: "dionne", password: "cat" ) baby = Movie.create( name: "Adventures in Babysitting", description: "A lifetime of fun. In just one night" ) live_action = Genre.create( name: "Live-Action" ) baby.genres << live_action dionne.movies << baby
dionne = User.create( name: "dionne", password: "cat" ) baby = Movie.create( name: "Adventures in Babysitting", description: "A lifetime of fun. In just one night", rating: 5 ) live_action = Genre.create( name: "Live-Action" ) baby.genres << live_action dionne.movies << baby
Add ranking to one seed entry
Add ranking to one seed entry
Ruby
mit
SputterPuttRedux/phase_3_audition,SputterPuttRedux/phase_3_audition
ruby
## Code Before: dionne = User.create( name: "dionne", password: "cat" ) baby = Movie.create( name: "Adventures in Babysitting", description: "A lifetime of fun. In just one night" ) live_action = Genre.create( name: "Live-Action" ) baby.genres << live_action dionne.movies << baby ## Instruction: Add ...
4182fe6d42d89b6731fa30030e2150f24ee80b4c
ButtonStyleKitSample/ButtonStyleKit/ButtonStyleSelectableBase.swift
ButtonStyleKitSample/ButtonStyleKit/ButtonStyleSelectableBase.swift
// // ButtonStyleSelectableBase.swift // ButtonStyleKit // // Created by keygx on 2016/08/04. // Copyright © 2016年 keygx. All rights reserved. // import UIKit open class ButtonStyleSelectableBase: ButtonStyleKit { override public final var isEnabled: Bool { set { if newValue { ...
// // ButtonStyleSelectableBase.swift // ButtonStyleKit // // Created by keygx on 2016/08/04. // Copyright © 2016年 keygx. All rights reserved. // import UIKit open class ButtonStyleSelectableBase: ButtonStyleKit { override public final var isEnabled: Bool { set { if newValue { ...
Fix to reflect the value of isSelected in button value
Fix to reflect the value of isSelected in button value
Swift
mit
keygx/ButtonStyleKit
swift
## Code Before: // // ButtonStyleSelectableBase.swift // ButtonStyleKit // // Created by keygx on 2016/08/04. // Copyright © 2016年 keygx. All rights reserved. // import UIKit open class ButtonStyleSelectableBase: ButtonStyleKit { override public final var isEnabled: Bool { set { if ne...
a8515cf56837ef3f32ea53003f88275a47c4d249
src/pipeline.py
src/pipeline.py
import os import fnmatch import re import subprocess import sys import json import imp import time class pipeline(object): def __init__(self): self.name = '' self.taskId = '' self.taskPath = '' self.scriptPath = '' self.inputPath = '' self.outputPath = '' se...
import os import fnmatch import re import subprocess import sys import json import imp import time from pprint import pprint class pipeline(object): def __init__(self): self.name = '' self.taskId = '' self.taskPath = '' self.scriptPath = '' self.inputPath = '' self....
Change the way to import package dynamically
Change the way to import package dynamically
Python
mit
s4553711/HiScript
python
## Code Before: import os import fnmatch import re import subprocess import sys import json import imp import time class pipeline(object): def __init__(self): self.name = '' self.taskId = '' self.taskPath = '' self.scriptPath = '' self.inputPath = '' self.outputPath...
cb05ae9a3889be03ed374a76ebdc0a86010bf935
src/index.js
src/index.js
import Kinvey from 'kinvey-javascript-sdk-core'; import { NetworkRack } from 'kinvey-javascript-sdk-core/es5/rack/rack'; import { HttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http'; import { PhoneGapHttpMiddleware } from './http'; import { PhoneGapPush } from './push'; import { PhoneGapPopup } ...
import Kinvey from 'kinvey-javascript-sdk-core'; import { KinveyError } from 'kinvey-javascript-sdk-core/es5/errors'; import { NetworkRack } from 'kinvey-javascript-sdk-core/es5/rack/rack'; import { HttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http'; import { PhoneGapHttpMiddleware } from './ht...
Check that cordova device plugin is installed
Check that cordova device plugin is installed
JavaScript
apache-2.0
Kinvey/kinvey-phonegap-lib
javascript
## Code Before: import Kinvey from 'kinvey-javascript-sdk-core'; import { NetworkRack } from 'kinvey-javascript-sdk-core/es5/rack/rack'; import { HttpMiddleware } from 'kinvey-javascript-sdk-core/es5/rack/middleware/http'; import { PhoneGapHttpMiddleware } from './http'; import { PhoneGapPush } from './push'; import { ...
2c615a9106a056446f6332ce920e9592487ea50a
app/javascript/app/components/my-climate-watch/viz-creator/components/charts/tooltip/tooltip-component.jsx
app/javascript/app/components/my-climate-watch/viz-creator/components/charts/tooltip/tooltip-component.jsx
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { themr } from 'react-css-themr'; import theme from 'styles/themes/chart-tooltip/chart-tooltip.scss'; const Tooltip = ({ label, tooltip }) => ( <div className={theme.tooltip}> <div className={theme.tooltipHeader}>...
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { themr } from 'react-css-themr'; import theme from 'styles/themes/chart-tooltip/chart-tooltip.scss'; const Tooltip = ({ label, tooltip, payload }) => ( <div className={theme.tooltip}> <div className={theme.toolti...
Add payload to render values
Add payload to render values
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
jsx
## Code Before: import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { themr } from 'react-css-themr'; import theme from 'styles/themes/chart-tooltip/chart-tooltip.scss'; const Tooltip = ({ label, tooltip }) => ( <div className={theme.tooltip}> <div className={theme...
69755e54ad5c7b8813f01b738d6318da77a79e05
README.md
README.md
IMDb ==== An IMDb interface for Node ```typescript import { IMDb, Movie } from '../src' async function example(): Promise<Movie> { let i = new IMDb() let movie = await i.getMovie('tt3501632') // Thor: Ragnarok return movie } example() .then((movie) => console.log(movie.getTitle())) .catch((e) => console.e...
IMDb [![CircleCI](https://circleci.com/gh/mhsjlw/imdb.svg?style=svg)](https://circleci.com/gh/mhsjlw/imdb) ==== An IMDb interface for Node ```typescript import { IMDb, Movie } from '../src' async function example(): Promise<Movie> { let i = new IMDb() let movie = await i.getMovie('tt3501632') // Thor: Ragnarok ...
Add status badge [no ci]
Add status badge [no ci]
Markdown
mit
mhsjlw/imdb
markdown
## Code Before: IMDb ==== An IMDb interface for Node ```typescript import { IMDb, Movie } from '../src' async function example(): Promise<Movie> { let i = new IMDb() let movie = await i.getMovie('tt3501632') // Thor: Ragnarok return movie } example() .then((movie) => console.log(movie.getTitle())) .catch(...
39cf8718473cd4ca3c09444bef7d1d583b0312ed
src/main/java/io/github/spharris/ssc/SscGuiceModule.java
src/main/java/io/github/spharris/ssc/SscGuiceModule.java
package io.github.spharris.ssc; import com.google.inject.AbstractModule; import com.google.inject.assistedinject.FactoryModuleBuilder; import com.sun.jna.Native; public class SscGuiceModule extends AbstractModule { @Override protected void configure() { bind(Ssc.class).toInstance((Ssc) Native.loadLibrary(Ssc...
package io.github.spharris.ssc; import com.google.inject.AbstractModule; import com.google.inject.assistedinject.FactoryModuleBuilder; import com.sun.jna.Native; public class SscGuiceModule extends AbstractModule { @Override protected void configure() { bind(Ssc.class).toInstance((Ssc) Native.loadLibrary(Ssc...
Add integration tests for data
Add integration tests for data
Java
mit
spharris/pvwatts-java,spharris/pvwatts-java
java
## Code Before: package io.github.spharris.ssc; import com.google.inject.AbstractModule; import com.google.inject.assistedinject.FactoryModuleBuilder; import com.sun.jna.Native; public class SscGuiceModule extends AbstractModule { @Override protected void configure() { bind(Ssc.class).toInstance((Ssc) Native...
c1a66df58748b8a07b29be486144ab7be2572515
Pages/Page.php
Pages/Page.php
<?php /** * @author Manuel Thalmann <m@nuth.ch> * @license Apache-2.0 */ namespace ManuTh\TemPHPlate\Pages; use System\Web; use System\Web\Forms\Rendering\PaintEventArgs; use System\Web\Forms\MenuItem; use ManuTh\TemPHPlate\Templates\BootstrapTemplate; { /** *...
<?php /** * @author Manuel Thalmann <m@nuth.ch> * @license Apache-2.0 */ namespace ManuTh\TemPHPlate\Pages; use System\Web; use System\Web\Forms\Rendering\PaintEventArgs; use System\Web\Forms\MenuItem; use ManuTh\TemPHPlate\Templates\BootstrapTemplate; { /** *...
Set the title of the default page
Set the title of the default page
PHP
apache-2.0
manuth/TemPHPlate,manuth/TemPHPlate,manuth/TemPHPlate
php
## Code Before: <?php /** * @author Manuel Thalmann <m@nuth.ch> * @license Apache-2.0 */ namespace ManuTh\TemPHPlate\Pages; use System\Web; use System\Web\Forms\Rendering\PaintEventArgs; use System\Web\Forms\MenuItem; use ManuTh\TemPHPlate\Templates\BootstrapTemplate; { ...
68261a641b10faea3a6fa050775682b913fc02aa
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const babel = require('gulp-babel'); const srcDir = './src'; const buildDir = './lib'; gulp.task('babelify', () => { return gulp.src(`${srcDir}/**/*.js`) .pipe(babel()) .pipe(gulp.dest(buildDir)); }); gulp.task('watch', () => { gulp.watch('babelify', [`${srcDir}/**/*.js`]); ...
const gulp = require('gulp'); const babel = require('gulp-babel'); const srcDir = './src'; const buildDir = './lib'; gulp.task('babelify', () => { return gulp.src(`${srcDir}/**/*.js`) .pipe(babel()) .pipe(gulp.dest(buildDir)); }); gulp.task('watch', () => { gulp.watch(`${srcDir}/**/*.js`, ['babelify']); ...
Correct the gulp watch declaration
Correct the gulp watch declaration
JavaScript
isc
ketsugi/plexacious
javascript
## Code Before: const gulp = require('gulp'); const babel = require('gulp-babel'); const srcDir = './src'; const buildDir = './lib'; gulp.task('babelify', () => { return gulp.src(`${srcDir}/**/*.js`) .pipe(babel()) .pipe(gulp.dest(buildDir)); }); gulp.task('watch', () => { gulp.watch('babelify', [`${srcD...
d7f7fe3401e52fc46daac09064a825f7130d146f
doc/release-notes.md
doc/release-notes.md
Bitcoin ABC version 0.23.3 is now available from: <https://download.bitcoinabc.org/0.23.3/> This release includes the following features and fixes:
Bitcoin ABC version 0.23.3 is now available from: <https://download.bitcoinabc.org/0.23.3/> This release includes the following features and fixes: - All the RPC help is now available even is the wallet is disabled - Improvements to the experimental avalanche feature
Add some release notes for the 0.23.3 release
Add some release notes for the 0.23.3 release Summary: As per title. Test Plan: Read it. Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D9465
Markdown
mit
Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc
markdown
## Code Before: Bitcoin ABC version 0.23.3 is now available from: <https://download.bitcoinabc.org/0.23.3/> This release includes the following features and fixes: ## Instruction: Add some release notes for the 0.23.3 release Summary: As per title. Test Plan: Read it. Reviewers: #bitcoin_abc, majcosta Reviewe...
9d382a7e5fd6bc7bd1dee9ae479e6b609232f439
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var nodemon = require('gulp-nodemon'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var cssPath = [ './vendor/webuploader_fex/dist/webuploader.css', './assets/css/**/*' ]; var jsPath = [ './vendor/jquery/dist/jquery.js', './vendor/webuploader_fex/di...
var gulp = require('gulp'); var nodemon = require('gulp-nodemon'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var cssPath = [ './vendor/webuploader_fex/dist/webuploader.css', './assets/css/**/*' ]; var jsPath = [ './vendor/jquery/dist/jquery.js', './vendor/webuploader_fex/di...
Add watch files in nodemon task
Add watch files in nodemon task
JavaScript
mit
urlucky/ImageStorm,urlucky/ImageStorm
javascript
## Code Before: var gulp = require('gulp'); var nodemon = require('gulp-nodemon'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var cssPath = [ './vendor/webuploader_fex/dist/webuploader.css', './assets/css/**/*' ]; var jsPath = [ './vendor/jquery/dist/jquery.js', './vendor/we...
ee9937659d8fe7a3a7b5ea98cba8832bcbd81ac6
spec/hamlit/engine/error_spec.rb
spec/hamlit/engine/error_spec.rb
describe Hamlit::Engine do describe 'syntax error' do it 'raises syntax error for empty =' do expect { render_string('= ') }.to raise_error( Hamlit::SyntaxError, "There's no Ruby code for = to evaluate.", ) end it 'raises syntax error for illegal indentation' do expect ...
describe Hamlit::Engine do describe 'syntax error' do it 'raises syntax error for empty =' do expect { render_string('= ') }.to raise_error( Hamlit::SyntaxError, "There's no Ruby code for = to evaluate.", ) end it 'raises syntax error for illegal indentation' do expect ...
Fix an error on Ruby 2.0
Fix an error on Ruby 2.0
Ruby
mit
haml/haml,PericlesTheo/hamlit,haml/haml,haml/haml,PericlesTheo/hamlit,PericlesTheo/hamlit,haml/haml,PericlesTheo/hamlit
ruby
## Code Before: describe Hamlit::Engine do describe 'syntax error' do it 'raises syntax error for empty =' do expect { render_string('= ') }.to raise_error( Hamlit::SyntaxError, "There's no Ruby code for = to evaluate.", ) end it 'raises syntax error for illegal indentation' ...
e7f923488ebf589aa78f7dc37792ffba3fffd2a3
pyinfra_kubernetes/defaults.py
pyinfra_kubernetes/defaults.py
DEFAULTS = { # Install 'kubernetes_version': None, # must be provided 'kubernetes_download_base_url': 'https://dl.k8s.io', 'kubernetes_install_dir': '/usr/local/kubernetes', 'kubernetes_bin_dir': '/usr/local/bin', 'kubernetes_conf_dir': '/etc/kubernetes', # Config 'kubernetes_service_c...
DEFAULTS = { # Install 'kubernetes_version': None, # must be provided 'kubernetes_download_base_url': 'https://dl.k8s.io', 'kubernetes_install_dir': '/usr/local/kubernetes', 'kubernetes_bin_dir': '/usr/local/bin', 'kubernetes_conf_dir': '/etc/kubernetes', # Config 'kubernetes_service_c...
Update comment about default data.
Update comment about default data.
Python
mit
EDITD/pyinfra-kubernetes,EDITD/pyinfra-kubernetes
python
## Code Before: DEFAULTS = { # Install 'kubernetes_version': None, # must be provided 'kubernetes_download_base_url': 'https://dl.k8s.io', 'kubernetes_install_dir': '/usr/local/kubernetes', 'kubernetes_bin_dir': '/usr/local/bin', 'kubernetes_conf_dir': '/etc/kubernetes', # Config 'kube...
26687d6caf37202df77c8b5d1c108da0ca1f85cd
tests/PaginationTest.php
tests/PaginationTest.php
<?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use Froiden\RestAPI\Tests\TestCase; class PaginationTest extends TestCase { /** * Test User Index Page. * * @return void **...
<?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use Froiden\RestAPI\Tests\TestCase; class PaginationTest extends TestCase { /** * Test User Index Page. * * @return void **...
Write TestCase for pagination with parameter 'offset' or 'limit'4
Test: Write TestCase for pagination with parameter 'offset' or 'limit'4
PHP
mit
Froiden/laravel-rest-api,Froiden/laravel-rest-api
php
## Code Before: <?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use Froiden\RestAPI\Tests\TestCase; class PaginationTest extends TestCase { /** * Test User Index Page. * * @ret...
58ec3665f816c5ca50639d8742a69d934f0c37e4
tests/unit/array-offset-test.js
tests/unit/array-offset-test.js
/* global QUnit */ import Em from 'ember'; import ArrayOffset from 'array-offset'; QUnit.module('ArrayOffset'); QUnit.test('constructor exists', function (assert) { assert.ok(ArrayOffset, 'ArrayOffset is not null or undefined'); assert.equal(typeof ArrayOffset, 'function', 'ArrayOffset is function'); }); QUnit.tes...
/* global QUnit */ import Em from 'ember'; import ArrayOffset from 'array-offset'; QUnit.module('ArrayOffset'); QUnit.test('constructor exists', function (assert) { assert.ok(ArrayOffset, 'ArrayOffset is not null or undefined'); assert.equal(typeof ArrayOffset, 'function', 'ArrayOffset is function'); }); QUnit.tes...
Use deep equal over array join
Use deep equal over array join
JavaScript
mit
dcheng168/ember-cli-array-offset,dcheng168/ember-cli-array-offset,j-/ember-cli-array-offset,j-/ember-cli-array-offset
javascript
## Code Before: /* global QUnit */ import Em from 'ember'; import ArrayOffset from 'array-offset'; QUnit.module('ArrayOffset'); QUnit.test('constructor exists', function (assert) { assert.ok(ArrayOffset, 'ArrayOffset is not null or undefined'); assert.equal(typeof ArrayOffset, 'function', 'ArrayOffset is function')...
56cafd49cb499f4dfb98e81d94e275c04d1dcd8b
metadata/com.smartpack.kernelmanager.yml
metadata/com.smartpack.kernelmanager.yml
Categories: - System License: GPL-3.0-or-later AuthorName: sunilpaulmathew AuthorEmail: sunil.kde@gmail.com AuthorWebSite: https://smartpack.github.io/ WebSite: https://smartpack.github.io/spkm/ SourceCode: https://github.com/SmartPack/SmartPack-Kernel-Manager IssueTracker: https://github.com/SmartPack/SmartPack-Kern...
Categories: - System License: GPL-3.0-or-later AuthorName: sunilpaulmathew AuthorEmail: sunil.kde@gmail.com AuthorWebSite: https://smartpack.github.io/ WebSite: https://smartpack.github.io/spkm/ SourceCode: https://github.com/SmartPack/SmartPack-Kernel-Manager IssueTracker: https://github.com/SmartPack/SmartPack-Kern...
Update SmartPack-Kernel Manager to 15.5 (155)
Update SmartPack-Kernel Manager to 15.5 (155)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - System License: GPL-3.0-or-later AuthorName: sunilpaulmathew AuthorEmail: sunil.kde@gmail.com AuthorWebSite: https://smartpack.github.io/ WebSite: https://smartpack.github.io/spkm/ SourceCode: https://github.com/SmartPack/SmartPack-Kernel-Manager IssueTracker: https://github.com/SmartPac...
98c4e0f4228a92248ccfca4fc1bc5c5302529eee
src/Http/Routing/Router.php
src/Http/Routing/Router.php
<?php namespace RandomState\LaravelApi\Http\Routing; use Illuminate\Contracts\Routing\Registrar; use Illuminate\Contracts\Support\Responsable; use ArrayObject; use Illuminate\Support\Facades\App; use JsonSerializable; use Illuminate\Http\Response; use Illuminate\Http\JsonResponse; use Illuminate\Contracts\Support\J...
<?php namespace RandomState\LaravelApi\Http\Routing; use Illuminate\Contracts\Routing\Registrar; use RandomState\LaravelApi\Http\Response\ResponseFactory; class Router extends \Illuminate\Routing\Router implements Registrar { /** * @var \Illuminate\Routing\Router */ protected $router; public static functi...
Clean up router to defer to base router as much as possible.
Clean up router to defer to base router as much as possible.
PHP
mit
randomstate/laravel-api
php
## Code Before: <?php namespace RandomState\LaravelApi\Http\Routing; use Illuminate\Contracts\Routing\Registrar; use Illuminate\Contracts\Support\Responsable; use ArrayObject; use Illuminate\Support\Facades\App; use JsonSerializable; use Illuminate\Http\Response; use Illuminate\Http\JsonResponse; use Illuminate\Con...
acb75c7604243ac031f13485fcbf20c25c3b412b
function/detach.js
function/detach.js
"use strict"; /* istanbul ignore else */ if(typeof process === 'object') module.exports = function(fn, bind) { return function() { var args = arguments; process.nextTick(function(){ return fn.apply(bind, args); }) }; }; else module.exports = function(fn, bind) { return func...
"use strict"; /* istanbul ignore else */ if(typeof process === 'object') module.exports = function(fn, bind) { return function() { var args = arguments; process.nextTick(function(){ if(fn) return fn.apply(bind, args); }) }; }; else module.exports = function(fn, bind) {...
Check for function to exists
Check for function to exists
JavaScript
mit
131/nyks
javascript
## Code Before: "use strict"; /* istanbul ignore else */ if(typeof process === 'object') module.exports = function(fn, bind) { return function() { var args = arguments; process.nextTick(function(){ return fn.apply(bind, args); }) }; }; else module.exports = function(fn, bind) { ...
1592a988099faa64de9355ae4dc99cbf1b8e6169
gh_pages.sh
gh_pages.sh
BRANCH=`git branch 2> /dev/null | grep "*" | sed 's#*\ \(.*\)#\1#'` if [ "$BRANCH" != "master" ] then exit 1 fi DESC=`git describe --tags` # Update master branch make doc git add doc/*.html doc/api/*.html git ci -m "Update docs to $DESC" # Update gh-pages branch TMP=`mktemp --tmpdir -d temp.XXXXXXXXXX` cp ./doc...
BRANCH=`git branch 2> /dev/null | grep "*" | sed 's#*\ \(.*\)#\1#'` if [ "$BRANCH" != "master" ] then exit 1 fi DESC=`git describe --tags` # Update master branch make doc git add doc/*.html doc/api/*.html git ci -m "Update docs to $DESC" # Update gh-pages branch TMP=`mktemp --tmpdir -d gh_pages.XXXXXXXXXX 2> /d...
Fix TMP dir creation on OS X
Fix TMP dir creation on OS X
Shell
mit
Sannis/node-ubjson,Sannis/node-ubjson
shell
## Code Before: BRANCH=`git branch 2> /dev/null | grep "*" | sed 's#*\ \(.*\)#\1#'` if [ "$BRANCH" != "master" ] then exit 1 fi DESC=`git describe --tags` # Update master branch make doc git add doc/*.html doc/api/*.html git ci -m "Update docs to $DESC" # Update gh-pages branch TMP=`mktemp --tmpdir -d temp.XXXX...
89a869228baed62318364f1658c3fef70df43e04
lib/connection_client.robot
lib/connection_client.robot
*** Settings *** Documentation This module is for SSH connection override to QEMU ... based openbmc systems. Library SSHLibrary Library OperatingSystem *** Variables *** *** Keywords *** Open Connection And Log In Run Keyword If '${SSH_PORT}' != '${EMPTY}' and '${HTTPS_POR...
*** Settings *** Documentation This module is for SSH connection override to QEMU ... based openbmc systems. Library SSHLibrary Library OperatingSystem *** Variables *** *** Keywords *** Open Connection And Log In Run Keyword If '${SSH_PORT}' != '${EMPTY}' and '${HTTPS_POR...
Update AUTH_URI variable in connections as global
Update AUTH_URI variable in connections as global Resolves openbmc/openbmc-test-automation#47 Change-Id: Ieb4788d9609748675c4e7a8f5c3f32423ad61a30 Signed-off-by: Sridevi Ramesh <cb5e1f81dd390dfc3a9afc08ab7298b7ab4296f5@in.ibm.com>
RobotFramework
apache-2.0
openbmc/openbmc-test-automation,openbmc/openbmc-test-automation
robotframework
## Code Before: *** Settings *** Documentation This module is for SSH connection override to QEMU ... based openbmc systems. Library SSHLibrary Library OperatingSystem *** Variables *** *** Keywords *** Open Connection And Log In Run Keyword If '${SSH_PORT}' != '${EMPTY}' ...
4d203821876f5e4e87c75417224e79035ecf0641
src/session/manager.h
src/session/manager.h
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
/* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * This file is part o...
Add session files to session doc group
Add session files to session doc group
C
lgpl-2.1
waysome/waysome,waysome/waysome
c
## Code Before: /* * waysome - wayland based window manager * * Copyright in alphabetical order: * * Copyright (C) 2014-2015 Julian Ganz * Copyright (C) 2014-2015 Manuel Messner * Copyright (C) 2014-2015 Marcel Müller * Copyright (C) 2014-2015 Matthias Beyer * Copyright (C) 2014-2015 Nadja Sommerfeld * * Thi...
98c70d3bd9fdb922245a39e3df221af27292fdfb
.travis.yml
.travis.yml
language: ruby script: bundle exec rake spec rvm: - 2.0.0 - 2.1 - 2.2.4 - ruby-head gemfile: - gemfiles/Gemfile-rails.3.2.x - gemfiles/Gemfile-rails.4.0.x - gemfiles/Gemfile-rails.4.1.x - gemfiles/Gemfile-rails.4.2.x - gemfiles/Gemfile-rails.5.0.0.beta1 sudo: false matrix: exclude: - rvm: ru...
language: ruby script: bundle exec rake spec rvm: - 2.0.0 - 2.1 - 2.2.4 - ruby-head gemfile: - gemfiles/Gemfile-rails.3.2.x - gemfiles/Gemfile-rails.4.0.x - gemfiles/Gemfile-rails.4.1.x - gemfiles/Gemfile-rails.4.2.x - gemfiles/Gemfile-rails.5.0.0.beta1 sudo: false matrix: exclude: - rvm: ru...
Exclude rails 5 with ruby under 2.1 tests from Travis
Exclude rails 5 with ruby under 2.1 tests from Travis Rails 5 Only Supports Ruby 2.2.2+.
YAML
mit
amatsuda/active_decorator,yui-knk/active_decorator,yui-knk/active_decorator,amatsuda/active_decorator
yaml
## Code Before: language: ruby script: bundle exec rake spec rvm: - 2.0.0 - 2.1 - 2.2.4 - ruby-head gemfile: - gemfiles/Gemfile-rails.3.2.x - gemfiles/Gemfile-rails.4.0.x - gemfiles/Gemfile-rails.4.1.x - gemfiles/Gemfile-rails.4.2.x - gemfiles/Gemfile-rails.5.0.0.beta1 sudo: false matrix: exclud...
0e71d00b575d51e8687a6791fd59bdd5e06c94df
cookbooks/universe_ubuntu/attributes/default.rb
cookbooks/universe_ubuntu/attributes/default.rb
default['universe']['user'] = 'vagrant' user = default['universe']['user'] default['universe']['home'] = automatic['etc']['passwd'][user]['dir']
default['universe']['user'] = 'vagrant' default['universe']['gpu'] = false # Change to 'true' to enable gpu processing user = default['universe']['user'] default['universe']['home'] = automatic['etc']['passwd'][user]['dir']
Add gpu flag to attributes file
Add gpu flag to attributes file
Ruby
mit
havk64/Universe-on-Ubuntu-Chef-Cookbook,havk64/Universe-on-Ubuntu-Chef-Cookbook
ruby
## Code Before: default['universe']['user'] = 'vagrant' user = default['universe']['user'] default['universe']['home'] = automatic['etc']['passwd'][user]['dir'] ## Instruction: Add gpu flag to attributes file ## Code After: default['universe']['user'] = 'vagrant' default['universe']['gpu'] = false # Change to 'true...
72655de9283671e32f81456a49f9d5776380241f
src/main/scala/Sockets.scala
src/main/scala/Sockets.scala
package org.refptr.iscala import org.zeromq.ZMQ class Sockets(profile: Profile) { val ctx = ZMQ.context(1) val publish = ctx.socket(ZMQ.PUB) val raw_input = ctx.socket(ZMQ.ROUTER) val requests = ctx.socket(ZMQ.ROUTER) val control = ctx.socket(ZMQ.ROUTER) val heartbeat = ctx.socket(ZMQ.REP) ...
package org.refptr.iscala import org.zeromq.ZMQ class Sockets(profile: Profile) { val ctx = ZMQ.context(1) val publish = ctx.socket(ZMQ.PUB) val requests = ctx.socket(ZMQ.ROUTER) val control = ctx.socket(ZMQ.ROUTER) val stdin = ctx.socket(ZMQ.ROUTER) val heartbeat = ctx.socket(ZMQ.REP) p...
Rename raw_input socket to stdin
Rename raw_input socket to stdin
Scala
mit
nkhuyu/IScala,nkhuyu/IScala,mattpap/IScala,mattpap/IScala
scala
## Code Before: package org.refptr.iscala import org.zeromq.ZMQ class Sockets(profile: Profile) { val ctx = ZMQ.context(1) val publish = ctx.socket(ZMQ.PUB) val raw_input = ctx.socket(ZMQ.ROUTER) val requests = ctx.socket(ZMQ.ROUTER) val control = ctx.socket(ZMQ.ROUTER) val heartbeat = ctx.so...
11515bfc3fe725eabfeb5bac45d9ccd798f992dd
lib/thor/task_hash.rb
lib/thor/task_hash.rb
require 'thor/ordered_hash' require 'thor/task' class Thor::TaskHash < Thor::OrderedHash def initialize(klass) super() @klass = klass end def each(local = false, &block) super() { |k, t| yield k, t.with_klass(@klass) } @klass.superclass.tasks.each { |k, t| yield k, t.with_klass(@klass) } unless ...
require 'thor/ordered_hash' require 'thor/task' class Thor::TaskHash < Thor::OrderedHash def initialize(klass) super() @klass = klass end def each(local = false, &block) super() { |k, t| yield k, t.with_klass(@klass) } @klass.superclass.tasks.each { |k, t| yield k, t.with_klass(@klass) } unless ...
Make Thor::TaskHash look up tasks from the superclass.
Make Thor::TaskHash look up tasks from the superclass.
Ruby
mit
nju520/bundler,doudou/thor,ximus/bundler,mattbrictson/bundler-1,1337807/bundler,steved/bundler,e2/bundler,smlance/bundler,asutoshpalai/bundler,patvice/bundler,agis-/bundler,mvz/bundler,simplybusiness/bundler,neslom/bundler,ipmobiletech/bundler,Elffers/bundler,fancyremarker/thor,carpodaster/bundler,ligi/bundler,Teino197...
ruby
## Code Before: require 'thor/ordered_hash' require 'thor/task' class Thor::TaskHash < Thor::OrderedHash def initialize(klass) super() @klass = klass end def each(local = false, &block) super() { |k, t| yield k, t.with_klass(@klass) } @klass.superclass.tasks.each { |k, t| yield k, t.with_klass(@...
ca8d51a2ef6edcd94501d38fde799c9163b7d770
app/src/main/java/in/testpress/testpress/events/SmsReceivingEvent.java
app/src/main/java/in/testpress/testpress/events/SmsReceivingEvent.java
package in.testpress.testpress.events; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import in.testpress.testpress.R; import in.testpress.testpress.authenticator.CodeVerificationActivity.Timer; im...
package in.testpress.testpress.events; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import in.testpress.testpress.authenticator.CodeVerificationActivity.Timer; public class SmsReceivingEvent ext...
Modify sms format in sms receiving event
Modify sms format in sms receiving event Sms regex format is changed to support all institutes names.
Java
mit
testpress/android,testpress/android,testpress/android,testpress/android,testpress/android
java
## Code Before: package in.testpress.testpress.events; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import in.testpress.testpress.R; import in.testpress.testpress.authenticator.CodeVerificationAc...
b69dacb83221b6d006693e24d8da18ecbfc62dcd
README.md
README.md
Pneumatic-testbed ================= A testbed application to drive design decisions about the Pneumatic game library Creating a window ================= ```c++ #include <string> #include <iostream> #include "pneu/graphics/Window.hpp" #include "pneu/core/MethodResult.hpp" auto main(int argc, const char** argv) -> i...
Pneumatic-testbed ================= A testbed application to drive design decisions about the Pneumatic game library
Undo previous commit as example doesn't belong there
Undo previous commit as example doesn't belong there
Markdown
mit
burtonageo/Pneumatic-testbed
markdown
## Code Before: Pneumatic-testbed ================= A testbed application to drive design decisions about the Pneumatic game library Creating a window ================= ```c++ #include <string> #include <iostream> #include "pneu/graphics/Window.hpp" #include "pneu/core/MethodResult.hpp" auto main(int argc, const c...
40be948ae58449c7be11b243b9df4316e2e92c4a
recipes/libpgmath/build.sh
recipes/libpgmath/build.sh
cd runtime/libpgmath mkdir build cd build if [[ $target_platform == "osx-64" ]]; then export CC=$PREFIX/bin/clang export CXX=$PREFIX/bin/clang++ export LIBRARY_PREFIX=$PREFIX elif [[ $target_platform == "win-64" ]]; then export CC=clang-cl.exe export CXX=clang-cl.exe export LIBRARY_PREFIX=$PREFIX/Library ...
cd runtime/libpgmath mkdir build cd build if [[ $target_platform == "osx-64" ]]; then export CC=$PREFIX/bin/clang export CXX=$PREFIX/bin/clang++ export LIBRARY_PREFIX=$PREFIX elif [[ $target_platform == "win-64" ]]; then export CC=$BUILD_PREFIX/Library/bin/clang-cl.exe export CXX=$BUILD_PREFIX/Library/bin/c...
Revert "No full path to clang-cl"
Revert "No full path to clang-cl" This reverts commit 17174b032c7a76d8a51fdbd15101e1f6b5ea8082.
Shell
bsd-3-clause
isuruf/staged-recipes,mariusvniekerk/staged-recipes,kwilcox/staged-recipes,synapticarbors/staged-recipes,conda-forge/staged-recipes,scopatz/staged-recipes,ocefpaf/staged-recipes,chrisburr/staged-recipes,petrushy/staged-recipes,goanpeca/staged-recipes,igortg/staged-recipes,stuertz/staged-recipes,mcs07/staged-recipes,pat...
shell
## Code Before: cd runtime/libpgmath mkdir build cd build if [[ $target_platform == "osx-64" ]]; then export CC=$PREFIX/bin/clang export CXX=$PREFIX/bin/clang++ export LIBRARY_PREFIX=$PREFIX elif [[ $target_platform == "win-64" ]]; then export CC=clang-cl.exe export CXX=clang-cl.exe export LIBRARY_PREFIX=...
a6e1a602f182d388c7aa477361baa0117da8064e
spec/acceptance/nodesets/ubuntu-1204-64.yml
spec/acceptance/nodesets/ubuntu-1204-64.yml
HOSTS: ubuntu-1204-x64: roles: - master platform: ubuntu-1204-x86_64 hypervisor: docker image: ubuntu:12.04 docker_preserve_image: true # The default 'service ssh start' is not working on Ubuntu 12.04 because upstart has been disabled # see https://github.com/tianon/docker-brew-ubunt...
HOSTS: ubuntu-1204-x64: roles: - master platform: ubuntu-1204-x86_64 hypervisor: docker image: ubuntu:12.04 docker_preserve_image: true # The default 'service ssh start' is not working on Ubuntu 12.04 because upstart has been disabled # see https://github.com/tianon/docker-brew-ubunt...
Downgrade to PHP 5.4 to avoid pulling in Apache 2.4
Downgrade to PHP 5.4 to avoid pulling in Apache 2.4
YAML
apache-2.0
tohuwabohu/puppet-roundcube,tohuwabohu/puppet-roundcube
yaml
## Code Before: HOSTS: ubuntu-1204-x64: roles: - master platform: ubuntu-1204-x86_64 hypervisor: docker image: ubuntu:12.04 docker_preserve_image: true # The default 'service ssh start' is not working on Ubuntu 12.04 because upstart has been disabled # see https://github.com/tianon/d...
95a71b03b2b19b55bfb1cc281cfad0fbdee001f1
requirements.txt
requirements.txt
gunicorn==19.7.1 backports-abc==0.5 bkcharts==0.2 bokeh==0.12.10 certifi==2017.7.27.1 chardet==3.0.4 click==6.7 Flask==0.12.2 idna==2.6 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 numpy==1.13.3 python-dateutil==2.6.1 PyYAML==3.12 requests==2.18.4 singledispatch==3.4.0.3 six==1.11.0 tornado==4.5.2 urllib3==1.22 Wer...
gunicorn==19.7.1 backports-abc==0.5 bkcharts==0.2 bokeh==0.12.10 certifi==2017.7.27.1 chardet==3.0.4 click==6.7 Flask==0.12.2 idna==2.6 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 numpy==1.13.3 python-dateutil==2.6.1 PyYAML==3.12 requests==2.18.4 singledispatch==3.4.0.3 six==1.11.0 tornado==4.5.2 urllib3==1.22 Wer...
Add PyAstronomy which are used for updating exoEU DB
Add PyAstronomy which are used for updating exoEU DB
Text
mit
DanielAndreasen/SWEETer-Cat,DanielAndreasen/SWEETer-Cat
text
## Code Before: gunicorn==19.7.1 backports-abc==0.5 bkcharts==0.2 bokeh==0.12.10 certifi==2017.7.27.1 chardet==3.0.4 click==6.7 Flask==0.12.2 idna==2.6 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 numpy==1.13.3 python-dateutil==2.6.1 PyYAML==3.12 requests==2.18.4 singledispatch==3.4.0.3 six==1.11.0 tornado==4.5.2 u...
75a66a9bad87cf4c9b9dfea6be5ffbf1559a791d
src/main/webapp/scripts/index.js
src/main/webapp/scripts/index.js
//$("checkbox").click(setLocationCookie); $(document).ready(function() { $('#location-checkbox').change(function() { if(this.checked) { setLocationCookie(); } }); });
//$("checkbox").click(setLocationCookie); $(document).ready(function() { $('#location-checkbox').change(function() { if(this.checked) { setLocationCookie(); } }); $('#blob-input').change(function() { const filePath = $(this).val(); $('#file-path').text(filePath.split('\\').pop()); }); });...
Add js for fake upload button
Add js for fake upload button
JavaScript
apache-2.0
googleinterns/step36-2020,googleinterns/step36-2020,googleinterns/step36-2020
javascript
## Code Before: //$("checkbox").click(setLocationCookie); $(document).ready(function() { $('#location-checkbox').change(function() { if(this.checked) { setLocationCookie(); } }); }); ## Instruction: Add js for fake upload button ## Code After: //$("checkbox").click(setLocationCookie); $(document).rea...
07c3c7e00a4c2733a3233ff483797c798451a87f
apps/predict/mixins.py
apps/predict/mixins.py
from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from .models import PredictDataset class PredictMixin(object): """The baseline predict view""" slug_field = 'md5' @method_decorator(login_required) def dispatch(self, request, *args, **kwar...
from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from .models import PredictDataset class PredictMixin(object): """The baseline predict view""" slug_field = 'md5' @method_decorator(login_required) def dispatch(self, request, *args, **kwar...
Improve prefetch speed in predict listing pages
Improve prefetch speed in predict listing pages
Python
agpl-3.0
IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site,IQSS/gentb-site
python
## Code Before: from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from .models import PredictDataset class PredictMixin(object): """The baseline predict view""" slug_field = 'md5' @method_decorator(login_required) def dispatch(self, reques...
53593511d70e0e84ac01fa0daca2496566afc500
config/initializers/middleware.js
config/initializers/middleware.js
var express = require('express') var expressValidator = require('express-validator') var passport = require('./passport.js'); module.exports = (function(){ function configure(app) { app.use(express.static(__dirname + '/public')) app.use(passport.initialize()) app.use(express.static(__dirname + '/public')...
var express = require('express') var expressValidator = require('express-validator') var passport = require('./passport.js'); module.exports = (function(){ function configure(app) { app.use(function(req,res,next) { res.header("Access-Control-Allow-Origin", "*") res.header("Access-Control-Allow-Header...
Update relative path to static files.
[CHORE] Update relative path to static files.
JavaScript
isc
xdv/gatewayd,whotooktwarden/gatewayd,whotooktwarden/gatewayd,Parkjeahwan/awegeeks,crazyquark/gatewayd,Parkjeahwan/awegeeks,crazyquark/gatewayd,xdv/gatewayd,zealord/gatewayd,zealord/gatewayd
javascript
## Code Before: var express = require('express') var expressValidator = require('express-validator') var passport = require('./passport.js'); module.exports = (function(){ function configure(app) { app.use(express.static(__dirname + '/public')) app.use(passport.initialize()) app.use(express.static(__dirn...
76ac1d7a0769b17e898d4f0410fedd1e90e950de
app/views/favourites/index.html.erb
app/views/favourites/index.html.erb
<%= content_for :search_bar do %> <%= render 'shared/search_bar' %> <% end %> <%= content_for :filter_menu do %> <%= render 'shared/filter_menu' %> <% end %> <article id="monster-list" class="pt5 mt5"> <%= render 'monsters/empty', empty: false %> </article> <script type="text/javascript"> if (localStorage....
<%= content_for :search_bar do %> <%= render 'shared/search_bar' %> <% end %> <%= content_for :filter_menu do %> <%= render 'shared/filter_menu' %> <% end %> <article id="monster-list" class="pt5 mt5"> <%= render 'monsters/empty', empty: false %> </article> <script type="text/javascript"> if (localStorage....
Initialize filter on favourites index with crxp map.
Initialize filter on favourites index with crxp map.
HTML+ERB
mit
evangillespie/monsterCards,evangillespie/monsterCards,evangillespie/monsterCards
html+erb
## Code Before: <%= content_for :search_bar do %> <%= render 'shared/search_bar' %> <% end %> <%= content_for :filter_menu do %> <%= render 'shared/filter_menu' %> <% end %> <article id="monster-list" class="pt5 mt5"> <%= render 'monsters/empty', empty: false %> </article> <script type="text/javascript"> i...
a0b61fcf9bd6df2de1491162b514dba8afd9803d
tst/main.ts
tst/main.ts
/// <reference path="../src/amd.ts" /> declare const global: any, require: any; const assert = require('assert'); global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5));
/// <reference path="../src/amd.ts" /> declare const global: any, require: any; const assert = require('assert'); // Test variants of modules emitted by tsc global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5)); // Test mixed sequence of inter-dependent modules global.define('a'...
Add tests covering mixed sequence of define/require
Add tests covering mixed sequence of define/require
TypeScript
mit
federico-lox/AMD.ts,federico-lox/AMD.ts
typescript
## Code Before: /// <reference path="../src/amd.ts" /> declare const global: any, require: any; const assert = require('assert'); global.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5)); ## Instruction: Add tests covering mixed sequence of define/require ## Code After: /// <refere...
4c0e83405b43c3da72e2a48bfc84c29f4d3b78ad
server/dbconnection.ts
server/dbconnection.ts
import mongo = require("mongodb"); const client = mongo.MongoClient; interface Db extends mongo.Db { users: mongo.Collection; } export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); return; } client.connect(process...
import mongo = require("mongodb"); const client = mongo.MongoClient; export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); return; } client.connect(process.env.DB_CONNECTION_STRING, function (err, db: Db) { if (err)...
Correct mongodb api collection access
Correct mongodb api collection access
TypeScript
mit
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
typescript
## Code Before: import mongo = require("mongodb"); const client = mongo.MongoClient; interface Db extends mongo.Db { users: mongo.Collection; } export const initialize = () => { if (!process.env.DB_CONNECTION_STRING) { console.error("No connection string found."); return; } client...
dca539c770ed3655de37180ffde7c5db4424aa99
lib/less/rails/railtie.rb
lib/less/rails/railtie.rb
require 'sprockets/railtie' module Less module Rails class Railtie < ::Rails::Railtie config.less = ActiveSupport::OrderedOptions.new config.less.paths = [] config.less.compress = false config.app_generators.stylesheet_engine :less config.before_initialize do |app| requir...
require 'sprockets/railtie' module Less module Rails class Railtie < ::Rails::Railtie config.less = ActiveSupport::OrderedOptions.new config.less.paths = [] config.less.compress = false config.app_generators.stylesheet_engine :less config.before_initialize do |app| requir...
Fix Undefined MethodError at app.assets.register_preprocessor for sprockets3.X
Fix Undefined MethodError at app.assets.register_preprocessor for sprockets3.X
Ruby
mit
Genkilabs/less-rails,metaskills/less-rails
ruby
## Code Before: require 'sprockets/railtie' module Less module Rails class Railtie < ::Rails::Railtie config.less = ActiveSupport::OrderedOptions.new config.less.paths = [] config.less.compress = false config.app_generators.stylesheet_engine :less config.before_initialize do |app...
8d8bfecab60a4104d0e7871d51216e2524da8dea
src/Reflow/Parser.hs
src/Reflow/Parser.hs
module Reflow.Parser where import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as T import Text.ParserCombinators.Parsec import Reflow.Types parseFile :: Text -> [Content] parseFile t = either (const []) id $ parse parseContent "content" (T.unpack t) parseContent :: Parser [Content] parseCo...
module Reflow.Parser where import Data.Monoid ((<>)) import Data.Text (Text, pack) import Text.Parsec import Text.Parsec.Text (Parser) import Reflow.Types parseFile :: Text -> [Content] parseFile t = either (const []) id $ parse parseContent "content" t parseContent :: Parser [Content] parseContent = many (quoted <...
Make parsing Data.Text.Text slightly nicer
Make parsing Data.Text.Text slightly nicer Parsec has had support for parsing Text Since version 3.1.2, so we don't need `T.unpack text` as long as we also import `Text.Parsec.Text`. This also means that the code only requires `(Text, pack)` from `Data.Text`, so import only those (unqualified).
Haskell
mit
gfontenot/reflow
haskell
## Code Before: module Reflow.Parser where import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as T import Text.ParserCombinators.Parsec import Reflow.Types parseFile :: Text -> [Content] parseFile t = either (const []) id $ parse parseContent "content" (T.unpack t) parseContent :: Parser [...
043e663309597048e2983f46cff558ddefc5efb9
requirements.txt
requirements.txt
open-repo # Script to open current repo in default browser Pygments # Syntax highlighting, used by 'ccat' alias pygments-style-solarized # Solarized for Pygments yamllint # For syntastic linting sqlparse # SQL parser used by prettysql vim plugin I wrote
open-repo # Script to open current repo in default browser Pygments # Syntax highlighting, used by 'ccat' alias pygments-style-solarized # Solarized for Pygments yamllint # For syntastic linting sqlparse # SQL parser used by prettysql vim plugin I wrote how...
Add howdoi which queries StackOverflow for me
Pip: Add howdoi which queries StackOverflow for me
Text
mit
tscheffe/dotfiles,tscheffe/dotfiles,tscheffe/dotfiles
text
## Code Before: open-repo # Script to open current repo in default browser Pygments # Syntax highlighting, used by 'ccat' alias pygments-style-solarized # Solarized for Pygments yamllint # For syntastic linting sqlparse # SQL parser used by prettysql vim pl...
24e087572acc46e0691b1cd30d979e439fdbfa93
app/controllers/public_pages_controller.rb
app/controllers/public_pages_controller.rb
class PublicPagesController < ApplicationController def home end def search end def profile profile_username = params[:username] @profile_user = User.find_by(username: profile_username) not_found if @profile_user.nil? @profile = @profile_user.profile not_found if @profile.nil? render...
class PublicPagesController < ApplicationController def home end def search end def profile profile_username = params[:username] @profile_user = User.find_by(username: profile_username) not_found if @profile_user.nil? @profile = @profile_user.profile not_found if @profile.nil? @conv...
Create @conversation if the user is signed in
Create @conversation if the user is signed in
Ruby
agpl-3.0
payloadtech/mailpenny,payloadtech/mailpenny,payloadtech/mailpenny
ruby
## Code Before: class PublicPagesController < ApplicationController def home end def search end def profile profile_username = params[:username] @profile_user = User.find_by(username: profile_username) not_found if @profile_user.nil? @profile = @profile_user.profile not_found if @profile...
78415f5e919736d281b386522c2af9a771cde2f3
src/main.js
src/main.js
enyo.kind({ /* * name: * name of this "kind" (optionally namespaced with a .) */ name: 'Slides.Main', /* * components: * Array of "kind" objects that compose the layout of your app */ components: [ {name: 'mainLayout', kind: 'FittableRows', classes: 'enyo-fit', components: [ { ...
enyo.kind({ /* * name: * name of this "kind" (optionally namespaced with a .) */ name: 'Slides.Main', /* * components: * Array of "kind" objects that compose the layout of your app */ components: [ {name: 'mainLayout', kind: 'FittableRows', classes: 'enyo-fit', components: [ { ...
Test pane animation with custom component pushing
Test pane animation with custom component pushing
JavaScript
apache-2.0
MeatballIndustries/EnyoSlides_GDG_10-17-12,MeatballIndustries/enyo-slides,MeatballIndustries/EnyoSlides_GDG_10-17-12,MeatballIndustries/EnyoSlides_GDG_10-17-12
javascript
## Code Before: enyo.kind({ /* * name: * name of this "kind" (optionally namespaced with a .) */ name: 'Slides.Main', /* * components: * Array of "kind" objects that compose the layout of your app */ components: [ {name: 'mainLayout', kind: 'FittableRows', classes: 'enyo-fit', componen...
64a6a94709061b073812b0cd1ef59c3d8afe050b
.ci/Dockerfile
.ci/Dockerfile
FROM hseeberger/scala-sbt COPY . /app/spark-nlp ENV JAVA_OPTS="-Xmx2012m -XX:+UseG1GC" WORKDIR /app/spark-nlp/ RUN sbt compile
FROM hseeberger/scala-sbt:8u212_1.2.8_2.13.0 COPY . /app/spark-nlp ENV JAVA_OPTS="-Xmx2012m -XX:+UseG1GC" WORKDIR /app/spark-nlp/ RUN sbt compile
Add tag to scala-sbt image for travis
Add tag to scala-sbt image for travis
unknown
apache-2.0
JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp
unknown
## Code Before: FROM hseeberger/scala-sbt COPY . /app/spark-nlp ENV JAVA_OPTS="-Xmx2012m -XX:+UseG1GC" WORKDIR /app/spark-nlp/ RUN sbt compile ## Instruction: Add tag to scala-sbt image for travis ## Code After: FROM hseeberger/scala-sbt:8u212_1.2.8_2.13.0 COPY . /app/spark-nlp ENV JAVA_OPTS="-Xmx2012m -XX:+Use...
e8369e1fe63e15c446bed6c1c7fbcdf8a4949bdd
building-block-sample.yml
building-block-sample.yml
name: "Name of Component" tags: - quote - testimonial - content - flexbox category: containers description: A testimonial block to tell your site visitors how awesome you are. versions: - 6.3.0 - 6.3.1 author: github: rafibomb name: Rafi twitter: thefakerafi containerClass: row medium-6 columns align-...
name: "Name of Component" tags: - quote - testimonial - content - flexbox category: containers description: A testimonial block to tell your site visitors how awesome you are. versions: - 6.3.0 - 6.3.1 author: github: rafibomb name: Rafi twitter: thefakerafi containerClass: row medium-6 columns align-...
Add requirements to bb sample .yml
Add requirements to bb sample .yml
YAML
mit
zurb/building-blocks,zurb/building-blocks
yaml
## Code Before: name: "Name of Component" tags: - quote - testimonial - content - flexbox category: containers description: A testimonial block to tell your site visitors how awesome you are. versions: - 6.3.0 - 6.3.1 author: github: rafibomb name: Rafi twitter: thefakerafi containerClass: row medium-...
522fce43947016f17669a8e1ccde47fc1c451930
about.md
about.md
--- layout: page title: About --- Hi. My name is Sepehr and I'm a software engineer. I learned Ruby on Rails back-end development at the Iron Yard Academy where I built a few small apps along with [the API for abstract](https://github.com/sepehrvakili/abstract-be). Previously, I helped build an online academy as a pr...
--- layout: page title: About --- Hi. My name is Sepehr and I'm a software engineer. I learned Ruby on Rails back-end development at the Iron Yard Academy where I built a few small apps along with [the API for abstract](https://github.com/sepehrvakili/abstract-be). Previously, I helped build an online academy as a pr...
Update bio with more detail
Update bio with more detail
Markdown
mit
sepehrvakili/sepehrvakili.github.io
markdown
## Code Before: --- layout: page title: About --- Hi. My name is Sepehr and I'm a software engineer. I learned Ruby on Rails back-end development at the Iron Yard Academy where I built a few small apps along with [the API for abstract](https://github.com/sepehrvakili/abstract-be). Previously, I helped build an online...
0eefed1e133759afc1f06986bccf2792a9fcefa1
app/assets/javascripts/events.coffee
app/assets/javascripts/events.coffee
$ -> $('#starts-at-datetime-picker').datetimepicker locale: 'de' $('#ends-at-datetime-picker').datetimepicker locale: 'de'
$ -> $('#starts-at-datetime-picker').datetimepicker locale: 'de' $('#ends-at-datetime-picker').datetimepicker locale: 'de' $(document).on "fields_added.nested_form_fields", (event, param) -> $(dateField).datetimepicker( locale: 'de' ) for dateField in $(event.target).find('.date')
Fix added shifts' datetimepickers not working
Fix added shifts' datetimepickers not working
CoffeeScript
agpl-3.0
where2help/where2help,where2help/where2help,where2help/where2help
coffeescript
## Code Before: $ -> $('#starts-at-datetime-picker').datetimepicker locale: 'de' $('#ends-at-datetime-picker').datetimepicker locale: 'de' ## Instruction: Fix added shifts' datetimepickers not working ## Code After: $ -> $('#starts-at-datetime-picker').datetimepicker locale: 'de' $('#ends-at-datet...
82fb1b1486e2cd391bdd3e505cbb397eee73341e
src/main/java/com/speedledger/measure/jenkins/ElasticsearchPlugin.java
src/main/java/com/speedledger/measure/jenkins/ElasticsearchPlugin.java
package com.speedledger.measure.jenkins; import hudson.Plugin; import hudson.model.Descriptor; import hudson.model.Items; import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest; import javax.servlet.ServletException; import java.io.IOException; /** * Elasticsearch plugin to Jenkins. * Reports bui...
package com.speedledger.measure.jenkins; import hudson.Plugin; import hudson.model.Descriptor; import hudson.model.Items; import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest; import javax.servlet.ServletException; import java.io.IOException; /** * Elasticsearch plugin to Jenkins. * Reports bui...
Fix reading wrong keys from config form response
Fix reading wrong keys from config form response
Java
mit
speedledger/elasticsearch-jenkins
java
## Code Before: package com.speedledger.measure.jenkins; import hudson.Plugin; import hudson.model.Descriptor; import hudson.model.Items; import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest; import javax.servlet.ServletException; import java.io.IOException; /** * Elasticsearch plugin to Jenkins...
cab149fe1f7cd523bb7064d6d374a8aaf377710b
app/views/admin/visualizations/track.html.erb
app/views/admin/visualizations/track.html.erb
<!DOCTYPE html> <html lang="en"> <body> <%= render 'shared/analytics', ua: Cartodb.config[:google_analytics]["embeds"] %> </body> </html>
<!DOCTYPE html> <html lang="en"> <body> <%= render partial: 'shared/analytics', locals: { ua: Cartodb.config[:google_analytics]['embeds'], domain: Cartodb.config[:google_analytics]['domain'] } %> </html>
Fix google analytics in visualization track_embed
Fix google analytics in visualization track_embed
HTML+ERB
bsd-3-clause
raquel-ucl/cartodb,splashblot/dronedb,raquel-ucl/cartodb,UCL-ShippingGroup/cartodb-1,raquel-ucl/cartodb,splashblot/dronedb,thorncp/cartodb,nuxcode/cartodb,DigitalCoder/cartodb,codeandtheory/cartodb,nuxcode/cartodb,UCL-ShippingGroup/cartodb-1,dbirchak/cartodb,bloomberg/cartodb,nuxcode/cartodb,thorncp/cartodb,splashblot/...
html+erb
## Code Before: <!DOCTYPE html> <html lang="en"> <body> <%= render 'shared/analytics', ua: Cartodb.config[:google_analytics]["embeds"] %> </body> </html> ## Instruction: Fix google analytics in visualization track_embed ## Code After: <!DOCTYPE html> <html lang="en"> <body> <%= render partial: 'shared/a...
e6206c2bdacfbd2632beb6ed56ccb6856d299e08
tests/test_suggestion_fetcher.py
tests/test_suggestion_fetcher.py
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestSuggestionFetcher(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
Fix class name of test.
Fix class name of test.
Python
mit
phil-lopreiato/the-blue-alliance,jaredhasenklein/the-blue-alliance,fangeugene/the-blue-alliance,tsteward/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,synth3tk/the-blue-alliance,synth3tk/the-blue-alliance,nwalters512/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeuge...
python
## Code Before: import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = tes...
eb430929e4772e1fb1cde83ddfbc03a705b34af1
apps/vscode/vscode.settings.json
apps/vscode/vscode.settings.json
// Place your settings in this file to overwrite the default settings { "editor.fontFamily": "Menlo, 'DejaVu Sans Mono', Consolas, Monaco, 'Courier New', monospace, 'Droid Sans Fallback'", "editor.fontSize": 11, "editor.minimap.enabled": false, "editor.renderWhitespace": "all", "editor.renderIndentG...
// Place your settings in this file to overwrite the default settings { "editor.fontFamily": "Menlo, 'DejaVu Sans Mono', Consolas, Monaco, 'Courier New', monospace, 'Droid Sans Fallback'", "editor.fontSize": 11, "editor.minimap.enabled": false, "editor.renderWhitespace": "all", "editor.renderIndentG...
Add support for signing Git commits in VS Code
Add support for signing Git commits in VS Code
JSON
mit
jammycakes/dotfiles,jammycakes/dotfiles
json
## Code Before: // Place your settings in this file to overwrite the default settings { "editor.fontFamily": "Menlo, 'DejaVu Sans Mono', Consolas, Monaco, 'Courier New', monospace, 'Droid Sans Fallback'", "editor.fontSize": 11, "editor.minimap.enabled": false, "editor.renderWhitespace": "all", "edit...
09f6dce93fc00c9e67a066f7dfbeb18d098ec668
.jscs.json
.jscs.json
{ "preset": "node-style-guide", "requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ], "validateIndentation": 4, "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", "requireCapitalizedComments": null, "maximumLineLength": 100, "validateQuoteMa...
{ "preset": "node-style-guide", "requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ], "validateIndentation": 4, "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", "requireCapitalizedComments": null, "maximumLineLength": 100, "validateQuoteMa...
Fix JSCS issue with require early return
Fix JSCS issue with require early return
JSON
apache-2.0
d00rman/service-runner,wikimedia/service-runner,gwicke/service-runner,nyurik/service-runner,Pchelolo/service-runner
json
## Code Before: { "preset": "node-style-guide", "requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ], "validateIndentation": 4, "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", "requireCapitalizedComments": null, "maximumLineLength": 100, ...
6109a57c6712038e801292244dbaa977d05d24fd
app/controllers/users_controller.rb
app/controllers/users_controller.rb
class UsersController < ApplicationController before_action :authenticate_user! def show if current_user.id == params[:id].to_i @user = current_user else redirect_to root_path, alert: "ACCESS DENIED." end end end
class UsersController < ApplicationController before_action :authenticate_user! def show if current_user.id == params[:id].to_i @user = current_user respond_to do |format| format.html { render :show } format.json { render json: @user } end else redirect_to root_path,...
Update user show page to render json data
Update user show page to render json data
Ruby
mit
evanscloud/monocle,evanscloud/monocle,evanscloud/monocle
ruby
## Code Before: class UsersController < ApplicationController before_action :authenticate_user! def show if current_user.id == params[:id].to_i @user = current_user else redirect_to root_path, alert: "ACCESS DENIED." end end end ## Instruction: Update user show page to render json data ...
0fa3cbdf796c72800761006d4aaee68116162318
.travis.yml
.travis.yml
language: ruby bundler_args: --without development before_install: - sudo apt-get update -qq - sudo apt-get install -qq wbritish script: - RAILS_ENV=test bundle exec rake spec rvm: - 2.0.0 - 1.9.3 - 1.9.2 matrix: allow_failures: - rvm: 2.0.0 branches: only: - master
language: ruby bundler_args: --without development before_install: - sudo apt-get update -qq - sudo apt-get install -qq wbritish script: - RAILS_ENV=test GOVUK_APP_DOMAIN=test.example.com bundle exec rake spec rvm: - 2.0.0 - 1.9.3 - 1.9.2 matrix: allow_failures: - rvm: 2.0.0 branches: only: - mas...
Add env variable to make build work
Add env variable to make build work
YAML
mit
bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend,alphagov/trade-tariff-frontend,bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend,bitzesty/trade-tariff-frontend,bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend
yaml
## Code Before: language: ruby bundler_args: --without development before_install: - sudo apt-get update -qq - sudo apt-get install -qq wbritish script: - RAILS_ENV=test bundle exec rake spec rvm: - 2.0.0 - 1.9.3 - 1.9.2 matrix: allow_failures: - rvm: 2.0.0 branches: only: - master ## Instructio...
176f9afac80d39fba1639f9733ecde5ccd90b87f
.travis.yml
.travis.yml
language: java sudo: false install: true matrix: include: - os: linux dist: trusty jdk: oraclejdk8 env: _JAVA_OPTIONS="-Xmx2048m -Xms512m -Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500" addons: apt: packages: -...
language: java sudo: false install: true matrix: include: - os: linux dist: trusty jdk: oraclejdk8 env: _JAVA_OPTIONS="-Xmx2048m -Xms512m -Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500" addons: apt: packages: -...
Add CNAME file in deployed gh-pages
Add CNAME file in deployed gh-pages
YAML
mit
ben12/infxnity
yaml
## Code Before: language: java sudo: false install: true matrix: include: - os: linux dist: trusty jdk: oraclejdk8 env: _JAVA_OPTIONS="-Xmx2048m -Xms512m -Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500" addons: apt: ...
2982b003a00bf5494f34abd5edf78604c7f4e609
helpers/set-npm-userconfig/test-user.ini
helpers/set-npm-userconfig/test-user.ini
init-author-name=Tester McPerson init-author-email=test@example.com init-author-url=http://example.com registry = https://registry.npmjs.org/ //registry.npmjs.org/:_authToken=5f871bad-a35b-44da-aa77-f29b87a7d846
init-author-name=Tester McPerson init-author-email=test@example.com init-author-url=http://example.com registry = https://registry.npmjs.org/ //registry.npmjs.org/:_authToken=bf7b95c5-6661-411b-8362-a40e3ae9d5f4
Reset test npm token so CI passes again
build: Reset test npm token so CI passes again
INI
mit
evocateur/lerna,sebmck/lerna,lerna/lerna,lerna/lerna,kittens/lerna,lerna/lerna,evocateur/lerna
ini
## Code Before: init-author-name=Tester McPerson init-author-email=test@example.com init-author-url=http://example.com registry = https://registry.npmjs.org/ //registry.npmjs.org/:_authToken=5f871bad-a35b-44da-aa77-f29b87a7d846 ## Instruction: build: Reset test npm token so CI passes again ## Code After: init-author-...
5b4591581e2dc8cb6c4ff366cb10eed0486771c5
README.md
README.md
Roger plugin to transpile ES6 code with BabelJS ``` gem 'roger_babeljs' ``` ## Changes and versions Have a look at the [CHANGELOG](CHANGELOG.md) to see what's new. ## Contributors [View contributors](https://github.com/digitpaint/roger_babeljs/graphs/contributors) ## License MIT License, see [LICENSE](LICENSE)...
Roger plugin to transpile ES6 code with BabelJS ``` gem 'roger_babeljs' ## Use it in the server ``` mockup.serve do |server| server.use RogerBabeljs::Middleware, { match: [%r{/url/you/want/to/match/*\.js}], babel_options: { # ... Options to pass to Babel } } end ``` ## Changes...
Add short intro on how to use it in the server
Add short intro on how to use it in the server
Markdown
mit
DigitPaint/roger_babeljs
markdown
## Code Before: Roger plugin to transpile ES6 code with BabelJS ``` gem 'roger_babeljs' ``` ## Changes and versions Have a look at the [CHANGELOG](CHANGELOG.md) to see what's new. ## Contributors [View contributors](https://github.com/digitpaint/roger_babeljs/graphs/contributors) ## License MIT License, see [L...
3ecd4b54e17b91e66441ecd416cc12cc2315a035
rundeckapp/grails-app/views/framework/_projectSelect.gsp
rundeckapp/grails-app/views/framework/_projectSelect.gsp
<g:set var="projectSet" value="${[]}"/> <g:each in="${projects*.name.sort()}" var="proj"> %{ projectSet << ['key': proj, 'value': proj] }% </g:each> <auth:resourceAllowed action="create" kind="project" context="application"> <g:if test="${!params.nocreate}"> %{ projectSet << [val...
<g:set var="projectSet" value="${[]}"/> <g:each in="${projects*.name.sort()}" var="proj"> %{ projectSet << ['key': proj, 'value': proj] }% </g:each> <auth:resourceAllowed action="create" kind="project" context="application"> <g:if test="${!params.nocreate}"> %{ projectSet << [val...
Remove error message in project select area
Remove error message in project select area
Groovy Server Pages
apache-2.0
paul-krohn/rundeck,jgpacker/rundeck,variacode/rundeck,patcadelina/rundeck,paul-krohn/rundeck,variacode95/rundeck,paul-krohn/rundeck,jamieps/rundeck,jgpacker/rundeck,variacode/rundeck,tjordanchat/rundeck,rophy/rundeck,patcadelina/rundeck,jamieps/rundeck,rundeck/rundeck,variacode95/rundeck,damageboy/rundeck,variacode95/r...
groovy-server-pages
## Code Before: <g:set var="projectSet" value="${[]}"/> <g:each in="${projects*.name.sort()}" var="proj"> %{ projectSet << ['key': proj, 'value': proj] }% </g:each> <auth:resourceAllowed action="create" kind="project" context="application"> <g:if test="${!params.nocreate}"> %{ pr...
3b3d8b40a5b4dda16440a0262246aa6ff8da4332
gulp/watch.js
gulp/watch.js
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; const grammarGlob ...
Test again when TestudocParser is recreated
Test again when TestudocParser is recreated
JavaScript
mit
jlenoble/ecmascript-parser
javascript
## Code Before: import gulp from 'gulp'; import {build} from './build'; import {test} from './test'; import {makeParser, fixParser} from './parse'; const allSrcGlob = [ 'src/**/*.js', '!src/static/antlr4/parsers/**/*.js', 'test/**/*.js', ]; const allBuildGlob = [ 'build/src/*.js', 'build/test/**/*.js', ]; co...
96bb30afd35bd93339bbd777e01a2e01d7ee7a62
kubernetes/prod/deployment.yaml
kubernetes/prod/deployment.yaml
--- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web ...
--- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web ...
Upgrade to latest version for testing that Flux does its job
Upgrade to latest version for testing that Flux does its job
YAML
agpl-3.0
mozilla/mozmoderator,akatsoulas/mozmoderator,mozilla/mozmoderator,akatsoulas/mozmoderator,mozilla/mozmoderator,akatsoulas/mozmoderator
yaml
## Code Before: --- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: m...
b3c2c211cc4738a76d43c1a3af8dbc40382636bf
user-lisp/rust-customisations.el
user-lisp/rust-customisations.el
(require 'flycheck) (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) (provide 'rust-customisations)
(require 'flycheck) (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) (add-hook 'rust-mode-hook #'flycheck-mode) (provide 'rust-customisations)
Use flycheck for all rust buffers.
Use flycheck for all rust buffers.
Emacs Lisp
mit
Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d
emacs-lisp
## Code Before: (require 'flycheck) (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) (provide 'rust-customisations) ## Instruction: Use flycheck for all rust buffers. ## Code After: (require 'flycheck) (add-hook 'flycheck-mode-hook #'flycheck-rust-setup) (add-hook 'rust-mode-hook #'flycheck-mode) (provide 'rus...
c6259c5b9c0fd3bf18212359c7b29ab328a2ce05
README.md
README.md
Page Object Extension ===================== Behat extension providing tools to implement page object pattern. [![Build Status](https://secure.travis-ci.org/sensiolabs/BehatPageObjectExtension.png?branch=master)](http://travis-ci.org/sensiolabs/BehatPageObjectExtension) ## Documentation [Official documentation](http...
Page Object Extension ===================== Behat extension providing tools to implement page object pattern. [![Build Status](https://secure.travis-ci.org/sensiolabs/BehatPageObjectExtension.png?branch=master)](http://travis-ci.org/sensiolabs/BehatPageObjectExtension) [![SensioLabsInsight](https://insight.sensiolabs...
Add the SensioLabs Insight widget
Add the SensioLabs Insight widget
Markdown
mit
jakzal/BehatPageObjectExtension,sensiolabs/BehatPageObjectExtension
markdown
## Code Before: Page Object Extension ===================== Behat extension providing tools to implement page object pattern. [![Build Status](https://secure.travis-ci.org/sensiolabs/BehatPageObjectExtension.png?branch=master)](http://travis-ci.org/sensiolabs/BehatPageObjectExtension) ## Documentation [Official doc...
4d0637d2deb9bc20fa39ed28b499497be35aaef3
test/fixtures/ShortUrl.json
test/fixtures/ShortUrl.json
[ { "key": "127.0.0.1:-fDnkY", "targetUrl": "https://www.google.com/", "createdAt": "2017-01-08 22:37:31+0200" } ]
[ { "key": "127.0.0.1:-fDnkY", "targetUrl": "https://www.google.com/", "createdAt": "2017-01-08T20:37:31.584Z" }, { "key": "127.0.0.1:customSlashdot", "targetUrl": "http://slashdot.org/" } ]
Add a short URL with default createdAt to fixtures
test: Add a short URL with default createdAt to fixtures
JSON
mit
crocodele/urlie-redirector,crocodele/urlie-redirector
json
## Code Before: [ { "key": "127.0.0.1:-fDnkY", "targetUrl": "https://www.google.com/", "createdAt": "2017-01-08 22:37:31+0200" } ] ## Instruction: test: Add a short URL with default createdAt to fixtures ## Code After: [ { "key": "127.0.0.1:-fDnkY", "targetUrl": "https://www.google.com/", ...
06f29814ef53d8fd60f1bd99f981801c9130fdaa
config/view.php
config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that...
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that...
Change dir to serve resources from public dir
:key: Change dir to serve resources from public dir
PHP
mit
TRomesh/Coupley,rajikaimal/Coupley,MadushikaPerera/Coupley,MadushikaPerera/Coupley,TRomesh/Coupley,MadushikaPerera/Coupley,IsuruDilhan/Coupley,rajikaimal/Coupley,IsuruDilhan/Coupley,rajikaimal/Coupley,TRomesh/Coupley,IsuruDilhan/Coupley
php
## Code Before: <?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an arr...
ca5c78d00120fd99a75a106375ea01d1053a919e
test/dummy/spec/models/user_enum_scope_spec.rb
test/dummy/spec/models/user_enum_scope_spec.rb
require 'spec_helper' describe User do before :all do # Create test users create(:user, :role_admin) 2.times { create(:user, :role_editor) } 5.times { create(:user, :role_author) } 20.times { create(:user, :role_user) } end before { default_user_roles } it 'adds the scope methods for each...
require 'spec_helper' describe 'Role enum for User' do before :each do # Ensure default enum set up default_user_roles # Create test users # Having issues with FactoryGirl and changing the role enum values # between tests # create(:user, :role_admin) # 2.times { create(:user, :role_edito...
Change description and temporarily stop using FG
Change description and temporarily stop using FG - Updated the top description string for `describe` - Temporarily changed test user creation to default Rails API because I'm having issues with other tests and FactoryGirl
Ruby
mit
jfairbank/rails_attr_enum,jfairbank/rails_attr_enum
ruby
## Code Before: require 'spec_helper' describe User do before :all do # Create test users create(:user, :role_admin) 2.times { create(:user, :role_editor) } 5.times { create(:user, :role_author) } 20.times { create(:user, :role_user) } end before { default_user_roles } it 'adds the scope ...