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
070d24c18b88d4e73c9cb75284c5915c5f68ffb0
classes/Infrastructure/Templating/TwigExtension.php
classes/Infrastructure/Templating/TwigExtension.php
<?php declare(strict_types=1); /** * Copyright (c) 2013-2017 OpenCFP * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/opencfp/opencfp */ namespace OpenCFP\Infrastructure\Templating; use OpenCFP\PathInter...
<?php declare(strict_types=1); /** * Copyright (c) 2013-2017 OpenCFP * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/opencfp/opencfp */ namespace OpenCFP\Infrastructure\Templating; use OpenCFP\PathInter...
Implement web assets in the twig function
Implement web assets in the twig function
PHP
mit
GrUSP/opencfp,GrUSP/opencfp,localheinz/opencfp,GrUSP/opencfp,PHPBenelux/opencfp,opencfp/opencfp,opencfp/opencfp,PHPBenelux/opencfp,localheinz/opencfp,opencfp/opencfp,PHPBenelux/opencfp,PHPBenelux/opencfp,localheinz/opencfp,localheinz/opencfp,GrUSP/opencfp
php
## Code Before: <?php declare(strict_types=1); /** * Copyright (c) 2013-2017 OpenCFP * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/opencfp/opencfp */ namespace OpenCFP\Infrastructure\Templating; use O...
11126a81a179dd0d40b081da8cd02d696cdc6c92
minmax.go
minmax.go
package missinggo import "reflect" func Max(_less interface{}, vals ...interface{}) interface{} { ret := reflect.ValueOf(vals[0]) less := reflect.ValueOf(_less) for _, _v := range vals[1:] { v := reflect.ValueOf(_v) out := less.Call([]reflect.Value{ret, v}) if out[0].Bool() { ret = v } } return ret.In...
package missinggo import "reflect" func Max(_less interface{}, vals ...interface{}) interface{} { ret := reflect.ValueOf(vals[0]) retType := ret.Type() less := reflect.ValueOf(_less) for _, _v := range vals[1:] { v := reflect.ValueOf(_v).Convert(retType) out := less.Call([]reflect.Value{ret, v}) if out[0].B...
Add MaxInt, and ensure the return type of Max matches the type of the first value
Add MaxInt, and ensure the return type of Max matches the type of the first value
Go
mit
anacrolix/missinggo
go
## Code Before: package missinggo import "reflect" func Max(_less interface{}, vals ...interface{}) interface{} { ret := reflect.ValueOf(vals[0]) less := reflect.ValueOf(_less) for _, _v := range vals[1:] { v := reflect.ValueOf(_v) out := less.Call([]reflect.Value{ret, v}) if out[0].Bool() { ret = v } ...
cfa45c1fb3d57daa68199bab7ec1a90dda004a29
lib/rock_rms/resources/payment_detail.rb
lib/rock_rms/resources/payment_detail.rb
module RockRMS class Client module PaymentDetail def list_payment_details(options = {}) res = get(payment_detail_path, options) Response::PaymentDetail.format(res) end def create_payment_detail(payment_type:, foreign_key: nil, card_type: nil, last_4: nil) options = { ...
module RockRMS class Client module PaymentDetail def list_payment_details(options = {}) res = get(payment_detail_path, options) Response::PaymentDetail.format(res) end def create_payment_detail(payment_type:, foreign_key: nil, card_type: nil, last_4: nil) options = { ...
Support for cash and check as payment types
Support for cash and check as payment types
Ruby
mit
taylorbrooks/rock_rms
ruby
## Code Before: module RockRMS class Client module PaymentDetail def list_payment_details(options = {}) res = get(payment_detail_path, options) Response::PaymentDetail.format(res) end def create_payment_detail(payment_type:, foreign_key: nil, card_type: nil, last_4: nil) ...
77590dd0fe3ac9ed07833b150dfeeb18b19d02be
config/routes.rb
config/routes.rb
Rails.application.routes.draw do get 'users/profile' get 'teams/index' #resolve these devise_for :users as :user do get 'users/profile', :to => 'users#profile', :as => :user_root end resources :teams # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.htm...
Rails.application.routes.draw do root 'users#profile' get 'users/profile' get 'teams/index' #resolve these devise_for :users as :user do get 'users/profile', :to => 'users#profile', :as => :user_root end resources :teams # For details on the DSL available within this file, see http://guides.rubyon...
Change landing page to automatically send to user sign in if user is not signed in, or to send to user profile if the user is signed in
Change landing page to automatically send to user sign in if user is not signed in, or to send to user profile if the user is signed in
Ruby
mit
blakeynwa/teamtracker,blakeynwa/teamtracker,blakeynwa/teamtracker
ruby
## Code Before: Rails.application.routes.draw do get 'users/profile' get 'teams/index' #resolve these devise_for :users as :user do get 'users/profile', :to => 'users#profile', :as => :user_root end resources :teams # For details on the DSL available within this file, see http://guides.rubyonrails...
9c855b783380843a5e41d0e5668e3c91e834ce3b
Cargo.toml
Cargo.toml
[package] name = "gitlab-api" version = "0.2.0" authors = ["Nicolas Bigaouette <nbigaouette@gmail.com>"] build = "build.rs" [features] default = ["serde_codegen"] unstable = ["serde_derive"] [build-dependencies] serde_codegen = { version = "0.8", optional = true } [dev-dependencies] env_logger = "0.3" [dependencies...
[package] name = "gitlab-api" version = "0.2.0" authors = ["Nicolas Bigaouette <nbigaouette@gmail.com>"] build = "build.rs" [features] default = ["serde_codegen"] unstable = ["serde_derive"] [build-dependencies] serde_codegen = { version = "0.8", optional = true } [dev-dependencies] env_logger = "0.3" [dependencies...
Enable lifetime support in `derive_builder`
Enable lifetime support in `derive_builder` Uses a fork at https://github.com/nbigaouette/rust-derive-builder that re-enables lifetime support. See https://github.com/colin-kiegel/rust-derive-builder/pull/29
TOML
apache-2.0
nbigaouette/gitlab-api-rs,nbigaouette/gitlab-api-rs
toml
## Code Before: [package] name = "gitlab-api" version = "0.2.0" authors = ["Nicolas Bigaouette <nbigaouette@gmail.com>"] build = "build.rs" [features] default = ["serde_codegen"] unstable = ["serde_derive"] [build-dependencies] serde_codegen = { version = "0.8", optional = true } [dev-dependencies] env_logger = "0.3...
dd187a70103008ce53f6ef1e93e460cd93749b71
test/files/run/type-tag-leak.scala
test/files/run/type-tag-leak.scala
import scala.reflect.runtime.universe import scala.reflect.runtime.universe._ class Test { def repo(): String = { val tag = implicitly[TypeTag[Array[Byte]]] val mirror = universe.runtimeMirror(Thread.currentThread().getContextClassLoader) tag.in(mirror).tpe.dealias.toString } } object Test extends Te...
import scala.reflect.runtime.universe import scala.reflect.runtime.universe._ import scala.tools.nsc.interpreter._ import java.io._ class Test { def repo(): String = { val tag = implicitly[TypeTag[Array[Byte]]] val mirror = universe.runtimeMirror(Thread.currentThread().getContextClassLoader) tag.in(mirr...
Fix semantic merge error in type tag test
Fix semantic merge error in type tag test
Scala
apache-2.0
lrytz/scala,lrytz/scala,scala/scala,scala/scala,scala/scala,scala/scala,scala/scala,lrytz/scala,scala/scala,lrytz/scala,lrytz/scala,lrytz/scala
scala
## Code Before: import scala.reflect.runtime.universe import scala.reflect.runtime.universe._ class Test { def repo(): String = { val tag = implicitly[TypeTag[Array[Byte]]] val mirror = universe.runtimeMirror(Thread.currentThread().getContextClassLoader) tag.in(mirror).tpe.dealias.toString } } object...
34d895499f9e2a9fe35937ad511fc1adbfd8c12d
tailor/main.py
tailor/main.py
import os import sys PARENT_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..') sys.path.append(PARENT_PATH) from antlr4 import FileStream, CommonTokenStream, ParseTreeWalker from tailor.listeners.mainlistener import MainListener from tailor.output.printer import Printer from tailor.swift.swiftlexe...
"""Perform static analysis on a Swift source file.""" import argparse import os import sys PARENT_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..') sys.path.append(PARENT_PATH) from antlr4 import FileStream, CommonTokenStream, ParseTreeWalker from tailor.listeners.mainlistener import MainListene...
Set up argparse to accept params and display usage
Set up argparse to accept params and display usage
Python
mit
sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor
python
## Code Before: import os import sys PARENT_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..') sys.path.append(PARENT_PATH) from antlr4 import FileStream, CommonTokenStream, ParseTreeWalker from tailor.listeners.mainlistener import MainListener from tailor.output.printer import Printer from tailor...
0cc1f7018d16621fe13c56fddcab64128282ffe0
docs/landing/layouts/partials/header/topRight.html
docs/landing/layouts/partials/header/topRight.html
<div> <div class="nav-items pull-right"> <a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a> <a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a> <a href...
<div> <div class="nav-items pull-right hidden-xs"> <a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a> <a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloads</a>...
Hide top nav on smaller screens
Docs: Hide top nav on smaller screens
HTML
apache-2.0
rozza/mongo-java-driver,jyemin/mongo-java-driver,jyemin/mongo-java-driver,rozza/mongo-java-driver,jsonking/mongo-java-driver,jsonking/mongo-java-driver
html
## Code Before: <div> <div class="nav-items pull-right"> <a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a> <a href="http://www.mongodb.org/downloads" data-toggle="tooltip" data-placement="bottom" title="Download MongoDB">Downloa...
fd40dbe851a1f76aabfa8728d1bfa2721033b45d
docs/index.rst
docs/index.rst
Welcome to zivinetz's documentation! ==================================== Zivinetz -------- .. toctree:: :maxdepth: 2 models Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`
Welcome to zivinetz's documentation! ==================================== Zivinetz -------- Dieses Dokument ist für Entwickler gedacht. Es setzt ein grundsätzliches Verständnis von Django und der rechtlichen Bestimmungen rund um den Zivildienst voraus. Im Zivinetz verwendet werden abgesehen von der Standard Library ...
Add an introductory statement to the docs
Add an introductory statement to the docs
reStructuredText
mit
matthiask/zivinetz,matthiask/zivinetz,matthiask/zivinetz,matthiask/zivinetz
restructuredtext
## Code Before: Welcome to zivinetz's documentation! ==================================== Zivinetz -------- .. toctree:: :maxdepth: 2 models Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` ## Instruction: Add an introductory statement to the docs ## Code After: W...
1299eb02cef1ba01f718860b90499de9ec7948c6
JavaScript/ajax-examples/README.md
JavaScript/ajax-examples/README.md
*** AJAX demos using JavaScript and XMLHttpRequest(). See the [live version](http://harperdev.com/code/ajax/) on harperdev.com. Return to [portfolio](~/)
*** AJAX demos using JavaScript and XMLHttpRequest(). See the [live version](http://harperdev.com/code/ajax/) on harperdev.com. Return to [codelab](https://github.com/michaeltharper/codelab)
Add link to codelab landing page
Add link to codelab landing page
Markdown
apache-2.0
michaeltharper/codelab,michaeltharper/codelab,michaeltharper/codelab
markdown
## Code Before: *** AJAX demos using JavaScript and XMLHttpRequest(). See the [live version](http://harperdev.com/code/ajax/) on harperdev.com. Return to [portfolio](~/) ## Instruction: Add link to codelab landing page ## Code After: *** AJAX demos using JavaScript and XMLHttpRequest(). See the [live version](htt...
7087f13c8bce6be8dc6306f505423b665594a733
templates/default/etc_multipath.erb
templates/default/etc_multipath.erb
defaults { user_friendly_names yes }
defaults { user_friendly_names yes path_grouping_policy failover }
Add failover as default for multipath-policy
Add failover as default for multipath-policy
HTML+ERB
apache-2.0
GSI-HPC/sys-chef-cookbook,GSI-HPC/sys-chef-cookbook,GSI-HPC/sys-chef-cookbook
html+erb
## Code Before: defaults { user_friendly_names yes } ## Instruction: Add failover as default for multipath-policy ## Code After: defaults { user_friendly_names yes path_grouping_policy failover }
85f63d0ed48473034aa473ff50077414d4a65b16
README.md
README.md
[![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square)](LICENSE.txt) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/mitsuse/bullet) [![Wercker](http://img.shields.io/wercker/ci/54de05bd3e143292231627b6.svg?style=flat-squa...
[![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square)](LICENSE.txt) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/mitsuse/bullet) [![Wercker](http://img.shields.io/wercker/ci/54de05bd3e143292231627b6.svg?style=flat-squa...
Update the short description. The "bullet" command send a meesage or a text.
Update the short description. The "bullet" command send a meesage or a text.
Markdown
mit
mitsuse/arcus,mitsuse/bullet
markdown
## Code Before: [![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg?style=flat-square)](LICENSE.txt) [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/mitsuse/bullet) [![Wercker](http://img.shields.io/wercker/ci/54de05bd3e143292231627b6.svg...
ad00d75cac0afe585853092d458a0d99c1373fc8
dlstats/fetchers/__init__.py
dlstats/fetchers/__init__.py
from . import eurostat, insee, world_bank, IMF, BEA
from .eurostat import Eurostat from .insee import Insee from .world_bank import WorldBank from .IMF import IMF from .BEA import BEA __all__ = ['Eurostat', 'Insee', 'WorldBank', 'IMF', 'BEA']
Clean up the fetchers namespace
Clean up the fetchers namespace
Python
agpl-3.0
MichelJuillard/dlstats,mmalter/dlstats,MichelJuillard/dlstats,Widukind/dlstats,mmalter/dlstats,MichelJuillard/dlstats,Widukind/dlstats,mmalter/dlstats
python
## Code Before: from . import eurostat, insee, world_bank, IMF, BEA ## Instruction: Clean up the fetchers namespace ## Code After: from .eurostat import Eurostat from .insee import Insee from .world_bank import WorldBank from .IMF import IMF from .BEA import BEA __all__ = ['Eurostat', 'Insee', 'WorldBank', 'IMF...
9be9d3be41f602b29b0044db05d808b81fc1179b
app/mailers/contact_mailer.rb
app/mailers/contact_mailer.rb
class ContactMailer < ActionMailer::Base default from: "contact@mail.cgbc-nc.com" def default_emails ['emb1234@gmail.com'] end def contact_email(name, email, comment) @name = name @email = email @comment = comment mail(to: default_emails, subject: "New question/comment from CGBC website") ...
class ContactMailer < ActionMailer::Base default from: "CGBC-Web <contact@mail.cgbc-nc.com>" def default_emails ['emb1234@gmail.com'] end def contact_email(name, email, comment) @name = name @email = email @comment = comment mail(to: default_emails, subject: "New question/comment from CGBC...
Clean up display name when sending emails
Clean up display name when sending emails
Ruby
mit
embell/CGBC-web,embell/CGBC-web,embell/CGBC-web
ruby
## Code Before: class ContactMailer < ActionMailer::Base default from: "contact@mail.cgbc-nc.com" def default_emails ['emb1234@gmail.com'] end def contact_email(name, email, comment) @name = name @email = email @comment = comment mail(to: default_emails, subject: "New question/comment from...
6a9403a547d823d280bd64539f4d8e3dcccbb9f6
cmake/external/glog.CMakeLists.txt
cmake/external/glog.CMakeLists.txt
cmake_minimum_required(VERSION 3.5) # simplify variable expansion cmake_policy(SET CMP0053 NEW) cmake_policy(SET CMP0010 NEW) project(glog-download NONE) include(ExternalProject) ExternalProject_Add(glog_project GIT_REPOSITORY https://github.com/google/glog GIT_TAG "master" #GIT_TAG "v0.3.5" SOURCE_DIR "${CMAKE_...
cmake_minimum_required(VERSION 3.5) # simplify variable expansion cmake_policy(SET CMP0053 NEW) cmake_policy(SET CMP0010 NEW) project(glog-download NONE) include(ExternalProject) ExternalProject_Add(glog_project GIT_REPOSITORY https://github.com/google/glog GIT_TAG "55cc27b6eca3d7906fc1a920ca95df7717deb4e7" #GIT_...
Fix glog tag so patch can apply
Fix glog tag so patch can apply
Text
apache-2.0
google/or-tools,or-tools/or-tools,or-tools/or-tools,google/or-tools,google/or-tools,or-tools/or-tools,google/or-tools,or-tools/or-tools,or-tools/or-tools,google/or-tools,google/or-tools,or-tools/or-tools
text
## Code Before: cmake_minimum_required(VERSION 3.5) # simplify variable expansion cmake_policy(SET CMP0053 NEW) cmake_policy(SET CMP0010 NEW) project(glog-download NONE) include(ExternalProject) ExternalProject_Add(glog_project GIT_REPOSITORY https://github.com/google/glog GIT_TAG "master" #GIT_TAG "v0.3.5" SOUR...
5ff983c1a464fc559cb13addb5316f99379472bf
tests/test_trip.py
tests/test_trip.py
import unittest from parsemypsa.storage import objects class TripTestCase(unittest.TestCase): def setUp(self): self.trip1 = objects.Trip.create(id=1, 1462731168, 200, 1000, 1, 0, 0) def test_mileage_calculation(self): self.trip1.calculate_mileage() self.assertEqual(self.trip1._milea...
import unittest from playhouse.test_utils import test_database from peewee import * from parsemypsa.storage import objects # Data for testing test_db = SqliteDatabase(':memory:') model_list = [objects.Alert, objects.VehiculeInformation, objects.Trip] class TripTestCase(unittest.TestCase): def setUp(self): ...
Fix unittests broken after ORM adoption
Fix unittests broken after ORM adoption
Python
mit
klenje/parsemypsa
python
## Code Before: import unittest from parsemypsa.storage import objects class TripTestCase(unittest.TestCase): def setUp(self): self.trip1 = objects.Trip.create(id=1, 1462731168, 200, 1000, 1, 0, 0) def test_mileage_calculation(self): self.trip1.calculate_mileage() self.assertEqual(s...
dad70b16a26ebf5da1e9771096c565654ff5cc5f
_includes/breadcrumbs.html
_includes/breadcrumbs.html
{% if page.categories and page.categories != empty %} <nav class="breadcrumbs"> <a href="{{ site.url }}">Home</a> <span class="divider">/</span> <a href="{{ site.url }}/{{ page.categories | first }}/">{{ page.categories | first | replace: '-',' ' | capitalize }}</a> <span class="divider">/</span> </nav><!-- /.b...
{% if page.categories and page.categories != empty %} <nav class="breadcrumbs"> <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="{{ site.url }}" itemprop="url"> <span itemprop="title">Home</span> </a> › <span itemscope itemtype="http://data-vocabulary.org/Breadcr...
Add microdate markup for breadcrumb rich snippets
Add microdate markup for breadcrumb rich snippets
HTML
mit
mtpatter/running-average,gitfvb/skinny-bones-jekyll,tobbio/tobbio.github.io,ReillyFarrell/portfolio,QN7Gardening/QN7Gardening.github.io,tobbio/tobbio.github.io,souliss/souliss.github.io,damienkilgannon/damienkilgannon.github.io,SaskOpenData/SaskOpenData.github.io,eliteconceptsmn/main-web,SaskOpenData/SaskOpenData.githu...
html
## Code Before: {% if page.categories and page.categories != empty %} <nav class="breadcrumbs"> <a href="{{ site.url }}">Home</a> <span class="divider">/</span> <a href="{{ site.url }}/{{ page.categories | first }}/">{{ page.categories | first | replace: '-',' ' | capitalize }}</a> <span class="divider">/</span> ...
273b04b12b38ee2c29863e04cb7c5f9b8dd7df62
src/CSharp/Windows/ClassLibrary/project.json
src/CSharp/Windows/ClassLibrary/project.json
{ "dependencies": { "NuProj.Common": "0.11.14-beta" }, "frameworks": { "net45": {} }, "runtimes": { "win": {} } }
{ "dependencies": { "NuProj.Common": { "version": "0.11.14-beta", "type": "build" } }, "frameworks": { "net45": {} }, "runtimes": { "win": {} } }
Make NuProj.Common a 'build' dependency
Make NuProj.Common a 'build' dependency
JSON
mit
CommonBuildToolset/CBT.Examples
json
## Code Before: { "dependencies": { "NuProj.Common": "0.11.14-beta" }, "frameworks": { "net45": {} }, "runtimes": { "win": {} } } ## Instruction: Make NuProj.Common a 'build' dependency ## Code After: { "dependencies": { "NuProj.Common": { "version": "0.11.14-beta", "type": "b...
b217dac895ccb5c32efb10f27e5f14415fcb802a
elisp/rest-client.el
elisp/rest-client.el
;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. (require 'url-vars) (require 'url-dav) (require 'json) (with-current-buffer (url-retrieve-synchronously "http://localhost...
;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. (require 'url-vars) (require 'url-dav) (require 'json) (with-current-buffer (url-retrieve-synchronously "http://localhost...
Fix emacs client to call API
Fix emacs client to call API
Emacs Lisp
epl-1.0
nchapon/carambar
emacs-lisp
## Code Before: ;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. (require 'url-vars) (require 'url-dav) (require 'json) (with-current-buffer (url-retrieve-synchronously "...
112b6a4008167c014e1691146a3c28e93e97fbdf
README.rst
README.rst
template-formula ================ A saltstack formula that is empty. It has dummy content to help with a quick start on a new formula.
================ template-formula ================ A saltstack formula that is empty. It has dummy content to help with a quick start on a new formula. .. note:: See the full `Salt Formulas installation and usage instructions <http://docs.saltstack.com/topics/conventions/formulas.html>`_.
Add link to Salt Formula documentation
Add link to Salt Formula documentation
reStructuredText
apache-2.0
hoonetorg/template-formula
restructuredtext
## Code Before: template-formula ================ A saltstack formula that is empty. It has dummy content to help with a quick start on a new formula. ## Instruction: Add link to Salt Formula documentation ## Code After: ================ template-formula ================ A saltstack formula that is empty. It has du...
70a24c2b6fbd53717b21129efcd4defe610f7056
Magic/src/main/resources/defaults/paths/default.yml
Magic/src/main/resources/defaults/paths/default.yml
default: hidden: true upgrade_commands: - broadcast &6@pd &3has advanced to &b$path&3! effects: # These effects will play when a wand is modified as a result of being # enchanted or buying a spell. # This doesn't really happen anymore with the default configs, the spellshop # is respo...
default: hidden: true upgrade_commands: - broadcast &6@pd &3has advanced to &b$path&3! effects: # These effects will play when a wand is modified as a result of being # enchanted or buying a spell. # This doesn't really happen anymore with the default configs, the spellshop # is respo...
Use 3 random fireworks on rankup, rather than 5 fixed ones. 1.13 particle lag ftl
Use 3 random fireworks on rankup, rather than 5 fixed ones. 1.13 particle lag ftl
YAML
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
yaml
## Code Before: default: hidden: true upgrade_commands: - broadcast &6@pd &3has advanced to &b$path&3! effects: # These effects will play when a wand is modified as a result of being # enchanted or buying a spell. # This doesn't really happen anymore with the default configs, the spellshop ...
59de381dc5eca2eeb6b029b7b7799f7f899df9ff
src/DBObject.php
src/DBObject.php
<?php namespace wcatron\CommonDBFramework; abstract class DBObject { /** * @var DB Class name for default DB class used. */ protected static $dbClass = DB::class; /** * @return string */ public function getID() { } /** * @return DB */ public static function ...
<?php namespace wcatron\CommonDBFramework; abstract class DBObject { /** * @var DB Class name for default DB class used. */ protected static $dbClass = DB::class; /** * @return string */ public function getID() { } /** * @param $id string * @return static ...
Add getID to DBobject force support for LinkedObject.
Add getID to DBobject force support for LinkedObject.
PHP
mit
wcatron/Common-DB-Framework-PHP
php
## Code Before: <?php namespace wcatron\CommonDBFramework; abstract class DBObject { /** * @var DB Class name for default DB class used. */ protected static $dbClass = DB::class; /** * @return string */ public function getID() { } /** * @return DB */ public ...
e3e2ed23b036a892f4f75b6d09729c7a5f2df5f0
src/flambe/platform/CatapultClient.hx
src/flambe/platform/CatapultClient.hx
// // Flambe - Rapid game development // https://github.com/aduros/flambe/blob/master/LICENSE.txt package flambe.platform; import haxe.Json; import flambe.util.Assert; /** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */ class CatapultClient { private function new () ...
// // Flambe - Rapid game development // https://github.com/aduros/flambe/blob/master/LICENSE.txt package flambe.platform; import haxe.Json; import flambe.util.Assert; using StringTools; /** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */ class CatapultClient { priv...
Handle backslash paths in Windows.
Handle backslash paths in Windows.
Haxe
mit
aduros/flambe,mikedotalmond/flambe,playedonline/flambe,mikedotalmond/flambe,markknol/flambe,weilitao/flambe,Disar/flambe,mikedotalmond/flambe,Disar/flambe,aduros/flambe,weilitao/flambe,playedonline/flambe,markknol/flambe,weilitao/flambe,playedonline/flambe,Disar/flambe,weilitao/flambe,aduros/flambe,mikedotalmond/flambe...
haxe
## Code Before: // // Flambe - Rapid game development // https://github.com/aduros/flambe/blob/master/LICENSE.txt package flambe.platform; import haxe.Json; import flambe.util.Assert; /** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */ class CatapultClient { private ...
a0793c643e01e5819e039b2242b5728b9bc1a3c4
README.md
README.md
An implementation of Oz on top of Truffle and Graal. ## Current Status Very early stage. The Base and Init functors can be loaded, and some simple tests pass. ## Build instructions ```bash mkdir mozart-dev cd mozart-dev git clone https://github.com/eregon/mozart-graal.git cd mozart-graal make ``` Run with ```bash...
An implementation of Oz on top of Truffle and Graal. ## Current Status Very early stage. The Base and Init functors can be loaded, and some simple tests pass. ## Dependencies * Java 8 * C/C++ toolchain (`build-essential`) for building Graal * Python 2.7 (for `mx`) * Ruby >= 2.0.0 (for the launcher) ## Build instr...
Add a list of dependencies
Add a list of dependencies
Markdown
bsd-2-clause
eregon/mozart-graal,mistasse/mozart-graal,eregon/mozart-graal,mistasse/mozart-graal,mistasse/mozart-graal,mistasse/mozart-graal,eregon/mozart-graal,mistasse/mozart-graal,eregon/mozart-graal,eregon/mozart-graal,eregon/mozart-graal
markdown
## Code Before: An implementation of Oz on top of Truffle and Graal. ## Current Status Very early stage. The Base and Init functors can be loaded, and some simple tests pass. ## Build instructions ```bash mkdir mozart-dev cd mozart-dev git clone https://github.com/eregon/mozart-graal.git cd mozart-graal make ``` ...
a3616c6d94ab8e19292f908ddbb2c55207cc15dc
source/templates/supertype_template.html.md.erb
source/templates/supertype_template.html.md.erb
--- layout: document_type_layout parent: /document-types.html --- <%= supertype.name %> is a "document supertype". <%= supertype.description %> Field in content-store: `<%= supertype.id %>` | Name | Document types | | --- | --- | <% supertype.items.map do |item| %> | <%= item.fetch("id") %> | <%= item.fetch("docume...
--- layout: document_type_layout parent: /document-types.html --- <%= supertype.name %> is a "document supertype". <%= supertype.description %> Field in content-store: `<%= supertype.id %>` | Name | Document types | | --- | --- | <% supertype.items.map do |item| %> | **<%= item.fetch("id") %>**<br/><%= item["descri...
Add description of supertypes to the table
Add description of supertypes to the table
HTML+ERB
mit
alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs
html+erb
## Code Before: --- layout: document_type_layout parent: /document-types.html --- <%= supertype.name %> is a "document supertype". <%= supertype.description %> Field in content-store: `<%= supertype.id %>` | Name | Document types | | --- | --- | <% supertype.items.map do |item| %> | <%= item.fetch("id") %> | <%= it...
65b2d85bcda199eb6b4858d9babcbf020371ae49
.travis.yml
.travis.yml
language: node_js cache: directories: - node_modules node_js: - "7" - "6" - "5" - "4" - "3" - "0.12" - "0.10" matrix: allow_failures: - node_js: 3 - node_js: 5 sudo: false
language: node_js cache: directories: - node_modules node_js: - "7" - "7.9.0" - "6" - "5" - "4" - "3" - "0.12" - "0.10" matrix: allow_failures: - node_js: 3 - node_js: 5 - node_js: 7 sudo: false
Allow failures on latest Node 7
Allow failures on latest Node 7 Because issue https://github.com/othiym23/async-listener/issues/109 have not yet been solved for Node.js 7, the test suite currently fails when running on the latest version of Node.js 7 (v7.10.0 as of this commit). This commit allows 7.x to fail, but adds an extra build for 7.9.0 whic...
YAML
bsd-2-clause
othiym23/async-listener
yaml
## Code Before: language: node_js cache: directories: - node_modules node_js: - "7" - "6" - "5" - "4" - "3" - "0.12" - "0.10" matrix: allow_failures: - node_js: 3 - node_js: 5 sudo: false ## Instruction: Allow failures on latest Node 7 Because issue https://github.com/othiym23/async-...
dfa3af2934be1f2e3284242b6889b5b904e6c7a6
README.md
README.md
React Storybook decorator to center components. ### Usage ```sh npm i @kadira/react-storybook-decorator-centered ``` Then add the decorator like this: ```js import React from 'react'; import { storiesOf } from '@kadira/storybook'; import MyComponent from '../my_component'; import centered from '@kadira/react-story...
React Storybook decorator to center components. ### Usage ```sh npm i @kadira/react-storybook-decorator-centered ``` #### As a decorator You can set the decorator locally: ```js import React from 'react'; import { storiesOf } from '@kadira/storybook'; import MyComponent from '../my_component'; import centered from...
Add instructions for use as extension
Add instructions for use as extension
Markdown
mit
bigassdragon/storybook,storybooks/storybook,storybooks/storybook,enjoylife/storybook,bigassdragon/storybook,bigassdragon/storybook,storybooks/storybook,storybooks/react-storybook,jribeiro/storybook,shilman/storybook,nfl/react-storybook,rhalff/storybook,rhalff/storybook,rhalff/storybook,storybooks/storybook,rhalff/story...
markdown
## Code Before: React Storybook decorator to center components. ### Usage ```sh npm i @kadira/react-storybook-decorator-centered ``` Then add the decorator like this: ```js import React from 'react'; import { storiesOf } from '@kadira/storybook'; import MyComponent from '../my_component'; import centered from '@ka...
ec3c29b9d825617e81a67cee97b54c49d9654168
CHANGELOG.md
CHANGELOG.md
* Trigger new custom events: **annotator-meltdown:meltdown-initialized** when the meltdown editor is initialized for the first time; **annotator-meltdown:editor-show** and **annotator-meltdown:editor-submit** on show and submit editor methods. * Add allowed audio tags to default [js-xss](https://github.com/le...
* Trigger new custom events: **annotator-meltdown:meltdown-initialized** when the meltdown editor is initialized for the first time; **annotator-meltdown:editor-show** and **annotator-meltdown:editor-submit** on show and submit editor methods. * Add allowed audio tags to default [js-xss](https://github.com/le...
Document updates included in 0.3
Document updates included in 0.3
Markdown
apache-2.0
emory-lits-labs/annotator-meltdown,emory-lits-labs/annotator-meltdown
markdown
## Code Before: * Trigger new custom events: **annotator-meltdown:meltdown-initialized** when the meltdown editor is initialized for the first time; **annotator-meltdown:editor-show** and **annotator-meltdown:editor-submit** on show and submit editor methods. * Add allowed audio tags to default [js-xss](https...
d24bb89cb4191008d4cae1b8260e05f2ffdc6018
packages/ansi-to-react/README.md
packages/ansi-to-react/README.md
Convert ANSI Escape Codes to pretty text output for React. ## Installation You may use whichever package manager (`npm` or `yarn`) best suits your workflow. The `nteract` team internally uses `yarn`. ```bash npm install --save ansi-to-react # OR yarn add ansi-to-react ``` ## Usage ```js const Ansi = require('ansi...
Convert ANSI Escape Codes to pretty text output for React. ## Installation You may use whichever package manager (`npm` or `yarn`) best suits your workflow. The `nteract` team internally uses `yarn`. ```bash npm install --save ansi-to-react # OR yarn add ansi-to-react ``` ## Type Checking In order to type check, we...
Add a note about typechecking.
Add a note about typechecking.
Markdown
bsd-3-clause
rgbkrk/nteract,nteract/nteract,nteract/nteract,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,nteract/composition,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/nteract
markdown
## Code Before: Convert ANSI Escape Codes to pretty text output for React. ## Installation You may use whichever package manager (`npm` or `yarn`) best suits your workflow. The `nteract` team internally uses `yarn`. ```bash npm install --save ansi-to-react # OR yarn add ansi-to-react ``` ## Usage ```js const Ansi...
d9af09e5ae6bf1aed5240cf79af602965bfe7dd1
yubiadmin/static/js/table.js
yubiadmin/static/js/table.js
$(document).ready(function() { $('#delete_btn').attr('disabled', 'disabled'); $('#toggle_all').change(function() { $('tbody :checkbox').prop('checked', $(this).is(':checked')); }); $(':checkbox').change(function() { if($('tbody :checkbox:checked').length > 0) { console.log('enable'); $('#delete_btn').re...
$(document).ready(function() { $('#delete_btn').attr('disabled', 'disabled'); $('#toggle_all').change(function() { $('tbody :checkbox').prop('checked', $(this).is(':checked')); }); $(':checkbox').change(function() { if($('tbody :checkbox:checked').length > 0) { $('#delete_btn').removeAttr('disabled'); } ...
Check for checked boxes on load.
Check for checked boxes on load.
JavaScript
bsd-2-clause
Yubico/yubiadmin,Yubico/yubiadmin,Yubico/yubiadmin
javascript
## Code Before: $(document).ready(function() { $('#delete_btn').attr('disabled', 'disabled'); $('#toggle_all').change(function() { $('tbody :checkbox').prop('checked', $(this).is(':checked')); }); $(':checkbox').change(function() { if($('tbody :checkbox:checked').length > 0) { console.log('enable'); $('...
6edb67deeb3f19b3b5d24e262afc266ce2cb7600
setup.py
setup.py
from setuptools import setup import io # Take from Jeff Knupp's excellent article: # http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/ def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in...
from setuptools import setup import io # Take from Jeff Knupp's excellent article: # http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/ def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in...
Add pytz to installation requirements, needed for pedometerpp
Add pytz to installation requirements, needed for pedometerpp
Python
mit
durden/dayonetools
python
## Code Before: from setuptools import setup import io # Take from Jeff Knupp's excellent article: # http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/ def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] ...
5184265501ae743d3087352dbeb229bcfcdfe17a
projects/OG-Web/src/main/java/com/opengamma/web/server/push/analytics/formatting/HistoricalTimeSeriesFormatter.java
projects/OG-Web/src/main/java/com/opengamma/web/server/push/analytics/formatting/HistoricalTimeSeriesFormatter.java
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.web.server.push.analytics.formatting; import com.opengamma.core.historicaltimeseries.HistoricalTimeSeries; import com.opengamma.engine.value.ValueSpecification...
/** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.web.server.push.analytics.formatting; import com.opengamma.core.historicaltimeseries.HistoricalTimeSeries; import com.opengamma.engine.value.ValueSpecification...
Tweak to time series formatting
[PLAT-2785] Tweak to time series formatting
Java
apache-2.0
jeorme/OG-Platform,McLeodMoores/starling,McLeodMoores/starling,codeaudit/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,ChinaQuants/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,codeaudit/OG-Platform,DevStreet/FinanceAnalytics,nssales/OG-Platform,jeorme/OG-Platform,DevStreet/FinanceAnal...
java
## Code Before: /** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.web.server.push.analytics.formatting; import com.opengamma.core.historicaltimeseries.HistoricalTimeSeries; import com.opengamma.engine.value.Va...
5f91ad9471844b46a101ddc270f737bfd629b9e8
package.json
package.json
{ "name": "gulp-jscs-stylish", "version": "1.4.0", "description": "Stylish reporter for gulp-jscs", "license": "MIT", "repository": "gonsfx/gulp-jscs-stylish", "author": { "name": "Christoph Werner", "email": "gonsfx@googlemail.com", "url": "http://twitter.com/gonsfx" }, "engines": { "no...
{ "name": "gulp-jscs-stylish", "version": "1.4.0", "description": "Stylish reporter for gulp-jscs", "license": "MIT", "repository": "codepunkt/gulp-jscs-stylish", "author": "Christoph Werner <christoph+github@codepunkt.de>", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, ...
Update repository and author info
Update repository and author info
JSON
mit
gonsfx/gulp-jscs-stylish
json
## Code Before: { "name": "gulp-jscs-stylish", "version": "1.4.0", "description": "Stylish reporter for gulp-jscs", "license": "MIT", "repository": "gonsfx/gulp-jscs-stylish", "author": { "name": "Christoph Werner", "email": "gonsfx@googlemail.com", "url": "http://twitter.com/gonsfx" }, "eng...
c16a3266da1febd17bd1df2e22a7e8b9e5195e1a
README.md
README.md
gopipe-redis is a small utility written in Go to generate a file for mass insertion into the key-value store Redis. It takes in a source file written using the human-readable Redis syntax. ### Installation ``` $ go get github.com/duncanleo/gopipe-redis ``` ### Usage ``` $ gopipe-redis -i [source file] ``` ### Exampl...
[![Build Status](https://travis-ci.org/duncanleo/gopipe-redis.svg?branch=master)](https://travis-ci.org/duncanleo/gopipe-redis) gopipe-redis is a small utility written in Go to generate a file for mass insertion into the key-value store Redis. It takes in a source file written using the human-readable Redis syntax. #...
Add Travis CI build status badge
Add Travis CI build status badge
Markdown
mit
duncanleo/gopipe-redis
markdown
## Code Before: gopipe-redis is a small utility written in Go to generate a file for mass insertion into the key-value store Redis. It takes in a source file written using the human-readable Redis syntax. ### Installation ``` $ go get github.com/duncanleo/gopipe-redis ``` ### Usage ``` $ gopipe-redis -i [source file]...
0a69ac690be4ea8248779f413aa2c2e1af865f82
app/search/search-form.controller.js
app/search/search-form.controller.js
'use strict'; angular.module('arachne.controllers') .controller('SearchFormController', ['$scope', '$location', 'arachneSettings', '$http', function ($scope, $location, arachneSettings, $http) { $scope.search = function (fq) { if ($scope.q) { var url = '/search?q=' + $scope.q;...
'use strict'; angular.module('arachne.controllers') .controller('SearchFormController', ['$scope', '$location', 'arachneSettings', '$http', function ($scope, $location, arachneSettings, $http) { $scope.search = function (fq) { if ($scope.q) { var url = '/search?q=' + $scope.q;...
Revert "Revert "added promise check""
Revert "Revert "added promise check"" This reverts commit ca14308fe85b6d0c3407d5e6c956a3acf78f0ca9.
JavaScript
apache-2.0
dainst/arachnefrontend,dainst/arachnefrontend,codarchlab/arachnefrontend,codarchlab/arachnefrontend
javascript
## Code Before: 'use strict'; angular.module('arachne.controllers') .controller('SearchFormController', ['$scope', '$location', 'arachneSettings', '$http', function ($scope, $location, arachneSettings, $http) { $scope.search = function (fq) { if ($scope.q) { var url = '/search...
597f4b5985eeba5f903cc8ed4ea85677e162d395
config/tabular.vim
config/tabular.vim
if exists(":Tabularize") nmap <Leader>a= :Tabularize /=<CR> vmap <Leader>a= :Tabularize /=<CR> nmap <Leader>a: :Tabularize /:\zs<CR> vmap <Leader>a: :Tabularize /:\zs<CR> endif
nmap <Leader>a= :Tabularize /=<CR> vmap <Leader>a= :Tabularize /=<CR> nmap <Leader>a: :Tabularize /:\zs<CR> vmap <Leader>a: :Tabularize /:\zs<CR>
Fix Tabularize mappings not working
Fix Tabularize mappings not working
VimL
mit
skalnik/dotfiles,skalnik/dotfiles,skalnik/dotfiles
viml
## Code Before: if exists(":Tabularize") nmap <Leader>a= :Tabularize /=<CR> vmap <Leader>a= :Tabularize /=<CR> nmap <Leader>a: :Tabularize /:\zs<CR> vmap <Leader>a: :Tabularize /:\zs<CR> endif ## Instruction: Fix Tabularize mappings not working ## Code After: nmap <Leader>a= :Tabularize /=<CR> vmap <Leader>a...
9aa258df657877d018375316cbe73ee610882e31
week-02/mini_record/test_blog.rb
week-02/mini_record/test_blog.rb
require './mini_record' require './user' require './blog_post' MiniRecord::Database.database = 'blog.db' jesse = User.where('email = ?', 'jesse@codeunion.io').first if jesse.nil? jesse = User.new jesse[:first_name] = 'Jesse' jesse[:last_name] = 'Farmer' jesse[:email] = 'jesse@codeunion.io' jesse[:bir...
require './mini_record' if File.exist?('blog.db') MiniRecord::Database.database = 'blog.db' else puts "Error: blog database doesn't exist. To create it, run" puts "" puts " sqlite3 blog.db < setup.sql" puts "" exit 1 end # We have to tell MiniRecord what database to use before we load our models # in ca...
Make sure we connect to the database before loading models
Make sure we connect to the database before loading models
Ruby
mit
codeunion/pro-engineering-katas,chrisswk/pro-engineering-katas
ruby
## Code Before: require './mini_record' require './user' require './blog_post' MiniRecord::Database.database = 'blog.db' jesse = User.where('email = ?', 'jesse@codeunion.io').first if jesse.nil? jesse = User.new jesse[:first_name] = 'Jesse' jesse[:last_name] = 'Farmer' jesse[:email] = 'jesse@codeunion....
e22c1dac159f40149c5f36c75aa1068097cbf342
dynatest/executor.go
dynatest/executor.go
package dynatest import ( "github.com/underarmour/dynago" "github.com/underarmour/dynago/schema" ) // A Mock executor type Executor struct { } func (e *Executor) GetItem(*dynago.GetItem) (*dynago.GetItemResult, error) { return nil, nil } func (e *Executor) PutItem(*dynago.PutItem) (*dynago.PutItemResult, error) ...
package dynatest import ( "github.com/underarmour/dynago" "github.com/underarmour/dynago/schema" ) // A Mock executor type Executor struct { } func (e *Executor) BatchWriteItem(*dynago.BatchWrite) (*dynago.BatchWriteResult, error) { return nil, nil } func (e *Executor) GetItem(*dynago.GetItem) (*dynago.GetItemRe...
Make sure we still satisfy Executor
Make sure we still satisfy Executor
Go
mit
ralph-tice/dynago,underarmour/dynago,crast/dynago
go
## Code Before: package dynatest import ( "github.com/underarmour/dynago" "github.com/underarmour/dynago/schema" ) // A Mock executor type Executor struct { } func (e *Executor) GetItem(*dynago.GetItem) (*dynago.GetItemResult, error) { return nil, nil } func (e *Executor) PutItem(*dynago.PutItem) (*dynago.PutIte...
f9f20a7141fba9a50caed4e6500f972ba1dccc94
src/main/java/alien4cloud/paas/cloudify3/location/ByonLocationConfigurator.java
src/main/java/alien4cloud/paas/cloudify3/location/ByonLocationConfigurator.java
package alien4cloud.paas.cloudify3.location; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.stereotype.Component; import com.google.common.collect.Sets; import alien4cloud.model.deployment.matching.MatchingConfiguration; import alien4cloud.model.orchestrators.locations...
package alien4cloud.paas.cloudify3.location; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.stereotype.Component; import com.google.common.collect.Sets; import alien4cloud.model.deployment.matching.MatchingConfiguration; import alien4cloud.model.orchestrators.locations...
Revert "ALIEN-2265: throw an exception when a user try an auto-config on location who don't support this operation"
Revert "ALIEN-2265: throw an exception when a user try an auto-config on location who don't support this operation" This reverts commit 701cd1fbb6109ffc09aa77e694ffce9768e57752.
Java
apache-2.0
alien4cloud/alien4cloud-cloudify3-provider,alien4cloud/alien4cloud-cloudify3-provider,alien4cloud/alien4cloud-cloudify3-provider
java
## Code Before: package alien4cloud.paas.cloudify3.location; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.stereotype.Component; import com.google.common.collect.Sets; import alien4cloud.model.deployment.matching.MatchingConfiguration; import alien4cloud.model.orchest...
b0e97593bcfb310be21134f1e7e67702b4ac3d9d
www/templates/tab-servers.html
www/templates/tab-servers.html
<ion-view view-title="Servers"> <ion-content has-bouncing="true" start-y="45"> <ion-refresher pulling-text="Pull to refresh..." on-refresh="refresh()"> </ion-refresher> <ion-list> <div class="bar item-input-inset"> <div class="item-...
<ion-view view-title="Servers"> <ion-content has-bouncing="true" start-y="45"> <ion-refresher pulling-text="Pull to refresh..." on-refresh="refresh()"> </ion-refresher> <ion-list> <div class="bar item-input-inset"> <div class="item-...
Add green/red dot to show if server is running
feat(servers): Add green/red dot to show if server is running
HTML
mit
AndreasGassmann/cloudatcostapp,AndreasGassmann/cloudatcostapp,AndreasGassmann/cloudatcostapp
html
## Code Before: <ion-view view-title="Servers"> <ion-content has-bouncing="true" start-y="45"> <ion-refresher pulling-text="Pull to refresh..." on-refresh="refresh()"> </ion-refresher> <ion-list> <div class="bar item-input-inset"> <...
60812725737cb472a8e9d92486d149bcbb27ba5b
scss/springgrid-helpers.scss
scss/springgrid-helpers.scss
/// /// Grid Helpers /// // ---------------------------------------------- // COLUMN SPECIFIC // ---------------------------------------------- .valign-top { align-self: flex-start; } .valign-middle { align-self: center; } .valign-bottom { align-self: flex-end; }
/// /// Grid Helpers /// // COLUMN SPECIFIC // ---------------------------------------------- // Vertical Alignment: // ---------------------------------------------- // Align to top, middle or bottom // .valign-top { align-self: flex-start; } .valign-middle { align-self: center; } .valign-bottom { ali...
Comment vertical alignment in scss
Comment vertical alignment in scss
SCSS
mit
pixelspring/SpringGrid
scss
## Code Before: /// /// Grid Helpers /// // ---------------------------------------------- // COLUMN SPECIFIC // ---------------------------------------------- .valign-top { align-self: flex-start; } .valign-middle { align-self: center; } .valign-bottom { align-self: flex-end; } ## Instruction: Comment ...
6f6564b5382101595af8efe1610482412ec5f5a1
source/docs/02_api_libraries/02_initialization.js.md
source/docs/02_api_libraries/02_initialization.js.md
You will need to initialize the GoCardless Node.JS library on each page that you would like to use the library. Once you have [installed](#installation) the library via npm, you will need to configure it within the app: ```js var gcConfig = { appId: 'DUMMY_APP', appSecret: 'INSERT_APP_SECRET_HERE', token: 'INS...
You will need to initialize the GoCardless Node.JS library on each page that you would like to use the library. Once you have [installed](#installation) the library via npm, you will need to configure it within the app: ```js var gcConfig = { appId: 'DUMMY_APP', appSecret: 'INSERT_APP_SECRET_HERE', token: 'INS...
Add sandbox note for node library
Add sandbox note for node library
Markdown
mit
gocardless/api-docs,gocardless/api-docs,gocardless/api-docs,gocardless/api-docs,gocardless/api-docs,gocardless/api-docs,gocardless/api-docs,gocardless/api-docs
markdown
## Code Before: You will need to initialize the GoCardless Node.JS library on each page that you would like to use the library. Once you have [installed](#installation) the library via npm, you will need to configure it within the app: ```js var gcConfig = { appId: 'DUMMY_APP', appSecret: 'INSERT_APP_SECRET_HERE...
a6085a0ea105835aa94b873e3d199de53c286fdf
README.md
README.md
HttpUrlConnection wrapper for Android written in Java. Wrappers for: HTTP GET HTTP POST HTTP PUT HTTP DELETE ## Usage HTTP GET Http httpGet = new HttpGet("https://httpbin.org/get"); int responseCode = httpGet.execute(); HTTP POST Http httpPost = new HttpPost("https://httpbin.org/po...
HttpUrlConnection wrapper for Android written in Java. Wrappers for: HTTP GET HTTP POST HTTP PUT HTTP DELETE ## Usage HTTP GET Http httpGet = new HttpGet("https://httpbin.org/get"); int responseCode = httpGet.execute(); HTTP POST Http httpPost = new HttpPost("https://httpbin.org/po...
Update readme due to interface change.
Update readme due to interface change.
Markdown
mit
zulhilmizainuddin/httpurlconnectionwrapper,zulhilmizainuddin/httprequest
markdown
## Code Before: HttpUrlConnection wrapper for Android written in Java. Wrappers for: HTTP GET HTTP POST HTTP PUT HTTP DELETE ## Usage HTTP GET Http httpGet = new HttpGet("https://httpbin.org/get"); int responseCode = httpGet.execute(); HTTP POST Http httpPost = new HttpPost("https:...
c48936bf4eeeff7a33fa6e490f2d2bc6b6a5e0a9
.pre-commit-config.yaml
.pre-commit-config.yaml
repos: # Automatic source code formatting - repo: https://github.com/ambv/black rev: stable hooks: - id: black args: [--safe, --quiet] # Syntax check and some basic flake8 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.0.0 hooks: - id: check-ast - id: flake8 args: ['--max-line-le...
repos: # Automatic source code formatting - repo: https://github.com/ambv/black rev: stable hooks: - id: black args: [--safe, --quiet] # Syntax check and some basic flake8 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.0.0 hooks: - id: check-ast - id: flake8 args: ['--max-line-le...
Add a few more tests to the pre-commit hook
Add a few more tests to the pre-commit hook so that they show up before flake8 runs on a pull request. 48% there
YAML
bsd-3-clause
dials/dials,dials/dials,dials/dials,dials/dials,dials/dials
yaml
## Code Before: repos: # Automatic source code formatting - repo: https://github.com/ambv/black rev: stable hooks: - id: black args: [--safe, --quiet] # Syntax check and some basic flake8 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.0.0 hooks: - id: check-ast - id: flake8 args:...
12a9ef54d82d9508852e5596dbb9df321986e067
tests/test_heroku.py
tests/test_heroku.py
"""Tests for the Wallace API.""" import subprocess import re import requests class TestHeroku(object): """The Heroku test class.""" def test_sandbox(self): """Launch the experiment on Heroku.""" sandbox_output = subprocess.check_output( "cd examples/bartlett1932; wallace sandbox...
"""Tests for the Wallace API.""" import subprocess import re import os import requests class TestHeroku(object): """The Heroku test class.""" sandbox_output = subprocess.check_output( "cd examples/bartlett1932; wallace sandbox --verbose", shell=True) os.environ['app_id'] = re.search( '...
Refactor Heroku tests to have shared setup
Refactor Heroku tests to have shared setup
Python
mit
Dallinger/Dallinger,berkeley-cocosci/Wallace,jcpeterson/Dallinger,jcpeterson/Dallinger,suchow/Wallace,berkeley-cocosci/Wallace,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,berkeley-cocosci/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,suchow/Wallace,suchow/Wallace,jcpeterson/Dallinger,Dallinger/Dalli...
python
## Code Before: """Tests for the Wallace API.""" import subprocess import re import requests class TestHeroku(object): """The Heroku test class.""" def test_sandbox(self): """Launch the experiment on Heroku.""" sandbox_output = subprocess.check_output( "cd examples/bartlett1932;...
be77108ef7359f1265ac9d9f260bbf88ab95ca3d
php/laravel-cheat_sheet.md
php/laravel-cheat_sheet.md
See https://laravel.com/ for details. Laravel is a PHP framework for web applications using MVC. Laravel uses the following components (among others): * Composer: A PHP dependencies manager * Symfony: A PHP development framework * Eloquent ORM: Object-oriented database management and migration * Blade: A templating...
See https://laravel.com/ for details. Laravel is a PHP framework for web applications using MVC. Laravel uses the following components (among others): * Composer: A PHP dependencies manager * Symfony: A PHP development framework * Eloquent ORM: Object-oriented database management and migration * Blade: A templating...
Add a Brief Installation Section
Add a Brief Installation Section
Markdown
mit
dhurlburtusa/shortcuts,dhurlburtusa/shortcuts
markdown
## Code Before: See https://laravel.com/ for details. Laravel is a PHP framework for web applications using MVC. Laravel uses the following components (among others): * Composer: A PHP dependencies manager * Symfony: A PHP development framework * Eloquent ORM: Object-oriented database management and migration * Bla...
829beefdd814c02c971991d175b279d9cfe77ed4
recipes/igraph/meta.yaml
recipes/igraph/meta.yaml
{%set name = "igraph" %} {%set version = "0.7.1" %} {%set hash_type = "sha256" %} {%set hash_val = "d978030e27369bf698f3816ab70aa9141e9baf81c56cc4f55efbe5489b46b0df" %} package: name: {{ name }} version: {{ version }} source: fn: {{ name }}-{{ version }}.tar.gz url: http://igraph.org/nightly/get/c/{{ name }}-...
{%set name = "igraph" %} {%set version = "0.7.1" %} {%set hash_type = "sha256" %} {%set hash_val = "d978030e27369bf698f3816ab70aa9141e9baf81c56cc4f55efbe5489b46b0df" %} package: name: {{ name }} version: {{ version }} source: fn: {{ name }}-{{ version }}.tar.gz url: http://igraph.org/nightly/get/c/{{ name }}-...
Fix typo. Be more precise on package requirements.
Fix typo. Be more precise on package requirements.
YAML
bsd-3-clause
shadowwalkersb/staged-recipes,synapticarbors/staged-recipes,mariusvniekerk/staged-recipes,dschreij/staged-recipes,asmeurer/staged-recipes,NOAA-ORR-ERD/staged-recipes,chohner/staged-recipes,ocefpaf/staged-recipes,benvandyke/staged-recipes,rmcgibbo/staged-recipes,sannykr/staged-recipes,JohnGreeley/staged-recipes,basnijho...
yaml
## Code Before: {%set name = "igraph" %} {%set version = "0.7.1" %} {%set hash_type = "sha256" %} {%set hash_val = "d978030e27369bf698f3816ab70aa9141e9baf81c56cc4f55efbe5489b46b0df" %} package: name: {{ name }} version: {{ version }} source: fn: {{ name }}-{{ version }}.tar.gz url: http://igraph.org/nightly/g...
b9512c27227c46dac0c22e426eddec22d1dbe710
doc/smart-answer-flow-development/merging-content-prs.md
doc/smart-answer-flow-development/merging-content-prs.md
Most members of the Content Team do not have permission to contribute directly to the canonical repository, so when they want to make a change, they often create a pull request using a fork of the repository. Also since they don't usually have a Ruby environment setup on their local machine, they will not be able to u...
Most members of the Content Team do not have permission to contribute directly to the canonical repository, so when they want to make a change, they often create a pull request using a fork of the repository. Also since they don't usually have a Ruby environment setup on their local machine, they will not be able to u...
Correct link to regression test docs
Correct link to regression test docs
Markdown
mit
alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers
markdown
## Code Before: Most members of the Content Team do not have permission to contribute directly to the canonical repository, so when they want to make a change, they often create a pull request using a fork of the repository. Also since they don't usually have a Ruby environment setup on their local machine, they will ...
739d6391a9d476cbdd277f3f1c31fc99e7ca3bc9
config/initializers/site_settings.rb
config/initializers/site_settings.rb
RailsMultisite::ConnectionManagement.each_connection do SiteSetting.refresh! end
RailsMultisite::ConnectionManagement.each_connection do begin SiteSetting.refresh! rescue ActiveRecord::StatementInvalid # This will happen when migrating a new database end end
Fix error during db:migrate on a new database
Fix error during db:migrate on a new database
Ruby
mit
natefinch/discourse,tadp/learnswift,natefinch/discourse,tadp/learnswift,tadp/learnswift
ruby
## Code Before: RailsMultisite::ConnectionManagement.each_connection do SiteSetting.refresh! end ## Instruction: Fix error during db:migrate on a new database ## Code After: RailsMultisite::ConnectionManagement.each_connection do begin SiteSetting.refresh! rescue ActiveRecord::StatementInvalid # This wi...
36593f21c93a16beb5d2ab77ba803a9059099615
phillydata/waterdept/load.py
phillydata/waterdept/load.py
import os from django.contrib.gis.utils import LayerMapping from ..load import get_processed_data_file from .models import WaterParcel, waterparcel_mapping def from_shapefile(transaction_mode='autocommit', **kwargs): """ Load water parcel data into the database from the processed shapefile. """ # Us...
import os from django.contrib.gis.utils import LayerMapping from ..load import get_processed_data_file from .models import WaterAccount, WaterParcel, waterparcel_mapping def from_shapefile(transaction_mode='autocommit', **kwargs): """ Load water parcel data into the database from the processed shapefile. ...
Fix WaterAccount instances pointing to old WaterParcels
Fix WaterAccount instances pointing to old WaterParcels Start to make older WaterParcels obsolete
Python
bsd-3-clause
ebrelsford/django-phillydata
python
## Code Before: import os from django.contrib.gis.utils import LayerMapping from ..load import get_processed_data_file from .models import WaterParcel, waterparcel_mapping def from_shapefile(transaction_mode='autocommit', **kwargs): """ Load water parcel data into the database from the processed shapefile. ...
18bbc065c71f376ae4e6aae1afdfc50caf0d6c65
lib/usesthis/site.rb
lib/usesthis/site.rb
module UsesThis class Site < Salt::Site attr_accessor :wares, :links def setup(path = nil, config = {}) super @paths[:wares] = File.join(@paths[:source], 'data', 'wares') @paths[:links] = File.join(@paths[:source], 'data', 'links') @wares, @links = {}, { personal: [], inspired: [] ...
module UsesThis class Site < Salt::Site attr_accessor :wares, :links def setup(path = nil, config = {}) super @paths[:wares] = File.join(@paths[:source], 'data', 'wares') @paths[:links] = File.join(@paths[:source], 'data', 'links') @wares, @links = {}, { personal: [], inspired: [] ...
Set the auto_ids option off for Markdown.
Set the auto_ids option off for Markdown.
Ruby
mit
ivuk/usesthis,waferbaby/usesthis,orta/usesthis,holman/usesthis,ivuk/usesthis,MjAbuz/usesthis,MjAbuz/usesthis,waferbaby/usesthis,orta/usesthis,holman/usesthis,MjAbuz/usesthis
ruby
## Code Before: module UsesThis class Site < Salt::Site attr_accessor :wares, :links def setup(path = nil, config = {}) super @paths[:wares] = File.join(@paths[:source], 'data', 'wares') @paths[:links] = File.join(@paths[:source], 'data', 'links') @wares, @links = {}, { personal: [...
1f4ba9907af65eadba24079e397f97ff0ee3a0ec
app/factoriesLoader.php
app/factoriesLoader.php
<?php /** * Factory functions loader * * @author Petr Pliska */ foreach (glob(__DIR__ . '/Factory/*.php') as $file) { require_once $file; }
<?php /** * @author Petr Pliska <petr.pliska@post.cz> */ /** * Factory functions loader * * @author Petr Pliska */ foreach (glob(__DIR__ . '/Factory/*.php') as $file) { require_once $file; }
Add author to phpdoc comment
Add author to phpdoc comment
PHP
mit
plispe/kiss,plispe/kiss,plispe/kiss
php
## Code Before: <?php /** * Factory functions loader * * @author Petr Pliska */ foreach (glob(__DIR__ . '/Factory/*.php') as $file) { require_once $file; } ## Instruction: Add author to phpdoc comment ## Code After: <?php /** * @author Petr Pliska <petr.pliska@post.cz> */ /** * Factory functions loader ...
1e9ca9e04057dea9923a33697ffbb92b213a4d24
public_html/index.html
public_html/index.html
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="view...
<!DOCTYPE html> <html> <head> <title>List of examples of the topics</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> </head> <body> <p> <b> Syntax </b> <ul> <li><a href=...
Add link to the example of the syntax topic.
Add link to the example of the syntax topic.
HTML
mit
antalpeti/HTML5-Tutorial
html
## Code Before: <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name...
adc0b4bae41c3b6203e0e0b0f0a8167cb4f56647
app/assets/stylesheets/_player.scss
app/assets/stylesheets/_player.scss
h1 { font-size: 2em; padding-top: 25px; text-align: center; color: #fff; } .white { color: #fff; } .outer_player { @include outer-container; @include background(radial-gradient(#084B8A, #A9D0F5) left repeat); }; .slogan { text-align: center; padding-bottom: 10px; } .center { @include span-colum...
h1 { font-size: 2em; padding-top: 25px; text-align: center; color: #fff; } .white { color: #fff; } .blue { color: $dark-blue; } .outer_player { @include outer-container; @include background(radial-gradient(#084B8A, #A9D0F5) left repeat); }; .slogan { text-align: center; padding-bottom: 10px; } ...
Fix header class (so it will actually show up on the page).
Fix header class (so it will actually show up on the page).
SCSS
mit
complikatyed/quizlytics,complikatyed/quizlytics,complikatyed/quizlytics
scss
## Code Before: h1 { font-size: 2em; padding-top: 25px; text-align: center; color: #fff; } .white { color: #fff; } .outer_player { @include outer-container; @include background(radial-gradient(#084B8A, #A9D0F5) left repeat); }; .slogan { text-align: center; padding-bottom: 10px; } .center { @in...
5e5a19633d3b7a0844ae24a99faa3749ea4f08c1
src/main/webapp/WEB-INF/web.xml
src/main/webapp/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"> <display-name>WSExa...
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"> <display-name>Servi...
Update display name and description
Update display name and description
XML
mit
cubiks/server-information
xml
## Code Before: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true"> <di...
ea1138613e8325a9d90b17334506bf9bb2f0c9e5
app/views/agents/diagram.html.erb
app/views/agents/diagram.html.erb
<div class='container'> <div class='row'> <div class='span12'> <div class="page-header"> <h2>Agent Event Flow</h2> </div> <div class="btn-group"> <%= link_to '<i class="icon-chevron-left"></i> Back'.html_safe, agents_path, class: "btn" %> </div> <div class='digraph'>...
<div class='container'> <div class='row'> <div class='span12'> <div class="page-header"> <h2>Agent Event Flow</h2> </div> <div class="btn-group"> <%= link_to '<i class="icon-chevron-left"></i> Back'.html_safe, agents_path, class: "btn" %> </div> <div class='digraph'>...
Update agent diagram to show disabled state
[196-Disable] Update agent diagram to show disabled state
HTML+ERB
mit
francxk/huginn,azati/huginn,rasata/huginn,cpretzer/huginn,bencornelis/huginn,niravaga/huginn,stephenanthony/huginn,mirko314/huginn,shirshendu/huginn,KentFujii/huginn,sideci-sample/sideci-sample-huginn,brianpetro/huginn,wxdublin/huginn,flagsoft/huginn,ianblenke/huginn,mindvalley/huginn,darrencauthon/huginn,stvnrlly/hugi...
html+erb
## Code Before: <div class='container'> <div class='row'> <div class='span12'> <div class="page-header"> <h2>Agent Event Flow</h2> </div> <div class="btn-group"> <%= link_to '<i class="icon-chevron-left"></i> Back'.html_safe, agents_path, class: "btn" %> </div> <div ...
0c39d969e2508f8c94c73121d51890cb1ed7b3bf
website/pages/introduction.md
website/pages/introduction.md
Introduction ============ ## About Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designed for developers...
Introduction ============ ## About Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designed for developers...
Add link to GitHub on project homepage.
Add link to GitHub on project homepage.
Markdown
mit
thephpleague/plates,localheinz/plates,vlakoff/plates,samsonasik/plates,okaprinarjaya/plates
markdown
## Code Before: Introduction ============ ## About Plates is a native PHP template system that’s fast, easy to use and easy to extend. It’s inspired by the excellent [Twig](http://twig.sensiolabs.org/) template engine and tries to bring modern template language functionality to native PHP templates. Plates is designe...
eae55f53cec2f033b8474530c4785f9cfbb18580
main.js
main.js
var app = require('app') var BrowserWindow = require('browser-window') var crashReporter = require('crash-reporter') crashReporter.start() var mainWindow = null app.on('window-all-closed', function appQuit () { if (process.platform !== 'darwin') { app.quit() } }) app.on('ready', function appReady () { mai...
var app = require('app') var BrowserWindow = require('browser-window') var crashReporter = require('crash-reporter') var Menu = require('menu') var darwinTemplate = require('./darwin-menu.js') var otherTemplate = require('./other-menu.js') var mainWindow = null var menu = null crashReporter.start() app.on('window-a...
Add basic menu to app
Add basic menu to app Will refine later on.
JavaScript
bsd-2-clause
paulcbetts/git-it-electron,jlord/git-it-electron,jlord/git-it-electron,jlord/git-it-electron,countryoven/git-it-electron,IonicaBizauKitchen/git-it-electron,countryoven/git-it-electron,countryoven/git-it-electron,dice/git-it-electron,vongola12324/git-it-electron,dice/git-it-electron,dice/git-it-electron,vongola12324/git...
javascript
## Code Before: var app = require('app') var BrowserWindow = require('browser-window') var crashReporter = require('crash-reporter') crashReporter.start() var mainWindow = null app.on('window-all-closed', function appQuit () { if (process.platform !== 'darwin') { app.quit() } }) app.on('ready', function app...
de1cc4be2f607ca2af375a4981555a604b5be55c
.travis.yml
.travis.yml
language: python python: - 2.7 - 3.5 - 3.6 matrix: include: - python: 2.7 install: - pip install flake8 - pip install isort script: - flake8 tsstats/**/*.py - isort -c tsstats/**/*.py install: - pip install -r requirements.txt - pip install -r testing_requir...
language: python python: - 2.7 - 3.5 - 3.6 matrix: include: - python: 2.7 install: - pip install -r requirements.txt - pip install -r testing_requirements.txt - pip install flake8 - pip install isort script: - flake8 tsstats/**/*.py - isort -c tss...
Install (testing)requirements for style checks
Install (testing)requirements for style checks to fix unexpected results from isort
YAML
mit
Thor77/TeamspeakStats,Thor77/TeamspeakStats
yaml
## Code Before: language: python python: - 2.7 - 3.5 - 3.6 matrix: include: - python: 2.7 install: - pip install flake8 - pip install isort script: - flake8 tsstats/**/*.py - isort -c tsstats/**/*.py install: - pip install -r requirements.txt - pip install -...
b831bc2ee2c55ac443575770b5a01050fb7d387d
wercker.yml
wercker.yml
box: node:6-slim dev: steps: - npm-install - internal/watch: code: gulp build reload: true build: steps: - npm-install - hgen/gulp: tasks: default
box: node:6-slim dev: steps: - npm-install - internal/watch: code: gulp build reload: true build: steps: - npm-install - bower-install - hgen/gulp: tasks: default
Add Bower install step to Wercker build
Add Bower install step to Wercker build
YAML
mit
clhynfield/clayton-hynfield-resume,clhynfield/resume,clhynfield/resume
yaml
## Code Before: box: node:6-slim dev: steps: - npm-install - internal/watch: code: gulp build reload: true build: steps: - npm-install - hgen/gulp: tasks: default ## Instruction: Add Bower install step to Wercker build ## Code After: box: node:6-slim dev: steps: - ...
1c0969525f2500603fbb9f2360fbda3439831003
thingshub/CDZThingsHubErrorDomain.h
thingshub/CDZThingsHubErrorDomain.h
// // CDZThingsHubErrorDomain.h // thingshub // // Created by Chris Dzombak on 1/14/14. // Copyright (c) 2014 Chris Dzombak. All rights reserved. // #import "CDZThingsHubApplication.h" extern NSString * const kThingsHubErrorDomain; typedef NS_ENUM(NSInteger, CDZErrorCode) { CDZErrorCodeConfigurationValidatio...
// // CDZThingsHubErrorDomain.h // thingshub // // Created by Chris Dzombak on 1/14/14. // Copyright (c) 2014 Chris Dzombak. All rights reserved. // #import "CDZThingsHubApplication.h" extern NSString * const kThingsHubErrorDomain; typedef NS_ENUM(NSInteger, CDZErrorCode) { CDZErrorCodeTestError = 0, CDZ...
Make error domain constants mirror app return codes
Make error domain constants mirror app return codes
C
mit
cdzombak/thingshub,cdzombak/thingshub,cdzombak/thingshub
c
## Code Before: // // CDZThingsHubErrorDomain.h // thingshub // // Created by Chris Dzombak on 1/14/14. // Copyright (c) 2014 Chris Dzombak. All rights reserved. // #import "CDZThingsHubApplication.h" extern NSString * const kThingsHubErrorDomain; typedef NS_ENUM(NSInteger, CDZErrorCode) { CDZErrorCodeConfig...
61dd5851e87c2d68563ac96003da3e0262528525
app/assets/javascripts/seed_tray.js.coffee.erb
app/assets/javascripts/seed_tray.js.coffee.erb
class SeedTray constructor: () -> if window.Turbolinks != undefined $(window).on "page:change", => @ready() else $(@ready) @root = <%= Rails.application.class.to_s.split('::').first %> # Dynamically delegate ready to controller#action specific ready methods r...
<% app_name = Rails.application.class.to_s.split('::').first %> class SeedTray constructor: () -> if window.Turbolinks != undefined $(window).on "page:change", => @ready() else $(@ready) @root = <%= app_name %> # Dynamically delegate ready to controller#action s...
Refactor application name code generator
Refactor application name code generator
HTML+ERB
mit
LoamStudios/seed_tray,LoamStudios/seed_tray,LoamStudios/seed_tray,LoamStudios/seed_tray
html+erb
## Code Before: class SeedTray constructor: () -> if window.Turbolinks != undefined $(window).on "page:change", => @ready() else $(@ready) @root = <%= Rails.application.class.to_s.split('::').first %> # Dynamically delegate ready to controller#action specific rea...
9892b92fc2d0f91fa32816657aba4aaa47e2727f
util/missing-methods.p6
util/missing-methods.p6
use v6; use lib 'lib'; use Perl6::TypeGraph; =begin pod =head1 NAME missing-methods =head1 SYNOPSIS $ perl6 util/missing-methods.p6 =head1 DESCRIPTION A first cut at a program to find methods in a Perl 6 implementation which have not yet been documented. At present this involves a call to C<p6doc> in or...
use v6; use lib 'lib'; use Perl6::TypeGraph; =begin pod =head1 NAME missing-methods =head1 SYNOPSIS $ perl6 util/missing-methods.p6 =head1 DESCRIPTION A first cut at a program to find methods in a Perl 6 implementation which have not yet been documented. At present this involves a call to C<p6doc> in or...
Replace temporary variable in sub call
Replace temporary variable in sub call
Perl6
artistic-2.0
cygx/doc,hoelzro/perl6-doc,LLFourn/doc,jonathanstowe/doc,tbrowder/doc,LLFourn/doc,gfldex/doc,antquinonez/doc,stmuk/doc,MadcapJake/doc,dnmfarrell/doc,jkeenan/doc,jonathanstowe/doc,LLFourn/doc,dmaestro/doc,dha/doc,dha/doc,cygx/doc,MadcapJake/doc,muraiki/doc,perl6/doc,antquinonez/doc,jonathanstowe/doc,dmaestro/doc,cygx/do...
perl6
## Code Before: use v6; use lib 'lib'; use Perl6::TypeGraph; =begin pod =head1 NAME missing-methods =head1 SYNOPSIS $ perl6 util/missing-methods.p6 =head1 DESCRIPTION A first cut at a program to find methods in a Perl 6 implementation which have not yet been documented. At present this involves a call t...
ee125c679b63b75b98d0f62295b5ba4c9cd139d8
README.md
README.md
dataunity-hydra-client ====================== AngularJS JSON-LD Hydra client for Data Unity
AnguarJS Hydra Client ===================== *Warning: Work in progress. Not suitable for production use (yet).* *Major Issue: The API Document rel link hasn't been implemented yet (the client reads the API Doc from a static URL).* *Major Issue: The client is untested against any other API other than the Data Unity one...
Add better information to readme.
Add better information to readme.
Markdown
agpl-3.0
dataunity/dataunity-hydra-client
markdown
## Code Before: dataunity-hydra-client ====================== AngularJS JSON-LD Hydra client for Data Unity ## Instruction: Add better information to readme. ## Code After: AnguarJS Hydra Client ===================== *Warning: Work in progress. Not suitable for production use (yet).* *Major Issue: The API Document ...
1fa430bd6df8e3f43d43bd7ef06f2100bf5f3419
grails-app/conf/UrlMappings.groovy
grails-app/conf/UrlMappings.groovy
/* * CollabNet Subversion Edge * Copyright (C) 2010, CollabNet Inc. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (a...
/* * CollabNet Subversion Edge * Copyright (C) 2010, CollabNet Inc. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (a...
Add API for listing repos
[artf6692] : Add API for listing repos Rolling back r2639 for UrlMappings.groovy as formatting changes got it. * grails-app/conf/UrlMappings revert to r2628 git-svn-id: ec3c21ed833430e32134c61539c75518a6355d4e@2640 03e8f217-bfc6-4b7c-bcb7-0738c91e2c5f
Groovy
agpl-3.0
marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console,marcellodesales/svnedge-console
groovy
## Code Before: /* * CollabNet Subversion Edge * Copyright (C) 2010, CollabNet Inc. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the L...
4e057102c6a62e79cf4a9ceab67741a5763cec93
README.md
README.md
balanced-user ============= [![Build Status](https://travis-ci.org/balanced-cookbooks/balanced-user.png?branch=master)](https://travis-ci.org/balanced-cookbooks/balanced-user) Adding a new user ----------------- Welcome to Balanced! To get your SSH user created just update `recipes/default.rb` with a new `balanced_u...
balanced-user ============= [![Build Status](https://travis-ci.org/balanced-cookbooks/balanced-user.png?branch=master)](https://travis-ci.org/balanced-cookbooks/balanced-user) Adding a new user ----------------- Welcome to Balanced! To get your SSH user created just update `recipes/default.rb` with a new `balanced_u...
Add note about dotfiles to the readme.
Add note about dotfiles to the readme.
Markdown
apache-2.0
balanced-cookbooks/balanced-user
markdown
## Code Before: balanced-user ============= [![Build Status](https://travis-ci.org/balanced-cookbooks/balanced-user.png?branch=master)](https://travis-ci.org/balanced-cookbooks/balanced-user) Adding a new user ----------------- Welcome to Balanced! To get your SSH user created just update `recipes/default.rb` with a...
9717198f9b0da55e7d91d74217657fd9a5406282
README.md
README.md
This is a simple script that posts to the `deployment` channel of the Slack channel the bot is associated with (this bot is only intended to be used with The Gazelle, so hasn't been made further customizeable) ## Setup First copy the example config to create the actual config `cp config.example.js config.js` And t...
This is a simple script that posts to the `deployment` channel of the Slack channel the bot is associated with (this bot is only intended to be used with The Gazelle, so hasn't been made further customizeable) ## Setup First install the dependencies ``` npm install ``` Then copy the example config to create the ac...
Add installing dependencies to readme
Add installing dependencies to readme
Markdown
mit
thegazelle-ad/slack-deployment-bot
markdown
## Code Before: This is a simple script that posts to the `deployment` channel of the Slack channel the bot is associated with (this bot is only intended to be used with The Gazelle, so hasn't been made further customizeable) ## Setup First copy the example config to create the actual config `cp config.example.js c...
f5517b2376f243564f7a1cdd1fde19e9ea476c65
lib/pat.js
lib/pat.js
/* * pat * https://github.com/mikko/pat * * Copyright (c) 2013 Mikko Koski * Licensed under the MIT license. */ "use strict"; var _ = require("lodash"); function last(arr) { return arr.slice(-1)[0]; } function initial(arr) { return arr.slice(0, -1); } function toArray(args) { return Array.prototype.sli...
/* * pat * https://github.com/mikko/pat * * Copyright (c) 2013 Mikko Koski * Licensed under the MIT license. */ "use strict"; var _ = require("lodash"); function match(patterns, args) { var matches = patterns.filter(function(pattern) { return pattern.args.length === args.length && _.every(_.zip(pattern.a...
Remove unused helpers, use lodash
Remove unused helpers, use lodash
JavaScript
mit
rap1ds/pat
javascript
## Code Before: /* * pat * https://github.com/mikko/pat * * Copyright (c) 2013 Mikko Koski * Licensed under the MIT license. */ "use strict"; var _ = require("lodash"); function last(arr) { return arr.slice(-1)[0]; } function initial(arr) { return arr.slice(0, -1); } function toArray(args) { return Arr...
0a30c16a96ecc8a89d5a2353101b7247312dd39e
pybb/templates/pybb/user_topics.html
pybb/templates/pybb/user_topics.html
{% extends 'pybb/base.html' %} {% load url from future %} {% load pybb_tags i18n %} {% block breadcrumb %} {% pybb_get_profile target_user as target_profile %} {% include "pybb/breadcrumb.html" with object=target_profile extra_crumb=_('Topics') %} {% endblock %} {% block title %}{% trans "All topics created ...
{% extends 'pybb/base.html' %} {% load url from future %} {% load pybb_tags i18n %} {% block breadcrumb %} {% pybb_get_profile target_user as target_profile %} {% include "pybb/breadcrumb.html" with object=target_profile extra_crumb=_('Topics') %} {% endblock %} {% block title %}{% trans "All topics created ...
Make User Topics template consistent with User Posts template.
Make User Topics template consistent with User Posts template.
HTML
bsd-2-clause
ttyS15/pybbm,jonsimington/pybbm,artfinder/pybbm,hovel/pybbm,onecue/pybbm,wengole/pybbm,katsko/pybbm,wengole/pybbm,springmerchant/pybbm,NEERAJIITKGP/pybbm,just-work/pybbm,springmerchant/pybbm,skolsuper/pybbm,webu/pybbm,skolsuper/pybbm,ttyS15/pybbm,just-work/pybbm,just-work/pybbm,webu/pybbm,hovel/pybbm,artfinder/pybbm,Dy...
html
## Code Before: {% extends 'pybb/base.html' %} {% load url from future %} {% load pybb_tags i18n %} {% block breadcrumb %} {% pybb_get_profile target_user as target_profile %} {% include "pybb/breadcrumb.html" with object=target_profile extra_crumb=_('Topics') %} {% endblock %} {% block title %}{% trans "All...
dd1ae5a79e05d949d462a34038c311be98f6c695
.appveyor.yml
.appveyor.yml
image: - Visual Studio 2017 build_script: - git submodule update --init --recursive - mkdir build - cd build - sh: cmake .. - cmd: cmake .. -G "Visual Studio 15 2017" - cmake --build .
image: - Visual Studio 2015 - Visual Studio 2017 for: - matrix: only: - image: Visual Studio 2015 build_script: - git submodule update --init - mkdir build - cd build - cmake .. -G "Visual Studio 14 2015" - cmake --build . - matrix: only: - image: Visual Studio 2017 ...
Add Visual Studio 2015 build
AppVeyor: Add Visual Studio 2015 build
YAML
mit
pmer/TsunagariC,pmer/TsunagariC,pmer/TsunagariC
yaml
## Code Before: image: - Visual Studio 2017 build_script: - git submodule update --init --recursive - mkdir build - cd build - sh: cmake .. - cmd: cmake .. -G "Visual Studio 15 2017" - cmake --build . ## Instruction: AppVeyor: Add Visual Studio 2015 build ## Code After: image: - Visual Studio 2015 ...
61781b68ff2b58d62b50d940fb0a50f1a2475de5
src/main/resources/META-INF/tntutils_at.cfg
src/main/resources/META-INF/tntutils_at.cfg
public-f net.minecraft.world.Explosion field_77280_f #explosionSize public net.minecraft.world.Explosion field_77283_e #exploder public net.minecraft.util.registry.RegistryNamespaced field_148759_a #underlyingIntegerMap public net.minecraft.util.registry.RegistrySimple field_82596_a #registryObjects public-f net.minecr...
public-f net.minecraft.world.Explosion field_77280_f #explosionSize public net.minecraft.world.Explosion field_77283_e #exploder
Remove unneeded access transformer entries
Remove unneeded access transformer entries
INI
mit
ljfa-ag/TNTUtils
ini
## Code Before: public-f net.minecraft.world.Explosion field_77280_f #explosionSize public net.minecraft.world.Explosion field_77283_e #exploder public net.minecraft.util.registry.RegistryNamespaced field_148759_a #underlyingIntegerMap public net.minecraft.util.registry.RegistrySimple field_82596_a #registryObjects pub...
e8350e6e8612c9dfad3740443e236ade17208df9
.travis.yml
.travis.yml
language: ruby script: "bundle exec jekyll build"
language: ruby script: bundle exec jekyll build deploy: - provider: divshot api_key: secure: Gz5aBaaUuPykaeAPV7rlja10Q4n2bIpiVxhgJYWJZrVHfb2vWsG21gvYMoUg6jnz2kY/FpzqHvNrAHBKL1+pnCKbQn8hvVC4BgBbOB05w54ekFdH1cf95gMeOf5dJD5SUqYg3Ae4nQQbBQagzzFn7XlhVEE+JmhAD7Vyhhsymec= environment: development on: ...
Add auto divshot releases via Travis-CI
Add auto divshot releases via Travis-CI
YAML
mit
kevinoconnor7/kevinoconnor7.github.io,kevinoconnor7/kevinoconnor7.github.io,kevinoconnor7/kevinoconnor7.github.io
yaml
## Code Before: language: ruby script: "bundle exec jekyll build" ## Instruction: Add auto divshot releases via Travis-CI ## Code After: language: ruby script: bundle exec jekyll build deploy: - provider: divshot api_key: secure: Gz5aBaaUuPykaeAPV7rlja10Q4n2bIpiVxhgJYWJZrVHfb2vWsG21gvYMoUg6jnz2kY/FpzqHvNr...
306239e2c48549ec88471b418280cb65d8395af1
app/partials/subject-detail.jade
app/partials/subject-detail.jade
extends ../layout/partial block billboard | {{ subject.collection | capitalize }} Patient {{ subject.number }} block content .col-md-6.qi-modeling-profile h4.row.col-md-offset-1 | Imaging Profile button.btn.btn-med.qi-profile-btn( ng-show='subject.multiSession' ng-click='toggleMode...
extends ../layout/partial block billboard | {{ subject.collection | capitalize }} Patient {{ subject.number }} block content .col-md-6.qi-modeling-profile h4.row.col-md-offset-1 | Imaging Profile button.btn.btn-med.qi-profile-btn( ng-show='subject.multiSession' ng-click='toggleMode...
Change Table format to List.
Change Table format to List.
Jade
bsd-2-clause
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
jade
## Code Before: extends ../layout/partial block billboard | {{ subject.collection | capitalize }} Patient {{ subject.number }} block content .col-md-6.qi-modeling-profile h4.row.col-md-offset-1 | Imaging Profile button.btn.btn-med.qi-profile-btn( ng-show='subject.multiSession' ng-c...
10648f5ed5baf50b981073884db155c12e7b59e1
RNDigits.ios.js
RNDigits.ios.js
/** * @providesModule react-native-digits * @flow */ 'use strict'; var { NativeModules } = require('react-native'); var NativeRNDigits = NativeModules.RNDigits; var invariant = require('invariant'); /** * High-level docs for the RNDigits iOS API can be written here. */ var RNDigits = { view(callback) { Na...
/** * @providesModule react-native-digits * @flow */ 'use strict'; import React, { Component, NativeModules, PropTypes } from 'react-native' const { RNDigits } = NativeModules export default class Digits extends Component { componentWillReceiveProps(props) { if (props.visible && this.props.visible == false) ...
Refactor api into a react class
Refactor api into a react class
JavaScript
mit
fixt/react-native-digits,fixt/react-native-digits
javascript
## Code Before: /** * @providesModule react-native-digits * @flow */ 'use strict'; var { NativeModules } = require('react-native'); var NativeRNDigits = NativeModules.RNDigits; var invariant = require('invariant'); /** * High-level docs for the RNDigits iOS API can be written here. */ var RNDigits = { view(ca...
230203fd63b66718dd165388f71751f0ca4385f4
config/default.json
config/default.json
{ "MC_SERVER_PATH": "../MinecraftServer", "EXPORT_PATH": "./app/data", "EXPORT_FREQUENCY": 0, "PORT": 25566, "REPLAY": "bloody", "BASE_PATH": "", "BACKGROUND": "obsidian", "DISPLAY_SERVERNAME": true, "BANNER": "leaderboard.png" }
{ "MC_SERVER_PATH": "../MinecraftServer", "EXPORT_PATH": "./app/data", "EXPORT_AS_IMAGE": false, "PORT": 25566, "REPLAY": "bloody", "BASE_PATH": "", "BACKGROUND": "obsidian", "DISPLAY_SERVERNAME": true, "BANNER": "leaderboard.png" }
Change to boolean flag for exporting page as image
Change to boolean flag for exporting page as image
JSON
mit
nathancashmore/Leaderboard
json
## Code Before: { "MC_SERVER_PATH": "../MinecraftServer", "EXPORT_PATH": "./app/data", "EXPORT_FREQUENCY": 0, "PORT": 25566, "REPLAY": "bloody", "BASE_PATH": "", "BACKGROUND": "obsidian", "DISPLAY_SERVERNAME": true, "BANNER": "leaderboard.png" } ## Instruction: Change to boolean flag for exporting pag...
f63e215baa45ab2bccb0b0e32633f19acdf21521
composer.json
composer.json
{ "name": "silvioq/report", "description": "Clase de integración con DataTables", "type": "library", "licence": "MIT", "require": { "php": ">=5.6.0", "doctrine/orm": "^2.4", "symfony/http-foundation": "^3.2|^2.8", "symfony/http-kernel": "^3.2" }, "autoload": {...
{ "name": "silvioq/report", "description": "Clase de integración con DataTables", "type": "library", "license": "MIT", "require": { "php": ">=5.6.0", "doctrine/orm": "^2.4", "symfony/http-foundation": "^3.2|^2.8", "symfony/http-kernel": "^3.2" }, "autoload": {...
Fix typo and add archive exclusion
Fix typo and add archive exclusion
JSON
mit
silvioq/symfony-report-datatable
json
## Code Before: { "name": "silvioq/report", "description": "Clase de integración con DataTables", "type": "library", "licence": "MIT", "require": { "php": ">=5.6.0", "doctrine/orm": "^2.4", "symfony/http-foundation": "^3.2|^2.8", "symfony/http-kernel": "^3.2" }, ...
8357341344a8c1d8d0699c20716b02732ebb219e
src/world_component.js
src/world_component.js
/** @jsx React.DOM */ var CountriesComponent = require('./countries_component'); var PathsComponent = require('./paths_component'); var PolygonsComponent = require('./polygons_component'); var React = require('react'); module.exports = React.createClass({ selectCountry: function(country) { thi...
/** @jsx React.DOM */ var CountriesComponent = require('./countries_component'); var PathsComponent = require('./paths_component'); var PolygonsComponent = require('./polygons_component'); var React = require('react'); module.exports = React.createClass({ // Selects a given country. selectCountr...
Add deselectCountry method to WorldComponent.
Add deselectCountry method to WorldComponent.
JavaScript
mit
nullobject/hexgrid,nullobject/hexgrid
javascript
## Code Before: /** @jsx React.DOM */ var CountriesComponent = require('./countries_component'); var PathsComponent = require('./paths_component'); var PolygonsComponent = require('./polygons_component'); var React = require('react'); module.exports = React.createClass({ selectCountry: function(co...
2c26b27c72b7d01694d32d42398995a0974db869
day2/solution.js
day2/solution.js
let util = require("../util"); let input = require("fs").readFileSync("./data").toString(); let presentDimensions = input .split("\n") .map(present => present.split("x") .map(dimension => parseInt(dimension, 10)) .sort((a, b) => a - b) ) .map(present => { return { l: present[0], w: present[1], h:...
let util = require("../util"); let input = require("fs").readFileSync("./data").toString(); let presentDimensions = input .split("\n") .map(present => present.split("x") .map(dimension => parseInt(dimension, 10)) .sort((a, b) => a - b) ); let wrappingNeeded = util.sum(presentDimensions.map(present => pre...
Remove mapping of arbitrary lengths to l/w/h.
Remove mapping of arbitrary lengths to l/w/h. - No need - Unknown which is which anyway
JavaScript
mit
Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015,Mark-Simulacrum/advent-of-code-2015
javascript
## Code Before: let util = require("../util"); let input = require("fs").readFileSync("./data").toString(); let presentDimensions = input .split("\n") .map(present => present.split("x") .map(dimension => parseInt(dimension, 10)) .sort((a, b) => a - b) ) .map(present => { return { l: present[0], w: p...
8cac737c2a7b3cc1f076f308cdfcad76d696b424
app/models/sources/weather_source.js
app/models/sources/weather_source.js
/** * Provides weather data from the Yahoo API. The ID of a location can be found at * http://woeid.rosselliot.co.nz/. * * Provides data in the form: * { * temperature: "14" // in Celsius * code: "weather_condition_code" // one from http://developer.yahoo.com/weather/#codes * city: "city na...
/** * Provides weather data from the Yahoo API. The ID of a location can be found at * http://woeid.rosselliot.co.nz/. * * Provides data in the form: * { * temperature: "14" // in Celsius * code: "weather_condition_code" // one from http://developer.yahoo.com/weather/#codes * city: "city na...
Fix minor bug in weather source.
Fix minor bug in weather source.
JavaScript
mit
kloudsio/mucuchies,kloudsio/mucuchies,ShiftForward/mucuchies,ShiftForward/mucuchies
javascript
## Code Before: /** * Provides weather data from the Yahoo API. The ID of a location can be found at * http://woeid.rosselliot.co.nz/. * * Provides data in the form: * { * temperature: "14" // in Celsius * code: "weather_condition_code" // one from http://developer.yahoo.com/weather/#codes * ...
70ef54b7774255cf7835fd8afc1cba2492d9c1ea
README.md
README.md
sse-rails is a simple wrapper around ActionController::Live to hide all the complexity of streaming. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sse-rails' ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ gem install sse-rails ``` ## Usage Add these...
sse-rails is a simple wrapper around ActionController::Live to hide all the complexity of streaming. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sse-rails' ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ gem install sse-rails ``` ## Usage Add these...
Correct wrong indentation in code example
Correct wrong indentation in code example
Markdown
mit
as-cii/sse-rails
markdown
## Code Before: sse-rails is a simple wrapper around ActionController::Live to hide all the complexity of streaming. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sse-rails' ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ gem install sse-rails ``` ## ...
14ef069e62a5eb4de9f699a61d1ce30aadce1098
msisdn-gateway/sms/nexmo.js
msisdn-gateway/sms/nexmo.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var request = require("request"); var querystring = require("querystring"); function Nexmo(options...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var request = require("request"); var querystring = require("querystring"); function Nexmo(options...
Fix from phone number for US/Canadian messages.
Fix from phone number for US/Canadian messages.
JavaScript
mpl-2.0
mozilla-services/msisdn-gateway,mozilla-services/msisdn-gateway,mozilla-services/msisdn-gateway
javascript
## Code Before: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var request = require("request"); var querystring = require("querystring"); functi...
708723036dbd0aba0de3faa9a1c317e761f9359a
src/polyfills.ts
src/polyfills.ts
// This file includes polyfills needed by Angular 2 and is loaded before // the app. You can add your own extra polyfills to this file. import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int'; import 'core-js/es6/parse-float'; import 'core-js/es6/number'; ...
// This file includes polyfills needed by Angular 2 and is loaded before // the app. You can add your own extra polyfills to this file. import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int'; import 'core-js/es6/parse-float'; import 'core-js/es6/number'; ...
Remove proxy-polyfill from dev deps and try to stub it for tests
Remove proxy-polyfill from dev deps and try to stub it for tests
TypeScript
mit
gund/ng-http-interceptor,gund/ng-http-interceptor,gund/ng-http-interceptor,gund/ng2-http-interceptor,gund/ng2-http-interceptor,gund/ng2-http-interceptor
typescript
## Code Before: // This file includes polyfills needed by Angular 2 and is loaded before // the app. You can add your own extra polyfills to this file. import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function'; import 'core-js/es6/parse-int'; import 'core-js/es6/parse-float'; import 'core-...
f4d3cd7660fab42b87cd7231eac338207e51a817
README.md
README.md
BankTorrent ----------- BankTorrent is a distributed debt and payment tracking system. It allows groups of people to keep track of shared expenses and how much they owe eachother. Author: Jason D'Souza Todo ---- - [ ] Read-only ability - [X] User model, helpers, tests - [ ] Transactions model, helpers, tests ...
BankTorrent ----------- BankTorrent is a distributed debt and payment tracking system. It allows groups of people to keep track of shared expenses and how much they owe eachother. Author: Jason D'Souza Todo ---- ### Read-only ability - [X] User model, helpers, tests - [ ] Transactions model, helpers, tests, db sc...
Change readme checklist to work on github
Change readme checklist to work on github
Markdown
mit
jasonrdsouza/banktorrent,jasonrdsouza/banktorrent
markdown
## Code Before: BankTorrent ----------- BankTorrent is a distributed debt and payment tracking system. It allows groups of people to keep track of shared expenses and how much they owe eachother. Author: Jason D'Souza Todo ---- - [ ] Read-only ability - [X] User model, helpers, tests - [ ] Transactions model,...
f249d97381a36038d5dda7bd5a13857ee9fe25e0
fpnvm.sh
fpnvm.sh
set -e PREFIX=/usr/local/ CHECKOUT_DIR=nvm rm -rf $CHECKOUT_DIR git clone https://github.com/creationix/nvm.git $CHECKOUT_DIR cd nvm VERSION=`git describe --abbrev=0 --tags` git checkout master git reset --hard $VERSION cd .. fpm -f -s dir -t deb -n nvm -v $VERSION -x $CHECKOUT_DIR/test -x $CHECKOUT_DIR/'*.md' -x $CHEC...
set -e PREFIX=/usr/local/ CHECKOUT_DIR=nvm rm -rf $CHECKOUT_DIR git clone https://github.com/creationix/nvm.git $CHECKOUT_DIR cd nvm TAG=`git describe --abbrev=0 --tags` VERSION=`echo $TAG |sed 's/^[^0-9]*//'` git reset --hard $TAG cd .. fpm -f -s dir -t deb -n nvm -v $VERSION -x $CHECKOUT_DIR/test -x $CHECKOUT_DIR/'*....
Use only the numeric portion of the tag to generate the .deb version
Use only the numeric portion of the tag to generate the .deb version
Shell
mit
cwalsh/nvm-fpm
shell
## Code Before: set -e PREFIX=/usr/local/ CHECKOUT_DIR=nvm rm -rf $CHECKOUT_DIR git clone https://github.com/creationix/nvm.git $CHECKOUT_DIR cd nvm VERSION=`git describe --abbrev=0 --tags` git checkout master git reset --hard $VERSION cd .. fpm -f -s dir -t deb -n nvm -v $VERSION -x $CHECKOUT_DIR/test -x $CHECKOUT_DIR...
b373f85311b81a4aaf2104ac26f15f77bf2d42ba
.travis.yml
.travis.yml
language: python python: - '3.6' - '3.7' - '3.8' - '3.9' before_install: sudo apt-get install unzip before_script: - export TFVER=0.13.4 - export TFURL=https://releases.hashicorp.com/terraform/ - TFURL+=$TFVER - TFURL+="/terraform_" - TFURL+=$TFVER - TFURL+="_linux_amd64.zip" - wget $TFURL -O terraform_bi...
language: python python: - '3.6' - '3.7' - '3.8' before_install: sudo apt-get install unzip before_script: - export TFVER=0.13.4 - export TFURL=https://releases.hashicorp.com/terraform/ - TFURL+=$TFVER - TFURL+="/terraform_" - TFURL+=$TFVER - TFURL+="_linux_amd64.zip" - wget $TFURL -O terraform_bin.zip ...
Remove Python 3.9 as it is not yet available on Travis
Remove Python 3.9 as it is not yet available on Travis
YAML
mit
beelit94/python-terraform
yaml
## Code Before: language: python python: - '3.6' - '3.7' - '3.8' - '3.9' before_install: sudo apt-get install unzip before_script: - export TFVER=0.13.4 - export TFURL=https://releases.hashicorp.com/terraform/ - TFURL+=$TFVER - TFURL+="/terraform_" - TFURL+=$TFVER - TFURL+="_linux_amd64.zip" - wget $TFURL...
6fe0f8cf79b4f5017e1ca944a6e340cfcb49e034
app/frontend/views/purpose/route.js.jsx
app/frontend/views/purpose/route.js.jsx
//= require ./label //= require views/purchase/grid //= require flux/purpose/store App.Purpose.Route = (function () { 'use strict'; return React.createClass({ mixins: [ React.addons.PureRenderMixin, React.BindMixin(App.Purpose.Store, 'getStateFromStore') ], propTypes: { id: PropType...
//= require ./label //= require views/purchase/table //= require flux/purpose/store //= require flux/purchase/store App.Purpose.Route = (function () { 'use strict'; return React.createClass({ mixins: [ React.addons.PureRenderMixin, React.BindMixin(App.Purpose.Store, 'getStateFromStore') ], ...
Use table in purpose route
Use table in purpose route
JSX
mit
golmansax/my-gear,golmansax/my-gear,golmansax/my-gear
jsx
## Code Before: //= require ./label //= require views/purchase/grid //= require flux/purpose/store App.Purpose.Route = (function () { 'use strict'; return React.createClass({ mixins: [ React.addons.PureRenderMixin, React.BindMixin(App.Purpose.Store, 'getStateFromStore') ], propTypes: { ...
b73b406621136a66ac8fc24418a779867ee83356
impl/src/main/resources/application-production.properties
impl/src/main/resources/application-production.properties
server.contextPath = /javaland/ conference.url = http://dukecon.org${server.contextPath} keycloak.realm = javaland keycloak.realmKey = MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmfyyJv4hePbF8JiHaYELUxCsIYImOds9qBsLLprl16jpW2RKI2dDFXe8YS1FX9JNlFrTk+EQXinUAQKPIWTXsHQiKvbJvr946Tp7nGx+w80dA9gDA15zoNGisCH49pIf6d6lAE4YZ58...
server.contextPath = /javaland/ conference.url = http://dukecon.org${server.contextPath} keycloak.realm = javaland keycloak.realmKey = MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmfyyJv4hePbF8JiHaYELUxCsIYImOds9qBsLLprl16jpW2RKI2dDFXe8YS1FX9JNlFrTk+EQXinUAQKPIWTXsHQiKvbJvr946Tp7nGx+w80dA9gDA15zoNGisCH49pIf6d6lAE4YZ58...
Switch keycloak URL for production
Switch keycloak URL for production
INI
mit
dukecon/dukecon_server,jugda/dukecon_server,dukecon/dukecon_server,jugda/dukecon_server,jugda/dukecon_server,dukecon/dukecon_server
ini
## Code Before: server.contextPath = /javaland/ conference.url = http://dukecon.org${server.contextPath} keycloak.realm = javaland keycloak.realmKey = MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmfyyJv4hePbF8JiHaYELUxCsIYImOds9qBsLLprl16jpW2RKI2dDFXe8YS1FX9JNlFrTk+EQXinUAQKPIWTXsHQiKvbJvr946Tp7nGx+w80dA9gDA15zoNGisCH...
630e7e2ed8a41e132179088bdb3848c9fa87f9db
src/AppBundle/Tests/Controller/DreamControllerTest.php
src/AppBundle/Tests/Controller/DreamControllerTest.php
<?php namespace AppBundle\Tests\Controller; class DreamControllerTest extends AbstractApiTest { public function testGetDreamsAction() { $client = static::createClient(); $crawler = $client->request('GET', '/dreams'); $response = $client->getResponse(); $this->assertJsonRes...
<?php namespace AppBundle\Tests\Controller; class DreamControllerTest extends AbstractApiTest { /** * @dataProvider providerData */ public function testGetDreamsAction($status,$limit,$sort_by,$sort_order) { $client = static::createClient(); $crawler = $client->request('GET', ...
Create simple test on filters
Create simple test on filters
PHP
mit
geekhub-php/CheDream3
php
## Code Before: <?php namespace AppBundle\Tests\Controller; class DreamControllerTest extends AbstractApiTest { public function testGetDreamsAction() { $client = static::createClient(); $crawler = $client->request('GET', '/dreams'); $response = $client->getResponse(); $thi...
93691a5572245cde0526b175960d5cfbe331395a
src/java/org/apache/commons/codec/BinaryDecoder.java
src/java/org/apache/commons/codec/BinaryDecoder.java
/* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Replace custom author tags with @author Apache Software Foundation.
Replace custom author tags with @author Apache Software Foundation. git-svn-id: 774b6be6af7f353471b728afb213ebe1be89b277@130378 13f79535-47bb-0310-9956-ffa450edef68
Java
apache-2.0
mohanaraosv/commons-codec,mohanaraosv/commons-codec,adrie4mac/commons-codec,adrie4mac/commons-codec,mohanaraosv/commons-codec,apache/commons-codec,adrie4mac/commons-codec,apache/commons-codec,apache/commons-codec
java
## Code Before: /* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
3bf02422a7f5b6b9901055ad0046caf283cf6bd1
README.rst
README.rst
========= dutch-boy ========= Mock and memory leak detector library. Right now this just features a plugin for Nose 1.x and is in **beta**. This plugin: - Detects mocks that are not reset between tests. - Detects mocks created during tests that are not deleted by the end of the test. - Reports memory delta between t...
========= dutch-boy ========= .. image:: https://circleci.com/gh/Nextdoor/dutch-boy.svg?style=svg :target: https://circleci.com/gh/Nextdoor/dutch-boy Mock and memory leak detector library. Right now this just features a plugin for Nose 1.x and is in **beta**. This plugin: - Detects mocks that are not reset be...
Fix readme formatting and add status badge.
Fix readme formatting and add status badge.
reStructuredText
bsd-2-clause
Nextdoor/nose-leak-detector
restructuredtext
## Code Before: ========= dutch-boy ========= Mock and memory leak detector library. Right now this just features a plugin for Nose 1.x and is in **beta**. This plugin: - Detects mocks that are not reset between tests. - Detects mocks created during tests that are not deleted by the end of the test. - Reports memory...
888f8917af395e570b10a34b8059bc44481c0c97
doc/changes.rst
doc/changes.rst
===================== desisurvey change log ===================== 2016-11-19 (un-tagged) ---------------------- Moved things over from surveysim. Modified documentation. 2016-11-19 (0.2.0) ------------------ Last version before repackaging of surveysim.
===================== desisurvey change log ===================== 2016-11-29 (0.3.0) ------------------ First release after refactoring. 2016-11-19 (0.2.0) ------------------ Last version before repackaging of surveysim.
Update release notes and version.
Update release notes and version.
reStructuredText
bsd-3-clause
desihub/desisurvey,desihub/desisurvey
restructuredtext
## Code Before: ===================== desisurvey change log ===================== 2016-11-19 (un-tagged) ---------------------- Moved things over from surveysim. Modified documentation. 2016-11-19 (0.2.0) ------------------ Last version before repackaging of surveysim. ## Instruction: Update release notes and ve...
315ad5f2f31f82f8d42d2a65fe4f056b4e3fcfd7
tests/test_quickstart.py
tests/test_quickstart.py
import pytest from lektor.quickstart import get_default_author from lektor.quickstart import get_default_author_email from lektor.utils import locate_executable def test_default_author(os_user): assert get_default_author() == "Lektor Test" @pytest.mark.skipif(locate_executable("git") is None, reason="git not i...
import os import pytest from lektor.quickstart import get_default_author from lektor.quickstart import get_default_author_email from lektor.utils import locate_executable def test_default_author(os_user): assert get_default_author() == "Lektor Test" @pytest.mark.skipif(locate_executable("git") is None, reason...
Add test case for when git is not available
Add test case for when git is not available
Python
bsd-3-clause
lektor/lektor,lektor/lektor,lektor/lektor,lektor/lektor
python
## Code Before: import pytest from lektor.quickstart import get_default_author from lektor.quickstart import get_default_author_email from lektor.utils import locate_executable def test_default_author(os_user): assert get_default_author() == "Lektor Test" @pytest.mark.skipif(locate_executable("git") is None, r...
cb0858612d10f33545292e0cb33972dfa8758844
tests/unit/services/locale-test.js
tests/unit/services/locale-test.js
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:locale', 'LocaleService', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function() { var service = this.subject(); ok(service); });
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:locale', 'LocaleService'); test('it exists', function() { var service = this.subject(); ok(service); }); test('it streams itself', function() { expect(4); var service = this.subject(); var stream = service.get('stream'); service.set(...
Test streaming of `locale` service
Test streaming of `locale` service
JavaScript
mit
bobisjan/ember-format,bobisjan/ember-format
javascript
## Code Before: import { moduleFor, test } from 'ember-qunit'; moduleFor('service:locale', 'LocaleService', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function() { var service = this.subject(); ok(serv...
c1606777e28391f38ca17c088bf70b56f7a5e618
README.md
README.md
[![Build Status](https://travis-ci.org/bensheldon/panlexicon-rails.png)](https://travis-ci.org/bensheldon/panlexicon-rails) [![Coverage Status](https://coveralls.io/repos/bensheldon/panlexicon-rails/badge.png)](https://coveralls.io/r/bensheldon/panlexicon-rails) [![Dependency Status](https://gemnasium.com/bensheldon/p...
[![Build Status](https://travis-ci.org/bensheldon/panlexicon-rails.png)](https://travis-ci.org/bensheldon/panlexicon-rails) [![Coverage Status](https://coveralls.io/repos/bensheldon/panlexicon-rails/badge.png)](https://coveralls.io/r/bensheldon/panlexicon-rails) [![Dependency Status](https://gemnasium.com/bensheldon/p...
Add a words badge because badges
Add a words badge because badges
Markdown
mit
bensheldon/panlexicon-rails,bensheldon/panlexicon-rails,bensheldon/panlexicon-rails
markdown
## Code Before: [![Build Status](https://travis-ci.org/bensheldon/panlexicon-rails.png)](https://travis-ci.org/bensheldon/panlexicon-rails) [![Coverage Status](https://coveralls.io/repos/bensheldon/panlexicon-rails/badge.png)](https://coveralls.io/r/bensheldon/panlexicon-rails) [![Dependency Status](https://gemnasium....
f469a7b1acdf6fd3a061475b52fb609c2b23b0b2
.github/stale.yml
.github/stale.yml
daysUntilStale: 60 # Number of days of inactivity before a stale Issue or Pull Request is closed # 2**32-1 until https://github.com/probot/stale/issues/79 is fixed daysUntilClose: 4294967295 # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable exemptLabels: - "status: nee...
daysUntilStale: 60 # Number of days of inactivity before a stale Issue or Pull Request is closed # 100 years until https://github.com/probot/stale/issues/79 is fixed daysUntilClose: 36500 # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable exemptLabels: - "status: needs ...
Change Stale daysTillClose to 100 years
Change Stale daysTillClose to 100 years
YAML
bsd-3-clause
drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl
yaml
## Code Before: daysUntilStale: 60 # Number of days of inactivity before a stale Issue or Pull Request is closed # 2**32-1 until https://github.com/probot/stale/issues/79 is fixed daysUntilClose: 4294967295 # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable exemptLabels: ...
31aa429a86abbec426316fd9a489e85361ecdb00
test/cypress/support/index.js
test/cypress/support/index.js
/* eslint-disable */ import '@cypress/code-coverage/support' require('./commands')
/* eslint-disable */ import '@cypress/code-coverage/support' require('./commands') Cypress.Keyboard.defaults({ keystrokeDelay: 5, })
Increase typing speed when filling out forms x2
Increase typing speed when filling out forms x2
JavaScript
mit
uktrade/data-hub-fe-beta2,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-frontend
javascript
## Code Before: /* eslint-disable */ import '@cypress/code-coverage/support' require('./commands') ## Instruction: Increase typing speed when filling out forms x2 ## Code After: /* eslint-disable */ import '@cypress/code-coverage/support' require('./commands') Cypress.Keyboard.defaults({ keystrokeDelay: 5, })
9fb0d0653c28cebd74cfaa5d03fff3ad7f60fc30
shippable.yml
shippable.yml
language: ruby rvm: 2.2.2 bundler_args: --binstubs before_install: - gem install capistrano before_script: - rm -rf shippable/* script: bundle exec rspec after_success: - cap -v production deploy:execute_on_server
language: ruby rvm: 2.2.2 bundler_args: --binstubs before_script: - rm -rf shippable/* script: bundle exec rspec after_success: - bundle exec cap production deploy:execute_on_server --trace
Revert "install capistrano on CI"
Revert "install capistrano on CI" This reverts commit dbeaaccd433e8e0347f97e10260d9125495ac6c0.
YAML
mit
rajivrnair/brahma,rajivrnair/brahma
yaml
## Code Before: language: ruby rvm: 2.2.2 bundler_args: --binstubs before_install: - gem install capistrano before_script: - rm -rf shippable/* script: bundle exec rspec after_success: - cap -v production deploy:execute_on_server ## Instruction: Revert "install capistrano on CI" This reverts commit dbeaac...
f5ee7a4f2329e9dfbb4fedf9cc43fd16718cc5b9
src/reducers/targets.js
src/reducers/targets.js
const UPDATE_EDITING_TARGET = 'scratch-gui/targets/UPDATE_EDITING_TARGET'; const UPDATE_TARGET_LIST = 'scratch-gui/targets/UPDATE_TARGET_LIST'; const initialState = { sprites: {}, stage: {} }; const reducer = function (state, action) { if (typeof state === 'undefined') state = initialState; switch (ac...
const UPDATE_EDITING_TARGET = 'scratch-gui/targets/UPDATE_EDITING_TARGET'; const UPDATE_TARGET_LIST = 'scratch-gui/targets/UPDATE_TARGET_LIST'; const initialState = { sprites: {}, stage: {} }; const reducer = function (state, action) { if (typeof state === 'undefined') state = initialState; switch (ac...
Fix argument order for Object.assign
Fix argument order for Object.assign Thanks @paulkaplan
JavaScript
bsd-3-clause
cwillisf/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui
javascript
## Code Before: const UPDATE_EDITING_TARGET = 'scratch-gui/targets/UPDATE_EDITING_TARGET'; const UPDATE_TARGET_LIST = 'scratch-gui/targets/UPDATE_TARGET_LIST'; const initialState = { sprites: {}, stage: {} }; const reducer = function (state, action) { if (typeof state === 'undefined') state = initialState...
9f5952fcaf5a0446ece8b849d6c88f2fd02a05b9
bower.json
bower.json
{ "name": "costanza", "version": "1.3.0", "ignore": [ "**/.*", "node_modules", "/components", "bower_components", "Jakefile", "package.json", "test", "tests" ], "devDependencies": { "backbone": "~1.0.0", "handlebars": "1.x.x", "lumbar-loader": "~1.2.5", "thorax"...
{ "name": "costanza", "version": "1.3.0", "main": "js/costanza.js", "ignore": [ "**/.*", "node_modules", "/components", "bower_components", "Jakefile", "package.json", "test", "tests" ], "devDependencies": { "backbone": "~1.0.0", "handlebars": "1.x.x", "lumbar-loa...
Define main module entry point
Define main module entry point
JSON
mit
walmartlabs/costanza
json
## Code Before: { "name": "costanza", "version": "1.3.0", "ignore": [ "**/.*", "node_modules", "/components", "bower_components", "Jakefile", "package.json", "test", "tests" ], "devDependencies": { "backbone": "~1.0.0", "handlebars": "1.x.x", "lumbar-loader": "~1.2....
a006c5f13e25d36f72e0878b4245e0edb126da68
ckanext/requestdata/controllers/search.py
ckanext/requestdata/controllers/search.py
try: # CKAN 2.7 and later from ckan.common import config except ImportError: # CKAN 2.6 and earlier from pylons import config is_hdx = config.get('hdx_portal') if is_hdx: from ckanext.hdx_search.controllers.search_controller import HDXSearchController as PackageController else: from ckan.contr...
try: # CKAN 2.7 and later from ckan.common import config except ImportError: # CKAN 2.6 and earlier from pylons import config from paste.deploy.converters import asbool is_hdx = asbool(config.get('hdx_portal', False)) if is_hdx: from ckanext.hdx_search.controllers.search_controller\ impor...
Convert hdx_portal to a boolean value
Convert hdx_portal to a boolean value
Python
agpl-3.0
ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata
python
## Code Before: try: # CKAN 2.7 and later from ckan.common import config except ImportError: # CKAN 2.6 and earlier from pylons import config is_hdx = config.get('hdx_portal') if is_hdx: from ckanext.hdx_search.controllers.search_controller import HDXSearchController as PackageController else: ...