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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1979204ddddcb1b0d07f649ebc6614a4ec0d5fe4 | lib/carto/db/migration_helper.rb | lib/carto/db/migration_helper.rb | module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
... | module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
transaction
... | Add extra error information to migration helper | Add extra error information to migration helper
| Ruby | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,splashblot/dronedb | ruby | ## Code Before:
module Carto
module Db
module MigrationHelper
LOCK_TIMEOUT_MS = 1000
MAX_RETRIES = 3
WAIT_BETWEEN_RETRIES_S = 2
def migration(up_block, down_block)
Sequel.migration do
# Forces this migration to run under a transaction (controlled by Sequel)
tra... |
f87eb1e65144f07dcd7127f283c2d0aded0528d3 | app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java | app/src/main/java/fr/free/nrw/commons/auth/SignupActivity.java | package fr.free.nrw.commons.auth;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... | package fr.free.nrw.commons.auth;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
... | Change URLs and add MyWebViewClient | Change URLs and add MyWebViewClient
| Java | apache-2.0 | neslihanturan/apps-android-commons,domdomegg/apps-android-commons,sandarumk/apps-android-commons,akaita/apps-android-commons,neslihanturan/apps-android-commons,dbrant/apps-android-commons,whym/apps-android-commons,whym/apps-android-commons,misaochan/apps-android-commons,dbrant/apps-android-commons,psh/apps-android-comm... | java | ## Code Before:
package fr.free.nrw.commons.auth;
import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
import fr.free.nrw.commons.R;
public class SignupActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
47593fae71deb378bd60a14d1b6f4a3a2bb98bf6 | pitz.py | pitz.py |
import sys
import subprocess
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
subprocess.call(["pitz-%s" % cmd] + new_args)
|
import sys
import subprocess
def _help():
subprocess.call(['pitz-help'])
sys.exit(1)
if len(sys.argv) < 2:
_help()
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
try:
subprocess.call(["pitz-%s" % cmd] + new_args)
except OSError as exc:
_help()
| Add at least a minimal exception handling (missing subcommand). | Add at least a minimal exception handling (missing subcommand).
| Python | bsd-3-clause | mw44118/pitz,mw44118/pitz,mw44118/pitz | python | ## Code Before:
import sys
import subprocess
cmd = sys.argv[1]
new_args = sys.argv[2:] or []
subprocess.call(["pitz-%s" % cmd] + new_args)
## Instruction:
Add at least a minimal exception handling (missing subcommand).
## Code After:
import sys
import subprocess
def _help():
subprocess.call(['pitz-help'])
... |
5cd037da4ec58ddc1908cc82199688d62a7b10fb | README.md | README.md | Reservira
=========
[](https://travis-ci.org/GanfOfFourOrFive/reservira)
[](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[](https://travis-ci.org/GanfOfFourOrFive/reservira)
[](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[](https://travis-ci.org/GanfOfFourOrFive/reservira)
[](https://codeclimate.com/github/GanfOfFourOrFive/reservira)
[
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
| brokenmodules=$(puppet-lint ./modules | awk -F "-" '{print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
| Fix erroneous regex in cmd | Fix erroneous regex in cmd
| Shell | bsd-2-clause | RainbowHackerHorse/Stuffnthings,RainbowHackz/Stuffnthings | shell | ## Code Before:
brokenmodules=$(puppet-lint ./modules | awk -F "-" '!/nagios/ {print $1}' | uniq)
for i in $brokenmodules; do
puppet-lint --fix "$i"
done
## Instruction:
Fix erroneous regex in cmd
## Code After:
brokenmodules=$(puppet-lint ./modules | awk -F "-" '{print $1}' | uniq)
for i in $brokenmodules; do
pupp... |
e27beea0c10a1a3bf750d3c37ae16e1def68d822 | src/less/modules/panel-fullscreen.less | src/less/modules/panel-fullscreen.less | .panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius:... | .panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
border-radius:... | Fix issue where PDF viewers were not showing PDF | FIX: Fix issue where PDF viewers were not showing PDF
| Less | agpl-3.0 | doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,final-year-project/doubtfire-web,alexcu/doubtfire-web | less | ## Code Before:
.panel.fullscreen {
border-radius: 0;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
z-index: 4;
border-bottom: none;
// Flex stuff
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
.panel-heading {
... |
7068622908262b6bd41fc77526468427bb7ab810 | Resources/config/services.yml | Resources/config/services.yml | services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
| services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
public: true
| Mark the paginator service as public since the intention is to use it from other bundles | Mark the paginator service as public since the intention is to use it from other bundles
| YAML | mit | efrag/EfragPaginatorBundle | yaml | ## Code Before:
services:
efrag_paginator:
class: Efrag\Bundle\PaginatorBundle\Service\Paginator
arguments: ["@router", '%efrag_paginator.perPage%']
## Instruction:
Mark the paginator service as public since the intention is to use it from other bundles
## Code After:
services:
efrag_pag... |
f72219a27927a3c944e71adf6c97016d8cd5dbea | Casks/lazarus.rb | Casks/lazarus.rb | class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
end
| class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
uninstall :pkgutil => 'org.freepascal.lazarus... | Add uninstall stanza for Lazarus | Add uninstall stanza for Lazarus
| Ruby | bsd-2-clause | markthetech/homebrew-cask,rubenerd/homebrew-cask,brianshumate/homebrew-cask,danielgomezrico/homebrew-cask,asins/homebrew-cask,dlackty/homebrew-cask,malford/homebrew-cask,exherb/homebrew-cask,epardee/homebrew-cask,chrisRidgers/homebrew-cask,bchatard/homebrew-cask,gilesdring/homebrew-cask,JosephViolago/homebrew-cask,joao... | ruby | ## Code Before:
class Lazarus < Cask
url 'http://downloads.sourceforge.net/lazarus/lazarus-1.0.14-20131116-i386-macosx.dmg'
homepage 'http://lazarus.freepascal.org/'
version '1.0.14'
sha256 'b371f073ae2b8b83c88c356aed8dd717811ba4d9adfee6623a9a48a9c341531a'
install 'lazarus.pkg'
end
## Instruction:
Add uninst... |
53637afcf2171e293d0c0fe5e423bb784ce9f871 | lib/aggregate_builder/field_builders/object_field_builder.rb | lib/aggregate_builder/field_builders/object_field_builder.rb | module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
... | module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash, field, config)
... | Fix issue with object field type builder instantiation | Fix issue with object field type builder instantiation
| Ruby | mit | rous-gg/aggregate_builder | ruby | ## Code Before:
module AggregateBuilder
class FieldBuilders::ObjectFieldBuilder
class << self
def build(field, field_value, object, config, methods_context)
hash = cast(field.field_name, field_value)
existing_object = object.send(field.field_name)
if existing_object && delete?(hash,... |
2f0b8942c52223b3afc17d720a192123d321c2ae | spec/spec_helper.rb | spec/spec_helper.rb | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = File.join(File.d... | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
require 'time'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = F... | Fix CI for "minimal" test suites | Fix CI for "minimal" test suites
| Ruby | mit | byroot/frozen_record | ruby | ## Code Before:
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
minimal = ENV['MINIMAL'] == 'true'
require 'objspace'
if minimal
require 'frozen_record/minimal'
else
require 'frozen_record'
end
require 'frozen_record/test_helper'
FrozenRecord::Base.base_path = ... |
a537f049bfb61488a056333d362d9983e8e9f88d | 2020/10/p1.py | 2020/10/p1.py |
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1 # this is bad lmao
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = ... |
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
last_joltage = last_joltage + 1
... | Fix minor issues in 2020.10.1 file | Fix minor issues in 2020.10.1 file
The comment about the 1 being bad was incorrect, in fact it was good. I
had forgotten about adding the extra three-jolt difference for the final
adapter in the device, and didn't make the connection between it and the
three-jolt count being one short lol.
| Python | mit | foxscotch/advent-of-code,foxscotch/advent-of-code | python | ## Code Before:
def get_input():
with open('input.txt', 'r') as f:
return set(int(i) for i in f.read().split())
def main():
puzzle = get_input()
last_joltage = 0
one_jolt = 0
three_jolts = 1 # this is bad lmao
while len(puzzle) != 0:
if last_joltage + 1 in puzzle:
... |
62ec9ccffe7edf5cb9f33a57c462fcf0a7de4747 | app/controllers/contact_form_controller.rb | app/controllers/contact_form_controller.rb | class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
unless @contact.valid?
return render :new
end
redirect_to root_url, notice: t('.message... | class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
return render :new unless @contact.valid?
@contact.deliver
redirect_to root_url, notice: t('.... | Refactor code for contact_form create action | Refactor code for contact_form create action
| Ruby | mit | railsmx/community,railsmx/community | ruby | ## Code Before:
class ContactFormController < ApplicationController
def new
@contact_form = ContactForm.new
end
def create
@contact_form = ContactForm.new(params[:contact_form])
@contact_form.request = request
unless @contact.valid?
return render :new
end
redirect_to root_url, not... |
6f158ca4a8a4f88d395763ff726d5a12533d808c | lib/qspec/helper.rb | lib/qspec/helper.rb | module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
@config = Config.new
puts "Start #{@config['workers']} spor... | module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
Qspec.create_tmp_directory_if_not_exist
@config = Config.ne... | Create temporary directory before start spork | Create temporary directory before start spork
| Ruby | mit | tomykaira/qspec | ruby | ## Code Before:
module Qspec
class Helper
include SporkHelper
def initialize(argv)
@argv = argv
end
def serve
case @argv.last
when 'init'
puts "Creating template"
Config.create_template
when 'spork'
@config = Config.new
puts "Start #{@config[... |
16bdf4d3951c7f88b96bd922b5d4273cd93c4d98 | test_asgi_redis.py | test_asgi_redis.py | from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
| import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
| Update to match new asgiref test style | Update to match new asgiref test style
| Python | bsd-3-clause | django/asgi_redis | python | ## Code Before:
from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
## Instruction:
Update to match new asgiref test style
## Code After:
import unittest
from asgi_redis import RedisCh... |
93b34517cdf6b71415fca2767e4083c83b96c112 | cypress/integration/artist.spec.js | cypress/integration/artist.spec.js | /* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']"... | /* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name='description']"... | Make artist page acceptance test more tolerant | Make artist page acceptance test more tolerant
| JavaScript | mit | artsy/force,artsy/force-public,artsy/force,artsy/force-public,artsy/force,artsy/force | javascript | ## Code Before:
/* eslint-disable jest/expect-expect */
describe("/artist/:id", () => {
before(() => {
cy.visit("/artist/pablo-picasso")
})
it("renders metadata", () => {
cy.title().should("contain", "Pablo Picasso")
cy.title().should("contain", "Artworks, Bio & Shows on Artsy")
cy.get("meta[name... |
66be1bb46d4863fcba09d9ef725384a5763bfe17 | .circleci/circleci.sh | .circleci/circleci.sh |
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/setup_10.x | sudo... |
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
apt-get update
apt-get install -y git gnupg python3-pip python3-venv
# Install nodejs f... | Install system dependencies before nodejs | Install system dependencies before nodejs
| Shell | mit | Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki | shell | ## Code Before:
set -o errexit -o nounset -o pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$DEPLOYER_PRIVATE_GPG_KEY_BASE64" ]; then
echo "Environment variable DEPLOYER_PRIVATE_GPG_KEY_BASE64 is required"
exit 1
fi
# Install nodejs for running tests
curl -sL https://deb.nodesource.com/s... |
a612eaecb7ae60dc83335dca31f13b6de598ae66 | lib/smart_answer_flows/check-uk-visa/outcomes/outcome_marriage_nvn_ukot.erb | lib/smart_answer_flows/check-uk-visa/outcomes/outcome_marriage_nvn_ukot.erb | <% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family... | <% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must apply for a [family... | Update non visa national marriage outcome | Update non visa national marriage outcome
| HTML+ERB | mit | alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers | html+erb | ## Code Before:
<% text_for :title do %>
You’ll need a visa to come to the UK
<% end %>
<% govspeak_for :body do %>
Apply for a [Marriage Visitor visa](/marriage-visa) if you and your partner want to get married or enter into a civil partnership in the UK.
If you want to live in the UK permanently, you must app... |
245b602059c4cd0f61eedc1e2e6976374a431208 | tox.ini | tox.ini | [tox]
envlist =
py{27,32,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==... | [tox]
envlist =
py{27,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
commands = make ... | Stop testing on Python 3.2. | Stop testing on Python 3.2.
It doesn't work anymore with the latest version of virtualenv, causing
tox to fail.
| INI | bsd-3-clause | aaugustin/django-resto | ini | ## Code Before:
[tox]
envlist =
py{27,32,33,34,35}-django18,
py{27,34,35}-django19,
py{27,34,35}-django110
[testenv]
basepython =
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
dja... |
06fe1a33ea6d66ab77b04ff75df79aef51119128 | www/app/controllers/HistoryController.scala | www/app/controllers/HistoryController.scala | package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (... | package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryController @Inject() (... | Fix 'typ' filter across pages in history | Fix 'typ' filter across pages in history
| Scala | mit | apicollective/apibuilder,mbryzek/apidoc,gheine/apidoc,gheine/apidoc,mbryzek/apidoc,apicollective/apibuilder,gheine/apidoc,mbryzek/apidoc,apicollective/apibuilder | scala | ## Code Before:
package controllers
import lib.{Pagination, PaginatedCollection}
import scala.concurrent.Future
import com.bryzek.apidoc.api.v0.errors.UnitResponse
import javax.inject.Inject
import play.api._
import play.api.i18n.{MessagesApi, I18nSupport}
import play.api.mvc.{Action, Controller}
class HistoryContro... |
e4a4dba54e8d88109c0601b54e643fac7a08771b | web/modules/custom/sw_migrate/bin/sw-migrate.5.nodes.sh | web/modules/custom/sw_migrate/bin/sw-migrate.5.nodes.sh | drush mim upgrade_d6_node:page
drush mim upgrade_d6_node:blog_couldnt_make_it_up
drush mim upgrade_d6_node:blog_critical_reading --feedback=100
drush mim upgrade_d6_node:edition # Don't think we're migrating these (?)
drush mim upgrade_d6_node:image # Ugh, need to be converted to media entities
drush mim upgrade_d6... | drush mim upgrade_d6_node_page
drush mim upgrade_d6_node_blog_couldnt_make_it_up
drush mim upgrade_d6_node_blog_critical_reading
#drush mim upgrade_d6_node_edition # Don't think we're migrating these (?)
#drush mim upgrade_d6_node_image # Ugh, need to be converted to media entities
drush mim upgrade_d6_node_insert_... | Fix node migration script to use correct migration names. | Fix node migration script to use correct migration names.
| Shell | mit | ISO-tech/sw-d8,ISO-tech/sw-d8,ISO-tech/sw-d8,ISO-tech/sw-d8 | shell | ## Code Before:
drush mim upgrade_d6_node:page
drush mim upgrade_d6_node:blog_couldnt_make_it_up
drush mim upgrade_d6_node:blog_critical_reading --feedback=100
drush mim upgrade_d6_node:edition # Don't think we're migrating these (?)
drush mim upgrade_d6_node:image # Ugh, need to be converted to media entities
drus... |
d2abba0980f996a29e82a041350fb2c99764a61a | core/Json/Static.elm | core/Json/Static.elm |
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromJSString = Native.recordFromJSString
fromString s = Native.recordFromJSString (JS.fromString s)
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJ... |
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromString s = Native.recordFromJSString (JS.fromString s)
fromJSString = Native.recordFromJSString
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSString sep r)
toJ... | Switch the order of two functions. | Switch the order of two functions.
| Elm | bsd-3-clause | mgold/Elm,deadfoxygrandpa/Elm,laszlopandy/elm-compiler,Axure/elm-compiler,pairyo/elm-compiler,5outh/Elm,JoeyEremondi/elm-pattern-effects | elm | ## Code Before:
module Json.Static where
import JavaScript as JS
import Native.Json as Native
fromJSString = Native.recordFromJSString
fromString s = Native.recordFromJSString (JS.fromString s)
toString r = JS.toString (Native.recordToPrettyJSString "" r)
toPrettyString sep r = JS.toString (Native.recordToPrettyJSS... |
4d8e598a31cf39874413472c1c54520dc7c16b46 | src/SortCode.php | src/SortCode.php | <?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_... | <?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$this->parts = str_... | Implement between method on sort code object | Implement between method on sort code object
| PHP | mit | cs278/bank-modulus,cs278/bank-modulus | php | ## Code Before:
<?php
namespace Cs278\BankModulus;
use Cs278\BankModulus\Exception\SortCodeInvalidException;
final class SortCode
{
private $parts;
public function __construct($value)
{
if (6 !== strlen($value)) {
throw SortCodeInvalidException::create($value);
}
$th... |
a71cffa0a3a3efb64a8ea3b4ce110217f62b90fa | Solutions/03/view.stat.c | Solutions/03/view.stat.c |
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
}
|
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
return EXIT_S... | Fix trivial error: return void in main function. | Fix trivial error: return void in main function.
| C | mit | Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK | c | ## Code Before:
int main (int argc, char * argv [])
{
__u64 rdtsc = 0;
__u64 i = 0;
int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {
printf ("%llu:\t%llu\n", ++i, rdtsc);
}
close (fileStat);
}... |
df385ac3c06018a2d151ead1e07293166ff92614 | erpnext/patches/v11_0/move_leave_approvers_from_employee.py | erpnext/patches/v11_0/move_leave_approvers_from_employee.py | import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver... | import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department', 'leave_approver... | Check if table exists else return | Check if table exists else return
| Python | agpl-3.0 | gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext | python | ## Code Before:
import frappe
from frappe import _
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc("hr", "doctype", "department_approver")
frappe.reload_doc("hr", "doctype", "employee")
frappe.reload_doc("hr", "doctype", "department")
if frappe.db.has_column('Department',... |
b015d4231a65e95c1929dec5bc746c1723b953b1 | templates/generic/slack.erb | templates/generic/slack.erb | [slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<% end -%>
<% unle... | [slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=0
gpgkey=https://packagecloud.io/gpg.key
repo_gpgcheck=1
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<%... | Update GPG settings for Slack repo | Update GPG settings for Slack repo
| HTML+ERB | apache-2.0 | lutak-srce/yum,lutak-srce/yum | html+erb | ## Code Before:
[slack]
name=slack
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/x86_64
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
priority=<%= @priority %>
<% unless @exclude.empty? -%>
exclude=<%= @exclude.to_a.join(' ') %>
<%... |
ffcca5e47eafa16d271847ad0dc412265c7e279f | angular-crypto-js.js | angular-crypto-js.js | /**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('cryptoJs', [cryptoJs]);
function cryptoJs(){
return {
md5Hex : md5Hex,
s... | /**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('ngCrypto', [ngCrypto]);
function ngCrypto(){
return {
md5Hex : md5Hex,
s... | Update factory name to ngCrypto | Update factory name to ngCrypto | JavaScript | mit | janppires/angular-crypto-js | javascript | ## Code Before:
/**
* Angular crypto-js
* https://github.com/janppires/angular-crypto-js.git
**/
(function(angular, CryptoJS){
'use strict';
angular
.module('angular-crypto-js', [])
.factory('cryptoJs', [cryptoJs]);
function cryptoJs(){
return {
md5Hex : md5Hex... |
fa8ad644d8093958d437da4664a53ceb390987ae | README.md | README.md |
[](http://travis-ci.org/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
|
[](http://travis-ci.org/hyoshida/poteti)
[](https://codeclimate.com/github/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
| Add badge for Code Climate | Add badge for Code Climate
| Markdown | mit | hyoshida/poteti,hyoshida/poteti | markdown | ## Code Before:
[](http://travis-ci.org/hyoshida/poteti)
This project rocks and uses MIT-LICENSE.
## Instruction:
Add badge for Code Climate
## Code After:
[](http://travis-ci.org/hyosh... |
e91c37c7d2678d91dad8ab46b5c0b8a174458c5f | java-spring-mvc-gradle/buildspec.yml | java-spring-mvc-gradle/buildspec.yml | version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
... | version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering build phase...
... | Use wildcard for zip artifact | Use wildcard for zip artifact
| YAML | mit | rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates | yaml | ## Code Before:
version: 0.2
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Entering pre_build phase...
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Entering b... |
3de486d2f044e8534e96f9dfa2a842bccff4bc7c | tests/CMakeLists.txt | tests/CMakeLists.txt |
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp... |
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
functions.cpp... | Add Gaussian window test to the suite. | Add Gaussian window test to the suite.
| Text | apache-2.0 | sav6622/aquila,synkarae/aquila,synkarae/Quasar,sav6622/aquila,synkarae/Quasar,zsiciarz/aquila,Aldor007/aquila,zsiciarz/aquila,zsiciarz/aquila,synkarae/aquila,tempbottle/aquila,synkarae/aquila,tempbottle/aquila,zsiciarz/aquila,sav6622/aquila,Aldor007/aquila,tempbottle/aquila,Aldor007/aquila,synkarae/Quasar | text | ## Code Before:
include_directories("${CMAKE_SOURCE_DIR}")
# path to data files used for testing
set(Aquila_TEST_DATA_PATH "${CMAKE_SOURCE_DIR}/tests/data")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/constants.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/constants.h"
)
# UnitTest++
set(Aquila_Test_SOURCES
main.cpp
... |
d3ee759af0f234894dc449e78d6bbb1207c025dc | spec/tags/19/ruby/core/time/new_tags.txt | spec/tags/19/ruby/core/time/new_tags.txt | fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
| fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
unstable(fails on 32-bit linux):Time.new accepts various year ranges
| Tag unstable shared Time spec | Tag unstable shared Time spec | Text | mpl-2.0 | Wirachmat/rubinius,kachick/rubinius,mlarraz/rubinius,jsyeo/rubinius,Wirachmat/rubinius,Wirachmat/rubinius,mlarraz/rubinius,kachick/rubinius,ruipserra/rubinius,Wirachmat/rubinius,heftig/rubinius,Wirachmat/rubinius,ruipserra/rubinius,Wirachmat/rubinius,jsyeo/rubinius,Azizou/rubinius,kachick/rubinius,Azizou/rubinius,pH14/... | text | ## Code Before:
fails:Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds
fails:Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r
## Instruction:
Tag unstable shared Time spec
## Code After:
fails:Time.new with a... |
ac1d68ae5980b8d483a6ae23da8a781ff6577812 | app/controllers/dashboard_controller.rb | app/controllers/dashboard_controller.rb | class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*%w{di... | class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attributes.slice(*copya... | Use last distance values for ride form | Use last distance values for ride form
| Ruby | mit | Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge | ruby | ## Code Before:
class DashboardController < ApplicationController
authorize_resource :class => false
def index
@rides = current_user.rides.first(9)
@ride = build_ride
end
private
def build_ride
if current_user.rides.any?
last_ride = current_user.rides.first
attrs = last_ride.attribu... |
8e2682a65afb081e67d8364a86b75d5a93563ecc | app/views/report_mailer/report_project_deleted.text.erb | app/views/report_mailer/report_project_deleted.text.erb | Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at deletion was:
<... | Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
It was created at <%= @project.created_at %>, and was
<%= @project.badge_percentage %>% complete towards the passing level.
... | Emphasize important data on project deletion | Emphasize important data on project deletion
Emphasize important data on project deletion in the reporting email.
In particular, projects with low % and were created recently are less
concerning than project entries with high % and were created a while ago
(maybe their account was subverted).
Signed-off-by: David A. ... | HTML+ERB | mit | wanganyv/cii-best-practices-badge,wanganyv/cii-best-practices-badge,coreinfrastructure/best-practices-badge,jdossett/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,jdossett/cii-best-practices-badge,coreinfrastructure/best-practices... | html+erb | ## Code Before:
Deletion of project <%= @project.id %>
Project <%= @project.id %> named <%= @project.name %>
<% if ENV.include?('PUBLIC_HOSTNAME') %>
on <%= ENV['PUBLIC_HOSTNAME'] %>
<% end %>
has been deleted.
This action was carried out by user <%= @user.id %> named <%= @user.name %>.
The project's JSON record at ... |
77fbe4ede6c7cf7f59dd337de617a82b9561dbdc | after/ftplugin/terraform.vim | after/ftplugin/terraform.vim | if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) ... | if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) ... | Add ability to fold sections | Add ability to fold sections
+ Added code to allow for folding sections of terraform configuration
Code copied directly from https://github.com/jgerry/terraform-vim-folding `foldlevel` altered from 0 to 1 | VimL | isc | hashivim/vim-terraform,hashivim/vim-terraform | viml | ## Code Before:
if !exists('g:terraform_align')
let g:terraform_align = 0
endif
if g:terraform_align && exists(':Tabularize')
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
function! s:terraformalign()
let p = '^.*=[^>]*$'
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getli... |
ad6738fbe0e235ad226071297f0cf7d9ca68ab75 | src/main/java/joshie/progression/criteria/filters/entity/FilterEntityDisplayName.java | src/main/java/joshie/progression/criteria/filters/entity/FilterEntityDisplayName.java | package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity im... | package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends FilterBaseEntity im... | Fix @GirafiStudios named sheep being able to be killed and triggering the entity display name filter | Fix @GirafiStudios named sheep being able to be killed and triggering the entity display name filter
| Java | mit | joshiejack/Progression | java | ## Code Before:
package joshie.progression.criteria.filters.entity;
import joshie.progression.api.criteria.ProgressionRule;
import joshie.progression.api.special.IInit;
import net.minecraft.entity.EntityLivingBase;
@ProgressionRule(name="displayName", color=0xFFB25900)
public class FilterEntityDisplayName extends Fil... |
d703bd7ff87efa91c071f975988de9796e339ebd | package.json | package.json | {
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"s... | {
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : "~6.1.0",
"s... | Remove percy references that were accidentally committed | Remove percy references that were accidentally committed
| JSON | mit | ndarville/style,ndarville/style | json | ## Code Before:
{
"name": "style",
"version": "2.2.0",
"description": "Linting and guidelines for webdev workflow.",
"keywords": [
"linting"
],
"author": {
"name": "Niclas Darville",
"url": "https://ndarville.com"
},
"repository": "ndarville/style",
"devDependencies": {
"stylelint" : ... |
8a1c3fb12494bf435a2bcdd536f49b05f71a4585 | device.go | device.go | package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func(... | package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entriesCh)
go func(... | Support IPv6 address AirServer returns. | Support IPv6 address AirServer returns.
| Go | mit | gongo/go-airplay | go | ## Code Before:
package airplay
import "github.com/armon/mdns"
// A Device is an AirPlay Device.
type Device struct {
Name string
Addr string
Port int
}
// Devices returns all AirPlay devices in LAN.
func Devices() []Device {
devices := []Device{}
entriesCh := make(chan *mdns.ServiceEntry, 4)
defer close(entri... |
4b7b2727a35cfcb0117b0ba4571da9a0ea81824a | greenmine/base/routers.py | greenmine/base/routers.py |
from rest_framework import routers
# Special router for actions.
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
mapping={'{httpmethod}': '{methodname}'},
name='{basename}-{methodnamehyphen}',
i... |
from rest_framework import routers
class DefaultRouter(routers.DefaultRouter):
pass
__all__ = ["DefaultRouter"]
| Remove old reimplementation of routes. | Remove old reimplementation of routes.
| Python | agpl-3.0 | joshisa/taiga-back,joshisa/taiga-back,gam-phon/taiga-back,bdang2012/taiga-back-casting,jeffdwyatt/taiga-back,rajiteh/taiga-back,crr0004/taiga-back,crr0004/taiga-back,EvgeneOskin/taiga-back,dayatz/taiga-back,Rademade/taiga-back,joshisa/taiga-back,Rademade/taiga-back,astronaut1712/taiga-back,forging2012/taiga-back,coopso... | python | ## Code Before:
from rest_framework import routers
# Special router for actions.
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
mapping={'{httpmethod}': '{methodname}'},
name='{basename}-{methodnamehyphen}',
... |
485be1aa2bcb52a397d71a27caa5dab410d2af4b | requirements-gevent.txt | requirements-gevent.txt | cython
https://github.com/SiteSupport/gevent/tarball/1.0rc2
| cython
https://github.com/surfly/gevent/archive/1.0rc2.tar.gz
| Update URL to gevent tarball | Update URL to gevent tarball
| Text | apache-2.0 | jodal/pykka,tamland/pykka,tempbottle/pykka | text | ## Code Before:
cython
https://github.com/SiteSupport/gevent/tarball/1.0rc2
## Instruction:
Update URL to gevent tarball
## Code After:
cython
https://github.com/surfly/gevent/archive/1.0rc2.tar.gz
|
f24a58ef3d4695f0305f3d0969852621b532163c | chef-expander/lib/chef/expander/version.rb | chef-expander/lib/chef/expander/version.rb |
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
|
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rescue Errno::ENOENT
rev = ""
end
rev.empty? ? nil : " (#{rev... | Allow for git to be uninstalled. | CHEF-2462: Allow for git to be uninstalled.
| Ruby | apache-2.0 | kamaradclimber/chef,OpSitters/chef,circleback/chef,jagdeesh109/chef,3dinfluence/chef,ChaosCloud/chef,Ppjet6/chef,3dinfluence/chef,BackSlasher/chef,criteo-forks/chef,jagdeesh109/chef,erkolson/chef,ccope/chef,pburkholder/chef,ducthanh/chef,criteo-forks/chef,antonifs/chef,DeWaRs1206/chef,adamleff/chef,nvwls/chef,jkerry/ch... | ruby | ## Code Before:
require 'open3'
module Chef
module Expander
VERSION = "0.10.5"
def self.version
@rev ||= begin
rev = Open3.popen3("git rev-parse HEAD") {|stdin, stdout, stderr| stdout.read }.strip
rev.empty? ? nil : " (#{rev})"
end
"#{VERSION}#@rev"
end
end
end
##... |
18afbc5becae4c65906d98e2b48ff511524b34aa | scripts/fetch-develop.deps.sh | scripts/fetch-develop.deps.sh |
curbranch=`git rev-parse --abbrev-ref HEAD`
mkdir -p node_modules
cd node_modules
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
npm install
echo "$repo set to branch ... |
curbranch=`git rev-parse --abbrev-ref HEAD`
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
popd
}
dodep ma... | Make dep install script work | Make dep install script work
| Shell | apache-2.0 | vector-im/vector-web,vector-im/riot-web,vector-im/riot-web,vector-im/riot-web,martindale/vector,vector-im/riot-web,vector-im/vector-web,vector-im/vector-web,vector-im/riot-web,vector-im/riot-web,vector-im/vector-web,vector-im/vector-web,martindale/vector | shell | ## Code Before:
curbranch=`git rev-parse --abbrev-ref HEAD`
mkdir -p node_modules
cd node_modules
function dodep() {
org=$1
repo=$2
rm -rf $repo || true
git clone https://github.com/$org/$repo.git $repo
pushd $repo
git checkout $curbranch || git checkout develop
npm install
echo "$rep... |
505181dac07e48ff83fc97c665bea6d74c7665c0 | README.md | README.md | System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --nam... | System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
docker run --nam... | Test build with github ci | Test build with github ci
| Markdown | mit | nathancashmore/iou,nathancashmore/iou | markdown | ## Code Before:
System to record how much you owe them.
# Prerequisite
* DB
# Run
```
DB_URL=jdbc:postgresql://localhost/iou DB_USER=postgres DB_PASSWORD=mysecretpassword DB_DRIVER=org.postgresql.Driver ./gradlew bootRun
```
# Test
Make sure you have an instance of the DB running with the following settings:
```
... |
dc224d19e79146fece348b3314832e8080e89258 | stylus/modules/notice.styl | stylus/modules/notice.styl | .ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: notice.color;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
}
&.ion-alert {
b... | .ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: #212121;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
color: notice.color;
}
... | Fix default alert text being hard to read | Fix default alert text being hard to read
| Stylus | mit | Ionogy/kernel.css,Ionogy/kernel.css | stylus | ## Code Before:
.ion-notice {
animation: fadein 0.5s;
background: notice.bg;
border-radius: 3px;
box-sizing: border-box;
color: notice.color;
line-height: 40px;
min-height: 40px;
padding: 0 15px;
width: 100%;
z-index: 999;
&.ion-info {
background: notice.info-bg;
}
&.ion-a... |
6d04f2a7e439747b3fabe2e38d71e1a200007ede | .travis.yml | .travis.yml | language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- app/console redis:... | language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- sudo apt-get insta... | Install redis-server before trying fixtures restore | Install redis-server before trying fixtures restore
| YAML | mit | phpsw/phpsw,phpsw/phpsw,phpsw/phpsw,phpsw/phpsw,phpsw/phpsw | yaml | ## Code Before:
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- PATH=./node_modules/.bin:$PATH
before_script:
- composer self-update && composer install
- openssl aes-256-cbc -K $encrypted_d40576457a66_key -iv $encrypted_d40576457a66_iv -in config/secrets.yml.enc -out config/secrets.yml -d
- ap... |
de0e94cc6df400a721dda0811c641834f6d32e6e | zsh/.zsh/env.zsh | zsh/.zsh/env.zsh | umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse... | umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R_OPTS='--reverse... | Make zsh accept bangs in quotes! | Make zsh accept bangs in quotes!
| Shell | bsd-3-clause | alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles | shell | ## Code Before:
umask 077
# editor
export EDITOR='nvim'
export VISUAL="$EDITOR"
export PAGER='less'
# environment variables
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_DEFAULT_OPTS='--color=16,fg+:4 --ansi'
export FZF_CTRL_T_COMMAND='ag --hidden --ignore .git -l -g ""'
export FZF_CTRL_R... |
88bd75c4b0e039c208a1471d84006cdfb4bbaf93 | starbowmodweb/site/templatetags/bbformat.py | starbowmodweb/site/templatetags/bbformat.py | from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in opti... | from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' for name in opti... | Add support for email and font bbcode tags. | Add support for email and font bbcode tags.
| Python | mit | Starbow/StarbowWebSite,Starbow/StarbowWebSite,Starbow/StarbowWebSite | python | ## Code Before:
from django import template
import bbcode
def bbcode_img(tag_name, value, options, parent, context):
if tag_name in options and 'x' in options[tag_name]:
options['width'], options['height'] = options[tag_name].split('x', 1)
del options[tag_name]
attrs = ' '.join([name+'="{}"' ... |
f140a2200f6f5453471a3760f16cfcdd9c9faeae | .travis.yml | .travis.yml | language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitM... | language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: MongoDB and RabbitM... | Add "freetds-dev" build dependency, it's needed by mssql pack. | Add "freetds-dev" build dependency, it's needed by mssql pack.
| YAML | apache-2.0 | pidah/st2contrib,pidah/st2contrib,tonybaloney/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,StackStorm/st2contrib,armab/st2contrib,armab/st2contrib,StackStorm/st2contrib,StackStorm/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,a... | yaml | ## Code Before:
language: python
python: 2.7
sudo: false
os:
- linux
env:
global:
- "PIP_DOWNLOAD_CACHE=$HOME/.pip-cache"
matrix:
- "TASK=flake8"
- "TASK=pylint"
- "TASK=configs-check"
- "TASK=metadata-check"
- "TASK=packs-resource-register"
- "TASK=packs-tests"
services:
# Note: Mon... |
edba525a236224b4e73dba6fc236db4f6fddbbd4 | tox.ini | tox.ini | [tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
| [tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
py{34}: pytest<3.3
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
| Fix tests with Python 3.4. Using pytest < 3.3 for pytest-timeout < 1.2.1 compatibility. | Fix tests with Python 3.4. Using pytest < 3.3 for pytest-timeout < 1.2.1 compatibility.
| INI | apache-2.0 | gorakhargosh/watchdog,gorakhargosh/watchdog | ini | ## Code Before:
[tox]
envlist = py{37,36,35,34,27,py3,py}
[testenv]
deps = pytest-cov
py{37,36,35,27,py3,py}: pytest-timeout
py{34}: pytest-timeout<1.2.1
commands = py.test {posargs}
[pytest]
addopts = --cov=watchdog
--cov-report=term-missing
## Instruction:
Fix tests with Python 3.4. Using p... |
7bca303a910b397ff23826dc0c57a8393c30d7c1 | lib/mspec/helpers/environment.rb | lib/mspec/helpers/environment.rb | require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def username
user = ""
if Spe... | require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def windows_env_echo(var)
`cmd.ex... | Add helper to find the user's home directory. | Add helper to find the user's home directory.
| Ruby | mit | eregon/mspec,shirosaki/mspec,iainbeeston/mspec,kachick/mspec,nobu/mspec,MagLev/mspec,elia/mspec,iainbeeston/mspec,ryoqun/mspec,opal/mspec,voxik/mspec,Zoxc/mspec,timfel/mspec,kachick/mspec,MagLev/mspec,rubinius/mspec,opal/mspec,ruby/mspec,rdp/mspec,ruby/mspec,Gibheer/mspec,ryoqun/mspec,shugo/mspec,mrkn/mspec,alex/mspec,... | ruby | ## Code Before:
require 'mspec/guards/guard'
class Object
def env
env = ""
if SpecGuard.windows?
env = Hash[*`cmd.exe /C set`.split("\n").map { |e| e.split("=", 2) }.flatten]
else
env = Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten]
end
env
end
def username
user... |
58ae075463518e477185816094eb83f42ce5b77c | gcloud/bigquery/__init__.py | gcloud/bigquery/__init__.py |
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
|
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
from gcloud.bigquery.table import SchemaField
from gcloud.bigquery.table import Table
| Add public API entties from 'bigquery.table'. | Add public API entties from 'bigquery.table'.
| Python | apache-2.0 | CyrusBiotechnology/gcloud-python,tseaver/google-cloud-python,Fkawala/gcloud-python,waprin/gcloud-python,jonparrott/gcloud-python,EugenePig/gcloud-python,dhermes/google-cloud-python,tswast/google-cloud-python,thesandlord/gcloud-python,tswast/google-cloud-python,EugenePig/gcloud-python,jbuberel/gcloud-python,dhermes/goog... | python | ## Code Before:
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from gcloud.bigquery.dataset import Dataset
## Instruction:
Add public API entties from 'bigquery.table'.
## Code After:
from gcloud.bigquery.client import Client
from gcloud.bigquery.connection import SCOPE
from ... |
7e32ec8532c1e899dd33f30521a9d75399d8efa1 | traffic_control/README.md | traffic_control/README.md |
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Yo... |
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for that airline.
Yo... | Add more variety to traffic_control exercise. It's all GETs right now. | Add more variety to traffic_control exercise. It's all GETs right now.
| Markdown | mit | fengb/level_up_exercises,LKompare/level_up_exercises,Manbearpixel/level_up_exercises,oharace/level_up_exercises,jmmastey/level_up_exercises,sumsionp/level_up_exercises,pdhiman/level_up_exercises,DejaAugustine/level_up_exercises,pmacaluso3/level_up_exercises,sumsionp/level_up_exercises,pmacaluso3/level_up_exercises,ceng... | markdown | ## Code Before:
You've been hired by a progressive airline (probably something European, not thinking of United here) to help build an API to their traffic control system. Other airlines and amateur aviation nuts (and travel agencies, if they still exist somewhere) will use this API to query and modify manifests for t... |
74834709ba433fc840d9b48c92bf92f2f581ff65 | lib/tasks/npm.rake | lib/tasks/npm.rake | require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-depend... | require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_file = "npm-depend... | Remove `cd` as it cause issues in Debian | Remove `cd` as it cause issues in Debian | Ruby | mit | endenwer/npm-rails | ruby | ## Code Before:
require 'fileutils'
namespace :npm do
desc "Install npm packages"
task :install do
package_file = ::Rails.configuration.npm.package_file
browserify_options = ::Rails.configuration.npm.browserify_options
output_path = ::Rails.root.join(::Rails.configuration.npm.output_path)
output_fi... |
a4c9dd451062b83b907a350ea30f2d36badb6522 | parsers/__init__.py | parsers/__init__.py | import importlib
parsers = """
singtao.STParser
apple.AppleParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module), class_name)
... | import importlib
parsers = """
singtao.STParser
apple.AppleParser
tvb.TVBParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module),... | Add tvb Parser to the init | Add tvb Parser to the init
| Python | mit | code4hk/hk-news-scrapper | python | ## Code Before:
import importlib
parsers = """
singtao.STParser
apple.AppleParser
""".split()
parser_dict = {}
# Import the parser and fill in parser_dict: domain -> parser
for parser_name in parsers:
module, class_name = parser_name.rsplit('.', 1)
parser = getattr(importlib.import_module('parsers.' + module... |
b1dae11860d61e3b574c7bd6b332053819675ddb | tests/test_block_cache.py | tests/test_block_cache.py | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.blo... | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.blo... | Fix the test case for block cache. | Fix the test case for block cache.
| Python | bsd-2-clause | f-prettyland/angr,f-prettyland/angr,axt/angr,chubbymaggie/angr,schieb/angr,schieb/angr,angr/angr,tyb0807/angr,tyb0807/angr,f-prettyland/angr,iamahuman/angr,iamahuman/angr,tyb0807/angr,angr/angr,schieb/angr,iamahuman/angr,chubbymaggie/angr,chubbymaggie/angr,axt/angr,axt/angr,angr/angr | python | ## Code Before:
import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b... |
26be6ad3b3242efd89e47b0306764fc9c64bcef3 | README.md | README.md | Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
# Example usage
The target:
```C#
public interface IConfiguration {
public string Value { get; ... | Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
[](ht... | Add Travis CI badge to readme, and expand on example section. | Add Travis CI badge to readme, and expand on example section.
| Markdown | mit | dignite/AppSettingsByConvention | markdown | ## Code Before:
Reads settings from the appSettings section of your configuration by convention.
The keys should follow the pattern "CLASSNAME.PROPERTYNAME".
All properties on your config object need to appear in your configuration.
# Example usage
The target:
```C#
public interface IConfiguration {
public stri... |
9d1b630110108dbb5e43b1242abd4f1fb67868aa | app_generators/merb/templates/spec/spec_helper.rb | app_generators/merb/templates/spec/spec_helper.rb | require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
config.include(Mer... | require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
# this loads all plugins required in your init file so don't add them
# here again, Merb will do it for you
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] ... | Add a note on plugins loading to generated spec helper. | Add a note on plugins loading to generated spec helper.
| Ruby | mit | merb/merb-gen,merb/merb-gen | ruby | ## Code Before:
require 'rubygems'
require 'merb-core'
require 'spec' # Satisfies Autotest and anyone else not using the Rake tasks
Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')
Spec::Runner.configure do |config|
config.include(Merb::Test::ViewHelper)
co... |
c84f90480da763d1481d127fed59b301144a2367 | packages/st/string-qq.yaml | packages/st/string-qq.yaml | homepage: ''
changelog-type: ''
hash: 7796f4ba2a1f69d6d06b720ba42d6b51f75726a73178964caf685b1b72358cba
test-bench-deps: {}
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-haskell: ! '>=2'
a... | homepage: ''
changelog-type: ''
hash: f9d9073fe20a0d322ca7783f5a8920ab179ee98a055f6dc3be1c31a3c83a4a80
test-bench-deps:
base: ! '>3 && <6'
text: ! '>=1.2 && <1.3'
string-qq: -any
HUnit: ! '>=1.6 && <1.7'
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and ... | Update from Hackage at 2019-09-24T03:52:34Z | Update from Hackage at 2019-09-24T03:52:34Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: 7796f4ba2a1f69d6d06b720ba42d6b51f75726a73178964caf685b1b72358cba
test-bench-deps: {}
maintainer: Audrey Tang <audreyt@audreyt.org>
synopsis: QuasiQuoter for non-interpolated strings, texts and bytestrings.
changelog: ''
basic-deps:
base: ! '>3 && <6'
template-ha... |
1e930fed71c4335cd84f6e15679281ef953a59ab | index.html | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 18px;
... | Add new dev blog link | Add new dev blog link
| HTML | mit | jamband/jamband.github.io | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
width: 300px;
margin: 100px auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 1... |
291e91e24b0494ce61c101b68271cfabefeb39a6 | app/components/Statements/SpeakerComments.jsx | app/components/Statements/SpeakerComments.jsx | import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) ... | import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, speaker, comments}) ... | Fix a crash that was occuring when deleting speaker with self-comments | Fix a crash that was occuring when deleting speaker with self-comments
| JSX | agpl-3.0 | CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend | jsx | ## Code Before:
import React from 'react'
import { translate } from 'react-i18next'
import VerificationsOriginHeader from './VerificationsOriginHeader'
import { SpeakerPreview } from '../Speakers/SpeakerPreview'
import { CommentsList } from '../Comments/CommentsList'
export default translate('videoDebate')(({t, spea... |
2e6745bcc99d6e3099669a9489c5997ae89d7037 | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public voi... | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public voi... | Add support for accelerometer and wakelock | Android: Add support for accelerometer and wakelock
| Java | apache-2.0 | dbaelz/Secludedness,dbaelz/Secludedness | java | ## Code Before:
package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Overrid... |
df992f790d8b46c445ee83a637f7fdb5e647c93f | test/events/submitSpec.js | test/events/submitSpec.js | describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
});
it("closes com... | describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
// prevent full pag... | Fix tests run in Firefox | Fix tests run in Firefox
| JavaScript | mit | eggpi/awesomplete,vlazar/awesomplete,LeaVerou/awesomplete,bsvobodny/awesomplete,bchcheng/awesomplete,bsvobodny/awesomplete,eggpi/awesomplete,vlazar/awesomplete,bchcheng/awesomplete,LeaVerou/awesomplete | javascript | ## Code Before:
describe("form submit event", function () {
$.fixture("options");
subject(function () {
return new Awesomplete("#inside-form", { list: ["item1", "item2", "item3"] });
});
beforeEach(function () {
spyOn(Awesomplete.prototype, "close");
this.subject.input.focus();
this.subject.open();
});
... |
f1cabc889dd93e26295501097ac9cbf90890a1cd | solvent/config.py | solvent/config.py | import yaml
import os
LOCAL_OSMOSIS = 'localhost:1010'
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file must not be empty... | import yaml
import os
LOCAL_OSMOSIS_IF_ROOT = 'localhost:1010'
LOCAL_OSMOSIS_IF_NOT_ROOT = 'localhost:1010'
LOCAL_OSMOSIS = None
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if d... | Select local osmosis depends if user is root, to avoid permission denied on /var/lib/osmosis | Bugfix: Select local osmosis depends if user is root, to avoid permission denied on /var/lib/osmosis
| Python | apache-2.0 | Stratoscale/solvent,Stratoscale/solvent | python | ## Code Before:
import yaml
import os
LOCAL_OSMOSIS = 'localhost:1010'
OFFICIAL_OSMOSIS = None
OFFICIAL_BUILD = False
WITH_OFFICIAL_OBJECT_STORE = True
CLEAN = False
def load(filename):
with open(filename) as f:
data = yaml.load(f.read())
if data is None:
raise Exception("Configuration file m... |
617f84cb04bdddf130b89020e807d7d38fc294f4 | metadata.json | metadata.json | {
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/... | {
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://github.com/sbitio/... | Document support for Debian 10 and Ubuntu 18.04. | Document support for Debian 10 and Ubuntu 18.04.
| JSON | mit | sbitio/puppet-monit,sbitio/puppet-monit | json | ## Code Before:
{
"name": "sbitio-monit",
"version": "2.0.0",
"author": "SB IT Media, S.L.",
"summary": "Performs installation and configuration of Monit service, along with fine grained definition of checks",
"license": "MIT",
"source": "http://github.com/sbitio/puppet-monit",
"project_page": "https://gi... |
15005154069d43927e474e78d6bb5960112b9052 | test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll | test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll | ; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))'
; For PR1099
; XFAIL: *
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
... | ; For PR1099
; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == ltmp_1_2)) ? (1) : (0)))'
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation ; Functions:
define i1 @prune_match_... | Update this test to compile properly and check against the correct string generated by the CBE. This is no longer an XFAIL. | Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@34327 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/l... | llvm | ## Code Before:
; RUN: llvm-as < %s | llc -march=c | \
; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))'
; For PR1099
; XFAIL: *
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8"
%struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
implementation... |
21a39061605062f0d7cc8a2c7c333832e3cdd997 | freeciv-img-extract/sync.sh | freeciv-img-extract/sync.sh | python img-extract.py && \
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png && \
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ && \
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/
cp tiles/*.png ../freeciv-web/src/... | python img-extract.py &&
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png &&
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ &&
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/ &&
mkdir -p ../freeciv-web/src/main/webap... | Create tiles directory if it's missing. | Create tiles directory if it's missing.
| Shell | agpl-3.0 | tltneon/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,tltneon/freeciv-web,adaxi/freeciv-web,sylvain121/freeciv-web-server,andreasrosdal/freeciv-web,andreasrosdal/freeciv-web,sylvain121/freeciv-web-server,tltneon/freeciv-web,andreasrosdal/freeciv-web,adaxi/freeciv-web,andreasros... | shell | ## Code Before:
python img-extract.py && \
pngcrush pre-freeciv-web-tileset.png freeciv-web-tileset.png && \
mkdir -p ../freeciv-web/src/main/webapp/tileset &&
cp freeciv-web-tileset.png ../freeciv-web/src/main/webapp/tileset/ && \
cp freeciv-web-tileset.js ../freeciv-web/src/main/webapp/javascript/
cp tiles/*.png ../... |
8a48ff46909f8c2155395b0167246537688f5b6b | scripts/travis-script.sh | scripts/travis-script.sh |
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
|
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
| Build shared libs on Travis | Build shared libs on Travis
Since this is the most common use-case, that's what should be tested.
| Shell | lgpl-2.1 | gadomski/fgt,gadomski/fgt,gadomski/fgt | shell | ## Code Before:
set -ex
home=$(pwd)
mkdir build
cd build
cmake .. -DWITH_TESTS=ON \
-DWITH_OPENMP=${FGT_WITH_OPENMP} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=${FGT_CMAKE_VERBOSE_MAKEFILE} \
-DCMAKE_INSTALL_PREFIX=${home}/local
make
make test
make install
## Instruction:
Build shared libs on T... |
5d3e50710c50ba5d8358f01cfc4d6c7797c453e3 | README.md | README.md | A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
| [](https://magnum.travis-ci.com/seatgeek/sixpack-java)[](https://coveralls.io/r/seatgeek/sixpack-java?branch=master)... | Add travis build status and coveralls coverage report to readme. | Add travis build status and coveralls coverage report to readme.
| Markdown | bsd-2-clause | seatgeek/sixpack-java,MaTriXy/sixpack-java,MaTriXy/sixpack-java,seatgeek/sixpack-java | markdown | ## Code Before:
A Java client for SeatGeek's Sixpack a/b testing framework https://github.com/seatgeek/sixpack
## Instruction:
Add travis build status and coveralls coverage report to readme.
## Code After:
[ {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} ... | ;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post = function () {} ... | Make JS function pattern more lenient instead of expecting Crockford style. | Make JS function pattern more lenient instead of expecting Crockford style.
| Emacs Lisp | mit | lstoll/dotfiles,lstoll/dotfiles,lstoll/dotfiles,lstoll/repo,lstoll/repo,lstoll/repo | emacs-lisp | ## Code Before:
;; DESCRIPTION:
;; Useful patterns for using the ido menu with Javascript files.
;;
;; AUTHOR:
;; Geoffrey Grosenbach http://peepcode.com
;;
;; Matches things like:
;;
;; function bacon() {} // Standard function
;; getJSON: function () {} // Function as a key in a hash
;; this.post =... |
99230277524a2b8531931eb3aaef5e56038d6f41 | package.json | package.json | {
"name": "lala",
"version": "1.1.1",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.g... | {
"name": "lala",
"version": "1.2.0",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/jmfirth/lala.g... | Add node-persist and promprly; Increment to version 1.2.0 | Add node-persist and promprly; Increment to version 1.2.0
| JSON | mit | jmfirth/lala | json | ## Code Before:
{
"name": "lala",
"version": "1.1.1",
"description": "A pattern-based ignore generator.",
"main": "lala.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.co... |
9787ecf581f65dfa2706db925d47c6114348cbe9 | index.js | index.js | 'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.... | 'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
};
JoiSequelize.... | Change pick, omit to allow both array and list of params. Create function include. | Change pick, omit to allow both array and list of params. Create function include.
| JavaScript | mit | joeybaker/joi-sequelize,mibrito/joi-sequelize | javascript | ## Code Before:
'use strict'; // jshint ignore:line
let _ = require('lodash');
let JoiSequelize = function(model) {
this._joi = {};
this._model = model;
this.sequelize = {
define: require('./lib/define').bind(this)
};
this.datatypes = require('./lib/datatypes');
model(this.sequelize, this.datatypes);
}... |
f95d5715d26957d4832fdb555137d1b09e19d917 | test/specs/e2e/e2e.cli.snippet.js | test/specs/e2e/e2e.cli.snippet.js | "use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
var b... | "use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function () {
this.... | Increase timeouts in attempt to get windows CI build working! | Increase timeouts in attempt to get windows CI build working!
| JavaScript | apache-2.0 | BrowserSync/browser-sync,Iced-Tea/browser-sync,portned/browser-sync,naoyak/browser-sync,schmod/browser-sync,Plou/browser-sync,syarul/browser-sync,lookfirst/browser-sync,Teino1978-Corp/Teino1978-Corp-browser-sync,syarul/browser-sync,EdwonLim/browser-sync,zhelezko/browser-sync,chengky/browser-sync,mcanthony/browser-sync,... | javascript | ## Code Before:
"use strict";
var path = require("path");
var _ = require("lodash");
var assert = require("chai").assert;
var request = require("supertest");
var fork = require("child_process").fork;
var index = path.resolve( __dirname + "/../../../index.js");
describe("E2E CLI Snippet test", function... |
93741eed3b8c0f59304c405cfb4f9382f141e913 | .travis.yml | .travis.yml | language: php
php:
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction... | language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: 7.1
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-in... | Test PHP7.1 but allow failures | Test PHP7.1 but allow failures | YAML | mit | jkphl/micrometa,jkphl/micrometa | yaml | ## Code Before:
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- APP_ENV=development CC_TEST_REPORTER_ID=efd18a36922628f0536f2f08cf7ceca763f5f2feb6f3638037381487ca3312ae
matrix:
allow_failures:
- php: hhvm
before_script:
- travis_retry composer self-update
- travis_retry composer install ... |
3c8ef2be28d53e34a0a12f042ccad08c16cc8a1d | metadata/com.angryburg.uapp.txt | metadata/com.angryburg.uapp.txt | Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official ap... | Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:
The official ap... | Update la/u/ncher to 4.1.9 (419) | Update la/u/ncher to 4.1.9 (419)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:GPL-3.0
Author Name:Niles Rogoff
Author Email:lain@rogoff.xyz
Web Site:https://dangeru.us
Source Code:https://github.com/nilesr/United4
Issue Tracker:https://github.com/nilesr/United4/issues
Auto Name:la/u/ncher
Summary:The official app for danger/u/, dangeru.us
Description:... |
30d285d0063cdcb70d47c8619434bcbc057ab9d7 | src/allocators/page_heap.cc | src/allocators/page_heap.cc | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
n... | // Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "system-alloc.h"
n... | Use public API for inserting a block in refill. | Use public API for inserting a block in refill.
Signed-off-by: Michael Lippautz <0d543840881a2c189b4f7636b15eebd6a8f60ace@gmail.com>
| C++ | bsd-2-clause | cksystemsgroup/scalloc,cksystemsgroup/scalloc,cksystemsgroup/scalloc | c++ | ## Code Before:
// Copyright (c) 2012-2013, the scalloc Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
#include "allocators/page_heap.h"
#include "common.h"
#include "log.h"
#include "sy... |
8e4d77636a9846296225ddbfab872be4c7486261 | dask_distance/_pycompat.py | dask_distance/_pycompat.py |
try:
irange = xrange
except NameError:
irange = range
|
try:
irange = xrange
except NameError:
irange = range
try:
from itertools import izip
except ImportError:
izip = zip
| Add izip for Python 2/3 compatibility | Add izip for Python 2/3 compatibility
Simply use `izip` from `itertools` on Python 2 and alias `izip` as `zip`
on Python 3. This way an iterable form of `zip` remains available on
both Python 2 and Python 3 that is named `izip`. Should help avoid
having the performance of the two implementations from diverging too
far... | Python | bsd-3-clause | jakirkham/dask-distance | python | ## Code Before:
try:
irange = xrange
except NameError:
irange = range
## Instruction:
Add izip for Python 2/3 compatibility
Simply use `izip` from `itertools` on Python 2 and alias `izip` as `zip`
on Python 3. This way an iterable form of `zip` remains available on
both Python 2 and Python 3 that is named `... |
f8400e0f01ed045d2c609d12fb1f6c4c040991f3 | src/Home/Home.tsx | src/Home/Home.tsx | import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{ fontSize: '12px... | import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
import { Link } from 'react-router-dom';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSecti... | Use <Link> instead of <a> | Use <Link> instead of <a>
| TypeScript | agpl-3.0 | Felizardo/turnato,Felizardo/turnato,Felizardo/turnato | typescript | ## Code Before:
import * as React from 'react';
import TurnatoBar from '../App/TurnatoBar';
import Header from './Header';
import GamesSection from './GamesSection';
class Home extends React.Component<{}, {}> {
render() {
return (
<TurnatoBar>
<Header />
<GamesSection />
<p style={{... |
46c3049026d690813d8492b6baf2cebe2d99dcda | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.8.7
- 1.9.3
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
| language: ruby
rvm:
- 1.8.7
- 1.9.3
# Rubinius in 1.8 mode on Travis does not work. It complains about st_data_t etc in Xcodeproj.
#- rbx-18mode
- rbx-19mode
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
| Enable Rubinius in 1.9 mode on Travis. | Enable Rubinius in 1.9 mode on Travis.
| YAML | mit | Ashton-W/Core,AdamCampbell/Core,CocoaPods/Core,brianmichel/Core,orta/Core,dacaiguoguogmail/Core,k0nserv/Core,gabro/Core,dnkoutso/Core | yaml | ## Code Before:
language: ruby
rvm:
- 1.8.7
- 1.9.3
install: NOEXEC=skip rake travis:setup
script: bundle exec rake spec
## Instruction:
Enable Rubinius in 1.9 mode on Travis.
## Code After:
language: ruby
rvm:
- 1.8.7
- 1.9.3
# Rubinius in 1.8 mode on Travis does not work. It complains about st_data_t etc ... |
a9b4b0993b353d4992b8ca09ee217808b618af77 | metadata/org.schabi.nxbookmarks.txt | metadata/org.schabi.nxbookmarks.txt | Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end f... | Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summary:A front end f... | Update Nextcloud Bookmarks to 1.1 (2) | Update Nextcloud Bookmarks to 1.1 (2)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Multimedia,Internet
License:MIT
Web Site:https://github.com/theScrabi/OCBookmarks
Source Code:https://github.com/theScrabi/OCBookmarks
Issue Tracker:https://github.com/theScrabi/OCBookmarks/issues
Changelog:https://github.com/theScrabi/OCBookmarks/releases
Auto Name:Nextcloud Bookmarks
Summa... |
eb1fef5627df3869c7d6d4438e3876046c54292e | src/js/prefabs/shipbase.js | src/js/prefabs/shipbase.js | var ShipBase = function (game, x, y, key) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 200;
this.body.c... | var ShipBase = function (game, x, y, key, weapon) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
this.startX = x;
this.startY = y;
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(4... | Add more properties to ShipBase Also added collision functions | Add more properties to ShipBase
Also added collision functions
| JavaScript | mit | opcon/hdyftta,opcon/hdyftta | javascript | ## Code Before:
var ShipBase = function (game, x, y, key) {
//call base constructor
Phaser.Sprite.call(this, game, x, y, key);
//setup physics information
this.game.physics.arcade.enableBody(this);
this.body.drag.set(1000);
this.body.angularDrag = 1000;
this.body.maxVelocity.set(400);
this.body.maxAngular = 2... |
1e651aaa22a35bbcaaa1af4da0e05a674833ebdc | revparse_test.go | revparse_test.go | package git
| package git
import (
"fmt"
"os"
"testing"
)
func TestRevParseSingle(t *testing.T) {
repo := createTestRepo(t)
defer os.RemoveAll(repo.Workdir())
commitId, _ := seedTestRepo(t, repo)
fmt.Println(commitId)
revSpec, err := repo.RevParse("HEAD")
checkFatal(t, err)
checkObject(t, revSpec.From(), commitId)
}
... | Add simple test for `rev-parse HEAD`. | Add simple test for `rev-parse HEAD`.
| Go | mit | libgit2/git2go,orivej/git2go,tiborvass/git2go,treejames/git2go,clns/git2go,orivej/git2go,clearr/git2go,kissthink/git2go,TheDahv/git2go,clearr/git2go,michaeledgar/git2go,ezwiebel/git2go,ezwiebel/git2go,orivej/git2go,TheDahv/git2go,tiborvass/git2go,hwjeong/git2go,libgit2/git2go,clns/git2go,AaronO/git2go,pks-t/git2go,ezwi... | go | ## Code Before:
package git
## Instruction:
Add simple test for `rev-parse HEAD`.
## Code After:
package git
import (
"fmt"
"os"
"testing"
)
func TestRevParseSingle(t *testing.T) {
repo := createTestRepo(t)
defer os.RemoveAll(repo.Workdir())
commitId, _ := seedTestRepo(t, repo)
fmt.Println(commitId)
revSp... |
e544189ad398c515301fc6583baa339bf185876a | site/loadMetadata.js | site/loadMetadata.js | import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const ... | import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split('/')
const ... | Fix location of song info metadata | Fix location of song info metadata
| JavaScript | mit | hacktunes/hacktunes,hacktunes/hacktunes | javascript | ## Code Before:
import { setMetadata } from './actions/metadata'
function _loadMetadata(store) {
const songRequire = require.context('../songs/', true, /(info|song|package)\.json$/)
const metaData = songRequire('./info.json')
metaData.songs = {}
songRequire.keys().forEach(name => {
const parts = name.split... |
3f87166a147847566ea7e282421f8bf74aa0708a | mono.json | mono.json | {
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.5",
"github/jillix/events/v0.1.4",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
| {
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.6",
"github/jillix/events/v0.1.6",
"http://code.jquery.com/ui/1.10.3/jquery-ui.js",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"... | Update to Bind v0.1.6 and Events v0.1.6. Added jQuery UI. | Update to Bind v0.1.6 and Events v0.1.6. Added jQuery UI.
| JSON | mit | jillix/engine-tree | json | ## Code Before:
{
"source": "bitbucket",
"owner": "jillix",
"name": "dms-tree",
"dependencies": [
"/tree.js",
"github/jillix/bind/v0.1.5",
"github/jillix/events/v0.1.4",
"http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
],
"operations": [ ]
}
## Instr... |
dd8e689b8db71859826c717735317f32890dfecf | README.md | README.md | **Outdated :(**
Install
sudo aptitude install mongodb
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo aptitude install texlive
curl http://n... |
Dippa editor is a web-based LaTeX editor. The service is running at <http://dippaeditor.com>.
With Dippa editor, you can create professional looking academic white papers. Dippa editor uses LaTeX for laying out your document, but don't worry, using LaTeX has never been this easy! With the web-based editor you can ski... | Update the old and outdated readme | Update the old and outdated readme | Markdown | mit | rap1ds/dippa,rap1ds/dippa,rap1ds/dippa | markdown | ## Code Before:
**Outdated :(**
Install
sudo aptitude install mongodb
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo aptitude install texliv... |
23b43544fd3b7c2c44272f30fb689fba6b1698a9 | src/components/Place/Place.js | src/components/Place/Place.js | import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
render() {
... | import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
price(n) {
let money... | ADD map AND price to search result display | ADD map AND price to search result display
| JavaScript | mit | Decidr/react-decidr,Decidr/react-decidr,Decidr/react-decidr | javascript | ## Code Before:
import React, { Component } from 'react';
const mapKey = process.env.key;
class Place extends Component {
constructor(props) {
super(props);
// this.state = {
// place: {}
// };
// this.setState({ place: this.props.place })
console.log('Mapkey:', mapKey);
}
... |
219099101ccf541f47b40dd7cfaffbafdf40cbeb | attributes/default.rb | attributes/default.rb | default['gerrit']['version'] = "2.9"
override['gerrit']['war']['download_url'] = "http://gerrit-releases.storage.googleapis.com/gerrit-2.9.war"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']... | default['gerrit']['version'] = "2.9"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['config']['database']['type'] = "MYSQL"
default['gerrit']['config']['database']['database'] = "gerrit"
default['gerrit']['config... | Remove override.. attribute was defined in a role.. | Remove override.. attribute was defined in a role..
| Ruby | apache-2.0 | TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org,TYPO3-cookbooks/site-reviewtypo3org | ruby | ## Code Before:
default['gerrit']['version'] = "2.9"
override['gerrit']['war']['download_url'] = "http://gerrit-releases.storage.googleapis.com/gerrit-2.9.war"
default['git']['hostname'] = "dev.git.typo3.org"
default['git']['hostname'] = "git.typo3.org" if node.chef_environment == "production"
default['gerrit']['conf... |
e1facf9e0689d38b7f6747aecc36511c020f2d51 | packages/tux/src/components/fields/Dropdown.tsx | packages/tux/src/components/fields/Dropdown.tsx | import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | null... | import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValue: string | unde... | Use 'value' instead of 'defaultValue' | Use 'value' instead of 'defaultValue'
| TypeScript | mit | aranja/tux,aranja/tux,aranja/tux | typescript | ## Code Before:
import React, { Component } from 'react'
import { tuxColors, tuxInputStyles } from '../../styles'
interface Dropdown {
id: string
value: string
label: string
helpText: string
dropdownValues: Array<string>
onChange: (e: React.FormEvent<any>) => void
}
export interface State {
selectedValu... |
05a4ff557f4565f8b50efb177af277cb3bc8b446 | .travis.yml | .travis.yml | language: node_js
node_js:
- 0.12
before_install:
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
- cd ~/casperjs
- git checkout tags/1.0.2
- export PATH=$PATH:`pwd`/bin
- cd -
before_script:
- phantomjs --version
- casperjs --version
install:
- npm install
notifications:
slack: tlksio:fNb... | language: node_js
node_js:
- 0.12
install:
- npm install
notifications:
slack: tlksio:fNbJkMIvB9GZKDDjfjZqAzBb
| Remove casper.js, phantomjs seems to be old | Remove casper.js, phantomjs seems to be old
| YAML | mit | tlksio/front,tlksio/front | yaml | ## Code Before:
language: node_js
node_js:
- 0.12
before_install:
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
- cd ~/casperjs
- git checkout tags/1.0.2
- export PATH=$PATH:`pwd`/bin
- cd -
before_script:
- phantomjs --version
- casperjs --version
install:
- npm install
notifications:
s... |
89a6ca0610527258abf8a96c63d322264905a1d3 | ruby/aliases.zsh | ruby/aliases.zsh | alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun' | alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun'
gem-browse-source-url() {
(... | Add alias to browse the source url of a gem | Add alias to browse the source url of a gem
| Shell | mit | ZimbiX/dotfiles,ZimbiX/dotfiles | shell | ## Code Before:
alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias bi='bundle install'
alias be='bundle exec'
alias bu='bundle update'
alias bers='bundle exec rails s'
alias berc='bundle exec rails c'
alias bets='bundle exec thin start'
alias besh='bundle exec shotgun'
## Instruction... |
d34ca8ba76ec51b1cd1a48e557b91ab7fa44afd0 | backend/spec/views/comable/admin/themes/index.slim_spec.rb | backend/spec/views/comable/admin/themes/index.slim_spec.rb | describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
| describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, (Rails::VERSION::MAJOR == 3) ? Comable::Theme.scoped : Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:n... | Fix tests to work in Rails 3.2 | Fix tests to work in Rails 3.2
| Ruby | mit | appirits/comable,appirits/comable,hyoshida/comable,hyoshida/comable,hyoshida/comable,appirits/comable | ruby | ## Code Before:
describe 'comable/admin/themes/index' do
helper Comable::ApplicationHelper
let!(:themes) { create_list(:theme, 2) }
before { assign(:themes, Comable::Theme.all) }
it 'renders a list of themes' do
render
expect(rendered).to include(*themes.map(&:name))
end
end
## Instruction:
Fix te... |
577e3775e120930a5e46b8a8a78b102c6f1579ca | src/travix/commands/PythonCommand.hx | src/travix/commands/PythonCommand.hx | package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure... | package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure... | Fix installation of Python 3 on OSX via brew | Fix installation of Python 3 on OSX via brew | Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix | haxe | ## Code Before:
package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version'... |
2779c49c7fa75c4520d1499872b43092bac0bbda | gpg-init.fish | gpg-init.fish | function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, ... | function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end
# no, it ... | Kill GPG agent before starting a new one | Kill GPG agent before starting a new one
| fish | bsd-3-clause | aapit/fish-shell-functions,aapit/fish-shell-functions | fish | ## Code Before:
function gpg-init
if not begin
# Is the agent running already? Does the agent-info file exist, and if so,
# is there a process with the pid given in the file?
[ -f ~/.gnupg/.gpg-agent-info ]
and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null
end... |
48fb501dd8bd3098eed0a77f35cd366708075b4a | README.md | README.md | What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pull... | What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downloaded.
It pull... | Add info on Laravel dusk | Add info on Laravel dusk
| Markdown | mit | GIANTCRAB/gitlabby-dockerish-laravel | markdown | ## Code Before:
What happens when you Dockerize your Laravel testing environment and throw it at Gitlab CI?
This repository includes several files required to run the Gitlab CI for your Laravel. The Docker container is pre-packaged with Laravel vendor dependecies, which reduces the number of files required to be downl... |
771d58409858015104ddcc1073e010fd0ebb9fd9 | Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js | Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useM... | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '../Utilities/useM... | Add passthroughAnimatedPropsExplicitValues to modern createAnimatedComponent | Add passthroughAnimatedPropsExplicitValues to modern createAnimatedComponent
Summary:
Code almost directly copied from the old implementation of [createAnimatedComponent.js](https://www.internalfb.com/intern/diffusion/FBS/browsefile/master/xplat/js/react-native-github/Libraries/Animated/createAnimatedComponent.js?comm... | JavaScript | mit | pandiaraj44/react-native,janicduplessis/react-native,pandiaraj44/react-native,javache/react-native,facebook/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,facebook/react-native,pandiaraj44/react-native,pandiaraj44/react-native,pandiaraj44/react-native,javache/react-native,facebook/r... | javascript | ## Code Before:
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import useAnimatedProps from './useAnimatedProps';
import useMergeRefs from '.... |
7fd8c44bd36aed172fd14c885c8af8c56bbbc989 | backend/src/main/helm/values-nfs-server-provisioner.yaml | backend/src/main/helm/values-nfs-server-provisioner.yaml | persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (g... | persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (g... | Use dynamic values for nfs resources | Use dynamic values for nfs resources
| YAML | agpl-3.0 | extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind,extendedmind/extendedmind | yaml | ## Code Before:
persistence:
enabled: true
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default ... |
6cab51ff3ed62b14ed1b69ea73f0576f8e61486e | app/aboutDialog.js | app/aboutDialog.js | const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.v... | const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Electron: ${process.v... | Fix about dialog image reference | Fix about dialog image reference
Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@bridiver
| JavaScript | mpl-2.0 | timborden/browser-laptop,manninglucas/browser-laptop,Sh1d0w/browser-laptop,jonathansampson/browser-laptop,luixxiul/browser-laptop,darkdh/browser-laptop,diasdavid/browser-laptop,jonathansampson/browser-laptop,dcposch/browser-laptop,Sh1d0w/browser-laptop,pmkary/braver,dcposch/browser-laptop,diasdavid/browser-laptop,jonat... | javascript | ## Code Before:
const electron = require('electron')
const app = require('electron').app
const dialog = electron.dialog
const Channel = require('./channel')
const path = require('path')
module.exports.showAbout = function () {
dialog.showMessageBox({
title: 'Brave',
message: `Brave: ${app.getVersion()}
Elect... |
b7a09445b447ac8b927c0c1693524d75d463daf1 | src/Backend/Core/Layout/Templates/macros.html.twig | src/Backend/Core/Layout/Templates/macros.html.twig | {% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
... | {% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro required() %}
... | Fix import macro icon in macro infoTooltip | Fix import macro icon in macro infoTooltip
| Twig | mit | riadvice/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,riadvice/forkcms,carakas/forkcms,riadvice/forkcms,jessedobbelaere/forkcms,jeroendesloovere/forkcms,jessedobbelaere/forkcms,justcarakas/forkcms,jonasdekeukelaere/forkcms,bartdc/forkcms,carakas/forkcms,justcarakas/forkcms,sumocoders/forkcms,bartdc/forkcms,jona... | twig | ## Code Before:
{% macro buttonIcon(url, icon, label, buttonType, extra) %}
<a href="{{ url }}" class="btn {{ buttonType|default('btn-default') }}" title="{{ label }}" {{ extra }}>
{% import _self as macro %}
{{ macro.icon(icon) }}
<span class="btn-text">{{ label }}</span>
</a>
{% endmacro %}
{% macro ... |
6dfe0bf11964e4f04d78290190ffd33c52c1b77e | sources/us/nj/statewide.json | sources/us/nj/statewide.json | {
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "http://geodata.state.nj.us/arcgis/rest/services/Features/Addresses_and_Names/MapServer/0",
"websi... | {
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "https://njgin.state.nj.us/download2/Address/ADDR_POINT_NJ_fgdb.zip",
"website": "https://njgin.st... | Use the GDB for New Jersey | Use the GDB for New Jersey
| JSON | bsd-3-clause | tyrasd/openaddresses,sabas/openaddresses,sergiyprotsiv/openaddresses,sabas/openaddresses,tyrasd/openaddresses,orangejulius/openaddresses,openaddresses/openaddresses,astoff/openaddresses,davidchiles/openaddresses,openaddresses/openaddresses,davidchiles/openaddresses,slibby/openaddresses,slibby/openaddresses,sabas/openad... | json | ## Code Before:
{
"coverage": {
"US Census": {
"geoid": "34",
"name": "Morris County",
"state": "New Jersey"
},
"country": "us",
"state": "nj"
},
"data": "http://geodata.state.nj.us/arcgis/rest/services/Features/Addresses_and_Names/MapServe... |
3d70e2c36ee9951abfff74751f64790eed03f17a | fabric/fabric-core/src/main/resources/io/fabric8/internal/karaf_kill.sh | fabric/fabric-core/src/main/resources/io/fabric8/internal/karaf_kill.sh | function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
kill $PID
for i in {1..5};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been successfully st... | function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
$KARAF_HOME/bin/stop
for i in {1..20};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been suc... | Increase the amount of time to wait until a container stops. Kill the container if it doesn't stop gracefully. | Increase the amount of time to wait until a container stops. Kill the container if it doesn't stop gracefully.
| Shell | apache-2.0 | rhuss/fabric8,chirino/fabric8v2,janstey/fabric8,jludvice/fabric8,zmhassan/fabric8,rajdavies/fabric8,jimmidyson/fabric8,christian-posta/fabric8,chirino/fabric8,jimmidyson/fabric8,KurtStam/fabric8,hekonsek/fabric8,zmhassan/fabric8,hekonsek/fabric8,dhirajsb/fabric8,jludvice/fabric8,rnc/fabric8,jimmidyson/fabric8,zmhassan/... | shell | ## Code Before:
function karaf_kill() {
KARAF_HOME=$1
INSTANCES_FILE=$KARAF_HOME/instances/instance.properties
PID=`cat $INSTANCES_FILE | grep "item.0.pid" | awk -F "=" '{print $2}'`
kill $PID
for i in {1..5};
do
if ps -p $PID > /dev/null; then
echo "Fabric has been... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.