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
064cff13fd7d02672695b4ac1722bbd6df35f1d4
lib/banzai/filter/external_link_filter.rb
lib/banzai/filter/external_link_filter.rb
module Banzai module Filter # HTML Filter to modify the attributes of external links class ExternalLinkFilter < HTML::Pipeline::Filter def call doc.search('a').each do |node| link = node.attr('href') next unless link # Skip non-HTTP(S) links next unless ...
module Banzai module Filter # HTML Filter to modify the attributes of external links class ExternalLinkFilter < HTML::Pipeline::Filter def call doc.search('a').each do |node| link = node.attr('href') next unless link # Skip non-HTTP(S) links next unless ...
Remove obvious comment and extra line
Remove obvious comment and extra line
Ruby
mit
jirutka/gitlabhq,mmkassem/gitlabhq,shinexiao/gitlabhq,dplarson/gitlabhq,allysonbarros/gitlabhq,martijnvermaat/gitlabhq,LUMC/gitlabhq,openwide-java/gitlabhq,daiyu/gitlab-zh,iiet/iiet-git,openwide-java/gitlabhq,icedwater/gitlabhq,mmkassem/gitlabhq,icedwater/gitlabhq,martijnvermaat/gitlabhq,htve/GitlabForChinese,axilleas/...
ruby
## Code Before: module Banzai module Filter # HTML Filter to modify the attributes of external links class ExternalLinkFilter < HTML::Pipeline::Filter def call doc.search('a').each do |node| link = node.attr('href') next unless link # Skip non-HTTP(S) links ...
6cfeabf8b0cce51c8f5a88a231f9f42cbce8e854
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.10 virtualenv: system_site_packages: true install: - pip install -q coveralls Django==$DJANGO --use-mirrors - pip install -r requirements.txt - "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors cython && pip i...
language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.10 - DJANGO=1.5.5 virtualenv: system_site_packages: true install: - pip install -q coveralls Django==$DJANGO --use-mirrors - pip install -r requirements.txt - "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirr...
Add Django 1.5.5 to Travis config
Add Django 1.5.5 to Travis config
YAML
bsd-2-clause
chop-dbhi/varify,chop-dbhi/varify,chop-dbhi/varify,chop-dbhi/varify
yaml
## Code Before: language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.10 virtualenv: system_site_packages: true install: - pip install -q coveralls Django==$DJANGO --use-mirrors - pip install -r requirements.txt - "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors...
466f0460774cad86e7e828ffb50c7d1332b64e7b
CONTRIBUTING.rst
CONTRIBUTING.rst
Contributing ------------ If you want to contribute that is awesome. Remember to be nice to others in issues and reviews. **It is nice if you follow this list:** * Follow pep8 (run flake8). * Follow the import sorting guidelines (run isort). * Write tests for the cool things you create or fix. Unsure about somethin...
Contributing ------------ If you want to contribute that is awesome. Remember to be nice to others in issues and reviews. **It is nice if you follow this list:** * Follow pep8 (run flake8). * Follow the import sorting guidelines (run isort). * Write tests for the cool things you create or fix. Unsure about somethin...
Update info about releases in contributing.md
docs: Update info about releases in contributing.md
reStructuredText
mit
relekang/python-semantic-release,relekang/python-semantic-release,riddlesio/python-semantic-release,wlonk/python-semantic-release
restructuredtext
## Code Before: Contributing ------------ If you want to contribute that is awesome. Remember to be nice to others in issues and reviews. **It is nice if you follow this list:** * Follow pep8 (run flake8). * Follow the import sorting guidelines (run isort). * Write tests for the cool things you create or fix. Unsur...
1d9066bb7054cfe7deeac57e21489062230fcc58
lib/selection-handle-component.coffee
lib/selection-handle-component.coffee
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass render: -> {parentView} = @props {top, left, width, height} = parentView.selectionScrollRect() div className: 'selection-box-handle', style: { top: (top + height) + 'px' left: (left ...
React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass render: -> {parentView} = @props {top, left, width, height} = parentView.selectionScrollRect() div className: 'selection-box-handle', style: { top: (top + height) + 'px' left: width ...
Fix selection handle position when start column is not 0
:bug: Fix selection handle position when start column is not 0
CoffeeScript
mit
abe33/atom-tablr
coffeescript
## Code Before: React = require 'react-atom-fork' {div} = require 'reactionary-atom-fork' module.exports = React.createClass render: -> {parentView} = @props {top, left, width, height} = parentView.selectionScrollRect() div className: 'selection-box-handle', style: { top: (top + height) + 'px' ...
f4c25e65193b7490ccfe3a9bd2499a366e6007fa
roles/haproxy/tasks/main.yml
roles/haproxy/tasks/main.yml
--- - name: Install haproxy 1.8 yum repo copy: src: haproxy18.repo dest: /etc/yum.repos.d/ owner: root mode: 0644 when: - haproxy_18 - name: Include multiple-instances.yml include: multiple-instances.yml when: - haproxy_multi_instance is defined - name: Include single-instance.yml in...
--- - name: Install haproxy 1.8 yum repo copy: src: haproxy18.repo dest: /etc/yum.repos.d/ owner: root mode: 0644 - name: Include multiple-instances.yml include: multiple-instances.yml when: - haproxy_multi_instance is defined - name: Include single-instance.yml include: single-instance.ym...
Enable new haproxy > 1.7
Haproxy: Enable new haproxy > 1.7
YAML
apache-2.0
OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy
yaml
## Code Before: --- - name: Install haproxy 1.8 yum repo copy: src: haproxy18.repo dest: /etc/yum.repos.d/ owner: root mode: 0644 when: - haproxy_18 - name: Include multiple-instances.yml include: multiple-instances.yml when: - haproxy_multi_instance is defined - name: Include single-i...
1bae1bc94fea8fd9b8fe25d832ebfce07ad08a1c
utilities/build/update_xform_translate_path.py
utilities/build/update_xform_translate_path.py
jar_path_placeholder = 'DYNAMIC_PATH_TO_XFORM_TRANSLATE_JAR' import sys, os if 'RAPIDSMS_INI' not in os.environ: print "RAPIDSMS_INI NOT FOUND" sys.exit() local_ini = os.environ['RAPIDSMS_INI'] fin = open(local_ini,"r") ini = fin.read() fin.close() if jar_path_placeholder in ini: filedir = os.path.dirname...
JAR_PATH_SETTING = 'xform_translate_path' import sys, os if 'RAPIDSMS_INI' not in os.environ: print "RAPIDSMS_INI NOT FOUND" sys.exit() local_ini = os.environ['RAPIDSMS_INI'] filedir = os.path.dirname(__file__) xform_jar_path = os.path.abspath(os.path.join(filedir,'..','..','lib')) ini = "" should_update = Fa...
Fix up local.ini updater code to look specifically for 'xform_translate_path'
Fix up local.ini updater code to look specifically for 'xform_translate_path'
Python
bsd-3-clause
puttarajubr/commcare-hq,dimagi/commcare-hq,SEL-Columbia/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,gmimano/commcaretest,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,gmimano/commcaretest,dimagi/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,puttaraju...
python
## Code Before: jar_path_placeholder = 'DYNAMIC_PATH_TO_XFORM_TRANSLATE_JAR' import sys, os if 'RAPIDSMS_INI' not in os.environ: print "RAPIDSMS_INI NOT FOUND" sys.exit() local_ini = os.environ['RAPIDSMS_INI'] fin = open(local_ini,"r") ini = fin.read() fin.close() if jar_path_placeholder in ini: filedir =...
bd2669a1e50b0546874eceb07816d6a638dc8321
src/PhpToZephir/CodeCollector/DirectoryCodeCollector.php
src/PhpToZephir/CodeCollector/DirectoryCodeCollector.php
<?php namespace PhpToZephir\CodeCollector; class DirectoryCodeCollector implements CodeCollectorInterface { /** * @var array */ private $directories; /** * @param array $code */ public function __construct(array $directories) { $this->directories = $directories; } /** * @param string $dir * @...
<?php namespace PhpToZephir\CodeCollector; class DirectoryCodeCollector implements CodeCollectorInterface { /** * @var array */ private $directories; /** * @param array $code */ public function __construct(array $directories) { $this->directories = $directories; } /** * @param string $dir * @...
Fix error on PHP >= 5.5
Fix error on PHP >= 5.5
PHP
mit
fezfez/php-to-zephir
php
## Code Before: <?php namespace PhpToZephir\CodeCollector; class DirectoryCodeCollector implements CodeCollectorInterface { /** * @var array */ private $directories; /** * @param array $code */ public function __construct(array $directories) { $this->directories = $directories; } /** * @param s...
1ac4e00f3d06955da90bddf03a6e478ddeb4d220
core/modules/html_has_same_domain.py
core/modules/html_has_same_domain.py
from bs4 import BeautifulSoup as bs from get_root_domain import get_root_domain def html_has_same_domain(url, resp): mod = 'html_has_same_domain' cnt = 0 root = get_root_domain(url) current_page = bs(resp.text, 'lxml') for tag in current_page.find_all('a'): if tag.get('href'): ...
from bs4 import BeautifulSoup as bs from get_root_domain import get_root_domain def html_has_same_domain(url, resp): mod = 'html_has_same_domain' cnt = 0 root = get_root_domain(url) current_page = bs(resp.text, 'lxml') for tag in current_page.find_all('a'): if tag.get('href'): ...
Undo underperformaing change to code
Undo underperformaing change to code
Python
bsd-2-clause
mjkim610/phishing-detection,jaeyung1001/phishing_site_detection
python
## Code Before: from bs4 import BeautifulSoup as bs from get_root_domain import get_root_domain def html_has_same_domain(url, resp): mod = 'html_has_same_domain' cnt = 0 root = get_root_domain(url) current_page = bs(resp.text, 'lxml') for tag in current_page.find_all('a'): if tag.get('href...
0d2b31b152034d9ebfaab6a7d3bfed5ced16a63b
README.md
README.md
[![Build Status](https://travis-ci.org/b2b2dot0/fuey_client.png?branch=master)](https://travis-ci.org/b2b2dot0/fuey_client) [![Code Climate](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/badges/6fe497d679e5e80d0770/gpa.png)](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/feed) # FueyClient TODO: Writ...
[![Build Status](https://travis-ci.org/b2b2dot0/fuey_client.png?branch=master)](https://travis-ci.org/b2b2dot0/fuey_client) [![Code Climate](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/badges/6fe497d679e5e80d0770/gpa.png)](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/feed) # Fuey::Client Fuey cur...
Add install and usage instructions
Add install and usage instructions
Markdown
mit
dliska/fuey_client,b2b2dot0/fuey_client
markdown
## Code Before: [![Build Status](https://travis-ci.org/b2b2dot0/fuey_client.png?branch=master)](https://travis-ci.org/b2b2dot0/fuey_client) [![Code Climate](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/badges/6fe497d679e5e80d0770/gpa.png)](https://codeclimate.com/repos/5203a52189af7e65a002c4a5/feed) # FueyCl...
531ea8985abb8b6ce45dfefd54e4ac9652748b5a
layouts/partials/shows.html
layouts/partials/shows.html
<section class="shows"> <div class="columns columns--11 space-around"> <h2 class="huge">Shows</h2> </div> {{ range .Site.Params.shows }} <div class="show" data-date="{{ .date }}"> <a href="{{ .url }}" target="_blank" aria-label="{{ .title }}"> <div class="show__head"> <h4 class="show...
<section class="shows"> <div class="columns columns--11 space-around"> <h2 class="huge">Shows</h2> </div> <div class="columns columns--fit space-around"> {{ range .Site.Params.shows }} <div class="show" data-date="{{ .date }}"> <a href="{{ .url }}" target="_blank" aria-label="{{ .title }}...
Make sure to use a grid
feat(show): Make sure to use a grid
HTML
mit
NERDDISCO/nerddis.co,NERDDISCO/nerddis.co,NERDDISCO/nerddis.co
html
## Code Before: <section class="shows"> <div class="columns columns--11 space-around"> <h2 class="huge">Shows</h2> </div> {{ range .Site.Params.shows }} <div class="show" data-date="{{ .date }}"> <a href="{{ .url }}" target="_blank" aria-label="{{ .title }}"> <div class="show__head"> ...
60baff72b801faeca744c287ca61a8e3608a3e62
plugins/de.uni_jena.iaa.linktype.atomic.product/plugin.xml
plugins/de.uni_jena.iaa.linktype.atomic.product/plugin.xml
<?xml version="1.0" encoding="UTF-8"?> <plugin> <extension id="atomic_product_id" point="org.eclipse.core.runtime.products"> <product name="de.uni_jena.iaa.linktype.atomic.product" application="de.uni_jena.iaa.linktype.atomic.application"> <property ...
<?xml version="1.0" encoding="UTF-8"?> <plugin> <extension id="atomic_product_id" point="org.eclipse.core.runtime.products"> <product name="⚛ Atomic" application="de.uni_jena.iaa.linktype.atomic.application"> <property name="applicationCSS" ...
Change window title to "⚛ Atomic"
Change window title to "⚛ Atomic"
XML
apache-2.0
infraling/atomic,infraling/atomic
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <plugin> <extension id="atomic_product_id" point="org.eclipse.core.runtime.products"> <product name="de.uni_jena.iaa.linktype.atomic.product" application="de.uni_jena.iaa.linktype.atomic.application"> <pr...
2e4f8003b62e2085d074dfba901ff56297b96242
lib/tasks/sample_data/group_factory.rb
lib/tasks/sample_data/group_factory.rb
require "tasks/sample_data/addressing" require "tasks/sample_data/logging" class GroupFactory include Logging include Addressing def create_samples log "Creating groups" return if EnterpriseGroup.where(name: "Producer group").exists? create_group( name: "Producer group", owner: enterpri...
require "tasks/sample_data/addressing" require "tasks/sample_data/logging" class GroupFactory include Logging include Addressing def create_samples log "Creating groups" return if EnterpriseGroup.where(name: "Producer group").exists? create_group( { name: "Producer group", own...
Fix group factory in rails 4
Fix group factory in rails 4 params[:address] was breaking the creation of the EnterpriseGroup
Ruby
agpl-3.0
Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-...
ruby
## Code Before: require "tasks/sample_data/addressing" require "tasks/sample_data/logging" class GroupFactory include Logging include Addressing def create_samples log "Creating groups" return if EnterpriseGroup.where(name: "Producer group").exists? create_group( name: "Producer group", ...
b24cec0adda72055ada6c2b1e6872d3ecab074fa
src/Microsoft.AspNet.Mvc.Common/project.json
src/Microsoft.AspNet.Mvc.Common/project.json
{ "version": "6.0.0-*", "shared": "*.cs", "dependencies": { }, "frameworks": { "aspnet50": {}, "aspnetcore50": { "dependencies": { "System.Reflection.Extensions": "4.0.0-beta-*", "System.Text.Encoding.Extensions": "4.0.10-beta-*" ...
{ "version": "6.0.0-*", "shared": "*.cs", "dependencies": { }, "frameworks": { "net45": { }, "aspnet50": { }, "aspnetcore50": { "dependencies": { "System.Reflection.Extensions": "4.0.0-beta-*", "System.Text.Encoding.Extensions": "4...
Add net45 as a target framework for Microsoft.AspNet.Mvc.Common
Add net45 as a target framework for Microsoft.AspNet.Mvc.Common
JSON
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
json
## Code Before: { "version": "6.0.0-*", "shared": "*.cs", "dependencies": { }, "frameworks": { "aspnet50": {}, "aspnetcore50": { "dependencies": { "System.Reflection.Extensions": "4.0.0-beta-*", "System.Text.Encoding.Extensions": "4.0.10-b...
d5fb4ceba473d79cec822506a5322400f0a42a32
doc/upstream-training/source/slides/howitsmade-communication.rst
doc/upstream-training/source/slides/howitsmade-communication.rst
==================== Online Communication ==================== .. image:: ./_assets/os_background.png :class: fill :width: 100% Learning Exercise ================= * Open the `Communication <https://docs.openstack.org/contributors/common/communication.html>`_ section of the Contributor Guide * Read the mat...
==================== Online Communication ==================== .. image:: ./_assets/os_background.png :class: fill :width: 100% Learning Exercise ================= * Open the `Communication <https://docs.openstack.org/contributors/common/communication.html>`_ section of the Contributor Guide * Read the mat...
Replace "mailing lists" with "openstack-discuss" ML
Replace "mailing lists" with "openstack-discuss" ML Change-Id: I73c49b88e0586db8b33e3f12813c2438772b99a7 Signed-off-by: Anda Nicolae <31a050c5ab5e18545e3d5420b0dac4e4b12c44c7@lenovo.com>
reStructuredText
apache-2.0
openstack/training-guides,openstack/training-guides
restructuredtext
## Code Before: ==================== Online Communication ==================== .. image:: ./_assets/os_background.png :class: fill :width: 100% Learning Exercise ================= * Open the `Communication <https://docs.openstack.org/contributors/common/communication.html>`_ section of the Contributor Guid...
7b06d8532c6e62366c8f77ab3f9f91faa8013743
dash/app/controllers/spree/admin/overview_controller.rb
dash/app/controllers/spree/admin/overview_controller.rb
module Spree class Admin::OverviewController < Admin::BaseController before_filter :check_last_jirafe_sync_time, :only => :index JIRAFE_LOCALES = { :english => 'en_US', :french => 'fr_FR', :german => 'de_DE', :japanese => 'ja_JA' } def...
module Spree class Admin::OverviewController < Admin::BaseController before_filter :check_last_jirafe_sync_time, :only => :index JIRAFE_LOCALES = { :english => 'en_US', :french => 'fr_FR', :german => 'de_DE', :japanese => 'ja_JA' } def...
Check if Spree::Dash is configured before trying to sync with Jirafe
Check if Spree::Dash is configured before trying to sync with Jirafe
Ruby
bsd-3-clause
lzcabrera/spree-1-3-stable,lzcabrera/spree-1-3-stable,lzcabrera/spree-1-3-stable
ruby
## Code Before: module Spree class Admin::OverviewController < Admin::BaseController before_filter :check_last_jirafe_sync_time, :only => :index JIRAFE_LOCALES = { :english => 'en_US', :french => 'fr_FR', :german => 'de_DE', :japanese => 'j...
969bd131b47709f47c9262e93283db0edda1e5d4
app/services/stocks.js
app/services/stocks.js
app.factory('stocks', ['$http', function($http) { var endPoint = 'https://query.yahooapis.com/v1/public/yql?q=', symbols = [ "W", "FIT" ], query = "select * from yahoo.finance.quotes where symbol IN(\"" + symbols.join('","') + "\")", args = "&format=json&env=http://datatables.org/alltables.env", ...
app.factory('stocks', ['$http', function($http) { var endPoint = 'https://query.yahooapis.com/v1/public/yql?q=', symbols = [ "W", "FIT" ], query = "select * from yahoo.finance.quotes where symbol IN(\"" + symbols.join('","') + "\")", args = "&format=json&env=http://datatables.org/alltables.env", ...
Rearrange temp support for no internet
Rearrange temp support for no internet
JavaScript
mit
zachloubier/stocks,zachloubier/stocks
javascript
## Code Before: app.factory('stocks', ['$http', function($http) { var endPoint = 'https://query.yahooapis.com/v1/public/yql?q=', symbols = [ "W", "FIT" ], query = "select * from yahoo.finance.quotes where symbol IN(\"" + symbols.join('","') + "\")", args = "&format=json&env=http://datatables.org/al...
89b323667c9a869c21bc8c0b5bef5b128a970a5f
api-script-client/int_daily_build/run.sh
api-script-client/int_daily_build/run.sh
set -e; # Stop on error # Declare run specific parameters effectiveDate="2015-01-31" readmeEndDate="2014" isFirstTime=false headless=true extensionName="SNOMED CT International Edition" dataLocation=$1 previousPublishedPackageName="SnomedCT_Release_INT_20140731.zip" productName="SNOMED CT Release" buildName="Int Daily...
set -e; # Stop on error # Declare run specific parameters effectiveDate="2015-01-31" readmeEndDate="2014" isFirstTime=false headless=true extensionName="SNOMED CT International Edition" dataLocation=$1 previousPublishedPackageName="SnomedCT_Release_INT_20140731.zip" productName="SNOMED CT Release" buildName="Int Daily...
Package Name must match that being picked up by the daily comparison.
Package Name must match that being picked up by the daily comparison.
Shell
apache-2.0
IHTSDO/snomed-release-service,IHTSDO/snomed-release-service
shell
## Code Before: set -e; # Stop on error # Declare run specific parameters effectiveDate="2015-01-31" readmeEndDate="2014" isFirstTime=false headless=true extensionName="SNOMED CT International Edition" dataLocation=$1 previousPublishedPackageName="SnomedCT_Release_INT_20140731.zip" productName="SNOMED CT Release" buil...
d9c818c0c16aa9861744c3e4f63211aca6c7d1a6
db_test.go
db_test.go
package hyperdb_test import ( . "github.com/mysza/hyperdb" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("DB", func() { })
package hyperdb_test import ( "github.com/mysza/hyperdb" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "os" ) var _ = Describe("DB", func() { Describe("Opening the database", func() { Context("with defaults", func() { It("should open default database", func() { // calling Open with empty strin...
Add test for opening default and named database
Add test for opening default and named database
Go
mit
mysza/hyperdb
go
## Code Before: package hyperdb_test import ( . "github.com/mysza/hyperdb" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("DB", func() { }) ## Instruction: Add test for opening default and named database ## Code After: package hyperdb_test import ( "github.com/mysza/hyperdb" . "gi...
e1ad944dc30d0546b7aa696a57439e0ccd794ba6
examples/basic/src/actions/index.js
examples/basic/src/actions/index.js
import * as Rx from 'rxjs'; export const FETCH_USER_PENDING = 'FETCH_USER_PENDING'; export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; export const FETCH_USER_ABORTED = 'FETCH_USER_ABORTED'; export const fetchUser = () => ( (actions, store) => Rx.Observable.of({ id: 1, name: 'Bilbo Baggins', timestamp: new...
import * as Rx from 'rxjs'; export const FETCH_USER_PENDING = 'FETCH_USER_PENDING'; export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; export const FETCH_USER_ABORTED = 'FETCH_USER_ABORTED'; export const fetchUser = () => ( (actions, store) => Rx.Observable.of({ id: 1, name: 'Bilbo Baggins', timestamp: new...
Reduce confusion about when middleware dispatches emitted actions
docs(README): Reduce confusion about when middleware dispatches emitted actions "automatically dispatch" is misleading/confusing. This event is dispatched because `dispatch(fetchUser())` is called elsewhere-- merely returning an action object from `.map` function does not cause the action to be dispatched.
JavaScript
mit
redux-observable/redux-observable,blesh/redux-observable,blesh/redux-observable,redux-observable/redux-observable,jesinity/redux-observable,jesinity/redux-observable,jesinity/redux-observable,redux-observable/redux-observable
javascript
## Code Before: import * as Rx from 'rxjs'; export const FETCH_USER_PENDING = 'FETCH_USER_PENDING'; export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; export const FETCH_USER_ABORTED = 'FETCH_USER_ABORTED'; export const fetchUser = () => ( (actions, store) => Rx.Observable.of({ id: 1, name: 'Bilbo Baggins'...
780ffaa86cb64913ace2c98a10890d7e40b528c4
README.md
README.md
This is a simple python class which is using to filter out cards by different keys, the data source is exported JSON from Trello. |function name | description | -----------------------------|------------------------------------| |viewCardsByKeys([key]) | Get valuse for remain...
This is a simple python class which is using to filter out cards by different keys, the data source is exported JSON from Trello. |function name | description | -----------------------------|------------------------------------| |viewCardsByKeys([keys]) | Get valuse for remain...
Update readme for temporary solution: use token to download trello JSON
Update readme for temporary solution: use token to download trello JSON
Markdown
mit
cjy0125/trellofunnel
markdown
## Code Before: This is a simple python class which is using to filter out cards by different keys, the data source is exported JSON from Trello. |function name | description | -----------------------------|------------------------------------| |viewCardsByKeys([key]) | Get v...
18c8be74d0f57490192ebcfb63400574e01adf87
src/moves.ts
src/moves.ts
export function getMoves(grid: boolean[]): number[] { return grid .map((value, index) => value == undefined ? index : undefined) .filter(value => value != undefined); }
import { Grid, Move } from './definitions'; export function getMoves(grid: Grid): Move[] { return grid .map((value, index) => value == undefined ? index : undefined) .filter(value => value != undefined); }
Make getMoves function use Grid and Move
Make getMoves function use Grid and Move
TypeScript
mit
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
typescript
## Code Before: export function getMoves(grid: boolean[]): number[] { return grid .map((value, index) => value == undefined ? index : undefined) .filter(value => value != undefined); } ## Instruction: Make getMoves function use Grid and Move ## Code After: import { Grid, Move } from './definitio...
a7409f648898d312f7ef7c61ffd85df5a66165d2
src/bd/settings/VmSettings.java
src/bd/settings/VmSettings.java
package bd.settings; /** * VmSettings are determined based on Java properties. They are used to configure VM-wide * properties, for instance whether a tool is enabled or not. */ public class VmSettings { public static final boolean DYNAMIC_METRICS; static { Settings s = getSettings(); DYNAMIC_METRICS ...
package bd.settings; /** * VmSettings are determined based on Java properties. They are used to configure VM-wide * properties, for instance whether a tool is enabled or not. */ public class VmSettings { public static final boolean DYNAMIC_METRICS; static { Settings s = getSettings(); DYNAMIC_METRICS ...
Use Class.forName instead of class loader
Use Class.forName instead of class loader Class loader seems to be null on the bootclasspath Signed-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>
Java
mit
SOM-st/black-diamonds,SOM-st/black-diamonds
java
## Code Before: package bd.settings; /** * VmSettings are determined based on Java properties. They are used to configure VM-wide * properties, for instance whether a tool is enabled or not. */ public class VmSettings { public static final boolean DYNAMIC_METRICS; static { Settings s = getSettings(); ...
a8fe0e39e3b6e63656d161d8397b47a8f0a83d42
app/controllers/reports_controller.rb
app/controllers/reports_controller.rb
class ReportsController < ApplicationController before_action :authenticate_user def index @reports = Report.all end def show end def new @report = Report.new end def create @report = Report.build_report(report_params) if @report.save redirect_to reports_path, notice: "Report...
class ReportsController < ApplicationController before_action :authenticate_user def index @reports = Report.all end def show @report = Report.find(params[:id]) end def new @report = Report.new end def create @report = Report.build_report(report_params) if @report.save re...
Add show action to report controller
Add show action to report controller
Ruby
mit
danevron/hours-report-app,danevron/hours-report-app,danevron/hours-report-app
ruby
## Code Before: class ReportsController < ApplicationController before_action :authenticate_user def index @reports = Report.all end def show end def new @report = Report.new end def create @report = Report.build_report(report_params) if @report.save redirect_to reports_path,...
99177cdc64bdec740557007800b610bff07ce46a
shivyc.py
shivyc.py
import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The file name of ...
import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The file name of ...
Improve commenting on main function
Improve commenting on main function
Python
mit
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
python
## Code Before: import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # T...
c4ed0fcc474e9abcadbcbee2923c87247769a328
test/function.js
test/function.js
(function(buster, fn, when) { var assert = buster.assert; function f(x, y) { return x + y; } buster.testCase('when/function', { 'apply': { 'should return a promise': function() { var result = fn.apply(f, [1, 2]); assert(result && typeof result.then === 'function'); }, 'should accept values for argume...
(function(buster, fn, when) { var assert = buster.assert; function assertIsPromise(something) { var message = 'Object is not a promise'; buster.assert(when.isPromise(something), message); } function f(x, y) { return x + y; } buster.testCase('when/function', { 'apply': { 'should return a promise': function(...
Remove duplication and extra knowledge
Remove duplication and extra knowledge I guess we can trust when.isPromise here. Maybe we should consider using buster.assertions.add('isPromise')
JavaScript
mit
mlennon3/when,ning-github/when,petkaantonov/when,frank-weindel/when,ning-github/when,tkirda/when,mlennon3/when,DJDNS/when.js,frank-weindel/when,SourcePointUSA/when,stevage/when,anthonyvia/when,caporta/when,stevage/when,anthonyvia/when,SourcePointUSA/when,caporta/when,tkirda/when
javascript
## Code Before: (function(buster, fn, when) { var assert = buster.assert; function f(x, y) { return x + y; } buster.testCase('when/function', { 'apply': { 'should return a promise': function() { var result = fn.apply(f, [1, 2]); assert(result && typeof result.then === 'function'); }, 'should accept v...
233f50e92e64b5c210ef2a132ba358f674617dbc
tools/check-machine.sh
tools/check-machine.sh
EXIT=0 if ! ps -ef | grep pup*et; then echo "puppet is not running on $HOSTNAME -- restarting" # try to restart /usr/bin/ruby /usr/sbin/puppetd --server=volt1 || EXIT=1 if ! ps -ef | grep pup*et; then echo "puppet is still not running on $HOSTNAME" EXIT=1 fi fi cd /tmp && ls -tr | grep volt_snapshot ...
hostname EXIT=0 if ! ps -ef | grep pup*et; then echo "puppet is not running on $HOSTNAME -- restarting" # try to restart /usr/bin/ruby /usr/sbin/puppetd --server=volt1 || EXIT=1 if ! ps -ef | grep pup*et; then echo "puppet is still not running on $HOSTNAME" EXIT=1 fi fi cd /tmp && ls -tr | grep volt_...
Remove confusing output when no snapshot files need to be removed Output which machine is being checked, for easier diagnosis
Remove confusing output when no snapshot files need to be removed Output which machine is being checked, for easier diagnosis
Shell
agpl-3.0
ingted/voltdb,VoltDB/voltdb,deerwalk/voltdb,ingted/voltdb,ingted/voltdb,wolffcm/voltdb,deerwalk/voltdb,kobronson/cs-voltdb,wolffcm/voltdb,deerwalk/voltdb,migue/voltdb,ingted/voltdb,flybird119/voltdb,kobronson/cs-voltdb,flybird119/voltdb,migue/voltdb,kobronson/cs-voltdb,zuowang/voltdb,kobronson/cs-voltdb,flybird119/volt...
shell
## Code Before: EXIT=0 if ! ps -ef | grep pup*et; then echo "puppet is not running on $HOSTNAME -- restarting" # try to restart /usr/bin/ruby /usr/sbin/puppetd --server=volt1 || EXIT=1 if ! ps -ef | grep pup*et; then echo "puppet is still not running on $HOSTNAME" EXIT=1 fi fi cd /tmp && ls -tr | gre...
f878604de6113018d04662430ee413f33019e73e
index.js
index.js
var Sandbox = require('sandbox'); module.exports = exports = function(json, callback) { // run the code in a sandbox to thwart evil people var s = new Sandbox(); // in a self executing function set json equal to a variable and stringify the result json = "(function() { var j ="+json+"; return JSON.stringify(j); }...
var Sandbox = require('sandbox'); module.exports = exports = function(json, callback) { // run the code in a sandbox to thwart evil people var s = new Sandbox(); // in a self executing function set json equal to a variable and stringify the result json = "(function() { var j ="+json+"; return JSON.stringify(j); }...
Add better documentation to library
Add better documentation to library
JavaScript
mit
TechplexEngineer/json_sanitizer
javascript
## Code Before: var Sandbox = require('sandbox'); module.exports = exports = function(json, callback) { // run the code in a sandbox to thwart evil people var s = new Sandbox(); // in a self executing function set json equal to a variable and stringify the result json = "(function() { var j ="+json+"; return JSON...
0c2bb4e831da84baaeb837246912140787e0d4bd
firmware/examples/parse_hex.ino
firmware/examples/parse_hex.ino
// This provides a variable, colour, a function to set the variable from a hex // string, set_colour, and programs the RGB LED on the spark core to reflect // the RRGGBB value last programmed. The default on reboot is black. // BEWARE: British spelling ahead! #include "spark-parse.h" static int colour = 0; int set...
// This provides a variable, colour, a function to set the variable from a hex // string, set_colour, and programs the RGB LED on the spark core to reflect // the RRGGBB value last programmed. The default on reboot is black. // BEWARE: British spelling ahead! static int colour = 0; int set_colour(String args) { ...
Correct the include path to the one the Spark IDE wants
Correct the include path to the one the Spark IDE wants
Arduino
mit
iawells/spark-parse,iawells/spark-parse
arduino
## Code Before: // This provides a variable, colour, a function to set the variable from a hex // string, set_colour, and programs the RGB LED on the spark core to reflect // the RRGGBB value last programmed. The default on reboot is black. // BEWARE: British spelling ahead! #include "spark-parse.h" static int colo...
e720307a1ba5790a6001a09e9a8f71247ec3241f
lib/views/general/_before_head_end.html.erb
lib/views/general/_before_head_end.html.erb
<script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> <meta name="google-site-verification" content="DbAHEzh0igI0rZziSexQh5fTrbRfNPSw8BdmrmNY_70" />
Add verification code for Webmaster tools.
Add verification code for Webmaster tools.
HTML+ERB
mit
schlos/whatdotheyknow-theme,schlos/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme
html+erb
## Code Before: <script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script> <script type="text/javascript">try{Typekit.load();}catch(e){}</script> ## Instruction: Add verification code for Webmaster tools. ## Code After: <script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script> <scr...
bf090bd2905fabe3346d1771618b99fa86dc588c
.travis.yml
.travis.yml
sudo: false language: node_js #cache: # directories: # - node_modules notifications: email: false node_js: - "6" - "8" env: global: - CXX=g++-4.8 - TWITTER_BEARER_TOKEN=123456789 matrix: allow_failures: - node_js: "6" addons: apt: sources: - ubuntu-toolchain-r-test packages:...
sudo: false language: node_js #cache: # directories: # - node_modules notifications: email: false services: - redis-server node_js: - "8" - "9" env: global: - CXX=g++-4.8 - TWITTER_BEARER_TOKEN=123456789 matrix: allow_failures: - node_js: "9" addons: apt: sources: - ubuntu-to...
Add Redis and RethinkDB required services, move build to Node.js versions 8 and 9 rather than 6 and 8. Move linting step to after testing step so it's easier to see test results.
Add Redis and RethinkDB required services, move build to Node.js versions 8 and 9 rather than 6 and 8. Move linting step to after testing step so it's easier to see test results.
YAML
mit
ocean/higgins,ocean/higgins
yaml
## Code Before: sudo: false language: node_js #cache: # directories: # - node_modules notifications: email: false node_js: - "6" - "8" env: global: - CXX=g++-4.8 - TWITTER_BEARER_TOKEN=123456789 matrix: allow_failures: - node_js: "6" addons: apt: sources: - ubuntu-toolchain-r-te...
8fe3ee1003d7de5915307594b613a9b34629d3ba
app/models/councillor.rb
app/models/councillor.rb
class Councillor < ActiveRecord::Base belongs_to :ward has_and_belongs_to_many :committees has_many :motions has_many :items, as: :origin end
class Councillor < ActiveRecord::Base belongs_to :ward has_and_belongs_to_many :committees has_many :motions has_many :councillor_vote has_many :items, as: :origin end
Fix Councillor Vote Not Deleting
Fix Councillor Vote Not Deleting Because a councillor association for has_many which is not been set up.
Ruby
mit
CivicHaxx/ok_councillr,CivicHaxx/ok_councillr,CivicHaxx/ok_councillr
ruby
## Code Before: class Councillor < ActiveRecord::Base belongs_to :ward has_and_belongs_to_many :committees has_many :motions has_many :items, as: :origin end ## Instruction: Fix Councillor Vote Not Deleting Because a councillor association for has_many which is not been set up. ## Code After: class Councillor <...
4bc31a4091f8dcd2e8aca5dcf6168c4f8c524637
priv/public/ui/app/mn_admin/mn_indexes/mn_views/mn_views.html
priv/public/ui/app/mn_admin/mn_indexes/mn_views/mn_views.html
<div ng-if="!viewsCtl.mnPoolDefault.value.isKvNode"> Views are not supported on this server node as it does not have a Data service. You may access views functionality on any Data service node in the cluster, such as: <a id="js_healthy_kv_node_link" href="{{::viewsCtl.getKvNodeLink()}}" target="_blank">{{::viewsCtl.g...
<div ng-if="!viewsCtl.mnPoolDefault.value.isKvNode"> The views interface is only available on nodes running the Data service. You may access the interface here: <a id="js_healthy_kv_node_link" href="{{::viewsCtl.getKvNodeLink()}}" target="_blank">{{::viewsCtl.getKvNodeLink()}}</a> </div> <div ng-if="viewsCtl.mnPoo...
Fix for MB-17875 - Make redirection links more consistent.
Fix for MB-17875 - Make redirection links more consistent. After some discussion with Dave F., Rob, Perry, and myself, we chose a consistent message for Query, View, and FTS. This change updates it for View. Change-Id: Ia4e0a4083e1cac2a283dc7f5e4f59bd2db16b96f Reviewed-on: http://review.couchbase.org/62501 Reviewed-b...
HTML
apache-2.0
membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,membase/ns_server
html
## Code Before: <div ng-if="!viewsCtl.mnPoolDefault.value.isKvNode"> Views are not supported on this server node as it does not have a Data service. You may access views functionality on any Data service node in the cluster, such as: <a id="js_healthy_kv_node_link" href="{{::viewsCtl.getKvNodeLink()}}" target="_blank...
80e8535442d75b511741e5f09badf52e9c5ca3b4
examples/hellomessage/hello_message.go
examples/hellomessage/hello_message.go
package hellomessage // import "myitcv.io/react/examples/hellomessage" import ( r "myitcv.io/react" ) //go:generate reactGen // HelloMessageDef is the definition of the HelloMessage component type HelloMessageDef struct { r.ComponentDef } // HelloMessageProps is the props type for the HelloMessage component type ...
package hellomessage // import "myitcv.io/react/examples/hellomessage" import ( r "myitcv.io/react" ) //go:generate reactGen // HelloMessageDef is the definition of the HelloMessage component type HelloMessageDef struct { r.ComponentDef } // HelloMessageProps is the props type for the HelloMessage component type ...
Remove old code from hello message example
Remove old code from hello message example
Go
bsd-3-clause
myitcv/react,myitcv/react,myitcv/react,myitcv/react
go
## Code Before: package hellomessage // import "myitcv.io/react/examples/hellomessage" import ( r "myitcv.io/react" ) //go:generate reactGen // HelloMessageDef is the definition of the HelloMessage component type HelloMessageDef struct { r.ComponentDef } // HelloMessageProps is the props type for the HelloMessage...
15f95832b24a88bbeb6440a9a5234f900e7d51e7
app/models/concerns/job/job_result.rb
app/models/concerns/job/job_result.rb
class Job < ActiveRecord::Base module JobResult extend ActiveSupport::Concern def calculate_result # Default to errored if no results have been reported self.result = 'errored' # Set initial result using the exit value if self.exit_value if self.exit_val...
class Job < ActiveRecord::Base module JobResult extend ActiveSupport::Concern def calculate_result # Default to errored if no results have been reported self.result = 'errored' # Set initial result using the exit value if self.exit_value if self.exit_val...
Update test_result statuses upon state changes
Update test_result statuses upon state changes
Ruby
mit
bbc/hive-scheduler,bbc/hive-scheduler,bbc/hive-scheduler
ruby
## Code Before: class Job < ActiveRecord::Base module JobResult extend ActiveSupport::Concern def calculate_result # Default to errored if no results have been reported self.result = 'errored' # Set initial result using the exit value if self.exit_value ...
e81a54a5df2aaafae230084fe3b4d59c5b4f61cc
parallel/runner.py
parallel/runner.py
import Queue from parallel import worker class Runner(object): def __init__(self, num_workers=4): self.in_queue = Queue.Queue() self.out_queue = Queue.Queue() self.num_workers = num_workers self.workers = None self._start_workers() def _start_workers(self): se...
import Queue from parallel import config from parallel import worker class Runner(object): def __init__(self, num_workers=config.NUM_WORKERS): self.in_queue = Queue.Queue() self.out_queue = Queue.Queue() self.num_workers = num_workers self.workers = None self._start_worker...
Use default number of workers from config
Use default number of workers from config config does a better job at figuring out the optimal number of workers, so it will be used instead.
Python
mit
andersonvom/mparallel
python
## Code Before: import Queue from parallel import worker class Runner(object): def __init__(self, num_workers=4): self.in_queue = Queue.Queue() self.out_queue = Queue.Queue() self.num_workers = num_workers self.workers = None self._start_workers() def _start_workers(s...
e637e5f53990709ed654b661465685ad9d05a182
api/spawner/templates/constants.py
api/spawner/templates/constants.py
from __future__ import absolute_import, division, print_function from django.conf import settings JOB_NAME = 'plxjob-{task_type}{task_idx}-{experiment_uuid}' DEFAULT_PORT = 2222 ENV_VAR_TEMPLATE = '{name: "{var_name}", value: "{var_value}"}' VOLUME_NAME = 'pv-{vol_name}' VOLUME_CLAIM_NAME = 'pvc-{vol_name}' CLUSTER_C...
from __future__ import absolute_import, division, print_function from django.conf import settings JOB_NAME = 'plxjob-{task_type}{task_idx}-{experiment_uuid}' DEFAULT_PORT = 2222 ENV_VAR_TEMPLATE = '{name: "{var_name}", value: "{var_value}"}' VOLUME_NAME = 'pv-{vol_name}' VOLUME_CLAIM_NAME = 'pvc-{vol_name}' CLUSTER_C...
Update cluster config map key format
Update cluster config map key format
Python
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
python
## Code Before: from __future__ import absolute_import, division, print_function from django.conf import settings JOB_NAME = 'plxjob-{task_type}{task_idx}-{experiment_uuid}' DEFAULT_PORT = 2222 ENV_VAR_TEMPLATE = '{name: "{var_name}", value: "{var_value}"}' VOLUME_NAME = 'pv-{vol_name}' VOLUME_CLAIM_NAME = 'pvc-{vol_...
6c960d4d67feec85378ab885218c4d10746615c2
addon/helpers/register-select-helper.js
addon/helpers/register-select-helper.js
import Ember from 'ember'; export default function() { Ember.Test.registerAsyncHelper('select', function(app, selector, text) { const $el = app.testHelpers.findWithAssert(`${selector} option:contains("${text}")`); $el.each(function() { Ember.run(() => { this.selected = true; Ember.$(th...
import Ember from 'ember'; export default function() { Ember.Test.registerAsyncHelper('select', function(app, selector, text) { var $el = app.testHelpers.findWithAssert(selector + "option:contains('" + text + "')"); $el.each(function() { var _this = this; Ember.run(function() { _this.se...
Stop using ES6 due to PhantomJS issues
Stop using ES6 due to PhantomJS issues
JavaScript
mit
arenoir/emberx-select,steveklabnik/emberx-select,thefrontside/emberx-select,gte451f/emberx-select,stefanpenner/emberx-select,tejasmanohar/emberx-select,martypenner/emberx-select,jeffreybiles/emberx-select,martypenner/emberx-select,knownasilya/emberx-select,tejasmanohar/emberx-select,knownasilya/emberx-select,stefanpenn...
javascript
## Code Before: import Ember from 'ember'; export default function() { Ember.Test.registerAsyncHelper('select', function(app, selector, text) { const $el = app.testHelpers.findWithAssert(`${selector} option:contains("${text}")`); $el.each(function() { Ember.run(() => { this.selected = true; ...
077c136788e70ae9f8c616c4018cff633fcf1d7a
experimental/example/README.md
experimental/example/README.md
To run, ``` make all ./run.sh ``` # "architecture" ``` curl -> frontend --> app --> searchapp -> elasticsearch (nginx) | --> qotd -> internet | --> redis ```
To run a on a Mac, run: ``` $ docker-machine create -d virtualbox --virtualbox-memory=4096 $ eval $(docker-machine env scope-tastic) $ sudo curl -L git.io/weave -o /usr/local/bin/weave $ sudo chmod +x /usr/local/bin/weave $ weave launch $ curl -o run.sh https://... $ ./run.sh $ sudo wget -O /usr/local/bin/scope https...
Update instruction on running demo.
Update instruction on running demo.
Markdown
apache-2.0
alban/scope,weaveworks/scope,alban/scope,paulbellamy/scope,dilgerma/scope,kinvolk/scope,dilgerma/scope,kinvolk/scope,kinvolk/scope,weaveworks/scope,weaveworks/scope,weaveworks/scope,paulbellamy/scope,kinvolk/scope,kinvolk/scope,alban/scope,paulbellamy/scope,weaveworks/scope,alban/scope,alban/scope,paulbellamy/scope,pau...
markdown
## Code Before: To run, ``` make all ./run.sh ``` # "architecture" ``` curl -> frontend --> app --> searchapp -> elasticsearch (nginx) | --> qotd -> internet | --> redis ``` ## Instruction: Update instruction on running demo. ## Code After: To run a on ...
18edcf2d00886d975c37ac8afd0e2c75c330c6ca
spec/build/dependencygrapher/print_dependencies_spec.rb
spec/build/dependencygrapher/print_dependencies_spec.rb
require File.dirname(__FILE__) + '/../../spec_helper' require 'rakelib/dependency_grapher' describe "DependencyGrapher#print_dependencies" do before :each do @stdout, $stdout = $stdout, IOStub.new @grapher = DependencyGrapher.new [] @grapher.should_receive(:get_system_defines) end it "prints the de...
require File.dirname(__FILE__) + '/../../spec_helper' require 'rakelib/dependency_grapher' describe "DependencyGrapher#print_dependencies" do before :each do @stdout, $stdout = $stdout, IOStub.new @grapher = DependencyGrapher.new [] @grapher.should_receive(:get_system_defines) end after :each do ...
Make sure $stdout is reassigned in :after action.
Make sure $stdout is reassigned in :after action.
Ruby
bsd-3-clause
digitalextremist/rubinius,heftig/rubinius,Wirachmat/rubinius,sferik/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,dblock/rubinius,dblock/rubinius,slawosz/rubinius,slawosz/rubinius,benlovell/rubinius,Azizou/rubinius,ngpestelos/rubinius,slawosz/rubinius,ruipserra/rubinius,heftig/rubinius,dblock/r...
ruby
## Code Before: require File.dirname(__FILE__) + '/../../spec_helper' require 'rakelib/dependency_grapher' describe "DependencyGrapher#print_dependencies" do before :each do @stdout, $stdout = $stdout, IOStub.new @grapher = DependencyGrapher.new [] @grapher.should_receive(:get_system_defines) end i...
bee3daac70c2f3c56628203a93b2442fd93b10a5
ksql-workshop/README.md
ksql-workshop/README.md
![image](../images/confluent-logo-300-2.png) # Overview This KSQL ratings demo showcases Kafka stream processing using KSQL. This demo was initially created for a KSQL workshop. As with the other demos in this repo, you may run the entire demo end-to-end with `./start.sh`, and it runs on your local Confluent Platfor...
![image](../images/confluent-logo-300-2.png) # Overview This KSQL ratings demo showcases Kafka stream processing using KSQL. This demo was initially created for a KSQL workshop. ---- **You can follow the [step-by-step guide](ksql-workshop.adoc) workshop instructions here. These instructions are based on Docker inst...
Make workshop instructions more obvious
Make workshop instructions more obvious
Markdown
apache-2.0
confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples,confluentinc/examples
markdown
## Code Before: ![image](../images/confluent-logo-300-2.png) # Overview This KSQL ratings demo showcases Kafka stream processing using KSQL. This demo was initially created for a KSQL workshop. As with the other demos in this repo, you may run the entire demo end-to-end with `./start.sh`, and it runs on your local C...
f57b40f1b360fc5b1d6e2ae0575a0ed73ce9fe31
README.md
README.md
humanize-bytes -- Utilities to convert "MiB" etc to raw numbers =============================================================== Install with go get github.com/tv42/humanize-bytes/cmd/bytes2human github.com/tv42/humanize-bytes/cmd/human2bytes Use like this: $ human2bytes 42GiB 45097156608 $ human2bytes 42GB...
humanize-bytes -- Utilities to convert "MiB" etc to raw numbers =============================================================== Install with go get github.com/tv42/humanize-bytes/cmd/bytes2human github.com/tv42/humanize-bytes/cmd/human2bytes Use like this: $ human2bytes 42GiB 45097156608 $ human2by...
Indent more for proper markdown layout.
Indent more for proper markdown layout.
Markdown
mit
tv42/humanize-bytes,tv42/humanize-bytes
markdown
## Code Before: humanize-bytes -- Utilities to convert "MiB" etc to raw numbers =============================================================== Install with go get github.com/tv42/humanize-bytes/cmd/bytes2human github.com/tv42/humanize-bytes/cmd/human2bytes Use like this: $ human2bytes 42GiB 45097156608 $ ...
46ab176c20494fce8f66d9042645e4110d3198aa
test/integration/default/default_spec.rb
test/integration/default/default_spec.rb
describe service('W3SVC') do it { should be_installed } it { should be_running } end # Unless we are on a 'polluted' machine, the default website should # be present if the IIS Role was freshly installed. All our vagrant # configurations install with the system drive at C:\ describe iis_site('Default Web Site') ...
describe service('W3SVC') do it { should be_installed } it { should be_running } its ('startmode') { should be 'Auto'} end # Unless we are on a 'polluted' machine, the default website should # be present if the IIS Role was freshly installed. All our vagrant # configurations install with the system drive at C:...
Make sure IIS is set to auto
Make sure IIS is set to auto Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
apache-2.0
jonathanmorley/iis,chef-cookbooks/iis,opscode-cookbooks/iis
ruby
## Code Before: describe service('W3SVC') do it { should be_installed } it { should be_running } end # Unless we are on a 'polluted' machine, the default website should # be present if the IIS Role was freshly installed. All our vagrant # configurations install with the system drive at C:\ describe iis_site('Def...
b42d12c40223f19c0c26d4ec7c64f3ab6e144c6c
src/model/mixin/colorPalette.js
src/model/mixin/colorPalette.js
import {makeInner} from '../../util/model'; var inner = makeInner(); export default { clearColorPalette: function () { inner(this).colorIdx = 0; inner(this).colorNameMap = {}; }, getColorFromPalette: function (name, scope) { scope = scope || this; var scopeFields = inner(s...
import {makeInner, normalizeToArray} from '../../util/model'; var inner = makeInner(); export default { clearColorPalette: function () { inner(this).colorIdx = 0; inner(this).colorNameMap = {}; }, getColorFromPalette: function (name, scope) { scope = scope || this; var sco...
Support string value for color.
Support string value for color.
JavaScript
apache-2.0
chenfwind/echarts,ecomfe/echarts,apache/incubator-echarts,100star/echarts,ecomfe/echarts,chenfwind/echarts,100star/echarts,apache/incubator-echarts
javascript
## Code Before: import {makeInner} from '../../util/model'; var inner = makeInner(); export default { clearColorPalette: function () { inner(this).colorIdx = 0; inner(this).colorNameMap = {}; }, getColorFromPalette: function (name, scope) { scope = scope || this; var scope...
3c6a6677be6aca24d73182505772dbc6f2b49684
Sources/TAR/DataWithPointer+Tar.swift
Sources/TAR/DataWithPointer+Tar.swift
// Copyright (c) 2017 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information import Foundation extension DataWithPointer { func nullEndedBuffer(cutoff: Int) -> [UInt8] { let startIndex = index var buffer = [UInt8]() while index - startIndex < cutoff { ...
// Copyright (c) 2017 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information import Foundation extension DataWithPointer { private func nullEndedBuffer(cutoff: Int) -> [UInt8] { let startIndex = index var buffer = [UInt8]() while index - startIndex < cutof...
Make private couple of dwp+tar functions
Make private couple of dwp+tar functions
Swift
mit
tsolomko/SWCompression,tsolomko/SWCompression,tsolomko/SWCompression
swift
## Code Before: // Copyright (c) 2017 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information import Foundation extension DataWithPointer { func nullEndedBuffer(cutoff: Int) -> [UInt8] { let startIndex = index var buffer = [UInt8]() while index - startIndex...
ad72a44f6bf9df675b659eefd04aaa3d425825be
spec/classes/rsyslog_spec.rb
spec/classes/rsyslog_spec.rb
require 'spec_helper' describe 'rsyslog', :type => :class do let(:title) { 'rsyslog' } it { should contain_package('rsyslog').with_ensure('installed') } it { should contain_service('rsyslog').with_ensure('running') } end
require 'spec_helper' describe 'rsyslog', :type => :class do context "On an Ubuntu install install rsyslog" do let :facts do { :operatingsystem => 'Debian' } end let(:title) { 'rsyslog' } it { should contain_package('rsyslog').with_ensure('installed') } it { should contain_service('rsyslo...
Fix test cases by introducing facts to rspec
Fix test cases by introducing facts to rspec
Ruby
apache-2.0
Brainsware/puppet-rsyslog,Brainsware/puppet-rsyslog
ruby
## Code Before: require 'spec_helper' describe 'rsyslog', :type => :class do let(:title) { 'rsyslog' } it { should contain_package('rsyslog').with_ensure('installed') } it { should contain_service('rsyslog').with_ensure('running') } end ## Instruction: Fix test cases by introducing facts to rspec ## Code Af...
fb0f1b16b1d71ef6e353d768ed00eeffb973b715
app/views/systems/_selection.html.haml
app/views/systems/_selection.html.haml
%h3= t('selection') .row .col-sm-5.sortableHospitals - @hospitals.each do |hospital| .selection.bordered-well{ 'data-hospital-id': hospital.id } = hospital.name %span.pull-right.icon.icon--trash.removeHospital{ 'aria-hidden': 'true', style: 'color:#757575', title: t('remove_from_comparison'...
%h3= t('selection') .row .col-sm-5.sortableHospitals - @hospitals.each do |hospital| .selection.bordered-well{ 'data-hospital-id': hospital.id } = hospital.name %span.pull-right.removeHospital{ 'aria-hidden': 'true', style: 'color:#757575', title: t('remove_from_comparison'), 'data-hospital...
Replace trash with removal icon.
Replace trash with removal icon.
Haml
mit
eonum/drg-search,eonum/drg-search,eonum/drg-search
haml
## Code Before: %h3= t('selection') .row .col-sm-5.sortableHospitals - @hospitals.each do |hospital| .selection.bordered-well{ 'data-hospital-id': hospital.id } = hospital.name %span.pull-right.icon.icon--trash.removeHospital{ 'aria-hidden': 'true', style: 'color:#757575', title: t('remove_...
663c9486a2482a84a02552c25ddfb1b1a58e2349
src/main/bash/gvm-help.sh
src/main/bash/gvm-help.sh
function __gvmtool_help { echo "" echo "Usage: gvm <command> <candidate> [version]" echo " gvm offline <enable|disable>" echo "" echo " command : install, uninstall, list, use, current, version, default, selfupdate, broadcast, help, offline" echo " candidate : groovy, grails, griffon, gradle, laz...
function __gvmtool_help { echo "" echo "Usage: gvm <command> <candidate> [version]" echo " gvm offline <enable|disable>" echo "" echo " commands:" echo " install or i [candidate] [version]" echo " uninstall or rm [candidate] <version>" echo " list or ls [candidate]" ech...
Update help to reflect new mnemonics.
Update help to reflect new mnemonics.
Shell
apache-2.0
skpal/sdkman-cli,DealerDotCom/gvm-cli,DealerDotCom/gvm-cli,GsusRecovery/sdkman-cli,skpal/sdkman-cli,gvmtool/gvm-cli,nobeans/gvm-cli,GsusRecovery/sdkman-cli,jbovet/gvm,nobeans/gvm-cli,sdkman/sdkman-cli,busches/gvm-cli,shanman190/sdkman-cli
shell
## Code Before: function __gvmtool_help { echo "" echo "Usage: gvm <command> <candidate> [version]" echo " gvm offline <enable|disable>" echo "" echo " command : install, uninstall, list, use, current, version, default, selfupdate, broadcast, help, offline" echo " candidate : groovy, grails, grif...
63b68df9f3a8a94acdf73b7457ccf7dd5c65744d
.github/workflows/unity-build-cafemap.yml
.github/workflows/unity-build-cafemap.yml
name: Build CafeMap on: workflow_dispatch: jobs: activate: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v1 - uses: actions/cache@v1.1.0 with: path: cafe-map/client/unity/Library key: Library-CafeMap-Android resto...
name: Build CafeMap on: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v1 - uses: actions/cache@v1.1.0 with: path: cafe-map/client/unity/Library key: Library-CafeMap-Android restore-...
Fix build.yml and add android keys
Fix build.yml and add android keys
YAML
mit
curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack,curioswitch/curiostack
yaml
## Code Before: name: Build CafeMap on: workflow_dispatch: jobs: activate: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v1 - uses: actions/cache@v1.1.0 with: path: cafe-map/client/unity/Library key: Library-CafeMap-Android...
84de65fd751d874602dadcec006d8f5f5e4029d5
.travis.yml
.travis.yml
os: osx osx_image: xcode8.3 after_success: - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN branches: only: - release - dev script: - fastlane beta
os: osx osx_image: xcode8.3 before_install: - sudo gem install xcov after_success: - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN branches: only: - release - dev script: - fastlane beta
Install xcove tool before project is build
CI: Install xcove tool before project is build
YAML
mit
3DprintFIT/octoprint-ios-client,3DprintFIT/octoprint-ios-client,3DprintFIT/octoprint-ios-client,3DprintFIT/octoprint-ios-client,3DprintFIT/octoprint-ios-client
yaml
## Code Before: os: osx osx_image: xcode8.3 after_success: - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN branches: only: - release - dev script: - fastlane beta ## Instruction: CI: Install xcove tool before project is build ## Code After: os: osx osx_image: xcode8.3 before_install: -...
4dd316f42c39479a673aa171a1ea376bd87087c7
README.md
README.md
The official Jekyll version of the Clean Blog theme by [Start Bootstrap](http://startbootstrap.com/). ###[View Live Demo &rarr;](http://ironsummitmedia.github.io/startbootstrap-clean-blog-jekyll/) ## Before You Begin In the _config.yml file, the base URL is set to /startbootstrap-clean-blog-jekyll which is this the...
The official Jekyll version of the Clean Blog theme by [Start Bootstrap](http://startbootstrap.com/). ###[View Live Demo &rarr;](http://caseman72.github.io/startbootstrap-clean-blog-jekyll/) ## Before You Begin In the _config.yml file, the base URL is set to /startbootstrap-clean-blog-jekyll which is this themes gh...
Fix Demo link to mine
Fix Demo link to mine
Markdown
apache-2.0
caseman72/startbootstrap-clean-blog-jekyll,caseman72/startbootstrap-clean-blog-jekyll,caseman72/startbootstrap-clean-blog-jekyll
markdown
## Code Before: The official Jekyll version of the Clean Blog theme by [Start Bootstrap](http://startbootstrap.com/). ###[View Live Demo &rarr;](http://ironsummitmedia.github.io/startbootstrap-clean-blog-jekyll/) ## Before You Begin In the _config.yml file, the base URL is set to /startbootstrap-clean-blog-jekyll w...
bc0b635ae47d05b3f83e73c6f0645fff9f76d5c7
app/components/comment-thread/template.hbs
app/components/comment-thread/template.hbs
<div local-class="root"> {{#each (filter-by 'blockId' blockId comments) as |comment|}} <div local-class="item"> {{comment-thread/item comment=comment removeComment=(perform removeComment comment)}} </div> {{/each}} {{comment-thread/create-item createComment=(perform createComment)}} </div>
<div local-class="root"> {{#each blockComments as |comment|}} <div local-class="item"> {{comment-thread/item comment=comment removeComment=(perform removeComment comment)}} </div> {{/each}} {{comment-thread/create-item createComment=(perform createComment)}} </div>
Use passed down blockComments instead of computing the value at comment-thread
Use passed down blockComments instead of computing the value at comment-thread
Handlebars
apache-2.0
usecanvas/web-v2,usecanvas/web-v2,usecanvas/web-v2
handlebars
## Code Before: <div local-class="root"> {{#each (filter-by 'blockId' blockId comments) as |comment|}} <div local-class="item"> {{comment-thread/item comment=comment removeComment=(perform removeComment comment)}} </div> {{/each}} {{comment-thread/create-item createComment=(perform createComment)}} ...
f15d43080d44ae207640061a4e37752e161574b1
.travis.yml
.travis.yml
sudo: false addons: postgresql: '9.4' sauce_connect: true language: python python: - 3.5 services: - postgresql - redis-server env: global: - TESTING=True - BASE_URL=http://localhost:5000 - TEST_DATABASE_URL=postgres://postgres@localhost:5432/goodtables_test - BROKER_URL=redis://loc...
sudo: false addons: postgresql: '9.4' language: python python: - 3.5 services: - postgresql - redis-server env: global: - TESTING=True - BASE_URL=http://localhost:5000 - TEST_DATABASE_URL=postgres://postgres@localhost:5432/goodtables_test - BROKER_URL=redis://localhost:6379/10 - R...
Disable sauce labs for now
Disable sauce labs for now
YAML
agpl-3.0
frictionlessdata/goodtables.io,frictionlessdata/goodtables.io,frictionlessdata/goodtables.io,frictionlessdata/goodtables.io
yaml
## Code Before: sudo: false addons: postgresql: '9.4' sauce_connect: true language: python python: - 3.5 services: - postgresql - redis-server env: global: - TESTING=True - BASE_URL=http://localhost:5000 - TEST_DATABASE_URL=postgres://postgres@localhost:5432/goodtables_test - BROKER...
13a79e69dcda03307798f8bfa7f260b057574ace
docs/modules.rst
docs/modules.rst
======== Modules ======== regressors.plots ---------------- .. autosummary:: :toctree: generated/ regressors.plots.plot_residuals regressors.stats ---------------- .. autosummary:: :toctree: generated/ regressors.stats.residuals
======== Modules ======== regressors.plots ---------------- .. autosummary:: :toctree: generated/ regressors.plots.plot_residuals regressors.stats ---------------- .. autosummary:: :toctree: generated/ regressors.stats.residuals regressors.regressors --------------------- .. autosummary:: :toctre...
Update Modules doc to include PCR class
Update Modules doc to include PCR class
reStructuredText
isc
nsh87/regressors
restructuredtext
## Code Before: ======== Modules ======== regressors.plots ---------------- .. autosummary:: :toctree: generated/ regressors.plots.plot_residuals regressors.stats ---------------- .. autosummary:: :toctree: generated/ regressors.stats.residuals ## Instruction: Update Modules doc to include PCR class...
8bb4bf3c9e944239e4c69a096db14390c512079b
lib/postmark-rails.rb
lib/postmark-rails.rb
require 'action_mailer' require 'postmark' require 'postmark-rails/delivery_method' module PostmarkRails extend self def auto_detect_and_install if ActionMailer::Base.respond_to?(:add_delivery_method) install_in_rails else install_in_legacy_rails end end def install_in_legacy_rails ...
require 'action_mailer' require 'postmark' module PostmarkRails extend ActiveSupport::Autoload extend self autoload :DeliveryMethod, 'postmark-rails/delivery_method' def auto_detect_and_install if ActionMailer::Base.respond_to?(:add_delivery_method) install_in_rails else install_in_legacy...
Use ActiveSupport::Autoload so that we don't even load the PostmarkRails::DeliveryMethod module in newer versions.
Use ActiveSupport::Autoload so that we don't even load the PostmarkRails::DeliveryMethod module in newer versions.
Ruby
mit
mattbrictson/postmark-rails,mattbrictson/postmark-rails,wildbit/postmark-rails,wildbit/postmark-rails
ruby
## Code Before: require 'action_mailer' require 'postmark' require 'postmark-rails/delivery_method' module PostmarkRails extend self def auto_detect_and_install if ActionMailer::Base.respond_to?(:add_delivery_method) install_in_rails else install_in_legacy_rails end end def install_in...
a6b136c11ac805f1b0fbcee53eb1cb74c946e329
content/showcase/nike-just-do-it.md
content/showcase/nike-just-do-it.md
--- title: Nike Just Do It date: 2018-09-14 16:20:09 -0400 related_tools: - tool/gatsby.md website: https://justdoit.nike.com/ repo: '' creator: [] image_path: "/uploads/showcase/" images: - "/uploads/showcase-nike-gatsby.jpg" ---
--- title: Nike Just Do It date: 2018-09-14 16:20:09 -0400 related_tools: - tool/gatsby.md - tool/datocms.md website: https://justdoit.nike.com/ repo: '' creator: [] image_path: "/uploads/showcase/" images: - "/uploads/showcase-nike-gatsby.jpg" ---
Add dato to showcase item
Add dato to showcase item
Markdown
mit
budparr/thenewdynamic,budparr/thenewdynamic,budparr/thenewdynamic,thenewdynamic-org/thenewdynamic.org,thenewdynamic-org/thenewdynamic.org
markdown
## Code Before: --- title: Nike Just Do It date: 2018-09-14 16:20:09 -0400 related_tools: - tool/gatsby.md website: https://justdoit.nike.com/ repo: '' creator: [] image_path: "/uploads/showcase/" images: - "/uploads/showcase-nike-gatsby.jpg" --- ## Instruction: Add dato to showcase item ## Code After: --- title: Ni...
a01bd737ffaa5bea4524b5dc65e27f7d43d9435e
README.rst
README.rst
=============== python-webuntis =============== .. image:: https://travis-ci.org/untitaker/python-webuntis.png?branch=master :target: https://travis-ci.org/untitaker/python-webuntis .. image:: https://coveralls.io/repos/untitaker/python-webuntis/badge.png :target: https://coveralls.io/r/untitaker/python-webun...
===================================== This project is no longer maintained. ===================================== I moved on and do no longer use it. See `the relevant ticket <https://github.com/untitaker/python-webuntis/issues/3>`_. | | | | | | =============== python-webuntis =============== .. image:: https://tra...
Add huge warning about maintenance
Add huge warning about maintenance
reStructuredText
bsd-3-clause
maphy-psd/python-webuntis,untitaker/python-webuntis
restructuredtext
## Code Before: =============== python-webuntis =============== .. image:: https://travis-ci.org/untitaker/python-webuntis.png?branch=master :target: https://travis-ci.org/untitaker/python-webuntis .. image:: https://coveralls.io/repos/untitaker/python-webuntis/badge.png :target: https://coveralls.io/r/untita...
1e8f9a95badc1e2b558bae7570ef9bc23f26a0df
pyhaystack/info.py
pyhaystack/info.py
__author__ = 'Christian Tremblay, @sjlongland, @sudo-Whateverman, Igor' __author_email__ = 'christian.tremblay@servisys.com' __version__ = '0.71.1.8.2' __license__ = 'LGPL'
__author__ = 'Christian Tremblay, Stuart J. Longland, @sudo-Whateverman, Igor' __author_email__ = 'christian.tremblay@servisys.com' __version__ = '0.72' __license__ = 'LGPL'
Modify version to 0.72 to mark change
Modify version to 0.72 to mark change Signed-off-by: Christian Tremblay <31ac1ca2e4859489ad6997067c1b3a4264642859@servisys.com>
Python
apache-2.0
ChristianTremblay/pyhaystack,vrtsystems/pyhaystack,ChristianTremblay/pyhaystack
python
## Code Before: __author__ = 'Christian Tremblay, @sjlongland, @sudo-Whateverman, Igor' __author_email__ = 'christian.tremblay@servisys.com' __version__ = '0.71.1.8.2' __license__ = 'LGPL' ## Instruction: Modify version to 0.72 to mark change Signed-off-by: Christian Tremblay <31ac1ca2e4859489ad6997067c1b3a426464285...
25f63f33d03b5c9141557b17cac0c442c19bbcec
WebSearch/src/main/res/layout/import_layout.xml
WebSearch/src/main/res/layout/import_layout.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ProgressBar android:id="@id/detail_progressBar" android:visibility="gone" android:layout_...
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <EditText android:id="@id/detail_fieldImportFromUrl" android:hint="@string/hint_import_url" ...
Change progressbar style in import layout
Change progressbar style in import layout
XML
apache-2.0
balesz/android-WebSearch,balesz/android-WebSearch
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ProgressBar android:id="@id/detail_progressBar" android:visibility="gone" ...
3a845a9a45d7b6d9c31664c50ee9b27cd5cbd670
mod/pythonauto/sendcode.php
mod/pythonauto/sendcode.php
<?php require_once "../../config.php"; require_once $CFG->dirroot."/pdo.php"; // Sanity checks $LTI = requireData(array('user_id', 'link_id', 'role','context_id')); $instructor = isInstructor($LTI); $user_id = $LTI['user_id']; $grade = 1.0; $code = $_POST['code']; $json = json_encode(array("code" => $code)); $retva...
<?php require_once "../../config.php"; require_once $CFG->dirroot."/pdo.php"; // Sanity checks $LTI = requireData(array('user_id', 'link_id', 'role','context_id')); $instructor = isInstructor($LTI); $user_id = $LTI['user_id']; $grade = 1.0; if ( ! isset($_POST['code']) ) { echo(json_encode(array("error" => "Miss...
Check for missing code variable.
Check for missing code variable.
PHP
apache-2.0
reysantos/tsugi,komizutama/tsugi,tsugiproject/tsugi,tsugiproject/tsugi,komizutama/tsugi,reysantos/tsugi,reysantos/tsugi,cvanlent/tsugi,JANQLIANGTSAI/tsugi,tsugiproject/tsugi,cvanlent/tsugi,komizutama/tsugi,tsugiproject/tsugi,cvanlent/tsugi,JANQLIANGTSAI/tsugi,JANQLIANGTSAI/tsugi,csev/tsugi
php
## Code Before: <?php require_once "../../config.php"; require_once $CFG->dirroot."/pdo.php"; // Sanity checks $LTI = requireData(array('user_id', 'link_id', 'role','context_id')); $instructor = isInstructor($LTI); $user_id = $LTI['user_id']; $grade = 1.0; $code = $_POST['code']; $json = json_encode(array("code" => ...
f8054636ef5cf071e855a8bc6897dd7f4e5f8cfa
JDBC/SelectValues.java
JDBC/SelectValues.java
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; public class SelectValues { public static void main(String[] args) throws SQLException{ Connection con=DBInfo2.getConnection(); String query="SELECT * FROM log...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; public class SelectValues { public static void main(String[] args) throws SQLException{ Connection con=DBInfo2.getConnection(); String query="SELECT * FROM log...
Select querry implementation with meta data
Select querry implementation with meta data
Java
mit
AlphaBAT69/Java-Programs
java
## Code Before: import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; public class SelectValues { public static void main(String[] args) throws SQLException{ Connection con=DBInfo2.getConnection(); String query="S...
201fc9a9d6f81ed3ae39f9d0512bb2221f241d8d
lib/active_job/stats/callbacks.rb
lib/active_job/stats/callbacks.rb
module ActiveJob module Stats module Callbacks extend ActiveSupport::Concern included do before_enqueue :after_enqueue_stats, if: :monitored after_enqueue :after_enqueue_stats, if: :monitored before_perform :before_perform_stats, if: :monitored after_perform :after_...
module ActiveJob module Stats module Callbacks extend ActiveSupport::Concern included do before_enqueue :after_enqueue_stats, if: :monitored after_enqueue :after_enqueue_stats, if: :monitored before_perform :before_perform_stats, if: :monitored after_perform :after_...
Use job instance's queue_name instead of class's
fix:dev: Use job instance's queue_name instead of class's Two good reasons: - The job instance can be enqueued with a different queue_name than its class normally has. - The job class can pass a Proc to queue_name to dynamically determine the name. The queue_name is still set on the job instance.
Ruby
mit
seuros/activejob-stats
ruby
## Code Before: module ActiveJob module Stats module Callbacks extend ActiveSupport::Concern included do before_enqueue :after_enqueue_stats, if: :monitored after_enqueue :after_enqueue_stats, if: :monitored before_perform :before_perform_stats, if: :monitored after_...
a5ab6b608f87bb22705f7ba99f74082f5c38b1a1
tests/Transaction/TransactionInputStateTest.php
tests/Transaction/TransactionInputStateTest.php
<?php namespace BitWasp\Bitcoin\Tests\Transaction; class TransactionInputStateTest { }
<?php namespace BitWasp\Bitcoin\Tests\Transaction; use BitWasp\Bitcoin\Bitcoin; use BitWasp\Bitcoin\Crypto\EcAdapter\EcAdapterFactory; use BitWasp\Bitcoin\Key\PrivateKeyFactory; use BitWasp\Bitcoin\Script\ScriptFactory; use BitWasp\Bitcoin\Tests\AbstractTestCase; use BitWasp\Bitcoin\Transaction\TransactionBuilderIn...
Add initial test of TransactionBuilderInputState
Add initial test of TransactionBuilderInputState
PHP
unlicense
Bit-Wasp/bitcoin-php,Bit-Wasp/bitcoin-php,afk11/bitcoin-php,blocktrail/bitcoin-php,afk11/bitcoin-php
php
## Code Before: <?php namespace BitWasp\Bitcoin\Tests\Transaction; class TransactionInputStateTest { } ## Instruction: Add initial test of TransactionBuilderInputState ## Code After: <?php namespace BitWasp\Bitcoin\Tests\Transaction; use BitWasp\Bitcoin\Bitcoin; use BitWasp\Bitcoin\Crypto\EcAdapter\EcAdapterF...
1f0050d57fdd72992ee9e6cc87e6fdf76b9f3c93
Build-Images.ps1
Build-Images.ps1
Param( [Parameter(Mandatory=$true)] [string] $Repo, [Parameter()] [string] $Version = '1.0.0-dev' ) $Components = @( 'api', 'sql-executor', 'provisioning', 'ui' ) $docker = Get-Command docker Write-Host 'Building images...' ForEach ($Component in $Components) { & $docker build -t...
Param( [Parameter(Mandatory=$true)] [string] $Repo, [Parameter()] [string] $Version = '1.0.0-dev', [Parameter()] [switch] $Deploy ) $Components = @( 'api', 'sql-executor', 'provisioning', 'ui' ) $docker = Get-Command docker Write-Host 'Building images...' ForEach ($Component...
Add deployment support to image-build script.
Add deployment support to image-build script.
PowerShell
mit
DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo,DimensionDataResearch/daas-demo
powershell
## Code Before: Param( [Parameter(Mandatory=$true)] [string] $Repo, [Parameter()] [string] $Version = '1.0.0-dev' ) $Components = @( 'api', 'sql-executor', 'provisioning', 'ui' ) $docker = Get-Command docker Write-Host 'Building images...' ForEach ($Component in $Components) { & ...
576af3b35d80de6b07c93bb4c5259431687da83c
examples/settings.json
examples/settings.json
{ "type": "settings", "deviceTime": "2014-02-17T12:12:12", "activeBasalSchedule": "standard", "basalSchedules": { "standard": [ { "rate": 0.8, "start": 0 }, { "rate": 0.75, "start": 3600000 }, ... ], "pattern a": [ { "rate": 0.95, "start": 0 }, { "rate": 0.9, "start": 3600000 }...
{ "type": "settings", "deviceTime": "2014-02-17T12:12:12", "activeBasalSchedule": "standard", "basalSchedules": { "standard": [ { "rate": 0.8, "start": 0 }, { "rate": 0.75, "start": 3600000 }, ... ], "pattern a": [ { "rate": 0.95, "start": 0 }, { "rate": 0.9, "start": 3600000 }...
Add units where units are provided
Add units where units are provided
JSON
bsd-2-clause
tidepool-org/deprecated-data-model,tidepool-org/deprecated-data-model,tidepool-org/deprecated-data-model,tidepool-org/deprecated-data-model
json
## Code Before: { "type": "settings", "deviceTime": "2014-02-17T12:12:12", "activeBasalSchedule": "standard", "basalSchedules": { "standard": [ { "rate": 0.8, "start": 0 }, { "rate": 0.75, "start": 3600000 }, ... ], "pattern a": [ { "rate": 0.95, "start": 0 }, { "rate": 0.9, "s...
e809e87fa3e40cf0f147c469759b238135a25e5e
README.md
README.md
TorrentUploader is a simple utility that allows you to upload **.torrent** files or **magnet** links to a headless uTorrent server from a remote client with a single click without logging into the WebUI Management console. It does this by associating itself .torrent files and magnet links and then using the uTorrent...
TorrentUploader is a simple utility that allows you to upload **.torrent** files or **magnet** links to a headless uTorrent server from a remote client with a single click without logging into the WebUI Management console. It does this by associating itself with .torrent files and magnet links on the client machine ...
Fix up readme a little bit
Fix up readme a little bit
Markdown
bsd-2-clause
thegrandpoobah/TorrentUploader
markdown
## Code Before: TorrentUploader is a simple utility that allows you to upload **.torrent** files or **magnet** links to a headless uTorrent server from a remote client with a single click without logging into the WebUI Management console. It does this by associating itself .torrent files and magnet links and then us...
15189b66b3cac5aea140af8e54468c1652252113
README.md
README.md
shadowcraft-vm ============== Vagrant configuration for running Shadowcraft-UI and Shadowcraft-Engine This configuration is originally based on https://github.com/mulderp/chef-rails-stack.
shadowcraft-vm ============== Vagrant configuration for running Shadowcraft-UI and Shadowcraft-Engine This configuration is originally based on https://github.com/mulderp/chef-rails-stack. ## Installation 1. Install Vagrant from http://vagrantup.com 2. Install Virtualbox from http://virtualbox.org 3. Clone this rep...
Update installation bits in the readme
Update installation bits in the readme
Markdown
mit
timwoj/shadowcraft-vm
markdown
## Code Before: shadowcraft-vm ============== Vagrant configuration for running Shadowcraft-UI and Shadowcraft-Engine This configuration is originally based on https://github.com/mulderp/chef-rails-stack. ## Instruction: Update installation bits in the readme ## Code After: shadowcraft-vm ============== Vagrant co...
bf461b7fb3f65ae1683f9a0f5beaf4da453cad3d
grunt/config/watch.coffee
grunt/config/watch.coffee
module.exports = (grunt) -> return { express: files: [ 'Gruntfile.coffee' 'server-src/*.coffee' 'config/*.yml' ] options: spawn: false tasks: ['copy:app', 'coffee:server', 'express:dev'] client: files: [ '<%= src %>/*.coffee' '<%= s...
module.exports = (grunt) -> return { express: files: [ 'Gruntfile.coffee' 'server-src/*.coffee' 'config/*.yml' ] options: spawn: false tasks: ['copy:app', 'coffee:server', 'express:dev'] client: files: [ '<%= src %>/*.coffee' '<%= s...
Handle css live reloading correctly.
Handle css live reloading correctly.
CoffeeScript
agpl-3.0
City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap,City-of-Helsinki/servicemap,vaaralav/servicemap
coffeescript
## Code Before: module.exports = (grunt) -> return { express: files: [ 'Gruntfile.coffee' 'server-src/*.coffee' 'config/*.yml' ] options: spawn: false tasks: ['copy:app', 'coffee:server', 'express:dev'] client: files: [ '<%= src %>/*.coffee...
4158399f50f5ec8f92e19c1e683c7ccebe32c109
.github/workflows/sentry_release.yml
.github/workflows/sentry_release.yml
name: sentry release on: push: branches: - release-*/** jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 # Not needed with a .ru...
name: sentry release on: push: branches: - release-*/** jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 # Not needed with a .ru...
Use make build for building SDKs
Use make build for building SDKs
YAML
apache-2.0
getsentry/raven-ruby
yaml
## Code Before: name: sentry release on: push: branches: - release-*/** jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 # Not n...
ef8a4696a0b5103f62ac2ae07b559a5f323f29ee
grails-app/services/especies/TaxonService.groovy
grails-app/services/especies/TaxonService.groovy
package especies import grails.transaction.Transactional @Transactional class TaxonService { List list(params) { params = params + [max: 50] return Taxon.list(params) } Taxon save(taxon) { taxon.save() } Taxon addGbifDetails(scientificName, sourceId, gbifId, gbifName) { Taxon taxon if(source...
package especies import grails.transaction.Transactional @Transactional class TaxonService { List list(params) { params = params + [max: 50] params = params + [sort: "scientificName", order: "asc"] return Taxon.list(params) } Taxon save(taxon) { taxon.save() } Taxon addGbifDetails(scientificNa...
Sort results by scientific name
Sort results by scientific name
Groovy
mit
unepwcmc/Taxonify,unepwcmc/Taxonify
groovy
## Code Before: package especies import grails.transaction.Transactional @Transactional class TaxonService { List list(params) { params = params + [max: 50] return Taxon.list(params) } Taxon save(taxon) { taxon.save() } Taxon addGbifDetails(scientificName, sourceId, gbifId, gbifName) { Taxon t...
f262a97eac03be09bc9a2f62e681a1337021f459
build_registry.sh
build_registry.sh
SRC="https://github.com/docker/distribution.git" COMMIT_ID=ece8e132bf6585815fdd00990f6215122c58fb3f CUR_DIR=`pwd` INSTALL_DIR="${CUR_DIR}/go.bld" BIN_DIR="${CUR_DIR}/go.bld/bin" mkdir -p ${BIN_DIR} GOPATH_BASE="${INSTALL_DIR}/src/github.com/docker" mkdir -p ${GOPATH_BASE} cd ${GOPATH_BASE} git clone ${SRC} cd distri...
build_type=${1} BUILD_TYPE=${build_type:-dynamic} SRC="https://github.com/docker/distribution.git" COMMIT_ID=ece8e132bf6585815fdd00990f6215122c58fb3f #Install git yum install -y git CUR_DIR=`pwd` INSTALL_DIR="${CUR_DIR}/go.bld" BIN_DIR="${CUR_DIR}/go.bld/bin" mkdir -p ${BIN_DIR} GOPATH_BASE="${INSTALL_DIR}/src...
Add option for both dynamic and static build
Add option for both dynamic and static build
Shell
apache-2.0
bpradipt/docker-build
shell
## Code Before: SRC="https://github.com/docker/distribution.git" COMMIT_ID=ece8e132bf6585815fdd00990f6215122c58fb3f CUR_DIR=`pwd` INSTALL_DIR="${CUR_DIR}/go.bld" BIN_DIR="${CUR_DIR}/go.bld/bin" mkdir -p ${BIN_DIR} GOPATH_BASE="${INSTALL_DIR}/src/github.com/docker" mkdir -p ${GOPATH_BASE} cd ${GOPATH_BASE} git clone $...
8acde49dee699c4055d930eb4bfb9916e884026f
app/events/model.js
app/events/model.js
var mongoose = require('mongoose'); var schema = require('validate'); var Event = mongoose.model('Event', { name: String, start: Date, end: Date, group: String, notify: Boolean }); var validate = function (event) { var test = schema({ name: { type: 'string', required: true, message: ...
var mongoose = require('mongoose'); var schema = require('validate'); var Event = mongoose.model('Event', { name: String, start: Date, end: Date, group: {type: String, enum: ['attendee', 'staff', 'admin'], default: 'attendee'}, notify: {type: Boolean, default: true} }); var validate = function (event) { v...
Fix validation issue on events
Fix validation issue on events
JavaScript
mit
hacksu/kenthackenough,hacksu/kenthackenough
javascript
## Code Before: var mongoose = require('mongoose'); var schema = require('validate'); var Event = mongoose.model('Event', { name: String, start: Date, end: Date, group: String, notify: Boolean }); var validate = function (event) { var test = schema({ name: { type: 'string', required: true,...
50c6cd94b52777bbd8ca2214b8547789432fcd28
pwil/README.md
pwil/README.md
PWIL: Primal Wasserstein Imitation Learning === Robert Dadashi, Leonard Hussenot, Matthieu Geist, Olivier Pietquin --- This directory contains the source code accompanying the paper: Primal Wasserstein Imitation Learning [https://arxiv.org/abs/2006.04678](https://arxiv.org/abs/2006.04678). # Dependencies PWIL is com...
PWIL: Primal Wasserstein Imitation Learning === Robert Dadashi, Leonard Hussenot, Matthieu Geist, Olivier Pietquin --- This directory contains the source code accompanying the paper: Primal Wasserstein Imitation Learning [https://arxiv.org/abs/2006.04678](https://arxiv.org/abs/2006.04678). # Dependencies PWIL is com...
Add instructions for downloading demonstrations.
Add instructions for downloading demonstrations. PiperOrigin-RevId: 361779790
Markdown
apache-2.0
google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,...
markdown
## Code Before: PWIL: Primal Wasserstein Imitation Learning === Robert Dadashi, Leonard Hussenot, Matthieu Geist, Olivier Pietquin --- This directory contains the source code accompanying the paper: Primal Wasserstein Imitation Learning [https://arxiv.org/abs/2006.04678](https://arxiv.org/abs/2006.04678). # Dependenc...
39cfba9ee0d896ad920238e739de7f6c1e2aa724
sql/tables/Block.sql
sql/tables/Block.sql
create table Block ( id serial, createdate timestamp not null, displayorder integer not null default 0, attachment integer null references Attachment(id), media integer null references Media(id), image integer null references Image(id), bodytext text null, primary key (id) );
create table Block ( id serial, createdate timestamp not null, displayorder integer not null default 0, attachment integer null references Attachment(id) on delete set null, media integer null references Media(id) on delete set null, image integer null references Image(id) on delete set null, bodytext text nul...
Add delete constraints for sub-objects for blocks.
Add delete constraints for sub-objects for blocks.
SQL
mit
silverorange/Building,gauthierm/Building
sql
## Code Before: create table Block ( id serial, createdate timestamp not null, displayorder integer not null default 0, attachment integer null references Attachment(id), media integer null references Media(id), image integer null references Image(id), bodytext text null, primary key (id) ); ## Instruction:...
9453e62399b9afd4b666f79dca312260e4208b38
app/views/admin/config/import_export.html.erb
app/views/admin/config/import_export.html.erb
<h1>Import/Export Configuration</h1> <fieldset> <legend>Export Configuration</legend> <div class="text-center"> <p class="muted">Download an export of your <em>currently published</em> configuration settings on this server.</p> <strong>Last Publish:</strong> <%= ConfigVersion.last_version %><br> <stron...
<h1>Import/Export Configuration</h1> <fieldset> <legend>Export Configuration</legend> <div class="text-center"> <p class="muted">Download an export of your <em>currently published</em> configuration settings on this server.</p> <strong>Last Publish:</strong> <%= ConfigVersion.last_version %><br> <stron...
Fix import/export page when no apis currently exist.
Fix import/export page when no apis currently exist.
HTML+ERB
mit
apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,cmc333333/api-umbrella-web,apinf/api-umbrella,NREL/api-umbrella,cmc333333/api-umbrella-web,johan--/api-umbrella-web,NREL/api-umbrella-web,johan--/api-umbrella-web,NREL/api-umbrella-web,NREL/api-umbrella,cmc333333/api-umbrella-web,johan--/api-umbrella-web,cmc333333...
html+erb
## Code Before: <h1>Import/Export Configuration</h1> <fieldset> <legend>Export Configuration</legend> <div class="text-center"> <p class="muted">Download an export of your <em>currently published</em> configuration settings on this server.</p> <strong>Last Publish:</strong> <%= ConfigVersion.last_version %...
ee49d26e40a0681fb72125d79190cc2ec939f55c
src/modules/map/saga.js
src/modules/map/saga.js
import {takeLatest} from 'redux-saga'; import {call, fork, put} from 'redux-saga/effects'; import {arrayOf} from 'normalizr'; import {receiveAddress} from './actions'; import {mapActions} from './constants'; import {receiveUnits, setFetchError} from '../unit/actions'; import {getFetchUnitsRequest} from '../unit/helpers...
import {takeLatest} from 'redux-saga'; import {call, fork, put} from 'redux-saga/effects'; import {arrayOf} from 'normalizr'; import {receiveAddress} from './actions'; import {mapActions} from './constants'; import {receiveUnits, setFetchError} from '../unit/actions'; import {getFetchUnitsRequest} from '../unit/helpers...
Remove unnecessary API call on location set.
Remove unnecessary API call on location set.
JavaScript
mit
nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map
javascript
## Code Before: import {takeLatest} from 'redux-saga'; import {call, fork, put} from 'redux-saga/effects'; import {arrayOf} from 'normalizr'; import {receiveAddress} from './actions'; import {mapActions} from './constants'; import {receiveUnits, setFetchError} from '../unit/actions'; import {getFetchUnitsRequest} from ...
6da980e2b56f245ff3c4be277ede0f93c5f174c0
util/clean-depend.pl
util/clean-depend.pl
use strict; while(<STDIN>) { print; last if /^# DO NOT DELETE THIS LINE/; } my %files; my $thisfile=""; while(<STDIN>) { my ($dummy, $file,$deps)=/^((.*):)? (.*)$/; $thisfile=$file if defined $file; next if !defined $deps; my @deps=split ' ',$deps; @deps=grep(!/^\//,@deps); @deps=gre...
use strict; while(<STDIN>) { print; last if /^# DO NOT DELETE THIS LINE/; } my %files; my $thisfile=""; while(<STDIN>) { my ($dummy, $file,$deps)=/^((.*):)? (.*)$/; my $origfile=""; $thisfile=$file if defined $file; next if !defined $deps; $origfile=$thisfile; $origfile=~s/\.o$/.c/; ...
Make sure the source file is included among the dependencies. This is the norm for 'gcc -M' but not for 'makedepend', and is merely introduced here to avoid commit wars.
Make sure the source file is included among the dependencies. This is the norm for 'gcc -M' but not for 'makedepend', and is merely introduced here to avoid commit wars.
Perl
apache-2.0
openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl
perl
## Code Before: use strict; while(<STDIN>) { print; last if /^# DO NOT DELETE THIS LINE/; } my %files; my $thisfile=""; while(<STDIN>) { my ($dummy, $file,$deps)=/^((.*):)? (.*)$/; $thisfile=$file if defined $file; next if !defined $deps; my @deps=split ' ',$deps; @deps=grep(!/^\//,@deps...
b8d330e27150a97e193f65bfe8a422d3420082ba
src/examples/22-vertex_shading/scene.cpp
src/examples/22-vertex_shading/scene.cpp
Scene::Scene() { } Scene::~Scene() { for(auto it = m_meshes.begin(); it != m_meshes.end(); ++it) { delete *it; } } bool Scene::load(const char* fileName) { Assimp::Importer importer; const aiScene* scene = importer.ReadFile(fileName, aiProcess_Triangulate | aiPro...
Scene::Scene() { } Scene::~Scene() { for(auto it = m_meshes.begin(); it != m_meshes.end(); ++it) { delete *it; } } bool Scene::load(const char* fileName) { Assimp::Importer importer; const aiScene* scene = importer.ReadFile(fileName, aiProcess_Triangulate | aiPro...
Fix potential memory leak in vertex shading example
Fix potential memory leak in vertex shading example
C++
mit
m-decoster/glExamples,m-decoster/glExamples
c++
## Code Before: Scene::Scene() { } Scene::~Scene() { for(auto it = m_meshes.begin(); it != m_meshes.end(); ++it) { delete *it; } } bool Scene::load(const char* fileName) { Assimp::Importer importer; const aiScene* scene = importer.ReadFile(fileName, aiProcess_Triangulate | ...
493794554779eb0b0f0eb7c5c14c3b8aa0df8a10
circle.yml
circle.yml
machine: environment: PROJECT_NAME: gopher-slack-bot CLUSTER_NAME: gopher-slack-bot CLOUDSDK_COMPUTE_ZONE: eu-west-1 DEBIAN_FRONTEND: noninteractive services: - docker dependencies: pre: - sudo pip install pyopenssl - sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update ...
machine: environment: PROJECT_NAME: gopher-slack-bot CLUSTER_NAME: gopher-slack-bot CLOUDSDK_COMPUTE_ZONE: eu-west-1 DEBIAN_FRONTEND: noninteractive services: - docker dependencies: pre: - sudo pip install pyopenssl - sudo apt-get install python-openssl - sudo /opt/google-cloud-sd...
Make sure we really install it
Make sure we really install it
YAML
apache-2.0
gopheracademy/gopher,gopheracademy/gopher
yaml
## Code Before: machine: environment: PROJECT_NAME: gopher-slack-bot CLUSTER_NAME: gopher-slack-bot CLOUDSDK_COMPUTE_ZONE: eu-west-1 DEBIAN_FRONTEND: noninteractive services: - docker dependencies: pre: - sudo pip install pyopenssl - sudo /opt/google-cloud-sdk/bin/gcloud --quiet compo...
9a5c17781178e8c97a4749e49374c3b4449c7387
tests/test_models.py
tests/test_models.py
from unittest import TestCase import unittest.mock from molecupy.structures import Model, AtomicStructure, SmallMolecule class ModelTest(TestCase): def setUp(self): self.small_molecule1 = unittest.mock.Mock(spec=SmallMolecule) self.small_molecule2 = unittest.mock.Mock(spec=SmallMolecule) class ...
from unittest import TestCase import unittest.mock from molecupy.structures import Model, AtomicStructure, SmallMolecule class ModelTest(TestCase): def setUp(self): self.small_molecule1 = unittest.mock.Mock(spec=SmallMolecule) self.small_molecule2 = unittest.mock.Mock(spec=SmallMolecule) class ...
Make small molecules read only
Make small molecules read only
Python
mit
samirelanduk/atomium,samirelanduk/atomium,samirelanduk/molecupy
python
## Code Before: from unittest import TestCase import unittest.mock from molecupy.structures import Model, AtomicStructure, SmallMolecule class ModelTest(TestCase): def setUp(self): self.small_molecule1 = unittest.mock.Mock(spec=SmallMolecule) self.small_molecule2 = unittest.mock.Mock(spec=SmallMol...
6284d330c64d3b8323032bc7a002349cc35f3a29
src/config.js
src/config.js
'use strict'; var load = require('../src/loader.js'); function config(params) { var cfg = false; if ('object' == typeof params) cfg = params; if ('string' == typeof params && (params.endsWith('.yaml') || params.endsWith('.yml'))) cfg = load.yaml(params); if ('string' == typeof params && params.endsWit...
'use strict'; var load = require('../src/loader.js'); function config(params) { var cfg = false; if ('object' == typeof params) cfg = params; if ('string' == typeof params && /\.ya?ml$/.test(params)) cfg = load.yaml(params); if ('string' == typeof params && /\.json$/.test(params)) cfg = load.json(para...
Change String.endsWith() calls with regex tests to make compatible with node 0.10+
Change String.endsWith() calls with regex tests to make compatible with node 0.10+
JavaScript
mit
mrajo/metalsmith-grep
javascript
## Code Before: 'use strict'; var load = require('../src/loader.js'); function config(params) { var cfg = false; if ('object' == typeof params) cfg = params; if ('string' == typeof params && (params.endsWith('.yaml') || params.endsWith('.yml'))) cfg = load.yaml(params); if ('string' == typeof params &...
21604376d2ca5b41c853faa78f96fd19b6f40f80
app/controllers/oauth_controller.rb
app/controllers/oauth_controller.rb
class OauthController < ApplicationController def create auth = request.env["omniauth.auth"] if auth.nil? || auth.blank? redirect_to root_path, :notice => "We can't access Twitter at this time. Please try again." end user = User.find_by_provider_and_uid(auth["provider"], auth["uid"]) if u...
class OauthController < ApplicationController def create auth = request.env["omniauth.auth"] if auth.nil? || auth.blank? redirect_to root_path, :notice => "We can't access Twitter at this time. Please try again." end user = User.find_by_provider_and_uid(auth["provider"], auth["uid"]) if u...
Remove loggers and add a notice to empty profile
Remove loggers and add a notice to empty profile
Ruby
mit
travisvalentine/POP,travisvalentine/POP,travisvalentine/POP
ruby
## Code Before: class OauthController < ApplicationController def create auth = request.env["omniauth.auth"] if auth.nil? || auth.blank? redirect_to root_path, :notice => "We can't access Twitter at this time. Please try again." end user = User.find_by_provider_and_uid(auth["provider"], auth["...
910d9dba82fae24b7fd2b3167eddf69bb4e4ef71
config/database.yml
config/database.yml
default: &default host: <%= Rails.application.secrets[:database][:host] %> adapter: postgresql encoding: UTF8 database: <%= Rails.application.secrets[:database][:name] %> pool: 10 reaping_frequency: 30 username: <%= Rails.application.secrets[:database][:username] %> password: <%= Rails.application.secre...
default: &default host: <%= Rails.application.secrets[:database][:host] %> adapter: postgresql encoding: UTF8 database: <%= Rails.application.secrets[:database][:name] %> pool: 10 reaping_frequency: 30 development: *default username: <%= Rails.application.secrets[:database][:username] %> password: <%= ...
Move username and password to avoid production conflict
Move username and password to avoid production conflict
YAML
mit
ajsharma/monologue,ajsharma/monologue,ajsharma/monologue,ajsharma/monologue
yaml
## Code Before: default: &default host: <%= Rails.application.secrets[:database][:host] %> adapter: postgresql encoding: UTF8 database: <%= Rails.application.secrets[:database][:name] %> pool: 10 reaping_frequency: 30 username: <%= Rails.application.secrets[:database][:username] %> password: <%= Rails.a...
169be4228e077edac91ab61000e424b5e1d45a9b
demos/glyph_paint/side_pane.cpp
demos/glyph_paint/side_pane.cpp
using namespace cppurses; namespace demos { namespace glyph_paint { Side_pane::Side_pane() { this->width_policy.fixed(16); space1.wallpaper = L'─'; space2.wallpaper = L'─'; glyph_select.height_policy.preferred(6); color_select_stack.height_policy.fixed(3); for (auto& child : color_select_s...
using namespace cppurses; namespace demos { namespace glyph_paint { Side_pane::Side_pane() { this->width_policy.fixed(16); space1.wallpaper = L'─'; space2.wallpaper = L'─'; glyph_select.height_policy.preferred(6); color_select_stack.height_policy.fixed(3); show_glyph.height_policy.fixed(1)...
Remove duplicate brush color set in glyph paint cycle box.
Remove duplicate brush color set in glyph paint cycle box.
C++
mit
a-n-t-h-o-n-y/CPPurses
c++
## Code Before: using namespace cppurses; namespace demos { namespace glyph_paint { Side_pane::Side_pane() { this->width_policy.fixed(16); space1.wallpaper = L'─'; space2.wallpaper = L'─'; glyph_select.height_policy.preferred(6); color_select_stack.height_policy.fixed(3); for (auto& child ...
8ca3a0ca80293baa3af205db69a8eeee8dd736be
test/Driver/cuda-no-sanitizers.cu
test/Driver/cuda-no-sanitizers.cu
// Check that -fsanitize=foo doesn't get passed down to device-side // compilation. // // REQUIRES: clang-driver // // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \ // RUN: FileCheck %s // CHECK-NOT: error: // CHECK-DAG: "-fcuda-is-device" // CHECK-NOT: "-fsanitize...
// Check that -fsanitize=foo doesn't get passed down to device-side // compilation. // // REQUIRES: clang-driver // // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \ // RUN: FileCheck %s // CHECK-NOT: error: unsupported option '-fsanitize=address' // CHECK-DAG: "-fc...
Fix faulty test from rL288448
[CUDA] Fix faulty test from rL288448 Summary: The test introduced by rL288448 is currently failing because unimportant but unexpected errors appear as output from a test compile line. This patch looks for a more specific error message, in order to avoid false positives. Reviewers: jlebar Subscribers: cfe-commits Di...
Cuda
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
cuda
## Code Before: // Check that -fsanitize=foo doesn't get passed down to device-side // compilation. // // REQUIRES: clang-driver // // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \ // RUN: FileCheck %s // CHECK-NOT: error: // CHECK-DAG: "-fcuda-is-device" // CHECK-...
879802a394c17774c97d0c5583cc823e4e19a723
app/js/arethusa.core/language_settings.js
app/js/arethusa.core/language_settings.js
"use strict"; angular.module('arethusa.core').service('languageSettings', [ 'documentStore', function(documentStore) { var self = this; this.languageSpecifics = { 'ara' : { name: 'Arabic', lang: 'ar', leftToRight: false, font: 'Amiri' }, 'grc' : { ...
"use strict"; angular.module('arethusa.core').service('languageSettings', [ 'documentStore', function(documentStore) { var self = this; this.languageSpecifics = { 'ara' : { name: 'Arabic', lang: 'ar', leftToRight: false, font: 'Amiri' }, 'grc' : { ...
Refactor languageSettings and add Hebrew
Refactor languageSettings and add Hebrew Allow to set a language setting specifically.
JavaScript
mit
fbaumgardt/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa
javascript
## Code Before: "use strict"; angular.module('arethusa.core').service('languageSettings', [ 'documentStore', function(documentStore) { var self = this; this.languageSpecifics = { 'ara' : { name: 'Arabic', lang: 'ar', leftToRight: false, font: 'Amiri' }, 'g...
6ac80051abae652d3f07fbf2738e5920d24de3a7
metadata/com.simplemobiletools.applauncher.txt
metadata/com.simplemobiletools.applauncher.txt
Categories:System License:Apache2 Web Site: Source Code:https://github.com/SimpleMobileTools/Simple-App-Launcher Issue Tracker:https://github.com/SimpleMobileTools/Simple-App-Launcher/issues Changelog:https://github.com/SimpleMobileTools/Simple-App-Launcher/blob/HEAD/CHANGELOG.md Auto Name:Simple App Launcher Summary:...
Categories:System License:Apache2 Web Site: Source Code:https://github.com/SimpleMobileTools/Simple-App-Launcher Issue Tracker:https://github.com/SimpleMobileTools/Simple-App-Launcher/issues Changelog:https://github.com/SimpleMobileTools/Simple-App-Launcher/blob/HEAD/CHANGELOG.md Auto Name:Simple App Launcher Summary:...
Update Simple App Launcher to 1.4 (4)
Update Simple App Launcher to 1.4 (4)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:System License:Apache2 Web Site: Source Code:https://github.com/SimpleMobileTools/Simple-App-Launcher Issue Tracker:https://github.com/SimpleMobileTools/Simple-App-Launcher/issues Changelog:https://github.com/SimpleMobileTools/Simple-App-Launcher/blob/HEAD/CHANGELOG.md Auto Name:Simple App L...
40688413e59aaabd4a92dba4d2f402fb42fee143
1-multiples-of-3-and-5.py
1-multiples-of-3-and-5.py
from itertools import chain def threes_and_fives_gen(num=1000): for i in range(num): if i % 3 == 0 or i % 5 == 0: yield i def threes_and_fives_fun(n): return set(chain(range(3, n+1, 3), range(5, n+1, 5))) def solve(n): return sum( filter(lambda x: x%3==0 or x%5==0, ...
from itertools import chain def threes_and_fives_gen(num=1000): for i in range(num): if i % 3 == 0 or i % 5 == 0: yield i def threes_and_fives_fun(n): return set(chain(range(3, n+1, 3), range(5, n+1, 5))) def solve(n): return sum( filter(lambda x: x%3==0 or x%5==0, ...
Add gen exp solution to 1
Add gen exp solution to 1
Python
mit
dawran6/project-euler
python
## Code Before: from itertools import chain def threes_and_fives_gen(num=1000): for i in range(num): if i % 3 == 0 or i % 5 == 0: yield i def threes_and_fives_fun(n): return set(chain(range(3, n+1, 3), range(5, n+1, 5))) def solve(n): return sum( filter(lambda x: x%3==0 or x%5...
dc01d50974784f9a2ece241dc7ef7c743db10e65
src/javascript/binary/pages/chartapp.js
src/javascript/binary/pages/chartapp.js
(function () { 'use strict'; var isMac = /Mac/i.test(navigator.platform), isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent), isAndroid = /Android/i.test(navigator.userAgent), isWindowsPhone = /Windows Phone/i.test(navigator.userAgent), isJavaInstalled = (deployJava.getJREs(...
(function () { 'use strict'; var isMac = /Mac/i.test(navigator.platform), isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent), isAndroid = /Android/i.test(navigator.userAgent), isWindowsPhone = /Windows Phone/i.test(navigator.userAgent), isJavaInstalled = (deployJava.getJREs(...
Fix Java chart app detection logic
Fix Java chart app detection logic
JavaScript
apache-2.0
massihx/binary-static,einhverfr/binary-static,borisyankov/binary-static,animeshsaxena/binary-static,massihx/binary-static,tfoertsch/binary-static,einhverfr/binary-static,junbon/binary-static-www2,tfoertsch/binary-static,borisyankov/binary-static,massihx/binary-static,animeshsaxena/binary-static,animeshsaxena/binary-sta...
javascript
## Code Before: (function () { 'use strict'; var isMac = /Mac/i.test(navigator.platform), isIOS = /iPhone|iPad|iPod/i.test(navigator.userAgent), isAndroid = /Android/i.test(navigator.userAgent), isWindowsPhone = /Windows Phone/i.test(navigator.userAgent), isJavaInstalled = (dep...
d12e99cc2e5e7d4240bb37ffcc658253fb166596
app/Http/Controllers/Admin/TournamentPoolController.php
app/Http/Controllers/Admin/TournamentPoolController.php
<?php namespace App\Http\Controllers\Admin; use App\Pool; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class TournamentPoolController extends Controller { /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id ...
<?php namespace App\Http\Controllers\Admin; use App\Pool; use App\Contender; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class TournamentPoolController extends Controller { /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @...
Set pool to finished and set contenders for next pools with team ids
Set pool to finished and set contenders for next pools with team ids
PHP
mit
CPNV-ES/Joutes,CPNV-ES/Joutes,CPNV-ES/Joutes,CPNV-ES/Joutes
php
## Code Before: <?php namespace App\Http\Controllers\Admin; use App\Pool; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class TournamentPoolController extends Controller { /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @par...
4e26388f18bacff792ad5a97b4fb815ee72f8cec
.travis.yml
.travis.yml
language: ruby before_install: - gem install bundler -v '= 1.5.1' # http://changelog.travis-ci.com/post/71633370723/mri-ruby-2-1-0-and-jruby-1-7-9-available before_script: - ./spec/setup/arangodb.sh rvm: - 1.9.3 - 2.0.0 - 2.1.0 - jruby-19mode - jruby-head - rbx-2.2.3 - ruby-head env: - VERSION=1.4.4...
language: ruby before_install: - gem install bundler -v '= 1.5.1' # http://changelog.travis-ci.com/post/71633370723/mri-ruby-2-1-0-and-jruby-1-7-9-available before_script: - ./spec/setup/arangodb.sh rvm: - 1.9.3 - 2.0.0 - 2.1.0 - jruby-19mode - jruby-head - rbx-2.2.3 - ruby-head env: - VERSION=1.4.4...
Allow failure on 2.1.0 for now
Allow failure on 2.1.0 for now It segfaults since I upgraded mutant and unparser to the newest version. A ticket has been created. https://github.com/mbj/mutant/issues/151
YAML
apache-2.0
triAGENS/ashikawa-core,XescuGC/ashikawa-core,triAGENS/ashikawa-core,XescuGC/ashikawa-core
yaml
## Code Before: language: ruby before_install: - gem install bundler -v '= 1.5.1' # http://changelog.travis-ci.com/post/71633370723/mri-ruby-2-1-0-and-jruby-1-7-9-available before_script: - ./spec/setup/arangodb.sh rvm: - 1.9.3 - 2.0.0 - 2.1.0 - jruby-19mode - jruby-head - rbx-2.2.3 - ruby-head env: ...
2302f2eb9f231cfa7cf2eb8554d64e26e8f40c75
README.md
README.md
Reddit Bot for converting Rick &amp; Morty Schmeckles to USD
Reddit Bot for converting Rick &amp; Morty Schmeckles to USD See comment history for [/u/SchmeckleBot](https://www.reddit.com/user/SchmeckleBot/)
Add link to reddit user
Add link to reddit user
Markdown
mit
Elucidation/schmeckle_bot,Elucidation/schmeckle_bot
markdown
## Code Before: Reddit Bot for converting Rick &amp; Morty Schmeckles to USD ## Instruction: Add link to reddit user ## Code After: Reddit Bot for converting Rick &amp; Morty Schmeckles to USD See comment history for [/u/SchmeckleBot](https://www.reddit.com/user/SchmeckleBot/)
5440fd3816a13b51cfdaf2019eee796ad801d25b
.travis.yml
.travis.yml
language: python python: - 2.6 - 2.7 - 3.2 - 3.3 before_install: - easy_install -q pyzmq install: - python setup.py install -q script: - if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then iptest -w /tmp; fi - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]]; then iptest3 -w /tmp; fi
language: python python: - 2.6 - 2.7 - 3.2 - 3.3 before_install: - easy_install -q pyzmq - easy_install pygments - easy_install jinja2 - easy_install markdown - easy_install sphinx install: - python setup.py install -q script: - if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; the...
Add nbconvert dependencies to TravisCI config
Add nbconvert dependencies to TravisCI config
YAML
bsd-3-clause
ipython/ipython,ipython/ipython
yaml
## Code Before: language: python python: - 2.6 - 2.7 - 3.2 - 3.3 before_install: - easy_install -q pyzmq install: - python setup.py install -q script: - if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then iptest -w /tmp; fi - if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]]; then iptest3 -w /tmp; fi...
7fe252be130d270d7421da2c7595a09159515cf8
core/WebItem.qml
core/WebItem.qml
Rectangle { signal clicked; property bool clickable: true; property bool hoverable: true; color: "transparent"; property bool hover; property string cursor; onCursorChanged: { this.element.css('cursor', value); } onClickableChanged: { if (value){ this.element.click(this.clicked.bind(this)) } els...
Rectangle { signal clicked; property bool hover; property bool clickable: true; property bool hoverable: true; property string cursor; color: "transparent"; onCursorChanged: { this.element.css('cursor', value) } onClickableChanged: { if (value) this.element.click(this.clicked.bind(this)) else this.e...
Set 'pointer' cursor as default for webItem + fix format.
Set 'pointer' cursor as default for webItem + fix format.
QML
mit
pureqml/qmlcore,pureqml/qmlcore,pureqml/qmlcore
qml
## Code Before: Rectangle { signal clicked; property bool clickable: true; property bool hoverable: true; color: "transparent"; property bool hover; property string cursor; onCursorChanged: { this.element.css('cursor', value); } onClickableChanged: { if (value){ this.element.click(this.clicked.bind(...
2598de5b89974f5345c4025dee425787cee61eb9
runs/templates/runs/runs_table.html
runs/templates/runs/runs_table.html
{% load static %} <table class="table table-bordered table-hover table-striped" id="runs_table"> <thead> <tr> <th>Id</th> <th>Test Name</th> <th>User</th> <th>Start</th> <th>End</th> <th>Environment</th> <th>Status</th> ...
{% load static %} <table class="table table-bordered table-hover table-striped" id="runs_table"> <thead> <tr> <th>Id</th> <th>Test Name</th> <th>User</th> <th>Start</th> <th>End</th> <th>Environment</th> <th>Status</th> ...
Fix invalid path for log in the table
Fix invalid path for log in the table
HTML
mit
jfelipefilho/test-manager,jfelipefilho/test-manager,jfelipefilho/test-manager
html
## Code Before: {% load static %} <table class="table table-bordered table-hover table-striped" id="runs_table"> <thead> <tr> <th>Id</th> <th>Test Name</th> <th>User</th> <th>Start</th> <th>End</th> <th>Environment</th> <th>...
d091c4da6c6eed0e5b31998a9b6507c9070aaaf0
usr/share/applications/dropbox-audit.desktop
usr/share/applications/dropbox-audit.desktop
[Desktop Entry] X-AppInstall-Package=gnome-terminal X-AppInstall-Section=main Type=Application Exec=/usr/bin/gnome-terminal --hide-menubar --working-directory=/home/rd --full-screen --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dropbox-audit --interactive --verbose Hidden=false X-MATE-Autostart-ena...
[Desktop Entry] X-AppInstall-Package=gnome-terminal X-AppInstall-Section=main Type=Application Exec=/usr/bin/gnome-terminal --hide-menubar --working-directory=/home/rd --full-screen --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dropbox-audit Hidden=false X-MATE-Autostart-enabled=false Name=Rivendel...
Drop the options, don't autostart.
Drop the options, don't autostart.
desktop
bsd-2-clause
opensourceradio/ram,opensourceradio/ram,opensourceradio/ram
desktop
## Code Before: [Desktop Entry] X-AppInstall-Package=gnome-terminal X-AppInstall-Section=main Type=Application Exec=/usr/bin/gnome-terminal --hide-menubar --working-directory=/home/rd --full-screen --title "Rivendell Dropbox Audit" --command /usr/local/bin/run-btd-dropbox-audit --interactive --verbose Hidden=false X-MA...
4a53a1de96180091517046a1d7121fd73187aa3b
locales/id/faq.properties
locales/id/faq.properties
faq_donate_link=donasi sekarang # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete...
faq_donate_link=donasi sekarang # Obsolete string, do not remove # Obsolete string, do not remove faq_item_1_header=Bagaimana cara saya menyumbang? # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remo...
Update Indonesian (id) localization of Fundraising
Pontoon: Update Indonesian (id) localization of Fundraising Localization authors: - Benny Chandra <bennychandra@gmail.com> - eljuno <eljunotrie_anggoro@yahoo.co.id> - Ahmad Risqi N <blockinggame@gmail.com>
INI
mpl-2.0
mozilla/donate.mozilla.org
ini
## Code Before: faq_donate_link=donasi sekarang # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not remove # Obsolete string, do not rem...
06415fc171525e0449da9739cc5ba7eba8ffa285
spec/fake_response/DoCapture/success.txt
spec/fake_response/DoCapture/success.txt
ACK=Success&AMT=440.00&AUTHORIZATIONID=2RG78938NK8989844&BUILD=8334781&CORRELATIONID=311611c111b48&CURRENCYCODE=BRL&EXCHANGERATE=0.426354&FEEAMT=13.16&ORDERTIME=2013-11-05T17%3A34%3A56Z&PARENTTRANSACTIONID=2RG78938NK8989844&PAYMENTSTATUS=Completed&PAYMENTTYPE=instant&PENDINGREASON=None&PROTECTIONELIGIBILITY=Ineligible&...
ACK=Success&AMT=440.00&AUTHORIZATIONID=2RG78938NK8989844&BUILD=8334781&CORRELATIONID=311611c111b48&CURRENCYCODE=BRL&EXCHANGERATE=0.426354&FEEAMT=13.16&ORDERTIME=2013-11-05T17%3A34%3A56Z&PARENTTRANSACTIONID=2RG78938NK8989844&PAYMENTSTATUS=Completed&PAYMENTTYPE=instant&PENDINGREASON=None&PROTECTIONELIGIBILITY=Ineligible&...
Remove TAXAMT and TRANSACTIONTYPE from faked DoCapture response
Remove TAXAMT and TRANSACTIONTYPE from faked DoCapture response From PayPal notification: PayPal is retiring three parameters in the Payment Information fields of the DoCapture API (NVP/SOAP) response: • TAXAMT • TRANSACTIONTYPE • RECEIPTID The parameters will be retired in May 2019. After this time, PayPal will n...
Text
mit
ianfleeton/paypal-express
text
## Code Before: ACK=Success&AMT=440.00&AUTHORIZATIONID=2RG78938NK8989844&BUILD=8334781&CORRELATIONID=311611c111b48&CURRENCYCODE=BRL&EXCHANGERATE=0.426354&FEEAMT=13.16&ORDERTIME=2013-11-05T17%3A34%3A56Z&PARENTTRANSACTIONID=2RG78938NK8989844&PAYMENTSTATUS=Completed&PAYMENTTYPE=instant&PENDINGREASON=None&PROTECTIONELIGIBI...
dad7aebc788123f05efb1cb8c09e265a17462474
lib/tech404logs/user.rb
lib/tech404logs/user.rb
require 'thread' module Tech404logs class User include DataMapper::Resource storage_names[:default] = 'users' property :id, String, key: true property :name, String property :real_name, String property :image, String, length: 255 def self.create_or_update(user) first_or_new(id: us...
require 'thread' module Tech404logs class User include DataMapper::Resource storage_names[:default] = 'users' property :id, String, key: true property :name, String property :real_name, String property :image, String, length: 255 property :opted_out, Boolean def self.create_or_updat...
Add opted_out field to DataMapper model
Add opted_out field to DataMapper model This shouldn't be necessary because I'm working to replace DataMapper with sequal, but for the sake of consistency.
Ruby
mit
zacstewart/tech404logs,zacstewart/tech404-search,zacstewart/tech404logs,zacstewart/tech404-search,zacstewart/tech404-search,zacstewart/tech404logs
ruby
## Code Before: require 'thread' module Tech404logs class User include DataMapper::Resource storage_names[:default] = 'users' property :id, String, key: true property :name, String property :real_name, String property :image, String, length: 255 def self.create_or_update(user) fir...
fb10d9fe8783b511a3e89d81b28d134858cafdab
lib/extensions/active_record/base.rb
lib/extensions/active_record/base.rb
module Extensions::ActiveRecord::Base def self.included(class_) class_.class_eval do def self.currently_valid where do (valid_from.nil? || valid_from <= DateTime.now) && (valid_to.nil? || valid_to >= DateTime.now) end end end end def currently_valid? ...
module Extensions::ActiveRecord::Base def self.included(class_) class_.class_eval do def self.currently_valid where do (valid_from.nil? || valid_from <= DateTime.now) && (valid_to.nil? || valid_to >= DateTime.now) end end end end # @return [Bool] True if ...
Add more helper functions for bounded objects
Add more helper functions for bounded objects
Ruby
mit
BenMQ/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,BenMQ/coursemology2,harryggg/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,harryggg/coursemology2,xzhflying/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,harryggg/coursemology2,cysjonathan/coursemology2,B...
ruby
## Code Before: module Extensions::ActiveRecord::Base def self.included(class_) class_.class_eval do def self.currently_valid where do (valid_from.nil? || valid_from <= DateTime.now) && (valid_to.nil? || valid_to >= DateTime.now) end end end end def curre...
90664d4ecb090906cc5fa095f9ba0da64bca2b6f
examples/example-1.html
examples/example-1.html
<html> <head> <script src="build/js/bundle.js"></script> <link rel="stylesheet" href="less/main.css"> </head> <body> <h1>Example One</h1> <section id="stage"> </section> <script> var stage = document.querySelector('#stage'); var options = ...
<html> <head> <script src="build/js/bundle.js"></script> <link rel="stylesheet" href="less/main.css"> </head> <body> <h1>Example One</h1> <section id="stage"> </section> <script> var stage = document.querySelector('#stage'); var options = ...
Use a longer live video
Use a longer live video
HTML
mit
kahnjw/stompscreen
html
## Code Before: <html> <head> <script src="build/js/bundle.js"></script> <link rel="stylesheet" href="less/main.css"> </head> <body> <h1>Example One</h1> <section id="stage"> </section> <script> var stage = document.querySelector('#stage'); ...