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
c1b259e8fe3fd73ca27139cd681c5832f143b7a7
routes/web.php
routes/web.php
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
Refactor routes: use ::match() so that multiple http verbs that points to the same controller only uses one line
Refactor routes: use ::match() so that multiple http verbs that points to the same controller only uses one line
PHP
mit
ridvanbaluyos/earthquake,ridvanbaluyos/earthquake,ridvanbaluyos/earthquake
php
## Code Before: <?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within ...
e0e7e71442fa747549da7f08ea5d38604a878ab1
setup.cfg
setup.cfg
[bumpversion] current_version = 0.5.0 commit = True tag = True [bumpversion:file:setup.py]
[bumpversion] current_version = 0.5.0 commit = True tag = True message = Update the Charlesbot version from {current_version} to {new_version} [bumpversion:file:setup.py]
Customize the bump version commit message
Customize the bump version commit message
INI
mit
marvinpinto/charlesbot,marvinpinto/charlesbot
ini
## Code Before: [bumpversion] current_version = 0.5.0 commit = True tag = True [bumpversion:file:setup.py] ## Instruction: Customize the bump version commit message ## Code After: [bumpversion] current_version = 0.5.0 commit = True tag = True message = Update the Charlesbot version from {current_version} to {new_ve...
909d546a96e48a40b6b6e503be0451666ba305a3
src/main/java/fr/aumgn/dac2/DAC.java
src/main/java/fr/aumgn/dac2/DAC.java
package fr.aumgn.dac2; import fr.aumgn.bukkitutils.localization.PluginResourceBundles; import fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle; import fr.aumgn.dac2.config.DACConfig; public class DAC { private final DACPlugin plugin; private DACConfig config; private PluginResourceBundle cm...
package fr.aumgn.dac2; import fr.aumgn.bukkitutils.localization.PluginResourceBundles; import fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle; import fr.aumgn.dac2.config.DACConfig; public class DAC { private final DACPlugin plugin; private DACConfig config; private PluginResourceBundle cm...
Clear ResourceBundle cache on reload
Clear ResourceBundle cache on reload
Java
mit
aumgn/DACv2,Loscillo/DACv2-temp
java
## Code Before: package fr.aumgn.dac2; import fr.aumgn.bukkitutils.localization.PluginResourceBundles; import fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle; import fr.aumgn.dac2.config.DACConfig; public class DAC { private final DACPlugin plugin; private DACConfig config; private PluginR...
727694006cae6eb8b67c62448b89901eb279e29c
app/views/sessions/create.blade.php
app/views/sessions/create.blade.php
@extends('layout') @section('content') <h3>Sign In</h3> {{ Form::open(['route'=> ['sessions.store']]) }} {{ Form::label('email', 'Email') }} {{ Form::error('email', $errors) }} {{ Form::text('email') }} {{ Form::label('password', 'Password') }} {{ Form::error('password', $errors) }} {{ Fo...
@extends('layout') @section('content') <h3>Sign In</h3> {{ Form::open(['route'=> ['sessions.store'], 'id' => 'sign_in_form']) }} {{ Form::label('email', 'Email') }} {{ Form::error('email', $errors) }} {{ Form::text('email') }} {{ Form::label('password', 'Password') }} {{ Form::error('password...
Add an ID to sign-in form for testing.
Add an ID to sign-in form for testing.
PHP
mit
axton21/voting-app,axton21/voting-app,DoSomething/voting-app,axton21/voting-app,DoSomething/voting-app,DoSomething/voting-app,DoSomething/voting-app
php
## Code Before: @extends('layout') @section('content') <h3>Sign In</h3> {{ Form::open(['route'=> ['sessions.store']]) }} {{ Form::label('email', 'Email') }} {{ Form::error('email', $errors) }} {{ Form::text('email') }} {{ Form::label('password', 'Password') }} {{ Form::error('password', $erro...
c4e5d85947d14cbcadf94f35c7fea1ef0ae4eb5f
vendor/buildr/buildr-osgi-runtime/lib/buildr/osgi/container.rb
vendor/buildr/buildr-osgi-runtime/lib/buildr/osgi/container.rb
module Buildr module OSGi class Container attr_reader :runtime def initialize(runtime) @runtime = runtime @parameters = {} end def []=(key, value) @parameters[key] = value end def [](key) @parameters[key] end def configuration_dir...
module Buildr module OSGi class Container attr_reader :runtime def initialize(runtime) @runtime = runtime @parameters = OrderedHash.new end def []=(key, value) @parameters[key] = value end def [](key) @parameters[key] end def conf...
Use an ordered has for parameters
Use an ordered has for parameters
Ruby
apache-2.0
realityforge/jml,realityforge/jml
ruby
## Code Before: module Buildr module OSGi class Container attr_reader :runtime def initialize(runtime) @runtime = runtime @parameters = {} end def []=(key, value) @parameters[key] = value end def [](key) @parameters[key] end def c...
813e80dc4ae71efa7177783aaab03d46ebf6ea9e
view/quoteSuccess.mustache
view/quoteSuccess.mustache
<!DOCTYPE html> <html> <head> {{#header}} {{> meta.mustache}} {{/header}} </head> <body> {{#header}} {{> header.mustache}} {{/header}} <section> <h1>Transfer to Bank Account</h1> {{#successfulQuote}} <p>To complete your transaction, send {{quoteAmount}} CAD to <a href="https://ripple.com/...
<!DOCTYPE html> <html> <head> {{#header}} {{> meta.mustache}} {{/header}} </head> <body> {{#header}} {{> header.mustache}} {{/header}} <section> <h1>Transfer to Bank Account</h1> {{#successfulQuote}} <p>To complete your transaction, send {{quoteAmount}} CAD to <a class="root-ripple-addres...
Put sigil in next to address
Put sigil in next to address
HTML+Django
isc
singpolyma/rippleunion-interac
html+django
## Code Before: <!DOCTYPE html> <html> <head> {{#header}} {{> meta.mustache}} {{/header}} </head> <body> {{#header}} {{> header.mustache}} {{/header}} <section> <h1>Transfer to Bank Account</h1> {{#successfulQuote}} <p>To complete your transaction, send {{quoteAmount}} CAD to <a href="htt...
bfa796bb505a48b24a22c33cd6ef3a0b83cc5993
package.json
package.json
{ "name": "time-elements", "version": "0.6.1", "main": "dist/time-elements-legacy.js", "jsnext:main": "dist/time-elements.js", "scripts": { "clean": "rm -rf ./dist ./node_modules", "lint": "eslint src/ test/", "build": "rollup -c && rollup -c rollup.legacy-config.js", "pretest": "npm run lint ...
{ "name": "time-elements", "version": "0.6.1", "main": "dist/time-elements-legacy.js", "jsnext:main": "dist/time-elements.js", "license": "MIT", "scripts": { "clean": "rm -rf ./dist ./node_modules", "lint": "eslint src/ test/", "build": "rollup -c && rollup -c rollup.legacy-config.js", "pret...
Add repository and license fields
Add repository and license fields
JSON
mit
github/time-elements,github/time-elements
json
## Code Before: { "name": "time-elements", "version": "0.6.1", "main": "dist/time-elements-legacy.js", "jsnext:main": "dist/time-elements.js", "scripts": { "clean": "rm -rf ./dist ./node_modules", "lint": "eslint src/ test/", "build": "rollup -c && rollup -c rollup.legacy-config.js", "pretest"...
33755cede3b5f57b25851652f86b50436e72cb37
README.md
README.md
This README outlines the details of collaborating on this Ember addon. ## Installation * `git clone <repository-url>` this repository * `cd ember-floating-mobile-buttons` * `npm install` * `bower install` ## Running * `ember serve` * Visit your app at [http://localhost:4200](http://localhost:4200). ## Running Tes...
Stylish and easy to use Ember floating buttons ##Installation ``` ember install ember-floating-mobile-buttons ``` ##Usage Define a simple floating button. ```hbs {{#floating-mobile-buttons}} <a href>{{fa-icon "pencil"}}</a> {{/floating-mobile-buttons}} ``` You can additionally define child buttons which will ...
Update and complete the documentation.
Update and complete the documentation.
Markdown
mit
yontxu/ember-floating-mobile-buttons,yontxu/ember-floating-mobile-buttons
markdown
## Code Before: This README outlines the details of collaborating on this Ember addon. ## Installation * `git clone <repository-url>` this repository * `cd ember-floating-mobile-buttons` * `npm install` * `bower install` ## Running * `ember serve` * Visit your app at [http://localhost:4200](http://localhost:4200)....
d06a15af459a630539686b62677cb0884120ef2d
spec/lib/api_canon_spec.rb
spec/lib/api_canon_spec.rb
require 'spec_helper' describe ApiCanon do let(:fake_controller) do class FakeController < ActionController::Base include ApiCanon end end describe 'including' do context :class_methods do subject {fake_controller} its(:methods) { should include(:document_method)} end contex...
require 'spec_helper' describe ApiCanon do let(:fake_controller) do class FakeController < ActionController::Base include ApiCanon end end describe 'including' do it "adds class methods to the controller" do expect(fake_controller.methods.map(&:to_s)).to include('document_method') end...
Fix to allow specs to run in 1.8.7
Fix to allow specs to run in 1.8.7
Ruby
mit
cwalsh/api_canon
ruby
## Code Before: require 'spec_helper' describe ApiCanon do let(:fake_controller) do class FakeController < ActionController::Base include ApiCanon end end describe 'including' do context :class_methods do subject {fake_controller} its(:methods) { should include(:document_method)} ...
89657efcce369e4bcfd20e627f913173f9cf0fde
_config.yml
_config.yml
title: ICFP Programming Contest 2017 description: The website for the 2017 ICFP Programming Contest baseurl: "/icfpcontest2017-dev" # the subpath of your site, e.g. /blog url: "/icfpcontest2017-dev" highlighter: rouge markdown: kramdown permalink: /post/:title/ paginate: 4 gems: [jekyll-paginate, jekyll-twitter-plugin...
title: ICFP Programming Contest 2017 description: The website for the 2017 ICFP Programming Contest baseurl: "/icfpcontest2017-dev" # the subpath of your site, e.g. /blog url: "/icfpcontest2017-dev" highlighter: rouge markdown: kramdown permalink: /post/:title/ paginate: 4 gems: [jekyll-paginate, jekyll-twitter-plugin...
Add last modified at gem
Add last modified at gem
YAML
mit
icfpcontest2017/icfpcontest2017.github.io,icfpcontest2017/icfpcontest2017.github.io
yaml
## Code Before: title: ICFP Programming Contest 2017 description: The website for the 2017 ICFP Programming Contest baseurl: "/icfpcontest2017-dev" # the subpath of your site, e.g. /blog url: "/icfpcontest2017-dev" highlighter: rouge markdown: kramdown permalink: /post/:title/ paginate: 4 gems: [jekyll-paginate, jekyl...
73dd2ae69c4b915faa51e7f582bf93453e9f8419
shared/api/instance_console.go
shared/api/instance_console.go
package api // InstanceConsoleControl represents a message on the instance console "control" socket. // // API extension: instances type InstanceConsoleControl struct { Command string `json:"command" yaml:"command"` Args map[string]string `json:"args" yaml:"args"` } // InstanceConsolePost represents a...
package api // InstanceConsoleControl represents a message on the instance console "control" socket. // // API extension: instances type InstanceConsoleControl struct { Command string `json:"command" yaml:"command"` Args map[string]string `json:"args" yaml:"args"` } // InstanceConsolePost represents a...
Add Type field to InstanceConsolePost
shared/api: Add Type field to InstanceConsolePost Signed-off-by: Free Ekanayaka <04111f73b2d444cf053b50d877d79556bf34f55a@canonical.com>
Go
apache-2.0
hallyn/lxd,stgraber/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,atxwebs/lxd,lxc/lxd,Skarlso/lxd,stgraber/lxd,Skarlso/lxd,stgraber/lxd,atxwebs/lxd,stgraber/lxd,hallyn/lxd,stgraber/lxd,Skarlso/lxd,mjeanson/lxd,Skarlso/lxd,lxc/lxd,lxc/lxd,lxc/lxd,lxc/lxd,hallyn/lxd,atxwebs/lxd,hallyn/lxd,stgraber/lxd,mjeanson/...
go
## Code Before: package api // InstanceConsoleControl represents a message on the instance console "control" socket. // // API extension: instances type InstanceConsoleControl struct { Command string `json:"command" yaml:"command"` Args map[string]string `json:"args" yaml:"args"` } // InstanceConsoleP...
f225e8bb6aad637162af53b6213214337b8af106
modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala
modules/cats/shared/src/main/scala/eu/timepit/refined/cats/package.scala
package eu.timepit.refined import _root_.cats.implicits._ import _root_.cats.Show import _root_.cats.kernel.Eq import eu.timepit.refined.api.RefType package object cats { /** * `Eq` instance for refined types that delegates to the `Eq` * instance of the base type. */ implicit def refTypeEq[F[_, _], T: E...
package eu.timepit.refined import _root_.cats.Show import _root_.cats.instances.eq._ import _root_.cats.kernel.Eq import _root_.cats.syntax.contravariant._ import eu.timepit.refined.api.RefType package object cats { /** * `Eq` instance for refined types that delegates to the `Eq` * instance of the base type....
Use fine grained imports and fix style error
Use fine grained imports and fix style error
Scala
mit
sh0hei/refined,fthomas/refined
scala
## Code Before: package eu.timepit.refined import _root_.cats.implicits._ import _root_.cats.Show import _root_.cats.kernel.Eq import eu.timepit.refined.api.RefType package object cats { /** * `Eq` instance for refined types that delegates to the `Eq` * instance of the base type. */ implicit def refType...
762147b8660a507ac5db8d0408162e8463b2fe8e
daiquiri/registry/serializers.py
daiquiri/registry/serializers.py
from rest_framework import serializers from daiquiri.core.serializers import JSONListField, JSONDictField class DublincoreSerializer(serializers.Serializer): identifier = serializers.ReadOnlyField() title = serializers.ReadOnlyField() description = serializers.SerializerMethodField() publisher = ser...
from rest_framework import serializers from daiquiri.core.serializers import JSONDictField, JSONListField class DublincoreSerializer(serializers.Serializer): identifier = serializers.ReadOnlyField() title = serializers.ReadOnlyField() description = serializers.SerializerMethodField() publisher = ser...
Fix status field in OAI-PMH
Fix status field in OAI-PMH
Python
apache-2.0
aipescience/django-daiquiri,aipescience/django-daiquiri,aipescience/django-daiquiri
python
## Code Before: from rest_framework import serializers from daiquiri.core.serializers import JSONListField, JSONDictField class DublincoreSerializer(serializers.Serializer): identifier = serializers.ReadOnlyField() title = serializers.ReadOnlyField() description = serializers.SerializerMethodField() ...
e6cd744ca8f07799f10ec9823c03553d09c888cc
src/client/app/app.routes.js
src/client/app/app.routes.js
"use strict"; (function (app) { app.View1 = ng.core .Component({ template: "<p>View {{ viewName }} loaded with the router</p>" }) .Class({ constructor: function () { this.viewName = "View1"; } }); }(window.app || (window.app = {})...
"use strict"; (function () { // fix for a regression in rx 5.0.0-beta.11 var obsProto = window.Rx.Observable.prototype; obsProto._catch = obsProto.catch; }()); (function (app) { app.View1 = ng.core .Component({ template: "<p>View {{ viewName }} loaded with the router</p>" }...
Fix a bug in rxjs 5.0.0-beta.11.
Fix a bug in rxjs 5.0.0-beta.11.
JavaScript
mit
albertosantini/angular2-es5-jumpstart,albertosantini/angular2-es5-jumpstart
javascript
## Code Before: "use strict"; (function (app) { app.View1 = ng.core .Component({ template: "<p>View {{ viewName }} loaded with the router</p>" }) .Class({ constructor: function () { this.viewName = "View1"; } }); }(window.app || (...
e55ba2f5cb1e2666c54b2ef6de6a2add33c4ac85
readme.md
readme.md
``` sudo sass --watch scss:css ``` # Kopiera saker till MAMP ``` ../../Applications/MAMP/Library/bin/mysql -u root -p sittning < ~/Desktop/Websites/NILLEFRANZTEST/sittning/sqlQueries/init.sql ```
``` sudo sass --watch scss:css ``` # Kopiera saker till MAMP ``` ../../Applications/MAMP/Library/bin/mysql -u root -p sittning < ~/Desktop/Websites/NILLEFRANZTEST/sittning/sqlQueries/init.sql ``` # FB inlogg guide http://www.krizna.com/general/login-with-facebook-using-php/
Add link to fb tutorial
Add link to fb tutorial
Markdown
mit
cNille/lundasittning,cNille/lundasittning
markdown
## Code Before: ``` sudo sass --watch scss:css ``` # Kopiera saker till MAMP ``` ../../Applications/MAMP/Library/bin/mysql -u root -p sittning < ~/Desktop/Websites/NILLEFRANZTEST/sittning/sqlQueries/init.sql ``` ## Instruction: Add link to fb tutorial ## Code After: ``` sudo sass --watch scss:css ``` # Kopiera sa...
24e3c857b48872e2335045fa53267195ff718405
app/models/spree/avatax_configuration.rb
app/models/spree/avatax_configuration.rb
class Spree::AvataxConfiguration < Spree::Preferences::Configuration preference :company_code, :string, default: ENV['AVATAX_COMPANY_CODE'] preference :account, :string, default: ENV['AVATAX_ACCOUNT'] preference :license_key, :string, default: ENV['AVATAX_LICENSE_KEY'] preference :environment, :string, default...
class Spree::AvataxConfiguration < Spree::Preferences::Configuration preference :company_code, :string, default: ENV['AVATAX_COMPANY_CODE'] preference :account, :string, default: ENV['AVATAX_ACCOUNT'] preference :license_key, :string, default: ENV['AVATAX_LICENSE_KEY'] preference :environment, :string, default...
Make default_environment a class method
Make default_environment a class method As instance methods are deprecated since this PR[0]. [0] `https://github.com/solidusio/solidus/pull/4064`
Ruby
bsd-3-clause
boomerdigital/solidus_avatax_certified,boomerdigital/solidus_avatax_certified,boomerdigital/solidus_avatax_certified
ruby
## Code Before: class Spree::AvataxConfiguration < Spree::Preferences::Configuration preference :company_code, :string, default: ENV['AVATAX_COMPANY_CODE'] preference :account, :string, default: ENV['AVATAX_ACCOUNT'] preference :license_key, :string, default: ENV['AVATAX_LICENSE_KEY'] preference :environment, ...
2c03162a74c3e5afc9c4934d579a711e0c8f1e2a
src/Event/UserEvent.php
src/Event/UserEvent.php
<?php namespace AWurth\SilexUser\Event; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\User\UserInterface; class UserEvent extends Event { /** * @var null|Request */ protected $request; /** * @var UserInterfac...
<?php namespace AWurth\SilexUser\Event; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpFoundation\Request; use AWurth\SilexUser\Entity\UserInterface; class UserEvent extends Event { /** * @var null|Request */ protected $request; /** * @var UserInterface */ ...
Use SilexUser's UserInterface instead of the Symfony Security Component one
Use SilexUser's UserInterface instead of the Symfony Security Component one
PHP
mit
awurth/silex-user,awurth/silex-user
php
## Code Before: <?php namespace AWurth\SilexUser\Event; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\User\UserInterface; class UserEvent extends Event { /** * @var null|Request */ protected $request; /** * @...
693035b74f65fcc535c8e22babc8413b100de7af
libraries/tests/mbed/i2c_TMP102/main.cpp
libraries/tests/mbed/i2c_TMP102/main.cpp
TMP102 temperature(PTC9, PTC8, 0x90); #elif defined(TARGET_LPC812) TMP102 temperature(D10, D11, 0x90); #elif defined(TARGET_LPC4088) TMP102 temperature(p9, p10, 0x90); #elif defined(TARGET_LPC2368) TMP102 temperature(p28, p27, 0x90); #else TMP102 temperature(p28, p27, 0x90); #endif int main() { float t = tempe...
TMP102 temperature(PTC9, PTC8, 0x90); #elif defined(TARGET_LPC812) TMP102 temperature(D10, D11, 0x90); #elif defined(TARGET_LPC4088) TMP102 temperature(p9, p10, 0x90); #elif defined(TARGET_LPC2368) TMP102 temperature(p28, p27, 0x90); #elif defined(TARGET_NUCLEO_F103RB) || \ defined(TARGET_NUCLEO_L152RE) || \ ...
Add NUCLEOs targets in TMP102 test
Add NUCLEOs targets in TMP102 test
C++
apache-2.0
mikaleppanen/mbed-os,getopenmono/mbed,Tiryoh/mbed,kpurusho/mbed,jamesadevine/mbed,pbrook/mbed,screamerbg/mbed,bcostm/mbed-os,masaohamanaka/mbed,ryankurte/mbed-os,kjbracey-arm/mbed,al177/mbed,nabilbendafi/mbed,pedromes/mbed,mnlipp/mbed,kpurusho/mbed,tung7970/mbed-os-1,adustm/mbed,Timmmm/mbed,hwfwgrp/mbed,infinnovation/m...
c++
## Code Before: TMP102 temperature(PTC9, PTC8, 0x90); #elif defined(TARGET_LPC812) TMP102 temperature(D10, D11, 0x90); #elif defined(TARGET_LPC4088) TMP102 temperature(p9, p10, 0x90); #elif defined(TARGET_LPC2368) TMP102 temperature(p28, p27, 0x90); #else TMP102 temperature(p28, p27, 0x90); #endif int main() { ...
d6b853e35f1a54cf6dd1b83eac410248d098eb5c
db/seeds.rb
db/seeds.rb
if Rails.env.development? # Create test user # unless User.find_by_email("test@example.com") u = User.new u.email = "test@example.com" u.name = "Test User" u.permissions = ["signin"] u.save end end puts "To import the data from redirector, plus Hit data, run this: "...
if Rails.env.development? # Create test user # unless User.find_by_email("test@example.com") u = User.new u.email = "test@example.com" u.name = "Test User" u.permissions = ["signin", "admin"] u.organisation_slug = 'cabinet-office' u.save end end puts "To import ...
Make the dev user an admin and a member of an org
Make the dev user an admin and a member of an org This means that they will be able to edit anything and will see the "my organisation" link in the banner header.
Ruby
mit
alphagov/transition,alphagov/transition,alphagov/transition
ruby
## Code Before: if Rails.env.development? # Create test user # unless User.find_by_email("test@example.com") u = User.new u.email = "test@example.com" u.name = "Test User" u.permissions = ["signin"] u.save end end puts "To import the data from redirector, plus Hit d...
37b921448c1760610716ccf4ae81070e87fc29a2
app/helpers/helpers.rb
app/helpers/helpers.rb
helpers do def current_user User.find_by(id: session[:user_id]) end def logout_user sessions[:user_id] = nil end def existing_user? if User.find_by(email: current_user[:email]) true else false end end end
helpers do def current_user User.find_by(id: session[:user_id]) if session[:user_id] end def logout_user sessions[:user_id] = nil end def existing_user? if User.find_by(email: current_user[:email]) true else false end end end
Secure by checking for cookie
Secure by checking for cookie
Ruby
mit
chi-dragonflies-2015/stack-underflow,chi-dragonflies-2015/stack-underflow,chi-dragonflies-2015/stack-underflow
ruby
## Code Before: helpers do def current_user User.find_by(id: session[:user_id]) end def logout_user sessions[:user_id] = nil end def existing_user? if User.find_by(email: current_user[:email]) true else false end end end ## Instruction: Secure by checking for cookie ## C...
4d7066f5aa86b0b84847fbce23c0b02440552ae4
openstack/octavia/requirements.yaml
openstack/octavia/requirements.yaml
dependencies: - condition: mariadb.enabled name: mariadb repository: https://charts.eu-de-2.cloud.sap version: 0.2.7 - name: memcached repository: https://charts.eu-de-2.cloud.sap version: 0.0.3 - condition: mariadb.enabled name: mysql_metrics repository: https://charts.eu-de-2.cloud.s...
dependencies: - condition: mariadb.enabled name: mariadb repository: https://charts.eu-de-2.cloud.sap version: 0.2.7 - name: memcached repository: https://charts.eu-de-2.cloud.sap version: 0.0.3 - condition: mariadb.enabled name: mysql_metrics repository: https://charts.eu-de-2.cloud.s...
Fix jaeger dependency: Missed some lines when pasting
[Octavia] Fix jaeger dependency: Missed some lines when pasting
YAML
apache-2.0
sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts
yaml
## Code Before: dependencies: - condition: mariadb.enabled name: mariadb repository: https://charts.eu-de-2.cloud.sap version: 0.2.7 - name: memcached repository: https://charts.eu-de-2.cloud.sap version: 0.0.3 - condition: mariadb.enabled name: mysql_metrics repository: https://charts...
43295b04a3bca72c2f06f29b7861fa82a75b5d17
config/environments/pull_request.rb
config/environments/pull_request.rb
require_relative './staging' Rails.application.configure do # This should probably stay empty since # staging + production should be the same end
require_relative './staging' Rails.application.configure do # This should probably stay empty since # staging + production should be the same # # see application.rb for feature_toggle documentation config.x.feature_toggles.projects = true end
Enable projects feature for pull request, i.e. review app environment
Enable projects feature for pull request, i.e. review app environment
Ruby
mit
diegoaad/lale-help,diegoaad/lale-help,jprokay/lale-help,lale-help/lale-help,lale-help/lale-help,diegoaad/lale-help,lale-help/lale-help,jprokay/lale-help,jprokay/lale-help,lale-help/lale-help,jprokay/lale-help,diegoaad/lale-help
ruby
## Code Before: require_relative './staging' Rails.application.configure do # This should probably stay empty since # staging + production should be the same end ## Instruction: Enable projects feature for pull request, i.e. review app environment ## Code After: require_relative './staging' Rails.application.con...
b88abd98834529f1342d69e2e91b79efd68e5e8d
backend/uclapi/dashboard/middleware/fake_shibboleth_middleware.py
backend/uclapi/dashboard/middleware/fake_shibboleth_middleware.py
from django.utils.deprecation import MiddlewareMixin class FakeShibbolethMiddleWare(MiddlewareMixin): def process_request(self, request): if request.POST.get("convert-post-headers") == "1": for key in request.POST: request.META[key] = request.POST[key]
from django.utils.deprecation import MiddlewareMixin class FakeShibbolethMiddleWare(MiddlewareMixin): def process_request(self, request): if request.POST.get("convert-post-headers") == "1": for key in request.POST: request.META[key] = request.POST[key] if request.GET.g...
Add get parameter parsing for fakeshibboleth auto mode
Add get parameter parsing for fakeshibboleth auto mode
Python
mit
uclapi/uclapi,uclapi/uclapi,uclapi/uclapi,uclapi/uclapi
python
## Code Before: from django.utils.deprecation import MiddlewareMixin class FakeShibbolethMiddleWare(MiddlewareMixin): def process_request(self, request): if request.POST.get("convert-post-headers") == "1": for key in request.POST: request.META[key] = request.POST[key] ## Instr...
9d68c0b4e405112cbd8622466f64c7fdd4038240
.travis.yml
.travis.yml
language: cpp matrix: include: - os: linux dist: trusty sudo: required - os: osx osx_image: xcode7.3 - os: osx osx_image: xcode8 before_install: - if [ $TRAVIS_OS_NAME == linux ]; then eval "$(curl -sL https://raw.githubusercontent.com/ryuichis/oclint-cpp-travis-ci-examples/master/...
language: cpp matrix: include: - os: linux dist: trusty sudo: required - os: osx osx_image: xcode7.3 - os: osx osx_image: xcode8 allow_failures: - os: osx osx_image: xcode8 before_install: - if [ $TRAVIS_OS_NAME == linux ]; then eval "$(curl -sL https://raw.githubuserco...
Allow xcode 8 to fail for now
Allow xcode 8 to fail for now
YAML
bsd-3-clause
ryuichis/oclint-cpp-travis-ci-examples,ryuichis/oclint-cpp-travis-ci-examples,ryuichis/oclint-cpp-travis-ci-examples
yaml
## Code Before: language: cpp matrix: include: - os: linux dist: trusty sudo: required - os: osx osx_image: xcode7.3 - os: osx osx_image: xcode8 before_install: - if [ $TRAVIS_OS_NAME == linux ]; then eval "$(curl -sL https://raw.githubusercontent.com/ryuichis/oclint-cpp-travis-ci-...
5f897b9c45a9b03d6a5ada2406a76f500b6efe1d
lib/tasks/data_loader.rb
lib/tasks/data_loader.rb
module DataLoader def check_for_file taskname unless ENV['FILE'] puts '' puts "usage: This task requires FILE=filename" puts '' exit 0 end end def parse(model, parser_class, skip_invalid=true) check_for_file model puts "Loading #{model} from #{ENV['FILE']}..." par...
module DataLoader def check_for_file unless ENV['FILE'] puts '' puts "usage: This task requires FILE=filename" puts '' exit 0 end end def check_for_dir unless ENV['DIR'] puts '' puts "usage: This task requires DIR=dirname" puts '' exit 0 end ...
Add function to check for dir
Add function to check for dir
Ruby
agpl-3.0
mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport
ruby
## Code Before: module DataLoader def check_for_file taskname unless ENV['FILE'] puts '' puts "usage: This task requires FILE=filename" puts '' exit 0 end end def parse(model, parser_class, skip_invalid=true) check_for_file model puts "Loading #{model} from #{ENV['FIL...
43fb2c9e4b039018fbd230acea3e48f6c7c39137
lib/van_helsing/default.rb
lib/van_helsing/default.rb
task :force_unlock do queue %{echo "-----> Unlocking"} queue %{rm -f "#{deploy_to}/deploy.lock"} queue %{exit 234} run! end namespace :deploy do desc "Links paths set in :shared_paths." task :link_shared_paths do validate_set :shared_paths dirs = shared_paths.map { |file| File.dirname("#{release_p...
namespace :deploy do desc "Forces a deploy unlock." task :force_unlock do queue %{echo "-----> Unlocking"} queue %{rm -f "#{deploy_to}/deploy.lock"} queue %{exit 234} run! end desc "Links paths set in :shared_paths." task :link_shared_paths do validate_set :shared_paths dirs = shared...
Rename force_unlock to deploy:force_unlock. Document deploy:force_unlock.
Rename force_unlock to deploy:force_unlock. Document deploy:force_unlock.
Ruby
mit
stereodenis/mina,estum/mina,mfinelli/mina,flowerett/mina,scalp42/mina,estum/mina,dcalixto/mina,Zhomart/mina,chip/mina,ianks/mina,cyberwolfru/mina,flowerett/mina,Zhomart/mina,ianks/mina,mfinelli/mina,cyberwolfru/mina,scalp42/mina,whhx/mina,dcalixto/mina,allantatter/mina,whhx/mina,allantatter/mina,openaustralia/mina,open...
ruby
## Code Before: task :force_unlock do queue %{echo "-----> Unlocking"} queue %{rm -f "#{deploy_to}/deploy.lock"} queue %{exit 234} run! end namespace :deploy do desc "Links paths set in :shared_paths." task :link_shared_paths do validate_set :shared_paths dirs = shared_paths.map { |file| File.dirn...
dfc5c18ffe19aba192be6a9e163a56470c554fc6
app/scripts/pocket.coffee
app/scripts/pocket.coffee
'use strict' class Pocket constructor: -> element = document.createElement 'div' element.classList.add 'pocket' element.innerText = 'Pocket' document.body.appendChild element pocket = new Pocket()
'use strict' class Pocket State: OPEN: 'open' CLOSE: 'close' state: null constructor: -> @state = @State.CLOSE element = document.createElement 'div' element.classList.add 'pocket' element.innerText = 'Pocket' element.addEventListener 'mouseover', @onMouseOver.bind(@) element....
Add open and close states by mouse over and leave
Add open and close states by mouse over and leave
CoffeeScript
apache-2.0
eqot/pocket
coffeescript
## Code Before: 'use strict' class Pocket constructor: -> element = document.createElement 'div' element.classList.add 'pocket' element.innerText = 'Pocket' document.body.appendChild element pocket = new Pocket() ## Instruction: Add open and close states by mouse over and leave ## Code After: 'us...
479cb0f3cd200263580a62e7f0268d19ce9fffd7
src/characters.js
src/characters.js
export const characters = Object.assign({}, require('./characters/geiger.jsx'), require('./characters/grave.jsx'), require('./characters/gwen.jsx'), require('./characters/jaina.jsx'), require('./characters/midori.jsx'), require('./characters/rook.jsx'), require('./characters/setsuki.jsx'), ...
export const characters = Object.assign({}, require('./characters/geiger.jsx'), require('./characters/grave.jsx'), require('./characters/gwen.jsx'), require('./characters/jaina.jsx'), require('./characters/midori.jsx'), require('./characters/rook.jsx'), require('./characters/setsuki.jsx'), ...
Add Onimaru to the character list
Add Onimaru to the character list
JavaScript
mit
cpennington/yomibase,cpennington/yomibase
javascript
## Code Before: export const characters = Object.assign({}, require('./characters/geiger.jsx'), require('./characters/grave.jsx'), require('./characters/gwen.jsx'), require('./characters/jaina.jsx'), require('./characters/midori.jsx'), require('./characters/rook.jsx'), require('./characters/...
b32b047656abd28dd794ee16dfab682337a753b1
accounts/tests.py
accounts/tests.py
from django.test import TestCase # Create your tests here.
from django.test import TestCase class WelcomePageTest(TestCase): def test_uses_welcome_template(self): response = self.client.get('/') self.assertTemplateUsed(response, 'accounts/welcome.html')
Add first unit test for welcome page
Add first unit test for welcome page
Python
mit
randomic/aniauth-tdd,randomic/aniauth-tdd
python
## Code Before: from django.test import TestCase # Create your tests here. ## Instruction: Add first unit test for welcome page ## Code After: from django.test import TestCase class WelcomePageTest(TestCase): def test_uses_welcome_template(self): response = self.client.get('/') self.assertTempl...
555a0afbb704b1650c0e3208e45f1c12697d9404
README.md
README.md
Stringizer is a standalone String Utility Library ## Status Under Development and Unstable.
Stringizer is a standalone String Utility Library [![Build Status](https://travis-ci.org/jasonlam604/Stringizer.svg?branch=master)](https://travis-ci.org/jasonlam604/Stringizer) ## Status Under Development and Unstable.
Add Travis-CI Build Badge and trigger first build
Add Travis-CI Build Badge and trigger first build
Markdown
mit
jasonlam604/Stringizer
markdown
## Code Before: Stringizer is a standalone String Utility Library ## Status Under Development and Unstable. ## Instruction: Add Travis-CI Build Badge and trigger first build ## Code After: Stringizer is a standalone String Utility Library [![Build Status](https://travis-ci.org/jasonlam604/Stringizer.svg?branch=mas...
158985411b5cad8ea97548dc4316b00a32c4d987
main.yml
main.yml
--- # Before execute this, setup github account (set a public key) - hosts: localhost # hostname become: no gather_facts: no - include: tasks/dotfiles.yml - include: tasks/basic-packages.yml - include: tasks/icloud-directories.yml - include: tasks/homebrew-cask.yml - include: tasks/php.yml - include: tasks/ruby.y...
--- # Before execute this, setup github account (set a public key) - hosts: localhost # hostname become: no gather_facts: no - include: tasks/dotfiles.yml - include: tasks/basic-packages.yml - include: tasks/icloud-directories.yml - include: tasks/homebrew-cask.yml - include: tasks/php.yml - include: tasks/ruby.y...
Add java task to default
Add java task to default
YAML
mit
ikuwow/mac-provision
yaml
## Code Before: --- # Before execute this, setup github account (set a public key) - hosts: localhost # hostname become: no gather_facts: no - include: tasks/dotfiles.yml - include: tasks/basic-packages.yml - include: tasks/icloud-directories.yml - include: tasks/homebrew-cask.yml - include: tasks/php.yml - inclu...
40d75d1541fba868b94c8c378d7c27afc272a1ee
deployments/r/image/extras.d/ph-290.r
deployments/r/image/extras.d/ph-290.r
print("Installing packages for PH 290W") source("/tmp/class-libs.R") class_name = "PH 290W" class_libs = c( "plotly", "4.9.2.1", "kableExtra", "1.3.1", "ggthemes", "4.2.0", "formattable", "0.2.0.1" ) class_libs_install_version(class_name, class_libs)
print("Installing packages for PH 290W") source("/tmp/class-libs.R") class_name = "PH 290W" class_libs = c( "kableExtra", "1.1.0", "plotly", "4.9.2.1", "ggthemes", "4.2.0", "formattable", "0.2.0.1" ) class_libs_install_version(class_name, class_libs)
Use older version of kableExtra
Use older version of kableExtra *So* I think what's happening is that rocker pins to a particular CRAN snapshot, and kableExtra's 1.3 is too new to be on that snapshot. 1.1.0 is, and so works!
R
bsd-3-clause
berkeley-dsep-infra/datahub,ryanlovett/datahub,ryanlovett/datahub,berkeley-dsep-infra/datahub,ryanlovett/datahub,berkeley-dsep-infra/datahub
r
## Code Before: print("Installing packages for PH 290W") source("/tmp/class-libs.R") class_name = "PH 290W" class_libs = c( "plotly", "4.9.2.1", "kableExtra", "1.3.1", "ggthemes", "4.2.0", "formattable", "0.2.0.1" ) class_libs_install_version(class_name, class_libs) ## Instruction: Use older version of kab...
5e5d5890509934188c0a453bd5af6b9204ba49d1
sakura-kubernetes/README.md
sakura-kubernetes/README.md
sakura-kubernetes ================= Kubernetes manifest files for sakura. make <manifest_name>
sakura-kubernetes ================= Kubernetes manifest files for sakura. printf <passphrase> >passphrase.secret make <manifest_name>
Add instruction to add secret file
Add instruction to add secret file
Markdown
unlicense
10sr/machine-setups,10sr/machine-setups,10sr/server-provisions,10sr/server-provisions,10sr/machine-setups,10sr/machine-setups
markdown
## Code Before: sakura-kubernetes ================= Kubernetes manifest files for sakura. make <manifest_name> ## Instruction: Add instruction to add secret file ## Code After: sakura-kubernetes ================= Kubernetes manifest files for sakura. printf <passphrase> >passphrase.secret make <mani...
f6c36bbb5b5afec1a029213557b722e50dd6aaaa
test/test_run_script.py
test/test_run_script.py
def test_dummy(): assert True
import subprocess import pytest def test_filter(tmp_path): unit_test = tmp_path.joinpath('some_unit_test.sv') unit_test.write_text(''' module some_unit_test; import svunit_pkg::*; `include "svunit_defines.svh" string name = "some_ut"; svunit_testcase svunit_ut; function void build(); svunit_...
Add test for '--filter' option
Add test for '--filter' option The goal now is to make this test pass by implementing the necessary production code.
Python
apache-2.0
svunit/svunit,svunit/svunit,svunit/svunit
python
## Code Before: def test_dummy(): assert True ## Instruction: Add test for '--filter' option The goal now is to make this test pass by implementing the necessary production code. ## Code After: import subprocess import pytest def test_filter(tmp_path): unit_test = tmp_path.joinpath('some_unit_test.sv') ...
fac227ff1fdc9f9065660ae40fa4481a9e49ca8e
app/controllers/books_controller.rb
app/controllers/books_controller.rb
class BooksController < ApplicationController before_action :authorize_user, only: [:new, :create, :edit, :update, :destroy] def index params[:author_id] ? set_author_books_view : set_books_view binding.pry end def new @book = Book.new end def create @book = Book.new(book_params) if...
class BooksController < ApplicationController before_action :authorize_user, only: [:new, :create, :edit, :update, :destroy] before_action :set_book, only: [:show, :edit] def index params[:author_id] ? set_author_books_view : set_books_view end def new @book = Book.new end def create @book...
Add before_action and set_book method
Add before_action and set_book method
Ruby
mit
kevinladkins/rails-library,kevinladkins/rails-library,kevinladkins/rails-library
ruby
## Code Before: class BooksController < ApplicationController before_action :authorize_user, only: [:new, :create, :edit, :update, :destroy] def index params[:author_id] ? set_author_books_view : set_books_view binding.pry end def new @book = Book.new end def create @book = Book.new(boo...
a199a9732efcfcd50205aed38c64716199c3477a
app/helpers/blacklight_cornell_requests/request_helper.rb
app/helpers/blacklight_cornell_requests/request_helper.rb
module BlacklightCornellRequests module RequestHelper # Time estimates are now delivered from the model in ranges (e.g., [1, 3]) # instead of integers. This function converts the range into a string for display def delivery_estimate_display time_estimate if time_estimate[0] == time_estimate[1] plu...
module BlacklightCornellRequests module RequestHelper # Time estimates are now delivered from the model in ranges (e.g., [1, 3]) # instead of integers. This function converts the range into a string for display def delivery_estimate_display time_estimate if time_estimate[0] == time_estimate[1] plu...
Add helper to format FOD data
Add helper to format FOD data
Ruby
mit
cul-it/blacklight-cornell-requests,cul-it/blacklight-cornell-requests,cul-it/blacklight-cornell-requests
ruby
## Code Before: module BlacklightCornellRequests module RequestHelper # Time estimates are now delivered from the model in ranges (e.g., [1, 3]) # instead of integers. This function converts the range into a string for display def delivery_estimate_display time_estimate if time_estimate[0] == time_esti...
ee0d06e386f6b3df218287cd60de0d29adf2d9e5
.travis.yml
.travis.yml
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1 - 2.2 - ruby-head matrix: allow_failures: - rvm: ruby-head fast_finish: true cache: bundler before_install: - mkdir -p $HOME/bin - export PATH=$HOME/bin:$PATH - curl -L https://www.dropbox.com/s/577u8h68gbpkpzz/texmath?dl=1 -o $HOME/bin/texmath
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1 - 2.2 - ruby-head matrix: allow_failures: - rvm: ruby-head fast_finish: true cache: bundler before_install: - mkdir -p $HOME/bin - export PATH=$HOME/bin:$PATH - curl -L https://www.dropbox.com/s/577u8h68gbpkpzz/texmath?dl=1 -o $HOME/bin/texmath - chmod...
Add +x permissions to texmath binary on Travis
Add +x permissions to texmath binary on Travis
YAML
mit
hollingberry/texmath-ruby
yaml
## Code Before: language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1 - 2.2 - ruby-head matrix: allow_failures: - rvm: ruby-head fast_finish: true cache: bundler before_install: - mkdir -p $HOME/bin - export PATH=$HOME/bin:$PATH - curl -L https://www.dropbox.com/s/577u8h68gbpkpzz/texmath?dl=1 -o $HOME/bin/t...
3662a2ea16cfa093bdeccfd5fc2e594b4b3541e4
usr.bin/awk/Makefile
usr.bin/awk/Makefile
AWKSRC= ${.CURDIR}/../../contrib/one-true-awk .PATH: ${AWKSRC} PROG= nawk SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h CFLAGS+= -I. -I${AWKSRC} DPADD= ${LIBM} LDADD= -lm .if ${MACHINE_ARCH} == "sparc64" LINKS+= ${BINDIR}/nawk ${BINDIR}/awk MLINKS+= nawk.1 awk.1 .endif CLEANFILES+= mak...
AWKSRC= ${.CURDIR}/../../contrib/one-true-awk .PATH: ${AWKSRC} PROG= nawk SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c CFLAGS+= -I. -I${AWKSRC} DPADD= ${LIBM} LDADD= -lm .if ${MACHINE_ARCH} == "sparc64" LINKS+= ${BINDIR}/nawk ${BINDIR}/awk MLINKS+= nawk.1 awk.1 .endif CLEANFILES+= maketab...
Use our auto-YACC'ing rules to do most of the work.
Use our auto-YACC'ing rules to do most of the work. Submitted by: bde
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: AWKSRC= ${.CURDIR}/../../contrib/one-true-awk .PATH: ${AWKSRC} PROG= nawk SRCS= b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.c ytab.h CFLAGS+= -I. -I${AWKSRC} DPADD= ${LIBM} LDADD= -lm .if ${MACHINE_ARCH} == "sparc64" LINKS+= ${BINDIR}/nawk ${BINDIR}/awk MLINKS+= nawk.1 awk.1 .endif ...
9e7b0fcb34a360d6f0ff593139b91411b59bcf82
src/styles/base.less
src/styles/base.less
@import './common.less'; @import './colors.less'; @import './fonts.less'; @import './modules/grid'; @import 'modules/base'; @import 'modules/headings'; @import 'modules/form'; @import 'modules/buttons'; @import 'modules/user';
@import './common.less'; @import './colors.less'; @import './fonts.less'; @import './modules/grid'; // @import 'modules/base'; // @import 'modules/headings'; // @import 'modules/form'; // @import 'modules/buttons'; // @import 'modules/user';
Comment out old modules code
Comment out old modules code
Less
mit
ryanbaer/busy,busyorg/busy,busyorg/busy,ryanbaer/busy
less
## Code Before: @import './common.less'; @import './colors.less'; @import './fonts.less'; @import './modules/grid'; @import 'modules/base'; @import 'modules/headings'; @import 'modules/form'; @import 'modules/buttons'; @import 'modules/user'; ## Instruction: Comment out old modules code ## Code After: @import './com...
92dcb4e012576a790f07fc24698f1663a1c5a31e
scripts/client.js
scripts/client.js
elation.require(['engine.engine', 'engine.things.light', 'janusweb.janusweb'], function() { elation.component.add('janusweb.client', function() { this.initEngine = function() { //this.enginecfg.systems.push('admin'); } this.initWorld = function() { var things = this.world.load({ name: ...
elation.require(['engine.engine', 'engine.things.player', 'engine.things.light', 'janusweb.janusweb'], function() { elation.component.add('janusweb.client', function() { this.initEngine = function() { //this.enginecfg.systems.push('admin'); } this.initWorld = function() { var things = this.wor...
Store reference to player, dim lights
Store reference to player, dim lights
JavaScript
mit
jbaicoianu/janusweb,jbaicoianu/janusweb,jbaicoianu/janusweb
javascript
## Code Before: elation.require(['engine.engine', 'engine.things.light', 'janusweb.janusweb'], function() { elation.component.add('janusweb.client', function() { this.initEngine = function() { //this.enginecfg.systems.push('admin'); } this.initWorld = function() { var things = this.world.load(...
1c8f999e7f7af25ada4d12c1c9770291ed70e528
_includes/_i18n/i18n.html
_includes/_i18n/i18n.html
{% assign plang = page.lang | default: site.langs[0] | default: "en" %} {% assign val = include.value %} {% if val[plang] %} {% assign v = val[plang] %} {% else %} {% assign v = val %} {% endif %} {% if include.escape %} {{ v | escape | strip_newlines }} {% else %} {{ v | strip_newlines }} {% endif %}
{% capture text %} {% assign plang = page.lang | default: site.langs[0] | default: "en" %} {% assign val = include.value %} {% if val[plang] %} {% assign v = val[plang] %} {% else %} {% assign v = val %} {% endif %} {% if include.escape %} {{ v | escape | strip_newlines }} {% else %} {{ v | strip_newlines }} ...
Fix some of the whitespaces problem
Fix some of the whitespaces problem
HTML
mit
gaalcaras/academic,lschuetze/lschuetze.github.io,lschuetze/lschuetze.github.io,gaalcaras/academic
html
## Code Before: {% assign plang = page.lang | default: site.langs[0] | default: "en" %} {% assign val = include.value %} {% if val[plang] %} {% assign v = val[plang] %} {% else %} {% assign v = val %} {% endif %} {% if include.escape %} {{ v | escape | strip_newlines }} {% else %} {{ v | strip_newlines }} {% ...
e085c548828cf81e274e084be51f06ffd4335df7
lib/paper_trail/config.rb
lib/paper_trail/config.rb
require "singleton" require "paper_trail/serializers/yaml" module PaperTrail # Global configuration affecting all threads. Some thread-specific # configuration can be found in `paper_trail.rb`, others in `controller.rb`. class Config include Singleton attr_accessor( :association_reify_error_behavi...
require "singleton" require "paper_trail/serializers/yaml" module PaperTrail # Global configuration affecting all threads. Some thread-specific # configuration can be found in `paper_trail.rb`, others in `controller.rb`. class Config include Singleton attr_accessor( :association_reify_error_behavi...
Add association tracking removal exception
Add association tracking removal exception
Ruby
mit
airblade/paper_trail,airblade/paper_trail
ruby
## Code Before: require "singleton" require "paper_trail/serializers/yaml" module PaperTrail # Global configuration affecting all threads. Some thread-specific # configuration can be found in `paper_trail.rb`, others in `controller.rb`. class Config include Singleton attr_accessor( :association_re...
868fe1989565dc2fb01de36e83fa91dc282e97d5
config/announce.yml
config/announce.yml
app_name: feeder subscribe: story: - create - update - delete - publish - unpublish feed_entry: - create - update - delete
app_name: feeder subscribe: story: - create - update - delete - publish - unpublish series: - create - update - delete feed_entry: - create - update - delete
Add in config for cms series subscription
Add in config for cms series subscription
YAML
agpl-3.0
PRX/feeder.prx.org,PRX/feeder.prx.org,PRX/feeder.prx.org
yaml
## Code Before: app_name: feeder subscribe: story: - create - update - delete - publish - unpublish feed_entry: - create - update - delete ## Instruction: Add in config for cms series subscription ## Code After: app_name: feeder subscribe: story: - create - update ...
9fe573614e2f3ca9a6e738afb7f1af84b541092c
invertedindex.py
invertedindex.py
class InvertedIndex: def __init__(self): self.index = dict() def add_mail(self, mail): for key in ["simple_terms_body", "complexe_terms_body"]: for terms in mail[key]: if terms in self.index.keys(): self.index[terms].append((mail["name"], mail[k...
class InvertedIndex: def __init__(self): self.index = dict() def add_mail(self, mail): for key in ["simple_terms_body", "complexe_terms_body"]: for terms in mail[key]: if terms in self.index.keys(): self.index[terms].append((mail["name"], mail[k...
Add some access function to inverted index
Add some access function to inverted index
Python
mit
Nedgang/adt_project
python
## Code Before: class InvertedIndex: def __init__(self): self.index = dict() def add_mail(self, mail): for key in ["simple_terms_body", "complexe_terms_body"]: for terms in mail[key]: if terms in self.index.keys(): self.index[terms].append((mail...
078e78ff546604767479bae736173e852e3fc380
README.md
README.md
- [User Manual](tessdoc/) ## Tesseract Source Code Documentation This documentation was build with Doxygen from the [Tesseract source code](https://github.com/tesseract-ocr/tesseract). - [3.05.02](tessapi/3.05.02/) - [3.x](tessapi/3.x/) - [4.0.0](tessapi/4.0.0/) ## Publications - [Various documents related to Tes...
- [User Manual](tessdoc/) ## Tesseract Source Code Documentation This documentation was build with Doxygen from the [Tesseract source code](https://github.com/tesseract-ocr/tesseract). - [3.05.02](tessapi/3.05.02/) - [3.x](tessapi/3.x/) - [4.0.0](tessapi/4.0.0/) - [latest](tessapi/5.x/) ## Publications - [Various...
Add link to 5.x documentation
Add link to 5.x documentation Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
Markdown
apache-2.0
tesseract-ocr/tesseract-ocr.github.io
markdown
## Code Before: - [User Manual](tessdoc/) ## Tesseract Source Code Documentation This documentation was build with Doxygen from the [Tesseract source code](https://github.com/tesseract-ocr/tesseract). - [3.05.02](tessapi/3.05.02/) - [3.x](tessapi/3.x/) - [4.0.0](tessapi/4.0.0/) ## Publications - [Various document...
64c8fd3fa18dd6644a67cbd9e9aa5f20eb5e85a7
var/spack/packages/mrnet/package.py
var/spack/packages/mrnet/package.py
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" version('4.0.0', 'd00301c078cba57ef68613be32ceea2f') version('4.1.0', '5a248298b395b329e2371bf25366115c'...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" version('4.0.0', 'd00301c078cba57ef68613be32ceea2f') version('4.1.0', '5a248298b395b329e2371bf25366115c'...
Add krelloptions variant that is used to turn on a configuration option to build the thread safe lightweight libraries.
Add krelloptions variant that is used to turn on a configuration option to build the thread safe lightweight libraries.
Python
lgpl-2.1
EmreAtes/spack,krafczyk/spack,matthiasdiener/spack,matthiasdiener/spack,tmerrick1/spack,krafczyk/spack,LLNL/spack,matthiasdiener/spack,EmreAtes/spack,lgarren/spack,iulian787/spack,EmreAtes/spack,mfherbst/spack,krafczyk/spack,matthiasdiener/spack,skosukhin/spack,skosukhin/spack,mfherbst/spack,EmreAtes/spack,TheTimmy/spa...
python
## Code Before: from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" version('4.0.0', 'd00301c078cba57ef68613be32ceea2f') version('4.1.0', '5a248298b395b329e...
2bf161dcbd36c8fc0e3fa5f63b89f30cc7520b5e
simd/simd_amd64.s
simd/simd_amd64.s
// func haveSSSE3() bool TEXT ·SSSE3(SB),NOSPLIT,$0 MOVQ $1, AX CPUID SHRQ $9, CX ANDQ $1, CX MOVB CX, ret+0(FP) RET TEXT ·CpuId(SB),$0-12 MOVL ax+8(FP), AX CPUID MOVQ info+0(FP), DI MOVL AX, 0(DI) MOVL BX, 4(DI) MOVL CX, ...
// (copied from Nigel Tao's shiny library, https://github.com/golang/exp/blob/master/shiny/driver/internal/swizzle/swizzle_amd64.s) // func haveSSSE3() bool TEXT ·SSSE3(SB),NOSPLIT,$0 MOVQ $1, AX CPUID SHRQ $9, CX ANDQ $1, CX MOVB CX, ret+0(FP) RET // (copied from the Go...
Add attribution for Cpuid and SSSE3
Add attribution for Cpuid and SSSE3 Cpuid copied from the Go dist tool, [cpuid_amd64.s](https://github.com/golang/go/blob/master/src/cmd/dist/cpuid_amd64.s) SSSE3 detection copied from Nigel Tao's shiny library, SSSE3 appears useful, [benchmark numbers](https://github.com/golang/exp/commit/8fada217b14b6cb1c1ee832f850...
GAS
mit
bjwbell/gensimd,bjwbell/gensimd
gas
## Code Before: // func haveSSSE3() bool TEXT ·SSSE3(SB),NOSPLIT,$0 MOVQ $1, AX CPUID SHRQ $9, CX ANDQ $1, CX MOVB CX, ret+0(FP) RET TEXT ·CpuId(SB),$0-12 MOVL ax+8(FP), AX CPUID MOVQ info+0(FP), DI MOVL AX, 0(DI) MOVL BX, 4(DI) ...
10184838d909de0786aa1a0638342646b3c235b3
.eslintrc.json
.eslintrc.json
{ "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], ...
{ "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "arrow-body-style": [ "warn" ], "arrow-spacing": [ "error" ], "brace-style": [ "error", "1tbs" ], "comma-spacing": [ "e...
Expand code style linting rules
Expand code style linting rules
JSON
mit
Amphiluke/potprox,Amphiluke/potprox,Amphiluke/potprox
json
## Code Before: { "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ...
34a476e0273ffcae759194ae684608e92273e4c5
SearchPage.js
SearchPage.js
'use strict'; import React from 'react'; import { StyleSheet, Text, TextInput, View, Image, TouchableHighlight, ActivityIndicatorIOS } from 'react-native'; const styles = StyleSheet.create({ description:{ marginBottom:20, fontSize:18, textAlign:'center', color:'#656565'}, container:{ pa...
'use strict'; import React from 'react'; import { StyleSheet, Text, TextInput, View, Image, TouchableHighlight, ActivityIndicatorIOS } from 'react-native'; const styles = StyleSheet.create({ description:{ marginBottom:20, fontSize:18, textAlign:'center', color:'#656565'}, container:{ pa...
Add search input and search button
Add search input and search button
JavaScript
mit
wxmaudio/ReactNativePropertyFinder,wxmaudio/ReactNativePropertyFinder,wxmaudio/ReactNativePropertyFinder
javascript
## Code Before: 'use strict'; import React from 'react'; import { StyleSheet, Text, TextInput, View, Image, TouchableHighlight, ActivityIndicatorIOS } from 'react-native'; const styles = StyleSheet.create({ description:{ marginBottom:20, fontSize:18, textAlign:'center', color:'#656565'}, co...
8479b188323d771303bbed6cfc074665db917ebf
README.org
README.org
* Library Information - Name :: Hybridizer - Version :: 0.1.0 - License :: BSD - URL :: https://github.com/janelia-experimental-technology/hybridizer - Author :: Peter Polidoro - Email :: peterpolidoro@gmail.com ** Description
* Library Information - Name :: Hybridizer - Version :: 0.1.0 - License :: BSD - URL :: https://github.com/janelia-experimental-technology/hybridizer - Author :: Peter Polidoro - Email :: peterpolidoro@gmail.com ** Description * Host Computer Control Software [[https://github.com/janelia-pypi/hybridiz...
Add link to Python code
Add link to Python code
Org
bsd-3-clause
peterpolidoro/hybridizer
org
## Code Before: * Library Information - Name :: Hybridizer - Version :: 0.1.0 - License :: BSD - URL :: https://github.com/janelia-experimental-technology/hybridizer - Author :: Peter Polidoro - Email :: peterpolidoro@gmail.com ** Description ## Instruction: Add link to Python code ## Code After: * Lib...
983c1cd8dcf7abe8888b0c577b223f76efe60a98
README.md
README.md
cardboard-creeper ================= A simple clone of Minecraft to run on Android with Google Cardboard
cardboard-creeper ================= A simple clone of Minecraft to run on Android with Google Cardboard This was inspired by a nice Minecraft-like demo written in Pyglet: https://github.com/fogleman/Minecraft I tought it would be nice to make it run with Google Cardboard. I had to rewrite everything in Java and Op...
Update readme with link to fogleman and why Java.
Update readme with link to fogleman and why Java.
Markdown
mit
skligys/cardboard-creeper
markdown
## Code Before: cardboard-creeper ================= A simple clone of Minecraft to run on Android with Google Cardboard ## Instruction: Update readme with link to fogleman and why Java. ## Code After: cardboard-creeper ================= A simple clone of Minecraft to run on Android with Google Cardboard This was in...
011f09f55f1e4cd50d1f3586e8cbb4d9c977f34d
julia/parametric_types.jl
julia/parametric_types.jl
@assert typeof(1:10) == UnitRange{Int64} @assert typeof(0x5 // 0x22) == Rational{UInt8} @assert typeof(5 // 34) == Rational{Int64} @assert typeof(8.75im) == Complex{Float64} @assert typeof([5,3]) == Array{Int64,1} @assert typeof([3, "abc"]) == Array{Any, 1} @assert typeof([]) == Array{Any, 1} @assert typeof([1 0; 0 1])...
@assert typeof(Set(4)) == Set{Int64} @assert typeof(Set(['3', '$'])) == Set{Char} @assert typeof(1:10) == UnitRange{Int64} @assert typeof(0x5 // 0x22) == Rational{UInt8} @assert typeof(5 // 34) == Rational{Int64} @assert typeof(8.75im) == Complex{Float64} @assert typeof(e) == Irrational{:e} @assert typeof([5,3]) == Arr...
Include sets and irrationals in the parametric types examples
Include sets and irrationals in the parametric types examples
Julia
mit
rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/poly...
julia
## Code Before: @assert typeof(1:10) == UnitRange{Int64} @assert typeof(0x5 // 0x22) == Rational{UInt8} @assert typeof(5 // 34) == Rational{Int64} @assert typeof(8.75im) == Complex{Float64} @assert typeof([5,3]) == Array{Int64,1} @assert typeof([3, "abc"]) == Array{Any, 1} @assert typeof([]) == Array{Any, 1} @assert ty...
df4f97e7e54cec719c37f0c23ebfd62f3b6e8359
db/migrate/20120516094638_create_asset_groups.rb
db/migrate/20120516094638_create_asset_groups.rb
class CreateAssetGroups < ActiveRecord::Migration def change create_table :asset_groups do |t| t.string :type, :null => false, :limit => 50 t.string :name, :null => false, :limit => 200, :index => :unique # Nested set t.integer :asset_group_id, :null => true...
class CreateAssetGroups < ActiveRecord::Migration def change create_table :asset_groups do |t| t.string :type, :null => false, :limit => 50 t.string :name, :null => false, :limit => 200, :index => {:unique => true, :with => :asset_group_id} # Nested set t.integ...
Change the unique constraints on the asset group name to apply only within a leaf of the hierarchy.
Change the unique constraints on the asset group name to apply only within a leaf of the hierarchy.
Ruby
mit
spookandpuff/islay,spookandpuff/islay,spookandpuff/islay
ruby
## Code Before: class CreateAssetGroups < ActiveRecord::Migration def change create_table :asset_groups do |t| t.string :type, :null => false, :limit => 50 t.string :name, :null => false, :limit => 200, :index => :unique # Nested set t.integer :asset_group_id...
6d6ca5ea72f62a5671c9d07e58849e5b5aab8903
search/static/search.js
search/static/search.js
$(document).ready(function(){ $('#form').submit(function(e){ e.preventDefault(); var query = $('#query').val(); var docs = []; $.get('/search/query/', {query: query}, function(data){ var result = JSON.parse(data); console.log(typeof result); for(var key in result){ var obj = {}; obj['doc'] = k...
$(document).ready(function(){ $('#form').submit(function(e){ e.preventDefault(); var query = $('#query').val(); var docs = []; $.get('/search/query/', {query: query}, function(data){ var result = JSON.parse(data); console.log(typeof result); for(var key in result){ var obj = {}; obj['doc'] = k...
Add results to result table Display table when results are loaded
Add results to result table Display table when results are loaded
JavaScript
mit
nh0815/PySearch,nh0815/PySearch
javascript
## Code Before: $(document).ready(function(){ $('#form').submit(function(e){ e.preventDefault(); var query = $('#query').val(); var docs = []; $.get('/search/query/', {query: query}, function(data){ var result = JSON.parse(data); console.log(typeof result); for(var key in result){ var obj = {}; ...
49d07a7fc20830bd05222e7ec2a24623d2b14a2a
Modules/VideoCore/Common/add_video_test.cmake
Modules/VideoCore/Common/add_video_test.cmake
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake) # Macro to add a midas test with the "Video" label macro(add_video_test) midas_add_test(${ARGV}) set_property(TEST ${ARGV1} PROPERTY LABELS Video) endmacro(add_video_test)
include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake) # Macro to add a midas test with the "Video" label macro(add_video_test) midas_add_test(${ARGV}) set_property(TEST ${ARGV1} PROPERTY LABELS Video) set_property(TEST ${ARGV1}_fetchData PROPERTY LABELS Video) endmacro(add_video_test)
Add Video label for _fetchData tests
COMP: Add Video label for _fetchData tests
CMake
apache-2.0
jmerkow/ITK,CapeDrew/DCMTK-ITK,BlueBrain/ITK,GEHC-Surgery/ITK,jcfr/ITK,zachary-williamson/ITK,LucasGandel/ITK,atsnyder/ITK,spinicist/ITK,hjmjohnson/ITK,thewtex/ITK,atsnyder/ITK,CapeDrew/DCMTK-ITK,InsightSoftwareConsortium/ITK,BlueBrain/ITK,hinerm/ITK,hinerm/ITK,malaterre/ITK,thewtex/ITK,eile/ITK,fuentesdt/InsightToolki...
cmake
## Code Before: include(${Video-Core-Common_SOURCE_DIR}/MIDAS.cmake) # Macro to add a midas test with the "Video" label macro(add_video_test) midas_add_test(${ARGV}) set_property(TEST ${ARGV1} PROPERTY LABELS Video) endmacro(add_video_test) ## Instruction: COMP: Add Video label for _fetchData tests ## Code After...
01d22529936678cf3f39878722af32b28c682bd4
Domains/Chemistry/module.cmake
Domains/Chemistry/module.cmake
if(VTK_RENDERING_BACKEND STREQUAL "OpenGL2") set(extra_opengl_depend vtkDomainsChemistry${VTK_RENDERING_BACKEND}) endif() vtk_module(vtkDomainsChemistry GROUPS StandAlone DEPENDS vtkCommonDataModel vtkRenderingCore vtksys PRIVATE_DEPENDS vtkIOXML vtkFiltersSources TEST_DEPENDS ...
if(VTK_RENDERING_BACKEND STREQUAL "OpenGL2") set(extra_opengl_depend vtkDomainsChemistry${VTK_RENDERING_BACKEND}) endif() vtk_module(vtkDomainsChemistry GROUPS StandAlone DEPENDS vtkCommonDataModel vtkRenderingCore PRIVATE_DEPENDS vtkIOXML vtkFiltersSources vtksys TEST_DEPENDS ...
Make internal dependency private for Domains/Chemistry -> vtksys.
Make internal dependency private for Domains/Chemistry -> vtksys.
CMake
bsd-3-clause
keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix
cmake
## Code Before: if(VTK_RENDERING_BACKEND STREQUAL "OpenGL2") set(extra_opengl_depend vtkDomainsChemistry${VTK_RENDERING_BACKEND}) endif() vtk_module(vtkDomainsChemistry GROUPS StandAlone DEPENDS vtkCommonDataModel vtkRenderingCore vtksys PRIVATE_DEPENDS vtkIOXML vtkFiltersSources T...
da4387570425bf55f873ff8ffacf1b8eda603ee1
README.md
README.md
Cobalt2 theme for [HyperTerm](https://hyperterm.org/), based on Wes Bos' [iTerm2 theme](https://github.com/wesbos/Cobalt2-iterm)
**Theme no longer maintained. Use Wes' own theme [hyperterm-cobalt2-theme](https://github.com/wesbos/hyperterm-cobalt2-theme)** ~~Cobalt2 theme for [HyperTerm](https://hyperterm.org/), based on Wes Bos' [iTerm2 theme](https://github.com/wesbos/Cobalt2-iterm)~~
Add deprecation message and link to official theme
Add deprecation message and link to official theme
Markdown
isc
martinAnsty/cobalt2-hyperterm-theme
markdown
## Code Before: Cobalt2 theme for [HyperTerm](https://hyperterm.org/), based on Wes Bos' [iTerm2 theme](https://github.com/wesbos/Cobalt2-iterm) ## Instruction: Add deprecation message and link to official theme ## Code After: **Theme no longer maintained. Use Wes' own theme [hyperterm-cobalt2-theme](https://github.c...
530823cdee612793ab51c17e0c2195bf03d4fa26
Sodium/Bytes.swift
Sodium/Bytes.swift
import Foundation public typealias Bytes = Array<UInt8> extension Array where Element == UInt8 { init (count bytes: Int) { self.init(repeating: 0, count: bytes) } } extension ArraySlice where Element == UInt8 { var bytes: Bytes { return Bytes(self) } } public extension String { var bytes: By...
import Foundation public typealias Bytes = Array<UInt8> extension Array where Element == UInt8 { init (count bytes: Int) { self.init(repeating: 0, count: bytes) } public var utf8String: String? { return String(data: Data(bytes: self), encoding: .utf8) } } extension ArraySlice where E...
Add convenience property for converting bytes to a UTF-8 string
Add convenience property for converting bytes to a UTF-8 string
Swift
isc
blochberger/swift-sodium,blochberger/swift-sodium,jedisct1/swift-sodium,blochberger/swift-sodium,ziogaschr/swift-sodium,jedisct1/swift-sodium,jedisct1/swift-sodium,ziogaschr/swift-sodium,blochberger/swift-sodium,ziogaschr/swift-sodium,ziogaschr/swift-sodium
swift
## Code Before: import Foundation public typealias Bytes = Array<UInt8> extension Array where Element == UInt8 { init (count bytes: Int) { self.init(repeating: 0, count: bytes) } } extension ArraySlice where Element == UInt8 { var bytes: Bytes { return Bytes(self) } } public extension String { ...
c2c61ff8be66dab683799e106c1d56fc3c1263ab
articles/video-series/intro.md
articles/video-series/intro.md
--- video: series: main video: intro series: - main - creating-your-first-app ---
--- public: false video: series: main video: intro series: - main - creating-your-first-app ---
Set public: false for videos
Set public: false for videos
Markdown
mit
khorne3/docs,jeffreylees/docs,Annyv2/docs,miparnisari/docs,Catografix/docs,auth0/docs,sandrinodimattia/docs,yvonnewilson/docs,Catografix/docs,hamzawi06/docs,auth0/docs,Annyv2/docs,Annyv2/docs,jeffreylees/docs,sandrinodimattia/docs,auth0/docs,khorne3/docs,khorne3/docs,hamzawi06/docs,yvonnewilson/docs,sandrinodimattia/do...
markdown
## Code Before: --- video: series: main video: intro series: - main - creating-your-first-app --- ## Instruction: Set public: false for videos ## Code After: --- public: false video: series: main video: intro series: - main - creating-your-first-app ---
36e75858d0c6b10d11d998d2d205be7d237c7bb8
src/index.js
src/index.js
import {Video} from '@thiagopnts/kaleidoscope'; import {ContainerPlugin, Mediator, Events} from 'clappr'; export default class Video360 extends ContainerPlugin { constructor(container) { super(container); Mediator.on(`${this.options.playerId}:${Events.PLAYER_RESIZE}`, this.updateSize, this); let {height...
import {Video} from '@thiagopnts/kaleidoscope'; import {ContainerPlugin, Mediator, Events} from 'clappr'; export default class Video360 extends ContainerPlugin { constructor(container) { super(container); Mediator.on(`${this.options.playerId}:${Events.PLAYER_RESIZE}`, this.updateSize, this); let {height...
Fix video jumping to fullscreen on iPhones
Fix video jumping to fullscreen on iPhones
JavaScript
mit
thiagopnts/video-360,thiagopnts/video-360
javascript
## Code Before: import {Video} from '@thiagopnts/kaleidoscope'; import {ContainerPlugin, Mediator, Events} from 'clappr'; export default class Video360 extends ContainerPlugin { constructor(container) { super(container); Mediator.on(`${this.options.playerId}:${Events.PLAYER_RESIZE}`, this.updateSize, this);...
d2f295c8835f17e8053c0fbfd2d393ece2716637
sql/game_code_lookup.sql
sql/game_code_lookup.sql
-- Shows codes for a game SELECT `code_lookup`.`code`, `code_lookup`.`type`, `code_lookup`.`location_id`, `locations`.`internal_note`, `locations`.`is_start`, `locations`.`is_end` FROM `code_lookup` LEFT OUTER JOIN `locations` ON `code_lookup`.`game_id` = `locations`.`game_id` AND `code_lookup`.`location_id` = `locatio...
-- Shows codes for a game SELECT `code_lookup`.`code`, `code_lookup`.`type`, `code_lookup`.`location_id`, `locations`.`internal_note`, `locations`.`is_start`, `locations`.`is_end` FROM `code_lookup` LEFT OUTER JOIN `locations` ON `code_lookup`.`game_id` = `locations`.`game_id` AND `code_lookup`.`location_id` = `locatio...
Add new location and code query
Add new location and code query
SQL
mit
CodeMOOC/TreasureHuntBot,CodeMOOC/TreasureHuntBot,CodeMOOC/TreasureHuntBot,CodeMOOC/TreasureHuntBot
sql
## Code Before: -- Shows codes for a game SELECT `code_lookup`.`code`, `code_lookup`.`type`, `code_lookup`.`location_id`, `locations`.`internal_note`, `locations`.`is_start`, `locations`.`is_end` FROM `code_lookup` LEFT OUTER JOIN `locations` ON `code_lookup`.`game_id` = `locations`.`game_id` AND `code_lookup`.`locatio...
2fe15225615ecbfc777ea73329308e955ef8a09e
website-guts/assets/js/pages/opticon-sessions.js
website-guts/assets/js/pages/opticon-sessions.js
//Code below manages Wistia gating. Enter email address once, then rest are ungated wistiaEmbeds.onFind(function(video) { var email = Wistia.localStorage("golden-ticket"); if (email) { console.log('email being set'); video.setEmail(email); } }); wistiaEmbeds.bind("conversion", function(video, type, data) ...
//Code below manages Wistia gating. Enter email address once, then rest are ungated wistiaEmbeds.onFind(function(video) { var email = Wistia.localStorage("golden-ticket"); if (email) { video.setEmail(email); } }); wistiaEmbeds.bind("conversion", function(video, type, data) { if (/^(pre|mid|post)-roll-email$...
Add code to pickup where viewer left off
Add code to pickup where viewer left off
JavaScript
mit
CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg,CilantroOrg/CilantroVegOrg
javascript
## Code Before: //Code below manages Wistia gating. Enter email address once, then rest are ungated wistiaEmbeds.onFind(function(video) { var email = Wistia.localStorage("golden-ticket"); if (email) { console.log('email being set'); video.setEmail(email); } }); wistiaEmbeds.bind("conversion", function(vid...
0c5e05973f6bab793c49c64c8640dd21a81b8b92
lib/themes/dosomething/paraneue_dosomething/templates/search/search-block-form.tpl.php
lib/themes/dosomething/paraneue_dosomething/templates/search/search-block-form.tpl.php
<?php /** * @file * Displays the search form block. * * Available variables: * - $search_form: The complete search form ready for print. * - $search: Associative array of search elements. Can be used to print each * form element separately. * * Default elements within $search: * - $search['search_block_for...
<?php /** * @file * Displays the search form block. * * Available variables: * - $search_form: The complete search form ready for print. * - $search: Associative array of search elements. Can be used to print each * form element separately. * * Default elements within $search: * - $search['search_block_for...
Remove unnecessary wrapping div from search block.
Remove unnecessary wrapping div from search block.
PHP
mit
mshmsh5000/dosomething-1,sergii-tkachenko/phoenix,angaither/dosomething,deadlybutter/phoenix,sbsmith86/dosomething,chloealee/dosomething,DoSomething/dosomething,DoSomething/dosomething,mshmsh5000/dosomething-1,sbsmith86/dosomething,chloealee/dosomething,chloealee/dosomething,sergii-tkachenko/phoenix,DoSomething/phoenix...
php
## Code Before: <?php /** * @file * Displays the search form block. * * Available variables: * - $search_form: The complete search form ready for print. * - $search: Associative array of search elements. Can be used to print each * form element separately. * * Default elements within $search: * - $search['...
fd32084a0d98770e0cb4f36ed6112d01a3672c68
_layouts/page.html
_layouts/page.html
--- layout: index --- <div id="page-inner-content"> <div id="page-nav"> <div id="page-tree"></div> <script> $("#page-tree").kendoTreeView({ dataSource: { transport: { read: { url: "{{site.baseurl}}/{{page.category}}.json...
--- layout: index --- <div id="page-inner-content"> <div id="page-nav"> <div id="page-tree"></div> <script> $("#page-tree").kendoTreeView({ dataSource: { transport: { read: { url: "{{site.baseurl}}/{{page.category}}.json...
Remove auto h1 and api TOC insertion.
Remove auto h1 and api TOC insertion.
HTML
apache-2.0
ighristov/report-server-docs,telerik/report-server-docs,ighristov/report-server-docs,ighristov/report-server-docs
html
## Code Before: --- layout: index --- <div id="page-inner-content"> <div id="page-nav"> <div id="page-tree"></div> <script> $("#page-tree").kendoTreeView({ dataSource: { transport: { read: { url: "{{site.baseurl}}/{{page...
bcf9402397ab309637068d79575d256ced893b33
.travis.yml
.travis.yml
dist: xenial addons: chrome: stable apt: packages: - chromium-chromedriver language: python python: - '3.7' script: - bash ./transcrypt/development/continuous_integration/run.sh
dist: xenial sudo: yes addons: chrome: stable apt: packages: - chromium-chromedriver language: python python: - '3.7' script: - bash ./transcrypt/development/continuous_integration/run.sh
Revert "Travis CI: The sudo tag is now deprecated in Travis"
Revert "Travis CI: The sudo tag is now deprecated in Travis"
YAML
apache-2.0
QQuick/Transcrypt,QQuick/Transcrypt,QQuick/Transcrypt,QQuick/Transcrypt,QQuick/Transcrypt
yaml
## Code Before: dist: xenial addons: chrome: stable apt: packages: - chromium-chromedriver language: python python: - '3.7' script: - bash ./transcrypt/development/continuous_integration/run.sh ## Instruction: Revert "Travis CI: The sudo tag is now deprecated in T...
5e037ad12cba733625ffebf356ef4ddcf38d3de0
rb/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb
rb/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb
module Selenium module WebDriver # # @api private # module DriverExtensions module UploadsFiles # # Set the file detector to pass local files to a remote WebDriver. # # The detector is an object that responds to #call, and when called # will determine i...
module Selenium module WebDriver # # @api private # module DriverExtensions module UploadsFiles # # Set the file detector to pass local files to a remote WebDriver. # # The detector is an object that responds to #call, and when called # will determine i...
Update file detector Ruby example.
JariBakken: Update file detector Ruby example. git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@14082 07704840-8298-11de-bf8c-fd130f914ac9
Ruby
apache-2.0
yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2
ruby
## Code Before: module Selenium module WebDriver # # @api private # module DriverExtensions module UploadsFiles # # Set the file detector to pass local files to a remote WebDriver. # # The detector is an object that responds to #call, and when called # ...
96ef8f3f2c81822df635a373496d2f638178f85a
backend/project_name/settings/test.py
backend/project_name/settings/test.py
from .base import * # noqa SECRET_KEY = "test" DATABASES = { "default": {"ENGINE": "django.db.backends.sqlite3", "NAME": base_dir_join("db.sqlite3"),} } STATIC_ROOT = "staticfiles" STATIC_URL = "/static/" MEDIA_ROOT = "mediafiles" MEDIA_URL = "/media/" DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSy...
from .base import * # noqa SECRET_KEY = "test" DATABASES = { "default": {"ENGINE": "django.db.backends.sqlite3", "NAME": base_dir_join("db.sqlite3"),} } STATIC_ROOT = base_dir_join('staticfiles') STATIC_URL = '/static/' MEDIA_ROOT = base_dir_join('mediafiles') MEDIA_URL = '/media/' DEFAULT_FILE_STORAGE = "dj...
Revert "Fix ci build by adjust static root and media root path"
Revert "Fix ci build by adjust static root and media root path" This reverts commit e502c906
Python
mit
vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate
python
## Code Before: from .base import * # noqa SECRET_KEY = "test" DATABASES = { "default": {"ENGINE": "django.db.backends.sqlite3", "NAME": base_dir_join("db.sqlite3"),} } STATIC_ROOT = "staticfiles" STATIC_URL = "/static/" MEDIA_ROOT = "mediafiles" MEDIA_URL = "/media/" DEFAULT_FILE_STORAGE = "django.core.file...
4c3769065b855fefd2f7720bbc3e117d2c6b3f30
lib/hotspots.rb
lib/hotspots.rb
require "hotspots/version" require "hotspots/exit" require "hotspots/configuration" require "hotspots/store" require "hotspots/options_parser" require "hotspots/repository" class Hotspots def initialize(configuration) @configuration = configuration @logger = @configuration.logger @repository ...
require "hotspots/version" require "hotspots/exit" require "hotspots/configuration" require "hotspots/store" require "hotspots/options_parser" require "hotspots/repository" class Hotspots attr_reader :configuration def initialize(configuration) @configuration = configuration end def output validate ...
Reduce the use of instance level variables
Reduce the use of instance level variables
Ruby
mit
chiku/hotspots
ruby
## Code Before: require "hotspots/version" require "hotspots/exit" require "hotspots/configuration" require "hotspots/store" require "hotspots/options_parser" require "hotspots/repository" class Hotspots def initialize(configuration) @configuration = configuration @logger = @configuration.logger ...
0bcf50f169878254999f7e04c09dc66854c5394d
app/services/modal-dialog.js
app/services/modal-dialog.js
import { computed } from '@ember/object'; import Service from '@ember/service'; import ENV from '../config/environment'; function computedFromConfig(prop) { return computed(function(){ return ENV['ember-modal-dialog'] && ENV['ember-modal-dialog'][prop]; }); } export default Service.extend({ hasEmberTether: ...
import Ember from 'ember'; import ENV from '../config/environment'; const { computed, Service } = Ember; function computedFromConfig(prop) { return computed(function(){ return ENV['ember-modal-dialog'] && ENV['ember-modal-dialog'][prop]; }); } export default Service.extend({ hasEmberTether: computedFromCon...
Revert modules update to file in app directory
Revert modules update to file in app directory
JavaScript
mit
oscarni/ember-modal-dialog,yapplabs/ember-modal-dialog,oscarni/ember-modal-dialog,yapplabs/ember-modal-dialog
javascript
## Code Before: import { computed } from '@ember/object'; import Service from '@ember/service'; import ENV from '../config/environment'; function computedFromConfig(prop) { return computed(function(){ return ENV['ember-modal-dialog'] && ENV['ember-modal-dialog'][prop]; }); } export default Service.extend({ ...
e5e91544c90dafa3ec1a4050b9bf3787d2568c51
recipes/ocp/bld.bat
recipes/ocp/bld.bat
set CONDA_PREFIX=%PREFIX% if errorlevel 1 exit 1 cmake -B build -S "%SRC_DIR%" ^ -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ -DPython3_FIND_STRATEGY=LOCATION ^ -DPython3_ROOT_DIR=%CONDA_PREFIX% ^ -DCMAKE_LINKER=lld-link.exe ^ -DCMAKE_MODULE_LINKER_FLAGS="/FORCE:MULTIPLE" if errorlevel 1 exit 1 cmake ...
set CONDA_PREFIX=%PREFIX% if errorlevel 1 exit 1 cmake -B build -S "%SRC_DIR%" ^ -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ -DPython3_FIND_STRATEGY=LOCATION ^ -DPython3_ROOT_DIR=%CONDA_PREFIX% ^ -DCMAKE_LINKER=lld-link.exe ^ -DCMAKE_MODULE_LINKER_FLAGS="/machine:x64 /FORCE:MULTIPLE" if errorlevel 1 e...
Add /machine:x64, flag which was lost when setting /FORCE:MULTIPLE
Add /machine:x64, flag which was lost when setting /FORCE:MULTIPLE
Batchfile
bsd-3-clause
conda-forge/staged-recipes,conda-forge/staged-recipes,goanpeca/staged-recipes,jakirkham/staged-recipes,ocefpaf/staged-recipes,mariusvniekerk/staged-recipes,mariusvniekerk/staged-recipes,kwilcox/staged-recipes,johanneskoester/staged-recipes,jakirkham/staged-recipes,ocefpaf/staged-recipes,goanpeca/staged-recipes,johannes...
batchfile
## Code Before: set CONDA_PREFIX=%PREFIX% if errorlevel 1 exit 1 cmake -B build -S "%SRC_DIR%" ^ -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ -DPython3_FIND_STRATEGY=LOCATION ^ -DPython3_ROOT_DIR=%CONDA_PREFIX% ^ -DCMAKE_LINKER=lld-link.exe ^ -DCMAKE_MODULE_LINKER_FLAGS="/FORCE:MULTIPLE" if errorlevel ...
976f11d258df9419a3832687c355506d810ec2c5
README.md
README.md
Oblog - Markdown to HTML ======================== This is a simple Markdown + Twig => HTML + sitemap.xml script. It will read source markdown files from a directory, natural sort the files, pass them through Twig templates and write output into given directory. The script will also generate `sitemap.xml` for easier c...
Oblog - Markdown to HTML ======================== This is a simple Markdown + Twig => HTML + sitemap.xml script. It will read source markdown files from a directory, natural sort the files, pass them through Twig templates and write output into given directory. The script will also generate a sitemap to `sitemap.xml`...
Add note about atom feed to readme
Add note about atom feed to readme
Markdown
mit
aforsell/oblog,aforsell/oblog,ospii/oblog,ospii/oblog
markdown
## Code Before: Oblog - Markdown to HTML ======================== This is a simple Markdown + Twig => HTML + sitemap.xml script. It will read source markdown files from a directory, natural sort the files, pass them through Twig templates and write output into given directory. The script will also generate `sitemap.x...
3600cf9ca20f1d4d08765d5db7930bb63804c1f3
test/integration/terminal_silhouette_flows_test.rb
test/integration/terminal_silhouette_flows_test.rb
require 'test_helper' class TerminalSilhouetteFlowsTest < ActionDispatch::IntegrationTest # projects/terminal-silhouettes # REDIRECTS # various terminal silhouette redirects end
require 'test_helper' class TerminalSilhouetteFlowsTest < ActionDispatch::IntegrationTest test "should get terminal silhouettes" do get(terminal_silhouettes_path) assert_response(:success) end # REDIRECTS test "should redirect alternate terminal silhouette paths" do alternate_paths = %w(term...
Write integration tests for terminal silhouettes
Write integration tests for terminal silhouettes
Ruby
mit
bogardpd/portfolio,bogardpd/portfolio,bogardpd/portfolio
ruby
## Code Before: require 'test_helper' class TerminalSilhouetteFlowsTest < ActionDispatch::IntegrationTest # projects/terminal-silhouettes # REDIRECTS # various terminal silhouette redirects end ## Instruction: Write integration tests for terminal silhouettes ## Code After: require 'test_helper' class Term...
62cec1353e9575a4b9887e882a134264885b4aec
mbp-logging-reports/mbp-logging-reports.php
mbp-logging-reports/mbp-logging-reports.php
<?php /** * mbp-logging-reports.php * * A producer to create reports based on logged data in mb-logging-api. */ use DoSomething\MBP_LoggingReports\MBP_LoggingReports_Users; date_default_timezone_set('America/New_York'); define('CONFIG_PATH', __DIR__ . '/messagebroker-config'); // Load up the Composer autoload m...
<?php /** * mbp-logging-reports.php * * A producer to create reports based on logged data in mb-logging-api. */ use DoSomething\MBP_LoggingReports\MBP_LoggingReports_Users; date_default_timezone_set('America/New_York'); define('CONFIG_PATH', __DIR__ . '/messagebroker-config'); // Load up the Composer autoload m...
Gather startDate parameter and pass into controller
Gather startDate parameter and pass into controller
PHP
mit
DoSomething/messagebroker-ds-PHP,DoSomething/messagebroker-ds-PHP,DoSomething/MessageBroker-PHP,DoSomething/MessageBroker-PHP
php
## Code Before: <?php /** * mbp-logging-reports.php * * A producer to create reports based on logged data in mb-logging-api. */ use DoSomething\MBP_LoggingReports\MBP_LoggingReports_Users; date_default_timezone_set('America/New_York'); define('CONFIG_PATH', __DIR__ . '/messagebroker-config'); // Load up the Com...
2feef49584ed29c871d4905dced9a6cf24a1feec
index.js
index.js
var React = require('react') const { Component, PropTypes } = React class ActionCableProvider extends Component { getChildContext () { return { cable: this.props.cable } } render () { return this.props.children } } ActionCableProvider.propTypes = { cable: PropTypes.object.isRequired, ch...
var React = require('react') var ActionCable = require('actioncable') const { Component, PropTypes } = React class ActionCableProvider extends Component { getChildContext () { return { cable: this.cable } } componentWillMount () { if (this.props.cable) { this.cable = this.props.cable ...
Add url props to simplify usage, let cable and url optional
Add url props to simplify usage, let cable and url optional
JavaScript
mit
cpunion/react-actioncable-provider
javascript
## Code Before: var React = require('react') const { Component, PropTypes } = React class ActionCableProvider extends Component { getChildContext () { return { cable: this.props.cable } } render () { return this.props.children } } ActionCableProvider.propTypes = { cable: PropTypes.object....
09b5774750aad5f2ed76382292949f572a7cebf2
chrome/browser/resources/webstore_app/manifest.json
chrome/browser/resources/webstore_app/manifest.json
{ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtl3tO0osjuzRsf6xtD2SKxPlTfuoy7AWoObysitBPvH5fE1NaAA1/2JkPWkVDhdLBWLaIBPYeXbzlHp3y4Vv/4XG+aN5qFE3z+1RU/NqkzVYHtIpVScf3DjTYtKVL66mzVGijSoAIwbFCC3LpGdaoe6Q1rSRDp76wR6jjFzsYwQIDAQAB", "name": "Chrome Web Store", "version": "0.1", "description": "Web Store", "icons"...
{ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtl3tO0osjuzRsf6xtD2SKxPlTfuoy7AWoObysitBPvH5fE1NaAA1/2JkPWkVDhdLBWLaIBPYeXbzlHp3y4Vv/4XG+aN5qFE3z+1RU/NqkzVYHtIpVScf3DjTYtKVL66mzVGijSoAIwbFCC3LpGdaoe6Q1rSRDp76wR6jjFzsYwQIDAQAB", "name": "Chrome Web Store", "version": "0.1", "description": "Web Store", "icons"...
Include all schemes for webstore component app urls
Include all schemes for webstore component app urls BUG=55002 TEST=type chrome.google.com/extensions into omnibox, open js console, verify that chrome.webstorePrivate object is defined Review URL: http://codereview.chromium.org/3366018 git-svn-id: http://src.chromium.org/svn/trunk/src@58970 4ff67af0-8c30-449e-8e8b-a...
JSON
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
json
## Code Before: { "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtl3tO0osjuzRsf6xtD2SKxPlTfuoy7AWoObysitBPvH5fE1NaAA1/2JkPWkVDhdLBWLaIBPYeXbzlHp3y4Vv/4XG+aN5qFE3z+1RU/NqkzVYHtIpVScf3DjTYtKVL66mzVGijSoAIwbFCC3LpGdaoe6Q1rSRDp76wR6jjFzsYwQIDAQAB", "name": "Chrome Web Store", "version": "0.1", "description": "Web S...
3d2af653be9bcc4f1c8b217edbec25d089aeba10
packages/un/universe-instances-trans.yaml
packages/un/universe-instances-trans.yaml
homepage: https://github.com/dmwit/universe changelog-type: '' hash: 9f75eb7f8cda98e8ecb5e9f6ec079890a66265bdfd6707f4fa4cb8857327dfa4 test-bench-deps: {} maintainer: me@dmwit.com synopsis: Universe instances for types from the transformers and mtl packages changelog: '' basic-deps: base: ! '>=4 && <5' universe-base...
homepage: https://github.com/dmwit/universe changelog-type: '' hash: c96cbeb4bf0240bbe09476ca360e9d35cb07cb0af4324bfbfa5cce55df7a9c35 test-bench-deps: {} maintainer: me@dmwit.com synopsis: Universe instances for types from the transformers and mtl packages changelog: '' basic-deps: base: ! '>=4 && <5' universe-base...
Update from Hackage at 2016-01-18T06:35:15+0000
Update from Hackage at 2016-01-18T06:35:15+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/dmwit/universe changelog-type: '' hash: 9f75eb7f8cda98e8ecb5e9f6ec079890a66265bdfd6707f4fa4cb8857327dfa4 test-bench-deps: {} maintainer: me@dmwit.com synopsis: Universe instances for types from the transformers and mtl packages changelog: '' basic-deps: base: ! '>=4 && <5'...
6817cb577250d91c957ef951fd60e76a91645997
tasks/casperjs.js
tasks/casperjs.js
/* * grunt-casperjs * https://github.com/ronaldlokers/grunt-casperjs * * Copyright (c) 2013 Ronald Lokers * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var casperjs = require('./lib/casperjs').init(grunt).casperjs; grunt.registerMultiTask('casperjs', 'Run CasperJs t...
/* * grunt-casperjs * https://github.com/ronaldlokers/grunt-casperjs * * Copyright (c) 2013 Ronald Lokers * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var casperjs = require('./lib/casperjs').init(grunt).casperjs; grunt.registerMultiTask('casperjs', 'Run CasperJs t...
Add `async.parallel` option to run tests in parallel instead of in series
Add `async.parallel` option to run tests in parallel instead of in series
JavaScript
mit
ronaldlokers/grunt-casperjs,ryanmcdermott/grunt-casperjs,codice/grunt-casperjs,davidosomething/grunt-casperjs,guardian/grunt-casperjs
javascript
## Code Before: /* * grunt-casperjs * https://github.com/ronaldlokers/grunt-casperjs * * Copyright (c) 2013 Ronald Lokers * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var casperjs = require('./lib/casperjs').init(grunt).casperjs; grunt.registerMultiTask('casperjs',...
4b418cee7bcf1f2d47674a94c5070f40771f54f5
BayesClassification.py
BayesClassification.py
import sys #------------------------------------------------------------------------------# # # # CLASSES # # ...
import sys #------------------------------------------------------------------------------# # # # CLASSES # # ...
Add DataFile class to split words of a line and count it
Add DataFile class to split words of a line and count it
Python
apache-2.0
Chavjoh/BayesClassificationPython
python
## Code Before: import sys #------------------------------------------------------------------------------# # # # CLASSES # # ...
5cf469c6d4e25d4215de91d43a7efc8cbae88704
assets/terraform/s3_workingstorage.tf
assets/terraform/s3_workingstorage.tf
resource "aws_s3_bucket" "working_storage" { bucket = "wellcomecollection-assets-workingstorage" acl = "private" lifecycle { prevent_destroy = true } lifecycle_rule { id = "transition_all_to_standard_ia" transition { days = 30 storage_class = "STANDARD_IA" } ena...
resource "aws_s3_bucket" "working_storage" { bucket = "wellcomecollection-assets-workingstorage" acl = "private" lifecycle { prevent_destroy = true } lifecycle_rule { id = "transition_all_to_standard_ia" transition { days = 30 storage_class = "STANDARD_IA" } ena...
Add an ID to the "expire noncurrent versions" rule on the assets bucket
Add an ID to the "expire noncurrent versions" rule on the assets bucket [skip ci]
HCL
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
hcl
## Code Before: resource "aws_s3_bucket" "working_storage" { bucket = "wellcomecollection-assets-workingstorage" acl = "private" lifecycle { prevent_destroy = true } lifecycle_rule { id = "transition_all_to_standard_ia" transition { days = 30 storage_class = "STANDARD_IA...
db2c4c9d907f4ad5b75c33e48e4b6075442eebb7
style/basic/js/boot_fonts.js
style/basic/js/boot_fonts.js
(function(window,document) { _editor.loadFont = function(options) { var dummy = document.createElement('div'); dummy.setAttribute('style','font: 400px fantasy;position:absolute;top:-9999px;left:-9999px'); dummy.innerHTML = 'Am-i#o'; document.body.appendChild(dummy); var width = dummy.clientWidth; ...
(function(window,document,tool) { tool.loadFont = function(options) { var weights = options.weights || ['normal']; weights = ['300','400','700']; var count = weights.length; var operation = function(weight) { var dummy = tool._build('div',{style:'font:400px fantasy;position:absolute;top:-9999px;...
Support multiple weights in font loading
Support multiple weights in font loading
JavaScript
unlicense
Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui
javascript
## Code Before: (function(window,document) { _editor.loadFont = function(options) { var dummy = document.createElement('div'); dummy.setAttribute('style','font: 400px fantasy;position:absolute;top:-9999px;left:-9999px'); dummy.innerHTML = 'Am-i#o'; document.body.appendChild(dummy); var width = dum...
24ac4983c682e28ed96929e07f48df9fc6c0ef71
styles/fixes.less
styles/fixes.less
.tab-bar { .active { background-color: darken(@base, 5%) !important; &:after { border-bottom-color: transparent !important; } .title { color: @text; background-color: darken(@base, 5%) !important; } } }
.tab-bar { .active { background-color: darken(@base, 5%) !important; &:after { border-bottom-color: transparent !important; } .title { color: @text; background-color: darken(@base, 5%) !important; } } } .theme-atom-dark-ui .tab-bar .active .title { background-color: transpa...
Fix active tab glitch on atom dark and light ui theme
Fix active tab glitch on atom dark and light ui theme
Less
mit
burntime/atom-monokai
less
## Code Before: .tab-bar { .active { background-color: darken(@base, 5%) !important; &:after { border-bottom-color: transparent !important; } .title { color: @text; background-color: darken(@base, 5%) !important; } } } ## Instruction: Fix active tab glitch on atom dark and lig...
412f1cb7d180e15c640d1913d500d2489ae4bb0c
helloWindows/helloWindows.yml
helloWindows/helloWindows.yml
tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03 description: Hello World for windows. template_name: hello-windows-types template_version: 1.0.0-SNAPSHOT template_author: FastConnect imports: - "tosca-normative-types:1.0.0.wd06-SNAPSHOT" node_types: alien.nodes.HelloWindows: derived_from: tosca.nodes....
tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03 description: Hello World for windows. template_name: hello-windows-types template_version: 1.0.0-SNAPSHOT template_author: FastConnect imports: - "tosca-normative-types:1.0.0.wd06-SNAPSHOT" - "alien-base-types:1.0-SNAPSHOT" node_types: alien.nodes.HelloWin...
Add windows hello world artifacts
Add windows hello world artifacts
YAML
apache-2.0
alien4cloud/samples,alien4cloud/samples,alien4cloud/samples,alien4cloud/samples
yaml
## Code Before: tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03 description: Hello World for windows. template_name: hello-windows-types template_version: 1.0.0-SNAPSHOT template_author: FastConnect imports: - "tosca-normative-types:1.0.0.wd06-SNAPSHOT" node_types: alien.nodes.HelloWindows: derived_fr...
6f815e5488f5af634ee752b7a349ebe3efb7a5ee
doc/user/project/integrations/custom_issue_tracker.md
doc/user/project/integrations/custom_issue_tracker.md
To enable the Custom Issue Tracker integration in a project, navigate to the [Integrations page](project_services.md#accessing-the-project-services), click the **Customer Issue Tracker** service, and fill in the required details on the page as described in the table below. | Field | Description | | ----- | ----------...
To enable the Custom Issue Tracker integration in a project, navigate to the [Integrations page](project_services.md#accessing-the-project-services), click the **Customer Issue Tracker** service, and fill in the required details on the page as described in the table below. | Field | Description | | ----- | ----------...
Update custom issue tracker docs
Update custom issue tracker docs
Markdown
mit
iiet/iiet-git,axilleas/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,iiet/iiet-git,stoplightio/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,iiet/iiet-git,axilleas/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,mmkasse...
markdown
## Code Before: To enable the Custom Issue Tracker integration in a project, navigate to the [Integrations page](project_services.md#accessing-the-project-services), click the **Customer Issue Tracker** service, and fill in the required details on the page as described in the table below. | Field | Description | | --...
431357bc5ced7c1ffd6616f681c195ce45c61462
scriptobject.h
scriptobject.h
class EmacsInstance; class ScriptObject : public NPObject { public: static ScriptObject* create(NPP npp); void invalidate(); bool hasMethod(NPIdentifier name); bool invoke(NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result); bool enumerate(NPIdentifier **identifi...
class EmacsInstance; class ScriptObject : public NPObject { public: static ScriptObject* create(NPP npp); void invalidate(); bool hasMethod(NPIdentifier name); bool invoke(NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result); bool enumerate(NPIdentifier **identifi...
Disable copy and assign on ScriptObject
Disable copy and assign on ScriptObject
C
mit
davidben/embedded-emacs,davidben/embedded-emacs,davidben/embedded-emacs
c
## Code Before: class EmacsInstance; class ScriptObject : public NPObject { public: static ScriptObject* create(NPP npp); void invalidate(); bool hasMethod(NPIdentifier name); bool invoke(NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result); bool enumerate(NPIdent...
92729026b1a172c62789e6bf3c8cb2ba74279b12
project.clj
project.clj
(defproject clj-fst "0.1.0" :description "Finite State Transducers (FST) for Clojure" :url "https://github.com/structureddynamics/clj-fst" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.apa...
(defproject clj-fst "0.1.0" :description "Finite State Transducers (FST) for Clojure" :url "https://github.com/structureddynamics/clj-fst" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.apa...
Remove dependency on the marginalia snapshot
Remove dependency on the marginalia snapshot
Clojure
epl-1.0
structureddynamics/clj-fst
clojure
## Code Before: (defproject clj-fst "0.1.0" :description "Finite State Transducers (FST) for Clojure" :url "https://github.com/structureddynamics/clj-fst" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] ...
5b0139eb38fcc89a717b5f2550ffc2074f41cc93
air.sass
air.sass
// // Variables // $font-size-base: 16!default $line-height-base: 1.4 $margin-base-vertical: $font-size-base/2!default $margin-base-horizontal: $font-size-base/2!default .mb-#{$margin-base-vertical} margin-bottom: $margin-base-vertical+px .mb-#{$margin-base-vertical*2} margin-bottom: $margin-base-vertical*2+px...
// // Variables // $font-size-base: 16!default $line-height-base: 1.4 $margin-base-vertical: $font-size-base/2!default $margin-base-horizontal: $font-size-base/2!default @for $i from 1 through 5 .mb-#{$margin-base-vertical * $i} margin-bottom: $margin-base-vertical*$i+px
Use @for directive to create classes
Use @for directive to create classes
Sass
unlicense
nathanjessen/Air
sass
## Code Before: // // Variables // $font-size-base: 16!default $line-height-base: 1.4 $margin-base-vertical: $font-size-base/2!default $margin-base-horizontal: $font-size-base/2!default .mb-#{$margin-base-vertical} margin-bottom: $margin-base-vertical+px .mb-#{$margin-base-vertical*2} margin-bottom: $margin-ba...
08bdcfbbb82e1c6dd0fc6e41d17f6211a2adc1bf
app/components/browser/Browser.js
app/components/browser/Browser.js
import React from 'react' import ErrorMessage from './ErrorMessage' import Header from './Header' import BrowserStack from './BrowserStack' import BrowserTabs from './BrowserTabs' import CorpusStatusWatcher from '../CorpusStatusWatcher' class Browser extends React.Component { render () { return ( <CorpusSt...
import React from 'react' import { connect } from 'react-redux' import ErrorMessage from './ErrorMessage' import Header from './Header' import BrowserStack from './BrowserStack' import BrowserTabs from './BrowserTabs' import CorpusStatusWatcher from '../CorpusStatusWatcher' import Spinner from '../Spinner' class Brows...
Fix proptypes error when rendering too soon after corpus is selected
fix(browser): Fix proptypes error when rendering too soon after corpus is selected
JavaScript
agpl-3.0
medialab/hyphe-browser,medialab/hyphe-browser
javascript
## Code Before: import React from 'react' import ErrorMessage from './ErrorMessage' import Header from './Header' import BrowserStack from './BrowserStack' import BrowserTabs from './BrowserTabs' import CorpusStatusWatcher from '../CorpusStatusWatcher' class Browser extends React.Component { render () { return (...
d29bc9588203d434843d66dd0b3ddf9d2def4f9a
.travis.yml
.travis.yml
language: node_js node_js: - "10" sudo: required services: - docker cache: directories: - node_modules env: matrix: - "MYSQL_VERSION=5.7" matrix: include: - node_js: 10 env: "MYSQL_VERSION=5.7" # - node_js: 10 # env: "MYSQL_VERSION=8" before_in...
language: node_js node_js: - "10" sudo: required services: - docker cache: directories: - node_modules env: matrix: - "MYSQL_VERSION=5.7" matrix: include: - node_js: 10 env: "MYSQL_VERSION=5.7" # - node_js: 10 # env: "MYSQL_VERSION=8" before_in...
Split unit and ci tests to not start another docker container
Split unit and ci tests to not start another docker container
YAML
mit
godmodelabs/flora-mysql,godmodelabs/flora-mysql
yaml
## Code Before: language: node_js node_js: - "10" sudo: required services: - docker cache: directories: - node_modules env: matrix: - "MYSQL_VERSION=5.7" matrix: include: - node_js: 10 env: "MYSQL_VERSION=5.7" # - node_js: 10 # env: "MYSQL_VERSI...
a20418ad43074a93bc21b97611c4967713ebc897
plugins/providers/hyperv/scripts/list_hdds.ps1
plugins/providers/hyperv/scripts/list_hdds.ps1
param( [Parameter(Mandatory=$true)] [string]$VmId ) try { $VM = Hyper-V\Get-VM -Id $VmId Hyper-V\Get-VMHardDiskDrive -VMName $VM } catch { Write-ErrorMessage "Failed to retrieve all disk info from ${VM}: ${PSItem}" exit 1 }
param( [Parameter(Mandatory=$true)] [string]$VmId ) try { $VM = Hyper-V\Get-VM -Id $VmId $Disks = @(Hyper-V\Get-VMHardDiskDrive -VMName $VM) } catch { Write-ErrorMessage "Failed to retrieve all disk info from ${VM}: ${PSItem}" exit 1 } $result = ConvertTo-json $Disks Write-OutputMessage $resu...
Format output from json to return to hyper-v driver
Format output from json to return to hyper-v driver
PowerShell
mit
mitchellh/vagrant,mitchellh/vagrant,chrisroberts/vagrant,sni/vagrant,marxarelli/vagrant,sni/vagrant,chrisroberts/vagrant,mitchellh/vagrant,marxarelli/vagrant,chrisroberts/vagrant,chrisroberts/vagrant,mitchellh/vagrant,marxarelli/vagrant,sni/vagrant,sni/vagrant,marxarelli/vagrant
powershell
## Code Before: param( [Parameter(Mandatory=$true)] [string]$VmId ) try { $VM = Hyper-V\Get-VM -Id $VmId Hyper-V\Get-VMHardDiskDrive -VMName $VM } catch { Write-ErrorMessage "Failed to retrieve all disk info from ${VM}: ${PSItem}" exit 1 } ## Instruction: Format output from json to return to ...
34c21504263b78745918742488b911ab38d75522
group_vars/all/main.yml
group_vars/all/main.yml
composer_keep_updated: true composer_global_packages: - { name: hirak/prestissimo } apt_cache_valid_time: 86400 default_timezone: Etc/UTC www_root: /opt/proteusnet/www ip_whitelist: - "{{ lookup('pipe', 'curl -4 -s https://api.ipify.org') }}" wordpress_env_defaults: db_host: localhost db_name: "{{ item.key | un...
composer_keep_updated: true composer_global_packages: - { name: hirak/prestissimo } apt_cache_valid_time: 86400 default_timezone: Etc/UTC www_root: /opt/proteusnet/www ip_whitelist: - "{{ lookup('pipe', 'curl -4 -s https://api.ipify.org') }}" wordpress_env_defaults: db_host: localhost db_name: "{{ item.key | un...
Revert "Changed the wp_home variable to use the first site_hosts item."
Revert "Changed the wp_home variable to use the first site_hosts item." This reverts commit 659189566199842aa474d105153c023ef2ec7be5.
YAML
mit
proteusthemes/pt-ops,proteusthemes/pt-ops,proteusthemes/pt-ops
yaml
## Code Before: composer_keep_updated: true composer_global_packages: - { name: hirak/prestissimo } apt_cache_valid_time: 86400 default_timezone: Etc/UTC www_root: /opt/proteusnet/www ip_whitelist: - "{{ lookup('pipe', 'curl -4 -s https://api.ipify.org') }}" wordpress_env_defaults: db_host: localhost db_name: "...
2c38fea1434f8591957c2707359412151c4b6c43
tests/test_timezones.py
tests/test_timezones.py
import unittest import datetime from garage.timezones import TimeZone class TimeZoneTest(unittest.TestCase): def test_time_zone(self): utc = datetime.datetime(2000, 1, 2, 3, 4, 0, 0, TimeZone.UTC) cst = utc.astimezone(TimeZone.CST) print('xxx', utc, cst) self.assertEqual(2000, c...
import unittest import datetime from garage.timezones import TimeZone class TimeZoneTest(unittest.TestCase): def test_time_zone(self): utc = datetime.datetime(2000, 1, 2, 3, 4, 0, 0, TimeZone.UTC) cst = utc.astimezone(TimeZone.CST) self.assertEqual(2000, cst.year) self.assertEqu...
Remove print in unit test
Remove print in unit test
Python
mit
clchiou/garage,clchiou/garage,clchiou/garage,clchiou/garage
python
## Code Before: import unittest import datetime from garage.timezones import TimeZone class TimeZoneTest(unittest.TestCase): def test_time_zone(self): utc = datetime.datetime(2000, 1, 2, 3, 4, 0, 0, TimeZone.UTC) cst = utc.astimezone(TimeZone.CST) print('xxx', utc, cst) self.ass...
05989b935e6da8e33340f1d61f92b0e0947bd931
gerrit-docker/src/main/docker/gerrit/conf-and-run-gerrit.sh
gerrit-docker/src/main/docker/gerrit/conf-and-run-gerrit.sh
sed -i 's/__GITLAB_IP__/'${GITLAB_PORT_80_TCP_ADDR}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_USER__/'${GITLAB_USER}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_PASSWORD__/'${GITLAB_PASSWORD}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_PROJ_ROOT__/...
sed -i 's/__GITLAB_IP__/'${GITLAB_PORT_80_TCP_ADDR}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_USER__/'${GITLAB_USER}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_PASSWORD__/'${GITLAB_PASSWORD}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_PROJ_ROOT__/...
Update script to include ssh_config. Maybe that should be the otherway around --> gogs
Update script to include ssh_config. Maybe that should be the otherway around --> gogs
Shell
apache-2.0
finiteloopme/cd-jboss-fuse,finiteloopme/cd-jboss-fuse,finiteloopme/cd-jboss-fuse
shell
## Code Before: sed -i 's/__GITLAB_IP__/'${GITLAB_PORT_80_TCP_ADDR}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_USER__/'${GITLAB_USER}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GITLAB_PASSWORD__/'${GITLAB_PASSWORD}'/g' /home/gerrit/gerrit/etc/replication.config sed -i 's/__GIT...
290d9eb3b238fdf18c947416d46968bfc6c25228
karma.conf.js
karma.conf.js
// Reference: http://karma-runner.github.io/0.12/config/configuration-file.html module.exports = function karmaConfig (config) { config.set({ frameworks: [ // Reference: https://github.com/karma-runner/karma-mocha // Set framework to mocha 'mocha' ], reporters: [ // Reference: htt...
// Reference: http://karma-runner.github.io/0.12/config/configuration-file.html module.exports = function karmaConfig (config) { config.set({ frameworks: [ // Reference: https://github.com/karma-runner/karma-mocha // Set framework to mocha 'mocha' ], reporters: [ // Reference: htt...
Hide webpack build information when running karma
Hide webpack build information when running karma
JavaScript
mit
cesarandreu/web-app,Climb-social/climb-social-resources,Climb-social/climb-social-resources,100Shapes/react-webapp-starter,100Shapes/react-webapp-starter,awolf/react-by-example
javascript
## Code Before: // Reference: http://karma-runner.github.io/0.12/config/configuration-file.html module.exports = function karmaConfig (config) { config.set({ frameworks: [ // Reference: https://github.com/karma-runner/karma-mocha // Set framework to mocha 'mocha' ], reporters: [ /...
d9b877e605501923604abb2aad1f80a23337a3a1
vscode/User/settings.json
vscode/User/settings.json
{ "editor.glyphMargin": true, "editor.rulers": [ 80, 100, 120, 200 ], "editor.tabSize": 2, "editor.insertSpaces": true, "editor.renderWhitespace": "boundary", "editor.renderControlCharacters": true, "editor.renderIndentGuides": true, "files.eol": "\n", "files.insertFinalNewli...
{ "editor.glyphMargin": true, "editor.rulers": [ 80, 100, 120, 200 ], "editor.tabSize": 2, "editor.insertSpaces": true, "editor.renderWhitespace": "boundary", "editor.renderControlCharacters": true, "editor.renderIndentGuides": true, "files.eol": "\n", "files.insertFinalNewli...
Disable VS Code welcome page
Disable VS Code welcome page
JSON
mit
jmlntw/dotfiles,jmlntw/dotfiles
json
## Code Before: { "editor.glyphMargin": true, "editor.rulers": [ 80, 100, 120, 200 ], "editor.tabSize": 2, "editor.insertSpaces": true, "editor.renderWhitespace": "boundary", "editor.renderControlCharacters": true, "editor.renderIndentGuides": true, "files.eol": "\n", "files....
a9158ccc9aceac55d715f76e5641eb22b459f3a4
build.gradle.kts
build.gradle.kts
/** * Builds and runs the site locally. */ task<Exec>("runSite") { commandLine("./_script/jekyll-serve") } task<Exec>("buildSite") { commandLine("./_script/jekyll-build") }
/** * Builds and runs the site locally. */ task<Exec>("runSite") { commandLine("./_script/jekyll-serve") } /** * Builds the site without starting the server. */ task<Exec>("buildSite") { commandLine("./_script/jekyll-build") }
Document the site build task
Document the site build task
Kotlin
apache-2.0
SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io
kotlin
## Code Before: /** * Builds and runs the site locally. */ task<Exec>("runSite") { commandLine("./_script/jekyll-serve") } task<Exec>("buildSite") { commandLine("./_script/jekyll-build") } ## Instruction: Document the site build task ## Code After: /** * Builds and runs the site locally. */ task<Exec>(...
54f8bd5579a9cfec716a7b5ba05a9659ea8f9a4d
src/app/feedback/feedback.component.html
src/app/feedback/feedback.component.html
<app-header [title]="'Feedback'" [description]="'We appreciate your visit to the beta-version of the Research Hub, our platform for research support.'" [imageUrl]="'assets/cover-1.jpg'"></app-header> <div class="component" ngClass.xs="component-xs"> <div style="max-width: 850px;"> <h2>Tha...
<app-header [title]="'Feedback'" [description]="'We appreciate your visit to the beta-version of the Research Hub, our platform for research support.'" [imageUrl]="'assets/cover-1.jpg'"></app-header> <div class="component" ngClass.xs="component-xs"> <div style="max-width: 850px; margin-bottom...
Add margin between text and forms
Add margin between text and forms
HTML
bsd-3-clause
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
html
## Code Before: <app-header [title]="'Feedback'" [description]="'We appreciate your visit to the beta-version of the Research Hub, our platform for research support.'" [imageUrl]="'assets/cover-1.jpg'"></app-header> <div class="component" ngClass.xs="component-xs"> <div style="max-width: 850p...
73d22cc63a2a37bd3c99774bf098ca12c81d54ae
funnels.py
funnels.py
import pyglet from levels import GameOver, IntroScreen, TheGame from levels.levels import Levels window = pyglet.window.Window()#fullscreen=True) levels = Levels([IntroScreen(window), TheGame(window), GameOver(window)]) pyglet.clock.schedule(levels.clock) @window.event def on_key_press(symbol, modifiers): levels....
import pyglet import argparse from levels import GameOver, IntroScreen, TheGame from levels.levels import Levels def main(fullscreen): window = pyglet.window.Window(fullscreen=fullscreen) levels = Levels([IntroScreen(window), TheGame(window), GameOver(window)]) pyglet.clock.schedule(levels.clock) @window.eve...
Add argparse to turn on/off fullscreen behavior
Add argparse to turn on/off fullscreen behavior
Python
mit
simeonf/claire
python
## Code Before: import pyglet from levels import GameOver, IntroScreen, TheGame from levels.levels import Levels window = pyglet.window.Window()#fullscreen=True) levels = Levels([IntroScreen(window), TheGame(window), GameOver(window)]) pyglet.clock.schedule(levels.clock) @window.event def on_key_press(symbol, modif...
874ffb6da356496985feca8f6834ccd09783eada
README.md
README.md
A lightweight package with common helpers for [Handlebars](https://github.com/wycats/handlebars.js) ## Installation ```bash $ npm install just-handlebars-helpers --save ``` ## Usage ```html <!-- Load Handlebars --> <script type="text/javascript" src="/node_modules/handlebars/dist/handlebars.min.js"></script> <!-- Lo...
A lightweight package with common helpers for [Handlebars](https://github.com/wycats/handlebars.js) ## Installation ```bash $ npm install just-handlebars-helpers --save ``` ## Usage ```html <!-- Load Handlebars --> <script type="text/javascript" src="/node_modules/handlebars/dist/handlebars.min.js"></script> <!-- Lo...
Change to npm test and remove TODO information
Change to npm test and remove TODO information
Markdown
mit
sanjeevkpandit/just-handlebars-helpers,mesaugat/just-handlebars-helpers,leapfrogtechnology/just-handlebars-helpers,leapfrogtechnology/just-handlebars-helpers
markdown
## Code Before: A lightweight package with common helpers for [Handlebars](https://github.com/wycats/handlebars.js) ## Installation ```bash $ npm install just-handlebars-helpers --save ``` ## Usage ```html <!-- Load Handlebars --> <script type="text/javascript" src="/node_modules/handlebars/dist/handlebars.min.js"><...
241cf4d0fbf013a766015d53878a32fb7d1c31d0
docker_push.sh
docker_push.sh
export SCRIPT_DIR=$(dirname $(realpath $0)) source ${SCRIPT_DIR}/settings.sh for line in $(docker images | grep $ORIGINAL_REGISTRY) do IMAGE=$(echo $line | awk '{print $1}') VERS=$(echo $line | awk '{print $2}') HASH=$(echo $line | awk '{print $3}') NEW_TAG=$(echo $IMAGE | sed s/${ORIGINAL_REGISTRY}/${REGIST...
export SCRIPT_DIR=$(dirname $(realpath $0)) source ${SCRIPT_DIR}/settings.sh for line in $(docker images | grep $OLD_REGISTRY) do IMAGE=$(echo $line | awk '{print $1}') VERS=$(echo $line | awk '{print $2}') HASH=$(echo $line | awk '{print $3}') NEW_TAG=$(echo $IMAGE | sed s/${OLD_REGISTRY}/${REGISTRY}/) #...
Include version info in tags
Include version info in tags
Shell
apache-2.0
nsabine/ose_scripts,nsabine/ose_scripts
shell
## Code Before: export SCRIPT_DIR=$(dirname $(realpath $0)) source ${SCRIPT_DIR}/settings.sh for line in $(docker images | grep $ORIGINAL_REGISTRY) do IMAGE=$(echo $line | awk '{print $1}') VERS=$(echo $line | awk '{print $2}') HASH=$(echo $line | awk '{print $3}') NEW_TAG=$(echo $IMAGE | sed s/${ORIGINAL_RE...
bf757ed1844435ef58d6c7f47e204eb33f5b5146
Core/src/org/sleuthkit/autopsy/casemodule/docs/casemodule-toc.xml
Core/src/org/sleuthkit/autopsy/casemodule/docs/casemodule-toc.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN" "http://java.sun.com/products/javahelp/toc_2_0.dtd"> <toc version="2.0"> <tocitem text="Overview" t...
<?xml version="1.0" encoding="UTF-8"?> <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN" "http://java.sun.com/products/javahelp/toc_2_0.dtd"> <toc version="2.0"> <tocitem text="Quick Start...
Move guide up in toc
Move guide up in toc
XML
apache-2.0
sidheshenator/autopsy,raman-bt/autopsy,wschaeferB/autopsy,millmanorama/autopsy,esaunders/autopsy,rcordovano/autopsy,APriestman/autopsy,raman-bt/autopsy,maxrp/autopsy,APriestman/autopsy,mhmdfy/autopsy,narfindustries/autopsy,esaunders/autopsy,sidheshenator/autopsy,esaunders/autopsy,mhmdfy/autopsy,wschaeferB/autopsy,APrie...
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <!-- To change this template, choose Tools | Templates and open the template in the editor. --> <!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN" "http://java.sun.com/products/javahelp/toc_2_0.dtd"> <toc version="2.0"> <tocitem t...