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
0b264c9c64a02cad2a6fb00d21005f5dea698cec
Sources/WebP/WebPDecoder+Platform.swift
Sources/WebP/WebPDecoder+Platform.swift
import Foundation import CWebP #if os(macOS) || os(iOS) import CoreGraphics extension WebPDecoder { public func decode(_ webPData: Data, options: WebPDecoderOptions) throws -> CGImage { let feature = try WebPImageInspector.inspect(webPData) let height: Int = options.useScaling ? options.scaledHe...
import Foundation import CWebP #if os(macOS) || os(iOS) import CoreGraphics extension WebPDecoder { public func decode(_ webPData: Data, options: WebPDecoderOptions) throws -> CGImage { let feature = try WebPImageInspector.inspect(webPData) let height: Int = options.useScaling ? options.scaledHe...
Use CFData to instantiate CGDataProvider
Use CFData to instantiate CGDataProvider In order to fix the issue that CGDataProvider reads the memory kept by decoded Data asynchornously, meaning that decoded data will be automatically released as per how Swift treats value semantics. This change instead uses another initialiser of CGDataProvider which reads Data ...
Swift
mit
ainame/Swift-WebP,ainame/Swift-WebP,ainame/Swift-WebP
swift
## Code Before: import Foundation import CWebP #if os(macOS) || os(iOS) import CoreGraphics extension WebPDecoder { public func decode(_ webPData: Data, options: WebPDecoderOptions) throws -> CGImage { let feature = try WebPImageInspector.inspect(webPData) let height: Int = options.useScaling ? ...
69dd9057c1009d9c047f45908080a55ac3223e4c
examples/svm/plot_svm_regression.py
examples/svm/plot_svm_regression.py
############################################################################### # Generate sample data import numpy as np X = np.sort(5*np.random.rand(40, 1), axis=0) y = np.sin(X).ravel() ############################################################################### # Add noise to targets y[::5] += 3*(0.5 - np.rand...
############################################################################### # Generate sample data import numpy as np X = np.sort(5*np.random.rand(40, 1), axis=0) y = np.sin(X).ravel() ############################################################################### # Add noise to targets y[::5] += 3*(0.5 - np.rand...
Fix forgotten import in example
BUG: Fix forgotten import in example
Python
bsd-3-clause
NunoEdgarGub1/scikit-learn,f3r/scikit-learn,mehdidc/scikit-learn,icdishb/scikit-learn,xiaoxiamii/scikit-learn,MatthieuBizien/scikit-learn,Vimos/scikit-learn,walterreade/scikit-learn,lesteve/scikit-learn,hugobowne/scikit-learn,cauchycui/scikit-learn,joshloyal/scikit-learn,shangwuhencc/scikit-learn,mattilyra/scikit-learn...
python
## Code Before: ############################################################################### # Generate sample data import numpy as np X = np.sort(5*np.random.rand(40, 1), axis=0) y = np.sin(X).ravel() ############################################################################### # Add noise to targets y[::5] += ...
67bcb9ae6e1eb0f3f77af2dc02ad332671926e32
core/src/main/scala/search/Search.scala
core/src/main/scala/search/Search.scala
package scalex package search import db.DefRepo import com.github.ornicar.paginator._ import scalaz.Validation import scalaz.Scalaz.{ success, failure } object Search extends scalaz.Validations { private val mixedRegex = """^([^\:]*)\:\s(.+)$""".r val defs: List[index.Def] = db.IndexRepo.findAll def find(qu...
package scalex package search import db.DefRepo import com.github.ornicar.paginator._ import scalaz.Validation import scalaz.Scalaz.{ success, failure } object Search extends scalaz.Validations { private val mixedRegex = """^([^\:]*)\:\s(.+)$""".r val defs: List[index.Def] = db.IndexRepo.findAll def find(qu...
Rewrite main search routine to make better use of scalaz validation
Rewrite main search routine to make better use of scalaz validation
Scala
mit
kzys/scalex,ornicar/scalex
scala
## Code Before: package scalex package search import db.DefRepo import com.github.ornicar.paginator._ import scalaz.Validation import scalaz.Scalaz.{ success, failure } object Search extends scalaz.Validations { private val mixedRegex = """^([^\:]*)\:\s(.+)$""".r val defs: List[index.Def] = db.IndexRepo.findAl...
d72df78e0dea27ae93bde52e43cec360a963b32c
openprescribing/frontend/management/commands/delete_measure.py
openprescribing/frontend/management/commands/delete_measure.py
from django.conf import settings from django.core.management import BaseCommand, CommandError from frontend.models import Measure class Command(BaseCommand): def handle(self, measure_id, **options): if not measure_id.startswith(settings.MEASURE_PREVIEW_PREFIX): raise CommandError( ...
from django.conf import settings from django.core.management import BaseCommand, CommandError from frontend.models import Measure from gcutils.bigquery import Client class Command(BaseCommand): def handle(self, measure_id, **options): if not measure_id.startswith(settings.MEASURE_PREVIEW_PREFIX): ...
Delete measures from BigQuery as well
Delete measures from BigQuery as well
Python
mit
ebmdatalab/openprescribing,annapowellsmith/openpresc,ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing,annapowellsmith/openpresc
python
## Code Before: from django.conf import settings from django.core.management import BaseCommand, CommandError from frontend.models import Measure class Command(BaseCommand): def handle(self, measure_id, **options): if not measure_id.startswith(settings.MEASURE_PREVIEW_PREFIX): raise CommandEr...
95c05fca213cbd1566bc8908c7b329c9df04ed8b
Mini/Twig/Extension/GeshiExtension.php
Mini/Twig/Extension/GeshiExtension.php
<?php require '../vendor/autoload.php'; namespace Mini\Twig\Extension; class GeshiExtension extends \Twig_Extension { public function getFilters() { return array( 'geshi' => new \Twig_Filter_Method($this, 'geshiHighlight'), ); } public function geshiHighlight($source, $lang...
<?php namespace Mini\Twig\Extension; require '../vendor/autoload.php'; class GeshiExtension extends \Twig_Extension { public function getFilters() { return array( 'geshi' => new \Twig_Filter_Method($this, 'geshiHighlight'), ); } public function geshiHighlight($source, $lan...
Fix namespace in twig extension
Fix namespace in twig extension
PHP
mit
freaktechnik/twitchbots,freaktechnik/twitchbots,freaktechnik/twitchbots
php
## Code Before: <?php require '../vendor/autoload.php'; namespace Mini\Twig\Extension; class GeshiExtension extends \Twig_Extension { public function getFilters() { return array( 'geshi' => new \Twig_Filter_Method($this, 'geshiHighlight'), ); } public function geshiHighligh...
d4df88509667035076c244e0e6e51ea2761f4050
src/main/java/org/vaadin/viritin/util/Java8LocaleNegotiationStrategy.java
src/main/java/org/vaadin/viritin/util/Java8LocaleNegotiationStrategy.java
package org.vaadin.viritin.util; import java.util.*; import java.util.Locale.LanguageRange; import org.vaadin.viritin.util.VaadinLocale.LocaleNegotiationStrategey; import com.vaadin.server.VaadinRequest; /** * Implementation of {@link LocaleNegotiationStrategey} which uses java 1.8 * {@link Locale#lookup(List, Co...
package org.vaadin.viritin.util; import java.lang.reflect.Method; import java.util.*; import org.vaadin.viritin.util.VaadinLocale.LocaleNegotiationStrategey; import com.vaadin.server.VaadinRequest; /** * Implementation of {@link LocaleNegotiationStrategey} which uses java 1.8 * {@link Locale#lookup(List, Collecti...
Use reflection for java 1.8 classes
Use reflection for java 1.8 classes
Java
apache-2.0
cbmeeks/viritin,pbaris/viritin,qwasli/maddon,viritin/viritin,pbaris/viritin,viritin/viritin
java
## Code Before: package org.vaadin.viritin.util; import java.util.*; import java.util.Locale.LanguageRange; import org.vaadin.viritin.util.VaadinLocale.LocaleNegotiationStrategey; import com.vaadin.server.VaadinRequest; /** * Implementation of {@link LocaleNegotiationStrategey} which uses java 1.8 * {@link Locale...
023c2020b3f94dadb86ead782c07006732d9ab56
actionpack/lib/action_controller/metal/url_for.rb
actionpack/lib/action_controller/metal/url_for.rb
module ActionController module UrlFor extend ActiveSupport::Concern include AbstractController::UrlFor def url_options options = {} if _routes.equal?(env["action_dispatch.routes"]) options[:script_name] = request.script_name.dup end super.merge(options).reverse_merge( ...
module ActionController module UrlFor extend ActiveSupport::Concern include AbstractController::UrlFor def url_options options = {} @_routes ||= nil if _routes.equal?(env["action_dispatch.routes"]) options[:script_name] = request.script_name.dup end super.merge(opt...
Initialize @_routes if not defined yet, avoiding more warnings.
Initialize @_routes if not defined yet, avoiding more warnings.
Ruby
mit
Spin42/rails,maicher/rails,bogdanvlviv/rails,bogdanvlviv/rails,Erol/rails,illacceptanything/illacceptanything,koic/rails,richseviora/rails,kmayer/rails,eileencodes/rails,brchristian/rails,untidy-hair/rails,riseshia/railsguides.kr,tijwelch/rails,bolek/rails,kirs/rails-1,tjschuck/rails,bradleypriest/rails,kddeisz/rails,g...
ruby
## Code Before: module ActionController module UrlFor extend ActiveSupport::Concern include AbstractController::UrlFor def url_options options = {} if _routes.equal?(env["action_dispatch.routes"]) options[:script_name] = request.script_name.dup end super.merge(options).r...
accbfe3e55769e193fa15f0691759f50b490a3a3
.fixtures.yml
.fixtures.yml
fixtures: repositories: monitoring_check: repo: 'git@sysgit.yelpcorp.com:mirrors/Yelp/puppet-monitoring_check.git' ref: '8b3d5d4e0bb43d072339a58e305b39ebd319c7a6' stdlib: repo: 'git@sysgit.yelpcorp.com:mirrors/fhats/puppetlabs-stdlib.git' ref: 'origin/410_add_convert_base' symlinks...
fixtures: repositories: monitoring_check: repo: 'git@sysgit.yelpcorp.com:mirrors/Yelp/puppet-monitoring_check.git' ref: '8b3d5d4e0bb43d072339a58e305b39ebd319c7a6' stdlib: repo: 'git@sysgit.yelpcorp.com:mirrors/puppetlabs/puppetlabs-stdlib.git' ref: '4.3.2' symlinks: cron: "#{so...
Fix stdlib to fix tests
Fix stdlib to fix tests
YAML
apache-2.0
Yelp/puppet-cron,dnephin/puppet-cron,dnephin/puppet-cron,Yelp/puppet-cron,dnephin/puppet-cron,Yelp/puppet-cron
yaml
## Code Before: fixtures: repositories: monitoring_check: repo: 'git@sysgit.yelpcorp.com:mirrors/Yelp/puppet-monitoring_check.git' ref: '8b3d5d4e0bb43d072339a58e305b39ebd319c7a6' stdlib: repo: 'git@sysgit.yelpcorp.com:mirrors/fhats/puppetlabs-stdlib.git' ref: 'origin/410_add_convert_...
dc8e406c92a5a5f88dea9a14d0de4e3900387fa7
spec/shared_examples/a_model_with_an_update_action.rb
spec/shared_examples/a_model_with_an_update_action.rb
shared_examples_for "a model with an update action" do |valid_id, changes| describe "#update" do it "updates an existing object" do model = nil original_values = nil VCR.use_cassette("#{classname}_show") do model = Namely::Profile.find(valid_id) end expect(model.middle_name)...
shared_examples_for "a model with an update action" do |valid_id, changes| describe "#update" do it "updates an existing object" do model = nil original_values = nil VCR.use_cassette("#{classname}_show") do model = described_class.find(valid_id) end changes.each do |attribu...
Generalize tests for update action
Generalize tests for update action
Ruby
mit
fertobar/ruby-client,namely/ruby-client,fertobar/ruby-client,namely/ruby-client
ruby
## Code Before: shared_examples_for "a model with an update action" do |valid_id, changes| describe "#update" do it "updates an existing object" do model = nil original_values = nil VCR.use_cassette("#{classname}_show") do model = Namely::Profile.find(valid_id) end expect(mo...
9c9dcf64136e83bc27dc074020ee236d4284de54
config/routes.rb
config/routes.rb
Rails.application.routes.draw do root 'home#show' scope '/:locale' do resource :styleguide, controller: 'styleguide', only: 'show', constraints: { locale: I18n.default_locale } do member do get 'components' get 'forms' get 'layouts' ...
Rails.application.routes.draw do root 'home#show' scope '/:locale' do resource :styleguide, controller: 'styleguide', only: 'show', constraints: { locale: I18n.default_locale } do member do get 'components' get 'forms' get 'layouts' ...
Configure route for error page.
Configure route for error page.
Ruby
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
ruby
## Code Before: Rails.application.routes.draw do root 'home#show' scope '/:locale' do resource :styleguide, controller: 'styleguide', only: 'show', constraints: { locale: I18n.default_locale } do member do get 'components' get 'forms' ...
a4393912959d8e7f2851683105f627ff6719951d
app/presenters/redirect_presenter.rb
app/presenters/redirect_presenter.rb
class RedirectPresenter attr_reader :redirect def initialize(redirect) @redirect = redirect end def render_for_publishing_api { content_id: redirect.content_id, format: 'redirect', publishing_app: 'collections-publisher', update_type: 'major', redirects: redirect_routes, ...
class RedirectPresenter attr_reader :redirect def initialize(redirect) @redirect = redirect end def render_for_publishing_api { content_id: redirect.content_id, base_path: base_path, format: 'redirect', publishing_app: 'collections-publisher', update_type: 'major', ...
Add base path to redirects.
Add base path to redirects.
Ruby
mit
alphagov/collections-publisher,alphagov/collections-publisher,alphagov/collections-publisher
ruby
## Code Before: class RedirectPresenter attr_reader :redirect def initialize(redirect) @redirect = redirect end def render_for_publishing_api { content_id: redirect.content_id, format: 'redirect', publishing_app: 'collections-publisher', update_type: 'major', redirects: r...
3bf0ec7178c7de062ceb8837f05b2bef10b442ba
apps.rb
apps.rb
def cask(name); dep name, :template => "icelab:cask"; end # Avoid repitition below cask "dash" cask "fork" cask "google-chrome" cask "imageoptim" cask "iterm2" cask "launchbar" cask "licecap" cask "postico" cask "sublime-text" cask "virtualbox" cask "visual-studio-code" cask "vlc"
dep "apps" do requires "mac app store apps" requires "homebrew cask apps" end dep "mac app store apps" do requires "Pixelmator.mas" requires "Ulysses.mas" end dep "homebrew cask apps" do requires "caffeine" requires "dash" requires "fork" requires "google-chrome" requires "imageoptim" requires "it...
Restructure reps and add Caffeine
Restructure reps and add Caffeine
Ruby
mit
josephinehall/babushka-deps
ruby
## Code Before: def cask(name); dep name, :template => "icelab:cask"; end # Avoid repitition below cask "dash" cask "fork" cask "google-chrome" cask "imageoptim" cask "iterm2" cask "launchbar" cask "licecap" cask "postico" cask "sublime-text" cask "virtualbox" cask "visual-studio-code" cask "vlc" ## Instruction: Rest...
3733643a8888eb4429bc4405f529e36fa69c9e61
test/browserstack/tests_list.php
test/browserstack/tests_list.php
<?php return call_user_func(function () { $all_caps = json_decode(file_get_contents(__DIR__ . '/browsers.json'), true); return $all_caps; });
<?php return call_user_func(function () { $all_caps = json_decode(file_get_contents(__DIR__ . '/browsers.json'), true); foreach ($all_caps as $cap) { if ($cap['os'] == 'Windows' && $cap['os_version'] == 'XP') continue; yield $cap; } });
Exclude Windows XP from testing
Exclude Windows XP from testing
PHP
agpl-3.0
kiboit/phast,kiboit/phast,kiboit/phast
php
## Code Before: <?php return call_user_func(function () { $all_caps = json_decode(file_get_contents(__DIR__ . '/browsers.json'), true); return $all_caps; }); ## Instruction: Exclude Windows XP from testing ## Code After: <?php return call_user_func(function () { $all_caps = json_decode(file_get_contents...
8539bf5fbe109a0b45eb52b71a51ebe72cb7522d
questionnaire/static/js/finalize_questionnaire.js
questionnaire/static/js/finalize_questionnaire.js
function makePostRequest(url, data) { console.log(url); console.log(data); var jForm = $('<form></form>'); jForm.attr('action', url); jForm.attr('method', 'post'); for (name in data) { var jInput = $("<input>"); jInput.attr('name', name); jInput.attr('value', data[name]);...
function makePostRequest(url, data) { var jForm = $('<form></form>'); jForm.attr('action', url); jForm.attr('method', 'post'); for (name in data) { var jInput = $("<input/>"); jInput.attr({'name' : name, 'value': data[name], 'type': 'hidden'}); jForm.append(jInput); } var...
Fix finalize for safari, firefox.
Fix finalize for safari, firefox.
JavaScript
bsd-3-clause
eJRF/ejrf,eJRF/ejrf,eJRF/ejrf,eJRF/ejrf
javascript
## Code Before: function makePostRequest(url, data) { console.log(url); console.log(data); var jForm = $('<form></form>'); jForm.attr('action', url); jForm.attr('method', 'post'); for (name in data) { var jInput = $("<input>"); jInput.attr('name', name); jInput.attr('valu...
4751aecccb5cad2668e64b11c5bfb263c7402fad
spec/controllers/comments_controller_spec.rb
spec/controllers/comments_controller_spec.rb
require 'spec_helper' describe CommentsController do before(:each) do @user = create(:user) @idea = create(:idea) @comment = create(:comment) @user.confirm! sign_in @user end describe "GET 'new'" do it "returns http success" do get 'new', { :idea_id => @idea.id } resp...
require 'spec_helper' describe CommentsController do before(:each) do @user = create(:user) @idea = create(:idea) @comment = create(:comment) @user.confirm! sign_in @user end describe "GET 'new'" do it "returns http success" do get 'new', { :idea_id => @idea.id } expe...
Fix Comments controller expectation syntax
Fix Comments controller expectation syntax Spec should be standardized to use the 'expect(...).to' syntax in favor of the '....should' syntax.
Ruby
agpl-3.0
robinsonj/P4IdeaX,robinsonj/P4IdeaX
ruby
## Code Before: require 'spec_helper' describe CommentsController do before(:each) do @user = create(:user) @idea = create(:idea) @comment = create(:comment) @user.confirm! sign_in @user end describe "GET 'new'" do it "returns http success" do get 'new', { :idea_id => @idea...
ea1a61831c159473f7ab33f0cd5196e9cb9e4297
Tests/LinuxMain.swift
Tests/LinuxMain.swift
import XCTest @testable import AppLogicTests XCTMain([ // AppLogicTests testCase(RouteTests.allTests), testCase(V1PublicCollectionTests.allTests), testCase(V1AdminCollectionTests.allTests) ]) #endif
import XCTest @testable import AppLogicTests XCTMain([ // AppLogicTests testCase(RouteTests.allTests), testCase(V1PublicCollectionTests.allTests), testCase(V1ManageCollectionTests.allTests), testCase(V1AdminCollectionTests.allTests) ]) #endif
Add manage v1 tests in test suit for Linux
Add manage v1 tests in test suit for Linux
Swift
mit
Stosyk/stosyk-service
swift
## Code Before: import XCTest @testable import AppLogicTests XCTMain([ // AppLogicTests testCase(RouteTests.allTests), testCase(V1PublicCollectionTests.allTests), testCase(V1AdminCollectionTests.allTests) ]) #endif ## Instruction: Add manage v1 tests in test suit for Linux ## Code After: import XC...
afc84c6d66e0f6ca0c975a1831d2ed58f9f45972
src/java/org/jsimpledb/parse/expr/VarNode.java
src/java/org/jsimpledb/parse/expr/VarNode.java
/* * Copyright (C) 2014 Archie L. Cobbs. All rights reserved. * * $Id$ */ package org.jsimpledb.parse.expr; import org.jsimpledb.parse.ParseSession; /** * {@link Node} representing a parsed {@link ParseSession} variable. * * @see ParseSession#getVars */ public class VarNode extends ConstNode { /** ...
/* * Copyright (C) 2014 Archie L. Cobbs. All rights reserved. * * $Id$ */ package org.jsimpledb.parse.expr; import org.jsimpledb.parse.ParseSession; /** * {@link Node} representing a parsed {@link ParseSession} variable. * * @see ParseSession#getVars */ public class VarNode extends ConstNode { /** ...
Remove cast made redundant by r780.
Remove cast made redundant by r780.
Java
apache-2.0
archiecobbs/jsimpledb,tempbottle/jsimpledb,permazen/permazen,mmayorivera/jsimpledb,tempbottle/jsimpledb,mmayorivera/jsimpledb,gmsconstantino/jsimpledb,permazen/permazen,tempbottle/jsimpledb,archiecobbs/jsimpledb,archiecobbs/jsimpledb,mmayorivera/jsimpledb,gmsconstantino/jsimpledb,gmsconstantino/jsimpledb,permazen/perma...
java
## Code Before: /* * Copyright (C) 2014 Archie L. Cobbs. All rights reserved. * * $Id$ */ package org.jsimpledb.parse.expr; import org.jsimpledb.parse.ParseSession; /** * {@link Node} representing a parsed {@link ParseSession} variable. * * @see ParseSession#getVars */ public class VarNode extends ConstNode...
c42a20ae051f59c7fcef5e5b824e817b90424843
templates/SilverStripe/CMS/Controllers/Includes/CMSMain_PreviewPanel.ss
templates/SilverStripe/CMS/Controllers/Includes/CMSMain_PreviewPanel.ss
<div class="cms-preview east" data-layout-type="border"> <div class="preview-note"><span><!-- --></span><%t CMSPageHistoryController_versions_ss.PREVIEW 'Website preview' %></div> <div class="panel-scrollable panel-scrollable--single-toolbar"> <div class="preview-device-outer"> <div class="preview-device-inner">...
<div class="cms-preview east" data-layout-type="border"> <div class="preview-note"><span><!-- --></span><%t CMSPageHistoryController_versions_ss.PREVIEW 'Website preview' %></div> <div class="panel panel--scrollable panel--single-toolbar"> <div class="preview-device-outer"> <div class="preview-device-inner"> ...
Update preview classes as area broken
Update preview classes as area broken
Scheme
bsd-3-clause
silverstripe/silverstripe-cms,jonom/silverstripe-cms,jonom/silverstripe-cms,silverstripe/silverstripe-cms
scheme
## Code Before: <div class="cms-preview east" data-layout-type="border"> <div class="preview-note"><span><!-- --></span><%t CMSPageHistoryController_versions_ss.PREVIEW 'Website preview' %></div> <div class="panel-scrollable panel-scrollable--single-toolbar"> <div class="preview-device-outer"> <div class="previe...
863577297ee2e4ba99c8ef3020935635bf5d07a4
src/lambda/lIdent.ml
src/lambda/lIdent.ml
(* Copyright (c) 2013-2017 The Cervoise developers. *) (* See the LICENSE file at the top-level directory. *) (** NOTE: the unused id field is needed to avoid optimization by the ocaml compiler *) type t = {name : string; id : unit ref} let create name = {name; id = ref ()} let raw_ptr (x : t) = Nativeint.shif...
(* Copyright (c) 2013-2017 The Cervoise developers. *) (* See the LICENSE file at the top-level directory. *) type t = < name : string > let create name = object method name = name end let equal = (==) let compare x y = Int.compare (Oo.id x) (Oo.id y) let to_string x = x#name type tmp = t module Map = Utils.EqM...
Fix LIdent.compare / Remove all calls to Obj.magic
Fix LIdent.compare / Remove all calls to Obj.magic
OCaml
mit
jpdeplaix/cervoise,jpdeplaix/cervoise
ocaml
## Code Before: (* Copyright (c) 2013-2017 The Cervoise developers. *) (* See the LICENSE file at the top-level directory. *) (** NOTE: the unused id field is needed to avoid optimization by the ocaml compiler *) type t = {name : string; id : unit ref} let create name = {name; id = ref ()} let raw_ptr (x : t) = ...
c6dadb3728763a18b215ac6a6bf2ae9233d17265
lib/everything/blog/output.rb
lib/everything/blog/output.rb
module Everything class Blog module Output class << self def absolute_path Fastenv.blog_output_path end def absolute_pathname Pathname.new(absolute_path) end end end end end
module Everything class Blog module Output class << self def absolute_path absolute_pathname.to_s end def absolute_pathname Pathname.new(Fastenv.blog_output_path) end end end end end
Implement Output absolute_path* methods same as in Source
Implement Output absolute_path* methods same as in Source
Ruby
mit
kyletolle/everything-blog,kyletolle/everything-blog
ruby
## Code Before: module Everything class Blog module Output class << self def absolute_path Fastenv.blog_output_path end def absolute_pathname Pathname.new(absolute_path) end end end end end ## Instruction: Implement Output absolute_path* met...
ff9d29e455829bd404680b4f31be33b7dcbbaf23
tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php
tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php
<?php namespace Illuminate\Tests\Foundation\Testing\Concerns; use Illuminate\Foundation\Testing\Concerns\InteractsWithViews; use Orchestra\Testbench\TestCase; class InteractsWithViewsTest extends TestCase { use InteractsWithViews; public function testBladeCorrectlyRendersString() { $string = (st...
<?php namespace Illuminate\Tests\Foundation\Testing\Concerns; use Illuminate\Foundation\Testing\Concerns\InteractsWithViews; use Illuminate\View\Component; use Orchestra\Testbench\TestCase; class InteractsWithViewsTest extends TestCase { use InteractsWithViews; public function testBladeCorrectlyRendersStrin...
Create a test for TestComponent Class
Create a test for TestComponent Class
PHP
mit
morrislaptop/framework,mul14/laravel-framework,notebowl/laravel-framework,crynobone/framework,JamesForks/framework,JamesForks/framework,lucasmichot/framework,mul14/laravel-framework,laravel/framework,dwightwatson/framework,hafezdivandari/framework,hafezdivandari/framework,bytestream/framework,arturock/framework,driesvi...
php
## Code Before: <?php namespace Illuminate\Tests\Foundation\Testing\Concerns; use Illuminate\Foundation\Testing\Concerns\InteractsWithViews; use Orchestra\Testbench\TestCase; class InteractsWithViewsTest extends TestCase { use InteractsWithViews; public function testBladeCorrectlyRendersString() { ...
00db9e220fbb736e629cfb3837c8feaa131f05fb
src/main/java/com/arckenver/nations/listener/MobSpawningListener.java
src/main/java/com/arckenver/nations/listener/MobSpawningListener.java
package com.arckenver.nations.listener; import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.entity.EntityTypes; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.entity.SpawnEntityEvent; import com.arckenver.nations.ConfigHandler; import com.arckenver.nations.Da...
package com.arckenver.nations.listener; import org.spongepowered.api.entity.living.monster.Monster; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.entity.SpawnEntityEvent; import com.arckenver.nations.ConfigHandler; import com.arckenver.nations.DataHandler; public class MobSpawning...
Extend spawn prevention to all hostile mobs (should take hostile mobs from mods into account)
Extend spawn prevention to all hostile mobs (should take hostile mobs from mods into account)
Java
mit
Arckenver/Nations
java
## Code Before: package com.arckenver.nations.listener; import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.entity.EntityTypes; import org.spongepowered.api.event.Listener; import org.spongepowered.api.event.entity.SpawnEntityEvent; import com.arckenver.nations.ConfigHandler; import com.arck...
ecd4c4fc7c64042691412820552d7132cdc5450b
views/layouts/main.handlebars
views/layouts/main.handlebars
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Welcome</title> <link rel="stylesheet" href="./dist/css/app.css"> <script src="./dist/js/app-header.min.js"></script> </head>...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Welcome</title> <link rel="stylesheet" href="./dist/css/app.css"> <script src="./dist/js/app-header.min.js"></script> <sc...
Add typekit to all of the thigns.
Add typekit to all of the thigns.
Handlebars
mit
centrl/api
handlebars
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Welcome</title> <link rel="stylesheet" href="./dist/css/app.css"> <script src="./dist/js/app-header.min.js"></scr...
ed48b5453644952b9697dbacde8c728aafd12f7c
test/base_test.rb
test/base_test.rb
require 'helper' require 'deviantart' require 'deviantart/base' require 'deviantart/deviation' describe DeviantArt::Base do describe '#inspect' do before do @base = DeviantArt::Base.new({}) end it 'returns name' do assert_equal('DeviantArt::Base', @base.inspect) assert_equal(@base.to_s,...
require 'helper' require 'deviantart' require 'deviantart/base' require 'deviantart/deviation' describe DeviantArt::Base do describe '#inspect' do before do @base = DeviantArt::Base.new({}) end it 'returns name' do assert_equal('DeviantArt::Base', @base.inspect) assert_equal(@base.to_s,...
Fix test description for Base.point_to_class
Fix test description for Base.point_to_class
Ruby
mit
aycabta/deviantart,aycabta/deviantart
ruby
## Code Before: require 'helper' require 'deviantart' require 'deviantart/base' require 'deviantart/deviation' describe DeviantArt::Base do describe '#inspect' do before do @base = DeviantArt::Base.new({}) end it 'returns name' do assert_equal('DeviantArt::Base', @base.inspect) assert_e...
c8c186e46990797e1faa07c71fb57920a89a2dcc
webquills/core/commands.py
webquills/core/commands.py
from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site def initialize_site(): """ For development environments, set up the Site and home page objects. """ try: site = Site.objects.get(id=settings.SITE_ID) ...
from django.conf import settings from django.contrib.sites.models import Site from webquills.core.models import SiteMeta def initialize_site(): """ For development environments, set up the Site and home page objects. """ try: site = Site.objects.get(id=settings.SITE_ID) # If the defau...
Create SiteMeta for default site
Create SiteMeta for default site
Python
apache-2.0
veselosky/webquills,veselosky/webquills,veselosky/webquills
python
## Code Before: from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site def initialize_site(): """ For development environments, set up the Site and home page objects. """ try: site = Site.objects.get(id=settings....
2c55b545894bc2f80c1095dd56881cf0b3e519a0
lib/prospector.rb
lib/prospector.rb
require "json" require "bundler" require "prospector/version" require "prospector/client" require "prospector/configuration" require "prospector/error" require "prospector/background" require "prospector/railtie" if defined?(Rails) begin require "pry" require "sidekiq" rescue LoadError end module Prospector c...
require "json" require "bundler" require "prospector/version" require "prospector/client" require "prospector/configuration" require "prospector/error" require "prospector/background" require "prospector/tasks" require "prospector/railtie" if defined?(Rails) begin require "pry" require "sidekiq" rescue LoadError...
Include Rake tasks automatically for non-rails apps
Include Rake tasks automatically for non-rails apps
Ruby
mit
madebylotus/prospector,madebylotus/prospector
ruby
## Code Before: require "json" require "bundler" require "prospector/version" require "prospector/client" require "prospector/configuration" require "prospector/error" require "prospector/background" require "prospector/railtie" if defined?(Rails) begin require "pry" require "sidekiq" rescue LoadError end modul...
671a27c1e729b8873718d801348cf1ee9cb34626
src/Patterns.ts
src/Patterns.ts
import { Model, Utils } from "./Model" export { Model as ConsumersModel } export { Utils as Utils } export class ScheduledProductionThread<JOB_TYPE>{ private model : Model<JOB_TYPE> constructor( public productionFunc: (model: Model<JOB_TYPE>)=>Promise<void>, public consumerNum: number, ...
import { Model, Utils } from "./Model" export { Model as ConsumersModel } export { Utils as Utils } export class ScheduledProductionThread<JOB_TYPE>{ private model : Model<JOB_TYPE> constructor( public productionFunc: (model: Model<JOB_TYPE>)=>Promise<void>, public consumerNum: number, ...
Fix a bug about argument.
Fix a bug about argument.
TypeScript
apache-2.0
D-Y-Innovations/producer-consumer,D-Y-Innovations/producer-consumer
typescript
## Code Before: import { Model, Utils } from "./Model" export { Model as ConsumersModel } export { Utils as Utils } export class ScheduledProductionThread<JOB_TYPE>{ private model : Model<JOB_TYPE> constructor( public productionFunc: (model: Model<JOB_TYPE>)=>Promise<void>, public consumerNu...
4f2c539044962c2268ae91dfbcdd26ab7189357c
.config.rb
.config.rb
qed do profile :sample do puts ("*" * 78) puts at_exit do puts puts ("*" * 78) end end profile :cov do require 'simplecov' SimpleCov.start do coverage_dir 'log/coverage' #add_group "Label", "lib/qed/directory" end end profile :rcov do require 'rcov';...
qed do # Just to demonstrate profiles. profile :sample do puts ("*" * 78) puts at_exit do puts puts ("*" * 78) end end # Create coverage report. profile :cov do require 'simplecov' SimpleCov.start do coverage_dir 'log/coverage' #add_group "Label", "lib/qed/di...
Remove rdoc profile, we use simplcov now.
Remove rdoc profile, we use simplcov now. [admin]
Ruby
bsd-2-clause
rubyworks/qed,rubyworks/qed
ruby
## Code Before: qed do profile :sample do puts ("*" * 78) puts at_exit do puts puts ("*" * 78) end end profile :cov do require 'simplecov' SimpleCov.start do coverage_dir 'log/coverage' #add_group "Label", "lib/qed/directory" end end profile :rcov do ...
73bdc61510307ebadf55186d46a148d5c74cc828
blueprints/ember-cli-simple-auth/index.js
blueprints/ember-cli-simple-auth/index.js
module.exports = { normalizeEntityName: function() { }, afterInstall: function() { return this.addBowerPackageToProject('ember-simple-auth', '0.8.0'); } };
module.exports = { normalizeEntityName: function() { }, afterInstall: function() { return this.addBowerPackageToProject('ember-cli-simple-auth', 'git://github.com/jeffcressman/ember-cli-simple-auth.git'); } };
Install ember-simple-auth from forked repo
Install ember-simple-auth from forked repo
JavaScript
mit
jeffcressman/ember-cli-simple-auth
javascript
## Code Before: module.exports = { normalizeEntityName: function() { }, afterInstall: function() { return this.addBowerPackageToProject('ember-simple-auth', '0.8.0'); } }; ## Instruction: Install ember-simple-auth from forked repo ## Code After: module.exports = { normalizeEntityName: function() { },...
9e9deb4b342ef42d706fbfe9f42d177ec6039692
README.md
README.md
Bitclock is a square binary clock written in JavaScript.
Bitclock is a clock made of binary integers to help you practice reading binary. # Reading <pre> For each digit from left to right compute the sum: For each value place from top to bottom, 8 to 1: If the bit is on then add that value to the sum. </pre> # Architecture ## Data Structures ### BitDigit A BitD...
Update documentation to define data structures and frontend/backend arch
Update documentation to define data structures and frontend/backend arch
Markdown
mit
lucidmachine/bitclock,lucidmachine/bitclock
markdown
## Code Before: Bitclock is a square binary clock written in JavaScript. ## Instruction: Update documentation to define data structures and frontend/backend arch ## Code After: Bitclock is a clock made of binary integers to help you practice reading binary. # Reading <pre> For each digit from left to right compute th...
482582f785c1c9fc4e302f3f7aa5c516a11d7446
scripts/check.sh
scripts/check.sh
echo "Checking for modifications to files that should not be changed" git diff --exit-code --name-only `git rev-list HEAD | tail -n 2 | head -n 1` HEAD LICENSE
echo "Email to $EMAIL ..." echo "Checking for modifications to files that should not be changed" git diff --exit-code --name-only `git rev-list HEAD | tail -n 2 | head -n 1` HEAD LICENSE
Configure email to send to
Configure email to send to
Shell
epl-1.0
ghurley-dublin/github-testing,garethhurley/github-testing,ghurley-dublin/github-testing,garethhurley/github-testing
shell
## Code Before: echo "Checking for modifications to files that should not be changed" git diff --exit-code --name-only `git rev-list HEAD | tail -n 2 | head -n 1` HEAD LICENSE ## Instruction: Configure email to send to ## Code After: echo "Email to $EMAIL ..." echo "Checking for modifications to files that should not ...
a4249a8023d8bad5d259d7dbd026a78cef378574
tasks/js-vendor.js
tasks/js-vendor.js
module.exports = function(gulp, speck) { return gulp.task('js:vendor', function() { var uglify = require('gulp-uglify'), gulpif = require('gulp-if'), insert = require('gulp-insert'), concat = require('gulp-concat'); return gulp.src(speck.config.vendorJS) .pipe(gulpif(speck.build.env.o...
module.exports = function(gulp, speck) { return gulp.task('js:vendor', function() { var uglify = require('gulp-uglify'), gulpif = require('gulp-if'), insert = require('gulp-insert'), size = require('gulp-size'), concat = require('gulp-concat'); return gulp.src(speck.config.vendorJS) ...
Add size loging for vendor.js file
Add size loging for vendor.js file
JavaScript
mit
graincreative/speck-build
javascript
## Code Before: module.exports = function(gulp, speck) { return gulp.task('js:vendor', function() { var uglify = require('gulp-uglify'), gulpif = require('gulp-if'), insert = require('gulp-insert'), concat = require('gulp-concat'); return gulp.src(speck.config.vendorJS) .pipe(gulpif(s...
45f91e5e374c255d606a39c8b33aadb5b22a5b5d
src/index.html
src/index.html
<!DOCTYPE html> <html ng-app=""> <head> <meta charset="utf-8"> <link rel="stylesheet" href="node_modules/angular-material/angular-material.css"> <title>Angular JS Auth</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> </head> <b...
<!DOCTYPE html> <html ng-app="authApp"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="node_modules/angular-material/angular-material.css"> <title>Angular JS Auth</title> <!-- Auth0 Lock script and AngularJS module --> <script src="//cdn.auth0.com/js/lock-9.0.js"></script> <meta na...
Add Scripts For Dependencies in Index.html
Add Scripts For Dependencies in Index.html
HTML
mit
Ankit09osr/sparrow,TeamSparrows/sparrow,Ankit09osr/sparrow,TeamSparrows/sparrow
html
## Code Before: <!DOCTYPE html> <html ng-app=""> <head> <meta charset="utf-8"> <link rel="stylesheet" href="node_modules/angular-material/angular-material.css"> <title>Angular JS Auth</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />...
549c81a162ae3a6536b1fc2406299a1e54ab982c
categories/tutorial/01-word-wrap.pl
categories/tutorial/01-word-wrap.pl
=begin pod =TITLE Word-wrap paragraphs to a given length =AUTHOR Scott Penrose =end pod use v6; my $line_length = 50; sub MAIN($input-file = $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "lorem.txt")) { my $tempfile = open($input-file, :r); my $count = 0; for $tempfile.lines { $count++; li...
=begin pod =TITLE Word-wrap paragraphs to a given length =AUTHOR Scott Penrose =end pod use v6; my $line_length = 50; sub MAIN($input-file = $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "lorem.txt")) { my $tempfile = open($input-file, :r); my $count = 0; for $tempfile.lines { $count++; li...
Replace self-built words() with .words builtin
Replace self-built words() with .words builtin
Perl
artistic-2.0
shlomif/perl6-examples,perl6/perl6-examples,shlomif/perl6-examples,shlomif/perl6-examples,perl6/perl6-examples,perl6/perl6-examples,perl6/perl6-examples,perl6/perl6-examples,shlomif/perl6-examples,shlomif/perl6-examples
perl
## Code Before: =begin pod =TITLE Word-wrap paragraphs to a given length =AUTHOR Scott Penrose =end pod use v6; my $line_length = 50; sub MAIN($input-file = $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "lorem.txt")) { my $tempfile = open($input-file, :r); my $count = 0; for $tempfile.lines { $cou...
f4dd36946e54b9ba6d037275b4dd184621729de8
test/test-harness-test.js
test/test-harness-test.js
describe('test-harness', function() { describe('globals', function() { it('should expose should as a global', function() { should.exist(should); }); it('should expose sinon as a global', function() { should.exist(sinon); }); }); describe('should-sinon plugin', function() { it...
describe('test/test-harness-test.js', function() { describe('globals', function() { it('should expose should as a global', function() { should.exist(should); }); it('should expose sinon as a global', function() { should.exist(sinon); }); }); describe('should-sinon plugin', functio...
Fix linter issue with test describe path
Fix linter issue with test describe path
JavaScript
mit
Springworks/node-test-harness
javascript
## Code Before: describe('test-harness', function() { describe('globals', function() { it('should expose should as a global', function() { should.exist(should); }); it('should expose sinon as a global', function() { should.exist(sinon); }); }); describe('should-sinon plugin', func...
b613ae77da8c511871fc7edc15c34d280bbe7198
CMakeLists.txt
CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) PROJECT(RamseyCalc) #ADD_LIBRARY(MyLibrary STATIC libSource.c) FIND_PACKAGE(PkgConfig) ADD_DEFINITIONS(-Wall -W -Wextra -Werror --std=c99 -pedantic -g) FIND_PACKAGE(GTK2 COMPONENTS gtk) PKG_CHECK_MODULES(GTHREAD REQUIRED gthread-2.0) INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS} ${GT...
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) PROJECT(RamseyCalc) #ADD_LIBRARY(MyLibrary STATIC libSource.c) FIND_PACKAGE(PkgConfig) ADD_DEFINITIONS(-Wall -W -Wextra -Werror --std=c99 -pedantic -g) FIND_PACKAGE(GTK2 COMPONENTS gtk) PKG_CHECK_MODULES(GTHREAD REQUIRED gthread-2.0) PKG_CHECK_MODULES(GOBJECT REQUIRED gobject-2....
Add gobject to cmake explicitly
Add gobject to cmake explicitly
Text
cc0-1.0
apoelstra/RamseyScript,apoelstra/RamseyScript
text
## Code Before: CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) PROJECT(RamseyCalc) #ADD_LIBRARY(MyLibrary STATIC libSource.c) FIND_PACKAGE(PkgConfig) ADD_DEFINITIONS(-Wall -W -Wextra -Werror --std=c99 -pedantic -g) FIND_PACKAGE(GTK2 COMPONENTS gtk) PKG_CHECK_MODULES(GTHREAD REQUIRED gthread-2.0) INCLUDE_DIRECTORIES(${GTK2_IN...
092f2b0e286edce8dc5e773505e3bbb723e775d9
src/batResult.ml
src/batResult.ml
open BatPervasives type ('a, 'b) t = ('a, 'b) BatPervasives.result = | Ok of 'a | Bad of 'b let catch f x = try Ok (f x) with e -> Bad e let of_option = function | Some x -> Ok x | None -> Bad () let to_option = function | Ok x -> Some x | Bad _-> None let default def = function | Ok x -> x ...
open BatPervasives type ('a, 'b) t = ('a, 'b) BatPervasives.result = | Ok of 'a | Bad of 'b let catch f x = try Ok (f x) with e -> Bad e let of_option = function | Some x -> Ok x | None -> Bad () let to_option = function | Ok x -> Some x | Bad _-> None let default def = function | Ok x -> x ...
Fix reference to InnerIO.fprintf in Result
Fix reference to InnerIO.fprintf in Result
OCaml
lgpl-2.1
bennn/batteries-included
ocaml
## Code Before: open BatPervasives type ('a, 'b) t = ('a, 'b) BatPervasives.result = | Ok of 'a | Bad of 'b let catch f x = try Ok (f x) with e -> Bad e let of_option = function | Some x -> Ok x | None -> Bad () let to_option = function | Ok x -> Some x | Bad _-> None let default def = function...
3ee48266cb08fe7835c9a4fb58c10598a10692e6
Formula/tsuru.rb
Formula/tsuru.rb
class Tsuru < Formula desc "tsuru-client is a tsuru command line tool for application developers." homepage "https://docs.tsuru.io/stable/" url "https://github.com/tsuru/tsuru-client/releases/download/1.7.0/tsuru_1.7.0_macOS_amd64.tar.gz" version "1.7.0" sha256 "e6032cdcc3c29c05c62f0b9dc8d7b38cfba9e9383f1f885...
class Tsuru < Formula desc "tsuru-client is a tsuru command line tool for application developers." homepage "https://docs.tsuru.io/stable/" url "https://github.com/tsuru/tsuru-client/releases/download/1.7.0/tsuru_1.7.0_macOS_amd64.tar.gz" version "1.7.0" sha256 "e6032cdcc3c29c05c62f0b9dc8d7b38cfba9e9383f1f885...
Add devel release pointing to stable version
Add devel release pointing to stable version No surprises or errors for people using install --devel by default.
Ruby
bsd-3-clause
tsuru/homebrew-tsuru,tsuru/homebrew-tsuru
ruby
## Code Before: class Tsuru < Formula desc "tsuru-client is a tsuru command line tool for application developers." homepage "https://docs.tsuru.io/stable/" url "https://github.com/tsuru/tsuru-client/releases/download/1.7.0/tsuru_1.7.0_macOS_amd64.tar.gz" version "1.7.0" sha256 "e6032cdcc3c29c05c62f0b9dc8d7b38...
56d64b832bda98ca0522276847f3cda89817c915
PlayProject/app/actors/DeleteActor.scala
PlayProject/app/actors/DeleteActor.scala
package actors import akka.actor.Actor import play.api.libs.ws.WSClient import javax.inject.Inject import scala.concurrent.Future import play.api.libs.ws.WSResponse import scala.concurrent.ExecutionContext.Implicits._ import models.VappFactory case class Delete(vm_id : String, count : Int = 10) class DeleteActor (w...
package actors import akka.actor.Actor import play.api.libs.ws.WSClient import javax.inject.Inject import scala.concurrent.Future import play.api.libs.ws.WSResponse import scala.concurrent.ExecutionContext.Implicits._ import models.VappFactory import scala.concurrent.duration._ case class Delete(vm_id : String, coun...
Delete VM : add schedule waiting the VM is power off before delete
Delete VM : add schedule waiting the VM is power off before delete
Scala
mit
snigle/FrontDockerOrchestrator,snigle/FrontDockerOrchestrator,snigle/FrontDockerOrchestrator
scala
## Code Before: package actors import akka.actor.Actor import play.api.libs.ws.WSClient import javax.inject.Inject import scala.concurrent.Future import play.api.libs.ws.WSResponse import scala.concurrent.ExecutionContext.Implicits._ import models.VappFactory case class Delete(vm_id : String, count : Int = 10) clas...
5276ddad935a84c817e2ee2a5e5d3679d4bfc69e
src/File/Path/ProcessorInterface.php
src/File/Path/ProcessorInterface.php
<?php declare(strict_types=1); namespace Josegonzalez\Upload\File\Path; use Cake\Datasource\EntityInterface; use Cake\ORM\Table; use Psr\Http\Message\UploadedFileInterface; interface ProcessorInterface { /** * Constructor * * @param \Cake\ORM\Table $table the instance managing the entity * @...
<?php declare(strict_types=1); namespace Josegonzalez\Upload\File\Path; use Cake\Datasource\EntityInterface; use Cake\ORM\Table; interface ProcessorInterface { /** * Constructor * * @param \Cake\ORM\Table $table the instance managing the entity * @param \Cake\Datasource\EntityInterface $enti...
Fix one more type hint
Fix one more type hint
PHP
mit
josegonzalez/cakephp-upload
php
## Code Before: <?php declare(strict_types=1); namespace Josegonzalez\Upload\File\Path; use Cake\Datasource\EntityInterface; use Cake\ORM\Table; use Psr\Http\Message\UploadedFileInterface; interface ProcessorInterface { /** * Constructor * * @param \Cake\ORM\Table $table the instance managing the...
1b8efb09ac512622ea3541d950ffc67b0a183178
survey/signals.py
survey/signals.py
import django.dispatch survey_completed = django.dispatch.Signal(providing_args=["instance", "data"])
import django.dispatch # providing_args=["instance", "data"] survey_completed = django.dispatch.Signal()
Remove puyrely documental providing-args argument
Remove puyrely documental providing-args argument See https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
Python
agpl-3.0
Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey
python
## Code Before: import django.dispatch survey_completed = django.dispatch.Signal(providing_args=["instance", "data"]) ## Instruction: Remove puyrely documental providing-args argument See https://docs.djangoproject.com/en/4.0/releases/3.1/#id2 ## Code After: import django.dispatch # providing_args=["instance", "da...
de80dd6169e753a568bacfd24c1c0659321aa2dd
app/templates/partials/header.jade
app/templates/partials/header.jade
nav.navbar.navbar-default .container-fluid a.navbar-brand.logo(href='/') img(src='/img/jsdelivr-logo.png') ul.nav.navbar-nav.navbar-left.sponsors each sponsor in [sponsors.maxcdn, sponsors.cloudflare, sponsors.cedexis] li: a(href=sponsor.home): img(src=sponsor.img, alt=sponsor.name) ...
nav.navbar.navbar-default .container-fluid a.navbar-brand.logo(ui-sref='search', ui-sref-opts="{reload: true}") img(src='/img/jsdelivr-logo.png') ul.nav.navbar-nav.navbar-left.sponsors each sponsor in [sponsors.maxcdn, sponsors.cloudflare, sponsors.cedexis] li: a(href=sponsor.home): img(s...
Reset page on logo press
Reset page on logo press
Jade
mit
2947721120/www.jsdelivr.com,2947721120/jsdelivr.com,2947721120/cdn.c2cbc,MartinKolarik/www.jsdelivr.com,abishekrsrikaanth/beta.jsdelivr.com,tomByrer/www.jsdelivr.com,jsdelivr/beta.jsdelivr.com,algolia/www.jsdelivr.com,2947721120/cdn.c2cbc,MartinKolarik/www.jsdelivr.com,MartinKolarik/www.jsdelivr.com,GeorgeErickson/jsde...
jade
## Code Before: nav.navbar.navbar-default .container-fluid a.navbar-brand.logo(href='/') img(src='/img/jsdelivr-logo.png') ul.nav.navbar-nav.navbar-left.sponsors each sponsor in [sponsors.maxcdn, sponsors.cloudflare, sponsors.cedexis] li: a(href=sponsor.home): img(src=sponsor.img, alt=spo...
acf466eca208a492eb238ea6b7ac792f3d218c31
app/views/manage_products/_edit_description.rhtml
app/views/manage_products/_edit_description.rhtml
<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %> <% remote_form_for(@product, :loading => "small_loading('product-description-form')", :update => 'product-description', :url => {:controller => 'manage_products', :action => 'edit', :id => @...
<%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %> <% remote_form_for(@product, :loading => "small_loading('product-description-form')", :before => ("tinymce.editors[0].save()" unless Rails.env == 'test'), :update => 'product-description', ...
Save to tinymce on ajax form
Save to tinymce on ajax form
RHTML
agpl-3.0
blogoosfero/noosfero,EcoAlternative/noosfero-ecosol,samasti/noosfero,samasti/noosfero,coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,CIRANDAS/noosfero-ecosol,blogoosfero/noosfero,blogoosfero/noosfero,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,E...
rhtml
## Code Before: <%= render :file => 'shared/tiny_mce', :locals => {:mode => 'simple'} %> <% remote_form_for(@product, :loading => "small_loading('product-description-form')", :update => 'product-description', :url => {:controller => 'manage_products', :action => ...
b4e3ea081c81be6f3a270a28650ff7ee93cfdd10
website/layouts/_nav.html.erb
website/layouts/_nav.html.erb
<ul> <li class="<%= "active" if(current_page.url == "/docs/architecture/") %>"> <%= link_to("Architecture", "/docs/architecture.html", :relative => true) %> </li> <li class="<%= "active" if(current_page.url == "/docs/getting-started/") %>"> <%= link_to("Getting Started", "/docs/getting-started.html", :rel...
<ul> <li class="<%= "active" if(current_page.url == "/docs/architecture/") %>"> <%= link_to("Architecture", "/docs/architecture.html", :relative => true) %> </li> <li class="<%= "active" if(current_page.url == "/docs/getting-started/") %>"> <%= link_to("Getting Started", "/docs/getting-started.html", :rel...
Add navigation link to new SMTP doc page.
Add navigation link to new SMTP doc page.
HTML+ERB
mit
apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella
html+erb
## Code Before: <ul> <li class="<%= "active" if(current_page.url == "/docs/architecture/") %>"> <%= link_to("Architecture", "/docs/architecture.html", :relative => true) %> </li> <li class="<%= "active" if(current_page.url == "/docs/getting-started/") %>"> <%= link_to("Getting Started", "/docs/getting-sta...
d6dfa61dd4ff7fc4297c79cf8119c2c944159102
modules/govuk/templates/node/s_apt/vhost.conf.erb
modules/govuk/templates/node/s_apt/vhost.conf.erb
server { # This serves: # - `apt.cluster` internally. # - `apt.production.alphagov.co.uk` externally. server_name apt.* apt-origin.*; root <%= @root_dir -%>/public; access_log /var/log/nginx/apt-access.log timed_combined; access_log /var/log/nginx/apt-json.event.access.log json_event; error_log /va...
server { # This serves: # - `apt.cluster` internally. # - `apt.production.alphagov.co.uk` externally. server_name apt.* apt-origin.*; root <%= @root_dir -%>/public; <% if @real_ip_header != '' -%> # Use an unspoofable header from an upstream CDN or L7 load balancer real_ip_header <%= @real_ip_h...
Allow use of RealIpModule if enabled in Nginx
Allow use of RealIpModule if enabled in Nginx The Nginx RealIpModule allows us to log the value of the X-True-Client-IP header as the IP we appear to receive requests from in the Nginx logs. This is important as otherwise we see all requests as coming from the CDN edge. The value of `set_real_ip_from` is set to 0.0.0....
HTML+ERB
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
html+erb
## Code Before: server { # This serves: # - `apt.cluster` internally. # - `apt.production.alphagov.co.uk` externally. server_name apt.* apt-origin.*; root <%= @root_dir -%>/public; access_log /var/log/nginx/apt-access.log timed_combined; access_log /var/log/nginx/apt-json.event.access.log json_event;...
22d40907f95655e8cc34869cddc9b2b4f4bbc562
stowed/.config/fish/config.fish
stowed/.config/fish/config.fish
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxbrew/.linuxbrew/bi...
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $HOME/.local/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxb...
Add python pip dir to path
Add python pip dir to path
fish
unlicense
Olical/dotfiles
fish
## Code Before: set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxbr...
4df326382a34abaa1a685ecb1b7181ab77e31527
res/layout/home_layout.xml
res/layout/home_layout.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="8dp"> <TextView ...
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="8dp"> <TextView ...
Align margins in home layout
Align margins in home layout
XML
mit
ehc/GeoFencingDemo
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="8dp"> <T...
1bb6e58b0e8a1e1f5ac48bdca2ab3ac0b3beaf0d
lib/control/v1/index.js
lib/control/v1/index.js
'use strict'; const express = require('express'); const BodyParser = require('body-parser'); const Handlers = require('../util').Handlers; const Err = require('../util').Err; exports.attach = function (app, storage) { app.get('/v1/health', require('./health')); app.use('/v1/health', Handlers.allowed('GET')); a...
'use strict'; const express = require('express'); const BodyParser = require('body-parser'); const Handlers = require('../util').Handlers; const Err = require('../util').Err; exports.attach = function (app, storage) { app.get('/v1/health', require('./health')); app.get('/v1/token/default', require('./token')(sto...
Clean up route handling so it's more readable.
Clean up route handling so it's more readable.
JavaScript
mit
rapid7/tokend,rapid7/tokend,rapid7/tokend
javascript
## Code Before: 'use strict'; const express = require('express'); const BodyParser = require('body-parser'); const Handlers = require('../util').Handlers; const Err = require('../util').Err; exports.attach = function (app, storage) { app.get('/v1/health', require('./health')); app.use('/v1/health', Handlers.allo...
f37ee550a407ffc673f6565ee1ce24092b1f86d6
README.md
README.md
The SampleFile gem provides an easy way to generate files while testing. ## Installation Add this line to your application's Gemfile: gem 'sample_file' And then execute: $ bundle Or install it yourself as: $ gem install sample_file ## Usage ```ruby # returns an image file SampleFile.image SampleF...
The SampleFile gem provides an easy way to generate files while testing. ## Installation Add this line to your application's Gemfile: gem 'sample_file' And then execute: $ bundle Or install it yourself as: $ gem install sample_file ## Usage ```ruby # returns an image file SampleFile.image SampleF...
Include examples of images with a set width and height.
Include examples of images with a set width and height.
Markdown
mit
mcls/sample_file
markdown
## Code Before: The SampleFile gem provides an easy way to generate files while testing. ## Installation Add this line to your application's Gemfile: gem 'sample_file' And then execute: $ bundle Or install it yourself as: $ gem install sample_file ## Usage ```ruby # returns an image file SampleFil...
40c97fa33c8739bd27b03891782b542217534904
ognskylines/commands/database.py
ognskylines/commands/database.py
from ognskylines.dbutils import engine from ognskylines.model import Base from manager import Manager manager = Manager() @manager.command def init(): """Initialize the database.""" Base.metadata.create_all(engine) print('Done.') @manager.command def drop(sure=0): """Drop all tables.""" if sure...
from ognskylines.dbutils import engine from ognskylines.model import Base from manager import Manager manager = Manager() @manager.command def init(): """Initialize the database.""" Base.metadata.create_all(engine) print('Done.') @manager.command def drop(sure='n'): """Drop all tables.""" if su...
Change confirmation flag to '--sure y'
CLI: Change confirmation flag to '--sure y'
Python
agpl-3.0
kerel-fs/ogn-skylines-gateway,kerel-fs/ogn-skylines-gateway
python
## Code Before: from ognskylines.dbutils import engine from ognskylines.model import Base from manager import Manager manager = Manager() @manager.command def init(): """Initialize the database.""" Base.metadata.create_all(engine) print('Done.') @manager.command def drop(sure=0): """Drop all tables...
50209ab93e55ab14f015c01642a3ddfd10a562df
froide/foirequest/templates/foirequest/widgets/dropdown_filter.html
froide/foirequest/templates/foirequest/widgets/dropdown_filter.html
<div class="dropdown show"> <input type="hidden" name="{{ widget.name }}" value="{{ widget.value.0 }}"/> <a class="btn btn-light btn-block text-truncate dropdown-toggle" href="#" role="button" id="dropdown-{{ widget.attrs.id }}" title="{{ selected_label }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded=...
<div class="dropdown show"> <input type="hidden" name="{{ widget.name }}" value="{{ widget.value.0 }}"/> <a class="btn btn-light btn-block text-truncate dropdown-toggle" href="#" role="button" id="dropdown-{{ widget.attrs.id }}" title="{{ selected_label }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded=...
Align dropdown filter menu widget right
Align dropdown filter menu widget right
HTML
mit
fin/froide,stefanw/froide,stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,fin/froide,fin/froide
html
## Code Before: <div class="dropdown show"> <input type="hidden" name="{{ widget.name }}" value="{{ widget.value.0 }}"/> <a class="btn btn-light btn-block text-truncate dropdown-toggle" href="#" role="button" id="dropdown-{{ widget.attrs.id }}" title="{{ selected_label }}" data-toggle="dropdown" aria-haspopup="true...
de592de13ad872c5b64abd73e4c43cea50195f16
app/views/shopping_shared/_header.html.haml
app/views/shopping_shared/_header.html.haml
- distributor = @order.andand.distributor || current_distributor %navigation %distributor.details.row .small-12.medium-12.large-8.columns #distributor_title - if distributor.logo? %img.left{src: distributor.logo.url(:thumb)} %h3 = distributor.name %location= dist...
- distributor = @order.andand.distributor || current_distributor %navigation %distributor.details.row .small-12.medium-12.large-8.columns #distributor_title - if distributor.logo? %img.left{src: distributor.logo.url(:thumb)} = render DistributorTitleComponent.new(name: distributor...
Use the first view component DistributorTitleComponent for a shopfront
Use the first view component DistributorTitleComponent for a shopfront
Haml
agpl-3.0
mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/ope...
haml
## Code Before: - distributor = @order.andand.distributor || current_distributor %navigation %distributor.details.row .small-12.medium-12.large-8.columns #distributor_title - if distributor.logo? %img.left{src: distributor.logo.url(:thumb)} %h3 = distributor.name ...
8b47ed5eafcf2e2506d6dcecea60faeba432d533
src/services/formatOverallStats.js
src/services/formatOverallStats.js
import dedent from 'dedent-js'; const formatOverallStats = (data, battletag, gameMode) => { const stats = data['stats'][gameMode]['overall_stats']; const moreStats = data['stats'][gameMode]['game_stats']; let level = stats['level']; let competitiveStats; if (typeof stats['prestige'] === 'number') { leve...
import dedent from 'dedent-js'; const formatOverallStats = (data, battletag, gameMode) => { const stats = data['stats'][gameMode]['overall_stats']; const moreStats = data['stats'][gameMode]['game_stats']; let level = stats['level']; let competitiveStats; if (typeof stats['prestige'] === 'number') { leve...
Add Ties to Overall stats
Add Ties to Overall stats
JavaScript
mit
chesterhow/overwatch-telegram-bot
javascript
## Code Before: import dedent from 'dedent-js'; const formatOverallStats = (data, battletag, gameMode) => { const stats = data['stats'][gameMode]['overall_stats']; const moreStats = data['stats'][gameMode]['game_stats']; let level = stats['level']; let competitiveStats; if (typeof stats['prestige'] === 'num...
18371ab738ffd7ded7bb04ecdd3b209e66936a53
src/section/SectionBuilder.php
src/section/SectionBuilder.php
<?php namespace UWDOEM\Framework\Section; use UWDOEM\Framework\Writer\WritableInterface; class SectionBuilder { /** * The section's label. Set by overriding Section::makeLabel() * @var string */ protected $_label; /** * @var string */ protected $_content; /** * ...
<?php namespace UWDOEM\Framework\Section; use UWDOEM\Framework\Writer\WritableInterface; class SectionBuilder { /** * The section's label. Set by overriding Section::makeLabel() * @var string */ protected $_label; /** * @var string */ protected $_content; /** * ...
Handle neglected input, Section builder.
Handle neglected input, Section builder.
PHP
mit
AthensFramework/core,AthensFramework/core,AthensFramework/core,AthensFramework/core
php
## Code Before: <?php namespace UWDOEM\Framework\Section; use UWDOEM\Framework\Writer\WritableInterface; class SectionBuilder { /** * The section's label. Set by overriding Section::makeLabel() * @var string */ protected $_label; /** * @var string */ protected $_content; ...
c70da370ea4afacf984555e3f1816e0ae8f8685e
lib/dm-core/property/object.rb
lib/dm-core/property/object.rb
module DataMapper class Property class Object < Property primitive ::Object # @api semipublic def dump(value) return value if value.nil? if @type @type.dump(value, self) else Marshal.dump(value) end end # @api semipublic de...
module DataMapper class Property class Object < Property primitive ::Object # @api semipublic def dump(value) return value if value.nil? if @type @type.dump(value, self) else [ Marshal.dump(value) ].pack('m') end end # @api semip...
Change marshalling to use base64 encoding
Change marshalling to use base64 encoding
Ruby
mit
tpitale/dm-core,ar-dm/ardm-core,datamapper/dm-core,engineyard/dm-core,alloy/dm-core,tillsc/dm-core
ruby
## Code Before: module DataMapper class Property class Object < Property primitive ::Object # @api semipublic def dump(value) return value if value.nil? if @type @type.dump(value, self) else Marshal.dump(value) end end # @api sem...
91190e71b3e9adcc971c35e416de26e2834cecbf
view/partial/footer.html
view/partial/footer.html
<ul> <li><a href="/">Lint a job</a></li> <li><a href="/developer">Web service</a></li> </ul> <p> <small> Copyright &copy; {{year}} </small> </p>
<ul> <li><a href="/">Lint a job</a></li> <li><a href="https://github.com/rowanmanning/joblint">Joblint on GitHub</a></li> <li><a href="/developer">Web service</a></li> </ul> <p> <small> Copyright &copy; {{year}} </small> </p>
Add a link to the repo
Add a link to the repo
HTML
mit
codeforamerica/posting-pro,codeforamerica/posting-pro,LandingJobs/Landing.jobs-joblint,LandingJobs/Landing.jobs-joblint,codeforamerica/posting-pro
html
## Code Before: <ul> <li><a href="/">Lint a job</a></li> <li><a href="/developer">Web service</a></li> </ul> <p> <small> Copyright &copy; {{year}} </small> </p> ## Instruction: Add a link to the repo ## Code After: <ul> <li><a href="/">Lint a job</a></li> <li><a href="https://github...
fca88336777b9c47404e7b397d39ef8d3676b7b5
src/zone_iterator/__main__.py
src/zone_iterator/__main__.py
import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.CYAN, Fore.YELLO...
import argparse import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def maybe_compressed_file(filename): if filename[-2:] == 'gz': our_open = gzip...
Switch to using argparse for the main script.
Switch to using argparse for the main script.
Python
agpl-3.0
maxrp/zone_normalize
python
## Code Before: import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore....
f5b1b7a4f0ad20b6322abb678307f741160eaec8
MobihelpSDK/res/values/themes_app.xml
MobihelpSDK/res/values/themes_app.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Mobihelp" parent="@style/Theme.MobihelpSDK.Light" /> </resources>
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <style name="Theme.Mobihelp" parent="@style/Theme.MobihelpSDK.Custom"> <item name="android:actionBarStyle" tools:targetApi="honeycomb">@style/MyAction...
Customize theme for squadrun integration
Customize theme for squadrun integration
XML
mit
devjon/mobihelp-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Mobihelp" parent="@style/Theme.MobihelpSDK.Light" /> </resources> ## Instruction: Customize theme for squadrun integration ## Code After: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/...
0731a34fd55477b20ffcd19c9b41cda0dd084d75
ggplot/utils/date_breaks.py
ggplot/utils/date_breaks.py
from matplotlib.dates import DayLocator, WeekdayLocator, MonthLocator, YearLocator def parse_break_str(txt): "parses '10 weeks' into tuple (10, week)." txt = txt.strip() if len(txt.split()) == 2: n, units = txt.split() else: n,units = 1, txt units = units.rstrip('s') # e.g. weeks =>...
from matplotlib.dates import MinuteLocator, HourLocator, DayLocator from matplotlib.dates import WeekdayLocator, MonthLocator, YearLocator def parse_break_str(txt): "parses '10 weeks' into tuple (10, week)." txt = txt.strip() if len(txt.split()) == 2: n, units = txt.split() else: n,unit...
Add more granular date locators
Add more granular date locators
Python
bsd-2-clause
xguse/ggplot,andnovar/ggplot,benslice/ggplot,bitemyapp/ggplot,kmather73/ggplot,benslice/ggplot,udacity/ggplot,ricket1978/ggplot,mizzao/ggplot,wllmtrng/ggplot,smblance/ggplot,assad2012/ggplot,Cophy08/ggplot,xguse/ggplot,ricket1978/ggplot,mizzao/ggplot
python
## Code Before: from matplotlib.dates import DayLocator, WeekdayLocator, MonthLocator, YearLocator def parse_break_str(txt): "parses '10 weeks' into tuple (10, week)." txt = txt.strip() if len(txt.split()) == 2: n, units = txt.split() else: n,units = 1, txt units = units.rstrip('s')...
0c0f6b6a2a97883c839f7dec9565b04a8dee34da
js/lib/speedboat/http.js
js/lib/speedboat/http.js
export function request(method, url, body, params = {}) { method = method.toUpperCase(); if (typeof body === "object") { let formstring = ""; for (let entry of body) { if (formstring !== "") { formstring += "&"; } formstring += entry[0] + "=" + encodeURIComponent(entry[1]); } } if (method === "GE...
export function request(method, url, body, params = {}) { method = method.toUpperCase(); if (body) { if (typeof body === "object") { let formstring = ""; for (let entry of body) { if (formstring !== "") { formstring += "&"; } formstring += entry[0] + "=" + encodeURIComponent(entry[1]); } ...
Handle null request bodies properly
[fix] HTTP: Handle null request bodies properly
JavaScript
agpl-3.0
loadimpact/k6,loadimpact/k6,gbts/k6,gbts/k6,StephenRadachy/k6,gbts/k6,StephenRadachy/k6,gbts/k6
javascript
## Code Before: export function request(method, url, body, params = {}) { method = method.toUpperCase(); if (typeof body === "object") { let formstring = ""; for (let entry of body) { if (formstring !== "") { formstring += "&"; } formstring += entry[0] + "=" + encodeURIComponent(entry[1]); } } if...
af0fa718d38ea2ae4e4a11d3bc1de848a4de8161
src/core/LogEvent.ts
src/core/LogEvent.ts
/** * @module core */ /** */ import {LogLevel} from "./LogLevel"; export class LogEvent { /** * Models a logging event. * @constructor * @param {String} _categoryName name of category * @param {LogLevel} _level level of message * @param {Array} _data objects to log * @param _context */ const...
/** * @module core */ /** */ import {LogLevel} from "./LogLevel"; export class LogEvent { /** * Models a logging event. * @constructor * @param {String} _categoryName name of category * @param {LogLevel} _level level of message * @param {Array} _data objects to log * @param _context */ const...
Add time field support to replace original startTime by a custom time
feat: Add time field support to replace original startTime by a custom time
TypeScript
mit
Romakita/ts-log-debug,Romakita/ts-log-debug
typescript
## Code Before: /** * @module core */ /** */ import {LogLevel} from "./LogLevel"; export class LogEvent { /** * Models a logging event. * @constructor * @param {String} _categoryName name of category * @param {LogLevel} _level level of message * @param {Array} _data objects to log * @param _conte...
117de7c9ff56388ae7e33fb05f146710e423f174
setup.py
setup.py
from distutils.core import setup setup( name='Decouple', version='1.2.1', packages=['Decouple', 'Decouple.BatchPlugins'], license='LICENSE', description='Decouple and recouple.', long_description=open('README.md').read(), author='Sven Kreiss, Kyle Cranmer', author_email='sk@svenkreiss....
from distutils.core import setup setup( name='Decouple', version='1.2.2', packages=['Decouple', 'Decouple.BatchPlugins', 'scripts'], license='LICENSE', description='Decouple and recouple.', long_description=open('README.md').read(), author='Sven Kreiss, Kyle Cranmer', author_email='sk@...
Include 'scripts' as module in package.
Include 'scripts' as module in package.
Python
mit
svenkreiss/decouple
python
## Code Before: from distutils.core import setup setup( name='Decouple', version='1.2.1', packages=['Decouple', 'Decouple.BatchPlugins'], license='LICENSE', description='Decouple and recouple.', long_description=open('README.md').read(), author='Sven Kreiss, Kyle Cranmer', author_email...
c720025d4a06fe8b90fb619dce0e53b93405c5af
README.md
README.md
20% MonkeyPatch 80% YAML 100% Style ## Installation Add this line to your application's Gemfile: gem 'reevoocop', require: false And then execute: $ bundle Or install it yourself as: $ gem install reevoocop ## Usage In a Rakefile ```ruby require 'reevoocop/rake_task' ReevooCop::RakeTask.new(:reevo...
20% MonkeyPatch 80% YAML 100% Style ## Installation Add this line to your application's Gemfile: gem 'reevoocop', require: false And then execute: $ bundle Or install it yourself as: $ gem install reevoocop ## Usage In a Rakefile ```ruby require 'reevoocop/rake_task' ReevooCop::RakeTask.new(:reevo...
Add method for using reevoocop on legacy projects
Add method for using reevoocop on legacy projects
Markdown
mit
reevoo/reevoocop
markdown
## Code Before: 20% MonkeyPatch 80% YAML 100% Style ## Installation Add this line to your application's Gemfile: gem 'reevoocop', require: false And then execute: $ bundle Or install it yourself as: $ gem install reevoocop ## Usage In a Rakefile ```ruby require 'reevoocop/rake_task' ReevooCop::Rak...
adaadb70e777328de05d719533b9adbe0e5fdcda
init/macos/brew.mk
init/macos/brew.mk
PREFIX := /usr/local HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle BREW=$(PREFIX)/bin/brew XCODE=/Applications/Xcode.app all: packages $(XCODE): @xcode-select --install $(BREW): $(XCODE) @echo Installing Hom...
PREFIX := /usr/local HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle BREW=$(PREFIX)/bin/brew XCODE=/Applications/Xcode.app all: packages $(XCODE): @xcode-select --install $(BREW): $(XCODE) @echo Installing Hom...
Add services target to macos init
[init] Add services target to macos init
Makefile
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
makefile
## Code Before: PREFIX := /usr/local HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle BREW=$(PREFIX)/bin/brew XCODE=/Applications/Xcode.app all: packages $(XCODE): @xcode-select --install $(BREW): $(XCODE) @ech...
a30357fc4f86f446fe6e0db34c992700c8e1c9e9
tech/it/ai/ai.md
tech/it/ai/ai.md
[TOC] # Overview # Deep Learning ## Resources ### Online Courses - [Practical and Top-Down Approach][dl-course] # References [wiki]: https://en.wikipedia.org/wiki/Artificial_intelligence [outline]: https://en.wikipedia.org/wiki/Outline_of_artificial_intelligence [deepmind]: https://deepmind.com/ [machine-learnin...
[TOC] # Overview # Deep Learning ## Resources ### Online Courses - [Practical and Top-Down Approach][dl-course] # Simultaneous Localization and Mapping (SLAM) - https://en.wikipedia.org/wiki/Simultaneous_localization_and_mapping - https://ocw.mit.edu/courses/aeronautics-and-astronautics/16-412j-cognitive-robotic...
Add Simultaneous localization and mapping
Add Simultaneous localization and mapping
Markdown
mit
samtron1412/docs
markdown
## Code Before: [TOC] # Overview # Deep Learning ## Resources ### Online Courses - [Practical and Top-Down Approach][dl-course] # References [wiki]: https://en.wikipedia.org/wiki/Artificial_intelligence [outline]: https://en.wikipedia.org/wiki/Outline_of_artificial_intelligence [deepmind]: https://deepmind.com/ ...
423b0006642e012fac179eab3f87b3fa5c9aec99
docs/technical_details/snv_calling.rst
docs/technical_details/snv_calling.rst
************************** SNV Calling and Annotation **************************
************************** SNV Calling and Annotation ************************** SNV calling is performed by Freebayes. Annotation of variants is performed by SnpEff. The default arguments to SnpEff are specified in the code `here <https://github.com/churchlab/millstone/blob/972cf2e7c38d796ec49aebb77a1aec5742986f13/g...
Update docs with note about SnpEff arguments.
Update docs with note about SnpEff arguments.
reStructuredText
mit
churchlab/millstone,churchlab/millstone,churchlab/millstone,churchlab/millstone
restructuredtext
## Code Before: ************************** SNV Calling and Annotation ************************** ## Instruction: Update docs with note about SnpEff arguments. ## Code After: ************************** SNV Calling and Annotation ************************** SNV calling is performed by Freebayes. Annotation of variants i...
a3b7623a237e1d52d306a9b7eac9ee148c4abfd5
Eurofurence/Views/Presenters/Modules/Login/View/LoginViewControllerV2Factory.swift
Eurofurence/Views/Presenters/Modules/Login/View/LoginViewControllerV2Factory.swift
// // LoginViewControllerV2Factory.swift // Eurofurence // // Created by Thomas Sherwood on 04/12/2017. // Copyright © 2017 Eurofurence. All rights reserved. // import UIKit.UIStoryboard import UIKit.UIViewController struct LoginViewControllerV2Factory { private let storyboard = UIStoryboard(name: "Login", b...
// // LoginViewControllerV2Factory.swift // Eurofurence // // Created by Thomas Sherwood on 04/12/2017. // Copyright © 2017 Eurofurence. All rights reserved. // import UIKit.UIStoryboard import UIKit.UIViewController struct LoginViewControllerV2Factory: LoginSceneFactory { private let storyboard = UIStoryboa...
Make login view controller factory conform to scene factory
Make login view controller factory conform to scene factory
Swift
mit
Fenrikur/ef-app_ios,eurofurence/ef-app_ios,eurofurence/ef-app_ios,Fenrikur/ef-app_ios
swift
## Code Before: // // LoginViewControllerV2Factory.swift // Eurofurence // // Created by Thomas Sherwood on 04/12/2017. // Copyright © 2017 Eurofurence. All rights reserved. // import UIKit.UIStoryboard import UIKit.UIViewController struct LoginViewControllerV2Factory { private let storyboard = UIStoryboard(...
c62bfb7a7939445b132ab4d59bff15c55bd1d2ad
lib/frankie/request_scope.rb
lib/frankie/request_scope.rb
module Frankie class RequestScope attr_reader :request, :app, :response def self.add_helper_module m include m end def initialize app, req @app = app @headers = {'Content-Type' => 'text/html'} @status = 200 @request = req end def params request.params ...
module Frankie class RequestScope attr_reader :request, :app, :response def self.add_helper_module m include m end def initialize app, req @app = app @headers = {'Content-Type' => 'text/html'} @status = 200 @request = req end def params request.params ...
Make the params hash indifferent
Make the params hash indifferent
Ruby
mit
alisnic/nyny,alisnic/nyny
ruby
## Code Before: module Frankie class RequestScope attr_reader :request, :app, :response def self.add_helper_module m include m end def initialize app, req @app = app @headers = {'Content-Type' => 'text/html'} @status = 200 @request = req end def params re...
8cee5b2453aa21971649c194a97eeaeb6947c40f
playbooks/roles/aws_digitalmarketplace_api/tasks/main.yml
playbooks/roles/aws_digitalmarketplace_api/tasks/main.yml
--- - name: Digital Marketplace API Elastic Beanstalk app ({{state}}) cloudformation: stack_name: "digitalmarketplace-api-{{ environment_name }}" state: "{{ state }}" region: "{{ aws_region }}" disable_rollback: false template: ../cloudformation_templates/aws_digitalmarketplace_api_app.json te...
--- - name: Digital Marketplace API Elastic Beanstalk app ({{state}}) cloudformation: stack_name: "digitalmarketplace-api-{{ environment_name }}" state: "{{ state }}" region: "{{ aws_region }}" disable_rollback: false template: ../cloudformation_templates/aws_digitalmarketplace_api_app.json te...
Add skip_base variable to only remove env on teardown
Add skip_base variable to only remove env on teardown
YAML
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
yaml
## Code Before: --- - name: Digital Marketplace API Elastic Beanstalk app ({{state}}) cloudformation: stack_name: "digitalmarketplace-api-{{ environment_name }}" state: "{{ state }}" region: "{{ aws_region }}" disable_rollback: false template: ../cloudformation_templates/aws_digitalmarketplace_api...
c01d77f3bcd3094eac546bb83c3d964130731b16
recipes/bioconductor-motiv/build.sh
recipes/bioconductor-motiv/build.sh
export INCLUDE_PATH="${PREFIX}/include" export LIBRARY_PATH="${PREFIX}/lib" export LD_LIBRARY_PATH="${PREFIX}/lib" export LDFLAGS="-L${PREFIX}/lib" export CPPFLAGS="-I${PREFIX}/include" # R refuses to build packages that mark themselves as # "Priority: Recommended" mv DESCRIPTION DESCRIPTION.old grep -v '^Priority: ...
export LDFLAGS="-L${PREFIX}/lib -Wl,-rpath ${PREFIX}/lib" # R refuses to build packages that mark themselves as # "Priority: Recommended" mv DESCRIPTION DESCRIPTION.old grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION # $R CMD INSTALL --build . # # # Add more build steps here, if they are necessary. # # See # http...
Fix LDFLAGS to include rpath
Fix LDFLAGS to include rpath
Shell
mit
martin-mann/bioconda-recipes,dmaticzka/bioconda-recipes,bioconda/bioconda-recipes,HassanAmr/bioconda-recipes,CGATOxford/bioconda-recipes,phac-nml/bioconda-recipes,JenCabral/bioconda-recipes,acaprez/recipes,mdehollander/bioconda-recipes,keuv-grvl/bioconda-recipes,cokelaer/bioconda-recipes,bow/bioconda-recipes,jfallmann/...
shell
## Code Before: export INCLUDE_PATH="${PREFIX}/include" export LIBRARY_PATH="${PREFIX}/lib" export LD_LIBRARY_PATH="${PREFIX}/lib" export LDFLAGS="-L${PREFIX}/lib" export CPPFLAGS="-I${PREFIX}/include" # R refuses to build packages that mark themselves as # "Priority: Recommended" mv DESCRIPTION DESCRIPTION.old grep...
c26f27a9c39ef978959cab2b848162450f33bb9b
sitesprocket/templates/Includes/SiteSprocketAdmin_results.ss
sitesprocket/templates/Includes/SiteSprocketAdmin_results.ss
<div class="search-form">$SearchForm</div> <h3>$Heading</h3> <% if ProjectResults %> <div class="projects"> <table class="project_results" cellspacing="0" cellpadding="0"> <% include ProjectResults %> </table> </div> <% else %> <% _t('SSPAdmin.NOPROJECTS','There are no projects that meet your criteria') %> <%...
<div class="search-form">$SearchForm</div> <h3>$Heading</h3> <% if ProjectResults %> <div class="projects"> <table class="project_results" cellspacing="0" cellpadding="0"> <% include ProjectResults %> </table> </div> <% else %> <p class="no-results"><% _t('SSPAdmin.NOPROJECTS','There are no projects that meet...
FIX - Added <p> class and tag to style no results message
FIX - Added <p> class and tag to style no results message
Scheme
bsd-3-clause
tbarho/SiteSprocket,tbarho/SiteSprocket,tbarho/SiteSprocket,tbarho/SiteSprocket
scheme
## Code Before: <div class="search-form">$SearchForm</div> <h3>$Heading</h3> <% if ProjectResults %> <div class="projects"> <table class="project_results" cellspacing="0" cellpadding="0"> <% include ProjectResults %> </table> </div> <% else %> <% _t('SSPAdmin.NOPROJECTS','There are no projects that meet your ...
f30d23ca0a30d293a9617916f98ce64a4a351e16
docs/apidoc.rst
docs/apidoc.rst
CLiC for developers =================== Cheshire3 --------- The data-model ############## CLiC Concordance ---------------- .. automodule:: concordance :members: CLiC Clusters ------------- .. automodule:: clusters :members: CLiC Keywords ------------- .. automodule:: keywords :members: CLiC Chapter ...
CLiC for developers =================== Cheshire3 --------- The data-model ############## CLiC Concordance ---------------- .. automodule:: concordance :members: CLiC Clusters ------------- .. automodule:: clusters :members: CLiC Keywords ------------- .. automodule:: keywords :members: CLiC Chapter ...
Add info on how to run new indexes, or a debug server
Add info on how to run new indexes, or a debug server
reStructuredText
mit
CentreForCorpusResearch/clic,CentreForCorpusResearch/clic,CentreForResearchInAppliedLinguistics/clic,CentreForResearchInAppliedLinguistics/clic,CentreForCorpusResearch/clic,CentreForResearchInAppliedLinguistics/clic
restructuredtext
## Code Before: CLiC for developers =================== Cheshire3 --------- The data-model ############## CLiC Concordance ---------------- .. automodule:: concordance :members: CLiC Clusters ------------- .. automodule:: clusters :members: CLiC Keywords ------------- .. automodule:: keywords :members...
c9e931d76857fea5a430b35189262d8a89421219
README.md
README.md
Reward your people with motivating GIFs, affectionately chosen at random. `sticker-shock` retrieves delightful images from the [Giphy](http://giphy.com/) treasure house, filtered by a workplace-friendly "G" rating. Once obtained, the obviously rewarding image is inserted into a given empty cell on your team's beloved ...
Reward your people with motivating GIFs, affectionately chosen at random. `sticker-shock` retrieves delightful images from the [Giphy](http://giphy.com/) treasure house, filtered by a workplace-friendly "G" rating. Once obtained, the obviously rewarding image is inserted into a given empty cell on your team's beloved ...
Add line about Google spreadsheet permissions
Add line about Google spreadsheet permissions
Markdown
mit
melanie-at-veeva/sticker-shock
markdown
## Code Before: Reward your people with motivating GIFs, affectionately chosen at random. `sticker-shock` retrieves delightful images from the [Giphy](http://giphy.com/) treasure house, filtered by a workplace-friendly "G" rating. Once obtained, the obviously rewarding image is inserted into a given empty cell on your...
ece9102d03a2daa7f3ca1793c97896f0ed50e2a0
travis/before_script.sh
travis/before_script.sh
set -e brew update brew install xctool || brew outdated xctool || brew upgrade xctool
set -e brew update # brew install xctool || brew outdated xctool || brew upgrade xctool brew uninstall xctool brew install --HEAD xctool
Use HEAD version of xctool to fix Xcode 7.3 build issues
Use HEAD version of xctool to fix Xcode 7.3 build issues
Shell
apache-2.0
blstream/StudyBox_iOS,blstream/StudyBox_iOS,blstream/StudyBox_iOS
shell
## Code Before: set -e brew update brew install xctool || brew outdated xctool || brew upgrade xctool ## Instruction: Use HEAD version of xctool to fix Xcode 7.3 build issues ## Code After: set -e brew update # brew install xctool || brew outdated xctool || brew upgrade xctool brew uninstall xctool brew install --...
ad4efab022bc82d60e164257129469280f2a171a
app/models/paper_role.rb
app/models/paper_role.rb
class PaperRole < ActiveRecord::Base belongs_to :user, inverse_of: :paper_roles belongs_to :paper, inverse_of: :paper_roles validates :paper, presence: true after_save :assign_tasks_to_editor, if: -> { user_id_changed? && role == 'editor' } def self.admins where(role: 'admin') end def self.for_us...
class PaperRole < ActiveRecord::Base belongs_to :user, inverse_of: :paper_roles belongs_to :paper, inverse_of: :paper_roles validates :paper, presence: true after_save :assign_tasks_to_editor, if: -> { user_id_changed? && role == 'editor' } validates_uniqueness_of :role, scope: [:user_id, :paper_id] de...
Validate uniqueness of collaborator paper roles.
Validate uniqueness of collaborator paper roles.
Ruby
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
ruby
## Code Before: class PaperRole < ActiveRecord::Base belongs_to :user, inverse_of: :paper_roles belongs_to :paper, inverse_of: :paper_roles validates :paper, presence: true after_save :assign_tasks_to_editor, if: -> { user_id_changed? && role == 'editor' } def self.admins where(role: 'admin') end ...
3b56598dba9c23818d51f77ef89d9ede47f8a4b3
install/el/index.md
install/el/index.md
--- layout: default title: Install (Enterprise Linux) --- # Install (Enterprise Linux) 1. Add YUM repo $ sudo rpm -i http://dl.rockplatform.org/rp0/rpm/el/rock-release.rpm 1. Install `rock` and runtimes (also see [Puppet module](https://github.com/rockplatform/puppet-rock)) $ sudo yum install -y ...
--- layout: default title: Install (Enterprise Linux) --- # Install (Enterprise Linux) 1. Add YUM repo $ sudo rpm -i http://dl.rockplatform.org/rp0/rpm/el/rock-release.rpm 1. Install `rock` and runtimes $ sudo yum install -y \ rock \ rock-runtime-node04 \ rock-...
Remove note about puppet module
Remove note about puppet module
Markdown
mit
silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock
markdown
## Code Before: --- layout: default title: Install (Enterprise Linux) --- # Install (Enterprise Linux) 1. Add YUM repo $ sudo rpm -i http://dl.rockplatform.org/rp0/rpm/el/rock-release.rpm 1. Install `rock` and runtimes (also see [Puppet module](https://github.com/rockplatform/puppet-rock)) $ sudo...
30d6c4c15eb94dd1511d55b88c86fac677b79902
Cargo.toml
Cargo.toml
[package] name = "libffi" version = "0.7.1-alpha.0" authors = ["Jesse A. Tov <jesse.tov@gmail.com>"] description = "Rust bindings for libffi" repository = "https://github.com/tov/libffi-rs" readme = "README.md" license = "MIT/Apache-2.0" keywords = ["ffi", "libffi", "closure", "c"] categories = ["development-tools::ffi...
[package] name = "libffi" version = "0.7.1-alpha.0" authors = ["Jesse A. Tov <jesse.tov@gmail.com>"] description = "Rust bindings for libffi" repository = "https://github.com/tov/libffi-rs" readme = "README.md" license = "MIT/Apache-2.0" keywords = ["ffi", "libffi", "closure", "c"] categories = ["development-tools::ffi...
Set doc.rs metadata to pass system cargo feature.
Set doc.rs metadata to pass system cargo feature.
TOML
apache-2.0
tov/libffi-rs,tov/libffi-rs,tov/libffi-rs,tov/libffi-rs,tov/libffi-rs,tov/libffi-rs
toml
## Code Before: [package] name = "libffi" version = "0.7.1-alpha.0" authors = ["Jesse A. Tov <jesse.tov@gmail.com>"] description = "Rust bindings for libffi" repository = "https://github.com/tov/libffi-rs" readme = "README.md" license = "MIT/Apache-2.0" keywords = ["ffi", "libffi", "closure", "c"] categories = ["develo...
5830a03ba7ba10079db4eff3588c7d6649512d87
README.md
README.md
Ruby oBIX parser. ## Installation Add this line to your application's Gemfile: gem 'obix' And then execute: $ bundle Or install it yourself as: $ gem install obix ## Usage # obix.xml <obj href="http://myhome/thermostat"> <real name="spaceTemp" unit="obix:units/fahrenheit" val="67...
Ruby oBIX parser. ## Installation Add this line to your application's Gemfile: gem 'obix' And then execute: $ bundle Or install it yourself as: $ gem install obix ## Usage # obix.xml <obj href="http://myhome/thermostat"> <real name="spaceTemp" unit="obix:units/fahrenheit" val="67...
Add disclaimer for relative time objects
Add disclaimer for relative time objects
Markdown
mit
hyperoslo/obix
markdown
## Code Before: Ruby oBIX parser. ## Installation Add this line to your application's Gemfile: gem 'obix' And then execute: $ bundle Or install it yourself as: $ gem install obix ## Usage # obix.xml <obj href="http://myhome/thermostat"> <real name="spaceTemp" unit="obix:units/fah...
240a18f3955c0c2749c867b32c231b19672d83e0
src/problem.h
src/problem.h
class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same // sense (i.e., either all objectives are to be min...
class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same // sense (i.e., either all objectives are to be min...
Fix invalid delete[] calls in ~Problem
Fix invalid delete[] calls in ~Problem If objcnt is 0, then no memory has been allocated.
C
bsd-2-clause
WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira,WPettersson/moip_aira
c
## Code Before: class Problem { public: int objcnt; // Number of objectives double* rhs; int** objind; // Objective indices double** objcoef; // Objective coefficients Sense objsen; // Objective sense. Note that all objectives must have the same // sense (i.e., either all objectiv...
b29c2d96d3986ec627d2714a152db7343c2741d0
package.json
package.json
{ "name": "node-thumbnail", "description": "thumbnail all the things", "keywords": ["thumbnail", "images"], "author": "Honza Pokorny", "version": "0.3.0", "licenses": [{ "type": "BSD" }], "main": "./src/thumbnail.js", "engines": { "node": ">=0.8.0" }, "bin": { "thumb": "./bin/thumb" ...
{ "name": "node-thumbnail", "description": "thumbnail all the things", "keywords": ["thumbnail", "images"], "author": "Honza Pokorny", "version": "0.3.0", "licenses": [{ "type": "BSD" }], "main": "./src/thumbnail.js", "engines": { "node": ">=0.8.0" }, "bin": { "thumb": "./bin/thumb" ...
Switch to git-based dep for imagemagick
Switch to git-based dep for imagemagick See issue https://github.com/rsms/node-imagemagick/issues/48
JSON
bsd-2-clause
honza/node-thumbnail
json
## Code Before: { "name": "node-thumbnail", "description": "thumbnail all the things", "keywords": ["thumbnail", "images"], "author": "Honza Pokorny", "version": "0.3.0", "licenses": [{ "type": "BSD" }], "main": "./src/thumbnail.js", "engines": { "node": ">=0.8.0" }, "bin": { "thumb": ...
fdfae40b8f203db4a1e3b77b7884d7e071bdaa84
config/environments/development.rb
config/environments/development.rb
PRX::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serve...
PRX::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serve...
Allow web-consoles from anywhere, for docker containers
Allow web-consoles from anywhere, for docker containers
Ruby
agpl-3.0
PRX/cms.prx.org,PRX/cms.prx.org,PRX/cms.prx.org,PRX/cms.prx.org
ruby
## Code Before: PRX::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to resta...
22f94c5bb08ee6ae816109bdc06eab9e1974884a
app/models/cnes_professional.py
app/models/cnes_professional.py
from sqlalchemy import Column, Integer, String, func from app import db class CnesProfessional(db.Model): __tablename__ = 'cnes_professional' year = Column(Integer, primary_key=True) region = Column(String(1), primary_key=True) mesoregion = Column(String(4), primary_key=True) mic...
from sqlalchemy import Column, Integer, String, func from app import db class CnesProfessional(db.Model): __tablename__ = 'cnes_professional' year = Column(Integer, primary_key=True) region = Column(String(1), primary_key=True) mesoregion = Column(String(4), primary_key=True) mic...
Add CBO column to cnes professional
Add CBO column to cnes professional
Python
mit
daniel1409/dataviva-api,DataViva/dataviva-api
python
## Code Before: from sqlalchemy import Column, Integer, String, func from app import db class CnesProfessional(db.Model): __tablename__ = 'cnes_professional' year = Column(Integer, primary_key=True) region = Column(String(1), primary_key=True) mesoregion = Column(String(4), primary_k...
a03d816983ff9fb78f6a2048b3be19d25e557237
docs/release-checklist.md
docs/release-checklist.md
This document has reminders of things one might forget to do when preparing a new release. ### A week before the release * Upgrade all Python dependencies in `requirements` to latest upstream versions so they can burn in (use `pip list --outdated`). * Update all the strings on Transifex and notify translators that...
This document has reminders of things one might forget to do when preparing a new release. ### A week before the release * Upgrade all Python dependencies in `requirements` to latest upstream versions so they can burn in (use `pip list --outdated`). * Update all the strings on Transifex and notify translators that...
Update release checklist to mention GitHub.
docs: Update release checklist to mention GitHub.
Markdown
apache-2.0
rishig/zulip,jackrzhang/zulip,showell/zulip,christi3k/zulip,jphilipsen05/zulip,tommyip/zulip,Galexrt/zulip,verma-varsha/zulip,timabbott/zulip,samatdav/zulip,amanharitsh123/zulip,j831/zulip,SmartPeople/zulip,kou/zulip,hackerkid/zulip,vaidap/zulip,JPJPJPOPOP/zulip,blaze225/zulip,jainayush975/zulip,PhilSk/zulip,samatdav/z...
markdown
## Code Before: This document has reminders of things one might forget to do when preparing a new release. ### A week before the release * Upgrade all Python dependencies in `requirements` to latest upstream versions so they can burn in (use `pip list --outdated`). * Update all the strings on Transifex and notify ...
b5b2b8c45b318dc8e4cf1b714b212245c99d231b
index.html
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Basic Calculator</title> </head> <body> <div id='calculator'> <div id='response-pane'> </div> <div id...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Basic Calculator</title> <script src='index.js' defer></script> </head> <body> <div id='calculator'> <di...
Add values to operations buttons to make logic DRYer
Add values to operations buttons to make logic DRYer
HTML
mit
JasonMFry/calculator,JasonMFry/calculator
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Basic Calculator</title> </head> <body> <div id='calculator'> <div id='response-pane'> </d...
93140f6c1b79ff458ea7fbac6da459b97ac0943f
typedoc.json
typedoc.json
{ "mode": "modules", "moduleResolution": "node", "tsconfig": "tsconfig.json", "includeDeclarations": true, "ignoreCompilerErrors": true, "excludePrivate": true, "out": "docs" }
{ "theme": "node_modules/typedoc-md-theme/bin", "mode": "modules", "moduleResolution": "node", "tsconfig": "tsconfig.json", "includeDeclarations": true, "ignoreCompilerErrors": true, "excludePrivate": true, "out": "docs" }
Fix md doc generation bug
Fix md doc generation bug
JSON
apache-2.0
awayjs/core,awayjs/awayjs-core,awayjs/core,awayjs/core,awayjs/awayjs-core,awayjs/core,awayjs/awayjs-core,awayjs/awayjs-core,awayjs/core
json
## Code Before: { "mode": "modules", "moduleResolution": "node", "tsconfig": "tsconfig.json", "includeDeclarations": true, "ignoreCompilerErrors": true, "excludePrivate": true, "out": "docs" } ## Instruction: Fix md doc generation bug ## Code After: { "theme": "node_modules/typedoc-md-theme/bin", "mo...
04fce8067ff911c7d89924568184e64ad922c615
src/atom/app.coffee
src/atom/app.coffee
Keymap = require 'keymap' $ = require 'jquery' _ = require 'underscore' require 'underscore-extensions' module.exports = class App keymap: null windows: null tabText: null constructor: (@loadPath, nativeMethods)-> @windows = [] @setUpKeymap() @tabText = " " setUpKeymap: -> @keymap = new Ke...
Keymap = require 'keymap' $ = require 'jquery' _ = require 'underscore' require 'underscore-extensions' module.exports = class App keymap: null windows: null tabText: null constructor: (@loadPath, nativeMethods)-> @windows = [] @setUpKeymap() @tabText = " " setUpKeymap: -> @keymap = new Ke...
Add some temporary logging to debug intermittent spec failure.
Add some temporary logging to debug intermittent spec failure.
CoffeeScript
mit
tisu2tisu/atom,RobinTec/atom,jtrose2/atom,toqz/atom,ppamorim/atom,sebmck/atom,matthewclendening/atom,devoncarew/atom,Mokolea/atom,yalexx/atom,hagb4rd/atom,G-Baby/atom,stuartquin/atom,deepfox/atom,codex8/atom,bradgearon/atom,deepfox/atom,githubteacher/atom,bryonwinger/atom,Abdillah/atom,acontreras89/atom,sekcheong/atom,...
coffeescript
## Code Before: Keymap = require 'keymap' $ = require 'jquery' _ = require 'underscore' require 'underscore-extensions' module.exports = class App keymap: null windows: null tabText: null constructor: (@loadPath, nativeMethods)-> @windows = [] @setUpKeymap() @tabText = " " setUpKeymap: -> ...
186e09b1a9685c63c2c54c9fcfb765fd63e2ab65
views/project_view.xml
views/project_view.xml
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="edit_project_inh" model="ir.ui.view"> <field name="name">project.project.form</field> <field name="model">project.project</field> <field name="type">form</field> <field name="inherit_id" ref="project.edit_project"/> <...
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="edit_project_inh" model="ir.ui.view"> <field name="name">project.project.form</field> <field name="model">project.project</field> <field name="type">form</field> <field name="inherit_id" ref="project.edit_project"/> <...
Move field active plan version to a better position
Move field active plan version to a better position
XML
agpl-3.0
projectexpert/pmis
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <odoo> <record id="edit_project_inh" model="ir.ui.view"> <field name="name">project.project.form</field> <field name="model">project.project</field> <field name="type">form</field> <field name="inherit_id" ref="project.edit_proj...
47881d5e9908a4d65b947db3f9692bc234077616
layout.jade
layout.jade
doctype html html head title block title | Welcome meta(charset='utf-8') meta(name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0') link(rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css') link(rel='stylesheet' href='...
doctype html html head title block title | Welcome meta(charset='utf-8') meta(name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0') // Basic SEO improvements meta(name='keywords', content='') meta(name='author', content='') meta(name='...
Add basic SEO and OGTags
Add basic SEO and OGTags
Jade
mit
emanuelebrivio/nu,emanuelebrivio/nu,emanuelebrivio/nu
jade
## Code Before: doctype html html head title block title | Welcome meta(charset='utf-8') meta(name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0') link(rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css') link(rel='st...
860a082bb1b024d1e76f081957b08dd215a72147
app/scripts/getTickets.js
app/scripts/getTickets.js
/* global SW:true */ $(document).ready(function(){ 'use strict'; console.log( 'Doing SW things!' ); var card = new SW.Card(); var helpdesk = card.services('helpdesk'); helpdesk .request('tickets') .then( function(data){ console.log( 'got data!' ); var ticketCount = {}; $.each(data...
/* global SW:true */ $(document).ready(function(){ 'use strict'; console.log( 'Doing SW things!' ); var card = new SW.Card(); var helpdesk = card.services('helpdesk'); var assignmentCount = {}; helpdesk .request('tickets') .then( function(data){ console.log( 'got data!' ); $.each(data...
Troubleshoot script for displaying getting the counts of tickets assigned to each user.
Troubleshoot script for displaying getting the counts of tickets assigned to each user.
JavaScript
mit
chrisbodhi/ticket-graph,chrisbodhi/ticket-graph
javascript
## Code Before: /* global SW:true */ $(document).ready(function(){ 'use strict'; console.log( 'Doing SW things!' ); var card = new SW.Card(); var helpdesk = card.services('helpdesk'); helpdesk .request('tickets') .then( function(data){ console.log( 'got data!' ); var ticketCount = {}; ...
a310ac50f96102a0c4a235a6357b0e42b0d32f13
src/Main.hs
src/Main.hs
import System.Random import Data.List main :: IO () main = do seed <- newStdGen let numbers = take 50000 $ randomIntStream seed putStrLn $ summary $ frequency numbers frequency :: Ord a => [a] -> [(a, Int)] frequency xs = map (\l -> (head l, length l)) (group (sort xs)) summary :: [(Int, Int)] -> String sum...
import System.Random import Data.List main :: IO () main = do seed <- newStdGen let numbers = take 50000 $ randomIntStream seed putStrLn $ summary $ frequency numbers putStrLn $ summary $ frequency "Hello, world!" frequency :: Ord a => [a] -> [(a, Int)] frequency xs = map (\l -> (head l, length l)) (group ...
Allow more than just Int to be counted
Allow more than just Int to be counted
Haskell
mit
apauley/parallel-frequency
haskell
## Code Before: import System.Random import Data.List main :: IO () main = do seed <- newStdGen let numbers = take 50000 $ randomIntStream seed putStrLn $ summary $ frequency numbers frequency :: Ord a => [a] -> [(a, Int)] frequency xs = map (\l -> (head l, length l)) (group (sort xs)) summary :: [(Int, Int...
814846bfc8f30cd91164ae126863ae4252edabb0
app/drones/messages/JPEGFrameMessage.java
app/drones/messages/JPEGFrameMessage.java
package drones.messages; import java.io.Serializable; /** * Created by brecht on 4/20/15. */ public class JPEGFrameMessage implements Serializable { private String imageData; public JPEGFrameMessage(String imageData) { this.imageData = imageData; } public String getImageData() { r...
package drones.messages; import java.io.Serializable; /** * Created by brecht on 4/20/15. */ public class JPEGFrameMessage implements Serializable { private String imageData; /** * * @param imageData The image data as a base 64 string */ public JPEGFrameMessage(String imageData) { ...
Add comments to JPEG message
Add comments to JPEG message
Java
mit
ugent-cros/cros-core,ugent-cros/cros-core,ugent-cros/cros-core
java
## Code Before: package drones.messages; import java.io.Serializable; /** * Created by brecht on 4/20/15. */ public class JPEGFrameMessage implements Serializable { private String imageData; public JPEGFrameMessage(String imageData) { this.imageData = imageData; } public String getImageDa...
f6d4e3544a9469db567cd3801a3c56010a3cfa5a
lib/DDG/Spice/Gifs.pm
lib/DDG/Spice/Gifs.pm
package DDG::Spice::Gifs; # ABSTRACT: Search for gifs use strict; use DDG::Spice; name "Gifs"; description "Animated Gifs"; primary_example_queries "funny cat gifs"; source "Giphy"; code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Gifs.pm"; attribution github => ['https://github.c...
package DDG::Spice::Gifs; # ABSTRACT: Search for gifs use strict; use DDG::Spice; name "Gifs"; description "Animated Gifs"; primary_example_queries "funny cat gifs"; source "Giphy"; code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Gifs.pm"; attribution github => ['https://github.c...
Add APIKEY placeholder to spice to url
Add APIKEY placeholder to spice to url
Perl
apache-2.0
rmad17/zeroclickinfo-spice,brianrisk/zeroclickinfo-spice,brianrisk/zeroclickinfo-spice,hshackathons/zeroclickinfo-spice,bibliotechy/zeroclickinfo-spice,digit4lfa1l/zeroclickinfo-spice,deserted/zeroclickinfo-spice,Faiz7412/zeroclickinfo-spice,gautamkrishnar/zeroclickinfo-spice,loganom/zeroclickinfo-spice,lw7360/zeroclic...
perl
## Code Before: package DDG::Spice::Gifs; # ABSTRACT: Search for gifs use strict; use DDG::Spice; name "Gifs"; description "Animated Gifs"; primary_example_queries "funny cat gifs"; source "Giphy"; code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Gifs.pm"; attribution github => ['...
ebc18ea33ea135aec2abc3b6409a11a62672a81c
src/mb/res/home.less
src/mb/res/home.less
.mb-home { } .mb-section-header { color: #999; } .mb-home-section { height: 180px; .section-content { height: 140px; overflow-x: scroll; overflow-y: hidden; .movie-covers { width: 1600px; .movie-cover { width: 100px; height: 140px; background-size: cover; ...
.mb-home { } .mb-section-header { color: #999; } .mb-home-section { height: 180px; .section-content { height: 130px; overflow-x: scroll; overflow-y: hidden; .movie-covers { width: 1600px; a { display: inline-block; width: 100px; height: 130px; .movi...
Add margin for movie cover
Add margin for movie cover
Less
mit
NJU-SAP/movie-board,NJU-SAP/movie-board
less
## Code Before: .mb-home { } .mb-section-header { color: #999; } .mb-home-section { height: 180px; .section-content { height: 140px; overflow-x: scroll; overflow-y: hidden; .movie-covers { width: 1600px; .movie-cover { width: 100px; height: 140px; backgrou...
a431f80f3acf38c6e7b44e07fc3e2e1c5a06dfd1
assets/scripts/app/controllers/profile.coffee
assets/scripts/app/controllers/profile.coffee
Controller = Ember.Controller.extend name: 'profile' needs: ['currentUser', 'accounts', 'account'] userBinding: 'controllers.currentUser' accountBinding: 'controllers.account' activate: (action, params) -> this["view#{$.camelize(action)}"]() viewHooks: -> @connectTab('hooks') @get('controller...
Controller = Ember.Controller.extend name: 'profile' needs: ['currentUser', 'accounts', 'account'] userBinding: 'controllers.currentUser' accountBinding: 'controllers.account' activate: (action, params) -> this["view_#{action}".camelize()]() viewHooks: -> @connectTab('hooks') @get('controller...
Use String.camelize instead of $.camelize
Use String.camelize instead of $.camelize
CoffeeScript
mit
Tiger66639/travis-web,jlrigau/travis-web,fauxton/travis-web,mjlambert/travis-web,Tiger66639/travis-web,jlrigau/travis-web,2947721120/travis-web,jlrigau/travis-web,fauxton/travis-web,travis-ci/travis-web,fauxton/travis-web,travis-ci/travis-web,Tiger66639/travis-web,2947721120/travis-web,travis-ci/travis-web,2947721120/t...
coffeescript
## Code Before: Controller = Ember.Controller.extend name: 'profile' needs: ['currentUser', 'accounts', 'account'] userBinding: 'controllers.currentUser' accountBinding: 'controllers.account' activate: (action, params) -> this["view#{$.camelize(action)}"]() viewHooks: -> @connectTab('hooks') ...
a17e36b2dc9692986edf7f41d995a0a07b953c4a
upload.sh
upload.sh
git clone -b ip-lists https://${GH_REF} ip-lists mv result/* ip-lists cd ip-lists git config user.name $GIT_USER_NAME git config user.email $GIT_USER_EMAIL git add . git commit -m "update $(date +%Y-%m-%d)" git push -q "https://${GH_TOKEN}@${GH_REF}" ip-lists:ip-lists git push -q "https://${GH_TOKEN}@${GH_REF}" ip-lis...
git clone -b ip-lists https://${GH_REF} ip-lists rm ip-lists/*.txt mv result/* ip-lists cd ip-lists git config user.name $GIT_USER_NAME git config user.email $GIT_USER_EMAIL git add . git commit -m "update $(date +%Y-%m-%d)" git push -q "https://${GH_TOKEN}@${GH_REF}" ip-lists:ip-lists git push -q "https://${GH_TOKEN}...
Remove old assets before update
Remove old assets before update
Shell
mit
gaoyifan/china-operator-ip
shell
## Code Before: git clone -b ip-lists https://${GH_REF} ip-lists mv result/* ip-lists cd ip-lists git config user.name $GIT_USER_NAME git config user.email $GIT_USER_EMAIL git add . git commit -m "update $(date +%Y-%m-%d)" git push -q "https://${GH_TOKEN}@${GH_REF}" ip-lists:ip-lists git push -q "https://${GH_TOKEN}@$...
afdf07a331ed5f7dad218f9f23e7466ffcf75597
scripts/components/Header.js
scripts/components/Header.js
import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-ico...
import React from 'react'; import { Link } from 'react-router'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import...
Add my account to header
Add my account to header
JavaScript
mit
ahoarfrost/metaseek,ahoarfrost/metaseek,ahoarfrost/metaseek
javascript
## Code Before: import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'mat...
63e756e8cc4a82318aac6f10744cbb908fe0e47a
docs/index.rst
docs/index.rst
==================== journalism |release| ==================== About ===== .. include:: ../README Why journalism? =============== Why use journalism? * A clean, readable API. * Optimized for exploratory use in the shell. * A full set of SQL-like operations. * Full unicode support. * Decimal precision everywhere. *...
==================== journalism |release| ==================== About ===== .. include:: ../README Why journalism? =============== Why use journalism? * A clean, readable API. * Optimized for exploratory use in the shell. * A full set of SQL-like operations. * Full unicode support. * Decimal precision everywhere. *...
Add 'reference implementation' note to docs.
Add 'reference implementation' note to docs.
reStructuredText
mit
TylerFisher/agate,captainsafia/agate,JoeGermuska/agate,dwillis/agate,wireservice/agate,onyxfish/journalism,flother/agate,onyxfish/agate
restructuredtext
## Code Before: ==================== journalism |release| ==================== About ===== .. include:: ../README Why journalism? =============== Why use journalism? * A clean, readable API. * Optimized for exploratory use in the shell. * A full set of SQL-like operations. * Full unicode support. * Decimal precisi...
0fa462c0bd5ab7a1c6df509f0a29ee017b644606
playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js
playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js
const React = require('react'); const { Component } = require('react'); const { View, Button } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../../testIDs'); class BottomTabSideMenuScreen extends Component { onOpenSideMenuPress = () => { Navigation...
const React = require('react'); const { Component } = require('react'); const { View, Button } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../../testIDs'); class BottomTabSideMenuScreen extends Component { static get options() { return { to...
Add title to e2e screen for testing purposes
Add title to e2e screen for testing purposes
JavaScript
mit
ceyhuno/react-native-navigation,Jpoliachik/react-native-navigation,3sidedcube/react-native-navigation,wix/react-native-navigation,Jpoliachik/react-native-navigation,chicojasl/react-native-navigation,wix/react-native-navigation,wix/react-native-navigation,thanhzusu/react-native-navigation,guyca/react-native-navigation,w...
javascript
## Code Before: const React = require('react'); const { Component } = require('react'); const { View, Button } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../../testIDs'); class BottomTabSideMenuScreen extends Component { onOpenSideMenuPress = () => ...
27030b4a89dfa2a8a406239ecf79cca6202d960d
CONTRIBUTING.md
CONTRIBUTING.md
- NodeJS (開発用にv7.0.0利用) - ぐるなびAPIキー ### Contributing 1. Fork this repository 2. ``npm install`` 3. Create your feature branch from **development** branch (``git checkout develpment && git checkout -b your-branch``) 4. Create a **.env** file in your root directory, and add following key. ``` GNAVI_API_KEY=<You...
- NodeJS (開発用にv7.0.0利用) - ぐるなびAPIキー ### Contributing 1. Join this repository and clone it. 2. ``npm install`` 3. Create your feature branch from **development** branch (``git checkout develpment && git checkout -b your-branch``) 4. Create a **.env** file in your root directory, and add following key. ``` GNAV...
Change not to folk this repository
Change not to folk this repository
Markdown
mit
na0ya/izakaya,na0ya/izakaya
markdown
## Code Before: - NodeJS (開発用にv7.0.0利用) - ぐるなびAPIキー ### Contributing 1. Fork this repository 2. ``npm install`` 3. Create your feature branch from **development** branch (``git checkout develpment && git checkout -b your-branch``) 4. Create a **.env** file in your root directory, and add following key. ``` GN...
a05dafc3003d9133549d4d0e43c1a04b5734588a
src/settings/handlers/ConfigSettingsHandler.js
src/settings/handlers/ConfigSettingsHandler.js
/* Copyright 2017 Travis Ralston Copyright 2019 New Vector Ltd 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 applicable law or a...
/* Copyright 2017 Travis Ralston Copyright 2019 New Vector Ltd 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 applicable law or a...
Check for null config settings a bit safer
Check for null config settings a bit safer Fixes https://github.com/vector-im/riot-web/issues/12254
JavaScript
apache-2.0
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk
javascript
## Code Before: /* Copyright 2017 Travis Ralston Copyright 2019 New Vector Ltd 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 app...