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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
51575888408e4bf08e67bcefc463547d31874b23 | test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll | test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll | ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+mmx | grep movd | count 2
define i64 @a(i32 %a, i32 %b) nounwind readnone {
entry:
%0 = insertelement <2 x i32> undef, i32 %a, i32 0 ; <<2 x i32>> [#uses=1]
%1 = insertelement <2 x i32> %0, i32 %b, i32 1 ; <<2 x i32>> [#uses=1]
%conv = bitcast <2 x i32> %1 to i64 ; <... | ; RUN: llc < %s -mtriple=x86_64-linux -mcpu=corei7 -mattr=+mmx | grep movd | count 2
define i64 @a(i32 %a, i32 %b) nounwind readnone {
entry:
%0 = insertelement <2 x i32> undef, i32 %a, i32 0 ; <<2 x i32>> [#uses=1]
%1 = insertelement <2 x i32> %0, i32 %b, i32 1 ; <<2 x i32>> [#uses=1]
%conv = bitcast <2 x i32> %... | Stabilize the test by specifying an exact cpu target | Stabilize the test by specifying an exact cpu target
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@143307 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | bsd-2-clause | dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,app... | llvm | ## Code Before:
; RUN: llc < %s -mtriple=x86_64-linux -mattr=+mmx | grep movd | count 2
define i64 @a(i32 %a, i32 %b) nounwind readnone {
entry:
%0 = insertelement <2 x i32> undef, i32 %a, i32 0 ; <<2 x i32>> [#uses=1]
%1 = insertelement <2 x i32> %0, i32 %b, i32 1 ; <<2 x i32>> [#uses=1]
%conv = bitcast <2 x i32... |
3460e5b8ef4042ba05560b6f9a0343e8c4f4f918 | bootstrap/docker.json | bootstrap/docker.json | {
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"hosts": [
"tcp://127.0.0.1:2376",
"unix:///var/run/docker.sock"
],
"storage-driver": "devicemapper",
"storage-opts": [
"dm.override_udev_sync_check=true"
]
}
| {
"bip": "10.250.0.0/16",
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"default-address-pools":[
{ "base":"10.251.0.0/16", "size":24 },
{ "base":"10.252.0.0/16", "size":24 }
],
"hosts": [
"tcp://127.0.0.1:2376",
"un... | Add custom addresses for Docker containers | Add custom addresses for Docker containers
| JSON | mit | cartolari/dotfiles,cartolari/dotfiles,cartolari/dotfiles,cartolari/dotfiles | json | ## Code Before:
{
"data-root": "/mnt/stateful_partition/docker",
"experimental": true,
"deprecated-key-path": "/var/lib/docker/key.json",
"hosts": [
"tcp://127.0.0.1:2376",
"unix:///var/run/docker.sock"
],
"storage-driver": "devicemapper",
"storage-opts": [
"dm.override_udev_sync_check=true"
... |
3bf2779805eeb2fff9fdda563e9188814c0859cf | cookbooks/dns/templates/default/creds.json.erb | cookbooks/dns/templates/default/creds.json.erb | {
"gandi_v5": {
"apikey": "<%= @passwords["gandi"] %>",
"sharing_id": "7028b616-ba65-11e7-8343-00163ec31f40"
},
"cloudflare": {
"accountid": "049c95aba02c95fc1e78a9d255282e0f",
"accountname": "OpenStreetMap",
"apitoken": "<%= @passwords["cloudflare"] %>"
}
}
| {
"gandi_v5": {
"TYPE": "GANDI_V5",
"apikey": "<%= @passwords["gandi"] %>",
"sharing_id": "7028b616-ba65-11e7-8343-00163ec31f40"
},
"cloudflare": {
"TYPE": "CLOUDFLAREAPI",
"accountid": "049c95aba02c95fc1e78a9d255282e0f",
"accountname": "OpenStreetMap",
"apitoken": "<%= @passwords["clo... | Update dnscontrol auth to v3.16+ syntax | Update dnscontrol auth to v3.16+ syntax
https://stackexchange.github.io/dnscontrol/creds-json#missing
| HTML+ERB | apache-2.0 | tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,openstreetmap/chef,tomhughes/openstreetmap-chef,openstreetmap/chef,tomhughes/openstreetmap-chef,openstreetmap/chef,openstreetmap/chef,openstreetmap/chef,tomhughes/openstreetmap-chef,openstreetmap/chef,tom... | html+erb | ## Code Before:
{
"gandi_v5": {
"apikey": "<%= @passwords["gandi"] %>",
"sharing_id": "7028b616-ba65-11e7-8343-00163ec31f40"
},
"cloudflare": {
"accountid": "049c95aba02c95fc1e78a9d255282e0f",
"accountname": "OpenStreetMap",
"apitoken": "<%= @passwords["cloudflare"] %>"
}
}
## Instruction:
... |
8e275a22aa419297eee0acc5ef65fc0cce4aa3cb | clients/web/test/spec/swaggerSpec.js | clients/web/test/spec/swaggerSpec.js | function jasmineTests() {
var jasmineEnv = jasmine.getEnv();
var consoleReporter = new jasmine.ConsoleReporter();
window.jasmine_phantom_reporter = consoleReporter;
jasmineEnv.addReporter(consoleReporter);
function waitAndExecute() {
if (!jasmineEnv.currentRunner().suites_.length) {
... | function jasmineTests() {
var jasmineEnv = jasmine.getEnv();
var consoleReporter = new jasmine.ConsoleReporter();
window.jasmine_phantom_reporter = consoleReporter;
jasmineEnv.addReporter(consoleReporter);
function waitAndExecute() {
if (!jasmineEnv.currentRunner().suites_.length) {
... | Update web client swagger test for swagger-ui 2.1.4 | Update web client swagger test for swagger-ui 2.1.4
| JavaScript | apache-2.0 | adsorensen/girder,kotfic/girder,data-exp-lab/girder,jbeezley/girder,Kitware/girder,jbeezley/girder,adsorensen/girder,RafaelPalomar/girder,kotfic/girder,girder/girder,sutartmelson/girder,Xarthisius/girder,sutartmelson/girder,sutartmelson/girder,manthey/girder,data-exp-lab/girder,RafaelPalomar/girder,data-exp-lab/girder,... | javascript | ## Code Before:
function jasmineTests() {
var jasmineEnv = jasmine.getEnv();
var consoleReporter = new jasmine.ConsoleReporter();
window.jasmine_phantom_reporter = consoleReporter;
jasmineEnv.addReporter(consoleReporter);
function waitAndExecute() {
if (!jasmineEnv.currentRunner().suites_.le... |
17a18f1f8765bda183de2d52834faaa310ca086a | java/build.xml | java/build.xml | <project name="LibOpenConnect" default="dist" basedir=".">
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="src" location="src"/>
<property name="jar_lib" location="${dist}/openconnect-wrapper.jar"/>
<property name="jar_app" location="${dist}/example.jar"/>
<t... | <project name="LibOpenConnect" default="dist" basedir=".">
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="src" location="src"/>
<property name="jar_lib" location="${dist}/openconnect-wrapper.jar"/>
<property name="jar_app" location="${dist}/example.jar"/>
<t... | Build for Java 1.5 to avoid compatibility issues | Build for Java 1.5 to avoid compatibility issues
cf. https://code.google.com/p/android/issues/detail?id=22970
Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel.com>
| XML | lgpl-2.1 | cernekee/openconnect,matlockx/openconnect,nmav/openconnect-mine,lins05/openconnect,lins05/openconnect,mtmiller/openconnect,brandt/openconnect,atyndall/openconnect,mveplus/openconnect-client,don-johnny/openconnect,don-johnny/openconnect,mtmiller/openconnect,mtmiller/openconnect,liiir1985/openconnect,cernekee/openconnect... | xml | ## Code Before:
<project name="LibOpenConnect" default="dist" basedir=".">
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="src" location="src"/>
<property name="jar_lib" location="${dist}/openconnect-wrapper.jar"/>
<property name="jar_app" location="${dist}/exa... |
e358e2b6fc2b6923b37a88f1b3fddb5a2f96fe37 | .travis.yml | .travis.yml | language: C
addons:
apt:
packages:
- libgmp-dev
- libmpfr-dev
cache:
apt: true
#directories:
# - compiler/
#install: bash scripts/build_cross_compiler.sh
script:
- make run-tests
| sudo: false
language: c
addons:
apt:
packages:
# Libraries needed to build cross compiler
- libgmp-dev
- libmpfr-dev
cache:
apt: true
directories:
- compiler/
# Compiles the cross compiler into the projects root
before_install: bash scripts/build_cross_compile... | Build the CC, build the kernel, and run libk tests | Build the CC, build the kernel, and run libk tests | YAML | mit | iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth | yaml | ## Code Before:
language: C
addons:
apt:
packages:
- libgmp-dev
- libmpfr-dev
cache:
apt: true
#directories:
# - compiler/
#install: bash scripts/build_cross_compiler.sh
script:
- make run-tests
## Instruction:
Build the CC, build the kernel, and run libk tests
## Code Af... |
efb3b418eba8316b42ac6ee92249ba13598cbc9e | app.sh | app.sh | cat << EOS
AkkeyLab
The elapsed time does not matter.
Because speed is important.
EOS
#
# Install web apps.
#
echo " ----- Install web apps ------"
brew install --cask 1password
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk
brew install --cask android-studio
brew install --cask cyberduck
brew in... | cat << EOS
AkkeyLab
The elapsed time does not matter.
Because speed is important.
EOS
#
# Install web apps.
#
echo " ----- Install web apps ------"
brew install --cask 1password
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk
brew install --cask android-studio
brew install --cask cyberduck
brew in... | Update brew cask install commands | :bulb: Update brew cask install commands
| Shell | mit | AkkeyLab/mac-auto-setup | shell | ## Code Before:
cat << EOS
AkkeyLab
The elapsed time does not matter.
Because speed is important.
EOS
#
# Install web apps.
#
echo " ----- Install web apps ------"
brew install --cask 1password
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk
brew install --cask android-studio
brew install --cask c... |
7a403519539146fc50c0897576f3453f11960032 | cli/README.md | cli/README.md |
The GitHub Actions for [Google Cloud Platform](https://cloud.google.com/) and wraps the [gcloud SDK](https://cloud.google.com/sdk/) to enable common Google Cloud commands. This is a thin wrapper around the `gcloud` utility.
## Usage
An example workflow to list clusters on Google Cloud Platform:
```
workflow "Run gcl... |
The GitHub Actions for [Google Cloud Platform](https://cloud.google.com/) and wraps the [gcloud SDK](https://cloud.google.com/sdk/) to enable common Google Cloud commands. This is a thin wrapper around the `gcloud` utility.
## Usage
An example workflow to list clusters on Google Cloud Platform:
```
workflow "Run gcl... | Update text to GCP List Clusters | Update text to GCP List Clusters
Addresses PR feedback, thanks @parkr! | Markdown | apache-2.0 | google-github-actions/setup-gcloud,google-github-actions/setup-gcloud,google-github-actions/setup-gcloud | markdown | ## Code Before:
The GitHub Actions for [Google Cloud Platform](https://cloud.google.com/) and wraps the [gcloud SDK](https://cloud.google.com/sdk/) to enable common Google Cloud commands. This is a thin wrapper around the `gcloud` utility.
## Usage
An example workflow to list clusters on Google Cloud Platform:
```
w... |
d84d5f831424806c82033f660205cbfb2c1e7341 | src/app/header/header.component.html | src/app/header/header.component.html | <nav class="navbar fixed-top navbar-dark bg-inverse">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class=... | <nav class="navbar fixed-top navbar-toggleable-md navbar-inverse bg-inverse">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="nav... | Fix navigation bar to work with latest bootstrap | Fix navigation bar to work with latest bootstrap
| HTML | mit | riccardobellini/recipecatalog-frontend-angular,riccardobellini/recipecatalog-frontend-angular,riccardobellini/recipecatalog-frontend-angular | html | ## Code Before:
<nav class="navbar fixed-top navbar-dark bg-inverse">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</but... |
2ad9290db1bdc9a155a6c327f92088209f13d141 | lib/pdoc.rb | lib/pdoc.rb | DIR = File.dirname(__FILE__)
OUTPUT_DIR = File.expand_path(File.join(DIR, "..", "output"))
TEMPLATES_DIR = File.expand_path(File.join(DIR, "..", "templates"))
PARSER_DIR = File.expand_path(File.join(DIR, "pdoc", "parser"))
VENDOR_DIR = File.expand_path(File.join(DIR, "..", "vendor"))
[DIR, VENDOR_DIR, PARSER_DIR, OUTP... | DIR = File.expand_path(File.dirname(__FILE__))
OUTPUT_DIR = File.join(DIR, '..', 'output')
TEMPLATES_DIR = File.join(DIR, '..', 'templates')
VENDOR_DIR = File.join(DIR, '..', 'vendor')
PARSER_DIR = File.join(DIR, 'pdoc', 'parser')
[DIR, VENDOR_DIR, PARSER_DIR, OUTPUT_DIR, TEMPLATES_DIR].each do |c|
$:.unshi... | Clean up internal requires and external dependencies. | Clean up internal requires and external dependencies.
| Ruby | mit | tobie/pdoc,tobie/pdoc | ruby | ## Code Before:
DIR = File.dirname(__FILE__)
OUTPUT_DIR = File.expand_path(File.join(DIR, "..", "output"))
TEMPLATES_DIR = File.expand_path(File.join(DIR, "..", "templates"))
PARSER_DIR = File.expand_path(File.join(DIR, "pdoc", "parser"))
VENDOR_DIR = File.expand_path(File.join(DIR, "..", "vendor"))
[DIR, VENDOR_DIR, ... |
44e5a3a2338907b975a7042372739bf88de81c6e | gcloud/aliases.zsh | gcloud/aliases.zsh | alias gcrli='gcloud container images list --repository=asia.gcr.io/greensync-container-registry'
gcrlt() {
gcloud container images list-tags asia.gcr.io/greensync-container-registry/"$1"
}
| alias gcrli='gcloud container images list --repository=asia.gcr.io/greensync-container-registry'
gcrlt() {
local full_image_name
if [[ "$1" =~ ^asia.gcr.io/greensync-container-registry/ ]]; then
full_image_name="$1"
else
full_image_name="asia.gcr.io/greensync-container-registry/$1"
fi
gcloud containe... | Make gcrlt support either image name or full image name; Add gcrl | Make gcrlt support either image name or full image name; Add gcrl
| Shell | mit | ZimbiX/dotfiles,ZimbiX/dotfiles | shell | ## Code Before:
alias gcrli='gcloud container images list --repository=asia.gcr.io/greensync-container-registry'
gcrlt() {
gcloud container images list-tags asia.gcr.io/greensync-container-registry/"$1"
}
## Instruction:
Make gcrlt support either image name or full image name; Add gcrl
## Code After:
alias gcrli='... |
95329797ba6e76fa2d0aecc348805ac06b6e3e0f | scripts/after.sh | scripts/after.sh | echo "Running after.sh"
#!/bin/sh
| echo "Running after.sh"
#!/bin/sh
apt-get -y install phantomjs screen
mysql -u root -pvagrant -e "GRANT ALL PRIVILEGES ON homestead.* TO 'homestead'@'%' IDENTIFIED BY 'secret'"
echo "Set Travis privs"
(crontab -l 2>/dev/null; echo "@reboot screen -S server -d -m phantomjs --webdriver=4444") | crontab -
echo "Added s... | Add codeception testing stuff to vagrant | Add codeception testing stuff to vagrant
| Shell | mit | svpernova09/memvents,svpernova09/memvents,svpernova09/memvents,svpernova09/memvents | shell | ## Code Before:
echo "Running after.sh"
#!/bin/sh
## Instruction:
Add codeception testing stuff to vagrant
## Code After:
echo "Running after.sh"
#!/bin/sh
apt-get -y install phantomjs screen
mysql -u root -pvagrant -e "GRANT ALL PRIVILEGES ON homestead.* TO 'homestead'@'%' IDENTIFIED BY 'secret'"
echo "Set Travis pr... |
58d56bd6b7608349fb491e9f281e10c3aea838ba | lib/mforwd/deliver/slack.rb | lib/mforwd/deliver/slack.rb | class MForwd::Deliver::Slack < MForwd::Deliver::HttpPost
private
# @param message [MForwd::Message]
def create_body message
{ text: message.body }.to_json
end
end
| class MForwd::Deliver::Slack < MForwd::Deliver::HttpPost
@@color_of_kind = {
'good' => /^(green$|ok$|good$|recover)/i,
'warning' => /^(yellow$|warn)/i,
'danger' => /^(red$|fatal$|crit|error$|danger$)/i,
}
private
# @param message [MForwd::Message]
def create_body message
param = {
... | Set rich format for Slack POST | Set rich format for Slack POST
| Ruby | mit | key-amb/poloxy,key-amb/poloxy | ruby | ## Code Before:
class MForwd::Deliver::Slack < MForwd::Deliver::HttpPost
private
# @param message [MForwd::Message]
def create_body message
{ text: message.body }.to_json
end
end
## Instruction:
Set rich format for Slack POST
## Code After:
class MForwd::Deliver::Slack < MForwd::Deliver::HttpPost
@@c... |
6f2b4ccdfa297605fd3d7be63039a8fcbda714d1 | routes/titles.rb | routes/titles.rb | module Sinatra
module TreeStats
module Routing
module Titles
def self.registered(app)
app.get '/titles/?' do
@titles = TitleHelper::TITLES
@titles = @titles.select { |i,t| i > 0 }.sort_by { |i,t| t }
not_found("No titles found.") if @titles.length < 1
... | module Sinatra
module TreeStats
module Routing
module Titles
def self.registered(app)
app.get '/titles/?' do
@titles = TitleHelper::TITLES
@titles = @titles.select { |i,t| i > 0 }.sort_by { |i,t| t }
not_found("No titles found.") if @titles.length < 1
... | Sort retrieved chars with title by server then player name | Sort retrieved chars with title by server then player name
| Ruby | mit | amoeba/treestats.net,amoeba/treestats.net,amoeba/treestats.net | ruby | ## Code Before:
module Sinatra
module TreeStats
module Routing
module Titles
def self.registered(app)
app.get '/titles/?' do
@titles = TitleHelper::TITLES
@titles = @titles.select { |i,t| i > 0 }.sort_by { |i,t| t }
not_found("No titles found.") if @tit... |
d8eb5c32f51407b905c99ab43fcf65d441cd9f84 | app/controllers/financials_controller.rb | app/controllers/financials_controller.rb | class FinancialsController < ProductController
before_action :find_product!
def index
unless params[:product_id] == 'coderwall'
redirect_to product_path(@product)
end
end
end
| class FinancialsController < ProductController
before_action :find_product!
def index
unless @product.slug == 'coderwall'
redirect_to product_path(@product)
end
end
end
| Check slug instead of path param | Check slug instead of path param
| Ruby | agpl-3.0 | lachlanjc/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta | ruby | ## Code Before:
class FinancialsController < ProductController
before_action :find_product!
def index
unless params[:product_id] == 'coderwall'
redirect_to product_path(@product)
end
end
end
## Instruction:
Check slug instead of path param
## Code After:
class FinancialsController < ProductContro... |
49fb91671dc758d0d692c6d8ac90bbb63678ad75 | mc/Voyage-Model-Tests.package/VOArangoRepositoryTest.class/instance/setUp.st | mc/Voyage-Model-Tests.package/VOArangoRepositoryTest.class/instance/setUp.st | running
setUp
repository := VOArangoRepository uri: 'http://localhost:8529' | running
setUp
repository := VOArangoRepository uri: 'http://localhost:8529'.
PQQueryBuilder generatorClass: PQArangoQueryGenerator. | Set up generator class for arango | Set up generator class for arango | Smalltalk | mit | pharo-nosql/voyage,tinchodias/voyage,tinchodias/voyage,noha/voyage,noha/voyage | smalltalk | ## Code Before:
running
setUp
repository := VOArangoRepository uri: 'http://localhost:8529'
## Instruction:
Set up generator class for arango
## Code After:
running
setUp
repository := VOArangoRepository uri: 'http://localhost:8529'.
PQQueryBuilder generatorClass: PQArangoQueryGenerator. |
f822b890d91d20ccb5a7da2935a1d4981e524c0f | app/views/home/show.html.erb | app/views/home/show.html.erb | <%= render 'shared/header' %>
<main class="mainPageContent">
<div class="l-container">
<h1><%= t('.heading_html') %></h1>
<ul class="specialList"><%= t('.summary_list_html') %></ul>
<div id="introductionText"><%= t('.introduction_text_html') %></div>
</div>
</main>
<%= render 'shared/footer_site_links... | <%= render 'shared/header' %>
<main class="mainPageContent">
<div class="l-container">
<h1><%= t('.heading_html') %></h1>
<ul class="list--iconBullets"><%= t('.summary_list_html') %></ul>
<div id="introductionText"><%= t('.introduction_text_html') %></div>
</div>
</main>
<%= render 'shared/footer_site... | Replace specialList with a more semantic name. | Replace specialList with a more semantic name.
| HTML+ERB | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | html+erb | ## Code Before:
<%= render 'shared/header' %>
<main class="mainPageContent">
<div class="l-container">
<h1><%= t('.heading_html') %></h1>
<ul class="specialList"><%= t('.summary_list_html') %></ul>
<div id="introductionText"><%= t('.introduction_text_html') %></div>
</div>
</main>
<%= render 'shared/f... |
faa739924994acc3d61459db9b75ffa81cd87bcb | examples/reset_password.html | examples/reset_password.html | <!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
{% if error %}
<p>{{ error }}</p>
{% endif %}
<form method="POST" action="/reset-password">
<label for="password">New Password</label>
<input type="password" name="password"><br>
<label for="confirm">Confirm Pas... | <!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
{% if error %}
<p>{{ error }}</p>
{% endif %}
<form method="POST" action="/auth/fogot_password/reset_password">
<label for="password">New Password</label>
<input type="password" name="password"><br>
<label for="... | Update template reset password url | Update template reset password url
| HTML | apache-2.0 | SkygearIO/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server | html | ## Code Before:
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
{% if error %}
<p>{{ error }}</p>
{% endif %}
<form method="POST" action="/reset-password">
<label for="password">New Password</label>
<input type="password" name="password"><br>
<label for="conf... |
e53ecef685569dfad2c62cd38c53190a9b2012d0 | metpy/gridding/__init__.py | metpy/gridding/__init__.py |
from .gridding_functions import * # noqa: F403
from .points import * # noqa: F403
from .triangles import * # noqa: F403
from .polygons import * # noqa: F403
from .interpolation import * # noqa: F403
__all__ = gridding_functions.__all__[:] # pylint: disable=undefined-variable
__all__.extend(interpolation.__all__... |
from .gridding_functions import * # noqa: F403
from .interpolation import * # noqa: F403
__all__ = gridding_functions.__all__[:] # pylint: disable=undefined-variable
__all__.extend(interpolation.__all__) # pylint: disable=undefined-variable
| Remove some imported modules from gridding | MNT: Remove some imported modules from gridding
We never intended these to be part of the supported API. The fact that
these were available from metpy.gridding was revealed by the new
autosummary docs.
| Python | bsd-3-clause | ShawnMurd/MetPy,dopplershift/MetPy,ahaberlie/MetPy,jrleeman/MetPy,ahaberlie/MetPy,dopplershift/MetPy,Unidata/MetPy,jrleeman/MetPy,Unidata/MetPy | python | ## Code Before:
from .gridding_functions import * # noqa: F403
from .points import * # noqa: F403
from .triangles import * # noqa: F403
from .polygons import * # noqa: F403
from .interpolation import * # noqa: F403
__all__ = gridding_functions.__all__[:] # pylint: disable=undefined-variable
__all__.extend(inter... |
6bdc335ebb8ed009cbc926e681ee6be8f475f323 | reviewboard/reviews/features.py | reviewboard/reviews/features.py | """Feature definitions for reviews."""
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from djblets.features import Feature, FeatureLevel
class GeneralCommentsFeature(Feature):
"""A feature for general comments.
General comments allow comments to be created d... | """Feature definitions for reviews."""
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from djblets.features import Feature, FeatureLevel
class GeneralCommentsFeature(Feature):
"""A feature for general comments.
General comments allow comments to be created d... | Mark status updates as stable. | Mark status updates as stable.
This allows people to actually use the feature without turning it on in their
`settings_local.py`.
Reviewed at https://reviews.reviewboard.org/r/8569/
| Python | mit | sgallagher/reviewboard,brennie/reviewboard,chipx86/reviewboard,chipx86/reviewboard,chipx86/reviewboard,davidt/reviewboard,reviewboard/reviewboard,davidt/reviewboard,reviewboard/reviewboard,chipx86/reviewboard,brennie/reviewboard,sgallagher/reviewboard,davidt/reviewboard,sgallagher/reviewboard,davidt/reviewboard,brennie... | python | ## Code Before:
"""Feature definitions for reviews."""
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from djblets.features import Feature, FeatureLevel
class GeneralCommentsFeature(Feature):
"""A feature for general comments.
General comments allow comments... |
0a3495e269ff97b7f8e83d6f23c2bab81c88f99f | travis-ci.sh | travis-ci.sh | set -ex
set | sort
curl -L -o release-1.8.0.zip \
https://github.com/google/googletest/archive/release-1.8.0.zip
unzip release-1.8.0.zip
cd googletest-release-1.8.0
cmake -DCMAKE_PREFIX_PATH=.. .
make
make install
cd ..
mkdir build
cd build
cmake ..
make
make test
| set -ex
set | sort
curl -L -o release-1.8.0.zip \
https://github.com/google/googletest/archive/release-1.8.0.zip
unzip release-1.8.0.zip
cd googletest-release-1.8.0
cmake -DCMAKE_INSTALL_PREFIX=.. .
make
make install
cd ..
mkdir build
cd build
cmake ..
make
make test
| Fix CMake install paths in travis | Fix CMake install paths in travis
| Shell | isc | DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock,DemiMarie/SlipRock | shell | ## Code Before:
set -ex
set | sort
curl -L -o release-1.8.0.zip \
https://github.com/google/googletest/archive/release-1.8.0.zip
unzip release-1.8.0.zip
cd googletest-release-1.8.0
cmake -DCMAKE_PREFIX_PATH=.. .
make
make install
cd ..
mkdir build
cd build
cmake ..
make
make test
## Instruction:
Fix CMake install p... |
2d8cfb3e35d0728314cd262c26157e835c2f8369 | quickstart/src/main/resources/archetype-catalog.xml | quickstart/src/main/resources/archetype-catalog.xml | <?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.apache.tapestry</groupId>
<artifactId>quickstart</artifactId>
<version>@project.version@</version>
<repository>http://repository.apache.org/snapshots</repository>
... | <?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.apache.tapestry</groupId>
<artifactId>quickstart</artifactId>
<version>@project.version@</version>
<repository>http://repository.apache.org/snapshots</repository>
... | Change the description for the quickstart archetype to just "Tapestry 5 Quickstart Project" | TAP5-1265: Change the description for the quickstart archetype to just "Tapestry 5 Quickstart Project"
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@992517 13f79535-47bb-0310-9956-ffa450edef68
| XML | apache-2.0 | agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5 | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.apache.tapestry</groupId>
<artifactId>quickstart</artifactId>
<version>@project.version@</version>
<repository>http://repository.apache.org/snapsho... |
040c2f0f52a606daf9092175363193cc4aa2cee2 | lib/multitenancy/rack/filter.rb | lib/multitenancy/rack/filter.rb | module Multitenancy
class Filter
def initialize(app)
@app = app
end
def call(env)
tenant = Tenant.new tenant_id, sub_tenant_id
Multitenancy.with_tenant tenant do
@app.call env
end
end
private
def tenant_id
# rack converts X_FOO to HTTP_X_... | module Multitenancy
class Filter
def initialize(app)
@app = app
end
def call(env)
tenant = Tenant.new tenant_id(env), sub_tenant_id(env)
Multitenancy.with_tenant tenant do
@app.call env
end
end
private
def tenant_id(env)
# rack converts X... | Fix syntax errors in regexp support. | Fix syntax errors in regexp support.
| Ruby | mit | 85x14/multitenancy | ruby | ## Code Before:
module Multitenancy
class Filter
def initialize(app)
@app = app
end
def call(env)
tenant = Tenant.new tenant_id, sub_tenant_id
Multitenancy.with_tenant tenant do
@app.call env
end
end
private
def tenant_id
# rack converts ... |
75b5fdd2b6627081bd1eb095169ed5f8ac6f3090 | about_me/index.html | about_me/index.html | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CS290: Homework</title>
</head>
<body>
<main>
<img alt="Andy Chase" src="portrait.jpeg" /><br />
<a href="mailto:chasean@oregonstate.edu">chasean@oregonstate.edu</a>
</main>
</body>
</html> | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CS290: Homework</title>
</head>
<body>
<main>
<img alt="Andy Chase" src="portrait.jpeg"/><br/>
<a href="mailto:chasean@oregonstate.edu">chasean@oregonstate.edu</a>
<div class="schedule">
<h2>My schedule</h2>
<ta... | Add schedule to "about me" | Add schedule to "about me"
| HTML | mit | andychase/classwork,andychase/classwork,andychase/classwork,andychase/classwork,andychase/classwork,andychase/classwork,andychase/classwork,andychase/classwork | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CS290: Homework</title>
</head>
<body>
<main>
<img alt="Andy Chase" src="portrait.jpeg" /><br />
<a href="mailto:chasean@oregonstate.edu">chasean@oregonstate.edu</a>
</main>
</body>
</html>
## Instruction:
Add schedu... |
a887308a086c3cfa32e0802b3f3c950499347399 | js/locales/bootstrap-datepicker.es.js | js/locales/bootstrap-datepicker.es.js | /**
* Spanish translation for bootstrap-datepicker
* Bruno Bonamin <bruno.bonamin@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['es'] = {
days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
daysM... | /**
* Spanish translation for bootstrap-datepicker
* Bruno Bonamin <bruno.bonamin@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['es'] = {
days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb", "Dom"],
daysM... | Add clear, week start and format. | Add clear, week start and format. | JavaScript | apache-2.0 | NFC-DITO/bootstrap-datepicker,nerionavea/bootstrap-datepicker,kiwiupover/bootstrap-datepicker,aldano/bootstrap-datepicker,inway/bootstrap-datepicker,janusnic/bootstrap-datepicker,Tekzenit/bootstrap-datepicker,josegomezr/bootstrap-datepicker,defrian8/bootstrap-datepicker,vegardok/bootstrap-datepicker,otnavle/bootstrap-d... | javascript | ## Code Before:
/**
* Spanish translation for bootstrap-datepicker
* Bruno Bonamin <bruno.bonamin@gmail.com>
*/
;(function($){
$.fn.datepicker.dates['es'] = {
days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado", "Domingo"],
daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb",... |
ef156b7e8fed483f33be8243a627363984aee96c | blueprints/in-repo-addon/files/lib/__name__/index.js | blueprints/in-repo-addon/files/lib/__name__/index.js | /*jshint node:true*/
module.exports = {
name: '<%= dasherizedModuleName %>',
isDevelopingAddon: function() {
return true;
}
};
| /*jshint node:true*/
'use strict';
module.exports = {
name: '<%= dasherizedModuleName %>',
isDevelopingAddon: function() {
return true;
}
};
| Make in-repo-addon blueprint 'use strict'. | Make in-repo-addon blueprint 'use strict'. | JavaScript | mit | kellyselden/ember-cli,Turbo87/ember-cli,jrjohnson/ember-cli,mike-north/ember-cli,HeroicEric/ember-cli,Turbo87/ember-cli,ef4/ember-cli,calderas/ember-cli,seawatts/ember-cli,sivakumar-kailasam/ember-cli,kategengler/ember-cli,kriswill/ember-cli,asakusuma/ember-cli,thoov/ember-cli,akatov/ember-cli,gfvcastro/ember-cli,patoc... | javascript | ## Code Before:
/*jshint node:true*/
module.exports = {
name: '<%= dasherizedModuleName %>',
isDevelopingAddon: function() {
return true;
}
};
## Instruction:
Make in-repo-addon blueprint 'use strict'.
## Code After:
/*jshint node:true*/
'use strict';
module.exports = {
name: '<%= dasherizedModuleName %>... |
9f79c567d0f46f02f77ea516180801b25fcafd6a | lib/nmap/run_stat.rb | lib/nmap/run_stat.rb | module Nmap
#
# Represents the runstats of a scan.
#
class RunStat < Struct.new(:end_time, :elapsed, :summary, :exit_status)
#
# Converts the stats to a String.
#
# @return [String]
# The String form of the scan.
#
def to_s
"#{self.end_time} #{self.elapsed} #{self.exit_statu... | module Nmap
#
# Represents the runstats of a scan.
#
# @since 0.7.0
#
class RunStat < Struct.new(:end_time, :elapsed, :summary, :exit_status)
#
# Converts the stats to a String.
#
# @return [String]
# The String form of the scan.
#
def to_s
"#{self.end_time} #{self.elaps... | Mark RunStat as being added in 0.7.0. | Mark RunStat as being added in 0.7.0.
| Ruby | mit | squid108/ruby-nmap,sophsec/ruby-nmap | ruby | ## Code Before:
module Nmap
#
# Represents the runstats of a scan.
#
class RunStat < Struct.new(:end_time, :elapsed, :summary, :exit_status)
#
# Converts the stats to a String.
#
# @return [String]
# The String form of the scan.
#
def to_s
"#{self.end_time} #{self.elapsed} #... |
c1330b3e685ca1ab4bc41ab16bc47631afab887a | lib/mpd-child-process.js | lib/mpd-child-process.js | var Q = require('Q'),
childProcess = require('child_process');
function processPath(exec) {
var exec = exec || Q.denodeify(childProcess.exec);
var deferred = Q.defer();
function handleDone(stdout, stderr) {
var location = stdout[0].trim().replace(/\n$/, '');
deferred.resolve(location);
}
funct... | var Q = require('Q'),
childProcess = require('child_process');
function processPath(exec) {
var exec = exec || Q.denodeify(childProcess.exec);
var deferred = Q.defer();
function handleDone(stdout, stderr) {
var location = stdout[0].trim().replace(/\n$/, '');
deferred.resolve(location);
}
funct... | Add failure message when MPD path is not found | Add failure message when MPD path is not found
| JavaScript | apache-2.0 | radiodan/radiodan.js,radiodan/radiodan.js | javascript | ## Code Before:
var Q = require('Q'),
childProcess = require('child_process');
function processPath(exec) {
var exec = exec || Q.denodeify(childProcess.exec);
var deferred = Q.defer();
function handleDone(stdout, stderr) {
var location = stdout[0].trim().replace(/\n$/, '');
deferred.resolve(locatio... |
bf514f23138cf1fbf4971341ad4d9aff915884cc | wiki/README.md | wiki/README.md |
You may have to create a docker volume for MySQL first:
docker volume create mysql-data
To start the services, just run this command inside the `wiki` directory:
docker-compose up
|
You may have to create a docker volume for MySQL first:
docker volume create mysql-data
To start the services, just run this command inside the `wiki` directory:
docker-compose up
To view the wiki page locally on mac:
In another terminal window, inside the `wiki` directory, connect to
the running docker-... | Add instructions to view wiki on mac | Add instructions to view wiki on mac
| Markdown | mit | oc4d/main,oc4d/main,oc4d/main | markdown | ## Code Before:
You may have to create a docker volume for MySQL first:
docker volume create mysql-data
To start the services, just run this command inside the `wiki` directory:
docker-compose up
## Instruction:
Add instructions to view wiki on mac
## Code After:
You may have to create a docker volume fo... |
c15a83118c98a5746136167768975ad97c733205 | app/views/characters/show.haml | app/views/characters/show.haml | - content_for :breadcrumbs do
= link_to "Characters", characters_path
»
%b= @character.name
- if @character.icon
= icon_tag @character.icon
%br
%b= @character.screenname
%br
= @character.name
- if @character.template
= surround '(', ')' do
= link_to @character.template.name, template_path(@charac... | - content_for :breadcrumbs do
= link_to "Characters", characters_path
»
%b= @character.name
- if @character.icon
= icon_tag @character.icon
%br
%b= @character.screenname
%br
= @character.name
- if @character.template
= surround '(', ')' do
= link_to @character.template.name, template_path(@charac... | Add nickname to character page | Add nickname to character page
| Haml | mit | Marri/glowfic,Marri/glowfic,Marri/glowfic,Marri/glowfic | haml | ## Code Before:
- content_for :breadcrumbs do
= link_to "Characters", characters_path
»
%b= @character.name
- if @character.icon
= icon_tag @character.icon
%br
%b= @character.screenname
%br
= @character.name
- if @character.template
= surround '(', ')' do
= link_to @character.template.name, templ... |
4b91cb368de4eaa86f5ca1c7bf03784252c68077 | spec/support/generator_spec_support.rb | spec/support/generator_spec_support.rb | module GeneratorSpecSupport
def assert_expectation_file(path, expectation_filepath = nil)
expectation_filepath ||= File.expand_path("../../generators/expectations/#{path}", __FILE__)
expectation_filepath.sub!(/_spec\.rb\z/, '_spek.rb')
assert_file(path, File.read(expectation_filepath))
end
end
RSpec.... | module GeneratorSpecSupport
def assert_expectation_file(path, expectation_filepath = nil)
expectation_filepath ||= File.expand_path("../../../examples/#{path}", __FILE__)
expectation_filepath.sub!(/_spec\.rb\z/, '_spek.rb')
assert_file(path, File.read(expectation_filepath))
end
end
RSpec.configure do... | Use examples instead of spec/generators/expectations | Use examples instead of spec/generators/expectations
| Ruby | mit | akm/model_base_generators,akm/model_base_generators,akm/model_base_generators | ruby | ## Code Before:
module GeneratorSpecSupport
def assert_expectation_file(path, expectation_filepath = nil)
expectation_filepath ||= File.expand_path("../../generators/expectations/#{path}", __FILE__)
expectation_filepath.sub!(/_spec\.rb\z/, '_spek.rb')
assert_file(path, File.read(expectation_filepath))
... |
aaf80ab5b3700b32b20e0b3d069462c50d1a0aca | scgi.gemspec | scgi.gemspec | spec = Gem::Specification.new do |s|
s.name = "scgi"
s.version = "0.9.0"
s.author = "Jeremy Evans"
s.email = "code@jeremyevans.net"
s.platform = Gem::Platform::RUBY
s.summary = "Simple support for using SCGI in ruby apps, such as Rails"
s.files = %w'LICENSE README lib/scgi.rb'
s.extra_rdoc_files = ['RE... | spec = Gem::Specification.new do |s|
s.name = "scgi"
s.version = "0.9.0"
s.author = "Jeremy Evans"
s.email = "code@jeremyevans.net"
s.platform = Gem::Platform::RUBY
s.summary = "Simple support for using SCGI in ruby apps, such as Rails"
s.files = %w'LICENSE README lib/scgi.rb'
s.require_paths = ["lib"]... | Make README the default RDoc page | Make README the default RDoc page
| Ruby | mit | jeremyevans/ruby-scgi | ruby | ## Code Before:
spec = Gem::Specification.new do |s|
s.name = "scgi"
s.version = "0.9.0"
s.author = "Jeremy Evans"
s.email = "code@jeremyevans.net"
s.platform = Gem::Platform::RUBY
s.summary = "Simple support for using SCGI in ruby apps, such as Rails"
s.files = %w'LICENSE README lib/scgi.rb'
s.extra_r... |
461281865ccd7521f25b2d4e893eb55c036f56dc | static/js/crowdsource.interceptor.js | static/js/crowdsource.interceptor.js | /**
* Date: 1/9/15
* Author: Shirish Goyal
*/
(function () {
'use strict';
angular
.module('crowdsource.interceptor', [])
.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor);
AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q'];
function AuthHttpResponseInterc... | /**
* Date: 1/9/15
* Author: Shirish Goyal
*/
(function () {
'use strict';
angular
.module('crowdsource.interceptor', [])
.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor);
AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q'];
function AuthHttpResponseInterc... | Remove deferred as not needed | Remove deferred as not needed
| JavaScript | mit | crowdresearch/crowdsource-platform,crowdresearch/crowdsource-platform,crowdresearch/daemo,rakshit-agrawal/crowdsource-platform,Milstein/crowdsource-platform,DESHRAJ/crowdsource-platform,Macbull/crowdsource-platform,crowdresearch/daemo,xasos/crowdsource-platform,crowdresearch/crowdsource-platform,shirishgoyal/crowdsourc... | javascript | ## Code Before:
/**
* Date: 1/9/15
* Author: Shirish Goyal
*/
(function () {
'use strict';
angular
.module('crowdsource.interceptor', [])
.factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor);
AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q'];
function AuthHt... |
e07d7bba31ffe9cca422417891fee20bf07f462b | lib/lokka/models/tag.rb | lib/lokka/models/tag.rb |
class Tag < ActiveRecord::Base
has_many :taggings,
dependent: :destroy
has_many :entries,
through: :taggings,
source: :tag,
class_name: 'Entry'
validates :name,
presence: true,
uniqueness: true
scope :any,
->(list) {
where(... |
class Tag < ActiveRecord::Base
has_many :taggings,
dependent: :destroy
has_many :entries,
through: :taggings,
source: :taggable,
source_type: 'Entry'
validates :name,
presence: true,
uniqueness: true
scope :any,
->(list) {
... | Fix Tag to Entry association | Fix Tag to Entry association
| Ruby | mit | morygonzalez/portalshit.net,morygonzalez/portalshit.net,morygonzalez/portalshit.net,morygonzalez/portalshit.net | ruby | ## Code Before:
class Tag < ActiveRecord::Base
has_many :taggings,
dependent: :destroy
has_many :entries,
through: :taggings,
source: :tag,
class_name: 'Entry'
validates :name,
presence: true,
uniqueness: true
scope :any,
->(list) {
... |
24105a13247aba8509c6a0f6ee74a039bf7f77ae | README.md | README.md |

Ghostwriter is a software for those that want a platform for article/blog
editing and management, but don't want a predefined way to display it,
with limited choice for themes, complicated APIs and a difficult configuration
... |
[https://travis-ci.org/arthurmco/ghostwriter]()
Ghostwriter is a software for those that want a platform for article/blog
editing and management, but don't want a predefined way to display it,
with limited choice for th... | Add link to Travis page in readme | Add link to Travis page in readme
| Markdown | mit | arthurmco/ghostwriter,arthurmco/ghostwriter | markdown | ## Code Before:

Ghostwriter is a software for those that want a platform for article/blog
editing and management, but don't want a predefined way to display it,
with limited choice for themes, complicated APIs and a difficult... |
98c9ddd43d7503044ce135680b9a2966d64d8096 | source/_splash.erb | source/_splash.erb | <div class="row">
<div class="col-6 col-lg-6">
<img src="images/foodcritic.png" />
</div>
<div class="col-6 col-lg-6">
<h1>About Foodcritic</h1>
<p>
Foodcritic is a helpful lint tool you can use to check your Chef
cookbooks for common problems.
</p>
<p>
It comes with <b><%= r... | <div class="row">
<div class="col-6 col-lg-6">
<img src="images/foodcritic.png" />
</div>
<div class="col-6 col-lg-6">
<h1>About Foodcritic</h1>
<p>
Foodcritic is a helpful lint tool you can use to check your Chef
cookbooks for common problems.
</p>
<p>
It comes with <b><%= r... | Update for Foodcritic in ChefDK | Update for Foodcritic in ChefDK
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| HTML+ERB | mit | acrmp/foodcritic-site,Foodcritic/foodcritic-site,acrmp/foodcritic-site,Foodcritic/foodcritic-site | html+erb | ## Code Before:
<div class="row">
<div class="col-6 col-lg-6">
<img src="images/foodcritic.png" />
</div>
<div class="col-6 col-lg-6">
<h1>About Foodcritic</h1>
<p>
Foodcritic is a helpful lint tool you can use to check your Chef
cookbooks for common problems.
</p>
<p>
It com... |
1e1c164fb1eae8d873c4aba244d89cb8fe42dbc1 | integration-tests/spec/spec_helper_integ.rb | integration-tests/spec/spec_helper_integ.rb |
require 'ostruct'
require 'capybara/dsl'
require 'jmx4r'
require 'stilts-stomp-client'
require 'driver_helper'
def mbean(name)
url = JMX::JDKHelper.find_local_url(/org.jboss.as.standalone/i)
puts "default jmx url: " + url
url.gsub!(/\d+\.\d+\.\d+\.\d+/, "127.0.0.1")
puts "using jmx url: " + url
JMX::MBean.... |
require 'ostruct'
require 'capybara/dsl'
require 'jmx4r'
require 'stilts-stomp-client'
require 'driver_helper'
def mbean(name)
JMX::MBean.establish_connection :command => /org.jboss.as.standalone/i
JMX::MBean.find_by_name(name)
end
def get_msc_service_state(service_name)
@msc ||= mbean('jboss.msc:type=contain... | Revert "A total f'ing shot in the dark." | Revert "A total f'ing shot in the dark."
This reverts commit c04c63fd9d0160bb5b22dc475e64eb7e64a196ef.
| Ruby | apache-2.0 | mje113/torquebox,torquebox/torquebox,vaskoz/torquebox,torquebox/torquebox,vaskoz/torquebox,ksw2599/torquebox,torquebox/torquebox-release,torquebox/torquebox-release,mje113/torquebox,mje113/torquebox,ksw2599/torquebox,torquebox/torquebox-release,torquebox/torquebox,samwgoldman/torquebox,vaskoz/torquebox,torquebox/torque... | ruby | ## Code Before:
require 'ostruct'
require 'capybara/dsl'
require 'jmx4r'
require 'stilts-stomp-client'
require 'driver_helper'
def mbean(name)
url = JMX::JDKHelper.find_local_url(/org.jboss.as.standalone/i)
puts "default jmx url: " + url
url.gsub!(/\d+\.\d+\.\d+\.\d+/, "127.0.0.1")
puts "using jmx url: " + u... |
2e397e534b4ad6732e57b9d7638df7e494339d85 | source/stylesheets/site.scss | source/stylesheets/site.scss | @charset "utf-8";
@import "vendor/normalize";
@import "vendor/animate";
// http://bourbon.io
@import "bourbon/bourbon";
@import "base/base";
@import "neat/neat";
// Partials
@import "partials/layout";
@import "partials/nav-transparent";
@import "partials/nav";
@import "partials/alpha";
@import "partials/earthscape";
... | @charset "utf-8";
@import "vendor/normalize";
@import "vendor/animate";
// http://bourbon.io
@import "bourbon/bourbon";
@import "base/grid-settings";
@import "neat/neat";
@import "base/base";
// Partials
@import "partials/layout";
@import "partials/nav-transparent";
@import "partials/nav";
@import "partials/alpha";
@... | Update sass imports order for new bourbon/neat/bitters requirements. | Update sass imports order for new bourbon/neat/bitters requirements.
| SCSS | mit | euroteamoutreach/getbiblefirst.com,joshukraine/getbiblefirst.com,joshukraine/getbiblefirst.com,euroteamoutreach/getbiblefirst.com,joshukraine/getbiblefirst.com,joshukraine/getbiblefirst.com,euroteamoutreach/getbiblefirst.com | scss | ## Code Before:
@charset "utf-8";
@import "vendor/normalize";
@import "vendor/animate";
// http://bourbon.io
@import "bourbon/bourbon";
@import "base/base";
@import "neat/neat";
// Partials
@import "partials/layout";
@import "partials/nav-transparent";
@import "partials/nav";
@import "partials/alpha";
@import "partia... |
befb57176f20692ce514ebce37282592e6bfe882 | hammerspoon/window-expand.lua | hammerspoon/window-expand.lua | local function pressFn(mods, key)
if key == nil then
key = mods
mods = {}
end
return function() hs.eventtap.keyStroke(mods, key, 1000) end
end
local function remap(mods, key, pressFn)
hs.hotkey.bind(mods, key, pressFn, nil, pressFn)
end
remap({"cmd", "alt", "ctrl", "shift"}, "delete", pressFn({"cmd", ... | local function pressFn(mods, key)
if key == nil then
key = mods
mods = {}
end
return function() hs.eventtap.keyStroke(mods, key, 1000) end
end
local function remap(mods, key, pressFn)
hs.hotkey.bind(mods, key, pressFn, nil, pressFn)
end
remap({"cmd", "alt", "ctrl", "shift"}, "delete", pressFn({"cmd", ... | Add hyper+space for window cycling | Add hyper+space for window cycling
| Lua | mit | bsingr/dotfiles,bsingr/dotfiles | lua | ## Code Before:
local function pressFn(mods, key)
if key == nil then
key = mods
mods = {}
end
return function() hs.eventtap.keyStroke(mods, key, 1000) end
end
local function remap(mods, key, pressFn)
hs.hotkey.bind(mods, key, pressFn, nil, pressFn)
end
remap({"cmd", "alt", "ctrl", "shift"}, "delete", ... |
8af7e9a2e63a155289c2840dd0c8950c95f9153b | tests/spec/storm/storm_spec.rb | tests/spec/storm/storm_spec.rb | require 'faraday'
require 'json'
describe 'Apache Storm Mesos release' do
context 'Storm UI is running' do
let(:storm_ui_url) { 'http://10.244.1.22:8080/' }
it 'has an accessible home page' do
status_code = Faraday.head(storm_ui_url).status
expect(status_code).to eq(200)
end
end
contex... | require 'spec_helper'
describe 'Apache Storm Mesos release' do
context 'Storm UI is running' do
let(:storm_ui_url) { 'http://10.244.1.22:8080/' }
it 'has an accessible home page' do
status_code = Faraday.head(storm_ui_url).status
expect(status_code).to eq(200)
end
end
context 'Storm Ni... | Move shared Mesos and Bosh logic to spec helper | Move shared Mesos and Bosh logic to spec helper
| Ruby | apache-2.0 | CloudCredo/mesos-boshrelease,CloudCredo/mesos-boshrelease | ruby | ## Code Before:
require 'faraday'
require 'json'
describe 'Apache Storm Mesos release' do
context 'Storm UI is running' do
let(:storm_ui_url) { 'http://10.244.1.22:8080/' }
it 'has an accessible home page' do
status_code = Faraday.head(storm_ui_url).status
expect(status_code).to eq(200)
end
... |
fbd0ce006326e2e410084297e64afdfb9052d2a1 | .travis.yml | .travis.yml | language: node_js
node_js:
- "6.9.2"
addons:
firefox: "latest"
before_install:
- ./tools/travis/init-env
- ./tools/travis/install-geckodriver
- ./tools/travis/start-xvfb
- . ./tools/travis/env.sh
- export DISPLAY=$ENV_DISPLAY
- export PATH=$PATH:$ENV_LOCAL_BIN_DIR
install:
- npm install --global gulp-... | language: node_js
node_js:
- "6.9.2"
addons:
firefox: "latest"
before_install:
- ./tools/travis/init-env
- ./tools/travis/install-geckodriver
- ./tools/travis/start-xvfb
- . ./tools/travis/env.sh
- export DISPLAY=$ENV_DISPLAY
- export PATH=$PATH:$ENV_LOCAL_BIN_DIR
install:
- npm install --global gulp-... | Add PhantomJS to list of browsers to be tested on Travis | Add PhantomJS to list of browsers to be tested on Travis
| YAML | mit | ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js,ssoloff/dice-server-js | yaml | ## Code Before:
language: node_js
node_js:
- "6.9.2"
addons:
firefox: "latest"
before_install:
- ./tools/travis/init-env
- ./tools/travis/install-geckodriver
- ./tools/travis/start-xvfb
- . ./tools/travis/env.sh
- export DISPLAY=$ENV_DISPLAY
- export PATH=$PATH:$ENV_LOCAL_BIN_DIR
install:
- npm instal... |
edebe37458da391723e3206c63102cbb69606c5b | ideascube/conf/idb_irq_bardarash.py | ideascube/conf/idb_irq_bardarash.py | """Bardarash in Kurdistan, Iraq"""
from .idb_jor_azraq import * # pragma: no flakes
from django.utils.translation import ugettext_lazy as _
USER_FORM_FIELDS = (
('Ideasbox', ['serial', 'box_awareness']),
(_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gender', 'country_o... | """Bardarash in Kurdistan, Iraq"""
from .idb_jor_azraq import * # pragma: no flakes
from django.utils.translation import ugettext_lazy as _
USER_FORM_FIELDS = (
('Ideasbox', ['serial', 'box_awareness']),
(_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gender', 'country_o... | Remove Kalite until Arabic language is available | Remove Kalite until Arabic language is available
| Python | agpl-3.0 | ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube | python | ## Code Before:
"""Bardarash in Kurdistan, Iraq"""
from .idb_jor_azraq import * # pragma: no flakes
from django.utils.translation import ugettext_lazy as _
USER_FORM_FIELDS = (
('Ideasbox', ['serial', 'box_awareness']),
(_('Personal informations'), ['short_name', 'full_name', 'latin_name', 'birth_year', 'gen... |
9eafe8385c8134d60241ef653a9342884c04d3e3 | tox.ini | tox.ini | [tox]
envlist = py26, py27, py33, py34, py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/regressors
commands =
python setup.py test
deps =
pip==7.0.2
-r{toxinidir}/requirements_dev.txt
[testenv:py26]
; Python 2.6 tests need to be run with nose to work with unittest2
commands =
nosetest... | [tox]
envlist = py26, py27, py33, py34, py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/regressors
commands =
python setup.py test
deps =
pip==7.0.2
-r{toxinidir}/requirements_dev.txt
[testenv:py26]
; Python 2.6 tests need to be run with nose to work with unittest2
commands =
nosetest... | Fix tests not getting picked up in Python 3 | Fix tests not getting picked up in Python 3
| INI | isc | nsh87/regressors | ini | ## Code Before:
[tox]
envlist = py26, py27, py33, py34, py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/regressors
commands =
python setup.py test
deps =
pip==7.0.2
-r{toxinidir}/requirements_dev.txt
[testenv:py26]
; Python 2.6 tests need to be run with nose to work with unittest2
command... |
2ed094d6902272f95dfd556c2244b13f9fbbc76b | build.sh | build.sh | cd $(dirname $0)
file=$(perl -e '
use JSON::PP; local $/;
$info = decode_json <>;
print $info->{name}."_".$info->{version}' \
src/info.json)
mkdir -p build
rm -rf build/*
git archive HEAD:src --prefix=$file/ -9 -o build/$file.zip
| cd $(dirname $0)
file=$(perl -e '
use JSON::PP; local $/;
$info = decode_json <>;
print $info->{name}."_".$info->{version}' \
src/info.json)
mkdir -p build
rm -rf build/*
git archive HEAD:src --prefix=$file/ -9 -o build/$file.zip
# Include LICENSE.md with release
cd build
mkdir -p $file
cp ../LICENSE... | Add LICENSE.md to built .zip | Add LICENSE.md to built .zip
| Shell | mit | jpas/factorio-expanded-tools | shell | ## Code Before:
cd $(dirname $0)
file=$(perl -e '
use JSON::PP; local $/;
$info = decode_json <>;
print $info->{name}."_".$info->{version}' \
src/info.json)
mkdir -p build
rm -rf build/*
git archive HEAD:src --prefix=$file/ -9 -o build/$file.zip
## Instruction:
Add LICENSE.md to built .zip
## Code A... |
dcf0f8aaf8a45ea5be82b3de8b57e9f9580feab1 | spec/support/backend.rb | spec/support/backend.rb | shared_examples "a Que backend" do
it "should be able to drop and create the jobs table" do
DB.table_exists?(:que_jobs).should be true
Que.drop!
DB.table_exists?(:que_jobs).should be false
Que.create!
DB.table_exists?(:que_jobs).should be true
end
it "should be able to clear the jobs table" d... | shared_examples "a Que backend" do
it "should be able to drop and create the jobs table" do
DB.table_exists?(:que_jobs).should be true
Que.drop!
DB.table_exists?(:que_jobs).should be false
Que.create!
DB.table_exists?(:que_jobs).should be true
end
it "should be able to clear the jobs table" d... | Add some pending specs on queueing jobs. | Add some pending specs on queueing jobs.
| Ruby | mit | chanks/que,zloydadka/que,hardbap/que,gocardless/que,goddamnhippie/que,joevandyk/que,brandur/que,gocardless/que,godfat/que,heroku/que | ruby | ## Code Before:
shared_examples "a Que backend" do
it "should be able to drop and create the jobs table" do
DB.table_exists?(:que_jobs).should be true
Que.drop!
DB.table_exists?(:que_jobs).should be false
Que.create!
DB.table_exists?(:que_jobs).should be true
end
it "should be able to clear t... |
c8918e5ee06c3f7ec84124ebfccddb738dca2bfb | test/python_api/default-constructor/sb_communication.py | test/python_api/default-constructor/sb_communication.py |
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
obj.AdoptFileDesriptor(0, False)
obj.AdoptFileDesriptor(1, False)
obj.AdoptFileDesript... |
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
obj.AdoptFileDesriptor(0, False)
obj.AdoptFileDesriptor(1, False)
obj.AdoptFileDesript... | Add a fuzz call for SBCommunication: obj.connect(None). | Add a fuzz call for SBCommunication: obj.connect(None).
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@146912 91177308-0d34-0410-b5e6-96231b3b80d8
| Python | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb | python | ## Code Before:
import sys
import lldb
def fuzz_obj(obj):
broadcaster = obj.GetBroadcaster()
# Do fuzz testing on the broadcaster obj, it should not crash lldb.
import sb_broadcaster
sb_broadcaster.fuzz_obj(broadcaster)
obj.AdoptFileDesriptor(0, False)
obj.AdoptFileDesriptor(1, False)
obj.... |
ddef37f7e6fc75b314fdf64ec74929f3e305390b | developer/js/tests/test-compile-trie.ts | developer/js/tests/test-compile-trie.ts | import LexicalModelCompiler from '../';
import {assert} from 'chai';
import 'mocha';
import {makePathToFixture, compileModelSourceCode} from './helpers';
describe('LexicalModelCompiler', function () {
describe('#generateLexicalModelCode', function () {
const MODEL_ID = 'example.qaa.trivial';
const PATH = m... | import LexicalModelCompiler from '../';
import {assert} from 'chai';
import 'mocha';
import {makePathToFixture, compileModelSourceCode} from './helpers';
describe('LexicalModelCompiler', function () {
describe('#generateLexicalModelCode', function () {
it('should compile a trivial word list', function () {
... | Test a UTF-16LE file compiles properly. | Test a UTF-16LE file compiles properly.
| TypeScript | apache-2.0 | tavultesoft/keymanweb,tavultesoft/keymanweb | typescript | ## Code Before:
import LexicalModelCompiler from '../';
import {assert} from 'chai';
import 'mocha';
import {makePathToFixture, compileModelSourceCode} from './helpers';
describe('LexicalModelCompiler', function () {
describe('#generateLexicalModelCode', function () {
const MODEL_ID = 'example.qaa.trivial';
... |
416bdc29aa6cf1ab764623f5f226e96e4b0ae081 | file-processing/ignore-script-comments/ignore-script-comments-commands.sh | file-processing/ignore-script-comments/ignore-script-comments-commands.sh | sed '/^[ ]*#/d' "${sourceFile}"
sed '/^[ ]*#/d' < "${sourceFile}"
grep -v '^[ ]*#' "${sourceFile}"
grep -v '^[ ]*#' < "${sourceFile}"
egrep -v '^[ ]*#' "${sourceFile}"
egrep -v '^[ ]*#' < "${sourceFile}"
awk '$0 !~ /^[ ]*#/ { print $0 }' "${sourceFile}"
awk '$0 !~ /^[ ]*#/ { print $0 }' < "${sourceFile}"
awk '{... | sed '/^[ ]*#/d' "${sourceFile}"
sed '/^[ ]*#/d' < "${sourceFile}"
grep -v '^[ ]*#' "${sourceFile}"
grep -v '^[ ]*#' < "${sourceFile}"
grep -v '^\\s*#' "${sourceFile}"
grep -v '^\\s*#' < "${sourceFile}"
egrep -v '^[ ]*#' "${sourceFile}"
egrep -v '^[ ]*#' < "${sourceFile}"
egrep -v '^\\s*#' "${sourceFile}"
egrep -v... | Add \s for space/tab variant in grep/egrep | Add \s for space/tab variant in grep/egrep
| Shell | mit | Sylvain-Bugat/linux-commands-reference,Sylvain-Bugat/linux-commands-reference | shell | ## Code Before:
sed '/^[ ]*#/d' "${sourceFile}"
sed '/^[ ]*#/d' < "${sourceFile}"
grep -v '^[ ]*#' "${sourceFile}"
grep -v '^[ ]*#' < "${sourceFile}"
egrep -v '^[ ]*#' "${sourceFile}"
egrep -v '^[ ]*#' < "${sourceFile}"
awk '$0 !~ /^[ ]*#/ { print $0 }' "${sourceFile}"
awk '$0 !~ /^[ ]*#/ { print $0 }' < "${sou... |
b0f7a0474f84b9ce7652c93d8e7821075f20b2df | config/deploy.rb | config/deploy.rb | require "bundler/capistrano"
set :deploy_via, :remote_cache
set :application, "devcon"
set :repository, "git://github.com/devcon-ph/devcon.git"
set :deploy_to, "/home/deploy/apps/devcon-release/"
set :scm, :git
set :branch, "release"
default_run_options[:pty] = true
default_run_options[:shell] = "/bin/bash --login"
... | require "bundler/capistrano"
set :deploy_via, :remote_cache
set :application, "devcon"
set :repository, "git://github.com/devcon-ph/devcon.git"
set :deploy_to, "/home/deploy/apps/devcon-release/"
set :scm, :git
set :branch, "release"
default_run_options[:pty] = true
default_run_options[:shell] = "/bin/bash --login"
... | Fix missing shared sockets folder | Fix missing shared sockets folder [ci skip]
| Ruby | mit | devcon-ph/devcon,devcon-ph/devcon,devcon-ph/devcon | ruby | ## Code Before:
require "bundler/capistrano"
set :deploy_via, :remote_cache
set :application, "devcon"
set :repository, "git://github.com/devcon-ph/devcon.git"
set :deploy_to, "/home/deploy/apps/devcon-release/"
set :scm, :git
set :branch, "release"
default_run_options[:pty] = true
default_run_options[:shell] = "/bi... |
27375ed871235c8f03a6f641201eea8400451bac | .github/workflows/main.yml | .github/workflows/main.yml | name: main
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
]
defaults:
run:
shell: msys2 {0}
steps:
... | name: main
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
]
steps:
- uses: actions/checkout@v2
with:
... | Move the checkout to C:/_ | CI: Move the checkout to C:/_
To (a) get more space and (b) reduce the path lengths
| YAML | bsd-3-clause | Ede123/MINGW-packages,Optiligence/MINGW-packages,JPeterMugaas/MINGW-packages,JPeterMugaas/MINGW-packages,stahta01/MINGW-packages,oroppas/MINGW-packages,lhmouse/MINGW-packages,mati865/MINGW-packages,Chocobo1/MINGW-packages,stahta01/MINGW-packages,oroppas/MINGW-packages,fabiangreffrath/MINGW-packages,RickLeaf/MINGW-packa... | yaml | ## Code Before:
name: main
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
]
defaults:
run:
shell: msys2 {0}... |
1bf81b51ad340d9b29c7d8f0593f2b911598fad3 | install.sh | install.sh |
function bootstrap {
mkdir -p ~/.vim/{backups,swaps,undo}
echo '" This is where your personal configuration goes.
" Whatever you write in here will override the default.
' > ~/.vim/config.vim
cd ~/.vim/
git clone https://github.com/umayr/vimrc.git runtime
}
function extended {
cd ~/.vim/runtime
echo 'set run... |
function bootstrap {
mkdir -p ~/.vim/{backups,swaps,undo}
echo '" This is where your personal configuration goes.
" Whatever you write in here will override the default.
' > ~/.vim/config.vim
cd ~/.vim/
git clone --recursive https://github.com/umayr/vimrc.git runtime
}
function extended {
cd ~/.vim/runtime
e... | Add --recursive flag to clone repo with sub-modules | Add --recursive flag to clone repo with sub-modules | Shell | mit | umayr/vimrc | shell | ## Code Before:
function bootstrap {
mkdir -p ~/.vim/{backups,swaps,undo}
echo '" This is where your personal configuration goes.
" Whatever you write in here will override the default.
' > ~/.vim/config.vim
cd ~/.vim/
git clone https://github.com/umayr/vimrc.git runtime
}
function extended {
cd ~/.vim/runtime... |
b21854fe55dd70c284570648a8c8fa431551c178 | src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java | src/test/java/by/triumgroup/recourse/supplier/entity/model/EntityIntegerPKSupplier.java | package by.triumgroup.recourse.supplier.entity.model;
import by.triumgroup.recourse.entity.model.BaseEntity;
import org.springframework.data.util.Pair;
public interface EntityIntegerPKSupplier<E extends BaseEntity<Integer>> extends EntitySupplier<E, Integer>{
@Override
default Integer getAnyId(){
retu... | package by.triumgroup.recourse.supplier.entity.model;
import by.triumgroup.recourse.entity.model.BaseEntity;
import org.springframework.data.util.Pair;
import java.util.Random;
public interface EntityIntegerPKSupplier<E extends BaseEntity<Integer>> extends EntitySupplier<E, Integer>{
@Override
default Intege... | Add random id generating for tests | Add random id generating for tests
| Java | mit | TriumGroup/ReCourse,TriumGroup/ReCourse,TriumGroup/ReCourse | java | ## Code Before:
package by.triumgroup.recourse.supplier.entity.model;
import by.triumgroup.recourse.entity.model.BaseEntity;
import org.springframework.data.util.Pair;
public interface EntityIntegerPKSupplier<E extends BaseEntity<Integer>> extends EntitySupplier<E, Integer>{
@Override
default Integer getAnyId... |
df41be792be5b5b44f75d3848bd01809a05eefd2 | README.md | README.md | tacopajen.se
===================
| [tacopajen.se](http://tacopajen.se)
===================
##### What is this?
[tacopajen.se](http://tacopajen.se) is a simple webpage by and for taco pie lovers to share the best taco pie recipe.
##### The code and the commit message look awfully!
Yeah, I know.. and I'm sorry for that but [tacopajen.se](http://tacopaje... | Update readme with some valid information | Update readme with some valid information
Updated the readme file with some relevant information about the project | Markdown | mit | tjoskar/tacopajen.se,tjoskar/tacopajen.se | markdown | ## Code Before:
tacopajen.se
===================
## Instruction:
Update readme with some valid information
Updated the readme file with some relevant information about the project
## Code After:
[tacopajen.se](http://tacopajen.se)
===================
##### What is this?
[tacopajen.se](http://tacopajen.se) is a simpl... |
10a345c82df463291a60957e160bdea87f729ffd | README.md | README.md |
* `bower install angular-chart-donut`
* `npm install angular-chart-donut`
```js
angular.module('mymodule', ['chart.donut']);
```
```html
<chart-donut data="modeldata" title="Percentage awesomeness" size="150"></chart-donut>
```
<img src="https://nervetattoo.github.io/angular-chart-donut/images/shot.png">
### Elemen... |
A simple donut chart for Angular built on d3
* `bower install angular-chart-donut`
* `npm install angular-chart-donut`
```js
angular.module('mymodule', ['chart.donut']);
```
```html
<chart-donut data="modeldata" title="Percentage awesomeness" size="150"></chart-donut>
```
<img src="https://nervetattoo.github.io/ang... | Add simple description to readme | Add simple description to readme
| Markdown | mit | nervetattoo/angular-chart-donut | markdown | ## Code Before:
* `bower install angular-chart-donut`
* `npm install angular-chart-donut`
```js
angular.module('mymodule', ['chart.donut']);
```
```html
<chart-donut data="modeldata" title="Percentage awesomeness" size="150"></chart-donut>
```
<img src="https://nervetattoo.github.io/angular-chart-donut/images/shot.p... |
89b7a6bd1f19405be5426d32ac55fdb718b8868c | test/powershell/Tee-Object.Tests.ps1 | test/powershell/Tee-Object.Tests.ps1 | Describe "Tee-Object" {
Context "Validate Tee-Object is correctly forking output" {
$testfile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath testfile.txt
It "Should return the output to the screen and to the variable" {
$teefile = $testfile
echo teeobjecttest1 | Tee-Ob... | Describe "Tee-Object" {
Context "Validate Tee-Object is correctly forking output" {
$testfile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath testfile.txt
It "Should return the output to the screen and to the variable" {
$teefile = $testfile
echo teeobjectte... | Add Unit Test For Tee-Object | Add Unit Test For Tee-Object
| PowerShell | mit | bingbing8/PowerShell,JamesWTruher/PowerShell-1,JamesWTruher/PowerShell-1,bmanikm/PowerShell,bmanikm/PowerShell,TravisEz13/PowerShell,daxian-dbw/PowerShell,bingbing8/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,PaulHigin/PowerShell,bingbing8/PowerShell,PaulHigin/Po... | powershell | ## Code Before:
Describe "Tee-Object" {
Context "Validate Tee-Object is correctly forking output" {
$testfile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath testfile.txt
It "Should return the output to the screen and to the variable" {
$teefile = $testfile
echo teeobje... |
12ccfab25a885a6c69685bb48dc783ecc358c86b | demo/router-components/echo.tsx | demo/router-components/echo.tsx | import app, { Component } from '../../index-jsx';
var model = 'world';
const Hello = ({name}) => <div>Hello: {name}</div>;
const view = (val) => {
return <div>
<Hello name={val}/>
<input value={val} oninput={function() { app.run('render', this.value)}}/>
</div>
};
const update = {
'#echo': (model, pus... | import app from '../../index-jsx';
var model = 'world';
const Hello = ({name}) => <div>Hello: {name}</div>;
const view = (val) => {
return <div>
<Hello name={val}/>
<input value={val} oninput={function() { app.run('render', this.value)}}/>
</div>
};
const update = {
'#echo': (model, pushState) => push... | Fix demo to use app.start instead of new Component | Fix demo to use app.start instead of new Component
| TypeScript | mit | yysun/apprun,yysun/apprun,yysun/apprun | typescript | ## Code Before:
import app, { Component } from '../../index-jsx';
var model = 'world';
const Hello = ({name}) => <div>Hello: {name}</div>;
const view = (val) => {
return <div>
<Hello name={val}/>
<input value={val} oninput={function() { app.run('render', this.value)}}/>
</div>
};
const update = {
'#ec... |
cdc4160c8aff31bdb7859285d021f5a122ed755d | docs/sample_code/MYINST/MYINST.h | docs/sample_code/MYINST/MYINST.h |
class MYINST : public Instrument {
public:
MYINST();
virtual ~MYINST();
virtual int init(double *, int);
virtual int configure();
virtual int run();
private:
void doupdate();
int _nargs, _inchan, _branch;
float _amp, _pan;
float *_in;
};
|
class MYINST : public Instrument {
public:
MYINST();
virtual ~MYINST();
virtual int init(double *, int);
virtual int configure();
virtual int run();
private:
void doupdate();
float *_in;
int _nargs, _inchan, _branch;
float _amp, _pan;
};
| Change order of declarations to suppress compiler warning. | Change order of declarations to suppress compiler warning.
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix | c | ## Code Before:
class MYINST : public Instrument {
public:
MYINST();
virtual ~MYINST();
virtual int init(double *, int);
virtual int configure();
virtual int run();
private:
void doupdate();
int _nargs, _inchan, _branch;
float _amp, _pan;
float *_in;
};
## Instruction:
Change order of declarations to sup... |
762d803b88da17766b8f0347f0dd6b09cab8160f | modules/analyse/src/main/TimeChart.scala | modules/analyse/src/main/TimeChart.scala | package lila.analyse
import scala.concurrent.Future
import chess.Color
import play.api.libs.json.Json
import lila.game.{ Game, Namer }
final class TimeChart(game: Game, moves: List[String]) {
private val pgnMoves = moves.toIndexedSeq
def series = Json stringify {
Json.obj(
"white" -> points(true),
... | package lila.analyse
import scala.concurrent.Future
import chess.Color
import play.api.libs.json.Json
import lila.game.{ Game, Namer }
final class TimeChart(game: Game, moves: List[String]) {
private val pgnMoves = moves.toIndexedSeq
def series = Json stringify {
Json.obj(
"white" -> points(true),
... | Fix move numbering in timeChart | Fix move numbering in timeChart
| Scala | agpl-3.0 | r0k3/lila,pawank/lila,TangentialAlan/lila,r0k3/lila,pawank/lila,bjhaid/lila,Happy0/lila,TangentialAlan/lila,Unihedro/lila,pavelo65/lila,elioair/lila,clarkerubber/lila,Unihedro/lila,ccampo133/lila,clarkerubber/lila,arex1337/lila,pavelo65/lila,r0k3/lila,terokinnunen/lila,systemovich/lila,clarkerubber/lila,pawank/lila,sys... | scala | ## Code Before:
package lila.analyse
import scala.concurrent.Future
import chess.Color
import play.api.libs.json.Json
import lila.game.{ Game, Namer }
final class TimeChart(game: Game, moves: List[String]) {
private val pgnMoves = moves.toIndexedSeq
def series = Json stringify {
Json.obj(
"white" ->... |
69b2da9f8eab86b0e4bad789edcea0332e6d692b | requirements-dev.txt | requirements-dev.txt | pytest>=2.7.0,<=3.0.7
mock>=1.0.1
tox>=1.9.2
behave>=1.2.4
pexpect==3.3
pre-commit>=1.16.0
coverage==4.3.4
codecov>=1.5.1
docutils>=0.13.1
autopep8==1.3.3
click==6.7
twine==1.11.0
| pytest>=2.7.0,<=3.0.7
mock>=1.0.1
tox>=1.9.2
behave>=1.2.4
pexpect==3.3
pre-commit>=1.16.0
coverage==4.3.4
codecov>=1.5.1
docutils>=0.13.1
autopep8==1.3.3
click==6.7
twine==1.11.0
wheel==0.33.6
| Add wheel to dev reqs (needed to release). | Add wheel to dev reqs (needed to release).
| Text | bsd-3-clause | dbcli/pgcli,dbcli/pgcli | text | ## Code Before:
pytest>=2.7.0,<=3.0.7
mock>=1.0.1
tox>=1.9.2
behave>=1.2.4
pexpect==3.3
pre-commit>=1.16.0
coverage==4.3.4
codecov>=1.5.1
docutils>=0.13.1
autopep8==1.3.3
click==6.7
twine==1.11.0
## Instruction:
Add wheel to dev reqs (needed to release).
## Code After:
pytest>=2.7.0,<=3.0.7
mock>=1.0.1
tox>=1.9.2
beh... |
355286252d8fedb670da44dac191414d7a7e837e | about/index.html | about/index.html | ---
layout: default
title: About
---
<article class="page container">
{% include intro.html %}
<section class="post-list">
<div class="container">
<ul class="project">
<li>
<a href="http://dx.doi.org/10.14279/depositonce-4310"><img width="150px" src="../assets/icons/thesis.png"/>
... | ---
layout: default
title: About
permalink: /about/
---
<article class="page container">
{% include intro.html %}
<section class="post-list">
<div class="container">
<ul class="project">
<li>
<a href="http://dx.doi.org/10.14279/depositonce-4310"><img width="150px" src="../assets/icons... | Set permalink name for about | Set permalink name for about
| HTML | mit | hagenw/hagenw.github.io,hagenw/hagenw.github.io | html | ## Code Before:
---
layout: default
title: About
---
<article class="page container">
{% include intro.html %}
<section class="post-list">
<div class="container">
<ul class="project">
<li>
<a href="http://dx.doi.org/10.14279/depositonce-4310"><img width="150px" src="../assets/icons/th... |
babfc82613508e619e5debf044e68eaeae03ba11 | lib/node_modules/@stdlib/math/base/dist/degenerate/logcdf/lib/logcdf.js | lib/node_modules/@stdlib/math/base/dist/degenerate/logcdf/lib/logcdf.js | 'use strict';
// MODULES //
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
// MAIN //
/**
* Evaluates the logarithm of the cumulative distribution function (CDF) for a degenerate distribution with a point mass at `mu`.
*
* @param {number} x - i... | 'use strict';
// MODULES //
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
// MAIN //
/**
* Evaluates the natural logarithm of the cumulative distribution function (logCDF) for a degenerate distribution with mean `mu`.
*
* @param {number} x - i... | Fix return type and add decimal points | Fix return type and add decimal points
| JavaScript | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | javascript | ## Code Before:
'use strict';
// MODULES //
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
// MAIN //
/**
* Evaluates the logarithm of the cumulative distribution function (CDF) for a degenerate distribution with a point mass at `mu`.
*
* @para... |
b9a8ad6ade66070f022f9b808df08cc9ff8d8ab2 | 05-ext/CMakeLists.txt | 05-ext/CMakeLists.txt | cmake_minimum_required(VERSION 3.5)
project(main)
include(ExternalProject)
ExternalProject_Add(fooProject
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext
)
ExternalProject_Get_Property(fooProject install_dir)
message("fooProject install_dir=${install_dir}")
... | cmake_minimum_required(VERSION 3.5)
project(main)
include(ExternalProject)
ExternalProject_Add(fooProject
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext
)
ExternalProject_Get_Property(fooProject install_dir)
ExternalProject_Get_Property(fooProject source_dir... | Fix the cmake include directory | Fix the cmake include directory
Signed-off-by: Francis Giraldeau <77d47d63cdc62b1abf82e61d5db643cf34b1cc3a@gmail.com>
| Text | mit | giraldeau/cmake-tutorial,giraldeau/cmake-tutorial | text | ## Code Before:
cmake_minimum_required(VERSION 3.5)
project(main)
include(ExternalProject)
ExternalProject_Add(fooProject
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext
)
ExternalProject_Get_Property(fooProject install_dir)
message("fooProject install_dir=${... |
6149b251296bac9e26bd81763cbf8379a743e3b5 | DEVELOPER.md | DEVELOPER.md |
1. Google HTML CSS Style Guide (https://google.github.io/styleguide/htmlcssguide.xml)
2.
...to be continue... |
1. Google HTML CSS Style Guide (https://google.github.io/styleguide/htmlcssguide.xml)
2.
Coding Style Guide
- Don't add the hard code style if it can be done by CSS.
...to be continue... | Update the coding style guide | Update the coding style guide
| Markdown | mit | GoEngin/GoEngin,GoEngin/GoEngin,GoEngin/GoEngin | markdown | ## Code Before:
1. Google HTML CSS Style Guide (https://google.github.io/styleguide/htmlcssguide.xml)
2.
...to be continue...
## Instruction:
Update the coding style guide
## Code After:
1. Google HTML CSS Style Guide (https://google.github.io/styleguide/htmlcssguide.xml)
2.
Coding Style Guide
- Don't add the ha... |
a08294c731f9bd190786911830cc636f00b2af7d | console/kubernetes/darzee-service.yml | console/kubernetes/darzee-service.yml | apiVersion: apps/v1
kind: Service
metadata:
labels:
app: darzee
name: darzee-svc
spec:
type: LoadBalancer
ports:
# NOTE: Exposting ports
- port: 8080
targetPort: 8080
- port: 9090
targetPort: 9090
selector:
app: darzee
sessionAffinity: None
| apiVersion: v1
kind: Service
metadata:
labels:
app: darzee
name: darzee-svc
spec:
type: LoadBalancer
ports:
# NOTE: Exposting ports
- port: 8080
name: nodejs-server-port
targetPort: 8080
- port: 9090
name: prometheus-port
targetPort: 9090
selector:
app: darzee
ses... | Add name to ports. Fix API version. | Add name to ports. Fix API version.
| YAML | mit | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | yaml | ## Code Before:
apiVersion: apps/v1
kind: Service
metadata:
labels:
app: darzee
name: darzee-svc
spec:
type: LoadBalancer
ports:
# NOTE: Exposting ports
- port: 8080
targetPort: 8080
- port: 9090
targetPort: 9090
selector:
app: darzee
sessionAffinity: None
## Instruction:
Ad... |
1bac0ee98dc7150e51dd699da52f741924c09abb | .dotfiles/env.sh | .dotfiles/env.sh | export PATH=$PATH:/mingw64/bin
export PATH=/cmd:$PATH
export TERM=cygwin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH="$PATH:$HOME/npm/bin"
export PATH="$PATH:$HOME/npm"
. ~/.dotfiles/env/docker.sh
. ~/.dotfiles/env/git-ssh-forwarding.sh
. ~/.dotfiles/env/git.sh
| export PATH=$PATH:/mingw64/bin
export PATH=/cmd:$PATH
export TERM=cygwin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH="$PATH:$HOME/npm/bin"
export PATH="$PATH:$HOME/npm"
export ANDROID_HOME="$LOCALAPPDATA/Android/Sdk"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
. ~/.dotfiles/env/docker.sh
. ~/... | Add android tools support - for react-native tools | Add android tools support - for react-native tools
| Shell | mit | micnigh/windows-dotfiles | shell | ## Code Before:
export PATH=$PATH:/mingw64/bin
export PATH=/cmd:$PATH
export TERM=cygwin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH="$PATH:$HOME/npm/bin"
export PATH="$PATH:$HOME/npm"
. ~/.dotfiles/env/docker.sh
. ~/.dotfiles/env/git-ssh-forwarding.sh
. ~/.dotfiles/env/git.sh
## Instruction:
Add... |
c6f913f5c74c54ec839cf78ca6d42112246617af | docs/source/releases/v1.1.rst | docs/source/releases/v1.1.rst | ===========================================
Oscar 1.1 release notes - UNDER DEVELOPMENT
===========================================
:release: TBD
.. warning::
Since v1.1 has not been released yet, these release notes are still a work-in-progress.
Welcome to Oscar 1.1!
Table of contents:
.. contents::
:local... | ===========================================
Oscar 1.1 release notes - UNDER DEVELOPMENT
===========================================
:release: TBD
.. warning::
Since v1.1 has not been released yet, these release notes are still a work-in-progress.
Welcome to Oscar 1.1!
Table of contents:
.. contents::
:local... | Update release note for change to shipping method | Update release note for change to shipping method
| reStructuredText | bsd-3-clause | pasqualguerrero/django-oscar,WillisXChen/django-oscar,spartonia/django-oscar,adamend/django-oscar,thechampanurag/django-oscar,sasha0/django-oscar,john-parton/django-oscar,bnprk/django-oscar,nickpack/django-oscar,binarydud/django-oscar,MatthewWilkes/django-oscar,ademuk/django-oscar,sonofatailor/django-oscar,jlmadurga/dj... | restructuredtext | ## Code Before:
===========================================
Oscar 1.1 release notes - UNDER DEVELOPMENT
===========================================
:release: TBD
.. warning::
Since v1.1 has not been released yet, these release notes are still a work-in-progress.
Welcome to Oscar 1.1!
Table of contents:
.. conte... |
190a71eed1e158ad61b44f8f7c51b764f52264fe | src/js/plugins/bandcamp.js | src/js/plugins/bandcamp.js | "use strict";
var $ = require("jquery");
var Plugin = require("../modules/Plugin");
var Utils = require("../modules/Utilities");
var bandcamp = Object.create(Plugin);
bandcamp.init("bandcamp", "Bandcamp");
bandcamp.scrape = function () {
var discover, info, isTrack, pageTitle;
discover = window.... | "use strict";
var $ = require("jquery");
var Plugin = require("../modules/Plugin");
var Utils = require("../modules/Utilities");
var bandcamp = Object.create(Plugin);
bandcamp.init("bandcamp", "Bandcamp");
bandcamp.scrape = function () {
var discover, info, isTrack, isAlbum, pageTitle;
discover ... | Add album support, fix Discover detection | Add album support, fix Discover detection
| JavaScript | mit | m9x/np2file,nsue/scroblr,nwalker/scroblr,Nicholi/scroblr,Amir-Saeed/scroblr,Nicholi/scroblr,nsue/scroblr,m9x/np2file,mziyut/scroblr,cgravolet/scroblr,Amir-Saeed/scroblr,cgravolet/scroblr,nwalker/scroblr,bdukes/scroblr,mziyut/scroblr,bdukes/scroblr | javascript | ## Code Before:
"use strict";
var $ = require("jquery");
var Plugin = require("../modules/Plugin");
var Utils = require("../modules/Utilities");
var bandcamp = Object.create(Plugin);
bandcamp.init("bandcamp", "Bandcamp");
bandcamp.scrape = function () {
var discover, info, isTrack, pageTitle;
di... |
4870b09309293fb053f743068f603747177088eb | org.metaborg.spoofax.core/src/main/java/org/metaborg/spoofax/core/messages/ISourceRegion.java | org.metaborg.spoofax.core/src/main/java/org/metaborg/spoofax/core/messages/ISourceRegion.java | package org.metaborg.spoofax.core.messages;
public interface ISourceRegion {
public int startOffset();
public int startRow();
public int startColumn();
public int endOffset();
public int endRow();
public int endColumn();
}
| package org.metaborg.spoofax.core.messages;
/**
* Interface for representing a finite region in source code text. A region has:
* <ul>
* <li>Offset - number of characters from the beginning of the source text, with interval [0,#chars).</li>
* <li>Row - row or line in the source text, with interval [0,#rows).</li>
... | Clarify intervals of source region. | Clarify intervals of source region.
| Java | apache-2.0 | metaborg/spoofax-eclipse,metaborg/spoofax,metaborg/spoofax,metaborg/spoofax,metaborg/spoofax | java | ## Code Before:
package org.metaborg.spoofax.core.messages;
public interface ISourceRegion {
public int startOffset();
public int startRow();
public int startColumn();
public int endOffset();
public int endRow();
public int endColumn();
}
## Instruction:
Clarify intervals of sourc... |
cdc915a97a99f28332e24c4b1cac9a4c87466233 | README.md | README.md |
Query the host networking when working in a Docker environment on Rackspace
```
$ docker run --net=host racknet/ip public
104.130.0.127
```
```
$ docker run --net=host racknet/ip service
10.184.13.252
```
## Usage
```
racknet public [ipv4|ipv6]
racknet service [ipv4|ipv6]
Examples:
$ racknet public
... |
Query the host networking when working in a Docker environment on Rackspace
```
$ docker run --net=host --rm racknet/ip public
104.130.0.127
```
```
$ docker run --net=host --rm racknet/ip service
10.184.13.252
```
## Usage
```
racknet public [ipv4|ipv6]
racknet service [ipv4|ipv6]
Examples:
$ racknet p... | Add --rm flag, courtesy decaturdev | Add --rm flag, courtesy decaturdev | Markdown | apache-2.0 | rgbkrk/docker-rackspace-net | markdown | ## Code Before:
Query the host networking when working in a Docker environment on Rackspace
```
$ docker run --net=host racknet/ip public
104.130.0.127
```
```
$ docker run --net=host racknet/ip service
10.184.13.252
```
## Usage
```
racknet public [ipv4|ipv6]
racknet service [ipv4|ipv6]
Examples:
$ rac... |
1e22a392f818a5b309342500b5a7f81fa063ff3b | cp-content-shell.sh | cp-content-shell.sh | rm -rf ~/content-shell
rm -f ~/content-shell.tar.gz
mkdir ~/content-shell
cd ~/src/out/Default
cp icudtl.dat ~/content-shell
cp *.bin ~/content-shell
cp *.pak ~/content-shell
cp *.so ~/content-shell
cp content_shell ~/content-shell
cd ~
tar -zvcf content-shell.tar.gz content-shell
| rm -rf ~/content-shell
rm -f ~/content-shell.tar.gz
mkdir ~/content-shell
cd ~/src/out/Default
cp icudtl.dat ~/content-shell
cp *.bin ~/content-shell
cp *.pak ~/content-shell
cp *.so ~/content-shell
cp content_shell ~/content-shell
cp chrome ~/content-shell
cp -r locales ~/content-shell
cp -r resources ~/content-shell
... | Add needed files for chrome binary | Add needed files for chrome binary
| Shell | mit | bjwbell/ironframe,bjwbell/ironframe,bjwbell/ironframe,bjwbell/ironframe,bjwbell/ironframe | shell | ## Code Before:
rm -rf ~/content-shell
rm -f ~/content-shell.tar.gz
mkdir ~/content-shell
cd ~/src/out/Default
cp icudtl.dat ~/content-shell
cp *.bin ~/content-shell
cp *.pak ~/content-shell
cp *.so ~/content-shell
cp content_shell ~/content-shell
cd ~
tar -zvcf content-shell.tar.gz content-shell
## Instruction:
Add n... |
8f1c475347ca637417ede6b573a81aa4e8145c0b | .travis.yml | .travis.yml | language: generic
services:
- docker
cache:
directories:
- $HOME/.ccache
env:
global:
- CCACHE_DIR=$HOME/.ccache
matrix:
- ROS_DISTRO="kinetic" ROS_REPO=ros UPSTREAM_WORKSPACE=file CATKIN_LINT=true
- ROS_DISTRO="melodic" ROS_REPO=ros UPSTREAM_WORKSPACE=file CATKIN_LINT=true
- ROS_DISTRO="k... | language: generic
services:
- docker
cache:
directories:
- $HOME/.ccache
env:
global:
- CCACHE_DIR=$HOME/.ccache
matrix:
- ROS_DISTRO="kinetic" ROS_REPO=ros UPSTREAM_WORKSPACE=file
- ROS_DISTRO="melodic" ROS_REPO=ros UPSTREAM_WORKSPACE=file
- ROS_DISTRO="kinetic" CLANG_FORMAT_CHECK=file CL... | Revert "explicitly add catkin_lint to the ci pipeline" | Revert "explicitly add catkin_lint to the ci pipeline"
This reverts commit 3108a45a6ea3fa81533e7e50f62d3b1bfdc8f864.
| YAML | apache-2.0 | UniversalRobots/Universal_Robots_Client_Library,UniversalRobots/Universal_Robots_Client_Library | yaml | ## Code Before:
language: generic
services:
- docker
cache:
directories:
- $HOME/.ccache
env:
global:
- CCACHE_DIR=$HOME/.ccache
matrix:
- ROS_DISTRO="kinetic" ROS_REPO=ros UPSTREAM_WORKSPACE=file CATKIN_LINT=true
- ROS_DISTRO="melodic" ROS_REPO=ros UPSTREAM_WORKSPACE=file CATKIN_LINT=true
... |
b064a09395534c553a385fb81ca7548359747ba1 | tools/Setup.hx | tools/Setup.hx | import com.haxepunk.utils.HaxelibInfo;
class Setup
{
public static function setup()
{
installDependencies();
Sys.command('haxelib run $OPENFL setup');
}
public static function update()
{
Sys.command("haxelib update HaxePunk");
installDependencies();
}
public static function installDependencies()
{
... | import com.haxepunk.utils.HaxelibInfo;
class Setup
{
public static function setup()
{
installDependencies();
Sys.command("haxelib", ["run", OPENFL, "setup"]);
}
public static function update()
{
Sys.command("haxelib" ["update", "HaxePunk"]);
installDependencies();
}
public static function installDepen... | Fix command call in setup tool | Fix command call in setup tool | Haxe | mit | scriptorum/HaxePunk,wselken/HaxePunk,scriptorum/HaxePunk,HaxePunk/HaxePunk,MattTuttle/HaxePunk | haxe | ## Code Before:
import com.haxepunk.utils.HaxelibInfo;
class Setup
{
public static function setup()
{
installDependencies();
Sys.command('haxelib run $OPENFL setup');
}
public static function update()
{
Sys.command("haxelib update HaxePunk");
installDependencies();
}
public static function installDepe... |
8658ce434085f0262a2e3e72e7014ac8c459c180 | HISTORY.md | HISTORY.md | 3.2.0 / unreleased
==================
* new: Ukrainian support
3.1.0 / 2015-06-25
==================
* new: Greek support
3.0.0 / 2015-05-29
==================
* new: `largest` option to get largest units
* update: languages can change decimal point (which can be overridden)
* update: fix some unintuitive `round`... | 3.2.0 / 2015-07-15
==================
* new: Ukrainian support
* fix: things would break in global strict mode
3.1.0 / 2015-06-25
==================
* new: Greek support
3.0.0 / 2015-05-29
==================
* new: `largest` option to get largest units
* update: languages can change decimal point (which can be o... | Update changelog in preparation for 3.2.0 release | Update changelog in preparation for 3.2.0 release
| Markdown | unlicense | EvanHahn/HumanizeDuration.js,smnbbrv/HumanizeDuration.js,TioNoob/HumanizeDuration.js | markdown | ## Code Before:
3.2.0 / unreleased
==================
* new: Ukrainian support
3.1.0 / 2015-06-25
==================
* new: Greek support
3.0.0 / 2015-05-29
==================
* new: `largest` option to get largest units
* update: languages can change decimal point (which can be overridden)
* update: fix some uni... |
eee0f7795d1da18931b27b15abcf17287b02b3af | _data/messages.yaml | _data/messages.yaml | - content: Everything up and running
status: green
timestamp: 2015-04-09 12:00 +0200
| - content: This is a test of rss feed hooks
status: green
timestamp: 2015-04-09 17:40 +0200
- content: Everything up and running
status: green
timestamp: 2015-04-09 12:00 +0200
| Add rss feed test message | Add rss feed test message
| YAML | mit | frigg/status.frigg.io | yaml | ## Code Before:
- content: Everything up and running
status: green
timestamp: 2015-04-09 12:00 +0200
## Instruction:
Add rss feed test message
## Code After:
- content: This is a test of rss feed hooks
status: green
timestamp: 2015-04-09 17:40 +0200
- content: Everything up and running
status: green
time... |
f319b5ed12e04827aeed9d72d225eb227e948328 | README.md | README.md | DevOps/DX for Linux. Continuous integration snippets and common tasks.
* [ ] Adding automatic build to Linux projects through Travis - [](https://travis-ci.org/yakshaveinc/linux)
* [ ] Adding build status indicators to your development dashboard
---
* [ ] ... | Linux DevOps snippets, recipes and services.
#### Elements
* [x] GitHub (https://github.com/yakshaveinc/linux)
* [x] Travis CI (https://travis-ci.org/yakshaveinc/linux)
#### Ops
* [x] Adding automatic builds to Linux projects through Travis - [](https://... | Add DockerHub to the list of services | Add DockerHub to the list of services | Markdown | unlicense | yakshaveinc/linux | markdown | ## Code Before:
DevOps/DX for Linux. Continuous integration snippets and common tasks.
* [ ] Adding automatic build to Linux projects through Travis - [](https://travis-ci.org/yakshaveinc/linux)
* [ ] Adding build status indicators to your development dashb... |
329ab24aed5a9848e98d6a504ad8b2997142c23b | lib/main.js | lib/main.js | var buffer = require("./buffer");
/**
* @namespace Splat
*/
module.exports = {
makeBuffer: buffer.makeBuffer,
flipBufferHorizontally: buffer.flipBufferHorizontally,
flipBufferVertically: buffer.flipBufferVertically,
ads: require("./ads"),
AStar: require("./astar"),
BinaryHeap: require("./binary-heap"),
... | var buffer = require("./buffer");
/**
* @namespace Splat
*/
module.exports = {
makeBuffer: buffer.makeBuffer,
flipBufferHorizontally: buffer.flipBufferHorizontally,
flipBufferVertically: buffer.flipBufferVertically,
ads: require("./ads"),
AStar: require("./astar"),
BinaryHeap: require("./binary-heap"),
... | Remove big export of components | Remove big export of components
| JavaScript | mit | SplatJS/splat-ecs | javascript | ## Code Before:
var buffer = require("./buffer");
/**
* @namespace Splat
*/
module.exports = {
makeBuffer: buffer.makeBuffer,
flipBufferHorizontally: buffer.flipBufferHorizontally,
flipBufferVertically: buffer.flipBufferVertically,
ads: require("./ads"),
AStar: require("./astar"),
BinaryHeap: require(".... |
d312446805ee548188bcdf423a854b5a780f8749 | .travis.yml | .travis.yml | language: csharp
dist: trusty
dotnet: 1.0.1
mono: none
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
script:
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./build.sh
| language: csharp
dist: trusty
dotnet: 1.0.1
mono: none
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
script:
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./build.sh
cache:
directories:
- $HOME/.nuget/packages
| Add NuGet package caching to Travis script | Add NuGet package caching to Travis script | YAML | mit | ErikSchierboom/xcsharp,GKotfis/csharp,robkeim/xcsharp,robkeim/xcsharp,GKotfis/csharp,exercism/xcsharp,exercism/xcsharp,ErikSchierboom/xcsharp | yaml | ## Code Before:
language: csharp
dist: trusty
dotnet: 1.0.1
mono: none
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
script:
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./build.sh
## Instruction:
Add NuGet package caching to Travis script
## Code After:
lan... |
7b57656633836b48a0565a2559a9c3709d93ce5b | composer.json | composer.json | {
"name": "tomkyle/database-servicelocator",
"replace": {"tomkyle/databases": "self.version"},
"type": "library",
"description": "A nifty Database ServiceLocator, Pimple-style",
"keywords": ["dependency injection", "database", "service locator", "mysql", "aura", "sql"],
"licen... | {
"name": "tomkyle/databases",
"replace": {"tomkyle/databases": "self.version"},
"type": "library",
"description": "A nifty Database ServiceLocator, Pimple-style",
"keywords": ["dependency injection", "database", "service locator", "mysql", "aura", "sql"],
"license": "MIT",
... | Update with 'new old' package name… | Update with 'new old' package name… | JSON | mit | tomkyle/Databases | json | ## Code Before:
{
"name": "tomkyle/database-servicelocator",
"replace": {"tomkyle/databases": "self.version"},
"type": "library",
"description": "A nifty Database ServiceLocator, Pimple-style",
"keywords": ["dependency injection", "database", "service locator", "mysql", "aura", "sq... |
24faff8b034a8d57a9e67249dbf182c2c1c8ca9c | .github/workflows/build_msw_xml_libs.yml | .github/workflows/build_msw_xml_libs.yml | name: XML MSW binaries
on:
workflow_dispatch:
jobs:
build-xml-libs:
name: Build XML binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Compiler
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-i... | name: XML MSW binaries
on:
workflow_dispatch:
jobs:
build-xml-libs:
name: Build XML binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Compiler
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-i... | Fix wrong script name used in the workflow file | Fix wrong script name used in the workflow file
| YAML | bsd-3-clause | vslavik/xmlwrapp,vslavik/xmlwrapp,vslavik/xmlwrapp | yaml | ## Code Before:
name: XML MSW binaries
on:
workflow_dispatch:
jobs:
build-xml-libs:
name: Build XML binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Compiler
run: |
sudo apt-get update -qq
sudo apt-get in... |
8d1929c2b56630889e64a8671ac635633a015632 | README.rst | README.rst | Swoopi
======
.. image:: https://img.shields.io/travis/swoopi/swoopi/master.svg?maxAge=3600?style=flat-square :target: https://travis-ci.org/swoopi/swoopi
.. image:: https://img.shields.io/coveralls/swoopi/swoopi/master.svg?maxAge=3600?style=flat-square :target: https://coveralls.io/github/swoopi/swoopi?branch=mas... | Swoopi
======
|Travis|_ |Coveralls|_
Camera interactions for the Raspberry Pi.
.. |Travis| image:: https://img.shields.io/travis/swoopi/swoopi/master.svg?maxAge=3600?style=flat-square
.. _Travis: https://travis-ci.org/swoopi/swoopi
.. |Coveralls| image:: https://img.shields.io/coveralls/swoopi/swoopi/master.svg?max... | Change shields to rst references | Change shields to rst references
| reStructuredText | apache-2.0 | swoopi/swoopi,YouLookFamiliar/swoop | restructuredtext | ## Code Before:
Swoopi
======
.. image:: https://img.shields.io/travis/swoopi/swoopi/master.svg?maxAge=3600?style=flat-square :target: https://travis-ci.org/swoopi/swoopi
.. image:: https://img.shields.io/coveralls/swoopi/swoopi/master.svg?maxAge=3600?style=flat-square :target: https://coveralls.io/github/swoopi/s... |
02b60cc05265429b90ac7289086661a7d8bd7814 | pac_script.js | pac_script.js | var BOARD_HEIGHT = 288;
var BOARD_WIDTH = 224;
var VERT_TILES = BOARD_HEIGHT / 8;
var HORIZ_TILES = BOARD_WIDTH / 8;
gameBoard = new Array(VERT_TILES);
for(var y = 0; y < VERT_TILES; y++) {
gameBoard[y] = new Array(HORIZ_TILES);
for(var x = 0; x < HORIZ_TILES; x++) {
gameBoard[y][x] = 0;
}
}
var canvas, con... | var BOARD_HEIGHT = 288;
var BOARD_WIDTH = 224;
var VERT_TILES = BOARD_HEIGHT / 8;
var HORIZ_TILES = BOARD_WIDTH / 8;
gameBoard = new Array(VERT_TILES);
for(var y = 0; y < VERT_TILES; y++) {
gameBoard[y] = new Array(HORIZ_TILES);
for(var x = 0; x < HORIZ_TILES; x++) {
gameBoard[y][x] = "";
}
}
var canvas, co... | Add drawObject function to draw matrix of pixels | Add drawObject function to draw matrix of pixels
| JavaScript | mit | peternatewood/pac-man-replica,peternatewood/pac-man-replica | javascript | ## Code Before:
var BOARD_HEIGHT = 288;
var BOARD_WIDTH = 224;
var VERT_TILES = BOARD_HEIGHT / 8;
var HORIZ_TILES = BOARD_WIDTH / 8;
gameBoard = new Array(VERT_TILES);
for(var y = 0; y < VERT_TILES; y++) {
gameBoard[y] = new Array(HORIZ_TILES);
for(var x = 0; x < HORIZ_TILES; x++) {
gameBoard[y][x] = 0;
}
}
... |
9504529dd4b9140be0026d0b30a0e88e5dea5e25 | rtrss/config.py | rtrss/config.py | import os
import logging
import importlib
# All configuration defaults are set in this module
TRACKER_HOST = 'rutracker.org'
# Timeone for the tracker times
TZNAME = 'Europe/Moscow'
LOGLEVEL = logging.INFO
LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s'
LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(... | import os
import logging
import importlib
# All configuration defaults are set in this module
TRACKER_HOST = 'rutracker.org'
# Timeone for the tracker times
TZNAME = 'Europe/Moscow'
LOGLEVEL = logging.INFO
LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s'
LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(... | Add default IP and PORT | Add default IP and PORT
| Python | apache-2.0 | notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss | python | ## Code Before:
import os
import logging
import importlib
# All configuration defaults are set in this module
TRACKER_HOST = 'rutracker.org'
# Timeone for the tracker times
TZNAME = 'Europe/Moscow'
LOGLEVEL = logging.INFO
LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s'
LOG_FORMAT_BRIEF = '%(asctime)s ... |
c937f502cd1efcf01eb4b9fe899912c75dae08f7 | .appveyor.yml | .appveyor.yml | version: 2.0.{build}
# select image with MinGW-w64 available
image: Visual Studio 2013
clone_folder: c:\projects\sif
environment:
global:
PATH: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;C:\msys64\usr\bin;$(PATH)
CXX: g++
CC: gcc
GCOV: gcov
MAKE: make
install:
#... | version: 2.0.{build}
# select image with MinGW-w64 available
image: Visual Studio 2013
environment:
global:
PATH: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;C:\msys64\usr\bin;$(PATH)
CXX: g++
CC: gcc
GCOV: gcov
MAKE: make
install:
# show PATH env var
#- echo %P... | Remove clone folder setting from AppVeyor config | Remove clone folder setting from AppVeyor config
| YAML | mit | goriy/sif,goriy/sif | yaml | ## Code Before:
version: 2.0.{build}
# select image with MinGW-w64 available
image: Visual Studio 2013
clone_folder: c:\projects\sif
environment:
global:
PATH: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;C:\msys64\usr\bin;$(PATH)
CXX: g++
CC: gcc
GCOV: gcov
MAKE: ma... |
5d80a93196f1822f3688e0612fa6c73a7679235b | steer_bot_hardware_gazebo/config/joints.yaml | steer_bot_hardware_gazebo/config/joints.yaml | steer_bot_hardware_gazebo:
rear_wheel : 'base_to_wheel'
front_steer : 'base_to_steer'
virtual_rear_wheels : ['base_to_right_rear_wheel', 'base_to_left_rear_wheel']
virtual_front_wheels : ['base_to_right_front_wheel', 'base_to_left_front_wheel']
virtual_front_steers : ['base_to_right_front_steer', ... | steer_bot_hardware_gazebo:
rear_wheel : 'rear_wheel_joint'
front_steer : 'front_steer_joint'
virtual_rear_wheels : ['base_to_right_rear_wheel', 'base_to_left_rear_wheel']
virtual_front_wheels : ['base_to_right_front_wheel', 'base_to_left_front_wheel']
virtual_front_steers : ['base_to_right_front_s... | Update joint setting of steer_bot for new steer_drive configulation. | Update joint setting of steer_bot for new steer_drive configulation.
| YAML | mit | CIR-KIT/steer_drive_ros,CIR-KIT/steer_drive_ros | yaml | ## Code Before:
steer_bot_hardware_gazebo:
rear_wheel : 'base_to_wheel'
front_steer : 'base_to_steer'
virtual_rear_wheels : ['base_to_right_rear_wheel', 'base_to_left_rear_wheel']
virtual_front_wheels : ['base_to_right_front_wheel', 'base_to_left_front_wheel']
virtual_front_steers : ['base_to_righ... |
3b879db6b81844cdd64c4f3fb34814daa18bb68d | _source/_sass/_notices.scss | _source/_sass/_notices.scss | // NOTICES
// --------------------------------------------------
@mixin notice($notice-color) {
position: relative;
padding: 1.5em;
font-family: $alt-font;
@include font-size(14,39);
color: $white;
background-color: $notice-color;
border-radius: $border-radius;
}
.notice {
@include notice($primary-color);
}
.n... | // NOTICES
// --------------------------------------------------
@mixin notice($notice-color) {
position: relative;
padding: 1.5em;
font-family: $alt-font;
@include font-size(14,39);
color: $white;
background-color: $notice-color;
border-radius: $border-radius;
a {
color: $white;
border-bottom: 1px dotted ... | Fix link colors on notices | Fix link colors on notices
| SCSS | mit | BrianLusina/brianlusina.github.io,QBayLogic/qbaylogic.com,ucuptimposu/ucuptimposu.github.io,hootnot/skinny-bones-jekyll,dgrtwo/rgallery-default,tzandrki/tzandrki.github.io,Shinobi881/skinny-bones-jekyll,CmdrKerfy/old_ind-volcanoes,dgrtwo/broom-gallery,tobbio/tobbio.github.io,frassati-new-haven/frassati-new-haven.github... | scss | ## Code Before:
// NOTICES
// --------------------------------------------------
@mixin notice($notice-color) {
position: relative;
padding: 1.5em;
font-family: $alt-font;
@include font-size(14,39);
color: $white;
background-color: $notice-color;
border-radius: $border-radius;
}
.notice {
@include notice($prim... |
d3fd194c82b2d8f701b52d67a95a54bb622eaa53 | multeval.sh | multeval.sh | set -eo pipefail
version=0.1
scriptDir=$(dirname $0)
$scriptDir/get_deps.sh
java -XX:+UseCompressedOops -Xmx2g -cp $scriptDir/lib/tercom-0.7.26.jar:$scriptDir/lib/meteor-1.2/meteor-1.2.jar:$scriptDir/multeval-${version}.jar multeval.MultEval $@
| set -eo pipefail
version=0.1
scriptDir=$(dirname $0)
$scriptDir/get_deps.sh
# Specify -Dfile.encoding so that the meteor paraphrase tables load properly
java -Dfile.encoding=UTF8 -XX:+UseCompressedOops -Xmx2g \
-cp $scriptDir/lib/tercom-0.7.26.jar:$scriptDir/lib/meteor-1.2/meteor-1.2.jar:$scriptDir/multeval-${ver... | Use file.encoding to fix loading meteor paraphrase tables | Use file.encoding to fix loading meteor paraphrase tables
| Shell | mpl-2.0 | jhclark/multeval,jhclark/multeval,jhclark/multeval,jhclark/multeval | shell | ## Code Before:
set -eo pipefail
version=0.1
scriptDir=$(dirname $0)
$scriptDir/get_deps.sh
java -XX:+UseCompressedOops -Xmx2g -cp $scriptDir/lib/tercom-0.7.26.jar:$scriptDir/lib/meteor-1.2/meteor-1.2.jar:$scriptDir/multeval-${version}.jar multeval.MultEval $@
## Instruction:
Use file.encoding to fix loading meteor p... |
06a9c42fb2163156ff2147fccc88bb73db08e76b | exports.js | exports.js | // Matching the public exports in husl-colors/husl
module['exports'] = {};
module['exports']["fromRGB"] = husl.Husl.rgbToHusl;
module['exports']["fromHex"] = husl.Husl.hexToHusl;
module['exports']["toRGB"] = husl.Husl.huslToRgb;
module['exports']["toHex"] = husl.Husl.huslToHex;
module['exports']['p'] = {};
module['expo... | // Matching the public exports in husl-colors/husl
function expandParams(f) {
return function(c1, c2, c3) {
return f([c1, c2, c3])
}
}
module['exports'] = {};
module['exports']["fromRGB"] = expandParams(husl.Husl.rgbToHusl);
module['exports']["fromHex"] = husl.Husl.hexToHusl;
module['exports']["toRGB"] = expandPara... | Add adaptor for multiple argument functions | Add adaptor for multiple argument functions
| JavaScript | mit | hsluv/hsluv,hsluv/hsluv | javascript | ## Code Before:
// Matching the public exports in husl-colors/husl
module['exports'] = {};
module['exports']["fromRGB"] = husl.Husl.rgbToHusl;
module['exports']["fromHex"] = husl.Husl.hexToHusl;
module['exports']["toRGB"] = husl.Husl.huslToRgb;
module['exports']["toHex"] = husl.Husl.huslToHex;
module['exports']['p'] = ... |
5acad5c62ec204c5a190bb3f5b2516153b4869b1 | .travis.yml | .travis.yml | node_js:
- "6"
- "7"
- "8"
- "9"
language: node_js
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
before_script:
- curl http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz | sudo tar -C /usr/local/bin/ -xvz
| node_js:
- "6"
- "7"
- "8"
- "9"
language: node_js
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
before_script:
- curl https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz | sudo tar -C /usr/local/bin/ -xvJ
| Fix FFMPEG download URL for tests | :green_heart: Fix FFMPEG download URL for tests
| YAML | mit | caffco/get-video-duration,caffco/get-video-duration | yaml | ## Code Before:
node_js:
- "6"
- "7"
- "8"
- "9"
language: node_js
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
before_script:
- curl http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz | sudo tar -C /usr/local/bin/ -xvz
## I... |
52ffc2b264cbacaee56017cd4a67df4511d60392 | celery/managers.py | celery/managers.py | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return task
def is... | Add is_done=True to get_all_expired filter. | Add is_done=True to get_all_expired filter.
| Python | bsd-3-clause | WoLpH/celery,cbrepo/celery,cbrepo/celery,ask/celery,frac/celery,WoLpH/celery,mitsuhiko/celery,ask/celery,mitsuhiko/celery,frac/celery | python | ## Code Before:
from django.db import models
from celery.registry import tasks
from datetime import datetime, timedelta
__all__ = ["TaskManager", "PeriodicTaskManager"]
class TaskManager(models.Manager):
def get_task(self, task_id):
task, created = self.get_or_create(task_id=task_id)
return ... |
7da7354668187167ccc6143ee0f469158c858ed3 | lib/economic/proxies/actions/creditor_contact_proxy/find_by_name.rb | lib/economic/proxies/actions/creditor_contact_proxy/find_by_name.rb | module Economic
module Proxies
module Actions
module CreditorContactProxy
class FindByName
attr_reader :name
def initialize(caller, name)
@caller = caller
@name = name
end
def call
# Get a list of CreditorContactHandles fr... | module Economic
module Proxies
module Actions
module CreditorContactProxy
class FindByName
attr_reader :name
def initialize(caller, name)
@caller = caller
@name = name
end
def call
# Get a list of CreditorContactHandles fr... | Clean up FindByName a bit | Clean up FindByName a bit
| Ruby | mit | anderslime/rconomic,kongens-net/rconomic,substancelab/rconomic,lokalebasen/rconomic | ruby | ## Code Before:
module Economic
module Proxies
module Actions
module CreditorContactProxy
class FindByName
attr_reader :name
def initialize(caller, name)
@caller = caller
@name = name
end
def call
# Get a list of CreditorC... |
870723483416ffe81a47facbbc68440735b2dfea | package.json | package.json | {
"name": "heroku-dyno",
"version": "0.1.1",
"description": "Unbaffled heroku dyno management",
"repository": {
"type": "git",
"url": "git://github.com/visionmobile/heroku-dyno.git"
},
"main": "src/Dyno.js",
"scripts": {
"test": "node test/index.js"
},
"keywords": [
"heroku",
"dyno... | {
"name": "heroku-dyno",
"version": "0.1.1",
"description": "Unbaffled heroku dyno management",
"repository": {
"type": "git",
"url": "git://github.com/visionmobile/heroku-dyno.git"
},
"main": "src/Dyno.js",
"scripts": {
"test": "node test/index.js"
},
"keywords": [
"heroku",
"dyno... | Change author to visionmobile; add jmike as maintainer | Change author to visionmobile; add jmike as maintainer
| JSON | mit | visionmobile/heroku-dyno | json | ## Code Before:
{
"name": "heroku-dyno",
"version": "0.1.1",
"description": "Unbaffled heroku dyno management",
"repository": {
"type": "git",
"url": "git://github.com/visionmobile/heroku-dyno.git"
},
"main": "src/Dyno.js",
"scripts": {
"test": "node test/index.js"
},
"keywords": [
"he... |
7ece85d1ab3d789ee1f91ce77d1934927339ae16 | react/frontpage/components/PromoBanner.scss | react/frontpage/components/PromoBanner.scss | // Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
cursor: pointer;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
}
.promoBanner:hover .overlay {
background-color: $link-image-active-color;
}
| // Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
cursor: pointer;
z-index: 1; // So overlay is on top of all other promo banner divs (need this to trigger :hover)
&:hover {
background-co... | Fix some hover weirdness in the promo banner | Fix some hover weirdness in the promo banner
| SCSS | agpl-3.0 | uclaradio/uclaradio,uclaradio/uclaradio,uclaradio/uclaradio | scss | ## Code Before:
// Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
cursor: pointer;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
}
.promoBanner:hover .overlay {
background-color: $link-image-active-color;
}
## Instruction:
Fix some hover w... |
878c3dc00f31e2d35d6f26b99b3e45be772ba1fd | app/controllers/property_elements_controller.rb | app/controllers/property_elements_controller.rb | class PropertyElementsController < ApplicationController
before_filter :check_for_cancel, :only => [:create]
def index
@user = current_user
@property = Property.find(params[:property_id])
@property_elements = @property.property_elements
if @property_elements.empty?
flash[:error] = "La propied... | class PropertyElementsController < ApplicationController
before_filter :check_for_cancel, :only => [:create]
def index
@user = current_user
@property = Property.find(params[:property_id])
@property_elements = @property.property_elements
if @property_elements.empty?
flash[:error] = "La propied... | Fix bug redirecting to new when property has no elements. | Fix bug redirecting to new when property has no elements.
| Ruby | apache-2.0 | gtrujillop/RealEstateWeb,gtrujillop/RealEstateWeb,gtrujillop/RealEstateWeb | ruby | ## Code Before:
class PropertyElementsController < ApplicationController
before_filter :check_for_cancel, :only => [:create]
def index
@user = current_user
@property = Property.find(params[:property_id])
@property_elements = @property.property_elements
if @property_elements.empty?
flash[:erro... |
0a48250ec2d7350f11bc864a010954078f6e1588 | vdb-bench-assembly/plugins/vdb-bench-widgets/fileImportControl.html | vdb-bench-assembly/plugins/vdb-bench-widgets/fileImportControl.html | <div>
<!-- Show progress bar on loading -->
<div ng-show="vm.inProgress">
<uib-progressbar class="progress-striped active" value="dynamic" type="info"></uib-progressbar>
</div>
<!-- Import control -->
<div ng-show="! vm.inProgress">
<div class="import-control-title" translate="fileI... | <div>
<!-- Show progress bar on loading -->
<div ng-show="vm.inProgress">
<uib-progressbar class="progress-striped active" value="dynamic" type="info"></uib-progressbar>
</div>
<!-- Import control -->
<div ng-show="! vm.inProgress">
<div class="import-control-title" translate="fileI... | Fix for file import control button | Fix for file import control button
* Seems that translate directive does not transclude the contents of the
element but replaces it with its translated content. This is a problem
for elements that already contain child-elements.
| HTML | apache-2.0 | phantomjinx/vdb-bench,Teiid-Designer/vdb-bench,Teiid-Designer/vdb-bench,mdrillin/vdb-bench,mdrillin/vdb-bench,phantomjinx/vdb-bench | html | ## Code Before:
<div>
<!-- Show progress bar on loading -->
<div ng-show="vm.inProgress">
<uib-progressbar class="progress-striped active" value="dynamic" type="info"></uib-progressbar>
</div>
<!-- Import control -->
<div ng-show="! vm.inProgress">
<div class="import-control-title" ... |
5ae47158073bc0f2f43b95c5e5a343e736537f98 | delegatednews/delegatednews-config/src/main/config/dbRepository/oracle/delegatedNews/003/create_table.sql | delegatednews/delegatednews-config/src/main/config/dbRepository/oracle/delegatedNews/003/create_table.sql | create table sc_delegatednews_news (
pubId int not null,
instanceId varchar(50) not null,
status varchar(100) not null,
contributorId varchar(50) not null,
validatorId varchar(50) null,
validationDate timestamp(0) null,
beginDate timestamp(0) null,
... | create table sc_delegatednews_news (
pubId int not null,
instanceId varchar(50) not null,
status varchar(100) not null,
contributorId varchar(50) not null,
validatorId varchar(50) null,
validationDate timestamp(0) null,
beginDate timestamp(0) null,
... | Fix the creation of the table sc_delegatednews_news for Oracle: the declaration of the column newsOrder was incorrect | Fix the creation of the table sc_delegatednews_news for Oracle: the declaration of the column newsOrder was incorrect
| SQL | agpl-3.0 | ebonnet/Silverpeas-Components,ebonnet/Silverpeas-Components,SilverTeamWork/Silverpeas-Components,SilverYoCha/Silverpeas-Components,CecileBONIN/Silverpeas-Components,CecileBONIN/Silverpeas-Components,SilverYoCha/Silverpeas-Components,CecileBONIN/Silverpeas-Components,Silverpeas/Silverpeas-Components,auroreallibe/Silverp... | sql | ## Code Before:
create table sc_delegatednews_news (
pubId int not null,
instanceId varchar(50) not null,
status varchar(100) not null,
contributorId varchar(50) not null,
validatorId varchar(50) null,
validationDate timestamp(0) null,
beginDate timestamp(0... |
8445a067ae4b8158c108145cc9715b4ae6e5a88c | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: cpp
services:
- docker
branches:
only:
- master
- develop
before_install:
- docker build -t travis-build -f infrastructure/tools/Dockerfile .
script:
# Common style check
- docker run --rm travis-build infrastructure/tools/checkstyle.sh $TRAVIS_COMMIT_RANGE
... | sudo: required
dist: trusty
language: cpp
services:
- docker
branches:
only:
- master
- develop
before_install:
- docker build -t travis-build -f infrastructure/tools/Dockerfile .
script:
# Common style check
- docker run --rm travis-build infrastructure/tools/checkstyle.sh $TRAVIS_COMMIT_RANGE
... | Check whole project with pylint on CI | Check whole project with pylint on CI
| YAML | mit | malirod/pylua,malirod/pylua | yaml | ## Code Before:
sudo: required
dist: trusty
language: cpp
services:
- docker
branches:
only:
- master
- develop
before_install:
- docker build -t travis-build -f infrastructure/tools/Dockerfile .
script:
# Common style check
- docker run --rm travis-build infrastructure/tools/checkstyle.sh $TRAVIS... |
d31abe5a6f6fc1045837ebe863e6a0ff1307c2df | requirements.txt | requirements.txt | doctr
ipython
jsonschema
matplotlib
numpydoc
path.py
sphinx
sphinx-gallery
sphinx_rtd_theme
sphinxcontrib-napoleon
| bluesky # for gallery example
doctr
ipython
jsonschema
matplotlib
numpy # for gallery example
numpydoc
path.py
sphinx
sphinx-gallery
sphinx_rtd_theme
sphinxcontrib-napoleon
| Add dependencies for gallery examples. | FIX: Add dependencies for gallery examples.
| Text | bsd-2-clause | NSLS-II/docs,tacaswell/docs,NSLS-II/docs | text | ## Code Before:
doctr
ipython
jsonschema
matplotlib
numpydoc
path.py
sphinx
sphinx-gallery
sphinx_rtd_theme
sphinxcontrib-napoleon
## Instruction:
FIX: Add dependencies for gallery examples.
## Code After:
bluesky # for gallery example
doctr
ipython
jsonschema
matplotlib
numpy # for gallery example
numpydoc
path.py... |
c7c1c94635bc499b8c33fc4c9b65033ef2c24c89 | source/popup/containers/EntriesPage.js | source/popup/containers/EntriesPage.js | import { connect } from "react-redux";
import EntriesPage from "../components/EntriesPage.js";
import { clearSearchResults } from "../library/messaging.js";
import { searchEntriesForTerm } from "../../shared/library/messaging.js";
export default connect(
(state, ownProps) => ({}),
{
onPrepare: () => ()... | import { connect } from "react-redux";
import EntriesPage from "../components/EntriesPage.js";
import { clearSearchResults } from "../library/messaging.js";
import { searchEntriesForTerm } from "../../shared/library/messaging.js";
export default connect(
(state, ownProps) => ({}),
{
onPrepare: () => ()... | Stop clearing search results on popup init | Stop clearing search results on popup init
| JavaScript | mit | buttercup-pw/buttercup-browser-extension,perry-mitchell/buttercup-chrome,buttercup-pw/buttercup-browser-extension,perry-mitchell/buttercup-chrome | javascript | ## Code Before:
import { connect } from "react-redux";
import EntriesPage from "../components/EntriesPage.js";
import { clearSearchResults } from "../library/messaging.js";
import { searchEntriesForTerm } from "../../shared/library/messaging.js";
export default connect(
(state, ownProps) => ({}),
{
onP... |
2ed5f3f6567cd7cc541fa58a49b6cf03f07d23e5 | playbooks/roles/jenkins_worker/defaults/main.yml | playbooks/roles/jenkins_worker/defaults/main.yml | ---
jenkins_user: "jenkins"
# the main group for the jenkins user
jenkins_group: "jenkins"
# the groups that the jenkins user must belong to
jenkins_groups: "jenkins,docker"
jenkins_home: /home/jenkins
jenkins_edx_platform_version: master
# System packages
jenkins_debian_pkgs:
- pkg-config
- libffi-dev
- ... | ---
jenkins_user: "jenkins"
# the main group for the jenkins user
jenkins_group: "jenkins"
# the groups that the jenkins user must belong to
jenkins_groups: "jenkins,docker"
jenkins_home: /home/jenkins
jenkins_edx_platform_version: master
# System packages
jenkins_debian_pkgs:
- pkg-config
- libffi-dev
- ... | Add postgres library to handle openedxstats upgrades. | Add postgres library to handle openedxstats upgrades.
| YAML | agpl-3.0 | EDUlib/configuration,arbrandes/edx-configuration,mitodl/configuration,edx/configuration,EDUlib/configuration,mitodl/configuration,arbrandes/edx-configuration,EDUlib/configuration,arbrandes/edx-configuration,mitodl/configuration,appsembler/configuration,edx/configuration,EDUlib/configuration,edx/configuration,stvstnfrd/... | yaml | ## Code Before:
---
jenkins_user: "jenkins"
# the main group for the jenkins user
jenkins_group: "jenkins"
# the groups that the jenkins user must belong to
jenkins_groups: "jenkins,docker"
jenkins_home: /home/jenkins
jenkins_edx_platform_version: master
# System packages
jenkins_debian_pkgs:
- pkg-config
- l... |
3d22a51134963c3f188edeacb937d2a6f17a29e5 | lib/env.js | lib/env.js | /**
* @file env
* @author treelite(c.xinle@gmail.com)
*/
/**
* 修复全局的异步函数
* 使之能在异步回调中恢复请求请求上下文
*
* @inner
* @param {Object} app server
*/
function fixGlobalMethods(app) {
var methods = ['setTimeout', 'setInterval', 'setImmediate'];
methods.forEach(function (name) {
var method = global[name];
... | /**
* @file env
* @author treelite(c.xinle@gmail.com)
*/
/**
* 修复异步函数
* 使之能在异步回调中恢复请求请求上下文
*
* @inner
* @param {Object} app server
*/
function fixAsyncMethods(app) {
/**
* 包裹异步函数
*
* @param {Object} obj 模块
* @param {string} name 方法名
*/
function wrap(obj, name) {
var m... | Fix process.nextTick, try to save context | Fix process.nextTick, try to save context
| JavaScript | mit | ecomfe/rebas,ecomfe/rebas,noikiy/rebas | javascript | ## Code Before:
/**
* @file env
* @author treelite(c.xinle@gmail.com)
*/
/**
* 修复全局的异步函数
* 使之能在异步回调中恢复请求请求上下文
*
* @inner
* @param {Object} app server
*/
function fixGlobalMethods(app) {
var methods = ['setTimeout', 'setInterval', 'setImmediate'];
methods.forEach(function (name) {
var method =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.