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
aabbb695224bb56197ec35983e8513446b9d100d
types/index.ts
types/index.ts
export type CookieAttributes = object & { path?: string domain?: string expires?: number | Date sameSite?: string secure?: boolean [property: string]: any } export type ReadConverter = (value: string, name?: string) => any export type WriteConverter = (value: any, name?: string) => string export type Coo...
export type CookieAttributes = object & { path?: string domain?: string expires?: number | Date sameSite?: string secure?: boolean [property: string]: any } export type ReadConverter = (value: string, name?: string) => any export type WriteConverter = (value: any, name?: string) => string export type Coo...
Make converter props optional where necessary
Make converter props optional where necessary
TypeScript
mit
carhartl/js-cookie,carhartl/js-cookie
typescript
## Code Before: export type CookieAttributes = object & { path?: string domain?: string expires?: number | Date sameSite?: string secure?: boolean [property: string]: any } export type ReadConverter = (value: string, name?: string) => any export type WriteConverter = (value: any, name?: string) => string ...
381ac62d0a196f090bcfd3689cb650e5b466b559
core/spec/lib/spree/core/testing_support/factories/customer_return_factory_spec.rb
core/spec/lib/spree/core/testing_support/factories/customer_return_factory_spec.rb
require 'spec_helper' require 'spree/testing_support/factories/customer_return_factory' RSpec.describe 'customer return factory' do let(:factory_class) { Spree::CustomerReturn } describe 'customer return' do let(:factory) { :customer_return } it_behaves_like 'a working factory' end describe 'custome...
require 'spec_helper' require 'spree/testing_support/factories/customer_return_factory' RSpec.describe 'customer return factory' do let(:factory_class) { Spree::CustomerReturn } describe 'customer return' do let(:factory) { :customer_return } it_behaves_like 'a working factory' # Regression test for...
Test objects created by customer_return factory
Test objects created by customer_return factory Test for issue fixed by https://github.com/solidusio/solidus/pull/697
Ruby
bsd-3-clause
jordan-brough/solidus,pervino/solidus,jordan-brough/solidus,pervino/solidus,pervino/solidus,jordan-brough/solidus,Arpsara/solidus,jordan-brough/solidus,pervino/solidus,Arpsara/solidus,Arpsara/solidus,Arpsara/solidus
ruby
## Code Before: require 'spec_helper' require 'spree/testing_support/factories/customer_return_factory' RSpec.describe 'customer return factory' do let(:factory_class) { Spree::CustomerReturn } describe 'customer return' do let(:factory) { :customer_return } it_behaves_like 'a working factory' end d...
621787d3a202377bb4edbdbc919de7af87e7ff89
Cargo.toml
Cargo.toml
[package] name = "wtf8" version = "0.0.1" authors = ["Simon Sapin <simon.sapin@exyr.org>"] [lib] name = "wtf8" doctest = false
[package] name = "wtf8" version = "0.0.2" authors = ["Simon Sapin <simon.sapin@exyr.org>"] description = "Implementation of the WTF-8 encoding. https://simonsapin.github.io/wtf-8/" documentation = "https://simonsapin.github.io/rust-wtf8/wtf8/index.html" repository = "https://github.com/SimonSapin/rust-wtf8" readme = ...
Add some metadata for crates.io.
Add some metadata for crates.io.
TOML
mit
SimonSapin/rust-wtf8
toml
## Code Before: [package] name = "wtf8" version = "0.0.1" authors = ["Simon Sapin <simon.sapin@exyr.org>"] [lib] name = "wtf8" doctest = false ## Instruction: Add some metadata for crates.io. ## Code After: [package] name = "wtf8" version = "0.0.2" authors = ["Simon Sapin <simon.sapin@exyr.org>"] description = "...
acd7abd4160a1449f4eb8919fa54efcdc9338f18
client/login.php
client/login.php
<?php /* * This is just a dummy page pretending to log a user in. * The idea is to test sessions on the server */ require(__DIR__ . '/../vendor/autoload.php'); use \Socketty\ErrorHandler; use \Symfony\Component\HttpFoundation\Session\Session; use \Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSe...
<?php /* * This is just a dummy page pretending to log a user in. * The idea is to test sessions on the server */ require(__DIR__ . '/../vendor/autoload.php'); use \Symfony\Component\HttpFoundation\Session\Session; use \Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler; use \Symfony\C...
Remove error handler here as well
Remove error handler here as well
PHP
mit
magnusjt/socketty,magnusjt/socketty,magnusjt/socketty,magnusjt/socketty,magnusjt/socketty,magnusjt/socketty
php
## Code Before: <?php /* * This is just a dummy page pretending to log a user in. * The idea is to test sessions on the server */ require(__DIR__ . '/../vendor/autoload.php'); use \Socketty\ErrorHandler; use \Symfony\Component\HttpFoundation\Session\Session; use \Symfony\Component\HttpFoundation\Session\Storage\Han...
5ba8c8b47a5f6f72b73de8abf20520769b404566
docs/content/feature/traffic-shaping.md
docs/content/feature/traffic-shaping.md
--- title: "Traffic Shaping" since: "1.0" --- fabio allows to control the amount of traffic a set of service instances will receive. You can use this feature to direct a fixed percentage of traffic to a newer version of an existing service for testing ("Canary testing"). See [Manual Overrides](./Routing#manual-overrid...
--- title: "Traffic Shaping" since: "1.0" --- fabio allows to control the amount of traffic a set of service instances will receive. You can use this feature to direct a fixed percentage of traffic to a newer version of an existing service for testing ("Canary testing"). See [Manual Overrides](./Routing#manual-overrid...
Add Vault example to the traffic shaping section.
Add Vault example to the traffic shaping section. Add a small section to the Traffic Shaping documentation detailing how to use Fabio to route traffic for Vault to the active node. Ref: https://twitter.com/jrasell/status/1100724689767485440
Markdown
mit
fabiolb/fabio,fabiolb/fabio
markdown
## Code Before: --- title: "Traffic Shaping" since: "1.0" --- fabio allows to control the amount of traffic a set of service instances will receive. You can use this feature to direct a fixed percentage of traffic to a newer version of an existing service for testing ("Canary testing"). See [Manual Overrides](./Routin...
3e812032da7246f4056190dbef88fb0c85e0be7f
console/src/app/core/services/charts-provider-service/charts-provider.service.ts
console/src/app/core/services/charts-provider-service/charts-provider.service.ts
import { Injectable } from '@angular/core'; import { PrometheusApiService } from '../prometheus-api/prometheus-api.service'; import { MongooseChartDao } from '../../models/chart/mongoose-chart-interface/mongoose-chart-dao.model'; @Injectable({ providedIn: 'root' }) export class ChartsProviderService { private mon...
import { Injectable } from '@angular/core'; import { PrometheusApiService } from '../prometheus-api/prometheus-api.service'; import { MongooseChartDao } from '../../models/chart/mongoose-chart-interface/mongoose-chart-dao.model'; import { MongooseMetric } from '../../models/chart/mongoose-metric.model'; import { Mongoo...
Add charts to ChartsProviderService. Add larency chart updation method to it.
Add charts to ChartsProviderService. Add larency chart updation method to it.
TypeScript
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
typescript
## Code Before: import { Injectable } from '@angular/core'; import { PrometheusApiService } from '../prometheus-api/prometheus-api.service'; import { MongooseChartDao } from '../../models/chart/mongoose-chart-interface/mongoose-chart-dao.model'; @Injectable({ providedIn: 'root' }) export class ChartsProviderService ...
b4fc8d9be51abf42d9889052e6311ef49f628ad7
.travis.yml
.travis.yml
language: node_js node_js: - "4.4.4" - "6.2.0" sudo: false cache: directories: - node_modules script: - | if [ "$TEST_TYPE" = unit_test ]; then set -e npm test elif [ "$TEST_TYPE" = integration_test ]; then set -e SAGUI_DIR="${pwd}" PROJECT_DIR="${mktemp -d}" cd $...
language: node_js node_js: - "4.4.4" - "6.2.0" sudo: false cache: directories: - node_modules script: - | if [ "$TEST_TYPE" = unit_test ]; then set -e npm test elif [ "$TEST_TYPE" = integration_test ]; then set -e SAGUI_DIR=`pwd` PROJECT_DIR=`mktemp -d` cd $PROJEC...
Fix issues in Travis build scripts
Fix issues in Travis build scripts
YAML
mit
saguijs/sagui,saguijs/sagui
yaml
## Code Before: language: node_js node_js: - "4.4.4" - "6.2.0" sudo: false cache: directories: - node_modules script: - | if [ "$TEST_TYPE" = unit_test ]; then set -e npm test elif [ "$TEST_TYPE" = integration_test ]; then set -e SAGUI_DIR="${pwd}" PROJECT_DIR="${mktemp...
cd29012a652cb672b8e87dbb60aebe1e12012276
app/styles/main.scss
app/styles/main.scss
/* Libraries */ @import 'compass/support'; @import 'compass/css3'; @import 'compass/typography'; /* Modules */ @import 'base'; @import 'application'; @import 'groups-view'; @import 'group-view'; @import 'group-edit-view'; @import 'items-view'; @import 'item-view'; @import 'item-edit-view';
/* Base breakpoints */ $screen-small: 0px 719px; $screen-medium: 720px; $screen-large: 1024px; $screen-xtra-large: 1200px; /* Media Queries */ $hidpi: min-resolution 1.5dppx; $lodpi: max-resolution 1dppx; $screen-portrait: (orientation portrait); $screen-landscape: (orientation landscape); $screen-small-portrait: ...
Add Sass breakpoints and libraries
Add Sass breakpoints and libraries
SCSS
mit
darvelo/wishlist,darvelo/wishlist
scss
## Code Before: /* Libraries */ @import 'compass/support'; @import 'compass/css3'; @import 'compass/typography'; /* Modules */ @import 'base'; @import 'application'; @import 'groups-view'; @import 'group-view'; @import 'group-edit-view'; @import 'items-view'; @import 'item-view'; @import 'item-edit-view'; ## Inst...
8306cdfc3fa1b755e02ba0328926da7c4752564a
edocs-app/src/main/java/com/github/aureliano/edocs/app/gui/AppFrame.java
edocs-app/src/main/java/com/github/aureliano/edocs/app/gui/AppFrame.java
package com.github.aureliano.edocs.app.gui; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JPanel; import com.github.aureliano.edocs.app.gui.menu.MenuBar; public class AppFrame extends JFrame { private static final long serialVersionUID = 7618501026967569839...
package com.github.aureliano.edocs.app.gui; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JPanel; import com.github.aureliano.edocs.app.gui.menu.MenuBar; public class AppFrame extends JFrame { private static final long serialVersionUID = 7618501026967569839...
Set main frame default location.
Set main frame default location.
Java
mit
aureliano/e-docs
java
## Code Before: package com.github.aureliano.edocs.app.gui; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JPanel; import com.github.aureliano.edocs.app.gui.menu.MenuBar; public class AppFrame extends JFrame { private static final long serialVersionUID = 761...
f1b67d11f9e092a6686041cce16519793d0c5d25
tests/sanity.rs
tests/sanity.rs
extern crate pandoc; use std::path::PathBuf; #[test] fn creation() { use pandoc::PandocOption::*; use pandoc::OutputKind; let mut pandoc = pandoc::new(); pandoc.add_input("cake"); pandoc.set_output(OutputKind::File(String::from("lie"))); pandoc.set_chapters(); pandoc.set_number_sections()...
extern crate pandoc; use std::path::PathBuf; #[test] fn creation() { use pandoc::PandocOption::*; use pandoc::OutputKind; let mut pandoc = pandoc::new(); pandoc.add_input("cake"); pandoc.set_output(OutputKind::File(String::from("lie"))); pandoc.set_chapters(); pandoc.set_number_sections()...
Adjust test to new API
Adjust test to new API
Rust
apache-2.0
oli-obk/rust-pandoc
rust
## Code Before: extern crate pandoc; use std::path::PathBuf; #[test] fn creation() { use pandoc::PandocOption::*; use pandoc::OutputKind; let mut pandoc = pandoc::new(); pandoc.add_input("cake"); pandoc.set_output(OutputKind::File(String::from("lie"))); pandoc.set_chapters(); pandoc.set_n...
bb6d7a4edd7942ff772639a782a8d47dba9ce066
lib/server/transport/http/middleware/checkContentType.js
lib/server/transport/http/middleware/checkContentType.js
"use strict"; function abortRequest(res) { res.statusCode = 415; res.end(); } function checkContentType(acceptedTypes, encoding) { var actualType, acceptedType, i, l; for (i = 0, l = acceptedTypes.length; i < l; i++) { acceptedTypes[i] = acceptedTypes[i].toLowerCase(); } ...
"use strict"; function abortRequest(res) { res.statusCode = 415; res.end(); } function checkContentType(acceptedTypes, encoding) { var actualType, acceptedType, i, l; for (i = 0, l = acceptedTypes.length; i < l; i++) { acceptedTypes[i] = acceptedTypes[i].toLowerCase(); } ...
Fix check for content type
Fix check for content type
JavaScript
mit
peerigon/alamid,peerigon/alamid
javascript
## Code Before: "use strict"; function abortRequest(res) { res.statusCode = 415; res.end(); } function checkContentType(acceptedTypes, encoding) { var actualType, acceptedType, i, l; for (i = 0, l = acceptedTypes.length; i < l; i++) { acceptedTypes[i] = acceptedTypes[i].toLowe...
8874f3cee689e61cacd34b02df7162c6414b0f96
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - ## [1.4.0] - 2018-03-21 ### Added - Partial HTTP 2 support within `%H` and `%r` ### Modif...
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - ## [1.5.] - 2019-02-04 ### Added - PHP 7.3/PRCE2 support ## [1.4.0] - 2018-03-21 ### Add...
Update changelog for 1.5.0 release
Update changelog for 1.5.0 release
Markdown
apache-2.0
kassner/log-parser
markdown
## Code Before: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] - ## [1.4.0] - 2018-03-21 ### Added - Partial HTTP 2 support within `%H` an...
1dbafcbbeb77b3be3c00292f022a3526f3e60b75
spec/first_letters_spec.rb
spec/first_letters_spec.rb
require 'spec_helper' require_relative '../lib/abcing/first_letters' describe ABCing::FirstLetters do it 'collects 2 letters' do matcher = ABCing::FirstLetters.new ['Bar', 'Foo'] expect(matcher.letters).to eq(['B', 'F']) end it 'Only collects unique letters' do matcher = ABCing::FirstLetters.new(['Z...
require 'spec_helper' require_relative '../lib/abcing/first_letters' describe ABCing::FirstLetters do it 'collects 2 letters' do matcher = ABCing::FirstLetters.new ['Bar', 'Foo'] expect(matcher.letters).to eq(['B', 'F']) end it 'Only collects unique letters' do matcher = ABCing::FirstLetters.new(['Z...
Test edgecase where an empty result is returned for FirstLetters
Test edgecase where an empty result is returned for FirstLetters
Ruby
mit
emileswarts/abcing
ruby
## Code Before: require 'spec_helper' require_relative '../lib/abcing/first_letters' describe ABCing::FirstLetters do it 'collects 2 letters' do matcher = ABCing::FirstLetters.new ['Bar', 'Foo'] expect(matcher.letters).to eq(['B', 'F']) end it 'Only collects unique letters' do matcher = ABCing::Firs...
9f0f6e56d2ffb5e39453e90665cb7ba8bf233f5c
source/js/feature/logEditor/logEditorWordCount.js
source/js/feature/logEditor/logEditorWordCount.js
function runLogEditorWordCount(){ var common = LogEditorCommon.getInstance(), previewDiv = $("div.mdd_editor_wrap textarea"); common.toolbar.append("<li id='geoachingUtilsWordCount'>Hallo<li/>"); previewDiv.on("input", function(e){ var currentText = $(e.currentTarget).val(), currentWordCount = countWords(cu...
function runLogEditorWordCount(){ var common = LogEditorCommon.getInstance(), previewDiv = $("div.mdd_editor_wrap textarea"); common.toolbar.append("<li id='geoachingUtilsWordCount'>Hallo<li/>"); previewDiv.on("input", function(e){ var currentText = $(e.currentTarget).val(), currentWordCount = countWords(cu...
Fix word count if the altered string ends up empty
Fix word count if the altered string ends up empty
JavaScript
mpl-2.0
ControlTheBit/geocachingUtils,ControlTheBit/geocachingUtils
javascript
## Code Before: function runLogEditorWordCount(){ var common = LogEditorCommon.getInstance(), previewDiv = $("div.mdd_editor_wrap textarea"); common.toolbar.append("<li id='geoachingUtilsWordCount'>Hallo<li/>"); previewDiv.on("input", function(e){ var currentText = $(e.currentTarget).val(), currentWordCount...
486cb9a7b451de300f6bc8d0672f06598aea2a54
modules/serverless-deprecated-removed-features.adoc
modules/serverless-deprecated-removed-features.adoc
// Module included in the following assemblies: // // * serverless/serverless-release-notes.adoc :_content-type: REFERENCE [id="serverless-deprecated-removed-features_{context}"] = Deprecated and removed features Some features available in previous releases have been deprecated or removed. Deprecated functionality i...
// Module included in the following assemblies: // // * serverless/serverless-release-notes.adoc :_content-type: REFERENCE [id="serverless-deprecated-removed-features_{context}"] = Deprecated and removed features Some features available in previous releases have been deprecated or removed. Deprecated functionality i...
Fix the mTLS entry in the feature matrix
Fix the mTLS entry in the feature matrix
AsciiDoc
apache-2.0
vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs,vikram-redhat/openshift-docs
asciidoc
## Code Before: // Module included in the following assemblies: // // * serverless/serverless-release-notes.adoc :_content-type: REFERENCE [id="serverless-deprecated-removed-features_{context}"] = Deprecated and removed features Some features available in previous releases have been deprecated or removed. Deprecated...
44df0682b368c7ce9562536f176fefbcf0f068dd
process_barcode.php
process_barcode.php
<?php function processBarcode($barcode) { }
<?php define('BARCODE_ENDPOINT', 'http://library2.udayton.edu/ray/ohss/barcode_search.php?barcode=%s'); function processBarcode($barcode) { if (preg_match('/^[A-Z][0-9]+$/', $barcode)) { $result = file_get_contents(sprintf(BARCODE_ENDPOINT, $barcode)); if ($result) { return json_decode($result, true); } } ...
Add function body for processBarcode.
Add function body for processBarcode.
PHP
mit
AndrewSWA/OHSS
php
## Code Before: <?php function processBarcode($barcode) { } ## Instruction: Add function body for processBarcode. ## Code After: <?php define('BARCODE_ENDPOINT', 'http://library2.udayton.edu/ray/ohss/barcode_search.php?barcode=%s'); function processBarcode($barcode) { if (preg_match('/^[A-Z][0-9]+$/', $barcode)) {...
5110ad60400703d11dedc37096f9112050d765c5
laravel/mvc-basics/step-by-step/04_run_the_database_migration.sh
laravel/mvc-basics/step-by-step/04_run_the_database_migration.sh
cd ~/Sites/presentation/mvc-basics # You can review the migrations before they've run using the following command php artisan migrate:status # Use artisan to run your database migrations php artisan migrate # You can review the migrations after they've run using the following command php artisan migrate:status # Yo...
cd ~/Sites/presentation/mvc-basics # You can review the migrations before they've run using the following command php artisan migrate:install php artisan migrate:status # Use artisan to run your database migrations php artisan migrate # You can review the migrations after they've run using the following command php ...
Update laravel/mvc-basics/step-by-step/04 to perform migrate install first
Update laravel/mvc-basics/step-by-step/04 to perform migrate install first
Shell
mit
jeffersonmartin/code-examples,jeffersonmartin/code-examples,jeffersonmartin/code-examples,jeffersonmartin/code-examples
shell
## Code Before: cd ~/Sites/presentation/mvc-basics # You can review the migrations before they've run using the following command php artisan migrate:status # Use artisan to run your database migrations php artisan migrate # You can review the migrations after they've run using the following command php artisan migr...
10a5c2de2241ad8b0e524dbb95f1c2eb26254693
.travis/install-dependencies/r-install-dependencies.sh
.travis/install-dependencies/r-install-dependencies.sh
echo 'R install' ( sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9 echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee -a /etc/apt/sources.list sudo apt-get update && sudo apt-get install r-base r-base-dev -y sudo Rscript -e "install.packages('optparse', r...
echo 'R install' ( sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9 echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee -a /etc/apt/sources.list sudo apt-get update && sudo apt-get install r-base r-base-dev -y sudo Rscript -e "install.packages('optparse', r...
Add install R package to travis install dependencies
Add install R package to travis install dependencies
Shell
mit
lonsbio/biotool,drpowell/biotool,lonsbio/biotool,drpowell/biotool,biotool-paper/biotool,lonsbio/biotool,biotool-paper/biotool,drpowell/biotool,drpowell/biotool,drpowell/biotool,biotool-paper/biotool,drpowell/biotool,drpowell/biotool,biotool-paper/biotool,biotool-paper/biotool,lonsbio/biotool,biotool-paper/biotool,drpow...
shell
## Code Before: echo 'R install' ( sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9 echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee -a /etc/apt/sources.list sudo apt-get update && sudo apt-get install r-base r-base-dev -y sudo Rscript -e "install.packag...
7f3314d58bb457a3742d6ab1b0336d13450ddffa
prepare.rb
prepare.rb
require "eregex" require "fileutils" version = "200" prepared_dir = "../Tiles_#{version}" FileUtils.rm_r("#{prepared_dir}", :verbose => true) FileUtils.cp_r("./", "#{prepared_dir}", :verbose => true) FileUtils.rm_r(Dir.glob("#{prepared_dir}/**/*.{psd}"), :verbose => true) FileUtils.rm(Dir.glob("#{prepared_dir}/**/.D...
require "eregex" require "fileutils" version = "200" prepared_dir = "../Tiles_#{version}" FileUtils.rm_r("#{prepared_dir}", :verbose => true) FileUtils.cp_r("./", "#{prepared_dir}", :verbose => true) FileUtils.rm_r(Dir.glob("#{prepared_dir}/**/*.{psd}"), :verbose => true) FileUtils.rm(Dir.glob("#{prepared_dir}/**/.D...
Replace JavaScript references in HTML and JSON files.
Replace JavaScript references in HTML and JSON files.
Ruby
mit
AntarcticApps/Tiles,AntarcticApps/Tiles
ruby
## Code Before: require "eregex" require "fileutils" version = "200" prepared_dir = "../Tiles_#{version}" FileUtils.rm_r("#{prepared_dir}", :verbose => true) FileUtils.cp_r("./", "#{prepared_dir}", :verbose => true) FileUtils.rm_r(Dir.glob("#{prepared_dir}/**/*.{psd}"), :verbose => true) FileUtils.rm(Dir.glob("#{pre...
8cac33e893a87a72b3e30ef82b522de23884a3af
README.md
README.md
![Unzip Extension for iOS 8](demo.gif) This was going to become a real product until I found out that [iOS 7 added native support for ZIP files](http://www.macworld.com/article/2049370/ios-7-adds-support-for-zipped-attachments-in-mail-messages-with-quick-look.html). Nonetheless, it's a good example of how action exte...
![Unzip Extension for iOS 8](demo.gif) This was going to become a real product until I found out that [iOS 7 added native support for ZIP files](http://www.macworld.com/article/2049370/ios-7-adds-support-for-zipped-attachments-in-mail-messages-with-quick-look.html). Nonetheless, it's a good example of how action exte...
Add a note about the icons
Add a note about the icons
Markdown
mit
indragiek/Unzip
markdown
## Code Before: ![Unzip Extension for iOS 8](demo.gif) This was going to become a real product until I found out that [iOS 7 added native support for ZIP files](http://www.macworld.com/article/2049370/ios-7-adds-support-for-zipped-attachments-in-mail-messages-with-quick-look.html). Nonetheless, it's a good example of...
0f88370195bd68d45fdaa30b7c108018bde04e96
lib/ar_transaction_changes.rb
lib/ar_transaction_changes.rb
require "ar_transaction_changes/version" module ArTransactionChanges if (ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR >= 2) || ActiveRecord::VERSION::MAJOR > 4 def _run_create_callbacks ret = super store_transaction_changed_attributes if ret != false ret end def _r...
require "ar_transaction_changes/version" module ArTransactionChanges if ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR == 2 && ActiveRecord::VERSION::TINY != 3 def _run_create_callbacks ret = super store_transaction_changed_attributes if ret != false ret end def _run...
Fix compatibility with rails 4.2.3
Fix compatibility with rails 4.2.3
Ruby
mit
dylanahsmith/ar_transaction_changes
ruby
## Code Before: require "ar_transaction_changes/version" module ArTransactionChanges if (ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR >= 2) || ActiveRecord::VERSION::MAJOR > 4 def _run_create_callbacks ret = super store_transaction_changed_attributes if ret != false ret ...
b117902c174ab0ee21150163d00d3d23ddb7b29d
tests/draft4/pattern.json
tests/draft4/pattern.json
[ { "description": "pattern validation", "schema": {"pattern": "^a*$"}, "tests": [ { "description": "a matching pattern is valid", "data": "aaa", "valid": true }, { "description": "a non-match...
[ { "description": "pattern validation", "schema": {"pattern": "^a*$"}, "tests": [ { "description": "a matching pattern is valid", "data": "aaa", "valid": true }, { "description": "a non-match...
Add a test that checks for implicit anchoring
Add a test that checks for implicit anchoring
JSON
mit
neomadara/JSON-Schema-Test-Suite,epoberezkin/JSON-Schema-Test-Suite,Relequestual/JSON-Schema-Test-Suite,atomiqio/json-schema-test-suite,moander/JSON-Schema-Test-Suite,atomiqio/json-schema-test-suite,json-schema-org/JSON-Schema-Test-Suite,WHenderson/ex-json-schema,epoberezkin/JSON-Schema-Test-Suite,WHenderson/ex-json-sc...
json
## Code Before: [ { "description": "pattern validation", "schema": {"pattern": "^a*$"}, "tests": [ { "description": "a matching pattern is valid", "data": "aaa", "valid": true }, { "descriptio...
fc3bcf708ca9882877c670792f93ca2d1c6cd69c
rocketmq-example/src/main/java/com/alibaba/rocketmq/example/verify/SelectPartition.java
rocketmq-example/src/main/java/com/alibaba/rocketmq/example/verify/SelectPartition.java
package com.alibaba.rocketmq.example.verify; import com.alibaba.rocketmq.common.UtilAll; import org.apache.commons.cli.*; public class SelectPartition { public static void main(String[] args) throws ParseException { Options options = new Options(); Option option = new Option("p", "path", true, "P...
package com.alibaba.rocketmq.example.verify; import com.alibaba.rocketmq.common.UtilAll; import org.apache.commons.cli.*; public class SelectPartition { public static void main(String[] args) throws ParseException { Options options = new Options(); Option option = new Option("p", "path", true, "P...
Add test to show disk usage ratio per partition.
Add test to show disk usage ratio per partition.
Java
apache-2.0
lizhanhui/Alibaba_RocketMQ,lizhanhui/Alibaba_RocketMQ,lizhanhui/Alibaba_RocketMQ
java
## Code Before: package com.alibaba.rocketmq.example.verify; import com.alibaba.rocketmq.common.UtilAll; import org.apache.commons.cli.*; public class SelectPartition { public static void main(String[] args) throws ParseException { Options options = new Options(); Option option = new Option("p", ...
b7d22e096ceb462a6b71f9ae99bbbf01d96c102a
install.html
install.html
<html> <body> <p>Farsi Flash Cards Installation Page</p> <script> // This URL must be a full url. var manifestUrl = 'http://thomshutt.github.io/farsi-flash-cards/manifest.webapp'; var req = navigator.mozApps.installPackage(manifestUrl); req.onsuccess = function() { alert("App I...
<html> <body> <p>Farsi Flash Cards Installation Page</p> <p id="error_msg"></p> <script> // This URL must be a full url. var manifestUrl = 'http://thomshutt.github.io/farsi-flash-cards/manifest.webapp'; var req = navigator.mozApps.installPackage(manifestUrl); req.onsuccess = functi...
Write out actual error message to document
Write out actual error message to document
HTML
apache-2.0
thomshutt/farsi-flash-cards,thomshutt/farsi-flash-cards,thomshutt/farsi-flash-cards
html
## Code Before: <html> <body> <p>Farsi Flash Cards Installation Page</p> <script> // This URL must be a full url. var manifestUrl = 'http://thomshutt.github.io/farsi-flash-cards/manifest.webapp'; var req = navigator.mozApps.installPackage(manifestUrl); req.onsuccess = function() { ...
d9130541f3e1d53422a9cb89a8829e178e41398b
app/views/users/show.html.erb
app/views/users/show.html.erb
<p id='us_name'><%= @user.name %></p> <div class="user_show"> <ul> <li><%= image_tag @user.avatar, :id => 'us_avatar' %></li> <li class='user_info'><%= @user.age %></li> <li class='user_info'><%= @user.location %></li> </ul> </div> <p class='us_title'>Questions</p> <div class="user_show"> <% @user.questions...
<p id='us_name'><%= @user.name %></p> <div class="user_show"> <ul> <li><%= image_tag @user.avatar, :id => 'us_avatar' %></li> <li class='user_info'><%= @user.age %></li> <li class='user_info'><%= @user.location %></li> </ul> </div> <p class='us_title'>Questions</p> <div class="user_show"> <% @user.questions...
Put question and answer links on user_index page
Put question and answer links on user_index page
HTML+ERB
mit
kevalwell/StackOverflow,kevalwell/StackOverflow,kevalwell/StackOverflow
html+erb
## Code Before: <p id='us_name'><%= @user.name %></p> <div class="user_show"> <ul> <li><%= image_tag @user.avatar, :id => 'us_avatar' %></li> <li class='user_info'><%= @user.age %></li> <li class='user_info'><%= @user.location %></li> </ul> </div> <p class='us_title'>Questions</p> <div class="user_show"> <%...
92cb3dabae59087046862e623f56421b65c97161
app/controllers/travel_advice_controller.rb
app/controllers/travel_advice_controller.rb
class TravelAdviceController < ApplicationController before_filter :set_expiry def country @country = params[:slug].dup @publication = fetch_artefact_for_country(@country) part = params.fetch(:part) { @publication.parts.first.slug } @part = @publication.find_part(part) unless @part redi...
class TravelAdviceController < ApplicationController before_filter :set_expiry def country @country = params[:slug].dup @publication, @artefact = fetch_artefact_and_publication_for_country(@country) part = params.fetch(:part) { @publication.parts.first.slug } @part = @publication.find_part(part) ...
Change fetch method to return both artefact and publication
Change fetch method to return both artefact and publication
Ruby
mit
alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend
ruby
## Code Before: class TravelAdviceController < ApplicationController before_filter :set_expiry def country @country = params[:slug].dup @publication = fetch_artefact_for_country(@country) part = params.fetch(:part) { @publication.parts.first.slug } @part = @publication.find_part(part) unless ...
1889e1c5485a8e1994a2ee72046830891fb61f63
app/views/welcome/_upcoming_work.html.haml
app/views/welcome/_upcoming_work.html.haml
%h2 Upcoming Work .row .small-12.columns %p These are the items which we plan on working on very soon. %ul %li Set up logrotate %li Set up https encryption as the default/only %li automatic e-mail to Robin whenever new translations are stored by translators (so that they can be revie...
%h2 Upcoming Work .row .small-12.columns %p These are the items which we plan on working on very soon. %ul %li Set up https encryption as the default/only %li automatic e-mail to Robin whenever new translations are stored by translators (so that they can be reviewed and deployed) %li...
Allow Sign-Up to redirect to Sign-in if we already know this user
Allow Sign-Up to redirect to Sign-in if we already know this user
Haml
mit
rdunlop/unicycling-registration,rdunlop/unicycling-registration,rdunlop/unicycling-registration,rdunlop/unicycling-registration
haml
## Code Before: %h2 Upcoming Work .row .small-12.columns %p These are the items which we plan on working on very soon. %ul %li Set up logrotate %li Set up https encryption as the default/only %li automatic e-mail to Robin whenever new translations are stored by translators (so that t...
f70155c435841c98a93c1f14cadaf54d4d47a98b
test-integration/default.yml
test-integration/default.yml
- description: Command help should display help information command: ../../../../../bin/roombox --help exitcode: 0 output: 'Usage: roombox'
- params: roombox: ../../../../../bin/roombox - description: Command help should display help information command: '{roombox} --help' exitcode: 0 output: 'Usage: roombox'
Simplify integration test by using params.
Simplify integration test by using params.
YAML
mit
cliffano/roombox
yaml
## Code Before: - description: Command help should display help information command: ../../../../../bin/roombox --help exitcode: 0 output: 'Usage: roombox' ## Instruction: Simplify integration test by using params. ## Code After: - params: roombox: ../../../../../bin/roombox - description: Command help sho...
924593fd2c8eccad6c3896462185c6f79e1814af
lib/browser-update/index.js
lib/browser-update/index.js
/** * Module dependencies. */ var config = require('lib/config'); var jade = require('jade'); var path = require('path'); var resolve = path.resolve; var t = require('t-component'); var html = jade.renderFile(resolve(__dirname, 'index.jade'), { config: config, t: t }); var express = require('express'); var app = mod...
/** * Module dependencies. */ var config = require('lib/config'); var jade = require('jade'); var path = require('path'); var resolve = path.resolve; var t = require('t-component'); var html = jade.renderFile(resolve(__dirname, 'index.jade'), { config: config, t: t }); var express = require('express'); var app = mod...
Fix ISE if the UA header is missing
Fix ISE if the UA header is missing
JavaScript
mit
atlatszo/evoks,atlatszo/evoks
javascript
## Code Before: /** * Module dependencies. */ var config = require('lib/config'); var jade = require('jade'); var path = require('path'); var resolve = path.resolve; var t = require('t-component'); var html = jade.renderFile(resolve(__dirname, 'index.jade'), { config: config, t: t }); var express = require('express'...
c297483328ab0b4c77c87ee51b86112c364c4407
src/app/move-popup/press-tip.directive.js
src/app/move-popup/press-tip.directive.js
import Tooltip from 'tooltip.js'; import './press-tip.scss'; export function PressTip() { 'ngInject'; return { restrict: 'A', link($scope, $element, $attrs) { let tooltip = null; function showTip() { if (!tooltip) { let title = $attrs.pressTip; if ($attrs.pressTipT...
import Tooltip from 'tooltip.js'; import './press-tip.scss'; export function PressTip() { 'ngInject'; return { restrict: 'A', link($scope, $element, $attrs) { let tooltip = null; let timer = null; function showTip() { if (!tooltip) { let title = $attrs.pressTip; ...
Make press-tip work on hover
Make press-tip work on hover
JavaScript
mit
chrisfried/DIM,delphiactual/DIM,delphiactual/DIM,bhollis/DIM,delphiactual/DIM,bhollis/DIM,delphiactual/DIM,chrisfried/DIM,DestinyItemManager/DIM,bhollis/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM,bhollis/DIM
javascript
## Code Before: import Tooltip from 'tooltip.js'; import './press-tip.scss'; export function PressTip() { 'ngInject'; return { restrict: 'A', link($scope, $element, $attrs) { let tooltip = null; function showTip() { if (!tooltip) { let title = $attrs.pressTip; if (...
d5866009d60c768b5d0579de528868193c31c62e
Tests/MediaTestCase.php
Tests/MediaTestCase.php
<?php namespace Modules\Media\Tests; use Orchestra\Testbench\TestCase; abstract class MediaTestCase extends TestCase { protected function getPackageProviders($app) { return [ 'Modules\Media\Providers\MediaServiceProvider', 'Pingpong\Modules\ModulesServiceProvider', ...
<?php namespace Modules\Media\Tests; use Orchestra\Testbench\TestCase; abstract class MediaTestCase extends TestCase { protected function getPackageProviders($app) { return [ 'Modules\Media\Providers\MediaServiceProvider', 'Pingpong\Modules\ModulesServiceProvider', ...
Set the app base path
Set the app base path
PHP
mit
zedee/Media,oimken/Media,oimken/Media,pixelfusion/Media,MentallyFriendly/Media,AsgardCms/Media,ruscon/Media,AsgardCms/Media,ruscon/Media,zedee/Media,gabva/Media,clemir/Media,mikemand/Media,pixelfusion/Media,oimken/Media,mikemand/Media,MentallyFriendly/Media,pixelfusion/Media,gabva/Media,mikemand/Media,zedee/Media,clemi...
php
## Code Before: <?php namespace Modules\Media\Tests; use Orchestra\Testbench\TestCase; abstract class MediaTestCase extends TestCase { protected function getPackageProviders($app) { return [ 'Modules\Media\Providers\MediaServiceProvider', 'Pingpong\Modules\ModulesServiceProvide...
0701e34c76a4ea55b1334c9b48c88fd346f49fa2
nazs/apps.py
nazs/apps.py
from django.apps import AppConfig import os import pkg_resources class NAZSConfig(AppConfig): name = 'nazs' def ready(self): from django.core import management from django.conf import settings from .sudo import set_euid set_euid() # Sync volatile db and set permiss...
from django.apps import AppConfig import pkg_resources class NAZSConfig(AppConfig): name = 'nazs' def ready(self): from .sudo import set_euid set_euid() # Load all modules for app in pkg_resources.iter_entry_points('nazs.app'): __import__(app.module_name + '.mod...
Stop auto creation of shm database
Stop auto creation of shm database
Python
agpl-3.0
exekias/droplet,exekias/droplet,exekias/droplet
python
## Code Before: from django.apps import AppConfig import os import pkg_resources class NAZSConfig(AppConfig): name = 'nazs' def ready(self): from django.core import management from django.conf import settings from .sudo import set_euid set_euid() # Sync volatile db...
ee042653dee9feda76cdd509396aa22686fb2e3c
src/Components/ContextMenu.css
src/Components/ContextMenu.css
.context-menu { position: absolute; top: 5px; right: -10px; cursor: pointer; font-size: 25px; color: green; }
.context-menu { position: relative; cursor: pointer; font-size: 25px; color: green; position: absolute; top: 5px; right: -10px; } .context-menu ul { position: absolute; top: 5px; right: 0px; list-style-type: none; font-size: 15px; color: white; z-index: 99; } .context-menu li { backgroun...
Add some very basic styling for menu entries
Add some very basic styling for menu entries
CSS
mit
schultyy/spreadsheet,schultyy/spreadsheet
css
## Code Before: .context-menu { position: absolute; top: 5px; right: -10px; cursor: pointer; font-size: 25px; color: green; } ## Instruction: Add some very basic styling for menu entries ## Code After: .context-menu { position: relative; cursor: pointer; font-size: 25px; color: green; position: a...
832078efd47a5a43463bf554110075f8b3a68384
setup.cfg
setup.cfg
[build_sphinx] source-dir = docs build-dir = docs/_build all_files = 1 [upload_docs] upload-dir = docs/_build/html show-response = 1 [pytest] minversion = 2.2 norecursedirs = build docs/_build doctest_plus = enabled [ah_bootstrap] auto_use = False [metadata] package_name = extruder description = A couple of scripts...
[build_sphinx] source-dir = docs build-dir = docs/_build all_files = 1 [upload_docs] upload-dir = docs/_build/html show-response = 1 [pytest] minversion = 2.2 norecursedirs = build docs/_build doctest_plus = enabled [ah_bootstrap] auto_use = False [metadata] package_name = extruder description = A couple of scripts...
Add entry points for scripts
Add entry points for scripts
INI
bsd-3-clause
astropy/conda-build-tools,astropy/conda-build-tools
ini
## Code Before: [build_sphinx] source-dir = docs build-dir = docs/_build all_files = 1 [upload_docs] upload-dir = docs/_build/html show-response = 1 [pytest] minversion = 2.2 norecursedirs = build docs/_build doctest_plus = enabled [ah_bootstrap] auto_use = False [metadata] package_name = extruder description = A c...
d5e066b87d6fed214666c95118cdb84e101f873c
.travis.yml
.travis.yml
language: csharp solution: Rexcfnghk.MarkSixParser.sln script: - ./build.sh Pack -ev ci before_install: - chmod +x ./build.sh notifications: slack: voyagers:oZDhMiQge4pAZ6hCEHvvLCMA
language: csharp script: - ./build.sh Pack -ev ci before_install: - chmod +x ./build.sh notifications: slack: voyagers:oZDhMiQge4pAZ6hCEHvvLCMA
Remove solution value from Travis config
Remove solution value from Travis config
YAML
mit
rexcfnghk/marksix-parser
yaml
## Code Before: language: csharp solution: Rexcfnghk.MarkSixParser.sln script: - ./build.sh Pack -ev ci before_install: - chmod +x ./build.sh notifications: slack: voyagers:oZDhMiQge4pAZ6hCEHvvLCMA ## Instruction: Remove solution value from Travis config ## Code After: language: csharp script: - ./build.sh Pac...
c82360f076fa3c900a230232e8cae54305318c8b
app/views/custom/projects/project_faqs/new.html.slim
app/views/custom/projects/project_faqs/new.html.slim
.bootstrap-form = semantic_form_for [@project, ProjectFaq.new] do |form| = form.inputs do = form.input :title, as: :string = form.input :answer, as: :text, input_html: {rows: 10} = render partial: 'projects/formatting_tips' = form.actions do = form.submit 'Create', class: "btn"
.bootstrap-form = semantic_form_for [@project, ProjectFaq.new] do |form| = form.inputs do = form.input :title, as: :string = form.input :answer, as: :text, input_html: {rows: 10} = form.actions do = form.submit 'Create', class: "btn"
Remove formatting tips on project faqs page
Remove formatting tips on project faqs page
Slim
mit
jinutm/silvfinal,jinutm/silverclass,MicroPasts/micropasts-crowdfunding,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,jinutm/silveralms.com,raksonibs/raimcrowd,gustavoguichard/neighborly,jinutm/silveralms.com,jinutm/silverme,jinutm/silverme,jinutm/silverclass,raksonibs/raimcrowd,jinutm/silverprod,jinutm/silverm...
slim
## Code Before: .bootstrap-form = semantic_form_for [@project, ProjectFaq.new] do |form| = form.inputs do = form.input :title, as: :string = form.input :answer, as: :text, input_html: {rows: 10} = render partial: 'projects/formatting_tips' = form.actions do = form.submit 'Create', clas...
3912afaf9e069ae914c535af21155d10da930494
tests/unit/utils/test_translations.py
tests/unit/utils/test_translations.py
import subprocess import os from flask import current_app from babel.support import Translations, NullTranslations from flaskbb.utils.translations import FlaskBBDomain from flaskbb.extensions import plugin_manager def _compile_translations(): PLUGINS_FOLDER = os.path.join(current_app.root_path, "plugins") tra...
import subprocess import os from flask import current_app from babel.support import Translations, NullTranslations from flaskbb.utils.translations import FlaskBBDomain from flaskbb.extensions import plugin_manager def _remove_compiled_translations(): translations_folder = os.path.join(current_app.root_path, "tran...
Remove the compiled translations for testing
Remove the compiled translations for testing
Python
bsd-3-clause
zky001/flaskbb,realityone/flaskbb,dromanow/flaskbb,qitianchan/flaskbb,realityone/flaskbb,SeanChen0617/flaskbb,SeanChen0617/flaskbb-1,SeanChen0617/flaskbb,zky001/flaskbb,emile2016/flaskbb,China-jp/flaskbb,dromanow/flaskbb,lucius-feng/flaskbb,dromanow/flaskbb,SeanChen0617/flaskbb-1,qitianchan/flaskbb,emile2016/flaskbb,re...
python
## Code Before: import subprocess import os from flask import current_app from babel.support import Translations, NullTranslations from flaskbb.utils.translations import FlaskBBDomain from flaskbb.extensions import plugin_manager def _compile_translations(): PLUGINS_FOLDER = os.path.join(current_app.root_path, "p...
eb5921ebe3848b5b3a33c3e2ce9c40847468167c
examples/04-custom-state/README.md
examples/04-custom-state/README.md
If you want to use different state handling pattern (e.g. Flux stores) than React component state then you also must handle the state propagation manually. [LiveReactload API](https://www.npmjs.com/package/livereactload-api) provides means to it. **TODO: update docs**
If you want to use different state handling pattern (e.g. Flux stores) than React component state then you also must handle the state propagation manually. [LiveReactload API](https://www.npmjs.com/package/livereactload-api) provides means to it. The basic idea is to store the most recent state with `setState` so ...
Update custom state example docs
Update custom state example docs
Markdown
mit
megalithic/livereactload,milankinen/livereactload,michaelBenin/livereactload,rofrol/livereactload,michaelBenin/livereactload
markdown
## Code Before: If you want to use different state handling pattern (e.g. Flux stores) than React component state then you also must handle the state propagation manually. [LiveReactload API](https://www.npmjs.com/package/livereactload-api) provides means to it. **TODO: update docs** ## Instruction: Update custom s...
8a89ea553494c0ca429a57f792a097adb1f25ce2
Sources/ObjectiveChain.h
Sources/ObjectiveChain.h
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // //
// // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // // #import "OCAConnection.h" #import "OCAProducer.h"
Add first classes to umbrella header
Add first classes to umbrella header
C
mit
Tricertops/Objective-Chain,iMartinKiss/Objective-Chain
c
## Code Before: // // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // // ## Instruction: Add first classes to umbrella header ## Code After: // // ObjectiveChain.h // Objective-Chain // // Created by Martin Kiss on 30.12.13. // // #import "OCAConnection.h" #import "OCAProduce...
3938bdc27da1b389f452aff8a19f317322f11fe6
src/views/live.html
src/views/live.html
{% extends 'base.html' %} {% block content %} <div class="live-container"> <div class="live-bar"> <div class="live-spotify-widget-cropper"> <iframe class="live-spotify-widget" src="https://embed.spotify.com/?uri=spotify:user:11124594727:playlist:5ZsAzB4swZL2Et1yaOlKAJ" width="300" height="80" frameborder...
{% extends 'base.html' %} {% block content %} <div class="live-container"> <div class="live-bar"> <div class="live-spotify-widget-cropper"> <iframe class="live-spotify-widget" src="https://embed.spotify.com/?uri=spotify:user:11124594727:playlist:5ZsAzB4swZL2Et1yaOlKAJ" width="300" height="80" frameborder...
Fix a missing <script> tag
Fix a missing <script> tag
HTML
mit
hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website
html
## Code Before: {% extends 'base.html' %} {% block content %} <div class="live-container"> <div class="live-bar"> <div class="live-spotify-widget-cropper"> <iframe class="live-spotify-widget" src="https://embed.spotify.com/?uri=spotify:user:11124594727:playlist:5ZsAzB4swZL2Et1yaOlKAJ" width="300" height=...
e15e73cdb04d63497e4341403a7cc0a2641114b8
views/header.jade
views/header.jade
script(src="http://code.jquery.com/jquery-2.0.3.min.js") script(src="/bootstrap/js/bootstrap.js") script(src="/javascripts/ga.js") script(src="/javascripts/twitter-share.js") script(src="/javascripts/holder.js") script(src="/javascripts/cloudcv.js") span(id="forkongithub") a(href="https://github.com/BloodA...
span(id="forkongithub") a(href="https://github.com/BloodAxe/CloudCV") Fork me on GitHub div.navbar.navbar-fixed-top.navbar-inverse div.container a.navbar-brand(href="/") CloudCV ul.nav.navbar-nav.navbar-right li a(href="http://ua.linkedin.com/in/cvt...
Move scripts to the end of the page
Move scripts to the end of the page
Jade
bsd-3-clause
BloodAxe/CloudCV,BloodAxe/CloudCV
jade
## Code Before: script(src="http://code.jquery.com/jquery-2.0.3.min.js") script(src="/bootstrap/js/bootstrap.js") script(src="/javascripts/ga.js") script(src="/javascripts/twitter-share.js") script(src="/javascripts/holder.js") script(src="/javascripts/cloudcv.js") span(id="forkongithub") a(href="https://github.co...
d02dc294009d7d0037922938605e7da41416f54a
build/dependencies/gradle.properties
build/dependencies/gradle.properties
kotlinPluginBuild=1.1.2-eap-69-IJ2017.2-1:EAP-1.1 jetSignBuild=42.30 jdkBuild=u152b819.1
kotlinPluginBuild=1.1.1-release-IJ2017.1-1 jetSignBuild=42.30 jdkBuild=u152b819.1
Revert to investigate why compilation fails
Revert to investigate why compilation fails
INI
apache-2.0
apixandru/intellij-community,asedunov/intellij-community,allotria/intellij-community,allotria/intellij-community,ibinti/intellij-community,vvv1559/intellij-community,xfournet/intellij-community,xfournet/intellij-community,vvv1559/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,ThiagoGarciaAl...
ini
## Code Before: kotlinPluginBuild=1.1.2-eap-69-IJ2017.2-1:EAP-1.1 jetSignBuild=42.30 jdkBuild=u152b819.1 ## Instruction: Revert to investigate why compilation fails ## Code After: kotlinPluginBuild=1.1.1-release-IJ2017.1-1 jetSignBuild=42.30 jdkBuild=u152b819.1
1e0e180c569366def74863d95a98bd147d7bc4d9
public/js/controllers/createpage.js
public/js/controllers/createpage.js
angular.module('createPageController.controller', []) .controller('createPageController', function($scope, $http, $routeParams, $location, pageService) { $scope.message = "first"; $scope.name = $routeParams.name; $scope.createPage = function(pass) { pageService.createPage($routeParams.name, pass).s...
angular.module('createPageController.controller', []) .controller('createPageController', function($scope, $http, $routeParams, $location, pageService) { $scope.message = "first"; $scope.name = $routeParams.name; pageService.getPage($routeParams.name).success(function() { $location.path('/' + $rout...
Create page will redirect to full page if already created
Create page will redirect to full page if already created
JavaScript
mit
coffee-cup/pintical,coffee-cup/pintical,coffee-cup/pintical
javascript
## Code Before: angular.module('createPageController.controller', []) .controller('createPageController', function($scope, $http, $routeParams, $location, pageService) { $scope.message = "first"; $scope.name = $routeParams.name; $scope.createPage = function(pass) { pageService.createPage($routePara...
8d2b35f374a8ce09a47449ecb48e90900a6a789d
portfolio/frontend/src/containers/SGonksPlatform/Competition/Competition.module.css
portfolio/frontend/src/containers/SGonksPlatform/Competition/Competition.module.css
.Competition { width: 100%; height: 100%; } .RankingInfoContainer { }
.Competition { margin: auto; width: 97%; height: 97%; display: flex; flex-direction: row; align-items: space-between; justify-content: center; } .RankingInfoContainer { width: 68%; height: 100%; margin-right: 1.5%; display: flex; flex-direction: column; justify-content: space-between; } .CompInfoContaine...
Write overall layout of competition page
Write overall layout of competition page
CSS
apache-2.0
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
css
## Code Before: .Competition { width: 100%; height: 100%; } .RankingInfoContainer { } ## Instruction: Write overall layout of competition page ## Code After: .Competition { margin: auto; width: 97%; height: 97%; display: flex; flex-direction: row; align-items: space-between; justify-content: center; } .Ran...
e9d3dbf38aa4e46ecf3628f5f5d30f78dc8559d0
.travis.yml
.travis.yml
sudo: false language: node_js before_install: - npm install npm -g node_js: - "4" - "5" - "6" - "7" env: - TEST_SUITE=test script: npm run-script $TEST_SUITE
sudo: false language: node_js before_install: - npm install npm -g node_js: - "lts/*" - "9" - "10" env: - TEST_SUITE=test script: npm run-script $TEST_SUITE
Fix Travis by removing v4 and v5
Fix Travis by removing v4 and v5
YAML
isc
weilu/bip39,bitcoinjs/bip39,bitcoinjs/bip39
yaml
## Code Before: sudo: false language: node_js before_install: - npm install npm -g node_js: - "4" - "5" - "6" - "7" env: - TEST_SUITE=test script: npm run-script $TEST_SUITE ## Instruction: Fix Travis by removing v4 and v5 ## Code After: sudo: false language: node_js before_install: - npm install npm -g...
7b3e6a03279e775974dd43f7ff643f170fc08d1c
Stripe/STPLocalizationUtils.h
Stripe/STPLocalizationUtils.h
// // STPLocalizedStringUtils.h // Stripe // // Created by Brian Dorfman on 8/11/16. // Copyright © 2016 Stripe, Inc. All rights reserved. // #import <Foundation/Foundation.h> #define STPLocalizedString(key, comment) \ [STPLocalizationUtils localizedStripeStringForKey:(key)] @interface STPLocalizationUtils : NSO...
// // STPLocalizationUtils.h // Stripe // // Created by Brian Dorfman on 8/11/16. // Copyright © 2016 Stripe, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface STPLocalizationUtils : NSObject /** Acts like NSLocalizedString but tries to find the string in the Stripe bundle first if poss...
Change to use inline function instead of macro.
Change to use inline function instead of macro. This makes FauxPas's localization checks work properly.
C
mit
stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,stripe/stripe-ios,fbernardo/stripe-ios,fbernardo/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,fbernardo/stripe-ios,NewAmsterdamLabs/stripe-ios,stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,fbernardo/stripe-ios
c
## Code Before: // // STPLocalizedStringUtils.h // Stripe // // Created by Brian Dorfman on 8/11/16. // Copyright © 2016 Stripe, Inc. All rights reserved. // #import <Foundation/Foundation.h> #define STPLocalizedString(key, comment) \ [STPLocalizationUtils localizedStripeStringForKey:(key)] @interface STPLocaliz...
0fd61e28b2977c1e4cdbbb99ae69671ba747c561
app/Models/Player.php
app/Models/Player.php
<?php namespace App\Models; class Player extends \Pragma\ORM\Model { const GENOME_HOST = 0; const GENOME_NORMAL = 1; const GENOME_RESISTANT = 2; private $name; private $keyId; private $genome; private $role; private $paralysed; private $mutated; private $alive; ...
<?php namespace App\Models; class Player extends \Pragma\ORM\Model { const GENOME_HOST = 0; const GENOME_NORMAL = 1; const GENOME_RESISTANT = 2; private $name; private $keyId; private $genome; private $role; private $paralysed; private $mutated; private $alive; ...
Test genome param against class constants
Test genome param against class constants
PHP
mit
gitus/sporz,pips-/sporz
php
## Code Before: <?php namespace App\Models; class Player extends \Pragma\ORM\Model { const GENOME_HOST = 0; const GENOME_NORMAL = 1; const GENOME_RESISTANT = 2; private $name; private $keyId; private $genome; private $role; private $paralysed; private $mutated; priv...
78e7c80d4c6ace44896ab77f1025b8ce7f9f1368
app/Http/Controllers/TaxOfficeNameTrait.php
app/Http/Controllers/TaxOfficeNameTrait.php
<?php /* * This file is part of Bens Penhorados, an undergraduate capstone project. * * (c) Fábio Santos <ffsantos92@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Http\Controllers; use App\Models\Attri...
<?php /* * This file is part of Bens Penhorados, an undergraduate capstone project. * * (c) Fábio Santos <ffsantos92@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Http\Controllers; /** * This is the t...
Fix phpdocs; Remove unused import
Fix phpdocs; Remove unused import
PHP
mit
ffsantos92/bens-penhorados,ffsantos92/bens-penhorados,ffsantos92/bens-penhorados
php
## Code Before: <?php /* * This file is part of Bens Penhorados, an undergraduate capstone project. * * (c) Fábio Santos <ffsantos92@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Http\Controllers; use ...
e29d5b8858ae12f4ddf8a3b1d04fc631fc1ddec1
src/iota/lib.rs
src/iota/lib.rs
//! Iota //! //! A highly customisable text editor built with modern hardware in mind. //! //! This module contains all you need to create an `iota` executable. #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] #![warn(missing_docs)] #![feature(concat_idents)] #![feature(st...
//! Iota //! //! A highly customisable text editor built with modern hardware in mind. //! //! This module contains all you need to create an `iota` executable. #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] #![warn(missing_docs)] #[cfg(feature="syntax-highlighting")] e...
Move back to stable rust
Move back to stable rust
Rust
mit
gchp/iota
rust
## Code Before: //! Iota //! //! A highly customisable text editor built with modern hardware in mind. //! //! This module contains all you need to create an `iota` executable. #![cfg_attr(feature="clippy", feature(plugin))] #![cfg_attr(feature="clippy", plugin(clippy))] #![warn(missing_docs)] #![feature(concat_idents...
cb0db8a40c43b6f863efe1e14e5d1ff9cdf81e3c
server/nlp.js
server/nlp.js
var service=require('./services/service.js'); var Client = require('node-rest-client').Client; module.exports= { getResponse :function(message,callback){ processMessage(message,function(processed){ if(processed){ if(processed.intent!='none'){ service[processe...
var service=require('./services/service.js'); var Client = require('node-rest-client').Client; module.exports= { getResponse :function(message,callback){ processMessage(message,function(processed){ if(processed){ if(processed.intent!='none'){ service[processe...
Remove id,subscription key for LUIS
Remove id,subscription key for LUIS
JavaScript
apache-2.0
thayumaanavan/electron-chatbot-template,thayumaanavan/electron-chatbot-template
javascript
## Code Before: var service=require('./services/service.js'); var Client = require('node-rest-client').Client; module.exports= { getResponse :function(message,callback){ processMessage(message,function(processed){ if(processed){ if(processed.intent!='none'){ ...
5232d2fd4ef1e90fa328d3851925a9d20e8d34fc
tests/dummy/app/templates/index.hbs
tests/dummy/app/templates/index.hbs
<h1 class="page-header">ivy-codemirror</h1> <div class="row"> <div class="col-sm-9"> {{ivy-codemirror lineNumbers=lineNumbers lineWrapping=lineWrapping mode=mode readOnly=readOnly smartIndent=smartIndent theme=theme value=value}} </div> <div class="col-sm-3"> <div class="form-group"> <label class=...
<h1 class="page-header">ivy-codemirror</h1> <div class="row"> <div class="col-sm-9"> {{ivy-codemirror lineNumbers=lineNumbers lineWrapping=lineWrapping mode=mode readOnly=readOnly smartIndent=smartIndent theme=theme value=value}} </div> <div class="col-sm-3"> <div class="form-group"> <label class=...
Fix deprecation warnings in dummy app.
Fix deprecation warnings in dummy app.
Handlebars
mit
HeroicEric/ivy-codemirror,IvyApp/ivy-codemirror,IvyApp/ivy-codemirror,HeroicEric/ivy-codemirror,mshafir/ivy-codemirror,mshafir/ivy-codemirror,mshafir/ivy-codemirror,HeroicEric/ivy-codemirror
handlebars
## Code Before: <h1 class="page-header">ivy-codemirror</h1> <div class="row"> <div class="col-sm-9"> {{ivy-codemirror lineNumbers=lineNumbers lineWrapping=lineWrapping mode=mode readOnly=readOnly smartIndent=smartIndent theme=theme value=value}} </div> <div class="col-sm-3"> <div class="form-group"> ...
07fec59c45da5f8d6582fb15da3368c19c955a0a
test/test_json.cpp
test/test_json.cpp
//#include "../pb2json.h" #include <pb2json.h> using namespace std; int main(int argc,char *argv[]) { // Test 1: read binary PB from a file and convert it to JSON ifstream fin("dump",ios::binary); fin.seekg(0,ios_base::end); size_t len = fin.tellg(); fin.seekg(0,ios_base::beg); char *buf = new char [len]; fi...
//#include "../pb2json.h" #include <pb2json.h> using namespace std; int main(int argc,char *argv[]) { // Test 1: read binary PB from a file and convert it to JSON ifstream fin("dump",ios::binary); fin.seekg(0,ios_base::end); size_t len = fin.tellg(); fin.seekg(0,ios_base::beg); char *buf = new char [len]; fi...
Add test translate protobuf object to json directly
Add test translate protobuf object to json directly
C++
mit
iguchunhui/pb2json,iguchunhui/pb2json,shafreeck/pb2json,shafreeck/pb2json
c++
## Code Before: //#include "../pb2json.h" #include <pb2json.h> using namespace std; int main(int argc,char *argv[]) { // Test 1: read binary PB from a file and convert it to JSON ifstream fin("dump",ios::binary); fin.seekg(0,ios_base::end); size_t len = fin.tellg(); fin.seekg(0,ios_base::beg); char *buf = new ...
d02e7d7d7685a7a8ba1e7ebf32913e8f503e98d1
TWLight/emails/templates/emails/comment_notification_editors-body-html.html
TWLight/emails/templates/emails/comment_notification_editors-body-html.html
{% load i18n %} {% comment %} Translator: This email is sent to users when they receive a comment on their application. Don't translate {{ partner }} or {{ app_url }}.{% endcomment %} {% blocktrans trimmed with partner=app.partner user=app.user %} Dear {{ user }}, Thank you for applying for access to {{ partner }} re...
{% load i18n %} {% comment %} Translator: This email is sent to users when they receive a comment on their application. Don't translate {{ user }}, {{ partner }} or {{ app_url }}.{% endcomment %} {% blocktrans trimmed with partner=app.partner user=app.user %} Dear {{ user }}, Thank you for applying for access to {{ p...
Add another tag not to be translated
Add another tag not to be translated
HTML
mit
WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight,WikipediaLibrary/TWLight
html
## Code Before: {% load i18n %} {% comment %} Translator: This email is sent to users when they receive a comment on their application. Don't translate {{ partner }} or {{ app_url }}.{% endcomment %} {% blocktrans trimmed with partner=app.partner user=app.user %} Dear {{ user }}, Thank you for applying for access to ...
03365dc3bf0f0d3a8bed074b8212a83092148325
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [0.0.3] - 2015-03-11 ### Added - include into payload the URI of the build for Semaphore ### Fixed - fix spec helper ENV allowing to update ENV for a test
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [0.0.4] - 2015-04-18 ### Fixed - fix SSL error on some platform by embedding bundle of root certs ## [0.0.3] - 2015-03-11 ### Added - include into payload the URI of the build for...
Add forgotten update of changelog for 0.0.4
Add forgotten update of changelog for 0.0.4
Markdown
mit
8thcolor/pullreview-coverage
markdown
## Code Before: All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [0.0.3] - 2015-03-11 ### Added - include into payload the URI of the build for Semaphore ### Fixed - fix spec helper ENV allowing to update ENV for a test ## Instr...
24821b5195d25be204d46971aaa1e5dd5af83477
tests/CMakeLists.txt
tests/CMakeLists.txt
file(GLOB TEST_SOURCE_PATHS "*.cpp") foreach(TEST_SOURCE_PATH ${TEST_SOURCE_PATHS}) get_filename_component(TEST_SOURCE_NAME ${TEST_SOURCE_PATH} NAME) string(REPLACE ".cpp" "" TEST_NAME ${TEST_SOURCE_NAME}) add_executable(${TEST_NAME} ${TEST_SOURCE_PATH}) target_link_libraries(${TEST_NAME} PRIVATE autocheck::aut...
function(add_test_from_target TARGET) add_test( NAME ${TARGET}_build COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target ${TARGET} ) add_test(NAME ${TARGET} COMMAND ${TARGET}) set_tests_properties(${TARGET} PROPERTIES DEPENDS ${TARGET}_build) endfunction(add_test_from_target TARGET) #...
Build tests only for ctest
Build tests only for ctest
Text
isc
thejohnfreeman/autocheck,thejohnfreeman/autocheck
text
## Code Before: file(GLOB TEST_SOURCE_PATHS "*.cpp") foreach(TEST_SOURCE_PATH ${TEST_SOURCE_PATHS}) get_filename_component(TEST_SOURCE_NAME ${TEST_SOURCE_PATH} NAME) string(REPLACE ".cpp" "" TEST_NAME ${TEST_SOURCE_NAME}) add_executable(${TEST_NAME} ${TEST_SOURCE_PATH}) target_link_libraries(${TEST_NAME} PRIVAT...
f1c14152364acd1bcadb775f622c7f3de6936b97
.github/workflows/awstest.yml
.github/workflows/awstest.yml
name: AWS Megatests # This workflow is triggered on PRs to the master branch. # It runs the -profile 'test' on AWS batch on: pull_request: branches: - 'master' release: types: [published] jobs: run-awstest: name: Run AWS test runs-on: ubuntu-latest steps: - name: Setup Miniconda ...
name: AWS Megatests # This workflow is triggered on PRs to the master branch. # It runs the -profile 'test' on AWS batch on: pull_request: branches: - master release: types: [published] jobs: run-awstest: name: Run AWS test runs-on: ubuntu-latest steps: - name: Setup Miniconda ...
Add nextflow tower properly as suggested
Add nextflow tower properly as suggested
YAML
mit
MaxUlysse/CAW,MaxUlysse/CAW,MaxUlysse/CAW
yaml
## Code Before: name: AWS Megatests # This workflow is triggered on PRs to the master branch. # It runs the -profile 'test' on AWS batch on: pull_request: branches: - 'master' release: types: [published] jobs: run-awstest: name: Run AWS test runs-on: ubuntu-latest steps: - name: Se...
13e96fced0341dfa2002c6de9a17ff241fa9cc81
packages/linter/src/rules/AmpImgUsesSrcSet.ts
packages/linter/src/rules/AmpImgUsesSrcSet.ts
import { Context } from "../index"; import { Rule } from "../rule"; const SVG_URL_PATTERN = /^[^?]+\.svg(\?.*)?$/i export class AmpImgUsesSrcSet extends Rule { async run(context: Context) { const $ = context.$; const incorrectImages = $("amp-img") .filter((_, e) => { const src = $(e).attr...
import { Context } from "../index"; import { Rule } from "../rule"; const SVG_URL_PATTERN = /^[^?]+\.svg(\?.*)?$/i const CHECKED_IMG_LAYOUTS = ["fill", "flex-item", "intrinsic", "responsive"]; export class AmpImgUsesSrcSet extends Rule { async run(context: Context) { const $ = context.$; const incorrectIm...
Change img srcset check messages and checked layouts
Change img srcset check messages and checked layouts
TypeScript
apache-2.0
ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox
typescript
## Code Before: import { Context } from "../index"; import { Rule } from "../rule"; const SVG_URL_PATTERN = /^[^?]+\.svg(\?.*)?$/i export class AmpImgUsesSrcSet extends Rule { async run(context: Context) { const $ = context.$; const incorrectImages = $("amp-img") .filter((_, e) => { const...
e4a24f8c0c74d8b64c900441d3354afc9522a5b2
README.markdown
README.markdown
These files are inspired by Zach Holman's dotfiles, with slight modifications. To learn more, [fork Zach's dotfiles](https://github.com/holman/dotfiles) and [read Zach's post about his thoughts on dotfiles](http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/). ## Requirements Requires vundle by gmarik [htt...
These files are inspired by Zach Holman's dotfiles, with slight modifications. To learn more, [fork Zach's dotfiles](https://github.com/holman/dotfiles) and [read Zach's post about his thoughts on dotfiles](http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/). ## Requirements Requires vundle by gmarik [htt...
Include links to Zach Holman dotfiles
Include links to Zach Holman dotfiles
Markdown
mit
dplarson/dotfiles,dplarson/dotfiles
markdown
## Code Before: These files are inspired by Zach Holman's dotfiles, with slight modifications. To learn more, [fork Zach's dotfiles](https://github.com/holman/dotfiles) and [read Zach's post about his thoughts on dotfiles](http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/). ## Requirements Requires vundl...
c71f6d3aa4807e6d384846519f266a8bdb4c8e72
create-user.js
create-user.js
'use strict'; const path = require('path'); const encryptor = require('./src/encryptor'); const argv = process.argv.slice(2); if(argv.length != 2) { console.log('Usage: node create-user.js USERNAME PASSWORD'); process.exit(1); } encryptor .encrypt('{}', path.join('./data', `${argv[0]}.dat`), argv[1]) .then((...
'use strict'; const path = require('path'); const encryptor = require('./src/encryptor'); const argv = process.argv.slice(2); if(argv.length != 2) { console.log('Usage: node create-user.js USERNAME PASSWORD'); process.exit(1); } encryptor .encrypt(JSON.stringify({ services: [] }), path.join('./data', `${...
Create user adiciona json básico no arquivo
Create user adiciona json básico no arquivo
JavaScript
mit
gustavopaes/password-manager,gustavopaes/password-manager,gustavopaes/password-manager
javascript
## Code Before: 'use strict'; const path = require('path'); const encryptor = require('./src/encryptor'); const argv = process.argv.slice(2); if(argv.length != 2) { console.log('Usage: node create-user.js USERNAME PASSWORD'); process.exit(1); } encryptor .encrypt('{}', path.join('./data', `${argv[0]}.dat`), ar...
1efdebe5af597b5773ddd276c5b67c1d4f5e26be
Envoy.blade.php
Envoy.blade.php
@servers(['demo' => 'timegrid']) @task('check', ['on' => 'demo']) cd /var/www/timegrid.io/dev/htdocs phpunit @endtask @task('deploy', ['on' => 'demo']) sudo /usr/local/bin/deploy.sh development @endtask @task('seed', ['on' => 'demo']) {{-- Target the project directory --}} cd /var/www/timegrid.io...
@servers(['moongate' => 'timegrid']) @task('deploy', ['on' => 'moongate']) sudo /usr/local/bin/deploy.sh {{ $environment }} @endtask
Update deploy process and cleanup
Update deploy process and cleanup
PHP
agpl-3.0
alariva/timegrid,timegridio/timegrid,timegridio/timegrid,timegridio/timegrid,alariva/timegrid,alariva/timegrid,alariva/timegrid
php
## Code Before: @servers(['demo' => 'timegrid']) @task('check', ['on' => 'demo']) cd /var/www/timegrid.io/dev/htdocs phpunit @endtask @task('deploy', ['on' => 'demo']) sudo /usr/local/bin/deploy.sh development @endtask @task('seed', ['on' => 'demo']) {{-- Target the project directory --}} cd /var...
cd6738fd9d90b6ab14ac89582f65d174f6f89bd6
main.js
main.js
var LOCK = false; function print(text, nextAction) { if (text) { LOCK = true; var display = document.getElementById("display"); display.innerHTML = display.innerHTML + text.substr(0, 1); display.scrollTop = display.scrollHeight; var newText = text.substring(1, text.length); ...
var LOCK = false; function print(text, nextAction) { if (text) { LOCK = true; var display = document.getElementById("display"); display.innerHTML = display.innerHTML + text.substr(0, 1); display.scrollTop = display.scrollHeight; var newText = text.substring(1, text.length); ...
Change symbols generation and checks
Change symbols generation and checks
JavaScript
bsd-3-clause
dev-brutus/427,dev-brutus/427
javascript
## Code Before: var LOCK = false; function print(text, nextAction) { if (text) { LOCK = true; var display = document.getElementById("display"); display.innerHTML = display.innerHTML + text.substr(0, 1); display.scrollTop = display.scrollHeight; var newText = text.substring(1...
98f3e5cc45c10073185124663a4a2dccae28f138
update.sh
update.sh
echo -n "Update started at " date echo "Running market updater" && timeout 10m ./market-stuff.py 4-07MU EX6-AO && \ echo "Market updater finished" && scp id_list.js market.css *.html sound_market:
echo -n "Update started at " date echo "Running market updater" && timeout 10m ./market-stuff.py I-CUVX && \ echo "Market updater finished" && scp id_list.js market.css *.html sound_market:
Update to new market hub
Update to new market hub
Shell
mit
eve-val/market-site,eve-val/market-site,eve-val/market-site,eve-val/market-site
shell
## Code Before: echo -n "Update started at " date echo "Running market updater" && timeout 10m ./market-stuff.py 4-07MU EX6-AO && \ echo "Market updater finished" && scp id_list.js market.css *.html sound_market: ## Instruction: Update to new market hub ## Code After: echo -n "Update started at " date echo "Running m...
5c94497e9bd58dac8a3b9471bcf74a81d4f76e46
app/assets/javascripts/modules/IE11ImageLabelFix.js
app/assets/javascripts/modules/IE11ImageLabelFix.js
define(["module"], function (module) { "use strict"; function getInternetExplorerVersion() { var rv = -1; if (navigator.appName == "Microsoft Internet Explorer") { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat(R...
define(["module"], function (module) { "use strict"; function getInternetExplorerVersion() { // https://stackoverflow.com/questions/21825157/internet-explorer-11-detection var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; return isIE11; } function ready(fn) { if (document....
Refactor IE11 image label fix
Refactor IE11 image label fix
JavaScript
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
javascript
## Code Before: define(["module"], function (module) { "use strict"; function getInternetExplorerVersion() { var rv = -1; if (navigator.appName == "Microsoft Internet Explorer") { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})"); if (re.exec(ua) != null) r...
2dfca3ad7c97a59ccc2f37f71c8c9ea94c74b06f
addon/templates/components/power-select-with-create.hbs
addon/templates/components/power-select-with-create.hbs
{{#component powerSelectComponentName ariaDescribedBy=ariaDescribedBy ariaInvalid=ariaInvalid ariaLabel=ariaLabel ariaLabelledBy=ariaLabelledBy options=optionsArray selected=selected onchange=(action selectOrCreate) onkeydown=onkeydown oninput=oninput onfocus=onfocus onopen=onopen onclose=onclos...
{{#component powerSelectComponentName afterOptionsComponent=afterOptionsComponent allowClear=allowClear ariaDescribedBy=ariaDescribedBy ariaInvalid=ariaInvalid ariaLabel=ariaLabel ariaLabelledBy=ariaLabelledBy beforeOptionsComponent=beforeOptionsComponent buildSelection=buildSelection calculatePositio...
Add missing options and sort alphabetically
Add missing options and sort alphabetically
Handlebars
mit
cibernox/ember-power-select-with-create,cibernox/ember-power-select-with-create
handlebars
## Code Before: {{#component powerSelectComponentName ariaDescribedBy=ariaDescribedBy ariaInvalid=ariaInvalid ariaLabel=ariaLabel ariaLabelledBy=ariaLabelledBy options=optionsArray selected=selected onchange=(action selectOrCreate) onkeydown=onkeydown oninput=oninput onfocus=onfocus onopen=onopen ...
88ddbaf1fcb9cf55cbdaee8a1cc8b99f92c56941
.travis.yml
.travis.yml
language: cpp compiler: g++ before_install: # CMake - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake - echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update -qq - sudo apt-get install -qq - sudo apt-get install cmake # g++ 4.8 - sudo add-apt-repository -y pp...
language: cpp compiler: g++ before_install: # CMake - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake - echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update -qq - sudo apt-get install -qq - sudo apt-get install cmake # g++ 4.8 - sudo add-apt-repository -y pp...
Fix the cmake file for linking sfml
Fix the cmake file for linking sfml
YAML
mit
swang927/CS585-Shaokang-Wang,swang927/CS585-Shaokang-Wang,swang927/CS585-Shaokang-Wang,swang927/CS585-Shaokang-Wang,swang927/CS585-Shaokang-Wang
yaml
## Code Before: language: cpp compiler: g++ before_install: # CMake - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake - echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt-get update -qq - sudo apt-get install -qq - sudo apt-get install cmake # g++ 4.8 - sudo add-apt-...
a58fa000b43250c99061303107c4b0beee72d51d
contrib/start.lisp
contrib/start.lisp
(ql:quickload "quicklisp-slime-helper") (let ((swank::*loopback-interface* (sb-unix:unix-gethostname))) (swank:create-server :dont-close t)) (load "/piserv/piserv.asd") (ql:quickload "piserv") (piserv:start-server 8080) (loop (sleep 5))
(ql:quickload "quicklisp-slime-helper") (let ((swank::*loopback-interface* (sb-unix:unix-gethostname))) (swank:create-server :dont-close t)) (sb-posix:chdir #P"/piserv/") (load "/piserv/piserv.asd") (ql:quickload "piserv") (piserv:start-server 8080) (loop (sleep 5))
Add chdir to enable git
Add chdir to enable git
Common Lisp
bsd-2-clause
rayslava/site,rayslava/site
common-lisp
## Code Before: (ql:quickload "quicklisp-slime-helper") (let ((swank::*loopback-interface* (sb-unix:unix-gethostname))) (swank:create-server :dont-close t)) (load "/piserv/piserv.asd") (ql:quickload "piserv") (piserv:start-server 8080) (loop (sleep 5)) ## Instruction: Add chdir to enable git ## Code After: (ql:quic...
a6725e61e25a91fa39c0f9731c3acbaff20e5dac
README.md
README.md
[![Build Status](https://travis-ci.org/suitupalex/dotfiles.svg?branch=master)](https://travis-ci.org/suitupalex/dotfiles) My personal dotfiles.
[![Build Status](https://travis-ci.org/suitupalex/dotfiles.svg?branch=master)](https://travis-ci.org/suitupalex/dotfiles) My personal dotfiles. ## WSL Init Compatible with Ubuntu v20.04+ ``` > sudo --preserve-env=HOME USER=$USER ./apt-init-wsl ```
Add WSL init command info.
readme: Add WSL init command info.
Markdown
mit
suitupalex/dotfiles
markdown
## Code Before: [![Build Status](https://travis-ci.org/suitupalex/dotfiles.svg?branch=master)](https://travis-ci.org/suitupalex/dotfiles) My personal dotfiles. ## Instruction: readme: Add WSL init command info. ## Code After: [![Build Status](https://travis-ci.org/suitupalex/dotfiles.svg?branch=master)](https://tr...
10efd8d8d3ccea5fd4a92485079ffa116bf8bfad
README.md
README.md
<p align="center"> <img alt="Redactor Logo" src="https://testthedocs.org/img/redactor-logo.png" height="140" /> <h3 align="center">REDACTOR</h3> </p> --- [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/testthedocs/Lobby) A work in progress editor-in-chief to highlight potential l...
<p align="center"> <img alt="Redactor Logo" src="https://testthedocs.org/img/redactor-logo.png" height="140" /> <h3 align="center">REDACTOR</h3> </p> --- [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/testthedocs/Lobby) A work in progress editor-in-chief to highlight potential l...
Remove old link to poc branch
docs: Remove old link to poc branch
Markdown
mit
testthedocs/redactor,testthedocs/redactor
markdown
## Code Before: <p align="center"> <img alt="Redactor Logo" src="https://testthedocs.org/img/redactor-logo.png" height="140" /> <h3 align="center">REDACTOR</h3> </p> --- [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/testthedocs/Lobby) A work in progress editor-in-chief to highl...
c12146a840b8da7457ce373605629981e168acd9
t/File-Object/04-new.t
t/File-Object/04-new.t
use strict; use warnings; # Modules. use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 3; # Test. eval { File::Object->new(''); }; is($EVAL_ERROR, "Unknown parameter ''.\n"); # Test. eval { File::Object->new( 'something' => 'value', ); }; is($EVAL_ERROR, "Unknown parameter 'something'....
use strict; use warnings; # Modules. use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 5; # Test. eval { File::Object->new(''); }; is($EVAL_ERROR, "Unknown parameter ''.\n", 'Bad \'\' parameter.'); # Test. eval { File::Object->new( 'something' => 'value', ); }; is($EVAL_ERROR, "Unknown...
Add test comments. Add two new tests.
Add test comments. Add two new tests.
Perl
bsd-2-clause
tupinek/File-Object
perl
## Code Before: use strict; use warnings; # Modules. use English qw(-no_match_vars); use File::Object; use Test::More 'tests' => 3; # Test. eval { File::Object->new(''); }; is($EVAL_ERROR, "Unknown parameter ''.\n"); # Test. eval { File::Object->new( 'something' => 'value', ); }; is($EVAL_ERROR, "Unknown parame...
3f8c853e2d97e058491a38fc6f6bb701d6f1c590
filerv7/www/html/staticView.html
filerv7/www/html/staticView.html
<html> <!-- staticView.html --> <body> <div class="ui-container" style="display: table; height: 100%; width: 100%;"> <div style="vertical-align:middle; display: table-cell; text-align: center;"> %PICK_A_NOTE% </div> </div> </body> </html>
<html> <!-- staticView.html --> <body> <div class="ui-container" style="display: table; height: 100%; width: 100%;"> <div class="ui-navigation-bar"> </div> <div style="vertical-align:middle; display: table-cell; text-align: center;"> %PICK_A_NOTE% </div> </div> ...
Add navigation bar; looks better
Add navigation bar; looks better
HTML
mit
kerrishotts/PhoneGap-HotShot-3-x-Code-Bundle,kerrishotts/PhoneGap-HotShot-3-x-Code-Bundle
html
## Code Before: <html> <!-- staticView.html --> <body> <div class="ui-container" style="display: table; height: 100%; width: 100%;"> <div style="vertical-align:middle; display: table-cell; text-align: center;"> %PICK_A_NOTE% </div> </div> </body> </html> ## Instruction: Add...
e6e5376a9951a8ca8e2773321fd3460d57036619
app/templates/app/styles/application.scss
app/templates/app/styles/application.scss
/* * This file should only comprise of @imports. * Place all styles in appropriately named files. * See the ToC in _application.scss */ /* Bourbon & Neat * -----------------------------------------------------------------------------*/ @import "bourbon"; @import "base/grid-settings"; @import "neat"; @import "ba...
/* Bourbon & Neat * -----------------------------------------------------------------------------*/ @import "bourbon/dist/bourbon"; @import "base/grid-settings"; @import "neat/app/assets/stylesheets/neat"; @import "base/base"; /* Components * ------------------------------------------------------------------------...
Remove erroneous code comments. Update Bourbon/Neat imports to be correct for Bower installations
Remove erroneous code comments. Update Bourbon/Neat imports to be correct for Bower installations
SCSS
mit
centresource/generator-playbook,centresource/generator-playbook,centresource/generator-playbook
scss
## Code Before: /* * This file should only comprise of @imports. * Place all styles in appropriately named files. * See the ToC in _application.scss */ /* Bourbon & Neat * -----------------------------------------------------------------------------*/ @import "bourbon"; @import "base/grid-settings"; @import "ne...
e78f242cf7adadb5c545d7f1718ba98c8ff80d71
recipes/labjackpython/meta.yaml
recipes/labjackpython/meta.yaml
{% set name = "LabJackPython" %} {% set org = "labjack" %} {% set upstreamversion = "4-24-2014" %} {% set version = "20140424" %} {% set sha256 = "f886ade2a29c21c233d339b0f6d00be94bcf8e5a57a5b6bac7e40bad758a5898" %} package: name: {{ name|lower }} version: {{ version }} source: fn: {{ name|lower }}-{{version}...
{% set name = "LabJackPython" %} {% set org = "labjack" %} {% set upstreamversion = "4-24-2014" %} {% set version = "20140424" %} {% set sha256 = "9cf7a6fca9f1308b60a4442dd1410af216fb1d38e49aa5c1ca1e670958c4bcf5" %} package: name: {{ name|lower }} version: {{ version }} source: fn: {{ name|lower }}-{{version}...
Fix new sha256 from zip instead of tar.gz
Fix new sha256 from zip instead of tar.gz
YAML
bsd-3-clause
synapticarbors/staged-recipes,shadowwalkersb/staged-recipes,jakirkham/staged-recipes,chohner/staged-recipes,isuruf/staged-recipes,jjhelmus/staged-recipes,mariusvniekerk/staged-recipes,ceholden/staged-recipes,scopatz/staged-recipes,guillochon/staged-recipes,stuertz/staged-recipes,basnijholt/staged-recipes,sodre/staged-r...
yaml
## Code Before: {% set name = "LabJackPython" %} {% set org = "labjack" %} {% set upstreamversion = "4-24-2014" %} {% set version = "20140424" %} {% set sha256 = "f886ade2a29c21c233d339b0f6d00be94bcf8e5a57a5b6bac7e40bad758a5898" %} package: name: {{ name|lower }} version: {{ version }} source: fn: {{ name|low...
e137a8eb37b52c56ee81828af553f9c2d845ef00
CI/travis.linux.install.deps.sh
CI/travis.linux.install.deps.sh
set -ev sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/mono-opt.list" curl http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_12.04/Release.key | sudo apt-key add - sudo apt-get update sudo apt-get install mono-opt...
set -ev sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | s...
Change source location of Mono packages
Change source location of Mono packages
Shell
mit
dlsteuer/libgit2sharp,rcorre/libgit2sharp,GeertvanHorrik/libgit2sharp,OidaTiftla/libgit2sharp,libgit2/libgit2sharp,dlsteuer/libgit2sharp,ethomson/libgit2sharp,AArnott/libgit2sharp,vorou/libgit2sharp,oliver-feng/libgit2sharp,Zoxive/libgit2sharp,rcorre/libgit2sharp,jorgeamado/libgit2sharp,github/libgit2sharp,oliver-feng/...
shell
## Code Before: set -ev sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/mono-opt.list" curl http://download.opensuse.org/repositories/home:/tpokorra:/mono/xUbuntu_12.04/Release.key | sudo apt-key add - sudo apt-get update sudo apt-get ...
ba45795400f99580c7d0de04c1cafe41185c7c34
configs/webpack.js
configs/webpack.js
// Webpack Configuration // ===================== // // Import Modules // -------------- // // ### NPM Modules import {assign} from 'bound-native-methods/object'; import Webpack from 'webpack'; // Define Values // ------------- const isProduction = process.env.NODE_ENV === 'production'; // Export Module // --------...
// Webpack Configuration // ===================== // // Import Modules // -------------- // // ### Node.js Modules import path from 'path'; // ### NPM Modules import {assign} from 'bound-native-methods/object'; import Webpack from 'webpack'; // Define Values // ------------- const isProduction = process.env.NODE_E...
Enable better local module resolution within the app
Enable better local module resolution within the app 20a273a only works for the server-side; this commit adds the necessary config to enable the some effect on the client-side.
JavaScript
mit
gsklee/cell,gsklee/frontier,gsklee/frontier,gsklee/cell,gsklee/cell,gsklee/frontier
javascript
## Code Before: // Webpack Configuration // ===================== // // Import Modules // -------------- // // ### NPM Modules import {assign} from 'bound-native-methods/object'; import Webpack from 'webpack'; // Define Values // ------------- const isProduction = process.env.NODE_ENV === 'production'; // Export Mo...
7c398a8a2fb5a6718c422361f483299db83cffae
app/templates/views/service-settings/set-email-branding.html
app/templates/views/service-settings/set-email-branding.html
{% extends "withnav_template.html" %} {% from "components/radios.html" import radios, branding_radios %} {% from "components/page-footer.html" import page_footer %} {% block service_page_title %} Set email branding {% endblock %} {% block maincolumn_content %} <h1 class="heading-large">Set email branding</h1> ...
{% extends "withnav_template.html" %} {% from "components/radios.html" import radios %} {% from "components/page-footer.html" import page_footer %} {% block service_page_title %} Set email branding {% endblock %} {% block maincolumn_content %} <h1 class="heading-large">Set email branding</h1> <form method="pos...
Update style radios for choosing brand combination
Update style radios for choosing brand combination They were already using the 'name' field in their label but we don't want any other part of the branding to appear now.
HTML
mit
alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin
html
## Code Before: {% extends "withnav_template.html" %} {% from "components/radios.html" import radios, branding_radios %} {% from "components/page-footer.html" import page_footer %} {% block service_page_title %} Set email branding {% endblock %} {% block maincolumn_content %} <h1 class="heading-large">Set email ...
6ca1dd77a4177e105d5fa7dce75c16a228c70ba5
README.md
README.md
hubot-fleep =========== Hubot adapter for http://fleep.io
hubot-fleep =========== Hubot adapter for http://fleep.io # Project status The adapter works, but only for really straightforward usage. A lot of corner cases are as of yet unhandled: what happens when the bot joins with a conversation with previous history? What happens if the bot is present in multiple channels? ...
Add project status notification to readme
Add project status notification to readme
Markdown
mit
anroots/hubot-fleep
markdown
## Code Before: hubot-fleep =========== Hubot adapter for http://fleep.io ## Instruction: Add project status notification to readme ## Code After: hubot-fleep =========== Hubot adapter for http://fleep.io # Project status The adapter works, but only for really straightforward usage. A lot of corner cases are as o...
d5c43653473f94a606c8f6b1144d20e4a9fe0dd4
examples/Tiny.hs
examples/Tiny.hs
{-# LANGUAGE ScopedTypeVariables #-} import Criterion.Main import Control.Parallel import qualified Data.IntMap as I import Data.List (foldl') import Criterion.Config main = defaultMainWith defaultConfig (return ()) [ bgroup "fib" [ bench "fib 10" $ whnf fib 10 , bench "fib 30" $ whnf fib...
{-# LANGUAGE ScopedTypeVariables #-} import Criterion.Main import Control.Parallel import qualified Data.IntMap as I import Data.List (foldl') import Criterion.Config main = defaultMainWith defaultConfig (return ()) [ bgroup "fib" [ bench "fib 10" $ whnf fib 10 , bench "fib 20" $ whnf fib...
Make the tiny example less tiny.
Make the tiny example less tiny.
Haskell
bsd-2-clause
bos/criterion,osa1/criterion,rrnewton/criterion,iu-parfunc/criterion,paulolieuthier/criterion,bgamari/criterion,rrnewton/criterion,paulolieuthier/criterion,rrnewton/criterion,bgamari/criterion,iu-parfunc/criterion,osa1/criterion,bos/criterion,iu-parfunc/criterion,paulolieuthier/criterion,bgamari/criterion,bos/criterion
haskell
## Code Before: {-# LANGUAGE ScopedTypeVariables #-} import Criterion.Main import Control.Parallel import qualified Data.IntMap as I import Data.List (foldl') import Criterion.Config main = defaultMainWith defaultConfig (return ()) [ bgroup "fib" [ bench "fib 10" $ whnf fib 10 , bench "fi...
54b88e72d49087eadf7be69e9bf519276d9bca71
spec/fixtures/connection.yml
spec/fixtures/connection.yml
:server: 'localhost' :username: 'address@example.org' :password: 'pass' :connection_options: :port: 8143 :ssl: false
:server: 'localhost' :username: 'address@example.org' :password: 'pass' :connection_options: :port: 8993 :ssl: :verify_mode: 0
Make port match Docker configuration
Make port match Docker configuration
YAML
mit
joeyates/imap-backup
yaml
## Code Before: :server: 'localhost' :username: 'address@example.org' :password: 'pass' :connection_options: :port: 8143 :ssl: false ## Instruction: Make port match Docker configuration ## Code After: :server: 'localhost' :username: 'address@example.org' :password: 'pass' :connection_options: :port: 8993 :ssl...
cc09da295d61965af1552b35b7ece0caf4e5a399
accountant/interface/forms.py
accountant/interface/forms.py
from django import forms from django.core.exceptions import NON_FIELD_ERRORS from django.utils.translation import ugettext_lazy as _ from core import models DUPLICATE_PLAYER_ERROR = \ _('There is already a player with this name in your game') class CreateGameForm(forms.Form): bank_cash = forms.IntegerField(re...
from django import forms from django.core.exceptions import NON_FIELD_ERRORS from django.utils.translation import ugettext_lazy as _ from core import models DUPLICATE_PLAYER_ERROR = \ _('There is already a player with this name in your game') class CreateGameForm(forms.Form): bank_cash = forms.IntegerField(re...
Hide Game ID input since it is automatically set
Hide Game ID input since it is automatically set
Python
mit
XeryusTC/18xx-accountant,XeryusTC/18xx-accountant,XeryusTC/18xx-accountant,XeryusTC/18xx-accountant,XeryusTC/18xx-accountant
python
## Code Before: from django import forms from django.core.exceptions import NON_FIELD_ERRORS from django.utils.translation import ugettext_lazy as _ from core import models DUPLICATE_PLAYER_ERROR = \ _('There is already a player with this name in your game') class CreateGameForm(forms.Form): bank_cash = forms...
6668892ae0d711224e022a28883402663b1634f7
js/saiku/routers/QueryRouter.js
js/saiku/routers/QueryRouter.js
/** * Router for opening query when session is initialized */ var QueryRouter = Backbone.Router.extend({ routes: { 'query/open/:query_name': 'open_query' }, open_query: function(query_name) { Settings.ACTION = "OPEN_QUERY"; var query = new SavedQuery(_.extend({ name: query_nam...
/** * Router for opening query when session is initialized */ var QueryRouter = Backbone.Router.extend({ routes: { 'query/open/:query_name': 'open_query' }, open_query: function(query_name) { Settings.ACTION = "OPEN_QUERY"; var options = { name: query_name, ...
Send parameters as lowercase. Can't test because demo server is unavailable.
Send parameters as lowercase. Can't test because demo server is unavailable.
JavaScript
apache-2.0
bisone/saiku,bisone/saiku,bisone/saiku,bisone/saiku,bisone/saiku,bisone/saiku
javascript
## Code Before: /** * Router for opening query when session is initialized */ var QueryRouter = Backbone.Router.extend({ routes: { 'query/open/:query_name': 'open_query' }, open_query: function(query_name) { Settings.ACTION = "OPEN_QUERY"; var query = new SavedQuery(_.extend({...
f40597b1bf776a01b64e8371e428085345c2174d
test/fixtures/wrap.js
test/fixtures/wrap.js
fs = require('fs'); util = require('util'); util.puts('module.exports=' + JSON.stringify( fs.readFileSync(process.argv[2]).toString()));
fs = require('fs'); console.log('module.exports=' + JSON.stringify( fs.readFileSync(process.argv[2]).toString()));
Fix call to deprecated util.puts
Fix call to deprecated util.puts
JavaScript
mit
znerol/node-delta,znerol/node-delta,znerol/node-delta
javascript
## Code Before: fs = require('fs'); util = require('util'); util.puts('module.exports=' + JSON.stringify( fs.readFileSync(process.argv[2]).toString())); ## Instruction: Fix call to deprecated util.puts ## Code After: fs = require('fs'); console.log('module.exports=' + JSON.stringify( fs.readFi...
a5730ee548f39303f3e8925184861982d66e15b7
locales/fa/experiments.ftl
locales/fa/experiments.ftl
tabcenterContributors0Title = تجربه‌کاربری فایرفاکس tabcenterContributors1Title = تجربه‌کاربری فایرفاکس tabcenterContributors2Title = تجربه‌کاربری فایرفاکس tabcenterContributors3Title = تجربه‌کاربری فایرفاکس
activitystreamDescription = یک فهرست غنی و بصری و یک صفحه خانگی باز طراحی شده که پیدا کردن چیزی که به دنبال آن در فایرفاکس هستید را از هر زمانی ساده‌تر می‌کند. minvidDescription = ویدئوها را در مرکز توجه قرار می‌دهد. Min Vid به شما اجازه می‌دهد تا ویدئوهای YouTube و Vimeo را در یک چهارچوب کوچک که همیشه بالای صفحه باقی ...
Update Persian (fa) localization of Test Pilot Website
Pontoon: Update Persian (fa) localization of Test Pilot Website Localization authors: - Arash Mousavi <mousavi.arash@gmail.com>
FreeMarker
mpl-2.0
6a68/testpilot,flodolo/testpilot,mozilla/idea-town-server,flodolo/testpilot,6a68/idea-town,lmorchard/testpilot,mozilla/idea-town,lmorchard/idea-town-server,mathjazz/testpilot,mathjazz/testpilot,flodolo/testpilot,lmorchard/idea-town,lmorchard/testpilot,6a68/idea-town,dannycoates/testpilot,meandavejustice/testpilot,meand...
freemarker
## Code Before: tabcenterContributors0Title = تجربه‌کاربری فایرفاکس tabcenterContributors1Title = تجربه‌کاربری فایرفاکس tabcenterContributors2Title = تجربه‌کاربری فایرفاکس tabcenterContributors3Title = تجربه‌کاربری فایرفاکس ## Instruction: Pontoon: Update Persian (fa) localization of Test Pilot Website Localization a...
0b1cdfac668b15ab9d48b1eb8a4ac4bff7b8c98e
pylinks/main/templatetags/menu_li.py
pylinks/main/templatetags/menu_li.py
from django.template import Library from django.template.defaulttags import URLNode, url from django.utils.html import escape, mark_safe register = Library() class MenuLINode(URLNode): def render(self, context): # Pull out the match and hijack asvar # to be used for the link title request...
from django.template import Library from django.template.defaulttags import URLNode, url from django.utils.html import escape, mark_safe register = Library() class MenuLINode(URLNode): def render(self, context): # Pull out the match and hijack asvar # to be used for the link title match =...
Fix check for valid resolver_match
Fix check for valid resolver_match
Python
mit
michaelmior/pylinks,michaelmior/pylinks,michaelmior/pylinks
python
## Code Before: from django.template import Library from django.template.defaulttags import URLNode, url from django.utils.html import escape, mark_safe register = Library() class MenuLINode(URLNode): def render(self, context): # Pull out the match and hijack asvar # to be used for the link title...
643aba1de85163b6dea972a9dc5324d8dc2065ef
src/renderer/views/Settings/Settings.tsx
src/renderer/views/Settings/Settings.tsx
import React from 'react'; import { Outlet, useMatch } from 'react-router'; import { Navigate } from 'react-router-dom'; import * as Nav from '../../elements/Nav/Nav'; import appStyles from '../../App.module.css'; import styles from './Settings.module.css'; const Settings: React.FC = () => { const match = useMatch...
import React from 'react'; import { Outlet, useMatch } from 'react-router'; import { Navigate } from 'react-router-dom'; import * as Nav from '../../elements/Nav/Nav'; import appStyles from '../../App.module.css'; import styles from './Settings.module.css'; const Settings: React.FC = () => { const match = useMatch...
Fix white flash when navigating to /settings
Fix white flash when navigating to /settings
TypeScript
mit
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
typescript
## Code Before: import React from 'react'; import { Outlet, useMatch } from 'react-router'; import { Navigate } from 'react-router-dom'; import * as Nav from '../../elements/Nav/Nav'; import appStyles from '../../App.module.css'; import styles from './Settings.module.css'; const Settings: React.FC = () => { const ...
2f45364580d1e93ad9c53ef51b929c49eeddcb92
tests/Stubs/Controllers/UsersController.php
tests/Stubs/Controllers/UsersController.php
<?php namespace Wnx\LaravelStats\Tests\Stubs\Controllers; class UsersController extends Controller { public function index() { return []; } public function create() { return []; } public function store() { return []; } public function show() { ...
<?php namespace Wnx\LaravelStats\Tests\Stubs\Controllers; class UsersController extends Controller { public function index() { return []; } public function create() { return []; } public function store() { return []; } public function show() { ...
Add private and protected Methods to stubs
Add private and protected Methods to stubs
PHP
mit
stefanzweifel/laravel-stats
php
## Code Before: <?php namespace Wnx\LaravelStats\Tests\Stubs\Controllers; class UsersController extends Controller { public function index() { return []; } public function create() { return []; } public function store() { return []; } public function ...
701de27b703d7f6f41b5b9654f7b0575737718bd
app/services/mailchimp_subscriber.rb
app/services/mailchimp_subscriber.rb
class MailchimpSubscriber class Error < StandardError; end def initialize(mailchimp_api) @mailchimp_api = mailchimp_api end def subscribe(school, user) list = @mailchimp_api.list_with_interests config = mailchimp_signup_params(school, user, list) if list && config.valid? @mailchimp_api.s...
class MailchimpSubscriber class Error < StandardError; end def initialize(mailchimp_api) @mailchimp_api = mailchimp_api end def subscribe(school, user) list = @mailchimp_api.list_with_interests if list config = mailchimp_signup_params(school, user, list) if config.valid? @mailc...
Fix error handling and update user types
Fix error handling and update user types
Ruby
mit
BathHacked/energy-sparks,BathHacked/energy-sparks,BathHacked/energy-sparks,BathHacked/energy-sparks
ruby
## Code Before: class MailchimpSubscriber class Error < StandardError; end def initialize(mailchimp_api) @mailchimp_api = mailchimp_api end def subscribe(school, user) list = @mailchimp_api.list_with_interests config = mailchimp_signup_params(school, user, list) if list && config.valid? ...
081c217f307f290ab68669c15f4fc55da2ee73a6
app/views/base_contents/_content.html.erb
app/views/base_contents/_content.html.erb
<li> <div class="pull-left"> <div class="like"> <%= render partial: 'likes/like_status', locals: { item: content } %> </div> <div class="body"> <%= content.body %> </div> </div> <br style="clear: both" /> </li>
<li> <div class="like"> <%= render partial: 'likes/like_status', locals: { item: content } %> </div> <div class="body"> <%= content.body %> </div> <% if current_user.try(:admin?) %> <div class="delete-content"> <div class="pull-right"> Admin: <%= link_to [content.link, conten...
Add link to delete content for admins, remove pull-left wrapper
Add link to delete content for admins, remove pull-left wrapper
HTML+ERB
agpl-3.0
Rootstrikers/vdash,Rootstrikers/vdash
html+erb
## Code Before: <li> <div class="pull-left"> <div class="like"> <%= render partial: 'likes/like_status', locals: { item: content } %> </div> <div class="body"> <%= content.body %> </div> </div> <br style="clear: both" /> </li> ## Instruction: Add link to delete content for admins, rem...
b5251dd951c0fc6f42c96c44810d539500fafd68
app/views/pages/edit.html.erb
app/views/pages/edit.html.erb
<%= simple_form_for @page do |f| %> <div class="row editor"> <div class="row-same-height row-full-height"> <div class="col-xs-6 col-xs-height col-full-height col-scan"> <div class="scanned-image-container"> <div class="scanned-image" style="background-image: url(...
<%= simple_form_for @page do |f| %> <div class="row editor"> <div class="row-same-height row-full-height"> <div class="col-xs-6 col-xs-height col-full-height col-scan"> <div class="scanned-image-container"> <div class="scanned-image" style="background-image: url(...
Fix editor textarea font size
Fix editor textarea font size
HTML+ERB
mit
francoisbruneau/kazimirski,francoisbruneau/kazimirski,francoisbruneau/kazimirski,francoisbruneau/kazimirski,francoisbruneau/kazimirski
html+erb
## Code Before: <%= simple_form_for @page do |f| %> <div class="row editor"> <div class="row-same-height row-full-height"> <div class="col-xs-6 col-xs-height col-full-height col-scan"> <div class="scanned-image-container"> <div class="scanned-image" style="backgr...
e0db2033eaa5e00c40a7be02f2849887d2393364
example/src/client.js
example/src/client.js
import 'babel-polyfill'; import React from 'react'; import { render } from 'express-react-router'; import routes from './routes'; // Turn on React Dev tools window.React = React; // Render react-router to page render( routes, window.document.getElementById('reactContent'), { title: 'Express React Router Exampl...
import 'babel-polyfill'; import React from 'react'; import { render } from 'express-react-router'; import routes from './routes'; // Turn on React Dev tools window.React = React; // Render react-router to page render( routes, window.document.getElementById('reactContent'), { title: 'Express React Router Exampl...
Update Example to Change Title
Update Example to Change Title Update the example site to show how to change the title of the page when the url changes.
JavaScript
mit
nheyn/express-react-router
javascript
## Code Before: import 'babel-polyfill'; import React from 'react'; import { render } from 'express-react-router'; import routes from './routes'; // Turn on React Dev tools window.React = React; // Render react-router to page render( routes, window.document.getElementById('reactContent'), { title: 'Express Rea...
329a440103dd0f305159843e648e0bee3ebe873d
rock/data/runtime/python.yml
rock/data/runtime/python.yml
build: | test -f ./requirements.txt test -f ./venv/bin/activate || \ virtualenv --distribute --no-site-packages ./venv source ./venv/bin/activate 2>/dev/null pip install -r ./requirements.txt test: | source ./venv/bin/activate 2>/dev/null ./venv/bin/nosetests run: | source ./venv/bin/activate...
build: | test -f ./requirements.txt test -f ./venv/bin/activate || virtualenv --distribute ./venv source ./venv/bin/activate 2>/dev/null pip install -r ./requirements.txt test: | source ./venv/bin/activate 2>/dev/null ./venv/bin/nosetests run: | source ./venv/bin/activate 2>/dev/null {command}...
Remove --no-site-packages from virtualenv setup
Remove --no-site-packages from virtualenv setup
YAML
mit
silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock
yaml
## Code Before: build: | test -f ./requirements.txt test -f ./venv/bin/activate || \ virtualenv --distribute --no-site-packages ./venv source ./venv/bin/activate 2>/dev/null pip install -r ./requirements.txt test: | source ./venv/bin/activate 2>/dev/null ./venv/bin/nosetests run: | source ./v...
1550ea8bd2a89b42c6aabc16a95cb1be9a46d309
README.md
README.md
spec :mthd_name do typesig "ANNOTATION" end ## Annotation Syntax "( arg0, arg1, … argN ) { Annotation } -> Type" ### Method Arguments, Block, and Return ## Argument Syntax "Type …" ### Standard Argument "typevar …" ### Lowercase Type Variable for Generic Types "?Type …" ### Optional Argument "*Type …" ### Varia...
spec :mthd_name do typesig "ANNOTATION" end ## Annotation Syntax "( arg0, arg1, … argN ) { Annotation } -> Type" ### Method Arguments, Block, and Return ## Argument Syntax "Type …" ### Standard Argument "typevar …" ### Lowercase Type Variable for Generic Types "?Type …" ### Optional Argument "*Type …" ### Varia...
Clean up formatting a bit
Clean up formatting a bit
Markdown
bsd-3-clause
plum-umd/rdl
markdown
## Code Before: spec :mthd_name do typesig "ANNOTATION" end ## Annotation Syntax "( arg0, arg1, … argN ) { Annotation } -> Type" ### Method Arguments, Block, and Return ## Argument Syntax "Type …" ### Standard Argument "typevar …" ### Lowercase Type Variable for Generic Types "?Type …" ### Optional Argument "*T...
aa795e9572d21289f86d64db3e45bed7a199cf0b
src/main/java/com/sakamichi46/api/AbstractSakamichi46Resource.java
src/main/java/com/sakamichi46/api/AbstractSakamichi46Resource.java
package com.sakamichi46.api; import com.fasterxml.jackson.databind.ObjectMapper; import com.sakamichi46.model.Member; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax...
package com.sakamichi46.api; import com.fasterxml.jackson.databind.ObjectMapper; import com.sakamichi46.model.Member; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax...
Change url path for simplifying
Change url path for simplifying
Java
mit
kikutaro/Sakamichi46Api,kikutaro/Sakamichi46Api
java
## Code Before: package com.sakamichi46.api; import com.fasterxml.jackson.databind.ObjectMapper; import com.sakamichi46.model.Member; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produc...
1d0585dcb1caaec8b9fbcc7eb8c4c31e6a382af4
models/ras_220_genes/batch_doi_lookup.py
models/ras_220_genes/batch_doi_lookup.py
import csv from indra.literature import pubmed_client, crossref_client doi_cache = {} with open('doi_cache.txt') as f: csvreader = csv.reader(f, delimiter='\t') for row in csvreader: doi_cache[row[0]] = row[1] with open('missing_dois.txt') as f: missing_dois = [line.strip('\n') for line in f.readl...
import csv from indra.literature import pubmed_client, crossref_client doi_cache = {} with open('doi_cache.txt') as f: csvreader = csv.reader(f, delimiter='\t') for row in csvreader: doi_cache[row[0]] = row[1] with open('missing_dois.txt') as f: missing_dois = [line.strip('\n') for line in f.readl...
Add final save to batch lookup
Add final save to batch lookup
Python
bsd-2-clause
sorgerlab/indra,sorgerlab/indra,johnbachman/indra,jmuhlich/indra,johnbachman/indra,sorgerlab/belpy,jmuhlich/indra,johnbachman/belpy,jmuhlich/indra,pvtodorov/indra,sorgerlab/indra,pvtodorov/indra,sorgerlab/belpy,pvtodorov/indra,johnbachman/belpy,bgyori/indra,johnbachman/indra,pvtodorov/indra,bgyori/indra,sorgerlab/belpy...
python
## Code Before: import csv from indra.literature import pubmed_client, crossref_client doi_cache = {} with open('doi_cache.txt') as f: csvreader = csv.reader(f, delimiter='\t') for row in csvreader: doi_cache[row[0]] = row[1] with open('missing_dois.txt') as f: missing_dois = [line.strip('\n') for...
a02b9e251832de703e514e474a824fdd75d84f03
README.md
README.md
Template based content generator ## Install npm install --global congen ## Example usage Make a congen template file called **_posts/_post.md.congen** with the following contents: --- layout: post title: <{ title }> date: <{ date }> categories: congen --- <{ lorem.paragraphs }>...
Template based content generator ## Install npm install --global congen ## Example usage Make a congen template file called **_posts/_post.md.congen** with the following contents: --- layout: post title: <{ title }> date: <{ date }> categories: congen --- <{ lorem.paragraphs }>...
Add license section to readme
Add license section to readme
Markdown
isc
msmithgu/congen
markdown
## Code Before: Template based content generator ## Install npm install --global congen ## Example usage Make a congen template file called **_posts/_post.md.congen** with the following contents: --- layout: post title: <{ title }> date: <{ date }> categories: congen --- <{ lor...
bbac4885b16eb20507d4065be7fdb8a1d8d69ab7
_drafts/Ultra-laptop-and-cds-dvds.md
_drafts/Ultra-laptop-and-cds-dvds.md
--- layout: post author: name: Adrien Lecharpentier email: adrien.lecharpentier@gmail.com title: Ultra laptop and CDs/DVDs tags: misc ---
--- layout: post author: name: Adrien Lecharpentier email: adrien.lecharpentier@gmail.com title: Ultra laptop and CDs/DVDs tags: misc --- Recently, my sister-in-law bought a new ultra laptop. First thing to notice, like Apple recent laptops, there is no CD / DVD input. That's fair, I mean, we download __legally__ ...
Add initial version of the post
Add initial version of the post
Markdown
mit
alecharp/blog.lecharpentier.org,alecharp/blog
markdown
## Code Before: --- layout: post author: name: Adrien Lecharpentier email: adrien.lecharpentier@gmail.com title: Ultra laptop and CDs/DVDs tags: misc --- ## Instruction: Add initial version of the post ## Code After: --- layout: post author: name: Adrien Lecharpentier email: adrien.lecharpentier@gmail.com tit...
f39b9347162a43fe14b0f6372849bc1f7aba45c1
exercises/practice/hello-world/src/hello_world.erl
exercises/practice/hello-world/src/hello_world.erl
-module(hello_world). -export([hello/0]). hello() -> undefined.
-module(hello_world). -export([hello/0]). hello() -> "Goodbye, Mars!".
Simplify the `hello-world` exercise's stub. The goal of this is to make things easier for students to get started and to introduce as little syntax as possible.
Simplify the `hello-world` exercise's stub. The goal of this is to make things easier for students to get started and to introduce as little syntax as possible.
Erlang
mit
NobbZ/xerlang
erlang
## Code Before: -module(hello_world). -export([hello/0]). hello() -> undefined. ## Instruction: Simplify the `hello-world` exercise's stub. The goal of this is to make things easier for students to get started and to introduce as little syntax as possible. ## Code After: -module(hello_world). -export([hello/0]). ...
c3327835827ccf841c0322a542cad24fe7f5e5e3
src/components/code-select.vue
src/components/code-select.vue
<template> <select class="form-control" v-model="myValue"> <option v-for="val in values" :value="val.id" :key="val.id"> {{val.digits}} {{val.label}} </option> </select> </template> <script lang="ts"> import { Component, Prop, Watch } from 'vue-property-decorator'; import Vue from...
<template> <select class="form-control" v-model="myValue"> <option v-for="val in values" :value="val" :key="val.id"> {{val.digits}} {{val.label}} </option> </select> </template> <script lang="ts"> import { Component, Prop, Watch } from 'vue-property-decorator'; import Vue from "vue...
Use object instead of id as select value
Use object instead of id as select value
Vue
apache-2.0
kjellmf/military-symbology-explorer,kjellmf/military-symbology-explorer,kjellmf/military-symbology-explorer,kjellmf/military-symbology-explorer
vue
## Code Before: <template> <select class="form-control" v-model="myValue"> <option v-for="val in values" :value="val.id" :key="val.id"> {{val.digits}} {{val.label}} </option> </select> </template> <script lang="ts"> import { Component, Prop, Watch } from 'vue-property-decorator';...
a389a4e8807cabced1a08e4ee3c6798dd4e34ea9
memory-store.js
memory-store.js
var SortedArray = require('sorted-array') var compareTime = require('./compare-time') function compareCreated (a, b) { return compareTime(b[1].created, a[1].created) } function compareAdded (a, b) { return b[1].added - a[1].added } /** * Simpliest memory-based events store. * * It is good for tests, but not ...
var SortedArray = require('sorted-array') var compareTime = require('./compare-time') function compareCreated (a, b) { return compareTime(b[1].created, a[1].created) } /** * Simpliest memory-based events store. * * It is good for tests, but not for server or client usage, * because it doesn’t save events to fi...
Use simple array for added index in MemoryStore
Use simple array for added index in MemoryStore
JavaScript
mit
logux/logux-core
javascript
## Code Before: var SortedArray = require('sorted-array') var compareTime = require('./compare-time') function compareCreated (a, b) { return compareTime(b[1].created, a[1].created) } function compareAdded (a, b) { return b[1].added - a[1].added } /** * Simpliest memory-based events store. * * It is good for...
f91c4e6021249f9d3f557855e52ebb6dad1d4ebc
zazu.yaml
zazu.yaml
issueTracker: type: jira url: https://zazucli.atlassian.net/ project: ZZ codeReviewer: type: github owner: stopthatcow repo: zazu style: - include: - setup.py - docs/**.py - tests/**.py - zazu/**.py stylers: - type: autopep8 options: - "--max-line...
issueTracker: type: github owner: stopthatcow repo: zazu #issueTracker: # type: jira # url: https://zazucli.atlassian.net/ # project: ZZ codeReviewer: type: github owner: stopthatcow repo: zazu style: - include: - setup.py - docs/**.py - tests/**.py - zazu/**.py ...
Switch back to github issue tracker
Switch back to github issue tracker (feature/89_autocompletion)
YAML
mit
stopthatcow/zazu,stopthatcow/zazu
yaml
## Code Before: issueTracker: type: jira url: https://zazucli.atlassian.net/ project: ZZ codeReviewer: type: github owner: stopthatcow repo: zazu style: - include: - setup.py - docs/**.py - tests/**.py - zazu/**.py stylers: - type: autopep8 options: ...
9858c56188f4d6c81daf6535e7cd58ff23e20712
application/senic/nuimo_hub/tests/test_setup_wifi.py
application/senic/nuimo_hub/tests/test_setup_wifi.py
import pytest from mock import patch @pytest.fixture def url(route_url): return route_url('wifi_setup') def test_get_scanned_wifi(browser, url): assert browser.get_json(url).json == ['grandpausethisnetwork'] @pytest.fixture def no_such_wifi(settings): settings['wifi_networks_path'] = '/no/such/file' ...
import pytest from mock import patch @pytest.fixture def setup_url(route_url): return route_url('wifi_setup') def test_get_scanned_wifi(browser, setup_url): assert browser.get_json(setup_url).json == ['grandpausethisnetwork'] @pytest.fixture def no_such_wifi(settings): settings['wifi_networks_path'] =...
Make `url` fixture less generic
Make `url` fixture less generic in preparation for additional endpoints
Python
mit
grunskis/nuimo-hub-backend,grunskis/nuimo-hub-backend,getsenic/senic-hub,grunskis/senic-hub,grunskis/senic-hub,grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/senic-hub,getsenic/senic-hub,grunskis/senic-hub,grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/nuimo-hub-backend
python
## Code Before: import pytest from mock import patch @pytest.fixture def url(route_url): return route_url('wifi_setup') def test_get_scanned_wifi(browser, url): assert browser.get_json(url).json == ['grandpausethisnetwork'] @pytest.fixture def no_such_wifi(settings): settings['wifi_networks_path'] = '...