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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5baa844c5f0b53ec4c451ea6f7a661c919190c4a | Sources/Moya/MoyaProvider+Defaults.swift | Sources/Moya/MoyaProvider+Defaults.swift | import Alamofire
/// These functions are default mappings to `MoyaProvider`'s properties: endpoints, requests, manager, etc.
public extension MoyaProvider {
public final class func defaultEndpointMapping(for target: Target) -> Endpoint<Target> {
let url = target.baseURL.appendingPathComponent(target.path).... | import Foundation
import Alamofire
/// These functions are default mappings to `MoyaProvider`'s properties: endpoints, requests, manager, etc.
public extension MoyaProvider {
public final class func defaultEndpointMapping(for target: Target) -> Endpoint<Target> {
let url = target.baseURL.appendingPathCompo... | Add Foundation import to fix SPM build error. | Add Foundation import to fix SPM build error.
| Swift | mit | ashfurrow/Moya,Moya/Moya,calt/Moya,AvdLee/Moya,justinmakaila/Moya,Moya/Moya,ashfurrow/Moya,AvdLee/Moya,Moya/Moya,justinmakaila/Moya,AvdLee/Moya,justinmakaila/Moya,calt/Moya,calt/Moya | swift | ## Code Before:
import Alamofire
/// These functions are default mappings to `MoyaProvider`'s properties: endpoints, requests, manager, etc.
public extension MoyaProvider {
public final class func defaultEndpointMapping(for target: Target) -> Endpoint<Target> {
let url = target.baseURL.appendingPathCompone... |
02189c43564f661742378a7623b22409aa7c295f | config/locales/en.yml | config/locales/en.yml | en:
spree:
buy_gift_card: "Buy gift card"
gift_card: 'Gift Card'
gift_cards: "Gift cards"
gift_card_calculator: 'Gift Card Calculator'
gift_code: 'Gift Code'
gift_code_applied: 'Gift code has been successfully applied to your order.'
gift_code_not_found: "The gift code you entered doesn't ... | en:
spree:
apply: "Apply"
back_to_gift_cards_list: "Back to Gift Cards List"
buy_gift_card: "Buy gift card"
current_value: "Current Value"
gift_card: 'Gift Card'
gift_cards: "Gift cards"
gift_card_calculator: 'Gift Card Calculator'
gift_code: 'Gift Code'
gift_code_applied: 'Gift co... | Add a few more translations. | Add a few more translations.
| YAML | bsd-3-clause | dotandbo/spree_gift_card,mr-ado/spree_gift_card,AdamGoodApp/spree_gift_card,JDutil/spree_gift_card,AdamGoodApp/spree_gift_card,mr-ado/spree_gift_card,AdamGoodApp/spree_gift_card,tcjuan/spree_gift_card,Boomkat/spree_gift_card,tcjuan/spree_gift_card,dotandbo/spree_gift_card,Boomkat/spree_gift_card,JDutil/spree_gift_card,... | yaml | ## Code Before:
en:
spree:
buy_gift_card: "Buy gift card"
gift_card: 'Gift Card'
gift_cards: "Gift cards"
gift_card_calculator: 'Gift Card Calculator'
gift_code: 'Gift Code'
gift_code_applied: 'Gift code has been successfully applied to your order.'
gift_code_not_found: "The gift code you ... |
d3f35787fe191b350fb75d72ed99c05dfba16144 | lib/punchblock/protocol/rayo/event/dtmf.rb | lib/punchblock/protocol/rayo/event/dtmf.rb | module Punchblock
module Protocol
class Rayo
module Event
class DTMF < RayoNode
register :dtmf, :core
def signal
read_attr :signal
end
def inspect_attributes # :nodoc:
[:signal] + super
end
end # End
end
en... | module Punchblock
module Protocol
class Rayo
module Event
class DTMF < RayoNode
register :dtmf, :core
def signal
read_attr :signal
end
def signal=(other)
write_attr :signal, other
end
def inspect_attributes # :nod... | Allow setting the signal on a DTMF event | Allow setting the signal on a DTMF event | Ruby | mit | system123/punchblock,adhearsion/punchblock,cloudvox/punchblock,kares/punchblock | ruby | ## Code Before:
module Punchblock
module Protocol
class Rayo
module Event
class DTMF < RayoNode
register :dtmf, :core
def signal
read_attr :signal
end
def inspect_attributes # :nodoc:
[:signal] + super
end
end # End
... |
63cebaf6d25fbff0815afc97e9574c1b9e66ce83 | zsh/7.arch.zsh | zsh/7.arch.zsh |
if [[ ! -f /etc/arch-release ]]; then
return
fi
prepend-path $HOME/.bin/arch
if [[ -d $HOME/build || -d $HOME/opt/build ]]; then
if [[ ! -f ${XDG_DATA_HOME:-$HOME/.local/share}/aur-update ]]; then
echo "${fg[red]}Found an AUR build folder, but no update data available. Please configure aur-update in cron.${t... |
if [[ ! -f /etc/arch-release ]]; then
return
fi
prepend-path $HOME/.bin/arch
if [[ -d $HOME/build || -d $HOME/opt/build ]]; then
if [[ ! -f ${XDG_DATA_HOME:-$HOME/.local/share}/aur-update ]]; then
echo "${fg[red]}Found an AUR build folder, but no update data available. Please configure aur-update in cron.${t... | Add a remove-orphaned packages alias for Arch | Add a remove-orphaned packages alias for Arch
| Shell | mit | mscharley/dotfiles,mscharley/dotfiles,mscharley/dotfiles,mscharley/dotfiles | shell | ## Code Before:
if [[ ! -f /etc/arch-release ]]; then
return
fi
prepend-path $HOME/.bin/arch
if [[ -d $HOME/build || -d $HOME/opt/build ]]; then
if [[ ! -f ${XDG_DATA_HOME:-$HOME/.local/share}/aur-update ]]; then
echo "${fg[red]}Found an AUR build folder, but no update data available. Please configure aur-up... |
3f62d2ab8f583ed7957983ae47f8e07860e5e72a | .travis.yml | .travis.yml | language: ruby
rvm:
- "2.2.1"
before_install:
- sudo add-apt-repository ppa:jon-severinsson/ffmpeg -y
- sudo apt-get update -qq
- sudo apt-get install -qq libsndfile1-dev libsox-fmt-all lame mp3val sox twolame
- sudo apt-get install -qq ffmpeg
| language: ruby
rvm:
- "2.2.1"
- "2.3.1"
before_install:
- sudo add-apt-repository ppa:jonathonf/ffmpeg -y
- sudo apt-get update -qq
- sudo apt-get install -qq libsndfile1-dev libsox-fmt-all lame mp3val sox twolame
- sudo apt-get install -qq ffmpeg
| Change PPA url, add ruby 2.3.1 | Change PPA url, add ruby 2.3.1
| YAML | mit | PRX/audio_monster | yaml | ## Code Before:
language: ruby
rvm:
- "2.2.1"
before_install:
- sudo add-apt-repository ppa:jon-severinsson/ffmpeg -y
- sudo apt-get update -qq
- sudo apt-get install -qq libsndfile1-dev libsox-fmt-all lame mp3val sox twolame
- sudo apt-get install -qq ffmpeg
## Instruction:
Change PPA url, add ruby 2.3.1
#... |
d1c85c359d11495c741d7bab8558c3a69ea90d0c | README.md | README.md | Make Brexit as delicious as breakfast. This Chrome extension replaces all occurrences of the word Brexit with the word breakfast. Enjoy!
Why?
This: https://twitter.com/elliwsan/status/783246302691876868
Who?
This extension is courtesy of Lady Geek, http://ladygeek.nl.
How?
I based this on an excellent tutorial from ... |
[Make Brexit as delicious as breakfast](https://twitter.com/elliwsan/status/783246302691876868). This Chrome extension replaces all occurrences of the word Brexit with the word breakfast. Enjoy!
(If you've already installed this extension, this readme may be a bit confusing. Well, not as confusing as Brexit itself, I... | Read even more in this new readme. | Read even more in this new readme. | Markdown | mit | nieske/brexit-at-tiffanys | markdown | ## Code Before:
Make Brexit as delicious as breakfast. This Chrome extension replaces all occurrences of the word Brexit with the word breakfast. Enjoy!
Why?
This: https://twitter.com/elliwsan/status/783246302691876868
Who?
This extension is courtesy of Lady Geek, http://ladygeek.nl.
How?
I based this on an excellen... |
29a5a636ce4f3246aded7892819bd11789f28fab | modules/collectd/templates/etc/collectd/conf.d/redis.conf.erb | modules/collectd/templates/etc/collectd/conf.d/redis.conf.erb |
<LoadPlugin python>
Globals true
</LoadPlugin>
<Plugin python>
ModulePath "/opt/collectd/lib/collectd/plugins/python"
Import "redis_info"
<Module redis_info>
Host "<%= @host %>"
Port <%= @port %>
Verbose false
</Module>
</Plugin>
|
<LoadPlugin python>
Globals true
</LoadPlugin>
<Plugin python>
ModulePath "/usr/lib/collectd/python"
Import "redis_info"
<Module redis_info>
Host "<%= @host %>"
Port <%= @port %>
Verbose false
</Module>
</Plugin>
| Use the correct ModulePath for the redis_info plugin location | Use the correct ModulePath for the redis_info plugin location
| HTML+ERB | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | html+erb | ## Code Before:
<LoadPlugin python>
Globals true
</LoadPlugin>
<Plugin python>
ModulePath "/opt/collectd/lib/collectd/plugins/python"
Import "redis_info"
<Module redis_info>
Host "<%= @host %>"
Port <%= @port %>
Verbose false
</Module>
</Plugin>
## Instruction:
Use the correct ModulePath for t... |
fa814378ed7a34f6c6582dca2bfb6e1a0491ffb8 | pom.xml | pom.xml | <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.nullprogram</groupId>
<artifactId>native-guide</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>NativeGuide</name>
<description>Helper for loading native libraries from resources.</description>
<url>http://nullprogra... | <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.nullprogram</groupId>
<artifactId>native-guide</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>NativeGuide</name>
<description>Helper for loading native libraries from resources.</description>
<url>http://nullprogra... | Add Sonatype as a parent. | Add Sonatype as a parent.
| XML | unlicense | skeeto/NativeGuide,skeeto/NativeGuide | xml | ## Code Before:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.nullprogram</groupId>
<artifactId>native-guide</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>NativeGuide</name>
<description>Helper for loading native libraries from resources.</description>
<url>h... |
f4c7117eae4a95614a48c5ca18f476a9ba7090cc | metadata.json | metadata.json | {
"name": "zleslie-openvpn",
"version": "1.1.1",
"author": "zleslie",
"summary": "Puppet powered OpenVPN",
"license": "Apache License Version 2.0",
"source": "git://github.com/xaque208/puppet-openvpn.git",
"project_page": "https://github.com/xaque208/puppet-openvpn",
"issues_url": "https://github.com/xa... | {
"name": "zleslie-openvpn",
"version": "1.1.1",
"author": "zleslie",
"summary": "Puppet powered OpenVPN",
"license": "Apache License Version 2.0",
"source": "git://github.com/xaque208/puppet-openvpn.git",
"project_page": "https://github.com/xaque208/puppet-openvpn",
"issues_url": "https://github.com/xa... | Add more OpenBSD versions as supported | Add more OpenBSD versions as supported
| JSON | apache-2.0 | buzzdeee/puppet-openvpn,xaque208/puppet-openvpn,buzzdeee/puppet-openvpn,xaque208/puppet-openvpn,buzzdeee/puppet-openvpn,cirrax/puppet-openvpn,xaque208/puppet-openvpn,cirrax/puppet-openvpn,cirrax/puppet-openvpn | json | ## Code Before:
{
"name": "zleslie-openvpn",
"version": "1.1.1",
"author": "zleslie",
"summary": "Puppet powered OpenVPN",
"license": "Apache License Version 2.0",
"source": "git://github.com/xaque208/puppet-openvpn.git",
"project_page": "https://github.com/xaque208/puppet-openvpn",
"issues_url": "https... |
03a22d315a658c547b3cdcc31a94f862c60ddb58 | slick/src/main/scala/slick/util/ReadAheadIterator.scala | slick/src/main/scala/slick/util/ReadAheadIterator.scala | package slick.util
/**
* An iterator on top of a data source which does not offer a hasNext()
* method without doing a next()
*/
trait ReadAheadIterator[+T] extends BufferedIterator[T] {
private[this] var state = 0 // 0: no data, 1: cached, 2: finished
private[this] var cached: T = null.asInstanceOf[T]
prot... | package slick.util
/**
* An iterator on top of a data source which does not offer a hasNext()
* method without doing a next()
*/
trait ReadAheadIterator[+T] extends BufferedIterator[T] {
private[this] var state = 0 // 0: no data, 1: cached, 2: finished
private[this] var cached: T = null.asInstanceOf[T]
prot... | Implement Implicit Class with Extension Method | Implement Implicit Class with Extension Method
This extends support for headOption in 2.11 while allowing the inherent functionality provided by 2.12 to take precedence once 2.12 is released.
| Scala | bsd-2-clause | nafg/slick,Asamsig/slick,xavier-fernandez/slick,trevorsibanda/slick,nremond/slick,marko-asplund/slick,Radsaggi/slick,Radsaggi/slick,nremond/slick,nremond/slick,xavier-fernandez/slick,xavier-fernandez/slick,kwark/slick | scala | ## Code Before:
package slick.util
/**
* An iterator on top of a data source which does not offer a hasNext()
* method without doing a next()
*/
trait ReadAheadIterator[+T] extends BufferedIterator[T] {
private[this] var state = 0 // 0: no data, 1: cached, 2: finished
private[this] var cached: T = null.asInsta... |
d9d111b3281414257288d73f72dd143ef50aadea | lib/pdc/v1/product.rb | lib/pdc/v1/product.rb | module PDC::V1
class Product < PDC::Base
end
end
| module PDC::V1
class Product < PDC::Base
attributes :name, :short, :active, :product_versions, :internal
end
end
| Add known attributes to PDC::V1::Product | Add known attributes to PDC::V1::Product
This patch fixes issue 22 where fetching a product resulted in
warning about unknown attributes. This has now been fixed by
adding the list of attributes to Product.
| Ruby | mit | product-definition-center/pdc-ruby-gem,product-definition-center/pdc-ruby-gem | ruby | ## Code Before:
module PDC::V1
class Product < PDC::Base
end
end
## Instruction:
Add known attributes to PDC::V1::Product
This patch fixes issue 22 where fetching a product resulted in
warning about unknown attributes. This has now been fixed by
adding the list of attributes to Product.
## Code After:
module PDC... |
f24b4b6c6291e4fa78c878a9cb4cd4b735abde60 | README.md | README.md |
Tracker for life-wide goals.
[]()
|
Tracker for life-wide goals.
[](https://travis-ci.org/rwillrich/life-goals-tracker)
| Add link to Travis badge | Add link to Travis badge
| Markdown | mit | rwillrich/life-goals-tracker | markdown | ## Code Before:
Tracker for life-wide goals.
[]()
## Instruction:
Add link to Travis badge
## Code After:
Tracker for life-wide goals.
[](https://travis-ci.org/rwillrich/life-goa... |
4433c46e35f8362985b38b13dfd7410792f1199b | bin/emacs-gui.sh | bin/emacs-gui.sh | if [ ! -f "$1" ]; then
touch "$1"
fi
open -a `brew --prefix emacs`/Emacs.app "$1"
| if [ ! -f "$1" ]; then
touch "$1"
fi
if [ -e $(brew --prefix --HEAD emacs)/Emacs.app ]; then
open -a `brew --prefix --HEAD emacs`/Emacs.app "$1"
else
open -a `brew --prefix emacs`/Emacs.app "$1"
fi
| Update GUI launcher to handle HEAD brew installs | Update GUI launcher to handle HEAD brew installs | Shell | mit | lstoll/repo,lstoll/dotfiles,lstoll/dotfiles,lstoll/repo,lstoll/repo,lstoll/dotfiles | shell | ## Code Before:
if [ ! -f "$1" ]; then
touch "$1"
fi
open -a `brew --prefix emacs`/Emacs.app "$1"
## Instruction:
Update GUI launcher to handle HEAD brew installs
## Code After:
if [ ! -f "$1" ]; then
touch "$1"
fi
if [ -e $(brew --prefix --HEAD emacs)/Emacs.app ]; then
open -a `brew --prefix --HEAD emacs`/Ema... |
c14bea03e77d0b7573ae087c879cadfc3ca9c970 | firefox/prefs.js | firefox/prefs.js | user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("accessibility.typeaheadfind.prefillwithselection", true);
user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.newtab.url", "about:blank");
user_pref("browser.search.suggest.enabled"... | user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("accessibility.typeaheadfind.prefillwithselection", true);
user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.newtab.url", "about:blank");
user_pref("browser.readinglist.enabled", f... | Disable a few unused features | firefox: Disable a few unused features
| JavaScript | mit | poiru/dotfiles,poiru/dotfiles,poiru/dotfiles | javascript | ## Code Before:
user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("accessibility.typeaheadfind.prefillwithselection", true);
user_pref("browser.backspace_action", 2);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.newtab.url", "about:blank");
user_pref("browser.search.... |
cd145bf657a41a59d960a33014f19dc398256379 | docker-compose.yml | docker-compose.yml | web:
build: ./bin/web/php5-6/
links:
- mysql
- smtp
mysql:
image: mysql:5.6.23
ports:
- "3307:3306"
smtp:
image: schickling/mailcatcher
container_name: smtp-hipay-mg-latest
ports:
- "1095:1080"
| web:
build: ./bin/docker/php5-6/
dockerfile: ./bin/docker/php5-6/Dockerfile
links:
- mysql
- smtp
mysql:
image: mysql:5.6.23
ports:
- "3307:3306"
smtp:
image: schickling/mailcatcher
container_name: smtp-hipay-mg-latest
ports:
- "1095:1080"
| Rework PHP 5.4 and upgrade docker | Rework PHP 5.4 and upgrade docker
| YAML | apache-2.0 | hipay/hipay-fullservice-sdk-magento1,hipay/hipay-fullservice-sdk-magento1,hipay/hipay-fullservice-sdk-magento1,hipay/hipay-fullservice-sdk-magento1 | yaml | ## Code Before:
web:
build: ./bin/web/php5-6/
links:
- mysql
- smtp
mysql:
image: mysql:5.6.23
ports:
- "3307:3306"
smtp:
image: schickling/mailcatcher
container_name: smtp-hipay-mg-latest
ports:
- "1095:1080"
## Instruction:
Rework PHP 5.4 and upgrade docker
## Code After:
web:
build:... |
0cfe56cef5f6a1af5073332a34569bdc1d89414c | .coco.yml | .coco.yml | :directories:
- lib
:excludes:
- spec
- lib/secretsharing/version.rb
:single_line_report: false
| :directories:
- lib
:excludes:
- spec
- lib/secretsharing/version.rb
- lib/backports/bit_length.rb
:single_line_report: false
| Exclude bit_length backport from further code coverage checks. | Exclude bit_length backport from further code coverage checks.
| YAML | apache-2.0 | grempe/secretsharing | yaml | ## Code Before:
:directories:
- lib
:excludes:
- spec
- lib/secretsharing/version.rb
:single_line_report: false
## Instruction:
Exclude bit_length backport from further code coverage checks.
## Code After:
:directories:
- lib
:excludes:
- spec
- lib/secretsharing/version.rb
- lib/backports/bit_length.rb
:single_line_... |
45aa05367140c68de6b09efaee1fa6a72ee3a1ae | IdeaFight/Shuffle.elm | IdeaFight/Shuffle.elm | module IdeaFight.Shuffle exposing (shuffle)
import Random exposing (Generator)
extractValueHelper : List a -> Int -> List a -> ( a, List a )
extractValueHelper values index accumulator =
case ( index, values ) of
( _, [] ) ->
Debug.crash "Out of values to extract"
( 0, head :: tail )... | module IdeaFight.Shuffle exposing (shuffle)
import Random exposing (Generator)
extractValueHelper : a -> List a -> Int -> List a -> ( a, List a )
extractValueHelper first_value rest_values index accumulator =
case ( index, rest_values ) of
( 0, _) ->
( first_value, List.append (List.reverse a... | Rearrange types in shuffle to avoid crash | Rearrange types in shuffle to avoid crash
Debug.crash was removed from Elm 0.19, so I needed to work around this.
In reality, extractValueHelper and extractValue should never get passed
empty lists, and the Debug.crash invocation was meant to make things
typecheck in this case - so instead we can just use some type ma... | Elm | mit | hoelzro/idea-fight | elm | ## Code Before:
module IdeaFight.Shuffle exposing (shuffle)
import Random exposing (Generator)
extractValueHelper : List a -> Int -> List a -> ( a, List a )
extractValueHelper values index accumulator =
case ( index, values ) of
( _, [] ) ->
Debug.crash "Out of values to extract"
( 0... |
ac1570f925e05ac09421f063c320dd2f1afd0f8b | README.md | README.md | DBC Hackathon Project
[Live link][live]
[live]: http://hack1n-slash.herokuapp.com/
## Concept
HACK1N-Slash is a typing demo that tracks a user's typing speed and accuracy. In order to practice typing in a user's language of choice, users can paste URLs from any project on github, and test their typing in that file... | 2nd Place Project for DBC's November Hackathon!
Check it out on [Heroku](http://hack1n-slash.herokuapp.com/)!
## Concept
HACK1N-Slash is a typing demo that tracks a user's typing speed and accuracy. In order to practice typing in a user's language of choice, users can paste URLs from any project on github, and test... | Update readme to include full details. | Update readme to include full details.
MORE DESCRIPTIVE | Markdown | mit | hdngo/TeamHACKIN,hdngo/TeamHACKIN,hdngo/TeamHACKIN | markdown | ## Code Before:
DBC Hackathon Project
[Live link][live]
[live]: http://hack1n-slash.herokuapp.com/
## Concept
HACK1N-Slash is a typing demo that tracks a user's typing speed and accuracy. In order to practice typing in a user's language of choice, users can paste URLs from any project on github, and test their typ... |
ac931b6cbe658281fbdd5aa0864ad052cfc9194e | tests/Domain/Stock/StockTest.php | tests/Domain/Stock/StockTest.php | <?php
namespace MageTitans\Workshop\Domain\Stock;
use PHPUnit\Framework\TestCase;
final class StockTest extends TestCase
{
public function testGetInStock()
{
$stock = new Stock(
false,
0
);
$this->assertFalse($stock->getInStock());
}
} | <?php
namespace MageTitans\Workshop\Domain\Stock;
use PHPUnit\Framework\TestCase;
final class StockTest extends TestCase
{
/**
* @dataProvider getInStockProvider
*/
public function testGetInStock($inStock, $expectedInStock)
{
$stock = new Stock(
$inStock,
100
... | Test both functions in the stock object | Test both functions in the stock object
| PHP | mit | dmanners/mage-titans-it | php | ## Code Before:
<?php
namespace MageTitans\Workshop\Domain\Stock;
use PHPUnit\Framework\TestCase;
final class StockTest extends TestCase
{
public function testGetInStock()
{
$stock = new Stock(
false,
0
);
$this->assertFalse($stock->getInStock());
}
}
## In... |
ab13f35fd038925b57bce799e9397ae7e69cdf93 | README.md | README.md | Howl
====
[](https://travis-ci.org/stevebob/howl)
| Howl
====
## Build Status
### Unix
[](https://travis-ci.org/stevebob/howl)
### Windows
[](https://ci.appveyor.com/project/stevebob/howl)
| Add appveyor status to readme | Add appveyor status to readme | Markdown | mit | stevebob/apocalypse-post,stevebob/apocalypse-post | markdown | ## Code Before:
Howl
====
[](https://travis-ci.org/stevebob/howl)
## Instruction:
Add appveyor status to readme
## Code After:
Howl
====
## Build Status
### Unix
[](https://tr... |
19f8603f2421fbdd09b3c6b7187f227a9ef85c56 | app/controllers/crowdblog/admin/transitions_controller.rb | app/controllers/crowdblog/admin/transitions_controller.rb | module Crowdblog
module Admin
class TransitionsController < Crowdblog::Admin::BaseController
respond_to :json
before_filter :load_post, only: [:create]
def create
namespace = '_as_publisher' if current_user.is_publisher?
@post.send "#{params[:transition]}#{namespace}"
re... | module Crowdblog
module Admin
class TransitionsController < Crowdblog::Admin::BaseController
respond_to :json
before_filter :load_post, only: [:create]
cache_sweeper :post_sweeper
def create
namespace = '_as_publisher' if current_user.is_publisher?
@post.send "#{params[:tr... | Fix post cache when doing state transitions | Fix post cache when doing state transitions
| Ruby | mit | crowdint/crowdblog,crowdint/crowdblog,chukitow/crowdblog,chukitow/crowdblog,chukitow/crowdblog,crowdint/crowdblog,chukitow/crowdblog,crowdint/crowdblog | ruby | ## Code Before:
module Crowdblog
module Admin
class TransitionsController < Crowdblog::Admin::BaseController
respond_to :json
before_filter :load_post, only: [:create]
def create
namespace = '_as_publisher' if current_user.is_publisher?
@post.send "#{params[:transition]}#{namesp... |
0131a25352bb1ebfe5bc08e660dcfea0a04f2667 | doc/commands.txt | doc/commands.txt | /pgp keyId passphrase
/add jid
/del jid
/set online|away|offline|invisible|not-available[|...]
/msg jid text
/pwd password
/log quiet|verbose|debug
| /pgp keyId passphrase
/add jid
/del jid
/set online|away|offline|invisible|not-available[|...]
/msg jid text
/pwd password
| Remove setting logging at runtime. (Use compile flags instead.) | Remove setting logging at runtime. (Use compile flags instead.)
| Text | isc | def-/sxc | text | ## Code Before:
/pgp keyId passphrase
/add jid
/del jid
/set online|away|offline|invisible|not-available[|...]
/msg jid text
/pwd password
/log quiet|verbose|debug
## Instruction:
Remove setting logging at runtime. (Use compile flags instead.)
## Code After:
/pgp keyId passphrase
/add jid
/del jid
/set online|away|of... |
98bdb678a9092c5c19bc2b379cca74a2ed33c457 | libqtile/layout/subverttile.py | libqtile/layout/subverttile.py | from base import SubLayout, Rect
from sublayouts import HorizontalStack
from subtile import SubTile
class SubVertTile(SubTile):
arrangements = ["top", "bottom"]
def _init_sublayouts(self):
ratio = self.ratio
expand = self.expand
master_windows = self.master_windows
arrangem... | from base import SubLayout, Rect
from sublayouts import HorizontalStack
from subtile import SubTile
class SubVertTile(SubTile):
arrangements = ["top", "bottom"]
def _init_sublayouts(self):
class MasterWindows(HorizontalStack):
def filter(self, client):
return self.index... | Refactor SubVertTile - make sublayout use the parents' variables | Refactor SubVertTile - make sublayout use the parents' variables
| Python | mit | rxcomm/qtile,de-vri-es/qtile,EndPointCorp/qtile,zordsdavini/qtile,bavardage/qtile,nxnfufunezn/qtile,encukou/qtile,andrewyoung1991/qtile,ramnes/qtile,himaaaatti/qtile,de-vri-es/qtile,frostidaho/qtile,encukou/qtile,andrewyoung1991/qtile,w1ndy/qtile,frostidaho/qtile,nxnfufunezn/qtile,StephenBarnes/qtile,farebord/qtile,kop... | python | ## Code Before:
from base import SubLayout, Rect
from sublayouts import HorizontalStack
from subtile import SubTile
class SubVertTile(SubTile):
arrangements = ["top", "bottom"]
def _init_sublayouts(self):
ratio = self.ratio
expand = self.expand
master_windows = self.master_windows
... |
bd74c8f3a6bb3b654029a48aba6ffc627379022e | README.md | README.md |
Andriod app to help you training in archery. At the moment it allows the user to:
- Load free training information
- Create tournament information
- Do retentions
Check [Google Play](https://play.google.com/store/apps/details?id=ar.com.tzulberti.archerytraining)
to get the application.
# Assets
- The target image... |
<h1 align=center>
<img src="Logo/horizontal.png" width=50%>
</h1>
Andriod app to help you training in archery. At the moment it allows the user to:
- Load free training information
- Create tournament information
- Do retentions
Check [Google Play](https://play.google.com/store/apps/details?id=ar.com.tzulberti.arch... | Add logo and my name to readme | Add logo and my name to readme | Markdown | mit | tzulberti/archery-training | markdown | ## Code Before:
Andriod app to help you training in archery. At the moment it allows the user to:
- Load free training information
- Create tournament information
- Do retentions
Check [Google Play](https://play.google.com/store/apps/details?id=ar.com.tzulberti.archerytraining)
to get the application.
# Assets
- ... |
17090aae3b2dc292bc0aa42cb53371f2feb29183 | library/src/com/twotoasters/jazzylistview/effects/FadeEffect.java | library/src/com/twotoasters/jazzylistview/effects/FadeEffect.java | package com.twotoasters.jazzylistview.effects;
import android.view.View;
import com.nineoldandroids.view.ViewHelper;
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.twotoasters.jazzylistview.JazzyEffect;
import com.twotoasters.jazzylistview.JazzyListView;
public class FadeEffect implements JazzyEffe... | package com.twotoasters.jazzylistview.effects;
import android.view.View;
import com.nineoldandroids.view.ViewHelper;
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.twotoasters.jazzylistview.JazzyEffect;
import com.twotoasters.jazzylistview.JazzyListView;
public class FadeEffect implements JazzyEffe... | Fix error while factoring out fade effect | Fix error while factoring out fade effect
| Java | apache-2.0 | hgl888/JazzyListView,qingsong-xu/JazzyListView,Tok11313/MySimoneRepository,xunyixiangchao/callCar,chengkaizone/JazzyListView,lxhxhlw/JazzyListView,hanhailong/JazzyListView,ukri82/JazzyListView,twotoasters/JazzyListView,yincs/JazzyListView,ajju4455/JazzyListView,java02014/JazzyListView,jaohoang/JazzyListView | java | ## Code Before:
package com.twotoasters.jazzylistview.effects;
import android.view.View;
import com.nineoldandroids.view.ViewHelper;
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.twotoasters.jazzylistview.JazzyEffect;
import com.twotoasters.jazzylistview.JazzyListView;
public class FadeEffect impl... |
458fd49fdf73f5cc338c58b1e741fde42f2f7251 | exampleapp/models.py | exampleapp/models.py | from galleries.models import Gallery, ImageModel
from django.db import models
from imagekit.models import ImageSpec
from imagekit.processors.resize import Fit
class Photo(ImageModel):
thumbnail = ImageSpec([Fit(50, 50)])
full = ImageSpec([Fit(400, 200)])
caption = models.CharField(max_length=100)
class ... | from galleries.models import Gallery, ImageModel
from django.db import models
from imagekit.models import ImageSpec
from imagekit.processors import ResizeToFit
class Photo(ImageModel):
thumbnail = ImageSpec([ResizeToFit(50, 50)])
full = ImageSpec([ResizeToFit(400, 200)])
caption = models.CharField(max_len... | Use (not so) new processor class names | Use (not so) new processor class names
| Python | mit | hzdg/django-galleries,hzdg/django-galleries,hzdg/django-galleries | python | ## Code Before:
from galleries.models import Gallery, ImageModel
from django.db import models
from imagekit.models import ImageSpec
from imagekit.processors.resize import Fit
class Photo(ImageModel):
thumbnail = ImageSpec([Fit(50, 50)])
full = ImageSpec([Fit(400, 200)])
caption = models.CharField(max_leng... |
864ca3d532ac17f35821ff6a99037e5a67247bb0 | resources/js/progress_graph.js | resources/js/progress_graph.js | var PHRAGILE = PHRAGILE || {};
(function (PHRAGILE) {
/**
* Same as Graph but also renders graph areas under the line.
* ProgressGraph will be limited to dates <= today.
* @param {Object[]} data
* @param {string} cssID - Its CSS identifier (used as class or id)
* @param {string} label - De... | var PHRAGILE = PHRAGILE || {};
(function (PHRAGILE) {
/**
* Same as Graph but also renders graph areas under the line.
* ProgressGraph will be limited to dates <= today.
* @param {Object[]} data
* @param {string} cssID - Its CSS identifier (used as class or id)
* @param {string} label - De... | Convert snapshot date to format complying with ISO 8601 | Convert snapshot date to format complying with ISO 8601
| JavaScript | apache-2.0 | christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator | javascript | ## Code Before:
var PHRAGILE = PHRAGILE || {};
(function (PHRAGILE) {
/**
* Same as Graph but also renders graph areas under the line.
* ProgressGraph will be limited to dates <= today.
* @param {Object[]} data
* @param {string} cssID - Its CSS identifier (used as class or id)
* @param {st... |
ad8b7d8f1203e5d369e68842b052043e154507af | app/views/snapshots/_status_block.html.haml | app/views/snapshots/_status_block.html.haml | .snapshot-status-block
%table.table
%tr
%th
%abbr.initialism{ title: 'Uniform Resource Locator' } URL
%td
= link_to simplified_url(@snapshot.url.address), @snapshot.url.address,
class: 'url-multiline'
%tr
%th Viewport
%td= @snapshot.viewport
%tr
%th ... | .snapshot-status-block
%table.table
%tr
%th
%abbr.initialism{ title: 'Uniform Resource Locator' } URL
%td
= link_to simplified_url(@snapshot.url.address), @snapshot.url.address,
class: 'url-multiline'
%tr
%th Viewport
%td= @snapshot.viewport
%tr
%th ... | Improve styling of Accept/Reject buttons | Improve styling of Accept/Reject buttons
By adding an icon and turning the buttons green/red depending on what
state they are in, we make it easier to quickly spot what state the
snapshot is in.
| Haml | mit | diffux/diffux,diffux/diffux,kalw/diffux,kalw/diffux,kalw/diffux,diffux/diffux | haml | ## Code Before:
.snapshot-status-block
%table.table
%tr
%th
%abbr.initialism{ title: 'Uniform Resource Locator' } URL
%td
= link_to simplified_url(@snapshot.url.address), @snapshot.url.address,
class: 'url-multiline'
%tr
%th Viewport
%td= @snapshot.viewport
... |
fe834410e60a916d98c3252d7dd178139e6c00b8 | pystan/windows_setup.patch | pystan/windows_setup.patch | --- setup.py
+++ setup.py
@@ -105,7 +105,7 @@
'macros': stan_macros})
## extensions
-extensions_extra_compile_args = ['-O0', '-ftemplate-depth-256']
+extensions_extra_compile_args = ['/EHsc', '/Ox', '-DBOOST_DATE_TIME_NO_LIB']
stanc_sources = [
"pystan/stan/src/stan/gm/gr... | --- setup.py
+++ setup.py
@@ -119,7 +119,7 @@ libstan = ('stan', {'sources': libstan_sources,
'macros': stan_macros})
## extensions
-extensions_extra_compile_args = ['-O0', '-ftemplate-depth-256']
+extensions_extra_compile_args = ['/EHsc', '/Ox', '-DBOOST_DATE_TIME_NO_LIB']
stanc_sources = [
... | Update windows patch for pystan | Update windows patch for pystan
| Diff | bsd-3-clause | menpo/conda-recipes,menpo/conda-recipes | diff | ## Code Before:
--- setup.py
+++ setup.py
@@ -105,7 +105,7 @@
'macros': stan_macros})
## extensions
-extensions_extra_compile_args = ['-O0', '-ftemplate-depth-256']
+extensions_extra_compile_args = ['/EHsc', '/Ox', '-DBOOST_DATE_TIME_NO_LIB']
stanc_sources = [
"pystan/sta... |
38e4d6594ff46e06cb7154f47806f4947c960bed | app/collections/project_based_collection.js | app/collections/project_based_collection.js | var User = zooniverse.models.User;
var ProjectBasedCollection = Backbone.Collection.extend({
initialize: function() {
User.on('change', _.bind(this.fetch, this));
this.listenTo(require('lib/state'), 'change:project', this.fetch);
},
sync: require('lib/sync'),
comparator: function(m) {
return -(n... | var User = zooniverse.models.User;
var ProjectBasedCollection = Backbone.Collection.extend({
initialize: function() {
User.on('change', _.bind(this.fetch, this));
this.listenTo(require('lib/state'), 'change:project', this.fetch);
},
sync: require('lib/sync'),
comparator: function(m) {
return -(n... | Reset collections when switching projects | Reset collections when switching projects
| JavaScript | apache-2.0 | zooniverse/Ubret-Dashboard | javascript | ## Code Before:
var User = zooniverse.models.User;
var ProjectBasedCollection = Backbone.Collection.extend({
initialize: function() {
User.on('change', _.bind(this.fetch, this));
this.listenTo(require('lib/state'), 'change:project', this.fetch);
},
sync: require('lib/sync'),
comparator: function(m) ... |
9546faddab321eb508f358883faf45cbc7d48dd8 | calexicon/internal/tests/test_julian.py | calexicon/internal/tests/test_julian.py | import unittest
from calexicon.internal.julian import distant_julian_to_gregorian, julian_to_gregorian
class TestJulian(unittest.TestCase):
def test_distant_julian_to_gregorian(self):
self.assertEqual(distant_julian_to_gregorian(9999, 12, 1), (10000, 2, 12))
def test_julian_to_gregorian(self):
... | import unittest
from datetime import date as vanilla_date
from calexicon.internal.julian import distant_julian_to_gregorian, julian_to_gregorian
class TestJulian(unittest.TestCase):
def test_distant_julian_to_gregorian(self):
self.assertEqual(distant_julian_to_gregorian(9999, 12, 1), (10000, 2, 12))
... | Correct test - vanilla_date not tuple. | Correct test - vanilla_date not tuple.
| Python | apache-2.0 | jwg4/calexicon,jwg4/qual | python | ## Code Before:
import unittest
from calexicon.internal.julian import distant_julian_to_gregorian, julian_to_gregorian
class TestJulian(unittest.TestCase):
def test_distant_julian_to_gregorian(self):
self.assertEqual(distant_julian_to_gregorian(9999, 12, 1), (10000, 2, 12))
def test_julian_to_gregor... |
88e83e886f79e10982b3a2774a31e5dd2c5f7e90 | .idea/dataSources.xml | .idea/dataSources.xml | <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="local.sqlite" uuid="0e800247-2508-4561-9201-33ff054255c4">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
... | <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="local.sqlite" uuid="0e800247-2508-4561-9201-33ff054255c4">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
... | Update .idea local sqlite datasource path and remove prod sqlite | Update .idea local sqlite datasource path and remove prod sqlite
| XML | agpl-3.0 | WaveHack/OpenDominion,WaveHack/OpenDominion,WaveHack/OpenDominion | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="local.sqlite" uuid="0e800247-2508-4561-9201-33ff054255c4">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>tru... |
3508d2d571603a44b5ce22e6c2dbcfe5961e38f4 | settings/language-viml.cson | settings/language-viml.cson | ".source.viml":
editor:
commentStart: '" '
| ".source.viml":
editor:
commentStart: '" '
increaseIndentPattern: "(?:^|\\s)(?:if|else|elseif|for|function!?|while)(?:\\s|$)"
decreaseIndentPattern: "(?:^|\\s)(?:endif|endfor|endfunction|endwhile)(?:\\s|$)"
| Add editor settings for adjusting indent/outdent | Add editor settings for adjusting indent/outdent
| CoffeeScript | mit | Alhadis/language-viml | coffeescript | ## Code Before:
".source.viml":
editor:
commentStart: '" '
## Instruction:
Add editor settings for adjusting indent/outdent
## Code After:
".source.viml":
editor:
commentStart: '" '
increaseIndentPattern: "(?:^|\\s)(?:if|else|elseif|for|function!?|while)(?:\\s|$)"
decreaseIndentPattern: "(?:^|\\s)(?:endif|e... |
e64c7588bf87b1db2b8d71146dc11762b82de933 | two-samples/README.md | two-samples/README.md |
Similar to the t-test, a two sample t-test will test the differences between
two datasets.
Example:
```R
> summary(discoveries)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0 2.0 3.0 3.1 4.0 12.0
> summary(eurodist)
Min. 1st Qu. Median Mean 3rd Qu. Max.
158 808 131... |
Similar to the t-test, a two sample t-test will test the differences between
two datasets.
Example:
```R
> summary(discoveries)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0 2.0 3.0 3.1 4.0 12.0
> summary(eurodist)
Min. 1st Qu. Median Mean 3rd Qu. Max.
158 808 131... | Add details & caveats on actual two-sample t-test | Add details & caveats on actual two-sample t-test
| Markdown | mit | erictleung/statistics,erictleung/statistics,erictleung/statistics | markdown | ## Code Before:
Similar to the t-test, a two sample t-test will test the differences between
two datasets.
Example:
```R
> summary(discoveries)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0 2.0 3.0 3.1 4.0 12.0
> summary(eurodist)
Min. 1st Qu. Median Mean 3rd Qu. Max.
15... |
f0d4fccdc2fd7d89c7d7cdeac350faa384652bc5 | build_tools/jenkins_win_build.bat | build_tools/jenkins_win_build.bat |
set PYTHON=C:\Python27\python
set EASY_INSTALL=c:\python27\scripts\easy_install.exe
set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\"
set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH%
cd %WORKSPACE%
%PYTHON% check_packages.py
cd %WORKSPACE%
python setup.py build -cmingw32
cd %WORKSPACE%
python... |
set PYTHON=C:\Python27\python
set EASY_INSTALL=c:\python27\scripts\easy_install.exe
set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\"
set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH%
set PYLINT=c:\python27\scripts\pylint
cd %WORKSPACE%
%PYTHON% check_packages.py
cd %WORKSPACE%
python setup.py bu... | Update new windows build script | Update new windows build script
| Batchfile | bsd-3-clause | lewisodriscoll/sasview,SasView/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,lewisodriscoll/sasview | batchfile | ## Code Before:
set PYTHON=C:\Python27\python
set EASY_INSTALL=c:\python27\scripts\easy_install.exe
set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\"
set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH%
cd %WORKSPACE%
%PYTHON% check_packages.py
cd %WORKSPACE%
python setup.py build -cmingw32
cd %W... |
3a8a213522bb16b30844abd5c16629ee26fbf6d4 | .travis-ci.d/compile_and_test.sh | .travis-ci.d/compile_and_test.sh |
ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER}
source $ILCSOFT/init_ilcsoft.sh
cd /Package
mkdir build
cd build
cmake -GNinja -DUSE_CXX11=ON -DBUILD_ROOTDICT=ON ..
ninja
ninja install
ctest --output-on-failure
|
ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER}
source $ILCSOFT/init_ilcsoft.sh
cd /Package
mkdir build
cd build
cmake -GNinja -DUSE_CXX11=ON -DBUILD_ROOTDICT=ON -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always" ..
ninja
ninja install
ctest --output-on-failure
| Add diagnostic color to external cmake flags | Add diagnostic color to external cmake flags
| Shell | bsd-3-clause | petricm/LCIO,iLCSoft/LCIO,petricm/LCIO,iLCSoft/LCIO,petricm/LCIO,petricm/LCIO,iLCSoft/LCIO,iLCSoft/LCIO,petricm/LCIO,petricm/LCIO,iLCSoft/LCIO,iLCSoft/LCIO | shell | ## Code Before:
ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER}
source $ILCSOFT/init_ilcsoft.sh
cd /Package
mkdir build
cd build
cmake -GNinja -DUSE_CXX11=ON -DBUILD_ROOTDICT=ON ..
ninja
ninja install
ctest --output-on-failure
## Instruction:
Add diagnostic color to external cmake flags
## Code ... |
41832d4b5f0aa7590c81ee9eb2ee15b3d8924b06 | compiler_source/6_actions_perl/template-runtime-code-for-action-get-word-at-position.txt | compiler_source/6_actions_perl/template-runtime-code-for-action-get-word-at-position.txt | template-runtime-code-standard-action-begin
$global_single_action_name = '<dashrep_placeholder_action_name>' ; <new_line>
$global_single_action_operand_one = runtime-code-for-operand-number-one ; <new_line>
$global_single_action_operand_two = runtime-code-for-operand-number-two ; <new_line>
$global_single_action_o... | template-runtime-code-standard-action-begin
# $global_single_action_name = '<dashrep_placeholder_action_name>' ; <new_line>
# $global_single_action_operand_one = runtime-code-for-operand-number-one ; <new_line>
# $global_single_action_operand_two = runtime-code-for-operand-number-two ; <new_line>
# $global_single_... | Use direct code for action "get-word-at-position" | Use direct code for action "get-word-at-position"
| Text | artistic-2.0 | cpsolver/Dashrep-language,cpsolver/Dashrep-language,cpsolver/Dashrep-language | text | ## Code Before:
template-runtime-code-standard-action-begin
$global_single_action_name = '<dashrep_placeholder_action_name>' ; <new_line>
$global_single_action_operand_one = runtime-code-for-operand-number-one ; <new_line>
$global_single_action_operand_two = runtime-code-for-operand-number-two ; <new_line>
$global... |
edd88c2cf4ccc7c8c9169171db7b6407bfe3f8a1 | configs/_defaults.yaml | configs/_defaults.yaml | nickname: DesertBot
username: DesertBot
realname: DesertBot
# prefix for commands
commandChar: .
# where to find the bot's source
source: https://github.com/DesertBot/DesertBot/
# CTCP FINGER response
finger: GET YOUR FINGER OUT OF THERE
# slightly more privileged than admins; can add/remove admins
owners:
- "*!SG@... | nickname: DesertBot
username: DesertBot
realname: DesertBot
# prefix for commands
commandChar: .
# where to find the bot's source
source: https://github.com/DesertBot/DesertBot/
# CTCP FINGER response
finger: GET YOUR FINGER OUT OF THERE
# slightly more privileged than admins; can add/remove admins
owners:
- "*!SG@... | Add registered account names to owners list | Add registered account names to owners list | YAML | mit | DesertBot/DesertBot | yaml | ## Code Before:
nickname: DesertBot
username: DesertBot
realname: DesertBot
# prefix for commands
commandChar: .
# where to find the bot's source
source: https://github.com/DesertBot/DesertBot/
# CTCP FINGER response
finger: GET YOUR FINGER OUT OF THERE
# slightly more privileged than admins; can add/remove admins
... |
3e3294173addfbbeac07d9d3fd6f989a67ea3388 | octane_nailgun/push.sh | octane_nailgun/push.sh |
host=${1:-"cz5545-fuel"}
branch=${2:-$(git rev-parse --abbrev-ref HEAD)}
container="fuel-core-6.1-nailgun"
version=$(awk -F\" '/version/{print $2}' < setup.py)
wheel="octane_nailgun-${version}-py2-none-any.whl"
git push --force $host HEAD
# TODO: Next lines can be separated in independent script tnat can be
# ... |
host=${1:-"cz5545-fuel"}
branch=${2:-$(git rev-parse --abbrev-ref HEAD)}
version=$(awk -F\" '/version/{print $2}' < setup.py)
wheel="octane_nailgun-${version}-py2-none-any.whl"
location="octane/octane_nailgun"
container="fuel-core-6.1-nailgun"
git push --force $host HEAD
ssh $host "cd ${location}; git reset --hard... | Use dockerctl to copy files | Use dockerctl to copy files
| Shell | apache-2.0 | stackforge/fuel-octane,Mirantis/octane,Mirantis/octane,stackforge/fuel-octane | shell | ## Code Before:
host=${1:-"cz5545-fuel"}
branch=${2:-$(git rev-parse --abbrev-ref HEAD)}
container="fuel-core-6.1-nailgun"
version=$(awk -F\" '/version/{print $2}' < setup.py)
wheel="octane_nailgun-${version}-py2-none-any.whl"
git push --force $host HEAD
# TODO: Next lines can be separated in independent script tnat... |
771635c7731093e88ca26891197eeb49eae951cc | circle.yml | circle.yml | machine:
environment:
LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8
xcode:
version: "6.2"
dependencies:
pre:
- xcrun instruments -w "iPhone 6 (8.2 Simulator)" || exit 0
override:
- sudo gem install cocoapods xcpretty obcd slather -N
- pod install --project-directory=Example
test:
overrid... | machine:
environment:
LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8
xcode:
version: "6.3.1"
dependencies:
pre:
- xcrun instruments -w "iPhone 6 (8.3 Simulator)" || exit 0
override:
- sudo gem install cocoapods:0.36.4 xcpretty obcd slather:1.7.0 -N
- pod install --project-directory=Example
... | Update xcode to 6.3.1, pin CocoaPods | [CI] Update xcode to 6.3.1, pin CocoaPods
| YAML | mit | CoderIvanLee/TTTAttributedLabel,mattt/TTTAttributedLabel,yaoxiaoyong/TTTAttributedLabel,KILLI/TTTAttributedLabel,XZwalk/TTTAttributedLabel,denivip/TTTAttributedLabel,SampleLiao/TTTAttributedLabel,sunzeboy/TTTAttributedLabel,engmahsa/TTTAttributedLabel,TTTAttributedLabel/TTTAttributedLabel,zhouwude/TTTAttributedLabel,WW... | yaml | ## Code Before:
machine:
environment:
LANG: en_US.UTF-8
LC_CTYPE: en_US.UTF-8
xcode:
version: "6.2"
dependencies:
pre:
- xcrun instruments -w "iPhone 6 (8.2 Simulator)" || exit 0
override:
- sudo gem install cocoapods xcpretty obcd slather -N
- pod install --project-directory=Example... |
ac97316a9403934d81ff717dfbeec2443b2ae905 | package.json | package.json | {
"private": true,
"scripts": {
"start": "node --perf-basic-prof src/server.js",
"watch": "nodemon",
"test": "mocha tests --recursive",
"lint": "eslint ."
},
"engines": {
"node": "^8.7.0"
},
"dependencies": {
"dotenv": "^4.0.0",
"ejs": "0.8.x",
"express": "^4.13.3",
"jsdo... | {
"private": true,
"scripts": {
"start": "node --perf-basic-prof src/server.js",
"watch": "nodemon",
"test": "NEW_RELIC_ENABLED=false mocha tests --recursive",
"lint": "eslint ."
},
"engines": {
"node": "^8.7.0"
},
"dependencies": {
"dotenv": "^4.0.0",
"ejs": "0.8.x",
"expres... | Disable New Relic during testing | Disable New Relic during testing
| JSON | mit | frosas/google-plus-user-feed,frosas/google-plus-user-feed | json | ## Code Before:
{
"private": true,
"scripts": {
"start": "node --perf-basic-prof src/server.js",
"watch": "nodemon",
"test": "mocha tests --recursive",
"lint": "eslint ."
},
"engines": {
"node": "^8.7.0"
},
"dependencies": {
"dotenv": "^4.0.0",
"ejs": "0.8.x",
"express": "^4.... |
f9a474ace29191b980dd7ac40579bfbb9bd52d09 | Node.js/nodejs_ioredis_performance.js | Node.js/nodejs_ioredis_performance.js | "use strict";
var Redis = require('ioredis');
var start = new Date();
// I can't get to 1,000,000 commands in one pipeline, not even to 120,000, because ioredis would just hang.
// Therefore I use 100,000 and hope that this is precise enough.
var N = 100*1000;
var redis = new Redis();
redis.del("foo");
var pipeli... | 'use strict';
var Redis = require('ioredis');
var start = new Date();
// I can't get to 1,000,000 commands in one pipeline, not even to 120,000, because ioredis would just hang.
// Therefore I use 100,000 and hope that this is precise enough.
var N = 100*1000;
var redis = new Redis();
redis.del('foo');
var pipeli... | Convert double to single quotes | Convert double to single quotes
| JavaScript | apache-2.0 | stefanwille/redis-client-benchmarks,stefanwille/redis-client-benchmarks,stefanwille/redis-client-benchmarks,stefanwille/redis-client-benchmarks,stefanwille/redis-client-benchmarks | javascript | ## Code Before:
"use strict";
var Redis = require('ioredis');
var start = new Date();
// I can't get to 1,000,000 commands in one pipeline, not even to 120,000, because ioredis would just hang.
// Therefore I use 100,000 and hope that this is precise enough.
var N = 100*1000;
var redis = new Redis();
redis.del("fo... |
8c098dc13cbe8d7752804df721c814967f9c677b | samples/main.php | samples/main.php | <?php
$_PCONN['cnt']++;
if (function_exists('zend_thread_id')) {
echo "thread ", zend_thread_id(), "\n";
} else {
echo "main\n";
}
| <?php
$_PCONN['cnt']++;
if (function_exists('zend_thread_id')) {
echo "thread ", zend_thread_id(), "\n";
} else {
echo "main\n";
}
exit(PCONN_SUCCESS);
| Use the status constant for the return code | Use the status constant for the return code
| PHP | bsd-3-clause | johannes/pconn-sapi,johannes/pconn-sapi,johannes/pconn-sapi,ilk33r/pconn-sapi,ilk33r/pconn-sapi,ilk33r/pconn-sapi | php | ## Code Before:
<?php
$_PCONN['cnt']++;
if (function_exists('zend_thread_id')) {
echo "thread ", zend_thread_id(), "\n";
} else {
echo "main\n";
}
## Instruction:
Use the status constant for the return code
## Code After:
<?php
$_PCONN['cnt']++;
if (function_exists('zend_thread_id')) {
echo "thread ", zen... |
6fcd753837c1cd198efb7940673e79465d583bab | tests/test_tools/phpunit_bootstrap.php | tests/test_tools/phpunit_bootstrap.php | <?php
/**
* A few common settings for all unit tests.
*
* Also remember do define the @package attribute for your test class to make it appear under
* the right package in unit test and code coverage reports.
*/
define('PRADO_TEST_RUN', true);
define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../../framework');
d... | <?php
/**
* A few common settings for all unit tests.
*
* Also remember do define the @package attribute for your test class to make it appear under
* the right package in unit test and code coverage reports.
*/
define('PRADO_TEST_RUN', true);
define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../../framework');
d... | Raise memory limit for coverage tests | Raise memory limit for coverage tests
| PHP | bsd-3-clause | mmauri04/prado,majuca/prado,majuca/prado,mmauri04/prado,majuca/prado,mmauri04/prado | php | ## Code Before:
<?php
/**
* A few common settings for all unit tests.
*
* Also remember do define the @package attribute for your test class to make it appear under
* the right package in unit test and code coverage reports.
*/
define('PRADO_TEST_RUN', true);
define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../.... |
acced8a65a89568f6e9a721483ce39604cc67de6 | hello-world/test.pony | hello-world/test.pony | use "ponytest"
actor Main
new create(env: Env) =>
var test = PonyTest(env)
test(recover _TestHelloWorld end)
test.complete()
class _TestHelloWorld iso is UnitTest
"""
Test HelloWorld package
"""
fun name(): String => "hello-world/HelloWorld"
fun apply(h: TestHelper): TestResult =>
let h... | use "ponytest"
actor Main is TestList
new create(env: Env) =>
PonyTest(env, this)
new make() =>
None
fun tag tests(test: PonyTest) =>
test(_TestHelloWorld)
class _TestHelloWorld iso is UnitTest
"""
Test HelloWorld package
"""
fun name(): String => "hello-world/HelloWorld"
fun apply(h: T... | Make Hello world compatible with Pony 0.2.1 | Make Hello world compatible with Pony 0.2.1
| Pony | mit | exercism/xpony | pony | ## Code Before:
use "ponytest"
actor Main
new create(env: Env) =>
var test = PonyTest(env)
test(recover _TestHelloWorld end)
test.complete()
class _TestHelloWorld iso is UnitTest
"""
Test HelloWorld package
"""
fun name(): String => "hello-world/HelloWorld"
fun apply(h: TestHelper): TestRes... |
261cb5aecc52d07b10d826e8b22d17817d1c3529 | web/backend/backend_django/apps/capacity/management/commands/importpath.py | web/backend/backend_django/apps/capacity/management/commands/importpath.py | from __future__ import unicode_literals
from optparse import make_option
import os
from csv import reader
from codecs import BOM_UTF8
import pickle
from django.utils.six import string_types, PY3
from django.core.management.base import BaseCommand, CommandError
from ...models import Path
class Command(BaseCommand):
... | from __future__ import unicode_literals
from optparse import make_option
import os
from csv import reader
from codecs import BOM_UTF8
import pickle
from django.utils.six import string_types, PY3
from django.core.management.base import BaseCommand, CommandError
from ...models import Path
class Command(BaseCommand):
... | Update import path method to reflect behaviour | Update import path method to reflect behaviour
| Python | apache-2.0 | tOverney/ADA-Project,tOverney/ADA-Project,tOverney/ADA-Project | python | ## Code Before:
from __future__ import unicode_literals
from optparse import make_option
import os
from csv import reader
from codecs import BOM_UTF8
import pickle
from django.utils.six import string_types, PY3
from django.core.management.base import BaseCommand, CommandError
from ...models import Path
class Comman... |
d1554a63a32b2ee299e21259085684345040235f | main/src/main/java/eu/nerro/wolappla/provider/DeviceContract.java | main/src/main/java/eu/nerro/wolappla/provider/DeviceContract.java | package eu.nerro.wolappla.provider;
/**
* Contract class for interacting with {@link DeviceProvider}.
*/
public class DeviceContract {
}
| package eu.nerro.wolappla.provider;
import android.net.Uri;
/**
* Contract class for interacting with {@link DeviceProvider}.
*/
public class DeviceContract {
public static final String CONTENT_AUTHORITY = "eu.nerro.wolappla";
public static final Uri BASE_CONTENT_URI = Uri.parse("content://" + CONTENT_AUTHORITY... | Add column description for device SQLite table | Add column description for device SQLite table
| Java | mit | nerro/wolappla | java | ## Code Before:
package eu.nerro.wolappla.provider;
/**
* Contract class for interacting with {@link DeviceProvider}.
*/
public class DeviceContract {
}
## Instruction:
Add column description for device SQLite table
## Code After:
package eu.nerro.wolappla.provider;
import android.net.Uri;
/**
* Contract class ... |
6658702d420ec25228880bb1720f4f971e349300 | app/js/arethusa.core/document_store.js | app/js/arethusa.core/document_store.js | 'use strict';
angular.module('arethusa.core').service('documentStore', function () {
var self = this;
this.store = {};
this.reset = function () {
this.store = {};
};
this.addDocument = function (location, doc) {
self.store[location] = doc;
};
});
| 'use strict';
angular.module('arethusa.core').service('documentStore', function () {
var self = this;
this.reset = function () {
this.store = {};
this.confs = {};
};
function extractConf(doc) {
angular.extend(self.confs, doc.conf);
}
this.addDocument = function (location, doc) {
self.stor... | Save additional confs in documentStore | Save additional confs in documentStore
| JavaScript | mit | fbaumgardt/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa | javascript | ## Code Before:
'use strict';
angular.module('arethusa.core').service('documentStore', function () {
var self = this;
this.store = {};
this.reset = function () {
this.store = {};
};
this.addDocument = function (location, doc) {
self.store[location] = doc;
};
});
## Instruction:
Save additional conf... |
d358449c7f1592e6b06aadc94dcf39dcc50c9671 | extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/resources/translations/fr.json | extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/resources/translations/fr.json | {
"LOGIN" : {
"ERROR_PASSWORD_BLANK" : "@:APP.ERROR_PASSWORD_BLANK",
"ERROR_PASSWORD_MISMATCH" : "@:APP.ERROR_PASSWORD_MISMATCH",
"FIELD_HEADER_NEW_PASSWORD" : "Mot de passe",
"FIELD_HEADER_CONFIRM_NEW_PASSWORD" : "Répéter mot de passe"
}
}
| {
"LOGIN" : {
"ERROR_PASSWORD_BLANK" : "@:APP.ERROR_PASSWORD_BLANK",
"ERROR_PASSWORD_MISMATCH" : "@:APP.ERROR_PASSWORD_MISMATCH",
"FIELD_HEADER_NEW_PASSWORD" : "Mot de passe",
"FIELD_HEADER_CONFIRM_NEW_PASSWORD" : "Répéter mot de passe"
},
"USER_ATTRIBUTES" : ... | Merge updated French translations for database auth. | GUACAMOLE-156: Merge updated French translations for database auth.
| JSON | apache-2.0 | mike-jumper/incubator-guacamole-client,lato333/guacamole-client,glyptodon/guacamole-client,jmuehlner/incubator-guacamole-client,softpymesJeffer/incubator-guacamole-client,necouchman/incubator-guacamole-client,esmailpour-hosein/incubator-guacamole-client,lato333/guacamole-client,necouchman/incubator-guacamole-client,lat... | json | ## Code Before:
{
"LOGIN" : {
"ERROR_PASSWORD_BLANK" : "@:APP.ERROR_PASSWORD_BLANK",
"ERROR_PASSWORD_MISMATCH" : "@:APP.ERROR_PASSWORD_MISMATCH",
"FIELD_HEADER_NEW_PASSWORD" : "Mot de passe",
"FIELD_HEADER_CONFIRM_NEW_PASSWORD" : "Répéter mot de passe"
}
}
## Ins... |
aed62336b68d823e7b1585d36a8d3686ff46e33a | lib/functions.php | lib/functions.php | <?
function tt_connect()
{
return Tyrant::connect('localhost', 1978);
}
function get_url($key)
{
if (!$tt){$tt = tt_connect();}
$data = json_decode($tt->get($key), true);
return $data;
}
function save_url($url)
{
if (!$tt){$tt = tt_connect();}
$key = substr(sha1(rand()), 0, 8);
while (... | <?
function tt_connect()
{
return Tyrant::connect('localhost', 1978);
}
function get_url($key)
{
if (!$tt){$tt = tt_connect();}
$data = json_decode($tt->get($key), true);
$data['hits'] = $data['hits'] + 1;
$data['last_hit'] = gmdate('Y-m-d H:i:s', time());
$tt->put($key, json_encode($data));... | Support for URL hits and last hit. | Feature: Support for URL hits and last hit.
| PHP | bsd-3-clause | nachopro/followlink,nachopro/followlink | php | ## Code Before:
<?
function tt_connect()
{
return Tyrant::connect('localhost', 1978);
}
function get_url($key)
{
if (!$tt){$tt = tt_connect();}
$data = json_decode($tt->get($key), true);
return $data;
}
function save_url($url)
{
if (!$tt){$tt = tt_connect();}
$key = substr(sha1(rand()), 0,... |
a16df1d11a10812a360a5f97da9d52c71115bfdf | library/enqueue-scripts.php | library/enqueue-scripts.php | <?php
if (!function_exists('FoundationPress_scripts')) :
function FoundationPress_scripts() {
// deregister the jquery version bundled with wordpress
wp_deregister_script( 'jquery' );
// register scripts
wp_register_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js... | <?php
if (!function_exists('FoundationPress_scripts')) :
function FoundationPress_scripts() {
// deregister the jquery version bundled with wordpress
wp_deregister_script( 'jquery' );
// register scripts
wp_register_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js... | Use feature image as header banner | Use feature image as header banner
Dynamically replace #header-banner background with feature image. | PHP | mit | zeppytoh/nuscru-foundationpress,zeppytoh/nuscru-foundationpress | php | ## Code Before:
<?php
if (!function_exists('FoundationPress_scripts')) :
function FoundationPress_scripts() {
// deregister the jquery version bundled with wordpress
wp_deregister_script( 'jquery' );
// register scripts
wp_register_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/... |
656f58dfd6a0c9a794c8d7eb156b0a9c4720eaa4 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
install:
- (cd vendor && git submodule update --init --recursive)
- pip install -r requirements/compiled.txt
- cp webpagemaker/settings/local.py-dist webpagemaker/settings/local.py
- mysql -e 'create database playdoh_app;'
- python manage.py syncdb --noinput
script: make ... | language: python
python:
- "2.7"
install:
- (cd vendor && git submodule update --init --recursive)
- pip install -r requirements/compiled.txt
- cp webpagemaker/settings/local.py-dist webpagemaker/settings/local.py
- mysql -e 'create database playdoh_app;'
- python manage.py syncdb --noinput
- python man... | Make sure to run migrations as well. | Make sure to run migrations as well.
| YAML | mpl-2.0 | brianloveswords/webpagemaker,brianloveswords/webpagemaker,brianloveswords/webpagemaker,brianloveswords/webpagemaker | yaml | ## Code Before:
language: python
python:
- "2.7"
install:
- (cd vendor && git submodule update --init --recursive)
- pip install -r requirements/compiled.txt
- cp webpagemaker/settings/local.py-dist webpagemaker/settings/local.py
- mysql -e 'create database playdoh_app;'
- python manage.py syncdb --noinpu... |
520eddd8396bbe28f68b5e57e693b138d8ed28f1 | README.md | README.md | Rorschart
=========
Rorchart interprates Rails data structures for you to generate beautiful Javascript Google Charts.
Designed to be the perfect companion to [rails-snowplow](#).
### Credits
Rorschart is inpired by [chartkick](https://github.com/ankane/chartkick) from Andrew Kane. Rorschart was design with a diffe... | Rorschart
=========
Rorchart interprates Rails data structures for you to generate beautiful Javascript Google Charts.
Checkout the [demonstration page](http://viadeo.github.io/rorschart).
Rorschart is a Ruby library that interprates Rails data structures for you to generate beautiful Javascript Google.
# Multi-seri... | Add demo page to the Readme | Add demo page to the Readme
| Markdown | mit | viadeo/rorschart,viadeo/rorschart | markdown | ## Code Before:
Rorschart
=========
Rorchart interprates Rails data structures for you to generate beautiful Javascript Google Charts.
Designed to be the perfect companion to [rails-snowplow](#).
### Credits
Rorschart is inpired by [chartkick](https://github.com/ankane/chartkick) from Andrew Kane. Rorschart was des... |
56ee0e42bf36cb0ebab286862b111a5a299fb279 | README.md | README.md | ERROR: type should be string, got "\nhttps://rvm.beginrescueend.com/integration/capistrano\n\n## Description\n\nRVM / Capistrano Integration Gem\n\n## Installation\n\nRVM / Capistrano integration is now available as a separate gem\n\n $ gem install rvm-capistrano\n\n## Example\n\nThe following code will:\n\n- detect `ruby@gemset` used for deployment\n- install RVM and Ruby on `cap deploy:setup`\n\nExample:\n\n set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\\//,\"\")\n set :rvm_install_ruby_params, '--1.9' # for jruby/rbx default to 1.9 mode\n\n before 'deploy:setup', 'rvm:install_rvm' # install RVM\n before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, or:\n before 'deploy:setup', 'rvm:create_gemset' # only create gemset\n\n require \"rvm/capistrano\"\n\n## To use the ruby version currently active locally\n\n set :rvm_ruby_string, :local\n\n## Development\n\n $ rake spec\n" | ERROR: type should be string, got "\nhttps://rvm.io/integration/capistrano/#gem\n\n## Description\n\nRVM / Capistrano Integration Gem\n\n## Installation\n\nRVM / Capistrano integration is now available as a separate gem\n\n $ gem install rvm-capistrano\n\n## Example\n\nThe following code will:\n\n- detect `ruby@gemset` used for deployment\n- install RVM and Ruby on `cap deploy:setup`\n\nExample:\n\n set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\\//,\"\")\n set :rvm_install_ruby_params, '--1.9' # for jruby/rbx default to 1.9 mode\n\n before 'deploy:setup', 'rvm:install_rvm' # install RVM\n before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, or:\n before 'deploy:setup', 'rvm:create_gemset' # only create gemset\n\n require \"rvm/capistrano\"\n\n## To use the ruby version currently active locally\n\n set :rvm_ruby_string, :local\n\n## Development\n\n $ rake spec\n" | Update link (new domain with proper certificate) | Update link (new domain with proper certificate) | Markdown | mit | rvm/rvm-capistrano | markdown | ## Code Before:
https://rvm.beginrescueend.com/integration/capistrano
## Description
RVM / Capistrano Integration Gem
## Installation
RVM / Capistrano integration is now available as a separate gem
$ gem install rvm-capistrano
## Example
The following code will:
- detect `ruby@gemset` used for deployment
-... |
fb8fb61303dd567038ca812a61e6702b8b3f4edc | tests/test_exceptions.py | tests/test_exceptions.py |
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(
'Beautiful is better than ugly',
exceptions.CookiecutterException('Errors should never pass silently'),
{'cookiecutter': {'foo': 'bar'}}
)
expec... |
from jinja2.exceptions import UndefinedError
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(
'Beautiful is better than ugly',
UndefinedError('Errors should never pass silently'),
{'cookiecutter': {'fo... | Create a jinja2 error in the test to ensure it has a message attribute | Create a jinja2 error in the test to ensure it has a message attribute
| Python | bsd-3-clause | hackebrot/cookiecutter,dajose/cookiecutter,dajose/cookiecutter,willingc/cookiecutter,audreyr/cookiecutter,Springerle/cookiecutter,terryjbates/cookiecutter,hackebrot/cookiecutter,Springerle/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,stevepiercy/cookiecutter,michaeljoseph/cookiecutter,luzfcb/cookiecutter,audr... | python | ## Code Before:
from cookiecutter import exceptions
def test_undefined_variable_to_str():
undefined_var_error = exceptions.UndefinedVariableInTemplate(
'Beautiful is better than ugly',
exceptions.CookiecutterException('Errors should never pass silently'),
{'cookiecutter': {'foo': 'bar'}}
... |
c485a6b8b1230e319b69adbb46788405d4e48c89 | corpus/utf8-normalize.sh | corpus/utf8-normalize.sh |
if which uconv > /dev/null
then
CMD="uconv -f utf8 -t utf8 -x Any-NFKC --callback skip"
else
echo "Cannot find ICU uconv (http://site.icu-project.org/) ... falling back to iconv. Normalization NOT taking place." 1>&2
CMD="iconv -f utf8 -t utf8 -c"
fi
$CMD | /usr/bin/perl -w -e '
while (<>) {
chomp;
... |
if which uconv > /dev/null
then
CMD="uconv -f utf8 -t utf8 -x Any-NFKC --callback skip --remove-signature"
else
echo "Cannot find ICU uconv (http://site.icu-project.org/) ... falling back to iconv. Normalization NOT taking place." 1>&2
CMD="iconv -f utf8 -t utf8 -c"
fi
$CMD | /usr/bin/perl -w -e '
while (<>) {... | Stop BOMbs before they decrease quality | Stop BOMbs before they decrease quality
| Shell | apache-2.0 | veer66/cdec,veer66/cdec,carhaas/cdec-semparse,veer66/cdec,redpony/cdec,redpony/cdec,veer66/cdec,veer66/cdec,carhaas/cdec-semparse,redpony/cdec,redpony/cdec,pks/cdec-dtrain,veer66/cdec,redpony/cdec,pks/cdec-dtrain,pks/cdec-dtrain,pks/cdec-dtrain,m5w/atools,carhaas/cdec-semparse,pks/cdec-dtrain,carhaas/cdec-semparse,carh... | shell | ## Code Before:
if which uconv > /dev/null
then
CMD="uconv -f utf8 -t utf8 -x Any-NFKC --callback skip"
else
echo "Cannot find ICU uconv (http://site.icu-project.org/) ... falling back to iconv. Normalization NOT taking place." 1>&2
CMD="iconv -f utf8 -t utf8 -c"
fi
$CMD | /usr/bin/perl -w -e '
while (<>) {
... |
fdfff5a728c85d1436e24576378d2d540a06a99c | rxbus/src/main/java/com/hwangjr/rxbus/RxBus.java | rxbus/src/main/java/com/hwangjr/rxbus/RxBus.java | package com.hwangjr.rxbus;
/**
* Instance of {@link Bus}.
* Simply use {@link #get()} to get the instance of {@link Bus}
*/
public class RxBus {
/**
* Instance of {@link Bus}
*/
private static Bus sBus;
/**
* Get the instance of {@link Bus}
*
* @return
*/
public stati... | package com.hwangjr.rxbus;
import com.hwangjr.rxbus.thread.ThreadEnforcer;
/**
* Instance of {@link Bus}.
* Simply use {@link #get()} to get the instance of {@link Bus}
*/
public class RxBus {
/**
* Instance of {@link Bus}
*/
private static Bus sBus;
/**
* Get the instance of {@link Bu... | Modify default rxbus from MainThreadEnforce to AnyThreadEnforce | Modify default rxbus from MainThreadEnforce to AnyThreadEnforce
| Java | apache-2.0 | AndroidKnife/RxBus | java | ## Code Before:
package com.hwangjr.rxbus;
/**
* Instance of {@link Bus}.
* Simply use {@link #get()} to get the instance of {@link Bus}
*/
public class RxBus {
/**
* Instance of {@link Bus}
*/
private static Bus sBus;
/**
* Get the instance of {@link Bus}
*
* @return
*/
... |
5931f8b0ce3febb0b8d0571ceca2133444632c85 | aphrodite/app/controllers/api/v1/documents_controller.rb | aphrodite/app/controllers/api/v1/documents_controller.rb | class Api::V1::DocumentsController < Api::V1::BaseController
before_filter :authenticate_user!
def update
document = current_user.documents.find(params[:id])
document.update_attributes params[:document]
respond_with document
end
end
| class Api::V1::DocumentsController < Api::V1::BaseController
before_filter :authenticate_user!
def index
respond_with Document.where(user_id: current_user.id).order_by(order)
end
def update
document = current_user.documents.find(params[:id])
document.update_attributes params[:document]
respond... | Add index action to api/documents | [aphrodite] Add index action to api/documents
| Ruby | mit | analiceme/chaos | ruby | ## Code Before:
class Api::V1::DocumentsController < Api::V1::BaseController
before_filter :authenticate_user!
def update
document = current_user.documents.find(params[:id])
document.update_attributes params[:document]
respond_with document
end
end
## Instruction:
[aphrodite] Add index action to api... |
625fe4ea0c354208841bfc4dcbb4659fa8799065 | README.md | README.md | Citero-ruby
==========
Ruby repository for the [Citero](https://github.com/NYULibraries/citero) project.
Citero is a program that allows for mapping of data inputs from various systems into one normalized metadata schema
tentatively known as *Citero Standard Form*, or *CSF*. From the normalized schema, *CSF*, it can p... | Citero-ruby
==========
Citero is a program that allows for mapping of data inputs from various systems into one normalized metadata schema
tentatively known as *Citero Standard Form*, or *CSF*. From the normalized schema, *CSF*, it can produce another output
format for use by another system.
| Remove placeholder text on readme | Remove placeholder text on readme
| Markdown | mit | NYULibraries/citero | markdown | ## Code Before:
Citero-ruby
==========
Ruby repository for the [Citero](https://github.com/NYULibraries/citero) project.
Citero is a program that allows for mapping of data inputs from various systems into one normalized metadata schema
tentatively known as *Citero Standard Form*, or *CSF*. From the normalized schema,... |
d0b10caa4ba2225bea20fe8fa0ab5a00173d4ca2 | src/components/dev.jsx | src/components/dev.jsx | import React from 'react';
import {Link} from 'react-router';
export default (props) => (
<div className="box">
<div className="box-header-timeline"></div>
<div className="box-body">
<h3>Help us build FreeFeed</h3>
<p>We are looking for volunteers to help us build FreeFeed, an open-source
... | import React from 'react';
export default (props) => (
<div className="box">
<div className="box-header-timeline"></div>
<div className="box-body">
<h3>Help us build FreeFeed</h3>
<p>We are looking for volunteers to help us build FreeFeed, an open-source
social network, replacement of Fr... | Update Dev page (FreeFeed v1 released) | Update Dev page (FreeFeed v1 released)
| JSX | mit | clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma | jsx | ## Code Before:
import React from 'react';
import {Link} from 'react-router';
export default (props) => (
<div className="box">
<div className="box-header-timeline"></div>
<div className="box-body">
<h3>Help us build FreeFeed</h3>
<p>We are looking for volunteers to help us build FreeFeed, an op... |
c56616fb4581ca358469d900903ef67f0160456c | transformers/BlogPostTransformer.php | transformers/BlogPostTransformer.php | <?php namespace Autumn\Tools\Transformers;
use RainLab\Blog\Models\Post;
use League\Fractal\TransformerAbstract;
class BlogPostTransformer extends TransformerAbstract
{
protected $defaultIncludes = [
'featured_images',
];
public function transform(Post $post)
{
return [
'i... | <?php namespace Autumn\Tools\Transformers;
use RainLab\Blog\Models\Post;
use League\Fractal\TransformerAbstract;
class BlogPostTransformer extends TransformerAbstract
{
protected $defaultIncludes = [
'featured_images',
];
public function transform(Post $post)
{
return [
'i... | Add author to post transformer | Add author to post transformer
| PHP | mit | gpasztor87/oc-api-plugin | php | ## Code Before:
<?php namespace Autumn\Tools\Transformers;
use RainLab\Blog\Models\Post;
use League\Fractal\TransformerAbstract;
class BlogPostTransformer extends TransformerAbstract
{
protected $defaultIncludes = [
'featured_images',
];
public function transform(Post $post)
{
return ... |
c3609cbe9d33222f2bd5c466b874f4943094143f | src/middleware/authenticate.js | src/middleware/authenticate.js | export default (config) => {
if ( ! config.enabled) return (req, res, next) => { next() }
var header = (config.header || 'Authorization').toLowerCase()
var tokenLength = 32
var tokenRegExp = new RegExp(`^Token ([a-zA-Z0-9]{${tokenLength}})$`)
return (req, res, next) => {
var value = req.headers[header]
var e... | export default (config) => {
if ( ! config.enabled) return (req, res, next) => { next() }
var verifyHeader = ( !! config.header)
var header = (config.header || '').toLowerCase()
var tokenLength = 32
var tokenRegExp = new RegExp(`^Token ([a-zA-Z0-9]{${tokenLength}})$`)
return (req, res, next) => {
var err
r... | Make request header optional in authentication middleware. | Make request header optional in authentication middleware.
| JavaScript | mit | kukua/concava | javascript | ## Code Before:
export default (config) => {
if ( ! config.enabled) return (req, res, next) => { next() }
var header = (config.header || 'Authorization').toLowerCase()
var tokenLength = 32
var tokenRegExp = new RegExp(`^Token ([a-zA-Z0-9]{${tokenLength}})$`)
return (req, res, next) => {
var value = req.headers... |
658bcb6421770ab0e6a622bce2da0e5962224eb9 | .travis.yml | .travis.yml | language: python
env:
- TOXENV=py25 PIP_INSECURE=t
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=cov
matrix:
allow_failures:
- env:
- TOXENV=cov
install:
- pip install --quiet --use-mirrors tox coveralls
script:
- tox
- if [ $TOXENV == "cov" ]; then c... | language: python
env:
- TOXENV=py25 PIP_INSECURE=t
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=cov
matrix:
allow_failures:
- env:
- TOXENV=cov
install:
- pip install --quiet --use-mirrors tox
script:
- tox
after_script:
- if [ $TOXENV == "cov" ]; th... | Install coveralls only when needed | Install coveralls only when needed
| YAML | mit | tjwei/jedi,jonashaag/jedi,flurischt/jedi,mfussenegger/jedi,jonashaag/jedi,mfussenegger/jedi,dwillmer/jedi,WoLpH/jedi,dwillmer/jedi,tjwei/jedi,flurischt/jedi,WoLpH/jedi | yaml | ## Code Before:
language: python
env:
- TOXENV=py25 PIP_INSECURE=t
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=cov
matrix:
allow_failures:
- env:
- TOXENV=cov
install:
- pip install --quiet --use-mirrors tox coveralls
script:
- tox
- if [ $TOXENV ==... |
f3648411fad70736a1dd0bda128a50d3d6b24911 | spec/python-requirements_spec.rb | spec/python-requirements_spec.rb | require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"
describe package('python-apt'), :if => os[:family] == 'debian' do
it { should be_installed }
end
describe package('python-dev'), :if => os[:family] == 'debian' do
it { should be_installed }
end
describe package('build-essential'), :if => os[:family] == 'debian'... | require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"
describe package('python-apt'), :if => os[:family] == 'debian' do
it { should be_installed }
end
describe package('python-dev'), :if => ['debian', 'alpine'].include?(os[:family]) do
it { should be_installed }
end
describe package('build-essential'), :if => os[:... | Update specs for Alpine Linux. | Update specs for Alpine Linux.
| Ruby | mit | FGtatsuro/ansible-python-requirements | ruby | ## Code Before:
require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"
describe package('python-apt'), :if => os[:family] == 'debian' do
it { should be_installed }
end
describe package('python-dev'), :if => os[:family] == 'debian' do
it { should be_installed }
end
describe package('build-essential'), :if => os[:fam... |
25f822086a349668c3442b530037b84aacb719e7 | test/features/step_definitions/demo_steps.rb | test/features/step_definitions/demo_steps.rb |
Given(/^I am on the koha front page$/) do
@browser.goto 'http://catalog.bywatersolutions.com/'
end
When(/^I search for "([^"]*)"$/) do |search_term|
@context[:search_term] = search_term
form = @browser.form(:id => 'translControl1')
form.text_field(:name => 'q').set @context[:search_term]
# binding.pry # u... |
Given(/^I am on the koha front page$/) do
@browser.goto 'http://catalog.bywatersolutions.com/'
end
When(/^I search for "([^"]*)"$/) do |search_term|
@context[:search_term] = search_term
binding.pry
form = @browser.form(:id => 'searchform')
form.text_field(:name => 'q').set @context[:search_term]
# binding... | Fix element type in step. | Fix element type in step.
| Ruby | mit | akafred/browsertests,akafred/browsertests | ruby | ## Code Before:
Given(/^I am on the koha front page$/) do
@browser.goto 'http://catalog.bywatersolutions.com/'
end
When(/^I search for "([^"]*)"$/) do |search_term|
@context[:search_term] = search_term
form = @browser.form(:id => 'translControl1')
form.text_field(:name => 'q').set @context[:search_term]
# b... |
d335fce6cea07df872d8cd7d70c6c3fea348e521 | tests/__init__.py | tests/__init__.py | import os.path
import unittest
def get_tests():
start_dir = os.path.dirname(__file__)
return unittest.TestLoader().discover(start_dir, pattern="*.py")
| import os.path
import unittest
def get_tests():
return full_suite()
def full_suite():
from .resource import ResourceTestCase
from .serializer import ResourceTestCase as SerializerTestCase
from .utils import UtilsTestCase
resourcesuite = unittest.TestLoader().loadTestsFromTestCase(ResourceTestCas... | Update get_tests to be backwards compatible with Python 2.6, since the library is compatible it seems worth this extra effort to test against it. | Update get_tests to be backwards compatible with Python 2.6, since the library is compatible it seems worth this extra effort to test against it.
| Python | bsd-2-clause | jannon/slumber,IAlwaysBeCoding/More,zongxiao/slumber,infoxchange/slumber,futurice/slumber,IAlwaysBeCoding/slumber,samgiles/slumber,s-block/slumber,ministryofjustice/slumber | python | ## Code Before:
import os.path
import unittest
def get_tests():
start_dir = os.path.dirname(__file__)
return unittest.TestLoader().discover(start_dir, pattern="*.py")
## Instruction:
Update get_tests to be backwards compatible with Python 2.6, since the library is compatible it seems worth this extra effort ... |
2f1ab5c647d01454dda2a1fed904bc0087e2165f | us_ignite/templates/profile/user_profile.html | us_ignite/templates/profile/user_profile.html | {% extends "base.html" %}
{% block title %}Edit profile - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Profile</h1>
<ul>
<li><a href="{% url 'auth_password_change' %}">Password change</a></li>
<li><a href="{{ request.user.profile.get_absolute_url }}">View my profile</a></li>
</ul>
<form method=... | {% extends "base.html" %}
{% block title %}Edit profile - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Profile</h1>
<ul>
{% if request.user.has_usable_password %}
<li><a href="{% url 'auth_password_change' %}">Password change</a></li>
{% endif %}
<li><a href="{{ request.user.profile.get_abso... | Remove change password functinality to ``Mozilla Persona`` users. | Remove change password functinality to ``Mozilla Persona`` users.
The functionality is not available to them, since
the password of the account is managed in ``Mozilla Persona``
| HTML | bsd-3-clause | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | html | ## Code Before:
{% extends "base.html" %}
{% block title %}Edit profile - {{ block.super }}{% endblock title %}
{% block content %}
<h1>Profile</h1>
<ul>
<li><a href="{% url 'auth_password_change' %}">Password change</a></li>
<li><a href="{{ request.user.profile.get_absolute_url }}">View my profile</a></li>
</ul... |
de80557a1bd3e2ff1e06e8a1d8d382b4fff9b8d6 | pkg/artnet/ip.go | pkg/artnet/ip.go | package artnet
import (
"fmt"
"net"
"strings"
)
const (
// addressRange specifies the network CIDR an artnet network should have
addressRange = "2.0.0.0/8"
)
// FindArtNetIP finds the matching interface with an IP address inside of the addressRange
func FindArtNetIP() (net.IP, error) {
var ip net.IP
_, cidrn... | package artnet
import (
"fmt"
"net"
"strings"
)
const (
// addressRange specifies the network CIDR an artnet network should have
addressRange = "2.0.0.0/8"
)
// FindArtNetIP finds the matching interface with an IP address inside of the addressRange
func FindArtNetIP() (net.IP, error) {
_, cidrnet, _ := net.Par... | Fix wrongly as ArtNet Subnet identified IPv6 interface | Fix wrongly as ArtNet Subnet identified IPv6 interface
| Go | mit | StageAutoControl/controller | go | ## Code Before:
package artnet
import (
"fmt"
"net"
"strings"
)
const (
// addressRange specifies the network CIDR an artnet network should have
addressRange = "2.0.0.0/8"
)
// FindArtNetIP finds the matching interface with an IP address inside of the addressRange
func FindArtNetIP() (net.IP, error) {
var ip n... |
9e7bcadbb2c522d394f73b762dd986f9c4a5b3c1 | simpleshelfmobile/_attachments/code/couchutils.js | simpleshelfmobile/_attachments/code/couchutils.js | /**
* Utilities for accessing CouchDB.
*/
define([
"jquery"
], function($) {
var couchUtils = {
/**
* Login to CouchDB
* @return Promise
*/
login: function(userName, password, urlPrefix) {
// $.Deferred callbacks: done, fail, always
return $.a... | /**
* Utilities for accessing CouchDB.
*/
define([
"jquery",
"settings"
], function($, appSettings) {
var couchUtils = {
/**
* Determine if current session is active.
* @return Promise
**/
isLoggedIn: function() {
var dfrd = $.Deferred();
... | Add login check, use appSetting model | Add login check, use appSetting model
| JavaScript | agpl-3.0 | tephyr/simpleshelf,tephyr/simpleshelf,tephyr/simpleshelf,tephyr/simpleshelf | javascript | ## Code Before:
/**
* Utilities for accessing CouchDB.
*/
define([
"jquery"
], function($) {
var couchUtils = {
/**
* Login to CouchDB
* @return Promise
*/
login: function(userName, password, urlPrefix) {
// $.Deferred callbacks: done, fail, always
... |
02b1e8274d769045e8f6e49b579db478c5c8e4c1 | client/app/common/common.js | client/app/common/common.js | import angular from 'angular'
import Navbar from './navbar/navbar'
import Hero from './hero/hero'
import User from './user/user'
const commonModule = angular.module('app.common', [
Navbar.name,
Hero.name,
User.name
])
export default commonModule
| import angular from 'angular'
import Navbar from './navbar/navbar'
import User from './user/user'
const commonModule = angular.module('app.common', [
Navbar.name,
User.name
])
export default commonModule
| Remove forgotten references to Hero component | Remove forgotten references to Hero component
| JavaScript | apache-2.0 | mklinga/aprendo,mklinga/aprendo | javascript | ## Code Before:
import angular from 'angular'
import Navbar from './navbar/navbar'
import Hero from './hero/hero'
import User from './user/user'
const commonModule = angular.module('app.common', [
Navbar.name,
Hero.name,
User.name
])
export default commonModule
## Instruction:
Remove forgotten references to He... |
303530cb85d31a7193c57ba771126e633ef0150c | .kitchen.yml | .kitchen.yml | ---
#<% require 'poise_boiler' %>
<%= PoiseBoiler.kitchen(platforms: %w{ubuntu-12.04 ubuntu-14.04 ubuntu-16.04 centos-5 centos-6 centos-7}, driver: 'rackspace') %>
| ---
#<% require 'poise_boiler' %>
<%= PoiseBoiler.kitchen(platforms: %w{ubuntu-14.04 ubuntu-16.04 centos-5 centos-6 centos-7}, driver: 'rackspace') %>
| Remove Ubuntu 12.04 as no longer supported (past EOL). | Remove Ubuntu 12.04 as no longer supported (past EOL). | YAML | apache-2.0 | poise/poise-service,poise/poise-service,poise/poise-service | yaml | ## Code Before:
---
#<% require 'poise_boiler' %>
<%= PoiseBoiler.kitchen(platforms: %w{ubuntu-12.04 ubuntu-14.04 ubuntu-16.04 centos-5 centos-6 centos-7}, driver: 'rackspace') %>
## Instruction:
Remove Ubuntu 12.04 as no longer supported (past EOL).
## Code After:
---
#<% require 'poise_boiler' %>
<%= PoiseBoiler.kit... |
6a6e5c263dd9b0b89d4d1e341402eca88943ae68 | installer/jaspersoft-install.sh | installer/jaspersoft-install.sh | if [ "$(whoami)" != "root" ]; then
echo "Must be root."
exit 1
fi
USERNAME=$SUDO_USER
# ssh
cat > /home/$USERNAME/.ssh/config <<"EOL"
Host falcon.jaspersoft.com
HostName falcon.jaspersoft.com
IdentityFile ~/.ssh/<private_key>
EOL
chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/config
chmod 600 /home/$USERNA... | if [ "$(whoami)" != "root" ]; then
echo "Must be root."
exit 1
fi
USERNAME=$SUDO_USER
# ssh
cat > /home/$USERNAME/.ssh/config <<"EOL"
Host falcon.jaspersoft.com
HostName falcon.jaspersoft.com
IdentityFile ~/.ssh/id_dsa
EOL
chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/config
chmod 600 /home/$USERNAME/.ssh... | Use default file name for ssh key | Use default file name for ssh key | Shell | mit | rzhilkibaev/dev-env,rzhilkibaev/dev-env | shell | ## Code Before:
if [ "$(whoami)" != "root" ]; then
echo "Must be root."
exit 1
fi
USERNAME=$SUDO_USER
# ssh
cat > /home/$USERNAME/.ssh/config <<"EOL"
Host falcon.jaspersoft.com
HostName falcon.jaspersoft.com
IdentityFile ~/.ssh/<private_key>
EOL
chown $USERNAME:$USERNAME /home/$USERNAME/.ssh/config
chmod 6... |
15fe50c05b166c6f05e3889e9beaf14483a1a6df | src/scripts/content/dynamics-365.js | src/scripts/content/dynamics-365.js | 'use strict';
togglbutton.render('#headerContainer:not(.toggl)',
{ observe: true },
function (elem) {
const getDescription = function () {
// entity: incident
const ticketnumber = $('input[data-id="ticketnumber.fieldControl-text-box-text"]');
const ticketname = $('input[data-id="title.fieldCo... | 'use strict';
togglbutton.render(
'[data-id="ticketnumber.fieldControl-text-box-text"]:not(.toggl)',
{ observe: true },
function (elem) {
const header = $('#headerContainer');
const getDescription = function () {
// entity: incident
const ticketnumber = $(
'input[data-id="ticketnumber... | Fix observed element for Dynamics 365 | Fix observed element for Dynamics 365
The button was losing the active status right after the timer was started.
| JavaScript | bsd-3-clause | glensc/toggl-button,glensc/toggl-button,glensc/toggl-button | javascript | ## Code Before:
'use strict';
togglbutton.render('#headerContainer:not(.toggl)',
{ observe: true },
function (elem) {
const getDescription = function () {
// entity: incident
const ticketnumber = $('input[data-id="ticketnumber.fieldControl-text-box-text"]');
const ticketname = $('input[data-i... |
2b3aca68c8a67b9f7c5b56f582f7550948b6cad9 | README.md | README.md | The MVVM FX project targets Windows Forms and Visual Web GUI.
The project focus on providing a development framework based on three libraries:
- Caliburn.Micro MVVM framework
- bound controls library
- general purpose data binding library
The project's main goal is the MVVM framework. Caliburn.Micro is one of the bes... | The MVVM FX project targets Windows Forms, Visual Web GUI and Wisej.
The project focus on providing a development framework based on three libraries:
- Caliburn.Micro MVVM framework
- bound controls library
- general purpose data binding library
The project's main goal is the MVVM framework. Caliburn.Micro is one of ... | Add Wisej to the targets of the project. | Add Wisej to the targets of the project.
| Markdown | mit | MvvmFx/MvvmFx,tfreitasleal/MvvmFx | markdown | ## Code Before:
The MVVM FX project targets Windows Forms and Visual Web GUI.
The project focus on providing a development framework based on three libraries:
- Caliburn.Micro MVVM framework
- bound controls library
- general purpose data binding library
The project's main goal is the MVVM framework. Caliburn.Micro i... |
0cc5c711dfde79acebb41a9f91a3002ec9fe80cf | src/type.ts | src/type.ts | namespace fun {
/**
* Returns true if the value passed in is either null or undefined.
*/
export function isVoid(value: any): value is void {
// See https://basarat.gitbooks.io/typescript/content/docs/tips/null.html
return value == undefined;
}
export function isString(value: ... | namespace fun {
/**
* Returns true if the value passed in is either null or undefined.
*/
export function isVoid(value: any): value is void {
// See https://basarat.gitbooks.io/typescript/content/docs/tips/null.html
return value == undefined;
}
export function isString(value: ... | Add link to benchmark for toString implementation | Add link to benchmark for toString implementation
| TypeScript | mit | federico-lox/fun.ts | typescript | ## Code Before:
namespace fun {
/**
* Returns true if the value passed in is either null or undefined.
*/
export function isVoid(value: any): value is void {
// See https://basarat.gitbooks.io/typescript/content/docs/tips/null.html
return value == undefined;
}
export function ... |
16945303e5092bbd37f914ea10936d95e054f703 | harvesting_blog_data.py | harvesting_blog_data.py | import os
import sys
import json
import feedparser
from bs4 import BeautifulSoup
FEED_URL = 'http://g1.globo.com/dynamo/rss2.xml'
def cleanHtml(html):
return BeautifulSoup(html, 'lxml').get_text()
fp = feedparser.parse(FEED_URL)
print "Fetched %s entries from '%s'" % (len(fp.entries[0].title), fp.feed.title)
b... |
import os
import sys
import json
import feedparser
from bs4 import BeautifulSoup
FEED_URL = 'http://g1.globo.com/dynamo/rss2.xml'
fp = feedparser.parse(FEED_URL)
print "Fetched %s entries from '%s'" % (len(fp.entries[0].title), fp.feed.title)
blog_posts = []
for e in fp.entries:
blog_posts.append({'title': e.t... | Add G1 example and utf-8 | Add G1 example and utf-8
| Python | apache-2.0 | fabriciojoc/redes-sociais-web,fabriciojoc/redes-sociais-web | python | ## Code Before:
import os
import sys
import json
import feedparser
from bs4 import BeautifulSoup
FEED_URL = 'http://g1.globo.com/dynamo/rss2.xml'
def cleanHtml(html):
return BeautifulSoup(html, 'lxml').get_text()
fp = feedparser.parse(FEED_URL)
print "Fetched %s entries from '%s'" % (len(fp.entries[0].title), f... |
a0987263c8769c216e18ad38bf3179761dd71dc0 | metadata/com.marv42.ebt.newnote.yml | metadata/com.marv42.ebt.newnote.yml | AntiFeatures:
- NonFreeNet
Categories:
- Games
- Internet
- Money
License: GPL-2.0-only
SourceCode: https://github.com/marv42/EbtNewNote
IssueTracker: https://github.com/marv42/EbtNewNote/issues
AutoName: EBT New Note
RepoType: git
Repo: https://github.com/marv42/EbtNewNote
Builds:
- versionName: '0.19'
... | AntiFeatures:
- NonFreeNet
Categories:
- Games
- Internet
- Money
License: GPL-2.0-only
SourceCode: https://github.com/marv42/EbtNewNote
IssueTracker: https://github.com/marv42/EbtNewNote/issues
AutoName: EBT New Note
RepoType: git
Repo: https://github.com/marv42/EbtNewNote
Builds:
- versionName: '0.19'
... | Update EBT New Note to 0.46.0 | Update EBT New Note to 0.46.0
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeNet
Categories:
- Games
- Internet
- Money
License: GPL-2.0-only
SourceCode: https://github.com/marv42/EbtNewNote
IssueTracker: https://github.com/marv42/EbtNewNote/issues
AutoName: EBT New Note
RepoType: git
Repo: https://github.com/marv42/EbtNewNote
Builds:
- versio... |
1d6634c99f01b8a2be79292aad9b9990b468a8d0 | aliases/1st.zsh | aliases/1st.zsh | echoerr() {
cat <<< "$@" 1>&2
}
alias err=echoerr
# Add a dir to the path (if it exists and isn't already added).
addpath() {
if [ -d "$1" ]; then
if [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
else
err "Not a directory: $1"
fi
}
# Make a string replacement in ALL files R... | echoerr() {
cat <<< "$@" 1>&2
}
alias err=echoerr
# Add a dir to the path (if it exists and isn't already added).
addpath() {
if [ -d "$1" ]; then
if [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
else
err "Not a directory: $1"
fi
}
# Make a string replacement in ALL files R... | Make 'sed-recursive' even safer by requiring VCS | :lock: Make 'sed-recursive' even safer by requiring VCS
| Shell | mit | cooperka/personal-settings,cooperka/personal-settings,cooperka/Settings | shell | ## Code Before:
echoerr() {
cat <<< "$@" 1>&2
}
alias err=echoerr
# Add a dir to the path (if it exists and isn't already added).
addpath() {
if [ -d "$1" ]; then
if [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
else
err "Not a directory: $1"
fi
}
# Make a string replacemen... |
f268c56938f7a6e9cb06f4eeb71cbcc01fc86238 | opennms-doc/guide-install/src/asciidoc/text/newts/cassandra-debian.adoc | opennms-doc/guide-install/src/asciidoc/text/newts/cassandra-debian.adoc |
// Allow GitHub image rendering
:imagesdir: ../../images
[[gi-install-cassandra-debian]]
==== Installing on Debian-based systems
This section describes how to install the latest _Cassandra 2.1.x_ release on a _Debian_ based systems for _Newts_.
The first steps add the _DataStax_ community repository and install the ... |
// Allow GitHub image rendering
:imagesdir: ../../images
[[gi-install-cassandra-debian]]
==== Installing on Debian-based systems
This section describes how to install the latest _Cassandra 2.1.x_ release on a _Debian_ based systems for _Newts_.
The first steps add the _DataStax_ community repository and install the ... | Fix apt-get install command for Cassandra | HZN-325: Fix apt-get install command for Cassandra
Fixed apt-get install command and added apt-get update after installing Cassandra repository.
| AsciiDoc | agpl-3.0 | aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms | asciidoc | ## Code Before:
// Allow GitHub image rendering
:imagesdir: ../../images
[[gi-install-cassandra-debian]]
==== Installing on Debian-based systems
This section describes how to install the latest _Cassandra 2.1.x_ release on a _Debian_ based systems for _Newts_.
The first steps add the _DataStax_ community repository ... |
bad21dd19a4a4417161e7fd54fc19cdca4e62162 | docs/en/edge/guide/getting-started/index.md | docs/en/edge/guide/getting-started/index.md | ---
license: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Versi... | ---
license: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Versi... | Update Getting Started home page to focus on CLI. | [CB-3905] Update Getting Started home page to focus on CLI.
- fill out getting started splash screen
- update splash screen to focus on CLI prereq, omit archaic CL utils
| Markdown | apache-2.0 | bgashler1/cordova-docs,cpsloal/cordova-docs,csantanapr/cordova-docs,mhartington/cordova-docs,purplecabbage/cordova-docs,drbeermann/cordova-docs,RuRios/cordova-docs,shazron/cordova-docs,gylippus/cordova-docs,tony--/cordova-docs,monaca/cordova-docs,tripodsan/cordova-docs,apache/cordova-docs,purplecabbage/cordova-docs,zwa... | markdown | ## Code Before:
---
license: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apach... |
eca034a59abbb369548f6db0eff12cc64ec408fd | open_spiel/games/hearts/README.md | open_spiel/games/hearts/README.md |
OpenSpiel can support playing against Nathan Sturtevant's state of the art
Hearts program xinxin. To enable this option, see
`open_spiel/scripts/global_variables.sh`.
For more information about xinxin, see its
[github page](https://github.com/nathansttt/hearts) and/or
[Nathan's Hearts research page](https://webdocs.c... |
OpenSpiel can support playing against Nathan Sturtevant's state of the art
Hearts program xinxin (pronounced "sheen-sheen"). To enable this option, see
`open_spiel/scripts/global_variables.sh`.
For more information about xinxin, see its
[github page](https://github.com/nathansttt/hearts) and/or
[Nathan's Hearts resea... | Add xinxin pronunciation to readme. | Add xinxin pronunciation to readme.
| Markdown | apache-2.0 | deepmind/open_spiel,deepmind/open_spiel,deepmind/open_spiel,deepmind/open_spiel,deepmind/open_spiel,deepmind/open_spiel | markdown | ## Code Before:
OpenSpiel can support playing against Nathan Sturtevant's state of the art
Hearts program xinxin. To enable this option, see
`open_spiel/scripts/global_variables.sh`.
For more information about xinxin, see its
[github page](https://github.com/nathansttt/hearts) and/or
[Nathan's Hearts research page](h... |
f032f2db179a8db4a2b8a7c29d43af7a1d40a8d8 | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.10"
- "0.8"
- "0.6"
before_script:
- wget http://s3.amazonaws.com/influxdb/influxdb_0.0.9_amd64.deb
- sudo dpkg -i influxdb_0.0.9_amd64.deb
script: npm run travis-test | language: node_js
node_js:
- "0.10"
- "0.8"
before_script:
- wget http://s3.amazonaws.com/influxdb/influxdb_0.0.9_amd64.deb
- sudo dpkg -i influxdb_0.0.9_amd64.deb
script: npm run travis-test
| Drop support for Node 0.6 | Drop support for Node 0.6 | YAML | mit | dandv/node-influx,dandv/node-influx,node-influx/node-influx,node-influx/node-influx | yaml | ## Code Before:
language: node_js
node_js:
- "0.10"
- "0.8"
- "0.6"
before_script:
- wget http://s3.amazonaws.com/influxdb/influxdb_0.0.9_amd64.deb
- sudo dpkg -i influxdb_0.0.9_amd64.deb
script: npm run travis-test
## Instruction:
Drop support for Node 0.6
## Code After:
language: node_js
node_js:
- "0.10"... |
b8613edfbdaf27c9d6b74bff370d8a881f505564 | app/styles/ui/history/_commit-list.scss | app/styles/ui/history/_commit-list.scss | @import '../../mixins';
/** A React component holding history's commit list */
#commit-list {
display: flex;
flex-direction: column;
flex: 1;
.commit {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
border-bottom: var(--base-border);
padding: ... | @import '../../mixins';
/** A React component holding history's commit list */
#commit-list {
display: flex;
flex-direction: column;
flex: 1;
.commit {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
border-bottom: var(--base-border);
padding: ... | Add small space between commit summary and description | Add small space between commit summary and description
This commit brings down commit description by 3px while keeping commit summary in place. | SCSS | mit | say25/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,shiftkey/desktop... | scss | ## Code Before:
@import '../../mixins';
/** A React component holding history's commit list */
#commit-list {
display: flex;
flex-direction: column;
flex: 1;
.commit {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
border-bottom: var(--base-border)... |
00dd8775a885e5fa373a08976c15291197fc17c3 | conf.yaml | conf.yaml | version: '2.0.0, now proudly on python :snake:'
drunkdraw:
date: null
locales:
Pacific: America/Los_Angeles
Mountain: America/Denver
Central: America/Chicago
Eastern: America/New_York
Grenich: UTC
London: Europe/London
references: false
theme: null
time: null
emotions:
butt: "\U0001F... | version: '2.0.0, now proudly on python :snake:'
drunkdraw:
date: null
locales:
Pacific: America/Los_Angeles
Mountain: America/Denver
Central: America/Chicago
Eastern: America/New_York
Grenich: UTC
London: Europe/London
references: false
theme: null
time: null
emotions:
burrito: "\U00... | Add neato burrito, sort emotions | Add neato burrito, sort emotions | YAML | mit | ibanner56/OtherDave | yaml | ## Code Before:
version: '2.0.0, now proudly on python :snake:'
drunkdraw:
date: null
locales:
Pacific: America/Los_Angeles
Mountain: America/Denver
Central: America/Chicago
Eastern: America/New_York
Grenich: UTC
London: Europe/London
references: false
theme: null
time: null
emotions:
... |
30a17083d4464304e7fc0744aa8d523d83523d8b | README.md | README.md |
Lagoon solves what developers are dreaming about: A system that allows developers to locally develop their code and their services with Docker and run the exact same system in production. The same Docker images, the same service configurations and the same code.
Please reference our [documentation](https://lagoon.rea... |
Lagoon solves what developers are dreaming about: A system that allows developers to locally develop their code and their services with Docker and run the exact same system in production. The same Docker images, the same service configurations and the same code.
Please reference our [documentation](https://lagoon.rea... | Make the contrib guidelines easier accessable | Make the contrib guidelines easier accessable
| Markdown | apache-2.0 | amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon | markdown | ## Code Before:
Lagoon solves what developers are dreaming about: A system that allows developers to locally develop their code and their services with Docker and run the exact same system in production. The same Docker images, the same service configurations and the same code.
Please reference our [documentation](ht... |
bf4aef32820097be4ccb5219daebe563613400c2 | README.md | README.md | PFA
===
Kaboom sur les chiotes, c'est top!
| PFA
===
Tuto :
NormalBombTuto : Start : 5 normal Bombs + Splash qui parle des bases du jeu.
LineBombTuto : Start : 3 Line Bombs + Splash qui parle de la rotation.
ConeBombTuto : Start : 3 Cone Bombs + Splash sur la rotation.
XBombTuto : Start : 3 normal + 3 line + Splash qui parle de la combinaison de bombes.
Tut... | Add readme.rd who explain the components of maps. | Add readme.rd who explain the components of maps.
| Markdown | mit | fiahil/Kaboom | markdown | ## Code Before:
PFA
===
Kaboom sur les chiotes, c'est top!
## Instruction:
Add readme.rd who explain the components of maps.
## Code After:
PFA
===
Tuto :
NormalBombTuto : Start : 5 normal Bombs + Splash qui parle des bases du jeu.
LineBombTuto : Start : 3 Line Bombs + Splash qui parle de la rotation.
ConeBombTu... |
0300966ea5a1d97960dd8a0ec7128d363047751e | .travis.yml | .travis.yml | dist: xenial
language: c
compiler:
- clang
- gcc
python:
- "2.7"
sudo: required
before_install:
# - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
- sudo -H PATH="${PATH}:/usr/local/clang-3.4/bin" pip install -r requirements.txt
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
# - sudo... | language: c
compiler:
- clang
- gcc
python:
- "2.7"
sudo: required
before_install:
# - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
- sudo -H PATH="${PATH}:/usr/local/clang-3.4/bin" pip install -r requirements.txt
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
# - sudo brew update
... | Revert "Switch to xenial as being a more modern platform." | Revert "Switch to xenial as being a more modern platform."
This reverts commit 2f093dccf1b196880c0e18c90b7d79fdee3cb6c0.
| YAML | bsd-2-clause | dsanders11/rtpproxy,sippy/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy | yaml | ## Code Before:
dist: xenial
language: c
compiler:
- clang
- gcc
python:
- "2.7"
sudo: required
before_install:
# - sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
- sudo -H PATH="${PATH}:/usr/local/clang-3.4/bin" pip install -r requirements.txt
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get up... |
4941d366ef06dad0b0b185787865bfc26e126ac6 | tests/server_main.cc | tests/server_main.cc | /*
* ============================================================================
* Filename: server_main.cc
* Description: Server main for testing
* Version: 1.0
* Created: 04/25/2015 06:37:53 PM
* Revision: none
* Compiler: gcc
* Author: Rafael Gozlan, rafael.... | /*
* ============================================================================
* Filename: server_main.cc
* Description: Server main for testing
* Version: 1.0
* Created: 04/25/2015 06:37:53 PM
* Revision: none
* Compiler: gcc
* Author: Rafael Gozlan, rafael.... | Add stronger test for server | Testing: Add stronger test for server
| C++ | mit | FLIHABI/network,FLIHABI/network | c++ | ## Code Before:
/*
* ============================================================================
* Filename: server_main.cc
* Description: Server main for testing
* Version: 1.0
* Created: 04/25/2015 06:37:53 PM
* Revision: none
* Compiler: gcc
* Author: Rafael... |
a9304a456bf3b7af2586fc8e1e79b407a7afe2fd | install.sh | install.sh |
DOTFILES=".bash_aliases .bash_ps1 .bashrc .vimrc"
PWD=`pwd`
# Rename existing file with .old extension
# and create a symbolic link in home directory to dotfiles
# you can then update the dotfiles by simply executing 'git pull'
use() {
file=$1
if [ -f $HOME/$file ]; then
echo -n "File '$HOME/$file' exists. Delet... |
DOTFILES=".bash_aliases .bash_ps1 .bashrc .vimrc"
PWD=`pwd`
# Rename existing file with .old extension
# and create a symbolic link in home directory to dotfiles
# you can then update the dotfiles by simply executing 'git pull'
use() {
file=$1
if [ -f $HOME/$file ]; then
echo -n "File '$HOME/$file' exists. Delet... | Fix script to catch interrupt signal | Fix script to catch interrupt signal
| Shell | mit | kemskems/dotfiles | shell | ## Code Before:
DOTFILES=".bash_aliases .bash_ps1 .bashrc .vimrc"
PWD=`pwd`
# Rename existing file with .old extension
# and create a symbolic link in home directory to dotfiles
# you can then update the dotfiles by simply executing 'git pull'
use() {
file=$1
if [ -f $HOME/$file ]; then
echo -n "File '$HOME/$fil... |
9427fbcd5b4753d55c2991b9be06ae5ec041442a | gitio.go | gitio.go | /*
Package gitio shortens github urls using the git.io service.
*/
package gitio
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)
// Shorten a long github url.
func Shorten(longurl string) (string, error) {
resp, err := http.PostForm(`https://git.io/create`, url.Values{`url`: {longurl}})
if err != nil {
retu... | /*
Package gitio shortens github urls using the git.io service.
*/
package gitio
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"time"
)
// Shorten a long github url.
func Shorten(longurl string) (string, error) {
client := new(http.Client)
client.Timeout = 5 * time.Second
resp, err := client.PostForm(`http... | Add 5s timeout to http call | Add 5s timeout to http call
| Go | mit | aarondl/gitio | go | ## Code Before:
/*
Package gitio shortens github urls using the git.io service.
*/
package gitio
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)
// Shorten a long github url.
func Shorten(longurl string) (string, error) {
resp, err := http.PostForm(`https://git.io/create`, url.Values{`url`: {longurl}})
if err... |
119a81563c137951b3310176b0ae41c3397c4ff5 | prepare-deps.sh | prepare-deps.sh | cd deps
git submodule update --recursive --remote
cd che-core
mvn clean install
cd ..
cd che
mvn clean install
cd ..
cd user-dashboard
mvn clean install
cd ..
cd cli
mvn clean install
cd ..
cd ..
|
HOME_DIR=`pwd`
command -v compass >/dev/null 2>&1 || { echo "I require compass but it's not installed. Install with ´sudo gem install compass --pre´ Aborting." >&2; exit 1; }
cd $HOME_DIR/deps
git submodule update --recursive --remote
if [ $? -ne 0 ]; then
echo "ERROR: Unable to update submodules."
exit 1
f... | Check mvn build status for dependencies. | Check mvn build status for dependencies.
| Shell | apache-2.0 | AdaptiveMe/adaptive-services-dashbar,AdaptiveMe/adaptive-services-dashbar,AdaptiveMe/adaptive-services-dashbar,AdaptiveMe/adaptive-services-dashbar | shell | ## Code Before:
cd deps
git submodule update --recursive --remote
cd che-core
mvn clean install
cd ..
cd che
mvn clean install
cd ..
cd user-dashboard
mvn clean install
cd ..
cd cli
mvn clean install
cd ..
cd ..
## Instruction:
Check mvn build status for dependencies.
## Code After:
HOME_DIR=`pwd`
command -v compa... |
84182f77abe2bf2a689aa94c3b77a4feb808aac6 | package.json | package.json | {
"name": "tblog",
"version": "1.0.0",
"description": "A blog implementation ",
"main": "index.js",
"repository": "https://github.com/darkamenosa/tblog.git",
"author": "tuyenhx <hxtxmu@gmail.com>",
"license": "MIT",
"scripts": {
"start": "nps",
"prepush": "npm start test && npm start build",
... | {
"name": "tblog",
"version": "1.0.0",
"description": "A blog implementation ",
"main": "index.js",
"repository": "https://github.com/darkamenosa/tblog.git",
"author": "tuyenhx <hxtxmu@gmail.com>",
"license": "MIT",
"scripts": {
"start": "nps",
"prepush": "npm start test && npm start build",
... | Add cache directory for heroku build | Add cache directory for heroku build
| JSON | mit | darkamenosa/tblog,darkamenosa/tblog | json | ## Code Before:
{
"name": "tblog",
"version": "1.0.0",
"description": "A blog implementation ",
"main": "index.js",
"repository": "https://github.com/darkamenosa/tblog.git",
"author": "tuyenhx <hxtxmu@gmail.com>",
"license": "MIT",
"scripts": {
"start": "nps",
"prepush": "npm start test && npm s... |
e72c1e21ec397c18694d73eb6a104ba9d7f2eb11 | code/FacebookMetadataSiteConfig.php | code/FacebookMetadataSiteConfig.php | <?php
class FacebookMetadataSiteConfig extends DataExtension {
static $db = array(
'SkipToMainContentAccessKey' => 'VarChar(1)'
);
static $has_one = array(
'FacebookLogo' => 'Image'
);
public function updateCMSFields(FieldList $fields) {
$tf2 = new TextFie... | <?php
class FacebookMetadataSiteConfig extends DataExtension {
static $db = array(
'SkipToMainContentAccessKey' => 'VarChar(1)'
);
static $has_one = array(
'FacebookLogo' => 'Image'
);
public function updateCMSFields(FieldList $fields) {
$fields->rename... | Remove empty field, hangover from access keys module | FIX: Remove empty field, hangover from access keys module
| PHP | bsd-3-clause | gordonbanderson/facebook-tools | php | ## Code Before:
<?php
class FacebookMetadataSiteConfig extends DataExtension {
static $db = array(
'SkipToMainContentAccessKey' => 'VarChar(1)'
);
static $has_one = array(
'FacebookLogo' => 'Image'
);
public function updateCMSFields(FieldList $fields) {
$t... |
454b054e3a0af670849bd5ed2e7aff3bafee050b | generator-templates/src/Application.php | generator-templates/src/Application.php | <?php
namespace $$NAMESPACE$$;
use Radvance\Framework\BaseWebApplication;
use Radvance\Framework\FrameworkApplicationInterface;
// use $$NAMESPACE$$\Repository\PdoExampleRepository;
use RuntimeException;
class Application extends BaseWebApplication implements FrameworkApplicationInterface
{
public function getRo... | <?php
namespace $$NAMESPACE$$;
use Radvance\Framework\BaseWebApplication;
use Radvance\Framework\FrameworkApplicationInterface;
// use $$NAMESPACE$$\Repository\PdoExampleRepository;
use RuntimeException;
class Application extends BaseWebApplication implements FrameworkApplicationInterface
{
public function getRo... | Use automatic repository configuration in generated application | Use automatic repository configuration in generated application
| PHP | mit | Radvance/Radvance,boite/Radvance,Radvance/Radvance,Radvance/Radvance,boite/Radvance,boite/Radvance | php | ## Code Before:
<?php
namespace $$NAMESPACE$$;
use Radvance\Framework\BaseWebApplication;
use Radvance\Framework\FrameworkApplicationInterface;
// use $$NAMESPACE$$\Repository\PdoExampleRepository;
use RuntimeException;
class Application extends BaseWebApplication implements FrameworkApplicationInterface
{
publi... |
038303b92561c47e8938d17ead399510d94707a1 | ee-lang_item/src/main/kotlin/ee/lang/integ/EePaths.kt | ee-lang_item/src/main/kotlin/ee/lang/integ/EePaths.kt | package ee.lang.integ
import ee.common.ext.isMac
import java.nio.file.Paths
val dPath = Paths.get(if (isMac) "/Users/ee/d" else "D:\\TC_CACHE\\eed")
val eePath = Paths.get(if (isMac) "$dPath/ee" else "$dPath\\ee")
| package ee.lang.integ
import ee.common.ext.isWindows
import java.nio.file.Paths
val dPath = Paths.get(if (isWindows) "D:\\TC_CACHE\\eed" else "/Users/ee/d")
val eePath = Paths.get(if (isWindows) "$dPath\\ee" else "$dPath/ee")
| Change path of base development folder | Change path of base development folder
| Kotlin | apache-2.0 | eugeis/ee,eugeis/ee | kotlin | ## Code Before:
package ee.lang.integ
import ee.common.ext.isMac
import java.nio.file.Paths
val dPath = Paths.get(if (isMac) "/Users/ee/d" else "D:\\TC_CACHE\\eed")
val eePath = Paths.get(if (isMac) "$dPath/ee" else "$dPath\\ee")
## Instruction:
Change path of base development folder
## Code After:
package ee.lang.... |
2ff62772281df1e2df34a9682ad29c0b982d3f5e | extensions/theme-red/themes/Red-color-theme.json | extensions/theme-red/themes/Red-color-theme.json | {
"tokenColors": "./red.tmTheme",
"colors": {
"editorBackground": "#390000",
"editorCursor": "#970000",
"editorForeground": "#F8F8F8",
"editorWhitespaces": "#c10000",
"editorLineHighlight": "#0000004A",
"editorSelection": "#750000"
},
"name": "Red"
} | {
"tokenColors": "./red.tmTheme",
"colors": {
"activityBarBackground": "#4B0000",
"editorBackground": "#390000",
"editorCursor": "#970000",
"editorForeground": "#F8F8F8",
"editorWhitespaces": "#c10000",
"editorLineHighlight": "#0000004A",
"editorSelection": "#750000",
"inactiveTabBackground": "#300000... | Add some basic colors for the red theme | Add some basic colors for the red theme
| JSON | mit | 0xmohit/vscode,microsoft/vscode,landonepps/vscode,landonepps/vscode,rishii7/vscode,microlv/vscode,Zalastax/vscode,stringham/vscode,landonepps/vscode,DustinCampbell/vscode,rishii7/vscode,microlv/vscode,Microsoft/vscode,the-ress/vscode,Microsoft/vscode,Microsoft/vscode,microsoft/vscode,landonepps/vscode,joaomoreno/vscode... | json | ## Code Before:
{
"tokenColors": "./red.tmTheme",
"colors": {
"editorBackground": "#390000",
"editorCursor": "#970000",
"editorForeground": "#F8F8F8",
"editorWhitespaces": "#c10000",
"editorLineHighlight": "#0000004A",
"editorSelection": "#750000"
},
"name": "Red"
}
## Instruction:
Add some basic colors... |
71ef2b5d2d489a5a2bcb86190b33797f4954290c | pkgs/os-specific/linux/eudev/default.nix | pkgs/os-specific/linux/eudev/default.nix | {stdenv, fetchurl, pkgconfig, glib, gperf}:
let
s = # Generated upstream information
rec {
baseName="eudev";
version="2.1.1";
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
sha256="0shf5vqiz9fdxl95aa1a8vh0xjxwim3psc39wr2xr8lnahf11vva";
};
... | {stdenv, fetchurl, pkgconfig, glib, gperf, utillinux}:
let
s = # Generated upstream information
rec {
baseName="eudev";
version="2.1.1";
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
sha256="0shf5vqiz9fdxl95aa1a8vh0xjxwim3psc39wr2xr8lnahf11vv... | Allow eudev to find blkid | Allow eudev to find blkid
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlo... | nix | ## Code Before:
{stdenv, fetchurl, pkgconfig, glib, gperf}:
let
s = # Generated upstream information
rec {
baseName="eudev";
version="2.1.1";
name="${baseName}-${version}";
url="http://dev.gentoo.org/~blueness/eudev/eudev-${version}.tar.gz";
sha256="0shf5vqiz9fdxl95aa1a8vh0xjxwim3psc39wr2xr8lnah... |
21b4f3ca08b292bf9a20e6b87e94c404ac34ce70 | lib/views/general/_orglink.rhtml | lib/views/general/_orglink.rhtml | <div><%= link_to "#{image_tag('navimg/logo-trans.png')} Make and explore Freedom of Information requests", frontpage_url, :id=>'logo' %>
</div>
<div id="orglogo">
<a href="http://www.mysociety.org">another really handy site by mysociety.org</a>
</div> | <div><%= link_to "#{image_tag('navimg/logo-trans.png', :alt => 'WhatDoTheyKnow?')} Make and explore Freedom of Information requests", frontpage_url, :id=>'logo' %>
</div>
<div id="orglogo">
<a href="http://www.mysociety.org">another really handy site by mysociety.org</a>
</div>
| Include alt text for logo | Include alt text for logo
| RHTML | mit | mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,schlos/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,schlos/whatdotheyknow-theme | rhtml | ## Code Before:
<div><%= link_to "#{image_tag('navimg/logo-trans.png')} Make and explore Freedom of Information requests", frontpage_url, :id=>'logo' %>
</div>
<div id="orglogo">
<a href="http://www.mysociety.org">another really handy site by mysociety.org</a>
</div>
## Instruction:
Include alt text for logo
##... |
abd78b35932cc89e125f651f3c290c357660dbb3 | app/index.js | app/index.js | import 'babel-core/polyfill'
import 'whatwg-fetch'
import Promise from 'bluebird'
Promise.longStackTraces()
import React from 'react'
React.initializeTouchEvents(true)
import './helpers/bindKeys'
import './startThings/startNotifications'
import './startThings/startGlobalPollution'
import './startThings/startDataLoad... | import Promise from 'bluebird'
Promise.longStackTraces()
import 'babel-core/polyfill'
import 'whatwg-fetch'
import React from 'react'
React.initializeTouchEvents(true)
import './helpers/bindKeys'
import './startThings/startNotifications'
import './startThings/startGlobalPollution'
import './startThings/startDataLoad... | Move promise initialization to the first thing | Move promise initialization to the first thing
| JavaScript | agpl-3.0 | hawkrives/gobbldygook,hawkrives/gobbldygook,hawkrives/gobbldygook | javascript | ## Code Before:
import 'babel-core/polyfill'
import 'whatwg-fetch'
import Promise from 'bluebird'
Promise.longStackTraces()
import React from 'react'
React.initializeTouchEvents(true)
import './helpers/bindKeys'
import './startThings/startNotifications'
import './startThings/startGlobalPollution'
import './startThin... |
d0cb94447a97f4d4a485574ce41dd0402ec8d9c1 | .travis.yml | .travis.yml | notifications:
recipients:
- bodo@wannawork.de
| notifications:
recipients:
- bodo@wannawork.de
rvm:
- 1.8.7
- 1.9.2
| Build for 1.8 and 1.9 | Build for 1.8 and 1.9 | YAML | mit | putpat/rockstar,kauden/rockstar | yaml | ## Code Before:
notifications:
recipients:
- bodo@wannawork.de
## Instruction:
Build for 1.8 and 1.9
## Code After:
notifications:
recipients:
- bodo@wannawork.de
rvm:
- 1.8.7
- 1.9.2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.