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
e7d910b7970ad9540f7d305ba095439d12dedf74
README.md
README.md
A customizable number picker based on Material guidelines [![Release](https://jitpack.io/v/StephenVinouze/MaterialNumberPicker.svg)](https://jitpack.io/#StephenVinouze/MaterialNumberPicker) [![Build Status](https://travis-ci.org/StephenVinouze/MaterialNumberPicker.svg)](https://travis-ci.org/StephenVinouze/MaterialNumb...
A customizable number picker based on Material guidelines [![Release](https://jitpack.io/v/StephenVinouze/MaterialNumberPicker.svg)](https://jitpack.io/#StephenVinouze/MaterialNumberPicker) [![Build Status](https://travis-ci.org/StephenVinouze/MaterialNumberPicker.svg)](https://travis-ci.org/StephenVinouze/MaterialNumb...
Update readme with first release
Update readme with first release
Markdown
apache-2.0
StephenVinouze/MaterialNumberPicker,StephenVinouze/MaterialNumberPicker,StephenVinouze/MaterialNumberPicker
markdown
## Code Before: A customizable number picker based on Material guidelines [![Release](https://jitpack.io/v/StephenVinouze/MaterialNumberPicker.svg)](https://jitpack.io/#StephenVinouze/MaterialNumberPicker) [![Build Status](https://travis-ci.org/StephenVinouze/MaterialNumberPicker.svg)](https://travis-ci.org/StephenVino...
4f3fe5d898e0f40ef526b7427774f20529c37997
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.3 before_install: - brew update - brew install carthage || brew upgrade carthage - brew outdated xctool || brew upgrade xctool - carthage bootstrap --platform Mac script: - xctool -project HSTracker.xcodeproj -scheme HSTracker -sdk macosx clean build CODE_SIGN_IDENTITY=...
language: objective-c osx_image: xcode7.3 before_install: - brew update - brew install carthage || brew upgrade carthage - brew outdated xctool || brew upgrade xctool - gem install xcpretty - carthage bootstrap --platform Mac script: - xcodebuild -project HSTracker.xcodeproj -scheme HSTracker -sdk macosx cl...
Replace xctool with xcodebuild | xcpretty
Replace xctool with xcodebuild | xcpretty xctool seem to make problems with travis
YAML
mit
bmichotte/HSTracker,ifeherva/HSTracker,ifeherva/HSTracker,mattwelborn/HSTracker,jonnguy/HSTracker,bmichotte/HSTracker,jonnguy/HSTracker,mattwelborn/HSTracker,jonnguy/HSTracker,mattwelborn/HSTracker,mattwelborn/HSTracker
yaml
## Code Before: language: objective-c osx_image: xcode7.3 before_install: - brew update - brew install carthage || brew upgrade carthage - brew outdated xctool || brew upgrade xctool - carthage bootstrap --platform Mac script: - xctool -project HSTracker.xcodeproj -scheme HSTracker -sdk macosx clean build COD...
3f589ef4b34a547e420426fe6e9b393ff87f42e5
module/Orchid/config/module.config.php
module/Orchid/config/module.config.php
<?php namespace Orchid; return array( 'controllers' => array( 'invokables' => array( ), ), 'router' => array( 'routes' => array( ), ), 'view_manager' => array( 'template_path_stack' => array( 'api' => __DIR__ . '/../view', ), ), );
<?php namespace Orchid; return array( 'controllers' => array( 'invokables' => array( 'Orchid\Controller\Country' => 'Orchid\Controller\CountryController', ), ), 'router' => array( 'routes' => array( 'locations' => array( 'type' => 'Segment', ...
Set up route to find/locations
Set up route to find/locations
PHP
bsd-3-clause
dollyaswin/zf2-pagination
php
## Code Before: <?php namespace Orchid; return array( 'controllers' => array( 'invokables' => array( ), ), 'router' => array( 'routes' => array( ), ), 'view_manager' => array( 'template_path_stack' => array( 'api' => __DIR__ . '/../view', ...
19f87b5d922ea58a5a507459fbbe68baa4b5f51e
getting_started/troubleshooting/troubleshooting.md
getting_started/troubleshooting/troubleshooting.md
**Cannot use the Control + Click shortcut to right-click on a Mac** Some Mac shortcuts, such as Control + Click to right-click, may not work correctly because Windows applications use the same shortcut combination for a different purpose. In this case, Control + Click will add the clicked element to the current sele...
**Cannot use the Control + Click shortcut to right-click on a Mac** Some Mac shortcuts, such as Control + Click to right-click, may not work correctly because Windows applications use the same shortcut combination for a different purpose. In this case, Control + Click will add the clicked element to the current sele...
Add disable use extended rail to resolve Mac launch apps ignoring clicks.
Add disable use extended rail to resolve Mac launch apps ignoring clicks. Add disable use extended rail to resolve Mac launch apps ignoring clicks.
Markdown
apache-2.0
turboapps/docs
markdown
## Code Before: **Cannot use the Control + Click shortcut to right-click on a Mac** Some Mac shortcuts, such as Control + Click to right-click, may not work correctly because Windows applications use the same shortcut combination for a different purpose. In this case, Control + Click will add the clicked element to ...
2ab6bc94ffba50cd6bf042a0e9ead579589e9aa1
haxelib.json
haxelib.json
{ "name": "ufront", "license": "MIT", "classPath": "src", "tags": ["ufront","web","cli","shell","interactive","neko"], "description": "Ufront is a client/server web framework written in Haxe. This library contains links to common ufront libraries, and a command line tool to help you manage your ufront projec...
{ "name": "ufront", "license": "MIT", "classPath": "src", "tags": ["ufront","web","cli","shell","interactive","neko"], "description": "Ufront is a client/server web framework written in Haxe. This library contains links to common ufront libraries, and a command line tool to help you manage your ufront projec...
Remove dependencies on thx.core and random.
Remove dependencies on thx.core and random. (Pending changes in submodules to also remove the dependencies.)
JSON
mit
ufront/ufront,cesarmarinhorj/ufront
json
## Code Before: { "name": "ufront", "license": "MIT", "classPath": "src", "tags": ["ufront","web","cli","shell","interactive","neko"], "description": "Ufront is a client/server web framework written in Haxe. This library contains links to common ufront libraries, and a command line tool to help you manage yo...
88f4bc48ad81e642da0d23e02c1d6db2654de19b
README.rst
README.rst
The transients pipeline library is a set of Python modules that form the backbone of the transients pipeline: it contains the routines used by the various steps in the pipeline. The modules are separated into four subpackages: *database* the routines that interface with the database. The modules in this subpackage c...
The transients pipeline library is a set of Python modules that form the backbone of the transients pipeline: it contains the routines used by the various steps in the pipeline. The modules are separated into four subpackages: **database** the routines that interface with the database. The modules in this subpackage...
Update readme to note directory structure
Update readme to note directory structure
reStructuredText
bsd-2-clause
bartscheers/tkp,transientskp/tkp,transientskp/tkp,bartscheers/tkp,mkuiack/tkp,mkuiack/tkp
restructuredtext
## Code Before: The transients pipeline library is a set of Python modules that form the backbone of the transients pipeline: it contains the routines used by the various steps in the pipeline. The modules are separated into four subpackages: *database* the routines that interface with the database. The modules in t...
92b954637023719e1588b6888554a01a0b03941d
worldGenerator/CoralUserGenerator.js
worldGenerator/CoralUserGenerator.js
'use strict'; const rethinkDB = require('rethinkdb'); const program = require('commander'); const log = require('./../server/log'); export class CoralUserGenerator { constructor (conn, number, startLocationId) { this.conn = conn; this.name = 'coral'; this.number = number; this.user = { x: 0,...
'use strict'; const rethinkDB = require('rethinkdb'); const program = require('commander'); const log = require('./../server/log'); export class CoralUserGenerator { constructor (conn, number, startLocationId) { this.conn = conn; this.name = 'coral'; this.number = number; this.user = { x: 0,...
Add logging for insert error
Add logging for insert error
JavaScript
mit
nobus/Labyrinth,nobus/Labyrinth
javascript
## Code Before: 'use strict'; const rethinkDB = require('rethinkdb'); const program = require('commander'); const log = require('./../server/log'); export class CoralUserGenerator { constructor (conn, number, startLocationId) { this.conn = conn; this.name = 'coral'; this.number = number; this.user...
e8ab72d069633aca71ae60d62ece3c0146289b18
xc7/utils/vivado_output_timing.py
xc7/utils/vivado_output_timing.py
import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ) def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argu...
import argparse def create_output_timing(f_out, args): print( """ source {util_tcl} write_timing_info timing_{name}.json5 report_timing_summary """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ) def main(): parser = argparse.ArgumentParser(description=__doc__) parser....
Correct function name and put report_timing_summary at end of script.
Correct function name and put report_timing_summary at end of script. Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
Python
isc
SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs
python
## Code Before: import argparse def create_runme(f_out, args): print( """ report_timing_summary source {util_tcl} write_timing_info timing_{name}.json5 """.format(name=args.name, util_tcl=args.util_tcl), file=f_out ) def main(): parser = argparse.ArgumentParser(description=__doc__) ...
2da5a2037d5505f2455e5d9c08ca995ad37e0701
.travis.yml
.travis.yml
language: go go: 1.7.4 before_install: - go get github.com/mattn/goveralls - go get -d github.com/libgit2/git2go && cd $GOPATH/src/github.com/libgit2/git2go && git submodule update --init && make install script: - $HOME/gopath/bin/goveralls -service=travis-ci
language: go go: 1.7.4 before_install: - go get github.com/mattn/goveralls - go get -d github.com/libgit2/git2go && cd $GOPATH/src/github.com/libgit2/git2go && git submodule update --init && make install script: - cd $GOPATH/src/github.com/Aerathis/sciuromorpha && $HOME/gopath/bin/goveralls -service=travis...
Switch directory back to repo
Switch directory back to repo
YAML
mit
Aerathis/sciuromorpha
yaml
## Code Before: language: go go: 1.7.4 before_install: - go get github.com/mattn/goveralls - go get -d github.com/libgit2/git2go && cd $GOPATH/src/github.com/libgit2/git2go && git submodule update --init && make install script: - $HOME/gopath/bin/goveralls -service=travis-ci ## Instruction: Switch direct...
f5bc1bd1bea60c0bbb8ad46d60d98dec33046f4f
src/main/java/com/afterkraft/kraftrpg/entity/party/RPGPartyManager.java
src/main/java/com/afterkraft/kraftrpg/entity/party/RPGPartyManager.java
/* * Copyright 2014 Gabriel Harris-Rouquette * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
/* * Copyright 2014 Gabriel Harris-Rouquette * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Refactor PartyManager as per API.
Refactor PartyManager as per API.
Java
mit
AfterKraft/KraftRPG
java
## Code Before: /* * Copyright 2014 Gabriel Harris-Rouquette * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
2928ede0960ce66901d418165558d66de38b5625
models/fileservice/link_test.go
models/fileservice/link_test.go
package fileservice import "testing" func TestPlaceholder(t *testing.T) {}
package fileservice import ( "testing" "time" ) func TestNewLink(t *testing.T) { now := time.Now() uri := "http://example.com" link := NewLink(uri, now) if link.Uri != uri { t.FailNow() } if link.Expire != now { t.FailNow() } }
Add test for NewLink() in fileservice package.
Add test for NewLink() in fileservice package.
Go
apache-2.0
pasinskim/deployments,pasinskim/deployments,pasinskim/deployments,pasinskim/deployments
go
## Code Before: package fileservice import "testing" func TestPlaceholder(t *testing.T) {} ## Instruction: Add test for NewLink() in fileservice package. ## Code After: package fileservice import ( "testing" "time" ) func TestNewLink(t *testing.T) { now := time.Now() uri := "http://example.com" link := NewLi...
ef69fcd4841f66d626458a7e18d247f1887e0a74
seq/src/test/java/com/jmonad/seq/SeqSomeTest.java
seq/src/test/java/com/jmonad/seq/SeqSomeTest.java
package com.jmonad.seq; import com.jmonad.seq.lambda.Function; import org.junit.Test; public class SeqSomeTest { private Integer[] numbers = {100, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; private Function trueFunc = new Function<Boolean, Integer>() { @Override public Boolean call(Integer param) { ...
package com.jmonad.seq; import com.jmonad.seq.lambda.Function; import org.junit.Test; public class SeqSomeTest { private Integer[] numbers = {100, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; private Function trueFunc = new Function<Boolean, Integer>() { @Override public Boolean call(Integer param) { r...
Fix checkList problem in seq test class
Fix checkList problem in seq test class
Java
mit
jmonad/seq
java
## Code Before: package com.jmonad.seq; import com.jmonad.seq.lambda.Function; import org.junit.Test; public class SeqSomeTest { private Integer[] numbers = {100, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; private Function trueFunc = new Function<Boolean, Integer>() { @Override public Boolean call(Intege...
ab131930aac7fb633f380ffc5e76d9d0466c8675
source/include/mul4v05.f90
source/include/mul4v05.f90
! start include/mul4v05.f90 yv1j = (bbiv(1,i) + bbiv(2,i)*xlvj) + aaiv(2,i)*zlvj yv2j = (aaiv(1,i) - bbiv(2,i)*zlvj) + aaiv(2,i)*xlvj if(curveff .and. abs(dki(ix,3)) > pieni) then !check for length and that flag is set if (abs(dki(ix,1)) > pieni) then ! Effect from the horizontal bend yv1j = yv1j - bbiv(2,i) * (s...
! start include/mul4v05.f90 yv1j = (bbiv(1,i) + bbiv(2,i)*xlvj) + aaiv(2,i)*zlvj yv2j = (aaiv(1,i) - bbiv(2,i)*zlvj) + aaiv(2,i)*xlvj if(curveff .and. abs(dki(ix,3)) > pieni) then !check for length and that flag is set if (abs(dki(ix,1)) > pieni) then ! Effect from the horizontal bend !! This sign is correct and ...
Move a comment that was going over the line length.
Move a comment that was going over the line length.
FORTRAN
lgpl-2.1
SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack
fortran
## Code Before: ! start include/mul4v05.f90 yv1j = (bbiv(1,i) + bbiv(2,i)*xlvj) + aaiv(2,i)*zlvj yv2j = (aaiv(1,i) - bbiv(2,i)*zlvj) + aaiv(2,i)*xlvj if(curveff .and. abs(dki(ix,3)) > pieni) then !check for length and that flag is set if (abs(dki(ix,1)) > pieni) then ! Effect from the horizontal bend yv1j = yv1j ...
0b9b9233ad19f1450042a39bf6a4b7c4af8b51fa
classy_hash.gemspec
classy_hash.gemspec
Gem::Specification.new do |s| s.name = 'classy_hash' s.version = '0.2.0' s.license = 'MIT' s.files = ['lib/classy_hash.rb', 'lib/classy_hash/generate.rb'] s.summary = 'Classy Hash: Keep your Hashes classy; a Hash schema validator' s.description = <<-DESC Classy Hash is a schema validator for Ruby Hashes...
Gem::Specification.new do |s| s.name = 'classy_hash' s.version = '0.2.1' s.license = 'MIT' s.files = ['lib/classy_hash.rb', 'lib/classy_hash/generate.rb'] s.summary = 'Classy Hash: Keep your Hashes classy; a Hash schema validator' s.description = <<-DESC Classy Hash is a schema validator for Ruby Hashes...
Bump gem version and allow Ruby 2.4.
Bump gem version and allow Ruby 2.4.
Ruby
mit
deseretbook/classy_hash
ruby
## Code Before: Gem::Specification.new do |s| s.name = 'classy_hash' s.version = '0.2.0' s.license = 'MIT' s.files = ['lib/classy_hash.rb', 'lib/classy_hash/generate.rb'] s.summary = 'Classy Hash: Keep your Hashes classy; a Hash schema validator' s.description = <<-DESC Classy Hash is a schema validator...
c88579932c761eec9af46cf30b71c4b11a7a420a
scripts/Controller.js
scripts/Controller.js
class Controller { constructor () { this.listeners = [] this.key = null window.addEventListener('keydown', e => { if (e.keyCode === this.key) return this.key = e.keyCode this.listeners.forEach(listener => { listener && listener(Controller.KEYS[this.key]) }) }) ...
class Controller { constructor () { this.listeners = [] this.key = null window.addEventListener('keydown', e => { if (e.keyCode === this.key) return this.key = e.keyCode this.listeners.forEach(listener => { listener && Controller.KEYS[this.key] && listener(Controller.KEY...
Fix controller on invalid key press
Fix controller on invalid key press
JavaScript
mit
maxwellito/tetrispad,maxwellito/tetrispad
javascript
## Code Before: class Controller { constructor () { this.listeners = [] this.key = null window.addEventListener('keydown', e => { if (e.keyCode === this.key) return this.key = e.keyCode this.listeners.forEach(listener => { listener && listener(Controller.KEYS[this.key]) ...
c0a9eff20b657733a6c1dc104068be2b1b406f2b
E02/A3.hs
E02/A3.hs
module A3 ( Tree , tree1 , countLeaf , leafsToList ) where data Tree = Leaf Int | Branch Tree Tree deriving Show -- a tree1 = Branch ( Branch (Leaf 1) (Leaf 2)) (Branch (Branch (Leaf 3) (Leaf 4)) (Leaf 5)) --b -- the patterns are now the different type constructors. -- We have to do brackets around to say that it i...
module A3 ( Tree , tree1 , countLeaf , leafsToList ) where data Tree = Leaf Int | Branch Tree Tree deriving Show -- a tree1 = Branch ( Branch (Leaf 1) (Leaf 2)) (Branch (Branch (Leaf 3) (Leaf 4)) (Leaf 5)) --b -- the patterns are now the different type constructors. countLeaf :: Tree -> Int countLeaf (Leaf a) ...
Remove false statement about parentheses
E02: Remove false statement about parentheses
Haskell
mit
sebschrader/programmierung-ss2015
haskell
## Code Before: module A3 ( Tree , tree1 , countLeaf , leafsToList ) where data Tree = Leaf Int | Branch Tree Tree deriving Show -- a tree1 = Branch ( Branch (Leaf 1) (Leaf 2)) (Branch (Branch (Leaf 3) (Leaf 4)) (Leaf 5)) --b -- the patterns are now the different type constructors. -- We have to do brackets around ...
a565ad083db9de39c57aa1456273f9235d3582a2
feedzirra.gemspec
feedzirra.gemspec
Gem::Specification.new do |s| s.name = 'feedzirra' s.version = '0.0.24' s.authors = ['Paul Dix'] s.date = '2009-02-19' s.email = 'paul@pauldix.net' s.homepage = 'http://github.com/pauldix/feedzirra' s.summary = 'A feed fetching and parsing library' s.description = 'A feed fetching and ...
Gem::Specification.new do |s| s.name = 'feedzirra' s.version = '0.0.24' s.authors = ['Paul Dix'] s.date = '2009-02-19' s.email = 'paul@pauldix.net' s.homepage = 'http://github.com/pauldix/feedzirra' s.summary = 'A feed fetching and parsing library' s.description = 'A feed fetching and ...
Add missing platform setting in gemspec
Add missing platform setting in gemspec
Ruby
mit
davoclavo/feedjira,IFTTT/feedjira,bakshi41c/feedjira,zenati/feedjira,iitgiq/feedjira,pulkit21/feedjira,jfiorato/feedjira
ruby
## Code Before: Gem::Specification.new do |s| s.name = 'feedzirra' s.version = '0.0.24' s.authors = ['Paul Dix'] s.date = '2009-02-19' s.email = 'paul@pauldix.net' s.homepage = 'http://github.com/pauldix/feedzirra' s.summary = 'A feed fetching and parsing library' s.description = 'A fe...
7c333b1ea5ffa23334d81e125a87841c91c719ae
config/front.prod.config.js
config/front.prod.config.js
const merge = require('webpack-merge'); const webpack = require('webpack'); const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const baseConfig = require('./base.config...
const merge = require('webpack-merge'); const webpack = require('webpack'); const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const frontConfig = require('./front.config'); const devConfig = merge(frontConfig, { output: {...
Update paths and remove dupl. plugins from front prod
Update paths and remove dupl. plugins from front prod
JavaScript
mit
tuelsch/bolg,tuelsch/bolg
javascript
## Code Before: const merge = require('webpack-merge'); const webpack = require('webpack'); const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const baseConfig = require('./...
5fea582c53de6cd94ae4c94c303a13848cd8d8b4
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.5 - DJANGO=1.5 install: - sudo apt-get install -y python-imaging - pip install -q Django==$DJANGO --use-mirrors - pip install -q PIL==1.1.7 --use-mirrors - pip install -q selenium==2.31 --use-mirrors - pip install -q -e . notifications: emai...
language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.5 - DJANGO=1.5 install: - pip install -q django==$DJANGO --use-mirrors - pip install -q pillow==2.0 --use-mirrors - pip install -q selenium==2.31 --use-mirrors - pip install -q -e . notifications: email: false before_install: - "export DISPL...
Use Pillow instead of PIL for test setup on Travis CI
Use Pillow instead of PIL for test setup on Travis CI
YAML
bsd-3-clause
henriquechehad/django-image-cropping,winzard/django-image-cropping,winzard/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping,henriquechehad/django-image-cropping
yaml
## Code Before: language: python python: - "2.6" - "2.7" env: - DJANGO=1.4.5 - DJANGO=1.5 install: - sudo apt-get install -y python-imaging - pip install -q Django==$DJANGO --use-mirrors - pip install -q PIL==1.1.7 --use-mirrors - pip install -q selenium==2.31 --use-mirrors - pip install -q -e . notif...
bf5f01e0dc96fe04c2edc91f6a1643ed364975e1
app/views/cookbooks/_cookbook.html.erb
app/views/cookbooks/_cookbook.html.erb
<li> <%= link_to cookbook, rel: 'cookbook' do %> <div class="cookbook"> <h3 class="cookbook_heading"> <%= cookbook.name %> <small><%= cookbook.latest_cookbook_version.version %></small> <span class="cookbook_lastupdated"> <i class="fa fa-clock-o"></i> Updated <%= cookbook.u...
<li> <%= link_to cookbook, rel: 'cookbook' do %> <div class="cookbook category_<%= cookbook.category.name.parameterize('_') %>"> <h3 class="cookbook_heading"> <%= cookbook.name %> <small><%= cookbook.latest_cookbook_version.version %></small> <span class="cookbook_lastupdated"> ...
Add category class to the cookbook partial.
Add category class to the cookbook partial. This colors the cookbook partial based on their category.
HTML+ERB
apache-2.0
leftathome/supermarket,tas50/supermarket,chef/supermarket,nellshamrell/supermarket,leftathome/supermarket,juliandunn/supermarket,juliandunn/supermarket,rafaelmagu/supermarket,chef/supermarket,robbkidd/supermarket,rafaelmagu/supermarket,rafaelmagu/supermarket,chef/supermarket,tas50/supermarket,nellshamrell/supermarket,d...
html+erb
## Code Before: <li> <%= link_to cookbook, rel: 'cookbook' do %> <div class="cookbook"> <h3 class="cookbook_heading"> <%= cookbook.name %> <small><%= cookbook.latest_cookbook_version.version %></small> <span class="cookbook_lastupdated"> <i class="fa fa-clock-o"></i> Update...
42c33c59df703322b3c818b143a8ffbded2eeae9
README.md
README.md
Web site categorising all the browser APIs - their code, resources, w3c status and other links. **And most specifically use cases.** ## This is for everyone, so please feel free to contribute! The main remit is just add an API or update an existing one with more content :D ### Get up and running Fork the repo I'm...
Web site categorising all the browser APIs - their code, resources, w3c status and other links. **And most specifically use cases.** ## This is for everyone, so please feel free to contribute! The main remit is just add an API or update an existing one with more content :D ### Get up and running Fork the repo I'm...
Improve the readme so that it is clearer how you install
Improve the readme so that it is clearer how you install
Markdown
mit
Rumyra/browserapis.wtf,Rumyra/web-apis,Rumyra/browserapis.wtf,Rumyra/browserapis.wtf,Rumyra/web-apis,Rumyra/web-apis
markdown
## Code Before: Web site categorising all the browser APIs - their code, resources, w3c status and other links. **And most specifically use cases.** ## This is for everyone, so please feel free to contribute! The main remit is just add an API or update an existing one with more content :D ### Get up and running Fo...
8a9f707960c3b39488c9bbee6ce7f22c6fbfc853
web/config/local_settings.py
web/config/local_settings.py
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CLUSTER_SERVERS = ...
import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): MEMCACHE_HOSTS = o...
Fix memcache hosts setting from env
Fix memcache hosts setting from env Before this fix if one had set OS env vars for both CLUSTER_SERVERS and MEMCACHE_HOSTS the value of later would override the former and the graphite web application fails to show any metrics.
Python
apache-2.0
Banno/graphite-setup,Banno/graphite-setup,Banno/graphite-setup
python
## Code Before: import os from datetime import datetime LOG_DIR = '/var/log/graphite' if os.getenv("CARBONLINK_HOSTS"): CARBONLINK_HOSTS = os.getenv("CARBONLINK_HOSTS").split(',') if os.getenv("CLUSTER_SERVERS"): CLUSTER_SERVERS = os.getenv("CLUSTER_SERVERS").split(',') if os.getenv("MEMCACHE_HOSTS"): CL...
dd0bbab7f31ac5e71dfdaf097f6c2aa5abf66982
tensorflow_datasets/community-datasets.toml
tensorflow_datasets/community-datasets.toml
[Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" robotics = "gs://gresearch/robotics"
[Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" kubric = "gs://kubric-public/tfds" robotics = "gs://gresearch/robotics"
Add Kubric to community datasets
Add Kubric to community datasets PiperOrigin-RevId: 436724480
TOML
apache-2.0
tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets
toml
## Code Before: [Namespaces] # You can add your own datasets here to register them in TFDS. See details # at: https://www.tensorflow.org/datasets/community_catalog/overview huggingface = "github://huggingface/datasets/tree/master/datasets" robotics = "gs://gresearch/robotics" ## Instruction: Add Kubric to community da...
b3ec18ae1c9dbb72e27a7e32c93ebdd4a1738789
README.md
README.md
mbc-user-import =============== A consumer for the userImport queue that will be used to import user accounts via inpoort SCV files. Detection of the source is within the message payloads. Based on the user data and the source activities are processed: - Drupal user creation - Mobile Commons submission - MailChimp su...
- [Introduction](https://github.com/DoSomething/mbp-user-import/wiki) - [Architecture](https://github.com/DoSomething/mbp-user-import/wiki/2.-Architecture) - [Setup](https://github.com/DoSomething/mbp-user-import/wiki/3.-Setup) - [Operation](https://github.com/DoSomething/mbp-user-import/wiki/4.-Operation) - [Monitori...
Add User Import system links
Add User Import system links
Markdown
mit
DoSomething/mbc-user-import,DoSomething/mbc-user-import,DoSomething/mbc-user-import
markdown
## Code Before: mbc-user-import =============== A consumer for the userImport queue that will be used to import user accounts via inpoort SCV files. Detection of the source is within the message payloads. Based on the user data and the source activities are processed: - Drupal user creation - Mobile Commons submissio...
dd18bd141f922e07550ce136fa2efe2ad77ba358
zsh/install.sh
zsh/install.sh
cd "$(dirname $0)"/.. # brew install zsh # chsh -s /usr/local/bin/zsh # chsh -s /bin/zsh
cd "$(dirname $0)"/.. if [ "$SHELL" -ne "/bin/zsh" ]; then echo "Setting Zsh as the default shell..." chsh -s /bin/zsh fi
Set Zsh as the default shell.
Set Zsh as the default shell.
Shell
mit
mediweb/dotfiles,mediweb/dotfiles
shell
## Code Before: cd "$(dirname $0)"/.. # brew install zsh # chsh -s /usr/local/bin/zsh # chsh -s /bin/zsh ## Instruction: Set Zsh as the default shell. ## Code After: cd "$(dirname $0)"/.. if [ "$SHELL" -ne "/bin/zsh" ]; then echo "Setting Zsh as the default shell..." chsh -s /bin/zsh fi
c1edfe78270596dbecaa8475844bb17a51a94be5
src/com/chrome/origintrials/test.html
src/com/chrome/origintrials/test.html
<!DOCTYPE html> <html> <head> <script src="../../../foam.js"></script> <script src="model/Application.js"></script> <script src="ui/Apply.js"></script> <script src="ui/Browse.js"></script> <script src="TestConfiguration.js"></script> </head> <body> <script> var env = com.chrome.origi...
<!DOCTYPE html> <html> <head> <script src="../../../foam.js"></script> <script src="model/Application.js"></script> <script src="ui/Apply.js"></script> <script src="ui/Browse.js"></script> <script src="TestConfiguration.js"></script> </head> <body> <script> var env = com.chrome.origi...
Store controller in a global variable for easier debugging.
OriginTrails: Store controller in a global variable for easier debugging.
HTML
apache-2.0
TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2
html
## Code Before: <!DOCTYPE html> <html> <head> <script src="../../../foam.js"></script> <script src="model/Application.js"></script> <script src="ui/Apply.js"></script> <script src="ui/Browse.js"></script> <script src="TestConfiguration.js"></script> </head> <body> <script> var env = ...
b5c639e114458c62c215b925fa806ef10fb71b23
.circleci/config.yml
.circleci/config.yml
version: 2.1 orbs: browser-tools: circleci/browser-tools@1.1 jobs: test-job: working_directory: ~/jpmobile docker: - image: cimg/ruby:3.0-browsers environment: BUNDLE_JOBS: 3 BUNDLE_RETRY: 3 BUNDLE_PATH: vendor/bundle RAILS_ENV: test steps: - b...
version: 2.1 orbs: browser-tools: circleci/browser-tools@1.1 jobs: test-job: working_directory: ~/jpmobile docker: - image: cimg/ruby:3.0-browsers environment: BUNDLE_JOBS: 3 BUNDLE_RETRY: 3 BUNDLE_PATH: vendor/bundle RAILS_ENV: test steps: - b...
Replace deprecated bundle install options
Replace deprecated bundle install options This is just a tiny refactor.
YAML
mit
jpmobile/jpmobile,jpmobile/jpmobile
yaml
## Code Before: version: 2.1 orbs: browser-tools: circleci/browser-tools@1.1 jobs: test-job: working_directory: ~/jpmobile docker: - image: cimg/ruby:3.0-browsers environment: BUNDLE_JOBS: 3 BUNDLE_RETRY: 3 BUNDLE_PATH: vendor/bundle RAILS_ENV: test ...
074431d3a6cfa91f15b40e0a99c0f3206ce14fa9
spec/spec_helper.rb
spec/spec_helper.rb
require 'bundler/setup' require 'simplecov' SimpleCov.start do add_filter '/spec/' add_filter '/test/' add_filter '/db/' end require_relative '../lib/cyclid'
require 'bundler/setup' require 'simplecov' SimpleCov.start do add_filter '/spec/' add_filter '/test/' add_filter '/db/' end # Configure a test database require 'active_record' ENV['RACK_ENV'] = 'test' ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: 'memory' ) require_relative '../d...
Create a test database & load the AR schema.
Create a test database & load the AR schema.
Ruby
apache-2.0
Cyclid/Cyclid,Liqwyd/Cyclid,Liqwyd/Cyclid,Cyclid/Cyclid
ruby
## Code Before: require 'bundler/setup' require 'simplecov' SimpleCov.start do add_filter '/spec/' add_filter '/test/' add_filter '/db/' end require_relative '../lib/cyclid' ## Instruction: Create a test database & load the AR schema. ## Code After: require 'bundler/setup' require 'simplecov' SimpleCov.start...
dc04bded5fa9d4a45a96b67a2437bdd83ee695c1
README.md
README.md
![Build Status](https://img.shields.io/circleci/project/github/AriasBros/eloquent-locale/master.svg?style=flat-square&label=Build+status) [![Latest Version on Packagist](https://img.shields.io/packagist/vpre/ariasbros/eloquent-locale.svg?style=flat-square&label=Packagist)](https://packagist.org/packages/ariasbros/eloq...
[![Latest Version on Packagist](https://img.shields.io/packagist/vpre/ariasbros/eloquent-locale.svg?style=flat-square)](https://packagist.org/packages/ariasbros/eloquent-locale) [![Build Status](https://img.shields.io/circleci/project/github/AriasBros/eloquent-locale/master.svg?style=flat-square)](https://circleci.com...
Add some badges to the readme
Add some badges to the readme
Markdown
mit
AriasBros/eloquent-locale
markdown
## Code Before: ![Build Status](https://img.shields.io/circleci/project/github/AriasBros/eloquent-locale/master.svg?style=flat-square&label=Build+status) [![Latest Version on Packagist](https://img.shields.io/packagist/vpre/ariasbros/eloquent-locale.svg?style=flat-square&label=Packagist)](https://packagist.org/package...
f108da5ab277187fa146fc7db060f706b5e3f0ed
rest/authorView.py
rest/authorView.py
from rest_framework.views import APIView from .serializers import AuthorSerializer from .dataUtils import getAuthor from .httpUtils import JSONResponse class AuthorView(APIView): """ This view gets authors. """ def get(self, request, aid): # Get author author = getAuthor(request, aid)...
from rest_framework.views import APIView from .serializers import AuthorSerializer from .dataUtils import getAuthor from .httpUtils import JSONResponse class AuthorView(APIView): """ This view gets authors. """ def get(self, request, aid): # Get author author = getAuthor(request, aid)...
Add friends to author view.
Add friends to author view.
Python
apache-2.0
CMPUT404W17T06/CMPUT404-project,CMPUT404W17T06/CMPUT404-project,CMPUT404W17T06/CMPUT404-project
python
## Code Before: from rest_framework.views import APIView from .serializers import AuthorSerializer from .dataUtils import getAuthor from .httpUtils import JSONResponse class AuthorView(APIView): """ This view gets authors. """ def get(self, request, aid): # Get author author = getAuth...
ab2f986337324254f670c5cb19e8f3f63dfc65bc
lib/node_modules/@stdlib/utils/type-of/docs/repl.txt
lib/node_modules/@stdlib/utils/type-of/docs/repl.txt
{{alias}}( value ) Determines a value's type. Parameters ---------- value: any Input value. Returns ------- out: string The value's type. Examples -------- > var str = {{alias}}( 'a' ) 'string' > str = {{alias}}( 5 ) 'number' See Also ----...
{{alias}}( value ) Determines a value's type. - <string>: 'string' - <number>: 'number' - <NaN>: 'number' - <infinity>: 'number' - <boolean>: 'boolean' - <null>: 'null' - <undefined>: 'undefined' - <array>: 'array' - <object>: 'object' - <function>: 'function' - <symbol...
Add list of typeOf return values
Add list of typeOf return values
Text
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
text
## Code Before: {{alias}}( value ) Determines a value's type. Parameters ---------- value: any Input value. Returns ------- out: string The value's type. Examples -------- > var str = {{alias}}( 'a' ) 'string' > str = {{alias}}( 5 ) 'number' S...
2782a9d4b439da09f8ce2e1f0c41c28ea6ea8c3d
lib/animate-scss.rb
lib/animate-scss.rb
require 'animate/version' require 'animate/engine' if defined?(::Rails)
require 'animate/version' module Animate if defined?(Rails) require 'animate/engine' else Sass.load_paths << File.expand_path("../../vendor/assets/stylesheets", __FILE__) end end
Add to sass load paths.
Add to sass load paths.
Ruby
mit
ejholmes/animate.scss,ejholmes/animate.scss
ruby
## Code Before: require 'animate/version' require 'animate/engine' if defined?(::Rails) ## Instruction: Add to sass load paths. ## Code After: require 'animate/version' module Animate if defined?(Rails) require 'animate/engine' else Sass.load_paths << File.expand_path("../../vendor/assets/stylesheets", __...
da599268baad50c898c108187e96303ce3c19f98
index.js
index.js
var robotjs = require('./build/Release/robotjs.node'); module.exports = robotjs; module.exports.screen = {}; function bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) { this.width = width; this.height = height; this.byteWidth = byteWidth; this.bitsPerPixel = bitsPerPixel; thi...
var robotjs = require('./build/Release/robotjs.node'); module.exports = robotjs; module.exports.screen = {}; function bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) { this.width = width; this.height = height; this.byteWidth = byteWidth; this.bitsPerPixel = bitsPerPixel; thi...
Call captureScreen with arguments if passed.
Call captureScreen with arguments if passed.
JavaScript
mit
BHamrick1/robotjs,BHamrick1/robotjs,octalmage/robotjs,BHamrick1/robotjs,hristoterezov/robotjs,hristoterezov/robotjs,octalmage/robotjs,hristoterezov/robotjs,BHamrick1/robotjs,hristoterezov/robotjs,octalmage/robotjs,octalmage/robotjs
javascript
## Code Before: var robotjs = require('./build/Release/robotjs.node'); module.exports = robotjs; module.exports.screen = {}; function bitmap(width, height, byteWidth, bitsPerPixel, bytesPerPixel, image) { this.width = width; this.height = height; this.byteWidth = byteWidth; this.bitsPerPixel = bitsP...
f8040bb09e46b11e3d6003c725ce7d8b189a9cb0
index.js
index.js
'use strict'; const Server = require('./lib/server'); module.exports.createServer = function createServer(options) { return new Server(options); }; module.exports.listen = function listen(http_server, options) { const srv = exports.createServer(options); if (http_server) { srv.installHandlers(http_server);...
'use strict'; const Server = require('./lib/server'); module.exports.createServer = function createServer(options) { return new Server(options); }; module.exports.listen = function listen(http_server, options) { const srv = exports.createServer(options); if (http_server) { srv.attach(http_server); } re...
Fix TypeError: srv.installHandlers is not a function
Fix TypeError: srv.installHandlers is not a function
JavaScript
mit
sockjs/sockjs-node,sockjs/sockjs-node
javascript
## Code Before: 'use strict'; const Server = require('./lib/server'); module.exports.createServer = function createServer(options) { return new Server(options); }; module.exports.listen = function listen(http_server, options) { const srv = exports.createServer(options); if (http_server) { srv.installHandle...
00596a111ccbd7d22e27d68cd05efa6e396aa980
tests/control-flow/pre-post-increment.vala
tests/control-flow/pre-post-increment.vala
void main () { { int i = 0; i = i++ + 1; assert (i == 1); } { int i = 0; assert (i++ == 0); } { int i = 0; i = ++i + 1; assert (i == 2); } { int i = 0; assert (++i == 1); } }
void main () { { int i = 0; i = i++ + 1; assert (i == 1); } { int i = 0; assert (i++ == 0); } { int i = 0; i = ++i + 1; assert (i == 2); } { int i = 0; assert (++i == 1); } { int i = 1; i -= i++ % 2; assert (i == 1); } { int i = 1; i -= ++i % 2; assert (i == 2); } { int i ...
Extend "pre-post increment" test to increase coverage
tests: Extend "pre-post increment" test to increase coverage
Vala
lgpl-2.1
frida/vala,GNOME/vala,GNOME/vala,frida/vala,frida/vala,GNOME/vala,GNOME/vala,frida/vala,frida/vala
vala
## Code Before: void main () { { int i = 0; i = i++ + 1; assert (i == 1); } { int i = 0; assert (i++ == 0); } { int i = 0; i = ++i + 1; assert (i == 2); } { int i = 0; assert (++i == 1); } } ## Instruction: tests: Extend "pre-post increment" test to increase coverage ## Code After: void m...
f8284e7cced0096b2e6606ab47f2c29769b471fd
src/main/java/edu/hm/hafner/analysis/registry/CppLintDescriptor.java
src/main/java/edu/hm/hafner/analysis/registry/CppLintDescriptor.java
package edu.hm.hafner.analysis.registry; import edu.hm.hafner.analysis.IssueParser; import edu.hm.hafner.analysis.parser.CppLintParser; /** * A descriptor for Cpplint. * * @author Lorenz Munsch */ class CppLintDescriptor extends ParserDescriptor { private static final String ID = "cpplint"; private static...
package edu.hm.hafner.analysis.registry; import edu.hm.hafner.analysis.IssueParser; import edu.hm.hafner.analysis.parser.CppLintParser; /** * A descriptor for Cpplint. * * @author Lorenz Munsch */ class CppLintDescriptor extends ParserDescriptor { private static final String ID = "cpplint"; private static...
Add a help for cpplint.
Add a help for cpplint.
Java
mit
jenkinsci/analysis-model,jenkinsci/analysis-model,jenkinsci/analysis-model,jenkinsci/analysis-model
java
## Code Before: package edu.hm.hafner.analysis.registry; import edu.hm.hafner.analysis.IssueParser; import edu.hm.hafner.analysis.parser.CppLintParser; /** * A descriptor for Cpplint. * * @author Lorenz Munsch */ class CppLintDescriptor extends ParserDescriptor { private static final String ID = "cpplint"; ...
4e3642d3936e64aefa759879be258e99470bb795
packages/redux-resource/src/utils/request-statuses.js
packages/redux-resource/src/utils/request-statuses.js
import warning from './warning'; const requestStatuses = { IDLE: 'IDLE', PENDING: 'PENDING', FAILED: 'FAILED', SUCCEEDED: 'SUCCEEDED', }; if (process.env.NODE_ENV !== 'production') { Object.defineProperty(requestStatuses, 'NULL', { get() { warning( `You attempted to access the NULL request...
import warning from './warning'; const requestStatuses = { IDLE: 'IDLE', PENDING: 'PENDING', FAILED: 'FAILED', SUCCEEDED: 'SUCCEEDED', }; if (process.env.NODE_ENV !== 'production') { Object.defineProperty(requestStatuses, 'NULL', { get() { warning( `You attempted to access the NULL request...
Update warning message one last time
Update warning message one last time
JavaScript
mit
jmeas/resourceful-redux,jmeas/resourceful-redux
javascript
## Code Before: import warning from './warning'; const requestStatuses = { IDLE: 'IDLE', PENDING: 'PENDING', FAILED: 'FAILED', SUCCEEDED: 'SUCCEEDED', }; if (process.env.NODE_ENV !== 'production') { Object.defineProperty(requestStatuses, 'NULL', { get() { warning( `You attempted to access ...
f29ead8f2a01751c0c0a66b3f8a09ef8a774bfdf
appveyor.yml
appveyor.yml
version: '{branch}.{build}' environment: RunOctoPack: true pull_requests: do_not_increment_build_number: true nuget: disable_publish_on_pr: true before_build: - cmd: nuget restore Source\AuthenticationServer.sln build: publish_nuget: true publish_nuget_symbols: true include_nuget_references: true...
version: '{branch}.{build}' environment: RunOctoPack: true pull_requests: do_not_increment_build_number: true nuget: disable_publish_on_pr: true before_build: - cmd: nuget restore Source\AuthenticationServer.sln build: #publish_nuget: true #publish_nuget_symbols: true #include_nuget_references: t...
Create normal NuGet package only from Claims project.
Create normal NuGet package only from Claims project.
YAML
mit
affecto/dotnet-AuthenticationServer
yaml
## Code Before: version: '{branch}.{build}' environment: RunOctoPack: true pull_requests: do_not_increment_build_number: true nuget: disable_publish_on_pr: true before_build: - cmd: nuget restore Source\AuthenticationServer.sln build: publish_nuget: true publish_nuget_symbols: true include_nuget_references:...
e51c53f8e83a2b2a8377de25a1740fc595ad3f73
chef/cookbooks/jee/recipes/jboss.rb
chef/cookbooks/jee/recipes/jboss.rb
bash "download JBoss" do cwd '/opt' code <<-EOF wget -c http://webdizz.name/jeeessentials/jboss-eap-6.2.0.zip EOF not_if { ::File.exists?('/opt/jboss-eap-6.2.0.zip') } end
bash "download JBoss" do cwd '/opt' code <<-EOF wget -c http://webdizz.name/jeeessentials/jboss-eap-6.2.0.zip chown -R vagrant:vagrant /opt EOF not_if { ::File.exists?('/opt/jboss-eap-6.2.0.zip') } end
Add chown for /opt directory
Add chown for /opt directory
Ruby
apache-2.0
webdizz/jee-essentials,webdizz/jee-essentials,webdizz/jee-essentials,webdizz/jee-essentials
ruby
## Code Before: bash "download JBoss" do cwd '/opt' code <<-EOF wget -c http://webdizz.name/jeeessentials/jboss-eap-6.2.0.zip EOF not_if { ::File.exists?('/opt/jboss-eap-6.2.0.zip') } end ## Instruction: Add chown for /opt directory ## Code After: bash "download JBoss" do cwd '/opt' code <<-EOF w...
4a0569d129d770fead45f3b0d9069ff54e8ddc56
xoinvader/game.py
xoinvader/game.py
import curses from xoinvader.menu import MainMenuState from xoinvader.ingame import InGameState from xoinvader.render import Renderer from xoinvader.common import Settings from xoinvader.application import Application from xoinvader.curses_utils import create_curses_window, style class XOInvader(Application): ...
import curses from xoinvader.menu import MainMenuState from xoinvader.ingame import InGameState from xoinvader.render import Renderer from xoinvader.common import Settings from xoinvader.application import Application from xoinvader.curses_utils import create_curses_window from xoinvader.curses_utils import deinit_c...
Add stop method, fix dangerous args.
Add stop method, fix dangerous args.
Python
mit
pkulev/xoinvader,pankshok/xoinvader
python
## Code Before: import curses from xoinvader.menu import MainMenuState from xoinvader.ingame import InGameState from xoinvader.render import Renderer from xoinvader.common import Settings from xoinvader.application import Application from xoinvader.curses_utils import create_curses_window, style class XOInvader(Ap...
3c1f362737779104882e58a011a082c0cfccba7f
lib/msal-core/src/utils/StringUtils.ts
lib/msal-core/src/utils/StringUtils.ts
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @hidden */ export class StringUtils { /** * Check if a string is empty * * @param str */ static isEmpty(str: string): boolean { return (typeof str === "undefined" || !str |...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @hidden */ export class StringUtils { /** * Check if a string is empty * * @param str */ static isEmpty(str: string): boolean { return (typeof str === "undefined" || !str |...
Add explanatory comment to isValidJson method
Add explanatory comment to isValidJson method
TypeScript
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
typescript
## Code Before: /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @hidden */ export class StringUtils { /** * Check if a string is empty * * @param str */ static isEmpty(str: string): boolean { return (typeof str === "unde...
a8f99e750c34819f44892b17ec71c8ae13448d64
app/views/application/_header.html.erb
app/views/application/_header.html.erb
<div class="ui large hidden container"> <div class="ui menu"> <div class="header item">Mailpenny</div> <div class="item"> <div class="ui action left icon input"> <i class="search icon"></i> <input type="text" placeholder="Search"> <button c...
<div class="ui large hidden container"> <div class="ui menu"> <div class="header item">Mailpenny</div> <div class="item"> <div class="ui action left icon input"> <i class="search icon"></i> <input type="text" placeholder="Search"> <button c...
Convert the menu items into anchor tags
Convert the menu items into anchor tags
HTML+ERB
agpl-3.0
payloadtech/mailpenny,payloadtech/mailpenny,payloadtech/mailpenny
html+erb
## Code Before: <div class="ui large hidden container"> <div class="ui menu"> <div class="header item">Mailpenny</div> <div class="item"> <div class="ui action left icon input"> <i class="search icon"></i> <input type="text" placeholder="Search"> ...
ccf69453ae767df14ab40e469d4ddb4ddc28f6c6
spec/libs/custom_errors_spec.rb
spec/libs/custom_errors_spec.rb
require 'rails_helper' require 'custom_errors.rb' describe CustomErrors, type: :controller do controller(ApplicationController) do include CustomErrors def raise_404 raise ActiveRecord::RecordNotFound end def raise_500 raise Exception end end before(:each) do allow(Rails).t...
require 'rails_helper' require 'custom_errors.rb' describe CustomErrors, type: :controller do controller(ApplicationController) do include CustomErrors def raise_404 raise ActiveRecord::RecordNotFound end def raise_500 raise Exception end end before(:each) do allow(Rails).t...
Use real rails logger in custom errors spec
Use real rails logger in custom errors spec
Ruby
mit
davidbebb/local_support,intfrr/LocalSupport,ZmagoD/LocalSupport,marianmosley/LocalSupport,dsbabbar/LocalSupport,curlygirly/LocalSupport,intfrr/LocalSupport,curlygirly/LocalSupport,intfrr/LocalSupport,ZmagoD/LocalSupport,davidbebb/local_support,Aleks4ndr/LocalSupport,tansaku/LocalSupport,dsbabbar/LocalSupport,decareano/...
ruby
## Code Before: require 'rails_helper' require 'custom_errors.rb' describe CustomErrors, type: :controller do controller(ApplicationController) do include CustomErrors def raise_404 raise ActiveRecord::RecordNotFound end def raise_500 raise Exception end end before(:each) do ...
a526194b61a921c76c762a82044a2fa74ac8d456
server/classes/generic/damageReports/functions/computerCore.js
server/classes/generic/damageReports/functions/computerCore.js
import { greekLetters, randomFromList } from "../constants"; export default (_, { name, stations, displayName = name }) => { // Find the station with the probe construction const station = stations.find(s => s.cards.find(c => c.component === "ComputerCore") ); const stationName = station ? station.name : "...
import { greekLetters, randomFromList } from "../constants"; export default (_, { name, stations, displayName = name }) => { // Find the station with the probe construction const station = stations.find(s => s.cards.find(c => c.component === "ComputerCore") ); const stationName = station ? station.name : "...
Add level to computer core damage report template
Add level to computer core damage report template
JavaScript
apache-2.0
Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium
javascript
## Code Before: import { greekLetters, randomFromList } from "../constants"; export default (_, { name, stations, displayName = name }) => { // Find the station with the probe construction const station = stations.find(s => s.cards.find(c => c.component === "ComputerCore") ); const stationName = station ? ...
c8c31a70ac48e62f55962ec6576a838781a5e289
metadata/com.fabienli.dokuwiki.yml
metadata/com.fabienli.dokuwiki.yml
Categories: - Internet License: GPL-3.0-or-later SourceCode: https://github.com/fabienli/DokuwikiAndroid IssueTracker: https://github.com/fabienli/DokuwikiAndroid/issues AutoName: Dokuwiki Description: Android application to access a dokuwiki and keep pages in local cache. RepoType: git Repo: https://github.com/fab...
Categories: - Internet License: GPL-3.0-or-later SourceCode: https://github.com/fabienli/DokuwikiAndroid IssueTracker: https://github.com/fabienli/DokuwikiAndroid/issues AutoName: Dokuwiki Description: Android application to access a dokuwiki and keep pages in local cache. RepoType: git Repo: https://github.com/fab...
Update Dokuwiki to v0.11 (55)
Update Dokuwiki to v0.11 (55)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Internet License: GPL-3.0-or-later SourceCode: https://github.com/fabienli/DokuwikiAndroid IssueTracker: https://github.com/fabienli/DokuwikiAndroid/issues AutoName: Dokuwiki Description: Android application to access a dokuwiki and keep pages in local cache. RepoType: git Repo: https:...
e3557b9861a441fdb05351139e6564d357c98c8e
docker-compose.yml
docker-compose.yml
version: '3' services: mongoose-console: image: emcmongoose/mongoose-console:${CONSOLE_VER} ports: - "${NGINX_PORT}:80" grafana: image: grafana/grafana:${GRAFANA_VER} ports: - "${GRAFANA_PORT}:${GRAFANA_PORT}" prometheus: image: prom/prometheus:${PROMETHEUS_VER} ports: - "${PR...
version: '3' services: mongoose-console: image: emcmongoose/mongoose-console:${CONSOLE_VER} ports: - "${CONSOLE_PORT}:${CONSOLE_PORT}" env_file: - .env grafana: image: grafana/grafana:${GRAFANA_VER} ports: - "${GRAFANA_PORT}:${GRAFANA_PORT}" prometheus: image: prom/prometheus:...
Change compose file so the image would use environment variables listed in .env.
Change compose file so the image would use environment variables listed in .env.
YAML
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
yaml
## Code Before: version: '3' services: mongoose-console: image: emcmongoose/mongoose-console:${CONSOLE_VER} ports: - "${NGINX_PORT}:80" grafana: image: grafana/grafana:${GRAFANA_VER} ports: - "${GRAFANA_PORT}:${GRAFANA_PORT}" prometheus: image: prom/prometheus:${PROMETHEUS_VER} po...
f6817838d368f35cc872eb87d9709190acf8a6a6
examples/template-spec.txt
examples/template-spec.txt
/boot/config.txt /etc/autofs/auto.master /etc/autofs/auto.pi-0 /etc/localtime /etc/modprobe.d /etc/passwd /etc/group /etc/shadow /etc/ssh/ssh_host_*_key* /root/.ssh/authorized_keys
/boot/config.txt /etc/autofs/auto.master /etc/autofs/auto.pi-0 /etc/localtime /etc/modprobe.d /etc/ntp.conf /etc/ssh/ssh_host_*_key* /root/.ssh/authorized_keys
Add NTP, remove passwd-related stuff
Add NTP, remove passwd-related stuff
Text
bsd-2-clause
malensek/picle
text
## Code Before: /boot/config.txt /etc/autofs/auto.master /etc/autofs/auto.pi-0 /etc/localtime /etc/modprobe.d /etc/passwd /etc/group /etc/shadow /etc/ssh/ssh_host_*_key* /root/.ssh/authorized_keys ## Instruction: Add NTP, remove passwd-related stuff ## Code After: /boot/config.txt /etc/autofs/auto.master /etc/autofs/...
74503148036ef57f3365e6e7b0a248d23027b6f4
lib/api-acl/control.rb
lib/api-acl/control.rb
module ACL module Control def self.put(variable) controller.put(variable) return self end def self.get(value) controller.variables[value] end def self.controller @access_controller ||=AccessController.new end def self.method_missing(*args) if args.leng...
module ACL module Control def self.check_level(route,method) validators_collection = Rules::Collection::ClassMethods.acl_routes_collection[route][method] if validators_collection.nil? || validators_collection.empty? then return 0 end keys = validators_collection.keys.sort ...
Add code to check access level
Add code to check access level
Ruby
unlicense
tarolandia/vinyl
ruby
## Code Before: module ACL module Control def self.put(variable) controller.put(variable) return self end def self.get(value) controller.variables[value] end def self.controller @access_controller ||=AccessController.new end def self.method_missing(*args) ...
ac3697f120ded5d46c3945a802f887d05bd55ce3
scripts/test.sh
scripts/test.sh
ROOT=$(dirname $0) cd "$ROOT/.." VERSIONS=$(cat .travis.yml | grep VERSION | awk -F '=' '{print $2}') for VERSION in $VERSIONS do echo "" echo "Testing Apache Tika $VERSION" echo "----------------------------" java -jar "./bin/tika-server-$VERSION.jar" -enableUnsecureFeatures -enableFileUrl &> /dev/null & ...
ROOT=$(dirname $0) cd "$ROOT/.." if [ -z "$1" ]; then VERSIONS=$(cat .travis.yml | grep VERSION | awk -F '=' '{print $2}') else VERSIONS=$1 fi for VERSION in $VERSIONS do echo "" echo "Testing Apache Tika $VERSION" echo "----------------------------" java -jar "./bin/tika-server-$VERSION.jar" -enableUn...
Test script supports a version as argument
Test script supports a version as argument
Shell
mit
vaites/php-apache-tika,vaites/php-apache-tika
shell
## Code Before: ROOT=$(dirname $0) cd "$ROOT/.." VERSIONS=$(cat .travis.yml | grep VERSION | awk -F '=' '{print $2}') for VERSION in $VERSIONS do echo "" echo "Testing Apache Tika $VERSION" echo "----------------------------" java -jar "./bin/tika-server-$VERSION.jar" -enableUnsecureFeatures -enableFileUrl...
20ad3750de387fb148218c9395ff1a18b2844c61
sass/text_fields.scss
sass/text_fields.scss
$main-field: $yellow; $light-field: lighten($main-field, 10%); .textfields { .field { @extend ._card; input, textarea { padding: .5rem 1rem; font-size: 1rem; color: $black; outline: none; border: none; border-bottom: 2px solid $main-field; &:active, &:focus { ...
$main-field: $yellow; $light-field: lighten($main-field, 10%); .textfields { .field { @extend ._card; input, textarea { padding: .5rem 1rem; font-size: 1rem; color: $black; outline: none; border: none; border-bottom: 2px solid $main-field; @include transition(bac...
Add transitions to text fields
Add transitions to text fields
SCSS
mit
acadet/tiramisu,acadet/tiramisu
scss
## Code Before: $main-field: $yellow; $light-field: lighten($main-field, 10%); .textfields { .field { @extend ._card; input, textarea { padding: .5rem 1rem; font-size: 1rem; color: $black; outline: none; border: none; border-bottom: 2px solid $main-field; &:activ...
0e7ee2dc40abf379656ae31a45178dbe2d4fcd28
setup.py
setup.py
import codecs import re import sys from setuptools import setup def get_version(): return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version') setup(name = "aiodns", version = get_version(), author ...
import codecs import re import sys from setuptools import setup def get_version(): return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version') setup(name = "aiodns", version = get_version(), author ...
Add content type for proper PyPI rendering
Add content type for proper PyPI rendering
Python
mit
saghul/aiodns
python
## Code Before: import codecs import re import sys from setuptools import setup def get_version(): return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version') setup(name = "aiodns", version = get_version(),...
f6ab49baffeba600be5ec6334484a4d17b1a937c
lib/oh_auth/endpoints/authenticate_user.rb
lib/oh_auth/endpoints/authenticate_user.rb
require 'rack' require 'json' require 'oh_auth/user' module OhAuth module Endpoints class AuthenticateUser def self.call(env) request = Rack::Request.new(env) user = User.find(request.params['username']) if user && user.authenticate?(request.params['password']) Rack::...
require 'rack' require 'json' require 'oh_auth/user' module OhAuth module Endpoints class AuthenticateUser def self.call(env) request = Rack::Request.new(env) user = User.find(request.params['username']) if user && user.authenticate?(request.params['password']) render...
Add the correct content type header
Add the correct content type header
Ruby
mit
karayusuf/oh-auth-server
ruby
## Code Before: require 'rack' require 'json' require 'oh_auth/user' module OhAuth module Endpoints class AuthenticateUser def self.call(env) request = Rack::Request.new(env) user = User.find(request.params['username']) if user && user.authenticate?(request.params['password']) ...
a8bf2e4e0247974ed29fed67eaaef41317397cb2
lib/janus_gateway/error.rb
lib/janus_gateway/error.rb
module JanusGateway class Error < StandardError # @param [Integer] error_code # @param [String] error_info def initialize(error_code, error_info) @code, @info = error_code, error_info end # @return [String] def message "<Code: #{code}> <Info: #{info}>" end # @return [In...
module JanusGateway class Error < StandardError # @param [Integer] error_code # @param [String] error_info def initialize(error_code, error_info) @code, @info = error_code, error_info super(error_info) end # @return [String] def message "<Code: #{code}> <Info: #{info}>" ...
Call super() for JanusGateway::Error constructor
Call super() for JanusGateway::Error constructor
Ruby
mit
kris-lab/janus-ruby,cargomedia/janus-gateway-ruby,kris-lab/janus-gateway-ruby
ruby
## Code Before: module JanusGateway class Error < StandardError # @param [Integer] error_code # @param [String] error_info def initialize(error_code, error_info) @code, @info = error_code, error_info end # @return [String] def message "<Code: #{code}> <Info: #{info}>" end ...
c39b7359e123809fbe5ec8f4bb5281b1ca2192ee
_config.yml
_config.yml
port: 8000 title: webtwic email: info@webtwic.com description: A community for coding and tech tweaks where beginners and experts can learn. # baseurl: "http://webtwic.com" # url: "http://webtwic.com" # the base hostname & protocol for your site twitter_username: webtwic github_username: webtwic facebook_name: webtwic...
port: 8000 title: webtwic email: info@webtwic.com description: A community for coding and tech tweaks where beginners and experts can learn. # baseurl: "http://webtwic.com" # url: "http://webtwic.com" # the base hostname & protocol for your site twitter_username: webtwic github_username: webtwic facebook_name: webtwic...
Update github repo url in config
Update github repo url in config
YAML
mit
webtwic/webtwic.github.io,webtwic/webtwic.github.io
yaml
## Code Before: port: 8000 title: webtwic email: info@webtwic.com description: A community for coding and tech tweaks where beginners and experts can learn. # baseurl: "http://webtwic.com" # url: "http://webtwic.com" # the base hostname & protocol for your site twitter_username: webtwic github_username: webtwic facebo...
9232ba71190eb4e29964d60bd7ba6d7bb6118a43
actionpack/lib/action_dispatch/routing/endpoint.rb
actionpack/lib/action_dispatch/routing/endpoint.rb
module ActionDispatch module Routing class Endpoint # :nodoc: def dispatcher?; false; end def redirect?; false; end def engine?; rack_app.respond_to?(:routes); end def matches?(req); true; end def a...
module ActionDispatch module Routing class Endpoint # :nodoc: def dispatcher?; false; end def redirect?; false; end def matches?(req); true; end def app; self; end def rack_app; app; end def engine? rack_app.is_a?(Class) && rack_app < Rails::E...
Make engine check more explicit
Make engine check more explicit Not everything that responds to `routes` is a Rails engine - for example a Grape API endpoint will have a `routes` method but can't be used with `assert_recognizes` as it doesn't respond to `recognize_path_with_request`. Fixes #32312.
Ruby
mit
rails/rails,printercu/rails,bogdanvlviv/rails,Envek/rails,yhirano55/rails,baerjam/rails,yawboakye/rails,deraru/rails,gauravtiwari/rails,fabianoleittes/rails,vipulnsward/rails,mechanicles/rails,arunagw/rails,rafaelfranca/omg-rails,yalab/rails,mohitnatoo/rails,Envek/rails,betesh/rails,jeremy/rails,Erol/rails,untidy-hair/...
ruby
## Code Before: module ActionDispatch module Routing class Endpoint # :nodoc: def dispatcher?; false; end def redirect?; false; end def engine?; rack_app.respond_to?(:routes); end def matches?(req); true;...
48abee7185b93b137ee2659ded58a49f3e0e792d
blog/templates/post.tpl
blog/templates/post.tpl
{% extends '__layout.tpl' %} {% block title %} {{ post.title }} {% endblock %} {% block content %} <h1 class="text-center">{{ post.title }}</h1> <p> <span class="post-meta"> Posted in <a href="{% url 'blog.views.category' post.category.slug %}"> {{ post.category.name }} </a>, on <a...
{% extends '__layout.tpl' %} {% block title %} {{ post.title }} {% endblock %} {% block content %} <h1 class="text-center">{{ post.title }}</h1> <p> <span class="post-meta"> Posted in <a href="{% url 'blog.views.category' post.category.slug %}"> {{ post.category.name }} </a>, on <a...
Add admin link to edit article
Add admin link to edit article
Smarty
mit
ajoyoommen/weblog,ajoyoommen/weblog
smarty
## Code Before: {% extends '__layout.tpl' %} {% block title %} {{ post.title }} {% endblock %} {% block content %} <h1 class="text-center">{{ post.title }}</h1> <p> <span class="post-meta"> Posted in <a href="{% url 'blog.views.category' post.category.slug %}"> {{ post.category.name }} </a...
cfee8b76934595345a35aaaaa77cfa1349734dec
run/assets/core.json
run/assets/core.json
{ "system": { "configuration": "assets/hotspot.config", "ambience": 45 }, "probability": { "maxDelay": 0.2, "marginal": "Beta(2, 5)", "corrLength": 5, "varThreshold": 0.95 }, "target": { "verbose": true }, "interpolation": { "rule": "open", "minLevel": 1, "maxLevel": 10 }, "assessment":...
{ "system": { "configuration": "assets/hotspot.config", "ambience": 45 }, "probability": { "seed": 0, "modes": 2, "minScale": -0.1, "maxScale": 0.1, "transition": 0.2, "corrLength": 5, "varThreshold": 0.95 }, "target": { "verbose": true }, "interpolation": { "rule": "open", "minLevel":...
Update the default probability configuration
Update the default probability configuration
JSON
mit
turing-complete/laboratory,turing-complete/laboratory,turing-complete/laboratory
json
## Code Before: { "system": { "configuration": "assets/hotspot.config", "ambience": 45 }, "probability": { "maxDelay": 0.2, "marginal": "Beta(2, 5)", "corrLength": 5, "varThreshold": 0.95 }, "target": { "verbose": true }, "interpolation": { "rule": "open", "minLevel": 1, "maxLevel": 10 },...
534d04b5c637bfb2ff85e700c94be4c0e19ce6ce
app/js/directives/etablissementsList.js
app/js/directives/etablissementsList.js
'use strict'; angular.module('ddsApp').directive('etablissementsList', function() { return { restrict: 'E', templateUrl: '/partials/etablissements-list.html', scope: { codeCommune: '=', codePostal: '=' }, controller: 'etablissementsListCtrl', }; }...
'use strict'; angular.module('ddsApp').directive('etablissementsList', function() { return { restrict: 'E', templateUrl: '/partials/etablissements-list.html', scope: { codeCommune: '=', codePostal: '=' }, controller: 'etablissementsListCtrl', }; }...
Use $watchGroup, avoid double API call.
Use $watchGroup, avoid double API call.
JavaScript
agpl-3.0
sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui
javascript
## Code Before: 'use strict'; angular.module('ddsApp').directive('etablissementsList', function() { return { restrict: 'E', templateUrl: '/partials/etablissements-list.html', scope: { codeCommune: '=', codePostal: '=' }, controller: 'etablissementsLis...
d6f13599f47ff4b4926d07d79962d3fff36ab6c4
gradebook/__init__.py
gradebook/__init__.py
from collections import OrderedDict import os import sys import json try: gb_home = os.environ["GB_HOME"] except KeyError: raise RuntimeError("Please set the environment variable GB_HOME") repo_dir = os.path.join(gb_home, 'repos') data_dir = os.path.join(gb_home, 'data') log_dir = os.path.join(gb_home, 'log') ...
from collections import OrderedDict import os import sys import json try: gb_home = os.environ["GB_HOME"] except KeyError: raise RuntimeError("Please set the environment variable GB_HOME") repo_dir = os.path.join(gb_home, 'repos') data_dir = os.path.join(gb_home, 'data') log_dir = os.path.join(gb_home, 'log') ...
Add placeholder for CSV file
Add placeholder for CSV file
Python
bsd-2-clause
jarrodmillman/gradebook
python
## Code Before: from collections import OrderedDict import os import sys import json try: gb_home = os.environ["GB_HOME"] except KeyError: raise RuntimeError("Please set the environment variable GB_HOME") repo_dir = os.path.join(gb_home, 'repos') data_dir = os.path.join(gb_home, 'data') log_dir = os.path.join(...
9bafcdac75a8f046fa9135c5848f4faedad1d641
src/app/main/main.scss
src/app/main/main.scss
* { @include user-select(none); } a { &.disabled { cursor: default; pointer-events: none; } } .ui-view-container { position: relative; } [ui-view] { &.ng-enter, &.ng-leave { position: absolute; transition: opacity .5s ease-in-out; width: 100%; } &.ng-enter, &.ng-leave-active { opacity: 0; } ...
* { @include user-select(none); } a { &.disabled { cursor: default; pointer-events: none; } } .icon { display: inline-block; line-height: 1; position: relative; top: 1px; } .ui-view-container { position: relative; } [ui-view] { &.ng-enter, &.ng-leave { position: absolute; transition: opacity .5s e...
Add styles for .icon class
Add styles for .icon class
SCSS
unlicense
ejwaibel/squarrels,ejwaibel/squarrels
scss
## Code Before: * { @include user-select(none); } a { &.disabled { cursor: default; pointer-events: none; } } .ui-view-container { position: relative; } [ui-view] { &.ng-enter, &.ng-leave { position: absolute; transition: opacity .5s ease-in-out; width: 100%; } &.ng-enter, &.ng-leave-active { o...
52a9e21d3256dee3084feb40d401e25ce912ff6e
.github/ISSUE_TEMPLATE/missing-for-live-issues.md
.github/ISSUE_TEMPLATE/missing-for-live-issues.md
--- name: Game Feature about: For issues regarding features to be found in the game --- <!-- After you fill in all information, delete all comments in the issue --> **Describe the feature:** <!-- Describe the game feature --> **Designs:** <!-- Attach screenshots of how the feature should look like -->
--- name: Missing for Live about: For issues regarding game features required for live --- <!-- After you fill in all information, delete all comments in the issue --> **Describe the feature:** <!-- Describe the missing game feature --> **Designs:** <!-- Attach screenshots of how the feature is supposed to look like...
Restructure the MfL issue template
Restructure the MfL issue template
Markdown
mit
DrabWeb/osu,NeoAdonis/osu,smoogipooo/osu,naoey/osu,EVAST9919/osu,ppy/osu,johnneijzen/osu,naoey/osu,UselessToucan/osu,ZLima12/osu,peppy/osu,peppy/osu-new,DrabWeb/osu,2yangk23/osu,peppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,DrabWeb/osu,ppy/osu,smoogipoo/osu,naoey/osu,johnneijzen/osu,UselessToucan/osu,ZLima12/osu,...
markdown
## Code Before: --- name: Game Feature about: For issues regarding features to be found in the game --- <!-- After you fill in all information, delete all comments in the issue --> **Describe the feature:** <!-- Describe the game feature --> **Designs:** <!-- Attach screenshots of how the feature should look like --...
5910f78fe6795310f817c02ecea36a22bc12167b
.github/workflows/build-and-test.yaml
.github/workflows/build-and-test.yaml
name: Java CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-20.04 strategy: matrix: java: ['8', '11', '16' ] env: CI_NAME: github BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} CI_BUILD_NUMBER: ${{ g...
name: Java CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-20.04 strategy: max-parallel: 1 matrix: java: ['8', '11', '16' ] env: CI_NAME: github BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} ...
Fix build errors due to parallel builds
Fix build errors due to parallel builds
YAML
mit
daniel-sc/rocketchat-modern-client
yaml
## Code Before: name: Java CI on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-20.04 strategy: matrix: java: ['8', '11', '16' ] env: CI_NAME: github BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} CI_BUI...
15f2bdc72336a44801fded264e729a788e5159a2
apps/monster-girl-quest.sh
apps/monster-girl-quest.sh
export WINEARCH='win32' export WINEPREFIX='/media/media/Games/PlayOnLinux/wineprefix/MonsterGirlQuest' export WINEHOME="$WINEPREFIX" if [[ $# -eq 1 ]]; then set -eu if [[ $1 == ng ]]; then readonly part='NG+' else readonly part="Part $1" fi LC_ALL='ja_JP.UTF-8' \ wine "$WINEPREFIX/drive_c/Program Files/Mo...
export WINEARCH='win32' export WINEPREFIX='/media/media/Games/PlayOnLinux/wineprefix/MonsterGirlQuest' export WINEHOME="$WINEPREFIX" run() { LC_ALL='ja_JP.UTF-8' \ wine "$WINEPREFIX/drive_c/Program Files/$1" \ < /dev/null \ > /dev/null \ 2> /dev/null \ & disown } if [[ $# -eq 1 ]]; then set -eu cas...
Add paradox to MGQ launcher.
Add paradox to MGQ launcher.
Shell
mit
ammongit/scripts,ammongit/scripts,ammongit/scripts,ammongit/scripts
shell
## Code Before: export WINEARCH='win32' export WINEPREFIX='/media/media/Games/PlayOnLinux/wineprefix/MonsterGirlQuest' export WINEHOME="$WINEPREFIX" if [[ $# -eq 1 ]]; then set -eu if [[ $1 == ng ]]; then readonly part='NG+' else readonly part="Part $1" fi LC_ALL='ja_JP.UTF-8' \ wine "$WINEPREFIX/drive_c/...
1ee123031f65b3a736699f94dcd097daeaed753e
app/src/main/res/layout/item_schedule_item.xml
app/src/main/res/layout/item_schedule_item.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="250dp" android:layout_height="72dp" android:background="@android:color/white" android:minHeight="72dp" android:minWidth="250dp"> <TextView android:id=...
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="250dp" android:layout_height="64dp" android:background="@android:color/white" android:minHeight="64dp" android:minWidth="250dp"> <TextView android:id=...
Decrease item height and text sizes
Decrease item height and text sizes
XML
bsd-2-clause
xiprox/HorribleSubs-Schedule
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="250dp" android:layout_height="72dp" android:background="@android:color/white" android:minHeight="72dp" android:minWidth="250dp"> <TextView ...
5affcd42dc5d2d7b780b4581672742d0577da2b9
server/configurePassport.js
server/configurePassport.js
import passport from 'passport'; import { Strategy } from 'passport-helsinki'; import serverConfig from './config'; function configurePassport() { let helsinkiStrategy; helsinkiStrategy = new Strategy( { clientID: process.env.CLIENT_ID, clientSecret: process.env.CLIENT_SECRET, callbackURL: `...
import passport from 'passport'; import { Strategy } from 'passport-helsinki'; import serverConfig from './config'; function configurePassport() { let helsinkiStrategy; const callbackURL = ( serverConfig.isProduction ? 'http://respa.hel.ninja/login/helsinki/return' : `http://localhost:${serverConfig.p...
Fix login callbackUrl on production
Fix login callbackUrl on production
JavaScript
mit
fastmonkeys/respa-ui
javascript
## Code Before: import passport from 'passport'; import { Strategy } from 'passport-helsinki'; import serverConfig from './config'; function configurePassport() { let helsinkiStrategy; helsinkiStrategy = new Strategy( { clientID: process.env.CLIENT_ID, clientSecret: process.env.CLIENT_SECRET, ...
796d4c861abf6f6910fa20282241f6800a9bd8bb
README.md
README.md
> Tools to compile tomahawk javascript plugins from multi-file ES2015 source to a single ES5 file <hr/> **WARNING: This is highly experimental and WIP** <hr/> ## Installation Assuming you have a working [Node.js](https://nodejs.org) installation, simply run the following command in your terminal ```bash npm instal...
> Tools to compile tomahawk javascript plugins from multi-file ES2015 source to a single ES5 file <hr/> **WARNING: This is highly experimental and WIP** <hr/> ## Installation Assuming you have a working [Node.js](https://nodejs.org) installation, simply run the following command in your terminal ```bash npm instal...
Reduce my hit by a bus factor
Reduce my hit by a bus factor
Markdown
mit
dschmidt/tomahawkcc
markdown
## Code Before: > Tools to compile tomahawk javascript plugins from multi-file ES2015 source to a single ES5 file <hr/> **WARNING: This is highly experimental and WIP** <hr/> ## Installation Assuming you have a working [Node.js](https://nodejs.org) installation, simply run the following command in your terminal ``...
b4502123107768cc4001e86323c26488b04f2a89
docker/aliases.zsh
docker/aliases.zsh
alias d='docker' alias dc='docker-compose' alias drm='docker-rm' alias dcl='docker-clean'
alias d='docker' alias dc='docker-compose' alias drm='docker-rm' alias dcl='docker-clean' alias dcd='docker-compose down'
Add alias for docker-compose down
Add alias for docker-compose down
Shell
mit
ZimbiX/dotfiles,ZimbiX/dotfiles
shell
## Code Before: alias d='docker' alias dc='docker-compose' alias drm='docker-rm' alias dcl='docker-clean' ## Instruction: Add alias for docker-compose down ## Code After: alias d='docker' alias dc='docker-compose' alias drm='docker-rm' alias dcl='docker-clean' alias dcd='docker-compose down'
c347e6e763b79a9c4af6d7776093ce9ed711c43d
monkeys/release.py
monkeys/release.py
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if not local_only: ...
Use `twine` to deploy Wikked to Pypi.
cm: Use `twine` to deploy Wikked to Pypi.
Python
apache-2.0
ludovicchabant/Wikked,ludovicchabant/Wikked,ludovicchabant/Wikked
python
## Code Before: from invoke import task, run @task def makerelease(ctx, version, local_only=False): if not version: raise Exception("You must specify a version!") # FoodTruck assets. print("Update node modules") run("npm install") print("Generating Wikked assets") run("gulp") if ...
da0a4e0e1d6ed89d5d14f00e1b458822879e13ff
account_details.php
account_details.php
<? require_once(dirname(__FILE__).'/config.php'); require_once(dirname(__FILE__).'/User.php'); include(dirname(__FILE__).'/view/account/account_details.php'); # this yields Smarty onbject as $smarty if (preg_match("/^Smarty-3/",$smarty->_version)) { $smarty->setTemplateDir(UserConfig::$smarty_templates.'/account');...
<? require_once(dirname(__FILE__).'/config.php'); require_once(dirname(__FILE__).'/User.php'); include(dirname(__FILE__).'/view/account/account_details.php'); # this yields Smarty onbject as $smarty if (preg_match("/^Smarty-3/",$smarty->_version)) { $smarty->setTemplateDir(UserConfig::$smarty_templates.'/account');...
Fix in smarty v2 support
Fix in smarty v2 support
PHP
mit
StartupAPI/users,sergeychernyshev/users,StartupAPI/users,sergeychernyshev/users,StartupAPI/users,sergeychernyshev/users,sergeychernyshev/users,sergeychernyshev/users,StartupAPI/users
php
## Code Before: <? require_once(dirname(__FILE__).'/config.php'); require_once(dirname(__FILE__).'/User.php'); include(dirname(__FILE__).'/view/account/account_details.php'); # this yields Smarty onbject as $smarty if (preg_match("/^Smarty-3/",$smarty->_version)) { $smarty->setTemplateDir(UserConfig::$smarty_templa...
8ee0307d9cccd726c4be4026cbfc7db7aee8d0a2
.travis.yml
.travis.yml
language: java jdk: oraclejdk8 notifications: slack: stanford-futuredata:qmO6Keu8ifOyXHsmSQ97CeLH after_success: - mvn clean test jacoco:report coveralls:report
language: java jdk: oraclejdk8 notifications: slack: stanford-futuredata:qmO6Keu8ifOyXHsmSQ97CeLH after_success: - mvn clean cobertura:cobertura coveralls:report
Update Travis post-success hook for Cobertura.
Update Travis post-success hook for Cobertura.
YAML
apache-2.0
kexinrong/macrobase,stanford-futuredata/macrobase,stanford-futuredata/macrobase,kexinrong/macrobase,kexinrong/macrobase,stanford-futuredata/macrobase,stanford-futuredata/macrobase,kexinrong/macrobase,kexinrong/macrobase,kexinrong/macrobase,kexinrong/macrobase,stanford-futuredata/macrobase
yaml
## Code Before: language: java jdk: oraclejdk8 notifications: slack: stanford-futuredata:qmO6Keu8ifOyXHsmSQ97CeLH after_success: - mvn clean test jacoco:report coveralls:report ## Instruction: Update Travis post-success hook for Cobertura. ## Code After: language: java jdk: oraclejdk8 notifications: slack: stanf...
317cc552e6363a30a1a00fd03d9b8f2566f752e5
src/test/java/org/nwapw/abacus/tests/LexerTests.java
src/test/java/org/nwapw/abacus/tests/LexerTests.java
package org.nwapw.abacus.tests; import org.nwapw.abacus.lexing.Lexer; import org.nwapw.abacus.tree.TokenType; public class LexerTests { Lexer<TokenType> lexer = new Lexer<TokenType>(){{ }}; }
package org.nwapw.abacus.tests; import org.junit.Assert; import org.junit.Test; import org.nwapw.abacus.lexing.Lexer; import org.nwapw.abacus.lexing.pattern.Match; import java.util.List; public class LexerTests { @Test public void testBasicSuccess(){ Lexer<Integer> lexer = new Lexer<>(); lex...
Write basic tests for string matching.
Write basic tests for string matching.
Java
mit
DanilaFe/abacus,DanilaFe/abacus
java
## Code Before: package org.nwapw.abacus.tests; import org.nwapw.abacus.lexing.Lexer; import org.nwapw.abacus.tree.TokenType; public class LexerTests { Lexer<TokenType> lexer = new Lexer<TokenType>(){{ }}; } ## Instruction: Write basic tests for string matching. ## Code After: package org.nwapw.abacu...
6cc18db75787d7ed32326751dabcdf438ceb3c42
features/lib/laravel.rb
features/lib/laravel.rb
require 'net/http' class Laravel class << self attr_reader :last_response def reset! @last_response = nil end def navigate_to(route, attempts = 0) @last_response = Net::HTTP.get('localhost', route, fixture_port) rescue => e raise "Failed to navigate to #{route} (#{e})" if atte...
require 'net/http' require 'yaml' class Laravel class << self attr_reader :last_response def reset! @last_response = nil end def navigate_to(route, attempts = 0) @last_response = Net::HTTP.get('localhost', route, fixture_port) rescue => e raise "Failed to navigate to #{route} ...
Load fixture ports from the docker-compose file
Load fixture ports from the docker-compose file
Ruby
mit
bugsnag/bugsnag-laravel,bugsnag/bugsnag-laravel,bugsnag/bugsnag-laravel,bugsnag/bugsnag-laravel
ruby
## Code Before: require 'net/http' class Laravel class << self attr_reader :last_response def reset! @last_response = nil end def navigate_to(route, attempts = 0) @last_response = Net::HTTP.get('localhost', route, fixture_port) rescue => e raise "Failed to navigate to #{route}...
419e5ba412f2259552ae87c9e384967f5c1d20e8
mis605/index.html
mis605/index.html
<html> <body> <script> document.addEventListener("DOMContentLoaded", function(){ window.fbAsyncInit = function() { FB.init({ appId : '628337647802046', cookie : true, xfbml : true, version : 'v7.0' }); FB.AppEvents.logPageView(); }; (fun...
<html> <body> <script> document.addEventListener("DOMContentLoaded", function(){ window.fbAsyncInit = function() { FB.init({ appId : '628337647802046', cookie : true, xfbml : true, version : 'v7.0' }); FB.AppEvents.logPageView(); }; (fun...
Consolidate all of this data.
Consolidate all of this data.
HTML
mit
darrencauthon/darrencauthon.github.io,darrencauthon/darrencauthon.github.io,darrencauthon/darrencauthon.github.io
html
## Code Before: <html> <body> <script> document.addEventListener("DOMContentLoaded", function(){ window.fbAsyncInit = function() { FB.init({ appId : '628337647802046', cookie : true, xfbml : true, version : 'v7.0' }); FB.AppEvents.logPageView(); ...
78a03f0b0cbc948a6c9fb215e9051d099c528a82
src/app.py
src/app.py
from flask import Flask from flask import render_template, url_for import parse_data app = Flask(__name__) @app.route("/dashboard") def dashboard(): data = parse_data.load_and_format_data() title = 'Grand Bargain Monitoring' return render_template('dashboard.html', data=data, heading=title, page_title...
from flask import Flask from flask import render_template, url_for import parse_data app = Flask(__name__) @app.route("/dashboard") def dashboard(): data = parse_data.load_and_format_data() title = 'Grand Bargain Transparency Dashboard' return render_template('dashboard.html', data=data, heading=title...
Change page title and heading
Change page title and heading
Python
mit
devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring
python
## Code Before: from flask import Flask from flask import render_template, url_for import parse_data app = Flask(__name__) @app.route("/dashboard") def dashboard(): data = parse_data.load_and_format_data() title = 'Grand Bargain Monitoring' return render_template('dashboard.html', data=data, heading=t...
852615c5aee8ffba17ed21ccd0b61cf98dec8bd4
ExoPlayer.Ext.Ima/Transforms/Metadata.xml
ExoPlayer.Ext.Ima/Transforms/Metadata.xml
<?xml version="1.0" encoding="UTF-8"?> <metadata> <!-- This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask: <remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" /> This sample removes the method: android.support.v4.content...
<?xml version="1.0" encoding="UTF-8"?> <metadata> <!-- This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask: <remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" /> This sample removes the method: android.support.v4.content...
Drop ImaAdsLoader.EventListener because of strange binding errors
Drop ImaAdsLoader.EventListener because of strange binding errors
XML
mit
martijn00/ExoPlayerXamarin,martijn00/ExoPlayerXamarin
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <metadata> <!-- This sample removes the class: android.support.v4.content.AsyncTaskLoader.LoadTask: <remove-node path="/api/package[@name='android.support.v4.content']/class[@name='AsyncTaskLoader.LoadTask']" /> This sample removes the method: android.su...
4191c8e14c446bc7917b75c48ef0ceed0357dbd3
02-Medium/Hide_Text_in_Images/CPP/main.cpp
02-Medium/Hide_Text_in_Images/CPP/main.cpp
int main() { std::ifstream myfile; std::string message,value,translate; enum States{W,Z,O,I}; States state = W; myfile.open("input1.txt"); while(!myfile.eof()) { std::getline(myfile,value,' '); value = value.substr(2,1); switch(state) { case W: { if(value == "0") { ...
int main() { std::string message,value,translate; enum States{W,Z,O,I}; States state = W; while(std::getline(std::cin,value,' ')) { value = value.substr(2,1); switch(state) { case W: { if(value == "0") { state = Z; message += value; } break; ...
Update c++ steganography solution to use cin
Update c++ steganography solution to use cin
C++
mit
acmatku/ku-ipc-2016,acmatku/ku-ipc-2016,acmatku/ku-ipc-2016,acmatku/ku-ipc-2016
c++
## Code Before: int main() { std::ifstream myfile; std::string message,value,translate; enum States{W,Z,O,I}; States state = W; myfile.open("input1.txt"); while(!myfile.eof()) { std::getline(myfile,value,' '); value = value.substr(2,1); switch(state) { case W: { if(value == "...
a9815eabf2a604de67d43155648c768a99aa993c
docs/general.rst
docs/general.rst
.. _general: General ======= Start/create virtual machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To initially create the **servant** machine, just run: :: vagrant up Shutdown/end VM ~~~~~~~~~~~~~~~ To power off the virtual machine: :: vagrant suspend Login via SSH ~~~~~~~~~~~~~ Vagrant provides a passwordless SS...
.. _general: General ======= Vagrant commands expects to be executed from within the directory where the ``Vagrantfile`` is located. Make sure to change into the directory where you've cloned **servant** to, when running the commands below. Start/create virtual machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To initially crea...
Add notice to change into servant directory
Add notice to change into servant directory
reStructuredText
mit
frdmn/servant
restructuredtext
## Code Before: .. _general: General ======= Start/create virtual machine ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To initially create the **servant** machine, just run: :: vagrant up Shutdown/end VM ~~~~~~~~~~~~~~~ To power off the virtual machine: :: vagrant suspend Login via SSH ~~~~~~~~~~~~~ Vagrant provides a...
490ccc6051bc5af026dd5da8e38a4f8b095531c8
services/web/app/coffee/Features/Project/ProjectTokenGenerator.coffee
services/web/app/coffee/Features/Project/ProjectTokenGenerator.coffee
crypto = require 'crypto' module.exports = ProjectTokenGenerator = readOnlyToken: () -> length = 12 tokenAlpha = 'bcdfghjkmnpqrstvwxyz' result = '' crypto.randomBytes(length).map( (a) -> result += tokenAlpha[a % tokenAlpha.length] ) return result readAndWriteToken: () -> numerics = Math.random().toStri...
crypto = require 'crypto' # This module mirrors the token generation in Overleaf (`random_token.rb`), # for the purposes of implementing token-based project access, like the # 'unlisted-projects' feature in Overleaf module.exports = ProjectTokenGenerator = # (From Overleaf `random_token.rb`) # Letters (not numb...
Add commentary to token-generator, and move token-alpha to top level
Add commentary to token-generator, and move token-alpha to top level
CoffeeScript
agpl-3.0
sharelatex/sharelatex
coffeescript
## Code Before: crypto = require 'crypto' module.exports = ProjectTokenGenerator = readOnlyToken: () -> length = 12 tokenAlpha = 'bcdfghjkmnpqrstvwxyz' result = '' crypto.randomBytes(length).map( (a) -> result += tokenAlpha[a % tokenAlpha.length] ) return result readAndWriteToken: () -> numerics = Math...
bb32f2327d2e3aa386fffd2fd320a7af7b03ce95
corehq/apps/domain/project_access/middleware.py
corehq/apps/domain/project_access/middleware.py
from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime, timedelta from django.utils.deprecation import MiddlewareMixin from corehq.apps.domain.project_access.models import SuperuserProjectEntryRecord, ENTRY_RECORD_FREQUENCY from corehq.util.quickcache import quickc...
from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime, timedelta from django.utils.deprecation import MiddlewareMixin from corehq.apps.domain.project_access.models import SuperuserProjectEntryRecord, ENTRY_RECORD_FREQUENCY from corehq.util.quickcache import quickc...
Include superusers in web user domaing access record
Include superusers in web user domaing access record
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
python
## Code Before: from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime, timedelta from django.utils.deprecation import MiddlewareMixin from corehq.apps.domain.project_access.models import SuperuserProjectEntryRecord, ENTRY_RECORD_FREQUENCY from corehq.util.quickcac...
5529900f5f9642f460a78ce58a2c74e021e35266
gaphor/misc/tests/test_gidlethread.py
gaphor/misc/tests/test_gidlethread.py
from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout wait_result = t....
import pytest from gaphor.misc.gidlethread import GIdleThread def counter(count): for x in range(count): yield x @pytest.fixture def gidle_counter(request): # Setup GIdle Thread with 0.01 sec timeout t = GIdleThread(counter(request.param)) t.start() assert t.is_alive() wait_result =...
Update test to use fixtures and parameterization
Update test to use fixtures and parameterization Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
Python
lgpl-2.1
amolenaar/gaphor,amolenaar/gaphor
python
## Code Before: from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout ...
9440f74bb456fb8a82a92bb662a00e1ecdb1b14f
3RVX/OSD/BrightnessOSD.h
3RVX/OSD/BrightnessOSD.h
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #include "OSD.h" class BrightnessOSD : public OSD { public: BrightnessOSD(); virtual void Hide(); virtual void ProcessHotkeys(HotkeyInfo &hki); private: MeterWnd _mWnd; ...
// Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #include "OSD.h" class BrightnessOSD : public OSD { public: BrightnessOSD(); virtual void Hide(); virtual void ProcessHotkeys(HotkeyInfo &hki); private: MeterWnd _mWnd; ...
Add member variable for brightness controller
Add member variable for brightness controller
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
c
## Code Before: // Copyright (c) 2015, Matthew Malensek. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #pragma once #include "OSD.h" class BrightnessOSD : public OSD { public: BrightnessOSD(); virtual void Hide(); virtual void ProcessHotkeys(HotkeyInfo &hki); private: ...
6866f9d70caa00c69d532f060bc9d31a00a74153
test-requirements.txt
test-requirements.txt
nose>=1.0 mock>=1.0 coverage>=3.7 python-coveralls>=2.5
nose>=1.0 mock>=1.0 coverage>=4.0 coveralls>=1.1
Switch to coveralls for new version of coverage support
Switch to coveralls for new version of coverage support
Text
mit
nick-allen/marten
text
## Code Before: nose>=1.0 mock>=1.0 coverage>=3.7 python-coveralls>=2.5 ## Instruction: Switch to coveralls for new version of coverage support ## Code After: nose>=1.0 mock>=1.0 coverage>=4.0 coveralls>=1.1
f5faf9c90b2671f7d09e1a4f21c036737bd039ef
echo/tests/test_response.py
echo/tests/test_response.py
import json from echo.response import EchoResponse, EchoSimplePlainTextResponse from echo.tests import BaseEchoTestCase class TestEchoSimplePlainTextResponse(BaseEchoTestCase): def test_populates_text_in_response(self): """The Plain text response should populate the outputSpeech""" expected = "Th...
import json from echo.response import EchoResponse, EchoSimplePlainTextResponse from echo.tests import BaseEchoTestCase class TestEchoSimplePlainTextResponse(BaseEchoTestCase): def test_populates_text_in_response(self): """The Plain text response should populate the outputSpeech""" expected = "Th...
Fix response tests in py3
Fix response tests in py3
Python
mit
bunchesofdonald/django-echo
python
## Code Before: import json from echo.response import EchoResponse, EchoSimplePlainTextResponse from echo.tests import BaseEchoTestCase class TestEchoSimplePlainTextResponse(BaseEchoTestCase): def test_populates_text_in_response(self): """The Plain text response should populate the outputSpeech""" ...
a3628b87cec66a62f99b06966f017327705bfdc1
_posts/2018-01-11-imgsquash.md
_posts/2018-01-11-imgsquash.md
--- layout: post title: Imgsquash slug: imgsquash source: https://imgsquash.com/ --- <img src="/screenshots/imgsquash.png" alt="Dropbox Paper">
--- layout: post title: Imgsquash slug: imgsquash source: https://imgsquash.com/ --- <img src="/screenshots/imgsquash.png" alt="Imgsquash">
Fix alt for imgsquash image
Fix alt for imgsquash image
Markdown
mit
GetBlimp/built-with-react,GetBlimp/built-with-react,GetBlimp/built-with-react
markdown
## Code Before: --- layout: post title: Imgsquash slug: imgsquash source: https://imgsquash.com/ --- <img src="/screenshots/imgsquash.png" alt="Dropbox Paper"> ## Instruction: Fix alt for imgsquash image ## Code After: --- layout: post title: Imgsquash slug: imgsquash source: https://imgsquash.com/ --- <img src="/sc...
239df24243e8261cc769856af35665eb3b68a01b
lib/utf8_enforcer_workaround/action_view/helpers/form_tag_helper.rb
lib/utf8_enforcer_workaround/action_view/helpers/form_tag_helper.rb
require 'action_view' module Utf8EnforcerWorkaround module ActionView module Helpers module FormTagHelper def utf8_enforcer_tag_with_tag_removed if @utf8_enforcer_tag_enabled utf8_enforcer_tag_without_tag_removed else "".html_safe end en...
require 'action_view' module Utf8EnforcerWorkaround module ActionView module Helpers module FormTagHelper def utf8_enforcer_tag_with_tag_removed if @utf8_enforcer_tag_enabled utf8_enforcer_tag_without_tag_removed else "".html_safe end en...
Fix deprecation notice for alias_method_chain
Fix deprecation notice for alias_method_chain
Ruby
mit
softace/utf8_enforcer_workaround
ruby
## Code Before: require 'action_view' module Utf8EnforcerWorkaround module ActionView module Helpers module FormTagHelper def utf8_enforcer_tag_with_tag_removed if @utf8_enforcer_tag_enabled utf8_enforcer_tag_without_tag_removed else "".html_safe ...
9b8b2d7d3eab36fd8c3750fb0a3d89332997109f
.travis.yml
.travis.yml
language: node_js node_js: - 10 - 11 - 12 - 13 matrix: include: - name: Lint node_js: 12 script: npm run lint addons: apt: sources: - ubuntu-toolchain-r-test packages: - graphicsmagick - inkscape script: npm run test:ci after_success: '<coverage/lcov.info ./node_...
language: node_js node_js: - 10 - 11 - 12 - 13 cache: npm: false matrix: include: - name: Lint node_js: 12 script: npm run lint addons: apt: sources: - ubuntu-toolchain-r-test packages: - graphicsmagick - inkscape script: npm run test:ci after_success: '<covera...
Disable npm cache on Travis
Disable npm cache on Travis See #729
YAML
bsd-3-clause
assetgraph/assetgraph-builder
yaml
## Code Before: language: node_js node_js: - 10 - 11 - 12 - 13 matrix: include: - name: Lint node_js: 12 script: npm run lint addons: apt: sources: - ubuntu-toolchain-r-test packages: - graphicsmagick - inkscape script: npm run test:ci after_success: '<coverage/l...
a39a91b406be3965addc613021f0c94007c42cf6
matchzoo/__init__.py
matchzoo/__init__.py
from pathlib import Path USER_DIR = Path.expanduser(Path('~')).joinpath('.matchzoo') if not USER_DIR.exists(): USER_DIR.mkdir() USER_DATA_DIR = USER_DIR.joinpath('datasets') if not USER_DATA_DIR.exists(): USER_DATA_DIR.mkdir() from .logger import logger from .version import __version__ from .utils import * f...
from pathlib import Path USER_DIR = Path.expanduser(Path('~')).joinpath('.matchzoo') if not USER_DIR.exists(): USER_DIR.mkdir() USER_DATA_DIR = USER_DIR.joinpath('datasets') if not USER_DATA_DIR.exists(): USER_DATA_DIR.mkdir() from .logger import logger from .version import __version__ from .utils import * f...
Add callbacks to matchzoo root scope.
Add callbacks to matchzoo root scope.
Python
apache-2.0
faneshion/MatchZoo,faneshion/MatchZoo
python
## Code Before: from pathlib import Path USER_DIR = Path.expanduser(Path('~')).joinpath('.matchzoo') if not USER_DIR.exists(): USER_DIR.mkdir() USER_DATA_DIR = USER_DIR.joinpath('datasets') if not USER_DATA_DIR.exists(): USER_DATA_DIR.mkdir() from .logger import logger from .version import __version__ from ....
5110a9d0d2b2c9a56c541fb4ac4c30a71a219b78
README.md
README.md
chess-bet ========= Based on the post [Team events: beating the bookmakers?!](http://en.chessbase.com/Home/TabId/211/PostId/4009158/team-events-beating-the-bookmakers-150313.aspx) the app implements the steps described to calculate chess team odds. Installation ============ To use locally the app, you need to instal...
chess-bet ========= Based on the post [Team events: beating the bookmakers?!](http://en.chessbase.com/Home/TabId/211/PostId/4009158/team-events-beating-the-bookmakers-150313.aspx) the app implements the steps described to calculate chess team odds. Installation ============ To use locally the app, you need to instal...
Update todos in the readme.
Update todos in the readme.
Markdown
mit
albertosantini/chess-bet,albertosantini/chess-bet,albertosantini/chess-bet
markdown
## Code Before: chess-bet ========= Based on the post [Team events: beating the bookmakers?!](http://en.chessbase.com/Home/TabId/211/PostId/4009158/team-events-beating-the-bookmakers-150313.aspx) the app implements the steps described to calculate chess team odds. Installation ============ To use locally the app, yo...
e0976a86e8ea6145337ac4962a861638ca6d0488
models/Game.js
models/Game.js
/** * Module dependencies. */ const Score = require('./score'); const mongoose = require('mongoose'); const Schema = mongoose.Schema; // create a schema const gameSchema = new Schema({ started_at: Date, ended_at: Date, teams: [Schema.Types.ObjectId], score: [Score.schema] }); // create a model using...
/** * Module dependencies. */ const Score = require('./score'); const mongoose = require('mongoose'); const Schema = mongoose.Schema; // create a schema const gameSchema = new Schema({ started_at: Date, ended_at: Date, teams: [Schema.Types.ObjectId], score: [Score.schema] }); gameSchema.methods.star...
Replace pre function with start game function
Replace pre function with start game function
JavaScript
mit
lostatseajoshua/Challenger
javascript
## Code Before: /** * Module dependencies. */ const Score = require('./score'); const mongoose = require('mongoose'); const Schema = mongoose.Schema; // create a schema const gameSchema = new Schema({ started_at: Date, ended_at: Date, teams: [Schema.Types.ObjectId], score: [Score.schema] }); // crea...
293e92ef2cafc55f8675204e9e802655baa8af8a
.travis.yml
.travis.yml
language: c dist: xenial addons: apt: packages: - libseccomp-dev install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - TESTS=false PACKAGE=mirage-solo5 matrix: - OCAML_VERSION=4.09 EXT...
language: c dist: xenial addons: apt: packages: - libseccomp-dev install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - TESTS=false PACKAGE=mirage-solo5 matrix: - OCAML_VERSION=4.10.0+r...
Add OCaml 4.10 to the CI
Add OCaml 4.10 to the CI
YAML
isc
mato/mirage-solo5,mato/mirage-solo5
yaml
## Code Before: language: c dist: xenial addons: apt: packages: - libseccomp-dev install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh script: bash -ex .travis-opam.sh env: global: - TESTS=false PACKAGE=mirage-solo5 matrix: - OCAML_...
bb4a0ca8626f0287a5366e97313018fcc59bcf8f
demo/__init__.py
demo/__init__.py
__project__ = 'TemplateDemo' __version__ = '0.0.0' VERSION = "{0} v{1}".format(__project__, __version__)
from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution('TemplateDemo').version except DistributionNotFound: __version__ = '(local)'
Deploy Travis CI build 1156 to GitHub
Deploy Travis CI build 1156 to GitHub
Python
mit
jacebrowning/template-python-demo
python
## Code Before: __project__ = 'TemplateDemo' __version__ = '0.0.0' VERSION = "{0} v{1}".format(__project__, __version__) ## Instruction: Deploy Travis CI build 1156 to GitHub ## Code After: from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution('TemplateDemo').vers...
5cefaf12d39bdf72b0b4bb2d5bc92070a75adb78
src/app/bucket/bucket.component.html
src/app/bucket/bucket.component.html
<h3>{{bucket.displayName}} <span [class.error]="totalAllocationPercentage > 100"> <span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span> <span *ngIf="isEditing"> (<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%) <button (click)...
<h3> <span *ngIf="!isEditing" (click)="edit()">{{bucket.displayName}}</span> <span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span> <span [class.error]="totalAllocationPercentage > 100"> <span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span> <s...
Allow editing of bucket name
Allow editing of bucket name
HTML
apache-2.0
google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath
html
## Code Before: <h3>{{bucket.displayName}} <span [class.error]="totalAllocationPercentage > 100"> <span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span> <span *ngIf="isEditing"> (<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%) ...
540bfff4a0622c3d9a001c09f0c39e65b29e1a0c
mrbelvedereci/build/management/commands/metaci_scheduled_jobs.py
mrbelvedereci/build/management/commands/metaci_scheduled_jobs.py
from django.utils import timezone from django.core.management.base import BaseCommand, CommandError from scheduler.models import RepeatableJob class Command(BaseCommand): help = 'Returns the API token for a given username. If one does not exist, a token is first created.' def handle(self, *args, **options): ...
from django.utils import timezone from django.core.management.base import BaseCommand, CommandError from scheduler.models import RepeatableJob class Command(BaseCommand): help = 'Returns the API token for a given username. If one does not exist, a token is first created.' def handle(self, *args, **options): ...
Add job id and enable/disabled status if the job already exists
Add job id and enable/disabled status if the job already exists
Python
bsd-3-clause
SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci
python
## Code Before: from django.utils import timezone from django.core.management.base import BaseCommand, CommandError from scheduler.models import RepeatableJob class Command(BaseCommand): help = 'Returns the API token for a given username. If one does not exist, a token is first created.' def handle(self, *ar...
0aa484645edbd5a1a6e559a1b93ac11305a76bd3
.travis.yml
.travis.yml
language: python sudo: false cache: pip python: - '3.4' - '3.5' - '3.6' before_install: - openssl aes-256-cbc -K $encrypted_12e75a453f27_key -iv $encrypted_12e75a453f27_iv -in gcs-service-account.json.enc -out gcs-service-account.json -d install: - pip install --upgrade setuptools - pip install tox-travi...
language: python sudo: false cache: pip python: - '3.4' - '3.5' - '3.6' before_install: - openssl aes-256-cbc -K $encrypted_12e75a453f27_key -iv $encrypted_12e75a453f27_iv -in gcs-service-account.json.enc -out gcs-service-account.json -d install: - pip install --upgrade setuptools - pip install tox-travi...
Use test matrix for python versions
Use test matrix for python versions
YAML
mit
scottwernervt/cloudstorage
yaml
## Code Before: language: python sudo: false cache: pip python: - '3.4' - '3.5' - '3.6' before_install: - openssl aes-256-cbc -K $encrypted_12e75a453f27_key -iv $encrypted_12e75a453f27_iv -in gcs-service-account.json.enc -out gcs-service-account.json -d install: - pip install --upgrade setuptools - pip i...
c8bf23253aaacb880f438b7093c85c76767734e7
duedil/resources/pro/company/accounts/__init__.py
duedil/resources/pro/company/accounts/__init__.py
'Accounts' from __future__ import unicode_literals from .... import ProResource, RelatedResourceMixin import six import sys class Account(RelatedResourceMixin, ProResource): 'Abstraction of Accounts resource in duedil v3 pro api' attribute_names = [ 'uri', 'date', 'type' ] acc...
'Accounts' from __future__ import unicode_literals from .... import ProResource, RelatedResourceMixin import six import sys class Account(RelatedResourceMixin, ProResource): 'Abstraction of Accounts resource in duedil v3 pro api' attribute_names = [ 'uri', 'date', 'type' ] acc...
Use dict comprehension instead of dict([...])
Use dict comprehension instead of dict([...])
Python
apache-2.0
founders4schools/duedilv3
python
## Code Before: 'Accounts' from __future__ import unicode_literals from .... import ProResource, RelatedResourceMixin import six import sys class Account(RelatedResourceMixin, ProResource): 'Abstraction of Accounts resource in duedil v3 pro api' attribute_names = [ 'uri', 'date', 'typ...
017efb244ba3cb02dbe17a3f0f494941315ccce2
cmake/MiscCheck.cmake
cmake/MiscCheck.cmake
INCLUDE(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_CXX11_STANDARD_COMPILE_OPTION}) CHECK_CXX_SOURCE_COMPILES( "#include <cstdint> template <typename T> void Foo(); template<> void Foo<int32_t>() {} template<> void Foo<int64_t>() {} int main(int argc, char** argv) { Foo<lo...
INCLUDE(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_FLAGS "-std=c++11") CHECK_CXX_SOURCE_COMPILES( "#include <cstdint> template <typename T> void Foo(); template<> void Foo<int32_t>() {} template<> void Foo<int64_t>() {} int main(int argc, char** argv) { Foo<long>(); return 0; }" C...
Move c++11 check to cmake 2.8
Move c++11 check to cmake 2.8 Previous check required cmake >= 3.1
CMake
apache-2.0
sf-wind/caffe2,Yangqing/caffe2,sf-wind/caffe2,pietern/caffe2,bwasti/caffe2,bwasti/caffe2,Yangqing/caffe2,Yangqing/caffe2,Yangqing/caffe2,sf-wind/caffe2,davinwang/caffe2,bwasti/caffe2,pietern/caffe2,davinwang/caffe2,xzturn/caffe2,bwasti/caffe2,pietern/caffe2,xzturn/caffe2,xzturn/caffe2,pietern/caffe2,xzturn/caffe2,bwast...
cmake
## Code Before: INCLUDE(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_CXX11_STANDARD_COMPILE_OPTION}) CHECK_CXX_SOURCE_COMPILES( "#include <cstdint> template <typename T> void Foo(); template<> void Foo<int32_t>() {} template<> void Foo<int64_t>() {} int main(int argc, char** argv...
cdf18b9c2b935b8208bc5170bf54b7815b03a9a4
README.md
README.md
CSSLayout [![Build Status](https://travis-ci.org/facebook/css-layout.svg?branch=master)](https://travis-ci.org/facebook/css-layout) ==================================================================================================== ``` css-layout is currently in the process of big changes. If you are looking at using ...
CSSLayout [![Build Status](https://travis-ci.org/facebook/css-layout.svg?branch=master)](https://travis-ci.org/facebook/css-layout) ==================================================================================================== ``` css-layout is currently in the process of big changes. If you are looking at using ...
Update readme with java instructions
Update readme with java instructions Summary: Java instructions were missing from the readme. Add a quick note about how to run tests in java. Reviewed By: lucasr Differential Revision: D3648981 fbshipit-source-id: d9009a60bb1bb0837722f914981ef4e31f0adb68
Markdown
mit
rmarinho/yoga,facebook/yoga,rmarinho/yoga,facebook/css-layout,yihuang/css-layout,facebook/css-layout,facebook/css-layout,rmarinho/yoga,yihuang/css-layout,facebook/yoga,facebook/css-layout,facebook/yoga,rmarinho/yoga,yihuang/css-layout,facebook/css-layout,rmarinho/yoga,facebook/yoga,yihuang/css-layout,facebook/css-layou...
markdown
## Code Before: CSSLayout [![Build Status](https://travis-ci.org/facebook/css-layout.svg?branch=master)](https://travis-ci.org/facebook/css-layout) ==================================================================================================== ``` css-layout is currently in the process of big changes. If you are l...
d8cd94c7467696905f21885b15b5096db5b623a4
docu/examples/example8-uncaught-runtime-errors.ipf
docu/examples/example8-uncaught-runtime-errors.ipf
// Command: RunTest("example8-uncaught-runtime-errors.ipf") // Shows when User code generates an uncaught Runtime Error. // The test environment catches this condition and gives // a detailed error message in the history // The Runtime Error is of course treated as FAIL Function TestWaveOp() WAVE/Z/SDFR=$"I dont ex...
// Command: RunTest("example8-uncaught-runtime-errors.ipf") // Shows when User code generates an uncaught Runtime Error. // The test environment catches this condition and gives // a detailed error message in the history // The Runtime Error is of course treated as FAIL Function TestWaveOp() WAVE/Z/SDFR=$"I dont ex...
Move Pass() to the end of the block
Move Pass() to the end of the block This is more in par with the common order of commands.
IGOR Pro
bsd-3-clause
t-b/igor-unit-testing-framework,t-b/igor-unit-testing-framework
igor-pro
## Code Before: // Command: RunTest("example8-uncaught-runtime-errors.ipf") // Shows when User code generates an uncaught Runtime Error. // The test environment catches this condition and gives // a detailed error message in the history // The Runtime Error is of course treated as FAIL Function TestWaveOp() WAVE/Z/...
3b2d126218830ce9db81bd317d53f6a45df3cc76
Gantverg_Git_Demo_Project/src/HelloWorldAppl.java
Gantverg_Git_Demo_Project/src/HelloWorldAppl.java
public class HelloWorldAppl { public static void main(String[] args) { System.out.println("Hello, world!"); } }
public class HelloWorldAppl { public static void main(String[] args) { System.out.println("Hello, world!"); System.out.println("Good buy, world!"); } }
Add "Good buy" to main appl
Add "Good buy" to main appl
Java
mit
alx77-demo/demo
java
## Code Before: public class HelloWorldAppl { public static void main(String[] args) { System.out.println("Hello, world!"); } } ## Instruction: Add "Good buy" to main appl ## Code After: public class HelloWorldAppl { public static void main(String[] args) { System.out.println("Hello, world!"); System.out...
2cae3a623bce4336f55ef8ec12f1de1dcfb8a637
test/test_view.py
test/test_view.py
import pytest
from PySide import QtGui import qmenuview def test_title(qtbot): title = 'Test title' qmenuview.MenuView(title) assert qmenuview.title() == title def test_parent(qtbot): p = QtGui.QWidget() qmenuview.MenuView(parent=p) assert qmenuview.parent() is p
Add first simple title and parent test
Add first simple title and parent test
Python
bsd-3-clause
storax/qmenuview
python
## Code Before: import pytest ## Instruction: Add first simple title and parent test ## Code After: from PySide import QtGui import qmenuview def test_title(qtbot): title = 'Test title' qmenuview.MenuView(title) assert qmenuview.title() == title def test_parent(qtbot): p = QtGui.QWidget() qme...