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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
be16b3c2b67f160e46ed951a8e9e691bc09b8d05 | easypyplot/pdf.py | easypyplot/pdf.py | import matplotlib.backends.backend_pdf
from .format import paper_plot
def plot_setup(name, dims, fontsize=9):
""" Setup a PDF page for plot.
name: PDF file name. If not ending with .pdf, will automatically append.
dims: dimension of the plot in inches, should be an array of length two.
fontsize: font... | from contextlib import contextmanager
import matplotlib.backends.backend_pdf
from .format import paper_plot
def plot_setup(name, figsize=None, fontsize=9):
""" Setup a PDF page for plot.
name: PDF file name. If not ending with .pdf, will automatically append.
figsize: dimension of the plot in inches, sho... | Add a context manager for PDF plot. | Add a context manager for PDF plot.
| Python | bsd-3-clause | gaomy3832/easypyplot,gaomy3832/easypyplot | python | ## Code Before:
import matplotlib.backends.backend_pdf
from .format import paper_plot
def plot_setup(name, dims, fontsize=9):
""" Setup a PDF page for plot.
name: PDF file name. If not ending with .pdf, will automatically append.
dims: dimension of the plot in inches, should be an array of length two.
... |
56709eb2fcec23ae1f59ff3083349679ea19e9ad | web/forms/admin/portfolio/image_series_form.ex | web/forms/admin/portfolio/image_series_form.ex | defmodule Brando.Portfolio.Admin.ImageSeriesForm do
@moduledoc """
A form for the ImageCategory model. See the `Brando.Form` module for more
documentation
"""
use Brando.Form
alias Brando.Portfolio.ImageCategory
alias Brando.Portfolio.ImageSeries
@doc false
def get_categories() do
categories =
... | defmodule Brando.Portfolio.Admin.ImageSeriesForm do
@moduledoc """
A form for the ImageCategory model. See the `Brando.Form` module for more
documentation
"""
use Brando.Form
alias Brando.Portfolio.ImageCategory
alias Brando.Portfolio.ImageSeries
@doc false
def get_categories() do
categories =
... | Call function at module level | Call function at module level
| Elixir | mit | twined/brando_portfolio,twined/brando_portfolio | elixir | ## Code Before:
defmodule Brando.Portfolio.Admin.ImageSeriesForm do
@moduledoc """
A form for the ImageCategory model. See the `Brando.Form` module for more
documentation
"""
use Brando.Form
alias Brando.Portfolio.ImageCategory
alias Brando.Portfolio.ImageSeries
@doc false
def get_categories() do
... |
964ae451dca08e06bf026c443b087502a78d491e | src/Http/Controllers/DenyAuthorizationController.php | src/Http/Controllers/DenyAuthorizationController.php | <?php
namespace Laravel\Passport\Http\Controllers;
use Illuminate\Support\Arr;
use Illuminate\Http\Request;
use Illuminate\Contracts\Routing\ResponseFactory;
class DenyAuthorizationController
{
use RetrievesAuthRequestFromSession;
/**
* The response factory implementation.
*
* @var \Illuminat... | <?php
namespace Laravel\Passport\Http\Controllers;
use Illuminate\Support\Arr;
use Illuminate\Http\Request;
use Illuminate\Contracts\Routing\ResponseFactory;
class DenyAuthorizationController
{
use RetrievesAuthRequestFromSession;
/**
* The response factory implementation.
*
* @var \Illuminat... | Allow for URI with already existing query string | Allow for URI with already existing query string | PHP | mit | laravel/passport | php | ## Code Before:
<?php
namespace Laravel\Passport\Http\Controllers;
use Illuminate\Support\Arr;
use Illuminate\Http\Request;
use Illuminate\Contracts\Routing\ResponseFactory;
class DenyAuthorizationController
{
use RetrievesAuthRequestFromSession;
/**
* The response factory implementation.
*
*... |
3038c3a36230fc972a1581c25f1b056d6955b3ea | test/test_formatter_tsv.rb | test/test_formatter_tsv.rb | require_relative 'helper'
require 'fluent/formatter'
require 'fluent/plugin/formatter_tsv'
class TsvFormatterTest < ::Test::Unit::TestCase
def setup
@formatter = Fluent::Plugin.new_formatter('tsv')
@time = Fluent::Engine.now
end
def configure(conf)
@formatter.configure({'utc' => true}.merge(conf))
... | require_relative 'helper'
require 'fluent/formatter'
require 'fluent/plugin/formatter_tsv'
class TsvFormatterTest < ::Test::Unit::TestCase
def setup
@formatter = Fluent::Plugin.new_formatter('tsv')
@time = Fluent::Engine.now
end
def e(name, arg='', attrs={}, elements=[])
Fluent::Config::Element.new(... | Use Fluent::Config::Element explicitly in test | Use Fluent::Config::Element explicitly in test
| Ruby | mit | sonots/fluent-plugin-formatter_tsv | ruby | ## Code Before:
require_relative 'helper'
require 'fluent/formatter'
require 'fluent/plugin/formatter_tsv'
class TsvFormatterTest < ::Test::Unit::TestCase
def setup
@formatter = Fluent::Plugin.new_formatter('tsv')
@time = Fluent::Engine.now
end
def configure(conf)
@formatter.configure({'utc' => true... |
198c04cecece9c4b0bfe235f37dbe718f8ee6961 | app/views/images/_s3_upload_form.html.erb | app/views/images/_s3_upload_form.html.erb | <div class="row margin-vert-10">
<div class="col-md-2"><%= label %></div>
<div class="col-md-10">
<%= s3_uploader_form id: "s3-uploader#{'-primary' if local_assigns[:primary]}",
callback_url: vehicle_images_url(vehicle, primary: local_assigns[:primary]),
callback_param: "image[direct_upload_url]",
... | <div class="row margin-vert-10">
<div class="col-md-2"><%= label %></div>
<div class="col-md-10">
<%= s3_uploader_form id: "s3-uploader#{'-primary' if local_assigns[:primary]}",
callback_url: vehicle_images_url(vehicle, primary: local_assigns[:primary]),
callback_param: "image[direct_upload_url]",
... | Add some tags to file uploads to see if uploaded images are easier from phone | Add some tags to file uploads to see if uploaded images are easier from phone
| HTML+ERB | mit | BigGillyStyle/dealer,BigGillyStyle/dealer,BigGillyStyle/dealer | html+erb | ## Code Before:
<div class="row margin-vert-10">
<div class="col-md-2"><%= label %></div>
<div class="col-md-10">
<%= s3_uploader_form id: "s3-uploader#{'-primary' if local_assigns[:primary]}",
callback_url: vehicle_images_url(vehicle, primary: local_assigns[:primary]),
callback_param: "image[direct... |
4284a8ddc43fd369a7893b1743dfb057e652660d | lib/icsfilter.rb | lib/icsfilter.rb | require 'icalendar'
require 'open-uri'
class ICSFilter
def initialize(calendar, output = nil)
calendar_file = open(calendar)
calendars = Icalendar.parse(calendar_file)
@calendar = calendars.first
@events = @calendar.events
@output = output ? output : calendar
end
def filter#(filters, replace... | require 'icalendar'
require 'open-uri'
class ICSFilter
def initialize(calendar, output = nil)
calendar_file = open(calendar)
calendars = Icalendar.parse(calendar_file)
@calendar = calendars.first
@events = @calendar.events
@output = output ? output : calendar
end
def filter(filters)
@eve... | Split filter into two functions: filter and replace | Split filter into two functions: filter and replace
The new filter function rejects whole events.
The replace function replaces regular expression matches with the
provided substitute.
| Ruby | mit | sachse/icsfilter | ruby | ## Code Before:
require 'icalendar'
require 'open-uri'
class ICSFilter
def initialize(calendar, output = nil)
calendar_file = open(calendar)
calendars = Icalendar.parse(calendar_file)
@calendar = calendars.first
@events = @calendar.events
@output = output ? output : calendar
end
def filter#(... |
214b2ac5b5db43adfd3d424d1f654602a1d058f0 | .travis.yml | .travis.yml | sudo: required
dist: xenial
language: python
python:
- "3.6"
before_install:
- sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python3
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.27.0/bazel-0.27.0-installer-linux-x86_64.sh'
- chmod +x bazel-0.27.0-installer-linux-x86_64.sh
- ./b... | sudo: required
dist: xenial
language: python
python:
- "3.6"
before_install:
- sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python3
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.28.1/bazel-0.28.1-installer-linux-x86_64.sh'
- chmod +x bazel-0.28.1-installer-linux-x86_64.sh
- ./b... | Upgrade Bazel in Travis CI build environment to version 0.28.1. | Upgrade Bazel in Travis CI build environment to version 0.28.1.
| YAML | apache-2.0 | google-research/turkish-morphology,google-research/turkish-morphology | yaml | ## Code Before:
sudo: required
dist: xenial
language: python
python:
- "3.6"
before_install:
- sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python3
- wget 'https://github.com/bazelbuild/bazel/releases/download/0.27.0/bazel-0.27.0-installer-linux-x86_64.sh'
- chmod +x bazel-0.27.0-installer-linux-x... |
5349a338f3a9191c2e86b7a47b5a592a4b2236bb | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
</head>
<body>... | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Hello... | Allow inline CSS and style attributes | CORS: Allow inline CSS and style attributes | HTML | cc0-1.0 | atom/electron-quick-start,atom/electron-quick-start | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<link href="./styles.css" rel="stylesheet">
<title>Hello World!</title>
... |
0ff107415be7f2e0d2c4f08fb9e1e2ecd11314a0 | docker-cleanup.sh | docker-cleanup.sh |
docker rm -v $(docker ps -a | grep Exited | tr -s " " | cut -f1 -d\ )
docker rmi $(docker images | grep '<none>' | tr -s " " | cut -f3 -d\ )
|
docker rm -v $(docker ps -a | grep Exited | tr -s " " | cut -f1 -d\ )
if [[ "$1" == "-a" ]]; then
docker rm -v $(docker ps -a | grep Created | tr -s " " | cut -f1 -d\ )
fi # [[ "$1" == "-a" ]]
docker rmi $(docker images | grep '<none>' | tr -s " " | cut -f3 -d\ )
| Allow cleaning also only created containers that were not started. | Allow cleaning also only created containers that were not started.
| Shell | bsd-3-clause | bmustiata/docker-bin | shell | ## Code Before:
docker rm -v $(docker ps -a | grep Exited | tr -s " " | cut -f1 -d\ )
docker rmi $(docker images | grep '<none>' | tr -s " " | cut -f3 -d\ )
## Instruction:
Allow cleaning also only created containers that were not started.
## Code After:
docker rm -v $(docker ps -a | grep Exited | tr -s " " | cut -... |
9ae3b5ba693c1e2fc77fade2419d9a4f8f7a7ef8 | misc/uninstall.bat | misc/uninstall.bat | @ECHO off
:prompt
set /P c=Are you sure you want to uninstall BetterDiscord [Y/N]?
echo.
if /I "%c%" EQU "Y" goto :removeBetterDiscord
if /I "%c%" EQU "N" goto :eof
goto :prompt
:removeBetterDiscord
echo Removing BetterDiscord...
echo.
:: Delete %appdata%\BetterDiscord
call:deleteFolder %appdata%\Bett... | @ECHO off
:prompt
set /P c=Are you sure you want to uninstall BetterDiscord [Y/N]?
echo.
if /I "%c%" EQU "Y" goto :removeBetterDiscord
if /I "%c%" EQU "N" goto :eof
goto :prompt
:removeBetterDiscord
echo Removing BetterDiscord...
echo.
:: Delete %appdata%\BetterDiscord
call:deleteFolder %appdata%\Bett... | Remove unnecessary line of code | Remove unnecessary line of code
I forgot to delete this line before committing the file | Batchfile | mit | mkody/BetterDiscordApp,Confuseh/BetterDiscordApp,Jiiks/BetterDiscordApp,mkody/BetterDiscordApp,Jiiks/BetterDiscordApp,DeathStrikeV/BetterDiscordApp,Confuseh/BetterDiscordApp,mkody/BetterDiscordApp,DeathStrikeV/BetterDiscordApp,Confuseh/BetterDiscordApp,DeathStrikeV/BetterDiscordApp,Jiiks/BetterDiscordApp,mkody/BetterDi... | batchfile | ## Code Before:
@ECHO off
:prompt
set /P c=Are you sure you want to uninstall BetterDiscord [Y/N]?
echo.
if /I "%c%" EQU "Y" goto :removeBetterDiscord
if /I "%c%" EQU "N" goto :eof
goto :prompt
:removeBetterDiscord
echo Removing BetterDiscord...
echo.
:: Delete %appdata%\BetterDiscord
call:deleteFolder %appdata%\Be... |
775cfd3268949779fcbe72886f255f8ee5d26b1e | zsh/init/completion.zsh | zsh/init/completion.zsh | zmodload -i zsh/complist
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol
setopt auto_menu # show completion menu on successive tab press
setopt complete_in_word
setopt always_to_end
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' special-dirs true... | zmodload -i zsh/complist
WORDCHARS=''
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol
setopt auto_menu # show completion menu on successive tab press
setopt complete_in_word
setopt always_to_end
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' spe... | Stop word deletion on seperators like '/', '-' etc | Stop word deletion on seperators like '/', '-' etc
| Shell | mit | marshall-lee/dotfiles,marshall-lee/dotfiles | shell | ## Code Before:
zmodload -i zsh/complist
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol
setopt auto_menu # show completion menu on successive tab press
setopt complete_in_word
setopt always_to_end
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' s... |
9ca88afd01b5a0995e124d84eb8730d69207b80a | frontend/app/assets/javascripts/application.js | frontend/app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | Improve UX of deck upload button | Improve UX of deck upload button
| JavaScript | mit | fenhl/lore-seeker,taw/magic-search-engine,fenhl/lore-seeker,fenhl/lore-seeker,taw/magic-search-engine,taw/magic-search-engine,fenhl/lore-seeker,fenhl/lore-seeker | javascript | ## Code Before:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here u... |
bc1209b978b539c5b0f5de1e9ff967bf82690925 | terraform/variables.tf | terraform/variables.tf | variable "key_pair"{
type = "string"
default = "sochor"
}
variable "ami" {
type = "string"
default = "ami-e9c0e18c"
}
variable "spot_price" {
type = "string"
default = "0.40"
}
variable "profile" {
type = "string"
default = "Modeler"
}
variable "subnet" {
type = "string"
default = "subnet-6347d50a"
}
# T... | variable "key_pair"{
type = "string"
default = "sochor"
}
variable "ami" {
type = "string"
default = "ami-e9c0e18c"
}
variable "spot_price" {
type = "string"
default = "3.5"
}
variable "profile" {
type = "string"
default = "Modeler"
}
variable "subnet" {
type = "string"
default = "subnet-63bd1818"
}
# Th... | Move up to p2.8x instance | Move up to p2.8x instance
| HCL | mit | matthew-sochor/trail-cam-detector,matthew-sochor/trail-cam-detector | hcl | ## Code Before:
variable "key_pair"{
type = "string"
default = "sochor"
}
variable "ami" {
type = "string"
default = "ami-e9c0e18c"
}
variable "spot_price" {
type = "string"
default = "0.40"
}
variable "profile" {
type = "string"
default = "Modeler"
}
variable "subnet" {
type = "string"
default = "subnet-... |
4fa4728310735feb1b2bad644ec888d00f79a055 | Gruntfile.js | Gruntfile.js |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
dox: {
options: {
title: "Rebelizer API Docs"
},
files: {
src: ['lib/**/*.js'],
dest: 'doc'
}
},
jshint: {
options: {
curly: true,
eqeqeq: false,
... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: {
repository: {
url:'http://github.com/Rebelizer/rebelizer'
},
version: '0.0.1 (Sneetches)'
},
dox: {
options: {
title: "Rebelizer API Docs"
},
files: {
src:... | Add git repository and version to grunt Changelog | Add git repository and version to grunt Changelog
| JavaScript | mit | Rebelizer/rebelizer | javascript | ## Code Before:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
dox: {
options: {
title: "Rebelizer API Docs"
},
files: {
src: ['lib/**/*.js'],
dest: 'doc'
}
},
jshint: {
options: {
curly: true,
eqe... |
b97dda1e9267e3c5ef6fc2686cf6c712e1875178 | .travis.yml | .travis.yml | language: ruby
script: bundle exec rake test
sudo: false
rvm:
- "2.0"
- "2.1"
- "2.2"
gemfile:
- Gemfile.activesupport32
- Gemfile.activesupport40
- Gemfile.activesupport41
- Gemfile.activesupport42
env:
global:
- ACTIVESHIPPING_NEW_ZEALAND_POST_KEY=4d9dc0f0-dda0-012e-066f-000c29b44ac0
- ACTIVESHIPPING_CANADA_... | language: ruby
script: bundle exec rake test
sudo: false
rvm:
- "2.0"
- "2.1"
- "2.2"
gemfile:
- Gemfile.activesupport32
- Gemfile.activesupport40
- Gemfile.activesupport41
- Gemfile.activesupport42
env:
global:
- ACTIVESHIPPING_NEW_ZEALAND_POST_KEY=4d9dc0f0-dda0-012e-066f-000c29b44ac0
- ACTIVESHIPPING_CANADA_... | Disable Canada Post PWS integration tests on Travis CI, because they are failing | Disable Canada Post PWS integration tests on Travis CI, because they are failing
| YAML | mit | johannboutet/active_shipping,Shopify/active_shipping,Goldbely/active_shipping | yaml | ## Code Before:
language: ruby
script: bundle exec rake test
sudo: false
rvm:
- "2.0"
- "2.1"
- "2.2"
gemfile:
- Gemfile.activesupport32
- Gemfile.activesupport40
- Gemfile.activesupport41
- Gemfile.activesupport42
env:
global:
- ACTIVESHIPPING_NEW_ZEALAND_POST_KEY=4d9dc0f0-dda0-012e-066f-000c29b44ac0
- ACTIVE... |
a12ea938e8b21e0e0ed98a3406529666bec7868b | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.4"
before_install:
- nvm install 4.2
install:
- pip install -r requirements_for_test.txt
- npm install
- npm run frontend-build:production
script:
- PYTEST_ARGS='--cov=app --cov-report=term-missing' make test
after_success:
- coveralls
notifications:
email: false
| language: python
cache:
pip: true
directories:
- node_modules
- bower_components
python:
- "2.7"
- "3.4"
before_install:
- nvm install 4.2
install:
- pip install -r requirements_for_test.txt
- npm install
- npm run frontend-build:production
script:
- PYTEST_ARGS='--cov=app --cov-report=term-mi... | Enable Travis cache for pip, npm and bower | Enable Travis cache for pip, npm and bower
We've seen travis builds fail sometimes during npm install, so
maybe [caching the dependency paths][1] will help to avoid this.
This might introduce other issues though, with stale cache causing
the build to run outdated code, so keep in mind you might need to
clear the trav... | YAML | mit | alphagov/digitalmarketplace-supplier-frontend,alphagov/digitalmarketplace-supplier-frontend,alphagov/digitalmarketplace-supplier-frontend,alphagov/digitalmarketplace-supplier-frontend | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.4"
before_install:
- nvm install 4.2
install:
- pip install -r requirements_for_test.txt
- npm install
- npm run frontend-build:production
script:
- PYTEST_ARGS='--cov=app --cov-report=term-missing' make test
after_success:
- coveralls
notifications:... |
c5950f7361e34736c07a6b8ccd731e9349469cfc | packages/twitter/twitter_client.js | packages/twitter/twitter_client.js | Twitter = {};
// Request Twitter credentials for the user
// @param options {optional} XXX support options.requestPermissions
// @param credentialRequestCompleteCallback {Function} Callback function to call on
// completion. Takes one argument, credentialToken on success, or Error on
// error.
Twitter.requestCred... | Twitter = {};
// Request Twitter credentials for the user
// @param options {optional} XXX support options.requestPermissions
// @param credentialRequestCompleteCallback {Function} Callback function to call on
// completion. Takes one argument, credentialToken on success, or Error on
// error.
Twitter.requestCred... | Use `Meteor.absoluteUrl` for Twitter login URL | Use `Meteor.absoluteUrl` for Twitter login URL
Fixes Twitter login on Cordova
| JavaScript | mit | luohuazju/meteor,baiyunping333/meteor,baysao/meteor,DCKT/meteor,AnthonyAstige/meteor,benjamn/meteor,iman-mafi/meteor,HugoRLopes/meteor,pjump/meteor,skarekrow/meteor,yonglehou/meteor,AnjirHossain/meteor,meteor-velocity/meteor,cbonami/meteor,TribeMedia/meteor,henrypan/meteor,devgrok/meteor,jirengu/meteor,jdivy/meteor,hri... | javascript | ## Code Before:
Twitter = {};
// Request Twitter credentials for the user
// @param options {optional} XXX support options.requestPermissions
// @param credentialRequestCompleteCallback {Function} Callback function to call on
// completion. Takes one argument, credentialToken on success, or Error on
// error.
Twi... |
dc35feeb467e00f9ffa32f854e1577d74a602782 | metadata/com.thermatk.android.xf.fakegapps.yml | metadata/com.thermatk.android.xf.fakegapps.yml | Categories:
- System
License: GPL-3.0
SourceCode: https://github.com/thermatk/FakeGApps
IssueTracker: https://github.com/thermatk/FakeGApps/issues
Changelog: https://github.com/thermatk/FakeGApps/releases
LiberapayID: '27901'
Summary: Used with µg GmsCore to enable Google Cloud Messaging (GCM) and more
Description: ... | Categories:
- System
License: GPL-3.0
SourceCode: https://github.com/thermatk/FakeGApps
IssueTracker: https://github.com/thermatk/FakeGApps/issues
Changelog: https://github.com/thermatk/FakeGApps/releases
LiberapayID: '27901'
AutoName: FakeGapps
Summary: Used with µg GmsCore to enable Google Cloud Messaging (GCM) an... | Update CV of FakeGapps to 2.0 (3) | Update CV of FakeGapps to 2.0 (3)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | yaml | ## Code Before:
Categories:
- System
License: GPL-3.0
SourceCode: https://github.com/thermatk/FakeGApps
IssueTracker: https://github.com/thermatk/FakeGApps/issues
Changelog: https://github.com/thermatk/FakeGApps/releases
LiberapayID: '27901'
Summary: Used with µg GmsCore to enable Google Cloud Messaging (GCM) and mo... |
367349184eb63c051685c8032574ccd64adc59ee | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: ruby
bundler_args: --jobs=3 --retry=3
cache: bundler
before_install:
- sudo apt update
- sudo apt install -y libapt-pkg-dev cppcheck
- gem install --remote bundler
rvm:
- 2.1
- 2.2
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
notificat... | ---
dist: bionic
sudo: true
language: ruby
cache: bundler
before_install:
- sudo apt install -y libapt-pkg-dev cppcheck
- gem install --remote bundler
rvm:
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
notifications:
irc:
channels:
... | Fix CI and update Rubies | Fix CI and update Rubies
| YAML | mit | spk/ruby-apt-pkg,spk/ruby-apt-pkg | yaml | ## Code Before:
sudo: required
dist: trusty
language: ruby
bundler_args: --jobs=3 --retry=3
cache: bundler
before_install:
- sudo apt update
- sudo apt install -y libapt-pkg-dev cppcheck
- gem install --remote bundler
rvm:
- 2.1
- 2.2
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
fast_finish... |
681dc4cde0c8dfbabcb257c6e4647ed09e7181ee | ci/msvc_install.bat | ci/msvc_install.bat | Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T | Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
IF %ERRORLEVEL% LSS 8 goto end
goto :eof
:end
exit 0
| Fix appveyor failing on a successful robocopy | Fix appveyor failing on a successful robocopy
| Batchfile | apache-2.0 | dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,RavenX8/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new | batchfile | ## Code Before:
Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
## Instruction:
Fix appveyor failing on a successful robocopy
## Code After:
Robocopy "./tools/googletest/googlemock" "... |
c3e2346bb081bf21050451c575b80fbe09a1cb06 | inst/rmarkdown/shared/_output.yaml | inst/rmarkdown/shared/_output.yaml | html_document:
code_folding: show
df_print: paged
highlight: pygments
keep_md: TRUE
number_sections: false
self_contained: true
toc: true
toc_float:
collapsed: true
smooth_scroll: false
pdf_document:
number_sections: false
toc: true
toc_depth: 1
| html_document:
code_download: true
code_folding: hide
df_print: paged
highlight: pygments
keep_md: TRUE
number_sections: false
self_contained: true
toc: true
toc_float:
collapsed: true
smooth_scroll: false
pdf_document:
number_sections: false
toc: true
toc_depth: 1
| Add Rmd download option | Add Rmd download option [ci skip] | YAML | mit | steinbaugh/seqcloudr,seqcloud/seqcloudR,steinbaugh/basejump | yaml | ## Code Before:
html_document:
code_folding: show
df_print: paged
highlight: pygments
keep_md: TRUE
number_sections: false
self_contained: true
toc: true
toc_float:
collapsed: true
smooth_scroll: false
pdf_document:
number_sections: false
toc: true
toc_depth: 1
## Instruction:
Add Rmd dow... |
3ddc0e7b8ec4e196a134df00c490a6357fc515e5 | libindy/ci/ubuntu.dockerfile | libindy/ci/ubuntu.dockerfile | FROM ubuntu:16.04
ARG uid=1000
RUN apt-get update && \
apt-get install -y \
pkg-config \
libssl-dev \
libgmp3-dev \
curl \
build-essential \
libsqlite3-dev \
libsodium-dev \
cmake \
git \
python3.5 \
python3-pip \
python-setuptools \
ap... | FROM ubuntu:16.04
ARG uid=1000
RUN apt-get update && \
apt-get install -y \
pkg-config \
libssl-dev \
libgmp3-dev \
curl \
build-essential \
libsqlite3-dev \
libsodium-dev \
cmake \
git \
python3.5 \
python3-pip \
python-setuptools \
ap... | Install RUST by Indy user | Install RUST by Indy user
Signed-off-by: artem.ivanov <854f15bca393fcff0d98d12b668b43a60a0a39fe@dsr-company.com> | Dockerfile | apache-2.0 | anastasia-tarasova/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,anastasia-tarasova/in... | dockerfile | ## Code Before:
FROM ubuntu:16.04
ARG uid=1000
RUN apt-get update && \
apt-get install -y \
pkg-config \
libssl-dev \
libgmp3-dev \
curl \
build-essential \
libsqlite3-dev \
libsodium-dev \
cmake \
git \
python3.5 \
python3-pip \
python-setup... |
1d9b5a7397c5cc6eebf790d369a5d70ec81d5b88 | stemcell_builder/stages/bosh_google_agent_settings/apply.sh | stemcell_builder/stages/bosh_google_agent_settings/apply.sh |
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
cat > $chroot/var/vcap/bosh/agent.json <<JSON
{
"Platform": {
"Linux": {
"CreatePartitionIfNoEphemeralDisk": true,
"DevicePathResolutionType": "virtio",
"VirtioDevicePrefix": "google"
}
},
"Infrastruct... |
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
cat > $chroot/var/vcap/bosh/agent.json <<JSON
{
"Platform": {
"Linux": {
"CreatePartitionIfNoEphemeralDisk": true,
"DevicePathResolutionType": "virtio",
"VirtioDevicePrefix": "google"
}
},
"Infrastruct... | Customize BOSH agent settings for GCE stemcell | Customize BOSH agent settings for GCE stemcell
| Shell | apache-2.0 | barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh | shell | ## Code Before:
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
cat > $chroot/var/vcap/bosh/agent.json <<JSON
{
"Platform": {
"Linux": {
"CreatePartitionIfNoEphemeralDisk": true,
"DevicePathResolutionType": "virtio",
"VirtioDevicePrefix": "google"
}
}... |
aebf6881534e56797bce37282d0a2105d44d4c53 | docs/en/contribute/install-pre-commit-hook.rst | docs/en/contribute/install-pre-commit-hook.rst | Install pre-commit Hook for ESP-IDF Project
===========================================
Required Dependency
-------------------
Python 3.6.1 or above. This is our recommendation python version for IDF developers.
If you still have versions not compatible, please do not install pre-commit hook and update your python ... | Install pre-commit Hook for ESP-IDF Project
===========================================
Required Dependency
-------------------
Python 3.6.1 or above. This is our recommendation python version for IDF developers.
If you still have versions not compatible, please do not install pre-commit hook and update your python ... | Add line to documentation how to uninstall pre-commit. | Add line to documentation how to uninstall pre-commit.
| reStructuredText | apache-2.0 | espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf | restructuredtext | ## Code Before:
Install pre-commit Hook for ESP-IDF Project
===========================================
Required Dependency
-------------------
Python 3.6.1 or above. This is our recommendation python version for IDF developers.
If you still have versions not compatible, please do not install pre-commit hook and upd... |
93b9428ad5232974ad73e02941f7b647f2a4a804 | content/photography/index.11ty.js | content/photography/index.11ty.js | const { downloadGalleryPhoto } = require("../../gallery-helpers");
const html = require("../../render-string");
const quality = 40;
const size = 300;
module.exports = class Gallery {
data() {
return {
layout: "photography"
};
}
async render({ collections }) {
return html`
<div class="gri... | const { downloadGalleryPhoto } = require("../../gallery-helpers");
const html = require("../../render-string");
const quality = 40;
const size = 300;
module.exports = class Gallery {
data() {
return {
layout: "photography"
};
}
async render({ collections }) {
return html`
<div class="gri... | Use lazy loading attribute on gallery | Use lazy loading attribute on gallery
| JavaScript | mit | surma/surma.github.io,surma/surma.github.io | javascript | ## Code Before:
const { downloadGalleryPhoto } = require("../../gallery-helpers");
const html = require("../../render-string");
const quality = 40;
const size = 300;
module.exports = class Gallery {
data() {
return {
layout: "photography"
};
}
async render({ collections }) {
return html`
... |
ef172672651f4e81adb8a700b31b30547bb4ad01 | meteor/server/publications.js | meteor/server/publications.js | /* ---------------------------------------------------- +/
## Publications ##
All publications-related code.
/+ ---------------------------------------------------- */
/**
* Locations
*
* Publish all locations. There will only ever be a fixed number of locations
*/
Meteor.publish('allLocations', function() {
... | /* ---------------------------------------------------- +/
## Publications ##
All publications-related code.
/+ ---------------------------------------------------- */
/**
* Locations
*
* Publish all locations. There will only ever be a fixed number of locations
*
* Sort them by the prescribed order.
*/
Meteo... | Sort the locations on the new model order fields | Sort the locations on the new model order fields
| JavaScript | mit | scimusmn/sd-weather,scimusmn/sd-weather | javascript | ## Code Before:
/* ---------------------------------------------------- +/
## Publications ##
All publications-related code.
/+ ---------------------------------------------------- */
/**
* Locations
*
* Publish all locations. There will only ever be a fixed number of locations
*/
Meteor.publish('allLocations',... |
cbdcf552fc8fc406a0395958597d67ad4b9feefb | project.clj | project.clj | (defproject day8.re-frame/trace "0.1.9-SNAPSHOT"
:description "Tracing and developer tools for re-frame apps"
:url "https://github.com/Day8/re-frame-trace"
:license {:name "MIT"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.227"]
... | (defproject day8.re-frame/trace "0.1.9-SNAPSHOT"
:description "Tracing and developer tools for re-frame apps"
:url "https://github.com/Day8/re-frame-trace"
:license {:name "MIT"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.227"]
... | Make Reagent and re-frame dependencies provided | Make Reagent and re-frame dependencies provided
| Clojure | mit | Day8/re-frame-trace | clojure | ## Code Before:
(defproject day8.re-frame/trace "0.1.9-SNAPSHOT"
:description "Tracing and developer tools for re-frame apps"
:url "https://github.com/Day8/re-frame-trace"
:license {:name "MIT"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.227... |
f8e2cf92216baedebb5a4e3075f4a83e6947b6c8 | test/Transforms/InstCombine/setcc-strength-reduce.ll | test/Transforms/InstCombine/setcc-strength-reduce.ll | ; This test ensures that "strength reduction" of conditional expressions are
; working. Basically this boils down to converting setlt,gt,le,ge instructions
; into equivalent setne,eq instructions.
;
; RUN: if as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | grep set
; RUN: then exit 1
; RUN: else ex... | ; This test ensures that "strength reduction" of conditional expressions are
; working. Basically this boils down to converting setlt,gt,le,ge instructions
; into equivalent setne,eq instructions.
;
; RUN: if as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | grep set
; RUN: then exit 1
; RUN: else ex... | Add more strength reduction testcases | Add more strength reduction testcases
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3283 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-ll... | llvm | ## Code Before:
; This test ensures that "strength reduction" of conditional expressions are
; working. Basically this boils down to converting setlt,gt,le,ge instructions
; into equivalent setne,eq instructions.
;
; RUN: if as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | grep set
; RUN: then exit ... |
bc3899989854368c459f8bb41ebb49ea9d65909d | test/test_Sphere.cc | test/test_Sphere.cc | using namespace rainy;
TEST(SphereTest, InstanceTest) {
Sphere sp(1.0, Vector3(0.0, 0.0, 0.0), Color(), Color(0.75, 0.75, 0.75), REFLECTION_DIFFUSE);
EXPECT_EQ(0.0, sp.center().x());
EXPECT_EQ(0.0, sp.center().y());
EXPECT_EQ(0.0, sp.center().z());
HitPoint hitpoint;
sp.intersect(Ray(Vector3(... | using namespace rainy;
TEST(SphereTest, InstanceTest) {
Sphere sp(2.0, Vector3(0.0, 0.0, 0.0), Color(), Color(0.75, 0.75, 0.75), REFLECTION_DIFFUSE);
EXPECT_EQ(0.0, sp.center().x());
EXPECT_EQ(0.0, sp.center().y());
EXPECT_EQ(0.0, sp.center().z());
EXPECT_EQ(0.0, sp.emission().x());
EXPECT_EQ... | Add test code for Sphere intersection. | Add test code for Sphere intersection.
| C++ | mit | tatsy/spica,tatsy/spica,tatsy/spica | c++ | ## Code Before:
using namespace rainy;
TEST(SphereTest, InstanceTest) {
Sphere sp(1.0, Vector3(0.0, 0.0, 0.0), Color(), Color(0.75, 0.75, 0.75), REFLECTION_DIFFUSE);
EXPECT_EQ(0.0, sp.center().x());
EXPECT_EQ(0.0, sp.center().y());
EXPECT_EQ(0.0, sp.center().z());
HitPoint hitpoint;
sp.inters... |
ed4cb034d840658e376b36fb33767b2bc3dbffa4 | tests/CompanyLicenceManagementTest.php | tests/CompanyLicenceManagementTest.php | <?php
namespace Test;
use App\User;
use App\Company;
use TestCase;
use Carbon\Carbon;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CompanyLicenceManagementTest extends TestCase
{
use Datab... | <?php
namespace Test;
use App\User;
use App\Company;
use TestCase;
use Carbon\Carbon;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CompanyLicenceManagementTest extends TestCase
{
use Datab... | Add test new company suspended | Add test new company suspended
| PHP | mit | vukanac/l5-admin-panel,vukanac/l5-admin-panel,vukanac/l5-admin-panel | php | ## Code Before:
<?php
namespace Test;
use App\User;
use App\Company;
use TestCase;
use Carbon\Carbon;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CompanyLicenceManagementTest extends TestCase... |
a98b013fc7ceaea4e95d0c703619a0f02c8163a5 | ip-masq-agent.yaml | ip-masq-agent.yaml | apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: ip-masq-agent
namespace: kube-system
spec:
template:
metadata:
labels:
k8s-app: ip-masq-agent
spec:
hostNetwork: true
containers:
- name: ip-masq-agent
image: gcr.io/google-containers/ip-masq-agent-amd64... | apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ip-masq-agent
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: ip-masq-agent
template:
metadata:
labels:
k8s-app: ip-masq-agent
spec:
hostNetwork: true
containers:
- name: ip-masq-agent
imag... | Update manifest to work with k8s 1.16 | Update manifest to work with k8s 1.16
| YAML | apache-2.0 | kubernetes-incubator/ip-masq-agent,kubernetes-incubator/ip-masq-agent | yaml | ## Code Before:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: ip-masq-agent
namespace: kube-system
spec:
template:
metadata:
labels:
k8s-app: ip-masq-agent
spec:
hostNetwork: true
containers:
- name: ip-masq-agent
image: gcr.io/google-containers/ip-... |
25ff50839e50a46b4e973acf0a6ae28472a71473 | wait-for-statuses.py | wait-for-statuses.py | import urllib.request
import json
import subprocess
import time
import os
# We're limited to this number by GH Actions API
# https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-jobs-for-a-workflow-run
max_jobs=100
status_url = "https://api.github.com/repos/" \
+ os.environ['GITHUB_REP... | import urllib.request
import json
import subprocess
import time
import os
import sys
# We're limited to this number by GH Actions API
# https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-jobs-for-a-workflow-run
max_jobs=100
status_url = "https://api.github.com/repos/" \
+ os.environ[... | Return an error when number of jobs exceeds max_jobs | Return an error when number of jobs exceeds max_jobs
ghactions API call we're using limits number of jobs
returned in one call. If jobs exceed this number they are
grouped into "pages". Page handling code shall be added
when we exceed this number.
| Python | apache-2.0 | litex-hub/litex-conda-ci,litex-hub/litex-conda-ci | python | ## Code Before:
import urllib.request
import json
import subprocess
import time
import os
# We're limited to this number by GH Actions API
# https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-jobs-for-a-workflow-run
max_jobs=100
status_url = "https://api.github.com/repos/" \
+ os.env... |
1ee0d0a72a848670cd5d00f51f5ff8e9bcf62375 | app/assets/javascripts/templates/components/question/check_component.hbs | app/assets/javascripts/templates/components/question/check_component.hbs | <label>{{check-box name=ident checked=checked}} {{model.question}}</label>
{{#if template}}
<div {{bind-attr class=":additional-data checked::hidden"}}>
{{yield}}
{{#if multipleAdditionalData}}
<button class="button-secondary button--grey button--small" {{action 'additionalDataAction'}}>
<span c... | <label>{{check-box name=ident checked=checked}} {{model.question}}</label>
{{#if template}}
<div {{bind-attr class=":additional-data displayContent::hidden"}}>
{{yield}}
{{#if multipleAdditionalData}}
<button class="button-secondary button--grey button--small" {{action 'additionalDataAction'}}>
... | Make check box component template consistent with radio component. | Make check box component template consistent with radio component.
Use displayContent instead of checked for hidden class.
| Handlebars | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi | handlebars | ## Code Before:
<label>{{check-box name=ident checked=checked}} {{model.question}}</label>
{{#if template}}
<div {{bind-attr class=":additional-data checked::hidden"}}>
{{yield}}
{{#if multipleAdditionalData}}
<button class="button-secondary button--grey button--small" {{action 'additionalDataAction'}}>... |
5c3cc5bce58b5c5b0dd7861b993b25d865e95aee | src/scripts/common/utils/platform.js | src/scripts/common/utils/platform.js | export default {
isDarwin: process.platform === 'darwin',
isNonDarwin: process.platform !== 'darwin',
isWindows: process.platform === 'win32',
isLinux: process.platform === 'linux',
isWindows7: process.platform === 'win32' &&
navigator && !!navigator.userAgent.match(/(Windows 7|Windows NT 6\.1)/)
};
| export default {
isDarwin: process.platform === 'darwin',
isNonDarwin: process.platform !== 'darwin',
isWindows: process.platform === 'win32',
isLinux: process.platform === 'linux',
isWindows7: process.platform === 'win32' && window.navigator &&
!!window.navigator.userAgent.match(/(Windows 7|Windows NT 6\... | Fix detection of Windows 7 | Fix detection of Windows 7
| JavaScript | mit | Aluxian/Messenger-for-Desktop,Aluxian/Messenger-for-Desktop,rafael-neri/whatsapp-webapp,Aluxian/Facebook-Messenger-Desktop,rafael-neri/whatsapp-webapp,Aluxian/Facebook-Messenger-Desktop,Aluxian/Messenger-for-Desktop,Aluxian/Facebook-Messenger-Desktop,rafael-neri/whatsapp-webapp | javascript | ## Code Before:
export default {
isDarwin: process.platform === 'darwin',
isNonDarwin: process.platform !== 'darwin',
isWindows: process.platform === 'win32',
isLinux: process.platform === 'linux',
isWindows7: process.platform === 'win32' &&
navigator && !!navigator.userAgent.match(/(Windows 7|Windows NT ... |
da430fe1d31998994281afee3daf375e34c7c562 | README.md | README.md | Slack bot example application using [Sparta](https://github.com/mweagle/Sparta)
| Slack bot example application using [Sparta](https://github.com/mweagle/Sparta)
See the [Sparta Docs](http://gosparta.io/docs/apigateway/slack/) for more information, including steps for how to configure Slack.
## Instructions
1. `make get`
1. `S3_BUCKET=<MY_S3_BUCKET_NAME> make provision`
1. Query `curl -vs -... | Include minimal instructions and docs link | Include minimal instructions and docs link
| Markdown | mit | mweagle/SpartaSlackbot | markdown | ## Code Before:
Slack bot example application using [Sparta](https://github.com/mweagle/Sparta)
## Instruction:
Include minimal instructions and docs link
## Code After:
Slack bot example application using [Sparta](https://github.com/mweagle/Sparta)
See the [Sparta Docs](http://gosparta.io/docs/apigateway/slack/) fo... |
df4b47160577a67540210cb16017606103f787c5 | README.md | README.md | Verbaendeliste-Bundestag Extractor
==================================
Use `pdftohtml` to get an XML file from the pdf.
Then use the extractor with first and last relevant page number to convert to parsed JSON:
python extract_lobby.py 4 690 < lobbylist.xml > lobbylist.json
Here is [extracted JSON (31st of May 2012)... | Verbaendeliste-Bundestag Extractor
==================================
Use `pdftohtml` to get an XML file from the pdf.
Then use the extractor with first and last relevant page number to convert to parsed JSON:
python extract_lobby.py 4 690 < lobbylist.xml > lobbylist.json
Here is [extracted JSON (5th of June 2012)... | Add new version with better title parsing | Add new version with better title parsing
| Markdown | mit | stefanw/verbaendeliste-bundestag | markdown | ## Code Before:
Verbaendeliste-Bundestag Extractor
==================================
Use `pdftohtml` to get an XML file from the pdf.
Then use the extractor with first and last relevant page number to convert to parsed JSON:
python extract_lobby.py 4 690 < lobbylist.xml > lobbylist.json
Here is [extracted JSON (3... |
4080a227ecaf50d6ff7dc2054b27cbcecef63306 | .github/workflows/phpunit.yaml | .github/workflows/phpunit.yaml | name: PHPUnit
on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
branches:
- master
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
# - "8.1"
# - "8.0"
... | name: PHPUnit
on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
branches:
- master
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
# - "8.1"
# - "8.0"
... | Fix tests with PHPUnit 9 (+2) | Fix tests with PHPUnit 9 (+2)
| YAML | mit | byjg/migration,byjg/migration | yaml | ## Code Before:
name: PHPUnit
on:
push:
branches:
- master
tags:
- v*.*.*
pull_request:
branches:
- master
jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
# - "8.1"
# ... |
7d50438dd5daa5c63eed671b0709348e0e7127da | README.md | README.md | downloadchart
=============
Ext JS 5 download chart service. Alternative to https://svg.sencha.io
| downloadchart
=============
Ext JS 5 download chart service. Alternative to https://svg.sencha.io
Online demo: https://demo.rasc.ch/downloadchart/
| Add link to online demo | Add link to online demo | Markdown | apache-2.0 | ralscha/downloadchart,ralscha/downloadchart,ralscha/downloadchart | markdown | ## Code Before:
downloadchart
=============
Ext JS 5 download chart service. Alternative to https://svg.sencha.io
## Instruction:
Add link to online demo
## Code After:
downloadchart
=============
Ext JS 5 download chart service. Alternative to https://svg.sencha.io
Online demo: https://demo.rasc.ch/downloadchart/
|
243f8dc177fbcf33c2fa67c0df2f177e3d53e6ad | app/scripts/modules/auth/index.js | app/scripts/modules/auth/index.js | import { connect } from 'react-redux';
import { Component } from 'react';
import PropTypes from 'prop-types';
import { setConfig } from 'widget-editor';
import { browserHistory } from 'react-router';
import actions from './auth-actions';
import initialState from './auth-reducer-initial-state';
import * as reducers fro... | import { connect } from 'react-redux';
import { Component } from 'react';
import PropTypes from 'prop-types';
import { setConfig } from 'widget-editor';
import { browserHistory } from 'react-router';
import actions from './auth-actions';
import initialState from './auth-reducer-initial-state';
import * as reducers fro... | Fix a bug where the user wouldn't be able to log in | Fix a bug where the user wouldn't be able to log in
| JavaScript | mit | resource-watch/prep-app,resource-watch/prep-app | javascript | ## Code Before:
import { connect } from 'react-redux';
import { Component } from 'react';
import PropTypes from 'prop-types';
import { setConfig } from 'widget-editor';
import { browserHistory } from 'react-router';
import actions from './auth-actions';
import initialState from './auth-reducer-initial-state';
import *... |
eebafbb8fef58e8d075db9dc825702d34aa2f7ea | 03_lmtraining/train_scripts/03-prune.sh | 03_lmtraining/train_scripts/03-prune.sh |
BASE_DIR=$(readlink -f $(dirname "$0"))/..
if [ -z "$1" ]; then
echo "Provide a config file"
exit
fi
source "$1"
ngram -order $NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune $PRUNE_THRESHOLD -write-lm $TRAIN_DIR/model_pruned
ngram -order $LA_NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune $LA_PRUNE_THRES... |
BASE_DIR=$(readlink -f $(dirname "$0"))/..
if [ -z "$1" ]; then
echo "Provide a config file"
exit
fi
source "$1"
ngram -order $NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune $PRUNE_THRESHOLD -write-lm $TRAIN_DIR/model_pruned
ngram -order $LA_NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune $LA_PRUNE_THRES... | Make morph models have morph lexicons | Make morph models have morph lexicons
| Shell | bsd-3-clause | phsmit/iwclul2016-scripts,phsmit/iwclul2016-scripts,phsmit/iwclul2016-scripts | shell | ## Code Before:
BASE_DIR=$(readlink -f $(dirname "$0"))/..
if [ -z "$1" ]; then
echo "Provide a config file"
exit
fi
source "$1"
ngram -order $NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune $PRUNE_THRESHOLD -write-lm $TRAIN_DIR/model_pruned
ngram -order $LA_NGRAM_ORDER -unk -lm $TRAIN_DIR/model.gz -prune... |
69fd858af2abfc8294c74fb34dd2309fa91ffa92 | db/migrate/20151211135032_create_heartbeats.rb | db/migrate/20151211135032_create_heartbeats.rb | class CreateHeartbeats < ActiveRecord::Migration
def change
create_table :heartbeats do |t|
t.integer :device_id
t.integer :reporting_device_id
t.timestamps null: false
end
end
end
| class CreateHeartbeats < ActiveRecord::Migration
def change
create_table :heartbeats do |t|
t.integer :device_id
t.integer :reporting_device_id
t.datetime :created_at, nil: false
end
end
end
| Remove updated_at column from heartbeats table | Remove updated_at column from heartbeats table
| Ruby | mit | bbc/hive-mind,bbc/hive-mind,bbc/hive_mind,bbc/hive-mind,bbc/hive_mind,bbc/hive_mind | ruby | ## Code Before:
class CreateHeartbeats < ActiveRecord::Migration
def change
create_table :heartbeats do |t|
t.integer :device_id
t.integer :reporting_device_id
t.timestamps null: false
end
end
end
## Instruction:
Remove updated_at column from heartbeats table
## Code After:
class Create... |
c493962cd28aa4ab1314af957b4429c1e8f17e99 | README.rst | README.rst | django-tinycontent is a simple Django application for re-usable
content blocks, much like `django-boxes`_.
Installation is simple::
pip install django-tinycontent
Add ``tinycontent`` to your ``INSTALLED_APPS``.
Usage in templates is simple::
{% load tinycontent_tags %}
{% tinycontent_simple 'content_n... | django-tinycontent is a simple Django application for re-usable
content blocks, much like `django-boxes`_.
Installation is simple::
pip install django-tinycontent
Add ``tinycontent`` to your ``INSTALLED_APPS``.
Usage in templates is simple::
{% load tinycontent_tags %}
{% tinycontent_simple 'content_n... | Add notes about support for versions of Python and Django | Add notes about support for versions of Python and Django
| reStructuredText | bsd-3-clause | dominicrodger/django-tinycontent,watchdogpolska/django-tinycontent,ad-m/django-tinycontent,ad-m/django-tinycontent,watchdogpolska/django-tinycontent,dominicrodger/django-tinycontent | restructuredtext | ## Code Before:
django-tinycontent is a simple Django application for re-usable
content blocks, much like `django-boxes`_.
Installation is simple::
pip install django-tinycontent
Add ``tinycontent`` to your ``INSTALLED_APPS``.
Usage in templates is simple::
{% load tinycontent_tags %}
{% tinycontent_s... |
a206c5036e10a922dfdf0846a48c7736bce8fe15 | src/test/java/net/openhft/chronicle/wire/TextMethodTesterTest.java | src/test/java/net/openhft/chronicle/wire/TextMethodTesterTest.java | package net.openhft.chronicle.wire;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
/**
* Created by peter on 17/05/2017.
*/
public class TextMethodTesterTest {
@Test
public void run() throws IOException {
TextMethodTester test = new TextMethodTester... | package net.openhft.chronicle.wire;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
/**
* Created by peter on 17/05/2017.
*/
public class TextMethodTesterTest {
@Test
public void run() throws IOException {
TextMethodTester test = new TextMethodTester... | Add support for a setup phase which is not recorded. | Add support for a setup phase which is not recorded.
| Java | apache-2.0 | OpenHFT/Chronicle-Wire,OpenHFT/Chronicle-Wire | java | ## Code Before:
package net.openhft.chronicle.wire;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
/**
* Created by peter on 17/05/2017.
*/
public class TextMethodTesterTest {
@Test
public void run() throws IOException {
TextMethodTester test = new ... |
38afa15628dea4c5cd8a80ee9bef39f858bcf412 | tasks/main.yml | tasks/main.yml | ---
- name: Add key
apt_key: keyserver=keyserver.ubuntu.com id=94558F59
- name: Add repository
apt_repository: repo='deb http://repository.spotify.com stable non-free'
- name: Install spotify
apt: name=spotify-client update_cache=yes state=latest
| ---
- name: Add apt keys
apt_key: keyserver=keyserver.ubuntu.com id={{ item }}
with_items:
- 94558F59
- D2C19886
- name: Add repository
apt_repository: repo='deb http://repository.spotify.com stable non-free'
- name: Install spotify
apt: name=spotify-client update_cache=yes state=latest
| Add the second signing key used by Spotify repo | Add the second signing key used by Spotify repo
Setup is broken without this change.
See https://www.spotify.com/uk/download/linux/
| YAML | bsd-3-clause | iknite/ansible-spotify | yaml | ## Code Before:
---
- name: Add key
apt_key: keyserver=keyserver.ubuntu.com id=94558F59
- name: Add repository
apt_repository: repo='deb http://repository.spotify.com stable non-free'
- name: Install spotify
apt: name=spotify-client update_cache=yes state=latest
## Instruction:
Add the second signing key used ... |
7347d1d6959982a21235a1deb3259b0898660240 | license-header-template.txt | license-header-template.txt | /*
* Copyright (c) Christian Surlykke
*
* This file is part of the Restful Inter Process Communication (Ripc) project.
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
| /*
* Copyright (c) 2015, 2016 Christian Surlykke
*
* This file is part of the Restful Inter Process Communication (Ripc) project.
* It is distributed under the LGPL 2.1 license.
* Please refer to the LICENSE file for a copy of the license.
*/
| Remove 'or later' from license header and add years | Remove 'or later' from license header and add years
| Text | lgpl-2.1 | surlykke/RestFulIpc | text | ## Code Before:
/*
* Copyright (c) Christian Surlykke
*
* This file is part of the Restful Inter Process Communication (Ripc) project.
* It is distributed under the LGPL 2.1 or later license.
* Please refer to the LICENSE file for a copy of the license.
*/
## Instruction:
Remove 'or later' from license header and a... |
7ccc0179f48cd14e368a7deac3c179ea19c62cba | client/desktop/app/components/teacher/classes/ClassData/LessonData.js | client/desktop/app/components/teacher/classes/ClassData/LessonData.js | import React from 'react'
class LessonData extends React.Component {
constructor(props){
super(props);
this.state = {
lessonId: this.props.params.lessonId,
className: 'get this from the DB query',
polls: ['get this from the DB query']
};
}
render(){
return (<div>
<h2... | import React from 'react'
class LessonData extends React.Component {
constructor(props){
super(props);
this.state = {
lessonId: this.props.params.lessonId,
className: 'get this from the DB query',
polls: ['get this from the DB query']
};
}
render(){
return (<div>
<h2... | Create anchor tag for logout | Create anchor tag for logout
| JavaScript | mit | Jakeyrob/thumbroll,absurdSquid/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll,absurdSquid/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll | javascript | ## Code Before:
import React from 'react'
class LessonData extends React.Component {
constructor(props){
super(props);
this.state = {
lessonId: this.props.params.lessonId,
className: 'get this from the DB query',
polls: ['get this from the DB query']
};
}
render(){
return ... |
1750d8c40337dfc4d0fa99657d07536832f7aa24 | app/views/user_mailer/welcome_email.html.erb | app/views/user_mailer/welcome_email.html.erb | <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<!-- <div class="welcome-email"> -->
<div style="background-color:#f0f0f5; border:solid 2px #4d0019; margin: 3em">
<h3>Welcome to Code-Laborate,
<%if @user.org_affiliate %>
... | <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<!-- <div class="welcome-email"> -->
<div style="background-color:#f0f0f5; padding:3%;">
<div style="background-color:white; border:solid 2px #4d0019; margin:5%; padding:5%;">
<h3 s... | Add border and box for email content | Add border and box for email content
| HTML+ERB | mit | kylefantastic/codellaborate,kylefantastic/code-laborate,kylefantastic/code-laborate,kylefantastic/code-laborate,kylefantastic/codellaborate,kylefantastic/codellaborate | html+erb | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<!-- <div class="welcome-email"> -->
<div style="background-color:#f0f0f5; border:solid 2px #4d0019; margin: 3em">
<h3>Welcome to Code-Laborate,
<%if @user.org_a... |
b1edf4678a57bb25220bd4c50f05ceb7fbd5e7fe | users/filters.py | users/filters.py |
import django_filters
from django.contrib.auth.models import User, Group
class UserFilter(django_filters.rest_framework.FilterSet):
user_group_name = django_filters.CharFilter(name='groups__name')
class Meta:
model = User
fields = ['id', 'username', 'first_name', 'last_name', 'groups', 'use... |
import django_filters
from django.contrib.auth.models import User, Group
class UserFilter(django_filters.rest_framework.FilterSet):
groups_name = django_filters.CharFilter(name='groups__name')
class Meta:
model = User
fields = ['id', 'username', 'first_name', 'last_name', 'groups', 'groups_... | Change name of a filter field | Change name of a filter field
| Python | mit | fernandolobato/balarco,fernandolobato/balarco,fernandolobato/balarco | python | ## Code Before:
import django_filters
from django.contrib.auth.models import User, Group
class UserFilter(django_filters.rest_framework.FilterSet):
user_group_name = django_filters.CharFilter(name='groups__name')
class Meta:
model = User
fields = ['id', 'username', 'first_name', 'last_name'... |
a2f51914e5e8133e329061d6426efb2758e317f2 | .github/workflows/typescript.yml | .github/workflows/typescript.yml | name: TypeScript
on:
push:
branches:
- master
pull_request:
jobs:
tsc:
name: "TSC"
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up node.js
uses: actions/setup-node@v1
with:
node-version: "12"
- uses: actions/checkout@v2
- run:... | name: TypeScript
on:
push:
branches:
- master
pull_request:
jobs:
tsc:
name: "TSC"
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up node.js
uses: actions/setup-node@v1
with:
node-version: "12"
- uses: actions/checkout@v2
- run:... | Check that the vendored tslib is up to date | Check that the vendored tslib is up to date
Resolves #3659
| YAML | lgpl-2.1 | SoftCreatR/WCF,Cyperghost/WCF,WoltLab/WCF,Cyperghost/WCF,Cyperghost/WCF,SoftCreatR/WCF,Cyperghost/WCF,SoftCreatR/WCF,WoltLab/WCF,WoltLab/WCF,WoltLab/WCF,Cyperghost/WCF,SoftCreatR/WCF | yaml | ## Code Before:
name: TypeScript
on:
push:
branches:
- master
pull_request:
jobs:
tsc:
name: "TSC"
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up node.js
uses: actions/setup-node@v1
with:
node-version: "12"
- uses: actions/checko... |
3e419c72f632fe55bfdd4dcf9d96bd6c84e2d6f2 | app/controllers/storytime/pages_controller.rb | app/controllers/storytime/pages_controller.rb | require_dependency "storytime/application_controller"
module Storytime
class PagesController < ApplicationController
before_action :ensure_site, unless: ->{ params[:controller] == "storytime/dashboard/sites" }
def show
params[:id] = @site.selected_root_page_id if request.path == "/"
@page ... | require_dependency "storytime/application_controller"
module Storytime
class PagesController < ApplicationController
before_action :ensure_site, unless: ->{ params[:controller] == "storytime/dashboard/sites" }
def show
params[:id] = @site.selected_root_page_id if request.path == "/"
@page ... | Allow overriding of single page template by host app | Allow overriding of single page template by host app
| Ruby | mit | FlyoverWorks/storytime,harrykiselev/storytime,FlyoverWorks/storytime,hoanghiep90/storytime,bidah/storytime,CultivateLabs/storytime,braindeaf/storytime,matiasgarcia/storytime,FlyoverWorks/storytime,matiasgarcia/storytime,Oliviergg/storytime,bidah/storytime-manentail,matiasgarcia/storytime,harrykiselev/storytime,bidah/st... | ruby | ## Code Before:
require_dependency "storytime/application_controller"
module Storytime
class PagesController < ApplicationController
before_action :ensure_site, unless: ->{ params[:controller] == "storytime/dashboard/sites" }
def show
params[:id] = @site.selected_root_page_id if request.path == "/"
... |
d65b50bc111d8e716fea7ef602bf3492b1e6018f | lib/utils.js | lib/utils.js | 'use strict';
//https://github.com/parshap/node-sanitize-filename
function sanitizeName(name=''){
function toCamelCase(str) {
// Lower cases the string
return str.toLowerCase()
// Replaces any - or _ characters with a space
.replace( /[-_]+/g, ' ')
// Removes any... | 'use strict';
//https://github.com/parshap/node-sanitize-filename
function sanitizeName(name='') {
function toCamelCase(str) {
// Lower cases the string
return str.toLowerCase()
// Replaces any - or _ characters with a space
.replace( /[-_]+/g, ' ')
// Removes an... | Remove initial digits from names. Fix getListenerCount | Remove initial digits from names. Fix getListenerCount
| JavaScript | mit | goliatone/application-core,goliatone/application-core | javascript | ## Code Before:
'use strict';
//https://github.com/parshap/node-sanitize-filename
function sanitizeName(name=''){
function toCamelCase(str) {
// Lower cases the string
return str.toLowerCase()
// Replaces any - or _ characters with a space
.replace( /[-_]+/g, ' ')
... |
47a8b035ffcc65fd9b53a9ab5cb047888aca87e7 | .travis.yml | .travis.yml | language: php
php:
- 5.6
- 7.0
- 7.1
before_install:
- composer require phpunit/phpunit:4.8.* satooshi/php-coveralls:dev-master
- composer install --dev
script:
- mkdir -p build/logs && ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
| language: php
php:
- 5.6
- 7.0
- 7.1
# Use the newer stack for HHVM as HHVM does not support Precise
- php: hhvm
sudo: required
dist: trusty
group: edge
before_install:
- composer require phpunit/phpunit:4.8.* satooshi/php-coveralls:dev-master
- composer install --dev
script:
- mkdir -p build/... | Add back in hhvm with custom config | Add back in hhvm with custom config | YAML | mit | jasonlam604/Stringizer | yaml | ## Code Before:
language: php
php:
- 5.6
- 7.0
- 7.1
before_install:
- composer require phpunit/phpunit:4.8.* satooshi/php-coveralls:dev-master
- composer install --dev
script:
- mkdir -p build/logs && ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
... |
4f4b55a311e947add06212b9808ced0f6786f047 | app/models/manageiq/providers/inventory/collector.rb | app/models/manageiq/providers/inventory/collector.rb | class ManageIQ::Providers::Inventory::Collector
attr_reader :manager, :target
include Vmdb::Logging
# @param manager [ManageIQ::Providers::BaseManager] A manager object
# @param refresh_target [Object] A refresh Target object
def initialize(manager, refresh_target)
@manager = manager
@target = refr... | class ManageIQ::Providers::Inventory::Collector
attr_reader :manager, :target
include Vmdb::Logging
# @param manager [ManageIQ::Providers::BaseManager] A manager object
# @param refresh_target [Object] A refresh Target object
def initialize(manager, refresh_target)
@manager = manager
@target = refr... | Allow options passed to add_target! | Allow options passed to add_target!
| Ruby | apache-2.0 | agrare/manageiq,mzazrivec/manageiq,agrare/manageiq,kbrock/manageiq,kbrock/manageiq,agrare/manageiq,ManageIQ/manageiq,jrafanie/manageiq,ManageIQ/manageiq,mzazrivec/manageiq,jrafanie/manageiq,kbrock/manageiq,agrare/manageiq,mzazrivec/manageiq,jrafanie/manageiq,jrafanie/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,mzazriv... | ruby | ## Code Before:
class ManageIQ::Providers::Inventory::Collector
attr_reader :manager, :target
include Vmdb::Logging
# @param manager [ManageIQ::Providers::BaseManager] A manager object
# @param refresh_target [Object] A refresh Target object
def initialize(manager, refresh_target)
@manager = manager
... |
d488b7d8ae0a95e170a8827f4c8d80ac86e7e604 | concourse/tasks/remove-db.yml | concourse/tasks/remove-db.yml | ---
platform: linux
inputs:
- name: paas-cf
- name: bosh-CA
- name: config
image_resource:
type: docker-image
source:
repository: governmentpaas/cf-cli
tag: 895cf6752c8ec64af05a3a735186b90acd3db65a
run:
path: sh
args:
- -e
- -u
- -c
- |
./paas-cf/concourse/scripts/import_bosh... | ---
platform: linux
inputs:
- name: paas-cf
- name: bosh-CA
- name: config
image_resource:
type: docker-image
source:
repository: governmentpaas/cf-cli
tag: 895cf6752c8ec64af05a3a735186b90acd3db65a
run:
path: sh
args:
- -e
- -u
- -c
- |
./paas-cf/concourse/scripts/import_bosh... | Handle space not existing in the database removal script. | Handle space not existing in the database removal script.
Otherwise, this script can sometimes erroneously fail if the space
doesn't exist or has already been deleted.
| YAML | mit | alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf | yaml | ## Code Before:
---
platform: linux
inputs:
- name: paas-cf
- name: bosh-CA
- name: config
image_resource:
type: docker-image
source:
repository: governmentpaas/cf-cli
tag: 895cf6752c8ec64af05a3a735186b90acd3db65a
run:
path: sh
args:
- -e
- -u
- -c
- |
./paas-cf/concourse/scr... |
3eae4393a4e8488b492e36344083b6ae437a1b26 | lib/input_sanitizer/errors.rb | lib/input_sanitizer/errors.rb | module InputSanitizer
class OptionalValueOmitted < StandardError; end
class KeyNotAllowedError < ArgumentError; end
class ValidationError < StandardError
attr_accessor :field
attr_reader :value
end
class ConversionError < ValidationError; end
class ValueMissingError < ValidationError
def cod... | module InputSanitizer
class OptionalValueOmitted < StandardError; end
class KeyNotAllowedError < ArgumentError; end
class ValidationError < StandardError
attr_accessor :field
attr_reader :value
end
class ConversionError < ValidationError; end
class ValueMissingError < ValidationError
def cod... | Change ValueNotAllowedError code & message | Change ValueNotAllowedError code & message
to match ActiveModel::Errors.
| Ruby | mit | futuresimple/input_sanitizer | ruby | ## Code Before:
module InputSanitizer
class OptionalValueOmitted < StandardError; end
class KeyNotAllowedError < ArgumentError; end
class ValidationError < StandardError
attr_accessor :field
attr_reader :value
end
class ConversionError < ValidationError; end
class ValueMissingError < ValidationE... |
c056dd7308ce7a80ab298ba4cbc1e76eb995a4a2 | dataeng/resources/snowflake-microbachelors-send-coaching-data-itk.sh | dataeng/resources/snowflake-microbachelors-send-coaching-data-itk.sh | set -ex
# setup
cd $WORKSPACE/analytics-tools/snowflake
pip install -r requirements/microbachelors.txt
# run the script twice to generate student and course reports for ITK
python send_coaching_data_itk.py \
--key_path $KEY_PATH \
--passphrase_path $PASSPHRASE_PATH \
--user $USER \
--account $ACCOUNT ... | set -ex
# setup
cd $WORKSPACE/analytics-tools/snowflake
pip install -r requirements/microbachelors.txt
# download the SFTP credentials from S3
aws s3 cp $SFTP_CREDENTIALS_BUCKET $WORKSPACE/
# run the script twice to generate student and course reports for ITK
python send_coaching_data_itk.py \
--key_path $KEY_PA... | Update ITK job to use S3 credentials | Update ITK job to use S3 credentials
| Shell | agpl-3.0 | edx/jenkins-job-dsl | shell | ## Code Before:
set -ex
# setup
cd $WORKSPACE/analytics-tools/snowflake
pip install -r requirements/microbachelors.txt
# run the script twice to generate student and course reports for ITK
python send_coaching_data_itk.py \
--key_path $KEY_PATH \
--passphrase_path $PASSPHRASE_PATH \
--user $USER \
--a... |
edfda063cc551c5023df0d87fa24876374719ed9 | macos.rb | macos.rb | dep "macos screenshots saved in directory", :path, :template => "plist" do
domain "com.apple.screencapture"
values "location" => path.to_s
after {
shell! "mkdir -p #{path.to_s}"
shell! "killall SystemUIServer"
}
end
dep "macos dock configured", :template => "plist" do
domain "com.apple.dock"
value... | dep "macos screenshots saved in directory", :path, :template => "plist" do
domain "com.apple.screencapture"
values "location" => path.to_s
after {
shell! "mkdir -p #{path.to_s}"
shell! "killall SystemUIServer"
}
end
dep "macos dock configured", :template => "plist" do
domain "com.apple.dock"
valu... | Configure dock’s display of process indicators | Configure dock’s display of process indicators | Ruby | mit | timriley/babushka-deps | ruby | ## Code Before:
dep "macos screenshots saved in directory", :path, :template => "plist" do
domain "com.apple.screencapture"
values "location" => path.to_s
after {
shell! "mkdir -p #{path.to_s}"
shell! "killall SystemUIServer"
}
end
dep "macos dock configured", :template => "plist" do
domain "com.app... |
aeba7d9a44c15724717dc105ff1c8c8b778c7c8c | circle.yml | circle.yml | machine:
services:
- docker
dependencies:
override:
- docker info
test:
override:
- cd docker/run/server/tests && ./build.sh 1.0.0-rc1-final
- cd docker/run/client && ./build.sh
| machine:
services:
- docker
dependencies:
cache_directories:
- ~/.npm
override:
- docker info
test:
override:
- cd docker/run/server/tests && ./build.sh 1.0.0-rc1-final
- cd src/client && npm install
- cd src/client && npm run compile
# - cd docker/run/client && ./build.sh
| Move client test outside of container | Move client test outside of container
Try build on CircleCI with cache
| YAML | apache-2.0 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | yaml | ## Code Before:
machine:
services:
- docker
dependencies:
override:
- docker info
test:
override:
- cd docker/run/server/tests && ./build.sh 1.0.0-rc1-final
- cd docker/run/client && ./build.sh
## Instruction:
Move client test outside of container
Try build on CircleCI with cache
## Code Afte... |
d0f2805cb962683ad2427b99c12adfdd88e0ec4a | persistence/src/vespa/persistence/CMakeLists.txt | persistence/src/vespa/persistence/CMakeLists.txt | vespa_add_library(persistence
SOURCES
$<TARGET_OBJECTS:persistence_dummyimpl>
$<TARGET_OBJECTS:persistence_spi>
INSTALL lib64
DEPENDS
)
vespa_add_library(persistence_persistence_conformancetest
SOURCES
$<TARGET_OBJECTS:persistence_conformancetest_lib>
INSTALL lib64
DEPENDS
persis... | vespa_add_library(persistence
SOURCES
$<TARGET_OBJECTS:persistence_dummyimpl>
$<TARGET_OBJECTS:persistence_spi>
INSTALL lib64
DEPENDS
)
vespa_add_library(persistence_persistence_conformancetest
SOURCES
$<TARGET_OBJECTS:persistence_conformancetest_lib>
DEPENDS
persistence
gtest
)
| Revert "Revert "Try to not install the conformancetest library."" | Revert "Revert "Try to not install the conformancetest library.""
| Text | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | text | ## Code Before:
vespa_add_library(persistence
SOURCES
$<TARGET_OBJECTS:persistence_dummyimpl>
$<TARGET_OBJECTS:persistence_spi>
INSTALL lib64
DEPENDS
)
vespa_add_library(persistence_persistence_conformancetest
SOURCES
$<TARGET_OBJECTS:persistence_conformancetest_lib>
INSTALL lib64
DE... |
64b5a6da1b7a866de224d0fbc931d9b38d0e0050 | _drafts/with-conan-in-japan-conan-obrien-finds-the-secret-to-late-nights-future.markdown | _drafts/with-conan-in-japan-conan-obrien-finds-the-secret-to-late-nights-future.markdown | ---
title: With ‘Conan in Japan,’ Conan O’Brien Finds the Secret to Late-Night’s Future
date: 2018-11-29 17:10:00 -06:00
link_url: https://www.indiewire.com/2018/11/conan-in-japan-conan-obrien-tbs-changes-1202023778/
featured_image: https://www.indiewire.com/wp-content/uploads/2018/11/IMG_2735-2.jpg
---
Any late-night... | ---
title: With ‘Conan in Japan,’ Conan O’Brien Finds the Secret to Late-Night’s Future
date: 2018-11-29 22:55:00 -06:00
link_url: https://www.indiewire.com/2018/11/conan-in-japan-conan-obrien-tbs-changes-1202023778/
tags:
- TV
---
I'm excited to see Conan experiment with the format. People don't watch TV the way th... | Update link to Conan story | Update link to Conan story
| Markdown | mit | smithtimmytim/brightlycolored.org,smithtimmytim/brightlycolored.org,smithtimmytim/brightlycolored.org | markdown | ## Code Before:
---
title: With ‘Conan in Japan,’ Conan O’Brien Finds the Secret to Late-Night’s Future
date: 2018-11-29 17:10:00 -06:00
link_url: https://www.indiewire.com/2018/11/conan-in-japan-conan-obrien-tbs-changes-1202023778/
featured_image: https://www.indiewire.com/wp-content/uploads/2018/11/IMG_2735-2.jpg
---... |
69a91d8bd8eb7b29a34843d9d9215080febf0d9a | app/controllers/loaderio_controller.rb | app/controllers/loaderio_controller.rb | class LoaderioController < ActionController::Base
def verify
if "loaderio-#{params[:id]}" == ENV['LOADERIO_VERIFICATION_FILENAME']
send_data token, :type => "text/plain", :disposition => "inline"
else
raise ActionController::RoutingError.new('Not Found')
end
end
private
def token
"loaderio-... | class LoaderioController < ActionController::Base
def verify
if "loaderio-#{params[:id]}" == ENV['LOADERIO_VERIFICATION_FILENAME']
send_data token, :type => "text/plain", :disposition => "inline"
else
raise ActionController::RoutingError.new('Not Found')
end
end
private
def token
ENV['LOADE... | Remove extra prefix for token | Remove extra prefix for token
| Ruby | mit | zunda/ping,zunda/ping,zunda/ping | ruby | ## Code Before:
class LoaderioController < ActionController::Base
def verify
if "loaderio-#{params[:id]}" == ENV['LOADERIO_VERIFICATION_FILENAME']
send_data token, :type => "text/plain", :disposition => "inline"
else
raise ActionController::RoutingError.new('Not Found')
end
end
private
def toke... |
773a60f879381b5d15a5c636e35261a715e15684 | load_dependencies.sh | load_dependencies.sh |
cd "$(dirname $(readlink -f $BASH_SOURCE))"
(
echo
echo "---- BUILDING: traffic_analyzer ----"
echo
cd traffic_analyzer
make
)
(
echo
echo "---- BUILDING: greedy_generator ----"
echo
cd greedy_generator
make
)
for n in sch_fifo_qsize sch_pi2 sch_pie_qsize tcp_dctcp; do (
... |
cd "$(dirname $(readlink -f $BASH_SOURCE))"
(
echo
echo "---- BUILDING: traffic_analyzer ----"
echo
cd traffic_analyzer
make
)
(
echo
echo "---- BUILDING: greedy_generator ----"
echo
cd greedy_generator
make
)
for n in sch_fifo_latest_qsize sch_pi2 sch_pie_latest_qsize sch_fq... | Build new latest upstream versions | dependencies: Build new latest upstream versions
| Shell | mit | henrist/aqmt,henrist/aqmt,henrist/aqmt,henrist/aqmt | shell | ## Code Before:
cd "$(dirname $(readlink -f $BASH_SOURCE))"
(
echo
echo "---- BUILDING: traffic_analyzer ----"
echo
cd traffic_analyzer
make
)
(
echo
echo "---- BUILDING: greedy_generator ----"
echo
cd greedy_generator
make
)
for n in sch_fifo_qsize sch_pi2 sch_pie_qsize tcp_... |
213d5c418bd63d71fcf8601f5013ddd343880af8 | PasteFlowTests/PasteboardServiceTests.swift | PasteFlowTests/PasteboardServiceTests.swift | //
// PasteboardServiceTests.swift
// PasteFlow
//
// Created by Agnes Vasarhelyi on 06/12/15.
// Copyright © 2015 Agnes Vasarhelyi. All rights reserved.
//
import XCTest
import VinceRP
@testable import PasteFlow
class PasteboardServiceTests: XCTestCase {
let pasteboardService = PasteboardService()
over... | //
// PasteboardServiceTests.swift
// PasteFlow
//
// Created by Agnes Vasarhelyi on 06/12/15.
// Copyright © 2015 Agnes Vasarhelyi. All rights reserved.
//
import XCTest
import VinceRP
@testable import PasteFlow
class PasteboardServiceTests: XCTestCase {
let pasteboardService = PasteboardService()
over... | Test for adding items to pasteboard | Test for adding items to pasteboard
| Swift | mit | alltheflow/copypasta | swift | ## Code Before:
//
// PasteboardServiceTests.swift
// PasteFlow
//
// Created by Agnes Vasarhelyi on 06/12/15.
// Copyright © 2015 Agnes Vasarhelyi. All rights reserved.
//
import XCTest
import VinceRP
@testable import PasteFlow
class PasteboardServiceTests: XCTestCase {
let pasteboardService = PasteboardSer... |
54373d04a2258ba8d42eb1240f4742aa5d9d7fcf | nodes/beta.manchester.io.json | nodes/beta.manchester.io.json | {
"run_list": [
"role[manchesterio]",
"recipe[sudo]",
"recipe[ssh-keys]",
"recipe[manchesterio::firewall]"
],
"manchesterio": {
"ui_hostname": "beta.manchester.io",
"api_hostname": "api.beta.manchester.io",
"graphite_hostname": "graphite.manchester.io... | {
"run_list": [
"role[manchesterio]",
"recipe[sudo]",
"recipe[ssh-keys]",
"recipe[manchesterio::firewall]"
],
"elasticsearch": {
"allocated_memory": "256m"
},
"manchesterio": {
"ui_hostname": "beta.manchester.io",
"api_hostname": "api.beta.ma... | Reduce memory allocated to elasticsearch | Reduce memory allocated to elasticsearch
| JSON | apache-2.0 | ManchesterIO/manchester.io,ManchesterIO/manchester.io,ManchesterIO/manchester.io,ManchesterIO/manchester.io | json | ## Code Before:
{
"run_list": [
"role[manchesterio]",
"recipe[sudo]",
"recipe[ssh-keys]",
"recipe[manchesterio::firewall]"
],
"manchesterio": {
"ui_hostname": "beta.manchester.io",
"api_hostname": "api.beta.manchester.io",
"graphite_hostname": "graphi... |
578ee4128aa34177db9730c7e17266f287d1e88a | testData/annotation.semantic.body/UpdateUnknownOnLambdas.hx | testData/annotation.semantic.body/UpdateUnknownOnLambdas.hx | class Test {
public function demo(func:String -> Void):Void {
}
public function main() {
var out = 10;
this.demo(function(v) {
<error descr="Can't assign String to Int">out = v</error>;
});
}
}
| class Test {
public function demo(func:String -> Void):Void {
}
public function main() {
var out = 10;
this.demo(<error descr="Can't assign Int -> Int to String -> Void">function(v) {
out = v;
}</error>);
}
}
| Update unit test for passing function literals to expect a better error message. | Update unit test for passing function literals to expect a better error message.
| Haxe | apache-2.0 | EricBishton/intellij-haxe,eliasku/intellij-haxe,winmain/intellij-haxe,HaxeFoundation/intellij-haxe,TiVo/intellij-haxe,TiVo/intellij-haxe,eliasku/intellij-haxe,HaxeFoundation/intellij-haxe,EricBishton/intellij-haxe,TiVo/intellij-haxe,winmain/intellij-haxe,winmain/intellij-haxe,HaxeFoundation/intellij-haxe,EricBishton/in... | haxe | ## Code Before:
class Test {
public function demo(func:String -> Void):Void {
}
public function main() {
var out = 10;
this.demo(function(v) {
<error descr="Can't assign String to Int">out = v</error>;
});
}
}
## Instruction:
Update unit test for passing function literals to expect a better... |
c14b63ceb9c44e19b6090cc6678111efe06219fb | README.md | README.md | saveSvgAsPng
============
To save a PNG, include the script `saveSvgAsPng.js` in your page, then call the `saveSvgAsPng` function with an SVG node and a filename:
```javascript
saveSvgAsPng(document.getElementById("diagram"), "diagram.png");
```
The filename is the preferred filename when saving the image to the fil... | saveSvgAsPng
============
Installation
------------
```
npm install save-svg-as-png
```
Usage
-----
To save a PNG, include the script `saveSvgAsPng.js` in your page, then call the `saveSvgAsPng` function with an SVG node and a filename:
```javascript
saveSvgAsPng(document.getElementById("diagram"), "diagram.png");... | Add docs on installing from npm. | Add docs on installing from npm.
| Markdown | mit | raiyankamal/saveSvgAsPng,cool-Blue/saveSvgAsPng,raiyankamal/saveSvgAsPng,zky829/saveSvgAsPng,bjpop/saveSvgAsPng,bjpop/saveSvgAsPng,exupero/saveSvgAsPng,flamilton/saveSvgAsPng,cool-Blue/saveSvgAsPng,flamilton/saveSvgAsPng,exupero/saveSvgAsPng,zky829/saveSvgAsPng | markdown | ## Code Before:
saveSvgAsPng
============
To save a PNG, include the script `saveSvgAsPng.js` in your page, then call the `saveSvgAsPng` function with an SVG node and a filename:
```javascript
saveSvgAsPng(document.getElementById("diagram"), "diagram.png");
```
The filename is the preferred filename when saving the ... |
bf104af437c77ecce3de3df7d57cd9fc57fecce7 | metadata/protect.card_locker.txt | metadata/protect.card_locker.txt | Categories:Money
License:GPLv3+
Web Site:
Source Code:https://github.com/brarcher/loyalty-card-locker
Issue Tracker:https://github.com/brarcher/loyalty-card-locker/issues
Auto Name:Loyalty Card Locker
Summary:Saves all your loyalty cards on your phone
Description:
Saves all of your store loyalty cards on your phone, r... | Categories:Money
License:GPLv3+
Web Site:
Source Code:https://github.com/brarcher/loyalty-card-locker
Issue Tracker:https://github.com/brarcher/loyalty-card-locker/issues
Auto Name:Loyalty Card Locker
Summary:Saves all your loyalty cards on your phone
Description:
Saves all of your store loyalty cards on your phone, r... | Update Loyalty Card Locker to 0.7 (7) | Update Loyalty Card Locker to 0.7 (7)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Money
License:GPLv3+
Web Site:
Source Code:https://github.com/brarcher/loyalty-card-locker
Issue Tracker:https://github.com/brarcher/loyalty-card-locker/issues
Auto Name:Loyalty Card Locker
Summary:Saves all your loyalty cards on your phone
Description:
Saves all of your store loyalty cards ... |
049140b6d397601f47aeb43f647323a6ec2e7b3d | src/components/avatar/AvatarOverlay.js | src/components/avatar/AvatarOverlay.js | import React, { PureComponent } from 'react';
import theme from './theme.css';
import Box from '../box';
import Icon from '../icon';
import { IconEditSmallFilled } from '@teamleader/ui-icons';
class AvatarOverlay extends PureComponent {
render() {
return (
<div {...this.props} className={theme['overlay']}>... | import React, { PureComponent } from 'react';
import theme from './theme.css';
import Box from '../box';
import Icon from '../icon';
import { IconEditSmallFilled } from '@teamleader/ui-icons';
import cx from 'classnames';
class AvatarOverlay extends PureComponent {
render() {
const { size } = this.props;
con... | Apply the correct css styles based on the avatar size, without breaking earlier versions | Apply the correct css styles based on the avatar size, without breaking earlier versions
| JavaScript | mit | teamleadercrm/teamleader-ui | javascript | ## Code Before:
import React, { PureComponent } from 'react';
import theme from './theme.css';
import Box from '../box';
import Icon from '../icon';
import { IconEditSmallFilled } from '@teamleader/ui-icons';
class AvatarOverlay extends PureComponent {
render() {
return (
<div {...this.props} className={th... |
045cad005953fa6c07d9402418e58c3fb33d84a6 | spec/lib/river_notifications_spec.rb | spec/lib/river_notifications_spec.rb | require 'spec_helper'
describe RiverNotifications do
before(:each) do
ActiveRecord::Base.add_observer RiverNotifications.instance
end
after(:each) do
ActiveRecord::Base.observers = []
end
describe "create" do
it "publishes the post without no diff" do
Pebblebed::River.any_instance.shoul... | require 'spec_helper'
describe RiverNotifications do
before(:each) do
ActiveRecord::Base.add_observer RiverNotifications.instance
end
after(:each) do
ActiveRecord::Base.observers = []
end
describe "create" do
it "publishes the post without no diff" do
Pebblebed::River.any_instance.shoul... | Expand the changes test to include document | Expand the changes test to include document
| Ruby | mit | bengler/grove,bengler/grove | ruby | ## Code Before:
require 'spec_helper'
describe RiverNotifications do
before(:each) do
ActiveRecord::Base.add_observer RiverNotifications.instance
end
after(:each) do
ActiveRecord::Base.observers = []
end
describe "create" do
it "publishes the post without no diff" do
Pebblebed::River.an... |
676117cba78bb0269ce1b8d46d760fe779e2b09e | migrations/20170329060832-rename_allowence_to_allowance.js | migrations/20170329060832-rename_allowence_to_allowance.js | 'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.renameColumn('Departments', 'allowence', 'allowance');
},
down: function (queryInterface, Sequelize) {
return queryInterface.renameColumn('Departments', 'allowance', 'allowence');
}
};
| 'use strict';
var models = require('../lib/model/db');
module.exports = {
up: function (queryInterface, Sequelize) {
if ('sqlite' === queryInterface.sequelize.getDialect()) {
console.log('Going into SQLIite case');
return queryInterface
// Create Temp Departments based on current model de... | Add SQLite specific logic for recent migration. | Add SQLite specific logic for recent migration.
It appeared that out of box renameColumn looses some meta inforamtion
for subject column.
| JavaScript | mit | YulioTech/timeoff,YulioTech/timeoff,timeoff-management/application,timeoff-management/application | javascript | ## Code Before:
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.renameColumn('Departments', 'allowence', 'allowance');
},
down: function (queryInterface, Sequelize) {
return queryInterface.renameColumn('Departments', 'allowance', 'allowence');
}
};
##... |
0f991b195749e95857e55be30fe90a8b609704aa | bin/start_integration_test.sh | bin/start_integration_test.sh | dpkg -l marathon mesos zookeeper | grep '^ii'
# Start zookeeper
/usr/share/zookeeper/bin/zkServer.sh start
# Start Mesos master
mesos-master --zk=zk://localhost:2181/mesos --quorum=1 --log_dir=/var/log/mesos \
--work_dir=/var/lib/mesos 1>/dev/null 2>/dev/null &
# Start Mesos slave
mesos-slave --master=zk://localhost... |
env | sort
# List installed versions of external systems
dpkg -l marathon mesos zookeeper | grep '^ii'
# Start zookeeper
/usr/share/zookeeper/bin/zkServer.sh start
# Start Mesos master
mesos-master --zk=zk://localhost:2181/mesos --quorum=1 --log_dir=/var/log/mesos \
--work_dir=/var/lib/mesos 1>/dev/null 2>/dev/null... | Add debugging information to the integration test script. | Add debugging information to the integration test script. | Shell | apache-2.0 | mesosphere/dcos-cli,dcos/dcos-cli,genome21/dcos-cli,sis-tools/dcos-cli,sis-tools/dcos-cli,kensipe/dcos-cli,dcos/dcos-cli,genome21/dcos-cli,kensipe/dcos-cli,sis-tools/dcos-cli,dcos/dcos-cli,mesosphere/dcos-cli,dcos/dcos-cli,mesosphere/dcos-cli,Yhgenomics/dcos-cli,Yhgenomics/dcos-cli,kensipe/dcos-cli,dcos/dcos-cli,kensip... | shell | ## Code Before:
dpkg -l marathon mesos zookeeper | grep '^ii'
# Start zookeeper
/usr/share/zookeeper/bin/zkServer.sh start
# Start Mesos master
mesos-master --zk=zk://localhost:2181/mesos --quorum=1 --log_dir=/var/log/mesos \
--work_dir=/var/lib/mesos 1>/dev/null 2>/dev/null &
# Start Mesos slave
mesos-slave --maste... |
eda95d7c6da4b3a53845c7dc09ec0ce07c18b95c | .travis.yml | .travis.yml | sudo: false
cache:
- bundler
- directories:
- vendor/bundle
language: ruby
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
- 2.4.0
gemfile:
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_edge.gemfile
before_install:
- gem install bundler --versio... | sudo: false
cache:
- bundler
- directories:
- vendor/bundle
language: ruby
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
- 2.4.0
gemfile:
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_edge.gemfile
before_install:
- gem install bundler --versio... | Exclude rails 4.1 and 4.2 for ruby 2.4.0 | Exclude rails 4.1 and 4.2 for ruby 2.4.0
| YAML | mit | justinfrench/formtastic,justinfrench/formtastic,justinfrench/formtastic | yaml | ## Code Before:
sudo: false
cache:
- bundler
- directories:
- vendor/bundle
language: ruby
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
- 2.4.0
gemfile:
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_edge.gemfile
before_install:
- gem install ... |
92c0fdd6eeeb2d42a0aef3f2aa0250f71f53df18 | src/demos/vehicle/m113/M113_SimplePowertrain.cpp | src/demos/vehicle/m113/M113_SimplePowertrain.cpp | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | Adjust M113 simple powertrain parameters. | Adjust M113 simple powertrain parameters.
- Max. engine speed must be specified in rad/s
- Decrease gear ratio (to include the effect of the unmodeled transmission)
| C++ | bsd-3-clause | armanpazouki/chrono,Milad-Rakhsha/chrono,dariomangoni/chrono,dariomangoni/chrono,rserban/chrono,projectchrono/chrono,rserban/chrono,tjolsen/chrono,rserban/chrono,andrewseidl/chrono,jcmadsen/chrono,Milad-Rakhsha/chrono,tjolsen/chrono,armanpazouki/chrono,amelmquist/chrono,tjolsen/chrono,jcmadsen/chrono,dariomangoni/chron... | c++ | ## Code Before:
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the... |
cfa1e2e180837f380c4b515d34e106756b9071bd | packages/client/src/modules/user/containers/Register.jsx | packages/client/src/modules/user/containers/Register.jsx | // React
import React from 'react';
// Apollo
import { graphql, compose } from 'react-apollo';
// Components
import RegisterView from '../components/RegisterView';
import REGISTER from '../graphql/Register.graphql';
import settings from '../../../../../../settings';
class Register extends React.Component {
rende... | // React
import React from 'react';
// Apollo
import { graphql, compose } from 'react-apollo';
// Components
import RegisterView from '../components/RegisterView';
import REGISTER from '../graphql/Register.graphql';
import settings from '../../../../../../settings';
class Register extends React.Component {
rende... | Fix error after new user registration | Fix error after new user registration
| JSX | mit | sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit | jsx | ## Code Before:
// React
import React from 'react';
// Apollo
import { graphql, compose } from 'react-apollo';
// Components
import RegisterView from '../components/RegisterView';
import REGISTER from '../graphql/Register.graphql';
import settings from '../../../../../../settings';
class Register extends React.Com... |
a3d5acd493ea03753f3364c34dabf130d8c4ed74 | app/views/expenses/_form.html.erb | app/views/expenses/_form.html.erb | <%= form_for @expense do |f| %>
<%= f.text_field :amount, placeholder: "$ Housing" %><br>
<%= f.hidden_field :expense_type_id, :value => 1 %>
<%= f.submit "Add Expense" %>
<% end %>
| <%= form_for @expense do |f| %>
<%= f.text_field :amount, placeholder: "$ Housing" %><br>
<%= f.hidden_field :expense_type_id, :value => 1 %>
<br>
<%= f.text_field :amount, placeholder: "$ Transportation" %><br>
<%= f.hidden_field :expense_type_id, :value => 2 %>
<br>
<%= f.text_field :amount, placeholder... | Add more fields to new expense form | Add more fields to new expense form
| HTML+ERB | mit | nyc-cicadas-2015/Can-I-Afford-This,nyc-cicadas-2015/Can-I-Afford-This,nyc-cicadas-2015/Can-I-Afford-This | html+erb | ## Code Before:
<%= form_for @expense do |f| %>
<%= f.text_field :amount, placeholder: "$ Housing" %><br>
<%= f.hidden_field :expense_type_id, :value => 1 %>
<%= f.submit "Add Expense" %>
<% end %>
## Instruction:
Add more fields to new expense form
## Code After:
<%= form_for @expense do |f| %>
<%= f.text_f... |
c6cf2fbe34f536f4c2f25e7359c6cdf1d05a55cb | image_analysis.py | image_analysis.py |
import os
import tempfile
from astropy.io import fits
def extract_stars(input_array):
(infilehandle, infilepath) = tempfile.mkstemp(suffix='.fits')
os.close(infilehandle)
fits.writeto(infilepath, \
input_array.astype('float32'), \
fits.Header(), \
overwr... |
import os
import tempfile
from astropy.io import fits
def extract_stars(input_array):
(infilehandle, infilepath) = tempfile.mkstemp(suffix='.fits')
os.close(infilehandle)
fits.writeto(infilepath, \
input_array.astype('float32'), \
fits.Header(), \
overwr... | Fix extracted star coordinates from 1- to 0-based indexing | Fix extracted star coordinates from 1- to 0-based indexing
Note that center of first pixel is 0, ie. edge of first pixel is -0.5
| Python | mit | lkangas/python-tycho2 | python | ## Code Before:
import os
import tempfile
from astropy.io import fits
def extract_stars(input_array):
(infilehandle, infilepath) = tempfile.mkstemp(suffix='.fits')
os.close(infilehandle)
fits.writeto(infilepath, \
input_array.astype('float32'), \
fits.Header(), \
... |
5e3605beb09154bfb8b234477c71a8190719526a | .github/workflows/ci.yml | .github/workflows/ci.yml | name: CI
on: push
jobs:
specs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: >-
--health-cmd "mysql -uroot -e 'show databases'"
--health-interval 2s
... | name: CI
on: push
jobs:
specs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: >-
--health-cmd "mysql -uroot -e 'show databases'"
--health-interval 2s
... | Disable Rails 5.1 + 5.2 tests with Ruby 2.7 | Disable Rails 5.1 + 5.2 tests with Ruby 2.7
Older versions of Rails cause our tests to emit warnings, which are
sometimes captured in tests expecting STDERR to be empty.
| YAML | mit | zendesk/active_record_shards | yaml | ## Code Before:
name: CI
on: push
jobs:
specs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: >-
--health-cmd "mysql -uroot -e 'show databases'"
--healt... |
bea1430908cdb88e695dcbe99fb76c2c84a69465 | app/models/organization.rb | app/models/organization.rb | class Organization < ApplicationRecord
include Auditable
include Concealable
extend FriendlyId
friendly_id :name, use: :slugged
strip_attributes collapse_spaces: true
has_many :event_groups, dependent: :destroy
has_many :stewardships, dependent: :destroy
has_many :stewards, through: :stewardships, sour... | class Organization < ApplicationRecord
include Auditable
include Concealable
extend FriendlyId
friendly_id :name, use: :slugged
strip_attributes collapse_spaces: true
has_many :event_groups, dependent: :destroy
has_many :stewardships, dependent: :destroy
has_many :stewards, through: :stewardships, sour... | Revert Organization / Event relationship. | Revert Organization / Event relationship.
| Ruby | mit | SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime | ruby | ## Code Before:
class Organization < ApplicationRecord
include Auditable
include Concealable
extend FriendlyId
friendly_id :name, use: :slugged
strip_attributes collapse_spaces: true
has_many :event_groups, dependent: :destroy
has_many :stewardships, dependent: :destroy
has_many :stewards, through: :st... |
44cef675f73e1bb1d40d46e6876af0734faa88f4 | Finder/ClassFinder.php | Finder/ClassFinder.php | <?php
namespace Knp\RadBundle\Finder;
use Symfony\Component\Finder\Finder;
class ClassFinder
{
private $finder;
public function __construct(Finder $finder = null)
{
$this->finder = $finder ?: new Finder();
}
public function findClasses($directory, $namespace)
{
$classes = ar... | <?php
namespace Knp\RadBundle\Finder;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Filesystem\Filesystem;
class ClassFinder
{
private $finder;
private $filesystem;
public function __construct(Finder $finder = null, Filesystem $filesystem = null)
{
$this->finder = $finder ?: new... | Update class finder in case directory does not exist | Update class finder in case directory does not exist
| PHP | mit | KnpLabs/KnpRadBundle,KnpLabs/KnpRadBundle,KnpLabs/KnpRadBundle | php | ## Code Before:
<?php
namespace Knp\RadBundle\Finder;
use Symfony\Component\Finder\Finder;
class ClassFinder
{
private $finder;
public function __construct(Finder $finder = null)
{
$this->finder = $finder ?: new Finder();
}
public function findClasses($directory, $namespace)
{
... |
2a2fe3179137a75efb23c1074c593716aa2cf9ca | zsh/oh-my-zsh.zsh | zsh/oh-my-zsh.zsh | source ~/.antigen/antigen.zsh
# Set oh-my-zsh variables
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
# Load oh-my-zsh
antigen use oh-my-zsh
# Load oh-my-zsh plugins
antigen bundle git
antigen bundle npm
antigen bundle sudo
antigen bundle zsh-users/zsh-syntax-highlighting
antigen ... | source ~/.antigen/antigen.zsh
# Set oh-my-zsh variables
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
# Load oh-my-zsh
antigen use oh-my-zsh
# Load oh-my-zsh plugins
antigen bundles <<EOBUNDLES
git
npm
sudo
zsh-users/zsh-syntax-highlighting
unixorn/autoupdate-antigen.zsh... | Use heredoc for loading antigen bundles | Use heredoc for loading antigen bundles
Uses `antigen bundles` command | Shell | mit | jo12bar/dotfiles | shell | ## Code Before:
source ~/.antigen/antigen.zsh
# Set oh-my-zsh variables
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
# Load oh-my-zsh
antigen use oh-my-zsh
# Load oh-my-zsh plugins
antigen bundle git
antigen bundle npm
antigen bundle sudo
antigen bundle zsh-users/zsh-syntax-highl... |
2587f311b1946523a9ce60a3b8ae508ede4f156a | index.html | index.html | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>The Grammar of Graphics</title>
<link rel="stylesheet" type="text/css" href="gg.css"/>
<script src="json2.js"></script>
<script src="jquery-1.7.2.min.js"></script>
<script src="d3.v2.min.js"></script>
<script src="underscore-min.js"></script>
<script src="gg.j... | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>The Grammar of Graphics</title>
<link rel="stylesheet" type="text/css" href="gg.css"/>
<script src="json2.js"></script>
<script src="jquery-1.7.2.min.js"></script>
<script src="d3.v2.min.js"></script>
<script src="underscore-min.js"></script>
<script src="gg.j... | Make code link work everywhere. | Make code link work everywhere.
| HTML | bsd-2-clause | gigamonkey/gg,sirrice/gg,gigamonkey/gg,sirrice/gg,gigamonkey/gg | html | ## Code Before:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>The Grammar of Graphics</title>
<link rel="stylesheet" type="text/css" href="gg.css"/>
<script src="json2.js"></script>
<script src="jquery-1.7.2.min.js"></script>
<script src="d3.v2.min.js"></script>
<script src="underscore-min.js"></script>
<... |
d7797cf4fa9c1943b647ec115a83d5f855c3a308 | packages/reactor-conference-app/src/store.js | packages/reactor-conference-app/src/store.js | import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import root from './reducer';
import schedule from './schedule/reducer';
import speakers from './speakers/reducer';
import calendar from './calendar/reducer';
const initialState = { };
const middleware = [... | import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import root from './reducer';
import schedule from './schedule/reducer';
import speakers from './speakers/reducer';
const initialState = { };
const middleware = [
applyMiddleware(thunk)
];
if (window.... | Remove reference to calendar reducer.js. | Remove reference to calendar reducer.js.
| JavaScript | mit | dbuhrman/extjs-reactor,sencha/extjs-reactor,markbrocato/extjs-reactor,sencha/extjs-reactor,markbrocato/extjs-reactor,dbuhrman/extjs-reactor,dbuhrman/extjs-reactor,markbrocato/extjs-reactor,sencha/extjs-reactor,markbrocato/extjs-reactor,dbuhrman/extjs-reactor,sencha/extjs-reactor | javascript | ## Code Before:
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import root from './reducer';
import schedule from './schedule/reducer';
import speakers from './speakers/reducer';
import calendar from './calendar/reducer';
const initialState = { };
cons... |
2add28d783786cbc5bf46c275afbdf40d3f4f97d | lib/tasks/report/notification_day_hour.rake | lib/tasks/report/notification_day_hour.rake | require 'csv'
namespace :report do
desc "deliveries by day of week, and time of day"
task :notification_day_hour => :environment do
daynames = ['day/hour','Sunday', 'Monday','Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
puts CSV.generate_line( daynames )
delivery_day_hour = Hash.new(0)
... | require 'csv'
namespace :report do
desc "deliveries by day of week, and time of day"
task :notification_day_hour => :environment do
delivered_table('SMS')
delivered_table('IVR')
end
def delivered_table(message_type)
puts "delivery method: #{message_type}"
daynames = ['day/hour','Sunday', 'Monda... | Split report into SMS, and IVR reports | Split report into SMS, and IVR reports
| Ruby | epl-1.0 | dhedlund/hms-hub,dhedlund/hms-hub | ruby | ## Code Before:
require 'csv'
namespace :report do
desc "deliveries by day of week, and time of day"
task :notification_day_hour => :environment do
daynames = ['day/hour','Sunday', 'Monday','Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]
puts CSV.generate_line( daynames )
delivery_day_hour =... |
9974bd0784f87198e535f0dc68790e27d8b735f2 | tests/VObject/WriterTest.php | tests/VObject/WriterTest.php | <?php
namespace Sabre\VObject;
class WriterTest extends \PHPUnit_Framework_TestCase {
function getComponent() {
$data = "BEGIN:VCALENDAR\r\nEND:VCALENDAR";
return Reader::read($data);
}
function testWriteToMimeDir() {
$result = Writer::write($this->getComponent());
$th... | <?php
namespace Sabre\VObject;
class WriterTest extends \PHPUnit_Framework_TestCase {
function getComponent() {
$data = "BEGIN:VCALENDAR\r\nEND:VCALENDAR";
return Reader::read($data);
}
function testWriteToMimeDir() {
$result = Writer::write($this->getComponent());
$th... | Add a test for Writer + MIME Dir + iterator. | Add a test for Writer + MIME Dir + iterator.
| PHP | bsd-3-clause | sabre-io/vobject,armin-hackmann/sabre-vobject,fruux/sabre-vobject,linagora/sabre-vobject | php | ## Code Before:
<?php
namespace Sabre\VObject;
class WriterTest extends \PHPUnit_Framework_TestCase {
function getComponent() {
$data = "BEGIN:VCALENDAR\r\nEND:VCALENDAR";
return Reader::read($data);
}
function testWriteToMimeDir() {
$result = Writer::write($this->getComponent... |
2141e4fd2b09d3a8a95e032fb02eafb9e6f818c9 | i3pystatus/shell.py | i3pystatus/shell.py | from i3pystatus import IntervalModule
from subprocess import check_output, CalledProcessError
class Shell(IntervalModule):
"""
Shows output of shell command
"""
color = "#FFFFFF"
error_color = "#FF0000"
settings = (
("command", "command to be executed"),
("color", "standard co... | from i3pystatus import IntervalModule
from subprocess import check_output, CalledProcessError
class Shell(IntervalModule):
"""
Shows output of shell command
"""
color = "#FFFFFF"
error_color = "#FF0000"
settings = (
("command", "command to be executed"),
("color", "standard co... | Add exception handling for output | Add exception handling for output
| Python | mit | opatut/i3pystatus,teto/i3pystatus,schroeji/i3pystatus,ncoop/i3pystatus,juliushaertl/i3pystatus,m45t3r/i3pystatus,richese/i3pystatus,claria/i3pystatus,ncoop/i3pystatus,paulollivier/i3pystatus,paulollivier/i3pystatus,ismaelpuerto/i3pystatus,asmikhailov/i3pystatus,eBrnd/i3pystatus,fmarchenko/i3pystatus,plumps/i3pystatus,o... | python | ## Code Before:
from i3pystatus import IntervalModule
from subprocess import check_output, CalledProcessError
class Shell(IntervalModule):
"""
Shows output of shell command
"""
color = "#FFFFFF"
error_color = "#FF0000"
settings = (
("command", "command to be executed"),
("colo... |
4d117a83458b5e530daa2c30465ea73710c644c4 | composer.json | composer.json | {
"name": "axis/axis-curly-routing-plugin",
"description": "This plugin introduces to symfony 1.x a new route class that uses curly braces in pattern just like Symfony2 routes",
"type": "symfony1-plugin",
"extra": {
"installer-name": "AxisCurlyRoutingPlugin"
},
"keywords": ["symfony", "routing", "plug... | {
"name": "axis/axis-curly-routing-plugin",
"description": "This plugin introduces to symfony 1.x a new route class that uses curly braces in pattern just like Symfony2 routes",
"type": "symfony1-plugin",
"extra": {
"installer-name": "AxisCurlyRoutingPlugin"
},
"keywords": ["symfony", "routing", "plug... | Use non-dev version of symfony/routing | Use non-dev version of symfony/routing | JSON | mit | e1himself/axis-curly-routing-plugin | json | ## Code Before:
{
"name": "axis/axis-curly-routing-plugin",
"description": "This plugin introduces to symfony 1.x a new route class that uses curly braces in pattern just like Symfony2 routes",
"type": "symfony1-plugin",
"extra": {
"installer-name": "AxisCurlyRoutingPlugin"
},
"keywords": ["symfony", ... |
3eaa2e1ee72cb90539d1a35d89985378f486c66a | library/src/main/res/xml/preferences.xml | library/src/main/res/xml/preferences.xml | <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Configuration setting -->
<com.echsylon.atlantis.extra.AtlantisConfigurationPreference
android:dialogLayout="@layout/view_configuration"
android:key="key_atlantis_configurat... | <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Configuration setting -->
<com.echsylon.atlantis.extra.AtlantisConfigurationPreference
android:dialogLayout="@layout/view_configuration"
android:key="key_atlantis_configurat... | Disable toggle if no configuration stated | Disable toggle if no configuration stated
| XML | apache-2.0 | echsylon/atlantis-extra | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Configuration setting -->
<com.echsylon.atlantis.extra.AtlantisConfigurationPreference
android:dialogLayout="@layout/view_configuration"
android:key="key_atl... |
75422e6d713cce8bd047824dc7f64ab2c4d6d939 | travis_build.sh | travis_build.sh | declare -a projects=("topDown" "actionRpg" "sdkTest")
#wd=`pwd`
#echo "export DEVKITPRO=$wd/devkitpro" >> ~/.bashrc
#echo "export DEVKITARM=$wd/devkitpro/devkitARM" >> ~/.bashrc
#echo "export PATH=$PATH:$wd/devkitpro/devkitARM/bin" >> ~/.bashrc
#source ~/.bashrc
for i in "${projects[@]}"
do
. ./pack-assets.sh "$i"
... | declare -a projects=("topDown" "actionRpg" "sdkTest", "doubleShoot")
#wd=`pwd`
#echo "export DEVKITPRO=$wd/devkitpro" >> ~/.bashrc
#echo "export DEVKITARM=$wd/devkitpro/devkitARM" >> ~/.bashrc
#echo "export PATH=$PATH:$wd/devkitpro/devkitARM/bin" >> ~/.bashrc
#source ~/.bashrc
for i in "${projects[@]}"
do
. ./pack-a... | Add doubleShoot to travis build. | Add doubleShoot to travis build.
| Shell | mit | Benjins/GBADev,Benjins/GBADev,Benjins/GBADev | shell | ## Code Before:
declare -a projects=("topDown" "actionRpg" "sdkTest")
#wd=`pwd`
#echo "export DEVKITPRO=$wd/devkitpro" >> ~/.bashrc
#echo "export DEVKITARM=$wd/devkitpro/devkitARM" >> ~/.bashrc
#echo "export PATH=$PATH:$wd/devkitpro/devkitARM/bin" >> ~/.bashrc
#source ~/.bashrc
for i in "${projects[@]}"
do
. ./pack-... |
f32dd7032ea036374579c0b53ea6244fe471e6d4 | spec/helpers/application_helper_spec.rb | spec/helpers/application_helper_spec.rb | require 'spec_helper'
describe ApplicationHelper do
context "representative_carousel_content" do
it "should group array into subarrays" do
array = [1,2,3,4,5,6,7,8]
get_representative_carousel_content(array).should == [[1,2,3,4], [5,6,7,8]]
end
end ... | require 'spec_helper'
describe ApplicationHelper do
end
| Remove spec for removed method. | Remove spec for removed method.
| Ruby | bsd-3-clause | holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site | ruby | ## Code Before:
require 'spec_helper'
describe ApplicationHelper do
context "representative_carousel_content" do
it "should group array into subarrays" do
array = [1,2,3,4,5,6,7,8]
get_representative_carousel_content(array).should == [[1,2,3,4], [5,6,7,8]]
end
end ... |
9689d029f76ee968a224644a2bdfd0363271747b | rules/rules.go | rules/rules.go | // Package rules contains specific rules as subpackages to check a Makefile against
package rules
import (
"github.com/mrtazz/checkmake/parser"
)
// Rule is the type of a rule function
type Rule interface {
Name() string
Description() string
Run(parser.Makefile, RuleConfig) RuleViolationList
}
// RuleViolation r... | // Package rules contains specific rules as subpackages to check a Makefile against
package rules
import (
"github.com/mrtazz/checkmake/parser"
)
// Rule is the type of a rule function
type Rule interface {
Name() string
Description() string
Run(parser.Makefile, RuleConfig) RuleViolationList
}
// RuleViolation r... | Add FileName string to RuleViolation struct | Add FileName string to RuleViolation struct
| Go | mit | mrtazz/checkmake | go | ## Code Before:
// Package rules contains specific rules as subpackages to check a Makefile against
package rules
import (
"github.com/mrtazz/checkmake/parser"
)
// Rule is the type of a rule function
type Rule interface {
Name() string
Description() string
Run(parser.Makefile, RuleConfig) RuleViolationList
}
//... |
e7411ee70c91bcc6aba775308c7fe3eff3e7d861 | week-8/database-intro/my_solution.md | week-8/database-intro/my_solution.md | 1. select * from states;
2. select * from regions;
3. select state_name, population from states;
4. select state_name, population from states order by population desc;
5. | 1. select * from states;
2. select * from regions;
3. select state_name, population from states;
4. select state_name, population from states order by population desc;
5. select state_name from states where region_id in ('7');
6. SELECT state_name, population_density
FROM states
WHERE population_density >= '50'
... | Add solution 10 to sql intro | Add solution 10 to sql intro
| Markdown | mit | LoganBresnahan/phase-0,LoganBresnahan/phase-0,LoganBresnahan/phase-0 | markdown | ## Code Before:
1. select * from states;
2. select * from regions;
3. select state_name, population from states;
4. select state_name, population from states order by population desc;
5.
## Instruction:
Add solution 10 to sql intro
## Code After:
1. select * from states;
2. select * from regions;
3. select state_na... |
0c9bf270a7a2d8a4184f644bbe8a50995e155b0a | buddy/error.py | buddy/error.py | from functools import wraps
import botocore.exceptions
from click import ClickException
EXC_TO_ECHO = [
botocore.exceptions.NoRegionError,
]
def handle_exception(func):
@wraps(func)
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as exc:
... | from functools import wraps
import botocore.exceptions
from click import ClickException
EXC_TO_ECHO = [
botocore.exceptions.NoRegionError,
botocore.exceptions.ParamValidationError,
]
def handle_exception(func):
@wraps(func)
def wrapper(*args, **kwargs):
try:
return func(*args, ... | Add boto ParamValidationError to exc list | Add boto ParamValidationError to exc list
| Python | mit | pior/buddy | python | ## Code Before:
from functools import wraps
import botocore.exceptions
from click import ClickException
EXC_TO_ECHO = [
botocore.exceptions.NoRegionError,
]
def handle_exception(func):
@wraps(func)
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Excep... |
28854e4980070229ab34f08575ea5031ff9da643 | plugins/solr/views/search/search_page.html.erb | plugins/solr/views/search/search_page.html.erb | <% extend SolrPlugin::SearchHelper %>
<% set_facets_variables %>
<%= search_page_title( @titles[@asset], @category ) %>
<% if !@empty_query %>
<div id='search-column-left'>
<%= render :partial => 'facets' %>
</div>
<div id='search-column-right'>
<%= render :partial => 'results' %>
</div>
<% else %>
... | <% extend SolrPlugin::SearchHelper %>
<% set_facets_variables %>
<%= search_page_title( @titles[@asset], @category ) %>
<div id='search-column-left'>
<%= render :partial => 'facets' if !@empty_query %>
</div>
<div id='search-column-right'>
<%= render :partial => 'results' %>
</div>
<div style="clear: both"></di... | Use same column structure for all pages | Use same column structure for all pages
| HTML+ERB | agpl-3.0 | macartur/noosfero,marcosronaldo/noosfero,AlessandroCaetano/noosfero,alexandreab/noosfero,hackathon-oscs/cartografias,tallysmartins/noosfero,macartur/noosfero,coletivoEITA/noosfero,blogoosfero/noosfero,evandrojr/noosfero,hackathon-oscs/cartografias,marcosronaldo/noosfero,vfcosta/noosfero,hackathon-oscs/rede-osc,evandroj... | html+erb | ## Code Before:
<% extend SolrPlugin::SearchHelper %>
<% set_facets_variables %>
<%= search_page_title( @titles[@asset], @category ) %>
<% if !@empty_query %>
<div id='search-column-left'>
<%= render :partial => 'facets' %>
</div>
<div id='search-column-right'>
<%= render :partial => 'results' %>
</d... |
3d882823ced9976a5f18c65e039a237264927e93 | README.md | README.md |
This is an HTML5 game writing for the game jam
[One Game a month](http://onegameamonth.com) in September 2014.
It is about throwing a carousel as far as possible.
## Setup for playing
First, run
```sh
bower install
```
Then launch an http server at the root of the project. the index page
launches the game.
## Se... |
This is an HTML5 game writing for the game jam
[One Game a month](http://onegameamonth.com) in September 2014.
It is about throwing a carousel as far as possible.
Test it on [https://dl.dropboxusercontent.com/u/84678909/tungstene-ride-to-the-sky/index.html](https://dl.dropboxusercontent.com/u/84678909/tungstene-ride... | Add link to test url | Add link to test url
| Markdown | mit | stevenremot/tungstene-ride-to-the-sky | markdown | ## Code Before:
This is an HTML5 game writing for the game jam
[One Game a month](http://onegameamonth.com) in September 2014.
It is about throwing a carousel as far as possible.
## Setup for playing
First, run
```sh
bower install
```
Then launch an http server at the root of the project. the index page
launches ... |
6bada1441f56d807d0dee9416b09ceda0a57b8ca | test/acceptance/client_requests_info_from_server_test.rb | test/acceptance/client_requests_info_from_server_test.rb | require 'acceptance/test_helper'
require 'timeout'
describe "Client requests information from the Server" do
before do
@server, @client1, @client2 = self.class.setup_environment
end
it "asks the server for information and waits for a response" do
@server.on(:client_info) do |message|
"Server resp... | require 'acceptance/test_helper'
require 'timeout'
describe "Client requests information from the Server" do
before do
@server, @client1, @client2 = self.class.setup_environment
end
it "asks the server for information and waits for a response" do
@server.on(:client_info) do |message|
"Server resp... | Add test that client -> server requests are handled in order | Add test that client -> server requests are handled in order
| Ruby | mit | pantry/pantry | ruby | ## Code Before:
require 'acceptance/test_helper'
require 'timeout'
describe "Client requests information from the Server" do
before do
@server, @client1, @client2 = self.class.setup_environment
end
it "asks the server for information and waits for a response" do
@server.on(:client_info) do |message|
... |
47c63baae001fb37956f7a254136877cb4f9cd73 | mk/spksrc.native-env.mk | mk/spksrc.native-env.mk | PKG_CONFIG_LIBDIR = $(INSTALL_DIR)/$(INSTALL_PREFIX)/lib/pkgconfig
INSTALL_DIR = $(WORK_DIR)/install
INSTALL_PREFIX = /usr/local
ENV += LD= CPP= NM= CC= RANLIB= CXX= AR= STRIP= OBJDUM= CFLAGS= CPPFLAGS= LDFLAGS=
ENV += INSTALL_PREFIX=$(INSTALL_PREFIX)
| PKG_CONFIG_LIBDIR = $(INSTALL_DIR)/$(INSTALL_PREFIX)/lib/pkgconfig
INSTALL_DIR = $(WORK_DIR)/install
INSTALL_PREFIX = /usr/local
ENV += -u PKG_CONFIG -u PKG_CONFIG_LIBDIR -u PKG_CONFIG_PATH
ENV += LD= CPP= NM= CC= RANLIB= CXX= AR= STRIP= OBJDUM= CFLAGS= CPPFLAGS= LDFLAGS= CXXFLAGS= LDSHARED= READELF= AS= OBJDUMP=
ENV... | Fix native env so native python/glibc can be compiled from within spk | Fix native env so native python/glibc can be compiled from within spk
Should prevent reports like #659, #746, #978 etc.
| Makefile | bsd-3-clause | xtech9/spksrc,jdierkse/spksrc,sangood/spksrc,saschpe/spksrc,schumi2004/spksrc,nickbroon/spksrc,riverful/spksrc,mirweb/spksrc,GoodOmens83/spksrc,bwynants/spksrc,xtech9/spksrc,mreppen/spksrc,cdcabrera/spksrc,Grimthorr/spksrc,andyblac/spksrc,GaetanCambier/spksrc,thunfischbrot/spksrc,jdierkse/spksrc,mreppen/spksrc,nickbroo... | makefile | ## Code Before:
PKG_CONFIG_LIBDIR = $(INSTALL_DIR)/$(INSTALL_PREFIX)/lib/pkgconfig
INSTALL_DIR = $(WORK_DIR)/install
INSTALL_PREFIX = /usr/local
ENV += LD= CPP= NM= CC= RANLIB= CXX= AR= STRIP= OBJDUM= CFLAGS= CPPFLAGS= LDFLAGS=
ENV += INSTALL_PREFIX=$(INSTALL_PREFIX)
## Instruction:
Fix native env so native python/g... |
2462b51587c60714eefb7d19e7fe42f7a697344d | .kitchen.yml | .kitchen.yml | ---
driver:
name: vagrant
customize:
memory: 512
provisioner:
name: chef_zero
platforms:
- name: ubuntu-12.04
driver:
network:
- ["private_network", {ip: "33.33.33.20"}]
- name: ubuntu-14.04
driver:
network:
- ["private_network", {ip: "33.33.33.21"}]
- name: centos-6.... | ---
driver:
name: vagrant
customize:
memory: 512
provisioner:
name: chef_zero
chef_zero_port: 9010
platforms:
- name: ubuntu-12.04
driver:
network:
- ["private_network", {ip: "33.33.33.20"}]
- name: ubuntu-14.04
driver:
network:
- ["private_network", {ip: "33.33.33.21... | Fix a port conflict now that Supermarket 1.8.0 uses chef-zero as well | Fix a port conflict now that Supermarket 1.8.0 uses chef-zero as well
| YAML | apache-2.0 | nellshamrell/supermarket-omnibus-cookbook,chef-cookbooks/supermarket-omnibus-cookbook,GannettDigital/chef-supermarket-omnibus-cookbook,irvingpop/supermarket-omnibus-cookbook,stephenlauck/supermarket-omnibus-cookbook | yaml | ## Code Before:
---
driver:
name: vagrant
customize:
memory: 512
provisioner:
name: chef_zero
platforms:
- name: ubuntu-12.04
driver:
network:
- ["private_network", {ip: "33.33.33.20"}]
- name: ubuntu-14.04
driver:
network:
- ["private_network", {ip: "33.33.33.21"}]
-... |
67ad246f902b2c04a426d16d5fe877ffa1fee5d0 | tests/integration/angular-meteor-session-spec.js | tests/integration/angular-meteor-session-spec.js | describe('$meteorSession service', function () {
var $meteorSession,
$rootScope,
$scope;
beforeEach(angular.mock.module('angular-meteor'));
beforeEach(angular.mock.inject(function(_$meteorSession_, _$rootScope_) {
$meteorSession = _$meteorSession_;
$rootScope = _$rootScope_;
$scope = $ro... | describe('$meteorSession service', function () {
var $meteorSession,
$rootScope,
$scope;
beforeEach(angular.mock.module('angular-meteor'));
beforeEach(angular.mock.inject(function(_$meteorSession_, _$rootScope_) {
$meteorSession = _$meteorSession_;
$rootScope = _$rootScope_;
$scope = $ro... | Add test for $meteorSession service to support scope variable nested property | Add test for $meteorSession service to support scope variable nested property
| JavaScript | mit | IgorMinar/angular-meteor,omer72/angular-meteor,IgorMinar/angular-meteor,zhoulvming/angular-meteor,dszczyt/angular-meteor,craigmcdonald/angular-meteor,divramod/angular-meteor,aleksander351/angular-meteor,thomkaufmann/angular-meteor,Urigo/angular-meteor,Unavi/angular-meteor,manhtuongbkhn/angular-meteor,dszczyt/angular-me... | javascript | ## Code Before:
describe('$meteorSession service', function () {
var $meteorSession,
$rootScope,
$scope;
beforeEach(angular.mock.module('angular-meteor'));
beforeEach(angular.mock.inject(function(_$meteorSession_, _$rootScope_) {
$meteorSession = _$meteorSession_;
$rootScope = _$rootScope_;
... |
1f6cfc29f60333b51b97cd0dbce3534366f856c9 | MathParser/String.swift | MathParser/String.swift | //
// String.swift
// DDMathParser
//
// Created by Dave DeLong on 8/24/15.
//
//
import Foundation
public extension String {
public func evaluate(_ substitutions: Substitutions = [:]) throws -> Double {
let e = try Expression(string: self)
return try Evaluator.default.evaluate(e, substitu... | //
// String.swift
// DDMathParser
//
// Created by Dave DeLong on 8/24/15.
//
//
import Foundation
public extension String {
public func evaluate(using evaluator: Evaluator = .default, _ substitutions: Substitutions = [:]) throws -> Double {
let e = try Expression(string: self)
return try... | Allow passing evaluator to convenience string evaluation | Allow passing evaluator to convenience string evaluation
| Swift | mit | davedelong/DDMathParser,davedelong/DDMathParser | swift | ## Code Before:
//
// String.swift
// DDMathParser
//
// Created by Dave DeLong on 8/24/15.
//
//
import Foundation
public extension String {
public func evaluate(_ substitutions: Substitutions = [:]) throws -> Double {
let e = try Expression(string: self)
return try Evaluator.default.eval... |
a86658241cd719e7e3d170361fcd00deeb26b6cb | src/app/templates/LoadContent.js | src/app/templates/LoadContent.js | import { contentsRef, routesRef } from '@/admin/firebase_config/index'
import contentFetch from '@/admin/mixins/contentFetch'
import _ from 'lodash'
export default {
mixins: [contentFetch],
firebase: {
routes: routesRef,
contents: contentsRef
},
computed: {
content () {
const params = this.$r... | import { contentsRef, routesRef } from '@/admin/firebase_config/index'
import contentFetch from '@/admin/mixins/contentFetch'
import _ from 'lodash'
export default {
mixins: [contentFetch],
firebase: {
routes: routesRef,
contents: contentsRef
},
computed: {
content () {
const params = this.$r... | Fix condition for fetching content | Fix condition for fetching content
| JavaScript | mit | tamiat/tamiat,tamiat/tamiat | javascript | ## Code Before:
import { contentsRef, routesRef } from '@/admin/firebase_config/index'
import contentFetch from '@/admin/mixins/contentFetch'
import _ from 'lodash'
export default {
mixins: [contentFetch],
firebase: {
routes: routesRef,
contents: contentsRef
},
computed: {
content () {
const ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.