commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9edfad2717498c4f405b5ce93e0808e708d780ef | pkgs/applications/networking/instant-messengers/toxic/default.nix | pkgs/applications/networking/instant-messengers/toxic/default.nix | { stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
, libtoxcore, pkgconfig }:
let
version = "b308e19e6b";
date = "20140224";
in
stdenv.mkDerivation rec {
name = "toxic-${date}-${version}";
src = fetchurl {
url = "https://github.com/Tox/toxic/tarball/${version}";
name = "${name}.tar.gz... | { stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig }:
let
version = "7566aa9d26";
date = "20140728";
in
stdenv.mkDerivation rec {
name = "toxic-${date}-${version}";
src = fetchurl {
url = "https://github.com/Tox/toxic/tarball/${... | Update to latest upstream Git master. | toxic: Update to latest upstream Git master.
Unfortunately they've changed their build system to be makefile-only and
they don't seem to include test cases in the CLI anymore, so we needed
to adapt accordingly. Also added freealut and openal to the buildInputs,
in order to allow audio support.
Signed-off-by: aszlig <... | Nix | mit | SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,... | nix | ## Code Before:
{ stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
, libtoxcore, pkgconfig }:
let
version = "b308e19e6b";
date = "20140224";
in
stdenv.mkDerivation rec {
name = "toxic-${date}-${version}";
src = fetchurl {
url = "https://github.com/Tox/toxic/tarball/${version}";
name =... | { stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses
- , libtoxcore, pkgconfig }:
+ , libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig }:
let
- version = "b308e19e6b";
+ version = "7566aa9d26";
- date = "20140224";
? ^^
+ date = "20140728";
? + ^
... | 27 | 0.675 | 9 | 18 |
bdd81fcae7421003b3594e43fe19d8b4978c2bc3 | metadata.rb | metadata.rb | name 'awscreds'
maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
description 'Creates /root/.aws/config from chef-vault'
long_description %(
Loads credentials from chef vault and creates an aws config file (.ini
format) from the loaded credentials. Supports multiple profile... | name 'awscreds'
maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
description 'Creates /root/.aws/config from chef-vault'
long_description %(
Loads credentials from chef vault and creates an aws config file (.ini
format) from the loaded credentials. Supports multiple profile... | Update URLs and add license | Update URLs and add license
| Ruby | apache-2.0 | opscode-cookbooks/awscreds,chef-cookbooks/awscreds,opscode-cookbooks/awscreds,chef-cookbooks/awscreds | ruby | ## Code Before:
name 'awscreds'
maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
description 'Creates /root/.aws/config from chef-vault'
long_description %(
Loads credentials from chef vault and creates an aws config file (.ini
format) from the loaded credentials. Supports ... | name 'awscreds'
maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
description 'Creates /root/.aws/config from chef-vault'
long_description %(
Loads credentials from chef vault and creates an aws config file (.ini
format) from the loaded credentials. Supports ... | 4 | 0.266667 | 2 | 2 |
2f9f9ceaf5843fb411445e074ea32ed7f679b846 | week-4/count-between/my_solution.rb | week-4/count-between/my_solution.rb |
def count_between(list_of_integers, lower_bound, upper_bound)
# Your code goes here!
sum = 0
if (list_of_integers.length == 0) || (upper_bound < lower_bound)
return 0
elsif (lower_bound == upper_bound)
return list_of_integers.length
else
list_of_integers.each do |x|
if (x >= lower_bound) &&... |
=begin Initial Solution
def count_between(list_of_integers, lower_bound, upper_bound)
# Your code goes here!
sum = 0
if (list_of_integers.length == 0) || (upper_bound < lower_bound)
return 0
elsif (lower_bound == upper_bound)
return list_of_integers.length
else
list_of_integers.each do |x|
... | Add refactored count between solution | Add refactored count between solution
| Ruby | mit | espezua/phase-0,espezua/phase-0,espezua/phase-0 | ruby | ## Code Before:
def count_between(list_of_integers, lower_bound, upper_bound)
# Your code goes here!
sum = 0
if (list_of_integers.length == 0) || (upper_bound < lower_bound)
return 0
elsif (lower_bound == upper_bound)
return list_of_integers.length
else
list_of_integers.each do |x|
if (x >=... |
+ =begin Initial Solution
def count_between(list_of_integers, lower_bound, upper_bound)
# Your code goes here!
sum = 0
if (list_of_integers.length == 0) || (upper_bound < lower_bound)
return 0
elsif (lower_bound == upper_bound)
return list_of_integers.length
else
list_of_integ... | 16 | 0.941176 | 16 | 0 |
0c03820bec06e044dc8d9694686efe20d5140fdc | renderer-process/matchTimestamps.js | renderer-process/matchTimestamps.js | const matchTimestamps = function (inputText) {
const lengthOfDelimiter = 1 // Have to advance past/before the opening/closing brackets
let bracketPattern = /\[(\d{1,2}[:.]){1,3}\d{2}\]/g
let match = bracketPattern.exec(inputText)
let matches = []
let startingIndex
let matchLength
while (match !== null) {... | const matchTimestamps = function (inputText) {
const lengthOfDelimiter = 1 // Have to advance past/before the opening/closing brackets
let bracketPattern = /\[(\d|:|.)+\]/g
let match = bracketPattern.exec(inputText)
let matches = []
let startingIndex
let matchLength
while (match !== null) {
startingI... | Simplify the pattern for matching timestamps | Simplify the pattern for matching timestamps
This new pattern makes less strict assumptions about the structure of the timestamp. But, it also shouldn't accidentally pick up pure numbers (e.g., [22]), nor will it pick up anything with alphanumeric characters.
| JavaScript | agpl-3.0 | briandk/transcriptase,briandk/transcriptase | javascript | ## Code Before:
const matchTimestamps = function (inputText) {
const lengthOfDelimiter = 1 // Have to advance past/before the opening/closing brackets
let bracketPattern = /\[(\d{1,2}[:.]){1,3}\d{2}\]/g
let match = bracketPattern.exec(inputText)
let matches = []
let startingIndex
let matchLength
while (m... | const matchTimestamps = function (inputText) {
const lengthOfDelimiter = 1 // Have to advance past/before the opening/closing brackets
- let bracketPattern = /\[(\d{1,2}[:.]){1,3}\d{2}\]/g
? ^^^^^^ - ^^^^^^^^^^
+ let bracketPattern = /\[(\d|:|.)+\]/g
? ... | 2 | 0.095238 | 1 | 1 |
adb7f8b96ed421488f067dcdf042645d4ce41b6d | webapp/app/controllers/touch_event_filter.rb | webapp/app/controllers/touch_event_filter.rb | class TouchEventFilter
def self.filter(controller)
controller.instance_variable_get("@event").save
end
end
| class TouchEventFilter
def self.filter(controller)
touch controller.instance_variable_get("@event")
end
def self.touch(object, attribute = nil)
current_time = Time.current
if attribute
object.write_attribute(attribute, current_time)
else
object.write_attribute('updated_at', current_t... | Fix TouchEventFilter to actually update the updated_at timestamp on the event record | Fix TouchEventFilter to actually update the updated_at timestamp on the event record
| Ruby | agpl-3.0 | csinitiative/trisano,csinitiative/trisano,csinitiative/trisano,csinitiative/trisano,csinitiative/trisano | ruby | ## Code Before:
class TouchEventFilter
def self.filter(controller)
controller.instance_variable_get("@event").save
end
end
## Instruction:
Fix TouchEventFilter to actually update the updated_at timestamp on the event record
## Code After:
class TouchEventFilter
def self.filter(controller)
touch controll... | class TouchEventFilter
def self.filter(controller)
- controller.instance_variable_get("@event").save
? -----
+ touch controller.instance_variable_get("@event")
? ++++++
+ end
+
+ def self.touch(object, attribute = nil)
+ current_time = Time.curre... | 15 | 3 | 14 | 1 |
36ebcb5fe592afce6394ab270f6f8dcb75e1df19 | src/com/opengamma/transport/CollectingFudgeMessageReceiver.java | src/com/opengamma/transport/CollectingFudgeMessageReceiver.java | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
import org.fudgemsg.FudgeContext;
import org.fudgemsg.FudgeMsgEnvelope;
/**
* Collects all Fudge message envelopes in an array for la... | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
impor... | Use a blocking queue rather than a list so that tests can wait for a message to have arrived. | Use a blocking queue rather than a list so that tests can wait for a message to have arrived.
| Java | apache-2.0 | nssales/OG-Platform,jeorme/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,ChinaQuants/OG-Platform,nssales/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,McLeodMoores/starling,codeaudit/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,jerome79/OG-Platform,jeorme/OG-Platform,jeor... | java | ## Code Before:
/**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
import org.fudgemsg.FudgeContext;
import org.fudgemsg.FudgeMsgEnvelope;
/**
* Collects all Fudge message envelopes in... | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
+ import java.util.concurrent.BlockingQueue;
+ import java.util.concurrent.LinkedBlockingQueue;
+ import java.util.con... | 20 | 0.555556 | 15 | 5 |
569f6d4dd3a34738eb635859b8f2cc3500a232d5 | buddybuild_release_notes.txt | buddybuild_release_notes.txt | * Customização do mapa e fontes
* Visualização dos bicicletários no mapa
* Página de detalhes do bicicletário com foto, tags, nota, tipo e público/restrito
* Expansão da foto do bicicletário
* Busca por endereço
* Como chegar redirecionando pro google maps.
* Hamburger menu (nada funcional ainda)
* Botão de "minha loca... | * Customização do mapa e fontes
* Visualização dos bicicletários no mapa
* Página de detalhes do bicicletário com foto, tags, nota, tipo e público/restrito
* Expansão da foto do bicicletário
* Busca por endereço
* Como chegar redirecionando pro google maps.
* Hamburger menu (nada funcional ainda)
* Botão de "minha loca... | Add changes to buddybuild release notes. | Add changes to buddybuild release notes.
| Text | mit | EduardoVernier/bikedeboa-android | text | ## Code Before:
* Customização do mapa e fontes
* Visualização dos bicicletários no mapa
* Página de detalhes do bicicletário com foto, tags, nota, tipo e público/restrito
* Expansão da foto do bicicletário
* Busca por endereço
* Como chegar redirecionando pro google maps.
* Hamburger menu (nada funcional ainda)
* Botã... | * Customização do mapa e fontes
* Visualização dos bicicletários no mapa
* Página de detalhes do bicicletário com foto, tags, nota, tipo e público/restrito
* Expansão da foto do bicicletário
* Busca por endereço
* Como chegar redirecionando pro google maps.
* Hamburger menu (nada funcional ainda)
* Botã... | 1 | 0.111111 | 1 | 0 |
8119e3bd379a8cbacc895487463fb24a0048dd16 | app/views/gobierto_admin/gobierto_people/configuration/_navigation.html.erb | app/views/gobierto_admin/gobierto_people/configuration/_navigation.html.erb | <div class="admin_breadcrumb">
<%= link_to t("gobierto_admin.welcome.index.title"), admin_root_path %> »
<%= link_to t("gobierto_admin.gobierto_people.people.index.title"), admin_people_people_path %> »
<%= link_to t("gobierto_admin.gobierto_people.configuration.title"), admin_people_configuration_political_group... | <div class="admin_breadcrumb">
<%= link_to t("gobierto_admin.welcome.index.title"), admin_root_path %> »
<%= link_to t("gobierto_admin.gobierto_people.people.index.title"), admin_people_people_path %> »
<%= link_to t("gobierto_admin.gobierto_people.configuration.title"), admin_people_configuration_political_group... | Make preferences tab in admin/people/configuration/settings appear first | Make preferences tab in admin/people/configuration/settings appear first
| HTML+ERB | agpl-3.0 | PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev | html+erb | ## Code Before:
<div class="admin_breadcrumb">
<%= link_to t("gobierto_admin.welcome.index.title"), admin_root_path %> »
<%= link_to t("gobierto_admin.gobierto_people.people.index.title"), admin_people_people_path %> »
<%= link_to t("gobierto_admin.gobierto_people.configuration.title"), admin_people_configuration... | <div class="admin_breadcrumb">
<%= link_to t("gobierto_admin.welcome.index.title"), admin_root_path %> »
<%= link_to t("gobierto_admin.gobierto_people.people.index.title"), admin_people_people_path %> »
<%= link_to t("gobierto_admin.gobierto_people.configuration.title"), admin_people_configuration_politic... | 6 | 0.26087 | 3 | 3 |
41f5cf796910ac2037e2d98a28c0aa7e293c6139 | assets/css/scss/_freebies.scss | assets/css/scss/_freebies.scss | /*
Start freebies.scss
* Date Created: 29/12/2015
* Last Modified: 29/12/2015
*/
body {
&.freebies-page {
}
}
| /*
Start freebies.scss
* Date Created: 29/12/2015
* Last Modified: 29/12/2015
*/
body {
&.freebies-page {
.site-content {
margin: 100px auto 0 auto;
max-width: 1379px;
width: $full;
}
}
}
.freebies-page {
.freebies-section {
width: $full;
@extend .text-ce... | Add basic styles to freebies page | Add basic styles to freebies page
| SCSS | mit | Whizkydee/webtwic,Whizkydee/webtwic,webtwic/webtwic.github.io,webtwic/webtwic.github.io | scss | ## Code Before:
/*
Start freebies.scss
* Date Created: 29/12/2015
* Last Modified: 29/12/2015
*/
body {
&.freebies-page {
}
}
## Instruction:
Add basic styles to freebies page
## Code After:
/*
Start freebies.scss
* Date Created: 29/12/2015
* Last Modified: 29/12/2015
*/
body {
&.freebies-page {
... | /*
Start freebies.scss
* Date Created: 29/12/2015
* Last Modified: 29/12/2015
*/
body {
&.freebies-page {
-
+ .site-content {
+ margin: 100px auto 0 auto;
+ max-width: 1379px;
+ width: $full;
+ }
}
}
+ .freebies-page {
+ .freebies-section... | 13 | 0.866667 | 12 | 1 |
b5bcbf48e129864891f3cc5fc3ef7878cac91b3a | stage.sh | stage.sh |
DATE=`date "+%Y-%m-%d"`
TARGET=saw-alpha-${DATE}
NM=`uname`
mkdir -p ${TARGET}/bin
mkdir -p ${TARGET}/doc
if [ "${OS}" == "Windows_NT" ]; then
EXEDIR=windows
elif [ "${NM}" == "Darwin" ]; then
EXEDIR=macosx
else
EXEDIR=linux
fi
echo Staging ...
strip build/bin/*
cp deps/abcBridge/abc/copyright.txt ... |
DATE=`date "+%Y-%m-%d"`
TARGET=saw-alpha-${DATE}
NM=`uname`
mkdir -p ${TARGET}/bin
mkdir -p ${TARGET}/doc
if [ "${OS}" == "Windows_NT" ]; then
EXEDIR=windows
elif [ "${NM}" == "Darwin" ]; then
EXEDIR=macosx
else
EXEDIR=linux
fi
echo Staging ...
strip build/bin/*
cp deps/abcBridge/abc/copyright.txt ... | Include ECDSA proof in binary tarballs. | Include ECDSA proof in binary tarballs. | Shell | bsd-3-clause | GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script | shell | ## Code Before:
DATE=`date "+%Y-%m-%d"`
TARGET=saw-alpha-${DATE}
NM=`uname`
mkdir -p ${TARGET}/bin
mkdir -p ${TARGET}/doc
if [ "${OS}" == "Windows_NT" ]; then
EXEDIR=windows
elif [ "${NM}" == "Darwin" ]; then
EXEDIR=macosx
else
EXEDIR=linux
fi
echo Staging ...
strip build/bin/*
cp deps/abcBridge/abc/copyri... |
DATE=`date "+%Y-%m-%d"`
TARGET=saw-alpha-${DATE}
NM=`uname`
mkdir -p ${TARGET}/bin
mkdir -p ${TARGET}/doc
if [ "${OS}" == "Windows_NT" ]; then
EXEDIR=windows
elif [ "${NM}" == "Darwin" ]; then
EXEDIR=macosx
else
EXEDIR=linux
fi
echo Staging ...
strip build/bin/*
... | 7 | 0.194444 | 5 | 2 |
1a01c15560ce6e9dbbf2843a29008e3e76b2c3a5 | requirements.txt | requirements.txt | amqp==2.1.4
appdirs==1.4.0
asgi-redis==1.0.0
asgiref==1.0.0
autobahn==0.17.1
billiard==3.5.0.2
celery==4.0.2
channels==1.0.2
constantly==15.1.0
daphne==1.0.1
Django==1.10.5
django-auth-ldap==1.2.8
incremental==16.10.1
kombu==4.0.2
msgpack-python==0.4.8
packaging==16.8
psycopg2==2.6.2
pyldap==2.4.28
pyparsing==2.1.10
py... | amqp==2.1.4
appdirs==1.4.0
asgi-redis==1.0.0
asgiref==1.0.0
autobahn==0.17.1
Babel==2.3.4
billiard==3.5.0.2
celery==4.0.2
channels==1.0.2
constantly==15.1.0
daphne==1.0.1
Django==1.10.5
django-auth-ldap==1.2.8
flower==0.9.1
incremental==16.10.1
kombu==4.0.2
msgpack-python==0.4.8
packaging==16.8
psycopg2==2.6.2
pyldap==... | Add flower for worker monitoring | Add flower for worker monitoring
| Text | apache-2.0 | ritstudentgovernment/PawPrints,ritstudentgovernment/PawPrints,ritstudentgovernment/PawPrints,ritstudentgovernment/PawPrints | text | ## Code Before:
amqp==2.1.4
appdirs==1.4.0
asgi-redis==1.0.0
asgiref==1.0.0
autobahn==0.17.1
billiard==3.5.0.2
celery==4.0.2
channels==1.0.2
constantly==15.1.0
daphne==1.0.1
Django==1.10.5
django-auth-ldap==1.2.8
incremental==16.10.1
kombu==4.0.2
msgpack-python==0.4.8
packaging==16.8
psycopg2==2.6.2
pyldap==2.4.28
pypa... | amqp==2.1.4
appdirs==1.4.0
asgi-redis==1.0.0
asgiref==1.0.0
autobahn==0.17.1
+ Babel==2.3.4
billiard==3.5.0.2
celery==4.0.2
channels==1.0.2
constantly==15.1.0
daphne==1.0.1
Django==1.10.5
django-auth-ldap==1.2.8
+ flower==0.9.1
incremental==16.10.1
kombu==4.0.2
msgpack-python==0.4.8
pack... | 3 | 0.107143 | 3 | 0 |
dc0842fd7cca71f2e54969b18d45376a4acafc48 | metadata/net.gsantner.markor.txt | metadata/net.gsantner.markor.txt | Categories:Writing
License:MIT
Web Site:https://github.com/gsantner/markor/blob/HEAD/README.md
Source Code:https://github.com/gsantner/markor
Issue Tracker:https://github.com/gsantner/markor/issues
Changelog:https://github.com/gsantner/markor/blob/HEAD/CHANGELOG.md
Donate:https://gsantner.github.io/#donate
Bitcoin:1B9Z... | Categories:Writing
License:MIT
Web Site:https://github.com/gsantner/markor/blob/HEAD/README.md
Source Code:https://github.com/gsantner/markor
Issue Tracker:https://github.com/gsantner/markor/issues
Changelog:https://github.com/gsantner/markor/blob/HEAD/CHANGELOG.md
Donate:https://gsantner.github.io/#donate
Bitcoin:1B9Z... | Update Markor to 0.1.1 (2) | Update Markor to 0.1.1 (2)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Writing
License:MIT
Web Site:https://github.com/gsantner/markor/blob/HEAD/README.md
Source Code:https://github.com/gsantner/markor
Issue Tracker:https://github.com/gsantner/markor/issues
Changelog:https://github.com/gsantner/markor/blob/HEAD/CHANGELOG.md
Donate:https://gsantner.github.io/#don... | Categories:Writing
License:MIT
Web Site:https://github.com/gsantner/markor/blob/HEAD/README.md
Source Code:https://github.com/gsantner/markor
Issue Tracker:https://github.com/gsantner/markor/issues
Changelog:https://github.com/gsantner/markor/blob/HEAD/CHANGELOG.md
Donate:https://gsantner.github.io/#donat... | 10 | 0.357143 | 8 | 2 |
1b8fb69c19a7a0bb7b4ad49355128a1aa21792c4 | admeshgui.rb | admeshgui.rb | class Admeshgui < Formula
homepage "https://github.com/vyvledav/ADMeshGUI"
head "https://github.com/vyvledav/ADMeshGUI.git"
env :std
depends_on "admesh"
depends_on "stlsplit"
depends_on "qt5"
depends_on "gettext"
def install
system "qmake", "LIBS+=-L#{HOMEBREW_PREFIX}/opt/admesh/lib -L#{HOMEBREW_... | class Admeshgui < Formula
homepage "https://github.com/vyvledav/ADMeshGUI"
head "https://github.com/vyvledav/ADMeshGUI.git"
env :std
depends_on "admesh"
depends_on "stlsplit"
depends_on "qt5"
depends_on "gettext"
def install
system "qmake", "LIBS+=-L#{HOMEBREW_PREFIX}/opt/admesh/lib -L#{HOMEBREW_... | Rename the app bundle to camel case | Rename the app bundle to camel case
| Ruby | bsd-2-clause | admesh/homebrew-admesh | ruby | ## Code Before:
class Admeshgui < Formula
homepage "https://github.com/vyvledav/ADMeshGUI"
head "https://github.com/vyvledav/ADMeshGUI.git"
env :std
depends_on "admesh"
depends_on "stlsplit"
depends_on "qt5"
depends_on "gettext"
def install
system "qmake", "LIBS+=-L#{HOMEBREW_PREFIX}/opt/admesh/l... | class Admeshgui < Formula
homepage "https://github.com/vyvledav/ADMeshGUI"
head "https://github.com/vyvledav/ADMeshGUI.git"
env :std
depends_on "admesh"
depends_on "stlsplit"
depends_on "qt5"
depends_on "gettext"
def install
system "qmake", "LIBS+=-L#{HOMEBREW_PREFIX}/op... | 4 | 0.173913 | 2 | 2 |
bfe216a204a7256940a239fc8a1a3c9c57bab49c | composer.json | composer.json | {
"name": "mandango/mandango-behaviors",
"description": "Bahaviors for Mandango, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB",
"homepage": "http://mandango.org/",
"keywords": ["mandango","behaviors"],
"type": "library",
"license": "MIT",
"authors": [
... | {
"name": "mandango/mandango-behaviors",
"description": "Bahaviors for Mandango, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB",
"homepage": "http://mandango.org/",
"keywords": ["mandango","behaviors"],
"type": "library",
"license": "MIT",
"authors": [
... | Use a higher version of mandango. | Use a higher version of mandango.
| JSON | mit | whiteoctober/mandango-behaviors,whiteoctober/mandango-behaviors | json | ## Code Before:
{
"name": "mandango/mandango-behaviors",
"description": "Bahaviors for Mandango, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB",
"homepage": "http://mandango.org/",
"keywords": ["mandango","behaviors"],
"type": "library",
"license": "MIT",
... | {
"name": "mandango/mandango-behaviors",
"description": "Bahaviors for Mandango, the Simple, powerful and ultrafast Object Document Mapper (ODM) for PHP and MongoDB",
"homepage": "http://mandango.org/",
"keywords": ["mandango","behaviors"],
"type": "library",
"license": "MIT",
... | 2 | 0.090909 | 1 | 1 |
e5f8efbd43362f0cc0acf0a98594c293944935fd | .travis.yml | .travis.yml | sudo: false
language: python
python:
- "2.7"
- "3.4"
env:
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=1.9 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.9 DJANGO_SET... | sudo: false
language: python
python:
- "2.7"
- "3.4"
env:
- DJANGO=1.11.13 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.11.13 DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=1.11.13 DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=2.0.6 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=2.0.6 ... | Update Django versions in Travis config | Update Django versions in Travis config
| YAML | mit | Tivix/django-cron | yaml | ## Code Before:
sudo: false
language: python
python:
- "2.7"
- "3.4"
env:
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=1.9 DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANG... | sudo: false
language: python
python:
- "2.7"
- "3.4"
env:
- - DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_sqllite'
- - DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_postgres'
- - DJANGO=1.8.7 DJANGO_SETTINGS_MODULE='settings_mysql'
- - DJANGO=1.9 DJANGO_SETTINGS_MODULE='settings_sqllite'
- -... | 15 | 0.517241 | 6 | 9 |
fe98809bc006d165d7681a6a9b5411ebc0c2caf2 | app/views/welcome/index.html.erb | app/views/welcome/index.html.erb | <h1 id="wak">wak</h1>
<img id="wak-img" src="/assets/gunther.png" alt="Gunther from Adventure Time">
| <h1 id="wak">wak</h1>
<%= image_tag 'gunther.png',
id: 'wak-img',
alt: 'Gunther from Adventure Time' %>
| Fix declaration of image to use asset helper | Fix declaration of image to use asset helper
| HTML+ERB | mit | mgarbacz/existential.io | html+erb | ## Code Before:
<h1 id="wak">wak</h1>
<img id="wak-img" src="/assets/gunther.png" alt="Gunther from Adventure Time">
## Instruction:
Fix declaration of image to use asset helper
## Code After:
<h1 id="wak">wak</h1>
<%= image_tag 'gunther.png',
id: 'wak-img',
alt: 'Gunther from Adventure Time' %>
| <h1 id="wak">wak</h1>
- <img id="wak-img" src="/assets/gunther.png" alt="Gunther from Adventure Time">
+ <%= image_tag 'gunther.png',
+ id: 'wak-img',
+ alt: 'Gunther from Adventure Time' %> | 4 | 2 | 3 | 1 |
d55c4f15d2f4ffc4972271bd589b188ddf66a0b7 | .travis.yml | .travis.yml | language: java
before_install:
- git clone https://github.com/ivanceras/commons.git
- cd commons
- mvn clean install
| language: java
before_install:
- git clone https://github.com/ivanceras/parent.git
- cd parent
- mvn clean install
- cd ../
- git clone https://github.com/ivanceras/commons.git
- cd commons
- mvn clean install
| Put back both dependency checkout to have a succesfull build | Put back both dependency checkout to have a succesfull build | YAML | apache-2.0 | ivanceras/fluentsql | yaml | ## Code Before:
language: java
before_install:
- git clone https://github.com/ivanceras/commons.git
- cd commons
- mvn clean install
## Instruction:
Put back both dependency checkout to have a succesfull build
## Code After:
language: java
before_install:
- git clone https://github.com/ivanceras/parent.git
- cd... | language: java
before_install:
+ - git clone https://github.com/ivanceras/parent.git
+ - cd parent
+ - mvn clean install
+ - cd ../
- git clone https://github.com/ivanceras/commons.git
- cd commons
- mvn clean install | 4 | 0.666667 | 4 | 0 |
c265f3a24ba26800a15ddf54ad3aa7515695fb3f | app/__init__.py | app/__init__.py | from flask import Flask
from .extensions import db
from . import views
def create_app(config):
""" Create a Flask App base on a config obejct. """
app = Flask(__name__)
app.config.from_object(config)
register_extensions(app)
register_views(app)
# @app.route("/")
# def index():
# ... | from flask import Flask
from flask_user import UserManager
from . import views
from .extensions import db, mail, toolbar
from .models import DataStoreAdapter, UserModel
def create_app(config):
""" Create a Flask App base on a config obejct. """
app = Flask(__name__)
app.config.from_object(config)
reg... | Update app init to user flask user, mail and toolbar ext | Update app init to user flask user, mail and toolbar ext
| Python | mit | oldani/nanodegree-blog,oldani/nanodegree-blog,oldani/nanodegree-blog | python | ## Code Before:
from flask import Flask
from .extensions import db
from . import views
def create_app(config):
""" Create a Flask App base on a config obejct. """
app = Flask(__name__)
app.config.from_object(config)
register_extensions(app)
register_views(app)
# @app.route("/")
# def ind... | from flask import Flask
- from .extensions import db
+ from flask_user import UserManager
from . import views
+ from .extensions import db, mail, toolbar
+ from .models import DataStoreAdapter, UserModel
def create_app(config):
""" Create a Flask App base on a config obejct. """
app = Flask(_... | 15 | 0.517241 | 10 | 5 |
05b34109a0b63ac0e1e4d3c1d0b26aa9f4fb29a6 | apps/app_sample.json | apps/app_sample.json | {
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
"use_keyless": true,
"version_data": {
"not_versioned": true,
"versions": {... | {
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
"use_keyless": false,
"version_data": {
"not_versioned": true,
"versions": ... | Use cp_dynamic_handler in sample API spec | Use cp_dynamic_handler in sample API spec
| JSON | mpl-2.0 | nebolsin/tyk,nebolsin/tyk,nebolsin/tyk,lonelycode/tyk,lonelycode/tyk,nebolsin/tyk,mvdan/tyk,nebolsin/tyk,mvdan/tyk,lonelycode/tyk,mvdan/tyk,nebolsin/tyk,mvdan/tyk,mvdan/tyk,nebolsin/tyk,nebolsin/tyk,mvdan/tyk,mvdan/tyk,mvdan/tyk | json | ## Code Before:
{
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
"use_keyless": true,
"version_data": {
"not_versioned": true,
... | {
"name": "Tyk Test API",
"api_id": "1",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"auth": {
"auth_header_name": "authorization"
},
- "use_keyless": true,
? ^^^
+ "use_keyless": fal... | 15 | 0.294118 | 13 | 2 |
9660fb734ecf2ad2c181eba790cdd2ddc9ed423e | cyder/core/system/forms.py | cyder/core/system/forms.py | from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV
class SystemForm(forms.ModelForm):
class Meta:
model = System
class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
... | from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV
class SystemForm(forms.ModelForm):
class Meta:
model = System
class ExtendedSystemForm(forms.ModelForm, UsabilityFormMixin):
... | Fix system form interface_type choices | Fix system form interface_type choices
| Python | bsd-3-clause | murrown/cyder,drkitty/cyder,OSU-Net/cyder,akeym/cyder,murrown/cyder,OSU-Net/cyder,murrown/cyder,akeym/cyder,murrown/cyder,drkitty/cyder,zeeman/cyder,zeeman/cyder,OSU-Net/cyder,akeym/cyder,zeeman/cyder,OSU-Net/cyder,drkitty/cyder,akeym/cyder,drkitty/cyder,zeeman/cyder | python | ## Code Before:
from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV
class SystemForm(forms.ModelForm):
class Meta:
model = System
class ExtendedSystemForm(forms.ModelForm, Usabilit... | from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.core.system.models import System, SystemAV
class SystemForm(forms.ModelForm):
class Meta:
model = System
class ExtendedSystemForm(forms.ModelFo... | 4 | 0.166667 | 2 | 2 |
96340b3829ba8b7412e30813ce281ded29abd651 | python/getting_started/readme.md | python/getting_started/readme.md |
* example of importing a module in python
* from datetime import datetime
* now = datetime.now()
* print now.year
* print now.month
* print now.day
* from the above example we import into the the symbol datetime the module or package datetime
* in general we can write
> from module_name i... |
* example of importing a module in python
* from datetime import datetime
* now = datetime.now()
* print now.year
* print now.month
* print now.day
* from the above example we import into the the symbol datetime the module or package datetime
* in general we can write
> from module_name i... | Fix a image link typo | Fix a image link typo
| Markdown | mit | calvinsettachatgul/athena,calvinsettachatgul/athena,calvinsettachatgul/athena,calvinsettachatgul/athena,calvinsettachatgul/athena | markdown | ## Code Before:
* example of importing a module in python
* from datetime import datetime
* now = datetime.now()
* print now.year
* print now.month
* print now.day
* from the above example we import into the the symbol datetime the module or package datetime
* in general we can write
> fr... |
* example of importing a module in python
* from datetime import datetime
* now = datetime.now()
* print now.year
* print now.month
* print now.day
* from the above example we import into the the symbol datetime the module or package datetime
* in general we can w... | 2 | 0.060606 | 1 | 1 |
4e9511221b3057f4d529c4f095743bf49cb59938 | http4k-core/src/main/kotlin/org/http4k/filter/ResponseFilters.kt | http4k-core/src/main/kotlin/org/http4k/filter/ResponseFilters.kt | package org.http4k.filter
import org.http4k.core.Filter
import org.http4k.core.Request
import org.http4k.core.Response
import java.time.Clock
import java.time.Duration
import java.time.Duration.between
object ResponseFilters {
/**
* Intercept the response after it is sent to the next service.
*/
fu... | package org.http4k.filter
import org.http4k.core.Filter
import org.http4k.core.Request
import org.http4k.core.Response
import java.time.Clock
import java.time.Duration
import java.time.Duration.between
object ResponseFilters {
/**
* Intercept the response after it is sent to the next service.
*/
fu... | Add default system clock to ReportLatency | Add default system clock to ReportLatency
| Kotlin | apache-2.0 | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,grover-ws-1/http4k | kotlin | ## Code Before:
package org.http4k.filter
import org.http4k.core.Filter
import org.http4k.core.Request
import org.http4k.core.Response
import java.time.Clock
import java.time.Duration
import java.time.Duration.between
object ResponseFilters {
/**
* Intercept the response after it is sent to the next service... | package org.http4k.filter
import org.http4k.core.Filter
import org.http4k.core.Request
import org.http4k.core.Response
import java.time.Clock
import java.time.Duration
import java.time.Duration.between
object ResponseFilters {
/**
* Intercept the response after it is sent to the ne... | 2 | 0.055556 | 1 | 1 |
95529efca6a2e3c3544aeb306aaf62a02f2f5408 | primes.py | primes.py | import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beein... | import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums... | Make Python code equivalent to Ruby | Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...
| Python | mit | oliworx/chartbench,oliworx/chartbench,oliworx/chartbench,oliworx/chartbench,oliworx/chartbench | python | ## Code Before:
import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False ... | + import array
+ import math
import sys
- Max=int(sys.argv[1]) # get Max from command line args
- P = {x: True for x in range(2,Max)} # first assume numbers are prime
- for i in range(2, int(Max** (0.5))): # until square root of Max
- if P[i]: #
- for j in range(i*i, Max, i): # mark all multiples of... | 26 | 1.857143 | 15 | 11 |
aa25d08c3df65862671fbf54b57214cb154eb6dc | phpcs.xml | phpcs.xml | <?xml version="1.0"?>
<ruleset name="Site Kit by Google Project Rules">
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<!-- Forget about file names -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Use correct textdomain -->
<rule ref="WordPress.WP.I18n"... | <?xml version="1.0"?>
<ruleset name="Site Kit by Google Project Rules">
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<!-- Forget about file names -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Use correct textdomain -->
<rule ref="WordPress.WP.I18n"... | Exclude third-party directory from PHPCodeSniffer. | Exclude third-party directory from PHPCodeSniffer.
| XML | apache-2.0 | google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp | xml | ## Code Before:
<?xml version="1.0"?>
<ruleset name="Site Kit by Google Project Rules">
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<!-- Forget about file names -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Use correct textdomain -->
<rule ref="Wo... | <?xml version="1.0"?>
<ruleset name="Site Kit by Google Project Rules">
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<!-- Forget about file names -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Use correct textdomain -->
<... | 1 | 0.025 | 1 | 0 |
e4d06cf4121bc9e1a1f9635e159187b8bed1b2ee | pyalysis/analysers/raw.py | pyalysis/analysers/raw.py | import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLong
class LineAnalyser(object):
"""
Line-level analyser of Python source code.
"""
on_analyse = Signal()
on_line = Signal()
def __init__(self, module):
... | import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLong
class LineAnalyser(object):
"""
Line-level analyser of Python source code.
"""
on_analyse = Signal()
on_line = Signal()
def __init__(self, module):
... | Fix location of line length check | Fix location of line length check
| Python | bsd-3-clause | DasIch/pyalysis,DasIch/pyalysis | python | ## Code Before:
import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLong
class LineAnalyser(object):
"""
Line-level analyser of Python source code.
"""
on_analyse = Signal()
on_line = Signal()
def __init__(self, ... | import codecs
from blinker import Signal
from pyalysis.utils import detect_encoding, Location
from pyalysis.warnings import LineTooLong
class LineAnalyser(object):
"""
Line-level analyser of Python source code.
"""
on_analyse = Signal()
on_line = Signal()
def... | 11 | 0.22449 | 5 | 6 |
c855bf43c9119307e13096ad29647cc721018ad5 | collections/Keys.js | collections/Keys.js | Keys = new Mongo.Collection("keys");
KeySchema = new SimpleSchema({
keyID: {
type: Number,
label: "Key ID",
min: 0
},
vCode: {
type: String,
label: "Verification Code",
regEx: /^[0-9a-zA-Z]+$/,
custom: function() {
if (this.field("keyID").isSet === false) return "keyIDMissing";
... | Keys = new Mongo.Collection("keys");
StatusSchema = new SimpleSchema({
ok: {
type: Boolean,
optional: true
},
reasons: {
type: [String],
optional: true
},
lastChecked: {
type: Date,
optional: true
},
error: {
type: String,
optional: true
}... | Add createdAt prop and status object to schema | Add createdAt prop and status object to schema
| JavaScript | mit | eve-apps/spaicheck,eve-apps/spaicheck | javascript | ## Code Before:
Keys = new Mongo.Collection("keys");
KeySchema = new SimpleSchema({
keyID: {
type: Number,
label: "Key ID",
min: 0
},
vCode: {
type: String,
label: "Verification Code",
regEx: /^[0-9a-zA-Z]+$/,
custom: function() {
if (this.field("keyID").isSet === false) return ... | Keys = new Mongo.Collection("keys");
+
+ StatusSchema = new SimpleSchema({
+ ok: {
+ type: Boolean,
+ optional: true
+ },
+ reasons: {
+ type: [String],
+ optional: true
+ },
+ lastChecked: {
+ type: Date,
+ optional: true
+ },
+ error: {
+ type: ... | 46 | 1.4375 | 41 | 5 |
a6da9426947f5aa1bbff88cb68e6b495929740f7 | .travis.yml | .travis.yml | language: go
go:
- tip
before_install:
- git clone git://github.com/hcatlin/libsass.git
- cd libsass
- autoreconf -i
- ./configure
- make && make shared && sudo make install && sudo make install-shared
- sudo cp sass_interface.h /usr/include/
- sudo cp sass.h /usr/local/include/
- cd ..
s... | language: go
go:
- tip
before_install:
- git clone git://github.com/hcatlin/libsass.git
- cd libsass
- autoreconf -i
- ./configure
- make && sudo make install
- sudo cp sass_interface.h /usr/include/
- sudo cp sass.h /usr/local/include/
- cd ..
script:
- go test
- go build
| Use unix style line endings | Use unix style line endings
| YAML | mit | vinhhrv/go-sass | yaml | ## Code Before:
language: go
go:
- tip
before_install:
- git clone git://github.com/hcatlin/libsass.git
- cd libsass
- autoreconf -i
- ./configure
- make && make shared && sudo make install && sudo make install-shared
- sudo cp sass_interface.h /usr/include/
- sudo cp sass.h /usr/local/include/
- cd ... | language: go
go:
- tip
before_install:
- git clone git://github.com/hcatlin/libsass.git
- cd libsass
- autoreconf -i
- ./configure
- - make && make shared && sudo make install && sudo make install-shared
+ - make && sudo make install
- sudo cp sass_interface.h /usr/include/
- sudo... | 2 | 0.133333 | 1 | 1 |
233f828b3627a0967bb225625f249da11d33d05a | gather/templates/user/index.html | gather/templates/user/index.html | {% extends "layout.html" %}
{% block title %}用户{% endblock %}
{% from "snippet/nav.html" import navigation %}
{% block nav %}{{ navigation('user') }}{% endblock %}
{% block content %}
{% for user in paginator.items %}
<div class="user-card">
{% set user_profile = url_for('.profile', name=user.username) %... | {% extends "layout.html" %}
{% block title %}用户{% endblock %}
{% from "snippet/nav.html" import navigation %}
{% block nav %}{{ navigation('user') }}{% endblock %}
{% block content %}
{% for user in paginator.items %}
<div class="user-card">
{% set user_profile = url_for('.profile', name=user.username) %... | Add pagination in user page | Add pagination in user page
| HTML | mit | whtsky/Gather,whtsky/Gather | html | ## Code Before:
{% extends "layout.html" %}
{% block title %}用户{% endblock %}
{% from "snippet/nav.html" import navigation %}
{% block nav %}{{ navigation('user') }}{% endblock %}
{% block content %}
{% for user in paginator.items %}
<div class="user-card">
{% set user_profile = url_for('.profile', name=... | {% extends "layout.html" %}
{% block title %}用户{% endblock %}
{% from "snippet/nav.html" import navigation %}
{% block nav %}{{ navigation('user') }}{% endblock %}
{% block content %}
{% for user in paginator.items %}
<div class="user-card">
{% set user_profile = url_for('.profile',... | 5 | 0.208333 | 2 | 3 |
43166af8255120cc3a0986944ee0fd3dd8dceec7 | src/CMakeLists.txt | src/CMakeLists.txt | configure_file(tenyr_config.h.in tenyr_config.h)
add_subdirectory(os)
add_library(common STATIC
common.c
param.c
stream.c
)
target_include_directories(common PUBLIC .)
target_link_libraries(common
os_support
)
| configure_file(tenyr_config.h.in tenyr_config.h)
add_subdirectory(os)
add_library(common STATIC
common.c
param.c
stream.c
)
target_include_directories(common PUBLIC .)
target_link_libraries(common PUBLIC os_support)
add_executable(tld
tld.c
obj.c
)
target_link_libraries(tld PUBLIC common)
| Add executable target for tld | Add executable target for tld
| Text | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr | text | ## Code Before:
configure_file(tenyr_config.h.in tenyr_config.h)
add_subdirectory(os)
add_library(common STATIC
common.c
param.c
stream.c
)
target_include_directories(common PUBLIC .)
target_link_libraries(common
os_support
)
## Instruction:
Add executable target for tld
## Code After:
configure_fi... | configure_file(tenyr_config.h.in tenyr_config.h)
add_subdirectory(os)
add_library(common STATIC
common.c
param.c
stream.c
)
target_include_directories(common PUBLIC .)
- target_link_libraries(common
- os_support
+ target_link_libraries(common PUBLIC os_support)
+
+ add_executab... | 9 | 0.642857 | 7 | 2 |
2085e55286d0c890e737e6f0fdc3fb84826e421f | src/entities/SelectInput.js | src/entities/SelectInput.js | import { Component } from 'substance'
export default class SelectInput extends Component {
render($$) {
const label = this.props.label
const value = this.props.value
const options = this.props.availableOptions
const el = $$('div').addClass('sc-select-input')
const selectEl = $$('select').addClass... | import { Component } from 'substance'
export default class SelectInput extends Component {
render($$) {
const label = this.props.label
const value = this.props.value
const options = this.props.availableOptions
const el = $$('div').addClass('sc-select-input')
const selectEl = $$('select').addClass... | Use a new updating strategy. | Use a new updating strategy.
| JavaScript | mit | substance/texture,substance/texture | javascript | ## Code Before:
import { Component } from 'substance'
export default class SelectInput extends Component {
render($$) {
const label = this.props.label
const value = this.props.value
const options = this.props.availableOptions
const el = $$('div').addClass('sc-select-input')
const selectEl = $$('s... | import { Component } from 'substance'
export default class SelectInput extends Component {
render($$) {
const label = this.props.label
const value = this.props.value
const options = this.props.availableOptions
const el = $$('div').addClass('sc-select-input')
const selectEl = $$(... | 8 | 0.163265 | 3 | 5 |
ac9863acadfa514721ed3602f6027f7c53e246a6 | WEB-INF/src/edu/wustl/catissuecore/util/global/HibernateProperties.java | WEB-INF/src/edu/wustl/catissuecore/util/global/HibernateProperties.java | /*
* Created on Jul 19, 2004
*
*/
package edu.wustl.catissuecore.util.global;
import java.util.ResourceBundle;
/**
* This class is used to retrieve values of keys from the ApplicationResources.properties file.
* @author kapil_kaveeshwar
*/
public class HibernateProperties
{
private static Reso... | /*
* Created on Jul 19, 2004
*
*/
package edu.wustl.catissuecore.util.global;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;
/**
* This class is used to retrieve values of keys from the ApplicationResources.properties file.
* @au... | Use of properties class for reading resources | Use of properties class for reading resources
SVN-Revision: 864
| Java | bsd-3-clause | NCIP/catissue-core,NCIP/catissue-core,krishagni/openspecimen,NCIP/catissue-core,asamgir/openspecimen,asamgir/openspecimen,krishagni/openspecimen,krishagni/openspecimen,asamgir/openspecimen | java | ## Code Before:
/*
* Created on Jul 19, 2004
*
*/
package edu.wustl.catissuecore.util.global;
import java.util.ResourceBundle;
/**
* This class is used to retrieve values of keys from the ApplicationResources.properties file.
* @author kapil_kaveeshwar
*/
public class HibernateProperties
{
private static Re... | /*
* Created on Jul 19, 2004
*
*/
package edu.wustl.catissuecore.util.global;
- import java.util.ResourceBundle;
+ import java.io.BufferedInputStream;
+ import java.io.File;
+ import java.io.FileInputStream;
+ import java.util.Properties;
/**
* This class is used to retrieve values of keys from ... | 26 | 1 | 22 | 4 |
7098b34b75b2f4b3fc7247904b7e222ac76f843b | dashboard_app/templates/dashboard_app/add_test_definition.html | dashboard_app/templates/dashboard_app/add_test_definition.html | {% extends "dashboard_app/_content_with_sidebar.html" %}
{% load i18n %}
{% load stylize %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/demo_table_jui.css"/>
{% endblock %}
{% block sidebar %}
<h3>Actions</h3>
<ul>
<li><a href="{% url dashboard_app.views.test_d... | {% extends "dashboard_app/_content_with_sidebar.html" %}
{% load i18n %}
{% load stylize %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/demo_table_jui.css"/>
{% endblock %}
{% block sidebar %}
<h3>Actions</h3>
<ul>
<li><a href="{% url dashboard_app.views.test_d... | Use form.as_table to display add test definition form. | Use form.as_table to display add test definition form.
| HTML | agpl-3.0 | Linaro/lava-server,OSSystems/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,OSSystems/lava-server,OSSystems/lava-server | html | ## Code Before:
{% extends "dashboard_app/_content_with_sidebar.html" %}
{% load i18n %}
{% load stylize %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/demo_table_jui.css"/>
{% endblock %}
{% block sidebar %}
<h3>Actions</h3>
<ul>
<li><a href="{% url dashboard_... | {% extends "dashboard_app/_content_with_sidebar.html" %}
{% load i18n %}
{% load stylize %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}lava-server/css/demo_table_jui.css"/>
{% endblock %}
{% block sidebar %}
<h3>Actions</h3>
<ul>
<li><a href="{% url da... | 21 | 0.477273 | 1 | 20 |
4eb358e74a0c7835022cf29962c547cd3713a603 | test-generator-tools/randoop/get-tool.sh | test-generator-tools/randoop/get-tool.sh |
CWD="$(
cd "$(dirname "$(readlink "$0" || printf %s "$0")")"
pwd -P
)"
rm -f "$CWD/randoop.jar"
wget "https://github.com/mernst/randoop/releases/download/v1.3.6/randoop-1.3.6.jar" -O "$CWD/randoop.jar"
chmod +x "$CWD/randoop.jar"
echo "1.3.6" > "$CWD/VERSION"
| VERSION=2.1.4
CWD="$(
cd "$(dirname "$(readlink "$0" || printf %s "$0")")"
pwd -P
)"
rm -f "$CWD/randoop.jar"
wget "https://github.com/mernst/randoop/releases/download/v$VERSION/randoop-$VERSION.jar" -O "$CWD/randoop.jar"
chmod +x "$CWD/randoop.jar"
echo "$VERSION" > "$CWD/VERSION"
| Update randoop version to 2.1.4 | Update randoop version to 2.1.4
| Shell | apache-2.0 | SETTE-Testing/sette-tool,SETTE-Testing/sette-tool | shell | ## Code Before:
CWD="$(
cd "$(dirname "$(readlink "$0" || printf %s "$0")")"
pwd -P
)"
rm -f "$CWD/randoop.jar"
wget "https://github.com/mernst/randoop/releases/download/v1.3.6/randoop-1.3.6.jar" -O "$CWD/randoop.jar"
chmod +x "$CWD/randoop.jar"
echo "1.3.6" > "$CWD/VERSION"
## Instruction:
Update randoop vers... | -
+ VERSION=2.1.4
CWD="$(
cd "$(dirname "$(readlink "$0" || printf %s "$0")")"
pwd -P
)"
rm -f "$CWD/randoop.jar"
- wget "https://github.com/mernst/randoop/releases/download/v1.3.6/randoop-1.3.6.jar" -O "$CWD/randoop.jar"
? ^^^^^ ^^^^... | 6 | 0.545455 | 3 | 3 |
4ec61469d199f1033fe289275e79a48e97c4889c | build.sbt | build.sbt | name := "twitter4j-tutorial"
version := "0.1.0 "
scalaVersion := "2.10.0"
libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "3.0.3"
| name := "twitter4j-tutorial"
version := "0.2.0 "
scalaVersion := "2.10.0"
libraryDependencies ++= Seq(
"org.twitter4j" % "twitter4j-core" % "3.0.3",
"org.twitter4j" % "twitter4j-stream" % "3.0.3"
)
| Increase version to 0.2.0. Add twitter4j-core dependency. | Increase version to 0.2.0. Add twitter4j-core dependency.
| Scala | apache-2.0 | jasonbaldridge/twitter4j-tutorial | scala | ## Code Before:
name := "twitter4j-tutorial"
version := "0.1.0 "
scalaVersion := "2.10.0"
libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "3.0.3"
## Instruction:
Increase version to 0.2.0. Add twitter4j-core dependency.
## Code After:
name := "twitter4j-tutorial"
version := "0.2.0 "
scalaVersion :=... | name := "twitter4j-tutorial"
- version := "0.1.0 "
? ^
+ version := "0.2.0 "
? ^
scalaVersion := "2.10.0"
+ libraryDependencies ++= Seq(
+ "org.twitter4j" % "twitter4j-core" % "3.0.3",
- libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "3.0.3"
? ----------------... | 7 | 1 | 5 | 2 |
dbf9d905c5de1b5416a6ad1677e6b6474dd015e5 | README.md | README.md | =wluxui=
========
To map this repo on your local dev machine, see this illustration at: 
| WLUXUI
======
To map this repo on your local dev machine, see this illustration at: 
More stuff goes here. For instance ... this. More more more.
| Add extra text to the read me | Add extra text to the read me
| Markdown | mit | weblabux/wluxui,weblabux/wluxui,weblabux/wluxui | markdown | ## Code Before:
=wluxui=
========
To map this repo on your local dev machine, see this illustration at: 
## Instruction:
Add extra text to the read me
## Code... | - =wluxui=
+ WLUXUI
- ========
? --
+ ======
To map this repo on your local dev machine, see this illustration at: 
+
+ More stuff goes here. For in... | 6 | 1.5 | 4 | 2 |
08bb24ad80db72457c87533288b97942cc178dd6 | src/kanboard/urls.py | src/kanboard/urls.py | import os
from django.conf.urls.defaults import patterns, url
import kanboard
urlpatterns = patterns('kanboard.views',
url(r'^board/(?P<board_slug>[\w-]+)/$', 'board'),
url(r'^board/(?P<board_slug>[\w-]+)/update/$', 'update'),
)
# Serve static content
static_root = os.path.join(os.path.dirname(kanboard.__file__... | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('kanboard.views',
url(r'^board/(?P<board_slug>[\w-]+)/$', 'board'),
url(r'^board/(?P<board_slug>[\w-]+)/update/$', 'update'),
)
| Remove static file serving (using django-staticfiles instead is recommended) | Remove static file serving (using django-staticfiles instead is recommended)
| Python | bsd-3-clause | zellyn/django-kanboard,zellyn/django-kanboard | python | ## Code Before:
import os
from django.conf.urls.defaults import patterns, url
import kanboard
urlpatterns = patterns('kanboard.views',
url(r'^board/(?P<board_slug>[\w-]+)/$', 'board'),
url(r'^board/(?P<board_slug>[\w-]+)/update/$', 'update'),
)
# Serve static content
static_root = os.path.join(os.path.dirname(k... | - import os
from django.conf.urls.defaults import patterns, url
- import kanboard
urlpatterns = patterns('kanboard.views',
url(r'^board/(?P<board_slug>[\w-]+)/$', 'board'),
url(r'^board/(?P<board_slug>[\w-]+)/update/$', 'update'),
)
- # Serve static content
- static_root = os.path.join(os.path.dir... | 7 | 0.5 | 0 | 7 |
703ff26008525bce769b137fafe51ac080a6af81 | plyer/platforms/ios/compass.py | plyer/platforms/ios/compass.py | '''
iOS Compass
---------------------
'''
from plyer.facades import Compass
from pyobjus import autoclass
class IosCompass(Compass):
def __init__(self):
super(IosCompass, self).__init__()
self.bridge = autoclass('bridge').alloc().init()
self.bridge.motionManager.setMagnetometerUpdateInte... | '''
iOS Compass
-----------
'''
from plyer.facades import Compass
from pyobjus import autoclass
class IosCompass(Compass):
def __init__(self):
super(IosCompass, self).__init__()
self.bridge = autoclass('bridge').alloc().init()
self.bridge.motionManager.setMagnetometerUpdateInterval_(0.1)... | Add iOS implementation to get uncalibrated values | Add iOS implementation to get uncalibrated values
| Python | mit | kivy/plyer,KeyWeeUsr/plyer,kivy/plyer,kivy/plyer,KeyWeeUsr/plyer,KeyWeeUsr/plyer | python | ## Code Before:
'''
iOS Compass
---------------------
'''
from plyer.facades import Compass
from pyobjus import autoclass
class IosCompass(Compass):
def __init__(self):
super(IosCompass, self).__init__()
self.bridge = autoclass('bridge').alloc().init()
self.bridge.motionManager.setMagnet... | '''
iOS Compass
- ---------------------
+ -----------
'''
from plyer.facades import Compass
from pyobjus import autoclass
class IosCompass(Compass):
def __init__(self):
super(IosCompass, self).__init__()
self.bridge = autoclass('bridge').alloc().init()
self.br... | 16 | 0.516129 | 14 | 2 |
5713be499d368dc5e3f5ec6b07115b71a2f5306e | README.md | README.md | minnow 鯫
========
Winnow and chaff example in golang
To start the client: ``go run chaff/chaff.go``
See: http://people.csail.mit.edu/rivest/Chaffing.txt
And: http://en.wikipedia.org/wiki/Chaffing_and_winnowing

| minnow 鯫
========
Winnow and chaff example in golang
To run the server: ``go run winnow/winnow.go``
To run the test client: ``go run chaff/chaff.go``
See: http://people.csail.mit.edu/rivest/Chaffing.txt
And: http://en.wikipedia.org/wiki/Chaffing_and_winnowing

| Add instructions for running server / winnow | Add instructions for running server / winnow
| Markdown | unlicense | schmichael/minnow | markdown | ## Code Before:
minnow 鯫
========
Winnow and chaff example in golang
To start the client: ``go run chaff/chaff.go``
See: http://people.csail.mit.edu/rivest/Chaffing.txt
And: http://en.wikipedia.org/wiki/Chaffing_and_winnowing

## Instruction:
Add instructions for running serve... | minnow 鯫
========
Winnow and chaff example in golang
+ To run the server: ``go run winnow/winnow.go``
+
- To start the client: ``go run chaff/chaff.go``
? --- ^
+ To run the test client: ``go run chaff/chaff.go``
? ^^ +++++
See: http://people.csail.mit.edu/rivest/Chaffing.txt
An... | 4 | 0.285714 | 3 | 1 |
91d344fed44084daba3dd16aefaefb4f289de652 | src/main/java/us/crast/mondochest/persist/PlayerState.java | src/main/java/us/crast/mondochest/persist/PlayerState.java | package us.crast.mondochest.persist;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public class PlayerState {
private Location lastClickedMaster;
private State state = State.NORMAL;
public PlayerState(Player player) {}
/* Getters/Setters */
public Location getLastClickedMaster() {
return lastC... | package us.crast.mondochest.persist;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
public class PlayerState {
private String lastClickedWorld;
private Vector lastClickedVector;
private State state = State.NORMAL;
public PlayerState(Player p... | Clean up possible World memory leak in storing locations. | Clean up possible World memory leak in storing locations.
| Java | bsd-3-clause | crast/MondoChest,crast/MondoChest | java | ## Code Before:
package us.crast.mondochest.persist;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public class PlayerState {
private Location lastClickedMaster;
private State state = State.NORMAL;
public PlayerState(Player player) {}
/* Getters/Setters */
public Location getLastClickedMaster() ... | package us.crast.mondochest.persist;
+ import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
+ import org.bukkit.util.Vector;
public class PlayerState {
- private Location lastClickedMaster;
? ^^^^ - ^^^^^
+ private String lastClickedWorld;
? ... | 17 | 0.485714 | 14 | 3 |
2cd7bfac239561ab7ad119d558a6508e66e4ad22 | app/javascript/flavours/glitch/containers/poll_container.js | app/javascript/flavours/glitch/containers/poll_container.js | import { connect } from 'react-redux';
import Poll from 'mastodon/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);
| import { connect } from 'react-redux';
import Poll from 'flavours/glitch/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);
| Use glitch-soc's poll component instead of upstream's | Use glitch-soc's poll component instead of upstream's
| JavaScript | agpl-3.0 | Kirishima21/mastodon,Kirishima21/mastodon,im-in-space/mastodon,im-in-space/mastodon,Kirishima21/mastodon,im-in-space/mastodon,Kirishima21/mastodon,glitch-soc/mastodon,glitch-soc/mastodon,glitch-soc/mastodon,glitch-soc/mastodon,im-in-space/mastodon | javascript | ## Code Before:
import { connect } from 'react-redux';
import Poll from 'mastodon/components/poll';
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
export default connect(mapStateToProps)(Poll);
## Instruction:
Use glitch-soc's poll component instead of upstream's
## Co... | import { connect } from 'react-redux';
- import Poll from 'mastodon/components/poll';
? ^ ^^^^
+ import Poll from 'flavours/glitch/components/poll';
? ^^ ++++ ++++ ^^
const mapStateToProps = (state, { pollId }) => ({
poll: state.getIn(['polls', pollId]),
});
exp... | 2 | 0.25 | 1 | 1 |
cbc86da5a0b1e92f6cff4bebb1783cf23204d0f6 | package.json | package.json | {
"devDependencies": {
"bower": "~1.3.0",
"grunt": "~0.4.1",
"grunt-browserify": "^5.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "~0.8.0",
"grunt-contrib-watch": "~0.6.0",
"grunt-exorcise": "^2.1.1",
"grunt-img": "~0.1.0",
"grunt-standard": "^2.0.0"
}
}
| {
"devDependencies": {
"bower": "~1.3.0",
"grunt": "~0.4.1",
"grunt-browserify": "^5.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "~0.8.0",
"grunt-contrib-watch": "~0.6.0",
"grunt-exorcise": "^2.1.1",
"grunt-img": "~0.1.0",
"grunt-modernizr": "^1.0.2",
"grunt-sta... | Add missing dependency for grunt | Add missing dependency for grunt
| JSON | mit | dxw/whippet-theme-template,dxw/whippet-theme-template | json | ## Code Before:
{
"devDependencies": {
"bower": "~1.3.0",
"grunt": "~0.4.1",
"grunt-browserify": "^5.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "~0.8.0",
"grunt-contrib-watch": "~0.6.0",
"grunt-exorcise": "^2.1.1",
"grunt-img": "~0.1.0",
"grunt-standard": "^2.0.0"
... | {
"devDependencies": {
"bower": "~1.3.0",
"grunt": "~0.4.1",
"grunt-browserify": "^5.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-sass": "~0.8.0",
"grunt-contrib-watch": "~0.6.0",
"grunt-exorcise": "^2.1.1",
"grunt-img": "~0.1.0",
+ "grunt-modernizr": "^... | 1 | 0.076923 | 1 | 0 |
737bf244f36b73a54b5b4f89f0c7e604d3f34b72 | tests/grammar_term-nonterm_test/NonterminalGetTest.py | tests/grammar_term-nonterm_test/NonterminalGetTest.py |
from unittest import TestCase, main
from grammpy import Grammar
from grammpy import Nonterminal
class TempClass(Nonterminal):
pass
class Second(Nonterminal):
pass
class Third(Nonterminal):
pass
class TerminalGetTest(TestCase):
pass
if __name__ == '__main__':
main()
|
from unittest import TestCase, main
from grammpy import Grammar
from grammpy import Nonterminal
class TempClass(Nonterminal):
pass
class Second(Nonterminal):
pass
class Third(Nonterminal):
pass
class TerminalGetTest(TestCase):
def test_getNontermEmpty(self):
gr = Gra... | Add tests of get nonterms | Add tests of get nonterms
| Python | mit | PatrikValkovic/grammpy | python | ## Code Before:
from unittest import TestCase, main
from grammpy import Grammar
from grammpy import Nonterminal
class TempClass(Nonterminal):
pass
class Second(Nonterminal):
pass
class Third(Nonterminal):
pass
class TerminalGetTest(TestCase):
pass
if __name__ == '__main__':
main()
## Inst... |
from unittest import TestCase, main
from grammpy import Grammar
from grammpy import Nonterminal
class TempClass(Nonterminal):
pass
class Second(Nonterminal):
pass
class Third(Nonterminal):
pass
class TerminalGetTest(TestCase):
- pass
+ def test_getNonte... | 44 | 1.913043 | 43 | 1 |
93926a9986ab4ba7704cd564d0052b6e60ff38cb | casepro/pods/base.py | casepro/pods/base.py | import json
from confmodel import fields, Config as ConfmodelConfig
from django.apps import AppConfig
class PodConfig(ConfmodelConfig):
'''
This is the config that all pods should use as the base for their own
config.
'''
index = fields.ConfigInt(
"A unique identifier for the specific inst... | import json
from confmodel import fields, Config as ConfmodelConfig
from django.apps import AppConfig
class PodConfig(ConfmodelConfig):
'''
This is the config that all pods should use as the base for their own
config.
'''
index = fields.ConfigInt(
"A unique identifier for the specific inst... | Add the class-level vars we need for pod angular components to PodPlugin | Add the class-level vars we need for pod angular components to PodPlugin
| Python | bsd-3-clause | rapidpro/casepro,praekelt/casepro,xkmato/casepro,rapidpro/casepro,praekelt/casepro,xkmato/casepro,praekelt/casepro,rapidpro/casepro | python | ## Code Before:
import json
from confmodel import fields, Config as ConfmodelConfig
from django.apps import AppConfig
class PodConfig(ConfmodelConfig):
'''
This is the config that all pods should use as the base for their own
config.
'''
index = fields.ConfigInt(
"A unique identifier for t... | import json
from confmodel import fields, Config as ConfmodelConfig
from django.apps import AppConfig
class PodConfig(ConfmodelConfig):
'''
This is the config that all pods should use as the base for their own
config.
'''
index = fields.ConfigInt(
"A unique identifi... | 18 | 0.339623 | 15 | 3 |
ab77c1fa4d01725a0ff1f78e9b79b0ceefbdd03e | .travis.yml | .travis.yml | language: php
php:
- 7.0
- 7.1
- hhvm
before_install:
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-get install --yes nodejs
- npm install -g grunt-cli
install:
- npm install
- composer install
script:
- grunt
after_script:
- php vendor/bin/coveralls -v
- chmod +... | language: php
php:
- 7.0
- 7.1
- hhvm
before_install:
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-get install --yes nodejs
- npm install -g grunt-cli
install:
- npm install
- composer install
script:
- grunt
after_script:
- php vendor/bin/coveralls -v
- chmod +... | Update Code Climate repo token. | Update Code Climate repo token. | YAML | mit | gomoob/php-websocket-server,gomoob/php-websocket-server,gomoob/php-websocket-server | yaml | ## Code Before:
language: php
php:
- 7.0
- 7.1
- hhvm
before_install:
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-get install --yes nodejs
- npm install -g grunt-cli
install:
- npm install
- composer install
script:
- grunt
after_script:
- php vendor/bin/coverall... | language: php
php:
- 7.0
- 7.1
- hhvm
before_install:
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-get install --yes nodejs
- npm install -g grunt-cli
install:
- npm install
- composer install
script:
- grunt
after_script:
... | 2 | 0.086957 | 1 | 1 |
650cb87a348e8adef099c6ab6f2a4b92e89b593c | project.clj | project.clj | (defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.6.0"]
[bu... | (defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.6.0" :scope "provided"]
... | Add lein-ancient plugin and set "provided" scope for clojure. | Add lein-ancient plugin and set "provided" scope for clojure.
| Clojure | apache-2.0 | rorygibson/buddy-hashers,funcool/buddy-hashers,rorygibson/buddy-hashers,funcool/buddy-hashers | clojure | ## Code Before:
(defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.6.0"]
... | (defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
- :dependencies [[org.clojure/clojure "1.6.0"]
+ :dep... | 5 | 0.416667 | 3 | 2 |
de0db0b8cd59a350dd18bec4a1588aba9724cfcf | app/controllers/dashboard_controller.rb | app/controllers/dashboard_controller.rb | class DashboardController < ApplicationController
before_filter :authenticate_user!
def show
end
end
| class DashboardController < ApplicationController
before_filter :authenticate_user!
def show
session[:CTF_FLAG] = "2112"
end
end
| Add a flag in triage. | Add a flag in triage.
| Ruby | mit | secure-pipeline/rails-travis-example,Jemurai/triage,Jemurai/triage,secure-pipeline/rails-travis-example,secure-pipeline/rails-travis-example | ruby | ## Code Before:
class DashboardController < ApplicationController
before_filter :authenticate_user!
def show
end
end
## Instruction:
Add a flag in triage.
## Code After:
class DashboardController < ApplicationController
before_filter :authenticate_user!
def show
session[:CTF_FLAG] = "2112"
... | class DashboardController < ApplicationController
before_filter :authenticate_user!
def show
-
+ session[:CTF_FLAG] = "2112"
end
end | 2 | 0.285714 | 1 | 1 |
91712f57a2153046bb5f6f423fc19c15cf0c2b7a | build_matrix_sdk_lib_develop.sh | build_matrix_sdk_lib_develop.sh |
echo updir
cd ..
echo remove sdk folder
rm -rf matrix-android-sdk
echo clone the git folder
git clone -b develop https://github.com/matrix-org/matrix-android-sdk
cd matrix-android-sdk
./gradlew clean assembleRelease
cd ../riot-android
# Ensure the lib is updated by removing the previous one
rm vector/libs/matri... |
echo "Save current dir"
currentDir=`pwd`
echo "up dir"
cd ..
echo "remove sdk folder"
rm -rf matrix-android-sdk
echo "clone the matrix-android-sdk repository, and checkout develop branch"
git clone -b develop https://github.com/matrix-org/matrix-android-sdk
cd matrix-android-sdk
echo "Build matrix sdk from source... | Fix issue on script for Jenkins related to path | Fix issue on script for Jenkins related to path
| Shell | apache-2.0 | vector-im/vector-android,vector-im/riot-android,vector-im/riot-android,vector-im/vector-android,vector-im/vector-android,vector-im/riot-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android | shell | ## Code Before:
echo updir
cd ..
echo remove sdk folder
rm -rf matrix-android-sdk
echo clone the git folder
git clone -b develop https://github.com/matrix-org/matrix-android-sdk
cd matrix-android-sdk
./gradlew clean assembleRelease
cd ../riot-android
# Ensure the lib is updated by removing the previous one
rm v... |
+ echo "Save current dir"
+ currentDir=`pwd`
+
- echo updir
+ echo "up dir"
? + + +
cd ..
- echo remove sdk folder
+ echo "remove sdk folder"
? + +
rm -rf matrix-android-sdk
- echo clone the git folder
+ echo "clone the matrix-android-sdk repository, and checkout develop bra... | 18 | 0.857143 | 11 | 7 |
b1a7ce456c65b5086804065f30920e661dbd82e2 | S06-signature/unpack-array.t | S06-signature/unpack-array.t | use v6;
use Test;
plan 3;
# L<S06/Unpacking array parameters>
sub foo($x, [$y, *@z]) {
return "$x|$y|" ~ @z.join(';');
}
my @a = 2, 3, 4, 5;
is foo(1, @a), '2|3|4;5', 'array unpacking';
sub bar([$x, $y, $z]) {
return [*] $x, $y, $z;
}
ok bar(@a[0..2]) == 24, 'fixed length array unpacking';
dies_ok { bar [... | use v6;
use Test;
plan 3;
# L<S06/Unpacking array parameters>
sub foo($x, [$y, *@z]) {
return "$x|$y|" ~ @z.join(';');
}
my @a = 2, 3, 4, 5;
is foo(1, @a), '1|2|3;4;5', 'array unpacking';
sub bar([$x, $y, $z]) {
return $x * $y * $z;
}
ok bar(@a[0..2]) == 24, 'fixed length array unpacking';
dies_ok { bar [... | Correct mistake in array unpacking test, and make it work without reduction operator. | [t/spec] Correct mistake in array unpacking test, and make it work without reduction operator.
git-svn-id: 53605643c415f7495558be95614cf14171f1db78@29753 c213334d-75ef-0310-aa23-eaa082d1ae64
| Perl | artistic-2.0 | perl6/roast,b2gills/roast,bitrauser/roast,dankogai/roast,bitrauser/roast,zostay/roast,skids/roast,zostay/roast,laben/roast,cygx/roast,b2gills/roast,dogbert17/roast,dankogai/roast,dankogai/roast,cygx/roast,skids/roast,zostay/roast,b2gills/roast,skids/roast,niner/roast,laben/roast,niner/roast,dogbert17/roast,niner/roast,... | perl | ## Code Before:
use v6;
use Test;
plan 3;
# L<S06/Unpacking array parameters>
sub foo($x, [$y, *@z]) {
return "$x|$y|" ~ @z.join(';');
}
my @a = 2, 3, 4, 5;
is foo(1, @a), '2|3|4;5', 'array unpacking';
sub bar([$x, $y, $z]) {
return [*] $x, $y, $z;
}
ok bar(@a[0..2]) == 24, 'fixed length array unpacking';... | use v6;
use Test;
plan 3;
# L<S06/Unpacking array parameters>
sub foo($x, [$y, *@z]) {
return "$x|$y|" ~ @z.join(';');
}
my @a = 2, 3, 4, 5;
- is foo(1, @a), '2|3|4;5', 'array unpacking';
? ^
+ is foo(1, @a), '1|2|3;4;5', 'array unpacking';
? ++ ^
... | 4 | 0.190476 | 2 | 2 |
cf79568336641741f02c60c8be2291d3fa96ee3d | server/routes/users/index.js | server/routes/users/index.js | import express from 'express';
import * as userController from '../../controllers/users';
const user = express.Router();
// define route controllers for creating sign up, login and sign out
user.post('/signup', userController.signUp);
user.post('/signin', userController.signIn);
user.post('/signout', userController.... | import express from 'express';
import * as userController from '../../controllers/users';
import * as recipeController from '../../controllers/recipes';
const user = express.Router();
// define route controllers for creating sign up, login and sign out
user.post('/signup', userController.signUp);
user.post('/signin'... | Implement getUserRecipes on api/v1/users/myRecipes route | Implement getUserRecipes on api/v1/users/myRecipes route
| JavaScript | apache-2.0 | larrystone/BC-26-More-Recipes,larrystone/BC-26-More-Recipes | javascript | ## Code Before:
import express from 'express';
import * as userController from '../../controllers/users';
const user = express.Router();
// define route controllers for creating sign up, login and sign out
user.post('/signup', userController.signUp);
user.post('/signin', userController.signIn);
user.post('/signout',... | import express from 'express';
import * as userController from '../../controllers/users';
+ import * as recipeController from '../../controllers/recipes';
const user = express.Router();
// define route controllers for creating sign up, login and sign out
user.post('/signup', userController.signUp);
... | 4 | 0.285714 | 3 | 1 |
43539f403ef11d38439ea5a74cbe81cd88b6fc8d | lib/api-umbrella-gatekeeper.rb | lib/api-umbrella-gatekeeper.rb | require "active_support/core_ext"
module ApiUmbrella
module Gatekeeper
mattr_accessor :redis
mattr_accessor :logger
self.logger = Logger.new(STDOUT)
end
end
require "api-umbrella-gatekeeper/server"
| require "active_support/core_ext"
module ApiUmbrella
module Gatekeeper
mattr_accessor :redis
mattr_accessor :logger
$stdout.sync = true
self.logger = Logger.new($stdout)
end
end
require "api-umbrella-gatekeeper/server"
| Disable buffering on stdout logger. | Disable buffering on stdout logger.
| Ruby | mit | apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,OdiloOrg/api-umbrella-gatekeeper,apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,cmc333333/api-umbrella-gatekeeper,NREL/api-umbrella-gatekeeper | ruby | ## Code Before:
require "active_support/core_ext"
module ApiUmbrella
module Gatekeeper
mattr_accessor :redis
mattr_accessor :logger
self.logger = Logger.new(STDOUT)
end
end
require "api-umbrella-gatekeeper/server"
## Instruction:
Disable buffering on stdout logger.
## Code After:
require "active_su... | require "active_support/core_ext"
module ApiUmbrella
module Gatekeeper
mattr_accessor :redis
mattr_accessor :logger
+
+ $stdout.sync = true
- self.logger = Logger.new(STDOUT)
? ^^^^^^
+ self.logger = Logger.new($stdout)
? ... | 4 | 0.333333 | 3 | 1 |
fac8976cc69007cf8c49a27bc881944c582581ce | app/controllers/spree/shipwire_webhook_controller.rb | app/controllers/spree/shipwire_webhook_controller.rb | module Spree
class ShipwireWebhookController < ActionController::Base
respond_to :json
before_action :validate_key, except: :subscribe
def subscribe
if exists_in_post?("/shipwire_webhooks/#{params[:path]}")
head :ok
else
head :not_found
end
end
private
def... | module Spree
class ShipwireWebhookController < ActionController::Base
respond_to :json
before_action :validate_key, except: :subscribe
def subscribe
if exists_in_post?("/shipwire_webhooks/#{params[:path]}")
head :ok
else
head :not_found
end
end
private
def... | Change digest for shipwire signature | Change digest for shipwire signature
| Ruby | bsd-3-clause | nebulab/solidus_shipwire,nebulab/solidus_shipwire,nebulab/solidus_shipwire | ruby | ## Code Before:
module Spree
class ShipwireWebhookController < ActionController::Base
respond_to :json
before_action :validate_key, except: :subscribe
def subscribe
if exists_in_post?("/shipwire_webhooks/#{params[:path]}")
head :ok
else
head :not_found
end
end
... | module Spree
class ShipwireWebhookController < ActionController::Base
respond_to :json
before_action :validate_key, except: :subscribe
def subscribe
if exists_in_post?("/shipwire_webhooks/#{params[:path]}")
head :ok
else
head :not_found
end
... | 17 | 0.361702 | 5 | 12 |
a04e5daf2f6f25b11582279f04581622f7fbc0d2 | src/test/sv/string_utils_unit_test.sv | src/test/sv/string_utils_unit_test.sv | module string_utils_unit_test;
import svunit_pkg::*;
`include "svunit_defines.svh"
string name = "string_utils_ut";
svunit_testcase svunit_ut;
import svunit_under_test::string_utils;
function void build();
svunit_ut = new(name);
endfunction
task setup();
svunit_ut.setup();
endtask
t... | module string_utils_unit_test;
import svunit_stable_pkg::*;
`include "svunit_stable_defines.svh"
string name = "string_utils_ut";
svunit_testcase svunit_ut;
import svunit_under_test::string_utils;
function void build();
svunit_ut = new(name);
endfunction
task setup();
svunit_ut.setup();
... | Update unit test to use updated names for SVUnit version for testing | Update unit test to use updated names for SVUnit version for testing
| SystemVerilog | apache-2.0 | svunit/svunit,svunit/svunit,svunit/svunit | systemverilog | ## Code Before:
module string_utils_unit_test;
import svunit_pkg::*;
`include "svunit_defines.svh"
string name = "string_utils_ut";
svunit_testcase svunit_ut;
import svunit_under_test::string_utils;
function void build();
svunit_ut = new(name);
endfunction
task setup();
svunit_ut.setup();... | module string_utils_unit_test;
- import svunit_pkg::*;
+ import svunit_stable_pkg::*;
? +++++++
- `include "svunit_defines.svh"
+ `include "svunit_stable_defines.svh"
? +++++++
string name = "string_utils_ut";
svunit_testcase svunit_ut;
import svunit_u... | 4 | 0.086957 | 2 | 2 |
59cf09deabc87dbf523439640a1cedecc851d740 | mbc-logging-processor/mbc-logging-processor.php | mbc-logging-processor/mbc-logging-processor.php | <?php
/**
* mbc-import-logging.php
*
* Collect user import activity from the userImportExistingLoggingQueue. Update
* the LoggingAPI / database with import activity via mb-logging.
*/
date_default_timezone_set('America/New_York');
define('CONFIG_PATH', __DIR__ . '/messagebroker-config');
// Load up the Composer... | <?php
/**
* mbc-import-logging.php
*
* Collect user import activity from the userImportExistingLoggingQueue. Update
* the LoggingAPI / database with import activity via mb-logging.
*/
date_default_timezone_set('America/New_York');
define('CONFIG_PATH', __DIR__ . '/messagebroker-config');
// Load up the Composer... | Support interval and offset parms | Support interval and offset parms
| PHP | mit | DoSomething/MessageBroker-PHP,DoSomething/MessageBroker-PHP,DoSomething/messagebroker-ds-PHP,DoSomething/messagebroker-ds-PHP | php | ## Code Before:
<?php
/**
* mbc-import-logging.php
*
* Collect user import activity from the userImportExistingLoggingQueue. Update
* the LoggingAPI / database with import activity via mb-logging.
*/
date_default_timezone_set('America/New_York');
define('CONFIG_PATH', __DIR__ . '/messagebroker-config');
// Load... | <?php
/**
* mbc-import-logging.php
*
* Collect user import activity from the userImportExistingLoggingQueue. Update
* the LoggingAPI / database with import activity via mb-logging.
*/
date_default_timezone_set('America/New_York');
define('CONFIG_PATH', __DIR__ . '/messagebroker-config');
... | 22 | 0.846154 | 20 | 2 |
70442c91a96dfc3f724e310ef0ca5b60f987ffbc | README.md | README.md |
Bash scripts I use to make my command line friendlier.
|
Bash scripts I use to make my command line friendlier.
## Links
- http://askubuntu.com/questions/17823/how-to-list-all-installed-packages
- http://askubuntu.com/questions/347555/how-do-i-list-all-installed-packages-with-specific-version-numbers
| Add links to dpkg usage | Add links to dpkg usage
| Markdown | isc | MattMS/bash_scripts | markdown | ## Code Before:
Bash scripts I use to make my command line friendlier.
## Instruction:
Add links to dpkg usage
## Code After:
Bash scripts I use to make my command line friendlier.
## Links
- http://askubuntu.com/questions/17823/how-to-list-all-installed-packages
- http://askubuntu.com/questions/347555/how-do-i... |
Bash scripts I use to make my command line friendlier.
+
+
+ ## Links
+
+ - http://askubuntu.com/questions/17823/how-to-list-all-installed-packages
+
+ - http://askubuntu.com/questions/347555/how-do-i-list-all-installed-packages-with-specific-version-numbers | 7 | 3.5 | 7 | 0 |
9c9dcf64136e83bc27dc074020ee236d4284de54 | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
root 'home#show'
scope '/:locale' do
resource :styleguide,
controller: 'styleguide',
only: 'show',
constraints: { locale: I18n.default_locale } do
member do
get 'components'
get 'forms'
get 'layouts'
... | Rails.application.routes.draw do
root 'home#show'
scope '/:locale' do
resource :styleguide,
controller: 'styleguide',
only: 'show',
constraints: { locale: I18n.default_locale } do
member do
get 'components'
get 'forms'
get 'layouts'
... | Configure route for error page. | Configure route for error page.
| Ruby | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | ruby | ## Code Before:
Rails.application.routes.draw do
root 'home#show'
scope '/:locale' do
resource :styleguide,
controller: 'styleguide',
only: 'show',
constraints: { locale: I18n.default_locale } do
member do
get 'components'
get 'forms'
... | Rails.application.routes.draw do
root 'home#show'
scope '/:locale' do
resource :styleguide,
controller: 'styleguide',
only: 'show',
constraints: { locale: I18n.default_locale } do
member do
get 'components'
get 'forms'
... | 1 | 0.027778 | 1 | 0 |
776686594b89fc30f8d5e0915628bc85b7d28b92 | .travis.yml | .travis.yml | branches:
only:
- master
language: php
php:
- 5.3
before_script:
- "mysql -e 'create database fluxbb__test;'"
- "psql -c 'create database fluxbb__test;' -U postgres"
script: phpunit --bootstrap tests/bootstrap.example.php tests/
notifications:
irc:
- "irc.freenode.org#fluxbb"
| branches:
only:
- master
language: php
php:
- 5.3
env:
- DB_MYSQL_DBNAME=fluxbb_test
- DB_MYSQL_HOST=0.0.0.0
- DB_MYSQL_USER=
- DB_MYSQL_PASSWD=
- DB_SQLITE_DBNAME=:memory:
- DB_PGSQL_DBNAME=fluxbb_test
- DB_PGSQL_HOST=127.0.0.1
- DB_PGSQL_USER=postgres
- DB_PGSQL_PASSWD=
before_script:
... | Add environment variables to build script (which means we don't need a bootstrap file anymore). | Add environment variables to build script (which means we don't need a bootstrap file anymore). | YAML | lgpl-2.1 | fluxbb/database | yaml | ## Code Before:
branches:
only:
- master
language: php
php:
- 5.3
before_script:
- "mysql -e 'create database fluxbb__test;'"
- "psql -c 'create database fluxbb__test;' -U postgres"
script: phpunit --bootstrap tests/bootstrap.example.php tests/
notifications:
irc:
- "irc.freenode.org#fluxbb"
## ... | branches:
only:
- master
language: php
php:
- 5.3
+ env:
+ - DB_MYSQL_DBNAME=fluxbb_test
+ - DB_MYSQL_HOST=0.0.0.0
+ - DB_MYSQL_USER=
+ - DB_MYSQL_PASSWD=
+ - DB_SQLITE_DBNAME=:memory:
+ - DB_PGSQL_DBNAME=fluxbb_test
+ - DB_PGSQL_HOST=127.0.0.1
+ - DB_PGSQL_USER=postgres
+ ... | 13 | 0.722222 | 12 | 1 |
a8e534e6e5146d012874a26181e1a58e20f34e58 | pkgs_debian.txt | pkgs_debian.txt | dnsutils
gcc
g++
libcurl4-openssl-dev
libffi-dev
make
net-tools
netcat-openbsd
ntp
python-minimal
python-pip
python3-dev
python3-minimal
python3-pip
screen
zookeeperd
| dnsutils
cgroup-bin
gcc
g++
libcurl4-openssl-dev
libffi-dev
make
net-tools
netcat-openbsd
ntp
python-minimal
python-pip
python3-dev
python3-minimal
python3-pip
screen
zookeeperd
| Fix an issue where docker wouldn't work on a fresh install. | Fix an issue where docker wouldn't work on a fresh install.
Without the cgroups-bin package installed, docker can't mount cgroups,
and then dies.
| Text | apache-2.0 | Oncilla/scion,klausman/scion,Oncilla/scion,FR4NK-W/osourced-scion,dmpiergiacomo/scion,Oncilla/scion,dmpiergiacomo/scion,netsec-ethz/scion,klausman/scion,dmpiergiacomo/scion,FR4NK-W/osourced-scion,FR4NK-W/osourced-scion,dmpiergiacomo/scion,Oncilla/scion,netsec-ethz/scion,FR4NK-W/osourced-scion,dmpiergiacomo/scion,dmpier... | text | ## Code Before:
dnsutils
gcc
g++
libcurl4-openssl-dev
libffi-dev
make
net-tools
netcat-openbsd
ntp
python-minimal
python-pip
python3-dev
python3-minimal
python3-pip
screen
zookeeperd
## Instruction:
Fix an issue where docker wouldn't work on a fresh install.
Without the cgroups-bin package installed, docker can't mou... | dnsutils
+ cgroup-bin
gcc
g++
libcurl4-openssl-dev
libffi-dev
make
net-tools
netcat-openbsd
ntp
python-minimal
python-pip
python3-dev
python3-minimal
python3-pip
screen
zookeeperd | 1 | 0.0625 | 1 | 0 |
8dbd3f8c3b80e0af6a19397759e9701183046e3c | apps/artist/client/index.coffee | apps/artist/client/index.coffee | _ = require 'underscore'
Backbone = require 'backbone'
Artist = require '../../../models/artist.coffee'
CurrentUser = require '../../../models/current_user.coffee'
ArtistRouter = require './router.coffee'
analytics = require './analytics.coffee'
attachArtworkModal = require '../../../components/page_modal/index.coffee'... | _ = require 'underscore'
Backbone = require 'backbone'
Artist = require '../../../models/artist.coffee'
CurrentUser = require '../../../models/current_user.coffee'
ArtistRouter = require './router.coffee'
analytics = require './analytics.coffee'
attachArtworkModal = require '../../../components/page_modal/index.coffee'... | Fix selectors for enabled test | Fix selectors for enabled test
| CoffeeScript | mit | oxaudo/force,mzikherman/force,cavvia/force-1,yuki24/force,xtina-starr/force,izakp/force,cavvia/force-1,xtina-starr/force,damassi/force,cavvia/force-1,joeyAghion/force,mzikherman/force,TribeMedia/force-public,kanaabe/force,joeyAghion/force,anandaroop/force,izakp/force,artsy/force,kanaabe/force,dblock/force,joeyAghion/fo... | coffeescript | ## Code Before:
_ = require 'underscore'
Backbone = require 'backbone'
Artist = require '../../../models/artist.coffee'
CurrentUser = require '../../../models/current_user.coffee'
ArtistRouter = require './router.coffee'
analytics = require './analytics.coffee'
attachArtworkModal = require '../../../components/page_mod... | _ = require 'underscore'
Backbone = require 'backbone'
Artist = require '../../../models/artist.coffee'
CurrentUser = require '../../../models/current_user.coffee'
ArtistRouter = require './router.coffee'
analytics = require './analytics.coffee'
attachArtworkModal = require '../../../components/page_modal... | 7 | 0.291667 | 6 | 1 |
9ff55d671c3155e454dee8df41d2e9320ea3320f | dplace_app/static/js/directives.js | dplace_app/static/js/directives.js | angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function() {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:480px;'></div>");
scope.map = $('#mapdiv').vectorMap({map: 'world_mill_en'}).vectorMap('get','mapObject');... | angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function() {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:480px;'></div>");
scope.map = $('#mapdiv').vectorMap({
map: 'world_mill_en',
... | Tweak map styles to match theme | Tweak map styles to match theme
| JavaScript | mit | stefelisabeth/dplace,stefelisabeth/dplace,D-PLACE/dplace,shh-dlce/dplace,NESCent/dplace,NESCent/dplace,NESCent/dplace,D-PLACE/dplace,D-PLACE/dplace,shh-dlce/dplace,NESCent/dplace,stefelisabeth/dplace,D-PLACE/dplace,stefelisabeth/dplace,shh-dlce/dplace,shh-dlce/dplace | javascript | ## Code Before:
angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function() {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:480px;'></div>");
scope.map = $('#mapdiv').vectorMap({map: 'world_mill_en'}).vectorMap('ge... | angular.module('dplaceMapDirective', [])
.directive('dplaceMap', function() {
function link(scope, element, attrs) {
element.append("<div id='mapdiv' style='width:1140px; height:480px;'></div>");
- scope.map = $('#mapdiv').vectorMap({map: 'world_mill_en'}).vectorMap('get','ma... | 22 | 0.611111 | 21 | 1 |
963fa85893ca37bcfa59755557bb873a3bb1b852 | examples/rust-gcoap/Cargo.toml | examples/rust-gcoap/Cargo.toml | [package]
name = "rust-gcoap"
version = "0.1.0"
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
edition = "2018"
resolver = "2"
[lib]
crate-type = ["staticlib"]
[profile.release]
# Setting the panic mode has little effect on the built code (as Rust on RIOT
# supports no unwinding), but setting it allows builds on na... | [package]
name = "rust-gcoap"
version = "0.1.0"
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
edition = "2018"
resolver = "2"
[lib]
crate-type = ["staticlib"]
[profile.release]
# Setting the panic mode has little effect on the built code (as Rust on RIOT
# supports no unwinding), but setting it allows builds on na... | Add Rust options for small binaries (-Os) | rust-gcoap: Add Rust options for small binaries (-Os)
| TOML | lgpl-2.1 | kaspar030/RIOT,RIOT-OS/RIOT,miri64/RIOT,miri64/RIOT,ant9000/RIOT,miri64/RIOT,jasonatran/RIOT,miri64/RIOT,jasonatran/RIOT,RIOT-OS/RIOT,RIOT-OS/RIOT,ant9000/RIOT,miri64/RIOT,jasonatran/RIOT,jasonatran/RIOT,RIOT-OS/RIOT,kaspar030/RIOT,kaspar030/RIOT,jasonatran/RIOT,kaspar030/RIOT,ant9000/RIOT,ant9000/RIOT,ant9000/RIOT,kas... | toml | ## Code Before:
[package]
name = "rust-gcoap"
version = "0.1.0"
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
edition = "2018"
resolver = "2"
[lib]
crate-type = ["staticlib"]
[profile.release]
# Setting the panic mode has little effect on the built code (as Rust on RIOT
# supports no unwinding), but setting it all... | [package]
name = "rust-gcoap"
version = "0.1.0"
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
edition = "2018"
resolver = "2"
[lib]
crate-type = ["staticlib"]
[profile.release]
# Setting the panic mode has little effect on the built code (as Rust on RIOT
# supports no unwinding), but sett... | 4 | 0.142857 | 4 | 0 |
b27d88bed374107c6261dda51139d760bf17208b | Twig/TwigExtensions.php | Twig/TwigExtensions.php | <?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(
'va... | <?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(
'va... | Refactor deprecated Twig_Function_Method to Twig_SimpleFunction | Refactor deprecated Twig_Function_Method to Twig_SimpleFunction
| PHP | mit | marcaube/ObCmsBundle,marcaube/ObCmsBundle | php | ## Code Before:
<?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(... | <?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
... | 4 | 0.085106 | 2 | 2 |
31810c8ee272f1867d3e78a6ebf21fb24f725c29 | app/helpers/date_helper.rb | app/helpers/date_helper.rb | module DateHelper
# Presents a fragment of a date string
# Used for the rendering of a date field value.
def date_value(measure, field)
return if field.blank?
return unless field =~ /^\d{4}-\d{2}-\d{2}$/
year, month, day = field.split("-")
{ "year" => year, "month" => month, "day" => day }[measur... | module DateHelper
# Presents a fragment of a date string
# Used for the rendering of a date field value.
def date_value(measure, field)
return if field.blank?
return unless field =~ /^\d{4}-\d{2}-\d{2}$/
year, month, day = field.split("-")
{ "year" => year, "month" => month, "day" => day }[measur... | Fix buggy auto-correct for 'format' method | Fix buggy auto-correct for 'format' method
Previously we changed to use the Kernel 'format' method, but this
conflicts with an app-specific 'format' method. This switches to
using 'sprintf' and disables the associated Cop. Unfortantely the
term 'format' is too prevalent in this app to rename the method.
| Ruby | mit | alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher,alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher,alphagov/specialist-publisher,alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher-rebuild | ruby | ## Code Before:
module DateHelper
# Presents a fragment of a date string
# Used for the rendering of a date field value.
def date_value(measure, field)
return if field.blank?
return unless field =~ /^\d{4}-\d{2}-\d{2}$/
year, month, day = field.split("-")
{ "year" => year, "month" => month, "day"... | module DateHelper
# Presents a fragment of a date string
# Used for the rendering of a date field value.
def date_value(measure, field)
return if field.blank?
return unless field =~ /^\d{4}-\d{2}-\d{2}$/
year, month, day = field.split("-")
{ "year" => year, "month" => month, "da... | 2 | 0.05 | 1 | 1 |
1bf1fe25ed6321de309f48f25f27451af5f745c5 | contract-spel/src/main/java/com/github/sebhoss/contract/verifier/SpELBasedContractContextFactory.java | contract-spel/src/main/java/com/github/sebhoss/contract/verifier/SpELBasedContractContextFactory.java | /*
* Copyright © 2012 Sebastian Hoß <mail@shoss.de>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.github.sebhoss.contract.verifi... | /*
* Copyright © 2012 Sebastian Hoß <mail@shoss.de>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.github.sebhoss.contract.verifi... | Set current instance as root object | Set current instance as root object
Signed-off-by: Sebastian Hoß <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@shoss.de> | Java | unlicense | sebhoss/annotated-contracts | java | ## Code Before:
/*
* Copyright © 2012 Sebastian Hoß <mail@shoss.de>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.github.sebhoss... | /*
* Copyright © 2012 Sebastian Hoß <mail@shoss.de>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.github.sebhoss.c... | 4 | 0.111111 | 1 | 3 |
c0f6741f1de35d59d795e1445971ba8a50577344 | README.md | README.md | WebViewMarker
=============
Text selection support library for Android WebView. The core logic is the same as BTAndroidWebViewSelection.
## What's the difference
- More modular (not inherit webview)
- Not depend quick action lib (for actionbar support)
- Mimic ICS native text selection handler
- Smart tap selection f... | WebViewMarker
=============
Text selection support library for Android WebView. The core logic is the same as BTAndroidWebViewSelection.
## What's the difference?
- More modular (not inherit webview)
- Not depend quick action lib (for actionbar support)
- Mimic ICS native text selection handlers
- Smart tap selection... | Add requirements and how to use | Add requirements and how to use
| Markdown | mit | naoak/WebViewMarker | markdown | ## Code Before:
WebViewMarker
=============
Text selection support library for Android WebView. The core logic is the same as BTAndroidWebViewSelection.
## What's the difference
- More modular (not inherit webview)
- Not depend quick action lib (for actionbar support)
- Mimic ICS native text selection handler
- Smart... | WebViewMarker
=============
Text selection support library for Android WebView. The core logic is the same as BTAndroidWebViewSelection.
- ## What's the difference
+ ## What's the difference?
? +
- More modular (not inherit webview)
- Not depend quick action lib (for actionbar s... | 10 | 1 | 8 | 2 |
2b48e786c3e2439876ff41fc82bd814b42d40ca4 | app.py | app.py | from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
|
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK"
if __name__ == "__main__":
app.run(host='0.0.0.0')
| Revert "Added the output for hostname" | Revert "Added the output for hostname"
This reverts commit 490fa2d10d8a61ede28b794ed446e569f2f30318.
| Python | bsd-2-clause | vioan/minflask | python | ## Code Before:
from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
## Instruction:
Revert "Added the output for hostname"
This reverts commit ... | +
from flask import Flask
- import socket
-
app = Flask(__name__)
@app.route("/")
def index():
- return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
+ return "Hello from FLASK"
if __name__ == "__main__":
app.run(host='0.0.0.0') | 5 | 0.384615 | 2 | 3 |
297543244f2e520f3ab8ca8097bc193594fb2bb4 | web/expense-list.html | web/expense-list.html | <div class="row">
<div class="col-md-12">
<?php # put this in a table to align nicely with the list ?>
<table class="table table-condensed">
<thead>
<tr>
<td>
<?php # use td instead of th to avoid showing extra horizontal lines ?>
<button type="button" class="bt... | <div class="row">
<div class="col-md-12">
<!-- put this in a table to align nicely with the list -->
<table class="table table-condensed">
<thead>
<tr>
<td>
<!-- use td instead of th to avoid showing extra horizontal lines -->
<button type="button" class="btn bt... | Fix comment format in html | Fix comment format in html
| HTML | unlicense | quietcat/expense-log,quietcat/expense-log,quietcat/expense-log,quietcat/expense-log | html | ## Code Before:
<div class="row">
<div class="col-md-12">
<?php # put this in a table to align nicely with the list ?>
<table class="table table-condensed">
<thead>
<tr>
<td>
<?php # use td instead of th to avoid showing extra horizontal lines ?>
<button type="b... | <div class="row">
<div class="col-md-12">
- <?php # put this in a table to align nicely with the list ?>
? ^^^^^^ ^
+ <!-- put this in a table to align nicely with the list -->
? ^^^ ^^
<t... | 4 | 0.095238 | 2 | 2 |
8196a5c350127ab94b70ae783fdd1e2458d6598b | install_modules_unit.sh | install_modules_unit.sh |
set -ex
if [ -n "${GEM_HOME}" ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/
export PATH=${PATH}:${GEM_BIN_DIR}
fi
if [ "${PUPPET_MAJ_VERSION}" = 4 ]; then
export PUPPET_BASE_PATH=/etc/puppetlabs/code
else
export PUPPET_BASE_PATH=/etc/puppet
fi
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
export PUPPETFILE_DIR=... |
set -ex
if [ -n "${GEM_HOME}" ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/
export PATH=${PATH}:${GEM_BIN_DIR}
fi
export PUPPET_BASE_PATH=/etc/puppetlabs/code
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
export PUPPETFILE_DIR=${PUPPETFILE_DIR:-${PUPPET_BASE_PATH}/modules}
source $SCRIPT_DIR/functions
print_header ... | Remove PUPPET_MAJ_VERSION check for unit modules | Remove PUPPET_MAJ_VERSION check for unit modules
The install_modules_unit.sh which is called by the
spec helper to install the modules for the unit
tests checks the PUPPET_MAJ_VERSION variable when
selecting the puppet base path.
The zuul jobs is not configured to give this env
variable so unit tests failed when usin... | Shell | apache-2.0 | openstack/puppet-openstack-integration,openstack/puppet-openstack-integration,openstack/puppet-openstack-integration | shell | ## Code Before:
set -ex
if [ -n "${GEM_HOME}" ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/
export PATH=${PATH}:${GEM_BIN_DIR}
fi
if [ "${PUPPET_MAJ_VERSION}" = 4 ]; then
export PUPPET_BASE_PATH=/etc/puppetlabs/code
else
export PUPPET_BASE_PATH=/etc/puppet
fi
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
export... |
set -ex
if [ -n "${GEM_HOME}" ]; then
GEM_BIN_DIR=${GEM_HOME}/bin/
export PATH=${PATH}:${GEM_BIN_DIR}
fi
- if [ "${PUPPET_MAJ_VERSION}" = 4 ]; then
- export PUPPET_BASE_PATH=/etc/puppetlabs/code
? --
+ export PUPPET_BASE_PATH=/etc/puppetlabs/code
- else
- export PUPPET_BASE_PATH=/etc/pup... | 7 | 0.259259 | 1 | 6 |
c794982eb830c0175ec73f4df1a47aa63a5cb982 | sli/admin-tools/admin-rails/test/fixtures/education_organization.yml | sli/admin-tools/admin-rails/test/fixtures/education_organization.yml | state:
id: 1
organizationCategories: ["State Education Agency"]
nameOfInstitution: "Some Fake District"
metaData:
updated: 10000000
created: 10000000
local:
id: 2
organizationCategories: ["Local Education Agency"]
nameOfInstitution: "A Fake Local District"
assoc_one:
education... | state:
id: 1
organizationCategories: ["State Education Agency"]
nameOfInstitution: "Some Fake District"
stateOrganizationId: "STATE"
metaData:
updated: 10000000
created: 10000000
local:
id: 2
organizationCategories: ["Local Education Agency"]
nameOfInstitution: "A Fake Local D... | Fix admin tools rake tests | Fix admin tools rake tests
| YAML | apache-2.0 | inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service,inbloom/secure-data-service | yaml | ## Code Before:
state:
id: 1
organizationCategories: ["State Education Agency"]
nameOfInstitution: "Some Fake District"
metaData:
updated: 10000000
created: 10000000
local:
id: 2
organizationCategories: ["Local Education Agency"]
nameOfInstitution: "A Fake Local District"
assoc_... | state:
id: 1
organizationCategories: ["State Education Agency"]
nameOfInstitution: "Some Fake District"
+ stateOrganizationId: "STATE"
metaData:
updated: 10000000
created: 10000000
local:
id: 2
organizationCategories: ["Local Education Agency"]
nameOfIn... | 2 | 0.117647 | 2 | 0 |
e9a445a4c12986680654e1ccb2feb3917ccbd263 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
do... | from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
... | Fix faulty URL reference in the package metadata. | Fix faulty URL reference in the package metadata.
| Python | isc | debrouwere/python-addressable | python | ## Code Before:
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-address... | from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
- author_email='stijn@stdout.be',
? -- ^ ^^
+ author_... | 8 | 0.380952 | 4 | 4 |
02e6e2c80e87d0922d901025397f805e2f96a151 | english-learning/09-34.md | english-learning/09-34.md | - I need to **straighten up** before I can have anyone over.
- the future
- I can be there by nine PM.
- That's in two hours.
#### Sentences & phrase
- I have to **do the dishes**, clean the floors, **do the laundry**, and I have **a stack of** paperwork to **go through** before work tomorrow.
- My place is a ... | - the future
- I can be there by nine PM.
- That's in two hours.
- subordinate clause
- Is there a place **where** I can put this down?
- Yes, it was the day **when** you had my new design.
- We can go for a walk when we get to the forest.
#### New Words
- I need to **straighten up** before I can h... | Complete L9 U34 Lesson 1-2. | [englist] Complete L9 U34 Lesson 1-2.
| Markdown | apache-2.0 | sleticalboy/sleticalboy.github.io,sleticalboy/sleticalboy.github.io,sleticalboy/sleticalboy.github.io,sleticalboy/sleticalboy.github.io | markdown | ## Code Before:
- I need to **straighten up** before I can have anyone over.
- the future
- I can be there by nine PM.
- That's in two hours.
#### Sentences & phrase
- I have to **do the dishes**, clean the floors, **do the laundry**, and I have **a stack of** paperwork to **go through** before work tomorrow.
... | - - I need to **straighten up** before I can have anyone over.
- the future
- I can be there by nine PM.
- That's in two hours.
+ - subordinate clause
+ - Is there a place **where** I can put this down?
+ - Yes, it was the day **when** you had my new design.
+ - We can go for a walk when we ge... | 19 | 0.678571 | 18 | 1 |
1fc47a1f083f3ac37cde22cd09ba38c1ccfbc1f2 | _projects/rich-cat-poor-cat.md | _projects/rich-cat-poor-cat.md | ---
title: Rich Cat/Poor Cat
order: -5
---
[](http://richpoorcat.com/)
[Demo](http://richpoorcat.com/) / [GitHub](https://github.com/ash106/rich_cat_poor_cat)
Built with Rails, Bootstrap and [Pixi.js](http://www.pixijs.com/)
A game about the rising income inequalit... | ---
title: Rich Cat/Poor Cat
order: -5
---
[](http://richpoorcat.com/)
[Demo](http://richpoorcat.com/) / [GitHub](https://github.com/ash106/rich_cat_poor_cat)
Built with Rails, Materialize and `<canvas>`
A game about the rising income inequality between cats. Just ... | Update rich cat poor cat frameworks | Update rich cat poor cat frameworks
| Markdown | mit | ash106/ash106.github.io,ash106/ash106.github.io | markdown | ## Code Before:
---
title: Rich Cat/Poor Cat
order: -5
---
[](http://richpoorcat.com/)
[Demo](http://richpoorcat.com/) / [GitHub](https://github.com/ash106/rich_cat_poor_cat)
Built with Rails, Bootstrap and [Pixi.js](http://www.pixijs.com/)
A game about the rising ... | ---
title: Rich Cat/Poor Cat
order: -5
---
[](http://richpoorcat.com/)
[Demo](http://richpoorcat.com/) / [GitHub](https://github.com/ash106/rich_cat_poor_cat)
- Built with Rails, Bootstrap and [Pixi.js](http://www.pixijs.com/)
+ Built with Rails, M... | 2 | 0.166667 | 1 | 1 |
404231a6b17227bdce7babccf523b8eed379c828 | src/components/common/reaction/Base.js | src/components/common/reaction/Base.js | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './Base.module.css';
const renderLabel = label => {
if (typeof label === 'undefined') {
return null;
}
return <div className={styles.label}>{label}</div>;
};
const renderCount = count => {
if (t... | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './Base.module.css';
const renderLabel = label => {
if (typeof label === 'undefined') {
return null;
}
return <div className={styles.label}>{label}</div>;
};
const renderCount = count => {
if (t... | Fix warning if children is null | Fix warning if children is null
| JavaScript | mit | goodjoblife/GoodJobShare | javascript | ## Code Before:
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './Base.module.css';
const renderLabel = label => {
if (typeof label === 'undefined') {
return null;
}
return <div className={styles.label}>{label}</div>;
};
const renderCount = co... | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './Base.module.css';
const renderLabel = label => {
if (typeof label === 'undefined') {
return null;
}
return <div className={styles.label}>{label}</div>;
};
const rend... | 2 | 0.047619 | 1 | 1 |
059d3f324f6fc2f7a9e4818016d81d18b3c5c554 | python-requirements.txt | python-requirements.txt | git+https://github.com/lowRISC/edalize.git@ot
# Development version with OT-specific changes
git+https://github.com/lowRISC/fusesoc.git@ot
pyyaml
mako
| git+https://github.com/lowRISC/edalize.git@ot
# Development version with OT-specific changes
git+https://github.com/lowRISC/fusesoc.git@ot
pyyaml
mako
# Needed by dvsim.py (not actually used in Ibex)
premailer
| Add missing Python dependency on premailer library | Add missing Python dependency on premailer library
This dependency gets pulled in with dvsim.py since OpenTitan commit
1aff665d2, vendored in with Ibex commit 1bbcce0.
| Text | apache-2.0 | lowRISC/ibex,lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,lowRISC/ibex,AmbiML/ibex,AmbiML/ibex,AmbiML/ibex | text | ## Code Before:
git+https://github.com/lowRISC/edalize.git@ot
# Development version with OT-specific changes
git+https://github.com/lowRISC/fusesoc.git@ot
pyyaml
mako
## Instruction:
Add missing Python dependency on premailer library
This dependency gets pulled in with dvsim.py since OpenTitan commit
1aff665d2, ven... | git+https://github.com/lowRISC/edalize.git@ot
# Development version with OT-specific changes
git+https://github.com/lowRISC/fusesoc.git@ot
pyyaml
mako
+
+ # Needed by dvsim.py (not actually used in Ibex)
+ premailer | 3 | 0.428571 | 3 | 0 |
c624da102a4aa1cb42e7d1ac02c7cb94fe85928e | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<title>David Fox</title>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&... | <!DOCTYPE html>
<html>
<head>
<title>David Fox</title>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&... | Remove LinkedIn because it messes up the styles | Remove LinkedIn because it messes up the styles
| HTML | mit | dfox/dfox.github.io,dfox/dfox.github.io,dfox/dfox.github.io | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>David Fox</title>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=... | <!DOCTYPE html>
<html>
<head>
<title>David Fox</title>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=... | 15 | 0.483871 | 1 | 14 |
cbe91ba87818ec17c2a161953d0fca1121598289 | ui/client/components/modals/ValidationLabels.js | ui/client/components/modals/ValidationLabels.js | import React from "react";
import {v4 as uuid4} from "uuid";
export default class ValidationLabels extends React.Component {
render() {
const {validators, value} = this.props
return validators.map(validator => validator.isValid(value) ? null :
<label key={uuid4()} className='validation-label'>{validat... | import React from "react";
import {v4 as uuid4} from "uuid";
export default class ValidationLabels extends React.Component {
render() {
const {validators, value} = this.props
return validators.map(validator => validator.isValid(value) ? null :
<span className='validation-label'>{validator.message}</sp... | Change validation label to span | Change validation label to span
| JavaScript | apache-2.0 | TouK/nussknacker,TouK/nussknacker,TouK/nussknacker,TouK/nussknacker,TouK/nussknacker | javascript | ## Code Before:
import React from "react";
import {v4 as uuid4} from "uuid";
export default class ValidationLabels extends React.Component {
render() {
const {validators, value} = this.props
return validators.map(validator => validator.isValid(value) ? null :
<label key={uuid4()} className='validation... | import React from "react";
import {v4 as uuid4} from "uuid";
export default class ValidationLabels extends React.Component {
render() {
const {validators, value} = this.props
return validators.map(validator => validator.isValid(value) ? null :
- <label key={uuid4()} className='validati... | 2 | 0.181818 | 1 | 1 |
6b73b5948288ea595180a6e6140ebbb39326385c | README.md | README.md |
Markcop is our friendly Markdown enforcer.
## License
See [LICENSE](LICENSE).
|
Markcop is our friendly Markdown enforcer.
## Running It
Copy and paste the following into your terminal:
curl -sL https://git.io/vswrY | bash
If you're worried about piping from the internet to bash (which you should be),
you can run Markcop manually by downloading `bin/markcop` and running it
manually.
## L... | Create one-liner to run Markcop | Create one-liner to run Markcop
| Markdown | mit | hackedu/markcop,zachlatta/markcop,hackedu/markval,hackclub/markcop | markdown | ## Code Before:
Markcop is our friendly Markdown enforcer.
## License
See [LICENSE](LICENSE).
## Instruction:
Create one-liner to run Markcop
## Code After:
Markcop is our friendly Markdown enforcer.
## Running It
Copy and paste the following into your terminal:
curl -sL https://git.io/vswrY | bash
If you... |
Markcop is our friendly Markdown enforcer.
+
+ ## Running It
+
+ Copy and paste the following into your terminal:
+
+ curl -sL https://git.io/vswrY | bash
+
+ If you're worried about piping from the internet to bash (which you should be),
+ you can run Markcop manually by downloading `bin/markcop` and runn... | 10 | 1.666667 | 10 | 0 |
0923b039c49ab4f3ae4b5cb20cc1afb5ab71116e | deployments/schema/postgres/1000_schema.sql | deployments/schema/postgres/1000_schema.sql | --
-- PostgreSQL database dump
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
CREATE FUNCTION update_updated_at_column() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
NEW.updated_at = NOW();
RETURN NEW;
END;
$... | --
-- PostgreSQL database dump
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
CREATE FUNCTION update_updated_at_column() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
NEW.updated_at = NOW();
RETURN NEW;
END;
$$;
CREATE TABLE deployment_tracker (
id integer NOT NULL,
... | Adjust a comment line that prevents cloud from deploying | Adjust a comment line that prevents cloud from deploying
| SQL | mit | covermymeds/dbdeployer | sql | ## Code Before:
--
-- PostgreSQL database dump
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
CREATE FUNCTION update_updated_at_column() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
NEW.updated_at = NOW();
RETU... | --
-- PostgreSQL database dump
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
-
-
-
- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
-
CREATE FUNCTION update_updated_at_column() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
NEW.update... | 5 | 0.078125 | 0 | 5 |
4febb4663bf9b944b2701a00a66ba095ea886745 | README.md | README.md | Generic website generator
This repo doesn't do anything just yet, but it should:
given a `JSON` object like the one below...:
```json
{
"title": "Franzjipan",
"domain": "franzjipan.be",
"subtitle": "top notch bakery",
"theme": "this could be anything",
"references": {
"jeroen": "url or logo",
"kymer... | Generic website generator
This repo doesn't do anything just yet, but it should:
given a `JSON` file named `.gwrc` (short for `generic-website-rc` ([read this to know what rc actually means](http://stackoverflow.com/questions/11030552/what-does-rc-mean-in-dot-files)) like the one below...:
```json
{
"title": "Fran... | Update readme with rc namedrop | Update readme with rc namedrop
| Markdown | mpl-2.0 | Quite-nice/generic-website | markdown | ## Code Before:
Generic website generator
This repo doesn't do anything just yet, but it should:
given a `JSON` object like the one below...:
```json
{
"title": "Franzjipan",
"domain": "franzjipan.be",
"subtitle": "top notch bakery",
"theme": "this could be anything",
"references": {
"jeroen": "url or l... | Generic website generator
This repo doesn't do anything just yet, but it should:
- given a `JSON` object like the one below...:
+ given a `JSON` file named `.gwrc` (short for `generic-website-rc` ([read this to know what rc actually means](http://stackoverflow.com/questions/11030552/what-does-rc-mean-in-dot-... | 2 | 0.076923 | 1 | 1 |
75d5479773347da2379ddfafd148a315d21a5d5e | Cargo.toml | Cargo.toml | [project]
name = "rustbox"
version = "0.1.0"
authors = ["gregchapple1@gmail.com"]
[[lib]]
name = "rustbox"
| [project]
name = "rustbox"
version = "0.1.0"
authors = ["Greg Chapple <gregchapple1@gmail.com>"]
[[lib]]
name = "rustbox"
| Fix formatting for author field | Fix formatting for author field
| TOML | mit | benaryorg/rustbox,tempbottle/rustbox,christopherdumas/rustbox,Zypeh/rustbox,tedsta/rustbox,gchp/rustbox | toml | ## Code Before:
[project]
name = "rustbox"
version = "0.1.0"
authors = ["gregchapple1@gmail.com"]
[[lib]]
name = "rustbox"
## Instruction:
Fix formatting for author field
## Code After:
[project]
name = "rustbox"
version = "0.1.0"
authors = ["Greg Chapple <gregchapple1@gmail.com>"]
[[lib]]
name = "rustbox"
| [project]
name = "rustbox"
version = "0.1.0"
- authors = ["gregchapple1@gmail.com"]
+ authors = ["Greg Chapple <gregchapple1@gmail.com>"]
? ++++++++++++++ +
[[lib]]
name = "rustbox" | 2 | 0.285714 | 1 | 1 |
30985523b35df85d3454060e2167b51a7f402474 | src/lib.rs | src/lib.rs | extern crate libc;
pub fn readline() -> Option<String> {
// Buffer to hold readline input
let buffer = String::new();
let isatty = unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0;
if isatty {
println!("stdin is a tty");
} else {
println!("stdin is not a tty");
}
... | extern crate libc;
fn isatty() -> bool {
let isatty = unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0;
isatty
}
pub fn readline() -> Option<String> {
if isatty() {
Some(buffer)
} else {
None
}
}
| Split out tty check to a separate function | Split out tty check to a separate function
| Rust | mit | kkawakam/rustyline,dubrowgn/rustyline,dubrowgn/rustyline,gwenn/rustyline,cavedweller/rustyline | rust | ## Code Before:
extern crate libc;
pub fn readline() -> Option<String> {
// Buffer to hold readline input
let buffer = String::new();
let isatty = unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0;
if isatty {
println!("stdin is a tty");
} else {
println!("stdin is not a tt... | extern crate libc;
+
+
+ fn isatty() -> bool {
+ let isatty = unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0;
+ isatty
+ }
+
pub fn readline() -> Option<String> {
- // Buffer to hold readline input
- let buffer = String::new();
+ if isatty() {
+ Some(buffer)
+ } else {... | 24 | 1.6 | 14 | 10 |
b30b08fc36ae833c5d4716875b6ed34d222aad9e | lib/junos-ez/facts/ifd_style.rb | lib/junos-ez/facts/ifd_style.rb |
Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts|
persona = uses :personality
facts[:ifd_style] = case persona
when :SWITCH
:SWITCH
else
:CLASSIC
end
end
| Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts|
persona,sw_style = uses :personality,:switch_style
facts[:ifd_style] = case persona
when :SWITCH
if sw_style == :VLAN_L2NG
:CLASSIC
else
:SWITCH
end
else
:CLASSIC
end
end
| Fix to identify ifd style based on L2NG system | Fix to identify ifd style based on L2NG system | Ruby | bsd-2-clause | rterrero/ruby-junos-ez-stdlib,ganeshnalawade/ruby-junos-ez-stdlib | ruby | ## Code Before:
Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts|
persona = uses :personality
facts[:ifd_style] = case persona
when :SWITCH
:SWITCH
else
:CLASSIC
end
end
## Instruction:
Fix to identify ifd style based on L2NG system
## Code After:
Junos::Ez::Facts::Keeper... | -
Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts|
- persona = uses :personality
+ persona,sw_style = uses :personality,:switch_style
facts[:ifd_style] = case persona
when :SWITCH
+ if sw_style == :VLAN_L2NG
+ :CLASSIC
+ else
- :SWITCH
+ :SWITCH
? ++
+ end... | 9 | 0.642857 | 6 | 3 |
e9040147ae78d75a7d28c9e491c1f20403a4155c | server.js | server.js | 'use strict';
const config = require('./config');
const JiraTicket = require('./jira-ticket');
const JiraBot = require('./jira-bot');
const log = require('winston');
let jiraTicket = new JiraTicket(config.jira),
jiraBot = new JiraBot(config.slack);
jiraBot.on('ticketKeyFound', (key, channel) => {
jiraTicket.get(... | 'use strict';
const config = require('./config');
const JiraTicket = require('./jira-ticket');
const JiraBot = require('./jira-bot');
const log = require('winston');
let jiraTicket = new JiraTicket(config.jira),
jiraBot = new JiraBot(config.slack);
jiraBot.on('ticketKeyFound', (key, channel) => {
jiraTicket.get(... | Add logging for sending issue info to Slack | Add logging for sending issue info to Slack
| JavaScript | mit | okovpashko/slack-jira-ticket-parser | javascript | ## Code Before:
'use strict';
const config = require('./config');
const JiraTicket = require('./jira-ticket');
const JiraBot = require('./jira-bot');
const log = require('winston');
let jiraTicket = new JiraTicket(config.jira),
jiraBot = new JiraBot(config.slack);
jiraBot.on('ticketKeyFound', (key, channel) => {
... | 'use strict';
const config = require('./config');
const JiraTicket = require('./jira-ticket');
const JiraBot = require('./jira-bot');
const log = require('winston');
let jiraTicket = new JiraTicket(config.jira),
jiraBot = new JiraBot(config.slack);
jiraBot.on('ticketKeyFound', (key, channel) ... | 9 | 0.409091 | 8 | 1 |
1ee412f07e39a32e53b12fad291ffd41595590bb | asset/js/render.js | asset/js/render.js | var shipment = $("#shipment-templ").html();
var template = Handlebars.compile(shipment);
//Sample - To be replaced by GET db content
// {
// author: "zachlatta",
// name: "Hack Club",
// timestamp: "11:09 PM - 7 Jul 2017",
// desc: "We help high schoolers start awesome after-sch... | var shipment = $("#shipment-templ").html();
var template = Handlebars.compile(shipment);
//Sample - To be replaced by GET db content
// {
// author: "zachlatta",
// name: "Hack Club",
// timestamp: "11:09 PM - 7 Jul 2017",
// desc: "We help high schoolers start awesome after-sch... | Fix modal does not close bug | Fix modal does not close bug
| JavaScript | mit | hackclub/shipit,hackclub/shipit | javascript | ## Code Before:
var shipment = $("#shipment-templ").html();
var template = Handlebars.compile(shipment);
//Sample - To be replaced by GET db content
// {
// author: "zachlatta",
// name: "Hack Club",
// timestamp: "11:09 PM - 7 Jul 2017",
// desc: "We help high schoolers start a... | var shipment = $("#shipment-templ").html();
var template = Handlebars.compile(shipment);
//Sample - To be replaced by GET db content
// {
// author: "zachlatta",
// name: "Hack Club",
// timestamp: "11:09 PM - 7 Jul 2017",
// desc: "We help high schoolers start... | 3 | 0.090909 | 2 | 1 |
d66edd5f07130260e63253b0e2d25ce24ed6f6f2 | .travis.yml | .travis.yml | language: python
python:
- "3.4"
- "3.5"
- "3.6"
sudo: required
install:
- pip install -r requirements.txt
- pip install coverage python-coveralls
- source continuous_integration/install.sh
env:
matrix:
- SCHEDULER="SLURM"
- SCHEDULER="NONE"
script: make test
after_success: coveralls
cache: a... | dist: xenial
language: python
python:
- "3.4"
- "3.5"
- "3.6"
sudo: required
install:
- pip install -r requirements.txt
- pip install coverage python-coveralls
- source continuous_integration/install.sh
env:
matrix:
- SCHEDULER="SLURM"
- SCHEDULER="NONE"
script: make test
after_success: cove... | FIX Slurm fails on Travis CI | FIX Slurm fails on Travis CI
| YAML | bsd-3-clause | jm-begon/clustertools,jm-begon/clustertools | yaml | ## Code Before:
language: python
python:
- "3.4"
- "3.5"
- "3.6"
sudo: required
install:
- pip install -r requirements.txt
- pip install coverage python-coveralls
- source continuous_integration/install.sh
env:
matrix:
- SCHEDULER="SLURM"
- SCHEDULER="NONE"
script: make test
after_success: co... | + dist: xenial
+
language: python
python:
- "3.4"
- "3.5"
- "3.6"
sudo: required
install:
- pip install -r requirements.txt
- pip install coverage python-coveralls
- source continuous_integration/install.sh
env:
matrix:
- SCHEDULER="SLURM"
- SCHEDULER="NONE"
... | 2 | 0.090909 | 2 | 0 |
5a0840f03caa275af91fc9ee94779a3179fae224 | sql/reading/get_readings_by_meter_id_and_date_range.sql | sql/reading/get_readings_by_meter_id_and_date_range.sql | -- Coalesce returns the first non-null value
SELECT
meter_id, reading, read_timestamp
FROM readings
WHERE meter_id = ${meterID}
AND read_timestamp BETWEEN
COALESCE(${startDate}, DATE '1970-01-01')
AND COALESCE(${endDate}, DATE '50000-01-01'); | SELECT
meter_id, reading, read_timestamp
FROM readings
WHERE meter_id = ${meterID}
AND read_timestamp BETWEEN
-- Coalesce returns the first non-null value, so this defaults the start date to 1970 and end to 50000,
-- effectively not restricting them
COALESCE(${startDate}, DATE '1970-01-01')
AND COALESCE... | Clarify a comment about COALESCE | Clarify a comment about COALESCE | SQL | mpl-2.0 | beloitcollegecomputerscience/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,beloitcollegecomputerscience/OED,OpenEnergyDashboard/OED,beloitcollegecomputerscience/OED,beloitcollegecomputerscience/OED | sql | ## Code Before:
-- Coalesce returns the first non-null value
SELECT
meter_id, reading, read_timestamp
FROM readings
WHERE meter_id = ${meterID}
AND read_timestamp BETWEEN
COALESCE(${startDate}, DATE '1970-01-01')
AND COALESCE(${endDate}, DATE '50000-01-01');
## Instruction:
Clarify a comment about COALESCE
... | - -- Coalesce returns the first non-null value
SELECT
meter_id, reading, read_timestamp
FROM readings
WHERE meter_id = ${meterID}
AND read_timestamp BETWEEN
+ -- Coalesce returns the first non-null value, so this defaults the start date to 1970 and end to 50000,
+ -- effectively not restricting them
... | 3 | 0.375 | 2 | 1 |
cf8d145b5c8c7acf0ec128f1a08b012b8856d3f4 | README.md | README.md |
Mumble supports querying server information by sending a ping
packet to the target server. This includes: server version,
currently connected users, max users allowed, allowed bandwidth.
This implementation doesn't require anything on the server side,
and will work on any server.
Read more about it [here](http://wiki... |
Mumble supports querying server information by sending a ping
packet to the target server. This includes: server version,
currently connected users, max users allowed, allowed bandwidth.
This implementation doesn't require anything on the server side,
and will work on any server.
Read more about it [here](http://wiki... | Add error check in example | Add error check in example
| Markdown | unlicense | xPaw/MumblePing | markdown | ## Code Before:
Mumble supports querying server information by sending a ping
packet to the target server. This includes: server version,
currently connected users, max users allowed, allowed bandwidth.
This implementation doesn't require anything on the server side,
and will work on any server.
Read more about it [h... |
Mumble supports querying server information by sending a ping
packet to the target server. This includes: server version,
currently connected users, max users allowed, allowed bandwidth.
This implementation doesn't require anything on the server side,
and will work on any server.
Read more about it [h... | 13 | 0.52 | 10 | 3 |
111682e3c19784aa87d5f3d4b56149226e6f9d3b | app/tests/archives_tests/test_models.py | app/tests/archives_tests/test_models.py | import pytest
from tests.archives_tests.factories import ArchiveFactory
from tests.model_helpers import do_test_factory
@pytest.mark.django_db
class TestArchivesModels:
# test functions are added dynamically to this class
def test_study_str(self):
model = ArchiveFactory()
assert str(model) == ... | import pytest
from django.core.exceptions import ObjectDoesNotExist
from tests.archives_tests.factories import ArchiveFactory
from tests.cases_tests.factories import ImageFactoryWithImageFile
from tests.model_helpers import do_test_factory
@pytest.mark.django_db
class TestArchivesModels:
# test functions are add... | Add test for cascading deletion of archive | Add test for cascading deletion of archive
| Python | apache-2.0 | comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django | python | ## Code Before:
import pytest
from tests.archives_tests.factories import ArchiveFactory
from tests.model_helpers import do_test_factory
@pytest.mark.django_db
class TestArchivesModels:
# test functions are added dynamically to this class
def test_study_str(self):
model = ArchiveFactory()
asser... | import pytest
+ from django.core.exceptions import ObjectDoesNotExist
+
from tests.archives_tests.factories import ArchiveFactory
+ from tests.cases_tests.factories import ImageFactoryWithImageFile
from tests.model_helpers import do_test_factory
@pytest.mark.django_db
class TestArchivesModels:
# ... | 55 | 2.75 | 54 | 1 |
527e8a853793ede4e9c74a0a223ff1ddd152ed9f | CHANGELOG.md | CHANGELOG.md |
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
## Unreleased as of Sprint 71 ending 2017-10-16
### Changed
- Rename ws to api to not be confused with websockets [(#131)](https://github.com/ManageIQ/manageiq-applian... |
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
## Gaprindashvili Beta1
### Added
- Add miqldap_to_sssd launcher [(#134)](https://github.com/ManageIQ/manageiq-appliance/pull/134)
### Changed
- Rename ws to api to n... | Update master changelog for Gaprindashvili Beta1 | Update master changelog for Gaprindashvili Beta1
[skip ci]
| Markdown | apache-2.0 | ManageIQ/manageiq-appliance,ManageIQ/manageiq-appliance,ManageIQ/manageiq-appliance | markdown | ## Code Before:
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
## Unreleased as of Sprint 71 ending 2017-10-16
### Changed
- Rename ws to api to not be confused with websockets [(#131)](https://github.com/ManageIQ/... |
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
+ ## Gaprindashvili Beta1
- ## Unreleased as of Sprint 71 ending 2017-10-16
-
- ### Changed
- - Rename ws to api to not be confused with websockets [(#131)... | 10 | 0.37037 | 3 | 7 |
5d7501059210574de91f16f52841d21ed9bf63ae | buildouts/lxml.cfg | buildouts/lxml.cfg |
[buildout]
eggs =
lxml
parts =
lxml
versions = versions
[versions]
lxml = 3.2.1
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
libxslt-url = ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz
libxml2-url = ftp://xmlsoft.org/libxslt/libxml2-2.8.0.tar.gz
|
[buildout]
eggs =
lxml
parts =
lxml
versions = versions
[versions]
lxml = 3.2.1
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
libxslt-url = ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz
libxml2-url = ftp://xmlsoft.org/libxslt/libxml2-2.8.0.tar.gz
# http urls:
# libxml2-url = http://gd.tuwien.ac.at/pub/... | Add http urls for libxml in case ftp isn't available | Add http urls for libxml in case ftp isn't available
| INI | agpl-3.0 | alkadis/vcv,alkadis/vcv,phihag/adhocracy,liqd/adhocracy,DanielNeugebauer/adhocracy,liqd/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,DanielNeugebauer/adhocracy,DanielNeugebauer/adhocracy,phihag/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,phihag/adhocracy,phihag/adhocracy,alkadis/vcv,phihag/adhocracy,liqd/adhoc... | ini | ## Code Before:
[buildout]
eggs =
lxml
parts =
lxml
versions = versions
[versions]
lxml = 3.2.1
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
libxslt-url = ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz
libxml2-url = ftp://xmlsoft.org/libxslt/libxml2-2.8.0.tar.gz
## Instruction:
Add http urls for libxm... |
[buildout]
eggs =
lxml
parts =
lxml
versions = versions
[versions]
lxml = 3.2.1
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
libxslt-url = ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz
libxml2-url = ftp://xmlsoft.org/libxslt/libxml2-2.8.0.tar.gz
+ # http urls:
+ # lib... | 3 | 0.176471 | 3 | 0 |
64851e56be9d3f9c3ad2c4f384249a4f468e118f | CRM/Speakcivi/Logic/Consent.php | CRM/Speakcivi/Logic/Consent.php | <?php
class CRM_Speakcivi_Logic_Consent {
public $publicId;
public $version;
public $language;
public $date;
public $createDate;
public $level;
public $method;
public $methodOption;
/**
* @param $param
*
* @return array
*/
public static function prepareFields($param) {
$consents = ... | <?php
class CRM_Speakcivi_Logic_Consent {
public $publicId;
public $version;
public $language;
public $date;
public $createDate;
public $level;
public $method;
public $methodOption;
/**
* @param $param
*
* @return array
*/
public static function prepareFields($param) {
$consents = ... | Fix date of DPA activity properly | Fix date of DPA activity properly
| PHP | agpl-3.0 | WeMoveEU/bsd_api | php | ## Code Before:
<?php
class CRM_Speakcivi_Logic_Consent {
public $publicId;
public $version;
public $language;
public $date;
public $createDate;
public $level;
public $method;
public $methodOption;
/**
* @param $param
*
* @return array
*/
public static function prepareFields($param) {
... | <?php
class CRM_Speakcivi_Logic_Consent {
public $publicId;
public $version;
public $language;
public $date;
public $createDate;
public $level;
public $method;
public $methodOption;
/**
* @param $param
*
* @return array
*/
public static function prep... | 2 | 0.051282 | 1 | 1 |
32eb33cbf802337847d11b682039c64dff88ed99 | el.spec.js | el.spec.js | var el = require('./el');
var outputEl = document.querySelector('#el-js');
function assertDomContent(elTree, expected) {
el(outputEl, elTree);
var actual = outputEl.innerHTML.replace(/\s+/g, ' ').trim();
if (actual === expected) return;
throw new Error('Unexpected element output; to debug this, break o... | var el = require('./el');
var outputEl = document.querySelector('#el-js');
function assertDomContent(elTree, expected) {
el(outputEl, elTree);
var actual = outputEl.innerHTML.replace(/\s+/g, ' ').trim();
if (actual === expected) return;
throw new Error('\n\nExpected: ' + expected + '\n Actual: ' + act... | Add a more involved test case. | Add a more involved test case.
| JavaScript | mit | jareware/el-js,jareware/el-js | javascript | ## Code Before:
var el = require('./el');
var outputEl = document.querySelector('#el-js');
function assertDomContent(elTree, expected) {
el(outputEl, elTree);
var actual = outputEl.innerHTML.replace(/\s+/g, ' ').trim();
if (actual === expected) return;
throw new Error('Unexpected element output; to deb... | var el = require('./el');
var outputEl = document.querySelector('#el-js');
function assertDomContent(elTree, expected) {
el(outputEl, elTree);
var actual = outputEl.innerHTML.replace(/\s+/g, ' ').trim();
if (actual === expected) return;
- throw new Error('Unexpected element output; to deb... | 15 | 0.576923 | 14 | 1 |
428a2bf6fd40ab642a5fcc74dfd591987232e949 | README.md | README.md | Asynchronous loading and creation of google maps
[](https://travis-ci.org/zpratt/async-google-maps)
## Running tests
1. Install io.js (needed for jsdom)
- `npm i`
- `npm test`
| Asynchronous loading and creation of google maps
[](https://travis-ci.org/zpratt/async-google-maps)
## Running tests
1. Install io.js (needed for jsdom)
- `npm i`
- `npm test`
## Usage
```javascript
var MapLoader = require('async-google-maps');
M... | Document the API and how to use the library. | Document the API and how to use the library.
| Markdown | mit | zpratt/async-google-maps | markdown | ## Code Before:
Asynchronous loading and creation of google maps
[](https://travis-ci.org/zpratt/async-google-maps)
## Running tests
1. Install io.js (needed for jsdom)
- `npm i`
- `npm test`
## Instruction:
Document the API and how to use the libra... | Asynchronous loading and creation of google maps
[](https://travis-ci.org/zpratt/async-google-maps)
## Running tests
1. Install io.js (needed for jsdom)
- `npm i`
- `npm test`
+
+ ## Usage
+
+ ```javascript
+
+ var MapLoader = re... | 41 | 4.555556 | 41 | 0 |
dffcfb01f093567d0a7a86a527e3b745dc9dd469 | de.tototec.sbuild/src/main/scala/de/tototec/sbuild/Path.scala | de.tototec.sbuild/src/main/scala/de/tototec/sbuild/Path.scala | package de.tototec.sbuild
import java.io.File
object Path {
def apply(path: String)(implicit project: Project): File = {
val origFile = new File(path)
if (origFile.isAbsolute) {
origFile.getCanonicalFile
} else {
val absFile = new File(project.projectDirectory, path)
absFile.getCanonic... | package de.tototec.sbuild
import java.io.File
object Path {
def apply(path: String, pathes: String*)(implicit project: Project): File = {
val file = {
val origFile = new File(path)
if (origFile.isAbsolute) {
origFile.getCanonicalFile
} else {
val absFile = new File(project.proj... | Support for more than one path segment. All segments will be concatenated. | Support for more than one path segment. All segments will be concatenated.
| Scala | apache-2.0 | SBuild-org/sbuild,SBuild-org/sbuild | scala | ## Code Before:
package de.tototec.sbuild
import java.io.File
object Path {
def apply(path: String)(implicit project: Project): File = {
val origFile = new File(path)
if (origFile.isAbsolute) {
origFile.getCanonicalFile
} else {
val absFile = new File(project.projectDirectory, path)
ab... | package de.tototec.sbuild
import java.io.File
object Path {
- def apply(path: String)(implicit project: Project): File = {
+ def apply(path: String, pathes: String*)(implicit project: Project): File = {
? +++++++++++++++++
+ val file = {
- val origFile = new File(path)
+... | 22 | 1.375 | 15 | 7 |
5c1ac8fa341e3ac384c9d6533307a4aeba62db3c | app/models/issue_tracker.rb | app/models/issue_tracker.rb | class IssueTracker
include Mongoid::Document
include Mongoid::Timestamps
include HashHelper
include Rails.application.routes.url_helpers
default_url_options[:host] = Errbit::Application.config.action_mailer.default_url_options[:host]
embedded_in :app, :inverse_of => :issue_tracker
field :project_id, :ty... | class IssueTracker
include Mongoid::Document
include Mongoid::Timestamps
include HashHelper
include Rails.application.routes.url_helpers
default_url_options[:host] = ActionMailer::Base.default_url_options[:host]
embedded_in :app, :inverse_of => :issue_tracker
field :project_id, :type => String
field :... | Fix default_url_options in IssueTracker model | Fix default_url_options in IssueTracker model
| Ruby | mit | concordia-publishing-house/errbit,errbit/errbit,accessd/errbit,bonusboxme/errbit,bengler/errbit,diowa/errbit,PeggApp/pegg-errors,deskrock/errbit,wombatsecurity/errbit,rud/errbit,deskrock/errbit,Talentee/errbit,cph/errbit,griff/errbit,sideci-sample/sideci-sample-errbit,ZeusWPI/errbit,wombatsecurity/errbit,disvelop/errbi... | ruby | ## Code Before:
class IssueTracker
include Mongoid::Document
include Mongoid::Timestamps
include HashHelper
include Rails.application.routes.url_helpers
default_url_options[:host] = Errbit::Application.config.action_mailer.default_url_options[:host]
embedded_in :app, :inverse_of => :issue_tracker
field ... | class IssueTracker
include Mongoid::Document
include Mongoid::Timestamps
include HashHelper
include Rails.application.routes.url_helpers
- default_url_options[:host] = Errbit::Application.config.action_mailer.default_url_options[:host]
? -------- ------------------- ... | 2 | 0.064516 | 1 | 1 |
88d61f7dcf260b53099196758a1fd0fc8f144710 | test/integration/provisioning/server_client.rb | test/integration/provisioning/server_client.rb | require 'chef/provisioning'
require 'chef/provisioning/vagrant_driver'
with_driver "vagrant:#{File.dirname(__FILE__)}/../../../vms"
machine_batch do
[%w(client 11), %w(server 12)].each do |name, ip_suff|
machine name do
machine_options vagrant_options: {
'vm.box' => 'bento/centos-7.2',
'vm... | require 'chef/provisioning'
require 'chef/provisioning/vagrant_driver'
with_driver "vagrant:#{File.dirname(__FILE__)}/../../../vms"
machine_batch do
[%w(client 11), %w(create_server 12)].each do |name, ip_suff|
# (host)name can't have underscores
machine name.tr('_', '-') do
machine_options vagrant_op... | Update and fix Vagrant provisioning | Update and fix Vagrant provisioning
| Ruby | apache-2.0 | osuosl-cookbooks/rdiff-backup,osuosl-cookbooks/rdiff-backup,osuosl-cookbooks/rdiff-backup,osuosl-cookbooks/rdiff-backup | ruby | ## Code Before:
require 'chef/provisioning'
require 'chef/provisioning/vagrant_driver'
with_driver "vagrant:#{File.dirname(__FILE__)}/../../../vms"
machine_batch do
[%w(client 11), %w(server 12)].each do |name, ip_suff|
machine name do
machine_options vagrant_options: {
'vm.box' => 'bento/centos-7... | require 'chef/provisioning'
require 'chef/provisioning/vagrant_driver'
with_driver "vagrant:#{File.dirname(__FILE__)}/../../../vms"
machine_batch do
- [%w(client 11), %w(server 12)].each do |name, ip_suff|
+ [%w(client 11), %w(create_server 12)].each do |name, ip_suff|
? +++++++
... | 10 | 0.384615 | 5 | 5 |
fb0cf55456c142671a8f4603e5ed4e3cc534f1e5 | app/src/component/Button.tsx | app/src/component/Button.tsx | import * as React from "react";
import "./style/Button.css";
interface IProps {
className?: string;
onClick?: () => void;
onMouseOver?: () => void;
onMouseOut?: () => void;
style?: object;
type?: string;
}
export default class extends React.Component<IProps> {
public render() {
co... | import * as React from "react";
import "./style/Button.css";
interface IProps {
className?: string;
onClick?: () => void;
onMouseOver?: () => void;
onMouseOut?: () => void;
style?: object;
type?: string;
}
export default class extends React.Component<IProps> {
public render() {
co... | Set undefined to onClick prop when nothing is provided by parent | Set undefined to onClick prop when nothing is provided by parent
| TypeScript | mit | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | typescript | ## Code Before:
import * as React from "react";
import "./style/Button.css";
interface IProps {
className?: string;
onClick?: () => void;
onMouseOver?: () => void;
onMouseOut?: () => void;
style?: object;
type?: string;
}
export default class extends React.Component<IProps> {
public rende... | import * as React from "react";
import "./style/Button.css";
interface IProps {
className?: string;
onClick?: () => void;
onMouseOver?: () => void;
onMouseOut?: () => void;
style?: object;
type?: string;
}
export default class extends React.Component<IProps> {
... | 4 | 0.114286 | 2 | 2 |
006e72ff5a34d6cf326cc98d041a717c38349636 | db/migrate/20130221215017_add_description_to_categories.rb | db/migrate/20130221215017_add_description_to_categories.rb | class AddDescriptionToCategories < ActiveRecord::Migration
def up
add_column :categories, :description, :text, null: true
# While we're at it, remove unused columns
remove_column :categories, :top1_topic_id
remove_column :categories, :top2_topic_id
remove_column :categories, :top1_user_id
rem... | class AddDescriptionToCategories < ActiveRecord::Migration
def up
add_column :categories, :description, :text, null: true
# While we're at it, remove unused columns
remove_column :categories, :top1_topic_id
remove_column :categories, :top2_topic_id
remove_column :categories, :top1_user_id
rem... | Fix migration that does not contain position | Fix migration that does not contain position
| Ruby | mit | tadp/learnswift,tadp/learnswift,natefinch/discourse,natefinch/discourse,tadp/learnswift | ruby | ## Code Before:
class AddDescriptionToCategories < ActiveRecord::Migration
def up
add_column :categories, :description, :text, null: true
# While we're at it, remove unused columns
remove_column :categories, :top1_topic_id
remove_column :categories, :top2_topic_id
remove_column :categories, :top1... | class AddDescriptionToCategories < ActiveRecord::Migration
def up
add_column :categories, :description, :text, null: true
# While we're at it, remove unused columns
remove_column :categories, :top1_topic_id
remove_column :categories, :top2_topic_id
remove_column :categories, :top1... | 2 | 0.086957 | 1 | 1 |
b82332ae9f403b34f2a04213c5f6c4122baf06aa | dev/user.clj | dev/user.clj | (ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.validation-spec
'cats.mo... | (ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.validation-spec
'cats.la... | Add cats.labs.channel-spec to testing namespaces. | Add cats.labs.channel-spec to testing namespaces.
| Clojure | bsd-2-clause | tcsavage/cats,OlegTheCat/cats,funcool/cats,mccraigmccraig/cats,alesguzik/cats,yurrriq/cats | clojure | ## Code Before:
(ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.validation-... | (ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.valid... | 1 | 0.027027 | 1 | 0 |
8be5530e1fca59aff42b404b64324b68235bfd87 | setup.py | setup.py | from setuptools import setup, find_packages
import chagallpy
setup(
name='chagallpy',
version=chagallpy.__version__,
packages=find_packages(),
license='MIT',
description='CHArming GALLEry in PYthon',
long_description=open('README.md').read(),
author='Jan Pipek',
author_email='jan DOT pi... | from setuptools import setup, find_packages
import chagallpy
setup(
name='chagallpy',
version=chagallpy.__version__,
packages=find_packages(),
license='MIT',
description='CHArming GALLEry in PYthon',
long_description=open('README.md').read(),
author='Jan Pipek',
author_email='jan.pipek@... | Fix email address to be able to upload to pypi | Fix email address to be able to upload to pypi
| Python | mit | janpipek/chagallpy,janpipek/chagallpy,janpipek/chagallpy | python | ## Code Before:
from setuptools import setup, find_packages
import chagallpy
setup(
name='chagallpy',
version=chagallpy.__version__,
packages=find_packages(),
license='MIT',
description='CHArming GALLEry in PYthon',
long_description=open('README.md').read(),
author='Jan Pipek',
author_e... | from setuptools import setup, find_packages
import chagallpy
setup(
name='chagallpy',
version=chagallpy.__version__,
packages=find_packages(),
license='MIT',
description='CHArming GALLEry in PYthon',
long_description=open('README.md').read(),
author='Jan Pipek',
- ... | 2 | 0.08 | 1 | 1 |
3d499ee48fa5fa19c5cfe184371d9eeb70536259 | scripts/initialize.sh | scripts/initialize.sh |
set -e
echo "=> Begin Initialize Script"
echo "=> Export NVM path"
export NVM_DIR="/usr/local/nvm"
echo "=> Load NVM"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
echo "=> Enter Mobile project directory"
cd /code/mobilefe
echo "=> Run Grunt (this may take a while...)"
grunt server
|
set -e
echo "=> Begin Initialize Script"
echo "=> Export NVM path"
export NVM_DIR="/usr/local/nvm"
echo "=> Load NVM"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
echo "=> Enter Mobile project directory"
cd /code/mobilefe
echo "=> NPM Install"
npm install
echo "=> Bower Install"
bower install
echo "=> Run Gr... | Add npm and bower install | Add npm and bower install
| Shell | mit | schoeffman/docker-grunt | shell | ## Code Before:
set -e
echo "=> Begin Initialize Script"
echo "=> Export NVM path"
export NVM_DIR="/usr/local/nvm"
echo "=> Load NVM"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
echo "=> Enter Mobile project directory"
cd /code/mobilefe
echo "=> Run Grunt (this may take a while...)"
grunt server
## Instructi... |
set -e
echo "=> Begin Initialize Script"
echo "=> Export NVM path"
export NVM_DIR="/usr/local/nvm"
echo "=> Load NVM"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
echo "=> Enter Mobile project directory"
cd /code/mobilefe
+ echo "=> NPM Install"
+ npm install
+
+ echo "=> Bower Ins... | 6 | 0.375 | 6 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.