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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ae461ec4c97c76646b6bcd1d1e4d251f05a460d1 | src/APIAutoloader.php | src/APIAutoloader.php | <?php
namespace OntraportAPI;
/**
* Class APIAutoloader
*
* @author ONTRAPORT
*
* @package OntraportAPI
*/
class APIAutoloader
{
public static function loader($className)
{
// Ensure correct path
if (strpos($className, "\\"))
{
$className = array_pop(explode("\\", $cl... | <?php
namespace OntraportAPI;
/**
* Class APIAutoloader
*
* @author ONTRAPORT
*
* @package OntraportAPI
*/
class APIAutoloader
{
public static function loader($className)
{
// Ensure correct path
if (strpos($className, "\\"))
{
$tmp = explode("\\", $className);
... | Fix only variables should be passed by reference notice | Fix only variables should be passed by reference notice | PHP | mit | Ontraport/SDK-PHP | php | ## Code Before:
<?php
namespace OntraportAPI;
/**
* Class APIAutoloader
*
* @author ONTRAPORT
*
* @package OntraportAPI
*/
class APIAutoloader
{
public static function loader($className)
{
// Ensure correct path
if (strpos($className, "\\"))
{
$className = array_pop(e... |
52e487d7a2ff4d61d7845dfd56687d9978cbeb46 | src/harmony-classes.js | src/harmony-classes.js | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file relies on the fact that the following declarations have been made
// in runtime.js:
// var $Function = global.Function;
// var $Array = g... | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file relies on the fact that the following declarations have been made
// in runtime.js:
// var $Function = global.Function;
// var $Array = g... | Make sure FunctionToMethod is lazily compiled. | Make sure FunctionToMethod is lazily compiled.
R=arv@chromium.org
BUG=v8:3330
LOG=N
Review URL: https://codereview.chromium.org/808723002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#25847}
| JavaScript | mit | UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh | javascript | ## Code Before:
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file relies on the fact that the following declarations have been made
// in runtime.js:
// var $Function = global.Function;
/... |
d82c545f48a3e067675dbd6ef731afb96b6d6b3e | Battlecode_Arena/app/views/competitors/_index.html.erb | Battlecode_Arena/app/views/competitors/_index.html.erb | <%= render 'layouts/sortable_table_header' %>
<thead>
<tr>
<th>Name</th>
<th>Team</th>
<th>Elo</th>
<th>Wins</th>
<th>Losses</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody class "competitors">
<% @competitors.each do |competitor| %>
<tr>
<% shown_na... | <%= render 'layouts/sortable_table_header' %>
<thead>
<tr>
<th>Name</th>
<th>Team</th>
<th>Wins</th>
<th>Losses</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody class "competitors">
<% @competitors.each do |competitor| %>
<tr>
<% shown_name = competitor.bro... | Remove Elo. it's pointless in current design | Remove Elo. it's pointless in current design
| HTML+ERB | mit | 3urningChrome/Battlecode_Arena,3urningChrome/Battlecode_Arena,3urningChrome/Battlecode_Arena,3urningChrome/Battlecode_Arena | html+erb | ## Code Before:
<%= render 'layouts/sortable_table_header' %>
<thead>
<tr>
<th>Name</th>
<th>Team</th>
<th>Elo</th>
<th>Wins</th>
<th>Losses</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody class "competitors">
<% @competitors.each do |competitor| %>
<tr>
... |
c7f913fc8ffa4f6a0ef8fd05ac792b240b204c11 | README.md | README.md | README
======
Building
--------
In order to build com.atilika.kuromoji.kuromoji from source, please do as follows:
1. Provide Java with 512MB heap size
`% export MAVEN_OPTS=-Xmx512m`
2. Run Maven using
`% mvn -Ddownload=true package`
to download the dictionary data and build a distribution
Contact... | README
======
Building
--------
In order to build Kuromoji from source, please do as follows:
1. Provide Java with 2GB heap size
`% export MAVEN_OPTS=-Xmx2g`
2. Run Maven using
`% mvn -Ddownload=true clean package`
to download the dictionary data and build Kuromoji with all dictionaries.
Contact u... | Update heap-size details and fixed typo. | Update heap-size details and fixed typo.
| Markdown | apache-2.0 | gerryhocks/kuromoji,makigumo/kuromoji,ikawaha/kuromoji,atilika/kuromoji,sevenno7/kuromoji,yodasantu/kuromoji,cmoen/kuromoji | markdown | ## Code Before:
README
======
Building
--------
In order to build com.atilika.kuromoji.kuromoji from source, please do as follows:
1. Provide Java with 512MB heap size
`% export MAVEN_OPTS=-Xmx512m`
2. Run Maven using
`% mvn -Ddownload=true package`
to download the dictionary data and build a distri... |
0e8b33aa29c7f37af67250e93524b66aa25d4d2c | lib/yard/server/templates/default/method_details/html/permalink.erb | lib/yard/server/templates/default/method_details/html/permalink.erb | <script>
$("#<%= anchor_for(object) %>").prepend(
'<a class="permalink" href="/<%= base_path(router.docs_prefix) %>/<%= urlencode serializer.serialized_path(object) %>">permalink</a>');
</script> | <script>
$(document.getElementById("<%= anchor_for(object) %>")).prepend(
'<a class="permalink" href="/<%= base_path(router.docs_prefix) %>/<%= urlencode serializer.serialized_path(object) %>">permalink</a>');
</script>
| Fix jquery issue parsing invalid id values | Fix jquery issue parsing invalid id values
| HTML+ERB | mit | alexdowad/yard,herosky/yard,alexdowad/yard,amclain/yard,herosky/yard,ohai/yard,ohai/yard,iankronquist/yard,iankronquist/yard,lsegal/yard,thomthom/yard,amclain/yard,jreinert/yard,alexdowad/yard,jreinert/yard,lsegal/yard,thomthom/yard,lsegal/yard,herosky/yard,thomthom/yard,iankronquist/yard,amclain/yard,ohai/yard,jreiner... | html+erb | ## Code Before:
<script>
$("#<%= anchor_for(object) %>").prepend(
'<a class="permalink" href="/<%= base_path(router.docs_prefix) %>/<%= urlencode serializer.serialized_path(object) %>">permalink</a>');
</script>
## Instruction:
Fix jquery issue parsing invalid id values
## Code After:
<script>
$(document.getElementB... |
2d39adaee5d44cddf949c106f317a150fb67e232 | shippable.yml | shippable.yml | language: java
jdk:
- oraclejdk7
install:
- true
script:
- ./gradlew shippableCiBuild --continue | build_image: shippableimages/ubuntu1404_java
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk8
env:
- VARIANT=2.0
- VARIANT=2.3
- VARIANT=2.4
before_script:
- if [[ $SHIPPABLE_JDK_VERSION == "openjdk6" ]] ; then export JAVA_HOME="/usr/lib/jvm/java-6-openjdk-amd64"; export PATH="$PATH:/usr/lib/jvm/j... | Configure Shippable build to build all variants on multiple JDKs | Configure Shippable build to build all variants on multiple JDKs
- Also use leaner Java image
| YAML | apache-2.0 | lokinell/spock,psideleau/spock,raphw/spock,paplorinc/spock,siordache/spock,raphw/spock,alien11689/spock,paplorinc/spock,psideleau/spock,GeeChao/spock,lokinell/spock,GeeChao/spock,siordache/spock,sebi-hgdata/spock,sebi-hgdata/spock,spockframework/spock,paplorinc/spock,alien11689/spock,raphw/spock,sebi-hgdata/spock,GeeCh... | yaml | ## Code Before:
language: java
jdk:
- oraclejdk7
install:
- true
script:
- ./gradlew shippableCiBuild --continue
## Instruction:
Configure Shippable build to build all variants on multiple JDKs
- Also use leaner Java image
## Code After:
build_image: shippableimages/ubuntu1404_java
language: java
jdk:
- openjdk... |
029808a986abb161d7b38d2cccb751c1d6d5e32c | .github/workflows/docker_publish.yaml | .github/workflows/docker_publish.yaml |
name: Docker Publish
on:
release:
types: [published]
jobs:
server_image:
name: Push InvenTree web server image to dockerhub
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
... |
name: Docker Publish
on:
release:
types: [published]
jobs:
server_image:
name: Push InvenTree web server image to dockerhub
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
... | Fix workflow for publishing docker files | Fix workflow for publishing docker files
| YAML | mit | SchrodingersGat/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree | yaml | ## Code Before:
name: Docker Publish
on:
release:
types: [published]
jobs:
server_image:
name: Push InvenTree web server image to dockerhub
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push... |
6fcce62d4fd5196015a3d91db924747f93ccceb6 | composer.json | composer.json | {
"name": "reload/drupal-composer-project",
"description": "Composer template for Drupal projects",
"repositories": [{
"type": "composer",
"url": "http://packagist.drupal-composer.org"
}],
"require": {
"composer/installers": "~1.0",
"derhasi/composer-preserve-paths": "0.1.*",
"drupal/drupa... | {
"name": "drupal-composer/drupal-project",
"description": "Composer template for Drupal projects",
"repositories": [{
"type": "composer",
"url": "http://packagist.drupal-composer.org"
}],
"require": {
"composer/installers": "~1.0",
"derhasi/composer-preserve-paths": "0.1.*",
"drupal/drupa... | Remove reload reference from package name | Remove reload reference from package name
Let's go with `drupal-composer/drupal-project`. | JSON | mit | madalinignisca/drupal-project | json | ## Code Before:
{
"name": "reload/drupal-composer-project",
"description": "Composer template for Drupal projects",
"repositories": [{
"type": "composer",
"url": "http://packagist.drupal-composer.org"
}],
"require": {
"composer/installers": "~1.0",
"derhasi/composer-preserve-paths": "0.1.*",
... |
864e68b86bdc11dede8221d19be3c390c09d01d9 | resources/migrations/045_add_dashcard_visualization_settings_field.yaml | resources/migrations/045_add_dashcard_visualization_settings_field.yaml | databaseChangeLog:
- changeSet:
id: 45
author: tlrobinson
changes:
- addColumn:
tableName: report_dashboardcard
columns:
- column:
name: visualization_settings
type: text
constraints:
... | databaseChangeLog:
- changeSet:
id: 45
author: tlrobinson
changes:
- addColumn:
tableName: report_dashboardcard
columns:
- column:
name: visualization_settings
type: text
- addNotNullConstraint:
tab... | Fix dashcard visualization_settings migration :wrench: | Fix dashcard visualization_settings migration :wrench:
| YAML | agpl-3.0 | blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase | yaml | ## Code Before:
databaseChangeLog:
- changeSet:
id: 45
author: tlrobinson
changes:
- addColumn:
tableName: report_dashboardcard
columns:
- column:
name: visualization_settings
type: text
constraints:
... |
53f34003edaa32c80198a0fbf710b5c3ac43a180 | config/schedule.rb | config/schedule.rb |
set :output, "#{path}/log/whenever.log"
every :weekday, at: '9:30 am' do
runner 'DailyMenu.gather'
end
every :weekday, at: '11:00 am' do
runner 'DailyMenu.broadcast'
end
|
set :output, "#{path}/log/whenever.log"
every :weekday, at: '9:30 am' do
runner 'Restaurant.get_daily_menus'
end
every :weekday, at: '11:00 am' do
runner 'DailyMenu.broadcast'
end
| Call correct method in cron runner | Call correct method in cron runner
| Ruby | mit | IngoAlbers/lunch_buddy,IngoAlbers/lunch_buddy,IngoAlbers/lunch_buddy | ruby | ## Code Before:
set :output, "#{path}/log/whenever.log"
every :weekday, at: '9:30 am' do
runner 'DailyMenu.gather'
end
every :weekday, at: '11:00 am' do
runner 'DailyMenu.broadcast'
end
## Instruction:
Call correct method in cron runner
## Code After:
set :output, "#{path}/log/whenever.log"
every :weekday, a... |
751fd5792dbd796bae58179d9b3d75f0e19c8dd8 | app/views/manuals/updates.html.erb | app/views/manuals/updates.html.erb | <%=
render(
'content_for_head_tag',
description: "List of updates to '#{presented_manual.full_title}'.",
title: 'Updates - ' + presented_manual.full_title
)
%>
<%= content_for :extra_head_content do %>
<%= ab_test.requested_variant.analytics_meta_tag.html_safe %>
<% end %>
<%= render 'header', present... | <%=
render(
'content_for_head_tag',
description: "List of updates to '#{presented_manual.full_title}'.",
title: 'Updates - ' + presented_manual.full_title
)
%>
<%= content_for :extra_head_content do %>
<%= ab_test.requested_variant.analytics_meta_tag.html_safe %>
<% end %>
<% if presented_manual.beta?... | Move beta label to above the header | Move beta label to above the header
The beta label must appear above the header and content. This was a mistake
introduced by a previous commit.
| HTML+ERB | mit | alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend | html+erb | ## Code Before:
<%=
render(
'content_for_head_tag',
description: "List of updates to '#{presented_manual.full_title}'.",
title: 'Updates - ' + presented_manual.full_title
)
%>
<%= content_for :extra_head_content do %>
<%= ab_test.requested_variant.analytics_meta_tag.html_safe %>
<% end %>
<%= render '... |
9d1324b589fda24431c9b0b06877e88786f49407 | packages/python-requests/buildinfo.json | packages/python-requests/buildinfo.json | {
"requires": ["python"],
"single_source": {
"kind": "git",
"git": "https://github.com/kennethreitz/requests",
"ref": "fa338da717124188b21d48df55f2fa9aca459d12",
"ref_origin": "v2.6.0"
}
}
| {
"requires": ["python"],
"single_source": {
"kind": "url_extract",
"url": "https://pypi.python.org/packages/0a/00/8cc925deac3a87046a4148d7846b571cf433515872b5430de4cd9dea83cb/requests-2.7.0.tar.gz",
"sha1": "6db8805632521a13789161bccb14f761672ec46f"
}
}
| Update python-request from 2.6 to 2.7 | Update python-request from 2.6 to 2.7
| JSON | apache-2.0 | mesosphere-mergebot/dcos,dcos/dcos,darkonie/dcos,mesosphere-mergebot/dcos,branden/dcos,darkonie/dcos,GoelDeepak/dcos,BenWhitehead/dcos,branden/dcos,mnaboka/dcos,mnaboka/dcos,mellenburg/dcos,GoelDeepak/dcos,lingmann/dcos,xinxian0458/dcos,mesosphere-mergebot/mergebot-test-dcos,BenWhitehead/dcos,mellenburg/dcos,vishnu2kmo... | json | ## Code Before:
{
"requires": ["python"],
"single_source": {
"kind": "git",
"git": "https://github.com/kennethreitz/requests",
"ref": "fa338da717124188b21d48df55f2fa9aca459d12",
"ref_origin": "v2.6.0"
}
}
## Instruction:
Update python-request from 2.6 to 2.7
## Code After:
{
"requires": ["pyth... |
2af11721e2bfc0c6710ace36da7e1fac0e4202c5 | .gitlab-ci.yml | .gitlab-ci.yml | stages:
- publish_launcher
- build
- publish
publishWindowsExecutable:
stage: publish_launcher
tags:
- windows
script:
- cmd.exe "/c gradlew --no-daemon -i --no-build-cache clean PackrLauncher:publish"
publishLinuxExecutable:
stage: publish_launcher
tags:
- ubuntu
script:
- ./gradlew... | stages:
- publish_launcher
- build
- publish
publishWindowsExecutable:
stage: publish_launcher
tags:
- windows
script:
- cmd.exe "/c gradlew --no-daemon -i --no-build-cache clean PackrLauncher:publish"
publishLinuxExecutable:
stage: publish_launcher
tags:
- ubuntu
script:
- ./gradlew... | Add directed acyclic graphs and JUnit artifacts to GitLab CI | Add directed acyclic graphs and JUnit artifacts to GitLab CI
| YAML | apache-2.0 | libgdx/packr,libgdx/packr,libgdx/packr,libgdx/packr | yaml | ## Code Before:
stages:
- publish_launcher
- build
- publish
publishWindowsExecutable:
stage: publish_launcher
tags:
- windows
script:
- cmd.exe "/c gradlew --no-daemon -i --no-build-cache clean PackrLauncher:publish"
publishLinuxExecutable:
stage: publish_launcher
tags:
- ubuntu
script:... |
9dc253b79d885ca205b557f88fca6fa35bd8fe21 | tests/test_selector.py | tests/test_selector.py | from contextlib import contextmanager
from scell import Selector
from pytest import raises, fixture
def test_select(selector):
res = list(selector.select())
assert res
for event in res:
assert event.ready
def test_select_empty():
sel = Selector()
assert list(sel.select()) == []
def tes... | from contextlib import contextmanager
from scell import Selector
from pytest import raises, fixture
def test_select(selector):
res = list(selector.select())
assert res
for event in res:
assert event.ready
def test_select_empty():
sel = Selector()
assert list(sel.select()) == []
def tes... | Make Selector.scope test more rigorous | Make Selector.scope test more rigorous
| Python | mit | eugene-eeo/scell | python | ## Code Before:
from contextlib import contextmanager
from scell import Selector
from pytest import raises, fixture
def test_select(selector):
res = list(selector.select())
assert res
for event in res:
assert event.ready
def test_select_empty():
sel = Selector()
assert list(sel.select())... |
ed8fd10a21e93a7d1572c6a26525e65e33f516ea | lib/vagrant-chef-zero/server_helpers.rb | lib/vagrant-chef-zero/server_helpers.rb | module VagrantPlugins
module ChefZero
module ServerHelpers
def start_chef_zero(env)
port = get_port(env)
host = get_host(env)
if ! chef_zero_server_running?(port)
proc = IO.popen("#{ENV['HOME']}/.vagrant.d/gems/bin/chef-zero "+
"--host #{host} --p... | module VagrantPlugins
module ChefZero
module ServerHelpers
def start_chef_zero(env)
port = get_port(env)
host = get_host(env)
if ! chef_zero_server_running?(port)
vagrant_gems = ENV['GEM_PATH'].split(':').select { |gp| gp.include?('vagrant')}
chef_zero_binary = :... | Update Gem path finding to be a little bit more portable | Update Gem path finding to be a little bit more portable
| Ruby | apache-2.0 | schubergphilis/vagrant-chef-zero,sysbot/vagrant-chef-zero | ruby | ## Code Before:
module VagrantPlugins
module ChefZero
module ServerHelpers
def start_chef_zero(env)
port = get_port(env)
host = get_host(env)
if ! chef_zero_server_running?(port)
proc = IO.popen("#{ENV['HOME']}/.vagrant.d/gems/bin/chef-zero "+
"--... |
800151ffcb6244c50d18209c633516fa9ef9a395 | macstrap.cfg | macstrap.cfg |
binaries=(
coreutils
elasticsearch
findutils
git
gradle
graphicsmagick
mackup
maven
postgresql
redis
rename
tomcat
tree
wget
zsh
)
apps=(
1password
alfred
android-file-transfer
atom
carbon-copy-cloner
cyberduck
dropbox
firefox
font-hack
google-chrome
intellij-idea
... |
binaries=(
coreutils
elasticsearch
findutils
git
gradle
graphicsmagick
mackup
maven
postgresql
redis
rename
tomcat
tree
wget
zsh
)
apps=(
1password
alfred
android-file-transfer
atom
carbon-copy-cloner
cyberduck
dropbox
firefox
font-hack
google-chrome
intellij-idea
... | Remove remote-desktop-connection as it does not exist anymore | Remove remote-desktop-connection as it does not exist anymore | INI | mit | guylabs/macstrap-config | ini | ## Code Before:
binaries=(
coreutils
elasticsearch
findutils
git
gradle
graphicsmagick
mackup
maven
postgresql
redis
rename
tomcat
tree
wget
zsh
)
apps=(
1password
alfred
android-file-transfer
atom
carbon-copy-cloner
cyberduck
dropbox
firefox
font-hack
google-chrome
... |
2179d4aee62b68f2ddad6ca55dc2fe6fb2207dce | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode8
xcode_project: TagListViewDemo.xcodeproj
xcode_scheme: TagListViewDemo
xcode_sdk:
- iphonesimulator9.0
script:
- xctool -project TagListViewDemo.xcodeproj -scheme TagListViewDemo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
| language: objective-c
osx_image: xcode8
xcode_project: TagListViewDemo.xcodeproj
xcode_scheme: TagListViewDemo
xcode_sdk:
- iphonesimulator9.0
script:
- xcodebuild -project TagListViewDemo.xcodeproj -scheme TagListViewDemo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
| Use xcodebuild instead of xctool | Use xcodebuild instead of xctool
Because xctool doesn’t work well with Xcode 8 yet: facebook/xctool#704
| YAML | mit | ElaWorkshop/TagListView,KamilSwojak/TagListView,KamilSwojak/TagListView,ElaWorkshop/TagListView,xhacker/TagListView,xhacker/TagListView | yaml | ## Code Before:
language: objective-c
osx_image: xcode8
xcode_project: TagListViewDemo.xcodeproj
xcode_scheme: TagListViewDemo
xcode_sdk:
- iphonesimulator9.0
script:
- xctool -project TagListViewDemo.xcodeproj -scheme TagListViewDemo -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
## Instruction:
Use xcodebuild instead ... |
a4bf371e6ee8377e96f65482508ad87cf474f59c | lib/i18n_lazy_scope/helper.rb | lib/i18n_lazy_scope/helper.rb | module I18nLazyScope
module Helper
def t_scoped(key, **args)
t(key, scope: lazy_scope, **args)
end
end
end
| module I18nLazyScope
module Helper
def t_scoped(key, **args)
t(key, scope: lazy_scope, **args)
end
alias_method :ts, :t_scoped
end
end
| Create alias as :ts of :t_scoped method | Create alias as :ts of :t_scoped method
| Ruby | mit | memoxmrdl/i18n_lazy_scope | ruby | ## Code Before:
module I18nLazyScope
module Helper
def t_scoped(key, **args)
t(key, scope: lazy_scope, **args)
end
end
end
## Instruction:
Create alias as :ts of :t_scoped method
## Code After:
module I18nLazyScope
module Helper
def t_scoped(key, **args)
t(key, scope: lazy_scope, **args)... |
b47821b4fce6ab969fab3c7c5a1ef1a8fb58764c | jacquard/storage/tests/test_dummy.py | jacquard/storage/tests/test_dummy.py | import unittest
from jacquard.storage.dummy import DummyStore
from jacquard.storage.testing_utils import StorageGauntlet
class DummyGauntletTest(StorageGauntlet, unittest.TestCase):
def open_storage(self):
return DummyStore('')
| import pytest
import unittest
from jacquard.storage.dummy import DummyStore
from jacquard.storage.testing_utils import StorageGauntlet
class DummyGauntletTest(StorageGauntlet, unittest.TestCase):
def open_storage(self):
return DummyStore('')
def test_transaction_raises_error_for_bad_commit(self):
... | Cover this exception with a test | Cover this exception with a test
| Python | mit | prophile/jacquard,prophile/jacquard | python | ## Code Before:
import unittest
from jacquard.storage.dummy import DummyStore
from jacquard.storage.testing_utils import StorageGauntlet
class DummyGauntletTest(StorageGauntlet, unittest.TestCase):
def open_storage(self):
return DummyStore('')
## Instruction:
Cover this exception with a test
## Code Af... |
c874a2035b8a2621db10fd2d6f35ee50c00416a0 | app/views/users/show.html.erb | app/views/users/show.html.erb | <div id="user-view">
hello, <%= @user.first_name %>
</div>
| <div id="user-view">
hello, <%= @user.first_name %>
<h3>YO' PUBLISHED POSTS:</h3>
<% @user.all_published.each do |story| %>
<p><%= story.title %></p>
<% end %>
<h3>YO' UNPUBLISHED POSTS:</h3>
<% @user.all_unpublished.each do |story| %>
<p><%= story.title %></p>
<% end %>
</div>
| Add published and unpublished stories to user show | Add published and unpublished stories to user show
| HTML+ERB | mit | mxngyn/StoryVine,pearlshin/StoryVine,SputterPuttRedux/storyvine_clone,pearlshin/StoryVine,SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,pearlshin/StoryVine | html+erb | ## Code Before:
<div id="user-view">
hello, <%= @user.first_name %>
</div>
## Instruction:
Add published and unpublished stories to user show
## Code After:
<div id="user-view">
hello, <%= @user.first_name %>
<h3>YO' PUBLISHED POSTS:</h3>
<% @user.all_published.each do |story| %>
<p><%= story.title %></p... |
b861e7ee65ce1deeda89547477db693667a47d25 | src/containers/Router/routes-website.js | src/containers/Router/routes-website.js | import RecordFlow from '../RecordFlow';
import PlaybackFlow from '../PlaybackFlow';
import Submission from '../Submission';
export default {
'/record/:roomId?/:hideHead?': RecordFlow,
'/:roomId?/:id?': PlaybackFlow,
'/submission/:roomId?/:id?': Submission,
};
| import RecordFlow from '../RecordFlow';
import PlaybackFlow from '../PlaybackFlow';
export default {
'/record/:roomId?/:hideHead?': RecordFlow,
'/:roomId?/:id?': PlaybackFlow,
};
| Remove submission route (is now handled by playback flow) | Remove submission route (is now handled by playback flow)
| JavaScript | apache-2.0 | puckey/dance-tonite,puckey/dance-tonite | javascript | ## Code Before:
import RecordFlow from '../RecordFlow';
import PlaybackFlow from '../PlaybackFlow';
import Submission from '../Submission';
export default {
'/record/:roomId?/:hideHead?': RecordFlow,
'/:roomId?/:id?': PlaybackFlow,
'/submission/:roomId?/:id?': Submission,
};
## Instruction:
Remove submission ro... |
d19e9fe2baeba34eb9073c1dcf6dc9f72a3d5e9b | azure-pipelines.yml | azure-pipelines.yml |
trigger:
- master
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-report... |
trigger:
- master
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-report... | Update pipeline with new war name | Update pipeline with new war name
| YAML | agpl-3.0 | musIndex/mouseinventory,musIndex/mouseinventory,musIndex/mouseinventory | yaml | ## Code Before:
trigger:
- master
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**... |
65ef1577c15b3abf4a4ca88da6c393dfa8427d95 | .github/workflows/upload-preliminary-release-asset.yml | .github/workflows/upload-preliminary-release-asset.yml | on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '0.9.0-alpha[0-9]+' # Build release assets for the current alpha release
name: Upload Preliminary Release Asset
jobs:
build:
name: Upload Preliminary Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
... | on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '0.9.0-alpha[0-9]+' # Build release assets for the current alpha release
name: Upload Preliminary Release Asset
jobs:
build:
name: Upload Preliminary Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
... | Install npm depencencies before building in ci | Install npm depencencies before building in ci
| YAML | agpl-3.0 | sbsdev/mdr2 | yaml | ## Code Before:
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '0.9.0-alpha[0-9]+' # Build release assets for the current alpha release
name: Upload Preliminary Release Asset
jobs:
build:
name: Upload Preliminary Release Asset
runs-on: ubuntu-latest
steps:
- name:... |
373e096cc8650fd04957cda44723bbce658d64c2 | src/main/java/com/cisco/trex/stateless/model/capture/CaptureMonitor.java | src/main/java/com/cisco/trex/stateless/model/capture/CaptureMonitor.java | package com.cisco.trex.stateless.model.capture;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CaptureMonitor {
@JsonProperty("capture_id")
private int captureId;
@JsonProper... | package com.cisco.trex.stateless.model.capture;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CaptureMonitor {
@JsonProperty("capture_id")
private int captureId;
@JsonPro... | Add getter and setter for start_ts field. | Add getter and setter for start_ts field.
| Java | apache-2.0 | cisco-system-traffic-generator/trex-java-sdk,cisco-system-traffic-generator/trex-java-sdk | java | ## Code Before:
package com.cisco.trex.stateless.model.capture;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CaptureMonitor {
@JsonProperty("capture_id")
private int captureId;
... |
9b269cafda2a58ff244f4a543280ce0c0c4d4a4c | app/views/pageflow/editor/video_files/_video_file.json.jbuilder | app/views/pageflow/editor/video_files/_video_file.json.jbuilder | json.encoding_progress(video_file.encoding_progress.to_i)
json.format(file_format(video_file))
json.dimensions(file_dimensions(video_file))
json.duration(file_duration(video_file))
if video_file.state == 'encoded'
json.sources(video_file_sources(video_file)) do |source|
json.src source[:high_src]
json.type ... | json.(video_file, :width, :height)
json.encoding_progress(video_file.encoding_progress.to_i)
json.format(file_format(video_file))
json.dimensions(file_dimensions(video_file))
json.duration(file_duration(video_file))
if video_file.state == 'encoded'
json.sources(video_file_sources(video_file)) do |source|
json.s... | Include Video Height and Width in Editor Seed Data | Include Video Height and Width in Editor Seed Data
| Ruby | mit | codevise/pageflow,grgr/pageflow,schoetty/pageflow,schoetty/pageflow,BenHeubl/pageflow,schoetty/pageflow,tf/pageflow-dependabot-test,Modularfield/pageflow,grgr/pageflow,tf/pageflow,tilsammans/pageflow,Modularfield/pageflow,tf/pageflow,luatdolphin/pageflow,YoussefChafai/pageflow,tilsammans/pageflow,Modularfield/pageflow,... | ruby | ## Code Before:
json.encoding_progress(video_file.encoding_progress.to_i)
json.format(file_format(video_file))
json.dimensions(file_dimensions(video_file))
json.duration(file_duration(video_file))
if video_file.state == 'encoded'
json.sources(video_file_sources(video_file)) do |source|
json.src source[:high_src... |
8a55e9fac0885c5b6eb21cd8f3da54a105de8010 | sktracker/__init__.py | sktracker/__init__.py |
try:
from .version import __version__
except ImportError:
__version__ = "dev"
|
try:
from .version import __version__
except ImportError:
__version__ = "dev"
import utils
| Fix utils module import mechanism | Fix utils module import mechanism
| Python | bsd-3-clause | bnoi/scikit-tracker,bnoi/scikit-tracker,bnoi/scikit-tracker | python | ## Code Before:
try:
from .version import __version__
except ImportError:
__version__ = "dev"
## Instruction:
Fix utils module import mechanism
## Code After:
try:
from .version import __version__
except ImportError:
__version__ = "dev"
import utils
|
5a971cc7fecf05ce3f38bf1fcd48592ef04554ff | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import numpy as np
setup(name='parcels',
version='0.0.1',
description="""Framework for Lagrangian tracking of virtual
ocean particles in the petascale age.""",
author="Imperial College ... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import numpy as np
setup(name='parcels',
version='0.0.1',
description="""Framework for Lagrangian tracking of virtual
ocean particles in the petascale age.""",
author="Imperial College ... | Automate package discovery to include sub-packages | Setup: Automate package discovery to include sub-packages
| Python | mit | OceanPARCELS/parcels,OceanPARCELS/parcels | python | ## Code Before:
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import numpy as np
setup(name='parcels',
version='0.0.1',
description="""Framework for Lagrangian tracking of virtual
ocean particles in the petascale age.""",
author="I... |
eb28f042e1fdc6b18fbbc75b2dc31825b9ee70ee | dev/scripts/milestone2rst.py | dev/scripts/milestone2rst.py | from __future__ import print_function
import urllib, json, sys
def generate(milestone):
# Find the milestone number for the given name
milestones_json = json.loads(urllib.urlopen('https://api.github.com/repos/CoolProp/CoolProp/milestones').read())
# Map between name and number
title_to_number_map... | from __future__ import print_function
import urllib, json, sys
def generate(milestone):
# Find the milestone number for the given name
milestones_json = json.loads(urllib.urlopen('https://api.github.com/repos/CoolProp/CoolProp/milestones').read())
# Map between name and number
title_to_number_map... | Allow to get up to 100 issues at once | Allow to get up to 100 issues at once
| Python | mit | dcprojects/CoolProp,DANA-Laboratory/CoolProp,JonWel/CoolProp,henningjp/CoolProp,JonWel/CoolProp,DANA-Laboratory/CoolProp,dcprojects/CoolProp,JonWel/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,dcprojects/CoolProp,CoolProp/CoolProp,henningjp/CoolProp,dcprojects/CoolProp,henningjp/CoolProp,JonWel/CoolPr... | python | ## Code Before:
from __future__ import print_function
import urllib, json, sys
def generate(milestone):
# Find the milestone number for the given name
milestones_json = json.loads(urllib.urlopen('https://api.github.com/repos/CoolProp/CoolProp/milestones').read())
# Map between name and number
tit... |
8396ac44d434a06c410c516b6109ec6ace030601 | examples/pyuv_cffi_example.py | examples/pyuv_cffi_example.py | import signal
from pyuv_cffi import Loop, Timer, Signal
def sig_cb(sig_h, sig_num):
print('\nsig_cb({}, {})'.format(sig_h, sig_num))
sig_h.stop()
sig_h.loop.stop()
def timer_cb(timer_h):
print('timer_cb({})'.format(timer_h))
def run():
loop = Loop()
timer_h = Timer(loop)
timer_h.star... | import signal
from pyuv_cffi import Loop, Timer, Signal
def sig_cb(sig_h, sig_num):
print('\nsig_cb({}, {})'.format(sig_h, sig_num))
sig_h.stop()
sig_h.loop.stop()
def timer_cb(timer_h):
print('timer_cb({})'.format(timer_h))
def run():
loop = Loop()
timer_h = Timer(loop)
timer_h.star... | Add inline comment regarding freeing resources | Add inline comment regarding freeing resources
| Python | mit | veegee/guv,veegee/guv | python | ## Code Before:
import signal
from pyuv_cffi import Loop, Timer, Signal
def sig_cb(sig_h, sig_num):
print('\nsig_cb({}, {})'.format(sig_h, sig_num))
sig_h.stop()
sig_h.loop.stop()
def timer_cb(timer_h):
print('timer_cb({})'.format(timer_h))
def run():
loop = Loop()
timer_h = Timer(loop)
... |
4ef0ead215d768ca5c78e76f684043b4f5f81b96 | index.md | index.md | ---
title: "GRABITY"
layout: splash
header:
overlay_color: "#000"
overlay_filter: "0.0"
overlay_image: /assets/images/Splash.jpg
title_image: /assets/images/grabity-logo-small.png
cta_label: "Learn More"
cta_url: "/grabity/"
excerpt: "Dance the tango of death in Grabity, a fast-paced, physics-based arena b... | ---
layout: splash
header:
overlay_color: "#000"
overlay_filter: "0.0"
overlay_image: /assets/images/Splash.jpg
title_image: /assets/images/grabity-logo-small.png
cta_label: "Learn More"
cta_url: "/grabity/"
excerpt: "Dance the tango of death in Grabity, a fast-paced, physics-based arena brawler."
---
| Remove title text from home page. | Remove title text from home page.
| Markdown | mit | teamninjathumbs/teamninjathumbs.github.io,teamninjathumbs/teamninjathumbs.github.io,teamninjathumbs/teamninjathumbs.github.io | markdown | ## Code Before:
---
title: "GRABITY"
layout: splash
header:
overlay_color: "#000"
overlay_filter: "0.0"
overlay_image: /assets/images/Splash.jpg
title_image: /assets/images/grabity-logo-small.png
cta_label: "Learn More"
cta_url: "/grabity/"
excerpt: "Dance the tango of death in Grabity, a fast-paced, physi... |
693a7ecb45758676c3689f0294741acfc31e8e7c | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), fname), 'r') as infile:
content = infile.read()
return content
setup(
name='marshmallow-polyfield',
version=5.0,
description='An unofficial extension to Marshmallow ... | import os
from setuptools import setup
def read(fname):
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), fname), 'r') as infile:
content = infile.read()
return content
setup(
name='marshmallow-polyfield',
version=5.0,
description='An unofficial extension to Marshmallow ... | Add version constraint for marshmallow | Add version constraint for marshmallow
| Python | apache-2.0 | Bachmann1234/marshmallow-polyfield | python | ## Code Before:
import os
from setuptools import setup
def read(fname):
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), fname), 'r') as infile:
content = infile.read()
return content
setup(
name='marshmallow-polyfield',
version=5.0,
description='An unofficial extension... |
c40daf6aef2077b3b348341c6a335a16421603d6 | lib/metaforce/dsl.rb | lib/metaforce/dsl.rb | require 'tempfile'
require 'zip/zip'
module Metaforce
module DSL
module Metadata
# Logs in and creates a new instance of Metaforce::Metadata::Client
def login(options)
@client = Metaforce::Metadata::Client.new options
yield if block_given?
end
# Deploy the contents of _d... | require 'tempfile'
require 'zip/zip'
module Metaforce
module DSL
module Metadata
# Logs in and creates a new instance of Metaforce::Metadata::Client
def login(options)
@client = Metaforce::Metadata::Client.new options
yield if block_given?
end
# Deploy the contents of _d... | Call .retrieve if manifest is a hash | Call .retrieve if manifest is a hash
| Ruby | mit | gnilrets/metaforce,mdemin914/metaforce,Yesware/metaforce,assistly/metaforce,Japan-Venture-Research/metaforce,SchoolKeep/metaforce,ejholmes/metaforce | ruby | ## Code Before:
require 'tempfile'
require 'zip/zip'
module Metaforce
module DSL
module Metadata
# Logs in and creates a new instance of Metaforce::Metadata::Client
def login(options)
@client = Metaforce::Metadata::Client.new options
yield if block_given?
end
# Deploy th... |
e2cefc2b850473ffff9994c7bf423802af9d0bb5 | app/views/reports/_monthly.haml | app/views/reports/_monthly.haml | %table
%thead
%tr
%th{colspan: 6} Monthly Report
- 1.upto(1.month.ago.end_of_month.day) do |num_days|
- day = 1.month.ago.end_of_month - (num_days - 1).days
- posts = Post.where(tagged_at: day.beginning_of_day .. day.end_of_day)
- if posts.present?
%tr
%th.subber{cols... | %table
%thead
%tr
%th{colspan: 6} Monthly Report
- 1.upto(1.month.ago.end_of_month.day) do |num_days|
- day = 1.month.ago.end_of_month - (num_days - 1).days
- posts = Post.where(tagged_at: day.beginning_of_day .. day.end_of_day)
- if posts.present?
%tr
%th.subber{cols... | Hide private posts from the monthly list | Hide private posts from the monthly list
| Haml | mit | Marri/glowfic,Marri/glowfic,Marri/glowfic,Marri/glowfic | haml | ## Code Before:
%table
%thead
%tr
%th{colspan: 6} Monthly Report
- 1.upto(1.month.ago.end_of_month.day) do |num_days|
- day = 1.month.ago.end_of_month - (num_days - 1).days
- posts = Post.where(tagged_at: day.beginning_of_day .. day.end_of_day)
- if posts.present?
%tr
... |
2e9f0dbaeeb8dc8b2894c57f9a2587dc166c670a | .travis.yml | .travis.yml | language: python
env:
global:
- DEPENDS="numpy cython"
python:
- "2.7"
- "3.3"
- "3.4"
matrix:
include:
# Absolute minimum dependencies
- python: 2.7
env:
- DEPENDS="numpy==1.7.0 cython==0.19"
# test without Cython installed
- python: 2.7
env:
- DEPENDS="n... | language: python
env:
global:
- DEPENDS="numpy cython"
- NO_NET=1
python:
- "2.7"
- "3.3"
- "3.4"
matrix:
include:
# Absolute minimum dependencies
- python: 2.7
env:
- DEPENDS="numpy==1.7.0 cython==0.19"
# test without Cython installed
- python: 2.7
env:
... | Set NO_NET for Travis CI build. | Set NO_NET for Travis CI build.
| YAML | mit | Unidata/netcdf4-python,Unidata/netcdf4-python,Unidata/netcdf4-python | yaml | ## Code Before:
language: python
env:
global:
- DEPENDS="numpy cython"
python:
- "2.7"
- "3.3"
- "3.4"
matrix:
include:
# Absolute minimum dependencies
- python: 2.7
env:
- DEPENDS="numpy==1.7.0 cython==0.19"
# test without Cython installed
- python: 2.7
env:
... |
5cfea2ffb89d3f81e20bb36dd5341b281fa78ada | app/assets/javascripts/scripts.js | app/assets/javascripts/scripts.js | $(function(){
$(".tablesorter").tablesorter();
$("tr[data-link]").click(function() {
window.location = $(this).data("link")
});
console.log('Scripts loaded.');
});
| var tablesort = function() {
$(".tablesorter").tablesorter();
console.log('Tablesorter loaded.');
};
$(document).on('turbolinks:load', tablesort);
| Load js on turbolink refresh | Load js on turbolink refresh
| JavaScript | mit | greenvault/wahlbezirke,greenvault/wahlbezirke,greenvault/wahlbezirke | javascript | ## Code Before:
$(function(){
$(".tablesorter").tablesorter();
$("tr[data-link]").click(function() {
window.location = $(this).data("link")
});
console.log('Scripts loaded.');
});
## Instruction:
Load js on turbolink refresh
## Code After:
var tablesort = function() {
$(".tablesorter").tablesorter();
... |
22b45ef059c0c1a3148d754aa617e9248c7ed32a | tests/yaml/en-ueb-math.yaml | tests/yaml/en-ueb-math.yaml | table: [tables/en-ueb-g1.ctb]
# When there are spaces within arithmetic equations, such as "12 + 2 =
# 14", the resulting UEB appears correct, with a numeric indicator
# before each number sequence. However, if there are no spaces around
# the operators, then the numeric indicator is not consistently
# applied.
# It a... | table: [tables/en-ueb-g1.ctb]
tests:
- ['12 + 2 = 14', '#ab "6 #b "7 #ad']
- ['12 - 2 = 10', '#ab - #b "7 #aj']
- ['12 * 2 = 24', '#ab "9 #b "7 #bd']
- ['12 / 2 = 6', '#ab _/ #b "7 #f']
- ['12+2=24', '#ab"6#b"7#bd']
- ['12-2=10', '#ab-#b"7#aj']
- ['12*2=24', '#ab"9#b"7#bd']
- ['12/2=6', '#ab_/#b"7#f']
... | Fix a faulty test case | Fix a faulty test case
According to #141 it is wrong to omit spaces. So leave the spaces in
the expected output (just like all the other math tests in this file).
Fixes #141
| YAML | lgpl-2.1 | hammera/liblouis,BueVest/liblouis,IndexBraille/liblouis,liblouis/liblouis,IndexBraille/liblouis,BueVest/liblouis,BueVest/liblouis,vsmontalvao/liblouis,vsmontalvao/liblouis,hammera/liblouis,liblouis/liblouis,IndexBraille/liblouis,liblouis/liblouis,liblouis/liblouis,vsmontalvao/liblouis,BueVest/liblouis,IndexBraille/libl... | yaml | ## Code Before:
table: [tables/en-ueb-g1.ctb]
# When there are spaces within arithmetic equations, such as "12 + 2 =
# 14", the resulting UEB appears correct, with a numeric indicator
# before each number sequence. However, if there are no spaces around
# the operators, then the numeric indicator is not consistently
# ... |
8410d88bdc9c9dcf4d2c3584c5334de55194f4fb | src/components/tab.jsx | src/components/tab.jsx | var React = require('react');
var classNames = require('classnames');
module.exports = Tab = React.createClass({
displayName: 'Tab',
contextTypes: {
activeClassName: React.PropTypes.string.isRequired
},
propTypes: {
className: React.PropTypes.string,
id: React.PropTypes.number.... | var React = require('react');
var classNames = require('classnames');
module.exports = Tab = React.createClass({
displayName: 'Tab',
contextTypes: {
activeClassName: React.PropTypes.string.isRequired
},
propTypes: {
className: React.PropTypes.string,
id: React.PropTypes.number,... | Fix error when Id is not specified on the Tab component | Fix error when Id is not specified on the Tab component
| JSX | mit | janvanhelvoort/easy-tabs | jsx | ## Code Before:
var React = require('react');
var classNames = require('classnames');
module.exports = Tab = React.createClass({
displayName: 'Tab',
contextTypes: {
activeClassName: React.PropTypes.string.isRequired
},
propTypes: {
className: React.PropTypes.string,
id: React.P... |
1c4309b1dd21d28cbe25266c1eca023ced12a892 | liquibase-core/src/main/java/liquibase/datatype/core/TinyIntType.java | liquibase-core/src/main/java/liquibase/datatype/core/TinyIntType.java | package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.DerbyDatabase;
import liquibase.database.core.MSSQLDatabase;
import liquibase.database.core.OracleDatabase;
import liquibase.database.core.PostgresDatabase;
import liquibase.datatype.DataTypeInfo;
import liquiba... | package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.DerbyDatabase;
import liquibase.database.core.MSSQLDatabase;
import liquibase.database.core.OracleDatabase;
import liquibase.database.core.PostgresDatabase;
import liquibase.datatype.DataTypeInfo;
import liquiba... | Use smallint for Firebird if tinyint is requested | Use smallint for Firebird if tinyint is requested | Java | apache-2.0 | dyk/liquibase,mattbertolini/liquibase,liquibase/liquibase,vast-engineering/liquibase,russ-p/liquibase,foxel/liquibase,foxel/liquibase,gquintana/liquibase,talklittle/liquibase,maberle/liquibase,syncron/liquibase,vfpfafrf/liquibase,tjardo83/liquibase,pellcorp/liquibase,fbiville/liquibase,EVODelavega/liquibase,adriens/liq... | java | ## Code Before:
package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.DerbyDatabase;
import liquibase.database.core.MSSQLDatabase;
import liquibase.database.core.OracleDatabase;
import liquibase.database.core.PostgresDatabase;
import liquibase.datatype.DataTypeInfo;
import... |
011c315def9a48ebae3e964c0be36023874c2019 | src/gwt/src/org/rstudio/studio/RStudioDraft.gwt.xml | src/gwt/src/org/rstudio/studio/RStudioDraft.gwt.xml | <module rename-to="rstudio">
<inherits name="org.rstudio.studio.RStudio" />
<set-property name="user.agent" value="safari,gecko1_8,ie8" />
<set-property name="locale" value="default" />
<set-property name="rstudio.debug" value="true" />
<set-property name="rstudio.desktop" value="false" />
</module> | <module rename-to="rstudio">
<inherits name="org.rstudio.studio.RStudio" />
<set-property name="user.agent" value="safari,gecko1_8,ie8" />
<set-property name="locale" value="default" />
<set-property name="rstudio.desktop" value="false" />
</module> | Remove rstudio.debug from draft config | Remove rstudio.debug from draft config | XML | agpl-3.0 | piersharding/rstudio,brsimioni/rstudio,sfloresm/rstudio,vbelakov/rstudio,pssguy/rstudio,jzhu8803/rstudio,edrogers/rstudio,nvoron23/rstudio,piersharding/rstudio,thklaus/rstudio,thklaus/rstudio,suribes/rstudio,john-r-mcpherson/rstudio,jar1karp/rstudio,piersharding/rstudio,jrnold/rstudio,more1/rstudio,githubfun/rstudio,sf... | xml | ## Code Before:
<module rename-to="rstudio">
<inherits name="org.rstudio.studio.RStudio" />
<set-property name="user.agent" value="safari,gecko1_8,ie8" />
<set-property name="locale" value="default" />
<set-property name="rstudio.debug" value="true" />
<set-property name="rstudio.desktop" value="false" /... |
bada9370674e3f9da789af2bf64ff4bcd19aa666 | src/View/View/ViewFinderInterface.php | src/View/View/ViewFinderInterface.php | <?php
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Engine;
use BrightNucleus\View\Sup... | <?php
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Engine;
use BrightNucleus\View\Sup... | Add `null` in typehint where needed. | Add `null` in typehint where needed.
| PHP | mit | brightnucleus/view | php | ## Code Before:
<?php
/**
* Bright Nucleus View Component.
*
* @package BrightNucleus\View
* @author Alain Schlesser <alain.schlesser@gmail.com>
* @license MIT
* @link http://www.brightnucleus.com/
* @copyright 2016 Alain Schlesser, Bright Nucleus
*/
namespace BrightNucleus\View\Engine;
use Bright... |
fc294cabd62181ce490e49d2c5654d781ca090a5 | docker-swarmDB-compose.yml | docker-swarmDB-compose.yml | version: '3.3'
networks:
mongoIMG:
external: true
services:
router1:
image: mongo:3.4
ports:
- "27081:27081"
volumes:
- /mnt:/data
command: mongod --noprealloc --replSet dataGroup1 --shardsvr --port 27020
deploy:
mode: replicated
replicas: 1
placement:
... | version: '3.3'
networks:
mongoIMG:
external: true
services:
router1:
image: mongo:3.4
ports:
- "27081:27081"
volumes:
- /mnt/db:/data/db
command: mongod --noprealloc --replSet dataGroup1 --shardsvr --port 27020
deploy:
mode: replicated
replicas: 1
placement:... | Update change configdb and routedb. /mnt/db /mnt/configdb | Update change configdb and routedb.
/mnt/db
/mnt/configdb
important is config router
mkdir -p /mnt/db
mkdir -p /mnt/configdb
| YAML | mit | lionants02/ThumborMongoShardingCompose | yaml | ## Code Before:
version: '3.3'
networks:
mongoIMG:
external: true
services:
router1:
image: mongo:3.4
ports:
- "27081:27081"
volumes:
- /mnt:/data
command: mongod --noprealloc --replSet dataGroup1 --shardsvr --port 27020
deploy:
mode: replicated
replicas: 1
... |
c896700044223ad3b9a21dc8c0032b6734051c0f | config/newemacs/settings/c-settings.el | config/newemacs/settings/c-settings.el | (use-package company-c-headers
:config
(add-to-list 'company-backends 'company-c-headers))
(add-hook 'c-mode-common-hook 'hs-minor-mode)
(defun c-kr-style ()
"C mode"
(interactive)
(c-set-style "K&R")
(setq-default indent-tabs-mode t)
(setq c-syntactic-indentation nil)
(setq tab-width 4)
(setq c-bas... | (use-package company-c-headers
:config
(add-to-list 'company-backends 'company-c-headers))
(add-hook 'c-mode-common-hook 'hs-minor-mode)
(defun c-kr-style ()
"C mode"
(interactive)
(c-set-style "K&R")
(setq-local indent-tabs-mode t)
(setq c-syntactic-indentation nil)
(setq tab-width 4)
(setq c-basic... | Stop fucking other modes indentation | Stop fucking other modes indentation
| Emacs Lisp | mit | rogerzanoni/dotfiles | emacs-lisp | ## Code Before:
(use-package company-c-headers
:config
(add-to-list 'company-backends 'company-c-headers))
(add-hook 'c-mode-common-hook 'hs-minor-mode)
(defun c-kr-style ()
"C mode"
(interactive)
(c-set-style "K&R")
(setq-default indent-tabs-mode t)
(setq c-syntactic-indentation nil)
(setq tab-width ... |
0de0aead3a6099114a1a4304fe450c802cf891fb | lib/gym_tcp_api.ex | lib/gym_tcp_api.ex |
defmodule GymTcpApi do
use Application
def start(_type, _args) do
import Supervisor.Spec
poolboy_config = [
{:name, {:local, pool_name()}},
{:worker_module, GymTcpApi.Worker},
{:size, Application.get_env(:gym_tcp_api, :worker)},
{:max_overflow, 0}
]
children = [
:po... |
defmodule GymTcpApi do
use Application
def start(_type, _args) do
import Supervisor.Spec
poolboy_config = [
{:name, {:local, pool_name()}},
{:worker_module, GymTcpApi.Worker},
{:size, Application.get_env(:gym_tcp_api, :worker)},
{:max_overflow, 0},
{:strategy, :fifo}
]
... | Use fifo strategy for the worker. | Use fifo strategy for the worker.
| Elixir | bsd-3-clause | zoq/gym_tcp_api,zoq/gym_tcp_api | elixir | ## Code Before:
defmodule GymTcpApi do
use Application
def start(_type, _args) do
import Supervisor.Spec
poolboy_config = [
{:name, {:local, pool_name()}},
{:worker_module, GymTcpApi.Worker},
{:size, Application.get_env(:gym_tcp_api, :worker)},
{:max_overflow, 0}
]
childr... |
473fe424528aa1fcf2b96fac0601a42a1841835f | .travis.yml | .travis.yml | language: ruby
script : script/cibuild
cache: bundler
sudo: false
before_install:
- gem update --system
- bundle update
rvm:
- 2.3
- 2.4
- 2.5
env:
- ""
- JEKYLL_VERSION=3.7.4
matrix:
include:
- # GitHub Pages
rvm: 2.5.1
env: GH_PAGES=true
| language: ruby
script : script/cibuild
cache: bundler
sudo: false
before_install:
- gem update --system
- bundle update
rvm:
- 2.4
- 2.6
env:
- ""
- JEKYLL_VERSION=3.7.4
matrix:
include:
- # GitHub Pages
rvm: 2.5.3
env: GH_PAGES=true
| Add Ruby 2.6, drop Ruby 2.3 | chore(ci): Add Ruby 2.6, drop Ruby 2.3 | YAML | mit | jekyll/jekyll-archives,jekyll/jekyll-archives,jekyll/jekyll-archives | yaml | ## Code Before:
language: ruby
script : script/cibuild
cache: bundler
sudo: false
before_install:
- gem update --system
- bundle update
rvm:
- 2.3
- 2.4
- 2.5
env:
- ""
- JEKYLL_VERSION=3.7.4
matrix:
include:
- # GitHub Pages
rvm: 2.5.1
env: GH_PAGES=true
## Instruction:
chore(ci): Ad... |
0a1bee3cfc09557c55445523e848cf1a7ee2fce8 | plugins/tripleo-overcloud/vars/overcloud/templates/dns.yml | plugins/tripleo-overcloud/vars/overcloud/templates/dns.yml | ---
tripleo_heat_templates:
[]
custom_templates:
parameter_defaults:
NeutronPluginExtensions: qos,port_security,dns
ControllerExtraConfig:
neutron::dns_domain: example.org | ---
tripleo_heat_templates:
[]
custom_templates:
parameter_defaults:
NeutronPluginExtensions: qos,port_security,dns
ControllerExtraConfig:
neutron::dns_domain: openstackgate.local
| Change configured domain for internal DNS tests | Change configured domain for internal DNS tests
Current revisions of the test expect the domain to be
openstackgate.local [0], which is also the expected value for API tests
[1]. Use this value in dns config template
https://bugzilla.redhat.com/show_bug.cgi?id=1739016
[0] https://opendev.org/openstack/neutron-tempes... | YAML | apache-2.0 | redhat-openstack/infrared,redhat-openstack/infrared,redhat-openstack/infrared | yaml | ## Code Before:
---
tripleo_heat_templates:
[]
custom_templates:
parameter_defaults:
NeutronPluginExtensions: qos,port_security,dns
ControllerExtraConfig:
neutron::dns_domain: example.org
## Instruction:
Change configured domain for internal DNS tests
Current revisions of the test ... |
405acc213c0861d4aab21a568c5419d4a48a2b57 | test/testHelper.js | test/testHelper.js | require("babel/register")({
stage: 1,
ignore: /node_modules/
});
global.Promise = require('bluebird')
global.Promise.onPossiblyUnhandledRejection((e) => { throw e; });
global.Promise.config({
// Enable warnings.
warnings: false,
// Enable long stack traces.
longStackTraces: true,
// Enable cancellation.... | require("babel/register")({
stage: 1,
ignore: /node_modules/
});
global.Promise = require('bluebird')
global.Promise.onPossiblyUnhandledRejection((e) => { throw e; });
global.Promise.config({
// Enable warnings.
warnings: false,
// Enable long stack traces.
longStackTraces: true,
// Enable cancellation.... | Add postgres connection and knex to global test variables. | Add postgres connection and knex to global test variables.
| JavaScript | mit | golozubov/freefeed-server,golozubov/freefeed-server,SiTLar/freefeed-server,FreeFeed/freefeed-server,FreeFeed/freefeed-server,SiTLar/freefeed-server | javascript | ## Code Before:
require("babel/register")({
stage: 1,
ignore: /node_modules/
});
global.Promise = require('bluebird')
global.Promise.onPossiblyUnhandledRejection((e) => { throw e; });
global.Promise.config({
// Enable warnings.
warnings: false,
// Enable long stack traces.
longStackTraces: true,
// Enab... |
67b77957e758af29d692f6a69b319d5a44c26187 | .travis.yml | .travis.yml | sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
allow_failures:
- php: 7.0
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer self-update && composer --version
- composer install
services:
- mongodb
- redis-server
after_script:
... | sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
allow_failures:
- php: 7.0
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer self-update && composer --version
- composer install
services:
- mongodb
- redis-server
after_script:
... | Add correct path to code coverage | Add correct path to code coverage
| YAML | mit | cronario/messenger | yaml | ## Code Before:
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
allow_failures:
- php: 7.0
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer self-update && composer --version
- composer install
services:
- mongodb
- redis-server
... |
ae58b1bc3efcc9437c7a68998510302a4d8be3e2 | app/assets/javascripts/page_initialise.coffee | app/assets/javascripts/page_initialise.coffee | jQuery ->
$(".date-chooser").each ->
new window.DateChooser($(this))
$("form [data-show-when]").each ->
new window.ShowHide($(this))
$("form [data-disable-when]").each ->
new window.DisableChecker($(this))
$("table tr.clickable-row").each ->
$(this).addClass("clickable-row-active")
$(this... | jQuery ->
$(document).on "drs:init_form_components", (e) ->
$target = $(e.target)
$target.find(".date-chooser").each ->
new window.DateChooser($(this))
$target.find("form [data-show-when]").each ->
new window.ShowHide($(this))
$target.find("form [data-disable-when]").each ->
new ... | Introduce javascript event to init form components | Introduce javascript event to init form components
This is to allow these to be initialised both on a page load and also when forms are loaded inline using AJAX
| CoffeeScript | mit | ministryofjustice/defence-request-service,ministryofjustice/defence-request-service,ministryofjustice/defence-request-service,ministryofjustice/defence-request-service | coffeescript | ## Code Before:
jQuery ->
$(".date-chooser").each ->
new window.DateChooser($(this))
$("form [data-show-when]").each ->
new window.ShowHide($(this))
$("form [data-disable-when]").each ->
new window.DisableChecker($(this))
$("table tr.clickable-row").each ->
$(this).addClass("clickable-row-act... |
b38092eb8072dea71233f873e9ebdf6304dc1093 | lib/rand_id_test.go | lib/rand_id_test.go | package lib
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestRandomIds(t *testing.T) {
Convey("Given a random identifier", t, func() {
s := RandomIdentifier()
Convey("Then it is a string", func() {
So(s, ShouldHaveSameTypeAs, "asd")
})
Convey("When I generate another identifier... | package lib
import (
"fmt"
)
func ExampleRandomIdentifier_AreDifferent() {
a := RandomIdentifier()
b := RandomIdentifier()
fmt.Println(a == b)
// Output: false
}
func ExampleRandomIdentifierOfLength() {
s := RandomIdentifierOfLength(64)
fmt.Println(len(s))
// Output: 64
}
| Use examples instead of explicit tests | Use examples instead of explicit tests
| Go | apache-2.0 | involucro/involucro,thriqon/involucro | go | ## Code Before:
package lib
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestRandomIds(t *testing.T) {
Convey("Given a random identifier", t, func() {
s := RandomIdentifier()
Convey("Then it is a string", func() {
So(s, ShouldHaveSameTypeAs, "asd")
})
Convey("When I generate an... |
409bdd79ef2b91673693f66282b66c9621a65aa1 | app/app_test.go | app/app_test.go | package app_test
import (
"github.com/julienbayle/jeparticipe/app/test"
"github.com/stretchr/testify/assert"
"testing"
)
func TestApp(t *testing.T) {
jeparticipe, handler, event := apptest.CreateATestApp()
defer apptest.DeleteTestApp(jeparticipe)
token := apptest.GetAdminTokenForEvent(t, &handler, event)
ass... | package app_test
import (
"github.com/ant0ine/go-json-rest/rest/test"
"github.com/julienbayle/jeparticipe/app/test"
"github.com/stretchr/testify/assert"
"testing"
)
func TestApp(t *testing.T) {
jeparticipe, handler, event := apptest.CreateATestApp()
defer apptest.DeleteTestApp(jeparticipe)
token := apptest.G... | Correct a typo in MakeAdminRequest call | Correct a typo in MakeAdminRequest call
| Go | mit | julienbayle/jeparticipe,julienbayle/jeparticipe | go | ## Code Before:
package app_test
import (
"github.com/julienbayle/jeparticipe/app/test"
"github.com/stretchr/testify/assert"
"testing"
)
func TestApp(t *testing.T) {
jeparticipe, handler, event := apptest.CreateATestApp()
defer apptest.DeleteTestApp(jeparticipe)
token := apptest.GetAdminTokenForEvent(t, &hand... |
cb37d223652f2a58a8c2393eaf5b1cead672031a | js/run-three.js | js/run-three.js | ( function() {
var runMaker = new RunMaker();
var fileDropArea = document.getElementById( 'drop_zone' );
fileDropArea.addEventListener( 'drop', dropFile, false );
fileDropArea.addEventListener( 'dragover', cancel, false );
fileDropArea.addEventListener( 'dragenter', cancel, false );
fileDropAr... | ( function() {
var runMaker = new RunMaker();
var fileDropArea = document.getElementById( 'drop_zone' );
fileDropArea.addEventListener( 'drop', dropFile, false );
fileDropArea.addEventListener( 'dragover', cancel, false );
fileDropArea.addEventListener( 'dragenter', cancel, false );
fileDropAr... | Check dropped file is a GPX file | Check dropped file is a GPX file
| JavaScript | mit | CharlesHouston/run-three,CharlesHouston/run-three | javascript | ## Code Before:
( function() {
var runMaker = new RunMaker();
var fileDropArea = document.getElementById( 'drop_zone' );
fileDropArea.addEventListener( 'drop', dropFile, false );
fileDropArea.addEventListener( 'dragover', cancel, false );
fileDropArea.addEventListener( 'dragenter', cancel, false )... |
2807e2c39e54046cb750c290cb7b12b289e1cd9a | test/test_indexing.py | test/test_indexing.py | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
database.build_... | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
client = Client()
yield client
client.close()
def test_broken(client, tmp_path):
db = tm... | Clean up dask client in indexing test | Clean up dask client in indexing test
| Python | apache-2.0 | OceansAus/cosima-cookbook | python | ## Code Before:
import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
... |
c05630209047f804ff23c0b9a3d2d27ea3982c87 | partials/algebra.html | partials/algebra.html | ALGEBRA - TODO | <div class="container-fluid" ng-controller="algCrtl">
<br>
<div class="row">
<div class="col-xs-10">
<div class="row">
<h3>Lista argomenti</h3>
<div class="list-group">
<a href="#" class="list-group-item">First item</a>
... | Add a static list group (next step populate by DB). Add the toolbar with alg operation and add input form for insert query. | Add a static list group (next step populate by DB). Add the toolbar with alg operation and add input form for insert query.
| HTML | agpl-3.0 | Helias/Database-Exercise-System,Helias/Database-Exercise-System,Helias/Database-Exercise-System | html | ## Code Before:
ALGEBRA - TODO
## Instruction:
Add a static list group (next step populate by DB). Add the toolbar with alg operation and add input form for insert query.
## Code After:
<div class="container-fluid" ng-controller="algCrtl">
<br>
<div class="row">
<div class="col-xs-10">
<di... |
36f3f1ec859a61d43488b716233f520ff8fce203 | .github/pull_request_template.md | .github/pull_request_template.md | <!-- High-level, one sentence summary of what this PR accomplishes -->
## Changes
<!-- * Description of change 1 -->
<!-- * Description of change 2 -->
<!-- ... -->
## Related issues
<!-- Put `Closes #XXXX` for each issue number this PR fixes/closes -->
| <!-- High-level, one sentence summary of what this PR accomplishes -->
## Changes
<!-- * Description of change 1 -->
<!-- * Description of change 2 -->
<!-- ... -->
## Motivation
<!-- Why were the changes necessary. -->
<!-- ## Example usage (if applicable) -->
## Related issues
<!-- Put `Closes #XXXX` for each iss... | Add motivation and example usage | Add motivation and example usage
| Markdown | mit | stretchr/testify,stretchr/testify | markdown | ## Code Before:
<!-- High-level, one sentence summary of what this PR accomplishes -->
## Changes
<!-- * Description of change 1 -->
<!-- * Description of change 2 -->
<!-- ... -->
## Related issues
<!-- Put `Closes #XXXX` for each issue number this PR fixes/closes -->
## Instruction:
Add motivation and example usag... |
3def46fbe7edbc34b830315128ea14cc3020d0e3 | README.md | README.md | * Nodejs 7.10
* MySQL 5.7
* Redis 3
### Installation
* `cp .env.example ../.env` and add custom config
* `npm install`
* `cd site`
* * `npm install`
* * `npm run init` *(Installs bower dependencies and runs gulp)*
* * *Optional* New tab `npm run watch` *(gulp watch for file changes)*
* `cd ../`
* New tab `docker-co... | * Nodejs 7.10
* MySQL 5.7
* Redis
### Installation
* `cp .env.example ../.env` and add custom config
* `npm install`
* `cd site`
* * `npm install`
* * `npm run init` *(Installs bower dependencies and runs gulp)*
* * *Optional* New tab `npm run watch` *(gulp watch for file changes)*
* `cd ../`
* New tab `docker-comp... | Add info about generating db tables | Add info about generating db tables | Markdown | mit | chamsocial/Chamsocial,chamsocial/Chamsocial,chamsocial/Chamsocial | markdown | ## Code Before:
* Nodejs 7.10
* MySQL 5.7
* Redis 3
### Installation
* `cp .env.example ../.env` and add custom config
* `npm install`
* `cd site`
* * `npm install`
* * `npm run init` *(Installs bower dependencies and runs gulp)*
* * *Optional* New tab `npm run watch` *(gulp watch for file changes)*
* `cd ../`
* Ne... |
24c6cee8bbbbb217889989fe3eb676cbda93350f | templates/settings/tags.hbs | templates/settings/tags.hbs | <header class="settings-view-header">
<a class="btn btn-default btn-back active" href="/ghost/settings/">Back</a>
<h2 class="page-title">Tags</h2>
<section class="page-actions">
<button type="button" class="btn btn-green" {{action "newTag"}}>New Tag</button>
</section>
</header>
<section class=... | <header class="settings-view-header">
<h2 class="page-title">Tags</h2>
<div class="js-settings-header-inner settings-header-inner">
{{#link-to 'settings' class='btn btn-default btn-back'}}Back{{/link-to}}
</div>
<section class="page-actions">
<button type="button" class="btn btn-green" {... | Fix back button on tag UI page | Fix back button on tag UI page
closes #4703
- previous link used absolute url which fails for subdirectories
| Handlebars | mit | dbalders/Ghost-Admin,acburdine/Ghost-Admin,JohnONolan/Ghost-Admin,TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,airycanon/Ghost-Admin,acburdine/Ghost-Admin,kevinansfield/Ghost-Admin,airycanon/Ghost-Admin,dbalders/Ghost-Admin,TryGhost/Ghost-Admin,JohnONolan/Ghost-Admin | handlebars | ## Code Before:
<header class="settings-view-header">
<a class="btn btn-default btn-back active" href="/ghost/settings/">Back</a>
<h2 class="page-title">Tags</h2>
<section class="page-actions">
<button type="button" class="btn btn-green" {{action "newTag"}}>New Tag</button>
</section>
</header>
... |
57076f2864ffcca96a9f5ada463b1088b677a4d6 | .travis.yml | .travis.yml | language: python
sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
install:
- travis_retry pip install tox
script:
- tox
| language: python
sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
install:
- travis_retry pip install tox
script:
- tox
| Drop support for Python 3.2. | Drop support for Python 3.2.
| YAML | unlicense | penyatree/furl,guiquanz/furl,lastfm/furl,Gerhut/furl | yaml | ## Code Before:
language: python
sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
install:
- travis_retry pip install tox
script:
- tox
## Instruction:
Drop support for Python 3.2.
## Code After:
language: python
sudo: false
env:
... |
ac9d3e636e8c50440d813d9f188abe1445ce9861 | tests/unit/stylo/build.rs | tests/unit/stylo/build.rs | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::process::Command;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::process::Command;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun... | Add rerun-if-changed for bindings file | Add rerun-if-changed for bindings file
check_bindings.py uses bindings.rs as input, so it should be rerun if
that file gets changed.
| Rust | mpl-2.0 | ConnorGBrewster/servo,SimonSapin/servo,upsuper/servo,eddyb/servo,jimberlage/servo,CJ8664/servo,peterjoel/servo,canaltinova/servo,jimberlage/servo,upsuper/servo,avadacatavra/servo,canaltinova/servo,CJ8664/servo,nnethercote/servo,rnestler/servo,thiagopnts/servo,szeged/servo,dati91/servo,DominoTree/servo,canaltinova/servo... | rust | ## Code Before:
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use std::process::Command;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
print... |
b262d97518576ed0eacd7b5345b3e847c3d7eeea | tests/entry.js | tests/entry.js | var testsContext = require.context('./unit/', true, /.js$/);
testsContext.keys().forEach(testsContext);
| import BabelPolyFill from 'babel-polyfill';
var testsContext = require.context('./unit/', true, /.js$/);
testsContext.keys().forEach(testsContext);
| Add `babel-polyfill` to test environment | Add `babel-polyfill` to test environment
| JavaScript | mit | ufocoder/redux-universal-boilerplate | javascript | ## Code Before:
var testsContext = require.context('./unit/', true, /.js$/);
testsContext.keys().forEach(testsContext);
## Instruction:
Add `babel-polyfill` to test environment
## Code After:
import BabelPolyFill from 'babel-polyfill';
var testsContext = require.context('./unit/', true, /.js$/);
testsContext.keys().... |
9cbab4770f600f7bb5536ef218f25b5cf1fb28d4 | monitoring/api/AlertTest/runTest.ps1 | monitoring/api/AlertTest/runTest.ps1 | Import-Module -DisableNameChecking ..\..\..\BuildTools.psm1
dotnet restore
dotnet build
if ((Get-Date) -lt (Get-Date 2018-05-23)) {
Skip-Test
} else {
dotnet test --test-adapter-path:. --logger:junit --no-restore --no-build -v n
}
| dotnet restore
dotnet build
dotnet test --test-adapter-path:. --logger:junit --no-restore --no-build -v n
| Revert "Suspend alert test until 2018-05-23" | Revert "Suspend alert test until 2018-05-23"
This reverts commit 3f7d7a836332205f7c34c26ca013bae42e52e550.
| PowerShell | apache-2.0 | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples | powershell | ## Code Before:
Import-Module -DisableNameChecking ..\..\..\BuildTools.psm1
dotnet restore
dotnet build
if ((Get-Date) -lt (Get-Date 2018-05-23)) {
Skip-Test
} else {
dotnet test --test-adapter-path:. --logger:junit --no-restore --no-build -v n
}
## Instruction:
Revert "Suspend alert test until 2018-05-23"
... |
7ce25e9c841a98ac2d428a6d7e1a70015e890349 | src/index.js | src/index.js | 'use strict';
import backbone from 'backbone';
import _ from 'underscore';
class Person extends backbone.Model {
getFullName() {
return this.get('firstName') + ' ' + this.get('lastName');
}
}
// Using benmccormick's suggestion
// for decorators to apply properties to class
// before instantiation
// ht... | 'use strict';
import backbone from 'backbone';
import _ from 'underscore';
class Person extends backbone.Model {
getFullName() {
return this.get('firstName') + ' ' + this.get('lastName');
}
}
// Using benmccormick's suggestion
// for decorators to apply properties to class
// before instantiation
// ht... | Move model to this.model in constructor | Move model to this.model in constructor
| JavaScript | mit | andrewrota/backbone-with-es6-classes,andrewrota/backbone-with-es6-classes | javascript | ## Code Before:
'use strict';
import backbone from 'backbone';
import _ from 'underscore';
class Person extends backbone.Model {
getFullName() {
return this.get('firstName') + ' ' + this.get('lastName');
}
}
// Using benmccormick's suggestion
// for decorators to apply properties to class
// before ins... |
d58fa915665c3a2c99588bb19bfaf14e6728371f | channels/__init__.py | channels/__init__.py | import django
__version__ = "2.4.0"
if django.VERSION < (3, 2):
default_app_config = "channels.apps.ChannelsConfig"
DEFAULT_CHANNEL_LAYER = "default"
| __version__ = "2.4.0"
try:
import django
if django.VERSION < (3, 2):
default_app_config = "channels.apps.ChannelsConfig"
except ModuleNotFoundError:
pass
DEFAULT_CHANNEL_LAYER = "default"
| Fix RTD build for missing Django dependency. | Fix RTD build for missing Django dependency.
| Python | bsd-3-clause | andrewgodwin/channels,django/channels,andrewgodwin/django-channels | python | ## Code Before:
import django
__version__ = "2.4.0"
if django.VERSION < (3, 2):
default_app_config = "channels.apps.ChannelsConfig"
DEFAULT_CHANNEL_LAYER = "default"
## Instruction:
Fix RTD build for missing Django dependency.
## Code After:
__version__ = "2.4.0"
try:
import django
if django.VERSION <... |
8256b3a3be1dd946b119d242a2b7ebc8f8e4c32a | src/ThemeChanger.php | src/ThemeChanger.php | <?php
namespace Yajra\CMS\Themes;
use Closure;
class ThemeChanger
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if ($request->query('tmpl... | <?php
namespace Yajra\CMS\Themes;
use Closure;
class ThemeChanger
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if ($theme = $request->qu... | Fix theme changer. Use cms-theme as query param. Set default theme on config. | Fix theme changer.
Use cms-theme as query param.
Set default theme on config.
| PHP | mit | yajra/cms-themes,yajra/cms-themes | php | ## Code Before:
<?php
namespace Yajra\CMS\Themes;
use Closure;
class ThemeChanger
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if ($requ... |
7fabeb8dd660d3f14565811e32cf7a08ac300387 | static/index.html | static/index.html | <!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title></title>
</head>
<body>
hi
</body>
</html>
| <!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>give richo some loot</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<label for="amount">how much</label>
<input type="text" placeholder="... | Add a payment thing with checkout | Add a payment thing with checkout
| HTML | mit | richo/payme,richo/payme | html | ## Code Before:
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title></title>
</head>
<body>
hi
</body>
</html>
## Instruction:
Add a payment thing with checkout
## Code After:
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>g... |
e70fe293684c607bc831c24dbed2032db0a0e0b9 | src/FigText.js | src/FigText.js | import Text from 'kittik-shape-text';
export default class FigText extends Text {
constructor(options = {}) {
super(options);
}
}
| import Shape from 'kittik-shape-basic';
import figlet from 'figlet';
export default class FigText extends Shape {
constructor(options = {}) {
super(options);
this.setFont(options.font);
this.setHorizontalLayout(options.horizontalLayout);
this.setVerticalLayout(options.verticalLayout);
}
/**
... | Implement simple text shape with FIG fonts support | feat(shape): Implement simple text shape with FIG fonts support
| JavaScript | mit | kittikjs/shape-fig-text | javascript | ## Code Before:
import Text from 'kittik-shape-text';
export default class FigText extends Text {
constructor(options = {}) {
super(options);
}
}
## Instruction:
feat(shape): Implement simple text shape with FIG fonts support
## Code After:
import Shape from 'kittik-shape-basic';
import figlet from 'figlet';... |
4023137f9048edcdc7df116ee02e61cfc09b47e9 | server/schema/resolvers/media.js | server/schema/resolvers/media.js | const knex = require('../../knex.js')
const Media = module.exports = {
posted_by: ({user_id}) =>
knex('users').where('id', user_id).then(([user]) => user),
myReaction: ({id}, _, {me}) =>
knex('reactions').where({user_id: me.id, media_id: id})
.limit('1')
.then(([ro... | const knex = require('../../knex.js')
const Media = module.exports = {
posted_by: ({user_id}) =>
knex('users').where('id', user_id).then(([user]) => user),
myReaction: ({id}, _, {me}) =>
!me
? null
: knex('reactions').where({user_id: me.id, media_id: id})
.limit('1')
... | Return null for reaction if user isn't connected | Return null for reaction if user isn't connected
| JavaScript | mit | xouabita/friends-radio | javascript | ## Code Before:
const knex = require('../../knex.js')
const Media = module.exports = {
posted_by: ({user_id}) =>
knex('users').where('id', user_id).then(([user]) => user),
myReaction: ({id}, _, {me}) =>
knex('reactions').where({user_id: me.id, media_id: id})
.limit('1')
... |
bbb508edc3e3c6e0fb198a3e465d2c84db4e8766 | app/controllers/api/json/users_controller.rb | app/controllers/api/json/users_controller.rb | class Api::Json::UsersController < Api::ApplicationController
if Rails.env.production? || Rails.env.staging?
ssl_required :show
end
def show
user = current_user
render :json => user.data
end
def get_authenticated_users
render :json => request.session.select {|k,v| k.start_with?("warden.user... | class Api::Json::UsersController < Api::ApplicationController
skip_before_filter :api_authorization_required, only: [:get_authenticated_users]
if Rails.env.production? || Rails.env.staging?
ssl_required :show
end
def show
user = current_user
render json: user.data
end
def get_authenticated_us... | Fix on users controller auth | Fix on users controller auth
| Ruby | bsd-3-clause | dbirchak/cartodb,CartoDB/cartodb,raquel-ucl/cartodb,thorncp/cartodb,bloomberg/cartodb,bloomberg/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,thorncp/cartodb,DigitalCoder/cartodb,future-analytics/cartodb,nyimbi/cartodb,CartoDB/cartodb,thorncp/cartodb,raquel-ucl/cartodb,codeandtheory/cartodb,dbirchak/car... | ruby | ## Code Before:
class Api::Json::UsersController < Api::ApplicationController
if Rails.env.production? || Rails.env.staging?
ssl_required :show
end
def show
user = current_user
render :json => user.data
end
def get_authenticated_users
render :json => request.session.select {|k,v| k.start_wi... |
6457407adcf551ba745add1be18f0afcb669be9c | roles/mujina-idp/tasks/provision_grouper.yml | roles/mujina-idp/tasks/provision_grouper.yml | - name: copy grouper provision script for mujina
copy: src={{ item }} dest=~/{{ item }}
with_items:
- add-mujina-user.gsh
- name: use correct grouper config
template: src={{ item.src }}.j2 dest=/opt/www/grouper.apiBinary-2.1.5/conf/{{ item.dest }}
with_items:
- { src: sources-grouper-shell.xml, dest: s... | - name: copy grouper provision script for mujina
copy: src={{ item }} dest=~/{{ item }}
with_items:
- add-mujina-user.gsh
- name: provision grouper with users
shell: bin/gsh ~/{{ item }}
register: gsh_output
changed_when: "'auto-created' in gsh_output.stderr"
failed_when: gsh_output.stderr != '' and ("... | Remove grouper sources.xml provisioning. This is already done in the grouper role | Mujina-idp: Remove grouper sources.xml provisioning. This is already done in the grouper role
| YAML | apache-2.0 | OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy,baszoetekouw/OpenConext-deploy,OpenConext/OpenConext-deploy,OpenConext/OpenConext-deploy,baszoetekouw/OpenConext-deploy,baszoetekouw/OpenConext-deploy,baszoetekouw/OpenConext-deploy,OpenConext/OpenConext-deploy,baszoetekouw/OpenConext-deploy | yaml | ## Code Before:
- name: copy grouper provision script for mujina
copy: src={{ item }} dest=~/{{ item }}
with_items:
- add-mujina-user.gsh
- name: use correct grouper config
template: src={{ item.src }}.j2 dest=/opt/www/grouper.apiBinary-2.1.5/conf/{{ item.dest }}
with_items:
- { src: sources-grouper-sh... |
a9c4726eec3e5fd05379feda7cb6faade0fe4d52 | README.md | README.md | Common Workflow Language
========================
This repo holds in-development draft description of the specification being developed on the
[Common Workflow Language mailing list](https://groups.google.com/forum/#!forum/common-workflow-language).
CWL is an informal task force consisting of people from various orga... | Common Workflow Language
========================
This repo holds in-development draft description of the specification being developed on the
[Common Workflow Language mailing list](https://groups.google.com/forum/#!forum/common-workflow-language).
CWL is an informal task force consisting of people from various orga... | Add links to CWL implementations. | Add links to CWL implementations.
| Markdown | apache-2.0 | foreveremain/common-workflow-language,hmenager/common-workflow-language,SciDAP/cwltool,dleehr/cwltool,slnovak/common-workflow-language,dleehr/cwltool,jeremiahsavage/cwltool,chapmanb/cwltool,brainstorm/common-workflow-language,brainstorm/common-workflow-language,mr-c/common-workflow-language,ohsu-computational-biology/c... | markdown | ## Code Before:
Common Workflow Language
========================
This repo holds in-development draft description of the specification being developed on the
[Common Workflow Language mailing list](https://groups.google.com/forum/#!forum/common-workflow-language).
CWL is an informal task force consisting of people f... |
144e133617378522dfd41c291460bfc8ef8ff2c9 | lib/subdomain_fu/url_rewriter.rb | lib/subdomain_fu/url_rewriter.rb | require 'action_dispatch/routing/route_set'
module ActionDispatch
module Routing
class RouteSet #:nodoc:
def url_for_with_subdomains(options, path_segments=nil)
if SubdomainFu.needs_rewrite?(options[:subdomain], options[:host] ) || options[:only_path] == false
options[:only_path] = false ... | require 'action_dispatch/routing/route_set'
module ActionDispatch
module Routing
class RouteSet #:nodoc:
def url_for_with_subdomains(options, path_segments=nil)
if SubdomainFu.needs_rewrite?(options[:subdomain], options[:host] ) || options[:only_path] == false
options[:only_path] = false ... | Remove reference to host/ port | Remove reference to host/ port
| Ruby | mit | mbleigh/subdomain-fu,asok/subdomain-fu,udayakiran/subdomain-fu,yakovenkodenis/subdomain-fu | ruby | ## Code Before:
require 'action_dispatch/routing/route_set'
module ActionDispatch
module Routing
class RouteSet #:nodoc:
def url_for_with_subdomains(options, path_segments=nil)
if SubdomainFu.needs_rewrite?(options[:subdomain], options[:host] ) || options[:only_path] == false
options[:onl... |
8ff71a7e97af7a3b5ba1b1a16d1265a52d1227f8 | client/views/CalendarItem.coffee | client/views/CalendarItem.coffee | Template.CalendarItem.helpers
style: ->
user = Meteor.user()
styles = []
itemStatus = user?.grade?[@gradeItem._id]
itemStatus ?= 'pending'
switch itemStatus
when 'done'
styles.push 'color: lightgray'
when 'doing'
styles.push 'color: orange'
return styles.join '; '
canMarkInterrest: ->
... | Template.CalendarItem.helpers
style: ->
user = Meteor.user()
styles = []
itemStatus = user?.grade?[@gradeItem._id]
itemStatus ?= 'pending'
switch itemStatus
when 'done'
styles.push 'color: lightgray'
when 'doing'
styles.push 'color: orange'
return styles.join '; '
canMarkInterrest: ->
... | Allow to mark interrest in doing subjects | Allow to mark interrest in doing subjects
| CoffeeScript | mit | rodrigok/GradeFaccat,rodrigok/GradeFaccat | coffeescript | ## Code Before:
Template.CalendarItem.helpers
style: ->
user = Meteor.user()
styles = []
itemStatus = user?.grade?[@gradeItem._id]
itemStatus ?= 'pending'
switch itemStatus
when 'done'
styles.push 'color: lightgray'
when 'doing'
styles.push 'color: orange'
return styles.join '; '
canMar... |
36934212bf20d29369bb6da49b651e9ed1544d06 | youmap/templates/chickpea/map_update_tilelayers.html | youmap/templates/chickpea/map_update_tilelayers.html | {% load chickpea_tags %}
<h3>Choose your tilelayers</h3>
<form action="{% url map_update_tilelayers map.pk %}" method="post" id="map_edit">
{% csrf_token %}
<ul class="block-grid four-up mobile">
{% for tilelayer in tilelayers %}
<li>
<label for="tilelayer_{{ forloop.counter }}">
... | {% load chickpea_tags %}
<h3>Choose your tilelayers</h3>
<form action="{% url map_update_tilelayers map.pk %}" method="post" id="map_edit">
{% csrf_token %}
<ul class="block-grid four-up mobile">
{% for tilelayer in tilelayers %}
<li>
<label for="tilelayer_{{ forloop.counter }}">
... | Remove js call from template | Remove js call from template
| HTML | agpl-3.0 | diraol/umap | html | ## Code Before:
{% load chickpea_tags %}
<h3>Choose your tilelayers</h3>
<form action="{% url map_update_tilelayers map.pk %}" method="post" id="map_edit">
{% csrf_token %}
<ul class="block-grid four-up mobile">
{% for tilelayer in tilelayers %}
<li>
<label for="tilelayer_{{ forloop.coun... |
1d5f48fb3fcc4a111744b33f3f94b03d8783c726 | jquality/src/test/groovy/io/gitlab/arturbosch/smartsmells/api/MetricFacadeTest.groovy | jquality/src/test/groovy/io/gitlab/arturbosch/smartsmells/api/MetricFacadeTest.groovy | package io.gitlab.arturbosch.smartsmells.api
import io.gitlab.arturbosch.smartsmells.common.Test
import spock.lang.Specification
/**
* @author Artur Bosch
*/
class MetricFacadeTest extends Specification {
def "run metric facade on dummies"() {
given: "metric facade"
def facade = new MetricFacade()
when: "ru... | package io.gitlab.arturbosch.smartsmells.api
import io.gitlab.arturbosch.smartsmells.common.Test
import spock.lang.Specification
import java.util.concurrent.Executors
/**
* @author Artur Bosch
*/
class MetricFacadeTest extends Specification {
def "run metric facade on dummies"() {
given: "metric facade"
def ... | Use single thread in test case | Use single thread in test case
| Groovy | apache-2.0 | arturbosch/SmartSmells,arturbosch/SmartSmells | groovy | ## Code Before:
package io.gitlab.arturbosch.smartsmells.api
import io.gitlab.arturbosch.smartsmells.common.Test
import spock.lang.Specification
/**
* @author Artur Bosch
*/
class MetricFacadeTest extends Specification {
def "run metric facade on dummies"() {
given: "metric facade"
def facade = new MetricFaca... |
81febfbe60b809e9696bfb99b38b0771e3eb1e1d | kernel/src/main.s | kernel/src/main.s | %include "functions.s"
%include "memory.s"
%include "forth.s"
kmain:
mov dx, hw
push dx
call print_line
mov dx, logo1
push dx
call print_line
mov dx, logo2
push dx
call print_line
mov dx, logo3
push dx
call print_line
mov dx, logo4
push dx
call print_line
... | %include "functions.s"
%include "memory.s"
;%include "forth.s"
kmain:
mov dx, hw
push dx
call print_line
mov dx, logo1
push dx
call print_line
mov dx, logo2
push dx
call print_line
mov dx, logo3
push dx
call print_line
mov dx, logo4
push dx
call print_line
... | Update CSH logo to look better | Update CSH logo to look better
| GAS | bsd-2-clause | csssuf/bobbyjunior | gas | ## Code Before:
%include "functions.s"
%include "memory.s"
%include "forth.s"
kmain:
mov dx, hw
push dx
call print_line
mov dx, logo1
push dx
call print_line
mov dx, logo2
push dx
call print_line
mov dx, logo3
push dx
call print_line
mov dx, logo4
push dx
ca... |
29bd925e4c24f7814673684ae5d686407ff07d45 | cli/README.md | cli/README.md |
Install `io` with either `npm` or `yarn`.
```sh
# Either npm...
npm install --global @amazeeio/amazee-io-cli
# ...or Yarn
yarn global add @amazeeio/amazee-io-cli
```
## Configuration
Configuration lives in a `.amazeeio.yml` file in your project directory. It can be initialized with:
```sh
# Initialize project con... |
Install `io` with either `npm` or `yarn`.
```sh
# Either npm...
npm install --global @amazeeio/amazee-io-cli
# ...or Yarn
yarn global add @amazeeio/amazee-io-cli
```
## Configuration
Configuration lives in a `.amazeeio.yml` file in your project directory. It can be initialized with:
```sh
# Initialize project con... | Add development instructions for runCli.sh script | Add development instructions for runCli.sh script
| Markdown | apache-2.0 | amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon | markdown | ## Code Before:
Install `io` with either `npm` or `yarn`.
```sh
# Either npm...
npm install --global @amazeeio/amazee-io-cli
# ...or Yarn
yarn global add @amazeeio/amazee-io-cli
```
## Configuration
Configuration lives in a `.amazeeio.yml` file in your project directory. It can be initialized with:
```sh
# Initia... |
26a4f868bfcf5c2b06d3561111cab5bcf6e40a63 | lib/bcsec.rb | lib/bcsec.rb | module Bcsec
VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
class << self
attr_accessor :configuration
def configure(&block)
@configuration ||= Bcsec::Configuration.new
@configuration.enhance(&block)
end
end
end
| module Bcsec
VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
autoload :CentralParameters, 'bcsec/central_parameters'
autoload :Configuration, 'bcsec/configuration'
autoload :Deprecation, 'bcsec/deprecation'
class << self
attr_accessor :configuration
def configure(&b... | Use autoload for Bcsec module constants. | Use autoload for Bcsec module constants.
| Ruby | mit | NUBIC/aker,NUBIC/aker | ruby | ## Code Before:
module Bcsec
VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).strip
class << self
attr_accessor :configuration
def configure(&block)
@configuration ||= Bcsec::Configuration.new
@configuration.enhance(&block)
end
end
end
## Instruction:
Use autoload for Bc... |
fb93f1649bd019ab00a0abac442ca2ab4dd701d2 | src/test/resources/com/akiban/sql/pg/yaml/functional/test-alter-rename.yaml | src/test/resources/com/akiban/sql/pg/yaml/functional/test-alter-rename.yaml | ---
- CreateTable: t (c int);
---
- Statement: INSERT INTO t values (3);
---
- Statement: SELECT c from t;
- output: [['3']]
---
- Statement: ALTER TABLE t RENAME t2;
---
- Statement: INSERT INTO t2 values (4);
---
- Statement: SELECT c from t2;
- output: [[3], [4]]
--- # expect no such table error
- Statement: SELECT ... | ---
- Statement: CREATE TABLE t (c int);
---
- Statement: INSERT INTO t values (3);
---
- Statement: SELECT c from t;
- output: [['3']]
---
- Statement: ALTER TABLE t RENAME t2;
---
- Statement: INSERT INTO t2 values (4);
---
- Statement: SELECT c from t2;
- output: [[3], [4]]
--- # expect no such table error
- Stateme... | Use Statement instead of CreateTable | Use Statement instead of CreateTable | YAML | agpl-3.0 | wfxiang08/sql-layer-1,relateiq/sql-layer,qiuyesuifeng/sql-layer,wfxiang08/sql-layer-1,wfxiang08/sql-layer-1,qiuyesuifeng/sql-layer,ngaut/sql-layer,jaytaylor/sql-layer,jaytaylor/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,shunwang/sql-layer-1,jaytaylor/sql-layer,ngaut/sql-layer,qiuyesuifeng/sql-layer,ngaut/sql-laye... | yaml | ## Code Before:
---
- CreateTable: t (c int);
---
- Statement: INSERT INTO t values (3);
---
- Statement: SELECT c from t;
- output: [['3']]
---
- Statement: ALTER TABLE t RENAME t2;
---
- Statement: INSERT INTO t2 values (4);
---
- Statement: SELECT c from t2;
- output: [[3], [4]]
--- # expect no such table error
- St... |
a73a959de35c381b5961fca253688d2b5a60eeae | src/utils/prefixes.ts | src/utils/prefixes.ts | import { camelCase } from './camel-case';
const cache = {};
const testStyle = typeof document !== 'undefined' ? document.createElement('div').style : undefined;
// Get Prefix
// http://davidwalsh.name/vendor-prefix
const prefix = function() {
const styles = typeof window !== 'undefined' ? window.getComputedStyle(do... | import { camelCase } from './camel-case';
const cache = {};
const testStyle = typeof document !== 'undefined' ? document.createElement('div').style : undefined;
// Get Prefix
// http://davidwalsh.name/vendor-prefix
const prefix = function() {
const styles = typeof window !== 'undefined' ? window.getComputedStyle(do... | Fix prefixer function so that it doesn't fail if it cannot find vendor prefix in styles | Fix prefixer function so that it doesn't fail if it cannot find vendor prefix in styles
| TypeScript | mit | achimha/ngx-datatable,swimlane/ngx-datatable,achimha/ngx-datatable,achimha/ngx-datatable,swimlane/angular2-data-table,swimlane/angular2-data-table,swimlane/angular2-data-table,swimlane/ngx-datatable,swimlane/ngx-datatable | typescript | ## Code Before:
import { camelCase } from './camel-case';
const cache = {};
const testStyle = typeof document !== 'undefined' ? document.createElement('div').style : undefined;
// Get Prefix
// http://davidwalsh.name/vendor-prefix
const prefix = function() {
const styles = typeof window !== 'undefined' ? window.get... |
0ea3aaa0408902d255e2430f9fdf79884bc23f18 | _tests/buster.js | _tests/buster.js | var config = module.exports;
config["DelegateTests"] = {
rootPath: '../',
environment: "browser",
extensions: [ require("buster-coverage") ],
"buster-coverage": {
outputDirectory: "build/logs/jscoverage", //Write to this directory instead of coverage
format: "lcov", //At the moment cobertu... | var config = module.exports;
config["DelegateTests"] = {
rootPath: '../',
environment: "browser",
extensions: [ require("buster-coverage") ],
"buster-coverage": {
outputDirectory: "build/logs/jscoverage",
format: "lcov",
combinedResultsOnly: true
},
sources: [
"lib/... | Remove comments copied from example | Remove comments copied from example
| JavaScript | mit | ftlabs/ftdomdelegate | javascript | ## Code Before:
var config = module.exports;
config["DelegateTests"] = {
rootPath: '../',
environment: "browser",
extensions: [ require("buster-coverage") ],
"buster-coverage": {
outputDirectory: "build/logs/jscoverage", //Write to this directory instead of coverage
format: "lcov", //At th... |
f75ea3eb34c642c6e39420b97b8f8a17d77de47d | .travis.yml | .travis.yml | language: php
dist: trusty
php:
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
before_install:
- sudo apt-get update -qq
- sudo apt-get remove -y -qq --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5
- sudo apt-get install -y -qq mysql-server-5.6 mysql-client-5.6
matrix:
allow_fai... | language: php
dist: trusty
php:
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
before_install:
- sudo apt-get update -qq
- sudo apt-get remove -y -qq --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5
- sudo apt-get install -y -qq mysql-server-5.6 mysql-client-5.6
matrix:
allow_fai... | Allow HHVM to fail for now. | Allow HHVM to fail for now.
| YAML | mit | tinify/magento2-plugin | yaml | ## Code Before:
language: php
dist: trusty
php:
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
before_install:
- sudo apt-get update -qq
- sudo apt-get remove -y -qq --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5
- sudo apt-get install -y -qq mysql-server-5.6 mysql-client-5.6
mat... |
6bbca4474459a8161616becae069ea0203155231 | data/contentScript.js | data/contentScript.js | // Get selection and limit to only the first word, because vortaro.net
// doesn't support sentences.
function firstWord(text) {
return text.split(/\s+/, 1)[0].toLowerCase();
}
// Remove -n and -j and present verbs as infinitives
// (replacing -as/is/os with -i).
function normalize(text) {
if (text.endsWith("n"... | // Get selection and limit to only the first word, because vortaro.net
// doesn't support sentences.
function firstWord(text) {
return text.split(/\s+/, 1)[0].toLowerCase();
}
// Remove -n and -j and present verbs as infinitives
// (replacing -as/is/os with -i).
function normalize(text) {
if (text.endsWith("as... | Optimize conditioning and improve truncation. | Optimize conditioning and improve truncation.
"tuj" and "ĝis" should not be replaced.
| JavaScript | mit | pwojnowski/firefox-vortaro.net-addon | javascript | ## Code Before:
// Get selection and limit to only the first word, because vortaro.net
// doesn't support sentences.
function firstWord(text) {
return text.split(/\s+/, 1)[0].toLowerCase();
}
// Remove -n and -j and present verbs as infinitives
// (replacing -as/is/os with -i).
function normalize(text) {
if (t... |
1eacd39b9cbe3361661b0ff4afff05f887045cce | trunk/oa/protected/models/AssetHistory.php | trunk/oa/protected/models/AssetHistory.php | <?php
/**
* Created by Kimi Tourism.
* @author Suley<luzhang@jmlvyou.com>
* @time 13-10-31
* @version 1.0
* @copyright
**/
class AssetHistory extends CActiveRecord{
public $user_id, $borrow_time, $return_time, $create_time, $asset_id;
public static function model($className = __CLASS__){
return par... | <?php
/**
* Created by Kimi Tourism.
* @author Suley<luzhang@jmlvyou.com>
* @time 13-10-31
* @version 1.0
* @copyright
**/
class AssetHistory extends CActiveRecord{
public $user_id, $borrow_time, $return_time, $create_time, $asset_id;
public static function model($className = __CLASS__){
return par... | Add useful functions to model | Add useful functions to model
| PHP | apache-2.0 | hisuley/tsinghua_oa,hisuley/tsinghua_oa,hisuley/tsinghua_oa,hisuley/tsinghua_oa | php | ## Code Before:
<?php
/**
* Created by Kimi Tourism.
* @author Suley<luzhang@jmlvyou.com>
* @time 13-10-31
* @version 1.0
* @copyright
**/
class AssetHistory extends CActiveRecord{
public $user_id, $borrow_time, $return_time, $create_time, $asset_id;
public static function model($className = __CLASS__){
... |
bc78bf85442b0ffb7962a1c9c4a3560a0fd1960d | skimage/io/_plugins/matplotlib_plugin.py | skimage/io/_plugins/matplotlib_plugin.py | import matplotlib.pyplot as plt
def imshow(*args, **kwargs):
kwargs.setdefault('interpolation', 'nearest')
kwargs.setdefault('cmap', 'gray')
plt.imshow(*args, **kwargs)
imread = plt.imread
show = plt.show
def _app_show():
show()
| import matplotlib.pyplot as plt
def imshow(*args, **kwargs):
if plt.gca().has_data():
plt.figure()
kwargs.setdefault('interpolation', 'nearest')
kwargs.setdefault('cmap', 'gray')
plt.imshow(*args, **kwargs)
imread = plt.imread
show = plt.show
def _app_show():
show()
| Create a new figure for imshow if there is already data | Create a new figure for imshow if there is already data
| Python | bsd-3-clause | keflavich/scikit-image,GaZ3ll3/scikit-image,pratapvardhan/scikit-image,jwiggins/scikit-image,oew1v07/scikit-image,robintw/scikit-image,vighneshbirodkar/scikit-image,michaelaye/scikit-image,WarrenWeckesser/scikits-image,ofgulban/scikit-image,paalge/scikit-image,paalge/scikit-image,michaelaye/scikit-image,warmspringwinds... | python | ## Code Before:
import matplotlib.pyplot as plt
def imshow(*args, **kwargs):
kwargs.setdefault('interpolation', 'nearest')
kwargs.setdefault('cmap', 'gray')
plt.imshow(*args, **kwargs)
imread = plt.imread
show = plt.show
def _app_show():
show()
## Instruction:
Create a new figure for imshow if the... |
f844f9e153406577b844a864110bcc54fd6b01f3 | nose2/tests/functional/support/scenario/expected_failures/expected_failures.py | nose2/tests/functional/support/scenario/expected_failures/expected_failures.py | import unittest
class TestWithExpectedFailures(unittest.TestCase):
@unittest.expectedFailure
def test_should_fail(self):
assert False
@unittest.expectedFailure
def test_should_pass(self):
assert True
def test_whatever(self):
assert True
def test_fails(sel... | from nose2.compat import unittest
class TestWithExpectedFailures(unittest.TestCase):
@unittest.expectedFailure
def test_should_fail(self):
assert False
@unittest.expectedFailure
def test_should_pass(self):
assert True
def test_whatever(self):
assert True
... | Fix for py26 and expectedFailure | Fix for py26 and expectedFailure | Python | bsd-2-clause | ojengwa/nose2,little-dude/nose2,ptthiem/nose2,ezigman/nose2,ptthiem/nose2,ezigman/nose2,little-dude/nose2,ojengwa/nose2 | python | ## Code Before:
import unittest
class TestWithExpectedFailures(unittest.TestCase):
@unittest.expectedFailure
def test_should_fail(self):
assert False
@unittest.expectedFailure
def test_should_pass(self):
assert True
def test_whatever(self):
assert True
de... |
d0ae1495bf3f4e370f74875d37d60f6f7d7342ad | t/from_module.t | t/from_module.t | use strict;
use warnings;
use File::Spec;
use Test::More 'no_plan';
my $class = 'Module::Extract::Namespaces';
my $method = 'from_module';
use_ok( $class );
can_ok( $class, $method );
my $rc = eval { $class->$method( $class, 'blib/lib' ) };
ok( defined $rc, "Eval returns defined value for method $method");
is( $r... | use strict;
use warnings;
use File::Spec;
use Test::More 'no_plan';
my $class = 'Module::Extract::Namespaces';
my $method = 'from_module';
use_ok( $class );
can_ok( $class, $method );
my $rc = eval { $class->$method( $class, 'blib/lib' ) };
ok( defined $rc, "Eval returns defined value for method $method");
is( $r... | Fix a test that’s looking for more elements than it returns. | Fix a test that’s looking for more elements than it returns.
I removed the PPI shim code so the test that used the
module file itself wasn’t suitable anymore. I’ll look
at something in corpus/ instead. | Perl | artistic-2.0 | briandfoy/module-extract-namespaces | perl | ## Code Before:
use strict;
use warnings;
use File::Spec;
use Test::More 'no_plan';
my $class = 'Module::Extract::Namespaces';
my $method = 'from_module';
use_ok( $class );
can_ok( $class, $method );
my $rc = eval { $class->$method( $class, 'blib/lib' ) };
ok( defined $rc, "Eval returns defined value for method $... |
56a20c802a0f4ec9e815cc8a41eca88913b286fb | app/controllers/ajo_register/passwords_controller.rb | app/controllers/ajo_register/passwords_controller.rb | require_dependency "ajo_register/application_controller"
class AjoRegister::PasswordsController < Devise::PasswordsController
def new
super
end
def create
self.resource = resource_class.send_reset_password_instructions(resource_params)
if successfully_sent?(resource)
respond_with({}, :locatio... | require_dependency "ajo_register/application_controller"
class AjoRegister::PasswordsController < Devise::PasswordsController
def new
super
end
def create
self.resource = resource_class.send_reset_password_instructions(resource_params)
if successfully_sent?(resource)
respond_with({}, :locatio... | Add after sign up path | Add after sign up path
| Ruby | mit | andrewajo/AjoRegister,andrewajo/AjoRegister | ruby | ## Code Before:
require_dependency "ajo_register/application_controller"
class AjoRegister::PasswordsController < Devise::PasswordsController
def new
super
end
def create
self.resource = resource_class.send_reset_password_instructions(resource_params)
if successfully_sent?(resource)
respond_w... |
b9c64ef470c645c045f6390438c4e6c27554aef1 | ts/editor/loadAce.ts | ts/editor/loadAce.ts | import * as fs from 'fs';
let path = 'node_modules/ace-builds/src-noconflict/ace.js';
try {
fs.accessSync(path);
} catch (e) {
// rethrow if no min
fs.accessSync(path = 'node_modules/ace-builds/src-min-noconflict/ace.js');
}
const script = document.createElement('script');
script.src = path;
document.bod... | import * as fs from 'fs';
let path = 'node_modules/ace-builds/src-noconflict/ace.js';
try {
fs.accessSync(path);
} catch (e) {
path = 'node_modules/ace-builds/src-min-noconflict/ace.js';
}
const script = document.createElement('script');
script.src = path;
document.body.appendChild(script); | Fix error loading ace when in production | Fix error loading ace when in production
| TypeScript | mit | qsctr/java-editor,qsctr/java-editor,qsctr/java-editor | typescript | ## Code Before:
import * as fs from 'fs';
let path = 'node_modules/ace-builds/src-noconflict/ace.js';
try {
fs.accessSync(path);
} catch (e) {
// rethrow if no min
fs.accessSync(path = 'node_modules/ace-builds/src-min-noconflict/ace.js');
}
const script = document.createElement('script');
script.src = pa... |
fe957b950b2455785348cac8ea224626ccb5a15e | CONTRIBUTORS.md | CONTRIBUTORS.md |
Thank you to all these fine folks for helping with ansible-vault!
- [@pierrefh](https://github.com/pierrefh)
- [@arledesma](https://github.com/arledesma)
- [@bilke](https://github.com/bilke)
- [@cwill747](https://github.com/cwill747)
- [@marc-sensenich](https://github.com/marc-sensenich)
- [@Gerrrr](https://github.co... |
Thank you to all these fine folks for helping with ansible-vault!
- [@pierrefh](https://github.com/pierrefh)
- [@arledesma](https://github.com/arledesma)
- [@bilke](https://github.com/bilke)
- [@cwill747](https://github.com/cwill747)
- [@marc-sensenich](https://github.com/marc-sensenich)
- [@Gerrrr](https://github.co... | Add aarnaud to the contributors file | Add aarnaud to the contributors file | Markdown | bsd-2-clause | brianshumate/ansible-vault | markdown | ## Code Before:
Thank you to all these fine folks for helping with ansible-vault!
- [@pierrefh](https://github.com/pierrefh)
- [@arledesma](https://github.com/arledesma)
- [@bilke](https://github.com/bilke)
- [@cwill747](https://github.com/cwill747)
- [@marc-sensenich](https://github.com/marc-sensenich)
- [@Gerrrr](h... |
4075bb94d2b68a2e270b211821e3ad2d3b25d882 | pubspec.yaml | pubspec.yaml | name: dart_services
author: Dart Team <misc@dartlang.org>
description: The server backend for a web based interactive Dart service.
homepage: https://github.com/dart-lang/dart-services
publish_to: none
environment:
sdk: '>=2.0.0-dev.64.1 <3.0.0'
dependencies:
_discoveryapis_commons: ^0.1.8
analyzer: ^0.34.0
a... | name: dart_services
publish_to: none
environment:
sdk: '>=2.0.0-dev.64.1 <3.0.0'
dependencies:
_discoveryapis_commons: ^0.1.8
analyzer: ^0.34.0
analysis_server_lib: ^0.1.4
appengine: ^0.5.0
archive: ^2.0.0
args: ^1.4.1
crypto: ^2.0.0
http: ^0.12.0
logging: ^0.11.0
path: ^1.3.0
shelf: ^0.7.0
... | Remove fields only interesting for publish | Remove fields only interesting for publish | YAML | bsd-3-clause | dart-lang/dart-services,dart-lang/dart-services,dart-lang/dart-services | yaml | ## Code Before:
name: dart_services
author: Dart Team <misc@dartlang.org>
description: The server backend for a web based interactive Dart service.
homepage: https://github.com/dart-lang/dart-services
publish_to: none
environment:
sdk: '>=2.0.0-dev.64.1 <3.0.0'
dependencies:
_discoveryapis_commons: ^0.1.8
analy... |
694afc266cba931b6afe13b079df4367ae38581c | ConfJuvApp/www/html/_header.html | ConfJuvApp/www/html/_header.html | <ion-header-bar align-title="left" id="header">
<h1 class="title">#3confjuv</h1>
<span ng-show="loading" class="loader"><em>Carregando...</em></span>
<button menu-toggle="right" class="button button-icon icon ion-funnel" hide-when="large"></button>
</ion-header-bar>
| <ion-header-bar align-title="left" id="header">
<h1 class="title">#3confjuv</h1>
<span ng-show="loading" class="loader"><em>Carregando...</em></span>
<div ng-show="loggedIn">
<button menu-toggle="right" class="button button-icon icon ion-funnel" hide-when="large"></button>
</div>
</ion-header-bar>
| Hide filter icon if user is not logged in | Hide filter icon if user is not logged in
| HTML | agpl-3.0 | noosfero-apps/confjuvapp,noosfero-apps/confjuvapp,noosfero-apps/confjuvapp | html | ## Code Before:
<ion-header-bar align-title="left" id="header">
<h1 class="title">#3confjuv</h1>
<span ng-show="loading" class="loader"><em>Carregando...</em></span>
<button menu-toggle="right" class="button button-icon icon ion-funnel" hide-when="large"></button>
</ion-header-bar>
## Instruction:
Hide filte... |
5707470525fbb47f7c1d213b190ec6da6f956c2d | antibody/bundles.txt | antibody/bundles.txt | mafredri/zsh-async
rupa/z
zsh-users/zsh-completions
# Fish style autosuggestions
# zsh-users/zsh-autosuggestions
# these should be at last!
sindresorhus/pure
zdharma/fast-syntax-highlighting
zsh-users/zsh-history-substring-search
| mafredri/zsh-async
rupa/z
zsh-users/zsh-completions
# Fish style autosuggestions
# zsh-users/zsh-autosuggestions
# additional completions
robbyrussell/oh-my-zsh path:plugins/aws
robbyrussell/oh-my-zsh path:plugins/docker
robbyrussell/oh-my-zsh path:plugins/docker-compose
# these should be at last!
sindresorhus/pure
... | Add completion plugins from oh-my-zsh | Add completion plugins from oh-my-zsh
| Text | mit | Limess/dotfiles,Limess/dotfiles | text | ## Code Before:
mafredri/zsh-async
rupa/z
zsh-users/zsh-completions
# Fish style autosuggestions
# zsh-users/zsh-autosuggestions
# these should be at last!
sindresorhus/pure
zdharma/fast-syntax-highlighting
zsh-users/zsh-history-substring-search
## Instruction:
Add completion plugins from oh-my-zsh
## Code After:
ma... |
cab0d550cc087f82717591ff5f29307ce583765d | layouts/_default/baseof.html | layouts/_default/baseof.html | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Rodolfo Henrique Carvalho's homepage">
<meta name="author" content="Rodolfo Henrique Carvalho">
<link re... | <!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Rodolfo Henrique Carvalho's homepage">
<meta name="author" content="Rodolfo Henrique Carvalho">
<link re... | Add canonical reference to every page | Add canonical reference to every page
This helps with SEO, by telling search engines what is the canonical
address of a given page.
In practice, I have redirects from http://rodolfocarvalho.net (currently
shown in DuckDuckGo) -> https://www.rodolfocarvalho.net (the 'new'
canonical location).
| HTML | mit | rhcarvalho/rodolfocarvalho.net,rhcarvalho/rodolfocarvalho.net,rhcarvalho/rodolfocarvalho.net | html | ## Code Before:
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Rodolfo Henrique Carvalho's homepage">
<meta name="author" content="Rodolfo Henrique Carva... |
e245809fc2ce5ba6a1ff8fabfc2979f8e437216c | src/dsbdp/experiment_helper.clj | src/dsbdp/experiment_helper.clj | ;;;
;;; Copyright 2015 Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Helper that are primarily used during experime... | ;;;
;;; Copyright 2015 Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Helper that are primarily used during experime... | Use a macro for generating proc-fns and print the resulting output. | Use a macro for generating proc-fns and print the resulting output.
| Clojure | epl-1.0 | ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp | clojure | ## Code Before:
;;;
;;; Copyright 2015 Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Helper that are primarily used... |
90fa23c3943881b0511ba9de18a2ab945995a754 | README.md | README.md | This is a simple example of calling the Google Cloud Storage APIs in Go.
## Setup Google Cloud SDK and Authentication
Install the [Google Cloud SDK](https://cloud.google.com/sdk):
```
curl https://sdk.cloud.google.com | bash
```
Once installed, authenicate with your Google account:
```
gcloud auth login
```
## Pr... | 
This project is no longer actively developed or maintained. See [this page](https://cloud.google.com/storage/docs/reference/libraries) for the updated sample code.
| Archive this repository, point to the new code. | Archive this repository, point to the new code. | Markdown | apache-2.0 | googlearchive/storage-getting-started-go | markdown | ## Code Before:
This is a simple example of calling the Google Cloud Storage APIs in Go.
## Setup Google Cloud SDK and Authentication
Install the [Google Cloud SDK](https://cloud.google.com/sdk):
```
curl https://sdk.cloud.google.com | bash
```
Once installed, authenicate with your Google account:
```
gcloud auth ... |
ae494b6e1a10c9845e2936eb3fb3889e5dc592ec | docs/index.rst | docs/index.rst | .. sipperf documentation master file, created by
sphinx-quickstart on Sun May 1 12:44:43 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to sipperf's documentation!
===================================
sipperf is a performance-test... | .. sipperf documentation master file, created by
sphinx-quickstart on Sun May 1 12:44:43 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to sipperf's documentation!
===================================
sipperf is a performance-test... | Split off a developer section of the docs | Split off a developer section of the docs
| reStructuredText | bsd-3-clause | rkday/sipperf,rkday/sipperf | restructuredtext | ## Code Before:
.. sipperf documentation master file, created by
sphinx-quickstart on Sun May 1 12:44:43 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to sipperf's documentation!
===================================
sipperf is a ... |
ce13ac59006d492871be74751e537517e27fb83d | app/controllers/results_controller.rb | app/controllers/results_controller.rb | class ResultsController < ApplicationController
def index
user = User.find(params[:id])
render json: user.results_by_items_found.to_h.to_json
end
def by_lowest_price
user = User.find(params[:id])
render json: user.results_by_lowest_price.to_h.to_json
end
def by_shortest_distance
user ... | class ResultsController < ApplicationController
def index
user = User.find(params[:id])
render json: user.results_by_items_found.to_json
end
def by_lowest_price
user = User.find(params[:id])
render json: user.results_by_lowest_price.to_json
end
def by_shortest_distance
user = User.fin... | Revert back to nested arrays for mapping purposes | Revert back to nested arrays for mapping purposes
| Ruby | mit | DaniGlass/OneStopShop,DaniGlass/OneStopShop,DaniGlass/OneStopShop,DaniGlass/OneStopShop,DaniGlass/OneStopShop | ruby | ## Code Before:
class ResultsController < ApplicationController
def index
user = User.find(params[:id])
render json: user.results_by_items_found.to_h.to_json
end
def by_lowest_price
user = User.find(params[:id])
render json: user.results_by_lowest_price.to_h.to_json
end
def by_shortest_di... |
2fe67cd6ca1a99d6a188d5c628ffb0f712b5ee5d | SDL_mixer/changelog-pre.txt | SDL_mixer/changelog-pre.txt | libsdl2-mixer (2.0.0~20130425-612-1ppa2@RELEASE@1) @RELEASE@; urgency=low
* Updated description to reflect that this is an unofficial package.
-- Michael Imamura <zoogie@lugatgt.org> Fri, 26 Apr 2013 21:41:56 -0400
libsdl2-mixer (2.0.0~20130425-612-1ppa1) precise; urgency=low
* Repackaged for PPA.
* Changed... | libsdl2-mixer (2.0.0~20130522-616-1ppa1@RELEASE@1) @RELEASE@; urgency=low
* New upstream snapshot (2013-05-22, rev 616).
-- Michael Imamura <zoogie@lugatgt.org> Fri, 24 May 2013 20:26:20 -0400
libsdl2-mixer (2.0.0~20130425-612-1ppa2@RELEASE@1) @RELEASE@; urgency=low
* Updated description to reflect that this ... | Update to SDL_mixer snapshot 2013-05-22 (rev 616). | Update to SDL_mixer snapshot 2013-05-22 (rev 616).
| Text | mit | ZoogieZork/SDL2-Package | text | ## Code Before:
libsdl2-mixer (2.0.0~20130425-612-1ppa2@RELEASE@1) @RELEASE@; urgency=low
* Updated description to reflect that this is an unofficial package.
-- Michael Imamura <zoogie@lugatgt.org> Fri, 26 Apr 2013 21:41:56 -0400
libsdl2-mixer (2.0.0~20130425-612-1ppa1) precise; urgency=low
* Repackaged for ... |
fb52820a5f48e0c9213184b84fbec7fd4d37fa64 | app/views/playlists/_edit_buttons.html.erb | app/views/playlists/_edit_buttons.html.erb | <!-- EDIT BUTTONS -->
<% if user_signed_in? %>
<!-- Add to Winnitron dropdown -->
<div class="edit-buttons dropdown">
<% if current_user.builder? && !current_user.arcade_machines.empty? %>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspop... | <!-- EDIT BUTTONS -->
<% if user_signed_in? %>
<!-- Add to Winnitron dropdown -->
<div class="edit-buttons dropdown">
<% if current_user.builder? && !current_user.arcade_machines.empty? %>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspop... | Add checkmark to subscription dropdown. | Add checkmark to subscription dropdown.
| HTML+ERB | mit | winnitron/winnitron_reborn,winnitron/winnitron_reborn,winnitron/winnitron_reborn | html+erb | ## Code Before:
<!-- EDIT BUTTONS -->
<% if user_signed_in? %>
<!-- Add to Winnitron dropdown -->
<div class="edit-buttons dropdown">
<% if current_user.builder? && !current_user.arcade_machines.empty? %>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropd... |
44e31e2153f4eec2863f9d712ab60f0ef00d1779 | mongo_connector/get_last_oplog_timestamp.py | mongo_connector/get_last_oplog_timestamp.py | import pymongo
import bson
import time
import sys
from mongo_connector import util
mongo_url = 'mongodb://localhost:27017'
if len(sys.argv) == 1:
print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..."
if len(sys.argv) >= 2:
mongo_url = sys.argv[1]
client = pymongo.M... | import pymongo
import bson
import time
import sys
from mongo_connector import util
mongo_url = 'mongodb://localhost:27017'
if len(sys.argv) == 1:
print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..."
if len(sys.argv) >= 2:
mongo_url = sys.argv[1]
client = pymongo.M... | Update for compatibility with python 3 | Update for compatibility with python 3 | Python | apache-2.0 | 10gen-labs/mongo-connector,ShaneHarvey/mongo-connector,mongodb-labs/mongo-connector,10gen-labs/mongo-connector,mongodb-labs/mongo-connector,ShaneHarvey/mongo-connector | python | ## Code Before:
import pymongo
import bson
import time
import sys
from mongo_connector import util
mongo_url = 'mongodb://localhost:27017'
if len(sys.argv) == 1:
print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..."
if len(sys.argv) >= 2:
mongo_url = sys.argv[1]
cl... |
166588decb5fc84dc01df8656eaddc6a1ee58d73 | resources/views/templates/invoice.blade.php | resources/views/templates/invoice.blade.php | @component('mail::message')
# Hi Name!
Thanks for using [Product Name]. This is an invoice for your recent purchase.
@component('mail::invoice.attributes', ['total' => $total, 'dueDate' => $dueDate])
Amout Due: ${{ $total }}
Due By: {{ $dueDate }}
@endcomponent
@component('mail::button', ['url' => 'http://laravel.c... | @component('mail::message')
# Hi {{ $name }}!
Thanks for using {{ config('app.name') }}. This is an invoice for your recent purchase.
@component('mail::invoice.attributes', ['total' => $total, 'dueDate' => $dueDate])
@endcomponent
@component('mail::button', ['url' => 'http://laravel.com', 'color' => 'green'])
Pay ... | Add the table to the template | Add the table to the template
| PHP | mit | tomirons/tuxedo,tomirons/tuxedo | php | ## Code Before:
@component('mail::message')
# Hi Name!
Thanks for using [Product Name]. This is an invoice for your recent purchase.
@component('mail::invoice.attributes', ['total' => $total, 'dueDate' => $dueDate])
Amout Due: ${{ $total }}
Due By: {{ $dueDate }}
@endcomponent
@component('mail::button', ['url' => '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.