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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f81487d6c0de7b961503a73144b30dcb3faab0a1 | src/Main.elm | src/Main.elm | module Main exposing (main)
import Html exposing (..)
import Html.Attributes exposing (..)
import ChartCard
import Samples
main : Program Never Model Msg
main =
Html.beginnerProgram
{ model = model
, view = view
, update = update
}
-- MODEL
type alias Model =
List ChartCa... | module Main exposing (main)
import Html exposing (..)
import Html.Attributes exposing (..)
import ChartCard
import Samples
main : Program Never Model Msg
main =
Html.beginnerProgram
{ model = model
, view = view
, update = update
}
-- MODEL
type alias Model =
List ChartCa... | Rename ChartCard to ChartCardMsg to explicit it's a Msg | Rename ChartCard to ChartCardMsg to explicit it's a Msg
| Elm | agpl-3.0 | open-chords-charts/chart-editor,open-chords-charts/chart-editor | elm | ## Code Before:
module Main exposing (main)
import Html exposing (..)
import Html.Attributes exposing (..)
import ChartCard
import Samples
main : Program Never Model Msg
main =
Html.beginnerProgram
{ model = model
, view = view
, update = update
}
-- MODEL
type alias Model =
... |
6525fd5cd449a1345f20c8b423a31f2cfb4f829c | data/examples/asciidoc/block_admonition.adoc | data/examples/asciidoc/block_admonition.adoc | // .basic
WARNING: Watch out for dragons!
// .basic_multiline
NOTE: An admonition paragraph draws the reader's attention to
auxiliary information.
Its purpose is determined by the label
at the beginning of the paragraph.
// .block
[IMPORTANT]
====
While werewolves are hardy community members, keep in mind some dietar... | // .note
NOTE: This is a note.
// .note_with_title
.Title of note
NOTE: This is a note with title.
// .note_with_id_and_role
[#note-1.yellow]
NOTE: This is a note with id and role.
// .note_block
[NOTE]
====
This is a note with complex content.
* It contains a list.
====
// .tip
TIP: This is a tip.
// .tip_with_t... | Add full set of examples for each admonition type | Examples: Add full set of examples for each admonition type
They may be rendered differently, for example note and tip as aside,
others as section.
| AsciiDoc | mit | asciidoctor/asciidoctor-doctest,asciidoctor/asciidoctor-doctest | asciidoc | ## Code Before:
// .basic
WARNING: Watch out for dragons!
// .basic_multiline
NOTE: An admonition paragraph draws the reader's attention to
auxiliary information.
Its purpose is determined by the label
at the beginning of the paragraph.
// .block
[IMPORTANT]
====
While werewolves are hardy community members, keep in ... |
9e85c73a21a2f907ef6df4ef1fe56fb2ceb9bf07 | library/src/main/java/com/novoda/downloadmanager/LiteDownloadsNetworkRecoveryEnabled.java | library/src/main/java/com/novoda/downloadmanager/LiteDownloadsNetworkRecoveryEnabled.java | package com.novoda.downloadmanager;
import android.content.Context;
import android.util.Log;
import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import java.util.concurrent.TimeUnit;
class LiteDownloadsNetworkRecoveryEnabled implements DownloadsNetworkRecovery {
private fina... | package com.novoda.downloadmanager;
import android.content.Context;
import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import com.novoda.notils.logger.simple.Log;
import java.util.concurrent.TimeUnit;
class LiteDownloadsNetworkRecoveryEnabled implements DownloadsNetworkRecovery ... | Add some logs to scheduling. | Add some logs to scheduling.
| Java | apache-2.0 | novoda/download-manager | java | ## Code Before:
package com.novoda.downloadmanager;
import android.content.Context;
import android.util.Log;
import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import java.util.concurrent.TimeUnit;
class LiteDownloadsNetworkRecoveryEnabled implements DownloadsNetworkRecovery {
... |
51b78ee626d766de5f95dca2f512e6cb3d0b15d3 | clappr/src/main/kotlin/io/clappr/player/base/Options.kt | clappr/src/main/kotlin/io/clappr/player/base/Options.kt | package io.clappr.player.base
import java.util.*
class Options(
var source: String? = null,
var mimeType: String? = null,
val options: HashMap<String, Any> = hashMapOf<String, Any>()) : MutableMap<String, Any> by options
enum class ClapprOption(val value: String) {
/**
* Media start ... | package io.clappr.player.base
import java.util.*
class Options(
var source: String? = null,
var mimeType: String? = null,
val options: HashMap<String, Any> = hashMapOf<String, Any>()) : MutableMap<String, Any> by options
enum class ClapprOption(val value: String) {
/**
* Media start ... | Update ClapprOption to better describe the START_AT option | fix(update_start_at_description): Update ClapprOption to better describe the START_AT option
| Kotlin | bsd-3-clause | clappr/clappr-android,clappr/clappr-android | kotlin | ## Code Before:
package io.clappr.player.base
import java.util.*
class Options(
var source: String? = null,
var mimeType: String? = null,
val options: HashMap<String, Any> = hashMapOf<String, Any>()) : MutableMap<String, Any> by options
enum class ClapprOption(val value: String) {
/**
... |
a83b7c7f53004dfd42226e50e44cb6f61466416e | README.md | README.md |
> Preprocessor to use http://github.com/nodeca/mincer for compilation.
## Installation
The easiest way is to keep `karma-mincer-preprocessor` as a devDependency in your `package.json`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-coffee-preprocessor": "~0.0.1"
}
}
```
You can simple do it by:... |
> Preprocessor to use http://github.com/nodeca/mincer for compilation.
## Installation
The easiest way is to keep `karma-mincer-preprocessor` as a devDependency in your `package.json`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-coffee-preprocessor": "~0.0.1"
}
}
```
You can simple do it by:... | Add example of helper registration. | Add example of helper registration.
| Markdown | mit | cgc/karma-mincer-preprocessor | markdown | ## Code Before:
> Preprocessor to use http://github.com/nodeca/mincer for compilation.
## Installation
The easiest way is to keep `karma-mincer-preprocessor` as a devDependency in your `package.json`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-coffee-preprocessor": "~0.0.1"
}
}
```
You can ... |
ed248d9d759949bf415701f72b479817516ceac3 | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
devise_for :users, controllers: { registrations: 'registrations' }
scope "/admin" do
resources :users, only: [:index, :edit, :update, :destroy]
end
resources :agencies
resources :uploads do
member do
get 'download'
end
end
resources :grants do
memb... | Rails.application.routes.draw do
devise_for :users, controllers: { registrations: 'registrations' }
scope "/admin" do
resources :users, only: [:index, :edit, :update, :destroy]
end
resources :agencies
resources :uploads do
member do
get 'download'
end
end
resources :grants do
memb... | Move lets encrypt challenge id to an environment variable. | issue-289: Move lets encrypt challenge id to an environment variable.
| Ruby | mit | on-site/Grantzilla,on-site/Grantzilla,on-site/Grantzilla | ruby | ## Code Before:
Rails.application.routes.draw do
devise_for :users, controllers: { registrations: 'registrations' }
scope "/admin" do
resources :users, only: [:index, :edit, :update, :destroy]
end
resources :agencies
resources :uploads do
member do
get 'download'
end
end
resources :gr... |
f550fea9c29bca3c9536bc646a9f89d5fe621b36 | models/photo.js | models/photo.js | // grab the things we need
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// create a schema
var photoSchema = new Schema({
title: String,
slug: String,
status: String,
description: String,
author: {
name: String,
email: String,
username: String
},
meta: {
year: Number,... | /*
|--------------------------------------------------------------------------
| Imports
|--------------------------------------------------------------------------
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
/*
|--------------------------------------------------------------------------
| Def... | Update comments in Photo model | Update comments in Photo model
| JavaScript | mit | mhovey/photos-api,mhovey/photos | javascript | ## Code Before:
// grab the things we need
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// create a schema
var photoSchema = new Schema({
title: String,
slug: String,
status: String,
description: String,
author: {
name: String,
email: String,
username: String
},
meta: {
... |
b05009ad140911ba3e3dcb15627c6408e75bc3d0 | vm/builtin/atomic.cpp | vm/builtin/atomic.cpp |
namespace rubinius {
void AtomicReference::init(STATE) {
GO(atomic_ref).set(ontology::new_class(state,
"AtomicReference", G(object), G(rubinius)));
G(atomic_ref)->set_object_type(state, AtomicReferenceType);
}
AtomicReference* AtomicReference::allocate(STATE) {
return state->new_object<At... |
namespace rubinius {
void AtomicReference::init(STATE) {
GO(atomic_ref).set(ontology::new_class(state,
"AtomicReference", G(object), G(rubinius)));
G(atomic_ref)->set_object_type(state, AtomicReferenceType);
}
AtomicReference* AtomicReference::allocate(STATE) {
return state->new_object<At... | Fix GC-related SEGV when heavily using AtomicReference | Fix GC-related SEGV when heavily using AtomicReference
| C++ | mpl-2.0 | benlovell/rubinius,lgierth/rubinius,kachick/rubinius,jsyeo/rubinius,benlovell/rubinius,jemc/rubinius,dblock/rubinius,mlarraz/rubinius,ngpestelos/rubinius,dblock/rubinius,Wirachmat/rubinius,lgierth/rubinius,heftig/rubinius,digitalextremist/rubinius,ngpestelos/rubinius,pH14/rubinius,digitalextremist/rubinius,lgierth/rubi... | c++ | ## Code Before:
namespace rubinius {
void AtomicReference::init(STATE) {
GO(atomic_ref).set(ontology::new_class(state,
"AtomicReference", G(object), G(rubinius)));
G(atomic_ref)->set_object_type(state, AtomicReferenceType);
}
AtomicReference* AtomicReference::allocate(STATE) {
return stat... |
3e4287fdb58fbf2cd997c5ddb8d0c163c466139a | .travis.yml | .travis.yml | language: python
python:
- "2.7"
# command to install dependencies
script: python tests/test_simplenote.py
branches:
only:
- master
| language: python
python:
- '2.7'
script: python tests/test_simplenote.py
branches:
only:
- master
deploy:
provider: pypi
user: atomicules
password:
secure: QD0ICwZ/JQ7KJZe+BryMMBjQnJdCXBE8CTf85e0UrJd63kf+ogtGM6w+YVGdvrR75uJDq4IFkce9DDoJIIQ5jThCR9QTkFGt6Xx4I7WKqkbaEAkt6Sf1efEEiouJUCETkO1ILajzbi9805ucuKON1W... | Deploy to PyPi from Travis CI | Deploy to PyPi from Travis CI
Fixes #10
(well, hopefully, not sure how switching to my PyPi credentials will
affect things since previously deployed by @mrtazz)
[ci skip]
| YAML | mit | mrtazz/simplenote.py | yaml | ## Code Before:
language: python
python:
- "2.7"
# command to install dependencies
script: python tests/test_simplenote.py
branches:
only:
- master
## Instruction:
Deploy to PyPi from Travis CI
Fixes #10
(well, hopefully, not sure how switching to my PyPi credentials will
affect things since previously deplo... |
d3d724bb8809906ebae3abbd2c4a11c8a4aec268 | actionpack/lib/action_dispatch/testing/performance_test.rb | actionpack/lib/action_dispatch/testing/performance_test.rb | require 'active_support/testing/performance'
require 'active_support/testing/default'
begin
module ActionDispatch
# An integration test that runs a code profiler on your test methods.
# Profiling output for combinations of each test method, measurement, and
# output format are written to your tmp/perform... | require 'active_support/testing/performance'
begin
module ActionDispatch
# An integration test that runs a code profiler on your test methods.
# Profiling output for combinations of each test method, measurement, and
# output format are written to your tmp/performance directory.
#
# By default, p... | Remove this require since active_support/testing/default doesn't exist anymore | Remove this require since active_support/testing/default doesn't exist anymore
| Ruby | mit | mathieujobin/reduced-rails-for-travis,mtsmfm/railstest,starknx/rails,fabianoleittes/rails,bogdanvlviv/rails,flanger001/rails,tgxworld/rails,kirs/rails-1,deraru/rails,illacceptanything/illacceptanything,sergey-alekseev/rails,riseshia/railsguides.kr,travisofthenorth/rails,untidy-hair/rails,illacceptanything/illacceptanyt... | ruby | ## Code Before:
require 'active_support/testing/performance'
require 'active_support/testing/default'
begin
module ActionDispatch
# An integration test that runs a code profiler on your test methods.
# Profiling output for combinations of each test method, measurement, and
# output format are written to ... |
546089b6192f1e1805c335d53d45a9b55c3af2bf | js/src/test/kotlin/trees.kt | js/src/test/kotlin/trees.kt | package html4k.tests
import html4k.dom.append
import html4k.js.div
import html4k.p
import org.w3c.dom.asList
import kotlin.browser.document
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import org.junit.Test as test
class DomTreeImplTest {
test fun simpleTree() {
val node = document.body!!... | package html4k.tests
import html4k.dom.append
import html4k.js.div
import html4k.js.onClickFunction
import html4k.p
import org.w3c.dom.events.Event
import org.w3c.dom.HTMLDivElement
import org.w3c.dom.HTMLElement
import org.w3c.dom.asList
import kotlin.dom.asList
import kotlin.browser.document
import kotlin.test.asser... | Add test for event handling | Add test for event handling
| Kotlin | apache-2.0 | kotlinx/kotlinx.html,kotlinx/kotlinx.html,kotlinx/kotlinx.html | kotlin | ## Code Before:
package html4k.tests
import html4k.dom.append
import html4k.js.div
import html4k.p
import org.w3c.dom.asList
import kotlin.browser.document
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import org.junit.Test as test
class DomTreeImplTest {
test fun simpleTree() {
val node =... |
b15a429fe694daa2bd4da5ec9d64cfc98c63b716 | source/index.html.erb | source/index.html.erb | ---
pageable: true
per_page: 10
---
<% if paginate && num_pages > 1 %>
<p>Page <%= page_number %> of <%= num_pages %></p>
<% if prev_page %>
<p><%= link_to 'Previous page', prev_page %></p>
<% end %>
<% end %>
<ul class="cards">
<% page_articles.each_with_index do |article, i| %>
<li class="card">
... | ---
pageable: true
per_page: 10
---
<ul class="cards">
<% page_articles.each do |article| %>
<%= partial "partials/card_li",
locals: { item: article } %>
<% end %>
</ul>
<% if paginate && num_pages > 1 %>
<div class="pagination">
<%= pagination_links(articles.count, per_page) %>
</div>
... | Use new card_li partial in index | Use new card_li partial in index
| HTML+ERB | mit | smargh/fractaled_mind,smargh/fractaled_mind,fractaledmind/fractaled_mind,fractaledmind/fractaled_mind,smargh/fractaled_mind,smargh/fractaled_mind,fractaledmind/fractaled_mind,fractaledmind/fractaled_mind | html+erb | ## Code Before:
---
pageable: true
per_page: 10
---
<% if paginate && num_pages > 1 %>
<p>Page <%= page_number %> of <%= num_pages %></p>
<% if prev_page %>
<p><%= link_to 'Previous page', prev_page %></p>
<% end %>
<% end %>
<ul class="cards">
<% page_articles.each_with_index do |article, i| %>
<li c... |
1925cf4037da3126816071657709095be6f81193 | templates/zerver/help/change-your-name.md | templates/zerver/help/change-your-name.md |
It's easy to change how your name is shown in Zulip. With full Unicode support,
you can spell your name exactly how you'd like it to be displayed.
{!go-to-the.md!} [Your account](/#settings/your-account)
{!settings.md!}
2. Change your name in the **Full name** field, and click **Save changes**.
Congratulations! You... |
It's easy to change how your name is shown in Zulip. With full Unicode support,
you can spell your name exactly how you'd like it to be displayed.
{!go-to-the.md!} [Your account](/#settings/your-account)
{!settings.md!}
2. Change your name in the **Full name** field.
{!save-changes.md!} account settings.
Congratul... | Add *Save changes* macro to *Change your name* | docs: Add *Save changes* macro to *Change your name*
| Markdown | apache-2.0 | vabs22/zulip,punchagan/zulip,brockwhittaker/zulip,andersk/zulip,vaidap/zulip,sonali0901/zulip,amyliu345/zulip,JPJPJPOPOP/zulip,rishig/zulip,jackrzhang/zulip,punchagan/zulip,j831/zulip,vabs22/zulip,synicalsyntax/zulip,susansls/zulip,amanharitsh123/zulip,jphilipsen05/zulip,souravbadami/zulip,punchagan/zulip,showell/zulip... | markdown | ## Code Before:
It's easy to change how your name is shown in Zulip. With full Unicode support,
you can spell your name exactly how you'd like it to be displayed.
{!go-to-the.md!} [Your account](/#settings/your-account)
{!settings.md!}
2. Change your name in the **Full name** field, and click **Save changes**.
Cong... |
9a4155d7aab9bb4d3a0391658a2bafc5a3c00e59 | .travis.yml | .travis.yml | language: go
go:
- 1.3.3
- 1.4.2
- release
os:
- linux
- osx
notifications:
irc: "chat.freenode.net#restic"
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "linux darwin"
- go get -v -t ./...
script:
- go build -ldflags "-s" ./...
- go build -ldflags "-s" -o restic ./cmd/... | language: go
go:
- 1.3.3
- 1.4.2
- release
os:
- linux
- osx
notifications:
irc: "chat.freenode.net#restic"
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "linux darwin"
- go get -v -t ./...
script:
- go build -ldflags "-s" ./...
- go build -ldflags "-s" -o restic ./cmd/... | Add 'ls' on the binary to see the file sizes | Add 'ls' on the binary to see the file sizes
| YAML | bsd-2-clause | mappu/restic,ar-jan/restic,stuertz/restic,ar-jan/restic,byo/restic,kurin/restic,kurin/restic,byo/restic,stuertz/restic,middelink/restic,middelink/restic,episource/restic,klauspost/restic,arithmetric/restic,jayme-github/restic,intfrr/restic,bchapuis/restic,pombredanne/restic,fawick/restic,restic/restic,ckemper67/restic,... | yaml | ## Code Before:
language: go
go:
- 1.3.3
- 1.4.2
- release
os:
- linux
- osx
notifications:
irc: "chat.freenode.net#restic"
install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "linux darwin"
- go get -v -t ./...
script:
- go build -ldflags "-s" ./...
- go build -ldflags "-s" ... |
a93edd89935cab95ec443734f09830537786f806 | s3.sh | s3.sh |
echo "Checking if minio-data volume is created:"
docker volume inspect minio-data
if [ $? -ne 0 ]; then
echo "Creating minio-data volume."
docker volume create minio-data
fi
if [ $? -eq 0 ]; then
echo "minio-data volume setup complete"
else
echo "Error while checking for minio-data volume."
exit 1... |
echo "Checking if minio-data volume is created:"
docker volume inspect minio-data
if [ $? -ne 0 ]; then
echo "Creating minio-data volume."
docker volume create minio-data
fi
if [ $? -eq 0 ]; then
echo "minio-data volume setup complete"
else
echo "Error while checking for minio-data volume."
exit 1... | Fix port forwarding and credentials for minio | Fix port forwarding and credentials for minio
+ minio will run on port 9000 inside container but port 9001 on host
+ Create dummy env credentials for minio. Client will need those keys to communicate with local S3 API.
| Shell | mit | filewalkwithme/light-aws | shell | ## Code Before:
echo "Checking if minio-data volume is created:"
docker volume inspect minio-data
if [ $? -ne 0 ]; then
echo "Creating minio-data volume."
docker volume create minio-data
fi
if [ $? -eq 0 ]; then
echo "minio-data volume setup complete"
else
echo "Error while checking for minio-data vol... |
a74b66edc4145880a4c6dfc73d5645cb63fc3cc4 | lib/ShippingEasy/Object.php | lib/ShippingEasy/Object.php | <?php
class ShippingEasy_Object
{
public function request($meth, $path, $params=null, $payload = null)
{
$requestor = new ShippingEasy_ApiRequestor();
return $requestor->request($meth, $path, $params, $payload);
}
}
| <?php
class ShippingEasy_Object
{
public function request($meth, $path, $params=null, $payload = null, $apiKey = null, $apiSecret = null)
{
$requestor = new ShippingEasy_ApiRequestor();
return $requestor->request($meth, $path, $params, $payload, $apiKey, $apiSecret);
}
}
| Update to accept partner credentials. | Update to accept partner credentials.
| PHP | mit | ShippingEasy/shipping_easy-php | php | ## Code Before:
<?php
class ShippingEasy_Object
{
public function request($meth, $path, $params=null, $payload = null)
{
$requestor = new ShippingEasy_ApiRequestor();
return $requestor->request($meth, $path, $params, $payload);
}
}
## Instruction:
Update to accept partner credentials.
## Code After:
... |
198ccbb51237bdea2dbc41726f16a1aa2f2f9c1a | plugins/com.juliacomputing.jldt.eclipse.ui.console/script/repl-wrapper.jl | plugins/com.juliacomputing.jldt.eclipse.ui.console/script/repl-wrapper.jl | module EclipseREPL
function execute(statement)
status="complete"
mimeType="text/plain"
try
expression = parse(statement,1; greedy=true, raise=false)
if isa(expression[1],Expr)
state = expression[1].head
else
state = nothing
end
status = state==:incomplete ? "incomplete" : state==:e... | module EclipseREPL
function execute(statement)
status="complete"
mimeType="text/plain"
try
expression = parse(statement,1; greedy=true, raise=false)
if isa(expression[1],Expr)
state = expression[1].head
else
state = nothing
end
status = state==:incomplete ? "incomplete" : state==:e... | Update repl io stream flushing | Update repl io stream flushing
| Julia | mit | JuliaComputing/JuliaDT,JuliaComputing/JuliaDT | julia | ## Code Before:
module EclipseREPL
function execute(statement)
status="complete"
mimeType="text/plain"
try
expression = parse(statement,1; greedy=true, raise=false)
if isa(expression[1],Expr)
state = expression[1].head
else
state = nothing
end
status = state==:incomplete ? "incompl... |
3e4fed80be1197f0176f7b07611ef25b7972f0cf | common/src/main/java/io/github/aquerr/eaglefactions/common/commands/ReloadCommand.java | common/src/main/java/io/github/aquerr/eaglefactions/common/commands/ReloadCommand.java | package io.github.aquerr.eaglefactions.common.commands;
import io.github.aquerr.eaglefactions.api.EagleFactions;
import io.github.aquerr.eaglefactions.common.PluginInfo;
import io.github.aquerr.eaglefactions.common.messaging.Messages;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.... | package io.github.aquerr.eaglefactions.common.commands;
import io.github.aquerr.eaglefactions.api.EagleFactions;
import io.github.aquerr.eaglefactions.common.PluginInfo;
import io.github.aquerr.eaglefactions.common.messaging.Messages;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.... | Change color of reload commands message to green | Change color of reload commands message to green
| Java | mit | Aquerr/EagleFactions,Aquerr/EagleFactions | java | ## Code Before:
package io.github.aquerr.eaglefactions.common.commands;
import io.github.aquerr.eaglefactions.api.EagleFactions;
import io.github.aquerr.eaglefactions.common.PluginInfo;
import io.github.aquerr.eaglefactions.common.messaging.Messages;
import org.spongepowered.api.command.CommandException;
import org.sp... |
4503e6671828497189736c86d408f6c0a8b47058 | lambda_tweet.py | lambda_tweet.py | import boto3
import tweepy
import json
import base64
from tweet_s3_images import TweetS3Images
with open('./config.json', 'r') as file:
config = json.loads(file.read())
# Decrypt API keys
client = boto3.client('kms')
response = client.decrypt(CiphertextBlob=base64.b64decode(config['secrets']))
sec... | import boto3
import tweepy
import json
import base64
from tweet_s3_images import TweetS3Images
with open('./config.json', 'r') as file:
config = json.loads(file.read())
# Decrypt API keys
client = boto3.client('kms')
response = client.decrypt(CiphertextBlob=base64.b64decode(config['secrets']))
sec... | Update key name for S3 | Update key name for S3
| Python | mit | onema/lambda-tweet | python | ## Code Before:
import boto3
import tweepy
import json
import base64
from tweet_s3_images import TweetS3Images
with open('./config.json', 'r') as file:
config = json.loads(file.read())
# Decrypt API keys
client = boto3.client('kms')
response = client.decrypt(CiphertextBlob=base64.b64decode(config['sec... |
7763fe33a9de7df02fe1a22e213a9ea0a3c2c79e | package.json | package.json | {
"name": "vim-mode",
"main": "./lib/vim-mode",
"version": "0.6.0",
"description": "Provides vim modal control of Atom, currently INCOMPLETE.",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/atom/vim-mode.git"
},
"bugs": {
"url": "https://github.com/atom/vim-mode/... | {
"name": "vim-mode",
"main": "./lib/vim-mode",
"version": "0.6.0",
"description": "Provides vim modal control of Atom, currently INCOMPLETE.",
"private": true,
"repository": "https://github.com/atom/vim-mode",
"engines": {
"atom": ">26.0"
},
"dependencies": {
"underscore-plus": "1.x"
}
}
| Use url as repository value | Use url as repository value
| JSON | mit | bronson/vim-mode-next,naorunaoru/vim-mode-next | json | ## Code Before:
{
"name": "vim-mode",
"main": "./lib/vim-mode",
"version": "0.6.0",
"description": "Provides vim modal control of Atom, currently INCOMPLETE.",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/atom/vim-mode.git"
},
"bugs": {
"url": "https://github.co... |
99c8176760a600e2c13321b160612e1d761d2e56 | bookstore_app/static/styles/_forms.scss | bookstore_app/static/styles/_forms.scss | .form-group {
@include clearfix;
margin: 20px 0;
label {
float: left;
display: inline-block;
padding-top: 6px;
}
input[type='text'], input[type='password'] {
padding: 5px;
border-radius: 5px;
border: 1px solid #aaa;
float: left;
display: block;
// @include vertical-align(... | .form-group {
@include clearfix;
margin: 20px 0;
label {
float: left;
display: inline-block;
padding-top: 6px;
}
input[type='text'], input[type='password'] {
padding: 5px;
border-radius: 5px;
border: 1px solid #aaa;
float: left;
display: block;
// @include vertical-align(... | Add style for rating form | Add style for rating form
| SCSS | mit | siawyoung/bookstore,siawyoung/bookstore,siawyoung/bookstore | scss | ## Code Before:
.form-group {
@include clearfix;
margin: 20px 0;
label {
float: left;
display: inline-block;
padding-top: 6px;
}
input[type='text'], input[type='password'] {
padding: 5px;
border-radius: 5px;
border: 1px solid #aaa;
float: left;
display: block;
// @include... |
66b6188049f74b29dc64072c2633903be752a770 | README.md | README.md |
This package provides bindings to
[libtidy](http://www.html-tidy.org/developer/) a.k.a.
[TidyLib](http://api.html-tidy.org/tidy/tidylib_api_5.1.25/tidylib.html)
which can be used to parse and tidy up HTML 5.
The library is built as a native node extension,
so you don't have to have the HTML Tidy package installed on y... |
This package provides bindings to
[libtidy](http://www.html-tidy.org/developer/) a.k.a.
[TidyLib](http://api.html-tidy.org/tidy/tidylib_api_5.1.25/tidylib.html)
which can be used to parse and tidy up HTML 5.
The library is built as a native node extension,
so you don't have to have the HTML Tidy package installed on y... | Include new findings about alternative implementations | Include new findings about alternative implementations
| Markdown | mit | gagern/node-libtidy,gagern/node-libtidy,gagern/node-libtidy,gagern/node-libtidy | markdown | ## Code Before:
This package provides bindings to
[libtidy](http://www.html-tidy.org/developer/) a.k.a.
[TidyLib](http://api.html-tidy.org/tidy/tidylib_api_5.1.25/tidylib.html)
which can be used to parse and tidy up HTML 5.
The library is built as a native node extension,
so you don't have to have the HTML Tidy packag... |
80c52ff11eb9bf5f069571cc7ac44c2c7503b026 | gulp/development/vendor.coffee | gulp/development/vendor.coffee | mainBowerFiles = require 'main-bower-files'
concat = require 'gulp-concat'
filter = require 'gulp-filter'
commonjsWrap = require 'gulp-wrap-commonjs'
pickFilesByExtension = (extension) -> filter (file) -> file.path.match new RegExp("." + extension + "$")
module.exports = (gulp) ->
gulp.task '... | mainBowerFiles = require 'main-bower-files'
concat = require 'gulp-concat'
filter = require 'gulp-filter'
commonjsWrap = require 'gulp-wrap-commonjs'
pickFilesByExtension = (extension) -> filter (file) -> file.path.match new RegExp("." + extension + "$")
module.exports = (gulp) ->
gulp.task '... | Copy eventric js into scripts folder | Copy eventric js into scripts folder
| CoffeeScript | mit | sm0k1nggnu/entertain.io | coffeescript | ## Code Before:
mainBowerFiles = require 'main-bower-files'
concat = require 'gulp-concat'
filter = require 'gulp-filter'
commonjsWrap = require 'gulp-wrap-commonjs'
pickFilesByExtension = (extension) -> filter (file) -> file.path.match new RegExp("." + extension + "$")
module.exports = (gulp) -... |
2b2aa166d5675c26e8c0866eada4ff5b7157636f | cfg/after/ftplugin/html.vim | cfg/after/ftplugin/html.vim | " make Vim recognize stylesheet imports
let &l:include = '<link\>.*\<rel="stylesheet".*\<href="\zs\S\{-}\ze"'
" set up emmet maps
call maps#MapEmmet()
| " make Vim recognize stylesheet imports
let &l:include = '<link\>.*\<rel="stylesheet".*\<href="\zs\S\{-}\ze"'
" set up emmet maps
call maps#MapEmmet()
" set up nicer soft breaks
setlocal wrap
setlocal linebreak
setlocal breakindent
| Set up HTML wrapping config for writing | Set up HTML wrapping config for writing
The linebreak and breakindent options are pretty nice when writing in
HTML, since I don't rely on hard wrapping to clip my HTML text. This
way, my Vim buffer still reads naturally, even while relying on soft
wrapping.
| VimL | mit | igemnace/vim-config,igemnace/vim-config,igemnace/vim-config | viml | ## Code Before:
" make Vim recognize stylesheet imports
let &l:include = '<link\>.*\<rel="stylesheet".*\<href="\zs\S\{-}\ze"'
" set up emmet maps
call maps#MapEmmet()
## Instruction:
Set up HTML wrapping config for writing
The linebreak and breakindent options are pretty nice when writing in
HTML, since I don't rel... |
a1573c73f024039eec70d9944a884c4a9acc1e2e | src/foo.txt | src/foo.txt | 12345
asdfg
jjjjjjjjjj
dies ist foo.txt
| 123456789ABCDEF
aaaaaaaaaaaaaaa
this is 3rdline
123456789abcdef
bbbbbbbbbbbbbbb
ccccccccccccccc
ddddddddddddddd
eeeeeeeeeeeeeee
fffffffffffffff
ggggggggggggggg
hhhhhhhhhhhhhhh
iiiiiiiiiiiiiii
jjjjjjjjjjjjjjj
kkkkkkkkkkkkkkk
lllllllllllllll
mmmmmmmmmmmmmmm
nnnnnnnnnnnnnnn
123456789abcdef
543210aaaaaaaaa
aaaaaaaaa012345
... | Increase length of test file | Increase length of test file
| Text | mit | Luz/hexdino | text | ## Code Before:
12345
asdfg
jjjjjjjjjj
dies ist foo.txt
## Instruction:
Increase length of test file
## Code After:
123456789ABCDEF
aaaaaaaaaaaaaaa
this is 3rdline
123456789abcdef
bbbbbbbbbbbbbbb
ccccccccccccccc
ddddddddddddddd
eeeeeeeeeeeeeee
fffffffffffffff
ggggggggggggggg
hhhhhhhhhhhhhhh
iiiiiiiiiiiiiii
jjjjjjjjjj... |
228c9f12147ece8507cd098eee10e290671ede60 | js/forum/src/initializers/routes.js | js/forum/src/initializers/routes.js | import IndexPage from 'flarum/components/index-page';
import DiscussionPage from 'flarum/components/discussion-page';
import ActivityPage from 'flarum/components/activity-page';
import SettingsPage from 'flarum/components/settings-page';
export default function(app) {
app.routes = {
'index': ['/', Ind... | import IndexPage from 'flarum/components/index-page';
import DiscussionPage from 'flarum/components/discussion-page';
import ActivityPage from 'flarum/components/activity-page';
import SettingsPage from 'flarum/components/settings-page';
export default function(app) {
app.routes = {
'index': ['/', Ind... | Add convenience route generation functions | Add convenience route generation functions
Many instances throughout the app need to be updated to use these :)
| JavaScript | mit | falconchen/core,Luceos/core,utkarshx/core,Onyx47/core,malayladu/core,malayladu/core,falconchen/core,kidaa/core,billmn/core,Luceos/core,Onyx47/core,dungphanxuan/core,huytd/core,kidaa/core,Albert221/core,kidaa/core,liukaijv/core,kirkbushell/core,liukaijv/core,malayladu/core,flarum/core,renyuneyun/core,Albert221/core,Albe... | javascript | ## Code Before:
import IndexPage from 'flarum/components/index-page';
import DiscussionPage from 'flarum/components/discussion-page';
import ActivityPage from 'flarum/components/activity-page';
import SettingsPage from 'flarum/components/settings-page';
export default function(app) {
app.routes = {
'index': ... |
8499614af60bc6cdf13a248c7abab3faeaa2e59f | install/dependency.sh | install/dependency.sh |
echo 'Installing Required packages for Compass...'
sudo yum install -y rsyslog logrotate ntp iproute openssh-clients python git wget python-setuptools python-netaddr python-flask python-flask-sqlalchemy python-amqplib amqp python-paramiko python-mock mod_wsgi httpd squid dhcp bind rsync yum-utils xinetd tftp-server g... |
echo 'Installing Required packages for Compass...'
sudo yum install -y rsyslog logrotate ntp iproute openssh-clients python git wget python-setuptools python-netaddr python-flask python-flask-sqlalchemy python-amqplib amqp python-paramiko python-mock mod_wsgi httpd squid dhcp bind rsync yum-utils xinetd tftp-server g... | Prepare the installation of dependencies according to requirement files | Prepare the installation of dependencies according to requirement files
Change-Id: I9a940217f5be6fbf4c303daca707836bc97d47e2
| Shell | apache-2.0 | openstack/compass-core,baigk/compass-core,stackforge/compass-core,stackforge/compass-core,openstack/compass-core,stackforge/compass-core,openstack/compass-core,baigk/compass-core,openstack/compass-core,baigk/compass-core,stackforge/compass-core | shell | ## Code Before:
echo 'Installing Required packages for Compass...'
sudo yum install -y rsyslog logrotate ntp iproute openssh-clients python git wget python-setuptools python-netaddr python-flask python-flask-sqlalchemy python-amqplib amqp python-paramiko python-mock mod_wsgi httpd squid dhcp bind rsync yum-utils xine... |
f977f3d7ebaa156446ff99f35b47c037823f207c | team/_posts/2016-09-13-john-huddleston.md | team/_posts/2016-09-13-john-huddleston.md | ---
layout: member
title: John Huddleston
position: Rotation student
handle: jlhudd
email: jlhudd@uw.edu
twitter: huddlej
github: huddlej
scholar: KCqa_hUAAAAJ
image: /images/team/john-huddleston.jpg
calendar: https://calendar.google.com/calendar/embed?src=jlhudd%40uw.edu&ctz=America/Los_Angeles
---
I am a first-year ... | ---
layout: member
title: John Huddleston
position: Rotation student
handle: jlhudd
email: jlhudd@uw.edu
twitter: huddlej
github: huddlej
scholar: KCqa_hUAAAAJ
image: /images/team/john-huddleston.jpg
calendar: https://calendar.google.com/calendar/embed?src=jlhudd%40uw.edu&ctz=America/Los_Angeles
alumni: true
---
I am ... | Move John to "alumni" (hopefully not for long). | Move John to "alumni" (hopefully not for long).
| Markdown | mit | AustenLamacraft/austenlamacraft.github.io,AustenLamacraft/austenlamacraft.github.io,AustenLamacraft/austenlamacraft.github.io | markdown | ## Code Before:
---
layout: member
title: John Huddleston
position: Rotation student
handle: jlhudd
email: jlhudd@uw.edu
twitter: huddlej
github: huddlej
scholar: KCqa_hUAAAAJ
image: /images/team/john-huddleston.jpg
calendar: https://calendar.google.com/calendar/embed?src=jlhudd%40uw.edu&ctz=America/Los_Angeles
---
I ... |
66bd4ad40101008e286dd2ad9252240de03930fd | README.md | README.md | [](https://travis-ci.org/Acosix/alfresco-maven)
# About
This project defines the Maven build framework used by Acosix GmbH for building Alfresco-related libraries and modules.
Acosix GmbH deliberately does not use the [Alfresco SDK](https:/... | [](https://travis-ci.org/Acosix/alfresco-maven)
# About
This project defines the Maven build framework used by Acosix GmbH for building Alfresco-related libraries and modules.
Acosix GmbH deliberately does not use the [Alfresco SDK](https:/... | Add note about SNAPSHOT repository and correct minor typo | Add note about SNAPSHOT repository and correct minor typo
| Markdown | apache-2.0 | Acosix/alfresco-maven | markdown | ## Code Before:
[](https://travis-ci.org/Acosix/alfresco-maven)
# About
This project defines the Maven build framework used by Acosix GmbH for building Alfresco-related libraries and modules.
Acosix GmbH deliberately does not use the [Alfre... |
92739af42901e2479135d88abb44b7ff87b986dd | test/display/CMakeLists.txt | test/display/CMakeLists.txt | set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(osvr_print_displays osvr_print_displays.cpp)
target_link_libraries(osvr_print_displays PRIVATE osvrDisplay)
target_include_directories(osvr_print_displays SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src")
set_property(TARGET osvr_print_displays PROPERTY CXX_STANDARD 11)
target_... | set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(osvr_print_displays osvr_print_displays.cpp)
target_link_libraries(osvr_print_displays PRIVATE osvrDisplay)
target_include_directories(osvr_print_displays SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src")
set_property(TARGET osvr_print_displays PROPERTY CXX_STANDARD 11)
target_... | Install osvr_print_displays program if built. | Install osvr_print_displays program if built.
| Text | apache-2.0 | OSVR/SteamVR-OSVR,OSVR/SteamVR-OSVR,OSVR/SteamVR-OSVR | text | ## Code Before:
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(osvr_print_displays osvr_print_displays.cpp)
target_link_libraries(osvr_print_displays PRIVATE osvrDisplay)
target_include_directories(osvr_print_displays SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src")
set_property(TARGET osvr_print_displays PROPERTY CXX_STAN... |
bded38f349dba35241bf69d112160d3af555d622 | src/FormModel/Traits/Formable.php | src/FormModel/Traits/Formable.php | <?php
namespace Kregel\FormModel\Traits;
trait Formable
{
protected $form_name;
/**
* @return mixed
*/
public function getFormName()
{
return $this->form_name;
}
/**
* @param mixed $form_name
*/
public function setFormName($form_name)
{
$this->form... | <?php
namespace Kregel\FormModel\Traits;
trait Formable
{
/**
* @return mixed
*/
public function getFormName()
{
return $this->form_name;
}
/**
* @param mixed $form_name
*/
public function setFormName($form_name)
{
$this->form_name = $form_name;
}
... | Remove form_name property because it broke FormModel | Remove form_name property because it broke FormModel
| PHP | mit | austinkregel/formmodel,austinkregel/formmodel | php | ## Code Before:
<?php
namespace Kregel\FormModel\Traits;
trait Formable
{
protected $form_name;
/**
* @return mixed
*/
public function getFormName()
{
return $this->form_name;
}
/**
* @param mixed $form_name
*/
public function setFormName($form_name)
{
... |
e166096663af9d4b13b2cf20ae4e412143599813 | javascripts/custom/ajax.js | javascripts/custom/ajax.js | // Define DrupalAjaxRequest
var DrupalAjaxRequest = (function () {
var fetch = function(feed_id, callback) {
Zepto.ajax(
{
url: Kiosk.contentUrl(feed_id),
dataType: 'jsonp',
type: 'GET',
cache: false,
success: function (result) {
callback(resul... | // Define DrupalAjaxRequest
var DrupalAjaxRequest = (function () {
var fetchNode = function(node_id, callback) {
Zepto.ajax(
{
url: Kiosk.contentUrl('node'),
dataType: 'jsonp',
data: {nid: node_id},
type: 'GET',
cache: false,
success: function (result) {
... | Add a method for fetching a node, and collections list (artifacts). | Add a method for fetching a node, and collections list (artifacts).
| JavaScript | mit | historiclewes/pilots-kiosk,historiclewes/pilots-kiosk,historiclewes/pilots-kiosk | javascript | ## Code Before:
// Define DrupalAjaxRequest
var DrupalAjaxRequest = (function () {
var fetch = function(feed_id, callback) {
Zepto.ajax(
{
url: Kiosk.contentUrl(feed_id),
dataType: 'jsonp',
type: 'GET',
cache: false,
success: function (result) {
... |
9c7b1def1f8a6c13d359f613b58290b396f464fb | appveyor.yml | appveyor.yml | environment:
nodejs_version: "0.12"
virustotal_apikey:
secure: hvKv/Iat286vN6iH88eh1yesAgbq7XTXR+3/P37Jdn8EzUzmI3QIOWgsDi/80neS9vAmDf8UIWjSWUqBGqHn/I39it4p3Vaj+dhGN/mhaAU=
install:
- ps: Install-Product node $env:nodejs_version
- npm install
- npm install -g bower
- npm install -g gulp
... | environment:
nodejs_version: "0.12"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
- npm install -g bower
- npm install -g gulp
- bower install
build_script: gulp build
after_build:
- gulp build-installer
- 7z a -r LoginWars2.zip %APPVEYOR_BUILD_FOLDER%\build\Log... | Revert "test virustotal integration to continious delivery process" because they do not allow files as big as mine :( | Revert "test virustotal integration to continious delivery process"
because they do not allow files as big as mine :(
This reverts commit 483266b8c874c9fcb4418b338d9d4f45385a26d6.
| YAML | mit | kasoki/LoginWars2,kasoki/LoginWars2,atomicptr/LoginWars2,atomicptr/LoginWars2 | yaml | ## Code Before:
environment:
nodejs_version: "0.12"
virustotal_apikey:
secure: hvKv/Iat286vN6iH88eh1yesAgbq7XTXR+3/P37Jdn8EzUzmI3QIOWgsDi/80neS9vAmDf8UIWjSWUqBGqHn/I39it4p3Vaj+dhGN/mhaAU=
install:
- ps: Install-Product node $env:nodejs_version
- npm install
- npm install -g bower
- npm ... |
8d96f8947e8e1c6344664309d3e371ea4b67b976 | app/soc/templates/modules/gsoc/templatetags/_as_proposal_duplicates.html | app/soc/templates/modules/gsoc/templatetags/_as_proposal_duplicates.html | {% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the ... | {% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the ... | Fix the url for student proposals where all the duplicates are listed. | Fix the url for student proposals where all the duplicates are listed.
| HTML | apache-2.0 | MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging | html | ## Code Before:
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
24f0174c9fa1b5160cc8768895301aff5bd8e9ec | lib/analytics/scripts/usernames_to_csv.rb | lib/analytics/scripts/usernames_to_csv.rb |
require 'csv'
# all the usernames
usernames = User.joins(:courses_users).uniq.pluck(:wiki_id)
CSV.open('/root/all_course_participants.csv', 'wb') do |csv|
usernames.each do |username|
csv << [username]
end
end
# student usernames by cohort
Cohort.all.each do |cohort|
CSV.open("/root/#{cohort.slug}_students... |
require 'csv'
# all the usernames
usernames = User.joins(:courses_users).uniq.pluck(:wiki_id)
CSV.open('/root/all_course_participants.csv', 'wb') do |csv|
usernames.each do |username|
csv << [username]
end
end
# student usernames by cohort
Cohort.all.each do |cohort|
CSV.open("/root/#{cohort.slug}_students... | Add another query to the scripts archive | Add another query to the scripts archive
| Ruby | mit | MusikAnimal/WikiEduDashboard,sejalkhatri/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,alpha721/WikiEduDashboard,Wowu/WikiEduDashboard,KarmaHater/WikiEduDashboard,majakomel/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,feelfreelinux/WikiEduDashboard,Wowu/WikiEduDashboard,MusikAnimal/WikiEduDashb... | ruby | ## Code Before:
require 'csv'
# all the usernames
usernames = User.joins(:courses_users).uniq.pluck(:wiki_id)
CSV.open('/root/all_course_participants.csv', 'wb') do |csv|
usernames.each do |username|
csv << [username]
end
end
# student usernames by cohort
Cohort.all.each do |cohort|
CSV.open("/root/#{cohor... |
333f8850cf9a0395fdf71a8fe292ff2d33c93e6f | Reseter.php | Reseter.php | <?php
namespace FOQ\ElasticaBundle;
/**
* Deletes and recreates indexes
**/
class Reseter
{
protected $indexManager;
public function __construct(IndexManager $indexManager)
{
$this->indexManager = $indexManager;
}
/**
* Resets all indexes
*
* @return null
**/
pu... | <?php
namespace FOQ\ElasticaBundle;
use Elastica_Exception_Response;
/**
* Deletes and recreates indexes
**/
class Reseter
{
protected $indexManager;
public function __construct(IndexManager $indexManager)
{
$this->indexManager = $indexManager;
}
/**
* Resets all indexes
*
... | Fix issue in reseter when an index does not exist yet | Fix issue in reseter when an index does not exist yet
| PHP | mit | ramuss/FazlandElasticaBundle,alekitto/FazlandElasticaBundle,Exercise/FOQElasticaBundle,fazland/FazlandElasticaBundle,alekitto/FazlandElasticaBundle,fazland/FazlandElasticaBundle,peterkokot/FOSElasticaBundle,ramuss/FazlandElasticaBundle | php | ## Code Before:
<?php
namespace FOQ\ElasticaBundle;
/**
* Deletes and recreates indexes
**/
class Reseter
{
protected $indexManager;
public function __construct(IndexManager $indexManager)
{
$this->indexManager = $indexManager;
}
/**
* Resets all indexes
*
* @return null... |
12750a0bfb64a46c8bd5fce4d6dce3d406969dc9 | .travis.yml | .travis.yml | sudo: false
language: "python"
branches:
only:
- master
matrix:
include:
- python: 2.7.13
env: TOXENV=py27
- python: pypy2.7-5.8.0
env: TOXENV=pypy
install:
- pip install -U pip setuptools wheel
- pip install tox codecov
script:
- tox
after_success:
- codecov
notifications:
... | sudo: false
language: python
dist: xenial
branches:
only:
- master
matrix:
include:
- python: 2.7.13
env: TOXENV=py27
- python: pypy2.7-6.0
env: TOXENV=pypy
install:
- pip install -U pip setuptools wheel
- pip install tox codecov
script:
- tox
after_success:
- codecov
notifica... | Upgrade to pypy 6.0 and xenial | Upgrade to pypy 6.0 and xenial
| YAML | mit | twisted/epsilon | yaml | ## Code Before:
sudo: false
language: "python"
branches:
only:
- master
matrix:
include:
- python: 2.7.13
env: TOXENV=py27
- python: pypy2.7-5.8.0
env: TOXENV=pypy
install:
- pip install -U pip setuptools wheel
- pip install tox codecov
script:
- tox
after_success:
- codecov
n... |
3364c0173d9d5fc3164598076949f7db19901012 | client/app/components/login/login.component.js | client/app/components/login/login.component.js | import template from "./login.html";
import controller from "./login.controller";
import "./login.styl";
let loginComponent = {
restrict: "E",
bindings: {},
template,
controller,
controllerAs: "ctrl"
};
export default loginComponent;
| import template from "./login.html";
import controller from "./login.controller";
import "./login.styl";
let loginComponent = {
template,
controller,
controllerAs: "ctrl"
};
export default loginComponent;
| Use implicit restrict and bindings | Use implicit restrict and bindings
An angular component is restricted to elements ("E") by default.
| JavaScript | mit | yunity/karrot-frontend,yunity/karrot-frontend,yunity/karrot-frontend,yunity/karrot-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend,yunity/foodsaving-frontend | javascript | ## Code Before:
import template from "./login.html";
import controller from "./login.controller";
import "./login.styl";
let loginComponent = {
restrict: "E",
bindings: {},
template,
controller,
controllerAs: "ctrl"
};
export default loginComponent;
## Instruction:
Use implicit restrict and bindings
An an... |
ddf57302aa50f380865d95d26baf4551b519ea98 | README.md | README.md | Warning
-------
You might find this code useful, but this doesn't actually work yet. If you make progress on it, go ahead and submit a PR!
freezerwatch
============
Returns health status from La Crosse Alerts sensors.
Useful for adding to your monitoring system--i.e., answers the
question "are my alarms actually ... | Warning
-------
You might find this code useful, but this doesn't actually work yet. If you make progress on it, go ahead and submit a PR!
freezerwatch
============
Want to monitor a fridge/freezer and make sure the door isn't left open or it doesn't die or lose power? La Crosse Technology sells alarms that do th... | Add a little better explanation on purpose | Add a little better explanation on purpose
| Markdown | bsd-2-clause | apiology/freezerwatch,apiology/freezerwatch | markdown | ## Code Before:
Warning
-------
You might find this code useful, but this doesn't actually work yet. If you make progress on it, go ahead and submit a PR!
freezerwatch
============
Returns health status from La Crosse Alerts sensors.
Useful for adding to your monitoring system--i.e., answers the
question "are my ... |
3086970f38b2ebc297764c24a333f2009d3f882f | proj/templates/site/about.html | proj/templates/site/about.html | {% extends "layout.html" %}
{% block page_id %}page-index{% endblock %}
{% block page_title %}关于Flask-Bootstrap{% endblock %}
{% block page_content %}
<div class="container">
<h1>关于proj</h1>
</div>
{% endblock %} | {% extends "layout.html" %}
{% block page_id %}page-index{% endblock %}
{% block page_title %}关于proj{% endblock %}
{% block page_content %}
<div class="container">
<h1>关于proj</h1>
</div>
{% endblock %} | Update title for index page | Update title for index page
| HTML | mit | 1045347128/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost | html | ## Code Before:
{% extends "layout.html" %}
{% block page_id %}page-index{% endblock %}
{% block page_title %}关于Flask-Bootstrap{% endblock %}
{% block page_content %}
<div class="container">
<h1>关于proj</h1>
</div>
{% endblock %}
## Instruction:
Update title for index page
## Code After:
{% extends "layou... |
9eb23f3dfe8167a25e99dd90c9ea7c229064ef24 | app/views/templates/post.blade.php | app/views/templates/post.blade.php | <div class="post">
@if (isset($post))
<h1>{{{ $post->title }}}</h1>
{{-- Escape html entities, format with paragraph tags --}}
{{-- Leading and trailing paragraph tags are required for leading and trailing paragraphs respectively --}}
<p>{{ str_replace(array("\n","\r\n"), "</p><p>",... | <div class="post col-md-10 col-lg-8">
@if (isset($post))
<h1>{{{ $post->title }}}</h1>
{{-- Escape html entities, format with paragraph tags --}}
{{-- Leading and trailing paragraph tags are required for leading and trailing paragraphs respectively --}}
<p>{{ str_replace(array("\n",... | Add column width to posts for larger displays | Add column width to posts for larger displays | PHP | mit | ashfordl/blog,ashfordl/blog | php | ## Code Before:
<div class="post">
@if (isset($post))
<h1>{{{ $post->title }}}</h1>
{{-- Escape html entities, format with paragraph tags --}}
{{-- Leading and trailing paragraph tags are required for leading and trailing paragraphs respectively --}}
<p>{{ str_replace(array("\n","\r... |
2e01c0dc0f5ad0fbec24b3d610e9815c6fcae7c2 | .travis.yml | .travis.yml | language: ruby
rvm: 2.5
sudo: required
cache: bundler
services: docker
dist: bionic
env:
matrix:
- TESTS="style unit" CHEF_VERSION="~> 14.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 15.0" CHEF_LICENSE=accept
before_install:
- chef --version &> /dev/null || curl -L https://www.getchef.co... | language: ruby
rvm: 2.5
sudo: required
cache: bundler
services: docker
dist: bionic
env:
matrix:
- TESTS="style unit" CHEF_VERSION="~> 14.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 15.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 16.0" CHEF_LICENSE=accept
before_inst... | Test Chef 16, chefdk version updated | Travis: Test Chef 16, chefdk version updated
| YAML | apache-2.0 | zuazo/ssh_authorized_keys-cookbook,zuazo/ssh_authorized_keys-cookbook,onddo/ssh_authorized_keys-cookbook,zuazo/ssh_authorized_keys-cookbook,onddo/ssh_authorized_keys-cookbook,onddo/ssh_authorized_keys-cookbook | yaml | ## Code Before:
language: ruby
rvm: 2.5
sudo: required
cache: bundler
services: docker
dist: bionic
env:
matrix:
- TESTS="style unit" CHEF_VERSION="~> 14.0" CHEF_LICENSE=accept
- TESTS="style unit" CHEF_VERSION="~> 15.0" CHEF_LICENSE=accept
before_install:
- chef --version &> /dev/null || curl -L https:... |
7a472072a18eb464220e9341005488fa79c3b1b3 | test/support/partials.html | test/support/partials.html | <div>
<ul class="items-">
<li class="item-" src="./list_item.html"></li>
</ul>
<embed src="./embedded_partial.html" type="text/x-end-dash"></embed>
</div>
| <div>
<ul class="items-">
<li class="item-" src="./list_item.html"></li>
</ul>
<div src="./embedded_partial.html" data-replace></div>
</div>
| Update test for new partial syntax | Update test for new partial syntax
| HTML | mit | Amicus/end-dash | html | ## Code Before:
<div>
<ul class="items-">
<li class="item-" src="./list_item.html"></li>
</ul>
<embed src="./embedded_partial.html" type="text/x-end-dash"></embed>
</div>
## Instruction:
Update test for new partial syntax
## Code After:
<div>
<ul class="items-">
<li class="item-" src="./list_item.html... |
3b2162277bf083ba20a042fa8ec73f3a2794a0f6 | packages/hc/hcg-minus-cairo.yaml | packages/hc/hcg-minus-cairo.yaml | homepage: http://rd.slavepianos.org/t/hcg-minus-cairo
changelog-type: ''
hash: 705f5cd6704fc04ef51d3b7abad936842e224c3327185166d7cc3f1311a8fb42
test-bench-deps: {}
maintainer: rd@slavepianos.org
synopsis: haskell cg (minus) (cairo rendering)
changelog: ''
basic-deps:
base: ==4.*
hcg-minus: ==0.15.*
filepath: -any... | homepage: http://rd.slavepianos.org/t/hcg-minus-cairo
changelog-type: ''
hash: 6c72b0fa328c4cda2dd04729c060761234607baa04693b0843e2819a20cdaa06
test-bench-deps: {}
maintainer: rd@slavepianos.org
synopsis: haskell cg (minus) (cairo rendering)
changelog: ''
basic-deps:
base: ==4.* && <5
hcg-minus: ==0.16.*
filepath... | Update from Hackage at 2017-11-22T02:31:23Z | Update from Hackage at 2017-11-22T02:31:23Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://rd.slavepianos.org/t/hcg-minus-cairo
changelog-type: ''
hash: 705f5cd6704fc04ef51d3b7abad936842e224c3327185166d7cc3f1311a8fb42
test-bench-deps: {}
maintainer: rd@slavepianos.org
synopsis: haskell cg (minus) (cairo rendering)
changelog: ''
basic-deps:
base: ==4.*
hcg-minus: ==0.15.*
... |
8da31f15f104633ce3df78b7730adb57434ab0ce | recipes/microed-tools/conda_build_config.yaml | recipes/microed-tools/conda_build_config.yaml | channel_targets:
- conda-forge microed-tools_dev
c_compiler: # [win]
- m2w64-toolchain # [win]
cxx_compiler: # [win]
- m2w64-toolchain # [win]
target_platform: # [win]
- win-64 # [win]
| channel_sources:
- conda-forge/label/microed-data_dev,conda-forge
channel_targets:
- conda-forge microed-tools_dev
c_compiler: # [win]
- m2w64-toolchain # [win]
cxx_compiler: # [win]
- m2w64-toolchain # [win]
target_platform: # [win]
- win-64 # [win]
| Correct dependency on microed-data prerelease | Correct dependency on microed-data prerelease
| YAML | bsd-3-clause | jakirkham/staged-recipes,goanpeca/staged-recipes,jakirkham/staged-recipes,ocefpaf/staged-recipes,johanneskoester/staged-recipes,conda-forge/staged-recipes,johanneskoester/staged-recipes,ocefpaf/staged-recipes,goanpeca/staged-recipes,conda-forge/staged-recipes | yaml | ## Code Before:
channel_targets:
- conda-forge microed-tools_dev
c_compiler: # [win]
- m2w64-toolchain # [win]
cxx_compiler: # [win]
- m2w64-toolchain # [win]
target_platform: # [win]
- win-64 # [win]
## Instruction:
Correct dependency on microed-data prerelease
## Code After:
... |
9977bbffb998230b2ded806eb02f9e81daba9f8e | Arduino/ADXL335/ADXL335.ino | Arduino/ADXL335/ADXL335.ino | int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
int zpin = A3;
int ypin = A4;
int xpin = A5;
void setup() {
Serial.begin(9600);
pinMode(vinpin, OUTPUT); digitalWrite(vinpin, HIGH);
pinMode(gndpin, OUTPUT); digitalWrite(gndpin, LOW);
pinMode(voutpin, INPUT);
pinMode(xpin, INPUT);
pinMode(ypin, INPUT);
... | int zpin = A3;
int ypin = A4;
int xpin = A5;
// Uncomment the following lines if you're using an ADXL335 on an
// Adafruit breakout board (https://www.adafruit.com/products/163)
// and want to plug it directly into (and power it from) the analog
// input pins of your Arduino board.
//int vinpin = A0;
//int voutpin = A... | Comment out power pins in ADXL example code. | Comment out power pins in ADXL example code.
With a note that you should uncomment them if you want to power the
ADXL335 (on Adafruit breakout) by plugging it directly into the Arduino.
| Arduino | bsd-3-clause | damellis/ESP,damellis/ESP | arduino | ## Code Before:
int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
int zpin = A3;
int ypin = A4;
int xpin = A5;
void setup() {
Serial.begin(9600);
pinMode(vinpin, OUTPUT); digitalWrite(vinpin, HIGH);
pinMode(gndpin, OUTPUT); digitalWrite(gndpin, LOW);
pinMode(voutpin, INPUT);
pinMode(xpin, INPUT);
pinMode... |
d3e537ed1b7de21849521be112d15908641af222 | tests/Unit/Http/Controllers/ProfileControllerTest.php | tests/Unit/Http/Controllers/ProfileControllerTest.php | <?php
namespace Tests\App\Http\Controllers;
use Tests\TestCase;
use Mockery as Mockery;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class ProfileControllerTest extends TestCase
{
/**
* @covers App\Http\Controllers\ProfileController::__construct
* @cove... | <?php
namespace Tests\App\Http\Controllers;
use Tests\TestCase;
use Mockery as Mockery;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class ProfileControllerTest extends TestCase
{
/**
* @covers App\Http\Controllers\ProfileController::__construct
* @cove... | Add new test to test that the Profile show will 404 if there is no access id passed in Update the invalid Access ID test to actually pass in an actual `accessid` instead of relying on no `accessid` is a invalid accessid | Add new test to test that the Profile show will 404 if there is no access id passed in
Update the invalid Access ID test to actually pass in an actual `accessid` instead of relying on no `accessid` is a invalid accessid
| PHP | mit | waynestate/base-site,waynestate/base-site | php | ## Code Before:
<?php
namespace Tests\App\Http\Controllers;
use Tests\TestCase;
use Mockery as Mockery;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class ProfileControllerTest extends TestCase
{
/**
* @covers App\Http\Controllers\ProfileController::__constr... |
7b066fe33488ddc389c4545e93647a8e59e69a2b | src/Mod/Import/CMakeLists.txt | src/Mod/Import/CMakeLists.txt |
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
IF (BUILD_GUI)
PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc)
ENDIF (BUILD_GUI)
ADD_CUSTOM_TARGET(ImportRC ALL
SOURCES ${Import_QRC_SRCS}
)
IF (BUILD_GUI)
fc_target_copy_resource(ImportRC
${CMAKE_CURRENT_BINARY... |
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
IF (BUILD_GUI)
PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc)
ENDIF (BUILD_GUI)
ADD_CUSTOM_TARGET(ImportRC ALL
SOURCES ${Import_QRC_SRCS}
)
IF (BUILD_GUI)
fc_target_copy_resource(ImportRC
${CMAKE_CURRENT_BINARY... | Fix missing file during installation (Import_rc.py) | Fix missing file during installation (Import_rc.py)
| Text | lgpl-2.1 | Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master | text | ## Code Before:
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
IF (BUILD_GUI)
PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc)
ENDIF (BUILD_GUI)
ADD_CUSTOM_TARGET(ImportRC ALL
SOURCES ${Import_QRC_SRCS}
)
IF (BUILD_GUI)
fc_target_copy_resource(ImportRC
${CMAK... |
8ecac6b8fef8df09b5f8c80a2a88da2149923a56 | app/assets/javascripts/pageflow/editor/initializers/setup_hotkeys.js | app/assets/javascripts/pageflow/editor/initializers/setup_hotkeys.js | pageflow.app.addInitializer(function(options) {
var KEY_A = 65;
$(document).on('keydown', function(event) {
if (pageflow.features.isEnabled('atmo') && event.altKey && event.which === KEY_A) {
if (pageflow.atmo.disabled) {
pageflow.atmo.enable();
}
else {
pageflow.atmo.disable(... | pageflow.app.addInitializer(function(options) {
var KEY_A = 65;
var KEY_X = 88;
$(document).on('keydown', function(event) {
if (event.altKey && event.which === KEY_A) {
if (pageflow.features.isEnabled('atmo')) {
if (pageflow.atmo.disabled) {
pageflow.atmo.enable();
}
e... | Add a Hotkey to Edit the Current Page | Add a Hotkey to Edit the Current Page
| JavaScript | mit | luatdolphin/pageflow,YoussefChafai/pageflow,grgr/pageflow,tf/pageflow,YoussefChafai/pageflow,codevise/pageflow,Modularfield/pageflow,BenHeubl/pageflow,BenHeubl/pageflow,tilsammans/pageflow,grgr/pageflow,Modularfield/pageflow,schoetty/pageflow,tilsammans/pageflow,tf/pageflow-dependabot-test,tf/pageflow-dependabot-test,M... | javascript | ## Code Before:
pageflow.app.addInitializer(function(options) {
var KEY_A = 65;
$(document).on('keydown', function(event) {
if (pageflow.features.isEnabled('atmo') && event.altKey && event.which === KEY_A) {
if (pageflow.atmo.disabled) {
pageflow.atmo.enable();
}
else {
pagefl... |
a04990863403818ba41e1d3a3f66c3db868fefbb | .travis.yml | .travis.yml | language: go
go:
- 1.3
- release
- tip
install: go get -d -t -v ./... | language: go
go:
- 1.3.3
- 1.4.1
install: go get -d -t -v ./...
| Fix Go versions for Travis. | Fix Go versions for Travis.
| YAML | isc | Stash-Crypto/btcwallet,btcsuite/btcwallet,synrg-labs/btcwallet,Stash-Crypto/btcwallet,btcsuite/btcwallet,jrick/dcrwallet,jrick/btcwallet,decred/dcrwallet,jrick/btcwallet,Roasbeef/btcwallet,synrg-labs/btcwallet,jrick/dcrwallet,decred/dcrwallet,Roasbeef/btcwallet | yaml | ## Code Before:
language: go
go:
- 1.3
- release
- tip
install: go get -d -t -v ./...
## Instruction:
Fix Go versions for Travis.
## Code After:
language: go
go:
- 1.3.3
- 1.4.1
install: go get -d -t -v ./...
|
e4ebbf83f77f6ce2b980d0976a9d3e7e029f90a1 | TraversalTests/ReducibleOfTests.swift | TraversalTests/ReducibleOfTests.swift | // Copyright (c) 2014 Rob Rix. All rights reserved.
import Traversal
import XCTest
class ReducibleOfTests: XCTestCase {
func testConstructionFromSequenceType() {
let sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9]
XCTAssertEqual(Traversal.reduce(ReducibleOf(sequence: sequence), 0, +), 45)
}
}
| // Copyright (c) 2014 Rob Rix. All rights reserved.
import Traversal
import XCTest
class ReducibleOfTests: XCTestCase {
func testConstructionFromSequenceType() {
let sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9]
XCTAssertEqual(Traversal.reduce(ReducibleOf(sequence: sequence), 0, +), 45)
}
func testConstructionFromR... | Test ReducibleOf construction from ReducibleType. | Test ReducibleOf construction from ReducibleType.
| Swift | mit | robrix/Traversal,robrix/Traversal | swift | ## Code Before:
// Copyright (c) 2014 Rob Rix. All rights reserved.
import Traversal
import XCTest
class ReducibleOfTests: XCTestCase {
func testConstructionFromSequenceType() {
let sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9]
XCTAssertEqual(Traversal.reduce(ReducibleOf(sequence: sequence), 0, +), 45)
}
}
## Instru... |
318e87f828a31e19cc4e6880cbbbc08ed16cd6fb | src/resources/views/article/blog.blade.php | src/resources/views/article/blog.blade.php | @if($article->param('show_title'))
<h3 class="article-title">
<a href="{{ url($article->alias) }}">{{ $article->present()->title }}</a>
</h3>
@endif
<div class="article-details">
@if($article->param('show_author'))
<small class="inline-help">Written by: {{ $article->present()->author }}</small>
<br>
... | @if($article->param('show_title'))
<h3 class="article-title">
<a href="{{ url($article->alias) }}">{{ $article->present()->title }}</a>
</h3>
@endif
<div class="article-details">
@if($article->param('show_author'))
<p class="article-author">Written by: {{ $article->present()->author }}</p>
@endif
... | Add own class for each article attribute. | Add own class for each article attribute.
| PHP | mit | yajra/cms-core,yajra/cms-core | php | ## Code Before:
@if($article->param('show_title'))
<h3 class="article-title">
<a href="{{ url($article->alias) }}">{{ $article->present()->title }}</a>
</h3>
@endif
<div class="article-details">
@if($article->param('show_author'))
<small class="inline-help">Written by: {{ $article->present()->author }}</sm... |
250a86dc4041f75488d78653d9566b348e1b70c9 | src/searchclient/dlgfilters.cpp | src/searchclient/dlgfilters.cpp |
DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters,
QWidget *parent)
: QDialog(parent, Qt::Dialog) {
setWindowTitle(tr("strigiclient - Edit filters"));
filterwidget = new FilterWidget();
filterwidget->setFilters(filters);
QPushButton* ok = new QPushButton(tr("&Ok"));... |
DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters,
QWidget *parent)
: QDialog(parent, Qt::Dialog) {
setWindowTitle(tr("strigiclient - Edit filters"));
QLabel* explanation = new QLabel(tr("Define filters that determine which files will be included and which will be excluded ... | Add small explanation to the filter dialog. | Add small explanation to the filter dialog.
svn path=/trunk/playground/base/strigi/; revision=609264
| C++ | lgpl-2.1 | KDE/strigi | c++ | ## Code Before:
DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters,
QWidget *parent)
: QDialog(parent, Qt::Dialog) {
setWindowTitle(tr("strigiclient - Edit filters"));
filterwidget = new FilterWidget();
filterwidget->setFilters(filters);
QPushButton* ok = new QPushBu... |
d72bf615df736b1cddd6bb3901e63488acbb5ea4 | test/test_sync.ml | test/test_sync.ml | open Webtest.Suite
open Webtest.Utils
let test_bracket_succeed () =
let state = ref `uninitialised in
let setup () = state := `test_start; state in
let teardown state =
assert_equal !state `test_end;
state := `torn_down
in
Sync.bracket
setup
(fun state ->
assert_equal !state `test_start... | open Webtest.Suite
let test_bracket_succeed () =
let state = ref `uninitialised in
let setup () = state := `test_start; state in
let teardown state =
assert_equal !state `test_end;
state := `torn_down
in
Sync.bracket
setup
(fun state ->
assert_equal !state `test_start;
state := `t... | Remove an unused module open | Remove an unused module open
Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@gmail.com>
| OCaml | mit | johnelse/ocaml-webtest,johnelse/ocaml-webtest,johnelse/ocaml-webtest | ocaml | ## Code Before:
open Webtest.Suite
open Webtest.Utils
let test_bracket_succeed () =
let state = ref `uninitialised in
let setup () = state := `test_start; state in
let teardown state =
assert_equal !state `test_end;
state := `torn_down
in
Sync.bracket
setup
(fun state ->
assert_equal !s... |
ba84740e7ba0edd709c9cd076a7dce83a6c91a30 | research/mlt_quality_research.py | research/mlt_quality_research.py |
import pprint
from elasticsearch import Elasticsearch
'''Inside ipython:
[(r['_score'], r['_source']['Header']['En'], r['_source']['UnitTypeDesc'])for r in es.mlt(index='bhp10', doc_type='places', id=71433, mlt_fields=related_fields, search_types=['places','personalities','photoUnits','familyNames'], search_size=40)... |
import pprint
from elasticsearch import Elasticsearch
'''Inside ipython:
[(r['_score'], r['_source']['Header']['En'], r['_source']['UnitTypeDesc'])for r in es.mlt(index='bhp10', doc_type='places', id=71433, mlt_fields=related_fields, search_types=['places','personalities','photoUnits','familyNames'], search_size=40)... | Add ES search example, similar to Mongo related FTS | Add ES search example, similar to Mongo related FTS
| Python | agpl-3.0 | Beit-Hatfutsot/dbs-back,Beit-Hatfutsot/dbs-back,Beit-Hatfutsot/dbs-back,Beit-Hatfutsot/dbs-back | python | ## Code Before:
import pprint
from elasticsearch import Elasticsearch
'''Inside ipython:
[(r['_score'], r['_source']['Header']['En'], r['_source']['UnitTypeDesc'])for r in es.mlt(index='bhp10', doc_type='places', id=71433, mlt_fields=related_fields, search_types=['places','personalities','photoUnits','familyNames'],... |
15d4994308fa34e10f5cac3f66bfcc1a8de00edf | home-server-backend/src/main/java/nl/homeserver/energie/VerbruikenEnKosten.java | home-server-backend/src/main/java/nl/homeserver/energie/VerbruikenEnKosten.java | package nl.homeserver.energie;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Objects;
public class VerbruikenEnKosten {
private final Collection<VerbruikKosten> all;
public VerbruikenEnKosten(final Collection<VerbruikKosten> all) {
this.all = all;
}
private BigD... | package nl.homeserver.energie;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Objects;
import javax.annotation.Nullable;
class VerbruikenEnKosten {
private final Collection<VerbruikKosten> all;
VerbruikenEnKosten(final Collection<VerbruikKosten> all) {
this.all = all;
... | Fix issues found by SonarCloud | Fix issues found by SonarCloud
| Java | apache-2.0 | bassages/home-server,bassages/homecontrol,bassages/homecontrol,bassages/home-server | java | ## Code Before:
package nl.homeserver.energie;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Objects;
public class VerbruikenEnKosten {
private final Collection<VerbruikKosten> all;
public VerbruikenEnKosten(final Collection<VerbruikKosten> all) {
this.all = all;
}
... |
d7b0426f3e800379e04b66ce3e3b91394adddcfa | src/vector/rotationMatrix.js | src/vector/rotationMatrix.js | import "./";
orb.vector.rotationMatrix = function(α, e) {
var cosα = Math.cos(α),
sinα = Math.sin(α);
switch(e) {
case 1:
return [
1, 0, 0,
0, cosα, sinα,
0, -sinα, cosα
];
case 2:
return [
cosα, 0, -sinα,
0, 1, 0,
sin... | import "./";
orb.vector.rotationMatrix = function(α, e) {
α = α % ( 2*Math.PI );
var cosα, sinα;
if ( α === 0 ) {
cosα = 1;
sinα = 0;
} else if ( α === Math.PI/2 || α === -3/2*Math.PI ) {
cosα = 0;
sinα = 1;
} else if ( α === Math.PI || α === -Math.PI ) {
cosα = -1;
sinα = 0;
} e... | Return exact values for α = z * 1/2 pi | [CHANGE] Return exact values for α = z * 1/2 pi
| JavaScript | mit | benelsen/orb | javascript | ## Code Before:
import "./";
orb.vector.rotationMatrix = function(α, e) {
var cosα = Math.cos(α),
sinα = Math.sin(α);
switch(e) {
case 1:
return [
1, 0, 0,
0, cosα, sinα,
0, -sinα, cosα
];
case 2:
return [
cosα, 0, -sinα,
0, 1, ... |
32e1c59ea816aaf921905e4717260988763581d4 | .travis/deploy.sh | .travis/deploy.sh | set -e
# update current version number to a TAG version if this is a tag build
if [ ! -z "$TRAVIS_TAG" ]
then
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG for release"
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$TRAVIS_TAG
else
echo "not on... | set -e
# update current version number to a TAG version if this is a tag build
if [ ! -z "$TRAVIS_TAG" ]
then
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG for release"
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$TRAVIS_TAG
else
echo "not on... | Fix shredding taking care of dirs | Fix shredding taking care of dirs
| Shell | apache-2.0 | CurrencyFair/OneSignal-Java-SDK,CurrencyFair/OneSignal-Java-SDK | shell | ## Code Before:
set -e
# update current version number to a TAG version if this is a tag build
if [ ! -z "$TRAVIS_TAG" ]
then
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG for release"
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$TRAVIS_TAG
else
... |
1bf70e6068b53ff8178547e1117359a6cc93ac94 | server.js | server.js | // vim: set ts=2 et:
var express = require('express'),
app = express(),
http = require('http').createServer(app),
io = require('socket.io').listen(http),
PeerServer = require('peer').PeerServer,
server = new PeerServer({port: 9000}),
peers = {};
server.on('connection', function(id) {
consol... | // vim: set ts=2 et:
var express = require('express'),
app = express(),
http = require('http').createServer(app),
io = require('socket.io').listen(http),
PeerServer = require('peer').PeerServer,
server = new PeerServer({port: 9000}),
peers = {};
server.on('connection', function(id) {
consol... | Save peer id in socket ds. | Save peer id in socket ds.
| JavaScript | mit | pbanaszkiewicz/pitt | javascript | ## Code Before:
// vim: set ts=2 et:
var express = require('express'),
app = express(),
http = require('http').createServer(app),
io = require('socket.io').listen(http),
PeerServer = require('peer').PeerServer,
server = new PeerServer({port: 9000}),
peers = {};
server.on('connection', functio... |
bb0e86778b6c6d6d1f2819683ffc3147b74b53b1 | libs/readme.md | libs/readme.md | This directory should contain the library dependencies required to build this RimWorld mod.
Besides the .NET Core libraries this solution has dependencies on the following libraries:
- From RimWorld core Game:
- Assembly-CSharp (RimWorld game logic)
- UnityEngine (Unity Game Engine)
- Third Party:
- (Harm... | This directory should contain the library dependencies required to build this RimWorld mod.
Besides the .NET Core libraries this solution has dependencies on the following libraries:
- From RimWorld core Game:
- Assembly-CSharp (RimWorld game logic)
- UnityEngine (Unity Game Engine)
- Third Party:
- [Harm... | Fix mix up between parenthesis and brackets in markdown... | Fix mix up between parenthesis and brackets in markdown...
| Markdown | mit | neitsa/PrepareLanding,neitsa/PrepareLanding | markdown | ## Code Before:
This directory should contain the library dependencies required to build this RimWorld mod.
Besides the .NET Core libraries this solution has dependencies on the following libraries:
- From RimWorld core Game:
- Assembly-CSharp (RimWorld game logic)
- UnityEngine (Unity Game Engine)
- Third Pa... |
28c20bc68085aa2250fef5664175d890ddc35cb9 | app/views/backend/analyses/show.html.haml | app/views/backend/analyses/show.html.haml | - main_toolbar do |t|
= t.edit resource
= main_informations attachment: true do
= attributes_list do |l|
- l.attribute :number
- l.attribute :reference_number
- l.attribute :sensor, url: true
- l.attribute :product, url: true
- l.attribute :sampler, url: true
- l.attribute :sampled_at
-... | - main_toolbar do |t|
= t.edit resource
= main_informations attachment: true do
= attributes_list do |l|
- l.attribute :number
- l.attribute :reference_number
- l.attribute :sensor, url: true
- l.attribute :product, url: true
- l.attribute :sampler, url: true
- l.attribute :sampled_at
-... | Fix missing test on analysis view. | Fix missing test on analysis view.
| Haml | agpl-3.0 | ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre,ekylibre/ekylibre | haml | ## Code Before:
- main_toolbar do |t|
= t.edit resource
= main_informations attachment: true do
= attributes_list do |l|
- l.attribute :number
- l.attribute :reference_number
- l.attribute :sensor, url: true
- l.attribute :product, url: true
- l.attribute :sampler, url: true
- l.attribute :... |
e896e3deafb0844e6b790fa81e5240790d1c5434 | src/CacheJsonToArticleConverter.cpp | src/CacheJsonToArticleConverter.cpp |
ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache)
{
Json::Reader reader;
Json::Value document;
bool success = reader.parse(json, document, false);
if(!success) {
throw WalkerException("Error parsing JSON");
}
// get all... |
ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache)
{
Json::Reader reader;
Json::Value document;
bool success = reader.parse(json, document, false);
if(!success) {
throw WalkerException("Error parsing JSON");
}
// get all... | Modify json cache implementation to match null/empty array behavior | Modify json cache implementation to match null/empty array behavior
| C++ | mit | dueringa/WikiWalker | c++ | ## Code Before:
ArticleCollection& CacheJsonToArticleConverter::convertToArticle(std::string json, ArticleCollection& articleCache)
{
Json::Reader reader;
Json::Value document;
bool success = reader.parse(json, document, false);
if(!success) {
throw WalkerException("Error parsing JSON");
}... |
c7e65db27da59ddf221d1720362434581ef30311 | test/unit/locale/test_locale.py | test/unit/locale/test_locale.py |
import os
import unittest
try:
from subprocess import check_output
except ImportError:
from subprocess import Popen, PIPE, CalledProcessError
def check_output(*popenargs, **kwargs):
"""Lifted from python 2.7 stdlib."""
if 'stdout' in kwargs:
raise ValueError('stdout argument n... |
import os
import unittest
import string
import sys
try:
from subprocess import check_output
except ImportError:
from subprocess import Popen, PIPE, CalledProcessError
def check_output(*popenargs, **kwargs):
"""Lifted from python 2.7 stdlib."""
if 'stdout' in kwargs:
raise Valu... | Make test_translations test our tree | Make test_translations test our tree
In order to run the correct classes, Python test framework adjusts
sys.path. However, these changes are not propagated to subprocesses.
Therefore, the test actually tries to test installed Swift, not
the one in which it is running.
The usual suggestion is to run "python setup.py d... | Python | apache-2.0 | swiftstack/swift,rackerlabs/swift,zackmdavis/swift,williamthegrey/swift,eatbyte/Swift,matthewoliver/swift,Seagate/swift,anishnarang/gswift,clayg/swift,shibaniahegde/OpenStak_swift,openstack/swift,prashanthpai/swift,matthewoliver/swift,psachin/swift,nadeemsyed/swift,AfonsoFGarcia/swift,prashanthpai/swift,smerritt/swift,... | python | ## Code Before:
import os
import unittest
try:
from subprocess import check_output
except ImportError:
from subprocess import Popen, PIPE, CalledProcessError
def check_output(*popenargs, **kwargs):
"""Lifted from python 2.7 stdlib."""
if 'stdout' in kwargs:
raise ValueError('s... |
a038a94c802839ce25a1767eb7ea96149b27ae54 | lib/active_merchant/billing/integrations/paydollar/helper.rb | lib/active_merchant/billing/integrations/paydollar/helper.rb | module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module Paydollar
class Helper < ActiveMerchant::Billing::Integrations::Helper
def initialize(order, account, options = {})
super
add_field('payType', 'N') # normal sale and not just... | module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module Paydollar
class Helper < ActiveMerchant::Billing::Integrations::Helper
def initialize(order, account, options = {})
super
add_field('payType', 'N') # normal sale and not just... | Remove extraneous checking of currency code | Remove extraneous checking of currency code
| Ruby | mit | cremalab/active_merchant,icaroseara/active_merchant,planetargon/active_merchant,agseco/active_merchant,npverni/active_merchant,reinteractive/active_merchant,tangosource/active_merchant,CraigAPayne/active_merchant,paulsponagl/active_merchant,Kagetsuki/active_merchant,getaroom/active_merchant,Trexle/active_merchant,vivek... | ruby | ## Code Before:
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module Paydollar
class Helper < ActiveMerchant::Billing::Integrations::Helper
def initialize(order, account, options = {})
super
add_field('payType', 'N') # normal s... |
6ece0f38b01fa70a2ee13477045c6d887cc26fa5 | meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_42.0.bb | meta-gnome/recipes-gnome/gnome-shell/gnome-shell-extensions_42.0.bb | SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"
SRC_URI[archive.sha256s... | SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"
SRC_URI[archive.sha256s... | Stop copying gnome-classic session to wayland | gnome-shell-extensions: Stop copying gnome-classic session to wayland
It was me who introduced gnome-classic for wayland in
342de9bf51f27362e7d1d4f1d55d8548cfa7504c.
In the commit message I wrote:
"Enable gnome-classic session for wayland
Wonder why upstream does not ship this: Session runs perfectly fine"
Seems ups... | BitBake | mit | openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded | bitbake | ## Code Before:
SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"
SRC_URI... |
bfa446d5fc399b685419ad00c376bcd9a13a8605 | mediacrush/decorators.py | mediacrush/decorators.py | from flask import jsonify, request
from functools import wraps
import json
def json_output(f):
@wraps(f)
def wrapper(*args, **kwargs):
def jsonify_wrap(obj):
callback = request.args.get('callback', False)
jsonification = jsonify(obj)
if callback:
jso... | from flask import jsonify, request
from functools import wraps
import json
jsonp_notice = """
// MediaCrush supports Cross Origin Resource Sharing requests.
// There is no reason to use JSONP; please use CORS instead.
// For more information, see https://mediacru.sh/docs/api"""
def json_output(f):
@wraps(f)
d... | Add JSONP notice to API | Add JSONP notice to API | Python | mit | nerdzeu/NERDZCrush,MediaCrush/MediaCrush,roderickm/MediaCrush,roderickm/MediaCrush,nerdzeu/NERDZCrush,MediaCrush/MediaCrush,nerdzeu/NERDZCrush,roderickm/MediaCrush | python | ## Code Before:
from flask import jsonify, request
from functools import wraps
import json
def json_output(f):
@wraps(f)
def wrapper(*args, **kwargs):
def jsonify_wrap(obj):
callback = request.args.get('callback', False)
jsonification = jsonify(obj)
if callback:
... |
906610fec25376973026e655d209a906666c383a | php/conf/conf.ini | php/conf/conf.ini | [GLOBAL_CONFIGURATION]
www.user = apache
www.group = apache
sql.host = localhost
sql.user = nobody
sql.passwd =
sql.database = doc_editor
vcs.type = svn
data.path = "data/"
php.bin = "/local/php/bin/php"
phd.bin = "/local/php/bin/phd"
xmllint.bin = "/usr/bin/xmllint" | [GLOBAL_CONFIGURATION]
www.user = apache
www.group = apache
sql.host = localhost
sql.user = nobody
sql.passwd =
sql.database = doc_editor
vcs.type = svn
data.path = "data/"
php.bin = "/usr/bin/php"
phd.bin = "/local/oldphp/bin/phd"
xmllint.bin = "/usr/bin/xmllint"
| Fix PHP & PHD binaire | Fix PHP & PHD binaire
| INI | lgpl-2.1 | vrkansagara/web-doc-editor,vrkansagara/web-doc-editor,vrkansagara/web-doc-editor,vrkansagara/web-doc-editor | ini | ## Code Before:
[GLOBAL_CONFIGURATION]
www.user = apache
www.group = apache
sql.host = localhost
sql.user = nobody
sql.passwd =
sql.database = doc_editor
vcs.type = svn
data.path = "data/"
php.bin = "/local/php/bin/php"
phd.bin = "/local/php/bin/phd"
xmllint.bin = "/usr/bin/xmllint"
## Instruction:
Fix PHP & PHD... |
8a88563d3409afd8dbf14563b62dc6a357657269 | .travis.yml | .travis.yml | os:
- linux
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
language: c
compiler:
- gcc
- clang
install:
# powercap dependency
- git clone git@github.com:powercap/powercap.git libpowercap
- cd libpowercap
- mkdir _build
- cd _build
- cmake -DCMAKE_INSTALL_PREFIX=_... | os:
- linux
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
language: c
compiler:
- gcc
- clang
install:
# powercap dependency
- git clone https://github.com/powercap/powercap.git libpowercap
- cd libpowercap
- mkdir _build
- cd _build
- cmake -DCMAKE_INSTALL_PREF... | Use https to clone dependencies for Travis CI | Use https to clone dependencies for Travis CI
| YAML | bsd-3-clause | powercap/raplcap,powercap/raplcap | yaml | ## Code Before:
os:
- linux
addons:
apt:
sources:
- kubuntu-backports
packages:
- cmake
language: c
compiler:
- gcc
- clang
install:
# powercap dependency
- git clone git@github.com:powercap/powercap.git libpowercap
- cd libpowercap
- mkdir _build
- cd _build
- cmake -DCMAKE_... |
2ea25e940ebd77ce1910e47cf61e7b834411de05 | app/controllers/HomeController.php | app/controllers/HomeController.php | <?php
class HomeController extends BaseController {
protected $page;
protected $issue;
function __construct(Page $page, Issue $issue)
{
$this->page = $page;
$this->issue = $issue;
}
public function showPage($slug)
{
$page = $this->page->where('slug', $slug)->first();
if (empty($page) || ! $page->is_v... | <?php
class HomeController extends BaseController {
protected $page;
protected $issue;
function __construct(Page $page, Issue $issue)
{
$this->page = $page;
$this->issue = $issue;
}
public function showPage($slug)
{
$page = $this->page->where('slug', $slug)->first();
if (empty($page) || ! $page->is_v... | Add eager loading for TOC | Add eager loading for TOC
| PHP | bsd-2-clause | chipotle/quill,chipotle/quill,chipotle/quill,chipotle/quill | php | ## Code Before:
<?php
class HomeController extends BaseController {
protected $page;
protected $issue;
function __construct(Page $page, Issue $issue)
{
$this->page = $page;
$this->issue = $issue;
}
public function showPage($slug)
{
$page = $this->page->where('slug', $slug)->first();
if (empty($page) ... |
908121c3b52ca843aa01504f211c56bd32859360 | scripts/golang.sh | scripts/golang.sh | set -o errexit
set -o nounset
GO_VERSION="1.7.3"
GOROOT=$HOME/go
GOPATH=$HOME/workspace/go
echo "Install Go "$GO_VERSION" at "$GOROOT
cd /tmp
wget https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz
tar -xvf go$GO_VERSION.linux-amd64.tar.gz
rm -rf $GOROOT
mkdir -p $GOROOT
mv ./go/* $GOROOT
go ge... | set -o errexit
set -o nounset
GO_VERSION="1.7.3"
GOROOT=$HOME/go
GOPATH=$HOME/workspace/go
echo "Install Go "$GO_VERSION" at "$GOROOT
cd /tmp
wget https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz
tar -xvf go$GO_VERSION.linux-amd64.tar.gz
rm -rf $GOROOT
mkdir -p $GOROOT
mv ./go/* $GOROOT
go ge... | Add nash install with link to make stuff easier | Add nash install with link to make stuff easier
| Shell | mit | katcipis/workbench,katcipis/mise.en.place | shell | ## Code Before:
set -o errexit
set -o nounset
GO_VERSION="1.7.3"
GOROOT=$HOME/go
GOPATH=$HOME/workspace/go
echo "Install Go "$GO_VERSION" at "$GOROOT
cd /tmp
wget https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz
tar -xvf go$GO_VERSION.linux-amd64.tar.gz
rm -rf $GOROOT
mkdir -p $GOROOT
mv ./go/... |
8dc0e36a9bc6a3c182af2ace93b9b766dfbfa80e | bosh-monitor/spec/support/buffered_logger.rb | bosh-monitor/spec/support/buffered_logger.rb | require 'rspec'
require 'logger'
require 'mono_logger'
require 'logging'
module BufferedLogger
# returns the log as a string
def log_string
@test_log_buffer.string
end
def logger
@test_logger
end
end
RSpec.configure do |c|
c.include(BufferedLogger)
c.before do
@test_log_buffer = StringIO.n... | require 'rspec'
require 'logger'
require 'logging'
module BufferedLogger
# returns the log as a string
def log_string
@test_log_buffer.string
end
def logger
@test_logger
end
end
RSpec.configure do |c|
c.include(BufferedLogger)
c.before do
@test_log_buffer = StringIO.new
@test_logger = ... | Switch bosh-monitor to use Logging instead of MonoLogger | Switch bosh-monitor to use Logging instead of MonoLogger
[#81611698]
Signed-off-by: Karl Isenberg <ad8fead3baba6d58cb6c266b80834d1b78f48a29@pivotal.io>
| Ruby | apache-2.0 | barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh | ruby | ## Code Before:
require 'rspec'
require 'logger'
require 'mono_logger'
require 'logging'
module BufferedLogger
# returns the log as a string
def log_string
@test_log_buffer.string
end
def logger
@test_logger
end
end
RSpec.configure do |c|
c.include(BufferedLogger)
c.before do
@test_log_buf... |
fc15beb93471837ed86039ae88ce9e264763c4e1 | app/assets/javascripts/templates/metadata_accordion.handlebars | app/assets/javascripts/templates/metadata_accordion.handlebars | <div class="accordion">
{{#each category in content}}
<div class="accordion-group">
<div class="accordion-heading">
<a {{bindAttr href="category.collapsibleHref"}} class="accordion-toggle" data-toggle="collapse" data-parent="metadata-accordion">
{{category.name}}
</a>
</div>
... | <div class="accordion">
{{#each category in content}}
<div class="accordion-group">
<div class="accordion-heading">
<a {{bindAttr href="category.collapsibleHref"}} class="accordion-toggle" data-toggle="collapse" data-parent="metadata-accordion">
{{category.name}}
</a>
</div>
... | Use Ember.Select for listing of metadata | Use Ember.Select for listing of metadata
| Handlebars | mit | textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa,textlab/rglossa,textlab/glossa | handlebars | ## Code Before:
<div class="accordion">
{{#each category in content}}
<div class="accordion-group">
<div class="accordion-heading">
<a {{bindAttr href="category.collapsibleHref"}} class="accordion-toggle" data-toggle="collapse" data-parent="metadata-accordion">
{{category.name}}
</... |
a1a796984d1f48b1a3f0eba46c28b36d866fb178 | master/releases/index.md | master/releases/index.md | ---
title: Releases
---
The following table shows component versioning for Calico **{{ page.version }}**.
Use the version selector at the top-right of this page to view a different release.
## master
| Component | Version |
|------------------------|---------|
| felix | latest |
| ca... | ---
title: Releases
---
The following table shows component versioning for Calico **{{ page.version }}**.
Use the version selector at the top-right of this page to view a different release.
## master
| Component | Version |
|------------------------|---------|
| felix | latest |
| ca... | Add kube-policy-controller's version to the master versions file. | Add kube-policy-controller's version to the master versions file.
| Markdown | apache-2.0 | bcreane/calico,gunjan5/calico,heschlie/calico,gunjan5/calico,gunjan5/calico,caseydavenport/calico,gunjan5/calico,tomdee/calico,heschlie/calico,bcreane/calico,tomdee/calico,caseydavenport/calico,heschlie/calico,heschlie/calico,tomdee/calico,bcreane/calico,bcreane/calico,caseydavenport/calico,gunjan5/calico,tomdee/calico... | markdown | ## Code Before:
---
title: Releases
---
The following table shows component versioning for Calico **{{ page.version }}**.
Use the version selector at the top-right of this page to view a different release.
## master
| Component | Version |
|------------------------|---------|
| felix ... |
e07f095944a0a6edd125d75f4980a45fc10c6dfd | wiblog/util/comments.py | wiblog/util/comments.py |
from fragdev.contact import validate_ham
from django.forms import ModelForm
from django import forms
from wiblog.models import Comment
class CommentForm(ModelForm):
verify = forms.CharField(label='Anti-spam: Type in the word "power"',validators=[validate_ham],max_length=5)
class Meta:
model = Comment
fields = (... |
from django.forms import ModelForm
from django import forms
from fragdev.util.validate_ham import ANTI_SPAM, validate_ham
from wiblog.models import Comment
class CommentForm(ModelForm):
verify = forms.CharField(label='Anti-spam: Type in the word "{}"'\
.format(ANTI_SPAM),
validators=[... | Fix wiblog's use of the anti-spam validator | Fix wiblog's use of the anti-spam validator
| Python | agpl-3.0 | lo-windigo/fragdev,lo-windigo/fragdev | python | ## Code Before:
from fragdev.contact import validate_ham
from django.forms import ModelForm
from django import forms
from wiblog.models import Comment
class CommentForm(ModelForm):
verify = forms.CharField(label='Anti-spam: Type in the word "power"',validators=[validate_ham],max_length=5)
class Meta:
model = Comm... |
67a6a6ec06462dcd5b6f88f7d6e172e332d31936 | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | <!--
# Title Line Template: [Brief statement describing what this pull request fixes.]
Use the title line as the title of your pull request, then delete these lines.
-->
## Description
Include a high-level description for what the pull request fixes and links to Github issues it resolves.
## Additional informatio... | <!--
# Title Line Template: [Brief statement describing what this pull request fixes.]
Use the title line as the title of your pull request, then delete these lines.
-->
## Description
Include a high-level description for what the pull request fixes and links to Github issues it resolves.
## Additional informatio... | Update DoD checklist on PR template to include Pa11y tests | Update DoD checklist on PR template to include Pa11y tests
| Markdown | mit | AusDTO/gov-au-ui-kit,AusDTO/gov-au-ui-kit,AusDTO/gov-au-ui-kit | markdown | ## Code Before:
<!--
# Title Line Template: [Brief statement describing what this pull request fixes.]
Use the title line as the title of your pull request, then delete these lines.
-->
## Description
Include a high-level description for what the pull request fixes and links to Github issues it resolves.
## Addit... |
c5fd49edb029cf0fb290bb957d9bdc138e156402 | datasets/templates/datasets/taxonomy_node_mini_info.html | datasets/templates/datasets/taxonomy_node_mini_info.html | {% load dataset_templatetags %}
<table class="ui unstackable table" width="100%">
<tbody>
<td>Hierarchy</td>
<td>
<div class="ui list">
{% for hierarchy_path in node.hierarchy_paths %}
<div class="item">
... | {% load dataset_templatetags %}
<table class="ui unstackable table" width="100%">
<tbody>
<td>Hierarchy</td>
<td>
<div class="ui list">
{% for hierarchy_path in node.hierarchy_paths %}
<div class="item">
... | Add link to categories in popup | Add link to categories in popup
| HTML | agpl-3.0 | MTG/freesound-datasets,MTG/freesound-datasets,MTG/freesound-datasets,MTG/freesound-datasets | html | ## Code Before:
{% load dataset_templatetags %}
<table class="ui unstackable table" width="100%">
<tbody>
<td>Hierarchy</td>
<td>
<div class="ui list">
{% for hierarchy_path in node.hierarchy_paths %}
<div class="item">
... |
86bbe814ae12aedb58d12a5c869896bfeab8eb4f | README.md | README.md | A little command-line stalker using the Clearbit API
# Installation
```
go get -u github.com/pzurek/stalk
```
# Config
Sign up with Clearbit and put your key into `~/.stalk/config`:
```
clearbit_key: a78c0257fcfdd142bc1bdda8deadbeef
```
# Use
```
$stalk -e alex@clearbit.com
```
This will hopefully result in som... | A little command-line stalker using the Clearbit API. It's just a little toy app I use to test the [Clearbit client library](https://github.com/pzurek/clearbit).
# Installation
```
go get -u github.com/pzurek/stalk
```
# Config
Sign up with Clearbit and put your key into `~/.stalk/config`:
```
clearbit_key: a78c02... | Add reference to the Clearbit library | Add reference to the Clearbit library | Markdown | apache-2.0 | pzurek/stalk | markdown | ## Code Before:
A little command-line stalker using the Clearbit API
# Installation
```
go get -u github.com/pzurek/stalk
```
# Config
Sign up with Clearbit and put your key into `~/.stalk/config`:
```
clearbit_key: a78c0257fcfdd142bc1bdda8deadbeef
```
# Use
```
$stalk -e alex@clearbit.com
```
This will hopeful... |
67c2819aedf269fedd0d1960c0a037cf7ebbe2d2 | .travis.yml | .travis.yml | language: node_js
node_js:
- "9"
- "8"
- "7"
- "6"
- "5"
sudo: false
script:
- npm run test-with-cov
after_success:
- CODECLIMATE_REPO_TOKEN=$CODECLIMATE_TOKEN ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < ./coverage/lcov.info
git:
depth: 10
| language: node_js
node_js:
- "9"
- "8"
- "7"
- "6"
- "5"
sudo: false
test:
- npm run test-with-cov
deploy:
provider: npm
email: peter@reidweb.com
api_key:
secure: HtlC7Ylj1Pv7iQHAvmRsClO26jOHfe/s+JUWZwNSbMM7x49XQxjSEuP+XD1kWNBlZ4SM432qRoSgojtBusXXWPcJ7OzH9kAnvHafmR9t70lNXW0yazycIhFooxAzYZvhRTRmP... | Add auto-deployment stage to Travis config | chore(ci): Add auto-deployment stage to Travis config
| YAML | mit | ReidWeb/GitInspector-CSV | yaml | ## Code Before:
language: node_js
node_js:
- "9"
- "8"
- "7"
- "6"
- "5"
sudo: false
script:
- npm run test-with-cov
after_success:
- CODECLIMATE_REPO_TOKEN=$CODECLIMATE_TOKEN ./node_modules/codeclimate-test-reporter/bin/codeclimate.js < ./coverage/lcov.info
git:
depth: 10
## Instruction:
chore(ci):... |
417c20e9006baa0506bd779f142ec172efdb5c9d | scala/scala-impl/test/org/jetbrains/plugins/scala/codeInspection/unused/Scala3UnusedSymbolInspectionTest.scala | scala/scala-impl/test/org/jetbrains/plugins/scala/codeInspection/unused/Scala3UnusedSymbolInspectionTest.scala | package org.jetbrains.plugins.scala.codeInspection.unused
import org.jetbrains.plugins.scala.ScalaVersion
/**
* Created by Svyatoslav Ilinskiy on 11.07.16.
*/
class Scala3UnusedSymbolInspectionTest extends ScalaUnusedSymbolInspectionTestBase {
override protected def supportedIn(version: ScalaVersion): Boolean =... | package org.jetbrains.plugins.scala.codeInspection.unused
import org.jetbrains.plugins.scala.ScalaVersion
/**
* Created by Svyatoslav Ilinskiy on 11.07.16.
*/
class Scala3UnusedSymbolInspectionTest extends ScalaUnusedSymbolInspectionTestBase {
override protected def supportedIn(version: ScalaVersion): Boolean =... | Add failing test to prevent auto-merge | Add failing test to prevent auto-merge
| Scala | apache-2.0 | JetBrains/intellij-scala,JetBrains/intellij-scala | scala | ## Code Before:
package org.jetbrains.plugins.scala.codeInspection.unused
import org.jetbrains.plugins.scala.ScalaVersion
/**
* Created by Svyatoslav Ilinskiy on 11.07.16.
*/
class Scala3UnusedSymbolInspectionTest extends ScalaUnusedSymbolInspectionTestBase {
override protected def supportedIn(version: ScalaVer... |
ab26c19f9ff2c86b987c7c6583d4cd94b9bff288 | gemfiles/Gemfile-rails.4.2.x | gemfiles/Gemfile-rails.4.2.x | source 'https://rubygems.org'
gemspec path: '..'
gem 'rake'
gem 'rdoc'
gem 'actionmailer', '~> 4.2.0'
gem 'activemodel', '~> 4.2.0'
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
| source 'https://rubygems.org'
gemspec path: '..'
gem 'rake'
gem 'rdoc'
gem 'actionmailer', '~> 4.2.0'
gem 'activemodel', '~> 4.2.0'
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
# https://github.com/sparklemotion/nokogiri/blob/ad010b28c6edbc3b40950a72f3af692737b578b6/CHANGELOG.md#backwards-incomp... | Use correct nokogiri version for different Rubies | Use correct nokogiri version for different Rubies
| Logos | mit | plataformatec/mail_form,plataformatec/mail_form | logos | ## Code Before:
source 'https://rubygems.org'
gemspec path: '..'
gem 'rake'
gem 'rdoc'
gem 'actionmailer', '~> 4.2.0'
gem 'activemodel', '~> 4.2.0'
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
## Instruction:
Use correct nokogiri version for different Rubies
## Code After:
source 'https://ruby... |
cefc3d6a30159564b2287f8b803585282fadf1e5 | app/src/main/res/layout/list_item.xml | app/src/main/res/layout/list_item.xml | <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/icon"
android:layout_width="80dp"
android:layout_height="80dp"
... | <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/icon"
android:layout_width="80dp"
android:layout_height="80dp"
... | Improve layout as suggested by AndroidStudio | Improve layout as suggested by AndroidStudio
| XML | apache-2.0 | eMTeeWare/eMTeeSeason | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/icon"
android:layout_width="80dp"
android:layout_heig... |
701f1d020325e7e726fe57ca29a87ea81d3b373d | README.md | README.md |
[](https://app.wercker.com/project/byKey/4dc4a1f2dfecaf9e590806eeb6e5798f)
[](https://codeclimate.com/github/hirakiuc/site-meta... |

[](https://codeclimate.com/github/hirakiuc/site-meta-go)
[](http://godoc.org/github.com/hirak... | Replace CI badge (from wercker to GitHub Action) | Replace CI badge (from wercker to GitHub Action) | Markdown | mit | hirakiuc/site-meta-go,hirakiuc/site-meta-go | markdown | ## Code Before:
[](https://app.wercker.com/project/byKey/4dc4a1f2dfecaf9e590806eeb6e5798f)
[](https://codeclimate.com/github/hi... |
a5e651068a470a0f9ab8baa2a7a716c3789c5d56 | server/middleware/authorizedRequest.js | server/middleware/authorizedRequest.js | let session = require('../../database/models/session');
let isAuthorizedForRoute = (req, res, next) => {
session.getSession(req.cookie.id)
.then((session) => {
console.log(session);
});
};
module.exports = isAuthorizedForRoute;
| let session = require('../../database/models/session');
let isAuthorizedForRoute = (req, res, next) => {
session.getSession(req.cookies.session.id)
.then((session) => {
if (session.hash === req.cookies.session.hash &&
session.houseId === req.cookies.session.houseId &&
session.userId === req.coo... | Add authorized route checking middleware | Add authorized route checking middleware
NOTE: Not integrated yet, will be integrated once session adding middleware is in place
| JavaScript | mit | SentinelsOfMagic/SentinelsOfMagic | javascript | ## Code Before:
let session = require('../../database/models/session');
let isAuthorizedForRoute = (req, res, next) => {
session.getSession(req.cookie.id)
.then((session) => {
console.log(session);
});
};
module.exports = isAuthorizedForRoute;
## Instruction:
Add authorized route checking middleware
NOTE... |
16874192b9014f7d238eb1544c6d7cca06b44d44 | scripts/spm_integration_step.sh | scripts/spm_integration_step.sh |
SWIFT_VERSION=$1
PROJECT_NAME="TestSPM"
FRAMEWORK_NAME="SwiftyUserDefaults"
FRAMEWORK_DIR=$(pwd)
BRANCH_NAME=$(git symbolic-ref -q HEAD)
BRANCH_NAME=${BRANCH_NAME##refs/heads/}
BRANCH_NAME=${BRANCH_NAME:-HEAD}
mkdir $PROJECT_NAME
cd $PROJECT_NAME
swift package init
echo "// swift-tools-version:$SWIFT_VERSION
impor... |
SWIFT_VERSION=$1
PROJECT_NAME="TestSPM"
FRAMEWORK_NAME="SwiftyUserDefaults"
FRAMEWORK_DIR=$(pwd)
BRANCH_NAME=$(git symbolic-ref -q HEAD)
BRANCH_NAME=${BRANCH_NAME##refs/heads/}
BRANCH_NAME=${BRANCH_NAME:-HEAD}
mkdir $PROJECT_NAME
cd $PROJECT_NAME
swift package init
echo "// swift-tools-version:$SWIFT_VERSION
impor... | Use macOS 10.11 for SPM compat check | Use macOS 10.11 for SPM compat check
| Shell | mit | radex/SwiftyUserDefaults,radex/SwiftyUserDefaults,radex/SwiftyUserDefaults | shell | ## Code Before:
SWIFT_VERSION=$1
PROJECT_NAME="TestSPM"
FRAMEWORK_NAME="SwiftyUserDefaults"
FRAMEWORK_DIR=$(pwd)
BRANCH_NAME=$(git symbolic-ref -q HEAD)
BRANCH_NAME=${BRANCH_NAME##refs/heads/}
BRANCH_NAME=${BRANCH_NAME:-HEAD}
mkdir $PROJECT_NAME
cd $PROJECT_NAME
swift package init
echo "// swift-tools-version:$SWIF... |
4d94c865a8eafed79db8d6dd74facbc6754a247a | youtube-dl-gui.rb | youtube-dl-gui.rb | class YoutubeDlGui < Formula
homepage "https://github.com/pr0d1r2/youtube-dl-gui"
url "https://github.com/pr0d1r2/youtube-dl-gui.git",
:branch => "osx"
version "0.3.7"
depends_on "python"
depends_on "wxpython"
depends_on "ffmpeg"
def install
ENV.prepend_create_path "PYTHONPATH", "#{lib}/python2.... | class YoutubeDlGui < Formula
homepage "https://github.com/MrS0m30n3/youtube-dl-gui"
url "https://github.com/MrS0m30n3/youtube-dl-gui.git",
:revision => "36c8147a0ba4da01215d92957246527285cca710"
version "0.3.7"
depends_on "python"
depends_on "wxpython"
depends_on "ffmpeg"
def install
ENV.prepend... | Change git source to original gem creator. | Change git source to original gem creator.
As my pull request got merged.
| Ruby | mit | pr0d1r2/homebrew-contrib | ruby | ## Code Before:
class YoutubeDlGui < Formula
homepage "https://github.com/pr0d1r2/youtube-dl-gui"
url "https://github.com/pr0d1r2/youtube-dl-gui.git",
:branch => "osx"
version "0.3.7"
depends_on "python"
depends_on "wxpython"
depends_on "ffmpeg"
def install
ENV.prepend_create_path "PYTHONPATH", ... |
1a0e2e1056eb8bccd50f7c7e07b58cb3e4e0ef53 | src/frame/decoder.rs | src/frame/decoder.rs | use frame::ChannelAssignment;
pub fn decode(channel_assignment: ChannelAssignment, buffer: &mut [i32]) {
match channel_assignment {
ChannelAssignment::Independent => return,
ChannelAssignment::LeftSide => unimplemented!(),
ChannelAssignment::RightSide => unimplemented!(),
ChannelAssignment::Midd... | use frame::ChannelAssignment;
fn decode_left_side(buffer: &mut [i32]) {
let block_size = buffer.len() / 2;
for i in 0..block_size {
let left = buffer[i];
let side = buffer[i + block_size];
// right channel
buffer[i + block_size] = left - side;
}
}
pub fn decode(channel_assignment: ChannelAssig... | Add implementation for `LeftSide` decoding | Add implementation for `LeftSide` decoding
| Rust | bsd-3-clause | sourrust/flac | rust | ## Code Before:
use frame::ChannelAssignment;
pub fn decode(channel_assignment: ChannelAssignment, buffer: &mut [i32]) {
match channel_assignment {
ChannelAssignment::Independent => return,
ChannelAssignment::LeftSide => unimplemented!(),
ChannelAssignment::RightSide => unimplemented!(),
Channel... |
b36b0e4d5708ab7d5849afc9f1050a37562e7326 | metadata/com.adguard.android.contentblocker.txt | metadata/com.adguard.android.contentblocker.txt | AntiFeatures:NonFreeAdd
Categories:Internet
License:GPL-3.0-or-later
Web Site:https://github.com/AdguardTeam/ContentBlocker
Source Code:https://github.com/AdguardTeam/ContentBlocker
Issue Tracker:https://github.com/AdguardTeam/ContentBlocker/issues
Auto Name:AdGuard Content Blocker
Summary:Block advertisements
Descrip... | AntiFeatures:NonFreeAdd
Categories:Internet
License:GPL-3.0-or-later
Web Site:https://github.com/AdguardTeam/ContentBlocker
Source Code:https://github.com/AdguardTeam/ContentBlocker
Issue Tracker:https://github.com/AdguardTeam/ContentBlocker/issues
Auto Name:AdGuard Content Blocker
Summary:Block advertisements
Descrip... | Update AdGuard Content Blocker to 2.2.1 (21002201) | Update AdGuard Content Blocker to 2.2.1 (21002201)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
AntiFeatures:NonFreeAdd
Categories:Internet
License:GPL-3.0-or-later
Web Site:https://github.com/AdguardTeam/ContentBlocker
Source Code:https://github.com/AdguardTeam/ContentBlocker
Issue Tracker:https://github.com/AdguardTeam/ContentBlocker/issues
Auto Name:AdGuard Content Blocker
Summary:Block advert... |
7c6f5a1446783236ed07d215bdd897f5d2d5abbf | cli.js | cli.js | var spawn = require('child_process').spawn;
var args = process.argv.slice(2);
var bin = require('./');
if (bin === null) {
throw new Error('Platform not supported.');
}
var nagome = spawn(bin, args, { stdin: 'inherit' });
nagome.stderr.on('data', (data) => {
console.log(data.toString('utf8'));
});
nagome.stdout... | var spawn = require('child_process').spawn;
var args = process.argv.slice(2);
var bin = require('./');
if (bin === null) {
throw new Error('Platform not supported.');
}
var nagome = spawn(bin, args, { stdin: 'inherit' });
nagome.stderr.on('data', function (data) {
console.log(data.toString('utf8'));
});
nagome.... | Remove arrow function for compatibility | Remove arrow function for compatibility
| JavaScript | mit | y0za/nagome-bin | javascript | ## Code Before:
var spawn = require('child_process').spawn;
var args = process.argv.slice(2);
var bin = require('./');
if (bin === null) {
throw new Error('Platform not supported.');
}
var nagome = spawn(bin, args, { stdin: 'inherit' });
nagome.stderr.on('data', (data) => {
console.log(data.toString('utf8'));
}... |
d08c1787c718d78fd5d806df139fe7d2d8657663 | src/utils/d3/render_axis_label.js | src/utils/d3/render_axis_label.js | export default function({
renderedXAxis,
renderedYAxis,
xLabel,
yLabel,
width
}) {
let _y = this.axis == 'y'
let axis = _y ? renderedYAxis : renderedXAxis
if (axis) {
let label = _y ? yLabel : xLabel
let _label = axis.append('text')
.attr('class', 'label')
.attr('y', 15)
.styl... | export default function({
renderedXAxis,
renderedYAxis,
xLabel,
yLabel,
width
}) {
let _y = this.axis == 'y'
let axis = _y ? renderedYAxis : renderedXAxis
if (axis) {
let label = _y ? yLabel : xLabel
let _label = axis.append('text')
.attr('class', 'label')
.style('text-anchor', 'end... | Fix rendering of x-Axis labels | Fix rendering of x-Axis labels
| JavaScript | mit | simonwoerpel/d3-playbooks,correctiv/d3-riot-charts,correctiv/d3-riot-charts,simonwoerpel/d3-playbooks,simonwoerpel/d3-playbooks | javascript | ## Code Before:
export default function({
renderedXAxis,
renderedYAxis,
xLabel,
yLabel,
width
}) {
let _y = this.axis == 'y'
let axis = _y ? renderedYAxis : renderedXAxis
if (axis) {
let label = _y ? yLabel : xLabel
let _label = axis.append('text')
.attr('class', 'label')
.attr('y',... |
c25e32e61a88aba967129cb53c18ee2b5eae3314 | app/views/items/_form.html.erb | app/views/items/_form.html.erb | <%= form_for(item) do |f| %>
<div>
<%= f.label :name %>:
<%= f.text_field :name %>
</div>
<div>
<%= f.label :description %>:
<%= f.text_field :description %>
</div>
<div>
<%= f.label :image %>:
<%= f.text_field :image %>
</div>
<div>
<%= f.label :price %>:
<%= f.text_fie... | <%= form_for(item) do |f| %>
<div>
<%= f.label :name %>:
<%= f.text_field :name %>
</div>
<div>
<%= f.label :description %>:
<%= f.text_field :description %>
</div>
<div>
<%= f.label :image %>:
<%= f.text_field :image %>
</div>
<div>
<%= f.label :price %>:
<%= f.text_fie... | Add logic that loops through Item error messages and displays appropriate messages | Add logic that loops through Item error messages and displays appropriate messages
| HTML+ERB | mit | benjaminhyw/rails-online-shop,benjaminhyw/rails-online-shop,benjaminhyw/rails-online-shop | html+erb | ## Code Before:
<%= form_for(item) do |f| %>
<div>
<%= f.label :name %>:
<%= f.text_field :name %>
</div>
<div>
<%= f.label :description %>:
<%= f.text_field :description %>
</div>
<div>
<%= f.label :image %>:
<%= f.text_field :image %>
</div>
<div>
<%= f.label :price %>:
... |
5ef8cd64e6e6eda0df9fd2a030e431cc69b92ee7 | source/manual/alerts/data-sync.html.md | source/manual/alerts/data-sync.html.md | ---
owner_slack: "#2ndline"
title: Data sync
section: Icinga alerts
layout: manual_layout
parent: "/manual.html"
old_path_in_opsmanual: "../opsmanual/2nd-line/alerts/data-sync.md"
last_reviewed_on: 2017-02-17
review_in: 6 months
---
> **This page was imported from [the opsmanual on GitHub Enterprise](https://github.co... | ---
owner_slack: "#2ndline"
title: Data sync
section: Icinga alerts
layout: manual_layout
parent: "/manual.html"
old_path_in_opsmanual: "../opsmanual/2nd-line/alerts/data-sync.md"
last_reviewed_on: 2017-07-25
review_in: 6 months
---
> **This page was imported from [the opsmanual on GitHub Enterprise](https://github.co... | Update the docs to use the word "Copy" | Update the docs to use the word "Copy"
The jobs that perform the data sync are called "Copy ...." if you
search the manual with the name of the job you'd never find this page
because the word "copy" doesn't appear anywhere.
| Markdown | mit | alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs | markdown | ## Code Before:
---
owner_slack: "#2ndline"
title: Data sync
section: Icinga alerts
layout: manual_layout
parent: "/manual.html"
old_path_in_opsmanual: "../opsmanual/2nd-line/alerts/data-sync.md"
last_reviewed_on: 2017-02-17
review_in: 6 months
---
> **This page was imported from [the opsmanual on GitHub Enterprise](h... |
3d3c335f384074cb0716f6d41acdad872a030567 | docker-compose.yml | docker-compose.yml | version: '3'
services:
pybossa:
build:
context: ./docker
dockerfile: ./Dockerfile
args:
- SOURCE_BRANCH="${SOURCE_BRANCH:-master}"
environment:
- PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
- PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA... | version: '3'
services:
pybossa:
build:
context: ./docker
dockerfile: ./Dockerfile
args:
- SOURCE_BRANCH="${SOURCE_BRANCH:-master}"
environment:
- PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
- PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA... | Revert to default Pybossa logo. | Revert to default Pybossa logo.
| YAML | apache-2.0 | Goodly/pybossa-build,Goodly/pybossa-build | yaml | ## Code Before:
version: '3'
services:
pybossa:
build:
context: ./docker
dockerfile: ./Dockerfile
args:
- SOURCE_BRANCH="${SOURCE_BRANCH:-master}"
environment:
- PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
- PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISp... |
1a3ffe00bfdf8c61b4ff190beb2ee6a4e9db1412 | behave_django/environment.py | behave_django/environment.py | from django.core.management import call_command
from django.shortcuts import resolve_url
from behave_django.testcase import BehaveDjangoTestCase
def before_scenario(context, scenario):
# This is probably a hacky method of setting up the test case
# outside of a test runner. Suggestions are welcome. :)
c... | from django.core.management import call_command
try:
from django.shortcuts import resolve_url
except ImportError:
import warnings
warnings.warn("URL path supported only in get_url() with Django < 1.5")
resolve_url = lambda to, *args, **kwargs: to
from behave_django.testcase import BehaveDjangoTestCase
... | Support Django < 1.5 with a simplified version of `get_url()` | Support Django < 1.5 with a simplified version of `get_url()`
| Python | mit | nikolas/behave-django,nikolas/behave-django,behave/behave-django,bittner/behave-django,bittner/behave-django,behave/behave-django | python | ## Code Before:
from django.core.management import call_command
from django.shortcuts import resolve_url
from behave_django.testcase import BehaveDjangoTestCase
def before_scenario(context, scenario):
# This is probably a hacky method of setting up the test case
# outside of a test runner. Suggestions are we... |
b955ccf31504d29bb5a6379caf27d16bb21a3d04 | packages/common/src/server/utils/cleanGlobPatterns.ts | packages/common/src/server/utils/cleanGlobPatterns.ts | import * as Path from "path";
export function cleanGlobPatterns(files: string | string[], excludes: string[]): string[] {
excludes = excludes.map((s: string) => "!" + s.replace(/!/gi, ""));
return []
.concat(files as any)
.map((file: string) => {
if (!require.extensions[".ts"] && !process.env["TS_TE... | import * as Path from "path";
export function cleanGlobPatterns(files: string | string[], excludes: string[]): string[] {
excludes = excludes.map((s: string) => "!" + s.replace(/!/gi, "").replace(/\\/g, "/"));
return []
.concat(files as any)
.map((file: string) => {
if (!require.extensions[".ts"] &&... | Fix windows paths in scanner | fix(common): Fix windows paths in scanner
Closes: #709
| TypeScript | mit | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | typescript | ## Code Before:
import * as Path from "path";
export function cleanGlobPatterns(files: string | string[], excludes: string[]): string[] {
excludes = excludes.map((s: string) => "!" + s.replace(/!/gi, ""));
return []
.concat(files as any)
.map((file: string) => {
if (!require.extensions[".ts"] && !pr... |
6207567ab043d35a9072138ec6273f2f1ceb6303 | app/views/courses/export_grades.text.erb | app/views/courses/export_grades.text.erb | "Assignment","Student","Submitted?","Points Available","Automatic Score","Teacher Score","Days Late","Late Penalty","Effective Score"
<% @subs.each do |sub| %>
<% if sub.new_record? %>
"<%= sub.assignment.name %>","<%= sub.user.name %>","no",<%= sub.assignment.points_available %>,0,0,0,0,0
<% else %>
"<%= sub.assignmen... | "Assignment","Student","Last Name","Submitted?","Points Available","Automatic Score","Teacher Score","Days Late","Late Penalty","Effective Score"
<% @subs.each do |sub| %>
<% if sub.new_record? %>
"<%= sub.assignment.name %>","<%= sub.user.name %>","<%= sub.user.surname %>","no",<%= sub.assignment.points_available %>,0... | Add a "last name" field to the course grade CSV. | Add a "last name" field to the course grade CSV.
| HTML+ERB | agpl-3.0 | marksherman/bottlenose,marksherman/bottlenose,marksherman/bottlenose,marksherman/bottlenose,marksherman/bottlenose,marksherman/bottlenose | html+erb | ## Code Before:
"Assignment","Student","Submitted?","Points Available","Automatic Score","Teacher Score","Days Late","Late Penalty","Effective Score"
<% @subs.each do |sub| %>
<% if sub.new_record? %>
"<%= sub.assignment.name %>","<%= sub.user.name %>","no",<%= sub.assignment.points_available %>,0,0,0,0,0
<% else %>
"<... |
6c70c61cc3373c0fea65b3632d46eb32ee267ef2 | buildThemeSite.sh | buildThemeSite.sh | git config user.name "hugo-themebuilder"
git config user.email "hugo-themebuilder@gohugo.io"
git submodule update --remote --merge
if ! git diff-index --quiet HEAD --; then
git commit -am "Update themes"
git remote add origin git@github.com:spf13/hugoThemes.git
git push origin master
if [ $? -ne 0 ]; then
exi... |
echo "Hugo env:"
hugo env
cd _script
BASEURL=${BASEURL:-http://localhost:1313}
./generateThemeSite.sh ${BASEURL}
code=$?
if [ $code -ne 0 ]; then
echo "generate theme site failed: Exit status $code"
exit 1
fi
echo "Building site to public with baseURL ${BASEURL}..."
hugo --quiet -s hugoThemeSite/themeSite -b $... | Revert "Reintroduce: Update submodules on build" | Revert "Reintroduce: Update submodules on build"
This reverts commit 7a8965d8ef43a36995602d63f77f5e8ea0e21c69.
| Shell | mit | Nytoca/hugoThemes,spf13/hugoThemes | shell | ## Code Before:
git config user.name "hugo-themebuilder"
git config user.email "hugo-themebuilder@gohugo.io"
git submodule update --remote --merge
if ! git diff-index --quiet HEAD --; then
git commit -am "Update themes"
git remote add origin git@github.com:spf13/hugoThemes.git
git push origin master
if [ $? -ne... |
07f7d52d3583d7d12113357f7fcf554933f8805b | .github/issue_template.md | .github/issue_template.md |
* MessageKit Version:
* iOS Version(s):
* Swift Version:
* Devices/Simulators:
* Reproducible in ChatExample? (Yes/No):
## What happened?
## What did you expect to happen?
| <!--
Hi, thanks so much for opening an issue! 🤗
To better pinpoint (and solve) the issue you're experiencing, we could use some information on your behalf.
Please let us know the following things:
- What version of MessageKit are you using?
- What version of iOS are you running on?
- What version of Swift are you r... | Rewrite issue template to a HTML comment | Rewrite issue template to a HTML comment | Markdown | mit | MessageKit/MessageKit,MessageKit/MessageKit,MessageKit/MessageKit | markdown | ## Code Before:
* MessageKit Version:
* iOS Version(s):
* Swift Version:
* Devices/Simulators:
* Reproducible in ChatExample? (Yes/No):
## What happened?
## What did you expect to happen?
## Instruction:
Rewrite issue template to a HTML comment
## Code After:
<!--
Hi, thanks so much for opening an i... |
9993d1ecb1de8c694b503df67c85db4af7be6c43 | requirements-dev.txt | requirements-dev.txt | coverage[toml]
flake8
flake8-tabs==2.2.2
fuzzywuzzy-stubs
isort==5.7.0
mkdocs==1.1.2
mkdocs-material==6.2.7
mkdocs-material-extensions==1.0.1
mkdocstrings==0.14.0
mypy
pre-commit
PyInstaller==4.1
git+https://github.com/nstockton/pytkdocs.git@tab-indentation-parser#egg=pytkdocs
git+https://github.com/nstockton/tan.git@p... | coverage[toml]
flake8
flake8-tabs==2.2.2
fuzzywuzzy-stubs
isort==5.7.0
mkdocs==1.2.2
mkdocs-material==7.2.5
mkdocstrings==0.14.0
mypy
pre-commit
PyInstaller==4.1
git+https://github.com/nstockton/pytkdocs.git@tab-indentation-parser#egg=pytkdocs
git+https://github.com/nstockton/tan.git@personal#egg=tan
types-certifi
type... | Update mkdocs and mkdocs-material requirements. | Update mkdocs and mkdocs-material requirements.
| Text | mpl-2.0 | nstockton/mapperproxy-mume,nstockton/mapperproxy-mume | text | ## Code Before:
coverage[toml]
flake8
flake8-tabs==2.2.2
fuzzywuzzy-stubs
isort==5.7.0
mkdocs==1.1.2
mkdocs-material==6.2.7
mkdocs-material-extensions==1.0.1
mkdocstrings==0.14.0
mypy
pre-commit
PyInstaller==4.1
git+https://github.com/nstockton/pytkdocs.git@tab-indentation-parser#egg=pytkdocs
git+https://github.com/nst... |
8d6b71d8fc65734faeadc679e59f028e51d6fecf | Sprite.cpp | Sprite.cpp |
Sprite::Sprite() : Node()
{
// Image
m_sprite_path = "";
}
Sprite::Sprite(std::string p_sprite_path) : Sprite()
{
m_sprite_path = p_sprite_path;
}
Sprite::~Sprite() {}
std::string Sprite::getSpritePath()
{
return m_sprite_path;
} |
Sprite::Sprite() : Node()
{
// Image
m_sprite_path = "";
}
Sprite::Sprite(std::string p_sprite_path) : Node()
{
// Image
m_sprite_path = p_sprite_path;
}
Sprite::~Sprite() {}
std::string Sprite::getSpritePath()
{
return m_sprite_path;
} | Use more useful ancestor constructor | Use more useful ancestor constructor
| C++ | mit | maksym-gryb/SDL_Wrapper,maksym-gryb/SDL_Wrapper | c++ | ## Code Before:
Sprite::Sprite() : Node()
{
// Image
m_sprite_path = "";
}
Sprite::Sprite(std::string p_sprite_path) : Sprite()
{
m_sprite_path = p_sprite_path;
}
Sprite::~Sprite() {}
std::string Sprite::getSpritePath()
{
return m_sprite_path;
}
## Instruction:
Use more useful ancestor constructor
... |
67b61dc88f6395da82d86e4c14674ac574e9c6fa | content/20160503_Announcing_IPCC_ROOT.md | content/20160503_Announcing_IPCC_ROOT.md | Title: Announcing the Princeton IPCC ROOT project
date: 2016-05-03 10:37
Slug: Announcing_IPCC_ROOT
Category: Blog
Tags: news
Authors: Peter Elmer
status: published
Intel has funded an Intel Parallel Computing Center (IPCC) at Princeton University who main target is the modernization of critical libraries in the [ROO... | Title: Announcing the Princeton IPCC ROOT project
date: 2016-05-03 10:37
Slug: Announcing_IPCC_ROOT
Category: Blog
Tags: news
Authors: Peter Elmer
status: published
Intel has funded an [Intel Parallel Computing Center (IPCC) at Princeton University](https://software.intel.com/en-us/articles/intel-parallel-computing-c... | Add link to Intel page about IPCC ROOT | Add link to Intel page about IPCC ROOT
| Markdown | mit | ipcc-root/ipcc-root.github.io-source,ipcc-root/ipcc-root.github.io-source,ipcc-root/ipcc-root.github.io-source | markdown | ## Code Before:
Title: Announcing the Princeton IPCC ROOT project
date: 2016-05-03 10:37
Slug: Announcing_IPCC_ROOT
Category: Blog
Tags: news
Authors: Peter Elmer
status: published
Intel has funded an Intel Parallel Computing Center (IPCC) at Princeton University who main target is the modernization of critical libra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.